PageSourceSearch

https://www.drangedalsparebank.no/dist/js/5097.c94ce5301318beaa941a.js

js drangedalsparebank.no collected 2026-10-02 21:15:07 UTC 25,632 bytes, 2 lines download raw bytes

1"use strict";(window.webpackChunksdc_neos=window.webpackChunksdc_neos||[]).push([[5097],{24976:(e,n,t)=>{t.d(n,{V:()=>o});var a=t(67294),r=t(57709),l=function(e){return!!(e&&e.length>0)},o=function(e){var n=e.loan,t=(0,r.f)();return a.createElement("div",{role:"complementary",className:"loan-calculation-conditions"},a.createElement("h2",null,null==n?void 0:n.productName),a.createElement("h3",null,t.loanCalculationConditionsLink),l(null==n?void 0:n.existingLoansInfoMessageSections)&&a.createElement(a.Fragment,null,a.createElement("h3",null,t.existingLoans),null==n?void 0:n.existingLoansInfoMessageSections.map(function(e){return a.createElement("section",{key:e.subHeadline},a.createElement("strong",{role:"heading","aria-level":4},e.subHeadline),e.infoMessages.map(function(e){return a.createElement("p",{key:e},e)}))})),l(null==n?void 0:n.newLoanInfoMessageSections)&&a.createElement(a.Fragment,null,a.createElement("h3",null,t.newLoan),null==n?void 0:n.newLoanInfoMessageSections.map(function(e){return a.createElement("section",{key:e.subHeadline},a.createElement("strong",{role:"heading","aria-level":4},e.subHeadline),e.infoMessages.map(function(e){return a.createElement("p",{key:e},e)}))})),l(null==n?void 0:n.generalInfoMessageSections)&&a.createElement(a.Fragment,null,a.createElement("h3",null,t.global.generalConditions),null==n?void 0:n.generalInfoMessageSections.map(function(e){return a.createElement("section",{key:e.subHeadline},a.createElement("strong",{role:"heading","aria-level":4},e.subHeadline),e.infoMessages.map(function(e){return a.createElement("p",{key:e},e)}))})))}},69202:(e,n,t)=>{var a,r,l,o;t.d(n,{EF:()=>i,jS:()=>a,l:()=>l}),(r=a||(a={})).productId="productId",r.interestOnlyPeriodYears="interestOnlyPeriodYears",r.remainingTermsYears="remainingTermsYears",r.remainingTermsMonths="remainingTermsMonths",(o=l||(l={}))[o.productId=0]="productId",o[o.interestOnlyPeriodYears=1]="interestOnlyPeriodYears",o[o.remainingTermsYears=2]="remainingTermsYears",o[o.remainingTermsMonths=3]="remainingTermsMonths";var i="DROPDOWN_VALUE_NO_CHANGE"},28617:(e,n,t)=>{t.d(n,{bk:()=>A,ex:()=>P,s$:()=>C,te:()=>E});var a=t(87536),r=t(69202),l=t(57709),o=t(23443),i=t(67294),c=t(1822),s=t(34636),u=t(88767),m=t(14578),d=t(2344),g=t(80449),f=t(84337);function y(e,n,t,a,r,l,o){try{var i=e[l](o),c=i.value}catch(e){return void t(e)}i.done?n(c):Promise.resolve(c).then(a,r)}function p(e){return function(){var n=this,t=arguments;return new Promise(function(a,r){var l=e.apply(n,t);function o(e){y(l,a,r,o,i,"next",e)}function i(e){y(l,a,r,o,i,"throw",e)}o(void 0)})}}function h(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function v(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){h(e,n,t[n])})}return e}var b=t(35666),E="loan-change-calculation-result",w=function(e){return Object.keys(e).reduce(function(n,t){return null==e[t]||e[t]===r.EF?n:v({},n,h({},t,e[t]))},{})},N=function(e,n){var t,a=e[r.jS.productId],l=Number(e[r.jS.interestOnlyPeriodYears]),i=isNaN(l)?void 0:(0,o.uR)(l),c=Number(e[r.jS.remainingTermsYears]),s=isNaN(c)?void 0:(0,o.uR)(c,Number(null!==(t=e[r.jS.remainingTermsMonths])&&void 0!==t?t:0));return v({loanId:n,fixedPrice:!1},a?{loanProductId:a}:{},i?{interestOnlyPeriod:i}:{},s?{tenorPeriod:s}:{})},A=function(e){var n=Object.keys(e);if(n.length>0){n.sort(function(e,n){return r.l[e]-r.l[n]});var t=n[0],a=document.querySelector("#".concat(t));null==a||a.scrollIntoView({behavior:"smooth",block:"center"})}},C=function(e,n,t){var u=(0,l.f)(),m=(0,a.Gc)(),d=m.setValue,g=m.watch,f=g(n),y=g(t),p=f?Number(f):NaN,h=(0,o.Hd)(e.from),v=h.years,b=h.months,E=(0,o.Hd)(e.to),w=E.years,N=E.months,A=(0,i.useMemo)(function(){return{label:u.noChange,value:r.EF}},[u.noChange]),C=(0,i.useCallback)(function(e){return 0===e?c.H.dayjsLocale.relativeTime.yy.replace("%d","0"):c.H.formatDuration("P"+e+"Y")},[]),P=(0,i.useCallback)(function(e){return 0===e?c.H.dayjsLocale.relativeTime.MM.replace("%d","0"):c.H.formatDuration("P"+e+"M")},[]),L=(0,i.useMemo)(function(){if(void 0===w)return[];var e,n=null!=v?v:0;return[A].concat((e=Array(w+1).keys(),function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()).slice(n).map(function(e){return{label:C(e),value:e.toString()}}))},[C,A,v,w]),O=(0,i.useMemo)(function(){if(isNaN(p))return[];var e=null!=v?v:0;return(0,s.eg)(p,e,w,null!=b?b:0,null!=N?N:0).map(function(e){return{label:P(e),value:e.toString()}})},[P,b,N,v,w,p]);(0,i.useEffect)(function(){O.some(function(e){return e.value===y})||d(t,null)},[y,O]);var k=!isNaN(p)&&O.length>0;
1return{periodYearsOptions:L,periodMonthOptions:O,displayMonths:k}},P=function(e,n){var t=(0,d.h_)(),a=(0,m.Z)();return(0,u.useMutation)(p(b.mark(function n(a){var r,l;return b.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=w(a),l=N(r,e),n.next=4,t.calculateLoanChange(l);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}},n)})),{onSuccess:p(b.mark(function t(a){return b.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return window.sessionStorage.setItem(E,JSON.stringify(a)),t.next=3,(0,g.uX)("".concat(n,"?loanId=").concat(e));case 3:case"end":return t.stop()}},t)})),onError:function(e){a.dismissable(e,(0,f.VE)(e))}})}},32014:(e,n,t)=>{t.d(n,{Z:()=>s});var a,r=t(94184),l=t.n(r),o=t(67294),i=t(96967);function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const s=function(e){var n=e.className,t=e.title,r=e.byline,s=e.alignment,u=void 0===s?"left":s,m=e.ellipseTitle,d=e.titleClassName,g=e.shouldShowIcon,f=e.as,y=void 0===f?"h3":f;return o.createElement("div",{className:l()("card-title",n,(a={},c(a,"card-title--".concat(u),!!u),c(a,"card-title--ellipseTitle",m),a))},g&&o.createElement(i.Z,{iconId:"icon_16_credit-card",svgAttributes:{width:24,height:24,"aria-hidden":!0}}),o.createElement(y,{className:l()(d,"card-title__header")},t),r&&o.createElement("div",{className:"card-title__byline"},r))}},98438:(e,n,t)=>{t.d(n,{j:()=>m});var a,r=t(67294),l=t(57709),o=t(96967),i=t(94184),c=t.n(i),s=t(2992);function u(e){return function(e){if(Array.isArray(e)){for(var n=0,t=new Array(e.length);n<e.length;n++)t[n]=e[n];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var m=function(e){var n,t,i=e.rows,m=e.toggleAfter,d=e.className,g=(0,l.f)().global,f=(n=r.useState(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=[],a=!0,r=!1,l=void 0;try{for(var o,i=e[Symbol.iterator]();!(a=(o=i.next()).done)&&(t.push(o.value),!n||t.length!==n);a=!0);}catch(e){r=!0,l=e}finally{try{a||null==i.return||i.return()}finally{if(r)throw l}}return t}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),y=f[0],p=f[1],h="isLoading"in e,v=r.useMemo(function(){return(a=Math).max.apply(a,u(i.map(function(e){return Array.isArray(e.value)?e.value.length:1})))},[i]),b=function(){p(!y)},E=i.filter(function(e,n){return m&&m>n||!m||y});return r.createElement("div",{className:c()("list-shadowed",d)},r.createElement("table",{className:c()(d),"aria-labelledby":e.ariaLabelledBy},r.createElement("thead",null,r.createElement("tr",{className:"visually-hidden"},r.createElement("th",{scope:"col","aria-hidden":!0}),u(Array(v)).map(function(n,t){return r.createElement("th",{key:t,scope:"col",id:"loan-".concat(t+1)},e.columnItemType," ",t+1)}))),r.createElement("tbody",{key:e.ariaLabelledBy},E.map(function(n){return r.createElement("tr",{key:n.name},r.createElement("th",{scope:"row",id:n.name.toLowerCase().replace(/\s+/g,"-")},n.name),Array.isArray(n.value)?h?n.value.map(function(t,a){return e.isLoading&&e.rowIndex===a&&n.loadingSkeletonWidth?r.createElement("td",{key:a,headers:"loan-".concat(a+1," ").concat(n.name.toLowerCase().replace(/\s+/g,"-"))},n.loadingSkeletonWidth&&r.createElement(s.g,{loadingSkeletonWidth:n.loadingSkeletonWidth})):r.createElement("td",{key:a,headers:"loan-".concat(a+1," ").concat(n.name.toLowerCase().replace(/\s+/g,"-"))},Array.isArray(t)?t.map(function(e,n){return r.createElement("span",{key:"cell-".concat(n)},e)}):t)}):n.value.map(function(e,t){return r.createElement("td",{key:t,headers:"loan-".concat(t+1," ").concat(n.name.toLowerCase().replace(/\s+/g,"-"))},Array.isArray(e)?e.map(function(e,n){return r.createElement("span",{key:"cell-".concat(n)},e)}):e)}):r.createElement("td",{headers:"loan-1 ".concat(n.name.toLowerCase().replace(/\s+/g,"-"))},n.value))}))),void 0!==m&&0!==m&&m<=i.length&&r.createElement("div",{role:"button",className:"list-shadowed__toggle",onClick:b,tabIndex:0,onKeyPress:b},y?r.createElement(r.Fragment,null,g.showLess," ",r.createElement(o.Z,{iconId:"icon_16_arrow-up",svgAttributes:{"aria-hidden":"true"}})):r.createElement(r.Fragment,null,g.showMore," ",r.createElement(o.Z,{iconId:"icon_16_arrow-down",svgAttributes:{"aria-hidden":"true"}}))))}},66908:(e,n,t)=>{t.d(n,{A:()=>a,M:()=>r});var a={rat:360,rabbit:460,cat:640,dog:768,wolf:1024,lion:1100,horse:1400,rhino:1520,elephant:1670},r={};
1Object.keys(a).forEach(function(e){r["".concat(e,"Min")]="(min-width: ".concat(a[e],"px)"),r["".concat(e,"Max")]="(max-width: ".concat(a[e],"px)")})},75097:(e,n,t)=>{t.r(n),t.d(n,{default:()=>G});var a=t(67294),r=t(69189),l=t(32014),o=t(28968),i=t(57709),c=t(1822),s=t(90062),u=t(17249),m=t(78977),d=function(e){var n=e.onSendToAdvisor,t=e.isLoading,c=e.calculationType,s=e.realPropertyAddress,u=e.existingLoanType,d=e.loanChangeSummary,g=d.interestRateResetName,f=d.interestOnlyPeriod,y=d.remainingPeriodToMaturity,p=(0,i.f)();return a.createElement(a.Fragment,null,a.createElement(r.Z,{className:"send-calculation-to-advisor-modal-content"},a.createElement(l.Z,{title:p.sendToAdvisor}),a.createElement("p",null,(0,m.Z)(p.shareCalculation,{bankName:p.bankInformation.bankName})," ",p.advisorReceiveCalculation),a.createElement("div",{className:"send-calculation-to-advisor-modal-content__detail-row"},a.createElement("span",null,p.calculationType),a.createElement("span",null,c)),a.createElement("div",{className:"send-calculation-to-advisor-modal-content__detail-row"},a.createElement("span",null,p.property),a.createElement("span",null,"".concat(s.streetName," ").concat(s.houseNumber,", ").concat(s.postalCode," ").concat(s.postalDistrict))),a.createElement("div",{className:"send-calculation-to-advisor-modal-content__detail-row"},a.createElement("span",null,p.existingLoans),a.createElement("span",null,u)),a.createElement(r.Z,{className:"send-calculation-to-advisor-modal-content__loan-change-summary",shadow:!0},a.createElement(l.Z,{title:p.loanToBeChangedTo}),g&&a.createElement("span",null,p.interestRateResetName,": ",g),f&&a.createElement("span",null,p.interestOnlyPeriod,": ",f),a.createElement("span",null,p.tkRemainingPeriodLabel,": ",y))),a.createElement(o.Z,{fullWidth:!0,className:"send-calculation-to-advisor-modal-content__submit-button",onClick:n,loading:t},p.sendToAdvisor))},g=t(24976),f=t(3911),y=t(14578),p=t(18667);function h(e,n,t,a,r,l,o){try{var i=e[l](o),c=i.value}catch(e){return void t(e)}i.done?n(c):Promise.resolve(c).then(a,r)}var v=t(35666),b=t(98438),E=function(e){var n=e.label,t=e.current,r=e.expected,l=e.result;return a.createElement("tr",null,a.createElement("td",null,n),a.createElement("td",null,t),r&&a.createElement("td",null,r),a.createElement("td",null,l))},w=function(e){var n=e.primaryKeyFigures,t=e.secondaryKeyFigures,r=e.showExpectedFigures,l=e.fees,o=(0,i.f)();return a.createElement("div",{className:"loan-change-calculation-content__table-container"},a.createElement("table",{className:"loan-change-calculation-content__table"},a.createElement("thead",null,a.createElement("tr",null,a.createElement("th",
1null,o.resultsOverview),a.createElement("th",null,o.global.current),r&&a.createElement("th",null,o.expected),a.createElement("th",null,o.global.result))),a.createElement("tbody",null,n.map(function(e){return a.createElement(E,{key:e.title,label:e.title,current:e.current,expected:e.expected,result:e.calculated})}),t.map(function(e){return a.createElement(E,{key:e.title,label:e.title,current:e.current,expected:e.expected,result:e.calculated})}))),l.length>0&&a.createElement(a.Fragment,null,a.createElement("h3",{id:"fees-table-header",className:"loan-change-calculation-content__fees-table-header"},o.refinancingFees),a.createElement(b.j,{className:"loan-change-calculation-content__fees-list",rows:l.map(function(e){return{name:e.displayName,value:c.H.formatCurrency(e.feeAmount,s.NE.DKK,{showCurrencyDisplay:!0})}}),isLoading:!1,"aria-labelledby":"fees-table-header"})))},N=t(33747),A=t(84337),C=t(98958),P=function(e){var n=e.figure,t=e.showExpected,r=(0,i.f)();return a.createElement("div",{className:"loan-change-calculation-stack-view__item"},a.createElement("div",{className:"loan-change-calculation-stack-view__label"},n.title),a.createElement("div",{className:"loan-change-calculation-stack-view__value"},r.global.current,": ",n.current),t&&n.expected&&a.createElement("div",{className:"loan-change-calculation-stack-view__value"},r.expected,": ",n.expected),a.createElement("div",{className:"loan-change-calculation-stack-view__value"},r.global.result,": ",n.calculated))},L=function(e){var n=e.primaryKeyFigures,t=e.secondaryKeyFigures,r=e.showExpectedFigures,l=e.fees,o=(0,i.f)();return a.createElement("div",{className:"loan-change-calculation-stack-view"},n.map(function(e){return a.createElement(P,{key:e.title,figure:e,showExpected:r})}),t.map(function(e){return a.createElement(P,{key:e.title,figure:e,showExpected:r})}),l.length>0&&a.createElement(a.Fragment,null,a.createElement("h3",{id:"fees-table-header",className:"loan-change-calculation-content__fees-table-header"},o.refinancingFees),a.createElement(b.j,{className:"loan-change-calculation-content__fees-list",rows:l.map(function(e){return{name:e.displayName,value:c.H.formatCurrency(e.feeAmount,s.NE.DKK,{showCurrencyDisplay:!0})}}),isLoading:!1,"aria-labelledby":"fees-table-header"})))},O=t(66908);function k(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=[],a=!0,r=!1,l=void 0;try{for(var o,i=e[Symbol.iterator]();!(a=(o=i.next()).done)&&(t.push(o.value),!n||t.length!==n);a=!0);}catch(e){r=!0,l=e}finally{try{a||null==i.return||i.return()}finally{if(r)throw l}}return t}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var _=function(e){var n=e.label,t=e.amount;return a.createElement("span",{className:"loan-change-calculation-content__amount-detail","aria-label":n},"".concat(n," ").concat(c.H.formatNumber({value:t.decimalValue,formatOptions:{minimumFractionDigits:t.noOfDecimals}})," ").concat(s.NE.DKK))},I=function(e){var n=e.loanDetails,t=e.loanChangeLoanDetails,s=e.loanChangeCalculation,m=e.loanChangePrecalculation,b=e.selectedAgreements,E=(0,i.f)(),P=k((0,a.useState)(!1),2),I=P[0],x=P[1],T=k((0,a.useState)(!1),2),R=T[0],S=T[1],M=(0,y.Z)(),F=k((0,a.useState)(function(){return"undefined"!=typeof window&&window.matchMedia(O.M.dogMax).matches}),2),j=F[0],D=F[1];(0,a.useEffect)(function(){var e=window.matchMedia(O.M.dogMax),n=function(e){return D(e.matches)};return e.addEventListener("change",n),function(){return e.removeEventListener("change",n)}},[]);var H=(0,f.G)({onSettled:function(){x(!1)},onSuccess:function(){(0,N.hR)(E.calculationsSentMessage,E.yourCalculationWasSent).then()},onError:function(e){M.dismissable(e,(0,A.VE)(e))}}),Z=H.mutateAsync,Y=H.isLoading,K=function(e,n,t){var r,l=(0,i.f)(),o=(0,a.useMemo)(function(){return{calculationCategory:l.calculationCategory,calculationCategoryRemortgage:l.calculationCategoryRemortgage,calculationCategoryRemortgageCash:l.calculationCategoryRemortgageCash,calculationCategorySupplementary:l.calculationCategorySupplementary,calculationCategoryRefinancing:l.calculationCategoryRefinancing,propertyAddress:l.property,propertyValue:l.estimatedPropertyValue,proceeds:l.desiredCashAmount,existingLoan:l.existingLoansToRedeem,existingLoanRefinancing:l.existingLoans,keyFiguresLoanProduct:l.loanType,keyFiguresPrincipalAmount:l.loanAmount,interestOnlyPeriod:l.gracePeriod,tenorPeriod:l.duration,monthlyInstalmentPaymentAfterTaxIncreased:l.monthlyInstalmentPaymentAfterTaxIncreased,monthlyInstalmentPaymentAfterTaxDecreased:l.monthlyInstalmentPaymentAfterTaxDecreased,monthlyPrincipalRepaymentIncreased:l.monthlyPrincipalRepaymentIncreased,monthlyPrincipalRepaymentDecreased:l.monthlyPrincipalRepaymentDecreased,principalAmountOutstandingIncreased:l.principalAmountOutstandingIncreased,principalAmountOutstandingDecreased:l.principalAmountOutstandingDecreased,durationYearValue:l.durationYearValue,loanToBeChangedTo:l.loanToBeChangedTo}},[l]);return(0,a.useCallback)((r=v.mark(function a(){return v.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,e({agreements:t,calculationText:(0,p.I)(c.H,o,n).sendToAdvisorText});case 2:case"end":return a.stop()}},a)}),function(){var e=this,n=arguments;return new Promise(function(t,a){var l=r.apply(e,n);function o(e){h(l,t,a,o,i,"next",e)}function i(e){h(l,t,a,o,i,"throw",e)}o(void 0)})}),[n,o,e,t])}(Z,function(e,n,t){var a,r;return{newMortgageLoanList:[{tenorPeriod:n.calculationFigures.remainingPerio
1dToMaturity,interestOnlyPeriod:n.calculationFigures.interestOnlyPeriod,keyFigures:{loanProduct:null!==(a=n.calculationFigures.interestRateResetName)&&void 0!==a?a:""},comparison:{},extraInformation:{}}],existingMortgageLoanList:[{keyFigures:{loanProduct:null!==(r=t.displayName)&&void 0!==r?r:e.productName}}],loanCalculationCategory:p.Qf.REFINANCING,realPropertyAddress:e.realPropertyAddress,realPropertyValue:e.realPropertyValue}}(n,s,t),b),V=function(e,n,t,a){var r;return(0,C.Cx)({precalcResponse:n,calcResponse:t,loanChangeLoanResponse:e,loanType:null!==(r=e.productLineId)&&void 0!==r?r:"",labels:{loanChangeYesLabel:a.global.yes,loanChangeNoLabel:a.global.no,interestRateResetFrequencyLabel:a.interestRateResetName,monthlyPaymentBeforeTaxLabel:a.refinancingMonthlyInstalmentPayment,monthlyPaymentAfterTaxLabel:a.refinancingMonthlyInstalmentPaymentAfterTax,principalAmountOutstandingLabel:a.principalAmountOutstanding,loanInterestRateLabel:a.refinancingInterestRate,contributionRatePerYearLabel:a.refinancingInterestMarginRate,interestOnlyPeriodLabel:a.refinancingInterestOnlyPeriod,remainingTermLabel:a.refinancingRemainingPeriodLabel,nextInterestRateResetDateLabel:a.refinancingNextOrdinaryRefinanceDate,monthlyInterestLabel:a.monthlyInterest,monthlyPrincipalRepaymentLabel:a.refinancingMonthlyPrincipalRepayment,monthlyContributionLabel:a.monthlyInterestMargin,deferredRepaymentLabel:a.postponedPrincipalRepayment,effectiveInterestRateLabel:a.refinancingEffectiveInterestRate,annualInterestAndContributionLabel:a.oneYearContribution,totalInterestAndContributionOverLoanTermLabel:a.refinancingSumOfInterestAndInterestMargin,totalAmountToBeRepaidLabel:a.refinancingSumOfInstalmentPayments},i18n:c.H})}(t,m,s,E),B=V.termsSceneTitle,q=V.primaryKeyFigures,W=V.secondaryKeyFigures,G=V.termsAndConditions,U=G.generalConditions,X=G.existingLoans;return a.createElement(a.Fragment,null,a.createElement(r.Z,{className:"loan-change-calculation-content"},a.createElement("div",{className:"loan-change-calculation-content__header"},a.createElement(l.Z,{title:n.productName,as:"h2"}),a.createElement(o.Z,{className:"loan-change-calculation-content__send-to-advisor-button",onClick:function(){x(!0)},disabled:I},E.sendToAdvisor)),a.createElement(_,{amount:n.principalAmount.amount,label:E.tkPrincipalAmountLabel}),a.createElement(_,{amount:n.outstandingAmount.amount,label:E.principalAmountOutstanding}),a.createElement("div",{className:"loan-change-calculation-content__conditions"},a.createElement(o.Z,{color:"link-action",onClick:function(){return S(!0)}},E.loanCalculationConditionsLink)),a.createElement("div",{className:"loan-change-calculation-content__divider"}),j?a.createElement(L,{primaryKeyFigures:q,secondaryKeyFigures:W,showExpectedFigures:null!=m.expectedFigures,fees:s.fees}):a.createElement(w,{primaryKeyFigures:q,secondaryKeyFigures:W,showExpectedFigures:null!=m.expectedFigures,fees:s.fees}),a.createElement("div",{className:"loan-change-calculation-content__divider"})),a.createElement(u.Z,{isOpen:I,onRequestClose:function(){return x(!1)},contentLabel:E.sendToAdvisor},a.createElement(d,{onSendToAdvisor:K,isLoading:Y,calculationType:E.calculationCategoryRefinancing,realPropertyAddress:n.realPropertyAddress,existingLoanType:n.productName,loanChangeSummary:{interestRateResetName:s.calculationFigures.interestRateResetName,interestOnlyPeriod:s.calculationFigures.interestOnlyPeriod?c.H.formatDuration(s.calculationFigures.interestOnlyPeriod.replace(/(\d+Y\d+M)\d+D/,"$1")):void 0,remainingPeriodToMaturity:c.H.formatDuration(s.calculationFigures.remainingPeriodToMaturity.replace(/(\d+Y\d+M)\d+D/,"$1"))}})),a.createElement(u.Z,{isOpen:R,onRequestClose:function(){S(!1)},contentLabel:E.loanCalculationConditionsLink},a.createElement(g.V,{loan:{productName:B,existingLoansInfoMessageSections:X.flatMap(function(e){return e.infoMessageSections}),generalInfoMessageSections:U}})))},x=function(e){var n=e.propertyName,t=e.propertyArea,r=(0,i.f)();return a.createElement("header",{className:"property-page-header"},a.createElement("div",{className:"property-page-header__title-container"},a.createElement("img",{loading:"lazy",role:"presentation",alt:"",className:"property-page-header__icon",src:"/dist/styles/assets/gfx/advisor-house.svg"}),a.createElement("h1",{className:"property-page-header__title"},n,a.createElement("span",null,t))),a.createElement("img",{src:"/dist/styles/assets/gfx/totalkredit.svg",className:"totalkredit-sso__totalkredit-logo",loading:"lazy",alt:r.tkLoanLabel}))},T=t(88767),R=t(2344);function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function M(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1))),a.forEach(function(n){S(e,n,t[n])})}return e}function F(e){return["precalculateLoanChange",e]}var j=t(11054),D=t(82412),H=t(46623),Z=t(80449),Y=t(56996),K=t(23222);function V(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var B=function(e){var n,t,r,l,o,c=e.loanId,s=e.loanChangeCalculation,u=e.housingOverviewUrl,m=(0,y.Z)(),d=(0,i.f)(),g=(r={loanId:c},o=(0,R.h_)(),(0,T.useQuery)(M({},function(e,n){var t=M({},n),a={queryFn:function(){return function(e,n){return e.precalculateLoanChange(n)}(e,t)},queryKey:F(n)};return a}(o,r),l))),f=g.data,p=g.isLoading,h=g.error,v=(0,K.r4)({loanId:c}),b=v.data,E=v.isLoading,w=v.error,N=(0,D.aj)(),C=N.isLoading,P=N.error,L=N.selectedAgreements,O=(0,H._V)({loanId:c}),k=O.data,_=O.error,S=O.isLoading,B=null!==(t=null!==(n=null!=h?h:w)&&void 0!==n?n:P)&&void 0!==t?t:_;(0,a.useEffect)(function(){B&&m.dismissable(B,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){V(e,n,t[n])})}return e}({},(0,A.VE)(B),{actionButtons:[{actionLabel:d.backToHousingOverview,onRequestAction:function(){(0,Z.uX)(u||Y.vc.sitecore.endpoints.ebankRoot)}}]}))},[B]);var q=null;return p||C||S||E?q=a.createElement(j.Z,null):f&&s&&L&&k&&b&&(q=a.createElement(I,{loanDetails:k,loanChangePrecalculation:f,loanChangeCalculation:s,loanChangeLoanDetails:b,selectedAgreements:L})),a.createElement("div",{className:"loan-change-calculation"},k&&a.createElement(x,{propertyArea:k.realPropertyAddress.postalDistrict,propertyName:"".concat(k.realPropertyAddress.streetName," ").concat(k.realPropertyAddress.houseNumber)}),q)},q=t(28617),W=function(){var e=window.sessionStorage.getItem(q.te);if(!e)return null;try{return JSON.parse(e)}catch(e){return console.error(e),null}};const G=function(e){var n,t,r=e.housingOverviewUrl,l=(0,y.Z)(),o=(0,i.f)(),c=(n=(0,a.useState)(W),t=1,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=[],a=!0,r=!1,l=void 0;try{for(var o,i=e[Symbol.iterator]();!(a=(o=i.next()).done)&&(t.push(o.value),!n||t.length!==n);a=!0);}catch(e){r=!0,l=e}finally{try{a||null==i.return||i.return()}finally{if(r)throw l}}return t}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}())[0],s=(0,Z.EH)("loanId");return(0,a.useEffect)(function(){c&&s||l.dismissable(new Error(o.loanChangeCalculationNotFound),{actionButtons:[{actionLabel:o.backToHousingOverview,onRequestAction:function(){(0,Z.uX)(r||Y.vc.sitecore.endpoints.ebankRoot)}}]})},[c]),c&&s?a.createElement(B,{loanId:s,loanChangeCalculation:c,housingOverviewUrl:r}):null}}}]);
2//# sourceMappingURL=5097.c94ce5301318beaa941a.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.