function qa(e,t){for(var s=0;s<t.length;s++){const r=t[s];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function As(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gt={exports:{}},Xe={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fn;function Ua(){if(Fn)return Xe;Fn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function s(r,a,i){var l=null;if(i!==void 0&&(l=""+i),a.key!==void 0&&(l=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:i}}return Xe.Fragment=t,Xe.jsx=s,Xe.jsxs=s,Xe}var Gn;function Qa(){return Gn||(Gn=1,Gt.exports=Ua()),Gt.exports}var n=Qa(),Le=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ha={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Wa=class{#t=Ha;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Oe=new Wa;function $a(e){setTimeout(e,0)}var Te=typeof window>"u"||"Deno"in globalThis;function le(){}function Va(e,t){return typeof e=="function"?e(t):e}function Jt(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ss(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pe(e,t){return typeof e=="function"?e(t):e}function fe(e,t){return typeof e=="function"?e(t):e}function Kn(e,t){const{type:s="all",exact:r,fetchStatus:a,predicate:i,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==hn(l,t.options))return!1}else if(!nt(t.queryKey,l))return!1}if(s!=="all"){const o=t.isActive();if(s==="active"&&!o||s==="inactive"&&o)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||i&&!i(t))}function Bn(e,t){const{exact:s,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(s){if(Re(t.options.mutationKey)!==Re(i))return!1}else if(!nt(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function hn(e,t){return(t?.queryKeyHashFn||Re)(e)}function Re(e){return JSON.stringify(e,(t,s)=>Xt(s)?Object.keys(s).sort().reduce((r,a)=>(r[a]=s[a],r),{}):s)}function nt(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(s=>nt(e[s],t[s])):!1}var Ya=Object.prototype.hasOwnProperty;function fn(e,t){if(e===t)return e;const s=qn(e)&&qn(t);if(!s&&!(Xt(e)&&Xt(t)))return t;const a=(s?e:Object.keys(e)).length,i=s?t:Object.keys(t),l=i.length,c=s?new Array(l):{};let o=0;for(let d=0;d<l;d++){const m=s?d:i[d],u=e[m],h=t[m];if(u===h){c[m]=u,(s?d<a:Ya.call(e,m))&&o++;continue}if(u===null||h===null||typeof u!="object"||typeof h!="object"){c[m]=h;continue}const b=fn(u,h);c[m]=b,b===u&&o++}return a===l&&o===a?e:c}function st(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function qn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xt(e){if(!Un(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Un(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Un(e){return Object.prototype.toString.call(e)==="[object Object]"}function Za(e){return new Promise(t=>{Oe.setTimeout(t,e)})}function en(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?fn(e,t):t}function Ja(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function Xa(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var me=Symbol();function js(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===me?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ks(e,t){return typeof e=="function"?e(...t):!!e}var er=class extends Le{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!Te&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},gn=new er;function tn(){let e,t;const s=new Promise((a,i)=>{e=a,t=i});s.status="pending",s.catch(()=>{});function r(a){Object.assign(s,a),delete s.resolve,delete s.reject}return s.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},s.reject=a=>{r({status:"rejected",reason:a}),t(a)},s}var tr=$a;function nr(){let e=[],t=0,s=c=>{c()},r=c=>{c()},a=tr;const i=c=>{t?e.push(c):a(()=>{s(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(o=>{s(o)})})})};return{batch:c=>{let o;t++;try{o=c()}finally{t--,t||l()}return o},batchCalls:c=>(...o)=>{i(()=>{c(...o)})},schedule:i,setNotifyFunction:c=>{s=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var ee=nr(),sr=class extends Le{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!Te&&window.addEventListener){const t=()=>e(!0),s=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(s=>{s(e)}))}isOnline(){return this.#t}},At=new sr;function ar(e){return Math.min(1e3*2**e,3e4)}function Ns(e){return(e??"online")==="online"?At.isOnline():!0}var nn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Es(e){let t=!1,s=0,r;const a=tn(),i=()=>a.status!=="pending",l=g=>{if(!i()){const x=new nn(g);h(x),e.onCancel?.(x)}},c=()=>{t=!0},o=()=>{t=!1},d=()=>gn.isFocused()&&(e.networkMode==="always"||At.isOnline())&&e.canRun(),m=()=>Ns(e.networkMode)&&e.canRun(),u=g=>{i()||(r?.(),a.resolve(g))},h=g=>{i()||(r?.(),a.reject(g))},b=()=>new Promise(g=>{r=x=>{(i()||d())&&g(x)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),y=()=>{if(i())return;let g;const x=s===0?e.initialPromise:void 0;try{g=x??e.fn()}catch(v){g=Promise.reject(v)}Promise.resolve(g).then(u).catch(v=>{if(i())return;const L=e.retry??(Te?0:3),J=e.retryDelay??ar,Z=typeof J=="function"?J(s,v):J,A=L===!0||typeof L=="number"&&s<L||typeof L=="function"&&L(s,v);if(t||!A){h(v);return}s++,e.onFail?.(s,v),Za(Z).then(()=>d()?void 0:b()).then(()=>{t?h(v):y()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:o,canStart:m,start:()=>(m()?y():b().then(y),a)}}var Ps=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Jt(this.gcTime)&&(this.#t=Oe.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Te?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Oe.clearTimeout(this.#t),this.#t=void 0)}},rr=class extends Ps{#t;#e;#n;#a;#s;#r;#l;constructor(e){super(),this.#l=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Qn(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Qn(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const s=en(this.state.data,e,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),s}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(le).catch(le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>fe(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===me||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pe(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Ss(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#s&&(this.#l?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const s=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},a=()=>{const c=js(this.options,t),d=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#l=!1,this.options.persister?this.options.persister(c,d,this):c(d)},l=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(c),c})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#i({type:"fetch",meta:l.fetchOptions?.meta}),this.#s=Es({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:c=>{c instanceof nn&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(c,o)=>{this.#i({type:"failed",failureCount:c,error:o})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const c=await this.#s.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof nn){if(c.silent)return this.#s.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#i({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#i(e){const t=s=>{switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Rs(s.data,this.options),fetchMeta:e.meta??null};case"success":const r={...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),ee.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Rs(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ns(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Qn(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var rt=class extends Le{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#l=tn(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#s;#r;#l;#i;#p;#u;#m;#c;#d;#o;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Hn(this.#e,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sn(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sn(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fe(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#A(),this.#e.setOptions(this.options),t._defaulted&&!st(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&Wn(this.#e,s,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#e!==s||fe(this.options.enabled,this.#e)!==fe(t.enabled,this.#e)||Pe(this.options.staleTime,this.#e)!==Pe(t.staleTime,this.#e))&&this.#g();const a=this.#x();r&&(this.#e!==s||fe(this.options.enabled,this.#e)!==fe(t.enabled,this.#e)||a!==this.#o)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),s=this.createResult(t,e);return lr(this,s)&&(this.#a=s,this.#r=this.options,this.#s=this.#e.state),s}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(s,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),s=this.#t.getQueryCache().build(this.#t,t);return s.fetch().then(()=>this.createResult(s,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(e){this.#A();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(le)),t}#g(){this.#v();const e=Pe(this.options.staleTime,this.#e);if(Te||this.#a.isStale||!Jt(e))return;const s=Ss(this.#a.dataUpdatedAt,e)+1;this.#c=Oe.setTimeout(()=>{this.#a.isStale||this.updateResult()},s)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#o=e,!(Te||fe(this.options.enabled,this.#e)===!1||!Jt(this.#o)||this.#o===0)&&(this.#d=Oe.setInterval(()=>{(this.options.refetchIntervalInBackground||gn.isFocused())&&this.#h()},this.#o))}#b(){this.#g(),this.#y(this.#x())}#v(){this.#c&&(Oe.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#d&&(Oe.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const s=this.#e,r=this.options,a=this.#a,i=this.#s,l=this.#r,o=e!==s?e.state:this.#n,{state:d}=e;let m={...d},u=!1,h;if(t._optimisticResults){const P=this.hasListeners(),M=!P&&Hn(e,t),T=P&&Wn(e,s,t,r);(M||T)&&(m={...m,...Rs(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:g}=m;h=m.data;let x=!1;if(t.placeholderData!==void 0&&h===void 0&&g==="pending"){let P;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=a.data,x=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,P!==void 0&&(g="success",h=en(a?.data,P,t),u=!0)}if(t.select&&h!==void 0&&!x)if(a&&h===i?.data&&t.select===this.#p)h=this.#u;else try{this.#p=t.select,h=t.select(h),h=en(a?.data,h,t),this.#u=h,this.#i=null}catch(P){this.#i=P}this.#i&&(b=this.#i,h=this.#u,y=Date.now(),g="error");const v=m.fetchStatus==="fetching",L=g==="pending",J=g==="error",Z=L&&v,A=h!==void 0,f={status:g,fetchStatus:m.fetchStatus,isPending:L,isSuccess:g==="success",isError:J,isInitialLoading:Z,isLoading:Z,data:h,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>o.dataUpdateCount||m.errorUpdateCount>o.errorUpdateCount,isFetching:v,isRefetching:v&&!L,isLoadingError:J&&!A,isPaused:m.fetchStatus==="paused",isPlaceholderData:u,isRefetchError:J&&A,isStale:xn(e,t),refetch:this.refetch,promise:this.#l,isEnabled:fe(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=I=>{f.status==="error"?I.reject(f.error):f.data!==void 0&&I.resolve(f.data)},M=()=>{const I=this.#l=f.promise=tn();P(I)},T=this.#l;switch(T.status){case"pending":e.queryHash===s.queryHash&&P(T);break;case"fulfilled":(f.status==="error"||f.data!==T.value)&&M();break;case"rejected":(f.status!=="error"||f.error!==T.reason)&&M();break}}return f}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#r=this.options,this.#s.data!==void 0&&(this.#m=this.#e),st(t,e))return;this.#a=t;const s=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#f.size)return!0;const i=new Set(a??this.#f);return this.options.throwOnError&&i.add("error"),Object.keys(this.#a).some(l=>{const c=l;return this.#a[c]!==e[c]&&i.has(c)})};this.#S({listeners:s()})}#A(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(e){ee.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function ir(e,t){return fe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hn(e,t){return ir(e,t)||e.state.data!==void 0&&sn(e,t,t.refetchOnMount)}function sn(e,t,s){if(fe(t.enabled,e)!==!1&&Pe(t.staleTime,e)!=="static"){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&xn(e,t)}return!1}function Wn(e,t,s,r){return(e!==t||fe(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&xn(e,s)}function xn(e,t){return fe(t.enabled,e)!==!1&&e.isStaleByTime(Pe(t.staleTime,e))}function lr(e,t){return!st(e.getCurrentResult(),t)}function St(e){return{onFetch:(t,s)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},o=0;const d=async()=>{let m=!1;const u=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},h=js(t.options,t.fetchOptions),b=async(y,g,x)=>{if(m)return Promise.reject();if(g==null&&y.pages.length)return Promise.resolve(y);const L=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:g,direction:x?"backward":"forward",meta:t.options.meta};return u(N),N})(),J=await h(L),{maxPages:Z}=t.options,A=x?Xa:Ja;return{pages:A(y.pages,J,Z),pageParams:A(y.pageParams,g,Z)}};if(a&&i.length){const y=a==="backward",g=y?Cs:an,x={pages:i,pageParams:l},v=g(r,x);c=await b(x,v,y)}else{const y=e??i.length;do{const g=o===0?l[0]??r.initialPageParam:an(r,c);if(o>0&&g==null)break;c=await b(c,g),o++}while(o<y)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},s):t.fetchFn=d}}}function an(e,{pages:t,pageParams:s}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,s[r],s):void 0}function Cs(e,{pages:t,pageParams:s}){return t.length>0?e.getPreviousPageParam?.(t[0],t,s[0],s):void 0}function or(e,t){return t?an(e,t)!=null:!1}function cr(e,t){return!t||!e.getPreviousPageParam?!1:Cs(e,t)!=null}var _s=class extends rt{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:St()})}getOptimisticResult(e){return e.behavior=St(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:i,isError:l,isRefetchError:c}=r,o=s.fetchMeta?.fetchMore?.direction,d=l&&o==="forward",m=a&&o==="forward",u=l&&o==="backward",h=a&&o==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:or(t,s.data),hasPreviousPage:cr(t,s.data),isFetchNextPageError:d,isFetchingNextPage:m,isFetchPreviousPageError:u,isFetchingPreviousPage:h,isRefetchError:c&&!d&&!u,isRefetching:i&&!m&&!h}}},dr=class extends Ps{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Ms(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Es({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(new Error("No mutationFn found")),onFail:(i,l)=>{this.#s({type:"failed",failureCount:i,error:l})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#a.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,s);const l=await this.options.onMutate?.(e,s);l!==this.state.context&&this.#s({type:"pending",context:l,variables:e,isPaused:a})}const i=await this.#a.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,s),await this.options.onSuccess?.(i,e,this.state.context,s),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(i,null,e,this.state.context,s),this.#s({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,s),await this.options.onError?.(i,e,this.state.context,s),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,i,e,this.state.context,s),i}finally{this.#s({type:"error",error:i})}}finally{this.#n.runNext(this)}}#s(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),ee.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Ms(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ur=class extends Le{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,s){const r=new dr({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:s});return this.add(r),r}add(e){this.#t.add(e);const t=pt(e);if(typeof t=="string"){const s=this.#e.get(t);s?s.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=pt(e);if(typeof t=="string"){const s=this.#e.get(t);if(s)if(s.length>1){const r=s.indexOf(e);r!==-1&&s.splice(r,1)}else s[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=pt(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=pt(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ee.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(s=>Bn(t,s))}findAll(e={}){return this.getAll().filter(t=>Bn(e,t))}notify(e){ee.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return ee.batch(()=>Promise.all(e.map(t=>t.continue().catch(le))))}};function pt(e){return e.options.scope?.id}var mr=class extends Le{#t;#e=void 0;#n;#a;constructor(e,t){super(),this.#t=e,this.setOptions(t),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#t.defaultMutationOptions(e),st(this.options,t)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&Re(t.mutationKey)!==Re(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#r(e)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(e,t){return this.#a=t,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(e)}#s(){const e=this.#n?.state??Ms();this.#e={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){ee.batch(()=>{if(this.#a&&this.hasListeners()){const t=this.#e.variables,s=this.#e.context,r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#a.onSuccess?.(e.data,t,s,r),this.#a.onSettled?.(e.data,null,t,s,r)):e?.type==="error"&&(this.#a.onError?.(e.error,t,s,r),this.#a.onSettled?.(void 0,e.error,t,s,r))}this.listeners.forEach(t=>{t(this.#e)})})}};function $n(e,t){const s=new Set(t);return e.filter(r=>!s.has(r))}function pr(e,t,s){const r=e.slice(0);return r[t]=s,r}var hr=class extends Le{#t;#e;#n;#a;#s;#r;#l;#i;#p=[];constructor(e,t,s){super(),this.#t=e,this.#a=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,ee.batch(()=>{const s=this.#s,r=this.#c(this.#n);this.#p=r,r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const a=r.map(m=>m.observer),i=a.map(m=>m.getCurrentResult()),l=s.length!==a.length,c=a.some((m,u)=>m!==s[u]),o=l||c,d=o?!0:i.some((m,u)=>{const h=this.#e[u];return!h||!st(m,h)});!o&&!d||(o&&(this.#s=a),this.#e=i,this.hasListeners()&&(o&&($n(s,a).forEach(m=>{m.destroy()}),$n(a,s).forEach(m=>{m.subscribe(u=>{this.#d(m,u)})})),this.#o()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(e=>e.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(e,t){const s=this.#c(e),r=s.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#m(a??r,t),()=>this.#u(r,s)]}#u(e,t){return t.map((s,r)=>{const a=e[r];return s.defaultedQueryOptions.notifyOnChangeProps?a:s.observer.trackResult(a,i=>{t.forEach(l=>{l.observer.trackProp(i)})})})}#m(e,t){return t?((!this.#r||this.#e!==this.#i||t!==this.#l)&&(this.#l=t,this.#i=this.#e,this.#r=fn(this.#r,t(e))),this.#r):e}#c(e){const t=new Map(this.#s.map(r=>[r.options.queryHash,r])),s=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),i=t.get(a.queryHash);i?s.push({defaultedQueryOptions:a,observer:i}):s.push({defaultedQueryOptions:a,observer:new rt(this.#t,a)})}),s}#d(e,t){const s=this.#s.indexOf(e);s!==-1&&(this.#e=pr(this.#e,s,t),this.#o())}#o(){if(this.hasListeners()){const e=this.#r,t=this.#u(this.#e,this.#p),s=this.#m(t,this.#a?.combine);e!==s&&ee.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},fr=class extends Le{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,s){const r=t.queryKey,a=t.queryHash??hn(r,t);let i=this.get(a);return i||(i=new rr({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ee.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(s=>Kn(t,s))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(s=>Kn(e,s)):t}notify(e){ee.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ko=class{#t;#e;#n;#a;#s;#r;#l;#i;constructor(e={}){this.#t=e.queryCache||new fr,this.#e=e.mutationCache||new ur,this.#n=e.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#l=gn.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=At.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),s=this.#t.build(this,t),r=s.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&s.isStaleByTime(Pe(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:s})=>{const r=s.data;return[t,r]})}setQueryData(e,t,s){const r=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(r.queryHash)?.state.data,l=Va(t,i);if(l!==void 0)return this.#t.build(this,r).setData(l,{...s,manual:!0})}setQueriesData(e,t,s){return ee.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,s)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;ee.batch(()=>{t.findAll(e).forEach(s=>{t.remove(s)})})}resetQueries(e,t){const s=this.#t;return ee.batch(()=>(s.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const s={revert:!0,...t},r=ee.batch(()=>this.#t.findAll(e).map(a=>a.cancel(s)));return Promise.all(r).then(le).catch(le)}invalidateQueries(e,t={}){return ee.batch(()=>(this.#t.findAll(e).forEach(s=>{s.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},r=ee.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,s);return s.throwOnError||(i=i.catch(le)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(le)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const s=this.#t.build(this,t);return s.isStaleByTime(Pe(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(le).catch(le)}fetchInfiniteQuery(e){return e.behavior=St(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(le).catch(le)}ensureInfiniteQueryData(e){return e.behavior=St(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return At.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(Re(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],s={};return t.forEach(r=>{nt(e,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(e,t){this.#s.set(Re(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],s={};return t.forEach(r=>{nt(e,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=hn(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===me&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Kt={exports:{}},G={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Vn;function gr(){if(Vn)return G;Vn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),o=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),u=Symbol.for("react.activity"),h=Symbol.iterator;function b(p){return p===null||typeof p!="object"?null:(p=h&&p[h]||p["@@iterator"],typeof p=="function"?p:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,x={};function v(p,S,j){this.props=p,this.context=S,this.refs=x,this.updater=j||y}v.prototype.isReactComponent={},v.prototype.setState=function(p,S){if(typeof p!="object"&&typeof p!="function"&&p!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,p,S,"setState")},v.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function L(){}L.prototype=v.prototype;function J(p,S,j){this.props=p,this.context=S,this.refs=x,this.updater=j||y}var Z=J.prototype=new L;Z.constructor=J,g(Z,v.prototype),Z.isPureReactComponent=!0;var A=Array.isArray;function N(){}var f={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function M(p,S,j){var E=j.ref;return{$$typeof:e,type:p,key:S,ref:E!==void 0?E:null,props:j}}function T(p,S){return M(p.type,S,p.props)}function I(p){return typeof p=="object"&&p!==null&&p.$$typeof===e}function D(p){var S={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(j){return S[j]})}var K=/\/+/g;function q(p,S){return typeof p=="object"&&p!==null&&p.key!=null?D(""+p.key):S.toString(36)}function $(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(N,N):(p.status="pending",p.then(function(S){p.status==="pending"&&(p.status="fulfilled",p.value=S)},function(S){p.status==="pending"&&(p.status="rejected",p.reason=S)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function O(p,S,j,E,C){var z=typeof p;(z==="undefined"||z==="boolean")&&(p=null);var U=!1;if(p===null)U=!0;else switch(z){case"bigint":case"string":case"number":U=!0;break;case"object":switch(p.$$typeof){case e:case t:U=!0;break;case m:return U=p._init,O(U(p._payload),S,j,E,C)}}if(U)return C=C(p),U=E===""?"."+q(p,0):E,A(C)?(j="",U!=null&&(j=U.replace(K,"$&/")+"/"),O(C,S,j,"",function(Ge){return Ge})):C!=null&&(I(C)&&(C=T(C,j+(C.key==null||p&&p.key===C.key?"":(""+C.key).replace(K,"$&/")+"/")+U)),S.push(C)),1;U=0;var W=E===""?".":E+":";if(A(p))for(var te=0;te<p.length;te++)E=p[te],z=W+q(E,te),U+=O(E,S,j,z,C);else if(te=b(p),typeof te=="function")for(p=te.call(p),te=0;!(E=p.next()).done;)E=E.value,z=W+q(E,te++),U+=O(E,S,j,z,C);else if(z==="object"){if(typeof p.then=="function")return O($(p),S,j,E,C);throw S=String(p),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return U}function F(p,S,j){if(p==null)return p;var E=[],C=0;return O(p,E,"","",function(z){return S.call(j,z,C++)}),E}function H(p){if(p._status===-1){var S=p._result;S=S(),S.then(function(j){(p._status===0||p._status===-1)&&(p._status=1,p._result=j)},function(j){(p._status===0||p._status===-1)&&(p._status=2,p._result=j)}),p._status===-1&&(p._status=0,p._result=S)}if(p._status===1)return p._result.default;throw p._result}var Y=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)},X={map:F,forEach:function(p,S,j){F(p,function(){S.apply(this,arguments)},j)},count:function(p){var S=0;return F(p,function(){S++}),S},toArray:function(p){return F(p,function(S){return S})||[]},only:function(p){if(!I(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return G.Activity=u,G.Children=X,G.Component=v,G.Fragment=s,G.Profiler=a,G.PureComponent=J,G.StrictMode=r,G.Suspense=o,G.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,G.__COMPILER_RUNTIME={__proto__:null,c:function(p){return f.H.useMemoCache(p)}},G.cache=function(p){return function(){return p.apply(null,arguments)}},G.cacheSignal=function(){return null},G.cloneElement=function(p,S,j){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var E=g({},p.props),C=p.key;if(S!=null)for(z in S.key!==void 0&&(C=""+S.key),S)!P.call(S,z)||z==="key"||z==="__self"||z==="__source"||z==="ref"&&S.ref===void 0||(E[z]=S[z]);var z=arguments.length-2;if(z===1)E.children=j;else if(1<z){for(var U=Array(z),W=0;W<z;W++)U[W]=arguments[W+2];E.children=U}return M(p.type,C,E)},G.createContext=function(p){return p={$$typeof:l,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:i,_context:p},p},G.createElement=function(p,S,j){var E,C={},z=null;if(S!=null)for(E in S.key!==void 0&&(z=""+S.key),S)P.call(S,E)&&E!=="key"&&E!=="__self"&&E!=="__source"&&(C[E]=S[E]);var U=arguments.length-2;if(U===1)C.children=j;else if(1<U){for(var W=Array(U),te=0;te<U;te++)W[te]=arguments[te+2];C.children=W}if(p&&p.defaultProps)for(E in U=p.defaultProps,U)C[E]===void 0&&(C[E]=U[E]);return M(p,z,C)},G.createRef=function(){return{current:null}},G.forwardRef=function(p){return{$$typeof:c,render:p}},G.isValidElement=I,G.lazy=function(p){return{$$typeof:m,_payload:{_status:-1,_result:p},_init:H}},G.memo=function(p,S){return{$$typeof:d,type:p,compare:S===void 0?null:S}},G.startTransition=function(p){var S=f.T,j={};f.T=j;try{var E=p(),C=f.S;C!==null&&C(j,E),typeof E=="object"&&E!==null&&typeof E.then=="function"&&E.then(N,Y)}catch(z){Y(z)}finally{S!==null&&j.types!==null&&(S.types=j.types),f.T=S}},G.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()},G.use=function(p){return f.H.use(p)},G.useActionState=function(p,S,j){return f.H.useActionState(p,S,j)},G.useCallback=function(p,S){return f.H.useCallback(p,S)},G.useContext=function(p){return f.H.useContext(p)},G.useDebugValue=function(){},G.useDeferredValue=function(p,S){return f.H.useDeferredValue(p,S)},G.useEffect=function(p,S){return f.H.useEffect(p,S)},G.useEffectEvent=function(p){return f.H.useEffectEvent(p)},G.useId=function(){return f.H.useId()},G.useImperativeHandle=function(p,S,j){return f.H.useImperativeHandle(p,S,j)},G.useInsertionEffect=function(p,S){return f.H.useInsertionEffect(p,S)},G.useLayoutEffect=function(p,S){return f.H.useLayoutEffect(p,S)},G.useMemo=function(p,S){return f.H.useMemo(p,S)},G.useOptimistic=function(p,S){return f.H.useOptimistic(p,S)},G.useReducer=function(p,S,j){return f.H.useReducer(p,S,j)},G.useRef=function(p){return f.H.useRef(p)},G.useState=function(p){return f.H.useState(p)},G.useSyncExternalStore=function(p,S,j){return f.H.useSyncExternalStore(p,S,j)},G.useTransition=function(){return f.H.useTransition()},G.version="19.2.1",G}var Yn;function yn(){return Yn||(Yn=1,Kt.exports=gr()),Kt.exports}var w=yn();const R=As(w),Os=qa({__proto__:null,default:R},[w]);var Ts=w.createContext(void 0),it=e=>{const t=w.useContext(Ts);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Bo=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),n.jsx(Ts.Provider,{value:e,children:t})),Is=w.createContext(!1),Ls=()=>w.useContext(Is);Is.Provider;function xr(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var yr=w.createContext(xr()),Ds=()=>w.useContext(yr),zs=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Fs=e=>{w.useEffect(()=>{e.clearReset()},[e])},Gs=({result:e,errorResetBoundary:t,throwOnError:s,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||ks(s,[e.error,r])),bn=(e,t)=>t.state.data===void 0,Ks=e=>{if(e.suspense){const s=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>s(r(...a)):s(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Bs=(e,t)=>e.isLoading&&e.isFetching&&!t,rn=(e,t)=>e?.suspense&&t.isPending,jt=(e,t,s)=>t.fetchOptimistic(e).catch(()=>{s.clearReset()});function qs({queries:e,...t},s){const r=it(s),a=Ls(),i=Ds(),l=w.useMemo(()=>e.map(g=>{const x=r.defaultQueryOptions(g);return x._optimisticResults=a?"isRestoring":"optimistic",x}),[e,r,a]);l.forEach(g=>{Ks(g),zs(g,i)}),Fs(i);const[c]=w.useState(()=>new hr(r,l,t)),[o,d,m]=c.getOptimisticResult(l,t.combine),u=!a&&t.subscribed!==!1;w.useSyncExternalStore(w.useCallback(g=>u?c.subscribe(ee.batchCalls(g)):le,[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),w.useEffect(()=>{c.setQueries(l,t)},[l,t,c]);const b=o.some((g,x)=>rn(l[x],g))?o.flatMap((g,x)=>{const v=l[x];if(v){const L=new rt(r,v);if(rn(v,g))return jt(v,L,i);Bs(g,a)&&jt(v,L,i)}return[]}):[];if(b.length>0)throw Promise.all(b);const y=o.find((g,x)=>{const v=l[x];return v&&Gs({result:g,errorResetBoundary:i,throwOnError:v.throwOnError,query:r.getQueryCache().get(v.queryHash),suspense:v.suspense})});if(y?.error)throw y.error;return d(m())}function Rt(e,t,s){const r=Ls(),a=Ds(),i=it(s),l=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",Ks(l),zs(l,a),Fs(a);const c=!i.getQueryCache().get(l.queryHash),[o]=w.useState(()=>new t(i,l)),d=o.getOptimisticResult(l),m=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(u=>{const h=m?o.subscribe(ee.batchCalls(u)):le;return o.updateResult(),h},[o,m]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),w.useEffect(()=>{o.setOptions(l)},[l,o]),rn(l,d))throw jt(l,o,a);if(Gs({result:d,errorResetBoundary:a,throwOnError:l.throwOnError,query:i.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw d.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(l,d),l.experimental_prefetchInRender&&!Te&&Bs(d,r)&&(c?jt(l,o,a):i.getQueryCache().get(l.queryHash)?.promise)?.catch(le).finally(()=>{o.updateResult()}),l.notifyOnChangeProps?d:o.trackResult(d)}function br(e,t){return Rt(e,rt,t)}function vr(e,t){return Rt({...e,enabled:!0,suspense:!0,throwOnError:bn,placeholderData:void 0},rt,t)}function wr(e,t){return Rt({...e,enabled:!0,suspense:!0,throwOnError:bn},_s,t)}function Ar(e,t){return qs({...e,queries:e.queries.map(s=>({...s,suspense:!0,throwOnError:bn,enabled:!0,placeholderData:void 0}))},t)}function Sr(e,t){const s=it(t);s.getQueryState(e.queryKey)||s.prefetchQuery(e)}function jr(e,t){const s=it(t);s.getQueryState(e.queryKey)||s.prefetchInfiniteQuery(e)}function kr(e,t){const s=it(t),[r]=w.useState(()=>new mr(s,e));w.useEffect(()=>{r.setOptions(e)},[r,e]);const a=w.useSyncExternalStore(w.useCallback(l=>r.subscribe(ee.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=w.useCallback((l,c)=>{r.mutate(l,c).catch(le)},[r]);if(a.error&&ks(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}function Nr(e,t){return Rt(e,_s,t)}function Ie(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const Er=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Us(e){return Er&&Ie(e)&&Symbol.asyncIterator in e}var Pr=Object.create,Qs=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Hs=Object.getOwnPropertyNames,Cr=Object.getPrototypeOf,_r=Object.prototype.hasOwnProperty,lt=(e,t)=>function(){return t||(0,e[Hs(e)[0]])((t={exports:{}}).exports,t),t.exports},Mr=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Hs(t),i=0,l=a.length,c;i<l;i++)c=a[i],!_r.call(e,c)&&c!==s&&Qs(e,c,{get:(o=>t[o]).bind(null,c),enumerable:!(r=Rr(t,c))||r.enumerable});return e},Ct=(e,t,s)=>(s=e!=null?Pr(Cr(e)):{},Mr(Qs(s,"default",{value:e,enumerable:!0}),e));const Ws=()=>{},Zn=e=>{Object.freeze&&Object.freeze(e)};function $s(e,t,s){var r;const a=t.join(".");return(r=s[a])!==null&&r!==void 0||(s[a]=new Proxy(Ws,{get(i,l){if(!(typeof l!="string"||l==="then"))return $s(e,[...t,l],s)},apply(i,l,c){const o=t[t.length-1];let d={args:c,path:t};return o==="call"?d={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:o==="apply"&&(d={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),Zn(d.args),Zn(d.path),e(d)}})),s[a]}const _t=e=>$s(e,[],Object.create(null)),vn=e=>new Proxy(Ws,{get(t,s){if(s!=="then")return e(s)}});var Vs=lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function s(r){"@babel/helpers - typeof";return t.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,s(r)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Or=lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var s=Vs().default;function r(a,i){if(s(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,i||"default");if(s(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Tr=lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var s=Vs().default,r=Or();function a(i){var l=r(i,"string");return s(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ys=lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var s=Tr();function r(a,i,l){return(i=s(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wn=lt({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var s=Ys();function r(i,l){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);l&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),c.push.apply(c,o)}return c}function a(i){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(o){s(i,o,c[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(c,o))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});Ct(wn());Ct(Ys());var ht=Ct(wn());function Ir(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,ht.default)((0,ht.default)({},e),{},{error:r})}}return{ok:!0,result:(0,ht.default)((0,ht.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Bt=class extends Error{constructor(){super("Unable to transform response from server")}};function Lr(e,t){let s;try{s=Ir(e,t)}catch{throw new Bt}if(!s.ok&&(!Ie(s.error.error)||typeof s.error.error.code!="number"))throw new Bt;if(s.ok&&!Ie(s.result))throw new Bt;return s}Ct(wn());function Mt(e){const t={subscribe(s){let r=null,a=!1,i=!1,l=!1;function c(){if(r===null){l=!0;return}i||(i=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(o){var d;a||(d=s.next)===null||d===void 0||d.call(s,o)},error(o){var d;a||(a=!0,(d=s.error)===null||d===void 0||d.call(s,o),c())},complete(){var o;a||(a=!0,(o=s.complete)===null||o===void 0||o.call(s),c())}}),l&&c(),{unsubscribe:c}},pipe(...s){return s.reduce(Dr,t)}};return t}function Dr(e,t){return t(e)}function zr(e){const t=new AbortController;return new Promise((r,a)=>{let i=!1;function l(){i||(i=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const c=e.subscribe({next(o){i=!0,r(o),l()},error(o){a(o)},complete(){t.abort(),l()}})})}var Fr=Object.create,Zs=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Js=Object.getOwnPropertyNames,Kr=Object.getPrototypeOf,Br=Object.prototype.hasOwnProperty,Ce=(e,t)=>function(){return t||(0,e[Js(e)[0]])((t={exports:{}}).exports,t),t.exports},qr=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=Js(t),i=0,l=a.length,c;i<l;i++)c=a[i],!Br.call(e,c)&&c!==s&&Zs(e,c,{get:(o=>t[o]).bind(null,c),enumerable:!(r=Gr(t,c))||r.enumerable});return e},De=(e,t,s)=>(s=e!=null?Fr(Kr(e)):{},qr(t||!e||!e.__esModule?Zs(s,"default",{value:e,enumerable:!0}):s,e)),Ur=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function s(r,a){if(r==null)return{};var i={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;i[l]=r[l]}return i}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Qr=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var s=Ur();function r(a,i){if(a==null)return{};var l,c,o=s(a,i);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);for(c=0;c<d.length;c++)l=d[c],i.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(o[l]=a[l])}return o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xs=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function s(r){"@babel/helpers - typeof";return t.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,s(r)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Hr=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var s=Xs().default;function r(a,i){if(s(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,i||"default");if(s(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Wr=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var s=Xs().default,r=Hr();function a(i){var l=r(i,"string");return s(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),$r=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var s=Wr();function r(a,i,l){return(i=s(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ot=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var s=$r();function r(i,l){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);l&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),c.push.apply(c,o)}return c}function a(i){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(o){s(i,o,c[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(c,o))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vr=De(Qr(),1),Jn=De(ot(),1);const Yr=["cursor","direction"];function Ae(e,t,s){const r=e.flatMap(a=>a.split("."));if(!t&&(!s||s==="any"))return r.length?[r]:[];if(s==="infinite"&&Ie(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:i}=t,l=(0,Vr.default)(t,Yr);return[r,{input:l,type:"infinite"}]}return[r,(0,Jn.default)((0,Jn.default)({},typeof t<"u"&&t!==me&&{input:t}),s&&s!=="any"&&{type:s})]}function bt(e){return Ae(e,void 0,"any")}var Zr=Object.create,ea=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,ta=Object.getOwnPropertyNames,Xr=Object.getPrototypeOf,ei=Object.prototype.hasOwnProperty,je=(e,t)=>function(){return t||(0,e[ta(e)[0]])((t={exports:{}}).exports,t),t.exports},ti=(e,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=ta(t),i=0,l=a.length,c;i<l;i++)c=a[i],!ei.call(e,c)&&c!==s&&ea(e,c,{get:(o=>t[o]).bind(null,c),enumerable:!(r=Jr(t,c))||r.enumerable});return e},ne=(e,t,s)=>(s=e!=null?Zr(Xr(e)):{},ti(t||!e||!e.__esModule?ea(s,"default",{value:e,enumerable:!0}):s,e)),na=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function s(r){"@babel/helpers - typeof";return t.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,s(r)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),ni=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var s=na().default;function r(a,i){if(s(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,i||"default");if(s(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),si=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var s=na().default,r=ni();function a(i){var l=r(i,"string");return s(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),ze=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var s=si();function r(a,i,l){return(i=s(i))in a?Object.defineProperty(a,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[i]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),ve=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var s=ze();function r(i,l){var c=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);l&&(o=o.filter(function(d){return Object.getOwnPropertyDescriptor(i,d).enumerable})),c.push.apply(c,o)}return c}function a(i){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(o){s(i,o,c[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(c,o))})}return i}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function ai(e){return t=>{let s=0,r=null;const a=[];function i(){r||(r=t.subscribe({next(c){for(const d of a){var o;(o=d.next)===null||o===void 0||o.call(d,c)}},error(c){for(const d of a){var o;(o=d.error)===null||o===void 0||o.call(d,c)}},complete(){for(const o of a){var c;(c=o.complete)===null||c===void 0||c.call(o)}}}))}function l(){if(s===0&&r){const c=r;r=null,c.unsubscribe()}}return Mt(c=>(s++,a.push(c),i(),{unsubscribe(){s--,l();const o=a.findIndex(d=>d===c);o>-1&&a.splice(o,1)}}))}}function ri(e){let t=e;const s=[],r=l=>{t!==void 0&&l.next(t),s.push(l)},a=l=>{s.splice(s.indexOf(l),1)},i=Mt(l=>(r(l),()=>{a(l)}));return i.next=l=>{if(t!==l){t=l;for(const c of s)c.next(l)}},i.get=()=>t,i}function ii(e){return Mt(t=>{function s(a=0,i=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:i,next(o){return s(a+1,o)}})}return s().subscribe(t)})}var ft=ne(ze(),1),Qe=ne(ve(),1);function li(e){return e instanceof kt}function oi(e){return Ie(e)&&Ie(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function ci(e,t){return typeof e=="string"?e:Ie(e)&&typeof e.message=="string"?e.message:t}var kt=class vt extends Error{constructor(t,s){var r,a;const i=s?.cause;super(t,{cause:i}),(0,ft.default)(this,"cause",void 0),(0,ft.default)(this,"shape",void 0),(0,ft.default)(this,"data",void 0),(0,ft.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=i,this.shape=s==null||(r=s.result)===null||r===void 0?void 0:r.error,this.data=s==null||(a=s.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,vt.prototype)}static from(t,s={}){const r=t;return li(r)?(s.meta&&(r.meta=(0,Qe.default)((0,Qe.default)({},r.meta),s.meta)),r):oi(r)?new vt(r.error.message,(0,Qe.default)((0,Qe.default)({},s),{},{result:r})):new vt(ci(r,"Unknown error"),(0,Qe.default)((0,Qe.default)({},s),{},{cause:r}))}};function di(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const Xn=e=>typeof e=="function";function ui(e){if(e)return e;if(typeof window<"u"&&Xn(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Xn(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var tt=ne(ve());function mi(e){return{url:e.url.toString(),fetch:e.fetch,transformer:di(e.transformer),methodOverride:e.methodOverride}}function pi(e){const t={};for(let s=0;s<e.length;s++){const r=e[s];t[s]=r}return t}const hi={query:"GET",mutation:"POST",subscription:"PATCH"};function sa(e){return"input"in e?e.transformer.input.serialize(e.input):pi(e.inputs.map(t=>e.transformer.input.serialize(t)))}const aa=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const i=sa(e);i!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(i))}`)}return a.length&&(r+="?"+a.join("&")),r},fi=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=sa(e);return t!==void 0?JSON.stringify(t):void 0},gi=e=>vi((0,tt.default)((0,tt.default)({},e),{},{contentTypeHeader:"application/json",getUrl:aa,getBody:fi}));var xi=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const yi=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new xi};async function bi(e){var t;yi(e.signal);const s=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:hi[e.type],i=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),l=(0,tt.default)((0,tt.default)((0,tt.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),i);return ui(e.fetch)(s,{method:a,signal:e.signal,body:r,headers:l})}async function vi(e){const t={},s=await bi(e);t.response=s;const r=await s.json();return t.responseJSON=r,{json:r,meta:t}}ne(ve(),1);const es=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ts(e){let t=null,s=null;const r=()=>{clearTimeout(s),s=null,t=null};function a(c){const o=[[]];let d=0;for(;;){const h=c[d];if(!h)break;const b=o[o.length-1];if(h.aborted){var m;(m=h.reject)===null||m===void 0||m.call(h,new Error("Aborted")),d++;continue}if(e.validate(b.concat(h).map(g=>g.key))){b.push(h),d++;continue}if(b.length===0){var u;(u=h.reject)===null||u===void 0||u.call(h,new Error("Input is too big for a single dispatch")),d++;continue}o.push([])}return o}function i(){const c=a(t);r();for(const o of c){if(!o.length)continue;const d={items:o};for(const u of o)u.batch=d;e.fetch(d.items.map(u=>u.key)).then(async u=>{await Promise.all(u.map(async(b,y)=>{const g=d.items[y];try{var x;const L=await Promise.resolve(b);(x=g.resolve)===null||x===void 0||x.call(g,L)}catch(L){var v;(v=g.reject)===null||v===void 0||v.call(g,L)}g.batch=null,g.reject=null,g.resolve=null}));for(const b of d.items){var h;(h=b.reject)===null||h===void 0||h.call(b,new Error("Missing result")),b.batch=null}}).catch(u=>{for(const b of d.items){var h;(h=b.reject)===null||h===void 0||h.call(b,u),b.batch=null}})}}function l(c){var o;const d={aborted:!1,key:c,batch:null,resolve:es,reject:es},m=new Promise((u,h)=>{var b;d.reject=h,d.resolve=u,(b=t)!==null&&b!==void 0||(t=[]),t.push(d)});return(o=s)!==null&&o!==void 0||(s=setTimeout(i)),m}return{load:l}}function wi(...e){const t=new AbortController,s=e.length;let r=0;const a=()=>{++r===s&&t.abort()};for(const i of e)i?.aborted?a():i?.addEventListener("abort",a,{once:!0});return t.signal}var gt=ne(ve(),1);function qo(e){var t,s;const r=mi(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,i=(s=e.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const l=m=>({validate(u){if(a===1/0&&i===1/0)return!0;if(u.length>i)return!1;const h=u.map(g=>g.path).join(","),b=u.map(g=>g.input);return aa((0,gt.default)((0,gt.default)({},r),{},{type:m,path:h,inputs:b,signal:null})).length<=a},async fetch(u){const h=u.map(L=>L.path).join(","),b=u.map(L=>L.input),y=wi(...u.map(L=>L.signal)),g=await gi((0,gt.default)((0,gt.default)({},r),{},{path:h,inputs:b,type:m,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:u}):e.headers:{}},signal:y}));return(Array.isArray(g.json)?g.json:u.map(()=>g.json)).map(L=>({meta:g.meta,json:L}))}}),c=ts(l("query")),o=ts(l("mutation")),d={query:c,mutation:o};return({op:m})=>Mt(u=>{/* istanbul ignore if -- @preserve */if(m.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=d[m.type].load(m);let y;return b.then(g=>{y=g;const x=Lr(g.json,r.transformer.output);if(!x.ok){u.error(kt.from(x.error,{meta:g.meta}));return}u.next({context:g.meta,result:x.result}),u.complete()}).catch(g=>{u.error(kt.from(g,{meta:y?.meta}))}),()=>{}})}}ne(ve(),1);const ra=(e,...t)=>typeof e=="function"?e(...t):e;ne(ze(),1);function Ai(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function Si(e){const t=await ra(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function ji(e){const t={method:"connectionParams",data:await ra(e)};return JSON.stringify(t)}ne(ze(),1);var Me=ne(ze(),1);function ki(e){const{promise:t,resolve:s,reject:r}=Ai();return e.addEventListener("open",()=>{e.removeEventListener("error",r),s()}),e.addEventListener("error",r),t}function Ni(e,{intervalMs:t,pongTimeoutMs:s}){let r,a;function i(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},s)},t)}function l(){clearTimeout(r),i()}function c(){clearTimeout(a),l()}e.addEventListener("open",i),e.addEventListener("message",({data:o})=>{clearTimeout(r),i(),o==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var Ei=class ln{constructor(t){var s;if((0,Me.default)(this,"id",++ln.connectCount),(0,Me.default)(this,"WebSocketPonyfill",void 0),(0,Me.default)(this,"urlOptions",void 0),(0,Me.default)(this,"keepAliveOpts",void 0),(0,Me.default)(this,"wsObservable",ri(null)),(0,Me.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=t.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++ln.connectCount;const s=Si(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=s.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&Ni(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await ki(r),t.urlOptions.connectionParams&&r.send(await ji(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var s;(s=t.ws)===null||s===void 0||s.close()}}};(0,Me.default)(Ei,"connectCount",0);ne(ze(),1);ne(ve(),1);var qt=ne(ze(),1),ns=ne(ve(),1),Ot=class{constructor(e){(0,qt.default)(this,"links",void 0),(0,qt.default)(this,"runtime",void 0),(0,qt.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return ii({links:this.links,op:(0,ns.default)((0,ns.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(ai())}async requestAsPromise(e){var t=this;try{const s=t.$request(e);return(await zr(s)).result.data}catch(s){throw kt.from(s)}}query(e,t,s){return this.requestAsPromise({type:"query",path:e,input:t,context:s?.context,signal:s?.signal})}mutation(e,t,s){return this.requestAsPromise({type:"mutation",path:e,input:t,context:s?.context,signal:s?.signal})}subscription(e,t,s){return this.$request({type:"subscription",path:e,input:t,context:s.context,signal:s.signal}).subscribe({next(a){switch(a.result.type){case"state":{var i;(i=s.onConnectionStateChange)===null||i===void 0||i.call(s,a.result);break}case"started":{var l;(l=s.onStarted)===null||l===void 0||l.call(s,{context:a.context});break}case"stopped":{var c;(c=s.onStopped)===null||c===void 0||c.call(s);break}case"data":case void 0:{var o;(o=s.onData)===null||o===void 0||o.call(s,a.result.data);break}}},error(a){var i;(i=s.onError)===null||i===void 0||i.call(s,a)},complete(){var a;(a=s.onComplete)===null||a===void 0||a.call(s)}})}};const ia=Symbol.for("trpc_untypedClient"),Pi={query:"query",mutate:"mutation",subscribe:"subscription"},Ri=e=>Pi[e];function la(e){const t=_t(({path:s,args:r})=>{const a=[...s],i=Ri(a.pop()),l=a.join(".");return e[i](l,...r)});return vn(s=>s===ia?e:t[s])}function Ci(e){const t=new Ot(e);return la(t)}function An(e){return e[ia]}ne(ve(),1);ne(ve(),1);var _i=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function s(a){var i,l,c,o=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);o--;){if(l&&(i=a[l])!=null)return i.call(a);if(c&&(i=a[c])!=null)return new r(i.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(o){return{value:o,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(c){var o=this.s.return;return o===void 0?Promise.resolve({value:c,done:!0}):i(o.apply(this.s,arguments))},throw:function(c){var o=this.s.return;return o===void 0?Promise.reject(c):i(o.apply(this.s,arguments))}},new r(a)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});ne(_i(),1);ne(ve(),1);var Mi=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function s(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,o){var d=Error();return d.name="SuppressedError",d.error=c,d.suppressed=o,d},a={},i=[];function l(c,o){if(o!=null){if(Object(o)!==o)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var d=o[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=o[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var m=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");m&&(d=function(){try{m.call(o)}catch(h){return Promise.reject(h)}}),i.push({v:o,d,a:c})}else c&&i.push({d:o,a:c});return o}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var o,d=this.e,m=0;function u(){for(;o=i.pop();)try{if(!o.a&&m===1)return m=0,i.push(o),Promise.resolve().then(u);if(o.d){var b=o.d.call(o.v);if(o.a)return m|=2,Promise.resolve(b).then(u,h)}else m|=1}catch(y){return h(y)}if(m===1)return d!==a?Promise.reject(d):Promise.resolve();if(d!==a)throw d}function h(b){return d=d!==a?new r(b,d):b,u()}return u()}}}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),oa=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function s(r,a){this.v=r,this.k=a}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Oi=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var s=oa();function r(a){return new s(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ti=je({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var s=oa();function r(i){return function(){return new a(i.apply(this,arguments))}}function a(i){var l,c;function o(m,u){try{var h=i[m](u),b=h.value,y=b instanceof s;Promise.resolve(y?b.v:b).then(function(g){if(y){var x=m==="return"?"return":"next";if(!b.k||g.done)return o(x,g);g=i[x](g).value}d(h.done?"return":"normal",g)},function(g){o("throw",g)})}catch(g){d("throw",g)}}function d(m,u){switch(m){case"return":l.resolve({value:u,done:!0});break;case"throw":l.reject(u);break;default:l.resolve({value:u,done:!1})}(l=l.next)?o(l.key,l.arg):c=null}this._invoke=function(m,u){return new Promise(function(h,b){var y={key:m,arg:u,resolve:h,reject:b,next:null};c?c=c.next=y:(l=c=y,o(m,u))})},typeof i.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(i){return this._invoke("next",i)},a.prototype.throw=function(i){return this._invoke("throw",i)},a.prototype.return=function(i){return this._invoke("return",i)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});ne(Mi(),1);ne(Oi(),1);ne(Ti(),1);ne(ve(),1);function Ii(e){return _t(({path:t,args:s})=>{var r;const a=[...t],i=a.pop();if(i==="useMutation")return e[i](a,...s);if(i==="_def")return{path:a};const[l,...c]=s,o=(r=c[0])!==null&&r!==void 0?r:{};return e[i](a,l,o)})}var Ut;const Li=["client","ssrContext","ssrState","abortOnUnmount"],Di=(Ut=w.createContext)===null||Ut===void 0?void 0:Ut.call(Os,null),zi=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Fi(e){return _t(t=>{const s=[...t.path],r=s.pop(),a=[...t.args],i=a.shift(),l=zi(r),c=Ae(s,i,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(s,c,a[0]),queryOptions:()=>e.queryOptions(s,c,...a),fetch:()=>e.fetchQuery(c,...a),fetchInfinite:()=>e.fetchInfiniteQuery(c,a[0]),prefetch:()=>e.prefetchQuery(c,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,a[0]),ensureData:()=>e.ensureQueryData(c,...a),invalidate:()=>e.invalidateQueries(c,...a),reset:()=>e.resetQueries(c,...a),refetch:()=>e.refetchQueries(c,...a),cancel:()=>e.cancelQuery(c,...a),setData:()=>{e.setQueryData(c,a[0],a[1])},setQueriesData:()=>e.setQueriesData(c,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,a[0],a[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(bt(s),i),getMutationDefaults:()=>e.getMutationDefaults(bt(s)),isMutating:()=>e.isMutating({mutationKey:bt(s)})}[r]()})}function Gi(e){const t=la(e.client),s=Fi(e);return vn(r=>{const a=r;return a==="client"?t:Li.includes(a)?e[a]:s[r]})}var Ki=De(ot(),1);function ss(e){const t=e instanceof Ot?e:An(e);return _t(s=>{const r=s.path,a=r.join("."),[i,l]=s.args;return(0,Ki.default)({queryKey:Ae(r,i,"query"),queryFn:()=>t.query(a,i,l?.trpc)},l)})}var Qt=De(ot(),1);function oe(e,t,s){var r;const a=e[0];let i=(r=e[1])===null||r===void 0?void 0:r.input;if(s){var l;i=(0,Qt.default)((0,Qt.default)((0,Qt.default)({},(l=i)!==null&&l!==void 0?l:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[a.join("."),i,t?.trpc]}var Bi=Ce({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function s(a){var i,l,c,o=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);o--;){if(l&&(i=a[l])!=null)return i.call(a);if(c&&(i=a[c])!=null)return new r(i.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function i(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(o){return{value:o,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(c){var o=this.s.return;return o===void 0?Promise.resolve({value:c,done:!0}):i(o.apply(this.s,arguments))},throw:function(c){var o=this.s.return;return o===void 0?Promise.reject(c):i(o.apply(this.s,arguments))}},new r(a)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),qi=De(Bi(),1);function on(e){return{path:e.path.join(".")}}function et(e){const t=on(e);return w.useMemo(()=>t,[t])}async function ca(e,t,s){const a=t.getQueryCache().build(t,{queryKey:s});a.setState({data:[],status:"success"});const i=[];var l=!1,c=!1,o;try{for(var d=(0,qi.default)(e),m;l=!(m=await d.next()).done;l=!1){const u=m.value;i.push(u),a.setState({data:[...i]})}}catch(u){c=!0,o=u}finally{try{l&&d.return!=null&&await d.return()}finally{if(c)throw o}}return i}var V=De(ot(),1);function Ui(e){const{client:t,queryClient:s}=e,r=t instanceof Ot?t:An(t);return{infiniteQueryOptions:(a,i,l)=>{var c,o;const d=((c=i[1])===null||c===void 0?void 0:c.input)===me,m=async u=>{var h;const b=(0,V.default)((0,V.default)({},l),{},{trpc:(0,V.default)((0,V.default)({},l?.trpc),!(l==null||(h=l.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:u.signal}:{signal:null})});return await r.query(...oe(i,b,{direction:u.direction,pageParam:u.pageParam}))};return Object.assign((0,V.default)((0,V.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:d?me:m,initialPageParam:(o=l?.initialCursor)!==null&&o!==void 0?o:null}),{trpc:on({path:a})})},queryOptions:(a,i,l)=>{var c;const o=((c=i[1])===null||c===void 0?void 0:c.input)===me,d=async m=>{var u;const h=(0,V.default)((0,V.default)({},l),{},{trpc:(0,V.default)((0,V.default)({},l?.trpc),!(l==null||(u=l.trpc)===null||u===void 0)&&u.abortOnUnmount?{signal:m.signal}:{signal:null})}),b=await r.query(...oe(i,h));return Us(b)?ca(b,s,i):b};return Object.assign((0,V.default)((0,V.default)({},l),{},{initialData:l?.initialData,queryKey:i,queryFn:o?me:d}),{trpc:on({path:a})})},fetchQuery:(a,i)=>s.fetchQuery((0,V.default)((0,V.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...oe(a,i))})),fetchInfiniteQuery:(a,i)=>{var l;return s.fetchInfiniteQuery((0,V.default)((0,V.default)({},i),{},{queryKey:a,queryFn:({pageParam:c,direction:o})=>r.query(...oe(a,i,{pageParam:c,direction:o})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,i)=>s.prefetchQuery((0,V.default)((0,V.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...oe(a,i))})),prefetchInfiniteQuery:(a,i)=>{var l;return s.prefetchInfiniteQuery((0,V.default)((0,V.default)({},i),{},{queryKey:a,queryFn:({pageParam:c,direction:o})=>r.query(...oe(a,i,{pageParam:c,direction:o})),initialPageParam:(l=i?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,i)=>s.ensureQueryData((0,V.default)((0,V.default)({},i),{},{queryKey:a,queryFn:()=>r.query(...oe(a,i))})),invalidateQueries:(a,i,l)=>s.invalidateQueries((0,V.default)((0,V.default)({},i),{},{queryKey:a}),l),resetQueries:(a,i,l)=>s.resetQueries((0,V.default)((0,V.default)({},i),{},{queryKey:a}),l),refetchQueries:(a,i,l)=>s.refetchQueries((0,V.default)((0,V.default)({},i),{},{queryKey:a}),l),cancelQuery:(a,i)=>s.cancelQueries({queryKey:a},i),setQueryData:(a,i,l)=>s.setQueryData(a,i,l),setQueriesData:(a,i,l,c)=>s.setQueriesData((0,V.default)((0,V.default)({},i),{},{queryKey:a}),l,c),getQueryData:a=>s.getQueryData(a),setInfiniteQueryData:(a,i,l)=>s.setQueryData(a,i,l),getInfiniteQueryData:a=>s.getQueryData(a),setMutationDefaults:(a,i)=>{const l=a[0],c=o=>r.mutation(...oe([l,{input:o}],e));return s.setMutationDefaults(a,typeof i=="function"?i({canonicalMutationFn:c}):i)},getMutationDefaults:a=>s.getMutationDefaults(a),isMutating:a=>s.isMutating((0,V.default)((0,V.default)({},a),{},{exact:!0}))}}var _=De(ot());const as=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function Qi(e){var t,s;const r=(t=void 0)!==null&&t!==void 0?t:A=>A.originalFn(),a=(s=void 0)!==null&&s!==void 0?s:Di,i=Ci,l=A=>{var N;const{abortOnUnmount:f=!1,queryClient:P,ssrContext:M}=A,[T,I]=w.useState((N=A.ssrState)!==null&&N!==void 0?N:!1),D=A.client instanceof Ot?A.client:An(A.client),K=w.useMemo(()=>Ui({client:D,queryClient:P}),[D,P]),q=w.useMemo(()=>(0,_.default)({abortOnUnmount:f,queryClient:P,client:D,ssrContext:M??null,ssrState:T},K),[f,D,K,P,M,T]);return w.useEffect(()=>{I($=>$?"mounted":!1)},[]),n.jsx(a.Provider,{value:q,children:A.children})};function c(){const A=w.useContext(a);if(!A)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return A}function o(A,N){var f;const{queryClient:P,ssrState:M}=c();return M&&M!=="mounted"&&((f=P.getQueryCache().find({queryKey:A}))===null||f===void 0?void 0:f.state.status)==="error"?(0,_.default)({retryOnMount:!1},N):N}function d(A,N,f){var P,M,T,I,D;const K=c(),{abortOnUnmount:q,client:$,ssrState:O,queryClient:F,prefetchQuery:H}=K,Y=Ae(A,N,"query"),X=F.getQueryDefaults(Y),p=N===me;typeof window>"u"&&O==="prepass"&&(f==null||(P=f.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&((M=f?.enabled)!==null&&M!==void 0?M:X?.enabled)!==!1&&!p&&!F.getQueryCache().find({queryKey:Y})&&H(Y,f);const S=o(Y,(0,_.default)((0,_.default)({},X),f)),j=(T=(I=f==null||(D=f.trpc)===null||D===void 0?void 0:D.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&T!==void 0?T:q,E=br((0,_.default)((0,_.default)({},S),{},{queryKey:Y,queryFn:p?N:async C=>{const z=(0,_.default)((0,_.default)({},S),{},{trpc:(0,_.default)((0,_.default)({},S?.trpc),j?{signal:C.signal}:{signal:null})}),U=await $.query(...oe(Y,z));return Us(U)?ca(U,F,Y):U}}),F);return E.trpc=et({path:A}),E}function m(A,N,f){var P,M,T;const I=c(),D=Ae(A,N,"query"),K=N===me,q=(P=(M=f==null||(T=f.trpc)===null||T===void 0?void 0:T.abortOnUnmount)!==null&&M!==void 0?M:void 0)!==null&&P!==void 0?P:I.abortOnUnmount;Sr((0,_.default)((0,_.default)({},f),{},{queryKey:D,queryFn:K?N:$=>{const O={trpc:(0,_.default)((0,_.default)({},f?.trpc),q?{signal:$.signal}:{})};return I.client.query(...oe(D,O))}}))}function u(A,N,f){var P,M,T;const I=c(),D=Ae(A,N,"query"),K=(P=(M=f==null||(T=f.trpc)===null||T===void 0?void 0:T.abortOnUnmount)!==null&&M!==void 0?M:void 0)!==null&&P!==void 0?P:I.abortOnUnmount,q=vr((0,_.default)((0,_.default)({},f),{},{queryKey:D,queryFn:$=>{const O=(0,_.default)((0,_.default)({},f),{},{trpc:(0,_.default)((0,_.default)({},f?.trpc),K?{signal:$.signal}:{signal:null})});return I.client.query(...oe(D,O))}}),I.queryClient);return q.trpc=et({path:A}),[q.data,q]}function h(A,N){const{client:f,queryClient:P}=c(),M=bt(A),T=P.defaultMutationOptions(P.getMutationDefaults(M)),I=kr((0,_.default)((0,_.default)({},N),{},{mutationKey:M,mutationFn:D=>f.mutation(...oe([A,{input:D}],N)),onSuccess(...D){var K,q;return r({originalFn:()=>{var O,F,H;return(O=N==null||(F=N.onSuccess)===null||F===void 0?void 0:F.call(N,...D))!==null&&O!==void 0?O:T==null||(H=T.onSuccess)===null||H===void 0?void 0:H.call(T,...D)},queryClient:P,meta:(K=(q=N?.meta)!==null&&q!==void 0?q:T?.meta)!==null&&K!==void 0?K:{}})}}),P);return I.trpc=et({path:A}),I}const b={data:void 0,error:null,status:"idle"},y={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function g(A,N,f){var P;const M=(P=f?.enabled)!==null&&P!==void 0?P:N!==me,T=Re(Ae(A,N,"any")),{client:I}=c(),D=w.useRef(f);w.useEffect(()=>{D.current=f});const[K]=w.useState(new Set([])),q=w.useCallback(p=>{K.add(p)},[K]),$=w.useRef(null),O=w.useCallback(p=>{const S=H.current,j=H.current=p(S);let E=!1;for(const C of K)if(S[C]!==j[C]){E=!0;break}E&&X(as(j,q))},[q,K]),F=w.useCallback(()=>{var p;if((p=$.current)===null||p===void 0||p.unsubscribe(),!M){O(()=>(0,_.default)((0,_.default)({},b),{},{reset:F}));return}O(()=>(0,_.default)((0,_.default)({},y),{},{reset:F}));const S=I.subscription(A.join("."),N??void 0,{onStarted:()=>{var j,E;(j=(E=D.current).onStarted)===null||j===void 0||j.call(E),O(C=>(0,_.default)((0,_.default)({},C),{},{status:"pending",error:null}))},onData:j=>{var E,C;(E=(C=D.current).onData)===null||E===void 0||E.call(C,j),O(z=>(0,_.default)((0,_.default)({},z),{},{status:"pending",data:j,error:null}))},onError:j=>{var E,C;(E=(C=D.current).onError)===null||E===void 0||E.call(C,j),O(z=>(0,_.default)((0,_.default)({},z),{},{status:"error",error:j}))},onConnectionStateChange:j=>{O(E=>{switch(j.state){case"idle":return(0,_.default)((0,_.default)({},E),{},{status:j.state,error:null,data:void 0});case"connecting":return(0,_.default)((0,_.default)({},E),{},{error:j.error,status:j.state});case"pending":return E}})},onComplete:()=>{var j,E;(j=(E=D.current).onComplete)===null||j===void 0||j.call(E),O(C=>(0,_.default)((0,_.default)({},C),{},{status:"idle",error:null,data:void 0}))}});$.current=S},[I,T,M,O]);w.useEffect(()=>(F(),()=>{var p;(p=$.current)===null||p===void 0||p.unsubscribe()}),[F]);const H=w.useRef(M?(0,_.default)((0,_.default)({},y),{},{reset:F}):(0,_.default)((0,_.default)({},b),{},{reset:F})),[Y,X]=w.useState(as(H.current,q));return Y}function x(A,N,f){var P,M,T,I,D;const{client:K,ssrState:q,prefetchInfiniteQuery:$,queryClient:O,abortOnUnmount:F}=c(),H=Ae(A,N,"infinite"),Y=O.getQueryDefaults(H),X=N===me;typeof window>"u"&&q==="prepass"&&(f==null||(P=f.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&((M=f?.enabled)!==null&&M!==void 0?M:Y?.enabled)!==!1&&!X&&!O.getQueryCache().find({queryKey:H})&&$(H,(0,_.default)((0,_.default)({},Y),f));const p=o(H,(0,_.default)((0,_.default)({},Y),f)),S=(T=f==null||(I=f.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&T!==void 0?T:F,j=Nr((0,_.default)((0,_.default)({},p),{},{initialPageParam:(D=f.initialCursor)!==null&&D!==void 0?D:null,persister:f.persister,queryKey:H,queryFn:X?N:E=>{var C;const z=(0,_.default)((0,_.default)({},p),{},{trpc:(0,_.default)((0,_.default)({},p?.trpc),S?{signal:E.signal}:{signal:null})});return K.query(...oe(H,z,{pageParam:(C=E.pageParam)!==null&&C!==void 0?C:f.initialCursor,direction:E.direction}))}}),O);return j.trpc=et({path:A}),j}function v(A,N,f){var P,M,T;const I=c(),D=Ae(A,N,"infinite"),K=I.queryClient.getQueryDefaults(D),q=N===me,$=o(D,(0,_.default)((0,_.default)({},K),f)),O=(P=f==null||(M=f.trpc)===null||M===void 0?void 0:M.abortOnUnmount)!==null&&P!==void 0?P:I.abortOnUnmount;jr((0,_.default)((0,_.default)({},f),{},{initialPageParam:(T=f.initialCursor)!==null&&T!==void 0?T:null,queryKey:D,queryFn:q?N:F=>{var H;const Y=(0,_.default)((0,_.default)({},$),{},{trpc:(0,_.default)((0,_.default)({},$?.trpc),O?{signal:F.signal}:{})});return I.client.query(...oe(D,Y,{pageParam:(H=F.pageParam)!==null&&H!==void 0?H:f.initialCursor,direction:F.direction}))}}))}function L(A,N,f){var P,M,T;const I=c(),D=Ae(A,N,"infinite"),K=I.queryClient.getQueryDefaults(D),q=o(D,(0,_.default)((0,_.default)({},K),f)),$=(P=f==null||(M=f.trpc)===null||M===void 0?void 0:M.abortOnUnmount)!==null&&P!==void 0?P:I.abortOnUnmount,O=wr((0,_.default)((0,_.default)({},f),{},{initialPageParam:(T=f.initialCursor)!==null&&T!==void 0?T:null,queryKey:D,queryFn:F=>{var H;const Y=(0,_.default)((0,_.default)({},q),{},{trpc:(0,_.default)((0,_.default)({},q?.trpc),$?{signal:F.signal}:{})});return I.client.query(...oe(D,Y,{pageParam:(H=F.pageParam)!==null&&H!==void 0?H:f.initialCursor,direction:F.direction}))}}),I.queryClient);return O.trpc=et({path:A}),[O.data,O]}return{Provider:l,createClient:i,useContext:c,useUtils:c,useQuery:d,usePrefetchQuery:m,useSuspenseQuery:u,useQueries:(A,N)=>{const{ssrState:f,queryClient:P,prefetchQuery:M,client:T}=c(),I=ss(T),D=A(I);if(typeof window>"u"&&f==="prepass")for(const q of D){var K;const $=q;((K=$.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&!P.getQueryCache().find({queryKey:$.queryKey})&&M($.queryKey,$)}return qs({queries:D.map(q=>(0,_.default)((0,_.default)({},q),{},{queryKey:q.queryKey})),combine:N?.combine},P)},useSuspenseQueries:A=>{const{queryClient:N,client:f}=c(),P=ss(f),M=A(P),T=Ar({queries:M.map(I=>(0,_.default)((0,_.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},N);return[T.map(I=>I.data),T]},useMutation:h,useSubscription:g,useInfiniteQuery:x,usePrefetchInfiniteQuery:v,useSuspenseInfiniteQuery:L}}function Hi(e){const t=Ii(e);return vn(s=>s==="useContext"||s==="useUtils"?()=>{const r=e.useUtils();return w.useMemo(()=>Gi(r),[r])}:e.hasOwnProperty(s)?e[s]:t[s])}function Wi(e){const t=Qi();return Hi(t)}const Q=Wi();var Ht={exports:{}},ie={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rs;function $i(){if(rs)return ie;rs=1;var e=yn();function t(o){var d="https://react.dev/errors/"+o;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+o+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(t(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(o,d,m){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:u==null?null:""+u,children:o,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(o,d){if(o==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ie.createPortal=function(o,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(o,d,null,m)},ie.flushSync=function(o){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,o)return o()}finally{l.T=d,r.p=m,r.d.f()}},ie.preconnect=function(o,d){typeof o=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(o,d))},ie.prefetchDNS=function(o){typeof o=="string"&&r.d.D(o)},ie.preinit=function(o,d){if(typeof o=="string"&&d&&typeof d.as=="string"){var m=d.as,u=c(m,d.crossOrigin),h=typeof d.integrity=="string"?d.integrity:void 0,b=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(o,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:u,integrity:h,fetchPriority:b}):m==="script"&&r.d.X(o,{crossOrigin:u,integrity:h,fetchPriority:b,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ie.preinitModule=function(o,d){if(typeof o=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(o,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(o)},ie.preload=function(o,d){if(typeof o=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,u=c(m,d.crossOrigin);r.d.L(o,m,{crossOrigin:u,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ie.preloadModule=function(o,d){if(typeof o=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(o,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(o)},ie.requestFormReset=function(o){r.d.r(o)},ie.unstable_batchedUpdates=function(o,d){return o(d)},ie.useFormState=function(o,d,m){return l.H.useFormState(o,d,m)},ie.useFormStatus=function(){return l.H.useHostTransitionStatus()},ie.version="19.2.1",ie}var is;function Vi(){if(is)return Ht.exports;is=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ht.exports=$i(),Ht.exports}var Yi=Vi();const Zi=As(Yi);function Ji(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",t.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}const Xi=e=>{switch(e){case"success":return nl;case"info":return al;case"warning":return sl;case"error":return rl;default:return null}},el=Array(12).fill(0),tl=({visible:e,className:t})=>R.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},R.createElement("div",{className:"sonner-spinner"},el.map((s,r)=>R.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),nl=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),sl=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),al=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),rl=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},R.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),il=R.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},R.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),R.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ll=()=>{const[e,t]=R.useState(document.hidden);return R.useEffect(()=>{const s=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),e};let cn=1;class ol{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const s=this.subscribers.indexOf(t);this.subscribers.splice(s,1)}),this.publish=t=>{this.subscribers.forEach(s=>s(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var s;const{message:r,...a}=t,i=typeof t?.id=="number"||((s=t.id)==null?void 0:s.length)>0?t.id:cn++,l=this.toasts.find(o=>o.id===i),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),l?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...t,id:i,title:r}),{...o,...t,id:i,dismissible:c,title:r}):o):this.addToast({title:r,...a,dismissible:c,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:t,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(r=>r({id:s.id,dismiss:!0}))}),t),this.message=(t,s)=>this.create({...s,message:t}),this.error=(t,s)=>this.create({...s,message:t,type:"error"}),this.success=(t,s)=>this.create({...s,type:"success",message:t}),this.info=(t,s)=>this.create({...s,type:"info",message:t}),this.warning=(t,s)=>this.create({...s,type:"warning",message:t}),this.loading=(t,s)=>this.create({...s,type:"loading",message:t}),this.promise=(t,s)=>{if(!s)return;let r;s.loading!==void 0&&(r=this.create({...s,promise:t,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,l;const c=a.then(async d=>{if(l=["resolve",d],R.isValidElement(d))i=!1,this.create({id:r,type:"default",message:d});else if(dl(d)&&!d.ok){i=!1;const u=typeof s.error=="function"?await s.error(`HTTP error! status: ${d.status}`):s.error,h=typeof s.description=="function"?await s.description(`HTTP error! status: ${d.status}`):s.description,y=typeof u=="object"&&!R.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...y})}else if(d instanceof Error){i=!1;const u=typeof s.error=="function"?await s.error(d):s.error,h=typeof s.description=="function"?await s.description(d):s.description,y=typeof u=="object"&&!R.isValidElement(u)?u:{message:u};this.create({id:r,type:"error",description:h,...y})}else if(s.success!==void 0){i=!1;const u=typeof s.success=="function"?await s.success(d):s.success,h=typeof s.description=="function"?await s.description(d):s.description,y=typeof u=="object"&&!R.isValidElement(u)?u:{message:u};this.create({id:r,type:"success",description:h,...y})}}).catch(async d=>{if(l=["reject",d],s.error!==void 0){i=!1;const m=typeof s.error=="function"?await s.error(d):s.error,u=typeof s.description=="function"?await s.description(d):s.description,b=typeof m=="object"&&!R.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:u,...b})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),s.finally==null||s.finally.call(s)}),o=()=>new Promise((d,m)=>c.then(()=>l[0]==="reject"?m(l[1]):d(l[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:o}:Object.assign(r,{unwrap:o})},this.custom=(t,s)=>{const r=s?.id||cn++;return this.create({jsx:t(r),id:r,...s}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const ce=new ol,cl=(e,t)=>{const s=t?.id||cn++;return ce.addToast({title:e,...t,id:s}),s},dl=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ul=cl,ml=()=>ce.toasts,pl=()=>ce.getActiveToasts(),ge=Object.assign(ul,{success:ce.success,info:ce.info,warning:ce.warning,error:ce.error,custom:ce.custom,message:ce.message,promise:ce.promise,dismiss:ce.dismiss,loading:ce.loading},{getHistory:ml,getToasts:pl});Ji("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function xt(e){return e.label!==void 0}const hl=3,fl="24px",gl="16px",ls=4e3,xl=356,yl=14,bl=45,vl=200;function we(...e){return e.filter(Boolean).join(" ")}function wl(e){const[t,s]=e.split("-"),r=[];return t&&r.push(t),s&&r.push(s),r}const Al=e=>{var t,s,r,a,i,l,c,o,d;const{invert:m,toast:u,unstyled:h,interacting:b,setHeights:y,visibleToasts:g,heights:x,index:v,toasts:L,expanded:J,removeToast:Z,defaultRichColors:A,closeButton:N,style:f,cancelButtonStyle:P,actionButtonStyle:M,className:T="",descriptionClassName:I="",duration:D,position:K,gap:q,expandByDefault:$,classNames:O,icons:F,closeButtonAriaLabel:H="Close toast"}=e,[Y,X]=R.useState(null),[p,S]=R.useState(null),[j,E]=R.useState(!1),[C,z]=R.useState(!1),[U,W]=R.useState(!1),[te,Ge]=R.useState(!1),[ct,Ke]=R.useState(!1),[_a,Dt]=R.useState(0),[Ma,Cn]=R.useState(0),Je=R.useRef(u.duration||D||ls),_n=R.useRef(null),ke=R.useRef(null),Oa=v===0,Ta=v+1<=g,de=u.type,Be=u.dismissible!==!1,Ia=u.className||"",La=u.descriptionClassName||"",dt=R.useMemo(()=>x.findIndex(B=>B.toastId===u.id)||0,[x,u.id]),Da=R.useMemo(()=>{var B;return(B=u.closeButton)!=null?B:N},[u.closeButton,N]),Mn=R.useMemo(()=>u.duration||D||ls,[u.duration,D]),zt=R.useRef(0),qe=R.useRef(0),On=R.useRef(0),Ue=R.useRef(null),[za,Fa]=K.split("-"),Tn=R.useMemo(()=>x.reduce((B,se,re)=>re>=dt?B:B+se.height,0),[x,dt]),In=ll(),Ga=u.invert||m,Ft=de==="loading";qe.current=R.useMemo(()=>dt*q+Tn,[dt,Tn]),R.useEffect(()=>{Je.current=Mn},[Mn]),R.useEffect(()=>{E(!0)},[]),R.useEffect(()=>{const B=ke.current;if(B){const se=B.getBoundingClientRect().height;return Cn(se),y(re=>[{toastId:u.id,height:se,position:u.position},...re]),()=>y(re=>re.filter(ue=>ue.toastId!==u.id))}},[y,u.id]),R.useLayoutEffect(()=>{if(!j)return;const B=ke.current,se=B.style.height;B.style.height="auto";const re=B.getBoundingClientRect().height;B.style.height=se,Cn(re),y(ue=>ue.find(ae=>ae.toastId===u.id)?ue.map(ae=>ae.toastId===u.id?{...ae,height:re}:ae):[{toastId:u.id,height:re,position:u.position},...ue])},[j,u.title,u.description,y,u.id,u.jsx,u.action,u.cancel]);const Ee=R.useCallback(()=>{z(!0),Dt(qe.current),y(B=>B.filter(se=>se.toastId!==u.id)),setTimeout(()=>{Z(u)},vl)},[u,Z,y,qe]);R.useEffect(()=>{if(u.promise&&de==="loading"||u.duration===1/0||u.type==="loading")return;let B;return J||b||In?(()=>{if(On.current<zt.current){const ue=new Date().getTime()-zt.current;Je.current=Je.current-ue}On.current=new Date().getTime()})():(()=>{Je.current!==1/0&&(zt.current=new Date().getTime(),B=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),Ee()},Je.current))})(),()=>clearTimeout(B)},[J,b,u,de,In,Ee]),R.useEffect(()=>{u.delete&&(Ee(),u.onDismiss==null||u.onDismiss.call(u,u))},[Ee,u.delete]);function Ka(){var B;if(F?.loading){var se;return R.createElement("div",{className:we(O?.loader,u==null||(se=u.classNames)==null?void 0:se.loader,"sonner-loader"),"data-visible":de==="loading"},F.loading)}return R.createElement(tl,{className:we(O?.loader,u==null||(B=u.classNames)==null?void 0:B.loader),visible:de==="loading"})}const Ba=u.icon||F?.[de]||Xi(de);var Ln,Dn;return R.createElement("li",{tabIndex:0,ref:ke,className:we(T,Ia,O?.toast,u==null||(t=u.classNames)==null?void 0:t.toast,O?.default,O?.[de],u==null||(s=u.classNames)==null?void 0:s[de]),"data-sonner-toast":"","data-rich-colors":(Ln=u.richColors)!=null?Ln:A,"data-styled":!(u.jsx||u.unstyled||h),"data-mounted":j,"data-promise":!!u.promise,"data-swiped":ct,"data-removed":C,"data-visible":Ta,"data-y-position":za,"data-x-position":Fa,"data-index":v,"data-front":Oa,"data-swiping":U,"data-dismissible":Be,"data-type":de,"data-invert":Ga,"data-swipe-out":te,"data-swipe-direction":p,"data-expanded":!!(J||$&&j),"data-testid":u.testId,style:{"--index":v,"--toasts-before":v,"--z-index":L.length-v,"--offset":`${C?_a:qe.current}px`,"--initial-height":$?"auto":`${Ma}px`,...f,...u.style},onDragEnd:()=>{W(!1),X(null),Ue.current=null},onPointerDown:B=>{B.button!==2&&(Ft||!Be||(_n.current=new Date,Dt(qe.current),B.target.setPointerCapture(B.pointerId),B.target.tagName!=="BUTTON"&&(W(!0),Ue.current={x:B.clientX,y:B.clientY})))},onPointerUp:()=>{var B,se,re;if(te||!Be)return;Ue.current=null;const ue=Number(((B=ke.current)==null?void 0:B.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ut=Number(((se=ke.current)==null?void 0:se.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ae=new Date().getTime()-((re=_n.current)==null?void 0:re.getTime()),he=Y==="x"?ue:ut,mt=Math.abs(he)/ae;if(Math.abs(he)>=bl||mt>.11){Dt(qe.current),u.onDismiss==null||u.onDismiss.call(u,u),S(Y==="x"?ue>0?"right":"left":ut>0?"down":"up"),Ee(),Ge(!0);return}else{var xe,ye;(xe=ke.current)==null||xe.style.setProperty("--swipe-amount-x","0px"),(ye=ke.current)==null||ye.style.setProperty("--swipe-amount-y","0px")}Ke(!1),W(!1),X(null)},onPointerMove:B=>{var se,re,ue;if(!Ue.current||!Be||((se=window.getSelection())==null?void 0:se.toString().length)>0)return;const ae=B.clientY-Ue.current.y,he=B.clientX-Ue.current.x;var mt;const xe=(mt=e.swipeDirections)!=null?mt:wl(K);!Y&&(Math.abs(he)>1||Math.abs(ae)>1)&&X(Math.abs(he)>Math.abs(ae)?"x":"y");let ye={x:0,y:0};const zn=_e=>1/(1.5+Math.abs(_e)/20);if(Y==="y"){if(xe.includes("top")||xe.includes("bottom"))if(xe.includes("top")&&ae<0||xe.includes("bottom")&&ae>0)ye.y=ae;else{const _e=ae*zn(ae);ye.y=Math.abs(_e)<Math.abs(ae)?_e:ae}}else if(Y==="x"&&(xe.includes("left")||xe.includes("right")))if(xe.includes("left")&&he<0||xe.includes("right")&&he>0)ye.x=he;else{const _e=he*zn(he);ye.x=Math.abs(_e)<Math.abs(he)?_e:he}(Math.abs(ye.x)>0||Math.abs(ye.y)>0)&&Ke(!0),(re=ke.current)==null||re.style.setProperty("--swipe-amount-x",`${ye.x}px`),(ue=ke.current)==null||ue.style.setProperty("--swipe-amount-y",`${ye.y}px`)}},Da&&!u.jsx&&de!=="loading"?R.createElement("button",{"aria-label":H,"data-disabled":Ft,"data-close-button":!0,onClick:Ft||!Be?()=>{}:()=>{Ee(),u.onDismiss==null||u.onDismiss.call(u,u)},className:we(O?.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Dn=F?.close)!=null?Dn:il):null,(de||u.icon||u.promise)&&u.icon!==null&&(F?.[de]!==null||u.icon)?R.createElement("div",{"data-icon":"",className:we(O?.icon,u==null||(a=u.classNames)==null?void 0:a.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||Ka():null,u.type!=="loading"?Ba:null):null,R.createElement("div",{"data-content":"",className:we(O?.content,u==null||(i=u.classNames)==null?void 0:i.content)},R.createElement("div",{"data-title":"",className:we(O?.title,u==null||(l=u.classNames)==null?void 0:l.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?R.createElement("div",{"data-description":"",className:we(I,La,O?.description,u==null||(c=u.classNames)==null?void 0:c.description)},typeof u.description=="function"?u.description():u.description):null),R.isValidElement(u.cancel)?u.cancel:u.cancel&&xt(u.cancel)?R.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||P,onClick:B=>{xt(u.cancel)&&Be&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,B),Ee())},className:we(O?.cancelButton,u==null||(o=u.classNames)==null?void 0:o.cancelButton)},u.cancel.label):null,R.isValidElement(u.action)?u.action:u.action&&xt(u.action)?R.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||M,onClick:B=>{xt(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,B),!B.defaultPrevented&&Ee())},className:we(O?.actionButton,u==null||(d=u.classNames)==null?void 0:d.actionButton)},u.action.label):null)};function os(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Sl(e,t){const s={};return[e,t].forEach((r,a)=>{const i=a===1,l=i?"--mobile-offset":"--offset",c=i?gl:fl;function o(d){["top","right","bottom","left"].forEach(m=>{s[`${l}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?o(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?s[`${l}-${d}`]=c:s[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):o(c)}),s}const Uo=R.forwardRef(function(t,s){const{id:r,invert:a,position:i="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:o,className:d,offset:m,mobileOffset:u,theme:h="light",richColors:b,duration:y,style:g,visibleToasts:x=hl,toastOptions:v,dir:L=os(),gap:J=yl,icons:Z,containerAriaLabel:A="Notifications"}=t,[N,f]=R.useState([]),P=R.useMemo(()=>r?N.filter(j=>j.toasterId===r):N.filter(j=>!j.toasterId),[N,r]),M=R.useMemo(()=>Array.from(new Set([i].concat(P.filter(j=>j.position).map(j=>j.position)))),[P,i]),[T,I]=R.useState([]),[D,K]=R.useState(!1),[q,$]=R.useState(!1),[O,F]=R.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),H=R.useRef(null),Y=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),X=R.useRef(null),p=R.useRef(!1),S=R.useCallback(j=>{f(E=>{var C;return(C=E.find(z=>z.id===j.id))!=null&&C.delete||ce.dismiss(j.id),E.filter(({id:z})=>z!==j.id)})},[]);return R.useEffect(()=>ce.subscribe(j=>{if(j.dismiss){requestAnimationFrame(()=>{f(E=>E.map(C=>C.id===j.id?{...C,delete:!0}:C))});return}setTimeout(()=>{Zi.flushSync(()=>{f(E=>{const C=E.findIndex(z=>z.id===j.id);return C!==-1?[...E.slice(0,C),{...E[C],...j},...E.slice(C+1)]:[j,...E]})})})}),[N]),R.useEffect(()=>{if(h!=="system"){F(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),typeof window>"u")return;const j=window.matchMedia("(prefers-color-scheme: dark)");try{j.addEventListener("change",({matches:E})=>{F(E?"dark":"light")})}catch{j.addListener(({matches:C})=>{try{F(C?"dark":"light")}catch(z){console.error(z)}})}},[h]),R.useEffect(()=>{N.length<=1&&K(!1)},[N]),R.useEffect(()=>{const j=E=>{var C;if(l.every(W=>E[W]||E.code===W)){var U;K(!0),(U=H.current)==null||U.focus()}E.code==="Escape"&&(document.activeElement===H.current||(C=H.current)!=null&&C.contains(document.activeElement))&&K(!1)};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[l]),R.useEffect(()=>{if(H.current)return()=>{X.current&&(X.current.focus({preventScroll:!0}),X.current=null,p.current=!1)}},[H.current]),R.createElement("section",{ref:s,"aria-label":`${A} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},M.map((j,E)=>{var C;const[z,U]=j.split("-");return P.length?R.createElement("ol",{key:j,dir:L==="auto"?os():L,tabIndex:-1,ref:H,className:d,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":z,"data-x-position":U,style:{"--front-toast-height":`${((C=T[0])==null?void 0:C.height)||0}px`,"--width":`${xl}px`,"--gap":`${J}px`,...g,...Sl(m,u)},onBlur:W=>{p.current&&!W.currentTarget.contains(W.relatedTarget)&&(p.current=!1,X.current&&(X.current.focus({preventScroll:!0}),X.current=null))},onFocus:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||p.current||(p.current=!0,X.current=W.relatedTarget)},onMouseEnter:()=>K(!0),onMouseMove:()=>K(!0),onMouseLeave:()=>{q||K(!1)},onDragEnd:()=>K(!1),onPointerDown:W=>{W.target instanceof HTMLElement&&W.target.dataset.dismissible==="false"||$(!0)},onPointerUp:()=>$(!1)},P.filter(W=>!W.position&&E===0||W.position===j).map((W,te)=>{var Ge,ct;return R.createElement(Al,{key:W.id,icons:Z,index:te,toast:W,defaultRichColors:b,duration:(Ge=v?.duration)!=null?Ge:y,className:v?.className,descriptionClassName:v?.descriptionClassName,invert:a,visibleToasts:x,closeButton:(ct=v?.closeButton)!=null?ct:o,interacting:q,position:j,style:v?.style,unstyled:v?.unstyled,classNames:v?.classNames,cancelButtonStyle:v?.cancelButtonStyle,actionButtonStyle:v?.actionButtonStyle,closeButtonAriaLabel:v?.closeButtonAriaLabel,removeToast:S,toasts:P.filter(Ke=>Ke.position==W.position),heights:T.filter(Ke=>Ke.position==W.position),setHeights:I,expandByDefault:c,gap:J,expanded:D,swipeDirections:t.swipeDirections})})):null}))});function jl(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var s,r,a,i,l=[],c="",o=e.split("/");for(o[0]||o.shift();a=o.shift();)s=a[0],s==="*"?(l.push(s),c+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(r=a.indexOf("?",1),i=a.indexOf(".",1),l.push(a.substring(1,~r?r:~i?i:a.length)),c+=~r&&!~i?"(?:/([^/]+?))?":"/([^/]+?)",~i&&(c+=(~r?"?":"")+"\\"+a.substring(i))):c+="/"+a;return{keys:l,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}var Wt={exports:{}},$t={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var cs;function kl(){if(cs)return $t;cs=1;var e=yn();function t(u,h){return u===h&&(u!==0||1/u===1/h)||u!==u&&h!==h}var s=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function c(u,h){var b=h(),y=r({inst:{value:b,getSnapshot:h}}),g=y[0].inst,x=y[1];return i(function(){g.value=b,g.getSnapshot=h,o(g)&&x({inst:g})},[u,b,h]),a(function(){return o(g)&&x({inst:g}),u(function(){o(g)&&x({inst:g})})},[u]),l(b),b}function o(u){var h=u.getSnapshot;u=u.value;try{var b=h();return!s(u,b)}catch{return!0}}function d(u,h){return h()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return $t.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,$t}var ds;function Nl(){return ds||(ds=1,Wt.exports=kl()),Wt.exports}var El=Nl();const Pl=Os.useInsertionEffect,Rl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Cl=Rl?w.useLayoutEffect:w.useEffect,_l=Pl||Cl,da=e=>{const t=w.useRef([e,(...s)=>t[0](...s)]).current;return _l(()=>{t[0]=e}),t[1]},Ml="popstate",Sn="pushState",jn="replaceState",Ol="hashchange",us=[Ml,Sn,jn,Ol],Tl=e=>{for(const t of us)addEventListener(t,e);return()=>{for(const t of us)removeEventListener(t,e)}},ua=(e,t)=>El.useSyncExternalStore(Tl,e,t),Il=()=>location.search,Ll=({ssrSearch:e=""}={})=>ua(Il,()=>e),ms=()=>location.pathname,Dl=({ssrPath:e}={})=>ua(ms,e?()=>e:ms),zl=(e,{replace:t=!1,state:s=null}={})=>history[t?jn:Sn](s,"",e),Fl=(e={})=>[Dl(e),zl],ps=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[ps]>"u"){for(const e of[Sn,jn]){const t=history[e];history[e]=function(){const s=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),s}}Object.defineProperty(window,ps,{value:!0})}const Gl=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",ma=(e="")=>e==="/"?"":e,Kl=(e,t)=>e[0]==="~"?e.slice(1):ma(t)+e,Bl=(e="",t)=>Gl(dn(ma(e)),dn(t)),ql=e=>e[0]==="?"?e.slice(1):e,dn=e=>{try{return decodeURI(e)}catch{return e}},Ul=e=>dn(ql(e)),pa={hook:Fl,searchHook:Ll,parser:jl,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},ha=w.createContext(pa),Ve=()=>w.useContext(ha),fa={},ga=w.createContext(fa),Ql=()=>w.useContext(ga),Tt=e=>{const[t,s]=e.hook(e);return[Bl(e.base,t),da((r,a)=>s(Kl(r,e.base),a))]},xa=()=>Tt(Ve()),ya=()=>{const e=Ve();return Ul(e.searchHook(e))},ba=(e,t,s,r)=>{const{pattern:a,keys:i}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(s)||[],[c,...o]=l;return c!==void 0?[!0,(()=>{const d=i!==!1?Object.fromEntries(i.map((u,h)=>[u,o[h]])):l.groups;let m={...o};return d&&Object.assign(m,d),m})(),...r?[c]:[]]:[!1,null]},Hl=({children:e,...t})=>{const s=Ve(),r=t.hook?pa:s;let a=r;const[i,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=i),t.hrefs=t.hrefs??t.hook?.hrefs;let c=w.useRef({}),o=c.current,d=o;for(let m in r){const u=m==="base"?r[m]+(t[m]||""):t[m]||r[m];o===d&&u!==d[m]&&(c.current=d={...d}),d[m]=u,(u!==r[m]||u!==a[m])&&(a=d)}return w.createElement(ha.Provider,{value:a,children:e})},hs=({children:e,component:t},s)=>t?w.createElement(t,{params:s}):typeof e=="function"?e(s):e,Wl=e=>{let t=w.useRef(fa);const s=t.current;return t.current=Object.keys(e).length!==Object.keys(s).length||Object.entries(e).some(([r,a])=>a!==s[r])?e:s},Qo=({path:e,nest:t,match:s,...r})=>{const a=Ve(),[i]=Tt(a),[l,c,o]=s??ba(a.parser,e,i,t),d=Wl({...Ql(),...c});if(!l)return null;const m=o?w.createElement(Hl,{base:o},hs(r,d)):hs(r,d);return w.createElement(ga.Provider,{value:d,children:m})},Ho=w.forwardRef((e,t)=>{const s=Ve(),[r,a]=Tt(s),{to:i="",href:l=i,onClick:c,asChild:o,children:d,className:m,replace:u,state:h,...b}=e,y=da(x=>{x.ctrlKey||x.metaKey||x.altKey||x.shiftKey||x.button!==0||(c?.(x),x.defaultPrevented||(x.preventDefault(),a(l,e)))}),g=s.hrefs(l[0]==="~"?l.slice(1):s.base+l,s);return o&&w.isValidElement(d)?w.cloneElement(d,{onClick:y,href:g}):w.createElement("a",{...b,onClick:y,href:g,className:m?.call?m(r===l):m,children:d,ref:t})}),un=e=>Array.isArray(e)?e.flatMap(t=>un(t&&t.type===w.Fragment?t.props.children:t)):[e],Wo=({children:e,location:t})=>{const s=Ve(),[r]=Tt(s);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),un(e).forEach(i=>{if(w.isValidElement(i)&&i.props.path){const l=i.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const a of un(e)){let i=0;if(w.isValidElement(a)&&(i=ba(s.parser,a.props.path,t||r,a.props.nest))[0])return w.cloneElement(a,{match:i})}return null};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),va=(...e)=>e.filter((t,s,r)=>!!t&&r.indexOf(t)===s).join(" ");/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Vl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yl=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:l,...c},o)=>w.createElement("svg",{ref:o,...Vl,width:t,height:t,stroke:e,strokeWidth:r?Number(s)*24/Number(t):s,className:va("lucide",a),...c},[...l.map(([d,m])=>w.createElement(d,m)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const k=(e,t)=>{const s=w.forwardRef(({className:r,...a},i)=>w.createElement(Yl,{ref:i,iconNode:t,className:va(`lucide-${$l(e)}`,r),...a}));return s.displayName=`${e}`,s};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $o=k("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kn=k("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vo=k("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yo=k("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zo=k("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jo=k("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xo=k("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ec=k("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tc=k("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wa=k("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nc=k("Car",[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sc=k("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Aa=k("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ac=k("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sa=k("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rc=k("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nt=k("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zl=k("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ne=k("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ic=k("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pe=k("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const It=k("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nn=k("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jl=k("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fe=k("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lc=k("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oc=k("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cc=k("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dc=k("Droplets",[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",key:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xl=k("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Et=k("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const at=k("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eo=k("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uc=k("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const to=k("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mc=k("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const no=k("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pc=k("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hc=k("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fc=k("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gc=k("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ja=k("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ka=k("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xc=k("Lamp",[["path",{d:"M8 2h8l4 10H4L8 2Z",key:"9dma5w"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M8 22v-2c0-1.1.9-2 2-2h4a2 2 0 0 1 2 2v2H8Z",key:"mwf4oh"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yc=k("Laptop",[["path",{d:"M20 16V7a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v9m16 0H4m16 0 1.28 2.55a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45L4 16",key:"tarvll"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bc=k("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vc=k("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wc=k("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ac=k("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sc=k("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Na=k("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const so=k("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lt=k("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ao=k("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ro=k("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fs=k("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jc=k("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kc=k("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Nc=k("Move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const En=k("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ec=k("PackageX",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const He=k("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pc=k("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ea=k("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const io=k("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pt=k("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rc=k("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const be=k("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cc=k("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _c=k("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ye=k("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mc=k("Scale",[["path",{d:"m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"7g6ntu"}],["path",{d:"m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z",key:"ijws7r"}],["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2",key:"3gwbw2"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oc=k("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pa=k("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lo=k("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pn=k("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oo=k("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tc=k("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ra=k("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ic=k("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lc=k("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const co=k("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dc=k("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zc=k("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fc=k("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gc=k("Syringe",[["path",{d:"m18 2 4 4",key:"22kx64"}],["path",{d:"m17 7 3-3",key:"1w1zoj"}],["path",{d:"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5",key:"1exhtz"}],["path",{d:"m9 11 4 4",key:"rovt3i"}],["path",{d:"m5 19-3 3",key:"59f2uf"}],["path",{d:"m14 4 6 6",key:"yqp9t2"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kc=k("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gs=k("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bc=k("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const We=k("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $e=k("ToggleRight",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"16",cy:"12",r:"2",key:"4ma0v8"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ze=k("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qc=k("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uc=k("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qc=k("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uo=k("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hc=k("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wc=k("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $c=k("Wind",[["path",{d:"M17.7 7.7a2.5 2.5 0 1 1 1.8 4.3H2",key:"1k4u03"}],["path",{d:"M9.6 4.6A2 2 0 1 1 11 8H2",key:"b7d0fd"}],["path",{d:"M12.6 19.4A2 2 0 1 0 14 16H2",key:"1p5cb3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vc=k("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ca=k("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yc=k("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);let wt={isAdmin:!1,loading:!0},mn=!1;const pn=new Set;function Rn(e){wt=e,pn.forEach(t=>t(e))}async function mo(e=3){for(let t=0;t<e;t++)try{return(await fetch("/api/admin/me",{credentials:"include"})).ok}catch{t<e-1&&await new Promise(s=>setTimeout(s,500))}return!1}function po(){mn||(mn=!0,mo().then(e=>{Rn({isAdmin:e,loading:!1})}))}function ho(e){Rn({isAdmin:e,loading:!1})}function fo(){const[e,t]=w.useState(wt);return w.useEffect(()=>(pn.add(t),po(),wt.loading||t(wt),()=>{pn.delete(t)}),[]),e}async function go(){await fetch("/api/admin/logout",{method:"POST",credentials:"include"}),mn=!1,Rn({isAdmin:!1,loading:!1})}function xo(){const[e,t]=w.useState(""),[s,r]=w.useState(""),[a,i]=w.useState(!1),[l,c]=w.useState(null),[o,d]=w.useState(null),[m,u]=w.useState(null),[h,b]=w.useState(0),[y,g]=w.useState(!1),[,x]=xa(),v=w.useRef(null);w.useEffect(()=>(m&&m>0&&(b(m*60),v.current=setInterval(()=>{b(A=>A<=1?(clearInterval(v.current),u(null),c(null),0):A-1)},1e3)),()=>{v.current&&clearInterval(v.current)}),[m]);function L(A){const N=Math.floor(A/60),f=A%60;return`${N}:${f.toString().padStart(2,"0")}`}async function J(A){A.preventDefault(),c(null),d(null),g(!0);try{const N=await fetch("/api/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:e.trim(),password:s})}),f=await N.json().catch(()=>({}));N.ok&&f.ok?(ho(!0),x("/admin")):N.status===429?(u(f.lockedMinutes??15),c(f.error??"Zu viele Fehlversuche.")):(c(f.error??"Anmeldung fehlgeschlagen"),f.attemptsLeft!==void 0&&d(f.attemptsLeft))}catch{c("Verbindungsfehler. Bitte versuchen Sie es erneut.")}finally{g(!1)}}const Z=m!==null&&h>0;return n.jsx("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:95",className:"min-h-screen flex items-center justify-center p-4",style:{background:"#f0f2f5"},children:n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:99",className:"w-full max-w-sm bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden",style:{fontFamily:"Inter, system-ui, sans-serif"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:104",className:"px-8 pt-8 pb-6 text-center border-b border-gray-100",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:105",className:"w-12 h-12 rounded-xl flex items-center justify-center mx-auto mb-4",style:{background:"rgba(13,27,62,0.07)"},children:n.jsx(Na,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:109",size:20,style:{color:"#0d1b3e"}})}),n.jsx("h1",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:111",className:"text-lg font-bold",style:{color:"#0d1b3e"},children:"Adminbereich"}),n.jsx("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:114",className:"text-sm text-gray-500 mt-1",children:"Bitte melden Sie sich an, um fortzufahren."})]}),n.jsxs("form",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:120",onSubmit:J,className:"px-8 py-6 space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:122",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:123",htmlFor:"admin-user",className:"block text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1.5",children:"Benutzername"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:129",className:"relative",children:[n.jsx("span",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:130",className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400 pointer-events-none",children:n.jsx(uo,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:131",size:15})}),n.jsx("input",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:133",id:"admin-user",type:"text",value:e,onChange:A=>t(A.target.value),required:!0,autoFocus:!0,autoComplete:"username",disabled:Z,className:"w-full pl-9 pr-4 py-2.5 rounded-xl border border-gray-200 text-sm outline-none transition-all focus:border-blue-500 focus:ring-2 focus:ring-blue-100 disabled:opacity-50 disabled:cursor-not-allowed",style:{color:"#0d1b3e"},placeholder:"Benutzername"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:150",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:151",htmlFor:"admin-pw",className:"block text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1.5",children:"Passwort"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:157",className:"relative",children:[n.jsx("input",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:158",id:"admin-pw",type:a?"text":"password",value:s,onChange:A=>r(A.target.value),required:!0,autoComplete:"current-password",disabled:Z,className:"w-full px-4 py-2.5 pr-10 rounded-xl border border-gray-200 text-sm outline-none transition-all focus:border-blue-500 focus:ring-2 focus:ring-blue-100 disabled:opacity-50 disabled:cursor-not-allowed",style:{color:"#0d1b3e"},placeholder:"••••••••"}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:170",type:"button",onClick:()=>i(A=>!A),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 transition-colors",tabIndex:-1,"aria-label":a?"Passwort verbergen":"Passwort anzeigen",children:a?n.jsx(Et,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:177",size:16}):n.jsx(at,{"data-loc":"client/src/pages/admin/AdminLogin.tsx:177",size:16})})]})]}),l&&n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:184",className:`text-sm rounded-xl px-4 py-2.5 border ${Z?"text-orange-700 bg-orange-50 border-orange-100":"text-red-600 bg-red-50 border-red-100"}`,children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:191",children:l}),Z&&h>0&&n.jsxs("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:193",className:"mt-1 font-mono font-semibold text-orange-800",children:["Entsperrung in: ",L(h)]}),!Z&&o!==null&&o>0&&n.jsxs("p",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:198",className:"mt-1 text-xs text-red-500",children:["Noch ",o," Versuch",o!==1?"e":""," vor Sperrung"]})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminLogin.tsx:206",type:"submit",disabled:y||!e||!s||Z,className:"w-full py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed",style:{background:"#0d1b3e"},children:y?"Anmelden …":Z?"Gesperrt":"Anmelden"})]})]})})}const Zc=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),yo=[{heading:"Kommunikation",items:[{label:"Anfragen",href:"/admin",icon:ja}]},{heading:"Konfiguration",items:[{label:"Wizard-Konfiguration",href:"/admin?tab=wizard",icon:Pn},{label:"Suchindex",href:"/admin/search-index",icon:Pa}]},{heading:"Content",items:[{label:"Gyn-News",href:"/admin/gyn-news",icon:En},{label:"SEO-Wochenbericht",href:"/admin/seo-report",icon:Aa}]},{heading:"Retourenportal",items:[{label:"Retouren verwalten",href:"/admin/retouren",icon:He}]},{heading:"Einstellungen",items:[{label:"E-Mail-Einstellungen",href:"/admin/email-einstellungen",icon:Lt},{label:"E-Mail Log",href:"/admin/email-log",icon:Jl}]},{heading:"Katalog",items:[{label:"Katalogbestellungen",href:"/admin/katalog-bestellungen",icon:He}]}];function Se({children:e,title:t,breadcrumb:s}){const{isAdmin:r,loading:a}=fo(),[i,l]=xa(),[c,o]=w.useState(!1),d=ya();if(a)return n.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:104",className:"min-h-screen flex items-center justify-center",style:{background:"#f8f7f4"},children:n.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:105",className:"w-8 h-8 rounded-full border-2 border-blue-500 border-t-transparent animate-spin"})});if(!r)return l("/admin/login"),null;const m=h=>{if(h.includes("?")){const[b,y]=h.split("?");if(b!==i)return!1;const g=new URLSearchParams(y),x=new URLSearchParams(d??"");for(const v of Array.from(g.entries()))if(x.get(v[0])!==v[1])return!1;return!0}return h==="/admin"?(i==="/admin"||i==="/admin/")&&!d:i===h||i.startsWith(h+"/")};async function u(){await go(),l("/admin/login")}return n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:143",className:"min-h-screen flex",style:{background:"#f0f2f5"},children:[c&&n.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:146",className:"fixed inset-0 z-30 bg-black/50 backdrop-blur-sm lg:hidden",onClick:()=>o(!1)}),n.jsxs("aside",{"data-loc":"client/src/components/AdminLayout.tsx:153",className:`fixed inset-y-0 left-0 z-40 w-64 flex flex-col transition-transform duration-300 ease-out lg:static lg:translate-x-0 lg:z-auto ${c?"translate-x-0":"-translate-x-full"}`,style:{background:"#0d1b3e"},children:[n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:160",className:"px-6 py-5 border-b flex items-center justify-between",style:{borderColor:"rgba(255,255,255,0.08)"},children:[n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:161",children:[n.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:162",className:"text-xs font-bold tracking-widest uppercase mb-0.5",style:{color:"#3b82f6",fontFamily:"DM Sans, sans-serif"},children:"Stusche"}),n.jsx("h1",{"data-loc":"client/src/components/AdminLayout.tsx:168",className:"font-semibold text-white text-base",style:{fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:"Administration"})]}),n.jsx("button",{"data-loc":"client/src/components/AdminLayout.tsx:175",onClick:()=>o(!1),className:"lg:hidden p-1.5 rounded-lg transition-all",style:{color:"rgba(255,255,255,0.4)"},children:n.jsx(Ca,{"data-loc":"client/src/components/AdminLayout.tsx:180",size:16})})]}),n.jsx("nav",{"data-loc":"client/src/components/AdminLayout.tsx:185",className:"flex-1 py-5 px-3 overflow-y-auto space-y-6",children:yo.map(h=>n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:187",children:[n.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:188",className:"px-3 mb-2 text-xs font-semibold tracking-widest uppercase",style:{color:"rgba(255,255,255,0.3)",fontFamily:"DM Sans, sans-serif"},children:h.heading}),n.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:194",className:"space-y-0.5",children:h.items.map(({label:b,href:y,icon:g})=>{const x=m(y);return n.jsxs("button",{"data-loc":"client/src/components/AdminLayout.tsx:198",onClick:()=>{l(y),o(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all group",style:{background:x?"rgba(59,130,246,0.15)":"transparent",color:x?"#ffffff":"rgba(255,255,255,0.5)",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(g,{"data-loc":"client/src/components/AdminLayout.tsx:211",size:15,style:{color:x?"#3b82f6":"rgba(255,255,255,0.4)",flexShrink:0}}),n.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:215",className:"flex-1 text-left",children:b}),x&&n.jsx(Nt,{"data-loc":"client/src/components/AdminLayout.tsx:217",size:13,style:{color:"rgba(59,130,246,0.6)"}})]},y)})})]},h.heading))}),n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:228",className:"px-3 py-4 space-y-0.5",style:{borderTop:"1px solid rgba(255,255,255,0.08)"},children:[n.jsxs("button",{"data-loc":"client/src/components/AdminLayout.tsx:229",onClick:()=>l("/"),className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all",style:{color:"rgba(255,255,255,0.4)",fontFamily:"DM Sans, sans-serif"},onMouseEnter:h=>{h.currentTarget.style.color="rgba(255,255,255,0.8)",h.currentTarget.style.background="rgba(255,255,255,0.05)"},onMouseLeave:h=>{h.currentTarget.style.color="rgba(255,255,255,0.4)",h.currentTarget.style.background="transparent"},children:[n.jsx(kn,{"data-loc":"client/src/components/AdminLayout.tsx:242",size:15,style:{flexShrink:0}}),"Zur Website"]}),n.jsxs("button",{"data-loc":"client/src/components/AdminLayout.tsx:245",onClick:u,className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-xl text-sm font-medium transition-all",style:{color:"rgba(255,255,255,0.4)",fontFamily:"DM Sans, sans-serif"},onMouseEnter:h=>{h.currentTarget.style.color="#f87171",h.currentTarget.style.background="rgba(239,68,68,0.08)"},onMouseLeave:h=>{h.currentTarget.style.color="rgba(255,255,255,0.4)",h.currentTarget.style.background="transparent"},children:[n.jsx(so,{"data-loc":"client/src/components/AdminLayout.tsx:258",size:15,style:{flexShrink:0}}),"Abmelden"]})]})]}),n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:265",className:"flex-1 flex flex-col min-w-0 min-h-screen",children:[n.jsxs("header",{"data-loc":"client/src/components/AdminLayout.tsx:267",className:"lg:hidden sticky top-0 z-20 flex items-center gap-3 px-4 py-3 border-b",style:{background:"#ffffff",borderColor:"#e5e7eb"},children:[n.jsx("button",{"data-loc":"client/src/components/AdminLayout.tsx:271",onClick:()=>o(!0),className:"p-2 rounded-lg transition-all",style:{color:"#6b7280"},children:n.jsx(ro,{"data-loc":"client/src/components/AdminLayout.tsx:276",size:20})}),n.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:278",className:"font-semibold text-sm",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif"},children:s??t})]}),n.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:287",className:"hidden lg:block px-8 py-6 border-b",style:{background:"#ffffff",borderColor:"#e5e7eb"},children:n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:291",className:"flex items-center justify-between",children:[n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:292",children:[n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:293",className:"flex items-center gap-2 mb-1",children:[n.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:294",className:"text-xs font-semibold tracking-widest uppercase",style:{color:"#3b82f6",fontFamily:"DM Sans, sans-serif"},children:"Admin"}),n.jsx(Nt,{"data-loc":"client/src/components/AdminLayout.tsx:300",size:12,style:{color:"#9ca3af"}}),n.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:301",className:"text-xs font-semibold tracking-widest uppercase",style:{color:"#9ca3af",fontFamily:"DM Sans, sans-serif"},children:s??t})]}),n.jsx("h1",{"data-loc":"client/src/components/AdminLayout.tsx:308",className:"text-2xl font-bold",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.02em"},children:t})]}),n.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:315",className:"flex items-center gap-3",children:n.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:316",className:"flex items-center gap-2 px-3 py-1.5 rounded-full text-xs font-semibold",style:{background:"rgba(59,130,246,0.08)",color:"#3b82f6",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(Na,{"data-loc":"client/src/components/AdminLayout.tsx:320",size:11}),"Administrator"]})})]})}),n.jsx("main",{"data-loc":"client/src/components/AdminLayout.tsx:328",className:"flex-1 p-6 lg:p-8",children:e})]})]})}const bo=[{configKey:"general_contact",label:"Allgemeine Kontaktanfrage",steps:[{id:"topic",title:"Was interessiert Sie?",subtitle:"Wählen Sie Ihr Thema (Mehrfachauswahl möglich)",type:"checkbox",options:[{id:"praxisbedarf",label:"Praxisbedarf & Verbrauchsmaterial"},{id:"sprechstundenbedarf",label:"Sprechstundenbedarf (§ 300 SGB V)"},{id:"techservice",label:"Technischer Service & Wartung"},{id:"praxisplanung",label:"Praxisplanung & Einrichtung"},{id:"praxisportal",label:"Praxisportal (Online-Bestellung)"},{id:"medimatic",label:"SCHMITZ medi-matic® Liegen"}]},{id:"urgency",title:"Wann benötigen Sie Unterstützung?",type:"radio",options:[{id:"asap",label:"So schnell wie möglich"},{id:"weeks",label:"In den nächsten Wochen"},{id:"planning",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"medimatic_offer",label:"SCHMITZ medi-matic® – Angebot anfordern",steps:[{id:"interest",title:"Was interessiert Sie bei der medi-matic®?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"price",label:"Preisanfrage"},{id:"demo",label:"Produktdemo / Vorführung"},{id:"compare",label:"Vergleich mit aktuellem Gerät"},{id:"financing",label:"Finanzierungsoptionen"},{id:"service",label:"Wartung & Service"}]},{id:"quantity",title:"Wie viele Liegen benötigen Sie?",type:"radio",options:[{id:"1",label:"1 Liege"},{id:"2-3",label:"2–3 Liegen"},{id:"4+",label:"4 oder mehr"},{id:"unknown",label:"Noch unklar"}]}]},{configKey:"praxisbedarf_inquiry",label:"Praxisbedarf – Beratungsanfrage",steps:[{id:"category",title:"Welche Produktkategorie interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"verbrauch",label:"Verbrauchsmaterial (Handschuhe, Spritzen, …)"},{id:"diagnostik",label:"Diagnostik & Instrumente"},{id:"hygiene",label:"Hygiene & Desinfektion"},{id:"praxisausstattung",label:"Praxisausstattung & Mobiliar"},{id:"it",label:"IT & Praxissoftware"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"asap",label:"Sofortbedarf (innerhalb 48h)"},{id:"week",label:"Diese Woche"},{id:"planning",label:"Langfristige Planung"}]}]},{configKey:"sprechstundenbedarf_inquiry",label:"Sprechstundenbedarf – Beratungsanfrage",steps:[{id:"specialty",title:"Welche Fachrichtung hat Ihre Praxis?",type:"radio",options:[{id:"gyn",label:"Gynäkologie"},{id:"allgemein",label:"Allgemeinmedizin / Hausarzt"},{id:"paed",label:"Pädiatrie"},{id:"other",label:"Andere Fachrichtung"}]},{id:"interest",title:"Was möchten Sie wissen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"info",label:"Allgemeine Informationen zu § 300 SGB V"},{id:"setup",label:"Einrichtung des Praxisportals"},{id:"products",label:"Produktsortiment & Verfügbarkeit"},{id:"billing",label:"Abrechnung & Kassenabwicklung"}]}]},{configKey:"techservice_inquiry",label:"Technischer Service – Anfrage",steps:[{id:"service_type",title:"Welche Art von Service benötigen Sie?",type:"checkbox",options:[{id:"wartung",label:"Wartung & Inspektion (STK/MTK)"},{id:"reparatur",label:"Reparatur / Störungsbeseitigung"},{id:"validierung",label:"Validierung (Autoklav, Thermodesinfektor)"},{id:"neugerat",label:"Inbetriebnahme neues Gerät"}]},{id:"urgency",title:"Wie dringend ist der Bedarf?",type:"radio",options:[{id:"emergency",label:"Notfall – Gerät ausgefallen"},{id:"soon",label:"Innerhalb der nächsten Woche"},{id:"planned",label:"Geplante Wartung"}]}]},{configKey:"praxisplanung_inquiry",label:"Praxisplanung – Beratungsanfrage",steps:[{id:"project_type",title:"Um welches Projekt handelt es sich?",type:"radio",options:[{id:"neubau",label:"Neubau / Neueröffnung"},{id:"umbau",label:"Umbau / Renovierung"},{id:"erweiterung",label:"Erweiterung bestehender Praxis"},{id:"beratung",label:"Nur Beratung / Konzept"}]},{id:"services",title:"Welche Leistungen interessieren Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"3d",label:"3D-Planung & Visualisierung"},{id:"einrichtung",label:"Kompletteinrichtung"},{id:"technik",label:"Medizintechnik-Integration"},{id:"foerderung",label:"Fördermittelberatung"}]}]},{configKey:"medimatic_inquiry",label:"SCHMITZ medi-matic® – Angebot anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim medi-matic®?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"demo",label:"Vorführung / Demo-Termin"},{id:"angebot",label:"Individuelles Angebot"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"einweisung",label:"Einweisung & Schulung"}]},{id:"timeline",title:"Wann planen Sie die Anschaffung?",type:"radio",options:[{id:"sofort",label:"So schnell wie möglich"},{id:"3monate",label:"Innerhalb von 3 Monaten"},{id:"6monate",label:"Innerhalb von 6 Monaten"},{id:"planung",label:"Noch in der Planungsphase"}]}]},{configKey:"praxisportal_access",label:"Praxisportal – Zugang anfordern",steps:[{id:"usage",title:"Wie möchten Sie das Praxisportal nutzen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"bestellung",label:"Praxisbedarf bestellen"},{id:"ssb",label:"Sprechstundenbedarf abwickeln"},{id:"rechnungen",label:"Rechnungen & Belege verwalten"},{id:"geraete",label:"Geräte-Service & Wartung"}]},{id:"praxis_type",title:"Welche Praxisform trifft zu?",type:"radio",options:[{id:"einzelpraxis",label:"Einzelpraxis"},{id:"gemeinschaft",label:"Gemeinschaftspraxis"},{id:"mvz",label:"MVZ / Mehrere Standorte"},{id:"klinik",label:"Klinik / Krankenhaus"}]}]},{configKey:"aufbereitung_inquiry",label:"Aufbereitung & Sterilisation – Beratungsanfrage",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"autoklav",label:"Autoklav (Dampfsterilisation)"},{id:"thermodesinfektor",label:"RDG-S Thermodesinfektor"},{id:"validierung",label:"Validierung & Dokumentation"},{id:"verbrauch",label:"Verbrauchsmaterial (Sterilgut, Folien)"},{id:"beratung",label:"Allgemeine Aufbereitungsberatung"}]},{id:"current_situation",title:"Wie ist Ihre aktuelle Situation?",type:"radio",options:[{id:"neukauf",label:"Ich möchte ein neues Gerät kaufen"},{id:"ersatz",label:"Ich ersetze ein bestehendes Gerät"},{id:"erstausstattung",label:"Erstausstattung / neue Praxis"},{id:"info",label:"Ich möchte mich nur informieren"}]}]},{configKey:"autoklaven_inquiry",label:"Autoklav – Angebot & Beratung",steps:[{id:"geraet",title:"Welches Gerät interessiert Sie?",subtitle:"Unsicher? Wir beraten Sie gerne.",type:"radio",options:[{id:"vacuklav_44",label:"MELAG Vacuklav 44 B+"},{id:"vacuclave_550",label:"MELAG Vacuclave 550"},{id:"cliniclave_45",label:"MELAG Cliniclave 45 M"},{id:"unsicher_geraet",label:"Ich bin unsicher"}]},{id:"services",title:"Was benötigen Sie zusätzlich?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"validierung",label:"Erstvalidierung & Dokumentation"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartungsvertrag"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"nichts",label:"Nur das Gerät"}]}]},{configKey:"thermodesinfektor_inquiry",label:"RDG-S Thermodesinfektor – Angebot & Beratung",steps:[{id:"geraet",title:"Welches Gerät interessiert Sie?",subtitle:"Unsicher? Wir beraten Sie gerne.",type:"radio",options:[{id:"miele_pwd_8682",label:"Miele PWD 8682"},{id:"melatherm_20",label:"MELAG MELAtherm 20"},{id:"aquadis_56m",label:"Getinge Aquadis 56M"},{id:"unsicher_geraet",label:"Ich bin unsicher"}]},{id:"services",title:"Was benötigen Sie zusätzlich?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"validierung",label:"Validierung nach ISO 15883"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartungsvertrag"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"nichts",label:"Nur das Gerät"}]}]},{configKey:"gynaekologie_inquiry",label:"Gynäkologie – Beratungsanfrage",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"gyn_stuhl",label:"Gynäkologie-Untersuchungsstühle (SCHMITZ)"},{id:"ctg",label:"CTG-Geräte (Fetalmonitoring)"},{id:"autoklav",label:"Autoklav / Sterilisation (MELAG Vacuklav)"},{id:"thermodesinfektor",label:"Reinigungs- & Desinfektionsgerät (Miele)"},{id:"verbrauch",label:"Verbrauchsmaterial & Hygiene"},{id:"ssb",label:"Sprechstundenbedarf (§ 300 SGB V, nur Brandenburg)"}]},{id:"urgency",title:"Wann benötigen Sie Unterstützung?",type:"radio",options:[{id:"asap",label:"So schnell wie möglich"},{id:"weeks",label:"In den nächsten Wochen"},{id:"planning",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"gynaekologie_katalog",label:"Gynäkologie – Katalog & Sortiment",steps:[{id:"category",title:"Welche Produktkategorie interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"instrumente",label:"Instrumente & Einmalprodukte"},{id:"diagnostik",label:"Diagnostik & Kolposkopie"},{id:"liegen",label:"Untersuchungsliegen"},{id:"hygiene",label:"Hygiene & Sterilisation"},{id:"praxisausstattung",label:"Praxisausstattung"}]},{id:"delivery",title:"Wie möchten Sie den Katalog erhalten?",type:"radio",options:[{id:"digital",label:"Digital per E-Mail"},{id:"post",label:"Per Post zugeschickt"},{id:"beratung",label:"Mit persönlicher Beratung"}]}]},{configKey:"karriere_bewerbung",label:"Bewerbung bei Stusche",steps:[{id:"stelle",title:"Für welche Stelle möchten Sie sich bewerben?",type:"radio",options:[{id:"servicetechniker",label:"Servicetechniker im Außendienst"},{id:"kreditorenbuchhalter",label:"Kreditorenbuchhalter"},{id:"initiativ",label:"Initiativbewerbung"},{id:"ausbildung",label:"Ausbildung / Praktikum"}]},{id:"availability",title:"Wann könnten Sie frühestens anfangen?",type:"radio",options:[{id:"sofort",label:"Sofort / ab sofort"},{id:"1monat",label:"In ca. 1 Monat"},{id:"3monate",label:"In ca. 3 Monaten"},{id:"spaeter",label:"Später / nach Vereinbarung"}]}]},{configKey:"medizintechnik_inquiry",label:"Medizintechnik – Geräteberatung",steps:[{id:"device_type",title:"Welches Gerät interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"spirometrie",label:"Spirometrie (Lungenfunktion)"},{id:"blutdruck",label:"24h-Langzeit-Blutdruckmessung"},{id:"ekg",label:"EKG / Tablet-EKG"},{id:"sonstiges",label:"Sonstiges Medizintechnik-Gerät"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"pneumotrac_inquiry",label:"Vitalograph Pneumotrac – Produktanfrage",steps:[{id:"interest",title:"Was interessiert Sie beim Vitalograph Pneumotrac?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"demo",label:"Vorführung / Demo vor Ort"},{id:"angebot",label:"Angebot anfordern"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"software",label:"Software Spirotrac 6"},{id:"zubehoer",label:"Zubehör & Verbrauchsmaterial"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"technischer_service",label:"Technischer Service – Serviceanfrage",steps:[{id:"service_type",title:"Welche Art von Service benötigen Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"wartung",label:"Wartung & Inspektion (STK/MTK)"},{id:"reparatur",label:"Reparatur / Störungsbeseitigung"},{id:"validierung",label:"Validierung (Autoklav, Thermodesinfektor)"},{id:"inbetriebnahme",label:"Inbetriebnahme neues Gerät"},{id:"geraetepass",label:"Gerätepass & Dokumentation"}]},{id:"urgency",title:"Wie dringend ist der Bedarf?",type:"radio",options:[{id:"notfall",label:"Notfall – Gerät ausgefallen"},{id:"bald",label:"Innerhalb der nächsten Woche"},{id:"geplant",label:"Geplante Wartung / kein Zeitdruck"}]}]},{configKey:"praxisgruendung",label:"Praxisgründung – Beratungsanfrage",steps:[{id:"fachrichtung",title:"Welche Fachrichtung planen Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"allgemein",label:"Allgemeinmedizin / Hausarzt"},{id:"gynaekologie",label:"Gynäkologie"},{id:"innere",label:"Innere Medizin"},{id:"paediatrie",label:"Pädiatrie"},{id:"orthopaedie",label:"Orthopädie"},{id:"andere",label:"Andere Fachrichtung"}]},{id:"eroeffnung",title:"Wann planen Sie die Praxiseröffnung?",type:"radio",options:[{id:"unter6",label:"In weniger als 6 Monaten"},{id:"6bis12",label:"In 6 bis 12 Monaten"},{id:"ueber12",label:"In mehr als 12 Monaten"},{id:"noch_offen",label:"Noch nicht festgelegt"}]},{id:"raumgroesse",title:"Wie groß ist die geplante Praxisfläche?",type:"radio",options:[{id:"unter100",label:"Unter 100 m²"},{id:"100bis200",label:"100 – 200 m²"},{id:"200bis400",label:"200 – 400 m²"},{id:"ueber400",label:"Über 400 m² / MVZ"}]},{id:"bedarf",title:"Womit können wir Sie unterstützen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"planung",label:"3D-Praxisplanung & Raumgestaltung"},{id:"medizintechnik",label:"Medizintechnik & Geräteausstattung"},{id:"praxisbedarf",label:"Praxisbedarf & Verbrauchsmaterial"},{id:"aufbereitung",label:"Aufbereitungstechnik (Autoklav, Thermodesinfektor)"},{id:"portal",label:"Praxisportal & digitale Bestellung"},{id:"ssb",label:"Sprechstundenbedarf (SSB)"}]}]},{configKey:"beratung_general",label:"Beratungsgespräch anfragen",steps:[{id:"topic",title:"Worüber möchten Sie sprechen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"praxisbedarf",label:"Praxisbedarf & Verbrauchsmaterial"},{id:"ssb",label:"Sprechstundenbedarf"},{id:"techservice",label:"Technischer Service"},{id:"planung",label:"Praxisplanung"},{id:"medimatic",label:"Untersuchungsliegen"},{id:"portal",label:"Praxisportal"}]},{id:"contact_pref",title:"Wie sollen wir Sie kontaktieren?",type:"radio",options:[{id:"phone",label:"Telefonisch"},{id:"email",label:"Per E-Mail"},{id:"visit",label:"Persönlicher Besuch in der Praxis"}]}]},{configKey:"op_leuchten_inquiry",label:"OP-Leuchten – Produktanfrage",steps:[{id:"interest",title:"Was interessiert Sie bei den OP-Leuchten?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Angebot / Preisanfrage"},{id:"demo",label:"Vorführung / Demo vor Ort"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartung & technischer Service"},{id:"zubehoer",label:"Zubehör & Ersatzteile"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"vitalograph_alpha_inquiry",label:"Vitalograph Alpha Connect – Produktanfrage",steps:[{id:"interest",title:"Was interessiert Sie beim Vitalograph Alpha Connect?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"demo",label:"Vorführung / Demo vor Ort"},{id:"angebot",label:"Angebot anfordern"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"software",label:"Software & PC-Verbindung"},{id:"zubehoer",label:"Zubehör & Verbrauchsmaterial"}]},{id:"urgency",title:"Wie dringend ist Ihr Bedarf?",type:"radio",options:[{id:"sofort",label:"Sofort / dringend"},{id:"bald",label:"In den nächsten Wochen"},{id:"planung",label:"Ich bin noch in der Planungsphase"}]}]},{configKey:"boso_tm2450_inquiry",label:"boso TM-2450 anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim boso TM-2450?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Angebot / Preisanfrage"},{id:"demo",label:"Vorführung in der Praxis"},{id:"cbp",label:"cBP-Erweiterung (zentraler Blutdruck)"},{id:"software",label:"profil-manager XD Software"},{id:"service",label:"Wartung & technischer Service"}]},{id:"contact_pref",title:"Wie sollen wir Sie kontaktieren?",type:"radio",options:[{id:"phone",label:"Telefonisch"},{id:"email",label:"Per E-Mail"},{id:"visit",label:"Persönlicher Besuch in der Praxis"}]}]},{configKey:"gyn_stuhl_inquiry",label:"Gynäkologie-Untersuchungsstuhl – Angebot anfragen",steps:[{id:"model",title:"Welches Modell interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"medi_matic",label:"medi-matic® – Der Beste seiner Klasse"},{id:"arco_matic",label:"arco-matic® – Mit Flachlagerung"},{id:"arco",label:"arco – Frische Farben & Design"},{id:"orbit",label:"SCHMITZ Orbit (Einrichtungskonzept)"},{id:"unsicher",label:"Ich bin noch unsicher – bitte beraten"}]},{id:"interest",title:"Was möchten Sie wissen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"vergleich",label:"Vergleich der Modelle"}]}]},{configKey:"ctg_inquiry",label:"CTG-Gerät – Angebot anfragen",steps:[{id:"model",title:"Welches CTG-Gerät interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"edan_cadence",label:"Edan Cadence II CTG"},{id:"econet_smart7",label:"medical ECOnet Smart 7 CTG"},{id:"unsicher",label:"Ich bin noch unsicher – bitte beraten"}]},{id:"interest",title:"Was möchten Sie wissen?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"software",label:"Software & Praxis-EDV-Integration"},{id:"finanzierung",label:"Finanzierungsoptionen"},{id:"einweisung",label:"Einweisung & Schulung"}]}]},{configKey:"autoklav_gyn_inquiry",label:"MELAG Autoklav Vacuklav 31 B+ – Angebot anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim MELAG Vacuklav 31 B+?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"validierung",label:"Erstvalidierung & Dokumentation"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartungsvertrag"},{id:"finanzierung",label:"Finanzierungsoptionen"}]},{id:"current_situation",title:"Wie ist Ihre aktuelle Situation?",type:"radio",options:[{id:"neukauf",label:"Ich möchte ein neues Gerät kaufen"},{id:"ersatz",label:"Ich ersetze ein bestehendes Gerät"},{id:"erstausstattung",label:"Erstausstattung / neue Praxis"},{id:"info",label:"Ich möchte mich nur informieren"}]}]},{configKey:"chirurgie_inquiry",label:"Chirurgie – Beratung anfragen",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"operationstisch",label:"Operationstisch (SCHMITZ OPX mobilis®)"},{id:"elektrochirurgie",label:"Elektrochirurgie (ERBE VIO 100 C)"},{id:"op_leuchte",label:"OP-Leuchte (Dr. Mach LED 150F)"},{id:"sterilisation",label:"Sterilisation / Autoklav (MELAG)"},{id:"thermodesinfektor",label:"Thermodesinfektor / RDG (Miele)"},{id:"op_mobiliar",label:"OP-Mobiliar / ISO-Wagen (SCHMITZ varimed®)"},{id:"nahtmaterial",label:"Nahtmaterial & Wundversorgung (SSB)"},{id:"einmalinstrumente",label:"Einmalinstrumente & Kitpack (L&R)"},{id:"hygiene",label:"Hygiene & Desinfektion"},{id:"technischer_service",label:"Technischer Service (STK/MTK)"}]},{id:"praxis_typ",title:"Um welche Art von Einrichtung handelt es sich?",type:"radio",options:[{id:"allgemeinchirurgie",label:"Allgemeinchirurgie"},{id:"unfallchirurgie",label:"Unfallchirurgie / Orthopädie"},{id:"handchirurgie",label:"Handchirurgie"},{id:"gefaesschirurgie",label:"Gefäßchirurgie"},{id:"plastische_chirurgie",label:"Plastische Chirurgie"},{id:"mvz",label:"MVZ mit chirurgischem Schwerpunkt"},{id:"sonstiges",label:"Sonstiges"}]}]},{configKey:"hygienemanagement_inquiry",label:"Hygienemanagement – Beratung anfragen",steps:[{id:"interest",title:"Was interessiert Sie?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"begehung",label:"Praxisbegehung & Analyse"},{id:"hygieneplan",label:"Individueller Hygieneplan"},{id:"schulung",label:"Personalschulung Hygiene"},{id:"zertifikat",label:"B. Braun Hygienezertifikat"},{id:"info",label:"Allgemeine Information"}]},{id:"praxis_typ",title:"Welche Fachrichtung hat Ihre Praxis?",type:"radio",options:[{id:"gynaekologie",label:"Gynäkologie"},{id:"allgemeinmedizin",label:"Allgemeinmedizin"},{id:"chirurgie",label:"Chirurgie"},{id:"dermatologie",label:"Dermatologie"},{id:"paediatrie",label:"Pädiatrie"},{id:"sonstiges",label:"Sonstige Fachrichtung"}]}]},{configKey:"miele_rdg_inquiry",label:"Miele Reinigungs- und Desinfektionsgerät – Angebot anfragen",steps:[{id:"interest",title:"Was interessiert Sie beim Miele RDG?",subtitle:"Mehrfachauswahl möglich",type:"checkbox",options:[{id:"angebot",label:"Individuelles Angebot / Preis"},{id:"demo",label:"Vorführung / Demo-Termin"},{id:"validierung",label:"Validierung nach ISO 15883"},{id:"einweisung",label:"Einweisung & Schulung"},{id:"wartung",label:"Wartung & Service"}]},{id:"current_situation",title:"Wie ist Ihre aktuelle Situation?",type:"radio",options:[{id:"neukauf",label:"Ich möchte ein neues Gerät kaufen"},{id:"ersatz",label:"Ich ersetze ein bestehendes Gerät"},{id:"erstausstattung",label:"Erstausstattung / neue Praxis"},{id:"info",label:"Ich möchte mich nur informieren"}]}]}],xs={new:"Neu",in_progress:"In Bearbeitung",done:"Erledigt"},ys={new:{bg:"rgba(239,68,68,0.08)",text:"#ef4444",dot:"#ef4444"},in_progress:{bg:"rgba(245,158,11,0.08)",text:"#d97706",dot:"#f59e0b"},done:{bg:"rgba(34,197,94,0.08)",text:"#16a34a",dot:"#22c55e"}},vo={new:Nn,in_progress:Fe,done:pe};function wo(){const e=ya(),t=new URLSearchParams(e).get("tab")==="wizard"?"wizard":"inbox",[s,r]=w.useState(t);return w.useEffect(()=>{r(t)},[e]),n.jsx(Se,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:70",title:s==="inbox"?"Anfragen":"Wizard-Konfiguration",breadcrumb:"Übersicht",children:s==="inbox"?n.jsx(Ao,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:71"}):n.jsx(So,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:71"})})}function Ao(){const[e,t]=w.useState("all"),[s,r]=w.useState(null),{data:a=[],refetch:i,isLoading:l}=Q.admin.getSubmissions.useQuery({limit:100,offset:0},{refetchInterval:3e4}),{data:c=[]}=Q.admin.getWizardConfigs.useQuery(),o=Q.admin.updateSubmissionStatus.useMutation({onSuccess:()=>i()}),d=Q.admin.deleteSubmission.useMutation({onSuccess:()=>{r(null),i()}}),m=e==="all"?a:a.filter(y=>y.status===e),u=s!=null?a.find(y=>y.id===s)??null:null,h=[{key:"all",label:"Alle"},{key:"new",label:"Neu"},{key:"in_progress",label:"In Bearbeitung"},{key:"done",label:"Erledigt"}],b=y=>y==="all"?a.length:a.filter(g=>g.status===y).length;return n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:151",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:153",className:"flex items-center gap-2 mb-5 flex-wrap",children:[h.map(({key:y,label:g})=>{const x=e===y;return n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:157",onClick:()=>t(y),className:"flex items-center gap-1.5 px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all",style:{background:x?"#0d1b3e":"#ffffff",color:x?"#ffffff":"#6b7280",border:x?"1px solid #0d1b3e":"1px solid #e5e7eb",fontFamily:"DM Sans, sans-serif"},children:[g,n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:169",className:"px-1.5 py-0.5 rounded-full text-xs",style:{background:x?"rgba(255,255,255,0.2)":"rgba(0,0,0,0.06)",color:x?"#fff":"#9ca3af"},children:b(y)})]},y)}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:181",onClick:()=>i(),className:"ml-auto p-2 rounded-lg transition-all",style:{color:"#9ca3af"},title:"Aktualisieren",children:n.jsx(be,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:187",size:14,className:l?"animate-spin":""})})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:192",className:"flex gap-5",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:194",className:`flex flex-col gap-2 ${u?"hidden lg:flex lg:w-80 lg:flex-shrink-0":"w-full"}`,children:l?n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:200",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):m.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:202",className:"flex flex-col items-center py-16 gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:203",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:n.jsx(ja,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:207",size:20,style:{color:"#9ca3af"}})}),n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:209",className:"text-sm text-gray-400",children:"Keine Anfragen"})]}):m.map(y=>{const g=y.status,x=vo[g]??Nn,v=ys[g]??ys.new,L=s===y.id;return n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:218",onClick:()=>r(y.id),className:"w-full text-left p-4 rounded-2xl border transition-all",style:{borderColor:L?"#93c5fd":"#e5e7eb",background:L?"#eff6ff":"#ffffff",boxShadow:L?"0 0 0 2px rgba(59,130,246,0.15)":"none"},children:n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:228",className:"flex items-start gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:229",className:"w-7 h-7 rounded-lg flex items-center justify-center flex-shrink-0 mt-0.5",style:{background:v.bg},children:n.jsx(x,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:233",size:13,style:{color:v.dot}})}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:235",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:236",className:"font-semibold text-sm truncate mb-0.5",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif"},children:y.name||"–"}),n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:242",className:"text-xs truncate",style:{color:"#9ca3af"},children:y.email||y.phone||"–"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:245",className:"flex items-center gap-2 mt-2",children:[n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:246",className:"px-2 py-0.5 rounded-full text-xs font-semibold",style:{background:v.bg,color:v.text,fontFamily:"DM Sans, sans-serif"},children:xs[g]}),n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:252",className:"text-xs",style:{color:"#d1d5db"},children:new Date(y.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})})]})]}),n.jsx(Nt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:261",size:14,style:{color:"#d1d5db",flexShrink:0,marginTop:2}})]})},y.id)})}),u!==null&&n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:270",className:"flex-1 bg-white rounded-2xl border p-6",style:{borderColor:"#e5e7eb"},children:[n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:275",onClick:()=>r(null),className:"lg:hidden flex items-center gap-1.5 text-sm font-semibold mb-5 transition-all",style:{color:"#6b7280"},children:[n.jsx(kn,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:280",size:14})," Zurück"]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:284",className:"flex items-start justify-between gap-4 mb-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:285",children:[n.jsx("h2",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:286",className:"text-xl font-bold mb-1",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:u.name||"Anfrage"}),n.jsxs("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:292",className:"text-sm",style:{color:"#9ca3af"},children:["Eingegangen am"," ",new Date(u.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"long",year:"numeric"})]})]}),n.jsx("select",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:302",value:u.status,onChange:y=>o.mutate({id:u.id,status:y.target.value}),className:"px-3 py-2 rounded-xl text-xs font-semibold border transition-all focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",background:"#f9fafb",fontFamily:"DM Sans, sans-serif"},children:["new","in_progress","done"].map(y=>n.jsx("option",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:316",value:y,children:xs[y]},y))})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:323",className:"grid sm:grid-cols-2 gap-3 mb-6",children:[{icon:Lt,label:"E-Mail",value:u.email},{icon:Ea,label:"Telefon",value:u.phone},{icon:gs,label:"Formular",value:u.sourceLabel},{icon:wa,label:"Datum",value:new Date(u.createdAt).toLocaleDateString("de-DE")}].filter(y=>!!y.value).map(({icon:y,label:g,value:x})=>n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:330",className:"flex items-start gap-3 p-3 rounded-xl",style:{background:"#f9fafb"},children:[n.jsx(y,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:331",size:14,style:{color:"#3b82f6",marginTop:2,flexShrink:0}}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:332",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:333",className:"text-xs font-semibold mb-0.5",style:{color:"#9ca3af"},children:g}),n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:334",className:"text-sm font-medium",style:{color:"#0d1b3e"},children:x})]})]},g))}),u.message&&n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:342",className:"mb-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:343",className:"flex items-center gap-2 mb-2",children:[n.jsx(fs,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:344",size:13,style:{color:"#3b82f6"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:345",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Nachricht"})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:349",className:"p-4 rounded-xl text-sm leading-relaxed",style:{background:"#f9fafb",color:"#374151",fontFamily:"DM Sans, sans-serif"},children:u.message})]}),u.answers!=null&&Object.keys(u.answers).length>0&&(()=>{const y=[...c,...bo.filter(v=>!c.some(L=>L.configKey===v.configKey))],g=y.find(v=>v.label===u.sourceLabel||v.configKey===u.sourceLabel)??y[0],x={};if(g)for(const v of g.steps)x[v.id]=v;return n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:377",className:"mb-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:378",className:"flex items-center gap-2 mb-3",children:[n.jsx(gs,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:379",size:13,style:{color:"#3b82f6"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:380",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Wizard-Antworten"})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:384",className:"space-y-2",children:Object.entries(u.answers).map(([v,L])=>{const J=x[v],Z=J?.title??v.replace(/_/g," ").replace(/\b\w/g,A=>A.toUpperCase());return n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:389",className:"p-3 rounded-xl",style:{background:"#f9fafb"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:390",className:"text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:Z}),n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:393",className:"flex flex-wrap gap-1.5",children:L.map(A=>{const N=J?.options.find(f=>f.id===A)?.label??A;return n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:397",className:"px-2.5 py-1 rounded-full text-xs font-semibold",style:{background:"rgba(59,130,246,0.08)",color:"#1d4ed8"},children:N},A)})})]},v)})})]})})(),u.adminNote&&n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:417",className:"mb-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:418",className:"flex items-center gap-2 mb-2",children:[n.jsx(fs,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:419",size:13,style:{color:"#f59e0b"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:420",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Interne Notiz"})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:422",className:"p-4 rounded-xl text-sm leading-relaxed",style:{background:"#fffbeb",color:"#92400e"},children:u.adminNote})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:429",className:"pt-4 mt-4",style:{borderTop:"1px solid #f3f4f6"},children:n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:430",onClick:()=>{confirm(`Anfrage von "${u.name}" wirklich löschen? Diese Aktion kann nicht rückgängig gemacht werden.`)&&d.mutate({id:u.id})},disabled:d.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-xl text-xs font-semibold transition-all disabled:opacity-50",style:{color:"#ef4444",background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[n.jsx(Ze,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:440",size:13}),d.isPending?"Löschen…":"Anfrage löschen"]})})]})]})]})}function So(){const[e,t]=w.useState(null),{data:s=[],refetch:r,isLoading:a}=Q.admin.getWizardConfigs.useQuery(),i=Q.admin.deleteWizardConfig.useMutation({onSuccess:()=>r()});if(e!==null){const l=e==="new"?null:s.find(c=>c.id===e)??null;return n.jsx(jo,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:461",config:l,onSaved:()=>{t(null),r()},onCancel:()=>t(null)})}return n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:470",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:471",className:"flex items-center justify-between mb-5",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:472",className:"text-sm",style:{color:"#6b7280",fontFamily:"DM Sans, sans-serif"},children:"Konfigurieren Sie die Beratungs-Wizards für die verschiedenen Leistungsseiten."}),n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:475",onClick:()=>t("new"),className:"flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(Pt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:480",size:14})," Neuer Wizard"]})]}),a?n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:485",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):s.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:487",className:"flex flex-col items-center py-16 gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:488",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:n.jsx(Pn,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:492",size:20,style:{color:"#9ca3af"}})}),n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:494",className:"text-sm text-gray-400",children:"Noch keine Wizards konfiguriert"}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:495",onClick:()=>t("new"),className:"text-xs font-semibold transition-all",style:{color:"#3b82f6"},children:"Ersten Wizard erstellen →"})]}):n.jsx("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:504",className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:s.map(l=>n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:506",className:"bg-white rounded-2xl border p-5 flex flex-col gap-3",style:{borderColor:"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:511",className:"flex items-start justify-between gap-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:512",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:513",className:"font-semibold text-sm truncate mb-0.5",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif"},children:l.label}),n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:519",className:"text-xs font-mono",style:{color:"#9ca3af"},children:l.configKey})]}),n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:523",className:"px-2 py-0.5 rounded-full text-xs font-semibold flex-shrink-0",style:l.active?{background:"rgba(34,197,94,0.08)",color:"#16a34a"}:{background:"rgba(0,0,0,0.05)",color:"#9ca3af"},children:l.active?"Aktiv":"Inaktiv"})]}),n.jsxs("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:534",className:"text-xs",style:{color:"#9ca3af"},children:[l.steps.length," Schritte"]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:537",className:"flex gap-2 mt-auto pt-2",style:{borderTop:"1px solid #f3f4f6"},children:[n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:538",onClick:()=>t(l.id),className:"flex-1 py-2 rounded-xl text-xs font-semibold transition-all hover:opacity-80",style:{background:"#0d1b3e",color:"#fff",fontFamily:"DM Sans, sans-serif"},children:"Bearbeiten"}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:545",onClick:()=>{confirm(`Wizard "${l.label}" wirklich löschen?`)&&i.mutate({id:l.id})},className:"p-2 rounded-xl transition-all",style:{color:"#ef4444",background:"rgba(239,68,68,0.06)"},children:n.jsx(Ze,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:554",size:13})})]})]},l.id))})]})}function jo({config:e,onSaved:t,onCancel:s}){const[r,a]=w.useState(e?.label??""),[i,l]=w.useState(e?.configKey??""),[c,o]=w.useState(e?e.steps:[]),[d,m]=w.useState(e?.active??!0),[u,h]=w.useState(null),b=Q.admin.upsertWizardConfig.useMutation({onSuccess:t,onError:A=>h(A.message)}),y=()=>{if(!r.trim()){h("Bitte einen Namen eingeben.");return}if(!i.trim()){h("Bitte einen Schlüssel eingeben.");return}if(c.length===0){h("Mindestens ein Schritt erforderlich.");return}for(const A of c){if(!A.title.trim()){h("Schritt ohne Titel gefunden.");return}if(A.options.length===0){h(`Schritt "${A.title}" hat keine Optionen.`);return}}h(null),b.mutate({...e?{id:e.id}:{},configKey:i,label:r,steps:c,active:d})},g=()=>{const A=`step${Date.now()}`;o(N=>[...N,{id:A,title:"Neuer Schritt",subtitle:"",type:"checkbox",options:[{id:`opt${Date.now()}`,label:"Option"}]}])},x=A=>o(N=>N.filter((f,P)=>P!==A)),v=(A,N)=>o(f=>f.map((P,M)=>M===A?{...P,...N}:P)),L=A=>o(N=>N.map((f,P)=>P===A?{...f,options:[...f.options,{id:`opt${Date.now()}`,label:"Neue Option"}]}:f)),J=(A,N)=>o(f=>f.map((P,M)=>M===A?{...P,options:P.options.filter((T,I)=>I!==N)}:P)),Z=(A,N,f)=>o(P=>P.map((M,T)=>T===A?{...M,options:M.options.map((I,D)=>D===N?{...I,...f}:I)}:M));return n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:632",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:634",className:"flex items-center gap-3 mb-6",children:[n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:635",onClick:s,className:"p-2 rounded-xl transition-all",style:{color:"#6b7280",background:"#f3f4f6"},children:n.jsx(kn,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:640",size:16})}),n.jsx("h2",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:642",className:"text-lg font-bold flex-1",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:e?"Wizard bearbeiten":"Neuer Wizard"}),n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:648",onClick:y,disabled:b.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(Ye,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:654",size:14}),b.isPending?"Speichern…":"Speichern"]})]}),u&&n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:660",className:"flex items-center gap-2 mb-5 px-4 py-3 rounded-xl text-sm",style:{background:"rgba(239,68,68,0.06)",color:"#ef4444",border:"1px solid rgba(239,68,68,0.15)"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:664",size:14}),u]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:670",className:"bg-white rounded-2xl border p-5 mb-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:674",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Grundeinstellungen"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:677",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:678",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Name (Anzeige)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:681",value:r,onChange:A=>a(A.target.value),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none transition-all",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"z. B. Beratung Gynäkologie"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:689",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:690",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Schlüssel (intern, keine Leerzeichen)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:693",value:i,onChange:A=>l(A.target.value.toLowerCase().replace(/\s+/g,"_").replace(/[^a-z0-9_]/g,"")),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm font-mono focus:outline-none transition-all",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"z. B. beratung_gynaekologie"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:703",className:"flex items-center justify-between py-1",children:[n.jsx("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:704",className:"text-xs font-semibold",style:{color:"#374151"},children:"Wizard aktiv schalten"}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:707",onClick:()=>m(A=>!A),className:"transition-all",children:d?n.jsx($e,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:709",size:28,style:{color:"#3b82f6"}}):n.jsx(We,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:711",size:28,style:{color:"#d1d5db"}})})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:718",className:"space-y-4",children:[c.map((A,N)=>n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:720",className:"bg-white rounded-2xl border p-5",style:{borderColor:"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:725",className:"flex items-center gap-2 mb-4",children:[n.jsx(no,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:726",size:14,style:{color:"#d1d5db",flexShrink:0}}),n.jsxs("span",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:727",className:"text-xs font-bold tracking-widest uppercase flex-1",style:{color:"#9ca3af"},children:["Schritt ",N+1]}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:730",onClick:()=>x(N),className:"p-1.5 rounded-lg transition-all",style:{color:"#fca5a5",background:"rgba(239,68,68,0.06)"},children:n.jsx(Ze,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:735",size:13})})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:739",className:"space-y-3 mb-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:740",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:741",className:"block text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:"Frage / Titel"}),n.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:744",value:A.title,onChange:f=>v(N,{title:f.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"Was interessiert Sie?"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:752",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:753",className:"block text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:"Untertitel (optional)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:756",value:A.subtitle??"",onChange:f=>v(N,{subtitle:f.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"Mehrfachauswahl möglich"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:764",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:765",className:"block text-xs font-semibold mb-1.5",style:{color:"#6b7280"},children:"Auswahltyp"}),n.jsxs("select",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:768",value:A.type,onChange:f=>v(N,{type:f.target.value}),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx("option",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:774",value:"checkbox",children:"Mehrfachauswahl (Checkbox)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:775",value:"radio",children:"Einzelauswahl (Radio)"})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:781",className:"space-y-2",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:782",className:"text-xs font-semibold",style:{color:"#9ca3af"},children:"Optionen"}),A.options.map((f,P)=>n.jsxs("div",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:784",className:"flex items-center gap-2",children:[n.jsx("input",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:785",value:f.label,onChange:M=>Z(N,P,{label:M.target.value}),className:"flex-1 px-3.5 py-2 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:`Option ${P+1}`}),n.jsx("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:792",onClick:()=>J(N,P),className:"p-2 rounded-xl transition-all flex-shrink-0",style:{color:"#fca5a5",background:"rgba(239,68,68,0.06)"},children:n.jsx(Ca,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:797",size:12})})]},f.id)),n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:801",onClick:()=>L(N),className:"flex items-center gap-1.5 text-xs font-semibold transition-all mt-1",style:{color:"#3b82f6"},children:[n.jsx(Pt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:806",size:12})," Option hinzufügen"]})]})]},A.id)),n.jsxs("button",{"data-loc":"client/src/pages/admin/AdminPanel.tsx:812",onClick:g,className:"w-full flex items-center justify-center gap-2 px-4 py-4 rounded-2xl text-sm font-semibold transition-all",style:{border:"2px dashed #e5e7eb",color:"#9ca3af",fontFamily:"DM Sans, sans-serif"},onMouseEnter:A=>{A.currentTarget.style.borderColor="#93c5fd",A.currentTarget.style.color="#3b82f6"},onMouseLeave:A=>{A.currentTarget.style.borderColor="#e5e7eb",A.currentTarget.style.color="#9ca3af"},children:[n.jsx(Pt,{"data-loc":"client/src/pages/admin/AdminPanel.tsx:829",size:15})," Schritt hinzufügen"]})]})]})}const Jc=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"})),Vt=`Du bist ein medizinischer Fachredakteur, der auf den gynäkologischen Praxismarkt in Deutschland spezialisiert ist.
Heute ist der {{CURRENT_DATE}}.
Recherchiere ausschließlich Neuigkeiten, die nach dem {{CUTOFF_DATE}} veröffentlicht wurden (maximal 3 Monate alt). Ältere Meldungen dürfen NICHT berücksichtigt werden. Falls du keine ausreichend aktuellen Neuigkeiten findest, gib ein leeres JSON-Array zurück.
Fokussiere dich auf folgende Themen für gynäkologische Praxen in Deutschland:
- Neue Medizinprodukte, Geräte und Ausstattung für gynäkologische Praxen
- Änderungen in Abrechnung (EBM, GOÄ) und Vergütung
- Neue Leitlinien, Empfehlungen oder Zulassungen (z.B. AWMF, BVF, DGGG)
- Hygiene- und Aufbereitungsvorschriften (RKI, KRINKO)
- Digitalisierung und Praxissoftware
- Relevante gesundheitspolitische Entwicklungen
Gib genau {{COUNT}} Neuigkeiten zurück als JSON-Array (oder weniger, wenn nicht genug aktuelle Meldungen vorhanden sind). Jedes Element hat folgende Felder:
- title: Prägnante Überschrift (max. 80 Zeichen)
- summary: 2-3 Sätze Zusammenfassung für Praxisinhaber
- source: Name der Quelle (z.B. "Deutsches Ärzteblatt", "BVF", "G-BA")
- sourceUrl: URL zur Quelle falls bekannt, sonst null
- category: Eine Kategorie aus: "Diagnostik" | "Hygiene" | "Abrechnung" | "Recht" | "Digitalisierung" | "Produkte" | "Leitlinien"
- publishedAt: Veröffentlichungsdatum im Format "YYYY-MM-DD" – MUSS nach {{CUTOFF_DATE}} liegen, sonst null
Antworte NUR mit dem JSON-Array, ohne Erklärungen oder Markdown-Blöcke.`;function ko(){const[e,t]=w.useState("news"),s=[{id:"news",label:"Artikel",icon:En},{id:"settings",label:"KI-Einstellungen",icon:Pn}];return n.jsxs(Se,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:67",title:"Gyn-News",breadcrumb:"Automatische Recherche",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:69",className:"flex gap-1 p-1 rounded-xl mb-6 w-fit",style:{background:"rgba(13,27,62,0.06)"},children:s.map(({id:r,label:a,icon:i})=>n.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:74",onClick:()=>t(r),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:e===r?"#ffffff":"transparent",color:e===r?"#0d1b3e":"#6b7280",boxShadow:e===r?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(i,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:85",size:14}),a]},r))}),e==="news"?n.jsx(No,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:91"}):n.jsx(Po,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:91"})]})}function No(){const[e,t]=w.useState("all"),[s,r]=w.useState(5),a=Q.useUtils(),{data:i=[],isLoading:l}=Q.gynNews.getAll.useQuery({limit:100}),c=Q.gynNews.setPublished.useMutation({onSuccess:()=>a.gynNews.getAll.invalidate()}),o=Q.gynNews.delete.useMutation({onSuccess:()=>a.gynNews.getAll.invalidate()}),d=Q.gynNews.runResearch.useMutation({onSuccess:()=>a.gynNews.getAll.invalidate()}),m=e==="all"?i:e==="published"?i.filter(b=>b.isPublished):i.filter(b=>!b.isPublished),u=[{key:"all",label:"Alle"},{key:"published",label:"Veröffentlicht"},{key:"hidden",label:"Versteckt"}],h=b=>b==="all"?i.length:b==="published"?i.filter(y=>y.isPublished).length:i.filter(y=>!y.isPublished).length;return n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:134",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:136",className:"flex items-center gap-3 mb-5 flex-wrap",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:137",className:"flex gap-1 p-1 rounded-xl",style:{background:"rgba(13,27,62,0.06)"},children:u.map(({key:b,label:y})=>{const g=e===b;return n.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:141",onClick:()=>t(b),className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all",style:{background:g?"#ffffff":"transparent",color:g?"#0d1b3e":"#6b7280",boxShadow:g?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"DM Sans, sans-serif"},children:[y,n.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:153",className:"px-1.5 py-0.5 rounded-full text-xs ml-1",style:{background:g?"rgba(13,27,62,0.08)":"rgba(0,0,0,0.06)",color:g?"#0d1b3e":"#9ca3af"},children:h(b)})]},b)})}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:167",className:"flex items-center gap-2 ml-auto",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:168",className:"flex items-center gap-2",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:169",className:"text-xs font-semibold",style:{color:"#6b7280"},children:"Anzahl:"}),n.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:172",type:"number",min:1,max:20,value:s,onChange:b=>r(Number(b.target.value)),className:"w-14 px-2 py-1.5 rounded-xl border text-xs text-center focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"}})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:182",onClick:()=>a.gynNews.getAll.invalidate(),className:"p-2 rounded-xl transition-all",style:{color:"#9ca3af",background:"#f9fafb",border:"1px solid #e5e7eb"},title:"Aktualisieren",children:n.jsx(be,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:188",size:14,className:l?"animate-spin":""})}),n.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:190",onClick:()=>{confirm("Neue KI-Recherche starten? Dies kann 10–30 Sekunden dauern.")&&d.mutate({count:s})},disabled:d.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(co,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:200",size:14,className:d.isPending?"animate-pulse":""}),d.isPending?"Recherchiere…":"Neue Recherche"]})]})]}),d.isSuccess&&n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:208",className:"flex items-center gap-2 mb-4 px-4 py-3 rounded-xl text-sm",style:{background:"rgba(34,197,94,0.06)",color:"#16a34a",border:"1px solid rgba(34,197,94,0.15)"},children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:212",size:14}),"Recherche erfolgreich – neue Artikel wurden hinzugefügt."]}),d.isError&&n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:217",className:"flex items-center gap-2 mb-4 px-4 py-3 rounded-xl text-sm",style:{background:"rgba(239,68,68,0.06)",color:"#ef4444",border:"1px solid rgba(239,68,68,0.15)"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:221",size:14}),"Fehler bei der Recherche. Bitte KI-Einstellungen prüfen."]}),l?n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:228",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):m.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:230",className:"flex flex-col items-center py-16 gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:231",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:n.jsx(En,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:235",size:20,style:{color:"#9ca3af"}})}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:237",className:"text-sm text-gray-400",children:"Keine Artikel vorhanden"}),n.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:238",onClick:()=>d.mutate({count:s}),className:"text-xs font-semibold transition-all",style:{color:"#3b82f6"},children:"Erste Recherche starten →"})]}):n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:247",className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:m.map(b=>n.jsx(Eo,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:249",item:b,onToggle:()=>c.mutate({id:b.id,isPublished:!b.isPublished}),onDelete:()=>{confirm(`Artikel „${b.title}" wirklich löschen?`)&&o.mutate({id:b.id})}},b.id))})]})}function Eo({item:e,onToggle:t,onDelete:s}){return n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:279",className:"bg-white rounded-2xl border flex flex-col overflow-hidden transition-all",style:{borderColor:e.isPublished?"rgba(59,130,246,0.2)":"#e5e7eb",boxShadow:e.isPublished?"0 0 0 1px rgba(59,130,246,0.1)":"none"},children:[n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:286",className:"h-1 w-full",style:{background:e.isPublished?"#3b82f6":"#e5e7eb"}}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:288",className:"p-5 flex flex-col gap-3 flex-1",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:289",className:"flex items-center gap-2",children:[e.category&&n.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:291",className:"px-2 py-0.5 rounded-full text-xs font-semibold",style:{background:"rgba(59,130,246,0.08)",color:"#3b82f6"},children:e.category}),n.jsxs("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:298",className:"text-xs ml-auto flex items-center gap-1",style:{color:"#9ca3af"},children:[n.jsx(wa,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:299",size:11}),e.publishedAt?new Date(e.publishedAt).toLocaleDateString("de-DE",{day:"2-digit",month:"short",year:"numeric"}):new Date(e.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"short",year:"numeric"})]})]}),n.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:314",className:"font-bold text-sm leading-snug",style:{color:"#0d1b3e",fontFamily:"Inter, system-ui, sans-serif",letterSpacing:"-0.01em"},children:e.title}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:321",className:"text-xs leading-relaxed flex-1",style:{color:"#6b7280",fontFamily:"DM Sans, sans-serif"},children:e.summary.length>160?e.summary.slice(0,160)+"…":e.summary}),e.source&&n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:326",className:"flex items-center gap-1.5 text-xs",style:{color:"#9ca3af"},children:[n.jsx(to,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:327",size:11}),n.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:328",className:"truncate",children:e.source}),e.sourceUrl&&n.jsx("a",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:330",href:e.sourceUrl,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex-shrink-0 transition-all hover:opacity-70",style:{color:"#3b82f6"},children:n.jsx(Xl,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:337",size:11})})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:344",className:"flex items-center gap-2 px-5 py-3",style:{borderTop:"1px solid #f3f4f6"},children:[n.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:345",className:"text-xs font-semibold flex-1",style:{color:e.isPublished?"#3b82f6":"#9ca3af"},children:e.isPublished?"Veröffentlicht":"Versteckt"}),n.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:348",onClick:t,className:"p-2 rounded-xl transition-all",style:{color:e.isPublished?"#3b82f6":"#9ca3af",background:e.isPublished?"rgba(59,130,246,0.08)":"#f9fafb"},title:e.isPublished?"Verstecken":"Veröffentlichen",children:e.isPublished?n.jsx(at,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:357",size:13}):n.jsx(Et,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:357",size:13})}),n.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:359",onClick:s,className:"p-2 rounded-xl transition-all",style:{color:"#fca5a5",background:"rgba(239,68,68,0.06)"},title:"Löschen",children:n.jsx(Ze,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:365",size:13})})]})]})}function Po(){const e=Q.useUtils(),{data:t,isLoading:s}=Q.gynNews.getSettings.useQuery(),r=Q.gynNews.saveSettings.useMutation({onSuccess:()=>e.gynNews.getSettings.invalidate()}),[a,i]=w.useState({aiProvider:"openai",apiKey:"",model:"gpt-4o-search-preview",prompt:Vt,autoPublish:!1,itemsPerRun:5,reviewerEmail:"",adminEmail:"",siteUrl:""}),[l,c]=w.useState(!1);return w.useEffect(()=>{t&&!l&&(i({aiProvider:t.aiProvider==="anthropic"?"anthropic":"openai",apiKey:t.apiKey??"",model:t.model??"gpt-4o-search-preview",prompt:t.prompt??Vt,autoPublish:t.autoPublish??!1,itemsPerRun:t.itemsPerRun??5,reviewerEmail:t.reviewerEmail??"",adminEmail:t.adminEmail??"",siteUrl:t.siteUrl??""}),c(!0))},[t,l]),s?n.jsx("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:411",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:415",className:"max-w-2xl space-y-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:417",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:418",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"KI-Provider"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:422",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:423",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Anbieter"}),n.jsxs("select",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:426",value:a.aiProvider,onChange:o=>i(d=>({...d,aiProvider:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:434",value:"openai",children:"OpenAI (GPT-4)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:435",value:"anthropic",children:"Anthropic (Claude)"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:439",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:440",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Modell"}),a.aiProvider==="openai"?n.jsxs("select",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:444",value:a.model,onChange:o=>i(d=>({...d,model:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:450",value:"gpt-4o-search-preview",children:"gpt-4o-search-preview (empfohlen – Web-Suche)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:451",value:"gpt-4o",children:"gpt-4o (kein Internet-Zugriff)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:452",value:"gpt-4-turbo",children:"gpt-4-turbo (kein Internet-Zugriff)"})]}):n.jsxs("select",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:455",value:a.model,onChange:o=>i(d=>({...d,model:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none bg-white",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:461",value:"claude-3-5-sonnet-20241022",children:"claude-3-5-sonnet-20241022 (empfohlen)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:462",value:"claude-3-opus-20240229",children:"claude-3-opus-20240229"}),n.jsx("option",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:463",value:"claude-3-haiku-20240307",children:"claude-3-haiku-20240307 (schnell)"})]}),a.aiProvider==="openai"&&a.model!=="gpt-4o-search-preview"&&n.jsxs("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:467",className:"text-xs mt-1.5 flex items-center gap-1",style:{color:"#f59e0b"},children:[n.jsx("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:468",children:"⚠"})," Dieses Modell hat keinen Internet-Zugriff und kann keine aktuellen News recherchieren."]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:473",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:474",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"API-Key"}),n.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:477",type:"password",value:a.apiKey,onChange:o=>i(d=>({...d,apiKey:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none font-mono",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:a.aiProvider==="openai"?"sk-...":"sk-ant-..."}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:485",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Wird verschlüsselt gespeichert und nur serverseitig verwendet."})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:492",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:493",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Recherche-Einstellungen"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:497",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:498",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Artikel pro Recherche-Lauf"}),n.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:501",type:"number",min:1,max:20,value:a.itemsPerRun,onChange:o=>i(d=>({...d,itemsPerRun:parseInt(o.target.value)||5})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"}}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:510",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Der Cron-Job läuft automatisch am 1. jeden Monats um 03:00 Uhr."})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:515",className:"flex items-center justify-between py-1",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:516",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:517",className:"text-xs font-semibold",style:{color:"#374151"},children:"Artikel automatisch veröffentlichen"}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:520",className:"text-xs mt-0.5",style:{color:"#9ca3af"},children:"Wenn deaktiviert, müssen Artikel manuell freigegeben werden."})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:524",onClick:()=>i(o=>({...o,autoPublish:!o.autoPublish})),className:"transition-all ml-4 flex-shrink-0",children:a.autoPublish?n.jsx($e,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:529",size:28,style:{color:"#3b82f6"}}):n.jsx(We,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:531",size:28,style:{color:"#d1d5db"}})})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:538",className:"bg-white rounded-2xl border p-5 space-y-3",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:539",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"KI-Prompt"}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:542",className:"text-xs",style:{color:"#9ca3af"},children:"Der Prompt steuert, welche Themen die KI recherchiert. Änderungen wirken beim nächsten Lauf."}),n.jsx("textarea",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:545",value:a.prompt,onChange:o=>i(d=>({...d,prompt:o.target.value})),rows:8,className:"w-full px-3.5 py-3 rounded-xl border text-sm focus:outline-none resize-y font-mono leading-relaxed",style:{borderColor:"#e5e7eb",color:"#374151",background:"#f9fafb"}}),n.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:552",onClick:()=>i(o=>({...o,prompt:Vt})),className:"flex items-center gap-1.5 text-xs font-semibold transition-all",style:{color:"#9ca3af"},children:[n.jsx(Nt,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:557",size:11})," Standard-Prompt wiederherstellen"]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:562",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:563",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"E-Mail-Benachrichtigungen"}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:566",className:"text-xs",style:{color:"#9ca3af"},children:"Nach jedem Recherche-Lauf erhalten Teamleiter und Admin eine Digest-E-Mail mit allen neuen Artikeln. Der Teamleiter kann Artikel per Klick direkt aus der E-Mail freigeben. Der Admin erhält zusätzlich eine Bestätigung, wenn ein Artikel freigegeben wurde."}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:571",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:572",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Teamleiter (Reviewer) E-Mail"}),n.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:575",type:"email",value:a.reviewerEmail,onChange:o=>i(d=>({...d,reviewerEmail:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"teamleiter@praxis.de"}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:583",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Erhält die Digest-E-Mail mit Freigabe-Buttons für jeden neuen Artikel."})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:587",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:588",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Admin E-Mail"}),n.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:591",type:"email",value:a.adminEmail,onChange:o=>i(d=>({...d,adminEmail:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"admin@stusche.de"}),n.jsx("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:599",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Erhält ebenfalls die Digest-E-Mail sowie eine Bestätigung nach jeder Freigabe durch den Teamleiter."})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:603",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:604",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Website-URL (für E-Mail-Links)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:607",type:"url",value:a.siteUrl,onChange:o=>i(d=>({...d,siteUrl:o.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},placeholder:"https://new.stusche.de"}),n.jsxs("p",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:615",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:["Basis-URL der Website – wird in den Freigabe-Links der E-Mails verwendet. Aktuell: ",n.jsx("strong",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:617",children:"new.stusche.de"}),", nach Go-Live: ",n.jsx("strong",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:617",children:"www.stusche.de"}),"."]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:623",className:"flex items-center gap-3",children:[n.jsxs("button",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:624",onClick:()=>r.mutate(a),disabled:r.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(Ye,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:630",size:14}),r.isPending?"Speichern…":"Einstellungen speichern"]}),r.isSuccess&&n.jsxs("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:634",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#16a34a"},children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:635",size:13})," Gespeichert"]}),r.isError&&n.jsxs("span",{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:639",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#ef4444"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/GynNewsAdmin.tsx:640",size:13})," Fehler beim Speichern"]})]})]})}const Xc=Object.freeze(Object.defineProperty({__proto__:null,default:ko},Symbol.toStringTag,{value:"Module"}));function Ro(){const[e,t]=w.useState(!1),[s,r]=w.useState(null),{data:a,refetch:i}=Q.search.getCrawlStatus.useQuery(),l=Q.search.rebuildIndex.useMutation({onSuccess:d=>{r(d),t(!1),i()},onError:()=>{t(!1)}}),c=()=>{t(!0),r(null),l.mutate()},o=s??a;return n.jsx(Se,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:50",title:"Suchindex",breadcrumb:"Konfiguration",children:n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:51",className:"max-w-2xl",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:54",className:"flex gap-3 p-4 rounded-xl mb-6",style:{background:"rgba(59,130,246,0.08)",border:"1px solid rgba(59,130,246,0.2)"},children:[n.jsx(ka,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:58",size:18,className:"mt-0.5 shrink-0",style:{color:"#3b82f6"}}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:59",className:"text-sm",style:{color:"#1e3a5f"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:60",className:"font-semibold mb-1",children:"Vollautomatischer Suchindex"}),n.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:61",style:{color:"#4b5563"},children:["Der Crawler liest alle Seiten-Dateien aus und extrahiert Titel, Beschreibung und Keywords direkt aus den ",n.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:63",className:"bg-blue-50 px-1 rounded text-xs",children:"<SEO />"}),"-Komponenten. Der Index wird bei jedem Server-Start automatisch aktualisiert."]}),n.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:66",className:"mt-2",style:{color:"#4b5563"},children:[n.jsx("strong",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:67",children:"Neue Seite hinzufügen:"})," Seite erstellen → ",n.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:67",className:"bg-blue-50 px-1 rounded text-xs",children:"PAGE_ROUTE_MAP"})," in"," ",n.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:68",className:"bg-blue-50 px-1 rounded text-xs",children:"server/searchIndexCrawler.ts"})," ergänzen → Server neu starten oder hier manuell neu aufbauen."]})]})]}),o&&n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:75",className:"p-5 rounded-xl mb-6",style:{background:"white",border:"1px solid rgba(13,27,62,0.1)",boxShadow:"0 2px 8px rgba(13,27,62,0.06)"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:79",className:"flex items-center gap-2 mb-4",children:[n.jsx(Fe,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:80",size:16,style:{color:"#6b7280"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:81",className:"text-sm font-semibold",style:{color:"#1e3a5f"},children:"Letzter Crawl"}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:82",className:"text-xs ml-auto",style:{color:"#9ca3af"},children:new Date(o.crawledAt).toLocaleString("de-DE")})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:87",className:"grid grid-cols-2 gap-4 mb-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:88",className:"flex flex-col items-center justify-center p-4 rounded-lg",style:{background:"rgba(16,185,129,0.08)"},children:[n.jsx(eo,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:92",size:20,style:{color:"#10b981"},className:"mb-1"}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:93",className:"text-2xl font-bold",style:{color:"#10b981"},children:o.indexedEntries}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:96",className:"text-xs",style:{color:"#6b7280"},children:"Seiten indexiert"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:98",className:"flex flex-col items-center justify-center p-4 rounded-lg",style:{background:o.errors.length>0?"rgba(239,68,68,0.08)":"rgba(59,130,246,0.08)"},children:[o.errors.length>0?n.jsx(Ne,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:103",size:20,style:{color:"#ef4444"},className:"mb-1"}):n.jsx(pe,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:104",size:20,style:{color:"#3b82f6"},className:"mb-1"}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:106",className:"text-2xl font-bold",style:{color:o.errors.length>0?"#ef4444":"#3b82f6"},children:o.totalPages}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:109",className:"text-xs",style:{color:"#6b7280"},children:"Seiten gesamt"})]})]}),o.errors.length>0&&n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:114",className:"p-3 rounded-lg",style:{background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[n.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:118",className:"text-xs font-semibold mb-2",style:{color:"#ef4444"},children:[o.errors.length," Fehler beim Crawlen:"]}),n.jsx("ul",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:121",className:"space-y-1",children:o.errors.map((d,m)=>n.jsxs("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:123",className:"text-xs",style:{color:"#6b7280"},children:["• ",d]},m))})]}),o.errors.length===0&&n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:130",className:"flex items-center gap-2",children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:131",size:14,style:{color:"#10b981"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:132",className:"text-sm",style:{color:"#10b981"},children:"Alle Seiten erfolgreich indexiert"})]})]}),!o&&n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:139",className:"p-5 rounded-xl mb-6 flex items-center gap-3",style:{background:"rgba(245,158,11,0.08)",border:"1px solid rgba(245,158,11,0.2)"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:143",size:18,style:{color:"#f59e0b"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:144",className:"text-sm",style:{color:"#92400e"},children:'Noch kein Crawl-Status verfügbar. Klicke auf "Jetzt neu aufbauen".'})]}),n.jsxs("button",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:151",onClick:c,disabled:e,className:"flex items-center gap-2 px-5 py-3 rounded-xl font-semibold text-sm transition-all",style:{background:e?"rgba(59,130,246,0.5)":"#1e3a5f",color:"white",cursor:e?"not-allowed":"pointer"},children:[n.jsx(be,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:161",size:16,className:e?"animate-spin":""}),e?"Wird aufgebaut…":"Jetzt neu aufbauen"]}),s&&n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:166",className:"flex items-center gap-2 mt-3 text-sm",style:{color:"#10b981"},children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:170",size:14}),n.jsxs("span",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:171",children:["Suchindex erfolgreich neu aufgebaut: ",s.indexedEntries," Seiten indexiert."]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:178",className:"mt-8 p-4 rounded-xl",style:{background:"rgba(13,27,62,0.04)"},children:[n.jsxs("p",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:179",className:"text-xs font-semibold mb-2",style:{color:"#1e3a5f"},children:[n.jsx(Pa,{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:180",size:12,className:"inline mr-1"}),"Wie funktioniert der automatische Crawler?"]}),n.jsxs("ol",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:183",className:"text-xs space-y-1.5",style:{color:"#6b7280"},children:[n.jsx("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:184",children:"1. Beim Server-Start wird der Index automatisch neu aufgebaut."}),n.jsx("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:185",children:"2. Täglich um 03:00 Uhr wird der Index erneut aktualisiert."}),n.jsxs("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:186",children:["3. Neue Seiten werden erkannt, sobald sie eine ",n.jsx("code",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:186",className:"bg-gray-100 px-1 rounded",children:"<SEO />"}),"-Komponente haben und in der Route-Map eingetragen sind."]}),n.jsx("li",{"data-loc":"client/src/pages/admin/SearchIndexAdmin.tsx:187",children:"4. Manuell kann der Index hier jederzeit neu aufgebaut werden."})]})]})]})})}const ed=Object.freeze(Object.defineProperty({__proto__:null,default:Ro},Symbol.toStringTag,{value:"Module"}));function Co(){const[e,t]=w.useState("anfragen"),s=[{id:"anfragen",label:"Anfragen",icon:He},{id:"ausschlussgruppen",label:"Ausschlussgruppen",icon:Ra},{id:"einstellungen",label:"Einstellungen",icon:oo}];return n.jsxs(Se,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:44",title:"Retourenportal",breadcrumb:"Retourenportal",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:46",className:"flex gap-1 p-1 rounded-xl mb-6 w-fit flex-wrap",style:{background:"rgba(13,27,62,0.06)"},children:s.map(({id:r,label:a,icon:i})=>n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:51",onClick:()=>t(r),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:e===r?"#ffffff":"transparent",color:e===r?"#0d1b3e":"#6b7280",boxShadow:e===r?"0 1px 3px rgba(0,0,0,0.08)":"none",fontFamily:"DM Sans, sans-serif"},children:[n.jsx(i,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:62",size:14}),a]},r))}),e==="anfragen"&&n.jsx(Mo,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:68"}),e==="ausschlussgruppen"&&n.jsx(Oo,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:69"}),e==="einstellungen"&&n.jsx(To,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:70"})]})}const bs={wrong_delivery:"Falschlieferung",too_much:"Zu viel geliefert",defect:"Defekt / Beschädigt",other:"Sonstiges"},yt={open:{bg:"rgba(245,158,11,0.1)",text:"#d97706"},approved:{bg:"rgba(34,197,94,0.1)",text:"#16a34a"},rejected:{bg:"rgba(239,68,68,0.1)",text:"#ef4444"}},vs={open:"Offen",approved:"Genehmigt",rejected:"Abgelehnt"},_o={open:Fe,approved:pe,rejected:It};function Mo(){const{data:e,isLoading:t,refetch:s}=Q.returns.getOpenRequests.useQuery({limit:100}),r=Q.returns.updateStatus.useMutation({onSuccess:()=>{s(),ge.success("Status aktualisiert")},onError:()=>ge.error("Fehler beim Aktualisieren")}),[a,i]=w.useState(null),[l,c]=w.useState(""),o=e?.find(d=>d.id===a)??null;return t?n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:112",className:"flex items-center justify-center py-16",children:[n.jsx(be,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:113",size:20,className:"animate-spin",style:{color:"#0d1b3e"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:114",className:"ml-3 text-sm",style:{color:"#6b7280"},children:"Lade Anfragen…"})]}):!e||e.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:121",className:"flex flex-col items-center justify-center py-16 gap-3",children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:122",size:40,style:{color:"#22c55e"}}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:123",className:"text-sm font-semibold",style:{color:"#374151"},children:"Keine offenen Retourenanfragen"})]}):n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:129",className:"flex gap-6",style:{minHeight:500},children:[n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:131",className:"flex-none w-80 flex flex-col gap-2 overflow-y-auto",style:{maxHeight:600},children:e.map(d=>{const m=_o[d.status]??Fe,u=yt[d.status]??yt.open;return n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:136",onClick:()=>{i(d.id),c(d.adminNote??"")},className:"w-full text-left p-4 rounded-xl border transition-all",style:{background:a===d.id?"rgba(13,27,62,0.06)":"#ffffff",borderColor:a===d.id?"#0d1b3e":"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:145",className:"flex items-center justify-between mb-1",children:[n.jsxs("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:146",className:"text-xs font-bold",style:{color:"#0d1b3e"},children:["Anfrage #",d.id]}),n.jsxs("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:149",className:"flex items-center gap-1 text-xs font-semibold px-2 py-0.5 rounded-full",style:{background:u.bg,color:u.text},children:[n.jsx(m,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:153",size:10}),vs[d.status]]})]}),n.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:157",className:"text-xs",style:{color:"#6b7280"},children:[new Date(d.createdAt).toLocaleDateString("de-DE")," · ",bs[d.reason]??d.reason]}),d.contactName&&n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:161",className:"text-xs mt-1 truncate",style:{color:"#374151"},children:d.contactName})]},d.id)})}),o?n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:170",className:"flex-1 rounded-2xl border p-6",style:{borderColor:"#e5e7eb",background:"#fff"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:171",className:"flex items-center justify-between mb-4",children:[n.jsxs("h3",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:172",className:"text-base font-bold",style:{color:"#0d1b3e"},children:["Anfrage #",o.id]}),n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:173",className:"flex items-center gap-1 text-xs font-semibold px-3 py-1 rounded-full",style:{background:yt[o.status]?.bg,color:yt[o.status]?.text},children:vs[o.status]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:181",className:"grid grid-cols-2 gap-4 mb-4 text-sm",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:182",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:183",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"EINGEGANGEN"}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:184",style:{color:"#374151"},children:new Date(o.createdAt).toLocaleString("de-DE")})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:186",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:187",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"GRUND"}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:188",style:{color:"#374151"},children:bs[o.reason]??o.reason})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:190",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:191",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"MENGE"}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:192",style:{color:"#374151"},children:o.quantityRequested})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:194",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:195",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"PACKSTÜCKE"}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:196",style:{color:"#374151"},children:o.packagesCount??"–"})]}),o.contactName&&n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:199",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:200",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"ANSPRECHPARTNER"}),n.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:201",style:{color:"#374151"},children:[o.contactName,o.contactPhone?` · ${o.contactPhone}`:""]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:204",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:205",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"ABHOLBEREIT"}),n.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:206",style:{color:"#374151"},children:[o.isReadyForPickup?"Ja":"Nein"," · ",o.isPackaged?"Verpackt":"Nicht verpackt"]})]})]}),o.notes&&n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:211",className:"mb-4 p-3 rounded-lg",style:{background:"rgba(13,27,62,0.04)"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:212",className:"text-xs font-semibold mb-1",style:{color:"#9ca3af"},children:"KUNDENHINWEIS"}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:213",className:"text-sm",style:{color:"#374151"},children:o.notes})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:218",className:"mb-4",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:219",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Interne Notiz"}),n.jsx("textarea",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:220",value:l,onChange:d=>c(d.target.value),rows:3,className:"w-full rounded-lg border px-3 py-2 text-sm resize-none",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"},placeholder:"Interne Notiz (nicht für Kunden sichtbar)…"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:231",className:"flex gap-3",children:[n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:232",onClick:()=>r.mutate({id:o.id,status:"approved",adminNote:l}),disabled:r.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"#16a34a",color:"#fff"},children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:238",size:14})," Genehmigen"]}),n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:240",onClick:()=>r.mutate({id:o.id,status:"rejected",adminNote:l}),disabled:r.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"#ef4444",color:"#fff"},children:[n.jsx(It,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:246",size:14})," Ablehnen"]}),n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:248",onClick:()=>r.mutate({id:o.id,status:"open",adminNote:l}),disabled:r.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"rgba(13,27,62,0.08)",color:"#0d1b3e"},children:[n.jsx(Ye,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:254",size:14})," Notiz speichern"]})]})]}):n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:259",className:"flex-1 flex items-center justify-center rounded-2xl border",style:{borderColor:"#e5e7eb",borderStyle:"dashed"},children:n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:260",className:"text-center",children:[n.jsx(at,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:261",size:32,className:"mx-auto mb-2",style:{color:"#d1d5db"}}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:262",className:"text-sm",style:{color:"#9ca3af"},children:"Anfrage auswählen"})]})})]})}function Oo(){const{data:e,isLoading:t,refetch:s}=Q.returns.getExclusionGroups.useQuery(),r=Q.returns.upsertExclusionGroup.useMutation({onSuccess:()=>{s(),l(""),o(""),ge.success("Gruppe gespeichert")},onError:()=>ge.error("Fehler beim Speichern")}),a=Q.returns.deleteExclusionGroup.useMutation({onSuccess:()=>{s(),ge.success("Gruppe gelöscht")},onError:()=>ge.error("Fehler beim Löschen")}),[i,l]=w.useState(""),[c,o]=w.useState("");return n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:286",className:"max-w-2xl",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:287",className:"mb-6 p-4 rounded-xl",style:{background:"rgba(13,27,62,0.04)",border:"1px solid rgba(13,27,62,0.08)"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:288",className:"flex items-start gap-2 mb-1",children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:289",size:14,className:"mt-0.5 flex-none",style:{color:"#d97706"}}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:290",className:"text-xs font-semibold",style:{color:"#d97706"},children:"Hinweis"})]}),n.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:292",className:"text-xs",style:{color:"#6b7280"},children:["Hier eingetragene SAP-Artikelgruppen werden beim nächsten Sync automatisch als ",n.jsx("strong",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:293",children:"nicht retournierbar"})," markiert. Der Gruppenname muss exakt dem SAP-Gruppenname entsprechen (z.B. ",n.jsx("code",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:294",className:"bg-white px-1 rounded",children:"NCAP"}),"). Bereits synchronisierte Artikel werden beim nächsten Vollsync aktualisiert."]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:300",className:"flex gap-3 mb-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:301",className:"flex-1",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:302",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"SAP-Gruppenname *"}),n.jsx("input",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:303",value:i,onChange:d=>l(d.target.value),placeholder:"z.B. NCAP",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:311",className:"flex-1",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:312",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Beschreibung (optional)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:313",value:c,onChange:d=>o(d.target.value),placeholder:"z.B. Arzneimittel / Reagenzien",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:321",className:"flex items-end",children:n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:322",onClick:()=>{i.trim()&&r.mutate({groupName:i.trim(),description:c.trim()||void 0,active:!0})},disabled:!i.trim()||r.isPending,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:"#0d1b3e",color:"#fff",opacity:i.trim()?1:.5},children:[n.jsx(Pt,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:328",size:14})," Hinzufügen"]})})]}),t?n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:335",className:"flex items-center gap-2 py-8",children:[n.jsx(be,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:336",size:16,className:"animate-spin",style:{color:"#0d1b3e"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:337",className:"text-sm",style:{color:"#6b7280"},children:"Lade…"})]}):!e||e.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:340",className:"text-center py-12 rounded-xl border",style:{borderColor:"#e5e7eb",borderStyle:"dashed"},children:[n.jsx(Ra,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:341",size:32,className:"mx-auto mb-2",style:{color:"#d1d5db"}}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:342",className:"text-sm",style:{color:"#9ca3af"},children:"Noch keine Ausschlussgruppen eingetragen"})]}):n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:345",className:"flex flex-col gap-2",children:e.map(d=>n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:347",className:"flex items-center gap-4 p-4 rounded-xl border",style:{borderColor:"#e5e7eb",background:"#fff"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:352",className:"flex-1",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:353",className:"flex items-center gap-2",children:[n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:354",className:"text-sm font-bold",style:{color:"#0d1b3e"},children:d.groupName}),n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:355",className:"text-xs px-2 py-0.5 rounded-full font-semibold",style:{background:d.active?"rgba(34,197,94,0.1)":"rgba(156,163,175,0.15)",color:d.active?"#16a34a":"#9ca3af"},children:d.active?"Aktiv":"Inaktiv"})]}),d.description&&n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:366",className:"text-xs mt-0.5",style:{color:"#6b7280"},children:d.description})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:369",onClick:()=>r.mutate({groupName:d.groupName,description:d.description??void 0,active:!d.active}),className:"p-2 rounded-lg transition-all",style:{color:d.active?"#16a34a":"#9ca3af"},title:d.active?"Deaktivieren":"Aktivieren",children:d.active?n.jsx($e,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:375",size:20}):n.jsx(We,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:375",size:20})}),n.jsx("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:377",onClick:()=>{confirm(`Gruppe "${d.groupName}" wirklich löschen?`)&&a.mutate({id:d.id})},className:"p-2 rounded-lg transition-all",style:{color:"#ef4444"},title:"Löschen",children:n.jsx(Ze,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:383",size:16})})]},d.id))})]})}function To(){const[e,t]=w.useState(90),[s,r]=w.useState(!1),{data:a,isLoading:i}=Q.siteSettings.get.useQuery({key:"return_deadline_days"},{refetchOnWindowFocus:!1});w.useEffect(()=>{if(a&&!s){const o=parseInt(a.value??"90",10);t(isNaN(o)?90:o),r(!0)}},[a,s]);const l=Q.useUtils(),c=Q.siteSettings.set.useMutation({onSuccess:()=>{ge.success("Einstellungen gespeichert"),l.siteSettings.get.invalidate({key:"return_deadline_days"})},onError:o=>{ge.error("Fehler beim Speichern: "+o.message)}});return n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:656",className:"flex flex-col gap-6 max-w-2xl",children:n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:657",className:"rounded-2xl p-6",style:{background:"#fff",border:"1px solid #e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:661",className:"flex items-center gap-3 mb-5",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:662",className:"w-9 h-9 rounded-xl flex items-center justify-center flex-none",style:{background:"rgba(13,27,62,0.08)"},children:n.jsx(Fe,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:666",size:16,style:{color:"#0d1b3e"}})}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:668",children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:669",className:"text-sm font-bold",style:{color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:"Retourenfrist"}),n.jsx("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:675",className:"text-xs",style:{color:"#6b7280"},children:"Maximale Anzahl an Tagen ab Rechnungsdatum, innerhalb derer eine Retoure beantragt werden kann"})]})]}),i?n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:683",className:"flex items-center gap-2 py-4",children:[n.jsx(be,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:684",size:14,className:"animate-spin",style:{color:"#9ca3af"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:685",className:"text-sm",style:{color:"#9ca3af"},children:"Wird geladen..."})]}):n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:690",className:"flex items-end gap-4 flex-wrap",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:691",className:"flex flex-col gap-1.5",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:692",className:"text-xs font-semibold",style:{color:"#374151",fontFamily:"DM Sans, sans-serif"},children:"Retourenfrist (Tage)"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:698",className:"flex items-center gap-2",children:[n.jsx("input",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:699",type:"number",min:1,max:365,value:e,onChange:o=>{const d=parseInt(o.target.value,10);!isNaN(d)&&d>0&&t(d)},className:"w-24 rounded-lg border px-3 py-2 text-sm font-semibold text-center",style:{borderColor:"#e5e7eb",color:"#0d1b3e",outline:"none",fontFamily:"DM Sans, sans-serif"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:716",className:"text-sm",style:{color:"#6b7280"},children:"Tage"})]})]}),n.jsxs("button",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:722",onClick:()=>c.mutate({key:"return_deadline_days",value:String(e),description:"Retourenfrist in Tagen"}),disabled:c.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold transition-all",style:{background:"#0d1b3e",color:"#fff",fontFamily:"DM Sans, sans-serif",opacity:c.isPending?.7:1},children:[n.jsx(Ye,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:739",size:14}),c.isPending?"Speichern...":"Speichern"]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:745",className:"mt-4 rounded-xl p-3 flex items-start gap-2",style:{background:"rgba(13,27,62,0.04)"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:749",size:13,className:"flex-none mt-0.5",style:{color:"#6b7280"}}),n.jsxs("p",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:750",className:"text-xs leading-relaxed",style:{color:"#6b7280"},children:["Aktuell eingestellt:"," ",n.jsxs("strong",{"data-loc":"client/src/pages/admin/RetourenAdmin.tsx:752",style:{color:"#0d1b3e"},children:[e," Tage"]}),". Retourenanfragen, bei denen das Rechnungsdatum mehr als ",e," Tage zurueckliegt, werden automatisch als abgelaufen markiert und koennen nur noch ueber das Fallback-Formular eingereicht werden."]})]})]})})}const td=Object.freeze(Object.defineProperty({__proto__:null,default:Co},Symbol.toStringTag,{value:"Module"})),Yt={neu:{label:"Neu",bg:"rgba(239,68,68,0.08)",text:"#ef4444",dot:"#ef4444",icon:Nn},versendet:{label:"Versendet",bg:"rgba(34,197,94,0.08)",text:"#16a34a",dot:"#22c55e",icon:pe},storniert:{label:"Storniert",bg:"rgba(107,114,128,0.08)",text:"#6b7280",dot:"#9ca3af",icon:It}};function Io(){const{data:e,isLoading:t,refetch:s}=Q.katalog.getAll.useQuery(),r=Q.katalog.updateStatus.useMutation({onSuccess:()=>s()}),[a,i]=w.useState(null),[l,c]=w.useState("alle"),o=e?.filter(m=>l==="alle"||m.status===l)??[],d={alle:e?.length??0,neu:e?.filter(m=>m.status==="neu").length??0,versendet:e?.filter(m=>m.status==="versendet").length??0,storniert:e?.filter(m=>m.status==="storniert").length??0};return n.jsx(Se,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:49",title:"Katalogbestellungen",breadcrumb:"Katalog",children:n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:50",className:"space-y-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:53",className:"flex items-center justify-between",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:54",children:n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:55",className:"text-sm text-gray-400 mt-1",children:"Postalische Katalogbestellungen verwalten und als versendet markieren."})}),n.jsxs("button",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:59",onClick:()=>s(),className:"flex items-center gap-2 px-3 py-2 text-sm text-gray-400 hover:text-white bg-white/5 hover:bg-white/10 rounded-lg transition-colors",children:[n.jsx(be,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:63",className:"w-4 h-4"}),"Aktualisieren"]})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:69",className:"flex gap-2 flex-wrap",children:["alle","neu","versendet","storniert"].map(m=>{const u=m==="alle"?null:Yt[m],h=l===m;return n.jsxs("button",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:74",onClick:()=>c(m),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-semibold transition-all border ${h?"bg-[#1a6dcc] text-white border-[#1a6dcc]":"bg-white/5 text-gray-400 border-white/10 hover:bg-white/10"}`,children:[u&&n.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:84",className:"w-1.5 h-1.5 rounded-full flex-shrink-0",style:{backgroundColor:u.dot}}),m==="alle"?"Alle":u.label,n.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:90",className:`ml-0.5 px-1.5 py-0.5 rounded-full text-[10px] ${h?"bg-white/20":"bg-white/10"}`,children:d[m]})]},m)})}),t?n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:100",className:"flex items-center justify-center py-16 text-gray-500",children:[n.jsx(be,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:101",className:"w-5 h-5 animate-spin mr-2"}),"Wird geladen…"]}):o.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:105",className:"flex flex-col items-center justify-center py-16 text-gray-500 gap-3",children:[n.jsx(He,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:106",className:"w-10 h-10 opacity-30"}),n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:107",className:"text-sm",children:"Keine Bestellungen vorhanden."})]}):n.jsx("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:110",className:"space-y-2",children:o.map(m=>{const u=m.status??"neu",h=Yt[u],b=h.icon,y=a===m.id,g=m.createdAt?new Date(m.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}):"–";return n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:119",className:"bg-white/5 border border-white/10 rounded-xl overflow-hidden",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:124",className:"flex items-center gap-4 px-4 py-3 cursor-pointer hover:bg-white/5 transition-colors",onClick:()=>i(y?null:m.id),children:[n.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:129",className:"w-2 h-2 rounded-full flex-shrink-0",style:{backgroundColor:h.dot}}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:132",className:"flex-1 min-w-0",children:[n.jsxs("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:133",className:"text-sm font-semibold text-white truncate",children:[m.anrede?`${m.anrede} `:"",m.name]}),m.praxis&&n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:137",className:"text-xs text-gray-400 truncate",children:m.praxis})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:142",className:"hidden sm:flex items-center gap-1 text-xs text-gray-400 flex-shrink-0",children:[n.jsx(ao,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:143",className:"w-3 h-3"}),m.plz," ",m.ort]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:148",className:"hidden md:flex items-center gap-1 text-xs text-gray-400 flex-shrink-0",children:[n.jsx(He,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:149",className:"w-3 h-3"}),m.anzahl,"×"]}),n.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:154",className:"hidden lg:block text-xs text-gray-500 flex-shrink-0",children:g}),n.jsxs("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:157",className:"flex items-center gap-1 px-2 py-1 rounded-full text-xs font-semibold flex-shrink-0",style:{background:h.bg,color:h.text},children:[n.jsx(b,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:161",className:"w-3 h-3"}),h.label]}),n.jsx(Sa,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:165",className:`w-4 h-4 text-gray-500 flex-shrink-0 transition-transform ${y?"rotate-180":""}`})]}),y&&n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:172",className:"border-t border-white/10 px-4 py-4 bg-white/3 space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:173",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:175",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:176",className:"text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Lieferadresse"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:177",className:"text-sm text-gray-200 space-y-0.5",children:[n.jsxs("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:178",children:[m.anrede?`${m.anrede} `:"",m.name]}),m.praxis&&n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:179",className:"text-gray-400",children:m.praxis}),n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:180",children:m.strasse}),n.jsxs("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:181",children:[m.plz," ",m.ort]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:186",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:187",className:"text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Kontakt"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:188",className:"text-sm text-gray-200 space-y-1",children:[m.email&&n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:190",className:"flex items-center gap-2",children:[n.jsx(Lt,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:191",className:"w-3.5 h-3.5 text-gray-400"}),n.jsx("a",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:192",href:`mailto:${m.email}`,className:"text-[#4a9eff] hover:underline",children:m.email})]}),m.telefon&&n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:196",className:"flex items-center gap-2",children:[n.jsx(Ea,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:197",className:"w-3.5 h-3.5 text-gray-400"}),n.jsx("a",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:198",href:`tel:${m.telefon}`,className:"text-[#4a9eff] hover:underline",children:m.telefon})]}),!m.email&&!m.telefon&&n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:202",className:"text-gray-500 text-xs",children:"Keine Kontaktdaten angegeben"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:208",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:209",className:"text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2",children:"Details"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:210",className:"text-sm text-gray-200 space-y-1",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:211",className:"flex items-center gap-2",children:[n.jsx(He,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:212",className:"w-3.5 h-3.5 text-gray-400"}),n.jsxs("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:213",children:[m.anzahl," Exemplar",(m.anzahl??1)>1?"e":""]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:215",className:"flex items-center gap-2",children:[n.jsx(Fe,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:216",className:"w-3.5 h-3.5 text-gray-400"}),n.jsx("span",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:217",children:g})]})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:224",className:"flex flex-wrap gap-2 pt-2 border-t border-white/10",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:225",className:"w-full text-xs font-semibold text-gray-400 uppercase tracking-wider mb-1",children:"Status ändern"}),["neu","versendet","storniert"].map(x=>{const v=Yt[x],L=v.icon;return n.jsxs("button",{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:230",disabled:u===x||r.isPending,onClick:()=>r.mutate({id:m.id,status:x}),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-semibold transition-all border disabled:opacity-40 disabled:cursor-not-allowed ${u===x?"border-white/20 text-white":"border-white/10 text-gray-400 hover:bg-white/10 hover:text-white"}`,style:u===x?{background:v.bg,color:v.text,borderColor:v.dot+"40"}:{},children:[n.jsx(L,{"data-loc":"client/src/pages/admin/KatalogBestellungenAdmin.tsx:241",className:"w-3.5 h-3.5"}),v.label]},x)})]})]})]},m.id)})})]})})}const nd=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"}));function Lo(){const{data:e,isLoading:t}=Q.returns.getEmailSettings.useQuery(),s=Q.returns.saveEmailSettings.useMutation({onSuccess:()=>ge.success("Einstellungen gespeichert"),onError:()=>ge.error("Fehler beim Speichern")}),r=Q.returns.sendTestEmail.useMutation({onSuccess:()=>ge.success("Test-E-Mail gesendet"),onError:d=>ge.error(`Fehler: ${d.message}`)}),[a,i]=w.useState({recipientEmail:"",senderEmail:"",senderName:"Stusche",smtpHost:"",smtpPort:587,smtpUser:"",smtpPassword:"",smtpSecure:!0,enabled:!1,sendConfirmationToCustomer:!1}),[l,c]=w.useState("");w.useEffect(()=>{e&&i({recipientEmail:e.recipientEmail??"",senderEmail:e.senderEmail??"",senderName:e.senderName??"Stusche",smtpHost:e.smtpHost??"",smtpPort:e.smtpPort??587,smtpUser:e.smtpUser??"",smtpPassword:e.smtpPassword??"",smtpSecure:e.smtpSecure??!0,enabled:e.enabled??!1,sendConfirmationToCustomer:e.sendConfirmationToCustomer??!1})},[e]);const o=(d,m)=>i(u=>({...u,[d]:m}));return t?n.jsx(Se,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:67",title:"E-Mail-Einstellungen",breadcrumb:"Einstellungen",children:n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:68",className:"flex items-center gap-2 py-8",children:[n.jsx(be,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:69",size:16,className:"animate-spin",style:{color:"#0d1b3e"}}),n.jsx("span",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:70",className:"text-sm",style:{color:"#6b7280"},children:"Lade…"})]})}):n.jsx(Se,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:77",title:"E-Mail-Einstellungen",breadcrumb:"Einstellungen",children:n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:78",className:"max-w-xl",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:80",className:"mb-6 p-4 rounded-xl",style:{background:"rgba(13,27,62,0.04)",border:"1px solid rgba(13,27,62,0.08)"},children:n.jsxs("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:84",className:"text-xs",style:{color:"#6b7280"},children:["Alle Formularanfragen (Kontakt, Beratung, Katalog, Retoure) werden per SMTP an die konfigurierte Empfänger-Adresse gesendet. Eine zentrale Konfiguration gilt für alle Formulare.",n.jsx("br",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:87"}),n.jsx("br",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:87"}),"Für M365-Konten: SMTP-Host"," ",n.jsx("code",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:89",className:"bg-white px-1 rounded",children:"smtp.office365.com"}),", Port"," ",n.jsx("code",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:90",className:"bg-white px-1 rounded",children:"587"}),", STARTTLS aktiviert."]})}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:94",className:"flex flex-col gap-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:96",className:"flex items-center justify-between p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:100",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:101",className:"text-sm font-semibold",style:{color:"#0d1b3e"},children:"E-Mail-Benachrichtigungen aktiv"}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:104",className:"text-xs",style:{color:"#6b7280"},children:"E-Mails nach jeder Formularanfrage senden"})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:108",onClick:()=>o("enabled",!a.enabled),style:{color:a.enabled?"#16a34a":"#9ca3af"},children:a.enabled?n.jsx($e,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:112",size:28}):n.jsx(We,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:112",size:28})})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:117",className:"flex items-center justify-between p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:121",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:122",className:"text-sm font-semibold",style:{color:"#0d1b3e"},children:"Bestätigungsmail an Kunden"}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:125",className:"text-xs",style:{color:"#6b7280"},children:"Automatische Bestätigung an Kunden senden (wenn E-Mail angegeben)"})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:129",onClick:()=>o("sendConfirmationToCustomer",!a.sendConfirmationToCustomer),style:{color:a.sendConfirmationToCustomer?"#16a34a":"#9ca3af"},children:a.sendConfirmationToCustomer?n.jsx($e,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:133",size:28}):n.jsx(We,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:133",size:28})})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:138",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:139",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Empfänger-Adresse(n) *"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:142",value:a.recipientEmail,onChange:d=>o("recipientEmail",d.target.value),placeholder:"info@ihre-domain.de, intern@ihre-domain.de",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:149",className:"text-xs mt-1",style:{color:"#9ca3af"},children:"Mehrere Adressen kommagetrennt"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:155",className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:156",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:157",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Absender-Name"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:160",value:a.senderName,onChange:d=>o("senderName",d.target.value),placeholder:"Stusche",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:168",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:169",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Absender-Adresse"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:172",value:a.senderEmail,onChange:d=>o("senderEmail",d.target.value),placeholder:"noreply@ihre-domain.de",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:183",className:"p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:184",className:"text-xs font-bold mb-3",style:{color:"#0d1b3e"},children:"SMTP-Konfiguration"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:187",className:"grid grid-cols-3 gap-3 mb-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:188",className:"col-span-2",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:189",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"SMTP-Host"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:192",value:a.smtpHost,onChange:d=>o("smtpHost",d.target.value),placeholder:"smtp.office365.com",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:200",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:201",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Port"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:204",type:"number",value:a.smtpPort,onChange:d=>o("smtpPort",parseInt(d.target.value)||587),className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:213",className:"grid grid-cols-2 gap-3 mb-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:214",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:215",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Benutzername"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:218",value:a.smtpUser,onChange:d=>o("smtpUser",d.target.value),placeholder:"user@ihre-domain.de",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:226",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:227",className:"block text-xs font-semibold mb-1",style:{color:"#374151"},children:"Passwort"}),n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:230",type:"password",value:a.smtpPassword,onChange:d=>o("smtpPassword",d.target.value),placeholder:a.smtpPassword==="***set***"?"●●●●●●●● (gesetzt)":"Passwort eingeben",className:"w-full rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:240",className:"flex items-center justify-between",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:241",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:242",className:"text-xs font-semibold",style:{color:"#374151"},children:"STARTTLS / TLS"}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:245",className:"text-xs",style:{color:"#9ca3af"},children:"Für M365 und die meisten SMTP-Server empfohlen"})]}),n.jsx("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:249",onClick:()=>o("smtpSecure",!a.smtpSecure),style:{color:a.smtpSecure?"#16a34a":"#9ca3af"},children:a.smtpSecure?n.jsx($e,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:253",size:24}):n.jsx(We,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:253",size:24})})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:259",className:"p-4 rounded-xl border",style:{borderColor:"#e5e7eb"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:260",className:"text-xs font-bold mb-3",style:{color:"#0d1b3e"},children:"Test-E-Mail senden"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:263",className:"flex gap-2",children:[n.jsx("input",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:264",type:"email",value:l,onChange:d=>c(d.target.value),placeholder:"test@ihre-domain.de",className:"flex-1 rounded-lg border px-3 py-2 text-sm",style:{borderColor:"#e5e7eb",color:"#374151",outline:"none"}}),n.jsxs("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:272",onClick:()=>r.mutate({toEmail:l}),disabled:r.isPending||!l,className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-semibold transition-all",style:{background:l?"#0d1b3e":"#e5e7eb",color:l?"#fff":"#9ca3af"},children:[n.jsx(lo,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:281",size:13}),r.isPending?"Senden…":"Senden"]})]}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:285",className:"text-xs mt-2",style:{color:"#9ca3af"},children:"Sendet eine Test-E-Mail mit der aktuell gespeicherten SMTP-Konfiguration"})]}),n.jsxs("button",{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:291",onClick:()=>s.mutate(a),disabled:s.isPending,className:"flex items-center gap-2 px-6 py-3 rounded-xl text-sm font-semibold transition-all w-fit",style:{background:"#0d1b3e",color:"#fff"},children:[n.jsx(Ye,{"data-loc":"client/src/pages/admin/EmailEinstellungenAdmin.tsx:297",size:14}),s.isPending?"Speichern…":"Einstellungen speichern"]})]})]})})}const sd=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"})),ws={contact:"Kontaktanfrage",contact_confirmation:"Kontakt (Bestätigung)",wizard:"Beratungsanfrage",wizard_confirmation:"Beratung (Bestätigung)",katalog:"Katalogbestellung",katalog_confirmation:"Katalog (Bestätigung)",retoure:"Retourenanfrage",retoure_confirmation:"Retoure (Bestätigung)",return:"Retourenanfrage",return_confirmation:"Retoure (Bestätigung)"},Do={contact:{bg:"rgba(59,130,246,0.08)",text:"#1d4ed8"},contact_confirmation:{bg:"rgba(59,130,246,0.05)",text:"#3b82f6"},wizard:{bg:"rgba(139,92,246,0.08)",text:"#7c3aed"},wizard_confirmation:{bg:"rgba(139,92,246,0.05)",text:"#8b5cf6"},katalog:{bg:"rgba(245,158,11,0.08)",text:"#d97706"},katalog_confirmation:{bg:"rgba(245,158,11,0.05)",text:"#f59e0b"},retoure:{bg:"rgba(239,68,68,0.08)",text:"#dc2626"},return:{bg:"rgba(239,68,68,0.08)",text:"#dc2626"}};function zo(){const[e,t]=w.useState(null),[s,r]=w.useState("all"),{data:a=[],refetch:i,isLoading:l}=Q.admin.getEmailLogs.useQuery({limit:200,offset:0},{refetchInterval:6e4}),c=Q.admin.deleteEmailLog.useMutation({onSuccess:()=>i()}),o=Array.from(new Set(a.map(h=>h.type))),d=s==="all"?a:a.filter(h=>h.type===s),m=a.filter(h=>h.success).length,u=a.filter(h=>!h.success).length;return n.jsxs(Se,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:78",title:"E-Mail Log",breadcrumb:"Übersicht",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:80",className:"grid grid-cols-3 gap-4 mb-6",children:[{label:"Gesamt",value:a.length,color:"#0d1b3e",bg:"rgba(13,27,62,0.05)"},{label:"Erfolgreich",value:m,color:"#16a34a",bg:"rgba(34,197,94,0.08)"},{label:"Fehlgeschlagen",value:u,color:"#dc2626",bg:"rgba(239,68,68,0.08)"}].map(({label:h,value:b,color:y,bg:g})=>n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:86",className:"rounded-2xl p-4 text-center",style:{background:g},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:87",className:"text-2xl font-bold",style:{color:y,fontFamily:"Inter, system-ui, sans-serif"},children:b}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:88",className:"text-xs font-semibold mt-1",style:{color:"#9ca3af",fontFamily:"DM Sans, sans-serif"},children:h})]},h))}),n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:94",className:"flex items-center gap-2 mb-5 flex-wrap",children:[n.jsx("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:95",onClick:()=>r("all"),className:"px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all",style:{background:s==="all"?"#0d1b3e":"#ffffff",color:s==="all"?"#ffffff":"#6b7280",border:s==="all"?"1px solid #0d1b3e":"1px solid #e5e7eb"},children:"Alle"}),o.map(h=>n.jsx("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:107",onClick:()=>r(h),className:"px-3.5 py-1.5 rounded-full text-xs font-semibold transition-all",style:{background:s===h?"#0d1b3e":"#ffffff",color:s===h?"#ffffff":"#6b7280",border:s===h?"1px solid #0d1b3e":"1px solid #e5e7eb"},children:ws[h]??h},h)),n.jsx("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:120",onClick:()=>i(),className:"ml-auto p-2 rounded-lg transition-all",style:{color:"#9ca3af"},title:"Aktualisieren",children:n.jsx(be,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:126",size:14,className:l?"animate-spin":""})})]}),l?n.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:132",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"}):d.length===0?n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:134",className:"flex flex-col items-center py-16 gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:135",className:"w-12 h-12 rounded-2xl flex items-center justify-center",style:{background:"rgba(13,27,62,0.05)"},children:n.jsx(Lt,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:136",size:20,style:{color:"#9ca3af"}})}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:138",className:"text-sm text-gray-400",children:"Keine E-Mails protokolliert"})]}):n.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:141",className:"space-y-2",children:d.map(h=>{const b=e===h.id,y=Do[h.type]??{bg:"rgba(107,114,128,0.08)",text:"#6b7280"};return n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:146",className:"bg-white rounded-2xl border overflow-hidden",style:{borderColor:h.success?"#e5e7eb":"rgba(239,68,68,0.25)"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:151",className:"flex items-center gap-3 p-4 cursor-pointer",onClick:()=>t(b?null:h.id),children:[h.success?n.jsx(pe,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:157",size:16,style:{color:"#16a34a",flexShrink:0}}):n.jsx(It,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:159",size:16,style:{color:"#dc2626",flexShrink:0}}),n.jsx("span",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:163",className:"px-2.5 py-1 rounded-full text-xs font-semibold flex-shrink-0",style:{background:y.bg,color:y.text},children:ws[h.type]??h.type}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:171",className:"flex-1 text-sm font-medium truncate",style:{color:"#0d1b3e",fontFamily:"DM Sans, sans-serif"},children:h.subject}),n.jsx("span",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:176",className:"text-xs flex-shrink-0",style:{color:"#9ca3af"},children:new Date(h.createdAt).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}),b?n.jsx(Zl,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:185",size:14,style:{color:"#9ca3af",flexShrink:0}}):n.jsx(Sa,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:187",size:14,style:{color:"#9ca3af",flexShrink:0}})]}),b&&n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:193",className:"px-4 pb-4 pt-0 space-y-3",style:{borderTop:"1px solid #f3f4f6"},children:[n.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:194",className:"grid sm:grid-cols-2 gap-3 pt-3",children:[{label:"Empfänger",value:h.recipient},{label:"Absender",value:h.senderEmail?`${h.senderName??""} <${h.senderEmail}>`:null},{label:"Betreff",value:h.subject},{label:"Status",value:h.success?"Erfolgreich gesendet":"Fehlgeschlagen"}].filter(g=>g.value).map(({label:g,value:x})=>n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:201",className:"p-3 rounded-xl",style:{background:"#f9fafb"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:202",className:"text-xs font-semibold mb-0.5",style:{color:"#9ca3af"},children:g}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:203",className:"text-sm",style:{color:"#0d1b3e"},children:x})]},g))}),h.errorMessage&&n.jsxs("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:209",className:"p-3 rounded-xl",style:{background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:210",className:"text-xs font-semibold mb-1",style:{color:"#dc2626"},children:"Fehlermeldung"}),n.jsx("p",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:211",className:"text-xs font-mono",style:{color:"#7f1d1d"},children:h.errorMessage})]}),n.jsx("div",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:215",className:"flex justify-end pt-1",children:n.jsxs("button",{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:216",onClick:g=>{g.stopPropagation(),confirm("Diesen Log-Eintrag löschen?")&&c.mutate({id:h.id})},className:"flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-semibold transition-all",style:{color:"#ef4444",background:"rgba(239,68,68,0.06)",border:"1px solid rgba(239,68,68,0.15)"},children:[n.jsx(Ze,{"data-loc":"client/src/pages/admin/EmailLogAdmin.tsx:226",size:12})," Eintrag löschen"]})})]})]},h.id)})})]})}const ad=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),Zt=[{label:"Montags, 08:00 Uhr",value:"0 8 * * 1"},{label:"Montags, 06:00 Uhr",value:"0 6 * * 1"},{label:"Dienstags, 08:00 Uhr",value:"0 8 * * 2"},{label:"Mittwochs, 08:00 Uhr",value:"0 8 * * 3"},{label:"Freitags, 08:00 Uhr",value:"0 8 * * 5"},{label:"Täglich, 08:00 Uhr",value:"0 8 * * *"},{label:"Benutzerdefiniert",value:"custom"}];function Fo(){const e=Q.useUtils(),{data:t,isLoading:s}=Q.seoReport.getSettings.useQuery(),r=Q.seoReport.saveSettings.useMutation({onSuccess:()=>e.seoReport.getSettings.invalidate()}),a=Q.seoReport.runNow.useMutation({onSuccess:()=>e.seoReport.getSettings.invalidate()}),[i,l]=w.useState({enabled:!1,gscServiceAccountJson:"",gscPropertyUrl:"https://www.stusche.de/",openaiApiKey:"",openaiModel:"gpt-4o",reportEmail:"",cronSchedule:"0 8 * * 1",cronLabel:"Montags, 08:00 Uhr",lookbackDays:7}),[c,o]=w.useState(!1),[d,m]=w.useState(!1),[u,h]=w.useState(!1),[b,y]=w.useState("0 8 * * 1");w.useEffect(()=>{if(t&&!c){l({enabled:t.enabled,gscServiceAccountJson:t.gscServiceAccountJson??"",gscPropertyUrl:t.gscPropertyUrl,openaiApiKey:t.openaiApiKey??"",openaiModel:t.openaiModel,reportEmail:t.reportEmail??"",cronSchedule:t.cronSchedule,cronLabel:t.cronLabel,lookbackDays:t.lookbackDays});const x=Zt.find(v=>v.value===t.cronSchedule&&v.value!=="custom");y(x?x.value:"custom"),o(!0)}},[t,c]);function g(x){if(y(x),x!=="custom"){const v=Zt.find(L=>L.value===x);l(L=>({...L,cronSchedule:x,cronLabel:v?.label??x}))}}return s?n.jsx(Se,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:106",title:"SEO-Wochenbericht",breadcrumb:"Automatisierung",children:n.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:107",className:"text-center py-16 text-gray-400 text-sm",children:"Laden…"})}):n.jsx(Se,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:113",title:"SEO-Wochenbericht",breadcrumb:"Automatisierung",children:n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:114",className:"max-w-2xl space-y-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:117",className:"flex items-center justify-between rounded-2xl border p-5",style:{borderColor:"#e5e7eb",background:i.enabled?"#f0fdf4":"#f9fafb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:121",className:"flex items-center gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:122",className:"w-2.5 h-2.5 rounded-full",style:{background:i.enabled?"#16a34a":"#d1d5db"}}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:126",children:[n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:127",className:"text-sm font-semibold",style:{color:"#0d1b3e"},children:i.enabled?"Automatischer Bericht aktiv":"Automatischer Bericht deaktiviert"}),t?.lastRunAt&&n.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:131",className:"text-xs mt-0.5",style:{color:"#9ca3af"},children:["Letzter Lauf: ",new Date(t.lastRunAt).toLocaleString("de-DE",{timeZone:"Europe/Berlin"}),t.lastRunSummary&&` · ${t.lastRunSummary}`]})]})]}),n.jsxs("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:138",className:"relative inline-flex items-center cursor-pointer",children:[n.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:139",type:"checkbox",checked:i.enabled,onChange:x=>l(v=>({...v,enabled:x.target.checked})),className:"sr-only peer"}),n.jsx("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:145",className:"w-11 h-6 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:150",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:151",className:"flex items-center gap-2",children:[n.jsx(Fe,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:152",size:14,style:{color:"#0066cc"}}),n.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:153",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Zeitplan (Hetzner Cron)"})]}),n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:157",className:"text-xs",style:{color:"#9ca3af"},children:"Der Cron-Job läuft direkt auf dem Hetzner-Server – unabhängig von Manus. Alle Zeiten in Berliner Ortszeit (automatische Sommer-/Winterzeit-Anpassung)."}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:161",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:162",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Ausführungszeitpunkt"}),n.jsx("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:165",value:b,onChange:x=>g(x.target.value),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},children:Zt.map(x=>n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:172",value:x.value,children:x.label},x.value))})]}),b==="custom"&&n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:177",className:"space-y-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:178",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:179",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Cron-Ausdruck (5-stellig, Berliner Zeit)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:182",type:"text",value:i.cronSchedule,onChange:x=>l(v=>({...v,cronSchedule:x.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm font-mono focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"0 8 * * 1"}),n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:190",className:"text-xs mt-1",style:{color:"#9ca3af"},children:"Format: Minute Stunde Tag Monat Wochentag (0=So, 1=Mo, …, 5=Fr, 6=Sa)"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:194",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:195",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Bezeichnung (für Anzeige)"}),n.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:198",type:"text",value:i.cronLabel,onChange:x=>l(v=>({...v,cronLabel:x.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"z.B. Montags, 08:00 Uhr"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:209",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:210",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Analysezeitraum (Tage zurück)"}),n.jsxs("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:213",value:i.lookbackDays,onChange:x=>l(v=>({...v,lookbackDays:Number(x.target.value)})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},children:[n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:219",value:7,children:"Letzte 7 Tage"}),n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:220",value:14,children:"Letzte 14 Tage"}),n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:221",value:28,children:"Letzte 28 Tage"}),n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:222",value:90,children:"Letzte 90 Tage"})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:228",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:229",className:"flex items-center gap-2",children:[n.jsx(Aa,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:230",size:14,style:{color:"#0066cc"}}),n.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:231",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Google Search Console"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:235",className:"flex items-start gap-2 rounded-xl p-3",style:{background:"#eff6ff"},children:[n.jsx(ka,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:236",size:13,style:{color:"#0066cc",marginTop:1,flexShrink:0}}),n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:237",className:"text-xs leading-relaxed",style:{color:"#1d4ed8"},children:"Einmalig einrichten: Google Cloud Console → Service Account erstellen → JSON-Key herunterladen → Search Console Property freigeben (Berechtigung: Eingeschränkt)."})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:242",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:243",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Property URL"}),n.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:246",type:"url",value:i.gscPropertyUrl,onChange:x=>l(v=>({...v,gscPropertyUrl:x.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"https://www.stusche.de/"})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:255",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:256",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Service Account JSON"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:259",className:"relative",children:[n.jsx("textarea",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:260",value:i.gscServiceAccountJson==="***set***"&&!d?"●●●●●●●●●●●●●●●●●●●●":i.gscServiceAccountJson,onChange:x=>l(v=>({...v,gscServiceAccountJson:x.target.value})),onFocus:()=>{i.gscServiceAccountJson==="***set***"&&l(x=>({...x,gscServiceAccountJson:""}))},rows:4,className:"w-full px-3.5 py-3 rounded-xl border text-sm font-mono focus:outline-none resize-y",style:{borderColor:"#e5e7eb",color:"#374151",background:"#f9fafb"},placeholder:'{"type": "service_account", "project_id": "...", ...}'}),n.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:275",type:"button",onClick:()=>m(x=>!x),className:"absolute top-2.5 right-2.5 p-1 rounded-lg",style:{color:"#9ca3af"},children:d?n.jsx(Et,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:281",size:14}):n.jsx(at,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:281",size:14})})]}),t?.gscServiceAccountJson==="***set***"&&n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:285",className:"text-xs mt-1",style:{color:"#16a34a"},children:"✓ Service Account hinterlegt – leer lassen um beizubehalten"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:293",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:294",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"KI-Analyse (OpenAI)"}),n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:297",className:"text-xs",style:{color:"#9ca3af"},children:"Wird kein eigener Key hinterlegt, wird automatisch der Key aus den Gyn-News-Einstellungen verwendet."}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:300",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:301",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"OpenAI API Key (optional)"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:304",className:"relative",children:[n.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:305",type:u?"text":"password",value:i.openaiApiKey,onChange:x=>l(v=>({...v,openaiApiKey:x.target.value})),onFocus:()=>{i.openaiApiKey==="***set***"&&l(x=>({...x,openaiApiKey:""}))},className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none pr-10",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"sk-… (leer = Gyn-News-Key verwenden)"}),n.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:318",type:"button",onClick:()=>h(x=>!x),className:"absolute right-3 top-1/2 -translate-y-1/2",style:{color:"#9ca3af"},children:u?n.jsx(Et,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:324",size:14}):n.jsx(at,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:324",size:14})})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:328",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:329",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Modell"}),n.jsxs("select",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:332",value:i.openaiModel,onChange:x=>l(v=>({...v,openaiModel:x.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},children:[n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:338",value:"gpt-4o",children:"gpt-4o (empfohlen)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:339",value:"gpt-4o-mini",children:"gpt-4o-mini (günstiger)"}),n.jsx("option",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:340",value:"gpt-4-turbo",children:"gpt-4-turbo"})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:346",className:"bg-white rounded-2xl border p-5 space-y-4",style:{borderColor:"#e5e7eb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:347",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Bericht-Zustellung"}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:350",children:[n.jsx("label",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:351",className:"block text-xs font-semibold mb-1.5",style:{color:"#374151"},children:"Empfänger E-Mail"}),n.jsx("input",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:354",type:"email",value:i.reportEmail,onChange:x=>l(v=>({...v,reportEmail:x.target.value})),className:"w-full px-3.5 py-2.5 rounded-xl border text-sm focus:outline-none",style:{borderColor:"#e5e7eb",color:"#0d1b3e"},placeholder:"info@stusche.de"}),n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:362",className:"text-xs mt-1.5",style:{color:"#9ca3af"},children:"Der wöchentliche SEO-Bericht wird an diese Adresse gesendet. SMTP-Einstellungen aus den E-Mail-Einstellungen werden verwendet."})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:369",className:"flex flex-wrap items-center gap-3",children:[n.jsxs("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:370",onClick:()=>r.mutate({enabled:i.enabled,gscServiceAccountJson:i.gscServiceAccountJson||void 0,gscPropertyUrl:i.gscPropertyUrl,openaiApiKey:i.openaiApiKey||void 0,openaiModel:i.openaiModel,reportEmail:i.reportEmail||null,cronSchedule:i.cronSchedule,cronLabel:i.cronLabel,lookbackDays:i.lookbackDays}),disabled:r.isPending,className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold text-white transition-all hover:opacity-90 disabled:opacity-50",style:{background:"#0d1b3e"},children:[n.jsx(Ye,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:386",size:14}),r.isPending?"Speichern…":"Einstellungen speichern"]}),n.jsx("button",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:390",onClick:()=>a.mutate(),disabled:a.isPending||!i.enabled,title:i.enabled?"Report jetzt ausführen":"Bericht erst aktivieren",className:"flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-semibold transition-all hover:opacity-90 disabled:opacity-40",style:{background:"#eff6ff",color:"#0066cc"},children:a.isPending?n.jsxs(n.Fragment,{children:[n.jsx(be,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:398",size:14,className:"animate-spin"})," Läuft…"]}):n.jsxs(n.Fragment,{children:[n.jsx(io,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:399",size:14})," Jetzt ausführen"]})}),r.isSuccess&&n.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:404",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#16a34a"},children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:405",size:13})," Gespeichert"]}),r.isError&&n.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:409",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#ef4444"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:410",size:13})," Fehler beim Speichern"]}),a.isSuccess&&n.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:414",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#16a34a"},children:[n.jsx(pe,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:415",size:13}),a.data?.success?`Report gesendet · ${a.data.message}`:a.data?.message]}),a.isError&&n.jsxs("span",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:422",className:"flex items-center gap-1.5 text-xs font-semibold",style:{color:"#ef4444"},children:[n.jsx(Ne,{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:423",size:13})," Fehler: ",a.error?.message]})]}),n.jsxs("div",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:429",className:"rounded-2xl border p-5 space-y-3",style:{borderColor:"#e5e7eb",background:"#f9fafb"},children:[n.jsx("h3",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:430",className:"text-xs font-bold tracking-widest uppercase",style:{color:"#9ca3af"},children:"Hetzner Cron-Job einrichten (einmalig)"}),n.jsx("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:433",className:"text-xs",style:{color:"#6b7280"},children:"Nach dem Speichern und Deployen den folgenden Cron-Job auf dem Hetzner-Server einrichten:"}),n.jsx("pre",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:436",className:"text-xs rounded-xl p-3 overflow-x-auto",style:{background:"#1a1a2e",color:"#e2e8f0",fontFamily:"monospace"},children:`# crontab -e
${i.cronSchedule} /opt/stusche-website/scripts/seo-report.sh`}),n.jsxs("p",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:443",className:"text-xs",style:{color:"#9ca3af"},children:["Das Skript ",n.jsx("code",{"data-loc":"client/src/pages/admin/SeoReportAdmin.tsx:444",children:"/opt/stusche-website/scripts/seo-report.sh"})," wird beim Deployment automatisch erstellt."]})]})]})})}const rd=Object.freeze(Object.defineProperty({__proto__:null,default:Fo},Symbol.toStringTag,{value:"Module"}));export{qo as $,Vo as A,tc as B,ac as C,He as D,Xl as E,uc as F,to as G,fc as H,Ra as I,_c as J,kc as K,vc as L,Lt as M,Ho as N,Yo as O,Ea as P,gc as Q,R,lo as S,Uo as T,uo as U,kn as V,Vc as W,Ca as X,Wo as Y,Qo as Z,Ko as _,Vi as a,Bo as a0,zc as a1,Xo as a2,Gc as a3,dc as a4,jc as a5,hc as a6,Ic as a7,Fe as a8,Yc as a9,at as aA,wc as aB,sc as aC,Bc as aD,Kc as aE,Os as aF,wa as aG,yc as aH,It as aI,Sc as aJ,Pc as aK,Ec as aL,Pn as aM,Zc as aN,Jc as aO,Xc as aP,ed as aQ,td as aR,nd as aS,sd as aT,ad as aU,rd as aV,eo as aa,Jo as ab,oc as ac,oo as ad,bc as ae,Na as af,Jl as ag,Aa as ah,qc as ai,mc as aj,Dc as ak,Zo as al,xc as am,pe as an,Ne as ao,Nc as ap,Ac as aq,$c as ar,Wc as as,Rc as at,cc as au,Zl as av,Lc as aw,Mc as ax,nc as ay,pc as az,w as b,Yi as c,Uc as d,Cc as e,ao as f,As as g,fs as h,rc as i,n as j,Nt as k,lc as l,Pa as m,Sa as n,ro as o,Qc as p,Tc as q,yn as r,Oc as s,Q as t,xa as u,$o as v,Hc as w,ec as x,Fc as y,ic as z};