PageSourceSearch

https://gaeldst.dk/_next/static/chunks/4573.b1b24ca61cb47d6a.js

js gaeldst.dk collected 2026-09-25 15:17:13 UTC 44,040 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4573],{84573:function(e,t,n){"use strict";n.r(t),n.d(t,{ResidualAndRateTaxFeature:function(){return Q}});var a=n(85893),r=n(16740),l=n(42053),i=n(12314),o=n(67294),s=n(87536),d=n(94594),c=n(97368),u=n(50199),_=n(15541),p=n.n(_);let m=e=>{let{texts:t,formData:n,taxYear:r,ocrLine:l,finalAmount:i,interestAmount:o,interestStartDate:s,interestEndDate:_,onGoBack:m,onPrint:x}=e,f=new Date().toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}),y=n.taxPaymentDate?n.taxPaymentDate instanceof Date?n.taxPaymentDate.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}):new Date(n.taxPaymentDate).toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}):f,v=s&&_?"Rente fra ".concat(s.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"})," til ").concat(_.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"})):"";return(0,a.jsxs)("div",{className:p().BankConfirmStep,children:[(0,a.jsx)(d.H,{className:p().BankConfirmStep_intro,content:t.introText}),(0,a.jsxs)("div",{className:p().BankConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.cprLabel}),(0,a.jsx)("span",{children:n.identificationNumber})]}),(0,a.jsxs)("div",{className:p().BankConfirmStep_infoRow,children:[(0,a.jsxs)("span",{children:[t.paymentTypeLabel," ",r]}),(0,a.jsxs)("span",{children:[(0,u.k)(n.taxAmount)," ",t.kronerText]})]}),null!==o&&v&&(0,a.jsxs)("div",{className:p().BankConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:v}),(0,a.jsxs)("span",{children:[(0,u.k)(o)," ",t.kronerText]})]}),(0,a.jsxs)("div",{className:p().BankConfirmStep_infoBox,children:[(0,a.jsxs)("div",{className:p().BankConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.figCodeLabel}),(0,a.jsx)("span",{children:(0,a.jsx)("strong",{children:l||""})})]}),(0,a.jsxs)("div",{className:p().BankConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.paymentAmountLabel}),(0,a.jsx)("span",{children:(0,a.jsxs)("strong",{children:[(0,u.k)(i)," ",t.kronerText]})})]}),(0,a.jsxs)("div",{className:p().BankConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.paymentDateLabel}),(0,a.jsx)("span",{children:(0,a.jsx)("strong",{children:y})})]})]}),t.disclaimerText&&(0,a.jsx)(d.H,{className:p().BankConfirmStep_disclaimer,content:t.disclaimerText}),(0,a.jsxs)("div",{className:p().BankConfirmStep_actions,children:[(0,a.jsx)(c._,{type:"button",label:t.backButtonText,icon:"ArrowLeft",onClick:m}),(0,a.jsx)(c._,{type:"button",label:t.printButtonText,icon:"Print",onClick:x})]})]})};var x=n(94894),f=n(26680),y=n(89479),v=n.n(y);let h=e=>{let{texts:t,formData:n,taxYear:r,finalAmount:l,interestAmount:i,interestStartDate:o,interestEndDate:s,onGoBack:_,onPayWithCard:p,isLoading:m}=e,y=new Date().toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}),h=s?s.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}):y,S=o&&s?"Rente fra ".concat(o.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"})," til ").concat(s.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"})):"";return(0,a.jsxs)("div",{className:v().CardConfirmStep,children:[(0,a.jsx)(x.X,{headingLevel:"h2",children:t.heading}),t.introText&&(0,a.jsx)(d.H,{className:v().CardConfirmStep_intro,content:t.introText}),(0,a.jsxs)("div",{className:v().CardConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.cprLabel}),(0,a.jsx)("span",{children:n.identificationNumber})]}),(0,a.jsxs)("div",{className:v().CardConfirmStep_infoRow,children:[(0,a.jsxs)("span",{children:[t.paymentTypeLabel," ",r]}),(0,a.jsxs)("span",{children:[(0,u.k)(n.taxAmount)," ",t.kronerText]})]}),null!==i&&S&&(0,a.jsxs)("div",{className:v().CardConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:S}),(0,a.jsxs)("span",{children:[(0,u.k)(i)," ",t.kronerText]})]}),(0,a.jsxs)("div",{className:v().CardConfirmStep_infoBox,children:[(0,a.jsxs)("div",{className:v().CardConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.paymentAmountLabel}),(0,a.jsx)("span",{children:(0,a.jsxs)("strong",{children:[(0,u.k)(l)," ",t.kronerText]})})]}),(0,a.jsxs)("div",{className:v().CardConfirmStep_infoRow,children:[(0,a.jsx)("span",{children:t.paymentDateLabel}),(0,a.jsx)("span",{children:(0,a.jsx)("strong",{children:h})})]})]}),t.disclaimerText&&(0,a.jsx)(d.H,{className:v().CardConfirmStep_disclaimer,content:t.disclaimerText}),(0,a.jsxs)("div",{className:v().CardConfirmStep_actions,children:[(0,a.jsx)(c._,{type:"button",label:t.backButtonText,icon:"ArrowLeft",onClick:_,disabled:m}),(0,a.jsx)(f.zx,{onClick:p,disabled:m,type:"button",children:t.payWithCardButtonText})]})]})};var S=n(15171),C=n.n(S);let P=e=>{let{texts:t,orderNumber:n,onClose:r}=e;return(0,a.jsxs)("div",{className:C().PaymentFailureStep,children:[(0,a.jsx)(x.X,{headingLevel:"h2",children:"Payment Failed"}),n&&(0,a.jsxs)("p",{children:[t.orderNumberLabel," ",n]}),(0,a.jsx)("p",{className:C().PaymentFailureStep_errorText,children:t.failureText}),(0,a.jsx)("div",{className:C().PaymentFailureStep_actions,children:(0,a.jsx)(f.zx,{onClick:r,type:"button",children:t.closeText})})]})};var b=n(67198),g=n.n(b);let T=e=>{let{texts:t,formData:n,onPayWithCard:r,onPayWithBank:l,isLoading:i}=e,o=n.taxPaymentDate?n.taxPaymentDate instanceof Date?n.taxPaymentDate.toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}):new Date(n.taxPaymentDate).toLocaleDateString("da-DK",{day:"2-digit",month:"long",year:"numeric"}):"";return(0,a.jsxs)("div",{className:g().PaymentPrefilledStep,children:[(0,a.jsx)(x.X,{headingLevel:"h2",children:t.heading}),(0,a.jsxs)("div",{className:g().PaymentPrefilledStep_info,children:[(0,a.jsxs)("div",{className:g().PaymentPrefilledStep_infoRow,children:[(0,a.jsx)("span",{children:t.identificationNumberLabel}),(0,a.jsx)("span",{children:n.identificationNumber})]}),(0,a.jsxs)("div",{className:g().PaymentPrefilledStep_infoRow,children:[(0,a.jsx)("span",{children:t.taxAmountLabel}),void 0!==n.taxAmount&&(0,a.jsxs)("span",{children:[(0,u.k)(n.taxAmount)," ",t.kronerText]})]}),n.taxPaymentDate&&(0,a.jsxs)("div",{className:g().PaymentPrefilledStep_infoRow,children:[(0,a.jsx)("span",{children:t.taxPaymentDateLabel}),(0,a.jsx)("span",{children:o})]})]}),(0,a.jsx)(d.H,{className:g().PaymentPrefilledStep_intro,content:t.introText}),(0,a.jsxs)("div",{className:g().PaymentPrefilledStep_actions,children:[(0,a.jsx)("span",{}),(0,a.jsxs)("div",{className:g().PaymentPrefilledStep_paymentActions,children:[(0,a.jsx)(f.zx,{onClick:r,disabled:i,type:"button",children:t.payWithCardButtonText}),(0,a.jsx)(c._,{type:"button",label:t.payWithBankButtonText,icon:"BetalingsId",onClick:l,disabled:i})]})]})]})};var j=n(8190),N=n(94184),I=n.n(N),w=n(9198),A=n.n(w),k=n(81478);
1n(91401);var D=n(37909),L=n.n(D),F=n(29578),B=n(11230);let R=(0,o.forwardRef)(function(e,t){let n=(0,o.useRef)(null),r=(0,o.useRef)(null);return(0,o.useLayoutEffect)(()=>{if(n.current){let t=n.current.querySelector("input");if(t&&(r.current=t,e.onKeyDown))return t.addEventListener("keydown",e.onKeyDown),()=>{t.removeEventListener("keydown",e.onKeyDown)}}},[e.onKeyDown]),(0,o.useImperativeHandle)(t,()=>{if(r.current)return r.current;if(n.current){let e=n.current.querySelector("input");if(e)return e}return null},[]),(0,a.jsx)("div",{ref:n,children:(0,a.jsx)(B.a,{...e})})}),E=e=>{let{className:t="",label:n,locale:r=k.Z,placeholder:l,error:i,isRequired:o,disabled:d=!1,minDate:c,maxDate:u,defaultDate:_,name:p,control:m,rules:x}=e,f=e=>e instanceof Date?e:e?new Date(e):_;return(0,a.jsxs)("div",{className:I()(L().FormControlled_datePicker,t),children:[(0,a.jsx)(F.z,{forId:p,text:n,required:o}),(0,a.jsx)(s.Qr,{control:m,name:p,rules:x,defaultValue:_,render:e=>{let{field:{onChange:t,value:n}}=e;return(0,a.jsx)(A(),{id:p,name:p,selected:f(n),onChange:t,placeholderText:l,disabled:d,minDate:c,maxDate:u,dateFormat:"dd-MM-yyyy",required:o,customInput:(0,a.jsx)(R,{error:null==i?void 0:i.message,disabled:d}),locale:r})}})]})};var M=n(47907),O=n.n(M);let Y=e=>{let{texts:t,register:n,control:r,errors:l,watch:i,isInterestApplicable:o,now:s,cutOffDate:_,onCalculateInterest:p,interestAmount:m,interestRate:y,amountWithInterest:v,onGoBack:h,onPayWithCard:S,onPayWithBank:C,isFormValid:P,isLoading:b,isIdentificationNumberPrefilled:g=!1,taxYearDisplay:T}=e,N=i("taxAmount"),w=i("taxPaymentDate");return(0,a.jsxs)("div",{className:O().PaymentStep,children:[(0,a.jsx)(d.H,{className:O().PaymentStep_intro,content:t.introText}),(0,a.jsxs)(x.X,{className:O().PaymentStep_heading,headingLevel:"h2",children:[t.incomeYearLabel," ",T]}),(0,a.jsxs)("div",{className:O().PaymentStep_form,children:[(0,a.jsx)(j.G,{className:O().PaymentStep_formField,disabled:b||g,error:null==l?void 0:l.identificationNumber,isRequired:!0,label:t.identificationNumber.label,placeholder:t.identificationNumber.label,type:"text",...n("identificationNumber",{required:t.identificationNumber.requiredText,pattern:{value:/^\d{10}$/,message:t.identificationNumber.patternText}})}),o&&(0,a.jsx)(E,{className:O().PaymentStep_formField,name:"taxPaymentDate",control:r,label:t.taxPaymentDate.label,placeholder:t.taxPaymentDate.label,isRequired:!0,disabled:b,error:null==l?void 0:l.taxPaymentDate,minDate:s,maxDate:_,rules:{required:t.taxPaymentDate.requiredText,validate:e=>!e||(e instanceof Date?e:new Date(e))>=new Date(s.getFullYear(),s.getMonth(),s.getDate())||t.taxPaymentDate.dateMustBeInTheFutureText}}),(0,a.jsx)(j.G,{className:O().PaymentStep_formField,disabled:b,error:null==l?void 0:l.taxAmount,isRequired:!0,label:t.taxAmount.label,placeholder:t.taxAmount.placeholder,type:"number",appendText:t.kronerText,...n("taxAmount",{required:t.taxAmount.requiredText,valueAsNumber:!0,min:{value:1,message:t.taxAmount.requiredText},max:{value:t.taxAmount.maxAmount,message:t.taxAmount.maxAmountText}})}),o&&(0,a.jsx)("div",{className:O().PaymentStep_buttonWrapper,children:(0,a.jsx)(c._,{className:I()(O().PaymentStep_button,O().PaymentStep_button___right),type:"button",label:v?t.reCalculateInterestText:t.calculateInterestText,icon:"Calculator",onClick:()=>p(),disabled:b||null==N||N<0||Number.isNaN(Number(N))||!w})}),o&&null!==v&&(0,a.jsxs)("div",{className:O().PaymentStep_infoBox,children:[(0,a.jsxs)("div",{className:O().PaymentStep_infoRow,children:[(0,a.jsxs)("span",{children:[t.interestText,null!==y?" ".concat(y.toFixed(2).replace(".",",")," ").concat(t.percentProAnnoText):"",":"]}),(0,a.jsxs)("span",{children:[null!==m?(0,u.k)(m):""," ",t.kronerText]})]}),(0,a.jsxs)("div",{className:O().PaymentStep_infoRow,children:[(0,a.jsxs)("span",{children:[t.totalPaymentText,":"]}
1),(0,a.jsx)("span",{children:(0,a.jsxs)("strong",{children:[(0,u.k)(v)," ",t.kronerText]})})]})]})]}),(0,a.jsxs)("div",{className:O().PaymentStep_actions,children:[!g&&h?(0,a.jsx)(c._,{type:"button",label:t.backButtonText,icon:"ArrowLeft",onClick:h,disabled:b}):(0,a.jsx)("span",{}),P&&(!o||null!==m)&&(0,a.jsxs)("div",{className:O().PaymentStep_paymentActions,children:[(0,a.jsx)(f.zx,{onClick:S,disabled:b||!P,type:"button",children:t.payWithCardButtonText}),(0,a.jsx)(c._,{type:"button",label:t.payWithBankButtonText,icon:"BetalingsId",onClick:C,disabled:b||!P})]})]})]})};var W=n(74800),z=n(25779),H=n.n(z);let q=e=>{let{texts:t,orderNumber:n,onClose:r}=e;return(0,a.jsxs)("div",{className:H().PaymentSuccessStep,children:[(0,a.jsxs)(x.X,{headingLevel:"h2",children:[(0,a.jsx)(W.Wj,{name:"OK",className:H().PaymentSuccessStep_icon}),"Payment Successful"]}),n&&(0,a.jsxs)("p",{children:[t.orderNumberLabel," ",n]}),(0,a.jsx)("p",{children:t.successText}),(0,a.jsx)("div",{className:H().PaymentSuccessStep_actions,children:(0,a.jsx)(f.zx,{onClick:r,type:"button",children:t.closeText||"Close page"})})]})};var K=n(37297),V=n.n(K);let X=e=>{let{register:t,handleSubmit:n,setValue:r,formState:{errors:d,isValid:c},watch:u,control:_}=(0,s.cI)({mode:"onChange",defaultValues:{identificationNumber:"",taxAmount:void 0,taxPaymentDate:e.now}}),p=u(),x=()=>"ResidualTaxInstallment"===e.paymentType||"BTaxInstallment"===e.paymentType,[f,y]=(0,o.useState)((()=>{let t=e.identificationNumber&&void 0!==e.taxAmount&&e.taxPaymentDate;return x()&&t?"PAYMENT_PREFILLED":"PAYMENT"})()),[v,S]=(0,o.useState)(!1),[C,b]=(0,o.useState)(null),[g,j]=(0,o.useState)(null),[N,I]=(0,o.useState)(null),[w,A]=(0,o.useState)(null),[k,D]=(0,o.useState)(null),[L,F]=(0,o.useState)(null),[B,R]=(0,o.useState)(null),[E,M]=(0,o.useState)(null),[O,W]=(0,o.useState)(null);(0,o.useEffect)(()=>{if(e.orderNumber&&M(e.orderNumber),e.identificationNumber&&r("identificationNumber",e.identificationNumber,{shouldValidate:!0}),e.taxPaymentDate&&(e.taxPaymentDate instanceof Date?e.taxPaymentDate:new Date(e.taxPaymentDate))>=new Date(e.now.getFullYear(),e.now.getMonth(),e.now.getDate())&&r("taxPaymentDate",e.taxPaymentDate,{shouldValidate:!0}),void 0!==e.taxAmount&&e.taxAmount>0&&r("taxAmount",e.taxAmount,{shouldValidate:!0}),"success"===e.step)y("PAYMENT_SUCCESS");else if("failure"===e.step)y("PAYMENT_FAILURE");else{let t=e.identificationNumber&&void 0!==e.taxAmount&&e.taxPaymentDate;x()&&t?y("PAYMENT_PREFILLED"):y("PAYMENT")}},[e.step,e.orderNumber,e.identificationNumber,e.taxPaymentDate,e.taxAmount,e.paymentType,r]);let z=(0,o.useMemo)(()=>{if(e.taxYear){let t=parseInt(e.taxYear,10);if(!isNaN(t))return t}return e.now.getFullYear()},[e.taxYear,e.now]),H=(0,o.useMemo)(()=>{let t=e.now<=e.cutOffDate,n=e.now.getFullYear();return t&&z===n-1},[z,e.now,e.cutOffDate]),K=(0,o.useCallback)(async(e,t)=>{if(b(null),t){S(!0);try{await t()}catch(e){b(e.message||"An error occurred"),S(!1);return}S(!1)}y(e)},[]),X=(0,o.useCallback)(async()=>{S(!0);try{let t=k?k.toISOString():null,n=await e.getPaymentLink(z,p.taxAmount,N,g,p.identificationNumber,t);window.location.href=n}catch(e){b(e.message||"Failed to get payment link"),S(!1)}},[z,p,e,N,g,k]),G=(0,o.useCallback)(async t=>{let n=null!=t?t:p.taxPaymentDate;if(p.taxAmount&&n){S(!0);try{let t=await e.calculateInterest(p.taxAmount,n);j(t.amount),I(t.interestRate),F(Number(p.taxAmount)+t.amount);let a=new Date(z,0,1);A(a),D(n)}catch(e){b(e.message||"Failed to calculate interest")}finally{S(!1)}}},[p,e,z]),J=(0,o.useCallback)(async t=>{if(new Date>e.cutOffDate&&e.isCutOffDateNotPast){b("The date has passed the cutoff date. The page will reload automatically."),setTimeout(()=>{window.location.reload()},3e3);return}switch(t){case"goToPayment":"CARD_CONFIRM"===f&&p.taxPaymentDate&&H?await K("PAYMENT",async()=>{await G(p.taxPaymentDate)}):await K("PAYMENT"),W(null);break;case"goToPaymentPrefilled":await K("PAYMENT_PREFILLED"),W(null);break;case"payWithCard":"PAYMENT_PREFILLED"===f?W("PAYMENT_PREFILLED"):"PAYMENT"===f&&W("PAYMENT"),("PAYMENT"===f||"PAYMENT_PREFILLED"===f)&&p.taxPaymentDate&&H?await K("CARD_CONFIRM",async()=>{await G(e.now)}):"CARD_CONFIRM"===f?await X():await K("CARD_CONFIRM");break;case"payWithBank":"PAYMENT_PREFILLED"===f?W("PAYMENT_PREFILLED"):"PAYMENT"===f&&W("PAYMENT"),await K("BANK_CONFIRM",async()=>{e.ocrPaymentLine&&R(e.ocrPaymentLine)});break;case"print":window.print();break;case"closePage":window.close()}},[f,p,K,e,g,N,X,G,H,r,O,z]),U="VoluntaryResidualTax"===e.paymentType?e.headlineResidual:e.headlineRate;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.X,{headingLevel:"h1",style:"xl",children:U}),(0,a.jsx)("div",{className:V().ResidualTax,children:(0,a.jsx)("div",{className:V().ResidualTax_wrapper,children:(0,a.jsxs)(i.l,{onSubmit:n(()=>{}),children:[(()=>{switch(f){case"PAYMENT":return(0,a.jsx)(Y,{texts:e.paymentStepTexts,register:t,control:_,errors:d,watch:u,isInterestApplicable:H,now:e.now,cutOffDate:e.cutOffDate,onCalculateInterest:G,interestAmount:g,interestRate:N,amountWithInterest:L,onGoBack:void 0,onPayWithCard:()=>J("payWithCard"),onPayWithBank:()=>J("payWithBank"),isFormValid:c,isLoading:v,isIdentificationNumberPrefilled:!!e.identificationNumber,taxYearDisplay:z});case"PAYMENT_PREFILLED":return(0,a.jsx)(T,{texts:e.paymentPrefilledStepTexts,formData:p,onPayWithCard:()=>J("payWithCard"),onPayWithBank:()=>J("payWithBank"),isLoading:v});case"CARD_CONFIRM":return(0,a.jsx)(h,{texts:e.cardConfirmStepTexts,formData:p,taxYear:z,finalAmount:H?L:p.taxAmount,interestAmount:g,interestStartDate:w,interestEndDate:k,onGoBack:()=>J("PAYMENT_PREFILLED"===O?"goToPaymentPrefilled":"goToPayment"),onPayWithCard:()=>J("payWithCard"),isLoading:v});case"BANK_CONFIRM":return(0,a.jsx)(m,{texts:e.bankConfirmStepTexts,formData:p,taxYear:z,ocrLine:B,finalAmount:H?L:p.taxAmount,interestAmount:g,interestStartDate:w,interestEndDate:k,onGoBack:()=>J("PAYMENT_PREFILLED"===O?"goToPaymentPrefilled":"goToPayment"),onPrint:()=>J("print")});case"PAYMENT_SUCCESS":return(0,a.jsx)(q,{texts:e.paymentSuccessStepTexts,orderNumber:E,onClose:()=>J("closePage")});case"PAYMENT_FAILURE":return(0,a.jsx)(P,{texts:e.paymentFailureStepTexts,orderNumber:E,onClose:()=>J("closePage")});default:return null}})(),C&&(0,a.jsx)("div",{className:V().ResidualTax_error,children:(0,a.jsx)("p",{children:e.errorOccurredText})})]})})})]})};var G=n(58300),J=n(33299),U=n(11163);let Z=(e,t,n)=>{let[a,r]=(0,o.useState)(void 0),[l,i]=(0,o.useState)(!0);(0,o.useEffect)(()=>{let a=!0;return t.isReady?e?(i(!0),n(e).then(e=>{a&&r(e)}).catch(()=>{a&&r(void 0)}).finally(()=>{a&&i(!1)})):(r(void 0),i(!1)):i(!0),()=>{a=!1}},[e,t.isReady,n]);let s=(null==a?void 0:a.paymentType)==="VoluntaryResidualTax";return{taxPayment:a,isLoading:l,isVoluntaryResidualTax:s}},Q=e=>{var t;let{content:n}=e,[l,i]=(0,o.useState)(!1),s=(0,r.S)(),d=(0,U.useRouter)(),{data:c,status:_}=(0,J.useSession)();(0,o.useEffect)(()=>{i(!0)},[]);let p=new Date,m=p<=new Date(n.properties.cutOffDate),x=function(e){var t,n,a,r,l,i,o,s,d,
1c,_,p,m,x,f,y,v,h,S,C,P,b,g,T,j,N,I,w,A,k,D,L,F,B,R,E,M,O,Y,W,z,H,q,K,V,X,G,J,U,Z,Q,$,ee,et,en,ea,er,el,ei,eo,es,ed,ec,eu,e_,ep,em,ex,ef,ey,ev,eh,eS,eC,eP,eb,eg,eT,ej,eN,eI,ew,eA,ek,eD,eL,eF,eB,eR,eE,eM,eO,eY,eW,ez,eH;let{dictionary:eq,content:eK}=e;return{paymentStepTexts:{introText:eK.properties.paymentStepIntroText.markup.replace("$Amount",(0,u.k)(eK.properties.maxAmount)),incomeYearLabel:null!==(Z=null===(t=eq.getLabel)||void 0===t?void 0:t.call(eq,"IncomeYear"))&&void 0!==Z?Z:"",identificationNumber:{label:null!==(Q=null===(n=eq.getLabel)||void 0===n?void 0:n.call(eq,"Cpr"))&&void 0!==Q?Q:"",requiredText:"".concat(null!==($=null===(a=eq.getLabel)||void 0===a?void 0:a.call(eq,"Cpr"))&&void 0!==$?$:""," ").concat(null!==(ee=null===(r=eq.getError)||void 0===r?void 0:r.call(eq,"Required"))&&void 0!==ee?ee:""),patternText:"".concat(null!==(et=null===(l=eq.getLabel)||void 0===l?void 0:l.call(eq,"Cpr"))&&void 0!==et?et:""," ").concat(null!==(en=null===(i=eq.getError)||void 0===i?void 0:i.call(eq,"CprPattern"))&&void 0!==en?en:"")},taxAmount:{label:null!==(ea=null===(o=eq.getLabel)||void 0===o?void 0:o.call(eq,"AmountInKroner"))&&void 0!==ea?ea:"",placeholder:null!==(er=null===(s=eq.getLabel)||void 0===s?void 0:s.call(eq,"AmountSpecify"))&&void 0!==er?er:"",requiredText:"".concat(null!==(el=null===(d=eq.getLabel)||void 0===d?void 0:d.call(eq,"Amount"))&&void 0!==el?el:""," ").concat(null!==(ei=null===(c=eq.getError)||void 0===c?void 0:c.call(eq,"Required"))&&void 0!==ei?ei:""),maxAmount:eK.properties.maxAmount,maxAmountText:null!==(eo=null===(_=eq.getError)||void 0===_?void 0:_.call(eq,"AmountMaximum$Amount",[(0,u.k)(eK.properties.maxAmount)]))&&void 0!==eo?eo:""},taxPaymentDate:{label:null!==(es=null===(p=eq.getLabel)||void 0===p?void 0:p.call(eq,"PaymentDate"))&&void 0!==es?es:"",requiredText:"".concat(null!==(ed=null===(m=eq.getLabel)||void 0===m?void 0:m.call(eq,"PaymentDate"))&&void 0!==ed?ed:""," ").concat(null!==(ec=null===(x=eq.getError)||void 0===x?void 0:x.call(eq,"Required"))&&void 0!==ec?ec:""),dateMustBeInTheFutureText:null!==(eu=null===(f=eq.getError)||void 0===f?void 0:f.call(eq,"DateMustBeInTheFuture"))&&void 0!==eu?eu:""},calculateInterestText:eK.properties.paymentStepCalculateInterest,reCalculateInterestText:eK.properties.paymentStepReCalculateInterest,interestText:null!==(e_=null===(y=eq.getLabel)||void 0===y?void 0:y.call(eq,"Interest"))&&void 0!==e_?e_:"",totalPaymentText:eK.properties.paymentStepTotalPaymentText,kronerText:null!==(ep=null===(v=eq.getAbbreviation)||void 0===v?void 0:v.call(eq,"Kroner"))&&void 0!==ep?ep:"",backButtonText:null!==(em=null===(h=eq.getAction)||void 0===h?void 0:h.call(eq,"Back"))&&void 0!==em?em:"",payWithCardButtonText:null!==(ex=null===(S=eq.getAction)||void 0===S?void 0:S.call(eq,"PayWithCard"))&&void 0!==ex?ex:"",payWithBankButtonText:null!==(ef=null===(C=eq.getAction)||void 0===C?void 0:C.call(eq,"PayWithBank"))&&void 0!==ef?ef:"",percentProAnnoText:(null!==(ey=null===(P=eq.getAbbreviation)||void 0===P?void 0:P.call(eq,"Percent"))&&void 0!==ey?ey:"")+" "+(null!==(ev=null===(b=eq.getAbbreviation)||void 0===b?void 0:b.call(eq,"PerYear"))&&void 0!==ev?ev:"")},paymentPrefilledStepTexts:{heading:eK.properties.paymentPrefilledStepHeading,introText:eK.properties.paymentPrefilledStepDisclaimer.markup,incomeYearLabel:null!==(eh=null===(g=eq.getLabel)||void 0===g?void 0:g.call(eq,"IncomeYear"))&&void 0!==eh?eh:"",identificationNumberLabel:null!==(eS=null===(T=eq.getLabel)||void 0===T?void 0:T.call(eq,"Cpr"))&&void 0!==eS?eS:"",taxAmountLabel:null!==(eC=null===(j=eq.getLabel)||void 0===j?void 0:j.call(eq,"AmountInKroner"))&&void 0!==eC?eC:"",taxPaymentDateLabel:null!==(eP=null===(N=eq.getLabel)||void 0===N?void 0:N.call(eq,"PaymentDate"))&&void 0!==eP?eP:"",kronerText:null!==(eb=null===(I=eq.getAbbreviation)||void 0===I?void 0:I.call(eq,"Kroner"))&&void 0!==eb?eb:"",payWithCardButtonText:null!==(eg=null===(w=eq.getAction)||void 0===w?void 0:w.call(eq,"PayWithCard"))&&void 0!==eg?eg:"",payWithBankButtonText:null!==(eT=null===(A=eq.getAction)||void 0===A?void 0:A.call(eq,"PayWithBank"))&&void 0!==eT?eT:""},cardConfirmStepTexts:{heading:eK.properties.cardConfirmStepHeading,introText:"",cprLabel:null!==(ej=null===(k=eq.getLabel)||void 0===k?void 0:k.call(eq,"Cpr"))&&void 0!==ej?ej:"",paymentTypeLabel:null!==(eN=null===(D=eq.getLabel)||void 0===D?void 0:D.call(eq,"VoluntaryResidualTaxPayment"))&&void 0!==eN?eN:"",paymentAmountLabel:null!==(eI=null===(L=eq.getLabel)||void 0===L?void 0:L.call(eq,"AmountToPay"))&&void 0!==eI?eI:"",paymentDateLabel:null!==(ew=null===(F=eq.getLabel)||void 0===F?void 0:F.call(eq,"PaymentDate"))&&void 0!==ew?ew:"",disclaimerText:eK.properties.cardConfirmStepDisclaimer.markup,backButtonText:null!==(eA=null===(B=eq.getAction)||void 0===B?void 0:B.call(eq,"Back"))&&void 0!==eA?eA:"",payWithCardButtonText:null!==(ek=null===(R=eq.getAction)||void 0===R?void 0:R.call(eq,"PayWithCard"))&&void 0!==ek?ek:"",kronerText:null!==(eD=null===(E=eq.getAbbreviation)||void 0===E?void 0:E.
1call(eq,"Kroner"))&&void 0!==eD?eD:""},bankConfirmStepTexts:{introText:eK.properties.bankConfirmStepIntroText.markup,cprLabel:null!==(eL=null===(M=eq.getLabel)||void 0===M?void 0:M.call(eq,"Cpr"))&&void 0!==eL?eL:"",paymentAmountLabel:null!==(eF=null===(O=eq.getLabel)||void 0===O?void 0:O.call(eq,"AmountToPay"))&&void 0!==eF?eF:"",figCodeLabel:null!==(eB=null===(Y=eq.getLabel)||void 0===Y?void 0:Y.call(eq,"PaymentId"))&&void 0!==eB?eB:"",paymentDateLabel:null!==(eR=null===(W=eq.getLabel)||void 0===W?void 0:W.call(eq,"PaymentDate"))&&void 0!==eR?eR:"",paymentTypeLabel:null!==(eE=null===(z=eq.getLabel)||void 0===z?void 0:z.call(eq,"VoluntaryResidualTaxPayment"))&&void 0!==eE?eE:"",disclaimerText:eK.properties.bankConfirmStepDisclaimer.markup,backButtonText:null!==(eM=null===(H=eq.getAction)||void 0===H?void 0:H.call(eq,"Back"))&&void 0!==eM?eM:"",printButtonText:null!==(eO=null===(q=eq.getAction)||void 0===q?void 0:q.call(eq,"Print"))&&void 0!==eO?eO:"",kronerText:null!==(eY=null===(K=eq.getAbbreviation)||void 0===K?void 0:K.call(eq,"Kroner"))&&void 0!==eY?eY:""},paymentSuccessStepTexts:{successText:eK.properties.cardResultStepCloseWindowMessage,orderNumberLabel:null!==(eW=null===(V=eq.getLabel)||void 0===V?void 0:V.call(eq,"OrderNumber"))&&void 0!==eW?eW:"",closeText:(null===(X=eq.getAction)||void 0===X?void 0:X.call(eq,"Close"))||"Close page"},paymentFailureStepTexts:{failureText:eK.properties.cardResultStepCancelPaymentText,orderNumberLabel:null!==(ez=null===(G=eq.getLabel)||void 0===G?void 0:G.call(eq,"OrderNumber"))&&void 0!==ez?ez:"",closeText:(null===(J=eq.getAction)||void 0===J?void 0:J.call(eq,"Close"))||"Close page"},errorOccurredText:null!==(eH=null===(U=eq.getError)||void 0===U?void 0:U.call(eq,"ErrorOccurred"))&&void 0!==eH?eH:"",headlineRate:eK.properties.headlineRate,headlineResidual:eK.properties.headlineResidual}}({dictionary:s,content:n}),f=d.isReady?"success"===d.query.step?"success":"failure"===d.query.step?"failure":void 0:void 0,y=d.isReady?d.query.orderNumber:void 0,v=null==c?void 0:c.identifier,{taxPayment:h,isLoading:S,isVoluntaryResidualTax:C}=Z(v,d,(0,o.useCallback)(async e=>{let t=await fetch("/api/residualAndRateTax/get/".concat(e),{method:"GET",credentials:"same-origin"});if(!t.ok)throw Error((await t.json()).message||"Failed to get tax payment");return t.json()},[])),P=null==h?void 0:null===(t=h.taxYear)||void 0===t?void 0:t.toString(),b=null==h?void 0:h.identificationNumber,g=null==h?void 0:h.taxAmount,T=(null==h?void 0:h.interestDate)||(null==h?void 0:h.dueDate),j=T?new Date(T):void 0,N=null==h?void 0:h.paymentType,I=null==h?void 0:h.ocrPaymentLine,w=(0,o.useCallback)(async e=>{if(!v)throw Error("Identifier is required for update");let t=await fetch("/api/residualAndRateTax/update/".concat(v),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({taxAmount:e}),credentials:"same-origin"});if(!t.ok)throw Error((await t.json()).message||"Failed to update tax payment")},[v]),A=(0,o.useCallback)(async(e,t,n,a,r,l)=>{if(!v)throw Error("Identifier is required");if(!N)throw Error("Payment type is required");C&&await w(t);let i="".concat(window.location.origin).concat(d.asPath.split("?")[0]),o=await fetch("/api/residualAndRateTax/get-payment-link",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:v,taxYear:e,taxAmount:t,interestRate:n,interestAmount:a,identificationNumber:r,interestDate:null!=l?l:"",basePath:i,taxDescription:"Voluntary Residual Tax Payment - ".concat(e),paymentType:N}),credentials:"same-origin"});if(!o.ok)throw Error((await o.json()).message||"Failed to get payment link");let s=await o.json();if(!s.paymentPageUrl)throw Error("No redirect URL received from payment service");return s.paymentPageUrl},[v,C,N,d,w]),k=(0,o.useCallback)(async(e,t)=>{let n=t instanceof Date?t:t?new Date(t):new Date,a=await fetch("/api/residualAndRateTax/calculate-interest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({request:{paymentDate:n.toISOString(),amount:e}}),credentials:"same-origin"});if(!a.ok)throw Error((await a.json()).message||"Interest calculation failed");return a.json()},[]);if(!l||"loading"===_||S)return(0,a.jsx)(G.A,{text:""});if(!v&&"success"!==f&&"failure"!==f||v&&!h&&"success"!==f&&"failure"!==f)return(0,a.jsx)("p",{style:{color:"red"},children:x.errorOccurredText});let D={...x,getPaymentLink:A,ocrPaymentLine:I,calculateInterest:k,cutOffDate:new Date(n.properties.cutOffDate),maxAmount:n.properties.maxAmount,now:p,isCutOffDateNotPast:m,step:f,orderNumber:y,taxYear:P,identificationNumber:b,taxAmount:g,taxPaymentDate:j,paymentType:N};return(0,a.jsx)(X,{...D})}},9133:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var a=n(85893),r=n(94184),l=n.n(r),i=n(56815),o=n.n(i);let s=e=>{let{className:t,id:n,children:r}=e;return(0,a.jsx)("div",{id:n,className:l()(o().ErrorMessage,t),children:r})}},53228:function(e,t,n){"use strict";n.d(t,{B:function(){return a.B}});var a=n(9133)},8190:function(e,t,n){"use strict";n.d(t,{G:function(){return c}});var a=n(85893),r=n(94184),l=n.n(r),i=n(67294),o=n(37909),s=n.n(o),d=n(29578);let c=(0,i.forwardRef)((e,t)=>{let{type:n="text",className:r="",label:i,helpText:o,placeholder:c,error:u,isRequired:_,disabled:p=!1,appendText:m,onChange:x,fileTypes:f,...y}=e,{name:v}={...y};return(0,a.jsxs)("div",{className:l()(s().FormControlled_element,r),children:[(0,a.jsx)(d.z,{forId:v,text:i,helpText:o,required:_}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:m?s().FormControlled_inputWithAppendText:"",children:[(0,a.jsx)("input",{className:l()(s().FormControlled_input,{[s().FormControlled_input___isInvalid]:u},{[s().FormControlled_input___disabled]:p}),disabled:p,placeholder:c,ref:t,id:v,name:v,type:n,onChange:x,accept:f,"aria-invalid":u?"true":"false",...y}),m&&(0,a.jsx)("div",{className:s().FormControlled_inputAppendText,children:m})]}),u&&(0,a.jsx)("div",{className:s().FormControlled_error,children:u.message})]})]})})},29578:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var a=n(85893),r=n(59360),l=n.n(r);let i=e=>{let{forId:t,text:n,helpText:r,required:i=!1}=e;return(0,a.jsxs)("label",{className:l().LabelControlled,htmlFor:t,children:[n,i&&(0,a.jsx)("span",{className:l().LabelControlled_requiredAsterix,children:"*"}),r&&(0,a.jsx)("p",{className:l().LabelControlled_helpText,children:r})]})}},11230:function(e,t,n){"use strict";n.d(t,{a:function(){return l}});var a=n(85893),r=n(22634);let l=n(67294).forwardRef((e,t)=>
1{let{value:n,placeholder:l,onClick:i,onFocus:o,onChange:s,disabled:d,error:c}=e;return(0,a.jsx)(r.I,{type:"text",value:n,placeholder:l,ref:t,onFocus:o,onChange:s,onClick:i,disabled:d,textLeft:!0,errors:c?[c]:void 0,button:{icon:"kalender",ariaLabel:l,append:!1,onClick:i,type:"button"}})})},22634:function(e,t,n){"use strict";n.d(t,{I:function(){return j}});var a,r,l,i,o=n(85893),s=n(94184),d=n.n(s),c=n(67294),u=n(60401),_=n.n(u);let p=e=>{let{className:t,textLeft:n=!1,hasErrors:a=!1,disabled:r=!1,formRegister:l,...i}=e;return(0,o.jsx)("input",{className:d()(_().BaseInput,t,n?"":_().BaseInput___textRight,a?_().BaseInput___isInvalid:"",r?_().BaseInput___disabled:""),disabled:r,...null==l?void 0:l.register(l.fieldName,l.options),...i})};var m=n(26680),x=n(53228),f=n(74800),y=n(43620);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var h=function(e){return c.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"currentColor"},e),a||(a=c.createElement("path",{d:"M2.56 7.44h26.96V29.2H2.56zM.48 2.32v29.04H31.6V2.32h-4.16v4.16h-5.2V2.32H9.84v4.16h-5.2V2.32z"})),r||(r=c.createElement("path",{d:"M5.68.24H8.8v5.2H5.68zM23.36.24h3.12v5.2h-3.12zM3.6 8.48h4.16v4.16H3.6zM8.8 8.48h4.16v4.16H8.8zM14 8.48h4.16v4.16H14zM19.2 8.48h4.16v4.16H19.2zM24.4 8.48h4.16v4.16H24.4zM3.6 13.68h4.16v4.16H3.6zM8.8 13.68h4.16v4.16H8.8zM14 13.68h4.16v4.16H14zM19.2 13.68h4.16v4.16H19.2zM24.4 13.68h4.16v4.16H24.4zM3.6 18.88h4.16v4.16H3.6zM8.8 18.88h4.16v4.16H8.8zM14 18.88h4.16v4.16H14zM19.2 18.88h4.16v4.16H19.2zM24.4 18.88h4.16v4.16H24.4zM8.8 24.08h4.16v4.16H8.8z"})))};function S(){return(S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var C=function(e){return c.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),l||(l=c.createElement("path",{d:"M2.8 13.2c0-5.84 4.8-10.64 10.64-10.64s10.64 4.8 10.64 10.64-4.8 10.64-10.64 10.64S2.8 19.12 2.8 13.2m28.24 14.32-6.96-6.96c1.44-2.08 2.32-4.64 2.32-7.36C26.4 6.08 20.64.24 13.44.24S.56 6.08.56 13.2s5.76 12.96 12.96 12.96c2.72 0 5.28-.88 7.36-2.32l6.96 6.96c.48.48 1.04.64 1.6.64s1.2-.24 1.6-.64c.88-.88.88-2.32 0-3.28"})))};function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var b=function(e){return c.createElement("svg",P({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),i||(i=c.createElement("path",{d:"M31.92 14.56c0-.24-.08-.48-.16-.72-.08-.48-.56-.8-1.04-.8h-1.76c-.32 0-.56-.24-.64-.56-.32-.96-.72-1.92-1.2-2.8 0 .08.08.08.08.16-.16-.24-.16-.64.08-.88 0 0 0-.08.08-.08l.96-.96.16-.16c.32-.4.4-.96.16-1.36-.4-.64-.8-1.2-1.28-1.68l-.16-.16c-.32-.32-.64-.56-.96-.88-.24-.16-.4-.32-.64-.4-.4-.24-.96-.16-1.28.16l-.16.16-.96.96s0 .08-.08.08c-.24.24-.64.24-.88.08l.16.16c-.88-.48-1.84-.96-2.88-1.2-.32-.08-.56-.32-.56-.72v-1.6c0-.48-.4-.88-.8-1.04C17.52.08 16.8 0 16.08 0h-.16c-.4 0-.88 0-1.28.08-.24 0-.48.08-.72.16-.48.08-.8.56-.8 1.04v1.76c0 .32-.24.56-.56.72h.08c-.96.24-1.92.64-2.72 1.12-.24.16-.64.16-.88-.08 0 0-.08 0-.08-.08L7.84 3.6l-.16-.16c-.32-.24-.88-.32-1.28-.08-.64.4-1.2.8-1.68 1.28 0 .08-.08.08-.16.16-.24.32-.56.64-.8.96-.16.24-.32.4-.4.64-.24.4-.24.96.08 1.28l.16.16.96.96.08.08c.24.24.24.64.08.88.08 0 .08-.08.16-.16-.48.88-.88 1.84-1.2 2.8-.08.32-.32.56-.64.56H1.36c-.48 0-.88.4-1.04.8-.24.72-.32 1.44-.32 2.16v.16c0 .4 0 .88.08 1.28 0 .24.08.48.16.72.08.48.56.8 1.04.8h1.76c.32 0 .56.24.64.56.24.96.64 1.84 1.12 2.72 0 0 0-.08-.08-.08.16.24.16.64-.08.88 0 0 0 .08-.08.08L3.6 24l-.16.16c-.24.48-.32 1.04-.08 1.44.4.64.8 1.2 1.28 1.68l.16.16c.32.32.64.56.96.88.24.16.4.32.64.4.4.24.96.16 1.28-.16l.16-.16.96-.96s.08 0 .08-.08c.24-.24.64-.24.88-.08.8.48 1.68.8 2.64 1.12.32.08.56.32.56.64v1.68c0 .48.4.88.8 1.04.72.16 1.36.24 2.08.24H16c.4 0 .88 0 1.28-.08.24 0 .48-.08.72-.16.48-.08.8-.56.8-1.04v-1.76c0-.32.24-.56.56-.64-.08 0-.16 0-.16.08 1.04-.24 
11.92-.64 2.8-1.12.24-.16.64-.16.88.08 0 0 .08 0 .08.08l.96.96.16.16c.32.32.88.4 1.28.16.64-.4 1.2-.8 1.68-1.28l.16-.16c.32-.32.56-.64.88-.96.16-.24.32-.4.4-.64.24-.4.16-.96-.16-1.28l-.16-.16-.96-.96s0-.08-.08-.08c-.24-.24-.24-.64-.08-.88 0 .08-.08.08-.08.16.56-.96.96-1.92 1.2-2.96 0 .08 0 .16-.08.24.08-.32.32-.56.64-.56h1.68c.48 0 .88-.32 1.04-.8.16-.72.24-1.36.24-2.08v-.16c.32-.72.32-1.12.24-1.6M16 23.6c-4.24 0-7.6-3.44-7.6-7.6s3.44-7.6 7.6-7.6 7.6 3.44 7.6 7.6-3.36 7.6-7.6 7.6"})))},g=n(90623),T=n.n(g);let j=e=>{let{className:t,appendText:n,shortAppendText:a,button:r,disabled:l,errors:i,errorIcon:s,formRegister:c,...u}=e;return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:d()(T().Input,t),children:[(0,o.jsxs)("div",{className:d()(T().Input_container,((null==r?void 0:r.icon)||n)&&T().Input_container___withButtonOrAppendtext),children:[r&&(0,o.jsx)("div",{className:d()(T().Input_extend,r.append?T().Input_extend___append:T().Input_extend___prepend),children:(null==r?void 0:r.icon)&&(0,o.jsx)(m.zx,{ariaLabel:r.ariaLabel,onClick:r.onClick,type:r.type,buttonSize:"small",children:(0,o.jsx)(f.JO,{className:T().Input_extend___icon,size:"kalender"===r.icon?"md":"sm",children:(e=>{switch(e){case"beregn":return(0,o.jsx)(y.Z,{});case"indstillinger":return(0,o.jsx)(b,{});case"soeg":return(0,o.jsx)(C,{});case"kalender":return(0,o.jsx)(h,{});default:return null}})(r.icon)})})}),(0,o.jsx)(p,{className:d()(T().Input_input,T().Input_input___withButtonIcon),disabled:l,hasErrors:i&&i.length>0,formRegister:c,...u}),n&&(0,o.jsx)("div",{className:d()(T().Input_extend,T().Input_extend___append),children:(0,o.jsx)("span",{className:d()(T().Input_extend___text,a&&T().Input_extend___shortAppendText,l?T().Input_extend___disabled:"",i&&i.length>0&&T().Input_extend___hasError),children:n})})]}),(0,o.jsx)("div",{children:i&&i.length>0&&i.map((e,t)=>(0,o.jsxs)("div",{className:T().Input_errorMessage,children:[s&&(0,o.jsx)(f.JO,{className:T().Input_helpButton,...s}),(0,o.jsx)(x.B,{className:T().Input_errorText,children:e})]},e+t))})]})})}},58300:function(e,t,n){"use strict";n.d(t,{A:function(){return c},$:function(){return d}});var a=n(85893),r=n(67294),l=n(94184),i=n.n(l),o=n(79737),s=n.n(o);let d=e=>{let{text:t,light:n=!1,centered:r=!1,className:l}=e;return(0,a.jsxs)("div",{className:i()(s().Spinner,r&&s().Spinner___centered,l),children:[(0,a.jsx)("div",{className:i()(s().Spinner_icon,n&&s().Spinner_icon___light,!n&&s().Spinner_icon___dark)}),t&&(0,a.jsx)("p",{className:i()(s().Spinner_text,n&&s().Spinner_text___light),children:t})]})},c=e=>{let{text:t,hidden:n=!1}=e,[l,i]=(0,r.useState)("");return(0,r.useEffect)(()=>(document.body.setAttribute("aria-busy",(!n).toString()),document.body.classList[n?"remove":"add"]("modal-open"),i(n?"":"show"),()=>{document.body.setAttribute("aria-busy","false"),document.body.classList.remove("modal-open")}),[n]),n?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fade modal ".concat(l," d-flex align-items-center"),tabIndex:-1,role:"dialog",children:(0,a.jsx)("div",{className:"modal-dialog",children:(0,a.jsx)(d,{text:t})})}),(0,a.jsx)("div",{className:"modal-backdrop fade ".concat(l)})]})}},12314:function(e,t,n){"use strict";n.d(t,{l:function(){return r}});var a=n(85893);let r=e=>{let{className:t,children:n,errorSummary:r,errorTexts:l,onSubmit:i}=e;return(0,a.jsxs)("form",{className:t,onSubmit:i,children:[r>0&&l&&(0,a.jsx)("div",{"aria-live":"assertive",children:(0,a.jsxs)("p",{children:[null==l?void 0:l.submitFailed,". ",null==l?void 0:l.numberOfErrors,": ",r]})}),n]})}},50199:function(e,t,n){"use strict";n.d(t,{V:function(){return r},k:function(){return a}});let a=e=>e.toLocaleString("da-dk"),r=e=>{let t=e.replaceAll(/[.,\s]/g,"");return isNaN(Number(t))||""===t?void 0:Number(t)}},15541:function(e){e.exports={BankConfirmStep:"BankConfirmStep_BankConfirmStep__7e3Ip",BankConfirmStep_intro:"BankConfirmStep_BankConfirmStep_intro__97PLb",BankConfirmStep_infoBox:"BankConfirmStep_BankConfirmStep_infoBox__xUD6V",BankConfirmStep_infoRow:"BankConfirmStep_BankConfirmStep_infoRow__Sf9yf",BankConfirmStep_disclaimer:"BankConfirmStep_BankConfirmStep_disclaimer__BAfE3",BankConfirmStep_actions:"BankConfirmStep_BankConfirmStep_actions__fENfB"}},89479:function(e){e.exports={CardConfirmStep:"CardConfirmStep_CardConfirmStep__vKL1Z",CardConfirmStep_intro:"CardConfirmStep_CardConfirmStep_intro__4D8qa",CardConfirmStep_infoBox:"CardConfirmStep_CardConfirmStep_infoBox__btWVF",CardConfirmStep_infoRow:"CardConfirmStep_CardConfirmStep_infoRow__oNWYi",CardConfirmStep_disclaimer:"CardConfirmStep_CardConfirmStep_disclaimer__pD1_u",CardConfirmStep_actions:"CardConfirmStep_CardConfirmStep_actions__oYt1W"}}
1,15171:function(e){e.exports={PaymentFailureStep:"PaymentFailureStep_PaymentFailureStep__ssVbx",PaymentFailureStep_errorText:"PaymentFailureStep_PaymentFailureStep_errorText__4pYan",PaymentFailureStep_actions:"PaymentFailureStep_PaymentFailureStep_actions__j89tw"}},67198:function(e){e.exports={PaymentPrefilledStep:"PaymentPrefilledStep_PaymentPrefilledStep__WqfFl",PaymentPrefilledStep_intro:"PaymentPrefilledStep_PaymentPrefilledStep_intro__Thew0",PaymentPrefilledStep_info:"PaymentPrefilledStep_PaymentPrefilledStep_info__Xaru3",PaymentPrefilledStep_infoRow:"PaymentPrefilledStep_PaymentPrefilledStep_infoRow__4GYke",PaymentPrefilledStep_actions:"PaymentPrefilledStep_PaymentPrefilledStep_actions__b0t8D",PaymentPrefilledStep_paymentActions:"PaymentPrefilledStep_PaymentPrefilledStep_paymentActions__VNxkN"}},47907:function(e){e.exports={PaymentStep:"PaymentStep_PaymentStep__fqVEg",PaymentStep_intro:"PaymentStep_PaymentStep_intro__LONBJ",PaymentStep_heading:"PaymentStep_PaymentStep_heading__pWjPJ",PaymentStep_form:"PaymentStep_PaymentStep_form__3ZXK9",PaymentStep_formField:"PaymentStep_PaymentStep_formField__qW6vk",PaymentStep_buttonWrapper:"PaymentStep_PaymentStep_buttonWrapper__eSOXT",PaymentStep_button___right:"PaymentStep_PaymentStep_button___right__Y0tAw",PaymentStep_button:"PaymentStep_PaymentStep_button__k7NHe",PaymentStep_infoBox:"PaymentStep_PaymentStep_infoBox__VNsnX",PaymentStep_infoRow:"PaymentStep_PaymentStep_infoRow__V1_z3",PaymentStep_actions:"PaymentStep_PaymentStep_actions__bTR6v",PaymentStep_paymentActions:"PaymentStep_PaymentStep_paymentActions__PXYzB"}},25779:function(e){e.exports={PaymentSuccessStep:"PaymentSuccessStep_PaymentSuccessStep__lfHUW",PaymentSuccessStep_icon:"PaymentSuccessStep_PaymentSuccessStep_icon__rop9g",PaymentSuccessStep_actions:"PaymentSuccessStep_PaymentSuccessStep_actions___1Oz7"}},37297:function(e){e.exports={ResidualTax:"ResidualTax_ResidualTax__7tXC4",ResidualTax_wrapper:"ResidualTax_ResidualTax_wrapper__ilzMp",ResidualTax_error:"ResidualTax_ResidualTax_error__sRVre"}},60401:function(e){e.exports={BaseInput:"BaseInput_BaseInput__QR2Ct",BaseInput___textRight:"BaseInput_BaseInput___textRight__vCIbm",BaseInput___isInvalid:"BaseInput_BaseInput___isInvalid__JBkED",BaseInput___disabled:"BaseInput_BaseInput___disabled__Lh15Y"}},56815:function(e){e.exports={ErrorMessage:"ErrorMessage_ErrorMessage__6cnos"}},37909:function(e){e.exports={FormControlled_element:"FormControlled_FormControlled_element__ko796",FormControlled_input:"FormControlled_FormControlled_input__V9CF9",FormControlled_password:"FormControlled_FormControlled_password__NYkWt",FormControlled_inputAppendText:"FormControlled_FormControlled_inputAppendText__cLKk2",FormControlled_input___isInvalid:"FormControlled_FormControlled_input___isInvalid__suYPD",FormControlled_password___isInvalid:"FormControlled_FormControlled_password___isInvalid__EOx_g",FormControlled_inputAppendText___isInvalid:"FormControlled_FormControlled_inputAppendText___isInvalid__tQRzG",FormControlled_input___disabled:"FormControlled_FormControlled_input___disabled__rHIur",FormControlled_password___disabled:"FormControlled_FormControlled_password___disabled__IfPMJ",FormControlled_inputAppendText___disabled:"FormControlled_FormControlled_inputAppendText___disabled__ekK_E",FormControlled_requiredAsterix:"FormControlled_FormControlled_requiredAsterix__p2scS",FormControlled_textArea:"FormControlled_FormControlled_textArea__1OxEj",FormControlled_textArea___isInvalid:"FormControlled_FormControlled_textArea___isInvalid__gIMCT",FormControlled_textArea___disabled:"FormControlled_FormControlled_textArea___disabled__Omen7",FormControlled_error:"FormControlled_FormControlled_error__6eczS",FormControlled_inputWithAppendText:"FormControlled_FormControlled_inputWithAppendText__IT4OM",FormControlled_datePicker:"FormControlled_FormControlled_datePicker__n_rii",FormControlled_passwordContainer:"FormControlled_FormControlled_passwordContainer__9mtBf",FormControlled_passwordToggle:"FormControlled_FormControlled_passwordToggle__FaxII",FormControlled_passwordToggle___isInvalid:"FormControlled_Form
1Controlled_passwordToggle___isInvalid__n2ict",FormControlled_passwordToggle___visible:"FormControlled_FormControlled_passwordToggle___visible__V5S3F"}},59360:function(e){e.exports={LabelControlled:"LabelControlled_LabelControlled__ylMjt",LabelControlled_requiredAsterix:"LabelControlled_LabelControlled_requiredAsterix__ZkGeA",LabelControlled_helpText:"LabelControlled_LabelControlled_helpText__hHO9E"}},90623:function(e){e.exports={Input:"Input_Input__W9i4z",Input_container:"Input_Input_container__g_tJl",Input_container___withButtonOrAppendtext:"Input_Input_container___withButtonOrAppendtext__hknh0",Input_input:"Input_Input_input__wublj",Input_input___withButtonIcon:"Input_Input_input___withButtonIcon__S82PK",Input_extend:"Input_Input_extend__f4Qws",Input_extend___prepend:"Input_Input_extend___prepend__Rmxlf",Input_extend___append:"Input_Input_extend___append__4QuLe",Input_extend___icon:"Input_Input_extend___icon__Go_aj",Input_extend___text:"Input_Input_extend___text___9iml",Input_extend___hasError:"Input_Input_extend___hasError__s7Gcf",Input_extend___disabled:"Input_Input_extend___disabled__ZjCDY",Input_helpButton:"Input_Input_helpButton__nJiMr",Input_errorText:"Input_Input_errorText__vZFVW",Input_errorMessage:"Input_Input_errorMessage___r0np"}},79737:function(e){e.exports={Spinner:"Spinner_Spinner__wPWuR",Spinner___centered:"Spinner_Spinner___centered__wbHX7",Spinner_text:"Spinner_Spinner_text__HLfR7",Spinner_text___light:"Spinner_Spinner_text___light__Ys0fm",Spinner_icon:"Spinner_Spinner_icon__aVoGe",rotating:"Spinner_rotating__j1XIS",Spinner_icon___light:"Spinner_Spinner_icon___light__4IOwe",Spinner_icon___dark:"Spinner_Spinner_icon___dark___P83L"}},91401:function(){}}]);
2//# sourceMappingURL=4573.b1b24ca61cb47d6a.js.map

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.