var i5=Object.defineProperty;var s5=(e,t,n)=>t in e?i5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var y=(e,t,n)=>(s5(e,typeof t!="symbol"?t+"":t,n),n),_N=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Z=(e,t,n)=>(_N(e,t,"read from private field"),n?n.call(e):t.get(e)),Ke=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Pe=(e,t,n,a)=>(_N(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n);var Am=(e,t,n,a)=>({set _(r){Pe(e,t,r,n)},get _(){return Z(e,t,a)}}),bt=(e,t,n)=>(_N(e,t,"access private method"),n);import{r as T,j as s,a as ee,g as ar,c as Ar,R as $g,_ as Yf,b as UM,d as kM,e as l5,f as et,h as $c,i as o5,k as FM}from"./@react-pdf/renderer-DhJiG19h.js";import{h as ls}from"./moment-Cl4UOzQZ.js";import{l as lv}from"./lodash-DFg---O9.js";function c5(e,t){for(var n=0;na[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();var $d=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(){}},wd=typeof window>"u"||"Deno"in globalThis;function Wr(){}function u5(e,t){return typeof e=="function"?e(t):e}function WS(e){return typeof e=="number"&&e>=0&&e!==1/0}function YM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $u(e,t){return typeof e=="function"?e(t):e}function Ni(e,t){return typeof e=="function"?e(t):e}function vA(e,t){const{type:n="all",exact:a,fetchStatus:r,predicate:i,queryKey:l,stale:o}=e;if(l){if(a){if(t.queryHash!==ov(l,t.options))return!1}else if(!zf(t.queryKey,l))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||r&&r!==t.state.fetchStatus||i&&!i(t))}function TA(e,t){const{exact:n,status:a,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Fc(t.options.mutationKey)!==Fc(i))return!1}else if(!zf(t.options.mutationKey,i))return!1}return!(a&&t.state.status!==a||r&&!r(t))}function ov(e,t){return((t==null?void 0:t.queryKeyHashFn)||Fc)(e)}function Fc(e){return JSON.stringify(e,(t,n)=>qS(n)?Object.keys(n).sort().reduce((a,r)=>(a[r]=n[r],a),{}):n)}function zf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!zf(e[n],t[n])):!1}function zM(e,t){if(e===t)return e;const n=AA(e)&&AA(t);if(n||qS(e)&&qS(t)){const a=n?e:Object.keys(e),r=a.length,i=n?t:Object.keys(t),l=i.length,o=n?[]:{};let c=0;for(let d=0;d{setTimeout(t,e)})}function VS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?zM(e,t):t}function h5(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function f5(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var GM=Symbol();function WM(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===GM?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Ic,kl,pd,wM,p5=(wM=class extends $d{constructor(){super();Ke(this,Ic,void 0);Ke(this,kl,void 0);Ke(this,pd,void 0);Pe(this,pd,t=>{if(!wd&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Z(this,kl)||this.setEventListener(Z(this,pd))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,kl))==null||t.call(this),Pe(this,kl,void 0))}setEventListener(t){var n;Pe(this,pd,t),(n=Z(this,kl))==null||n.call(this),Pe(this,kl,t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(t){Z(this,Ic)!==t&&(Pe(this,Ic,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Z(this,Ic)=="boolean"?Z(this,Ic):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ic=new WeakMap,kl=new WeakMap,pd=new WeakMap,wM),cv=new p5,md,Fl,gd,CM,m5=(CM=class extends $d{constructor(){super();Ke(this,md,!0);Ke(this,Fl,void 0);Ke(this,gd,void 0);Pe(this,gd,t=>{if(!wd&&window.addEventListener){const n=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",a)}}})}onSubscribe(){Z(this,Fl)||this.setEventListener(Z(this,gd))}onUnsubscribe(){var t;this.hasListeners()||((t=Z(this,Fl))==null||t.call(this),Pe(this,Fl,void 0))}setEventListener(t){var n;Pe(this,gd,t),(n=Z(this,Fl))==null||n.call(this),Pe(this,Fl,t(this.setOnline.bind(this)))}setOnline(t){Z(this,md)!==t&&(Pe(this,md,t),this.listeners.forEach(a=>{a(t)}))}isOnline(){return Z(this,md)}},md=new WeakMap,Fl=new WeakMap,gd=new WeakMap,CM),tb=new m5;function g5(e){return Math.min(1e3*2**e,3e4)}function qM(e){return(e??"online")==="online"?tb.isOnline():!0}var VM=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $N(e){return e instanceof VM}function KM(e){let t=!1,n=0,a=!1,r,i,l;const o=new Promise((I,O)=>{i=I,l=O}),c=I=>{var O;a||(b(new VM(I)),(O=e.abort)==null||O.call(e))},d=()=>{t=!0},h=()=>{t=!1},f=()=>cv.isFocused()&&(e.networkMode==="always"||tb.isOnline())&&e.canRun(),m=()=>qM(e.networkMode)&&e.canRun(),g=I=>{var O;a||(a=!0,(O=e.onSuccess)==null||O.call(e,I),r==null||r(),i(I))},b=I=>{var O;a||(a=!0,(O=e.onError)==null||O.call(e,I),r==null||r(),l(I))},E=()=>new Promise(I=>{var O;r=v=>{(a||f())&&I(v)},(O=e.onPause)==null||O.call(e)}).then(()=>{var I;r=void 0,a||(I=e.onContinue)==null||I.call(e)}),S=()=>{if(a)return;let I;const O=n===0?e.initialPromise:void 0;try{I=O??e.fn()}catch(v){I=Promise.reject(v)}Promise.resolve(I).then(g).catch(v=>{var B;if(a)return;const w=e.retry??(wd?0:3),D=e.retryDelay??g5,C=typeof D=="function"?D(n,v):D,M=w===!0||typeof w=="number"&&nf()?void 0:E()).then(()=>{t?b(v):S()})})};return{promise:o,cancel:c,continue:()=>(r==null||r(),o),cancelRetry:d,continueRetry:h,canStart:m,start:()=>(m()?S():E().then(S),o)}}function b5(){let e=[],t=0,n=m=>{m()},a=m=>{m()},r=m=>setTimeout(m,0);const i=m=>{r=m},l=m=>{let g;t++;try{g=m()}finally{t--,t||d()}return g},o=m=>{t?e.push(m):r(()=>{n(m)})},c=m=>(...g)=>{o(()=>{m(...g)})},d=()=>{const m=e;e=[],m.length&&r(()=>{a(()=>{m.forEach(g=>{n(g)})})})};return{batch:l,batchCalls:c,schedule:o,setNotifyFunction:m=>{n=m},setBatchNotifyFunction:m=>{a=m},setScheduler:i}}var pa=b5(),Oc,RM,ZM=(RM=class{constructor(){Ke(this,Oc,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),WS(this.gcTime)&&Pe(this,Oc,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wd?1/0:5*60*1e3))}clearGcTimeout(){Z(this,Oc)&&(clearTimeout(Z(this,Oc)),Pe(this,Oc,void 0))}},Oc=new WeakMap,RM),bd,Ed,Gr,ka,vp,vc,gi,js,MM,E5=(MM=class extends ZM{constructor(t){super();Ke(this,gi);Ke(this,bd,void 0);Ke(this,Ed,void 0);Ke(this,Gr,void 0);Ke(this,ka,void 0);Ke(this,vp,void 0);Ke(this,vc,void 0);Pe(this,vc,!1),Pe(this,vp,t.defaultOptions),this.setOptions(t.options),this.observers=[],Pe(this,Gr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Pe(this,bd,t.state||N5(this.options)),this.state=Z(this,bd),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Z(this,ka))==null?void 0:t.promise}setOptions(t){this.options={...Z(this,vp),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Z(this,Gr).remove(this)}setData(t,n){const a=VS(this.state.data,t,this.options);return bt(this,gi,js).call(this,{data:a,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),a}setState(t,n){bt(this,gi,js).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var a,r;const n=(a=Z(this,ka))==null?void 0:a.promise;return(r=Z(this,ka))==null||r.cancel(t),n?n.then(Wr).catch(Wr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Z(this,bd))}isActive(){return this.observers.some(t=>Ni(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!YM(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(a=>a.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,ka))==null||n.continue()}onOnline(){var n;const t=this.observers.find(a=>a.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Z(this,ka))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Z(this,Gr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Z(this,ka)&&(Z(this,vc)?Z(this,ka).cancel({revert:!0}):Z(this,ka).cancelRetry()),this.scheduleGc()),Z(this,Gr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||bt(this,gi,js).call(this,{type:"invalidate"})}fetch(t,n){var c,d,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Z(this,ka))return Z(this,ka).continueRetry(),Z(this,ka).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(m=>m.options.queryFn);f&&this.setOptions(f.options)}const a=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(Pe(this,vc,!0),a.signal)})},i=()=>{const f=WM(this.options,n),m={queryKey:this.queryKey,meta:this.meta};return r(m),Pe(this,vc,!1),this.options.persister?this.options.persister(f,m,this):f(m)},l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};r(l),(c=this.options.behavior)==null||c.onFetch(l,this),Pe(this,Ed,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&bt(this,gi,js).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const o=f=>{var m,g,b,E;$N(f)&&f.silent||bt(this,gi,js).call(this,{type:"error",error:f}),$N(f)||((g=(m=Z(this,Gr).config).onError)==null||g.call(m,f,this),(E=(b=Z(this,Gr).config).onSettled)==null||E.call(b,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Pe(this,ka,KM({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:a.abort.bind(a),onSuccess:f=>{var m,g,b,E;if(f===void 0){o(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(g=(m=Z(this,Gr).config).onSuccess)==null||g.call(m,f,this),(E=(b=Z(this,Gr).config).onSettled)==null||E.call(b,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(f,m)=>{bt(this,gi,js).call(this,{type:"failed",failureCount:f,error:m})},onPause:()=>{bt(this,gi,js).call(this,{type:"pause"})},onContinue:()=>{bt(this,gi,js).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),Z(this,ka).start()}},bd=new WeakMap,Ed=new WeakMap,Gr=new WeakMap,ka=new WeakMap,vp=new WeakMap,vc=new WeakMap,gi=new WeakSet,js=function(t){const n=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...JM(a.data,this.options),fetchMeta:t.meta??null};case"success":return{...a,data:t.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=t.error;return $N(r)&&r.revert&&Z(this,Ed)?{...Z(this,Ed),fetchStatus:"idle"}:{...a,error:r,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=n(this.state),pa.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),Z(this,Gr).notify({query:this,type:"updated",action:t})})},MM);function JM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function N5(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ui,DM,x5=(DM=class extends $d{constructor(t={}){super();Ke(this,Ui,void 0);this.config=t,Pe(this,Ui,new Map)}build(t,n,a){const r=n.queryKey,i=n.queryHash??ov(r,n);let l=this.get(i);return l||(l=new E5({cache:this,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:a,defaultOptions:t.getQueryDefaults(r)}),this.add(l)),l}add(t){Z(this,Ui).has(t.queryHash)||(Z(this,Ui).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Z(this,Ui).get(t.queryHash);n&&(t.destroy(),n===t&&Z(this,Ui).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){pa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Z(this,Ui).get(t)}getAll(){return[...Z(this,Ui).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(a=>vA(n,a))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(a=>vA(t,a)):n}notify(t){pa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){pa.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){pa.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ui=new WeakMap,DM),ki,Ja,Tc,Fi,Al,jM,S5=(jM=class extends ZM{constructor(t){super();Ke(this,Fi);Ke(this,ki,void 0);Ke(this,Ja,void 0);Ke(this,Tc,void 0);this.mutationId=t.mutationId,Pe(this,Ja,t.mutationCache),Pe(this,ki,[]),this.state=t.state||QM(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Z(this,ki).includes(t)||(Z(this,ki).push(t),this.clearGcTimeout(),Z(this,Ja).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Pe(this,ki,Z(this,ki).filter(n=>n!==t)),this.scheduleGc(),Z(this,Ja).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Z(this,ki).length||(this.state.status==="pending"?this.scheduleGc():Z(this,Ja).remove(this))}continue(){var t;return((t=Z(this,Tc))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,l,o,c,d,h,f,m,g,b,E,S,I,O,v,w,D,C,M;Pe(this,Tc,KM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,L)=>{bt(this,Fi,Al).call(this,{type:"failed",failureCount:B,error:L})},onPause:()=>{bt(this,Fi,Al).call(this,{type:"pause"})},onContinue:()=>{bt(this,Fi,Al).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Z(this,Ja).canRun(this)}));const n=this.state.status==="pending",a=!Z(this,Tc).canStart();try{if(!n){bt(this,Fi,Al).call(this,{type:"pending",variables:t,isPaused:a}),await((i=(r=Z(this,Ja).config).onMutate)==null?void 0:i.call(r,t,this));const L=await((o=(l=this.options).onMutate)==null?void 0:o.call(l,t));L!==this.state.context&&bt(this,Fi,Al).call(this,{type:"pending",context:L,variables:t,isPaused:a})}const B=await Z(this,Tc).start();return await((d=(c=Z(this,Ja).config).onSuccess)==null?void 0:d.call(c,B,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,B,t,this.state.context)),await((g=(m=Z(this,Ja).config).onSettled)==null?void 0:g.call(m,B,null,this.state.variables,this.state.context,this)),await((E=(b=this.options).onSettled)==null?void 0:E.call(b,B,null,t,this.state.context)),bt(this,Fi,Al).call(this,{type:"success",data:B}),B}catch(B){try{throw await((I=(S=Z(this,Ja).config).onError)==null?void 0:I.call(S,B,t,this.state.context,this)),await((v=(O=this.options).onError)==null?void 0:v.call(O,B,t,this.state.context)),await((D=(w=Z(this,Ja).config).onSettled)==null?void 0:D.call(w,void 0,B,this.state.variables,this.state.context,this)),await((M=(C=this.options).onSettled)==null?void 0:M.call(C,void 0,B,t,this.state.context)),B}finally{bt(this,Fi,Al).call(this,{type:"error",error:B})}}finally{Z(this,Ja).runNext(this)}}},ki=new WeakMap,Ja=new WeakMap,Tc=new WeakMap,Fi=new WeakSet,Al=function(t){const n=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),pa.batch(()=>{Z(this,ki).forEach(a=>{a.onMutationUpdate(t)}),Z(this,Ja).notify({mutation:this,type:"updated",action:t})})},jM);function QM(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var xr,Tp,BM,I5=(BM=class extends $d{constructor(t={}){super();Ke(this,xr,void 0);Ke(this,Tp,void 0);this.config=t,Pe(this,xr,new Map),Pe(this,Tp,Date.now())}build(t,n,a){const r=new S5({mutationCache:this,mutationId:++Am(this,Tp)._,options:t.defaultMutationOptions(n),state:a});return this.add(r),r}add(t){const n=ym(t),a=Z(this,xr).get(n)??[];a.push(t),Z(this,xr).set(n,a),this.notify({type:"added",mutation:t})}remove(t){var a;const n=ym(t);if(Z(this,xr).has(n)){const r=(a=Z(this,xr).get(n))==null?void 0:a.filter(i=>i!==t);r&&(r.length===0?Z(this,xr).delete(n):Z(this,xr).set(n,r))}this.notify({type:"removed",mutation:t})}canRun(t){var a;const n=(a=Z(this,xr).get(ym(t)))==null?void 0:a.find(r=>r.state.status==="pending");return!n||n===t}runNext(t){var a;const n=(a=Z(this,xr).get(ym(t)))==null?void 0:a.find(r=>r!==t&&r.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){pa.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Z(this,xr).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(a=>TA(n,a))}findAll(t={}){return this.getAll().filter(n=>TA(t,n))}notify(t){pa.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return pa.batch(()=>Promise.all(t.map(n=>n.continue().catch(Wr))))}},xr=new WeakMap,Tp=new WeakMap,BM);function ym(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function KS(e){return{onFetch:(t,n)=>{const a=async()=>{var b,E,S,I,O;const r=t.options,i=(S=(E=(b=t.fetchOptions)==null?void 0:b.meta)==null?void 0:E.fetchMore)==null?void 0:S.direction,l=((I=t.state.data)==null?void 0:I.pages)||[],o=((O=t.state.data)==null?void 0:O.pageParams)||[],c={pages:[],pageParams:[]};let d=!1;const h=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},f=WM(t.options,t.fetchOptions),m=async(v,w,D)=>{if(d)return Promise.reject();if(w==null&&v.pages.length)return Promise.resolve(v);const C={queryKey:t.queryKey,pageParam:w,direction:D?"backward":"forward",meta:t.options.meta};h(C);const M=await f(C),{maxPages:B}=t.options,L=D?f5:h5;return{pages:L(v.pages,M,B),pageParams:L(v.pageParams,w,B)}};let g;if(i&&l.length){const v=i==="backward",w=v?XM:ZS,D={pages:l,pageParams:o},C=w(r,D);g=await m(D,C,v)}else{g=await m(c,o[0]??r.initialPageParam);const v=e??l.length;for(let w=1;w{var r,i;return(i=(r=t.options).persister)==null?void 0:i.call(r,a,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=a}}}function ZS(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function XM(e,{pages:t,pageParams:n}){var a;return t.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,t[0],t,n[0],n):void 0}function O5(e,t){return t?ZS(e,t)!=null:!1}function v5(e,t){return!t||!e.getPreviousPageParam?!1:XM(e,t)!=null}var Vn,Yl,zl,Nd,xd,Gl,Sd,Id,PM,T5=(PM=class{constructor(e={}){Ke(this,Vn,void 0);Ke(this,Yl,void 0);Ke(this,zl,void 0);Ke(this,Nd,void 0);Ke(this,xd,void 0);Ke(this,Gl,void 0);Ke(this,Sd,void 0);Ke(this,Id,void 0);Pe(this,Vn,e.queryCache||new x5),Pe(this,Yl,e.mutationCache||new I5),Pe(this,zl,e.defaultOptions||{}),Pe(this,Nd,new Map),Pe(this,xd,new Map),Pe(this,Gl,0)}mount(){Am(this,Gl)._++,Z(this,Gl)===1&&(Pe(this,Sd,cv.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Vn).onFocus())})),Pe(this,Id,tb.subscribe(async e=>{e&&(await this.resumePausedMutations(),Z(this,Vn).onOnline())})))}unmount(){var e,t;Am(this,Gl)._--,Z(this,Gl)===0&&((e=Z(this,Sd))==null||e.call(this),Pe(this,Sd,void 0),(t=Z(this,Id))==null||t.call(this),Pe(this,Id,void 0))}isFetching(e){return Z(this,Vn).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Z(this,Yl).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Vn).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),a=Z(this,Vn).build(this,n);return e.revalidateIfStale&&a.isStaleByTime($u(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Z(this,Vn).findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),r=Z(this,Vn).get(a.queryHash),i=r==null?void 0:r.state.data,l=u5(t,i);if(l!==void 0)return Z(this,Vn).build(this,a).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return pa.batch(()=>Z(this,Vn).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Z(this,Vn).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Z(this,Vn);pa.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Z(this,Vn),a={type:"active",...e};return pa.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(a,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},a=pa.batch(()=>Z(this,Vn).findAll(e).map(r=>r.cancel(n)));return Promise.all(a).then(Wr).catch(Wr)}invalidateQueries(e={},t={}){return pa.batch(()=>{if(Z(this,Vn).findAll(e).forEach(a=>{a.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},a=pa.batch(()=>Z(this,Vn).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(Wr)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(a).then(Wr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Z(this,Vn).build(this,t);return n.isStaleByTime($u(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Wr).catch(Wr)}fetchInfiniteQuery(e){return e.behavior=KS(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Wr).catch(Wr)}resumePausedMutations(){return tb.isOnline()?Z(this,Yl).resumePausedMutations():Promise.resolve()}getQueryCache(){return Z(this,Vn)}getMutationCache(){return Z(this,Yl)}getDefaultOptions(){return Z(this,zl)}setDefaultOptions(e){Pe(this,zl,e)}setQueryDefaults(e,t){Z(this,Nd).set(Fc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Z(this,Nd).values()];let n={};return t.forEach(a=>{zf(e,a.queryKey)&&(n={...n,...a.defaultOptions})}),n}setMutationDefaults(e,t){Z(this,xd).set(Fc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Z(this,xd).values()];let n={};return t.forEach(a=>{zf(e,a.mutationKey)&&(n={...n,...a.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Z(this,zl).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=ov(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.enabled!==!0&&t.queryFn===GM&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Z(this,zl).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Z(this,Vn).clear(),Z(this,Yl).clear()}},Vn=new WeakMap,Yl=new WeakMap,zl=new WeakMap,Nd=new WeakMap,xd=new WeakMap,Gl=new WeakMap,Sd=new WeakMap,Id=new WeakMap,PM),or,jt,Ap,Qa,Ac,Od,Yi,yp,vd,Td,yc,wc,Wl,Ad,Cc,of,wp,JS,Cp,QS,Rp,XS,Mp,_S,Dp,$S,jp,eI,Bp,tI,pE,_M,HM,uv=(HM=class extends $d{constructor(t,n){super();Ke(this,Cc);Ke(this,wp);Ke(this,Cp);Ke(this,Rp);Ke(this,Mp);Ke(this,Dp);Ke(this,jp);Ke(this,Bp);Ke(this,pE);Ke(this,or,void 0);Ke(this,jt,void 0);Ke(this,Ap,void 0);Ke(this,Qa,void 0);Ke(this,Ac,void 0);Ke(this,Od,void 0);Ke(this,Yi,void 0);Ke(this,yp,void 0);Ke(this,vd,void 0);Ke(this,Td,void 0);Ke(this,yc,void 0);Ke(this,wc,void 0);Ke(this,Wl,void 0);Ke(this,Ad,new Set);this.options=n,Pe(this,or,t),Pe(this,Yi,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Z(this,jt).addObserver(this),wA(Z(this,jt),this.options)?bt(this,Cc,of).call(this):this.updateResult(),bt(this,Mp,_S).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nI(Z(this,jt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nI(Z(this,jt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,bt(this,Dp,$S).call(this),bt(this,jp,eI).call(this),Z(this,jt).removeObserver(this)}setOptions(t,n){const a=this.options,r=Z(this,jt);if(this.options=Z(this,or).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ni(this.options.enabled,Z(this,jt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");bt(this,Bp,tI).call(this),Z(this,jt).setOptions(this.options),a._defaulted&&!eb(this.options,a)&&Z(this,or).getQueryCache().notify({type:"observerOptionsUpdated",query:Z(this,jt),observer:this});const i=this.hasListeners();i&&CA(Z(this,jt),r,this.options,a)&&bt(this,Cc,of).call(this),this.updateResult(n),i&&(Z(this,jt)!==r||Ni(this.options.enabled,Z(this,jt))!==Ni(a.enabled,Z(this,jt))||$u(this.options.staleTime,Z(this,jt))!==$u(a.staleTime,Z(this,jt)))&&bt(this,wp,JS).call(this);const l=bt(this,Cp,QS).call(this);i&&(Z(this,jt)!==r||Ni(this.options.enabled,Z(this,jt))!==Ni(a.enabled,Z(this,jt))||l!==Z(this,Wl))&&bt(this,Rp,XS).call(this,l)}getOptimisticResult(t){const n=Z(this,or).getQueryCache().build(Z(this,or),t),a=this.createResult(n,t);return y5(this,a)&&(Pe(this,Qa,a),Pe(this,Od,this.options),Pe(this,Ac,Z(this,jt).state)),a}getCurrentResult(){return Z(this,Qa)}trackResult(t,n){const a={};return Object.keys(t).forEach(r=>{Object.defineProperty(a,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),n==null||n(r),t[r])})}),a}trackProp(t){Z(this,Ad).add(t)}getCurrentQuery(){return Z(this,jt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Z(this,or).defaultQueryOptions(t),a=Z(this,or).getQueryCache().build(Z(this,or),n);return a.isFetchingOptimistic=!0,a.fetch().then(()=>this.createResult(a,n))}fetch(t){return bt(this,Cc,of).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Z(this,Qa)))}createResult(t,n){var M;const a=Z(this,jt),r=this.options,i=Z(this,Qa),l=Z(this,Ac),o=Z(this,Od),d=t!==a?t.state:Z(this,Ap),{state:h}=t;let f={...h},m=!1,g;if(n._optimisticResults){const B=this.hasListeners(),L=!B&&wA(t,n),H=B&&CA(t,a,n,r);(L||H)&&(f={...f,...JM(h.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:b,errorUpdatedAt:E,status:S}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(l==null?void 0:l.data)&&n.select===Z(this,yp))g=Z(this,vd);else try{Pe(this,yp,n.select),g=n.select(f.data),g=VS(i==null?void 0:i.data,g,n),Pe(this,vd,g),Pe(this,Yi,null)}catch(B){Pe(this,Yi,B)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&S==="pending"){let B;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))B=i.data;else if(B=typeof n.placeholderData=="function"?n.placeholderData((M=Z(this,Td))==null?void 0:M.state.data,Z(this,Td)):n.placeholderData,n.select&&B!==void 0)try{B=n.select(B),Pe(this,Yi,null)}catch(L){Pe(this,Yi,L)}B!==void 0&&(S="success",g=VS(i==null?void 0:i.data,B,n),m=!0)}Z(this,Yi)&&(b=Z(this,Yi),g=Z(this,vd),E=Date.now(),S="error");const I=f.fetchStatus==="fetching",O=S==="pending",v=S==="error",w=O&&I,D=g!==void 0;return{status:S,fetchStatus:f.fetchStatus,isPending:O,isSuccess:S==="success",isError:v,isInitialLoading:w,isLoading:w,data:g,dataUpdatedAt:f.dataUpdatedAt,error:b,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>d.dataUpdateCount||f.errorUpdateCount>d.errorUpdateCount,isFetching:I,isRefetching:I&&!O,isLoadingError:v&&!D,isPaused:f.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:v&&D,isStale:dv(t,n),refetch:this.refetch}}updateResult(t){const n=Z(this,Qa),a=this.createResult(Z(this,jt),this.options);if(Pe(this,Ac,Z(this,jt).state),Pe(this,Od,this.options),Z(this,Ac).data!==void 0&&Pe(this,Td,Z(this,jt)),eb(a,n))return;Pe(this,Qa,a);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,o=typeof l=="function"?l():l;if(o==="all"||!o&&!Z(this,Ad).size)return!0;const c=new Set(o??Z(this,Ad));return this.options.throwOnError&&c.add("error"),Object.keys(Z(this,Qa)).some(d=>{const h=d;return Z(this,Qa)[h]!==n[h]&&c.has(h)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),bt(this,pE,_M).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&bt(this,Mp,_S).call(this)}},or=new WeakMap,jt=new WeakMap,Ap=new WeakMap,Qa=new WeakMap,Ac=new WeakMap,Od=new WeakMap,Yi=new WeakMap,yp=new WeakMap,vd=new WeakMap,Td=new WeakMap,yc=new WeakMap,wc=new WeakMap,Wl=new WeakMap,Ad=new WeakMap,Cc=new WeakSet,of=function(t){bt(this,Bp,tI).call(this);let n=Z(this,jt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Wr)),n},wp=new WeakSet,JS=function(){bt(this,Dp,$S).call(this);const t=$u(this.options.staleTime,Z(this,jt));if(wd||Z(this,Qa).isStale||!WS(t))return;const a=YM(Z(this,Qa).dataUpdatedAt,t)+1;Pe(this,yc,setTimeout(()=>{Z(this,Qa).isStale||this.updateResult()},a))},Cp=new WeakSet,QS=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Z(this,jt)):this.options.refetchInterval)??!1},Rp=new WeakSet,XS=function(t){bt(this,jp,eI).call(this),Pe(this,Wl,t),!(wd||Ni(this.options.enabled,Z(this,jt))===!1||!WS(Z(this,Wl))||Z(this,Wl)===0)&&Pe(this,wc,setInterval(()=>{(this.options.refetchIntervalInBackground||cv.isFocused())&&bt(this,Cc,of).call(this)},Z(this,Wl)))},Mp=new WeakSet,_S=function(){bt(this,wp,JS).call(this),bt(this,Rp,XS).call(this,bt(this,Cp,QS).call(this))},Dp=new WeakSet,$S=function(){Z(this,yc)&&(clearTimeout(Z(this,yc)),Pe(this,yc,void 0))},jp=new WeakSet,eI=function(){Z(this,wc)&&(clearInterval(Z(this,wc)),Pe(this,wc,void 0))},Bp=new WeakSet,tI=function(){const t=Z(this,or).getQueryCache().build(Z(this,or),this.options);if(t===Z(this,jt))return;const n=Z(this,jt);Pe(this,jt,t),Pe(this,Ap,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pE=new WeakSet,_M=function(t){pa.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Z(this,Qa))}),Z(this,or).getQueryCache().notify({query:Z(this,jt),type:"observerResultsUpdated"})})},HM);function A5(e,t){return Ni(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wA(e,t){return A5(e,t)||e.state.data!==void 0&&nI(e,t,t.refetchOnMount)}function nI(e,t,n){if(Ni(t.enabled,e)!==!1){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&dv(e,t)}return!1}function CA(e,t,n,a){return(e!==t||Ni(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&dv(e,n)}function dv(e,t){return Ni(t.enabled,e)!==!1&&e.isStaleByTime($u(t.staleTime,e))}function y5(e,t){return!eb(e.getCurrentResult(),t)}var $M=class extends uv{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:KS()},t)}getOptimisticResult(e){return e.behavior=KS(),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){var b,E;const{state:n}=e,a=super.createResult(e,t),{isFetching:r,isRefetching:i,isError:l,isRefetchError:o}=a,c=(E=(b=n.fetchMeta)==null?void 0:b.fetchMore)==null?void 0:E.direction,d=l&&c==="forward",h=r&&c==="forward",f=l&&c==="backward",m=r&&c==="backward";return{...a,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:O5(t,n.data),hasPreviousPage:v5(t,n.data),isFetchNextPageError:d,isFetchingNextPage:h,isFetchPreviousPageError:f,isFetchingPreviousPage:m,isRefetchError:o&&!d&&!f,isRefetching:i&&!h&&!m}}},ql,Vl,cr,Us,yd,gg,Pp,aI,LM,w5=(LM=class extends $d{constructor(n,a){super();Ke(this,yd);Ke(this,Pp);Ke(this,ql,void 0);Ke(this,Vl,void 0);Ke(this,cr,void 0);Ke(this,Us,void 0);Pe(this,ql,n),this.setOptions(a),this.bindMethods(),bt(this,yd,gg).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var r;const a=this.options;this.options=Z(this,ql).defaultMutationOptions(n),eb(this.options,a)||Z(this,ql).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Z(this,cr),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&Fc(a.mutationKey)!==Fc(this.options.mutationKey)?this.reset():((r=Z(this,cr))==null?void 0:r.state.status)==="pending"&&Z(this,cr).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=Z(this,cr))==null||n.removeObserver(this)}onMutationUpdate(n){bt(this,yd,gg).call(this),bt(this,Pp,aI).call(this,n)}getCurrentResult(){return Z(this,Vl)}reset(){var n;(n=Z(this,cr))==null||n.removeObserver(this),Pe(this,cr,void 0),bt(this,yd,gg).call(this),bt(this,Pp,aI).call(this)}mutate(n,a){var r;return Pe(this,Us,a),(r=Z(this,cr))==null||r.removeObserver(this),Pe(this,cr,Z(this,ql).getMutationCache().build(Z(this,ql),this.options)),Z(this,cr).addObserver(this),Z(this,cr).execute(n)}},ql=new WeakMap,Vl=new WeakMap,cr=new WeakMap,Us=new WeakMap,yd=new WeakSet,gg=function(){var a;const n=((a=Z(this,cr))==null?void 0:a.state)??QM();Pe(this,Vl,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Pp=new WeakSet,aI=function(n){pa.batch(()=>{var a,r,i,l,o,c,d,h;if(Z(this,Us)&&this.hasListeners()){const f=Z(this,Vl).variables,m=Z(this,Vl).context;(n==null?void 0:n.type)==="success"?((r=(a=Z(this,Us)).onSuccess)==null||r.call(a,n.data,f,m),(l=(i=Z(this,Us)).onSettled)==null||l.call(i,n.data,null,f,m)):(n==null?void 0:n.type)==="error"&&((c=(o=Z(this,Us)).onError)==null||c.call(o,n.error,f,m),(h=(d=Z(this,Us)).onSettled)==null||h.call(d,void 0,n.error,f,m))}this.listeners.forEach(f=>{f(Z(this,Vl))})})},LM),eD=T.createContext(void 0),sl=e=>{const t=T.useContext(eD);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},C5=({client:e,children:t})=>(T.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),s.jsx(eD.Provider,{value:e,children:t})),tD=T.createContext(!1),R5=()=>T.useContext(tD);tD.Provider;function M5(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var D5=T.createContext(M5()),j5=()=>T.useContext(D5);function nD(e,t){return typeof e=="function"?e(...t):!!e}function B5(){}var P5=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},H5=e=>{T.useEffect(()=>{e.clearReset()},[e])},L5=({result:e,errorResetBoundary:t,throwOnError:n,query:a})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&nD(n,[e.error,a]),aD=(e,t)=>t.state.data===void 0,U5=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},k5=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,F5=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function mE(e,t,n){var d,h,f,m;const a=sl(n),r=R5(),i=j5(),l=a.defaultQueryOptions(e);(h=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,l),l._optimisticResults=r?"isRestoring":"optimistic",U5(l),P5(l,i),H5(i);const[o]=T.useState(()=>new t(a,l)),c=o.getOptimisticResult(l);if(T.useSyncExternalStore(T.useCallback(g=>{const b=r?()=>{}:o.subscribe(pa.batchCalls(g));return o.updateResult(),b},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),T.useEffect(()=>{o.setOptions(l,{listeners:!1})},[l,o]),k5(l,c))throw F5(l,o,i);if(L5({result:c,errorResetBoundary:i,throwOnError:l.throwOnError,query:a.getQueryCache().get(l.queryHash)}))throw c.error;return(m=(f=a.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||m.call(f,l,c),l.notifyOnChangeProps?c:o.trackResult(c)}function rI(e,t){return mE(e,uv,t)}function Y5(e,t){return mE({...e,enabled:!0,suspense:!0,throwOnError:aD,placeholderData:void 0},uv,t)}function z5(e,t){return mE({...e,enabled:!0,suspense:!0,throwOnError:aD},$M,t)}function za(e,t){const n=sl(t),[a]=T.useState(()=>new w5(n,e));T.useEffect(()=>{a.setOptions(e)},[a,e]);const r=T.useSyncExternalStore(T.useCallback(l=>a.subscribe(pa.batchCalls(l)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),i=T.useCallback((l,o)=>{a.mutate(l,o).catch(B5)},[a]);if(r.error&&nD(a.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}function G5(e,t){return mE(e,$M,t)}var Cd={VITE_APP_API_URL:"",VITE_SHOW_BAB_FEATURE:"false",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function rD(e){return"init"in e}function iI(e){return!!e.write}function RA(e){return"v"in e||"e"in e}function nb(e){if("e"in e)throw e.e;if((Cd?"production":void 0)!=="production"&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const ab=new WeakMap;function iD(e){var t;return rb(e)&&!!((t=ab.get(e))!=null&&t[0])}function W5(e){const t=ab.get(e);t!=null&&t[0]&&(t[0]=!1,t[1].forEach(n=>n()))}function sI(e,t){let n=ab.get(e);if(!n){n=[!0,new Set],ab.set(e,n);const a=()=>{n[0]=!1};e.then(a,a)}n[1].add(t)}function rb(e){return typeof(e==null?void 0:e.then)=="function"}function sD(e,t,n){if(!n.p.has(e)){n.p.add(e);const a=()=>n.p.delete(e);t.then(a,a)}}function lD(e,t,n){var a;const r=new Set;for(const i of((a=n.get(e))==null?void 0:a.t)||[])n.has(i)&&r.add(i);for(const i of t.p)r.add(i);return r}const q5=(e,t,...n)=>t.read(...n),V5=(e,t,...n)=>t.write(...n),K5=(e,t)=>{var n;return(n=t.unstable_onInit)==null?void 0:n.call(t,e)},Z5=(e,t,n)=>{var a;return(a=t.onMount)==null?void 0:a.call(t,n)},J5=(e,t)=>{const n=Ya(e),a=n[0],r=n[9];if((Cd?"production":void 0)!=="production"&&!t)throw new Error("Atom is undefined or null");let i=a.get(t);return i||(i={d:new Map,p:new Set,n:0},a.set(t,i),r==null||r(e,t)),i},Q5=e=>{const t=Ya(e),n=t[1],a=t[3],r=t[4],i=t[5],l=t[6],o=t[13],c=[],d=h=>{try{h()}catch(f){c.push(f)}};do{l.f&&d(l.f);const h=new Set,f=h.add.bind(h);a.forEach(m=>{var g;return(g=n.get(m))==null?void 0:g.l.forEach(f)}),a.clear(),i.forEach(f),i.clear(),r.forEach(f),r.clear(),h.forEach(d),a.size&&o(e)}while(a.size||i.size||r.size);if(c.length)throw new AggregateError(c)},X5=e=>{const t=Ya(e),n=t[1],a=t[2],r=t[3],i=t[11],l=t[14],o=t[17],c=[],d=new WeakSet,h=new WeakSet,f=Array.from(r);for(;f.length;){const m=f[f.length-1],g=i(e,m);if(h.has(m)){f.pop();continue}if(d.has(m)){if(a.get(m)===g.n)c.push([m,g]);else if((Cd?"production":void 0)!=="production"&&a.has(m))throw new Error("[Bug] invalidated atom exists");h.add(m),f.pop();continue}d.add(m);for(const b of lD(m,g,n))d.has(b)||f.push(b)}for(let m=c.length-1;m>=0;--m){const[g,b]=c[m];let E=!1;for(const S of b.d.keys())if(S!==g&&r.has(S)){E=!0;break}E&&(l(e,g),o(e,g)),a.delete(g)}},_5=(e,t)=>{var n,a;const r=Ya(e),i=r[1],l=r[2],o=r[3],c=r[6],d=r[7],h=r[11],f=r[12],m=r[13],g=r[14],b=r[16],E=r[17],S=h(e,t);if(RA(S)&&(i.has(t)&&l.get(t)!==S.n||Array.from(S.d).every(([B,L])=>g(e,B).n===L)))return S;S.d.clear();let I=!0;function O(){i.has(t)&&(E(e,t),m(e),f(e))}function v(B){var L;if(B===t){const U=h(e,B);if(!RA(U))if(rD(B))ib(e,B,B.init);else throw new Error("no atom init");return nb(U)}const H=g(e,B);try{return nb(H)}finally{S.d.set(B,H.n),iD(S.v)&&sD(t,S.v,H),(L=i.get(B))==null||L.t.add(t),I||O()}}let w,D;const C={get signal(){return w||(w=new AbortController),w.signal},get setSelf(){return(Cd?"production":void 0)!=="production"&&!iI(t)&&console.warn("setSelf function cannot be used with read-only atom"),!D&&iI(t)&&(D=(...B)=>{if((Cd?"production":void 0)!=="production"&&I&&console.warn("setSelf function cannot be called in sync"),!I)try{return b(e,t,...B)}finally{m(e),f(e)}}),D}},M=S.n;try{const B=d(e,t,v,C);return ib(e,t,B),rb(B)&&(sI(B,()=>w==null?void 0:w.abort()),B.then(O,O)),(n=c.r)==null||n.call(c,t),S}catch(B){return delete S.v,S.e=B,++S.n,S}finally{I=!1,M!==S.n&&l.get(t)===M&&(l.set(t,S.n),o.add(t),(a=c.c)==null||a.call(c,t))}},$5=(e,t)=>{const n=Ya(e),a=n[1],r=n[2],i=n[11],l=[t];for(;l.length;){const o=l.pop(),c=i(e,o);for(const d of lD(o,c,a)){const h=i(e,d);r.set(d,h.n),l.push(d)}}},oD=(e,t,...n)=>{const a=Ya(e),r=a[3],i=a[6],l=a[8],o=a[11],c=a[12],d=a[13],h=a[14],f=a[15],m=a[17];let g=!0;const b=S=>nb(h(e,S)),E=(S,...I)=>{var O;const v=o(e,S);try{if(S===t){if(!rD(S))throw new Error("atom not writable");const w=v.n,D=I[0];ib(e,S,D),m(e,S),w!==v.n&&(r.add(S),(O=i.c)==null||O.call(i,S),f(e,S));return}else return oD(e,S,...I)}finally{g||(d(e),c(e))}};try{return l(e,t,b,E,...n)}finally{g=!1}},e4=(e,t)=>{var n;const a=Ya(e),r=a[1],i=a[3],l=a[6],o=a[11],c=a[15],d=a[18],h=a[19],f=o(e,t),m=r.get(t);if(m&&!iD(f.v)){for(const[g,b]of f.d)if(!m.d.has(g)){const E=o(e,g);d(e,g).t.add(t),m.d.add(g),b!==E.n&&(i.add(g),(n=l.c)==null||n.call(l,g),c(e,g))}for(const g of m.d||[])if(!f.d.has(g)){m.d.delete(g);const b=h(e,g);b==null||b.t.delete(t)}}},cD=(e,t)=>{var n;const a=Ya(e),r=a[1],i=a[4],l=a[6],o=a[10],c=a[11],d=a[12],h=a[13],f=a[14],m=a[16],g=c(e,t);let b=r.get(t);if(!b){f(e,t);for(const E of g.d.keys())cD(e,E).t.add(t);if(b={l:new Set,d:new Set(g.d.keys()),t:new Set},r.set(t,b),(n=l.m)==null||n.call(l,t),iI(t)){const E=()=>{let S=!0;const I=(...O)=>{try{return m(e,t,...O)}finally{S||(h(e),d(e))}};try{const O=o(e,t,I);O&&(b.u=()=>{S=!0;try{O()}finally{S=!1}})}finally{S=!1}};i.add(E)}}return b},t4=(e,t)=>{var n;const a=Ya(e),r=a[1],i=a[5],l=a[6],o=a[11],c=a[19],d=o(e,t);let h=r.get(t);if(h&&!h.l.size&&!Array.from(h.t).some(f=>{var m;return(m=r.get(f))==null?void 0:m.d.has(t)})){h.u&&i.add(h.u),h=void 0,r.delete(t),(n=l.u)==null||n.call(l,t);for(const f of d.d.keys()){const m=c(e,f);m==null||m.t.delete(t)}return}return h},ib=(e,t,n)=>{const a=Ya(e)[11],r=a(e,t),i="v"in r,l=r.v;if(rb(n))for(const o of r.d.keys())sD(t,n,a(e,o));r.v=n,delete r.e,(!i||!Object.is(l,r.v))&&(++r.n,rb(l)&&W5(l))},n4=(e,t)=>{const n=Ya(e)[14];return nb(n(e,t))},a4=(e,t,...n)=>{const a=Ya(e),r=a[12],i=a[13],l=a[16];try{return l(e,t,...n)}finally{i(e),r(e)}},r4=(e,t,n)=>{const a=Ya(e),r=a[12],i=a[18],l=a[19],c=i(e,t).l;return c.add(n),r(e),()=>{c.delete(n),l(e,t),r(e)}},uD=new WeakMap,Ya=e=>{const t=uD.get(e);if((Cd?"production":void 0)!=="production"&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};function i4(...e){const t={get(a){const r=Ya(t)[21];return r(t,a)},set(a,...r){const i=Ya(t)[22];return i(t,a,...r)},sub(a,r){const i=Ya(t)[23];return i(t,a,r)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},q5,V5,K5,Z5,J5,Q5,X5,_5,$5,oD,e4,cD,t4,ib,n4,a4,r4,void 0].map((a,r)=>e[r]||a);return uD.set(t,Object.freeze(n)),t}var dD={VITE_APP_API_URL:"",VITE_SHOW_BAB_FEATURE:"false",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};let s4=0;function yi(e,t){const n=`atom${++s4}`,a={toString(){return(dD?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof e=="function"?a.read=e:(a.init=e,a.read=l4,a.write=o4),t&&(a.write=t),a}function l4(e){return e(this)}function o4(e,t,n){return t(this,typeof n=="function"?n(e(this)):n)}function hv(){return i4()}let jh;function c4(){return jh||(jh=hv(),(dD?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=jh),globalThis.__JOTAI_DEFAULT_STORE__!==jh&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),jh}var u4={VITE_APP_API_URL:"",VITE_SHOW_BAB_FEATURE:"false",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const hD=T.createContext(void 0);function fD(e){const t=T.useContext(hD);return(e==null?void 0:e.store)||t||c4()}function d4({children:e,store:t}){const n=T.useRef(void 0);return!t&&!n.current&&(n.current=hv()),T.createElement(hD.Provider,{value:t||n.current},e)}const lI=e=>typeof(e==null?void 0:e.then)=="function",oI=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},h4=ee.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(oI(e),e)}),ex=new WeakMap,MA=(e,t)=>{let n=ex.get(e);return n||(n=new Promise((a,r)=>{let i=e;const l=d=>h=>{i===d&&a(h)},o=d=>h=>{i===d&&r(h)},c=()=>{try{const d=t();lI(d)?(ex.set(d,n),i=d,d.then(l(d),o(d)),sI(d,c)):a(d)}catch(d){r(d)}};e.then(l(e),o(e)),sI(e,c)}),ex.set(e,n)),n};function f4(e,t){const{delay:n,unstable_promiseStatus:a=!ee.use}=t||{},r=fD(t),[[i,l,o],c]=T.useReducer(h=>{const f=r.get(e);return Object.is(h[0],f)&&h[1]===r&&h[2]===e?h:[f,r,e]},void 0,()=>[r.get(e),r,e]);let d=i;if((l!==r||o!==e)&&(c(),d=r.get(e)),T.useEffect(()=>{const h=r.sub(e,()=>{if(a)try{const f=r.get(e);lI(f)&&oI(MA(f,()=>r.get(e)))}catch{}if(typeof n=="number"){setTimeout(c,n);return}c()});return c(),h},[r,e,n,a]),T.useDebugValue(d),lI(d)){const h=MA(d,()=>r.get(e));return a&&oI(h),h4(h)}return d}function fv(e,t){const n=fD(t);return T.useCallback((...r)=>{if((u4?"production":void 0)!=="production"&&!("write"in e))throw new Error("not writable atom");return n.set(e,...r)},[n,e])}function eh(e,t){return[f4(e,t),fv(e,t)]}var pD={exports:{}},gE={},mD={exports:{}},gD={};/** * @license React * scheduler.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. */(function(e){function t(F,te){var se=F.length;F.push(te);e:for(;0>>1,be=F[pe];if(0>>1;per(Ue,se))Rer(ue,Ue)?(F[pe]=ue,F[Re]=se,pe=Re):(F[pe]=Ue,F[ve]=se,pe=ve);else if(Rer(ue,se))F[pe]=ue,F[Re]=se,pe=Re;else break e}}return te}function r(F,te){var se=F.sortIndex-te.sortIndex;return se!==0?se:F.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var c=[],d=[],h=1,f=null,m=3,g=!1,b=!1,E=!1,S=!1,I=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function w(F){for(var te=n(d);te!==null;){if(te.callback===null)a(d);else if(te.startTime<=F)a(d),te.sortIndex=te.expirationTime,t(c,te);else break;te=n(d)}}function D(F){if(E=!1,w(F),!b)if(n(c)!==null)b=!0,C||(C=!0,W());else{var te=n(d);te!==null&&V(D,te.startTime-F)}}var C=!1,M=-1,B=5,L=-1;function H(){return S?!0:!(e.unstable_now()-LF&&H());){var pe=f.callback;if(typeof pe=="function"){f.callback=null,m=f.priorityLevel;var be=pe(f.expirationTime<=F);if(F=e.unstable_now(),typeof be=="function"){f.callback=be,w(F),te=!0;break t}f===n(c)&&a(c),w(F)}else a(c);f=n(c)}if(f!==null)te=!0;else{var we=n(d);we!==null&&V(D,we.startTime-F),te=!1}}break e}finally{f=null,m=se,g=!1}te=void 0}}finally{te?W():C=!1}}}var W;if(typeof v=="function")W=function(){v(U)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,$=z.port2;z.port1.onmessage=U,W=function(){$.postMessage(null)}}else W=function(){I(U,0)};function V(F,te){M=I(function(){F(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125pe?(F.sortIndex=se,t(d,F),n(c)===null&&F===n(d)&&(E?(O(M),M=-1):E=!0,V(D,se-pe))):(F.sortIndex=be,t(c,F),b||g||(b=!0,C||(C=!0,W()))),F},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(F){var te=m;return function(){var se=m;m=te;try{return F.apply(this,arguments)}finally{m=se}}}})(gD);mD.exports=gD;var p4=mD.exports,bD={exports:{}},rr={};/** * @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 m4=T;function ED(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ND)}catch(e){console.error(e)}}ND(),bD.exports=rr;var th=bD.exports;const EE=ar(th),E4=c5({__proto__:null,default:EE},[th]);/** * @license React * react-dom-client.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 ga=p4,xD=T,N4=th;function de(e){var t="https://react.dev/errors/"+e;if(1Lu||(e.current=pI[Lu],pI[Lu]=null,Lu--)}function An(e,t){Lu++,pI[Lu]=e.current,e.current=t}var _i=os(null),Gf=os(null),to=os(null),sb=os(null);function lb(e,t){switch(An(to,t),An(Gf,e),An(_i,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ky(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ky(t),e=VB(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Oa(_i),An(_i,e)}function Rd(){Oa(_i),Oa(Gf),Oa(to)}function mI(e){e.memoizedState!==null&&An(sb,e);var t=_i.current,n=VB(t,e.type);t!==n&&(An(Gf,e),An(_i,n))}function ob(e){Gf.current===e&&(Oa(_i),Oa(Gf)),sb.current===e&&(Oa(sb),ep._currentValue=Rc)}var tx,BA;function cc(e){if(tx===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tx=t&&t[1]||"",BA=-1)":-1r||c[a]!==d[r]){var h=` `+c[a].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),h}while(1<=a&&0<=r);break}}}finally{nx=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?cc(n):""}function v4(e,t){switch(e.tag){case 26:case 27:case 5:return cc(e.type);case 16:return cc("Lazy");case 13:return e.child!==t&&t!==null?cc("Suspense Fallback"):cc("Suspense");case 19:return cc("SuspenseList");case 0:case 15:return ax(e.type,!1);case 11:return ax(e.type.render,!1);case 1:return ax(e.type,!0);case 31:return cc("Activity");default:return""}}function PA(e){try{var t="",n=null;do t+=v4(e,n),n=e,e=e.return;while(e);return t}catch(a){return` Error generating stack: `+a.message+` `+a.stack}}var gI=Object.prototype.hasOwnProperty,gv=ga.unstable_scheduleCallback,rx=ga.unstable_cancelCallback,T4=ga.unstable_shouldYield,A4=ga.unstable_requestPaint,Cr=ga.unstable_now,y4=ga.unstable_getCurrentPriorityLevel,yD=ga.unstable_ImmediatePriority,wD=ga.unstable_UserBlockingPriority,cb=ga.unstable_NormalPriority,w4=ga.unstable_LowPriority,CD=ga.unstable_IdlePriority,C4=ga.log,R4=ga.unstable_setDisableYieldValue,Lp=null,Rr=null;function Kl(e){if(typeof C4=="function"&&R4(e),Rr&&typeof Rr.setStrictMode=="function")try{Rr.setStrictMode(Lp,e)}catch{}}var Mr=Math.clz32?Math.clz32:j4,M4=Math.log,D4=Math.LN2;function j4(e){return e>>>=0,e===0?32:31-(M4(e)/D4|0)|0}var Cm=256,Rm=262144,Mm=4194304;function uc(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function NE(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?r=uc(a):(l&=o,l!==0?r=uc(l):n||(n=o&~e,n!==0&&(r=uc(n))))):(o=a&~i,o!==0?r=uc(o):l!==0?r=uc(l):n||(n=a&~e,n!==0&&(r=uc(n)))),r===0?0:t!==0&&t!==r&&!(t&i)&&(i=r&-r,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:r}function Up(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function B4(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function RD(){var e=Mm;return Mm<<=1,!(Mm&62914560)&&(Mm=4194304),e}function ix(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function kp(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function P4(e,t,n,a,r,i){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,c=e.expirationTimes,d=e.hiddenUpdates;for(n=l&~n;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Y4=/[\n"\\]/g;function _r(e){return e.replace(Y4,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function NI(e,t,n,a,r,i,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Zr(t)):e.value!==""+Zr(t)&&(e.value=""+Zr(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?xI(e,l,Zr(t)):n!=null?xI(e,l,Zr(n)):a!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Zr(o):e.removeAttribute("name")}function kD(e,t,n,a,r,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){EI(e);return}n=n!=null?""+Zr(n):"",t=t!=null?""+Zr(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),EI(e)}function xI(e,t,n){t==="number"&&ub(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function td(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),II=!1;if($s)try{var Ph={};Object.defineProperty(Ph,"passive",{get:function(){II=!0}}),window.addEventListener("test",Ph,Ph),window.removeEventListener("test",Ph,Ph)}catch{II=!1}var Zl=null,Iv=null,Ng=null;function WD(){if(Ng)return Ng;var e,t=Iv,n=t.length,a,r="value"in Zl?Zl.value:Zl.textContent,i=r.length;for(e=0;e=Nf),VA=" ",KA=!1;function VD(e,t){switch(e){case"keyup":return mY.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fu=!1;function bY(e,t){switch(e){case"compositionend":return KD(t);case"keypress":return t.which!==32?null:(KA=!0,VA);case"textInput":return e=t.data,e===VA&&KA?null:e;default:return null}}function EY(e,t){if(Fu)return e==="compositionend"||!vv&&VD(e,t)?(e=WD(),Ng=Iv=Zl=null,Fu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_A(n)}}function XD(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?XD(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _D(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ub(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ub(e.document)}return t}function Tv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var AY=$s&&"documentMode"in document&&11>=document.documentMode,Yu=null,OI=null,Sf=null,vI=!1;function ey(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vI||Yu==null||Yu!==ub(a)||(a=Yu,"selectionStart"in a&&Tv(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Sf&&Vf(Sf,a)||(Sf=a,a=wb(OI,"onSelect"),0>=l,r-=l,Zi=1<<32-Mr(t)+r|n<B?(L=M,M=null):L=M.sibling;var H=m(I,M,v[B],w);if(H===null){M===null&&(M=L);break}e&&M&&H.alternate===null&&t(I,M),O=i(H,O,B),C===null?D=H:C.sibling=H,C=H,M=L}if(B===v.length)return n(I,M),Pt&&Hs(I,B),D;if(M===null){for(;BB?(L=M,M=null):L=M.sibling;var U=m(I,M,H.value,w);if(U===null){M===null&&(M=L);break}e&&M&&U.alternate===null&&t(I,M),O=i(U,O,B),C===null?D=U:C.sibling=U,C=U,M=L}if(H.done)return n(I,M),Pt&&Hs(I,B),D;if(M===null){for(;!H.done;B++,H=v.next())H=f(I,H.value,w),H!==null&&(O=i(H,O,B),C===null?D=H:C.sibling=H,C=H);return Pt&&Hs(I,B),D}for(M=a(M);!H.done;B++,H=v.next())H=g(M,I,B,H.value,w),H!==null&&(e&&H.alternate!==null&&M.delete(H.key===null?B:H.key),O=i(H,O,B),C===null?D=H:C.sibling=H,C=H);return e&&M.forEach(function(W){return t(I,W)}),Pt&&Hs(I,B),D}function S(I,O,v,w){if(typeof v=="object"&&v!==null&&v.type===Hu&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case wm:e:{for(var D=v.key;O!==null;){if(O.key===D){if(D=v.type,D===Hu){if(O.tag===7){n(I,O.sibling),w=r(O,v.props.children),w.return=I,I=w;break e}}else if(O.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Cl&&dc(D)===O.type){n(I,O.sibling),w=r(O,v.props),Lh(w,v),w.return=I,I=w;break e}n(I,O);break}else t(I,O);O=O.sibling}v.type===Hu?(w=Mc(v.props.children,I.mode,w,v.key),w.return=I,I=w):(w=Sg(v.type,v.key,v.props,null,I.mode,w),Lh(w,v),w.return=I,I=w)}return l(I);case cf:e:{for(D=v.key;O!==null;){if(O.key===D)if(O.tag===4&&O.stateNode.containerInfo===v.containerInfo&&O.stateNode.implementation===v.implementation){n(I,O.sibling),w=r(O,v.children||[]),w.return=I,I=w;break e}else{n(I,O);break}else t(I,O);O=O.sibling}w=px(v,I.mode,w),w.return=I,I=w}return l(I);case Cl:return v=dc(v),S(I,O,v,w)}if(uf(v))return b(I,O,v,w);if(Bh(v)){if(D=Bh(v),typeof D!="function")throw Error(de(150));return v=D.call(v),E(I,O,v,w)}if(typeof v.then=="function")return S(I,O,Pm(v),w);if(v.$$typeof===zs)return S(I,O,Bm(I,v),w);Hm(I,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,O!==null&&O.tag===6?(n(I,O.sibling),w=r(O,v),w.return=I,I=w):(n(I,O),w=fx(v,I.mode,w),w.return=I,I=w),l(I)):n(I,O)}return function(I,O,v,w){try{Jf=0;var D=S(I,O,v,w);return rd=null,D}catch(M){if(M===ih||M===TE)throw M;var C=Tr(29,M,null,I.mode);return C.lanes=w,C.return=I,C}finally{}}}var Gc=fj(!0),pj=fj(!1),Rl=!1;function Bv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function MI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ao(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ro(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Jt&2){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=hb(e),ij(e,null,n),t}return vE(e,a,t,n),hb(e)}function Of(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,DD(e,n)}}function gx(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?r=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var DI=!1;function vf(){if(DI){var e=ad;if(e!==null)throw e}}function Tf(e,t,n,a){DI=!1;var r=e.updateQueue;Rl=!1;var i=r.firstBaseUpdate,l=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var c=o,d=c.next;c.next=null,l===null?i=d:l.next=d,l=c;var h=e.alternate;h!==null&&(h=h.updateQueue,o=h.lastBaseUpdate,o!==l&&(o===null?h.firstBaseUpdate=d:o.next=d,h.lastBaseUpdate=c))}if(i!==null){var f=r.baseState;l=0,h=d=c=null,o=i;do{var m=o.lane&-536870913,g=m!==o.lane;if(g?(Rt&m)===m:(a&m)===m){m!==0&&m===jd&&(DI=!0),h!==null&&(h=h.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var b=e,E=o;m=t;var S=n;switch(E.tag){case 1:if(b=E.payload,typeof b=="function"){f=b.call(S,f,m);break e}f=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=E.payload,m=typeof b=="function"?b.call(S,f,m):b,m==null)break e;f=Pn({},f,m);break e;case 2:Rl=!0}}m=o.callback,m!==null&&(e.flags|=64,g&&(e.flags|=8192),g=r.callbacks,g===null?r.callbacks=[m]:g.push(m))}else g={lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},h===null?(d=h=g,c=f):h=h.next=g,l|=m;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;g=o,o=g.next,g.next=null,r.lastBaseUpdate=g,r.shared.pending=null}}while(!0);h===null&&(c=f),r.baseState=c,r.firstBaseUpdate=d,r.lastBaseUpdate=h,i===null&&(r.shared.lanes=0),Eo|=l,e.lanes=l,e.memoizedState=f}}function mj(e,t){if(typeof e!="function")throw Error(de(191,e));e.call(t)}function gj(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ei?i:8;var l=at.T,o={};at.T=o,Kv(e,!1,t,n);try{var c=r(),d=at.S;if(d!==null&&d(o,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var h=PY(c,a);Af(e,t,h,Dr(e))}else Af(e,t,a,Dr(e))}catch(f){Af(e,t,{then:function(){},status:"rejected",reason:f},Dr())}finally{Qt.p=i,l!==null&&o.types!==null&&(l.types=o.types),at.T=l}}function YY(){}function LI(e,t,n,a){if(e.tag!==5)throw Error(de(476));var r=Yj(e).queue;Fj(e,r,t,Rc,n===null?YY:function(){return zj(e),n(a)})}function Yj(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Rc,baseState:Rc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:Rc},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zj(e){var t=Yj(e);t.next===null&&(t=e.alternate.memoizedState),Af(e,t.next.queue,{},Dr())}function Vv(){return Ba(ep)}function Gj(){return sa().memoizedState}function Wj(){return sa().memoizedState}function zY(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Dr();e=ao(n);var a=ro(t,e,n);a!==null&&(pr(a,t,n),Of(a,t,n)),t={cache:Mv()},e.payload=t;return}t=t.return}}function GY(e,t,n){var a=Dr();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},CE(e)?Vj(t,n):(n=yv(e,t,n,a),n!==null&&(pr(n,e,a),Kj(n,t,a)))}function qj(e,t,n){var a=Dr();Af(e,t,n,a)}function Af(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(CE(e))Vj(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(r.hasEagerState=!0,r.eagerState=o,Hr(o,l))return vE(e,t,r,0),On===null&&OE(),!1}catch{}finally{}if(n=yv(e,t,r,a),n!==null)return pr(n,e,a),Kj(n,t,a),!0}return!1}function Kv(e,t,n,a){if(a={lane:2,revertLane:n0(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},CE(e)){if(t)throw Error(de(479))}else t=yv(e,n,a,2),t!==null&&pr(t,e,2)}function CE(e){var t=e.alternate;return e===ft||t!==null&&t===ft}function Vj(e,t){id=Eb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kj(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,DD(e,n)}}var Xf={readContext:Ba,use:yE,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useLayoutEffect:qn,useInsertionEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useSyncExternalStore:qn,useId:qn,useHostTransitionStatus:qn,useFormState:qn,useActionState:qn,useOptimistic:qn,useMemoCache:qn,useCacheRefresh:qn};Xf.useEffectEvent=qn;var Zj={readContext:Ba,use:yE,useCallback:function(e,t){return Xa().memoizedState=[e,t===void 0?null:t],e},useContext:Ba,useEffect:my,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,vg(4194308,4,Pj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vg(4194308,4,e,t)},useInsertionEffect:function(e,t){vg(4,2,e,t)},useMemo:function(e,t){var n=Xa();t=t===void 0?null:t;var a=e();if(Wc){Kl(!0);try{e()}finally{Kl(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Xa();if(n!==void 0){var r=n(t);if(Wc){Kl(!0);try{n(t)}finally{Kl(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=GY.bind(null,ft,e),[a.memoizedState,e]},useRef:function(e){var t=Xa();return e={current:e},t.memoizedState=e},useState:function(e){e=PI(e);var t=e.queue,n=qj.bind(null,ft,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Wv,useDeferredValue:function(e,t){var n=Xa();return qv(n,e,t)},useTransition:function(){var e=PI(!1);return e=Fj.bind(null,ft,e.queue,!0,!1),Xa().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ft,r=Xa();if(Pt){if(n===void 0)throw Error(de(407));n=n()}else{if(n=t(),On===null)throw Error(de(349));Rt&127||Sj(a,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,my(Oj.bind(null,a,i,e),[e]),a.flags|=2048,Pd(9,{destroy:void 0},Ij.bind(null,a,i,n,t),null),n},useId:function(){var e=Xa(),t=On.identifierPrefix;if(Pt){var n=Ji,a=Zi;n=(a&~(1<<32-Mr(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Nb++,0<\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?l.createElement(r,{is:a.is}):l.createElement(r)}}i[Da]=t,i[mr]=a;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=i;e:switch(Ha(i,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ws(t)}}return Cn(t),vx(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ws(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(de(166));if(e=to.current,Au(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=ja,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Da]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||qB(e.nodeValue,n)),e||go(t,!0)}else e=Cb(e).createTextNode(a),e[Da]=t,t.stateNode=e}return Cn(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Au(t),n!==null){if(e===null){if(!a)throw Error(de(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(de(557));e[Da]=t}else Yc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Cn(t),e=!1}else n=mx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Or(t),t):(Or(t),null);if(t.flags&128)throw Error(de(558))}return Cn(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Au(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(de(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(de(317));r[Da]=t}else Yc(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Cn(t),r=!1}else r=mx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Or(t),t):(Or(t),null)}return Or(t),t.flags&128?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lm(t,t.updateQueue),Cn(t),null);case 4:return Rd(),e===null&&a0(t.stateNode.containerInfo),Cn(t),null;case 10:return Vs(t.type),Cn(t),null;case 19:if(Oa(aa),a=t.memoizedState,a===null)return Cn(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)Uh(a,!1);else{if(Xn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=bb(e),i!==null){for(t.flags|=128,Uh(a,!1),e=i.updateQueue,t.updateQueue=e,Lm(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)sj(n,e),n=n.sibling;return An(aa,aa.current&1|2),Pt&&Hs(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Cr()>Ob&&(t.flags|=128,r=!0,Uh(a,!1),t.lanes=4194304)}else{if(!r)if(e=bb(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Lm(t,e),Uh(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!Pt)return Cn(t),null}else 2*Cr()-a.renderingStartTime>Ob&&n!==536870912&&(t.flags|=128,r=!0,Uh(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Cr(),e.sibling=null,n=aa.current,An(aa,r?n&1|2:n&1),Pt&&Hs(t,a.treeForkCount),e):(Cn(t),null);case 22:case 23:return Or(t),Pv(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(Cn(t),t.subtreeFlags&6&&(t.flags|=8192)):Cn(t),n=t.updateQueue,n!==null&&Lm(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Oa(Dc),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Vs(ua),Cn(t),null;case 25:return null;case 30:return null}throw Error(de(156,t.tag))}function ZY(e,t){switch(Rv(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vs(ua),Rd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ob(t),null;case 31:if(t.memoizedState!==null){if(Or(t),t.alternate===null)throw Error(de(340));Yc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Or(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(de(340));Yc()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oa(aa),null;case 4:return Rd(),null;case 10:return Vs(t.type),null;case 22:case 23:return Or(t),Pv(),e!==null&&Oa(Dc),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Vs(ua),null;case 25:return null;default:return null}}function sB(e,t){switch(Rv(t),t.tag){case 3:Vs(ua),Rd();break;case 26:case 27:case 5:ob(t);break;case 4:Rd();break;case 31:t.memoizedState!==null&&Or(t);break;case 13:Or(t);break;case 19:Oa(aa);break;case 10:Vs(t.type);break;case 22:case 23:Or(t),Pv(),e!==null&&Oa(Dc);break;case 24:Vs(ua)}}function Wp(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var i=n.create,l=n.inst;a=i(),l.destroy=a}n=n.next}while(n!==r)}}catch(o){on(t,t.return,o)}}function bo(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var i=r.next;a=i;do{if((a.tag&e)===e){var l=a.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,r=t;var c=n,d=o;try{d()}catch(h){on(r,c,h)}}}a=a.next}while(a!==i)}}catch(h){on(t,t.return,h)}}function lB(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{gj(t,n)}catch(a){on(e,e.return,a)}}}function oB(e,t,n){n.props=qc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){on(e,t,a)}}function yf(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(r){on(e,t,r)}}function Qi(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){on(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){on(e,t,r)}else n.current=null}function cB(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){on(e,e.return,r)}}function Tx(e,t,n){try{var a=e.stateNode;gz(a,e.type,n,t),a[mr]=t}catch(r){on(e,e.return,r)}}function uB(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vo(e.type)||e.tag===4}function Ax(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uB(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zI(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gs));else if(a!==4&&(a===27&&vo(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(zI(e,t,n),e=e.sibling;e!==null;)zI(e,t,n),e=e.sibling}function Ib(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&vo(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ib(e,t,n),e=e.sibling;e!==null;)Ib(e,t,n),e=e.sibling}function dB(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Ha(t,a,n),t[Da]=e,t[mr]=n}catch(i){on(e,e.return,i)}}var ks=!1,ca=!1,yx=!1,wy=typeof WeakSet=="function"?WeakSet:Set,Sa=null;function JY(e,t){if(e=e.containerInfo,JI=jb,e=_D(e),Tv(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var r=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,o=-1,c=-1,d=0,h=0,f=e,m=null;t:for(;;){for(var g;f!==n||r!==0&&f.nodeType!==3||(o=l+r),f!==i||a!==0&&f.nodeType!==3||(c=l+a),f.nodeType===3&&(l+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===e)break t;if(m===n&&++d===r&&(o=l),m===i&&++h===a&&(c=l),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(QI={focusedElem:e,selectionRange:n},jb=!1,Sa=t;Sa!==null;)if(t=Sa,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Sa=e;else for(;Sa!==null;){switch(t=Sa,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n title"))),Ha(i,a,n),i[Da]=e,Ia(i),a=i;break e;case"link":var l=Zy("link","href",r).get(a+(n.href||""));if(l){for(var o=0;oS&&(l=S,S=E,E=l);var I=$A(o,E),O=$A(o,S);if(I&&O&&(g.rangeCount!==1||g.anchorNode!==I.node||g.anchorOffset!==I.offset||g.focusNode!==O.node||g.focusOffset!==O.offset)){var v=f.createRange();v.setStart(I.node,I.offset),g.removeAllRanges(),E>S?(g.addRange(v),g.extend(O.node,O.offset)):(v.setEnd(O.node,O.offset),g.addRange(v))}}}}for(f=[],g=o;g=g.parentNode;)g.nodeType===1&&f.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;on?32:n,at.T=null,n=qI,qI=null;var i=so,l=Ks;if(ma=0,Ld=so=null,Ks=0,Jt&6)throw Error(de(331));var o=Jt;if(Jt|=4,IB(i.current),NB(i,i.current,l,n),Jt=o,qp(0,!1),Rr&&typeof Rr.onPostCommitFiberRoot=="function")try{Rr.onPostCommitFiberRoot(Lp,i)}catch{}return!0}finally{Qt.p=r,at.T=a,LB(e,t)}}function Dy(e,t,n){t=$r(n,t),t=kI(e.stateNode,t,2),e=ro(e,t,2),e!==null&&(kp(e,2),cs(e))}function on(e,t,n){if(e.tag===3)Dy(e,e,n);else for(;t!==null;){if(t.tag===3){Dy(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(io===null||!io.has(a))){e=$r(n,e),n=$j(2),a=ro(t,n,2),a!==null&&(eB(n,a,t,e),kp(a,2),cs(a));break}}t=t.return}}function Cx(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new _Y;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||($v=!0,r.add(n),e=az.bind(null,e,t,n),t.then(e,e))}function az(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,On===e&&(Rt&n)===n&&(Xn===4||Xn===3&&(Rt&62914560)===Rt&&300>Cr()-RE?!(Jt&2)&&Ud(e,0):e0|=n,Hd===Rt&&(Hd=0)),cs(e)}function kB(e,t){t===0&&(t=RD()),e=au(e,t),e!==null&&(kp(e,t),cs(e))}function rz(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kB(e,n)}function iz(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(de(314))}a!==null&&a.delete(t),kB(e,n)}function sz(e,t){return gv(e,t)}var Ab=null,Pu=null,KI=!1,yb=!1,Rx=!1,Xl=0;function cs(e){e!==Pu&&e.next===null&&(Pu===null?Ab=Pu=e:Pu=Pu.next=e),yb=!0,KI||(KI=!0,oz())}function qp(e,t){if(!Rx&&yb){Rx=!0;do for(var n=!1,a=Ab;a!==null;){if(!t)if(e!==0){var r=a.pendingLanes;if(r===0)var i=0;else{var l=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-Mr(42|e)+1)-1,i&=r&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,jy(a,i))}else i=Rt,i=NE(a,a===On?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(i&3)||Up(a,i)||(n=!0,jy(a,i));a=a.next}while(n);Rx=!1}}function lz(){FB()}function FB(){yb=KI=!1;var e=0;Xl!==0&&Ez()&&(e=Xl);for(var t=Cr(),n=null,a=Ab;a!==null;){var r=a.next,i=YB(a,t);i===0?(a.next=null,n===null?Ab=r:n.next=r,r===null&&(Pu=n)):(n=a,(e!==0||i&3)&&(yb=!0)),a=r}ma!==0&&ma!==5||qp(e,!1),Xl!==0&&(Xl=0)}function YB(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0o)break;var h=c.transferSize,f=c.initiatorType;h&&Uy(f)&&(c=c.responseEnd,l+=h*(c"u"?null:document;function QB(e,t,n){var a=lh;if(a&&typeof t=="string"&&t){var r=_r(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),qy.has(r)||(qy.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Ha(t,"link",e),Ia(t),a.head.appendChild(t)))}}function yz(e){ll.D(e),QB("dns-prefetch",e,null)}function wz(e,t){ll.C(e,t),QB("preconnect",e,t)}function Cz(e,t,n){ll.L(e,t,n);var a=lh;if(a&&e&&t){var r='link[rel="preload"][as="'+_r(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_r(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_r(n.imageSizes)+'"]')):r+='[href="'+_r(e)+'"]';var i=r;switch(t){case"style":i=kd(e);break;case"script":i=oh(e)}li.has(i)||(e=Pn({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),li.set(i,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Vp(i))||t==="script"&&a.querySelector(Kp(i))||(t=a.createElement("link"),Ha(t,"link",e),Ia(t),a.head.appendChild(t)))}}function Rz(e,t){ll.m(e,t);var n=lh;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+_r(a)+'"][href="'+_r(e)+'"]',i=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=oh(e)}if(!li.has(i)&&(e=Pn({rel:"modulepreload",href:e},t),li.set(i,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Kp(i)))return}a=n.createElement("link"),Ha(a,"link",e),Ia(a),n.head.appendChild(a)}}}function Mz(e,t,n){ll.S(e,t,n);var a=lh;if(a&&e){var r=ed(a).hoistableStyles,i=kd(e);t=t||"default";var l=r.get(i);if(!l){var o={loading:0,preload:null};if(l=a.querySelector(Vp(i)))o.loading=5;else{e=Pn({rel:"stylesheet",href:e,"data-precedence":t},n),(n=li.get(i))&&r0(e,n);var c=l=a.createElement("link");Ia(c),Ha(c,"link",e),c._p=new Promise(function(d,h){c.onload=d,c.onerror=h}),c.addEventListener("load",function(){o.loading|=1}),c.addEventListener("error",function(){o.loading|=2}),o.loading|=4,wg(l,t,a)}l={type:"stylesheet",instance:l,count:1,state:o},r.set(i,l)}}}function Dz(e,t){ll.X(e,t);var n=lh;if(n&&e){var a=ed(n).hoistableScripts,r=oh(e),i=a.get(r);i||(i=n.querySelector(Kp(r)),i||(e=Pn({src:e,async:!0},t),(t=li.get(r))&&i0(e,t),i=n.createElement("script"),Ia(i),Ha(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}function jz(e,t){ll.M(e,t);var n=lh;if(n&&e){var a=ed(n).hoistableScripts,r=oh(e),i=a.get(r);i||(i=n.querySelector(Kp(r)),i||(e=Pn({src:e,async:!0,type:"module"},t),(t=li.get(r))&&i0(e,t),i=n.createElement("script"),Ia(i),Ha(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}function Vy(e,t,n,a){var r=(r=to.current)?Rb(r):null;if(!r)throw Error(de(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kd(n.href),n=ed(r).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kd(n.href);var i=ed(r).hoistableStyles,l=i.get(e);if(l||(r=r.ownerDocument||r,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=r.querySelector(Vp(e)))&&!i._p&&(l.instance=i,l.state.loading=5),li.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},li.set(e,n),i||Bz(r,e,n,l.state))),t&&a===null)throw Error(de(528,""));return l}if(t&&a!==null)throw Error(de(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=oh(n),n=ed(r).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(de(444,e))}}function kd(e){return'href="'+_r(e)+'"'}function Vp(e){return'link[rel="stylesheet"]['+e+"]"}function XB(e){return Pn({},e,{"data-precedence":e.precedence,precedence:null})}function Bz(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ha(t,"link",n),Ia(t),e.head.appendChild(t))}function oh(e){return'[src="'+_r(e)+'"]'}function Kp(e){return"script[async]"+e}function Ky(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_r(n.href)+'"]');if(a)return t.instance=a,Ia(a),a;var r=Pn({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ia(a),Ha(a,"style",r),wg(a,n.precedence,e),t.instance=a;case"stylesheet":r=kd(n.href);var i=e.querySelector(Vp(r));if(i)return t.state.loading|=4,t.instance=i,Ia(i),i;a=XB(n),(r=li.get(r))&&r0(a,r),i=(e.ownerDocument||e).createElement("link"),Ia(i);var l=i;return l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),Ha(i,"link",a),t.state.loading|=4,wg(i,n.precedence,e),t.instance=i;case"script":return i=oh(n.src),(r=e.querySelector(Kp(i)))?(t.instance=r,Ia(r),r):(a=n,(r=li.get(i))&&(a=Pn({},n),i0(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ia(r),Ha(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(de(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,wg(a,n.precedence,e));return t.instance}function wg(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,i=r,l=0;l title"):null)}function Pz(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function _B(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function Hz(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var r=kd(a.href),i=t.querySelector(Vp(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Mb.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ia(i);return}i=t.ownerDocument||t,a=XB(a),(r=li.get(r))&&r0(a,r),i=i.createElement("link"),Ia(i);var l=i;l._p=new Promise(function(o,c){l.onload=o,l.onerror=c}),Ha(i,"link",a),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Mb.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hx=0;function Lz(e,t){return e.stylesheets&&e.count===0&&Rg(e,e.stylesheets),0Hx?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function Mb(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rg(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Db=null;function Rg(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Db=new Map,t.forEach(Uz,e),Db=null,Mb.call(e))}function Uz(e,t){if(!(t.state.loading&4)){var n=Db.get(e);if(n)var a=n.get(null);else{n=new Map,Db.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(e){console.error(e)}}s2(),pD.exports=gE;var Vz=pD.exports;const Kz=T.createContext(null),Lx={didCatch:!1,error:null};class Zz extends T.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=Lx}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,a,r=arguments.length,i=new Array(r),l=0;l0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,a)=>!Object.is(n,t[a]))}function l2(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Pc=e=>typeof e=="string",wr=e=>typeof e=="function",Dg=e=>Pc(e)||wr(e)?e:null,rO=e=>T.isValidElement(e)||Pc(e)||wr(e)||ap(e);function Qz(e,t,n){n===void 0&&(n=300);const{scrollHeight:a,style:r}=e;requestAnimationFrame(()=>{r.minHeight="initial",r.height=a+"px",r.transition=`all ${n}ms`,requestAnimationFrame(()=>{r.height="0",r.padding="0",r.margin="0",setTimeout(t,n)})})}function PE(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:r=!0,collapseDuration:i=300}=e;return function(l){let{children:o,position:c,preventExitTransition:d,done:h,nodeRef:f,isIn:m,playToast:g}=l;const b=a?`${t}--${c}`:t,E=a?`${n}--${c}`:n,S=T.useRef(0);return T.useLayoutEffect(()=>{const I=f.current,O=b.split(" "),v=w=>{w.target===f.current&&(g(),I.removeEventListener("animationend",v),I.removeEventListener("animationcancel",v),S.current===0&&w.type!=="animationcancel"&&I.classList.remove(...O))};I.classList.add(...O),I.addEventListener("animationend",v),I.addEventListener("animationcancel",v)},[]),T.useEffect(()=>{const I=f.current,O=()=>{I.removeEventListener("animationend",O),r?Qz(I,h,i):h()};m||(d?O():(S.current=1,I.className+=` ${E}`,I.addEventListener("animationend",O)))},[m]),ee.createElement(ee.Fragment,null,o)}}function nw(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const er=new Map;let rp=[];const iO=new Set,Xz=e=>iO.forEach(t=>t(e)),o2=()=>er.size>0;function c2(e,t){var n;if(t)return!((n=er.get(t))==null||!n.isToastActive(e));let a=!1;return er.forEach(r=>{r.isToastActive(e)&&(a=!0)}),a}function u2(e,t){rO(e)&&(o2()||rp.push({content:e,options:t}),er.forEach(n=>{n.buildToast(e,t)}))}function aw(e,t){er.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function _z(e){const{subscribe:t,getSnapshot:n,setProps:a}=T.useRef(function(i){const l=i.containerId||1;return{subscribe(o){const c=function(h,f,m){let g=1,b=0,E=[],S=[],I=[],O=f;const v=new Map,w=new Set,D=()=>{I=Array.from(v.values()),w.forEach(B=>B())},C=B=>{S=B==null?[]:S.filter(L=>L!==B),D()},M=B=>{const{toastId:L,onOpen:H,updateId:U,children:W}=B.props,z=U==null;B.staleId&&v.delete(B.staleId),v.set(L,B),S=[...S,B.props.toastId].filter($=>$!==B.staleId),D(),m(nw(B,z?"added":"updated")),z&&wr(H)&&H(T.isValidElement(W)&&W.props)};return{id:h,props:O,observe:B=>(w.add(B),()=>w.delete(B)),toggle:(B,L)=>{v.forEach(H=>{L!=null&&L!==H.props.toastId||wr(H.toggle)&&H.toggle(B)})},removeToast:C,toasts:v,clearQueue:()=>{b-=E.length,E=[]},buildToast:(B,L)=>{if((ve=>{let{containerId:Ue,toastId:Re,updateId:ue}=ve;const ze=Ue?Ue!==h:h!==1,Qe=v.has(Re)&&ue==null;return ze||Qe})(L))return;const{toastId:H,updateId:U,data:W,staleId:z,delay:$}=L,V=()=>{C(H)},F=U==null;F&&b++;const te={...O,style:O.toastStyle,key:g++,...Object.fromEntries(Object.entries(L).filter(ve=>{let[Ue,Re]=ve;return Re!=null})),toastId:H,updateId:U,data:W,closeToast:V,isIn:!1,className:Dg(L.className||O.toastClassName),bodyClassName:Dg(L.bodyClassName||O.bodyClassName),progressClassName:Dg(L.progressClassName||O.progressClassName),autoClose:!L.isLoading&&(se=L.autoClose,pe=O.autoClose,se===!1||ap(se)&&se>0?se:pe),deleteToast(){const ve=v.get(H),{onClose:Ue,children:Re}=ve.props;wr(Ue)&&Ue(T.isValidElement(Re)&&Re.props),m(nw(ve,"removed")),v.delete(H),b--,b<0&&(b=0),E.length>0?M(E.shift()):D()}};var se,pe;te.closeButton=O.closeButton,L.closeButton===!1||rO(L.closeButton)?te.closeButton=L.closeButton:L.closeButton===!0&&(te.closeButton=!rO(O.closeButton)||O.closeButton);let be=B;T.isValidElement(B)&&!Pc(B.type)?be=T.cloneElement(B,{closeToast:V,toastProps:te,data:W}):wr(B)&&(be=B({closeToast:V,toastProps:te,data:W}));const we={content:be,props:te,staleId:z};O.limit&&O.limit>0&&b>O.limit&&F?E.push(we):ap($)?setTimeout(()=>{M(we)},$):M(we)},setProps(B){O=B},setToggle:(B,L)=>{v.get(B).toggle=L},isToastActive:B=>S.some(L=>L===B),getSnapshot:()=>O.newestOnTop?I.reverse():I}}(l,i,Xz);er.set(l,c);const d=c.observe(o);return rp.forEach(h=>u2(h.content,h.options)),rp=[],()=>{d(),er.delete(l)}},setProps(o){var c;(c=er.get(l))==null||c.setProps(o)},getSnapshot(){var o;return(o=er.get(l))==null?void 0:o.getSnapshot()}}}(e)).current;a(e);const r=T.useSyncExternalStore(t,n,n);return{getToastToRender:function(i){if(!r)return[];const l=new Map;return r.forEach(o=>{const{position:c}=o.props;l.has(c)||l.set(c,[]),l.get(c).push(o)}),Array.from(l,o=>i(o[0],o[1]))},isToastActive:c2,count:r==null?void 0:r.length}}function $z(e){const[t,n]=T.useState(!1),[a,r]=T.useState(!1),i=T.useRef(null),l=T.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:o,pauseOnHover:c,closeToast:d,onClick:h,closeOnClick:f}=e;var m,g;function b(){n(!0)}function E(){n(!1)}function S(v){const w=i.current;l.canDrag&&w&&(l.didMove=!0,t&&E(),l.delta=e.draggableDirection==="x"?v.clientX-l.start:v.clientY-l.start,l.start!==v.clientX&&(l.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${l.delta}px, var(--y)`:`0, calc(${l.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function I(){document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",I);const v=i.current;if(l.canDrag&&l.didMove&&v){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return r(!0),e.closeToast(),void e.collapseAll();v.style.transition="transform 0.2s, opacity 0.2s",v.style.removeProperty("transform"),v.style.removeProperty("opacity")}}(g=er.get((m={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||g.setToggle(m.id,m.fn),T.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||E(),window.addEventListener("focus",b),window.addEventListener("blur",E),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",E)}},[e.pauseOnFocusLoss]);const O={onPointerDown:function(v){if(e.draggable===!0||e.draggable===v.pointerType){l.didMove=!1,document.addEventListener("pointermove",S),document.addEventListener("pointerup",I);const w=i.current;l.canCloseOnClick=!0,l.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(l.start=v.clientX,l.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(l.start=v.clientY,l.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(v){const{top:w,bottom:D,left:C,right:M}=i.current.getBoundingClientRect();v.nativeEvent.type!=="touchend"&&e.pauseOnHover&&v.clientX>=C&&v.clientX<=M&&v.clientY>=w&&v.clientY<=D?E():b()}};return o&&c&&(O.onMouseEnter=E,e.stacked||(O.onMouseLeave=b)),f&&(O.onClick=v=>{h&&h(v),l.canCloseOnClick&&d()}),{playToast:b,pauseToast:E,isRunning:t,preventExitTransition:a,toastRef:i,eventHandlers:O}}function e6(e){let{delay:t,isRunning:n,closeToast:a,type:r="default",hide:i,className:l,style:o,controlledProgress:c,progress:d,rtl:h,isIn:f,theme:m}=e;const g=i||c&&d===0,b={...o,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};c&&(b.transform=`scaleX(${d})`);const E=_l("Toastify__progress-bar",c?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${r}`,{"Toastify__progress-bar--rtl":h}),S=wr(l)?l({rtl:h,type:r,defaultClassName:E}):_l(E,l),I={[c&&d>=1?"onTransitionEnd":"onAnimationEnd"]:c&&d<1?null:()=>{f&&a()}};return ee.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},ee.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${r}`}),ee.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:S,style:b,...I}))}let t6=1;const d2=()=>""+t6++;function n6(e){return e&&(Pc(e.toastId)||ap(e.toastId))?e.toastId:d2()}function Df(e,t){return u2(e,t),t.toastId}function Pb(e,t){return{...t,type:t&&t.type||e,toastId:n6(t)}}function Gm(e){return(t,n)=>Df(t,Pb(e,n))}function xn(e,t){return Df(e,Pb("default",t))}xn.loading=(e,t)=>Df(e,Pb("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),xn.promise=function(e,t,n){let a,{pending:r,error:i,success:l}=t;r&&(a=Pc(r)?xn.loading(r,n):xn.loading(r.render,{...n,...r}));const o={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(h,f,m)=>{if(f==null)return void xn.dismiss(a);const g={type:h,...o,...n,data:m},b=Pc(f)?{render:f}:f;return a?xn.update(a,{...g,...b}):xn(b.render,{...g,...b}),m},d=wr(e)?e():e;return d.then(h=>c("success",l,h)).catch(h=>c("error",i,h)),d},xn.success=Gm("success"),xn.info=Gm("info"),xn.error=Gm("error"),xn.warning=Gm("warning"),xn.warn=xn.warning,xn.dark=(e,t)=>Df(e,Pb("default",{theme:"dark",...t})),xn.dismiss=function(e){(function(t){var n;if(o2()){if(t==null||Pc(n=t)||ap(n))er.forEach(a=>{a.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const a=er.get(t.containerId);a?a.removeToast(t.id):er.forEach(r=>{r.removeToast(t.id)})}}else rp=rp.filter(a=>t!=null&&a.options.toastId!==t)})(e)},xn.clearWaitingQueue=function(e){e===void 0&&(e={}),er.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},xn.isActive=c2,xn.update=function(e,t){t===void 0&&(t={});const n=((a,r)=>{var i;let{containerId:l}=r;return(i=er.get(l||1))==null?void 0:i.toasts.get(a)})(e,t);if(n){const{props:a,content:r}=n,i={delay:100,...a,...t,toastId:t.toastId||e,updateId:d2()};i.toastId!==e&&(i.staleId=e);const l=i.render||r;delete i.render,Df(l,i)}},xn.done=e=>{xn.update(e,{progress:1})},xn.onChange=function(e){return iO.add(e),()=>{iO.delete(e)}},xn.play=e=>aw(!0,e),xn.pause=e=>aw(!1,e);const a6=typeof window<"u"?T.useLayoutEffect:T.useEffect,Wm=e=>{let{theme:t,type:n,isLoading:a,...r}=e;return ee.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},Ux={info:function(e){return ee.createElement(Wm,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return ee.createElement(Wm,{...e},ee.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return ee.createElement(Wm,{...e},ee.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return ee.createElement(Wm,{...e},ee.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return ee.createElement("div",{className:"Toastify__spinner"})}},r6=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:r,playToast:i}=$z(e),{closeButton:l,children:o,autoClose:c,onClick:d,type:h,hideProgressBar:f,closeToast:m,transition:g,position:b,className:E,style:S,bodyClassName:I,bodyStyle:O,progressClassName:v,progressStyle:w,updateId:D,role:C,progress:M,rtl:B,toastId:L,deleteToast:H,isIn:U,isLoading:W,closeOnClick:z,theme:$}=e,V=_l("Toastify__toast",`Toastify__toast-theme--${$}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":B},{"Toastify__toast--close-on-click":z}),F=wr(E)?E({rtl:B,position:b,type:h,defaultClassName:V}):_l(V,E),te=function(we){let{theme:ve,type:Ue,isLoading:Re,icon:ue}=we,ze=null;const Qe={theme:ve,type:Ue};return ue===!1||(wr(ue)?ze=ue({...Qe,isLoading:Re}):T.isValidElement(ue)?ze=T.cloneElement(ue,Qe):Re?ze=Ux.spinner():(me=>me in Ux)(Ue)&&(ze=Ux[Ue](Qe))),ze}(e),se=!!M||!c,pe={closeToast:m,type:h,theme:$};let be=null;return l===!1||(be=wr(l)?l(pe):T.isValidElement(l)?T.cloneElement(l,pe):function(we){let{closeToast:ve,theme:Ue,ariaLabel:Re="close"}=we;return ee.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ue}`,type:"button",onClick:ue=>{ue.stopPropagation(),ve(ue)},"aria-label":Re},ee.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},ee.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(pe)),ee.createElement(g,{isIn:U,done:H,position:b,preventExitTransition:n,nodeRef:a,playToast:i},ee.createElement("div",{id:L,onClick:d,"data-in":U,className:F,...r,style:S,ref:a},ee.createElement("div",{...U&&{role:C},className:wr(I)?I({type:h}):_l("Toastify__toast-body",I),style:O},te!=null&&ee.createElement("div",{className:_l("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!W})},te),ee.createElement("div",null,o)),be,ee.createElement(e6,{...D&&!se?{key:`pb-${D}`}:{},rtl:B,theme:$,delay:c,isRunning:t,isIn:U,closeToast:m,hide:f,type:h,style:w,className:v,controlledProgress:se,progress:M||0})))},HE=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},u0=PE(HE("bounce",!0));PE(HE("slide",!0));PE(HE("zoom"));PE(HE("flip"));const i6={position:"top-right",transition:u0,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function s6(e){let t={...i6,...e};const n=e.stacked,[a,r]=T.useState(!0),i=T.useRef(null),{getToastToRender:l,isToastActive:o,count:c}=_z(t),{className:d,style:h,rtl:f,containerId:m}=t;function g(E){const S=_l("Toastify__toast-container",`Toastify__toast-container--${E}`,{"Toastify__toast-container--rtl":f});return wr(d)?d({position:E,rtl:f,defaultClassName:S}):_l(S,Dg(d))}function b(){n&&(r(!0),xn.play())}return a6(()=>{if(n){var E;const S=i.current.querySelectorAll('[data-in="true"]'),I=12,O=(E=t.position)==null?void 0:E.includes("top");let v=0,w=0;Array.from(S).reverse().forEach((D,C)=>{const M=D;M.classList.add("Toastify__toast--stacked"),C>0&&(M.dataset.collapsed=`${a}`),M.dataset.pos||(M.dataset.pos=O?"top":"bot");const B=v*(a?.2:1)+(a?0:I*C);M.style.setProperty("--y",`${O?B:-1*B}px`),M.style.setProperty("--g",`${I}`),M.style.setProperty("--s",""+(1-(a?w:0))),v+=M.offsetHeight,w+=.025})}},[a,c,n]),ee.createElement("div",{ref:i,className:"Toastify",id:m,onMouseEnter:()=>{n&&(r(!1),xn.pause())},onMouseLeave:b},l((E,S)=>{const I=S.length?{...h}:{...h,pointerEvents:"none"};return ee.createElement("div",{className:g(E),style:I,key:`container-${E}`},S.map(O=>{let{content:v,props:w}=O;return ee.createElement(r6,{...w,stacked:n,collapseAll:b,isIn:o(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},v)}))}))}function l6(){this.__data__=[],this.size=0}var o6=l6;function c6(e,t){return e===t||e!==e&&t!==t}var d0=c6,u6=d0;function d6(e,t){for(var n=e.length;n--;)if(u6(e[n][0],t))return n;return-1}var LE=d6,h6=LE,f6=Array.prototype,p6=f6.splice;function m6(e){var t=this.__data__,n=h6(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():p6.call(t,n,1),--this.size,!0}var g6=m6,b6=LE;function E6(e){var t=this.__data__,n=b6(t,e);return n<0?void 0:t[n][1]}var N6=E6,x6=LE;function S6(e){return x6(this.__data__,e)>-1}var I6=S6,O6=LE;function v6(e,t){var n=this.__data__,a=O6(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}var T6=v6,A6=o6,y6=g6,w6=N6,C6=I6,R6=T6;function ch(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to))return!1;var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var f=-1,m=!0,g=n&mW?new dW:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e-1&&e%1==0&&e<=E8}var x0=N8,x8=dh,S8=x0,I8=To,O8="[object Arguments]",v8="[object Array]",T8="[object Boolean]",A8="[object Date]",y8="[object Error]",w8="[object Function]",C8="[object Map]",R8="[object Number]",M8="[object Object]",D8="[object RegExp]",j8="[object Set]",B8="[object String]",P8="[object WeakMap]",H8="[object ArrayBuffer]",L8="[object DataView]",U8="[object Float32Array]",k8="[object Float64Array]",F8="[object Int8Array]",Y8="[object Int16Array]",z8="[object Int32Array]",G8="[object Uint8Array]",W8="[object Uint8ClampedArray]",q8="[object Uint16Array]",V8="[object Uint32Array]",Mn={};Mn[U8]=Mn[k8]=Mn[F8]=Mn[Y8]=Mn[z8]=Mn[G8]=Mn[W8]=Mn[q8]=Mn[V8]=!0;Mn[O8]=Mn[v8]=Mn[H8]=Mn[T8]=Mn[L8]=Mn[A8]=Mn[y8]=Mn[w8]=Mn[C8]=Mn[R8]=Mn[M8]=Mn[D8]=Mn[j8]=Mn[B8]=Mn[P8]=!1;function K8(e){return I8(e)&&S8(e.length)&&!!Mn[x8(e)]}var Z8=K8;function J8(e){return function(t){return e(t)}}var S0=J8,Ub={exports:{}};Ub.exports;(function(e,t){var n=h2,a=t&&!t.nodeType&&t,r=a&&!0&&e&&!e.nodeType&&e,i=r&&r.exports===a,l=i&&n.process,o=function(){try{var c=r&&r.require&&r.require("util").types;return c||l&&l.binding&&l.binding("util")}catch{}}();e.exports=o})(Ub,Ub.exports);var I0=Ub.exports,Q8=Z8,X8=S0,mw=I0,gw=mw&&mw.isTypedArray,_8=gw?X8(gw):Q8,S2=_8,$8=n8,e9=b0,t9=ds,n9=E0,a9=N0,r9=S2,i9=Object.prototype,s9=i9.hasOwnProperty;function l9(e,t){var n=t9(e),a=!n&&e9(e),r=!n&&!a&&n9(e),i=!n&&!a&&!r&&r9(e),l=n||a||r||i,o=l?$8(e.length,String):[],c=o.length;for(var d in e)(t||s9.call(e,d))&&!(l&&(d=="length"||r&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||a9(d,c)))&&o.push(d);return o}var I2=l9,o9=Object.prototype;function c9(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||o9;return e===n}var O0=c9;function u9(e,t){return function(n){return e(t(n))}}var O2=u9,d9=O2,h9=d9(Object.keys,Object),f9=h9,p9=O0,m9=f9,g9=Object.prototype,b9=g9.hasOwnProperty;function E9(e){if(!p9(e))return m9(e);var t=[];for(var n in Object(e))b9.call(e,n)&&n!="constructor"&&t.push(n);return t}var N9=E9,x9=p2,S9=x0;function I9(e){return e!=null&&S9(e.length)&&!x9(e)}var v2=I9,O9=I2,v9=N9,T9=v2;function A9(e){return T9(e)?O9(e):v9(e)}var YE=A9,y9=E2,w9=g0,C9=YE;function R9(e){return y9(e,C9,w9)}var T2=R9,bw=T2,M9=1,D9=Object.prototype,j9=D9.hasOwnProperty;function B9(e,t,n,a,r,i){var l=n&M9,o=bw(e),c=o.length,d=bw(t),h=d.length;if(c!=h&&!l)return!1;for(var f=c;f--;){var m=o[f];if(!(l?m in t:j9.call(t,m)))return!1}var g=i.get(e),b=i.get(t);if(g&&b)return g==t&&b==e;var E=!0;i.set(e,t),i.set(t,e);for(var S=l;++f{var n=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,c=(w,D,C)=>D in w?n(w,D,{enumerable:!0,configurable:!0,writable:!0,value:C}):w[D]=C,d=(w,D)=>{for(var C in D||(D={}))l.call(D,C)&&c(w,C,D[C]);if(i)for(var C of i(D))o.call(D,C)&&c(w,C,D[C]);return w},h=(w,D)=>{for(var C in D)n(w,C,{get:D[C],enumerable:!0})},f=(w,D,C,M)=>{if(D&&typeof D=="object"||typeof D=="function")for(let B of r(D))!l.call(w,B)&&B!==C&&n(w,B,{get:()=>D[B],enumerable:!(M=a(D,B))||M.enumerable});return w},m=w=>f(n({},"__esModule",{value:!0}),w),g=(w,D,C)=>(c(w,typeof D!="symbol"?D+"":D,C),C),b={};h(b,{DEFAULT_OPTIONS:()=>I,DEFAULT_UUID_LENGTH:()=>S,default:()=>v});var E="5.0.3",S=6,I={dictionary:"alphanum",shuffle:!0,debug:!1,length:S,counter:0},O=class{constructor(D={}){g(this,"counter"),g(this,"debug"),g(this,"dict"),g(this,"version"),g(this,"dictIndex",0),g(this,"dictRange",[]),g(this,"lowerBound",0),g(this,"upperBound",0),g(this,"dictLength",0),g(this,"uuidLength"),g(this,"_digit_first_ascii",48),g(this,"_digit_last_ascii",58),g(this,"_alpha_lower_first_ascii",97),g(this,"_alpha_lower_last_ascii",123),g(this,"_hex_last_ascii",103),g(this,"_alpha_upper_first_ascii",65),g(this,"_alpha_upper_last_ascii",91),g(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),g(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),g(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),g(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),g(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),g(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),g(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),g(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),g(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),g(this,"log",(...U)=>{const W=[...U];if(W[0]=`[short-unique-id] ${U[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...W)}),g(this,"setDictionary",(U,W)=>{let z;if(U&&Array.isArray(U)&&U.length>1)z=U;else{z=[];let $;this.dictIndex=$=0;const V=`_${U}_dict_ranges`,F=this._dict_ranges[V];Object.keys(F).forEach(te=>{const se=te;for(this.dictRange=F[se],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=$=this.lowerBound;this.lowerBound<=this.upperBound?$this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?$+=1:$-=1)z.push(String.fromCharCode(this.dictIndex))})}W&&(z=z.sort(()=>Math.random()-.5)),this.dict=z,this.dictLength=this.dict.length,this.setCounter(0)}),g(this,"seq",()=>this.sequentialUUID()),g(this,"sequentialUUID",()=>{let U,W,z="";U=this.counter;do W=U%this.dictLength,U=Math.trunc(U/this.dictLength),z+=this.dict[W];while(U!==0);return this.counter+=1,z}),g(this,"rnd",(U=this.uuidLength||S)=>this.randomUUID(U)),g(this,"randomUUID",(U=this.uuidLength||S)=>{let W,z,$;if(U===null||typeof U>"u"||U<1)throw new Error("Invalid UUID Length Provided");for(W="",$=0;$this.formattedUUID(U,W)),g(this,"formattedUUID",(U,W)=>{const z={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return U.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,V=>{const F=V.slice(0,2),te=parseInt(V.slice(2),10);return F==="$s"?z[F]().padStart(te,"0"):F==="$t"&&W?z[F](te,W):z[F](te)})}),g(this,"availableUUIDs",(U=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,U).toFixed(0))),g(this,"approxMaxBeforeCollision",(U=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*U).toFixed(20))),g(this,"collisionProbability",(U=this.availableUUIDs(this.uuidLength),W=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(U)/this.availableUUIDs(W)).toFixed(20))),g(this,"uniqueness",(U=this.availableUUIDs(this.uuidLength))=>{const W=parseFloat((1-this.approxMaxBeforeCollision(U)/U).toFixed(20));return W>1?1:W<0?0:W}),g(this,"getVersion",()=>this.version),g(this,"stamp",(U,W)=>{const z=Math.floor(+(W||new Date)/1e3).toString(16);if(typeof U=="number"&&U===0)return z;if(typeof U!="number"||U<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(` `));const $=U-9,V=Math.round(Math.random()*($>15?15:$)),F=this.randomUUID($);return`${F.substring(0,V)}${z}${F.substring(V)}${V.toString(16)}`}),g(this,"parseStamp",(U,W)=>{if(W&&!/t0|t[1-9]\d{1,}/.test(W))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const z=W?W.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,V=>{const F={$r:pe=>[...Array(pe)].map(()=>"r").join(""),$s:pe=>[...Array(pe)].map(()=>"s").join(""),$t:pe=>[...Array(pe)].map(()=>"t").join("")},te=V.slice(0,2),se=parseInt(V.slice(2),10);return F[te](se)}).replace(/^(.*?)(t{8,})(.*)$/g,(V,F,te)=>U.substring(F.length,F.length+te.length)):U;if(z.length===8)return new Date(parseInt(z,16)*1e3);if(z.length<10)throw new Error("Stamp length invalid");const $=parseInt(z.substring(z.length-1),16);return new Date(parseInt(z.substring($,$+8),16)*1e3)}),g(this,"setCounter",U=>{this.counter=U});const C=d(d({},I),D);this.counter=0,this.debug=!1,this.dict=[],this.version=E;const{dictionary:M,shuffle:B,length:L,counter:H}=C;return this.uuidLength=L,this.setDictionary(M,B),this.setCounter(H),this.debug=C.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};g(O,"default",O);var v=O;return m(b)})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(C2);var bq=C2.exports;const Eq=ar(bq),T0="-";function Nq(e){const t=Sq(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;function r(l){const o=l.split(T0);return o[0]===""&&o.length!==1&&o.shift(),R2(o,t)||xq(l)}function i(l,o){const c=n[l]||[];return o&&a[l]?[...c,...a[l]]:c}return{getClassGroupId:r,getConflictingClassGroupIds:i}}function R2(e,t){var l;if(e.length===0)return t.classGroupId;const n=e[0],a=t.nextPart.get(n),r=a?R2(e.slice(1),a):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(T0);return(l=t.validators.find(({validator:o})=>o(i)))==null?void 0:l.classGroupId}const Dw=/^\[(.+)\]$/;function xq(e){if(Dw.test(e)){const t=Dw.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Sq(e){const{theme:t,prefix:n}=e,a={nextPart:new Map,validators:[]};return Oq(Object.entries(e.classGroups),n).forEach(([i,l])=>{dO(l,a,i,t)}),a}function dO(e,t,n,a){e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:jw(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Iq(r)){dO(r(a),t,n,a);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,l])=>{dO(l,jw(t,i),n,a)})})}function jw(e,t){let n=e;return t.split(T0).forEach(a=>{n.nextPart.has(a)||n.nextPart.set(a,{nextPart:new Map,validators:[]}),n=n.nextPart.get(a)}),n}function Iq(e){return e.isThemeGetter}function Oq(e,t){return t?e.map(([n,a])=>{const r=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,o])=>[t+l,o])):i);return[n,r]}):e}function vq(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;function r(i,l){n.set(i,l),t++,t>e&&(t=0,a=n,n=new Map)}return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=a.get(i))!==void 0)return r(i,l),l},set(i,l){n.has(i)?n.set(i,l):r(i,l)}}}const M2="!";function Tq(e){const t=e.separator,n=t.length===1,a=t[0],r=t.length;return function(l){const o=[];let c=0,d=0,h;for(let E=0;Ed?h-d:void 0;return{modifiers:o,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:b}}}function Aq(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(a=>{a[0]==="["?(t.push(...n.sort(),a),n=[]):n.push(a)}),t.push(...n.sort()),t}function yq(e){return{cache:vq(e.cacheSize),splitModifiers:Tq(e),...Nq(e)}}const wq=/\s+/;function Cq(e,t){const{splitModifiers:n,getClassGroupId:a,getConflictingClassGroupIds:r}=t,i=new Set;return e.trim().split(wq).map(l=>{const{modifiers:o,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:h}=n(l);let f=a(h?d.substring(0,h):d),m=!!h;if(!f){if(!h)return{isTailwindClass:!1,originalClassName:l};if(f=a(d),!f)return{isTailwindClass:!1,originalClassName:l};m=!1}const g=Aq(o).join(":");return{isTailwindClass:!0,modifierId:c?g+M2:g,classGroupId:f,originalClassName:l,hasPostfixModifier:m}}).reverse().filter(l=>{if(!l.isTailwindClass)return!0;const{modifierId:o,classGroupId:c,hasPostfixModifier:d}=l,h=o+c;return i.has(h)?!1:(i.add(h),r(c,d).forEach(f=>i.add(o+f)),!0)}).reverse().map(l=>l.originalClassName).join(" ")}function Rq(){let e=0,t,n,a="";for(;ef(h),e());return n=yq(d),a=n.cache.get,r=n.cache.set,i=o,o(c)}function o(c){const d=a(c);if(d)return d;const h=Cq(c,n);return r(c,h),h}return function(){return i(Rq.apply(null,arguments))}}function Rn(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const j2=/^\[(?:([a-z-]+):)?(.+)\]$/i,Dq=/^\d+\/\d+$/,jq=new Set(["px","full","screen"]),Bq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lq=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uq=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Ms(e){return bc(e)||jq.has(e)||Dq.test(e)}function Sl(e){return gh(e,"length",Vq)}function bc(e){return!!e&&!Number.isNaN(Number(e))}function Vm(e){return gh(e,"number",bc)}function zh(e){return!!e&&Number.isInteger(Number(e))}function kq(e){return e.endsWith("%")&&bc(e.slice(0,-1))}function pt(e){return j2.test(e)}function Il(e){return Bq.test(e)}const Fq=new Set(["length","size","percentage"]);function Yq(e){return gh(e,Fq,B2)}function zq(e){return gh(e,"position",B2)}const Gq=new Set(["image","url"]);function Wq(e){return gh(e,Gq,Zq)}function qq(e){return gh(e,"",Kq)}function Gh(){return!0}function gh(e,t,n){const a=j2.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):n(a[2]):!1}function Vq(e){return Pq.test(e)&&!Hq.test(e)}function B2(){return!1}function Kq(e){return Lq.test(e)}function Zq(e){return Uq.test(e)}function Jq(){const e=Rn("colors"),t=Rn("spacing"),n=Rn("blur"),a=Rn("brightness"),r=Rn("borderColor"),i=Rn("borderRadius"),l=Rn("borderSpacing"),o=Rn("borderWidth"),c=Rn("contrast"),d=Rn("grayscale"),h=Rn("hueRotate"),f=Rn("invert"),m=Rn("gap"),g=Rn("gradientColorStops"),b=Rn("gradientColorStopPositions"),E=Rn("inset"),S=Rn("margin"),I=Rn("opacity"),O=Rn("padding"),v=Rn("saturate"),w=Rn("scale"),D=Rn("sepia"),C=Rn("skew"),M=Rn("space"),B=Rn("translate"),L=()=>["auto","contain","none"],H=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto",pt,t],W=()=>[pt,t],z=()=>["",Ms,Sl],$=()=>["auto",bc,pt],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],se=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",pt],be=()=>["auto","avoid","all","avoid-page","page","left","right","column"],we=()=>[bc,Vm],ve=()=>[bc,pt];return{cacheSize:500,separator:":",theme:{colors:[Gh],spacing:[Ms,Sl],blur:["none","",Il,pt],brightness:we(),borderColor:[e],borderRadius:["none","","full",Il,pt],borderSpacing:W(),borderWidth:z(),contrast:we(),grayscale:pe(),hueRotate:ve(),invert:pe(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[kq,Sl],inset:U(),margin:U(),opacity:we(),padding:W(),saturate:we(),scale:we(),sepia:pe(),skew:ve(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",pt]}],container:["container"],columns:[{columns:[Il]}],"break-after":[{"break-after":be()}],"break-before":[{"break-before":be()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),pt]}],overflow:[{overflow:H()}],"overflow-x":[{"overflow-x":H()}],"overflow-y":[{"overflow-y":H()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zh,pt]}],basis:[{basis:U()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",pt]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",zh,pt]}],"grid-cols":[{"grid-cols":[Gh]}],"col-start-end":[{col:["auto",{span:["full",zh,pt]},pt]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Gh]}],"row-start-end":[{row:["auto",{span:[zh,pt]},pt]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",pt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",pt]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",pt,t]}],"min-w":[{"min-w":[pt,t,"min","max","fit"]}],"max-w":[{"max-w":[pt,t,"none","full","min","max","fit","prose",{screen:[Il]},Il]}],h:[{h:[pt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[pt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[pt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[pt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Il,Sl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vm]}],"font-family":[{font:[Gh]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",pt]}],"line-clamp":[{"line-clamp":["none",bc,Vm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ms,pt]}],"list-image":[{"list-image":["none",pt]}],"list-style-type":[{list:["none","disc","decimal",pt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ms,Sl]}],"underline-offset":[{"underline-offset":["auto",Ms,pt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),zq]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yq]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Wq]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[I]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:F()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[Ms,pt]}],"outline-w":[{outline:[Ms,Sl]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[Ms,Sl]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Il,qq]}],"shadow-color":[{shadow:[Gh]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":te()}],"bg-blend":[{"bg-blend":te()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[a]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Il,pt]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[v]}],sepia:[{sepia:[D]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",pt]}],duration:[{duration:ve()}],ease:[{ease:["linear","in","out","in-out",pt]}],delay:[{delay:ve()}],animate:[{animate:["none","spin","ping","pulse","bounce",pt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[zh,pt]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",pt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-me":[{"scroll-me":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-pe":[{"scroll-pe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ms,Sl,Vm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const tn=Mq(Jq);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Nye(e){return e.replace(/\/+/g,"/")}function Kn(){const{randomUUID:e}=new Eq({length:8});return e()}function ge(...e){return e.length===1&&typeof e[0]=="string"?e[0]:tn(Ae(...e))}function xye(e,t={day:"2-digit",month:"2-digit",year:"numeric"}){let n=null;if(typeof e=="string"){const a=new Date(e);a.toString()!=="Invalid Date"&&(n=a)}return e instanceof Date&&(n=e),n?n.toLocaleDateString("de-DE",t):""}function P2(e){var r,i,l,o,c;const t=[];(i=(r=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:r.householdMembers)==null||i.forEach(d=>{t.push(d)}),(o=(l=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:l.kids)==null||o.forEach(d=>{t.push(d)});const n=(c=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:c.partner;n&&t.push(n);const a=e==null?void 0:e.applicantData;return a&&t.push(a),t}function uo(e){var i,l;const t=(e==null?void 0:e.isRelatedToYou)===!0,n=(e==null?void 0:e.isRelatedToPartner)===!0,a=((i=e==null?void 0:e.otherPersonRelationshipToYouType)==null?void 0:i.value)!=="other",r=((l=e==null?void 0:e.otherPersonRelationshipToPartnerType)==null?void 0:l.value)!=="other";return t&&a||n&&r}function Qq(e){let t;try{t=new URL(e)}catch{return!1}return t.protocol==="http:"||t.protocol==="https:"}const Sye=e=>e==null?"0 €":`${new Intl.NumberFormat("de-DE",{minimumFractionDigits:0,maximumFractionDigits:2}).format(e)}€`;function H2(e,t){var i,l,o,c;let n=null;((i=e==null?void 0:e.applicantIncomeData)==null?void 0:i.memberId)===t&&(n=e==null?void 0:e.applicantIncomeData),((l=e==null?void 0:e.partnerIncomeData)==null?void 0:l.memberId)===t&&(n=e==null?void 0:e.partnerIncomeData);const a=(o=e==null?void 0:e.kidsIncomeData)==null?void 0:o.find(d=>{d.memberId===t&&(n=d)});a&&(n=a);const r=(c=e==null?void 0:e.otherMembersIncomeData)==null?void 0:c.find(d=>{if(d.memberId===t)return d});return r&&(n=r),n}function Wh(e){const t=e==null?void 0:e.split(" ");return{firstName:t&&t[0]?t[0]:"",lastName:t&&t[1]?t[1]:""}}async function Iye(e){return new Promise(t=>{setTimeout(()=>{t(!0)},e)})}function jg(e){const t=Math.round((e+Number.EPSILON)*100)/100;return parseFloat(t.toString())}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Xq={id:"",name:"",age:"",entryDate:"",jobCenterAssurance:!1,memberType:"applicant",claimAsylumSeekerBenefits:!1,asylumSeekerBenefitsExpireDate:null,collectiveAccommodation:!1,commitmentDeclaration:!1,inStationaryFacility:!1,accommodationStartDate:null,accommodationEndDate:null,currentlyInEducation:!1,typeOfEducation:null,educationStartDate:null,educationEndDate:null,apprenticeshipBabEligible:!1,notLivingWithParentsForSocialReason:!1,parentsLiveSeparately:!1,distanceParentsToApprenticeshipGreater2h:!1,tripsHomePersonalCarDistance:null,tripsHomePublicTransportCosts:null,tripsHomeTypeOfTransport:null,costsWorkClothesCoveredByEmployer:!1,costsForBooks:!1,accommodationForTraining:!1,babBafogTrainingGrants:!1,apprenticeshipHousingType:null,apprenticeshipHousingDailyRate:null,apprenticeshipHousingSocialSupport:!1,apprenticeshipHousingSocialSupportIsCovered:!1,apprenticeshipHousingSocialSupportDailyRate:null,hasCostsForCommutes:!1,commutesPersonalCarDistance:null,commutesPublicTransportCosts:null,commutesTypeOfTransport:null,abilityToWorkThreeHoursPerDay:!1,hadAJobIn12Months:!1};function _q(e={}){const t=e.id??Kn();return{...Xq,...e,id:t}}var $q=function(t){return eV(t)&&!tV(t)};function eV(e){return!!e&&typeof e=="object"}function tV(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||rV(e)}var nV=typeof Symbol=="function"&&Symbol.for,aV=nV?Symbol.for("react.element"):60103;function rV(e){return e.$$typeof===aV}function iV(e){return Array.isArray(e)?[]:{}}function kb(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ip(iV(e),e,t):e}function sV(e,t,n){return e.concat(t).map(function(a){return kb(a,n)})}function lV(e,t,n){var a={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(r){a[r]=kb(e[r],n)}),Object.keys(t).forEach(function(r){!n.isMergeableObject(t[r])||!e[r]?a[r]=kb(t[r],n):a[r]=ip(e[r],t[r],n)}),a}function ip(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||sV,n.isMergeableObject=n.isMergeableObject||$q;var a=Array.isArray(t),r=Array.isArray(e),i=a===r;return i?a?n.arrayMerge(e,t,n):lV(e,t,n):kb(t,n)}ip.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(a,r){return ip(a,r,n)},{})};var hO=ip,L2=typeof global=="object"&&global&&global.Object===Object&&global,oV=typeof self=="object"&&self&&self.Object===Object&&self,hs=L2||oV||Function("return this")(),No=hs.Symbol,U2=Object.prototype,cV=U2.hasOwnProperty,uV=U2.toString,qh=No?No.toStringTag:void 0;function dV(e){var t=cV.call(e,qh),n=e[qh];try{e[qh]=void 0;var a=!0}catch{}var r=uV.call(e);return a&&(t?e[qh]=n:delete e[qh]),r}var hV=Object.prototype,fV=hV.toString;function pV(e){return fV.call(e)}var mV="[object Null]",gV="[object Undefined]",Bw=No?No.toStringTag:void 0;function su(e){return e==null?e===void 0?gV:mV:Bw&&Bw in Object(e)?dV(e):pV(e)}function k2(e,t){return function(n){return e(t(n))}}var A0=k2(Object.getPrototypeOf,Object);function lu(e){return e!=null&&typeof e=="object"}var bV="[object Object]",EV=Function.prototype,NV=Object.prototype,F2=EV.toString,xV=NV.hasOwnProperty,SV=F2.call(Object);function Pw(e){if(!lu(e)||su(e)!=bV)return!1;var t=A0(e);if(t===null)return!0;var n=xV.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&F2.call(n)==SV}var Hw=Array.isArray,Lw=Object.keys,IV=Object.prototype.hasOwnProperty,OV=typeof Element<"u";function fO(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Hw(e),a=Hw(t),r,i,l;if(n&&a){if(i=e.length,i!=t.length)return!1;for(r=i;r--!==0;)if(!fO(e[r],t[r]))return!1;return!0}if(n!=a)return!1;var o=e instanceof Date,c=t instanceof Date;if(o!=c)return!1;if(o&&c)return e.getTime()==t.getTime();var d=e instanceof RegExp,h=t instanceof RegExp;if(d!=h)return!1;if(d&&h)return e.toString()==t.toString();var f=Lw(e);if(i=f.length,i!==Lw(t).length)return!1;for(r=i;r--!==0;)if(!IV.call(t,f[r]))return!1;if(OV&&e instanceof Element&&t instanceof Element)return e===t;for(r=i;r--!==0;)if(l=f[r],!(l==="_owner"&&e.$$typeof)&&!fO(e[l],t[l]))return!1;return!0}return e!==e&&t!==t}var vV=function(t,n){try{return fO(t,n)}catch(a){if(a.message&&a.message.match(/stack|recursion/i)||a.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",a.name,a.message),!1;throw a}};const Ml=ar(vV);function TV(){this.__data__=[],this.size=0}function Y2(e,t){return e===t||e!==e&&t!==t}function GE(e,t){for(var n=e.length;n--;)if(Y2(e[n][0],t))return n;return-1}var AV=Array.prototype,yV=AV.splice;function wV(e){var t=this.__data__,n=GE(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():yV.call(t,n,1),--this.size,!0}function CV(e){var t=this.__data__,n=GE(t,e);return n<0?void 0:t[n][1]}function RV(e){return GE(this.__data__,e)>-1}function MV(e,t){var n=this.__data__,a=GE(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function ol(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=MK}var DK="[object Arguments]",jK="[object Array]",BK="[object Boolean]",PK="[object Date]",HK="[object Error]",LK="[object Function]",UK="[object Map]",kK="[object Number]",FK="[object Object]",YK="[object RegExp]",zK="[object Set]",GK="[object String]",WK="[object WeakMap]",qK="[object ArrayBuffer]",VK="[object DataView]",KK="[object Float32Array]",ZK="[object Float64Array]",JK="[object Int8Array]",QK="[object Int16Array]",XK="[object Int32Array]",_K="[object Uint8Array]",$K="[object Uint8ClampedArray]",eZ="[object Uint16Array]",tZ="[object Uint32Array]",Dn={};Dn[KK]=Dn[ZK]=Dn[JK]=Dn[QK]=Dn[XK]=Dn[_K]=Dn[$K]=Dn[eZ]=Dn[tZ]=!0;Dn[DK]=Dn[jK]=Dn[qK]=Dn[BK]=Dn[VK]=Dn[PK]=Dn[HK]=Dn[LK]=Dn[UK]=Dn[kK]=Dn[FK]=Dn[YK]=Dn[zK]=Dn[GK]=Dn[WK]=!1;function nZ(e){return lu(e)&&Z2(e.length)&&!!Dn[su(e)]}function y0(e){return function(t){return e(t)}}var J2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,jf=J2&&typeof module=="object"&&module&&!module.nodeType&&module,aZ=jf&&jf.exports===J2,Gx=aZ&&L2.process,Yd=function(){try{var e=jf&&jf.require&&jf.require("util").types;return e||Gx&&Gx.binding&&Gx.binding("util")}catch{}}(),Gw=Yd&&Yd.isTypedArray,rZ=Gw?y0(Gw):nZ,iZ=Object.prototype,sZ=iZ.hasOwnProperty;function Q2(e,t){var n=Jp(e),a=!n&&vK(e),r=!n&&!a&&K2(e),i=!n&&!a&&!r&&rZ(e),l=n||a||r||i,o=l?xK(e.length,String):[],c=o.length;for(var d in e)(t||sZ.call(e,d))&&!(l&&(d=="length"||r&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||RK(d,c)))&&o.push(d);return o}var lZ=Object.prototype;function w0(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lZ;return e===n}var oZ=k2(Object.keys,Object),cZ=Object.prototype,uZ=cZ.hasOwnProperty;function dZ(e){if(!w0(e))return oZ(e);var t=[];for(var n in Object(e))uZ.call(e,n)&&n!="constructor"&&t.push(n);return t}function X2(e){return e!=null&&Z2(e.length)&&!z2(e)}function C0(e){return X2(e)?Q2(e):dZ(e)}function hZ(e,t){return e&&qE(t,C0(t),e)}function fZ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pZ=Object.prototype,mZ=pZ.hasOwnProperty;function gZ(e){if(!Zp(e))return fZ(e);var t=w0(e),n=[];for(var a in e)a=="constructor"&&(t||!mZ.call(e,a))||n.push(a);return n}function R0(e){return X2(e)?Q2(e,!0):gZ(e)}function bZ(e,t){return e&&qE(t,R0(t),e)}var _2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ww=_2&&typeof module=="object"&&module&&!module.nodeType&&module,EZ=Ww&&Ww.exports===_2,qw=EZ?hs.Buffer:void 0,Vw=qw?qw.allocUnsafe:void 0;function NZ(e,t){if(t)return e.slice();var n=e.length,a=Vw?Vw(n):new e.constructor(n);return e.copy(a),a}function $2(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n=0)&&(n[r]=e[r]);return n}function dC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var nN=T.createContext(void 0);nN.displayName="FormikContext";var xQ=nN.Provider,SQ=nN.Consumer;function tt(){var e=T.useContext(nN);return e}var hC=function(t){return Array.isArray(t)&&t.length===0},dr=function(t){return typeof t=="function"},Eh=function(t){return t!==null&&typeof t=="object"},IQ=function(t){return String(Math.floor(Number(t)))===t},Wx=function(t){return Object.prototype.toString.call(t)==="[object String]"},pP=function(t){return T.Children.count(t)===0},qx=function(t){return Eh(t)&&dr(t.then)};function Ye(e,t,n,a){a===void 0&&(a=0);for(var r=cP(t);e&&a=0?[]:{}}}return(i===0?e:r)[l[i]]===n?e:(n===void 0?delete r[l[i]]:r[l[i]]=n,i===0&&n===void 0&&delete a[l[i]],a)}function mP(e,t,n,a){n===void 0&&(n=new WeakMap),a===void 0&&(a={});for(var r=0,i=Object.keys(e);r0?Ie.map(function(ie){return H(ie,Ye(ne,ie))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(re).then(function(ie){return ie.reduce(function(fe,Ge,Et){return Ge==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ge&&(fe=$i(fe,Ie[Et],Ge)),fe},{})})},[H]),W=T.useCallback(function(ne){return Promise.all([U(ne),m.validationSchema?L(ne):{},m.validate?B(ne):{}]).then(function(Ie){var re=Ie[0],ie=Ie[1],fe=Ie[2],Ge=hO.all([re,ie,fe],{arrayMerge:yQ});return Ge})},[m.validate,m.validationSchema,U,B,L]),z=zr(function(ne){return ne===void 0&&(ne=C.values),M({type:"SET_ISVALIDATING",payload:!0}),W(ne).then(function(Ie){return I.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:Ie})),Ie})});T.useEffect(function(){l&&I.current===!0&&Ml(g.current,m.initialValues)&&z(g.current)},[l,z]);var $=T.useCallback(function(ne){var Ie=ne&&ne.values?ne.values:g.current,re=ne&&ne.errors?ne.errors:b.current?b.current:m.initialErrors||{},ie=ne&&ne.touched?ne.touched:E.current?E.current:m.initialTouched||{},fe=ne&&ne.status?ne.status:S.current?S.current:m.initialStatus;g.current=Ie,b.current=re,E.current=ie,S.current=fe;var Ge=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!ne&&!!ne.isSubmitting,errors:re,touched:ie,status:fe,values:Ie,isValidating:!!ne&&!!ne.isValidating,submitCount:ne&&ne.submitCount&&typeof ne.submitCount=="number"?ne.submitCount:0}})};if(m.onReset){var Et=m.onReset(C.values,_t);qx(Et)?Et.then(Ge):Ge()}else Ge()},[m.initialErrors,m.initialStatus,m.initialTouched,m.onReset]);T.useEffect(function(){I.current===!0&&!Ml(g.current,m.initialValues)&&d&&(g.current=m.initialValues,$(),l&&z(g.current))},[d,m.initialValues,$,l,z]),T.useEffect(function(){d&&I.current===!0&&!Ml(b.current,m.initialErrors)&&(b.current=m.initialErrors||lc,M({type:"SET_ERRORS",payload:m.initialErrors||lc}))},[d,m.initialErrors]),T.useEffect(function(){d&&I.current===!0&&!Ml(E.current,m.initialTouched)&&(E.current=m.initialTouched||Km,M({type:"SET_TOUCHED",payload:m.initialTouched||Km}))},[d,m.initialTouched]),T.useEffect(function(){d&&I.current===!0&&!Ml(S.current,m.initialStatus)&&(S.current=m.initialStatus,M({type:"SET_STATUS",payload:m.initialStatus}))},[d,m.initialStatus,m.initialTouched]);var V=zr(function(ne){if(O.current[ne]&&dr(O.current[ne].validate)){var Ie=Ye(C.values,ne),re=O.current[ne].validate(Ie);return qx(re)?(M({type:"SET_ISVALIDATING",payload:!0}),re.then(function(ie){return ie}).then(function(ie){M({type:"SET_FIELD_ERROR",payload:{field:ne,value:ie}}),M({type:"SET_ISVALIDATING",payload:!1})})):(M({type:"SET_FIELD_ERROR",payload:{field:ne,value:re}}),Promise.resolve(re))}else if(m.validationSchema)return M({type:"SET_ISVALIDATING",payload:!0}),L(C.values,ne).then(function(ie){return ie}).then(function(ie){M({type:"SET_FIELD_ERROR",payload:{field:ne,value:Ye(ie,ne)}}),M({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),F=T.useCallback(function(ne,Ie){var re=Ie.validate;O.current[ne]={validate:re}},[]),te=T.useCallback(function(ne){delete O.current[ne]},[]),se=zr(function(ne,Ie){M({type:"SET_TOUCHED",payload:ne});var re=Ie===void 0?r:Ie;return re?z(C.values):Promise.resolve()}),pe=T.useCallback(function(ne){M({type:"SET_ERRORS",payload:ne})},[]),be=zr(function(ne,Ie){var re=dr(ne)?ne(C.values):ne;M({type:"SET_VALUES",payload:re});var ie=Ie===void 0?n:Ie;return ie?z(re):Promise.resolve()}),we=T.useCallback(function(ne,Ie){M({type:"SET_FIELD_ERROR",payload:{field:ne,value:Ie}})},[]),ve=zr(function(ne,Ie,re){M({type:"SET_FIELD_VALUE",payload:{field:ne,value:Ie}});var ie=re===void 0?n:re;return ie?z($i(C.values,ne,Ie)):Promise.resolve()}),Ue=T.useCallback(function(ne,Ie){var re=Ie,ie=ne,fe;if(!Wx(ne)){ne.persist&&ne.persist();var Ge=ne.target?ne.target:ne.currentTarget,Et=Ge.type,It=Ge.name,dt=Ge.id,ea=Ge.value,ye=Ge.checked,Le=Ge.outerHTML,je=Ge.options,Ht=Ge.multiple;re=Ie||It||dt,ie=/number|range/.test(Et)?(fe=parseFloat(ea),isNaN(fe)?"":fe):/checkbox/.test(Et)?CQ(Ye(C.values,re),ye,ea):je&&Ht?wQ(je):ea}re&&ve(re,ie)},[ve,C.values]),Re=zr(function(ne){if(Wx(ne))return function(Ie){return Ue(Ie,ne)};Ue(ne)}),ue=zr(function(ne,Ie,re){Ie===void 0&&(Ie=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:ne,value:Ie}});var ie=re===void 0?r:re;return ie?z(C.values):Promise.resolve()}),ze=T.useCallback(function(ne,Ie){ne.persist&&ne.persist();var re=ne.target,ie=re.name,fe=re.id,Ge=re.outerHTML,Et=Ie||ie||fe;ue(Et,!0)},[ue]),Qe=zr(function(ne){if(Wx(ne))return function(Ie){return ze(Ie,ne)};ze(ne)}),me=T.useCallback(function(ne){dr(ne)?M({type:"SET_FORMIK_STATE",payload:ne}):M({type:"SET_FORMIK_STATE",payload:function(){return ne}})},[]),it=T.useCallback(function(ne){M({type:"SET_STATUS",payload:ne})},[]),En=T.useCallback(function(ne){M({type:"SET_ISSUBMITTING",payload:ne})},[]),mt=zr(function(){return M({type:"SUBMIT_ATTEMPT"}),z().then(function(ne){var Ie=ne instanceof Error,re=!Ie&&Object.keys(ne).length===0;if(re){var ie;try{if(ie=nn(),ie===void 0)return}catch(fe){throw fe}return Promise.resolve(ie).then(function(fe){return I.current&&M({type:"SUBMIT_SUCCESS"}),fe}).catch(function(fe){if(I.current)throw M({type:"SUBMIT_FAILURE"}),fe})}else if(I.current&&(M({type:"SUBMIT_FAILURE"}),Ie))throw ne})}),Vt=zr(function(ne){ne&&ne.preventDefault&&dr(ne.preventDefault)&&ne.preventDefault(),ne&&ne.stopPropagation&&dr(ne.stopPropagation)&&ne.stopPropagation(),mt().catch(function(Ie){console.warn("Warning: An unhandled error was caught from submitForm()",Ie)})}),_t={resetForm:$,validateForm:z,validateField:V,setErrors:pe,setFieldError:we,setFieldTouched:ue,setFieldValue:ve,setStatus:it,setSubmitting:En,setTouched:se,setValues:be,setFormikState:me,submitForm:mt},nn=zr(function(){return h(C.values,_t)}),Ee=zr(function(ne){ne&&ne.preventDefault&&dr(ne.preventDefault)&&ne.preventDefault(),ne&&ne.stopPropagation&&dr(ne.stopPropagation)&&ne.stopPropagation(),$()}),Ne=T.useCallback(function(ne){return{value:Ye(C.values,ne),error:Ye(C.errors,ne),touched:!!Ye(C.touched,ne),initialValue:Ye(g.current,ne),initialTouched:!!Ye(E.current,ne),initialError:Ye(b.current,ne)}},[C.errors,C.touched,C.values]),Ze=T.useCallback(function(ne){return{setValue:function(re,ie){return ve(ne,re,ie)},setTouched:function(re,ie){return ue(ne,re,ie)},setError:function(re){return we(ne,re)}}},[ve,ue,we]),zt=T.useCallback(function(ne){var Ie=Eh(ne),re=Ie?ne.name:ne,ie=Ye(C.values,re),fe={name:re,value:ie,onChange:Re,onBlur:Qe};if(Ie){var Ge=ne.type,Et=ne.value,It=ne.as,dt=ne.multiple;Ge==="checkbox"?Et===void 0?fe.checked=!!ie:(fe.checked=!!(Array.isArray(ie)&&~ie.indexOf(Et)),fe.value=Et):Ge==="radio"?(fe.checked=ie===Et,fe.value=Et):It==="select"&&dt&&(fe.value=fe.value||[],fe.multiple=!0)}return fe},[Qe,Re,C.values]),yn=T.useMemo(function(){return!Ml(g.current,C.values)},[g.current,C.values]),Ln=T.useMemo(function(){return typeof o<"u"?yn?C.errors&&Object.keys(C.errors).length===0:o!==!1&&dr(o)?o(m):o:C.errors&&Object.keys(C.errors).length===0},[o,yn,C.errors,m]),St=Zn({},C,{initialValues:g.current,initialErrors:b.current,initialTouched:E.current,initialStatus:S.current,handleBlur:Qe,handleChange:Re,handleReset:Ee,handleSubmit:Vt,resetForm:$,setErrors:pe,setFormikState:me,setFieldTouched:ue,setFieldValue:ve,setFieldError:we,setStatus:it,setSubmitting:En,setTouched:se,setValues:be,submitForm:mt,validateForm:z,validateField:V,isValid:Ln,dirty:yn,unregisterField:te,registerField:F,getFieldProps:zt,getFieldMeta:Ne,getFieldHelpers:Ze,validateOnBlur:r,validateOnChange:n,validateOnMount:l});return St}function fs(e){var t=vQ(e),n=e.component,a=e.children,r=e.render,i=e.innerRef;return T.useImperativeHandle(i,function(){return t}),T.createElement(xQ,{value:t},n?T.createElement(n,t):r?r(t):a?dr(a)?a(t):pP(a)?null:T.Children.only(a):null)}function TQ(e){var t={};if(e.inner){if(e.inner.length===0)return $i(t,e.path,e.message);for(var r=e.inner,n=Array.isArray(r),a=0,r=n?r:r[Symbol.iterator]();;){var i;if(n){if(a>=r.length)break;i=r[a++]}else{if(a=r.next(),a.done)break;i=a.value}var l=i;Ye(t,l.path)||(t=$i(t,l.path,l.message))}}return t}function AQ(e,t,n,a){n===void 0&&(n=!1);var r=EO(e);return t[n?"validateSync":"validate"](r,{abortEarly:!1,context:a||r})}function EO(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var a=String(n);Array.isArray(e[a])===!0?t[a]=e[a].map(function(r){return Array.isArray(r)===!0||Pw(r)?EO(r):r!==""?r:void 0}):Pw(e[a])?t[a]=EO(e[a]):t[a]=e[a]!==""?e[a]:void 0}return t}function yQ(e,t,n){var a=e.slice();return t.forEach(function(i,l){if(typeof a[l]>"u"){var o=n.clone!==!1,c=o&&n.isMergeableObject(i);a[l]=c?hO(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?a[l]=hO(e[l],i,n):e.indexOf(i)===-1&&a.push(i)}),a}function wQ(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function CQ(e,t,n){if(typeof e=="boolean")return!!t;var a=[],r=!1,i=-1;if(Array.isArray(e))a=e,i=e.indexOf(n),r=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!r?a.concat(n):r?a.slice(0,i).concat(a.slice(i+1)):a}var RQ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function zr(e){var t=T.useRef(e);return RQ(function(){t.current=e}),T.useCallback(function(){for(var n=arguments.length,a=new Array(n),r=0;ra?r:a},0);return Array.from(Zn({},t,{length:n+1}))}else return[]},fC=function(t,n){var a=typeof t=="function"?t:n;return function(r){if(Array.isArray(r)||Eh(r)){var i=Kc(r);return a(i)}return r}},gP=function(e){NQ(t,e);function t(a){var r;return r=e.call(this,a)||this,r.updateArrayField=function(i,l,o){var c=r.props,d=c.name,h=c.formik.setFormikState;h(function(f){var m=fC(o,i),g=fC(l,i),b=$i(f.values,d,i(Ye(f.values,d))),E=o?m(Ye(f.errors,d)):void 0,S=l?g(Ye(f.touched,d)):void 0;return hC(E)&&(E=void 0),hC(S)&&(S=void 0),Zn({},f,{values:b,errors:o?$i(f.errors,d,E):f.errors,touched:l?$i(f.touched,d,S):f.touched})})},r.push=function(i){return r.updateArrayField(function(l){return[].concat(Kc(l),[EQ(i)])},!1,!1)},r.handlePush=function(i){return function(){return r.push(i)}},r.swap=function(i,l){return r.updateArrayField(function(o){return jQ(o,i,l)},!0,!0)},r.handleSwap=function(i,l){return function(){return r.swap(i,l)}},r.move=function(i,l){return r.updateArrayField(function(o){return DQ(o,i,l)},!0,!0)},r.handleMove=function(i,l){return function(){return r.move(i,l)}},r.insert=function(i,l){return r.updateArrayField(function(o){return Vx(o,i,l)},function(o){return Vx(o,i,null)},function(o){return Vx(o,i,null)})},r.handleInsert=function(i,l){return function(){return r.insert(i,l)}},r.replace=function(i,l){return r.updateArrayField(function(o){return BQ(o,i,l)},!1,!1)},r.handleReplace=function(i,l){return function(){return r.replace(i,l)}},r.unshift=function(i){var l=-1;return r.updateArrayField(function(o){var c=o?[i].concat(o):[i];return l=c.length,c},function(o){return o?[null].concat(o):[null]},function(o){return o?[null].concat(o):[null]}),l},r.handleUnshift=function(i){return function(){return r.unshift(i)}},r.handleRemove=function(i){return function(){return r.remove(i)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(dC(r)),r.pop=r.pop.bind(dC(r)),r}var n=t.prototype;return n.componentDidUpdate=function(r){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Ml(Ye(r.formik.values,r.name),Ye(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(r){var i;return this.updateArrayField(function(l){var o=l?Kc(l):[];return i||(i=o[r]),dr(o.splice)&&o.splice(r,1),dr(o.every)&&o.every(function(c){return c===void 0})?[]:o},!0,!0),i},n.pop=function(){var r;return this.updateArrayField(function(i){var l=i.slice();return r||(r=l&&l.pop&&l.pop()),l},!0,!0),r},n.render=function(){var r={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,l=i.component,o=i.render,c=i.children,d=i.name,h=i.formik,f=Y0(h,["validate","validationSchema"]),m=Zn({},r,{form:f,name:d});return l?T.createElement(l,m):o?o(m):c?typeof c=="function"?c(m):pP(c)?null:T.Children.only(c):null},t}(T.Component);gP.defaultProps={validateOnChange:!0};var Si=MQ(gP);/** * @remix-run/router v1.15.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HQ(){return Math.random().toString(36).substr(2,8)}function mC(e,t){return{usr:e.state,key:e.key,idx:t}}function op(e,t,n,a){return n===void 0&&(n=null),Qn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?cl(t):t,{state:n,key:t&&t.key||a||HQ()})}function Zc(e){let{pathname:t="/",search:n="",hash:a=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function cl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}function LQ(e,t,n,a){a===void 0&&(a={});let{window:r=document.defaultView,v5Compat:i=!1}=a,l=r.history,o=na.Pop,c=null,d=h();d==null&&(d=0,l.replaceState(Qn({},l.state,{idx:d}),""));function h(){return(l.state||{idx:null}).idx}function f(){o=na.Pop;let S=h(),I=S==null?null:S-d;d=S,c&&c({action:o,location:E.location,delta:I})}function m(S,I){o=na.Push;let O=op(E.location,S,I);n&&n(O,S),d=h()+1;let v=mC(O,d),w=E.createHref(O);try{l.pushState(v,"",w)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;r.location.assign(w)}i&&c&&c({action:o,location:E.location,delta:1})}function g(S,I){o=na.Replace;let O=op(E.location,S,I);n&&n(O,S),d=h();let v=mC(O,d),w=E.createHref(O);l.replaceState(v,"",w),i&&c&&c({action:o,location:E.location,delta:0})}function b(S){let I=r.location.origin!=="null"?r.location.origin:r.location.href,O=typeof S=="string"?S:Zc(S);return O=O.replace(/ $/,"%20"),Ot(I,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,I)}let E={get action(){return o},get location(){return e(r,l)},listen(S){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(pC,f),c=S,()=>{r.removeEventListener(pC,f),c=null}},createHref(S){return t(r,S)},createURL:b,encodeLocation(S){let I=b(S);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:m,replace:g,go(S){return l.go(S)}};return E}var Jn;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Jn||(Jn={}));const UQ=new Set(["lazy","caseSensitive","path","id","index","children"]);function kQ(e){return e.index===!0}function NO(e,t,n,a){return n===void 0&&(n=[]),a===void 0&&(a={}),e.map((r,i)=>{let l=[...n,i],o=typeof r.id=="string"?r.id:l.join("-");if(Ot(r.index!==!0||!r.children,"Cannot specify children on an index route"),Ot(!a[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),kQ(r)){let c=Qn({},r,t(r),{id:o});return a[o]=c,c}else{let c=Qn({},r,t(r),{id:o,children:void 0});return a[o]=c,r.children&&(c.children=NO(r.children,t,l,a)),c}})}function Zu(e,t,n){n===void 0&&(n="/");let a=typeof t=="string"?cl(t):t,r=Nh(a.pathname||"/",n);if(r==null)return null;let i=bP(e);YQ(i);let l=null;for(let o=0;l==null&&o{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};c.relativePath.startsWith("/")&&(Ot(c.relativePath.startsWith(a),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(a.length));let d=Zs([a,c.relativePath]),h=n.concat(c);i.children&&i.children.length>0&&(Ot(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),bP(i.children,t,h,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:ZQ(d,i.index),routesMeta:h})};return e.forEach((i,l)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))r(i,l);else for(let c of EP(i.path))r(i,l,c)}),t}function EP(e){let t=e.split("/");if(t.length===0)return[];let[n,...a]=t,r=n.endsWith("?"),i=n.replace(/\?$/,"");if(a.length===0)return r?[i,""]:[i];let l=EP(a.join("/")),o=[];return o.push(...l.map(c=>c===""?i:[i,c].join("/"))),r&&o.push(...l),o.map(c=>e.startsWith("/")&&c===""?"/":c)}function YQ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:JQ(t.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const zQ=/^:[\w-]+$/,GQ=3,WQ=2,qQ=1,VQ=10,KQ=-2,gC=e=>e==="*";function ZQ(e,t){let n=e.split("/"),a=n.length;return n.some(gC)&&(a+=KQ),t&&(a+=WQ),n.filter(r=>!gC(r)).reduce((r,i)=>r+(zQ.test(i)?GQ:i===""?qQ:VQ),a)}function JQ(e,t){return e.length===t.length&&e.slice(0,-1).every((a,r)=>a===t[r])?e[e.length-1]-t[t.length-1]:0}function QQ(e,t){let{routesMeta:n}=e,a={},r="/",i=[];for(let l=0;l{let{paramName:m,isOptional:g}=h;if(m==="*"){let E=o[f]||"";l=i.slice(0,i.length-E.length).replace(/(.)\/+$/,"$1")}const b=o[f];return g&&!b?d[m]=void 0:d[m]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:l,pattern:e}}function _Q(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,c)=>(a.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(a.push({paramName:"*"}),r+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":e!==""&&e!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function $Q(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Nh(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&a!=="/"?null:e.slice(n)||"/"}function eX(e,t){t===void 0&&(t="/");let{pathname:n,search:a="",hash:r=""}=typeof e=="string"?cl(e):e;return{pathname:n?n.startsWith("/")?n:tX(n,t):t,search:aX(a),hash:rX(r)}}function tX(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function Kx(e,t,n,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(a)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function NP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function aN(e,t){let n=NP(e);return t?n.map((a,r)=>r===e.length-1?a.pathname:a.pathnameBase):n.map(a=>a.pathnameBase)}function rN(e,t,n,a){a===void 0&&(a=!1);let r;typeof e=="string"?r=cl(e):(r=Qn({},e),Ot(!r.pathname||!r.pathname.includes("?"),Kx("?","pathname","search",r)),Ot(!r.pathname||!r.pathname.includes("#"),Kx("#","pathname","hash",r)),Ot(!r.search||!r.search.includes("#"),Kx("#","search","hash",r)));let i=e===""||r.pathname==="",l=i?"/":r.pathname,o;if(l==null)o=n;else{let f=t.length-1;if(!a&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),f-=1;r.pathname=m.join("/")}o=f>=0?t[f]:"/"}let c=eX(r,o),d=l&&l!=="/"&&l.endsWith("/"),h=(i||l===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}const Zs=e=>e.join("/").replace(/\/\/+/g,"/"),nX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aX=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rX=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class z0{constructor(t,n,a,r){r===void 0&&(r=!1),this.status=t,this.statusText=n||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}}function xP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const SP=["post","put","patch","delete"],iX=new Set(SP),sX=["get",...SP],lX=new Set(sX),oX=new Set([301,302,303,307,308]),cX=new Set([307,308]),Zx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uX={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Vh={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},IP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dX=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),OP="remix-router-transitions";function hX(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",a=!n;Ot(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r;if(e.mapRouteProperties)r=e.mapRouteProperties;else if(e.detectErrorBoundary){let X=e.detectErrorBoundary;r=ae=>({hasErrorBoundary:X(ae)})}else r=dX;let i={},l=NO(e.routes,r,void 0,i),o,c=e.basename||"/",d=Qn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),h=null,f=new Set,m=null,g=null,b=null,E=e.hydrationData!=null,S=Zu(l,e.history.location,c),I=null;if(S==null){let X=Vr(404,{pathname:e.history.location.pathname}),{matches:ae,route:Q}=vC(l);S=ae,I={[Q.id]:X}}let O,v=S.some(X=>X.route.lazy),w=S.some(X=>X.route.loader);if(v)O=!1;else if(!w)O=!0;else if(d.v7_partialHydration){let X=e.hydrationData?e.hydrationData.loaderData:null,ae=e.hydrationData?e.hydrationData.errors:null;O=S.every(Q=>Q.route.loader&&Q.route.loader.hydrate!==!0&&(X&&X[Q.route.id]!==void 0||ae&&ae[Q.route.id]!==void 0))}else O=e.hydrationData!=null;let D,C={historyAction:e.history.action,location:e.history.location,matches:S,initialized:O,navigation:Zx,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||I,fetchers:new Map,blockers:new Map},M=na.Pop,B=!1,L,H=!1,U=new Map,W=null,z=!1,$=!1,V=[],F=[],te=new Map,se=0,pe=-1,be=new Map,we=new Set,ve=new Map,Ue=new Map,Re=new Set,ue=new Map,ze=new Map,Qe=!1;function me(){if(h=e.history.listen(X=>{let{action:ae,location:Q,delta:Te}=X;if(Qe){Qe=!1;return}zd(ze.size===0||Te!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Oe=Ve({currentLocation:C.location,nextLocation:Q,historyAction:ae});if(Oe&&Te!=null){Qe=!0,e.history.go(Te*-1),Ht(Oe,{state:"blocked",location:Q,proceed(){Ht(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),e.history.go(Te)},reset(){let ke=new Map(C.blockers);ke.set(Oe,Vh),mt({blockers:ke})}});return}return Ee(ae,Q)}),n){OX(t,U);let X=()=>vX(t,U);t.addEventListener("pagehide",X),W=()=>t.removeEventListener("pagehide",X)}return C.initialized||Ee(na.Pop,C.location,{initialHydration:!0}),D}function it(){h&&h(),W&&W(),f.clear(),L&&L.abort(),C.fetchers.forEach((X,ae)=>Ge(ae)),C.blockers.forEach((X,ae)=>je(ae))}function En(X){return f.add(X),()=>f.delete(X)}function mt(X,ae){ae===void 0&&(ae={}),C=Qn({},C,X);let Q=[],Te=[];d.v7_fetcherPersist&&C.fetchers.forEach((Oe,ke)=>{Oe.state==="idle"&&(Re.has(ke)?Te.push(ke):Q.push(ke))}),[...f].forEach(Oe=>Oe(C,{deletedFetchers:Te,unstable_viewTransitionOpts:ae.viewTransitionOpts,unstable_flushSync:ae.flushSync===!0})),d.v7_fetcherPersist&&(Q.forEach(Oe=>C.fetchers.delete(Oe)),Te.forEach(Oe=>Ge(Oe)))}function Vt(X,ae,Q){var Te,Oe;let{flushSync:ke}=Q===void 0?{}:Q,Be=C.actionData!=null&&C.navigation.formMethod!=null&&Ei(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Te=X.state)==null?void 0:Te._isRedirect)!==!0,Se;ae.actionData?Object.keys(ae.actionData).length>0?Se=ae.actionData:Se=null:Be?Se=C.actionData:Se=null;let Fe=ae.loaderData?OC(C.loaderData,ae.loaderData,ae.matches||[],ae.errors):C.loaderData,Me=C.blockers;Me.size>0&&(Me=new Map(Me),Me.forEach((Tt,gt)=>Me.set(gt,Vh)));let en=B===!0||C.navigation.formMethod!=null&&Ei(C.navigation.formMethod)&&((Oe=X.state)==null?void 0:Oe._isRedirect)!==!0;o&&(l=o,o=void 0),z||M===na.Pop||(M===na.Push?e.history.push(X,X.state):M===na.Replace&&e.history.replace(X,X.state));let nt;if(M===na.Pop){let Tt=U.get(C.location.pathname);Tt&&Tt.has(X.pathname)?nt={currentLocation:C.location,nextLocation:X}:U.has(X.pathname)&&(nt={currentLocation:X,nextLocation:C.location})}else if(H){let Tt=U.get(C.location.pathname);Tt?Tt.add(X.pathname):(Tt=new Set([X.pathname]),U.set(C.location.pathname,Tt)),nt={currentLocation:C.location,nextLocation:X}}mt(Qn({},ae,{actionData:Se,loaderData:Fe,historyAction:M,location:X,initialized:!0,navigation:Zx,revalidation:"idle",restoreScrollPosition:Ct(X,ae.matches||C.matches),preventScrollReset:en,blockers:Me}),{viewTransitionOpts:nt,flushSync:ke===!0}),M=na.Pop,B=!1,H=!1,z=!1,$=!1,V=[],F=[]}async function _t(X,ae){if(typeof X=="number"){e.history.go(X);return}let Q=xO(C.location,C.matches,c,d.v7_prependBasename,X,d.v7_relativeSplatPath,ae==null?void 0:ae.fromRouteId,ae==null?void 0:ae.relative),{path:Te,submission:Oe,error:ke}=bC(d.v7_normalizeFormMethod,!1,Q,ae),Be=C.location,Se=op(C.location,Te,ae&&ae.state);Se=Qn({},Se,e.history.encodeLocation(Se));let Fe=ae&&ae.replace!=null?ae.replace:void 0,Me=na.Push;Fe===!0?Me=na.Replace:Fe===!1||Oe!=null&&Ei(Oe.formMethod)&&Oe.formAction===C.location.pathname+C.location.search&&(Me=na.Replace);let en=ae&&"preventScrollReset"in ae?ae.preventScrollReset===!0:void 0,nt=(ae&&ae.unstable_flushSync)===!0,Tt=Ve({currentLocation:Be,nextLocation:Se,historyAction:Me});if(Tt){Ht(Tt,{state:"blocked",location:Se,proceed(){Ht(Tt,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),_t(X,ae)},reset(){let gt=new Map(C.blockers);gt.set(Tt,Vh),mt({blockers:gt})}});return}return await Ee(Me,Se,{submission:Oe,pendingError:ke,preventScrollReset:en,replace:ae&&ae.replace,enableViewTransition:ae&&ae.unstable_viewTransition,flushSync:nt})}function nn(){if(Ie(),mt({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){Ee(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}Ee(M||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation})}}async function Ee(X,ae,Q){L&&L.abort(),L=null,M=X,z=(Q&&Q.startUninterruptedRevalidation)===!0,ht(C.location,C.matches),B=(Q&&Q.preventScrollReset)===!0,H=(Q&&Q.enableViewTransition)===!0;let Te=o||l,Oe=Q&&Q.overrideNavigation,ke=Zu(Te,ae,c),Be=(Q&&Q.flushSync)===!0;if(!ke){let gt=Vr(404,{pathname:ae.pathname}),{matches:pn,route:Mt}=vC(Te);ut(),Vt(ae,{matches:pn,loaderData:{},errors:{[Mt.id]:gt}},{flushSync:Be});return}if(C.initialized&&!$&&bX(C.location,ae)&&!(Q&&Q.submission&&Ei(Q.submission.formMethod))){Vt(ae,{matches:ke},{flushSync:Be});return}L=new AbortController;let Se=Zh(e.history,ae,L.signal,Q&&Q.submission),Fe,Me;if(Q&&Q.pendingError)Me={[Pf(ke).route.id]:Q.pendingError};else if(Q&&Q.submission&&Ei(Q.submission.formMethod)){let gt=await Ne(Se,ae,Q.submission,ke,{replace:Q.replace,flushSync:Be});if(gt.shortCircuited)return;Fe=gt.pendingActionData,Me=gt.pendingActionError,Oe=Jx(ae,Q.submission),Be=!1,Se=new Request(Se.url,{signal:Se.signal})}let{shortCircuited:en,loaderData:nt,errors:Tt}=await Ze(Se,ae,ke,Oe,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,Be,Fe,Me);en||(L=null,Vt(ae,Qn({matches:ke},Fe?{actionData:Fe}:{},{loaderData:nt,errors:Tt})))}async function Ne(X,ae,Q,Te,Oe){Oe===void 0&&(Oe={}),Ie();let ke=SX(ae,Q);mt({navigation:ke},{flushSync:Oe.flushSync===!0});let Be,Se=IO(Te,ae);if(!Se.route.action&&!Se.route.lazy)Be={type:Jn.error,error:Vr(405,{method:X.method,pathname:ae.pathname,routeId:Se.route.id})};else if(Be=await Kh("action",X,Se,Te,i,r,c,d.v7_relativeSplatPath),X.signal.aborted)return{shortCircuited:!0};if(Nc(Be)){let Fe;return Oe&&Oe.replace!=null?Fe=Oe.replace:Fe=Be.location===C.location.pathname+C.location.search,await St(C,Be,{submission:Q,replace:Fe}),{shortCircuited:!0}}if(Ju(Be)){let Fe=Pf(Te,Se.route.id);return(Oe&&Oe.replace)!==!0&&(M=na.Push),{pendingActionData:{},pendingActionError:{[Fe.route.id]:Be.error}}}if(Ec(Be))throw Vr(400,{type:"defer-action"});return{pendingActionData:{[Se.route.id]:Be.data}}}async function Ze(X,ae,Q,Te,Oe,ke,Be,Se,Fe,Me,en){let nt=Te||Jx(ae,Oe),Tt=Oe||ke||yC(nt),gt=o||l,[pn,Mt]=EC(e.history,C,Q,Tt,ae,d.v7_partialHydration&&Se===!0,$,V,F,Re,ve,we,gt,c,Me,en);if(ut(Nt=>!(Q&&Q.some(Yt=>Yt.route.id===Nt))||pn&&pn.some(Yt=>Yt.route.id===Nt)),pe=++se,pn.length===0&&Mt.length===0){let Nt=ea();return Vt(ae,Qn({matches:Q,loaderData:{},errors:en||null},Me?{actionData:Me}:{},Nt?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Fe}),{shortCircuited:!0}}if(!z&&(!d.v7_partialHydration||!Se)){Mt.forEach(Yt=>{let ba=C.fetchers.get(Yt.key),Yr=Jh(void 0,ba?ba.data:void 0);C.fetchers.set(Yt.key,Yr)});let Nt=Me||C.actionData;mt(Qn({navigation:nt},Nt?Object.keys(Nt).length===0?{actionData:null}:{actionData:Nt}:{},Mt.length>0?{fetchers:new Map(C.fetchers)}:{}),{flushSync:Fe})}Mt.forEach(Nt=>{te.has(Nt.key)&&It(Nt.key),Nt.controller&&te.set(Nt.key,Nt.controller)});let Gt=()=>Mt.forEach(Nt=>It(Nt.key));L&&L.signal.addEventListener("abort",Gt);let{results:ta,loaderResults:Gn,fetcherResults:Wn}=await ne(C.matches,Q,pn,Mt,X);if(X.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Gt),Mt.forEach(Nt=>te.delete(Nt.key));let Ga=TC(ta);if(Ga){if(Ga.idx>=pn.length){let Nt=Mt[Ga.idx-pn.length].key;we.add(Nt)}return await St(C,Ga.result,{replace:Be}),{shortCircuited:!0}}let{loaderData:ci,errors:Wa}=IC(C,Q,pn,Gn,en,Mt,Wn,ue);ue.forEach((Nt,Yt)=>{Nt.subscribe(ba=>{(ba||Nt.done)&&ue.delete(Yt)})});let Fr=ea(),ir=ye(pe),Ca=Fr||ir||Mt.length>0;return Qn({loaderData:ci,errors:Wa},Ca?{fetchers:new Map(C.fetchers)}:{})}function zt(X,ae,Q,Te){if(a)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");te.has(X)&&It(X);let Oe=(Te&&Te.unstable_flushSync)===!0,ke=o||l,Be=xO(C.location,C.matches,c,d.v7_prependBasename,Q,d.v7_relativeSplatPath,ae,Te==null?void 0:Te.relative),Se=Zu(ke,Be,c);if(!Se){ie(X,ae,Vr(404,{pathname:Be}),{flushSync:Oe});return}let{path:Fe,submission:Me,error:en}=bC(d.v7_normalizeFormMethod,!0,Be,Te);if(en){ie(X,ae,en,{flushSync:Oe});return}let nt=IO(Se,Fe);if(B=(Te&&Te.preventScrollReset)===!0,Me&&Ei(Me.formMethod)){yn(X,ae,Fe,nt,Se,Oe,Me);return}ve.set(X,{routeId:ae,path:Fe}),Ln(X,ae,Fe,nt,Se,Oe,Me)}async function yn(X,ae,Q,Te,Oe,ke,Be){if(Ie(),ve.delete(X),!Te.route.action&&!Te.route.lazy){let Yt=Vr(405,{method:Be.formMethod,pathname:Q,routeId:ae});ie(X,ae,Yt,{flushSync:ke});return}let Se=C.fetchers.get(X);re(X,IX(Be,Se),{flushSync:ke});let Fe=new AbortController,Me=Zh(e.history,Q,Fe.signal,Be);te.set(X,Fe);let en=se,nt=await Kh("action",Me,Te,Oe,i,r,c,d.v7_relativeSplatPath);if(Me.signal.aborted){te.get(X)===Fe&&te.delete(X);return}if(d.v7_fetcherPersist&&Re.has(X)){if(Nc(nt)||Ju(nt)){re(X,yl(void 0));return}}else{if(Nc(nt))if(te.delete(X),pe>en){re(X,yl(void 0));return}else return we.add(X),re(X,Jh(Be)),St(C,nt,{fetcherSubmission:Be});if(Ju(nt)){ie(X,ae,nt.error);return}}if(Ec(nt))throw Vr(400,{type:"defer-action"});let Tt=C.navigation.location||C.location,gt=Zh(e.history,Tt,Fe.signal),pn=o||l,Mt=C.navigation.state!=="idle"?Zu(pn,C.navigation.location,c):C.matches;Ot(Mt,"Didn't find any matches after fetcher action");let Gt=++se;be.set(X,Gt);let ta=Jh(Be,nt.data);C.fetchers.set(X,ta);let[Gn,Wn]=EC(e.history,C,Mt,Be,Tt,!1,$,V,F,Re,ve,we,pn,c,{[Te.route.id]:nt.data},void 0);Wn.filter(Yt=>Yt.key!==X).forEach(Yt=>{let ba=Yt.key,Yr=C.fetchers.get(ba),Ns=Jh(void 0,Yr?Yr.data:void 0);C.fetchers.set(ba,Ns),te.has(ba)&&It(ba),Yt.controller&&te.set(ba,Yt.controller)}),mt({fetchers:new Map(C.fetchers)});let Ga=()=>Wn.forEach(Yt=>It(Yt.key));Fe.signal.addEventListener("abort",Ga);let{results:ci,loaderResults:Wa,fetcherResults:Fr}=await ne(C.matches,Mt,Gn,Wn,gt);if(Fe.signal.aborted)return;Fe.signal.removeEventListener("abort",Ga),be.delete(X),te.delete(X),Wn.forEach(Yt=>te.delete(Yt.key));let ir=TC(ci);if(ir){if(ir.idx>=Gn.length){let Yt=Wn[ir.idx-Gn.length].key;we.add(Yt)}return St(C,ir.result)}let{loaderData:Ca,errors:Nt}=IC(C,C.matches,Gn,Wa,void 0,Wn,Fr,ue);if(C.fetchers.has(X)){let Yt=yl(nt.data);C.fetchers.set(X,Yt)}ye(Gt),C.navigation.state==="loading"&&Gt>pe?(Ot(M,"Expected pending action"),L&&L.abort(),Vt(C.navigation.location,{matches:Mt,loaderData:Ca,errors:Nt,fetchers:new Map(C.fetchers)})):(mt({errors:Nt,loaderData:OC(C.loaderData,Ca,Mt,Nt),fetchers:new Map(C.fetchers)}),$=!1)}async function Ln(X,ae,Q,Te,Oe,ke,Be){let Se=C.fetchers.get(X);re(X,Jh(Be,Se?Se.data:void 0),{flushSync:ke});let Fe=new AbortController,Me=Zh(e.history,Q,Fe.signal);te.set(X,Fe);let en=se,nt=await Kh("loader",Me,Te,Oe,i,r,c,d.v7_relativeSplatPath);if(Ec(nt)&&(nt=await AP(nt,Me.signal,!0)||nt),te.get(X)===Fe&&te.delete(X),!Me.signal.aborted){if(Re.has(X)){re(X,yl(void 0));return}if(Nc(nt))if(pe>en){re(X,yl(void 0));return}else{we.add(X),await St(C,nt);return}if(Ju(nt)){ie(X,ae,nt.error);return}Ot(!Ec(nt),"Unhandled fetcher deferred data"),re(X,yl(nt.data))}}async function St(X,ae,Q){let{submission:Te,fetcherSubmission:Oe,replace:ke}=Q===void 0?{}:Q;ae.revalidate&&($=!0);let Be=op(X.location,ae.location,{_isRedirect:!0});if(Ot(Be,"Expected a location on the redirect navigation"),n){let Tt=!1;if(ae.reloadDocument)Tt=!0;else if(IP.test(ae.location)){const gt=e.history.createURL(ae.location);Tt=gt.origin!==t.location.origin||Nh(gt.pathname,c)==null}if(Tt){ke?t.location.replace(ae.location):t.location.assign(ae.location);return}}L=null;let Se=ke===!0?na.Replace:na.Push,{formMethod:Fe,formAction:Me,formEncType:en}=X.navigation;!Te&&!Oe&&Fe&&Me&&en&&(Te=yC(X.navigation));let nt=Te||Oe;if(cX.has(ae.status)&&nt&&Ei(nt.formMethod))await Ee(Se,Be,{submission:Qn({},nt,{formAction:ae.location}),preventScrollReset:B});else{let Tt=Jx(Be,Te);await Ee(Se,Be,{overrideNavigation:Tt,fetcherSubmission:Oe,preventScrollReset:B})}}async function ne(X,ae,Q,Te,Oe){let ke=await Promise.all([...Q.map(Fe=>Kh("loader",Oe,Fe,ae,i,r,c,d.v7_relativeSplatPath)),...Te.map(Fe=>Fe.matches&&Fe.match&&Fe.controller?Kh("loader",Zh(e.history,Fe.path,Fe.controller.signal),Fe.match,Fe.matches,i,r,c,d.v7_relativeSplatPath):{type:Jn.error,error:Vr(404,{pathname:Fe.path})})]),Be=ke.slice(0,Q.length),Se=ke.slice(Q.length);return await Promise.all([AC(X,Q,Be,Be.map(()=>Oe.signal),!1,C.loaderData),AC(X,Te.map(Fe=>Fe.match),Se,Te.map(Fe=>Fe.controller?Fe.controller.signal:null),!0)]),{results:ke,loaderResults:Be,fetcherResults:Se}}function Ie(){$=!0,V.push(...ut()),ve.forEach((X,ae)=>{te.has(ae)&&(F.push(ae),It(ae))})}function re(X,ae,Q){Q===void 0&&(Q={}),C.fetchers.set(X,ae),mt({fetchers:new Map(C.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function ie(X,ae,Q,Te){Te===void 0&&(Te={});let Oe=Pf(C.matches,ae);Ge(X),mt({errors:{[Oe.route.id]:Q},fetchers:new Map(C.fetchers)},{flushSync:(Te&&Te.flushSync)===!0})}function fe(X){return d.v7_fetcherPersist&&(Ue.set(X,(Ue.get(X)||0)+1),Re.has(X)&&Re.delete(X)),C.fetchers.get(X)||uX}function Ge(X){let ae=C.fetchers.get(X);te.has(X)&&!(ae&&ae.state==="loading"&&be.has(X))&&It(X),ve.delete(X),be.delete(X),we.delete(X),Re.delete(X),C.fetchers.delete(X)}function Et(X){if(d.v7_fetcherPersist){let ae=(Ue.get(X)||0)-1;ae<=0?(Ue.delete(X),Re.add(X)):Ue.set(X,ae)}else Ge(X);mt({fetchers:new Map(C.fetchers)})}function It(X){let ae=te.get(X);Ot(ae,"Expected fetch controller: "+X),ae.abort(),te.delete(X)}function dt(X){for(let ae of X){let Q=fe(ae),Te=yl(Q.data);C.fetchers.set(ae,Te)}}function ea(){let X=[],ae=!1;for(let Q of we){let Te=C.fetchers.get(Q);Ot(Te,"Expected fetcher: "+Q),Te.state==="loading"&&(we.delete(Q),X.push(Q),ae=!0)}return dt(X),ae}function ye(X){let ae=[];for(let[Q,Te]of be)if(Te0}function Le(X,ae){let Q=C.blockers.get(X)||Vh;return ze.get(X)!==ae&&ze.set(X,ae),Q}function je(X){C.blockers.delete(X),ze.delete(X)}function Ht(X,ae){let Q=C.blockers.get(X)||Vh;Ot(Q.state==="unblocked"&&ae.state==="blocked"||Q.state==="blocked"&&ae.state==="blocked"||Q.state==="blocked"&&ae.state==="proceeding"||Q.state==="blocked"&&ae.state==="unblocked"||Q.state==="proceeding"&&ae.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+ae.state);let Te=new Map(C.blockers);Te.set(X,ae),mt({blockers:Te})}function Ve(X){let{currentLocation:ae,nextLocation:Q,historyAction:Te}=X;if(ze.size===0)return;ze.size>1&&zd(!1,"A router only supports one blocker at a time");let Oe=Array.from(ze.entries()),[ke,Be]=Oe[Oe.length-1],Se=C.blockers.get(ke);if(!(Se&&Se.state==="proceeding")&&Be({currentLocation:ae,nextLocation:Q,historyAction:Te}))return ke}function ut(X){let ae=[];return ue.forEach((Q,Te)=>{(!X||X(Te))&&(Q.cancel(),ae.push(Te),ue.delete(Te))}),ae}function st(X,ae,Q){if(m=X,b=ae,g=Q||null,!E&&C.navigation===Zx){E=!0;let Te=Ct(C.location,C.matches);Te!=null&&mt({restoreScrollPosition:Te})}return()=>{m=null,b=null,g=null}}function We(X,ae){return g&&g(X,ae.map(Te=>FQ(Te,C.loaderData)))||X.key}function ht(X,ae){if(m&&b){let Q=We(X,ae);m[Q]=b()}}function Ct(X,ae){if(m){let Q=We(X,ae),Te=m[Q];if(typeof Te=="number")return Te}return null}function $t(X){i={},o=NO(X,r,void 0,i)}return D={get basename(){return c},get future(){return d},get state(){return C},get routes(){return l},get window(){return t},initialize:me,subscribe:En,enableScrollRestoration:st,navigate:_t,fetch:zt,revalidate:nn,createHref:X=>e.history.createHref(X),encodeLocation:X=>e.history.encodeLocation(X),getFetcher:fe,deleteFetcher:Et,dispose:it,getBlocker:Le,deleteBlocker:je,_internalFetchControllers:te,_internalActiveDeferreds:ue,_internalSetRoutes:$t},D}function fX(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function xO(e,t,n,a,r,i,l,o){let c,d;if(l){c=[];for(let f of t)if(c.push(f),f.route.id===l){d=f;break}}else c=t,d=t[t.length-1];let h=rN(r||".",aN(c,i),Nh(e.pathname,n)||e.pathname,o==="path");return r==null&&(h.search=e.search,h.hash=e.hash),(r==null||r===""||r===".")&&d&&d.route.index&&!G0(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),a&&n!=="/"&&(h.pathname=h.pathname==="/"?n:Zs([n,h.pathname])),Zc(h)}function bC(e,t,n,a){if(!a||!fX(a))return{path:n};if(a.formMethod&&!xX(a.formMethod))return{path:n,error:Vr(405,{method:a.formMethod})};let r=()=>({path:n,error:Vr(400,{type:"invalid-body"})}),i=a.formMethod||"get",l=e?i.toUpperCase():i.toLowerCase(),o=TP(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!Ei(l))return r();let m=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((g,b)=>{let[E,S]=b;return""+g+E+"="+S+` `},""):String(a.body);return{path:n,submission:{formMethod:l,formAction:o,formEncType:a.formEncType,formData:void 0,json:void 0,text:m}}}else if(a.formEncType==="application/json"){if(!Ei(l))return r();try{let m=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:l,formAction:o,formEncType:a.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}Ot(typeof FormData=="function","FormData is not available in this environment");let c,d;if(a.formData)c=SO(a.formData),d=a.formData;else if(a.body instanceof FormData)c=SO(a.body),d=a.body;else if(a.body instanceof URLSearchParams)c=a.body,d=SC(c);else if(a.body==null)c=new URLSearchParams,d=new FormData;else try{c=new URLSearchParams(a.body),d=SC(c)}catch{return r()}let h={formMethod:l,formAction:o,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(Ei(h.formMethod))return{path:n,submission:h};let f=cl(n);return t&&f.search&&G0(f.search)&&c.append("index",""),f.search="?"+c,{path:Zc(f),submission:h}}function pX(e,t){let n=e;if(t){let a=e.findIndex(r=>r.route.id===t);a>=0&&(n=e.slice(0,a))}return n}function EC(e,t,n,a,r,i,l,o,c,d,h,f,m,g,b,E){let S=E?Object.values(E)[0]:b?Object.values(b)[0]:void 0,I=e.createURL(t.location),O=e.createURL(r),v=E?Object.keys(E)[0]:void 0,D=pX(n,v).filter((M,B)=>{let{route:L}=M;if(L.lazy)return!0;if(L.loader==null)return!1;if(i)return L.loader.hydrate?!0:t.loaderData[L.id]===void 0&&(!t.errors||t.errors[L.id]===void 0);if(mX(t.loaderData,t.matches[B],M)||o.some(W=>W===M.route.id))return!0;let H=t.matches[B],U=M;return NC(M,Qn({currentUrl:I,currentParams:H.params,nextUrl:O,nextParams:U.params},a,{actionResult:S,defaultShouldRevalidate:l||I.pathname+I.search===O.pathname+O.search||I.search!==O.search||vP(H,U)}))}),C=[];return h.forEach((M,B)=>{if(i||!n.some(z=>z.route.id===M.routeId)||d.has(B))return;let L=Zu(m,M.path,g);if(!L){C.push({key:B,routeId:M.routeId,path:M.path,matches:null,match:null,controller:null});return}let H=t.fetchers.get(B),U=IO(L,M.path),W=!1;f.has(B)?W=!1:c.includes(B)?W=!0:H&&H.state!=="idle"&&H.data===void 0?W=l:W=NC(U,Qn({currentUrl:I,currentParams:t.matches[t.matches.length-1].params,nextUrl:O,nextParams:n[n.length-1].params},a,{actionResult:S,defaultShouldRevalidate:l})),W&&C.push({key:B,routeId:M.routeId,path:M.path,matches:L,match:U,controller:new AbortController})}),[D,C]}function mX(e,t,n){let a=!t||n.route.id!==t.route.id,r=e[n.route.id]===void 0;return a||r}function vP(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function NC(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function xC(e,t,n){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let r=n[e.id];Ot(r,"No route found in manifest");let i={};for(let l in a){let c=r[l]!==void 0&&l!=="hasErrorBoundary";zd(!c,'Route "'+r.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!c&&!UQ.has(l)&&(i[l]=a[l])}Object.assign(r,i),Object.assign(r,Qn({},t(r),{lazy:void 0}))}async function Kh(e,t,n,a,r,i,l,o,c){c===void 0&&(c={});let d,h,f,m=E=>{let S,I=new Promise((O,v)=>S=v);return f=()=>S(),t.signal.addEventListener("abort",f),Promise.race([E({request:t,params:n.params,context:c.requestContext}),I])};try{let E=n.route[e];if(n.route.lazy)if(E){let S,I=await Promise.all([m(E).catch(O=>{S=O}),xC(n.route,i,r)]);if(S)throw S;h=I[0]}else if(await xC(n.route,i,r),E=n.route[e],E)h=await m(E);else if(e==="action"){let S=new URL(t.url),I=S.pathname+S.search;throw Vr(405,{method:t.method,pathname:I,routeId:n.route.id})}else return{type:Jn.data,data:void 0};else if(E)h=await m(E);else{let S=new URL(t.url),I=S.pathname+S.search;throw Vr(404,{pathname:I})}Ot(h!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(E){d=Jn.error,h=E}finally{f&&t.signal.removeEventListener("abort",f)}if(NX(h)){let E=h.status;if(oX.has(E)){let I=h.headers.get("Location");if(Ot(I,"Redirects returned/thrown from loaders/actions must have a Location header"),!IP.test(I))I=xO(new URL(t.url),a.slice(0,a.indexOf(n)+1),l,!0,I,o);else if(!c.isStaticRequest){let O=new URL(t.url),v=I.startsWith("//")?new URL(O.protocol+I):new URL(I),w=Nh(v.pathname,l)!=null;v.origin===O.origin&&w&&(I=v.pathname+v.search+v.hash)}if(c.isStaticRequest)throw h.headers.set("Location",I),h;return{type:Jn.redirect,status:E,location:I,revalidate:h.headers.get("X-Remix-Revalidate")!==null,reloadDocument:h.headers.get("X-Remix-Reload-Document")!==null}}if(c.isRouteRequest)throw{type:d===Jn.error?Jn.error:Jn.data,response:h};let S;try{let I=h.headers.get("Content-Type");I&&/\bapplication\/json\b/.test(I)?h.body==null?S=null:S=await h.json():S=await h.text()}catch(I){return{type:Jn.error,error:I}}return d===Jn.error?{type:d,error:new z0(E,h.statusText,S),headers:h.headers}:{type:Jn.data,data:S,statusCode:h.status,headers:h.headers}}if(d===Jn.error)return{type:d,error:h};if(EX(h)){var g,b;return{type:Jn.deferred,deferredData:h,statusCode:(g=h.init)==null?void 0:g.status,headers:((b=h.init)==null?void 0:b.headers)&&new Headers(h.init.headers)}}return{type:Jn.data,data:h}}function Zh(e,t,n,a){let r=e.createURL(TP(t)).toString(),i={signal:n};if(a&&Ei(a.formMethod)){let{formMethod:l,formEncType:o}=a;i.method=l.toUpperCase(),o==="application/json"?(i.headers=new Headers({"Content-Type":o}),i.body=JSON.stringify(a.json)):o==="text/plain"?i.body=a.text:o==="application/x-www-form-urlencoded"&&a.formData?i.body=SO(a.formData):i.body=a.formData}return new Request(r,i)}function SO(e){let t=new URLSearchParams;for(let[n,a]of e.entries())t.append(n,typeof a=="string"?a:a.name);return t}function SC(e){let t=new FormData;for(let[n,a]of e.entries())t.append(n,a);return t}function gX(e,t,n,a,r){let i={},l=null,o,c=!1,d={};return n.forEach((h,f)=>{let m=t[f].route.id;if(Ot(!Nc(h),"Cannot handle redirect results in processLoaderData"),Ju(h)){let g=Pf(e,m),b=h.error;a&&(b=Object.values(a)[0],a=void 0),l=l||{},l[g.route.id]==null&&(l[g.route.id]=b),i[m]=void 0,c||(c=!0,o=xP(h.error)?h.error.status:500),h.headers&&(d[m]=h.headers)}else Ec(h)?(r.set(m,h.deferredData),i[m]=h.deferredData.data):i[m]=h.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(o=h.statusCode),h.headers&&(d[m]=h.headers)}),a&&(l=a,i[Object.keys(a)[0]]=void 0),{loaderData:i,errors:l,statusCode:o||200,loaderHeaders:d}}function IC(e,t,n,a,r,i,l,o){let{loaderData:c,errors:d}=gX(t,n,a,r,o);for(let h=0;ha.route.id===t)+1):[...e]).reverse().find(a=>a.route.hasErrorBoundary===!0)||e[0]}function vC(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Vr(e,t){let{pathname:n,routeId:a,method:r,type:i}=t===void 0?{}:t,l="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(l="Bad Request",r&&n&&a?o="You made a "+r+' request to "'+n+'" but '+('did not provide a `loader` for route "'+a+'", ')+"so there is no way to handle the request.":i==="defer-action"?o="defer() is not supported in actions":i==="invalid-body"&&(o="Unable to encode submission body")):e===403?(l="Forbidden",o='Route "'+a+'" does not match URL "'+n+'"'):e===404?(l="Not Found",o='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",r&&n&&a?o="You made a "+r.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+a+'", ')+"so there is no way to handle the request.":r&&(o='Invalid request method "'+r.toUpperCase()+'"')),new z0(e||500,l,new Error(o),!0)}function TC(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Nc(n))return{result:n,idx:t}}}function TP(e){let t=typeof e=="string"?cl(e):e;return Zc(Qn({},t,{hash:""}))}function bX(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ec(e){return e.type===Jn.deferred}function Ju(e){return e.type===Jn.error}function Nc(e){return(e&&e.type)===Jn.redirect}function EX(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function NX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function xX(e){return lX.has(e.toLowerCase())}function Ei(e){return iX.has(e.toLowerCase())}async function AC(e,t,n,a,r,i){for(let l=0;lf.route.id===c.route.id),h=d!=null&&!vP(d,c)&&(i&&i[c.route.id])!==void 0;if(Ec(o)&&(r||h)){let f=a[l];Ot(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await AP(o,f,r).then(m=>{m&&(n[l]=m||n[l])})}}}async function AP(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Jn.data,data:e.deferredData.unwrappedData}}catch(r){return{type:Jn.error,error:r}}return{type:Jn.data,data:e.deferredData.data}}}function G0(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function IO(e,t){let n=typeof t=="string"?cl(t).search:t.search;if(e[e.length-1].route.index&&G0(n||""))return e[e.length-1];let a=NP(e);return a[a.length-1]}function yC(e){let{formMethod:t,formAction:n,formEncType:a,text:r,formData:i,json:l}=e;if(!(!t||!n||!a)){if(r!=null)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:void 0,text:r};if(i!=null)return{formMethod:t,formAction:n,formEncType:a,formData:i,json:void 0,text:void 0};if(l!==void 0)return{formMethod:t,formAction:n,formEncType:a,formData:void 0,json:l,text:void 0}}}function Jx(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SX(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Jh(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function IX(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function yl(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function OX(e,t){try{let n=e.sessionStorage.getItem(OP);if(n){let a=JSON.parse(n);for(let[r,i]of Object.entries(a||{}))i&&Array.isArray(i)&&t.set(r,new Set(i||[]))}}catch{}}function vX(e,t){if(t.size>0){let n={};for(let[a,r]of t)n[a]=[...r];try{e.sessionStorage.setItem(OP,JSON.stringify(n))}catch(a){zd(!1,"Failed to save applied view transitions in sessionStorage ("+a+").")}}}/** * React Router v6.22.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),T.useCallback(function(d,h){if(h===void 0&&(h={}),!o.current)return;if(typeof d=="number"){a.go(d);return}let f=rN(d,JSON.parse(l),i,h.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Zs([t,f.pathname])),(h.replace?a.replace:a.push)(f,h.state,h)},[t,a,l,i,e])}const yX=T.createContext(null);function Sh(e){let t=T.useContext(ps).outlet;return t&&T.createElement(yX.Provider,{value:e},t)}function RP(){let{matches:e}=T.useContext(ps),t=e[e.length-1];return t?t.params:{}}function MP(e,t){let{relative:n}=t===void 0?{}:t,{future:a}=T.useContext(yo),{matches:r}=T.useContext(ps),{pathname:i}=du(),l=JSON.stringify(aN(r,a.v7_relativeSplatPath));return T.useMemo(()=>rN(e,JSON.parse(l),i,n==="path"),[e,l,i,n])}function wX(e,t,n,a){xh()||Ot(!1);let{navigator:r}=T.useContext(yo),{matches:i}=T.useContext(ps),l=i[i.length-1],o=l?l.params:{};l&&l.pathname;let c=l?l.pathnameBase:"/";l&&l.route;let d=du(),h;if(t){var f;let S=typeof t=="string"?cl(t):t;c==="/"||(f=S.pathname)!=null&&f.startsWith(c)||Ot(!1),h=S}else h=d;let m=h.pathname||"/",g=m;if(c!=="/"){let S=c.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(S.length).join("/")}let b=Zu(e,{pathname:g}),E=jX(b&&b.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:Zs([c,r.encodeLocation?r.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?c:Zs([c,r.encodeLocation?r.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,a);return t&&E?T.createElement(sN.Provider,{value:{location:cp({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:na.Pop}},E):E}function CX(){let e=BP(),t=xP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:r},n):null,null)}const RX=T.createElement(CX,null);class MX extends T.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?T.createElement(ps.Provider,{value:this.props.routeContext},T.createElement(wP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DX(e){let{routeContext:t,match:n,children:a}=e,r=T.useContext(iN);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(ps.Provider,{value:t},a)}function jX(e,t,n,a){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),a===void 0&&(a=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,o=(r=n)==null?void 0:r.errors;if(o!=null){let h=l.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id]));h>=0||Ot(!1),l=l.slice(0,Math.min(l.length,h+1))}let c=!1,d=-1;if(n&&a&&a.v7_partialHydration)for(let h=0;h=0?l=l.slice(0,d+1):l=[l[0]];break}}}return l.reduceRight((h,f,m)=>{let g,b=!1,E=null,S=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,E=f.route.errorElement||RX,c&&(d<0&&m===0?(UX("route-fallback",!1),b=!0,S=null):d===m&&(b=!0,S=f.route.hydrateFallbackElement||null)));let I=t.concat(l.slice(0,m+1)),O=()=>{let v;return g?v=E:b?v=S:f.route.Component?v=T.createElement(f.route.Component,null):f.route.element?v=f.route.element:v=h,T.createElement(DX,{match:f,routeContext:{outlet:h,matches:I,isDataRoute:n!=null},children:v})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?T.createElement(MX,{location:n.location,revalidation:n.revalidation,component:E,error:g,children:O(),routeContext:{outlet:null,matches:I,isDataRoute:!0}}):O()},null)}var DP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(DP||{}),Fb=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Fb||{});function BX(e){let t=T.useContext(iN);return t||Ot(!1),t}function PX(e){let t=T.useContext(yP);return t||Ot(!1),t}function HX(e){let t=T.useContext(ps);return t||Ot(!1),t}function jP(e){let t=HX(),n=t.matches[t.matches.length-1];return n.route.id||Ot(!1),n.route.id}function BP(){var e;let t=T.useContext(wP),n=PX(Fb.UseRouteError),a=jP(Fb.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[a]}function LX(){let{router:e}=BX(DP.UseNavigateStable),t=jP(Fb.UseNavigateStable),n=T.useRef(!1);return CP(()=>{n.current=!0}),T.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,cp({fromRouteId:t},i)))},[e,t])}const wC={};function UX(e,t,n){!t&&!wC[e]&&(wC[e]=!0)}function PP(e){let{to:t,replace:n,state:a,relative:r}=e;xh()||Ot(!1);let{future:i,static:l}=T.useContext(yo),{matches:o}=T.useContext(ps),{pathname:c}=du(),d=Yn(),h=rN(t,aN(o,i.v7_relativeSplatPath),c,r==="path"),f=JSON.stringify(h);return T.useEffect(()=>d(JSON.parse(f),{replace:n,state:a,relative:r}),[d,f,r,n,a]),null}function W0(e){return Sh(e.context)}function kX(e){let{basename:t="/",children:n=null,location:a,navigationType:r=na.Pop,navigator:i,static:l=!1,future:o}=e;xh()&&Ot(!1);let c=t.replace(/^\/*/,"/"),d=T.useMemo(()=>({basename:c,navigator:i,static:l,future:cp({v7_relativeSplatPath:!1},o)}),[c,o,i,l]);typeof a=="string"&&(a=cl(a));let{pathname:h="/",search:f="",hash:m="",state:g=null,key:b="default"}=a,E=T.useMemo(()=>{let S=Nh(h,c);return S==null?null:{location:{pathname:S,search:f,hash:m,state:g,key:b},navigationType:r}},[c,h,f,m,g,b,r]);return E==null?null:T.createElement(yo.Provider,{value:d},T.createElement(sN.Provider,{children:n,value:E}))}new Promise(()=>{});function FX(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:T.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:T.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:T.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.22.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[r]=e[r]);return n}function zX(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function GX(e,t){return e.button===0&&(!t||t==="_self")&&!zX(e)}const WX=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],qX="6";try{window.__reactRouterVersion=qX}catch{}function VX(e,t){return hX({basename:t==null?void 0:t.basename,future:up({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:PQ({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||KX(),routes:e,mapRouteProperties:FX,window:t==null?void 0:t.window}).initialize()}function KX(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=up({},t,{errors:ZX(t.errors)})),t}function ZX(e){if(!e)return null;let t=Object.entries(e),n={};for(let[a,r]of t)if(r&&r.__type==="RouteErrorResponse")n[a]=new z0(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let i=window[r.__subType];if(typeof i=="function")try{let l=new i(r.message);l.stack="",n[a]=l}catch{}}if(n[a]==null){let i=new Error(r.message);i.stack="",n[a]=i}}else n[a]=r;return n}const JX=T.createContext({isTransitioning:!1}),QX=T.createContext(new Map),XX="startTransition",CC=$g[XX],_X="flushSync",RC=E4[_X];function $X(e){CC?CC(e):e()}function Qh(e){RC?RC(e):e()}class e_{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",t(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}}function t_(e){let{fallbackElement:t,router:n,future:a}=e,[r,i]=T.useState(n.state),[l,o]=T.useState(),[c,d]=T.useState({isTransitioning:!1}),[h,f]=T.useState(),[m,g]=T.useState(),[b,E]=T.useState(),S=T.useRef(new Map),{v7_startTransition:I}=a||{},O=T.useCallback(M=>{I?$X(M):M()},[I]),v=T.useCallback((M,B)=>{let{deletedFetchers:L,unstable_flushSync:H,unstable_viewTransitionOpts:U}=B;L.forEach(z=>S.current.delete(z)),M.fetchers.forEach((z,$)=>{z.data!==void 0&&S.current.set($,z.data)});let W=n.window==null||typeof n.window.document.startViewTransition!="function";if(!U||W){H?Qh(()=>i(M)):O(()=>i(M));return}if(H){Qh(()=>{m&&(h&&h.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation})});let z=n.window.document.startViewTransition(()=>{Qh(()=>i(M))});z.finished.finally(()=>{Qh(()=>{f(void 0),g(void 0),o(void 0),d({isTransitioning:!1})})}),Qh(()=>g(z));return}m?(h&&h.resolve(),m.skipTransition(),E({state:M,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(o(M),d({isTransitioning:!0,flushSync:!1,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[n.window,m,h,S,O]);T.useLayoutEffect(()=>n.subscribe(v),[n,v]),T.useEffect(()=>{c.isTransitioning&&!c.flushSync&&f(new e_)},[c]),T.useEffect(()=>{if(h&&l&&n.window){let M=l,B=h.promise,L=n.window.document.startViewTransition(async()=>{O(()=>i(M)),await B});L.finished.finally(()=>{f(void 0),g(void 0),o(void 0),d({isTransitioning:!1})}),g(L)}},[O,l,h,n.window]),T.useEffect(()=>{h&&l&&r.location.key===l.location.key&&h.resolve()},[h,m,r.location,l]),T.useEffect(()=>{!c.isTransitioning&&b&&(o(b.state),d({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),E(void 0))},[c.isTransitioning,b]),T.useEffect(()=>{},[]);let w=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:M=>n.navigate(M),push:(M,B,L)=>n.navigate(M,{state:B,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(M,B,L)=>n.navigate(M,{replace:!0,state:B,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),D=n.basename||"/",C=T.useMemo(()=>({router:n,navigator:w,static:!1,basename:D}),[n,w,D]);return T.createElement(T.Fragment,null,T.createElement(iN.Provider,{value:C},T.createElement(yP.Provider,{value:r},T.createElement(QX.Provider,{value:S.current},T.createElement(JX.Provider,{value:c},T.createElement(kX,{basename:D,location:r.location,navigationType:r.historyAction,navigator:w,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},r.initialized||n.future.v7_partialHydration?T.createElement(n_,{routes:n.routes,future:n.future,state:r}):t))))),null)}function n_(e){let{routes:t,future:n,state:a}=e;return wX(t,void 0,a,n)}const a_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,OO=T.forwardRef(function(t,n){let{onClick:a,relative:r,reloadDocument:i,replace:l,state:o,target:c,to:d,preventScrollReset:h,unstable_viewTransition:f}=t,m=YX(t,WX),{basename:g}=T.useContext(yo),b,E=!1;if(typeof d=="string"&&r_.test(d)&&(b=d,a_))try{let v=new URL(window.location.href),w=d.startsWith("//")?new URL(v.protocol+d):new URL(d),D=Nh(w.pathname,g);w.origin===v.origin&&D!=null?d=D+w.search+w.hash:E=!0}catch{}let S=TX(d,{relative:r}),I=i_(d,{replace:l,state:o,target:c,preventScrollReset:h,relative:r,unstable_viewTransition:f});function O(v){a&&a(v),v.defaultPrevented||I(v)}return T.createElement("a",up({},m,{href:b||S,onClick:E||i?a:O,ref:n,target:c}))});var MC;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(MC||(MC={}));var DC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DC||(DC={}));function i_(e,t){let{target:n,replace:a,state:r,preventScrollReset:i,relative:l,unstable_viewTransition:o}=t===void 0?{}:t,c=Yn(),d=du(),h=MP(e,{relative:l});return T.useCallback(f=>{if(GX(f,n)){f.preventDefault();let m=a!==void 0?a:Zc(d)===Zc(h);c(e,{replace:m,state:r,preventScrollReset:i,relative:l,unstable_viewTransition:o})}},[d,c,h,a,r,n,e,i,l,o])}const s_=({title:e,titleId:t,...n},a)=>T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",width:"128px",height:"128px",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("path",{d:"M 64 6 C 32 6 6 32 6 64 C 6 96 32 122 64 122 C 96 122 122 96 122 64 C 122 32 96 6 64 6 z M 64 12 C 92.7 12 116 35.3 116 64 C 116 92.7 92.7 116 64 116 C 35.3 116 12 92.7 12 64 C 12 35.3 35.3 12 64 12 z M 64 30 A 9 9 0 0 0 64 48 A 9 9 0 0 0 64 30 z M 64 59 C 59 59 55 63 55 68 L 55 92 C 55 97 59 101 64 101 C 69 101 73 97 73 92 L 73 68 C 73 63 69 59 64 59 z"})),l_=T.forwardRef(s_),o_=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("mask",{id:"mask0_493_581",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},T.createElement("rect",{width:24,height:24,fill:"#D9D9D9"})),T.createElement("g",{mask:"url(#mask0_493_581)"},T.createElement("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"#1C1B1F"}))),lN=T.forwardRef(o_);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var qe=(e=>(e.HOME="/",e.ABOUT="/about",e.PRO="/pro",e.TEST="/test",e.DASHBOARD="/pro/dashboard",e.NOT_FOUND="/404",e.BLANKO_FORMS="/pro/blankoformulare",e.ADMIN_DASHBOARD="/pro/admin",e.HAUSHALTSMITGLIEBER="/pro/haushaltsmitglieder",e.MEHRBEDARF="/pro/mehrbedarf",e.WOHNKOSTEN="/pro/wohnkosten",e.WERBUNGSKOSTEN="/pro/werbungskosten",e.VERMÖGEN="/pro/vermogen",e.EINKOMMEN="/pro/einkommen",e.STAMMDATEN="/pro/stammdaten",e.ZUSAMMENFASSUNG="/pro/zusammenfassung",e.ERGEBNISSE="/pro/berechnung",e.FERTIGSTELLUNG="/pro/fertigstellung",e.RESET_PASSWORD="/reset-password",e.SIGN_IN="/sign-in",e.FORGOT_PASSWORD="/forgot-password",e.ORGANIZATIONS="/pro/admin",e.ORGANIZATION="/pro/admin/organization/:id?",e.DEPARTMENTS="/pro/admin",e.DEPARTMENT="/pro/admin/department/:id?",e.CONSULTANTS="/pro/admin",e.CONSULTANT="/pro/admin/consultant/:id?",e.CONSTANTS="/pro/admin",e.CONSTANT="/pro/admin/constant/:id?",e.POSTAL_CODES="/pro/admin",e.POSTAL_CODE="/pro/admin/postal-code/:id?",e))(qe||{});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function c_({children:e,link:t,...n}){const a=Qq(t||""),r=a?"_blank":"_self";return s.jsx(s.Fragment,{children:a?s.jsx("a",{target:r,...n,href:t,className:ge("text-pacific-blue ml-1 underline",n.className),children:e}):s.jsx(OO,{...n,target:r,to:t||"",className:ge("text-pacific-blue ml-1 underline",n.className),children:e})})}function u_(e,t,n){var a=this,r=T.useRef(null),i=T.useRef(0),l=T.useRef(null),o=T.useRef([]),c=T.useRef(),d=T.useRef(),h=T.useRef(e),f=T.useRef(!0);h.current=e;var m=typeof window<"u",g=!t&&t!==0&&m;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var b=!!(n=n||{}).leading,E=!("trailing"in n)||!!n.trailing,S="maxWait"in n,I="debounceOnServer"in n&&!!n.debounceOnServer,O=S?Math.max(+n.maxWait||0,t):null;T.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var v=T.useMemo(function(){var w=function(H){var U=o.current,W=c.current;return o.current=c.current=null,i.current=H,d.current=h.current.apply(W,U)},D=function(H,U){g&&cancelAnimationFrame(l.current),l.current=g?requestAnimationFrame(H):setTimeout(H,U)},C=function(H){if(!f.current)return!1;var U=H-r.current;return!r.current||U>=t||U<0||S&&H-i.current>=O},M=function(H){return l.current=null,E&&o.current?w(H):(o.current=c.current=null,d.current)},B=function H(){var U=Date.now();if(C(U))return M(U);if(f.current){var W=t-(U-r.current),z=S?Math.min(W,O-(U-i.current)):W;D(H,z)}},L=function(){if(m||I){var H=Date.now(),U=C(H);if(o.current=[].slice.call(arguments),c.current=a,r.current=H,U){if(!l.current&&f.current)return i.current=r.current,D(B,t),b?w(r.current):d.current;if(S)return D(B,t),w(r.current)}return l.current||D(B,t),d.current}};return L.cancel=function(){l.current&&(g?cancelAnimationFrame(l.current):clearTimeout(l.current)),i.current=0,o.current=r.current=c.current=l.current=null},L.isPending=function(){return!!l.current},L.flush=function(){return l.current?M(Date.now()):d.current},L},[b,S,t,O,E,g,m,I]);return v}function HP(e,t){return function(){return e.apply(t,arguments)}}const{toString:d_}=Object.prototype,{getPrototypeOf:q0}=Object,oN=(e=>t=>{const n=d_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ms=e=>(e=e.toLowerCase(),t=>oN(t)===e),cN=e=>t=>typeof t===e,{isArray:Ih}=Array,dp=cN("undefined");function h_(e){return e!==null&&!dp(e)&&e.constructor!==null&&!dp(e.constructor)&&ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LP=ms("ArrayBuffer");function f_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&LP(e.buffer),t}const p_=cN("string"),ai=cN("function"),UP=cN("number"),uN=e=>e!==null&&typeof e=="object",m_=e=>e===!0||e===!1,Bg=e=>{if(oN(e)!=="object")return!1;const t=q0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},g_=ms("Date"),b_=ms("File"),E_=ms("Blob"),N_=ms("FileList"),x_=e=>uN(e)&&ai(e.pipe),S_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ai(e.append)&&((t=oN(e))==="formdata"||t==="object"&&ai(e.toString)&&e.toString()==="[object FormData]"))},I_=ms("URLSearchParams"),O_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qp(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,r;if(typeof e!="object"&&(e=[e]),Ih(e))for(a=0,r=e.length;a0;)if(r=n[a],t===r.toLowerCase())return r;return null}const FP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,YP=e=>!dp(e)&&e!==FP;function vO(){const{caseless:e}=YP(this)&&this||{},t={},n=(a,r)=>{const i=e&&kP(t,r)||r;Bg(t[i])&&Bg(a)?t[i]=vO(t[i],a):Bg(a)?t[i]=vO({},a):Ih(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a(Qp(t,(r,i)=>{n&&ai(r)?e[i]=HP(r,n):e[i]=r},{allOwnKeys:a}),e),T_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),A_=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},y_=(e,t,n,a)=>{let r,i,l;const o={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)l=r[i],(!a||a(l,e,t))&&!o[l]&&(t[l]=e[l],o[l]=!0);e=n!==!1&&q0(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},w_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},C_=e=>{if(!e)return null;if(Ih(e))return e;let t=e.length;if(!UP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},R_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&q0(Uint8Array)),M_=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=a.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},D_=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},j_=ms("HTMLFormElement"),B_=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,r){return a.toUpperCase()+r}),jC=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),P_=ms("RegExp"),zP=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Qp(n,(r,i)=>{let l;(l=t(r,i,e))!==!1&&(a[i]=l||r)}),Object.defineProperties(e,a)},H_=e=>{zP(e,(t,n)=>{if(ai(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(ai(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},L_=(e,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return Ih(e)?a(e):a(String(e).split(t)),n},U_=()=>{},k_=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Qx="abcdefghijklmnopqrstuvwxyz",BC="0123456789",GP={DIGIT:BC,ALPHA:Qx,ALPHA_DIGIT:Qx+Qx.toUpperCase()+BC},F_=(e=16,t=GP.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n};function Y_(e){return!!(e&&ai(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const z_=e=>{const t=new Array(10),n=(a,r)=>{if(uN(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=Ih(a)?[]:{};return Qp(a,(l,o)=>{const c=n(l,r+1);!dp(c)&&(i[o]=c)}),t[r]=void 0,i}}return a};return n(e,0)},G_=ms("AsyncFunction"),W_=e=>e&&(uN(e)||ai(e))&&ai(e.then)&&ai(e.catch),he={isArray:Ih,isArrayBuffer:LP,isBuffer:h_,isFormData:S_,isArrayBufferView:f_,isString:p_,isNumber:UP,isBoolean:m_,isObject:uN,isPlainObject:Bg,isUndefined:dp,isDate:g_,isFile:b_,isBlob:E_,isRegExp:P_,isFunction:ai,isStream:x_,isURLSearchParams:I_,isTypedArray:R_,isFileList:N_,forEach:Qp,merge:vO,extend:v_,trim:O_,stripBOM:T_,inherits:A_,toFlatObject:y_,kindOf:oN,kindOfTest:ms,endsWith:w_,toArray:C_,forEachEntry:M_,matchAll:D_,isHTMLForm:j_,hasOwnProperty:jC,hasOwnProp:jC,reduceDescriptors:zP,freezeMethods:H_,toObjectSet:L_,toCamelCase:B_,noop:U_,toFiniteNumber:k_,findKey:kP,global:FP,isContextDefined:YP,ALPHABET:GP,generateString:F_,isSpecCompliantForm:Y_,toJSONObject:z_,isAsyncFn:G_,isThenable:W_};function kt(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}he.inherits(kt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:he.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const WP=kt.prototype,qP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qP[e]={value:e}});Object.defineProperties(kt,qP);Object.defineProperty(WP,"isAxiosError",{value:!0});kt.from=(e,t,n,a,r,i)=>{const l=Object.create(WP);return he.toFlatObject(e,l,function(c){return c!==Error.prototype},o=>o!=="isAxiosError"),kt.call(l,e.message,t,n,a,r),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const q_=null;function TO(e){return he.isPlainObject(e)||he.isArray(e)}function VP(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function PC(e,t,n){return e?e.concat(t).map(function(r,i){return r=VP(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function V_(e){return he.isArray(e)&&!e.some(TO)}const K_=he.toFlatObject(he,{},null,function(t){return/^is[A-Z]/.test(t)});function dN(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,S){return!he.isUndefined(S[E])});const a=n.metaTokens,r=n.visitor||h,i=n.dots,l=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(r))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(he.isDate(b))return b.toISOString();if(!c&&he.isBlob(b))throw new kt("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(b)||he.isTypedArray(b)?c&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function h(b,E,S){let I=b;if(b&&!S&&typeof b=="object"){if(he.endsWith(E,"{}"))E=a?E:E.slice(0,-2),b=JSON.stringify(b);else if(he.isArray(b)&&V_(b)||(he.isFileList(b)||he.endsWith(E,"[]"))&&(I=he.toArray(b)))return E=VP(E),I.forEach(function(v,w){!(he.isUndefined(v)||v===null)&&t.append(l===!0?PC([E],w,i):l===null?E:E+"[]",d(v))}),!1}return TO(b)?!0:(t.append(PC(S,E,i),d(b)),!1)}const f=[],m=Object.assign(K_,{defaultVisitor:h,convertValue:d,isVisitable:TO});function g(b,E){if(!he.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));f.push(b),he.forEach(b,function(I,O){(!(he.isUndefined(I)||I===null)&&r.call(t,I,he.isString(O)?O.trim():O,E,m))===!0&&g(I,E?E.concat(O):[O])}),f.pop()}}if(!he.isObject(e))throw new TypeError("data must be an object");return g(e),t}function HC(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function V0(e,t){this._pairs=[],e&&dN(e,this,t)}const KP=V0.prototype;KP.append=function(t,n){this._pairs.push([t,n])};KP.toString=function(t){const n=t?function(a){return t.call(this,a,HC)}:HC;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Z_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ZP(e,t,n){if(!t)return e;const a=n&&n.encode||Z_,r=n&&n.serialize;let i;if(r?i=r(t,n):i=he.isURLSearchParams(t)?t.toString():new V0(t,n).toString(a),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class LC{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){he.forEach(this.handlers,function(a){a!==null&&t(a)})}}const JP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},J_=typeof URLSearchParams<"u"?URLSearchParams:V0,Q_=typeof FormData<"u"?FormData:null,X_=typeof Blob<"u"?Blob:null,__={isBrowser:!0,classes:{URLSearchParams:J_,FormData:Q_,Blob:X_},protocols:["http","https","file","blob","url","data"]},QP=typeof window<"u"&&typeof document<"u",$_=(e=>QP&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),e$=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",t$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:QP,hasStandardBrowserEnv:$_,hasStandardBrowserWebWorkerEnv:e$},Symbol.toStringTag,{value:"Module"})),Xi={...t$,...__};function n$(e,t){return dN(e,new Xi.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return Xi.isNode&&he.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function a$(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function r$(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a=n.length;return l=!l&&he.isArray(r)?r.length:l,c?(he.hasOwnProp(r,l)?r[l]=[r[l],a]:r[l]=a,!o):((!r[l]||!he.isObject(r[l]))&&(r[l]=[]),t(n,a,r[l],i)&&he.isArray(r[l])&&(r[l]=r$(r[l])),!o)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(a,r)=>{t(a$(a),r,n,0)}),n}return null}function i$(e,t,n){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const K0={transitional:JP,adapter:["xhr","http"],transformRequest:[function(t,n){const a=n.getContentType()||"",r=a.indexOf("application/json")>-1,i=he.isObject(t);if(i&&he.isHTMLForm(t)&&(t=new FormData(t)),he.isFormData(t))return r?JSON.stringify(XP(t)):t;if(he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t))return t;if(he.isArrayBufferView(t))return t.buffer;if(he.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return n$(t,this.formSerializer).toString();if((o=he.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return dN(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),i$(t)):t}],transformResponse:[function(t){const n=this.transitional||K0.transitional,a=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&he.isString(t)&&(a&&!this.responseType||r)){const l=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(o){if(l)throw o.name==="SyntaxError"?kt.from(o,kt.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xi.classes.FormData,Blob:Xi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{K0.headers[e]={}});const Z0=K0,s$=he.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),l$=e=>{const t={};let n,a,r;return e&&e.split(` `).forEach(function(l){r=l.indexOf(":"),n=l.substring(0,r).trim().toLowerCase(),a=l.substring(r+1).trim(),!(!n||t[n]&&s$[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},UC=Symbol("internals");function Xh(e){return e&&String(e).trim().toLowerCase()}function Pg(e){return e===!1||e==null?e:he.isArray(e)?e.map(Pg):String(e)}function o$(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const c$=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xx(e,t,n,a,r){if(he.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!he.isString(t)){if(he.isString(a))return t.indexOf(a)!==-1;if(he.isRegExp(a))return a.test(t)}}function u$(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function d$(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(r,i,l){return this[a].call(this,t,r,i,l)},configurable:!0})})}class hN{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(o,c,d){const h=Xh(c);if(!h)throw new Error("header name must be a non-empty string");const f=he.findKey(r,h);(!f||r[f]===void 0||d===!0||d===void 0&&r[f]!==!1)&&(r[f||c]=Pg(o))}const l=(o,c)=>he.forEach(o,(d,h)=>i(d,h,c));return he.isPlainObject(t)||t instanceof this.constructor?l(t,n):he.isString(t)&&(t=t.trim())&&!c$(t)?l(l$(t),n):t!=null&&i(n,t,a),this}get(t,n){if(t=Xh(t),t){const a=he.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return o$(r);if(he.isFunction(n))return n.call(this,r,a);if(he.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Xh(t),t){const a=he.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Xx(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(l){if(l=Xh(l),l){const o=he.findKey(a,l);o&&(!n||Xx(a,a[o],o,n))&&(delete a[o],r=!0)}}return he.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||Xx(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return he.forEach(this,(r,i)=>{const l=he.findKey(a,i);if(l){n[l]=Pg(r),delete n[i];return}const o=t?u$(i):String(i).trim();o!==i&&delete n[i],n[o]=Pg(r),a[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return he.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&he.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[UC]=this[UC]={accessors:{}}).accessors,r=this.prototype;function i(l){const o=Xh(l);a[o]||(d$(r,l),a[o]=!0)}return he.isArray(t)?t.forEach(i):i(t),this}}hN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);he.reduceDescriptors(hN.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});he.freezeMethods(hN);const Js=hN;function _x(e,t){const n=this||Z0,a=t||n,r=Js.from(a.headers);let i=a.data;return he.forEach(e,function(o){i=o.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function _P(e){return!!(e&&e.__CANCEL__)}function Xp(e,t,n){kt.call(this,e??"canceled",kt.ERR_CANCELED,t,n),this.name="CanceledError"}he.inherits(Xp,kt,{__CANCEL__:!0});function h$(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new kt("Request failed with status code "+n.status,[kt.ERR_BAD_REQUEST,kt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const f$=Xi.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const l=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),he.isString(a)&&l.push("path="+a),he.isString(r)&&l.push("domain="+r),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p$(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function m$(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function $P(e,t){return e&&!p$(t)?m$(e,t):t}const g$=Xi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function r(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=r(window.location.href),function(l){const o=he.isString(l)?r(l):l;return o.protocol===a.protocol&&o.host===a.host}}():function(){return function(){return!0}}();function b$(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function E$(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=a[i];l||(l=d),n[r]=c,a[r]=d;let f=i,m=0;for(;f!==r;)m+=n[f++],f=f%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),d-l{const i=r.loaded,l=r.lengthComputable?r.total:void 0,o=i-n,c=a(o),d=i<=l;n=i;const h={loaded:i,total:l,progress:l?i/l:void 0,bytes:o,rate:c||void 0,estimated:c&&l&&d?(l-i)/c:void 0,event:r};h[t?"download":"upload"]=!0,e(h)}}const N$=typeof XMLHttpRequest<"u",x$=N$&&function(e){return new Promise(function(n,a){let r=e.data;const i=Js.from(e.headers).normalize();let{responseType:l,withXSRFToken:o}=e,c;function d(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let h;if(he.isFormData(r)){if(Xi.hasStandardBrowserEnv||Xi.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((h=i.getContentType())!==!1){const[E,...S]=h?h.split(";").map(I=>I.trim()).filter(Boolean):[];i.setContentType([E||"multipart/form-data",...S].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const E=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(E+":"+S))}const m=$P(e.baseURL,e.url);f.open(e.method.toUpperCase(),ZP(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const E=Js.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),I={data:!l||l==="text"||l==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:E,config:e,request:f};h$(function(v){n(v),d()},function(v){a(v),d()},I),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(a(new kt("Request aborted",kt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){a(new kt("Network Error",kt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const I=e.transitional||JP;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),a(new kt(S,I.clarifyTimeoutError?kt.ETIMEDOUT:kt.ECONNABORTED,e,f)),f=null},Xi.hasStandardBrowserEnv&&(o&&he.isFunction(o)&&(o=o(e)),o||o!==!1&&g$(m))){const E=e.xsrfHeaderName&&e.xsrfCookieName&&f$.read(e.xsrfCookieName);E&&i.set(e.xsrfHeaderName,E)}r===void 0&&i.setContentType(null),"setRequestHeader"in f&&he.forEach(i.toJSON(),function(S,I){f.setRequestHeader(I,S)}),he.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),l&&l!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",kC(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",kC(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=E=>{f&&(a(!E||E.type?new Xp(null,e,f):E),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const b=b$(m);if(b&&Xi.protocols.indexOf(b)===-1){a(new kt("Unsupported protocol "+b+":",kt.ERR_BAD_REQUEST,e));return}f.send(r||null)})},AO={http:q_,xhr:x$};he.forEach(AO,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const FC=e=>`- ${e}`,S$=e=>he.isFunction(e)||e===null||e===!1,eH={getAdapter:e=>{e=he.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i`adapter ${o} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since : `+i.map(FC).join(` `):" "+FC(i[0]):"as no adapter specified";throw new kt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a},adapters:AO};function $x(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xp(null,e)}function YC(e){return $x(e),e.headers=Js.from(e.headers),e.data=_x.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eH.getAdapter(e.adapter||Z0.adapter)(e).then(function(a){return $x(e),a.data=_x.call(e,e.transformResponse,a),a.headers=Js.from(a.headers),a},function(a){return _P(a)||($x(e),a&&a.response&&(a.response.data=_x.call(e,e.transformResponse,a.response),a.response.headers=Js.from(a.response.headers))),Promise.reject(a)})}const zC=e=>e instanceof Js?{...e}:e;function Gd(e,t){t=t||{};const n={};function a(d,h,f){return he.isPlainObject(d)&&he.isPlainObject(h)?he.merge.call({caseless:f},d,h):he.isPlainObject(h)?he.merge({},h):he.isArray(h)?h.slice():h}function r(d,h,f){if(he.isUndefined(h)){if(!he.isUndefined(d))return a(void 0,d,f)}else return a(d,h,f)}function i(d,h){if(!he.isUndefined(h))return a(void 0,h)}function l(d,h){if(he.isUndefined(h)){if(!he.isUndefined(d))return a(void 0,d)}else return a(void 0,h)}function o(d,h,f){if(f in t)return a(d,h);if(f in e)return a(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:o,headers:(d,h)=>r(zC(d),zC(h),!0)};return he.forEach(Object.keys(Object.assign({},e,t)),function(h){const f=c[h]||r,m=f(e[h],t[h],h);he.isUndefined(m)&&f!==o||(n[h]=m)}),n}const tH="1.6.8",J0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{J0[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const GC={};J0.transitional=function(t,n,a){function r(i,l){return"[Axios v"+tH+"] Transitional option '"+i+"'"+l+(a?". "+a:"")}return(i,l,o)=>{if(t===!1)throw new kt(r(l," has been removed"+(n?" in "+n:"")),kt.ERR_DEPRECATED);return n&&!GC[l]&&(GC[l]=!0,console.warn(r(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,o):!0}};function I$(e,t,n){if(typeof e!="object")throw new kt("options must be an object",kt.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],l=t[i];if(l){const o=e[i],c=o===void 0||l(o,i,e);if(c!==!0)throw new kt("option "+i+" must be "+c,kt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new kt("Unknown option "+i,kt.ERR_BAD_OPTION)}}const yO={assertOptions:I$,validators:J0},Ol=yO.validators;class Yb{constructor(t){this.defaults=t,this.interceptors={request:new LC,response:new LC}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=` `+i):a.stack=i}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gd(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&yO.assertOptions(a,{silentJSONParsing:Ol.transitional(Ol.boolean),forcedJSONParsing:Ol.transitional(Ol.boolean),clarifyTimeoutError:Ol.transitional(Ol.boolean)},!1),r!=null&&(he.isFunction(r)?n.paramsSerializer={serialize:r}:yO.assertOptions(r,{encode:Ol.function,serialize:Ol.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&he.merge(i.common,i[n.method]);i&&he.forEach(["delete","get","head","post","put","patch","common"],b=>{delete i[b]}),n.headers=Js.concat(l,i);const o=[];let c=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(c=c&&E.synchronous,o.unshift(E.fulfilled,E.rejected))});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let h,f=0,m;if(!c){const b=[YC.bind(this),void 0];for(b.unshift.apply(b,o),b.push.apply(b,d),m=b.length,h=Promise.resolve(n);f{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const l=new Promise(o=>{a.subscribe(o),i=o}).then(r);return l.cancel=function(){a.unsubscribe(i)},l},t(function(i,l,o){a.reason||(a.reason=new Xp(i,l,o),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Q0(function(r){t=r}),cancel:t}}}const O$=Q0;function v$(e){return function(n){return e.apply(null,n)}}function T$(e){return he.isObject(e)&&e.isAxiosError===!0}const wO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wO).forEach(([e,t])=>{wO[t]=e});const A$=wO;function nH(e){const t=new Hg(e),n=HP(Hg.prototype.request,t);return he.extend(n,Hg.prototype,t,{allOwnKeys:!0}),he.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return nH(Gd(e,r))},n}const Hn=nH(Z0);Hn.Axios=Hg;Hn.CanceledError=Xp;Hn.CancelToken=O$;Hn.isCancel=_P;Hn.VERSION=tH;Hn.toFormData=dN;Hn.AxiosError=kt;Hn.Cancel=Hn.CanceledError;Hn.all=function(t){return Promise.all(t)};Hn.spread=v$;Hn.isAxiosError=T$;Hn.mergeConfig=Gd;Hn.AxiosHeaders=Js;Hn.formToJSON=e=>XP(he.isHTMLForm(e)?new FormData(e):e);Hn.getAdapter=eH.getAdapter;Hn.HttpStatusCode=A$;Hn.default=Hn;function y$(e){return e}var X0=y$;const wo=ar(X0);function w$(e,t){for(var n=-1,a=e==null?0:e.length,r=Array(a);++ne[t]!==void 0).map(t=>`${t}_${t==="root"?Sne(e.root):e[t]}`).toString()}function One(e){const t=Ine(e);let n=CO.get(t);if(!n){const a=new Map;let r;const i=new IntersectionObserver(l=>{l.forEach(o=>{var c;const d=o.isIntersecting&&r.some(h=>o.intersectionRatio>=h);e.trackVisibility&&typeof o.isVisible>"u"&&(o.isVisible=d),(c=a.get(o.target))==null||c.forEach(h=>{h(d,o)})})},e);r=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:a},CO.set(t,n)}return n}function vne(e,t,n={},a=xne){if(typeof window.IntersectionObserver>"u"&&a!==void 0){const c=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),()=>{}}const{id:r,observer:i,elements:l}=One(n),o=l.get(e)||[];return l.has(e)||l.set(e,o),o.push(t),i.observe(e),function(){o.splice(o.indexOf(t),1),o.length===0&&(l.delete(e),i.unobserve(e)),l.size===0&&(i.disconnect(),CO.delete(r))}}function _p({threshold:e,delay:t,trackVisibility:n,rootMargin:a,root:r,triggerOnce:i,skip:l,initialInView:o,fallbackInView:c,onChange:d}={}){var h;const[f,m]=T.useState(null),g=T.useRef(),[b,E]=T.useState({inView:!!o,entry:void 0});g.current=d,T.useEffect(()=>{if(l||!f)return;let v;return v=vne(f,(w,D)=>{E({inView:w,entry:D}),g.current&&g.current(w,D),D.isIntersecting&&i&&v&&(v(),v=void 0)},{root:r,rootMargin:a,threshold:e,trackVisibility:n,delay:t},c),()=>{v&&v()}},[Array.isArray(e)?e.toString():e,f,r,a,i,l,n,c,t]);const S=(h=b.entry)==null?void 0:h.target,I=T.useRef();!f&&S&&!i&&!l&&I.current!==S&&(I.current=S,E({inView:!!o,entry:void 0}));const O=[m,b.inView,b.entry];return O.ref=O[0],O.inView=O[1],O.entry=O[2],O}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Tne="";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const dn=Hn.create({baseURL:Tne});dn.interceptors.request.use(async function(e){try{const t=tv.get(KU);t!=null&&t.accessToken&&(e.headers={...e.headers,Authorization:"Bearer "+(t==null?void 0:t.accessToken)})}catch(t){console.log("Error obtaining auth token in interceptor, ",t)}return e},function(e){return Promise.reject(e)});dn.interceptors.response.use(e=>e,async e=>{var n,a;const t=e==null?void 0:e.config;return(n=t==null?void 0:t.url)!=null&&n.includes("sign-in")||window.location.pathname==="/reset-password"||window.location.pathname==="/forgott-password"||((a=e==null?void 0:e.response)==null?void 0:a.status)===401&&window.location.pathname!=="/sign-in"&&window.location.pathname!=="/reset-password"&&window.location.pathname!=="/forgott-password"&&(window.location.href="/sign-in"),Promise.reject(e)});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var rt=(e=>(e.APPLICATION="/application",e.BURGERGELD_CALCULATION="/burgergeld-calculation",e.APPLICATION_DOCUMENTS="/application-documents",e.ASSETS="/assets",e.RESET_PASSWORD="/auth/reset-password",e.SIGN_IN="/auth/sign-in",e.REFRESH_TOKEN="/auth/refresh",e.RESET_REQUEST_PASSWORD="/auth/request-password-reset",e.CONSULTANTS="/consultants",e.DEPARTMENTS="/departments",e.ORGANIZATIONS="/organizations",e.CONSULTANT_WITH_USER="/auth/consultant",e.CONSTANTS="/constants",e.POSTAL_CODES="/postal-codes",e.POSTAL_CODE="/postal-code",e))(rt||{});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function $p({suspense:e,...t}){return(e?z5:G5)(t)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function hu({suspense:e,...t}){let n=e?Y5:rI;return t.enabled||(n=rI),n(t)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Ane(e){return dn.post(rt.CONSTANTS,e)}function yne(e,t){return dn.patch(`${rt.CONSTANTS}/${e}`,t)}function wne(e){return dn.delete(`${rt.CONSTANTS}/${e}`)}function uH(e,t){return dn.get(rt.CONSTANTS,{params:e,cancelToken:t==null?void 0:t.token})}function Cne(e){return dn.get(rt.CONSTANTS+"/"+e)}function Rne({name:e,types:t=[],type:n,limit:a,page:r,sort:i,...l}={}){const o=Co({name:e,limit:a,page:r,sort:i,type:n},wo);return hu({queryKey:[rt.CONSTANTS,...Object.values(o),...t],queryFn:async()=>await uH({...o,types:t}),...l})}function Oye({id:e,...t}){return hu({queryKey:[rt.CONSTANTS,e],queryFn:async()=>await Cne(e),...t})}function vye({...e}={}){return za({mutationFn:async t=>await Ane(t),...e})}function Tye({...e}={}){return za({mutationFn:async t=>await yne((t==null?void 0:t.id)||"",t),...e})}function Mne({...e}={}){return za({mutationFn:async t=>await wne(t),...e})}function Dne({sort:e,limit:t,type:n,types:a=[],search:r,...i}={}){const o=Hn.CancelToken.source(),c=Co({sort:e,limit:t,search:r,type:n},wo),d=[rt.CONSTANTS,...Object.values(c),...a],{data:h,fetchNextPage:f,...m}=$p({queryKey:d,queryFn:({pageParam:b})=>uH({...c,page:b,types:a},o),initialPageParam:1,...i,getNextPageParam:b=>{var E,S,I,O,v,w;if(((S=(E=b==null?void 0:b.data)==null?void 0:E.meta)==null?void 0:S.currentPage)<((O=(I=b==null?void 0:b.data)==null?void 0:I.meta)==null?void 0:O.totalPages))return Number(((w=(v=b==null?void 0:b.data)==null?void 0:v.meta)==null?void 0:w.currentPage)+1)}}),{ref:g}=_p({initialInView:!0,onChange:b=>{b&&f()}});return{data:h,ref:g,fetchNextPage:f,...m,list:T.useMemo(()=>h==null?void 0:h.pages.flatMap(b=>b.data.items),[h==null?void 0:h.pages])}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const dH=new T5;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function hH(e){const t={};return e==null||e.forEach(({type:n,name:a,value:r})=>{t[n]||(t[n]={});const i=(a||"").split(".");let l=t[n];i==null||i.forEach((o,c)=>{if(c===i.length-1){const d=parseFloat(r);l[o]=isNaN(d)?r:d}else l[o]||(l[o]={}),l=l[o]})}),t}function jne(){const e=dH.getQueriesData({queryKey:[rt.CONSTANTS],exact:!1});let t={};if(e.length&&e[0]){const n=e[0][1];if(n){const a=hH(n.data.items);a&&(t=a)}}return t}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function em(e,t=300){return u_(e,t)}function fH({isAllowed:e=!0,cb:t}){const n=T.useRef(null);return T.useEffect(()=>{if(e&&t){const a=r=>{r.key==="Escape"&&t()};return document.addEventListener("keyup",a,!0),()=>{document.removeEventListener("keyup",a,!0)}}},[e,t]),n}function iT(){const[e]=wh(),t=window.location.pathname.toLowerCase(),n=t.includes("reset-password")||t.includes("forgot-password")||t.includes("sign-in")||t.includes("auth"),a=!!e.user&&!n,{data:r}=Rne({limit:1e3,types:["grossNetWages","bruttoNetto"],suspense:a,enabled:a,retry:!1,placeholderData:l=>l});return T.useMemo(()=>hH(r==null?void 0:r.data.items),[r==null?void 0:r.data.items])}function fu({currentState:e,updateState:t}){const{values:n}=tt(),a=T.useRef(void 0),r=em(t,0);T.useEffect(()=>{const i={...n};Pa(a.current,i)||(a.current=i,r(i))},[r,e,n])}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function mN({children:e,className:t,classNames:n,onClose:a,closeOnOutsideClick:r=!0,parentRef:i,open:l}){fH({cb:a,isAllowed:r&&l});const o=T.useRef(null),[c,d]=T.useState(!1);if(T.useEffect(()=>{d(!0)},[]),!l||!c)return null;const h=(i==null?void 0:i.current)||document.getElementById("modal-root")||document.body;return EE.createPortal(s.jsx("div",{ref:o,onClick:f=>{r&&l&&f.target===o.current&&a&&a()},tabIndex:1,className:ge("bg-mirage fixed left-0 top-0 z-50 flex size-full items-center justify-center overflow-y-hidden bg-opacity-70 outline-none backdrop-blur-sm",t),children:s.jsx("div",{className:ge("flex flex-col",n==null?void 0:n.children),children:e})}),h)}const Bne=({title:e,titleId:t,...n},a)=>T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{margin:"auto",display:"block",shapeRendering:"auto"},width:"24px",height:"24px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("g",{transform:"rotate(0 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.9166666666666666s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(30 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.8333333333333334s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(60 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.75s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(90 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.6666666666666666s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(120 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.5833333333333334s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(150 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.5s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(180 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.4166666666666667s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(210 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.3333333333333333s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(240 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.25s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(270 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.16666666666666666s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(300 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"-0.08333333333333333s",repeatCount:"indefinite"}))),T.createElement("g",{transform:"rotate(330 50 50)"},T.createElement("rect",{x:48.5,y:24,rx:1.5,ry:1.68,width:3,height:12},T.createElement("animate",{attributeName:"opacity",values:"1;0",keyTimes:"0;1",dur:"1s",begin:"0s",repeatCount:"indefinite"})))),Pne=T.forwardRef(Bne);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sT({className:e,classNames:t,type:n="dots"}){return s.jsxs("div",{className:tn(Ae("flex h-full items-center justify-center",e)),children:[n==="dots"&&s.jsxs("div",{className:Ae("loading-dots flex items-center justify-center gap-1",t==null?void 0:t.spinner),children:[s.jsx("div",{className:tn(Ae("dot-wrp relative size-[10px] shrink-0 rounded-[10px] bg-white",t==null?void 0:t.dots)),children:s.jsx("div",{className:"loading-dots--dot absolute left-0 top-0"})}),s.jsx("div",{className:tn(Ae("dot-wrp relative size-[10px] shrink-0 rounded-[10px] bg-white",t==null?void 0:t.dots)),children:s.jsx("div",{className:"loading-dots--dot absolute left-0 top-0"})}),s.jsx("div",{className:tn(Ae("dot-wrp relative size-[10px] shrink-0 rounded-[10px] bg-white",t==null?void 0:t.dots)),children:s.jsx("div",{className:"loading-dots--dot absolute left-0 top-0"})})]}),n==="spinner"&&s.jsx(Pne,{className:Ae(" ",t==null?void 0:t.spinner)})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Di({children:e,fallback:t,className:n}){let a=s.jsx("div",{className:ge("flex flex-1 flex-col items-center justify-center",n),children:s.jsx(sT,{className:"size-[50px]"})});return t&&(a=t),s.jsx(T.Suspense,{fallback:a,children:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function pH({children:e,className:t,onClose:n,title:a}){return s.jsx(mN,{onClose:n,open:!0,className:ge("w-full",t),classNames:{children:"max-w-[487px] w-full"},closeOnOutsideClick:!1,children:s.jsx(Di,{children:s.jsxs("div",{className:"relative flex max-h-[90vh] w-full flex-1 flex-col gap-4 rounded-[20px] border-2 border-black bg-white px-12 py-8",children:[s.jsx(lN,{className:"absolute right-4 top-4 size-4 cursor-pointer",onClick:n}),s.jsx("div",{className:"flex w-full justify-center",children:a}),T.cloneElement(e,{className:ge("no-scrollbar overflow-auto")})]})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Je({leftIcon:e,rightIcon:t,text:n,classNames:a,children:r,loading:i,spinnerType:l,useDefaultHover:o=!0,...c}){return s.jsx("button",{...c,className:ge("rounded-[8px] bg-primaryButtonColor p-2 text-[18px] font-normal text-black",{"cursor-not-allowed opacity-50":c.disabled},c.className),children:s.jsxs("div",{className:ge("flex flex-row items-center justify-center gap-1",a==null?void 0:a.childrenContainer),children:[i?s.jsx(sT,{className:ge("h-6",a==null?void 0:a.loader),type:l}):"",!i&&s.jsx("span",{children:e}),!i&&s.jsx("p",{className:ge("",a==null?void 0:a.children),children:n||r}),!i&&s.jsx("span",{children:t})]})})}function Hne(e,t){if(Yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t||"default");if(Yf(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mH(e){var t=Hne(e,"string");return Yf(t)=="symbol"?t:String(t)}function pf(e,t,n){return t=mH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function _e(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}var Fne=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function gH(e){var t=e.defaultInputValue,n=t===void 0?"":t,a=e.defaultMenuIsOpen,r=a===void 0?!1:a,i=e.defaultValue,l=i===void 0?null:i,o=e.inputValue,c=e.menuIsOpen,d=e.onChange,h=e.onInputChange,f=e.onMenuClose,m=e.onMenuOpen,g=e.value,b=gs(e,Fne),E=T.useState(o!==void 0?o:n),S=Qs(E,2),I=S[0],O=S[1],v=T.useState(c!==void 0?c:r),w=Qs(v,2),D=w[0],C=w[1],M=T.useState(g!==void 0?g:l),B=Qs(M,2),L=B[0],H=B[1],U=T.useCallback(function(se,pe){typeof d=="function"&&d(se,pe),H(se)},[d]),W=T.useCallback(function(se,pe){var be;typeof h=="function"&&(be=h(se,pe)),O(be!==void 0?be:se)},[h]),z=T.useCallback(function(){typeof m=="function"&&m(),C(!0)},[m]),$=T.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),V=o!==void 0?o:I,F=c!==void 0?c:D,te=g!==void 0?g:L;return _e(_e({},b),{},{inputValue:V,menuIsOpen:F,onChange:U,onInputChange:W,onMenuClose:$,onMenuOpen:z,value:te})}function Yne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XC(e,t){for(var n=0;n0?Ma(Th,--gr):0,Wd--,ha===10&&(Wd=1,bN--),ha}function jr(){return ha=gr2||fp(ha)>3?"":" "}function cae(e,t){for(;--t&&jr()&&!(ha<48||ha>102||ha>57&&ha<65||ha>70&&ha<97););return tm(e,Lg()+(t<6&&es()==32&&jr()==32))}function DO(e){for(;jr();)switch(ha){case e:return gr;case 34:case 39:e!==34&&e!==39&&DO(ha);break;case 40:e===41&&DO(e);break;case 92:jr();break}return gr}function uae(e,t){for(;jr()&&e+ha!==57;)if(e+ha===84&&es()===47)break;return"/*"+tm(t,gr-1)+"*"+gN(e===47?e:jr())}function dae(e){for(;!fp(es());)jr();return tm(e,gr)}function hae(e){return OH(kg("",null,null,null,[""],e=IH(e),0,[0],e))}function kg(e,t,n,a,r,i,l,o,c){for(var d=0,h=0,f=l,m=0,g=0,b=0,E=1,S=1,I=1,O=0,v="",w=r,D=i,C=a,M=v;S;)switch(b=O,O=jr()){case 40:if(b!=108&&Ma(M,f-1)==58){MO(M+=Zt(Ug(O),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:M+=Ug(O);break;case 9:case 10:case 13:case 32:M+=oae(b);break;case 92:M+=cae(Lg()-1,7);continue;case 47:switch(es()){case 42:case 47:Jm(fae(uae(jr(),Lg()),t,n),c);break;default:M+="/"}break;case 123*E:o[d++]=zi(M)*I;case 125*E:case 59:case 0:switch(O){case 0:case 125:S=0;case 59+h:I==-1&&(M=Zt(M,/\f/g,"")),g>0&&zi(M)-f&&Jm(g>32?$C(M+";",a,n,f-1):$C(Zt(M," ","")+";",a,n,f-2),c);break;case 59:M+=";";default:if(Jm(C=_C(M,t,n,d,h,r,o,v,w=[],D=[],f),i),O===123)if(h===0)kg(M,t,C,C,w,i,f,o,D);else switch(m===99&&Ma(M,3)===110?100:m){case 100:case 108:case 109:case 115:kg(e,C,C,a&&Jm(_C(e,C,C,0,0,r,o,v,r,w=[],f),D),r,D,f,o,a?w:D);break;default:kg(M,C,C,C,[""],D,0,o,D)}}d=h=g=0,E=I=1,v=M="",f=l;break;case 58:f=1+zi(M),g=b;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&lae()==125)continue}switch(M+=gN(O),O*E){case 38:I=h>0?1:(M+="\f",-1);break;case 44:o[d++]=(zi(M)-1)*I,I=1;break;case 64:es()===45&&(M+=Ug(jr())),m=es(),h=f=zi(v=M+=dae(Lg())),O++;break;case 45:b===45&&zi(M)==2&&(E=0)}}return i}function _C(e,t,n,a,r,i,l,o,c,d,h){for(var f=r-1,m=r===0?i:[""],g=cT(m),b=0,E=0,S=0;b0?m[I]+" "+O:Zt(O,/&\f/g,m[I])))&&(c[S++]=v);return EN(e,t,n,r===0?lT:o,c,d,h)}function fae(e,t,n){return EN(e,t,n,EH,gN(sae()),hp(e,2,-2),0)}function $C(e,t,n,a){return EN(e,t,n,oT,hp(e,0,a),hp(e,a+1,-1),a)}function od(e,t){for(var n="",a=cT(e),r=0;r6)switch(Ma(e,t+1)){case 109:if(Ma(e,t+4)!==45)break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+Kt+"$2-$3$1"+Gb+(Ma(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~MO(e,"stretch")?vH(Zt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ma(e,t+1)!==115)break;case 6444:switch(Ma(e,zi(e)-3-(~MO(e,"!important")&&10))){case 107:return Zt(e,":",":"+Kt)+e;case 101:return Zt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Kt+(Ma(e,14)===45?"inline-":"")+"box$3$1"+Kt+"$2$3$1"+Ua+"$2box$3")+e}break;case 5936:switch(Ma(e,t+11)){case 114:return Kt+e+Ua+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Kt+e+Ua+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Kt+e+Ua+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Kt+e+Ua+e+e}return e}var Oae=function(t,n,a,r){if(t.length>-1&&!t.return)switch(t.type){case oT:t.return=vH(t.value,t.length);break;case NH:return od([_h(t,{value:Zt(t.value,"@","@"+Kt)})],r);case lT:if(t.length)return iae(t.props,function(i){switch(rae(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return od([_h(t,{props:[Zt(i,/:(read-\w+)/,":"+Gb+"$1")]})],r);case"::placeholder":return od([_h(t,{props:[Zt(i,/:(plac\w+)/,":"+Kt+"input-$1")]}),_h(t,{props:[Zt(i,/:(plac\w+)/,":"+Gb+"$1")]}),_h(t,{props:[Zt(i,/:(plac\w+)/,Ua+"input-$1")]})],r)}return""})}},vae=[Oae],Tae=function(t){var n=t.key;if(n==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(E){var S=E.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var r=t.stylisPlugins||vae,i={},l,o=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var S=E.getAttribute("data-emotion").split(" "),I=1;I=4;++a,r-=4)n=e.charCodeAt(a)&255|(e.charCodeAt(++a)&255)<<8|(e.charCodeAt(++a)&255)<<16|(e.charCodeAt(++a)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(a+2)&255)<<16;case 2:t^=(e.charCodeAt(a+1)&255)<<8;case 1:t^=e.charCodeAt(a)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rae={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mae=/[A-Z]|^ms/g,Dae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,AH=function(t){return t.charCodeAt(1)===45},tR=function(t){return t!=null&&typeof t!="boolean"},eS=bae(function(e){return AH(e)?e:e.replace(Mae,"-$&").toLowerCase()}),nR=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Dae,function(a,r,i){return Gi={name:r,styles:i,next:Gi},r})}return Rae[t]!==1&&!AH(t)&&typeof n=="number"&&n!==0?n+"px":n};function pp(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Gi={name:n.name,styles:n.styles,next:Gi},n.name;if(n.styles!==void 0){var a=n.next;if(a!==void 0)for(;a!==void 0;)Gi={name:a.name,styles:a.styles,next:Gi},a=a.next;var r=n.styles+";";return r}return jae(e,t,n)}case"function":{if(e!==void 0){var i=Gi,l=n(e);return Gi=i,pp(e,t,l)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function jae(e,t,n){var a="";if(Array.isArray(n))for(var r=0;r({x:e,y:e}),qae={left:"right",right:"left",bottom:"top",top:"bottom"},Vae={start:"end",end:"start"};function Kae(e,t,n){return Hc(e,qd(t,n))}function NN(e,t){return typeof e=="function"?e(t):e}function Vd(e){return e.split("-")[0]}function nm(e){return e.split("-")[1]}function Zae(e){return e==="x"?"y":"x"}function hT(e){return e==="y"?"height":"width"}const Jae=new Set(["top","bottom"]);function xc(e){return Jae.has(Vd(e))?"y":"x"}function fT(e){return Zae(xc(e))}function Qae(e,t,n){n===void 0&&(n=!1);const a=nm(e),r=fT(e),i=hT(r);let l=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=qb(l)),[l,qb(l)]}function Xae(e){const t=qb(e);return[BO(e),t,BO(t)]}function BO(e){return e.replace(/start|end/g,t=>Vae[t])}const rR=["left","right"],iR=["right","left"],_ae=["top","bottom"],$ae=["bottom","top"];function ere(e,t,n){switch(e){case"top":case"bottom":return n?t?iR:rR:t?rR:iR;case"left":case"right":return t?_ae:$ae;default:return[]}}function tre(e,t,n,a){const r=nm(e);let i=ere(Vd(e),n==="start",a);return r&&(i=i.map(l=>l+"-"+r),t&&(i=i.concat(i.map(BO)))),i}function qb(e){return e.replace(/left|right|bottom|top/g,t=>qae[t])}function nre(e){return{top:0,right:0,bottom:0,left:0,...e}}function CH(e){return typeof e!="number"?nre(e):{top:e,right:e,bottom:e,left:e}}function Vb(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function sR(e,t,n){let{reference:a,floating:r}=e;const i=xc(t),l=fT(t),o=hT(l),c=Vd(t),d=i==="y",h=a.x+a.width/2-r.width/2,f=a.y+a.height/2-r.height/2,m=a[o]/2-r[o]/2;let g;switch(c){case"top":g={x:h,y:a.y-r.height};break;case"bottom":g={x:h,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-r.width,y:f};break;default:g={x:a.x,y:a.y}}switch(nm(t)){case"start":g[l]-=m*(n&&d?-1:1);break;case"end":g[l]+=m*(n&&d?-1:1);break}return g}const are=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,o=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:f}=sR(d,a,c),m=a,g={},b=0;for(let E=0;E({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:i,platform:l,elements:o,middlewareData:c}=t,{element:d,padding:h=0}=NN(e,t)||{};if(d==null)return{};const f=CH(h),m={x:n,y:a},g=fT(r),b=hT(g),E=await l.getDimensions(d),S=g==="y",I=S?"top":"left",O=S?"bottom":"right",v=S?"clientHeight":"clientWidth",w=i.reference[b]+i.reference[g]-m[g]-i.floating[b],D=m[g]-i.reference[g],C=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let M=C?C[v]:0;(!M||!await(l.isElement==null?void 0:l.isElement(C)))&&(M=o.floating[v]||i.floating[b]);const B=w/2-D/2,L=M/2-E[b]/2-1,H=qd(f[I],L),U=qd(f[O],L),W=H,z=M-E[b]-U,$=M/2-E[b]/2+B,V=Kae(W,$,z),F=!c.arrow&&nm(r)!=null&&$!==V&&i.reference[b]/2-($$<=0)){var U,W;const $=(((U=i.flip)==null?void 0:U.index)||0)+1,V=M[$];if(V&&(!(f==="alignment"?O!==xc(V):!1)||H.every(se=>xc(se.placement)===O?se.overflows[0]>0:!0)))return{data:{index:$,overflows:H},reset:{placement:V}};let F=(W=H.filter(te=>te.overflows[0]<=0).sort((te,se)=>te.overflows[1]-se.overflows[1])[0])==null?void 0:W.placement;if(!F)switch(g){case"bestFit":{var z;const te=(z=H.filter(se=>{if(C){const pe=xc(se.placement);return pe===O||pe==="y"}return!0}).map(se=>[se.placement,se.overflows.filter(pe=>pe>0).reduce((pe,be)=>pe+be,0)]).sort((se,pe)=>se[1]-pe[1])[0])==null?void 0:z[0];te&&(F=te);break}case"initialPlacement":F=o;break}if(r!==F)return{reset:{placement:F}}}return{}}}},lre=new Set(["left","top"]);async function ore(e,t){const{placement:n,platform:a,elements:r}=e,i=await(a.isRTL==null?void 0:a.isRTL(r.floating)),l=Vd(n),o=nm(n),c=xc(n)==="y",d=lre.has(l)?-1:1,h=i&&c?-1:1,f=NN(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof b=="number"&&(g=o==="end"?b*-1:b),c?{x:g*h,y:m*d}:{x:m*d,y:g*h}}const cre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:i,placement:l,middlewareData:o}=t,c=await ore(t,e);return l===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:l}}}}};function xN(){return typeof window<"u"}function Ah(e){return RH(e)?(e.nodeName||"").toLowerCase():"#document"}function Br(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bs(e){var t;return(t=(RH(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function RH(e){return xN()?e instanceof Node||e instanceof Br(e).Node:!1}function nr(e){return xN()?e instanceof Element||e instanceof Br(e).Element:!1}function is(e){return xN()?e instanceof HTMLElement||e instanceof Br(e).HTMLElement:!1}function lR(e){return!xN()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Br(e).ShadowRoot}const ure=new Set(["inline","contents"]);function am(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!ure.has(r)}const dre=new Set(["table","td","th"]);function hre(e){return dre.has(Ah(e))}const fre=[":popover-open",":modal"];function SN(e){return fre.some(t=>{try{return e.matches(t)}catch{return!1}})}const pre=["transform","translate","scale","rotate","perspective"],mre=["transform","translate","scale","rotate","perspective","filter"],gre=["paint","layout","strict","content"];function pT(e){const t=mT(),n=nr(e)?oi(e):e;return pre.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||mre.some(a=>(n.willChange||"").includes(a))||gre.some(a=>(n.contain||"").includes(a))}function bre(e){let t=xo(e);for(;is(t)&&!Kd(t);){if(pT(t))return t;if(SN(t))return null;t=xo(t)}return null}function mT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ere=new Set(["html","body","#document"]);function Kd(e){return Ere.has(Ah(e))}function oi(e){return Br(e).getComputedStyle(e)}function IN(e){return nr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xo(e){if(Ah(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lR(e)&&e.host||bs(e);return lR(t)?t.host:t}function MH(e){const t=xo(e);return Kd(t)?e.ownerDocument?e.ownerDocument.body:e.body:is(t)&&am(t)?t:MH(t)}function mp(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=MH(e),i=r===((a=e.ownerDocument)==null?void 0:a.body),l=Br(r);if(i){const o=PO(l);return t.concat(l,l.visualViewport||[],am(r)?r:[],o&&n?mp(o):[])}return t.concat(r,mp(r,[],n))}function PO(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function DH(e){const t=oi(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=is(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:a,o=Wb(n)!==i||Wb(a)!==l;return o&&(n=i,a=l),{width:n,height:a,$:o}}function gT(e){return nr(e)?e:e.contextElement}function cd(e){const t=gT(e);if(!is(t))return ts(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:i}=DH(t);let l=(i?Wb(n.width):n.width)/a,o=(i?Wb(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!o||!Number.isFinite(o))&&(o=1),{x:l,y:o}}const Nre=ts(0);function jH(e){const t=Br(e);return!mT()||!t.visualViewport?Nre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Br(e)?!1:t}function Jc(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=gT(e);let l=ts(1);t&&(a?nr(a)&&(l=cd(a)):l=cd(e));const o=xre(i,n,a)?jH(i):ts(0);let c=(r.left+o.x)/l.x,d=(r.top+o.y)/l.y,h=r.width/l.x,f=r.height/l.y;if(i){const m=Br(i),g=a&&nr(a)?Br(a):a;let b=m,E=PO(b);for(;E&&a&&g!==b;){const S=cd(E),I=E.getBoundingClientRect(),O=oi(E),v=I.left+(E.clientLeft+parseFloat(O.paddingLeft))*S.x,w=I.top+(E.clientTop+parseFloat(O.paddingTop))*S.y;c*=S.x,d*=S.y,h*=S.x,f*=S.y,c+=v,d+=w,b=Br(E),E=PO(b)}}return Vb({width:h,height:f,x:c,y:d})}function ON(e,t){const n=IN(e).scrollLeft;return t?t.left+n:Jc(bs(e)).left+n}function BH(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-ON(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function Sre(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const i=r==="fixed",l=bs(a),o=t?SN(t.floating):!1;if(a===l||o&&i)return n;let c={scrollLeft:0,scrollTop:0},d=ts(1);const h=ts(0),f=is(a);if((f||!f&&!i)&&((Ah(a)!=="body"||am(l))&&(c=IN(a)),is(a))){const g=Jc(a);d=cd(a),h.x=g.x+a.clientLeft,h.y=g.y+a.clientTop}const m=l&&!f&&!i?BH(l,c):ts(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+h.x+m.x,y:n.y*d.y-c.scrollTop*d.y+h.y+m.y}}function Ire(e){return Array.from(e.getClientRects())}function Ore(e){const t=bs(e),n=IN(e),a=e.ownerDocument.body,r=Hc(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Hc(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let l=-n.scrollLeft+ON(e);const o=-n.scrollTop;return oi(a).direction==="rtl"&&(l+=Hc(t.clientWidth,a.clientWidth)-r),{width:r,height:i,x:l,y:o}}const oR=25;function vre(e,t){const n=Br(e),a=bs(e),r=n.visualViewport;let i=a.clientWidth,l=a.clientHeight,o=0,c=0;if(r){i=r.width,l=r.height;const h=mT();(!h||h&&t==="fixed")&&(o=r.offsetLeft,c=r.offsetTop)}const d=ON(a);if(d<=0){const h=a.ownerDocument,f=h.body,m=getComputedStyle(f),g=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(a.clientWidth-f.clientWidth-g);b<=oR&&(i-=b)}else d<=oR&&(i+=d);return{width:i,height:l,x:o,y:c}}const Tre=new Set(["absolute","fixed"]);function Are(e,t){const n=Jc(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,i=is(e)?cd(e):ts(1),l=e.clientWidth*i.x,o=e.clientHeight*i.y,c=r*i.x,d=a*i.y;return{width:l,height:o,x:c,y:d}}function cR(e,t,n){let a;if(t==="viewport")a=vre(e,n);else if(t==="document")a=Ore(bs(e));else if(nr(t))a=Are(t,n);else{const r=jH(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Vb(a)}function PH(e,t){const n=xo(e);return n===t||!nr(n)||Kd(n)?!1:oi(n).position==="fixed"||PH(n,t)}function yre(e,t){const n=t.get(e);if(n)return n;let a=mp(e,[],!1).filter(o=>nr(o)&&Ah(o)!=="body"),r=null;const i=oi(e).position==="fixed";let l=i?xo(e):e;for(;nr(l)&&!Kd(l);){const o=oi(l),c=pT(l);!c&&o.position==="fixed"&&(r=null),(i?!c&&!r:!c&&o.position==="static"&&!!r&&Tre.has(r.position)||am(l)&&!c&&PH(e,l))?a=a.filter(h=>h!==l):r=o,l=xo(l)}return t.set(e,a),a}function wre(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const l=[...n==="clippingAncestors"?SN(t)?[]:yre(t,this._c):[].concat(n),a],o=l[0],c=l.reduce((d,h)=>{const f=cR(t,h,r);return d.top=Hc(f.top,d.top),d.right=qd(f.right,d.right),d.bottom=qd(f.bottom,d.bottom),d.left=Hc(f.left,d.left),d},cR(t,o,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cre(e){const{width:t,height:n}=DH(e);return{width:t,height:n}}function Rre(e,t,n){const a=is(t),r=bs(t),i=n==="fixed",l=Jc(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const c=ts(0);function d(){c.x=ON(r)}if(a||!a&&!i)if((Ah(t)!=="body"||am(r))&&(o=IN(t)),a){const g=Jc(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else r&&d();i&&!a&&r&&d();const h=r&&!a&&!i?BH(r,o):ts(0),f=l.left+o.scrollLeft-c.x-h.x,m=l.top+o.scrollTop-c.y-h.y;return{x:f,y:m,width:l.width,height:l.height}}function tS(e){return oi(e).position==="static"}function uR(e,t){if(!is(e)||oi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bs(e)===n&&(n=n.ownerDocument.body),n}function HH(e,t){const n=Br(e);if(SN(e))return n;if(!is(e)){let r=xo(e);for(;r&&!Kd(r);){if(nr(r)&&!tS(r))return r;r=xo(r)}return n}let a=uR(e,t);for(;a&&hre(a)&&tS(a);)a=uR(a,t);return a&&Kd(a)&&tS(a)&&!pT(a)?n:a||bre(e)||n}const Mre=async function(e){const t=this.getOffsetParent||HH,n=this.getDimensions,a=await n(e.floating);return{reference:Rre(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function Dre(e){return oi(e).direction==="rtl"}const jre={convertOffsetParentRelativeRectToViewportRelativeRect:Sre,getDocumentElement:bs,getClippingRect:wre,getOffsetParent:HH,getElementRects:Mre,getClientRects:Ire,getDimensions:Cre,getScale:cd,isElement:nr,isRTL:Dre};function LH(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Bre(e,t){let n=null,a;const r=bs(e);function i(){var o;clearTimeout(a),(o=n)==null||o.disconnect(),n=null}function l(o,c){o===void 0&&(o=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:h,top:f,width:m,height:g}=d;if(o||t(),!m||!g)return;const b=Qm(f),E=Qm(r.clientWidth-(h+m)),S=Qm(r.clientHeight-(f+g)),I=Qm(h),v={rootMargin:-b+"px "+-E+"px "+-S+"px "+-I+"px",threshold:Hc(0,qd(1,c))||1};let w=!0;function D(C){const M=C[0].intersectionRatio;if(M!==c){if(!w)return l();M?l(!1,M):a=setTimeout(()=>{l(!1,1e-7)},1e3)}M===1&&!LH(d,e.getBoundingClientRect())&&l(),w=!1}try{n=new IntersectionObserver(D,{...v,root:r.ownerDocument})}catch{n=new IntersectionObserver(D,v)}n.observe(e)}return l(!0),i}function UH(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:c=!1}=a,d=gT(e),h=r||i?[...d?mp(d):[],...mp(t)]:[];h.forEach(I=>{r&&I.addEventListener("scroll",n,{passive:!0}),i&&I.addEventListener("resize",n)});const f=d&&o?Bre(d,n):null;let m=-1,g=null;l&&(g=new ResizeObserver(I=>{let[O]=I;O&&O.target===d&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var v;(v=g)==null||v.observe(t)})),n()}),d&&!c&&g.observe(d),g.observe(t));let b,E=c?Jc(e):null;c&&S();function S(){const I=Jc(e);E&&!LH(E,I)&&n(),E=I,b=requestAnimationFrame(S)}return n(),()=>{var I;h.forEach(O=>{r&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f==null||f(),(I=g)==null||I.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const Pre=cre,Hre=sre,dR=ire,Lre=(e,t,n)=>{const a=new Map,r={platform:jre,...n},i={...r.platform,_c:a};return are(e,t,{...r,platform:i})};var Kb=T.useLayoutEffect,Ure=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Zb=function(){};function kre(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Fre(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r-1}function Yre(e){return vN(e)?window.innerHeight:e.clientHeight}function FH(e){return vN(e)?window.pageYOffset:e.scrollTop}function Qb(e,t){if(vN(e)){window.scrollTo(0,t);return}e.scrollTop=t}function zre(e){var t=getComputedStyle(e),n=t.position==="absolute",a=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(n&&t.position==="static")&&a.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function Gre(e,t,n,a){return n*((e=e/a-1)*e*e+1)+t}function Xm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Zb,r=FH(e),i=t-r,l=10,o=0;function c(){o+=l;var d=Gre(o,r,i,n);Qb(e,d),on.bottom?Qb(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):a.top-r1?n-1:0),r=1;r=b)return{placement:"bottom",maxHeight:t};if(L>=b&&!l)return i&&Xm(c,H,W),{placement:"bottom",maxHeight:t};if(!l&&L>=a||l&&M>=a){i&&Xm(c,H,W);var z=l?M-w:L-w;return{placement:"bottom",maxHeight:z}}if(r==="auto"||l){var $=t,V=l?C:B;return V>=a&&($=Math.min(V-w-o,t)),{placement:"top",maxHeight:$}}if(r==="bottom")return i&&Qb(c,H),{placement:"bottom",maxHeight:t};break;case"top":if(C>=b)return{placement:"top",maxHeight:t};if(B>=b&&!l)return i&&Xm(c,U,W),{placement:"top",maxHeight:t};if(!l&&B>=a||l&&C>=a){var F=t;return(!l&&B>=a||l&&C>=a)&&(F=l?C-D:B-D),i&&Xm(c,U,W),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return d}function eie(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var zH=function(t){return t==="auto"?"bottom":t},tie=function(t,n){var a,r=t.placement,i=t.theme,l=i.borderRadius,o=i.spacing,c=i.colors;return _e((a={label:"menu"},pf(a,eie(r),"100%"),pf(a,"position","absolute"),pf(a,"width","100%"),pf(a,"zIndex",1),a),n?{}:{backgroundColor:c.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},GH=T.createContext(null),nie=function(t){var n=t.children,a=t.minMenuHeight,r=t.maxMenuHeight,i=t.menuPlacement,l=t.menuPosition,o=t.menuShouldScrollIntoView,c=t.theme,d=T.useContext(GH)||{},h=d.setPortalPlacement,f=T.useRef(null),m=T.useState(r),g=Qs(m,2),b=g[0],E=g[1],S=T.useState(null),I=Qs(S,2),O=I[0],v=I[1],w=c.spacing.controlHeight;return Kb(function(){var D=f.current;if(D){var C=l==="fixed",M=o&&!C,B=$re({maxHeight:r,menuEl:D,minHeight:a,placement:i,shouldScroll:M,isFixedPosition:C,controlHeight:w});E(B.maxHeight),v(B.placement),h==null||h(B.placement)}},[r,i,l,o,a,h,w]),n({ref:f,placerProps:_e(_e({},t),{},{placement:O||zH(i),maxHeight:b})})},aie=function(t){var n=t.children,a=t.innerRef,r=t.innerProps;return $e("div",et({},_n(t,"menu",{menu:!0}),{ref:a},r),n)},rie=aie,iie=function(t,n){var a=t.maxHeight,r=t.theme.spacing.baseUnit;return _e({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:r,paddingTop:r})},sie=function(t){var n=t.children,a=t.innerProps,r=t.innerRef,i=t.isMulti;return $e("div",et({},_n(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},a),n)},WH=function(t,n){var a=t.theme,r=a.spacing.baseUnit,i=a.colors;return _e({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},lie=WH,oie=WH,cie=function(t){var n=t.children,a=n===void 0?"No options":n,r=t.innerProps,i=gs(t,Xre);return $e("div",et({},_n(_e(_e({},i),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},uie=function(t){var n=t.children,a=n===void 0?"Loading...":n,r=t.innerProps,i=gs(t,_re);return $e("div",et({},_n(_e(_e({},i),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},die=function(t){var n=t.rect,a=t.offset,r=t.position;return{left:n.left,position:r,top:a,width:n.width,zIndex:1}},hie=function(t){var n=t.appendTo,a=t.children,r=t.controlElement,i=t.innerProps,l=t.menuPlacement,o=t.menuPosition,c=T.useRef(null),d=T.useRef(null),h=T.useState(zH(l)),f=Qs(h,2),m=f[0],g=f[1],b=T.useMemo(function(){return{setPortalPlacement:g}},[]),E=T.useState(null),S=Qs(E,2),I=S[0],O=S[1],v=T.useCallback(function(){if(r){var M=Wre(r),B=o==="fixed"?0:window.pageYOffset,L=M[m]+B;(L!==(I==null?void 0:I.offset)||M.left!==(I==null?void 0:I.rect.left)||M.width!==(I==null?void 0:I.rect.width))&&O({offset:L,rect:M})}},[r,o,m,I==null?void 0:I.offset,I==null?void 0:I.rect.left,I==null?void 0:I.rect.width]);Kb(function(){v()},[v]);var w=T.useCallback(function(){typeof d.current=="function"&&(d.current(),d.current=null),r&&c.current&&(d.current=UH(r,c.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);Kb(function(){w()},[w]);var D=T.useCallback(function(M){c.current=M,w()},[w]);if(!n&&o!=="fixed"||!I)return null;var C=$e("div",et({ref:D},_n(_e(_e({},t),{},{offset:I.offset,position:o,rect:I.rect}),"menuPortal",{"menu-portal":!0}),i),a);return $e(GH.Provider,{value:b},n?th.createPortal(C,n):C)},fie=function(t){var n=t.isDisabled,a=t.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},pie=function(t){var n=t.children,a=t.innerProps,r=t.isDisabled,i=t.isRtl;return $e("div",et({},_n(t,"container",{"--is-disabled":r,"--is-rtl":i}),a),n)},mie=function(t,n){var a=t.theme.spacing,r=t.isMulti,i=t.hasValue,l=t.selectProps.controlShouldRenderValue;return _e({alignItems:"center",display:r&&i&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},gie=function(t){var n=t.children,a=t.innerProps,r=t.isMulti,i=t.hasValue;return $e("div",et({},_n(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),a),n)},bie=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Eie=function(t){var n=t.children,a=t.innerProps;return $e("div",et({},_n(t,"indicatorsContainer",{indicators:!0}),a),n)},pR,Nie=["size"],xie=["innerProps","isRtl","size"],Sie={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qH=function(t){var n=t.size,a=gs(t,Nie);return $e("svg",et({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Sie},a))},bT=function(t){return $e(qH,et({size:20},t),$e("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},VH=function(t){return $e(qH,et({size:20},t),$e("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},KH=function(t,n){var a=t.isFocused,r=t.theme,i=r.spacing.baseUnit,l=r.colors;return _e({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:a?l.neutral60:l.neutral20,padding:i*2,":hover":{color:a?l.neutral80:l.neutral40}})},Iie=KH,Oie=function(t){var n=t.children,a=t.innerProps;return $e("div",et({},_n(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),n||$e(VH,null))},vie=KH,Tie=function(t){var n=t.children,a=t.innerProps;return $e("div",et({},_n(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),n||$e(bT,null))},Aie=function(t,n){var a=t.isDisabled,r=t.theme,i=r.spacing.baseUnit,l=r.colors;return _e({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:a?l.neutral10:l.neutral20,marginBottom:i*2,marginTop:i*2})},yie=function(t){var n=t.innerProps;return $e("span",et({},n,_n(t,"indicatorSeparator",{"indicator-separator":!0})))},wie=Gae(pR||(pR=Wae([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),Cie=function(t,n){var a=t.isFocused,r=t.size,i=t.theme,l=i.colors,o=i.spacing.baseUnit;return _e({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},n?{}:{color:a?l.neutral60:l.neutral20,padding:o*2})},nS=function(t){var n=t.delay,a=t.offset;return $e("span",{css:dT({animation:"".concat(wie," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Rie=function(t){var n=t.innerProps,a=t.isRtl,r=t.size,i=r===void 0?4:r,l=gs(t,xie);return $e("div",et({},_n(_e(_e({},l),{},{innerProps:n,isRtl:a,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),$e(nS,{delay:0,offset:a}),$e(nS,{delay:160,offset:!0}),$e(nS,{delay:320,offset:!a}))},Mie=function(t,n){var a=t.isDisabled,r=t.isFocused,i=t.theme,l=i.colors,o=i.borderRadius,c=i.spacing;return _e({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:c.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:a?l.neutral5:l.neutral0,borderColor:a?l.neutral10:r?l.primary:l.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:r?l.primary:l.neutral30}})},Die=function(t){var n=t.children,a=t.isDisabled,r=t.isFocused,i=t.innerRef,l=t.innerProps,o=t.menuIsOpen;return $e("div",et({ref:i},_n(t,"control",{control:!0,"control--is-disabled":a,"control--is-focused":r,"control--menu-is-open":o}),l,{"aria-disabled":a||void 0}),n)},jie=Die,Bie=["data"],Pie=function(t,n){var a=t.theme.spacing;return n?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},Hie=function(t){var n=t.children,a=t.cx,r=t.getStyles,i=t.getClassNames,l=t.Heading,o=t.headingProps,c=t.innerProps,d=t.label,h=t.theme,f=t.selectProps;return $e("div",et({},_n(t,"group",{group:!0}),c),$e(l,et({},o,{selectProps:f,theme:h,getStyles:r,getClassNames:i,cx:a}),d),$e("div",null,n))},Lie=function(t,n){var a=t.theme,r=a.colors,i=a.spacing;return _e({label:"group",cursor:"default",display:"block"},n?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},Uie=function(t){var n=kH(t);n.data;var a=gs(n,Bie);return $e("div",et({},_n(t,"groupHeading",{"group-heading":!0}),a))},kie=Hie,Fie=["innerRef","isDisabled","isHidden","inputClassName"],Yie=function(t,n){var a=t.isDisabled,r=t.value,i=t.theme,l=i.spacing,o=i.colors;return _e(_e({visibility:a?"hidden":"visible",transform:r?"translateZ(0)":""},zie),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:o.neutral80})},ZH={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},zie={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":_e({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},ZH)},Gie=function(t){return _e({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},ZH)},Wie=function(t){var n=t.cx,a=t.value,r=kH(t),i=r.innerRef,l=r.isDisabled,o=r.isHidden,c=r.inputClassName,d=gs(r,Fie);return $e("div",et({},_n(t,"input",{"input-container":!0}),{"data-value":a||""}),$e("input",et({className:n({input:!0},c),ref:i,style:Gie(o),disabled:l},d)))},qie=Wie,Vie=function(t,n){var a=t.theme,r=a.spacing,i=a.borderRadius,l=a.colors;return _e({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},Kie=function(t,n){var a=t.theme,r=a.borderRadius,i=a.colors,l=t.cropWithEllipsis;return _e({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},Zie=function(t,n){var a=t.theme,r=a.spacing,i=a.borderRadius,l=a.colors,o=t.isFocused;return _e({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:o?l.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},JH=function(t){var n=t.children,a=t.innerProps;return $e("div",a,n)},Jie=JH,Qie=JH;function Xie(e){var t=e.children,n=e.innerProps;return $e("div",et({role:"button"},n),t||$e(bT,{size:14}))}var _ie=function(t){var n=t.children,a=t.components,r=t.data,i=t.innerProps,l=t.isDisabled,o=t.removeProps,c=t.selectProps,d=a.Container,h=a.Label,f=a.Remove;return $e(d,{data:r,innerProps:_e(_e({},_n(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),i),selectProps:c},$e(h,{data:r,innerProps:_e({},_n(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:c},n),$e(f,{data:r,innerProps:_e(_e({},_n(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},o),selectProps:c}))},$ie=_ie,ese=function(t,n){var a=t.isDisabled,r=t.isFocused,i=t.isSelected,l=t.theme,o=l.spacing,c=l.colors;return _e({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?c.primary:r?c.primary25:"transparent",color:a?c.neutral20:i?c.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:i?c.primary:c.primary50}})},tse=function(t){var n=t.children,a=t.isDisabled,r=t.isFocused,i=t.isSelected,l=t.innerRef,o=t.innerProps;return $e("div",et({},_n(t,"option",{option:!0,"option--is-disabled":a,"option--is-focused":r,"option--is-selected":i}),{ref:l,"aria-disabled":a},o),n)},nse=tse,ase=function(t,n){var a=t.theme,r=a.spacing,i=a.colors;return _e({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},rse=function(t){var n=t.children,a=t.innerProps;return $e("div",et({},_n(t,"placeholder",{placeholder:!0}),a),n)},ise=rse,sse=function(t,n){var a=t.isDisabled,r=t.theme,i=r.spacing,l=r.colors;return _e({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:a?l.neutral40:l.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},lse=function(t){var n=t.children,a=t.isDisabled,r=t.innerProps;return $e("div",et({},_n(t,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),r),n)},ose=lse,yh={ClearIndicator:Tie,Control:jie,DropdownIndicator:Oie,DownChevron:VH,CrossIcon:bT,Group:kie,GroupHeading:Uie,IndicatorsContainer:Eie,IndicatorSeparator:yie,Input:qie,LoadingIndicator:Rie,Menu:rie,MenuList:sie,MenuPortal:hie,LoadingMessage:uie,NoOptionsMessage:cie,MultiValue:$ie,MultiValueContainer:Jie,MultiValueLabel:Qie,MultiValueRemove:Xie,Option:nse,Placeholder:ise,SelectContainer:pie,SingleValue:ose,ValueContainer:gie},cse=function(t){return _e(_e({},yh),t.components)},mR=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function use(e,t){return!!(e===t||mR(e)&&mR(t))}function dse(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return l?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(t){var n=t.context,a=t.focused,r=t.options,i=t.label,l=i===void 0?"":i,o=t.selectValue,c=t.isDisabled,d=t.isSelected,h=t.isAppleDevice,f=function(E,S){return E&&E.length?"".concat(E.indexOf(S)+1," of ").concat(E.length):""};if(n==="value"&&o)return"value ".concat(l," focused, ").concat(f(o,a),".");if(n==="menu"&&h){var m=c?" disabled":"",g="".concat(d?" selected":"").concat(m);return"".concat(l).concat(g,", ").concat(f(r,a),".")}return""},onFilter:function(t){var n=t.inputValue,a=t.resultsMessage;return"".concat(a).concat(n?" for search term "+n:"",".")}},gse=function(t){var n=t.ariaSelection,a=t.focusedOption,r=t.focusedValue,i=t.focusableOptions,l=t.isFocused,o=t.selectValue,c=t.selectProps,d=t.id,h=t.isAppleDevice,f=c.ariaLiveMessages,m=c.getOptionLabel,g=c.inputValue,b=c.isMulti,E=c.isOptionDisabled,S=c.isSearchable,I=c.menuIsOpen,O=c.options,v=c.screenReaderStatus,w=c.tabSelectsValue,D=c.isLoading,C=c["aria-label"],M=c["aria-live"],B=T.useMemo(function(){return _e(_e({},mse),f||{})},[f]),L=T.useMemo(function(){var V="";if(n&&B.onChange){var F=n.option,te=n.options,se=n.removedValue,pe=n.removedValues,be=n.value,we=function(me){return Array.isArray(me)?null:me},ve=se||F||we(be),Ue=ve?m(ve):"",Re=te||pe||void 0,ue=Re?Re.map(m):[],ze=_e({isDisabled:ve&&E(ve,o),label:Ue,labels:ue},n);V=B.onChange(ze)}return V},[n,B,E,o,m]),H=T.useMemo(function(){var V="",F=a||r,te=!!(a&&o&&o.includes(a));if(F&&B.onFocus){var se={focused:F,label:m(F),isDisabled:E(F,o),isSelected:te,options:i,context:F===a?"menu":"value",selectValue:o,isAppleDevice:h};V=B.onFocus(se)}return V},[a,r,m,E,B,i,o,h]),U=T.useMemo(function(){var V="";if(I&&O.length&&!D&&B.onFilter){var F=v({count:i.length});V=B.onFilter({inputValue:g,resultsMessage:F})}return V},[i,g,I,B,O,v,D]),W=(n==null?void 0:n.action)==="initial-input-focus",z=T.useMemo(function(){var V="";if(B.guidance){var F=r?"value":I?"menu":"input";V=B.guidance({"aria-label":C,context:F,isDisabled:a&&E(a,o),isMulti:b,isSearchable:S,tabSelectsValue:w,isInitialFocus:W})}return V},[C,a,r,b,E,S,I,B,o,w,W]),$=$e(T.Fragment,null,$e("span",{id:"aria-selection"},L),$e("span",{id:"aria-focused"},H),$e("span",{id:"aria-results"},U),$e("span",{id:"aria-guidance"},z));return $e(T.Fragment,null,$e(gR,{id:d},W&&$),$e(gR,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},l&&!W&&$))},bse=gse,HO=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Ese=new RegExp("["+HO.map(function(e){return e.letters}).join("")+"]","g"),QH={};for(var aS=0;aS-1}},Ise=["innerRef"];function Ose(e){var t=e.innerRef,n=gs(e,Ise),a=Qre(n,"onExited","in","enter","exit","appear");return $e("input",et({ref:t},a,{css:dT({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var vse=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function Tse(e){var t=e.isEnabled,n=e.onBottomArrive,a=e.onBottomLeave,r=e.onTopArrive,i=e.onTopLeave,l=T.useRef(!1),o=T.useRef(!1),c=T.useRef(0),d=T.useRef(null),h=T.useCallback(function(S,I){if(d.current!==null){var O=d.current,v=O.scrollTop,w=O.scrollHeight,D=O.clientHeight,C=d.current,M=I>0,B=w-D-v,L=!1;B>I&&l.current&&(a&&a(S),l.current=!1),M&&o.current&&(i&&i(S),o.current=!1),M&&I>B?(n&&!l.current&&n(S),C.scrollTop=w,L=!0,l.current=!0):!M&&-I>v&&(r&&!o.current&&r(S),C.scrollTop=0,L=!0,o.current=!0),L&&vse(S)}},[n,a,r,i]),f=T.useCallback(function(S){h(S,S.deltaY)},[h]),m=T.useCallback(function(S){c.current=S.changedTouches[0].clientY},[]),g=T.useCallback(function(S){var I=c.current-S.changedTouches[0].clientY;h(S,I)},[h]),b=T.useCallback(function(S){if(S){var I=Kre?{passive:!1}:!1;S.addEventListener("wheel",f,I),S.addEventListener("touchstart",m,I),S.addEventListener("touchmove",g,I)}},[g,m,f]),E=T.useCallback(function(S){S&&(S.removeEventListener("wheel",f,!1),S.removeEventListener("touchstart",m,!1),S.removeEventListener("touchmove",g,!1))},[g,m,f]);return T.useEffect(function(){if(t){var S=d.current;return b(S),function(){E(S)}}},[t,b,E]),function(S){d.current=S}}var ER=["boxSizing","height","overflow","paddingRight","position"],NR={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function xR(e){e.preventDefault()}function SR(e){e.stopPropagation()}function IR(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function OR(){return"ontouchstart"in window||navigator.maxTouchPoints}var vR=!!(typeof window<"u"&&window.document&&window.document.createElement),$h=0,wu={capture:!1,passive:!1};function Ase(e){var t=e.isEnabled,n=e.accountForScrollbars,a=n===void 0?!0:n,r=T.useRef({}),i=T.useRef(null),l=T.useCallback(function(c){if(vR){var d=document.body,h=d&&d.style;if(a&&ER.forEach(function(b){var E=h&&h[b];r.current[b]=E}),a&&$h<1){var f=parseInt(r.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,g=window.innerWidth-m+f||0;Object.keys(NR).forEach(function(b){var E=NR[b];h&&(h[b]=E)}),h&&(h.paddingRight="".concat(g,"px"))}d&&OR()&&(d.addEventListener("touchmove",xR,wu),c&&(c.addEventListener("touchstart",IR,wu),c.addEventListener("touchmove",SR,wu))),$h+=1}},[a]),o=T.useCallback(function(c){if(vR){var d=document.body,h=d&&d.style;$h=Math.max($h-1,0),a&&$h<1&&ER.forEach(function(f){var m=r.current[f];h&&(h[f]=m)}),d&&OR()&&(d.removeEventListener("touchmove",xR,wu),c&&(c.removeEventListener("touchstart",IR,wu),c.removeEventListener("touchmove",SR,wu)))}},[a]);return T.useEffect(function(){if(t){var c=i.current;return l(c),function(){o(c)}}},[t,l,o]),function(c){i.current=c}}var yse=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},wse={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Cse(e){var t=e.children,n=e.lockEnabled,a=e.captureEnabled,r=a===void 0?!0:a,i=e.onBottomArrive,l=e.onBottomLeave,o=e.onTopArrive,c=e.onTopLeave,d=Tse({isEnabled:r,onBottomArrive:i,onBottomLeave:l,onTopArrive:o,onTopLeave:c}),h=Ase({isEnabled:n}),f=function(g){d(g),h(g)};return $e(T.Fragment,null,n&&$e("div",{onClick:yse,css:wse}),t(f))}var Rse={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Mse=function(t){var n=t.name,a=t.onFocus;return $e("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Rse,value:"",onChange:function(){}})},Dse=Mse;function ET(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function jse(){return ET(/^iPhone/i)}function _H(){return ET(/^Mac/i)}function Bse(){return ET(/^iPad/i)||_H()&&navigator.maxTouchPoints>1}function Pse(){return jse()||Bse()}function Hse(){return _H()||Pse()}var Lse=function(t){return t.label},$H=function(t){return t.label},eL=function(t){return t.value},Use=function(t){return!!t.isDisabled},kse={clearIndicator:vie,container:fie,control:Mie,dropdownIndicator:Iie,group:Pie,groupHeading:Lie,indicatorsContainer:bie,indicatorSeparator:Aie,input:Yie,loadingIndicator:Cie,loadingMessage:oie,menu:tie,menuList:iie,menuPortal:die,multiValue:Vie,multiValueLabel:Kie,multiValueRemove:Zie,noOptionsMessage:lie,option:ese,placeholder:ase,singleValue:sse,valueContainer:mie},Fse={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Yse=4,tL=4,zse=38,Gse=tL*2,Wse={baseUnit:tL,controlHeight:zse,menuGutter:Gse},sS={borderRadius:Yse,colors:Fse,spacing:Wse},qse={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:fR(),captureMenuScroll:!fR(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Sse(),formatGroupLabel:Lse,getOptionLabel:$H,getOptionValue:eL,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:Use,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!qre(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function TR(e,t,n,a){var r=rL(e,t,n),i=iL(e,t,n),l=aL(e,t),o=Xb(e,t);return{type:"option",data:t,isDisabled:r,isSelected:i,label:l,value:o,index:a}}function Fg(e,t){return e.options.map(function(n,a){if("options"in n){var r=n.options.map(function(l,o){return TR(e,l,t,o)}).filter(function(l){return yR(e,l)});return r.length>0?{type:"group",data:n,options:r,index:a}:void 0}var i=TR(e,n,t,a);return yR(e,i)?i:void 0}).filter(Zre)}function nL(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,ld(n.options.map(function(a){return a.data}))):t.push(n.data),t},[])}function AR(e,t){return e.reduce(function(n,a){return a.type==="group"?n.push.apply(n,ld(a.options.map(function(r){return{data:r.data,id:"".concat(t,"-").concat(a.index,"-").concat(r.index)}}))):n.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),n},[])}function Vse(e,t){return nL(Fg(e,t))}function yR(e,t){var n=e.inputValue,a=n===void 0?"":n,r=t.data,i=t.isSelected,l=t.label,o=t.value;return(!lL(e)||!i)&&sL(e,{label:l,value:o,data:r},a)}function Kse(e,t){var n=e.focusedValue,a=e.selectValue,r=a.indexOf(n);if(r>-1){var i=t.indexOf(n);if(i>-1)return n;if(r-1?n:t[0]}var lS=function(t,n){var a,r=(a=t.find(function(i){return i.data===n}))===null||a===void 0?void 0:a.id;return r||null},aL=function(t,n){return t.getOptionLabel(n)},Xb=function(t,n){return t.getOptionValue(n)};function rL(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function iL(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var a=Xb(e,t);return n.some(function(r){return Xb(e,r)===a})}function sL(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var lL=function(t){var n=t.hideSelectedOptions,a=t.isMulti;return n===void 0?a:n},Jse=1,NT=function(e){Gne(n,e);var t=Vne(n);function n(a){var r;if(Yne(this,n),r=t.call(this,a),r.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.isAppleDevice=Hse(),r.controlRef=null,r.getControlRef=function(c){r.controlRef=c},r.focusedOptionRef=null,r.getFocusedOptionRef=function(c){r.focusedOptionRef=c},r.menuListRef=null,r.getMenuListRef=function(c){r.menuListRef=c},r.inputRef=null,r.getInputRef=function(c){r.inputRef=c},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(c,d){var h=r.props,f=h.onChange,m=h.name;d.name=m,r.ariaOnChange(c,d),f(c,d)},r.setValue=function(c,d,h){var f=r.props,m=f.closeMenuOnSelect,g=f.isMulti,b=f.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:b}),m&&(r.setState({inputIsHiddenAfterUpdate:!g}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(c,{action:d,option:h})},r.selectOption=function(c){var d=r.props,h=d.blurInputOnSelect,f=d.isMulti,m=d.name,g=r.state.selectValue,b=f&&r.isOptionSelected(c,g),E=r.isOptionDisabled(c,g);if(b){var S=r.getOptionValue(c);r.setValue(g.filter(function(I){return r.getOptionValue(I)!==S}),"deselect-option",c)}else if(!E)f?r.setValue([].concat(ld(g),[c]),"select-option",c):r.setValue(c,"select-option");else{r.ariaOnChange(c,{action:"select-option",option:c,name:m});return}h&&r.blurInput()},r.removeValue=function(c){var d=r.props.isMulti,h=r.state.selectValue,f=r.getOptionValue(c),m=h.filter(function(b){return r.getOptionValue(b)!==f}),g=mf(d,m,m[0]||null);r.onChange(g,{action:"remove-value",removedValue:c}),r.focusInput()},r.clearValue=function(){var c=r.state.selectValue;r.onChange(mf(r.props.isMulti,[],null),{action:"clear",removedValues:c})},r.popValue=function(){var c=r.props.isMulti,d=r.state.selectValue,h=d[d.length-1],f=d.slice(0,d.length-1),m=mf(c,f,f[0]||null);r.onChange(m,{action:"pop-value",removedValue:h})},r.getFocusedOptionId=function(c){return lS(r.state.focusableOptionsWithIds,c)},r.getFocusableOptionsWithIds=function(){return AR(Fg(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var c=arguments.length,d=new Array(c),h=0;hg||m>g}},r.onTouchEnd=function(c){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(c.target)&&r.menuListRef&&!r.menuListRef.contains(c.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(c){r.userIsDragging||r.onControlMouseDown(c)},r.onClearIndicatorTouchEnd=function(c){r.userIsDragging||r.onClearIndicatorMouseDown(c)},r.onDropdownIndicatorTouchEnd=function(c){r.userIsDragging||r.onDropdownIndicatorMouseDown(c)},r.handleInputChange=function(c){var d=r.props.inputValue,h=c.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(h,{action:"input-change",prevInputValue:d}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(c){r.props.onFocus&&r.props.onFocus(c),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(c){var d=r.props.inputValue;if(r.menuListRef&&r.menuListRef.contains(document.activeElement)){r.inputRef.focus();return}r.props.onBlur&&r.props.onBlur(c),r.onInputChange("",{action:"input-blur",prevInputValue:d}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(c){if(!(r.blockOptionHover||r.state.focusedOption===c)){var d=r.getFocusableOptions(),h=d.indexOf(c);r.setState({focusedOption:c,focusedOptionId:h>-1?r.getFocusedOptionId(c):null})}},r.shouldHideSelectedOptions=function(){return lL(r.props)},r.onValueInputFocus=function(c){c.preventDefault(),c.stopPropagation(),r.focus()},r.onKeyDown=function(c){var d=r.props,h=d.isMulti,f=d.backspaceRemovesValue,m=d.escapeClearsValue,g=d.inputValue,b=d.isClearable,E=d.isDisabled,S=d.menuIsOpen,I=d.onKeyDown,O=d.tabSelectsValue,v=d.openMenuOnFocus,w=r.state,D=w.focusedOption,C=w.focusedValue,M=w.selectValue;if(!E&&!(typeof I=="function"&&(I(c),c.defaultPrevented))){switch(r.blockOptionHover=!0,c.key){case"ArrowLeft":if(!h||g)return;r.focusValue("previous");break;case"ArrowRight":if(!h||g)return;r.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(C)r.removeValue(C);else{if(!f)return;h?r.popValue():b&&r.clearValue()}break;case"Tab":if(r.isComposing||c.shiftKey||!S||!O||!D||v&&r.isOptionSelected(D,M))return;r.selectOption(D);break;case"Enter":if(c.keyCode===229)break;if(S){if(!D||r.isComposing)return;r.selectOption(D);break}return;case"Escape":S?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:g}),r.onMenuClose()):b&&m&&r.clearValue();break;case" ":if(g)return;if(!S){r.openMenu("first");break}if(!D)return;r.selectOption(D);break;case"ArrowUp":S?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":S?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!S)return;r.focusOption("pageup");break;case"PageDown":if(!S)return;r.focusOption("pagedown");break;case"Home":if(!S)return;r.focusOption("first");break;case"End":if(!S)return;r.focusOption("last");break;default:return}c.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Jse),r.state.selectValue=Jb(a.value),a.menuIsOpen&&r.state.selectValue.length){var i=r.getFocusableOptionsWithIds(),l=r.buildFocusableOptions(),o=l.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=i,r.state.focusedOption=l[o],r.state.focusedOptionId=lS(i,l[o])}return r}return zne(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&hR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var i=this.props,l=i.isDisabled,o=i.menuIsOpen,c=this.state.isFocused;(c&&!l&&r.isDisabled||c&&o&&!r.menuIsOpen)&&this.focusInput(),c&&l&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!c&&!l&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(hR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,i){this.props.onInputChange(r,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var i=this,l=this.state,o=l.selectValue,c=l.isFocused,d=this.buildFocusableOptions(),h=r==="first"?0:d.length-1;if(!this.props.isMulti){var f=d.indexOf(o[0]);f>-1&&(h=f)}this.scrollToFocusedOptionOnUpdate=!(c&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:d[h],focusedOptionId:this.getFocusedOptionId(d[h])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(r){var i=this.state,l=i.selectValue,o=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var c=l.indexOf(o);o||(c=-1);var d=l.length-1,h=-1;if(l.length){switch(r){case"previous":c===0?h=0:c===-1?h=d:h=c-1;break;case"next":c>-1&&c0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,l=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var c=0,d=o.indexOf(l);l||(d=-1),r==="up"?c=d>0?d-1:o.length-1:r==="down"?c=(d+1)%o.length:r==="pageup"?(c=d-i,c<0&&(c=0)):r==="pagedown"?(c=d+i,c>o.length-1&&(c=o.length-1)):r==="last"&&(c=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[c],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[c])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(sS):_e(_e({},sS),this.props.theme):sS}},{key:"getCommonProps",value:function(){var r=this.clearValue,i=this.cx,l=this.getStyles,o=this.getClassNames,c=this.getValue,d=this.selectOption,h=this.setValue,f=this.props,m=f.isMulti,g=f.isRtl,b=f.options,E=this.hasValue();return{clearValue:r,cx:i,getStyles:l,getClassNames:o,getValue:c,hasValue:E,isMulti:m,isRtl:g,options:b,selectOption:d,selectProps:f,setValue:h,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,i=r.isClearable,l=r.isMulti;return i===void 0?l:i}},{key:"isOptionDisabled",value:function(r,i){return rL(this.props,r,i)}},{key:"isOptionSelected",value:function(r,i){return iL(this.props,r,i)}},{key:"filterOption",value:function(r,i){return sL(this.props,r,i)}},{key:"formatOptionLabel",value:function(r,i){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(r,{context:i,inputValue:l,selectValue:o})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var r=this.props,i=r.isDisabled,l=r.isSearchable,o=r.inputId,c=r.inputValue,d=r.tabIndex,h=r.form,f=r.menuIsOpen,m=r.required,g=this.getComponents(),b=g.Input,E=this.state,S=E.inputIsHidden,I=E.ariaSelection,O=this.commonProps,v=o||this.getElementId("input"),w=_e(_e(_e({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(I==null?void 0:I.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?T.createElement(b,et({},O,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:S,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:d,form:h,type:"text",value:c},w)):T.createElement(Ose,et({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Zb,onFocus:this.onInputFocus,disabled:i,tabIndex:d,inputMode:"none",form:h,value:""},w))}},{key:"renderPlaceholderOrValue",value:function(){var r=this,i=this.getComponents(),l=i.MultiValue,o=i.MultiValueContainer,c=i.MultiValueLabel,d=i.MultiValueRemove,h=i.SingleValue,f=i.Placeholder,m=this.commonProps,g=this.props,b=g.controlShouldRenderValue,E=g.isDisabled,S=g.isMulti,I=g.inputValue,O=g.placeholder,v=this.state,w=v.selectValue,D=v.focusedValue,C=v.isFocused;if(!this.hasValue()||!b)return I?null:T.createElement(f,et({},m,{key:"placeholder",isDisabled:E,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),O);if(S)return w.map(function(B,L){var H=B===D,U="".concat(r.getOptionLabel(B),"-").concat(r.getOptionValue(B));return T.createElement(l,et({},m,{components:{Container:o,Label:c,Remove:d},isFocused:H,isDisabled:E,key:U,index:L,removeProps:{onClick:function(){return r.removeValue(B)},onTouchEnd:function(){return r.removeValue(B)},onMouseDown:function(z){z.preventDefault()}},data:B}),r.formatOptionLabel(B,"value"))});if(I)return null;var M=w[0];return T.createElement(h,et({},m,{data:M,isDisabled:E}),this.formatOptionLabel(M,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),i=r.ClearIndicator,l=this.commonProps,o=this.props,c=o.isDisabled,d=o.isLoading,h=this.state.isFocused;if(!this.isClearable()||!i||c||!this.hasValue()||d)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(i,et({},l,{innerProps:f,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),i=r.LoadingIndicator,l=this.commonProps,o=this.props,c=o.isDisabled,d=o.isLoading,h=this.state.isFocused;if(!i||!d)return null;var f={"aria-hidden":"true"};return T.createElement(i,et({},l,{innerProps:f,isDisabled:c,isFocused:h}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),i=r.DropdownIndicator,l=r.IndicatorSeparator;if(!i||!l)return null;var o=this.commonProps,c=this.props.isDisabled,d=this.state.isFocused;return T.createElement(l,et({},o,{isDisabled:c,isFocused:d}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),i=r.DropdownIndicator;if(!i)return null;var l=this.commonProps,o=this.props.isDisabled,c=this.state.isFocused,d={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return T.createElement(i,et({},l,{innerProps:d,isDisabled:o,isFocused:c}))}},{key:"renderMenu",value:function(){var r=this,i=this.getComponents(),l=i.Group,o=i.GroupHeading,c=i.Menu,d=i.MenuList,h=i.MenuPortal,f=i.LoadingMessage,m=i.NoOptionsMessage,g=i.Option,b=this.commonProps,E=this.state.focusedOption,S=this.props,I=S.captureMenuScroll,O=S.inputValue,v=S.isLoading,w=S.loadingMessage,D=S.minMenuHeight,C=S.maxMenuHeight,M=S.menuIsOpen,B=S.menuPlacement,L=S.menuPosition,H=S.menuPortalTarget,U=S.menuShouldBlockScroll,W=S.menuShouldScrollIntoView,z=S.noOptionsMessage,$=S.onMenuScrollToTop,V=S.onMenuScrollToBottom;if(!M)return null;var F=function(Ue,Re){var ue=Ue.type,ze=Ue.data,Qe=Ue.isDisabled,me=Ue.isSelected,it=Ue.label,En=Ue.value,mt=E===ze,Vt=Qe?void 0:function(){return r.onOptionHover(ze)},_t=Qe?void 0:function(){return r.selectOption(ze)},nn="".concat(r.getElementId("option"),"-").concat(Re),Ee={id:nn,onClick:_t,onMouseMove:Vt,onMouseOver:Vt,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:me};return T.createElement(g,et({},b,{innerProps:Ee,data:ze,isDisabled:Qe,isSelected:me,key:nn,label:it,type:ue,value:En,isFocused:mt,innerRef:mt?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(Ue.data,"menu"))},te;if(this.hasOptions())te=this.getCategorizedOptions().map(function(ve){if(ve.type==="group"){var Ue=ve.data,Re=ve.options,ue=ve.index,ze="".concat(r.getElementId("group"),"-").concat(ue),Qe="".concat(ze,"-heading");return T.createElement(l,et({},b,{key:ze,data:Ue,options:Re,Heading:o,headingProps:{id:Qe,data:ve.data},label:r.formatGroupLabel(ve.data)}),ve.options.map(function(me){return F(me,"".concat(ue,"-").concat(me.index))}))}else if(ve.type==="option")return F(ve,"".concat(ve.index))});else if(v){var se=w({inputValue:O});if(se===null)return null;te=T.createElement(f,b,se)}else{var pe=z({inputValue:O});if(pe===null)return null;te=T.createElement(m,b,pe)}var be={minMenuHeight:D,maxMenuHeight:C,menuPlacement:B,menuPosition:L,menuShouldScrollIntoView:W},we=T.createElement(nie,et({},b,be),function(ve){var Ue=ve.ref,Re=ve.placerProps,ue=Re.placement,ze=Re.maxHeight;return T.createElement(c,et({},b,be,{innerRef:Ue,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:v,placement:ue}),T.createElement(Cse,{captureEnabled:I,onTopArrive:$,onBottomArrive:V,lockEnabled:U},function(Qe){return T.createElement(d,et({},b,{innerRef:function(it){r.getMenuListRef(it),Qe(it)},innerProps:{role:"listbox","aria-multiselectable":b.isMulti,id:r.getElementId("listbox")},isLoading:v,maxHeight:ze,focusedOption:E}),te)}))});return H||L==="fixed"?T.createElement(h,et({},b,{appendTo:H,controlElement:this.controlRef,menuPlacement:B,menuPosition:L}),we):we}},{key:"renderFormField",value:function(){var r=this,i=this.props,l=i.delimiter,o=i.isDisabled,c=i.isMulti,d=i.name,h=i.required,f=this.state.selectValue;if(h&&!this.hasValue()&&!o)return T.createElement(Dse,{name:d,onFocus:this.onValueInputFocus});if(!(!d||o))if(c)if(l){var m=f.map(function(E){return r.getOptionValue(E)}).join(l);return T.createElement("input",{name:d,type:"hidden",value:m})}else{var g=f.length>0?f.map(function(E,S){return T.createElement("input",{key:"i-".concat(S),name:d,type:"hidden",value:r.getOptionValue(E)})}):T.createElement("input",{name:d,type:"hidden",value:""});return T.createElement("div",null,g)}else{var b=f[0]?this.getOptionValue(f[0]):"";return T.createElement("input",{name:d,type:"hidden",value:b})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,i=this.state,l=i.ariaSelection,o=i.focusedOption,c=i.focusedValue,d=i.isFocused,h=i.selectValue,f=this.getFocusableOptions();return T.createElement(bse,et({},r,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:o,focusedValue:c,isFocused:d,selectValue:h,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),i=r.Control,l=r.IndicatorsContainer,o=r.SelectContainer,c=r.ValueContainer,d=this.props,h=d.className,f=d.id,m=d.isDisabled,g=d.menuIsOpen,b=this.state.isFocused,E=this.commonProps=this.getCommonProps();return T.createElement(o,et({},E,{className:h,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:b}),this.renderLiveRegion(),T.createElement(i,et({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:b,menuIsOpen:g}),T.createElement(c,et({},E,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),T.createElement(l,et({},E,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,i){var l=i.prevProps,o=i.clearFocusValueOnUpdate,c=i.inputIsHiddenAfterUpdate,d=i.ariaSelection,h=i.isFocused,f=i.prevWasFocused,m=i.instancePrefix,g=r.options,b=r.value,E=r.menuIsOpen,S=r.inputValue,I=r.isMulti,O=Jb(b),v={};if(l&&(b!==l.value||g!==l.options||E!==l.menuIsOpen||S!==l.inputValue)){var w=E?Vse(r,O):[],D=E?AR(Fg(r,O),"".concat(m,"-option")):[],C=o?Kse(i,O):null,M=Zse(i,w),B=lS(D,M);v={selectValue:O,focusedOption:M,focusedOptionId:B,focusableOptionsWithIds:D,focusedValue:C,clearFocusValueOnUpdate:!1}}var L=c!=null&&r!==l?{inputIsHidden:c,inputIsHiddenAfterUpdate:void 0}:{},H=d,U=h&&f;return h&&!U&&(H={value:mf(I,O,O[0]||null),options:O,action:"initial-input-focus"},U=!f),(d==null?void 0:d.action)==="initial-input-focus"&&(H=null),_e(_e(_e({},v),L),{},{prevProps:r,ariaSelection:H,prevWasFocused:U})}}]),n}(T.Component);NT.defaultProps=qse;var Qse=T.forwardRef(function(e,t){var n=gH(e);return T.createElement(NT,et({ref:t},n))}),Xse=Qse,_se=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],wR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0,r=String(t).toLowerCase(),i=String(a.getOptionValue(n)).toLowerCase(),l=String(a.getOptionLabel(n)).toLowerCase();return i===r||l===r},oS={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,a,r){return!(!t||n.some(function(i){return wR(t,i,r)})||a.some(function(i){return wR(t,i,r)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function $se(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,a=e.createOptionPosition,r=a===void 0?"last":a,i=e.formatCreateLabel,l=i===void 0?oS.formatCreateLabel:i,o=e.isValidNewOption,c=o===void 0?oS.isValidNewOption:o,d=e.getNewOptionData,h=d===void 0?oS.getNewOptionData:d,f=e.onCreateOption,m=e.options,g=m===void 0?[]:m,b=e.onChange,E=gs(e,_se),S=E.getOptionValue,I=S===void 0?eL:S,O=E.getOptionLabel,v=O===void 0?$H:O,w=E.inputValue,D=E.isLoading,C=E.isMulti,M=E.value,B=E.name,L=T.useMemo(function(){return c(w,Jb(M),g,{getOptionValue:I,getOptionLabel:v})?h(w,l(w)):void 0},[l,h,v,I,w,c,g,M]),H=T.useMemo(function(){return(n||!D)&&L?r==="first"?[L].concat(ld(g)):[].concat(ld(g),[L]):g},[n,r,D,L,g]),U=T.useCallback(function(W,z){if(z.action!=="select-option")return b(W,z);var $=Array.isArray(W)?W:[W];if($[$.length-1]===L){if(f)f(w);else{var V=h(w,w),F={action:"create-option",name:B,option:V};b(mf(C,[].concat(ld(Jb(M)),[V]),V),F)}return}b(W,z)},[h,w,C,B,L,f,b,M]);return _e(_e({},E),{},{options:H,onChange:U})}var ele=T.forwardRef(function(e,t){var n=gH(e),a=$se(n);return T.createElement(NT,et({ref:t},a))}),tle=ele;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function oL({error:e,className:t,checked:n=!1,isCustom:a=!1,...r}){return s.jsxs(s.Fragment,{children:[!a&&s.jsxs("label",{className:"relative flex cursor-pointer items-center",children:[s.jsx("input",{type:"checkbox",checked:n,className:"hidden",...r}),s.jsx("span",{className:ge("inline-block size-4 rounded border border-gray-500",{"border-black bg-primaryYellow":n,"border-black":!n},t),children:n&&s.jsx("svg",{className:"size-full",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"black",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",children:s.jsx("polyline",{points:"20 6 9 17 4 12"})})})]}),a&&s.jsx("input",{type:"checkbox",className:ge("border-gray-30 text-lynx-screen-blue focus:ring-lynx-screen-blue size-4 cursor-pointer rounded",{"small-custom-checkbox":a},t),...r,value:r.value||""})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function pu({children:e,className:t}){return s.jsx("div",{className:tn(Ae("flex w-full justify-start pt-1 text-xs font-semibold text-red-400",{"pb-4":!e},{"error-message":e},t)),children:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Zd({children:e,className:t,required:n,...a}){return s.jsxs("label",{htmlFor:"username",className:tn(Ae("text-mirage flex h-full items-center text-[16px] font-[500] leading-[20px] transition-all",t)),...a,children:[e,n&&s.jsx("span",{className:"hidden !text-red-400 group-focus-within:block",children:"*"})]})}function nle({children:e,className:t}){return s.jsx("label",{className:Ae("text-sm font-bold text-gray-700",t),children:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ale(e){return s.jsx("div",{className:"mt-2",children:s.jsxs(yh.Option,{...e,children:[s.jsx(oL,{checked:e.isSelected}),s.jsx("label",{className:"ml-4",children:e.label})]})})}function rle({children:e,square:t,isSearchInput:n,readOnly:a,...r}){return s.jsx("div",{className:Ae("",{"!rounded-none":t,"focus-within:outline-none focus-within:outline-transparent":n,"!bg-transparent":a}),children:s.jsx(yh.Control,{...r,children:e})})}function CR(e){return s.jsx("div",{className:" ",children:s.jsx(yh.MenuList,{...e,children:e.children})})}function ile({message:e,className:t,label:n,labelPosition:a="top",require:r,required:i,square:l=!1,isSearchInput:o,bottomMenuListComponent:c,isCreatable:d,disableOption:h=!1,components:f,styles:m,isError:g=!1,readOnly:b=!1,customClassNames:E,...S}){const I=d?tle:Xse,O={placeholder:D=>({...D,fontSize:"16px",paddingLeft:"4px",fontWeight:400,color:"rgb(156, 163, 175)",textWrap:"nowrap"}),control:(D,C)=>({...D,minHeight:"0",borderColor:"black",borderWidth:"1px",alignItems:"center",boxShadow:C.isFocused?"0 0 0 1px black":"none","&:hover":{borderColor:"black"},borderRadius:l?0:"0.375rem",fontSize:"14px",fontWeight:300,background:b?"transparent":"white",pointerEvents:b?"none":void 0}),valueContainer:D=>({...D,padding:"0 6px"}),singleValue:D=>({...D,fontWeight:500,fontSize:"14px",color:"black"}),input:D=>({...D,paddingLeft:"6px",paddingTop:"1.5px",paddingBottom:"1.5px",margin:"0px"}),indicatorSeparator:()=>({display:"none"}),indicatorsContainer:D=>({...D}),dropdownIndicator:D=>({...D,padding:"0px 8px"}),clearIndicator:D=>({...D,padding:"0px 8px"}),...m},v=T.useMemo(()=>({MenuList:c?C=>CR({...C,children:s.jsxs(s.Fragment,{children:[C.children,c]})}):CR,...f}),[c,f]);!h&&!v.Option&&(v.Option=ale);const w=T.useMemo(()=>D=>rle({...D,square:l,isSearchInput:o,isError:g,readOnly:b}),[g,o,b,l]);return f!=null&&f.Control||(v.Control=w),s.jsxs("div",{className:tn(Ae("flex",{"flex-row items-center gap-2":a==="left","flex-col":a==="top"},{"pb-0":g||e},t)),children:[n&&s.jsx(Zd,{required:i||r,className:tn(Ae("",E==null?void 0:E.label,{"pb-3":a==="top"})),children:n}),s.jsx(I,{className:Ae(E==null?void 0:E.inputContainer,{"":n,"border-red-400":g}),placeholder:"Auswahl treffen",menuPlacement:"auto",styles:O,closeMenuOnSelect:!1,hideSelectedOptions:!1,components:v,...S}),e&&s.jsx(pu,{children:e})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sle(e){return s.jsx("div",{className:Ae("cursor-pointer",{"bg-blue-100":e.isSelected}),children:s.jsx(yh.Option,{...e,children:s.jsx("label",{className:"cursor-pointer text-sm font-light",children:e.label})})})}function Ft({debounceTime:e=100,returnValueOnly:t=!1,name:n,...a}){const[r,i,{setValue:l,setTouched:o}]=uu(n),c=i.touched&&i.error&&typeof i.error=="string"?i.error:"";T.useEffect(()=>{a.defaultValue&&!r.value&&l(a.defaultValue)},[r.value,a.defaultValue,l]);const d=T.useCallback(m=>{a!=null&&a.isSearchable&&a.makeSearch(m||"")},[a]);a.onInputChange=em(d,e);const h=T.useMemo(()=>{let m={message:"",inputContainer:""};return a.customClassNames&&(m={...a.customClassNames}),c&&(m={...m,message:m!=null&&m.message?(m==null?void 0:m.message)+" !text-red-500":" !text-red-500"}),m},[c,a.customClassNames]),f=T.useMemo(()=>t?a.options.find(g=>g.value===(r==null?void 0:r.value)):r.value,[r.value,a.options,t]);return s.jsx(ile,{...r,onChange:T.useCallback(m=>{l(t?m.value:m)},[l,t]),components:{Option:sle},message:c,closeMenuOnSelect:!0,onBlur:T.useCallback(()=>{o(!0)},[o]),value:f,...a,customClassNames:h,isError:!!c,styles:{container:m=>({...m,width:"100%"})}})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const lle=({title:e,titleId:t,...n},a)=>T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:21,viewBox:"0 0 20 21",fill:"none",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("g",{opacity:.3},T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.28082 3.15344C3.13865 3.02096 2.9506 2.94884 2.7563 2.95227C2.562 2.95569 2.37661 3.03441 2.2392 3.17182C2.10179 3.30923 2.02308 3.49462 2.01965 3.68892C2.01622 3.88322 2.08834 4.07127 2.22082 4.21344L16.7208 18.7134C16.7895 18.7871 16.8723 18.8462 16.9643 18.8872C17.0563 18.9282 17.1556 18.9503 17.2563 18.952C17.357 18.9538 17.457 18.9353 17.5504 18.8976C17.6438 18.8598 17.7286 18.8037 17.7999 18.7325C17.8711 18.6613 17.9272 18.5764 17.9649 18.483C18.0027 18.3896 18.0212 18.2896 18.0194 18.1889C18.0176 18.0882 17.9956 17.9889 17.9546 17.8969C17.9136 17.8049 17.8545 17.7221 17.7808 17.6534L16.0358 15.9084C17.5214 14.7834 18.6641 13.2667 19.3358 11.5284C19.4825 11.147 19.4825 10.7248 19.3358 10.3434C18.6096 8.45681 17.3287 6.83448 15.6622 5.69022C13.9956 4.54596 12.0214 3.93346 9.99982 3.93344C8.3438 3.9307 6.71324 4.34109 5.25582 5.12744L3.28082 3.15344ZM7.75282 7.62344L8.84482 8.71544C9.31659 8.46886 9.85475 8.3793 10.3809 8.4598C10.9071 8.54031 11.3939 8.78667 11.7704 9.16302C12.1468 9.53937 12.3933 10.0261 12.474 10.5522C12.5547 11.0784 12.4653 11.6166 12.2188 12.0884L13.3098 13.1804C13.8334 12.4106 14.072 11.4822 13.9845 10.5552C13.8971 9.62832 13.489 8.76095 12.8307 8.1026C12.1723 7.44426 11.3049 7.03619 10.378 6.94872C9.4511 6.86125 8.5227 7.09987 7.75282 7.62344Z",fill:"#101112"}),T.createElement("path",{d:"M10.7489 14.8631L13.2719 17.3861C12.2199 17.7494 11.1147 17.9343 10.0019 17.9331C5.74386 17.9331 2.10786 15.2731 0.664859 11.5231C0.517964 11.1414 0.517964 10.7188 0.664859 10.3371C1.15333 9.07353 1.89327 7.92227 2.83986 6.95312L6.07086 10.1851C5.94876 10.8259 5.98524 11.4869 6.17712 12.1104C6.369 12.7339 6.71046 13.301 7.17174 13.7622C7.63302 14.2235 8.20011 14.565 8.8236 14.7569C9.44709 14.9487 10.108 14.9852 10.7489 14.8631Z",fill:"#101112"}))),ole=T.forwardRef(lle),cle=({title:e,titleId:t,...n},a)=>T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:19,viewBox:"0 0 18 19",fill:"none",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("g",{opacity:.3},T.createElement("path",{d:"M9 12.1836C9.59674 12.1836 10.169 11.9465 10.591 11.5246C11.0129 11.1026 11.25 10.5303 11.25 9.93359C11.25 9.33686 11.0129 8.76456 10.591 8.3426C10.169 7.92065 9.59674 7.68359 9 7.68359C8.40326 7.68359 7.83097 7.92065 7.40901 8.3426C6.98705 8.76456 6.75 9.33686 6.75 9.93359C6.75 10.5303 6.98705 11.1026 7.40901 11.5246C7.83097 11.9465 8.40326 12.1836 9 12.1836Z",fill:"#101112"}),T.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.599154 10.4648C0.466949 10.1213 0.466949 9.74091 0.599154 9.39739C1.25366 7.70043 2.40676 6.24149 3.90662 5.21267C5.40647 4.18384 7.18275 3.63339 9.00155 3.63379C12.8329 3.63379 16.1053 6.02779 17.404 9.40279C17.5363 9.74569 17.5354 10.1264 17.404 10.4702C16.7494 12.1671 15.5963 13.6261 14.0965 14.6549C12.5966 15.6837 10.8204 16.2342 9.00155 16.2338C5.17025 16.2338 1.89785 13.8398 0.599154 10.4648ZM12.6016 9.93379C12.6016 10.8886 12.2223 11.8042 11.5471 12.4794C10.872 13.1545 9.95633 13.5338 9.00155 13.5338C8.04678 13.5338 7.1311 13.1545 6.45597 12.4794C5.78084 11.8042 5.40155 10.8886 5.40155 9.93379C5.40155 8.97901 5.78084 8.06334 6.45597 7.3882C7.1311 6.71307 8.04678 6.33379 9.00155 6.33379C9.95633 6.33379 10.872 6.71307 11.5471 7.3882C12.2223 8.06334 12.6016 8.97901 12.6016 9.93379Z",fill:"#101112"}))),ule=T.forwardRef(cle);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function dle({showPassword:e,togglePasswordVisiblity:t,...n}){return s.jsx("div",{...n,children:e?s.jsx(ule,{className:"size-4",onClick:t}):s.jsx(ole,{className:"size-4",onClick:t})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function cL({children:e,className:t,error:n,showLabel:a=!0,customStyle:r,classNames:i,required:l,labelPosition:o="top",icon:c,rightIcon:d,...h}){const[f,m]=T.useState(null);return s.jsxs("div",{className:tn(Ae("group relative flex w-full flex-col justify-end",t)),onClick:()=>f==null?void 0:f.focus({preventScroll:!0}),children:[a&&o==="top"&&e&&s.jsx(Zd,{value:h.value,className:tn(Ae("pb-3",i==null?void 0:i.label)),required:!!l,children:e}),c&&s.jsx("div",{className:tn(Ae("absolute",i==null?void 0:i.icon)),children:c}),s.jsxs("div",{className:tn(Ae("relative flex flex-row gap-3",i==null?void 0:i.inputLabelSubContainer)),children:[a&&o==="left"&&s.jsx(Zd,{value:h.value,className:tn(Ae("",i==null?void 0:i.label)),required:!!l,children:e}),s.jsxs("div",{className:tn(Ae("relative flex w-full flex-1 flex-row items-center",i==null?void 0:i.inputSubContainer)),children:[s.jsx("input",{ref:m,className:tn(Ae({"peer w-full rounded-md border border-black bg-white px-[14px] outline-none !ring-0 focus:outline-none":!r},i==null?void 0:i.input)),...h,value:h.value||""}),d&&s.jsx(s.Fragment,{children:d})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function uL({leftChildren:e,className:t,...n}){var i,l,o;const a=ge("relative flex w-full flex-col items-center",t),r=s.jsx("span",{className:ge({"!group-focus-within:text-blue-500":!n.error},(i=n.classNames)==null?void 0:i.children),children:n.children});return s.jsxs("div",{className:a,tabIndex:1,children:[e,s.jsx(cL,{className:ge((l=n.classNames)==null?void 0:l.component),children:r,...n}),n.error&&s.jsx(pu,{className:(o=n.classNames)==null?void 0:o.error,children:n.error})]})}function hle(e){const[t,n]=T.useState(!1),a=T.useCallback(()=>{n(o=>!o)},[]),r=ge("relative flex flex-col justify-center ",e.className),i=ge(e.error?" ":"",{disabled:e.disabled}),l=s.jsx("span",{className:ge({"":e.error}),children:e.children});return s.jsxs("div",{className:r,tabIndex:1,children:[s.jsx(cL,{...e,className:ge(" ",i),children:l,type:t?"text":"password",rightIcon:s.jsx(dle,{showPassword:t,togglePasswordVisiblity:a,className:"absolute right-2 cursor-pointer"})}),e.error&&s.jsx(pu,{className:"self-start",children:e.error})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function j({showErrorMessage:e=!0,digitsOnly:t=!1,name:n,customChangeEvent:a,customChangeEventOnly:r,...i}){const[l,o,{setValue:c}]=uu(n),d=e&&o.touched&&o.error;return s.jsx(s.Fragment,{children:s.jsxs(s.Fragment,{children:[i.type!=="password"&&s.jsx(uL,{...l,onKeyDown:h=>{t&&(h.keyCode>95&&h.keyCode<106||h.keyCode>47&&h.keyCode<58||h.keyCode===8||h.preventDefault())},onChange:h=>{a&&(a(h,c),r)||c(h.target.value)},...i,error:typeof d=="object"?JSON.stringify(d):d,children:i.label}),i.type==="password"&&s.jsx(hle,{...l,...i,error:typeof d=="object"?JSON.stringify(d):d,children:i.label})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var ud=(e=>(e.ADMIN="admin",e.USER="user",e.CONSULTANT="consultant",e))(ud||{}),fle=(e=>(e.HA="ha",e.KI="ki",e.WEP="wep",e.HG="hg",e.MEB="meb",e.EK="ek",e.VM="vm",e.KDU="kdu",e.UH1="uh1",e.UH2="uh2",e.UH3="uh3",e.EKS="eks",e.UF="uf",e.SV="sv",e.VE="ve",e.EKB="ekb",e.CITIZENS_ALLOWANCE_INFO="citizensAllowanceInfo",e))(fle||{}),ple=(e=>(e.WBA="wba",e))(ple||{}),mle=(e=>(e.BUT="but",e))(mle||{}),Yg=(e=>(e.UNEMPLOYMENT_BENEFIT="unemploymentBenefit",e.CITIZENS_ALLOWANCE="citizensAllowance",e.SOCIAL_AID="socialAid",e.ASYLUM_SEEKER_BENEFITS="asylumSeekerBenefits",e.HOUSING_BENEFIT="housingBenefit",e.CHILD_ALLOWANCE="childAllowance",e.BILDUNG_UND_TEILHABE="bildungUndTeilhabe",e.CITIZENS_ALLOWANCE_RENEWAL="citizensAllowanceRenewal",e))(Yg||{}),gle=(e=>(e.RENT_SUBSIDY="rentSubsidy",e.BURDEN_ALLOWANCE="burdenAllowance",e.HOUSING_BENEFIT_INFO="housingBenefitInfo",e))(gle||{}),ble=(e=>(e.CHILD_BENEFIT="childBenefit",e.APCS="apcs",e.CSA="csa",e.SAD="sad",e.CNND="cnnd",e.CSM="csm",e.EIC="eic",e.SEI="sei",e.CHILD_ALLOWANCE_INFO="childAllowanceInfo",e))(ble||{});class da{constructor(t,n){y(this,"label");y(this,"value");this.label=n,this.value=t}}var LO=(e=>(e.ACTIVE="active",e.INACTIVE="inactive",e))(LO||{});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const dL=[new da(ud.CONSULTANT,"Consultant"),new da(ud.ADMIN,"Admin"),new da(ud.USER,"User")],Ele=[new da(LO.ACTIVE,"Aktivieren"),new da(LO.INACTIVE,"Deaktivieren")];class Nle{constructor({department:t,user:n,...a}={}){y(this,"name","");y(this,"phone","");y(this,"position","");y(this,"department",null);y(this,"consultationArea","");y(this,"roles",[new da(ud.CONSULTANT,"Consultant")]);y(this,"email","");y(this,"status",null);y(this,"credits",0);Object.assign(this,a),this.addDepartment(t),this.addEmail(n==null?void 0:n.email),this.addStatus(n==null?void 0:n.status),this.addRoles(n==null?void 0:n.roles),this.addCredits(n==null?void 0:n.credits)}addDepartment(t){t&&t.id&&(this.department=new da(t.id||"",t.departmentTitle||""))}addStatus(t){t&&(this.status=new da(t,t))}addRoles(t){t&&(this.roles=t.map(n=>dL.find(a=>a.value===n)))}addEmail(t){t&&(this.email=t)}addCredits(t){t!=null&&(this.credits=t)}}class xle{constructor({department:t,email:n,roles:a,status:r,credits:i,...l}){y(this,"name","");y(this,"phone","");y(this,"position","");y(this,"department","");y(this,"consultationArea","");y(this,"roles",[]);y(this,"status");y(this,"email");y(this,"credits",0);Object.assign(this,l),this.addDepartment(t),this.addEmail(n),this.addRoles(a),this.addStatus(r),this.credits=i}addDepartment(t){t!=null&&t.value&&(this.department=t.value)}addRoles(t){t&&(this.roles=t.map(n=>n.value))}addEmail(t){t&&(this.email=t)}addStatus(t){t&&(this.status=t.value)}getUserPayload(){return{email:this.email,roles:this.roles,status:this.status,credits:this.credits}}getConsultantPayload(){return{name:this.name,phone:this.phone,position:this.position,department:this.department,consultationArea:this.consultationArea}}getUserPayloadWithConsultant(){return{...this.getUserPayload(),...this.getConsultantPayload()}}}function Sle(e){for(var t=-1,n=e==null?0:e.length,a=0,r=[];++t{t==null||t.cancel("Query was cancelled by React Query")},n}function yle({limit:e,page:t,search:n,sort:a,...r}={}){const i=Co({limit:e,page:t,sort:a,search:n},wo);return hu({queryKey:[rt.DEPARTMENTS,...Object.values(i)],queryFn:async()=>await fL(i),...r})}function wle({id:e,...t}){return hu({queryKey:[rt.DEPARTMENTS,e],queryFn:async()=>await Tle(e),...t})}function Cle({...e}={}){return za({mutationFn:async t=>await Ole(t),...e})}function Rle({...e}={}){return za({mutationFn:async t=>await vle((t==null?void 0:t.id)||"",t),...e})}function Mle({...e}={}){return za({mutationFn:async t=>await Ale(t),...e})}function Dle({sort:e,search:t,...n}={}){const r=Hn.CancelToken.source(),i=Co({sort:e,search:t},wo),l=[rt.DEPARTMENTS,...Object.values(i)],{data:o,fetchNextPage:c,...d}=$p({queryKey:l,queryFn:({pageParam:f=1})=>fL({...i,page:f},r),initialPageParam:1,...n,getNextPageParam:f=>{var m,g,b,E,S,I;if(((g=(m=f==null?void 0:f.data)==null?void 0:m.meta)==null?void 0:g.currentPage)<((E=(b=f==null?void 0:f.data)==null?void 0:b.meta)==null?void 0:E.totalPages))return Number(((I=(S=f==null?void 0:f.data)==null?void 0:S.meta)==null?void 0:I.currentPage)+1)},params:i}),{ref:h}=_p({initialInView:!0,onChange:f=>{f&&c()}});return{data:o,ref:h,fetchNextPage:c,...d,list:T.useMemo(()=>(o==null?void 0:o.pages.flatMap(f=>{var m;return((m=f==null?void 0:f.data)==null?void 0:m.items)||[]}))||[],[o==null?void 0:o.pages])}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function jle(e){return dn.post(rt.ORGANIZATIONS,e)}function Ble(e,t){return dn.patch(`${rt.ORGANIZATIONS}/${e}`,t)}function Ple(e){return dn.get(rt.ORGANIZATIONS+"/"+e)}function Hle(e){return dn.delete(`${rt.ORGANIZATIONS}/${e}`)}function pL(e,t){const n=dn.get(rt.ORGANIZATIONS,{params:e});return n.cancel=()=>{t==null||t.cancel("Query was cancelled by React Query")},n}function Lle({limit:e,page:t,search:n,sort:a,...r}={}){const i=Co({limit:e,page:t,sort:a,search:n},wo);return hu({queryKey:[rt.ORGANIZATIONS,...Object.values(i)],queryFn:async()=>await pL(i),...r})}function Aye({id:e,...t}){return hu({queryKey:[rt.ORGANIZATIONS,e],queryFn:async()=>await Ple(e),...t})}function yye({...e}={}){return za({mutationFn:async t=>await jle(t),...e})}function wye({...e}={}){return za({mutationFn:async t=>await Ble((t==null?void 0:t.id)||"",t),...e})}function Ule({...e}={}){return za({mutationFn:async t=>await Hle(t),...e})}function kle({sort:e,limit:t,search:n,...a}={}){const i=Hn.CancelToken.source(),l=Co({sort:e,limit:t,search:n},wo),o=[rt.ORGANIZATIONS,...Object.values(l)],{data:c,fetchNextPage:d,...h}=$p({queryKey:o,queryFn:({pageParam:m})=>pL({...l,page:m},i),initialPageParam:1,...a,getNextPageParam:m=>{var g,b,E,S,I,O;if(((b=(g=m==null?void 0:m.data)==null?void 0:g.meta)==null?void 0:b.currentPage)<((S=(E=m==null?void 0:m.data)==null?void 0:E.meta)==null?void 0:S.totalPages))return Number(((O=(I=m==null?void 0:m.data)==null?void 0:I.meta)==null?void 0:O.currentPage)+1)}}),{ref:f}=_p({initialInView:!0,onChange:m=>{m&&d()}});return{data:c,ref:f,fetchNextPage:d,...h,list:T.useMemo(()=>(c==null?void 0:c.pages.flatMap(m=>{var g;return((g=m==null?void 0:m.data)==null?void 0:g.items)||[]}))||[],[c==null?void 0:c.pages])}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Fle({className:e}){var o;const[t,n]=T.useState(""),{data:a,isFetching:r}=Lle({search:t}),i=em(T.useCallback(c=>{n(c)},[]),500),l=T.useMemo(()=>{var d;const c=((d=a==null?void 0:a.data)==null?void 0:d.items)||[];return hL(c.map(h=>new da(h.id||"",((h==null?void 0:h.umbrellaOrganizationTitle)||"")+" - "+((h==null?void 0:h.organizationTitle)||""))))},[(o=a==null?void 0:a.data)==null?void 0:o.items]);return s.jsx(Ft,{name:"organization",label:"Organisation",placeholder:"Suche nach Organisation...",filterOption:T.useCallback(()=>!0,[]),options:l,onMenuClose:T.useCallback(()=>{n("")},[]),isSearchable:!0,isLoading:r,makeSearch:i,closeMenuOnSelect:!0,className:ge("w-full",e),isClearable:!0})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Yle({className:e}){const t=tt();return s.jsxs(Mi,{className:ge("flex w-full flex-col items-center gap-5",e),autoComplete:"off",children:[s.jsx(Fle,{name:"organization"}),s.jsx(j,{name:"departmentTitle",label:"Name der Abteilung",className:"flex w-full flex-col",placeholder:"Name der Abteilung"}),s.jsx(j,{name:"contactPersonName",className:"flex w-full flex-col",placeholder:"Name der Ansprechpartnerin",label:"Name der Ansprechpartnerin"}),s.jsx(j,{name:"contactPersonPosition",className:"flex w-full flex-col",placeholder:"Position der Ansprechpartnerin",label:"Position der Ansprechpartnerin"}),s.jsx(j,{name:"contactPersonPhone",className:"flex w-full flex-col",placeholder:"Sollte mit +49 oder 0 beginnen",label:"Telefonnummer der Ansprechpartnerin",type:"tel"}),s.jsx(j,{name:"contactPersonEmail",className:"flex w-full flex-col",placeholder:"E-Mail Adresse der Ansprechpartnerin",label:"E-Mail Adresse der Ansprechpartnerin",type:"email"}),s.jsx("span",{className:"font-medium",children:"Optional: Rechnungsanschrift"}),s.jsx(j,{name:"contactPersonBillingAddress",className:"flex w-full flex-col",placeholder:"Rechnungsanschrift Straße und Hausnummer",label:"Rechnungsanschrift Straße und Hausnummer"}),s.jsx(j,{name:"contactPersonZip",className:"flex w-full flex-col",placeholder:"Rechnungsanschrift Postleitzahl",label:"Rechnungsanschrift Postleitzahl"}),s.jsx(j,{name:"contactPersonCity",className:"flex w-full flex-col",placeholder:"Rechnungsanschrift Ort",label:"Rechnungsanschrift Ort"}),s.jsx("div",{className:"w-full pt-5",children:s.jsx(Je,{type:"submit",loading:t.isSubmitting,className:"w-full bg-black",classNames:{children:"text-white"},children:"Absenden"})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function mu(e,t){const n=e;return xn.success(n,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light",transition:u0,...t})}function rl(e,t){return xn.error(e,{position:"top-right",autoClose:5e3,hideProgressBar:!1,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,theme:"light",transition:u0,...t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};class zle{constructor({organization:t,...n}={}){y(this,"departmentTitle","");y(this,"organization",null);y(this,"contactPersonName","");y(this,"contactPersonPosition","");y(this,"contactPersonPhone","");y(this,"contactPersonEmail","");y(this,"contactPersonBillingAddress","");y(this,"contactPersonZip","");y(this,"contactPersonCity","");Object.assign(this,n),this.addOrganization(t)}addOrganization(t){t&&(t!=null&&t.id)&&(this.organization=new da(t.id||"",(t==null?void 0:t.organizationTitle)||""))}}class Gle{constructor({organization:t,...n}){y(this,"departmentTitle","");y(this,"organization","");y(this,"contactPersonName","");y(this,"contactPersonPosition","");y(this,"contactPersonPhone","");y(this,"contactPersonEmail","");y(this,"contactPersonBillingAddress","");y(this,"contactPersonZip","");y(this,"contactPersonCity","");Object.assign(this,n),this.addOrganization(t)}addOrganization(t){t!=null&&t.value&&(this.organization=t.value)}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Wle(e){const{data:t}=wle({id:e,enabled:!!e,suspense:!0});return T.useMemo(()=>new zle(t==null?void 0:t.data),[t])}function qle(e){const{mutateAsync:t}=Cle(),{mutateAsync:n}=Rle(),a=Yn(),r=sl();return T.useCallback(async(i,l)=>{var o,c,d,h,f;try{let m=null;l.setSubmitting(!0);const g=new Gle(i);if(e?m=(await n({id:e,...g})).data:m=(await t(g)).data,m){l.setSubmitting(!0);let b="Die Abteilung wurde erfolgreich erstellt!";e&&(b="Die Abteilung wurde erfolgreich aktualisiert!"),mu(b)}r.invalidateQueries({queryKey:[rt.DEPARTMENTS],exact:!1}),a(qe.DEPARTMENTS,{replace:!0})}catch(m){let g=!1;if((o=m==null?void 0:m.response)!=null&&o.data){const E=Object.keys(m.response.data),S=Object.keys(i);E.find(O=>S.includes(O))&&(l.setErrors(m.response.data),g=!0,rl("Formular auf Fehler prüfen!"))}let b="Etwas Schlimmes ist passiert!";(d=(c=m==null?void 0:m.response)==null?void 0:c.data)!=null&&d.message&&(b=(f=(h=m==null?void 0:m.response)==null?void 0:h.data)==null?void 0:f.message),g||rl(b),l.setSubmitting(!0)}},[e,n,t,a,r])}function gu(e){this._maxSize=e,this.clear()}gu.prototype.clear=function(){this._size=0,this._values=Object.create(null)};gu.prototype.get=function(e){return this._values[e]};gu.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Vle=/[^.^\]^[]+|(?=\[\]|\.\.)/g,mL=/^\d+$/,Kle=/^\d/,Zle=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Jle=/^\s*(['"]?)(.*?)(\1)\s*$/,xT=512,RR=new gu(xT),MR=new gu(xT),DR=new gu(xT),Lc={Cache:gu,split:UO,normalizePath:cS,setter:function(e){var t=cS(e);return MR.get(e)||MR.set(e,function(a,r){for(var i=0,l=t.length,o=a;ie.match(eoe)||[],AN=e=>e[0].toUpperCase()+e.slice(1),IT=(e,t)=>TN(e).join(t).toLowerCase(),gL=e=>TN(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),toe=e=>AN(gL(e)),noe=e=>IT(e,"_"),aoe=e=>IT(e,"-"),roe=e=>AN(IT(e," ")),ioe=e=>TN(e).map(AN).join(" ");var uS={words:TN,upperFirst:AN,camelCase:gL,pascalCase:toe,snakeCase:noe,kebabCase:aoe,sentenceCase:roe,titleCase:ioe},OT={exports:{}};OT.exports=function(e){return bL(soe(e),e)};OT.exports.array=bL;function bL(e,t){var n=e.length,a=new Array(n),r={},i=n,l=loe(t),o=ooe(e);for(t.forEach(function(d){if(!o.has(d[0])||!o.has(d[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)r[i]||c(e[i],i,new Set);return a;function c(d,h,f){if(f.has(d)){var m;try{m=", node was:"+JSON.stringify(d)}catch{m=""}throw new Error("Cyclic dependency"+m)}if(!o.has(d))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(d));if(!r[h]){r[h]=!0;var g=l.get(d)||new Set;if(g=Array.from(g),h=g.length){f.add(d);do{var b=g[--h];c(b,o.get(b),f)}while(h);f.delete(d)}a[--n]=d}}}function soe(e){for(var t=new Set,n=0,a=e.length;n"",moe=/^Symbol\((.*)\)(.*)$/;function goe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function jR(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return goe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return poe.call(e).replace(moe,"Symbol($1)");const a=doe.call(e).slice(8,-1);return a==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):a==="Error"||e instanceof Error?"["+hoe.call(e)+"]":a==="RegExp"?foe.call(e):null}function Xs(e,t){let n=jR(e,t);return n!==null?n:JSON.stringify(e,function(a,r){let i=jR(this[a],t);return i!==null?i:r},2)}function EL(e){return e==null?[]:[].concat(e)}let NL,boe=/\$\{\s*(\w+)\s*\}/g;NL=Symbol.toStringTag;class fr extends Error{static formatError(t,n){const a=n.label||n.path||"this";return a!==n.path&&(n=Object.assign({},n,{path:a})),typeof t=="string"?t.replace(boe,(r,i)=>Xs(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,a,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[NL]="Error",this.name="ValidationError",this.value=n,this.path=a,this.type=r,this.errors=[],this.inner=[],EL(t).forEach(l=>{if(fr.isError(l)){this.errors.push(...l.errors);const o=l.inner.length?l.inner:[l];this.inner.push(...o)}else this.errors.push(l)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,fr)}}let Li={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:a})=>{const r=a!=null&&a!==n?` (cast from the value \`${Xs(a,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Xs(n,!0)}\``+r:`${e} must match the configured type. The validated value was: \`${Xs(n,!0)}\``+r}},pi={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},wl={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},kO={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},FO={isValue:"${path} field must be ${value}"},YO={noUnknown:"${path} field has unspecified keys: ${unknown}"},zg={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Eoe={notType:e=>{const{path:t,value:n,spec:a}=e,r=a.types.length;if(Array.isArray(n)){if(n.lengthr)return`${t} tuple value has too many items, expected a length of ${r} but got ${n.length} for value: \`${Xs(n,!0)}\``}return fr.formatError(Li.notType,e)}};Object.assign(Object.create(null),{mixed:Li,string:pi,number:wl,date:kO,object:YO,array:zg,boolean:FO,tuple:Eoe});const yN=e=>e&&e.__isYupSchema__;class _b{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:a,then:r,otherwise:i}=n,l=typeof a=="function"?a:(...o)=>o.every(c=>c===a);return new _b(t,(o,c)=>{var d;let h=l(...o)?r:i;return(d=h==null?void 0:h(c))!=null?d:c})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let a=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),r=this.fn(a,t,n);if(r===void 0||r===t)return t;if(!yN(r))throw new TypeError("conditions must return a schema object");return r.resolve(n)}}const $m={context:"$",value:"."};class bu{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===$m.context,this.isValue=this.key[0]===$m.value,this.isSibling=!this.isContext&&!this.isValue;let a=this.isContext?$m.context:this.isValue?$m.value:"";this.path=this.key.slice(a.length),this.getter=this.path&&Lc.getter(this.path,!0),this.map=n.map}getValue(t,n,a){let r=this.isContext?a:this.isValue?t:n;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}bu.prototype.__isYupRef=!0;const Ii=e=>e==null;function Cu(e){function t({value:n,path:a="",options:r,originalValue:i,schema:l},o,c){const{name:d,test:h,params:f,message:m,skipAbsent:g}=e;let{parent:b,context:E,abortEarly:S=l.spec.abortEarly,disableStackTrace:I=l.spec.disableStackTrace}=r;function O(U){return bu.isRef(U)?U.getValue(n,b,E):U}function v(U={}){var W;const z=Object.assign({value:n,originalValue:i,label:l.spec.label,path:U.path||a,spec:l.spec},f,U.params);for(const V of Object.keys(z))z[V]=O(z[V]);const $=new fr(fr.formatError(U.message||m,z),n,z.path,U.type||d,(W=U.disableStackTrace)!=null?W:I);return $.params=z,$}const w=S?o:c;let D={path:a,parent:b,type:d,from:r.from,createError:v,resolve:O,options:r,originalValue:i,schema:l};const C=U=>{fr.isError(U)?w(U):U?c(null):w(v())},M=U=>{fr.isError(U)?w(U):o(U)};if(g&&Ii(n))return C(!0);let L;try{var H;if(L=h.call(D,n,D),typeof((H=L)==null?void 0:H.then)=="function"){if(r.sync)throw new Error(`Validation test of type: "${D.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(L).then(C,M)}}catch(U){M(U);return}C(L)}return t.OPTIONS=e,t}function Noe(e,t,n,a=n){let r,i,l;return t?(Lc.forEach(t,(o,c,d)=>{let h=c?o.slice(1,o.length-1):o;e=e.resolve({context:a,parent:r,value:n});let f=e.type==="tuple",m=d?parseInt(h,10):0;if(e.innerType||f){if(f&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${l}" must contain an index to the tuple element, e.g. "${l}[0]"`);if(n&&m>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${t}. because there is no value at that index. `);r=n,n=n&&n[m],e=f?e.spec.types[m]:e.innerType}if(!d){if(!e.fields||!e.fields[h])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${l} which is a type: "${e.type}")`);r=n,n=n&&n[h],e=e.fields[h]}i=h,l=c?"["+o+"]":"."+o}),{schema:e,parent:r,parentPath:i}):{parent:r,parentPath:t,schema:e}}class $b extends Set{describe(){const t=[];for(const n of this.values())t.push(bu.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const a of this.values())n.push(t(a));return n}clone(){return new $b(this.values())}merge(t,n){const a=this.clone();return t.forEach(r=>a.add(r)),n.forEach(r=>a.delete(r)),a}}function Qu(e,t=new Map){if(yN(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let a=0;a{this.typeError(Li.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Qu(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let a=t(this);return this._mutate=n,a}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,a=t.clone();const r=Object.assign({},n.spec,a.spec);return a.spec=r,a.internalTests=Object.assign({},n.internalTests,a.internalTests),a._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),a._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),a.tests=n.tests,a.exclusiveTests=n.exclusiveTests,a.withMutation(i=>{t.tests.forEach(l=>{i.test(l.OPTIONS)})}),a.transforms=[...n.transforms,...a.transforms],a}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let a=n.conditions;n=n.clone(),n.conditions=[],n=a.reduce((r,i)=>i.resolve(r,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,a,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(a=t.abortEarly)!=null?a:this.spec.abortEarly,recursive:(r=t.recursive)!=null?r:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let a=this.resolve(Object.assign({value:t},n)),r=n.assert==="ignore-optionality",i=a._cast(t,n);if(n.assert!==!1&&!a.isType(i)){if(r&&Ii(i))return i;let l=Xs(t),o=Xs(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${a.type}". attempted value: ${l} `+(o!==l?`result of cast: ${o}`:""))}return i}_cast(t,n){let a=t===void 0?t:this.transforms.reduce((r,i)=>i.call(this,r,t,this),t);return a===void 0&&(a=this.getDefault(n)),a}_validate(t,n={},a,r){let{path:i,originalValue:l=t,strict:o=this.spec.strict}=n,c=t;o||(c=this._cast(c,Object.assign({assert:!1},n)));let d=[];for(let h of Object.values(this.internalTests))h&&d.push(h);this.runTests({path:i,value:c,originalValue:l,options:n,tests:d},a,h=>{if(h.length)return r(h,c);this.runTests({path:i,value:c,originalValue:l,options:n,tests:this.tests},a,r)})}runTests(t,n,a){let r=!1,{tests:i,value:l,originalValue:o,path:c,options:d}=t,h=E=>{r||(r=!0,n(E,l))},f=E=>{r||(r=!0,a(E,l))},m=i.length,g=[];if(!m)return f([]);let b={value:l,originalValue:o,path:c,options:d,schema:this};for(let E=0;Ethis.resolve(h)._validate(d,h,m,g)}validate(t,n){var a;let r=this.resolve(Object.assign({},n,{value:t})),i=(a=n==null?void 0:n.disableStackTrace)!=null?a:r.spec.disableStackTrace;return new Promise((l,o)=>r._validate(t,n,(c,d)=>{fr.isError(c)&&(c.value=d),o(c)},(c,d)=>{c.length?o(new fr(c,d,void 0,void 0,i)):l(d)}))}validateSync(t,n){var a;let r=this.resolve(Object.assign({},n,{value:t})),i,l=(a=n==null?void 0:n.disableStackTrace)!=null?a:r.spec.disableStackTrace;return r._validate(t,Object.assign({},n,{sync:!0}),(o,c)=>{throw fr.isError(o)&&(o.value=c),o},(o,c)=>{if(o.length)throw new fr(o,t,void 0,void 0,l);i=c}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,a=>{if(fr.isError(a))return!1;throw a})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(a){if(fr.isError(a))return!1;throw a}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Qu(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const a=this.clone({nullable:t});return a.internalTests.nullable=Cu({message:n,name:"nullable",test(r){return r===null?this.schema.spec.nullable:!0}}),a}optionality(t,n){const a=this.clone({optional:t});return a.internalTests.optionality=Cu({message:n,name:"optionality",test(r){return r===void 0?this.schema.spec.optional:!0}}),a}optional(){return this.optionality(!0)}defined(t=Li.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Li.notNull){return this.nullability(!1,t)}required(t=Li.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Li.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let a=this.clone(),r=Cu(n),i=n.exclusive||n.name&&a.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(a.exclusiveTests[n.name]=!!n.exclusive),a.tests=a.tests.filter(l=>!(l.OPTIONS.name===n.name&&(i||l.OPTIONS.test===r.OPTIONS.test))),a.tests.push(r),a}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let a=this.clone(),r=EL(t).map(i=>new bu(i));return r.forEach(i=>{i.isSibling&&a.deps.push(i.key)}),a.conditions.push(typeof n=="function"?new _b(r,n):_b.fromOptions(r,n)),a}typeError(t){let n=this.clone();return n.internalTests.typeError=Cu({message:t,name:"typeError",skipAbsent:!0,test(a){return this.schema._typeCheck(a)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=Li.oneOf){let a=this.clone();return t.forEach(r=>{a._whitelist.add(r),a._blacklist.delete(r)}),a.internalTests.whiteList=Cu({message:n,name:"oneOf",skipAbsent:!0,test(r){let i=this.schema._whitelist,l=i.resolveAll(this.resolve);return l.includes(r)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:l}})}}),a}notOneOf(t,n=Li.notOneOf){let a=this.clone();return t.forEach(r=>{a._blacklist.add(r),a._whitelist.delete(r)}),a.internalTests.blacklist=Cu({message:n,name:"notOneOf",test(r){let i=this.schema._blacklist,l=i.resolveAll(this.resolve);return l.includes(r)?this.createError({params:{values:Array.from(i).join(", "),resolved:l}}):!0}}),a}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:a,meta:r,optional:i,nullable:l}=n.spec;return{meta:r,label:a,optional:i,nullable:l,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,d,h)=>h.findIndex(f=>f.name===c.name)===d)}}}br.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])br.prototype[`${e}At`]=function(t,n,a={}){const{parent:r,parentPath:i,schema:l}=Noe(this,t,n,a.context);return l[e](r&&r[i],Object.assign({},a,{parent:r,path:t}))};for(const e of["equals","is"])br.prototype[e]=br.prototype.oneOf;for(const e of["not","nope"])br.prototype[e]=br.prototype.notOneOf;const xoe=()=>!0;function rm(e){return new xL(e)}class xL extends br{constructor(t){super(typeof t=="function"?{type:"mixed",check:t}:Object.assign({type:"mixed",check:xoe},t))}}rm.prototype=xL.prototype;function Ce(){return new SL}class SL extends br{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(a.spec.coerce&&!a.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=FO.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return Ii(n)||n===!0}})}isFalse(t=FO.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return Ii(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}Ce.prototype=SL.prototype;let Soe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ioe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,Ooe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,voe=e=>Ii(e)||e===e.trim(),Toe={}.toString();function le(){return new IL}class IL extends br{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce||a.isType(t)||Array.isArray(t))return t;const r=t!=null&&t.toString?t.toString():t;return r===Toe?t:r})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Li.required,name:"required",skipAbsent:!0,test:a=>!!a.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=pi.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(a){return a.length===this.resolve(t)}})}min(t,n=pi.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a.length>=this.resolve(t)}})}max(t,n=pi.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(a){return a.length<=this.resolve(t)}})}matches(t,n){let a=!1,r,i;return n&&(typeof n=="object"?{excludeEmptyString:a=!1,message:r,name:i}=n:r=n),this.test({name:i||"matches",message:r||pi.matches,params:{regex:t},skipAbsent:!0,test:l=>l===""&&a||l.search(t)!==-1})}email(t=pi.email){return this.matches(Soe,{name:"email",message:t,excludeEmptyString:!0})}url(t=pi.url){return this.matches(Ioe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=pi.uuid){return this.matches(Ooe,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=pi.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:voe})}lowercase(t=pi.lowercase){return this.transform(n=>Ii(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ii(n)||n===n.toLowerCase()})}uppercase(t=pi.uppercase){return this.transform(n=>Ii(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ii(n)||n===n.toUpperCase()})}}le.prototype=IL.prototype;let Aoe=e=>e!=+e;function Ut(){return new OL}class OL extends br{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Aoe(t)}}),this.withMutation(()=>{this.transform((t,n,a)=>{if(!a.spec.coerce)return t;let r=t;if(typeof r=="string"){if(r=r.replace(/\s/g,""),r==="")return NaN;r=+r}return a.isType(r)||r===null?r:parseFloat(r)})})}min(t,n=wl.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a>=this.resolve(t)}})}max(t,n=wl.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a<=this.resolve(t)}})}lessThan(t,n=wl.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(a){return athis.resolve(t)}})}positive(t=wl.positive){return this.moreThan(0,t)}negative(t=wl.negative){return this.lessThan(0,t)}integer(t=wl.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Ii(t)?t:t|0)}round(t){var n;let a=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(a.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+a.join(", "));return this.transform(r=>Ii(r)?r:Math[t](r))}}Ut.prototype=OL.prototype;const yoe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ds(e,t=0){return Number(e)||t}function woe(e){const t=yoe.exec(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;const n={year:Ds(t[1]),month:Ds(t[2],1)-1,day:Ds(t[3],1),hour:Ds(t[4]),minute:Ds(t[5]),second:Ds(t[6]),millisecond:t[7]?Ds(t[7].substring(0,3)):0,z:t[8]||void 0,plusMinus:t[9]||void 0,hourOffset:Ds(t[10]),minuteOffset:Ds(t[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let a=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(a=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(a=0-a)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+a,n.second,n.millisecond)}let vL=new Date(""),Coe=e=>Object.prototype.toString.call(e)==="[object Date]";function Bt(){return new im}class im extends br{constructor(){super({type:"date",check(t){return Coe(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,a)=>!a.spec.coerce||a.isType(t)||t===null?t:(t=woe(t),isNaN(t)?im.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let a;if(bu.isRef(t))a=t;else{let r=this.cast(t);if(!this._typeCheck(r))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);a=r}return a}min(t,n=kO.min){let a=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(a)}})}max(t,n=kO.max){let a=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(a)}})}}im.INVALID_DATE=vL;Bt.prototype=im.prototype;Bt.INVALID_DATE=vL;function Roe(e,t=[]){let n=[],a=new Set,r=new Set(t.map(([l,o])=>`${l}-${o}`));function i(l,o){let c=Lc.split(l)[0];a.add(c),r.has(`${o}-${c}`)||n.push([o,c])}for(const l of Object.keys(e)){let o=e[l];a.add(l),bu.isRef(o)&&o.isSibling?i(o.path,l):yN(o)&&"deps"in o&&o.deps.forEach(c=>i(c,l))}return uoe.array(Array.from(a),n).reverse()}function BR(e,t){let n=1/0;return e.some((a,r)=>{var i;if((i=t.path)!=null&&i.includes(a))return n=r,!0}),n}function TL(e){return(t,n)=>BR(e,t)-BR(e,n)}const AL=(e,t,n)=>{if(typeof e!="string")return e;let a=e;try{a=JSON.parse(e)}catch{}return n.isType(a)?a:e};function Gg(e){if("fields"in e){const t={};for(const[n,a]of Object.entries(e.fields))t[n]=Gg(a);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Gg(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Gg)}):"optional"in e?e.optional():e}const Moe=(e,t)=>{const n=[...Lc.normalizePath(t)];if(n.length===1)return n[0]in e;let a=n.pop(),r=Lc.getter(Lc.join(n),!0)(e);return!!(r&&a in r)};let PR=e=>Object.prototype.toString.call(e)==="[object Object]";function Doe(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(a=>n.indexOf(a)===-1)}const joe=TL([]);function bn(e){return new yL(e)}class yL extends br{constructor(t){super({type:"object",check(n){return PR(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=joe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var a;let r=super._cast(t,n);if(r===void 0)return this.getDefault(n);if(!this._typeCheck(r))return r;let i=this.fields,l=(a=n.stripUnknown)!=null?a:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(r).filter(f=>!this._nodes.includes(f))),c={},d=Object.assign({},n,{parent:c,__validating:n.__validating||!1}),h=!1;for(const f of o){let m=i[f],g=f in r;if(m){let b,E=r[f];d.path=(n.path?`${n.path}.`:"")+f,m=m.resolve({value:E,context:n.context,parent:c});let S=m instanceof br?m.spec:void 0,I=S==null?void 0:S.strict;if(S!=null&&S.strip){h=h||f in r;continue}b=!n.__validating||!I?m.cast(r[f],d):r[f],b!==void 0&&(c[f]=b)}else g&&!l&&(c[f]=r[f]);(g!==f in c||c[f]!==r[f])&&(h=!0)}return h?c:r}_validate(t,n={},a,r){let{from:i=[],originalValue:l=t,recursive:o=this.spec.recursive}=n;n.from=[{schema:this,value:l},...i],n.__validating=!0,n.originalValue=l,super._validate(t,n,a,(c,d)=>{if(!o||!PR(d)){r(c,d);return}l=l||d;let h=[];for(let f of this._nodes){let m=this.fields[f];!m||bu.isRef(m)||h.push(m.asNestedTest({options:n,key:f,parent:d,parentPath:n.path,originalParent:l}))}this.runTests({tests:h,value:d,originalValue:l,options:n},a,f=>{r(f.sort(this._sortErrors).concat(c),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),a=n.fields;for(let[r,i]of Object.entries(this.fields)){const l=a[r];a[r]=l===void 0?i:l}return n.withMutation(r=>r.setFields(a,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(a=>{var r;const i=this.fields[a];let l=t;(r=l)!=null&&r.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[a]})),n[a]=i&&"getDefault"in i?i.getDefault(l):void 0}),n}setFields(t,n){let a=this.clone();return a.fields=t,a._nodes=Roe(t,n),a._sortErrors=TL(Object.keys(t)),n&&(a._excludedEdges=n),a}shape(t,n=[]){return this.clone().withMutation(a=>{let r=a._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),r=[...a._excludedEdges,...n]),a.setFields(Object.assign(a.fields,t),r)})}partial(){const t={};for(const[n,a]of Object.entries(this.fields))t[n]="optional"in a&&a.optional instanceof Function?a.optional():a;return this.setFields(t)}deepPartial(){return Gg(this)}pick(t){const n={};for(const a of t)this.fields[a]&&(n[a]=this.fields[a]);return this.setFields(n,this._excludedEdges.filter(([a,r])=>t.includes(a)&&t.includes(r)))}omit(t){const n=[];for(const a of Object.keys(this.fields))t.includes(a)||n.push(a);return this.pick(n)}from(t,n,a){let r=Lc.getter(t,!0);return this.transform(i=>{if(!i)return i;let l=i;return Moe(i,t)&&(l=Object.assign({},i),a||delete l[t],l[n]=r(i)),l})}json(){return this.transform(AL)}noUnknown(t=!0,n=YO.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let a=this.test({name:"noUnknown",exclusive:!0,message:n,test(r){if(r==null)return!0;const i=Doe(this.schema,r);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return a.spec.noUnknown=t,a}unknown(t=!0,n=YO.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const a={};for(const r of Object.keys(n))a[t(r)]=n[r];return a})}camelCase(){return this.transformKeys(uS.camelCase)}snakeCase(){return this.transformKeys(uS.snakeCase)}constantCase(){return this.transformKeys(t=>uS.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),a=super.describe(t);a.fields={};for(const[i,l]of Object.entries(n.fields)){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),a.fields[i]=l.describe(o)}return a}}bn.prototype=yL.prototype;function ri(e){return new wL(e)}class wL extends br{constructor(t){super({type:"array",spec:{types:t},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const a=super._cast(t,n);if(!this._typeCheck(a)||!this.innerType)return a;let r=!1;const i=a.map((l,o)=>{const c=this.innerType.cast(l,Object.assign({},n,{path:`${n.path||""}[${o}]`}));return c!==l&&(r=!0),c});return r?i:a}_validate(t,n={},a,r){var i;let l=this.innerType,o=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,a,(c,d)=>{var h;if(!o||!l||!this._typeCheck(d)){r(c,d);return}let f=new Array(d.length);for(let g=0;gr(g.concat(c),d))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(AL)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!yN(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Xs(t));return n.innerType=t,n.spec=Object.assign({},n.spec,{types:t}),n}length(t,n=zg.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(a){return a.length===this.resolve(t)}})}min(t,n){return n=n||zg.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(a){return a.length>=this.resolve(t)}})}max(t,n){return n=n||zg.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(a){return a.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(a,r,i)=>!t(a,r,i):a=>!!a;return this.transform(a=>a!=null?a.filter(n):a)}describe(t){const n=(t?this.resolve(t):this).clone(),a=super.describe(t);if(n.innerType){var r;let i=t;(r=i)!=null&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),a.innerType=n.innerType.describe(i)}return a}}ri.prototype=wL.prototype;globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Boe(){return bn().shape({departmentTitle:le().required("Abteilungstitel ist erforderlich"),contactPersonName:le().required("Name des Ansprechpartners ist erforderlich"),contactPersonPosition:le().required("Position des Ansprechpartners ist erforderlich"),contactPersonPhone:le().matches(/^(\+49|0)(\d{2,5})(\d{3,9})$/,"Telefonnummer ist nicht gültig. Sie sollte mit +49 oder 0 beginnen, gefolgt von der Vorwahl (2-5 Ziffern) und der Teilnehmernummer (3-9 Ziffern)."),contactPersonEmail:le().email("E-Mail ist nicht gültig").required("E-Mail des Ansprechpartners ist erforderlich"),contactPersonBillingAddress:le().required("Rechnungsadresse ist erforderlich"),contactPersonZip:le().required("Postleitzahl ist erforderlich"),contactPersonCity:le().required("Stadt ist erforderlich")})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Poe({id:e,...t}){const n=Wle(e);return s.jsx(fs,{enableReinitialize:!0,initialValues:n,validationSchema:Boe(),onSubmit:qle(e),children:s.jsx(Yle,{...t})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Hoe({className:e}){const t=RP(),n=Yn(),a=()=>{n(qe.DEPARTMENTS,{replace:!0})};return s.jsx(pH,{title:t.id?s.jsx("span",{className:"text-lg font-medium",children:"Abteilung bearbeiten"}):s.jsx("span",{className:"text-lg font-medium",children:"Abteilung hinzufügen"}),onClose:a,className:e,children:s.jsx(Poe,{id:t.id})})}const Loe=Object.freeze(Object.defineProperty({__proto__:null,default:Hoe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Uoe({className:e}){const[t,n]=T.useState(""),{data:a,isFetching:r}=yle({search:t}),i=em(T.useCallback(o=>{n(o)},[]),500),l=T.useMemo(()=>hL(a==null?void 0:a.data.items.map(o=>{var c;return{label:((c=o==null?void 0:o.organization)==null?void 0:c.organizationTitle)+" - "+(o==null?void 0:o.departmentTitle),value:o.id||""}})),[a==null?void 0:a.data.items]);return s.jsx(Ft,{name:"department",label:"Abteilung",placeholder:"Suche nach Abteilung ...",filterOption:T.useCallback(()=>!0,[]),options:l,onMenuClose:T.useCallback(()=>{n("")},[]),isSearchable:!0,isLoading:r,makeSearch:i,closeMenuOnSelect:!0,className:ge("w-full",e),isClearable:!0})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function koe({className:e}){const t=tt();return s.jsxs(Mi,{className:ge("flex w-full flex-col items-center gap-5",e),autoComplete:"off",children:[s.jsx(Uoe,{name:"department"}),s.jsx(j,{name:"name",label:"Name Berater*in",className:"flex w-full flex-col",placeholder:"Name Berater*in"}),s.jsx(j,{name:"position",className:"flex w-full flex-col",placeholder:"Position Berater*in",label:"Position Berater*in"}),s.jsx(j,{name:"consultationArea",className:"flex w-full flex-col",placeholder:"Beratungsbereich",label:"Beratungsbereich"}),s.jsx(j,{name:"phone",className:"flex w-full flex-col",placeholder:"Sollte mit +49 oder 0 beginnen",label:"Telefonnummer Berater*in",type:"tel"}),s.jsx("span",{className:"text-lg font-medium",children:"Technische Daten"}),s.jsx(j,{name:"email",className:"flex w-full flex-col",placeholder:"E-Mail Adresse",label:"E-Mail Adresse",type:"email"}),s.jsx(j,{name:"credits",className:"flex w-full flex-col",placeholder:"0",label:"Guthaben (Token)",type:"number"}),s.jsx(Ft,{name:"roles",options:dL,label:"Rolle",isMulti:!0,className:"w-full"}),s.jsx(Ft,{name:"status",options:Ele,label:"Status",className:"w-full"}),s.jsx("div",{className:"w-full pt-5",children:s.jsx(Je,{type:"submit",loading:t.isSubmitting,className:"w-full bg-black",classNames:{children:"text-white"},children:"Absenden"})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Foe=async(e,t)=>{const{data:n}=await dn.patch(`/users/${e}/credits`,{amount:t});return n};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Yoe(e){return dn.post(rt.CONSULTANT_WITH_USER,e)}function zoe(e,t){return dn.patch(`${rt.CONSULTANT_WITH_USER}/${e}`,t)}function Goe(e){return dn.delete(`${rt.CONSULTANT_WITH_USER}/${e}`)}function Woe(e,t){const n=dn.get(rt.CONSULTANTS,{params:e});return n.cancel=()=>{t==null||t.cancel("Query was cancelled by React Query")},n}function qoe(e){return dn.get(rt.CONSULTANTS+"/"+e)}function Voe({id:e,...t}){return hu({queryKey:[rt.CONSULTANTS,e],queryFn:async()=>await qoe(e),...t})}function Koe({...e}={}){return za({mutationFn:async t=>await Yoe(t),...e})}function Zoe({...e}={}){return za({mutationFn:async t=>await Goe(t),...e})}function Joe({...e}={}){return za({mutationFn:async t=>await zoe((t==null?void 0:t.id)||"",t),...e})}function Qoe({sort:e,search:t,...n}={}){const r=Hn.CancelToken.source(),i=Co({sort:e,search:t},wo),l=[rt.CONSULTANTS,...Object.values(i)],{data:o,fetchNextPage:c,...d}=$p({queryKey:l,queryFn:({pageParam:f})=>Woe({...i,page:f},r),initialPageParam:1,...n,getNextPageParam:f=>{var m,g,b,E,S,I;if(((g=(m=f==null?void 0:f.data)==null?void 0:m.meta)==null?void 0:g.currentPage)<((E=(b=f==null?void 0:f.data)==null?void 0:b.meta)==null?void 0:E.totalPages))return Number(((I=(S=f==null?void 0:f.data)==null?void 0:S.meta)==null?void 0:I.currentPage)+1)}}),{ref:h}=_p({initialInView:!0,onChange:f=>{f&&c()}});return{data:o,ref:h,fetchNextPage:c,...d,list:T.useMemo(()=>(o==null?void 0:o.pages.flatMap(f=>{var m;return((m=f==null?void 0:f.data)==null?void 0:m.items)||[]}))||[],[o==null?void 0:o.pages])}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Xoe(e){const{data:t}=Voe({id:e,enabled:!!e,suspense:!0});return T.useMemo(()=>new Nle(t==null?void 0:t.data),[t])}function _oe(e){const{mutateAsync:t}=Koe(),{mutateAsync:n}=Joe(),a=Yn(),r=sl();return T.useCallback(async(i,l)=>{var o,c,d,h,f,m;try{let g=null;l.setSubmitting(!0);const b=new xle(i).getUserPayloadWithConsultant();if(e?g=(await n({id:e,...b})).data:g=(await t(b)).data,g&&((o=g.user)!=null&&o.id)&&await Foe(g.user.id,i.credits),g){l.setSubmitting(!0);let E="Der Berater wurde erfolgreich erstellt!";e&&(E="Der Berater wurde erfolgreich aktualisiert!"),mu(E)}r.invalidateQueries({queryKey:[rt.CONSULTANTS],exact:!1}),a(qe.CONSULTANTS,{replace:!0})}catch(g){let b=!1;if((c=g==null?void 0:g.response)!=null&&c.data){const S=Object.keys(g.response.data),I=Object.keys(i);S.find(v=>I.includes(v))&&(l.setErrors(g.response.data),b=!0,rl("Formular auf Fehler prüfen!"))}let E="Etwas Schlimmes ist passiert!";(h=(d=g==null?void 0:g.response)==null?void 0:d.data)!=null&&h.message&&(E=(m=(f=g==null?void 0:g.response)==null?void 0:f.data)==null?void 0:m.message),b||rl(E),l.setSubmitting(!1)}},[e,r,n,t,a])}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function $oe(){return bn().shape({name:le().required("Name ist erforderlich"),phone:le().nullable().notRequired().test("valid-phone","Telefonnummer ist nicht gültig. Sie sollte mit +49 oder 0 beginnen.",e=>e?/^(\+49|0)(\d{2,5})(\d{3,9})$/.test(e):!0),position:le().required("Position ist erforderlich"),department:bn().required("Abteilung ist erforderlich"),consultationArea:le().required("Beratungsbereich ist erforderlich"),credits:Ut().typeError("Muss eine Zahl sein").min(0,"Guthaben darf nicht negativ sein").nullable()})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ece({id:e,...t}){const n=Xoe(e);return s.jsx(fs,{enableReinitialize:!0,initialValues:n,validationSchema:$oe(),onSubmit:_oe(e),children:s.jsx(koe,{...t})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function tce({className:e}){const t=RP(),n=Yn(),a=()=>{n(qe.CONSULTANTS,{replace:!0})};return s.jsx(pH,{className:ge("",e),onClose:a,title:t.id?s.jsx("span",{className:"text-lg font-medium",children:"Berater*in bearbeiten"}):s.jsx("span",{className:"text-lg font-medium",children:"Beraterin hinzufügen"}),children:s.jsx(ece,{id:t.id})})}const nce=Object.freeze(Object.defineProperty({__proto__:null,default:tce},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var CL={exports:{}},dS={exports:{}},HR;function ace(){return HR||(HR=1,function(e,t){(function(n,a){e.exports=a($c())})(Ar,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,l=a.enc;l.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,f=this._map;c.clamp();for(var m=[],g=0;g>>2]>>>24-g%4*8&255,E=d[g+1>>>2]>>>24-(g+1)%4*8&255,S=d[g+2>>>2]>>>24-(g+2)%4*8&255,I=b<<16|E<<8|S,O=0;O<4&&g+O*.75>>6*(3-O)&63));var v=f.charAt(64);if(v)for(;m.length%4;)m.push(v);return m.join("")},parse:function(c){var d=c.length,h=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var m=0;m>>6-g%4*2,S=b|E;f[m>>>2]|=S<<24-m%4*8,m++}return i.create(f,m)}}(),n.enc.Base64})}(dS)),dS.exports}var hS={exports:{}},fS={exports:{}},LR;function rce(){return LR||(LR=1,function(e,t){(function(n,a){e.exports=a($c())})(Ar,function(n){return function(){var a=n,r=a.lib,i=r.WordArray,l=r.Hasher,o=a.algo,c=[],d=o.SHA1=l.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,f){for(var m=this._hash.words,g=m[0],b=m[1],E=m[2],S=m[3],I=m[4],O=0;O<80;O++){if(O<16)c[O]=h[f+O]|0;else{var v=c[O-3]^c[O-8]^c[O-14]^c[O-16];c[O]=v<<1|v>>>31}var w=(g<<5|g>>>27)+I+c[O];O<20?w+=(b&E|~b&S)+1518500249:O<40?w+=(b^E^S)+1859775393:O<60?w+=(b&E|b&S|E&S)-1894007588:w+=(b^E^S)-899497514,I=S,S=E,E=b<<30|b>>>2,b=g,g=w}m[0]=m[0]+g|0,m[1]=m[1]+b|0,m[2]=m[2]+E|0,m[3]=m[3]+S|0,m[4]=m[4]+I|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,g=h.sigBytes*8;return f[g>>>5]|=128<<24-g%32,f[(g+64>>>9<<4)+14]=Math.floor(m/4294967296),f[(g+64>>>9<<4)+15]=m,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=l.clone.call(this);return h._hash=this._hash.clone(),h}});a.SHA1=l._createHelper(d),a.HmacSHA1=l._createHmacHelper(d)}(),n.SHA1})}(fS)),fS.exports}var pS={exports:{}},UR;function ice(){return UR||(UR=1,function(e,t){(function(n,a){e.exports=a($c())})(Ar,function(n){(function(){var a=n,r=a.lib,i=r.Base,l=a.enc,o=l.Utf8,c=a.algo;c.HMAC=i.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=o.parse(h));var f=d.blockSize,m=f*4;h.sigBytes>m&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),b=this._iKey=h.clone(),E=g.words,S=b.words,I=0;I>>2]&255;H.sigBytes-=U}};i.BlockCipher=g.extend({cfg:g.cfg.extend({mode:S,padding:O}),reset:function(){var H;g.reset.call(this);var U=this.cfg,W=U.iv,z=U.mode;this._xformMode==this._ENC_XFORM_MODE?H=z.createEncryptor:(H=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==H?this._mode.init(this,W&&W.words):(this._mode=H.call(z,this,W&&W.words),this._mode.__creator=H)},_doProcessBlock:function(H,U){this._mode.processBlock(H,U)},_doFinalize:function(){var H,U=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(U.pad(this._data,this.blockSize),H=this._process(!0)):(H=this._process(!0),U.unpad(H)),H},blockSize:128/32});var v=i.CipherParams=l.extend({init:function(H){this.mixIn(H)},toString:function(H){return(H||this.formatter).stringify(this)}}),w=r.format={},D=w.OpenSSL={stringify:function(H){var U,W=H.ciphertext,z=H.salt;return z?U=o.create([1398893684,1701076831]).concat(z).concat(W):U=W,U.toString(h)},parse:function(H){var U,W=h.parse(H),z=W.words;return z[0]==1398893684&&z[1]==1701076831&&(U=o.create(z.slice(2,4)),z.splice(0,4),W.sigBytes-=16),v.create({ciphertext:W,salt:U})}},C=i.SerializableCipher=l.extend({cfg:l.extend({format:D}),encrypt:function(H,U,W,z){z=this.cfg.extend(z);var $=H.createEncryptor(W,z),V=$.finalize(U),F=$.cfg;return v.create({ciphertext:V,key:W,iv:F.iv,algorithm:H,mode:F.mode,padding:F.padding,blockSize:H.blockSize,formatter:z.format})},decrypt:function(H,U,W,z){z=this.cfg.extend(z),U=this._parse(U,z.format);var $=H.createDecryptor(W,z).finalize(U.ciphertext);return $},_parse:function(H,U){return typeof H=="string"?U.parse(H,this):H}}),M=r.kdf={},B=M.OpenSSL={execute:function(H,U,W,z,$){if(z||(z=o.random(64/8)),$)var V=m.create({keySize:U+W,hasher:$}).compute(H,z);else var V=m.create({keySize:U+W}).compute(H,z);var F=o.create(V.words.slice(U),W*4);return V.sigBytes=U*4,v.create({key:V,iv:F,salt:z})}},L=i.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:B}),encrypt:function(H,U,W,z){z=this.cfg.extend(z);var $=z.kdf.execute(W,H.keySize,H.ivSize,z.salt,z.hasher);z.iv=$.iv;var V=C.encrypt.call(this,H,U,$.key,z);return V.mixIn($),V},decrypt:function(H,U,W,z){z=this.cfg.extend(z),U=this._parse(U,z.format);var $=z.kdf.execute(W,H.keySize,H.ivSize,U.salt,z.hasher);z.iv=$.iv;var V=C.decrypt.call(this,H,U,$.key,z);return V}})}()})}(mS)),mS.exports}(function(e,t){(function(n,a,r){e.exports=a($c(),ace(),o5(),RL(),sce())})(Ar,function(n){return function(){var a=n,r=a.lib,i=r.BlockCipher,l=a.algo,o=[],c=[],d=[],h=[],f=[],m=[],g=[],b=[],E=[],S=[];(function(){for(var v=[],w=0;w<256;w++)w<128?v[w]=w<<1:v[w]=w<<1^283;for(var D=0,C=0,w=0;w<256;w++){var M=C^C<<1^C<<2^C<<3^C<<4;M=M>>>8^M&255^99,o[D]=M,c[M]=D;var B=v[D],L=v[B],H=v[L],U=v[M]*257^M*16843008;d[D]=U<<24|U>>>8,h[D]=U<<16|U>>>16,f[D]=U<<8|U>>>24,m[D]=U;var U=H*16843009^L*65537^B*257^D*16843008;g[M]=U<<24|U>>>8,b[M]=U<<16|U>>>16,E[M]=U<<8|U>>>24,S[M]=U,D?(D=B^v[v[v[H^B]]],C^=v[v[C]]):D=C=1}})();var I=[0,1,2,4,8,16,32,64,128,27,54],O=l.AES=i.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var w=this._keyPriorReset=this._key,D=w.words,C=w.sigBytes/4,M=this._nRounds=C+6,B=(M+1)*4,L=this._keySchedule=[],H=0;H6&&H%C==4&&(v=o[v>>>24]<<24|o[v>>>16&255]<<16|o[v>>>8&255]<<8|o[v&255]):(v=v<<8|v>>>24,v=o[v>>>24]<<24|o[v>>>16&255]<<16|o[v>>>8&255]<<8|o[v&255],v^=I[H/C|0]<<24),L[H]=L[H-C]^v);for(var U=this._invKeySchedule=[],W=0;W>>24]]^b[o[v>>>16&255]]^E[o[v>>>8&255]]^S[o[v&255]]}}},encryptBlock:function(v,w){this._doCryptBlock(v,w,this._keySchedule,d,h,f,m,o)},decryptBlock:function(v,w){var D=v[w+1];v[w+1]=v[w+3],v[w+3]=D,this._doCryptBlock(v,w,this._invKeySchedule,g,b,E,S,c);var D=v[w+1];v[w+1]=v[w+3],v[w+3]=D},_doCryptBlock:function(v,w,D,C,M,B,L,H){for(var U=this._nRounds,W=v[w]^D[0],z=v[w+1]^D[1],$=v[w+2]^D[2],V=v[w+3]^D[3],F=4,te=1;te>>24]^M[z>>>16&255]^B[$>>>8&255]^L[V&255]^D[F++],pe=C[z>>>24]^M[$>>>16&255]^B[V>>>8&255]^L[W&255]^D[F++],be=C[$>>>24]^M[V>>>16&255]^B[W>>>8&255]^L[z&255]^D[F++],we=C[V>>>24]^M[W>>>16&255]^B[z>>>8&255]^L[$&255]^D[F++];W=se,z=pe,$=be,V=we}var se=(H[W>>>24]<<24|H[z>>>16&255]<<16|H[$>>>8&255]<<8|H[V&255])^D[F++],pe=(H[z>>>24]<<24|H[$>>>16&255]<<16|H[V>>>8&255]<<8|H[W&255])^D[F++],be=(H[$>>>24]<<24|H[V>>>16&255]<<16|H[W>>>8&255]<<8|H[z&255])^D[F++],we=(H[V>>>24]<<24|H[W>>>16&255]<<16|H[z>>>8&255]<<8|H[$&255])^D[F++];v[w]=se,v[w+1]=pe,v[w+2]=be,v[w+3]=we},keySize:256/32});a.AES=i._createHelper(O)}(),n.AES})})(CL);var lce=CL.exports;const ML=ar(lce);var DL={exports:{}};(function(e,t){(function(n,a){e.exports=a($c())})(Ar,function(n){return n.enc.Utf8})})(DL);var oce=DL.exports;const cce=ar(oce);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const jL="SO12_Abteilung_Intern_Hash_v1_1a2b3c_X99",Cye=e=>{try{const t=JSON.stringify(e);return ML.encrypt(t,jL).toString()}catch(t){throw console.error("Encryption failed:",t),new Error("Verschlüsselung fehlgeschlagen")}},Rye=e=>{try{const n=ML.decrypt(e,jL).toString(cce);if(!n)throw new Error("Falscher Key oder beschädigte Daten");return JSON.parse(n)}catch{throw new Error("Entschlüsselung fehlgeschlagen. Datenformat ungültig.")}};function Mye(e){try{return decodeURIComponent(escape(atob(e)))}catch{throw new Error("Not a valid Base64 string")}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var Wg=(e=>(e.ADDITIONAL_NEEDS="additionalNeeds",e.IS_PREGNANT="isPregnant",e.DATE_OF_EXPECTED_BIRTH="dateOfExpectedBirth",e.THE_CHILDS_FATHER_LIVES_OUTSIDE_THE_HOUSEHOLD="theChildsFatherLivesOutsideTheHousehold",e.COSTLY_DIET="costlyDiet",e.DIET_TYPE_1="dietType1",e.DIET_TYPE_2="dietType2",e.DIET_TYPE_3="dietType3",e.DIET_TYPE_4="dietType4",e.DIET_TYPE_5="dietType5",e.DIET_TYPE_6="dietType6",e.DIET_TYPE_7="dietType7",e.COSTLY_DIET_AMOUNT="costlyDietAmount",e.DISABILITY="disability",e.DISABILITY_DEGREE="disabilityDegree",e.DISABILITY_MARKER="disabilityMarker",e.BENEFITS_PARTICIPATION="benefitsParticipation",e.SCHOOL_SUPPLIES="schoolSupplies",e.ENROLLMENT_DATE="enrollmentDate",e.APPLIED_FOR_SUPPLIES="appliedForSupplies",e.VICTIM="victim",e.UNAVOIDABLE_SPECIAL_NEED="unavoidableSpecialNeed",e.SPECIAL_NEED_DESCRIPTION="specialNeedDescription",e.SPECIAL_NEED_AMOUNT="specialNeedAmount",e.BENEFITS="benefits",e.UNABLE_TO_WORK="unableToWork",e.HOLDER_OF_DISABILITY_PASS="holderOfDisabilityPass",e))(Wg||{});class Dl{constructor(t){y(this,"id");y(this,"name","");y(this,"isPregnant",!1);y(this,"dateOfExpectedBirth");y(this,"theChildsFatherLivesOutsideTheHousehold",!1);y(this,"costlyDiet",!1);y(this,"dietType1",!1);y(this,"dietType2",!1);y(this,"dietType3",!1);y(this,"dietType4",!1);y(this,"dietType5",!1);y(this,"dietType6",!1);y(this,"dietType7",!1);y(this,"costlyDietAmount",0);y(this,"disability",!1);y(this,"disabilityDegree");y(this,"disabilityMarker");y(this,"benefitsParticipation",!1);y(this,"schoolSupplies",!1);y(this,"enrollmentDate");y(this,"appliedForSupplies",!1);y(this,"victim",!1);y(this,"unavoidableSpecialNeed",!1);y(this,"vocationalRehabilitationAndIntegrationAssistance",!1);y(this,"specialNeedDescription","");y(this,"specialNeedAmount",0);y(this,"benefits",!1);y(this,"unableToWork",!1);y(this,"holderOfDisabilityPass",!1);y(this,"inStationaryFacility",!1);Object.assign(this,t)}}class BL{constructor(t){y(this,"applicant",null);y(this,"additionalNeeds",!1);y(this,"partner",null);y(this,"kids",[]);y(this,"otherMembers",[]);Object.assign(this,t)}}const PL=[{label:"Schluckstörung, bei welcher aus ärztlicher Sicht der Einsatz sogenannter Andickungspulver empfohlen wird.",value:"type1"},{label:"Mukoviszidose, zystische Fibrose",value:"type2"},{label:"Niereninsuffizienz, Behandlung mit eiweißdefinierter Kost",value:"type3"},{label:"Zöliakie oder einheimische Sprue (Durchfallerkrankung wegen Gluten-Überempfindlichkeit)",value:"type4"},{label:"Niereninsuffizienz – Dialysediät",value:"type5"},{label:"Verzehrende Krankheiten wie Krebs, Krankheitsassoziierte Mangelernährung wie Krebs, MS, HIV/AIDS, Morbus Crohn oder Colitis Ulcerosa.S, HIV/AIDS, Morbus Crohn, Colitis Ulcerosa",value:"type6"}],HL=[{label:"100%",value:"100"},{label:"mehr als 50% und Pflegebedürftig",value:"50"},{label:"Sonstige",value:"Sonstige"}],LL=[{label:"RF",value:"RF"},{label:"TBl",value:"TBl"}],vr={additionalNeeds:{title:"In meinem Haushalt gibt es min. eine Person mit Mehrbedarf, z.B. für Schulausstattung oder Schwangerschaft usw.",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Bitte beachten Sie, dass durch SO12 keine Leistungsprüfung stattfindet. "}),s.jsx("p",{children:"Die von Ihnen gemachten Angaben werden zur Berechnung genutzt und später in das PFD in die jeweilig nötige Anlage übertragen."}),s.jsx("p",{children:"SO12 kann nicht prüfen, ob die von Ihnen gemachte Angabe eines z.B. besonderen Bedarfs angemessen ist."}),s.jsx("p",{children:"Die von Ihnen gemachten Angaben werden jedoch zur Anspruchsberechnung genutzt."})]})},isPregnant:{title:"Sind Sie schwanger? (nach der 12. Woche)",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"Für eine Schwangerschaft steht Ihnen ggf. ein Mehrbedarf zu. SO12 fragt danach, ob sich der Kindesvater außerhalb des Haushalts befindet. Hierdurch wird ermittelt, ob weitere Fragen im Ausfüllbereich benötigt werden und ob weitere Anlagen zu Unterhaltsansprüchen nötig sind."})})},unavoidableSpecialNeed:{title:"unabweisbaren besonderen Bedarf",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Bedarfe, die aufgrund besonderer Lebensumstände über einen länger andauernden Zeitraum entstehen und nicht vermeidbar sind, können auf Antrag übernommen werden. Dies sind zum Beispiel:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Dauerhaft benötigte Hygienemittel bei bestimmten Erkrankungen (zum Beispiel HIV, Neurodermitis),"}),s.jsx("li",{children:"Kosten zur Wahrnehmung des Umgangsrechts bei getrennt lebenden Eltern."})]}),s.jsx("p",{children:"Dieser Mehrbedarf kann nur anerkannt werden, wenn Sie die Kosten nicht aus eigenen Mitteln decken können. Keinen laufenden besonderen Bedarf stellen einmalige Ausgaben dar, die mit den regulären Leistungen abgegolten sind oder durch ein zinsloses Darlehen aufgefangen werden können (zum Beispiel Brillen, Zahnersatz)."})]})},disability:{title:"Besteht bei Ihnen ein Grad der Behinderung?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsxs("p",{children:["SO12 ist noch nicht auf das SGB XI ausgerichtet und erfasst nur für wenige Fälle, nämlich einen Mehrbedarf im Bereich Bürgergeld oder Wohngeld die nötigsten Daten."," "]}),s.jsx("p",{children:"Sollten Sie weitere Fragen zu einem Fall mit GdB (auch wenn nicht eingetragen) in Kontext zur Arbeitsmarktteilhabe haben, wenden Sie sich bitte an die Ergänzende und unabhängige Teilhabeberatung (EUTB)."}),s.jsxs("p",{children:["EUTBs sind nicht regional gebunden. Sie können auch Kontakt zu einer thematisch passenden Beratung außerhalb Ihrer Region aufnehmen.",s.jsx("a",{href:"https://www.teilhabeberatung.de/beratung/beratungsangebote-der-eutb",target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 underline",children:"https://www.teilhabeberatung.de/beratung/beratungsangebote-der-eutb"})]})]})},schoolSupplies:{title:"Haben Sie einen Bedarf an Schulsachen?",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Ihnen stehen möglicherweise Zuschüsse aus dem Bildungs- und Teilhabepaket zu. SO12 arbeitet aktuell daran, BUT Ansprüche und Anträge zu integrieren."}),s.jsx("p",{children:"Sollten Sie Anspruch auf Wohngeld oder Kinderzuschlag haben (siehe Ergebnisse) können Sie bei Ihrem Landkreis einen entsprechenden Antrag hierzu stellen."}),s.jsx("p",{children:"Sollten Sie Leistungen vom Sozialamt oder Jobcenter erhalten, wenden Sie sich an die jeweilige Behörde."})]})},vocationalRehabilitationAndIntegrationAssistance:{title:"Erhalten Sie Leistungen zur Teilhabe am Arbeitsleben, Hilfen zur Erlangung eines geeigneten Arbeitsplatzes oder Eingliederungshilfen (SGB IX)",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("p",{children:["Die Ihnen im Zusammenhang mit Ihrer Behinderung gewährten Leistungen zur Teilhabe am Arbeitsleben, Eingliederungshilfen oder sonstige Hilfen zur Erlangung eines geeigneten Arbeitsplatzes, welche Voraussetzung für die Gewährung eines Mehrbedarfes sind, können durch Vorlage des entsprechenden Leistungsbescheides nachgewiesen werden."," "]}),s.jsx("p",{children:"Hiervon wird keine Kopie zur Akte genommen."})]})},holderOfDisabilityPass:{title:"Sind Sie Inhaber*in eines Ausweises nach §152 Absatz 5 SGB IX mit dem Merkzeichen G oder aG (nach Bundesjustizministerium: § 152 Abs. 5 Neuntes Buch Sozialgesetzbuch (SGB IX))?",content:s.jsx("p",{children:"Es wird ggf. ein Mehrbedarf beim Bürgergeld angerechnet."})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function vi(e){return(e==null?void 0:e.memberType)==="kids"}function Pr(e){return(e==null?void 0:e.memberType)==="otherMembers"}function ii(e){return(e==null?void 0:e.memberType)==="partner"}function Uc(e){return(e==null?void 0:e.memberType)==="applicant"}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function uce(e,t){var o;const n=e.additionalCosts||new Dl,a=cm(e,t),r=Ch(e,t),i=um(e,t),l=e==null?void 0:e.applicantData;return e&&e.additionalCosts&&!((o=e==null?void 0:e.additionalCosts)!=null&&o.applicant)&&(e.additionalCosts.applicant,new Dl({id:l==null?void 0:l.id})),a.length&&(a==null||a.forEach(c=>{Uc(c)&&(n.applicant||(n.applicant=new Dl({name:c.name||"",id:c.id}))),ii(c)&&(n.partner||(n.partner=new Dl({name:c.name||"",id:c.id}))),vi(c)&&(n.kids=(n==null?void 0:n.kids)||[],(!(n!=null&&n.kids.length)||!(n!=null&&n.kids.find(d=>d.id===c.id)))&&(n==null||n.kids.push(new Dl({name:c.name||"",id:c.id})))),Pr(c)&&(n.otherMembers=(n==null?void 0:n.otherMembers)||[],(!(n!=null&&n.otherMembers.length)||!(n!=null&&n.otherMembers.find(d=>d.id===c.id)))&&n.otherMembers.push(new Dl({name:c.name||"",id:c.id})))})),i.length&&(i==null||i.forEach(c=>{var d,h;Uc(c)&&(n.applicant={...n.applicant,name:c.name||""}),ii(c)&&(n.partner={...n.partner,name:c.name||""}),vi(c)&&(n.kids=(d=n==null?void 0:n.kids)==null?void 0:d.map(f=>f.id===c.id?mM(c,f):f)),Pr(c)&&(n.otherMembers=(h=n.otherMembers)==null?void 0:h.map(f=>c.id===f.id?mM(c,f):f))})),r.length&&(r==null||r.forEach(c=>{var d,h,f,m;Uc(c)&&(n.applicant=void 0),ii(c)&&(n.partner=void 0),vi(c)&&(n.kids=(d=n==null?void 0:n.kids)==null?void 0:d.filter(g=>g.id!==c.id),n.kids=(h=n==null?void 0:n.kids)==null?void 0:h.filter(g=>{var b,E;return(E=(b=e.houseHoldMembersApplication)==null?void 0:b.kids)==null?void 0:E.find(S=>S.id===g.id)})),Pr(c)&&(n.otherMembers=(f=n.otherMembers)==null?void 0:f.filter(g=>g.id!==g.id),n.otherMembers=(m=n.otherMembers)==null?void 0:m.filter(g=>{var b,E;return(E=(b=e.houseHoldMembersApplication)==null?void 0:b.householdMembers)==null?void 0:E.find(S=>S.id===g.id)}))})),{...e,additionalCosts:n}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var x=(e=>(e.HOUSE_HOLD_MEMBERS_APPLICATION="houseHoldMembersApplication",e.FIRST_NAME="firstName",e.LAST_NAME="lastName",e.PLACE_OF_BIRTH="placeOfBirth",e.COUNTRY_OF_BIRTH="countryOfBirth",e.GENDER="gender",e.MARITAL_STATUS="maritalStatus",e.DATE_OF_BIRTH="dateOfBirth",e.STREET_NAME="streetName",e.BUILDING_NUMBER="buildingNumber",e.FLOOR_NUMBER="floorNumber",e.POSTAL_CODE="postalCode",e.CITY="city",e.PO_BOX_ADRESS="poBoxAdress",e.NO_PERMANENT_RESIDENCE="noPermanentResidence",e.RESIDENCE_DETAILS="residenceDetails",e.PHONE_NUMBER="phoneNumber",e.EMAIL_ADDRESS="emailAddress",e.LANDLORD_NAME="landlordName",e.LANDLORD_ADDRESS="landlordAddress",e.NAME_OF_BANK_ACCOUNT_HOLDER="nameOfBankAccountHolder",e.IBAN="iban",e.BIC="bic",e.NO_BANK_ACCOUNT="noBankAccount",e.PAID_DIRECTLY_TO_LANDLORD="paidDirectlyToLandlord",e.LANDLORD_NAME_OF_BANK_ACCOUNT_HOLDER="landlordNameOfBankAccountHolder",e.LANDLORD_IBAN="landlordIban",e.LANDLORD_BIC="landlordBic",e.PAID_DIRECTLY_TO_OTHER_PERSON="paidDirectlyToOtherPerson",e.OTHER_PERSON_NAME_OF_BANK_ACCOUNT_HOLDER="otherPersonNameOfBankAccountHolder",e.OTHER_PERSON_IBAN="otherPersonIban",e.OTHER_PERSON_BIC="otherPersonBic",e.IN_STATIONARY_FACILITY="inStationaryFacility",e.IN_STATIONARY_FACILITY_NAME="inStationaryFacilityName",e.INCOME_FROM_EMPLOYMENT="incomeFromEmployment",e.STREET_NAME_OF_EMPLOYER="streetNameOfEmployer",e.BUILDING_NUMBER_OF_EMPLOYER="buildingNumberOfEmployer",e.POSTAL_CODE_OF_EMPLOYER="postalCodeOfEmployer",e.LOCATION_OF_EMPLOYER="locationOfEmployer",e.PAYMENT_MODE_EMPLOYER="paymentModeEmployer",e.NAME_OF_EMPLOYER="nameOfEmployer",e.COMPANY_HEADQUARTERS="companyHeadquarters",e.HOUSEHOLD_MEMBER_APPLIED_FOR_ANOTHER_BENEFIT="householdMemberAppliedForAnotherBenefit",e.SOCIAL_BENEFIT_PROVIDER="socialBenefitProvider",e.CHECKBOX_BAFOEG="checkboxBafoeg",e.CHECKBOX_BAB="checkboxBab",e.CHECKBOX_HOUSING_ALLOWANCE="checkboxHousingAllowance",e.CHECKBOX_UNEMPLOYMENT_BENEFIT="checkboxUnemploymentBenefit",e.CHECKBOX_PENSION="checkboxPension",e.CHECKBOX_SICKNESS_BENEFIT="checkboxSicknessBenefit",e.CHECKBOX_CHILD_ALLOWANCE="checkboxChildAllowance",e.CHECKBOX_CHILD_ALLOWANCE_SUPPLEMENT="checkboxChildAllowanceSupplement",e.CHECKBOX_OTHER="checkboxOther",e.APPLICATION_DATE="applicationDate",e.APPLICATION_REJECTED="applicationRejected",e.ABANDONED="abandoned",e.INITIAL_APPLICATION="initialApplication",e.APPLICATION_FOR_RENEWAL="applicationForRenewal",e.INCREASE_REQUEST="increaseRequest",e.CITIZENS_ALLOWANCE_REQUEST_IMMEDIATELY="citizensAllowanceRequestImmediately",e.CITIZENS_ALLOWANCE_REQUEST_FROM="citizensAllowanceRequestFrom",e.CITIZENS_ALLOWANCE_REQUEST_UNTIL="citizensAllowanceRequestUntil",e.RESPONSIBLE_JOB_CENTER_STREET_NAME="responsibleJobCenterStreetName",e.RESPONSIBLE_JOB_CENTER_BUILDING_NUMBER="responsibleJobCenterBuildingNumber",e.RESPONSIBLE_JOB_CENTER_POSTAL_CODE="responsibleJobCenterPostalCode",e.RESPONSIBLE_JOB_CENTER_POSTAL_LOCATION="responsibleJobCenterPostalLocation",e.BG_NUMBER="bgNumber",e.YEAR_OF_CONSTRUCTION="yearOfConstruction",e.IDENTIFICATION_OR_FOREIGNER_NUMBER="identificationOrForeignerNumber",e.PERSONAL_IDENTIFICATION_NUMBER="personalIdentificationNumber",e.CENTRAL_REGISTER_FOREIGNERS_NUMBER="centralRegisterForeignersNumber",e.GUARDIAN="guardian",e.PENSION_INSURANCE_NUMBER="pensionInsuranceNumber",e.YOU_ARE_ENTITLED_TO_TRAVEL_COST_SUBSIDIES_FROM_YOUR_EMPLOYER_OR_A_THIRD_PARTY="youAreEntitledToTravelCostSubsidiesFromYourEmployerOrAThirdParty",e.PENSION_INSURANCE_NUMBER_NOT_AVAILABLE_YET="pensionInsuranceNumberNotAvailableYet",e.TAX_IDENTIFICATION_NUMBER="taxIdentificationNumber",e.TYPE_OF_INSURANCE="typeOfInsurance",e.SELECTED_HEALTH_INSURANCE="selectedHealthInsurance",e.CURRENT_HEALTH_INSURANCE_NAME="currentHealthInsuranceName",e.CURRENT_HEALTH_INSURANCE_NUMBER="currentHealthInsuranceNumber",e.CURRENT_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON="currentHealthInsuranceNameOfInsuredPerson",e.OTHER_HEALTH_INSURANCE_NAME="otherHealthInsuranceName",e.OTHER_HEALTH_INSURANCE_NUMBER="otherHealthInsuranceNumber",e.OTHER_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON="otherHealthInsuranceNameOfInsuredPerson",e.BENEFITS_FROM_ANOTHER_JOB_CENTER_FOR_LAST_3_YEARS="benefitsFromAnotherJobCenterForLast3Years",e.TYPE_OF_BENEFIT="typeOfBenefit",e.BENEFIT_START="benefitStart",e.BENEFIT_END="benefitEnd",e.BENEFIT_NAME="benefitName",e.BENEFIT_STREET_NAME="benefitStreetName",e.BENEFIT_BUILDING_NUMBER="benefitBuildingNumber",e.BENEFIT_POSTAL_CODE="benefitPostalCode",e.BENEFIT_CITY="benefitCity",e.NAME_AND_ADDRESS_OF_THE_OTHER_JOB_CENTER="nameAndAddressOfTheOtherJobCenter",e.EMPLOYMENT_IN_LAST_5_YEARS="employmentInLast5Years",e.WHAT_YOU_LIVED_LAST_5_YEARS="whatYouLivedLast5Years",e.IS_EMPLOYEE="isEmployee",e.EMPLOYER="employer",e.DESIGNATION="designation",e.EMPLOYED_SINCE="employedSince",e.EMPLOYED_UNTIL="employedUntil",e.SELF_EMPLOYED="selfEmployed",e.TYPE_OF_ACTIVITY="typeOfActivity",e.TYPE_OF_ACTIVITY_SINCE="typeOfActivitySince",e.TYPE_OF_ACTIVITY_UNTIL="typeOfActivityUntil",e.PARENT_LEAVE="parentLeave",e.PARENT_LEAVE_SINCE="parentLeaveSince",e.PARENT_LEAVE_UNTIL="parentLeaveUntil",e.MILITARY_OR_VOLUNTARY_SERVICE="militaryOrVoluntaryService",e.MILITARY_OR_VOLUNTARY_SERVICE_SINCE="militaryOrVoluntaryServiceSince",e.MILITARY_OR_VOLUNTARY_SERVICE_UNTIL="militaryOrVoluntaryServiceUntil",e.RELATIVES_CARED_FOR="relativesCaredFor",e.RELATIVES_CARED_FOR_SINCE="relativesCaredForSince",e.RELATIVES_CARED_FOR_UNTIL="relativesCaredForUntil",e.RECEIVE_COMPENSATION_BENEFITS="receiveCompensationBenefits",e.TYPE_OF_COMPENSATION_BENEFITS="typeOfCompensationBenefits",e.RECEIVE_COMPENSATION_BENEFITS_SINCE="receiveCompensationBenefitsSince",e.RECEIVE_COMPENSATION_BENEFITS_UNTIL="receiveCompensationBenefitsUntil",e.CLAIMS_AGAINST_THIRD_PARTIES="claimsAgainstThirdParties",e.CLAIMS_AGAINST_FORMER_EMPLOYER="claimsAgainstFormerEmployer",e.NAME_OF_FORMER_EMPLOYER="nameOfFormerEmployer",e.STREET_NAME_OF_FORMER_EMPLOYER="streetNameOfFormerEmployer",e.BUILDING_NUMBER_OF_FORMER_EMPLOYER="buildingNumberOfFormerEmployer",e.POSTAL_CODE_OF_FORMER_EMPLOYER="postalCodeOfFormerEmployer",e.CITY_OF_FORMER_EMPLOYER="cityOfFormerEmployer",e.REASON_FOR_CLAIMS="reasonForClaims",e.DAMAGE_TO_HEALTH_BECAUSE_OF_THIRD_PARTY="damageToHealthBecauseOfThirdParty",e.PAYMENT_CLAIMS="paymentClaims",e.PAYMENT_CLAIMS_DESCRIPTION="paymentClaimsDescription",e.PARENT_OUTSIDE_THE_HOUSEHOLD_NAME="parentOutsideTheHouseholdName",e.PARENT_OUTSIDE_THE_HOUSEHOLD_FAMILY_NAME="parentOutsideTheHouseholdFamilyName",e.PARENT_OUTSIDE_THE_HOUSEHOLD_PLACE_OF_BIRTH="parentOutsideTheHouseholdPlaceOfBirth",e.PARENT_OUTSIDE_THE_HOUSEHOLD_COUNTRY_OF_BIRTH="parentOutsideTheHouseholdCountryOfBirth",e.PARENT_OUTSIDE_THE_HOUSEHOLD_GENDER="parentOutsideTheHouseholdGender",e.PARENT_OUTSIDE_THE_HOUSEHOLD_MARITAL_STATUS="parentOutsideTheHouseholdMaritalStatus",e.PARENT_OUTSIDE_THE_HOUSEHOLD_BIRTH_DATE="parentOutsideTheHouseholdBirthDate",e.PATERNITY_WAS_RECOGNIZED="paternityWasRecognized",e.THE_PARENTS_ADDRESS_IS_MINE="theParentsAddressIsMine",e.EXPECTED_DATE_OF_DELIVERY="expectedDateOfDelivery",e.PARENT_STREET_NAME="parentStreetName",e.PARENT_BUILDING_NUMBER="parentBuildingNumber",e.PARENT_FLOOR_NUMBER="parentFloorNumber",e.PARENT_POSTAL_CODE="parentPostalCode",e.PARENT_CITY="parentCity",e.PARENT_TELEPHONE_NUMBER="parentTelephoneNumber",e.CHILD_ALLOWANCE_INITIAL_APPLICATION="childAllowanceInitialApplication",e.CHILD_ALLOWANCE_FOR_CONTINUED_BENEFITS="childAllowanceForContinuedBenefits",e.CHILD_ALLOWANCE_FOR_INCREASE_REQUEST="childAllowanceForIncreaseRequest",e.CHILD_ALLOWANCE_REQUEST_IMMEDIATELY="childAllowanceRequestImmediately",e.CHILD_ALLOWANCE_REQUEST_FROM="childAllowanceRequestFrom",e.CHILD_ALLOWANCE_REQUEST_UNTIL="childAllowanceRequestUntil",e.RESPONSIBLE_FAMILY_FUND_STREET="responsibleFamilyFundStreet",e.RESPONSIBLE_FAMILY_FUND_LOCATION="responsibleFamilyFundLocation",e.RESPONSIBLE_FAMILY_FUND_BUILDING_NUMBER="responsibleFamilyFundBuildingNumber",e.RESPONSIBLE_FAMILY_FUND_POSTAL_CODE="responsibleFamilyFundPostalCode",e.CHILD_BENEFIT_NUMBER="childBenefitNumber",e.HOUSING_ALLOWANCE_IMMEDIATELY="housingAllowanceImmediately",e.HOUSING_ALLOWANCE_FROM="housingAllowanceFrom",e.HOUSING_ALLOWANCE_UNTIL="housingAllowanceUntil",e.RESPONSIBLE_HOUSING_ALLOWANCE_STREET="responsibleHousingAllowanceStreet",e.RESPONSIBLE_HOUSING_ALLOWANCE_LOCATION="responsibleHousingAllowanceLocation",e.RESPONSIBLE_HOUSING_ALLOWANCE_BUILDING_NUMBER="responsibleHousingAllowanceBuildingNumber",e.RESPONSIBLE_HOUSING_ALLOWANCE_POSTAL_CODE="responsibleHousingAllowancePostalCode",e.HOUSING_ALLOWANCE_NUMBER="housingAllowanceNumber",e.MEMBER_TYPE="memberType",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_INITIAL_APPLICATION="housingBenefitBurdenSubsidyInitialApplication",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_CONTINUED_BENEFITS="housingBenefitBurdenSubsidyForContinuedBenefits",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_INCREASE_REQUEST="housingBenefitBurdenSubsidyForIncreaseRequest",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_IMMEDIATELY="housingBenefitBurdenSubsidyRequestImmediately",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_FROM="housingBenefitBurdenSubsidyRequestFrom",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_UNTIL="housingBenefitBurdenSubsidyRequestUntil",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE="housingBenefitBurdenSubsidyPropertyOwnershipOwnOne",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL="housingBenefitBurdenSubsidyPropertyOwnershipOwnSeveral",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_STREET_NAME="housingBenefitBurdenSubsidyStreetName",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BUILDING_NUMBER="housingBenefitBurdenSubsidyBuildingNumber",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_POSTAL_CODE="housingBenefitBurdenSubsidyPostalCode",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_LOCATION="housingBenefitBurdenSubsidyLocation",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER="housingBenefitBurdenSubsidyHousingAllowanceNumberOrFileReferenceNumber",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE="housingBenefitBurdenSubsidyOtherOwnersForLivingSpace",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS="housingBenefitBurdenSubsidyOtherOwnersForLivingSpaceOtherOwners",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_LAST_NAME="housingBenefitBurdenSubsidyOtherOwnersForLivingSpaceOtherOwnersLastName",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_FIRST_NAME="housingBenefitBurdenSubsidyOtherOwnersForLivingSpaceOtherOwnersFirstName",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_ADDRESS="housingBenefitBurdenSubsidyOtherOwnersForLivingSpaceOtherOwnersAddress",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE="housingBenefitBurdenSubsidyChargesFromBorrowedFundsThatMustBeMadeForTheLivingSpace",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_PURPOSE="housingBenefitBurdenSubsidyChargesFromBorrowedFundsThatMustBeMadeForTheLivingSpacePurpose",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_DONOR="housingBenefitBurdenSubsidyChargesFromBorrowedFundsThatMustBeMadeForTheLivingSpaceDonor",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_AMOUNT="housingBenefitBurdenSubsidyChargesFromBorrowedFundsThatMustBeMadeForTheLivingSpaceOriginalAmount",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_BALANCE="housingBenefitBurdenSubsidyChargesFromBorrowedFundsThatMustBeMadeForTheLivingSpaceOriginalBalance",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_AMOUNT_FOR_DEBT_SERVICE_PER_MONTH="housingBenefitBurdenSubsidyAmountForDebtServicePerMonth",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_SUBSIDY_END_OF_TERM="housingBenefitBurdenSubsidySubsidyEndOfTerm",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED="housingBenefitBurdenSubsidyBorrowedResourceReplaced",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_REMAINDER_OF_REPLACED_BORROWED_FUNDS="housingBenefitBurdenSubsidyBorrowedResourceReplacedRemainderOfReplacedBorrowedFunds",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_BENEFITS_FOR_INTEREST="housingBenefitBurdenSubsidyBorrowedResourceReplacedBenefitsForInterest",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE="housingBenefitBurdenSubsidyContributionsForPersonalInsurance",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE_BORROWED_FUNDS_AND_MONTHLY_AMOUNT="housingBenefitBurdenSubsidyContributionsForPersonalInsuranceBorrowedFundsAndMonthlyAmount",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_PROPERTY_TAX="housingBenefitBurdenSubsidyOtherExpensesPropertyTax",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GUARANTEE_COSTS="housingBenefitBurdenSubsidyOtherExpensesGuaranteeCosts",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_ADMINISTRATIVE_EXPENSES="housingBenefitBurdenSubsidyOtherExpensesAdministrativeExpenses",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_USAGE_FEE="housingBenefitBurdenSubsidyOtherExpensesUsageFee",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GROUND_RENT="housingBenefitBurdenSubsidyOtherExpensesGroundRent",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_OTHER_SERVICES="housingBenefitBurdenSubsidyOtherExpensesOtherServices",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE="housingBenefitBurdenSubsidyBurdenWillIncrease",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_DATE="housingBenefitBurdenSubsidyBurdenWillIncreaseDate",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_TYPE_OF_LOADS="housingBenefitBurdenSubsidyBurdenWillIncreaseTypeOfLoads",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_FUTURE_CHARGES_PER_MONTH="housingBenefitBurdenSubsidyBurdenWillIncreaseFutureChargesPerMonth",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WIL_WILL_INCREASE_REASON="housingBenefitBurdenSubsidyBurdenWilWillIncreaseReason",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS="housingBenefitBurdenSubsidyMoveOutPlans",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS_DATE="housingBenefitBurdenSubsidyMoveOutPlansDate",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS="housingBenefitBurdenSubsidyCurrentAddressDiffers",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_STREET_NAME="housingBenefitBurdenSubsidyCurrentAddressDiffersStreetName",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_BUILDING_NUMBER="housingBenefitBurdenSubsidyCurrentAddressDiffersBuildingNumber",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_POSTAL_CODE="housingBenefitBurdenSubsidyCurrentAddressDiffersPostalCode",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_LOCATION="housingBenefitBurdenSubsidyCurrentAddressDiffersLocation",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_PLANNED_MOVE_IN_DATE="housingBenefitBurdenSubsidyCurrentAddressDiffersPlannedMoveInDate",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_APPLIED_FOR_ANOTHER_APARTMENT="housingBenefitBurdenSubsidyBurdenAppliedForAnotherApartment",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_SECOND_HOME_AVAILABLE="housingBenefitBurdenSubsidySecondHomeAvailable",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE="housingBenefitBurdenSubsidyHouseholdNumberWillIncrease",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_PLANED_MOVE_IN_DATE="housingBenefitBurdenSubsidyHouseholdNumberWillIncreasePlanedMoveInDate",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_REASON="housingBenefitBurdenSubsidyHouseholdNumberWillIncreaseReason",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE="housingBenefitBurdenSubsidyIncomeOfHouseholdMemberWillIncrease",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE_REASON="housingBenefitBurdenSubsidyIncomeOfHouseholdMemberWillIncreaseReason",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_WAS_PAID="housingBenefitBurdenSubsidyHouseholdMemberWasPaid",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_HAS_NOTARIZED_FREE_OF_CHARGE_RESIDENCE="housingBenefitBurdenSubsidyHouseholdMemberHasNotarizedFreeOfChargeResidence",e.HOUSING_BENEFIT_BURDEN_SUBSIDY_AGREEMENT="housingBenefitBurdenSubsidyAgreement",e.HOUSING_BENEFIT_RENT_SUBSIDY_INITIAL_APPLICATION="housingBenefitRentSubsidyInitialApplication",e.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_CONTINUED_BENEFITS="housingBenefitRentSubsidyForContinuedBenefits",e.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_INCREASE_REQUEST="housingBenefitRentSubsidyForIncreaseRequest",e.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_IMMEDIATELY="housingBenefitRentSubsidyRequestImmediately",e.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_FROM="housingBenefitRentSubsidyRequestFrom",e.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_UNTIL="housingBenefitRentSubsidyRequestUntil",e.HOUSING_BENEFIT_RENT_SUBSIDY_STREET_NAME="housingBenefitRentSubsidyStreetName",e.HOUSING_BENEFIT_RENT_SUBSIDY_BUILDING_NUMBER="housingBenefitRentSubsidyBuildingNumber",e.HOUSING_BENEFIT_RENT_SUBSIDY_POSTAL_CODE="housingBenefitRentSubsidyPostalCode",e.HOUSING_BENEFIT_RENT_SUBSIDY_LOCATION="housingBenefitRentSubsidyLocation",e.HOUSING_BENEFIT_RENT_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER="housingBenefitRentSubsidyHousingAllowanceNumberOrFileReferenceNumber",e.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT="housingBenefitRentSubsidyIAmMainTenant",e.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT="housingBenefitRentSubsidyIAmSubTenant",e.HOUSING_BENEFIT_RENT_SUBSIDY_HOW_MUCH_OF_YOUR_RENT_YOU_PAY_DIRECTLY_TO_YOUR_LANDLORD="housingBenefitRentSubsidyHowMuchOfYourRentYouPayDirectlyToYourLandlord",e.HOUSING_BENEFIT_RENT_SUBSIDY_YEAR_OF_CONSTRUCTION_OF_ACCOMMODATION="housingBenefitRentSubsidyYearOfConstructionOfAccommodation",e.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS="housingBenefitRentSubsidyAreYouPlaningToMoveFromCurrentAccommodationInNext12Months",e.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS_MOVE_OUT_DATE="housingBenefitRentSubsidyAreYouPlaningToMoveFromCurrentAccommodationInNext12MonthsMoveOutDate",e.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED="housingBenefitRentSubsidyIsYourCurrentAddressDifferentFromWhichYouApplied",e.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_STREET_NAME="housingBenefitRentSubsidyIsYourCurrentAddressDifferentFromWhichYouAppliedStreetName",e.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_BUILDING_NUMBER="housingBenefitRentSubsidyIsYourCurrentAddressDifferentFromWhichYouAppliedBuildingNumber",e.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_POSTAL_CODE="housingBenefitRentSubsidyIsYourCurrentAddressDifferentFromWhichYouAppliedPostalCode",e.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_LOCATION="housingBenefitRentSubsidyIsYourCurrentAddressDifferentFromWhichYouAppliedLocation",e.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_PLANNED_MOVE_IN_DATE="housingBenefitRentSubsidyIsYourCurrentAddressDifferentFromWhichYouAppliedPlannedMoveInDate",e.HOUSING_BENEFIT_RENT_SUBSIDY_BEING_RECEIVED_FOR_ANOTHER_APARTMENT_OR_THIS_HAS_BEEN_APPLIED_FOR="housingBenefitRentSubsidyBeingReceivedForAnotherApartmentOrThisHasBeenAppliedFor",e.HOUSING_BENEFIT_RENT_SUBSIDY_SECOND_HOME_AVAILABLE="housingBenefitRentSubsidySecondHomeAvailable",e.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE="housingBenefitRentSubsidyInTheComingMonthsTheNumberOfHouseholdMembersWillIncreaseOrDecrease",e.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_PLANED_MOVE_IN_DATE="housingBenefitRentSubsidyInTheComingMonthsTheNumberOfHouseholdMembersWillIncreaseOrDecreasePlanedMoveInDate",e.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_REASON="housingBenefitRentSubsidyInTheComingMonthsTheNumberOfHouseholdMembersWillIncreaseOrDecreaseReason",e.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS="housingBenefitRentSubsidyRentWillDecreaseOrIncreaseOverTheNext12Months",e.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_DATE="housingBenefitRentSubsidyRentWillDecreaseOrIncreaseOverTheNext12MonthsDate",e.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_FUTURE_RENT_PER_MONTH="housingBenefitRentSubsidyRentWillDecreaseOrIncreaseOverTheNext12MonthsFutureRentPerMonth",e.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON="housingBenefitRentSubsidyRentWillDecreaseOrIncreaseOverTheNext12MonthsReason",e.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS="housingBenefitRentSubsidyRentHouseholdMembersIncomeWillDecreaseOrIncreaseOverTheNext12Months",e.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON_AND_PERSON_CONCERNED="housingBenefitRentSubsidyRentHouseholdMembersIncomeWillDecreaseOrIncreaseOverTheNext12MonthsReasonAndPersonConcerned",e.HOUSING_BENEFIT_RENT_SUBSIDY_ONE_HOUSEHOLD_MEMBER_WAS_PAID_BY_A_TRANSFER_AUTHORITY="housingBenefitRentSubsidyOneHouseholdMemberWasPaidByATransferAuthority",e.HOUSING_BENEFIT_RENT_SUBSIDY_A_HOUSEHOLD_MEMBER_HAS_A_NOTARIZED_FREE_OF_CHARGE_RIGHT_OF_RESIDENCE="housingBenefitRentSubsidyAHouseholdMemberHasANotarizedFreeOfChargeRightOfResidence",e.HOUSING_BENEFIT_RENT_SUBSIDY_THE_HOUSING_WAS_SUBSIDIZED_WITH_PUBLIC_FUNDS_AND_IS_SUBJECT_TO_HENCE_RENT_CONTROL="housingBenefitRentSubsidyTheHousingWasSubsidizedWithPublicFundsAndIsSubjectToHenceRentControl",e.HOUSING_BENEFIT_RENT_SUBSIDY_AGREEMENT="housingBenefitRentSubsidyAgreement",e.NETTO_INCOME="nettoIncome",e.CHILD_HAVE_ONLY_ONE_PARENT="childHaveOnlyOneParent",e.ADDITIONAL_INFORMATION_ABOUT_MISSING_FATHER_OR_PARENTS="additionalInformationAboutMissingFatherOrParents",e.NAME_WAS_CHANGED="nameWasChanged",e))(x||{});const UL=[{label:"Männlich",value:"male"},{label:"Weiblich",value:"female"},{label:"Divers",value:"diverse"},{label:"Keine Angabe",value:"noAnswer"}],kL=[{label:"ledig",value:"single"},{label:"verheiratet",value:"married"},{label:"verwitwet",value:"widowed"},{label:"eingetragene Lebenspartnerschaft",value:"registeredPartnership"},{label:"dauernd getrennt lebend seit:",value:"permanentlySeparated",date:null},{label:"geschieden seit:",value:"divorced",date:null},{label:"aufgehobene Partnerschaft seit:",value:"partnershipDissolved",date:null}],dce=[{label:"bekannt",value:"known"},{label:"unbekannt",value:"unknown"},{label:"ist verstorben",value:"deceased"}],hce=[{label:"sozialversicherungspflichtig",value:"subjectToSocialSecurityContributions"},{label:"mini-job",value:"miniJob"}],YR=[{label:"Ich bin oder war zuletzt in der gesetzlichen Kranken- und Pflegeversicherung pflicht- oder familienversichert",value:"statutoryHealthAndNursingCareInsurance"},{label:"Ich bin privat oder freiwillig gesetzliche versichert",value:"privateOrVoluntaryStatutoryInsurance"},{label:"Ich bin nicht versichert",value:"notInsured"}],zR=[{label:"im laufenden Monat",value:"currentMonth"},{label:"im Folgemonat",value:"followingMonth"}];globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var bOe,EOe,NOe,xOe,SOe,IOe,OOe,vOe,TOe,AOe,yOe,wOe,COe,ROe,MOe,DOe,jOe,BOe,POe,HOe,LOe,UOe,kOe,FOe,YOe,zOe,GOe,WOe,qOe,VOe,KOe,ZOe,JOe,QOe,XOe,_Oe,$Oe,eve,tve,nve,ave,rve,ive,sve,lve,ove,cve,uve,dve,hve,fve,pve,mve,gve,bve,Eve,Nve,xve,Sve,Ive,Ove,vve;class fce{constructor(){y(this,bOe,!1);y(this,EOe,null);y(this,NOe,null);y(this,xOe,!1);y(this,SOe,null);y(this,IOe,!1);y(this,OOe,!1);y(this,vOe,"");y(this,TOe,"statutoryHealthAndNursingCareInsurance");y(this,AOe,"");y(this,yOe,"");y(this,wOe,"");y(this,COe,"");y(this,ROe,"");y(this,MOe,"");y(this,DOe,"currentHealthInsurance");y(this,jOe,!1);y(this,BOe,"");y(this,POe,null);y(this,HOe,null);y(this,LOe,"");y(this,UOe,"");y(this,kOe,"");y(this,FOe,"");y(this,YOe,"");y(this,zOe,"");y(this,GOe,!1);y(this,WOe,"");y(this,qOe,!1);y(this,VOe,"");y(this,KOe,null);y(this,ZOe,null);y(this,JOe,!1);y(this,QOe,"");y(this,XOe,null);y(this,_Oe,null);y(this,$Oe,!1);y(this,eve,null);y(this,tve,null);y(this,nve,!1);y(this,ave,null);y(this,rve,null);y(this,ive,!1);y(this,sve,null);y(this,lve,null);y(this,ove,!1);y(this,cve,"");y(this,uve,!1);y(this,dve,!1);y(this,hve,"");y(this,fve,"");y(this,pve,"");y(this,mve,"");y(this,gve,"");y(this,bve,"");y(this,Eve,!1);y(this,Nve,!1);y(this,xve,"");y(this,Sve,null);y(this,Ive,!1);y(this,Ove,null);y(this,vve,!1)}}bOe=x.IDENTIFICATION_OR_FOREIGNER_NUMBER,EOe=x.PERSONAL_IDENTIFICATION_NUMBER,NOe=x.CENTRAL_REGISTER_FOREIGNERS_NUMBER,xOe=x.GUARDIAN,SOe=x.PENSION_INSURANCE_NUMBER,IOe=x.YOU_ARE_ENTITLED_TO_TRAVEL_COST_SUBSIDIES_FROM_YOUR_EMPLOYER_OR_A_THIRD_PARTY,OOe=x.PENSION_INSURANCE_NUMBER_NOT_AVAILABLE_YET,vOe=x.TAX_IDENTIFICATION_NUMBER,TOe=x.TYPE_OF_INSURANCE,AOe=x.CURRENT_HEALTH_INSURANCE_NAME,yOe=x.CURRENT_HEALTH_INSURANCE_NUMBER,wOe=x.CURRENT_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON,COe=x.OTHER_HEALTH_INSURANCE_NAME,ROe=x.OTHER_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON,MOe=x.OTHER_HEALTH_INSURANCE_NUMBER,DOe=x.SELECTED_HEALTH_INSURANCE,jOe=x.BENEFITS_FROM_ANOTHER_JOB_CENTER_FOR_LAST_3_YEARS,BOe=x.TYPE_OF_BENEFIT,POe=x.BENEFIT_START,HOe=x.BENEFIT_END,LOe=x.BENEFIT_NAME,UOe=x.BENEFIT_STREET_NAME,kOe=x.BENEFIT_BUILDING_NUMBER,FOe=x.BENEFIT_POSTAL_CODE,YOe=x.BENEFIT_CITY,zOe=x.NAME_AND_ADDRESS_OF_THE_OTHER_JOB_CENTER,GOe=x.EMPLOYMENT_IN_LAST_5_YEARS,WOe=x.WHAT_YOU_LIVED_LAST_5_YEARS,qOe=x.IS_EMPLOYEE,VOe=x.EMPLOYER,KOe=x.EMPLOYED_SINCE,ZOe=x.EMPLOYED_UNTIL,JOe=x.SELF_EMPLOYED,QOe=x.TYPE_OF_ACTIVITY,XOe=x.TYPE_OF_ACTIVITY_SINCE,_Oe=x.TYPE_OF_ACTIVITY_UNTIL,$Oe=x.PARENT_LEAVE,eve=x.PARENT_LEAVE_SINCE,tve=x.PARENT_LEAVE_UNTIL,nve=x.MILITARY_OR_VOLUNTARY_SERVICE,ave=x.MILITARY_OR_VOLUNTARY_SERVICE_SINCE,rve=x.MILITARY_OR_VOLUNTARY_SERVICE_UNTIL,ive=x.RELATIVES_CARED_FOR,sve=x.RELATIVES_CARED_FOR_SINCE,lve=x.RELATIVES_CARED_FOR_UNTIL,ove=x.RECEIVE_COMPENSATION_BENEFITS,cve=x.TYPE_OF_COMPENSATION_BENEFITS,uve=x.CLAIMS_AGAINST_THIRD_PARTIES,dve=x.CLAIMS_AGAINST_FORMER_EMPLOYER,hve=x.NAME_OF_FORMER_EMPLOYER,fve=x.STREET_NAME_OF_FORMER_EMPLOYER,pve=x.BUILDING_NUMBER_OF_FORMER_EMPLOYER,mve=x.POSTAL_CODE_OF_FORMER_EMPLOYER,gve=x.CITY_OF_FORMER_EMPLOYER,bve=x.REASON_FOR_CLAIMS,Eve=x.DAMAGE_TO_HEALTH_BECAUSE_OF_THIRD_PARTY,Nve=x.PAYMENT_CLAIMS,xve=x.PAYMENT_CLAIMS_DESCRIPTION,Sve=x.DESIGNATION,Ive=x.NETTO_INCOME,Ove=x.EXPECTED_DATE_OF_DELIVERY,vve=x.NAME_WAS_CHANGED;var Tve,Ave,yve;class GR{constructor(){y(this,Tve,"");y(this,Ave,"");y(this,yve,"")}}Tve=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_LAST_NAME,Ave=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_FIRST_NAME,yve=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_ADDRESS;var wve,Cve,Rve,Mve,Dve,jve,Bve,Pve,Hve,Lve,Uve,kve,Fve,Yve,zve,Gve,Wve,qve,Vve,Kve,Zve,Jve,Qve,Xve,_ve,$ve,e0e,t0e,n0e,a0e,r0e,i0e,s0e,l0e,o0e,c0e;const mi=class mi extends fce{constructor(n,a){var r;super();y(this,"id","");y(this,wve,"");y(this,Cve,"");y(this,Rve,"");y(this,Mve,"");y(this,Dve,null);y(this,jve,null);y(this,Bve,null);y(this,Pve,null);y(this,Hve,!1);y(this,Lve,"");y(this,Uve,"");y(this,kve,"");y(this,Fve,"");y(this,Yve,"");y(this,zve,"");y(this,Gve,"");y(this,Wve,"currentMonth");y(this,qve,"");y(this,Vve,!1);y(this,Kve,"");y(this,Zve,!1);y(this,Jve,!1);y(this,Qve,!1);y(this,Xve,!1);y(this,_ve,!1);y(this,$ve,!1);y(this,e0e,!1);y(this,t0e,!1);y(this,n0e,!1);y(this,a0e,null);y(this,r0e,!1);y(this,i0e,!1);y(this,s0e,"applicant");y(this,l0e,null);y(this,o0e,null);y(this,c0e,[]);if(n){const i=Object.keys(this);(r=Object.entries(n))==null||r.forEach(([l,o])=>{i.includes(l)&&(this[l]=o)})}this.addInpatientFacility(n,a),this.addLabourIncome(n,a),this.addMissingMember(n,a)}static getMissingMembers(n,a){var d,h,f,m,g,b,E,S,I,O,v,w,D,C,M,B,L,H,U,W;const r=[],i=((d=a==null?void 0:a.houseHoldMembersApplication)==null?void 0:d.householdMembers)??[];if((n==null?void 0:n.memberType)==="applicant"&&((f=(h=a==null?void 0:a.additionalCosts)==null?void 0:h.applicant)!=null&&f.isPregnant)&&((g=(m=a.additionalCosts)==null?void 0:m.applicant)!=null&&g.theChildsFatherLivesOutsideTheHousehold)){const z=new oc("pregnantMotherWithoutFather");r.push(z)}const l=!mi.isRelationshipPresentToApplicant("father",i)||!mi.isRelationshipPresentToApplicant("mother",i);if((n==null?void 0:n.memberType)==="applicant"&&+(((b=a==null?void 0:a.applicantData)==null?void 0:b.age)??0)<25&&(!((S=(E=a==null?void 0:a.houseHoldMembersApplication)==null?void 0:E.householdMembers)!=null&&S.length)||l)){if(!mi.isRelationshipPresentToApplicant("father",i)){const z=new oc("oneOfTheParentsLivingSeparately");r.push(z)}if(!mi.isRelationshipPresentToApplicant("mother",i)){const z=new oc("oneOfTheParentsLivingSeparately");r.push(z)}}if((n==null?void 0:n.memberType)==="partner"&&((O=(I=a==null?void 0:a.additionalCosts)==null?void 0:I.partner)!=null&&O.isPregnant)&&((w=(v=a.additionalCosts)==null?void 0:v.partner)!=null&&w.theChildsFatherLivesOutsideTheHousehold)){const z=new oc("pregnantMotherWithoutFather");r.push(z)}const o=!mi.isRelationshipPresentToPartner("father",i)||!mi.isRelationshipPresentToPartner("mother",i);if((n==null?void 0:n.memberType)==="partner"&&+(((C=(D=a==null?void 0:a.houseHoldMembersApplication)==null?void 0:D.partner)==null?void 0:C.age)??0)<25&&!((B=(M=a==null?void 0:a.houseHoldMembersApplication)==null?void 0:M.partner)!=null&&B.withPartnerLessThanYearAndWithoutChildren)&&(!((H=(L=a==null?void 0:a.houseHoldMembersApplication)==null?void 0:L.householdMembers)!=null&&H.length)||o)){if(!mi.isRelationshipPresentToPartner("father",i)){const z=new oc("oneOfTheParentsLivingSeparately");r.push(z)}if(!mi.isRelationshipPresentToPartner("mother",i)){const z=new oc("oneOfTheParentsLivingSeparately");r.push(z)}}const c=(W=(U=a==null?void 0:a.houseHoldMembersApplication)==null?void 0:U.kids)==null?void 0:W.find(z=>z.id===(n==null?void 0:n.id)&&+z.age<25);if((n==null?void 0:n.memberType)==="kids"&&c&&(!c.areYouTheParent||!c.partnersRelationshipToChild)){const z=new oc("oneOfTheParentsLivingSeparately");r.push(z)}return r}static isRelationshipPresentToApplicant(n,a){return a.some(r=>{var i;return Pr(r)&&((i=r.otherPersonRelationshipToYouType)==null?void 0:i.value)===n})}static isRelationshipPresentToPartner(n,a){return a.some(r=>{var i;return Pr(r)&&((i=r.otherPersonRelationshipToPartnerType)==null?void 0:i.value)===n})}addInpatientFacility(n,a){var i;let r=!1;(n==null?void 0:n.memberType)==="applicant"&&(r=!!((i=a==null?void 0:a.applicantData)!=null&&i.inStationaryFacility)),(n==null?void 0:n.memberType)==="kids"&&(r=!!n.inStationaryFacility),(n==null?void 0:n.memberType)==="partner"&&(r=!!n.inStationaryFacility),(n==null?void 0:n.memberType)==="otherMembers"&&(r=!!n.inStationaryFacility),this[x.IN_STATIONARY_FACILITY]=r}addLabourIncome(n,a){var i,l,o,c,d,h;if(!n)return;let r=null;if((n==null?void 0:n.memberType)==="applicant"){const f=(i=a==null?void 0:a.incomeData)==null?void 0:i.applicantIncomeData;(l=f==null?void 0:f.labourIncome)==null||l.forEach(m=>{m.nettoIncome>0&&(r=m.nettoIncome)})}if((n==null?void 0:n.memberType)==="partner"){const f=(o=a==null?void 0:a.incomeData)==null?void 0:o.partnerIncomeData;f&&((c=f.labourIncome)==null||c.forEach(m=>{const g=m.nettoIncome?Number(m.nettoIncome):0;g&&g>0&&(r=g)}))}if((n==null?void 0:n.memberType)==="otherMembers"){const f=(d=a==null?void 0:a.incomeData)==null?void 0:d.otherMembersIncomeData;f==null||f.forEach(m=>{var g,b;(g=m.labourIncome)!=null&&g.length&&((b=m.labourIncome)==null||b.forEach(E=>{const S=E.nettoIncome?Number(E.nettoIncome):0;S&&S>0&&(r=r?Number(r)+S:S)}))})}if((n==null?void 0:n.memberType)==="kids"){const f=(h=a==null?void 0:a.incomeData)==null?void 0:h.kidsIncomeData;f==null||f.forEach(m=>{var g,b;(g=m.labourIncome)!=null&&g.length&&((b=m.labourIncome)==null||b.forEach(E=>{const S=E.nettoIncome?Number(E.nettoIncome):0;S&&S>0&&(r=r?Number(r)+S:S)}))})}this[x.NETTO_INCOME]=!!r}addMissingMember(n,a){const r=mi.getMissingMembers(n,a);this[x.ADDITIONAL_INFORMATION_ABOUT_MISSING_FATHER_OR_PARENTS].push(...r)}};wve=x.FIRST_NAME,Cve=x.POSTAL_CODE,Rve=x.LAST_NAME,Mve=x.PLACE_OF_BIRTH,Dve=x.COUNTRY_OF_BIRTH,jve=x.GENDER,Bve=x.MARITAL_STATUS,Pve=x.DATE_OF_BIRTH,Hve=x.IN_STATIONARY_FACILITY,Lve=x.IN_STATIONARY_FACILITY_NAME,Uve=x.INCOME_FROM_EMPLOYMENT,kve=x.NAME_OF_EMPLOYER,Fve=x.STREET_NAME_OF_EMPLOYER,Yve=x.BUILDING_NUMBER_OF_EMPLOYER,zve=x.POSTAL_CODE_OF_EMPLOYER,Gve=x.LOCATION_OF_EMPLOYER,Wve=x.PAYMENT_MODE_EMPLOYER,qve=x.COMPANY_HEADQUARTERS,Vve=x.HOUSEHOLD_MEMBER_APPLIED_FOR_ANOTHER_BENEFIT,Kve=x.SOCIAL_BENEFIT_PROVIDER,Zve=x.CHECKBOX_BAFOEG,Jve=x.CHECKBOX_BAB,Qve=x.CHECKBOX_HOUSING_ALLOWANCE,Xve=x.CHECKBOX_UNEMPLOYMENT_BENEFIT,_ve=x.CHECKBOX_PENSION,$ve=x.CHECKBOX_SICKNESS_BENEFIT,e0e=x.CHECKBOX_CHILD_ALLOWANCE,t0e=x.CHECKBOX_CHILD_ALLOWANCE_SUPPLEMENT,n0e=x.CHECKBOX_OTHER,a0e=x.APPLICATION_DATE,r0e=x.APPLICATION_REJECTED,i0e=x.ABANDONED,s0e=x.MEMBER_TYPE,l0e=x.RECEIVE_COMPENSATION_BENEFITS_SINCE,o0e=x.RECEIVE_COMPENSATION_BENEFITS_UNTIL,c0e=x.ADDITIONAL_INFORMATION_ABOUT_MISSING_FATHER_OR_PARENTS;let Xr=mi;var u0e,d0e,h0e,f0e,p0e,m0e,g0e,b0e,E0e,N0e,x0e,S0e,I0e,O0e,v0e;class oc{constructor(t){y(this,u0e,"");y(this,d0e,"");y(this,h0e,"");y(this,f0e,null);y(this,p0e,null);y(this,m0e,null);y(this,g0e,null);y(this,b0e,!1);y(this,E0e,null);y(this,N0e,"");y(this,x0e,"");y(this,S0e,"");y(this,I0e,"");y(this,O0e,"");y(this,v0e,"");y(this,"subformType",null);this.subformType=t??null}}u0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_NAME,d0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_FAMILY_NAME,h0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_PLACE_OF_BIRTH,f0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_COUNTRY_OF_BIRTH,p0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_GENDER,m0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_MARITAL_STATUS,g0e=x.PARENT_OUTSIDE_THE_HOUSEHOLD_BIRTH_DATE,b0e=x.PATERNITY_WAS_RECOGNIZED,E0e=x.THE_PARENTS_ADDRESS_IS_MINE,N0e=x.PARENT_STREET_NAME,x0e=x.PARENT_BUILDING_NUMBER,S0e=x.PARENT_FLOOR_NUMBER,I0e=x.PARENT_POSTAL_CODE,O0e=x.PARENT_CITY,v0e=x.PARENT_TELEPHONE_NUMBER;var T0e,A0e,y0e,w0e,C0e,R0e;class gS{constructor(){y(this,T0e,null);y(this,A0e,"");y(this,y0e,null);y(this,w0e,null);y(this,C0e,null);y(this,R0e,null)}}T0e=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_PURPOSE,A0e=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_DONOR,y0e=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_AMOUNT,w0e=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_BALANCE,C0e=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_AMOUNT_FOR_DEBT_SERVICE_PER_MONTH,R0e=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_SUBSIDY_END_OF_TERM;var M0e,D0e,j0e,B0e,P0e,H0e,L0e,U0e,k0e,F0e,Y0e,z0e,G0e,W0e,q0e,V0e,K0e,Z0e,J0e,Q0e,X0e,_0e,$0e,eTe,tTe,nTe,aTe,rTe,iTe,sTe,lTe,oTe,cTe,uTe,dTe,hTe,fTe,pTe,mTe,gTe,bTe,ETe,NTe,xTe,STe,ITe,OTe,vTe,TTe,ATe,yTe,wTe,CTe,RTe,MTe,DTe,jTe,BTe,PTe,HTe,LTe,UTe,kTe,FTe,YTe,zTe,GTe,WTe,qTe,VTe,KTe,ZTe,JTe,QTe,XTe,_Te,$Te,eAe,tAe,nAe,aAe,rAe,iAe,sAe,lAe,oAe,cAe,uAe,dAe,hAe,fAe,pAe,mAe,gAe,bAe,EAe,NAe,xAe,SAe,IAe,OAe,vAe,TAe,AAe,yAe,wAe,CAe,RAe,MAe,DAe,jAe,BAe,PAe,HAe,LAe,UAe,kAe,FAe,YAe,zAe,GAe,WAe,qAe,VAe,KAe,ZAe,JAe,QAe,XAe,_Ae,$Ae,eye,tye,nye,aye,rye,iye,sye,lye,oye,cye,uye,dye,hye;const KT=class KT{constructor(t){y(this,M0e,[]);y(this,D0e,"");y(this,j0e,!1);y(this,B0e,"");y(this,P0e,"");y(this,H0e,"");y(this,L0e,"");y(this,U0e,"");y(this,k0e,"");y(this,F0e,"");y(this,Y0e,"");y(this,z0e,"");y(this,G0e,!1);y(this,W0e,"");y(this,q0e,"");y(this,V0e,"");y(this,K0e,"");y(this,Z0e,"");y(this,J0e,"");y(this,Q0e,"");y(this,X0e,!1);y(this,_0e,"");y(this,$0e,!1);y(this,eTe,"");y(this,tTe,"");y(this,nTe,!1);y(this,aTe,!1);y(this,rTe,!1);y(this,iTe,!1);y(this,sTe,null);y(this,lTe,null);y(this,oTe,"");y(this,cTe,"");y(this,uTe,"");y(this,dTe,"");y(this,hTe,"");y(this,fTe,"");y(this,pTe,!1);y(this,mTe,!1);y(this,gTe,!1);y(this,bTe,!1);y(this,ETe,null);y(this,NTe,null);y(this,xTe,"");y(this,STe,"");y(this,ITe,"");y(this,OTe,"");y(this,vTe,"");y(this,TTe,!1);y(this,ATe,null);y(this,yTe,null);y(this,wTe,"");y(this,CTe,"");y(this,RTe,"");y(this,MTe,"");y(this,DTe,"");y(this,jTe,!1);y(this,BTe,!1);y(this,PTe,!1);y(this,HTe,!1);y(this,LTe,null);y(this,UTe,null);y(this,kTe,"");y(this,FTe,"");y(this,YTe,"");y(this,zTe,"");y(this,GTe,"");y(this,WTe,!1);y(this,qTe,!1);y(this,VTe,!1);y(this,KTe,[new GR,new GR]);y(this,ZTe,[new gS,new gS,new gS]);y(this,JTe,!1);y(this,QTe,null);y(this,XTe,null);y(this,_Te,!1);y(this,$Te,null);y(this,eAe,null);y(this,tAe,null);y(this,nAe,null);y(this,aAe,null);y(this,rAe,null);y(this,iAe,null);y(this,sAe,!1);y(this,lAe,null);y(this,oAe,null);y(this,cAe,"");y(this,uAe,!1);y(this,dAe,null);y(this,hAe,!1);y(this,fAe,"");y(this,pAe,"");y(this,mAe,"");y(this,gAe,"");y(this,bAe,null);y(this,EAe,!1);y(this,NAe,!1);y(this,xAe,"");y(this,SAe,null);y(this,IAe,"");y(this,OAe,!1);y(this,vAe,"");y(this,TAe,!1);y(this,AAe,!1);y(this,yAe,null);y(this,wAe,!1);y(this,CAe,!1);y(this,RAe,!1);y(this,MAe,!1);y(this,DAe,null);y(this,jAe,null);y(this,BAe,"");y(this,PAe,null);y(this,HAe,null);y(this,LAe,"");y(this,UAe,null);y(this,kAe,!1);y(this,FAe,!1);y(this,YAe,null);y(this,zAe,null);y(this,GAe,!1);y(this,WAe,null);y(this,qAe,!1);y(this,VAe,"");y(this,KAe,null);y(this,ZAe,null);y(this,JAe,"");y(this,QAe,null);y(this,XAe,!1);y(this,_Ae,!1);y(this,$Ae,!1);y(this,eye,null);y(this,tye,"");y(this,nye,!1);y(this,aye,null);y(this,rye,null);y(this,iye,"");y(this,sye,!1);y(this,lye,"");y(this,oye,!1);y(this,cye,!1);y(this,uye,!1);y(this,dye,null);y(this,hye,!1);t&&(t.additionalInformation&&Object.keys(t.additionalInformation).length&&this.reinitialize(t),t.additionalInformation||(this.addHouseHoldMembersApplication(t),this.addPostalCode(t)))}static sortMembers(t){const n={applicant:0,partner:1,kids:2,otherMembers:3};return t.sort((r,i)=>n[r==null?void 0:r.memberType]-n[i.memberType])}reinitialize(t){if(t!=null&&t.additionalInformation){const n=Object.keys(this),a=Object.entries(t.additionalInformation);a==null||a.forEach(([r,i])=>{n.includes(r)&&(this[r]=i)})}}addPostalCode(t){var n,a;(n=t.livingCosts)!=null&&n.postalCode&&(this.postalCode=(a=t.livingCosts)==null?void 0:a.postalCode)}addApplicant(t,n,a){const r=[...n];return r.unshift(new Xr({...this.getFirstLastName(t==null?void 0:t.name),...t,memberType:"applicant"},a)),r}getFirstLastName(t){let n="",a="";if(t){const r=t.split(" ");n=r[0],a=r[1]}return{firstName:n,lastName:a}}addHouseHoldMembersApplication(t){var l,o;const n=[],a=t.houseHoldMembersApplication,r=this.addApplicant(t.applicantData,n,t);if(n.push(...r),(l=a==null?void 0:a.kids)!=null&&l.length){const c=a==null?void 0:a.kids.map(d=>new Xr({...this.getFirstLastName(d.name),...d,memberType:"kids"},t));n.push(...c)}if(a!=null&&a.partner){const c=new Xr({...this.getFirstLastName(a.partner.name),...a.partner,memberType:"partner"},t);n.push(c)}if((o=a==null?void 0:a.householdMembers)!=null&&o.length){const c=a.householdMembers.map(d=>new Xr({...this.getFirstLastName(d.name),...d,memberType:"otherMembers"},t));n.push(...c)}const i=KT.sortMembers(n);this.houseHoldMembersApplication=i}};M0e=x.HOUSE_HOLD_MEMBERS_APPLICATION,D0e=x.POSTAL_CODE,j0e=x.PAID_DIRECTLY_TO_OTHER_PERSON,B0e=x.LANDLORD_BIC,P0e=x.OTHER_PERSON_IBAN,H0e=x.OTHER_PERSON_NAME_OF_BANK_ACCOUNT_HOLDER,L0e=x.OTHER_PERSON_BIC,U0e=x.STREET_NAME,k0e=x.BUILDING_NUMBER,F0e=x.FLOOR_NUMBER,Y0e=x.CITY,z0e=x.PO_BOX_ADRESS,G0e=x.NO_PERMANENT_RESIDENCE,W0e=x.RESIDENCE_DETAILS,q0e=x.PHONE_NUMBER,V0e=x.EMAIL_ADDRESS,K0e=x.LANDLORD_NAME,Z0e=x.LANDLORD_ADDRESS,J0e=x.NAME_OF_BANK_ACCOUNT_HOLDER,Q0e=x.IBAN,X0e=x.NO_BANK_ACCOUNT,_0e=x.LANDLORD_NAME_OF_BANK_ACCOUNT_HOLDER,$0e=x.PAID_DIRECTLY_TO_LANDLORD,eTe=x.LANDLORD_IBAN,tTe=x.BIC,nTe=x.INITIAL_APPLICATION,aTe=x.APPLICATION_FOR_RENEWAL,rTe=x.INCREASE_REQUEST,iTe=x.CITIZENS_ALLOWANCE_REQUEST_IMMEDIATELY,sTe=x.CITIZENS_ALLOWANCE_REQUEST_FROM,lTe=x.CITIZENS_ALLOWANCE_REQUEST_UNTIL,oTe=x.RESPONSIBLE_JOB_CENTER_STREET_NAME,cTe=x.RESPONSIBLE_JOB_CENTER_BUILDING_NUMBER,uTe=x.RESPONSIBLE_JOB_CENTER_POSTAL_CODE,dTe=x.RESPONSIBLE_JOB_CENTER_POSTAL_LOCATION,hTe=x.BG_NUMBER,fTe=x.YEAR_OF_CONSTRUCTION,pTe=x.CHILD_ALLOWANCE_INITIAL_APPLICATION,mTe=x.CHILD_ALLOWANCE_FOR_CONTINUED_BENEFITS,gTe=x.CHILD_ALLOWANCE_FOR_INCREASE_REQUEST,bTe=x.CHILD_ALLOWANCE_REQUEST_IMMEDIATELY,ETe=x.CHILD_ALLOWANCE_REQUEST_FROM,NTe=x.CHILD_ALLOWANCE_REQUEST_UNTIL,xTe=x.RESPONSIBLE_FAMILY_FUND_STREET,STe=x.RESPONSIBLE_FAMILY_FUND_LOCATION,ITe=x.RESPONSIBLE_FAMILY_FUND_BUILDING_NUMBER,OTe=x.RESPONSIBLE_FAMILY_FUND_POSTAL_CODE,vTe=x.CHILD_BENEFIT_NUMBER,TTe=x.HOUSING_ALLOWANCE_IMMEDIATELY,ATe=x.HOUSING_ALLOWANCE_FROM,yTe=x.HOUSING_ALLOWANCE_UNTIL,wTe=x.RESPONSIBLE_HOUSING_ALLOWANCE_STREET,CTe=x.RESPONSIBLE_HOUSING_ALLOWANCE_LOCATION,RTe=x.RESPONSIBLE_HOUSING_ALLOWANCE_BUILDING_NUMBER,MTe=x.RESPONSIBLE_HOUSING_ALLOWANCE_POSTAL_CODE,DTe=x.HOUSING_ALLOWANCE_NUMBER,jTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INITIAL_APPLICATION,BTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_CONTINUED_BENEFITS,PTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_INCREASE_REQUEST,HTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_IMMEDIATELY,LTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_FROM,UTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_UNTIL,kTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_STREET_NAME,FTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BUILDING_NUMBER,YTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER,zTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_POSTAL_CODE,GTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_LOCATION,WTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE,qTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL,VTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE,KTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS,ZTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE,JTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED,QTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_REMAINDER_OF_REPLACED_BORROWED_FUNDS,XTe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_BENEFITS_FOR_INTEREST,_Te=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE,$Te=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE_BORROWED_FUNDS_AND_MONTHLY_AMOUNT,eAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_PROPERTY_TAX,tAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GUARANTEE_COSTS,nAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_ADMINISTRATIVE_EXPENSES,aAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_USAGE_FEE,rAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GROUND_RENT,iAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_OTHER_SERVICES,sAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE,lAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_TYPE_OF_LOADS,oAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_FUTURE_CHARGES_PER_MONTH,cAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WIL_WILL_INCREASE_REASON,uAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS,dAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS_DATE,hAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS,fAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_STREET_NAME,pAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_BUILDING_NUMBER,mAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_POSTAL_CODE,gAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_LOCATION,bAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_PLANNED_MOVE_IN_DATE,EAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_APPLIED_FOR_ANOTHER_APARTMENT,NAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_SECOND_HOME_AVAILABLE,xAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE,SAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_PLANED_MOVE_IN_DATE,IAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_REASON,OAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE,vAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE_REASON,TAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_WAS_PAID,AAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_HAS_NOTARIZED_FREE_OF_CHARGE_RESIDENCE,yAe=x.HOUSING_BENEFIT_BURDEN_SUBSIDY_AGREEMENT,wAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_INITIAL_APPLICATION,CAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_CONTINUED_BENEFITS,RAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_INCREASE_REQUEST,MAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_IMMEDIATELY,DAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_FROM,jAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_UNTIL,BAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_STREET_NAME,PAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_BUILDING_NUMBER,HAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_POSTAL_CODE,LAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_LOCATION,UAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER,kAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT,FAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT,YAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_HOW_MUCH_OF_YOUR_RENT_YOU_PAY_DIRECTLY_TO_YOUR_LANDLORD,zAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_YEAR_OF_CONSTRUCTION_OF_ACCOMMODATION,GAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS,WAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS_MOVE_OUT_DATE,qAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED,VAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_STREET_NAME,KAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_BUILDING_NUMBER,ZAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_POSTAL_CODE,JAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_LOCATION,QAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_PLANNED_MOVE_IN_DATE,XAe=x.HOUSING_BENEFIT_RENT_SUBSIDY_BEING_RECEIVED_FOR_ANOTHER_APARTMENT_OR_THIS_HAS_BEEN_APPLIED_FOR,_Ae=x.HOUSING_BENEFIT_RENT_SUBSIDY_SECOND_HOME_AVAILABLE,$Ae=x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE,eye=x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_PLANED_MOVE_IN_DATE,tye=x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_REASON,nye=x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS,aye=x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_DATE,rye=x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_FUTURE_RENT_PER_MONTH,iye=x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON,sye=x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS,lye=x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON_AND_PERSON_CONCERNED,oye=x.HOUSING_BENEFIT_RENT_SUBSIDY_ONE_HOUSEHOLD_MEMBER_WAS_PAID_BY_A_TRANSFER_AUTHORITY,cye=x.HOUSING_BENEFIT_RENT_SUBSIDY_A_HOUSEHOLD_MEMBER_HAS_A_NOTARIZED_FREE_OF_CHARGE_RIGHT_OF_RESIDENCE,uye=x.HOUSING_BENEFIT_RENT_SUBSIDY_THE_HOUSING_WAS_SUBSIDIZED_WITH_PUBLIC_FUNDS_AND_IS_SUBJECT_TO_HENCE_RENT_CONTROL,dye=x.HOUSING_BENEFIT_RENT_SUBSIDY_AGREEMENT,hye=x.CHILD_HAVE_ONLY_ONE_PARENT;let Jd=KT;var Ti=(e=>(e.IMMEDIATELY="immediately",e.FROM_DATE="fromDate",e.UNTIL="until",e))(Ti||{});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function pce(e){var n,a,r,i;const t=[];return(n=e.incomeData)!=null&&n.applicantIncomeData&&t.push(e.incomeData.applicantIncomeData),(a=e.incomeData)!=null&&a.kidsIncomeData&&t.push(...e.incomeData.kidsIncomeData),(r=e.incomeData)!=null&&r.partnerIncomeData&&t.push(e.incomeData.partnerIncomeData),(i=e.incomeData)!=null&&i.otherMembersIncomeData&&t.push(...e.incomeData.otherMembersIncomeData),t}function mce(e,t){var c,d,h,f;if(Pa(e,t))return e;const n=e.additionalInformation||new Jd,a=e.applicantData,r=cm(e,t),i=Ch(e,t),l=um(e,t),o=eSe(e,t);if(n!=null&&n.houseHoldMembersApplication&&!n.houseHoldMembersApplication.find(Uc)&&n.houseHoldMembersApplication.push(new Xr({...Wh((a==null?void 0:a.name)||""),...a,memberType:"applicant"},e)),r==null||r.forEach(m=>{var g,b,E,S;if(ii(m)){const I=new Xr({...Wh((m==null?void 0:m.name)||""),...m,memberType:"partner"},e);(g=n.houseHoldMembersApplication)!=null&&g.find(ii)||(b=n.houseHoldMembersApplication)==null||b.push(I)}if(vi(m)){const I=new Xr({...Wh((m==null?void 0:m.name)||""),...m,memberType:"kids"},e);gM(n.houseHoldMembersApplication||[],I.id)||(E=n.houseHoldMembersApplication)==null||E.push(I)}if(Pr(m)){const I=new Xr({...Wh((m==null?void 0:m.name)||""),...m,memberType:"otherMembers"},e);gM(n.houseHoldMembersApplication||[],I.id)||(S=n.houseHoldMembersApplication)==null||S.push(I)}n.houseHoldMembersApplication=Jd.sortMembers(n.houseHoldMembersApplication||[])}),l.length){const m=pce(e);l==null||l.forEach((g,b)=>{var S,I,O;const E=(S=n.houseHoldMembersApplication)==null?void 0:S.find(v=>v.id===g.id);if(E&&((I=n==null?void 0:n.houseHoldMembersApplication)!=null&&I.length)&&n.houseHoldMembersApplication[b]){const v=m.find(H=>H.memberId===g.id),w=(O=v==null?void 0:v.labourIncome)==null?void 0:O.reduce((H,U)=>H+U.nettoIncome,0),D=n.houseHoldMembersApplication.indexOf(E);let C={};E.nameWasChanged||(C=Wh((g==null?void 0:g.name)||""));const M=n==null?void 0:n.houseHoldMembersApplication[D],B=[],L=Xr.getMissingMembers(M,e);L.length&&B.push(...L),n.houseHoldMembersApplication[D]={...E,...C,inStationaryFacility:g.inStationaryFacility,nettoIncome:!!w,additionalInformationAboutMissingFatherOrParents:B}}})}if(o.length&&(o==null||o.forEach(m=>{var b,E;const g=(b=n.houseHoldMembersApplication)==null?void 0:b.find(S=>S.id===m.id);if(g){const S=(E=n==null?void 0:n.houseHoldMembersApplication)==null?void 0:E.indexOf(g);if(n!=null&&n.houseHoldMembersApplication&&typeof S=="number"&&(n!=null&&n.houseHoldMembersApplication[S])){const I=n==null?void 0:n.houseHoldMembersApplication[S],O=Xr.getMissingMembers(I,e);n.houseHoldMembersApplication[S]={...I,additionalInformationAboutMissingFatherOrParents:[...O||[]]}}}})),((c=t.livingCosts)==null?void 0:c.postalCode)!==((d=e.livingCosts)==null?void 0:d.postalCode)&&(n.postalCode=((h=e.livingCosts)==null?void 0:h.postalCode)||""),i.length){i==null||i.forEach(g=>{var b;n.houseHoldMembersApplication=(b=n.houseHoldMembersApplication)==null?void 0:b.filter(E=>E.id!==g.id)});const m=QU(e);n.houseHoldMembersApplication=(f=n.houseHoldMembersApplication)==null?void 0:f.filter(g=>m.find(b=>b.id===g.id))}return{...e,additionalInformation:n}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const sm=[{Land:"Abchasien"},{Land:"Afghanistan"},{Land:"Ägypten"},{Land:"Albanien"},{Land:"Algerien"},{Land:"Andorra"},{Land:"Angola"},{Land:"Antigua und Barbuda"},{Land:"Äquatorialguinea"},{Land:"Argentinien"},{Land:"Armenien"},{Land:"Aserbaidschan"},{Land:"Äthiopien"},{Land:"Australien"},{Land:"Bahamas"},{Land:"Bahrain"},{Land:"Bangladesch"},{Land:"Barbados"},{Land:"Belarus"},{Land:"Belgien",EU:"EU"},{Land:"Belize"},{Land:"Benin"},{Land:"Bhutan"},{Land:"Bolivien"},{Land:"Bosnien und Herzegowina"},{Land:"Botswana"},{Land:"Brasilien"},{Land:"Brunei"},{Land:"Bulgarien",EU:"EU"},{Land:"Burkina Faso"},{Land:"Burundi"},{Land:"Chile"},{Land:"China, Republik"},{Land:"China, Volksrepublik"},{Land:"Cookinseln"},{Land:"Costa Rica"},{Land:"Dänemark",EU:"EU"},{Land:"Deutschland",EU:"EU",isGermany:!0},{Land:"Dominica"},{Land:"Dominikanische Republik"},{Land:"Dschibuti"},{Land:"Ecuador"},{Land:"El Salvador"},{Land:"Elfenbeinküste"},{Land:"Eritrea"},{Land:"Estland",EU:"EU"},{Land:"Eswatini"},{Land:"Fidschi"},{Land:"Finnland",EU:"EU"},{Land:"Frankreich",EU:"EU"},{Land:"Gabun"},{Land:"Gambia"},{Land:"Georgien"},{Land:"Ghana"},{Land:"Grenada"},{Land:"Griechenland",EU:"EU"},{Land:"Guatemala"},{Land:"Guinea"},{Land:"Guinea-Bissau"},{Land:"Guyana"},{Land:"Haiti"},{Land:"Honduras"},{Land:"Indien"},{Land:"Indonesien"},{Land:"Irak"},{Land:"Iran"},{Land:"Irland",EU:"EU"},{Land:"Island"},{Land:"Israel"},{Land:"Italien",EU:"EU"},{Land:"Jamaika"},{Land:"Japan"},{Land:"Jemen"},{Land:"Jordanien"},{Land:"Kambodscha"},{Land:"Kamerun"},{Land:"Kanada"},{Land:"Kap Verde"},{Land:"Kasachstan"},{Land:"Katar"},{Land:"Kenia"},{Land:"Kirgisistan"},{Land:"Kiribati"},{Land:"Kolumbien"},{Land:"Komoren"},{Land:"Kongo, Demokratische Republik"},{Land:"Kongo, Republik"},{Land:"Korea, Nord (Nordkorea)"},{Land:"Korea, Süd (Südkorea)"},{Land:"Kosovo"},{Land:"Kroatien",EU:"EU"},{Land:"Kuba"},{Land:"Kuwait"},{Land:"Laos"},{Land:"Lesotho"},{Land:"Lettland",EU:"EU"},{Land:"Libanon"},{Land:"Liberia"},{Land:"Libyen"},{Land:"Liechtenstein"},{Land:"Litauen",EU:"EU"},{Land:"Luxemburg",EU:"EU"},{Land:"Madagaskar"},{Land:"Malawi"},{Land:"Malaysia"},{Land:"Malediven"},{Land:"Mali"},{Land:"Malta",EU:"EU"},{Land:"Marokko"},{Land:"Marshallinseln"},{Land:"Mauretanien"},{Land:"Mauritius"},{Land:"Mexiko"},{Land:"Mikronesien"},{Land:"Moldau"},{Land:"Monaco"},{Land:"Mongolei"},{Land:"Montenegro"},{Land:"Mosambik"},{Land:"Myanmar"},{Land:"Namibia"},{Land:"Nauru"},{Land:"Nepal"},{Land:"Neuseeland"},{Land:"Nicaragua"},{Land:"Niederlande",EU:"EU"},{Land:"Niger"},{Land:"Nigeria"},{Land:"Niue"},{Land:"Nordmazedonien"},{Land:"Nordzypern"},{Land:"Norwegen"},{Land:"Oman"},{Land:"Österreich",EU:"EU"},{Land:"Osttimor / Timor-Leste"},{Land:"Pakistan"},{Land:"Palästina"},{Land:"Palau"},{Land:"Panama"},{Land:"Papua-Neuguinea"},{Land:"Paraguay"},{Land:"Peru"},{Land:"Philippinen"},{Land:"Polen",EU:"EU"},{Land:"Portugal",EU:"EU"},{Land:"Ruanda"},{Land:"Rumänien",EU:"EU"},{Land:"Russland"},{Land:"Salomonen"},{Land:"Sambia"},{Land:"Samoa"},{Land:"San Marino"},{Land:"São Tomé und Príncipe"},{Land:"Saudi-Arabien"},{Land:"Schweden",EU:"EU"},{Land:"Schweiz"},{Land:"Senegal"},{Land:"Serbien"},{Land:"Seychellen"},{Land:"Sierra Leone"},{Land:"Simbabwe"},{Land:"Singapur"},{Land:"Slowakai",EU:"EU"},{Land:"Slowenien",EU:"EU"},{Land:"Somalia"},{Land:"Somaliland"},{Land:"Spanien",EU:"EU"},{Land:"Sri Lanka"},{Land:"St. Kitts und Nevis / St. Christopher und Nevis"},{Land:"St. Lucia"},{Land:"St. Vincent und die Grenadinen"},{Land:"Südafrika"},{Land:"Sudan"},{Land:"Südossetien"},{Land:"Südsudan"},{Land:"Suriname"},{Land:"Syrien"},{Land:"Tadschikistan"},{Land:"Tansania"},{Land:"Thailand"},{Land:"Togo"},{Land:"Tonga"},{Land:"Transnistrien"},{Land:"Trinidad und Tobago"},{Land:"Tschad"},{Land:"Tschechien",EU:"EU"},{Land:"Tunesien"},{Land:"Türkei"},{Land:"Turkmenistan"},{Land:"Tuvalu"},{Land:"Uganda"},{Land:"Ukraine"},{Land:"Ungarn",EU:"EU"},{Land:"Uruguay"},{Land:"Usbekistan"},{Land:"Vanuatu"},{Land:"Vatikanstadt"},{Land:"Venezuela"},{Land:"Vereinigte Arabische Emirate"},{Land:"Vereinigte Staaten"},{Land:"Vereinigtes Königreich"},{Land:"Vietnam"},{Land:"Westsahara"},{Land:"Zentral­afrikanische Republik"},{Land:"Zypern",EU:"EU"}];globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function gce(e,t){if(t.applicantData!==e.applicantData){const n=ls().subtract(1,"days").toDate(),a=e.applicantData,r=sm.find(E=>{var S;return E.Land===((S=a==null?void 0:a.nationality)==null?void 0:S.value)}),i=(r==null?void 0:r.EU)==="EU",l=!!(r!=null&&r.isGermany),o=i&&!l,c=r!==void 0&&!i&&!l;let d=a==null?void 0:a.claimAsylumSeekerBenefits,h=a==null?void 0:a.commitmentDeclaration,f=a==null?void 0:a.collectiveAccommodation;i&&l&&(d=!1,f=!1,h=!1);let m=a==null?void 0:a.accommodationStartDate,g=a==null?void 0:a.accommodationEndDate,b=a==null?void 0:a.entryDate;return a!=null&&a.inStationaryFacility||(m="",g=""),r&&(o||c)&&((a==null?void 0:a.entryDate)===""||(a==null?void 0:a.entryDate)===void 0)&&(b=n),{...e,applicantData:{...a,claimAsylumSeekerBenefits:d||!1,collectiveAccommodation:f||!1,commitmentDeclaration:h||!1,accommodationStartDate:m||null,accommodationEndDate:g||null,entryDate:b}}}return e}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var _=(e=>(e.CASH_ASSETS="cashAssets",e.CASH_ASSETS_INFO="cashAssetsInfo",e.CURRENT_ACCOUNT="currentAccount",e.CURRENT_ACCOUNT_INFO="currentAccountInfo",e.CREDIT_CARDS_OR_PAYMENT_SERVICES_OR_OTHER="creditCardsOrPaymentServicesOrOther",e.CREDIT_CARDS_OR_PAYMENT_SERVICES_OR_OTHER_INFO="creditCardsOrPaymentServicesOrOtherInfo",e.MOTOR_VEHICLES="motorVehicles",e.MOTOR_VEHICLES_INFO="motorVehiclesInfo",e.NOT_INHABITED_REAL_ESTATE="notInhabitedRealEstate",e.NOT_INHABITED_REAL_ESTATE_INFO="notInhabitedRealEstateInfo",e.OTHER_ASSETS="otherAssets",e.OTHER_ASSETS_INFO="otherAssetsInfo",e.CONDOMINIUM_PROPERTY="condominiumProperty",e.CONDOMINIUM_PROPERTY_INFO="condominiumPropertyInfo",e.HOUSE_PROPERTY="houseProperty",e.HOUSE_PROPERTY_INFO="housePropertyInfo",e.VACANT_LAND_PROPERTY="vacantLandProperty",e.VACANT_LAND_PROPERTY_INFO="vacantLandPropertyInfo",e.CO_OWNERSHIP_SHARE="coOwnershipShare",e.MARKET_VALUE="marketValue",e.RENT_LEASE_INCOME="rentLeaseIncome",e.SAVING_DEPOSITS_OR_BONDS="savingDepositsOrBonds",e.SAVING_DEPOSITS_OR_BONDS_INFO="savingDepositsOrBondsInfo",e.SAVING_DEPOSITS_OR_BONDS_SAVINGS_ACCOUNTS_SAVINGS_BOOKS_CALL_MONEY_ACCOUNTS_PREMIUM_SAVINGS="savingDepositsOrBondsSavingsAccountsSavingsBooksCallMoneyAccountsPremiumSavings",e.SAVING_DEPOSITS_OR_BONDS_SAVINGS_ACCOUNTS_SAVINGS_BOOKS_CALL_MONEY_ACCOUNTS_PREMIUM_SAVINGS_INFO="savingDepositsOrBondsSavingsAccountsSavingsBooksCallMoneyAccountsPremiumSavingsInfo",e.SAVING_DEPOSITS_OR_BONDS_SAVINGS_CERTIFICATES_OR_OTHER_SECURITIES_AS_SHARES_BONDS_FUND_SHARES="savingDepositsOrBondsSavingsCertificatesOrOtherSecuritiesAsSharesBondsFundShares",e.SAVING_DEPOSITS_OR_BONDS_SAVINGS_CERTIFICATES_OR_OTHER_SECURITIES_AS_SHARES_BONDS_FUND_SHARES_INFO="savingDepositsOrBondsSavingsCertificatesOrOtherSecuritiesAsSharesBondsFundSharesInfo",e.BUILDINGS_SAVINGS_CONTRACTS="buildingsSavingsContracts",e.BUILDINGS_SAVINGS_CONTRACTS_INFO="buildingsSavingsContractsInfo",e.INHERITANCE="inheritance",e.INHERITANCE_INFO="inheritanceInfo",e.INSURANCE_WITH_PREMIUM_REFUNDS="insuranceWithPremiumRefunds",e.INSURANCE_WITH_PREMIUM_REFUNDS_INFO="insuranceWithPremiumRefundsInfo",e.GIFTS_DONATIONS_TRANSFERS="giftsDonationsTransfers",e.GIFTS_DONATIONS_TRANSFERS_INFO="giftsDonationsTransfersInfo",e.INSURANCE_WITH_PREMIUM_REFUNDS_DISABILITY_DEATH_ACCIDENT="insuranceWithPremiumRefundsDisabilityDeathAccident",e.INSURANCE_WITH_PREMIUM_REFUNDS_DISABILITY_DEATH_ACCIDENT_INFO="insuranceWithPremiumRefundsDisabilityDeathAccidentInfo",e.OTHER_ASSETS_CRYPTO_METALS_JEWELRY="otherAssetsCryptoMetalsJewelry",e.OTHER_ASSETS_CRYPTO_METALS_JEWELRY_INFO="otherAssetsCryptoMetalsJewelryInfo",e.TAX_SUBSIDIZED_RETIREMENT_PROVISIONS="taxSubsidizedRetirementProvisions",e.TAX_SUBSIDIZED_RETIREMENT_PROVISIONS_INFO="taxSubsidizedRetirementProvisionsInfo",e.AMOUNT="amount",e.TOTAL="total",e))(_||{});class Pi{constructor(t){y(this,"id");y(this,"name");y(this,"cashAssets",!1);y(this,"cashAssetsInfo",null);y(this,"currentAccount",!1);y(this,"currentAccountInfo",null);y(this,"creditCardsOrPaymentServicesOrOther",!1);y(this,"creditCardsOrPaymentServicesOrOtherInfo",null);y(this,"motorVehicles",!1);y(this,"motorVehiclesInfo",null);y(this,"notInhabitedRealEstate",!1);y(this,"notInhabitedRealEstateInfo",null);y(this,"otherAssets",!1);y(this,"otherAssetsInfo",null);y(this,"total","");t&&Object.assign(this,t)}}class FL{constructor(t){y(this,"applicant",null);y(this,"partner",null);y(this,"kids",[]);y(this,"otherMembers");t&&Object.assign(this,t)}}const Hf={assets:{title:"Geben Sie hier bitte das aktuelle Vermögen der Haushaltsmitglieder an.",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"Machen Sie hier Angaben nach bestem Wissen. Sollte eine der Personen Ihnen keine Auskunft über ihr Vermögen gewähren, vermerken Sie dies bitte handschriftlich auf dem Antrag und erklären Sie der zuständigen Behörde Ihren Fall detaillierter."})})},motorVehicles:{title:"Kraftfahrzeuge (Gesamtwert)",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsxs("p",{children:["Dies beinhaltet PKW, Motorrad und weitere KFZ, wie LKW usw. Bitte geben Sie hier den Gesamtwert nach aktuellem Gebrauchsstand an."," "]})})},notInhabitedRealEstate:{title:"Nicht selbst bewohnte Immobilien",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Angaben zum Verkehrswert von Grundstücken oder Eigentumswohnungen sind erforderlich, damit das Jobcenter gegebenenfalls die Frage einer Verwertung der Immobilie durch Verkauf, Beleihung oder Vermietung prüfen kann. Als Nachweis für den Verkehrswert von Immobilien gelten Kaufverträge oder Verkehrswertgutachten (jeweils in Kopie), die nicht älter als drei Jahre sind."}),s.jsx("p",{children:"Liegen entsprechende Unterlagen nicht vor, werden vom Jobcenter bei unbebauten Grundstücksflächen die Werte aus den Bodenrichtwerttabellen und bei bebauten Grundstücken die Angaben aus den Kaufpreissammlungen der Gutachterausschüsse bei den Kataster- und Vermessungsämtern für die Berechnungen zugrunde gelegt."})]})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function bce(e,t){var l,o;const n={...e.financialAssets},a=cm(e,t),r=Ch(e,t),i=um(e,t);if(!(n!=null&&n.applicant)){const c=new Pi({id:((l=e.applicantData)==null?void 0:l.id)||"",name:((o=e.applicantData)==null?void 0:o.name)||""});n.applicant=c}return a==null||a.forEach(c=>{var d,h;if(ii(c)){const f=new Pi({id:(c==null?void 0:c.id)||"",name:(c==null?void 0:c.name)||""});n.partner=f}if(vi(c)){const f=new Pi({id:c.id||"",name:c.name||""});bM(n.kids||[],f.id||"")||(d=n==null?void 0:n.kids)==null||d.push(f)}if(Pr(c)){const f=new Pi({id:c.id||"",name:c.name||""});bM(n.kids||[],f.id||"")||(h=n.otherMembers)==null||h.push(f)}}),i==null||i.forEach(c=>{var d,h,f,m,g,b;if(c.id===((d=n.applicant)==null?void 0:d.id)&&c.name!==((h=n.applicant)==null?void 0:h.name)){const E=new Pi({...n.applicant,id:c.id||"",name:c.name||""});n.applicant&&(n.applicant=E)}if(c.id===((f=n.partner)==null?void 0:f.id)&&c.name!==((m=n.partner)==null?void 0:m.name)){const E=new Pi({...n.partner,id:c.id||"",name:c.name||""});n.partner&&(n.partner=E)}(g=n==null?void 0:n.kids)==null||g.forEach((E,S)=>{if(c.id===E.id&&c.name!==E.name){const I=new Pi({...E,id:c.id||"",name:c.name||""});n!=null&&n.kids&&(n.kids[S]=I)}}),(b=n.otherMembers)==null||b.forEach((E,S)=>{if(c.id===E.id&&c.name!==E.name){const I=new Pi({...E,id:c.id||"",name:c.name||""});n!=null&&n.otherMembers&&(n!=null&&n.otherMembers[S])&&(n.otherMembers[S]=I)}})}),r.length&&(r==null||r.forEach(c=>{var d,h,f,m;ii(c)&&(n.partner=void 0),vi(c)&&(n.kids=(d=n==null?void 0:n.kids)==null?void 0:d.filter(g=>g.id!==c.id),n.kids=(h=n==null?void 0:n.kids)==null?void 0:h.filter(g=>{var b,E;return(E=(b=e.houseHoldMembersApplication)==null?void 0:b.kids)==null?void 0:E.find(S=>S.id===g.id)})),Pr(c)&&(n.otherMembers=(f=n==null?void 0:n.otherMembers)==null?void 0:f.filter(g=>g.id!==c.id),n.otherMembers=(m=n==null?void 0:n.otherMembers)==null?void 0:m.filter(g=>{var b,E;return(E=(b=e.houseHoldMembersApplication)==null?void 0:b.householdMembers)==null?void 0:E.find(S=>S.id===g.id)}))})),{...e,financialAssets:n}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Ece(e,t){var a,r;return Ch(e,t).find(ii)?{...e,houseHoldMembersApplication:{...e.houseHoldMembersApplication,kids:(r=(a=e.houseHoldMembersApplication)==null?void 0:a.kids)==null?void 0:r.map(i=>({...i,partnerIsParent:!1}))}}:e}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var u=(e=>(e.APPLICANT_INCOME_DATA="applicantIncomeData",e.PARTNER_INCOME_DATA="partnerIncomeData",e.KIDS_INCOME_DATA="kidsIncomeData",e.OTHER_MEMBERS_INCOME_DATA="otherMembersIncomeData",e.LABOUR_INCOME="labourIncome",e.SELF_EMPLOYMENT_INCOME="selfEmploymentIncome",e.APPRENTICESHIP_WAGE_INCOME="apprenticeshipWageIncome",e.APPRENTICESHIP_WAGE_INCOME_DISMISSED="apprenticeshipWageIncomeDismissed",e.OTHER_INCOME="otherIncome",e.TOTAL="total",e.JOB_TITLE="jobTitle",e.BRUTTO_INCOME="bruttoIncome",e.NETTO_INCOME="nettoIncome",e.TYPE_OF_TASK="typeOfTask",e.TAX_CLASS="taxClass",e.CHURCH_MEMBER="churchMember",e.WILL_LOSE_JOB_SOON="willLoseJobSoon",e.REQUIRE_MANUAL_INPUT="requireManualInput",e.STUDENT_OR_HOLIDAY_JOB="studentOrHolidayJob",e.INCOME_CHANGES_IN_LAST_12_MONTHS="incomeChangesInLast12Months",e.LAST_30_MONTHS_INCOME="last30MonthsIncome",e.LAST_12_MONTHS_INCOME="last12MonthsIncome",e.BAFOEG_INCOME="bafoegIncome",e.BAFOEG_INCOME_INFO="bafoegIncomeInfo",e.BAB_INCOME="babIncome",e.BAB_INCOME_INFO="babIncomeInfo",e.TRAINING_ALLOWANCE_INCOME="trainingAllowanceIncome",e.TRAINING_ALLOWANCE_INCOME_INFO="trainingAllowanceIncomeInfo",e.INSOLVENCY_BENEFIT_INCOME="insolvencyBenefitIncome",e.INSOLVENCY_BENEFIT_INCOME_INFO="insolvencyBenefitIncomeInfo",e.SICK_PAY_INCOME="sickPayIncome",e.SICK_PAY_INCOME_INFO="sickPayIncomeInfo",e.TRANSITION_ALLOWANCE_INCOME="transitionAllowanceIncome",e.TRANSITION_ALLOWANCE_INCOME_INFO="transitionAllowanceIncomeInfo",e.SHORT_TIME_ALLOWANCE_INCOME="shortTimeAllowanceIncome",e.SHORT_TIME_ALLOWANCE_INCOME_INFO="shortTimeAllowanceIncomeInfo",e.BENEFITS_IN_KIND_INCOME="benefitsInKindIncome",e.BENEFITS_IN_KIND_INCOME_INFO="benefitsInKindIncomeInfo",e.BAB_BAFOG_TRAINING_INCOME="babBafogTrainingIncome",e.BAB_BAFOG_TRAINING_INCOME_INFO="babBafogTrainingIncomeInfo",e.TRAINEE_SGB2_INCOME="traineeSGB2Income",e.TRAINEE_SGB2_INCOME_INFO="traineeSGB2IncomeInfo",e.STATIONARY_FACILITY_INCOME="stationaryFacilityIncome",e.STATIONARY_FACILITY_INCOME_INFO="stationaryFacilityIncomeInfo",e.PARENTAL_INCOME="parentalIncome",e.PARENTAL_INCOME_INFO="parentalIncomeInfo",e.EARNING_REPLACEMENT_INCOME="earningReplacementIncome",e.EARNING_REPLACEMENT_INCOME_INFO="earningReplacementIncomeInfo",e.RENTING_INCOME="rentingIncome",e.RENTING_INCOME_INFO="rentingIncomeInfo",e.CAPITAL_INCOME="capitalIncome",e.CAPITAL_INCOME_INFO="capitalIncomeInfo",e.DIVORCE_INCOME="divorceIncome",e.DIVORCE_INCOME_INFO="divorceIncomeInfo",e.EXPENSE_COMPENSATION_INCOME="expenseCompensationIncome",e.EXPENSE_COMPENSATION_INCOME_INFO="expenseCompensationIncomeInfo",e.CARE_INCOME="careIncome",e.CARE_INCOME_INFO="careIncomeInfo",e.TRANSFER_INCOME="transferIncome",e.TRANSFER_INCOME_INFO="transferIncomeInfo",e.PENSION_INCOME="pensionIncome",e.PENSION_INCOME_INFO="pensionIncomeInfo",e.ONE_TIME_PAYMENT_INCOME="oneTimePaymentIncome",e.ONE_TIME_PAYMENT_INCOME_INFO="oneTimePaymentIncomeInfo",e.MISCELLANEOUS_INCOME="miscellaneousIncome",e.MISCELLANEOUS_INCOME_INFO="miscellaneousIncomeInfo",e.UNEMPLOYMENT_BENEFITS="unemploymentBenefits",e.UNEMPLOYMENT_BENEFITS_INFO="unemploymentBenefitsInfo",e.ALG_IS_SUSPENDED="ALGIsSuspended",e.ALG_IS_SUSPENDED_INFO="ALGIsSuspendedInfo",e.BURGER_GELD="burgerGeld",e.BURGER_GELD_INFO="burgerGeldInfo",e.SOCIAL_HELP_BENEFITS="socialHelpBenefits",e.SOCIAL_HELP_BENEFITS_INFO="socialHelpBenefitsInfo",e.HOUSING_BENEFITS="housingBenefits",e.HOUSING_BENEFITS_INFO="housingBenefitsInfo",e.SGB7_INJURY_BENEFITS="SGB7InjuryBenefits",e.SGB7_INJURY_BENEFITS_INFO="SGB7InjuryBenefitsInfo",e.BVG_WAR_VICTIM_BENEFITS="BVGWarVictimBenefits",e.BVG_WAR_VICTIM_BENEFITS_INFO="BVGWarVictimBenefitsInfo",e.PAR56_TYPE_OF_BENEFITS="par56TypeOfBenefits",e.PAR56_TYPE_OF_BENEFITS_INFO="par56TypeOfBenefitsInfo",e.DISABILITY_PENSION="disabilityPension",e.DISABILITY_PENSION_INFO="disabilityPensionInfo",e.BASIC_FEDERAL_PENSION="basicFederalPension",e.BASIC_FEDERAL_PENSION_INFO="basicFederalPensionInfo",e.RETIREMENT_PENSION="retirementPension",e.RETIREMENT_PENSION_INFO="retirementPensionInfo",e.BUNDESWEHR_INJURY_PENSION="bundeswehrInjuryPension",e.BUNDESWEHR_INJURY_PENSION_INFO="bundeswehrInjuryPensionInfo",e.ACCIDENT_PENSION="accidentPension",e.ACCIDENT_PENSION_INFO="accidentPensionInfo",e.WIDOW_PENSION="widowPension",e.WIDOW_PENSION_INFO="widowPensionInfo",e.ADDITIONAL_PENSION_PAYMENTS="additionalPensionPayments",e.ADDITIONAL_PENSION_PAYMENTS_INFO="additionalPensionPaymentsInfo",e.ALIMONY_PAYMENTS="alimonyPayments",e.ALIMONY_PAYMENTS_INFO="alimonyPaymentsInfo",e.INSURANCE_PAYMENTS="insurancePayments",e.INSURANCE_PAYMENTS_INFO="insurancePaymentsInfo",e.SEVERANCE_PAYMENTS="severancePayments",e.SEVERANCE_PAYMENTS_INFO="severancePaymentsInfo",e.MONTHLY_PAYMENTS="monthlyPayments",e.MONTHLY_PAYMENTS_INFO="monthlyPaymentsInfo",e.ONE_TIME_PAYMENTS="oneTimePayments",e.ONE_TIME_PAYMENTS_INFO="oneTimePaymentsInfo",e.TIPS_OR_HOMEOWNERSHIP_PAYMENTS="tipsOrHomeownershipPayments",e.TIPS_OR_HOMEOWNERSHIP_PAYMENTS_INFO="tipsOrHomeownershipPaymentsInfo",e.OTHER_STATE_BENEFITS="otherStateBenefits",e.OTHER_STATE_BENEFITS_INFO="otherStateBenefitsInfo",e.KINDER_GELD="kinderGeld",e.KINDER_GELD_INFO="kinderGeldInfo",e.CHILD_SUPPORT="childSupport",e.CHILD_SUPPORT_INFO="childSupportInfo",e.CHILD_SUPPORT_ADVANCE="childSupportAdvance",e.CHILD_SUPPORT_ADVANCE_INFO="childSupportAdvanceInfo",e.CHILD_ALLOWANCE="childAllowance",e.CHILD_ALLOWANCE_INFO="childAllowanceInfo",e.HALF_ORPHAN_PENSION="halfOrphanPension",e.HALF_ORPHAN_PENSION_INFO="halfOrphanPensionInfo",e.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII="childAndYouthWelfareServiceSGBVIII",e.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO="childAndYouthWelfareServiceSGBVIIIInfo",e.MONTH_VALUE="month",e.SUMM="summ",e.START_DATE="startDate",e.END_DATE="endDate",e.DATE="date",e.PAYMENT_TYPE="paymentType",e.RECEIPT_OF_PAYMENT="receiptOfPayment",e.PAYING_AGENCY="payingAgency",e.HEATING_COSTS="heatingCosts",e.ELECTRICITY_COSTS="electricityCosts",e.WATER_COSTS="waterCosts",e.GARAGE_OR_PARKING_COSTS="garageOrParkingCosts",e.ADDITIONAL_SUPPORT="additionalSupport",e.MEMBER_ID="memberId",e.MONTHS_INCOME_SYNCHRONIZED="monthsIncomeSynchronized",e.BAB_INCOME_DISREGARDED_BY_PERSON_ID="babIncomeDisregardedByPersonId",e.BAB_INCOME_BY_PERSON_ID="babIncomeByPersonId",e))(u||{});class gc{constructor(t){y(this,"memberId","");y(this,"labourIncome",[]);y(this,"selfEmploymentIncome",[]);y(this,"apprenticeshipWageIncome",[]);y(this,"apprenticeshipWageIncomeDismissed",!1);y(this,"churchMember",!1);y(this,"requireManualInput",!1);y(this,"otherIncome",[]);y(this,"additionalSupport","");y(this,"total","");Object.assign(this,t)}}class vT{constructor(t){y(this,"applicantIncomeData",new gc);y(this,"partnerIncomeData",null);y(this,"kidsIncomeData",[]);y(this,"otherMembersIncomeData",[]);y(this,"babIncomeDisregardedByPersonId",{});y(this,"babIncomeByPersonId",{});Object.assign(this,t)}}const ho={allIncome:{title:"Bitte tragen Sie hier das Einkommen aller angezeigten Haushaltsmitglieder ein. Öffnen Sie dazu jeweils den entsprechenden Abschnitt und legen Sie für jede Einkommensquelle ein eigenes Feld an.",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Sollten Sie eine möglichst detaillierte Berechnung eines möglichen ALG 1 Anspruchs wünschen, so geben Sie darüber hinaus auch Einkommen der vergangenen 30 Monate, plus Elternzeit usw. an."}),s.jsx("p",{children:"Einkommen sind alle Einnahmen in Geld und in bestimmten Fällen auch die in Geldeswert. Dazu gehören insbesondere:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Einkommen aus nichtselbständiger oder selbständiger Arbeit, aus Vermietung oder Verpachtung, aus Land- und Forstwirtschaft,"}),s.jsx("li",{children:"Kindergeld, Entgeltersatzleistungen wie Arbeitslosengeld, Insolvenzgeld, Übergangsgeld, Krankengeld, Berufsausbildungsbeihilfe,"}),s.jsx("li",{children:"Renten aus der gesetzlichen Sozialversicherung (zum Beispiel Altersrente oder Knappschaftsausgleichsleistungen, Hinterbliebenenrenten, Unfall- oder Verletztenrenten), ausländische Renten, Betriebsrenten oder Pensionen,"}),s.jsx("li",{children:"Unterhaltszahlungen, Leistungen nach dem Unterhaltsvorschussgesetz,"}),s.jsx("li",{children:"Zinsen, Kapitalerträge,"}),s.jsx("li",{children:"Wohngeld, Sozialhilfe nach dem Zwölften Buch Sozialgesetzbuch und"}),s.jsx("li",{children:"Sonstige laufende oder einmalige Einnahmen (zum Beispiel Elterngeld, Pflegegeld für erzieherischen Einsatz nach dem Achten Buch Sozialgesetzbuch)."})]}),s.jsx("p",{children:"Bitte geben Sie auch Einkünfte aus sozialversicherungsfreien Nebenbeschäftigungen an. Als Einkommen gelten auch Aufwandsentschädigungen/Aufwandspauschalen bei einer ehrenamtlichen oder gemeinnützigen Tätigkeit. Diese werden von SO12 je nach Berechnungsart selbst als Einkommen oder Kein-Einkommen klassifiziert. Zu den sonstigen laufenden oder einmaligen Einnahmen zählen unter anderem die Leibrente für eine verkaufte Immobilie und die Steuerrückerstattung. Auch Schadensersatzleistungen müssen Sie angeben."}),s.jsx("p",{children:"Änderungen in den Einkommensverhältnissen in Ihrer Bedarfsgemeinschaft haben Einfluss auf die Höhe des Bürgergeldes und sind immer unverzüglich mitzuteilen. Beachten Sie bitte, dass Sie viele Eintragungen auch über „sonstige Einnahmen“ machen können."}),s.jsx("p",{children:"Erbschaften zählen seit dem 01.01.2023 nicht mehr als Einnahmen, sondern als Vermögen! Geben Sie Erbschaften unter Vermögen an."}),s.jsx("p",{children:"Falls an dieser Stelle nicht alle Ihre Haushaltsmitglieder aufgelistet sind, zählen diese weder zur Kategorie der „Bedarfsgemeinschaft“ noch zur „Haushaltsgemeinschaft“ und werden daher nur in Bezug auf die Teilung der Wohnkosten berücksichtigt. Es ist nicht nötig das Einkommen oder Vermögen dieser Personen zu erfassen, daher sehen Sie den Namen dieser Personen an dieser Stelle nicht mehr in der Abfrage."})]})},bruttoIncome:{title:"Brutto-Einkommen",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:'Einnahmen aus sogenannten "Ferienjobs" werden unter folgenden Voraussetzungen nicht angerechnet:'}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Die Schülerin oder der Schüler ist jünger als 25 Jahre."}),s.jsx("li",{children:"Die Schülerin oder der Schüler besucht eine allgemein- oder berufsbildende Schule und erhält keine Ausbildungsvergütung."}),s.jsx("li",{children:"Die Tätigkeiten werden in den Schulferien, das heißt zwischen zwei Schulabschnitten, ausgeübt."})]}),s.jsx("p",{children:"Bitte ignorieren Sie Einnahmen bis zur Minijob Grenze, die zutreffen für die Berechnung und fügen Sie es lediglich im Anschluss Anlage EK mit den richtigen Angaben hinzu. Der Freibetrag für einen Schülerjob sollte bis zur Minijobgrenze der Höhe des Einkommens entsprechen."})]})},expenseCompensationIncome:{title:"Aufwandsentschädigung",content:s.jsx("div",{className:"flex w-full flex-col gap-2",children:s.jsx("p",{children:"gemeinnützige oder ehrenamtliche Tätigkeit, für die (steuerfreie) Aufwandsentschädigungen/Aufwandspauschalen gezahlt werden. Einnahmen aus Aufwandsentschädigungen werden oft nicht als Einnahmen angerechnet, müssen aber stets mit angegeben werden."})})},pensionIncome:{title:"Rente",content:s.jsx("div",{className:"flex w-full flex-col gap-2",children:s.jsx("p",{children:"Zum Beispiel aus der gesetzlichen Sozialversicherung wie Altersrente, Erwerbsminderungsrente, Knappschaftsausgleichsleistungen, Unfall-/Verletztenrente, Hinterbliebenenrente und Grundrente, Betriebsrenten, Pensionen, ausländische Renten, Arbeitsmarktrenten."})})},pflegegeldIncome:{title:"Pflegegeld",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Bitte beachten Sie, dass hier das Pflegegeld, welches Sie aufgrund eines eigenen Pflegegrades erhalten, gemeint ist. Pflegegeld, welches sie aufgrund des eigenen Pflegegrades erhalten, wird generell nicht angerechnet."}),s.jsx("p",{children:"Sollten Sie ein Einkommen, z.B. durch eine ehrenamtliche Nachbarschaftshilfe oder die Pflege von anderen Personen erhalten, ist dies an anderer Stelle anzugeben."})]})},babOtherIncomeSum:{title:"Summe weiterer Einkünfte",content:s.jsx("div",{className:"flex w-full flex-col gap-2",children:s.jsx("p",{children:"Tragen Sie hier die Gesamtsumme aller weiteren Einkünfte (z. B. Kapitalerträge, Zinsen, sonstige Einnahmen) für das angegebene Jahr ein."})})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function YL({isApplicant:e,taxClassSelected:t,applicantState:n,CONSTANTS:a}){var i,l,o,c,d,h,f,m,g,b;const r=(i=n.houseHoldMembersApplication)==null?void 0:i.kids;return e?t===1?(l=a.bruttoNetto)==null?void 0:l.careNoKids:!r||r.length<=0?(o=a.bruttoNetto)==null?void 0:o.careNoKids:r.length===1||r.every(E=>Number(E.age)>=25)?(c=a.bruttoNetto)==null?void 0:c.care1KidOrAllAbove25:r.filter(E=>Number(E.age)<25).length===2?(d=a.bruttoNetto)==null?void 0:d.care2KidsBelow25:r.filter(E=>Number(E.age)<25).length===3?(h=a.bruttoNetto)==null?void 0:h.care3KidsBelow25:r.filter(E=>Number(E.age)<25).length===4?(f=a.bruttoNetto)==null?void 0:f.care4KidsBelow25:r.filter(E=>Number(E.age)<25).length>=5?(m=a.bruttoNetto)==null?void 0:m.care5OrMoreKidsBelow25:(g=a.bruttoNetto)==null?void 0:g.careNoKids:(b=a.bruttoNetto)==null?void 0:b.careNoKids}function Nce(){const{applicantState:e}=wt(),t=iT();return T.useCallback((a,r)=>YL({isApplicant:a,taxClassSelected:r,applicantState:e,CONSTANTS:t}),[t,e])}function xce(){var i,l,o,c;const{applicantState:e}=wt(),t=(i=e.houseHoldMembersApplication)==null?void 0:i.kids,n=(c=(o=(l=e.incomeData)==null?void 0:l.partnerIncomeData)==null?void 0:o.labourIncome)==null?void 0:c.reduce((d,h)=>d+Number((h==null?void 0:h.nettoIncome)||0),0),a=Nce(),r=iT();return T.useCallback(d=>zL({...d,CONSTANTS:r,careIncomeModifier:a,kids:t,partnersIncome:n}),[r,a,t,n])}function zL({brutto:e,taxClassSelected:t=1,churchTax:n=!1,isApplicant:a,CONSTANTS:r,careIncomeModifier:i,kids:l,partnersIncome:o}){var En,mt,Vt,_t,nn,Ee,Ne,Ze,zt,yn,Ln,St,ne,Ie,re,ie,fe,Ge,Et,It,dt,ea,ye,Le,je,Ht,Ve,ut;const c=((En=r.grossNetWages)==null?void 0:En.minijobMaxMonthlyIncome)??538,d=((mt=r.grossNetWages)==null?void 0:mt.solidarityTaxThreshold)??18130,h=((Vt=r.grossNetWages)==null?void 0:Vt.churchTaxRate)??.08,f=((_t=r.grossNetWages)==null?void 0:_t.additionalSumFirstChild)??4260,m=((nn=r.grossNetWages)==null?void 0:nn.additionalSumEachChild)??240,g=((Ee=r.grossNetWages)==null?void 0:Ee.minijobHealthInsuranceRate)??.013,b=((Ne=r.grossNetWages)==null?void 0:Ne.minijobPensionInsuranceRate)??.015,E=((Ze=r.grossNetWages)==null?void 0:Ze.minijobUnemploymentInsuranceRate)??.02,S=((zt=r.grossNetWages)==null?void 0:zt.minijobPregnancyBankruptcyRate)??.014,I=((yn=r.bruttoNetto)==null?void 0:yn.healthInsuranceIncomeCoeff)??.073,O=((Ln=r.bruttoNetto)==null?void 0:Ln.pensionIncomeCoeff)??.093,v=((St=r.bruttoNetto)==null?void 0:St.unemploymentIncomeCoeff)??.013,w=((ne=r.bruttoNetto)==null?void 0:ne.additionalTaxCoeff)??.0425,D=((Ie=r.bruttoNetto)==null?void 0:Ie.solidarityTaxCoeff)??.055,C=((re=r.grossNetWages)==null?void 0:re.taxFreeThreshold)??11604,M=((ie=r.grossNetWages)==null?void 0:ie.firstTaxBracketUpperLimit)??17005,B=((fe=r.grossNetWages)==null?void 0:fe.secondTaxBracketUpperLimit)??66760,L=((Ge=r.grossNetWages)==null?void 0:Ge.thirdTaxBracketUpperLimit)??277825,H=((Et=r.grossNetWages)==null?void 0:Et.fourthTaxBracketLowerLimit)??277826,U=((It=r.grossNetWages)==null?void 0:It.firstBracketCoeff)??922.98,W=((dt=r.grossNetWages)==null?void 0:dt.firstBracketIntercept)??1400,z=((ea=r.grossNetWages)==null?void 0:ea.secondBracketCoeff)??181.19,$=((ye=r.grossNetWages)==null?void 0:ye.secondBracketSecondTerm)??2397,V=((Le=r.grossNetWages)==null?void 0:Le.secondBracketIntercept)??1025.38,F=((je=r.grossNetWages)==null?void 0:je.thirdBracketRate)??.42,te=((Ht=r.grossNetWages)==null?void 0:Ht.thirdBracketIntercept)??10602.13,se=((Ve=r.grossNetWages)==null?void 0:Ve.fourthBracketRate)??.45,pe=((ut=r.grossNetWages)==null?void 0:ut.fourthBracketIntercept)??18936.88,be=e*(e<=c?g:I),we=e*(e<=c?b:O),ve=e*(e<=c?E:v),Ue=e*(e<=c?S:0),Re=e*(i&&i(a,t)||0),ue=e*w,ze=e-(Ue+ue+be+we+ve+Re),Qe=ze*12;let me=0,it=0;if(t===1){if(Qe<=C)return Number(ze);if(Qe>C&&Qe<=M){it=(Qe-C)/1e4,me=(U*it+W)*it;let st=me;me>=d&&(st=me-me*D),n&&(st=st+me*h);const We=Number(st/12);return Number(ze-We)}if(Qe>=M+1&&Qe<=B){it=(Qe-M)/1e4,me=(z*it+$)*it+V;let st=me;me>=d&&(st=me-me*D),n&&(st=st+me*h);const We=Number(st/12);return Number(ze-We)}if(Qe>=B+1&&Qe<=L){me=F*Qe-te;let st=me;me>=d&&(st=me-me*D),n&&(st=st+me*h);const We=Number(st/12);return Number(ze-We)}if(Qe>=H){me=se*Qe-pe;let st=me;me>=d&&(st=me-me*D),n&&(st=st+me*h);const We=Number(st/12);return Number(ze-We)}}if(t===2){console.log("taxClassSelected 2");const st=a&&(l==null?void 0:l.reduce((Oe,ke,Be)=>Be===0?Oe+f:Oe+m,0))||f,We=Qe-st,ht=C+st,Ct=C+1+st,$t=M+st,X=M+1+st,ae=B+st,Q=B+1+st,Te=L+st;if(We<=ht)return Number(ze);if(We>=Ct&&We<=$t){it=(We-C)/1e4,me=(U*it+W)*it;let Oe=me;me>=d&&(Oe=me-me*D),n&&(Oe=Oe+me*h);const ke=Number(Oe/12);return Number(ze-ke)}if(We>=X&&We<=ae){it=(We-M)/1e4,me=(z*it+$)*it+V;let Oe=me;me>=d&&(Oe=me-me*D),n&&(Oe=Oe+me*h);const ke=Number(Oe/12);return Number(ze-ke)}if(We>=Q&&We<=Te){me=F*We-te;let Oe=me;me>=d&&(Oe=me-me*D),n&&(Oe=Oe+me*h);const ke=Number(Oe/12);return Number(ze-ke)}if(We>=H){me=se*We-pe;let Oe=me;me>=d&&(Oe=me-me*D),n&&(Oe=Oe+me*h);const ke=Number(Oe/12);return Number(ze-ke)}}if(t===3&&console.log("taxClassSelected 3"),t===4){console.log("taxClassSelected 4");const st=(o||0)*12,We=(Qe+st)/2;if(We<=C){const ht=Number(We/12);return console.log("erstes if Klasse 4"),Number(ht.toFixed(2))}if(We>C&&We<=M){console.log("zweites if Klasse 4"),it=(We-C)/1e4,me=(U*it+W)*it;let ht=me;me>=d&&(ht=me-me*D),n&&(ht=ht+me*h);const Ct=Number(ht/12),$t=Number(We/12);return Number(($t-Ct).toFixed(2))}if(We>=M+1&&We<=B){console.log("drittes if Klasse 4"),it=(We-M)/1e4,me=(z*it+$)*it+V;let ht=me;me>=d&&(ht=me-me*D),n&&(ht=ht+me*h);const Ct=Number(ht/12),$t=Number(We/12);return Number(($t-Ct).toFixed(2))}if(We>=B+1&&We<=L){console.log("viertes if Klasse 4"),me=F*We-te;let ht=me;me>=d&&(ht=me-me*D),n&&(ht=ht+me*h);const Ct=Number(ht/12),$t=Number(We/12);return Number(($t-Ct).toFixed(2))}if(We>=H){console.log("fünftes if Klasse 4"),me=se*We-pe;let ht=me;me>=d&&(ht=me-me*D),n&&(ht=ht+me*h);const Ct=Number(ht/12),$t=Number(We/12);return Number(($t-Ct).toFixed(2))}}return t===5&&console.log("taxClassSelected 5"),console.log("letztes return"),ze}function Sce(e,t){for(var n=-1,a=e==null?0:e.length;++nr?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++a0&&n(o)?t>1?KL(o,t-1,n,a,r):Mhe(r,o):a||(r[r.length]=o)}return r}var jhe=KL,Bhe=jhe;function Phe(e){var t=e==null?0:e.length;return t?Bhe(e,1):[]}var Hhe=Phe;function Lhe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Uhe=Lhe,khe=Uhe,t1=Math.max;function Fhe(e,t,n){return t=t1(t===void 0?e.length-1:t,0),function(){for(var a=arguments,r=-1,i=t1(a.length-t,0),l=Array(i);++r0){if(++t>=Zhe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var _he=Xhe,$he=Khe,efe=_he,tfe=efe($he),nfe=tfe,afe=Hhe,rfe=Yhe,ife=nfe;function sfe(e){return ife(rfe(e,void 0,afe),e+"")}var lfe=sfe,ofe=_0,cfe=$de,ufe=fhe,dfe=Oh,hfe=lm,ffe=Ahe,pfe=lfe,mfe=rT,gfe=1,bfe=2,Efe=4,Nfe=pfe(function(e,t){var n={};if(e==null)return n;var a=!1;t=ofe(t,function(i){return i=dfe(i,e),a||(a=i.length>1),i}),hfe(e,mfe(e),n),a&&(n=cfe(n,gfe|bfe|Efe,ffe));for(var r=t.length;r--;)ufe(n,t[r]);return n}),xfe=Nfe;const Sfe=ar(xfe),Ife=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:30,height:30,viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("g",{clipPath:"url(#clip0_1335_749)"},T.createElement("rect",{y:15,width:21.2132,height:21.2125,rx:10.6063,transform:"rotate(-45 0 15)"}),T.createElement("path",{d:"M15 7.5L14.9998 22.4998",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),T.createElement("path",{d:"M7.5 15L22.4998 14.9998",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_1335_749"},T.createElement("rect",{y:15,width:21.2132,height:21.2125,rx:10.6063,transform:"rotate(-45 0 15)",fill:"white"})))),_a=T.forwardRef(Ife);var Ofe=Ri,vfe=function(){return Ofe.Date.now()},Tfe=vfe,Afe=/\s/;function yfe(e){for(var t=e.length;t--&&Afe.test(e.charAt(t)););return t}var wfe=yfe,Cfe=wfe,Rfe=/^\s+/;function Mfe(e){return e&&e.slice(0,Cfe(e)+1).replace(Rfe,"")}var Dfe=Mfe,jfe=Dfe,a1=us,Bfe=fN,r1=NaN,Pfe=/^[-+]0x[0-9a-f]+$/i,Hfe=/^0b[01]+$/i,Lfe=/^0o[0-7]+$/i,Ufe=parseInt;function kfe(e){if(typeof e=="number")return e;if(Bfe(e))return r1;if(a1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=a1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=jfe(e);var n=Hfe.test(e);return n||Lfe.test(e)?Ufe(e.slice(2),n?2:8):Pfe.test(e)?r1:+e}var Ffe=kfe,Yfe=us,bS=Tfe,i1=Ffe,zfe="Expected a function",Gfe=Math.max,Wfe=Math.min;function qfe(e,t,n){var a,r,i,l,o,c,d=0,h=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(zfe);t=i1(t)||0,Yfe(n)&&(h=!!n.leading,f="maxWait"in n,i=f?Gfe(i1(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function g(C){var M=a,B=r;return a=r=void 0,d=C,l=e.apply(B,M),l}function b(C){return d=C,o=setTimeout(I,t),h?g(C):l}function E(C){var M=C-c,B=C-d,L=t-M;return f?Wfe(L,i-B):L}function S(C){var M=C-c,B=C-d;return c===void 0||M>=t||M<0||f&&B>=i}function I(){var C=bS();if(S(C))return O(C);o=setTimeout(I,E(C))}function O(C){return o=void 0,m&&a?g(C):(a=r=void 0,l)}function v(){o!==void 0&&clearTimeout(o),d=0,a=c=r=o=void 0}function w(){return o===void 0?l:O(bS())}function D(){var C=bS(),M=S(C);if(a=arguments,r=this,c=C,M){if(o===void 0)return b(c);if(f)return clearTimeout(o),o=setTimeout(I,t),g(c)}return o===void 0&&(o=setTimeout(I,t)),l}return D.cancel=v,D.flush=w,D}var ZL=qfe;const Vfe=ar(ZL);var Kfe=ZL,Zfe=us,Jfe="Expected a function";function Qfe(e,t,n){var a=!0,r=!0;if(typeof e!="function")throw new TypeError(Jfe);return Zfe(n)&&(a="leading"in n?!!n.leading:a,r="trailing"in n?!!n.trailing:r),Kfe(e,t,{leading:a,maxWait:t,trailing:r})}var Xfe=Qfe;const _fe=ar(Xfe),$fe=(e,t,n,a)=>{switch(t){case"debounce":return Vfe(e,n,a);case"throttle":return _fe(e,n,a);default:return e}};function epe({skipOnMount:e=!1,refreshMode:t,refreshRate:n=1e3,refreshOptions:a,handleWidth:r=!0,handleHeight:i=!0,targetRef:l,observerOptions:o,onResize:c}={}){const d=T.useRef(e),[h,f]=T.useState({width:void 0,height:void 0}),[m,g]=T.useState((l==null?void 0:l.current)||null);l&&setTimeout(()=>{l.current!==m&&g(l.current)},0);const b=T.useMemo(()=>new Proxy(O=>{O!==m&&g(O)},{get(O,v){return v==="current"?m:O[v]},set(O,v,w){return v==="current"?g(w):O[v]=w,!0}}),[m]),E=T.useCallback((O,v)=>!(O.width===v.width&&O.height===v.height||O.width===v.width&&!i||O.height===v.height&&!r),[r,i]),S=T.useCallback(O=>{if(!(!r&&!i)){if(d.current){d.current=!1;return}O.forEach(v=>{const{width:w,height:D}=(v==null?void 0:v.contentRect)||{};f(C=>E(C,{width:w,height:D})?{width:w,height:D}:C)})}},[r,i,d,E]),I=T.useCallback($fe(S,t,n,a),[S,t,n,a]);return T.useEffect(()=>{let O;return m?(O=new window.ResizeObserver(I),O.observe(m,o)):(h.width||h.height)&&f({width:void 0,height:void 0}),()=>{var v,w,D;(v=O==null?void 0:O.disconnect)===null||v===void 0||v.call(O),(D=(w=I).cancel)===null||D===void 0||D.call(w)}},[I,m]),T.useEffect(()=>{c==null||c(h.width,h.height)},[h]),Object.assign({ref:b},h)}const tpe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("mask",{id:"mask0_292_291",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},T.createElement("rect",{width:24,height:24,fill:"#D9D9D9"})),T.createElement("g",{mask:"url(#mask0_292_291)"},T.createElement("path",{d:"M11.25 16.75H12.75V12.75H16.75V11.25H12.75V7.25H11.25V11.25H7.25V12.75H11.25V16.75ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76664 3.99998 7.87498 4.77498 6.32498 6.32498C4.77498 7.87498 3.99998 9.76664 3.99998 12C3.99998 14.2333 4.77498 16.125 6.32498 17.675C7.87498 19.225 9.76664 20 12 20Z",fill:"#1C1B1F"}))),gp=T.forwardRef(tpe),npe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:24,height:14,viewBox:"0 0 24 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("mask",{id:"mask0_444_2311",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:14},T.createElement("rect",{width:14,height:24,transform:"matrix(1.19249e-08 -1 -1 -1.19249e-08 24 14)",fill:"#D9D9D9"})),T.createElement("g",{mask:"url(#mask0_444_2311)"},T.createElement("path",{d:"M2.3486 4.00047L12.0024 13.6543L21.6563 4.00047L20.237 2.58127L12.0024 10.8159L3.7678 2.58127L2.3486 4.00047Z",fill:"#1C1B1F"}))),ape=T.forwardRef(npe),rpe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:14,height:24,viewBox:"0 0 14 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("mask",{id:"mask0_292_1735",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:14,height:24},T.createElement("rect",{width:14,height:24,transform:"matrix(-1 8.74228e-08 8.74228e-08 1 14 0)",fill:"#D9D9D9"})),T.createElement("g",{mask:"url(#mask0_292_1735)"},T.createElement("path",{d:"M4.00047 21.6534L13.6543 11.9995L4.00047 2.3457L2.58127 3.7649L10.8159 11.9995L2.58127 20.2342L4.00047 21.6534Z",fill:"#1C1B1F"}))),ipe=T.forwardRef(rpe);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function cn({mode:e="display",text:t,children:n,disabled:a=!1,className:r,editableTitleValue:i,editableTitlePlaceholderValue:l,rightChildren:o,defaultOpen:c=!1,useTransition:d=!0,useChildrenTransition:h=!0,onCreate:f,customAction:m,classNames:g,editableTitle:b,onDelete:E,onTouch:S,onChange:I}){const[O,v]=T.useState(c),{ref:w}=epe();let D="";return typeof t=="string"&&(D=t),typeof t=="object"&&t&&t[e]&&(D=t[e]),typeof t=="object"&&t&&!t[e]&&(D=t),s.jsxs("div",{onClick:()=>{a||(m?m():e==="create"&&f&&f())},className:tn(Ae("flex max-w-[1000px] flex-col border border-black",{"bg-white":e==="display"||e==="delete"},{"bg-[#D9D9D9]":e==="create"},{"bg-[#CFCFCF]":a},{"flex-1":O},g==null?void 0:g.parentContainer)),children:[s.jsxs("div",{onClick:()=>{!a&&(e==="display"||e==="delete")&&v(C=>!C)},className:tn(Ae("flex w-full items-center justify-between gap-1 px-4 py-3",{"border-b border-black":O},{"transition-all duration-300 ease-in-out":d},{"cursor-pointer":!a},r)),children:[s.jsxs("div",{className:"flex flex-1 items-center gap-3",children:[e==="create"&&s.jsx(gp,{className:"mr-2 size-6"}),(e==="display"||e==="delete")&&(O?s.jsx(ape,{className:"mr-2 size-6"}):s.jsx(ipe,{className:"mr-2 size-6"})),!b&&t?D:null,b&&s.jsxs("div",{className:"flex flex-row gap-1",children:[s.jsx("p",{className:"whitespace-nowrap",children:t}),e!=="create"&&s.jsx(uL,{showLabel:!1,value:i,placeholder:l,customStyle:!0,onBlur:()=>{},onChange:C=>{a||I&&I(C)},onClick:C=>{a||(C.preventDefault(),C.stopPropagation())},onDoubleClick:C=>{a||(C.preventDefault(),C.stopPropagation,S&&S())},onKeyDown:C=>{a||(C.key==="Enter"||C.key==="Escape")&&(C.preventDefault(),C.stopPropagation())},classNames:{children:"items-start",input:tn(Ae("w-fit rounded-[5px] border border-[#75767E] bg-white pl-2 outline-none placeholder:italic placeholder:text-black focus:placeholder:text-opacity-30"))}})]})]}),o,e==="delete"&&s.jsx(lN,{onClick:C=>{a||(C.preventDefault(),C.stopPropagation(),E&&E())},className:"mr-2 size-6"})]}),n&&s.jsx("div",{ref:w,className:tn(Ae("bg-inherit px-4",{"max-h-0 overflow-hidden opacity-0":!O,"p-4 opacity-100":O,"transition-all duration-500 ease-in-out":h},g==null?void 0:g.childrenContainer)),children:n})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const zO=[{label:"Grundschule",subLabel:"[Klasse 1-4]",value:"grundschule"},{label:"Allgemeinbildende Schule - Sek I",subLabel:"(Hauptschule, Realschule, Oberschule | Klasse 5-9/10)",value:"sekI"},{label:"Allgemeinbildende Schule - Sek II",subLabel:"(Gymnasiale Oberstufe, Gesamtschule Oberstufe | Klasse 10-13)",value:"sekII"},{label:"Abendgymnasium/ Kolleg",subLabel:"(zweiter Bildungsweg)",value:"abendgymnasium"},{label:"Berufsfachschule",subLabel:"(ohne vorherige Ausbildung)",value:"berufsfachschule"},{label:"Fachschule nach Ausbildung",value:"fachschule"},{label:"Aufstiegsfortbildung",subLabel:"[Meister, Techniker]",value:"aufstiegsfortbildung"},{label:"Umschulung",value:"umschulung"},{label:"betriebliche Ausbildung",value:"betrieblicheAusbildung"},{label:"Studium",value:"studium"}],AT=e=>{if(!e)return;const t=["grundschule","sekI","sekII","abendgymnasium","fachschule"],n=["aufstiegsfortbildung","umschulung","betrieblicheAusbildung","berufsfachschule"];if(t.includes(e))return"school";if(n.includes(e))return"apprenticeship";if(e==="studium")return"university";if(e==="school")return"school";if(e==="apprenticeship")return"apprenticeship";if(e==="university")return"university"},Vg=e=>e?["abendgymnasium","berufsfachschule","fachschule","betrieblicheAusbildung","studium"].includes(e):!1,gf=e=>e?["betrieblicheAusbildung","umschulung","fachschule","aufstiegsfortbildung"].includes(e):!1;var spe=(e=>(e.ID="id",e.NAME="name",e.AGE="age",e.NATIONALITY="nationality",e.ENTRY_DATE="entryDate",e.JOB_CENTER_ASSURANCE="jobCenterAssurance",e.RESIDENCE_PERMIT="residencePermit",e.RESIDENCE_PERMIT_STATE="residencePermitState",e.CLAIM_ASYLUM_SEEKER_BENEFITS="claimAsylumSeekerBenefits",e.ASYLUM_SEEKER_BENEFITS_EXPIRE_DATE="asylumSeekerBenefitsExpireDate",e.COLLECTIVE_ACCOMMODATION="collectiveAccommodation",e.COMMITMENT_DECLARATION="commitmentDeclaration",e.ABILITY_TO_WORK_THREE_HOURS_PER_DAY="abilityToWorkThreeHoursPerDay",e.HAD_A_JOB_IN_12_MONTHS="hadAJobIn12Months",e.CURRENTLY_IN_EDUCATION="currentlyInEducation",e.TYPE_OF_EDUCATION="typeOfEducation",e.EDUCATION_START_DATE="educationStartDate",e.EDUCATION_END_DATE="educationEndDate",e.APPRENTICESHIP_BAB_ELIGIBLE="apprenticeshipBabEligible",e.NOT_LIVING_WITH_PARENTS_FOR_SOCIAL_REASON="notLivingWithParentsForSocialReason",e.PARENTS_LIVE_SEPARATELY="parentsLiveSeparately",e.DISTANCE_PARENTS_TO_APPRENTICESHIP_GREATER_2H="distanceParentsToApprenticeshipGreater2h",e.TRIPS_HOME_COMMUTES_TYPE_OF_TRANSPORT="tripsHomeTypeOfTransport",e.TRIPS_HOME_COMMUTES_PERSONAL_CAR_DISTANCE="tripsHomePersonalCarDistance",e.TRIPS_HOME_PUBLIC_TRANSPORT_COSTS="tripsHomePublicTransportCosts",e.COSTS_WORK_CLOTHES_COVERED_BY_EMPLOYER="costsWorkClothesCoveredByEmployer",e.HAS_COSTS_FOR_COMMUTES="hasCostsForCommutes",e.COMMUTES_TYPE_OF_TRANSPORT="commutesTypeOfTransport",e.COMMUTES_PERSONAL_CAR_DISTANCE="commutesPersonalCarDistance",e.COMMUTES_PUBLIC_TRANSPORT_COSTS="commutesPublicTransportCosts",e.COSTS_FOR_BOOKS="costsForBooks",e.ACCOMMODATION_FOR_TRAINING="accommodationForTraining",e.BAB_BAFOG_TRAINING_GRANTS="babBafogTrainingGrants",e.APPRENTICESHIP_HOUSING_TYPE="apprenticeshipHousingType",e.APPRENTICESHIP_HOUSING_DAILY_RATE="apprenticeshipHousingDailyRate",e.APPRENTICESHIP_HOUSING_SOCIAL_SUPPORT="apprenticeshipHousingSocialSupport",e.APPRENTICESHIP_HOUSING_SOCIAL_SUPPORT_IS_COVERED="apprenticeshipHousingSocialSupportIsCovered",e.APPRENTICESHIP_HOUSING_SOCIAL_SUPPORT_DAILY_RATE="apprenticeshipHousingSocialSupportDailyRate",e.IN_STATIONARY_FACILITY="inStationaryFacility",e.ACCOMMODATION_START_DATE="accommodationStartDate",e.ACCOMMODATION_END_DATE="accommodationEndDate",e.MEMBER_TYPE="memberType",e))(spe||{});const Dye={name:{title:"Wie ist Ihr Vorname? (Angabe optional)",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Sie können an dieser Stelle einen Vornamen oder ein Synonym eingeben. Dies dient hier lediglich Ihrer eigenen besseren Zuordnung der verschiedenen Personen im Haushalt während des Programmablaufs."}),s.jsx("p",{children:"Sollten Sie sich dazu entschieden einen Antrag mit der ratsuchenden Person auszufüllen, werden nach der späteren Auswahl des Antrags die personenbezogenen Daten separat abgefragt."})]})},age:{title:"Wie alt sind Sie?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Das Alter ist für die Berechnung relevant und wird daher abgefragt."}),s.jsx("p",{children:"Je nach Alter gibt es andere Sätze für z.B. den Regelbedarf und Unterhaltsvorschuss oder auch für die Dauer des Bezugs von ALG I."}),s.jsx("p",{children:"Je nach Familienkonstellation wird im SGB II zwischen über und unter 15 bzw. 25 jährigen Familienmitgliedern in der BG unterschieden."})]})},currentlyInEducation:{title:"Befinden Sie sich aktuell in (Schul-) Ausbildung oder Studium?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Schule/Studium/Ausbildung Wenn Sie eine berufsbildende Schule besuchen, studieren oder eine Ausbildung machen, haben Sie unter Umständen einen Anspruch auf Leistungen nach dem Bundesausbildungsförderungsgesetz (BAföG),"}),s.jsx("p",{children:"Berufsausbildungsbeihilfe (BAB) nach den §§ 51, 57, 58 Drittes Buch Sozialgesetzbuch (SGB III) oder Ausbildungsgeld (ABG) nach § 122 SGB III. Sie sind verpflichtet, BAföG/BAB/ABG vorrangig in Anspruch zu nehmen, wenn Sie hierauf einen Anspruch haben. Ihr Jobcenter wird Sie gegebenenfalls auffordern, einen Antrag auf BAföG/BAB/ABG zu stellen, sofern Sie noch keinen Antrag gestellt haben und Ihre Ausbildung förderfähig ist."}),s.jsx("p",{children:"BAföG-Bezieherinnen und -Bezieher können einen ergänzenden Anspruch auf Leistungen nach dem SGB II haben. Studierende oder Schülerinnen/Schüler, die BAföG beziehen und nicht im Haushalt der Eltern leben, sind jedoch in der Regel vom Bezug des Bürgergeldes ausgeschlossen. Außerdem ausgeschlossen sind zum Beispiel auszubildende Personen, deren Ausbildung im Rahmen von BAB oder ABG förderungsfähig ist, wenn sie mit voller Verpflegung in einem Wohnheim oder Internat oder einer besonderen Einrichtung für Menschen mit Behinderung untergebracht sind und bei einer Förderung mit ABG diese Kosten durch eine Agentur für Arbeit oder einen Dritten übernommen werden."}),s.jsx("p",{children:"Bei Vorliegen der Voraussetzungen haben diese ausgeschlossenen auszubildenden Personen, Schülerinnen/Schüler und Studierende jedoch einen Anspruch auf Leistungen zur Deckung ihrer Mehrbedarfe oder in bestimmten Fällen einen Anspruch auf darlehensweise Leistungsgewährung. Sie sind verpflichtet, einen Nachweis vorzulegen, wenn Sie während Ihrer Berufsausbildung in einem Internat, Wohnheim oder einer besonderen Einrichtung für Menschen mit Behinderung untergebracht sind. Die Vorlage eines Wohnheim- oder Internatvertrages ist in der Regel nicht erforderlich. Eine vorgelegte Kopie kann um nicht relevante Stellen geschwärzt werden."}),s.jsx("p",{children:"Wenn Sie einen Ausbildungsvertrag als Nachweis über eine Berufsausbildung vorlegen, können Sie nicht erforderliche Angaben ebenfalls schwärzen. Grundsätzlich ist auch die Vorlage alternativer Nachweise möglich. Wann ist die Schulausbildung oder Berufsausbildung beendet? Beim Abschluss einer Schulausbildung oder einer Berufsausbildung kommt es auf das Datum des Abschlusszeugnisses an. Sollten Sie sich bereits in einer Schulausbildung oder einer Berufsausbildung befinden, ist das voraussichtliche Ende anzugeben."}),s.jsx("p",{children:"Generell wird davon ausgegangen, dass in einer Bedarfsgemeinschaft in der alle Mitglieder BAföG, BAB oder Ausbildungsgeld beziehen, kein Anspruch auf z.B. Bürgergeld oder Wohngeld besteht. Hierbei gibt es Ausnahmen. In diesem Sofort Check können wir nicht alle Ausnahmen abbilden, somit wird für eine Haushalts- oder Bedarfsgemeinschaft, welche nur aus Beziehern von BAB, Bafög oder Ausbildungsgeld besteht, keine Leistungsberechnung vorgenommen."})]})},inStationaryFacility:{title:"Befinden Sie sich aktuell in einer stationären Einrichtung?",content:s.jsx("p",{children:"Bitte beachten Sie, dass So12 sich in der Testversion befindet. Fälle mit stationärem Wohnen/ Algorithmen dahinter sind nicht eingearbeitet."})},abilityToWorkThreeHoursPerDay:{title:"Stehen Sie dem Arbeitsmarkt NICHT für eine regelmäßige Tätigkeit von mindestens drei Stunden täglich zur Verfügung (z.B. gesundheitlich)?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:'"Tätigkeit von mindestens drei Stunden" / Erwerbsfähig ist:'}),s.jsxs("ul",{children:[s.jsx("li",{children:"Wer unter den üblichen Bedingungen des allgemeinen Arbeitsmarkts mindestens drei Stunden täglich erwerbstätig sein kann und"}),s.jsx("li",{children:"Nicht wegen Krankheit oder Behinderung für mindestens sechs Monate daran gehindert ist."})]}),s.jsx("p",{children:"Ein Anspruch auf Leistungen nach dem SGB II, sowie Wohngeld und ALGI besteht nur dann, wenn mindestens eine Person Ihrer Bedarfsgemeinschaft erwerbsfähig ist. Wenn es keine erwerbsfähige Person in Ihrer Bedarfsgemeinschaft gibt, besteht für Sie möglicherweise kein Anspruch auf Leistungen nach dem SGB II, Wohngeld oder KiZ. Sie können in diesem Fall Leistungen nach dem Zwölften Buch Sozialgesetzbuch beantragen."}),s.jsx("p",{children:"Als Vertreterin/Vertreter der Bedarfsgemeinschaft haben Sie nach Ihren Kenntnissen auch Angaben zur Erwerbsfähigkeit der vertretenen Mitglieder Ihrer Bedarfsgemeinschaft zu machen. Konkrete Angaben zu Krankheiten oder Behinderungen sollen nicht gemacht werden."}),s.jsx("p",{children:"Was gilt bei Kindeserziehung, Pflege Angehöriger oder Schulbesuch? Als erwerbsfähig gelten auch Personen, denen vorübergehend eine Erwerbstätigkeit nicht zugemutet werden kann, zum Beispiel wegen der Erziehung eines Kindes unter drei Jahren, der Betreuung pflegebedürftiger Angehöriger oder wegen eines Schulbesuchs."})]})},hadAJobIn12Months:{title:"Waren Sie in den letzten 30 Monaten für mindestens 12 Monate sozialversicherungspflichtig beschäftigt? Oder haben sie aus sonstigen Gründen die Anwartschaftszeiten für ALG1 erfüllt?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Mit SO12 haben Sie die Möglichkeit durch ein genaues Ausfüllen im Bereich des Einkommens der letzten 30 Monate, einen Anhaltspunkt für Ihren möglichen ALG 1 Anspruch zu erhalten."}),s.jsx("p",{children:"ALG1 ist eine Versicherungsleistung und vorrangig zu anderen Leistungsarten zu werten."}),s.jsx("p",{children:s.jsx("strong",{children:"Begriffsklärung: Anwartschaftszeit"})}),s.jsx("p",{children:"Um Anspruch auf Arbeitslosengeld zu haben, müssen Sie die sogenannte Anwartschaftszeit erfüllen. Das ist der Fall, wenn Sie in den 30 Monaten vor Ihrer Arbeitslosmeldung und Arbeitslosigkeit in der Arbeitslosenversicherung mindestens 12 Monate pflicht- oder freiwillig versichert waren. In der Regel werden versicherungspflichtige Zeiten in Beschäftigungsverhältnissen zurückgelegt. Zur Berechnung, ob die Anwartschaftszeit erfüllt ist, werden die Zeiten aller versicherungspflichtigen Beschäftigungen innerhalb des 30-Monate-Zeitraumes zusammengerechnet."}),s.jsx("p",{children:s.jsx("strong",{children:"Weitere versicherungspflichtige Zeiten:"})}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Waren freiwillig in der Arbeitslosenversicherung versichert, zum Beispiel während einer Selbstständigkeit."}),s.jsx("li",{children:"Haben ein Kind erzogen (bis zum 3. Lebensjahr)."}),s.jsx("li",{children:"Haben Krankengeld erhalten."}),s.jsx("li",{children:"Haben freiwilligen Wehrdienst, Bundesfreiwilligendienst oder Jugendfreiwilligendienst geleistet."})]}),s.jsx("p",{children:"Auch die genannten Zeiten können bei der Berechnung, ob die Anwartschaftszeit erfüllt ist, einbezogen werden. Es gilt: Sie müssen insgesamt – zusammen mit versicherungspflichtigen Beschäftigungen – mindestens 12 Monate an Versicherungszeiten zurückgelegt haben, um die Anwartschaftszeit zu erfüllen. SO12 kann bei diesen Sonderfällen aktuell keine verlässliche Berechnung bieten, vielmehr ist es als Anhaltspunkt gedacht."}),s.jsx("p",{children:s.jsx("strong",{children:"Verkürzte Anwartschaftszeit bei befristeten Beschäftigungen, die im Programm aktuell keine Berücksichtigung finden:"})}),s.jsx("p",{children:"Waren Sie häufig befristet beschäftigt, gilt unter bestimmten Voraussetzungen eine kürzere Anwartschaftszeit. Dann genügt es, wenn Sie auf 6 Monate oder mehr versicherungspflichtige Zeiten kommen (Beschäftigung oder weitere versicherungspflichtige Zeit) in den 30 Monaten vor der Arbeitslosmeldung und Arbeitslosigkeit."}),s.jsx("p",{children:"Voraussetzung dafür ist unter anderem, dass die im 30-Monats-Zeitraum überwiegend ausgeübten Beschäftigungen im Voraus auf höchstens 14 Wochen befristet waren und das Arbeitsentgelt der letzten 12 Monate einen bestimmten Wert nicht überschreitet. Genauere Informationen hierzu und weitere Voraussetzungen entnehmen Sie bitte dem Merkblatt für Arbeitslose."}),s.jsx("p",{children:s.jsx("strong",{children:"Wie viel Arbeitslosengeld Sie bekommen:"})}),s.jsx("p",{children:"Die Höhe Ihres Arbeitslosengeldes ist von vielen Faktoren abhängig. Die folgende Berechnung ist darum vereinfacht: Die Grundlage, auf der Ihr Arbeitslosengeld berechnet wird, ist Ihr Brutto-Arbeitsentgelt (Gehalt) der vergangenen 12 Monate. Dabei wird nur der Teil Ihres Arbeitsentgelts berücksichtigt, der beitragspflichtig in der Arbeitslosenversicherung war (also zum Beispiel kein Minijob) und beim Ausscheiden aus dem Beschäftigungsverhältnis abgerechnet war. Indem der Betrag durch 365 geteilt wird, wird das Brutto-Arbeitsentgelt pro Tag ermittelt. Es wird als Bemessungsentgelt bezeichnet."}),s.jsx("p",{children:"Davon werden rein rechnerisch die Lohnsteuer, gegebenenfalls der Solidaritätszuschlag und ein Pauschalbetrag für die Sozialversicherung in Höhe von 20 Prozent abgezogen. Das Ergebnis ist Ihr Netto-Entgelt pro Tag, das als Leistungsentgelt bezeichnet wird."}),s.jsx("p",{children:"60 Prozent des Leistungsentgelts sind der Betrag, den Sie als Arbeitslosengeld pro Tag erhalten. Dieser Betrag erhöht sich auf 67 Prozent, falls Sie oder Ihr Ehe-/ Lebenspartner mindestens ein Kind (im Sinne des Einkommenssteuergesetzes) haben."})]})},nationality:{title:"Welche Staatsangehörigkeit haben Sie?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Je nach Staatsangehörigkeit und Einreisedatum, sowie Angabe dazu, ob Sie Anspruch auf ALG1 erworben haben, kann eine Berechnung über aufstockende Leistungen zum ALG 1 geprüft werden. Generell ist es bei EU-Angehörigen, welche sich seit mehr als drei Monaten in Deutschland aufhalten und keine Erwerbstätigkeit nachgehen und die auch keinen Anspruch auf ALG I erworben haben, so, dass kein Anspruch auf ALGII, Wohngeld oder KiZ besteht."}),s.jsx("p",{children:"Sollte es keine weiteren Personen mit anderen Einkommensverhältnissen im Haushalt geben, erhalten Sie hier somit kein verlässliches Ergebnis. Bitte wenden Sie sich bei Fällen dieser Art an Ihr örtliches Sozialamt."})]})},claimAsylumSeekerBenefits:{title:"Haben Sie Anspruch auf Asylbewerberleistungen?",content:s.jsx("p",{children:"Berechtigte nach dem Asylbewerberleistungsgesetz sind vom Bezug von Leistungen nach dem SGB II, und KiZ im Prinzip ausgeschlossen, abgesehen von Ausnahmen, die wir hier nicht erfassen können."})},collectiveAccommodation:{title:"Leben Sie in einer Sammelunterkunft?",content:s.jsx("p",{children:"Die Frage nach einer Sammelunterkunft ist für die Berechnung von Leistungen nach dem Asylbewerberleistungsgesetz relevant, da andere Regelsätze herangezogen werden."})},commitmentDeclaration:{title:"Wurde eine Verpflichtungserklärung für Sie abgegeben?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Eine Person kann sich gegenüber der Ausländerbehörde oder Auslandsvertretung verpflichten, Ihnen bei Hilfebedürftigkeit finanziell Unterstützung zu leisten."}),s.jsx("p",{children:" Dies nennt man Verpflichtungserklärung."}),s.jsx("p",{children:"DieBerechnung in SO12 ist nicht verlässlich möglich, sollte eine solche Erklärung ausgestellt worden sein. Es handelt sich hier um Einzelfallentscheidungen."}),s.jsx("p",{children:"Sie sollten einen Rechtsbeistand aufsuchen."})]})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var dd=(e=>(e[e.KINDER_GELD=259]="KINDER_GELD",e[e.ADDITIONAL_SUPPORT_0_5=227]="ADDITIONAL_SUPPORT_0_5",e[e.ADDITIONAL_SUPPORT_6_11=299]="ADDITIONAL_SUPPORT_6_11",e[e.ADDITIONAL_SUPPORT_12_18=394]="ADDITIONAL_SUPPORT_12_18",e))(dd||{});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function lpe(e,t){if(Pa(e,t))return t;const n=e.incomeData||new vT,a=tSe(e,t),r=QU(e);return a==null||a.forEach(i=>{var c,d;const l=r.find(h=>h.id===i.memberId),o=nSe(t).find(h=>h.memberId===i.memberId);if(Uc(l)){const h=eg(i.labourIncome,o==null?void 0:o.labourIncome),f=tg(h),m=ng(i.labourIncome,f),g={...i,labourIncome:m};n.applicantIncomeData=g}if(ii(l)){const h=eg(i.labourIncome,o==null?void 0:o.labourIncome),f=tg(h),m=ng(i.labourIncome,f),g={...i,labourIncome:m};n.partnerIncomeData=g}if(vi(l)){const h=eg(i.labourIncome,o==null?void 0:o.labourIncome),f=tg(h),m=ng(i.labourIncome,f),g={...i,labourIncome:m},b=n.kidsIncomeData||[],E=(c=n==null?void 0:n.kidsIncomeData)==null?void 0:c.find(S=>S.memberId===i.memberId);if(E){const S=b.indexOf(E);n.kidsIncomeData&&(n.kidsIncomeData[S]=g)}}if(Pr(l)){const h=eg(i.labourIncome,o==null?void 0:o.labourIncome),f=tg(h),m=ng(i.labourIncome,f),g={...i,labourIncome:m},b=n.otherMembersIncomeData||[],E=(d=n==null?void 0:n.otherMembersIncomeData)==null?void 0:d.find(S=>S.memberId===i.memberId);if(E){const S=b.indexOf(E);n.otherMembersIncomeData&&(n.otherMembersIncomeData[S]=g)}}}),{...e,incomeData:n}}function eg(e,t){return e==null?void 0:e.filter(a=>!a.monthsIncomeSynchronized).filter(a=>{const r=t==null?void 0:t.find(i=>i.id===a.id);if(Number((r==null?void 0:r.bruttoIncome)||0)!==Number(a.bruttoIncome||0))return!0})}function tg(e){return e==null?void 0:e.map(t=>{const n=JL(),a=ope();return{...t,last30MonthsIncome:n.map(r=>({month:r,bruttoIncome:t.bruttoIncome,nettoIncome:s1(t)})),last12MonthsIncome:a.map(r=>({month:r,bruttoIncome:t.bruttoIncome,nettoIncome:s1(t)}))}})}function ng(e,t){return e==null?void 0:e.map(n=>{const a=t==null?void 0:t.find(r=>r.id===n.id);return a||n})}function JL(){const e=[];for(let t=1;t<=30;t++)e.push(ls().subtract(t,"months").locale("de").format("MMMM YYYY"));return e}function ope(){const e=[];for(let t=1;t<=12;t++)e.push(ls().subtract(t,"months").locale("de").format("MMMM YYYY"));return e}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function cpe(e){const t=Number(e==null?void 0:e.age);let n=0;return t<=5?n=dd.ADDITIONAL_SUPPORT_0_5:t>=6&&t<=11?n=dd.ADDITIONAL_SUPPORT_6_11:t>=12&&t<=18&&(n=dd.ADDITIONAL_SUPPORT_12_18),n}function QL(e){const t=new Date().toLocaleString("en-US",{month:"long"}),n=Number(e==null?void 0:e.age),a=cpe(e),r={last12MonthsIncome:[{nettoIncome:a,month:t}],nettoIncome:a+""};return{total:void 0,childSupportAdvance:n<17,childSupportAdvanceInfo:r}}function tE(e){var _t,nn,Ee,Ne,Ze,zt,yn,Ln,St,ne,Ie,re,ie,fe,Ge,Et,It,dt,ea,ye,Le,je,Ht,Ve,ut,st,We,ht,Ct,$t,X,ae,Q,Te,Oe,ke,Be,Se,Fe,Me,en,nt,Tt,gt,pn,Mt,Gt,ta,Gn,Wn,Ga,ci,Wa,Fr,ir,Ca,Nt,Yt,ba,Yr,Ns,Nn,xs,Mo,ul,dl,Do,jo,Bo,Po,Ho,Lo,hl,fl,Uo,ko,Fo,pl,Yo,ui,ji,ml,di,qa,zo,Go,Wo,qo,Vo,Ko,Zo,Jo,Ss,Qo,gl,Xo,_o,$o,ec,tc,nc,ac,Ea,Wt;const t=Number((e==null?void 0:e.parentalIncome)&&((_t=e==null?void 0:e.parentalIncomeInfo)==null?void 0:_t.nettoIncome)||0),n=Number((e==null?void 0:e.kinderGeld)&&((nn=e==null?void 0:e.kinderGeldInfo)==null?void 0:nn.nettoIncome)||0),a=Number((e==null?void 0:e.childSupport)&&((Ee=e==null?void 0:e.childSupportInfo)==null?void 0:Ee.nettoIncome)||0),r=Number(((e==null?void 0:e.childSupport)&&((Ze=(Ne=e==null?void 0:e.childSupportInfo)==null?void 0:Ne.last12MonthsIncome)==null?void 0:Ze.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12),i=r!==0&&(e!=null&&e.childSupport)&&((zt=e==null?void 0:e.childSupportInfo)!=null&&zt.incomeChangesInLast12Months)?Number(r):a,l=Number((e==null?void 0:e.childSupportAdvance)&&((yn=e==null?void 0:e.childSupportAdvanceInfo)==null?void 0:yn.nettoIncome)||0),o=Number(((e==null?void 0:e.childSupportAdvance)&&((St=(Ln=e==null?void 0:e.childSupportAdvanceInfo)==null?void 0:Ln.last12MonthsIncome)==null?void 0:St.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12),c=o!==0&&(e!=null&&e.childSupportAdvance)&&((ne=e==null?void 0:e.childSupportAdvanceInfo)!=null&&ne.incomeChangesInLast12Months)?Number(o):l,d=Number((e==null?void 0:e.childAllowance)&&((Ie=e==null?void 0:e.childAllowanceInfo)==null?void 0:Ie.nettoIncome)||0),h=Number((e==null?void 0:e.halfOrphanPension)&&((re=e==null?void 0:e.halfOrphanPensionInfo)==null?void 0:re.nettoIncome)||0),f=Number((e==null?void 0:e.childAndYouthWelfareServiceSGBVIII)&&((ie=e==null?void 0:e.childAndYouthWelfareServiceSGBVIIIInfo)==null?void 0:ie.nettoIncome)||0),m=Number((e==null?void 0:e.rentingIncome)&&((fe=e==null?void 0:e.rentingIncomeInfo)==null?void 0:fe.nettoIncome)||0)||0,g=Number((e==null?void 0:e.expenseCompensationIncome)&&((Ge=e==null?void 0:e.expenseCompensationIncomeInfo)==null?void 0:Ge.nettoIncome)||0),b=0,E=Number(((Et=e==null?void 0:e.transferIncomeInfo)==null?void 0:Et.unemploymentBenefits)&&((dt=(It=e==null?void 0:e.transferIncomeInfo)==null?void 0:It.unemploymentBenefitsInfo)==null?void 0:dt.nettoIncome)||0)||0,S=Number((e==null?void 0:e.transferIncome)&&((ea=e==null?void 0:e.transferIncomeInfo)==null?void 0:ea.burgerGeld)&&((Le=(ye=e==null?void 0:e.transferIncomeInfo)==null?void 0:ye.burgerGeldInfo)==null?void 0:Le.nettoIncome)||0)||0,I=Number((e==null?void 0:e.transferIncome)&&((je=e==null?void 0:e.transferIncomeInfo)==null?void 0:je.socialHelpBenefits)&&((Ve=(Ht=e==null?void 0:e.transferIncomeInfo)==null?void 0:Ht.socialHelpBenefitsInfo)==null?void 0:Ve.nettoIncome)||0)||0,O=Number((e==null?void 0:e.transferIncome)&&((ut=e==null?void 0:e.transferIncomeInfo)==null?void 0:ut.housingBenefits)&&((We=(st=e==null?void 0:e.transferIncomeInfo)==null?void 0:st.housingBenefitsInfo)==null?void 0:We.nettoIncome)||0)||0,v=Number((e==null?void 0:e.transferIncome)&&((ht=e==null?void 0:e.transferIncomeInfo)==null?void 0:ht.SGB7InjuryBenefits)&&(($t=(Ct=e==null?void 0:e.transferIncomeInfo)==null?void 0:Ct.SGB7InjuryBenefitsInfo)==null?void 0:$t.nettoIncome)||0)||0,w=Number(((X=e==null?void 0:e.transferIncomeInfo)==null?void 0:X.BVGWarVictimBenefits)&&((Q=(ae=e==null?void 0:e.transferIncomeInfo)==null?void 0:ae.BVGWarVictimBenefitsInfo)==null?void 0:Q.nettoIncome)||0)||0,D=Number(((Te=e==null?void 0:e.transferIncomeInfo)==null?void 0:Te.par56TypeOfBenefits)&&((ke=(Oe=e==null?void 0:e.transferIncomeInfo)==null?void 0:Oe.par56TypeOfBenefitsInfo)==null?void 0:ke.nettoIncome)||0)||0,C=Number((e==null?void 0:e.pensionIncome)&&((Be=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Be.disabilityPension)&&((Fe=(Se=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Se.disabilityPensionInfo)==null?void 0:Fe.nettoIncome)||0)||0,M=Number((e==null?void 0:e.pensionIncome)&&((Me=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Me.basicFederalPension)&&((nt=(en=e==null?void 0:e.pensionIncomeInfo)==null?void 0:en.basicFederalPensionInfo)==null?void 0:nt.nettoIncome)||0)||0,B=Number((e==null?void 0:e.pensionIncome)&&((Tt=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Tt.widowPension)&&((pn=(gt=e==null?void 0:e.pensionIncomeInfo)==null?void 0:gt.widowPensionInfo)==null?void 0:pn.nettoIncome)||0)||0,L=Number((e==null?void 0:e.oneTimePaymentIncome)&&((Mt=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Mt.alimonyPayments)&&((ta=(Gt=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Gt.alimonyPaymentsInfo)==null?void 0:ta.nettoIncome)||0)||0,H=Number((e==null?void 0:e.oneTimePaymentIncome)&&((Gn=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Gn.additionalPensionPayments)&&((Ga=(Wn=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Wn.additionalPensionPaymentsInfo)==null?void 0:Ga.nettoIncome)||0)||0,U=Number((e==null?void 0:e.oneTimePaymentIncome)&&((ci=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:ci.insurancePayments)&&((Fr=(Wa=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Wa.insurancePaymentsInfo)==null?void 0:Fr.nettoIncome)||0)||0,W=Number((e==null?void 0:e.oneTimePaymentIncome)&&((ir=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:ir.severancePayments)&&((Nt=(Ca=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Ca.severancePaymentsInfo)==null?void 0:Nt.nettoIncome)||0)||0,z=Number((e==null?void 0:e.miscellaneousIncome)&&((Yt=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Yt.monthlyPayments)&&((Yr=(ba=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:ba.monthlyPaymentsInfo)==null?void 0:Yr.nettoIncome)||0)||0,$=Number((e==null?void 0:e.miscellaneousIncome)&&((Ns=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Ns.oneTimePayments)&&((xs=(Nn=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Nn.oneTimePaymentsInfo)==null?void 0:xs.nettoIncome)||0)||0,V=Number((e==null?void 0:e.miscellaneousIncome)&&((Mo=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Mo.tipsOrHomeownershipPayments)&&((dl=(ul=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:ul.tipsOrHomeownershipPaymentsInfo)==null?void 0:dl.nettoIncome)||0)||0,F=Number((e==null?void 0:e.miscellaneousIncome)&&((Do=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Do.otherStateBenefits)&&((Bo=(jo=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:jo.otherStateBenefitsInfo)==null?void 0:Bo.nettoIncome)||0)||0,te=Number((e==null?void 0:e.capitalIncome)&&((Po=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Po.nettoIncome)||0)||0,se=Number((((Lo=(Ho=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Ho.last12MonthsIncome)==null?void 0:Lo.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12)||0,pe=se!==0&&(e!=null&&e.capitalIncome)&&((hl=e==null?void 0:e.capitalIncomeInfo)!=null&&hl.incomeChangesInLast12Months)?Number(se):te,be=Number((e==null?void 0:e.divorceIncome)&&((fl=e==null?void 0:e.divorceIncomeInfo)==null?void 0:fl.nettoIncome)||0)||0,we=Number((((ko=(Uo=e==null?void 0:e.divorceIncomeInfo)==null?void 0:Uo.last12MonthsIncome)==null?void 0:ko.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12)||0,ve=we!==0&&(e!=null&&e.divorceIncome)&&((Fo=e==null?void 0:e.divorceIncomeInfo)!=null&&Fo.incomeChangesInLast12Months)?Number(we):be,Ue=Number((e==null?void 0:e.pensionIncome)&&((pl=e==null?void 0:e.pensionIncomeInfo)==null?void 0:pl.retirementPension)&&((ui=(Yo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Yo.retirementPensionInfo)==null?void 0:ui.nettoIncome)||0)||0,Re=Number((((di=(ml=(ji=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ji.retirementPensionInfo)==null?void 0:ml.last12MonthsIncome)==null?void 0:di.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12)||0,ue=Re!==0&&(e!=null&&e.pensionIncome)&&((qa=e==null?void 0:e.pensionIncomeInfo)!=null&&qa.retirementPension)&&((Go=(zo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:zo.retirementPensionInfo)!=null&&Go.incomeChangesInLast12Months)?Number(Re):Ue,ze=Number((e==null?void 0:e.pensionIncome)&&((Wo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Wo.bundeswehrInjuryPension)&&((Vo=(qo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:qo.bundeswehrInjuryPensionInfo)==null?void 0:Vo.nettoIncome)||0)||0,Qe=Number((((Jo=(Zo=(Ko=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Ko.bundeswehrInjuryPensionInfo)==null?void 0:Zo.last12MonthsIncome)==null?void 0:Jo.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12)||0,me=Qe!==0&&(e!=null&&e.pensionIncome)&&((Ss=e==null?void 0:e.pensionIncomeInfo)!=null&&Ss.bundeswehrInjuryPension)&&((gl=(Qo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Qo.bundeswehrInjuryPensionInfo)!=null&&gl.incomeChangesInLast12Months)?Number(Qe):ze,it=Number((e==null?void 0:e.pensionIncome)&&((Xo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Xo.accidentPension)&&(($o=(_o=e==null?void 0:e.pensionIncomeInfo)==null?void 0:_o.accidentPensionInfo)==null?void 0:$o.nettoIncome)||0)||0,En=Number((((nc=(tc=(ec=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ec.accidentPensionInfo)==null?void 0:tc.last12MonthsIncome)==null?void 0:nc.reduce((Va,an)=>Va+Number((an==null?void 0:an.nettoIncome)||0),0))||0)/12)||0,mt=En!==0&&(e!=null&&e.pensionIncome)&&((ac=e==null?void 0:e.pensionIncomeInfo)!=null&&ac.accidentPension)&&((Wt=(Ea=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Ea.accidentPensionInfo)!=null&&Wt.incomeChangesInLast12Months)?Number(En):it;return Number(t)+Number(pe)+Number(ve)+Number(ue)+Number(me)+Number(mt)+Number(m)+Number(g)+Number(b)+Number(E)+Number(S)+Number(I)+Number(O)+Number(v)+Number(w)+Number(D)+Number(C)+Number(M)+Number(B)+Number(L)+Number(H)+Number(U)+Number(W)+Number(z)+Number($)+Number(V)+Number(F)+Number(i)+Number(c)+Number(d)+Number(h)+Number(f)+Number(n)}function XL(e){var Vt,_t,nn,Ee,Ne,Ze,zt,yn,Ln,St,ne,Ie,re,ie,fe,Ge,Et,It,dt,ea,ye,Le,je,Ht,Ve,ut,st,We,ht,Ct,$t,X,ae,Q,Te,Oe,ke,Be,Se,Fe,Me,en,nt,Tt,gt,pn,Mt,Gt,ta,Gn,Wn,Ga,ci,Wa,Fr,ir,Ca,Nt,Yt,ba,Yr,Ns,Nn,xs,Mo,ul,dl,Do,jo,Bo,Po,Ho,Lo,hl,fl,Uo,ko,Fo,pl,Yo,ui,ji,ml,di,qa,zo,Go,Wo,qo,Vo,Ko,Zo,Jo,Ss,Qo,gl,Xo,_o,$o,ec,tc,nc,ac;const t=Number((e==null?void 0:e.kinderGeld)&&((Vt=e==null?void 0:e.kinderGeldInfo)==null?void 0:Vt.nettoIncome)||0),n=Number((e==null?void 0:e.childSupport)&&((_t=e==null?void 0:e.childSupportInfo)==null?void 0:_t.nettoIncome)||0),a=Number(((e==null?void 0:e.childSupport)&&((Ee=(nn=e==null?void 0:e.childSupportInfo)==null?void 0:nn.last12MonthsIncome)==null?void 0:Ee.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),r=a!==0&&(e!=null&&e.childSupport)&&((Ne=e==null?void 0:e.childSupportInfo)!=null&&Ne.incomeChangesInLast12Months)?Number(a):n,i=Number((e==null?void 0:e.childSupportAdvance)&&((Ze=e==null?void 0:e.childSupportAdvanceInfo)==null?void 0:Ze.nettoIncome)||0),l=Number(((e==null?void 0:e.childSupportAdvance)&&((yn=(zt=e==null?void 0:e.childSupportAdvanceInfo)==null?void 0:zt.last12MonthsIncome)==null?void 0:yn.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),o=l!==0&&(e!=null&&e.childSupportAdvance)&&((Ln=e==null?void 0:e.childSupportAdvanceInfo)!=null&&Ln.incomeChangesInLast12Months)?Number(l):i,c=Number((e==null?void 0:e.childAllowance)&&((St=e==null?void 0:e.childAllowanceInfo)==null?void 0:St.nettoIncome)||0),d=Number((e==null?void 0:e.halfOrphanPension)&&((ne=e==null?void 0:e.halfOrphanPensionInfo)==null?void 0:ne.nettoIncome)||0),h=Number((e==null?void 0:e.childAndYouthWelfareServiceSGBVIII)&&((Ie=e==null?void 0:e.childAndYouthWelfareServiceSGBVIIIInfo)==null?void 0:Ie.nettoIncome)||0),f=Number((e==null?void 0:e.rentingIncome)&&((re=e==null?void 0:e.rentingIncomeInfo)==null?void 0:re.nettoIncome)||0),m=Number((e==null?void 0:e.expenseCompensationIncome)&&((ie=e==null?void 0:e.expenseCompensationIncomeInfo)==null?void 0:ie.nettoIncome)||0),g=0,b=Number(((fe=e==null?void 0:e.transferIncomeInfo)==null?void 0:fe.unemploymentBenefits)&&((Et=(Ge=e==null?void 0:e.transferIncomeInfo)==null?void 0:Ge.unemploymentBenefitsInfo)==null?void 0:Et.nettoIncome)||0),E=Number((e==null?void 0:e.transferIncome)&&((It=e==null?void 0:e.transferIncomeInfo)==null?void 0:It.burgerGeld)&&((ea=(dt=e==null?void 0:e.transferIncomeInfo)==null?void 0:dt.burgerGeldInfo)==null?void 0:ea.nettoIncome)||0),S=Number((e==null?void 0:e.transferIncome)&&((ye=e==null?void 0:e.transferIncomeInfo)==null?void 0:ye.socialHelpBenefits)&&((je=(Le=e==null?void 0:e.transferIncomeInfo)==null?void 0:Le.socialHelpBenefitsInfo)==null?void 0:je.nettoIncome)||0),I=Number((e==null?void 0:e.transferIncome)&&((Ht=e==null?void 0:e.transferIncomeInfo)==null?void 0:Ht.housingBenefits)&&((ut=(Ve=e==null?void 0:e.transferIncomeInfo)==null?void 0:Ve.housingBenefitsInfo)==null?void 0:ut.nettoIncome)||0),O=Number((e==null?void 0:e.transferIncome)&&((st=e==null?void 0:e.transferIncomeInfo)==null?void 0:st.SGB7InjuryBenefits)&&((ht=(We=e==null?void 0:e.transferIncomeInfo)==null?void 0:We.SGB7InjuryBenefitsInfo)==null?void 0:ht.nettoIncome)||0),v=Number(((Ct=e==null?void 0:e.transferIncomeInfo)==null?void 0:Ct.BVGWarVictimBenefits)&&((X=($t=e==null?void 0:e.transferIncomeInfo)==null?void 0:$t.BVGWarVictimBenefitsInfo)==null?void 0:X.nettoIncome)||0),w=Number(((ae=e==null?void 0:e.transferIncomeInfo)==null?void 0:ae.par56TypeOfBenefits)&&((Te=(Q=e==null?void 0:e.transferIncomeInfo)==null?void 0:Q.par56TypeOfBenefitsInfo)==null?void 0:Te.nettoIncome)||0),D=Number((e==null?void 0:e.pensionIncome)&&((Oe=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Oe.disabilityPension)&&((Be=(ke=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ke.disabilityPensionInfo)==null?void 0:Be.nettoIncome)||0),C=Number((e==null?void 0:e.pensionIncome)&&((Se=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Se.basicFederalPension)&&((Me=(Fe=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Fe.basicFederalPensionInfo)==null?void 0:Me.nettoIncome)||0),M=Number((e==null?void 0:e.pensionIncome)&&((en=e==null?void 0:e.pensionIncomeInfo)==null?void 0:en.widowPension)&&((Tt=(nt=e==null?void 0:e.pensionIncomeInfo)==null?void 0:nt.widowPensionInfo)==null?void 0:Tt.nettoIncome)||0),B=Number((e==null?void 0:e.oneTimePaymentIncome)&&((gt=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:gt.alimonyPayments)&&((Mt=(pn=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:pn.alimonyPaymentsInfo)==null?void 0:Mt.nettoIncome)||0),L=Number((e==null?void 0:e.oneTimePaymentIncome)&&((Gt=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Gt.additionalPensionPayments)&&((Gn=(ta=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ta.additionalPensionPaymentsInfo)==null?void 0:Gn.nettoIncome)||0),H=Number((e==null?void 0:e.oneTimePaymentIncome)&&((Wn=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Wn.insurancePayments)&&((ci=(Ga=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Ga.insurancePaymentsInfo)==null?void 0:ci.nettoIncome)||0),U=Number((e==null?void 0:e.oneTimePaymentIncome)&&((Wa=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Wa.severancePayments)&&((ir=(Fr=e==null?void 0:e.oneTimePaymentIncomeInfo)==null?void 0:Fr.severancePaymentsInfo)==null?void 0:ir.nettoIncome)||0),W=Number((e==null?void 0:e.miscellaneousIncome)&&((Ca=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Ca.monthlyPayments)&&((Yt=(Nt=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Nt.monthlyPaymentsInfo)==null?void 0:Yt.nettoIncome)||0),z=Number((e==null?void 0:e.miscellaneousIncome)&&((ba=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:ba.oneTimePayments)&&((Ns=(Yr=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Yr.oneTimePaymentsInfo)==null?void 0:Ns.nettoIncome)||0),$=Number((e==null?void 0:e.miscellaneousIncome)&&((Nn=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:Nn.tipsOrHomeownershipPayments)&&((Mo=(xs=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:xs.tipsOrHomeownershipPaymentsInfo)==null?void 0:Mo.nettoIncome)||0),V=Number((e==null?void 0:e.miscellaneousIncome)&&((ul=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:ul.otherStateBenefits)&&((Do=(dl=e==null?void 0:e.miscellaneousIncomeInfo)==null?void 0:dl.otherStateBenefitsInfo)==null?void 0:Do.nettoIncome)||0),F=Number((e==null?void 0:e.capitalIncome)&&((jo=e==null?void 0:e.capitalIncomeInfo)==null?void 0:jo.nettoIncome)||0),te=Number((((Po=(Bo=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Bo.last12MonthsIncome)==null?void 0:Po.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),se=te!==0&&(e!=null&&e.capitalIncome)&&((Ho=e==null?void 0:e.capitalIncomeInfo)!=null&&Ho.incomeChangesInLast12Months)?Number(te):F,pe=Number((e==null?void 0:e.divorceIncome)&&((Lo=e==null?void 0:e.divorceIncomeInfo)==null?void 0:Lo.nettoIncome)||0),be=Number((((fl=(hl=e==null?void 0:e.divorceIncomeInfo)==null?void 0:hl.last12MonthsIncome)==null?void 0:fl.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),we=be!==0&&(e!=null&&e.divorceIncome)&&((Uo=e==null?void 0:e.divorceIncomeInfo)!=null&&Uo.incomeChangesInLast12Months)?Number(be):pe,ve=Number((e==null?void 0:e.pensionIncome)&&((ko=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ko.retirementPension)&&((pl=(Fo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Fo.retirementPensionInfo)==null?void 0:pl.nettoIncome)||0),Ue=Number((((ji=(ui=(Yo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Yo.retirementPensionInfo)==null?void 0:ui.last12MonthsIncome)==null?void 0:ji.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),Re=Ue!==0&&(e!=null&&e.pensionIncome)&&((ml=e==null?void 0:e.pensionIncomeInfo)!=null&&ml.retirementPension)&&((qa=(di=e==null?void 0:e.pensionIncomeInfo)==null?void 0:di.retirementPensionInfo)!=null&&qa.incomeChangesInLast12Months)?Number(Ue):ve,ue=Number((e==null?void 0:e.pensionIncome)&&((zo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:zo.bundeswehrInjuryPension)&&((Wo=(Go=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Go.bundeswehrInjuryPensionInfo)==null?void 0:Wo.nettoIncome)||0),ze=Number((((Ko=(Vo=(qo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:qo.bundeswehrInjuryPensionInfo)==null?void 0:Vo.last12MonthsIncome)==null?void 0:Ko.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),Qe=ze!==0&&(e!=null&&e.pensionIncome)&&((Zo=e==null?void 0:e.pensionIncomeInfo)!=null&&Zo.bundeswehrInjuryPension)&&((Ss=(Jo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Jo.bundeswehrInjuryPensionInfo)!=null&&Ss.incomeChangesInLast12Months)?Number(ze):ue,me=Number((e==null?void 0:e.pensionIncome)&&((Qo=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Qo.accidentPension)&&((Xo=(gl=e==null?void 0:e.pensionIncomeInfo)==null?void 0:gl.accidentPensionInfo)==null?void 0:Xo.nettoIncome)||0),it=Number((((ec=($o=(_o=e==null?void 0:e.pensionIncomeInfo)==null?void 0:_o.accidentPensionInfo)==null?void 0:$o.last12MonthsIncome)==null?void 0:ec.reduce((Ea,Wt)=>Ea+Number((Wt==null?void 0:Wt.nettoIncome)||0),0))||0)/12),En=it!==0&&(e!=null&&e.pensionIncome)&&((tc=e==null?void 0:e.pensionIncomeInfo)!=null&&tc.accidentPension)&&((ac=(nc=e==null?void 0:e.pensionIncomeInfo)==null?void 0:nc.accidentPensionInfo)!=null&&ac.incomeChangesInLast12Months)?Number(it):me;return Number(r)+Number(o)+Number(c)+Number(d)+Number(h)+Number(se)+Number(we)+Number(Re)+Number(Qe)+Number(En)+Number(f)+Number(m)+Number(t)+Number(b)+Number(E)+Number(S)+Number(g)+Number(I)+Number(O)+Number(v)+Number(w)+Number(D)+Number(C)+Number(M)+Number(B)+Number(L)+Number(H)+Number(U)+Number(W)+Number(z)+Number($)+Number(V)}function s1(e){return Number((e==null?void 0:e.nettoIncome)||0)}function nE(e){var r;const t=Number((e==null?void 0:e.nettoIncome)||0),n=Number((((r=e==null?void 0:e.last12MonthsIncome)==null?void 0:r.reduce((i,l)=>i+Number((l==null?void 0:l.nettoIncome)||0),0))||0)/12),a=t;return n!==0&&(e!=null&&e.incomeChangesInLast12Months)&&Number(n),a}function bp(e){var r;const t=Number((e==null?void 0:e.nettoIncome)||0),n=Number((((r=e==null?void 0:e.last12MonthsIncome)==null?void 0:r.reduce((i,l)=>i+Number((l==null?void 0:l.nettoIncome)||0),0))||0)/12);return n!==0&&(e!=null&&e.incomeChangesInLast12Months)?Number(n):t}function _L(e,t){var o,c,d,h;const n=((o=e==null?void 0:e.labourIncome)==null?void 0:o.map(f=>nE(f)).reduce((f,m)=>Number(f)+(Number(m)||0),0))||0,a=((c=e==null?void 0:e.selfEmploymentIncome)==null?void 0:c.map(f=>bp(f)).reduce((f,m)=>Number(f)+(Number(m)||0),0))||0,r=((d=e==null?void 0:e.apprenticeshipWageIncome)==null?void 0:d.map(f=>Number((f==null?void 0:f.nettoIncome)??0)||0).reduce((f,m)=>f+m,0))||0,i=((h=e==null?void 0:e.otherIncome)==null?void 0:h.map(f=>t==="otherMembers"?tE(f):XL(f)).reduce((f,m)=>Number(f)+(Number(m)||0),0))||0,l=(e==null?void 0:e.additionalSupport)||0;return Number(n)+Number(a)+Number(r)+Number(i)+Number(l)}function jl(){return JL().map(e=>({month:e,bruttoIncome:0,nettoIncome:0}))}const upe=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];function yT(e){return upe.map(t=>`${t} ${e}`)}function l1(e){return yT(e).map(t=>({month:t,bruttoIncome:0,nettoIncome:0}))}function dpe(e){return yT(e).map(t=>({month:t,bruttoIncome:0,nettoIncome:0}))}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function hpe(e){var t,n;return!!(e!=null&&e.isRelatedToYou)&&(((t=e==null?void 0:e.otherPersonRelationshipToYouType)==null?void 0:t.value)==="mother"||((n=e==null?void 0:e.otherPersonRelationshipToYouType)==null?void 0:n.value)==="father")}function fpe(e){return((e==null?void 0:e.householdMembers)??[]).filter(n=>hpe(n))}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function o1(e,t){return new Date(e.getTime()+t*24*60*60*1e3)}function c1(){return new Date().getFullYear()-2}function u1(e){if(e==null)return c1();const t=typeof e=="string"?new Date(e):e;return Number.isNaN(t.getTime())?c1():t.getFullYear()-2}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ppe({income:e,index:t,primaryFieldName:n,remove:a,calendarYear:r,sumInfoConfig:i}){const{setFieldValue:l,setFieldTouched:o}=tt(),c=Number((e==null?void 0:e.total)??(e==null?void 0:e.nettoIncome)??0),d=()=>{a(t)};return s.jsx(cn,{editableTitle:!0,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(c).toFixed(2)} €`}),className:"h-[40px] rounded-[15px] border border-black px-4",classNames:{parentContainer:Ae("rounded-t-[15px] border border-none")},editableTitleValue:e.jobTitle,editableTitlePlaceholderValue:"Bezeichnung",onChange:h=>{l(`${n}.${u.OTHER_INCOME}[${t}].${u.JOB_TITLE}`,h.target.value)},onTouch:()=>{o(`${n}.${u.OTHER_INCOME}[${t}].${u.JOB_TITLE}`)},mode:"delete",onDelete:d,text:"Andere Einkünfte",children:s.jsx("div",{className:"flex flex-col gap-4",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TOTAL}`,label:s.jsxs(s.Fragment,{children:[s.jsxs("span",{children:["Summe weiterer Einkünfte im Jahr „",r,'"']}),i&&s.jsx(Xe,{id:`bab-other-income-sum-${t}`,title:i.title,content:i.content})]}),className:"w-full",classNames:{label:"pb-3",inputLabelSubContainer:"w-[140px]",input:"border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})})}const mpe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:40,height:41,viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("g",{clipPath:"url(#clip0_4776_805)"},T.createElement("rect",{width:40,height:41,rx:14,fill:"white"}),T.createElement("path",{d:"M30 10.25L10 30.75",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),T.createElement("path",{d:"M10 10.25L30 30.75",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),T.createElement("defs",null,T.createElement("clipPath",{id:"clip0_4776_805"},T.createElement("rect",{width:40,height:41,rx:14,fill:"white"})))),gpe=T.forwardRef(mpe),bpe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:33,height:41,viewBox:"0 0 33 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("mask",{id:"mask0_4776_791",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:33,height:41},T.createElement("rect",{width:33,height:40.9701,rx:2,fill:"#D9D9D9"})),T.createElement("g",{mask:"url(#mask0_4776_791)"},T.createElement("path",{d:"M4.51441 35.8487C3.05142 35.8487 2.0835 34.3293 2.70181 33.0034L14.6874 7.30109C15.4054 5.76143 17.5946 5.76143 18.3126 7.30108L30.2982 33.0034C30.9165 34.3294 29.9486 35.8487 28.4856 35.8487H4.51441ZM7.45076 29.5871C6.83041 30.9132 7.7983 32.4345 9.26234 32.4345H23.7377C25.2017 32.4345 26.1696 30.9132 25.5492 29.5871L18.3116 14.1151C17.5927 12.5783 15.4073 12.5783 14.6884 14.1151L7.45076 29.5871ZM16.5 30.7274C16.8896 30.7274 17.2161 30.5638 17.4797 30.2367C17.7432 29.9095 17.875 29.504 17.875 29.0203C17.875 28.5367 17.7432 28.1312 17.4797 27.8041C17.2161 27.4769 16.8896 27.3133 16.5 27.3133C16.1104 27.3133 15.7839 27.4769 15.5203 27.8041C15.2568 28.1312 15.125 28.5367 15.125 29.0203C15.125 29.504 15.2568 29.9095 15.5203 30.2367C15.7839 30.5638 16.1104 30.7274 16.5 30.7274ZM15.125 24.2312C15.125 24.9906 15.7406 25.6062 16.5 25.6062C17.2594 25.6062 17.875 24.9906 17.875 24.2312V18.4457C17.875 17.6864 17.2594 17.0707 16.5 17.0707C15.7406 17.0707 15.125 17.6864 15.125 18.4457V24.2312Z",fill:"black"}))),Epe=T.forwardRef(bpe),Npe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:15,height:31,viewBox:"0 0 15 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("path",{d:"M15 7.06039L4.84996 15.7404V16.1604L15 24.8404V31.0004L0.0899658 18.2604V13.6404L15 0.900391V7.06039Z",fill:"black"})),xpe=T.forwardRef(Npe);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Eu({text:e="Zurück",onClick:t,className:n}){const a=tt(),r=T.useCallback(()=>{t&&t(),a.resetForm()},[a,t]);return s.jsxs("button",{className:ge("flex w-[155px] items-center gap-5 rounded-[5px] border border-black px-3 py-2 text-lg font-semibold",n),type:"button",onClick:r,children:[s.jsx(xpe,{className:"h-[31px]"}),e]})}const Spe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:15,height:31,viewBox:"0 0 15 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("path",{d:"M0 24.3404L10.15 15.6604V15.2404L0 6.56039V0.400391L14.91 13.1404V17.7604L7.45501 24.1304L0 30.5004V24.3404Z",fill:"black"})),Ipe=T.forwardRef(Spe);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Nu({text:e="Weiter",className:t,...n}){let a=!1;try{a=tt().isSubmitting}catch(r){console.error("FormActionButtonSubmit",r)}return s.jsxs("button",{...n,type:"submit",disabled:a,className:ge("flex w-[155px] items-center justify-end gap-5 rounded-[5px] border border-black px-3 py-2 text-lg font-semibold",t),children:[a?s.jsx(sT,{}):e,s.jsx(Ipe,{className:"h-[31px]"})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Es({onConfirm:e,onCancel:t,className:n,onClose:a,closeOnOutsideClick:r=!0,open:i}){fH({cb:a,isAllowed:r&&i});const l=T.useRef(null),[o,c]=T.useState(!1);return T.useEffect(()=>(c(!0),()=>c(!1)),[]),!i||!o?null:EE.createPortal(s.jsx("div",{ref:l,style:{zIndex:2147483647},onClick:d=>{r&&i&&d.target===l.current&&a&&a()},tabIndex:1,className:ge("fixed left-0 top-0 flex size-full items-center justify-center bg-mirage bg-opacity-70 outline-none backdrop-blur-sm",n),children:s.jsxs("div",{className:"relative flex w-[893px] flex-col rounded bg-white p-6 shadow-md",children:[s.jsx("button",{onClick:a,className:"absolute right-4 top-4 flex size-[40px] items-center justify-center",children:s.jsx(gpe,{className:"size-[32px]"})}),s.jsxs("div",{className:"mb-4 flex items-center pl-[50px]",children:[s.jsx(Epe,{className:"mr-2 size-[32px]"}),s.jsx("p",{className:"text-xl font-semibold",children:"Warnung!"})]}),s.jsx("div",{className:"pl-[60px]",children:s.jsx("p",{className:"font-sans text-[20px] font-bold",children:"Sind Sie sich wirklich sicher, dass Sie diese Daten unwiderruflich löschen möchten?"})}),s.jsxs("div",{className:"flex justify-center gap-4 pt-[60px]",children:[s.jsx(Eu,{text:"Nein",onClick:t}),s.jsx(Nu,{text:"Ja",onClick:e})]})]})}),document.body)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Ope({label:e,className:t,classNames:n,...a}){const r=ge("relative flex flex-col justify-center",t);return s.jsxs("div",{className:r,tabIndex:1,children:[s.jsxs("div",{className:ge("flex items-center gap-4",n==null?void 0:n.inputContainer),children:[s.jsx(oL,{...a,className:n==null?void 0:n.input}),e]}),(a==null?void 0:a.error)&&s.jsx(pu,{className:ge("w-full pl-4",n==null?void 0:n.error),children:a.error})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function jn({...e}){const[t,n]=uu(e.name),a=n.touched&&n.error;return s.jsx(Ope,{...t,checked:!!t.value,...e,error:typeof a=="object"?JSON.stringify(a):a})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const d1={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},vpe=(e,t,n)=>{let a;const r=n!=null&&n.addSuffix?d1[e].withPreposition:d1[e].standalone;return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",String(t)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:"vor "+a:a};function hd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Tpe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},Ape={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ype={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wpe={date:hd({formats:Tpe,defaultWidth:"full"}),time:hd({formats:Ape,defaultWidth:"full"}),dateTime:hd({formats:ype,defaultWidth:"full"})},Cpe={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Rpe=(e,t,n,a)=>Cpe[e];function Wi(e){return(t,n)=>{const a=n!=null&&n.context?String(n.context):"standalone";let r;if(a==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,o=n!=null&&n.width?String(n.width):l;r=e.formattingValues[o]||e.formattingValues[l]}else{const l=e.defaultWidth,o=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}const Mpe={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},Dpe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},GO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},jpe={narrow:GO.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:GO.wide},Bpe={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},Ppe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},Hpe={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Lpe=e=>Number(e)+".",Upe={ordinalNumber:Lpe,era:Wi({values:Mpe,defaultWidth:"wide"}),quarter:Wi({values:Dpe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Wi({values:GO,formattingValues:jpe,defaultWidth:"wide"}),day:Wi({values:Bpe,defaultWidth:"wide"}),dayPeriod:Wi({values:Ppe,defaultWidth:"wide",formattingValues:Hpe,defaultFormattingWidth:"wide"})};function qi(e){return(t,n={})=>{const a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const l=i[0],o=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(o)?Fpe(o,f=>f.test(l)):kpe(o,f=>f.test(l));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const h=t.slice(l.length);return{value:d,rest:h}}}function kpe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Fpe(e,t){for(let n=0;n{const a=t.match(e.matchPattern);if(!a)return null;const r=a[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=n.valueCallback?n.valueCallback(l):l;const o=t.slice(r.length);return{value:l,rest:o}}}const Ype=/^(\d+)(\.)?/i,zpe=/\d+/i,Gpe={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},Wpe={any:[/^v/i,/^n/i]},qpe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Vpe={any:[/1/i,/2/i,/3/i,/4/i]},Kpe={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Zpe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Jpe={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Qpe={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Xpe={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},_pe={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},$pe={ordinalNumber:$L({matchPattern:Ype,parsePattern:zpe,valueCallback:e=>parseInt(e)}),era:qi({matchPatterns:Gpe,defaultMatchWidth:"wide",parsePatterns:Wpe,defaultParseWidth:"any"}),quarter:qi({matchPatterns:qpe,defaultMatchWidth:"wide",parsePatterns:Vpe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qi({matchPatterns:Kpe,defaultMatchWidth:"wide",parsePatterns:Zpe,defaultParseWidth:"any"}),day:qi({matchPatterns:Jpe,defaultMatchWidth:"wide",parsePatterns:Qpe,defaultParseWidth:"any"}),dayPeriod:qi({matchPatterns:Xpe,defaultMatchWidth:"wide",parsePatterns:_pe,defaultParseWidth:"any"})},eme={code:"de",formatDistance:vpe,formatLong:wpe,formatRelative:Rpe,localize:Upe,match:$pe,options:{weekStartsOn:1,firstWeekContainsDate:4}};function Qc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function He(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function Ep(e){if(!Qc(e)&&typeof e!="number")return!1;const t=He(e);return!isNaN(Number(t))}const tme={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},nme=(e,t,n)=>{let a;const r=tme[e];return typeof r=="string"?a=r:t===1?a=r.one:a=r.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a},ame={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},rme={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ime={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sme={date:hd({formats:ame,defaultWidth:"full"}),time:hd({formats:rme,defaultWidth:"full"}),dateTime:hd({formats:ime,defaultWidth:"full"})},lme={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ome=(e,t,n,a)=>lme[e],cme={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ume={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},dme={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},hme={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},pme={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},mme=(e,t)=>{const n=Number(e),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},gme={ordinalNumber:mme,era:Wi({values:cme,defaultWidth:"wide"}),quarter:Wi({values:ume,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Wi({values:dme,defaultWidth:"wide"}),day:Wi({values:hme,defaultWidth:"wide"}),dayPeriod:Wi({values:fme,defaultWidth:"wide",formattingValues:pme,defaultFormattingWidth:"wide"})},bme=/^(\d+)(th|st|nd|rd)?/i,Eme=/\d+/i,Nme={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},xme={any:[/^b/i,/^(a|c)/i]},Sme={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ime={any:[/1/i,/2/i,/3/i,/4/i]},Ome={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vme={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Tme={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ame={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},yme={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wme={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Cme={ordinalNumber:$L({matchPattern:bme,parsePattern:Eme,valueCallback:e=>parseInt(e,10)}),era:qi({matchPatterns:Nme,defaultMatchWidth:"wide",parsePatterns:xme,defaultParseWidth:"any"}),quarter:qi({matchPatterns:Sme,defaultMatchWidth:"wide",parsePatterns:Ime,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qi({matchPatterns:Ome,defaultMatchWidth:"wide",parsePatterns:vme,defaultParseWidth:"any"}),day:qi({matchPatterns:Tme,defaultMatchWidth:"wide",parsePatterns:Ame,defaultParseWidth:"any"}),dayPeriod:qi({matchPatterns:yme,defaultMatchWidth:"any",parsePatterns:wme,defaultParseWidth:"any"})},eU={code:"en-US",formatDistance:nme,formatLong:sme,formatRelative:ome,localize:gme,match:Cme,options:{weekStartsOn:0,firstWeekContainsDate:1}};let Rme={};function xu(){return Rme}const tU=6048e5,Mme=864e5,wN=6e4,CN=36e5,Dme=1e3;function ns(e){const t=He(e);return t.setHours(0,0,0,0),t}function aE(e){const t=He(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Np(e,t){const n=ns(e),a=ns(t),r=+n-aE(n),i=+a-aE(a);return Math.round((r-i)/Mme)}function ln(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function wT(e){const t=He(e),n=ln(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function jme(e){const t=He(e);return Np(t,wT(t))+1}function il(e,t){var o,c,d,h;const n=xu(),a=(t==null?void 0:t.weekStartsOn)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.weekStartsOn)??n.weekStartsOn??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,r=He(e),i=r.getDay(),l=(i=r.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}function Bme(e){const t=nU(e),n=ln(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),Qd(n)}function CT(e){const t=He(e),n=+Qd(t)-+Bme(t);return Math.round(n/tU)+1}function RT(e,t){var h,f,m,g;const n=He(e),a=n.getFullYear(),r=xu(),i=(t==null?void 0:t.firstWeekContainsDate)??((f=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,l=ln(e,0);l.setFullYear(a+1,0,i),l.setHours(0,0,0,0);const o=il(l,t),c=ln(e,0);c.setFullYear(a,0,i),c.setHours(0,0,0,0);const d=il(c,t);return n.getTime()>=o.getTime()?a+1:n.getTime()>=d.getTime()?a:a-1}function Pme(e,t){var o,c,d,h;const n=xu(),a=(t==null?void 0:t.firstWeekContainsDate)??((c=(o=t==null?void 0:t.locale)==null?void 0:o.options)==null?void 0:c.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(d=n.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,r=RT(e,t),i=ln(e,0);return i.setFullYear(r,0,a),i.setHours(0,0,0,0),il(i,t)}function aU(e,t){const n=He(e),a=+il(n,t)-+Pme(n,t);return Math.round(a/tU)+1}function rn(e,t){const n=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return n+a}const vl={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return rn(t==="yy"?a%100:a,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):rn(n+1,2)},d(e,t){return rn(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return rn(e.getHours()%12||12,t.length)},H(e,t){return rn(e.getHours(),t.length)},m(e,t){return rn(e.getMinutes(),t.length)},s(e,t){return rn(e.getSeconds(),t.length)},S(e,t){const n=t.length,a=e.getMilliseconds(),r=Math.trunc(a*Math.pow(10,n-3));return rn(r,t.length)}},Ru={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},h1={G:function(e,t,n){const a=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(a,{width:"abbreviated"});case"GGGGG":return n.era(a,{width:"narrow"});case"GGGG":default:return n.era(a,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const a=e.getFullYear(),r=a>0?a:1-a;return n.ordinalNumber(r,{unit:"year"})}return vl.y(e,t)},Y:function(e,t,n,a){const r=RT(e,a),i=r>0?r:1-r;if(t==="YY"){const l=i%100;return rn(l,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):rn(i,t.length)},R:function(e,t){const n=nU(e);return rn(n,t.length)},u:function(e,t){const n=e.getFullYear();return rn(n,t.length)},Q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return rn(a,2);case"Qo":return n.ordinalNumber(a,{unit:"quarter"});case"QQQ":return n.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,n){const a=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return rn(a,2);case"qo":return n.ordinalNumber(a,{unit:"quarter"});case"qqq":return n.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,n){const a=e.getMonth();switch(t){case"M":case"MM":return vl.M(e,t);case"Mo":return n.ordinalNumber(a+1,{unit:"month"});case"MMM":return n.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,n){const a=e.getMonth();switch(t){case"L":return String(a+1);case"LL":return rn(a+1,2);case"Lo":return n.ordinalNumber(a+1,{unit:"month"});case"LLL":return n.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,n,a){const r=aU(e,a);return t==="wo"?n.ordinalNumber(r,{unit:"week"}):rn(r,t.length)},I:function(e,t,n){const a=CT(e);return t==="Io"?n.ordinalNumber(a,{unit:"week"}):rn(a,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):vl.d(e,t)},D:function(e,t,n){const a=jme(e);return t==="Do"?n.ordinalNumber(a,{unit:"dayOfYear"}):rn(a,t.length)},E:function(e,t,n){const a=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(a,{width:"short",context:"formatting"});case"EEEE":default:return n.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,n,a){const r=e.getDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return rn(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(r,{width:"short",context:"formatting"});case"eeee":default:return n.day(r,{width:"wide",context:"formatting"})}},c:function(e,t,n,a){const r=e.getDay(),i=(r-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return rn(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(r,{width:"narrow",context:"standalone"});case"cccccc":return n.day(r,{width:"short",context:"standalone"});case"cccc":default:return n.day(r,{width:"wide",context:"standalone"})}},i:function(e,t,n){const a=e.getDay(),r=a===0?7:a;switch(t){case"i":return String(r);case"ii":return rn(r,t.length);case"io":return n.ordinalNumber(r,{unit:"day"});case"iii":return n.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(a,{width:"short",context:"formatting"});case"iiii":default:return n.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const a=e.getHours();let r;switch(a===12?r=Ru.noon:a===0?r=Ru.midnight:r=a/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){const a=e.getHours();let r;switch(a>=17?r=Ru.evening:a>=12?r=Ru.afternoon:a>=4?r=Ru.morning:r=Ru.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let a=e.getHours()%12;return a===0&&(a=12),n.ordinalNumber(a,{unit:"hour"})}return vl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):vl.H(e,t)},K:function(e,t,n){const a=e.getHours()%12;return t==="Ko"?n.ordinalNumber(a,{unit:"hour"}):rn(a,t.length)},k:function(e,t,n){let a=e.getHours();return a===0&&(a=24),t==="ko"?n.ordinalNumber(a,{unit:"hour"}):rn(a,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):vl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):vl.s(e,t)},S:function(e,t){return vl.S(e,t)},X:function(e,t,n){const a=e.getTimezoneOffset();if(a===0)return"Z";switch(t){case"X":return p1(a);case"XXXX":case"XX":return mc(a);case"XXXXX":case"XXX":default:return mc(a,":")}},x:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"x":return p1(a);case"xxxx":case"xx":return mc(a);case"xxxxx":case"xxx":default:return mc(a,":")}},O:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+f1(a,":");case"OOOO":default:return"GMT"+mc(a,":")}},z:function(e,t,n){const a=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+f1(a,":");case"zzzz":default:return"GMT"+mc(a,":")}},t:function(e,t,n){const a=Math.trunc(e.getTime()/1e3);return rn(a,t.length)},T:function(e,t,n){const a=e.getTime();return rn(a,t.length)}};function f1(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=Math.trunc(a/60),i=a%60;return i===0?n+String(r):n+String(r)+t+rn(i,2)}function p1(e,t){return e%60===0?(e>0?"-":"+")+rn(Math.abs(e)/60,2):mc(e,t)}function mc(e,t=""){const n=e>0?"-":"+",a=Math.abs(e),r=rn(Math.trunc(a/60),2),i=rn(a%60,2);return n+r+t+i}const m1=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},rU=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Hme=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],a=n[1],r=n[2];if(!r)return m1(e,t);let i;switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",m1(a,t)).replace("{{time}}",rU(r,t))},rE={p:rU,P:Hme},Lme=/^D+$/,Ume=/^Y+$/,kme=["D","DD","YY","YYYY"];function iU(e){return Lme.test(e)}function sU(e){return Ume.test(e)}function WO(e,t,n){const a=Fme(e,t,n);if(console.warn(a),kme.includes(e))throw new RangeError(a)}function Fme(e,t,n){const a=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${a} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Yme=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zme=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gme=/^'([^]*?)'?$/,Wme=/''/g,qme=/[a-zA-Z]/;function g1(e,t,n){var h,f,m,g,b,E,S,I;const a=xu(),r=(n==null?void 0:n.locale)??a.locale??eU,i=(n==null?void 0:n.firstWeekContainsDate)??((f=(h=n==null?void 0:n.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??a.firstWeekContainsDate??((g=(m=a.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,l=(n==null?void 0:n.weekStartsOn)??((E=(b=n==null?void 0:n.locale)==null?void 0:b.options)==null?void 0:E.weekStartsOn)??a.weekStartsOn??((I=(S=a.locale)==null?void 0:S.options)==null?void 0:I.weekStartsOn)??0,o=He(e);if(!Ep(o))throw new RangeError("Invalid time value");let c=t.match(zme).map(O=>{const v=O[0];if(v==="p"||v==="P"){const w=rE[v];return w(O,r.formatLong)}return O}).join("").match(Yme).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const v=O[0];if(v==="'")return{isToken:!1,value:Vme(O)};if(h1[v])return{isToken:!0,value:O};if(v.match(qme))throw new RangeError("Format string contains an unescaped latin alphabet character `"+v+"`");return{isToken:!1,value:O}});r.localize.preprocessor&&(c=r.localize.preprocessor(o,c));const d={firstWeekContainsDate:i,weekStartsOn:l,locale:r};return c.map(O=>{if(!O.isToken)return O.value;const v=O.value;(!(n!=null&&n.useAdditionalWeekYearTokens)&&sU(v)||!(n!=null&&n.useAdditionalDayOfYearTokens)&&iU(v))&&WO(v,t,String(e));const w=h1[v[0]];return w(o,v,r.localize,d)}).join("")}function Vme(e){const t=e.match(Gme);return t?t[1].replace(Wme,"'"):e}function lU(e,t){const n=+He(e);return ln(e,n+t)}function qO(e,t){return lU(e,t*wN)}function Kme(e,t){return lU(e,t*CN)}function Ro(e,t){const n=He(e);return isNaN(t)?ln(e,NaN):(t&&n.setDate(n.getDate()+t),n)}function iE(e,t){const n=t*7;return Ro(e,n)}function wi(e,t){const n=He(e);if(isNaN(t))return ln(e,NaN);if(!t)return n;const a=n.getDate(),r=ln(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);const i=r.getDate();return a>=i?r:(n.setFullYear(r.getFullYear(),r.getMonth(),a),n)}function oU(e,t){const n=t*3;return wi(e,n)}function Xd(e,t){return wi(e,t*12)}function Zme(e,t){return Ro(e,-t)}function b1(e,t){return iE(e,-t)}function _d(e,t){return wi(e,-t)}function Jme(e,t){return oU(e,-t)}function xp(e,t){return Xd(e,-t)}function E1(e){return He(e).getSeconds()}function as(e){return He(e).getMinutes()}function rs(e){return He(e).getHours()}function Qme(e){return He(e).getDay()}function N1(e){return He(e).getDate()}function Fa(e){return He(e).getMonth()}function Xu(e){const t=He(e);return Math.trunc(t.getMonth()/3)+1}function vt(e){return He(e).getFullYear()}function VO(e){return He(e).getTime()}function Xme(e,t){const n=He(e);return n.setSeconds(t),n}function Kg(e,t){const n=He(e);return n.setMinutes(t),n}function Zg(e,t){const n=He(e);return n.setHours(t),n}function _me(e){const t=He(e),n=t.getFullYear(),a=t.getMonth(),r=ln(e,0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function $a(e,t){const n=He(e),a=n.getFullYear(),r=n.getDate(),i=ln(e,0);i.setFullYear(a,t,15),i.setHours(0,0,0,0);const l=_me(i);return n.setMonth(t,Math.min(r,l)),n}function Mu(e,t){const n=He(e),a=Math.trunc(n.getMonth()/3)+1,r=t-a;return $a(n,n.getMonth()+r*3)}function Ls(e,t){const n=He(e);return isNaN(+n)?ln(e,NaN):(n.setFullYear(t),n)}function x1(e){let t;return e.forEach(n=>{const a=He(n);(!t||t>a||isNaN(+a))&&(t=a)}),t||new Date(NaN)}function S1(e){let t;return e.forEach(function(n){const a=He(n);(t===void 0||ta.getTime()}function Xc(e,t){const n=He(e),a=He(t);return+n<+a}function Sp(e,t){const n=+He(e),[a,r]=[+He(t.start),+He(t.end)].sort((i,l)=>i-l);return n>=a&&n<=r}function lge(){return Object.assign({},xu())}function oge(e,t){const n=t instanceof Date?ln(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}const cge=10;class uU{constructor(){y(this,"subPriority",0)}validate(t,n){return!0}}class uge extends uU{constructor(t,n,a,r,i){super(),this.value=t,this.validateValue=n,this.setValue=a,this.priority=r,i&&(this.subPriority=i)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,a){return this.setValue(t,n,this.value,a)}}class dge extends uU{constructor(){super(...arguments);y(this,"priority",cge);y(this,"subPriority",-1)}set(n,a){return a.timestampIsSet?n:ln(n,oge(n,Date))}}class Xt{run(t,n,a,r){const i=this.parse(t,n,a,r);return i?{setter:new uge(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,a){return!0}}class hge extends Xt{constructor(){super(...arguments);y(this,"priority",140);y(this,"incompatibleTokens",["R","u","t","T"])}parse(n,a,r){switch(a){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})||r.era(n,{width:"abbreviated"})||r.era(n,{width:"narrow"})}}set(n,a,r){return a.era=r,n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}const ra={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Vi={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ia(e,t){return e&&{value:t(e.value),rest:e.rest}}function zn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ki(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const a=n[1]==="+"?1:-1,r=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,l=n[5]?parseInt(n[5],10):0;return{value:a*(r*CN+i*wN+l*Dme),rest:t.slice(n[0].length)}}function dU(e){return zn(ra.anyDigitsSigned,e)}function $n(e,t){switch(e){case 1:return zn(ra.singleDigit,t);case 2:return zn(ra.twoDigits,t);case 3:return zn(ra.threeDigits,t);case 4:return zn(ra.fourDigits,t);default:return zn(new RegExp("^\\d{1,"+e+"}"),t)}}function oE(e,t){switch(e){case 1:return zn(ra.singleDigitSigned,t);case 2:return zn(ra.twoDigitsSigned,t);case 3:return zn(ra.threeDigitsSigned,t);case 4:return zn(ra.fourDigitsSigned,t);default:return zn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function MT(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function hU(e,t){const n=t>0,a=n?t:1-t;let r;if(a<=50)r=e||100;else{const i=a+50,l=Math.trunc(i/100)*100,o=e>=i%100;r=e+l-(o?100:0)}return n?r:1-r}function fU(e){return e%400===0||e%4===0&&e%100!==0}class fge extends Xt{constructor(){super(...arguments);y(this,"priority",130);y(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,a,r){const i=l=>({year:l,isTwoDigitYear:a==="yy"});switch(a){case"y":return ia($n(4,n),i);case"yo":return ia(r.ordinalNumber(n,{unit:"year"}),i);default:return ia($n(a.length,n),i)}}validate(n,a){return a.isTwoDigitYear||a.year>0}set(n,a,r){const i=n.getFullYear();if(r.isTwoDigitYear){const o=hU(r.year,i);return n.setFullYear(o,0,1),n.setHours(0,0,0,0),n}const l=!("era"in a)||a.era===1?r.year:1-r.year;return n.setFullYear(l,0,1),n.setHours(0,0,0,0),n}}class pge extends Xt{constructor(){super(...arguments);y(this,"priority",130);y(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,a,r){const i=l=>({year:l,isTwoDigitYear:a==="YY"});switch(a){case"Y":return ia($n(4,n),i);case"Yo":return ia(r.ordinalNumber(n,{unit:"year"}),i);default:return ia($n(a.length,n),i)}}validate(n,a){return a.isTwoDigitYear||a.year>0}set(n,a,r,i){const l=RT(n,i);if(r.isTwoDigitYear){const c=hU(r.year,l);return n.setFullYear(c,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),il(n,i)}const o=!("era"in a)||a.era===1?r.year:1-r.year;return n.setFullYear(o,0,i.firstWeekContainsDate),n.setHours(0,0,0,0),il(n,i)}}class mge extends Xt{constructor(){super(...arguments);y(this,"priority",130);y(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,a){return oE(a==="R"?4:a.length,n)}set(n,a,r){const i=ln(n,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),Qd(i)}}class gge extends Xt{constructor(){super(...arguments);y(this,"priority",130);y(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,a){return oE(a==="u"?4:a.length,n)}set(n,a,r){return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}class bge extends Xt{constructor(){super(...arguments);y(this,"priority",120);y(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,a,r){switch(a){case"Q":case"QQ":return $n(a.length,n);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})||r.quarter(n,{width:"abbreviated",context:"formatting"})||r.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,a){return a>=1&&a<=4}set(n,a,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class Ege extends Xt{constructor(){super(...arguments);y(this,"priority",120);y(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,a,r){switch(a){case"q":case"qq":return $n(a.length,n);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})||r.quarter(n,{width:"abbreviated",context:"standalone"})||r.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,a){return a>=1&&a<=4}set(n,a,r){return n.setMonth((r-1)*3,1),n.setHours(0,0,0,0),n}}class Nge extends Xt{constructor(){super(...arguments);y(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);y(this,"priority",110)}parse(n,a,r){const i=l=>l-1;switch(a){case"M":return ia(zn(ra.month,n),i);case"MM":return ia($n(2,n),i);case"Mo":return ia(r.ordinalNumber(n,{unit:"month"}),i);case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})||r.month(n,{width:"abbreviated",context:"formatting"})||r.month(n,{width:"narrow",context:"formatting"})}}validate(n,a){return a>=0&&a<=11}set(n,a,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}class xge extends Xt{constructor(){super(...arguments);y(this,"priority",110);y(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,a,r){const i=l=>l-1;switch(a){case"L":return ia(zn(ra.month,n),i);case"LL":return ia($n(2,n),i);case"Lo":return ia(r.ordinalNumber(n,{unit:"month"}),i);case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})||r.month(n,{width:"abbreviated",context:"standalone"})||r.month(n,{width:"narrow",context:"standalone"})}}validate(n,a){return a>=0&&a<=11}set(n,a,r){return n.setMonth(r,1),n.setHours(0,0,0,0),n}}function Sge(e,t,n){const a=He(e),r=aU(a,n)-t;return a.setDate(a.getDate()-r*7),a}class Ige extends Xt{constructor(){super(...arguments);y(this,"priority",100);y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,a,r){switch(a){case"w":return zn(ra.week,n);case"wo":return r.ordinalNumber(n,{unit:"week"});default:return $n(a.length,n)}}validate(n,a){return a>=1&&a<=53}set(n,a,r,i){return il(Sge(n,r,i),i)}}function Oge(e,t){const n=He(e),a=CT(n)-t;return n.setDate(n.getDate()-a*7),n}class vge extends Xt{constructor(){super(...arguments);y(this,"priority",100);y(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,a,r){switch(a){case"I":return zn(ra.week,n);case"Io":return r.ordinalNumber(n,{unit:"week"});default:return $n(a.length,n)}}validate(n,a){return a>=1&&a<=53}set(n,a,r){return Qd(Oge(n,r))}}const Tge=[31,28,31,30,31,30,31,31,30,31,30,31],Age=[31,29,31,30,31,30,31,31,30,31,30,31];class yge extends Xt{constructor(){super(...arguments);y(this,"priority",90);y(this,"subPriority",1);y(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,a,r){switch(a){case"d":return zn(ra.date,n);case"do":return r.ordinalNumber(n,{unit:"date"});default:return $n(a.length,n)}}validate(n,a){const r=n.getFullYear(),i=fU(r),l=n.getMonth();return i?a>=1&&a<=Age[l]:a>=1&&a<=Tge[l]}set(n,a,r){return n.setDate(r),n.setHours(0,0,0,0),n}}class wge extends Xt{constructor(){super(...arguments);y(this,"priority",90);y(this,"subpriority",1);y(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,a,r){switch(a){case"D":case"DD":return zn(ra.dayOfYear,n);case"Do":return r.ordinalNumber(n,{unit:"date"});default:return $n(a.length,n)}}validate(n,a){const r=n.getFullYear();return fU(r)?a>=1&&a<=366:a>=1&&a<=365}set(n,a,r){return n.setMonth(0,r),n.setHours(0,0,0,0),n}}function DT(e,t,n){var f,m,g,b;const a=xu(),r=(n==null?void 0:n.weekStartsOn)??((m=(f=n==null?void 0:n.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??a.weekStartsOn??((b=(g=a.locale)==null?void 0:g.options)==null?void 0:b.weekStartsOn)??0,i=He(e),l=i.getDay(),c=(t%7+7)%7,d=7-r,h=t<0||t>6?t-(l+d)%7:(c+d)%7-(l+d)%7;return Ro(i,h)}class Cge extends Xt{constructor(){super(...arguments);y(this,"priority",90);y(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,a,r){switch(a){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,a){return a>=0&&a<=6}set(n,a,r,i){return n=DT(n,r,i),n.setHours(0,0,0,0),n}}class Rge extends Xt{constructor(){super(...arguments);y(this,"priority",90);y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,a,r,i){const l=o=>{const c=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+c};switch(a){case"e":case"ee":return ia($n(a.length,n),l);case"eo":return ia(r.ordinalNumber(n,{unit:"day"}),l);case"eee":return r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"})}}validate(n,a){return a>=0&&a<=6}set(n,a,r,i){return n=DT(n,r,i),n.setHours(0,0,0,0),n}}class Mge extends Xt{constructor(){super(...arguments);y(this,"priority",90);y(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,a,r,i){const l=o=>{const c=Math.floor((o-1)/7)*7;return(o+i.weekStartsOn+6)%7+c};switch(a){case"c":case"cc":return ia($n(a.length,n),l);case"co":return ia(r.ordinalNumber(n,{unit:"day"}),l);case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})||r.day(n,{width:"abbreviated",context:"standalone"})||r.day(n,{width:"short",context:"standalone"})||r.day(n,{width:"narrow",context:"standalone"})}}validate(n,a){return a>=0&&a<=6}set(n,a,r,i){return n=DT(n,r,i),n.setHours(0,0,0,0),n}}function Dge(e){let n=He(e).getDay();return n===0&&(n=7),n}function jge(e,t){const n=He(e),a=Dge(n),r=t-a;return Ro(n,r)}class Bge extends Xt{constructor(){super(...arguments);y(this,"priority",90);y(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,a,r){const i=l=>l===0?7:l;switch(a){case"i":case"ii":return $n(a.length,n);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return ia(r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),i);case"iiiii":return ia(r.day(n,{width:"narrow",context:"formatting"}),i);case"iiiiii":return ia(r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),i);case"iiii":default:return ia(r.day(n,{width:"wide",context:"formatting"})||r.day(n,{width:"abbreviated",context:"formatting"})||r.day(n,{width:"short",context:"formatting"})||r.day(n,{width:"narrow",context:"formatting"}),i)}}validate(n,a){return a>=1&&a<=7}set(n,a,r){return n=jge(n,r),n.setHours(0,0,0,0),n}}class Pge extends Xt{constructor(){super(...arguments);y(this,"priority",80);y(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,a,r){switch(a){case"a":case"aa":case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,a,r){return n.setHours(MT(r),0,0,0),n}}class Hge extends Xt{constructor(){super(...arguments);y(this,"priority",80);y(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,a,r){switch(a){case"b":case"bb":case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,a,r){return n.setHours(MT(r),0,0,0),n}}class Lge extends Xt{constructor(){super(...arguments);y(this,"priority",80);y(this,"incompatibleTokens",["a","b","t","T"])}parse(n,a,r){switch(a){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})||r.dayPeriod(n,{width:"abbreviated",context:"formatting"})||r.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,a,r){return n.setHours(MT(r),0,0,0),n}}class Uge extends Xt{constructor(){super(...arguments);y(this,"priority",70);y(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,a,r){switch(a){case"h":return zn(ra.hour12h,n);case"ho":return r.ordinalNumber(n,{unit:"hour"});default:return $n(a.length,n)}}validate(n,a){return a>=1&&a<=12}set(n,a,r){const i=n.getHours()>=12;return i&&r<12?n.setHours(r+12,0,0,0):!i&&r===12?n.setHours(0,0,0,0):n.setHours(r,0,0,0),n}}class kge extends Xt{constructor(){super(...arguments);y(this,"priority",70);y(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,a,r){switch(a){case"H":return zn(ra.hour23h,n);case"Ho":return r.ordinalNumber(n,{unit:"hour"});default:return $n(a.length,n)}}validate(n,a){return a>=0&&a<=23}set(n,a,r){return n.setHours(r,0,0,0),n}}class Fge extends Xt{constructor(){super(...arguments);y(this,"priority",70);y(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,a,r){switch(a){case"K":return zn(ra.hour11h,n);case"Ko":return r.ordinalNumber(n,{unit:"hour"});default:return $n(a.length,n)}}validate(n,a){return a>=0&&a<=11}set(n,a,r){return n.getHours()>=12&&r<12?n.setHours(r+12,0,0,0):n.setHours(r,0,0,0),n}}class Yge extends Xt{constructor(){super(...arguments);y(this,"priority",70);y(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,a,r){switch(a){case"k":return zn(ra.hour24h,n);case"ko":return r.ordinalNumber(n,{unit:"hour"});default:return $n(a.length,n)}}validate(n,a){return a>=1&&a<=24}set(n,a,r){const i=r<=24?r%24:r;return n.setHours(i,0,0,0),n}}class zge extends Xt{constructor(){super(...arguments);y(this,"priority",60);y(this,"incompatibleTokens",["t","T"])}parse(n,a,r){switch(a){case"m":return zn(ra.minute,n);case"mo":return r.ordinalNumber(n,{unit:"minute"});default:return $n(a.length,n)}}validate(n,a){return a>=0&&a<=59}set(n,a,r){return n.setMinutes(r,0,0),n}}class Gge extends Xt{constructor(){super(...arguments);y(this,"priority",50);y(this,"incompatibleTokens",["t","T"])}parse(n,a,r){switch(a){case"s":return zn(ra.second,n);case"so":return r.ordinalNumber(n,{unit:"second"});default:return $n(a.length,n)}}validate(n,a){return a>=0&&a<=59}set(n,a,r){return n.setSeconds(r,0),n}}class Wge extends Xt{constructor(){super(...arguments);y(this,"priority",30);y(this,"incompatibleTokens",["t","T"])}parse(n,a){const r=i=>Math.trunc(i*Math.pow(10,-a.length+3));return ia($n(a.length,n),r)}set(n,a,r){return n.setMilliseconds(r),n}}class qge extends Xt{constructor(){super(...arguments);y(this,"priority",10);y(this,"incompatibleTokens",["t","T","x"])}parse(n,a){switch(a){case"X":return Ki(Vi.basicOptionalMinutes,n);case"XX":return Ki(Vi.basic,n);case"XXXX":return Ki(Vi.basicOptionalSeconds,n);case"XXXXX":return Ki(Vi.extendedOptionalSeconds,n);case"XXX":default:return Ki(Vi.extended,n)}}set(n,a,r){return a.timestampIsSet?n:ln(n,n.getTime()-aE(n)-r)}}class Vge extends Xt{constructor(){super(...arguments);y(this,"priority",10);y(this,"incompatibleTokens",["t","T","X"])}parse(n,a){switch(a){case"x":return Ki(Vi.basicOptionalMinutes,n);case"xx":return Ki(Vi.basic,n);case"xxxx":return Ki(Vi.basicOptionalSeconds,n);case"xxxxx":return Ki(Vi.extendedOptionalSeconds,n);case"xxx":default:return Ki(Vi.extended,n)}}set(n,a,r){return a.timestampIsSet?n:ln(n,n.getTime()-aE(n)-r)}}class Kge extends Xt{constructor(){super(...arguments);y(this,"priority",40);y(this,"incompatibleTokens","*")}parse(n){return dU(n)}set(n,a,r){return[ln(n,r*1e3),{timestampIsSet:!0}]}}class Zge extends Xt{constructor(){super(...arguments);y(this,"priority",20);y(this,"incompatibleTokens","*")}parse(n){return dU(n)}set(n,a,r){return[ln(n,r),{timestampIsSet:!0}]}}const Jge={G:new hge,y:new fge,Y:new pge,R:new mge,u:new gge,Q:new bge,q:new Ege,M:new Nge,L:new xge,w:new Ige,I:new vge,d:new yge,D:new wge,E:new Cge,e:new Rge,c:new Mge,i:new Bge,a:new Pge,b:new Hge,B:new Lge,h:new Uge,H:new kge,K:new Fge,k:new Yge,m:new zge,s:new Gge,S:new Wge,X:new qge,x:new Vge,t:new Kge,T:new Zge},Qge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Xge=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_ge=/^'([^]*?)'?$/,$ge=/''/g,ebe=/\S/,tbe=/[a-zA-Z]/;function ES(e,t,n,a){var E,S,I,O,v,w,D,C;const r=lge(),i=(a==null?void 0:a.locale)??r.locale??eU,l=(a==null?void 0:a.firstWeekContainsDate)??((S=(E=a==null?void 0:a.locale)==null?void 0:E.options)==null?void 0:S.firstWeekContainsDate)??r.firstWeekContainsDate??((O=(I=r.locale)==null?void 0:I.options)==null?void 0:O.firstWeekContainsDate)??1,o=(a==null?void 0:a.weekStartsOn)??((w=(v=a==null?void 0:a.locale)==null?void 0:v.options)==null?void 0:w.weekStartsOn)??r.weekStartsOn??((C=(D=r.locale)==null?void 0:D.options)==null?void 0:C.weekStartsOn)??0;if(t==="")return e===""?He(n):ln(n,NaN);const c={firstWeekContainsDate:l,weekStartsOn:o,locale:i},d=[new dge],h=t.match(Xge).map(M=>{const B=M[0];if(B in rE){const L=rE[B];return L(M,i.formatLong)}return M}).join("").match(Qge),f=[];for(let M of h){!(a!=null&&a.useAdditionalWeekYearTokens)&&sU(M)&&WO(M,t,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&iU(M)&&WO(M,t,e);const B=M[0],L=Jge[B];if(L){const{incompatibleTokens:H}=L;if(Array.isArray(H)){const W=f.find(z=>H.includes(z.token)||z.token===B);if(W)throw new RangeError(`The format string mustn't contain \`${W.fullToken}\` and \`${M}\` at the same time`)}else if(L.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);f.push({token:B,fullToken:M});const U=L.run(e,M,i.match,c);if(!U)return ln(n,NaN);d.push(U.setter),e=U.rest}else{if(B.match(tbe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+B+"`");if(M==="''"?M="'":B==="'"&&(M=nbe(M)),e.indexOf(M)===0)e=e.slice(M.length);else return ln(n,NaN)}}if(e.length>0&&ebe.test(e))return ln(n,NaN);const m=d.map(M=>M.priority).sort((M,B)=>B-M).filter((M,B,L)=>L.indexOf(M)===B).map(M=>d.filter(B=>B.priority===M).sort((B,L)=>L.subPriority-B.subPriority)).map(M=>M[0]);let g=He(n);if(isNaN(g.getTime()))return ln(n,NaN);const b={};for(const M of m){if(!M.validate(g,c))return ln(n,NaN);const B=M.set(g,b,c);Array.isArray(B)?(g=B[0],Object.assign(b,B[1])):g=B}return ln(n,g)}function nbe(e){return e.match(_ge)[1].replace($ge,"'")}function abe(e,t){const n=(t==null?void 0:t.additionalDigits)??2,a=lbe(e);let r;if(a.date){const c=obe(a.date,n);r=cbe(c.restDateString,c.year)}if(!r||isNaN(r.getTime()))return new Date(NaN);const i=r.getTime();let l=0,o;if(a.time&&(l=ube(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(o=dbe(a.timezone),isNaN(o))return new Date(NaN)}else{const c=new Date(i+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(i+l+o)}const ag={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},rbe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ibe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,sbe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function lbe(e){const t={},n=e.split(ag.dateTimeDelimiter);let a;if(n.length>2)return t;if(/:/.test(n[0])?a=n[0]:(t.date=n[0],a=n[1],ag.timeZoneDelimiter.test(t.date)&&(t.date=e.split(ag.timeZoneDelimiter)[0],a=e.substr(t.date.length,e.length))),a){const r=ag.timezone.exec(a);r?(t.time=a.replace(r[1],""),t.timezone=r[1]):t.time=a}return t}function obe(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),a=e.match(n);if(!a)return{year:NaN,restDateString:""};const r=a[1]?parseInt(a[1]):null,i=a[2]?parseInt(a[2]):null;return{year:i===null?r:i*100,restDateString:e.slice((a[1]||a[2]).length)}}function cbe(e,t){if(t===null)return new Date(NaN);const n=e.match(rbe);if(!n)return new Date(NaN);const a=!!n[4],r=ef(n[1]),i=ef(n[2])-1,l=ef(n[3]),o=ef(n[4]),c=ef(n[5])-1;if(a)return gbe(t,o,c)?hbe(t,o,c):new Date(NaN);{const d=new Date(0);return!pbe(t,i,l)||!mbe(t,r)?new Date(NaN):(d.setUTCFullYear(t,i,Math.max(r,l)),d)}}function ef(e){return e?parseInt(e):1}function ube(e){const t=e.match(ibe);if(!t)return NaN;const n=NS(t[1]),a=NS(t[2]),r=NS(t[3]);return bbe(n,a,r)?n*CN+a*wN+r*1e3:NaN}function NS(e){return e&&parseFloat(e.replace(",","."))||0}function dbe(e){if(e==="Z")return 0;const t=e.match(sbe);if(!t)return 0;const n=t[1]==="+"?-1:1,a=parseInt(t[2]),r=t[3]&&parseInt(t[3])||0;return Ebe(a,r)?n*(a*CN+r*wN):NaN}function hbe(e,t,n){const a=new Date(0);a.setUTCFullYear(e,0,4);const r=a.getUTCDay()||7,i=(t-1)*7+n+1-r;return a.setUTCDate(a.getUTCDate()+i),a}const fbe=[31,null,31,30,31,30,31,31,30,31,30,31];function pU(e){return e%400===0||e%4===0&&e%100!==0}function pbe(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(fbe[t]||(pU(e)?29:28))}function mbe(e,t){return t>=1&&t<=(pU(e)?366:365)}function gbe(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function bbe(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Ebe(e,t){return t>=0&&t<=59}function Nbe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,JO(e,t)}function JO(e,t){return JO=Object.setPrototypeOf||function(a,r){return a.__proto__=r,a},JO(e,t)}function xbe(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}function I1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sbe(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function Ibe(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&Sbe(e,t,n))return!0;e=e.parentNode||e.host}return e}function Obe(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var vbe=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),a=function(){};return window.addEventListener("testPassiveEventSupport",a,n),window.removeEventListener("testPassiveEventSupport",a,n),t}};function Tbe(e){return e===void 0&&(e=0),function(){return++e}}var Abe=Tbe(),QO,rg={},xS={},ybe=["touchstart","touchmove"],wbe="ignore-react-onclickoutside";function O1(e,t){var n={},a=ybe.indexOf(t)!==-1;return a&&QO&&(n.passive=!e.props.preventDefault),n}function RN(e,t){var n,a,r=e.displayName||e.name||"Component";return a=n=function(i){Nbe(l,i);function l(c){var d;return d=i.call(this,c)||this,d.__outsideClickHandler=function(h){if(typeof d.__clickOutsideHandlerProp=="function"){d.__clickOutsideHandlerProp(h);return}var f=d.getInstance();if(typeof f.props.handleClickOutside=="function"){f.props.handleClickOutside(h);return}if(typeof f.handleClickOutside=="function"){f.handleClickOutside(h);return}throw new Error("WrappedComponent: "+r+" lacks a handleClickOutside(event) function for processing outside click events.")},d.__getComponentNode=function(){var h=d.getInstance();return t&&typeof t.setClickOutsideRef=="function"?t.setClickOutsideRef()(h):typeof h.setClickOutsideRef=="function"?h.setClickOutsideRef():th.findDOMNode(h)},d.enableOnClickOutside=function(){if(!(typeof document>"u"||xS[d._uid])){typeof QO>"u"&&(QO=vbe()),xS[d._uid]=!0;var h=d.props.eventTypes;h.forEach||(h=[h]),rg[d._uid]=function(f){if(d.componentNode!==null&&(d.props.preventDefault&&f.preventDefault(),d.props.stopPropagation&&f.stopPropagation(),!(d.props.excludeScrollbar&&Obe(f)))){var m=f.composed&&f.composedPath&&f.composedPath().shift()||f.target;Ibe(m,d.componentNode,d.props.outsideClickIgnoreClass)===document&&d.__outsideClickHandler(f)}},h.forEach(function(f){document.addEventListener(f,rg[d._uid],O1(I1(d),f))})}},d.disableOnClickOutside=function(){delete xS[d._uid];var h=rg[d._uid];if(h&&typeof document<"u"){var f=d.props.eventTypes;f.forEach||(f=[f]),f.forEach(function(m){return document.removeEventListener(m,h,O1(I1(d),m))}),delete rg[d._uid]}},d.getRef=function(h){return d.instanceRef=h},d._uid=Abe(),d}var o=l.prototype;return o.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var d=this.instanceRef;return d.getInstance?d.getInstance():d},o.componentDidMount=function(){if(!(typeof document>"u"||!document.createElement)){var d=this.getInstance();if(t&&typeof t.handleClickOutside=="function"&&(this.__clickOutsideHandlerProp=t.handleClickOutside(d),typeof this.__clickOutsideHandlerProp!="function"))throw new Error("WrappedComponent: "+r+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside()}},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var d=this.props;d.excludeScrollbar;var h=xbe(d,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?h.ref=this.getRef:h.wrappedRef=this.getRef,h.disableOnClickOutside=this.disableOnClickOutside,h.enableOnClickOutside=this.enableOnClickOutside,T.createElement(e,h)},l}(T.Component),n.displayName="OnClickOutside("+r+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:wbe,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},a}var Cbe=typeof document<"u",Rbe=function(){},Jg=Cbe?T.useLayoutEffect:Rbe;function cE(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!cE(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;a--!==0;){const i=r[a];if(!(i==="_owner"&&e.$$typeof)&&!cE(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function mU(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function v1(e,t){const n=mU(e);return Math.round(t*n)/n}function SS(e){const t=T.useRef(e);return Jg(()=>{t.current=e}),t}function Mbe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:i,floating:l}={},transform:o=!0,whileElementsMounted:c,open:d}=e,[h,f]=T.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=T.useState(a);cE(m,a)||g(a);const[b,E]=T.useState(null),[S,I]=T.useState(null),O=T.useCallback(se=>{se!==C.current&&(C.current=se,E(se))},[]),v=T.useCallback(se=>{se!==M.current&&(M.current=se,I(se))},[]),w=i||b,D=l||S,C=T.useRef(null),M=T.useRef(null),B=T.useRef(h),L=c!=null,H=SS(c),U=SS(r),W=SS(d),z=T.useCallback(()=>{if(!C.current||!M.current)return;const se={placement:t,strategy:n,middleware:m};U.current&&(se.platform=U.current),Lre(C.current,M.current,se).then(pe=>{const be={...pe,isPositioned:W.current!==!1};$.current&&!cE(B.current,be)&&(B.current=be,th.flushSync(()=>{f(be)}))})},[m,t,n,U,W]);Jg(()=>{d===!1&&B.current.isPositioned&&(B.current.isPositioned=!1,f(se=>({...se,isPositioned:!1})))},[d]);const $=T.useRef(!1);Jg(()=>($.current=!0,()=>{$.current=!1}),[]),Jg(()=>{if(w&&(C.current=w),D&&(M.current=D),w&&D){if(H.current)return H.current(w,D,z);z()}},[w,D,z,H,L]);const V=T.useMemo(()=>({reference:C,floating:M,setReference:O,setFloating:v}),[O,v]),F=T.useMemo(()=>({reference:w,floating:D}),[w,D]),te=T.useMemo(()=>{const se={position:n,left:0,top:0};if(!F.floating)return se;const pe=v1(F.floating,h.x),be=v1(F.floating,h.y);return o?{...se,transform:"translate("+pe+"px, "+be+"px)",...mU(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:pe,top:be}},[n,o,F.floating,h.x,h.y]);return T.useMemo(()=>({...h,update:z,refs:V,elements:F,floatingStyles:te}),[h,z,V,F,te])}const Dbe=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:r}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?dR({element:a.current,padding:r}).fn(n):{}:a?dR({element:a,padding:r}).fn(n):{}}}},jbe=(e,t)=>({...Pre(e),options:[e,t]}),Bbe=(e,t)=>({...Hre(e),options:[e,t]}),Pbe=(e,t)=>({...Dbe(e),options:[e,t]}),gU={...$g},Hbe=gU.useInsertionEffect,Lbe=Hbe||(e=>e());function Ube(e){const t=T.useRef(()=>{});return Lbe(()=>{t.current=e}),T.useCallback(function(){for(var n=arguments.length,a=new Array(n),r=0;r"floating-ui-"+Math.random().toString(36).slice(2,6)+kbe++;function Fbe(){const[e,t]=T.useState(()=>T1?A1():void 0);return uE(()=>{e==null&&t(A1())},[]),T.useEffect(()=>{T1=!0},[]),e}const Ybe=gU.useId,bU=Ybe||Fbe,zbe=T.forwardRef(function(t,n){const{context:{placement:a,elements:{floating:r},middlewareData:{arrow:i,shift:l}},width:o=14,height:c=7,tipRadius:d=0,strokeWidth:h=0,staticOffset:f,stroke:m,d:g,style:{transform:b,...E}={},...S}=t,I=bU(),[O,v]=T.useState(!1);if(uE(()=>{if(!r)return;oi(r).direction==="rtl"&&v(!0)},[r]),!r)return null;const[w,D]=a.split("-"),C=w==="top"||w==="bottom";let M=f;(C&&l!=null&&l.x||!C&&l!=null&&l.y)&&(M=null);const B=h*2,L=B/2,H=o/2*(d/-8+1),U=c/2*d/4,W=!!g,z=M&&D==="end"?"bottom":"top";let $=M&&D==="end"?"right":"left";M&&O&&($=D==="end"?"left":"right");const V=(i==null?void 0:i.x)!=null?M||i.x:"",F=(i==null?void 0:i.y)!=null?M||i.y:"",te=g||"M0,0"+(" H"+o)+(" L"+(o-H)+","+(c-U))+(" Q"+o/2+","+c+" "+H+","+(c-U))+" Z",se={top:W?"rotate(180deg)":"",left:W?"rotate(90deg)":"rotate(-90deg)",bottom:W?"":"rotate(180deg)",right:W?"rotate(-90deg)":"rotate(90deg)"}[w];return T.createElement("svg",XO({},S,{"aria-hidden":!0,ref:n,width:W?o:o+B,height:o,viewBox:"0 0 "+o+" "+(c>o?c:o),style:{position:"absolute",pointerEvents:"none",[$]:V,[z]:F,[w]:C||W?"100%":"calc(100% - "+B/2+"px)",transform:[se,b].filter(pe=>!!pe).join(" "),...E}}),B>0&&T.createElement("path",{clipPath:"url(#"+I+")",fill:"none",stroke:m,strokeWidth:B+(g?0:1),d:te}),T.createElement("path",{stroke:B&&!g?S.fill:"none",d:te}),T.createElement("clipPath",{id:I},T.createElement("rect",{x:-L,y:L*(W?-1:1),width:o+B,height:o})))});function Gbe(){const e=new Map;return{emit(t,n){var a;(a=e.get(t))==null||a.forEach(r=>r(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var a;e.set(t,((a=e.get(t))==null?void 0:a.filter(r=>r!==n))||[])}}}const Wbe=T.createContext(null),qbe=T.createContext(null),Vbe=()=>{var e;return((e=T.useContext(Wbe))==null?void 0:e.id)||null},Kbe=()=>T.useContext(qbe);function Zbe(e){const{open:t=!1,onOpenChange:n,elements:a}=e,r=bU(),i=T.useRef({}),[l]=T.useState(()=>Gbe()),o=Vbe()!=null,[c,d]=T.useState(a.reference),h=Ube((g,b,E)=>{i.current.openEvent=g?b:void 0,l.emit("openchange",{open:g,event:b,reason:E,nested:o}),n==null||n(g,b,E)}),f=T.useMemo(()=>({setPositionReference:d}),[]),m=T.useMemo(()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference}),[c,a.reference,a.floating]);return T.useMemo(()=>({dataRef:i,open:t,onOpenChange:h,elements:m,events:l,floatingId:r,refs:f}),[t,h,m,l,r,f])}function Jbe(e){e===void 0&&(e={});const{nodeId:t}=e,n=Zbe({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||n,r=a.elements,[i,l]=T.useState(null),[o,c]=T.useState(null),h=(r==null?void 0:r.domReference)||i,f=T.useRef(null),m=Kbe();uE(()=>{h&&(f.current=h)},[h]);const g=Mbe({...e,elements:{...r,...o&&{reference:o}}}),b=T.useCallback(v=>{const w=nr(v)?{getBoundingClientRect:()=>v.getBoundingClientRect(),contextElement:v}:v;c(w),g.refs.setReference(w)},[g.refs]),E=T.useCallback(v=>{(nr(v)||v===null)&&(f.current=v,l(v)),(nr(g.refs.reference.current)||g.refs.reference.current===null||v!==null&&!nr(v))&&g.refs.setReference(v)},[g.refs]),S=T.useMemo(()=>({...g.refs,setReference:E,setPositionReference:b,domReference:f}),[g.refs,E,b]),I=T.useMemo(()=>({...g.elements,domReference:h}),[g.elements,h]),O=T.useMemo(()=>({...g,...a,refs:S,elements:I,nodeId:t}),[g,S,I,t,a]);return uE(()=>{a.dataRef.current.floatingContext=O;const v=m==null?void 0:m.nodesRef.current.find(w=>w.id===t);v&&(v.context=O)}),T.useMemo(()=>({...g,context:O,refs:S,elements:I}),[g,S,I,O])}function Qbe(e,t){let n=He(e);return isNaN(+n)?ln(e,NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=$a(n,t.month)),t.date!=null&&n.setDate(t.date),t.hours!=null&&n.setHours(t.hours),t.minutes!=null&&n.setMinutes(t.minutes),t.seconds!=null&&n.setSeconds(t.seconds),t.milliseconds!=null&&n.setMilliseconds(t.milliseconds),n)}function Ta(e,t,n){return t=dE(t),function(a,r){if(r&&(typeof r=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(a)}(e,EU()?Reflect.construct(t,n||[],dE(e).constructor):t.apply(e,n))}function EU(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EU=function(){return!!e})()}function y1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Fs(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,a=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.excludeDateIntervals,l=t.includeDates,o=t.includeDateIntervals,c=t.filterDate;return DN(e,{minDate:n,maxDate:a})||r&&r.some(function(d){return Sn(e,d.date?d.date:d)})||i&&i.some(function(d){var h=d.start,f=d.end;return Sp(e,{start:h,end:f})})||l&&!l.some(function(d){return Sn(e,d)})||o&&!o.some(function(d){var h=d.start,f=d.end;return Sp(e,{start:h,end:f})})||c&&!c(In(e))||!1}function BT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,a=t.excludeDateIntervals;return a&&a.length>0?a.some(function(r){var i=r.start,l=r.end;return Sp(e,{start:i,end:l})}):n&&n.some(function(r){return Sn(e,r.date?r.date:r)})||!1}function SU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.includeDates,l=t.filterDate;return DN(e,{minDate:cU(n),maxDate:ege(a)})||r&&r.some(function(o){return xi(e,o)})||i&&!i.some(function(o){return xi(e,o)})||l&&!l(In(e))||!1}function OS(e,t,n,a){var r=vt(e),i=Fa(e),l=vt(t),o=Fa(t),c=vt(a);return r===l&&r===c?i<=n&&n<=o:r=n||cr:void 0}function $be(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.includeDates,l=t.filterDate;return DN(e,{minDate:n,maxDate:a})||r&&r.some(function(o){return hE(e,o)})||i&&!i.some(function(o){return hE(e,o)})||l&&!l(In(e))||!1}function vS(e,t,n){if(!Ep(t)||!Ep(n))return!1;var a=vt(t),r=vt(n);return a<=e&&r>=e}function IU(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.maxDate,r=t.excludeDates,i=t.includeDates,l=t.filterDate,o=new Date(e,0,1);return DN(o,{minDate:wT(n),maxDate:tge(a)})||r&&r.some(function(c){return $l(o,c)})||i&&!i.some(function(c){return $l(o,c)})||l&&!l(In(o))||!1}function TS(e,t,n,a){var r=vt(e),i=Xu(e),l=vt(t),o=Xu(t),c=vt(a);return r===l&&r===c?i<=n&&n<=o:r=n||cr:void 0}function DN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.maxDate;return n&&Np(e,n)<0||a&&Np(e,a)>0}function D1(e,t){return t.some(function(n){return rs(n)===rs(e)&&as(n)===as(e)})}function j1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,a=t.includeTimes,r=t.filterTime;return n&&D1(e,n)||a&&!D1(e,a)||r&&!r(e)||!1}function B1(e,t){var n=t.minTime,a=t.maxTime;if(!n||!a)throw new Error("Both minTime and maxTime props required");var r,i=In(),l=Zg(Kg(i,as(e)),rs(e)),o=Zg(Kg(i,as(n)),rs(n)),c=Zg(Kg(i,as(a)),rs(a));try{r=!Sp(l,{start:o,end:c})}catch{r=!1}return r}function P1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.includeDates,r=_d(e,1);return n&&sE(n,r)>0||a&&a.every(function(i){return sE(i,r)>0})||!1}function H1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,a=t.includeDates,r=wi(e,1);return n&&sE(r,n)>0||a&&a.every(function(i){return sE(r,i)>0})||!1}function L1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,a=t.includeDates,r=xp(e,1);return n&&lE(n,r)>0||a&&a.every(function(i){return lE(i,r)>0})||!1}function U1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,a=t.includeDates,r=Xd(e,1);return n&&lE(r,n)>0||a&&a.every(function(i){return lE(r,i)>0})||!1}function OU(e){var t=e.minDate,n=e.includeDates;if(n&&t){var a=n.filter(function(r){return Np(r,t)>=0});return x1(a)}return n?x1(n):t}function vU(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var a=n.filter(function(r){return Np(r,t)<=0});return S1(a)}return n?S1(n):t}function k1(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,a=0,r=e.length;a0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(a){var r=a.date,i=a.holidayName;if(Qc(r)){var l=Fn(r,"MM.dd.yyyy"),o=n.get(l)||{};if(!("className"in o)||o.className!==t||(c=o.holidayNames,d=[i],c.length!==d.length||!c.every(function(f,m){return f===d[m]}))){var c,d;o.className=t;var h=o.holidayNames;o.holidayNames=h?[].concat(_c(h),[i]):[i],n.set(l,o)}}}),n}function tEe(e,t,n,a,r){for(var i=r.length,l=[],o=0;o1&&arguments[1]!==void 0?arguments[1]:Lf,n=Math.ceil(vt(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function Y1(e){var t=e.getSeconds(),n=e.getMilliseconds();return He(e.getTime()-1e3*t-n)}function z1(e){if(!Qc(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function G1(e,t){if(!Qc(e)||!Qc(t))throw new Error("Invalid date received");var n=z1(e),a=z1(t);return Xc(n,a)}function nEe(e,t,n,a){for(var r=[],i=0;i<2*t+1;i++){var l=e+t-i,o=!0;n&&(o=vt(n)<=l),a&&o&&(o=vt(a)>=l),o&&r.push(l)}return r}var aEe=RN(function(e){function t(n){var a;Aa(this,t),G(q(a=Ta(this,t,[n])),"renderOptions",function(){var o=a.props.year,c=a.state.yearsList.map(function(f){return ee.createElement("div",{className:o===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:a.onChange.bind(q(a),f),"aria-selected":o===f?"true":void 0},o===f?ee.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",f)}),d=a.props.minDate?vt(a.props.minDate):null,h=a.props.maxDate?vt(a.props.maxDate):null;return h&&a.state.yearsList.find(function(f){return f===h})||c.unshift(ee.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:a.incrementYears},ee.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),d&&a.state.yearsList.find(function(f){return f===d})||c.push(ee.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:a.decrementYears},ee.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),c}),G(q(a),"onChange",function(o){a.props.onChange(o)}),G(q(a),"handleClickOutside",function(){a.props.onCancel()}),G(q(a),"shiftYears",function(o){var c=a.state.yearsList.map(function(d){return d+o});a.setState({yearsList:c})}),G(q(a),"incrementYears",function(){return a.shiftYears(1)}),G(q(a),"decrementYears",function(){return a.shiftYears(-1)});var r=n.yearDropdownItemNumber,i=n.scrollableYearDropdown,l=r||(i?10:5);return a.state={yearsList:nEe(a.props.year,l,a.props.minDate,a.props.maxDate)},a.dropdownRef=T.createRef(),a}return wa(t,ee.Component),ya(t,[{key:"componentDidMount",value:function(){var n=this.dropdownRef.current;if(n){var a=n.children?Array.from(n.children):null,r=a?a.find(function(i){return i.ariaSelected}):null;n.scrollTop=r?r.offsetTop+(r.clientHeight-n.clientHeight)/2:(n.scrollHeight-n.clientHeight)/2}}},{key:"render",value:function(){var n=Ae({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return ee.createElement("div",{className:n,ref:this.dropdownRef},this.renderOptions())}}]),t}()),rEe=function(e){function t(){var n;Aa(this,t);for(var a=arguments.length,r=new Array(a),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},c=!1;n.getTabIndex()===0&&!o.isInputFocused&&n.isSameDay(n.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(c=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(c=!0),n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()&&(c=!1),n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()&&(c=!1)),c&&((l=n.dayEl.current)===null||l===void 0||l.focus({preventScroll:!0}))}),G(q(n),"renderDayContents",function(){return n.props.monthShowsDuplicateDaysEnd&&n.isAfterMonth()||n.props.monthShowsDuplicateDaysStart&&n.isBeforeMonth()?null:n.props.renderDayContents?n.props.renderDayContents(N1(n.props.day),n.props.day):N1(n.props.day)}),G(q(n),"render",function(){return ee.createElement("div",{ref:n.dayEl,className:n.getClassNames(n.props.day),onKeyDown:n.handleOnKeyDown,onClick:n.handleClick,onMouseEnter:n.handleMouseEnter,tabIndex:n.getTabIndex(),"aria-label":n.getAriaLabel(),role:"option",title:n.getTitle(),"aria-disabled":n.isDisabled(),"aria-current":n.isCurrentDay()?"date":void 0,"aria-selected":n.isSelected()||n.isInRange()},n.renderDayContents(),n.getTitle()!==""&&ee.createElement("span",{className:"overlay"},n.getTitle()))}),n}return wa(t,ee.Component),ya(t,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(n){this.handleFocusDay(n)}}]),t}(),dEe=function(e){function t(){var n;Aa(this,t);for(var a=arguments.length,r=new Array(a),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=!1;n.getTabIndex()===0&&!l.isInputFocused&&Sn(n.props.date,n.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(o=!0),n.props.inline&&!n.props.shouldFocusDayInline&&(o=!1),n.props.containerRef&&n.props.containerRef.current&&n.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(o=!0)),o&&n.weekNumberEl.current&&n.weekNumberEl.current.focus({preventScroll:!0})}),n}return wa(t,ee.Component),ya(t,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(n){this.handleFocusWeekNumber(n)}},{key:"render",value:function(){var n=this.props,a=n.weekNumber,r=n.ariaLabelPrefix,i=r===void 0?"week ":r,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!n.onClick,"react-datepicker__week-number--selected":Sn(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return ee.createElement("div",{ref:this.weekNumberEl,className:Ae(l),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},a)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),t}(),hEe=function(e){function t(){var n;Aa(this,t);for(var a=arguments.length,r=new Array(a),i=0;i=6,m=!o&&!n.isWeekInMonth(h);if(f||m){if(!n.props.peekNextMonth)break;d=!0}}return l}),G(q(n),"onMonthClick",function(l,o){n.handleDayClick(fo($a(n.props.day,o)),l)}),G(q(n),"onMonthMouseEnter",function(l){n.handleDayMouseEnter(fo($a(n.props.day,l)))}),G(q(n),"handleMonthNavigation",function(l,o){n.isDisabled(o)||n.isExcluded(o)||(n.props.setPreSelection(o),n.MONTH_REFS[l].current&&n.MONTH_REFS[l].current.focus())}),G(q(n),"onMonthKeyDown",function(l,o){var c=n.props,d=c.selected,h=c.preSelection,f=c.disabledKeyboardNavigation,m=c.showTwoColumnMonthYearPicker,g=c.showFourColumnMonthYearPicker,b=c.setPreSelection,E=l.key;if(E!=="Tab"&&l.preventDefault(),!f){var S=W1(g,m),I=AS[S].verticalNavigationOffset,O=AS[S].grid;switch(E){case"Enter":n.onMonthClick(l,o),b(d);break;case"ArrowRight":n.handleMonthNavigation(o===11?0:o+1,wi(h,1));break;case"ArrowLeft":n.handleMonthNavigation(o===0?11:o-1,_d(h,1));break;case"ArrowUp":n.handleMonthNavigation(O[0].includes(o)?o+12-I:o-I,_d(h,I));break;case"ArrowDown":n.handleMonthNavigation(O[O.length-1].includes(o)?o-12+I:o+I,wi(h,I))}}}),G(q(n),"onQuarterClick",function(l,o){n.handleDayClick(R1(Mu(n.props.day,o)),l)}),G(q(n),"onQuarterMouseEnter",function(l){n.handleDayMouseEnter(R1(Mu(n.props.day,l)))}),G(q(n),"handleQuarterNavigation",function(l,o){n.isDisabled(o)||n.isExcluded(o)||(n.props.setPreSelection(o),n.QUARTER_REFS[l-1].current&&n.QUARTER_REFS[l-1].current.focus())}),G(q(n),"onQuarterKeyDown",function(l,o){var c=l.key;if(!n.props.disabledKeyboardNavigation)switch(c){case"Enter":n.onQuarterClick(l,o),n.props.setPreSelection(n.props.selected);break;case"ArrowRight":n.handleQuarterNavigation(o===4?1:o+1,oU(n.props.preSelection,1));break;case"ArrowLeft":n.handleQuarterNavigation(o===1?4:o-1,Jme(n.props.preSelection,1))}}),G(q(n),"getMonthClassNames",function(l){var o=n.props,c=o.day,d=o.startDate,h=o.endDate,f=o.selected,m=o.minDate,g=o.maxDate,b=o.preSelection,E=o.monthClassName,S=o.excludeDates,I=o.includeDates,O=E?E($a(c,l)):void 0,v=$a(c,l);return Ae("react-datepicker__month-text","react-datepicker__month-".concat(l),O,{"react-datepicker__month-text--disabled":(m||g||S||I)&&SU(v,n.props),"react-datepicker__month-text--selected":n.isSelectedMonth(c,l,f),"react-datepicker__month-text--keyboard-selected":!n.props.disabledKeyboardNavigation&&Fa(b)===l,"react-datepicker__month-text--in-selecting-range":n.isInSelectingRangeMonth(l),"react-datepicker__month-text--in-range":OS(d,h,l,c),"react-datepicker__month-text--range-start":n.isRangeStartMonth(l),"react-datepicker__month-text--range-end":n.isRangeEndMonth(l),"react-datepicker__month-text--selecting-range-start":n.isSelectingMonthRangeStart(l),"react-datepicker__month-text--selecting-range-end":n.isSelectingMonthRangeEnd(l),"react-datepicker__month-text--today":n.isCurrentMonth(c,l)})}),G(q(n),"getTabIndex",function(l){var o=Fa(n.props.preSelection);return n.props.disabledKeyboardNavigation||l!==o?"-1":"0"}),G(q(n),"getQuarterTabIndex",function(l){var o=Xu(n.props.preSelection);return n.props.disabledKeyboardNavigation||l!==o?"-1":"0"}),G(q(n),"getAriaLabel",function(l){var o=n.props,c=o.chooseDayAriaLabelPrefix,d=c===void 0?"Choose":c,h=o.disabledDayAriaLabelPrefix,f=h===void 0?"Not available":h,m=o.day,g=$a(m,l),b=n.isDisabled(g)||n.isExcluded(g)?f:d;return"".concat(b," ").concat(Fn(g,"MMMM yyyy"))}),G(q(n),"getQuarterClassNames",function(l){var o=n.props,c=o.day,d=o.startDate,h=o.endDate,f=o.selected,m=o.minDate,g=o.maxDate,b=o.preSelection,E=o.disabledKeyboardNavigation;return Ae("react-datepicker__quarter-text","react-datepicker__quarter-".concat(l),{"react-datepicker__quarter-text--disabled":(m||g)&&$be(Mu(c,l),n.props),"react-datepicker__quarter-text--selected":n.isSelectedQuarter(c,l,f),"react-datepicker__quarter-text--keyboard-selected":!E&&Xu(b)===l,"react-datepicker__quarter-text--in-selecting-range":n.isInSelectingRangeQuarter(l),"react-datepicker__quarter-text--in-range":TS(d,h,l,c),"react-datepicker__quarter-text--range-start":n.isRangeStartQuarter(l),"react-datepicker__quarter-text--range-end":n.isRangeEndQuarter(l)})}),G(q(n),"getMonthContent",function(l){var o=n.props,c=o.showFullMonthYearPicker,d=o.renderMonthContent,h=o.locale,f=o.day,m=xU(l,h),g=jT(l,h);return d?d(l,m,g,f):c?g:m}),G(q(n),"getQuarterContent",function(l){var o=n.props,c=o.renderQuarterContent,d=function(h,f){return Fn(Mu(In(),h),"QQQ",f)}(l,o.locale);return c?c(l,d):d}),G(q(n),"renderMonths",function(){var l=n.props,o=l.showTwoColumnMonthYearPicker,c=l.showFourColumnMonthYearPicker,d=l.day,h=l.selected;return AS[W1(c,o)].grid.map(function(f,m){return ee.createElement("div",{className:"react-datepicker__month-wrapper",key:m},f.map(function(g,b){return ee.createElement("div",{ref:n.MONTH_REFS[g],key:b,onClick:function(E){n.onMonthClick(E,g)},onKeyDown:function(E){n.onMonthKeyDown(E,g)},onMouseEnter:function(){return n.onMonthMouseEnter(g)},tabIndex:n.getTabIndex(g),className:n.getMonthClassNames(g),role:"option","aria-label":n.getAriaLabel(g),"aria-current":n.isCurrentMonth(d,g)?"date":void 0,"aria-selected":n.isSelectedMonth(d,g,h)},n.getMonthContent(g))}))})}),G(q(n),"renderQuarters",function(){var l=n.props,o=l.day,c=l.selected;return ee.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(d,h){return ee.createElement("div",{key:h,ref:n.QUARTER_REFS[h],role:"option",onClick:function(f){n.onQuarterClick(f,d)},onKeyDown:function(f){n.onQuarterKeyDown(f,d)},onMouseEnter:function(){return n.onQuarterMouseEnter(d)},className:n.getQuarterClassNames(d),"aria-selected":n.isSelectedQuarter(o,d,c),tabIndex:n.getQuarterTabIndex(d),"aria-current":n.isCurrentQuarter(o,d)?"date":void 0},n.getQuarterContent(d))}))}),G(q(n),"getClassNames",function(){var l=n.props,o=l.selectingDate,c=l.selectsStart,d=l.selectsEnd,h=l.showMonthYearPicker,f=l.showQuarterYearPicker,m=l.showWeekPicker;return Ae("react-datepicker__month",{"react-datepicker__month--selecting-range":o&&(c||d)},{"react-datepicker__monthPicker":h},{"react-datepicker__quarterPicker":f},{"react-datepicker__weekPicker":m})}),n}return wa(t,ee.Component),ya(t,[{key:"render",value:function(){var n=this.props,a=n.showMonthYearPicker,r=n.showQuarterYearPicker,i=n.day,l=n.ariaLabelPrefix,o=l===void 0?"month ":l;return ee.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(o," ").concat(Fn(i,"yyyy-MM")),role:"listbox"},a?this.renderMonths():r?this.renderQuarters():this.renderWeeks())}}]),t}(),wU=function(e){function t(){var n;Aa(this,t);for(var a=arguments.length,r=new Array(a),i=0;i0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return bEe.some(function(l){return i.indexOf(l)>=0})})(r.target)&&a.props.onDropdownFocus()}),G(q(a),"getDateInView",function(){var r=a.props,i=r.preSelection,l=r.selected,o=r.openToDate,c=OU(a.props),d=vU(a.props),h=In(),f=o||l||i;return f||(c&&Xc(h,c)?c:d&&So(h,d)?d:h)}),G(q(a),"increaseMonth",function(){a.setState(function(r){var i=r.date;return{date:wi(i,1)}},function(){return a.handleMonthChange(a.state.date)})}),G(q(a),"decreaseMonth",function(){a.setState(function(r){var i=r.date;return{date:_d(i,1)}},function(){return a.handleMonthChange(a.state.date)})}),G(q(a),"handleDayClick",function(r,i,l){a.props.onSelect(r,i,l),a.props.setPreSelection&&a.props.setPreSelection(r)}),G(q(a),"handleDayMouseEnter",function(r){a.setState({selectingDate:r}),a.props.onDayMouseEnter&&a.props.onDayMouseEnter(r)}),G(q(a),"handleMonthMouseLeave",function(){a.setState({selectingDate:null}),a.props.onMonthMouseLeave&&a.props.onMonthMouseLeave()}),G(q(a),"handleYearMouseEnter",function(r,i){a.setState({selectingDate:Ls(In(),i)}),a.props.onYearMouseEnter&&a.props.onYearMouseEnter(r,i)}),G(q(a),"handleYearMouseLeave",function(r,i){a.props.onYearMouseLeave&&a.props.onYearMouseLeave(r,i)}),G(q(a),"handleYearChange",function(r){a.props.onYearChange&&(a.props.onYearChange(r),a.setState({isRenderAriaLiveMessage:!0})),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(r),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(r)}),G(q(a),"handleMonthChange",function(r){a.handleCustomMonthChange(r),a.props.adjustDateOnChange&&(a.props.onSelect&&a.props.onSelect(r),a.props.setOpen&&a.props.setOpen(!0)),a.props.setPreSelection&&a.props.setPreSelection(r)}),G(q(a),"handleCustomMonthChange",function(r){a.props.onMonthChange&&(a.props.onMonthChange(r),a.setState({isRenderAriaLiveMessage:!0}))}),G(q(a),"handleMonthYearChange",function(r){a.handleYearChange(r),a.handleMonthChange(r)}),G(q(a),"changeYear",function(r){a.setState(function(i){var l=i.date;return{date:Ls(l,r)}},function(){return a.handleYearChange(a.state.date)})}),G(q(a),"changeMonth",function(r){a.setState(function(i){var l=i.date;return{date:$a(l,r)}},function(){return a.handleMonthChange(a.state.date)})}),G(q(a),"changeMonthYear",function(r){a.setState(function(i){var l=i.date;return{date:Ls($a(l,Fa(r)),vt(r))}},function(){return a.handleMonthYearChange(a.state.date)})}),G(q(a),"header",function(){var r=Oi(arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.state.date,a.props.locale,a.props.calendarStartDay),i=[];return a.props.showWeekNumbers&&i.push(ee.createElement("div",{key:"W",className:"react-datepicker__day-name"},a.props.weekLabel||"#")),i.concat([0,1,2,3,4,5,6].map(function(l){var o=Ro(r,l),c=a.formatWeekday(o,a.props.locale),d=a.props.weekDayClassName?a.props.weekDayClassName(o):void 0;return ee.createElement("div",{key:l,className:Ae("react-datepicker__day-name",d)},c)}))}),G(q(a),"formatWeekday",function(r,i){return a.props.formatWeekDay?function(l,o,c){return o(Fn(l,"EEEE",c))}(r,a.props.formatWeekDay,i):a.props.useWeekdaysShort?function(l,o){return Fn(l,"EEE",o)}(r,i):function(l,o){return Fn(l,"EEEEEE",o)}(r,i)}),G(q(a),"decreaseYear",function(){a.setState(function(r){var i=r.date;return{date:xp(i,a.props.showYearPicker?a.props.yearItemNumber:1)}},function(){return a.handleYearChange(a.state.date)})}),G(q(a),"clearSelectingDate",function(){a.setState({selectingDate:null})}),G(q(a),"renderPreviousButton",function(){if(!a.props.renderCustomHeader){var r;switch(!0){case a.props.showMonthYearPicker:r=L1(a.state.date,a.props);break;case a.props.showYearPicker:r=function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=I.minDate,v=I.yearItemNumber,w=v===void 0?Lf:v,D=_u(bf(xp(S,w)),w).endPeriod,C=O&&vt(O);return C&&C>D||!1}(a.state.date,a.props);break;default:r=P1(a.state.date,a.props)}if((a.props.forceShowMonthNavigation||a.props.showDisabledMonthNavigation||!r)&&!a.props.showTimeSelectOnly){var i=["react-datepicker__navigation","react-datepicker__navigation--previous"],l=a.decreaseMonth;(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker)&&(l=a.decreaseYear),r&&a.props.showDisabledMonthNavigation&&(i.push("react-datepicker__navigation--previous--disabled"),l=null);var o=a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker,c=a.props,d=c.previousMonthButtonLabel,h=c.previousYearButtonLabel,f=a.props,m=f.previousMonthAriaLabel,g=m===void 0?typeof d=="string"?d:"Previous Month":m,b=f.previousYearAriaLabel,E=b===void 0?typeof h=="string"?h:"Previous Year":b;return ee.createElement("button",{type:"button",className:i.join(" "),onClick:l,onKeyDown:a.props.handleOnKeyDown,"aria-label":o?E:g},ee.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?a.props.previousYearButtonLabel:a.props.previousMonthButtonLabel))}}}),G(q(a),"increaseYear",function(){a.setState(function(r){var i=r.date;return{date:Xd(i,a.props.showYearPicker?a.props.yearItemNumber:1)}},function(){return a.handleYearChange(a.state.date)})}),G(q(a),"renderNextButton",function(){if(!a.props.renderCustomHeader){var r;switch(!0){case a.props.showMonthYearPicker:r=U1(a.state.date,a.props);break;case a.props.showYearPicker:r=function(S){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=I.maxDate,v=I.yearItemNumber,w=v===void 0?Lf:v,D=_u(Xd(S,w),w).startPeriod,C=O&&vt(O);return C&&C0&&arguments[0]!==void 0?arguments[0]:a.state.date,i=["react-datepicker__current-month"];return a.props.showYearDropdown&&i.push("react-datepicker__current-month--hasYearDropdown"),a.props.showMonthDropdown&&i.push("react-datepicker__current-month--hasMonthDropdown"),a.props.showMonthYearDropdown&&i.push("react-datepicker__current-month--hasMonthYearDropdown"),ee.createElement("div",{className:i.join(" ")},Fn(r,a.props.dateFormat,a.props.locale))}),G(q(a),"renderYearDropdown",function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(a.props.showYearDropdown&&!r)return ee.createElement(rEe,{adjustDateOnChange:a.props.adjustDateOnChange,date:a.state.date,onSelect:a.props.onSelect,setOpen:a.props.setOpen,dropdownMode:a.props.dropdownMode,onChange:a.changeYear,minDate:a.props.minDate,maxDate:a.props.maxDate,year:vt(a.state.date),scrollableYearDropdown:a.props.scrollableYearDropdown,yearDropdownItemNumber:a.props.yearDropdownItemNumber})}),G(q(a),"renderMonthDropdown",function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(a.props.showMonthDropdown&&!r)return ee.createElement(sEe,{dropdownMode:a.props.dropdownMode,locale:a.props.locale,onChange:a.changeMonth,month:Fa(a.state.date),useShortMonthInDropdown:a.props.useShortMonthInDropdown})}),G(q(a),"renderMonthYearDropdown",function(){var r=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(a.props.showMonthYearDropdown&&!r)return ee.createElement(cEe,{dropdownMode:a.props.dropdownMode,locale:a.props.locale,dateFormat:a.props.dateFormat,onChange:a.changeMonthYear,minDate:a.props.minDate,maxDate:a.props.maxDate,date:a.state.date,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown})}),G(q(a),"handleTodayButtonClick",function(r){a.props.onSelect(M1(),r),a.props.setPreSelection&&a.props.setPreSelection(M1())}),G(q(a),"renderTodayButton",function(){if(a.props.todayButton&&!a.props.showTimeSelectOnly)return ee.createElement("div",{className:"react-datepicker__today-button",onClick:function(r){return a.handleTodayButtonClick(r)}},a.props.todayButton)}),G(q(a),"renderDefaultHeader",function(r){var i=r.monthDate,l=r.i;return ee.createElement("div",{className:"react-datepicker__header ".concat(a.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},a.renderCurrentMonth(i),ee.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(a.props.dropdownMode),onFocus:a.handleDropdownFocus},a.renderMonthDropdown(l!==0),a.renderMonthYearDropdown(l!==0),a.renderYearDropdown(l!==0)),ee.createElement("div",{className:"react-datepicker__day-names"},a.header(i)))}),G(q(a),"renderCustomHeader",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.monthDate,l=r.i;if(a.props.showTimeSelect&&!a.state.monthContainer||a.props.showTimeSelectOnly)return null;var o=P1(a.state.date,a.props),c=H1(a.state.date,a.props),d=L1(a.state.date,a.props),h=U1(a.state.date,a.props),f=!a.props.showMonthYearPicker&&!a.props.showQuarterYearPicker&&!a.props.showYearPicker;return ee.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:a.props.onDropdownFocus},a.props.renderCustomHeader(Fs(Fs({},a.state),{},{customHeaderCount:l,monthDate:i,changeMonth:a.changeMonth,changeYear:a.changeYear,decreaseMonth:a.decreaseMonth,increaseMonth:a.increaseMonth,decreaseYear:a.decreaseYear,increaseYear:a.increaseYear,prevMonthButtonDisabled:o,nextMonthButtonDisabled:c,prevYearButtonDisabled:d,nextYearButtonDisabled:h})),f&&ee.createElement("div",{className:"react-datepicker__day-names"},a.header(i)))}),G(q(a),"renderYearHeader",function(){var r=a.state.date,i=a.props,l=i.showYearPicker,o=_u(r,i.yearItemNumber),c=o.startPeriod,d=o.endPeriod;return ee.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},l?"".concat(c," - ").concat(d):vt(r))}),G(q(a),"renderHeader",function(r){switch(!0){case a.props.renderCustomHeader!==void 0:return a.renderCustomHeader(r);case(a.props.showMonthYearPicker||a.props.showQuarterYearPicker||a.props.showYearPicker):return a.renderYearHeader(r);default:return a.renderDefaultHeader(r)}}),G(q(a),"renderMonths",function(){var r;if(!a.props.showTimeSelectOnly&&!a.props.showYearPicker){for(var i=[],l=a.props.showPreviousMonths?a.props.monthsShown-1:0,o=_d(a.state.date,l),c=(r=a.props.monthSelectedIn)!==null&&r!==void 0?r:l,d=0;d0;i.push(ee.createElement("div",{key:f,ref:function(b){a.monthContainer=b},className:"react-datepicker__month-container"},a.renderHeader({monthDate:h,i:d}),ee.createElement(fEe,{chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:a.props.weekAriaLabelPrefix,ariaLabelPrefix:a.props.monthAriaLabelPrefix,onChange:a.changeMonthYear,day:h,dayClassName:a.props.dayClassName,calendarStartDay:a.props.calendarStartDay,monthClassName:a.props.monthClassName,onDayClick:a.handleDayClick,handleOnKeyDown:a.props.handleOnDayKeyDown,onDayMouseEnter:a.handleDayMouseEnter,onMouseLeave:a.handleMonthMouseLeave,onWeekSelect:a.props.onWeekSelect,orderInDisplay:d,formatWeekNumber:a.props.formatWeekNumber,locale:a.props.locale,minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,highlightDates:a.props.highlightDates,holidays:a.props.holidays,selectingDate:a.state.selectingDate,includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,inline:a.props.inline,shouldFocusDayInline:a.props.shouldFocusDayInline,fixedHeight:a.props.fixedHeight,filterDate:a.props.filterDate,preSelection:a.props.preSelection,setPreSelection:a.props.setPreSelection,selected:a.props.selected,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showWeekNumbers:a.props.showWeekNumbers,startDate:a.props.startDate,endDate:a.props.endDate,peekNextMonth:a.props.peekNextMonth,setOpen:a.props.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,renderDayContents:a.props.renderDayContents,renderMonthContent:a.props.renderMonthContent,renderQuarterContent:a.props.renderQuarterContent,renderYearContent:a.props.renderYearContent,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,showMonthYearPicker:a.props.showMonthYearPicker,showFullMonthYearPicker:a.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:a.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:a.props.showFourColumnMonthYearPicker,showYearPicker:a.props.showYearPicker,showQuarterYearPicker:a.props.showQuarterYearPicker,showWeekPicker:a.props.showWeekPicker,isInputFocused:a.props.isInputFocused,containerRef:a.containerRef,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:g})))}return i}}),G(q(a),"renderYears",function(){if(!a.props.showTimeSelectOnly)return a.props.showYearPicker?ee.createElement("div",{className:"react-datepicker__year--container"},a.renderHeader(),ee.createElement(pEe,Ip({onDayClick:a.handleDayClick,selectingDate:a.state.selectingDate,clearSelectingDate:a.clearSelectingDate,date:a.state.date},a.props,{onYearMouseEnter:a.handleYearMouseEnter,onYearMouseLeave:a.handleYearMouseLeave}))):void 0}),G(q(a),"renderTimeSection",function(){if(a.props.showTimeSelect&&(a.state.monthContainer||a.props.showTimeSelectOnly))return ee.createElement(wU,{selected:a.props.selected,openToDate:a.props.openToDate,onChange:a.props.onTimeChange,timeClassName:a.props.timeClassName,format:a.props.timeFormat,includeTimes:a.props.includeTimes,intervals:a.props.timeIntervals,minTime:a.props.minTime,maxTime:a.props.maxTime,excludeTimes:a.props.excludeTimes,filterTime:a.props.filterTime,timeCaption:a.props.timeCaption,todayButton:a.props.todayButton,showMonthDropdown:a.props.showMonthDropdown,showMonthYearDropdown:a.props.showMonthYearDropdown,showYearDropdown:a.props.showYearDropdown,withPortal:a.props.withPortal,monthRef:a.state.monthContainer,injectTimes:a.props.injectTimes,locale:a.props.locale,handleOnKeyDown:a.props.handleOnKeyDown,showTimeSelectOnly:a.props.showTimeSelectOnly})}),G(q(a),"renderInputTimeSection",function(){var r=new Date(a.props.selected),i=Bl(r)&&a.props.selected?"".concat(F1(r.getHours()),":").concat(F1(r.getMinutes())):"";if(a.props.showTimeInput)return ee.createElement(mEe,{date:r,timeString:i,timeInputLabel:a.props.timeInputLabel,onChange:a.props.onTimeChange,customTimeInput:a.props.customTimeInput})}),G(q(a),"renderAriaLiveRegion",function(){var r,i=_u(a.state.date,a.props.yearItemNumber),l=i.startPeriod,o=i.endPeriod;return r=a.props.showYearPicker?"".concat(l," - ").concat(o):a.props.showMonthYearPicker||a.props.showQuarterYearPicker?vt(a.state.date):"".concat(jT(Fa(a.state.date),a.props.locale)," ").concat(vt(a.state.date)),ee.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},a.state.isRenderAriaLiveMessage&&r)}),G(q(a),"renderChildren",function(){if(a.props.children)return ee.createElement("div",{className:"react-datepicker__children-container"},a.props.children)}),a.containerRef=ee.createRef(),a.state={date:a.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},a}return wa(t,ee.Component),ya(t,[{key:"componentDidMount",value:function(){var n=this;this.props.showTimeSelect&&(this.assignMonthContainer=void n.setState({monthContainer:n.monthContainer}))}},{key:"componentDidUpdate",value:function(n){var a=this;if(!this.props.preSelection||Sn(this.props.preSelection,n.preSelection)&&this.props.monthSelectedIn===n.monthSelectedIn)this.props.openToDate&&!Sn(this.props.openToDate,n.openToDate)&&this.setState({date:this.props.openToDate});else{var r=!xi(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return r&&a.handleCustomMonthChange(a.state.date)})}}},{key:"render",value:function(){var n=this.props.container||gEe;return ee.createElement("div",{style:{display:"contents"},ref:this.containerRef},ee.createElement(n,{className:Ae("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly})},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:Lf}}}]),t}(),NEe=function(e){var t=e.icon,n=e.className,a=n===void 0?"":n,r=e.onClick,i="react-datepicker__calendar-icon";return ee.isValidElement(t)?ee.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(a),onClick:function(l){typeof t.props.onClick=="function"&&t.props.onClick(l),typeof r=="function"&&r(l)}}):typeof t=="string"?ee.createElement("i",{className:"".concat(i," ").concat(t," ").concat(a),"aria-hidden":"true",onClick:r}):ee.createElement("svg",{className:"".concat(i," ").concat(a),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:r},ee.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},CU=function(e){function t(n){var a;return Aa(this,t),(a=Ta(this,t,[n])).el=document.createElement("div"),a}return wa(t,ee.Component),ya(t,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return EE.createPortal(this.props.children,this.el)}}]),t}(),xEe=function(e){return!e.disabled&&e.tabIndex!==-1},RU=function(e){function t(n){var a;return Aa(this,t),G(q(a=Ta(this,t,[n])),"getTabChildren",function(){return Array.prototype.slice.call(a.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(xEe)}),G(q(a),"handleFocusStart",function(){var r=a.getTabChildren();r&&r.length>1&&r[r.length-1].focus()}),G(q(a),"handleFocusEnd",function(){var r=a.getTabChildren();r&&r.length>1&&r[0].focus()}),a.tabLoopRef=ee.createRef(),a}return wa(t,ee.Component),ya(t,[{key:"render",value:function(){return this.props.enableTabLoop?ee.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},ee.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,ee.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),t}(),q1,SEe=(q1=function(e){function t(){return Aa(this,t),Ta(this,t,arguments)}return wa(t,ee.Component),ya(t,[{key:"render",value:function(){var n,a=this.props,r=a.className,i=a.wrapperClassName,l=a.hidePopper,o=a.popperComponent,c=a.targetComponent,d=a.enableTabLoop,h=a.popperOnKeyDown,f=a.portalId,m=a.portalHost,g=a.popperProps,b=a.showArrow;if(!l){var E=Ae("react-datepicker-popper",r);n=ee.createElement(RU,{enableTabLoop:d},ee.createElement("div",{ref:g.refs.setFloating,style:g.floatingStyles,className:E,"data-placement":g.placement,onKeyDown:h},o,b&&ee.createElement(zbe,{ref:g.arrowRef,context:g.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(n=ee.createElement(this.props.popperContainer,{},n)),f&&!l&&(n=ee.createElement(CU,{portalId:f,portalHost:m},n));var S=Ae("react-datepicker-wrapper",i);return ee.createElement(ee.Fragment,null,ee.createElement("div",{ref:g.refs.setReference,className:S},c),n)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0}}}]),t}(),function(e){var t=Fs(Fs({},e),{},{popperModifiers:e.popperModifiers||[],popperProps:e.popperProps||{},hidePopper:typeof e.hidePopper!="boolean"||e.hidePopper}),n=ee.useRef(),a=Jbe(Fs({open:!t.hidePopper,whileElementsMounted:UH,placement:t.popperPlacement,middleware:[Bbe({padding:15}),jbe(10),Pbe({element:n})].concat(_c(t.popperModifiers))},t.popperProps));return ee.createElement(q1,Ip({},t,{popperProps:Fs(Fs({},a),{},{arrowRef:n})}))}),V1="react-datepicker-ignore-onclickoutside",IEe=RN(EEe),yS="Date input not valid.",OEe=function(e){function t(n){var a;return Aa(this,t),G(q(a=Ta(this,t,[n])),"getPreSelection",function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:In()}),G(q(a),"modifyHolidays",function(){var r;return(r=a.props.holidays)===null||r===void 0?void 0:r.reduce(function(i,l){var o=new Date(l.date);return Ep(o)?[].concat(_c(i),[Fs(Fs({},l),{},{date:o})]):i},[])}),G(q(a),"calcInitialState",function(){var r,i=a.getPreSelection(),l=OU(a.props),o=vU(a.props),c=l&&Xc(i,ns(l))?l:o&&So(i,ZO(o))?o:i;return{open:a.props.startOpen||!1,preventFocus:!1,preSelection:(r=a.props.selectsRange?a.props.startDate:a.props.selected)!==null&&r!==void 0?r:c,highlightDates:k1(a.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),G(q(a),"clearPreventFocusTimeout",function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)}),G(q(a),"setFocus",function(){a.input&&a.input.focus&&a.input.focus({preventScroll:!0})}),G(q(a),"setBlur",function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()}),G(q(a),"setOpen",function(r){var i=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.setState({open:r,preSelection:r&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:wS},function(){r||a.setState(function(l){return{focused:!!i&&l.focused}},function(){!i&&a.setBlur(),a.setState({inputValue:null})})})}),G(q(a),"inputOk",function(){return Qc(a.state.preSelection)}),G(q(a),"isCalendarOpen",function(){return a.props.open===void 0?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open}),G(q(a),"handleFocus",function(r){a.state.preventFocus||(a.props.onFocus(r),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})}),G(q(a),"sendFocusBackToInput",function(){a.preventFocusTimeout&&a.clearPreventFocusTimeout(),a.setState({preventFocus:!0},function(){a.preventFocusTimeout=setTimeout(function(){a.setFocus(),a.setState({preventFocus:!1})})})}),G(q(a),"cancelFocusInput",function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=null}),G(q(a),"deferFocusInput",function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout(function(){return a.setFocus()},1)}),G(q(a),"handleDropdownFocus",function(){a.cancelFocusInput()}),G(q(a),"handleBlur",function(r){(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&a.props.onBlur(r),a.setState({focused:!1})}),G(q(a),"handleCalendarClickOutside",function(r){a.props.inline||a.setOpen(!1),a.props.onClickOutside(r),a.props.withPortal&&r.preventDefault()}),G(q(a),"handleChange",function(){for(var r=arguments.length,i=new Array(r),l=0;l0&&(g=ES(c,d.slice(0,c.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Bl(g)||(g=new Date(c))),Bl(g)&&E?g:null));a.props.showTimeSelectOnly&&a.props.selected&&S&&!Sn(S,a.props.selected)&&(S=Qbe(a.props.selected,{hours:rs(S),minutes:as(S),seconds:E1(S)})),!S&&o.target.value||(a.props.showWeekPicker&&(S=Oi(S,a.props.locale,a.props.calendarStartDay)),a.setSelected(S,o,!0))}}),G(q(a),"handleSelect",function(r,i,l){if(a.props.shouldCloseOnSelect&&!a.props.showTimeSelect&&a.sendFocusBackToInput(),a.props.onChangeRaw&&a.props.onChangeRaw(i),a.props.showWeekPicker&&(r=Oi(r,a.props.locale,a.props.calendarStartDay)),a.setSelected(r,i,!1,l),a.props.showDateSelect&&a.setState({isRenderAriaLiveMessage:!0}),!a.props.shouldCloseOnSelect||a.props.showTimeSelect)a.setPreSelection(r);else if(!a.props.inline){a.props.selectsRange||a.setOpen(!1);var o=a.props,c=o.startDate,d=o.endDate;!c||d||G1(r,c)||a.setOpen(!1)}}),G(q(a),"setSelected",function(r,i,l,o){var c=r;if(a.props.showYearPicker){if(c!==null&&IU(vt(c),a.props))return}else if(a.props.showMonthYearPicker){if(c!==null&&SU(c,a.props))return}else if(c!==null&&MN(c,a.props))return;var d=a.props,h=d.onChange,f=d.selectsRange,m=d.startDate,g=d.endDate;if(!Sc(a.props.selected,c)||a.props.allowSameDay||f)if(c!==null&&(!a.props.selected||l&&(a.props.showTimeSelect||a.props.showTimeSelectOnly||a.props.showTimeInput)||(c=C1(c,{hour:rs(a.props.selected),minute:as(a.props.selected),second:E1(a.props.selected)})),a.props.inline||a.setState({preSelection:c}),a.props.focusSelectedMonth||a.setState({monthSelectedIn:o})),f){var b=m&&!g,E=m&&g;!m&&!g?h([c,null],i):b&&(G1(c,m)?h([c,null],i):h([m,c],i)),E&&h([c,null],i)}else h(c,i);l||(a.props.onSelect(c,i),a.setState({inputValue:null}))}),G(q(a),"setPreSelection",function(r){var i=a.props.minDate!==void 0,l=a.props.maxDate!==void 0,o=!0;if(r){a.props.showWeekPicker&&(r=Oi(r,a.props.locale,a.props.calendarStartDay));var c=ns(r);if(i&&l)o=Qg(r,a.props.minDate,a.props.maxDate);else if(i){var d=ns(a.props.minDate);o=So(r,d)||Sc(c,d)}else if(l){var h=ZO(a.props.maxDate);o=Xc(r,h)||Sc(c,h)}}o&&a.setState({preSelection:r})}),G(q(a),"toggleCalendar",function(){a.setOpen(!a.state.open)}),G(q(a),"handleTimeChange",function(r){var i=a.props.selected?a.props.selected:a.getPreSelection(),l=a.props.selected?r:C1(i,{hour:rs(r),minute:as(r)});a.setState({preSelection:l}),a.props.onChange(l),a.props.shouldCloseOnSelect&&(a.sendFocusBackToInput(),a.setOpen(!1)),a.props.showTimeInput&&a.setOpen(!0),(a.props.showTimeSelectOnly||a.props.showTimeSelect)&&a.setState({isRenderAriaLiveMessage:!0}),a.setState({inputValue:null})}),G(q(a),"onInputClick",function(){a.props.disabled||a.props.readOnly||a.setOpen(!0),a.props.onInputClick()}),G(q(a),"onInputKeyDown",function(r){a.props.onKeyDown(r);var i=r.key;if(a.state.open||a.props.inline||a.props.preventOpenOnFocus){if(a.state.open){if(i==="ArrowDown"||i==="ArrowUp"){r.preventDefault();var l=a.props.showWeekPicker&&a.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',o=a.calendar.componentNode&&a.calendar.componentNode.querySelector(l);return void(o&&o.focus({preventScroll:!0}))}var c=In(a.state.preSelection);i==="Enter"?(r.preventDefault(),a.inputOk()&&a.state.lastPreSelectChange===wS?(a.handleSelect(c,r),!a.props.shouldCloseOnSelect&&a.setPreSelection(c)):a.setOpen(!1)):i==="Escape"?(r.preventDefault(),a.sendFocusBackToInput(),a.setOpen(!1)):i==="Tab"&&a.setOpen(!1),a.inputOk()||a.props.onInputError({code:1,msg:yS})}}else i!=="ArrowDown"&&i!=="ArrowUp"&&i!=="Enter"||a.onInputClick()}),G(q(a),"onPortalKeyDown",function(r){r.key==="Escape"&&(r.preventDefault(),a.setState({preventFocus:!0},function(){a.setOpen(!1),setTimeout(function(){a.setFocus(),a.setState({preventFocus:!1})})}))}),G(q(a),"onDayKeyDown",function(r){a.props.onKeyDown(r);var i=r.key,l=r.shiftKey,o=In(a.state.preSelection);if(i==="Enter")r.preventDefault(),a.handleSelect(o,r),!a.props.shouldCloseOnSelect&&a.setPreSelection(o);else if(i==="Escape")r.preventDefault(),a.setOpen(!1),a.inputOk()||a.props.onInputError({code:1,msg:yS});else if(!a.props.disabledKeyboardNavigation){var c;switch(i){case"ArrowLeft":c=a.props.showWeekPicker?b1(o,1):Zme(o,1);break;case"ArrowRight":c=a.props.showWeekPicker?iE(o,1):Ro(o,1);break;case"ArrowUp":c=b1(o,1);break;case"ArrowDown":c=iE(o,1);break;case"PageUp":c=l?xp(o,1):_d(o,1);break;case"PageDown":c=l?Xd(o,1):wi(o,1);break;case"Home":c=Oi(o,a.props.locale,a.props.calendarStartDay);break;case"End":c=$me(o);break;default:c=null}if(!c)return void(a.props.onInputError&&a.props.onInputError({code:1,msg:yS}));if(r.preventDefault(),a.setState({lastPreSelectChange:wS}),a.props.adjustDateOnChange&&a.setSelected(c),a.setPreSelection(c),a.props.inline){var d=Fa(o),h=Fa(c),f=vt(o),m=vt(c);d!==h||f!==m?a.setState({shouldFocusDayInline:!0}):a.setState({shouldFocusDayInline:!1})}}}),G(q(a),"onPopperKeyDown",function(r){r.key==="Escape"&&(r.preventDefault(),a.sendFocusBackToInput())}),G(q(a),"onClearClick",function(r){r&&r.preventDefault&&r.preventDefault(),a.sendFocusBackToInput(),a.props.selectsRange?a.props.onChange([null,null],r):a.props.onChange(null,r),a.setState({inputValue:null})}),G(q(a),"clear",function(){a.onClearClick()}),G(q(a),"onScroll",function(r){typeof a.props.closeOnScroll=="boolean"&&a.props.closeOnScroll?r.target!==document&&r.target!==document.documentElement&&r.target!==document.body||a.setOpen(!1):typeof a.props.closeOnScroll=="function"&&a.props.closeOnScroll(r)&&a.setOpen(!1)}),G(q(a),"renderCalendar",function(){return a.props.inline||a.isCalendarOpen()?ee.createElement(IEe,{ref:function(r){a.calendar=r},locale:a.props.locale,calendarStartDay:a.props.calendarStartDay,chooseDayAriaLabelPrefix:a.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:a.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:a.props.weekAriaLabelPrefix,monthAriaLabelPrefix:a.props.monthAriaLabelPrefix,adjustDateOnChange:a.props.adjustDateOnChange,setOpen:a.setOpen,shouldCloseOnSelect:a.props.shouldCloseOnSelect,dateFormat:a.props.dateFormatCalendar,useWeekdaysShort:a.props.useWeekdaysShort,formatWeekDay:a.props.formatWeekDay,dropdownMode:a.props.dropdownMode,selected:a.props.selected,preSelection:a.state.preSelection,onSelect:a.handleSelect,onWeekSelect:a.props.onWeekSelect,openToDate:a.props.openToDate,minDate:a.props.minDate,maxDate:a.props.maxDate,selectsStart:a.props.selectsStart,selectsEnd:a.props.selectsEnd,selectsRange:a.props.selectsRange,startDate:a.props.startDate,endDate:a.props.endDate,excludeDates:a.props.excludeDates,excludeDateIntervals:a.props.excludeDateIntervals,filterDate:a.props.filterDate,onClickOutside:a.handleCalendarClickOutside,formatWeekNumber:a.props.formatWeekNumber,highlightDates:a.state.highlightDates,holidays:eEe(a.modifyHolidays()),includeDates:a.props.includeDates,includeDateIntervals:a.props.includeDateIntervals,includeTimes:a.props.includeTimes,injectTimes:a.props.injectTimes,inline:a.props.inline,shouldFocusDayInline:a.state.shouldFocusDayInline,peekNextMonth:a.props.peekNextMonth,showMonthDropdown:a.props.showMonthDropdown,showPreviousMonths:a.props.showPreviousMonths,useShortMonthInDropdown:a.props.useShortMonthInDropdown,showMonthYearDropdown:a.props.showMonthYearDropdown,showWeekNumbers:a.props.showWeekNumbers,showYearDropdown:a.props.showYearDropdown,withPortal:a.props.withPortal,forceShowMonthNavigation:a.props.forceShowMonthNavigation,showDisabledMonthNavigation:a.props.showDisabledMonthNavigation,scrollableYearDropdown:a.props.scrollableYearDropdown,scrollableMonthYearDropdown:a.props.scrollableMonthYearDropdown,todayButton:a.props.todayButton,weekLabel:a.props.weekLabel,outsideClickIgnoreClass:V1,fixedHeight:a.props.fixedHeight,monthsShown:a.props.monthsShown,monthSelectedIn:a.state.monthSelectedIn,onDropdownFocus:a.handleDropdownFocus,onMonthChange:a.props.onMonthChange,onYearChange:a.props.onYearChange,dayClassName:a.props.dayClassName,weekDayClassName:a.props.weekDayClassName,monthClassName:a.props.monthClassName,timeClassName:a.props.timeClassName,showDateSelect:a.props.showDateSelect,showTimeSelect:a.props.showTimeSelect,showTimeSelectOnly:a.props.showTimeSelectOnly,onTimeChange:a.handleTimeChange,timeFormat:a.props.timeFormat,timeIntervals:a.props.timeIntervals,minTime:a.props.minTime,maxTime:a.props.maxTime,excludeTimes:a.props.excludeTimes,filterTime:a.props.filterTime,timeCaption:a.props.timeCaption,className:a.props.calendarClassName,container:a.props.calendarContainer,yearItemNumber:a.props.yearItemNumber,yearDropdownItemNumber:a.props.yearDropdownItemNumber,previousMonthAriaLabel:a.props.previousMonthAriaLabel,previousMonthButtonLabel:a.props.previousMonthButtonLabel,nextMonthAriaLabel:a.props.nextMonthAriaLabel,nextMonthButtonLabel:a.props.nextMonthButtonLabel,previousYearAriaLabel:a.props.previousYearAriaLabel,previousYearButtonLabel:a.props.previousYearButtonLabel,nextYearAriaLabel:a.props.nextYearAriaLabel,nextYearButtonLabel:a.props.nextYearButtonLabel,timeInputLabel:a.props.timeInputLabel,disabledKeyboardNavigation:a.props.disabledKeyboardNavigation,renderCustomHeader:a.props.renderCustomHeader,popperProps:a.props.popperProps,renderDayContents:a.props.renderDayContents,renderMonthContent:a.props.renderMonthContent,renderQuarterContent:a.props.renderQuarterContent,renderYearContent:a.props.renderYearContent,onDayMouseEnter:a.props.onDayMouseEnter,onMonthMouseLeave:a.props.onMonthMouseLeave,onYearMouseEnter:a.props.onYearMouseEnter,onYearMouseLeave:a.props.onYearMouseLeave,selectsDisabledDaysInRange:a.props.selectsDisabledDaysInRange,showTimeInput:a.props.showTimeInput,showMonthYearPicker:a.props.showMonthYearPicker,showFullMonthYearPicker:a.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:a.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:a.props.showFourColumnMonthYearPicker,showYearPicker:a.props.showYearPicker,showQuarterYearPicker:a.props.showQuarterYearPicker,showWeekPicker:a.props.showWeekPicker,excludeScrollbar:a.props.excludeScrollbar,handleOnKeyDown:a.props.onKeyDown,handleOnDayKeyDown:a.onDayKeyDown,isInputFocused:a.state.focused,customTimeInput:a.props.customTimeInput,setPreSelection:a.setPreSelection},a.props.children):null}),G(q(a),"renderAriaLiveRegion",function(){var r,i=a.props,l=i.dateFormat,o=i.locale,c=a.props.showTimeInput||a.props.showTimeSelect?"PPPPp":"PPPP";return r=a.props.selectsRange?"Selected start date: ".concat(Bi(a.props.startDate,{dateFormat:c,locale:o}),". ").concat(a.props.endDate?"End date: "+Bi(a.props.endDate,{dateFormat:c,locale:o}):""):a.props.showTimeSelectOnly?"Selected time: ".concat(Bi(a.props.selected,{dateFormat:l,locale:o})):a.props.showYearPicker?"Selected year: ".concat(Bi(a.props.selected,{dateFormat:"yyyy",locale:o})):a.props.showMonthYearPicker?"Selected month: ".concat(Bi(a.props.selected,{dateFormat:"MMMM yyyy",locale:o})):a.props.showQuarterYearPicker?"Selected quarter: ".concat(Bi(a.props.selected,{dateFormat:"yyyy, QQQ",locale:o})):"Selected date: ".concat(Bi(a.props.selected,{dateFormat:c,locale:o})),ee.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r)}),G(q(a),"renderDateInput",function(){var r,i=Ae(a.props.className,G({},V1,a.state.open)),l=a.props.customInput||ee.createElement("input",{type:"text"}),o=a.props.customInputRef||"ref",c=typeof a.props.value=="string"?a.props.value:typeof a.state.inputValue=="string"?a.state.inputValue:a.props.selectsRange?function(d,h,f){if(!d)return"";var m=Bi(d,f),g=h?Bi(h,f):"";return"".concat(m," - ").concat(g)}(a.props.startDate,a.props.endDate,a.props):Bi(a.props.selected,a.props);return ee.cloneElement(l,(G(G(G(G(G(G(G(G(G(G(r={},o,function(d){a.input=d}),"value",c),"onBlur",a.handleBlur),"onChange",a.handleChange),"onClick",a.onInputClick),"onFocus",a.handleFocus),"onKeyDown",a.onInputKeyDown),"id",a.props.id),"name",a.props.name),"form",a.props.form),G(G(G(G(G(G(G(G(G(G(r,"autoFocus",a.props.autoFocus),"placeholder",a.props.placeholderText),"disabled",a.props.disabled),"autoComplete",a.props.autoComplete),"className",Ae(l.props.className,i)),"title",a.props.title),"readOnly",a.props.readOnly),"required",a.props.required),"tabIndex",a.props.tabIndex),"aria-describedby",a.props.ariaDescribedBy),G(G(G(r,"aria-invalid",a.props.ariaInvalid),"aria-labelledby",a.props.ariaLabelledBy),"aria-required",a.props.ariaRequired)))}),G(q(a),"renderClearButton",function(){var r=a.props,i=r.isClearable,l=r.disabled,o=r.selected,c=r.startDate,d=r.endDate,h=r.clearButtonTitle,f=r.clearButtonClassName,m=f===void 0?"":f,g=r.ariaLabelClose,b=g===void 0?"Close":g;return!i||o==null&&c==null&&d==null?null:ee.createElement("button",{type:"button",className:Ae("react-datepicker__close-icon",m,{"react-datepicker__close-icon--disabled":l}),disabled:l,"aria-label":b,onClick:a.onClearClick,title:h,tabIndex:-1})}),a.state=a.calcInitialState(),a.preventFocusTimeout=null,a}return wa(t,ee.Component),ya(t,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(n,a){var r,i;n.inline&&(r=n.selected,i=this.props.selected,r&&i?Fa(r)!==Fa(i)||vt(r)!==vt(i):r!==i)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&n.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),n.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:k1(this.props.highlightDates)}),a.focused||Sc(n.selected,this.props.selected)||this.setState({inputValue:null}),a.open!==this.state.open&&(a.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),a.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var n=this.props,a=n.showIcon,r=n.icon,i=n.calendarIconClassname,l=n.toggleCalendarOnIconClick,o=this.state.open;return ee.createElement("div",{className:"react-datepicker__input-container".concat(a?" react-datepicker__view-calendar-icon":"")},a&&ee.createElement(NEe,Ip({icon:r,className:"".concat(i," ").concat(o&&"react-datepicker-ignore-onclickoutside")},l?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var n=this.renderCalendar();if(this.props.inline)return n;if(this.props.withPortal){var a=this.state.open?ee.createElement(RU,{enableTabLoop:this.props.enableTabLoop},ee.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},n)):null;return this.state.open&&this.props.portalId&&(a=ee.createElement(CU,{portalId:this.props.portalId,portalHost:this.props.portalHost},a)),ee.createElement("div",null,this.renderInputContainer(),a)}return ee.createElement(SEe,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:n,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop,showArrow:this.props.showPopperArrow})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Lf,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),t}(),vEe="input",wS="navigate";const TEe=({title:e,titleId:t,...n},a)=>T.createElement("svg",{width:23,height:17,viewBox:"0 0 23 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:a,"aria-labelledby":t,...n},e?T.createElement("title",{id:t},e):null,T.createElement("mask",{id:"mask0_407_1582",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:0,y:0,width:23,height:17},T.createElement("rect",{x:.5,width:22,height:17,fill:"#D9D9D9"})),T.createElement("g",{mask:"url(#mask0_407_1582)"},T.createElement("path",{d:"M5.08333 15.5837C4.57917 15.5837 4.14757 15.4449 3.78854 15.1675C3.42951 14.8901 3.25 14.5566 3.25 14.167V4.25033C3.25 3.86074 3.42951 3.52724 3.78854 3.2498C4.14757 2.97237 4.57917 2.83366 5.08333 2.83366H6V1.41699H7.83333V2.83366H15.1667V1.41699H17V2.83366H17.9167C18.4208 2.83366 18.8524 2.97237 19.2115 3.2498C19.5705 3.52724 19.75 3.86074 19.75 4.25033V14.167C19.75 14.5566 19.5705 14.8901 19.2115 15.1675C18.8524 15.4449 18.4208 15.5837 17.9167 15.5837H5.08333ZM5.08333 14.167H17.9167V7.08366H5.08333V14.167ZM5.08333 5.66699H17.9167V4.25033H5.08333V5.66699Z",fill:"#1C1B1F"}))),AEe=T.forwardRef(TEe);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};_be("de",eme);function yEe({className:e,error:t,label:n,classNames:a,labelPosition:r="top",placeholder:i,placeholderText:l,...o}){const c=ge("flex flex-col",{},e);return s.jsxs("div",{className:c,children:[s.jsxs("div",{className:tn(ge("",{"flex flex-col":r==="top","flex flex-row items-center gap-2":r==="left"},a==null?void 0:a.container)),children:[n&&s.jsx(Zd,{className:tn(ge({"pb-3":r==="top","pr-1":r==="left"},a==null?void 0:a.label)),children:n}),s.jsx(OEe,{...o,placeholderText:i||l,locale:"de",dateFormat:"dd.MM.yyyy",icon:s.jsx(AEe,{className:"h-[17px] w-[22px]"}),calendarIconClassname:"right-0 cursor-pointer !p-[5px]",showIcon:!0,toggleCalendarOnIconClick:!0,wrapperClassName:ge("w-full",a==null?void 0:a.inputWrapper),className:ge("inline w-full rounded-md border border-black bg-white !py-0 !pl-[14px]",a==null?void 0:a.input)})]}),t&&s.jsx(pu,{children:t})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function J({name:e,...t}){const[n,a,{setValue:r}]=uu(e),{setFieldTouched:i}=tt(),l=a.touched&&a.error;return s.jsx(yEe,{showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",error:l||"",selected:n.value&&new Date(n.value)||null,onChange:T.useCallback(o=>{r(o,!0)},[r]),onSelect:T.useCallback(o=>{r(o,!0)},[r]),onBlur:T.useCallback(()=>{i(e,!0)},[e,i]),onCalendarClose:T.useCallback(()=>{},[]),...t,popperClassName:"w-datepicker"})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function k({name:e,classNames:t,labelPosition:n="right",onChangeCapture:a,extraOnChangeAction:r,disabled:i,className:l,...o}){const[c,,d]=uu(e);return s.jsxs("div",{className:ge("flex flex-row gap-2",{"flex-col":n==="top","flex-row":n==="right","flex-row-reverse justify-end":n==="left"},l),children:[s.jsx("label",{className:"inline-flex cursor-pointer items-center",children:s.jsxs("div",{className:tn(ge("relative",t==null?void 0:t.inputLabelSubContainer)),children:[s.jsx("input",{type:"checkbox",className:tn(ge("sr-only",t==null?void 0:t.input)),...c,checked:c.value,disabled:i,onChange:h=>(r&&r(h),d.setValue(h.target.checked)),onChangeCapture:a}),s.jsx("div",{className:`h-[22px] w-[42px] rounded-full border border-black shadow-inner transition-colors ${c.value?"bg-primaryYellow":"bg-[#D1D1D6]"}`}),s.jsx("div",{className:`absolute left-px top-px size-[20px] rounded-full border border-black bg-white shadow transition-transform ${c.value?"translate-x-full":""}`})]})}),o.label&&s.jsx("label",{className:ge("font-chakra font-medium",t==null?void 0:t.label),htmlFor:e,children:o.label})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function wEe({income:e,index:t,primaryFieldName:n,remove:a,type:r,memberApplicationFormValues:i,arrayOfPreviousMonths:l}){var B,L,H,U,W,z,$,V,F,te,se,pe,be,we,ve,Ue,Re,ue,ze,Qe,me,it,En,mt,Vt,_t,nn,Ee,Ne,Ze,zt,yn,Ln,St,ne,Ie;const o=ls().format("MMMM"),{setFieldValue:c,setFieldTouched:d}=tt(),[h,f]=T.useState(!1),[m,g]=T.useState(null),b=tE(e),E=wt(),S=Number((i==null?void 0:i.age)||0)<25,I=Number((i==null?void 0:i.age)||0)<27,O=T.useMemo(()=>{var re,ie;return(ie=(re=E.applicantState.houseHoldMembersApplication)==null?void 0:re.kids)==null?void 0:ie.some(fe=>+fe.age<3)},[(B=E.applicantState.houseHoldMembersApplication)==null?void 0:B.kids]),v=T.useMemo(()=>{var re,ie;return(ie=(re=E.applicantState.houseHoldMembersApplication)==null?void 0:re.kids)==null?void 0:ie.some(fe=>fe.partnerIsParent===!0&&+fe.age<3)},[(L=E.applicantState.houseHoldMembersApplication)==null?void 0:L.kids]),w=T.useMemo(()=>i.currentlyInEducation===!0||"",[i.currentlyInEducation]),D=re=>{g(re),f(!0)},C=()=>{m!==null&&(a(m),g(null),f(!1))},M=()=>{f(!1),g(null)};return s.jsxs(s.Fragment,{children:[s.jsx(cn,{editableTitle:!0,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(b).toFixed(2).toLocaleString()||0} € (Netto)`}),className:"h-[40px] rounded-[15px] border border-black px-4",classNames:{parentContainer:Ae(" ++ rounded-t-[15px] border border-none")},editableTitleValue:e.jobTitle,editableTitlePlaceholderValue:"Bezeichnung",onChange:re=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.JOB_TITLE}`,re.target.value)},onTouch:()=>{d(`${n}.${u.OTHER_INCOME}[${t}].${u.JOB_TITLE}`)},mode:"delete",onDelete:()=>D(t),text:"Andere Einkünfte",children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(j,{className:"hidden",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TOTAL}`,label:"Total"}),S&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD}`,onChangeCapture:re=>{re.target.checked===!1&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD_INFO}.${u.NETTO_INCOME}`,void 0)},label:"Kindergeld",classNames:{label:"font-semibold"}}),e.kinderGeld===!0&&s.jsx("div",{className:"flex flex-col gap-[23px]",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD_INFO}.${u.NETTO_INCOME}`,labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] text-gray-500 ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT}`,label:"Unterhalt",classNames:{label:"font-semibold"}}),e.childSupport===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((fe=(((ie=e==null?void 0:e.capitalIncomeInfo)==null?void 0:ie.last12MonthsIncome)??[])[0])==null?void 0:fe.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((H=e.childSupportInfo)==null?void 0:H.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen mtl.",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE}`,label:"Unterhaltsvorschuss mtl.",classNames:{label:"font-semibold"}}),e.childSupportAdvance===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((fe=(((ie=e==null?void 0:e.capitalIncomeInfo)==null?void 0:ie.last12MonthsIncome)??[])[0])==null?void 0:fe.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((U=e.childSupportAdvanceInfo)==null?void 0:U.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen mtl.",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE}`,label:"Kinderzuschlag mtl.",classNames:{label:"font-semibold"}}),e.childAllowance===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII}`,label:"Leistungen der Kinder- und Jugendhilfe (SGB VIII) mtl.",classNames:{label:"font-semibold"}}),e.childAndYouthWelfareServiceSGBVIII===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]})]})]}),I&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION}`,label:"Halbweisenrente mtl.",classNames:{label:"font-semibold"}}),e.halfOrphanPension===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),w&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME}`,label:"BAföG mtl.",classNames:{label:"font-semibold"}}),e.bafoegIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME}`,label:"Berufsausbildungsbeihilfe (BAB) mtl.",classNames:{label:"font-semibold"}}),e.babIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME}`,label:"Ausbildungsgeld mtl.",classNames:{label:"font-semibold"}}),e.trainingAllowanceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]})]}),i.currentlyInEducation===!0&&AT((W=i==null?void 0:i.typeOfEducation)==null?void 0:W.value)==="apprenticeship"&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME}`,label:"Als Zuschuss erbrachte Leistungen nach SGB II für Azubis; mtl.",classNames:{label:"font-semibold"}}),e.traineeSGB2Income===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),i.inStationaryFacility===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME}`,label:"Hilfe zum Lebensunterhalt in einer stationären Einrichtung; mtl.",classNames:{label:"font-semibold"}}),e.stationaryFacilityIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),r==="applicant"&&O&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME}`,label:"Elterngeld mtl.",classNames:{label:"font-semibold"}}),e.parentalIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:"border border-gray-700 rounded-[5px] pr-[30px]",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"},className:"items-start",labelPosition:"left"})]})]})]}),r==="partner"&&v&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME}`,label:"Elterngeld mtl.",classNames:{label:"font-semibold"}}),e.parentalIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:"border border-gray-700 rounded-[5px] pr-[30px]",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PARENTAL_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME}`,label:"Insolvenzgeld mtl.",className:"",classNames:{label:"font-semibold"}}),e.insolvencyBenefitIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME}`,label:"Kurzarbeitergeld mtl.",className:"",classNames:{label:"font-semibold"}}),e.shortTimeAllowanceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME}`,label:"Krankengeld",className:"",classNames:{label:"font-semibold"}}),e.sickPayIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME}`,label:"Übergangsgeld",className:"",classNames:{label:"font-semibold"}}),e.transitionAllowanceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME}`,label:"Vermietung, Untervermietung oder Mitbewohnung, mtl.",classNames:{label:"font-semibold"}}),e.rentingIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px]",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsxs("div",{className:"flex w-full flex-col gap-4",children:[s.jsx("p",{className:"font-medium",children:"In dem Entgeld sind enthalten:"}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsxs("div",{className:"flex flex-col items-start gap-4",children:[s.jsx(jn,{label:"Heizkosten",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.HEATING_COSTS}`,isCustom:!0}),s.jsx(jn,{label:"Haushaltsenergie",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.ELECTRICITY_COSTS}`,isCustom:!0})]}),s.jsxs("div",{className:"flex flex-col items-start gap-4",children:[s.jsx(jn,{label:"Warmwasser",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.WATER_COSTS}`,isCustom:!0}),s.jsx(jn,{label:"Garage/Stellplatz",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.GARAGE_OR_PARKING_COSTS}`,isCustom:!0})]})]})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME}`,label:"Kapitalerträge mtl.",classNames:{label:"font-semibold"}}),e.capitalIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((fe=(((ie=e==null?void 0:e.capitalIncomeInfo)==null?void 0:ie.last12MonthsIncome)??[])[0])==null?void 0:fe.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((z=e.capitalIncomeInfo)==null?void 0:z.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME}`,label:"Trennungs- oder Scheidungsunterhalt mtl.",classNames:{label:"font-semibold"}}),e.divorceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe;c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((fe=(((ie=e==null?void 0:e.divorceIncomeInfo)==null?void 0:ie.last12MonthsIncome)??[])[0])==null?void 0:fe.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),(($=e.divorceIncomeInfo)==null?void 0:$.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME}`,label:s.jsxs("p",{children:["Aufwandsentschädigungen mtl.",s.jsx(Xe,{id:"expenseCompensationIncome",...ho.expenseCompensationIncome})]}),classNames:{label:"font-semibold"}}),e.expenseCompensationIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.TYPE_OF_TASK}`,label:"Art der Tätigkeit",placeholder:"Tätigkeit",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.RECEIPT_OF_PAYMENT}`,label:"Zahlungseingang",placeholder:"Zahlungseingang",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME}`,label:s.jsxs("p",{children:["Pflegegeld mtl.",s.jsx(Xe,{id:"pflegegeldIncome",...ho.pflegegeldIncome})]}),classNames:{label:"font-semibold"},customChangeEvent:re=>{const ie=re.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME}`,ie),ie?c(`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.NETTO_INCOME}`,"")}}),e.careIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx("div",{className:"hidden",children:s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME}`,label:"Transfertleistungen",classNames:{label:"font-semibold"}})}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS}`,label:"Arbeitslosengeld I mtl.",classNames:{label:"font-semibold"}}),((V=e.transferIncomeInfo)==null?void 0:V.unemploymentBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.ALG_IS_SUSPENDED}`,label:"Der Anspruch auf ALG I ruht wegen einer Sperrzeit oder ist erloschen.",classNames:{label:"font-semibold"}}),((te=(F=e.transferIncomeInfo)==null?void 0:F.unemploymentBenefitsInfo)==null?void 0:te.ALGIsSuspended)===!0&&s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.ALG_IS_SUSPENDED_INFO}.${u.START_DATE}`,label:"Sperrzeit von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.ALG_IS_SUSPENDED_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD}`,label:"Bürgergeld",classNames:{label:"font-semibold"},customChangeEvent:re=>{const ie=re.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD}`,ie),ie?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.NETTO_INCOME}`,"")}}),((se=e.transferIncomeInfo)==null?void 0:se.burgerGeld)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS}`,label:"Sozialhilfe oder weitere Sozialleistungen",classNames:{label:"font-semibold"},customChangeEvent:re=>{const ie=re.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS}`,ie),ie?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.NETTO_INCOME}`,"")}}),((pe=e.transferIncomeInfo)==null?void 0:pe.socialHelpBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:"w-[400px] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS}`,label:"Wohngeld",classNames:{label:"font-semibold"},customChangeEvent:re=>{const ie=re.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS}`,ie),ie?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.NETTO_INCOME}`,"")}}),((be=e.transferIncomeInfo)==null?void 0:be.housingBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS}`,label:"Verletztengeld in Höhe des Bürgergeldes (SGB VII)",classNames:{label:"font-semibold"},customChangeEvent:re=>{const ie=re.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS}`,ie),ie?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.NETTO_INCOME}`,"")}}),((we=e.transferIncomeInfo)==null?void 0:we.SGB7InjuryBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS}`,label:"Ergänzende Hilfe zum Lebensunterhalt zur Versorgung der Opfer des Krieges (BVG) mtl.",classNames:{label:"font-semibold"}}),((ve=e.transferIncomeInfo)==null?void 0:ve.BVGWarVictimBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS}`,label:"Par. 56 Infektionsschutzgesetz, Landeserziehungsgeld",classNames:{label:"font-semibold"}}),((Ue=e.transferIncomeInfo)==null?void 0:Ue.par56TypeOfBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME}`,label:s.jsxs("p",{children:["Rente",s.jsx(Xe,{id:"pensionIncome",...ho.pensionIncome})]}),classNames:{label:"font-semibold"}}),e.pensionIncome===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION}`,label:"Erwerbsminderungsrente mtl.",classNames:{label:"font-semibold"}}),((Re=e.pensionIncomeInfo)==null?void 0:Re.disabilityPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION}`,label:"Grundrente nach dem Bundesversorgungsgesetz mtl.",classNames:{label:"font-semibold"}}),((ue=e.pensionIncomeInfo)==null?void 0:ue.basicFederalPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[62px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION}`,label:"Regelaltersrente mtl.",classNames:{label:"font-semibold"}}),((ze=e.pensionIncomeInfo)==null?void 0:ze.retirementPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe,Ge;c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((Ge=(((fe=(ie=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ie.retirementPensionInfo)==null?void 0:fe.last12MonthsIncome)??[])[0])==null?void 0:Ge.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[62px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((me=(Qe=e.pensionIncomeInfo)==null?void 0:Qe.retirementPensionInfo)==null?void 0:me.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION}`,label:"Rente wegen erlittener Verletzung bei der Bundeswehr mtl.",classNames:{label:"font-semibold"}}),((it=e.pensionIncomeInfo)==null?void 0:it.bundeswehrInjuryPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe,Ge;c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((Ge=(((fe=(ie=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ie.bundeswehrInjuryPensionInfo)==null?void 0:fe.last12MonthsIncome)??[])[0])==null?void 0:Ge.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[62px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((mt=(En=e.pensionIncomeInfo)==null?void 0:En.bundeswehrInjuryPensionInfo)==null?void 0:mt.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION}`,label:"Unfallrente mtl.",classNames:{label:"font-semibold"}}),((Vt=e.pensionIncomeInfo)==null?void 0:Vt.accidentPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",customChangeEvent:re=>{var ie,fe,Ge;c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,re.target.value),((Ge=(((fe=(ie=e==null?void 0:e.pensionIncomeInfo)==null?void 0:ie.accidentPensionInfo)==null?void 0:fe.last12MonthsIncome)??[])[0])==null?void 0:Ge.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,o)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[62px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((nn=(_t=e.pensionIncomeInfo)==null?void 0:_t.accidentPensionInfo)==null?void 0:nn.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:l.map((re,ie)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:re}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,label:"Monat",value:re,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:fe=>{ie===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.NETTO_INCOME}`,fe.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${ie}].month`,re)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},re))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION}`,label:"Witwenrente mtl.",classNames:{label:"font-semibold"}}),((Ee=e.pensionIncomeInfo)==null?void 0:Ee.widowPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[62px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ADDITIONAL_PENSION_PAYMENTS}`,label:"Rentennachzahlungen",classNames:{label:"font-semibold"}}),((Ne=e.pensionIncomeInfo)==null?void 0:Ne.additionalPensionPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ADDITIONAL_PENSION_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ADDITIONAL_PENSION_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME}`,label:"Sachbezüge mtl.",className:"",classNames:{label:"font-semibold"}}),e.benefitsInKindIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME}`,label:"Einmalige Zahlungen",classNames:{label:"font-semibold"}}),e.oneTimePaymentIncome===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ALIMONY_PAYMENTS}`,label:"einmalige Unterhaltszahlungen",classNames:{label:"font-semibold"}}),((Ze=e.oneTimePaymentIncomeInfo)==null?void 0:Ze.alimonyPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ALIMONY_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ALIMONY_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.INSURANCE_PAYMENTS}`,label:"Versicherungsleistungen mtl.",classNames:{label:"font-semibold"}}),((zt=e.oneTimePaymentIncomeInfo)==null?void 0:zt.insurancePayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.INSURANCE_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.INSURANCE_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.SEVERANCE_PAYMENTS}`,label:"Abfindungen",classNames:{label:"font-semibold"}}),((yn=e.oneTimePaymentIncomeInfo)==null?void 0:yn.severancePayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.SEVERANCE_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.SEVERANCE_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ONE_TIME_PAYMENTS}`,label:"Sonstiges Einmalig",classNames:{label:"font-semibold"}}),((Ln=e.oneTimePaymentIncomeInfo)==null?void 0:Ln.oneTimePayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ONE_TIME_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ONE_TIME_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME}`,label:"Sonstiges",classNames:{label:"font-semibold"}}),e.miscellaneousIncome===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS}`,label:"Sonstiges monatlich",classNames:{label:"font-semibold"}}),((St=e.miscellaneousIncomeInfo)==null?void 0:St.monthlyPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.PAYMENT_TYPE}`,label:"Art",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"}}),s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.TIPS_OR_HOMEOWNERSHIP_PAYMENTS}`,label:"Trinkgelder, Eigenheimzulage mtl.",classNames:{label:"font-semibold"}}),((ne=e.miscellaneousIncomeInfo)==null?void 0:ne.tipsOrHomeownershipPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.TIPS_OR_HOMEOWNERSHIP_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.TIPS_OR_HOMEOWNERSHIP_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.OTHER_STATE_BENEFITS}`,label:"sonstige staatliche Leistungen (z. B. Entschädigung)",classNames:{label:"font-semibold"}}),((Ie=e.miscellaneousIncomeInfo)==null?void 0:Ie.otherStateBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.OTHER_STATE_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.OTHER_STATE_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]})]})]})]})}),s.jsx(Es,{open:h,onConfirm:C,onCancel:M,onClose:M})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function CEe({incomeEntries:e,primaryFieldName:t,onDeleteAccordion:n}){var b;const{setFieldValue:a}=tt(),[r,i]=T.useState(!1),l=T.useMemo(()=>(e??[]).reduce((E,S)=>E+Number((S==null?void 0:S.nettoIncome)||0),0),[e]),o=`${t}.${u.APPRENTICESHIP_WAGE_INCOME}`,c=(b=e==null?void 0:e[0])==null?void 0:b.jobTitle,d=()=>i(!0),h=()=>{n(),i(!1)},f=()=>i(!1),m=()=>{a(o,[...e??[],{id:Kn(),nettoIncome:void 0,startDate:void 0,endDate:void 0}])},g=E=>{const S=[...e??[]];S.splice(E,1),a(o,S)};return s.jsxs(s.Fragment,{children:[s.jsx(cn,{defaultOpen:!0,editableTitle:!0,editableTitleValue:c,editableTitlePlaceholderValue:"Bezeichnung",text:"Ausbildungsvergütung",mode:"delete",onDelete:d,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(l||0).toFixed(2).toLocaleString()} € (Netto)`}),className:"h-[40px] rounded-[15px] border border-black px-4",classNames:{parentContainer:Ae("++ rounded-t-[15px] border border-none")},onChange:E=>{a(`${o}[0].jobTitle`,E.target.value)},children:s.jsxs("div",{className:"flex flex-col gap-4",children:[e==null?void 0:e.map((E,S)=>s.jsxs("div",{className:"grid grid-cols-[max-content_max-content_auto] items-start gap-x-3 gap-y-3",children:[s.jsx("div",{className:"flex min-w-0 flex-col gap-3",children:s.jsx(j,{type:"number",name:`${o}[${S}].nettoIncome`,label:"Nettoeinkommen mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"flex items-center justify-between w-full max-w-[350px]",input:"border border-gray-700 rounded-[5px] pr-[30px] w-full max-w-[170px]",label:"w-[170px] flex-shrink-0"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})}),s.jsxs("div",{className:"flex gap-[12px] pl-8",children:[s.jsx(J,{name:`${o}[${S}].startDate`,label:"Ab",placeholder:"Startdatum",classNames:{input:"max-w-[140px] border border-black rounded-md",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${o}[${S}].endDate`,label:"Bis",placeholder:"Fortlaufend",classNames:{input:"max-w-[140px] border border-black rounded-md",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"},className:"items-start",labelPosition:"left"})]}),s.jsx("div",{className:"flex h-full items-start",children:e.length>1&&s.jsx("button",{type:"button",className:"mt-[2px] px-2","aria-label":"Eintrag löschen",onClick:()=>g(S),children:s.jsx(lN,{className:"size-6"})})})]},E.id??S)),s.jsx("div",{children:s.jsx(Je,{type:"button",text:"Eintrag hinzufügen",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",onClick:m})}),s.jsx("p",{className:"text-sm italic text-gray-700",children:"Für die Berechnung ist das Einkommen der oder des Auszubildenden maßgebend, das zum Zeitpunkt der Antragstellung absehbar ist."})]})}),s.jsx(Es,{open:r,onConfirm:h,onCancel:f,onClose:f})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function REe({income:e,index:t,primaryFieldName:n,remove:a,memberApplicationFormValues:r,arrayOfPreviousMonths:i}){var I,O,v,w,D,C,M,B,L,H,U,W,z,$,V,F,te,se,pe,be,we,ve,Ue,Re,ue,ze,Qe,me,it,En,mt,Vt,_t,nn;const l=ls().format("MMMM"),o=XL(e),{setFieldValue:c,setFieldTouched:d}=tt(),[h,f]=T.useState(!1),[m,g]=T.useState(null),b=Ee=>{g(Ee),f(!0)},E=()=>{m!==null&&(a(m),c(`${n}.${u.OTHER_INCOME}[${m}].${u.KINDER_GELD}`,void 0),c(`${n}.${u.OTHER_INCOME}[${m}].${u.ADDITIONAL_SUPPORT}`,void 0),g(null),f(!1))},S=()=>{f(!1),g(null)};return s.jsxs(s.Fragment,{children:[s.jsx(cn,{defaultOpen:!0,editableTitle:!0,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(o).toFixed(2).toLocaleString()||0} € (Netto)`}),className:"h-[40px] rounded-[15px] border border-black px-4",classNames:{parentContainer:Ae(" ++ rounded-t-[15px] border border-none")},editableTitleValue:e.jobTitle,editableTitlePlaceholderValue:"Bezeichnung",onTouch:()=>{d(`${n}.${u.OTHER_INCOME}[${t}].${u.JOB_TITLE}`)},onChange:Ee=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.JOB_TITLE}`,Ee.target.value)},mode:"delete",onDelete:()=>b(t),text:"Andere Einkünfte",children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(j,{className:"hidden",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TOTAL}`,label:"Total"}),s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD}`,onChangeCapture:Ee=>{Ee.target.checked===!1?c(`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD_INFO}.${u.NETTO_INCOME}`,void 0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD_INFO}.${u.NETTO_INCOME}`,dd.KINDER_GELD)},label:"Kindergeld",classNames:{label:"font-semibold"}}),e.kinderGeld===!0&&s.jsx("div",{className:"flex flex-col gap-[23px]",children:s.jsx(j,{type:"number",readOnly:!0,name:`${n}.${u.OTHER_INCOME}[${t}].${u.KINDER_GELD_INFO}.${u.NETTO_INCOME}`,labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] text-gray-500 ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT}`,label:"Unterhalt",classNames:{label:"font-semibold"}}),e.childSupport===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((Ze=(((Ne=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Ne.last12MonthsIncome)??[])[0])==null?void 0:Ze.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((I=e.childSupportInfo)==null?void 0:I.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE}`,label:"Unterhaltsvorschuss",classNames:{label:"font-semibold"}}),e.childSupportAdvance===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((Ze=(((Ne=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Ne.last12MonthsIncome)??[])[0])==null?void 0:Ze.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((O=e.childSupportAdvanceInfo)==null?void 0:O.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_SUPPORT_ADVANCE_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE}`,label:"Kinderzuschlag",classNames:{label:"font-semibold"}}),e.childAllowance===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_ALLOWANCE_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION}`,label:"Halbweisenrente",classNames:{label:"font-semibold"}}),e.halfOrphanPension===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.HALF_ORPHAN_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII}`,label:"Leistungen der Kinder- und Jugendhilfe (SGB VIII)",classNames:{label:"font-semibold"}}),e.childAndYouthWelfareServiceSGBVIII===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CHILD_AND_YOUTH_WELFARE_SERVICE_SGBVIII_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsx("div",{className:"flex flex-col gap-[23px]",children:s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].showRestOfTheOtherIncomeForm`,label:"Weitere Andere Einkünfte z.B. Kapitalerträge",classNames:{label:"font-semibold"}})}),e.showRestOfTheOtherIncomeForm===!0&&s.jsxs(s.Fragment,{children:[r.currentlyInEducation===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME}`,label:"BAföG mtl.",classNames:{label:"font-semibold"}}),e.bafoegIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAFOEG_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME}`,label:"Berufsausbildungsbeihilfe (BAB) mtl.",classNames:{label:"font-semibold"}}),e.babIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BAB_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME}`,label:"Ausbildungsgeld mtl.",classNames:{label:"font-semibold"}}),e.trainingAllowanceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINING_ALLOWANCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]})]}),(r==null?void 0:r.currentlyInEducation)===!0&&AT((v=r==null?void 0:r.typeOfEducation)==null?void 0:v.value)==="apprenticeship"&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME}`,label:"Als Zuschuss erbrachte Leistungen nach SGB II für Azubis",classNames:{label:"font-semibold"}}),e.traineeSGB2Income===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRAINEE_SGB2_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),r.inStationaryFacility===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME}`,label:"Hilfe zum Lebensunterhalt in einer stationären Einrichtung",classNames:{label:"font-semibold"}}),e.stationaryFacilityIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.STATIONARY_FACILITY_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME}`,label:"Insolvenzgeld mtl.",className:"",classNames:{label:"font-semibold"}}),e.insolvencyBenefitIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Bemessungsentgeld mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME}`,label:"Kurzarbeitergeld mtl.",className:"",classNames:{label:"font-semibold"}}),e.shortTimeAllowanceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Bemessungsentgeld mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME}`,label:"Krankengeld mtl.",className:"",classNames:{label:"font-semibold"}}),e.sickPayIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Bemessungsentgeld mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SICK_PAY_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.SHORT_TIME_ALLOWANCE_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME}`,label:"Übergangsgeld mtl.",className:"",classNames:{label:"font-semibold"}}),e.transitionAllowanceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Bemessungsentgeld mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",type:"text",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSITION_ALLOWANCE_INCOME}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.INSOLVENCY_BENEFIT_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME}`,label:"Vermietung, Untervermietung oder Mitbewohnung",classNames:{label:"font-semibold"}}),e.rentingIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsxs("div",{className:"flex w-full flex-col gap-4",children:[s.jsx("p",{className:"font-medium",children:"In dem Entgeld sind enthalten:"}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsxs("div",{className:"flex flex-col items-start gap-4",children:[s.jsx(jn,{label:"Heizkosten",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.HEATING_COSTS}`,isCustom:!0}),s.jsx(jn,{label:"Haushaltsenergie",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.ELECTRICITY_COSTS}`,isCustom:!0})]}),s.jsxs("div",{className:"flex flex-col items-start gap-4",children:[s.jsx(jn,{label:"Warmwasser",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.WATER_COSTS}`,isCustom:!0}),s.jsx(jn,{label:"Garage/Stellplatz",className:"relative text-[18px] font-[500] text-[#000000]",name:`${n}.${u.OTHER_INCOME}[${t}].${u.RENTING_INCOME_INFO}.${u.GARAGE_OR_PARKING_COSTS}`,isCustom:!0})]})]})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME}`,label:"Kapitalerträge",classNames:{label:"font-semibold"}}),e.capitalIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((Ze=(((Ne=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Ne.last12MonthsIncome)??[])[0])==null?void 0:Ze.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((w=e.capitalIncomeInfo)==null?void 0:w.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.CAPITAL_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME}`,label:"Trennungs- oder Scheidungsunterhalt",classNames:{label:"font-semibold"}}),e.divorceIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze;c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((Ze=(((Ne=e==null?void 0:e.capitalIncomeInfo)==null?void 0:Ne.last12MonthsIncome)??[])[0])==null?void 0:Ze.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((D=e.divorceIncomeInfo)==null?void 0:D.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.DIVORCE_INCOME_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME}`,label:s.jsxs("p",{children:["Aufwandsentschädigung",s.jsx(Xe,{id:"expenseCompensationIncome",...ho.expenseCompensationIncome})]}),classNames:{label:"font-semibold"}}),e.expenseCompensationIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.TYPE_OF_TASK}`,label:"Art der Tätigkeit",placeholder:"Tätigkeit",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.EXPENSE_COMPENSATION_INCOME_INFO}.${u.RECEIPT_OF_PAYMENT}`,label:"Zahlungseingang",placeholder:"Zahlungseingang",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME}`,label:"Pflegegeld",classNames:{label:"font-semibold"},customChangeEvent:Ee=>{const Ne=Ee.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME}`,Ne),Ne?c(`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.NETTO_INCOME}`,"")}}),e.careIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.CARE_INCOME_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx("div",{className:"hidden",children:s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME}`,label:"Transfertleistungen",classNames:{label:"font-semibold"}})}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS}`,label:"Arbeitslosengeld 1",classNames:{label:"font-semibold"}}),((C=e.transferIncomeInfo)==null?void 0:C.unemploymentBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.ALG_IS_SUSPENDED}`,label:"Der Anspruch auf ALG I ruht wegen einer Sperrzeit oder ist erloschen.",classNames:{label:"font-semibold"}}),((B=(M=e.transferIncomeInfo)==null?void 0:M.unemploymentBenefitsInfo)==null?void 0:B.ALGIsSuspended)===!0&&s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.ALG_IS_SUSPENDED_INFO}.${u.START_DATE}`,label:"Sperrzeit von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.UNEMPLOYMENT_BENEFITS_INFO}.${u.ALG_IS_SUSPENDED_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD}`,label:"Bürgergeld",classNames:{label:"font-semibold"},customChangeEvent:Ee=>{const Ne=Ee.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD}`,Ne),Ne?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.NETTO_INCOME}`,"")}}),((L=e.transferIncomeInfo)==null?void 0:L.burgerGeld)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BURGER_GELD_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS}`,label:"Sozialhilfe oder weitere Sozialleistungen",classNames:{label:"font-semibold"},customChangeEvent:Ee=>{const Ne=Ee.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS}`,Ne),Ne?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.NETTO_INCOME}`,"")}}),((H=e.transferIncomeInfo)==null?void 0:H.socialHelpBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SOCIAL_HELP_BENEFITS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS}`,label:"Wohngeld",classNames:{label:"font-semibold"},customChangeEvent:Ee=>{const Ne=Ee.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS}`,Ne),Ne?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.NETTO_INCOME}`,"")}}),((U=e.transferIncomeInfo)==null?void 0:U.housingBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.HOUSING_BENEFITS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS}`,label:"Verletztengeld in Höhe des Bürgergeldes (SGB VII)",classNames:{label:"font-semibold"},customChangeEvent:Ee=>{const Ne=Ee.target.checked;c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS}`,Ne),Ne?c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.NETTO_INCOME}`,0):c(`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.NETTO_INCOME}`,"")}}),((W=e.transferIncomeInfo)==null?void 0:W.SGB7InjuryBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"hidden w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.SGB7_INJURY_BENEFITS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS}`,label:"Ergänzende Hilfe zum Lebensunterhalt zur Versorgung der Opfer des Krieges (BVG)",classNames:{label:"font-semibold"}}),((z=e.transferIncomeInfo)==null?void 0:z.BVGWarVictimBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.BVG_WAR_VICTIM_BENEFITS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS}`,label:"Par. 56 Infektionsschutzgesetz, Landeserziehungsgeld",classNames:{label:"font-semibold"}}),(($=e.transferIncomeInfo)==null?void 0:$.par56TypeOfBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.TRANSFER_INCOME_INFO}.${u.PAR56_TYPE_OF_BENEFITS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME}`,label:s.jsxs("p",{children:["Rente",s.jsx(Xe,{id:"pensionIncome",...ho.pensionIncome})]}),classNames:{label:"font-semibold"}}),e.pensionIncome===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION}`,label:"Erwerbsminderungsrente",classNames:{label:"font-semibold"}}),((V=e.pensionIncomeInfo)==null?void 0:V.disabilityPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.DISABILITY_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION}`,label:"Grundrente nach dem Bundesversorgungsgesetz",classNames:{label:"font-semibold"}}),((F=e.pensionIncomeInfo)==null?void 0:F.basicFederalPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BASIC_FEDERAL_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION}`,label:"Regelaltersrente",classNames:{label:"font-semibold"}}),((te=e.pensionIncomeInfo)==null?void 0:te.retirementPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze,zt;c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((zt=(((Ze=(Ne=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Ne.retirementPensionInfo)==null?void 0:Ze.last12MonthsIncome)??[])[0])==null?void 0:zt.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((pe=(se=e.pensionIncomeInfo)==null?void 0:se.retirementPensionInfo)==null?void 0:pe.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.RETIREMENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION}`,label:"Rente wegen erlittener Verletzung bei der Bundeswehr",classNames:{label:"font-semibold"}}),((be=e.pensionIncomeInfo)==null?void 0:be.bundeswehrInjuryPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze,zt;c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((zt=(((Ze=(Ne=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Ne.bundeswehrInjuryPensionInfo)==null?void 0:Ze.last12MonthsIncome)??[])[0])==null?void 0:zt.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(j,{type:"text",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.PAYING_AGENCY}`,label:"Auszahlende Stelle",placeholder:"Auszahlende Stelle",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[245px]",input:" w-[400] border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[42px]"}})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((ve=(we=e.pensionIncomeInfo)==null?void 0:we.bundeswehrInjuryPensionInfo)==null?void 0:ve.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.BUNDESWEHR_INJURY_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION}`,label:"Unfallrente",classNames:{label:"font-semibold"}}),((Ue=e.pensionIncomeInfo)==null?void 0:Ue.accidentPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",customChangeEvent:Ee=>{var Ne,Ze,zt;c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,Ee.target.value),((zt=(((Ze=(Ne=e==null?void 0:e.pensionIncomeInfo)==null?void 0:Ne.accidentPensionInfo)==null?void 0:Ze.last12MonthsIncome)??[])[0])==null?void 0:zt.month)===void 0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[0].month`,l)},labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),((ue=(Re=e.pensionIncomeInfo)==null?void 0:Re.accidentPensionInfo)==null?void 0:ue.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:i.map((Ee,Ne)=>s.jsxs("div",{className:"",children:[s.jsx("p",{className:"min-w-[100px]",children:Ee}),s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,label:"Monat",value:Ee,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:Ze=>{Ne===0&&c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.NETTO_INCOME}`,Ze.target.value)},onChangeCapture:()=>{c(`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ACCIDENT_PENSION_INFO}.${u.LAST_12_MONTHS_INCOME}[${Ne}].month`,Ee)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]},Ee))})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION}`,label:"Witwenrente",classNames:{label:"font-semibold"}}),((ze=e.pensionIncomeInfo)==null?void 0:ze.widowPension)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[265px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[64px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION_INFO}.${u.START_DATE}`,label:"Bewilligung von",placeholder:"von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.WIDOW_PENSION_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ADDITIONAL_PENSION_PAYMENTS}`,label:"Rentennachzahlungen",classNames:{label:"font-semibold"}}),((Qe=e.pensionIncomeInfo)==null?void 0:Qe.additionalPensionPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ADDITIONAL_PENSION_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.PENSION_INCOME_INFO}.${u.ADDITIONAL_PENSION_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME}`,label:"Sachbezüge mtl.",className:"",classNames:{label:"font-semibold"}}),e.benefitsInKindIncome===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME_INFO}.${u.NETTO_INCOME}`,label:"Betrag mtl.",type:"number",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[440px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[68px] whitespace-nowrap"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME_INFO}.${u.START_DATE}`,label:"Erhalten von",placeholder:"Erhalten von",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.BENEFITS_IN_KIND_INCOME_INFO}.${u.END_DATE}`,label:"bis (oder fortlaufend)",placeholder:"bis (oder fortlaufend)",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME}`,label:"Einmalige Zahlungen",classNames:{label:"font-semibold"}}),e.oneTimePaymentIncome===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ALIMONY_PAYMENTS}`,label:"einmalige Unterhaltszahlungen",classNames:{label:"font-semibold"}}),((me=e.oneTimePaymentIncomeInfo)==null?void 0:me.alimonyPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ALIMONY_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ALIMONY_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.INSURANCE_PAYMENTS}`,label:"Versicherungsleistungen",classNames:{label:"font-semibold"}}),((it=e.oneTimePaymentIncomeInfo)==null?void 0:it.insurancePayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.INSURANCE_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.INSURANCE_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.SEVERANCE_PAYMENTS}`,label:"Abfindungen",classNames:{label:"font-semibold"}}),((En=e.oneTimePaymentIncomeInfo)==null?void 0:En.severancePayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.SEVERANCE_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.SEVERANCE_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ONE_TIME_PAYMENTS}`,label:"Sonstiges Einmalig",classNames:{label:"font-semibold"}}),((mt=e.oneTimePaymentIncomeInfo)==null?void 0:mt.oneTimePayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ONE_TIME_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.ONE_TIME_PAYMENT_INCOME_INFO}.${u.ONE_TIME_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]})]}),s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME}`,label:"Sonstiges",classNames:{label:"font-semibold"}}),e.miscellaneousIncome===!0&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS}`,label:"Sonstiges monatlich",classNames:{label:"font-semibold"}}),((Vt=e.miscellaneousIncomeInfo)==null?void 0:Vt.monthlyPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.PAYMENT_TYPE}`,label:"Art",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-12"}}),s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{className:"flex flex-row gap-[20px]",children:[s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"}),s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.MONTHLY_PAYMENTS_INFO}.${u.END_DATE}`,label:"bis",placeholder:"bis",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.TIPS_OR_HOMEOWNERSHIP_PAYMENTS}`,label:"Trinkgelder, Eigenheimzulage",classNames:{label:"font-semibold"}}),((_t=e.miscellaneousIncomeInfo)==null?void 0:_t.tipsOrHomeownershipPayments)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.TIPS_OR_HOMEOWNERSHIP_PAYMENTS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.TIPS_OR_HOMEOWNERSHIP_PAYMENTS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]}),s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(k,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.OTHER_STATE_BENEFITS}`,label:"sonstige staatliche Leistungen (z. B. Entschädigung)",classNames:{label:"font-semibold"}}),((nn=e.miscellaneousIncomeInfo)==null?void 0:nn.otherStateBenefits)===!0&&s.jsxs("div",{className:"flex flex-col gap-[23px] pl-12",children:[s.jsx(j,{type:"number",name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.OTHER_STATE_BENEFITS_INFO}.${u.NETTO_INCOME}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"w-full",classNames:{inputLabelSubContainer:"w-[240px]",input:" border border-gray-700 rounded-[5px] pr-[30px] ",label:"pr-[39px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("div",{className:"flex flex-row gap-[20px]",children:s.jsx(J,{name:`${n}.${u.OTHER_INCOME}[${t}].${u.MISCELLANEOUS_INCOME_INFO}.${u.OTHER_STATE_BENEFITS_INFO}.${u.START_DATE}`,label:"Erhalten am",placeholder:"Erhalten am",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "},className:"items-start",labelPosition:"left"})})]})]})]})]})]})]})}),s.jsx(Es,{open:h,onConfirm:E,onCancel:S,onClose:S})]})}var CS={exports:{}},K1;function MEe(){return K1||(K1=1,function(e,t){(function(n,a){e.exports=a()})(Ar,function(){var n;function a(){return n.apply(null,arguments)}function r(p){n=p}function i(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function l(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function o(p,N){return Object.prototype.hasOwnProperty.call(p,N)}function c(p){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(p).length===0;var N;for(N in p)if(o(p,N))return!1;return!0}function d(p){return p===void 0}function h(p){return typeof p=="number"||Object.prototype.toString.call(p)==="[object Number]"}function f(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function m(p,N){var A=[],R,P=p.length;for(R=0;R>>0,R;for(R=0;R0)for(A=0;A=0;return(K?A?"+":"":"-")+Math.pow(10,Math.max(0,P)).toString().substr(1)+R}var we=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ve=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ue={},Re={};function ue(p,N,A,R){var P=R;typeof R=="string"&&(P=function(){return this[R]()}),p&&(Re[p]=P),N&&(Re[N[0]]=function(){return be(P.apply(this,arguments),N[1],N[2])}),A&&(Re[A]=function(){return this.localeData().ordinal(P.apply(this,arguments),p)})}function ze(p){return p.match(/\[[\s\S]/)?p.replace(/^\[|\]$/g,""):p.replace(/\\/g,"")}function Qe(p){var N=p.match(we),A,R;for(A=0,R=N.length;A=0&&ve.test(p);)p=p.replace(ve,R),ve.lastIndex=0,A-=1;return p}var En={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function mt(p){var N=this._longDateFormat[p],A=this._longDateFormat[p.toUpperCase()];return N||!A?N:(this._longDateFormat[p]=A.match(we).map(function(R){return R==="MMMM"||R==="MM"||R==="DD"||R==="dddd"?R.slice(1):R}).join(""),this._longDateFormat[p])}var Vt="Invalid date";function _t(){return this._invalidDate}var nn="%d",Ee=/\d{1,2}/;function Ne(p){return this._ordinal.replace("%d",p)}var Ze={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function zt(p,N,A,R){var P=this._relativeTime[A];return z(P)?P(p,N,A,R):P.replace(/%d/i,p)}function yn(p,N){var A=this._relativeTime[p>0?"future":"past"];return z(A)?A(N):A.replace(/%s/i,N)}var Ln={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function St(p){return typeof p=="string"?Ln[p]||Ln[p.toLowerCase()]:void 0}function ne(p){var N={},A,R;for(R in p)o(p,R)&&(A=St(R),A&&(N[A]=p[R]));return N}var Ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function re(p){var N=[],A;for(A in p)o(p,A)&&N.push({unit:A,priority:Ie[A]});return N.sort(function(R,P){return R.priority-P.priority}),N}var ie=/\d/,fe=/\d\d/,Ge=/\d{3}/,Et=/\d{4}/,It=/[+-]?\d{6}/,dt=/\d\d?/,ea=/\d\d\d\d?/,ye=/\d\d\d\d\d\d?/,Le=/\d{1,3}/,je=/\d{1,4}/,Ht=/[+-]?\d{1,6}/,Ve=/\d+/,ut=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,ht=/[+-]?\d+(\.\d{1,3})?/,Ct=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,$t=/^[1-9]\d?/,X=/^([1-9]\d|\d)/,ae;ae={};function Q(p,N,A){ae[p]=z(N)?N:function(R,P){return R&&A?A:N}}function Te(p,N){return o(ae,p)?ae[p](N._strict,N._locale):new RegExp(Oe(p))}function Oe(p){return ke(p.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(N,A,R,P,K){return A||R||P||K}))}function ke(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Be(p){return p<0?Math.ceil(p)||0:Math.floor(p)}function Se(p){var N=+p,A=0;return N!==0&&isFinite(N)&&(A=Be(N)),A}var Fe={};function Me(p,N){var A,R=N,P;for(typeof p=="string"&&(p=[p]),h(N)&&(R=function(K,oe){oe[N]=Se(K)}),P=p.length,A=0;A68?1900:2e3)};var Fr=Ca("FullYear",!0);function ir(){return Tt(this.year())}function Ca(p,N){return function(A){return A!=null?(Yt(this,p,A),a.updateOffset(this,N),this):Nt(this,p)}}function Nt(p,N){if(!p.isValid())return NaN;var A=p._d,R=p._isUTC;switch(N){case"Milliseconds":return R?A.getUTCMilliseconds():A.getMilliseconds();case"Seconds":return R?A.getUTCSeconds():A.getSeconds();case"Minutes":return R?A.getUTCMinutes():A.getMinutes();case"Hours":return R?A.getUTCHours():A.getHours();case"Date":return R?A.getUTCDate():A.getDate();case"Day":return R?A.getUTCDay():A.getDay();case"Month":return R?A.getUTCMonth():A.getMonth();case"FullYear":return R?A.getUTCFullYear():A.getFullYear();default:return NaN}}function Yt(p,N,A){var R,P,K,oe,De;if(!(!p.isValid()||isNaN(A))){switch(R=p._d,P=p._isUTC,N){case"Milliseconds":return void(P?R.setUTCMilliseconds(A):R.setMilliseconds(A));case"Seconds":return void(P?R.setUTCSeconds(A):R.setSeconds(A));case"Minutes":return void(P?R.setUTCMinutes(A):R.setMinutes(A));case"Hours":return void(P?R.setUTCHours(A):R.setHours(A));case"Date":return void(P?R.setUTCDate(A):R.setDate(A));case"FullYear":break;default:return}K=A,oe=p.month(),De=p.date(),De=De===29&&oe===1&&!Tt(K)?28:De,P?R.setUTCFullYear(K,oe,De):R.setFullYear(K,oe,De)}}function ba(p){return p=St(p),z(this[p])?this[p]():this}function Yr(p,N){if(typeof p=="object"){p=ne(p);var A=re(p),R,P=A.length;for(R=0;R=0?(De=new Date(p+400,N,A,R,P,K,oe),isFinite(De.getFullYear())&&De.setFullYear(p)):De=new Date(p,N,A,R,P,K,oe),De}function ui(p){var N,A;return p<100&&p>=0?(A=Array.prototype.slice.call(arguments),A[0]=p+400,N=new Date(Date.UTC.apply(null,A)),isFinite(N.getUTCFullYear())&&N.setUTCFullYear(p)):N=new Date(Date.UTC.apply(null,arguments)),N}function ji(p,N,A){var R=7+N-A,P=(7+ui(p,0,R).getUTCDay()-N)%7;return-P+R-1}function ml(p,N,A,R,P){var K=(7+A-R)%7,oe=ji(p,R,P),De=1+7*(N-1)+K+oe,lt,Dt;return De<=0?(lt=p-1,Dt=Wa(lt)+De):De>Wa(p)?(lt=p+1,Dt=De-Wa(p)):(lt=p,Dt=De),{year:lt,dayOfYear:Dt}}function di(p,N,A){var R=ji(p.year(),N,A),P=Math.floor((p.dayOfYear()-R-1)/7)+1,K,oe;return P<1?(oe=p.year()-1,K=P+qa(oe,N,A)):P>qa(p.year(),N,A)?(K=P-qa(p.year(),N,A),oe=p.year()+1):(oe=p.year(),K=P),{week:K,year:oe}}function qa(p,N,A){var R=ji(p,N,A),P=ji(p+1,N,A);return(Wa(p)-R+P)/7}ue("w",["ww",2],"wo","week"),ue("W",["WW",2],"Wo","isoWeek"),Q("w",dt,$t),Q("ww",dt,fe),Q("W",dt,$t),Q("WW",dt,fe),en(["w","ww","W","WW"],function(p,N,A,R){N[R.substr(0,1)]=Se(p)});function zo(p){return di(p,this._week.dow,this._week.doy).week}var Go={dow:0,doy:6};function Wo(){return this._week.dow}function qo(){return this._week.doy}function Vo(p){var N=this.localeData().week(this);return p==null?N:this.add((p-N)*7,"d")}function Ko(p){var N=di(this,1,4).week;return p==null?N:this.add((p-N)*7,"d")}ue("d",0,"do","day"),ue("dd",0,0,function(p){return this.localeData().weekdaysMin(this,p)}),ue("ddd",0,0,function(p){return this.localeData().weekdaysShort(this,p)}),ue("dddd",0,0,function(p){return this.localeData().weekdays(this,p)}),ue("e",0,0,"weekday"),ue("E",0,0,"isoWeekday"),Q("d",dt),Q("e",dt),Q("E",dt),Q("dd",function(p,N){return N.weekdaysMinRegex(p)}),Q("ddd",function(p,N){return N.weekdaysShortRegex(p)}),Q("dddd",function(p,N){return N.weekdaysRegex(p)}),en(["dd","ddd","dddd"],function(p,N,A,R){var P=A._locale.weekdaysParse(p,R,A._strict);P!=null?N.d=P:S(A).invalidWeekday=p}),en(["d","e","E"],function(p,N,A,R){N[R]=Se(p)});function Zo(p,N){return typeof p!="string"?p:isNaN(p)?(p=N.weekdaysParse(p),typeof p=="number"?p:null):parseInt(p,10)}function Jo(p,N){return typeof p=="string"?N.weekdaysParse(p)%7||7:isNaN(p)?null:p}function Ss(p,N){return p.slice(N,7).concat(p.slice(0,N))}var Qo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),gl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_o=Ct,$o=Ct,ec=Ct;function tc(p,N){var A=i(this._weekdays)?this._weekdays:this._weekdays[p&&p!==!0&&this._weekdays.isFormat.test(N)?"format":"standalone"];return p===!0?Ss(A,this._week.dow):p?A[p.day()]:A}function nc(p){return p===!0?Ss(this._weekdaysShort,this._week.dow):p?this._weekdaysShort[p.day()]:this._weekdaysShort}function ac(p){return p===!0?Ss(this._weekdaysMin,this._week.dow):p?this._weekdaysMin[p.day()]:this._weekdaysMin}function Ea(p,N,A){var R,P,K,oe=p.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],R=0;R<7;++R)K=b([2e3,1]).day(R),this._minWeekdaysParse[R]=this.weekdaysMin(K,"").toLocaleLowerCase(),this._shortWeekdaysParse[R]=this.weekdaysShort(K,"").toLocaleLowerCase(),this._weekdaysParse[R]=this.weekdays(K,"").toLocaleLowerCase();return A?N==="dddd"?(P=Nn.call(this._weekdaysParse,oe),P!==-1?P:null):N==="ddd"?(P=Nn.call(this._shortWeekdaysParse,oe),P!==-1?P:null):(P=Nn.call(this._minWeekdaysParse,oe),P!==-1?P:null):N==="dddd"?(P=Nn.call(this._weekdaysParse,oe),P!==-1||(P=Nn.call(this._shortWeekdaysParse,oe),P!==-1)?P:(P=Nn.call(this._minWeekdaysParse,oe),P!==-1?P:null)):N==="ddd"?(P=Nn.call(this._shortWeekdaysParse,oe),P!==-1||(P=Nn.call(this._weekdaysParse,oe),P!==-1)?P:(P=Nn.call(this._minWeekdaysParse,oe),P!==-1?P:null)):(P=Nn.call(this._minWeekdaysParse,oe),P!==-1||(P=Nn.call(this._weekdaysParse,oe),P!==-1)?P:(P=Nn.call(this._shortWeekdaysParse,oe),P!==-1?P:null))}function Wt(p,N,A){var R,P,K;if(this._weekdaysParseExact)return Ea.call(this,p,N,A);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),R=0;R<7;R++){if(P=b([2e3,1]).day(R),A&&!this._fullWeekdaysParse[R]&&(this._fullWeekdaysParse[R]=new RegExp("^"+this.weekdays(P,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[R]=new RegExp("^"+this.weekdaysShort(P,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[R]=new RegExp("^"+this.weekdaysMin(P,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[R]||(K="^"+this.weekdays(P,"")+"|^"+this.weekdaysShort(P,"")+"|^"+this.weekdaysMin(P,""),this._weekdaysParse[R]=new RegExp(K.replace(".",""),"i")),A&&N==="dddd"&&this._fullWeekdaysParse[R].test(p))return R;if(A&&N==="ddd"&&this._shortWeekdaysParse[R].test(p))return R;if(A&&N==="dd"&&this._minWeekdaysParse[R].test(p))return R;if(!A&&this._weekdaysParse[R].test(p))return R}}function Va(p){if(!this.isValid())return p!=null?this:NaN;var N=Nt(this,"Day");return p!=null?(p=Zo(p,this.localeData()),this.add(p-N,"d")):N}function an(p){if(!this.isValid())return p!=null?this:NaN;var N=(this.day()+7-this.localeData()._week.dow)%7;return p==null?N:this.add(p-N,"d")}function hk(p){if(!this.isValid())return p!=null?this:NaN;if(p!=null){var N=Jo(p,this.localeData());return this.day(this.day()%7?N:N-7)}else return this.day()||7}function fk(p){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||HN.call(this),p?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=_o),this._weekdaysStrictRegex&&p?this._weekdaysStrictRegex:this._weekdaysRegex)}function pk(p){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||HN.call(this),p?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$o),this._weekdaysShortStrictRegex&&p?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mk(p){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||HN.call(this),p?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ec),this._weekdaysMinStrictRegex&&p?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function HN(){function p(Ka,As){return As.length-Ka.length}var N=[],A=[],R=[],P=[],K,oe,De,lt,Dt;for(K=0;K<7;K++)oe=b([2e3,1]).day(K),De=ke(this.weekdaysMin(oe,"")),lt=ke(this.weekdaysShort(oe,"")),Dt=ke(this.weekdays(oe,"")),N.push(De),A.push(lt),R.push(Dt),P.push(De),P.push(lt),P.push(Dt);N.sort(p),A.sort(p),R.sort(p),P.sort(p),this._weekdaysRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+N.join("|")+")","i")}function LN(){return this.hours()%12||12}function gk(){return this.hours()||24}ue("H",["HH",2],0,"hour"),ue("h",["hh",2],0,LN),ue("k",["kk",2],0,gk),ue("hmm",0,0,function(){return""+LN.apply(this)+be(this.minutes(),2)}),ue("hmmss",0,0,function(){return""+LN.apply(this)+be(this.minutes(),2)+be(this.seconds(),2)}),ue("Hmm",0,0,function(){return""+this.hours()+be(this.minutes(),2)}),ue("Hmmss",0,0,function(){return""+this.hours()+be(this.minutes(),2)+be(this.seconds(),2)});function ZT(p,N){ue(p,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),N)})}ZT("a",!0),ZT("A",!1);function JT(p,N){return N._meridiemParse}Q("a",JT),Q("A",JT),Q("H",dt,X),Q("h",dt,$t),Q("k",dt,$t),Q("HH",dt,fe),Q("hh",dt,fe),Q("kk",dt,fe),Q("hmm",ea),Q("hmmss",ye),Q("Hmm",ea),Q("Hmmss",ye),Me(["H","HH"],Gt),Me(["k","kk"],function(p,N,A){var R=Se(p);N[Gt]=R===24?0:R}),Me(["a","A"],function(p,N,A){A._isPm=A._locale.isPM(p),A._meridiem=p}),Me(["h","hh"],function(p,N,A){N[Gt]=Se(p),S(A).bigHour=!0}),Me("hmm",function(p,N,A){var R=p.length-2;N[Gt]=Se(p.substr(0,R)),N[ta]=Se(p.substr(R)),S(A).bigHour=!0}),Me("hmmss",function(p,N,A){var R=p.length-4,P=p.length-2;N[Gt]=Se(p.substr(0,R)),N[ta]=Se(p.substr(R,2)),N[Gn]=Se(p.substr(P)),S(A).bigHour=!0}),Me("Hmm",function(p,N,A){var R=p.length-2;N[Gt]=Se(p.substr(0,R)),N[ta]=Se(p.substr(R))}),Me("Hmmss",function(p,N,A){var R=p.length-4,P=p.length-2;N[Gt]=Se(p.substr(0,R)),N[ta]=Se(p.substr(R,2)),N[Gn]=Se(p.substr(P))});function bk(p){return(p+"").toLowerCase().charAt(0)==="p"}var Ek=/[ap]\.?m?\.?/i,Nk=Ca("Hours",!0);function xk(p,N,A){return p>11?A?"pm":"PM":A?"am":"AM"}var QT={calendar:se,longDateFormat:En,invalidDate:Vt,ordinal:nn,dayOfMonthOrdinalParse:Ee,relativeTime:Ze,months:Mo,monthsShort:ul,week:Go,weekdays:Qo,weekdaysMin:Xo,weekdaysShort:gl,meridiemParse:Ek},Un={},Rh={},Mh;function Sk(p,N){var A,R=Math.min(p.length,N.length);for(A=0;A0;){if(P=gm(K.slice(0,A).join("-")),P)return P;if(R&&R.length>=A&&Sk(K,R)>=A-1)break;A--}N++}return Mh}function Ok(p){return!!(p&&p.match("^[^/\\\\]*$"))}function gm(p){var N=null,A;if(Un[p]===void 0&&e&&e.exports&&Ok(p))try{N=Mh._abbr,A=FM,A("./locale/"+p),bl(N)}catch{Un[p]=null}return Un[p]}function bl(p,N){var A;return p&&(d(N)?A=Is(p):A=UN(p,N),A?Mh=A:typeof console<"u"&&console.warn&&console.warn("Locale "+p+" not found. Did you forget to load it?")),Mh._abbr}function UN(p,N){if(N!==null){var A,R=QT;if(N.abbr=p,Un[p]!=null)W("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),R=Un[p]._config;else if(N.parentLocale!=null)if(Un[N.parentLocale]!=null)R=Un[N.parentLocale]._config;else if(A=gm(N.parentLocale),A!=null)R=A._config;else return Rh[N.parentLocale]||(Rh[N.parentLocale]=[]),Rh[N.parentLocale].push({name:p,config:N}),null;return Un[p]=new F(V(R,N)),Rh[p]&&Rh[p].forEach(function(P){UN(P.name,P.config)}),bl(p),Un[p]}else return delete Un[p],null}function vk(p,N){if(N!=null){var A,R,P=QT;Un[p]!=null&&Un[p].parentLocale!=null?Un[p].set(V(Un[p]._config,N)):(R=gm(p),R!=null&&(P=R._config),N=V(P,N),R==null&&(N.abbr=p),A=new F(N),A.parentLocale=Un[p],Un[p]=A),bl(p)}else Un[p]!=null&&(Un[p].parentLocale!=null?(Un[p]=Un[p].parentLocale,p===bl()&&bl(p)):Un[p]!=null&&delete Un[p]);return Un[p]}function Is(p){var N;if(p&&p._locale&&p._locale._abbr&&(p=p._locale._abbr),!p)return Mh;if(!i(p)){if(N=gm(p),N)return N;p=[p]}return Ik(p)}function Tk(){return te(Un)}function kN(p){var N,A=p._a;return A&&S(p).overflow===-2&&(N=A[pn]<0||A[pn]>11?pn:A[Mt]<1||A[Mt]>xs(A[gt],A[pn])?Mt:A[Gt]<0||A[Gt]>24||A[Gt]===24&&(A[ta]!==0||A[Gn]!==0||A[Wn]!==0)?Gt:A[ta]<0||A[ta]>59?ta:A[Gn]<0||A[Gn]>59?Gn:A[Wn]<0||A[Wn]>999?Wn:-1,S(p)._overflowDayOfYear&&(NMt)&&(N=Mt),S(p)._overflowWeeks&&N===-1&&(N=Ga),S(p)._overflowWeekday&&N===-1&&(N=ci),S(p).overflow=N),p}var Ak=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yk=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wk=/Z|[+-]\d\d(?::?\d\d)?/,bm=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],FN=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ck=/^\/?Date\((-?\d+)/i,Rk=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Mk={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _T(p){var N,A,R=p._i,P=Ak.exec(R)||yk.exec(R),K,oe,De,lt,Dt=bm.length,Ka=FN.length;if(P){for(S(p).iso=!0,N=0,A=Dt;NWa(oe)||p._dayOfYear===0)&&(S(p)._overflowDayOfYear=!0),A=ui(oe,0,p._dayOfYear),p._a[pn]=A.getUTCMonth(),p._a[Mt]=A.getUTCDate()),N=0;N<3&&p._a[N]==null;++N)p._a[N]=R[N]=P[N];for(;N<7;N++)p._a[N]=R[N]=p._a[N]==null?N===2?1:0:p._a[N];p._a[Gt]===24&&p._a[ta]===0&&p._a[Gn]===0&&p._a[Wn]===0&&(p._nextDay=!0,p._a[Gt]=0),p._d=(p._useUTC?ui:Yo).apply(null,R),K=p._useUTC?p._d.getUTCDay():p._d.getDay(),p._tzm!=null&&p._d.setUTCMinutes(p._d.getUTCMinutes()-p._tzm),p._nextDay&&(p._a[Gt]=24),p._w&&typeof p._w.d<"u"&&p._w.d!==K&&(S(p).weekdayMismatch=!0)}}function kk(p){var N,A,R,P,K,oe,De,lt,Dt;N=p._w,N.GG!=null||N.W!=null||N.E!=null?(K=1,oe=4,A=Su(N.GG,p._a[gt],di(wn(),1,4).year),R=Su(N.W,1),P=Su(N.E,1),(P<1||P>7)&&(lt=!0)):(K=p._locale._week.dow,oe=p._locale._week.doy,Dt=di(wn(),K,oe),A=Su(N.gg,p._a[gt],Dt.year),R=Su(N.w,Dt.week),N.d!=null?(P=N.d,(P<0||P>6)&&(lt=!0)):N.e!=null?(P=N.e+K,(N.e<0||N.e>6)&&(lt=!0)):P=K),R<1||R>qa(A,K,oe)?S(p)._overflowWeeks=!0:lt!=null?S(p)._overflowWeekday=!0:(De=ml(A,R,P,K,oe),p._a[gt]=De.year,p._dayOfYear=De.dayOfYear)}a.ISO_8601=function(){},a.RFC_2822=function(){};function zN(p){if(p._f===a.ISO_8601){_T(p);return}if(p._f===a.RFC_2822){$T(p);return}p._a=[],S(p).empty=!0;var N=""+p._i,A,R,P,K,oe,De=N.length,lt=0,Dt,Ka;for(P=it(p._f,p._locale).match(we)||[],Ka=P.length,A=0;A0&&S(p).unusedInput.push(oe),N=N.slice(N.indexOf(R)+R.length),lt+=R.length),Re[K]?(R?S(p).empty=!1:S(p).unusedTokens.push(K),nt(K,R,p)):p._strict&&!R&&S(p).unusedTokens.push(K);S(p).charsLeftOver=De-lt,N.length>0&&S(p).unusedInput.push(N),p._a[Gt]<=12&&S(p).bigHour===!0&&p._a[Gt]>0&&(S(p).bigHour=void 0),S(p).parsedDateParts=p._a.slice(0),S(p).meridiem=p._meridiem,p._a[Gt]=Fk(p._locale,p._a[Gt],p._meridiem),Dt=S(p).era,Dt!==null&&(p._a[gt]=p._locale.erasConvertYear(Dt,p._a[gt])),YN(p),kN(p)}function Fk(p,N,A){var R;return A==null?N:p.meridiemHour!=null?p.meridiemHour(N,A):(p.isPM!=null&&(R=p.isPM(A),R&&N<12&&(N+=12),!R&&N===12&&(N=0)),N)}function Yk(p){var N,A,R,P,K,oe,De=!1,lt=p._f.length;if(lt===0){S(p).invalidFormat=!0,p._d=new Date(NaN);return}for(P=0;Pthis?this:p:v()});function nA(p,N){var A,R;if(N.length===1&&i(N[0])&&(N=N[0]),!N.length)return wn();for(A=N[0],R=1;Rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function o3(){if(!d(this._isDSTShifted))return this._isDSTShifted;var p={},N;return C(p,this),p=eA(p),p._a?(N=p._isUTC?b(p._a):wn(p._a),this._isDSTShifted=this.isValid()&&$k(p._a,N.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function c3(){return this.isValid()?!this._isUTC:!1}function u3(){return this.isValid()?this._isUTC:!1}function rA(){return this.isValid()?this._isUTC&&this._offset===0:!1}var d3=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,h3=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function hi(p,N){var A=p,R=null,P,K,oe;return Nm(p)?A={ms:p._milliseconds,d:p._days,M:p._months}:h(p)||!isNaN(+p)?(A={},N?A[N]=+p:A.milliseconds=+p):(R=d3.exec(p))?(P=R[1]==="-"?-1:1,A={y:0,d:Se(R[Mt])*P,h:Se(R[Gt])*P,m:Se(R[ta])*P,s:Se(R[Gn])*P,ms:Se(GN(R[Wn]*1e3))*P}):(R=h3.exec(p))?(P=R[1]==="-"?-1:1,A={y:rc(R[2],P),M:rc(R[3],P),w:rc(R[4],P),d:rc(R[5],P),h:rc(R[6],P),m:rc(R[7],P),s:rc(R[8],P)}):A==null?A={}:typeof A=="object"&&("from"in A||"to"in A)&&(oe=f3(wn(A.from),wn(A.to)),A={},A.ms=oe.milliseconds,A.M=oe.months),K=new Em(A),Nm(p)&&o(p,"_locale")&&(K._locale=p._locale),Nm(p)&&o(p,"_isValid")&&(K._isValid=p._isValid),K}hi.fn=Em.prototype,hi.invalid=_k;function rc(p,N){var A=p&&parseFloat(p.replace(",","."));return(isNaN(A)?0:A)*N}function iA(p,N){var A={};return A.months=N.month()-p.month()+(N.year()-p.year())*12,p.clone().add(A.months,"M").isAfter(N)&&--A.months,A.milliseconds=+N-+p.clone().add(A.months,"M"),A}function f3(p,N){var A;return p.isValid()&&N.isValid()?(N=qN(N,p),p.isBefore(N)?A=iA(p,N):(A=iA(N,p),A.milliseconds=-A.milliseconds,A.months=-A.months),A):{milliseconds:0,months:0}}function sA(p,N){return function(A,R){var P,K;return R!==null&&!isNaN(+R)&&(W(N,"moment()."+N+"(period, number) is deprecated. Please use moment()."+N+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),K=A,A=R,R=K),P=hi(A,R),lA(this,P,p),this}}function lA(p,N,A,R){var P=N._milliseconds,K=GN(N._days),oe=GN(N._months);p.isValid()&&(R=R??!0,oe&&hl(p,Nt(p,"Month")+oe*A),K&&Yt(p,"Date",Nt(p,"Date")+K*A),P&&p._d.setTime(p._d.valueOf()+P*A),R&&a.updateOffset(p,K||oe))}var p3=sA(1,"add"),m3=sA(-1,"subtract");function oA(p){return typeof p=="string"||p instanceof String}function g3(p){return B(p)||f(p)||oA(p)||h(p)||E3(p)||b3(p)||p===null||p===void 0}function b3(p){var N=l(p)&&!c(p),A=!1,R=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],P,K,oe=R.length;for(P=0;PA.valueOf():A.valueOf()9999?me(A,N?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?N?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",me(A,"Z")):me(A,N?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function D3(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var p="moment",N="",A,R,P,K;return this.isLocal()||(p=this.utcOffset()===0?"moment.utc":"moment.parseZone",N="Z"),A="["+p+'("]',R=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",P="-MM-DD[T]HH:mm:ss.SSS",K=N+'[")]',this.format(A+R+P+K)}function j3(p){p||(p=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var N=me(this,p);return this.localeData().postformat(N)}function B3(p,N){return this.isValid()&&(B(p)&&p.isValid()||wn(p).isValid())?hi({to:this,from:p}).locale(this.locale()).humanize(!N):this.localeData().invalidDate()}function P3(p){return this.from(wn(),p)}function H3(p,N){return this.isValid()&&(B(p)&&p.isValid()||wn(p).isValid())?hi({from:this,to:p}).locale(this.locale()).humanize(!N):this.localeData().invalidDate()}function L3(p){return this.to(wn(),p)}function cA(p){var N;return p===void 0?this._locale._abbr:(N=Is(p),N!=null&&(this._locale=N),this)}var uA=H("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(p){return p===void 0?this.localeData():this.locale(p)});function dA(){return this._locale}var Sm=1e3,Iu=60*Sm,Im=60*Iu,hA=(365*400+97)*24*Im;function Ou(p,N){return(p%N+N)%N}function fA(p,N,A){return p<100&&p>=0?new Date(p+400,N,A)-hA:new Date(p,N,A).valueOf()}function pA(p,N,A){return p<100&&p>=0?Date.UTC(p+400,N,A)-hA:Date.UTC(p,N,A)}function U3(p){var N,A;if(p=St(p),p===void 0||p==="millisecond"||!this.isValid())return this;switch(A=this._isUTC?pA:fA,p){case"year":N=A(this.year(),0,1);break;case"quarter":N=A(this.year(),this.month()-this.month()%3,1);break;case"month":N=A(this.year(),this.month(),1);break;case"week":N=A(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":N=A(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":N=A(this.year(),this.month(),this.date());break;case"hour":N=this._d.valueOf(),N-=Ou(N+(this._isUTC?0:this.utcOffset()*Iu),Im);break;case"minute":N=this._d.valueOf(),N-=Ou(N,Iu);break;case"second":N=this._d.valueOf(),N-=Ou(N,Sm);break}return this._d.setTime(N),a.updateOffset(this,!0),this}function k3(p){var N,A;if(p=St(p),p===void 0||p==="millisecond"||!this.isValid())return this;switch(A=this._isUTC?pA:fA,p){case"year":N=A(this.year()+1,0,1)-1;break;case"quarter":N=A(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":N=A(this.year(),this.month()+1,1)-1;break;case"week":N=A(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":N=A(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":N=A(this.year(),this.month(),this.date()+1)-1;break;case"hour":N=this._d.valueOf(),N+=Im-Ou(N+(this._isUTC?0:this.utcOffset()*Iu),Im)-1;break;case"minute":N=this._d.valueOf(),N+=Iu-Ou(N,Iu)-1;break;case"second":N=this._d.valueOf(),N+=Sm-Ou(N,Sm)-1;break}return this._d.setTime(N),a.updateOffset(this,!0),this}function F3(){return this._d.valueOf()-(this._offset||0)*6e4}function Y3(){return Math.floor(this.valueOf()/1e3)}function z3(){return new Date(this.valueOf())}function G3(){var p=this;return[p.year(),p.month(),p.date(),p.hour(),p.minute(),p.second(),p.millisecond()]}function W3(){var p=this;return{years:p.year(),months:p.month(),date:p.date(),hours:p.hours(),minutes:p.minutes(),seconds:p.seconds(),milliseconds:p.milliseconds()}}function q3(){return this.isValid()?this.toISOString():null}function V3(){return O(this)}function K3(){return g({},S(this))}function Z3(){return S(this).overflow}function J3(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ue("N",0,0,"eraAbbr"),ue("NN",0,0,"eraAbbr"),ue("NNN",0,0,"eraAbbr"),ue("NNNN",0,0,"eraName"),ue("NNNNN",0,0,"eraNarrow"),ue("y",["y",1],"yo","eraYear"),ue("y",["yy",2],0,"eraYear"),ue("y",["yyy",3],0,"eraYear"),ue("y",["yyyy",4],0,"eraYear"),Q("N",KN),Q("NN",KN),Q("NNN",KN),Q("NNNN",sF),Q("NNNNN",lF),Me(["N","NN","NNN","NNNN","NNNNN"],function(p,N,A,R){var P=A._locale.erasParse(p,R,A._strict);P?S(A).era=P:S(A).invalidEra=p}),Q("y",Ve),Q("yy",Ve),Q("yyy",Ve),Q("yyyy",Ve),Q("yo",oF),Me(["y","yy","yyy","yyyy"],gt),Me(["yo"],function(p,N,A,R){var P;A._locale._eraYearOrdinalRegex&&(P=p.match(A._locale._eraYearOrdinalRegex)),A._locale.eraYearOrdinalParse?N[gt]=A._locale.eraYearOrdinalParse(p,P):N[gt]=parseInt(p,10)});function Q3(p,N){var A,R,P,K=this._eras||Is("en")._eras;for(A=0,R=K.length;A=0)return K[R]}function _3(p,N){var A=p.since<=p.until?1:-1;return N===void 0?a(p.since).year():a(p.since).year()+(N-p.offset)*A}function $3(){var p,N,A,R=this.localeData().eras();for(p=0,N=R.length;pK&&(N=K),mF.call(this,p,N,A,R,P))}function mF(p,N,A,R,P){var K=ml(p,N,A,R,P),oe=ui(K.year,0,K.dayOfYear);return this.year(oe.getUTCFullYear()),this.month(oe.getUTCMonth()),this.date(oe.getUTCDate()),this}ue("Q",0,"Qo","quarter"),Q("Q",ie),Me("Q",function(p,N){N[pn]=(Se(p)-1)*3});function gF(p){return p==null?Math.ceil((this.month()+1)/3):this.month((p-1)*3+this.month()%3)}ue("D",["DD",2],"Do","date"),Q("D",dt,$t),Q("DD",dt,fe),Q("Do",function(p,N){return p?N._dayOfMonthOrdinalParse||N._ordinalParse:N._dayOfMonthOrdinalParseLenient}),Me(["D","DD"],Mt),Me("Do",function(p,N){N[Mt]=Se(p.match(dt)[0])});var gA=Ca("Date",!0);ue("DDD",["DDDD",3],"DDDo","dayOfYear"),Q("DDD",Le),Q("DDDD",Ge),Me(["DDD","DDDD"],function(p,N,A){A._dayOfYear=Se(p)});function bF(p){var N=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return p==null?N:this.add(p-N,"d")}ue("m",["mm",2],0,"minute"),Q("m",dt,X),Q("mm",dt,fe),Me(["m","mm"],ta);var EF=Ca("Minutes",!1);ue("s",["ss",2],0,"second"),Q("s",dt,X),Q("ss",dt,fe),Me(["s","ss"],Gn);var NF=Ca("Seconds",!1);ue("S",0,0,function(){return~~(this.millisecond()/100)}),ue(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ue(0,["SSS",3],0,"millisecond"),ue(0,["SSSS",4],0,function(){return this.millisecond()*10}),ue(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ue(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ue(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ue(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ue(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Q("S",Le,ie),Q("SS",Le,fe),Q("SSS",Le,Ge);var El,bA;for(El="SSSS";El.length<=9;El+="S")Q(El,Ve);function xF(p,N){N[Wn]=Se(("0."+p)*1e3)}for(El="S";El.length<=9;El+="S")Me(El,xF);bA=Ca("Milliseconds",!1),ue("z",0,0,"zoneAbbr"),ue("zz",0,0,"zoneName");function SF(){return this._isUTC?"UTC":""}function IF(){return this._isUTC?"Coordinated Universal Time":""}var xe=M.prototype;xe.add=p3,xe.calendar=S3,xe.clone=I3,xe.diff=C3,xe.endOf=k3,xe.format=j3,xe.from=B3,xe.fromNow=P3,xe.to=H3,xe.toNow=L3,xe.get=ba,xe.invalidAt=Z3,xe.isAfter=O3,xe.isBefore=v3,xe.isBetween=T3,xe.isSame=A3,xe.isSameOrAfter=y3,xe.isSameOrBefore=w3,xe.isValid=V3,xe.lang=uA,xe.locale=cA,xe.localeData=dA,xe.max=Vk,xe.min=qk,xe.parsingFlags=K3,xe.set=Yr,xe.startOf=U3,xe.subtract=m3,xe.toArray=G3,xe.toObject=W3,xe.toDate=z3,xe.toISOString=M3,xe.inspect=D3,typeof Symbol<"u"&&Symbol.for!=null&&(xe[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),xe.toJSON=q3,xe.toString=R3,xe.unix=Y3,xe.valueOf=F3,xe.creationData=J3,xe.eraName=$3,xe.eraNarrow=eF,xe.eraAbbr=tF,xe.eraYear=nF,xe.year=Fr,xe.isLeapYear=ir,xe.weekYear=cF,xe.isoWeekYear=uF,xe.quarter=xe.quarters=gF,xe.month=fl,xe.daysInMonth=Uo,xe.week=xe.weeks=Vo,xe.isoWeek=xe.isoWeeks=Ko,xe.weeksInYear=fF,xe.weeksInWeekYear=pF,xe.isoWeeksInYear=dF,xe.isoWeeksInISOWeekYear=hF,xe.date=gA,xe.day=xe.days=Va,xe.weekday=an,xe.isoWeekday=hk,xe.dayOfYear=bF,xe.hour=xe.hours=Nk,xe.minute=xe.minutes=EF,xe.second=xe.seconds=NF,xe.millisecond=xe.milliseconds=bA,xe.utcOffset=t3,xe.utc=a3,xe.local=r3,xe.parseZone=i3,xe.hasAlignedHourOffset=s3,xe.isDST=l3,xe.isLocal=c3,xe.isUtcOffset=u3,xe.isUtc=rA,xe.isUTC=rA,xe.zoneAbbr=SF,xe.zoneName=IF,xe.dates=H("dates accessor is deprecated. Use date instead.",gA),xe.months=H("months accessor is deprecated. Use month instead",fl),xe.years=H("years accessor is deprecated. Use year instead",Fr),xe.zone=H("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",n3),xe.isDSTShifted=H("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",o3);function OF(p){return wn(p*1e3)}function vF(){return wn.apply(null,arguments).parseZone()}function EA(p){return p}var qt=F.prototype;qt.calendar=pe,qt.longDateFormat=mt,qt.invalidDate=_t,qt.ordinal=Ne,qt.preparse=EA,qt.postformat=EA,qt.relativeTime=zt,qt.pastFuture=yn,qt.set=$,qt.eras=Q3,qt.erasParse=X3,qt.erasConvertYear=_3,qt.erasAbbrRegex=rF,qt.erasNameRegex=aF,qt.erasNarrowRegex=iF,qt.months=Bo,qt.monthsShort=Po,qt.monthsParse=Lo,qt.monthsRegex=Fo,qt.monthsShortRegex=ko,qt.week=zo,qt.firstDayOfYear=qo,qt.firstDayOfWeek=Wo,qt.weekdays=tc,qt.weekdaysMin=ac,qt.weekdaysShort=nc,qt.weekdaysParse=Wt,qt.weekdaysRegex=fk,qt.weekdaysShortRegex=pk,qt.weekdaysMinRegex=mk,qt.isPM=bk,qt.meridiem=xk;function vm(p,N,A,R){var P=Is(),K=b().set(R,N);return P[A](K,p)}function NA(p,N,A){if(h(p)&&(N=p,p=void 0),p=p||"",N!=null)return vm(p,N,A,"month");var R,P=[];for(R=0;R<12;R++)P[R]=vm(p,R,A,"month");return P}function JN(p,N,A,R){typeof p=="boolean"?(h(N)&&(A=N,N=void 0),N=N||""):(N=p,A=N,p=!1,h(N)&&(A=N,N=void 0),N=N||"");var P=Is(),K=p?P._week.dow:0,oe,De=[];if(A!=null)return vm(N,(A+K)%7,R,"day");for(oe=0;oe<7;oe++)De[oe]=vm(N,(oe+K)%7,R,"day");return De}function TF(p,N){return NA(p,N,"months")}function AF(p,N){return NA(p,N,"monthsShort")}function yF(p,N,A){return JN(p,N,A,"weekdays")}function wF(p,N,A){return JN(p,N,A,"weekdaysShort")}function CF(p,N,A){return JN(p,N,A,"weekdaysMin")}bl("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(p){var N=p%10,A=Se(p%100/10)===1?"th":N===1?"st":N===2?"nd":N===3?"rd":"th";return p+A}}),a.lang=H("moment.lang is deprecated. Use moment.locale instead.",bl),a.langData=H("moment.langData is deprecated. Use moment.localeData instead.",Is);var Os=Math.abs;function RF(){var p=this._data;return this._milliseconds=Os(this._milliseconds),this._days=Os(this._days),this._months=Os(this._months),p.milliseconds=Os(p.milliseconds),p.seconds=Os(p.seconds),p.minutes=Os(p.minutes),p.hours=Os(p.hours),p.months=Os(p.months),p.years=Os(p.years),this}function xA(p,N,A,R){var P=hi(N,A);return p._milliseconds+=R*P._milliseconds,p._days+=R*P._days,p._months+=R*P._months,p._bubble()}function MF(p,N){return xA(this,p,N,1)}function DF(p,N){return xA(this,p,N,-1)}function SA(p){return p<0?Math.floor(p):Math.ceil(p)}function jF(){var p=this._milliseconds,N=this._days,A=this._months,R=this._data,P,K,oe,De,lt;return p>=0&&N>=0&&A>=0||p<=0&&N<=0&&A<=0||(p+=SA(QN(A)+N)*864e5,N=0,A=0),R.milliseconds=p%1e3,P=Be(p/1e3),R.seconds=P%60,K=Be(P/60),R.minutes=K%60,oe=Be(K/60),R.hours=oe%24,N+=Be(oe/24),lt=Be(IA(N)),A+=lt,N-=SA(QN(lt)),De=Be(A/12),A%=12,R.days=N,R.months=A,R.years=De,this}function IA(p){return p*4800/146097}function QN(p){return p*146097/4800}function BF(p){if(!this.isValid())return NaN;var N,A,R=this._milliseconds;if(p=St(p),p==="month"||p==="quarter"||p==="year")switch(N=this._days+R/864e5,A=this._months+IA(N),p){case"month":return A;case"quarter":return A/3;case"year":return A/12}else switch(N=this._days+Math.round(QN(this._months)),p){case"week":return N/7+R/6048e5;case"day":return N+R/864e5;case"hour":return N*24+R/36e5;case"minute":return N*1440+R/6e4;case"second":return N*86400+R/1e3;case"millisecond":return Math.floor(N*864e5)+R;default:throw new Error("Unknown unit "+p)}}function vs(p){return function(){return this.as(p)}}var OA=vs("ms"),PF=vs("s"),HF=vs("m"),LF=vs("h"),UF=vs("d"),kF=vs("w"),FF=vs("M"),YF=vs("Q"),zF=vs("y"),GF=OA;function WF(){return hi(this)}function qF(p){return p=St(p),this.isValid()?this[p+"s"]():NaN}function ic(p){return function(){return this.isValid()?this._data[p]:NaN}}var VF=ic("milliseconds"),KF=ic("seconds"),ZF=ic("minutes"),JF=ic("hours"),QF=ic("days"),XF=ic("months"),_F=ic("years");function $F(){return Be(this.days()/7)}var Ts=Math.round,vu={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function e5(p,N,A,R,P){return P.relativeTime(N||1,!!A,p,R)}function t5(p,N,A,R){var P=hi(p).abs(),K=Ts(P.as("s")),oe=Ts(P.as("m")),De=Ts(P.as("h")),lt=Ts(P.as("d")),Dt=Ts(P.as("M")),Ka=Ts(P.as("w")),As=Ts(P.as("y")),Nl=K<=A.ss&&["s",K]||K0,Nl[4]=R,e5.apply(null,Nl)}function n5(p){return p===void 0?Ts:typeof p=="function"?(Ts=p,!0):!1}function a5(p,N){return vu[p]===void 0?!1:N===void 0?vu[p]:(vu[p]=N,p==="s"&&(vu.ss=N-1),!0)}function r5(p,N){if(!this.isValid())return this.localeData().invalidDate();var A=!1,R=vu,P,K;return typeof p=="object"&&(N=p,p=!1),typeof p=="boolean"&&(A=p),typeof N=="object"&&(R=Object.assign({},vu,N),N.s!=null&&N.ss==null&&(R.ss=N.s-1)),P=this.localeData(),K=t5(this,!A,R,P),A&&(K=P.pastFuture(+this,K)),P.postformat(K)}var XN=Math.abs;function Tu(p){return(p>0)-(p<0)||+p}function Tm(){if(!this.isValid())return this.localeData().invalidDate();var p=XN(this._milliseconds)/1e3,N=XN(this._days),A=XN(this._months),R,P,K,oe,De=this.asSeconds(),lt,Dt,Ka,As;return De?(R=Be(p/60),P=Be(R/60),p%=60,R%=60,K=Be(A/12),A%=12,oe=p?p.toFixed(3).replace(/\.?0+$/,""):"",lt=De<0?"-":"",Dt=Tu(this._months)!==Tu(De)?"-":"",Ka=Tu(this._days)!==Tu(De)?"-":"",As=Tu(this._milliseconds)!==Tu(De)?"-":"",lt+"P"+(K?Dt+K+"Y":"")+(A?Dt+A+"M":"")+(N?Ka+N+"D":"")+(P||R||p?"T":"")+(P?As+P+"H":"")+(R?As+R+"M":"")+(p?As+oe+"S":"")):"P0D"}var Lt=Em.prototype;Lt.isValid=Xk,Lt.abs=RF,Lt.add=MF,Lt.subtract=DF,Lt.as=BF,Lt.asMilliseconds=OA,Lt.asSeconds=PF,Lt.asMinutes=HF,Lt.asHours=LF,Lt.asDays=UF,Lt.asWeeks=kF,Lt.asMonths=FF,Lt.asQuarters=YF,Lt.asYears=zF,Lt.valueOf=GF,Lt._bubble=jF,Lt.clone=WF,Lt.get=qF,Lt.milliseconds=VF,Lt.seconds=KF,Lt.minutes=ZF,Lt.hours=JF,Lt.days=QF,Lt.weeks=$F,Lt.months=XF,Lt.years=_F,Lt.humanize=r5,Lt.toISOString=Tm,Lt.toString=Tm,Lt.toJSON=Tm,Lt.locale=cA,Lt.localeData=dA,Lt.toIsoString=H("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Tm),Lt.lang=uA,ue("X",0,0,"unix"),ue("x",0,0,"valueOf"),Q("x",ut),Q("X",ht),Me("X",function(p,N,A){A._d=new Date(parseFloat(p)*1e3)}),Me("x",function(p,N,A){A._d=new Date(Se(p))});//! moment.js return a.version="2.30.1",r(wn),a.fn=xe,a.min=Kk,a.max=Zk,a.now=Jk,a.utc=b,a.unix=OF,a.months=TF,a.isDate=f,a.locale=bl,a.invalid=v,a.duration=hi,a.isMoment=B,a.weekdays=yF,a.parseZone=vF,a.localeData=Is,a.isDuration=Nm,a.monthsShort=AF,a.weekdaysMin=CF,a.defineLocale=UN,a.updateLocale=vk,a.locales=Tk,a.weekdaysShort=wF,a.normalizeUnits=St,a.relativeTimeRounding=n5,a.relativeTimeThreshold=a5,a.calendarFormat=x3,a.prototype=xe,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a})}(CS)),CS.exports}(function(e,t){(function(n,a){a(typeof FM=="function"?MEe():n.moment)})(Ar,function(n){//! moment.js locale configuration function a(i,l,o,c){var d={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[i+" Tage",i+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[i+" Monate",i+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[i+" Jahre",i+" Jahren"]};return l?d[o][0]:d[o][1]}var r=n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:a,mm:"%d Minuten",h:a,hh:"%d Stunden",d:a,dd:a,w:a,ww:"%d Wochen",M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return r})})();globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};ls.locale("de");ls.updateLocale("de",{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]});function DEe({income:e,index:t,primaryFieldName:n,remove:a,userAge:r,taxClassOptions:i,defaultTaxClass:l,calendarYear:o}){var C,M,B;const{setFieldValue:c,setFieldTouched:d}=tt(),[h,f]=T.useState(!1),m=Number((C=e==null?void 0:e.taxClass)==null?void 0:C.value)||0,g=xce();T.useEffect(()=>{var W;if(e.requireManualInput)return;const L=Number((e==null?void 0:e.bruttoIncome)||0);if(L===0)return;const H=Number((W=e==null?void 0:e.taxClass)==null?void 0:W.value)||0,U=g({brutto:L,taxClassSelected:H,isApplicant:n==="applicantIncomeData",churchTax:e.churchMember});c(`${n}.${u.LABOUR_INCOME}[${t}].${u.NETTO_INCOME}`,jg(U).toString())},[(M=e==null?void 0:e.taxClass)==null?void 0:M.value,e==null?void 0:e.churchMember,e==null?void 0:e.bruttoIncome,e.requireManualInput,n,t,c,g]),T.useEffect(()=>{if(o==null||!(e!=null&&e.incomeChangesInLast12Months))return;const L=Number((e==null?void 0:e.bruttoIncome)||0),H=Number((e==null?void 0:e.nettoIncome)||0);if(L===0&&H===0)return;((e==null?void 0:e.last30MonthsIncome)??[]).forEach((W,z)=>{const $=Number((W==null?void 0:W.bruttoIncome)??0),V=Number((W==null?void 0:W.nettoIncome)??0);$===0&&V===0&&(L>0||H>0)&&(L>0&&c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${z}].${u.BRUTTO_INCOME}`,String(L)),H>0&&c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${z}].${u.NETTO_INCOME}`,String(H)))})},[o,e==null?void 0:e.incomeChangesInLast12Months,e==null?void 0:e.bruttoIncome,e==null?void 0:e.nettoIncome,e==null?void 0:e.last30MonthsIncome,n,t,c]);const b=T.useMemo(()=>Number((e==null?void 0:e.nettoIncome)||0),[e.nettoIncome]),E=(L,H)=>{const U=Number(L.target.value);if(c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${H}].${u.BRUTTO_INCOME}`,U.toString()),!e.requireManualInput){const W=g({brutto:U,taxClassSelected:m,isApplicant:n==="applicantIncomeData",churchTax:e.churchMember});c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${H}].${u.NETTO_INCOME}`,jg(W).toString())}},S=(L,H)=>{const U=Number(L.target.value);c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${H}].${u.NETTO_INCOME}`,U)},I=()=>{var L;(L=e==null?void 0:e.last30MonthsIncome)==null||L.forEach((H,U)=>{c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${U}].${u.BRUTTO_INCOME}`,"0"),c(`${n}.${u.LABOUR_INCOME}[${t}].${u.LAST_30_MONTHS_INCOME}[${U}].${u.NETTO_INCOME}`,"0")})},O=em(T.useCallback(L=>{c(L,!0)},[c]),2e3),v=()=>{f(!0)},w=()=>{a(t),f(!1)},D=()=>{f(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(cn,{editableTitle:!0,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(b).toFixed(2).toLocaleString()||0} € (Netto)`}),className:"h-[40px] rounded-[15px] border border-black px-4",classNames:{parentContainer:Ae("++ rounded-t-[15px] border border-none")},onTouch:()=>{d(`${n}.${u.LABOUR_INCOME}[${t}].${u.JOB_TITLE}`)},onChange:L=>{c(`${n}.${u.LABOUR_INCOME}[${t}].${u.JOB_TITLE}`,L.target.value)},editableTitleValue:e.jobTitle,editableTitlePlaceholderValue:"Bezeichnung",text:"Arbeitseinkommen",mode:"delete",onDelete:v,children:s.jsxs("div",{className:"grid grid-cols-4 gap-4",children:[s.jsx(j,{className:"hidden",name:`${n}.${u.LABOUR_INCOME}[${t}].${u.TOTAL}`,label:"Total",placeholder:"Total"}),s.jsx(j,{type:"number",name:`${n}.${u.LABOUR_INCOME}[${t}].${u.BRUTTO_INCOME}`,label:s.jsxs("p",{children:["Brutto-Einkommen (mtl.)",s.jsx(Xe,{id:u.LABOUR_INCOME,...ho.bruttoIncome})]}),labelPosition:"left",customChangeEvent:L=>{const H=Number(L.target.value);if(!e.requireManualInput){const U=g({brutto:H,taxClassSelected:m,isApplicant:n==="applicantIncomeData",churchTax:e.churchMember});c(`${n}.${u.LABOUR_INCOME}[${t}].${u.NETTO_INCOME}`,jg(U).toString())}O(`${n}.${u.LABOUR_INCOME}[${t}].${u.MONTHS_INCOME_SYNCHRONIZED}`)},className:"col-span-2 col-start-1",classNames:{inputLabelSubContainer:"flex items-center justify-between max-w-[350px]",input:"border border-gray-700 rounded-[5px] pr-[30px] w-full max-w-[170px]",label:"w-[170px] flex-shrink-0"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",labelPosition:"left",readOnly:!e.requireManualInput,name:`${n}.${u.LABOUR_INCOME}[${t}].${u.NETTO_INCOME}`,label:"Netto-Einkommen (mtl.)",customChangeEvent:L=>{c(`${n}.${u.LABOUR_INCOME}[${t}].${u.NETTO_INCOME}`,Number(L.target.value))},className:"col-span-2 col-start-1",classNames:{inputLabelSubContainer:"flex items-center justify-between max-w-[350px]",input:"border border-gray-700 rounded-[5px] pr-[30px] w-full max-w-[170px]",label:"w-[170px] flex-shrink-0"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(Ft,{name:`${n}.${u.LABOUR_INCOME}[${t}].${u.TAX_CLASS}`,labelPosition:"left",options:[{label:"Auswahl treffen",value:"",isDisabled:!0},...i],defaultValue:l,isClearable:!1,closeMenuOnSelect:!0,label:"Steuerklasse",className:"col-span-2 col-start-1 max-w-[170px]"}),s.jsx(k,{name:`${n}.${u.LABOUR_INCOME}[${t}].${u.CHURCH_MEMBER}`,label:"Kirchenmitglied",className:"col-span-4"}),s.jsx(k,{name:`${n}.${u.LABOUR_INCOME}[${t}].${u.REQUIRE_MANUAL_INPUT}`,label:"Manuelle Eingabe gewünscht (deaktiviert die automatische Netto Berechnung)",className:"col-span-3"}),o==null&&s.jsx(k,{name:`${n}.${u.LABOUR_INCOME}[${t}].${u.WILL_LOSE_JOB_SOON}`,label:"In naher Zukunft fällt dieses Arbeitseinkommen weg",className:"col-span-3"}),r<25&&s.jsx(k,{name:`${n}.${u.LABOUR_INCOME}[${t}].${u.STUDENT_OR_HOLIDAY_JOB}`,label:"Es handelt sich bei dieser Stelle um einen Schüler- oder Ferienjob",className:"col-span-3"}),s.jsx(k,{name:`${n}.${u.LABOUR_INCOME}[${t}].${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:o!=null?`Einkommensänderung im Kalenderjahr ${o}`:"Einkommensänderung in den letzten 30 Monaten",className:"col-span-3"}),e.incomeChangesInLast12Months&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"col-span-full flex justify-start",children:s.jsx("button",{title:"Leeren",type:"button",className:"text-md mb-2 h-[40px] w-[100px] rounded-md border border-black bg-primaryGray font-chakra hover:bg-primaryDarkGray",onClick:I,children:"Leeren"})}),s.jsx("div",{className:"col-span-full grid grid-cols-8 gap-4 xl:grid-cols-10",children:(B=e==null?void 0:e.last30MonthsIncome)==null?void 0:B.map((L,H)=>{const U=L.month??"";return s.jsxs("div",{className:"col-span-2 gap-2",children:[s.jsx("p",{className:"text-center font-semibold xl:text-left",children:o!=null?`${U.replace(/\s\d{4}$/,"")} ${o}`:U}),s.jsx(j,{name:`${n}.${u.LABOUR_INCOME}[${t}]${u.LAST_30_MONTHS_INCOME}[${H}].month`,label:"Monat",className:"hidden"}),s.jsx("p",{children:"Brutto"}),s.jsx(j,{type:"number",name:`${n}.${u.LABOUR_INCOME}[${t}]${u.LAST_30_MONTHS_INCOME}[${H}].bruttoIncome`,showLabel:!1,customChangeEvent:W=>E(W,H),className:"max-w-[200px]",classNames:{inputLabelSubContainer:"max-w-[200px]",input:"border border-gray-700 rounded-[5px] pr-[30px] max-w-[200px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx("p",{children:"Netto"}),s.jsx(j,{type:"number",name:`${n}.${u.LABOUR_INCOME}[${t}]${u.LAST_30_MONTHS_INCOME}[${H}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:W=>S(W,H),className:"max-w-[200px]",classNames:{inputLabelSubContainer:"max-w-[200px]",input:Ae("max-w-[200px] rounded-[5px] border border-gray-700 pr-[30px]",{"text-gray-500":!e.requireManualInput})},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]},L.month)})})]})]})},e.id),s.jsx(Es,{open:h,onConfirm:w,onCancel:D,onClose:D})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function jEe({income:e,index:t,primaryFieldName:n,remove:a,arrayOfPreviousMonths:r,calendarYear:i}){const{setFieldValue:l,setFieldTouched:o}=tt(),[c,d]=T.useState(!1),h=bp(e);T.useEffect(()=>{(e==null?void 0:e.total)!==void 0&&Number(e==null?void 0:e.total)!==Number(h)&&l(`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.TOTAL}`,h)},[e,t,n,h,l]);const f=ls().format("MMMM"),m=()=>{d(!0)},g=()=>{a(t),d(!1)},b=()=>{d(!1)};return s.jsxs(s.Fragment,{children:[s.jsx(cn,{editableTitle:!0,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(h).toFixed(2).toLocaleString()||0} € (Netto)`}),className:"h-[40px] rounded-[15px] border border-black px-4",classNames:{parentContainer:Ae("++ rounded-t-[15px] border border-none")},onTouch:()=>{o(`${n}.${u.LABOUR_INCOME}[${t}].${u.JOB_TITLE}`)},onChange:E=>{l(`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.JOB_TITLE}`,E.target.value)},editableTitleValue:e.jobTitle,editableTitlePlaceholderValue:"Bezeichnung",text:"Selbstständigkeit",mode:"delete",onDelete:m,children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(j,{className:"hidden",name:`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.TOTAL}`,label:"Total"}),s.jsx(j,{type:"number",name:`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.NETTO_INCOME}`,label:i!=null?`Netto-Einkommen pro Monat im Jahr ${i}`:"Netto-Einkommen im aktuellen Kalendermonat:",className:"w-full",customChangeEvent:E=>{var S;l(`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.LAST_12_MONTHS_INCOME}[0].${u.NETTO_INCOME}`,E.target.value),((S=((e==null?void 0:e.last12MonthsIncome)??[])[0])==null?void 0:S.month)===void 0&&l(`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.LAST_12_MONTHS_INCOME}[0].month`,f)},classNames:{inputLabelSubContainer:"w-[140px]",input:"border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsxs("div",{children:[s.jsx(k,{name:`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.INCOME_CHANGES_IN_LAST_12_MONTHS}`,label:i!=null?`Einkommensänderung im Kalenderjahr ${i}`:"Gab es in den letzten 12 Kalendermonaten Abweichungen bei diesem Einkommen?",classNames:{label:"font-semibold"}}),(e==null?void 0:e.incomeChangesInLast12Months)===!0&&s.jsx("div",{className:"grid max-w-[750px] grid-flow-row grid-cols-6 gap-1",children:r.map((E,S)=>s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{className:"min-w-[100px] font-medium",children:E.includes(" ")?E.split(" ")[0]:E}),s.jsx(j,{name:`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.LAST_12_MONTHS_INCOME}[${S}].month`,label:"Monat",value:E,className:"hidden"}),s.jsx("div",{className:"relative",children:s.jsx(j,{type:"number",name:`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.LAST_12_MONTHS_INCOME}[${S}].${u.NETTO_INCOME}`,showLabel:!1,customChangeEvent:I=>{S===0&&l(`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.NETTO_INCOME}`,I.target.value)},onChangeCapture:()=>{l(`${n}.${u.SELF_EMPLOYMENT_INCOME}[${t}].${u.LAST_12_MONTHS_INCOME}[${S}].month`,E)},label:"Netto-Einkommen",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[262px]",input:"border border-gray-700 rounded-[5px] pr-[30px] max-w-[262px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]},E))})]})]})},e.id),s.jsx(Es,{open:c,onConfirm:g,onCancel:b,onClose:b})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const tf=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}];function Uf({values:e,type:t,memberApplicationFormValues:n,userIndex:a,primaryFieldNameOverride:r,calendarYear:i}){const{setFieldValue:l}=tt(),o=T.useMemo(()=>{if(i!=null)return yT(i);const f=[];for(let m=0;m<12;m++)f.push(ls().subtract(m,"months").format("MMMM"));return f},[i]),c=T.useMemo(()=>tf[0],[]),d=r??(t==="applicant"?u.APPLICANT_INCOME_DATA:t==="partner"?u.PARTNER_INCOME_DATA:t==="kids"?`${u.KIDS_INCOME_DATA}[${a}]`:`${u.OTHER_MEMBERS_INCOME_DATA}[${a}]`),h=Number(n.age);return s.jsxs(s.Fragment,{children:[(e==null?void 0:e.apprenticeshipWageIncome)&&e.apprenticeshipWageIncome.length>0&&s.jsx(CEe,{incomeEntries:e.apprenticeshipWageIncome,primaryFieldName:d,onDeleteAccordion:()=>{l(`${d}.${u.APPRENTICESHIP_WAGE_INCOME}`,[]),l(`${d}.${u.APPRENTICESHIP_WAGE_INCOME_DISMISSED}`,!0)}}),s.jsx(Si,{name:`${d}.${u.LABOUR_INCOME}`,render:({remove:f})=>{var m;return s.jsx(s.Fragment,{children:(m=e==null?void 0:e.labourIncome)==null?void 0:m.map((g,b)=>s.jsx(DEe,{income:g,index:b,primaryFieldName:d,remove:f,userAge:h,memberApplicationFormValues:n,taxClassOptions:tf,defaultTaxClass:c,arrayOfPreviousMonths:o,calendarYear:i},g==null?void 0:g.id))})}}),s.jsx(Si,{name:`${d}.${u.SELF_EMPLOYMENT_INCOME}`,render:({remove:f})=>{var m;return s.jsx(s.Fragment,{children:(m=e==null?void 0:e.selfEmploymentIncome)==null?void 0:m.map((g,b)=>s.jsx(jEe,{income:g,index:b,primaryFieldName:d,remove:f,userAge:h,memberApplicationFormValues:n,taxClassOptions:tf,defaultTaxClass:c,arrayOfPreviousMonths:o,calendarYear:i},g==null?void 0:g.id))})}}),t!=="kids"?s.jsx(s.Fragment,{children:s.jsx(Si,{name:`${d}.${u.OTHER_INCOME}`,render:({remove:f})=>{var g;const m=r!=null;return s.jsx(s.Fragment,{children:(g=e==null?void 0:e.otherIncome)==null?void 0:g.map((b,E)=>m&&i!=null?s.jsx(ppe,{income:b,index:E,primaryFieldName:d,remove:f,memberApplicationFormValues:n,calendarYear:i,sumInfoConfig:ho.babOtherIncomeSum},E):s.jsx(wEe,{income:b,index:E,type:t,primaryFieldName:d,remove:f,memberApplicationFormValues:n,taxClassOptions:tf,defaultTaxClass:c,arrayOfPreviousMonths:o},E))})}})}):s.jsx(s.Fragment,{children:s.jsx(Si,{name:`${d}.${u.OTHER_INCOME}`,render:({remove:f})=>{var m;return s.jsx(s.Fragment,{children:(m=e==null?void 0:e.otherIncome)==null?void 0:m.map((g,b)=>s.jsx(REe,{income:g,index:b,primaryFieldName:d,remove:f,memberApplicationFormValues:n,taxClassOptions:tf,defaultTaxClass:c,arrayOfPreviousMonths:o},b))})}})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const BEe=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}];function PEe({personId:e,calendarYear:t,memberApplicationFormValues:n}){var O;const{values:a,setFieldValue:r}=tt(),i=(O=a.babIncomeByPersonId)==null?void 0:O[e],l=(i==null?void 0:i.labourIncome)??[],o=(i==null?void 0:i.selfEmploymentIncome)??[],c=(i==null?void 0:i.otherIncome)??[];T.useEffect(()=>{var v;((v=a.babIncomeByPersonId)==null?void 0:v[e])===void 0&&r(`${u.BAB_INCOME_BY_PERSON_ID}.${e}`,{labourIncome:[],selfEmploymentIncome:[],otherIncome:[]})},[e,r,a.babIncomeByPersonId]);const d=`${u.BAB_INCOME_BY_PERSON_ID}.${e}`,h=BEe[0],f=()=>{r(`${d}.${u.LABOUR_INCOME}`,[...l,{id:Kn(),taxClass:h,total:void 0,requireManualInput:!1,last30MonthsIncome:l1(t),last12MonthsIncome:l1(t)}])},m=()=>{r(`${d}.${u.SELF_EMPLOYMENT_INCOME}`,[...o,{id:Kn(),nettoIncome:void 0,total:void 0,last12MonthsIncome:dpe(t)}])},g=()=>{r(`${d}.${u.OTHER_INCOME}`,[...c,{id:Kn(),jobTitle:"",total:void 0}])},b=l.length<3,E=o.length<2,S=c&&c.length>0,I=`${u.BAB_INCOME_BY_PERSON_ID}.${e}`;return s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[s.jsx(Je,{type:"button",text:"Arbeitseinkommen",leftIcon:s.jsx(_a,{}),className:Ae("max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black"),disabled:!b,onClick:f}),s.jsx(Je,{type:"button",text:"Selbstständigkeit",leftIcon:s.jsx(_a,{}),className:Ae("max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black"),disabled:!E,onClick:m}),s.jsx(Je,{type:"button",text:"Andere Einkünfte",disabled:!!S,className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",onClick:g})]}),s.jsx("div",{className:"flex flex-col gap-4",children:s.jsx(Uf,{values:i??null,type:"partner",memberApplicationFormValues:n,primaryFieldNameOverride:I,calendarYear:t})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function HEe(e){return Number(e).toFixed(2).toLocaleString()}const LEe="Einkommen bleibt außer Betracht (Aufenthaltsort unbekannt / rechtlich oder tatsächlich an Unterhaltszahlungen gehindert)";function UEe({personId:e,personTotalNetto:t=0,personName:n,childrenWhenIncomeNotDisregarded:a}){var o;const{values:r}=tt(),i=`${u.BAB_INCOME_DISREGARDED_BY_PERSON_ID}.${e}`,l=((o=r.babIncomeDisregardedByPersonId)==null?void 0:o[e])??!0;return s.jsx(cn,{mode:"display",rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`Gesamt: ${HEe(t)} €`}),classNames:{parentContainer:"border border-black bg-white"},text:n,children:s.jsxs("div",{className:"flex flex-col gap-4 pb-4 pt-2",children:[s.jsx(k,{name:i,label:LEe,classNames:{label:"font-medium"}}),!l&&s.jsx("div",{className:"flex flex-col gap-4",children:a})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Tl(e,t){return{id:e,name:t,memberApplicationFormValues:{id:e,name:t,age:99}}}function kEe(e){if(!e)return 0;const t=(e.labourIncome??[]).map(r=>nE(r)).reduce((r,i)=>Number(r)+Number(i),0)||0,n=(e.selfEmploymentIncome??[]).map(r=>bp(r)).reduce((r,i)=>Number(r)+Number(i),0)||0,a=(e.otherIncome??[]).map(r=>Number((r==null?void 0:r.total)??(r==null?void 0:r.nettoIncome)??0)||0).reduce((r,i)=>r+i,0)||0;return Number(t)+Number(n)+Number(a)}function ig(e){var t;return(e==null?void 0:e.currentlyInEducation)===!0&&Vg((t=e==null?void 0:e.typeOfEducation)==null?void 0:t.value)}function FEe(){var m,g,b,E;const{applicantState:e}=wt(),{values:t,setFieldValue:n}=tt(),a=e==null?void 0:e.applicantData,r=(m=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:m.partner,i=T.useMemo(()=>{var S;return((S=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:S.kids)??[]},[(g=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:g.kids]),l=T.useMemo(()=>{var S;return((S=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:S.householdMembers)??[]},[(b=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:b.householdMembers]),o=fpe(e==null?void 0:e.houseHoldMembersApplication),c=T.useMemo(()=>{const S=[];if(ig(a)){const I=(a==null?void 0:a.name)||"Antragsteller*in",O=[];for(let v=0;v<2;v++){const w=o[v];w?O.push({id:w.id??`applicant-parent-${v}`,name:w.name||`Elternteil ${v+1} von ${I}`,memberApplicationFormValues:w}):O.push(Tl(`applicant-parent-${v}-placeholder`,`Elternteil ${v+1} von ${I}`))}r?O.push({id:r.id??"applicant-partner",name:r.name||`Partner*in von ${I}`,memberApplicationFormValues:r}):O.push(Tl("applicant-partner-placeholder",`Partner*in von ${I}`)),S.push({entitledPersonName:I,educationStartDate:a==null?void 0:a.educationStartDate,persons:O})}if(ig(r)){const I=(r==null?void 0:r.name)||"Partner*in",O=[];for(let v=0;v<2;v++)O.push(Tl(`partner-parent-${v}-placeholder`,`Elternteil ${v+1} von ${I}`));a?O.push({id:`partner-partner-${a.id??"applicant"}`,name:a.name||`Partner*in von ${I}`,memberApplicationFormValues:a}):O.push(Tl("partner-partner-placeholder",`Partner*in von ${I}`)),S.push({entitledPersonName:I,educationStartDate:r==null?void 0:r.educationStartDate,persons:O})}return i.forEach((I,O)=>{if(ig(I)){const v=(I==null?void 0:I.name)||`Kind ${O+1}`,w=I.id??String(O),D=[];for(let C=0;C<2;C++)D.push(Tl(`kid-${w}-parent-${C}-placeholder`,`Elternteil ${C+1} von ${v}`));D.push(Tl(`kid-${w}-partner-placeholder`,`Partner*in von ${v}`)),S.push({entitledPersonName:v,educationStartDate:I==null?void 0:I.educationStartDate,persons:D})}}),l.filter(I=>uo(I)).forEach((I,O)=>{if(ig(I)){const v=(I==null?void 0:I.name)||`Sonstige Person ${O+1}`,w=I.id??String(O),D=[];for(let C=0;C<2;C++)D.push(Tl(`other-${w}-parent-${C}-placeholder`,`Elternteil ${C+1} von ${v}`));D.push(Tl(`other-${w}-partner-placeholder`,`Partner*in von ${v}`)),S.push({entitledPersonName:v,educationStartDate:I==null?void 0:I.educationStartDate,persons:D})}}),S},[a,r,i,l,o]),d=T.useMemo(()=>c.flatMap(S=>S.persons),[c]);T.useEffect(()=>{const S=t.babIncomeDisregardedByPersonId??{};d.forEach(I=>{S[I.id]===void 0&&n(`${u.BAB_INCOME_DISREGARDED_BY_PERSON_ID}.${I.id}`,!0)})},[d,n,t.babIncomeDisregardedByPersonId]);const h=u1((E=c[0])==null?void 0:E.educationStartDate),f=T.useMemo(()=>{const S={},I=t.babIncomeByPersonId??{};return d.forEach(O=>{S[O.id]=kEe(I[O.id])}),S},[t.babIncomeByPersonId,d]);return s.jsxs("div",{className:"mt-8 flex flex-col gap-4 border-t border-black pt-8",children:[s.jsx("div",{className:"block pb-4",children:s.jsxs("p",{className:"text-left font-normal text-black",children:["Diese Abfrage erscheint, weil"," ",s.jsx("strong",{children:"eine Person im Haushalt Anspruch auf BAB oder BAföG haben könnte."}),s.jsx("br",{}),"Damit die Berechnung stimmt, tragen Sie bitte die"," ",s.jsxs("strong",{children:["Einkommen der angezeigten Personen aus dem Jahr ",h]})," ","ein."]})}),c.flatMap(S=>{const I=u1(S.educationStartDate);return S.persons.map(O=>s.jsx(UEe,{personId:O.id,personTotalNetto:f[O.id]??0,personName:O.name,childrenWhenIncomeNotDisregarded:s.jsx(PEe,{personId:O.id,calendarYear:I,memberApplicationFormValues:O.memberApplicationFormValues})},O.id))})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function YEe(){const{applicantState:e}=wt(),t=e==null?void 0:e.incomeData;return T.useMemo(()=>new vT(t),[t])}function zEe(){return T.useCallback(async(e,t)=>{console.log("Submit Handler",e,t)},[])}function GEe(){const{applicantState:e,setIncomeDataState:t}=wt(),n=e.incomeData;fu({currentState:n,updateState:t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const WEe=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}];function qEe({memberApplicationFormValues:e,userIndex:t}){var I,O;const{values:n,setFieldValue:a}=tt(),r=e,i=n.kidsIncomeData,l=T.useMemo(()=>i?i[t]:void 0,[i,t]),c=Number(r.age)>=15,d=WEe[0],h=((l==null?void 0:l.labourIncome)??[]).length<3,f=((l==null?void 0:l.selfEmploymentIncome)??[]).length<2,m=((l==null?void 0:l.apprenticeshipWageIncome)??[]).length===0,g=()=>{if(h){const v={id:Kn(),taxClass:d,total:void 0,last30MonthsIncome:jl(),last12MonthsIncome:jl().slice(0,12)};a(`${u.KIDS_INCOME_DATA}[${t}].${u.LABOUR_INCOME}`,[...(l==null?void 0:l.labourIncome)??[],v])}},b=()=>{if(f){const v={id:Kn(),nettoIncome:void 0,total:void 0};a(`${u.KIDS_INCOME_DATA}[${t}].${u.SELF_EMPLOYMENT_INCOME}`,[...(l==null?void 0:l.selfEmploymentIncome)??[],v])}},E=()=>{const v=QL(e),w={[u.MEMBER_ID]:e==null?void 0:e.id,[u.OTHER_INCOME]:[...(l==null?void 0:l.otherIncome)??[],v]};a(`${u.KIDS_INCOME_DATA}[${t}]`,{...l,...w})},S=()=>{m&&(a(`${u.KIDS_INCOME_DATA}[${t}].${u.APPRENTICESHIP_WAGE_INCOME}`,[{id:Kn(),nettoIncome:void 0,startDate:void 0,endDate:void 0}]),a(`${u.KIDS_INCOME_DATA}[${t}].${u.APPRENTICESHIP_WAGE_INCOME_DISMISSED}`,!1))};return s.jsx(cn,{defaultOpen:!0,mode:"display",rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`Gesamt: ${Number(_L(l,"kids")||0).toFixed(2).toLocaleString()||0} €`}),classNames:{parentContainer:Ae("border border-black bg-white ")},text:`${r.name||`(Pflege-)Kind ${t+1}`}`,children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[(r==null?void 0:r.currentlyInEducation)===!0&&gf((I=r==null?void 0:r.typeOfEducation)==null?void 0:I.value)&&s.jsx(Je,{type:"button",text:"Ausbildungsvergütung",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[270px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!m,onClick:S}),c&&s.jsxs(s.Fragment,{children:[s.jsx(Je,{type:"button",text:"Arbeitseinkommen",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!h,onClick:g}),s.jsx(Je,{type:"button",text:"Selbstständigkeit",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!f,onClick:b})]}),s.jsx(Je,{type:"button",text:"Andere Einkünfte",disabled:(l==null?void 0:l.otherIncome)&&((O=l==null?void 0:l.otherIncome)==null?void 0:O.length)>0,className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",onClick:E})]}),s.jsx("div",{className:"flex flex-col gap-4",children:s.jsx(Uf,{values:l,type:"kids",memberApplicationFormValues:e,userIndex:t})})]})},(r==null?void 0:r.id)||t)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const VEe=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}];function KEe({...e}){var mt,Vt,_t,nn,Ee,Ne,Ze,zt,yn,Ln,St,ne,Ie,re,ie,fe,Ge,Et,It,dt,ea;const{applicantState:t}=wt(),{values:n,setFieldValue:a}=tt(),r=Yn();GEe();const i=t.applicantData,l=(mt=t.houseHoldMembersApplication)==null?void 0:mt.partner,o=T.useMemo(()=>{var ye,Le;return(Le=(ye=t.houseHoldMembersApplication)==null?void 0:ye.householdMembers)==null?void 0:Le.map(je=>Sfe(je,["incomeData"]))},[(Vt=t.houseHoldMembersApplication)==null?void 0:Vt.householdMembers]),c=(_t=t.houseHoldMembersApplication)==null?void 0:_t.partner,d=(nn=t.houseHoldMembersApplication)!=null&&nn.kids&&((Ee=t.houseHoldMembersApplication)==null?void 0:Ee.kids.length)>0?(Ne=t.houseHoldMembersApplication)==null?void 0:Ne.kids:void 0,h=(Ze=t.houseHoldMembersApplication)!=null&&Ze.householdMembers&&((zt=t.houseHoldMembersApplication)==null?void 0:zt.householdMembers.length)>0?(yn=t.houseHoldMembersApplication)==null?void 0:yn.householdMembers:void 0,f=!!c,m=(c==null?void 0:c.marriedOrInRegisteredPartnership)===!0,g=!!h,b=VEe[0],E=T.useMemo(()=>{var ye;return((ye=n.applicantIncomeData)==null?void 0:ye.labourIncome)??[]},[(Ln=n.applicantIncomeData)==null?void 0:Ln.labourIncome]),S=T.useMemo(()=>{var ye;return((ye=n.applicantIncomeData)==null?void 0:ye.selfEmploymentIncome)??[]},[(St=n.applicantIncomeData)==null?void 0:St.selfEmploymentIncome]),I=(ne=n.applicantIncomeData)==null?void 0:ne.otherIncome,O=(Ie=n.applicantIncomeData)==null?void 0:Ie.apprenticeshipWageIncome,v=T.useMemo(()=>{var ye;return((ye=n.partnerIncomeData)==null?void 0:ye.labourIncome)??[]},[(re=n.partnerIncomeData)==null?void 0:re.labourIncome]),w=T.useMemo(()=>{var ye;return((ye=n.partnerIncomeData)==null?void 0:ye.selfEmploymentIncome)??[]},[(ie=n.partnerIncomeData)==null?void 0:ie.selfEmploymentIncome]),D=(fe=n.partnerIncomeData)==null?void 0:fe.otherIncome,C=(Ge=n.partnerIncomeData)==null?void 0:Ge.apprenticeshipWageIncome,M=T.useMemo(()=>{const ye=(E==null?void 0:E.map(Ve=>nE(Ve)).reduce((Ve,ut)=>Number(Ve)+Number(ut),0))||0,Le=(S==null?void 0:S.map(Ve=>bp(Ve)).reduce((Ve,ut)=>Number(Ve)+Number(ut),0))||0,je=(O==null?void 0:O.map(Ve=>Number((Ve==null?void 0:Ve.nettoIncome)??0)||0).reduce((Ve,ut)=>Ve+ut,0))||0,Ht=(I==null?void 0:I.map(Ve=>tE(Ve)).reduce((Ve,ut)=>Number(Ve)+(Number(ut)||0),0))||0;return Number(Number(ye)+Number(Le)+Number(je)+Number(Ht))},[E,S,O,I]),B=T.useMemo(()=>{const ye=(v==null?void 0:v.map(Ve=>nE(Ve)).reduce((Ve,ut)=>Number(Ve)+(Number(ut)||0),0))||0,Le=(w==null?void 0:w.map(Ve=>bp(Ve)).reduce((Ve,ut)=>Number(Ve)+(Number(ut)||0),0))||0,je=(C==null?void 0:C.map(Ve=>Number((Ve==null?void 0:Ve.nettoIncome)??0)||0).reduce((Ve,ut)=>Ve+ut,0))||0,Ht=(D==null?void 0:D.map(Ve=>tE(Ve)).reduce((Ve,ut)=>Number(Ve)+(Number(ut)||0),0))||0;return Number(Number(ye)+Number(Le)+Number(je)+Number(Ht))},[v,w,C,D]),L=((Et=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:Et.livingWithSomeone)===!0,H=T.useMemo(()=>h==null?void 0:h.map((ye,Le)=>{var je,Ht;return((Ht=(je=n==null?void 0:n.otherMembersIncomeData)==null?void 0:je[Le])==null?void 0:Ht.labourIncome)??[]}),[h,n==null?void 0:n.otherMembersIncomeData])??[],U=T.useMemo(()=>h==null?void 0:h.map((ye,Le)=>{var je,Ht;return((Ht=(je=n==null?void 0:n.otherMembersIncomeData)==null?void 0:je[Le])==null?void 0:Ht.selfEmploymentIncome)??[]}),[h,n==null?void 0:n.otherMembersIncomeData])??[],W=E.length<3,z=S.length<2,$=!O||O.length===0,V=v.length<3,F=w.length<2,te=!C||C.length===0,se=()=>{a(`${u.APPLICANT_INCOME_DATA}.${u.LABOUR_INCOME}`,[...E??[],{id:Kn(),taxClass:b,total:void 0,last30MonthsIncome:jl(),last12MonthsIncome:jl().slice(0,12)}])},pe=()=>{a(`${u.APPLICANT_INCOME_DATA}.${u.SELF_EMPLOYMENT_INCOME}`,[...S??[],{id:Kn(),nettoIncome:void 0,total:void 0}])},be=()=>{a(`${u.APPLICANT_INCOME_DATA}.${u.OTHER_INCOME}`,[...I??[],{id:Kn(),total:void 0}])},we=()=>{a(`${u.APPLICANT_INCOME_DATA}.${u.APPRENTICESHIP_WAGE_INCOME}`,[{id:Kn(),nettoIncome:void 0,startDate:void 0,endDate:void 0}]),a(`${u.APPLICANT_INCOME_DATA}.${u.APPRENTICESHIP_WAGE_INCOME_DISMISSED}`,!1)},ve=()=>{a(`${u.PARTNER_INCOME_DATA}.${u.LABOUR_INCOME}`,[...v??[],{id:Kn(),taxClass:b,total:void 0,last30MonthsIncome:jl(),last12MonthsIncome:jl().slice(0,12)}])},Ue=()=>{a(`${u.PARTNER_INCOME_DATA}.${u.SELF_EMPLOYMENT_INCOME}`,[...w??[],{id:Kn(),nettoIncome:void 0,total:void 0}])},Re=()=>{a(`${u.PARTNER_INCOME_DATA}.${u.OTHER_INCOME}`,[...D??[],{id:Kn(),total:void 0}])},ue=()=>{a(`${u.PARTNER_INCOME_DATA}.${u.APPRENTICESHIP_WAGE_INCOME}`,[{id:Kn(),nettoIncome:void 0,startDate:void 0,endDate:void 0}]),a(`${u.PARTNER_INCOME_DATA}.${u.APPRENTICESHIP_WAGE_INCOME_DISMISSED}`,!1)},ze=ye=>{var je;const Le=(je=n==null?void 0:n.otherMembersIncomeData)==null?void 0:je[ye];a(`${u.OTHER_MEMBERS_INCOME_DATA}[${ye}].${u.LABOUR_INCOME}`,[...(Le==null?void 0:Le.labourIncome)??[],{id:Kn(),taxClass:b,total:void 0,last30MonthsIncome:jl(),last12MonthsIncome:jl().slice(0,12)}])},Qe=ye=>{var je;const Le=(je=n==null?void 0:n.otherMembersIncomeData)==null?void 0:je[ye];a(`${u.OTHER_MEMBERS_INCOME_DATA}[${ye}].${u.SELF_EMPLOYMENT_INCOME}`,[...(Le==null?void 0:Le.selfEmploymentIncome)??[],{id:Kn(),nettoIncome:void 0,total:void 0}])},me=ye=>{var je;const Le=(je=n==null?void 0:n.otherMembersIncomeData)==null?void 0:je[ye];a(`${u.OTHER_MEMBERS_INCOME_DATA}[${ye}].${u.OTHER_INCOME}`,[...(Le==null?void 0:Le.otherIncome)??[],{id:Kn(),total:void 0}])},it=ye=>{a(`${u.OTHER_MEMBERS_INCOME_DATA}[${ye}].${u.APPRENTICESHIP_WAGE_INCOME}`,[{id:Kn(),nettoIncome:void 0,startDate:void 0,endDate:void 0}]),a(`${u.OTHER_MEMBERS_INCOME_DATA}[${ye}].${u.APPRENTICESHIP_WAGE_INCOME_DISMISSED}`,!1)};T.useEffect(()=>{const ye=(Le,je)=>{var ht;const Ht=(ht=je==null?void 0:je.typeOfEducation)==null?void 0:ht.value;if(!((je==null?void 0:je.currentlyInEducation)===!0&&gf(Ht)))return;const ut=Ye(n,Le),st=(ut==null?void 0:ut.apprenticeshipWageIncomeDismissed)===!0,We=ut==null?void 0:ut.apprenticeshipWageIncome;st||Array.isArray(We)&&We.length>0||(a(`${Le}.${u.APPRENTICESHIP_WAGE_INCOME}`,[{id:Kn(),nettoIncome:void 0,startDate:void 0,endDate:void 0}]),a(`${Le}.${u.APPRENTICESHIP_WAGE_INCOME_DISMISSED}`,!1))};i&&ye(u.APPLICANT_INCOME_DATA,i),l&&ye(u.PARTNER_INCOME_DATA,l),(d??[]).forEach((Le,je)=>ye(`${u.KIDS_INCOME_DATA}[${je}]`,Le)),(h??[]).filter(Le=>uo(Le)).forEach((Le,je)=>ye(`${u.OTHER_MEMBERS_INCOME_DATA}[${je}]`,Le))},[d,h,i,l,a]);const En=T.useMemo(()=>{var We,ht;const ye=Ct=>{var $t;return(Ct==null?void 0:Ct.currentlyInEducation)===!0&&Vg(($t=Ct==null?void 0:Ct.typeOfEducation)==null?void 0:$t.value)},je=(i==null?void 0:i.currentlyInEducation)===!0&&Vg((We=i==null?void 0:i.typeOfEducation)==null?void 0:We.value),Ve=(l==null?void 0:l.currentlyInEducation)===!0&&Vg((ht=l==null?void 0:l.typeOfEducation)==null?void 0:ht.value),ut=(d??[]).some(ye)??!1,st=(h??[]).filter(Ct=>uo(Ct)).some(ye)??!1;return je||Ve||ut||st},[d,h,i,l]);return s.jsxs(Mi,{className:tn(Ae("flex flex-1 flex-col justify-between gap-4",e==null?void 0:e.className)),children:[s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"block",children:[s.jsxs("p",{className:"pb-4",children:[s.jsx("strong",{children:"Bitte tragen Sie hier das Einkommen aller angezeigten Haushaltsmitglieder ein."}),s.jsx(Xe,{id:"allIncome",...ho.allIncome}),s.jsx("br",{}),"Öffnen Sie dazu jeweils den entsprechenden Abschnitt und legen Sie für"," ",s.jsx("strong",{children:"jede Einkommensquelle"})," ein eigenes Feld an."]}),s.jsxs("p",{children:["Beispiel: Wenn eine Person mehrere Jobs hat, legen Sie für"," ",s.jsx("strong",{children:"jeden Job ein eigenes Arbeitseinkommen"})," an.",s.jsx("br",{}),"Klicken Sie dazu nach dem ersten Eintrag erneut auf das +-Symbol."]})]}),s.jsx(cn,{mode:"display",text:`${((It=t==null?void 0:t.applicantData)==null?void 0:It.name)||"Antragsteller*in"}`,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`Gesamt: ${Number(M||0).toFixed(2).toLocaleString()||0} €`}),classNames:{parentContainer:Ae("== border border-black bg-white ")},children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[s.jsxs(s.Fragment,{children:[(i==null?void 0:i.currentlyInEducation)===!0&&gf((dt=i==null?void 0:i.typeOfEducation)==null?void 0:dt.value)&&s.jsx(Je,{type:"button",text:"Ausbildungsvergütung",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[270px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!$,onClick:we}),s.jsx(Je,{type:"button",text:"Arbeitseinkommen",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!W,onClick:se}),s.jsx(Je,{type:"button",text:"Selbstständigkeit",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!z,onClick:pe})]}),s.jsx(Je,{type:"button",text:"Andere Einkünfte",disabled:I&&(I==null?void 0:I.length)>0,className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",onClick:be})]}),s.jsx("div",{className:"flex flex-col gap-4",children:i&&s.jsx(Uf,{values:n.applicantIncomeData,type:"applicant",memberApplicationFormValues:i})})]})}),L&&s.jsx(cn,{mode:"display",rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`Gesamt: ${Number(B||0).toFixed(2).toLocaleString()||0} €`}),classNames:{parentContainer:Ae("== border border-black bg-white ",{hidden:!f})},disabled:!f,text:m?"Partner*in (Ehe oder eingetragene Lebenspartnerschaft)":`${(c==null?void 0:c.name)||"Partner*in"}`,children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[(l==null?void 0:l.currentlyInEducation)===!0&&gf((ea=l==null?void 0:l.typeOfEducation)==null?void 0:ea.value)&&s.jsx(Je,{type:"button",text:"Ausbildungsvergütung",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[270px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!te,onClick:ue}),s.jsx(Je,{type:"button",text:"Arbeitseinkommen",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!V,onClick:ve}),s.jsx(Je,{type:"button",text:"Selbstständigkeit",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!F,onClick:Ue}),s.jsx(Je,{type:"button",text:"Andere Einkünfte",disabled:D&&(D==null?void 0:D.length)>0,className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",onClick:Re})]}),s.jsx("div",{className:"flex flex-col gap-4",children:l&&s.jsx(Uf,{values:n.partnerIncomeData,type:"partner",memberApplicationFormValues:l})})]})}),L&&(d==null?void 0:d.map((ye,Le)=>s.jsx(qEe,{memberApplicationFormValues:ye,userIndex:Le},ye.id))),L&&(h==null?void 0:h.filter(ye=>uo(ye)).map((ye,Le)=>{var We,ht,Ct,$t,X;const je=(n==null?void 0:n.otherMembersIncomeData)&&(n==null?void 0:n.otherMembersIncomeData[Le]),Ve=Number(ye.age)>=15,ut=((We=H[Le])==null?void 0:We.length)<3,st=((ht=U[Le])==null?void 0:ht.length)<2;return s.jsx(cn,{mode:"display",text:`${ye.name||`Sonstige Person ${Le+1}`}`,rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`Gesamt: ${Number(_L(je,"otherMembers")||0).toFixed(2).toLocaleString()||0} €`}),classNames:{parentContainer:Ae("== border border-black bg-white ",{hidden:!g})},children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsxs("div",{className:"flex flex-row gap-[23px]",children:[Ve&&(ye==null?void 0:ye.currentlyInEducation)===!0&&gf((Ct=ye==null?void 0:ye.typeOfEducation)==null?void 0:Ct.value)&&s.jsx(Je,{type:"button",text:"Ausbildungsvergütung",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[270px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!!(je!=null&&je.apprenticeshipWageIncome)&&((($t=je==null?void 0:je.apprenticeshipWageIncome)==null?void 0:$t.length)??0)>0,onClick:()=>it(Le)}),Ve&&s.jsxs(s.Fragment,{children:[s.jsx(Je,{type:"button",text:"Arbeitseinkommen",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!ut,onClick:()=>{ut&&ze(Le)}}),s.jsx(Je,{type:"button",text:"Selbstständigkeit",leftIcon:s.jsx(_a,{}),className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",disabled:!st,onClick:()=>{st&&Qe(Le)}})]}),s.jsx(Je,{type:"button",text:"Andere Einkünfte",disabled:(je==null?void 0:je.otherIncome)&&((X=je==null?void 0:je.otherIncome)==null?void 0:X.length)>0,className:"max-h-[40px] max-w-[220px] whitespace-nowrap px-3 py-1 outline outline-1 outline-black",onClick:()=>{me(Le)}})]}),s.jsx("div",{className:"flex flex-col gap-4",children:o&&s.jsx(Uf,{values:je,type:"otherMembers",memberApplicationFormValues:o[Le],userIndex:Le})})]})},(ye==null?void 0:ye.id)||Le)}))]}),En&&s.jsx(FEe,{}),s.jsxs("div",{className:"flex flex-row gap-[160px] pt-[88px]",children:[s.jsx(Eu,{onClick:()=>{r(qe.MEHRBEDARF)}}),s.jsx(Nu,{onClick:()=>{r(qe.WERBUNGSKOSTEN)}})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ZEe(){return bn().shape({})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function JEe(e){const t=YEe();return s.jsx(fs,{initialValues:t,validationSchema:ZEe(),onSubmit:zEe(),enableReinitialize:!0,children:s.jsx(KEe,{...e})})}const QEe=Object.freeze(Object.defineProperty({__proto__:null,default:JEe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function XEe(e,t){if(!e.claimAsylumSeekerBenefits&&(t==null?void 0:t.claimAsylumSeekerBenefits))return!0;const a=Number(t==null?void 0:t.age);return!PT(t)||a!==Number(e.age)}function PT(e){const t=(e==null?void 0:e.partnerIsParent)&&e.areYouTheParent,n=e==null?void 0:e.claimAsylumSeekerBenefits,a=Number(e==null?void 0:e.age)<18;return!t&&a&&!n}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function _Ee(e,t){const n=t.incomeData||{},r=((n==null?void 0:n.kidsIncomeData)||[]).map(i=>{const l=e==null?void 0:e.find(o=>o.id===i.memberId);return l?BN(i,QL(l)):i});return{...t,incomeData:{...n,kidsIncomeData:r}}}function $Ee(e,t){var l,o;const n=(l=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:l.kids,a=(o=t.houseHoldMembersApplication)==null?void 0:o.kids;let r=[];const i=n==null?void 0:n.filter(c=>PT(c));if(Pa(n,a)||(r=i==null?void 0:i.filter(c=>XEe(c,a==null?void 0:a.find(d=>d.id===c.id)))),r!=null&&r.length)return _Ee(r,e)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function eNe(e,t){const n=t.incomeData||{},r=((n==null?void 0:n.kidsIncomeData)||[]).map(i=>(e==null?void 0:e.find(o=>o.id===i.memberId))?BN(i,{kinderGeld:!0,kinderGeldInfo:{nettoIncome:dd.KINDER_GELD+""}}):i);return{...t,incomeData:{...n,kidsIncomeData:r}}}function tNe(e,t){var r,i;const n=(r=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:r.kids,a=(i=t.houseHoldMembersApplication)==null?void 0:i.kids;if(n!==a){const l=n==null?void 0:n.filter(o=>{const c=Number(o.age),d=c<18&&!o.currentlyInEducation,h=c<25&&!!o.currentlyInEducation,f=o.claimAsylumSeekerBenefits;if((d||h)&&!f){const g=a==null?void 0:a.find(w=>w.id===o.id),b=Number(g==null?void 0:g.age)<18&&!(g!=null&&g.currentlyInEducation),E=Number(g==null?void 0:g.age)<25&&!!(g!=null&&g.currentlyInEducation),S=g==null?void 0:g.claimAsylumSeekerBenefits,I=(b||E)&&!S,v=Number(g==null?void 0:g.age)!==c;if(!I||v)return!0}return!1});if(l&&(l!=null&&l.length))return eNe(l,e)}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function nNe(e,t){const n=t.incomeData||{},r=((n==null?void 0:n.kidsIncomeData)||[]).map(i=>(e==null?void 0:e.find(o=>o.id===i.memberId))?BN(i,{kinderGeld:!1,kinderGeldInfo:{}}):i);return{...t,incomeData:{...n,kidsIncomeData:r}}}function aNe(e,t){var r,i;const n=(r=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:r.kids,a=(i=t.houseHoldMembersApplication)==null?void 0:i.kids;if(n!==a&&(a!=null&&a.length)){const l=n==null?void 0:n.filter(o=>{const c=Number(o.age),d=c<18&&!o.currentlyInEducation,h=c<25&&!!o.currentlyInEducation,f=o.claimAsylumSeekerBenefits;if(!d&&!h||f){const g=a==null?void 0:a.find(O=>O.id===o.id),b=Number(g==null?void 0:g.age)<18&&!(g!=null&&g.currentlyInEducation),E=Number(g==null?void 0:g.age)<25&&!!(g!=null&&g.currentlyInEducation),S=g==null?void 0:g.claimAsylumSeekerBenefits;if(!(!b&&!E||S))return!0}return!1});if(l&&(l!=null&&l.length))return nNe(l,e)}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function rNe(e,t){const n=t.incomeData||{},r=((n==null?void 0:n.kidsIncomeData)||[]).map(i=>{const l=e==null?void 0:e.find(o=>o.id===i.memberId);if(l){let o={kinderGeld:!1,kinderGeldInfo:{},childSupportAdvance:!1,childSupportAdvanceInfo:{}};return l.claimAsylumSeekerBenefits||(o={childSupportAdvance:!1,childSupportAdvanceInfo:{}}),BN(i,o)}return i});return{...t,incomeData:{...n,kidsIncomeData:r}}}function iNe(e,t){var l,o;const n=(l=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:l.kids,a=(o=t.houseHoldMembersApplication)==null?void 0:o.kids;let r=[];const i=n==null?void 0:n.filter(c=>!PT(c));if(!Pa(n,a)&&(a!=null&&a.length)&&(r=i==null?void 0:i.filter(c=>{var E,S,I,O;const d=(E=a==null?void 0:a.find(v=>v.id===c.id))==null?void 0:E.partnerIsParent,h=(S=a==null?void 0:a.find(v=>v.id===c.id))==null?void 0:S.areYouTheParent,f=d&&h,m=Number((I=a==null?void 0:a.find(v=>v.id===c.id))==null?void 0:I.age)<18,g=(O=a==null?void 0:a.find(v=>v.id===c.id))==null?void 0:O.claimAsylumSeekerBenefits;return!(f||!m||g)})),r&&(r!=null&&r.length))return rNe(r,e)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sNe(e,t){var h,f,m,g,b,E,S,I,O,v,w,D;const n={...e.incomeData},a=cm(e,t),r=Ch(e,t),i=um(e,t),l=e.applicantData;e&&e.incomeData&&!e.incomeData.applicantIncomeData&&(e.incomeData.applicantIncomeData=new gc({memberId:l==null?void 0:l.id})),a.length&&(a==null||a.forEach(C=>{var M,B;Uc(C)&&(n.applicantIncomeData=new gc({memberId:C.id})),ii(C)&&!n.partnerIncomeData&&(n.partnerIncomeData=new gc({memberId:C.id})),vi(C)&&((n.kidsIncomeData||[]).find(H=>H.memberId===C.id)||(M=n.kidsIncomeData)==null||M.push(new gc({memberId:C.id}))),Pr(C)&&((n.otherMembersIncomeData||[]).find(H=>H.memberId===C.id)||(B=n.otherMembersIncomeData)==null||B.push(new gc({memberId:C.id})))})),r.length&&(r==null||r.forEach(C=>{if(Uc(C)&&(n.applicantIncomeData=void 0),ii(C)&&(n.partnerIncomeData=void 0),vi(C)){const M=n.kidsIncomeData||[];n.kidsIncomeData=M.filter(B=>B.memberId!==C.id),n.kidsIncomeData.filter(B=>{var L,H;return(H=(L=e.houseHoldMembersApplication)==null?void 0:L.kids)==null?void 0:H.find(U=>U.id===B.memberId)})}if(Pr(C)){const M=n.otherMembersIncomeData||[];n.otherMembersIncomeData=M.filter(B=>B.memberId!==C.id),n.otherMembersIncomeData.filter(B=>{var L,H;return(H=(L=e.houseHoldMembersApplication)==null?void 0:L.householdMembers)==null?void 0:H.find(U=>U.id===B.memberId)})}}));const o=jne(),c=(f=(h=n==null?void 0:n.partnerIncomeData)==null?void 0:h.labourIncome)==null?void 0:f.reduce((C,M)=>C+Number((M==null?void 0:M.nettoIncome)||0),0);if(n.applicantIncomeData){const C=(m=e.houseHoldMembersApplication)==null?void 0:m.partner,M=(b=(g=e.houseHoldMembersApplication)==null?void 0:g.kids)==null?void 0:b.find(L=>L.areYouTheParent&&Number(L.age)<18);!C&&M&&(n.applicantIncomeData.labourIncome=(E=n.applicantIncomeData.labourIncome)==null?void 0:E.map(L=>L!=null&&L.taxClassSynchronized?L:{...L,taxClass:{label:"2",value:"2"},taxClassSynchronized:!0}));const B=sg({labourIncome:n.applicantIncomeData.labourIncome,CONSTANTS:o,partnersIncome:c,applicantState:{...e,incomeData:n},kids:(S=e.houseHoldMembersApplication)==null?void 0:S.kids});n.applicantIncomeData.labourIncome=B}if(n.partnerIncomeData){const C=sg({labourIncome:n.partnerIncomeData.labourIncome,CONSTANTS:o,partnersIncome:c,applicantState:{...e,incomeData:n},kids:(I=e.houseHoldMembersApplication)==null?void 0:I.kids});n.partnerIncomeData.labourIncome=C}if((O=n.kidsIncomeData)!=null&&O.length){const C=(v=n.kidsIncomeData)==null?void 0:v.map(M=>{var L;const B=sg({labourIncome:M.labourIncome,CONSTANTS:o,partnersIncome:c,applicantState:{...e,incomeData:n},kids:(L=e.houseHoldMembersApplication)==null?void 0:L.kids});return M.labourIncome=B,M});n.kidsIncomeData=C}if((w=n.otherMembersIncomeData)!=null&&w.length){const C=(D=n.otherMembersIncomeData)==null?void 0:D.map(M=>{var L;const B=sg({labourIncome:M.labourIncome,CONSTANTS:o,partnersIncome:c,applicantState:{...e,incomeData:n},kids:(L=e.houseHoldMembersApplication)==null?void 0:L.kids});return M.labourIncome=B,M});n.otherMembersIncomeData=C}if(i.filter(vi).length){let C={...e,incomeData:n};const M=tNe({...e,incomeData:n},t);M&&(C=M);const B=aNe(C,t);B&&(C=B);const L=$Ee(C,t);L&&(C=L);const H=iNe(C,t);return H&&(C=H),C}return{...e,incomeData:n}}function sg({labourIncome:e,CONSTANTS:t,partnersIncome:n,applicantState:a,kids:r}){return e==null?void 0:e.map(i=>{var o,c;const l=Number(((o=i.taxClass)==null?void 0:o.value)||1);if(Number((c=i.taxClass)==null?void 0:c.value)>4)return i;if(i!=null&&i.bruttoIncome&&!i.requireManualInput){const d=zL({brutto:Number(i.bruttoIncome),taxClassSelected:l,churchTax:i.churchMember,isApplicant:!0,CONSTANTS:t,careIncomeModifier:(m,g)=>YL({isApplicant:m,taxClassSelected:g,CONSTANTS:t,applicantState:a}),kids:r,partnersIncome:n}),h=i.last12MonthsIncome||[],f=i.last30MonthsIncome||[];return{...i,nettoIncome:jg(d),last12MonthsIncome:h,last30MonthsIncome:f}}return i})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var ce=(e=>(e.CAR_INSURANCE_WITHOUT_PART_FULL_AND_COVERAGE="carInsuranceWithoutPartFullAndCoverage",e.CAR_INSURANCE_WITHOUT_PART_FULL_AND_COVERAGE_INFO="carInsuranceWithoutPartFullAndCoverageInfo",e.UNDERAGE_CHILDREN_INSURANCE="underageChildrenInsurance",e.UNDERAGE_CHILDREN_INSURANCE_INFO="underageChildrenInsuranceInfo",e.OTHER_LEGALLY_REQUIRED_INSURANCE="otherLegallyRequiredInsurance",e.OTHER_LEGALLY_REQUIRED_INSURANCE_INFO="otherLegallyRequiredInsuranceInfo",e.SECTION_82_INCOME_TAX_PROVISIONS="section82IncomeTaxProvisions",e.SECTION_82_INCOME_TAX_PROVISIONS_INFO="section82IncomeTaxProvisionsInfo",e.INSURANCE_FOR_CHILDREN_UNDER_18="insuranceForChildrenUnder18",e.INSURANCE_FOR_CHILDREN_UNDER_18_INFO="insuranceForChildrenUnder18Info",e.COMPULSORY_INSURANCE_IN_STATE_HEALTH_OR_PENSION="compulsoryInsuranceInStateHealthOrPension",e.COMPULSORY_INSURANCE_IN_STATE_HEALTH_OR_PENSION_INFO="compulsoryInsuranceInStateHealthOrPensionInfo",e.CHILD_CARE_SUPPORT="childCareSupport",e.CHILD_CARE_SUPPORT_INFO="childCareSupportInfo",e.ADDITIONAL_MEAL_COSTS="additionalMealCosts",e.ADDITIONAL_MEAL_COSTS_INFO="additionalMealCostsInfo",e.COMMUTE_COSTS="commuteCosts",e.COMMUTE_COSTS_INFO="commuteCostsInfo",e.OTHER_WORK_RELATED_EXPENSES="otherWorkRelatedExpenses",e.OTHER_WORK_RELATED_EXPENSES_INFO="otherWorkRelatedExpensesInfo",e.DUAL_HOUSE_HOLD_COSTS="dualHouseHoldCosts",e.DUAL_HOUSE_HOLD_COSTS_INFO="dualHouseHoldCostsInfo",e.DUAL_HOUSE_HOLD_ADDITIONAL_MEAL_COSTS="dualHouseHoldAdditionalMealCosts",e.DUAL_HOUSE_HOLD_ADDITIONAL_MEAL_COSTS_INFO="dualHouseHoldAdditionalMealCostsInfo",e.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT="additionalExpensesFromEmployment",e.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT_INFO="additionalExpensesFromEmploymentInfo",e.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT="parentalIncomeTakenIntoAccount",e.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO="parentalIncomeTakenIntoAccountInfo",e.PAYMENTS_TO_A_DEPENDENT_PERSON="paymentsToADependentPerson",e.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO="paymentsToADependentPersonInfo",e.AMOUNT="amount",e.ENTITLED_TO_SUBSIDIES_FOR_TRAVEL="entitledToSubsidiesForTravel",e.LOCATION="location",e.DISTANCE_BETWEEN_HOME_AND_WORK="distanceBetweenHomeAndWork",e.DAYS_PER_WEEK_THE_ROUTE_COVERED="daysPerWeekTheRouteCovered",e.TYPE_OF_TRANSPORT="typeOfTransport",e.TYPE_OF_EXPENSE="typeOfExpense",e.NAME="name",e.SURNAME="surname",e.RELATIONSHIP="relationship",e.TOTAL="total",e))(ce||{});class Hi{constructor(t){y(this,"id","");y(this,"carInsuranceWithoutPartFullAndCoverage",!1);y(this,"carInsuranceWithoutPartFullAndCoverageInfo",new Nr);y(this,"underageChildrenInsurance",!1);y(this,"underageChildrenInsuranceInfo",new Nr);y(this,"otherLegallyRequiredInsurance",!1);y(this,"otherLegallyRequiredInsuranceInfo",new Nr);y(this,"section82IncomeTaxProvisions",!1);y(this,"section82IncomeTaxProvisionsInfo",new Nr);y(this,"insuranceForChildrenUnder18",!1);y(this,"insuranceForChildrenUnder18Info",new Nr);y(this,"compulsoryInsuranceInStateHealthOrPension",!1);y(this,"compulsoryInsuranceInStateHealthOrPensionInfo",new Nr);y(this,"childCareSupport",!1);y(this,"childCareSupportInfo",new Nr);y(this,"additionalMealCosts",!1);y(this,"additionalMealCostsInfo",new Nr);y(this,"commuteCosts",!1);y(this,"commuteCostsInfo",new Nr);y(this,"otherWorkRelatedExpenses",!1);y(this,"otherWorkRelatedExpensesInfo",new Nr);y(this,"dualHouseHoldCosts",!1);y(this,"dualHouseHoldCostsInfo",new Nr);y(this,"dualHouseHoldAdditionalMealCosts",!1);y(this,"dualHouseHoldAdditionalMealCostsInfo",new Nr);y(this,"additionalExpensesFromEmployment",!1);y(this,"additionalExpensesFromEmploymentInfo",new Nr);y(this,"parentalIncomeTakenIntoAccount",!1);y(this,"parentalIncomeTakenIntoAccountInfo",[]);y(this,"paymentsToADependentPerson",!1);y(this,"paymentsToADependentPersonInfo",[]);y(this,"total","");t&&Object.assign(this,t)}}class Nr{constructor(){y(this,"amount","")}}class HT{constructor(t){y(this,"applicant",null);y(this,"partner",null);y(this,"kids",[]);y(this,"otherMembers",[]);t&&(t.applicant?this.applicant=t.applicant:this.applicant=new Hi,t.partner&&(this.partner=t.partner),t!=null&&t.kids&&this.kids.push(...(t==null?void 0:t.kids)||[]),t.otherMembers&&(this.otherMembers=t.otherMembers))}}const MU=[{label:"Auswahl treffen",value:"",isDisabled:!0},{label:"Sonstige Verwandtschaft",value:"other"},{label:"(Pflege-) Mutter",value:"mother"},{label:"(Pflege-) Vater",value:"father"},{label:"(Pflege-) Kind",value:"child"},{label:"Oma",value:"grandMother"},{label:"Opa",value:"grandFather"},{label:"Onkel",value:"uncle"},{label:"Tante",value:"aunt"},{label:"Bruder",value:"brother"},{label:"Schwester",value:"sister"},{label:"Nichte",value:"niece"},{label:"Neffe",value:"nephew"},{label:"Enkelkind ",value:"grandChild"}],Ys={professionalCost:{title:"Was sind Werbungskosten bzw. Absetzungen?",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:'Im Zusammenhang mit Ihrem Einkommen haben Sie oft auch Ausgaben. Teilweise können Sie diese Ausgaben "einkommensmindernd" absetzen.'}),s.jsx("p",{children:"Dazu gehören Ausgaben im Zusammenhang mit Ihrem Arbeitsverhältnis (z. B. Fahrtkosten, Arbeitsmittel, Verpflegung), Unterhaltszahlungen, Elterneinkommen, das bei der Ausbildungsförderung (z. B. Berufsausbildungsbeihilfe, Ausbildungsgeld und Leistungen nach dem Berufsausbildungsförderungsgesetz (BAföG)) eines Kindes berücksichtigt wird, Aufwendungen für gesetzlich vorgeschriebene Versicherungen (z. B. Kfz- Haftpflichtversicherung), Private Versicherung minderjähriger Kinder."})]})},childCareSupport:{title:"Aufwendungen durch das Arbeitsverhältnis",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:s.jsx("strong",{children:"Werbungskosten/Absetzungen"})}),s.jsx("p",{children:"Im Zusammenhang mit einem Einkommen aus unselbständiger Erwerbstätigkeit entstehen oft Ausgaben (Werbungskosten). Notwendige Ausgaben werden einkommensmindernd berücksichtigt."}),s.jsx("p",{children:"Auszubildende Personen, Schülerinnen/Schüler oder Studierende erhalten einen dynamisierten Grundabsetzbetrag in Höhe der Minijob-Grenze (aktuell 520,00 Euro) auf das Erwerbseinkommen, soweit sie das 25. Lebensjahr noch nicht vollendet haben und den Switch „Ferienjob“ aktivieren. Die Ermittlung der Absetzungsbeträge bei der Einkommensberechnung erfolgt immer individuell. So werden beispielsweise die Ausgaben für die Fahrt zwischen Wohnung und Arbeitsstätte in der Regel mit 0,20 Euro je Entfernungskilometer vom Einkommen abgesetzt."}),s.jsx("p",{children:"Weitere Ausgaben, die als Werbungskosten abgesetzt werden, sind insbesondere:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Ausgaben im Zusammenhang mit Ihrem Arbeitsverhältnis (zum Beispiel Fahrtkosten für Bus und Bahn, Arbeitsmittel, Verpflegung),"}),s.jsx("li",{children:"Unterhaltszahlungen,"}),s.jsx("li",{children:"Elterneinkommen, das bei der Ausbildungsförderung (zum Beispiel Berufsausbildungsbeihilfe, Ausbildungsgeld und Leistungen nach dem Berufsausbildungsförderungsgesetz (BAföG)) eines Kindes berücksichtigt wird,"}),s.jsx("li",{children:"Aufwendungen für gesetzlich vorgeschriebene Versicherungen (zum Beispiel Kfz-Haftpflichtversicherung),"}),s.jsx("li",{children:"Private Versicherung minderjähriger Kinder."})]}),s.jsx("p",{children:"Für angemessene private Versicherungen für minderjährige Kinder werden vom Einkommen des minderjährigen Kindes monatlich pauschal 30,00 Euro abgesetzt."})]})},additionalExpensesFromEmployment:{title:"Weitere Ausgaben aus dem Arbeitsverhältnis",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"zum Beispiel doppelte Haushaltsführung, Arbeitsmittel, die nicht vom Arbeitgeber erstattet werden Sollten verschiedene Ausgaben vorliegen, führen Sie bitte die einzelnen Posten auf einem gesonderten Blatt auf und tragen hier die Gesamtsumme ein."})})},dualHouseHoldAdditionalMealCosts:{title:"Mehraufwendungen für Verpflegung wegen einer täglichen Abwesenheit von mindestens acht Stunden von der Wohnung und dem üblichen Beschäftigungsort, ohne dass eine doppelte Haushaltsführung vorliegt",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Für Tage mit mehr als achtstündiger Abwesenheit können die tatsächlichen Aufwendungen gegen Nachweis bis zur Höhe von 14,00 Euro und bei ganztägiger Abwesenheit (24 Stunden abwesend) bis zur Höhe von 28,00 Euro berücksichtigt werden."}),s.jsx("p",{children:"Bei einer Abwesenheit von mindestens 12 Stunden wird ein Pauschbetrag in Höhe von 6,00 Euro nach der Bürgergeld-Verordnung gewährt."})]})},paymentsToADependentPerson:{title:"Zahlungen an eine unterhaltsberechtigte Person außerhalb der Bedarfsgemeinschaft auf Grund eines Unterhaltstitels:",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:s.jsx("strong",{children:"Nachweise für Unterhaltsansprüche"})}),s.jsx("p",{children:"Im Rahmen der Prüfung von Unterhaltsansprüchen müssen Sie einen vorhandenen Unterhaltstitel (zum Beispiel Unterhaltsbeschluss, Unterhaltsurkunde, einstweilige Anordnung in Unterhaltssachen), Vergleich oder schriftliche Vereinbarungen, aus denen der Unterhaltsanspruch hervorgeht, vorlegen. Im Einzelfall kann auch die Vorlage des Originals notwendig werden (zum Beispiel im Falle einer Titelumschreibung nach § 727 Zivilprozessordnung)."}),s.jsx("p",{children:"Nur wenn bei einer Prüfung der Leistungsansprüche erkannt wird, dass bei tatsächlicher Gewährung von Leistungen nach dem SGB II Unterhaltsansprüche auf das Jobcenter übergehen könnten, werden die zur Verfolgung der Ansprüche notwendigen Unterlagen zur Akte genommen."}),s.jsx("p",{children:"Im Falle eines Scheidungsurteils oder Scheidungsbeschlusses ist nur die Vorlage des konkreten Unterhaltstitels erforderlich."})]})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function lNe(e,t){var l,o;const n=e.professionalCosts||new HT,a=cm(e,t),r=Ch(e,t),i=um(e,t);return n.applicant||(n.applicant=new Hi({id:((l=e.applicantData)==null?void 0:l.id)||"",name:((o=e.applicantData)==null?void 0:o.name)||""})),a==null||a.forEach(c=>{var d,h;if(ii(c)&&(n.partner=new Hi({id:(c==null?void 0:c.id)||"",name:(c==null?void 0:c.name)||""})),vi(c)){const f=new Hi({id:c.id||"",name:c.name||""});EM(n.kids||[],f.id)||(d=n.kids)==null||d.push(f)}if(Pr(c)){const f=new Hi({id:c.id||"",name:c.name||""});EM(n.kids||[],f.id)||(h=n.otherMembers)==null||h.push(f)}}),i==null||i.forEach(c=>{var d,h,f,m,g,b;((d=n.applicant)==null?void 0:d.id)===c.id&&(n.applicant=new Hi({...n.applicant,id:c.id,name:c.name||""})),((h=n.partner)==null?void 0:h.id)===c.id&&(n.partner=new Hi({...n.partner,id:c.id,name:c.name||""})),(f=n==null?void 0:n.kids)!=null&&f.find(E=>E.id===c.id)&&(n.kids=(m=n==null?void 0:n.kids)==null?void 0:m.map(E=>E.id===c.id?new Hi({...E,id:c.id,name:c.name||""}):E)),(g=n.otherMembers)!=null&&g.find(E=>E.id===c.id)&&(n.otherMembers=(b=n.otherMembers)==null?void 0:b.map(E=>E.id===c.id?new Hi({...E,id:c.id,name:c.name||""}):E))}),r==null||r.forEach(c=>{var d,h,f,m,g,b,E;((d=n.partner)==null?void 0:d.id)===c.id&&(n.partner=void 0),(h=n==null?void 0:n.kids)!=null&&h.find(S=>S.id===c.id)&&(n.kids=(f=n==null?void 0:n.kids)==null?void 0:f.filter(S=>S.id!==c.id),n.kids=(m=n==null?void 0:n.kids)==null?void 0:m.filter(S=>{var I,O;return(O=(I=e.houseHoldMembersApplication)==null?void 0:I.kids)==null?void 0:O.find(v=>v.id===S.id)})),(g=n.otherMembers)!=null&&g.find(S=>S.id===c.id)&&(n.otherMembers=(b=n.otherMembers)==null?void 0:b.filter(S=>S.id!==c.id),n.otherMembers=(E=n==null?void 0:n.otherMembers)==null?void 0:E.filter(S=>{var I,O;return(O=(I=e.houseHoldMembersApplication)==null?void 0:I.householdMembers)==null?void 0:O.find(v=>v.id===S.id)}))}),{...e,professionalCosts:n}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function oNe(e){const t=fv(FT);T.useEffect(()=>(t(n=>{const a=[];return e&&e.length&&(e==null||e.forEach(r=>{n.includes(r)||a.push(r)})),a.length?[...n,...a]:n}),()=>{t(n=>e&&e.length?e.filter(r=>!n.includes(r)):n)}),[t,e])}const cNe=[Ece,uce,mce,gce,bce,sNe,lNe,lpe];function wt(){const[e,t]=eh(Xg);oNe(cNe);const n=T.useCallback(f=>{t(m=>({...m,burgerGeldCalculationResult:f}))},[t]),a=T.useCallback(f=>{t(m=>({...m,additionalCosts:f}))},[t]),r=T.useCallback(f=>{t(m=>({...m,houseHoldMembersApplication:f}))},[t]),i=T.useCallback(f=>{t(m=>({...m,applicantData:f}))},[t]),l=T.useCallback(f=>{t(m=>({...m,livingCosts:f}))},[t]),o=T.useCallback(f=>{t(m=>({...m,incomeData:f}))},[t]),c=T.useCallback(f=>{t(m=>({...m,professionalCosts:f}))},[t]),d=T.useCallback(f=>{t(m=>({...m,financialAssets:f}))},[t]),h=T.useCallback(f=>{t(m=>({...m,additionalInformation:f}))},[t]);return T.useMemo(()=>({applicantState:e,setBurgerGeldCalculationResult:n,setAdditionalInformation:h,setAdditionalCosts:a,setApplicantState:i,setIncomeDataState:o,setLivingCosts:l,setProfessionalCosts:c,setHouseHoldMemberApplicationState:r,setFinancialAssets:d,setState:t}),[a,h,i,n,d,r,o,l,c,t,e])}function wh(){return eh(KU)}function DU(){return eh(VU)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Xe({id:e,title:t,content:n}){const[a,r]=DU();return s.jsx("span",{className:"relative inline align-super",children:s.jsx(l_,{className:ge("inline h-5 max-w-[27px] cursor-pointer fill-[#3D9C75]",{"fill-cyan-600":(a==null?void 0:a.id)===e}),onClick:()=>{r(a?null:{title:t,content:n,id:e})}})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function uNe(){var n,a,r;const{applicantState:e}=wt(),t=e.additionalCosts;return T.useMemo(()=>{var i,l,o;return new BL({...t,applicant:new Dl({...(i=e.additionalCosts)==null?void 0:i.applicant,id:((l=e.applicantData)==null?void 0:l.id)||"",name:((o=e.applicantData)==null?void 0:o.name)||""})})},[(n=e.additionalCosts)==null?void 0:n.applicant,(a=e.applicantData)==null?void 0:a.id,(r=e.applicantData)==null?void 0:r.name,t])}function dNe(){const{setAdditionalCosts:e,applicantState:t}=wt(),n=t.additionalCosts;fu({currentState:n,updateState:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Z1({isPanelActive:e,memberType:t,index:n}){var h,f,m,g;const{values:a}=tt(),r=a,{applicantState:i}=wt(),l=`${t}${typeof n=="number"?`[${n}]`:""}`,o=r[t];if(t==="additionalNeeds"||o===void 0||typeof o=="boolean"||o instanceof Array)return null;const c=t==="applicant"?"Antragsteller*in":"Partner*in",d=t==="applicant"?(h=i.applicantData)==null?void 0:h.name:(m=(f=i.houseHoldMembersApplication)==null?void 0:f.partner)==null?void 0:m.name;return s.jsx(s.Fragment,{children:s.jsx(cn,{classNames:{childrenContainer:"bg-white font-chakra max-width[1000px]"},text:d||c,disabled:!e,children:s.jsx("div",{className:"bg-white",children:s.jsxs("div",{className:"flex flex-col gap-[15px]",children:[s.jsx(k,{label:s.jsxs("p",{children:["Sind Sie schwanger? (nach der 12. Woche)",s.jsx(Xe,{id:`${l}.isPregnant`,...vr.isPregnant})]}),name:`${l}.isPregnant`,classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},disabled:!e}),(o==null?void 0:o.isPregnant)&&s.jsxs("div",{className:"-- mb-[15px] ml-[15px] bg-white py-[10px] pl-5",children:[s.jsx("div",{className:"pt-[10px]",children:s.jsx(J,{name:`${l}.dateOfExpectedBirth`,label:"Wann ist der voraussichtliche Entbindungstermin?",disabled:!e,classNames:{inputWrapper:"max-w-[262px] "}})}),s.jsx("div",{className:"pt-[10px]",children:s.jsx(k,{label:"Der werdende Kindsvater lebt außerhalb des Haushalts.",name:`${l}.theChildsFatherLivesOutsideTheHousehold`,classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},disabled:!e})})]}),s.jsx("p",{}),s.jsx(k,{label:"Haben Sie eine kostenaufwendige Ernährung?",name:`${l}.costlyDiet`,classNames:{label:"font-chakra font-medium text-[16px] "},disabled:!e}),s.jsx("p",{}),(o==null?void 0:o.costlyDiet)&&s.jsx("div",{className:"-- ml-[15px] bg-white pl-5",children:PL.map((b,E)=>s.jsx("div",{className:"flex items-center pb-[10px]",children:s.jsx(k,{name:`${l}.dietType${E+1}`,label:b.label,disabled:!e})},b.value))}),s.jsx(k,{label:s.jsxs("p",{children:["Besteht bei Ihnen ein Grad der Behinderung?",s.jsx(Xe,{id:`${l}.disability`,...vr.disability})]}),classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},name:`${l}.disability`,disabled:!e}),(o==null?void 0:o.disability)&&s.jsxs("div",{className:"-- mb-[15px] ml-[15px] bg-white py-[10px] pl-5",children:[s.jsx(Ft,{className:"font-chakra text-[18px] font-medium text-black",name:`${l}.disabilityDegree`,label:"Grad der Behinderung (%)",disabled:!e,options:[{label:"Auswahl treffen",value:"",isDisabled:!0},...HL],isClearable:!0,customClassNames:{inputContainer:"max-w-[262px] "}}),((g=o==null?void 0:o.disabilityDegree)==null?void 0:g.value)==="Sonstige"&&s.jsxs("div",{className:"flex items-center",children:[s.jsx(k,{name:`${l}.benefitsParticipation`,disabled:!e}),s.jsx("span",{className:"ml-3 py-5",children:"Ich erhalte Leistungen zur Teilhabe am Arbeitsleben nach Bundesjustizministerium: § 49 Neuntes Buch Sozialgesetzbuch (SGB IX) oder sonstige Hilfen zur Erlangung eines geeigneten Arbeitsplatzes oder Eingliederungshilfen nach Bundesjustizministerium: § 112 SGB Neuntes Buch Sozialgesetzbuch (SGB IX)."})]}),s.jsx(Ft,{name:`${l}.disabilityMarker`,label:"Merkzeichen",disabled:!e,options:[{label:"Auswahl treffen",value:"",isDisabled:!0},...LL],isClearable:!0,customClassNames:{label:"font-chakra font-medium text-[16px] leading-[23px] pt-[5px]",inputContainer:"max-w-[262px] "}})]}),s.jsx("p",{}),s.jsx(k,{classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},label:s.jsxs("p",{children:["Haben Sie einen Bedarf an Schulsachen?",s.jsx(Xe,{id:`${l}.schoolSupplies`,...vr.schoolSupplies})]}),name:`${l}.schoolSupplies`,disabled:!e}),(o==null?void 0:o.schoolSupplies)&&s.jsxs("div",{className:"-- mb-[15px] ml-[15px] bg-white py-[10px] pl-5",children:[s.jsx(J,{name:`${l}.enrollmentDate`,label:"Datum der (vorraussichtlichen) Einschulung",disabled:!e,classNames:{inputWrapper:"max-w-[262px] "}}),s.jsx("div",{className:"pt-[10px]",children:s.jsx(k,{classNames:{},name:`${l}.appliedForSupplies`,label:"Leistungen für den persönlichen Schulbedarf wurden bereits beantragt.",options:[{label:"Ja",value:!0},{label:"Nein",value:!1}],labelStyle:{fontSize:"16px",lineHeight:"23px",fontWeight:500}})})]}),s.jsx("p",{}),s.jsx(k,{label:"Sind Sie Opfer nationalsozialistischer Verfolgung oder ihnen gleichgestellt im Sinne des (SGB IX).",name:`${l}.victim`,classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},disabled:!e}),s.jsx("p",{}),s.jsx(k,{label:s.jsxs("p",{children:["Haben Sie einen unabweisbaren besonderen Bedarf z.B. durch Fahrten zu laufenden Umgangskontakten?",s.jsx(Xe,{id:`${l}.unavoidableSpecialNeed`,...vr.unavoidableSpecialNeed})]}),classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},name:`${l}.unavoidableSpecialNeed`,disabled:!e}),(o==null?void 0:o.unavoidableSpecialNeed)&&s.jsxs("div",{className:"-- mb-[15px] ml-[15px] bg-white py-[10px] pl-5",children:[s.jsx(j,{className:"text-",name:`${l}.specialNeedDescription`,label:"Bezeichnung des besonderen Bedarfs",disabled:!e,classNames:{inputSubContainer:"max-w-[262px] "}}),s.jsx("div",{className:"pt-[10px]",children:s.jsx(j,{type:"number",name:`${l}.specialNeedAmount`,label:"Höhe des unabweisbaren besonderen Bedarfs monatlich:",labelPosition:"top",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[131px] max-h-[27px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[131px] max-h-[27px] "},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsx("p",{}),s.jsx(k,{label:s.jsxs("p",{children:["Erhalten Sie Leistungen zur Teilhabe am Arbeitsleben, Hilfen zur Erlangung eines geeigneten Arbeitsplatzes oder Eingliederungshilfen (SGB IX)?",s.jsx(Xe,{id:`${l}.vocationalRehabilitationAndIntegrationAssistance`,...vr.vocationalRehabilitationAndIntegrationAssistance})]}),classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},name:`${l}.vocationalRehabilitationAndIntegrationAssistance`,disabled:!e}),s.jsx("p",{}),s.jsx(k,{label:" Nicht erwerbsfähig laut Gutachten der Agentur für Arbeit/des Jobcenters",name:`${l}.unableToWork`,classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},disabled:!e}),(o==null?void 0:o.unableToWork)&&s.jsx("div",{className:"ml-[15px] bg-white py-[10px] pl-5",children:s.jsx(k,{labelStyle:{fontSize:"16px",lineHeight:"23px",fontWeight:500},name:`${l}.holderOfDisabilityPass`,label:s.jsxs("p",{children:["Sind Sie Inhaber*in eines Ausweises nach §152 Absatz 5 SGB IX mit dem Merkzeichen G oder aG (nach Bundesjustizministerium: § 152 Abs. 5 Neuntes Buch Sozialgesetzbuch (SGB IX))?",s.jsx(Xe,{id:`${l}.holderOfDisabilityPass`,...vr.holderOfDisabilityPass})]}),options:[{label:"Ja",value:!0},{label:"Nein",value:!1}]})})]})})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function J1({isPanelActive:e,memberType:t}){var d;const{applicantState:n}=wt(),{values:a}=tt(),r=a,i=t,l=r[t];if(t==="additionalNeeds"||l===void 0||typeof l=="boolean"||!(l instanceof Array))return null;const o=t==="kids"?"(Pflege-)Kind":"Sonstige Person",c=P2(n);return s.jsx("div",{className:"space-y-4",children:(d=l==null?void 0:l.filter(h=>{if(t==="kids")return!0;const f=c.find(g=>g.id===h.id&&g.memberType===t&&Pr(g));return uo(f)}))==null?void 0:d.map((h,f)=>{var m;return s.jsxs(cn,{disabled:!e,text:(h==null?void 0:h.name)||`${`${o} ${f+1}`}`,classNames:{childrenContainer:"bg-white border border-"},children:[s.jsx("div",{className:"mb-[15px] flex items-center",children:s.jsx(k,{label:s.jsxs("p",{children:["Sind Sie schwanger? (nach der 12. Woche)",s.jsx(Xe,{id:`${i}.isPregnant`,...vr.isPregnant})]}),disabled:!e,classNames:{label:"font-chakra font-medium text-[16px] leading-[23px]"},name:`${i}[${f}].isPregnant`})}),s.jsx("div",{className:"mb-[15px] flex items-center",children:s.jsx(k,{label:"Haben Sie eine kostenaufwendige Ernährung?",name:`${i}[${f}].costlyDiet`,classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},disabled:!e})}),h.costlyDiet&&s.jsx("div",{className:"-- == ml-[15px] border-white bg-white py-[10px] pl-5",children:PL.map((g,b)=>s.jsx("div",{className:"flex items-center pb-[10px]",children:s.jsx(k,{label:g.label,name:`${i}[${f}].dietType${b+1}`,disabled:!e})},g.value))}),s.jsx("div",{className:"mb-[15px] flex items-center",children:s.jsx(k,{label:s.jsxs("p",{children:["Besteht bei Ihnen ein Grad der Behinderung?",s.jsx(Xe,{id:`${i}.disability`,...vr.disability})]}),classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},name:`${i}[${f}].disability`,disabled:!e})}),h.disability&&s.jsxs("div",{className:"ml-[15px] bg-white py-[10px] pl-5",children:[s.jsx(Ft,{className:"font-chakra text-[18px] font-medium text-black",name:`${i}[${f}].disabilityDegree`,disabled:!e,label:"Grad der Behinderung (%)",options:[{label:"Auswahl treffen",value:"",isDisabled:!0},...HL],isClearable:!0,customClassNames:{inputContainer:"max-w-[262px] "}}),((m=h.disabilityDegree)==null?void 0:m.value)==="Sonstige"&&s.jsxs("div",{className:"flex items-center",children:[s.jsx(k,{name:`${i}[${f}].benefitsParticipation`,disabled:!e}),s.jsx("span",{className:"ml-3",children:"Ich erhalte Leistungen zur Teilhabe am Arbeitsleben nach Bundesjustizministerium: § 49 Neuntes Buch Sozialgesetzbuch (SGB IX) oder sonstige Hilfen zur Erlangung eines geeigneten Arbeitsplatzes oder Eingliederungshilfen nach Bundesjustizministerium: § 112 SGB Neuntes Buch Sozialgesetzbuch (SGB IX)."})]}),s.jsx(Ft,{name:`${i}[${f}].disabilityMarker`,label:"Merkzeichen",disabled:!e,options:[{label:"Auswahl treffen",value:"",isDisabled:!0},...LL],isClearable:!0,customClassNames:{inputContainer:"max-w-[262px] "}})]}),s.jsx("div",{className:"my-[15px] flex items-center",children:s.jsx(k,{classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},label:s.jsxs("p",{children:["Haben Sie einen Bedarf an Schulsachen?",s.jsx(Xe,{id:`${i}.schoolSupplies`,...vr.schoolSupplies})]}),name:`${i}[${f}].schoolSupplies`,disabled:!e})}),h.schoolSupplies&&s.jsxs("div",{className:"mb-[15px] ml-[15px] max-w-xs bg-white py-[10px] pl-5",children:[s.jsx(J,{name:`${i}[${f}].enrollmentDate`,label:"Datum der (vorraussichtlichen) Einschulung",disabled:!e}),s.jsx(k,{classNames:{},name:`${i}[${f}].appliedForSupplies`,label:"Leistungen für den persönlichen Schulbedarf wurden bereits beantragt.",options:[{label:"Ja",value:!0},{label:"Nein",value:!1}]})]}),s.jsx("div",{className:"mb-[15px] flex items-center",children:s.jsx(k,{label:"Sind Sie Opfer nationalsozialistischer Verfolgung oder ihnen gleichgestellt im Sinne des (SGB IX).",name:`${i}[${f}].victim`,classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},disabled:!e})}),s.jsx("div",{className:"flex items-center pb-[15px]",children:s.jsx(k,{label:s.jsxs("p",{children:["Haben Sie einen unabweisbaren besonderen Bedarf z.B. durch Fahrten zu laufenden Umgangskontakten?",s.jsx(Xe,{id:`${i}.unavoidableSpecialNeed`,...vr.unavoidableSpecialNeed})]}),classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},name:`${i}[${f}].unavoidableSpecialNeed`,disabled:!e})}),h.unavoidableSpecialNeed&&s.jsxs("div",{className:"-- == ml-[15px] max-w-xs border border-white bg-white py-[10px] pl-5",children:[s.jsx(j,{className:"text-",name:`${i}.specialNeedDescription`,label:"Bezeichnung des besonderen Bedarfs",disabled:!e}),s.jsx("div",{className:"pt-[10px]",children:s.jsx(j,{type:"number",name:`${i}.specialNeedAmount`,label:"Höhe des unabweisbaren besonderen Bedarfs monatlich:",labelPosition:"top",className:"max-w-[262px]",classNames:{inputLabelSubContainer:"max-w-[131px] max-h-[27px]",input:" border border-gray-700 rounded-[5px] pr-[30px] max-w-[131px] max-h-[27px] "},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsx("div",{className:"mb-[15px] flex items-center",children:s.jsx(k,{name:`${i}[${f}].benefits`,label:s.jsxs("p",{children:["Erhalten Sie Leistungen zur Teilhabe am Arbeitsleben, Hilfen zur Erlangung eines geeigneten Arbeitsplatzes oder Eingliederungshilfen (SGB IX)?",s.jsx(Xe,{id:`${i}.vocationalRehabilitationAndIntegrationAssistance`,...vr.vocationalRehabilitationAndIntegrationAssistance})]}),classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},disabled:!e})}),s.jsx("div",{className:"flex items-center",children:s.jsx(k,{label:` Nicht erwerbsfähig laut Gutachten der Agentur für Arbeit/des Jobcenters`,name:`${i}[${f}].unableToWork`,classNames:{label:"font-chakra font-medium text-[16px] leading-[40px]"},disabled:!e})}),h.unableToWork&&s.jsx("div",{className:"ml-[15px] bg-white py-[10px] pl-5",children:s.jsx(k,{labelStyle:{fontSize:"16px",lineHeight:"23px",fontWeight:500},name:`${i}[${f}].holderOfDisabilityPass`,label:s.jsxs("p",{children:["Sind Sie Inhaber*in eines Ausweises nach §152 Absatz 5 SGB IX mit dem Merkzeichen G oder aG (nach Bundesjustizministerium: § 152 Abs. 5 Neuntes Buch Sozialgesetzbuch (SGB IX))?",s.jsx(Xe,{id:`${i}.holderOfDisabilityPass`,...vr.holderOfDisabilityPass})]}),options:[{label:"Ja",value:!0},{label:"Nein",value:!1}]})})]},f)})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function hNe(e){var c,d,h,f,m,g;const{applicantState:t}=wt(),n=(((d=(c=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:c.kids)==null?void 0:d.length)??0)>0,a=(((f=(h=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:h.householdMembers)==null?void 0:f.length)??0)>0,r=((m=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:m.livingWithSomeone)===!0,{values:i}=tt(),l=i[Wg.ADDITIONAL_NEEDS]||!1;dNe();const o=Yn();return s.jsxs(Mi,{className:e.className,children:[s.jsx(k,{name:Wg.ADDITIONAL_NEEDS,label:s.jsxs("p",{children:["In meinem Haushalt gibt es min. eine Person mit Mehrbedarf, z.B. wegen einer Behinderung, für Schulausstattung oder Schwangerschaft usw.",s.jsx(Xe,{id:Wg.ADDITIONAL_NEEDS,...vr.additionalNeeds})]})}),s.jsx("div",{className:"space-y-4 pt-[10px]",children:s.jsx(Z1,{memberType:"applicant",isPanelActive:l})}),((g=t.houseHoldMembersApplication)==null?void 0:g.partner)&&r&&s.jsx("div",{className:"pt-[15px]",children:s.jsx(Z1,{memberType:"partner",isPanelActive:l})}),n&&r&&s.jsx("div",{className:"pt-[15px]",children:s.jsx(J1,{memberType:"kids",isPanelActive:l})}),a&&r&&s.jsx("div",{className:"pt-[15px]",children:s.jsx(J1,{memberType:"otherMembers",isPanelActive:l})}),s.jsxs("div",{className:"flex flex-row gap-[160px] pt-[88px]",children:[s.jsx(Eu,{onClick:()=>{o(qe.PRO)}}),s.jsx(Nu,{onClick:()=>{o(qe.EINKOMMEN)}})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const la=Ce(),fNe=Ut().when("costlyDiet",(e,t)=>e?t.positive("Der Betrag muss positiv sein").required("Diätmenge ist erforderlich, wenn kostspielige Diät ja ist"):t.notRequired()),Q1=bn({label:le().required("Label ist erforderlich"),value:rm().required("Wert ist erforderlich")}),lg=bn({name:le().required("Name ist erforderlich"),isPregnant:la,theChildsFatherLivesOutsideTheHousehold:la,costlyDiet:la,dietType1:la,dietType2:la,dietType3:la,dietType4:la,dietType5:la,dietType6:la,dietType7:la,costlyDietAmount:fNe,disability:la,disabilityDegree:Q1.nullable().when("disability",(e,t)=>e?t.required("Ein Grad der Behinderung ist erforderlich, wenn Behinderung 'Ja' ist"):t.nullable().notRequired()),disabilityMarker:Q1.nullable().notRequired(),benefitsParticipation:la,schoolSupplies:la,enrollmentDate:Bt().nullable().when("schoolSupplies",(e,t)=>e?t.required("Das Anmeldedatum ist erforderlich, wenn Schulmaterial vorhanden ist"):t.nullable()),appliedForSupplies:la,victim:la,unavoidableSpecialNeed:la,vocationalRehabilitationAndIntegrationAssistance:la,specialNeedDescription:le().when("unavoidableSpecialNeed",(e,t)=>e?t.required("Eine Beschreibung des besonderen Bedarfs ist erforderlich, wenn der besondere Bedarf „Ja“ lautet"):t.notRequired()),specialNeedAmount:Ut().when("unavoidableSpecialNeed",(e,t)=>e?t.positive("Der Betrag muss positiv sein").required("Der Betrag für besondere Bedürfnisse ist erforderlich, wenn die besondere Bedürftigkeit „Ja“ lautet"):t.notRequired()),benefits:la,unableToWork:la,holderOfDisabilityPass:la}),pNe=bn({additionalNeeds:le().required("Dieses Feld ist erforderlich"),applicant:lg,partner:lg.optional(),child:ri().of(lg).optional(),otherMember:ri().of(lg).optional()});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function mNe(e){const t=uNe();return s.jsx(fs,{initialValues:t,validationSchema:pNe,onSubmit:n=>{console.log("Submit",n)},enableReinitialize:!0,children:s.jsx(hNe,{...e})})}const gNe=Object.freeze(Object.defineProperty({__proto__:null,default:mNe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function bNe(e){return ge("max-h-[40px] w-[132px] whitespace-nowrap px-3 py-1 text-[15px] outline outline-1",{"bg-primaryDarkGray outline-black ":e,"bg-primaryGray":!e})}function ev(e){return ge("max-h-[40px] w-[212px] whitespace-nowrap px-3 py-1 text-[15px] outline outline-1",{"bg-primaryDarkGray outline-black ":e,"bg-primaryGray":!e})}function ENe(e){return ge("max-h-[40px] w-[242px] whitespace-nowrap px-3 py-1 text-[15px] outline outline-1",{"bg-primaryDarkGray outline-black ":e,"bg-primaryGray":!e})}function jU(e){return ge("max-h-[40px] w-[300px] whitespace-nowrap px-3 py-1 text-[15px] outline outline-1",{"bg-primaryDarkGray outline-black ":e,"bg-primaryGray":!e})}function RS(e,t=0){let n="";return e.firstName&&(n=e.firstName),e.lastName&&(n+=" "+e.lastName),e.memberType==="applicant"&&!n&&(n="Antragsteller"),!n&&e.memberType==="otherMembers"&&(n=`Sonstige ${t+1}`),!n&&e.memberType==="kids"&&(n=`Kind ${t+1}`),!n&&e.memberType==="partner"&&(n="Partner*in"),n}function X1(e,t){let n="";const a=e.filter(i=>i.memberType==="kids"),r=e.filter(i=>i.memberType==="otherMembers");return(t.memberType==="applicant"||t.memberType==="partner")&&(n=RS(t)),t.memberType==="kids"&&(n=RS(t,a.indexOf(t))),t.memberType==="otherMembers"&&(n=RS(t,r.indexOf(t))),n}function NNe(e){var n,a,r,i,l,o,c,d;const t=[];return(n=e==null?void 0:e.additionalCosts)!=null&&n.partner&&t.push((a=e==null?void 0:e.additionalCosts)==null?void 0:a.partner),(i=(r=e==null?void 0:e.additionalCosts)==null?void 0:r.kids)==null||i.forEach(h=>{t.push(h)}),(o=(l=e==null?void 0:e.additionalCosts)==null?void 0:l.otherMembers)==null||o.forEach(h=>{t.push(h)}),(c=e==null?void 0:e.additionalCosts)!=null&&c.applicant&&t.push((d=e==null?void 0:e.additionalCosts)==null?void 0:d.applicant),t}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function xNe(){const e=wt();return T.useMemo(()=>new Jd(e.applicantState),[e.applicantState])}function SNe(){return T.useCallback(async(e,t)=>{try{t.setSubmitting(!1)}catch(n){console.error("Form submission error:",n),t.setSubmitting(!1)}},[])}function INe(){const{setAdditionalInformation:e,applicantState:t}=wt(),n=t.additionalInformation;fu({currentState:n,updateState:e})}const BU=T.createContext({currentTab:0,setCurrentTab:()=>{}});function PU(){var f,m;const{values:e}=tt(),{applicantState:t}=wt(),{currentTab:n,setCurrentTab:a}=T.useContext(BU),r=wt(),i=((m=(f=r==null?void 0:r.applicantState)==null?void 0:f.houseHoldMembersApplication)==null?void 0:m.livingWithSomeone)===!0,l=e.houseHoldMembersApplication.filter(g=>i?!0:g.memberType==="applicant"),o=l.map((g,b)=>({id:b,title:X1(l,g)})),c=P2(t),d=e.houseHoldMembersApplication.filter(g=>{if(i)return!0;const b=c.find(E=>E.id===g.id);return(b==null?void 0:b.memberType)==="otherMembers"?uo(b):g.memberType==="applicant"}),h=d.map((g,b)=>({id:b,title:X1(d,g)}));return{tabsList:o,filteredNotRelatedOtherPersonsTabsList:h,currentTab:n||0,setCurrentTab:a}}function ONe({children:e}){const[t,n]=T.useState(0),a=T.useMemo(()=>({currentTab:t,setCurrentTab:n}),[t]);return s.jsx(BU.Provider,{value:a,children:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function si({name:e,text:t,label:n,datePickerClasses:a={},type:r,className:i,classNames:l,disabled:o}){const{values:c,setFieldValue:d}=tt(),h=Ye(c,e);return s.jsxs("div",{className:ge("flex flex-col items-center",i),children:[Ti.IMMEDIATELY===r&&s.jsx(Je,{type:"button",text:t,disabled:o,className:ge("max-h-[40px] w-full max-w-[280px] whitespace-nowrap px-3 py-1 text-[15px] outline outline-1",{"max-w-[280px] bg-primaryDarkGray outline-black":!!c[e],"bg-primaryGray":!c[e]}),onClick:()=>{if(h)return d(e,!1);d(e,!0)}}),r!==Ti.IMMEDIATELY&&s.jsxs("div",{className:ge("flex size-full gap-2 rounded-[8px] border border-black bg-primaryGray px-4",{"bg-primaryGray":!!c[e]}),children:[s.jsx("span",{className:"flex shrink-0 items-center",children:t}),s.jsx(J,{name:e,disabled:o,label:n,className:ge("button-date-picker h-full",l==null?void 0:l.datePicker),classNames:{input:" bg-transparent w-full text-sm ",container:"h-full",inputWrapper:"h-full",...a}})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function jN({names:e}){const{values:t,setFieldValue:n}=tt(),a=Ye(t,e[0]),r=Ye(t,e[1]),i=Ye(t,e[2]),l=!!a,o=!!r,c=!!i;T.useEffect(()=>{a===void 0&&r===void 0&&i===void 0&&n(e[0],!0)},[a,r,i,n,e]);const d=h=>()=>{e==null||e.forEach(f=>{n(f,f===h)})};return s.jsxs(s.Fragment,{children:[s.jsx(Je,{type:"button",text:"Erstantrag",className:bNe(l),onClick:d(e[0])}),s.jsx(Je,{type:"button",text:"Weiterbewilligungsantrag",className:ev(o),onClick:d(e[1])}),s.jsx(Je,{type:"button",text:"Erhöhungsantrag",className:ev(c),onClick:d(e[2])})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function vNe(){const{values:e,setFieldValue:t}=tt(),n=Ye(e,x.CHILD_ALLOWANCE_REQUEST_IMMEDIATELY),a=Ye(e,x.CHILD_ALLOWANCE_REQUEST_FROM),r=!n&&!a;return T.useEffect(()=>{n===void 0&&t(x.CHILD_ALLOWANCE_REQUEST_IMMEDIATELY,!0)},[n,t]),s.jsx(cn,{mode:"display",text:"Kinderzuschlag",className:"border-[#1B1F4A]",classNames:{parentContainer:ge("max-w-[97%] border border-black bg-white ")},children:s.jsx("div",{className:"-- == border border-black bg-white",children:s.jsxs("div",{className:"pl-[10px] pt-[15px]",children:[s.jsx("div",{className:"font-chakra text-[18px] font-semibold",children:"Bitte beantworten Sie folgende Fragen zum Antrag auf Kinderzuschlag:"}),s.jsx("div",{children:s.jsxs("div",{className:"inline-grid auto-cols-max grid-cols-[auto_auto_auto] gap-4 gap-x-5 pt-[30px]",children:[s.jsx(jN,{names:[x.CHILD_ALLOWANCE_INITIAL_APPLICATION,x.CHILD_ALLOWANCE_FOR_CONTINUED_BENEFITS,x.CHILD_ALLOWANCE_FOR_INCREASE_REQUEST]}),s.jsx(si,{name:x.CHILD_ALLOWANCE_REQUEST_IMMEDIATELY,text:"ab sofort",label:"",type:Ti.IMMEDIATELY,className:"max-w-[132px]"}),s.jsx(si,{name:x.CHILD_ALLOWANCE_REQUEST_FROM,text:"ab dem:",placeholder:"Beschäftigt von",label:"",className:"max-w-[212px]"}),s.jsx(si,{name:x.CHILD_ALLOWANCE_REQUEST_UNTIL,text:"bis zum:",placeholder:"Beschäftigt bis",label:"",disabled:r,className:"max-w-[212px]"})]})}),s.jsxs("div",{className:"pt-[10px]",children:[s.jsx("div",{className:"pt-[30px] font-chakra text-[18px] font-semibold",children:"Postanschrift der zuständigen Familienkasse:"}),s.jsxs("div",{className:"space-y-4 pt-[10px]",children:[s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:x.RESPONSIBLE_FAMILY_FUND_STREET,type:"text",placeholder:"Straßenname",className:"max-w-[262px] flex-1",classNames:{input:"w-full border border-black rounded-md mb-[6px]",label:"font-chakra text-[18px] font-semibold leading-[23px]"}}),s.jsx(j,{name:x.RESPONSIBLE_FAMILY_FUND_BUILDING_NUMBER,type:"text",placeholder:"Nr.",className:"max-w-[51px]",classNames:{input:"w-full border border-black rounded-md mb-[6px]",label:"font-chakra text-[18px] font-semibold leading-[23px]"}})]}),s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:x.RESPONSIBLE_FAMILY_FUND_POSTAL_CODE,type:"text",placeholder:"PLZ",className:"max-w-[110px]",classNames:{input:"w-full border border-black rounded-md mb-[6px]",label:"font-chakra text-[18px] font-semibold leading-[23px]"}}),s.jsx(j,{name:x.RESPONSIBLE_FAMILY_FUND_LOCATION,type:"text",placeholder:"Ort",className:"max-w-[203px] flex-1",classNames:{input:"w-full border border-black rounded-md mb-[6px]",label:"font-chakra text-[18px] font-semibold leading-[23px]"}})]}),s.jsx("div",{className:"w-full",children:s.jsx(j,{name:x.CHILD_BENEFIT_NUMBER,placeholder:"Kindergeldnummer",type:"text",className:"max-w-[262px]",classNames:{input:"w-full border border-black rounded-md mb-[6px]",label:"font-chakra text-[18px] font-semibold leading-[23px]"}})})]})]})]})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function HU({currentTab:e,setCurrentTab:t,tabsList:n,className:a}){return s.jsx("div",{className:tn(Ae("flex flex-row rounded-t-md",a)),children:n.map((r,i)=>s.jsx("div",{onClick:()=>t(r.id),className:tn(Ae("flex h-[39px] w-fit cursor-pointer items-center justify-center truncate rounded-t-md border border-b-0 border-black px-[26px]",{"bg-primaryDarkGray":e===r.id,"bg-white":e!==r.id})),children:s.jsx("p",{className:Ae("truncate font-chakra text-[20px] font-medium leading-[26px] text-black"),children:r.title})},i))})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function om({error:e,debug:t=!1,options:n,labelClassName:a,labelStyle:r,optionLabelStyle:i,classNames:l,className:o,...c}){const[d,,{setValue:h}]=uu(c.name),f=e;T.useEffect(()=>{c.defaultValue&&!d.value&&h(c.defaultValue)},[d.value,c.defaultValue,h]),T.useEffect(()=>{t&&console.log("FormikRadioButtonGroup",{field:d,rest:c})},[t,d,c]);const m=g=>{const b=n.find(S=>S.value.toString()===g.target.value),E=b?b.value:g.target.value;h(E)};return s.jsxs("div",{className:ge("flex flex-col gap-3",o),role:"group","aria-labelledby":"my-radio-group",children:[s.jsx(Zd,{style:{...r},className:ge("h-auto items-start",a),children:c.label}),s.jsx("div",{className:ge("flex gap-8 font-chakra font-medium leading-[23px]",l==null?void 0:l.inputContainer),children:n.map((g,b)=>s.jsxs("label",{className:ge("flex w-fit items-center gap-[6px]",l==null?void 0:l.inputLabel),style:{...i},children:[s.jsx("input",{type:"radio",name:d.name,value:g.value.toString(),checked:d.value===g.value,onChange:m,className:l==null?void 0:l.radio}),g.label]},b))}),f&&s.jsx(pu,{children:f})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var TNe=function(t){var n=T.useRef(t);return Kb(function(){n.current=t}),n},_1=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},ANe=function(t,n){var a=T.useRef();return T.useCallback(function(r){t.current=r,a.current&&_1(a.current,null),a.current=n,n&&_1(n,r)},[n])},$1={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},yNe=function(t){Object.keys($1).forEach(function(n){t.style.setProperty(n,$1[n],"important")})},eM=yNe,Za=null,tM=function(t,n){var a=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?a+n.borderSize:a-n.paddingSize};function wNe(e,t,n,a){n===void 0&&(n=1),a===void 0&&(a=1/0),Za||(Za=document.createElement("textarea"),Za.setAttribute("tabindex","-1"),Za.setAttribute("aria-hidden","true"),eM(Za)),Za.parentNode===null&&document.body.appendChild(Za);var r=e.paddingSize,i=e.borderSize,l=e.sizingStyle,o=l.boxSizing;Object.keys(l).forEach(function(m){var g=m;Za.style[g]=l[g]}),eM(Za),Za.value=t;var c=tM(Za,e);Za.value=t,c=tM(Za,e),Za.value="x";var d=Za.scrollHeight-r,h=d*n;o==="border-box"&&(h=h+r+i),c=Math.max(h,c);var f=d*a;return o==="border-box"&&(f=f+r+i),c=Math.min(f,c),[c,d]}var nM=function(){},CNe=function(t,n){return t.reduce(function(a,r){return a[r]=n[r],a},{})},RNe=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],MNe=!!document.documentElement.currentStyle,DNe=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var a=CNe(RNe,n),r=a.boxSizing;if(r==="")return null;MNe&&r==="border-box"&&(a.width=parseFloat(a.width)+parseFloat(a.borderRightWidth)+parseFloat(a.borderLeftWidth)+parseFloat(a.paddingRight)+parseFloat(a.paddingLeft)+"px");var i=parseFloat(a.paddingBottom)+parseFloat(a.paddingTop),l=parseFloat(a.borderBottomWidth)+parseFloat(a.borderTopWidth);return{sizingStyle:a,paddingSize:i,borderSize:l}},jNe=DNe;function LT(e,t,n){var a=TNe(n);T.useLayoutEffect(function(){var r=function(l){return a.current(l)};if(e)return e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}},[])}var BNe=function(t,n){LT(document.body,"reset",function(a){t.current.form===a.target&&n(a)})},PNe=function(t){LT(window,"resize",t)},HNe=function(t){LT(document.fonts,"loadingdone",t)},LNe=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],UNe=function(t,n){var a=t.cacheMeasurements,r=t.maxRows,i=t.minRows,l=t.onChange,o=l===void 0?nM:l,c=t.onHeightChange,d=c===void 0?nM:c,h=kM(t,LNe),f=h.value!==void 0,m=T.useRef(null),g=ANe(m,n),b=T.useRef(0),E=T.useRef(),S=function(){var v=m.current,w=a&&E.current?E.current:jNe(v);if(w){E.current=w;var D=wNe(w,v.value||v.placeholder||"x",i,r),C=D[0],M=D[1];b.current!==C&&(b.current=C,v.style.setProperty("height",C+"px","important"),d(C,{rowHeight:M}))}},I=function(v){f||S(),o(v)};return T.useLayoutEffect(S),BNe(m,function(){if(!f){var O=m.current.value;requestAnimationFrame(function(){var v=m.current;v&&O!==v.value&&S()})}}),PNe(S),HNe(S),T.createElement("textarea",et({},h,{onChange:I,ref:g}))},kNe=T.forwardRef(UNe);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function FNe({placeholder:e,rows:t=1,className:n,value:a,error:r,...i}){return s.jsx(kNe,{placeholder:e,rows:t,minRows:3,...i,className:ge("w-full px-4",n,{"border-red-400":!!r}),value:a||""})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function _s({className:e,classNames:t,...n}){const[a,r]=uu(n.name),i=r.touched&&r.error;return s.jsxs("div",{className:Ae("flex flex-col",e),children:[n.label&&s.jsx(nle,{className:Ae(t==null?void 0:t.label),children:n.label}),s.jsx(FNe,{...a,...n,error:i,className:Ae(t==null?void 0:t.input,"mb-[6px] rounded-md border border-black")}),i&&s.jsx(pu,{className:Ae(t==null?void 0:t.error),children:typeof i=="object"?JSON.stringify(i):i})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function YNe(e){var n,a;const t=[];return(a=(n=e==null?void 0:e.additionalInformation)==null?void 0:n.houseHoldMembersApplication)==null||a.forEach(r=>{r&&t.push(r)}),t}function zNe({name:e,subformType:t,className:n,memberId:a}){var g,b;const r=wt(),l=T.useMemo(()=>NNe(r.applicantState),[r.applicantState]).find(E=>E.id===a),o=T.useMemo(()=>YNe(r.applicantState).find(S=>S.id===a),[r.applicantState,a]),c=l==null?void 0:l.isPregnant,d=((g=o==null?void 0:o.gender)==null?void 0:g.value)==="female",h=(b=o==null?void 0:o.additionalInformationAboutMissingFatherOrParents)==null?void 0:b.some(E=>{var S;return((S=E.theParentsAddressIsMine)==null?void 0:S.value)==="known"}),f=t==="pregnantMotherWithoutFather"?"Werdender Vater außerhalb des Haushalts, bei Schwangerschaft ":"Elternteil außerhalb des Haushalts";return s.jsxs("div",{className:ge("mx-3 my-4 rounded border border-black bg-white",n),children:[s.jsxs("div",{className:"bg-primaryGray p-[10px]",children:[s.jsx("span",{className:"text-18px block font-chakra font-semibold",children:f}),s.jsx("span",{className:"text-18px block font-chakra font-medium",children:"Daten des Elternteils, welches nicht im Haushalt lebt."})]}),s.jsxs("div",{className:"flex flex-wrap gap-4 px-3 py-7",children:[s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_NAME}`,type:"text",placeholder:"Vorname",className:"max-w-[262px] flex-1"}),s.jsx(j,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_PLACE_OF_BIRTH}`,type:"text",placeholder:"Geburtsort",className:"max-w-[262px] flex-1"}),s.jsx(Ft,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_GENDER}`,options:UL,placeholder:"Geschlecht",className:"max-w-[262px] flex-1"})]}),s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_FAMILY_NAME}`,type:"text",placeholder:"Nachname",className:"max-w-[262px] flex-1"}),s.jsx(Ft,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_COUNTRY_OF_BIRTH}`,options:[...sm.map(E=>({label:E.Land,value:E.Land,extraData:E}))],placeholder:"Geburtsland",className:"max-w-[262px] flex-1"}),s.jsx(Ft,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_MARITAL_STATUS}`,options:kL,placeholder:"Familienstand",className:"max-w-[262px] flex-1"})]}),s.jsx("div",{className:"flex w-full gap-4",children:s.jsx(J,{name:`${e}.${x.PARENT_OUTSIDE_THE_HOUSEHOLD_BIRTH_DATE}`,label:"Geburtsdatum",placeholder:"TT.MM.JJJJ",className:"max-w-[150px] flex-1"})}),d&&s.jsx(k,{label:"Die Vaterschaft wurde anerkannt.",name:`${e}.${x.PATERNITY_WAS_RECOGNIZED}`,className:"col-span-2 col-start-1 items-center"}),c&&s.jsx(J,{name:`${e}.${x.EXPECTED_DATE_OF_DELIVERY}`,label:"voraussichtlicher Entbindungstag",className:"col-start-1 items-center",placeholder:"TT.MM.JJJJ"}),s.jsx(Ft,{name:`${e}.${x.THE_PARENTS_ADDRESS_IS_MINE}`,options:dce,label:"Die Anschrift des Elternteils ist mir.",className:"col-span-2 max-w-[262px]"}),h&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"col-span-full font-chakra font-medium",children:"Adressdaten"}),s.jsxs("div",{className:"flex w-full flex-wrap gap-4",children:[s.jsx(j,{name:`${e}.${x.PARENT_STREET_NAME}`,placeholder:"Straßenname",className:"max-w-[262px] flex-1"}),s.jsx(j,{name:`${e}.${x.PARENT_BUILDING_NUMBER}`,placeholder:"Nr.",className:"max-w-[51px]"})]}),s.jsxs("div",{className:"flex w-full flex-wrap gap-4",children:[s.jsx(j,{name:`${e}.${x.PARENT_FLOOR_NUMBER}`,placeholder:"ggf. Stockwerk",className:"max-w-[262px] flex-1"}),s.jsx(j,{name:`${e}.${x.PARENT_POSTAL_CODE}`,placeholder:"PLZ",className:"max-w-[110px]"}),s.jsx(j,{name:`${e}.${x.PARENT_CITY}`,placeholder:"Stadt",className:"max-w-[203px] flex-1"})]}),s.jsx(j,{name:`${e}.${x.PARENT_TELEPHONE_NUMBER}`,placeholder:"Telefonnummer (opt.)",className:"max-w-[262px] flex-1"})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function aM(e){return` max-h-[40px] text-[15px] py-1 px-3 whitespace-nowrap outline outline-1 ${e?"outline-black bg-primaryDarkGray":"bg-primaryGray"}`}function GNe({name:e}){const{setFieldValue:t,values:n}=tt(),a=Ye(n,`${e}.${x.SELECTED_HEALTH_INSURANCE}`),r=O=>{t(`${e}.${x.SELECTED_HEALTH_INSURANCE}`,O)},i=Ye(n,`${e}.${x.EMPLOYMENT_IN_LAST_5_YEARS}`),l=Ye(n,`${e}.${x.IDENTIFICATION_OR_FOREIGNER_NUMBER}`),o=Ye(n,`${e}.${x.IS_EMPLOYEE}`),c=Ye(n,`${e}.${x.SELF_EMPLOYED}`),d=Ye(n,`${e}.${x.PARENT_LEAVE}`),h=Ye(n,`${e}.${x.MILITARY_OR_VOLUNTARY_SERVICE}`),f=Ye(n,`${e}.${x.RELATIVES_CARED_FOR}`),m=Ye(n,`${e}.${x.RECEIVE_COMPENSATION_BENEFITS}`),g=Ye(n,`${e}.${x.CLAIMS_AGAINST_THIRD_PARTIES}`),b=Ye(n,`${e}.${x.CLAIMS_AGAINST_FORMER_EMPLOYER}`),E=Ye(n,`${e}`).id,S=Ye(n,`${e}.${x.ADDITIONAL_INFORMATION_ABOUT_MISSING_FATHER_OR_PARENTS}`)||[],I=YR.find(O=>O.value===Ye(n,`${e}.${x.TYPE_OF_INSURANCE}`));return s.jsxs("div",{className:"grid max-w-[1000px] grid-cols-6 gap-x-4 gap-y-2 py-3",children:[s.jsx(k,{name:`${e}.${x.IDENTIFICATION_OR_FOREIGNER_NUMBER}`,label:"Haben Sie eine Personenidentifikationsnummer oder eine Ausländerzentralregisternummer?",className:"col-span-full"}),l&&s.jsxs(s.Fragment,{children:[s.jsx(j,{name:`${e}.${x.PERSONAL_IDENTIFICATION_NUMBER}`,type:"text",label:"Personenidentifikationsnummer",placeholder:"Nummer",className:"col-span-2"}),s.jsx(j,{name:`${e}.${x.CENTRAL_REGISTER_FOREIGNERS_NUMBER}`,type:"text",label:"Ausländerzentralregisternummer",placeholder:"Nummer",className:"col-span-2"})]}),s.jsx(k,{name:`${e}.${x.GUARDIAN}`,label:"Hat die Person eine gesetzlich bestellte Betreuerin/einen gesetzlich bestellten Betreuer oder Vormund?",className:"col-span-full"}),s.jsx(j,{name:`${e}.${x.PENSION_INSURANCE_NUMBER}`,type:"text",label:"Sozial-/Rentenversicherungsnummer",placeholder:"Nummer",className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Eine Sozial-/Rentenversicherungsnummer ist noch nicht vorhanden",name:`${e}.${x.PENSION_INSURANCE_NUMBER_NOT_AVAILABLE_YET}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Es besteht ein Anspruch auf Zuschüsse zu den Fahrkosten vom Arbeitgeber oder von einem Dritten",name:`${e}.${x.YOU_ARE_ENTITLED_TO_TRAVEL_COST_SUBSIDIES_FROM_YOUR_EMPLOYER_OR_A_THIRD_PARTY}`,className:"col-span-full col-start-1"}),s.jsx(om,{name:`${e}.${x.TYPE_OF_INSURANCE}`,label:"Wie sind Sie Kranken- und Pflegeversichert?",className:"col-span-full",options:YR,classNames:{inputContainer:"flex-col gap-2"}}),((I==null?void 0:I.value)==="privateOrVoluntaryStatutoryInsurance"||(I==null?void 0:I.value)==="notInsured")&&s.jsx(j,{name:`${e}.${x.TAX_IDENTIFICATION_NUMBER}`,type:"number",label:"Steuerliche Identifikationsnummer",placeholder:"Antwort",className:"col-span-2"}),s.jsx("span",{className:"col-span-full font-medium",children:"Mit Beginn des Anspruchs möchte ich versichert werden bei:"}),s.jsxs("div",{className:"col-span-2 flex flex-col gap-y-2",children:[s.jsx(Je,{type:"button",text:"Bisherige Krankenkasse",className:ge(aM(a==="currentHealthInsurance"),"col-span-2"),onClick:()=>r("currentHealthInsurance")}),a==="currentHealthInsurance"&&s.jsxs("div",{className:"flex w-full flex-col gap-y-2 rounded-lg border border-black bg-white px-4 py-3",children:[s.jsx(j,{name:`${e}.${x.CURRENT_HEALTH_INSURANCE_NAME}`,label:"Name der Krankenkasse",placeholder:"Krankenkasse",type:"text"}),s.jsx(j,{name:`${e}.${x.CURRENT_HEALTH_INSURANCE_NUMBER}`,label:"Krankenversichertennummer",placeholder:"Nummer",type:"text"}),s.jsx(j,{name:`${e}.${x.CURRENT_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON}`,label:"Name der versicherten Person",placeholder:"Name",type:"text"})]})]}),s.jsxs("div",{className:"col-span-2 flex flex-col gap-y-2",children:[s.jsx(Je,{type:"button",text:"Andere Krankenkasse",className:aM(a==="otherHealthInsurance"),onClick:()=>r("otherHealthInsurance")}),a==="otherHealthInsurance"&&s.jsxs("div",{className:"flex flex-col gap-4 rounded-lg border border-black bg-white px-4 py-3",children:[s.jsx(j,{name:`${e}.${x.OTHER_HEALTH_INSURANCE_NAME}`,label:"Name der Krankenkasse",placeholder:"Krankenkasse",type:"text"}),s.jsx(j,{name:`${e}.${x.OTHER_HEALTH_INSURANCE_NUMBER}`,label:"Krankenversichertennummer",placeholder:"Nummer",type:"text"}),s.jsx(j,{name:`${e}.${x.OTHER_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON}`,label:"Name der versicherten Person",placeholder:"Name",type:"text"})]})]}),s.jsxs("div",{className:"col-span-full",children:[s.jsx("h3",{children:"Personenspezifische Fragen zur Historie:"}),s.jsxs("div",{children:[s.jsx(k,{label:"Haben Sie innerhalb der letzten drei Jahre bereits Bürgergeld oder Sozialhilfe beantragt oder bezogen?",name:`${e}.${x.BENEFITS_FROM_ANOTHER_JOB_CENTER_FOR_LAST_3_YEARS}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),Ye(n,`${e}.${x.BENEFITS_FROM_ANOTHER_JOB_CENTER_FOR_LAST_3_YEARS}`)&&s.jsxs("div",{className:"pl-[25px] pt-[10px]",children:[s.jsx(j,{name:`${e}.${x.TYPE_OF_BENEFIT}`,label:"Bitte geben Sie die Art der Leistung an.",type:"text",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"},placeholder:"Art der Leistung"}),s.jsxs("div",{className:"flex items-center gap-4 py-[15px]",children:[s.jsx(J,{name:`${e}.${x.BENEFIT_START}`,label:"bezogen von",classNames:{input:"max-w-[140px] border border-black rounded-md "}}),s.jsx(J,{name:`${e}.${x.BENEFIT_END}`,label:"bezogen bis",classNames:{input:"max-w-[140px] border border-black rounded-md "}})]}),s.jsx(j,{name:`${e}.${x.BENEFIT_NAME}`,label:"Name des Leistungsträgers",type:"text",placeholder:"Leistungsträger",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsxs("div",{className:"flex items-center gap-4 py-[10px]",children:[s.jsx(j,{name:`${e}.${x.BENEFIT_STREET_NAME}`,label:"Straße",type:"text",placeholder:"Straße",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsx(j,{name:`${e}.${x.BENEFIT_BUILDING_NUMBER}`,label:"Nr.",type:"text",placeholder:"Nr.",classNames:{input:"max-w-[55px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}})]}),s.jsxs("div",{className:"flex items-center gap-4 py-[10px]",children:[s.jsx(j,{name:`${e}.${x.BENEFIT_POSTAL_CODE}`,label:"PLZ",type:"text",placeholder:"PLZ",classNames:{input:"max-w-[104px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsx(j,{name:`${e}.${x.BENEFIT_CITY}`,label:"Ort",type:"text",placeholder:"Ort",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}})]})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx("h3",{className:"font-chakra font-semibold",children:"Beschäftigungen in den letzten 5 Jahren"}),s.jsx(k,{label:"Nicht beschäftigt",name:`${e}.${x.EMPLOYMENT_IN_LAST_5_YEARS}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),i&&s.jsx("div",{className:"px-[25px] pt-[15px]",children:s.jsx("div",{className:"bg-white pl-[10px] pt-[10px]",children:s.jsx(j,{name:`${e}.${x.WHAT_YOU_LIVED_LAST_5_YEARS}`,label:"Wovon haben Sie in den letzten 5 Jahren gelebt?",type:"text",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-medium leading-[23px]"}})})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Arbeitnehmer",name:`${e}.${x.IS_EMPLOYEE}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),o&&s.jsx("div",{className:"mt-[10px] px-[25px] pt-[15px]",children:s.jsxs("div",{className:"bg-white pb-[10px] pl-[10px]",children:[s.jsx("div",{className:"pt-[10px]",children:s.jsx(j,{name:`${e}.${x.EMPLOYER}`,placeholder:"Arbeitgeber",label:"Arbeitgeber",labelPosition:"left",type:"text",classNames:{input:"max-w-[200px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-medium leading-[23px]"}})}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("label",{className:"pt-[10px] font-chakra text-[16px] font-medium leading-[23px]",children:"Beschäftigt von"}),s.jsx(J,{name:`${e}.${x.EMPLOYED_SINCE}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}}),s.jsx("label",{className:"pt-[5px] font-chakra text-[16px] font-medium leading-[23px]",children:"bis"}),s.jsx(J,{name:`${e}.${x.EMPLOYED_UNTIL}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}})]}),s.jsx("div",{className:"pt-[15px]",children:s.jsx(Ft,{name:`${e}.${x.DESIGNATION}`,options:hce,placeholder:"Tätigkeit",customClassNames:{inputContainer:"max-w-[350px]",label:"font-chakra text-[16px] font-medium leading-[23px]"}})})]})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Selbstständig",name:`${e}.${x.SELF_EMPLOYED}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),c&&s.jsx("div",{className:"mt-[10px] px-[25px]",children:s.jsxs("div",{className:"bg-white pb-[10px] pl-[10px] pt-[15px]",children:[s.jsx(j,{name:`${e}.${x.TYPE_OF_ACTIVITY}`,label:"Art der Tätigkeit",labelPosition:"left",type:"text",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-medium leading-[23px]"},placeholder:"Tätigkeit"}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("label",{className:"pt-[10px] font-chakra text-[16px] font-medium leading-[23px]",children:"Beschäftigt von"}),s.jsx(J,{name:`${e}.${x.TYPE_OF_ACTIVITY_SINCE}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "},placeholder:"Datum"}),s.jsx("label",{className:"pt-[5px] font-chakra text-[16px] font-medium leading-[23px]",children:"bis"}),s.jsx(J,{name:`${e}.${x.TYPE_OF_ACTIVITY_UNTIL}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "},placeholder:"Datum"})]})]})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Elternzeit/Kindererziehungzeit",name:`${e}.${x.PARENT_LEAVE}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),d&&s.jsx("div",{className:"mt-[10px] px-[25px] py-[15px]",children:s.jsxs("div",{className:"flex items-center gap-4 bg-white py-[10px] pl-[10px]",children:[s.jsx("label",{className:"pt-[10px] font-chakra text-[16px] font-medium leading-[23px]",children:"Beschäftigt von"}),s.jsx(J,{name:`${e}.${x.PARENT_LEAVE_SINCE}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}}),s.jsx("label",{className:"pt-[5px] font-chakra text-[16px] font-medium leading-[23px]",children:"bis"}),s.jsx(J,{name:`${e}.${x.PARENT_LEAVE_UNTIL}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}})]})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Wehrdienst oder freiwilliger Dienst",name:`${e}.${x.MILITARY_OR_VOLUNTARY_SERVICE}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),h&&s.jsx("div",{className:"mt-[10px] px-[25px] py-[15px]",children:s.jsxs("div",{className:"flex items-center gap-4 bg-white py-[10px] pl-[10px]",children:[s.jsx("label",{className:"pt-[10px] font-chakra text-[16px] font-medium leading-[23px]",children:"Beschäftigt von"}),s.jsx(J,{name:`${e}.${x.MILITARY_OR_VOLUNTARY_SERVICE_SINCE}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}}),s.jsx("label",{className:"pt-[5px] font-chakra text-[16px] font-medium leading-[23px]",children:"bis"}),s.jsx(J,{name:`${e}.${x.MILITARY_OR_VOLUNTARY_SERVICE_UNTIL}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}})]})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Angehörige gepflegt",name:`${e}.${x.RELATIVES_CARED_FOR}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),f&&s.jsx("div",{className:"mt-[10px] px-[25px] py-[15px]",children:s.jsxs("div",{className:"flex items-center gap-4 bg-white py-[10px] pl-[10px]",children:[s.jsx("label",{className:"pt-[10px] font-chakra text-[16px] font-medium leading-[23px]",children:"Beschäftigt von"}),s.jsx(J,{name:`${e}.${x.RELATIVES_CARED_FOR_SINCE}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}}),s.jsx("label",{className:"pt-[5px] font-chakra text-[16px] font-medium leading-[23px]",children:"bis"}),s.jsx(J,{name:`${e}.${x.RELATIVES_CARED_FOR_UNTIL}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}})]})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Entgeldersatzleistungen erhalten",name:`${e}.${x.RECEIVE_COMPENSATION_BENEFITS}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),m&&s.jsx("div",{className:"mt-[10px] px-[25px] py-[15px]",children:s.jsxs("div",{className:"bg-white py-[10px] pl-[10px]",children:[s.jsx(j,{name:`${e}.${x.TYPE_OF_COMPENSATION_BENEFITS}`,label:"Art der Leistungen",labelPosition:"left",type:"text",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("label",{className:"pt-[10px] font-chakra text-[16px] font-medium leading-[23px]",children:"Beschäftigt von"}),s.jsx(J,{name:`${e}.${x.RECEIVE_COMPENSATION_BENEFITS_SINCE}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}}),s.jsx("label",{className:"pt-[5px] font-chakra text-[16px] font-medium leading-[23px]",children:"bis"}),s.jsx(J,{name:`${e}.${x.RECEIVE_COMPENSATION_BENEFITS_UNTIL}`,label:"",classNames:{input:"max-w-[120px] border border-black rounded-md "}})]})]})})]}),s.jsxs("div",{className:"pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"Es gibt Ansprüche gegenüber Dritten",name:`${e}.${x.CLAIMS_AGAINST_THIRD_PARTIES}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),g&&s.jsxs("div",{className:"flex flex-col gap-[15px] pl-[25px] pt-[15px]",children:[s.jsx(k,{label:"ehemaliger Arbeitgeber",name:`${e}.${x.CLAIMS_AGAINST_FORMER_EMPLOYER}`,classNames:{label:"font-chakra font-medium text-[18px]"}}),b&&s.jsxs("div",{className:"max-w-[750px] px-[25px]",children:[s.jsxs("div",{className:"flex flex-col gap-[10px]",children:[s.jsx(j,{name:`${e}.${x.NAME_OF_FORMER_EMPLOYER}`,placeholder:"Name Arbeitgeber*in",type:"text",classNames:{input:"min-w-[200px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsxs("div",{className:"flex gap-[10px]",children:[s.jsx(j,{name:`${e}.${x.STREET_NAME_OF_FORMER_EMPLOYER}`,placeholder:"Straße",type:"text",classNames:{input:"min-w-[300px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsx(j,{name:`${e}.${x.BUILDING_NUMBER_OF_FORMER_EMPLOYER}`,placeholder:"Nr.",type:"text",classNames:{input:"max-w-[55px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}})]}),s.jsxs("div",{className:"flex gap-[10px]",children:[s.jsx(j,{name:`${e}.${x.POSTAL_CODE_OF_FORMER_EMPLOYER}`,placeholder:"PLZ",type:"text",classNames:{input:"max-w-[104px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}}),s.jsx(j,{name:`${e}.${x.CITY_OF_FORMER_EMPLOYER}`,placeholder:"Ort",type:"text",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]",label:"font-chakra text-[16px] font-semibold leading-[23px]"}})]})]}),s.jsx("div",{className:"pt-[10px]",children:s.jsx(_s,{name:`${e}.${x.REASON_FOR_CLAIMS}`,placeholder:"Grund",classNames:{input:"border-x-1 max-w-[350px] border border-black rounded-md mb-[6px]"}})})]}),s.jsx(k,{label:"gesundheitlicher Schaden durch Dritte",classNames:{label:"font-chakra font-medium text-[18px]"},name:`${e}.${x.DAMAGE_TO_HEALTH_BECAUSE_OF_THIRD_PARTY}`}),s.jsx(k,{label:"Zahlungsansprüche/Schadenersatz",classNames:{label:"font-chakra font-medium text-[18px]"},name:`${e}.${x.PAYMENT_CLAIMS}`}),Ye(n,`${e}.${x.PAYMENT_CLAIMS}`)&&s.jsx("div",{className:"pl-[25px] pt-[10px]",children:s.jsx(_s,{name:`${e}.${x.PAYMENT_CLAIMS_DESCRIPTION}`,placeholder:"Bezeichnung des Anspruchs",classNames:{input:"max-w-[350px] border border-black rounded-md mb-[6px]"}})})]})]})]})]}),S.map((O,v)=>s.jsx(zNe,{memberId:E,name:`${e}.${x.ADDITIONAL_INFORMATION_ABOUT_MISSING_FATHER_OR_PARENTS}[${v}]`,...O,className:"col-span-full"},v))]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function WNe(){const{filteredNotRelatedOtherPersonsTabsList:e,setCurrentTab:t,currentTab:n}=PU(),{values:a,setFieldValue:r}=tt(),i=Ye(a,x.CITIZENS_ALLOWANCE_REQUEST_IMMEDIATELY),l=Ye(a,x.CITIZENS_ALLOWANCE_REQUEST_FROM),o=!i&&!l;return T.useEffect(()=>{i===void 0&&r(x.CITIZENS_ALLOWANCE_REQUEST_IMMEDIATELY,!0)},[i,r]),s.jsxs(cn,{mode:"display",text:"Bürgergeld",className:"border-[#1B1F4A]",classNames:{parentContainer:ge("max-w-[97%] border border-black bg-white "),childrenContainer:"gap-4 flex flex-col"},children:[s.jsxs("div",{className:"grid grid-cols-6 gap-x-4 gap-y-2 border border-black bg-white px-4 py-2",children:[s.jsx("span",{className:"col-span-full font-medium",children:"Bitte beantworten Sie folgende generelle Fragen zum Bürgergeld-Antrag:"}),s.jsxs("div",{className:"col-span-full flex flex-wrap gap-4",children:[s.jsx("div",{className:"flex basis-full gap-5",children:s.jsx(jN,{names:[x.INITIAL_APPLICATION,x.APPLICATION_FOR_RENEWAL,x.INCREASE_REQUEST]})}),s.jsxs("div",{className:"flex basis-full gap-5",children:[s.jsx(si,{name:x.CITIZENS_ALLOWANCE_REQUEST_IMMEDIATELY,text:"ab sofort",placeholder:"Beschäftigt von",label:"",type:Ti.IMMEDIATELY,className:"w-[132px]"}),s.jsx(si,{name:x.CITIZENS_ALLOWANCE_REQUEST_FROM,text:"ab dem:",placeholder:"Beschäftigt von",label:"",className:"w-[212px]"}),s.jsx(si,{name:x.CITIZENS_ALLOWANCE_REQUEST_UNTIL,text:"bis zum:",placeholder:"Beschäftigt bis",label:"",disabled:o,className:"w-[212px]"})]})]}),s.jsx("span",{className:"col-span-full font-medium",children:"Postanschrift des zuständigen Jobcenters:"}),s.jsxs("div",{className:"col-span-full flex flex-col gap-x-[17px] gap-y-2",children:[s.jsxs("div",{className:"flex w-full gap-[17px]",children:[s.jsx(j,{name:x.RESPONSIBLE_JOB_CENTER_STREET_NAME,type:"text",placeholder:"Straßenname",className:"max-w-[262px] flex-1"}),s.jsx(j,{name:x.RESPONSIBLE_JOB_CENTER_BUILDING_NUMBER,type:"number",placeholder:"Nr.",className:"w-full max-w-[51px]"})]}),s.jsxs("div",{className:"flex w-full gap-[17px]",children:[s.jsx(j,{name:x.RESPONSIBLE_JOB_CENTER_POSTAL_CODE,type:"number",placeholder:"PLZ",className:"w-[110px]"}),s.jsx(j,{name:x.RESPONSIBLE_JOB_CENTER_POSTAL_LOCATION,type:"text",placeholder:"Ort",className:"max-w-[203px] flex-1"})]})]}),s.jsx(j,{name:x.BG_NUMBER,type:"text",label:"BG Nummer, falls vorhanden:",placeholder:"BG Nummer",className:"col-span-2 col-start-1 max-w-[230px]"}),s.jsx(J,{showYearPicker:!0,name:x.YEAR_OF_CONSTRUCTION,placeholder:"Baujahr",label:"Baujahr Ihrer Unterkunft",className:"col-span-2 max-w-[230px]",classNames:{input:"border border-black rounded-md max-w-[300px]",component:"w-[300px]",children:"w-[300px]",container:"max-w-[300px]",inputWrapper:"max-w-[300px]"}})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(HU,{tabsList:e,className:"w-full rounded-t-md pr-[10px]",currentTab:n,setCurrentTab:t}),e.map((c,d)=>s.jsx(T.Fragment,{children:d===n&&s.jsx("div",{className:"-- rounded-md border border-black bg-white pl-[15px]",children:s.jsx(GNe,{name:`${x.HOUSE_HOLD_MEMBERS_APPLICATION}[${d}]`})},d)},d))]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function qNe({name:e}){var o,c;const{values:t,setFieldValue:n}=tt(),a=Ye(t,`${e}.${x.NETTO_INCOME}`),r=Ye(t,`${e}.${x.IN_STATIONARY_FACILITY}`),i=Object.hasOwn(Ye(t,`${e}.${x.MARITAL_STATUS}`)||{},"date"),l=zR.find(d=>d.value===Ye(t,`${e}.${x.PAYMENT_MODE_EMPLOYER}`));return s.jsxs("div",{className:"gap-[10px] rounded-md border border-black p-4",children:[s.jsxs("div",{className:"flex flex-wrap gap-4",children:[s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:`${e}.${x.FIRST_NAME}`,type:"text",placeholder:"Vorname",customChangeEventOnly:!0,customChangeEvent:d=>{const h=d.target.value;n(`${e}.${x.FIRST_NAME}`,h),Ye(t,`${e}.${x.NAME_WAS_CHANGED}`)||n(`${e}.${x.NAME_WAS_CHANGED}`,!0)},className:"max-w-[262px] flex-1"}),s.jsx(j,{name:`${e}.${x.LAST_NAME}`,type:"text",placeholder:"Nachname",customChangeEventOnly:!0,customChangeEvent:d=>{const h=d.target.value;n(`${e}.${x.LAST_NAME}`,h),Ye(t,`${e}.${x.NAME_WAS_CHANGED}`)||n(`${e}.${x.NAME_WAS_CHANGED}`,!0)},className:"max-w-[262px] flex-1"}),s.jsx(j,{name:`${e}.${x.PLACE_OF_BIRTH}`,type:"text",placeholder:"Geburtsort",className:"max-w-[262px] flex-1"})]}),s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(Ft,{name:`${e}.${x.GENDER}`,options:UL,placeholder:"Geschlecht",className:"max-w-[262px] flex-1"}),s.jsx(Ft,{name:`${e}.${x.COUNTRY_OF_BIRTH}`,options:[...sm.map(d=>({label:d.Land,value:d.Land,extraData:d}))],placeholder:"Geburtsland",className:"max-w-[262px] flex-1"}),s.jsx(J,{name:`${e}.${x.DATE_OF_BIRTH}`,placeholder:"Geburtsdatum",className:"max-w-[150px]"})]}),s.jsxs("div",{className:"w-full",children:[s.jsx(Ft,{name:`${e}.${x.MARITAL_STATUS}`,options:kL,placeholder:"Familienstand",className:"max-w-[262px]"}),i&&s.jsx(J,{name:`${e}.${x.MARITAL_STATUS}`,placeholder:"Datum",classNames:{input:"border border-black rounded-md max-w-[170px]",label:"h-fit whitespace-nowrap font-semibold",container:"justify-between w-full max-w-[100px] pt-[10px]"},onChange:d=>{const h=Ye(t,`${e}.${x.MARITAL_STATUS}`);n(`${e}.${x.MARITAL_STATUS}`,{...h,date:d})},onSelect:d=>{const h=Ye(t,`${e}.${x.MARITAL_STATUS}`);n(`${e}.${x.MARITAL_STATUS}`,{...h,date:d})},selected:((o=Ye(t,`${e}.${x.MARITAL_STATUS}`))==null?void 0:o.date)&&new Date((c=Ye(t,`${e}.${x.MARITAL_STATUS}`))==null?void 0:c.date)||null})]})]}),r&&s.jsxs("div",{className:"pt-[15px]",children:[s.jsx("div",{className:"font-chakra font-medium",children:"Diese Person befindet sich aktuell in stationärer Einrichtung. Bitte geben Sie die Art der stationären Einrichtung an:"}),s.jsx("div",{className:"pt-[10px]",children:s.jsx(j,{type:"text",className:"max-w-[300px]",placeholder:"Antwort",classNames:{input:"max-w-[262px] border border-black rounded-md ",label:"font-medium font-chakra text-[18px]"},name:`${e}.${x.IN_STATIONARY_FACILITY_NAME}`})})]}),a&&s.jsxs("div",{className:"flex flex-col gap-[10px] pt-[15px]",children:[s.jsx("div",{className:"font-chakra text-[16px] font-semibold leading-[23px]",children:"Anschrift der Arbeitsstätte"}),s.jsxs("div",{className:"grid auto-cols-max grid-cols-[auto_1fr] gap-4",children:[s.jsx("div",{className:"col-span-2",children:s.jsx(j,{type:"text",placeholder:"Name des Arbeitgebers",className:"w-full",classNames:{input:" border border-black rounded-md max-w-none",label:"font-medium font-chakra text-[18px]",inputSubContainer:"w-fit sub-container"},name:`${e}.${x.NAME_OF_EMPLOYER}`})}),s.jsx(j,{type:"text",placeholder:"Straße",className:"w-full",classNames:{input:" border border-black rounded-md max-w-none",label:"font-medium font-chakra text-[18px]",inputSubContainer:"w-fit sub-container"},name:`${e}.${x.STREET_NAME_OF_EMPLOYER}`}),s.jsx(j,{type:"text",placeholder:"Nr.",className:"w-full",classNames:{input:" border border-black rounded-md max-w-none",label:"font-medium font-chakra text-[18px]",inputSubContainer:"max-w-[60px] sub-container"},name:`${e}.${x.BUILDING_NUMBER_OF_EMPLOYER}`}),s.jsx(j,{type:"text",placeholder:"Ort",className:"w-full",classNames:{input:" border border-black rounded-md max-w-none",label:"font-medium font-chakra text-[18px]",inputSubContainer:"w-fit sub-container"},name:`${e}.${x.LOCATION_OF_EMPLOYER}`}),s.jsx(j,{type:"text",placeholder:"PLZ",className:"w-full",classNames:{input:" border border-black rounded-md max-w-none",label:"font-medium font-chakra text-[18px]",inputSubContainer:"max-w-[130px] sub-container"},name:`${e}.${x.POSTAL_CODE_OF_EMPLOYER}`}),s.jsxs("div",{className:"col-span-2",children:[s.jsx(om,{name:`${e}.${x.PAYMENT_MODE_EMPLOYER}`,label:"Bitte geben Sie an, wann die Zahlung ihres Lohn/Gehalts erfolgt.",className:"col-span-full",options:zR,classNames:{inputContainer:"flex-col gap-2"}}),(l==null?void 0:l.value)==="currentMonth"||(l==null?void 0:l.value)==="followingMonth"]})]})]}),s.jsxs("div",{className:"max-w-[1000px] pt-[15px]",children:[s.jsx(k,{label:"Diese Person hat andere Leistungen beantragt oder beabsichtigt einen Antrag zu stellen. Bitte auch Sanktionen oder Ablehnungen (der letzten 2 Monate) angeben.",classNames:{label:"font-chakra font-medium"},name:`${e}.${x.HOUSEHOLD_MEMBER_APPLIED_FOR_ANOTHER_BENEFIT}`}),Ye(t,`${e}.${x.HOUSEHOLD_MEMBER_APPLIED_FOR_ANOTHER_BENEFIT}`)&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"pl-[20px] pt-[10px]",children:[s.jsx(jn,{label:"BAföG(Leistungen nach dem Bundesausbildungsförderungsgesetz)",name:`${e}.${x.CHECKBOX_BAFOEG}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"BAB (Berufsausbildungsbeihilfe",name:`${e}.${x.CHECKBOX_BAB}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Wohngeld",name:`${e}.${x.CHECKBOX_HOUSING_ALLOWANCE}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Arbeitslosengeld",name:`${e}.${x.CHECKBOX_UNEMPLOYMENT_BENEFIT}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Rente",name:`${e}.${x.CHECKBOX_PENSION}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Krankengeld",name:`${e}.${x.CHECKBOX_SICKNESS_BENEFIT}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Kindergeld",name:`${e}.${x.CHECKBOX_CHILD_ALLOWANCE}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Kinderzuschlag",name:`${e}.${x.CHECKBOX_CHILD_ALLOWANCE_SUPPLEMENT}`,className:"col-span-full col-start-1"}),s.jsx(jn,{label:"Sonstiges",name:`${e}.${x.CHECKBOX_OTHER}`,className:"col-span-full col-start-1"}),Ye(t,`${e}.${x.CHECKBOX_OTHER}`)&&s.jsx("div",{className:"pl-[20px] pt-[10px]",children:s.jsx(j,{type:"text",label:"Sozialleistungsträger/Familienkasse",placeholder:"Antwort",className:"max-w-[300px]",classNames:{input:"max-w-[262px] border border-black rounded-md ",label:"font-medium font-chakra text-[18px]"},name:`${e}.${x.SOCIAL_BENEFIT_PROVIDER}`})})]}),s.jsx("div",{className:"pl-[20px] pt-[10px]",children:s.jsx(J,{name:`${e}.${x.APPLICATION_DATE}`,label:"Antragsdatum",placeholder:"Datum",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap font-medium font-chakra text-[18px]",container:"justify-between w-full max-w-[354px]"}})}),s.jsx("div",{className:"pl-[20px] pt-[10px]",children:s.jsx(k,{label:"Abgelehnt?",classNames:{label:"font-medium font-chakra text-[18px] leading-[23px]"},name:`${e}.${x.APPLICATION_REJECTED}`})}),s.jsx("div",{className:"pl-[20px] pt-[10px]",children:s.jsx(k,{label:"Weggefallen?",classNames:{label:"font-medium font-chakra text-[18px] leading-[23px]"},name:`${e}.${x.ABANDONED}`})})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function VNe(){const{tabsList:e,currentTab:t,setCurrentTab:n}=PU();return s.jsxs("div",{className:"flex w-full flex-col",children:[s.jsx(HU,{tabsList:e,className:"w-full rounded-t-md pr-[10px]",currentTab:t,setCurrentTab:n}),e.map((a,r)=>s.jsx(T.Fragment,{children:t===r&&s.jsx(qNe,{name:`${x.HOUSE_HOLD_MEMBERS_APPLICATION}[${r}]`})},r))]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function rM({children:e,title:t,className:n,classNames:a}){return s.jsxs("div",{className:ge("flex w-full flex-col gap-2 overflow-hidden rounded-[10px] border border-black pb-4",n),children:[s.jsx("div",{className:ge("rounded-[10px] bg-primaryButtonColor px-4 py-3 font-semibold",a==null?void 0:a.title),children:t}),s.jsx("div",{className:ge("flex flex-col bg-white px-5",a==null?void 0:a.children),children:e})]})}function iM({children:e,title:t,classNames:n,className:a}){return s.jsxs("div",{className:ge("flex w-full flex-col",a),children:[t&&s.jsx("div",{className:ge("text-lg font-semibold",n==null?void 0:n.title),children:t}),s.jsx("div",{className:ge("grid grid-cols-2 gap-x-2",n==null?void 0:n.children),children:e})]})}function Kr({title:e,children:t,className:n,classNames:a}){return s.jsxs("div",{className:ge("flex gap-2",n),children:[s.jsx("div",{className:ge("flex",a==null?void 0:a.title),children:e}),s.jsx("div",{className:ge("flex flex-col",a==null?void 0:a.children),children:t})]})}function Ir({children:e,switchElement:t,className:n,classNames:a,isOpen:r}){return s.jsxs("div",{className:ge("flex w-full flex-col",n),children:[t,s.jsx("div",{className:ge("flex flex-col pl-10",a==null?void 0:a.children),children:!!r&&e})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function KNe(){const{values:e,setFieldValue:t}=tt(),n=Ye(e,x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_IMMEDIATELY),a=Ye(e,x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_FROM),r=!n&&!a;return T.useEffect(()=>{n===void 0&&t(x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_IMMEDIATELY,!0)},[n,t]),s.jsxs(cn,{mode:"display",text:"Wohngeld: Lastenzuschuss",className:"border-[#1B1F4A]",classNames:{parentContainer:ge(" max-w-[97%] border bg-white "),childrenContainer:"gap-y-5 flex flex-col"},children:[s.jsxs("div",{className:"flex w-full flex-col gap-5",children:[s.jsx("span",{className:"text-base font-medium",children:"Bitte beantworten Sie folgende generelle Fragen zum Bürgergeld-Antrag:"}),s.jsxs("div",{className:"flex flex-wrap gap-4",children:[s.jsx("div",{className:"flex basis-full gap-5",children:s.jsx(jN,{names:[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INITIAL_APPLICATION,x.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_CONTINUED_BENEFITS,x.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_INCREASE_REQUEST]})}),s.jsxs("div",{className:"flex basis-full gap-5",children:[s.jsx(si,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_IMMEDIATELY,text:"ab sofort",type:Ti.IMMEDIATELY,className:"w-[132px]"}),s.jsx(si,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_FROM,text:"ab dem:",placeholder:"Beschäftigt von",type:Ti.FROM_DATE,className:"w-[212px]"}),s.jsx(si,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_UNTIL,text:"bis zum:",placeholder:"Beschäftigt bis",type:Ti.UNTIL,disabled:r,className:"w-[212px]"})]})]})]}),s.jsxs("div",{className:"grid w-4/5 grid-cols-6 gap-2",children:[s.jsx("h3",{className:"col-span-full",children:"Postanschrift der zuständigen Familienkasse:"}),s.jsxs("div",{className:"col-span-full flex flex-col gap-x-[17px] gap-y-2",children:[s.jsxs("div",{className:"flex w-full gap-[17px]",children:[s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_STREET_NAME,type:"text",placeholder:"Straße",className:"max-w-[272px] flex-1",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BUILDING_NUMBER,type:"text",placeholder:"Nr.",className:"w-full max-w-[86px]",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})]}),s.jsxs("div",{className:"flex w-full gap-[17px]",children:[s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_POSTAL_CODE,type:"text",placeholder:"PLZ",className:"w-[110px]",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_LOCATION,type:"text",placeholder:"Ort",className:"max-w-[203px] flex-1",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})]}),s.jsx("div",{className:"w-full",children:s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER,type:"text",placeholder:"falls vorh. Wohngeldnr. / Aktenzeichen",className:"w-full max-w-[409px]",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})})]})]}),s.jsxs("div",{className:"flex items-center gap-5",children:[s.jsx(Je,{type:"button",text:"Ich besitze eine Wohnung",className:ge(ev(!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE]),"line-clamp-1 max-w-fit"),onClick:()=>{e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE]?t(x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE,!1):t(x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE,!0)}}),s.jsx(Je,{type:"button",text:"Ich besitze ein Ein- oder Zweifamilienhaus",className:ge(jU(e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL]),"line-clamp-1 max-w-fit"),onClick:()=>{!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL]?t(x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL,!1):t(x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL,!0)}})]}),s.jsx(Ir,{switchElement:s.jsx(k,{label:"Es gibt weitere Eigentümer für den Wohnraum.",name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE,classNames:{label:"font-chakra font-semibold leading-[23px]"},className:"col-span-full pb-[10px]"}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE],children:s.jsx("div",{className:"grid w-4/5 grid-cols-6 gap-2",children:e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS].map((i,l)=>{const o=`${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS}.${l}`;return s.jsxs(T.Fragment,{children:[s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_LAST_NAME}`,type:"text",placeholder:"Familienname",className:"col-span-2 max-w-[262px]",classNames:{input:" border border-black rounded-md mb-[6px] max-w-[262px] ",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:" max-w-[262px]"}}),s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_FIRST_NAME}`,type:"text",placeholder:"Vorname",className:"col-span-2",classNames:{input:" border border-black rounded-md mb-[6px] max-w-[150px] ",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}}),s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_ADDRESS}`,type:"text",placeholder:"Anschrift",className:"col-span-full",classNames:{input:" border border-black rounded-md mb-[6px] max-w-[320px] xl:max-w-[515px] ",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})]},l)})})}),s.jsx(rM,{title:"Belastungen aus Fremdmitteln, die für den Wohnraum aufzubringen sind:",children:s.jsx("div",{className:"flex flex-col gap-6",children:e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE].map((i,l)=>{const o=`${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE}.${l}`;return s.jsxs(iM,{title:`Angaben für ${l+1}. Belastung`,classNames:{children:"grid grid-cols-7 xl:grid-cols-9"},children:[s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_PURPOSE}`,type:"number",placeholder:"Zweck aus Fremdmitteln",className:"col-span-4",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_DONOR}`,type:"text",placeholder:"Geber*in",className:"col-span-3",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_AMOUNT}`,type:"number",placeholder:"Ursprünglicher Betrag ",className:"col-span-4",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_BALANCE}`,type:"number",placeholder:"Aktueller Restbetrag",className:"col-span-3",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_AMOUNT_FOR_DEBT_SERVICE_PER_MONTH}`,type:"number",placeholder:"Betrag für Kapitaldienst je Monat",className:"col-span-4",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(J,{name:`${o}.${x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_SUBSIDY_END_OF_TERM}`,placeholder:"Ende der Laufzeit",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"col-span-3"})]},l)})})}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:"Ein Fremdmittel wurde durch ein anderes, z.B. zinsgünstigeres Darlehen (Umschuldung), ersetzt.",name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED,classNames:{label:"font-chakra font-semibold leading-[23px]"}}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED],children:[s.jsx(Kr,{title:"Rest des ersetzten Fremdmittels im Zeitpunkt der Ersetzung:",className:"w-4/5",classNames:{children:" justify-end"},children:s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_REMAINDER_OF_REPLACED_BORROWED_FUNDS,type:"number",placeholder:"XX.XX",className:"w-[130px]",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})}),s.jsx(Kr,{title:"Leistungen für Zinsen, Tilgung und laufende Nebenleistungen im Zeitpunkt der Ersetzung.",className:"w-4/5",classNames:{children:" justify-end"},children:s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_BENEFITS_FOR_INTEREST,type:"number",placeholder:"XX.XX",className:"w-[130px]",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})})]}),s.jsx(Ir,{isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE],switchElement:s.jsx(k,{label:`Es entstehen Beiträge für Personenversicherungen (zum Beispiel Lebensversicherung) oder einen Bausparvertrag, die für die Rückzahlung von Fremdmitteln zweckgebunden sind.`,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE,classNames:{label:"font-chakra font-semibold leading-[23px]"}}),children:s.jsx(Kr,{title:"Art des Fremdmittels und monatliche Höhe in Euro:",className:"w-4/5",classNames:{children:" justify-end"},children:s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE_BORROWED_FUNDS_AND_MONTHLY_AMOUNT,type:"number",placeholder:"XX.XX",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})})}),s.jsx(rM,{title:"Welche weiteren Aufwendungen haben Sie für Ihren Wohnraum?",children:s.jsxs(iM,{className:"pt-4",children:[s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_PROPERTY_TAX,type:"number",placeholder:"Grundsteuer",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GUARANTEE_COSTS,type:"number",placeholder:"Bürgschaftskosten",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_ADMINISTRATIVE_EXPENSES,type:"number",placeholder:"Verwaltungskosten",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_USAGE_FEE,type:"number",placeholder:"Nutzungsentgeld",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GROUND_RENT,type:"number",placeholder:"Erbbauzinsen",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_OTHER_SERVICES,type:"number",placeholder:"Sonstige Leistungen",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})]})}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:`Die Belastungen für den Wohnraum werden sich in den kommenden 12 Monaten verringern oder erhöhen.`,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE,classNames:{label:"font-chakra font-semibold leading-[23px]"}}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE],classNames:{children:"gap-2"},children:[s.jsx(Kr,{title:"Datum",className:"gap-x-5",classNames:{children:"max-w-[140px] w-full"},children:s.jsx(J,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_DATE,placeholder:"TT.MM.JJJJ",label:"",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"w-full"})}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_TYPE_OF_LOADS,placeholder:"Art der Belastungen",className:"w-fit",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}}),s.jsx(Kr,{title:"künftige Belastungen pro Monat",className:"gap-x-5",children:s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_FUTURE_CHARGES_PER_MONTH,type:"number",placeholder:"XX,XX",className:"w-full max-w-[130px]",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})}),s.jsx(_s,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WIL_WILL_INCREASE_REASON,placeholder:"Grund",className:"w-full"})]}),s.jsx(Ir,{switchElement:s.jsx(k,{label:"Ist innerhalb der nächsten 12 Monate ein Auszug aus der jetzigen Unterkunft geplant?",name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS],children:s.jsx(Kr,{title:"Datum",children:s.jsx(J,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS_DATE,placeholder:"TT.MM.JJJJ",label:"",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"w-full"})})}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:`Weicht Ihre aktuelle Anschrift von der Anschrift der Wohnung ab, für die Sie Lastenzuschuss beantragen?`,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS],classNames:{children:"grid grid-cols-6 gap-2 w-full max-w-[80%]"},children:[s.jsx("h3",{className:"col-span-full",children:"Anschrift der neuen Wohnung"}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_STREET_NAME,type:"text",placeholder:"Straße",classNames:{input:"max-w-[272px] border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-5"}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_BUILDING_NUMBER,type:"text",placeholder:"Nr.",classNames:{input:"max-w-[86px] border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-1"}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_POSTAL_CODE,type:"text",placeholder:"PLZ",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-2"}),s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_LOCATION,type:"text",placeholder:"Ort",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-4"}),s.jsx(Kr,{title:"Geplantes Einzugsdatum",className:"col-span-full",children:s.jsx(j,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_PLANNED_MOVE_IN_DATE,type:"number",placeholder:"XX,XX",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})})]}),s.jsx(k,{label:"Es wird für eine andere Wohnung Lastenzuschuss bezogen/ beantragt. ",name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_APPLIED_FOR_ANOTHER_APARTMENT}),s.jsx(k,{label:"Zweitwohnsitz ist vorhanden. ",name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_SECOND_HOME_AVAILABLE}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:`In den kommenden Monaten wird sich die Anzahl der Haushaltsmitglieder erhöhen oder verringern? `,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE],classNames:{children:"gap-2"},children:[s.jsx(Kr,{title:"Geplantes Einzugsdatum",children:s.jsx(J,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_PLANED_MOVE_IN_DATE,placeholder:"TT.MM.JJJJ",label:"",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"w-full"})}),s.jsx(_s,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_REASON,placeholder:"Grund"})]}),s.jsx(Ir,{switchElement:s.jsx(k,{label:`Die Einnahmen eines Haushaltsmitglieds werden sich in den kommenden 12 Monaten verringern oder erhöhen. `,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE}),isOpen:!!e[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE],children:s.jsx(_s,{name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE_REASON,placeholder:"Grund und betreffende Person"})}),s.jsx(k,{label:`Ein Haushaltsmitglied wurde von einer Transferleistungsbehörde (zum Beispiel Jobcenter) aufgefordert, Lastenzuschuss zu beantragen `,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_WAS_PAID}),s.jsx(k,{label:`Einem Haushaltsmitglied steht ein notariell verbrieftes, unentgeltliches Wohnrecht zu.`,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_HAS_NOTARIZED_FREE_OF_CHARGE_RESIDENCE}),s.jsx(jn,{label:`Ich bin damit einverstanden, dass meine eigenen Kontoauszüge zu den Akten der Wohngeldstelle genommen werden.`,name:x.HOUSING_BENEFIT_BURDEN_SUBSIDY_AGREEMENT})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ZNe(){const{values:e,setFieldValue:t}=tt(),n=Ye(e,x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_IMMEDIATELY),a=Ye(e,x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_FROM),r=!n&&!a;return T.useEffect(()=>{n===void 0&&t(x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_IMMEDIATELY,!0)},[n,t]),s.jsxs(cn,{mode:"display",text:"Wohngeld: Mietzuschuss",className:"border-[#1B1F4A]",classNames:{parentContainer:ge(" max-w-[97%] bg-white "),childrenContainer:"gap-y-5 flex flex-col"},children:[s.jsxs("div",{className:"flex w-full flex-col gap-5",children:[s.jsx("h3",{className:"text-lg",children:"Bitte beantworten Sie folgende Fragen zum Antrag auf Wohngeld:"}),s.jsxs("div",{className:"flex flex-wrap gap-4",children:[s.jsx("div",{className:"flex basis-full gap-5",children:s.jsx(jN,{names:[x.HOUSING_BENEFIT_RENT_SUBSIDY_INITIAL_APPLICATION,x.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_CONTINUED_BENEFITS,x.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_INCREASE_REQUEST]})}),s.jsxs("div",{className:"flex basis-full gap-5",children:[s.jsx(si,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_IMMEDIATELY,text:"ab sofort",type:Ti.IMMEDIATELY,className:"w-[132px]"}),s.jsx(si,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_FROM,text:"ab dem:",placeholder:"Beschäftigt von",type:Ti.FROM_DATE,className:"w-[212px]"}),s.jsx(si,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_UNTIL,text:"bis zum:",placeholder:"Beschäftigt bis",type:Ti.UNTIL,disabled:r,className:"w-[212px]"})]})]})]}),s.jsxs("div",{className:"grid w-4/5 grid-cols-6 gap-2",children:[s.jsx("h3",{className:"col-span-full",children:"Postanschrift der zuständigen Wohngeldstelle:"}),s.jsxs("div",{className:"col-span-full flex flex-col gap-x-[17px] gap-y-2",children:[s.jsxs("div",{className:"flex w-full gap-[17px]",children:[s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_STREET_NAME,type:"text",placeholder:"Straße",className:"max-w-[272px] flex-1",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_BUILDING_NUMBER,type:"number",placeholder:"Nr.",className:"w-full max-w-[86px]",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})]}),s.jsxs("div",{className:"flex w-full gap-[17px]",children:[s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_POSTAL_CODE,type:"number",placeholder:"PLZ",className:"w-[110px]",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_LOCATION,type:"text",placeholder:"Ort",className:"max-w-[203px] flex-1",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})]}),s.jsx("div",{className:"w-full",children:s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER,type:"number",placeholder:"falls vorh. Wohngeldnr. / Aktenzeichen",className:"w-full max-w-[409px]",classNames:{input:"border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"}})})]})]}),s.jsxs("div",{className:"justify-left flex items-center gap-5",children:[s.jsx(Je,{type:"button",text:"Ich bin Untermieter*in",className:ge(ENe(!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT]),"line-clamp-1 max-w-fit"),onClick:()=>{e[x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT]?t(x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT,!1):t(x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT,!0)}}),s.jsx(Je,{type:"button",text:"Ich besitze ein Ein- oder Zweifamilienhaus",className:ge(jU(e[x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT]),"line-clamp-1 max-w-fit"),onClick:()=>{!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT]?t(x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT,!1):t(x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT,!0)}})]}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_HOW_MUCH_OF_YOUR_RENT_YOU_PAY_DIRECTLY_TO_YOUR_LANDLORD,label:"Welchen Teil-Betrag Ihrer Miete zahlen Sie direkt an Ihren Vermieter?",labelPosition:"top",type:"number",placeholder:"XX.XX",className:"max-w-[300px]",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] ",label:"font-chakra font-semibold leading-[23px] pb-1 max-w-none",inputSubContainer:"max-w-[200px]"}}),s.jsxs("div",{children:[s.jsx("h3",{className:"font-chakra text-[16px] font-semibold leading-[23px]",children:"Baujahr der Unterkunft"}),s.jsx(J,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_YEAR_OF_CONSTRUCTION_OF_ACCOMMODATION,placeholder:"TT.MM.JJJJ",label:"Baujahr der Unterkunft",classNames:{input:" border border-black rounded-md max-w-[300px]",label:"hidden",inputWrapper:"max-[200px]"},className:"max-w-[200px]"})]}),s.jsx(Ir,{switchElement:s.jsx(k,{label:"Ist innerhalb der nächsten 12 Monate ein Auszug aus der jetzigen Unterkunft geplant?",name:x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS}),isOpen:!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS],children:s.jsx(Kr,{title:"Auszugsdatum",children:s.jsx(J,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS_MOVE_OUT_DATE,placeholder:"TT.MM.JJJJ",label:"",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"w-full"})})}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:`Weicht Ihre aktuelle Anschrift von der Anschrift der Wohnung ab, für die Sie Wohngeld beantragen?`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED}),isOpen:!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED],classNames:{children:"grid grid-cols-6 gap-2 w-full max-w-[80%]"},children:[s.jsx("h3",{className:"col-span-full",children:"Anschrift der neuen Wohnung"}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_STREET_NAME,type:"text",placeholder:"Straße",classNames:{input:"max-w-[272px] border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-5"}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_BUILDING_NUMBER,type:"number",placeholder:"Nr.",classNames:{input:"max-w-[86px] border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-1"}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_POSTAL_CODE,type:"number",placeholder:"PLZ",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-2"}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_LOCATION,type:"text",placeholder:"Ort",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"w-full"},className:"col-span-4"}),s.jsx(Kr,{title:"Geplantes Einzugsdatum",className:"col-span-full",children:s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_PLANNED_MOVE_IN_DATE,type:"number",placeholder:"XX,XX",className:"w-full",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-semibold leading-[23px] pb-1",inputSubContainer:"w-full"}})})]}),s.jsx(k,{label:"Es wird für eine andere Wohnung Wohngeld bezogen bzw. dies wurde beantragt. ",name:x.HOUSING_BENEFIT_RENT_SUBSIDY_BEING_RECEIVED_FOR_ANOTHER_APARTMENT_OR_THIS_HAS_BEEN_APPLIED_FOR}),s.jsx(k,{label:"Zweitwohnsitz ist vorhanden.",name:x.HOUSING_BENEFIT_RENT_SUBSIDY_SECOND_HOME_AVAILABLE}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:`In den kommenden Monaten wird sich die Anzahl der Haushaltsmitglieder erhöhen oder verringern.`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE}),isOpen:!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE],classNames:{children:"gap-2"},children:[s.jsx(Kr,{title:"Geplantes Einzugsdatum",children:s.jsx(J,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_PLANED_MOVE_IN_DATE,placeholder:"TT.MM.JJJJ",label:"",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"w-full"})}),s.jsx(_s,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_REASON,placeholder:"Grund"})]}),s.jsxs(Ir,{switchElement:s.jsx(k,{label:"Die Miete wird sich in den kommenden 12 Monaten verringern oder erhöhen.",name:x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS}),isOpen:!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS],classNames:{children:"gap-2"},children:[s.jsx(Kr,{title:"Datum",className:"flex-col gap-1",children:s.jsx(J,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_DATE,placeholder:"TT.MM.JJJJ",label:"",classNames:{input:" border border-black rounded-md w-full",label:"hidden",inputWrapper:"w-full"},className:"w-full max-w-[300px]"})}),s.jsx(j,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_FUTURE_RENT_PER_MONTH,type:"number",placeholder:"XX,XX",label:"künftige Gesamtmiete pro Monat",className:"w-full",labelPosition:"top",rightIcon:s.jsx("div",{className:"absolute right-1 top-px z-0 flex items-center border-l border-black bg-white px-2",children:"€"}),classNames:{input:" border border-black rounded-md mb-[6px] max-w-none ",label:"font-chakra font-normal leading-[23px] pb-1",inputSubContainer:"max-w-[300px]"}}),s.jsx(_s,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON,placeholder:"Grund",className:"mt-4"})]}),s.jsx(Ir,{switchElement:s.jsx(k,{label:`Die Einnahmen eines Haushaltsmitglieds werden sich in den kommenden 12 Monaten verringern oder erhöhen.`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS}),isOpen:!!e[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS],classNames:{children:"gap-2"},children:s.jsx(_s,{name:x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON_AND_PERSON_CONCERNED,placeholder:"Grund und betreffende Person"})}),s.jsx(k,{label:`Ein Haushaltsmitglied wurde von einer Transferleistungsbehörde (zum Beispiel Jobcenter, Sozialamt) aufgefordert, Wohngeld zu beantragen.`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_ONE_HOUSEHOLD_MEMBER_WAS_PAID_BY_A_TRANSFER_AUTHORITY}),s.jsx(k,{label:`Einem Haushaltsmitglied steht ein notariell verbrieftes, unentgeltliches Wohnrecht zu.`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_A_HOUSEHOLD_MEMBER_HAS_A_NOTARIZED_FREE_OF_CHARGE_RIGHT_OF_RESIDENCE}),s.jsx(k,{label:`Der Wohnraum wurde mit öffentlichen Mitteln gefördert und unterliegt deshalb der Mietpreisbindung.`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_THE_HOUSING_WAS_SUBSIDIZED_WITH_PUBLIC_FUNDS_AND_IS_SUBJECT_TO_HENCE_RENT_CONTROL}),s.jsx(jn,{label:`Ich bin damit einverstanden, dass meine eigenen Kontoauszüge zu den Akten der Wohngeldstelle genommen werden.`,name:x.HOUSING_BENEFIT_RENT_SUBSIDY_AGREEMENT})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function JNe(){var r,i;const e=wt(),{values:t}=tt(),n=((r=e.applicantState.livingCosts)==null?void 0:r.typeOfLivingCost)==="rent",a=((i=e.applicantState.livingCosts)==null?void 0:i.typeOfLivingCost)==="ownership";return s.jsxs("div",{className:"flex flex-wrap gap-4",children:[s.jsx("span",{className:"col-span-full font-chakra font-medium",children:"Adressdaten"}),s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:x.STREET_NAME,type:"text",placeholder:"Straßenname",className:"max-w-[262px] flex-1"}),s.jsx(j,{name:x.BUILDING_NUMBER,type:"text",placeholder:"Nr.",className:"max-w-[86px]"})]}),s.jsx("div",{className:"w-full",children:s.jsx(j,{name:x.FLOOR_NUMBER,type:"text",placeholder:"ggf. Stockwerk",className:"max-w-[262px]"})}),s.jsxs("div",{className:"flex w-full gap-[57px]",children:[s.jsx(j,{name:x.POSTAL_CODE,type:"text",placeholder:"PLZ",className:"max-w-[120px]"}),s.jsx(j,{name:x.CITY,type:"text",placeholder:"Stadt",className:"max-w-[187px] flex-1"})]}),s.jsx("div",{className:"flex w-full gap-4",children:s.jsx(j,{name:x.PO_BOX_ADRESS,type:"text",placeholder:"Postfachanschrift",className:"max-w-[540px]"})}),s.jsx("div",{className:"flex w-full gap-4",children:s.jsx(k,{label:"Es ist kein fester Wohnsitz vorhanden.",classNames:{label:"font-chakra font-medium"},name:x.NO_PERMANENT_RESIDENCE,className:"col-span-full"})}),t.noPermanentResidence&&s.jsx("div",{className:"flex w-full gap-4",children:s.jsx(_s,{name:x.RESIDENCE_DETAILS,placeholder:"Gegebenenfalls wohnhaft bei (Name und Anschrift Person/Einrichtung)",className:"w-full max-w-[540px]"})}),s.jsxs("div",{className:"flex w-full gap-4",children:[s.jsx(j,{name:x.PHONE_NUMBER,type:"text",placeholder:"Telefonnummer (opt.)",className:"max-w-[262px] flex-1"}),s.jsx(j,{name:x.EMAIL_ADDRESS,type:"email",placeholder:"E-Mail Adresse (optional)",className:"max-w-[262px] flex-1"})]}),n&&s.jsxs("div",{className:"col-span-full mt-4 grid grid-cols-2 gap-4",children:[s.jsx("div",{className:"flex flex-col gap-[3px]",children:s.jsx(j,{name:x.LANDLORD_NAME,type:"text",placeholder:"Name Vermieter",className:"col-span-5",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"max-w-[270px]"}})}),s.jsx("div",{className:"flex flex-col gap-[3px]",children:s.jsx(j,{name:x.LANDLORD_ADDRESS,type:"text",placeholder:"Anschrift Vermieter",className:"col-span-5",classNames:{input:" border border-black rounded-md mb-[6px] max-w-none",label:"font-chakra font-semibold leading-[23px]",inputSubContainer:"max-w-[270px]"}})})]}),s.jsxs("div",{className:"flex w-full flex-col gap-4",children:[s.jsx("span",{className:"col-span-full font-chakra font-medium",children:"An welche Bankverbindung sollen die Leistungen geschickt werden?"}),s.jsx(j,{name:x.NAME_OF_BANK_ACCOUNT_HOLDER,type:"text",placeholder:"Vor- und Zuname des Kontoinhabers",className:"max-w-[527px]"}),s.jsx(j,{name:x.IBAN,type:"text",placeholder:"IBAN",className:"max-w-[527px]"}),s.jsx(j,{name:x.BIC,type:"text",placeholder:"BIC",className:"max-w-[527px]"}),s.jsx(k,{label:"Es ist keine Bankverbindung vorhanden.",classNames:{label:"font-chakra font-medium"},name:x.NO_BANK_ACCOUNT,className:"col-span-full"})]}),n&&s.jsxs(s.Fragment,{children:[s.jsx(k,{label:"Wohnkosten sollen direkt an meinen Vermieter gezahlt werden.",classNames:{label:"font-chakra font-medium"},name:x.PAID_DIRECTLY_TO_LANDLORD,className:"col-span-full"}),t.paidDirectlyToLandlord&&s.jsxs("div",{className:"flex w-full flex-col gap-4",children:[s.jsx(j,{name:x.LANDLORD_IBAN,type:"text",placeholder:"IBAN",className:"max-w-[527px]"}),s.jsx(j,{name:x.LANDLORD_NAME_OF_BANK_ACCOUNT_HOLDER,type:"text",placeholder:"Kontoinhaber",className:"max-w-[527px]"}),s.jsx(j,{name:x.LANDLORD_BIC,type:"text",placeholder:"BIC",className:"max-w-[527px]"})]})]}),a&&s.jsxs(s.Fragment,{children:[s.jsx(k,{label:"Wohnkosten sollen direkt an eine andere Person gezahlt werden.",classNames:{label:"font-chakra font-medium"},name:x.PAID_DIRECTLY_TO_OTHER_PERSON,className:"col-span-full"}),t.paidDirectlyToOtherPerson&&s.jsxs("div",{className:"flex w-full flex-col gap-4",children:[s.jsx(j,{name:x.OTHER_PERSON_IBAN,type:"text",placeholder:"IBAN",className:"max-w-[527px]"}),s.jsx(j,{name:x.OTHER_PERSON_NAME_OF_BANK_ACCOUNT_HOLDER,type:"text",placeholder:"Kontoinhaber",className:"max-w-[527px]"}),s.jsx(j,{name:x.OTHER_PERSON_BIC,type:"text",placeholder:"BIC",className:"max-w-[527px]"})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function QNe({className:e}){var f;INe();const{applicantState:t}=wt(),n=Yn(),{submitForm:a}=tt(),r=(t==null?void 0:t.calculationFilters)||[],i=(f=t==null?void 0:t.livingCosts)==null?void 0:f.typeOfLivingCost,l=r.includes(Yg.CHILD_ALLOWANCE),o=r.includes(Yg.HOUSING_BENEFIT),c=r.includes(Yg.CITIZENS_ALLOWANCE),d=async()=>{await a(),n(qe.FERTIGSTELLUNG)},h=!t;return s.jsxs(Mi,{className:ge("flex flex-col gap-6",e),children:[s.jsxs("div",{className:"border-b pb-4 mb-2",children:[s.jsx("h2",{className:"text-2xl font-black text-black",children:"Persönliche Daten ergänzen"}),s.jsx("p",{className:"text-gray-600 mt-1",children:"Bitte geben Sie nun Ihre echten Daten ein, um die Anträge final zu erstellen."})]}),h?s.jsx("div",{className:"flex h-40 w-full items-center justify-center rounded-lg bg-gray-50 border border-dashed border-gray-300",children:s.jsx("p",{className:"text-gray-500 animate-pulse",children:"Lade Formulardaten..."})}):s.jsxs("div",{className:"flex flex-col gap-8",children:[s.jsx(VNe,{}),s.jsx(JNe,{}),c&&s.jsx(WNe,{}),l&&s.jsx(vNe,{}),o&&i==="ownership"&&s.jsx(KNe,{}),o&&i==="rent"&&s.jsx(ZNe,{})]}),s.jsxs("div",{className:"flex justify-between mt-12 pt-6 border-t border-gray-100",children:[s.jsx("button",{type:"button",onClick:()=>n(qe.ERGEBNISSE),className:"rounded border border-gray-300 bg-white px-6 py-3 font-bold text-gray-700 shadow-sm hover:bg-gray-50 transition-colors",children:"Zurück zum Ergebnis"}),s.jsx("button",{type:"button",onClick:d,disabled:h,className:ge("rounded px-8 py-3 font-bold text-white shadow-md transition-all",h?"bg-gray-400 cursor-not-allowed":"bg-black hover:bg-gray-800 hover:scale-[1.02]"),children:"Anträge erstellen (Download)"})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const XNe=bn().shape({[x.GUARDIAN]:Ce().optional().nullable(),[x.PENSION_INSURANCE_NUMBER]:le().optional().nullable(),[x.PENSION_INSURANCE_NUMBER_NOT_AVAILABLE_YET]:Ce().optional().nullable(),[x.TAX_IDENTIFICATION_NUMBER]:le().optional().nullable(),[x.TYPE_OF_INSURANCE]:le().optional().nullable(),[x.CURRENT_HEALTH_INSURANCE_NAME]:le().optional().nullable(),[x.CURRENT_HEALTH_INSURANCE_NUMBER]:le().optional().nullable(),[x.CURRENT_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON]:le().optional().nullable(),[x.OTHER_HEALTH_INSURANCE_NAME]:le().optional().nullable(),[x.OTHER_HEALTH_INSURANCE_NAME_OF_INSURED_PERSON]:le().optional().nullable(),[x.OTHER_HEALTH_INSURANCE_NUMBER]:le().optional().nullable(),[x.BENEFITS_FROM_ANOTHER_JOB_CENTER_FOR_LAST_3_YEARS]:Ce().optional().nullable(),[x.NAME_AND_ADDRESS_OF_THE_OTHER_JOB_CENTER]:le().optional().nullable(),[x.EMPLOYMENT_IN_LAST_5_YEARS]:Ce().optional().nullable(),[x.WHAT_YOU_LIVED_LAST_5_YEARS]:le().optional().nullable(),[x.IS_EMPLOYEE]:Ce().optional().nullable(),[x.EMPLOYER]:le().optional().nullable(),[x.EMPLOYED_SINCE]:Bt().optional().nullable(),[x.EMPLOYED_UNTIL]:Bt().optional().nullable(),[x.SELF_EMPLOYED]:Ce().optional().nullable(),[x.TYPE_OF_ACTIVITY]:le().optional().nullable(),[x.TYPE_OF_ACTIVITY_SINCE]:Bt().optional().nullable(),[x.TYPE_OF_ACTIVITY_UNTIL]:Bt().optional().nullable(),[x.PARENT_LEAVE]:Ce().optional().nullable(),[x.PARENT_LEAVE_SINCE]:Bt().optional().nullable(),[x.PARENT_LEAVE_UNTIL]:Bt().optional().nullable(),[x.MILITARY_OR_VOLUNTARY_SERVICE]:Ce().optional().nullable(),[x.MILITARY_OR_VOLUNTARY_SERVICE_SINCE]:Bt().optional().nullable(),[x.MILITARY_OR_VOLUNTARY_SERVICE_UNTIL]:Bt().optional().nullable(),[x.RELATIVES_CARED_FOR]:Ce().optional().nullable(),[x.RELATIVES_CARED_FOR_SINCE]:Bt().optional().nullable(),[x.RELATIVES_CARED_FOR_UNTIL]:Bt().optional().nullable(),[x.RECEIVE_COMPENSATION_BENEFITS]:Ce().optional().nullable(),[x.TYPE_OF_COMPENSATION_BENEFITS]:le().optional().nullable(),[x.CLAIMS_AGAINST_THIRD_PARTIES]:Ce().optional().nullable(),[x.CLAIMS_AGAINST_FORMER_EMPLOYER]:Ce().optional().nullable(),[x.NAME_OF_FORMER_EMPLOYER]:le().optional().nullable(),[x.STREET_NAME_OF_FORMER_EMPLOYER]:le().optional().nullable(),[x.BUILDING_NUMBER_OF_FORMER_EMPLOYER]:le().optional().nullable(),[x.POSTAL_CODE_OF_FORMER_EMPLOYER]:le().optional().nullable(),[x.CITY_OF_FORMER_EMPLOYER]:le().optional().nullable(),[x.REASON_FOR_CLAIMS]:le().optional().nullable(),[x.DAMAGE_TO_HEALTH_BECAUSE_OF_THIRD_PARTY]:Ce().optional().nullable(),[x.PAYMENT_CLAIMS]:Ce().optional().nullable(),[x.PAYMENT_CLAIMS_DESCRIPTION]:le().optional().nullable(),[x.PARENT_OUTSIDE_THE_HOUSEHOLD_NAME]:le().optional().nullable(),[x.PARENT_OUTSIDE_THE_HOUSEHOLD_FAMILY_NAME]:le().nullable(),[x.PARENT_OUTSIDE_THE_HOUSEHOLD_PLACE_OF_BIRTH]:le().optional().nullable(),[x.PATERNITY_WAS_RECOGNIZED]:Ce().optional().nullable(),[x.PARENT_STREET_NAME]:le().optional().nullable(),[x.PARENT_BUILDING_NUMBER]:le().optional().nullable(),[x.PARENT_FLOOR_NUMBER]:le().optional().nullable(),[x.PARENT_POSTAL_CODE]:le().optional().nullable(),[x.PARENT_CITY]:le().optional().nullable(),[x.PARENT_TELEPHONE_NUMBER]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_STREET]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_LOCATION]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_BUILDING_NUMBER]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_POSTAL_CODE]:le().optional().nullable(),[x.CHILD_BENEFIT_NUMBER]:le().optional().nullable(),[x.DESIGNATION]:bn().shape({value:le(),label:le()}).nullable(),[x.EXPECTED_DATE_OF_DELIVERY]:Bt().optional().nullable()}),_Ne=XNe.shape({id:le().optional().nullable(),[x.FIRST_NAME]:le().optional().nullable(),[x.POSTAL_CODE]:le().optional().nullable(),[x.LAST_NAME]:le().optional().nullable(),[x.PLACE_OF_BIRTH]:le().optional().nullable(),[x.COUNTRY_OF_BIRTH]:bn().shape({value:le(),label:le()}).nullable(),[x.GENDER]:bn().shape({value:le(),label:le()}).nullable(),[x.MARITAL_STATUS]:bn().shape({value:le(),label:le()}).nullable(),[x.DATE_OF_BIRTH]:Bt().optional().nullable(),[x.MEMBER_TYPE]:rm().oneOf(["applicant","partner","kids","otherMembers"]).optional().nullable()}),$Ne=bn().shape({[x.HOUSE_HOLD_MEMBERS_APPLICATION]:ri(_Ne).optional().nullable(),[x.POSTAL_CODE]:le().optional().nullable(),[x.PAID_DIRECTLY_TO_OTHER_PERSON]:Ce().optional().nullable(),[x.LANDLORD_BIC]:le().optional().nullable(),[x.OTHER_PERSON_IBAN]:le().optional().nullable(),[x.OTHER_PERSON_NAME_OF_BANK_ACCOUNT_HOLDER]:le().optional().nullable(),[x.OTHER_PERSON_BIC]:le().optional().nullable(),[x.STREET_NAME]:le().optional().nullable(),[x.BUILDING_NUMBER]:le().optional().nullable(),[x.FLOOR_NUMBER]:le().optional().nullable(),[x.CITY]:le().optional().nullable(),[x.PHONE_NUMBER]:le().optional().nullable(),[x.EMAIL_ADDRESS]:le().optional().nullable(),[x.LANDLORD_NAME]:le().optional().nullable(),[x.LANDLORD_ADDRESS]:le().optional().nullable(),[x.NAME_OF_BANK_ACCOUNT_HOLDER]:le().optional().nullable(),[x.IBAN]:le().optional().nullable(),[x.LANDLORD_NAME_OF_BANK_ACCOUNT_HOLDER]:le().optional().nullable(),[x.PAID_DIRECTLY_TO_LANDLORD]:Ce().optional().nullable(),[x.BIC]:le().optional().nullable(),[x.IN_STATIONARY_FACILITY]:le().optional().nullable(),[x.IN_STATIONARY_FACILITY_NAME]:le().optional().nullable(),[x.INCOME_FROM_EMPLOYMENT]:le().optional().nullable(),[x.NAME_OF_EMPLOYER]:le().optional().nullable(),[x.COMPANY_HEADQUARTERS]:le().optional().nullable(),[x.HOUSEHOLD_MEMBER_APPLIED_FOR_ANOTHER_BENEFIT]:Ce().optional().nullable(),[x.SOCIAL_BENEFIT_PROVIDER]:le().optional().nullable(),[x.CHECKBOX_BAFOEG]:Ce().optional().nullable(),[x.CHECKBOX_BAB]:Ce().optional().nullable(),[x.CHECKBOX_HOUSING_ALLOWANCE]:Ce().optional().nullable(),[x.CHECKBOX_UNEMPLOYMENT_BENEFIT]:Ce().optional().nullable(),[x.CHECKBOX_PENSION]:Ce().optional().nullable(),[x.CHECKBOX_SICKNESS_BENEFIT]:Ce().optional().nullable(),[x.CHECKBOX_CHILD_ALLOWANCE]:Ce().optional().nullable(),[x.CHECKBOX_CHILD_ALLOWANCE_SUPPLEMENT]:Ce().optional().nullable(),[x.CHECKBOX_OTHER]:Ce().optional().nullable(),[x.APPLICATION_DATE]:Bt().optional().nullable(),[x.APPLICATION_REJECTED]:Ce().optional().nullable(),[x.ABANDONED]:Ce().optional().nullable(),[x.INITIAL_APPLICATION]:Ce().optional().nullable(),[x.APPLICATION_FOR_RENEWAL]:Ce().optional().nullable(),[x.INCREASE_REQUEST]:Ce().optional().nullable(),[x.CITIZENS_ALLOWANCE_REQUEST_IMMEDIATELY]:Ce().optional().nullable(),[x.CITIZENS_ALLOWANCE_REQUEST_FROM]:Bt().optional().nullable(),[x.CITIZENS_ALLOWANCE_REQUEST_UNTIL]:Bt().optional().nullable(),[x.RESPONSIBLE_JOB_CENTER_STREET_NAME]:le().optional().nullable(),[x.RESPONSIBLE_JOB_CENTER_BUILDING_NUMBER]:le().optional().nullable(),[x.RESPONSIBLE_JOB_CENTER_POSTAL_CODE]:le().optional().nullable(),[x.RESPONSIBLE_JOB_CENTER_POSTAL_LOCATION]:le().optional().nullable(),[x.BG_NUMBER]:le().optional().nullable(),[x.YEAR_OF_CONSTRUCTION]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_STREET]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_LOCATION]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_BUILDING_NUMBER]:le().optional().nullable(),[x.RESPONSIBLE_FAMILY_FUND_POSTAL_CODE]:le().optional().nullable(),[x.CHILD_BENEFIT_NUMBER]:le().optional().nullable(),[x.CHILD_ALLOWANCE_REQUEST_IMMEDIATELY]:Ce().nullable(),[x.CHILD_ALLOWANCE_REQUEST_FROM]:Bt().optional().nullable(),[x.CHILD_ALLOWANCE_REQUEST_UNTIL]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INITIAL_APPLICATION]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_CONTINUED_BENEFITS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_FOR_INCREASE_REQUEST]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_IMMEDIATELY]:Ce().nullable().optional(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_FROM]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_REQUEST_UNTIL]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_ONE]:Ce().optional(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_PROPERTY_OWNERSHIP_OWN_SEVERAL]:Ce().optional(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_STREET_NAME]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BUILDING_NUMBER]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_POSTAL_CODE]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_LOCATION]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS]:ri().of(bn({[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_LAST_NAME]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_FIRST_NAME]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_OWNERS_FOR_LIVING_SPACE_OTHER_OWNERS_ADDRESS]:le().optional().nullable()})).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE]:ri().of(bn({[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_PURPOSE]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_DONOR]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_AMOUNT]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_ORIGINAL_BALANCE]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_AMOUNT_FOR_DEBT_SERVICE_PER_MONTH]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CHARGES_FROM_BORROWED_FUNDS_THAT_MUST_BE_MADE_FOR_THE_LIVING_SPACE_SUBSIDY_END_OF_TERM]:Bt().optional().nullable()})).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_REMAINDER_OF_REPLACED_BORROWED_FUNDS]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BORROWED_RESOURCE_REPLACED_BENEFITS_FOR_INTEREST]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CONTRIBUTIONS_FOR_PERSONAL_INSURANCE_BORROWED_FUNDS_AND_MONTHLY_AMOUNT]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_PROPERTY_TAX]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GUARANTEE_COSTS]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_ADMINISTRATIVE_EXPENSES]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_USAGE_FEE]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_GROUND_RENT]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_OTHER_EXPENSES_OTHER_SERVICES]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_TYPE_OF_LOADS]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_WILL_INCREASE_FUTURE_CHARGES_PER_MONTH]:Ut().transform(e=>isNaN(e)?void 0:e).optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_MOVE_OUT_PLANS_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_STREET_NAME]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_BUILDING_NUMBER]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_POSTAL_CODE]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_LOCATION]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_CURRENT_ADDRESS_DIFFERS_PLANNED_MOVE_IN_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_BURDEN_APPLIED_FOR_ANOTHER_APARTMENT]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_SECOND_HOME_AVAILABLE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_PLANED_MOVE_IN_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_NUMBER_WILL_INCREASE_REASON]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_INCOME_OF_HOUSEHOLD_MEMBER_WILL_INCREASE_REASON]:le().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_WAS_PAID]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_HOUSEHOLD_MEMBER_HAS_NOTARIZED_FREE_OF_CHARGE_RESIDENCE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_BURDEN_SUBSIDY_AGREEMENT]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_INITIAL_APPLICATION]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_CONTINUED_BENEFITS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_FOR_INCREASE_REQUEST]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_IMMEDIATELY]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_FROM]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_REQUEST_UNTIL]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_STREET_NAME]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_BUILDING_NUMBER]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_POSTAL_CODE]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_LOCATION]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_HOUSING_ALLOWANCE_NUMBER_OR_FILE_REFERENCE_NUMBER]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_MAIN_TENANT]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_I_AM_SUB_TENANT]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_HOW_MUCH_OF_YOUR_RENT_YOU_PAY_DIRECTLY_TO_YOUR_LANDLORD]:Ut().transform(e=>isNaN(e)?void 0:e).when(x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS,{is:!0,then:e=>e.required("Betrag ist erforderlich"),otherwise:e=>e.nullable()}),[x.HOUSING_BENEFIT_RENT_SUBSIDY_YEAR_OF_CONSTRUCTION_OF_ACCOMMODATION]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_ARE_YOU_PLANING_TO_MOVE_FROM_CURRENT_ACCOMMODATION_IN_NEXT_12_MONTHS_MOVE_OUT_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_STREET_NAME]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_BUILDING_NUMBER]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_POSTAL_CODE]:Ut().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_LOCATION]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IS_YOUR_CURRENT_ADDRESS_DIFFERENT_FROM_WHICH_YOU_APPLIED_PLANNED_MOVE_IN_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_BEING_RECEIVED_FOR_ANOTHER_APARTMENT_OR_THIS_HAS_BEEN_APPLIED_FOR]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_SECOND_HOME_AVAILABLE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_PLANED_MOVE_IN_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_IN_THE_COMING_MONTHS_THE_NUMBER_OF_HOUSEHOLD_MEMBERS_WILL_INCREASE_OR_DECREASE_REASON]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_DATE]:Bt().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_FUTURE_RENT_PER_MONTH]:Ut().transform(e=>isNaN(e)?void 0:e).required("Betrag ist erforderlich"),[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_RENT_HOUSEHOLD_MEMBERS_INCOME_WILL_DECREASE_OR_INCREASE_OVER_THE_NEXT_12_MONTHS_REASON_AND_PERSON_CONCERNED]:le().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_ONE_HOUSEHOLD_MEMBER_WAS_PAID_BY_A_TRANSFER_AUTHORITY]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_A_HOUSEHOLD_MEMBER_HAS_A_NOTARIZED_FREE_OF_CHARGE_RIGHT_OF_RESIDENCE]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_THE_HOUSING_WAS_SUBSIDIZED_WITH_PUBLIC_FUNDS_AND_IS_SUBJECT_TO_HENCE_RENT_CONTROL]:Ce().optional().nullable(),[x.HOUSING_BENEFIT_RENT_SUBSIDY_AGREEMENT]:Ce().optional().nullable()});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function exe(){const e=xNe(),t=SNe(),{applicantState:n}=wt();return!n||!e?s.jsx("div",{className:"flex h-64 w-full items-center justify-center",children:s.jsxs("div",{className:"flex flex-col items-center gap-2",children:[s.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-gray-200 border-t-black"}),s.jsx("p",{className:"text-gray-500 font-medium",children:"Lade Stammdaten..."})]})}):s.jsx(ONe,{children:s.jsx(fs,{initialValues:e,validationSchema:$Ne,onSubmit:t,validateOnMount:!1,enableReinitialize:!0,initialTouched:{housingBenefitRentSubsidyRentWillDecreaseOrIncreaseOverTheNext12MonthsFutureRentPerMonth:!0,housingBenefitRentSubsidyHowMuchOfYourRentYouPayDirectlyToYourLandlord:!0},children:s.jsx(QNe,{})})})}const txe=Object.freeze(Object.defineProperty({__proto__:null,default:exe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Op(e){const t={inputSubContainer:"max-w-[160px]",...e.classNames};return s.jsx(j,{rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"}),type:"text",placeholder:"Betrag",...e,classNames:t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const fE={apprenticeshipBabEligible:{id:"apprenticeshipBabEligible",title:"Ausbildung ist förderfähig nach BAB",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Eine Ausbildung ist nur dann mit Berufsausbildungsbeihilfe (BAB) förderfähig, wenn sie mindestens ein Jahr dauert und in einem anerkannten Ausbildungsberuf stattfindet."}),s.jsx("p",{children:"Betriebliche und außerbetriebliche Ausbildungen, die auf Grundlage des Berufsbildungsgesetzes (BBiG) oder der Handwerksordnung (HwO) erfolgen, können mit BAB gefördert werden."}),s.jsx("p",{children:"Voraussetzung ist ein gültiger Ausbildungsvertrag und eine reguläre Dauer von mindestens einem Jahr."}),s.jsx("p",{children:"Schulische Ausbildungen, zum Beispiel an Berufsfachschulen oder Fachschulen (z. B. Erzieherin, Physiotherapeutin, pharmazeutisch-technische Assistentin), sind dagegen in der Regel nicht BAB-förderfähig. Für sie kommt meist eine Förderung über BAföG in Betracht."}),s.jsxs("p",{children:["Mehr hierzu im Gesetz unter:"," ",s.jsx("a",{href:"https://www.gesetze-im-internet.de/sgb_3/__57.html",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 underline hover:text-blue-800",children:"§ 57 SGB 3 - Einzelnorm"})]}),s.jsx("p",{children:"(Sozialgesetzbuch (SGB) Drittes Buch (III) - Arbeitsförderung - (Artikel 1 des Gesetzes vom 24. März 1997, BGBl. I S. 594))"})]})},apprenticeshipHousingType:{id:"apprenticeshipHousingType",title:"Spezielle Wohnform während der Ausbildung",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsxs("p",{children:["Es gibt keine Option „Bei den Eltern wohnend“.",s.jsx("br",{}),"SO12 erkennt automatisch, ob du mit deinen Eltern in einem gemeinsamen Haushalt lebst."]}),s.jsx("p",{children:s.jsx("strong",{children:"Warum ist das wichtig?"})}),s.jsxs("p",{children:["Für die Berechnung der Berufsausbildungsbeihilfe (BAB) spielt die Wohnsituation eine große Rolle:",s.jsx("br",{}),"Wenn du noch bei deinen Eltern wohnst, werden in der Regel keine eigenen Unterkunfts- oder Verpflegungskosten berücksichtigt. Meist bist du nicht förderfähig."]}),s.jsx("p",{children:"Wenn du nicht mehr bei deinen Eltern wohnst oder aus Ausbildungsgründen umgezogen bist, können Kosten für Miete und Lebensunterhalt (bis zu bestimmten Höchstbeträgen) berücksichtigt werden."}),s.jsx("p",{children:s.jsx("strong",{children:"Sonder- und Ausnahmefälle"})}),s.jsx("p",{children:"Es gibt auch Sonderfälle. Beispiel:"}),s.jsxs("p",{children:["Bei einer Behinderung, wenn z.B. eine eigene Versorgung / Assistenz notwendig ist.",s.jsx("br",{}),"Bei Minderjährigen auch bei schwierigen Familien- oder Konfliktsituationen, die ein eigenständiges Wohnen erforderlich machen, oder wenn eine Ausbildung wohnortfern stattfindet und ein tägliches Pendeln nicht zumutbar ist."]}),s.jsx("p",{children:"Die Software berücksichtigt diese Besonderheiten automatisch, wenn entsprechende Angaben zur Behinderung, sozialen Situation oder Entfernung zur Ausbildungsstätte gemacht werden."})]})},commutesPersonalCarDistance:{id:"commutesPersonalCarDistance",title:"Hinweis zur Nutzung eines privaten Kraftfahrzeugs bei Pendelfahrten",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Wenn Sie für den Weg zwischen Ihrer Wohnung und der Ausbildungsstätte ein privates Kraftfahrzeug nutzen, können Fahrtkosten pauschal berücksichtigt werden."}),s.jsxs("p",{children:["Die Berechnung erfolgt nach den geltenden Pendlerregelungen mit einer Pauschale von"," ",s.jsx("strong",{children:"0,20 € pro einfachem Kilometer und Arbeitstag"}),"."]}),s.jsxs("p",{children:["Es wird ausschließlich die einfache ",s.jsx("strong",{children:"Entfernung"})," zwischen Wohnung und Ausbildungsstätte angesetzt – ",s.jsx("strong",{children:"nicht"})," Hin- und Rückfahrt."]}),s.jsxs("p",{children:["Bitte beachten Sie: Die tatsächliche Anerkennung der Fahrtkosten erfolgt im Rahmen der"," ",s.jsx("strong",{children:"Einzelfallprüfung durch die zuständige Stelle"})," und kann von dieser Pauschale abweichen."]})]})},tripsHomePersonalCarDistance:{id:"tripsHomePersonalCarDistance",title:"Hinweis zur Nutzung eines privaten Kraftfahrzeugs bei Heimfahrten",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Heimfahrten (Familienheimfahrten) sind Fahrten zwischen dem Ausbildungsort und dem Wohnort der Eltern / des Elternteils."}),s.jsx("p",{children:"Sie werden nur dann berücksichtigt, wenn eine auswärtige Unterbringung erforderlich ist, z. B. weil das tägliche Pendeln zur Ausbildungsstätte nicht zumutbar ist (in der Regel bei einer Wegzeit von mehr als 2 Stunden)."}),s.jsxs("p",{children:["In der Regel wird ",s.jsx("strong",{children:"eine Heimfahrt pro Monat"})," anerkannt. Bei Nutzung öffentlicher Verkehrsmittel kann das Deutschlandticket berücksichtigt werden."]}),s.jsxs("p",{children:["Bei Nutzung eines privaten Pkw wird eine Pauschale von"," ",s.jsx("strong",{children:"0,20 € pro gefahrenem Kilometer"})," angesetzt (§ 5 Bundesreisekostengesetz)."]})]})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function nxe(e){const t={inputSubContainer:"max-w-[160px]",...e.classNames};return s.jsx(j,{rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"km"}),type:"text",placeholder:"Distanz",...e,classNames:t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const axe=[{label:"Öffentliche Verkehrsmittel",value:"publicTransport"},{label:"Privater PKW",value:"personalCar"}];function sM({formikNames:e,labels:t,classNames:n,currentlySelectedTypeOfTransport:a}){return s.jsxs("div",{className:"flex flex-col gap-[26px] pl-12",children:[s.jsx(om,{name:e.typeOfTransport,label:t.radioButtonGroupHeading,options:axe,classNames:{inputContainer:"flex-col gap-2",inputLabel:n==null?void 0:n.label,radio:"custom-radio-green"},labelClassName:n==null?void 0:n.label,defaultValue:"publicTransport"}),a==="publicTransport"&&s.jsx(Op,{name:e.publicTransportCosts,label:t.publicTransportCosts,classNames:{label:n==null?void 0:n.label}}),a==="personalCar"&&s.jsx(nxe,{name:e.personalCarDistance,label:s.jsxs("span",{children:[t.personalCarDistance," ",t.personalCarDistance==="Täglich für Pendelfahrten zurückgelegte Strecke (eine Richtung)"&&s.jsx(Xe,{...fE.commutesPersonalCarDistance}),t.personalCarDistance==="Für Familienheimfahrten zurückgelegte Strecke (eine Richtung)"&&s.jsx(Xe,{...fE.tripsHomePersonalCarDistance})]}),classNames:{label:n==null?void 0:n.label}})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const fd=[new da("dormitory","Wohnheim"),new da("boarding-school","Internat"),new da("facility-disabilities","besondere Einrichtung für Menschen mit Behinderung"),new da("instructor","beim Ausbilder mit voller Verpflegung"),new da("other-reimbursement","anderweitig mit Kostenerstattung für Unterkunft und Verpflegung"),new da("other-social","sonstige sozialpädagogische Wohnform mit voller Verpflegung"),new da("no-special-type","Keine spezielle Wohnform")];function rxe({formikNames:e,classNames:t,person:n}){var d;const{values:a}=tt();Number(n.age)<18;const r=e.apprenticeshipHousingType??"",i=Ye(a,r),l=(i==null?void 0:i.value)??((d=n.apprenticeshipHousingType)==null?void 0:d.value),c=l?["dormitory","boarding-school","facility-disabilities","instructor","other-social"].includes(l):!1;return s.jsx(s.Fragment,{children:s.jsx("div",{className:"flex flex-col gap-[26px]",children:s.jsxs("div",{className:"flex flex-col gap-[26px]",children:[s.jsx(Ft,{customClassNames:{inputContainer:"w-full max-w-[354px]",label:t==null?void 0:t.label},name:e.apprenticeshipHousingType??"",label:s.jsxs("span",{children:["Spezielle Wohnform während der Ausbildung (falls zutreffend)",s.jsx(Xe,{...fE.apprenticeshipHousingType})]}),closeMenuOnSelect:!0,defaultValue:fd.find(h=>h.value==="no-special-type")??fd.at(-1),options:fd}),c&&s.jsxs("div",{className:"flex flex-col gap-[26px] pl-12",children:[s.jsx(Op,{name:e.apprenticeshipHousingDailyRate??"",label:"Wie hoch ist der Tagessatz für Unterkunft und Verpflegung?",classNames:{label:t==null?void 0:t.label}}),s.jsx(k,{name:e.apprenticeshipHousingSocialSupport??"",label:"Ich erhalte sozialpädagogische Begleitung",classNames:{label:t==null?void 0:t.label}}),n.apprenticeshipHousingSocialSupport&&s.jsxs("div",{className:"flex flex-col gap-[26px] pl-12",children:[s.jsx(k,{name:e.apprenticeshipHousingSocialSupportIsCovered??"",label:"Das Entgelt für die sozialpädagogische Begleitung wird von Dritten (z. B. Jugendamt) erstattet.",classNames:{label:t==null?void 0:t.label}}),!n.apprenticeshipHousingSocialSupportIsCovered&&s.jsx(Op,{name:e.apprenticeshipHousingSocialSupportDailyRate??"",label:"Wie hoch ist der Tagessatz der sozialpädagogischen Begleitung?",classNames:{label:t==null?void 0:t.label}})]})]}),s.jsxs("div",{className:"flex flex-col gap-[26px]",children:[s.jsx(k,{name:e.notLivingWithParentsForSocialReason??"",label:"Aus schwerwiegenden sozialen Gründen kann nicht in der Wohnung der Eltern oder eines Elternteils gelebt werden.",classNames:{label:t==null?void 0:t.label}}),s.jsx(k,{name:e.parentsLiveSeparately??"",label:"Eltern leben getrennt voneinander",classNames:{label:t==null?void 0:t.label}}),s.jsx(k,{name:e.distanceParentsToApprenticeshipGreater2h??"",label:"Der Hin- und Rückweg von der Wohnung der Eltern zur Ausbildungsstätte dauert insgesamt mehr als 2 Stunden",classNames:{label:t==null?void 0:t.label}}),n.distanceParentsToApprenticeshipGreater2h&&s.jsx(sM,{labels:{radioButtonGroupHeading:"Im Rahmen der BAB können die Kosten für eine Familienheimfahrt im Monat übernommen werden. Wie führen Sie Ihre Familienheimfahrt durch?",publicTransportCosts:"Höhe der monatlichen Ausgaben",personalCarDistance:"Für Familienheimfahrten zurückgelegte Strecke (eine Richtung)"},formikNames:{typeOfTransport:e.tripsHomeTypeOfTransport??"",personalCarDistance:e.tripsHomePersonalCarDistance??"",publicTransportCosts:e.tripsHomePublicTransportCosts??""},classNames:{label:t==null?void 0:t.label},currentlySelectedTypeOfTransport:n.tripsHomeTypeOfTransport??null}),s.jsx(k,{name:e.hasCostsForCommutes??"",label:"Kosten für Fahrten zwischen Unterkunft, Ausbildungsstätte und Berufsschule (Pendelfahrten)",classNames:{label:t==null?void 0:t.label}}),n.hasCostsForCommutes&&s.jsx(sM,{labels:{radioButtonGroupHeading:"Womit wird die Strecke zurückgelegt?",publicTransportCosts:"Höhe der monatlichen Ausgaben",personalCarDistance:"Täglich für Pendelfahrten zurückgelegte Strecke (eine Richtung)"},formikNames:{typeOfTransport:e.commutesTypeOfTransport??"",personalCarDistance:e.commutesPersonalCarDistance??"",publicTransportCosts:e.commutesPublicTransportCosts??""},classNames:{label:t==null?void 0:t.label},currentlySelectedTypeOfTransport:n.commutesTypeOfTransport??null}),s.jsx(k,{name:e.costsWorkClothesCoveredByEmployer??"",label:"Die Kosten für die Beschaffung sowie für die Instandhaltung und Reinigung der Arbeitskleidung werden vom Arbeitgeber voll übernommen.",classNames:{label:t==null?void 0:t.label}})]})]})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function MS({formikNames:e,formInformationConfig:t,formLabels:n,classNames:a,person:r}){var C,M;const{values:i}=tt(),l=e.typeOfEducation,o=Ye(i,l),c=(typeof o=="string"?o:o==null?void 0:o.value)??((C=r.typeOfEducation)==null?void 0:C.value),d=AT(c),h=d==="apprenticeship",f=d==="school",m=c!=null&&["aufstiegsfortbildung","umschulung"].includes(c),g=c!=null&&["berufsfachschule","abendgymnasium","fachschule"].includes(c);e.accommodation;const b=new Date,E=e.apprenticeshipHousingType??"",S=Ye(i,E),I=(S==null?void 0:S.value)??((M=r.apprenticeshipHousingType)==null?void 0:M.value),O=["dormitory","boarding-school","facility-disabilities","instructor","other-social"],v=I!=null?O.includes(I):!1,w=zO.reduce((B,L)=>{var H;return(((H=L.label)==null?void 0:H.length)??0)>((B==null?void 0:B.length)??0)?L.label??"":B??""},""),D=B=>{var L,H;return s.jsx("div",{className:Ae("cursor-pointer",{"bg-blue-100":B.isSelected}),children:s.jsx(yh.Option,{...B,children:s.jsxs("div",{className:"flex flex-col gap-0.5 px-1 py-1",children:[s.jsx("span",{className:"text-sm font-medium",children:(L=B.data)==null?void 0:L.label}),((H=B.data)==null?void 0:H.subLabel)&&s.jsx("span",{className:"text-xs text-gray-500",children:B.data.subLabel})]})})})};return s.jsxs(s.Fragment,{children:[s.jsx(k,{name:e.inEducation,label:s.jsxs("p",{children:["(Schul-)Ausbildung oder Studium",(t==null?void 0:t.inEducation)&&s.jsx(Xe,{id:"currentlyInEducation",...t==null?void 0:t.inEducation})]}),classNames:{label:a==null?void 0:a.label}}),r.currentlyInEducation&&s.jsx("div",{className:"flex flex-col gap-4 px-12 py-0",children:s.jsxs("div",{className:"flex flex-col gap-[26px]",children:[s.jsxs("div",{className:"flex w-full max-w-[354px]",children:[s.jsx("div",{className:"min-w-[85px] shrink-0"}),s.jsxs("div",{className:"ml-auto grid [&>*]:col-start-1 [&>*]:row-start-1",children:[s.jsx("span",{className:"invisible whitespace-nowrap text-sm font-normal pl-[14px] pr-10","aria-hidden":"true",children:w}),s.jsx("div",{className:"min-w-0 w-full",children:s.jsx(Ft,{name:e.typeOfEducation,customClassNames:{inputContainer:"w-full min-w-0",label:a==null?void 0:a.label},options:zO,components:{Option:D},closeMenuOnSelect:!0})})]})]}),s.jsx(J,{name:e.startDate,label:"Startdatum",className:"items-start",placeholder:"Startdatum",labelPosition:"left",maxDate:r.educationEndDate?o1(new Date(r.educationEndDate),-1):void 0,classNames:{input:"max-w-[140px] border border-black rounded-md",label:a==null?void 0:a.label,container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"}}),s.jsx(J,{name:e.endDate,label:"Enddatum",className:"items-start",placeholder:"Enddatum",labelPosition:"left",minDate:r.educationStartDate&&r.educationStartDate>b?o1(new Date(r.educationStartDate),1):b,classNames:{input:"max-w-[140px] border border-black rounded-md",label:a==null?void 0:a.label,container:"justify-between w-full max-w-[354px]",inputWrapper:"w-auto"}}),h&&!m&&!g&&s.jsx(rxe,{formikNames:e,classNames:a,person:r}),g&&s.jsxs("div",{className:"flex flex-col gap-[26px]",children:[s.jsx(Ft,{customClassNames:{inputContainer:"w-full max-w-[354px]",label:a==null?void 0:a.label},name:e.apprenticeshipHousingType??"",label:s.jsxs("span",{children:["Spezielle Wohnform während der Ausbildung (falls zutreffend)",s.jsx(Xe,{...fE.apprenticeshipHousingType})]}),closeMenuOnSelect:!0,defaultValue:fd.find(B=>B.value==="no-special-type")??fd.at(-1),options:fd}),v&&s.jsxs("div",{className:"flex flex-col gap-[26px] pl-12",children:[s.jsx(Op,{name:e.apprenticeshipHousingDailyRate??"",label:"Wie hoch ist der Tagessatz für Unterkunft und Verpflegung?",classNames:{label:a==null?void 0:a.label}}),s.jsx(k,{name:e.apprenticeshipHousingSocialSupport??"",label:"Ich erhalte sozialpädagogische Begleitung",classNames:{label:a==null?void 0:a.label}}),r.apprenticeshipHousingSocialSupport&&s.jsxs("div",{className:"flex flex-col gap-[26px] pl-12",children:[s.jsx(k,{name:e.apprenticeshipHousingSocialSupportIsCovered??"",label:"Das Entgelt für die sozialpädagogische Begleitung wird von Dritten (z. B. Jugendamt) erstattet.",classNames:{label:a==null?void 0:a.label}}),!r.apprenticeshipHousingSocialSupportIsCovered&&s.jsx(Op,{name:e.apprenticeshipHousingSocialSupportDailyRate??"",label:"Wie hoch ist der Tagessatz der sozialpädagogischen Begleitung?",classNames:{label:a==null?void 0:a.label}})]})]}),s.jsxs("div",{className:"flex flex-col gap-[26px]",children:[s.jsx(k,{name:e.distanceParentsToApprenticeshipGreater2h??"",label:"Der Hin- und Rückweg von der Wohnung der Eltern zur Ausbildungsstätte dauert insgesamt mehr als 2 Stunden",classNames:{label:a==null?void 0:a.label}}),s.jsx(k,{name:e.parentsLiveSeparately??"",label:"Eltern leben getrennt voneinander",classNames:{label:a==null?void 0:a.label}})]})]}),f&&!m&&!g&&s.jsx(k,{name:e.costsForBooks,label:"Fallen Kosten für Schulbücher/Arbeitshefte an?",classNames:{label:a==null?void 0:a.label}})]})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const lM=[new da("permit","Aufenthaltsgenehmigung"),new da("toleration","Duldung"),new da("no-permit","Ohne gültigen Aufenthaltstitel")],ixe=sm.map(e=>({label:e.Land,value:e.Land,extraData:e}));function DS({formikNames:e,formLabels:t,infoItems:n,currentValueNationality:a,currentValueClaimAsylumSeekerBenefits:r,classNames:i={}}){const l=sm.find(d=>d.Land===a),o=l!==void 0&&!!(l!=null&&l.isGermany),c=l!==void 0&&(l==null?void 0:l.EU)==="EU";return s.jsxs(s.Fragment,{children:[s.jsx(Ft,{className:"max-w-[240px]",customClassNames:{inputContainer:"max-w-[240px]",label:i.label},name:e.nationality,closeMenuOnSelect:!0,label:s.jsxs("p",{children:[t.nationality,(n==null?void 0:n.nationality)&&s.jsx(Xe,{id:"nationality",title:n.nationality.title,content:n.nationality.content})]}),defaultValue:{label:"Deutschland",value:"Deutschland",extraData:{EU:"EU",isGermany:!0}},options:ixe}),!o&&s.jsxs("div",{className:"flex flex-col gap-4 px-12 py-0",children:[s.jsx(J,{name:e.entryDate,label:t.entryDate,classNames:{input:"max-w-[240px] ",container:"justify-between w-full max-w-[240px]",label:i.label}}),!c&&s.jsxs(s.Fragment,{children:[s.jsx(Ft,{className:"max-w-[240px]",customClassNames:{inputContainer:"max-w-[240px]",label:i.label},name:e.residencePermitState,label:t.residencePermitState,closeMenuOnSelect:!0,defaultValue:lM[0],options:lM}),s.jsx(k,{className:"custom-radio",name:e.claimAsylumSeekerBenefits,label:s.jsxs("p",{children:[t.claimAsylumSeekerBenefits,(n==null?void 0:n.claimAsylumSeekerBenefits)&&s.jsx(Xe,{id:"claimAsylumSeekerBenefits",title:n.claimAsylumSeekerBenefits.title,content:n.claimAsylumSeekerBenefits.content})]}),classNames:{label:i.label}}),r===!0&&s.jsxs(s.Fragment,{children:[s.jsx(J,{name:e.asylumSeekerBenefitsExpireDate,label:t.asylumSeekerBenefitsExpireDate,className:"px-11 py-0 pb-2",classNames:{input:"max-w-[240px] border border-black rounded-md",container:"justify-between w-full max-w-[240px]",label:i.label}}),s.jsx(k,{className:"custom-radio px-11 py-0 pb-2",name:e.collectiveAccommodation,label:s.jsxs("p",{children:[t.collectiveAccommodation,(n==null?void 0:n.collectiveAccommodation)&&s.jsx(Xe,{id:"collectiveAccommodation",title:n.collectiveAccommodation.title,content:n.collectiveAccommodation.content})]}),classNames:{label:i.label,input:"max-w-[140px]",inputSubContainer:"max-w-[140px]"}})]}),s.jsx(k,{className:"custom-radio",name:e.commitmentDeclaration,label:s.jsxs("p",{children:[t.commitmentDeclaration,(n==null?void 0:n.commitmentDeclaration)&&s.jsx(Xe,{id:"commitmentDeclaration",title:n.commitmentDeclaration.title,content:n.commitmentDeclaration.content})]}),classNames:{label:i.label}})]})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var Y=(e=>(e.ID="id",e.LIVING_WITH_SOMEONE="livingWithSomeone",e.JOB_CENTER_ASSURANCE="jobCenterAssurance",e.PARTNER="partner",e.PARTNER_NO_CHILDREN_TOGETHER_IN_12_MONTHS="withPartnerLessThanYearAndWithoutChildren",e.PARTNER_MARRIED_OR_REGISTERED_PARTNERSHIP="marriedOrInRegisteredPartnership",e.KIDS="kids",e.KIDS_ARE_YOU_THE_PARENT="areYouTheParent",e.KIDS_YOUR_RELATIONSHIP_TO_CHILD="yourRelationshipToChild",e.KIDS_IS_A_PARTNER_IS_PARENT="partnerIsParent",e.KIDS_PARTNERS_RELATIONSHIP_TO_CHILD="partnersRelationshipToChild",e.KIDS_NON_PARENTAL_RELATIONSHIP_TYPE="nonParentalRelationshipType",e.KIDS_TEMPORARY_CARE_THIRD_PARTY="temporaryCareAtThirdParty",e.KIDS_TIME_OF_STAY_WITH_THIRD_PARTY="timeOfStayWithThirdParty",e.KIDS_PERSON_IS_MARRIED_OR_HAS_AT_LEAST_ONE_CHILD="personIsMarriedOrHasAtLeastOneChild",e.HOUSEHOLD_MEMBERS="householdMembers",e.IS_RELATED_TO_YOU="isRelatedToYou",e.IS_RELATED_TO_PARTNER="isRelatedToPartner",e.OTHER_PERSON_RELATIONSHIP_TO_YOU_TYPE="otherPersonRelationshipToYouType",e.OTHER_PERSON_RELATIONSHIP_TO_PARTNER_TYPE="otherPersonRelationshipToPartnerType",e.HOUSEHOLD_MEMBER_NAME="name",e.HOUSEHOLD_MEMBER_AGE="age",e.HOUSEHOLD_MEMBER_NATIONALITY="nationality",e.HOUSEHOLD_MEMBER_ENTRY_DATE="entryDate",e.HOUSEHOLD_MEMBER_IN_STATIONARY_FACILITY="inStationaryFacility",e.HOUSEHOLD_MEMBER_ACCOMMODATION_START_DATE="accommodationStartDate",e.HOUSEHOLD_MEMBER_ACCOMMODATION_END_DATE="accommodationEndDate",e.HOUSEHOLD_MEMBER_ABILITY_TO_WORK_THREE_HOURS_PER_DAY="abilityToWorkThreeHoursPerDay",e.HOUSEHOLD_MEMBER_RESIDENCE_PERMIT="residencePermit",e.HOUSEHOLD_MEMBER_RESIDENCE_PERMIT_STATE="residencePermitState",e.HOUSEHOLD_MEMBER_CLAIM_ASYLUM_SEEKER_BENEFITS="claimAsylumSeekerBenefits",e.HOUSEHOLD_MEMBER_ASYLUM_SEEKER_BENEFITS_EXPIRE_DATE="asylumSeekerBenefitsExpireDate",e.HOUSEHOLD_MEMBER_LIVE_IN_COLLECTIVE_ACCOMMODATION="liveInCollectiveAccommodation",e.HOUSEHOLD_MEMBER_COMMITMENT_DECLARATION="commitmentDeclaration",e.HOUSEHOLD_MEMBER_CURRENTLY_IN_EDUCATION="currentlyInEducation",e.HOUSEHOLD_MEMBER_TYPE_OF_EDUCATION="typeOfEducation",e.HOUSEHOLD_MEMBER_EDUCATION_START_DATE="educationStartDate",e.HOUSEHOLD_MEMBER_EDUCATION_END_DATE="educationEndDate",e.HOUSEHOLD_MEMBER_APPRENTICESHIP_BAB_ELIGIBLE="apprenticeshipBabEligible",e.HOUSEHOLD_MEMBER_COSTS_FOR_BOOKS="costsForBooks",e.HOUSEHOLD_MEMBER_ACCOMMONDATION_FOR_TRAINING="accommodationForTraining",e.HOUSEHOLD_MEMBER_BAB_BAFOG_TRAINING_GRANTS="babBafogTrainingGrants",e.HOUSEHOLD_MEMBER_HAD_A_JOB_IN_12_MONTHS="hadAJobIn12Months",e.HOUSEHOLD_MEMBER_MEMBER_TYPE="memberType",e.HOUSEHOLD_MEMBER_PERSON_IS_MARRIED_OR_HAS_AT_LEAST_ONE_CHILD="personIsMarriedOrHasAtLeastOneChild",e.HOUSEHOLD_MEMBER_AT_LEAST_ONE_PARENT_LIVES_OUTSIDE_THE_HOUSEHOLD="atLeastOneParentLivesOutsideTheHousehold",e.MEMBERS_DIED="familyMembersDiedIn12Months",e.DECEASED_PERSON_NAME="deceasedPersonName",e.DECEASED_DATE_OF_DEATH="deceasedDateOfDeath",e.TRANSFER_PAYMENT_RECEIVED="transferPaymentReceived",e.MOVED_OUT_AFTER_DEATH="movedOutAfterDeathOfFamilyMember",e.DID_ANY_HOUSEHOLD_MEMBER_MOVED_IN="didAnyHouseHoldMemberMovedIn",e.MEMBERS_MOVED_IN="membersMovedIn",e.NAME_OF_PERSON_MOVED_IN="nameOfPersonMovedIn",e.DATE_OF_PERSON_MOVED_IN="dateOfPersonMovedIn",e))(Y||{});const og=[{label:"Leibliches Kind",value:"own"},{label:"Stiefkind",value:"stepKid"},{label:"Pflegekind",value:"fosterKid"},{label:"Adoptiert",value:"adoptedKid"},{label:"Bruder/Schwester/Geschwisterkind",value:"brotherSisterSiblingsKid"}],oM=[{label:"Sonstige Verwandtschaft",value:"other"},{label:"(Pflege-) Mutter",value:"mother"},{label:"(Pflege-) Vater",value:"father"},{label:"Oma",value:"grandMother"},{label:"Opa",value:"grandFather"},{label:"Onkel",value:"uncle"},{label:"Tante",value:"aunt"},{label:"Bruder",value:"brother"},{label:"Schwester",value:"sister"},{label:"Nichte",value:"niece"},{label:"Neffe",value:"nephew"},{label:"Enkelkind ",value:"grandChild"},{label:"Kind",value:"child"}];[...zO];class LU{constructor(t){y(this,"livingWithSomeone",!1);y(this,"partner",null);y(this,"kids",[]);y(this,"householdMembers",[]);y(this,"familyMembersDiedIn12Months",!1);y(this,"deceasedPersonName","");y(this,"deceasedDateOfDeath","");y(this,"transferPaymentReceived",!1);y(this,"movedOutAfterDeathOfFamilyMember",!1);y(this,"didAnyHouseHoldMemberMovedIn",!1);y(this,"membersMovedIn",[]);y(this,"nameOfPersonMovedIn","");y(this,"dateOfPersonMovedIn","");t&&Object.assign(this,t)}}const Du={livingWithSomeone:{title:"Leben weitere Personen in Ihrem Haushalt?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Im Sozialgesetz wird zwischen Bedarfs-, Wohn- und Haushaltsgemeinschaft unterschieden. Mit der folgenden Abfrage unterscheidet die Anwendung automatisch, welcher Gruppe Ihre Haushaltsmitglieder angehören."}),s.jsx("p",{children:s.jsx("strong",{children:"Stichwort: Bedarfsgemeinschaft"})}),s.jsx("p",{children:"Eine Bedarfsgemeinschaft besteht aus der oder dem erwerbsfähigen Leistungsberechtigten sowie in der Regel aus:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Der/dem nicht dauernd getrennt lebenden Ehefrau/Ehemann,"}),s.jsx("li",{children:"Der/dem nicht dauernd getrennt lebenden eingetragenen Lebenspartnerin/Lebenspartner, oder"}),s.jsx("li",{children:'Einer Person, die mit der oder dem erwerbsfähigen Leistungsberechtigten in einer Verantwortungs- und Einstehensgemeinschaft ("eheähnliche Gemeinschaft") zusammenlebt.'})]}),s.jsx("p",{children:"Zur Bedarfsgemeinschaft gehören auch die dem Haushalt angehörenden unverheirateten Kinder, die das 25. Lebensjahr noch nicht vollendet haben, soweit sie ihren Lebensunterhalt nicht aus eigenem Einkommen (zum Beispiel Kindergeld und Unterhaltszahlungen) oder Vermögen sichern können. Stellt ein unverheiratetes erwerbsfähiges Kind, das mindestens das 15. Lebensjahr, aber noch nicht das 25. Lebensjahr vollendet hat, einen Antrag auf Leistungen nach dem SGB II, gehören die im Haushalt lebenden Eltern oder ein Elternteil zur Bedarfsgemeinschaft."}),s.jsx("p",{children:s.jsx("strong",{children:"Stichwort: Wohngemeinschaft"})}),s.jsx("p",{children:"Personen, die mit Ihnen im Haushalt leben, aber nicht Mitglieder Ihrer Bedarfsgemeinschaft sind, gehören zur Wohngemeinschaft, zum Beispiel:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Verwandte und Verschwägerte (Großeltern, Geschwister über 25 Jahre, Onkel, Tanten),"}),s.jsx("li",{children:"Pflegekinder und Pflegeeltern."})]}),s.jsxs("p",{children:[s.jsx("strong",{children:"Wann und für wen ist die Anlage HG auszufüllen?"})," Die Anlage HG ist für jede Person, die mit Ihnen in einem Haushalt lebt, einzeln auszufüllen."]}),s.jsx("p",{children:"Beispiel: Ein Ehepaar lebt zusammen mit seinen zwei Kindern sowie dem Vater der Ehefrau und dem Bruder der Ehefrau in einem Haushalt. Die Anlage HG ist sowohl für den Vater der Ehefrau als auch für den Bruder der Ehefrau auszufüllen."}),s.jsx("p",{children:s.jsx("strong",{children:"Ist eine Wohngemeinschaft auch eine Haushaltsgemeinschaft?"})}),s.jsx("p",{children:"Die reine Wohngemeinschaft ist weder eine Bedarfsgemeinschaft noch eine Haushaltsgemeinschaft. Das heißt, im Antrag auf Bürgergeld müssen Sie keine Angaben über die persönlichen Verhältnisse etwaiger Mitbewohnerinnen und Mitbewohner machen."}),s.jsx("p",{children:s.jsx("strong",{children:"Wohngemeinschaft"})}),s.jsx("p",{children:"Definition: Gruppe von Personen, die zusammen wohnen, und nicht verwandt oder verschwägert sind. Auch: WG."}),s.jsx("p",{children:"So12 unterscheidet automatisch, zu welcher Personengruppe die angegebenen Haushaltsmitglieder gegenüber dem Antragsteller gehören und unterscheidet hierbei auch zwischen den relevanten Personengruppen in Bürgergeld, Wohngeld und Kinderzuschlag."})]})},partner:{title:"Partner*in",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:s.jsx("strong",{children:"Stichwort: Verantwortungs- und Einstehensgemeinschaft"})}),s.jsx("p",{children:"Bei Vorliegen einer Verantwortungs- und Einstehensgemeinschaft ist im Rahmen der Prüfung der Hilfebedürftigkeit auch das Einkommen und Vermögen der Partnerin/des Partners zu berücksichtigen."}),s.jsx("p",{children:"Eine Verantwortungs- und Einstehensgemeinschaft liegt vor, wenn die Partnerin/der Partner mit der/dem erwerbsfähigen Leistungsberechtigten in einem gemeinsamen Haushalt so zusammenlebt, dass nach verständiger Würdigung der wechselseitige Wille anzunehmen ist, Verantwortung füreinander zu tragen und füreinander einzustehen. Diese Verantwortungs- und Einstehensgemeinschaft können sowohl gleichgeschlechtliche als auch verschiedengeschlechtliche Partner eingehen."}),s.jsx("p",{children:"Von dem Bestehen einer Partnerschaft ist auszugehen, wenn eine gewisse Ausschließlichkeit der Beziehung gegeben ist, die keine vergleichbare Lebensgemeinschaft daneben zulässt."}),s.jsx("p",{children:"Auch kann von einer Verantwortungs- und Einstehensgemeinschaft ausgegangen werden, wenn zwischen der/dem erwerbsfähigen Hilfebedürftigen und der Partnerin/dem Partner die grundsätzliche Möglichkeit der Heirat besteht."}),s.jsx("p",{children:"Ein wechselseitiger Wille, Verantwortung füreinander zu tragen und füreinander einzustehen, wird vermutet, wenn Partnerinnen und Partner:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Länger als ein Jahr zusammenleben,"}),s.jsx("li",{children:"Mit einem gemeinsamen Kind zusammenleben,"}),s.jsx("li",{children:"Kinder oder Angehörige im Haushalt gemeinsam versorgen, oder"}),s.jsx("li",{children:"Befugt sind, über Einkommen oder Vermögen der/des Anderen zu verfügen."})]}),s.jsx("p",{children:"Neben den Vermutungsregelungen können auch andere äußere Tatsachen das Vorliegen einer Verantwortungs- und Einstehensgemeinschaft begründen. Dies kann beispielsweise ein gegebenes Eheversprechen, das Wohnen im gemeinsamen Wohneigentum oder die tatsächliche Pflege einer Partnerin/eines Partners im gemeinsamen Haushalt sein. Hierzu kann es erforderlich sein, weitere Daten zu erheben."}),s.jsxs("p",{children:[s.jsx("strong",{children:"Kann ich die Vermutung über das Vorliegen einer Verantwortungs- und Einstehensgemeinschaft widerlegen?"})," ","Die Vermutung kann von Ihnen widerlegt werden. Ausreichend ist allerdings nicht die Behauptung, dass der Vermutungstatbestand nicht erfüllt sei; erforderlich ist vielmehr, dass Sie darlegen und nachweisen, dass die oben genannten Kriterien nicht erfüllt werden oder die Vermutung durch andere Umstände entkräftet wird."]})]})},withPartnerLessThanYearAndWithoutChildren:{title:"Wir sind weniger als 12 Monate zusammen und haben keine gemeinsamen Kinder.",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Information: Bitte kreuzen Sie diese Box an, wenn Sie der Meinung sind, dass Sie und Ihr:e Partner:in NICHT in einer Einstens- und Lebensgemeinschaft leben und Sie zudem keine gemeinsamen Kinder haben und weniger als 12 Monate zusammen sind."}),s.jsx("p",{children:"Auch wenn Sie dazu befugt sind, über das Einkommen oder Vermögen der /des Anderen zu verfügen, befinden Sie sich in einer Einstehens- und Verantwortungsgemeinschaft und sollten dieses Feld nicht aktivieren."}),s.jsx("p",{children:"Wir gehen, wenn Sie dieses Feld nicht aktivieren, davon aus, dass es sich bei ihrer Partnerschaft um eine Einstehens- und Verantwortungsgemeinschaft handelt."})]})},areYouTheParent:{title:"Sind Sie ein Elternteil des Kindes?",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"Je nachdem ob Sie / Ihr*e Partner*in Elternteil ist, werden im weiteren Verlauf Fragen zu nicht im Haushalt lebenden Elternteilen angezeigt, Auskünfte zum Anspruch auf Unterhaltsvorschuss gegeben und Anlagen zur Klärung des Unterhaltsanspruchs generiert."})})},temporaryCareAtThirdParty:{title:"Hält sich das Kind zeitweise bei Dritten auf?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:s.jsx("strong",{children:"Temporäre Bedarfsgemeinschaft"})}),s.jsx("p",{children:"Die temporäre (zeitweise) Bedarfsgemeinschaft ist eine besondere Form der Bedarfsgemeinschaft. Von einer temporären Bedarfsgemeinschaft spricht man, wenn:"}),s.jsxs("ul",{className:"list-disc pl-5",children:[s.jsx("li",{children:"Die hilfebedürftigen Eltern eines minderjährigen Kindes nicht nur vorübergehend getrennt leben und"}),s.jsx("li",{children:"Das minderjährige Kind sich regelmäßig wechselseitig in beiden elterlichen Haushalten aufhält."})]}),s.jsx("p",{children:"Der Aufenthalt der Kinder ist unabhängig vom Sorge- und Umgangsrecht der Eltern anhand der tatsächlichen Verhältnisse zu beurteilen. Besuche bei einem Elternteil, die kürzer als zwölf Stunden sind, begründen keine temporäre Bedarfsgemeinschaft."}),s.jsx("p",{children:"Das Bestehen einer temporären Bedarfsgemeinschaft hat Auswirkungen auf den Leistungsanspruch des minderjährigen Kindes. Ist der nicht überwiegend betreuende Elternteil nicht hilfebedürftig, erfolgt keine Prüfung und Aufteilung der kindbezogenen Leistungen. Eine Ausnahme bildet das Wechselmodell. Wird ein solches Betreuungsmodell gewählt, werden nicht nur die kindbezogenen Leistungen halbiert, sondern es besteht bei dem hilfebedürftigen Elternteil auch ein Anspruch auf einen halben Mehrbedarf bei Alleinerziehung."}),s.jsx("p",{children:s.jsx("strong",{children:"Wohngeldgesetz (WoGG) § 5 Haushaltsmitglieder Abs. 4"})}),s.jsx("p",{children:"Betreuen nicht nur vorübergehend getrenntlebende Eltern ein Kind oder mehrere Kinder zu annähernd gleichen Teilen, ist jedes dieser Kinder bei beiden Elternteilen Haushaltsmitglied. Gleiches gilt bei einer Aufteilung der Betreuung bis zu einem Verhältnis von mindestens einem Drittel zu zwei Dritteln je Kind. Betreuen die Eltern mindestens zwei dieser Kinder nicht in einem Verhältnis nach Satz 1 oder 2, ist bei dem Elternteil mit dem geringeren Betreuungsanteil nur das jüngste dieser Kinder Haushaltsmitglied. Für Pflegekinder und Pflegeeltern gelten die Sätze 1 bis 3 entsprechend."}),s.jsx("p",{children:"Es ist keine verlässliche Berechnung hierzu in SO12 möglich – nehmen Sie die generierten Angaben nur als Anhaltspunkt und kontaktieren die zuständige Wohngeldstelle bei Fragen."})]})},familyMembersDiedIn12Months:{title:"Ist ein Haushaltsmitglied innerhalb der letzten 12 Monate verstorben?",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Diese Frage wird gestellt, da der Tod eines Haushaltsmitgliedes, das nicht vom Wohngeld ausgeschlossen war, für die Dauer von zwölf Monaten nach dem Sterbemonat ohne Einfluss auf die der Wohngeldberechnung der zu Grunde zu legende Anzahl der zu berücksichtigenden Haushaltsmitglieder ist"}),s.jsx("p",{children:"Diese Vergünstigung entfällt jedoch bei einem Wohnungswechsel oder wenn sich die Zahl der zu berücksichtigenden Haushaltsmitglieder wieder auf den Stand vor dem Todesfall erhöht."})]})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sxe(){const{applicantState:e}=wt(),t=e==null?void 0:e.houseHoldMembersApplication;return T.useMemo(()=>new LU(t),[t])}function lxe(){return T.useCallback(async(e,t)=>{console.log("Submit Handler",e,t)},[])}function oxe(){const{applicantState:e,setHouseHoldMemberApplicationState:t}=wt(),n=e.houseHoldMembersApplication;fu({currentState:n,updateState:t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const jS=()=>Math.random().toString(36).substring(2,15);function cxe({...e}){var C,M,B,L,H,U,W;const{values:t,setFieldValue:n,setFieldTouched:a}=tt(),[r,i]=T.useState(!1),[l,o]=T.useState(null),c=Number((C=t.partner)==null?void 0:C.age),d=c>=5&&c<=66,h=c>=1,f=c>=15&&c<=17,m=c>=18&&c<=66,g=T.useMemo(()=>{const z=[],$=JSON.parse(JSON.stringify((t==null?void 0:t.kids)||[]));$==null||$.forEach((F,te)=>{F.index=te});const V=JSON.parse(JSON.stringify((t==null?void 0:t.householdMembers)||[]));return V==null||V.forEach((F,te)=>{F.index=te}),t.partner&&z.push(t.partner),t!=null&&t.kids&&z.push(...$),t.householdMembers&&z.push(...V),z[0]!==void 0?z:void 0},[t==null?void 0:t.kids,t.householdMembers,t.partner]),b=()=>{l&&(l(),i(!1))},E=()=>{i(!1)},S=T.useCallback(()=>{o(()=>()=>{n(Y.PARTNER,void 0)}),i(!0)},[n]),I=T.useCallback(()=>{n(Y.PARTNER,{[Y.ID]:jS(),[Y.HOUSEHOLD_MEMBER_NAME]:"",[Y.HOUSEHOLD_MEMBER_AGE]:"",[Y.HOUSEHOLD_MEMBER_MEMBER_TYPE]:"partner",[Y.PARTNER_MARRIED_OR_REGISTERED_PARTNERSHIP]:!1,[Y.PARTNER_NO_CHILDREN_TOGETHER_IN_12_MONTHS]:!1})},[n]),O=T.useCallback((z,$)=>{o(()=>()=>{$.remove(z)}),i(!0)},[]);oxe();const v=z=>{const $=z.areYouTheParent,V=z.partnerIsParent;return t.partner?!$&&!V:!$},w=s.jsx("p",{className:"text-red-600",children:'Da Sie und Ihr*e Partner*in kein Elternteil des Kindes sind, legen Sie das Kind bitte unter "sonstige Personen" an und legen Sie das Verwandtschaftsverhältnis fest. Da das Verwandtschaftsverhältnis aktuell nicht klar ist, fließt das hier angelegte Kind nicht in die Berechnung ein.'}),D=Yn();return T.useEffect(()=>{var z;(z=t.kids)==null||z.forEach(($,V)=>{a(`${Y.KIDS}[${V}].${Y.HOUSEHOLD_MEMBER_AGE}`)})},[t,a]),T.useEffect(()=>{var z;(z=t.householdMembers)==null||z.forEach(($,V)=>{a(`${Y.HOUSEHOLD_MEMBERS}[${V}].${Y.HOUSEHOLD_MEMBER_AGE}`)})},[t,a]),T.useEffect(()=>{a(`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_AGE}`)},[t,a]),s.jsxs(s.Fragment,{children:[s.jsxs(Mi,{className:tn(Ae("flex flex-1 flex-col justify-between gap-4",e==null?void 0:e.className)),children:[s.jsxs("div",{className:"flex flex-col gap-4 py-4",children:[s.jsx("div",{className:"px-4",children:s.jsx(k,{label:s.jsxs("p",{children:["Es leben ",s.jsx("b",{children:"weitere Personen"})," im Haushalt.",s.jsx(Xe,{id:Y.LIVING_WITH_SOMEONE,...Du[Y.LIVING_WITH_SOMEONE]})]}),classNames:{label:"font-medium"},name:Y.LIVING_WITH_SOMEONE})}),t.livingWithSomeone===!0&&s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(cn,{classNames:{childrenContainer:Ae("border bg-white")},mode:t!=null&&t.partner?"delete":"create",onTouch:()=>{a(`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_NAME}`)},onDelete:S,onCreate:I,onChange:z=>{n(`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_NAME}`,z.target.value)},editableTitle:!0,editableTitlePlaceholderValue:"Name (optional)",editableTitleValue:`${(M=t.partner)==null?void 0:M.name}`,text:t.partner?s.jsxs("p",{className:"",children:["Partner*in",s.jsx(Xe,{id:Y.PARTNER,...Du[Y.PARTNER]})," "]}):s.jsx("p",{children:"Partner*in hinzufügen"}),children:t.partner&&s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(j,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_AGE}`,label:"Alter",className:"items-start",classNames:{input:"max-w-[50px] border border-black rounded-md bg-inherit "}}),s.jsx(k,{name:`${Y.PARTNER}.${Y.PARTNER_MARRIED_OR_REGISTERED_PARTNERSHIP}`,label:"Wir leben in einer Ehe oder eingetragenen Lebenspartnerschaft.",classNames:{label:"font-medium"}}),s.jsx(k,{name:`${Y.PARTNER}.${Y.PARTNER_NO_CHILDREN_TOGETHER_IN_12_MONTHS}`,label:s.jsxs("p",{children:["Wir sind weniger als 12 Monate zusammen und haben keine gemeinsamen Kinder.",s.jsx(Xe,{id:Y.PARTNER_NO_CHILDREN_TOGETHER_IN_12_MONTHS,...Du[Y.PARTNER_NO_CHILDREN_TOGETHER_IN_12_MONTHS]})]}),classNames:{label:"font-medium"}}),d&&s.jsx(MS,{person:t.partner,formikNames:{inEducation:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_CURRENTLY_IN_EDUCATION}`,typeOfEducation:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_TYPE_OF_EDUCATION}`,startDate:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_EDUCATION_START_DATE}`,endDate:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_EDUCATION_END_DATE}`,costsForBooks:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_COSTS_FOR_BOOKS}`,accommodation:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ACCOMMONDATION_FOR_TRAINING}`,apprenticeshipBabEligible:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_APPRENTICESHIP_BAB_ELIGIBLE}`,notLivingWithParentsForSocialReason:`${Y.PARTNER}.notLivingWithParentsForSocialReason`,parentsLiveSeparately:`${Y.PARTNER}.parentsLiveSeparately`,apprenticeshipHousingType:`${Y.PARTNER}.apprenticeshipHousingType`,distanceParentsToApprenticeshipGreater2h:`${Y.PARTNER}.distanceParentsToApprenticeshipGreater2h`,tripsHomeTypeOfTransport:`${Y.PARTNER}.tripsHomeTypeOfTransport`,tripsHomePersonalCarDistance:`${Y.PARTNER}.tripsHomePersonalCarDistance`,tripsHomePublicTransportCosts:`${Y.PARTNER}.tripsHomePublicTransportCosts`,costsWorkClothesCoveredByEmployer:`${Y.PARTNER}.costsWorkClothesCoveredByEmployer`,apprenticeshipHousingDailyRate:`${Y.PARTNER}.apprenticeshipHousingDailyRate`,apprenticeshipHousingSocialSupport:`${Y.PARTNER}.apprenticeshipHousingSocialSupport`,apprenticeshipHousingSocialSupportDailyRate:`${Y.PARTNER}.apprenticeshipHousingSocialSupportDailyRate`,apprenticeshipHousingSocialSupportIsCovered:`${Y.PARTNER}.apprenticeshipHousingSocialSupportIsCovered`,hasCostsForCommutes:`${Y.PARTNER}.hasCostsForCommutes`,commutesTypeOfTransport:`${Y.PARTNER}.commutesTypeOfTransport`,commutesPersonalCarDistance:`${Y.PARTNER}.commutesPersonalCarDistance`,commutesPublicTransportCosts:`${Y.PARTNER}.commutesPublicTransportCosts`},formLabels:{accommodation:"Ist Ihr*e Partner*in während der Ausbildung auswärts untergebracht (Internat, Wohnheim, Kaserne etc.)?"},classNames:{label:"font-medium"}}),h&&s.jsx(k,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_IN_STATIONARY_FACILITY}`,label:"in stationärer Einrichtung",classNames:{label:"font-medium"}}),h&&((B=t.partner)==null?void 0:B.inStationaryFacility)&&s.jsxs("div",{className:"-- flex flex-col gap-[10px] border border-white bg-white px-12 py-0",children:[s.jsx(J,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ACCOMMODATION_START_DATE}`,label:"Start der Unterbringung",className:"items-start",placeholder:"Startdatum",labelPosition:"left",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "}}),s.jsx(J,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ACCOMMODATION_END_DATE}`,label:"Ende der Unterbringung",className:"items-start",placeholder:"Enddatum",labelPosition:"left",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "}})]}),m&&s.jsx(k,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ABILITY_TO_WORK_THREE_HOURS_PER_DAY}`,label:"Erwerbsgemindert und/oder weniger als 3 Std. täglich arbeitsfähig",classNames:{label:"font-medium"}}),f&&s.jsx(k,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ABILITY_TO_WORK_THREE_HOURS_PER_DAY}`,label:"benötigt Hilfe zum Lebensunterhalt nach SGB XII",classNames:{label:"font-medium"}}),m&&s.jsx(k,{name:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_HAD_A_JOB_IN_12_MONTHS}`,label:"min. 12 der letzte 30 Monate sozialversicherungspflichtig beschäftigt",classNames:{label:"font-medium"}}),s.jsx(DS,{formikNames:{nationality:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_NATIONALITY}`,entryDate:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ENTRY_DATE}`,residencePermitState:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_RESIDENCE_PERMIT_STATE}`,claimAsylumSeekerBenefits:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_CLAIM_ASYLUM_SEEKER_BENEFITS}`,collectiveAccommodation:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_LIVE_IN_COLLECTIVE_ACCOMMODATION}`,asylumSeekerBenefitsExpireDate:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_ASYLUM_SEEKER_BENEFITS_EXPIRE_DATE}`,commitmentDeclaration:`${Y.PARTNER}.${Y.HOUSEHOLD_MEMBER_COMMITMENT_DECLARATION}`},formLabels:{nationality:"Staatsangehörigkeit",entryDate:"Wann ist Ihr*e Partner*in in Deutschland eingereist?",residencePermitState:"Wie ist der Aufenthaltsstatus Ihres Partners/Ihrer Partnerin?",claimAsylumSeekerBenefits:"Hat Ihr*e Partner*in Anspruch auf Asylbewerberleistungen?",asylumSeekerBenefitsExpireDate:"Bis wann erhält Ihr*e Partner*in Asylbewerberleistungen?",collectiveAccommodation:"Lebt Ihr*e Partner*in in einer Sammelunterkunft?",commitmentDeclaration:"Wurde eine Verpflichtungserklärung für Ihr*e Partner*in abgegeben?"},currentValueClaimAsylumSeekerBenefits:!!((L=t.partner)!=null&&L.claimAsylumSeekerBenefits),currentValueNationality:(U=(H=t.partner)==null?void 0:H.nationality)==null?void 0:U.value})]})},(W=t.partner)==null?void 0:W.id),s.jsx(Si,{name:Y.KIDS,render:z=>{var $;return s.jsxs("div",{className:"flex flex-col gap-4",children:[($=t==null?void 0:t.kids)==null?void 0:$.map((V,F)=>{var we;const te=V.age!==""&&V.age!==null&&V.age!==void 0?Number(V.age):null,se=te!==null&&te>=5&&te<=66,pe=te!==null&&(te>0||te===0),be=te!==null&&te>=18&&te<=66;return s.jsx(cn,{defaultOpen:!0,classNames:{parentContainer:Ae(" bg-white ")},mode:"delete",onTouch:()=>{a(`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_NAME}`)},onDelete:()=>O(F,z),onChange:ve=>{n(`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_NAME}`,ve.target.value)},editableTitle:!0,editableTitlePlaceholderValue:"Name (optional)",editableTitleValue:`${V==null?void 0:V.name}`,text:"(Pflege-) Kind ",children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(j,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_AGE}`,label:"Alter",className:"items-start",classNames:{input:"max-w-[50px] border border-black rounded-md bg-inherit "}}),s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.KIDS_ARE_YOU_THE_PARENT}`,label:s.jsxs("p",{children:["Sind Sie ein Elternteil des Kindes?",s.jsx(Xe,{id:Y.KIDS_ARE_YOU_THE_PARENT,...Du[Y.KIDS_ARE_YOU_THE_PARENT]})]}),classNames:{label:"font-medium"}}),v(V)&&!V.areYouTheParent&&!t.partner&&s.jsx("div",{className:"px-4",children:w}),V.areYouTheParent&&s.jsx(Ft,{className:"max-w-[262px]",customClassNames:{inputContainer:"max-w-[262px]"},name:`${Y.KIDS}[${F}].${Y.KIDS_YOUR_RELATIONSHIP_TO_CHILD}`,defaultValue:og.find(ve=>ve.value==="own"),options:og}),t.partner&&s.jsxs(s.Fragment,{children:[s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.KIDS_IS_A_PARTNER_IS_PARENT}`,label:"Ist ihr*e Partner*in ein Elternteil des Kindes?",classNames:{label:"font-medium"}}),v(V)&&!V.areYouTheParent&&!V.partnerIsParent&&s.jsx("div",{className:"px-4",children:w}),V.partnerIsParent&&s.jsx(Ft,{className:"max-w-[262px]",customClassNames:{inputContainer:"max-w-[262px]"},name:`${Y.KIDS}[${F}].${Y.KIDS_PARTNERS_RELATIONSHIP_TO_CHILD}`,defaultValue:og.find(ve=>ve.value==="own"),options:og})]}),s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.KIDS_TEMPORARY_CARE_THIRD_PARTY}`,label:s.jsxs("p",{children:["Hält sich das Kind zeitweise bei Dritten auf?",s.jsx(Xe,{id:Y.KIDS_TEMPORARY_CARE_THIRD_PARTY,...Du[Y.KIDS_TEMPORARY_CARE_THIRD_PARTY]})]}),classNames:{label:"font-medium"}}),V.temporaryCareAtThirdParty&&s.jsx(j,{name:`${Y.KIDS}[${F}].${Y.KIDS_TIME_OF_STAY_WITH_THIRD_PARTY}`,label:"Das Kind lebt regelmäßig auch in einem anderen Haushalt (z.B. anderes Elternteil, Pflegestelle usw.). Und zwar ca. Tage im Monat.",classNames:{input:"max-w-[50px] border border-black rounded-md "}}),+V.age>=14&&s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.KIDS_PERSON_IS_MARRIED_OR_HAS_AT_LEAST_ONE_CHILD}`,label:"Die Person ist verheiratet oder hat min. ein eigenes Kind im gemeinsamen Haushalt.",classNames:{label:"font-medium"}}),se&&s.jsx(MS,{person:V,formikNames:{inEducation:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_CURRENTLY_IN_EDUCATION}`,typeOfEducation:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_TYPE_OF_EDUCATION}`,startDate:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_EDUCATION_START_DATE}`,endDate:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_EDUCATION_END_DATE}`,costsForBooks:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_COSTS_FOR_BOOKS}`,accommodation:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ACCOMMONDATION_FOR_TRAINING}`,apprenticeshipBabEligible:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_APPRENTICESHIP_BAB_ELIGIBLE}`,notLivingWithParentsForSocialReason:`${Y.KIDS}[${F}].notLivingWithParentsForSocialReason`,parentsLiveSeparately:`${Y.KIDS}[${F}].parentsLiveSeparately`,apprenticeshipHousingType:`${Y.KIDS}[${F}].apprenticeshipHousingType`,distanceParentsToApprenticeshipGreater2h:`${Y.KIDS}[${F}].distanceParentsToApprenticeshipGreater2h`,tripsHomeTypeOfTransport:`${Y.KIDS}[${F}].tripsHomeTypeOfTransport`,tripsHomePersonalCarDistance:`${Y.KIDS}[${F}].tripsHomePersonalCarDistance`,tripsHomePublicTransportCosts:`${Y.KIDS}[${F}].tripsHomePublicTransportCosts`,costsWorkClothesCoveredByEmployer:`${Y.KIDS}[${F}].costsWorkClothesCoveredByEmployer`,apprenticeshipHousingDailyRate:`${Y.KIDS}[${F}].apprenticeshipHousingDailyRate`,apprenticeshipHousingSocialSupport:`${Y.KIDS}[${F}].apprenticeshipHousingSocialSupport`,apprenticeshipHousingSocialSupportDailyRate:`${Y.KIDS}[${F}].apprenticeshipHousingSocialSupportDailyRate`,apprenticeshipHousingSocialSupportIsCovered:`${Y.KIDS}[${F}].apprenticeshipHousingSocialSupportIsCovered`,hasCostsForCommutes:`${Y.KIDS}[${F}].hasCostsForCommutes`,commutesTypeOfTransport:`${Y.KIDS}[${F}].commutesTypeOfTransport`,commutesPersonalCarDistance:`${Y.KIDS}[${F}].commutesPersonalCarDistance`,commutesPublicTransportCosts:`${Y.KIDS}[${F}].commutesPublicTransportCosts`},formLabels:{accommodation:"Ist das Kind während der Ausbildung auswärts untergebracht (Internat, Wohnheim, Kaserne etc.)?"},classNames:{label:"font-medium"}}),pe&&s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_IN_STATIONARY_FACILITY}`,label:"in stationärer Einrichtung",classNames:{label:"font-medium"}}),pe&&V.inStationaryFacility&&s.jsxs("div",{className:"-- flex flex-col gap-[10px] border border-white bg-white px-12 py-0",children:[s.jsx(J,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ACCOMMODATION_START_DATE}`,label:"Start der Unterbringung",className:"items-start",labelPosition:"left",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "}}),s.jsx(J,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ACCOMMODATION_END_DATE}`,label:"Ende der Unterbringung",className:"items-start",labelPosition:"left",minDate:V.accommodationStartDate,classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "}})]}),be&&s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ABILITY_TO_WORK_THREE_HOURS_PER_DAY}`,label:"Erwerbsgemindert und/oder weniger als 3 Std. täglich arbeitsfähig",classNames:{label:"font-medium"}}),pe&&s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ABILITY_TO_WORK_THREE_HOURS_PER_DAY}`,label:"benötigt Hilfe zum Lebensunterhalt nach SGB XII",classNames:{label:"font-medium"}}),be&&s.jsx(k,{name:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_HAD_A_JOB_IN_12_MONTHS}`,label:"min. 12 der letzte 30 Monate sozialversicherungspflichtig beschäftigt",classNames:{label:"font-medium"}}),s.jsx(DS,{formikNames:{nationality:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_NATIONALITY}`,entryDate:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ENTRY_DATE}`,residencePermitState:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_RESIDENCE_PERMIT_STATE}`,claimAsylumSeekerBenefits:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_CLAIM_ASYLUM_SEEKER_BENEFITS}`,collectiveAccommodation:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_LIVE_IN_COLLECTIVE_ACCOMMODATION}`,asylumSeekerBenefitsExpireDate:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_ASYLUM_SEEKER_BENEFITS_EXPIRE_DATE}`,commitmentDeclaration:`${Y.KIDS}[${F}].${Y.HOUSEHOLD_MEMBER_COMMITMENT_DECLARATION}`},formLabels:{nationality:"Staatsangehörigkeit",entryDate:"Wann ist das Kind in Deutschland eingereist?",residencePermitState:"Wie ist der Aufenthaltsstatus des Kindes?",claimAsylumSeekerBenefits:"Hat das Kind Anspruch auf Asylbewerberleistungen?",asylumSeekerBenefitsExpireDate:"Bis wann erhält das Kind Asylbewerberleistungen?",collectiveAccommodation:"Lebt das Kind in einer Sammelunterkunft?",commitmentDeclaration:"Wurde eine Verpflichtungserklärung für das Kind abgegeben?"},currentValueClaimAsylumSeekerBenefits:!!V.claimAsylumSeekerBenefits,currentValueNationality:(we=V.nationality)==null?void 0:we.value})]})},V.id)}),s.jsx(cn,{mode:"create",text:"(Pflege-) Kind hinzufügen",customAction:()=>{z.push({id:jS(),[Y.HOUSEHOLD_MEMBER_NAME]:"",[Y.HOUSEHOLD_MEMBER_AGE]:"",[Y.HOUSEHOLD_MEMBER_MEMBER_TYPE]:"kids",[Y.KIDS_ARE_YOU_THE_PARENT]:!0,[Y.KIDS_IS_A_PARTNER_IS_PARENT]:!!t.partner})},children:s.jsx("div",{className:"flex flex-col"})})]})}}),s.jsx(Si,{name:Y.HOUSEHOLD_MEMBERS,render:z=>{var $;return s.jsxs("div",{className:"flex flex-col gap-4",children:[($=t.householdMembers)==null?void 0:$.map((V,F)=>{var Re;const te=Number(V.age),se=te>=5&&te<=66,pe=V.isRelatedToYou,be=V.isRelatedToPartner,we=V.otherPersonRelationshipToYouType,ve=V.otherPersonRelationshipToPartnerType,Ue=(pe||be)&&(we!==void 0&&we.value!=="other"||ve!==void 0&&ve.value!=="other");return s.jsx(cn,{classNames:{parentContainer:Ae(" bg-white ")},mode:"delete",defaultOpen:!0,onTouch:()=>{a(`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_NAME}`)},onChange:ue=>{n(`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_NAME}`,ue.target.value)},onDelete:()=>O(F,z),editableTitle:!0,editableTitlePlaceholderValue:"Name (optional)",editableTitleValue:`${V==null?void 0:V.name}`,text:"Sonstige Person ",children:s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{extraOnChangeAction:ue=>{ue.target.checked===!1&&n(`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.OTHER_PERSON_RELATIONSHIP_TO_YOU_TYPE}`,void 0)},name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.IS_RELATED_TO_YOU}`,label:"Ich bin mit der Person verwandt.",classNames:{label:"font-medium"}}),V.isRelatedToYou&&s.jsx(s.Fragment,{children:s.jsx(Ft,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.OTHER_PERSON_RELATIONSHIP_TO_YOU_TYPE}`,className:"max-w-[262px]",customClassNames:{inputContainer:"max-w-[262px] "},closeMenuOnSelect:!0,defaultValue:{label:"Sonstige Verwandtschaft",value:"other"},options:oM})}),(t==null?void 0:t.partner)!==void 0&&s.jsx(k,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.IS_RELATED_TO_PARTNER}`,extraOnChangeAction:ue=>{ue.target.checked===!1&&n(`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.OTHER_PERSON_RELATIONSHIP_TO_PARTNER_TYPE}`,void 0)},label:"Mein*e Partner*in ist mit der Person verwandt.",classNames:{label:"font-medium"}}),(t==null?void 0:t.partner)!==void 0&&V.isRelatedToPartner&&s.jsx(s.Fragment,{children:s.jsx(Ft,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.OTHER_PERSON_RELATIONSHIP_TO_PARTNER_TYPE}`,className:"max-w-[262px]",customClassNames:{inputContainer:"max-w-[262px] "},closeMenuOnSelect:!0,defaultValue:{label:"Sonstige Verwandtschaft",value:"other"},options:oM})}),Ue&&s.jsxs(s.Fragment,{children:[s.jsx(j,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_AGE}`,label:"Alter",className:"items-start",classNames:{input:"max-w-[50px] border border-black rounded-md bg-inherit "}}),+V.age>=14&&s.jsx(k,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_PERSON_IS_MARRIED_OR_HAS_AT_LEAST_ONE_CHILD}`,label:"Die Person ist verheiratet oder hat min. ein eigenes Kind im gemeinsamen Haushalt.",classNames:{label:"font-medium"}}),+V.age<3&&s.jsx(k,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_AT_LEAST_ONE_PARENT_LIVES_OUTSIDE_THE_HOUSEHOLD}`,label:"Mindestens ein Elternteil lebt außerhalb des Haushalts.",classNames:{label:"font-medium"}}),se&&s.jsx(MS,{person:V,formikNames:{inEducation:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_CURRENTLY_IN_EDUCATION}`,typeOfEducation:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_TYPE_OF_EDUCATION}`,startDate:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_EDUCATION_START_DATE}`,endDate:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_EDUCATION_END_DATE}`,costsForBooks:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_COSTS_FOR_BOOKS}`,accommodation:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_ACCOMMONDATION_FOR_TRAINING}`,apprenticeshipBabEligible:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_APPRENTICESHIP_BAB_ELIGIBLE}`,notLivingWithParentsForSocialReason:`${Y.HOUSEHOLD_MEMBERS}[${F}].notLivingWithParentsForSocialReason`,parentsLiveSeparately:`${Y.HOUSEHOLD_MEMBERS}[${F}].parentsLiveSeparately`,apprenticeshipHousingType:`${Y.HOUSEHOLD_MEMBERS}[${F}].apprenticeshipHousingType`,distanceParentsToApprenticeshipGreater2h:`${Y.HOUSEHOLD_MEMBERS}[${F}].distanceParentsToApprenticeshipGreater2h`,tripsHomeTypeOfTransport:`${Y.HOUSEHOLD_MEMBERS}[${F}].tripsHomeTypeOfTransport`,tripsHomePersonalCarDistance:`${Y.HOUSEHOLD_MEMBERS}[${F}].tripsHomePersonalCarDistance`,tripsHomePublicTransportCosts:`${Y.HOUSEHOLD_MEMBERS}[${F}].tripsHomePublicTransportCosts`,costsWorkClothesCoveredByEmployer:`${Y.HOUSEHOLD_MEMBERS}[${F}].costsWorkClothesCoveredByEmployer`,apprenticeshipHousingDailyRate:`${Y.HOUSEHOLD_MEMBERS}[${F}].apprenticeshipHousingDailyRate`,apprenticeshipHousingSocialSupport:`${Y.HOUSEHOLD_MEMBERS}[${F}].apprenticeshipHousingSocialSupport`,apprenticeshipHousingSocialSupportDailyRate:`${Y.HOUSEHOLD_MEMBERS}[${F}].apprenticeshipHousingSocialSupportDailyRate`,apprenticeshipHousingSocialSupportIsCovered:`${Y.HOUSEHOLD_MEMBERS}[${F}].apprenticeshipHousingSocialSupportIsCovered`,hasCostsForCommutes:`${Y.HOUSEHOLD_MEMBERS}[${F}].hasCostsForCommutes`,commutesTypeOfTransport:`${Y.HOUSEHOLD_MEMBERS}[${F}].commutesTypeOfTransport`,commutesPersonalCarDistance:`${Y.HOUSEHOLD_MEMBERS}[${F}].commutesPersonalCarDistance`,commutesPublicTransportCosts:`${Y.HOUSEHOLD_MEMBERS}[${F}].commutesPublicTransportCosts`},formLabels:{accommodation:"Ist die Person während der Ausbildung auswärts untergebracht (Internat, Wohnheim, Kaserne etc.)?"},classNames:{label:"font-medium"}}),s.jsx(k,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_IN_STATIONARY_FACILITY}`,label:"in stationärer Einrichtung",classNames:{label:"font-medium"}}),V.inStationaryFacility&&s.jsxs("div",{className:"-- flex flex-col gap-[26px] border border-black bg-white p-7",children:[s.jsx(J,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_ACCOMMODATION_START_DATE}`,label:"Von",className:"items-start",labelPosition:"left",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "}}),s.jsx(J,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_ACCOMMODATION_END_DATE}`,label:"Bis",className:"items-start",labelPosition:"left",classNames:{input:"max-w-[140px] border border-black rounded-md ",label:"h-fit whitespace-nowrap",container:"justify-between w-full max-w-[354px]",inputWrapper:" w-auto "}})]}),te>=15&&s.jsx(k,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_ABILITY_TO_WORK_THREE_HOURS_PER_DAY}`,label:"Erwerbsgemindert und/oder weniger als 3 Std. täglich arbeitsfähig",classNames:{label:"font-medium"}}),te>=15&&s.jsx(k,{name:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_HAD_A_JOB_IN_12_MONTHS}`,label:"min. 12 der letzte 30 Monate sozialversicherungspflichtig beschäftigt",classNames:{label:"font-medium"}}),s.jsx(DS,{formikNames:{nationality:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_NATIONALITY}`,entryDate:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_ENTRY_DATE}`,residencePermitState:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_RESIDENCE_PERMIT_STATE}`,claimAsylumSeekerBenefits:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_CLAIM_ASYLUM_SEEKER_BENEFITS}`,collectiveAccommodation:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_LIVE_IN_COLLECTIVE_ACCOMMODATION}`,asylumSeekerBenefitsExpireDate:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_ASYLUM_SEEKER_BENEFITS_EXPIRE_DATE}`,commitmentDeclaration:`${Y.HOUSEHOLD_MEMBERS}[${F}].${Y.HOUSEHOLD_MEMBER_COMMITMENT_DECLARATION}`},formLabels:{nationality:"Staatsangehörigkeit",entryDate:"Wann ist die Person in Deutschland eingereist?",residencePermitState:"Wie ist der Aufenthaltsstatus der Person?",claimAsylumSeekerBenefits:"Hat die Person Anspruch auf Asylbewerberleistungen?",asylumSeekerBenefitsExpireDate:"Bis wann erhält die Person Asylbewerberleistungen?",collectiveAccommodation:"Lebt die Person in einer Sammelunterkunft?",commitmentDeclaration:"Wurde eine Verpflichtungserklärung für die Person abgegeben?"},currentValueClaimAsylumSeekerBenefits:!!V.claimAsylumSeekerBenefits,currentValueNationality:(Re=V.nationality)==null?void 0:Re.value})]})]})},V.id)}),s.jsx(cn,{mode:"create",text:`Sonstige Person hinzufügen`,customAction:()=>{z.push({id:jS(),[Y.HOUSEHOLD_MEMBER_NAME]:"",[Y.HOUSEHOLD_MEMBER_AGE]:"",[Y.HOUSEHOLD_MEMBER_MEMBER_TYPE]:"otherMembers"})},children:s.jsx("div",{className:"flex flex-col"})})]})}})]}),s.jsxs("div",{className:"flex flex-col gap-4 py-4",children:[s.jsx("div",{className:"px-4",children:s.jsx(k,{label:s.jsxs("p",{children:["Ein ",s.jsx("b",{children:"Haushaltsmitglied"})," ist innerhalb der letzten 12 Monate",s.jsx("b",{children:" verstorben"}),".",s.jsx(Xe,{id:Y.MEMBERS_DIED,...Du[Y.MEMBERS_DIED]})]}),classNames:{label:"font-medium"},name:Y.MEMBERS_DIED})}),t.familyMembersDiedIn12Months&&s.jsxs("div",{className:"-- flex flex-col bg-white pb-4",children:[s.jsxs("div",{className:"-- flex flex-col gap-4 bg-white p-4 px-12",children:[s.jsxs("div",{className:"flex max-w-[554px] flex-row justify-end",children:[s.jsx(j,{name:Y.DECEASED_PERSON_NAME,label:"Name der verstorbenen Person",classNames:{input:"max-w-[262px] border border-black rounded-md ",label:"lg:font-medium md:font-medium"}}),s.jsx(J,{name:Y.DECEASED_DATE_OF_DEATH,label:"Wann ist die Person verstorben?",className:"items-start",classNames:{container:"w-[240px]",input:" w-[240px] border border-black rounded-md ",label:"lg:font-medium md:font-medium w-[282px]"}})]}),s.jsx(k,{label:"Hat die Person Transferleistungen erhalten?",classNames:{label:"font-medium"},name:Y.TRANSFER_PAYMENT_RECEIVED}),s.jsx(k,{label:"Sind sie nach dem Tod des genannten Haushaltsmitgliedes umgezogen?",classNames:{label:"font-medium"},name:Y.MOVED_OUT_AFTER_DEATH}),s.jsx(k,{label:"Haben Sie nach dem Tod eine der oben angegebenen Personen in Ihren Haushalt aufgenommen?",classNames:{label:"font-medium"},name:Y.DID_ANY_HOUSEHOLD_MEMBER_MOVED_IN})]}),s.jsx(Si,{name:Y.MEMBERS_MOVED_IN,render:({remove:z})=>{var $;return s.jsxs("div",{className:"flex flex-col gap-4",children:[t.didAnyHouseHoldMemberMovedIn&&((g==null?void 0:g.map((V,F)=>{var se,pe;const te=(V==null?void 0:V.memberType)==="partner"?`Partner*in ${(V==null?void 0:V.name)||""}`:(V==null?void 0:V.memberType)==="kids"?`(Pflege-) Kind ${(V==null?void 0:V.name)||Number(V==null?void 0:V.index)+1}`:`Sonstige Person ${(V==null?void 0:V.name)||Number(V==null?void 0:V.index)+1}`;return s.jsx("div",{className:"flex flex-row items-center justify-start gap-12",children:s.jsx(Je,{type:"button",text:`${te}`,classNames:{childrenContainer:" line-clamp-2 break-words"},className:Ae("flex h-[50px] w-full grow items-center justify-start rounded-none pl-[50px]",{"bg-primaryDarkGray":(se=t.membersMovedIn)==null?void 0:se.find(be=>be.id===(V==null?void 0:V.id)),"bg-primaryGray":!((pe=t.membersMovedIn)!=null&&pe.find(be=>be.id===(V==null?void 0:V.id)))}),onClick:()=>{var be;(be=t.membersMovedIn)!=null&&be.find(we=>we.id===(V==null?void 0:V.id))?z(F):n(Y.MEMBERS_MOVED_IN,[{id:V==null?void 0:V.id,nameOfPersonMovedIn:V==null?void 0:V.name,dateOfPersonMovedIn:""}])}})},F)}))||s.jsx("div",{className:"px-12",children:"Es wurden noch keinen Personen angelegt, die eingezogen sein können. Bitte legen Sie zunächst Personen in ihrem Haushalt an."})),(t==null?void 0:t.membersMovedIn)&&(($=t==null?void 0:t.membersMovedIn)==null?void 0:$.length)>0&&s.jsx(J,{name:`${Y.DATE_OF_PERSON_MOVED_IN}`,label:"Wann ist die Person in den Haushalt eingezogen?",className:"items-start px-12",maxDate:ls().toDate(),classNames:{input:"border border-black rounded-md ",label:"font-medium"}})]})}})]})]})]}),s.jsxs("div",{className:"flex flex-row gap-[160px] pt-[88px]",children:[s.jsx(Eu,{onClick:()=>{D(qe.PRO)}}),s.jsx(Nu,{onClick:()=>{D(qe.MEHRBEDARF)}})]})]}),s.jsx(Es,{open:r,onConfirm:b,onCancel:E,onClose:E})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function uxe(){return bn().shape({[Y.LIVING_WITH_SOMEONE]:Ce().required("This field is required"),[Y.MEMBERS_DIED]:Ce(),[Y.KIDS]:ri().of(bn().shape({[Y.HOUSEHOLD_MEMBER_AGE]:Ut().required("Alter ist erforderlich")})),[Y.PARTNER]:bn().shape({[Y.HOUSEHOLD_MEMBER_AGE]:Ut().required("Alter ist erforderlich")}),[Y.HOUSEHOLD_MEMBERS]:ri().of(bn().shape({[Y.HOUSEHOLD_MEMBER_AGE]:Ut().required("Alter ist erforderlich")}))})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function dxe(e){const t=sxe();return s.jsx(fs,{initialValues:t,validationSchema:uxe(),onSubmit:lxe(),enableReinitialize:!0,validateOnMount:!0,children:s.jsx(cxe,{...e})})}const hxe=Object.freeze(Object.defineProperty({__proto__:null,default:dxe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function fxe(){var n,a,r;const{applicantState:e}=wt(),t=e.financialAssets;return T.useMemo(()=>{var l,o,c;return new FL({...t,applicant:new Pi({...(l=e.financialAssets)==null?void 0:l.applicant,id:((o=e.applicantData)==null?void 0:o.id)||"",name:((c=e.applicantData)==null?void 0:c.name)||""})})},[(n=e.applicantData)==null?void 0:n.id,(a=e.applicantData)==null?void 0:a.name,(r=e.financialAssets)==null?void 0:r.applicant,t])}function UU(e){var w,D,C,M,B,L,H,U,W,z,$,V,F,te,se,pe,be,we,ve,Ue,Re,ue,ze,Qe,me,it,En,mt,Vt,_t,nn,Ee,Ne,Ze,zt,yn,Ln,St,ne,Ie,re,ie,fe,Ge,Et,It;const t=Number((e==null?void 0:e.cashAssets)&&((w=e==null?void 0:e.cashAssetsInfo)==null?void 0:w.amount)||0)||0,n=Number((e==null?void 0:e.currentAccount)&&((D=e==null?void 0:e.currentAccountInfo)==null?void 0:D.amount)||0)||0,a=Number((e==null?void 0:e.creditCardsOrPaymentServicesOrOther)&&((C=e==null?void 0:e.creditCardsOrPaymentServicesOrOtherInfo)==null?void 0:C.amount)||0)||0,r=Number((e==null?void 0:e.motorVehicles)&&((M=e==null?void 0:e.motorVehiclesInfo)==null?void 0:M.amount)||0)||0,i=Number((e==null?void 0:e.notInhabitedRealEstate)&&((B=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:B.condominiumProperty)&&((H=(L=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:L.condominiumPropertyInfo)==null?void 0:H.marketValue)||0)||0,l=Number((e==null?void 0:e.notInhabitedRealEstate)&&((U=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:U.condominiumProperty)&&((z=(W=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:W.condominiumPropertyInfo)==null?void 0:z.rentLeaseIncome)||0)||0,o=Number((e==null?void 0:e.notInhabitedRealEstate)&&(($=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:$.houseProperty)&&((F=(V=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:V.housePropertyInfo)==null?void 0:F.marketValue)||0)||0,c=Number((e==null?void 0:e.notInhabitedRealEstate)&&((te=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:te.houseProperty)&&((pe=(se=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:se.housePropertyInfo)==null?void 0:pe.rentLeaseIncome)||0)||0,d=Number((e==null?void 0:e.notInhabitedRealEstate)&&((be=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:be.vacantLandProperty)&&((ve=(we=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:we.vacantLandPropertyInfo)==null?void 0:ve.marketValue)||0)||0,h=Number((e==null?void 0:e.notInhabitedRealEstate)&&((Ue=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:Ue.vacantLandProperty)&&((ue=(Re=e==null?void 0:e.notInhabitedRealEstateInfo)==null?void 0:Re.vacantLandPropertyInfo)==null?void 0:ue.rentLeaseIncome)||0)||0,f=Number((e==null?void 0:e.otherAssets)&&((ze=e==null?void 0:e.otherAssetsInfo)==null?void 0:ze.savingDepositsOrBonds)&&((me=(Qe=e==null?void 0:e.otherAssetsInfo)==null?void 0:Qe.savingDepositsOrBondsInfo)==null?void 0:me.amount)||0)||0,m=Number((e==null?void 0:e.otherAssets)&&((it=e==null?void 0:e.otherAssetsInfo)==null?void 0:it.buildingsSavingsContracts)&&((mt=(En=e==null?void 0:e.otherAssetsInfo)==null?void 0:En.buildingsSavingsContractsInfo)==null?void 0:mt.amount)||0)||0,g=Number((e==null?void 0:e.otherAssets)&&((Vt=e==null?void 0:e.otherAssetsInfo)==null?void 0:Vt.inheritance)&&((nn=(_t=e==null?void 0:e.otherAssetsInfo)==null?void 0:_t.inheritanceInfo)==null?void 0:nn.amount)||0)||0,b=Number((e==null?void 0:e.otherAssets)&&((Ee=e==null?void 0:e.otherAssetsInfo)==null?void 0:Ee.insuranceWithPremiumRefunds)&&((Ze=(Ne=e==null?void 0:e.otherAssetsInfo)==null?void 0:Ne.insuranceWithPremiumRefundsInfo)==null?void 0:Ze.amount)||0)||0,E=Number((e==null?void 0:e.otherAssets)&&((zt=e==null?void 0:e.otherAssetsInfo)==null?void 0:zt.giftsDonationsTransfers)&&((Ln=(yn=e==null?void 0:e.otherAssetsInfo)==null?void 0:yn.giftsDonationsTransfersInfo)==null?void 0:Ln.amount)||0)||0,S=Number((e==null?void 0:e.otherAssets)&&((St=e==null?void 0:e.otherAssetsInfo)==null?void 0:St.insuranceWithPremiumRefundsDisabilityDeathAccident)&&((Ie=(ne=e==null?void 0:e.otherAssetsInfo)==null?void 0:ne.insuranceWithPremiumRefundsDisabilityDeathAccidentInfo)==null?void 0:Ie.amount)||0)||0,I=Number((e==null?void 0:e.otherAssets)&&((re=e==null?void 0:e.otherAssetsInfo)==null?void 0:re.otherAssetsCryptoMetalsJewelry)&&((fe=(ie=e==null?void 0:e.otherAssetsInfo)==null?void 0:ie.otherAssetsCryptoMetalsJewelryInfo)==null?void 0:fe.amount)||0)||0,O=Number((e==null?void 0:e.otherAssets)&&((Ge=e==null?void 0:e.otherAssetsInfo)==null?void 0:Ge.taxSubsidizedRetirementProvisions)&&((It=(Et=e==null?void 0:e.otherAssetsInfo)==null?void 0:Et.taxSubsidizedRetirementProvisionsInfo)==null?void 0:It.amount)||0)||0;return t+n+a+r+i+l+o+c+d+h+f+m+g+b+E+S+I+O}function pxe(){const{setFinancialAssets:e,applicantState:t}=wt(),n=t.financialAssets;fu({currentState:n,updateState:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function cM({memberType:e,memberValues:t,index:n}){var c,d,h,f,m,g,b,E,S,I,O,v,w;const a=UU(t),r=e==="kids"?`(Pflege-)Kind ${n+1}`:`Sonstige Person ${n+1}`,i=t==null?void 0:t.name,l=wt(),o=((d=(c=l==null?void 0:l.applicantState)==null?void 0:c.houseHoldMembersApplication)==null?void 0:d.livingWithSomeone)===!0;return s.jsx(s.Fragment,{children:o&&s.jsx(cn,{text:i||r,classNames:{parentContainer:Ae(" bg-white ")},rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(a).toFixed(2).toLocaleString()||0} €`}),children:s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}[${n}].${_.CASH_ASSETS}`,label:"Bargeld",classNames:{label:"font-semibold"}}),(t==null?void 0:t.cashAssets)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${_.CASH_ASSETS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}[${n}].${_.CURRENT_ACCOUNT}`,label:"Girokonto",classNames:{label:"font-semibold"}}),(t==null?void 0:t.currentAccount)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${_.CURRENT_ACCOUNT_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}[${n}].${_.CREDIT_CARDS_OR_PAYMENT_SERVICES_OR_OTHER}`,label:"Kreditkartenguthaben, Paypal und weitere Konten",classNames:{label:"font-semibold"}}),(t==null?void 0:t.creditCardsOrPaymentServicesOrOther)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${_.CREDIT_CARDS_OR_PAYMENT_SERVICES_OR_OTHER_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}[${n}].${_.MOTOR_VEHICLES}`,label:s.jsxs("p",{children:["Kraftfahrzeuge (Gesamtwert)",s.jsx(Xe,{id:_.MOTOR_VEHICLES,...Hf.motorVehicles})]}),classNames:{label:"font-semibold"}}),(t==null?void 0:t.motorVehicles)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${_.MOTOR_VEHICLES_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE}`,label:s.jsxs("p",{children:["Nicht selbst bewohnte Immobilien",s.jsx(Xe,{id:_.NOT_INHABITED_REAL_ESTATE,...Hf.notInhabitedRealEstate})]}),classNames:{label:"font-semibold"}}),(t==null?void 0:t.notInhabitedRealEstate)===!0&&s.jsxs("div",{className:"flex flex-col gap-4 pl-8",children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY}`,label:"Eigentumswohnung",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((h=t==null?void 0:t.notInhabitedRealEstateInfo)==null?void 0:h.condominiumProperty)===!0&&s.jsx("div",{className:"flex flex-col gap-4 pl-12",children:s.jsxs("div",{className:"-- flex flex-col gap-10 bg-white p-4",children:[s.jsx(j,{type:"number",max:100,customChangeEventOnly:!0,customChangeEvent:(D,C)=>{const M=Number(D.target.value);M>100||C&&C(M)},maxLength:3,name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY_INFO}.${_.CO_OWNERSHIP_SHARE}`,label:"Miteigentumsanteil",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"%"})}),s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY_INFO}.${_.MARKET_VALUE}`,label:"Verkehrswert",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY_INFO}.${_.RENT_LEASE_INCOME}`,label:"Miet-/Pachteinnahmen",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY}`,label:"Hausgrundstück",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((f=t==null?void 0:t.notInhabitedRealEstateInfo)==null?void 0:f.houseProperty)===!0&&s.jsx("div",{className:"flex flex-col gap-4 pl-12",children:s.jsxs("div",{className:"-- flex flex-col gap-10 bg-white p-4",children:[s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY_INFO}.${_.CO_OWNERSHIP_SHARE}`,label:"Miteigentumsanteil",max:100,customChangeEventOnly:!0,customChangeEvent:(D,C)=>{const M=Number(D.target.value);M>100||C&&C(M)},maxLength:3,labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"%"})}),s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY_INFO}.${_.MARKET_VALUE}`,label:"Verkehrswert",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY_INFO}.${_.RENT_LEASE_INCOME}`,label:"Miet-/Pachteinnahmen",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY}`,label:"unbebautes Grundstück",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((m=t==null?void 0:t.notInhabitedRealEstateInfo)==null?void 0:m.vacantLandProperty)===!0&&s.jsx("div",{className:"flex flex-col gap-4 pl-12",children:s.jsxs("div",{className:"-- flex flex-col gap-10 bg-white p-4",children:[s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY_INFO}.${_.CO_OWNERSHIP_SHARE}`,label:"Miteigentumsanteil",max:100,customChangeEventOnly:!0,customChangeEvent:(D,C)=>{const M=Number(D.target.value);M>100||C&&C(M)},maxLength:3,labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"%"})}),s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY_INFO}.${_.MARKET_VALUE}`,label:"Verkehrswert",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:`${e}[${n}].${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY_INFO}.${_.RENT_LEASE_INCOME}`,label:"Miet-/Pachteinnahmen",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS}`,label:"Anderes Vermögen",classNames:{label:"font-semibold"}}),(t==null?void 0:t.otherAssets)===!0&&s.jsxs("div",{className:"flex flex-col gap-4 pl-8",children:[s.jsxs("div",{className:"flex flex-col gap-[15px]",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_ACCOUNTS_SAVINGS_BOOKS_CALL_MONEY_ACCOUNTS_PREMIUM_SAVINGS}`,label:"Spareinlagen (z.B. Sparkonten, Sparbücher, Tagesgeldkonten, Premiensparen)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((g=t==null?void 0:t.otherAssetsInfo)==null?void 0:g.savingDepositsOrBondsSavingsAccountsSavingsBooksCallMoneyAccountsPremiumSavings)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})}),s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_CERTIFICATES_OR_OTHER_SECURITIES_AS_SHARES_BONDS_FUND_SHARES}`,label:"Sparbriefe oder sonstige Wertpapiere (z.B. Aktien, Anleihen, Fonds-Anteile)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((b=t==null?void 0:t.otherAssetsInfo)==null?void 0:b.savingDepositsOrBondsSavingsCertificatesOrOtherSecuritiesAsSharesBondsFundShares)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_CERTIFICATES_OR_OTHER_SECURITIES_AS_SHARES_BONDS_FUND_SHARES_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.BUILDINGS_SAVINGS_CONTRACTS}`,label:"Bausparverträge",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((E=t==null?void 0:t.otherAssetsInfo)==null?void 0:E.buildingsSavingsContracts)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.BUILDINGS_SAVINGS_CONTRACTS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.INHERITANCE}`,label:"Erbschaften",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((S=t==null?void 0:t.otherAssetsInfo)==null?void 0:S.inheritance)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.INHERITANCE_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.GIFTS_DONATIONS_TRANSFERS}`,label:"Schenkungen/Spenden/Übertragungen",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((I=t==null?void 0:t.otherAssetsInfo)==null?void 0:I.giftsDonationsTransfers)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.GIFTS_DONATIONS_TRANSFERS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.INSURANCE_WITH_PREMIUM_REFUNDS_DISABILITY_DEATH_ACCIDENT}`,label:"Versicherungen mit Prämienrückgewähr (z. B. Berufsunfähigkeitsversicherungen, Sterbegeldver., Unfallversicherungen)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((O=t==null?void 0:t.otherAssetsInfo)==null?void 0:O.insuranceWithPremiumRefundsDisabilityDeathAccident)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.INSURANCE_WITH_PREMIUM_REFUNDS_DISABILITY_DEATH_ACCIDENT_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.OTHER_ASSETS_CRYPTO_METALS_JEWELRY}`,label:"Sonstiges Vermögen (z. B. Kryptowährung, Edelmetalle, Schmuck, etc.)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((v=t==null?void 0:t.otherAssetsInfo)==null?void 0:v.otherAssetsCryptoMetalsJewelry)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.OTHER_ASSETS_CRYPTO_METALS_JEWELRY_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.TAX_SUBSIDIZED_RETIREMENT_PROVISIONS}`,label:"steuerlich geförderte Altersforsorgevermögen z.NB. Rieser Rente ",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((w=t==null?void 0:t.otherAssetsInfo)==null?void 0:w.taxSubsidizedRetirementProvisions)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}[${n}].${_.OTHER_ASSETS_INFO}.${_.TAX_SUBSIDIZED_RETIREMENT_PROVISIONS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]})]})]})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function uM({memberType:e}){var d,h,f,m,g,b,E,S,I,O,v,w,D,C,M;const{applicantState:t}=wt(),{values:n}=tt(),a=(lv.isArray(n[e]),n[e]),r=UU(a);if(a===void 0||typeof a=="boolean"||a instanceof Array)return null;const i=e==="applicant",l=e==="applicant"?"Antragsteller*in":"Partner*in",o=e==="applicant"?(d=t.applicantData)==null?void 0:d.name:(f=(h=t.houseHoldMembersApplication)==null?void 0:h.partner)==null?void 0:f.name,c=((m=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:m.livingWithSomeone)===!0;return s.jsxs(s.Fragment,{children:[i&&s.jsx("div",{className:"block",children:s.jsxs("p",{className:"pb-4",children:["Geben Sie hier bitte das ",s.jsx("strong",{children:"aktuelle"})," Vermögen der Haushaltsmitglieder an."," ",s.jsx(Xe,{id:"assets",...Hf.assets})]})}),(i||c)&&s.jsx(cn,{text:o||l,classNames:{parentContainer:Ae(" bg-white ")},className:"",rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(r).toFixed(2).toLocaleString()||0} €`}),children:s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}.${_.CASH_ASSETS}`,label:"Bargeld",classNames:{label:"font-semibold"}}),(a==null?void 0:a.cashAssets)===!0&&s.jsx(j,{type:"number",name:`${e}.${_.CASH_ASSETS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}.${_.CURRENT_ACCOUNT}`,label:"Girokonto",classNames:{label:"font-semibold"}}),(a==null?void 0:a.currentAccount)===!0&&s.jsx(j,{type:"number",name:`${e}.${_.CURRENT_ACCOUNT_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}.${_.CREDIT_CARDS_OR_PAYMENT_SERVICES_OR_OTHER}`,label:"Kreditkartenguthaben, Paypal und weitere Konten",classNames:{label:"font-semibold"}}),(a==null?void 0:a.creditCardsOrPaymentServicesOrOther)===!0&&s.jsx(j,{type:"number",name:`${e}.${_.CREDIT_CARDS_OR_PAYMENT_SERVICES_OR_OTHER_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}.${_.MOTOR_VEHICLES}`,label:s.jsxs("p",{children:["Kraftfahrzeuge (Gesamtwert)",s.jsx(Xe,{id:_.MOTOR_VEHICLES,...Hf.motorVehicles})]}),classNames:{label:"font-semibold"}}),(a==null?void 0:a.motorVehicles)===!0&&s.jsx(j,{type:"number",name:`${e}.${_.MOTOR_VEHICLES_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}.${_.NOT_INHABITED_REAL_ESTATE}`,label:s.jsxs("p",{children:["Nicht selbst bewohnte Immobilien",s.jsx(Xe,{id:_.NOT_INHABITED_REAL_ESTATE,...Hf.notInhabitedRealEstate})]}),classNames:{label:"font-semibold"}}),(a==null?void 0:a.notInhabitedRealEstate)===!0&&s.jsxs("div",{className:"flex flex-col gap-4 pl-8",children:[s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY}`,label:"Eigentumswohnung",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((g=a==null?void 0:a.notInhabitedRealEstateInfo)==null?void 0:g.condominiumProperty)===!0&&s.jsx("div",{className:"flex flex-col gap-4 pl-12",children:s.jsxs("div",{className:"-- flex flex-col gap-10 bg-white p-4",children:[s.jsx(j,{type:"number",max:100,customChangeEventOnly:!0,customChangeEvent:(B,L)=>{const H=Number(B.target.value);H>100||L&&L(H)},maxLength:3,name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY_INFO}.${_.CO_OWNERSHIP_SHARE}`,label:"Miteigentumsanteil",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"%"})}),s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY_INFO}.${_.MARKET_VALUE}`,label:"Verkehrswert",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.CONDOMINIUM_PROPERTY_INFO}.${_.RENT_LEASE_INCOME}`,label:"Miet-/Pachteinnahmen",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY}`,label:"Hausgrundstück",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((b=a==null?void 0:a.notInhabitedRealEstateInfo)==null?void 0:b.houseProperty)===!0&&s.jsx("div",{className:"flex flex-col gap-4 pl-12",children:s.jsxs("div",{className:"-- flex flex-col gap-10 bg-white p-4",children:[s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY_INFO}.${_.CO_OWNERSHIP_SHARE}`,label:"Miteigentumsanteil",max:100,customChangeEventOnly:!0,customChangeEvent:(B,L)=>{const H=Number(B.target.value);H>100||L&&L(H)},maxLength:3,labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"%"})}),s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY_INFO}.${_.MARKET_VALUE}`,label:"Verkehrswert",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.HOUSE_PROPERTY_INFO}.${_.RENT_LEASE_INCOME}`,label:"Miet-/Pachteinnahmen",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY}`,label:"unbebautes Grundstück",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((E=a==null?void 0:a.notInhabitedRealEstateInfo)==null?void 0:E.vacantLandProperty)===!0&&s.jsx("div",{className:"flex flex-col gap-4 pl-12",children:s.jsxs("div",{className:"-- flex flex-col gap-10 bg-white p-4",children:[s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY_INFO}.${_.CO_OWNERSHIP_SHARE}`,label:"Miteigentumsanteil",max:100,customChangeEventOnly:!0,customChangeEvent:(B,L)=>{const H=Number(B.target.value);H>100||L&&L(H)},maxLength:3,labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"%"})}),s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY_INFO}.${_.MARKET_VALUE}`,label:"Verkehrswert",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:`${e}.${_.NOT_INHABITED_REAL_ESTATE_INFO}.${_.VACANT_LAND_PROPERTY_INFO}.${_.RENT_LEASE_INCOME}`,label:"Miet-/Pachteinnahmen",labelPosition:"left",className:"flex max-w-[40%] items-start",classNames:{input:" w-[150px]",inputSubContainer:" justify-end"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})})]})]})]}),s.jsxs("div",{className:"flex flex-col gap-4",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS}`,label:"Anderes Vermögen",classNames:{label:"font-semibold"}}),(a==null?void 0:a.otherAssets)===!0&&s.jsxs("div",{className:"flex flex-col gap-4 pl-8",children:[s.jsxs("div",{className:"flex flex-col gap-[15px]",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_ACCOUNTS_SAVINGS_BOOKS_CALL_MONEY_ACCOUNTS_PREMIUM_SAVINGS}`,label:"Spareinlagen (z.B. Sparkonten, Sparbücher, Tagesgeldkonten, Premiensparen)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((S=a==null?void 0:a.otherAssetsInfo)==null?void 0:S.savingDepositsOrBondsSavingsAccountsSavingsBooksCallMoneyAccountsPremiumSavings)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_ACCOUNTS_SAVINGS_BOOKS_CALL_MONEY_ACCOUNTS_PREMIUM_SAVINGS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})}),s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_CERTIFICATES_OR_OTHER_SECURITIES_AS_SHARES_BONDS_FUND_SHARES}`,label:"Sparbriefe oder sonstige Wertpapiere (z.B. Aktien, Anleihen, Fonds-Anteile)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((I=a==null?void 0:a.otherAssetsInfo)==null?void 0:I.savingDepositsOrBondsSavingsCertificatesOrOtherSecuritiesAsSharesBondsFundShares)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.SAVING_DEPOSITS_OR_BONDS_SAVINGS_CERTIFICATES_OR_OTHER_SECURITIES_AS_SHARES_BONDS_FUND_SHARES_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.BUILDINGS_SAVINGS_CONTRACTS}`,label:"Bausparverträge",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((O=a==null?void 0:a.otherAssetsInfo)==null?void 0:O.buildingsSavingsContracts)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.BUILDINGS_SAVINGS_CONTRACTS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.INHERITANCE}`,label:"Erbschaften",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((v=a==null?void 0:a.otherAssetsInfo)==null?void 0:v.inheritance)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.INHERITANCE_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.GIFTS_DONATIONS_TRANSFERS}`,label:"Schenkungen/Spenden/Übertragungen",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((w=a==null?void 0:a.otherAssetsInfo)==null?void 0:w.giftsDonationsTransfers)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.GIFTS_DONATIONS_TRANSFERS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.INSURANCE_WITH_PREMIUM_REFUNDS_DISABILITY_DEATH_ACCIDENT}`,label:"Versicherungen mit Prämienrückgewähr (z. B. Berufsunfähigkeitsversicherungen, Sterbegeldver., Unfallversicherungen)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((D=a==null?void 0:a.otherAssetsInfo)==null?void 0:D.insuranceWithPremiumRefundsDisabilityDeathAccident)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.INSURANCE_WITH_PREMIUM_REFUNDS_DISABILITY_DEATH_ACCIDENT_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.OTHER_ASSETS_CRYPTO_METALS_JEWELRY}`,label:"Sonstiges Vermögen (z. B. Kryptowährung, Edelmetalle, Schmuck, etc.)",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((C=a==null?void 0:a.otherAssetsInfo)==null?void 0:C.otherAssetsCryptoMetalsJewelry)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.OTHER_ASSETS_CRYPTO_METALS_JEWELRY_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx(k,{name:`${e}.${_.OTHER_ASSETS_INFO}.${_.TAX_SUBSIDIZED_RETIREMENT_PROVISIONS}`,label:"steuerlich geförderte Altersforsorgevermögen z.NB. Rieser Rente ",classNames:{label:"font-semibold w-full py-2 pl-4 rounded-md bg-primaryGray"}}),((M=a==null?void 0:a.otherAssetsInfo)==null?void 0:M.taxSubsidizedRetirementProvisions)===!0&&s.jsx("div",{className:"flex flex-col pl-12",children:s.jsx(j,{type:"number",name:`${e}.${_.OTHER_ASSETS_INFO}.${_.TAX_SUBSIDIZED_RETIREMENT_PROVISIONS_INFO}.${_.AMOUNT}`,label:"Betrag",placeholder:"Betrag",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})})]})]})]})]})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function mxe(e){var o,c,d,h,f,m,g;const{applicantState:t}=wt(),n=!!((o=t==null?void 0:t.houseHoldMembersApplication)!=null&&o.partner),a=(c=t.houseHoldMembersApplication)!=null&&c.kids&&((d=t.houseHoldMembersApplication)==null?void 0:d.kids.length)>0?(h=t.houseHoldMembersApplication)==null?void 0:h.kids:void 0,r=(f=t.houseHoldMembersApplication)!=null&&f.householdMembers&&((m=t.houseHoldMembersApplication)==null?void 0:m.householdMembers.length)>0?(g=t.houseHoldMembersApplication)==null?void 0:g.householdMembers:void 0,{values:i}=tt();pxe();const l=Yn();return s.jsxs(Mi,{className:e.className,children:[s.jsx("div",{className:"space-y-4",children:s.jsx(uM,{memberType:"applicant"})}),n&&s.jsx("div",{className:"pt-[15px]",children:s.jsx(uM,{memberType:"partner"})}),a&&s.jsx("div",{className:"space-y-4 pt-[15px]",children:a.map((b,E)=>{const S=(i==null?void 0:i.kids)&&(i==null?void 0:i.kids[E]);return s.jsx("div",{children:S&&s.jsx(cM,{index:E,memberValues:S,memberType:"kids"})},E)})}),r&&s.jsx("div",{className:"space-y-4 pt-[15px]",children:r==null?void 0:r.filter(b=>uo(b)).map((b,E)=>{const S=(i==null?void 0:i.otherMembers)&&(i==null?void 0:i.otherMembers[E]);return s.jsx("div",{children:S&&s.jsx(cM,{index:E,memberValues:S,memberType:"otherMembers"},E)},E)})}),s.jsxs("div",{className:"flex flex-row gap-[160px] pt-[88px]",children:[s.jsx(Eu,{onClick:()=>{l(qe.WERBUNGSKOSTEN)}}),s.jsx(Nu,{onClick:()=>{l(qe.WOHNKOSTEN)}})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Na=Ce(),gxe=Ut().when("costlyDiet",(e,t)=>e?t.positive("Der Betrag muss positiv sein").required("Diätmenge ist erforderlich, wenn kostspielige Diät ja ist"):t.notRequired()),dM=bn({label:le().required("Label ist erforderlich"),value:rm().required("Wert ist erforderlich")}),cg=bn({name:le().required("Name ist erforderlich"),isPregnant:Na,costlyDiet:Na,dietType1:Na,dietType2:Na,dietType3:Na,dietType4:Na,dietType5:Na,dietType6:Na,dietType7:Na,costlyDietAmount:gxe,disability:Na,disabilityDegree:dM.nullable().when("disability",(e,t)=>e?t.required("Ein Grad der Behinderung ist erforderlich, wenn Behinderung 'Ja' ist"):t.nullable().notRequired()),disabilityMarker:dM.nullable().notRequired(),benefitsParticipation:Na,schoolSupplies:Na,enrollmentDate:Bt().nullable().when("schoolSupplies",(e,t)=>e?t.required("Das Anmeldedatum ist erforderlich, wenn Schulmaterial vorhanden ist"):t.nullable()),appliedForSupplies:Na,victim:Na,unavoidableSpecialNeed:Na,specialNeedDescription:le().when("unavoidableSpecialNeed",(e,t)=>e?t.required("Eine Beschreibung des besonderen Bedarfs ist erforderlich, wenn der besondere Bedarf „Ja“ lautet"):t.notRequired()),specialNeedAmount:Ut().when("unavoidableSpecialNeed",(e,t)=>e?t.positive("Der Betrag muss positiv sein").required("Der Betrag für besondere Bedürfnisse ist erforderlich, wenn die besondere Bedürftigkeit „Ja“ lautet"):t.notRequired()),benefits:Na,unableToWork:Na,holderOfDisabilityPass:Na}),bxe=bn({applicant:cg,partner:cg.optional(),child:ri().of(cg).optional(),otherMember:ri().of(cg).optional()});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Exe(e){const t=fxe();return s.jsx(fs,{initialValues:t,validationSchema:bxe,onSubmit:n=>console.log(n),enableReinitialize:!0,children:s.jsx(mxe,{...e})})}const Nxe=Object.freeze(Object.defineProperty({__proto__:null,default:Exe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var xt=(e=>(e.TYPE_OF_LIVING_COST="typeOfLivingCost",e.POSTAL_CODE="postalCode",e.INTEREST_ON_DEBT="interestOnDebt",e.REPAYMENT="repayment",e.NUMBER_OF_UNITS="numberOfUnits",e.UNITS_IN_USE="unitsInUse",e.UTILITY_COST_COMPONENTS="utilityCostComponents",e.OTHER_UTILITIES_DETAIL="otherUtilitiesDetail",e.HEATING_COSTS="heatingCosts",e.HEATING_SYSTEM="heatingSystem",e.HEATING_SYSTEM_DETAILS="heatingSystemDetails",e.HEATING_TYPE="heatingType",e.PROCURE_FUEL_YOURSELF="procureFuelYourself",e.DECENTRALIZED_HOT_WATER="decentralizedHotWater",e.DECENTRALIZED_SYSTEM="decentralizedSystem",e.DECENTRALIZED_SYSTEM_DETAILS="decentralizedSystemDetails",e.COOKING_METHOD="cookingMethod",e.COOKING_METHOD_DETAILS="cookingMethodDetails",e.NUMBER_OF_ROOMS="numberOfRooms",e.NUMBER_OF_KITCHENS="numberOfKitchens",e.NUMBER_OF_BATHROOMS="numberOfBathrooms",e.TOTAL_AREA="totalArea",e.IS_SPACE_USED_ELSEWHERE="isSpaceUsedElsewhere",e.USED_SPACE_LIVING="usedSpaceLiving",e.USED_SPACE_VACANT="usedSpaceVacant",e.USED_SPACE_COMMERCIAL_USE="usedSpaceCommercialUse",e.USED_SPACE_RENTED_LEASED="usedSpaceRentedLeased",e.USED_SPACE_FREE_OF_CHARGE="usedSpaceFreeOfCharge",e.USED_SPACE_OTHER_OCCUPIED="usedSpaceOtherOccupied",e.USED_SPACE="usedSpace",e.IS_SPACE_EQUALLY_USED="isSpaceEquallyUsed",e.OTHER_OCCUPIED_SPACE="otherOccupiedSpace",e.MOVE_IN_DATE="moveInDate",e.RENT_TYPE="rentType",e.ALL_INCLUSIVE_RENT_AMOUNT="allInclusiveRentAmount",e.COLD_RENT_AMOUNT="coldRentAmount",e.COLD_UTILITIES_AMOUNT="coldUtilitiesAmount",e.FIXED_RENT="fixedRent",e))(xt||{});class kU{constructor(t){y(this,"typeOfLivingCost",null);y(this,"rentType",null);y(this,"postalCode","");y(this,"interestOnDebt",0);y(this,"repayment",0);y(this,"numberOfUnits",null);y(this,"unitsInUse","");y(this,"utilityCostComponents",[]);y(this,"otherUtilitiesDetail","");y(this,"heatingCosts","");y(this,"heatingSystem","gas");y(this,"heatingType","centralHeating");y(this,"decentralizedHotWater",!1);y(this,"procureFuelYourself",!1);y(this,"decentralizedSystem","Strom");y(this,"cookingMethod","Strom");y(this,"numberOfRooms","");y(this,"numberOfKitchens","");y(this,"numberOfBathrooms","");y(this,"totalArea","");y(this,"isSpaceUsedElsewhere",!1);y(this,"usedSpaceLiving","");y(this,"usedSpaceVacant","");y(this,"usedSpaceCommercialUse","");y(this,"usedSpaceRentedLeased","");y(this,"usedSpaceFreeOfCharge","");y(this,"isSpaceEquallyUsed",!0);y(this,"otherOccupiedSpace","");y(this,"moveInDate",null);y(this,"allInclusiveRentAmount");y(this,"coldRentAmount");y(this,"coldUtilitiesAmount");y(this,"fixedRent","");Object.assign(this,t)}}const xxe=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"}],Sxe=[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"},{label:"5",value:"5"},{label:"6",value:"6"},{label:"7",value:"7"}],FU=[{label:"Grundsteuer",value:"propertyTax"},{label:"Wasser",value:"water"},{label:"Straßenreinigung",value:"streetCleaning"},{label:"Gebäudeversicherung",value:"buildingInsurance"},{label:"Schornsteinfeger",value:"chimneySweeper"},{label:"Müll",value:"garbage"},{label:"Abwasser",value:"sewage"},{label:"Heizungswartung",value:"heatingMaintenance"},{label:"Andere",value:"other"}],Ixe=[{label:"Gas",value:"gas"},{label:"Fernwärme",value:"districtHeating"},{label:"Strom",value:"electricity"},{label:"Holz",value:"wood"},{label:"Heizöl",value:"heatingOil"},{label:"Andere",value:"other"}],Oxe=[{label:"Zentralheizung",value:"centralHeating"},{label:"Einzelofen",value:"individualHeater"},{label:"Nachtspeicherofen",value:"nightStorageHeater"}],vxe=[{label:"Strom",value:"electricity"},{label:"Holz",value:"wood"},{label:"Gas",value:"gas"},{label:"Heizöl",value:"heatingOil"},{label:"Kohle",value:"coal"},{label:"Andere",value:"other"}],Txe=[{label:"Strom",value:"electricity"},{label:"Gas",value:"gas"},{label:"Andere",value:"other"}],kf={housingCosts:{title:"Welche Art von Wohnkosten entstehen Ihnen?",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"Bitte beachten Sie, dass SO12 aktuell noch keine sonstigen Wohnformen, wie stationäres Wohnen oder betreute Wohnformen für eine Anspruchsprüfung mit einbeziehen kann."})})},postCode:{title:"Postleitzahl",content:s.jsxs("div",{className:"flex w-full flex-col gap-2",children:[s.jsx("p",{children:"Die PLZ ist hoch relevant, da sämtliche Mietwerttabellen und auch Wohnwerttabellen für Niedersachsen, Bremen und Hamburg mit Höchstwerten hinterlegt sind. Es kann sein, dass Mietwerttabellen für Ihren LK nicht auf dem aktuellen Stand sind. Dies liegt daran, dass es hier keine einheitlichen Daten durch die Regierung gibt."}),s.jsx("p",{children:"Im Verlauf der Entwicklung sehen Sie an dieser Stelle die hinterlegten Daten für Ihre PLZ und werden diese händisch korrigieren können."})]})},flatRateRent:{title:"Pauschalmiete (inkl. aller Nebenkosten und warm)",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsxs("p",{children:["Die Wohnkostenpauschale meint Ihre Warmmiete,"," ",s.jsx("b",{children:"ohne Strom, PKW-Stellplatz, Kabel- und Telefongebühren."})]})})},coldrent:{title:"Kaltmiete:",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"Die Kaltmiete ist der Betrag, der schlicht für die Raumnutzung anfällt. Sie deckt keine weiteren Kosten ab, die im Zusammenhang mit dieser Nutzung entstehen, sondern ausschließlich die Nutzung des zur Verfügung gestellten Wohnraums."})})},coldUtilitiesAmount:{title:"Kalte Nebenkosten:",content:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("p",{children:"Dies beinhaltet: Grundsteuer, Wasser und Abwasser, Müllgebühren, Heizungswartung, Straßenigung, Heizungswartung, Gebäudeversicherung, Heizungswartung usw."}),s.jsx("p",{children:s.jsx("b",{children:"Grundsätzlich nicht berücksichtigungsfähig sind Stromkosten, Kabelgebühren und Telefonkosten."})})]})},heatingcosts:{title:"Was sind Heizkosten?",content:s.jsx("div",{className:"flex flex-col gap-2",children:s.jsx("p",{children:"Neben dem Energieverbrauch enthält die Heizkostenabrechnung auch die sogenannten Heiznebenkosten. Dazu zählen Wartungskosten der Heizung, Gebühren der Heizkostenverteilung und für den/die Schornsteinfeger*in sowie Betriebsstromkosten der Heizungsanlage."})})}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const nf=(e=!1)=>{const t=e;return ge("whitespace-nowrap px-3 py-1 outline outline-1 ",{"bg-primaryDarkGray: outline-black":t,"bg-primaryGray":!t})};function Axe({className:e}){const{values:t,setFieldValue:n}=tt(),a=r=>{if(t.rentType===r)return n(xt.RENT_TYPE,null);n(xt.RENT_TYPE,r)};return s.jsxs("div",{className:ge("grid grid-cols-6 gap-5",e),children:[s.jsx(Je,{type:"button",text:"Miete",className:ge(nf(t.typeOfLivingCost==="rent"),"col-span-2"),onClick:()=>{if(t.typeOfLivingCost==="rent")return n("typeOfLivingCost",null);n("typeOfLivingCost","rent")},classNames:{children:"line-clamp-1"}}),s.jsx(Je,{type:"button",text:"Eigentum",className:ge(nf(t.typeOfLivingCost==="ownership"),"col-span-2"),onClick:()=>{if(t.typeOfLivingCost==="ownership")return n("typeOfLivingCost",null);n("typeOfLivingCost","ownership")},classNames:{children:"line-clamp-1"}}),s.jsx(Je,{type:"button",text:"Keine Wohnkosten",className:ge(nf(t.typeOfLivingCost==="noLivingCosts"),"col-span-2"),onClick:()=>{if(t.typeOfLivingCost==="noLivingCosts")return n("typeOfLivingCost",null);n("typeOfLivingCost","noLivingCosts")},classNames:{children:"line-clamp-1"}}),t.typeOfLivingCost==="rent"&&s.jsxs(s.Fragment,{children:[s.jsx(Je,{type:"button",text:"Pauschalmiete",className:ge("overflow-hidden",nf(t.rentType==="flatRent"),"col-span-3"),onClick:()=>a("flatRent"),classNames:{children:"line-clamp-1"}}),s.jsx(Je,{type:"button",text:"Kaltmiete mit Nebenkosten",className:ge(nf(t.rentType==="baseRentWithAdditionalCosts"),"col-span-3"),onClick:()=>a("baseRentWithAdditionalCosts"),classNames:{children:"line-clamp-1"}})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function UT(){const{values:e}=tt();return s.jsxs("div",{className:"flex flex-col gap-2 text-lg",children:[s.jsxs("span",{className:"text-l shrink-0 items-start font-chakra font-semibold",children:[(e.typeOfLivingCost==="rent","Postleitzahl"),e.typeOfLivingCost==="rent"&&s.jsx(Xe,{id:"postCode",...kf.postCode})]}),s.jsx(j,{name:xt.POSTAL_CODE,className:"max-w-[160px] pb-2 text-center",type:"text",maxLength:5,digitsOnly:!0,placeholder:"Postleitzahl"})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function kT(){const{values:e}=tt();return s.jsxs("div",{className:"l:grid-cols-10 grid grid-cols-8 gap-7",children:[s.jsx(Ft,{name:xt.HEATING_SYSTEM,label:"Womit heizen Sie?",options:Ixe,placeholder:"Bitte wählen",returnValueOnly:!0,className:"max-w-[160px]"}),s.jsx(Ft,{name:xt.HEATING_TYPE,label:"Heizungsart:",options:Oxe,placeholder:"Bitte wählen",returnValueOnly:!0,className:"min-w-[160px]"}),s.jsx(k,{name:xt.PROCURE_FUEL_YOURSELF,label:"Beschaffen Sie den Brennstoff selbst?",className:"col-span-full"}),s.jsx("hr",{className:"col-span-full border-gray-300"}),s.jsx(Ft,{name:xt.COOKING_METHOD,label:"Womit kochen Sie?",options:Txe,placeholder:"Bitte wählen",returnValueOnly:!0,className:"bl-5 pt- col-start-1 min-w-[180px] pb-5"}),s.jsx("hr",{className:"col-span-full border-gray-300"}),s.jsx(k,{name:xt.DECENTRALIZED_HOT_WATER,label:"Wasser in Bad und/oder Küche wird durch ein anderes Gerät erhitzt.",className:"col-span-full"}),e.decentralizedHotWater&&s.jsx(Ft,{name:xt.DECENTRALIZED_SYSTEM,label:"Wodurch wird das Wasser warm?",options:vxe,placeholder:"Bitte wählen",returnValueOnly:!0,className:""}),s.jsx("hr",{className:"col-span-full border-gray-300"}),s.jsx("span",{className:"col-span-half block font-chakra font-medium",children:"Anzahl der Räume Ihrer Unterkunft:"}),s.jsx(BS,{title:"",children:s.jsx(j,{name:xt.NUMBER_OF_ROOMS,placeholder:"Zimmer",type:"number",min:"0",classNames:{inputSubContainer:"w-full",input:"min-w-[100px]"}})}),s.jsx(BS,{title:" ",children:s.jsx(j,{name:xt.NUMBER_OF_KITCHENS,type:"number",placeholder:"Küchen",min:"0",classNames:{inputSubContainer:"w-full",input:"min-w-[100px]"}})}),s.jsx(BS,{title:"",children:s.jsx(j,{name:xt.NUMBER_OF_BATHROOMS,type:"number",placeholder:"Bäder",min:"0",classNames:{inputSubContainer:"w-full",input:"min-w-[100px]"}})}),s.jsxs("div",{className:"pt- col-span-full grid grid-cols-3 gap-3",children:[s.jsx(Zd,{className:"col-span-2",children:"Wie groß ist die ganze Wohnung oder das ganze Haus?"}),s.jsx(j,{type:"number",name:xt.TOTAL_AREA,labelPosition:"top",className:"col-start-1 max-w-[160px]",placeholder:"Gesamtfläche",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"w-full"}})]}),s.jsx(k,{name:xt.IS_SPACE_USED_ELSEWHERE,label:"Ein Teil des Wohnraums wird anderweitig genutzt.",className:"col-span-full"}),e.isSpaceUsedElsewhere&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-l col-span-full font-chakra font-medium leading-[16px]",children:"Wie viele m² des Wohnraums werden anderweitig genutzt?"}),s.jsx(j,{type:"number",name:xt.USED_SPACE_LIVING,label:"selbst:",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"max-w-[250px]",input:"max-w-[250px]"},placeholder:"0"}),s.jsx(j,{type:"number",name:xt.USED_SPACE_VACANT,label:"leerstehend:",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"max-w-[250px]",input:"max-w-[250px]"},placeholder:"0"}),s.jsx(j,{type:"number",name:xt.USED_SPACE_COMMERCIAL_USE,label:"gewerblich:",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"max-w-[250px]",input:"max-w-[250x]"},placeholder:"0"}),s.jsx(j,{type:"number",name:xt.USED_SPACE_RENTED_LEASED,label:"vermietet:",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"max-w-[250px]",input:"max-w-[250px]"},placeholder:"0"}),s.jsx(j,{type:"number",name:xt.USED_SPACE_FREE_OF_CHARGE,label:"unentgeltliche Über.:",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"max-w-[250px]",input:"max-w-[250px]",label:"w-[250px]"},placeholder:"0"})]}),s.jsx(k,{name:xt.IS_SPACE_EQUALLY_USED,label:"Der Wohnraum wird von allen Haushaltsmitgliedern zu gleichen Teilen genutzt.",className:"col-span-full"}),e.isSpaceEquallyUsed===!1&&s.jsx(j,{type:"number",name:xt.OTHER_OCCUPIED_SPACE,label:"von Anderen bewohnt:",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"m²"}),classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},placeholder:"0"})]})}function BS({children:e,title:t,className:n}){return s.jsxs("div",{className:ge("flex justify-between gap-4",n),children:[s.jsx("span",{className:"font-chakra font-normal",children:t}),e]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function yxe(){var i;const{values:e,setFieldValue:t}=tt(),n=e.utilityCostComponents.includes("other"),a=l=>{let o=new Set([...e.utilityCostComponents]);if(!o.has(l))o.add(l);else{const c=Array.from(o);o=new Set(c.filter(d=>d!==l))}t(xt.UTILITY_COST_COMPONENTS,Array.from(o))},r=parseInt(e[xt.COLD_UTILITIES_AMOUNT]||"0",10)>1;return s.jsx(s.Fragment,{children:e.typeOfLivingCost==="ownership"&&s.jsxs(cn,{defaultOpen:!0,mode:"display",text:"Eigentum",classNames:{parentContainer:" overflow-hidden",childrenContainer:" gap-5 flex flex-col"},children:[s.jsx(UT,{}),s.jsxs("div",{className:"grid grid-cols-3 gap-5",children:[s.jsx(j,{type:"number",name:xt.INTEREST_ON_DEBT,label:"Schuldzinsen (ohne Tilgung)",labelPosition:"top",placeholder:"Schuldzinsen",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:xt.REPAYMENT,label:"Tilgung",labelPosition:"top",placeholder:"Tilgung",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:xt.COLD_UTILITIES_AMOUNT,label:"Kalte Nebenkosten insgesamt",placeholder:"Nebenkosten",labelPosition:"top",className:"col-start-1",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),r&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"text-l col-span-full font-chakra font-semibold",children:"Wodurch setzen sich die kalten Nebenkosten zusammen?"}),FU.map((l,o)=>s.jsx(jn,{label:l.label,name:`${xt.UTILITY_COST_COMPONENTS}.[${o}]`,onChange:()=>a(l.value),checked:e.utilityCostComponents.includes(l.value)},l.label)),n&&s.jsx(j,{name:xt.OTHER_UTILITIES_DETAIL,placeholder:"Bitte spezifizieren",className:"col-start-1",type:"text",classNames:{inputSubContainer:"w-full"}})]}),s.jsx(j,{type:"number",name:xt.HEATING_COSTS,label:"Heizkosten",labelPosition:"top",className:"text-l font- col-start-1 pt-5",placeholder:"Heizkosten",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsx(kT,{}),s.jsxs("div",{className:"grid grid-cols-1 gap-5",children:[s.jsx(Ft,{name:xt.NUMBER_OF_UNITS,label:"Aus wie vielen Wohneinheiten besteht Ihr Eigentum?",options:xxe,placeholder:"Bitte wählen",customClassNames:{inputContainer:"max-w-[160px] "}}),parseInt(((i=e==null?void 0:e.numberOfUnits)==null?void 0:i.value)||"",10)>1&&s.jsx(Ft,{name:xt.UNITS_IN_USE,label:"Wie viele davon nutzen Sie selbst?",options:Sxe,customClassNames:{inputContainer:"w-full "},placeholder:"Bitte wählen"})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function wxe(){return s.jsxs(cn,{defaultOpen:!0,mode:"display",text:"Pauschalmiete",classNames:{parentContainer:" overflow-hidden",childrenContainer:" gap-5 flex flex-col"},children:[s.jsx(UT,{}),s.jsx("div",{className:"grid grid-cols-3 gap-5 xl:grid-cols-2",children:s.jsx(j,{type:"number",name:xt.FIXED_RENT,label:"Pauschalmiete (inkl. aller Nebenkosten und warm):",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"}),placeholder:"Betrag",className:"col-span-1",classNames:{input:" max-w-[160px]",inputSubContainer:"max-w-[160px]"}})}),s.jsx(kT,{})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Cxe(){const{values:e,setFieldValue:t}=tt(),n=(i,l)=>{let o=[...e.utilityCostComponents];l?o.push(i):o=o.filter(c=>c!==i),t(xt.UTILITY_COST_COMPONENTS,o)},a=e.typeOfLivingCost==="rent"&&parseInt(e.coldUtilitiesAmount||"0",10)>1,r=e.utilityCostComponents.includes("other");return s.jsxs(cn,{defaultOpen:!0,mode:"display",text:"Kaltmiete mit Nebenkosten",classNames:{parentContainer:"overflow-hidden",childrenContainer:" gap-5 flex flex-col"},children:[s.jsx(UT,{}),s.jsxs("div",{className:"grid grid-cols-3 gap-5",children:[s.jsx(j,{type:"number",name:xt.COLD_RENT_AMOUNT,label:s.jsxs("p",{children:["Kaltmiete: ",s.jsx(Xe,{id:"coldrent",...kf.coldrent})]}),labelPosition:"top",placeholder:"Kaltmiete",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(j,{type:"number",name:xt.COLD_UTILITIES_AMOUNT,label:s.jsxs("p",{children:["Kalte Nebenkosten:"," ",s.jsx(Xe,{id:"coldUtilitiesAmount",...kf.coldUtilitiesAmount})]}),placeholder:"Nebenkosten",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},className:"w-full",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),a&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"col-span-full flex",children:s.jsx("p",{children:s.jsx("span",{className:"text-l font-chakra font-semibold",children:"Wodurch setzen sich die kalten Nebenkosten zusammen?"})})}),FU.map(i=>s.jsx(jn,{label:i.label,name:`${xt.UTILITY_COST_COMPONENTS}.${i.value}`,onChange:l=>n(i.value,l.target.checked),checked:e.utilityCostComponents.includes(i.value)},i.label))]}),r&&s.jsx(j,{name:xt.OTHER_UTILITIES_DETAIL,placeholder:"Bitte spezifizieren",className:"col-start-1 w-full",type:"text",classNames:{inputSubContainer:"w-full"}}),s.jsx(j,{type:"number",name:xt.HEATING_COSTS,label:s.jsxs("p",{children:["Heizkosten: ",s.jsx(Xe,{id:"heatingcosts",...kf.heatingcosts})]}),className:"col-start-1 w-full pt-5",classNames:{inputSubContainer:"max-w-[160px]",input:"max-w-[160px]"},placeholder:"Heizkosten",labelPosition:"top",rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsx(kT,{})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Rxe(){const{values:e}=tt(),{setLivingCosts:t}=wt(),n=T.useRef(e);return T.useEffect(()=>{lv.isEqual(n.current,e)||(t(e),n.current=e)},[e,t]),s.jsx(s.Fragment,{children:e.typeOfLivingCost==="rent"&&s.jsxs(s.Fragment,{children:[e.rentType==="flatRent"&&s.jsx(wxe,{}),e.rentType==="baseRentWithAdditionalCosts"&&s.jsx(Cxe,{}),!e.rentType&&s.jsx("div",{className:"flex flex-1 flex-col items-center justify-center",children:s.jsx("span",{className:"font-chakra text-[18px] font-medium",children:"Bitte wählen Sie die Mietart"})})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Mxe(){const{applicantState:e}=wt();return T.useMemo(()=>new kU(e.livingCosts),[e.livingCosts])}function Dxe(){const{setLivingCosts:e}=wt();return T.useCallback(async(t,n)=>{try{e(t)}catch(a){console.error("Form submission error:",a),n.setSubmitting(!1)}},[e])}function jxe(){const{applicantState:e,setLivingCosts:t}=wt(),n=e.livingCosts;fu({currentState:n,updateState:t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Bxe(e){const{values:t}=tt();jxe();const n=Yn();return s.jsxs("div",{className:"flex w-full max-w-[1000px] flex-1 flex-col justify-between pb-0",children:[s.jsxs("span",{className:"w-full bg-white pb-4 font-chakra text-[18px] font-semibold",children:["Welche Wohnkosten haben Sie?",s.jsx(Xe,{id:"housingCosts",...kf.housingCosts})]}),s.jsxs(Mi,{className:ge("flex flex-1 flex-col gap-4",e.className),children:[s.jsx("div",{className:"grid w-full grid-cols-3",children:s.jsx(Axe,{className:"col-span-2"})}),s.jsx(Rxe,{}),s.jsx(yxe,{}),t.typeOfLivingCost==="noLivingCosts"&&s.jsx("p",{className:"mt-4 font-chakra text-[18px] font-medium",children:"Sie haben angegeben, dass Ihnen keine Wohnkosten entstehen. Sie können nun zur nächsten Seite fortfahren."}),(t==null?void 0:t.typeOfLivingCost)&&s.jsx("div",{className:"flex flex-1 flex-col justify-end pt-4",children:s.jsxs("div",{className:"flex flex-row gap-[160px]",children:[s.jsx(Eu,{onClick:()=>{n(qe.EINKOMMEN)}}),s.jsx(Nu,{onClick:()=>{n(qe.ERGEBNISSE)}})]})})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Pxe=bn({typeOfLivingCost:le().required("This field is required"),postalCode:le().required("This field is required")});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Hxe(e){const t=Mxe(),n=Dxe();return s.jsx(fs,{enableReinitialize:!0,initialValues:t,validationSchema:Pxe,onSubmit:n,children:s.jsx(Bxe,{...e})})}const Lxe=Object.freeze(Object.defineProperty({__proto__:null,default:Hxe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Uxe(){var t,n;const{applicantState:e}=wt();return T.useMemo(()=>{var i,l,o;const a=new Hi({...(i=e.professionalCosts)==null?void 0:i.applicant,id:((l=e.applicantData)==null?void 0:l.id)||"",name:((o=e.applicantData)==null?void 0:o.name)||""});return new HT({...e.professionalCosts,applicant:a})},[(t=e.applicantData)==null?void 0:t.id,(n=e.applicantData)==null?void 0:n.name,e.professionalCosts])}function YU(e){var S,I,O,v,w,D,C,M,B,L,H,U,W,z;const t=Number((e==null?void 0:e.carInsuranceWithoutPartFullAndCoverage)&&((S=e==null?void 0:e.carInsuranceWithoutPartFullAndCoverageInfo)==null?void 0:S.amount)||0),n=Number((e==null?void 0:e.underageChildrenInsurance)&&((I=e==null?void 0:e.underageChildrenInsuranceInfo)==null?void 0:I.amount)||0),a=Number((e==null?void 0:e.otherLegallyRequiredInsurance)&&((O=e==null?void 0:e.otherLegallyRequiredInsuranceInfo)==null?void 0:O.amount)||0),r=Number((e==null?void 0:e.section82IncomeTaxProvisions)&&((v=e==null?void 0:e.section82IncomeTaxProvisionsInfo)==null?void 0:v.amount)||0),i=Number((e==null?void 0:e.compulsoryInsuranceInStateHealthOrPension)&&((w=e==null?void 0:e.compulsoryInsuranceInStateHealthOrPensionInfo)==null?void 0:w.amount)||0),l=Number((e==null?void 0:e.childCareSupport)&&((D=e==null?void 0:e.childCareSupportInfo)==null?void 0:D.amount)||0),o=Number((e==null?void 0:e.additionalMealCosts)&&((C=e==null?void 0:e.additionalMealCostsInfo)==null?void 0:C.amount)||0),c=Number((e==null?void 0:e.commuteCosts)&&((M=e==null?void 0:e.commuteCostsInfo)==null?void 0:M.amount)||0),d=Number((e==null?void 0:e.otherWorkRelatedExpenses)&&((B=e==null?void 0:e.otherWorkRelatedExpensesInfo)==null?void 0:B.amount)||0),h=Number((e==null?void 0:e.dualHouseHoldCosts)&&((L=e==null?void 0:e.dualHouseHoldCostsInfo)==null?void 0:L.amount)||0),f=Number((e==null?void 0:e.dualHouseHoldAdditionalMealCosts)&&((H=e==null?void 0:e.dualHouseHoldAdditionalMealCostsInfo)==null?void 0:H.amount)||0),m=Number((e==null?void 0:e.additionalExpensesFromEmployment)&&((U=e==null?void 0:e.additionalExpensesFromEmploymentInfo)==null?void 0:U.amount)||0),g=Number((e==null?void 0:e.parentalIncomeTakenIntoAccount)&&((W=e==null?void 0:e.parentalIncomeTakenIntoAccountInfo)==null?void 0:W.reduce(($,{amount:V})=>$+Number(V),0))||0),b=Number((e==null?void 0:e.paymentsToADependentPerson)&&((z=e==null?void 0:e.paymentsToADependentPersonInfo)==null?void 0:z.reduce(($,{amount:V})=>$+Number(V),0))||0);return t+n+a+r+i+l+o+c+d+h+f+m+g+b}function kxe(){const{applicantState:e,setProfessionalCosts:t}=wt(),n=e.professionalCosts;fu({currentState:n,updateState:t})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function zU(e,t){var o,c;const n=H2(e,t||""),a=(o=n==null?void 0:n.labourIncome)==null?void 0:o.reduce((d,h)=>d+Number(h.nettoIncome)||0,0),r=(c=n==null?void 0:n.selfEmploymentIncome)==null?void 0:c.reduce((d,h)=>d+Number(h.nettoIncome)||0,0);return(a||0)+(r||0)>=400}function GU(e,t){var l,o,c;let n=!1;const a=H2(e,t||""),r=(l=a==null?void 0:a.labourIncome)==null?void 0:l.length;return!!((o=a==null?void 0:a.selfEmploymentIncome)!=null&&o.length)&&(n=!0),r&&(n=!0),(c=a==null?void 0:a.otherIncome)==null||c.forEach(d=>{d.pensionIncome&&(n=!0),d.capitalIncome&&(n=!0),d.rentingIncome&&(n=!0),d.rentingIncome&&(n=!0),d.divorceIncome&&(n=!0),d.oneTimePaymentIncome&&(n=!0)}),n}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Fxe=[{label:"Kraftfahrzeug",value:"personalCar"},{label:"öffentliche Verkehrsmittel",value:"publicTransport"},{label:"sonstige Fahrzeuge (Fahrrad, E-Roller etc.)",value:"otherVehicles"}];function hM({memberType:e,memberValues:t,index:n}){var O;const a=YU(t),r=e==="kids"?`(Pflege-)Kind ${n+1}`:`Sonstige Person ${n+1}`,i=t.name,{applicantState:l}=wt(),o=((O=l==null?void 0:l.houseHoldMembersApplication)==null?void 0:O.livingWithSomeone)===!0,c=zU(l==null?void 0:l.incomeData,t.id),d=GU(l==null?void 0:l.incomeData,t.id),[h,f]=T.useState(!1),[,m]=T.useState(null),[g,b]=T.useState(null),E=(v,w)=>{m(v),b(()=>()=>w(v)),f(!0)},S=()=>{g&&(g(),m(null),f(!1))},I=()=>{f(!1),m(null),b(null)};return s.jsxs(s.Fragment,{children:[o&&s.jsx(cn,{text:i||r,classNames:{parentContainer:Ae(" bg-white ")},rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(a).toFixed(2).toLocaleString()||0} €`}),children:s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx("p",{className:"text-[20px] font-semibold",children:"Versicherungen:"}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.OTHER_LEGALLY_REQUIRED_INSURANCE}`,label:`weitere gesetzlich vorgeschriebene Versicherungen (zum Beispiel Haftpflichtversicherung für bestimmte Berufsgruppen wie Rechtsanwälte oder Hebammen)`,classNames:{label:"font-semibold"}}),(t==null?void 0:t.otherLegallyRequiredInsurance)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.OTHER_LEGALLY_REQUIRED_INSURANCE_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.INSURANCE_FOR_CHILDREN_UNDER_18}`,label:"private Versicherung für Kinder unter 18 Jahren",classNames:{label:"font-semibold"}}),(t==null?void 0:t.insuranceForChildrenUnder18)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.INSURANCE_FOR_CHILDREN_UNDER_18_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.SECTION_82_INCOME_TAX_PROVISIONS}`,label:"Beiträge zur geförderten Altersvorsorge nach § 82 Einkommensteuergesetz (zum Beispiel Beiträge zur “Riester-Rente“)",classNames:{label:"font-semibold"}}),(t==null?void 0:t.section82IncomeTaxProvisions)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.SECTION_82_INCOME_TAX_PROVISIONS_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.COMPULSORY_INSURANCE_IN_STATE_HEALTH_OR_PENSION}`,label:"Eine Versicherungspflicht in der gesetzlichen Kranken-/Pflegeversicherung und Rentenversicherung liegt nicht vor. Es werden Beiträge zur Vorsorge für den Fall der Krankheit, der Pflegebedürftigkeit und zur Altersvorsorge gezahlt.",classNames:{label:"font-semibold"}}),t.compulsoryInsuranceInStateHealthOrPension===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.COMPULSORY_INSURANCE_IN_STATE_HEALTH_OR_PENSION_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})]}),c&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsxs("p",{className:"text-[20px] font-semibold",children:["Aufwendungen durch das Arbeitsverhältnis:"," ",s.jsx(Xe,{id:"childCareSupport",...Ys.childCareSupport})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.CHILD_CARE_SUPPORT}`,label:"Kinderbetreuungskosten",classNames:{label:"font-semibold"}}),(t==null?void 0:t.childCareSupport)===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.CHILD_CARE_SUPPORT_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.ADDITIONAL_MEAL_COSTS}`,label:"Verpflegungsmehraufwendungen",classNames:{label:"font-semibold"}}),t.additionalMealCosts===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.ADDITIONAL_MEAL_COSTS_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.COMMUTE_COSTS}`,label:"Ausgaben für die Fahrten zwischen Wohnung und Arbeitsstätte",classNames:{label:"font-semibold"}}),(t==null?void 0:t.commuteCosts)===!0&&s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsx(j,{type:"number",name:`${e}[${n}].${ce.COMMUTE_COSTS_INFO}.${ce.AMOUNT}`,labelPosition:"left",label:"Höhe der Ausgaben",classNames:{inputLabelSubContainer:"w-fit items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(jn,{label:"Es besteht ein Anspruch auf Zuschüsse zu den Fahrkosten vom Arbeitgeber oder von einem Dritten",className:"relative text-[16px] font-[500] text-[#000000]",name:`${e}[${n}].${ce.COMMUTE_COSTS_INFO}.${ce.ENTITLED_TO_SUBSIDIES_FOR_TRAVEL}`,isCustom:!0}),s.jsx("div",{children:s.jsx(j,{name:`${e}[${n}].${ce.COMMUTE_COSTS_INFO}.${ce.DISTANCE_BETWEEN_HOME_AND_WORK}`,labelPosition:"top",label:"Kürzeste Strecke zwischen Wohnung und Arbeitsstätte in Kilometern",classNames:{inputLabelSubContainer:"w-fit items-center cursor-default ",input:" border border-gray-700 rounded-[5px] pr-[35px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[35px] items-center justify-center border-l border-gray-700 text-center text-[14px] leading-none",children:"km2"})})}),s.jsx("div",{className:"w-full",children:s.jsx(j,{label:"An wie vielen Arbeitstagen der Woche wird die Strecke regelmäßig zurückgelegt?",name:`${e}[${n}].${ce.COMMUTE_COSTS_INFO}.${ce.DAYS_PER_WEEK_THE_ROUTE_COVERED}`,className:" ",classNames:{inputLabelSubContainer:" items-center ",input:" border border-gray-700 rounded-[5px] max-w-[40px] w-full"}})}),s.jsx("div",{children:s.jsx(om,{name:`${e}[${n}].${ce.COMMUTE_COSTS_INFO}.${ce.TYPE_OF_TRANSPORT}`,label:"Womit wird die Strecke zurückgelegt?",options:Fxe,classNames:{inputContainer:"flex flex-col gap-[10px] custom-radio"}})})]})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.CAR_INSURANCE_WITHOUT_PART_FULL_AND_COVERAGE}`,label:"Kraftfahrzeug-Haftpflichtversicherung (ohne Teilkasko, Vollkasko, Schutzbrief)",classNames:{label:"font-semibold"}}),t.carInsuranceWithoutPartFullAndCoverage===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.CAR_INSURANCE_WITHOUT_PART_FULL_AND_COVERAGE_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.DUAL_HOUSE_HOLD_COSTS}`,label:"Aufwendungen bei doppelter Haushaltsführung",classNames:{label:"font-semibold"}}),t.dualHouseHoldCosts===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.DUAL_HOUSE_HOLD_COSTS_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.DUAL_HOUSE_HOLD_ADDITIONAL_MEAL_COSTS}`,label:s.jsxs("p",{children:["Mehraufwendungen für Verpflegung wegen einer täglichenAbwesenheit von mindestens acht Stunden von der Wohnung und dem üblichen Beschäftigungsort, ohne dass eine doppelte Haushaltsführung vorliegt",s.jsx(Xe,{id:"dualHouseHoldAdditionalMealCosts",...Ys.dualHouseHoldAdditionalMealCosts})]}),classNames:{label:"font-semibold"}}),t.dualHouseHoldAdditionalMealCosts===!0&&s.jsx(j,{type:"number",name:`${e}[${n}].${ce.DUAL_HOUSE_HOLD_ADDITIONAL_MEAL_COSTS_INFO}.${ce.AMOUNT}`,label:"Anzahl der Arbeitstage im Monat",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"}})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT}`,label:s.jsxs("p",{children:["Weitere Ausgaben aus dem Arbeitsverhältnis",s.jsx(Xe,{id:"additionalExpensesFromEmployment",...Ys.additionalExpensesFromEmployment})]}),classNames:{label:"font-semibold"}}),t.additionalExpensesFromEmployment===!0&&s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsx(j,{name:`${e}[${n}].${ce.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT_INFO}.${ce.TYPE_OF_EXPENSE}`,label:"Art der Ausgabe",labelPosition:"left",className:"flex w-full justify-center",classNames:{inputLabelSubContainer:" items-center pl-4",input:" border border-gray-700 rounded-[5px] w-[200px]",label:"pr-7"}}),s.jsx(j,{type:"number",name:`${e}[${n}].${ce.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"flex w-full justify-center",classNames:{inputLabelSubContainer:" w-fit items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})]})]}),d&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx("p",{className:"text-[20px] font-semibold",children:"Sonstige Absetzungen:"}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT}`,label:"Bei der Ausbildungsförderung (Berufsausbildungsbeihilfe, Ausbildungsgeld, BAföG) für ein Kind berücksichtigtes Elterneinkommen",classNames:{label:"font-semibold"}}),t.parentalIncomeTakenIntoAccount===!0&&s.jsx(s.Fragment,{children:s.jsx(Si,{name:`${e}[${n}].${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}`,render:({push:v,remove:w})=>{var D;return s.jsxs(s.Fragment,{children:[(D=t==null?void 0:t.parentalIncomeTakenIntoAccountInfo)==null?void 0:D.map((C,M)=>s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsxs("div",{className:"flex flex-row justify-between gap-8",children:[s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${e}[${M}].${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}[${M}].${ce.NAME}`,label:"Name",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"}}),s.jsx(j,{name:`${e}[${M}].${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}[${M}].${ce.SURNAME}`,label:"Vorname",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"}})]}),s.jsx(Je,{text:"Löschen",onClick:()=>E(M,w)})]}),s.jsx(j,{type:"number",name:`${e}[${M}].${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}[${M}].${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]},M)),s.jsx(Je,{text:"weiteres Kind hinzufügen",className:"max-w-[278px]",leftIcon:s.jsx(gp,{}),onClick:()=>{v({name:"",surname:"",amount:""})}})]})}})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}[${n}].${ce.PAYMENTS_TO_A_DEPENDENT_PERSON}`,label:s.jsxs("p",{children:["Zahlungen an eine unterhaltsberechtigte Person außerhalb der Bedarfsgemeinschaft auf Grund eines Unterhaltstitels:",s.jsx(Xe,{id:"paymentsToADependentPerson",...Ys.paymentsToADependentPerson})]}),classNames:{label:"font-semibold"}}),t.paymentsToADependentPerson===!0&&s.jsx(s.Fragment,{children:s.jsx(Si,{name:`${e}[${n}].${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}`,render:({push:v,remove:w})=>{var D;return s.jsxs(s.Fragment,{children:[(D=t==null?void 0:t.paymentsToADependentPersonInfo)==null?void 0:D.map((C,M)=>s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsxs("div",{className:"flex flex-row justify-between gap-8",children:[s.jsxs("div",{className:"flex flex-row gap-4",children:[s.jsx(j,{name:`${e}[${M}].${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${M}].${ce.NAME}`,label:"Name",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"}}),s.jsx(j,{name:`${e}[${M}].${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${M}].${ce.SURNAME}`,label:"Vorname",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"}})]}),s.jsx(Je,{text:"Löschen",onClick:()=>E(M,w)})]}),s.jsx(Ft,{className:"max-w-[262px]",customClassNames:{inputContainer:"max-w-[262px] "},closeMenuOnSelect:!0,label:"Verwandtschaftsverhältnis:",name:`${e}[${M}].${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${M}].${ce.RELATIONSHIP}`,defaultValue:{label:"Auswahl treffen",value:"",isDisabled:!0},options:MU}),s.jsx(j,{type:"number",name:`${e}[${M}].${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${M}].${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]},M)),s.jsx(Je,{text:"weitere Person hinzufügen",className:"max-w-[278px]",leftIcon:s.jsx(gp,{}),onClick:()=>{v({name:"",surname:"",relationship:"",amount:""})}})]})}})})]})]})]})}),s.jsx(Es,{open:h,onConfirm:S,onCancel:I,onClose:I})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Yxe=[{label:"Kraftfahrzeug",value:"personalCar"},{label:"öffentliche Verkehrsmittel",value:"publicTransport"},{label:"sonstige Fahrzeuge (Fahrrad, E-Roller etc.)",value:"otherVehicles"}];function fM({memberType:e}){var v,w,D,C;const{applicantState:t}=wt(),{values:n}=tt(),[a,r]=T.useState(!1),[,i]=T.useState(null),[l,o]=T.useState(null),c=(lv.isArray(n[e]),n[e]),d=YU(c);if(c===void 0||typeof c=="boolean"||c instanceof Array)return null;const h=e==="applicant"?"Antragsteller*in":"Partner*in",f=e==="applicant"?(v=t.applicantData)==null?void 0:v.name:(D=(w=t.houseHoldMembersApplication)==null?void 0:w.partner)==null?void 0:D.name,m=e==="applicant",g=(C=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:C.livingWithSomeone,b=zU(t==null?void 0:t.incomeData,c.id),E=GU(t==null?void 0:t.incomeData,c.id),S=(M,B)=>{i(M),o(()=>()=>B(M)),r(!0)},I=()=>{l&&(l(),i(null),r(!1))},O=()=>{r(!1),i(null),o(null)};return s.jsxs(s.Fragment,{children:[m&&s.jsx("div",{className:"block",children:s.jsxs("p",{className:"pb-4",children:["Was sind Werbungskosten bzw. Absetzungen?"," ",s.jsx(Xe,{id:"professionalCosts",...Ys.professionalCost})]})}),(m||g)&&s.jsx(cn,{text:f||h,className:"",classNames:{parentContainer:Ae(" bg-white ")},rightChildren:s.jsx("p",{className:"whitespace-nowrap pr-[36px]",children:`${Number(d).toFixed(2).toLocaleString()||0} €`}),children:s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx("p",{className:"text-[20px] font-semibold",children:"Versicherungen:"}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.OTHER_LEGALLY_REQUIRED_INSURANCE}`,label:`weitere gesetzlich vorgeschriebene Versicherungen (zum Beispiel Haftpflichtversicherung für bestimmte Berufsgruppen wie Rechtsanwälte oder Hebammen)`,classNames:{label:"font-semibold"}}),(c==null?void 0:c.otherLegallyRequiredInsurance)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.OTHER_LEGALLY_REQUIRED_INSURANCE_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.INSURANCE_FOR_CHILDREN_UNDER_18}`,label:"private Versicherung für Kinder unter 18 Jahren",classNames:{label:"font-semibold"}}),(c==null?void 0:c.insuranceForChildrenUnder18)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.INSURANCE_FOR_CHILDREN_UNDER_18_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.SECTION_82_INCOME_TAX_PROVISIONS}`,label:"Beiträge zur geförderten Altersvorsorge nach § 82 Einkommensteuergesetz (zum Beispiel Beiträge zur “Riester-Rente“)",classNames:{label:"font-semibold"}}),(c==null?void 0:c.section82IncomeTaxProvisions)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.SECTION_82_INCOME_TAX_PROVISIONS_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.COMPULSORY_INSURANCE_IN_STATE_HEALTH_OR_PENSION}`,label:"Eine Versicherungspflicht in der gesetzlichen Kranken-/Pflegeversicherung und Rentenversicherung liegt nicht vor. Es werden Beiträge zur Vorsorge für den Fall der Krankheit, der Pflegebedürftigkeit und zur Altersvorsorge gezahlt.",classNames:{label:"font-semibold"}}),(c==null?void 0:c.compulsoryInsuranceInStateHealthOrPension)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.COMPULSORY_INSURANCE_IN_STATE_HEALTH_OR_PENSION_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})]}),b&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsxs("p",{className:"text-[20px] font-semibold",children:["Aufwendungen durch das Arbeitsverhältnis:",s.jsx(Xe,{id:"childCareSupport",...Ys.childCareSupport})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.CHILD_CARE_SUPPORT}`,label:"Kinderbetreuungskosten",classNames:{label:"font-semibold"}}),(c==null?void 0:c.childCareSupport)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.CHILD_CARE_SUPPORT_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.ADDITIONAL_MEAL_COSTS}`,label:"Verpflegungsmehraufwendungen",classNames:{label:"font-semibold"}}),(c==null?void 0:c.additionalMealCosts)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.ADDITIONAL_MEAL_COSTS_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.COMMUTE_COSTS}`,label:"Ausgaben für die Fahrten zwischen Wohnung und Arbeitsstätte",classNames:{label:"font-semibold"}}),(c==null?void 0:c.commuteCosts)===!0&&s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsx(j,{type:"number",name:`${e}.${ce.COMMUTE_COSTS_INFO}.${ce.AMOUNT}`,labelPosition:"left",label:"Höhe der Ausgaben",classNames:{inputLabelSubContainer:"w-fit items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})}),s.jsx(jn,{label:"Es besteht ein Anspruch auf Zuschüsse zu den Fahrkosten vom Arbeitgeber oder von einem Dritten",className:"relative text-[16px] font-[500] text-[#000000]",name:`${e}.${ce.COMMUTE_COSTS_INFO}.${ce.ENTITLED_TO_SUBSIDIES_FOR_TRAVEL}`,isCustom:!0}),s.jsx("div",{children:s.jsx(j,{name:`${e}.${ce.COMMUTE_COSTS_INFO}.${ce.DISTANCE_BETWEEN_HOME_AND_WORK}`,labelPosition:"top",label:"Kürzeste Strecke zwischen Wohnung und Arbeitsstätte in Kilometern",classNames:{inputLabelSubContainer:"w-fit items-center cursor-default ",input:" border border-gray-700 rounded-[5px] pr-[35px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[35px] items-center justify-center border-l border-gray-700 text-center text-[14px] leading-none",children:"km2"})})}),s.jsx("div",{className:"w-full",children:s.jsx(j,{label:"An wie vielen Arbeitstagen der Woche wird die Strecke regelmäßig zurückgelegt?",name:`${e}.${ce.COMMUTE_COSTS_INFO}.${ce.DAYS_PER_WEEK_THE_ROUTE_COVERED}`,className:" ",classNames:{inputLabelSubContainer:" items-center ",input:" border border-gray-700 rounded-[5px] max-w-[40px] w-full"}})}),s.jsx("div",{children:s.jsx(om,{name:`${e}.${ce.COMMUTE_COSTS_INFO}.${ce.TYPE_OF_TRANSPORT}`,label:"Womit wird die Strecke zurückgelegt?",options:Yxe,classNames:{inputContainer:"flex flex-col gap-[10PX] custom-radio"}})})]})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.CAR_INSURANCE_WITHOUT_PART_FULL_AND_COVERAGE}`,label:"Kraftfahrzeug-Haftpflichtversicherung (ohne Teilkasko, Vollkasko, Schutzbrief)",classNames:{label:"font-semibold"}}),(c==null?void 0:c.carInsuranceWithoutPartFullAndCoverage)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.CAR_INSURANCE_WITHOUT_PART_FULL_AND_COVERAGE_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.DUAL_HOUSE_HOLD_COSTS}`,label:"Aufwendungen bei doppelter Haushaltsführung",classNames:{label:"font-semibold"}}),(c==null?void 0:c.dualHouseHoldCosts)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.DUAL_HOUSE_HOLD_COSTS_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.DUAL_HOUSE_HOLD_ADDITIONAL_MEAL_COSTS}`,classNames:{label:"font-semibold"},label:s.jsxs("p",{children:["Mehraufwendungen für Verpflegung wegen einer täglichenAbwesenheit von mindestens acht Stunden von der Wohnung und dem üblichen Beschäftigungsort, ohne dass eine doppelte Haushaltsführung vorliegt",s.jsx(Xe,{id:"dualHouseHoldAdditionalMealCosts",...Ys.dualHouseHoldAdditionalMealCosts})]})}),(c==null?void 0:c.dualHouseHoldAdditionalMealCosts)===!0&&s.jsx(j,{type:"number",name:`${e}.${ce.DUAL_HOUSE_HOLD_ADDITIONAL_MEAL_COSTS_INFO}.${ce.AMOUNT}`,label:"Anzahl der Arbeitstage im Monat",labelPosition:"left",className:"-- ++ flex min-h-[50px] justify-center border border-none bg-white",classNames:{inputLabelSubContainer:"w-[215px] items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"}})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT}`,label:s.jsxs("p",{children:["Weitere Ausgaben aus dem Arbeitsverhältnis",s.jsx(Xe,{id:"additionalExpensesFromEmployment",...Ys.additionalExpensesFromEmployment})]}),classNames:{label:"font-semibold"}}),(c==null?void 0:c.additionalExpensesFromEmployment)===!0&&s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsx(j,{name:`${e}.${ce.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT_INFO}.${ce.TYPE_OF_EXPENSE}`,label:"Art der Ausgabe",labelPosition:"left",className:"flex w-full justify-center",classNames:{inputLabelSubContainer:" items-center pl-4",input:" border border-gray-700 rounded-[5px] w-[200px]",label:"pr-7"}}),s.jsx(j,{type:"number",name:`${e}.${ce.ADDITIONAL_EXPENSES_FROM_EMPLOYMENT_INFO}.${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"flex w-full justify-center",classNames:{inputLabelSubContainer:" w-fit items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[140px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})]})]}),E&&s.jsxs("div",{className:"flex flex-col gap-[23px]",children:[s.jsx("p",{className:"text-[20px] font-semibold",children:"Sonstige Absetzungen:"}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT}`,label:"Bei der Ausbildungsförderung (Berufsausbildungsbeihilfe, Ausbildungsgeld, BAföG) für ein Kind berücksichtigtes Elterneinkommen",classNames:{label:"font-semibold"}}),(c==null?void 0:c.parentalIncomeTakenIntoAccount)===!0&&s.jsx(s.Fragment,{children:s.jsx(Si,{name:`${e}.${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}`,render:({push:M,remove:B})=>{var L;return s.jsxs(s.Fragment,{children:[(L=c==null?void 0:c.parentalIncomeTakenIntoAccountInfo)==null?void 0:L.map((H,U)=>s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsxs("div",{className:"flex flex-row justify-between gap-8",children:[s.jsxs("div",{className:"flex flex-row gap-1",children:[s.jsx(j,{name:`${e}.${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}[${U}].${ce.NAME}`,label:"Name",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"min-w-[215px] max-w-[240px] w-full items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-full"}}),s.jsx(j,{name:`${e}.${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}[${U}].${ce.SURNAME}`,label:"Vorname",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"min-w-[215px] w-full items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-full"}})]}),s.jsx(Je,{text:"Löschen",onClick:()=>S(U,B)})]}),s.jsx(j,{type:"number",name:`${e}.${ce.PARENTAL_INCOME_TAKEN_INTO_ACCOUNT_INFO}[${U}].${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})),s.jsx(Je,{text:"weiteres Kind hinzufügen",className:"max-w-[278px]",leftIcon:s.jsx(gp,{}),onClick:()=>{M({name:"",surname:"",amount:""})}})]})}})})]}),s.jsxs("div",{className:"flex flex-col gap-4 pl-4",children:[s.jsx(k,{name:`${e}.${ce.PAYMENTS_TO_A_DEPENDENT_PERSON}`,classNames:{label:"font-semibold"},label:s.jsxs("p",{children:["Zahlungen an eine unterhaltsberechtigte Person außerhalb der Bedarfsgemeinschaft auf Grund eines Unterhaltstitels:",s.jsx(Xe,{id:"paymentsToADependentPerson",...Ys.paymentsToADependentPerson})]})}),(c==null?void 0:c.paymentsToADependentPerson)===!0&&s.jsx(s.Fragment,{children:s.jsx(Si,{name:`${e}.${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}`,render:({push:M,remove:B})=>{var L;return s.jsxs(s.Fragment,{children:[(L=c==null?void 0:c.paymentsToADependentPersonInfo)==null?void 0:L.map((H,U)=>s.jsxs("div",{className:"-- ++ flex flex-col gap-4 border border-none bg-white p-4",children:[s.jsxs("div",{className:"flex flex-row justify-between gap-8",children:[s.jsxs("div",{className:"flex flex-row gap-1",children:[s.jsx(j,{name:`${e}.${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${U}].${ce.NAME}`,label:"Name",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"min-w-[215px] max-w-[240px] w-full items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-full"}}),s.jsx(j,{name:`${e}.${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${U}].${ce.SURNAME}`,label:"Vorname",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"min-w-[215px] w-full items-center pl-4",input:" border border-gray-700 rounded-[5px] pr-[30px] w-full"}})]}),s.jsx(Je,{text:"Löschen",onClick:()=>S(U,B)})]}),s.jsx(Ft,{className:"max-w-[262px]",customClassNames:{inputContainer:"max-w-[262px] "},closeMenuOnSelect:!0,label:"Verwandtschaftsverhältnis:",name:`${e}.${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${U}].${ce.RELATIONSHIP}`,defaultValue:{label:"Sonstige Verwandtschaft",value:"other"},options:MU}),s.jsx(j,{type:"number",name:`${e}.${ce.PAYMENTS_TO_A_DEPENDENT_PERSON_INFO}[${U}].${ce.AMOUNT}`,label:"Betrag (monatlich)",labelPosition:"left",className:"flex justify-center",classNames:{inputLabelSubContainer:"w-[215px] items-center ",input:" border border-gray-700 rounded-[5px] pr-[30px] w-[160px]"},rightIcon:s.jsx("span",{className:"absolute right-0 flex h-full w-[30px] items-center justify-center border-l border-gray-700 text-center leading-none",children:"€"})})]})),s.jsx(Je,{text:"weitere Person hinzufügen",className:"max-w-[278px]",type:"button",leftIcon:s.jsx(gp,{}),onClick:()=>{M({name:"",surname:"",relationship:"",amount:""})}})]})}})})]})]})]})}),s.jsx(Es,{open:a,onConfirm:I,onCancel:O,onClose:O})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function zxe(e){var o,c,d,h,f,m,g;const{values:t}=tt(),{applicantState:n}=wt(),a=!!((o=n==null?void 0:n.houseHoldMembersApplication)!=null&&o.partner),r=(c=n.houseHoldMembersApplication)!=null&&c.kids&&((d=n.houseHoldMembersApplication)==null?void 0:d.kids.length)>0?(h=n.houseHoldMembersApplication)==null?void 0:h.kids:void 0,i=(f=n.houseHoldMembersApplication)!=null&&f.householdMembers&&((m=n.houseHoldMembersApplication)==null?void 0:m.householdMembers.length)>0?(g=n.houseHoldMembersApplication)==null?void 0:g.householdMembers:void 0;kxe();const l=Yn();return s.jsxs(Mi,{className:e.className,children:[s.jsx("div",{className:"space-y-4",children:s.jsx(fM,{memberType:"applicant"})}),a&&s.jsx("div",{className:"pt-[15px]",children:s.jsx(fM,{memberType:"partner"})}),r&&s.jsx("div",{className:"space-y-4 pt-[15px]",children:r.map((b,E)=>{const S=(t==null?void 0:t.kids)&&(t==null?void 0:t.kids[E]);return s.jsx("div",{children:S&&s.jsx(hM,{index:E,memberValues:S,memberType:"kids"})},E)})}),i&&s.jsx("div",{className:"space-y-4 pt-[15px]",children:i==null?void 0:i.filter(b=>uo(b)).map((b,E)=>{const S=(t==null?void 0:t.otherMembers)&&(t==null?void 0:t.otherMembers[E]);return s.jsx("div",{children:S&&s.jsx(hM,{index:E,memberValues:S,memberType:"otherMembers"},E)},E)})}),s.jsxs("div",{className:"flex flex-row gap-[160px] pt-[88px]",children:[s.jsx(Eu,{onClick:()=>{l(qe.EINKOMMEN)}}),s.jsx(Nu,{onClick:()=>{l(qe.VERMÖGEN)}})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const xa=Ce(),Gxe=Ut().when("costlyDiet",(e,t)=>e?t.positive("Der Betrag muss positiv sein").required("Diätmenge ist erforderlich, wenn kostspielige Diät ja ist"):t.notRequired()),pM=bn({label:le().required("Label ist erforderlich"),value:rm().required("Wert ist erforderlich")}),ug=bn({name:le().required("Name ist erforderlich"),isPregnant:xa,costlyDiet:xa,dietType1:xa,dietType2:xa,dietType3:xa,dietType4:xa,dietType5:xa,dietType6:xa,dietType7:xa,costlyDietAmount:Gxe,disability:xa,disabilityDegree:pM.nullable().when("disability",(e,t)=>e?t.required("Ein Grad der Behinderung ist erforderlich, wenn Behinderung 'Ja' ist"):t.nullable().notRequired()),disabilityMarker:pM.nullable().notRequired(),benefitsParticipation:xa,schoolSupplies:xa,enrollmentDate:Bt().nullable().when("schoolSupplies",(e,t)=>e?t.required("Das Anmeldedatum ist erforderlich, wenn Schulmaterial vorhanden ist"):t.nullable()),appliedForSupplies:xa,victim:xa,unavoidableSpecialNeed:xa,specialNeedDescription:le().when("unavoidableSpecialNeed",(e,t)=>e?t.required("Eine Beschreibung des besonderen Bedarfs ist erforderlich, wenn der besondere Bedarf „Ja“ lautet"):t.notRequired()),specialNeedAmount:Ut().when("unavoidableSpecialNeed",(e,t)=>e?t.positive("Der Betrag muss positiv sein").required("Der Betrag für besondere Bedürfnisse ist erforderlich, wenn die besondere Bedürftigkeit „Ja“ lautet"):t.notRequired()),benefits:xa,unableToWork:xa,holderOfDisabilityPass:xa}),Wxe=bn({additionalNeeds:le().required("Dieses Feld ist erforderlich"),applicant:ug,partner:ug.optional(),child:ri().of(ug).optional(),otherMember:ri().of(ug).optional()});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function qxe(e){const t=Uxe();return s.jsx(fs,{initialValues:t,validationSchema:Wxe,enableReinitialize:!0,onSubmit:()=>{console.log("Submitting form")},children:s.jsx(zxe,{...e})})}const Vxe=Object.freeze(Object.defineProperty({__proto__:null,default:qxe},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function Kxe(){const e=Kn(),t=_q({id:e}),n={applicantData:t,additionalCosts:new BL({applicant:new Dl({id:e||"",name:(t==null?void 0:t.name)||""})}),incomeData:new vT({applicantIncomeData:new gc({memberId:e})}),livingCosts:new kU,houseHoldMembersApplication:new LU,financialAssets:new FL({applicant:new Pi({id:e||"",name:(t==null?void 0:t.name)||""})}),professionalCosts:new HT,calculationFilters:[],burgerGeldCalculationResult:{}},a=new Jd(n);return n.additionalInformation=a,n}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const Zxe=(e,t,n,a)=>{var c,d,h;const r=n.incomeData,i=a.incomeData,l=(r==null?void 0:r.hasReceivedBuergergeldMoreThan12Months)??((c=r==null?void 0:r.applicantIncomeData)==null?void 0:c.hasReceivedBuergergeldMoreThan12Months),o=(i==null?void 0:i.hasReceivedBuergergeldMoreThan12Months)??((d=i==null?void 0:i.applicantIncomeData)==null?void 0:d.hasReceivedBuergergeldMoreThan12Months);if(l!==o&&!l&&((h=n.burgerGeldCalculationResult)==null?void 0:h.karenzzeit)!==!0){const m={...n,burgerGeldCalculationResult:{...n.burgerGeldCalculationResult,karenzzeit:!0}};t(qU,m)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const WU=Kxe(),Xg=JU(ZU(Rw,WU),Rw,"mainAtom"),qU=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/applicationAtom",yi(e=>e(Xg),(e,t,n)=>{const a=e(Xg),r=typeof n=="function"?n(a):n;t(Xg,r),Zxe(e,t,r,a)}));qU.debugLabel="applicationAtom";const FT=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/listenersAtom",yi([]));FT.debugLabel="listenersAtom";const VU=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/informationModal",yi(null));VU.debugLabel="informationModal";const KU=JU(ZU(Mw,{}),Mw,"authAtom"),Jxe=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/isDownloadAuthorizedAtom",yi(!1));Jxe.debugLabel="isDownloadAuthorizedAtom";const Qxe=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/karenzzeitActiveAtom",yi(null));Qxe.debugLabel="karenzzeitActiveAtom";const tv=hv(),YT=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/isTokenWarningDismissedAtom",yi(!1));YT.debugLabel="isTokenWarningDismissedAtom";const Xxe=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/isCalculationAuthorizedAtom",yi(!1));Xxe.debugLabel="isCalculationAuthorizedAtom";const _xe=globalThis.jotaiAtomCache.get("/app/src/store/atoms.ts/shouldDeductTokenAtom",yi(!1));_xe.debugLabel="shouldDeductTokenAtom";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function $xe(e){const t=[...(e==null?void 0:e.otherIncome)||[]];return{...e,otherIncome:t}}function BN(e,t){var a;const n=$xe(e);if(n!=null&&n.otherIncome&&(n!=null&&n.otherIncome[0])){const r=n!=null&&n.otherIncome?n==null?void 0:n.otherIncome[0]:null;n.otherIncome[0]={...r,...t}}else(a=n.otherIncome)==null||a.push(t);return n}function ZU(e,t){const n=localStorage.getItem(e);return n!==null?JSON.parse(n):(t&&localStorage.setItem(e,JSON.stringify(t)),t)}function JU(e,t,n="atom"){const a=yi(e);a.debugLabel="baseAtom",a.debugLabel=`${n}-base`;const r=yi(i=>i(a),(i,l,o)=>{var h;const c=i(a);let d=typeof o=="function"?o(c):o;(h=i(FT))==null||h.forEach(f=>{const m=f(d,c);m&&m!==d&&m!==c&&(d=m)}),d&&(l(a,d),localStorage.setItem(t,JSON.stringify(d)))});return r.debugLabel="derivedAtom",r.debugLabel=`${n}-derived`,r}function cm(e,t){var a,r,i,l,o,c,d,h,f,m,g,b,E,S;const n=[];if(!t.applicantData&&e.applicantData&&n.push(e.applicantData),!((a=t.houseHoldMembersApplication)!=null&&a.partner)&&((r=e.houseHoldMembersApplication)!=null&&r.partner)&&n.push(e.houseHoldMembersApplication.partner),(((l=(i=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:i.kids)==null?void 0:l.length)||0)<(((c=(o=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:o.kids)==null?void 0:c.length)||0)){const I=(h=(d=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:d.kids)==null?void 0:h.filter(O=>{var v,w;return!((w=(v=t.houseHoldMembersApplication)==null?void 0:v.kids)!=null&&w.find(D=>D.id===O.id))}).filter(Boolean);n.push(...I)}if((((m=(f=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:f.householdMembers)==null?void 0:m.length)||0)<(((b=(g=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:g.householdMembers)==null?void 0:b.length)||0)){const I=(S=(E=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:E.householdMembers)==null?void 0:S.filter(O=>{var v,w;return!((w=(v=t.houseHoldMembersApplication)==null?void 0:v.householdMembers)!=null&&w.find(D=>D.id===O.id))}).filter(Boolean);n.push(...I)}return n}function Ch(e,t){var i,l,o,c,d,h,f,m,g,b,E,S,I,O;const n=[];t.applicantData&&!e.applicantData&&n.push(t.applicantData),(i=t.houseHoldMembersApplication)!=null&&i.partner&&!((l=e.houseHoldMembersApplication)!=null&&l.partner)&&n.push(t.houseHoldMembersApplication.partner);const a=((c=(o=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:o.kids)==null?void 0:c.length)||0,r=((h=(d=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:d.kids)==null?void 0:h.length)||0;if(a>r){const v=(m=(f=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:f.kids)==null?void 0:m.filter(w=>{var D,C;return!((C=(D=e.houseHoldMembersApplication)==null?void 0:D.kids)!=null&&C.find(M=>M.id===w.id))}).filter(Boolean);n.push(...v)}if((((b=(g=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:g.householdMembers)==null?void 0:b.length)||0)>(((S=(E=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:E.householdMembers)==null?void 0:S.length)||0)){const v=(O=(I=t==null?void 0:t.houseHoldMembersApplication)==null?void 0:I.householdMembers)==null?void 0:O.filter(w=>{var D,C;return!((C=(D=e.houseHoldMembersApplication)==null?void 0:D.householdMembers)!=null&&C.find(M=>M.id===w.id))}).filter(Boolean);n.push(...v)}return n}function um(e,t){var a,r,i,l,o,c,d;const n=[];if(e.applicantData&&!Pa(t.applicantData,e.applicantData)&&n.push(e.applicantData),(a=e.houseHoldMembersApplication)!=null&&a.partner&&!Pa((r=t.houseHoldMembersApplication)==null?void 0:r.partner,e.houseHoldMembersApplication.partner)&&n.push(e.houseHoldMembersApplication.partner),(l=(i=e.houseHoldMembersApplication)==null?void 0:i.kids)!=null&&l.length){const h=(o=e.houseHoldMembersApplication)==null?void 0:o.kids.filter(f=>{var g,b;const m=(b=(g=t.houseHoldMembersApplication)==null?void 0:g.kids)==null?void 0:b.find(E=>E.id===f.id);return m?m&&!Pa(m,f):!0});n.push(...h)}if((d=(c=e.houseHoldMembersApplication)==null?void 0:c.householdMembers)!=null&&d.length){const h=e.houseHoldMembersApplication.householdMembers.filter(f=>{var g,b;const m=(b=(g=t.houseHoldMembersApplication)==null?void 0:g.householdMembers)==null?void 0:b.find(E=>E.id===f.id);return m?m?!Pa(m,f):!1:!0});n.push(...h)}return n}function mM(e,t){const n={...t};return e.name!==n.name&&(n.name=e.name||""),n}function eSe(e,t){var a,r,i,l,o,c,d,h,f,m,g,b,E;const n=[];if((a=e.additionalCosts)!=null&&a.applicant&&!Pa((r=t.additionalCosts)==null?void 0:r.applicant,(i=e.additionalCosts)==null?void 0:i.applicant)&&n.push((l=e.additionalCosts)==null?void 0:l.applicant),(o=e.additionalCosts)!=null&&o.partner&&!Pa((c=t.additionalCosts)==null?void 0:c.partner,(d=e.additionalCosts)==null?void 0:d.partner)&&n.push((h=e.additionalCosts)==null?void 0:h.partner),(m=(f=e.additionalCosts)==null?void 0:f.kids)!=null&&m.length){const S=(g=e.additionalCosts)==null?void 0:g.kids.filter(I=>{var v,w;const O=(w=(v=t.additionalCosts)==null?void 0:v.kids)==null?void 0:w.find(D=>D.id===I.id);return O?O&&!Pa(O,I):!0});n.push(...S)}if((E=(b=e.additionalCosts)==null?void 0:b.otherMembers)!=null&&E.length){const S=e.additionalCosts.otherMembers.filter(I=>{var v,w;const O=(w=(v=t.additionalCosts)==null?void 0:v.otherMembers)==null?void 0:w.find(D=>D.id===I.id);return O?O?!Pa(O,I):!1:!0});n.push(...S)}return n}function tSe(e,t){var a,r,i,l,o,c,d,h,f,m,g,b;const n=[];if((a=e.incomeData)!=null&&a.applicantIncomeData&&!Pa((r=t.incomeData)==null?void 0:r.applicantIncomeData,(i=e.incomeData)==null?void 0:i.applicantIncomeData)&&n.push((l=e.incomeData)==null?void 0:l.applicantIncomeData),(o=e.incomeData)!=null&&o.partnerIncomeData&&!Pa((c=t.incomeData)==null?void 0:c.partnerIncomeData,(d=e.incomeData)==null?void 0:d.partnerIncomeData)&&n.push((h=e.incomeData)==null?void 0:h.partnerIncomeData),(m=(f=e.incomeData)==null?void 0:f.kidsIncomeData)!=null&&m.length){const E=e.incomeData.kidsIncomeData.filter(S=>{var O,v;const I=(v=(O=t.incomeData)==null?void 0:O.kidsIncomeData)==null?void 0:v.find(w=>w.memberId===S.memberId);return I?I&&!Pa(I,S):!0});n.push(...E)}if((b=(g=e.incomeData)==null?void 0:g.otherMembersIncomeData)!=null&&b.length){const E=e.incomeData.otherMembersIncomeData.filter(S=>{var O,v;const I=(v=(O=t.incomeData)==null?void 0:O.otherMembersIncomeData)==null?void 0:v.find(w=>w.memberId===S.memberId);return I?I?!Pa(I,S):!1:!0});n.push(...E)}return n}function QU(e){var r,i,l,o,c;const t=[],n=e.applicantData;n&&t.push(n),(i=(r=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:r.householdMembers)==null||i.forEach(d=>{t.push(d)}),(o=(l=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:l.kids)==null||o.forEach(d=>{t.push(d)});const a=(c=e==null?void 0:e.houseHoldMembersApplication)==null?void 0:c.partner;return a&&t.push(a),t}function nSe(e){var r,i,l,o,c,d;const t=[],n=(r=e.incomeData)==null?void 0:r.applicantIncomeData;n&&t.push(n),(l=(i=e.incomeData)==null?void 0:i.kidsIncomeData)==null||l.forEach(h=>{t.push(h)});const a=(o=e.incomeData)==null?void 0:o.partnerIncomeData;return a&&t.push(a),(d=(c=e.incomeData)==null?void 0:c.otherMembersIncomeData)==null||d.forEach(h=>{t.push(h)}),t}function gM(e,t){return e.find(n=>n&&n.id===t)!==void 0}function bM(e,t){return e.find(n=>n.id===t)!==void 0}function EM(e,t){return e.find(n=>n.id===t)!==void 0}const aSe=()=>{const e=window.location.hostname;return e==="localhost"||e==="127.0.0.1"?"LOCAL":e.includes("dev")?"PRODUCTION":e.includes("test")?"TESTING":e.includes("staging")?"STAGING":"PRODUCTION"};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const rSe={LOCAL:{bg:"#3B82F6",color:"#FFFFFF",label:"LOCAL DEV",icon:"💻",desc:"You are safe to break things here."},DEVELOPMENT:{bg:"#8B5CF6",color:"#FFFFFF",label:"DEV INSTANCE",icon:"🛠️ ",desc:"Shared development build - experimental."},TESTING:{bg:"#F59E0B",color:"#000000",label:"QA / TEST SYSTEM",icon:"🧪",desc:"SO12-TEST: Internal validation only."},STAGING:{bg:"#10B981",color:"#FFFFFF",label:"STAGING (PRE-PROD)",icon:"🚀",desc:"Final check before Production release."},PRODUCTION:{bg:"transparent",color:"transparent",icon:"",label:"",desc:""}},iSe=()=>{const e=aSe(),t=rSe[e];return e==="PRODUCTION"?null:s.jsx("div",{style:{position:"fixed",top:"8px",left:"50%",transform:"translateX(-50%)",zIndex:99999,pointerEvents:"none"},children:s.jsxs("div",{style:{backgroundColor:t.bg,color:t.color,padding:"5px 30px",borderRadius:"20px",fontSize:"10px",fontWeight:"bold",textTransform:"uppercase",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",border:"1px solid rgba(255, 255, 255, 0.2)",display:"flex",alignItems:"center",gap:"6px",pointerEvents:"auto",whiteSpace:"nowrap"},children:[s.jsxs("span",{style:{fontSize:"16px"},children:[t.icon,"  "]}),t.label,": ",t.desc]})})};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function sSe({error:e,button:t=s.jsx("button",{className:"min-h-[38px] min-w-[80px] rounded-[5px] bg-primaryGray px-3 py-1.5 text-[16px] font-[500] text-white",onClick:()=>{window.location.reload()},children:"Reload"})}){return s.jsx("div",{className:"flex h-full flex-1 flex-col items-center justify-center",children:s.jsx("div",{className:"flex w-full justify-center",children:s.jsxs("div",{role:"alert",className:"relative flex h-full max-w-[600px] flex-1 flex-col items-center justify-center gap-4",children:[s.jsx("div",{className:"font-semibold text-blue-700",children:"Something went wrong"}),(e==null?void 0:e.message)&&s.jsx("span",{className:"flex w-full flex-wrap justify-center text-center",children:e==null?void 0:e.message}),t]})})})}function lSe({error:e,resetErrorBoundary:t}){return s.jsx(sSe,{error:e,resetErrorBoundary:t})}function PS(){const e=BP();return s.jsx("div",{className:"flex h-full flex-1 flex-col items-center justify-center",children:s.jsx("div",{className:"flex w-full justify-center",children:s.jsxs("div",{role:"alert",className:"relative flex h-full max-w-[600px] flex-1 flex-col items-center justify-center gap-4",children:[s.jsx("div",{className:"font-semibold text-blue-700",children:"Something went wrong"}),(e==null?void 0:e.message)&&s.jsx("span",{className:"flex w-full flex-wrap justify-center text-center",children:e==null?void 0:e.message}),s.jsx("button",{className:"min-h-[38px] min-w-[80px] rounded-[5px] bg-primaryGray px-3 py-1.5 text-[16px] font-[500] text-white",onClick:()=>{window.location.reload()},children:"Reload"})]})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function oSe(){const[e,t]=DU(),[n,a]=T.useState(!1),r=()=>{a(!0),setTimeout(()=>{t(null),a(!1)},200)};return s.jsx(mN,{open:!!e,onClose:r,className:"w-full justify-end pr-2 backdrop-blur-none",classNames:{children:ge("max-h-[75%] w-full max-w-[500px] ",{"slide-out-modal":n,"slide-in-modal":!n})},children:s.jsxs("div",{className:"relative flex w-full flex-1 flex-col gap-6 overflow-hidden rounded-[10px] border-2 border-black bg-white p-6 font-chakra text-lg font-medium leading-6",children:[s.jsx("svg",{width:"15",height:"28",viewBox:"0 0 25 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:r,className:"absolute right-4 top-4 cursor-pointer",children:s.jsx("path",{d:"M2.5 28L0 25.2L10 14L0 2.8L2.5 0L12.5 11.2L22.5 0L25 2.8L15 14L25 25.2L22.5 28L12.5 16.8L2.5 28Z",fill:"#1C1B1F"})}),s.jsx("div",{className:"flex w-full pt-4 text-xl font-bold leading-8",children:e==null?void 0:e.title}),s.jsx("div",{className:"flex flex-1 flex-col overflow-y-auto",children:e==null?void 0:e.content}),s.jsx("div",{children:s.jsx("button",{onClick:r,className:"rounded-[10px] bg-black px-5 py-[10px] text-[17px] font-semibold leading-[15px] text-white",style:{background:`linear-gradient(135deg, rgba(100, 100, 100, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%), linear-gradient(101.7deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.2) 21.5%, rgba(255, 255, 255, 0.28) 21.51%, rgba(255, 255, 255, 0) 45.14%)`},children:"OK"})})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function cSe({store:e}){return null}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function uSe(){return s.jsx("div",{className:"bg flex size-full flex-1 flex-col items-center justify-center bg-primaryYellow",children:s.jsx(Di,{children:s.jsx(W0,{})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function dSe(){const[e]=wh();return s.jsx("div",{className:ge("flex w-full flex-1 flex-col items-center",{"bg-primaryYellow":!e.user}),children:s.jsx(Di,{children:s.jsx(W0,{})})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function hSe(){var h;const[e]=wh(),t=((h=e==null?void 0:e.user)==null?void 0:h.credits)??0,n=Yn(),[a,r]=eh(YT),[i,l]=T.useState(!1),o=t<=0,c=t>0&&t<=5;T.useEffect(()=>{r(!1)},[r]),T.useEffect(()=>{(o||c)&&!a&&l(!0)},[t,a,o,c]);const d=()=>{l(!1),r(!0)};return i?s.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:s.jsxs("div",{className:`relative w-full max-w-md rounded-lg border-t-8 bg-white p-8 shadow-2xl ${o?"border-red-600":"border-yellow-500"}`,children:[s.jsx("div",{className:"mb-4 text-4xl",children:o?"🛑":"⚠️"}),s.jsx("h2",{className:"mb-2 text-2xl font-bold text-black",children:o?"Token aufgebraucht":"Wenig Token verfügbar"}),s.jsx("div",{className:"mb-6 text-gray-600",children:o?s.jsxs("p",{children:["Sie haben ",s.jsxs("strong",{children:[t," Token"]}),". Die volle Funktionalität (Download & Ausfüllen) steht nicht mehr zur Verfügung.",s.jsx("br",{}),s.jsx("br",{}),"Bitte laden Sie Ihr Konto auf, um fortzufahren."]}):s.jsxs("p",{children:["Hinweis: Sie haben nur noch ",s.jsxs("strong",{children:[t," Token"]})," übrig. Denken Sie rechtzeitig an eine Aufladung, um Unterbrechungen zu vermeiden."]})}),s.jsxs("div",{className:"mb-8 rounded border border-gray-100 bg-gray-50 p-4",children:[s.jsx("p",{className:"text-xs font-bold uppercase tracking-wider text-gray-500",children:"Ihr Ansprechpartner"}),s.jsx("p",{className:"font-bold text-black",children:"SO12 Vertrieb"}),s.jsx("a",{href:"mailto:vertrieb@so12.de",className:"text-blue-600 hover:underline",children:"vertrieb@so12.de"})]}),s.jsxs("div",{className:"flex justify-end gap-3",children:[s.jsx("button",{onClick:d,className:"rounded px-4 py-2 text-sm font-medium text-gray-600 hover:bg-gray-100",children:"Schließen"}),o&&s.jsx(Je,{text:"Zum Hauptmenü",className:"bg-black text-white",onClick:()=>{d(),n(qe.HOME)}})]})]})}):null}const XU="/assets/logo_black_nostar-DpFK4WDm.png";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function fSe({className:e,innerRef:t}){const n=du(),{setState:a}=wt(),[,r]=wh(),[i,l]=T.useState(!1),o=()=>{l(!0)},c=()=>{r({}),a(WU),l(!1)},d=()=>{l(!1)};return s.jsxs("div",{ref:t,className:Ae("flex flex-row items-center justify-center gap-8",e),children:[s.jsx(OO,{className:tn(Ae("font-medium transition-colors hover:text-gray-600",{"font-bold text-blue-600":n.pathname===qe.DASHBOARD||n.pathname===qe.HOME})),to:qe.DASHBOARD,children:"Hauptmenü"}),s.jsx(OO,{className:tn(Ae("font-medium transition-colors hover:text-gray-600",{"font-bold text-blue-600":n.pathname===qe.ABOUT})),to:qe.ABOUT,children:"Hilfe"}),s.jsx(Je,{className:"bg-black text-white hover:border-black hover:bg-white hover:text-black hover:outline",onClick:o,children:"Ausloggen"}),s.jsx(Es,{open:i,onConfirm:c,onCancel:d,onClose:d})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function pSe({className:e,innerRef:t}){const[n]=wh(),a=n==null?void 0:n.user,r=(a==null?void 0:a.credits)??0,[i,l]=eh(YT),o=r<=0,c=r>0&&r<=5,d=(o||c)&&i,h=()=>r<=5?"text-red-600 bg-red-50 border-red-200":r<=20?"text-yellow-600 bg-yellow-50 border-yellow-200":"text-green-600 bg-green-50 border-green-200",f=()=>{l(!1)};return s.jsx("div",{ref:t,className:Ae("flex w-full flex-row items-center justify-between px-9 pt-2 transition-all",e),children:s.jsxs("div",{className:"flex w-full flex-col items-center justify-between gap-8 border-b border-black pb-6 sm:flex-row sm:gap-0",children:[s.jsx("div",{className:"ml-2 flex w-[218px] shrink-0 justify-center",children:s.jsx("img",{src:XU,className:"max-h-[87px] max-w-[234px]",alt:"Logo"})}),s.jsxs("div",{className:"flex items-center gap-6",children:[a&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:Ae("flex items-center gap-2 rounded-full border px-4 py-1.5 text-sm font-bold shadow-sm transition-all",h()),children:[s.jsx("span",{className:"text-[10px] uppercase tracking-wider opacity-60",children:"Verfügbar:"}),s.jsxs("span",{children:[r.toLocaleString()," Vorgänge"]})]}),d&&s.jsxs("div",{onClick:f,className:Ae("group relative flex size-8 animate-pulse cursor-pointer items-center justify-center rounded-full font-bold text-white shadow-sm transition-transform hover:scale-110",{"bg-red-600":o,"bg-yellow-500":c}),children:["!",s.jsx("div",{className:"absolute right-0 top-full z-50 mt-2 hidden w-48 group-hover:block",children:s.jsxs("div",{className:Ae("rounded px-3 py-2 text-center text-xs font-medium text-white shadow-lg",o?"bg-red-600":"bg-yellow-600"),children:[o?"Limit erreicht. Klicken für Infos.":"Wenig Token. Klicken für Infos.",s.jsx("div",{className:Ae("absolute -top-1 right-3 size-2 rotate-45",o?"bg-red-600":"bg-yellow-600")})]})})]})]}),s.jsx(fSe,{})]})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function mSe(){return s.jsxs("div",{className:"flex size-full flex-1 flex-col",children:[s.jsx(hSe,{}),s.jsx(pSe,{}),s.jsx(Di,{children:s.jsx(W0,{})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function gSe({className:e,classNames:t,...n}){return s.jsx(Je,{type:"submit",className:ge("group w-full bg-black hover:bg-primaryYellow hover:outline",e),classNames:{children:"text-white group-hover:text-black",...t||{}},...n})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};var zT=(e=>(e.EMAIL="email",e))(zT||{});class bSe{constructor(){y(this,"email","")}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ESe(e){return dn.post(rt.RESET_REQUEST_PASSWORD,e)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const GT=globalThis.jotaiAtomCache.get("/app/src/modules/ForgotPassword/form/ForgotPassword.hooks.tsx/forgotPasswordSuccessAtom",yi(!1));GT.debugLabel="forgotPasswordSuccessAtom";function NSe({...e}){return za({mutationFn:ESe,...e})}function xSe(){return T.useMemo(()=>new bSe,[])}function SSe(){const{mutateAsync:e}=NSe({}),t=fv(GT);return T.useCallback(async(n,a)=>{var r;try{a.setSubmitting(!0);const i=await e(n);(i.status===200||i.status===201)&&(a.setSubmitting(!1),t(!0))}catch(i){(r=i==null?void 0:i.response)!=null&&r.data&&a.setErrors(i.response.data),a.setSubmitting(!1)}},[e,t])}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function ISe(e){const t=tt(),n=Yn(),[a,r]=eh(GT),i=T.useCallback(()=>{r(!1),n(qe.SIGN_IN)},[n,r]);return s.jsxs(s.Fragment,{children:[s.jsxs(Mi,{className:ge("flex flex-col gap-6",e.className),children:[s.jsx(j,{name:zT.EMAIL,label:"E-Mail",placeholder:"E-Mail",type:"text",required:!0}),s.jsx("div",{className:"flex w-full justify-end",children:s.jsx(c_,{link:qe.SIGN_IN,className:"font-normal text-black visited:text-black",children:"Zurück zur Anmeldung!"})}),s.jsx(gSe,{loading:t.isSubmitting,children:"abschicken"})]}),s.jsx(mN,{open:a,onClose:i,closeOnOutsideClick:!1,className:"backdrop-blur-sm z-[100]",children:s.jsxs("div",{className:"flex w-[90vw] max-w-[400px] flex-col items-center rounded-2xl bg-white p-6 text-center shadow-2xl md:p-8 border border-gray-100",children:[s.jsx("div",{className:"mb-4 flex size-16 items-center justify-center rounded-full bg-green-50 text-3xl",children:"📨"}),s.jsx("h3",{className:"mb-3 text-xl font-bold text-black",children:"E-Mail versendet!"}),s.jsxs("p",{className:"mb-8 text-sm leading-relaxed text-gray-600",children:["Wir haben Ihnen einen Link zum Zurücksetzen Ihres Passworts gesendet.",s.jsx("br",{}),"Bitte prüfen Sie Ihren Posteingang."]}),s.jsx("button",{onClick:i,className:"w-full rounded-lg bg-black py-3 text-sm font-bold text-white transition hover:bg-gray-800 shadow-md active:scale-95",children:"Zurück zur Anmeldung"})]})})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function OSe(){return bn().shape({[zT.EMAIL]:le().email().required("E-Mail Adresse wird benötigt")})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function vSe(e){const t=xSe();return s.jsx(fs,{enableReinitialize:!0,initialValues:t,validationSchema:OSe(),onSubmit:SSe(),children:s.jsx(ISe,{...e})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function TSe({className:e}){return s.jsx("div",{className:ge("flex min-h-screen w-full items-center justify-center bg-gray-50 p-4",e),children:s.jsxs("div",{className:"w-full max-w-[450px] rounded-2xl border border-gray-100 bg-white p-8 shadow-xl md:p-10",children:[s.jsx("div",{className:"mb-6 flex justify-center",children:s.jsx("img",{src:XU,alt:"SO12 Logo",className:"h-12 w-auto object-contain opacity-90"})}),s.jsxs("div",{className:"mb-8 text-center",children:[s.jsx("h1",{className:"mb-2 text-2xl font-bold text-black",children:"Passwort vergessen?"}),s.jsx("p",{className:"text-sm text-gray-500",children:"Kein Problem. Geben Sie Ihre E-Mail-Adresse ein, um Ihr Passwort zurückzusetzen."})]}),s.jsx(vSe,{}),s.jsx("div",{className:"mt-8 text-center",children:s.jsxs("p",{className:"text-xs text-gray-400",children:["© ",new Date().getFullYear()," BonusBot GmbH"]})})]})})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};/** * table-core * * Copyright (c) TanStack * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function dm(){return{accessor:(e,t)=>typeof e=="function"?{...t,accessorFn:e}:{...t,accessorKey:e},display:e=>e,group:e=>e}}function eo(e,t){return typeof e=="function"?e(t):e}function Ur(e,t){return n=>{t.setState(a=>({...a,[e]:eo(n,a[e])}))}}function PN(e){return e instanceof Function}function ASe(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function ySe(e,t){const n=[],a=r=>{r.forEach(i=>{n.push(i);const l=t(i);l!=null&&l.length&&a(l)})};return a(e),n}function ot(e,t,n){let a=[],r;return i=>{let l;n.key&&n.debug&&(l=Date.now());const o=e(i);if(!(o.length!==a.length||o.some((h,f)=>a[f]!==h)))return r;a=o;let d;if(n.key&&n.debug&&(d=Date.now()),r=t(...o),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const h=Math.round((Date.now()-l)*100)/100,f=Math.round((Date.now()-d)*100)/100,m=f/16,g=(b,E)=>{for(b=String(b);b.length{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:!1,onChange:a}}function wSe(e,t,n,a){const r=()=>{var l;return(l=i.getValue())!=null?l:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(a),renderValue:r,getContext:ot(()=>[e,n,t,i],(l,o,c,d)=>({table:l,column:o,row:c,cell:d,getValue:d.getValue,renderValue:d.renderValue}),ct(e.options,"debugCells"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(i,n,t,e)},{}),i}function CSe(e,t,n,a){var r,i;const o={...e._getDefaultColumnDef(),...t},c=o.accessorKey;let d=(r=(i=o.id)!=null?i:c?c.replace(".","_"):void 0)!=null?r:typeof o.header=="string"?o.header:void 0,h;if(o.accessorFn?h=o.accessorFn:c&&(c.includes(".")?h=m=>{let g=m;for(const E of c.split(".")){var b;g=(b=g)==null?void 0:b[E]}return g}:h=m=>m[o.accessorKey]),!d)throw new Error;let f={id:`${String(d)}`,accessorFn:h,parent:a,depth:n,columnDef:o,columns:[],getFlatColumns:ot(()=>[!0],()=>{var m;return[f,...(m=f.columns)==null?void 0:m.flatMap(g=>g.getFlatColumns())]},ct(e.options,"debugColumns")),getLeafColumns:ot(()=>[e._getOrderColumnsFn()],m=>{var g;if((g=f.columns)!=null&&g.length){let b=f.columns.flatMap(E=>E.getLeafColumns());return m(b)}return[f]},ct(e.options,"debugColumns"))};for(const m of e._features)m.createColumn==null||m.createColumn(f,e);return f}const La="debugHeaders";function NM(e,t,n){var a;let i={id:(a=n.id)!=null?a:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],o=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(o),l.push(c)};return o(i),l},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(i,e)}),i}const RSe={createTable:e=>{e.getHeaderGroups=ot(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>{var i,l;const o=(i=a==null?void 0:a.map(f=>n.find(m=>m.id===f)).filter(Boolean))!=null?i:[],c=(l=r==null?void 0:r.map(f=>n.find(m=>m.id===f)).filter(Boolean))!=null?l:[],d=n.filter(f=>!(a!=null&&a.includes(f.id))&&!(r!=null&&r.includes(f.id)));return dg(t,[...o,...d,...c],e)},ct(e.options,La)),e.getCenterHeaderGroups=ot(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a,r)=>(n=n.filter(i=>!(a!=null&&a.includes(i.id))&&!(r!=null&&r.includes(i.id))),dg(t,n,e,"center")),ct(e.options,La)),e.getLeftHeaderGroups=ot(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,a)=>{var r;const i=(r=a==null?void 0:a.map(l=>n.find(o=>o.id===l)).filter(Boolean))!=null?r:[];return dg(t,i,e,"left")},ct(e.options,La)),e.getRightHeaderGroups=ot(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,a)=>{var r;const i=(r=a==null?void 0:a.map(l=>n.find(o=>o.id===l)).filter(Boolean))!=null?r:[];return dg(t,i,e,"right")},ct(e.options,La)),e.getFooterGroups=ot(()=>[e.getHeaderGroups()],t=>[...t].reverse(),ct(e.options,La)),e.getLeftFooterGroups=ot(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),ct(e.options,La)),e.getCenterFooterGroups=ot(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),ct(e.options,La)),e.getRightFooterGroups=ot(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),ct(e.options,La)),e.getFlatHeaders=ot(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),ct(e.options,La)),e.getLeftFlatHeaders=ot(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),ct(e.options,La)),e.getCenterFlatHeaders=ot(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),ct(e.options,La)),e.getRightFlatHeaders=ot(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),ct(e.options,La)),e.getCenterLeafHeaders=ot(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var a;return!((a=n.subHeaders)!=null&&a.length)}),ct(e.options,La)),e.getLeftLeafHeaders=ot(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var a;return!((a=n.subHeaders)!=null&&a.length)}),ct(e.options,La)),e.getRightLeafHeaders=ot(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var a;return!((a=n.subHeaders)!=null&&a.length)}),ct(e.options,La)),e.getLeafHeaders=ot(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,a)=>{var r,i,l,o,c,d;return[...(r=(i=t[0])==null?void 0:i.headers)!=null?r:[],...(l=(o=n[0])==null?void 0:o.headers)!=null?l:[],...(c=(d=a[0])==null?void 0:d.headers)!=null?c:[]].map(h=>h.getLeafHeaders()).flat()},ct(e.options,La))}};function dg(e,t,n,a){var r,i;let l=0;const o=function(m,g){g===void 0&&(g=1),l=Math.max(l,g),m.filter(b=>b.getIsVisible()).forEach(b=>{var E;(E=b.columns)!=null&&E.length&&o(b.columns,g+1)},0)};o(e);let c=[];const d=(m,g)=>{const b={depth:g,id:[a,`${g}`].filter(Boolean).join("_"),headers:[]},E=[];m.forEach(S=>{const I=[...E].reverse()[0],O=S.column.depth===b.depth;let v,w=!1;if(O&&S.column.parent?v=S.column.parent:(v=S.column,w=!0),I&&(I==null?void 0:I.column)===v)I.subHeaders.push(S);else{const D=NM(n,v,{id:[a,g,v.id,S==null?void 0:S.id].filter(Boolean).join("_"),isPlaceholder:w,placeholderId:w?`${E.filter(C=>C.column===v).length}`:void 0,depth:g,index:E.length});D.subHeaders.push(S),E.push(D)}b.headers.push(S),S.headerGroup=b}),c.push(b),g>0&&d(E,g-1)},h=t.map((m,g)=>NM(n,m,{depth:l,index:g}));d(h,l-1),c.reverse();const f=m=>m.filter(b=>b.column.getIsVisible()).map(b=>{let E=0,S=0,I=[0];b.subHeaders&&b.subHeaders.length?(I=[],f(b.subHeaders).forEach(v=>{let{colSpan:w,rowSpan:D}=v;E+=w,I.push(D)})):E=1;const O=Math.min(...I);return S=S+O,b.colSpan=E,b.rowSpan=S,{colSpan:E,rowSpan:S}});return f((r=(i=c[0])==null?void 0:i.headers)!=null?r:[]),c}const MSe=(e,t,n,a,r,i,l)=>{let o={id:t,index:a,original:n,depth:r,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(o._valuesCache.hasOwnProperty(c))return o._valuesCache[c];const d=e.getColumn(c);if(d!=null&&d.accessorFn)return o._valuesCache[c]=d.accessorFn(o.original,a),o._valuesCache[c]},getUniqueValues:c=>{if(o._uniqueValuesCache.hasOwnProperty(c))return o._uniqueValuesCache[c];const d=e.getColumn(c);if(d!=null&&d.accessorFn)return d.columnDef.getUniqueValues?(o._uniqueValuesCache[c]=d.columnDef.getUniqueValues(o.original,a),o._uniqueValuesCache[c]):(o._uniqueValuesCache[c]=[o.getValue(c)],o._uniqueValuesCache[c])},renderValue:c=>{var d;return(d=o.getValue(c))!=null?d:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>ySe(o.subRows,c=>c.subRows),getParentRow:()=>o.parentId?e.getRow(o.parentId,!0):void 0,getParentRows:()=>{let c=[],d=o;for(;;){const h=d.getParentRow();if(!h)break;c.push(h),d=h}return c.reverse()},getAllCells:ot(()=>[e.getAllLeafColumns()],c=>c.map(d=>wSe(e,o,d,d.id)),ct(e.options,"debugRows")),_getAllCellsByColumnId:ot(()=>[o.getAllCells()],c=>c.reduce((d,h)=>(d[h.column.id]=h,d),{}),ct(e.options,"debugRows"))};for(let c=0;c{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},_U=(e,t,n)=>{var a;const r=n.toLowerCase();return!!(!((a=e.getValue(t))==null||(a=a.toString())==null||(a=a.toLowerCase())==null)&&a.includes(r))};_U.autoRemove=e=>Ai(e);const $U=(e,t,n)=>{var a;return!!(!((a=e.getValue(t))==null||(a=a.toString())==null)&&a.includes(n))};$U.autoRemove=e=>Ai(e);const ek=(e,t,n)=>{var a;return((a=e.getValue(t))==null||(a=a.toString())==null?void 0:a.toLowerCase())===(n==null?void 0:n.toLowerCase())};ek.autoRemove=e=>Ai(e);const tk=(e,t,n)=>{var a;return(a=e.getValue(t))==null?void 0:a.includes(n)};tk.autoRemove=e=>Ai(e)||!(e!=null&&e.length);const nk=(e,t,n)=>!n.some(a=>{var r;return!((r=e.getValue(t))!=null&&r.includes(a))});nk.autoRemove=e=>Ai(e)||!(e!=null&&e.length);const ak=(e,t,n)=>n.some(a=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(a)});ak.autoRemove=e=>Ai(e)||!(e!=null&&e.length);const rk=(e,t,n)=>e.getValue(t)===n;rk.autoRemove=e=>Ai(e);const ik=(e,t,n)=>e.getValue(t)==n;ik.autoRemove=e=>Ai(e);const WT=(e,t,n)=>{let[a,r]=n;const i=e.getValue(t);return i>=a&&i<=r};WT.resolveFilterValue=e=>{let[t,n]=e,a=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(a)?-1/0:a,l=n===null||Number.isNaN(r)?1/0:r;if(i>l){const o=i;i=l,l=o}return[i,l]};WT.autoRemove=e=>Ai(e)||Ai(e[0])&&Ai(e[1]);const Ps={includesString:_U,includesStringSensitive:$U,equalsString:ek,arrIncludes:tk,arrIncludesAll:nk,arrIncludesSome:ak,equals:rk,weakEquals:ik,inNumberRange:WT};function Ai(e){return e==null||e===""}const jSe={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Ur("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=n==null?void 0:n.getValue(e.id);return typeof a=="string"?Ps.includesString:typeof a=="number"?Ps.inNumberRange:typeof a=="boolean"||a!==null&&typeof a=="object"?Ps.equals:Array.isArray(a)?Ps.arrIncludes:Ps.weakEquals},e.getFilterFn=()=>{var n,a;return PN(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(a=t.options.filterFns)==null?void 0:a[e.columnDef.filterFn])!=null?n:Ps[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,a,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((a=t.options.enableColumnFilters)!=null?a:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(a=>a.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,a;return(n=(a=t.getState().columnFilters)==null?void 0:a.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(a=>{const r=e.getFilterFn(),i=a==null?void 0:a.find(h=>h.id===e.id),l=eo(n,i?i.value:void 0);if(xM(r,l,e)){var o;return(o=a==null?void 0:a.filter(h=>h.id!==e.id))!=null?o:[]}const c={id:e.id,value:l};if(i){var d;return(d=a==null?void 0:a.map(h=>h.id===e.id?c:h))!=null?d:[]}return a!=null&&a.length?[...a,c]:[c]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),a=r=>{var i;return(i=eo(t,r))==null?void 0:i.filter(l=>{const o=n.find(c=>c.id===l.id);if(o){const c=o.getFilterFn();if(xM(c,l.value,o))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(a)},e.resetColumnFilters=t=>{var n,a;e.setColumnFilters(t?[]:(n=(a=e.initialState)==null?void 0:a.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function xM(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const BSe=(e,t,n)=>n.reduce((a,r)=>{const i=r.getValue(e);return a+(typeof i=="number"?i:0)},0),PSe=(e,t,n)=>{let a;return n.forEach(r=>{const i=r.getValue(e);i!=null&&(a>i||a===void 0&&i>=i)&&(a=i)}),a},HSe=(e,t,n)=>{let a;return n.forEach(r=>{const i=r.getValue(e);i!=null&&(a=i)&&(a=i)}),a},LSe=(e,t,n)=>{let a,r;return n.forEach(i=>{const l=i.getValue(e);l!=null&&(a===void 0?l>=l&&(a=r=l):(a>l&&(a=l),r{let n=0,a=0;if(t.forEach(r=>{let i=r.getValue(e);i!=null&&(i=+i)>=i&&(++n,a+=i)}),n)return a/n},kSe=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!ASe(n))return;if(n.length===1)return n[0];const a=Math.floor(n.length/2),r=n.sort((i,l)=>i-l);return n.length%2!==0?r[a]:(r[a-1]+r[a])/2},FSe=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),YSe=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,zSe=(e,t)=>t.length,HS={sum:BSe,min:PSe,max:HSe,extent:LSe,mean:USe,median:kSe,unique:FSe,uniqueCount:YSe,count:zSe},GSe={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Ur("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(a=>a!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,a;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((a=t.options.enableGrouping)!=null?a:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],a=n==null?void 0:n.getValue(e.id);if(typeof a=="number")return HS.sum;if(Object.prototype.toString.call(a)==="[object Date]")return HS.extent},e.getAggregationFn=()=>{var n,a;if(!e)throw new Error;return PN(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(a=t.options.aggregationFns)==null?void 0:a[e.columnDef.aggregationFn])!=null?n:HS[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,a;e.setGrouping(t?[]:(n=(a=e.initialState)==null?void 0:a.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const a=t.getColumn(n);return a!=null&&a.columnDef.getGroupingValue?(e._groupingValuesCache[n]=a.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,a)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function WSe(e,t,n){if(!(t!=null&&t.length)||!n)return e;const a=e.filter(i=>!t.includes(i.id));return n==="remove"?a:[...t.map(i=>e.find(l=>l.id===i)).filter(Boolean),...a]}const qSe={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Ur("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ot(n=>[Ff(t,n)],n=>n.findIndex(a=>a.id===e.id),ct(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var a;return((a=Ff(t,n)[0])==null?void 0:a.id)===e.id},e.getIsLastColumn=n=>{var a;const r=Ff(t,n);return((a=r[r.length-1])==null?void 0:a.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ot(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,a)=>r=>{let i=[];if(!(t!=null&&t.length))i=r;else{const l=[...t],o=[...r];for(;o.length&&l.length;){const c=l.shift(),d=o.findIndex(h=>h.id===c);d>-1&&i.push(o.splice(d,1)[0])}i=[...i,...o]}return WSe(i,n,a)},ct(e.options,"debugTable"))}},LS=()=>({left:[],right:[]}),VSe={getInitialState:e=>({columnPinning:LS(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Ur("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const a=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var i,l;if(n==="right"){var o,c;return{left:((o=r==null?void 0:r.left)!=null?o:[]).filter(f=>!(a!=null&&a.includes(f))),right:[...((c=r==null?void 0:r.right)!=null?c:[]).filter(f=>!(a!=null&&a.includes(f))),...a]}}if(n==="left"){var d,h;return{left:[...((d=r==null?void 0:r.left)!=null?d:[]).filter(f=>!(a!=null&&a.includes(f))),...a],right:((h=r==null?void 0:r.right)!=null?h:[]).filter(f=>!(a!=null&&a.includes(f)))}}return{left:((i=r==null?void 0:r.left)!=null?i:[]).filter(f=>!(a!=null&&a.includes(f))),right:((l=r==null?void 0:r.right)!=null?l:[]).filter(f=>!(a!=null&&a.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(a=>{var r,i,l;return((r=a.columnDef.enablePinning)!=null?r:!0)&&((i=(l=t.options.enableColumnPinning)!=null?l:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(o=>o.id),{left:a,right:r}=t.getState().columnPinning,i=n.some(o=>a==null?void 0:a.includes(o)),l=n.some(o=>r==null?void 0:r.includes(o));return i?"left":l?"right":!1},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();return r?(n=(a=t.getState().columnPinning)==null||(a=a[r])==null?void 0:a.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ot(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,a,r)=>{const i=[...a??[],...r??[]];return n.filter(l=>!i.includes(l.column.id))},ct(t.options,"debugRows")),e.getLeftVisibleCells=ot(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,a)=>(a??[]).map(i=>n.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),ct(t.options,"debugRows")),e.getRightVisibleCells=ot(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,a)=>(a??[]).map(i=>n.find(l=>l.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),ct(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,a;return e.setColumnPinning(t?LS():(n=(a=e.initialState)==null?void 0:a.columnPinning)!=null?n:LS())},e.getIsSomeColumnsPinned=t=>{var n;const a=e.getState().columnPinning;if(!t){var r,i;return!!((r=a.left)!=null&&r.length||(i=a.right)!=null&&i.length)}return!!((n=a[t])!=null&&n.length)},e.getLeftLeafColumns=ot(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(a=>t.find(r=>r.id===a)).filter(Boolean),ct(e.options,"debugColumns")),e.getRightLeafColumns=ot(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(a=>t.find(r=>r.id===a)).filter(Boolean),ct(e.options,"debugColumns")),e.getCenterLeafColumns=ot(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,a)=>{const r=[...n??[],...a??[]];return t.filter(i=>!r.includes(i.id))},ct(e.options,"debugColumns"))}},hg={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},US=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),KSe={getDefaultColumnDef:()=>hg,getInitialState:e=>({columnSizing:{},columnSizingInfo:US(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Ur("columnSizing",e),onColumnSizingInfoChange:Ur("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,a,r;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:hg.minSize,(a=i??e.columnDef.size)!=null?a:hg.size),(r=e.columnDef.maxSize)!=null?r:hg.maxSize)},e.getStart=ot(n=>[n,Ff(t,n),t.getState().columnSizing],(n,a)=>a.slice(0,e.getIndex(n)).reduce((r,i)=>r+i.getSize(),0),ct(t.options,"debugColumns")),e.getAfter=ot(n=>[n,Ff(t,n),t.getState().columnSizing],(n,a)=>a.slice(e.getIndex(n)+1).reduce((r,i)=>r+i.getSize(),0),ct(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:a,...r}=n;return r})},e.getCanResize=()=>{var n,a;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((a=t.options.enableColumnResizing)!=null?a:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const a=r=>{if(r.subHeaders.length)r.subHeaders.forEach(a);else{var i;n+=(i=r.column.getSize())!=null?i:0}};return a(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const a=t.getColumn(e.column.id),r=a==null?void 0:a.getCanResize();return i=>{if(!a||!r||(i.persist==null||i.persist(),kS(i)&&i.touches&&i.touches.length>1))return;const l=e.getSize(),o=e?e.getLeafHeaders().map(I=>[I.column.id,I.column.getSize()]):[[a.id,a.getSize()]],c=kS(i)?Math.round(i.touches[0].clientX):i.clientX,d={},h=(I,O)=>{typeof O=="number"&&(t.setColumnSizingInfo(v=>{var w,D;const C=t.options.columnResizeDirection==="rtl"?-1:1,M=(O-((w=v==null?void 0:v.startOffset)!=null?w:0))*C,B=Math.max(M/((D=v==null?void 0:v.startSize)!=null?D:0),-.999999);return v.columnSizingStart.forEach(L=>{let[H,U]=L;d[H]=Math.round(Math.max(U+U*B,0)*100)/100}),{...v,deltaOffset:M,deltaPercentage:B}}),(t.options.columnResizeMode==="onChange"||I==="end")&&t.setColumnSizing(v=>({...v,...d})))},f=I=>h("move",I),m=I=>{h("end",I),t.setColumnSizingInfo(O=>({...O,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=n||typeof document<"u"?document:null,b={moveHandler:I=>f(I.clientX),upHandler:I=>{g==null||g.removeEventListener("mousemove",b.moveHandler),g==null||g.removeEventListener("mouseup",b.upHandler),m(I.clientX)}},E={moveHandler:I=>(I.cancelable&&(I.preventDefault(),I.stopPropagation()),f(I.touches[0].clientX),!1),upHandler:I=>{var O;g==null||g.removeEventListener("touchmove",E.moveHandler),g==null||g.removeEventListener("touchend",E.upHandler),I.cancelable&&(I.preventDefault(),I.stopPropagation()),m((O=I.touches[0])==null?void 0:O.clientX)}},S=ZSe()?{passive:!1}:!1;kS(i)?(g==null||g.addEventListener("touchmove",E.moveHandler,S),g==null||g.addEventListener("touchend",E.upHandler,S)):(g==null||g.addEventListener("mousemove",b.moveHandler,S),g==null||g.addEventListener("mouseup",b.upHandler,S)),t.setColumnSizingInfo(I=>({...I,startOffset:c,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:a.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?US():(n=e.initialState.columnSizingInfo)!=null?n:US())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((a,r)=>a+r.getSize(),0))!=null?t:0}}};let fg=null;function ZSe(){if(typeof fg=="boolean")return fg;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return fg=e,fg}function kS(e){return e.type==="touchstart"}const JSe={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Ur("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(a=>({...a,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,a;const r=e.columns;return(n=r.length?r.some(i=>i.getIsVisible()):(a=t.getState().columnVisibility)==null?void 0:a[e.id])!=null?n:!0},e.getCanHide=()=>{var n,a;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((a=t.options.enableHiding)!=null?a:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ot(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(a=>a.column.getIsVisible()),ct(t.options,"debugRows")),e.getVisibleCells=ot(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,a,r)=>[...n,...a,...r],ct(t.options,"debugRows"))},createTable:e=>{const t=(n,a)=>ot(()=>[a(),a().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),ct(e.options,"debugColumns"));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var a;e.setColumnVisibility(n?{}:(a=e.initialState.columnVisibility)!=null?a:{})},e.toggleAllColumnsVisible=n=>{var a;n=(a=n)!=null?a:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,i)=>({...r,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var a;e.toggleAllColumnsVisible((a=n.target)==null?void 0:a.checked)}}};function Ff(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const QSe={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},XSe={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Ur("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const a=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof a=="string"||typeof a=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,a,r,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((a=t.options.enableGlobalFilter)!=null?a:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Ps.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:a}=e.options;return PN(a)?a:a==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[a])!=null?t:Ps[a]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},_Se={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Ur("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var a,r;if(!t){e._queue(()=>{t=!0});return}if((a=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?a:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=a=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(a),e.toggleAllRowsExpanded=a=>{a??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=a=>{var r,i;e.setExpanded(a?{}:(r=(i=e.initialState)==null?void 0:i.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(a=>a.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>a=>{a.persist==null||a.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const a=e.getState().expanded;return a===!0||Object.values(a).some(Boolean)},e.getIsAllRowsExpanded=()=>{const a=e.getState().expanded;return typeof a=="boolean"?a===!0:!(!Object.keys(a).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let a=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const l=i.split(".");a=Math.max(a,l.length)}),a},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(a=>{var r;const i=a===!0?!0:!!(a!=null&&a[e.id]);let l={};if(a===!0?Object.keys(t.getRowModel().rowsById).forEach(o=>{l[o]=!0}):l=a,n=(r=n)!=null?r:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:o,...c}=l;return c}return a})},e.getIsExpanded=()=>{var n;const a=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:a===!0||a!=null&&a[e.id])},e.getCanExpand=()=>{var n,a,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((a=t.options.enableExpanding)!=null?a:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,a=e;for(;n&&a.parentId;)a=t.getRow(a.parentId,!0),n=a.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},nv=0,av=10,FS=()=>({pageIndex:nv,pageSize:av}),$Se={getInitialState:e=>({...e,pagination:{...FS(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Ur("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var a,r;if(!t){e._queue(()=>{t=!0});return}if((a=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?a:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=a=>{const r=i=>eo(a,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=a=>{var r;e.setPagination(a?FS():(r=e.initialState.pagination)!=null?r:FS())},e.setPageIndex=a=>{e.setPagination(r=>{let i=eo(a,r.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,l)),{...r,pageIndex:i}})},e.resetPageIndex=a=>{var r,i;e.setPageIndex(a?nv:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?r:nv)},e.resetPageSize=a=>{var r,i;e.setPageSize(a?av:(r=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?r:av)},e.setPageSize=a=>{e.setPagination(r=>{const i=Math.max(1,eo(a,r.pageSize)),l=r.pageSize*r.pageIndex,o=Math.floor(l/i);return{...r,pageIndex:o,pageSize:i}})},e.setPageCount=a=>e.setPagination(r=>{var i;let l=eo(a,(i=e.options.pageCount)!=null?i:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...r,pageCount:l}}),e.getPageOptions=ot(()=>[e.getPageCount()],a=>{let r=[];return a&&a>0&&(r=[...new Array(a)].fill(null).map((i,l)=>l)),r},ct(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:a}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:ae.setPageIndex(a=>a-1),e.nextPage=()=>e.setPageIndex(a=>a+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var a;return(a=e.options.pageCount)!=null?a:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var a;return(a=e.options.rowCount)!=null?a:e.getPrePaginationRowModel().rows.length}}},YS=()=>({top:[],bottom:[]}),eIe={getInitialState:e=>({rowPinning:YS(),...e}),getDefaultOptions:e=>({onRowPinningChange:Ur("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,a,r)=>{const i=a?e.getLeafRows().map(c=>{let{id:d}=c;return d}):[],l=r?e.getParentRows().map(c=>{let{id:d}=c;return d}):[],o=new Set([...l,e.id,...i]);t.setRowPinning(c=>{var d,h;if(n==="bottom"){var f,m;return{top:((f=c==null?void 0:c.top)!=null?f:[]).filter(E=>!(o!=null&&o.has(E))),bottom:[...((m=c==null?void 0:c.bottom)!=null?m:[]).filter(E=>!(o!=null&&o.has(E))),...Array.from(o)]}}if(n==="top"){var g,b;return{top:[...((g=c==null?void 0:c.top)!=null?g:[]).filter(E=>!(o!=null&&o.has(E))),...Array.from(o)],bottom:((b=c==null?void 0:c.bottom)!=null?b:[]).filter(E=>!(o!=null&&o.has(E)))}}return{top:((d=c==null?void 0:c.top)!=null?d:[]).filter(E=>!(o!=null&&o.has(E))),bottom:((h=c==null?void 0:c.bottom)!=null?h:[]).filter(E=>!(o!=null&&o.has(E)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:a,enablePinning:r}=t.options;return typeof a=="function"?a(e):(n=a??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:a,bottom:r}=t.getState().rowPinning,i=n.some(o=>a==null?void 0:a.includes(o)),l=n.some(o=>r==null?void 0:r.includes(o));return i?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var n,a;const r=e.getIsPinned();if(!r)return-1;const i=(n=t._getPinnedRows(r))==null?void 0:n.map(l=>{let{id:o}=l;return o});return(a=i==null?void 0:i.indexOf(e.id))!=null?a:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,a;return e.setRowPinning(t?YS():(n=(a=e.initialState)==null?void 0:a.rowPinning)!=null?n:YS())},e.getIsSomeRowsPinned=t=>{var n;const a=e.getState().rowPinning;if(!t){var r,i;return!!((r=a.top)!=null&&r.length||(i=a.bottom)!=null&&i.length)}return!!((n=a[t])!=null&&n.length)},e._getPinnedRows=ot(t=>[e.getRowModel().rows,e.getState().rowPinning[t],t],(t,n,a)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(l=>{const o=e.getRow(l,!0);return o.getIsAllParentsExpanded()?o:null}):(n??[]).map(l=>t.find(o=>o.id===l))).filter(Boolean).map(l=>({...l,position:a}))},ct(e.options,"debugRows")),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=ot(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,a)=>{const r=new Set([...n??[],...a??[]]);return t.filter(i=>!r.has(i.id))},ct(e.options,"debugRows"))}},tIe={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Ur("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const a={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(i=>{i.getCanSelect()&&(a[i.id]=!0)}):r.forEach(i=>{delete a[i.id]}),a})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const a=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(i=>{rv(r,i.id,a,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ot(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?zS(e,n):{rows:[],flatRows:[],rowsById:{}},ct(e.options,"debugTable")),e.getFilteredSelectedRowModel=ot(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?zS(e,n):{rows:[],flatRows:[],rowsById:{}},ct(e.options,"debugTable")),e.getGroupedSelectedRowModel=ot(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?zS(e,n):{rows:[],flatRows:[],rowsById:{}},ct(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let a=!!(t.length&&Object.keys(n).length);return a&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(a=!1),a},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let a=!!t.length;return a&&t.some(r=>!n[r.id])&&(a=!1),a},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,a)=>{const r=e.getIsSelected();t.setRowSelection(i=>{var l;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return i;const o={...i};return rv(o,e.id,n,(l=a==null?void 0:a.selectChildren)!=null?l:!0,t),o})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return qT(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return iv(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return iv(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return a=>{var r;n&&e.toggleSelected((r=a.target)==null?void 0:r.checked)}}}},rv=(e,t,n,a,r)=>{var i;const l=r.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(o=>delete e[o]),l.getCanSelect()&&(e[t]=!0)):delete e[t],a&&(i=l.subRows)!=null&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(o=>rv(e,o.id,n,a,r))};function zS(e,t){const n=e.getState().rowSelection,a=[],r={},i=function(l,o){return l.map(c=>{var d;const h=qT(c,n);if(h&&(a.push(c),r[c.id]=c),(d=c.subRows)!=null&&d.length&&(c={...c,subRows:i(c.subRows)}),h)return c}).filter(Boolean)};return{rows:i(t.rows),flatRows:a,rowsById:r}}function qT(e,t){var n;return(n=t[e.id])!=null?n:!1}function iv(e,t,n){var a;if(!((a=e.subRows)!=null&&a.length))return!1;let r=!0,i=!1;return e.subRows.forEach(l=>{if(!(i&&!r)&&(l.getCanSelect()&&(qT(l,t)?i=!0:r=!1),l.subRows&&l.subRows.length)){const o=iv(l,t);o==="all"?i=!0:(o==="some"&&(i=!0),r=!1)}}),r?"all":i?"some":!1}const sv=/([0-9]+)/gm,nIe=(e,t,n)=>sk(Io(e.getValue(n)).toLowerCase(),Io(t.getValue(n)).toLowerCase()),aIe=(e,t,n)=>sk(Io(e.getValue(n)),Io(t.getValue(n))),rIe=(e,t,n)=>VT(Io(e.getValue(n)).toLowerCase(),Io(t.getValue(n)).toLowerCase()),iIe=(e,t,n)=>VT(Io(e.getValue(n)),Io(t.getValue(n))),sIe=(e,t,n)=>{const a=e.getValue(n),r=t.getValue(n);return a>r?1:aVT(e.getValue(n),t.getValue(n));function VT(e,t){return e===t?0:e>t?1:-1}function Io(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function sk(e,t){const n=e.split(sv).filter(Boolean),a=t.split(sv).filter(Boolean);for(;n.length&&a.length;){const r=n.shift(),i=a.shift(),l=parseInt(r,10),o=parseInt(i,10),c=[l,o].sort();if(isNaN(c[0])){if(r>i)return 1;if(i>r)return-1;continue}if(isNaN(c[1]))return isNaN(l)?-1:1;if(l>o)return 1;if(o>l)return-1}return n.length-a.length}const af={alphanumeric:nIe,alphanumericCaseSensitive:aIe,text:rIe,textCaseSensitive:iIe,datetime:sIe,basic:lIe},oIe={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Ur("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let a=!1;for(const r of n){const i=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return af.datetime;if(typeof i=="string"&&(a=!0,i.split(sv).length>1))return af.alphanumeric}return a?af.text:af.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,a;if(!e)throw new Error;return PN(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(a=t.options.sortingFns)==null?void 0:a[e.columnDef.sortingFn])!=null?n:af[e.columnDef.sortingFn]},e.toggleSorting=(n,a)=>{const r=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(l=>{const o=l==null?void 0:l.find(g=>g.id===e.id),c=l==null?void 0:l.findIndex(g=>g.id===e.id);let d=[],h,f=i?n:r==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&a?o?h="toggle":h="add":l!=null&&l.length&&c!==l.length-1?h="replace":o?h="toggle":h="replace",h==="toggle"&&(i||r||(h="remove")),h==="add"){var m;d=[...l,{id:e.id,desc:f}],d.splice(0,d.length-((m=t.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else h==="toggle"?d=l.map(g=>g.id===e.id?{...g,desc:f}:g):h==="remove"?d=l.filter(g=>g.id!==e.id):d=[{id:e.id,desc:f}];return d})},e.getFirstSortDir=()=>{var n,a;return((n=(a=e.columnDef.sortDescFirst)!=null?a:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var a,r;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==i&&((a=t.options.enableSortingRemoval)==null||a)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:l==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,a;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((a=t.options.enableSorting)!=null?a:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,a;return(n=(a=e.columnDef.enableMultiSort)!=null?a:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const a=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return a?a.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,a;return(n=(a=t.getState().sorting)==null?void 0:a.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(a=>a.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return a=>{n&&(a.persist==null||a.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(a):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,a;e.setSorting(t?[]:(n=(a=e.initialState)==null?void 0:a.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},cIe=[RSe,JSe,qSe,VSe,DSe,jSe,QSe,XSe,oIe,GSe,_Se,$Se,eIe,tIe,KSe];function uIe(e){var t,n;const a=[...cIe,...(t=e._features)!=null?t:[]];let r={_features:a};const i=r._features.reduce((m,g)=>Object.assign(m,g.getDefaultOptions==null?void 0:g.getDefaultOptions(r)),{}),l=m=>r.options.mergeOptions?r.options.mergeOptions(i,m):{...i,...m};let c={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(m=>{var g;c=(g=m.getInitialState==null?void 0:m.getInitialState(c))!=null?g:c});const d=[];let h=!1;const f={_features:a,options:{...i,...e},initialState:c,_queue:m=>{d.push(m),h||(h=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();h=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{r.setState(r.initialState)},setOptions:m=>{const g=eo(m,r.options);r.options=l(g)},getState:()=>r.options.state,setState:m=>{r.options.onStateChange==null||r.options.onStateChange(m)},_getRowId:(m,g,b)=>{var E;return(E=r.options.getRowId==null?void 0:r.options.getRowId(m,g,b))!=null?E:`${b?[b.id,g].join("."):g}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(m,g)=>{let b=(g?r.getPrePaginationRowModel():r.getRowModel()).rowsById[m];if(!b&&(b=r.getCoreRowModel().rowsById[m],!b))throw new Error;return b},_getDefaultColumnDef:ot(()=>[r.options.defaultColumn],m=>{var g;return m=(g=m)!=null?g:{},{header:b=>{const E=b.header.column.columnDef;return E.accessorKey?E.accessorKey:E.accessorFn?E.id:null},cell:b=>{var E,S;return(E=(S=b.renderValue())==null||S.toString==null?void 0:S.toString())!=null?E:null},...r._features.reduce((b,E)=>Object.assign(b,E.getDefaultColumnDef==null?void 0:E.getDefaultColumnDef()),{}),...m}},ct(e,"debugColumns")),_getColumnDefs:()=>r.options.columns,getAllColumns:ot(()=>[r._getColumnDefs()],m=>{const g=function(b,E,S){return S===void 0&&(S=0),b.map(I=>{const O=CSe(r,I,S,E),v=I;return O.columns=v.columns?g(v.columns,O,S+1):[],O})};return g(m)},ct(e,"debugColumns")),getAllFlatColumns:ot(()=>[r.getAllColumns()],m=>m.flatMap(g=>g.getFlatColumns()),ct(e,"debugColumns")),_getAllFlatColumnsById:ot(()=>[r.getAllFlatColumns()],m=>m.reduce((g,b)=>(g[b.id]=b,g),{}),ct(e,"debugColumns")),getAllLeafColumns:ot(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(m,g)=>{let b=m.flatMap(E=>E.getLeafColumns());return g(b)},ct(e,"debugColumns")),getColumn:m=>r._getAllFlatColumnsById()[m]};Object.assign(r,f);for(let m=0;mot(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},a=function(r,i,l){i===void 0&&(i=0);const o=[];for(let d=0;de._autoResetPageIndex()))}/** * react-table * * Copyright (c) TanStack * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ss(e,t){return e?dIe(e)?T.createElement(e,t):e:null}function dIe(e){return hIe(e)||typeof e=="function"||fIe(e)}function hIe(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function fIe(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function fm(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=T.useState(()=>({current:uIe(t)})),[a,r]=T.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...a,...e.state},onStateChange:l=>{r(l),e.onStateChange==null||e.onStateChange(l)}})),n.current}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function pIe({onClose:e,className:t,title:n,onConfirm:a,open:r,isPending:i}){return s.jsx(mN,{onClose:e,open:r,className:ge("w-full",t),classNames:{children:"max-w-[487px] w-full "},children:s.jsx(Di,{children:s.jsxs("div",{className:"relative flex w-full flex-1 flex-col gap-10 rounded-[20px] border-2 border-black bg-white px-12 py-8",children:[s.jsx(lN,{className:"absolute right-4 top-4 size-4 cursor-pointer",onClick:e}),s.jsx("div",{className:"flex w-full justify-center",children:n}),s.jsxs("div",{className:"flex justify-center gap-5",children:[s.jsx(Je,{onClick:e,children:"Abbrechen"}),s.jsx(Je,{onClick:a,loading:i,children:"Löschen"})]})]})})})}function pm(e){const t=e.row.original,n=Yn(),[a,r]=T.useState(!1),i=()=>{r(!0)},l=()=>{r(!1)},o=()=>{e!=null&&e.onDelete&&e.onDelete(t.id),r(!1)};return s.jsxs("div",{className:ge("flex gap-2 px-2",e==null?void 0:e.className),children:[s.jsx("button",{onClick:()=>{n(e.editRoute.replace(":id?",t.id))},children:"Bearbeiten"}),(e==null?void 0:e.onDelete)&&s.jsx("button",{onClick:i,children:"Löschen"}),s.jsx(pIe,{open:!!e.showDeleteModal,onClose:()=>e.setShowDeleteModal&&e.setShowDeleteModal(!1),title:(e==null?void 0:e.deleteTitle)||"Sind Sie sicher, dass Sie this item?",onConfirm:()=>{e!=null&&e.onDelete&&(e==null||e.onDelete(t.id))},isPending:e==null?void 0:e.isPending}),s.jsx(Es,{open:a,onConfirm:o,onCancel:l,onClose:l})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function mm({children:e,sort:t,sortable:n,onSort:a,className:r}){const i=t&&t.replace("-","")===n;return s.jsxs("div",{className:ge("flex items-center justify-center gap-1 font-semibold",r),children:[s.jsx("div",{className:"flex items-center justify-center",children:e}),n&&!i&&s.jsxs("div",{className:"flex",onClick:()=>{a&&a(n)},children:[s.jsx("span",{className:"cursor-pointer text-xs",children:"↑"}),s.jsx("span",{className:"cursor-pointer text-xs",children:"↓"})]}),n&&i&&(t==null?void 0:t.includes(n))&&s.jsxs("div",{className:"flex",onClick:()=>{t.includes("-")&&a&&a(""),t.includes("-")||a&&a("-"+n)},children:[!t.includes("-")&&s.jsx("span",{className:"cursor-pointer text-xs",children:"↑"}),t.includes("-")&&s.jsx("span",{className:"cursor-pointer text-xs",children:"↓"})]})]})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const pg=dm();function mIe(e){const t=e.row.original,{mutateAsync:n,isPending:a}=Ule(),r=sl(),[i,l]=T.useState(!1);return s.jsx("div",{className:"flex justify-end w-full",children:s.jsx(pm,{editRoute:qe.ORGANIZATION,...e,deleteTitle:"Sind Sie sicher, dass Sie "+t.organizationTitle+" löschen möchten?",onDelete:async()=>{try{await n(t.id),l(!1),mu(t.organizationTitle+" wurde gelöscht!"),await r.invalidateQueries({queryKey:[qe.ORGANIZATIONS],exact:!1}),await r.invalidateQueries({queryKey:[rt.ORGANIZATIONS],exact:!1}),await r.invalidateQueries({queryKey:["organizations"],exact:!1})}catch(o){rl((o==null?void 0:o.message)||"Fehler beim Löschen")}},isPending:a,showDeleteModal:i,setShowDeleteModal:l})})}const SM=[pg.accessor("organizationTitle",{header:"Name Organisation",cell:e=>s.jsx("span",{className:"font-bold text-gray-900 text-sm",children:e.getValue()}),meta:{className:"w-[30%]"}}),pg.accessor("email",{header:"E-Mail",cell:e=>s.jsx("span",{className:"text-gray-600 text-sm truncate block max-w-[200px]",title:e.getValue()||"",children:e.getValue()||"-"}),meta:{className:"w-[25%]"}}),pg.accessor("city",{header:"Stadt",cell:e=>s.jsx("span",{className:"text-gray-600 text-sm",children:e.getValue()||"-"}),meta:{className:"w-[20%]"}}),pg.accessor("actions",{header:()=>s.jsx("span",{className:"sr-only",children:"Aktionen"}),cell:mIe,id:"actions",meta:{sortable:!1,className:"w-[220px] min-w-[220px]"}})];function gIe({value:e,onChange:t}){return s.jsxs("div",{className:"relative w-full",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:s.jsx("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),s.jsx("input",{type:"text",className:"block w-full rounded-md border border-gray-300 bg-white py-2 pl-9 pr-3 text-sm placeholder-gray-500 focus:border-black focus:outline-none focus:ring-1 focus:ring-black transition-all shadow-sm",placeholder:"Suche...",value:e,onChange:n=>t(n.target.value)})]})}function lk({className:e}){const t=Yn(),[n,a]=T.useState(""),[r,i]=T.useState(""),[l,o]=T.useState(r);T.useEffect(()=>{const g=setTimeout(()=>o(r),500);return()=>clearTimeout(g)},[r]);const{list:c,ref:d}=kle({sort:n,search:l,suspense:!0,placeholderData:g=>g}),h=fm({data:c||[],columns:SM,getCoreRowModel:hm()}),f=h.getRowModel().rows,m=f.length;return s.jsxs("div",{className:ge(e,"flex flex-col h-full"),children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-end sm:items-center mb-4 px-1 gap-4",children:[s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(gIe,{value:r,onChange:i})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx(Je,{text:"+ Organisation hinzufügen",className:"bg-black text-white hover:bg-gray-800 border-black whitespace-nowrap px-4 py-2 text-sm",onClick:()=>t("/pro/admin/organization")})})]}),s.jsx("div",{className:"w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm text-gray-500 table-fixed min-w-[800px]",children:[s.jsx("thead",{className:"bg-white text-xs uppercase text-black",children:h.getHeaderGroups().map(g=>s.jsx("tr",{children:g.headers.map(b=>{var O,v;const E=((O=b.column.columnDef.meta)==null?void 0:O.className)||"",S=(v=b.column.columnDef.meta)==null?void 0:v.sortable;let I=!0;return S===!1&&(I=!1),s.jsx("th",{className:`px-6 py-4 font-bold tracking-wider border-b border-black ${E}`,children:b.isPlaceholder?null:s.jsx(mm,{sortable:I?b.id:void 0,sort:n||"",onSort:w=>a(w),children:ss(b.column.columnDef.header,b.getContext())})},b.id)})},g.id))}),s.jsx("tbody",{className:"divide-y divide-gray-100 bg-white",children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:SM.length,className:"px-6 py-8 text-center text-gray-500 italic",children:"Keine Organisationen gefunden."})}):f.map((g,b)=>{const E=b===m-1;return s.jsx("tr",{ref:E?d:null,className:"hover:bg-gray-50 transition-colors duration-150 ease-in-out cursor-default",children:g.getVisibleCells().map(S=>{const O=S.column.id==="actions";return s.jsx("td",{className:ge("px-6 py-4",O?"":"whitespace-nowrap overflow-hidden text-ellipsis"),children:ss(S.column.columnDef.cell,S.getContext())},S.id)})},g.id)})})]})})}),s.jsx(Di,{className:"absolute inset-0 pointer-events-none",children:s.jsx("div",{className:"pointer-events-auto h-full",children:Sh()})})]})}const bIe=Object.freeze(Object.defineProperty({__proto__:null,default:lk},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const GS=dm();function EIe(e){const t=e.row.original,{mutateAsync:n,isPending:a}=Mle(),r=sl(),[i,l]=T.useState(!1);return s.jsx("div",{className:"flex justify-end w-full",children:s.jsx(pm,{editRoute:qe.DEPARTMENT,...e,deleteTitle:"Sind Sie sicher, dass Sie "+t.departmentTitle+" löschen möchten?",onDelete:async()=>{try{await n(t.id),l(!1),mu(t.departmentTitle+" wurde gelöscht!"),await r.invalidateQueries({queryKey:[qe.DEPARTMENTS],exact:!1}),await r.invalidateQueries({queryKey:[rt.DEPARTMENTS],exact:!1}),await r.invalidateQueries({queryKey:["departments"],exact:!1})}catch(o){rl((o==null?void 0:o.message)||"Fehler beim Löschen")}},isPending:a,showDeleteModal:i,setShowDeleteModal:l})})}function NIe({organization:e}){const t=Yn();return!e||typeof e!="object"||!e.organizationTitle?s.jsx("span",{className:"text-gray-400 text-sm",children:"-"}):s.jsx("button",{onClick:n=>{n.stopPropagation(),t(`/pro/admin/organization/${e.id}`)},className:"text-gray-600 hover:text-blue-600 hover:underline text-left transition-colors text-sm truncate max-w-full",title:e.organizationTitle,children:e.organizationTitle})}const IM=[GS.accessor("departmentTitle",{header:"Name Abteilung",cell:e=>s.jsx("span",{className:"font-bold text-gray-900 text-sm",children:e.getValue()}),meta:{className:"w-[40%]"}}),GS.accessor(e=>{var t;return(t=e.organization)==null?void 0:t.organizationTitle},{id:"organizationTitle",header:"Organisation",cell:e=>s.jsx(NIe,{organization:e.row.original.organization}),meta:{className:"w-[40%]"}}),GS.accessor("actions",{header:()=>s.jsx("span",{className:"sr-only",children:"Aktionen"}),cell:EIe,id:"actions",meta:{sortable:!1,className:"w-[220px] min-w-[220px]"}})];function xIe({value:e,onChange:t}){return s.jsxs("div",{className:"relative w-full",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:s.jsx("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),s.jsx("input",{type:"text",className:"block w-full rounded-md border border-gray-300 bg-white py-2 pl-9 pr-3 text-sm placeholder-gray-500 focus:border-black focus:outline-none focus:ring-1 focus:ring-black transition-all shadow-sm",placeholder:"Suche...",value:e,onChange:n=>t(n.target.value)})]})}function ok({className:e}){const t=Yn(),[n,a]=T.useState(""),[r,i]=T.useState(""),[l,o]=T.useState(r);T.useEffect(()=>{const g=setTimeout(()=>o(r),500);return()=>clearTimeout(g)},[r]);const{list:c,ref:d}=Dle({sort:n,search:l,suspense:!0,placeholderData:g=>g}),h=fm({data:c||[],columns:IM,getCoreRowModel:hm()}),f=h.getRowModel().rows,m=f.length;return s.jsxs("div",{className:ge(e,"flex flex-col h-full"),children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-end sm:items-center mb-4 px-1 gap-4",children:[s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(xIe,{value:r,onChange:i})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx(Je,{text:"+ Abteilung hinzufügen",className:"bg-black text-white hover:bg-gray-800 border-black whitespace-nowrap px-4 py-2 text-sm",onClick:()=>t("/pro/admin/department")})})]}),s.jsx("div",{className:"w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm text-gray-500 table-fixed min-w-[800px]",children:[s.jsx("thead",{className:"bg-white text-xs uppercase text-black",children:h.getHeaderGroups().map(g=>s.jsx("tr",{children:g.headers.map(b=>{var O,v;const E=((O=b.column.columnDef.meta)==null?void 0:O.className)||"",S=(v=b.column.columnDef.meta)==null?void 0:v.sortable;let I=!0;return S===!1&&(I=!1),s.jsx("th",{className:`px-6 py-4 font-bold tracking-wider border-b border-black ${E}`,children:b.isPlaceholder?null:s.jsx(mm,{sortable:I?b.id:void 0,sort:n||"",onSort:w=>a(w),children:ss(b.column.columnDef.header,b.getContext())})},b.id)})},g.id))}),s.jsx("tbody",{className:"divide-y divide-gray-100 bg-white",children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:IM.length,className:"px-6 py-8 text-center text-gray-500 italic",children:"Keine Abteilungen gefunden."})}):f.map((g,b)=>{const E=b===m-1;return s.jsx("tr",{ref:E?d:null,className:"hover:bg-gray-50 transition-colors duration-150 ease-in-out cursor-default",children:g.getVisibleCells().map(S=>{const O=S.column.id==="actions";return s.jsx("td",{className:ge("px-6 py-4",O?"":"whitespace-nowrap overflow-hidden text-ellipsis"),children:ss(S.column.columnDef.cell,S.getContext())},S.id)})},g.id)})})]})})}),s.jsx(Di,{className:"absolute inset-0 pointer-events-none",children:s.jsx("div",{className:"pointer-events-auto h-full",children:Sh()})})]})}const SIe=Object.freeze(Object.defineProperty({__proto__:null,default:ok},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const rf=dm();function IIe(e){const t=e.row.original,{mutateAsync:n,isPending:a}=Zoe(),r=sl(),[i,l]=T.useState(!1);return s.jsx("div",{className:"flex justify-end w-full",children:s.jsx(pm,{editRoute:qe.CONSULTANT,...e,deleteTitle:"Sind Sie sicher, dass Sie "+t.name+" löschen möchten?",onDelete:async()=>{try{await n(t.id),l(!1),mu(t.name+" wurde gelöscht!"),await r.invalidateQueries({queryKey:[qe.CONSULTANTS],exact:!1}),await r.invalidateQueries({queryKey:[rt.CONSULTANTS],exact:!1}),await r.invalidateQueries({queryKey:["consultants"],exact:!1})}catch(o){rl((o==null?void 0:o.message)||"Fehler beim Löschen")}},isPending:a,showDeleteModal:i,setShowDeleteModal:l})})}function OIe({department:e}){const t=Yn();return!e||!e.departmentTitle?s.jsx("span",{className:"text-gray-400 text-sm",children:"-"}):s.jsx("button",{onClick:n=>{n.stopPropagation(),t(`/pro/admin/department/${e.id}`)},className:"text-gray-600 hover:text-blue-600 hover:underline text-left transition-colors text-sm truncate max-w-full",title:e.departmentTitle,children:e.departmentTitle})}function vIe({organization:e}){const t=Yn();return!e||!e.organizationTitle?s.jsx("span",{className:"text-gray-400 text-sm",children:"-"}):s.jsx("button",{onClick:n=>{n.stopPropagation(),t(`/pro/admin/organization/${e.id}`)},className:"text-gray-600 hover:text-blue-600 hover:underline text-left transition-colors text-sm truncate max-w-full",title:e.organizationTitle,children:e.organizationTitle})}const OM=[rf.accessor("name",{header:"Name Berater*in",cell:e=>s.jsx("span",{className:"font-bold text-gray-900 text-sm",children:e.getValue()}),meta:{className:"w-[25%]"}}),rf.accessor("department.departmentTitle",{id:"departmentTitle",header:"Abteilung",cell:e=>s.jsx(OIe,{department:e.row.original.department}),meta:{className:"w-[25%]"}}),rf.accessor(e=>{var t,n;return(n=(t=e.department)==null?void 0:t.organization)==null?void 0:n.organizationTitle},{id:"organizationTitle",header:"Organisation",cell:e=>{const t=e.row.original.department;return s.jsx(vIe,{organization:t==null?void 0:t.organization})},meta:{className:"w-[25%]"}}),rf.accessor("user.credits",{header:()=>s.jsx("span",{children:"Token"}),cell:e=>{var a,r,i;const t=((i=(r=(a=e==null?void 0:e.row)==null?void 0:a.original)==null?void 0:r.user)==null?void 0:i.credits)??0;let n="text-green-600";return t<=5?n="text-red-600":t<=20&&(n="text-yellow-600"),s.jsx("span",{className:ge("text-sm font-bold",n),children:t.toLocaleString()})},meta:{className:"w-[10%]"}}),rf.accessor("actions",{header:()=>s.jsx("span",{className:"sr-only",children:"Aktionen"}),cell:IIe,id:"actions",meta:{sortable:!1,className:"w-[220px] min-w-[220px]"}})];function TIe({value:e,onChange:t}){return s.jsxs("div",{className:"relative w-full",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:s.jsx("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),s.jsx("input",{type:"text",className:"block w-full rounded-md border border-gray-300 bg-white py-2 pl-9 pr-3 text-sm placeholder-gray-500 focus:border-black focus:outline-none focus:ring-1 focus:ring-black transition-all shadow-sm",placeholder:"Suche...",value:e,onChange:n=>t(n.target.value)})]})}function ck({className:e}){const t=Yn(),[n,a]=T.useState(""),[r,i]=T.useState(""),[l,o]=T.useState(r);T.useEffect(()=>{const g=setTimeout(()=>o(r),500);return()=>clearTimeout(g)},[r]);const{list:c,ref:d}=Qoe({sort:n,search:l,suspense:!0,placeholderData:g=>g}),h=fm({data:c||[],columns:OM,getCoreRowModel:hm()}),f=h.getRowModel().rows,m=f.length;return s.jsxs("div",{className:ge(e,"flex flex-col h-full"),children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-end sm:items-center mb-4 px-1 gap-4",children:[s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(TIe,{value:r,onChange:i})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx(Je,{text:"+ Berater*in hinzufügen",className:"bg-black text-white hover:bg-gray-800 border-black whitespace-nowrap px-4 py-2 text-sm",onClick:()=>t("/pro/admin/consultant")})})]}),s.jsx("div",{className:"w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm text-gray-500 table-fixed min-w-[900px]",children:[s.jsx("thead",{className:"bg-gray-50 text-xs uppercase text-gray-700",children:h.getHeaderGroups().map(g=>s.jsx("tr",{children:g.headers.map(b=>{var O,v;const E=((O=b.column.columnDef.meta)==null?void 0:O.className)||"",S=(v=b.column.columnDef.meta)==null?void 0:v.sortable;let I=!0;return S===!1&&(I=!1),s.jsx("th",{className:`px-6 py-3 font-semibold tracking-wider ${E}`,children:b.isPlaceholder?null:s.jsx(mm,{sortable:I?b.id:void 0,sort:n||"",onSort:w=>a(w),children:ss(b.column.columnDef.header,b.getContext())})},b.id)})},g.id))}),s.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:OM.length,className:"px-6 py-8 text-center text-gray-500 italic",children:"Keine Berater*innen gefunden."})}):f.map((g,b)=>{const E=b===m-1;return s.jsx("tr",{ref:E?d:null,className:"hover:bg-gray-100 transition-colors duration-150 ease-in-out cursor-default",children:g.getVisibleCells().map(S=>{const O=S.column.id==="actions";return s.jsx("td",{className:ge("px-6 py-4",O?"":"whitespace-nowrap overflow-hidden text-ellipsis"),children:ss(S.column.columnDef.cell,S.getContext())},S.id)})},g.id)})})]})})}),s.jsx(Di,{className:"absolute inset-0 pointer-events-none",children:s.jsx("div",{className:"pointer-events-auto h-full",children:Sh()})})]})}const AIe=Object.freeze(Object.defineProperty({__proto__:null,default:ck},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function yIe(e){return dn.post(rt.POSTAL_CODES,e)}function wIe(e,t){return dn.patch(`${rt.POSTAL_CODES}/${e}`,t)}function CIe(e,t){return dn.get(rt.POSTAL_CODES,{params:e,cancelToken:t==null?void 0:t.token})}function RIe(e){return dn.get(rt.POSTAL_CODES+"/"+e)}function MIe(e){return dn.delete(rt.POSTAL_CODES+"/"+e)}function jye({id:e,...t}){return rI({queryKey:[rt.POSTAL_CODES,e],queryFn:async()=>await RIe(e),...t})}function Bye({...e}={}){return za({mutationFn:async t=>await yIe(t),...e})}function Pye({...e}={}){return za({mutationFn:async t=>await wIe((t==null?void 0:t.id)||"",t),...e})}function DIe({...e}={}){return za({mutationFn:async t=>await MIe(t||""),...e})}function jIe({sort:e,limit:t,search:n,...a}={}){const i=Hn.CancelToken.source(),l=Co({sort:e,limit:t,search:n},wo),o=[rt.POSTAL_CODES,...Object.values(l)],{data:c,fetchNextPage:d,...h}=$p({queryKey:o,queryFn:({pageParam:m})=>CIe({...l,page:m},i),initialPageParam:1,...a,getNextPageParam:m=>{var g,b,E,S,I,O;if(((b=(g=m==null?void 0:m.data)==null?void 0:g.meta)==null?void 0:b.currentPage)<((S=(E=m==null?void 0:m.data)==null?void 0:E.meta)==null?void 0:S.totalPages))return Number(((O=(I=m==null?void 0:m.data)==null?void 0:I.meta)==null?void 0:O.currentPage)+1)}}),{ref:f}=_p({initialInView:!0,onChange:m=>{m&&d()}});return{data:c,ref:f,fetchNextPage:d,...h,list:T.useMemo(()=>c==null?void 0:c.pages.flatMap(m=>m.data.items),[c==null?void 0:c.pages])}}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const sf=dm();function BIe(e){const t=e.row.original,{mutateAsync:n,isPending:a}=DIe(),r=sl(),[i,l]=T.useState(!1);return s.jsx("div",{className:"flex justify-end w-full",children:s.jsx(pm,{editRoute:qe.POSTAL_CODE,...e,deleteTitle:"Sind Sie sicher, dass Sie PLZ "+t.code+" löschen möchten?",onDelete:async()=>{try{await n(t.id),l(!1),mu("PLZ "+t.code+" wurde gelöscht!"),await r.invalidateQueries({queryKey:[qe.POSTAL_CODES],exact:!1}),await r.invalidateQueries({queryKey:[rt.POSTAL_CODES],exact:!1})}catch(o){rl((o==null?void 0:o.message)||"Fehler beim Löschen")}},isPending:a,showDeleteModal:i,setShowDeleteModal:l})})}const vM=[sf.accessor("code",{header:"PLZ",cell:e=>s.jsx("span",{className:"font-bold text-gray-900 text-sm",children:e.getValue()}),meta:{className:"w-[15%]"}}),sf.accessor("city",{header:"Stadt",cell:e=>s.jsx("span",{className:"text-gray-900 text-sm",children:e.getValue()}),meta:{className:"w-[25%]"}}),sf.accessor("county",{header:"Landkreis",cell:e=>s.jsx("span",{className:"text-gray-600 text-sm",children:e.getValue()||"-"}),meta:{className:"w-[25%]"}}),sf.accessor("level",{header:"Stufe",cell:e=>s.jsx("span",{className:"inline-flex items-center rounded-full bg-gray-100 px-2.5 py-0.5 text-xs font-medium text-gray-800",children:e.getValue()||"-"}),meta:{className:"w-[10%]"}}),sf.accessor("actions",{header:()=>s.jsx("span",{className:"sr-only",children:"Aktionen"}),cell:BIe,id:"actions",meta:{sortable:!1,className:"w-[150px]"}})];function PIe({value:e,onChange:t}){return s.jsxs("div",{className:"relative w-full",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:s.jsx("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),s.jsx("input",{type:"text",className:"block w-full rounded-md border border-gray-300 bg-white py-2 pl-9 pr-3 text-sm placeholder-gray-500 focus:border-black focus:outline-none focus:ring-1 focus:ring-black transition-all shadow-sm",placeholder:"PLZ, Stadt...",value:e,onChange:n=>t(n.target.value)})]})}function uk({className:e}){const t=Yn(),[n,a]=T.useState(""),[r,i]=T.useState(""),[l,o]=T.useState(r);T.useEffect(()=>{const g=setTimeout(()=>o(r),500);return()=>clearTimeout(g)},[r]);const{list:c,ref:d}=jIe({sort:n,search:l,suspense:!0,placeholderData:g=>g}),h=fm({data:c||[],columns:vM,getCoreRowModel:hm()}),f=h.getRowModel().rows,m=f.length;return s.jsxs("div",{className:ge(e,"flex flex-col h-full"),children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-end sm:items-center mb-4 px-1 gap-4",children:[s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(PIe,{value:r,onChange:i})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx(Je,{text:"+ PLZ hinzufügen",className:"bg-black text-white hover:bg-gray-800 border-black whitespace-nowrap px-4 py-2 text-sm",onClick:()=>t("/pro/admin/postal-code")})})]}),s.jsx("div",{className:"w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm text-gray-500 table-fixed min-w-[800px]",children:[s.jsx("thead",{className:"bg-white text-xs uppercase text-black",children:h.getHeaderGroups().map(g=>s.jsx("tr",{children:g.headers.map(b=>{var O,v;const E=((O=b.column.columnDef.meta)==null?void 0:O.className)||"",S=(v=b.column.columnDef.meta)==null?void 0:v.sortable;let I=!0;return S===!1&&(I=!1),s.jsx("th",{className:`px-6 py-4 font-bold tracking-wider border-b border-black ${E}`,children:b.isPlaceholder?null:s.jsx(mm,{sortable:I?b.id:void 0,sort:n||"",onSort:w=>a(w),children:ss(b.column.columnDef.header,b.getContext())})},b.id)})},g.id))}),s.jsx("tbody",{className:"divide-y divide-gray-100 bg-white",children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:vM.length,className:"px-6 py-8 text-center text-gray-500 italic",children:"Keine Postleitzahlen gefunden."})}):f.map((g,b)=>{const E=b===m-1;return s.jsx("tr",{ref:E?d:null,className:"hover:bg-gray-50 transition-colors duration-150 ease-in-out cursor-default",children:g.getVisibleCells().map(S=>{const O=S.column.id==="actions";return s.jsx("td",{className:ge("px-6 py-4",O?"":"whitespace-nowrap overflow-hidden text-ellipsis"),children:ss(S.column.columnDef.cell,S.getContext())},S.id)})},g.id)})})]})})}),s.jsx(Di,{className:"absolute inset-0 pointer-events-none",children:s.jsx("div",{className:"pointer-events-auto h-full",children:Sh()})})]})}const HIe=Object.freeze(Object.defineProperty({__proto__:null,default:uk},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const ju=dm();function LIe(e){const t=e.row.original,{mutateAsync:n,isPending:a}=Mne(),r=sl(),[i,l]=T.useState(!1);return s.jsx("div",{className:"flex justify-end w-full gap-2 whitespace-nowrap",children:s.jsx(pm,{editRoute:qe.CONSTANT,...e,deleteTitle:'Sind Sie sicher, dass Sie die Konstante "'+t.name+'" löschen möchten?',onDelete:async()=>{try{await n(t.id),l(!1),mu("Konstante "+t.name+" wurde gelöscht!"),await r.invalidateQueries({queryKey:[qe.CONSTANTS],exact:!1}),await r.invalidateQueries({queryKey:[rt.CONSTANTS],exact:!1})}catch(o){rl((o==null?void 0:o.message)||"Fehler beim Löschen")}},isPending:a,showDeleteModal:i,setShowDeleteModal:l})})}const TM=[ju.accessor("name",{header:"Name (Key)",cell:e=>s.jsx("span",{className:"font-bold text-gray-900 text-sm font-mono break-all block max-w-[200px]",title:e.getValue(),children:e.getValue()}),meta:{className:"w-[20%]"}}),ju.accessor("title",{header:"Titel",cell:e=>s.jsx("span",{className:"text-gray-900 text-sm truncate block max-w-[200px]",title:e.getValue()||"",children:e.getValue()||"-"}),meta:{className:"w-[20%]"}}),ju.accessor("value",{header:"Wert",cell:e=>s.jsx("span",{className:"text-gray-900 text-sm font-mono font-semibold",children:e.getValue()}),meta:{className:"w-[10%]"}}),ju.accessor("type",{header:"Kategorie",cell:e=>s.jsx("span",{className:"text-gray-500 text-xs uppercase tracking-wider truncate block max-w-[120px]",title:e.getValue()||"",children:e.getValue()}),meta:{className:"w-[15%]"}}),ju.accessor("validFrom",{header:"Gültigkeit",cell:e=>{const t=e.row.original.validFrom,n=e.row.original.validTo;if(!t&&!n)return s.jsx("span",{className:"text-gray-400 text-xs",children:"-"});const a=t?new Date(t).toLocaleDateString("de-DE"):null,r=n?new Date(n).toLocaleDateString("de-DE"):null;return a&&r?s.jsxs("span",{className:"text-xs text-gray-700",children:[a," - ",r]}):a?s.jsxs("span",{className:"text-xs text-green-700",children:["ab ",a]}):r?s.jsxs("span",{className:"text-xs text-red-700",children:["bis ",r]}):null},meta:{className:"w-[15%]"}}),ju.accessor("actions",{header:()=>s.jsx("span",{className:"sr-only",children:"Aktionen"}),cell:LIe,id:"actions",meta:{sortable:!1,className:"w-[160px]"}})];function UIe({value:e,onChange:t}){return s.jsxs("div",{className:"relative w-full",children:[s.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:s.jsx("svg",{className:"h-4 w-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),s.jsx("input",{type:"text",className:"block w-full rounded-md border border-gray-300 bg-white py-2 pl-9 pr-3 text-sm placeholder-gray-500 focus:border-black focus:outline-none focus:ring-1 focus:ring-black transition-all shadow-sm",placeholder:"Suchen (Name, Wert, Titel)...",value:e,onChange:n=>t(n.target.value)})]})}function dk({className:e}){const t=Yn(),[n,a]=T.useState(""),[r,i]=T.useState(""),[l,o]=T.useState(r);T.useEffect(()=>{const g=setTimeout(()=>o(r),500);return()=>clearTimeout(g)},[r]);const{list:c,ref:d}=Dne({sort:n,search:l,suspense:!0,placeholderData:g=>g}),h=fm({data:c||[],columns:TM,getCoreRowModel:hm()}),f=h.getRowModel().rows,m=f.length;return s.jsxs("div",{className:ge(e,"flex flex-col h-full"),children:[s.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-end sm:items-center mb-4 px-1 gap-4",children:[s.jsx("div",{className:"w-full sm:w-72",children:s.jsx(UIe,{value:r,onChange:i})}),s.jsx("div",{className:"flex-shrink-0",children:s.jsx(Je,{text:"+ Konstante hinzufügen",className:"bg-black text-white hover:bg-gray-800 border-black whitespace-nowrap px-4 py-2 text-sm",onClick:()=>t("/pro/admin/constant")})})]}),s.jsx("div",{className:"w-full overflow-hidden rounded-lg border border-gray-200 bg-white shadow-sm",children:s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-left text-sm text-gray-500 table-fixed min-w-[1000px]",children:[s.jsx("thead",{className:"bg-white text-xs uppercase text-black",children:h.getHeaderGroups().map(g=>s.jsx("tr",{children:g.headers.map(b=>{var O,v;const E=((O=b.column.columnDef.meta)==null?void 0:O.className)||"",S=(v=b.column.columnDef.meta)==null?void 0:v.sortable;let I=!0;return S===!1&&(I=!1),s.jsx("th",{className:`px-6 py-4 font-bold tracking-wider border-b border-black ${E}`,children:b.isPlaceholder?null:s.jsx(mm,{sortable:I?b.id:void 0,sort:n||"",onSort:w=>a(w),children:ss(b.column.columnDef.header,b.getContext())})},b.id)})},g.id))}),s.jsx("tbody",{className:"divide-y divide-gray-100 bg-white",children:f.length===0?s.jsx("tr",{children:s.jsx("td",{colSpan:TM.length,className:"px-6 py-8 text-center text-gray-500 italic",children:"Keine Konstanten gefunden."})}):f.map((g,b)=>{const E=b===m-1;return s.jsx("tr",{ref:E?d:null,className:"hover:bg-gray-50 transition-colors duration-150 ease-in-out cursor-default",children:g.getVisibleCells().map(S=>{const O=S.column.id==="actions";return s.jsx("td",{className:ge("px-6 py-4",O?"":"whitespace-nowrap overflow-hidden text-ellipsis"),children:ss(S.column.columnDef.cell,S.getContext())},S.id)})},g.id)})})]})})}),s.jsx(Di,{className:"absolute inset-0 pointer-events-none",children:s.jsx("div",{className:"pointer-events-auto h-full",children:Sh()})})]})}const kIe=Object.freeze(Object.defineProperty({__proto__:null,default:dk},Symbol.toStringTag,{value:"Module"}));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function FIe(){const[e,t]=T.useState("users"),[n,a]=T.useState("organizations");return s.jsxs("div",{className:"flex flex-col h-full animate-in slide-in-from-right-4 duration-300",children:[s.jsxs("div",{className:"flex gap-6 mb-8 border-b border-gray-200 pb-1",children:[s.jsx("button",{onClick:()=>{t("users"),a("organizations")},className:ge("pb-3 text-lg font-bold transition-all relative",e==="users"?"text-purple-700 border-b-4 border-purple-700":"text-gray-400 hover:text-gray-600"),children:"Anwender Administration"}),s.jsx("button",{onClick:()=>{t("app"),a("postal")},className:ge("pb-3 text-lg font-bold transition-all relative",e==="app"?"text-purple-700 border-b-4 border-purple-700":"text-gray-400 hover:text-gray-600"),children:"Applikations Administration"})]}),s.jsxs("div",{className:"flex gap-2 mb-6",children:[e==="users"&&s.jsxs(s.Fragment,{children:[s.jsx(lf,{label:"Organisationen",active:n==="organizations",onClick:()=>a("organizations")}),s.jsx(lf,{label:"Abteilungen",active:n==="departments",onClick:()=>a("departments")}),s.jsx(lf,{label:"Berater*innen",active:n==="consultants",onClick:()=>a("consultants")})]}),e==="app"&&s.jsxs(s.Fragment,{children:[s.jsx(lf,{label:"Postleitzahlen",active:n==="postal",onClick:()=>a("postal")}),s.jsx(lf,{label:"Konstanten",active:n==="constants",onClick:()=>a("constants")})]})]}),s.jsxs("div",{className:"flex-1 overflow-auto rounded-lg border border-gray-100 bg-white p-1",children:[e==="users"&&n==="organizations"&&s.jsx(lk,{}),e==="users"&&n==="departments"&&s.jsx(ok,{}),e==="users"&&n==="consultants"&&s.jsx(ck,{}),e==="app"&&n==="postal"&&s.jsx(uk,{}),e==="app"&&n==="constants"&&s.jsx(dk,{})]})]})}function lf({label:e,active:t,onClick:n}){return s.jsx("button",{onClick:n,className:ge("px-5 py-2 rounded-full text-sm font-bold border transition-all",t?"bg-black text-white border-black shadow-md":"bg-white text-gray-500 border-gray-200 hover:border-gray-400 hover:text-gray-700"),children:e})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function AM({children:e,redirectTo:t="#",roles:n}){var o;const a=du(),[r]=wh(),i=r==null?void 0:r.user;let l=!0;return i&&(n&&n.length&&(l=!((o=i==null?void 0:i.roles)!=null&&o.find(c=>n.includes(c)))),(!n||!n.length)&&(l=!1)),l&&a.pathname!==qe.NOT_FOUND?s.jsx(PP,{to:t}):e}const YIe="modulepreload",zIe=function(e){return"/"+e},yM={},hn=function(t,n,a){let r=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link");r=Promise.all(n.map(l=>{if(l=zIe(l),l in yM)return;yM[l]=!0;const o=l.endsWith(".css"),c=o?'[rel="stylesheet"]':"";if(!!a)for(let f=i.length-1;f>=0;f--){const m=i[f];if(m.href===l&&(!o||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${c}`))return;const h=document.createElement("link");if(h.rel=o?"stylesheet":YIe,o||(h.as="script",h.crossOrigin=""),h.href=l,document.head.appendChild(h),o)return new Promise((f,m)=>{h.addEventListener("load",f),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return r.then(()=>t()).catch(i=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i})};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const GIe=e=>T.lazy(()=>e().catch(WIe));function WIe(e){const t=sessionStorage==null?void 0:sessionStorage.getItem("last-reload"),n=t?Number(t):null,a=Date.now();if(!n||n+1e4null};throw new Error(e)}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const fn=e=>GIe(()=>e()),qIe=fn(()=>hn(()=>import("./Home-DaqywRvV.js"),__vite__mapDeps([0,1,2,3,4,5]))),VIe=fn(()=>hn(()=>import("./About-CJmQ89vP.js"),__vite__mapDeps([6,1,4,5]))),KIe=fn(()=>hn(()=>import("./NotFound-jBrftoSx.js"),__vite__mapDeps([7,1,4,5]))),ZIe=fn(()=>hn(()=>import("./SignIn-DmBbN_Ny.js"),__vite__mapDeps([8,1,4,5]))),JIe=fn(()=>hn(()=>import("./ResetPassword-DJOdQ7_X.js"),__vite__mapDeps([9,1,4,5]))),QIe=fn(()=>hn(()=>import("./BurgerGeld-BzFosxVY.js"),__vite__mapDeps([10,1,4,5]))),XIe=fn(()=>hn(()=>import("./Dashboard-CRLwJUq3.js"),__vite__mapDeps([2,1,3,4,5]))),_Ie=fn(()=>hn(()=>import("./BlankoForms-CeObetIv.js"),__vite__mapDeps([11,1,4,5]))),$Ie=fn(()=>hn(()=>import("./ApplicantForm.container-Bx3wz7dz.js"),__vite__mapDeps([12,1,4,5]))),eOe=fn(()=>hn(()=>Promise.resolve().then(()=>hxe),void 0)),tOe=fn(()=>hn(()=>Promise.resolve().then(()=>gNe),void 0)),nOe=fn(()=>hn(()=>Promise.resolve().then(()=>QEe),void 0)),aOe=fn(()=>hn(()=>Promise.resolve().then(()=>Vxe),void 0)),rOe=fn(()=>hn(()=>Promise.resolve().then(()=>Nxe),void 0)),iOe=fn(()=>hn(()=>Promise.resolve().then(()=>Lxe),void 0)),sOe=fn(()=>hn(()=>Promise.resolve().then(()=>txe),void 0)),lOe=fn(()=>hn(()=>import("./ResultsPage-CGs9fyNS.js"),__vite__mapDeps([13,1,14,5,4]))),oOe=fn(()=>hn(()=>import("./Completion-C9C-4fWX.js"),__vite__mapDeps([15,1,14,5,3,4,16]))),cOe=fn(()=>hn(()=>Promise.resolve().then(()=>nce),void 0));fn(()=>hn(()=>Promise.resolve().then(()=>AIe),void 0));const uOe=fn(()=>hn(()=>Promise.resolve().then(()=>Loe),void 0));fn(()=>hn(()=>Promise.resolve().then(()=>SIe),void 0));const dOe=fn(()=>hn(()=>import("./Organization-DcGfbE4H.js"),__vite__mapDeps([17,1,4,5])));fn(()=>hn(()=>Promise.resolve().then(()=>bIe),void 0));const hOe=fn(()=>hn(()=>import("./Constant-DcGTpqaZ.js"),__vite__mapDeps([18,1,4,5])));fn(()=>hn(()=>Promise.resolve().then(()=>kIe),void 0));const fOe=fn(()=>hn(()=>import("./PostalCode-DH4xd9dW.js"),__vite__mapDeps([19,1,4,5])));fn(()=>hn(()=>Promise.resolve().then(()=>HIe),void 0));const pOe=fn(()=>hn(()=>import("./CheckAndPay-D0-DLfBP.js"),__vite__mapDeps([20,1,3,4,5])));globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const mOe=VX([{element:s.jsx(AM,{redirectTo:qe.SIGN_IN,children:s.jsx(mSe,{})}),errorElement:s.jsx(PS,{}),children:[{path:qe.HOME,element:s.jsx(PP,{to:qe.DASHBOARD,replace:!0})},{path:qe.ABOUT,element:s.jsx(VIe,{})},{path:qe.PRO,element:s.jsx(QIe,{}),children:[{path:qe.DASHBOARD,element:s.jsx(XIe,{})},{path:qe.BLANKO_FORMS,element:s.jsx(_Ie,{})},{path:qe.ADMIN_DASHBOARD,element:s.jsx(AM,{redirectTo:qe.DASHBOARD,roles:[ud.ADMIN],children:s.jsx(FIe,{})}),children:[{path:"organization/:id?",element:s.jsx(dOe,{})},{path:"department/:id?",element:s.jsx(uOe,{})},{path:"consultant/:id?",element:s.jsx(cOe,{})},{path:"postal-code/:id?",element:s.jsx(fOe,{})},{path:"constant/:id?",element:s.jsx(hOe,{})}]},{path:"",element:s.jsx($Ie,{})},{path:qe.HAUSHALTSMITGLIEBER,element:s.jsx(eOe,{})},{path:qe.MEHRBEDARF,element:s.jsx(tOe,{})},{path:qe.EINKOMMEN,element:s.jsx(nOe,{})},{path:qe.WERBUNGSKOSTEN,element:s.jsx(aOe,{})},{path:qe.VERMÖGEN,element:s.jsx(rOe,{})},{path:qe.WOHNKOSTEN,element:s.jsx(iOe,{})},{path:qe.STAMMDATEN,element:s.jsx(sOe,{})},{path:qe.ZUSAMMENFASSUNG,element:s.jsx(pOe,{})},{path:qe.ERGEBNISSE,element:s.jsx(lOe,{})},{path:qe.FERTIGSTELLUNG,element:s.jsx(oOe,{})}]}]},{element:s.jsx(uSe,{}),errorElement:s.jsx(PS,{}),children:[{path:qe.SIGN_IN,element:s.jsx(ZIe,{})},{path:qe.RESET_PASSWORD,element:s.jsx(JIe,{})},{path:qe.FORGOT_PASSWORD,element:s.jsx(TSe,{})}]},{element:s.jsx(dSe,{}),errorElement:s.jsx(PS,{}),children:[{path:qe.HOME,element:s.jsx(qIe,{})}]},{path:"*",element:s.jsx(KIe,{})}]);globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};function gOe(){return iT(),s.jsx(t_,{router:mOe})}globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,t){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,t),t)}};const mg=document.getElementById("root");let _g;mg._root?_g=mg._root:(_g=Vz.createRoot(mg),mg._root=_g);_g.render(s.jsx(Zz,{FallbackComponent:lSe,children:s.jsx(d4,{store:tv,children:s.jsxs(C5,{client:dH,children:[s.jsxs(Di,{children:[s.jsx(gOe,{}),s.jsx(cSe,{store:tv})]}),s.jsx(iSe,{}),s.jsx(s6,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!1,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"light"}),s.jsx(oSe,{})]})})}));export{cn as $,qe as A,Mye as B,WU as C,wt as D,rt as E,Mi as F,_q as G,fu as H,spe as I,Xe as J,Dye as K,c_ as L,Es as M,k as N,W0 as O,Je as P,MS as Q,EE as R,Di as S,J as T,DS as U,Eu as V,Nu as W,rm as X,Bt as Y,Ce as Z,Sye as _,ge as a,oL as a0,Yg as a1,Qxe as a2,Jxe as a3,Pa as a4,th as a5,Iye as a6,Hn as a7,rI as a8,fle as a9,Tye as aA,jye as aB,Bye as aC,Pye as aD,Ut as aE,gle as aa,ble as ab,mle as ac,ple as ad,Uc as ae,xye as af,vi as ag,ii as ah,da as ai,Pr as aj,UU as ak,AT as al,Jd as am,YU as an,Wh as ao,P2 as ap,_xe as aq,hu as ar,Aye as as,yye as at,wye as au,sl as av,RP as aw,pH as ax,Oye as ay,vye as az,j as b,Ae as c,gSe as d,dn as e,Yn as f,wh as g,mu as h,rl as i,za as j,bn as k,le as l,fs as m,XU as n,du as o,f4 as p,Xxe as q,fv as r,ud as s,tn as t,tt as u,Nye as v,eh as w,Xg as x,Cye as y,Rye as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["assets/Home-DaqywRvV.js","assets/@react-pdf/renderer-DhJiG19h.js","assets/Dashboard-CRLwJUq3.js","assets/useCaseStatistics-BlZLtL4j.js","assets/moment-Cl4UOzQZ.js","assets/lodash-DFg---O9.js","assets/About-CJmQ89vP.js","assets/NotFound-jBrftoSx.js","assets/SignIn-DmBbN_Ny.js","assets/ResetPassword-DJOdQ7_X.js","assets/BurgerGeld-BzFosxVY.js","assets/BlankoForms-CeObetIv.js","assets/ApplicantForm.container-Bx3wz7dz.js","assets/ResultsPage-CGs9fyNS.js","assets/useBurgerGeldCalculation-CXDpTrlB.js","assets/Completion-C9C-4fWX.js","assets/Completion-BPdyYRcI.css","assets/Organization-DcGfbE4H.js","assets/Constant-DcGTpqaZ.js","assets/PostalCode-DH4xd9dW.js","assets/CheckAndPay-D0-DLfBP.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) }