1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9b42bbcf-b49a-4884-ad59-dab63ff0a921",e._sentryDebugIdIdentifier="sentry-dbid-9b42bbcf-b49a-4884-ad59-dab63ff0a921")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[695],{86927:function(e,r,n){"use strict";var t,i;n.d(r,{$N:function(){return c},E4:function(){return s},St:function(){return a},zu:function(){return t}}),(i=t||(t={})).OVERVIEW="overview",i.TRANSACTIONS="transactions",i.ASSETS="assets",i.LEDGER="ledger";let s=(e,r)=>e&&r,c=(e,r,n)=>s(e,r)&&"DE"===n,a=e=>[{id:"transactions",title:e("common.transactions"),link:"/transactions"},{id:"assets",title:e("common.amortization"),link:"/assets"},{id:"ledger",title:e("ledger.title"),link:"/ledger"},{id:"overview",title:e("accounting.workspaces.tabTitle"),link:"/accounting/setup"}]},39006:function(e,r,n){"use strict";n.d(r,{E:function(){return m}});var t=n(94458),i=n(80163),s=n(3179),c=n(4290),a=n(15584),o=n(44681),l=n(89881),d=n(86927),u=n(81996),v=n(90071),g=n(98440);let m=e=>{let{children:r,active:n}=e,{t:m}=(0,u.$)(),h=(0,a.s0)(),x=(0,a.TH)(),{enabled:p}=(0,l.V)("features.ledger"),j=(0,o.CG)(e=>e.company),_=(0,v.I7)(j),f=(0,d.E4)(p,_),b=f&&"DE"===j.country,y=i.useMemo(()=>(0,d.St)(m).filter(e=>(e.id!==d.zu.OVERVIEW||b)&&(e.id!==d.zu.LEDGER||f)),[m,f,b]),C=(0,i.useCallback)(e=>{let r=y.find(r=>r.id===e);r&&(n!==r.id||x.pathname!==r.link)&&h((0,g.Q)(r.link,(0,g.q)(x.search)))},[n,x.pathname,x.search,h,y]);return(0,t.jsx)(s.k,{direction:"column",flexGrow:"1",asChild:!0,children:(0,t.jsxs)(c.fC,{value:n,children:[(0,t.jsx)(c.aV,{children:y.map(e=>{let{id:r,title:n}=e;return(0,t.jsx)(c.xz,{value:r,onClick:()=>C(r),children:n},r)})}),(0,t.jsx)(s.k,{direction:"column",flexGrow:"1",pt:"4",asChild:!0,children:(0,t.jsx)(c.VY,{value:n,children:r})})]})})}},98440:function(e,r,n){"use strict";function t(e){let r=new URLSearchParams(e).get("year");if(!r||!/^\d{4}$/.test(r))return;let n=Number(r);return n>=2021&&n<=new Date().getFullYear()?n:void 0}function i(e,r){if(!r)return e;let[n,t]=e.split("?"),i=new URLSearchParams(t);return i.set("year",String(r)),"".concat(n,"?").concat(i)}n.d(r,{Q:function(){return i},q:function(){return t}})},60695:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return D}});var t=n(94458),i=n(80163),s=n(64449),c=n(44681),a=n(89881),o=n(99104),l=n(64781),d=n(86927),u=n(39006),v=n(73685),g=n(81996),m=n(52931),h=n(52563),x=n(56557),p=n.n(x),j=n(73096),_=n.n(j);let f=["ASSET","LIABILITY","EQUITY","INCOME","EXPENSE"],b=e=>"string"==typeof e?[e]:Array.isArray(e)?e.flatMap(b):e&&"object"==typeof e?Object.values(e).flatMap(b):[],y=e=>{let{companyId:r,review:n,onPrepared:s}=e,{t:c}=(0,g.$)(),[a,{isLoading:o}]=(0,h.TH)(),[d,u]=(0,i.useState)(()=>n.accounts.map(e=>({...e,selected:e.canPrepare}))),[v,m]=(0,i.useState)(!1),[x,p]=(0,i.useState)(""),[j,y]=(0,i.useState)(25),[C,w]=(0,i.useState)(""),[N,T]=(0,i.useState)(!1),A=d.filter(e=>e.selected),z=A.filter(e=>!e.name.trim()||!e.accountType||"MANUAL"===e.mode&&!e.position),k=d.filter(e=>"".concat(e.code," ").concat(e.name).toLowerCase().includes(x.toLowerCase())),R=(e,r)=>{u(n=>n.map(n=>n.code===e?{...n,...r}:n)),m(!1),w("")},E=async()=>{if(v&&!z.length&&A.length&&!o&&!N){w("");try{await a({companyId:r,reviewToken:n.token,confirmed:!0,accounts:A.map(e=>{let{code:r,name:n,accountType:t,mode:i,position:s}=e;return{code:r,name:n.trim(),accountType:t,mode:i,position:"MANUAL"===i?s:""}})}).unwrap(),T(!0),m(!1),await s()}catch(e){m(!1),w(b(null==e?void 0:e.data).join(" ")||c("ledger.cutover.accounts.failed"))}}};return(0,t.jsxs)("section",{"aria-label":c("ledger.cutover.accounts.title"),className:_().container,children:[(0,t.jsx)(l.ZT,{size:"sm",children:c("ledger.cutover.accounts.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:c("ledger.cutover.accounts.description",{years:n.fiscalYears.join(", ")})}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:c("ledger.cutover.accounts.namesHint")}),n.locked&&(0,t.jsx)("p",{role:"alert",children:c("ledger.cutover.accounts.locked")}),(0,t.jsxs)("label",{className:_().field,children:[c("ledger.cutover.accounts.search"),(0,t.jsx)("input",{value:x,onChange:e=>{p(e.target.value),y(25)}})]}),(0,t.jsxs)("div",{className:_().actions,children:[(0,t.jsx)(l.zx,{disabled:o||N,size:"s",theme:"text",onClick:()=>{u(e=>e.map(e=>({...e,selected:e.canPrepare}))),m(!1)},children:c("ledger.cutover.accounts.selectAll")}),(0,t.jsx)(l.zx,{disabled:o||N,size:"s",theme:"text",onClick:()=>{u(e=>e.map(e=>({...e,selected:!1}))),m(!1)},children:c("ledger.cutover.accounts.clear")})]}),k.slice(0,j).map(e=>{var r,i,s;return(0,t.jsxs)("fieldset",{className:_().account,disabled:o||N||!e.canPrepare,children:[(0,t.jsxs)("legend",{children:[e.code," \xb7 ",c("ledger.cutover.accounts.states.".concat(e.state))]}),e.canPrepare?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{className:_().check,children:[(0,t.jsx)("input",{checked:e.selected,type:"checkbox",onChange:r=>R(e.code,{selected:r.target.checked})}),c("ledger.cutover.accounts.include",{code:e.code})]}),(0,t.jsxs)("div",{className:_().fields,children:[(0,t.jsxs)("label",{className:_().field,children:[c("ledger.cutover.accounts.name"),(0,t.jsx)("input",{"aria-label":"".concat(e.code," ").concat(c("ledger.cutover.accounts.name")),disabled:!!e.existingAccountId,maxLength:255,value:e.name,onChange:r=>R(e.code,{name:r.target.value})})]}),(0,t.jsxs)("label",{className:_().field,children:[c("ledger.cutover.accounts.type"),(0,t.jsxs)("select",{"aria-label":"".concat(e.code," ").concat(c("ledger.cutover.accounts.type")),disabled:!!e.existingAccountId||e.automatic,value:e.accountType,onCh
1ange:r=>R(e.code,{accountType:r.target.value,position:""}),children:[(0,t.jsx)("option",{value:"",children:c("ledger.cutover.accounts.choose")}),f.map(e=>(0,t.jsx)("option",{value:e,children:c("ledger.cutover.accounts.types.".concat(e))},e))]})]}),(0,t.jsxs)("label",{className:_().field,children:[c("ledger.cutover.accounts.mapping"),(0,t.jsxs)("select",{"aria-label":"".concat(e.code," ").concat(c("ledger.cutover.accounts.mapping")),value:e.mode,onChange:r=>R(e.code,{mode:r.target.value,position:""}),children:[e.automatic&&(0,t.jsx)("option",{value:"AUTOMATIC",children:c("ledger.cutover.accounts.automatic")}),!e.automatic&&(0,t.jsx)("option",{value:"MANUAL",children:c("ledger.cutover.accounts.manual")}),(0,t.jsx)("option",{value:"DEFERRED",children:c("ledger.cutover.accounts.deferred")})]})]}),"MANUAL"===e.mode&&(0,t.jsxs)("label",{className:_().field,children:[c("ledger.cutover.accounts.position"),(0,t.jsxs)("select",{"aria-label":"".concat(e.code," ").concat(c("ledger.cutover.accounts.position")),value:e.position,onChange:r=>R(e.code,{position:r.target.value}),children:[(0,t.jsx)("option",{value:"",children:c("ledger.cutover.accounts.choose")}),n.positions.filter(r=>r.accountType===e.accountType).map(e=>(0,t.jsx)("option",{value:e.position,children:e.label},e.position))]})]})]}),"AUTOMATIC"===e.mode&&(0,t.jsx)("p",{className:_().hint,children:null===(r=n.positions.find(r=>{var t;return r.position===(null===(t=n.accounts.find(r=>r.code===e.code))||void 0===t?void 0:t.position)}))||void 0===r?void 0:r.label}),"DEFERRED"===e.mode&&(0,t.jsx)("p",{className:_().hint,children:c("ledger.cutover.accounts.deferredHint")}),!!(null===(i=e.preservedYears)||void 0===i?void 0:i.length)&&(0,t.jsx)("p",{className:_().hint,children:c("ledger.cutover.accounts.preserved",{years:null===(s=e.preservedYears)||void 0===s?void 0:s.join(", ")})})]}):(0,t.jsx)("p",{children:c("ledger.cutover.accounts.blockers.".concat(n.locked?"locked":e.state))})]},e.code)}),k.length>j&&(0,t.jsx)(l.zx,{size:"s",theme:"text",onClick:()=>y(j+25),children:c("ledger.cutover.accounts.more")}),(0,t.jsx)(l.ZT,{size:"2xs",children:c("ledger.cutover.accounts.selected",{count:A.length})}),z.length>0&&(0,t.jsx)("p",{role:"status",children:c("ledger.cutover.accounts.incomplete",{count:z.length})}),C&&(0,t.jsx)("p",{role:"alert",children:C}),N&&(0,t.jsx)("p",{role:"status",children:c("ledger.cutover.accounts.saved")}),(0,t.jsxs)("label",{className:_().check,children:[(0,t.jsx)("input",{checked:v,disabled:o||N,type:"checkbox",onChange:e=>m(e.target.checked)}),c("ledger.cutover.accounts.confirm")]}),(0,t.jsx)(l.zx,{disabled:!v||!A.length||z.length>0||N||!n.token,isLoading:o,size:"s",onClick:E,children:c("ledger.cutover.accounts.create")})]})},C=e=>{let r=Number(e.replace(",","."));return Number.isFinite(r)?r:0},w=e=>{let r=e.reduce((e,r)=>({...e,[r.side]:e[r.side]+C(r.amount)}),{debit:0,credit:0});return{...r,difference:r.debit-r.credit}},N=e=>{let{accept:r,file:n,hint:i,label:s,onChange:c}=e;return(0,t.jsxs)("div",{className:p().uploadRow,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.ZT,{size:"xs",children:s}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:i}),n&&(0,t.jsx)(l.ZT,{className:p().fileName,color:"second",font:"mono",size:"2xs",children:n.name})]}),(0,t.jsx)(l.p0,{accept:r,ButtonElem:e=>(0,t.jsx)(l.zx,{size:"s",theme:"secondary",...e,children:n?"â»":"+"}),onFileUpload:c})]})},T=e=>{let{accept:r,files:n,hint:i,label:s,onChange:c,selectionSummary:a}=e;return(0,t.jsxs)("div",{className:p().uploadRow,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.ZT,{size:"xs",children:s}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:i}),n&&n.length>0&&(0,t.jsx)(l.ZT,{className:p().fileName,color:"second",font:"mono",size:"2xs",children:1===n.length?n[0].name:a})]}),(0,t.jsx)(l.p0,{accept:r,ButtonElem:e=>(0,t.jsx)(l.zx,{size:"s",theme:"secondary",...e,children:(null==n?void 0:n.length)?"â»":"+"}),multiple:!0,onFilesUpload:c})]})},A=["formation","year_start","prior_year","mid_year"],z=["datev","manual"],k=()=>[{id:1,accountCode:"",side:"debit",amount:"",memo:""},{id:2,accountCode:"",side:"credit",amount:"",memo:""}],R=e=>"string"==typeof e?[e]:Array.isArray(e)?e.flatMap(R):e&&"object"==typeof e?Object.values(e).flatMap(R):[],E=(e,r)=>R(null==e?void 0:e.data).join(" ")||r,Z=e=>{var r,n,s,a,o,d,u,x,j,_,f,b,C,R,Z,I,S,F,L,D;let{companyId:M,year:Y}=e,{t:B}=(0,g.$)(),{notify:O}=(0,c.lm)(),H=(0,c.CG)(e=>{var r,n,t;return null!==(t=null===(n=e.company.chartOfAccounts)||void 0===n?void 0:null===(r=n.code)||void 0===r?void 0:r.toLowerCase())&&void 0!==t?t:""}),P="".concat(Y,"-01-01"),V="".concat(Y,"-12-31"),G="".concat(Y,"-06-30"),[U,W]=(0,i.useState)("year_start"),[$,K]=(0,i.useState)("datev"),[Q,X]=(0,i.useState)(P),[q,J]=(0,i.useState)(V),[ee,er]=(0,i.useState)(P),[en,et]=(0,i.useState)("".concat(Y-1,"-01-01")),[ei,es]=(0,i.useState)("".concat(Y-1,"-12-31")),[ec,ea]=(0,i.useState)(P),[eo,el]=(0,i.useState)(k),[ed,eu]=(0,i.useState)({}),[ev,eg]=(0,i.useState)(!1),[em,eh]=(0,i.useState)(1),[ex,ep]=(0,i.useState)(!1),[ej,e_]=(0,i.useState)([]),[ef,eb]=(0,i.useState)(!1),{data:ey,isFetching:eC,refetch:ew}=(0,h.vm)({companyId:M,fiscalYearBegin:Q,fiscalYearEnd:q}),[eN,eT]=(0,h.ey)(),[eA,ez]=(0,h.Cd)(),[ek,eR]=(0,h._B)(),[eE,eZ]=(0,m.e3)();(0,i.useEffect)(()=>{X(P),J(V),er(P),et("".concat(Y-1,"-01-01")),es("".concat(Y-1,"-12-31")),W("year_start"),K("datev"),ea(P),el(k()),eu({}),eg(!1),eh(1),ep(!1),e_([]),eb(!1),eT.reset(),ez.reset()},[M,P,V]);let eI=(0,i.useMemo)(()=>({companyId:M,mode:U,openingMethod:$,fiscalYearBegin:Q,fiscalYearEnd:q,cutoverDate:ee,..."prior_year"===U&&{sourceFiscalYearBegin:en,sourceFiscalYearEnd:ei},..."manual"===$&&{manualBalanceDate:ec,manualBalances:eo.filter(e=>{let{accountCode:r,amount:n,memo:t}=e;return r.trim()||n.trim()||t.trim()}).map(e=>{let{accountCode:r,side:n,amount:t,memo:i}=e;return{accountCode:r,side:n,amount:t,memo:i}})},...ed}),[M,ee,ed,Q,q,ec,eo,U,$,en,ei]),eS=(0,i.useMemo)(()=>w(eo),[eo]),eF=(0,i.useRef)(eI);eF.current=eI;let eL=async()=>
1{if(eF.current===eI){eg(!1);try{await eA(eI).unwrap()}catch(e){ez.reset(),O(E(e,B("ledger.cutover.notifications.previewFailed")),c.k$.ERROR)}}},eD=()=>{ez.reset(),eg(!1)},eM=e=>{if(W(e),("formation"===e||"prior_year"===e)&&K("datev"),"formation"===e&&(null==ey?void 0:ey.suggestedFormationDate)){let e=ey.suggestedFormationDate.slice(0,4);X(ey.suggestedFormationDate),J("".concat(e,"-12-31")),er(ey.suggestedFormationDate),ea(ey.suggestedFormationDate)}else if("year_start"===e||"prior_year"===e){if(X(P),J(V),er(P),ea(P),"prior_year"===e){var r,n,t,i;et(null!==(t=null===(r=eT.data)||void 0===r?void 0:r.periodStart)&&void 0!==t?t:"".concat(Y-1,"-01-01")),es(null!==(i=null===(n=eT.data)||void 0===n?void 0:n.periodEnd)&&void 0!==i?i:"".concat(Y-1,"-12-31"))}}else"mid_year"===e&&ee===P?(er(G),ea(G)):"mid_year"===e&&ea(ee);eD()},eY=e=>{K(e),"manual"===e&&(ea("mid_year"===U?ee:Q),eu(e=>({...e,opening:void 0,bookings:void 0}))),eD()},eB=(e,r)=>{el(n=>n.map(n=>n.id===e?{...n,...r}:n)),eD()},eO=e=>{el(r=>r.filter(r=>r.id!==e)),eD()},eH=(e,r)=>{eu(n=>({...n,[e]:r})),eD()},eP=e=>{eu(r=>({...r,bookings:e})),eD()},eV=async()=>{eb(!1);try{await eN({companyId:M,files:ej}).unwrap()}catch(e){O(E(e,B("ledger.cutover.migration.analyzeFailed")),c.k$.ERROR)}},eG=async()=>{let e=eT.data;if(e&&ef)try{var r,n;e.suggestedChart&&e.suggestedChart!==H&&await eE({publicId:M,chartOfAccounts:e.suggestedChart,confirmChartOfAccountsSwitch:!0}).unwrap();let t=ej.find(r=>r.name===e.openingFileNames[0]),i=e.bookingsFileNames.flatMap(e=>ej.filter(r=>r.name===e)),s=null!==(r=e.periodStart)&&void 0!==r?r:P,a=null!==(n=e.periodEnd)&&void 0!==n?n:V;eu(e=>({...e,opening:t,bookings:i})),K("datev");let o=i.length>0&&a==="".concat(Y-1,"-12-31");X(o?P:s),J(o?V:a),ea(o?P:s),o?(W("prior_year"),et(s),es(a),er(P)):i.length>0?(W("mid_year"),er(a)):(W("year_start"),er(s)),ez.reset(),eg(!1),eh(o?1:2),O(B("ledger.cutover.migration.applied"),c.k$.SUCCESS)}catch(e){O(E(e,B("ledger.cutover.migration.applyFailed")),c.k$.ERROR)}},eU=async()=>{eg(!1);try{await eA(eI).unwrap()}catch(e){O(E(e,B("ledger.cutover.notifications.previewFailed")),c.k$.ERROR)}},eW=e=>{eh(e)},e$=async()=>{if(ev&&eQ)try{await ek(eI).unwrap(),O(B("ledger.cutover.notifications.imported"),c.k$.SUCCESS),eg(!1),ep(!1),await ew()}catch(e){O(E(e,B("ledger.cutover.notifications.importFailed")),c.k$.ERROR)}},eK=ez.data,eQ=!!((null==eK?void 0:eK.ready)&&!eK.errors.length&&!(null===(r=eK.accountReview)||void 0===r?void 0:r.error)&&!(null===(n=eK.accountReview)||void 0===n?void 0:n.locked)&&!(null===(s=eK.accountReview)||void 0===s?void 0:s.accounts.some(e=>"HIDDEN"!==e.state))),eX=eo.some(e=>{let{accountCode:r,amount:n}=e;return r.trim()&&n.trim()}),eq="formation"===U||"year_start"===U&&!!ed.opening||("mid_year"===U||"prior_year"===U)&&!!(ed.opening&&(null===(a=ed.bookings)||void 0===a?void 0:a.length)),eJ="formation"===U||("manual"===$?eX&&.005>Math.abs(eS.difference):eq),e0=!!(Q&&q&&ee&&Q<=ee&&ee<=q&&("prior_year"!==U||en&&ei&&en<=ei&&ei<Q)),e1=Number(!!ed.opening)+(null!==(S=null===(o=ed.bookings)||void 0===o?void 0:o.length)&&void 0!==S?S:0)+Number(!!ed.parties)+Number(!!ed.assets),e2=eo.filter(e=>{let{accountCode:r,amount:n}=e;return r.trim()&&n.trim()}).length;return(0,t.jsxs)("div",{className:p().container,children:[(0,t.jsxs)("div",{className:p().intro,children:[(0,t.jsx)(l.ZT,{size:"lg",children:B("ledger.cutover.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.intro")})]}),eC?(0,t.jsx)(l.aN,{}):(null==ey?void 0:ey.imported)&&!ex?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("section",{className:p().completed,children:[(0,t.jsx)("span",{className:p().completedIcon,children:(0,t.jsx)(v.J,{size:18,weight:"bold","aria-hidden":!0})}),(0,t.jsxs)("div",{className:p().completedBody,children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.completed.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.completed.description",{opening:ey.counts.opening,bookings:ey.counts.bookings})})]}),(0,t.jsx)(l.zx,{size:"s",theme:"secondary",onClick:()=>{ep(!0),eW(1)},children:B("ledger.cutover.actions.update")})]})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:p().migrationAssistant,children:[(0,t.jsxs)("div",{className:p().migrationHeader,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.migration.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.migration.description")})]}),(0,t.jsxs)("div",{className:p().migrationActions,children:[(0,t.jsx)(l.p0,{accept:".csv,.txt,.pdf,.png,.jpg,.jpeg,.webp",ButtonElem:e=>(0,t.jsx)(l.zx,{size:"s",theme:"secondary",...e,children:B("ledger.cutover.migration.chooseFiles")}),multiple:!0,onFilesUpload:e=>{e_(e),eb(!1),eT.reset()}}),(0,t.jsx)(l.zx,{disabled:0===ej.length,isLoading:eT.isLoading,size:"s",onClick:eV,children:eT.isLoading?B("ledger.cutover.migration.analyzing"):B("ledger.cutover.migration.analyze")})]})]}),ej.length>0&&(0,t.jsxs)(l.ZT,{className:p().migrationFiles,color:"second",font:"mono",size:"2xs",children:[B("ledger.cutover.migration.filesSelected",{count:ej.length})," ","\xb7 ",ej.map(e=>{let{name:r}=e;return r}
1).join(", ")]}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.migration.privacy")}),eT.data&&(0,t.jsxs)("div",{className:p().analysis,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.ZT,{size:"xs",children:B("ledger.cutover.migration.resultTitle")}),(0,t.jsxs)("div",{className:p().analysisSummary,children:[(0,t.jsxs)("span",{children:[B("ledger.cutover.migration.chart"),":"," ",(0,t.jsx)("strong",{children:null!==(F=null===(d=eT.data.suggestedChart)||void 0===d?void 0:d.toUpperCase())&&void 0!==F?F:B("ledger.cutover.migration.notDetected")})]}),(0,t.jsxs)("span",{children:[B("ledger.cutover.migration.period"),":"," ",(0,t.jsx)("strong",{children:eT.data.periodStart&&eT.data.periodEnd?"".concat(eT.data.periodStart," â ").concat(eT.data.periodEnd):B("ledger.cutover.migration.notDetected")})]}),(0,t.jsx)("span",{children:B("ledger.cutover.migration.confidence",{value:Math.round(100*eT.data.confidence)})})]})]}),(0,t.jsx)("div",{className:p().analysisFiles,children:eT.data.files.map(e=>{var r,n;return(0,t.jsxs)("div",{className:p().analysisFile,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.ZT,{font:"mono",size:"2xs",children:e.name}),(0,t.jsxs)(l.ZT,{color:"second",size:"2xs",children:[B("ledger.cutover.migration.fileRole",{role:B("ledger.cutover.migration.roles.".concat(e.role))})," ","\xb7"," ",B("ledger.cutover.migration.method",{method:B("ledger.cutover.migration.methods.".concat(e.recognitionMethod))})]})]}),e.detectedChart&&(0,t.jsx)(l.ZT,{font:"mono",size:"2xs",children:e.detectedChart.toUpperCase()}),e.evidence.length>0&&(0,t.jsxs)("details",{className:p().analysisEvidence,children:[(0,t.jsx)("summary",{children:B("ledger.cutover.migration.evidence")}),(0,t.jsx)("ul",{children:e.evidence.map(e=>(0,t.jsx)("li",{children:e},e))})]}),!!(null===(r=e.warnings)||void 0===r?void 0:r.length)&&(0,t.jsx)("ul",{className:p().analysisFileWarnings,children:null===(n=e.warnings)||void 0===n?void 0:n.map(e=>(0,t.jsx)("li",{children:e},e))})]},e.name)})}),eT.data.warnings.length>0&&(0,t.jsxs)("div",{className:p().analysisWarnings,children:[(0,t.jsx)(l.ZT,{size:"2xs",children:B("ledger.cutover.migration.warnings")}),(0,t.jsx)("ul",{children:eT.data.warnings.map(e=>(0,t.jsx)("li",{children:e},e))})]}),(0,t.jsxs)("div",{className:p().analysisConfirm,children:[(0,t.jsxs)("label",{children:[(0,t.jsx)("input",{checked:ef,type:"checkbox",onChange:e=>eb(e.target.checked)}),(0,t.jsx)(l.ZT,{size:"xs",tag:"span",children:B("ledger.cutover.migration.confirm")})]}),(0,t.jsx)(l.zx,{disabled:!ef,isLoading:eZ.isLoading,size:"s",onClick:eG,children:B("ledger.cutover.migration.apply")})]})]})]}),(0,t.jsx)("ol",{"aria-label":B("ledger.cutover.guide.label"),className:p().progress,children:[1,2,3].map(e=>{let r=e<em,n=e===em;return(0,t.jsx)("li",{"aria-current":n?"step":void 0,className:r?p().progressDone:n?p().progressActive:"",children:(0,t.jsxs)("button",{className:p().progressButton,disabled:!r,type:"button",onClick:()=>eW(e),children:[(0,t.jsx)("span",{className:p().progressMarker,children:r?(0,t.jsx)(v.J,{size:13,weight:"bold","aria-hidden":!0}):e}),(0,t.jsx)("strong",{children:B("ledger.cutover.guide.steps.".concat(e,".title"))})]})},e)})}),1===em&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:p().section,children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.steps.scenario")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.guidance.scenario")}),(0,t.jsx)("div",{className:p().modeGrid,children:A.map(e=>(0,t.jsxs)("button",{className:e===U?p().modeActive:p().mode,type:"button",onClick:()=>eM(e),children:[(0,t.jsx)(l.ZT,{size:"xs",tag:"span",children:B("ledger.cutover.modes.".concat(e,".title"))}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",tag:"span",children:B("ledger.cutover.modes.".concat(e,".hint"))})]},e))}),"prior_year"===U&&(0,t.jsxs)("div",{className:p().previewHelp,children:[(0,t.jsx)(l.ZT,{size:"xs",children:B("ledger.cutover.priorYear.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.priorYear.hint")}),(0,t.jsxs)("div",{className:p().dateGrid,children:[(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.priorYear.sourceBegin")}),(0,t.jsx)("input",{className:p().dateInput,type:"date",value:en,onChange:e=>{et(e.target.value),eD()}})]}),(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.priorYear.sourceEnd")}),(0,t.jsx)("input",{className:p().dateInput,type:"date",value:ei,onChange:e=>{es(e.target.value),eD()}})]})]})]}),(0,t.jsxs)("div",{className:p().dateGrid,children:[(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.fields.fiscalYearBegin")}),(0,t.jsx)("input",{className:p().dateInput,type:"date",value:Q,onChange:e=>{X(e.target.value),("year_start"===U||"prior_year"===U)&&er(e.target.value),"manual"===$&&"year_start"===U&&ea(e.target.value),eD()}})]}),(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.fields.fiscalYearEnd")}),(0,t.jsx)("input",{className:p().dateInput,type:"date",value:q,onChange:e=>{J(e.target.value),eD()}})]}),(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("mid_year"===U?"ledger.cutover.fields.cutoverDateMidYear":"ledger.cutover.fields.cutoverDateYearStart")}),(0,t.jsx)("input",{className:p().dateInput,type:"date",value:ee,onChange:e=>{er(e.target.value),"manual"===$&&"mid_year"===U&&ea(e.target.value),eD()}})]})]})]}),(0,t.jsx)("div",{className:p().stepActions,children:(0,t.jsx)(l.zx,{disabled:!e0,size:"s",onClick:()=>eW(2),children:B("ledger.cutover.actions.continue")})})]}),2===em&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:p().section,children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.steps.data")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.guidance.data.".concat(U))}),"formation"!==U&&(0,t.jsx)("div",{className:p().sourceGrid,children:z.filter(e=>"prior_year"!==U||"datev"===e).map(e=>(0,t.jsxs)("button",{className:e===$?p().sourceActive:p().source,type:"button",onClick:()=>eY(e),children:[(0,t.jsx)(l.ZT,{size:"xs",tag:"span",children:B("ledger.cutover.openingMethods.".concat(e,".title"))}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",tag:"span",children:B("ledger.cutover.openingMethods.".concat(e,".hint"))})]},e))}),"formation"!==U&&"manual"===$&&(0,t.jsxs)("div",{className:p().manualEditor,children:[(0,t.jsxs)("div",{className:p().manualIntro,children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(l.ZT,{size:"xs",children:B("ledger.cutover.manual.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.manual.hint")})]}),(0,t.jsxs)("label",{className:p().balanceDateField,children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.manual.balanceDate")}),(0,t.jsx)("input",{className:p().dateInput,type:"date",value:ec,onChange:e=>{ea(e.target.value),eD()}})]})]}),(0,t.jsx)("div",{className:p().manualRows,children:eo.map(e=>(0,t.jsxs)("div",{className:p().manualRow,children:[(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.manual.accountCode")}),(0,t.jsx)("input",{className:p().fieldInput,inputMode:"numeric",maxLength:20,placeholder:B("ledger.cutover.manual.accountPlaceholder"),value:e.accountCode,onChange:r=>eB(e.id,{accountCode:r.target.value})})]}),(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.manual.side")}),(0,t.jsxs)("select",{className:p().fieldInput,value:e.side,onCh
1ange:r=>eB(e.id,{side:r.target.value}),children:[(0,t.jsx)("option",{value:"debit",children:B("ledger.cutover.manual.debit")}),(0,t.jsx)("option",{value:"credit",children:B("ledger.cutover.manual.credit")})]})]}),(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.manual.amount")}),(0,t.jsx)("input",{className:p().fieldInput,inputMode:"decimal",placeholder:"0.00",value:e.amount,onChange:r=>eB(e.id,{amount:r.target.value})})]}),(0,t.jsxs)("label",{children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.manual.memo")}),(0,t.jsx)("input",{className:p().fieldInput,maxLength:255,value:e.memo,onChange:r=>eB(e.id,{memo:r.target.value})})]}),(0,t.jsx)("button",{"aria-label":B("ledger.cutover.manual.remove"),className:p().removeRow,type:"button",onClick:()=>eO(e.id),children:"\xd7"})]},e.id))}),(0,t.jsxs)("div",{className:p().manualFooter,children:[(0,t.jsx)(l.zx,{size:"s",theme:"secondary",onClick:()=>{el(e=>[...e,{id:Math.max(0,...e.map(e=>{let{id:r}=e;return r}))+1,accountCode:"",side:"debit",amount:"",memo:""}]),eD()},children:B("ledger.cutover.manual.addAccount")}),(0,t.jsxs)("div",{className:p().manualTotals,children:[(0,t.jsxs)(l.ZT,{font:"mono",size:"2xs",children:[B("ledger.cutover.manual.debitTotal"),": ",eS.debit.toFixed(2)," â¬"]}),(0,t.jsxs)(l.ZT,{font:"mono",size:"2xs",children:[B("ledger.cutover.manual.creditTotal"),": ",eS.credit.toFixed(2)," ","â¬"]}),(0,t.jsxs)(l.ZT,{font:"mono",size:"2xs",children:[B("ledger.cutover.manual.difference"),":"," ",eS.difference.toFixed(2)," â¬"]})]})]})]}),"formation"!==U&&"datev"===$&&(0,t.jsxs)("div",{className:p().uploads,children:[(0,t.jsx)(N,{accept:".csv,.txt",file:ed.opening,hint:B("ledger.cutover.files.opening.hint"),label:B("ledger.cutover.files.opening.label"),onChange:e=>eH("opening",e)}),("mid_year"===U||"prior_year"===U||!!(null===(u=ed.bookings)||void 0===u?void 0:u.length))&&(0,t.jsx)(T,{accept:".csv,.txt",files:ed.bookings,hint:B("prior_year"===U?"ledger.cutover.priorYear.bookingsHint":"ledger.cutover.files.bookings.hint"),label:B("ledger.cutover.files.bookings.label"),selectionSummary:B("ledger.cutover.files.bookings.selected",{count:null!==(L=null===(x=ed.bookings)||void 0===x?void 0:x.length)&&void 0!==L?L:0}),onChange:eP})]}),(0,t.jsxs)("details",{className:p().optionalData,children:[(0,t.jsxs)("summary",{children:[(0,t.jsx)("span",{children:B("ledger.cutover.optional.title")}),(0,t.jsx)("small",{children:B("ledger.cutover.optional.description")})]}),(0,t.jsxs)("div",{className:p().uploads,children:["formation"===U&&(0,t.jsx)(T,{accept:".csv,.txt",files:ed.bookings,hint:B("ledger.cutover.files.bookings.hint"),label:B("ledger.cutover.files.bookings.label"),selectionSummary:B("ledger.cutover.files.bookings.selected",{count:null!==(D=null===(j=ed.bookings)||void 0===j?void 0:j.length)&&void 0!==D?D:0}),onChange:eP}),(0,t.jsx)(N,{accept:".csv,.txt",file:ed.parties,hint:B("ledger.cutover.files.parties.hint"),label:B("ledger.cutover.files.parties.label"),onChange:e=>eH("parties",e)}),(0,t.jsx)(N,{accept:".csv,.txt",file:ed.assets,hint:B("ledger.cutover.files.assets.hint"),label:B("ledger.cutover.files.assets.label"),onChange:e=>eH("assets",e)})]})]}),(0,t.jsx)(l.ZT,{className:p().boundary,color:"second",size:"2xs",children:B("mid_year"===U?"ledger.cutover.bankBoundaryMidYear":"ledger.cutover.bankBoundaryYearStart")})]}),(0,t.jsxs)("div",{className:p().stepActions,children:[(0,t.jsx)(l.zx,{size:"s",theme:"text",onClick:()=>eW(1),children:B("ledger.cutover.actions.back")}),(0,t.jsx)(l.zx,{disabled:!eJ,size:"s",onClick:()=>eW(3),children:B("ledger.cutover.actions.review")})]})]}),3===em&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:p().section,children:[(0,t.jsxs)("div",{className:p().sectionHeading,children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.review.title")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.review.description")})]}),(0,t.jsxs)("dl",{className:p().reviewList,children:[(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.review.scenario")}),(0,t.jsx)("dd",{children:B("ledger.cutover.modes.".concat(U,".title"))})]}),(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.review.period")}),(0,t.jsxs)("dd",{children:[Q," â ",q]})]}),(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.review.source")}),(0,t.jsx)("dd",{children:"formation"===U?B("ledger.cutover.review.formationSource"):B("ledger.cutover.openingMethods.".concat($,".title"))})]}),"prior_year"===U&&(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.priorYear.sourcePeriod")}),(0,t.jsxs)("dd",{children:[en," â ",ei]})]}),(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.review.selection")}),(0,t.jsx)("dd",{children:"manual"===$&&"formation"!==U?B("ledger.cutover.review.manualAccounts",{count:e2}):B("ledger.cutover.review.files",{count:e1})})]})]}),(0,t.jsxs)("div",{className:p().previewHelp,children:[(0,t.jsx)(l.ZT,{size:"xs",children:B("ledger.cutover.guidance.previewTitle")}),(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.guidance.previewDescription")})]})]}),(0,t.jsxs)("div",{className:p().stepActions,children:[(0,t.jsx)(l.zx,{size:"s",theme:"text",onClick:()=>eW(2),children:B("ledger.cutover.actions.back")}),(0,t.jsx)(l.zx,{isLoading:ez.isLoading,size:"s",onClick:eU,children:B("ledger.cutover.actions.preview")})]}),eK&&(0,t.jsxs)("section",{className:p().preview,children:[!!(null===(f=eK.accountReview)||void 0===f?void 0:null===(_=f.technicalAccounts)||void 0===_?void 0:_.length)&&(0,t.jsxs)("section",{"aria-label":B("ledger.cutover.accounts.technicalTitle"),children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.accounts.technicalTitle")}),(0,t.jsx)(l.ZT,{color:"second",size:"xs",children:B("ledger.cutover.accounts.technicalHint")}),(0,t.jsx)("ul",{children:null===(C=eK.accountReview)||void 0===C?void 0:null===(b=C.technicalAccounts)||void 0===b?void 0:b.map(e=>{let{code:r,name:n}=e;return(0,t.jsxs)("li",{children:[r,n?" \xb7 ".concat(n):""]},r)})})]}),!!(null===(R=eK.accountReview)||void 0===R?void 0:R.accounts.length)&&eK.accountReview&&(0,t.jsx)(y,{companyId:M,review:eK.accountReview,onPrepared:eL},"".concat(M,"-").concat(H,"-").concat(eK.accountReview.token)),(0,t.jsxs)("div",{className:p().previewHeader,children:[(0,t.jsx)(l.ZT,{size:"sm",children:B("ledger.cutover.preview.title")}),(0,t.jsx)(l.ZT,{color:eQ?"success":"error",font:"mono",size:"xs",children:eQ?B("ledger.cutover.preview.ready"):B("ledger.cutover.preview.blocked")})]}),(0,t.jsxs)("div",{className:p().metrics,children:[(0,t.jsxs)("div",{className:p().metric,children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.preview.opening")}),(0,t.jsx)(l.ZT,{font:"mono",size:"md",children:eK.counts.opening})]}),(0,t.jsxs)("div",{className:p().metric,children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.preview.bookings")}),(0,t.jsx)(l.ZT,{font:"mono",size:"md",children:eK.counts.bookings})]}),(0,t.jsxs)("div",{className:p().metric,children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.preview.bank")}),(0,t.jsxs)(l.ZT,{font:"mono",size:"md",children:[eK.reconciliation.bankBalance," â¬"]})]}),(0,t.jsxs)("div",{className:p().metric,children:[(0,t.jsx)(l.ZT,{color:"second",size:"2xs",children:B("ledger.cutover.preview.cash")}),(0,t.jsxs)(l.ZT,{font:"mono",size:"md",children:[eK.reconciliation.cashBalance," â¬"]})]})]}),eK.sourceReconciliation&&(0,t.jsxs)("div",{className:p().previewHelp,children:[(0,t.jsx)(l.ZT,{size:"xs",children:B("ledger.cutover.priorYear.reconciliation")}),(0,t.jsx)(l.ZT,{size:"2xs",children:B("ledger.cutover.priorYear.sourceCounts",eK.sourceReconciliation)}),(0,t.jsxs)("dl",{className:p().reviewList,children:[(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsxs)("dt",{children:[B("ledger.cutover.manual.debitTotal")," /"," ",B("ledger.cutover.manual.creditTotal")]}),(0,t.jsxs)("dd",{children:[eK.sourceReconciliation.debitTotal," ⬠/"," ",eK.sourceReconciliation.creditTotal," â¬"]})]}),(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.priorYear.netIncome")}),(0,t.jsxs)("dd",{children:[eK.sourceReconciliation.netIncome," â¬"]})]}),(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:B("ledger.cutover.priorYear.carriedResult")}),(0,t.jsxs)("dd",{children:[eK.sourceReconciliation.carriedResult," â¬"]})]})]}),(0,t.jsxs)("details",{children:[(0,t.jsx)("summary",{children:B("ledger.cutover.priorYear.balances")}),(0,t.jsx)("dl",{className:p().reviewList,children:Object.entries(eK.sourceReconciliation.balances).map(e=>{let[r,n]=e;return(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:r}),(0,t.jsxs)("dd",{children:[n," â¬"]})]},r)})})]}),(0,t.jsxs)("details",{children:[(0,t.jsx)("summary",{children:B("ledger.cutover.priorYear.openingBalances")}),(0,t.jsx)("dl",{className:p().reviewList,children:Object.entries(eK.sourceReconciliation.openingBalances).map(e=>{let[r,n]=e;return(0,t.jsxs)("div",{className:p().reviewRow,children:[(0,t.jsx)("dt",{children:r}),(0,t.jsxs)("dd",{children:[n," â¬"]})]},r)})})]})]}),eK.errors.length>0&&(0,t.jsx)("ul",{className:p().errors,children:eK.errors.map(e=>(0,t.jsx)("li",{children:e},e))}),eK.warnings.length>0&&(0,t.jsx)("ul",{className:p().warnings,children:eK.warnings.map(e=>(0,t.jsx)("li",{children:e},e))}),(null===(Z=eK.accountReview)||void 0===Z?void 0:Z.error)&&(0,t.jsx)("p",{role:"alert",children:eK.accountReview.error}),(null===(I=eK.accountReview)||void 0===I?void 0:I.locked)&&(0,t.jsx)("p",{role:"alert",children:B("ledger.cutover.accounts.locked")}),eQ&&(0,t.jsxs)("div",{className:p().confirmation,children:[(0,t.jsxs)("label",{className:p().confirmLabel,children:[(0,t.jsx)("input",{checked:ev,type:"checkbox",onChange:e=>eg(e.target.checked)}),(0,t.jsx)(l.ZT,{size:"xs",tag:"span",children:B("prior_year"===U?"ledger.cutover.priorYear.confirm":"ledger.cutover.actions.confirm")})]}),(0,t.jsx)(l.zx,{disabled:!ev,isLoading:eR.isLoading,size:"s",onClick:e$,children:B("ledger.cutover.actions.import")})]})]})]})]})]})};var I=n(75891),S=n(90071),F=n(42581),L=n.n(F);function D(){let{t:e}=(0,g.$)(),{enabled:r}=(0,a.V)("features.ledger"),n=(0,c.CG)(e=>e.company),[v,m]=(0,s.lr)(),h=(0,d.$N)(r,(0,S.I7)(n),n.country),x=(0,i.useMemo)(()=>{let e=new Date().getFullYear();return Array.from({length:e-2021+1},(r,n)=>e-n)},[]),[p,j]=(0,i.useState)(()=>{let e=Number(v.get("year"));return x.includes(e)?e:new Date().getFullYear()});return h&&n.publicId?(0,t.jsx)(o.VY,{verticalAlign:"top",children:(0,t.jsx)(o.lP,{children:(0,t.jsxs)("div",{className:L().c
1ontainer,children:[(0,t.jsx)(l.mr,{pageName:e("common.bookkeeping")}),(0,t.jsx)(u.E,{active:d.zu.OVERVIEW,children:(0,t.jsxs)("div",{className:L().content,children:[(0,t.jsx)("div",{className:L().controls,children:(0,t.jsx)(l.Ph,{height:"small",options:x,placeholder:e("ledger.yearPlaceholder"),value:p,onChange:e=>{j(e);let r=new URLSearchParams(v);r.set("year",String(e)),m(r,{replace:!0})}})}),(0,t.jsx)(Z,{companyId:n.publicId,year:p})]})})]})})}):(0,t.jsx)(I.AO,{})}},42581:function(e){e.exports={container:"AccountingCutoverPage_container__etjSl",content:"AccountingCutoverPage_content__GcmdA",controls:"AccountingCutoverPage_controls__kxNTw"}},56557:function(e){e.exports={container:"AccountingCutover_container__QnnsN",intro:"AccountingCutover_intro__JJW5y",sectionHeading:"AccountingCutover_sectionHeading__Eje_R",completedBody:"AccountingCutover_completedBody__YBnVg",completed:"AccountingCutover_completed__RdQgK",completedIcon:"AccountingCutover_completedIcon___COxh",migrationAssistant:"AccountingCutover_migrationAssistant__6qAg7",migrationHeader:"AccountingCutover_migrationHeader__IEwEQ",migrationActions:"AccountingCutover_migrationActions__jDAXq",analysisConfirm:"AccountingCutover_analysisConfirm__D_zLL",migrationFiles:"AccountingCutover_migrationFiles__HX86l",analysis:"AccountingCutover_analysis__GcUJX",analysisSummary:"AccountingCutover_analysisSummary__FjayM",analysisFiles:"AccountingCutover_analysisFiles___UmXE",analysisFile:"AccountingCutover_analysisFile__5gqlu",analysisEvidence:"AccountingCutover_analysisEvidence__Epf0o",analysisFileWarnings:"AccountingCutover_analysisFileWarnings__7BTbV",analysisWarnings:"AccountingCutover_analysisWarnings___2xED",progress:"AccountingCutover_progress__hMkaB",progressButton:"AccountingCutover_progressButton__9eomO",progressMarker:"AccountingCutover_progressMarker__Twvtl",progressActive:"AccountingCutover_progressActive__V2OPJ",progressDone:"AccountingCutover_progressDone__Hh3Xb",section:"AccountingCutover_section__gzOXy",preview:"AccountingCutover_preview__RLpKT",modeGrid:"AccountingCutover_modeGrid__AnAMU",sourceGrid:"AccountingCutover_sourceGrid__Yvugw",mode:"AccountingCutover_mode__y8tZ6",modeActive:"AccountingCutover_modeActive__kbJTf",source:"AccountingCutover_source__q65si",sourceActive:"AccountingCutover_sourceActive__xdQza",dateGrid:"AccountingCutover_dateGrid__fRdvi",metrics:"AccountingCutover_metrics__iIdqs",balanceDateField:"AccountingCutover_balanceDateField__Mn5ja",manualRow:"AccountingCutover_manualRow__LWCDN",dateInput:"AccountingCutover_dateInput__ioPFH",fieldInput:"AccountingCutover_fieldInput__fEb1t",manualEditor:"AccountingCutover_manualEditor__8AU_9",manualIntro:"AccountingCutover_manualIntro__6IDAn",manualFooter:"AccountingCutover_manualFooter__nfJKO",previewHeader:"AccountingCutover_previewHeader__swy6Q",confirmation:"AccountingCutover_confirmation__NcCu1",stepActions:"AccountingCutover_stepActions__Ortah",manualRows:"AccountingCutover_manualRows__gMH8k",removeRow:"AccountingCutover_removeRow__6j_xe",manualTotals:"AccountingCutover_manualTotals__xwiO_",uploads:"AccountingCutover_uploads__Kkf_1",uploadRow:"AccountingCutover_uploadRow__7YLBP",fileName:"AccountingCutover_fileName__wh0X4",optionalData:"AccountingCutover_optionalData__KYEYY",boundary:"AccountingCutover_boundary__9GMYw",reviewList:"AccountingCutover_reviewList__GMbOo",reviewRow:"AccountingCutover_reviewRow__Qjke7",previewHelp:"AccountingCutover_previewHelp__ShmWQ",metric:"AccountingCutover_metric__DoM9_",errors:"AccountingCutover_errors__ELRYw",warnings:"AccountingCutover_warnings__u0PFs",confirmLabel:"AccountingCutover_confirmLabel__5GaBR"}},73096:function(e){e.exports={container:"CutoverAccountReview_container__eCu_O",account:"CutoverAccountReview_account__KNdyS",fields:"CutoverAccountReview_fields__PLTca",field:"CutoverAccountReview_field__dr_XI",check:"CutoverAccountReview_check__bAjeC",actions:"CutoverAccountReview_actions__NNPvS",hint:"CutoverAccountReview_hint__3rrH9"}},23376:function(e,r,n){"use strict";n.r(r),n.d(r,{Content:function(){return E},List:function(){return k},Root:function(){return z},Tabs:function(){return _},TabsContent:function(){return N},TabsList:function(){return b},TabsTrigger:function(){return C},Trigger:function(){return R},createTabsScope:function(){return h}});var t=n(80163),i=n(70536),s=n(75918),c=n(24447),a=n(51e3),o=n(81819),l=n(13377),d=n(82932),u=n(63944),v=n(94458),g="Tabs",[m,h]=(0,s.b)(g,[c.Pc]),x=(0,c.Pc)(),[p,j]=m(g),_=t.forwardRef((e,r)=>{let{__scopeTabs:n,value:t,onValueChange:i,defaultValue:s,orientation:c="horizontal",dir:a,activationMode:m="automatic",...h}=e,x=(0,l.useDirection)(a),[j,_]=(0,d.T)({prop:t,onChange:i,defaultProp:null!=s?s:"",caller:g});return(0,v.jsx)(p,{scope:n,baseId:(0,u.M)(),value:j,onValueChange:_,orientation:c,dir:x,activationMode:m,children:(0,v.jsx)(o.WV.div,{dir:x,"data-orientation":c,...h,ref:r})})});_.displayName=g;var f="TabsList",b=t.forwardRef((e,r)=>{let{__scopeTabs:n,loop:t=!0,...i}=e,s=j(f,n),a=x(n);return(0,v.jsx)(c.fC,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:t,children:(0,v.jsx)(o.WV.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:r})})});b.displayName=f;var y="TabsTrigger",C=t.forwardRef((e,r)=>{let{__scopeTabs:n,value:t,disabled:s=!1,...a}=e,l=j(y,n),d=x(n),u=T(l.baseId,t),g=A(l.baseId,t),m=t===l.value;return(0,v.jsx)(c.ck,{asChild:!0,...d,focusable:!s,active:m,children:(0,v.jsx)(o.WV.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":g,"data-state":m?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...a,ref:r,onMouseDown:(0,i.M)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(t)}
1),onKeyDown:(0,i.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(t)}),onFocus:(0,i.M)(e.onFocus,()=>{let e="manual"!==l.activationMode;m||s||!e||l.onValueChange(t)})})})});C.displayName=y;var w="TabsContent",N=t.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,forceMount:s,children:c,...l}=e,d=j(w,n),u=T(d.baseId,i),g=A(d.baseId,i),m=i===d.value,h=t.useRef(m);return t.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,v.jsx)(a.z,{present:s||m,children:n=>{let{present:t}=n;return(0,v.jsx)(o.WV.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":u,hidden:!t,id:g,tabIndex:0,...l,ref:r,style:{...e.style,animationDuration:h.current?"0s":void 0},children:t&&c})}})});function T(e,r){return"".concat(e,"-trigger-").concat(r)}function A(e,r){return"".concat(e,"-content-").concat(r)}N.displayName=w;var z=_,k=b,R=C,E=N},4290:function(e,r,n){"use strict";n.d(r,{VY:function(){return m},aV:function(){return v},fC:function(){return u},xz:function(){return g}});var t=n(80163),i=n(59282),s=n(23376),c=n(34948),a=n(30582);let o={size:{type:"enum",className:"rt-r-size",values:["1","2"],default:"2",responsive:!0},wrap:{type:"enum",className:"rt-r-fw",values:["nowrap","wrap","wrap-reverse"],responsive:!0},justify:{type:"enum",className:"rt-r-jc",values:["start","center","end"],responsive:!0},...c.EG,...a.K};var l=n(15796),d=n(27533);let u=t.forwardRef((e,r)=>{let{className:n,...c}=(0,l.y)(e,d.E);return t.createElement(s.Root,{...c,ref:r,className:i("rt-TabsRoot",n)})});u.displayName="Tabs.Root";let v=t.forwardRef((e,r)=>{let{className:n,color:c,...a}=(0,l.y)(e,o,d.E);return t.createElement(s.List,{"data-accent-color":c,...a,asChild:!1,ref:r,className:i("rt-BaseTabList","rt-TabsList",n)})});v.displayName="Tabs.List";let g=t.forwardRef((e,r)=>{let{className:n,children:c,...a}=e;return t.createElement(s.Trigger,{...a,asChild:!1,ref:r,className:i("rt-reset","rt-BaseTabListTrigger","rt-TabsTrigger",n)},t.createElement("span",{className:"rt-BaseTabListTriggerInner rt-TabsTriggerInner"},c),t.createElement("span",{className:"rt-BaseTabListTriggerInnerHidden rt-TabsTriggerInnerHidden"},c))});g.displayName="Tabs.Trigger";let m=t.forwardRef((e,r)=>{let{className:n,...c}=(0,l.y)(e,d.E);return t.createElement(s.Content,{...c,ref:r,className:i("rt-TabsContent",n)})});m.displayName="Tabs.Content"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.