PageSourceSearch

https://www.pkoleasing.pl/_next/static/chunks/9308.a707e031b3766db6.js

js pkoleasing.pl collected 2026-10-02 06:04:53 UTC 60,609 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9308],{3557:(e,a,t)=>{var n=t(10862),i=t(96138),l=Object.prototype.hasOwnProperty;e.exports=function(e,a,t){var o=e[a];l.call(e,a)&&i(o,t)&&(void 0!==t||a in e)||n(e,a,t)}},13052:(e,a,t)=>{var n=t(89436),i=t(90432),l=t(96773);e.exports=function(e,a,t){for(var o=-1,r=a.length,s={};++o<r;){var c=a[o],d=n(e,c);t(d,c)&&i(s,l(c,e),d)}return s}},15017:(e,a,t)=>{var n=t(42595),i=t(91075),l=t(37927);e.exports=function(e){return n(e,l,i)}},16900:(e,a,t)=>{var n=t(28041),i=t(88418),l=t(94516);e.exports=function(e,a){return l(e,i(n(a)))}},21519:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>m});var n=t(26514);t(75834);var i=t(26315),l=t(6395),o=t(93794),r=t(38291),s=t(54004),c=t(27133);let d="CalcLoanRrso",p=o.Df.withName("PKOBPCalcLoanRrso").create(()=>({rrsoHeader:{margin:0,fontSize:"14px",lineHeight:"20px",marginBottom:"5px",fontWeight:500},rrsoContent:{margin:0,fontSize:"14px",lineHeight:"20px",marginTop:"22px",fontWeight:300,[s.Ay.breakpoints.up("sm")]:{marginTop:"16px"},[s.Ay.breakpoints.up("lg")]:{marginTop:"14px"},"& p, & div":{fontSize:"inherit"}},wysiwyg:{marginTop:"5px"}})),m=e=>{let{snippetData:a,rrsoExampleFromApi:t,isLoading:o=!1,className:m}=e,{classes:u}=p(),{rrso_example_external:x,rrso_example:g,rrso_legal_notice_desktop:h,rrso_legal_notice_mobile:y}=a,b=(0,l.A)(s.Ay.breakpoints.down("sm")),A=!!x&&!!t;return(b||A||o||g||h)&&(!b||A||o||g||y)?(0,n.jsxs)("div",{"data-cy":"".concat(d),className:m,children:[(0,n.jsx)(i.A,{}),(0,n.jsxs)("div",{className:u.rrsoContent,"data-cy":"".concat(d,"--rrsoContent"),role:"region","aria-live":"polite",children:[!!x&&(0,n.jsx)(c.Ay,{isLoading:o,text:"Trwa ładowanie",size:c.iW.MD}),(A||!x&&!!g)&&(0,n.jsx)("p",{className:u.rrsoHeader,children:"Reprezentatywny przykład"}),(!!t||!!g)&&(0,n.jsx)(r.default,{className:u.wysiwyg,content:x&&t?t:g,products:null==a?void 0:a.product_for_wysiwyg_rendered}),!b&&!!h&&(0,n.jsx)(r.default,{className:u.wysiwyg,content:h,products:null==a?void 0:a.product_for_wysiwyg_rendered}),b&&!!y&&(0,n.jsx)(r.default,{className:u.wysiwyg,content:y,products:null==a?void 0:a.product_for_wysiwyg_rendered})]})]}):null}},32909:e=>{e.exports=function(e){return null===e}},33024:(e,a,t)=>{"use strict";t.d(a,{DM:()=>o,FT:()=>x,MB:()=>r,No:()=>s,TG:()=>p,V6:()=>i,Vd:()=>g,W$:()=>m,dI:()=>d,h9:()=>c,k4:()=>n,ve:()=>u,zn:()=>l});let n="calc-field-loan-amount",i="calc-field-rates-quantity",l="calc-field-check-ecoloan",o="calc-field-check-firstloan",r="calc-card-calculations-of-calc-loan",s="calc-card-calculations-of-calc-loan-amount",c="calc-card-calculations-of-calc-loan-rrso",d="calc-details-calculations-of-calc-loan-installment-amount",p="calc-details-calculations-of-calc-loan-rrso",m="calc-details-calculations-of-calc-loan-amount-you-need",u="calc-details-calculations-of-calc-loan-total-amount-to-pay",x="calc-details-calculations-of-calc-loan-total-cost",g="calc-details-calculations-of-calc-loan-interest"},34658:(e,a,t)=>{"use strict";t.d(a,{T:()=>n});let n=(e,a,t)=>{var n,i,l;let o={event:a,idGTM:e,...t};return window&&(null==(n=window)?void 0:n.dataLayer)&&(null==(l=window)||null==(i=l.dataLayer)||i.push(o)),o}},37258:(e,a,t)=>{"use strict";t.d(a,{A:()=>f});var n=t(26514),i=t(69001),l=t.n(i),o=t(23469),r=t.n(o),s=t(75834),c=t(54907),d=t(6395),p=t(93794),m=t(41905),u=t(17443),x=t(54004),g=t(98945),h=t(99090),y=t(42920),b=t(33024),A=t(74938);let j=r()(()=>Promise.resolve().then(t.bind(t,61265)),{loadableGenerated:{webpack:()=>[61265]}}),v=p.Df.withName("PKOBPCalcLoanDetails").withNestedSelectors().create(e=>{let{classes:a}=e;return{titleContainer:{margin:"0 auto",marginBottom:"30px"},title:{...x.Ay.typography.h4,margin:0,textAlign:"center",lineHeight:"24px !important"},container:{width:"100%",[x.Ay.breakpoints.between("sm",m.$F-1)]:{marginTop:"-20px"},[x.Ay.breakpoints.down("sm")]:{marginTop:"-8px"}},secondRow:{["& .".concat(a.item)]:{[x.Ay.breakpoints.up("sm")]:{marginTop:"20px"}}},item:{[x.Ay.breakpoints.down("sm")]:{paddingTop:"11px"},borderBottom:"1px solid ".concat(x.Ay.palette.secondary.borders)}
1,linebreakDesktop:{[x.Ay.breakpoints.down("md")]:{display:"none"}},type1label:{[x.Ay.breakpoints.down("sm")]:{fontSize:"12px"},position:"relative",display:"block",marginTop:0,marginBottom:"3px",["& .".concat(a.tooltipContainer)]:{bottom:0}},type1value:{...x.Ay.typography.h4,[x.Ay.breakpoints.down("sm")]:{fontSize:"20px",marginBottom:"8px"},display:"inline-block",fontWeight:700,marginTop:0,marginBottom:"20px",lineHeight:"24px !important"},type1value__smaller:{[x.Ay.breakpoints.down("sm")]:{fontSize:"14px",fontWeight:300},display:"inline-block",marginLeft:"8px",fontSize:"16px"},type2label:{[x.Ay.breakpoints.down("sm")]:{fontSize:"12px"},position:"relative",display:"block",marginTop:0,marginBottom:"1px",minHeight:"19px",[x.Ay.breakpoints.down("sm")]:{minHeight:"unset"}},type2label_marginBottom6:{marginTop:"4px",marginBottom:"2px"},type2label_marginTop16:{[x.Ay.breakpoints.between("sm","lg")]:{marginTop:"16px"}},type2value:{[x.Ay.breakpoints.down("sm")]:{fontSize:"16px",marginBottom:"10px"},marginTop:0,marginBottom:"20px",display:"inline-block"},type2value__smaller:{display:"inline-block",marginLeft:"4px",fontSize:"12px",[x.Ay.breakpoints.down("sm")]:{fontWeight:300}},tooltipContainer:{display:"inline-block",position:"absolute",marginLeft:"3px",bottom:"-2px"},aboutCalculatonTitle:{marginTop:"19px",marginBottom:"5px",[x.Ay.breakpoints.down("sm")]:{marginTop:"15px"}},aboutCalculatonText:{marginTop:0}}}),f=e=>{var a,t,i,o,r;let{displayInLeadContext:p,snippetData:f,calculatorData:k,ctaLinkAttr:w,onClickButton:_,cy:C=""}=e,{classes:T}=v(),N=null==(a=(0,u.Rc)())?void 0:a.setModalTitle,L=(0,d.A)(x.Ay.breakpoints.down("md")),z=(0,d.A)(x.Ay.breakpoints.down("sm")),{tooltip_loan_amount:D,tooltip_loan_cost:I,tooltip_to_pay_amount:S,tooltip_interest_on_credited_commission:B}=f,R=null==(t=f.rrso)?void 0:t.tooltip,O=null==(i=f.rates_amount)?void 0:i.tooltip,{rrso:P,ratesAmount:M,totalLoanCost:V,totalAmountToPay:W,commissionPercentage:E,interest:F,interestOnCreditedItems:H}=k;return(0,s.useEffect)(()=>{p&&N("Szczeg\xf3ły koszt\xf3w pożyczki")},[]),(0,n.jsxs)(c.A,{className:T.container,children:[!z&&(0,n.jsx)(c.A,{className:T.titleContainer,children:(0,n.jsx)(y.A,{variant:"body1",className:T.title,id:m.$O,children:"Szczeg\xf3ły koszt\xf3w pożyczki"})}),(0,n.jsx)(c.A,{children:(0,n.jsxs)(h.A,{container:!0,children:[(0,n.jsx)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:!!M&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y.A,{variant:"body4",cy:"rates-amount-label",className:T.type1label,children:["Rata miesięczna",!!O&&(0,n.jsx)(c.A,{className:T.tooltipContainer,children:(0,n.jsx)(j,{...{text:O,symbol:"?",title:"Rata miesięczna"},$_ID:"".concat(C,"--")+b.dI})})]}),(0,n.jsx)(y.A,{variant:"body1",cy:"rates-amount-value",className:T.type1value,children:(0,g.tJ)(M,{precision:0})}),(0,n.jsx)(y.A,{className:T.type1value__smaller,children:"zł"})]})}),(0,n.jsxs)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:[(0,n.jsx)(y.A,{variant:"body4",cy:"rates-label",className:l()(T.type1label),children:"Liczba rat"}),(0,n.jsx)(y.A,{variant:"body2",cy:"rates-value",className:T.type1value,children:k.currentTimeValue})]}),(0,n.jsx)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:!!P&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y.A,{variant:"body4",cy:"rrso-label",className:T.type1label,children:["RRSO",!!R&&(0,n.jsx)(c.A,{className:T.tooltipContainer,children:(0,n.jsx)(j,{...{text:R,symbol:"?",title:"RRSO"},$_ID:"".concat(C,"--")+b.TG})})]}),(0,n.jsx)(y.A,{variant:"body1",cy:"rrso-value",className:T.type1value,children:null==(o=P.toString())?void 0:o.replace(".",",")}),(0,n.jsx)(y.A,{className:T.type1value__smaller,children:"%"})]})}),(0,n.jsxs)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:[(0,n.jsx)(y.A,{variant:"body5",cy:"loan-commission-label",className:l()(T.type2label,T.type2label_marginBottom6,T.type2label_marginTop16),children:"Prowizja"}),(0,n.jsx)(y.A,{variant:"body2",cy:"loan-commission-value",className:T.type2value,children:E?null==(r=E.toString())?void 0:r.replace(".",","):0}),(0,n.jsx)(y.A,{className:T.type2value__smaller,children:"%"})]})]})}),(0,n.jsx)(c.A,{className:T.secondRow,children:(0,n.jsxs)(h.A,{container:!0,children:[(0,n.jsxs)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:[(0,n.jsxs)(y.A,{variant:"body5",cy:"loan-amount-label",className:l()(T.type2label,T.type2label_marginBottom6,T.type2label_marginBottom6,T.type2label_marginTop16),children:["Kwota pożyczki jakiej"," ",(0,n.jsx)("br",{...!D&&{style:{display:"none"}}}),"potrzebujesz",!!D&&(0,n.jsx)(c.A,{className:T.tooltipContainer,children:(0,n.jsx)(j,{...{text:D,symbol:"?",title:"Kwota pożyczki jakiej potrzebujesz"},$_ID:"".concat(C,"--")+b.W$})})]}),(0,n.jsx)(y.A,{variant:"body2",cy:"loan-amount-value",className:T.type2value,children:(0,g.tJ)(k.currentValue,{precision:0})}),(0,n.jsx)(y.A,{className:T.type2value__smaller,children:"zł"})]}),(0,n.jsxs)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:[(0,n.jsx)(y.A,{variant:"body5",cy:"loan-interest-label",className:l()(T.type2label,T.type2label_marginBottom6,T.type2label_marginTop16),children:"Odsetki"}),(0,n.jsx)(y.A,{variant:"body2",cy:"loan-interest-value",className:T.type2value,children:(0,g.tJ)(F,{precision:0})}),(0,n.jsx)(y.A,{className:T.type2value__smaller,children:"zł"})]}),H>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:[(0,n.jsxs)(y.A,{variant:"body5",cy:"loan-interest-on-credited-commission-label",className:l()(T.type2label,T.type2label_marginBottom6,T.type2label_marginTop16),children:["w tym odsetki od kredytowanej prowizji",!!B&&(0,n.jsx)(c.A,{className:T.tooltipContainer,children:(0,n.jsx)(j,{...{text:B,symbol:"?",title:"Odsetki od kredytowanej prowizji"},wcagPrefix:"Modal szczeg\xf3ł\xf3w pożyczki - podpowiedź dla odsetek od kredytowanej prowizji",$_ID:"".concat(C,"--")+b.Vd})})]}),(0,n.jsx)(y.A,{variant:"body2",cy:"loan-interest-on-credited-commission-value",className:T.type2value,children:(0,g.tJ)(H,{precision:0})}),(0,n.jsx)(y.A,{className:T.type2value__smaller,children:"zł"})]}),(0,n.jsx)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item})]}),(0,n.jsx)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:!!V&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y.A,{variant:"body5",cy:"loan-cost-label",className:T.type2label,children:["Całkowity koszt ",(0,n.jsx)("br",{className:T.linebreakDesktop}),"pożyczki",!!I&&(0,n.jsx)(c.A,{className:T.tooltipContainer,children:(0,n.jsx)(j,{...{text:I,symbol:"?",title:"Całkowity koszt pożyczki"},$_ID:"".concat(C,"--")+b.FT})})]}),(0,n.jsx)(y.A,{variant:"body2",cy:"loan-cost-value",className:T.type2value,children:(0,g.tJ)(V,{precision:0})}),(0,n.jsx)(y.A,{className:T.type2value__smaller,children:"zł"})]})}),(0,n.jsx)(h.A,{item:!0,xs:6,md:6,lg:3,className:T.item,children:!!W&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(y.A,{variant:"body5",cy:"total-cost-label",className:l()(T.type2label,T.type2label_marginTop16),children:["Całkowita kwota ",(0,n.jsx)("br",{className:T.linebreakDesktop}),"do zapłaty",!!S&&(0,n.jsx)(c.A,{className:T.tooltipContainer,children:(0,n.jsx)(j,{...{text:S,symbol:"?",title:"Całkowita kwota do zapłaty"},$_ID:"".concat(C,"--")+b.ve})})]}),(0,n.jsx)(y.A,{variant:"body2",cy:"total-cost-value",className:T.type2value,children:(0,g.tJ)(W,{precision:0})}),(0,n.jsx)(y.A,{className:T.type2value__smaller,children:"zł"})]})}),H>0&&!L&&(0,n.jsx)(h.A,{item:!0,xs:6,md:6,lg:6,className:T.item})]})}),(0,n.jsxs)(c.A,{children:[(0,n.jsx)(y.A,{variant:"body4",weight:"regular",className:T.aboutCalculatonTitle,children:"O powyższym wyliczeniu"}),(0,n.jsx)(y.A,{variant:"body4",className:T.aboutCalculatonText,children:"Wyliczenia dokonane za pomocą kalkulatora mają charakter orientacyjny i przykładowy, zależą od daty wypłaty kredytu oraz daty płatności pierwszej raty. Służą wyłącznie celom informacyjnym i nie powinny być traktowane jako oferta, rekomendacja, zaproszenie do zawarcia umowy kredytu ani usługa doradztwa. Informacje wyżej podane powinny być analizowane łącznie z formularzem informacyjnym udostępnianym przez Bank przed zawarciem umowy o kredyt konsumencki. Udzielenie pożyczki oraz jej wysokość zależą od oceny zdolności kredytowej."})]}),!z&&(0,n.jsx)(A.A,{ctaLinkAttr:w,snippetData:f,displayInLeadContext:p,onClickButton:_})]})}},37927:(e,a,t)=>{var n=t(89677),i=t(98751),l=t(73818);e.exports=function(e){return l(e)?n(e,!0):i(e)}},43707:(e,a,t)=>{e.exports=t(65781)(Object.getPrototypeOf,Object)},54981:e=>{e.exports=function(e){var a=[];if(null!=e)for(var t in Object(e))a.push(t);return a}},62952:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var n=t(75834);let i=e=>{let a=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let t=a.current;t&&e&&t.querySelectorAll('button, input, select, textarea, [tabindex]:not
1([tabindex="-1"])').forEach(e=>{e.setAttribute("tabindex","-1")})},[e]),a}},69308:(e,a,t)=>{"use strict";t.r(a),t.d(a,{CalculatorDataForApplicationContext:()=>eB,default:()=>eO});var n=t(26514),i=t(7650),l=t.n(i),o=t(75834),r=t(75163),s=t(6395),c=t(93794),d=t(21519),p=t(54004),m=t(34658),u=t(5096),x=t(13436),g=t(69001),h=t.n(g),y=t(70504),b=t(70046),A=t(19656),j=t(2058),v=t(74684),f=t(38291),k=t(33872),w=t(53303),_=t(42920);let C="CalcLoanWrapper",T={marginBottom:"13px",[p.Ay.breakpoints.up("md")]:{marginBottom:"26px"},"& .sectionheader__title":{margin:0,fontSize:"24px",lineHeight:"32px",[p.Ay.breakpoints.up("md")]:{fontSize:"48px",lineHeight:"56px"}}},N=c.Df.withName("PKOBPCalcLoanWrapper").create(()=>({wrapper:{},wrapper__mini:{maxWidth:"1020px",margin:"0 auto"},container:{display:"grid",gridTemplateColumns:"auto 390px",gridColumnGap:"80px",margin:"0 auto",[p.Ay.breakpoints.down("md")]:{display:"flex",flexDirection:"column"}},description:{width:"100%",display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(50%, 1fr))",alignItems:"center",columnGap:"30px",gridAutoFlow:"column",[p.Ay.breakpoints.down("md")]:{gridTemplateColumns:"1fr",gridAutoFlow:"row",maxWidth:"522px",alignSelf:"center",marginBottom:"72px",marginTop:"20px"},"& ul,ol":{textAlign:"left"}},descriptionColText:{[p.Ay.breakpoints.down("md")]:{order:2,textAlign:"center"}},descriptionColImg:{[p.Ay.breakpoints.down("md")]:{order:1,marginBottom:"13px"},"& img":{maxWidth:"100%",height:"auto !important"}},header:{marginBottom:"20px",[p.Ay.breakpoints.up("md")]:{marginBottom:"40px"},"& .sectionheader__supertitle":{textTransform:"uppercase",marginBottom:"0"},"& .sectionheader__title":{marginTop:"10px",fontSize:"40px",lineHeight:"48px",[p.Ay.breakpoints.down("sm")]:{marginTop:0,fontSize:"24px",lineHeight:"32px"}}},header__mini:{...T},header__small:{...T},header__large:{},descriptionImage:{width:"100%",objectFit:"contain",[p.Ay.breakpoints.down("md")]:{maxHeight:"272px !important"},[p.Ay.breakpoints.down("sm")]:{maxHeight:"152px !important"}},descriptionText:{fontWeight:300,[p.Ay.breakpoints.down("sm")]:{fontSize:"16px"},[p.Ay.breakpoints.up("lg")]:{"& ul>li":{marginBottom:"18px !important","&:last-of-type":{marginBottom:"36px !important"}}},"& p":{margin:0}},iconLinkWrapper:{marginTop:"60px",[p.Ay.breakpoints.down("sm")]:{marginTop:"27px",lineHeight:1,letterSpacing:"0.2px"}},iconLinkWrapper__mini:{marginTop:"35px",[p.Ay.breakpoints.down("sm")]:{marginTop:"10px"}},rrsoContainer:{width:"100%",maxWidth:"1020px",margin:"0 auto",marginTop:"32px",[p.Ay.breakpoints.down("sm")]:{marginTop:"24px"}},info:{display:"flex",justifyContent:"start",alignItems:"start",paddingTop:"20px",[p.Ay.breakpoints.up("sm")]:{paddingTop:"39px"},"& svg":{width:"24px",height:"24px",marginTop:"-1px"}},infoText:{fontSize:"14px",paddingLeft:"8px",color:p.Ay.palette.grey["700"],width:"calc(100% - 24px)",textAlign:"left",lineHeight:1.5},ctaContainer:{marginTop:"24px",display:"flex",flexDirection:"column",alignItems:"center",width:"100%",[p.Ay.breakpoints.up("sm")]:{display:"flex",flexDirection:"row-reverse",justifyContent:"center",width:"auto"},[p.Ay.breakpoints.up("md")]:{marginTop:"38px",justifyContent:"flex-start",flexDirection:"row"},"& a, & button":{display:"block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",margin:0,minWidth:"136px",maxWidth:"100%",width:"100%","&:focus-visible":{outline:"none",border:"2px solid #000"},[p.Ay.breakpoints.down("sm")]:{"&:nth-of-type(2)":{marginTop:"12px"}},[p.Ay.breakpoints.up("sm")]:{width:"232px",marginRight:"30px","&:nth-of-type(1)":{marginRight:0}},[p.Ay.breakpoints.up("md")]:{width:"210px","&:nth-of-type(1)":{marginRight:"30px"},"&:nth-of-type(2)":{marginRight:0}}}}})),L=e=>{var a,t;let{snippetData:i,isMobile:l,isTablet:r,isLoading:s,rrsoExampleFromApi:c,children:p}=e,{classes:m}=N(),g=(0,o.useContext)(x.G),T=(0,b.A)(),L=(0,o.useContext)(y.zp),{calc_type:z,description_title:D,subtitle:I,details_desktop:S,details_mobile:B,have_loan:R,image_desktop:O,image_tablet:P,image_mobile:M,is_hidden_image_desktop:V,is_hidden_image_mobile:W,is_hidden_image_tablet:E,information:F,button_primary:H,button_secondary:K,is_hidden_button_primary:$,is_hidden_button_secondary:G}=i,U=(0,n.jsx)("div",{className:h()(m.iconLinkWrapper,m["iconLinkWrapper__".concat(z)]),children:(0,n.jsx)(u.default,{...R,cy:"calc-have-loan",idGTM:g})}),J=[{hidden:$,btn:H},{hidden:G,btn:K}].map((e,a)=>e.hidden?null:((e,a)=>{var t;if(!e||!e.link.label)return;let i=(0,k.TE)(T,e,L,g);return!i||l&&e.hide_on_mobile?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(w.default,{variant:e.variant,...i,ariaLabel:i.label,lead_rendered:e.lead_rendered,modal_rendered:e.modal_rendered,idGTM:g,id:e.id,linkId:null==e||null==(t=e.link)?void 0:t.id,className:"HeroCtaBtn"},a)}
1)(e.btn,a)).filter(Boolean),Z=(()=>{if(l){if(!W)return M||P||O}else if(r){if(!E)return P||O}else if(!V)return O;return null})(),Y=O||P||M;return(0,n.jsxs)("div",{className:h()(m.wrapper,m["wrapper__".concat(z)]),children:[(0,n.jsxs)("div",{className:m.container,children:[(0,n.jsxs)("div",{className:m.description,children:[(0,n.jsxs)("div",{className:m.descriptionColText,children:[(0,n.jsx)(v.Ay,{className:h()(m.header,m["header__".concat(z)]),title:D,supertitle:l?"":I,cy:C,align:r?"center":"left"}),(0,n.jsx)(f.default,{content:l&&B?B:S,className:m.descriptionText,"data-cy":"".concat(C,"--rrsoDescriptionText"),products:null==i?void 0:i.product_for_wysiwyg_rendered}),!l&&!!(null==R||null==(a=R.picture)?void 0:a.file)&&U,J.length>0&&(0,n.jsx)("div",{className:m.ctaContainer,children:J}),F&&(0,n.jsxs)("div",{className:m.info,children:[(0,n.jsx)(A.A,{}),(0,n.jsx)(_.A,{className:m.infoText,dangerouslySetInnerHTML:{__html:F}})]})]}),Z&&(0,n.jsx)("div",{className:m.descriptionColImg,children:(0,n.jsx)(j.Ay,{className:m.descriptionImage,src:Z.file_path_url||Z.url,alt:null==Y?void 0:Y.alt,title:null==Y?void 0:Y.filename,loading:(null==Y?void 0:Y.loading)||"eager"})})]}),(0,n.jsx)("div",{className:m.calc,children:p}),l&&!!(null==R||null==(t=R.picture)?void 0:t.file)&&U]}),(!!i.rrso_example_external||!!i.rrso_legal_notice_desktop||!!i.rrso_legal_notice_mobile||!!c)&&(0,n.jsx)(d.default,{rrsoExampleFromApi:c,snippetData:i,isLoading:s,className:m.rrsoContainer})]})};var z=t(48216);class D{static create(e,a,t){return Object.assign(new D,{...(0,z.A)(e,"calc_type"),...(0,z.A)(a,"min","max","amountNet","minTime","maxTime","time","rrso","rrso_example","rates_amount","amounts","rates"),...(0,z.A)(t,"currentValue","currentTimeValue","currentInsurance","currentEcoLoan","currentFirstLoan")})}static update(e,a){return Object.assign(new D,e,a)}constructor(){this.min=1,this.max=2e5,this.currentValue=1,this.minTime=1,this.maxTime=24,this.time=1,this.currentTimeValue=1,this.currentInsurance=!1,this.currentFirstLoan=!1,this.currentEcoLoan=!1,this.rrso=null,this.rrso_example=null,this.ratesAmount=null,this.totalLoanCost=null,this.amountWithLoanCost=null,this.amountNet=null,this.totalAmountToPay=null}}var I=t(32909),S=t.n(I),B=t(16900),R=t.n(B),O=t(36745),P=t(23469),M=t.n(P),V=t(54907),W=t(43371),E=t(98945),F=t(18827),H=t(20262),K=t(99090),$=t(62952),G=t(27133),U=t(61265),J=t(33024),Z=t(71514),Y=t(41905),Q=t(22965),q=t(74938),X=t(37258),ee=t(56774),ea=t(87472);let et=M()(()=>Promise.all([t.e(616),t.e(449)]).then(t.bind(t,80449)),{loadableGenerated:{webpack:()=>[80449]}}),en=M()(()=>Promise.resolve().then(t.bind(t,61265)),{loadableGenerated:{webpack:()=>[61265]}}),ei=M()(()=>t.e(6659).then(t.bind(t,21897)),{loadableGenerated:{webpack:()=>[21897]}}),el=c.Df.withName("PKOBPCalcLoanLargeCard").create(()=>({card:{borderRadius:"16px",padding:"26px 24px 30px 24px",minHeight:"248px",[p.Ay.breakpoints.up(1299)]:{padding:"26px 32px 30px 32px"}},resultContainer:{marginTop:"2px"},rrsoContainer:{marginLeft:"24px",[p.Ay.breakpoints.up(1299)]:{marginLeft:"30px"}},cardCalculatedLabel:{margin:0,fontSize:"16px",fontWeight:500},cardCalculatedValue:{...p.Ay.typography.h4,fontWeight:700,display:"inline",fontSize:"28px !important"},cardCalculatedValueAdditional:{display:"inline",fontSize:"16px",marginLeft:"3px"},buttonContainer:{minHeight:"48px",display:"flex",alignItems:"center"},buttonDetailsContainer:{marginTop:"16px",".card__large &":{[p.Ay.breakpoints.up(768)]:{marginTop:"16px"}}},buttonDetails:{marginTop:"0 !important",marginBottom:"0 !important"},buttonCTAContainer:{marginTop:"12px !important",marginBottom:"0 !important",[p.Ay.breakpoints.up(768)]:{marginTop:"16px !important"}},buttonCTA:{marginTop:"0 !important",marginBottom:"0 !important"},tooltipContainer:{marginLeft:"3px",marginTop:"-5px",[p.Ay.breakpoints.up("md")]:{marginTop:"-4px"}},detailsPopupWrapper:{margin:"0 auto",paddingBottom:"16px",[p.Ay.breakpoints.up("sm")]:{margin:"0 28px"},[p.Ay.breakpoints.up(Y.$F)]:{margin:"0 73px",width:"600px"},[p.Ay.breakpoints.up(Y.Jh)]:{margin:"0 73px",width:"810px"}}})),eo=e=>{var a,t,i,l,r;let{snippetData:c,calculatorData:d,cy:m="CalcLoanLargeCard"}=e,{classes:u}=el(),g=(0,s.A)(p.Ay.breakpoints.down("sm")),h=(0,o.useContext)(x.G),[y,b]=(0,o.useState)(!1),[A,j]=(0,o.useState)(!1),[v,f]=(0,o.useState)(ee.p.INIT),[C,T]=(0,o.useState)(0),{rrso:N,rates_amount:L}=c,{background_color:z,button_cta:D,button_details:I}=c,{popup_variant:S,lead_popup:B,lead_rendered:R,modal_rendered:O}=c,{popup_variant_eximee:P,lead_popup_eximee:M,lead_rendered_eximee:F}=c,[H,$]=(0,o.useState)(!1),G=()=>{let e="none"===S,a="lead"===P&&!!M&&!!F;if(e&&!a||e&&a&&!U(c,d))return(0,k.zf)({link:D.link})},U=(e,a)=>{var t;return(0,ea.G)({is_eximee:e.is_eximee,eximee_context:e.eximee_context,eximee_epg_amount_max:e.eximee_epg_amount_max,eximee_insurance:e.eximee_insurance,currentAmount:a.amountNet,currentInsurance:!1,currentEcoloan:(null==(t=e.eco_loan)||!t.hidden)&&a.currentEcoLoan})},eo="none"!==z&&"none_shadow"!==z;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Q.default,{additionalStyles:u.card,background:eo?z:"white",triangle:eo?"left":null,cy:m,disableHref:!0,children:(0,n.jsxs)(V.A,{children:[(0,n.jsxs)(V.A,{className:u.resultContainer,id:J.MB,role:"region","aria-labelledby":"".concat(m,"--results-heading"),children:[(0,n.jsxs)(W.A,{children:[(0,n.jsx)(_.A,{id:"".concat(m,"--results-heading"),variant:"h6",children:"Wyniki na podstawie wprowadzonych danych. Zmiana wartości w kalkulatorze automatycznie odświeża tę sekcję."}),(0,n.jsxs)(V.A,{role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==L?void 0:L.label}}),(0,n.jsxs)("span",{children:[(0,E.tJ)(null==d?void 0:d.ratesAmount,{precision:0})," zł"]}),(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==N?void 0:N.label}}),(0,n.jsxs)("span",{children:[null==d||null==(t=d.rrso)||null==(a=t.toString())?void 0:a.replace(".",",")," %"]})]})]}),(0,n.jsxs)(K.A,{container:!0,children:[(0,n.jsx)(K.A,{item:!0,xs:6,sm:6,md:6,lg:6,children:!!(null==d?void 0:d.ratesAmount)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(V.A,{display:"flex",children:[(0,n.jsx)(_.A,{variant:"body4",className:u.cardCalculatedLabel,cy:"rates-amount-label",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==L?void 0:L.label}})}),!!(null==L?void 0:L.tooltip)&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(en,{...{text:null==L?void 0:L.tooltip,symbol:"?",title:(null==L?void 0:L.label)||""},$_ID:"".concat(m,"--")+J.No})})]}),(0,n.jsxs)(V.A,{children:[(0,n.jsx)(_.A,{variant:"body1",marginTop:0,marginBottom:0,className:u.cardCalculatedValue,cy:"rates-amount-value",children:(0,E.tJ)(null==d?void 0:d.ratesAmount,{precision:0})}),(0,n.jsx)(_.A,{className:u.cardCalculatedValueAdditional,children:" zł"})]})]})}),(0,n.jsx)(K.A,{item:!0,xs:6,sm:6,md:6,lg:6,children:!(null==N?void 0:N.hidden)&&!!(null==d?void 0:d.rrso)&&(0,n.jsxs)(V.A,{className:u.rrsoContainer,children:[(0,n.jsxs)(V.A,{display:"flex",children:[(0,n.jsx)(_.A,{variant:"body4",className:u.cardCalculatedLabel,cy:"rrso-label",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==N?void 0:N.label}})}),(null==N?void 0:N.tooltip)&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(en,{...{text:null==N?void 0:N.tooltip,symbol:"?",title:(null==N?void 0:N.label)||""},$_ID:"".concat(m,"--")+J.h9})})]}),(0,n.jsxs)(V.A,{children:[(0,n.jsx)(_.A,{variant:"body1",marginTop:0,marginBottom:0,className:u.cardCalculatedValue,cy:"rrso-value",children:null==d||null==(i=d.rrso.toString())?void 0:i.replace(".",",")}),(0,n.jsx)(_.A,{className:u.cardCalculatedValueAdditional,children:" %"})]})]})})]})]}),!!(null==d?void 0:d.ratesAmount)&&(0,n.jsx)(V.A,{className:"".concat(u.buttonDetailsContainer," ").concat(u.buttonContainer),children:(0,n.jsx)(w.default,{variant:I.variant,onClickCallback:()=>{R||F&&U(c,d)?(f(ee.p.CUSTOM_VIEW),T(e=>e+1),j(!0)):$(!0)},width100percent:!0,label:I.link.label,cy:"".concat(m,"--btn--detail
1s"),className:u.buttonDetails,ariaLabel:I.link.aria_label,idGTM:h,id:I.id,linkId:null==I||null==(l=I.link)?void 0:l.id})}),(0,n.jsx)(V.A,{className:"".concat(u.buttonContainer," ").concat(u.buttonCTAContainer),children:(0,n.jsx)(w.default,{variant:D.variant,...G(),onClickCallback:(0,Z.A)(G())?()=>{R?(f(ee.p.INIT),T(e=>e+1),j(!0)):O&&"modal"===S&&b(!0)}:null,width100percent:!0,label:D.link.label,cy:"".concat(m,"--btn--cta"),className:u.buttonCTA,ariaLabel:D.link.aria_label,addWid:D.link.wid,additionalWid:h,idGTM:h,id:D.id,linkId:null==D||null==(r=D.link)?void 0:r.id})})]})}),(c.lead_rendered&&"lead"===S||c.lead_rendered_eximee&&"lead"===c.popup_variant_eximee&&U(c,d))&&(0,n.jsx)(et,{lead:U(c,d)?c.lead_rendered_eximee:c.lead_rendered,isOpen:A,onClose:()=>j(!1),customView:(0,n.jsx)(X.A,{snippetData:c,calculatorData:d,ctaLinkAttr:G(),displayInLeadContext:!0,cy:m}),customFooter:g&&(0,n.jsx)(q.A,{snippetData:c,ctaLinkAttr:G(),displayInLeadContext:!0}),forcedCurrentStage:v},C),(0,n.jsx)(Y.Ay,{isOpen:H,handleClose:()=>$(!1),fullScreen:g,title:g?"Szczeg\xf3ły koszt\xf3w pożyczki":"",size:"1020",footer:g&&(0,n.jsx)(q.A,{snippetData:c,ctaLinkAttr:G(),onClickButton:O&&"modal"===S?()=>{$(!1),b(!0)}:null}),$_MODAL_TITLE_ID:Y.$O,children:(0,n.jsx)(V.A,{className:u.detailsPopupWrapper,children:(0,n.jsx)(X.A,{cy:m,snippetData:c,calculatorData:d,ctaLinkAttr:G(),onClickButton:O&&"modal"===S?()=>{$(!1),b(!0)}:null})})}),O&&"modal"===S&&(0,n.jsx)(ei,{isOpen:y,handleCloseModal:()=>b(!1),modalRendered:O})]})};var er=t(34453);let es=c.Df.withName("PKOBPCalcLoanLargeTitle").create(()=>({title:{...p.Ay.typography.h2,marginTop:"4px",marginBottom:"20px",[p.Ay.breakpoints.up("sm")]:{marginTop:"10px",marginBottom:"24px"},[p.Ay.breakpoints.up("lg")]:{marginTop:"12px",marginBottom:"40px"}}})),ec=e=>{var a,t,i,l;let{snippetData:o}=e,{classes:r}=es();return(0,n.jsx)(n.Fragment,{children:!!(null==o||null==(t=o.title)||null==(a=t.text)?void 0:a.length)&&(0,n.jsx)(_.A,{variant:(0,er.a)(null==(i=o.title)?void 0:i.hx),align:"center",cy:"calc-title",className:r.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==(l=o.title)?void 0:l.text}})})})},ed=M()(()=>Promise.all([t.e(1562),t.e(1643),t.e(6828)]).then(t.bind(t,66828)),{loadableGenerated:{webpack:()=>[66828]}}),ep=M()(()=>t.e(624).then(t.bind(t,60624)),{loadableGenerated:{webpack:()=>[60624]}}),em=M()(()=>Promise.resolve().then(t.bind(t,21519)),{loadableGenerated:{webpack:()=>[21519]}}),eu=M()(()=>Promise.resolve().then(t.bind(t,61265)),{loadableGenerated:{webpack:()=>[61265]}}),ex="CalcLoanLarge",eg=[3,6,9,12,15,18,24,30,36,42,48,54,60,66,72,78,84,90,96],eh=c.Df.withName("PKOBPCalcLoanLarge").create(()=>({container:{position:"relative",display:"flex",justifyContent:"center",borderRadius:"40px",overflow:"hidden",paddingLeft:"16px",paddingRight:"16px",marginLeft:"-16px",marginRight:"-16px",paddingTop:"24px",paddingBottom:"32px",[p.Ay.breakpoints.up("md")]:{paddingLeft:"30px",paddingRight:"30px",marginLeft:"-30px",marginRight:"-30px",paddingTop:"56px",paddingBottom:"24px"},["& .".concat(U.TooltipClass)]:{"&>div":{fontSize:"14px",lineHeight:"20px",fontWeight:300}}},gradient:{"& span":{zIndex:-1,top:0,position:"absolute",height:"100%",overflow:"hidden","&:nth-of-type(3)":{right:"785px",width:"100%",background:"linear-gradient(229.18deg, rgba(183, 210, 251, 0.4) -13.82%, rgba(255, 255, 255, 0.4) 22.24%, rgba(255, 255, 255, 0.6) 88.3%)"},"&:nth-of-type(2)":{right:"245px",width:"100%",background:"linear-gradient(119.24deg, rgba(255, 255, 255, 0) 17.97%, rgba(219, 233, 253, 0.3) 58.89%, rgba(183, 210, 251, 0.5) 99.81%)"},"&:nth-of-type(1)":{right:0,width:"100%",background:"linear-gradient(88.37deg, rgba(255, 255, 255, 0) 1.38%, rgba(219, 233, 253, 0.3) 50%, #B7D2FB 98.62%)"}}},containerInner:{maxWidth:"1020px",width:"100%"},subtitle:{marginBottom:"10px",[p.Ay.breakpoints.up("lg")]:{marginBottom:"12px"}},title:{...p.Ay.typography.h2,marginTop:"10px",marginBottom:"24px",[p.Ay.breakpoints.up("lg")]:{marginTop:"12px",marginBottom:"40px"}},containerForm:{position:"relative"},leftBox:{margin:0,padding:0,border:"none","&>legend":W.$,[p.Ay.breakpoints.up(1299)]:{marginRight:"-29px"}},amountContainer:{},ratesContainer:{marginTop:"16px",[p.Ay.breakpoints.up("lg")]:{marginTop:"20px"}},checkboxesContainer:{marginTop:"28px"}
1,checkboxContainer:{display:"flex","& .MuiFormControlLabel-label":{whiteSpace:"nowrap"},[p.Ay.breakpoints.down(1299)]:{marginBottom:"24px"}},checkboxContainer__second:{[p.Ay.breakpoints.up(1299)]:{marginLeft:"-5px",marginRight:"-5px"}},checkboxContainer__second__only:{[p.Ay.breakpoints.up(1299)]:{marginLeft:"0px"}},containerRight:{[p.Ay.breakpoints.up(1299)]:{paddingLeft:"74px"}},containerHaveLoan:{display:"flex",lineHeight:"20px",justifyContent:"center",marginTop:"19px",marginLeft:"-62px",[p.Ay.breakpoints.up(1299)]:{marginTop:"23px !important",marginLeft:"1px !important"},"& a, & p":{fontSize:"14px !important",letterSpacing:"0.14px !important"},"& .iconTextContainer>div":{letterSpacing:"0.14px !important"}},label:{lineHeight:"20px",fontSize:"16px"},tooltipInputContainer:{marginLeft:"3px",marginTop:"-4px"},tooltipContainer:{marginTop:"-5px",marginLeft:"4px",[p.Ay.breakpoints.up(1299)]:{marginLeft:"7px",marginTop:"-3px"}},rrsoContainer:{width:"100%",maxWidth:"1020px",margin:"0 auto",marginTop:"3px",[p.Ay.breakpoints.up(1299)]:{marginTop:"32px"}}})),ey=e=>{var a;let{snippetData:t,calculatorData:i,currentData:l,isLoading:r,isMockedData:s,onUpdateCurrentData:c,onUpdateCurrentDataDebounced:d}=e,{classes:p}=eh(),m=(0,o.useContext)(x.G),{amount:g,rates:y}=t,{insurance:b,eco_loan:A,first_loan:j}=t,[v,f]=(0,o.useState)("");(0,o.useEffect)(()=>{r&&f("")},[r]);let k=(e,a)=>(v!==e&&f(e),d({[e]:a},null)),w=(e,a)=>c({[e]:a}),C=(0,$.A)(s);return(0,n.jsxs)(V.A,{className:p.container,"data-cy":ex,children:[(0,n.jsx)(ep,{isMockedData:s,isCalcLarge:!0}),(0,n.jsx)(G.Ay,{isLoading:r,text:"Trwa ładowanie",withOverlay:!0,size:G.iW.LG}),(0,n.jsxs)("div",{className:p.gradient,children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}),(0,n.jsxs)(V.A,{className:p.containerInner,children:[(0,n.jsxs)(V.A,{children:[!!(null==t||null==(a=t.subtitle)?void 0:a.length)&&(0,n.jsx)(_.A,{variant:"subtitle1",align:"center",cy:"calc-subtitle",className:p.subtitle,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t.subtitle}}
1)}),(0,n.jsx)(ec,{snippetData:t})]}),(0,n.jsx)(V.A,{ref:C,children:(0,n.jsxs)(K.A,{container:!0,className:p.containerForm,children:[(0,n.jsx)(K.A,{item:!0,xs:6,sm:6,md:6,lg:6,children:(0,n.jsxs)(V.A,{className:p.leftBox,component:"fieldset",children:[(0,n.jsx)("legend",{children:"Wprowadź dane dotyczące pożyczki"}),(0,n.jsxs)(V.A,{className:p.amountContainer,children:[(0,n.jsxs)(V.A,{display:"flex",justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(_.A,{className:p.label,cy:"amount-label",children:(0,n.jsx)("label",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.label},htmlFor:"".concat(ex,"--")+J.k4})}),g.tooltip&&(0,n.jsx)(V.A,{className:p.tooltipInputContainer,children:(0,n.jsx)(eu,{...{text:g.tooltip,symbol:"?",title:(null==g?void 0:g.label)||""},$_ID:"".concat(ex,"--")+J.k4})})]}),(0,n.jsx)(V.A,{mt:"4px",children:(0,n.jsx)(ed,{value:l.currentValue,min:i.min,max:i.max,step:500,formatter:e=>(0,E.tJ)(e,{precision:0}),unformatter:e=>(0,O.unformat)(e),minMaxValues:[(0,E.up)(i.min,{precision:0}),(0,E.up)(i.max,{precision:0})],cy:"".concat(ex,"-InputRange-Amount"),onChange:e=>k("currentValue",e),wcagPrefix:(null==g?void 0:g.label)||"kwota pożyczki",disabled:v&&"currentValue"!==v||r,$_ID:"".concat(ex,"--")+J.k4,$_ARIA_CONTROLS:J.MB})})]}),(0,n.jsxs)(V.A,{className:p.ratesContainer,children:[(0,n.jsxs)(V.A,{display:"flex",justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(_.A,{className:p.label,cy:"rates-label",children:(0,n.jsx)("label",{dangerouslySetInnerHTML:{__html:null==y?void 0:y.label},htmlFor:"".concat(ex,"--")+J.V6})}),y.tooltip&&(0,n.jsx)(V.A,{className:p.tooltipInputContainer,children:(0,n.jsx)(eu,{...{text:y.tooltip,symbol:"?",title:(null==y?void 0:y.label)||""},$_ID:"".concat(ex,"--")+J.V6})})]}),(0,n.jsx)(V.A,{mt:"4px",children:(0,n.jsx)(ed,{value:l.currentTimeValue,min:i.minTime,max:i.maxTime,step:1,customSteps:eg,addSteps:!0,minMaxValues:["".concat(i.minTime," ").concat((0,F.YN)(i.minTime)," (mies.)"),"".concat(i.maxTime," ").concat((0,F.YN)(i.maxTime)," (mies.)")],cy:"".concat(ex,"-InputRange-Rates"),onChange:e=>k("currentTimeValue",e),wcagPrefix:(null==y?void 0:y.label)||"ilość rat",disabled:v&&"currentTimeValue"!==v||r,$_ID:"".concat(ex,"--")+J.V6,$_ARIA_CONTROLS:J.MB})})]}),(0,n.jsx)(V.A,{className:p.checkboxesContainer,children:(0,n.jsxs)(K.A,{container:!0,children:[!(null==A?void 0:A.hidden)&&(0,n.jsx)(K.A,{item:!0,xs:12,md:6,lg:6,children:(0,n.jsxs)(V.A,{className:p.checkboxContainer,children:[(0,n.jsx)(H.A,{checked:l.currentEcoLoan,onChange:e=>w("currentEcoLoan",e),label:A.label,cy:"ecoloan",wcagPrefix:"Zaznacz opcję EKO pożyczki",disabled:!!v||r,$_ID:"".concat(ex,"--")+J.zn}),A.tooltip&&(0,n.jsx)(V.A,{className:p.tooltipContainer,children:(0,n.jsx)(eu,{...{text:A.tooltip,symbol:"?",title:(null==A?void 0:A.label)||""},$_ID:"".concat(ex,"--")+J.zn})})]})}),!(null==j?void 0:j.hidden)&&(0,n.jsx)(K.A,{item:!0,xs:12,md:6,lg:6,children:(0,n.jsxs)(V.A,{className:h()(p.checkboxContainer,{[p.checkboxContainer__second]:!0,[p.checkboxContainer__second__only]:null==A?void 0:A.hidden}),children:[(0,n.jsx)(H.A,{checked:l.currentFirstLoan,onChange:e=>w("currentFirstLoan",e),label:j.label,cy:"firstloan",wcagPrefix:"Zaznacz opcję pierwszej pożyczki",disabled:!!v||r,$_ID:"".concat(ex,"--")+J.DM}),j.tooltip&&(0,n.jsx)(V.A,{className:p.tooltipContainer,children:(0,n.jsx)(eu,{...{text:j.tooltip,symbol:"?",title:(null==j?void 0:j.label)||""},$_ID:"".concat(ex,"--")+J.DM})})]})})]})})]})}),(0,n.jsx)(K.A,{item:!0,xs:6,sm:6,md:6,lg:6,children:(0,n.jsxs)(V.A,{className:p.containerRight,children:[(0,n.jsx)(eo,{calculatorData:i,snippetData:t,currentData:l,addCardTriangle:!0,addCalcLoanLargeStyles:!0}),!!(null==t?void 0:t.have_loan)&&(0,n.jsx)(V.A,{className:p.containerHaveLoan,children:(0,n.jsx)(u.default,{...t.have_loan,idGTM:m,cy:"calc-have-loan"})})]})})]})}),(0,n.jsx)(V.A,{className:p.rrsoContainer}),(0,n.jsx)(em,{rrsoExampleFromApi:null==i?void 0:i.rrso_example,snippetData:t,isLoading:r})]})]})},eb=M()(()=>Promise.all([t.e(616),t.e(449)]).then(t.bind(t,80449)),{loadableGenerated:{webpack:()=>[80449]}}),eA=M()(()=>Promise.all([t.e(1562),t.e(1643),t.e(6828)]).then(t.bind(t,66828)),{loadableGenerated:{webpack:()=>[66828]}}),ej=M()(()=>t.e(624).then(t.bind(t,60624)),{loadableGenerated:{webpack:()=>[60624]}}),ev=M()(()=>Promise.resolve().then(t.bind(t,61265)),{loadableGenerated:{webpack:()=>[61265]}}),ef=M()(()=>t.e(6659).then(t.bind(t,21897)),{loadableGenerated:{webpack:()=>[21897]}}),ek="CalcLoanMini",ew=c.Df.withName("PKOBPCalcLoanMini").create(()=>({container:{maxWidth:390,position:"relative",[p.Ay.breakpoints.down("md")]:{marginTop:"10px"},["& .".concat(U.TooltipClass)]:{"&>div":{fontSize:"14px",fontWeight:300}}},formContainer:{margin:0,padding:0,border:"none","&>legend":W.$},card:{padding:"50px 30px 38px 30px",[p.Ay.breakpoints.down("md")]:{border:"none",padding:"15px 0"}}
1,btnWrapper:{marginTop:"32px",[p.Ay.breakpoints.down("md")]:{marginTop:"16px"}},amountLabel:{lineHeight:1,[p.Ay.breakpoints.down("md")]:{fontSize:"14px"}},tooltipContainer:{marginLeft:"3px",marginTop:"-8px"}})),e_=e=>{var a,t,i,l;let{snippetData:r,calculatorData:s,currentData:c,isLoading:d,isMockedData:p,onUpdateCurrentData:m}=e,{classes:u}=ew(),g=(0,o.useContext)(x.G),[h,y]=(0,o.useState)(!1),[b,A]=(0,o.useState)(!1),[j,v]=(0,o.useState)(0),{background_color:f,button_cta:C}=r,{popup_variant:T,lead_popup:N,lead_rendered:L,modal_rendered:z}=r,{popup_variant_eximee:D,lead_popup_eximee:I,lead_rendered_eximee:S}=r,B=()=>{let e="none"===T,a="lead"===D&&!!I&&!!S;if(e&&!a||e&&a&&!R(r,s))return(0,k.zf)({link:C.link})},R=(e,a)=>{var t;return(0,ea.G)({is_eximee:e.is_eximee,eximee_context:e.eximee_context,eximee_epg_amount_max:e.eximee_epg_amount_max,eximee_insurance:e.eximee_insurance,currentAmount:a.amountNet,currentInsurance:!1,currentEcoloan:(null==(t=e.eco_loan)||!t.hidden)&&a.currentEcoLoan})},P=(0,$.A)(p);return(0,n.jsxs)(V.A,{className:u.container,mt:2,"data-cy":ek,ref:P,children:[(0,n.jsx)(ej,{isMockedData:p}),(0,n.jsx)(G.Ay,{isLoading:d,text:"Trwa ładowanie",withOverlay:!0,size:G.iW.LG}),(0,n.jsx)(Q.default,{additionalStyles:u.card,background:f,cy:ek,disableHref:!0,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(V.A,{className:u.formContainer,component:"fieldset",children:[(0,n.jsx)("legend",{children:"Wprowadź dane dotyczące pożyczki"}),(0,n.jsxs)(V.A,{display:"flex",justifyContent:"center",mb:1,children:[(0,n.jsx)(_.A,{className:u.amountLabel,cy:"amount-label",children:(0,n.jsx)("label",{dangerouslySetInnerHTML:{__html:null==r||null==(a=r.amount)?void 0:a.label},htmlFor:"".concat(ek,"--")+J.k4})}),r.amount.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(ev,{...{text:r.amount.tooltip,symbol:"?",title:(null==(t=r.amount)?void 0:t.label)||""},$_ID:"".concat(ek,"--")+J.k4})})]}),(0,n.jsx)(eA,{value:c.currentValue,min:s.min,max:s.max,step:500,formatter:e=>(0,E.tJ)(e,{precision:0}),unformatter:e=>(0,O.unformat)(e),minMaxValues:[(0,E.up)(s.min,{precision:0}),(0,E.up)(s.max,{precision:0})],cy:"".concat(ek,"-InputRange"),onChange:(e,a)=>m({currentValue:e},a),wcagPrefix:(null==r||null==(i=r.amount)?void 0:i.label)||"kwota pożyczki",$_ID:"".concat(ek,"--")+J.k4,$_ARIA_CONTROLS:J.MB})]}),(0,n.jsx)(V.A,{className:u.btnWrapper,id:J.MB,children:(0,n.jsx)(w.default,{variant:C.variant,...B(),onClickCallback:(0,Z.A)(B())?()=>{L?(v(e=>e+1),A(!0)):z&&"modal"===T&&y(!0)}:null,width100percent:!0,label:C.link.label,cy:"".concat(ek,"--btn--cta"),className:u.buttonCTA,ariaLabel:C.link.aria_label,addWid:C.link.wid,additionalWid:g,idGTM:g,id:C.id,linkId:null==C||null==(l=C.link)?void 0:l.id})})]})}),(r.lead_rendered&&"lead"===T||r.lead_rendered_eximee&&"lead"===r.popup_variant_eximee&&R(r,s))&&(0,n.jsx)(eb,{lead:R(r,s)?r.lead_rendered_eximee:r.lead_rendered,isOpen:b,onClose:()=>A(!1)},j),z&&"modal"===T&&(0,n.jsx)(ef,{isOpen:h,handleCloseModal:()=>y(!1),modalRendered:z})]})};var eC=t(76730);let eT=M()(()=>Promise.all([t.e(1562),t.e(1643),t.e(6828)]).then(t.bind(t,66828)),{loadableGenerated:{webpack:()=>[66828]}}),eN=M()(()=>t.e(624).then(t.bind(t,60624)),{loadableGenerated:{webpack:()=>[60624]}}),eL=M()(()=>t.e(7934).then(t.bind(t,7934)),{loadableGenerated:{webpack:()=>[7934]}}),ez=M()(()=>Promise.resolve().then(t.bind(t,61265)),{loadableGenerated:{webpack:()=>[61265]}}),eD="CalcLoanSmall",eI=c.Df.withName("PKOBPCalcLoanSmall").create(()=>({container:{position:"relative",maxWidth:"390px",border:"1px solid "+p.Ay.palette.secondary.borders,borderRadius:"16px",background:p.Ay.palette.common.white,[p.Ay.breakpoints.down("md")]:{width:"100%",maxWidth:"706px",margin:"0 auto"},["& .".concat(U.TooltipClass)]:{"&>div":{fontSize:"14px",fontWeight:300}}},container__asCalcLoanLarge:{border:"none",background:"transparent"},formContainer:{margin:0,border:"none","&>legend":W.$,padding:"22px 20px 0 20px",[p.Ay.breakpoints.up("sm")]:{padding:"24px 40px 0 40px"},[p.Ay.breakpoints.up("md")]:{padding:"24px 30px 0 30px"}},formContainer__asCalcLoanLarge:{padding:0},header:{marginTop:"0",marginBottom:"19px",textAlign:"center",fontSize:"24px",lineHeight:1.333,[p.Ay.breakpoints.down("sm")]:{marginBottom:"20px",fontSize:"18px"}},amountContainer:{}
1,ratesContainer:{marginTop:"15px",[p.Ay.breakpoints.up("sm")]:{marginTop:"7px"}},inputContainer:{marginTop:"6px",[p.Ay.breakpoints.up("sm")]:{marginTop:"3px"}},switchesCheckboxesContainer:{marginTop:"12px",[p.Ay.breakpoints.up("sm")]:{marginTop:"24px"},[p.Ay.breakpoints.up("md")]:{marginTop:"16px"}},switchContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"24px","&:first-of-type":{marginTop:"0px"}},checkboxContainer:{display:"flex",marginTop:"14px"},label:{lineHeight:1,fontSize:"14px",[p.Ay.breakpoints.down("md")]:{fontSize:"14px"}},switchLabel:{fontSize:"14px"},title:{...p.Ay.typography.h2,marginTop:0,marginBottom:"21px",padding:"0 50px"},tooltipInputContainer:{marginLeft:"3px",marginTop:"-4px"},tooltipContainer:{marginLeft:"4px",marginTop:"-6px",[p.Ay.breakpoints.up("md")]:{marginTop:"-3px"}},cardContainer:{marginTop:"25px",[p.Ay.breakpoints.up("md")]:{marginTop:"20px"}},cardContainer__asCalcLoanLarge:{marginTop:"28px"}})),eS=e=>{let{snippetData:a,calculatorData:t,currentData:i,isLoading:l,isMockedData:r,onUpdateCurrentData:c,onUpdateCurrentDataDebounced:d,displayAsCalcLoanLargeOnMobile:m}=e,{classes:u}=eI(),x=(0,s.A)(p.Ay.breakpoints.down("sm")),{amount:g,rates:y,title:b}=a,{eco_loan:A,first_loan:j}=a,[v,f]=(0,o.useState)("");(0,o.useEffect)(()=>{l&&f("")},[l]);let k=(e,a)=>(v!==e&&f(e),d({[e]:a},null)),w=(e,a)=>c({[e]:a}),C=(0,$.A)(r);return(0,n.jsx)(V.A,{display:"flex",alignItems:"center",height:"100%",children:(0,n.jsxs)(V.A,{className:h()(u.container,{[u.container__asCalcLoanLarge]:m}),"data-cy":eD,ref:C,children:[(0,n.jsx)(eN,{isMockedData:r}),(0,n.jsx)(G.Ay,{isLoading:l,text:"Trwa ładowanie",withOverlay:!0,size:G.iW.LG}),(0,n.jsxs)(V.A,{className:h()(u.formContainer,{[u.formContainer__asCalcLoanLarge]:m}),style:{position:"relative"},component:"fieldset",children:[(0,n.jsx)("legend",{children:"Wprowadź dane dotyczące pożyczki"}),!!(null==b?void 0:b.text)&&!m&&(0,n.jsx)(_.A,{variant:(0,er.a)(null==b?void 0:b.hx),className:u.header,children:b.text}),(0,n.jsxs)(V.A,{className:u.amountContainer,children:[(0,n.jsxs)(V.A,{display:"flex",justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(_.A,{className:u.label,cy:"amount-label",children:(0,n.jsx)("label",{dangerouslySetInnerHTML:{__html:null==g?void 0:g.label},htmlFor:"".concat(eD,"--")+J.k4})}),g.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipInputContainer,children:(0,n.jsx)(ez,{...{text:g.tooltip,symbol:"?",title:(null==g?void 0:g.label)||""},$_ID:"".concat(eD,"--")+J.k4})})]}),(0,n.jsx)(V.A,{className:u.inputContainer,children:(0,n.jsx)(eT,{value:i.currentValue,min:t.min,max:t.max,step:500,formatter:e=>(0,E.tJ)(e,{precision:0}),unformatter:e=>(0,O.unformat)(e),minMaxValues:[(0,E.up)(t.min,{precision:0}),(0,E.up)(t.max,{precision:0})],cy:"".concat(eD,"-InputRange-Amount"),onChange:e=>k("currentValue",e),wcagPrefix:(null==g?void 0:g.label)||"kwota pożyczki",disabled:v&&"currentValue"!==v||l,small:!0,$_ID:"".concat(eD,"--")+J.k4,$_ARIA_CONTROLS:J.MB})})]}),(0,n.jsxs)(V.A,{className:u.ratesContainer,children:[(0,n.jsxs)(V.A,{display:"flex",justifyContent:"center",alignItems:"center",children:[(0,n.jsx)(_.A,{className:u.label,cy:"rates-label",children:(0,n.jsx)("label",{dangerouslySetInnerHTML:{__html:null==y?void 0:y.label},htmlFor:"".concat(eD,"--")+J.V6})}),y.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipInputContainer,children:(0,n.jsx)(ez,{...{text:y.tooltip,symbol:"?",title:(null==y?void 0:y.label)||""},$_ID:"".concat(eD,"--")+J.V6})})]}),(0,n.jsx)(V.A,{className:u.inputContainer,children:(0,n.jsx)(eT,{value:i.currentTimeValue,min:t.minTime,max:t.maxTime,step:1,customSteps:eg,addSteps:!0,minMaxValues:["".concat(t.minTime," ").concat((0,F.YN)(t.minTime)," (mies.)"),"".concat(t.maxTime," ").concat((0,F.YN)(t.maxTime)," (mies.)")],cy:"".concat(eD,"-InputRange-Rates"),onChange:e=>k("currentTimeValue",e),wcagPrefix:(null==y?void 0:y.label)||"ilość rat",disabled:v&&"currentTimeValue"!==v||l,small:!0,$_ID:"".concat(eD,"--")+J.V6,$_ARIA_CONTROLS:J.MB})})]}),(0,n.jsx)(V.A,{className:u.switchesCheckboxesContainer,children:x?(0,n.jsxs)(V.A,{children:[!(null==A?void 0:A.hidden)&&(0,n.jsxs)(V.A,{className:u.switchContainer,children:[(0,n.jsxs)(V.A,{display:"flex",children:[(0,n.jsx)(_.A,{className:u.switchLabel,cy:"ecoloan-label",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:A.label}})}),A.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(ez,{...{text:A.tooltip,symbol:"?",title:(null==A?void 0:A.label)||""},$_ID:"".concat(eD,"--")+J.zn})})]}),(0,n.jsx)(eC.A,{checked:i.currentEcoLoan,onChange:e=>w("currentEcoLoan",e),cy:"ecoloan-switch",wcagPrefix:"Zaznacz opcję EKO pożyczki",disabled:!!v||l,$_ID:"".concat(eD,"--")+J.zn})]}),!(null==j?void 0:j.hidden)&&(0,n.jsxs)(V.A,{className:u.switchContainer,children:[(0,n.jsxs)(V.A,{display:"flex",children:[(0,n.jsx)(_.A,{className:u.switchLabel,cy:"firstloan-label",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:j.label}})}),j.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(ez,{...{text:j.tooltip,symbol:"?",title:(null==j?void 0:j.label)||""},$_ID:"".concat(eD,"--")+J.DM})})]}),(0,n.jsx)(eC.A,{checked:i.currentFirstLoan,onChange:e=>w("currentFirstLoan",e),cy:"firstloan-switch",wcagPrefix:"Zaznacz opcję pierwszej pożyczki",disabled:!!v||l,$_ID:"".concat(eD,"--")+J.DM})]})]}):(0,n.jsxs)(V.A,{children:[!(null==A?void 0:A.hidden)&&(0,n.jsxs)(V.A,{className:u.checkboxContainer,children:[(0,n.jsx)(H.A,{checked:i.currentEcoLoan,onChange:e=>w("currentEcoLoan",e),label:A.label,cy:"ecoloan",wcagPrefix:"Zaznacz opcję EKO pożyczki",disabled:!!v||l,calcLoanSmallStyles:!0,$_ID:"".concat(eD,"--")+J.zn}),A.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(ez,{...{text:A.tooltip,symbol:"?",title:(null==A?void 0:A.label)||""},$_ID:"".concat(eD,"--")+J.zn})})]}),!(null==j?void 0:j.hidden)&&(0,n.jsxs)(V.A,{className:u.checkboxContainer,children:[(0,n.jsx)(H.A,{checked:i.currentFirstLoan,onChange:e=>w("currentFirstLoan",e),label:j.label,cy:"firstloan",wcagPrefix:"Zaznacz opcję pierwszej pożyczki",disabled:!!v||l,calcLoanSmallStyles:!0,$_ID:"".concat(eD,"--")+J.DM}),j.tooltip&&(0,n.jsx)(V.A,{className:u.tooltipContainer,children:(0,n.jsx)(ez,{...{text:j.tooltip,symbol:"?",title:(null==j?void 0:j.label)||""},$_ID:"".concat(eD,"--")+J.DM})})]})]})})]}),(0,n.jsx)(V.A,{className:h()(u.cardContainer,{[u.cardContainer__asCalcLoanLarge]:m}),children:(0,n.jsx)(eL,{calculatorData:t,snippetData:a,currentData:i,addCardTriangle:x,addCalcLoanLargeStyles:m})})]})})},eB=o.createContext(null),eR=c.Df.withName("PKOBPCalcLoan").create(()=>({largeContainer:{position:"relative",overflow:"hidden",borderBottomLeftRadius:"24px",borderBottomRightRadius:"24px",paddingTop:"24px",paddingBottom:"32px",paddingLeft:"16px",paddingRight:"16px",marginLeft:"-16px",marginRight:"-16px"},gradientMobile:{"& span":{zIndex:-1,top:0,position:"absolute",height:"100%",overflow:"hidden","&:nth-of-type(4)":{top:"-424px",left:"-10px",height:"865px",width:"7
175px",background:"linear-gradient(229.18deg, rgba(183, 210, 251, 0.4) -13.82%, rgba(255, 255, 255, 0.4) 37.24%, rgba(255, 255, 255, 0) 88.3%)"},"&:nth-of-type(3)":{top:0,left:"275px",background:"linear-gradient(139.18deg, rgba(183, 210, 251, 0.4) -13.82%, rgba(255, 255, 255, 0.4) 37.24%, rgba(255, 255, 255, 0) 88.3%)",width:"775px",height:"675px",[p.Ay.breakpoints.up(463)]:{height:"645px"}},"&:nth-of-type(2)":{top:"auto",left:"-384px",bottom:"-137px",width:"486px",height:"486px",background:"linear-gradient(229.18deg, rgba(183, 210, 251, 0.4) -13.82%, rgba(255, 255, 255, 0.4) 37.24%, rgba(255, 255, 255, 0) 88.3%)"},"&:nth-of-type(1)":{right:0,width:"100%",height:"100%",background:"linear-gradient(178.37deg, rgba(255, 255, 255, 0) 1.38%, rgba(219, 233, 253, 0.3) 43.73%, #B7D2FB 98.62%)"}}},subtitle:{marginBottom:"10px",[p.Ay.breakpoints.up("lg")]:{marginBottom:"12px"}},iconContainer:{marginTop:"27px",marginLeft:"3px","& a, & p":{fontSize:"14px !important"},"& .iconTextContainer > div":{lineHeight:"20px"},"& .iconTextContainer > div > span":{display:"inline-block",lineHeight:"20px"},"& .iconImgContainer":{marginTop:0}},rrsoContainer:{marginTop:"20px",marginBottom:"4px"}})),eO=e=>{var a;let{...t}=e,{classes:i}=eR(),{calc_type:c,amount:g,rates:h,eco_loan:y,first_loan:b,api_path:A}=t,[j,v]=(0,o.useState)({currentValue:(null==g?void 0:g.default_value)||1,currentTimeValue:(null==h?void 0:h.default_value)||1,currentInsurance:!1,currentFirstLoan:(null==b?void 0:b.hidden)?null:(null==b?void 0:b.default_value)||!1,currentEcoLoan:(null==y?void 0:y.hidden)?null:(null==y?void 0:y.default_value)||!1}),[f,k]=(0,o.useState)(D.create(t,{},j)),[w,C]=(0,o.useState)(null),[T,N]=(0,o.useState)(!1),[z,I]=(0,o.useState)(!1),B=(0,s.A)(p.Ay.breakpoints.down("sm")),O=(0,s.A)(p.Ay.breakpoints.down("md")),P=(0,o.useContext)(x.G);(0,o.useEffect)(()=>{v({...j,currentInsurance:!1,currentEcoLoan:null==y?void 0:y.default_value,currentFirstLoan:null==b?void 0:b.default_value})},[null==b?void 0:b.default_value,null==y?void 0:y.default_value]),(0,o.useEffect)(()=>{(async()=>await W())()},[]),(0,o.useEffect)(()=>{let e=$({currentValue:f.currentValue,currentTimeValue:f.currentTimeValue});v({...j,...e})},[f]);let M=()=>{var e,a;return null==(a=l()())||null==(e=a.publicRuntimeConfig)?void 0:e.OLD_CMS_URL},W=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j;N(!0);try{if(!A||!M())throw Error("Nie można utworzyć adresu url do zaciągania danych dla kalkulatora");let a=await fetch("".concat(M(),"/").concat(A),(e=>{let a={Kwota:(null==e?void 0:e.currentValue)>0?"".concat(null==e?void 0:e.currentValue):1,IloscRat:"".concat(null==e?void 0:e.currentTimeValue),Ubezpieczenie:(null==e?void 0:e.currentInsurance)!==null?"".concat(Number(null==e?void 0:e.currentInsurance)):null,PG0prowizji:(null==e?void 0:e.currentFirstLoan)!==null?"".concat(Number(null==e?void 0:e.currentFirstLoan)):null,EkopozyczkaPKO:(null==e?void 0:e.currentEcoLoan)!==null?"".concat(Number(null==e?void 0:e.currentEcoLoan)):null};return{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(R()(a,S()))}})(e));(0,m.T)(P,"CALC_LOAN_REQUEST_SEND",e);let t=await a.json(),n=D.update(f,{...e,...{min:Math.round(null==t?void 0:t.KwotaMinNetto),max:Math.round(null==t?void 0:t.KwotaMaxNetto),minTime:null==t?void 0:t.IloscRatMin,maxTime:null==t?void 0:t.IloscRatMax,time:null==t?void 0:t.IloscRat,rrso:null==t?void 0:t.RRSO,rrso_example:null==t?void 0:t.PrzykladReprezentatywny,ratesAmount:null==t?void 0:t.WysokoscRaty,totalLoanCost:null==t?void 0:t.CalkowityKosztKredytu,totalAmountToPay:null==t?void 0:t.CalkowityKwotaDoZaplaty,amountWithLoanCost:null==t?void 0:t.Kwota,amountNet:null==t?void 0:t.KwotaNetto,interest:null==t?void 0:t.Odsetki,interestOnCreditedItems:null==t?void 0:t.OdsetkiOdElementowKredytowanych,commissionAmount:null==t?void 0:t.ProwizjaKwota,commissionPercentage:null==t?void 0:t.ProwizjaProcent}});return k(n),C({Kwota:null==t?void 0:t.Kwota,IloscRat:null==t?void 0:t.IloscRat,...(null==t?void 0:t.Promocja)&&{Promocja:null==t?void 0:t.Promocja},KodPromocji:null==t?void 0:t.KodPromocji,Konsolidacja:null==t?void 0:t.Konsolidacja,KwotaNetto:null==t?void 0:t.KwotaNetto,CalkowityKosztKredytu:null==t?void 0:t.CalkowityKosztKredytu,WysokoscRaty:null==t?void 0:t.WysokoscRaty,RRSO:null==t?void 0:t.RRSO,RORwPKO:null==t?void 0:t.RORwPKO,K
1odPakietu:null==t?void 0:t.KodPakietu,CalkowityKwotaDoZaplaty:null==t?void 0:t.CalkowityKwotaDoZaplaty}),I(!1),(0,m.T)(P,"CALC_LOAN_REQUEST_RECEIVED",t),n}catch(a){console.error(a),(0,m.T)(P,"CALC_LOAN_REQUEST_FAIL",a),k(D.update(f,{...e,rrso:1,ratesAmount:1,totalLoanCost:1,amountWithLoanCost:1,amountNet:1,totalAmountToPay:1,min:Math.round(1500.66),interest:100,interestOnCreditedItems:100,commissionAmount:100,commissionPercentage:20})),I(!0)}finally{N(!1)}},E=async function(e){var a,t,n;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,l=$({...e,...{currentValue:null!=(a=null==e?void 0:e.currentValue)?a:null==f?void 0:f.currentValue,currentTimeValue:null!=(t=null==e?void 0:e.currentTimeValue)?t:null==f?void 0:f.currentTimeValue}});k(D.update(f,l)),v({...j,...l}),F(e,await W(l),l),"function"==typeof i&&i(null==l?void 0:l[null==(n=Object.keys(e))?void 0:n[0]])},F=(e,a,t)=>{let n=e.currentValue?e.currentValue:j.currentValue,i=e.currentTimeValue?e.currentTimeValue:j.currentTimeValue,l=n!==a.amountNet?a.amountNet:n,o=i!==a.time?a.time:i,r={...t,currentValue:H(l,a.min,a.max),currentTimeValue:H(o,a.minTime,a.maxTime)};k(D.update(a,r)),v({...j,...r})},H=(e,a,t)=>e<a?a:e>t?t:e,K=(0,r.s)(1500,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;E(e,a)}),$=e=>{let{currentTimeValue:a}=e,t=Object.assign({},j,e);return void 0!==a&&(t=Object.assign({},t,{currentTimeValue:H(a,f.minTime,f.maxTime)})),t},G=(0,n.jsx)(e_,{snippetData:t,calculatorData:f,currentData:j,isLoading:T,isMockedData:z,onUpdateCurrentData:K}),U=(0,n.jsx)(eS,{snippetData:t,calculatorData:f,currentData:j,isLoading:T,isMockedData:z,onUpdateCurrentData:E,onUpdateCurrentDataDebounced:K,displayAsCalcLoanLargeOnMobile:"large"===c&&B}),J=(0,n.jsx)(ey,{snippetData:t,calculatorData:f,currentData:j,isLoading:T,isMockedData:z,onUpdateCurrentData:E,onUpdateCurrentDataDebounced:K});return(0,n.jsx)(eB.Provider,{value:w,children:(0,n.jsxs)("div",{id:P,children:["large"===c&&!B&&J,"large"===c&&B&&(0,n.jsxs)(V.A,{className:i.largeContainer,children:[(0,n.jsxs)("div",{className:i.gradientMobile,children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}),!!(null==t||null==(a=t.subtitle)?void 0:a.length)&&(0,n.jsx)(_.A,{variant:"subtitle1",align:"center",cy:"calc-subtitle",className:i.subtitle,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t.subtitle}}
1)}),(0,n.jsx)(ec,{snippetData:t}),U,(0,n.jsx)("div",{className:i.iconContainer,children:(0,n.jsx)(u.default,{...t.have_loan,cy:"calc-have-loan",idGTM:P})}),(0,n.jsx)(d.default,{rrsoExampleFromApi:null==f?void 0:f.rrso_example,snippetData:t,isLoading:T,className:i.rrsoContainer})]}),"large"!==c&&(0,n.jsx)(L,{snippetData:t,isLoading:T,isMobile:B,isTablet:O,rrsoExampleFromApi:null==f?void 0:f.rrso_example,children:"mini"===c?G:U})]})})}},74938:(e,a,t)=>{"use strict";t.d(a,{A:()=>x});var n=t(26514),i=t(71514),l=t(75834),o=t(54907),r=t(93794),s=t(17443),c=t(54004),d=t(53303),p=t(56774),m=t(13436);let u=r.Df.withName("PKOBPDetailsBtn").withNestedSelectors().create(e=>{let{classes:a}=e;return{btnDetailsContainer:{marginTop:"30px",marginBottom:"24px",[c.Ay.breakpoints.down("sm")]:{boxShadow:"0px -3px 6px rgba(129,129,129,0.08)",padding:"16px",margin:0},["& .".concat(a.btnDetails)]:{margin:0,padding:"0 20px"}},btnDetails:{[c.Ay.breakpoints.down("sm")]:{width:"100%",maxWidth:"288px"}}}}),x=e=>{var a,t,r,c,x,g;let{snippetData:h,ctaLinkAttr:y,displayInLeadContext:b,onClickButton:A}=e,{classes:j}=u(),v=(0,l.useContext)(m.G),f=null==(a=(0,s.Rc)())?void 0:a.setCurrentStage,{button_popup_details:k,button_cta:w}=h;return(null==k||null==(t=k.link)?void 0:t.label)?(0,n.jsx)(o.A,{display:"flex",justifyContent:"center",className:j.btnDetailsContainer,children:(0,n.jsx)(d.default,{...y,variant:null==k?void 0:k.variant,label:null==k||null==(r=k.link)?void 0:r.label,cy:"CalcLoan-Popup-Details--cta-link",ariaLabel:null==k||null==(c=k.link)?void 0:c.aria_label,addWid:null==w||null==(x=w.link)?void 0:x.wid,additionalWid:v,onClickCallback:(0,i.A)(y)?()=>{b&&setTimeout(()=>{f(p.p.INIT)},200),!b&&A&&"function"==typeof A&&A()}:null,idGTM:v,id:w.id,linkId:null==w||null==(g=w.link)?void 0:g.id,className:j.btnDetails})}):null}},76730:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var n=t(26514);t(75834);var i=t(54907),l=t(93794),o=t(54004),r=t(97469),s=t(42920);let c=l.Df.withName("PKOBPCustomSwitch").create(()=>({typography:{fontSize:"14px",marginLeft:o.Ay.spacing(2),cursor:"pointer","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"},label:{cursor:"pointer",position:"relative",display:"inline-block",width:"40px",height:"24px","& .switch-indicator":{position:"absolute",top:0,left:0,right:0,bottom:0,background:o.Ay.palette.secondary.bordersDark,border:"1px solid ".concat(o.Ay.palette.secondary.bordersDark),borderRadius:"17px",transition:o.Ay.transitions.create("background-color, border-color"),"&::before":{background:"#fff",borderRadius:"50%",position:"absolute",content:'""',height:"22px",width:"22px",left:0,bottom:0,transition:o.Ay.transitions.create("transform")}}},input:{position:"absolute",opacity:0,height:0,width:0,"&:checked + .switch-indicator":{background:o.Ay.palette.primary.main,borderColor:o.Ay.palette.primary.main},"&:checked + .switch-indicator::before":{transform:"translateX(16px)"},"&:focus + .switch-indicator":{borderColor:o.Ay.palette.primary.focus},"&:checked:focus + .switch-indicator":{background:o.Ay.palette.primary.focus,borderColor:o.Ay.palette.primary.focus},"&:disabled +.switch-indicator":{opacity:.4}}})),d=e=>{let{label:a="",disabled:t,checked:l,cy:o="",wcagPrefix:d="",onChange:p,$_ID:m}=e,{classes:u}=c(),x=(0,r.U)("Switch",o,a);return(0,n.jsxs)(i.A,{display:"flex",children:[(0,n.jsxs)("label",{className:u.label,htmlFor:m,children:[(0,n.jsx)("input",{type:"checkbox",checked:l,className:u.input,onChange:e=>{var a,t;null==e||null==(a=e.target)||a.blur(),p(null==e||null==(t=e.target)?void 0:t.checked)},disabled:t,"data-cy":x+"--input",id:m,"aria-label":d}),(0,n.jsx)("span",{className:"switch-indicator"})]}),a&&(0,n.jsx)(s.A,{onClick:()=>p(!l),className:u.typography,cy:x+"--label",children:a})]})}},87472:(e,a,t)=>{"use strict";t.d(a,{G:()=>i});var n=t(70046);let i=e=>{let{is_eximee:a,eximee_epg_amount_max:t,eximee_insurance:i,eximee_context:l,currentInsurance:o,currentAmount:r,currentEcoloan:s}=e,c=(0,n.A)();return a&&r<=t&&!s&&("selected or not selected"===i||"selected"===i===o)&&("desktop + mobile"===l||"desktop"===c&&"desktop"===l||"desktop"!==c&&"mobile"===l)}},88418:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var a=arguments;switch(a.length){case 0:return!e.call(this);case 1:return!e.call(this,a[0]);case 2:return!e.call(this,a[0],a[1]);case 3:return!e.call(this,a[0],a[1],a[2])}return!e.apply(this,a)}}},90432:(e,a,t)=>{var n=t(3557),i=t(96773),l=t(36071),o=t(66251),r=t(2943);e.exports=function(e,a,t,s){if(!o(e))return e;a=i(a,e);for(var c=-1,d=a.length,p=d-1,m=e;null!=m&&++c<d;){var u=r(a[c]),x=t;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(c!=p){var g=m[u];void 0===(x=s?s(g,u,m):void 0)&&(x=o(g)?g:l(a[c+1])?[]:{})}n(m,u,x),m=m[u]}return e}},91075:(e,a,t)=>{var n=t(5982),i=t(43707),l=t(5800),o=t(32661);e.exports=Object.getOwnPropertySymbols?function(e){for(var a=[];e;)n(a,l(e)),e=i(e);return a}:o},94516:(e,a,t)=>
1{var n=t(62016),i=t(28041),l=t(13052),o=t(15017);e.exports=function(e,a){if(null==e)return{};var t=n(o(e),function(e){return[e]});return a=i(a),l(e,t,function(e,t){return a(e,t[0])})}},98751:(e,a,t)=>{var n=t(66251),i=t(13845),l=t(54981),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return l(e);var a=i(e),t=[];for(var r in e)"constructor"==r&&(a||!o.call(e,r))||t.push(r);return t}}}]);

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.