PageSourceSearch

https://www.fundacjapkobp.pl/_next/static/chunks/5512-b643181f78a77251.js

js fundacjapkobp.pl collected 2026-09-26 09:26:52 UTC 597,086 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2677,5058,5512,6587],{244:(e,t,a)=>{"use strict";a.d(t,{A:()=>_});var n=a(26514),i=a(69001),l=a.n(i),r=a(70504),o=a(23469),s=a.n(o),d=a(75834),c=a(6395),p=a(93794),u=a(2058),m=a(16341),h=a(54004),x=a(45741),g=a(78892),y=a(97469),b=a(33872),f=a(28331),v=a(13436);let w=s()(()=>a.e(4278).then(a.bind(a,21897)),{loadableGenerated:{webpack:()=>[21897]}}),A=p.Df.withName("PKOBPImage").create(()=>({container:{display:"inline-block",["& img.".concat(u.$F)]:{width:"100%"}},container__button:{display:"block",background:"none",border:"none",padding:0,margin:0,cursor:"pointer","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},wrapper:{display:"flex",alignItems:"center"},wrapper__left:{justifyContent:"flex-start"},wrapper__right:{justifyContent:"flex-end"},wrapper__center:{justifyContent:"center"}})),_=e=>{let{parentIdGTM:t,align:a="left",addAlignWrapper:i=!1,...o}=e,s=(0,c.A)(h.Ay.breakpoints.up("md")),p=(0,c.A)(h.Ay.breakpoints.up("sm")),{classes:_}=A(),j=(0,d.useContext)(r.zp),[k,C]=(0,d.useState)(!1),{link:N,desktop:S,tablet:T,mobile:z,modal:L,modal_rendered:P}=o,I=s?S:p?(null==T?void 0:T.url)?T:S:(null==z?void 0:z.url)?z:S,E=(0,g.w)(I),O=E.width&&E.height,B=(0,f.y)((0,x.IH)({path:null==I?void 0:I.file_path_url}),!O),F={...E,...!O&&B?B:{}},D=(0,y.U)("Image",o.name,""),R=(0,d.useContext)(v.G),M=(0,b.zf)({link:N,isWorkspace:j,idGTM:t||R}),H=()=>(0,n.jsx)(u.Ay,{src:null==I?void 0:I.file_path_url,...F,alt:null==S?void 0:S.alt,title:null==S?void 0:S.filename,displayStyle:(0,g.X)(I)?u.pt.AS_IMG_TAG:u.pt.DETECT,loading:(null==S?void 0:S.loading)||"lazy",masking:S.masking,margins:null==I?void 0:I.margins}),W=!(null==N?void 0:N.href)&&!L,U=(null==N?void 0:N.href)&&!L,G=!(null==N?void 0:N.href)&&L,K=()=>(0,n.jsxs)(n.Fragment,{children:[W&&(0,n.jsx)("div",{className:_.container,"data-cy":D,children:(0,n.jsx)(H,{})}),G&&(0,n.jsx)("button",{className:l()(_.container,_.container__button),"data-cy":D,onClick:()=>C(!0),"aria-label":N.aria_label,children:(0,n.jsx)(H,{})}),U&&(0,n.jsx)(m.A,{className:_.container,...M,cy:D,ariaLabel:N.aria_label,children:(0,n.jsx)(H,{})})]});return(0,n.jsxs)(n.Fragment,{children:[i?(0,n.jsx)("div",{className:l()(_.wrapper,_["wrapper__".concat(a)]),children:K()}):(0,n.jsx)(n.Fragment,{children:K()}),P&&(0,n.jsx)(w,{isOpen:k,handleCloseModal:()=>C(!1),modalRendered:P})]})}},2115:(e,t,a)=>{"use strict";a.d(t,{BR:()=>o,F1:()=>r,sJ:()=>l});let n=["jpg","jpeg","svg","png","gif","webp"],i=["pdf"];[...n.map(e=>".".concat(e)),...i.map(e=>".".concat(e)),...["text"].map(e=>".".concat(e)),...["doc","docx","xls","xlsx","csv","ppt","pptx","odt","ods","odp","rtf","sig"].map(e=>".".concat(e)),...["zip","rar","7z"].map(e=>".".concat(e)),...["mp4","ogg"].map(e=>".".concat(e)),...["mp3","wav"].map(e=>".".concat(e)),...["xml","xhtml"].map(e=>".".concat(e))];let l=e=>!!e&&n.includes(e.replace(".","").toLowerCase()),r=e=>!!e&&i.includes(e.replace(".","").toLowerCase()),o=e=>{if(!e)return"0 B";let t=parseInt(Math.floor(Math.log(e)/Math.log(1024)).toString());return Math.round(e/Math.pow(1024,t))+" "+["B","KB","MB","GB","TB"][t]}},2214:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var n=a(26514);a(75834);var i=a(54907),l=a(14571),r=a(23561),o=a(16755);let s=e=>{let{text:t,icon:a}=e;return(0,n.jsxs)(i.A,{p:2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:o.A.palette.grayscale.lightest,"data-cy":"StructureSnippet-blank",children:[(0,n.jsx)(l.A,{variant:"h6",color:"textSecondary",children:a||(0,n.jsx)(r.A,{})}),(0,n.jsx)(l.A,{variant:"body2",color:"textSecondary",children:t})]})},d=e=>{let{text:t="Aby zobaczyć pełną treść modułu konieczne jest zapisanie strony"}=e;return(0,n.jsx)(s,{text:t})}},2487:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(26514);a(75834);var i=a(54907),l=a(25525),r=a(2991),o=a(23752);let s=e=>{let{children:t,...a}=e,{marginTop:s=0,marginBottom:d=0}=a;return(0,n.jsx)(l.A,{layoutUuid:(null==a?void 0:a.uuid)||"",layoutType:r.tX.COL,children:(0,n.jsx)(i.A,{pt:s,pb:d,component:"section",children:(0,n.jsx)(o.A,{...a,children:t})})})}},3475:(e,t,a)=>{"use strict";a.d(t,{sM:()=>d_,Ay:()=>dk});var n=a(26514),i=function(e){return e[e.INDEXFOLLOW=1]="INDEXFOLLOW",e[e.NOINDEXFOLLOW=2]="NOINDEXFOLLOW",e[e.CUSTOM=3]="CUSTOM",e}({});let l={1:"Index, follow",2:"Noindex, follow",3:"Custom tag"};var r=a(58791),o=a(24322),s=a.n(o),d=a(75834),c=a(93794),p=a(83984),u=a(26772),m=a(68952),h=a(54004),x=a(2991),g=a(25250);let y=e=>(null==e?void 0:e.indexOf("http://"))<0&&(null==e?void 0:e.indexOf("https://"))<0?"https://"+e:e;var b=a(69001),f=a.n(b),v=a(52278),w=a(6395),A=a(53303),_=a(42920),j=function(e){return e.PART="1_RODO_PART",e.POSTPONE="2_RODO_POSTPONE",e.FULL="3_RODO_FULL",e.SETTINGS="4_RODO_SETTINGS",e.REJECT="5_RODO_REJECT",e}({});let k=c.Df.withName("PKOBPCookiesPolicy").create(()=>({wrapper:{display:"none",position:"fixed",bottom:"15px",left:"calc(50% - 330px)",zIndex:h.Ay.zIndex.overlayAboveAll,width:"660px",maxWidth:"100%",padding:"32px 30px 24px 30px",background:h.Ay.palette.common.white,boxShadow:h.Ay.palette.shadows.modals.normal,border:"1px solid "+h.Ay.palette.secondary.borders,borderRadius:"10px",[h.Ay.breakpoints.down(660)]:{left:0,bottom:0,padding:"19px 16px 12px 16px",borderBottomLeftRadius:0,borderBottomRightRadius:0}},wrapper__isOpen:{display:"block !important"},title:{lineHeight:"20px",fontWeight:600,fontSize:"16px",margin:0,marginBottom:"15px",[h.Ay.breakpoints.down(660)]:{marginBottom:"8px"}}
1,text:{maxHeight:"130px",overflowY:"auto",margin:"0 -24px 26px 0",paddingRight:"15px",[h.Ay.breakpoints.down(660)]:{maxHeight:"150px",margin:"0 -10px 10px 0",paddingRight:"10px"},"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-track":{backgroundColor:h.Ay.palette.secondary.borders,border:"1px solid white"},"&::-webkit-scrollbar-thumb":{backgroundColor:h.Ay.palette.primary.main,borderRadius:"9px"},"& p":{margin:"0",[h.Ay.breakpoints.down(660)]:{fontWeight:400}}},buttons:{display:"flex",alignItems:"center",justifyContent:"center","& > button":{marginTop:"0px",marginBottom:"0px",[h.Ay.breakpoints.down(660)]:{minWidth:"136px"}},"& > button:not(:last-of-type)":{marginRight:"30px",[h.Ay.breakpoints.down(660)]:{marginRight:"15px"}}},buttons__columns:{[h.Ay.breakpoints.down(660)]:{flexDirection:"column","& > button:not(:last-of-type)":{marginRight:0,marginBottom:"15px"}}}})),C=()=>{let{classes:e}=k(),[t,a]=(0,d.useState)(!1),[i,l]=(0,d.useState)(""),[r,o]=(0,d.useState)(""),[s,c]=(0,d.useState)(!1),[p,u]=(0,d.useState)(!1),m=(0,w.A)(h.Ay.breakpoints.down(660)),x=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=setTimeout(()=>{let e=window;a(!!e.SHOW_COOKIE_MODAL),e.COOKIE_MODAL_CONTENT&&l(e.COOKIE_MODAL_CONTENT),e.COOKIE_MODAL_CONTENT_MORE&&o(e.COOKIE_MODAL_CONTENT_MORE)},100);return()=>clearTimeout(e)},[]),(0,d.useEffect)(()=>{(0,v.hasCookie)(j.PART)||(0,v.hasCookie)(j.POSTPONE)||(0,v.hasCookie)(j.FULL)||(0,v.hasCookie)(j.REJECT)||u(!0)},[]),(0,d.useEffect)(()=>{if(p&&t){let e=x.current;if(!e)return;let t=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),a=t[0],n=t[t.length-1],i=e=>{"Tab"===e.key&&(e.shiftKey&&document.activeElement===a?(e.preventDefault(),n.focus()):e.shiftKey||document.activeElement!==n||(e.preventDefault(),a.focus()))};return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}}},[p,t]);let g=(e,t)=>{(0,v.setCookie)(e,!0,{maxAge:t,secure:!0,sameSite:"none"}),e===j.SETTINGS?c(!0):(u(!1),c(!1))};return t&&i&&r?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:f()(e.wrapper,{[e.wrapper__isOpen]:p}),ref:x,role:"dialog",id:"PKOBP-Modal-Cookie",children:s?(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:e.text,children:(0,n.jsx)(_.A,{variant:m?"body4":"body3",dangerouslySetInnerHTML:{__html:r}})}),(0,n.jsxs)("div",{className:e.buttons,children:[(0,n.jsx)(A.default,{variant:m?"textBlue":"secondary",onClickCallback:()=>g(j.POSTPONE,3600),label:"Przypomnij p\xf3źniej",ariaLabel:"Przypomnij p\xf3źniej"}),(0,n.jsx)(A.default,{variant:"primary",onClickCallback:()=>g(j.PART,31536e3),label:"Zaakceptuj",ariaLabel:"Zaakceptuj"})]})]}):(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:e.text,tabIndex:-1,children:(0,n.jsx)(_.A,{variant:m?"body4":"body3",dangerouslySetInnerHTML:{__html:i}})}),(0,n.jsxs)("div",{className:f()(e.buttons,e.buttons__columns),children:[(0,n.jsx)(A.default,{variant:m?"textBlue":"secondary",onClickCallback:()=>g(j.SETTINGS,31536e3),label:"Więcej",ariaLabel:"Więcej"}),(0,n.jsx)(A.default,{variant:m?"textBlue":"secondary",onClickCallback:()=>g(j.REJECT,3600),label:"Nie zgadzam się",ariaLabel:"Nie zgadzam się"}),(0,n.jsx)(A.default,{variant:"primary",onClickCallback:()=>g(j.FULL,31536e3),label:"Zaakceptuj",ariaLabel:"Zaakceptuj"})]})]})})}):null};var N=a(55080);let S=e=>{let{structure:t,components:a,depth:i=0}=e;return t?(0,n.jsx)(n.Fragment,{children:t.map(e=>{if(void 0!==a[e.type]){var t;let l=a[e.type];return(0,n.jsx)(l,{...e,placeholders:(null==e?void 0:e.placeholders)&&e.placeholders.map(t=>(0,n.jsx)(S,{structure:t,components:a,depth:i+1,parent:e})),uuid:e.key,snippet_uuid:e.uuid||void 0,children:!!(null==e||null==(t=e.children)?void 0:t.length)&&(0,n.jsx)(S,{structure:e.children,components:a,depth:i+1,parent:e})})}return console.warn("!!!Komponent ".concat(e.type," nie jest zdefiniowany w zestawie snippet\xf3w.")),null})}):(0,n.jsx)(n.Fragment,{})};var T=a(23469),z=a.n(T),L=a(71514),P=a(20242),I=a(6018),E=a(39505);let O=(e,t)=>{let a=new Date;return!(e&&(0,P.A)((0,I.A)(e),a)||t&&(0,E.A)((0,I.A)(t),a))};var B=a(54907),F=a(25525),D=a(23752),R=a(99090),M=a(2487),H=a(9079),W=a(48216),U=a(13436);let G=z()(()=>a.e(8176).then(a.bind(a,48176)),{loadableGenerated:{webpack:()=>[48176]}});var K=a(29692),V=a(62176),Y=a(24995),Z=a(99257),q=a(46225),X=a(93069),$=a(82056),J=a(60719),Q=a(29009),ee=a(56264),et=a(57051),ea=a(13403),en=a(2141),ei=a(34453),el=a(74621),er=a(51507),eo=a(27133),es=a(43371);let ed=[{value:"cash_loans_offer",label:"Oferta pożyczek got\xf3wkowych"},{value:"account_offer",label:"Oferta Kont"},{value:"credit_card_offer",label:"Oferta Kart Kredytowych"},{value:"insurance_offer",label:"Oferta Ubezpieczeń"}],ec=c.Df.withName("PKOBPAgencyForm").create(()=>({container:{maxWidth:600,margin:"0 auto"},title:{fontSize:"32px",lineHeight:"40px",marginBottom:"38px",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"13px"}},formContainer:{display:"flex",flexDirection:"column",gap:"8px",position:"relative"},inputs:{margin:0,padding:0,border:"none","&>legend":es.$,display:"flex",flexDirection:"column",gap:"8px",paddingTop:"5px"},textField:{width:"100%",".text-spacing-detected &":{"& fieldset":{"& legend, & span":{lineHeight:"1 !important"}}},"& .MuiInputBase-root, &.MuiInputBase-root":{borderRadius:"8px",borderColor:h.Ay.palette.text.primary,fontFamily:h.Ay.typography.fontFamily,height:"48px",".text-spacing-detected &":{height:"auto",minHeight:"48px"}},"& .MuiInputAdornment-root":{marginLeft:"-2px",marginTop:"0",letterSpacing:"-1px",[h.Ay.breakpoints.down("md")]:{marginTop:"1px"},".text-spacing-detected &":{"& p":{marginTop:"5px"}}},"& .MuiInputBase-input":{paddingTop:"15px",paddingBottom:"15px",".text-spacing-detected &":{"&:not(textarea)":{lineHeight:"1 !important"},paddingTop:"calc(15px + 5px)"}},"& .MuiOutlinedInput-notchedOutline":{top:0,"& > *":{lineHeight:"0"}}},inputWrapper:{marginBottom:"14px"},labelWrapper:{display:"flex",alignItems:"center",marginBottom:"2px","& label":{color:h.Ay.palette.text.primary,display:"inline-block",fontSize:"14px",lineHeight:"24px"}}
1,selectLabel:{marginLeft:"16px",lineHeight:1},select:{marginTop:"4px",height:"48px",width:"100%",".text-spacing-detected &":{height:"auto",minHeight:"48px"},"& select":{zIndex:"1"},"& svg":{display:"inline-block",width:"24px",height:"24px",position:"absolute",right:6,top:12,".text-spacing-detected &":{top:"auto"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,borderRadius:"8px",transition:"border 0.2s ease-in-out"}},agreements:{margin:0,padding:0,border:"none","&>legend":es.$,marginTop:"16px"},responseContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",[h.Ay.breakpoints.up("sm")]:{minWidth:"600px"}},messageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:"100%",height:"100%",marginBottom:"15px"},checkIcon:{width:"96px",height:"96px",fill:h.Ay.palette.success.main,marginBottom:"16px"},closeIcon:{width:"96px",height:"96px",fill:h.Ay.palette.error.main},responseHeader:{margin:"0 0 18px 0",textAlign:"center",fontSize:"24px",lineHeight:32/24,[h.Ay.breakpoints.down("sm")]:{fontSize:"18px"}},responseBtn:{width:"auto",alignSelf:"center",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},submitBtn:{width:"auto",alignSelf:"start",margin:"-4px auto 0 auto",[h.Ay.breakpoints.down("sm")]:{width:"100%"}}})),ep=e=>{let{apiFormCreateFn:t,cy:a,id:i,agencySnippetData:l,withQuestionSubjectSelect:r}=e,{classes:o}=ec(),s=(0,q.useRouter)(),c=(0,en.A)(),p=(0,w.A)(h.Ay.breakpoints.down("sm")),[u,m]=(0,d.useState)(!1),[x,g]=(0,d.useState)(null),[y,b]=(0,d.useState)(!1),[f,j]=(0,d.useState)([]),k="To pole jest wymagane",{hx:C,title:N,agreement_1:S,agreement_2:T,agreement_3:z,agreement_4:L,agreement_5:P,info_1:I,info_2:E}=l||{},O=[S,T,z,L,P,I,E].filter(e=>(null==e?void 0:e.length)>0),F=e=>{var t;return null==f||null==(t=f.filter(t=>(null==t?void 0:t.id)===Number(e)))?void 0:t[0]},D=e=>{let t=F(e),a=(null==t?void 0:t.error_message)||"Zgoda jest wymagana.";return X.zM().when([],{is:()=>null==t?void 0:t.is_required,then:e=>
1e.oneOf([!0],a).required(a),otherwise:e=>e.notRequired()})},R=/^[a-zA-Z\u0080-\u00FF\u0100-\u017F\u0180-\u024F\s-]*$/,M=X.Ik().shape({first_name:X.Yj().required(k).max(25,"Imię może mieć maksymalnie 25 znak\xf3w.").matches(R,"Imię może zawierać tylko litery, spacje i myślniki."),last_name:X.Yj().required(k).max(25,"Nazwisko może mieć maksymalnie 25 znak\xf3w.").matches(R,"Nazwisko może zawierać tylko litery, spacje i myślniki."),phone:X.Yj().required(k).matches(/^\d{9}$/,"Poprawny numer powinien składać się z 9 cyfr."),question_subject:X.Yj().when([],{is:()=>r,then:e=>e.required(k),otherwise:e=>e.notRequired()}),agreement_1:D(S),agreement_2:D(T),agreement_3:D(z),agreement_4:D(L),agreement_5:D(P)}),H=async(e,a)=>{let{resetForm:n}=a;m(!0);try{var i,l,r,o,d,c;let a=await t({...e,agreement_1:(null==e?void 0:e.agreement_1)?null==(i=F(S))?void 0:i.display_name:"",agreement_2:(null==e?void 0:e.agreement_2)?null==(l=F(T))?void 0:l.display_name:"",agreement_3:(null==e?void 0:e.agreement_3)?null==(r=F(z))?void 0:r.display_name:"",agreement_4:(null==e?void 0:e.agreement_4)?null==(o=F(L))?void 0:o.display_name:"",agreement_5:(null==e?void 0:e.agreement_5)?null==(d=F(P))?void 0:d.display_name:"",wid:(0,v.getCookie)("wid")||null,portal:(0,v.getCookie)("portal")||null,agency_code:(null==s||null==(c=s.query)?void 0:c["agency-code"])||null},{checkToken:!1});if(a.ok)g({type:"success",message:"Formularz został pomyślnie wysłany. Dziękujemy!"}),n();else throw Error("HTTP error! Status: ".concat(a.status))}catch(e){console.error(e),g({type:"error",message:"Wystąpił błąd podczas wysyłania formularza.<br>Spr\xf3buj ponownie p\xf3źniej."})}finally{m(!1)}},W=()=>{b(!1),setTimeout(()=>{g(null)},500)};(0,d.useEffect)(()=>{(null==x?void 0:x.type)&&b(!0)},[x]),(0,d.useEffect)(()=>{let e=async()=>{try{let e=await c.apiModulesAgreementListList({agreements:O.toString()});if(e.ok)return j(e.data)}catch(e){console.error(e,"err")}};return(null==O?void 0:O.length)&&!(null==f?void 0:f.length)&&e(),()=>{j([])}},[]);let U=r?"formularza kontaktowego agencji":"formularza z zapytaniem o ofertę produktową";return(0,n.jsxs)(B.A,{className:o.container,"data-cy":"".concat(a,"--wrapper"),id:i,children:[(0,n.jsx)(_.A,{variant:(0,ei.a)(C),align:"center",cy:a+"--title",className:o.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:N}})}),(0,n.jsx)(Z.l1,{initialValues:{first_name:"",last_name:"",phone:"",question_subject:"",agreement_1:!1,agreement_2:!1,agreement_3:!1,agreement_4:!1,agreement_5:!1},validationSchema:M,onSubmit:H,children:e=>((0,d.useEffect)(()=>{if(e.submitCount>0&&!e.isValid){let t=Object.keys(e.errors)[0],a=document.querySelector('[name="'.concat(t,'"]'));(null==a?void 0:a.focus)&&a.focus()}},[e.submitCount,e.isValid]),(0,n.jsx)(Z.lV,{children:(0,n.jsxs)(B.A,{className:o.formContainer,children:[u&&(0,n.jsx)(eo.Ay,{isLoading:u,withOverlay:!0,size:eo.iW.LG}),(0,n.jsxs)(B.A,{component:"fieldset",className:o.inputs,"aria-live":"polite",children:[e.submitCount>0&&!e.isValid?(0,n.jsxs)("legend",{children:["Nie wszystkie pola ",U," są poprawnie uzupełnione"]},"invalid-inputs"):(0,n.jsxs)("legend",{children:["Pola do wypełnienia ",U]},"valid-inputs"),(0,n.jsxs)(B.A,{className:o.inputWrapper,children:[(0,n.jsx)(B.A,{className:o.labelWrapper,children:(0,n.jsx)("label",{htmlFor:"".concat(a,"_first_name"),children:(null==l?void 0:l.first_name_label)||"Imię"})}),(0,n.jsx)($.A,{id:"".concat(a,"_first_name"),name:"first_name",className:o.textField,value:e.values.first_name,onChange:t=>{let a=t.target.value;R.test(a)&&a.length<=25&&e.setFieldValue("first_name",a)},onBlur:e.handleBlur,error:e.touched.first_name&&!!e.errors.first_name,helperText:e.touched.first_name&&e.errors.first_name,fullWidth:!0,inputProps:{maxLength:25,"aria-label":"Wpisz ".concat(l.first_name_label||"Imię")}})]}),(0,n.jsxs)(B.A,{className:o.inputWrapper,children:[(0,n.jsx)(B.A,{className:o.labelWrapper,children:(0,n.jsx)("label",{htmlFor:"".concat(a,"_last_name"),children:(null==l?void 0:l.last_name_label)||"Nazwisko"})}),(0,n.jsx)($.A,{id:"".concat(a,"_last_name"),name:"last_name",className:o.textField,value:e.values.last_name,onChange:t=>{let a=t.target.value;R.test(a)&&a.length<=25&&e.setFieldValue("last_name",a)},onBlur:e.handleBlur,error:e.touched.last_name&&!!e.errors.last_name,helperText:e.touched.last_name&&e.errors.last_name,fullWidth:!0,inputProps:{maxLength:25,"aria-label":"Wpisz ".concat(l.last_name_label||"Nazwisko")}})]}),(0,n.jsxs)(B.A,{className:o.inputWrapper,children:[(0,n.jsx)(B.A,{className:o.labelWrapper,children:(0,n.jsx)("label",{htmlFor:"".concat(a,"_phone"),children:(null==l?void 0:l.phone_label)||"Telefon kontaktowy"})}),(0,n.jsx)($.A,{id:"".concat(a,"_phone"),name:"phone",type:"text",className:o.textField,value:e.values.phone,onChange:t=>{let a=t.target.value;/^\d*$/.test(a)&&e.setFieldValue("phone",a)},onBlur:e.handleBlur,error:e.touched.phone&&!!e.errors.phone,helperText:e.touched.phone&&e.errors.phone,fullWidth:!0,inputProps:{maxLength:9,"aria-label":"Wpisz ".concat(l.phone_label||"Telefon kontaktowy")},InputProps:{startAdornment:(0,n.jsx)(et.A,{position:"start",style:{marginLeft:"-2px"},children:"+ 48"})}})]}),r&&(0,n.jsxs)(B.A,{className:o.inputWrapper,children:[(0,n.jsx)(B.A,{className:o.labelWrapper,children:(0,n.jsx)("label",{htmlFor:"".concat(a,"_question_subject"),children:"Wybierz temat"})}),(0,n.jsxs)(J.A,{id:"".concat(a,"_question_subject"),value:e.values.question_subject,onChange:e.handleChange,name:"question_subject",IconComponent:()=>(0,n.jsx)(V.A,{}),className:o.select,error:e.touched.question_subject&&!!e.errors.question_subject,label:"",inputProps:{"aria-label":"Wybierz jeden temat z poniższych opcji","aria-invalid":!!e.errors.question_subject,"aria-describedby":"".concat(a,"_question_subject_error")},children:[(0,n.jsx)(Q.A,{value:"",children:(0,n.jsx)(_.A,{color:h.Ay.palette.grey[500],children:"Wyczyść wyb\xf3r"})}),ed.map(e=>(0,n.jsx)(Q.A,{value:e.value,children:e.label},e.value))]}),e.touched.question_subject&&e.errors.question_subject&&(0,n.jsx)(ee.A,{error:!0,id:"".concat(a,"_question_subject_error"),children:e.errors.question_subject})]})]}),(0,n.jsxs)(B.A,{component:"fieldset",className:o.agreements,children:[e.submitCount>0&&!e.isValid?(0,n.jsxs)("legend",{children:["Nie wszystkie obowiązkowe zgody ",U," zostały zaznaczone"]},"invalid-agreements"):(0,n.jsxs)("legend",{children:["Zgody do zaznaczenia ",U]},"valid-agreements"),Array.from({length:5},(t,a)=>{let i="agreement_".concat(a+1),r=F(null==l?void 0:l[i]);return!!(null==l?void 0:l[i])&&r&&(0,n.jsx)(er.A,{formik:e,field:{name:i,link_label:null==r?void 0:r.link_label,link_label_expanded:null==r?void 0:r.link_label_expanded,content:null==r?void 0:r.content,display_name:null==r?void 0:r.display_name}})}),Array.from({length:2},(e,t)=>{let a="info_".concat(t+1),i=F(null==l?void 0:l[a]);return!!(null==l?void 0:l[a])&&i&&(0,n.jsx)(el.A,{link_label:null==i?void 0:i.link_label,link_label_expanded:null==i?void 0:i.link_label_expanded,content:null==i?void 0:i.content,display_name:null==i?void 0:i.display_name})})]}),(0,n.jsx)(ea.Ay,{isOpen:y,handleClose:W,size:ea.Ih.MD,modalStyle:ea.YT.DEFAULT,fullScreen:p,showDrawerOnMobile:!1,$_ID_MODAL_TITLE:"PKOBP_AGENCY_CONTACT_FORM_MODAL",children:(0,n.jsxs)(B.A,{className:o.responseContainer,children:[(0,n.jsxs)(B.A,{className:o.messageWrapper,children:[(null==x?void 0:x.type)==="success"?(0,n.jsx)(K.A,{className:o.checkIcon}):(0,n.jsx)(Y.A,{className:o.closeIcon}),(null==x?void 0:x.message)&&(0,n.jsx)(_.A,{className:o.responseHeader,variant:"body1",dangerouslySetInnerHTML:{__html:null==x?void 0:x.message},id:"PKOBP_AGENCY_CONTACT_FORM_MODAL"})]}),(0,n.jsx)(A.default,{className:o.responseBtn,variant:"primary",renderAsButton:!0,onClickCallback:W,ariaLabel:"Zamknij okno",cy:a,children:"Zamknij"})]})}),(0,n.jsx)(A.default,{type:"submit",variant:"primary",disabled:e.isSubmitting,renderAsButton:!0,className:o.submitBtn,ariaLabel:"Wyślij uzupełniony formularz",children:"Wyślij"})]})}))})]})};var eu=a(17792);let em="AgencyContactForm",eh=e=>{let{...t}=e,a=(0,en.A)().apiModulesAgencyContactFormCreate,i=(0,d.useContext)(U.G);return(0,n.jsx)("div",{id:i,"data-cy":em,children:(0,n.jsx)(ep,{agencySnippetData:t,apiFormCreateFn:a,cy:em,id:eu.H,withQuestionSubjectSelect:!0})})};var ex=a(31499);let eg={src:"/_next/static/media/pko_icon_poi_active_marker.48ce56d4.svg"},ey={src:"/_next/static/media/pko_icon_poi_agency.14e6b793.svg"};
1var eb=a(29386),ef=a(7650),ev=a.n(ef),ew=a(98938),eA=a(93368);let e_={filters:{type:null,atm_type:null,openNow:null,openAllTime:null,openFromTo:null,segments:null,servicesInsideSegments:null,services:null,currencies:null,conveniences:null}},ej={lat:52.2296756,lng:21.0122287},ek=(e,t)=>{switch(t.type){case"updateFilters":return{...e,filters:{...e.filters,...t.payload}};case"resetFilters":return{...e_};default:return e}},eC=(0,d.createContext)(void 0),eN=e=>{let{children:t,mapType:a}=e,[i,l]=(0,d.useReducer)(ek,e_),[r,o]=(0,d.useState)(!1),[s,c]=(0,d.useState)("map"),[p,u]=(0,d.useState)(""),[m,h]=(0,d.useState)([]),[x,g]=(0,d.useState)([]),[y,b]=(0,d.useState)(ej),[f,v]=(0,d.useState)([]),[w,A]=(0,d.useState)(null),[_,j]=(0,d.useState)(null),[k,C]=(0,d.useState)(!1),[N,S]=(0,d.useState)(""),[T,z]=(0,d.useState)([]),L="BM"===a,P=m.find(e=>e.key===(null==a?void 0:a.toLowerCase())),I="DEFAULT"===a||L?null:null==a?void 0:a.toLowerCase();return(0,n.jsx)(eC.Provider,{value:{showXBtn:r,setShowXBtn:o,poiTypes:m,setPoiTypes:h,focusedPoi:N,setFocusedPoi:S,segmentList:x,setSegmentList:g,centerCoordinates:y,setCenterCoordinates:b,poiList:f,setPoiList:v,searchInput:p,setSearchInput:u,mobileView:s,setMobileView:c,filters:i.filters,handleFilterChange:(e,t)=>
1{l({type:"updateFilters",payload:{[e]:t}})},updateAllFilters:e=>{l({type:"updateFilters",payload:e})},resetFilters:()=>{l({type:"resetFilters"})},activePoi:w,setActivePoi:A,autocompleteList:_,setAutocompleteList:j,isSearchInputActive:k,setIsSearchInputActive:C,forcedPoiType:P,poiTypeParam:I,isBmMap:L,bmLabels:T,setBmLabels:z},children:t})},eS=()=>{let e=(0,d.useContext)(eC);return e||console.error("usePoiFilters must be used within a PoiFiltersProvider"),e},eT=["Białystok","Gdańsk","Katowice","Krak\xf3w","Lublin","Ł\xf3dź","Poznań","Szczecin","Warszawa","Wrocław"],ez="strategy_clients",eL={label:ez,lng:21.0214759111404,mapped_label:"Klienci Strategiczni",zipcode:"02-515",lat:52.21049083526851,address:"ul. Puławska 15",city:"Warszawa",fancy_name:"Departament Klienta Strategicznego",opening_hours:[{day:0,day_to:0,from_hour:8,from_minute:0,to_hour:16,to_minute:0},{day:1,day_to:1,from_hour:8,from_minute:0,to_hour:16,to_minute:0},{day:2,day_to:2,from_hour:8,from_minute:0,to_hour:16,to_minute:0},{day:3,day_to:3,from_hour:8,from_minute:0,to_hour:16,to_minute:0},{day:4,day_to:4,from_hour:8,from_minute:0,to_hour:16,to_minute:0}],contact_phone:"22 521 48 11"},eP="Oddział bezgot\xf3wkowy, możliwa obsługa got\xf3wkowa w PLN w urządzeniach samoobsługowych.",eI=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:(0,n.jsxs)("g",{transform:"translate(-120 -774)",children:[(0,n.jsx)("rect",{width:"96",height:"96",transform:"translate(120 774)",fill:"inherit",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(-809 2386)",children:[(0,n.jsx)("path",{"data-name":"Path 1382",d:"M941-1596v32h12v-4h-8v-24h64v24h-8v4h12v-32Z",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 1383",d:"M984.942-1537.592l-5.948,5.936V-1548h-4v16.344l-5.94-5.936a3.876,3.876,0,0,0-5.468.18L976.994-1524l13.42-13.412A3.876,3.876,0,0,0,984.942-1537.592Z",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 1384",d:"M1005-1584H949v4h8v28h40v-28h8Zm-22.368,4a5.992,5.992,0,0,1-5.632,4,5.992,5.992,0,0,1-5.632-4ZM961-1565.172l9.172,9.172H961ZM993-1556H975.828L961-1570.828V-1580h6.2a10,10,0,0,0,9.8,8,10,10,0,0,0,9.8-8h6.23Z",fill:"inherit"})]})]})}),eE=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 1449",d:"M14.95,7H5V8H7v7H17V8h2V7ZM13.408,8a1.491,1.491,0,0,1-2.816,0ZM8,14V11.707L10.293,14Zm8,0H11.707L8,10.293V8H9.55a2.5,2.5,0,0,0,4.9,0h1.557Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 1447",d:"M8.646,19.353a.969.969,0,0,0,1.367.045L11.5,17.914V22h1V17.914L13.986,19.4a.968.968,0,0,0,1.368-.045L12,16Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 1448",d:"M3,12H6V11H4V5H20v6H18v1h3V4H3Z",fill:"#000066"})]}),(0,n.jsx)("rect",{width:"24",height:"24",fill:"#000066",opacity:"0"})]}),eO=()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M16 20C15.7348 20 15.4805 19.8946 15.293 19.707C15.1054 19.5195 15 19.2652 15 19V13C15 12.7348 15.1054 12.4805 15.293 12.293C15.4805 12.1054 15.7348 12 16 12H17C17.2652 12 17.5195 12.1054 17.707 12.293C17.8946 12.4805 18 12.7348 18 13H18.9282C18.9759 12.6688 18.9998 12.3346 19 12C18.9981 10.1441 18.2601 8.3646 16.9478 7.05225C15.6354 5.73989 13.8559 5.00185 12 5C10.1441 5.00212 8.36503 5.74019 7.05273 7.05249C5.74044 8.36479 5.00212 10.1441 5 12C4.99988 12.3346 5.02341 12.6688 5.0708 13H6.00098C6.00098 12.7348 6.10641 12.4805 6.29395 12.293C6.48148 12.1054 6.73576 12 7.00098 12H8.00098C8.26619 12 8.52047 12.1054 8.70801 12.293C8.89554 12.4805 9.00098 12.7348 9.00098 13V19C9.00098 19.2652 8.89554 19.5195 8.70801 19.707C8.52047 19.8946 8.26619 20 8.00098 20H7.00098C6.73576 20 6.48148 19.8946 6.29395 19.707C6.10641 19.5195 6.00098 19.2652 6.00098 19H5.00098C4.73576 19 4.48148 18.8946 4.29395 18.707C4.10641 18.5195 4.00098 18.2652 4.00098 18V13H4.06299C4.02101 12.6683 3.99998 12.3343 4 12C4.00238 9.879 4.84593 7.84548 6.3457 6.3457C7.84548 4.84593 9.879 4.00238 12 4C14.121 4.00238 16.1545 4.84593 17.6543 6.3457C19.1541 7.84548 19.9976 9.879 20 12C19.9998 12.3343 19.9788 12.6683 19.937 13H20V18C20 18.2652 19.8946 18.5195 19.707 18.707C19.5195 18.8946 19.2652 19 19 19H18C18 19.2652 17.8946 19.5195 17.707 19.707C17.5195 19.8946 17.2652 20 17 20H16ZM16 19H17V13H16V19ZM7 19H8V13H7V19ZM18 18H19V15.877V14H18V18ZM5 18H6V14H5V18Z",fill:"#2C89FD"})});var eB=a(38264);let eF=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{children:(0,n.jsx)("rect",{"data-name":"Rectangle 6331",width:"11",height:"7",transform:"translate(9 13)",fill:"none"})})}),(0,n.jsxs)("g",{"data-name":"pko_icon_parking-for-disabled-people_24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#fff",opacity:"0"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 17366",d:"M7,11h3a1,1,0,0,0,1-1V7a1,1,0,0,0-1-1H6v8H7ZM7,7h3v3H7Z",fill:"#000066"}),(0,n.jsxs)("g",{"data-name":"Group 19132",clipPath:"url(#clip-path)",children:[(0,n.jsx)("rect",{"data-name":"Rectangle 6329",width:"13.038",height:"1",transform:"translate(8.731 19.577) rotate(-32.467)",fill:"#000066"}),(0,n.jsx)("rect",{"data-name":"Rectangle 6330",width:"1",height:"13.038",transform:"matrix(0.537, -0.844, 0.844, 0.537, 8.731, 13.422)",fill:"#000066"})]}),(0,n.jsx)("path",{"data-name":"Path 17367",d:"M19,19H10V14h9Zm1-6H9v7H20Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17368",d:"M8,18H6a1,1,0,0,1-1-1V6A1,1,0,0,1,6,5h7a1,1,0,0,1,1,1v6h1V6a2,2,0,0,0-2-2H6A2,2,0,0,0,4,6V17a2,2,0,0,0,2,2H8Z",fill:"#000066"})]})]})]}),eD="PoiDetailsInformationItem",eR=c.Df.withName("PKOBPPoiDetailsInformationItem").create(()=>({item:{display:"flex",alignItems:"start",justifyContent:"start",marginBottom:"8px",gap:"9px",fontWeight:300,fontSize:"14px",lineHeight:"24px","& a":{color:h.Ay.palette.primary.hover,textUnderlineOffset:"2px",fontWeight:400}},item__noIcon:{marginTop:"-4px"},item__isRed:{color:h.Ay.palette.error.main,"& $icon svg, & $icon svg path":{fill:h.Ay.palette.error.main}},icon:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:"24px",width:"24px",height:"24px",position:"relative",top:"-1px","& svg":{width:"24px",height:"24px","& path":{stroke:"unset",fill:h.Ay.palette.primary.main}}},extraTextBtn:{...h.cc,display:"flex",alignItems:"center",justifyContent:"start",ga
1p:"7px"},extraText:{width:"100%",marginBottom:"1px"},extraTextIcon:{height:"24px",marginTop:"-3px","& svg":{"-webkit-transition-property":"transform","-webkit-transition-duration":"0.2s","-webkit-transition-timing-function":"ease-out","transition-property":"transform","transition-duration":"0.2s","transition-timing-function":"ease-out",fill:h.Ay.palette.primary.main}},extraTextIcon__isActive:{"& svg":{transform:"rotate(180deg)"}}})),eM=e=>{let{icon:t,text:a,extraText:i,cyType:l,redText:r=!1}=e,{classes:o}=eR(),[s,c]=(0,d.useState)(!1),p="string"==typeof a?(0,n.jsx)("div",{className:o.text,dangerouslySetInnerHTML:{__html:a}}):a;return(0,n.jsxs)(ew.A,{className:f()(o.item,{[o.item__isRed]:r,[o.item__noIcon]:!t}),"data-cy":"".concat(eD).concat(l?"--"+l:""),children:[(0,n.jsx)("div",{className:o.icon,children:t}),i?(0,n.jsxs)("div",{className:o.text,children:[(0,n.jsxs)("button",{onClick:()=>c(!s),className:o.extraTextBtn,"data-cy":"".concat(eD,"--btnExpandableText"),children:[a,(0,n.jsx)("span",{className:f()(o.extraTextIcon,{[o.extraTextIcon__isActive]:s}),children:(0,n.jsx)(V.A,{})})]}),s&&(0,n.jsx)("div",{className:o.extraText,"data-cy":"".concat(eD,"--extraText"),children:i})]}):(0,n.jsx)("div",{children:p})]})},eH={1:(0,n.jsx)(()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{"data-name":"pko_icon_wheelchair_24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#000066",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(152 285)",children:[(0,n.jsx)("path",{"data-name":"Path 2060",d:"M-144.623-269.278c.005.015-3.378-4.222-3.378-4.222l3-2.5h2a.979.979,0,0,1,1,1h-2.64l-1.968,1.641,3.388,4.234A.95.95,0,0,1-144.623-269.278Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2061",d:"M-133.909-267.2l-2.4-4.8H-137a.979.979,0,0,1-1-1h2.309l3.138,6.276A.952.952,0,0,1-133.909-267.2Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2062",d:"M-142.75-280.5a1.252,1.252,0,0,1,1.25,1.25,1.252,1.252,0,0,1-1.25,1.25,1.252,1.252,0,0,1-1.25-1.25,1.252,1.252,0,0,1,1.25-1.25m0-1a2.25,2.25,0,0,0-2.25,2.25,2.25,2.25,0,0,0,2.25,2.25,2.25,2.25,0,0,0,2.25-2.25,2.25,2.25,0,0,0-2.25-2.25Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2063",d:"M-142.5-274a5.5,5.5,0,0,0-1.5.212,1.041,1.041,0,0,0,1,.82c.052,0,.331-.032.5-.032a4.505,4.505,0,0,1,4.5,4.5,4.505,4.505,0,0,1-4.5,4.5,4.505,4.505,0,0,1-4.5-4.5,4.015,4.015,0,0,1,.031-.493c.068-.777-.819-1.007-.819-1.007a5.5,5.5,0,0,0-.212,1.5,5.5,5.5,0,0,0,5.5,5.5,5.5,5.5,0,0,0,5.5-5.5A5.5,5.5,0,0,0-142.5-274Z",fill:"#000066"})]})]})}),{}),2:(0,n.jsx)(()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{"data-name":"pko_icon_induction-loop_24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#fff",opacity:"0"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 17355",d:"M17,9.71c0,2.2-.83,2.73-1.8,4.58a5.51,5.51,0,0,0-.6,2.85c0,1.74-1.48,2.86-3.3,2.86a3.141,3.141,0,0,1-3.16-2A2.628,2.628,0,0,1,8,17.14v-.05l1-1v1.05C9,18.42,10.19,19,11.3,19s2.3-.58,2.3-1.86a6.575,6.575,0,0,1,.71-3.32c.28-.53.54-.95.78-1.32A4.329,4.329,0,0,0,16,9.71a3.642,3.642,0,0,0-.04-.57,4.532,4.532,0,0,0-.29-1.11,4.666,4.666,0,0,0-.49-.91,5.829,5.829,0,0,0-.65-.75A5.19,5.19,0,0,0,11,5,4.863,4.863,0,0,0,6,9.71a4.257,4.257,0,0,0,.36,1.73l-.76.76A5.385,5.385,0,0,1,5,9.71,5.865,5.865,0,0,1,11,4a6.1,6.1,0,0,1,4.23,1.67h.01a5.068,5.068,0,0,1,.65.74,4.308,4.308,0,0,1,.53.87,4.589,4.589,0,0,1,.39,1.01A5.529,5.529,0,0,1,17,9.71",fill:"#000066"}),(0,n.jsx)("rect",{"data-name":"Rectangle 6320",width:"4",height:"1",transform:"translate(16 15)",fill:"#000066"}),(0,n.jsx)("rect",{"data-name":"Rectangle 6321",width:"1",height:"3",transform:"translate(17.5 16)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17356",d:"M10.5,13.2,5.82,17.88,5,18l.12-.82L9.8,12.5Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17357",d:"M19,4l-.12.82L17.22,6.48a5.1,5.1,0,0,0-.57-.83l1.53-1.53Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17358",d:"M15,10a3.865,3.865,0,0,1-.17,1.13l-.85-.85A1.274,1.274,0,0,0,14,10a3,3,0,0,0-5.99-.21l-.94.94A3.478,3.478,0,0,1,7,10a4,4,0,0,1,8,0",fill:"#000066"})]})]})}),{}),3:(0,n.jsx)(()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{"data-name":"pko_icon_sign-language_24",children:[(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 16776",d:"M11.034,11.176a4.731,4.731,0,0,0,1.218-.035l.126-.02V8.362l-1.159-.975c.27-.127.8-.372,1.56-.72a1.145,1.145,0,0,0,.565-1.13,4.705,4.705,0,0,0-.579-1.418L12.7,4.01l-1.069.442a1.224,1.224,0,0,0-.612-1.25l-.067-.038L7.838,4.6l.509-.523c.043-.038.41-.375.322-.717a.957.957,0,0,0-.377-.49l-.1-.06
17L6.971,4.014c-.129.188-.366.543-.644.96-.6.9-1.6,2.395-1.764,2.576-1.276.6-1.62.744-1.62.745l-.159.066.087.149a.942.942,0,0,0,1.173.4l1.2-.559c.03-.022.037-.026,1.227-1.779L7.157,6l2.52-1.171L10.5,4.46a.409.409,0,0,1,.052.518.456.456,0,0,1-.09.1c-1.033.455-2.115.991-2.7,1.278-.144.071-.252.125-.316.155l-.12.06.042.126a.778.778,0,0,0,1.113.436c2.137-1.064,3.352-1.613,3.727-1.778a.607.607,0,0,1,.06.4.365.365,0,0,1-.244.217c-.256.124-2.359,1.111-2.36,1.111l-.217.1,1.942,1.56V10.22c-.24-.011-.547-.072-.555-.217-.013-.3,0-.908,0-.915v-.07l-.053-.046a3.908,3.908,0,0,0-1.516-.809,1.362,1.362,0,0,0-1.41.416,7.68,7.68,0,0,0-.776,1.194l-.048.094.07.077a2.727,2.727,0,0,0,2.122.789H9.23a.832.832,0,0,1,.715.4l-.531.275-2.41,0-2.543-.575-.049.025s-.84.435-1.143.6c-.432.208-.42,1.044-.417,1.14l.008.244L4.6,11.9c.253.049,1.367.271,2.165.506l3.029.006,1.408-.866ZM9.949,9.936a1.308,1.308,0,0,0-.505-.1,1.283,1.283,0,0,0-.24.022,2.84,2.84,0,0,1-1.08-.22,1.322,1.322,0,0,1,.4-.47.793.793,0,0,1,.429-.12h.039a3.656,3.656,0,0,1,.947.485c.011.134.011.27.011.4",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 16777",d:"M21.129,15.492a.941.941,0,0,0-1.173-.4l-1.183.549a15.369,15.369,0,0,0-1.249,1.787L16.839,18l-2.52,1.172-.821.369a.409.409,0,0,1-.053-.517.46.46,0,0,1,.091-.1c1.04-.456,2.123-.993,2.706-1.28.14-.07.246-.12.309-.153l.12-.06-.042-.125a.78.78,0,0,0-.987-.491h0a.807.807,0,0,0-.124.055c-2.136,1.065-3.352,1.613-3.727,1.778a.6.6,0,0,1-.06-.4.37.37,0,0,1,.244-.219c.256-.124,2.359-1.11,2.359-1.11l.218-.1-1.942-1.56V13.782c.24.011.549.071.558.215.012.3,0,.909,0,.915v.071l.052.046a3.9,3.9,0,0,0,1.514.807,1.359,1.359,0,0,0,1.41-.414,7.492,7.492,0,0,0,.776-1.194l.049-.094-.071-.077a2.738,2.738,0,0,0-2.122-.789.808.808,0,0,1-.72-.4l.531-.275,2.411,0,2.542.576.049-.026s.84-.436,1.145-.607c.431-.208.42-1.043.415-1.137l-.007-.245-1.74.95c-.254-.049-1.367-.271-2.165-.506l-3.03-.006-1.41.865.166.369a4.716,4.716,0,0,0-1.216.035l-.127.02v2.76l1.161.975c-.27.127-.8.372-1.56.72a1.146,1.146,0,0,0-.564,1.128,4.733,4.733,0,0,0,.58,1.418l.067.109,1.069-.442a1.225,1.225,0,0,0,.611,1.253l.067.038,3.112-1.44-.51.523c-.042.038-.409.374-.321.717a.957.957,0,0,0,.377.49l.1.067,1.22-1.208c.128-.187.363-.54.638-.95.6-.9,1.6-2.4,1.769-2.584,1.274-.6,1.62-.742,1.62-.743l.16-.065ZM15,14.952a3.622,3.622,0,0,1-.947-.484c-.008-.135-.01-.269-.007-.405a1.322,1.322,0,0,0,.743.081,2.822,2.822,0,0,1,1.08.221,1.324,1.324,0,0,1-.4.468.74.74,0,0,1-.429.12Z",fill:"#000066"})]}),(0,n.jsx)("rect",{width:"24",height:"24",fill:"none",opacity:"0"})]})}),{}),4:(0,n.jsx)(()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{"data-name":"pko_icon_blind_24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#fff",opacity:"0"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 17359",d:"M15.679,15.887h0l.776.775,3.191,3.192.708-.707-2.932-2.932A11.619,11.619,0,0,0,22,12,11.643,11.643,0,0,0,12,6.5a11.939,11.939,0,0,0-3.718.576L5.353,4.146l-.708.708,2.611,2.61.76.76L9.431,9.639l.708.708,3.514,3.514.708.708ZM10.947,9.741A2.434,2.434,0,0,1,12,9.5,2.5,2.5,0,0,1,14.5,12a2.451,2.451,0,0,1-.239,1.054Zm5.739,5.738-1.7-1.7A3.412,3.412,0,0,0,15.5,12,3.5,3.5,0,0,0,12,8.5a3.421,3.421,0,0,0-1.779.514L9.089,7.882A11.217,11.217,0,0,1,12,7.5,10.612,10.612,0,0,1,20.817,12a10.687,10.687,0,0,1-4.131,3.479",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17360",d:"M6.31,7.934a9.773,9.773,0,0,0-.88.53,10.249,10.249,0,0,0-1.28,1,9.47,9.47,0,0,0-.73.69A11.645,11.645,0,0,0,2,12a11.59,11.59,0,0,0,8.71,5.43A11.033,11.033,0,0,0,12,17.5a.97.97,0,0,0,.17-.01,11.3,11.3,0,0,0,2.09-.2q.57-.1,1.14-.27ZM3.18,12a10.465,10.465,0,0,1,.94-1.15l5.38,5.38A10.576,10.576,0,0,1,3.18,12M12,16.5a8.049,8.049,0,0,1-.85-.03l-6.31-6.32a11.631,11.631,0,0,1,1.3-.98l7.25,7.25A12.806,12.806,0,0,1,12,16.5",fill:"#000066"})]})]})}),{}),5:(0,n.jsx)(()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"none"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 17361",d:"M12,12c3.449,0,5,3.673,5,6.281,0,.618-.1.719-.732.719a10.6,10.6,0,0,1-2.071-.335,10.641,10.641,0,0,0-2.2-.344,10.641,10.641,0,0,0-2.2.344A10.6,10.6,0,0,1,7.732,19C7.1,19,7,18.9,7,18.281,7,15.673,8.551,12,12,12m0-1c-4,0-6,4.045-6,7.281A1.508,1.508,0,0,0,7.732,20c1.329,0,3.125-.679,4.268-.679S14.939,20,16.268,20A1.508,1.508,0,0,0,18,18.281C18,15.045,16,11,12,11",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17362",d:"M9.247,5c.4,0,1.058.7,1.219,1.845.17,1.209-.308,2.063-.762,2.123-.4,0-1.058-.7-1.219-1.845C8.316,5.914,8.794,5.06,9.2,5l.05,0m0-1a1.334,1.334,0,0,0-.189.013c-1.094.154-1.793,1.609-1.563,3.249C7.712,8.809,8.678,9.968,9.7,9.968a1.334,1.334,0,0,0,.189-.013c1.094-.154,1.794-1.609,1.563-3.249C11.239,5.159,10.273,4,9.247,4",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17363",d:"M14.753,4.032l.05,1c.4.057.881.911.712,2.12C15.354,8.3,14.7,9,14.249,9h0c-.4-.057-.882-.911-.712-2.12.161-1.143.868-1.842,1.269-1.842Zm0,0c-1.026,0-1.992,1.16-2.209,2.706-.231,1.64.469,3.1,1.563,3.249A1.334,1.334,0,0,0,14.3,10c1.026,0,1.992-1.16,2.209-2.706.23-1.64-.469-3.1-1.563-3.249a1.334,1.334,0,0,0-.189-.013",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17364",d:"M18.17,9.027h0a.656.656,0,0,1,.108.009c.525.093.863.864.725,1.651A1.443,1.443,0,0,1,17.865,12a.665.665,0,0,1-.108-.009.858.858,0,0,1-.561-.462,1.849,1.849,0,0,1-.163-1.189A1.443,1.443,0,0,1,18.17,9.027m0-1a2.386,2.386,0,0,0-2.122,2.139,2.293,2.293,0,0,0,1.536,2.81,1.675,1.675,0,0,0,.281.024,2.385,2.385,0,0,0,2.122-2.139,2.291,2.291,0,0,0-1.535-2.809,1.581,1.581,0,0,0-.282-.025",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17365",d:"M5.83,9.027A1.442,1.442,0,0,1,6.967,10.34,1.849,1.849,0,0,1,6.8,11.529a.858.858,0,0,1-.561.462A.665.665,0,0,1,6.135,12,1.443,1.443,0,0,1,5,10.687c-.138-.787.2-1.558.725-1.651a.656.656,0,0,1,.108-.009m0-1a1.589,1.589,0,0,0-.282.025,2.291,2.291,0,0,0-1.535,2.809A2.385,2.385,0,0,0,6.135,13a1.675,1.675,0,0,0,.281-.024,2.293,2.293,0,0,0,1.536-2.81A2.386,2.386,0,0,0,5.83,8.027",fill:"#000066"}),(0,n.jsx)("rect",{"data-name":"Rectangle 6324",width:"4",height:"1",transform:"translate(10 15)",fill:"#000066"}),(0,n.jsx)("rect",{"data-name":"Rectangle 6325",width:"1",height:"4",transform:"translate(11.5 13.5)",fill:"#000066"})]})]})}),{}),6:(0,n.jsx)(()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:(0,n.jsxs)("g",{transform:"translate(-1779 -774)",children:[(0,n.jsx)("rect",{width:"96",height:"96",transform:"translate(1779 774)",fill:"inherit",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(1779 774)",children:[(0,n.jsx)("path",{"data-name":"Path 906",d:"M48.064,32V28H34.016L23.988,40H16s0,4,4,4h.9L16,51.224,16.06,76H28V68H24v4H20V56h8c0-4-4-4-4-4H20.36l2.728-4H48V44l-21.956-.088L36,32Z",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 907",d:"M36,60H48V56H32V68H48V64H36Z",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 908",d:"M64,36h4a4,4,0,0,0,4-4V28a4,4,0,0,0-4-4H60V40h4Zm0-8h4v4H64Z",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 909",d:"M76,16H52V48H64V80h4V48H80V16Zm0,28H56V20H76Z",fill:"inherit"})]})]})}),{}),8:(0,n.jsx)(eF,{}),22:(0,n.jsx)(()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M17 22V15H14V22H13V10.2229L11.2158 13.7981C11.1489 13.9718 11.0319 14.1217 10.8794 14.2285C10.7269 14.3354 10.546 14.3943 10.3599 14.3979C10.1855 14.3958 10.014
11 14.3524 9.85986 14.271L12.9971 7.99902H14V8.99902L14.0098 13.999H17V7.99902H18L21.1372 14.271C20.9821 14.35 20.8112 14.3933 20.6372 14.3979C20.4515 14.3941 20.2711 14.3349 20.1191 14.228C19.9672 14.1211 19.8506 13.9716 19.7842 13.7981L17.999 10.2229V22H17ZM3 16.5C3.00171 15.9924 3.07392 15.4876 3.21484 15C3.30784 15.026 4.0962 15.2801 4.0332 16.0071C4.01077 16.1708 3.99954 16.3357 4 16.501C4.00159 17.694 4.47625 18.8376 5.31982 19.6812C6.16339 20.5247 7.30701 20.9994 8.5 21.001C9.13008 21.0001 9.75277 20.867 10.3281 20.6101C10.9035 20.3533 11.4185 19.9785 11.8398 19.51C11.8698 19.964 11.8931 20.3771 11.9131 20.8101C10.9436 21.5825 9.73958 22.0012 8.5 21.9971C7.04248 21.995 5.64516 21.4151 4.61426 20.3848C3.58335 19.3544 3.00291 17.9575 3 16.5ZM6.37793 15.72C6.37793 15.736 3 11.499 3 11.499L6 8.99902H8C8.13207 8.9963 8.26319 9.02029 8.38574 9.06958C8.5083 9.11887 8.61997 9.19248 8.71338 9.28589C8.80679 9.3793 8.87991 9.49048 8.9292 9.61304C8.97849 9.73559 9.00272 9.86695 9 9.99902H6.35889L4.39209 11.6389L7.77783 15.874C7.57474 16.0262 7.3315 16.1148 7.07812 16.1289C6.93607 16.1274 6.79668 16.0892 6.67383 16.0178C6.55097 15.9465 6.44867 15.8446 6.37695 15.7219L6.37793 15.72ZM9.78516 12.186C9.36903 12.0625 8.937 11.9998 8.50293 12C8.37893 12 8.21024 12.014 8.09424 12.022H8.07812C8.04112 12.022 8.01302 12.0281 7.99902 12.0281C7.76486 12.0232 7.53919 11.94 7.35791 11.7917C7.17663 11.6435 7.0502 11.4385 6.99902 11.21C7.48676 11.0699 7.99158 10.9983 8.49902 10.9971C9.089 10.9962 9.67509 11.0907 10.2349 11.2771L9.7832 12.1841L9.78516 12.186ZM6.00098 5.74805C6.00124 5.15139 6.23826 4.57913 6.66016 4.15723C7.08206 3.73533 7.65432 3.49831 8.25098 3.49805C8.84755 3.49858 9.41947 3.73587 9.84131 4.15772C10.2632 4.57956 10.5004 5.15147 10.501 5.74805C10.501 6.34478 10.2638 6.91715 9.8418 7.33911C9.41984 7.76107 8.84771 7.99805 8.25098 7.99805C7.95547 7.99831 7.66274 7.9403 7.38965 7.82739C7.11656 7.71449 6.86823 7.54895 6.65918 7.34009C6.45013 7.13122 6.28453 6.8831 6.17139 6.61011C6.05824 6.33712 6 6.04453 6 5.74902L6.00098 5.74805ZM7.00098 5.74805C7.00124 6.08002 7.13343 6.39832 7.36816 6.63306C7.6029 6.86779 7.92096 6.99974 8.25293 7C8.58463 6.99947 8.90284 6.86731 9.13721 6.63257C9.37157 6.39783 9.50293 6.07975 9.50293 5.74805C9.5024 5.41669 9.37054 5.09905 9.13623 4.86475C8.90192 4.63044 8.58429 4.49858 8.25293 4.49805C8.08851 4.49792 7.92588 4.53022 7.77393 4.59302C7.62198 4.65582 7.48354 4.74785 7.36719 4.86401C7.25084 4.98018 7.15874 5.11817 7.0957 5.27002C7.03266 5.42187 7.00013 5.58461 7 5.74902L7.00098 5.74805ZM13.251 4.74805C13.2508 4.45254 13.3088 4.15976 13.4219 3.88672C13.5349 3.61368 13.7007 3.3657 13.9097 3.15674C14.1186 2.94778 14.3666 2.78197 14.6396 2.66895C14.9127 2.55592 15.2055 2.49792 15.501 2.49805C15.7965 2.49792 16.0893 2.55592 16.3623 2.66895C16.6353 2.78197 16.8833 2.94778 17.0923 3.15674C17.3012 3.3657 17.4671 3.61368 17.5801 3.88672C17.6931 4.15976 17.7511 4.45254 17.751 4.74805C17.751 5.34478 17.5138 5.91715 17.0918 6.33911C16.6698 6.76107 16.0977 6.99805 15.501 6.99805C14.9045 6.99831 14.3324 6.76188 13.9102 6.34058C13.4879 5.91927 13.2501 5.34746 13.249 4.75098L13.251 4.74805ZM14.251 4.74805C14.2512 5.07949 14.3828 5.39723 14.6172 5.63159C14.8516 5.86596 15.1695 5.99778 15.501 5.99805C15.8324 5.99752 16.1503 5.86563 16.3848 5.63135C16.6192 5.39707 16.7512 5.0795 16.752 4.74805C16.7504 4.41685 16.6179 4.09978 16.3833 3.86597C16.1487 3.63215 15.8312 3.50052 15.5 3.5C15.1685 3.50053 14.8505 3.63242 14.6162 3.86694C14.3819 4.10147 14.2503 4.41945 14.25 4.75098L14.251 4.74805Z",fill:"#2C89FD"})}),{}),23:(0,n.jsx)(()=>(0,n.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M5 4C6.10457 4 7 4.89543 7 6C7 6.93162 6.3622 7.71129 5.5 7.93359V13H6.5V19H3.5V13H4.5V7.93359C3.6378 7.71129 3 6.93162 3 6C3 4.89543 3.89543 4 5 4ZM19.998 6V8H20.998V9H19.998V19H16.998V17H11.998V19H8.99805V9H7.99805V8H8.99805V6H19.998ZM4.5 18H5.5V14H4.5V18ZM9.99805 7V14H10.998C11.2633 14 11.5175 14.1054 11.7051 14.293C11.8926 14.4805 11.998 14.7348 11.998 15H9.99805V18H10.998V16H1
17.998V18H18.998V15H16.998C16.998 14.7348 17.1035 14.4805 17.291 14.293C17.4786 14.1054 17.7328 14 17.998 14H18.998V7H9.99805ZM17.998 8V13H10.998V8H17.998ZM11.998 9V12H16.998V9H11.998ZM5 5C4.44772 5 4 5.44772 4 6C4 6.55228 4.44772 7 5 7C5.55228 7 6 6.55228 6 6C6 5.44772 5.55228 5 5 5Z",fill:"#2C89FD"})}),{}),24:(0,n.jsx)(eO,{}),25:(0,n.jsx)(eF,{})},eW={atm_cashdep:(0,n.jsx)(eE,{}),atm_pko:(0,n.jsx)(eI,{}),facility:(0,n.jsx)(eB.A,{}),audio:(0,n.jsx)(eO,{})},eU=c.Df.withName("PKOBPPoiDetailsConveniences").create(()=>({container:{borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),paddingTop:"16px"}})),eG=()=>{var e,t;let{classes:a}=eU(),{activePoi:i}=eS(),l=(e=>{if(e)return e.reduce((e,t)=>(e.find(e=>e.name===t.name)||e.push({name:t.name,label:t.label}),e),[])})(null==i?void 0:i.group),r=null==l?void 0:l.some(e=>"atm_pko"===e.label);return(0,n.jsxs)(ew.A,{className:a.container,"data-cy":"PoiDetailsConveniences",children:[!!(null==i||null==(e=i.conveniences)?void 0:e.length)&&(null==i||null==(t=i.conveniences)?void 0:t.map(e=>(0,n.jsx)(eM,{icon:eH[e.id],text:e.name,cyType:"conveniences--".concat(e.id)},e.id))),l.map((e,t)=>(0,n.jsx)(eM,{icon:(null==eW?void 0:eW[e.label])||eW.facility,text:e.name,cyType:"conveniences-group--".concat(e.label)},"".concat(e.key,"_").concat(e.label,"_").concat(t))),(null==i?void 0:i.label)==="atm_pko"&&!r&&(0,n.jsx)(eM,{icon:eW.atm_pko,text:"Bankomat",cyType:"conveniences-group--atm_cashdep"}),(null==i?void 0:i.atm_cashdep)&&(0,n.jsx)(eM,{icon:eW.atm_cashdep,text:"Wpłatomat",cyType:"conveniences-group--atm_cashdep"})]})},eK=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:(0,n.jsxs)("g",{transform:"translate(-648 -765)",children:[(0,n.jsx)("g",{transform:"translate(432 906)",children:(0,n.jsxs)("g",{"data-name":"Group 5656",children:[(0,n.jsx)("path",{"data-name":"Path 14653",d:"M287.78-109.14a3.27,3.27,0,0,0,1.46-4.36L276.51-108,272-93.14,262-104.8l-8.19,18a3.52,3.52,0,0,0,1.63,4.7l7.46-16.4,10.62,12.36,5.81-19.4Z",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 14654",d:"M292-73H244v-44h-4v4h-4v4h4v16h-4v4h4v16h-4v4h4v4h4v-4h16v4h4v-4h16v4h4v-4h8Z",fill:"inherit"})]})}),(0,n.jsx)("rect",{width:"96",height:"96",transform:"translate(648 765)",fill:"inherit",opacity:"0"})]})}),eV=c.Df.withName("PKOBPPoiDetailsHeader").create(()=>({header:{display:"flex",alignItems:"start",justifyContent:"flex-start",padding:"0 16px 14px 16px",borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),[h.Ay.breakpoints.down("md")]:{display:"none"}},header__isAgencyPage:{[h.Ay.breakpoints.up("md")]:{paddingTop:"20px"},[h.Ay.breakpoints.down("md")]:{display:"flex",padding:"16px 16px 16px 0","& h2":{maxWidth:"220px"}}},icon:{width:"48px",height:"48px",marginRight:"11px","& svg":{width:"48px",height:"48px",fill:h.Ay.palette.primary.main}},type:{fontSize:"14px",fontWeight:300,lineHeight:"16px",marginBottom:"1px"},name:{fontSize:"24px",margin:"0",lineHeight:"32px",fontWeight:600}})),eY=e=>{var t;let{label:a,name:i,poiType:l="facility",isAgencyPage:r}=e,{classes:o}=eV(),{filters:s}=eS(),d=(0,w.A)(h.Ay.breakpoints.down("md")),c=!r||r&&!d;return(0,n.jsxs)(ew.A,{className:f()(o.header,{[o.header__isAgencyPage]:r}),"data-cy":"PoiDetailsHeader",children:[c&&(0,n.jsx)("div",{className:o.icon,children:(0,n.jsx)(()=>{var e;return"atm_pko"===l&&(null==s||null==(e=s.atm_type)?void 0:e.key)==="cashdep_pko"?(0,n.jsx)(eE,{}):"atm_pko"===l?(0,n.jsx)(eI,{}):"broker"===l?(0,n.jsx)(eK,{}):(0,n.jsx)(eB.A,{})},{})}),(0,n.jsxs)("div",{children:[c&&(0,n.jsx)("div",{className:o.type,children:(null==s||null==(t=s.atm_type)?void 0:t.key)==="cashdep_pko"?"Wpłatomat":a}),(0,n.jsx)("h2",{className:o.name,children:i})]})]})};var eZ=a(20285);let eq=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:[(0,n.jsx)("rect",{width:"96",height:"96",fill:"#000066",opacity:"0"}),(0,n.jsx)("path",{d:"M-364,6V54h64V6Zm60,4v4.82l-28,18.568-28-18.576V10Zm-56,40V19.728L-332,38.3l28-18.572V50Z",transform:"translate(380 18)",fill:"#000066"})]});var eX=a(20295),e$=a(19656),eJ=a(41304);let eQ="PoiDetailsInformationHoursItem",e0=c.Df.withName("PKOBPPoiDetailsInformationHoursItem").create(()=>({item:{display:"flex",alignItems:"start",justifyContent:"start",marginBottom:"8px",gap:"9px",fontWeight:300,fontSize:"14px",lineHeight:"24px","& a":{color:"#004495",textUnderlineOffset:"2px"}},item__noIcon:{marginTop:"-4px"},icon:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:"24px",width:"24px",height:"24px",position:"relative",top:"-1px","& svg":{width:"24px",height:"24px","& path":{stroke:"unset",fill:h.Ay.palette.primary.main}}},extraTextBtn:{...h.cc,display:"flex",alignItems:"center",justifyContent:"start",ga
1p:"7px","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},extraText:{width:"100%",marginBottom:"1px"},extraTextIcon:{height:"24px",marginLeft:"7px","& svg":{"-webkit-transition-property":"transform","-webkit-transition-duration":"0.2s","-webkit-transition-timing-function":"ease-out","transition-property":"transform","transition-duration":"0.2s","transition-timing-function":"ease-out",fill:h.Ay.palette.primary.main},"$hoursContainer__flipped &":{display:"inline-block",position:"relative",bottom:"-5px"}},extraTextIcon__isActive:{"& svg":{transform:"rotate(180deg)"}},hoursContainer:{display:"inline-flex"},hoursContainer__flipped:{display:"block",maxWidth:"93%"},openingLabel:{fontWeight:600,color:h.Ay.palette.success.main},openingLabel__isClosed:{color:h.Ay.palette.error.main},openingHours:{fontWeight:300,marginLeft:"4px"},openingHoursList:{margin:"4px 0 0 0",padding:"0",listStyle:"none"},openingHoursListElement:{"&:not(:last-of-type)":{marginBottom:"4px"}}})),e1=e=>{var t,a;let{icon:i,cyType:l}=e,{classes:r}=e0(),{activePoi:o}=eS(),[s,c]=(0,d.useState)(!1),p=(0,eJ.f3)(null==o?void 0:o.opening_hours),u=(0,w.A)(h.Ay.breakpoints.down(360)),m=(0,w.A)(h.Ay.breakpoints.down(375)),x=u&&(null==p||null==(t=p.extraInfo)?void 0:t.length)>20||m&&(null==p||null==(a=p.extraInfo)?void 0:a.length)>25;return(0,n.jsxs)(ew.A,{className:f()(r.item,{[r.item__noIcon]:!i}),"data-cy":"".concat(eQ).concat(l?"--"+l:""),children:[(0,n.jsx)("div",{className:r.icon,children:i}),(0,n.jsxs)("div",{className:r.text,children:[(0,n.jsx)("button",{onClick:()=>c(!s),className:r.extraTextBtn,"data-cy":"".concat(eQ,"--btnExpandableText"),"aria-expanded":s,children:p?(0,n.jsxs)("div",{className:f()(r.hoursContainer,{[r.hoursContainer__flipped]:x}),children:[(0,n.jsxs)("span",{className:f()(r.openingLabel,{[r.openingLabel__isClosed]:!p.isOpen}),children:[p.label," "]}),!!(null==p?void 0:p.extraInfo)&&(0,n.jsx)("span",{className:r.openingHours,children:p.extraInfo}),(0,n.jsx)("span",{className:f()(r.extraTextIcon,{[r.extraTextIcon__isActive]:s}),children:(0,n.jsx)(V.A,{})})]}):null}),s&&(0,n.jsx)("div",{className:r.extraText,"data-cy":"".concat(eQ,"--extraText"),children:(()=>{var e;if(!(null==o||null==(e=o.opening_hours)?void 0:e.length))return null;let t=(0,eJ.NY)(o.opening_hours);return(0,n.jsx)("ul",{className:r.openingHoursList,children:t.map(e=>(0,n.jsxs)("li",{className:r.openingHoursListElement,children:[e.day,": ",e.hours]},e.day))})})()})]})]})},e2=c.Df.withName("PKOBPPoiDetailsInformation").create(()=>({container:{margin:"16px 0 15px 0"},openingLabel:{fontWeight:600,color:h.Ay.palette.success.main},openingLabel__isClosed:{color:h.Ay.palette.error.main},openingHours:{fontWeight:300},openingHoursList:{margin:"4px 0 0 0",padding:"0",listStyle:"none"},openingHoursListElement:{"&:not(:last-of-type)":{marginBottom:"4px"}}})),e6=e=>{var t,a;let{isAgencyPage:i}=e,{classes:l}=e2(),r=(0,w.A)(h.Ay.breakpoints.down("md")),{activePoi:o}=eS(),s=(null==o?void 0:o.label)==="broker",c=e=>i?(0,n.jsx)("a",{href:"mailto:".concat(e),"aria-label":"Skontaktuj się z agencją przez email: ".concat(e),children:e}):e;return(0,n.jsxs)(ew.A,{className:l.container,"data-cy":"PoiDetailsInformation",children:[(0,n.jsx)(eM,{icon:(0,n.jsx)(eB.A,{}),text:"".concat(o.zipcode," ").concat(o.city,", ").concat(o.address),cyType:"address"}),!!(null==(t=o.opening_hours)?void 0:t.length)&&(0,n.jsx)(e1,{icon:(0,n.jsx)(eZ.A,{}),cyType:"openingHours"}),(0,eJ.h1)(null==o?void 0:o.cash_service_opening_hours,null==o?void 0:o.opening_hours)&&!(null==o?void 0:o.no_cash_dept)&&(0,n.jsx)(eM,{icon:(0,n.jsx)(e$.A,{}),text:(0,eJ._n)(null==o?void 0:o.cash_service_opening_hours),redText:!0,cyType:"info"}),(null==o?void 0:o.no_cash_dept)&&(0,n.jsx)(eM,{icon:(0,n.jsx)(e$.A,{}),text:eP,redText:!0,cyType:"info"}),!!o.contact_phone&&(0,n.jsx)(eM,{icon:(0,n.jsx)(eX.A,{}),text:(e=>{let t=s?e.replace(/[()]/g,"").replace(/,$/,""):e.replace(/[(),\s]/g,"");return r||i?(e=>(0,n.jsx)(n.Fragment,{children:e.map((t,a)=>{let i=t.replace(/\D/g,""),l=s?t.trim():i.replace(/(\d{3})(\d{3})(\d{3})/,"$1 $2 $3");return(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)("a",{href:"tel:+48".concat(i),"aria-label":"Zadzwoń na numer agencji: +48".concat(i),children:l}),a!==e.length-1&&(0,n.jsx)("span",{children:", "})]},t)})}))(s?t.split(","):t.split(",").filter(e=>e.length>0)):s?t:t.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})/,"$1 $2 $3")}
1)(o.contact_phone),cyType:"phone"}),!!o.email&&(0,n.jsx)(eM,{icon:i?(0,n.jsx)(eq,{}):null,text:c(o.email),cyType:"email"}),!!(null==o?void 0:o.email_agent)&&(null==o||null==(a=o.email_agent)?void 0:a.map(e=>(0,n.jsx)(eM,{icon:i?(0,n.jsx)(eq,{}):null,text:c(e),cyType:"email_agent"}))),!!o.agency_redirect_link&&(0,n.jsx)(eM,{text:(0,n.jsx)("a",{href:o.agency_redirect_link,target:"_blank",children:"Strona agencji"}),cyType:"link"})]})},e4=()=>(0,n.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{d:"M9,6"}),(0,n.jsx)("path",{d:"M11.8,16c0.1,0,0.1,0,0.2,0h0.1h0.1l0,0.1l0.7,3.6L12,20.6l-0.9-0.9L11.8,16L11.8,16 M15,13.9   l-0.3,0.2l-0.1,0.1l-0.1,0.1c-0.2,0.2-0.5,0.3-0.8,0.4c-0.3,0.1-0.5,0.2-0.8,0.3C12.6,15,12.4,15,12.1,15h0c-0.3,0-0.6,0-0.8-0.1   c-0.3-0.1-0.6-0.1-0.8-0.3c-0.3-0.1-0.5-0.2-0.8-0.4l-0.1-0.1l-0.1-0.1l-0.3-0.2l-2.8,1.5c-0.2,0.1-0.3,0.2-0.5,0.4   c-0.3,0.3-0.6,0.7-0.7,1.1C5,17.1,5,17.3,5,17.5L5,21c0.6,0,1-0.4,1-1v-2.5c0-0.1,0-0.2,0.1-0.4c0.1-0.2,0.2-0.5,0.4-0.6   c0.1-0.1,0.2-0.2,0.3-0.2C6.9,16.2,9,15.1,9,15.1l0.1,0c0.3,0.2,0.6,0.3,0.9,0.5c0.3,0.1,0.6,0.2,0.8,0.3L10,20l2,2l2-2l-0.8-4.1   c0.3-0.1,0.6-0.2,0.9-0.3c0.3-0.1,0.6-0.3,0.9-0.5l0.1,0l1.8,0.9c0.3,0.1,0.5,0.3,0.7,0.5c0.2,0.2,0.3,0.4,0.3,0.6   c0,0.1,0.1,0.2,0.1,0.4V20c0,0.6,0.4,1,1,1v-3c0-0.4,0-0.8-0.1-1.1c-0.1-0.4-0.3-0.8-0.6-1.1c-0.1-0.1-0.3-0.3-0.5-0.4   C17.8,15.4,15,13.9,15,13.9z"}),(0,n.jsx)("path",{d:"M12,3C9.8,3,7.5,4.8,7.5,7v1c0.2-0.2,0.4-0.4,0.6-0.5C8,7.7,8,7.8,8,8v1c0,2.2,1.8,4,4,4   c2.2,0.1,3.9-1.6,4-3.8c0,0,0-0.1,0-0.1V8.2c0.2,0,0.4-0.1,0.5-0.1c0,0,0,0,0,0V7C16.5,4.8,14.2,3,12,3z M12,4c1.6,0,3.5,1.3,3.5,3   v0.2c-0.2,0-0.3,0-0.5,0c-1.2,0-2.4-0.4-3.4-1.1c-0.5-0.3-1-0.5-1.6-0.5c-0.4,0-0.8,0.1-1.2,0.2C9.4,4.7,10.7,4,12,4z M15,9.1   c0,1.6-1.3,2.9-2.9,2.9c0,0,0,0-0.1,0c-1.7,0-3-1.3-3-3V8c0-0.4,0.1-0.8,0.3-1.2C9.5,6.7,9.7,6.7,10,6.7c0.4,0,0.7,0.1,1,0.3   c1.2,0.8,2.6,1.3,4,1.3h0V9.1z"})]})}),e8=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{"data-name":"pko_icon_atm-2_24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#fff",opacity:"0"}),(0,n.jsxs)("g",{children:[(0,n.jsx)("path",{"data-name":"Path 1458",d:"M3,4.006v8H6v-1H4v-6H20v6H18v1h3v-8Z",fill:"#fff"}),(0,n.jsx)("path",{"data-name":"Path 1459",d:"M12,10a1.5,1.5,0,0,1-1.408-1H9.55a2.5,2.5,0,0,0,4.9,0H13.408A1.5,1.5,0,0,1,12,10Z",fill:"#fff"}),(0,n.jsx)("rect",{"data-name":"Rectangle 1420",width:"14",height:"1",transform:"translate(5 7)",fill:"#fff"}),(0,n.jsx)("path",{"data-name":"Path 1460",d:"M18.06,12.69a1.779,1.779,0,0,0-.8-1.144A2.351,2.351,0,0,0,17,11.418V10h0V9H16l0,1h0l0,.451v.565l0,.244c-.028,0-.054,0-.082.006a1.971,1.971,0,0,0-1.167.689,2.489,2.489,0,0,0-.356.559L13.438,14.9l-.117.1H8V9H7v7h5l-1.116.949-.5,3.7a1.06,1.06,0,0,0,1.139-.967l.3-2.2,2.447-1.957,1.043-2.61a1.566,1.566,0,0,1,.2-.309.964.964,0,0,1,.573-.351.942.942,0,0,1,.643.143.76.76,0,0,1,.353.5,1.713,1.713,0,0,1-.059.784L16.3,15.566a1.019,1.019,0,0,0,.551,1.331l.758-1.924c.053-.143.11-.281.168-.425l1.478,2.134-2.063,2.41a1.032,1.032,0,0,0,.072,1.454l3.252-3.8L18.1,13.26A2.321,2.321,0,0,0,18.06,12.69Z",fill:"#fff"})]})]})});var e3=a(31354),e5=a(58735);let e9="PoiDetailsLinks",e7=c.Df.withName("PKOBPPoiDetailsLinks").create(()=>({links:{display:"flex",alignItems:"start",justifyContent:"start",marginTop:"16px",gap:"8px",[h.Ay.breakpoints.down("md")]:{marginTop:"4px"}},links__isAgencyPage:{[h.Ay.breakpoints.down("md")]:{marginTop:"16px"}},link:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"start",textDecoration:"none",color:h.Ay.palette.text.primary,width:"107px",[h.Ay.breakpoints.down("md")]:{width:"50%"},[h.Ay.breakpoints.down(450)]:{width:"31.5%"}},linkIcon:{display:"flex",alignItems:"center",justifyContent:"center",width:"40px",height:"40px",borderRadius:"50%",background:h.Ay.palette.primary.main,marginBottom:"8px","& svg":{width:"24px",height:"24px","& path":{fill:h.Ay.palette.primary.contrastText}}},linkLabel:{textAlign:"center",fontSize:"14px",lineHeight:"20px"},buttons:{position:"fixed",bottom:0,left:0,width:"100%",padding:"16px",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),background:"#fff",boxShadow:"0px -3px 6px #81818114",zIndex:1},btn:{width:"100%",margin:"0"}})),te=e=>{let t,{isAgencyPage:a}=e,{classes:i}=e7(),l=(0,w.A)(h.Ay.breakpoints.down("md")),{activePoi:r}=eS(),o=a&&(t=eu.H,document.getElementById(t)),s=!a&&!!(null==r?void 0:r.is_meeting_active)&&(null==r?void 0:r.is_meeting_active)!=="0",d=(null==r?void 0:r.fancy_name)==="Bankomat",c="https://maps.google.com/?daddr=".concat(null==r?void 0:r.lat,",").concat(null==r?void 0:r.lng),p=e=>(0,n.jsxs)("a",{href:e?"#".concat(eu.H):((e,t)=>{let a="https://pkobp.pl/nowewnioski/ipko3/UmowSpotkanie/index.html",n=[];return e&&n.push("idoddzial=".concat(e)),t&&n.push("PS=".concat(t)),n.length>0?"".concat(a,"?").concat(n.join("&")):a})(null==r?void 0:r.unique_id,null==r?void 0:r.remedy_id),target:e?"_self":"_blank",className:i.link,children:[(0,n.jsx)("span",{className:i.linkIcon,children:(0,n.jsx)(e4,{})}),(0,n.jsxs)("span",{className:i.linkLabel,children:["Um\xf3w się",l?(0,n.jsx)("br",{}):" ","z\xa0doradcą"]})]});return(0,n.jsxs)(ew.A,{className:f()(i.links,{[i.links__isAgencyPage]:a}),"data-cy":e9,children:[l&&!!(null==r?void 0:r.contact_phone)&&(0,n.jsxs)("a",{href:(()=>{var e,t;let a=(null==r||null==(t=r.contact_phone)||null==(e=t.split(","))?void 0:e[0]).replace(/\D/g,"");return"tel:+48".concat(a)})(),className:i.link,children:[(0,n.jsx)("span",{className:i.linkIcon,children:(0,n.jsx)(e5.A,{})}),(0,n.jsxs)("span",{className:i.linkLabel,children:["Zadzwoń",l?(0,n.jsx)("br",{}):" ","do\xa0nas"]})]}),(a||!l&&!!(null==r?void 0:r.lat)&&!!(null==r?void 0:r.lng))&&(0,n.jsxs)("a",{href:c,target:"blank",className:i.link,children:[(0,n.jsx)("span",{className:i.linkIcon,children:(0,n.jsx)(e3.A,{})}),(0,n.jsxs)("span",{className:i.linkLabel,children:["Wyznacz",l?(0,n.jsx)("br",{}):" ","trasę"]})]}),d&&!!(null==r?void 0:r.lat)&&!!(null==r?void 0:r.lng)&&(0,n.jsxs)("a",{href:"https://www.pkobp.pl/lpk/wyplacaj-wplacaj-bankomaty-pkobp",target:"blank",className:i.link,children:[(0,n.jsx)("span",{className:i.linkIcon,children:(0,n.jsx)(e8,{})}),(0,n.jsx)("span",{className:i.linkLabel,children:"Zobacz jak korzystać?"})]}),s&&p(!1),o&&p(!0),!a&&l&&!!(null==r?void 0:r.lat)&&!!(null==r?void 0:r.lng)&&(0,n.jsx)(ew.A,{className:i.buttons,children:(0,n.jsx)(A.default,{type:"button",variant:"primary",href:c,target:"_blank",isExternal:!0,className:i.btn,"data-cy":"".concat(e9,"--routeBtn"),children:"Wyznacz trasę"})})]})},tt=c.Df.withName("PKOBPPoiDetailsServices").create(()=>({container:{display:"flex",alignItems:"center",justifyContent:"start",flexWrap:"wrap",columnGap:"8px",rowGap:"12px",margin:"16px 0",[h.Ay.breakpoints.down("md")]:{rowGap:"8px",marginBottom:"0px"}},pill:{position:"relative",display:"flex",alignItems:"center",justifyContent:"start",width:"auto",minWidth:"unset",border:"1px solid transparent",borderColor:h.Ay.palette.secondary.borders,borderRadius:"24px",padding:"16px 19px 14px 19px",color:h.Ay.palette.common.black,lineHeight:"16px",fontSize:"14px",[h.Ay.breakpoints.down("md")]:{fontSize:"14px",lineHeight:"20px",padding:"10px 15px 8px 15px"}},pillLabel:{}})),ta=()=>{var e,t;let{classes:a}=tt(),{activePoi:i}=eS();return(0,n.jsx)(ew.A,{className:a.container,"data-cy":"PoiDetailsServices",children:!!(null==i||null==(e=i.services)?void 0:e.length)&&(null==i||null==(t=i.services)?void 0:t.map(e=>(0,n.jsx)("div",{className:a.pill,children:(0,n.jsx)("span",{className:a.pillLabel,children:e.name})},e.name)))})},tn=c.Df.withName("PKOBPPoiExtraInformationBox").create(()=>({container:{background:h.Ay.palette.info.main,color:h.Ay.palette.primary.contrastText,display:"flex",gap:"8px",padding:"8px 16px 16px 8px",margin:"16px 0 18px 0",borderRadius:"4px",[h.Ay.breakpoints.down("md")]:{paddingRight:"8px",marginBottom:"0px"}},iconWrapper:{"& svg":{width:"48px",height:"48px","& path":{fill:h.Ay.palette.primary.contrastText}}},contentWrapper:{},header:{margin:"8px 0",fontSize:"16px",lineHeight:"24px"},content:{fontSize:"14px",lineHeight:"20px"}})),ti=e=>{let{content:t}=e,{classes:a}=tn();return t?(0,n.jsxs)(ew.A,{className:a.container,"data-cy":"PoiExtraInformationBox",children:[(0,n.jsx)("div",{className:a.iconWrapper,children:(0,n.jsx)(e$.A,{})}),(0,n.jsxs)("div",{className:a.contentWrapper,children:[(0,n.jsx)("h4",{className:a.header,children:"Uwaga"}),(0,n.jsx)("div",{className:a.content,children:t})]})]}):null},tl="PoiDetails",tr=c.Df.withName("PKOBPPoiDetails").create(()=>({container:{height:"660px",display:"flex",flexDirection:"column",position:"relative",zIndex:"1",background:h.Ay.palette.primary.contrastText,[h.Ay.breakpoints.down("md")]:{height:"auto"}},closeBtnWrapper:{display:"flex",justifyContent:"end",[h.Ay.breakpoints.down("md")]:{dis
1play:"none"}},closeBtn:{...h.cc,width:"48px",height:"48px",padding:0,"&:hover":{background:"none"},"& svg":{width:"100%",height:"100%",fill:h.Ay.palette.primary.main},"&:focus-visible":{boxShadow:"inset 0 0 0 2px ".concat(h.Ay.palette.primary.main)}},content:{overflowX:"hidden",padding:"0 16px",marginRight:"8px",...eA.J,[h.Ay.breakpoints.down("md")]:{overflow:"unset",padding:"0",margin:"0"}},hr:{marginTop:"16px",marginBottom:"0px",height:"1px",background:h.Ay.palette.secondary.borders,border:"none"},buttons:{background:h.Ay.palette.secondary.backgroundGrey,marginTop:"16px",borderRadius:"10px",display:"flex",alignItems:"center",justifyContent:"center",padding:"6px",gap:"4px",minWidth:"330px",[h.Ay.breakpoints.down("md")]:{padding:"6px 6px 7px 6px",minWidth:"288px"}},btn:{...h.cc,width:"50%",textAlign:"center",minHeight:"40px",color:h.Ay.palette.text.primary,border:"1px solid transparent","&:hover,&:focus":{color:h.Ay.palette.primary.hover},"&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{fontSize:"16px",lineHeight:"20px"}},btn__isActive:{background:"#fff",borderRadius:"8px",border:"1px solid ".concat(h.Ay.palette.secondary.backgroundDisabled),boxShadow:"0px 12px 20px #0000661A",color:h.Ay.palette.primary.main,"&:hover,&:focus":{color:h.Ay.palette.primary.main}},tempExtraInfo:{padding:"16px 0 8px 0","& a":{fontWeight:400}}})),to=e=>{var t,a,i,l,r;let{showCloseBtn:o=!0,isAgencyPage:s=!1}=e,{classes:c}=tr(),p=(0,w.A)(h.Ay.breakpoints.down("md")),{activePoi:u,setActivePoi:m,resetFilters:x}=eS(),[g,y]=d.useState(0);(0,d.useEffect)(()=>{y(0)},[u]);let b=!!(null==u?void 0:u.is_meeting_active)&&(null==u?void 0:u.is_meeting_active)!=="0",v=(null==u?void 0:u.fancy_name)==="Bankomat",A=!(null==u||null==(t=u.services)?void 0:t.length)&&(!!(null==u?void 0:u.contact_phone)||!p&&!!(null==u?void 0:u.lat)&&!!(null==u?void 0:u.lng)||b||v);return u?(0,n.jsxs)(ew.A,{className:c.container,"data-cy":tl,role:"dialog","aria-label":null==u?void 0:u.fancy_name,children:[(0,n.jsx)(ew.A,{className:c.closeBtnWrapper,children:o&&(0,n.jsx)("button",{className:c.closeBtn,onClick:()=>{m(null),(null==u?void 0:u.label)===ez&&x()},"data-cy":"".concat(tl,"--closeBtn"),"aria-label":"Zamknij szczeg\xf3ły oddziału",children:(0,n.jsx)(Y.A,{})})}),(0,n.jsx)(eY,{label:u.mapped_label,name:u.fancy_name,poiType:null==u?void 0:u.label,isAgencyPage:s}),(0,n.jsxs)(ew.A,{className:c.content,tabIndex:-1,children:[(0,n.jsx)(te,{isAgencyPage:s}),(null==u||null==(a=u.services)?void 0:a.length)>0&&(0,n.jsxs)("div",{className:c.buttons,children:[(0,n.jsx)("button",{className:f()(c.btn,{[c.btn__isActive]:0===g}),onClick:()=>y(0),children:"Informacje"}),!!(null==u||null==(i=u.services)?void 0:i.length)&&(0,n.jsx)("button",{className:f()(c.btn,{[c.btn__isActive]:1===g}),onClick:()=>y(1),children:"Usługi"})]}),A&&(0,n.jsx)("hr",{className:c.hr}),0===g&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e6,{isAgencyPage:s}),p&&(null==u?void 0:u.opening_hours_comment)&&(0,n.jsx)("hr",{className:c.hr}),(0,n.jsx)(ti,{content:null==u?void 0:u.opening_hours_comment}),(!!(null==u||null==(l=u.conveniences)?void 0:l.length)||!!(null==u||null==(r=u.group)?void 0:r.length)||!!u.atm_cashdep||!!u.atm_audio||(null==u?void 0:u.fancy_name)==="Bankomat")&&(0,n.jsx)(eG,{})]}),1===g&&(0,n.jsx)(ta,{})]})]}):null};function ts(e,t){let a=td(e.lat),n=td(e.lng),i=td(t.lat),l=td(t.lng),r=i-a,o=l-n,s=Math.sin(r/2)*Math.sin(r/2)+Math.cos(a)*Math.cos(i)*Math.sin(o/2)*Math.sin(o/2);return 2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s))*6371}function td(e){return Math.PI/180*e}let tc="AgencyContact",tp=c.Df.withName("PKOBPAgencyContact").create(()=>({sidebarContainer:{position:"absolute",top:"20px",left:"20px",width:"370px",color:"#000",background:"#fff",borderRadius:"16px",boxShadow:"0px 8px 32px #0000003D",maxHeight:"660px",overflow:"hidden",[h.Ay.breakpoints.down("md")]:{position:"relative",top:"0",left:"0",width:"100%",margin:"0",boxShadow:"unset",borderRadius:"unset"}},label:{display:"inline-block",marginRight:"5px",marginBottom:0,marginTop:0,fontSize:"16px",lineHeight:1.5,[h.Ay.breakpoints.down("sm")]:{display:"block"}},mapWrapper:{marginTop:"32px",[h.Ay.breakpoints.down("md")]:{marginTop:"0"}},localizationBtn:{position:"absolute",bottom:116,right:12,borderRadius:"50%",border:"none",background:"#fff",width:36,height:36,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:0}})),tu=e=>{var t,a;let{...i}=e,{classes:l}=tp(),r=(0,d.useContext)(U.G),o=(0,w.A)(h.Ay.breakpoints.between("sm","md")),s=(0,w.A)(h.Ay.breakpoints.down("md")),{activePoi:c,setActivePoi:p,centerCoordinates:u,setCenterCoordinates:m}=eS(),[x,g]=(0,d.useState)(null),[y,b]=(0,d.useState)(null),f=(0,d.useCallback)(e=>b(e),[]),v=(null==(a=ev()())||null==(t=a.publicRuntimeConfig)?void 0:t.GOOGLE_API_KEY)||"",{isLoaded:A}=(0,ex.KD)({id:"google-map-script",googleMapsApiKey:v,libraries:["maps","places"],language:"pl",region:"PL"}),{localisation:_,agency_name:j,lat:k,lng:C,rng_lng:N,rng_lat:S,email:T,email_agent:z,address:L,opening_hours:P,zipcode:I,city:E,contact_phone:O,is_meeting_active:B,services:F,opening_hours_comment:D}=i,R=z?null==z?void 0:z.split(/[;,]/):[],M=e=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>{let{latitude:a,longitude:n}=t.coords,i=new window.google.maps.Geocoder,l=new window.google.maps.LatLng(a,n);i.geocode({location:l},(t,i)=>{if("OK"===i&&t[0]){let t={lat:a,lng:n};e&&m(t),g(t)}else console.error("Geocoder failed due to: "+i)})},e=>{console.error("Error getting current location:",e),g({lat:51,lng:25})}):console.error("Geolocation is not supported by this browser.")};return(0,d.useEffect)(()=>{p({localisation:_,fancy_name:j,lat:S||k,lng:N||C,email:T,email_agent:R,address:L,opening_hours:P,zipcode:I,city:E,contact_phone:O,label:"agency",mapped_label:"Agencja",is_meeting_active:B,services:F,opening_hours_comment:D}),m({lat:S||k,lng:N||C})},[]),(0,d.useEffect)(()=>{A&&M()},[A]),(0,d.useEffect)(()=>
1{if(c&&(null==x?void 0:x.lat)&&(null==x?void 0:x.lng)){let e={lat:(null==c?void 0:c.rng_lat)||(null==c?void 0:c.lat),lng:(null==c?void 0:c.rng_lng)||(null==c?void 0:c.lng)};p({...c,distance:ts(x,e)})}},[JSON.stringify(c),null==x?void 0:x.lat,null==x?void 0:x.lng]),(0,d.useEffect)(()=>{y&&A&&setTimeout(()=>{y.getDiv().querySelectorAll('a, button, [tabindex="0"], [role="button"]').forEach(e=>{e.closest('[data-cy="PoiDetails"], [data-cy="AgencyContact--localizationBtn"], .gm-control-active')||(e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"))})},1e3)},[y,A]),(0,d.useEffect)(()=>{y&&setTimeout(()=>{let e=y.getDiv();if(!e)return;let t=()=>{e.querySelectorAll('div[tabindex="0"]').forEach(e=>{e.setAttribute("tabindex","-1")})};t();let a=new MutationObserver(t);return a.observe(e,{subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),()=>a.disconnect()},1e3)},[y]),(0,n.jsxs)("div",{className:l.container,"data-cy":tc,id:r,children:[A&&(S||k)&&(N||C)?(0,n.jsx)("div",{className:l.mapWrapper,children:(0,n.jsxs)(ex.u6,{mapContainerStyle:{width:s?"100vw":"100%",height:s?"320px":"700px",marginLeft:o?"calc((-100vw + 100%)/2)":s?"-16px":"0"},center:u,zoom:14,options:{mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,minZoom:6,gestureHandling:"cooperative",clickableIcons:!1},onLoad:f,children:[!s&&(0,n.jsx)("div",{className:l.sidebarContainer,children:(0,n.jsx)(to,{showCloseBtn:!1,isAgencyPage:!0})}
1),(u.lat!==(S||k)||u.lng!==(N||C))&&(0,n.jsx)(ex.pH,{position:u}),(0,n.jsx)(ex.pH,{position:{lat:S||k,lng:N||C},icon:{url:s?null==ey?void 0:ey.src:null==eg?void 0:eg.src}}),(0,n.jsx)("button",{type:"button",className:l.localizationBtn,onClick:()=>M(!0),"data-cy":"".concat(tc,"--localizationBtn"),"aria-label":"Ustaw bieżącą lokalizację na mapie",children:(0,n.jsx)(eb.A,{fill:"#666666"})})]})}):null,s&&(0,n.jsx)("div",{className:l.sidebarContainer,children:(0,n.jsx)(to,{showCloseBtn:!1,isAgencyPage:!0})})]})},tm="AgencyProductOfferForm",th=c.Df.withName("PKOBPAgencyProductOfferForm").create(()=>({container:{color:h.Ay.palette.primary.main}})),tx=e=>{let{...t}=e,{classes:a}=th(),i=(0,en.A)().apiModulesAgencyProductFormCreate,l=(0,d.useContext)(U.G);return(0,n.jsxs)("div",{id:l,"data-cy":tm,children:[(0,n.jsx)(ep,{agencySnippetData:t,apiFormCreateFn:i,cy:tm})," "]})};var tg=a(67015);function ty(e){return e.toLowerCase().replace(/[\s_]+/g,"-").replace(/[^a-z0-9-]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,"")}var tb=a(27668),tf=a(3750);let tv=e=>{var t;let{...a}=e,i=(0,d.useContext)(U.G),l=(0,q.useRouter)(),[r,o]=(0,d.useState)(null),{result:s}=a,c=(0,tg.q)(null==l||null==(t=l.query)?void 0:t[eu.R]);return((0,d.useEffect)(()=>{s&&(null==s?void 0:s.length)&&o({created:"",hide_on_mobile:!1,title:{name:"Text",defaultName:"Text",type:"text",category:"basic",is_searchable:!1,is_searchable_option:!1,created:"",text:"",hx:0,size:0},supertitle:"",subtitle:"",segments:[],categories:[],filters:s.map((e,t)=>({id:ty(e.parent+t),index:null,created:"",filter:null,filter_name:e.parent,key:ty(e.parent+t),display_variant:"3/3",positions:e.children.map((e,t)=>({label:"",size:"1/3",color:h.Ay.palette.info.main,is_bordered:!1,is_inherited:!1,product:null,modal:null,modal_rendered:null,title:e.agency_name,description:e.excerpt,key:ty(e.agency_name+t),id:ty(e.agency_name+t),image:{is_searchable:!1,is_searchable_option:!1,id:null,created:"",file:null,url:"",alt:"",extension:"",filename:"",image_height:null,image_width:null,loading:"eager",file_path_url:(null==e?void 0:e.image)?"/api/public/".concat(e.image):null},link:{name:"Link",defaultName:"Link",type:"link",category:"basic",is_searchable:!1,is_searchable_option:!1,id:null,created:"",label:"",href:(e=>{if(!e)return"";let t=(0,tb.zg)(e)?e:(0,tb.b4)(e,"https://"),a=e.includes("?")?"&":"?";return"".concat(t).concat(a).concat(eu.R,"=").concat(c)})(null==e?void 0:e.canonical_url),open_in_new:!1,link_external:null,link_internal:null,wid:!1}}))}))})},[JSON.stringify(s)]),null==s?void 0:s.length)?(0,n.jsx)(ew.A,{id:i,"data-cy":"AgencyProductOffer",children:!!r&&(0,n.jsx)(tf.default,{...r,withUrlParams:!1,isContainerFlexCentered:!0})}):null};var tw=a(57335);let tA=z()(()=>a.e(998).then(a.bind(a,40998)),{loadableGenerated:{webpack:()=>[40998]}});var t_=a(50555),tj=a(41526),tk=a(38291);let tC="BondsHeading",tN=c.Df.withName("PKOBPBondsHeading").create(()=>({container:{display:"block",textAlign:"center",marginBottom:"41px"},title:{fontSize:"40px",lineHeight:"48px",margin:"0 0 16px 0",fontWeight:400,letterSpacing:"-0.1px",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"10px"}},description:{display:"inline-block",fontSize:"16px",lineHeight:"24px",fontWeight:300,maxWidth:"810px",margin:"0"}})),tS=e=>{let{title:t,hx:a,description:i,className:l}=e,{classes:r}=tN();return(0,n.jsxs)(ew.A,{className:f()(r.container,l),"data-cy":tC,children:[(0,n.jsx)(_.A,{variant:(0,ei.a)(a),align:"center",cy:tC+"--title",className:r.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})}),i&&(0,n.jsx)(_.A,{variant:"body1",align:"center",cy:tC+"--description",className:r.description,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:i}})})]})};var tT=a(70504);let tz={permanent:"STAŁOPROCENTOWE",savings:"ZMIENNOPROCENTOWE",index:"INDEKSOWANE INFLACJĄ",economical:"OSZCZĘDNOŚCIOWE"};Object.entries(tz).map(e=>{let[t,a]=e;return{value:t,label:a}}),Object.entries({"#3366FF":"niebieski jasny","#2E7D49":"zielony","#EA1636":"czerwony","#3333CC":"fioletowy"}).map(e=>{let[t,a]=e;return{value:t,label:a}});let tL=[{label:"Text",value:"text"},{label:"Text Blue",value:"textBlue"},{label:"Text Grey",value:"textGrey"}];var tP=a(70046),tI=a(81132),tE=a(33872);let tO="BondsCompareTableCard",tB=c.Df.withName("PKOBPBondsCompareTableCard").create(()=>({container:{borderRadius:"16px",border:"1px solid ".concat(h.Ay.palette.secondary.borders),padding:"31px 31px 29px 31px",height:"100%",textAlign:"left",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column",background:h.Ay.palette.primary.contrastText,transition:"box-shadow 1s ease",[h.Ay.breakpoints.down("md")]:{borderRadius:"12px",padding:"19px 15px 30px 15px"}},container__withShadow:{boxShadow:"0px 10px 10px #0000000F"},badge:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"20px",padding:"4px 6px 0px 6px",background:h.Ay.palette.error.main,width:"auto",borderRadius:"4px",marginBottom:"24px",[h.Ay.breakpoints.down("md")]:{marginBottom:"17px"},"& span":{display:"inline-block",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.primary.contrastText,fontWeight:400,letterSpacing:"0.1px",[h.Ay.breakpoints.down("md")]:{lineHeight:"16px"}}},value:{fontSize:"40px",lineHeight:"48px",fontWeight:600,margin:"0 0 17px 0",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"20px",marginBottom:"12px"}},name:{fontSize:"18px",lineHeight:"24px",fontWeight:600,margin:"0 0 12px 0",[h.Ay.breakpoints.down("md")]:{fontSize:"16px",lineHeight:"20px",marginBottom:"8px"}},description:{display:"inline-block",fontSize:"16px",lineHeight:"20px",fontWeight:300},description__isSymbol:{fontWeight:600,marginBottom:"12px",[h.Ay.breakpoints.down("md")]:{marginBottom:"18px"}},buttons:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:"13px",marginTop:"auto",width:"100%"}
1,buyBtn:{width:"100%"},textBtn:{textDecoration:"underline",textAlign:"center"}})),tF=e=>{let{bond:t,withShadow:a}=e,{classes:i}=tB(),l=(0,d.useContext)(U.G),r=(0,d.useContext)(tT.zp),[o,s]=(0,d.useState)();(0,d.useEffect)(()=>{s((0,tP.A)())},[]);let c=e=>{var t,a,s;if(!(null==e||null==(a=e.link)||null==(t=a.href)?void 0:t.length)&&!(null==e?void 0:e.lead_rendered)&&!(null==e?void 0:e.modal_rendered))return null;let d=tL.map(e=>e.value).includes(e.variant),c=(0,tE.TE)(o,e,r,l);return(0,n.jsx)(A.default,{...c,variant:e.variant,linkId:e.link.id,idGTM:(0,tI.bJ)(l,x.YU.BONDS_COMPARE_TABLE,e.link.id),cy:tO,lead_rendered:null==e?void 0:e.lead_rendered,modal_rendered:null==e?void 0:e.modal_rendered,className:d?i.textBtn:i.buyBtn,target:(null==e||null==(s=e.link)?void 0:s.open_in_new)?"_blank":"_self",disabled:r&&!(null==e?void 0:e.lead_rendered)&&!(null==e?void 0:e.modal_rendered)})};return(0,n.jsxs)(ew.A,{className:f()(i.container,{[i.container__withShadow]:a}),"data-cy":tO,children:[!!(null==t?void 0:t.label)&&(0,n.jsx)(ew.A,{className:i.badge,style:{backgroundColor:null==t?void 0:t.label_color},children:(0,n.jsx)("span",{children:(null==tz?void 0:tz[null==t?void 0:t.label])||""})}),!!(null==t?void 0:t.interest_rate)&&(0,n.jsx)("span",{className:i.value,children:null==t?void 0:t.interest_rate}),(0,n.jsx)("span",{className:i.name,children:null==t?void 0:t.subtitle}),(0,n.jsx)("span",{className:i.description,dangerouslySetInnerHTML:{__html:t.description}}),!!(null==t?void 0:t.symbol)&&(0,n.jsxs)("span",{className:f()(i.description,i.description__isSymbol),children:["(symbol: ",t.symbol,")"]}),(0,n.jsxs)(ew.A,{className:i.buttons,children:[c(null==t?void 0:t.button),c(null==t?void 0:t.button_2)]})]})},tD=c.Df.withName("PKOBPBondsCompareTable").create(()=>({container:{width:"100%",outline:"none"},heading:{[h.Ay.breakpoints.down("md")]:{marginBottom:"20px"}},tableWrapper:{width:"100%",[h.Ay.breakpoints.down("md")]:{overflowX:"auto",overflowY:"hidden",paddingBottom:"16px"},[h.Ay.breakpoints.down(769)]:{width:"calc(100% + 64px)",marginLeft:"-32px",paddingLeft:"32px"},[h.Ay.breakpoints.down("sm")]:{width:"calc(100% + 32px)",marginLeft:"-16px",paddingLeft:"16px"}},table:{display:"table",borderCollapse:"collapse",tableLayout:"fixed",width:"100%",position:"relative",[h.Ay.breakpoints.down("md")]:{tableLayout:"auto"}},thead:{display:"table-header-group"},tbody:{display:"table-row-group"},stickyColumn:{display:"table-cell",verticalAlign:"middle",position:"sticky",left:0,fontWeight:600,width:"315px",fontSize:"14px",lineHeight:"20px",[h.Ay.breakpoints.down("lg")]:{width:"181px"}},scrollWindowColumns:{display:"block",overflow:"hidden",[h.Ay.breakpoints.down("md")]:{overflow:"unset"}},scrollWindowColumns__withCards:{position:"relative",zIndex:"1"},cards:{position:"sticky",top:"0",zIndex:"2",display:"table-cell",verticalAlign:"middle"},sliderBtn:{...h.cc,border:"1px solid ".concat(h.Ay.palette.secondary.borders),borderRadius:"6px",width:"40px",height:"64px",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"calc(50% - 32px)",background:h.Ay.palette.primary.contrastText,zIndex:"2"},sliderBtn__isPrev:{left:"-20px"},sliderBtn__isNext:{right:"-20px",[h.Ay.breakpoints.between(1023,1045)]:{right:"-10px"}},row:{display:"table-row",verticalAlign:"middle",position:"relative","&::after":{content:'""',position:"absolute",bottom:0,left:0,right:"0",height:"1px",backgroundColor:h.Ay.palette.secondary.borders,[h.Ay.breakpoints.down("md")]:{right:"16px"}},"&:last-child::after":{display:"none"}},valueCellCard:{display:"inline-block"},valueCell:{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"20px",background:h.Ay.palette.secondary.backgroundGrey,textAlign:"center",fontSize:"14px",lineHeight:"20px",fontWeight:400,position:"relative",[h.Ay.breakpoints.down("md")]:{display:"inline-block",textAlign:"left",padding:"16px 16px 15px 16px"},"& a":{color:h.Ay.palette.primary.main}},valueCell__isFirst:{padding:" 22px 20px 19px 20px",[h.Ay.breakpoints.down("md")]:{padding:"16px 16px 15px 16px"}
1,"&::before":{width:"100%",height:"20px",content:'""',display:"block",position:"absolute",top:"-20px",left:0,background:h.Ay.palette.secondary.backgroundGrey}},valueCell__isLast:{borderBottomLeftRadius:"16px",borderBottomRightRadius:"16px"},valueCellLabel:{display:"block",fontWeight:300,marginBottom:"4px"},valueCellValue:{"&&":{fontSize:"inherit",[h.Ay.breakpoints.down("md")]:{fontWeight:600}}},movingTrack:{display:"flex",transition:"transform 0.3s ease",[h.Ay.breakpoints.down(769)]:{paddingRight:"32px"},[h.Ay.breakpoints.down("sm")]:{paddingRight:"16px"}}})),tR=e=>{let{title:t,subtitle:a,columns:i}=e,{classes:l}=tD(),r=(0,d.useContext)(U.G),o=(0,w.A)(h.Ay.breakpoints.down("md")),s=(0,w.A)(h.Ay.breakpoints.up("lg")),c=s?30:15,p=(0,d.useRef)(null),u=(0,d.useRef)(null),m=(0,d.useRef)(!1),[x,g]=d.useState(200),[y,b]=(0,d.useState)(0),v=(0,d.useCallback)(()=>{b(e=>Math.max(e-1,0))},[]),A=(0,d.useCallback)(()=>{b(e=>Math.min(e+1,i.length-3))},[i.length]),_=-y*(x+c),j=o?{gap:"".concat(c,"px"),width:"".concat(i.length*x,"px")}:{transform:"translateX(".concat(_,"px)"),width:"".concat(i.length*x,"px"),gap:"".concat(c,"px")},k=o?{width:x}:{minWidth:x},C=o?{}:{margin:"-".concat(c,"px -").concat(c,"px -20px -").concat(c,"px"),padding:"".concat(c,"px ").concat(c,"px 20px ").concat(c,"px")},N=e=>{o||m.current||(e-y>=2?A():e<=y&&v())};return(0,d.useEffect)(()=>{let e=()=>{if(o)return void g(258);p.current&&g((p.current.offsetWidth-u.current.offsetWidth-2*c)/3)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[3,s,o]),(0,n.jsxs)(ew.A,{role:"region","aria-label":"Por\xf3wnanie obligacji",onKeyDown:e=>{"ArrowLeft"===e.key&&(v(),e.preventDefault()),"ArrowRight"===e.key&&(A(),e.preventDefault())},className:l.container,id:r,"data-cy":"BondsCompareTable",children:[(0,n.jsx)(tS,{title:null==t?void 0:t.text,hx:null==t?void 0:t.hx,description:a,className:l.heading}),!!(null==i?void 0:i.length)&&(0,n.jsx)(ew.A,{ref:p,className:l.tableWrapper,children:(0,n.jsxs)("div",{className:l.table,role:"group","aria-label":"Tabela por\xf3wnawcza obligacji",children:[(0,n.jsx)("div",{className:l.thead,children:(0,n.jsxs)("div",{className:l.row,children:[!o&&(0,n.jsx)("div",{ref:u,className:l.stickyColumn}),(0,n.jsxs)("div",{className:l.cards,children:[0!==y&&!o&&(0,n.jsx)("button",{"aria-label":"Poprzednie obligacje",onClick:v,disabled:0===y,tabIndex:-1,"aria-hidden":!0,className:f()(l.sliderBtn,l.sliderBtn__isPrev),children:(0,n.jsx)(t_.A,{})}),y<i.length-3&&!o&&(0,n.jsx)("button",{"aria-label":"Następne obligacje",onClick:A,disabled:y>=i.length-3,tabIndex:-1,"aria-hidden":!0,className:f()(l.sliderBtn,l.sliderBtn__isNext),children:(0,n.jsx)(tj.A,{})}),(0,n.jsx)(ew.A,{className:f()(l.scrollWindowColumns,l.scrollWindowColumns__withCards),style:C,children:(0,n.jsx)("div",{className:l.movingTrack,style:j,children:i.map((e,t)=>(0,n.jsx)("div",{className:l.valueCellCard,style:k,onPointerDown:()=>{m.current=!0},onMouseDown:()=>{m.current=!0},onKeyDown:()=>{m.current=!1},onFocusCapture:()=>N(t),children:(0,n.jsx)(tF,{bond:e,withShadow:t>=y&&t<y+3})},e.id))})})]})]})}),(0,n.jsx)("div",{className:l.tbody,children:null==i?void 0:i[0].rows.map((e,t)=>(0,n.jsxs)("div",{className:l.row,children:[!o&&(0,n.jsx)("div",{className:l.stickyColumn,children:null==e?void 0:e.label}),(0,n.jsx)("div",{className:l.scrollWindowColumns,style:C,children:(0,n.jsx)("div",{className:l.movingTrack,style:j,children:i.map((e,a)=>((e,t,a)=>{var i,r,s;let d=null==(i=e.rows)?void 0:i[t];if(!d)return null;let c=t===(null!=(s=null==(r=e.rows)?void 0:r.length)?s:0)-1;return(0,n.jsxs)("div",{className:f()(l.valueCell,{[l.valueCell__isFirst]:0===t,[l.valueCell__isLast]:c}),style:k,onPointerDown:()=>{m.current=!0},onMouseDown:()=>{m.current=!0},onKeyDown:()=>{m.current=!1},onFocusCapture:()=>N(a),children:[!!o&&(0,n.jsx)("span",{className:l.valueCellLabel,role:"rowheader",children:d.label}),(0,n.jsx)(tk.default,{className:l.valueCellValue,content:String(d.value)})]},"".concat(d.key,"--value"))})(e,t,a))})})]},null==e?void 0:e.key))})]})})]})};var tM=a(16341),tH=a(2058);let tW=c.Df.withName("PKOBPBondsForYouCard").create(()=>({container:{borderRadius:"16px",border:"1px solid ".concat(h.Ay.palette.secondary.borders),padding:"30px 83px 31px 31px",boxShadow:h.Ay.palette.shadows.basic.normal,width:"100%",[h.Ay.breakpoints.down("lg")]:{paddingRight:"40px"},[h.Ay.breakpoints.down("md")]:{width:"100%",borderRadius:"12px",padding:"17px 15px 14px 15px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"4px"}},container__isLink:{transition:h.Ay.transitions.create(["box-shadow","border-color"]),"&:hover":{boxShadow:h.Ay.palette.shadows.basic.hover,borderColor:"".concat(h.Ay.palette.secondary.borders)}},container__isIcon:{paddingTop:"31px",[h.Ay.breakpoints.down("md")]:{paddingTop:"15px",paddingBottom:"15px",paddingRight:"7px"}},badge:{display:"inline-flex",alignItems:"center",justifyContent:"center",height:"20px",padding:"4px 6px 2px 6px",background:h.Ay.palette.error.main,width:"auto",borderRadius:"4px",marginBottom:"22px",fontWeight:400,letterSpacing:"0px",[h.Ay.breakpoints.down("md")]:{marginBottom:"16
1px"},"& span":{display:"inline-block",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.primary.contrastText}},mobileIconWrapper:{width:"96px"},icon:{minHeight:"72px",maxHeight:"72px",minWidth:"auto",marginBottom:"25px",[h.Ay.breakpoints.down("md")]:{minWidth:"96px",maxHeight:"unset",marginBottom:"0px"}},interest:{fontSize:"40px",lineHeight:"48px",fontWeight:600,margin:"0 0 17px 0",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"20px",marginBottom:"12px"}},subtitle:{fontSize:"18px",lineHeight:"24px",fontWeight:600,margin:"0 0 11px 0",[h.Ay.breakpoints.down("md")]:{fontSize:"16px",lineHeight:"20px",marginBottom:"7px",marginTop:"4px"}},description:{display:"inline-block",fontSize:"16px",lineHeight:"20px",fontWeight:300},description__isSymbol:{fontWeight:600,display:"block",marginTop:"-2px"}})),tU=e=>{let{position:t}=e,{classes:a}=tW(),i=(0,w.A)(h.Ay.breakpoints.down("md")),{label:l,label_color:r,interest:o,subtitle:s,description:d,symbol:c,icon:p,link:u}=t,m=()=>(0,n.jsx)(tH.Ay,{className:a.icon,src:null==p?void 0:p.file_path_url,alt:null==p?void 0:p.alt,title:null==p?void 0:p.filename,loading:(null==p?void 0:p.loading)||"eager"});return(0,n.jsxs)(ew.A,{className:f()(a.container,{[a.container__isLink]:!!(null==u?void 0:u.href),[a.container__isIcon]:!!(null==p?void 0:p.url)}),"data-cy":"BondsForYouCard",children:[(0,n.jsxs)(ew.A,{children:[l&&(0,n.jsx)(ew.A,{className:a.badge,style:{backgroundColor:r||"#EA1636"},children:(0,n.jsx)("span",{children:tz[l]})}),(null==p?void 0:p.url)&&!i&&m(),o&&(0,n.jsx)("h3",{className:a.interest,children:o}),s&&(0,n.jsx)("h4",{className:a.subtitle,children:s}),d&&(0,n.jsx)("span",{className:a.description,dangerouslySetInnerHTML:{__html:d}}),c&&(0,n.jsxs)("span",{className:f()(a.description,a.description__isSymbol),children:["(symbol: ",c,")"]})]}),(null==p?void 0:p.url)&&i&&(0,n.jsxs)(ew.A,{className:a.mobileIconWrapper,children:[" ",m()]})]})},tG="BondsForYou",tK=c.Df.withName("PKOBPBondsForYou").create(()=>({container:{},title:{fontSize:"40px",lineHeight:"48px",margin:"0 0 40px 0 ",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"20px"}},cards:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"30px",[h.Ay.breakpoints.down("md")]:{gridTemplateColumns:"1fr",gap:"16px"}},positionLink:{textDecoration:"none",color:"inherit",display:"inline-flex","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main),borderRadius:"16px"}}})),tV=e=>{let{title:t,positions:a}=e,{classes:i}=tK(),l=(0,d.useContext)(U.G),r=(0,d.useContext)(tT.zp);return(0,n.jsxs)(ew.A,{id:l,className:i.container,"data-cy":tG,children:[(null==t?void 0:t.text)&&(0,n.jsx)(_.A,{variant:(0,ei.a)(null==t?void 0:t.hx),align:"center",className:i.title,dangerouslySetInnerHTML:{__html:null==t?void 0:t.text},"data-cy":"".concat(tG,"--title"),id:"".concat(tG,"-title"),size:null==t?void 0:t.size}),(0,n.jsx)(ew.A,{className:i.cards,children:null==a?void 0:a.map(e=>{var t,a;return(0,n.jsx)(n.Fragment,{children:(null==e||null==(t=e.link)?void 0:t.href)&&!r?(0,n.jsx)(tM.A,{className:i.positionLink,...(0,tE.zf)({link:e.link,isWorkspace:r,idGTM:(0,tI.bJ)(l,x.YU.BONDS_FOR_YOU,null==e?void 0:e.key)}),"data-cy":"".concat(tG,"--item--").concat(e.link.id),ariaLabel:(null==e||null==(a=e.link)?void 0:a.aria_label)||null,"data-id":e.link.id,children:(0,n.jsx)(tU,{position:e},null==e?void 0:e.key)}):(0,n.jsx)(tU,{position:e},null==e?void 0:e.key)})})})]})},tY=z()(()=>a.e(7986).then(a.bind(a,7986)),{loadableGenerated:{webpack:()=>[7986]}}),tZ=c.Df.withName("PKOBPButtonAlignWrapper").create(()=>({btnWrapper:{display:"flex",alignItems:"center"},btnWrapper__left:{justifyContent:"flex-start"},btnWrapper__right:{justifyContent:"flex-end"},btnWrapper__center:{justifyContent:"center"}})),tq=e=>{let{children:t,align:a}=e,{classes:i}=tZ(),l=f()(i.btnWrapper,i["btnWrapper__".concat(a)]);return(0,n.jsx)("div",{className:l,children:t})},tX=z()(()=>Promise.resolve().then(a.bind(a,53303)),{loadableGenerated:{webpack:()=>[53303]}}),t$=z()(()=>Promise.all([a.e(839),a.e(3256)]).then(a.bind(a,73256)),{loadableGenerated:{webpack:()=>[73256]}}),tJ=z()(()=>Promise.all([a.e(1562),a.e(1643),a.e(6828),a.e(5119)]).then(a.bind(a,95119)),{loadableGenerated:{webpack:()=>[95119]}}),tQ=z()(()=>Promise.all([a.e(9308),a.e(65)]).then(a.bind(a,69308)),{loadableGenerated:{webpack:()=>[69308]}}),t0=z()(()=>Promise.all([a.e(1562),a.e(1643),a.e(6828),a.e(7619)]).then(a.bind(a,77619)),{loadableGenerated:{webpack:()=>[77619]}});var t1=a(30007),t2=a(12465);
1let t6=z()(()=>a.e(4278).then(a.bind(a,21897)),{loadableGenerated:{webpack:()=>[21897]}}),t4=z()(()=>Promise.all([a.e(616),a.e(449),a.e(7208)]).then(a.bind(a,80449)),{loadableGenerated:{webpack:()=>[80449]}}),t8={width:"auto !important",height:"100% !important",maxHeight:"102px !important"},t3=c.Df.withName("PKOBPCalendarPosition").withNestedSelectors().create(e=>{let{classes:t,frameColor:a}=e;return{position:{...h.cc,position:"relative",width:"180px",minHeight:"102px",padding:"22px 0 20px 16px",borderRadius:"16px",boxShadow:h.Ay.palette.shadows.basic.normal,cursor:"default",overflow:"hidden",display:"inline-flex",alignItems:"start",justifyContent:"start","&:focus-visible":{outline:"solid 2px"},"&::after":{content:'""',display:"block",position:"absolute",inset:0,backgroundImage:"url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%233333CCFF' stroke-width='2' stroke-dasharray='4%2c4' stroke-dashoffset='16' stroke-linecap='butt'/%3e%3c/svg%3e\")",backgroundPosition:"0px 0.1px"},[h.Ay.breakpoints.down("md")]:{width:"100%",minHeight:"80px",alignItems:"center",padding:"16px 0 16px 16px"}},position__isPositionToday:{cursor:"pointer","&::after":{backgroundImage:"url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='".concat(encodeURIComponent(a||"#3333CC"),"' stroke-width='2' stroke-dasharray='4%2c4' stroke-dashoffset='16' stroke-linecap='butt'/%3e%3c/svg%3e\")")}},position__isPositionPast:{background:h.Ay.palette.secondary.backgroundBlue,boxShadow:"none",color:h.Ay.palette.grey[700],"&::after":{backgroundImage:"unset"}},position__isPositionFuture:{boxShadow:"none",color:h.Ay.palette.grey[400],["& .".concat(t.imgContainer)]:{opacity:"0.2"},"&::after":{backgroundImage:"url(\"data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='16' ry='16' stroke='%23E5E5E5FF' stroke-width='2' stroke-dasharray='4%2c4' stroke-dashoffset='16' stroke-linecap='butt'/%3e%3c/svg%3e\")"}},position__isPositionLast:{display:"flex",alignItems:"center",justifyContent:"center",paddingRight:"16px",[h.Ay.breakpoints.down("md")]:{minHeight:"80px"},["& .".concat(t.textContent)]:{maxWidth:"unset",zIndex:"1"}},textContent:{maxWidth:"94px",[h.Ay.breakpoints.down("md")]:{display:"flex",alignItems:"center",justifyContent:"center",maxWidth:"calc(100% - 88px)"}},number:{fontSize:"32px",lineHeight:1,fontWeight:600,marginBottom:"8px",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",marginBottom:"0px",marginRight:"8px"}},text:{fontSize:"14px",lineHeight:"20px",[h.Ay.breakpoints.down("md")]:{fontSize:"16px"}},lastTileText:{textAlign:"center",fontSize:"32px",lineHeight:"40px",fontWeight:600,[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px"}},imgContainer:{position:"absolute",top:0,bottom:0,left:"calc(100% - 66px)",minWidth:"66px",display:"flex",alignItems:"center",justifyContent:"end",["& .".concat(tH.KR)]:{...t8,"& > span":{...t8,minWidth:"66px",display:"flex !important",alignItems:"center",justifyContent:"end"},"& img":{...t8,minWidth:"unset !important",maxWidth:"unset !important",objectFit:"unset",margin:"auto 0 !important"}},"& img":{...t8}},imgContainer__left:{left:"unset",right:"calc(100% - 66px)",justifyContent:"start",["& .".concat(tH.KR)]:{"& > span":{[h.Ay.breakpoints.down("md")]:{justifyContent:"start"}}}}}}),t5=e=>{var t,a,i,l,r,o,s,c,p,u;let{position:m,eventDate:h,eventName:x,eventNameModified:g,backgroundColor:y,fontColor:b,frameColor:v}=e,{classes:w}=t3({frameColor:v}),A=(0,en.A)(),[_,j]=(0,d.useState)(null),[k,C]=(0,d.useState)(null),[N,S]=(0,d.useState)(!0),T=((e,t)=>{let a=new Date(e),n=new Date(t);return(0,t1.A)(n,a)})(null==m?void 0:m.date,h),{isPositionToday:z,isPositionPast:L,isPositionFuture:I}=(e=>{let t=new Date(e),a=new Date;return{isPositionToday:(0,t2.A)(t),isPositionPast:!(0,t2.A)(t)&&(0,E.A)(t,a),isPositionFuture:(0,P.A)(t,a)}})(null==m?void 0:m.date),O=()=>(null==m?void 0:m.title)?m.title:1===T?"dzień do ".concat(g||""):"dni do ".concat(g||""),B=async(e,t,a)=>{try{S(!0);let n=await e(t);if(!n.ok)throw Error("Network response was not ok");C((null==n?void 0:n.data)||null),j(a)}catch(e){console.error("Fetch error:",e)}finally{S(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{onClick:()=>{var e,t;z&&((null==m?void 0:m.modal)||(null==m?void 0:m.lead))&&((null==m||null==(e=m.modal_rendered)?void 0:e.uuid)?B(A.apiModulesModalsModalByUuidRead,m.modal_rendered.uuid,"modal"):(null==m||null==(t=m.lead_rendered)?void 0:t.uuid)&&B(A.apiModulesLeadsLeadByUuidRead,m.lead_rendered.uuid,"lead"))},className:f()(w.position,{[w.position__isPositionToday]:z,[w.position__isPositionPast]:L,[w.position__isPositionFuture]:I,[w.position__isPositionLast]:!!(null==m?void 0:m.last_tile)}),"data-cy":"CalendarPosition",style:(()=>
1{if(!L)return{};let e={};return y&&(e={backgroundColor:y}),b&&(e={...e,color:b}),e})(),"aria-label":"Otw\xf3rz modal - ".concat((null==m?void 0:m.last_tile)?x:T+" "+O()),disabled:!z,children:[(0,n.jsx)("div",{className:w.textContent,children:(null==m?void 0:m.last_tile)?(0,n.jsx)("div",{className:w.lastTileText,dangerouslySetInnerHTML:{__html:x||""}}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:w.number,children:T}),(0,n.jsx)("div",{className:w.text,dangerouslySetInnerHTML:{__html:O()}})]})}),(null==m||null==(t=m.image)?void 0:t.file_path_url)&&(0,n.jsx)("div",{className:w.imgContainer,children:(0,n.jsx)(tH.Ay,{src:null==m||null==(a=m.image)?void 0:a.file_path_url,alt:null==m||null==(i=m.image)?void 0:i.alt,title:null==m||null==(l=m.image)?void 0:l.filename,loading:(null==m||null==(r=m.image)?void 0:r.loading)||"lazy"})}),(null==m||null==(o=m.image_left)?void 0:o.file_path_url)&&(0,n.jsx)("div",{className:f()(w.imgContainer,w.imgContainer__left),children:(0,n.jsx)(tH.Ay,{src:null==m||null==(s=m.image_left)?void 0:s.file_path_url,alt:null==m||null==(c=m.image_left)?void 0:c.alt,title:null==m||null==(p=m.image_left)?void 0:p.filename,loading:(null==m||null==(u=m.image_left)?void 0:u.loading)||"lazy"})})]}),!N&&k&&"modal"===_&&(0,n.jsx)(t6,{isOpen:"modal"===_,handleCloseModal:()=>j(null),modalRendered:k}),!N&&k&&"lead"===_&&(0,n.jsx)(t4,{lead:k,isOpen:"lead"===_,onClose:()=>j(null)})]})},t9=c.Df.withName("PKOBPCalendar").create(()=>({container:{},head:{marginBottom:"23px",[h.Ay.breakpoints.up("sm")]:{marginBottom:"40px"}},title:{...h.Ay.typography.h2,marginTop:0,marginBottom:"0",fontSize:"40px",lineHeight:"48px",[h.Ay.breakpoints.down("md")]:{fontSize:"20px",lineHeight:"24px"}},subtitle:{fontWeight:300,marginBottom:0,fontSize:"16px",marginTop:"17px",lineHeight:"24px",[h.Ay.breakpoints.down("md")]:{lineHeight:"20px",marginTop:"5px",padding:"0 16px"}},positions:{display:"flex",alignItems:"stretch",justifyContent:"start",gap:"30px",flexWrap:"wrap",[h.Ay.breakpoints.down("lg")]:{width:"1020px",margin:"0 auto"},[h.Ay.breakpoints.down(1200)]:{width:"810px"},[h.Ay.breakpoints.down("md")]:{width:"100%",gap:"16px"}}})),t7=e=>{let{title:t,hx:a,subtitle:i,positions:l,end_date:r,event_name:o,modify_event_name:s,background_color:c,font_color:p,frame_color:u}=e,{classes:m}=t9(),h=(0,d.useContext)(U.G);return(0,n.jsxs)(ew.A,{className:m.container,id:h,children:[(0,n.jsxs)(ew.A,{className:m.head,children:[(0,n.jsx)(_.A,{variant:(0,ei.a)(a),align:"center",cy:"Calendar--title",className:m.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})}),i&&(0,n.jsx)(_.A,{variant:"body3",align:"center",className:m.subtitle,dangerouslySetInnerHTML:{__html:i}})]}),(0,n.jsx)(ew.A,{className:m.positions,children:null==l?void 0:l.map(e=>(0,n.jsx)(t5,{position:e,eventDate:r,eventNameModified:s,eventName:o,backgroundColor:c,fontColor:p,frameColor:u}))})]})},ae=z()(()=>a.e(3531).then(a.bind(a,5912)),{loadableGenerated:{webpack:()=>[5912]}}),at=z()(()=>a.e(6698).then(a.bind(a,26698)),{loadableGenerated:{webpack:()=>[26698]}}),aa=z()(()=>a.e(9235).then(a.bind(a,19235)),{loadableGenerated:{webpack:()=>[19235]}}),an=z()(()=>a.e(288).then(a.bind(a,70288)),{loadableGenerated:{webpack:()=>[70288]}}),ai=z()(()=>a.e(4974).then(a.bind(a,54974)),{loadableGenerated:{webpack:()=>[54974]}}),al=z()(()=>Promise.all([a.e(3671),a.e(1553)]).then(a.bind(a,1553)),{loadableGenerated:{webpack:()=>[1553]}}),ar=z()(()=>a.e(1700).then(a.bind(a,21700)),{loadableGenerated:{webpack:()=>[21700]}}),ao=z()(()=>a.e(3377).then(a.bind(a,23377)),{loadableGenerated:{webpack:()=>[23377]}});var as=a(53498),ad=a(47983);let ac=c.Df.withName("PKOBPDictationFailModal").create(()=>({modalContainer:{"& .MuiPaper-root":{minWidth:"600px",maxWidth:"810px",[h.Ay.breakpoints.down("md")]:{width:"100%",maxWidth:"100%",minWidth:"unset"}},"& .MuiDialogContent-root":{padding:"0 95px 48px 105px",minWidth:"390px",[h.Ay.breakpoints.down("md")]:{padding:"0 30px 48px 30px",minWidth:"unset"},[h.Ay.breakpoints.down("sm")]:{padding:"0 16px 48px 16px",minWidth:"unset"}},...ad._},modalContainer__isWithButtons:{"& .MuiDialogContent-root":{padding:"0 95px 0 105px",marginBottom:"118px",[h.Ay.breakpoints.down("md")]:{padding:"0 30px 0 30px"},[h.Ay.breakpoints.down("sm")]:{padding:"0 16px 0 16px"}}},headerbox:{"& h2":{margin:"-10px 0 0 0 !important",fontSize:"24px",lineHeight:"32px"}},buttonWrapper:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},buttons:{position:"absolute",bottom:0,left:0,background:h.Ay.palette.background.default,width:"100%",height:"96px",opacity:1,boxShadow:"0px -3px 6px #81818114",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),display:"flex",alignItems:"center",justifyContent:"center",gap:"30px",padding:"0 16px","& button, & a":{display:"block",width:"auto",padding:"14px 15px",minWidth:"100px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingLeft:"16px",textAlign:"center",lineHeight:"20px",height:"48px"},[h.Ay.breakpoints.down("md")]:{height:"80px",gap:"16px","& button, & a":{width:"100%",maxWidth:"288px",minWidth:"unset"}},[h.Ay.breakpoints.down("sm")]:{"& button, & a":{maxWidth:"unset"}}}})),ap=e=>{var t,a;let{handleCloseModal:i,isOpen:l,description:r,cta:o,cta2:s,onLeadButtonClick:d}=e,{classes:c}=ac(),p=(0,w.A)(h.Ay.breakpoints.down("md")),u=!!(null==o||null==(t=o.link)?void 0:t.label)&&!!(null==o?void 0:o.lead_rendered)||(null==s||null==(a=s.link)?void 0:a.label);return(0,n.jsx)(ea.Ay,{isOpen:l,handleClose:i,title:null,size:ea.Ih.LG,modalStyle:p?ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE:ea.YT.DEFAULT,fullScreen:p,className:f()(c.modalContainer,{[c.modalContainer__isWithButtons]:u}),headerbox:c.headerbox,titleVariant:"h2",$_ID_MODAL_TITLE:"PKOBP_DICTATION_SUCCESS_MODAL",mobileBreakpoint:"md",modalActionsContent:u?(()=>{var e,t,a,i,l,r,p;return(0,n.jsxs)(ew.A,{className:c.buttons,children:[(null==s||null==(e=s.link)?void 0:e.label)&&(0,n.jsx)(A.default,{label:null==s||null==(t=s.link)?void 0:t.label,linkId:null==s||null==(a=s.link)?void 0:a.id,...(0,tE.zf)({link:null==s?void 0:s.link}),is_english:!1,ariaLabel:null==s||null==(i=s.link)?void 0:i.aria_label,variant:null==s?void 0:s.variant}),!!(null==o||null==(l=o.link)?void 0:l.label)&&!!(null==o?void 0:o.lead_rendered)&&(0,n.jsx)(A.default,{label:null==o||null==(r=o.link)?void 0:r.label,is_english:!1,ariaLabel:null==o||null==(p=o.link)?void 0:p.aria_label,variant:null==o?void 0:o.variant,isExternal:!1,onClickCallback:d})]})})():void 0,children:!!r&&(0,n.jsx)(tk.default,{isModalWysiwygStyles:!0,content:r})})};var au=a(79011);let am="DictationRiddleWord",ah=c.Df.withName("PKOBPDictationRiddleWord").create(()=>({riddleWord:{whiteSpace:"nowrap"},btnGap:{...h.cc,height:"40px",backgroundColor:h.Ay.palette.secondary.borders,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"10px",margin:"0 4px",padding:"0 8px"},btnGap__isActive:{backgroundColor:h.Ay.palette.secondary.backgroundBlue},btnGap__isFilled:{border:"solid 1px ".concat(h.Ay.palette.secondary.borders),backgroundColor:"#ffffff"},btnGap__isCorrect:{border:"solid 1px ".concat(h.Ay.palette.success.main)},btnGap__isWrong:{border:"solid 1px ".concat(h.Ay.palette.error.main)},hintTooltip:{position:"relative",background:h.Ay.palette.primary.main,height:"48px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"10px",marginBottom:"12px !important",maxWidth:"unset"},hintArrow:{color:h.Ay.palette.primary.main},hintContent:{fontSize:"20px",display:"flex",alignItems:"center",justifyContent:"center",gap:"1px"},hintBtn:{...h.cc,height:"40px",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"8px",transition:"all 0.2s ease-in-out ",padding:"0 12px","&:hover, &:focus ":{backgroundColor:"#ffffff",color:h.Ay.palette.primary.main,fontWeight:400}},hintLine:{fontWeight:300}})),ax=e=>{let{word:t,riddleWord:a,hintLeft:i,hintRight:l,wordIndex:r,setSelectedAnswers:o,submitBtnClass:s,correctWords:c,incorrectWords:p}=e,{classes:u}=ah(),m=(0,w.A)(h.Ay.breakpoints.down("md")),[x,g]=(0,d.useState)(!1),[y,b]=(0,d.useState)("__"),v=(0,d.useRef)(null),A=(0,d.useRef)(null),_="".concat(am,"-btnGap"),j="".concat(_,"-").concat(r),k=/^!\d+!$/.test(a)?"word":"letter",C=(e,t,a)=>{g(!1),b(a);let n="word"===k?a:t.replace("_",a);o(t=>t.map((t,a)=>a===e?{word_answer:n}:t))};(0,d.useEffect)(()=>{let e=e=>{x&&("Tab"===e.key?(e.preventDefault(),(document.activeElement===v.current?A.current:v.current).focus()):"Enter"===e.key&&setTimeout(()=>{var e,t;
1let a=null==(e=document)?void 0:e.getElementById("".concat(_,"-").concat(r+1));if(a)null==a||a.focus();else{let e=null==(t=document)?void 0:t.querySelector(".".concat(s));null==e||e.focus()}},200))};return x&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[x,g]);let N=()=>(0,n.jsx)(au.A,{open:x,onOpen:()=>g(!0),onClose:()=>g(!1),arrow:!0,placement:"top",enterDelay:150,leaveDelay:300,disableHoverListener:m,disableTouchListener:m,classes:{popper:u.hintPopper,tooltip:u.hintTooltip,arrow:u.hintArrow},title:(0,n.jsxs)("div",{className:u.hintContent,children:[(0,n.jsx)("button",{ref:v,className:u.hintBtn,onClick:()=>C(r,a,i.trim()),"aria-label":"Uzupełnij ".concat("word"===k?"wyrazem":"literą"," ").concat(i),children:i.trim()}),(0,n.jsx)("span",{className:u.hintLine,children:"|"}),(0,n.jsx)("button",{ref:A,className:u.hintBtn,onClick:()=>C(r,a,l.trim()),"aria-label":"Uzupełnij ".concat("word"===k?"wyrazem":"literą"," ").concat(l),children:l.trim()})]}),children:(0,n.jsx)("span",{id:j,"aria-label":"".concat(i,"'").concat(l),role:"button",tabIndex:0,onClick:e=>{e.preventDefault(),g(!0)},className:f()(u.btnGap,{[u.btnGap__isActive]:x,[u.btnGap__isFilled]:y&&"__"!==y,[u.btnGap__isCorrect]:"word"===k&&(null==c?void 0:c.includes(y))&&"__"!==y,[u.btnGap__isWrong]:"word"===k&&(null==p?void 0:p.includes(y))&&"__"!==y}),children:y||"__"})});return(0,n.jsx)("span",{className:u.riddleWord,"data-cy":am,children:"word"===k?(0,n.jsxs)(n.Fragment,{children:[t.includes("„")&&t.replace(a,""),N(),!t.includes("„")&&t.replace(a,"")]}):t.split("_").map((e,a)=>(0,n.jsxs)(d.Fragment,{children:[e.trim(),a<t.split("_").length-1&&N()]},a))})},ag=c.Df.withName("PKOBPDictationSuccessModal").create(()=>({modalContainer:{"& .MuiPaper-root":{minWidth:"600px",maxWidth:"810px",[h.Ay.breakpoints.down("md")]:{width:"100%",maxWidth:"100%",minWidth:"unset"}},"& .MuiDialogContent-root":{padding:"0 95px 48px 105px",minWidth:"390px",[h.Ay.breakpoints.down("md")]:{padding:"0 30px 48px 30px",minWidth:"unset"},[h.Ay.breakpoints.down("sm")]:{padding:"0 16px 48px 16px",minWidth:"unset"}},...ad._},headerbox:{"& h2":{margin:"-10px 0 0 0 !important",fontSize:"24px",lineHeight:"32px"}},buttonWrapper:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}})),ay=e=>{var t,a;let{handleCloseModal:i,isOpen:l,description:r,description2:o,cta:s,onLeadButtonClick:d}=e,{classes:c}=ag(),p=(0,w.A)(h.Ay.breakpoints.down("md"));return(0,n.jsx)(ea.Ay,{isOpen:l,handleClose:i,title:null,size:ea.Ih.LG,modalStyle:p?ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE:ea.YT.DEFAULT,fullScreen:p,className:f()(c.modalContainer),headerbox:c.headerbox,titleVariant:"h2",$_ID_MODAL_TITLE:"PKOBP_DICTATION_SUCCESS_MODAL",mobileBreakpoint:"md",children:(0,n.jsxs)(n.Fragment,{children:[!!r&&(0,n.jsx)(tk.default,{isModalWysiwygStyles:!0,content:r}),!!(null==s||null==(t=s.link)?void 0:t.label)&&!!(null==s?void 0:s.lead_rendered)&&(0,n.jsx)(ew.A,{className:c.buttonWrapper,children:(0,n.jsx)(A.default,{label:null==s||null==(a=s.link)?void 0:a.label,is_english:!1,ariaLabel:null==s?void 0:s.aria_label,variant:null==s?void 0:s.variant,isExternal:!1,onClickCallback:d})}),!!o&&(0,n.jsx)(tk.default,{isModalWysiwygStyles:!0,content:o})]})})},ab=z()(()=>a.e(4278).then(a.bind(a,21897)),{loadableGenerated:{webpack:()=>[21897]}}),af=z()(()=>a.e(3088).then(a.bind(a,73088)),{loadableGenerated:{webpack:()=>[73088]}}),av=z()(()=>Promise.all([a.e(616),a.e(449),a.e(7208)]).then(a.bind(a,80449)),{loadableGenerated:{webpack:()=>[80449]}}),aw="Dictation",aA=c.Df.withName("PKOBPDictation").create(()=>({container:{position:"relative",maxWidth:"820px",margin:"0 auto"},title:{fontSize:"32px",lineHeight:"40px",marginTop:"0px",marginBottom:"21px",[h.Ay.breakpoints.down("md")]:{fontSize:"20px",lineHeight:"24px",marginBottom:"12px"}},content:{fontSize:"20px",lineHeight:"48px",[h.Ay.breakpoints.down("md")]:{fontSize:"18px"},"& .dictation-new-line-spacing":{display:"block",paddingTop:"12px",paddingBottom:"12px"}},btnWrapper:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:"19px"},submitBtn:{[h.Ay.breakpoints.down(480)]:{width:"100%"}}})),a_=e=>{let{dictation_rendered:t,title:a,modal_fail_rendered:i,modal_thank_you_rendered:l,wysiwyg_1:r,group_link:o,wysiwyg_2:s,button_cta:c,wysiwyg_1_fail
1:u,button_cta_2_fail:m,button_cta_fail:x}=e,{classes:g}=aA(),y=(0,en.A)(),b=(0,q.useRouter)(),f=(0,w.A)(h.Ay.breakpoints.down("md")),v=(0,d.useContext)(p.X4),j=(0,d.useContext)(tT.zp),[k,C]=(0,d.useState)(!1),[N,S]=(0,d.useState)(!1),[T,z]=(0,d.useState)(!1),[L,P]=(0,d.useState)(!1),[I,E]=(0,d.useState)(!1),[O,B]=(0,d.useState)(!1),[F,D]=(0,d.useState)(!1),[R,M]=(0,d.useState)((null==t?void 0:t.words.map(()=>({word_answer:"__"})))||null),[H,W]=(0,d.useState)(null),[U,G]=(0,d.useState)([]),[K,V]=(0,d.useState)([]),Y=async()=>{C(!0);try{var e,a;let n=await y.apiModulesDictationCheckCreate({dictation_id:null==t?void 0:t.id,words:R||[]}),i=null==n?void 0:n.data;if(G((null==i?void 0:i.correct_words)||[]),V((null==i?void 0:i.incorrect_words)||[]),null==i?void 0:i.passed){let a=await y.apiModulesDictationFaultCreate({dictation_fault:!0,dictation_title:null==t?void 0:t.title}),n=null==a||null==(e=a.data)?void 0:e.user_uuid;W(n),S(!0)}else{let e=await y.apiModulesDictationFaultCreate({dictation_fault:!1,dictation_title:null==t?void 0:t.title}),n=null==e||null==(a=e.data)?void 0:a.user_uuid;W(n),z(!0)}}catch(e){console.error(e),P(!0)}finally{C(!1)}},Z=()=>{if(z(!1),S(!1),D(!1),E(!1),B(!1),null==o?void 0:o.href){let e=!!(null==o?void 0:o.link_external),t=(0,as.V)(null==o?void 0:o.href,v,j,e);null==b||b.push(t)}},X=async()=>{await y.apiModulesDictationContestParticipantPartialUpdate({"contest-participant":1},{headers:{"x-user-uuid":H}})},$=async()=>{await X(),E(!0),S(!1)},J=async()=>{await X(),B(!0),z(!1)},Q=()=>{E(!1),B(!1),D(!0)};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(ew.A,{className:g.container,"data-cy":aw,children:[(0,n.jsx)(eo.Ay,{isLoading:k,withOverlay:!0}),(0,n.jsx)(_.A,{variant:(0,ei.a)(null==a?void 0:a.hx),align:"center",cy:aw+"--title",className:g.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==a?void 0:a.text}})}),(0,n.jsx)("div",{className:g.content,children:null==t?void 0:t.text.split(" ").map((e,a)=>{let i=null==t?void 0:t.words.find(t=>e.includes(null==t?void 0:t.riddle_word)),l=null==t?void 0:t.words.findIndex(t=>e.includes(null==t?void 0:t.riddle_word));return(0,n.jsxs)(d.Fragment,{children:[i?(0,n.jsx)(ax,{word:e,riddleWord:null==i?void 0:i.riddle_word,hintLeft:null==i?void 0:i.hint_left,hintRight:null==i?void 0:i.hint_right,wordIndex:l,setSelectedAnswers:M,submitBtnClass:g.submitBtn,correctWords:U,incorrectWords:K}):(e=>"<br><br>"===e?(0,n.jsx)("span",{className:"dictation-new-line-spacing"}):"<br>"===e?(0,n.jsx)("br",{}):e)(e)," "]},a)})}),(0,n.jsx)(ew.A,{className:g.btnWrapper,children:(0,n.jsx)(A.default,{variant:"primary",className:g.submitBtn,onClickCallback:Y,cy:aw,children:"Sprawdź"})})]}),(0,n.jsx)(ay,{isOpen:N,handleCloseModal:Z,description:null==r?void 0:r.content,description2:null==s?void 0:s.content,cta:c,onLeadButtonClick:$}),(null==u?void 0:u.content)&&(0,n.jsx)(ap,{isOpen:T,handleCloseModal:Z,description:null==u?void 0:u.content,cta:x,cta2:m,onLeadButtonClick:J}),!(null==u?void 0:u.content)&&!!i&&(0,n.jsx)(ab,{isOpen:T,handleCloseModal:Z,modalRendered:i}),(0,n.jsx)(ab,{isOpen:F,handleCloseModal:Z,modalRendered:l}),(0,n.jsx)(ea.Ay,{isOpen:L,handleClose:()=>{P(!1)},fullScreen:f,$_ID_MODAL_TITLE:"PKOBP_DICTATION_ERROR_MODAL",children:(0,n.jsx)(af,{message:"Coś poszło nie tak. Spr\xf3buj ponownie",type:"error",onClickCallback:()=>P(!1)})}),!!(null==c?void 0:c.lead_rendered)&&(0,n.jsx)(av,{isOpen:I,onClose:Z,lead:null==c?void 0:c.lead_rendered,onLeadSuccess:Q,dictationParticipantId:H}),!!(null==x?void 0:x.lead_rendered)&&(0,n.jsx)(av,{isOpen:O,onClose:Z,lead:null==x?void 0:x.lead_rendered,onLeadSuccess:Q,dictationParticipantId:H})]})},aj=z()(()=>Promise.all([a.e(1562),a.e(1643),a.e(520)]).then(a.bind(a,10520)),{loadableGenerated:{webpack:()=>[10520]}});var ak=a(18827),aC=a(58751),aN=a(44807),aS=a(6271),aT=a(69428),az=a(75163),aL=a(84739),aP=a(82771),aI=a(21340),aE=a(86610),aO=a(32973),aB=a(77978),aF=a(37191);let aD=c.Df.withName("PKOBPEdocumentsDatePicker").create(()=>({datepickerContainer:{display:"inline-flex",flexDirection:"column",width:"180px",flexShrink:0,".text-spacing-detected &":{width:"auto"},[h.Ay.breakpoints.down("md")]:{width:"calc(50% - 8px)",marginBottom:"2px"},[h.Ay.breakpoints.down(359)]:{width:"100%"}},datepicker:{...aF.Z_,[h.Ay.breakpoints.down("md")]:{"& .MuiDatePickerToolbar-root":{display:"none"}}},datepickerInput:{...aF.Rj,"& .MuiOutlinedInput-root":{paddingRight:"12px",borderRadius:"8px",[h.Ay.breakpoints.down("sm")]:{paddingRight:"8px"}},"& .MuiOutlinedInput-root input":{padding:"16px 0px 17px 12px"}
1,"& .MuiOutlinedInput-root input::placeholder":{color:h.Ay.palette.grey[700],fontWeight:300},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,transition:"border-color 0.3s ease-in-out "},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.primary.main},"& .MuiFormHelperText-root":{marginLeft:"0px"}},selectLabel:{"&&":{position:"relative",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.text.primary,transform:"none",marginBottom:"4px"}}})),aR=e=>{var t,a;let{cy:i="EdocumentsDatePicker",lang:l="pl",minDate:r,selectedDate:o,setSelectedDate:s,inputLabel:c,name:p}=e,{classes:u}=aD(),[m,x]=(0,d.useState)(""),g=(0,w.A)(h.Ay.breakpoints.down("md")),y=null!=(t=aB.E[l])?t:aB.E.en,b=null!=(a=aB.U[l])?a:aB.U.en,f=e=>{if(null===e){s(null),x("");return}if(!(0,aN.vd)(e)||A(e))return void x("Niepoprawna data");s(e),x("")},v=(0,d.useMemo)(()=>(0,az.s)(500,f),[f]),A=e=>{let t=new Date;return(0,E.A)(e,r)||(0,P.A)(e,t)};return(0,n.jsx)("div",{className:u.datepickerContainer,children:(0,n.jsxs)(aP.$,{adapterLocale:y,dateAdapter:aO.M,localeText:b.components.MuiLocalizationProvider.defaultProps.localeText,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(i,"-").concat(p,"--datepicker"),variant:"standard",className:u.selectLabel,children:c}),(0,n.jsx)(aI.l,{label:"",value:o,onChange:(e,t)=>
1{(null===e||void 0!==t)&&v(e)},onAccept:e=>{f(e)},renderDay:(e,t,a)=>(0,n.jsx)(aE.a,{...a,onClick:t=>{t.preventDefault(),t.stopPropagation(),o&&(0,aT.A)(e,o)&&f(null)}}),disableFuture:!0,disablePast:!1,minDate:r,maxDate:new Date,inputFormat:aN.ih,mask:aN.dz,showDaysOutsideCurrentMonth:!0,closeOnSelect:!0,reduceAnimations:!0,components:{OpenPickerIcon:aS.A},shouldDisableDate:A,desktopModeMediaQuery:h.Ay.breakpoints.up("md"),onOpen:()=>{setTimeout(()=>{let e=document.querySelector(".MuiCalendarPicker-root button");e&&e.focus()},200)},PaperProps:{className:u.datepicker,onKeyDown:e=>{"Escape"===e.key&&f(null)}},DialogProps:{className:u.datepicker},renderInput:e=>(0,n.jsx)($.A,{...e,id:"".concat(i,"-").concat(p,"--datepicker"),className:u.datepickerInput,error:!!m,helperText:m||"","data-cy":i+"--date-picker",name:i+"--date-picker",FormHelperTextProps:{id:"".concat(i,"-").concat(p,"--datepicker-error")},inputProps:{...e.inputProps,placeholder:"DD-MM-RRRR","aria-label":"Wpisz datę w formacie DD-MM-RRRR","aria-describedby":m?"".concat(i,"-").concat(p,"--datepicker-error"):void 0,"aria-invalid":!!m},...g&&{InputProps:{endAdornment:(0,n.jsx)(et.A,{position:"end",children:(0,n.jsx)(aS.A,{})})}}})})]})})};var aM=a(1899),aH=a(81049);let aW="EdocumentsSearcher",aU=c.Df.withName("PKOBPEdocumentsSearcher").create(()=>({inputContainer:{position:"relative",width:"100%",display:"flex",alignItems:"center",justifyContent:"start",marginTop:"24px",[h.Ay.breakpoints.down("md")]:{marginTop:"0px"}},input:{width:"100%",height:"48px",fontSize:16,borderRadius:8,border:"1px solid ".concat(h.Ay.palette.secondary.backgroundGrey),padding:"12px 110px 12px 15px",fontFamily:h.Ay.typography.fontFamily,background:h.Ay.palette.secondary.backgroundGrey,transition:"background 0.3s ease-in-out , border 0.3s ease-in-out","&:hover, &:focus, &:active, &:visited, &:focus-visible":{background:h.Ay.palette.primary.contrastText,border:"1px solid ".concat(h.Ay.palette.primary.main),outline:"none"},"&::placeholder":{color:h.Ay.palette.grey[700],fontWeight:400}},buttons:{position:"absolute",top:9,right:13,display:"flex",alignItems:"center",justifyContent:"start",gap:"11px"},inputButton:{width:"32px",height:"32px",border:"none",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",padding:"0",cursor:"pointer","& svg":{background:"transparent",width:"24px",height:"24px",display:"block"}},inputButton__isSearch:{"& svg":{width:"32px",height:"32px",fill:h.Ay.palette.primary.main}},inputButton__isClose:{"& svg":{fill:h.Ay.palette.grey[400]}},line:{width:"1px",height:"24px",background:h.Ay.palette.secondary.borders}})),aG=e=>{let{searchPhrase:t,setSearchPhrase:a}=e,{classes:i}=aU(),l=(0,d.useRef)(null),[r,o]=(0,d.useState)("");return(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),r&&a(r)},className:i.inputContainer,children:[(0,n.jsx)("input",{type:"text",placeholder:"Wyszukaj","aria-label":"Wpisz dowolną frazę, aby wyszukać dokument",value:r||t,onChange:e=>{var t,n;o(null==e||null==(t=e.target)?void 0:t.value),(null==e||null==(n=e.target)?void 0:n.value)||a("")},className:i.input,ref:l,"data-cy":"".concat(aW,"--searchInput")}),(0,n.jsxs)("div",{className:i.buttons,children:[(!!(null==r?void 0:r.length)||!!(null==t?void 0:t.length))&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:()=>{var e;o(""),a(""),null==l||null==(e=l.current)||e.focus()},className:f()(i.inputButton,i.inputButton__isClose),"data-cy":"".concat(aW,"--clearSearchBtn"),"aria-label":"Usuń wpisaną frazę",children:(0,n.jsx)(aM.A,{})}),(0,n.jsx)("span",{className:i.line})]}),(0,n.jsx)("button",{type:"submit",className:f()(i.inputButton,i.inputButton__isSearch),"data-cy":"".concat(aW,"--searchBtn"),"aria-label":"Rozpocznij wyszukiwanie dokumentu",children:(0,n.jsx)(aH.A,{})})]})]})};var aK=a(26315),aV=a(14571),aY=a(62344);let aZ=async e=>{let t=new Uint8Array(await e.arrayBuffer());return(0,aY.sha256)(t)};var aq=a(22552);let aX=e=>{let{className:t}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"32.999",viewBox:"0 0 33 32.999",children:(0,n.jsx)("g",{transform:"translate(0.5 0.5)",children:(0,n.jsx)("path",{d:"M5004-3595a15.894,15.894,0,0,1-11.313-4.686A15.893,15.893,0,0,1,4988-3611a15.891,15.891,0,0,1,4.687-11.313A15.894,15.894,0,0,1,5004-3627a15.9,15.9,0,0,1,11.314,4.686A15.891,15.891,0,0,1,5020-3611a15.894,15.894,0,0,1-4.687,11.314A15.9,15.9,0,0,1,5004-3595Zm-1-15v7l.176-.015c.729-.057,1.83-.143,1.825-1.984v-5h5a1.969,1.969,0,0,0,2-2h-7c0-.07.019-6.961,0-7a1.97,1.97,0,0,0-2,2v5h-5a1.969,1.969,0,0,0-2,2Z",transform:"translate(-4988 3627)",fill:"#000066",
1stroke:"rgba(0,0,0,0)","stroke-width":"1"})})})};function a$(e){let t=null==e?void 0:e.lastIndexOf(".");return -1===t||0===t?"":null==e?void 0:e.slice(t+1)}let aJ="EdocumentsFileInput",aQ=c.Df.withName("PKOBPEdocumentsFileInput").create(()=>({container:{marginBottom:"20px",[h.Ay.breakpoints.down("md")]:{marginBottom:"5px"}},fileInput:{display:"flex",alignItems:"center",justifyContent:"center"},uploadBox:{...h.cc,width:"100%",boxSizing:"border-box",textAlign:"center",margin:"0 16px",padding:"16px 0",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"10px",borderRadius:4,transition:"backgroundColor 0.2s ease-in-out","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{gap:"11px"}},dragActive:{backgroundColor:h.Ay.palette.secondary.backgroundGrey},uploadIcon:{fontSize:42,color:h.Ay.palette.primary.main},uploadText:{color:h.Ay.palette.primary.main,[h.Ay.breakpoints.down("md")]:{fontSize:"16px"}},filePreview:{paddingLeft:"133px",color:h.Ay.palette.text.secondary,[h.Ay.breakpoints.down("md")]:{paddingLeft:"15px",paddingRight:"30px"}},selectedFile:{display:"flex",alignItems:"start",justifyContent:"start",color:h.Ay.palette.text.primary,marginTop:"8px",marginBottom:"22px","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{marginTop:"6px"}},iconContainer:{position:"relative",width:"48px",height:"48px",marginRight:"5px",alignSelf:"flex-start",flex:"0 0 48px",[h.Ay.breakpoints.down("md")]:{marginRight:"4px"},"& img":{width:"100%",height:"48px !important"}},extension:{position:"absolute",top:"21px",left:"13px !important",color:h.Ay.palette.primary.main,fontWeight:900,fontSize:"10px",lineHeight:"1.5 !important"},selectedFileTitle:{maxWidth:"485px",marginTop:"15px",marginBottom:0,paddingLeft:"1px",fontSize:"16px",lineHeight:"20px",wordWrap:"break-word",textAlign:"left",[h.Ay.breakpoints.down("md")]:{paddingLeft:"0px",maxWidth:"calc(100% - 90px)"}},selectedFileDelete:{...h.cc,fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.primary.main,marginLeft:"16px",marginTop:"16px","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{marginLeft:"8px"}}})),a0=e=>{let{selectedFile:t,fileInputRef:a,setSelectedFile:i,handleClear:l,handleKeyDownClear:r,setHash:o,isDragging:s}=e,{classes:c}=aQ(),p=(0,w.A)(h.Ay.breakpoints.down("md")),u=(0,d.useContext)(tT.zp),m=async e=>{var t;let a=null==(t=e.target.files)?void 0:t[0];a&&(i(a),o(await aZ(a)))};return(0,n.jsxs)(ew.A,{className:c.container,"data-cy":aJ,children:[!t&&(0,n.jsxs)(ew.A,{className:c.fileInput,children:[(0,n.jsx)("input",{type:"file",ref:a,style:{display:"none"},onChange:m,"aria-hidden":"true"}),(0,n.jsxs)("button",{className:f()(c.uploadBox,{[c.dragActive]:s}),onClick:()=>{var e;u||null==(e=a.current)||e.click()},children:[(0,n.jsx)(aX,{className:c.uploadIcon}),(0,n.jsx)("span",{className:c.uploadText,children:p?"Dodaj plik z urządzenia":"Dodaj plik z dysku lub przeciągnij i upuść tutaj"})]})]}),t&&(0,n.jsx)(ew.A,{className:c.filePreview,children:(0,n.jsxs)(ew.A,{className:c.selectedFile,role:"region",children:[(0,n.jsxs)(ew.A,{className:c.iconContainer,children:[(0,n.jsx)("span",{className:c.extension,style:{left:10},"data-cy":"".concat(aJ,"--extension"),"aria-hidden":!0,children:a$(t.name).toUpperCase()}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]}),(0,n.jsxs)("span",{className:c.selectedFileTitle,"aria-live":"polite",children:[(0,n.jsx)(es.A,{children:(0,n.jsxs)("span",{children:["Załączono plik: ",t.name]})}),t.name]}),(0,n.jsx)("button",{className:c.selectedFileDelete,onClick:l,onKeyDown:r,"aria-label":"Usuń wybrany plik",children:"Usuń"})]})})]})},a1=c.Df.withName("PKOBPEdocumentsHashInput").create(()=>({inputWrapper:{marginTop:"0",marginBottom:"36px",[h.Ay.breakpoints.down("md")]:{marginBottom:"21px"}},labelWrapper:{display:"flex",alignItems:"center",marginBottom:"1px","& label":{color:h.Ay.palette.text.primary,display:"inline-block",fontSize:"14px",lineHeight:"24px"}},textField:{width:"100%",".text-spacing-detected &":{"& fieldset":{"& legend, & span":{lineHeight:"1 !important"}}},"& .MuiInputBase-root, &.MuiInputBase-root":{borderRadius:"8px",borderColor:h.Ay.palette.text.primary,fontFamily:h.Ay.typography.fontFamily,height:"48px",".text-spacing-detected &":{height:"auto",minHeight:"48px"}},"& .MuiInputAdornment-root":{marginLeft:"-2px",marginTop:"0",letterSpacing:"-1px",[h.Ay.breakpoints.down("md")]:{marginTop:"1px"},".text-spacing-detected &":{"& p":{marginTop:"5px"}}},"& .MuiInputBase-input":{paddingTop:"0",paddingBottom:"0",paddingLeft:"11px",fontWeight:300,".text-spacing-detected &":{"&:not(textarea)":{lineHeight:"1 !important"},paddingTop:"calc(15px + 5px)"}},"& .MuiInputBase-multiline":{height:"unset",paddingTop:"15px",paddingBottom:"15px","& textarea":{padding:"0 !important"}},"& .MuiOutlinedInput-notchedOutline":{top:0,"& > *":{lineHeight:"0"}}}})),a2=e=>{let{hash:t,setHash:a,error:i}=e,{classes:l}=a1(),r=(0,d.useRef)(null);return(0,d.useEffect)(()=>
1{if(i&&(null==r?void 0:r.current)){var e;null==r||null==(e=r.current)||e.focus()}},[i]),(0,n.jsxs)(ew.A,{className:l.inputWrapper,"data-cy":"EdocumentsHashInput",children:[(0,n.jsx)(ew.A,{className:l.labelWrapper,children:(0,n.jsx)("label",{htmlFor:ny,children:"Wklej hash dokumentu"})}),(0,n.jsx)($.A,{id:ny,name:"hashInput",className:l.textField,value:t,onChange:e=>{a(e.target.value)},error:!!i,helperText:i,fullWidth:!0,inputProps:{"aria-label":"Wklej hash dokumentu",ref:r,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}}})]})},a6=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:[(0,n.jsx)("rect",{width:"48",height:"48",fill:"#000066",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(12 6)",children:[(0,n.jsx)("path",{"data-name":"Path 16660",d:"M28,33H8V7h8a1.959,1.959,0,0,0-2-2H6V35H30V19a1.959,1.959,0,0,0-2-2Z",transform:"translate(-6 -1)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 16661",d:"M22,15a1.959,1.959,0,0,0,2-2H8v2Z",transform:"translate(-4 7)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 16662",d:"M22,17a2.054,2.054,0,0,0,2-2H8v2Z",transform:"translate(-4 9)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 16663",d:"M14,13a2.1,2.1,0,0,0,2-2H8v2Z",transform:"translate(-4 5)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 17319",d:"M0,6.32a2.14,2.14,0,0,1,3,.16L6,10V0H8V10l3.02-3.52A2.119,2.119,0,0,1,14,6.32L7,14Z",transform:"translate(14 14) rotate(-90)",fill:"#000066"})]})]});var a4=a(48793),a8=a(69699);let a3="EdocumentsMessage",a5=c.Df.withName("PKOBPEdocumentsMessage").create(()=>({container:{margin:"0 auto 31px auto",maxWidth:"662px",[h.Ay.breakpoints.down("md")]:{marginTop:"8px",marginBottom:"22px"}},topContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[h.Ay.breakpoints.down("md")]:{padding:"0 15px"}},checkIcon:{width:"96px",height:"96px",fill:h.Ay.palette.success.main},closeIcon:{width:"59px",height:"59px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden","& svg":{transform:"scale(4.5)"}},title:{fontSize:"24px",lineHeight:"32px",textAlign:"center",marginTop:"16px",[h.Ay.breakpoints.down("md")]:{fontSize:"18px",lineHeight:"24px"}},infoContainer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"32px",marginTop:"25px",[h.Ay.breakpoints.down("md")]:{alignItems:"start",justifyContent:"start",flexDirection:"column",gap:"16px",marginTop:"23px",width:"100%",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),paddingTop:"24px"}},infoItem:{fontSize:"16px",lineHeight:"20px"},infoLabel:{fontWeight:300},infoValue:{fontWeight:600},line:{margin:"31px 0",background:h.Ay.palette.secondary.borders,border:"none",height:"1px",display:"block",[h.Ay.breakpoints.down("md")]:{margin:"24px 16px"}},links:{display:"flex",alignItems:"center",justifyContent:"center",gap:"33px",[h.Ay.breakpoints.down("md")]:{padding:"0 15px",flexDirection:"column",justifyContent:"start",alignItems:"start",gap:"16px"}},link:{textDecoration:"none",color:h.Ay.palette.text.primary,display:"flex",alignItems:"center",justifyContent:"center","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{alignItems:"flex-start",justifyContent:"flex-start",width:"100%","&:first-of-type p":{marginTop:"12px"}}},iconContainer:{position:"relative",width:"48px",height:"48px",marginRight:"12px",alignSelf:"flex-start",[h.Ay.breakpoints.down("sm")]:{marginRight:"11px",flex:"0 0 48px"},"& img":{width:"100%",height:"48px !important"}},extension:{position:"absolute",top:"21px",left:"13px !important",color:h.Ay.palette.primary.main,fontWeight:900,fontSize:"10px",lineHeight:"1.5 !important",[h.Ay.breakpoints.down("md")]:{fontSize:"9px",top:"22px"}},btnTitle:{width:"100%",maxWidth:"calc(100% - 48px - 12px)",marginTop:0,marginBottom:0,fontSize:"16px",lineHeight:"20px",[h.Ay.breakpoints.down("md")]:{marginTop:"14px"}}})),a9=e=>{var t;let{message:a,getMessageTitle:i}=e,{classes:l}=a5();return(0,n.jsxs)(ew.A,{className:l.container,"data-cy":a3,role:"region",children:[(0,n.jsxs)(ew.A,{className:l.topContainer,children:[(null==a?void 0:a.validationStatus)==="VALID"?(0,n.jsx)(K.A,{className:l.checkIcon}):(0,n.jsx)("div",{className:l.closeIcon,children:(0,n.jsx)(Y.A,{color:h.Ay.palette.error.main})}),(0,n.jsx)(ew.A,{className:l.title,children:i()}),((null==a?void 0:a.status)||(null==a?void 0:a.creationDate))&&(0,n.jsxs)(ew.A,{className:l.infoContainer,children:[!!(null==a?void 0:a.status)&&(0,n.jsxs)(ew.A,{className:l.infoItem,children:[(0,n.jsx)("span",{className:l.infoLabel,children:"Status dokumentu:"})," ",(0,n.jsx)("span",{className:l.infoValue,children:(e=>{switch(e){case"CANCELLED":return"Anulowany";case"ACTIVE":return"Aktualny";case"REMOVED":case"DELETED":return"Usunięty";case"FORGOTTEN":return"Zapomniany";case"EXPIRED":return"Wygasły";default:return e}})(null==a?void 0:a.status)})]}),!!(null==a?void 0:a.creationDate)&&(0,n.jsxs)(ew.A,{className:l.infoItem,children:[(0,n.jsx)("span",{className:l.infoLabel,children:"Data publikacji:"})," ",(0,n.jsx)("span",{className:l.infoValue,children:(e=>e instanceof Date&&(0,a4.A)(e)?(0,a8.A)(e,"dd.MM.yyyy HH:mm:ss"):"")(new Date(null==a?void 0:a.creationDate))})]})]})]}),(!!(null==a?void 0:a.document_link)||!!(null==a?void 0:a.fileHash))&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{className:l.line}),(0,n.jsxs)(ew.A,{className:l.links,children:[!!(null==a?void 0:a.document_link)&&(0,n.jsxs)("a",{className:l.link,href:"".concat((0,g.C)()).concat(null==a?void 0:a.document_link),target:"_blank","data-cy":"".concat(a3,"--btn"),children:[(0,n.jsxs)(ew.A,{className:l.iconContainer,children:[(0,n.jsx)("span",{className:l.extension,style:{left:10}
1,"data-cy":"".concat(a3,"--extension"),"aria-hidden":!0,children:null==(t=a$(null==a?void 0:a.document_link))?void 0:t.toUpperCase()}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]}),(0,n.jsx)(_.A,{variant:"body1",className:l.btnTitle,cy:"".concat(a3,"--title"),children:"Pobierz plik z archiwum PKO Banku Polskiego"})]}),!!(null==a?void 0:a.fileHash)&&(0,n.jsxs)("a",{className:l.link,href:"https://portal.kir.pl/tnverif",target:"_blank","data-cy":"".concat(a3,"--btn"),children:[(0,n.jsx)(ew.A,{className:l.iconContainer,children:(0,n.jsx)(a6,{})}),(0,n.jsx)(_.A,{variant:"body1",className:l.btnTitle,cy:"".concat(a3,"--title"),children:"Zweryfikuj plik na stronie KIR"})]})]})]})]})},a7="EdocumentsFileBox",ne=encodeURIComponent('\n    <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" overflow="visible">\n        <rect \n          x="0" \n          y="0" \n          width="100%" \n          height="100%" \n          fill="none" \n          stroke="'.concat("#636363",'"\n          stroke-width="').concat(1,'"\n          stroke-dasharray="').concat(5," ").concat(5,'"\n          rx="').concat(4,'"\n          ry="').concat(4,'"\n        />\n    </svg>\n  ')),nt=c.Df.withName("PKOBPEdocumentsFileBox").create(()=>({container:{position:"relative",maxWidth:"872px",margin:"0 auto",marginBottom:"110px",[h.Ay.breakpoints.down("md")]:{marginBottom:"95px"}},fileBox:{borderRadius:6,padding:"1px"},contentWrapper:{position:"relative",padding:"31px 1px 1px 1px",display:"flex",flexDirection:"column",[h.Ay.breakpoints.down("md")]:{paddingTop:"16px"},"&::after":{content:'""',display:"block",position:"absolute",inset:0,backgroundImage:'url("data:image/svg+xml,'.concat(ne,'")'),backgroundPosition:"0px 0px",backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",zIndex:"-1"}},dividerWrapper:{display:"flex",alignItems:"center",gap:"16px",padding:"0 16px",maxWidth:"688px",width:"100%",margin:"0 auto"},divider:{flex:1},orText:{whiteSpace:"nowrap"},bottomContainer:{padding:"33px 16px 39px 16px",maxWidth:"631px",width:"100%",margin:"0 auto",[h.Ay.breakpoints.down("md")]:{padding:"24px 15px"}},bottomContainer__isSelectedFile:{padding:"56px 171px 47px 144px",background:h.Ay.palette.secondary.backgroundGrey,maxWidth:"unset",[h.Ay.breakpoints.down("md")]:{padding:"24px 16px"}},errorMessage:{color:h.Ay.palette.error.main,fontSize:"14px",textAlign:"left"},buttons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"18px",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column-reverse",alignItems:"stretch",gap:"11px"}},clearBtn:{minWidth:"unset",width:"85px",height:"48px",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},checkBtn:{minWidth:"104px",width:"auto",margin:"0"},checkBtn__isSelectedFile:{minWidth:"131px"},checkNewFileBtn:{display:"block",margin:"32px auto 0 auto",minWidth:"170px",[h.Ay.breakpoints.down("sm")]:{width:"100%"}}})),na=e=>{let{hash:t,setHash:a}=e,{classes:i}=nt(),l=(0,en.A)(),r=(0,d.useRef)(null),o=(0,d.useRef)(null),[s,c]=(0,d.useState)(null),[p,u]=(0,d.useState)(!1),[m,h]=(0,d.useState)(!1),[x,g]=(0,d.useState)(null),[y,b]=(0,d.useState)(null),v=(0,d.useContext)(tT.zp),w=()=>{a(""),c(null),g(null),b(null),o.current&&(o.current.value="")},_=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),w(),setTimeout(()=>{var e;let t=null==(e=r.current)?void 0:e.querySelector("button");t&&t.focus()},300))},j=async()=>{if(v)return;let e=(e=>e?/^[a-fA-F0-9]{64}$/.test(e)?"":"Podany hash jest niepoprawny":"Dodaj plik lub wklej hash dokumentu")(t);if(e)return void b(e);u(!0);try{let e=await l.apiModulesEdocumentsBlockchainList({sha_256_hash:t}),a=null==e?void 0:e.data;g(a||{connectionError:!0})}catch(e){console.error(e),g({connectionError:!0})}finally{u(!1)}},k=async e=>{if(v)return;e.preventDefault(),h(!1);let t=e.dataTransfer.files[0];t&&(c(t),a(await aZ(t)))},C=()=>x?(null==x?void 0:x.connectionError)?"Wystąpił błąd. Proszę spr\xf3bować ponownie.":(null==x?void 0:x.validationStatus)==="VALID"?"Dokument został zweryfikowany pozytywnie na sieci Blockchain.":"Dokument nie został znaleziony w sieci Blockchain":"";return(0,n.jsxs)(B.A,{className:i.container,"data-cy":a7,ref:r,children:[(0,n.jsxs)(B.A,{className:i.fileBox,onDragOver:e=>{e.preventDefault(),h(!0)},onDragEnter:()=>h(!0),onDragLeave:()=>h(!1),onDrop:k,children:[(0,n.jsx)(eo.Ay,{isLoading:p,withOverlay:!0,size:eo.iW.MD}),(0,n.jsxs)(B.A,{className:i.contentWrapper,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{"aria-live":"polite",children:C()})}),x?(0,n.jsx)(a9,{message:x,getMessageTitle:C}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a0,{fileInputRef:o,selectedFile:s,setSelectedFile:c,handleClear:w,handleKeyDownClear:_,setHash:a,isDragging:m}),!s&&(0,n.jsxs)(B.A,{className:i.dividerWrapper,children:[(0,n.jsx)(aK.A,{className:i.divider}),(0,n.jsx)(aV.A,{variant:"body2",className:i.orText,children:"lub"}),(0,n.jsx)(aK.A,{className:i.divider})]}),(0,n.jsxs)(B.A,{className:f()(i.bottomContainer,{[i.bottomContainer__isSelectedFile]:s}),children:[!s&&(0,n.jsx)(a2,{hash:t,setHash:a,error:y}),(0,n.jsxs)(B.A,{className:i.buttons,children:[!s&&(0,n.jsx)(A.default,{variant:"textBlue",onClickCallback:w,onKeyDown:_,className:i.clearBtn,id:"".concat(a7,"--clearBtn"),children:"Wyczyść"}),(0,n.jsx)(A.default,{variant:"primary",onClickCallback:j,className:f()(i.checkBtn,{[i.checkBtn__isSelectedFile]:s}),id:"".concat(a7,"--checkBtn"),children:s?"Analizuj plik":"Sprawdź"})]})]})]})]})]}),!!x&&(0,n.jsx)(A.default,{variant:"secondary",onClickCallback:w,onKeyDown:_,className:i.checkNewFileBtn,children:"Sprawdź kolejny plik"})]})},nn=c.Df.withName("PKOBPEdocumentsDetails").create(()=>({descriptionWrapper:{[h.Ay.breakpoints.down("md")]:{borderTop:"1px dashed ".concat(h.Ay.palette.secondary.borders),marginTop:"14px"}}
1,hash:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column",fontSize:"16px",lineHeight:"20px",marginTop:"23px",[h.Ay.breakpoints.down("md")]:{marginTop:"25px"}},hashValue:{fontWeight:600,marginTop:"8px",[h.Ay.breakpoints.down("md")]:{wordWrap:"break-word",wordBreak:"break-word"}},wysiwyg:{margin:"38px 0 22px 0",[h.Ay.breakpoints.down("md")]:{margin:"20px 0 24px 0"}}})),ni=e=>{let{edocument:t,id:a,hidden:i}=e,{classes:l}=nn();return(null==t?void 0:t.sha_256_hash)||(null==t?void 0:t.description)?(0,n.jsxs)("div",{className:l.descriptionWrapper,id:a,hidden:i,children:[!!(null==t?void 0:t.sha_256_hash)&&(0,n.jsxs)("div",{className:l.hash,hidden:!0,children:[(0,n.jsx)("span",{children:"Hash dokumentu:"}),(0,n.jsx)("span",{className:l.hashValue,children:t.sha_256_hash})]}),!!(null==t?void 0:t.description)&&(0,n.jsx)(tk.default,{className:l.wysiwyg,content:t.description})]}):null},nl=()=>(0,n.jsxs)("svg",{"data-name":"pko_icon_ agency-contract_48",xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:[(0,n.jsx)("rect",{width:"48",height:"48",fill:"#000066",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(9 10)",children:[(0,n.jsx)("path",{"data-name":"Path 2972",d:"M3952.01,1274H3938v3h2v-1h10.007v8h8.006v16H3940v-2h-2v4h22.016v-20Zm0,8v-5l5,5Z",transform:"translate(-3931.016 -1274)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2966",d:"M3942.5,1282a2.006,2.006,0,0,1,2-2h7.005v2Z",transform:"translate(-3926.509 -1268)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2967",d:"M3942.5,1284a2.006,2.006,0,0,1,2-2h7.005v2Z",transform:"translate(-3926.509 -1266)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2968",d:"M3946,1284a2.006,2.006,0,0,0-2,2h6v-2Z",transform:"translate(-3925.007 -1264)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2969",d:"M3941.494,1278.6l5,1.8c.3,8-3,10.1-5,10.9-2-.9-5.3-3-5-10.9l5-1.8m0-2.1-6.9,2.5v.3c-.8,11.1,4.7,13.3,6.7,14.1l.2.1.2-.1c2.1-.8,7.505-3,6.7-14.1v-.3l-6.9-2.5Z",transform:"translate(-3934.51 -1271.5)",fill:"#000066"})]})]});var nr=a(45741);let no=c.Df.withName("PKOBPEdocumentsRowButtons").create(()=>({buttons:{display:"flex",alignItems:"center",justifyContent:"space-between",[h.Ay.breakpoints.down("md")]:{width:"263px",marginTop:"16px"}},downloadLink:{...h.cc,color:h.Ay.palette.text.primary,display:"flex",alignItems:"center",justifyContent:"center","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{fontWeight:300}},iconContainer:{position:"relative",width:"48px",height:"48px",alignSelf:"flex-start",marginRight:"8px","& img":{width:"100%",height:"48px !important"}},extension:{position:"absolute",top:"21px",left:"13px !important",color:h.Ay.palette.primary.main,fontWeight:900,fontSize:"10px",lineHeight:"1.5 !important"}})),ns=e=>{let{edocument:t,sectionRef:a,setHash:i,cy:l}=e,{classes:r}=no(),o=a$(t.filepath).toUpperCase();return(0,n.jsxs)("div",{className:r.buttons,children:[(0,n.jsxs)("a",{className:r.downloadLink,href:(0,nr.W6)({path:"/api/public/".concat(t.filepath,"?filename=").concat(t.file_name,".").concat(a$(t.filepath))}),target:"_blank","data-cy":"".concat(l,"--btn"),"aria-label":"Pobierz plik ".concat(o," - ").concat(t.file_name,". Uwaga, link otworzy się w nowym oknie"),children:[(0,n.jsxs)("div",{className:r.iconContainer,children:[(0,n.jsx)("span",{className:r.extension,"aria-hidden":!0,children:o}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",alt:"Ikonka pliku ".concat(o),title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]}),(0,n.jsxs)("span",{children:["Plik ",o]})]}),(0,n.jsxs)("button",{className:r.downloadLink,onClick:()=>{if(null==a?void 0:a.current){let e=a.current.getBoundingClientRect().top+window.scrollY-32;window.scrollTo({top:e,behavior:"smooth"});let t=a.current.querySelector("#".concat(ny));setTimeout(()=>null==t?void 0:t.focus(),300)}(null==t?void 0:t.sha_256_hash)&&i(t.sha_256_hash)},"data-cy":"".concat(l,"--btn"),"aria-label":"Sprawdź hash dokumentu",children:[(0,n.jsx)("div",{className:r.iconContainer,children:(0,n.jsx)(nl,{})}),(0,n.jsx)("span",{children:"Blockchain"})]})]})},nd=e=>
1{let[t,a]=(0,d.useState)(null);return(0,d.useEffect)(()=>{a(null)},[e]),{expandedRow:t,toggleRow:e=>{a(t=>t===e?null:e)}}},nc="EdocumentsMobileList",np=c.Df.withName("PKOBPEdocumentsMobileList").create(()=>({container:{position:"relative",fontSize:"16px",lineHeight:"20px"},row:{paddingTop:"14px",marginTop:"15px",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),"&:first-of-type":{marginTop:"13px",paddingTop:"15px"},"&:last-of-type":{paddingBottom:"15px",borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders)}},head:{display:"flex",alignItems:"center",justifyContent:"space-between"},date:{fontWeight:300},iconBtn:{...h.cc,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.3s ease",transformOrigin:"center","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},iconBtn__isExpanded:{transform:"rotate(-180deg)"},title:{fontWeight:600,marginTop:"6px"}})),nu=e=>{let{edocumentsData:t,isLoading:a,sectionRef:i,setHash:l,currentPage:r}=e,{classes:o}=np(),{expandedRow:s,toggleRow:d}=nd(r);return!!(null==t?void 0:t.length)&&(0,n.jsxs)(ew.A,{className:o.container,"data-cy":nc,children:[(0,n.jsx)(eo.Ay,{isLoading:a,withOverlay:!0,size:eo.iW.MD}),t.map((e,t)=>{let a="".concat(r,"_").concat(t),c=s===a;return(0,n.jsxs)("div",{className:o.row,children:[(0,n.jsxs)("div",{className:o.head,children:[(0,n.jsx)("div",{className:o.date,children:(0,a8.A)(new Date(e.publication_date),"dd.MM.yyyy")}),!!e.description&&(0,n.jsxs)("button",{className:f()(o.iconBtn,{[o.iconBtn__isExpanded]:c}),"aria-expanded":c,"aria-controls":"edocumentsDetailsMobile-".concat(a),onClick:()=>d(a),children:[(0,n.jsx)(V.A,{}),(0,n.jsx)(es.A,{children:c?"Zwiń szczeg\xf3ły":"Rozwiń szczeg\xf3ły"})]})]}),(0,n.jsx)("div",{className:o.title,children:e.name}),(0,n.jsx)(ns,{edocument:e,sectionRef:i,setHash:l,cy:nc}),(0,n.jsx)(ni,{edocument:e,id:"edocumentsDetailsMobile-".concat(r,"_").concat(t),hidden:s!=="".concat(r,"_").concat(t)})]},a)})]})},nm="EdocumentsTable",nh=c.Df.withName("PKOBPEdocumentsTable").create(()=>({container:{position:"relative",marginTop:"50px"},table:{width:"100%",borderCollapse:"collapse"},thead:{borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),"& th":{textAlign:"left",padding:"0",paddingBottom:"18px"},"& span":{margin:"0",padding:"0",fontSize:"14px",lineHeight:"20px"}},row:{borderBottom:"1px solid  ".concat(h.Ay.palette.secondary.borders)},row__isExpanded:{borderBottom:"1px dashed ".concat(h.Ay.palette.secondary.borders," ")},cell:{padding:"8px 0 7px 0",verticalAlign:"middle",fontSize:"16px",lineHeight:"20px",fontWeight:300,paddingRight:"40px","&:first-child":{width:"132px",paddingRight:"40px"},"&:last-child":{padding:"6px 0",width:"24px"}},cell__name:{width:"calc(100% - 132px - 303px - 24px)"},cell__buttons:{width:"303px"},iconBtn:{...h.cc,display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.3s ease",transformOrigin:"center","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},iconBtn__isExpanded:{transform:"rotate(-180deg)"}})),nx=e=>{let{edocumentsData:t,isLoading:a,sectionRef:i,setHash:l,currentPage:r}=e,{classes:o}=nh(),{expandedRow:s,toggleRow:c}=nd(r);return!!(null==t?void 0:t.length)&&(0,n.jsxs)(ew.A,{className:o.container,"data-cy":nm,children:[(0,n.jsx)(eo.Ay,{isLoading:a,withOverlay:!0,size:eo.iW.MD}),(0,n.jsxs)("table",{className:o.table,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("caption",{children:"Tabela przedstawiająca dokumenty"})}),(0,n.jsx)("thead",{className:o.thead,children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Data publikacji"})}),(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Temat"})}),(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Pobierz"})}),(0,n.jsx)("th",{children:(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:"Zwiń/Rozwiń"})})})]})}),(0,n.jsx)("tbody",{children:t.map((e,t)=>{let a="edocumentDesktop_".concat(r,"_").concat(t),p=s===a;return(0,n.jsxs)(d.Fragment,{children:[(0,n.jsxs)("tr",{className:f()(o.row,{[o.row__isExpanded]:p}),children:[(0,n.jsx)("td",{className:o.cell,children:(0,a8.A)(new Date(null==e?void 0:e.publication_date),"dd.MM.yyyy")}),(0,n.jsx)("td",{className:f()(o.cell,o.cell__name),children:e.name}),(0,n.jsx)("td",{className:f()(o.cell,o.cell__buttons),children:(0,n.jsx)(ns,{edocument:e,sectionRef:i,setHash:l,cy:nm})}),(0,n.jsx)("td",{className:o.cell,children:!!e.description&&(0,n.jsxs)("button",{className:f()(o.iconBtn,{[o.iconBtn__isExpanded]:p}),"aria-expanded":p,"aria-controls":"edocumentsDetails-".concat(a),onClick:()=>c(a),children:[(0,n.jsx)(V.A,{}),(0,n.jsx)(es.A,{children:p?"Zwiń szczeg\xf3ły":"Rozwiń szczeg\xf3ły"})]})})]}),(!!(null==e?void 0:e.description)||!!(null==e?void 0:e.sha_256_hash))&&(0,n.jsxs)("tr",{id:"edocumentsDetails-".concat(r,"_").concat(t),hidden:!p,className:o.row,children:[(0,n.jsx)("td",{}),(0,n.jsx)("td",{colSpan:2,children:(0,n.jsx)(ni,{edocument:e})})]})]},a)})})]})]})},ng="Edocuments",ny="".concat(ng,"--HashInput"),nb=c.Df.withName("PKOBPEdocuments").create(()=>({container:{},header:{maxWidth:"872px",margin:"0 auto 36px auto",textAlign:"center",[h.Ay.breakpoints.down("md")]:{marginBottom:"23px"}},edocumentsTitle:{margin:"0"},description:{marginTop:"25px",fontWeight:300,"& *:first-child ":{marginTop:"0px"},"& a":{letterSpacing:"0.2px"},[h.Ay.breakpoints.down("md")]:{marginTop:"10px",lineHeight:"24px"}}
1,archiveTitle:{textAlign:"center",marginBottom:"46px",marginTop:"0px",[h.Ay.breakpoints.down("md")]:{marginBottom:"23px"}},filters:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:"30px",width:"100%",marginBottom:"27px",paddingBottom:"31px",borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),[h.Ay.breakpoints.down("md")]:{flexWrap:"wrap",columnGap:"16px",rowGap:"29px",paddingBottom:"21px",marginBottom:"11px",borderBottom:"unset"}},filters__isActiveFilter:{[h.Ay.breakpoints.down("md")]:{borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders)}},numberOfResults:{[h.Ay.breakpoints.down("md")]:{fontWeight:300,fontSize:"16px"}},tableWrapper:{"&:focus, &:active, &:visited, &:focus-visible":{border:"none",outline:"none"}},pagination:{marginTop:"82px",[h.Ay.breakpoints.down("md")]:{marginTop:"58px"}}})),nf=e=>{let{title:t,description:a}=e,{classes:i}=nb(),l=(0,w.A)(h.Ay.breakpoints.down("md")),r=(0,d.useRef)(null),o=(0,d.useRef)(null),[s,c]=(0,d.useState)(""),p=(0,d.useContext)(U.G),{edocumentsData:u,isLoading:m,dateFrom:x,dateTo:g,setDateFrom:y,setDateTo:b,searchPhrase:v,setSearchPhrase:A,numberOfResults:j,numberOfPages:k,currentPage:C,setCurrentPage:N}=(()=>{let e=(0,en.A)(),t=(0,q.useRouter)(),[a,n]=(0,d.useState)(null),[i,l]=(0,d.useState)(null),[r,o]=(0,d.useState)(null),[s,c]=(0,d.useState)(null),[p,u]=(0,d.useState)(null),[m,h]=(0,d.useState)(1),[x,g]=(0,d.useState)(null),y=Math.ceil((x||0)/10),b=(0,d.useRef)(!1),f=async()=>{try{var t,a,i;let o=s?(0,a8.A)(s,"yyyy-MM-dd"):void 0,d=p?(0,a8.A)(p,"yyyy-MM-dd"):void 0;n(!0);let c=await e.apiModulesEdocumentsSearchList({page:m,page_size:10,date_from:o,date_to:d,name:r||void 0});if(!c.ok||!(null==c||null==(a=c.data)||null==(t=a.results)?void 0:t.length))throw Error("No data");g((null==(i=c.data)?void 0:i.count)||null),l(c.data.results)}catch(e){console.error("fetchEdocumentsData error:",e),g(null),l(null)}finally{n(!1)}};return(0,d.useEffect)(()=>{if(!t.isReady||b.current)return;let{name:e,date_from:a,date_to:n}=t.query;e&&"string"==typeof e&&o(e),a&&"string"==typeof a&&c((0,I.A)(a)),n&&"string"==typeof n&&u((0,I.A)(n)),b.current=!0},[t.isReady]),(0,d.useEffect)(()=>{if(b.current){if(1!==m&&(r||s||p))return void h(1);f(),(e=>{let a={};e.name&&(a.name=String(e.name)),e.date_from&&(a.date_from=String(e.date_from)),e.date_to&&(a.date_to=String(e.date_to)),t.replace({pathname:t.asPath.split("?")[0],query:a},void 0,{scroll:!1,shallow:!0})})({name:r,date_from:s?(0,a8.A)(s,"yyyy-MM-dd"):null,date_to:p?(0,a8.A)(p,"yyyy-MM-dd"):null})}},[r,s,p,m]),{isLoading:a,edocumentsData:i,fetchEdocumentsData:f,searchPhrase:r,setSearchPhrase:o,dateFrom:s,setDateFrom:c,dateTo:p,setDateTo:u,numberOfPages:y,currentPage:m,setCurrentPage:h,numberOfResults:x}})();return(0,n.jsxs)(ew.A,{id:p,className:i.container,"data-cy":ng,children:[(0,n.jsxs)(ew.A,{className:i.header,children:[(null==t?void 0:t.text)&&(0,n.jsx)(_.A,{className:i.edocumentsTitle,variant:(0,ei.a)(null==t?void 0:t.hx),"data-cy":"".concat(ng,"--edocumentsTitle"),children:null==t?void 0:t.text}),(0,n.jsx)(tk.default,{className:i.description,content:null==a?void 0:a.content,"data-cy":"".concat(ng,"--description"),products:null==a?void 0:a.product_for_wysiwyg_rendered})]}),(0,n.jsx)(ew.A,{ref:r,children:(0,n.jsx)(na,{hash:s,setHash:c})}),(0,n.jsx)(_.A,{className:i.archiveTitle,variant:(0,ei.a)((null==t?void 0:t.hx)?t.hx+1:2),"data-cy":"".concat(ng,"--archiveTitle"),children:"Archiwum dokument\xf3w"}),(0,n.jsxs)(ew.A,{className:f()(i.filters,{[i.filters__isActiveFilter]:x||g||v}),children:[(0,n.jsx)(aG,{searchPhrase:v,setSearchPhrase:A}),(0,n.jsx)(aR,{name:"date-from",inputLabel:"Data od",minDate:new Date("2000-01-01"),selectedDate:x,setSelectedDate:y}),(0,n.jsx)(aR,{name:"date-to",inputLabel:"Data do",minDate:x||new Date("2000-01-01"),selectedDate:g,setSelectedDate:b})]}),x||g||v?(0,n.jsx)(ew.A,{children:(0,n.jsxs)("span",{className:i.numberOfResults,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{"aria-live":"polite",children:j?"Znaleziono ".concat(j," ").concat((0,ak.lw)(j)," wyszukiwania dla podanych filtr\xf3w"):"Nie znaleziono dokument\xf3w dla podanych filtr\xf3w"})}
1),(0,n.jsx)("span",{"aria-hidden":!0,children:j?"".concat(j," ").concat((0,ak.lw)(j)," wyszukiwania"):"Brak wynik\xf3w wyszukiwania"})]})}):null,(0,n.jsx)(es.A,{children:(0,n.jsxs)("span",{"aria-live":"polite",children:["Wyświetlono stronę numer ",C]})}),(0,n.jsx)(ew.A,{className:i.tableWrapper,role:"region",ref:o,tabIndex:-1,children:l?(0,n.jsx)(nu,{edocumentsData:u,isLoading:m,sectionRef:r,setHash:c,currentPage:C}):(0,n.jsx)(nx,{edocumentsData:u,isLoading:m,sectionRef:r,setHash:c,currentPage:C})}),k>1&&(0,n.jsx)(ew.A,{className:i.pagination,children:(0,n.jsx)(aC.A,{current:C,pages:k,onChangePage:e=>N(e),onChangePageByKeyboard:e=>{(null==o?void 0:o.current)&&(N(e),setTimeout(()=>{var e;null==o||null==(e=o.current)||e.focus()},300))},renderMobileShowMoreBtn:!1})})]})},nv=z()(()=>a.e(6859).then(a.bind(a,26859)),{loadableGenerated:{webpack:()=>[26859]},ssr:!1}),nw=z()(()=>Promise.all([a.e(839),a.e(5620),a.e(2203)]).then(a.bind(a,62203)),{loadableGenerated:{webpack:()=>[62203]}}),nA=z()(()=>a.e(6194).then(a.bind(a,86194)),{loadableGenerated:{webpack:()=>[86194]}}),n_=z()(()=>Promise.all([a.e(5620),a.e(6350)]).then(a.bind(a,16350)),{loadableGenerated:{webpack:()=>[16350]}}),nj=z()(()=>Promise.all([a.e(2549),a.e(9475)]).then(a.bind(a,19475)),{loadableGenerated:{webpack:()=>[19475]}});var nk=a(96665);let nC=z()(()=>Promise.all([a.e(2549),a.e(695)]).then(a.bind(a,40695)),{loadableGenerated:{webpack:()=>[40695]}});var nN=a(64695),nS=a(11987),nT=a(18123),nz=a(42069),nL=a(83418);let nP=(e,t)=>{var a;return(null==nI||null==(a=nI[e])?void 0:a[t])||""},nI={pl:{chooseFile:"Wybierz plik",fileSelected:"Wybrano plik",noFile:"Nie wybrano pliku"},en:{chooseFile:"Choose file",fileSelected:"File selected",noFile:"No file selected"}},nE=c.Df.withName("PKOBPFileUploadBtn").create(()=>({container:{display:"flex",alignItems:"center",justifyContent:"start",[h.Ay.breakpoints.down("sm")]:{flexWrap:"wrap"}},button:{...h.cc,boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:"180px",minHeight:"48px",marginTop:h.Ay.spacing(1),marginBottom:h.Ay.spacing(1),padding:"11px 16px",border:"1px solid transparent",textDecoration:"none",cursor:"pointer",transition:"background 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",fontFamily:"pkobp,Helvetica,Arial,sans-serif",fontSize:16,lineHeight:1.25,fontWeight:400,textTransform:"none",borderRadius:"10px 10px",background:h.Ay.palette.common.white,borderColor:h.Ay.palette.secondary.bordersDark,color:h.Ay.palette.common.black,[h.Ay.breakpoints.down("sm")]:{marginRight:"16px"},"&::selection":{background:"transparent"},"&:disabled":{color:h.Ay.palette.secondary.backgroundDisabled,pointerEvents:"none"},"&:hover, &:focus":{background:h.Ay.palette.secondary.backgroundGrey,borderColor:h.Ay.palette.secondary.bordersDark}},selectedFile:{marginLeft:"24px",fontSize:"14px",[h.Ay.breakpoints.down("sm")]:{marginLeft:"0px",marginTop:"4px"}}})),nO=e=>{let{handleFileChange:t,fileName:a}=e,{classes:i}=nE(),l=(0,d.useRef)(null),r=(0,d.useContext)(d_),o=(0,nL.v)(null==r?void 0:r.language);return(0,n.jsxs)(ew.A,{className:i.container,"data-cy":"FileUploadBtn",children:[(0,n.jsx)("button",{className:i.button,type:"button",onClick:()=>{var e;null==(e=l.current)||e.click()},children:nP(o,"chooseFile")}),(0,n.jsx)("input",{ref:l,type:"file",style:{display:"none"},onChange:t}),(0,n.jsx)("div",{className:i.selectedFile,children:a?"".concat(nP(o,"fileSelected"),": ").concat(a):nP(o,"noFile")})]})};var nB=a(96587),nF=a(20262);let nD=(e,t)=>{var a;return(null==nR||null==(a=nR[e])?void 0:a[t])||""},nR={pl:{maxLength100:"To pole może mieć maksymalnie 100 znak\xf3w.",maxLength500:"To pole może mieć maksymalnie 500 znak\xf3w.",maxLength250:"To pole może mieć maksymalnie 250 znak\xf3w.",onlyLetters:"To pole może zawierać tylko litery, spacje i myślniki.",invalidEmail:"Wprowadź poprawny adres email.",invalidPhone:"Wprowadź poprawny numer telefonu.",invalidUrl:"Wprowadź poprawny adres URL.",atLeastOneRequired:"Przynajmniej jedna wartość musi zostać zaznaczona",onlyPdfAllowed:"Dozwolone są tylko pliki PDF",fileTooLarge:"Plik nie może być większy niż 10MB",formSuccess:"Formularz został pomyślnie wysłany. Dziękujemy!",formError:"Wystąpił błąd podczas wysyłania formularza.<br>Spr\xf3buj ponownie p\xf3źniej.",clearSelection:"Wyczyść wyb\xf3r",formInvalid:"Nie wszystkie pola formularza kontaktowego są poprawnie uzupełnione",formFields:"Pola do wypełnienia formularza kontaktowego",agreementsMissing:"Nie wszystkie obowiązkowe zgody formularza zostały zaznaczone",agreementsFields:"Zgody do zaznaczenia formularza",closeWindow:"Zamknij okno",close:"Zamknij",submitForm:"Wyślij uzupełniony formularz",sendForm:"Wyślij",requiredField:"To pole jest wymagane",requiredAgreement:"Zgoda jest wymagana.",idea:"Idea lub koncepcja",prototype:"Prototyp",firstSale:"Pierwsza sprzedaż",scaling:"Skalowanie sprzedaży",sourceBank:"Strona Banku",sourceEmployee:"Pracownik Banku",sourceMedia:"Prasa lub Social Media",sourceStartup:"Od innego startupu",sourceEvent:"Konferencja/Event",sourceInternet:"Internet",sourceOther:"Inne źr\xf3dło",other:"Inny",cooperationBusiness:"Wsp\xf3łpraca biznesowa",cooperationInvestment:"Inwestycja kapitałowa",cooperationCloud:"Wsp\xf3łpraca z Chmurą Krajową",cooperationBankOffer:"Chcę skorzystać oferty bankowej dla startup\xf3w",cooperationTechAi:"Wsp\xf3łpraca technologiczna w zakresie AI w tym GenAI"},en:{maxLength100:"This field can have a maximum of 100 characters.",maxLength500:"This field can have a maximum of 500 characters.",maxLength250:"This field can have a maximum of 250 characters.",onlyLetters:"This field can only contain letters, space
1s, and hyphens.",invalidEmail:"Enter a valid email address.",invalidPhone:"Enter a valid phone number.",invalidUrl:"Enter a valid URL.",atLeastOneRequired:"At least one value must be selected",onlyPdfAllowed:"Only PDF files are allowed",fileTooLarge:"The file cannot be larger than 10MB",formSuccess:"The form has been successfully submitted. Thank you!",formError:"An error occurred while submitting the form.<br>Please try again later.",clearSelection:"Clear selection",formInvalid:"Not all contact form fields have been filled in correctly",formFields:"Contact form fields",agreementsMissing:"Not all mandatory form consents have been selected",agreementsFields:"Form consents to be checked",closeWindow:"Close window",close:"Close",submitForm:"Submit completed form",sendForm:"Send",requiredField:"This field is required",requiredAgreement:"Consent is required.",idea:"Idea or concept",prototype:"Prototype",firstSale:"First sale",scaling:"Scaling sales",sourceBank:"PKO Bank Polski website",sourceEmployee:"PKO Bank Polski employee",sourceMedia:"Press or Social Media",sourceStartup:"From another startup",sourceEvent:"Conference/Event",sourceInternet:"Internet",sourceOther:"Other",other:"Other",cooperationBusiness:"Commercial implementation",cooperationInvestment:"VC funding",cooperationCloud:"Cooperation with Domestic Cloud Provider (OCHK)",cooperationBankOffer:"I want to use the bank's offer for startups",cooperationTechAi:"Technological cooperation in AI, including GenAI"},de:{},cs:{},sk:{},ro:{}},nM=/^[a-zA-Z\u0080-\u00FF\u0100-\u017F\u0180-\u024F\s-]*$/,nH=(e,t)=>null==e?void 0:e.find(e=>(null==e?void 0:e.id)===t),nW=["startup_name","first_last_name","email","phone","country","website_url"],nU=["problem","solution","use_case"],nG=(e,t,a)=>{let n=nH(e,t),i=(null==n?void 0:n.error_message)||nD(a,"requiredAgreement");return X.zM().when([],{is:()=>null==n?void 0:n.is_required,then:e=>
1e.oneOf([!0],i).required(i),otherwise:e=>e.notRequired()})},nK={...Object.fromEntries(nW.map(e=>[e,""])),...Object.fromEntries(nU.map(e=>[e,""])),website_url:"https://",growth_stage:"",info:"",product:[],cooperation:[],file:null,agreement_1:!1,agreement_2:!1},nV="FintechContactForm",nY=c.Df.withName("PKOBPFintechContactForm").create(()=>({container:{maxWidth:700,margin:"0 auto"},title:{fontSize:"32px",lineHeight:"40px",marginBottom:"38px",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"13px"}},formContainer:{display:"flex",flexDirection:"column",gap:"8px",position:"relative"},inputs:{margin:0,padding:0,border:"none","&>legend":es.$,display:"flex",flexDirection:"column",gap:"8px",paddingTop:"5px"},textField:{width:"100%",".text-spacing-detected &":{"& fieldset":{"& legend, & span":{lineHeight:"1 !important"}}},"& .MuiInputBase-root, &.MuiInputBase-root":{borderRadius:"8px",borderColor:h.Ay.palette.text.primary,fontFamily:h.Ay.typography.fontFamily,height:"48px",".text-spacing-detected &":{height:"auto",minHeight:"48px"}},"& .MuiInputAdornment-root":{marginLeft:"-2px",marginTop:"0",letterSpacing:"-1px",[h.Ay.breakpoints.down("md")]:{marginTop:"1px"},".text-spacing-detected &":{"& p":{marginTop:"5px"}}},"& .MuiInputBase-input":{paddingTop:"15px",paddingBottom:"15px",".text-spacing-detected &":{"&:not(textarea)":{lineHeight:"1 !important"},paddingTop:"calc(15px + 5px)"}},"& .MuiInputBase-multiline":{height:"unset",paddingTop:"15px",paddingBottom:"15px","& textarea":{padding:"0 !important"}},"& .MuiOutlinedInput-notchedOutline":{top:0,"& > *":{lineHeight:"0"}}},inputWrapper:{marginBottom:"14px"},labelWrapper:{display:"flex",alignItems:"center",marginBottom:"2px","& label, & legend":{color:h.Ay.palette.text.primary,display:"inline-block",fontSize:"14px",lineHeight:"24px"}},selectLabel:{marginLeft:"16px",lineHeight:1},select:{marginTop:"4px",height:"48px",width:"100%",".text-spacing-detected &":{height:"auto",minHeight:"48px"},"& select":{zIndex:"1"},"& svg":{display:"inline-block",width:"24px",height:"24px",position:"absolute",right:6,top:12,".text-spacing-detected &":{top:"auto"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,borderRadius:"8px",transition:"border 0.2s ease-in-out","& > legend":{width:"0px"}}},checkboxGroupContainer:{margin:"10px 0 32px 0",padding:0,border:"none",[h.Ay.breakpoints.down("sm")]:{marginTop:"2px",marginBottom:"24px"}},checkboxGroup:{columnCount:2,columnGap:"8px",marginTop:"8px","& > *":{marginBottom:"8px"},"& label":{breakInside:"avoid"},[h.Ay.breakpoints.down("sm")]:{columnCount:1},"& .MuiFormControlLabel-label":{marginTop:"2px","& > span":{fontSize:"14px"}}},checkboxLegend:{color:h.Ay.palette.text.primary,display:"inline-block",fontSize:"14px",lineHeight:"24px",marginBottom:"2px"},fileUploadContainer:{marginTop:"18px",marginBottom:"16px",padding:"0",border:"none",[h.Ay.breakpoints.down("sm")]:{marginTop:"10px",marginBottom:"8px"}},agreements:{margin:0,padding:0,border:"none","&>legend":es.$,marginTop:"16px"},responseContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",[h.Ay.breakpoints.up("sm")]:{minWidth:"600px"}},messageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:"100%",height:"100%",marginBottom:"15px"},checkIcon:{width:"96px",height:"96px",fill:h.Ay.palette.success.main,marginBottom:"16px"},closeIcon:{width:"96px",height:"96px",fill:h.Ay.palette.error.main},responseHeader:{margin:"0 0 18px 0",textAlign:"center",fontSize:"24px",lineHeight:32/24,[h.Ay.breakpoints.down("sm")]:{fontSize:"18px"}},responseBtn:{width:"auto",alignSelf:"center",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},submitBtn:{width:"auto",alignSelf:"start",margin:"-4px auto 0 auto",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},drawerList:{padding:0},drawerListButton:{padding:"16px 12px",borderRadius:"8px","&.Mui-focusVisible":{background:h.Ay.palette.secondary.backgroundBlue},"&.Mui-selected":{background:h.Ay.palette.secondary.backgroundBlue},"&.Mui-focusVisible.Mui-selected":{background:h.Ay.palette.secondary.backgroundBlue},"&.Mui-selected .MuiListItemText-primary":{fontWeight:700}},drawerListText:{margin:0,"& .MuiListItemText-primary":{lineHeight:1,fontSize:"16px",fontFamily:h.Ay.typography.fontFamily}},drawerListText__isClearBtn:{color:h.Ay.palette.grey[600]}})),nZ=e=>{let{file_label:t,file_aria_label:a,...i}=e,l=(0,w.A)(h.Ay.breakpoints.down("sm")),r=(0,d.useContext)(U.G),o=(0,en.A)(),s=(0,d.useContext)(d_),c=(0,nL.v)(null==s?void 0:s.language),{classes:p}=nY(),[u,m]=(0,d.useState)(!1),[x,g]=(0,d.useState)(null),[y,b]=(0,d.useState)(!1),[v,j]=(0,d.useState)([]),[k,C]=(0,d.useState)(null),N=[null==i?void 0:i.agreement_1,null==i?void 0:i.agreement_2,null==i?void 0:i.info_1,null==i?void 0:i.info_2].filter(e=>e>0),S=async e=>{m(!0);try{let t={...e,cooperation:Array.isArray(e.cooperation)?e.cooperation.join(";"):e.cooperation,product:Array.isArray(e.product)?e.product.join(";"):e.product,agreement_1_id:null==i?void 0:i.agreement_1,agreement_1_value:null==e?void 0:e.agreement_1,...(null==i?void 0:i.agreement_2)&&{agreement_2_id:i.agreement_2,agreement_2_value:null==e?void 0:e.agreement_2}},a=await o.apiModulesFintechContactFormCreate(t);if(a.ok)g({type:"success",message:nD(c,"formSuccess")});else throw Error("HTTP error! Status: ".concat(a.status))}catch(e){console.error(e),g({type:"error",message:nD(c,"formError")})}finally{m(!1)}},T=()=>{b(!1),setTimeout(()=>{g(null)},500)};(0,d.useEffect)(()=>{(null==x?void 0:x.type)&&b(!0)},[x]),(0,d.useEffect)(()=>{let e=async()=>{try{let e=await o.apiModulesAgreementListList({agreements:N.toString()});if(e.ok)return j(e.data)}catch(e){console.error(e,"err")}};return(null==N?void 0:N.length)&&!(null==v?void 0:v.length)&&e(),()=>{j([])}},[]);let z=function(e,t){var a,l,r,o,s;let d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=/^[0-9+\-()\s]*$/;return(0,n.jsxs)(ew.A,{className:p.inputWrapper,children:[(0,n.jsx)(ew.A,{className:p.labelWrapper,children:(0,n.jsx)("label",{htmlFor:"".concat(nV,"_").concat(t),children:null==i?void 0:i["".concat(t,"_label")]})}),(0,n.jsx)($.A,{id:"".concat(nV,"_").concat(t),name:t,className:p.textField,value:null==(a=e.values)?void 0:a[t],onChange:a=>{let n=a.target.value;("phone"!==t||c.test(n))&&e.setFieldValue(t,n)},onBlur:e.handleBlur,error:(null==(l=e.touched)?void 0:l[t])&&!!(null==(r=e.errors)?void 0:r[t]),helperText:(null==(o=e.touched)?void 0:o[t])&&(null==(s=e.errors)?void 0:s[t]),fullWidth:!0,inputProps:{"aria-label":null==i?void 0:i["".concat(t,"_aria_label")],inputMode:"phone"===t?"tel":"text"},multiline:d,minRows:3,maxRows:10})]})},L=(e,t,a)=>{var r,o,s,d,u,m,x;return(0,n.jsxs)(ew.A,{className:p.inputWrapper,children:[(0,n.jsx)(ew.A,{className:p.labelWrapper,children:(0,n.jsx)("label",{htmlFor:"".concat(nV,"_").concat(t),children:null==i?void 0:i["".concat(t,"_label")]})}),(0,n.jsxs)(J.A,{id:"".concat(nV,"_").concat(t),value:null==(r=e.values)?void 0:r[t],onChange:e.handleChange,name:t,IconComponent:()=>(0,n.jsx)(V.A,{}),className:p.select,error:(null==(o=e.touched)?void 0:o[t])&&!!(null==(s=e.errors)?void 0:s[t]),label:"",inputProps:{"aria-label":null==i?void 0:i["".concat(t,"_aria_label")],"aria-invalid":!!(null==(d=e.errors)?void 0:d[t]),"aria-describedby":"".concat(nV,"_").concat(t,"_error"),readOnly:l},onClick:()=>l?C(t):null,children:[(0,n.jsx)(Q.A,{value:"",children:(0,n.jsx)(_.A,{color:h.Ay.palette.grey[500],children:nD(c,"clearSelection")})}),a.map(e=>(0,n.jsx)(Q.A,{value:e.value,children:e.label},e.value))]}),(null==(u=e.touched)?void 0:u[t])&&(null==(m=e.errors)?void 0:m[t])&&(0,n.jsx)(ee.A,{error:!0,id:"".concat(nV,"_").concat(t,"_error"),children:null==(x=e.errors)?void 0:x[t]}),l&&(0,n.jsx)(nB.default,{isDrawerOpen:k===t,handleCloseDrawer:()=>C(null),withoutHeaderBox:!0,children:(0,n.jsxs)(nN.A,{className:p.drawerList,children:[(0,n.jsx)(nS.Ay,{disablePadding:!0,children:(0,n.jsx)(nT.A,{className:p.drawerListButton,selected:!1,onClick:()=>{e.setFieldValue(t,""),C(null)},children:(0,n.jsx)(nz.A,{primary:nD(c,"clearSelection"),className:f()(p.drawerListText,p.drawerListText__isClearBtn)})})}),a.map(a=>{var i;let{value:l,label:r}=a;return(0,n.jsx)(nS.Ay,{disablePadding:!0,children:(0,n.jsx)(nT.A,{className:p.drawerListButton,selected:(null==(i=e.values)?void 0:i[t])===l,onClick:()=>{e.setFieldValue(t,l),C(null)},children:(0,n.jsx)(nz.A,{primary:r,className:p.drawerListText})})},l)})]})})]})},P=(e,t,a)=>{var l,r,o;let s=!!((null==(l=e.touched)?void 0:l[t])&&(null==(r=e.errors)?void 0:r[t]));return(0,n.jsxs)(ew.A,{component:"fieldset",className:p.checkboxGroupContainer,"aria-invalid":s,"aria-describedby":s?"".concat(nV,"_").concat(t,"_error"):void 0,"aria-label":null==i?void 0:i["".concat(t,"_aria_label")],id:"".concat(nV,"_").concat(t,"_group"),children:[(0,n.jsx)("legend",{className:p.checkboxLegend,children:null==i?void 0:i["".concat(t,"_label")]}),(0,n.jsx)(ew.A,{className:p.checkboxGroup,children:a.map(a=>{let{id:n,key:i,label:l}=a;return I(n,e,i,l,t)})}),s&&(0,n.jsx)(ee.A,{error:!0,id:"".concat(nV,"_").concat(t,"_error"),children:null==(o=e.errors)?void 0:o[t]})]})},I=(e,t,a,i,l)=>{var r,o;return(0,n.jsx)(nF.A,{checked:null==t||null==(o=t.values)||null==(r=o[l])?void 0:r.includes(a),onChange:e=>{var n,i;let r=null!=(i=null==(n=t.values)?void 0:n[l])?i:[];e?t.setFieldValue(l,[...r,a]):t.setFieldValue(l,r.filter(e=>e!==a))},label:i,cy:"".concat(nV,"--checkbox"),$_ID:e},e)};return(0,n.jsx)(ew.A,{id:r,className:p.container,"data-cy":nV,children:(0,n.jsx)(Z.l1,{initialValues:nK,validationSchema:()=>X.Ik().shape({startup_name:X.Yj().required(nD(c,"requiredField")).max(100,nD(c,"maxLength100")),country:X.Yj().required(nD(c,"requiredField")).max(100,nD(c,"maxLength100")),first_last_name:X.Yj().required(nD(c,"requiredField")).max(100,nD(c,"maxLength100")).matches(nM,nD(c,"onlyLetters")),email:X.Yj().required(nD(c,"requiredField")).max(100,nD(c,"maxLength100")).email(nD(c,"invalidEmail")),phone:X.Yj().required(nD(c,"requiredField")).max(100,nD(c,"maxLength100")).matches(/^\+?[0-9]\d{1,18}$/,nD(c,"invalidPhone")),website_url:X.Yj().required(nD(c,"requiredField")).url(nD(c,"invalidUrl")),product:X.YO().of(X.Yj().required(nD(c,"requiredField"))).min(1,nD(c,"atLeastOneRequired")),problem:X.Yj().required(nD(c,"requiredField")).max(500,nD(c,"maxLength500")),solution:X.Yj().required(nD(c,"requiredField")).max(500,nD(c,"maxLength500")),use_case:X.Yj().required(nD(c,"requiredField")).max(250,nD(c,"maxLength250")),growth_stage:X.Yj().required(nD(c,"requiredField")),cooperation:X.YO().of(X.Yj().required(nD(c,"requiredField"))).min(1,nD(c,"atLeastOneRequired")),info:X.Yj().required(nD(c,"requiredField")),file:X.gl().nullable().required(nD(c,"requiredField")).test("fileType",nD(c,"onlyPdfAllowed"),e=>!e||["application/pdf"].includes(e.type)).test("fileSize",nD(c,"fileTooLarge"),e=>!e||e.size<=0xa00000),agreement_1:nG(v,null==i?void 0:i.agreement_1,c),agreement_2:nG(v,null==i?void 0:i.agreement_2,c)}),onSubmit:S,children:e=>{var a,r,o,s,m,h,g,b,f,w,j,k;return(0,d.useEffect)(()=>
1{if(e.submitCount>0&&!e.isValid){let t=Object.keys(e.errors)[0],a=document.querySelector('[name="'.concat(t,'"],  #').concat(nV,"_").concat(t,"_group"));a&&(a.focus&&a.focus(),a.scrollIntoView({behavior:"smooth",block:"center"}))}},[e.submitCount,e.isValid]),(0,d.useEffect)(()=>{y||(null==x?void 0:x.type)!=="success"||null==e||e.resetForm()},[y]),(0,n.jsx)(Z.lV,{children:(0,n.jsxs)(ew.A,{className:p.formContainer,children:[u&&(0,n.jsx)(eo.Ay,{isLoading:u,withOverlay:!0,size:eo.iW.LG}),(0,n.jsxs)(ew.A,{component:"fieldset",className:p.inputs,"aria-live":"polite",children:[e.submitCount>0&&!e.isValid?(0,n.jsx)("legend",{children:nD(c,"formInvalid")},"invalid-inputs"):(0,n.jsx)("legend",{children:nD(c,"formFields")},"valid-inputs"),nW.map(t=>z(e,t)),P(e,"product",[{id:"productFintech_1",key:"AR/VR",label:"AR/VR"},{id:"productFintech_2",key:"AR/VR/XR",label:"AR/VR/XR"},{id:"productFintech_3",key:"Artificial Intelligence/Machine Learning",label:"Artificial Intelligence"},{id:"productFintech_4",key:"Biometrics",label:"Biometrics"},{id:"productFintech_5",key:"Blockchain",label:"Blockchain"},{id:"productFintech_6",key:"New Branch Experience",label:"Branch Experience"},{id:"productFintech_7",key:"CX/UX",label:"CX/UX"},{id:"productFintech_8",key:"Cyber Security",label:"Cyber Security"},{id:"productFintech_9",key:"Data & analytics",label:"Data & analytics"},{id:"productFintech_10",key:"Digital Banking",label:"Digital Banking"},{id:"productFintech_11",key:"eCommerce",label:"eCommerce"},{id:"productFintech_12",key:"ESG",label:"ESG"},{id:"productFintech_13",key:"Gameing",label:"Gameing"},{id:"productFintech_14",key:"InsurTech",label:"InsurTech"},{id:"productFintech_15",key:"Legal&RegTech",label:"Legal&RegTech"},{id:"productFintech_16",key:"Lending & Financing",label:"Lending & Financing"},{id:"productFintech_17",key:"Marketing&Ad Tech",label:"Marketing&Ad Tech"},{id:"productFintech_18",key:"Metaverse",label:"Metaverse"},{id:"productFintech_19",key:"Open Banking/API",label:"Open Banking/API"},{id:"productFintech_20",key:"Payments",label:"Payments"},{id:"productFintech_21",key:"PFM/BFM",label:"PFM/BFM"},{id:"productFintech_22",key:"PropTech",label:"PropTech"},{id:"productFintech_23",key:"Robotics",label:"Robotics"},{id:"productFintech_24",key:"SportsTech",label:"SportsTech"},{id:"productFintech_25",key:"Trading & Investing",label:"Trading & Investing"},{id:"productFintech_26",key:"TravelTech",label:"TravelTech"},{id:"productFintech_27",key:"Value-added services",label:"Value-added services"},{id:"productFintech_28",key:"Web3.0",label:"Web3.0"},{id:"productFintech_29",key:"Other",label:nD(c,"other")}]),nU.map(t=>z(e,t,!0)),L(e,"growth_stage",(e=>[{value:"Idea lub koncepcja",label:nD(e,"idea")},{value:"Prototyp",label:nD(e,"prototype")},{value:"MVP",label:"MVP"},{value:"Pierwsza sprzedaż",label:nD(e,"firstSale")},{value:"Skalowanie sprzedaży",label:nD(e,"scaling")}])(c)),P(e,"cooperation",(e=>[{id:"cooperationFintech_1",key:"Wsp\xf3łpraca komercyjna",label:nD(e,"cooperationBusiness")},{id:"cooperationFintech_2",key:"Inwestycja kapitałowa",label:nD(e,"cooperationInvestment")},{id:"cooperationFintech_3",key:"Wsp\xf3łpraca z Chmurą Krajową",label:nD(e,"cooperationCloud")},{id:"cooperationFintech_4",key:"Chcę skorzystać oferty bankowej dla startup\xf3w",label:nD(e,"cooperationBankOffer")},{id:"cooperationFintech_5",key:"Wsp\xf3łpraca technologiczna w zakresie AI w tym GenAI",label:nD(e,"cooperationTechAi")}])(c)),L(e,"info",(e=>[{value:"Strona Banku",label:nD(e,"sourceBank")},{value:"Pracownik Banku",label:nD(e,"sourceEmployee")},{value:"Prasa lub Social Media",label:nD(e,"sourceMedia")},{value:"Od innego startupu",label:nD(e,"sourceStartup")},{value:"Konferencja/Event",label:nD(e,"sourceEvent")},{value:"Internet",label:nD(e,"sourceInternet")},{value:"Inne źr\xf3dło",label:nD(e,"sourceOther")}])(c)),(0,n.jsxs)(ew.A,{component:"fieldset",id:"".concat(nV,"_file_group"),className:p.fileUploadContainer,"aria-invalid":!!((null==(a=e.touched)?void 0:a.file)&&(null==(r=e.errors)?void 0:r.file)),"aria-describedby":"".concat(nV,"_file_error"),children:[(0,n.jsx)(ew.A,{className:p.labelWrapper,children:(0,n.jsx)("legend",{children:t})}),(0,n.jsx)(nO,{handleFileChange:t=>{var a;(null==(a=t.target.files)?void 0:a.length)?e.setFieldValue("file",t.target.files[0]):e.setFieldValue("file",null)},fileName:null==e||null==(s=e.values)||null==(o=s.file)?void 0:o.name}),(null==(m=e.touched)?void 0:m.file)&&(null==(h=e.errors)?void 0:h.file)&&(0,n.jsx)(ee.A,{error:!0,id:"".concat(nV,"_file_error"),children:null==(g=e.errors)?void 0:g.file})]},null==e||null==(b=e.values)?void 0:b.file)]}),(0,n.jsxs)(ew.A,{component:"fieldset",className:p.agreements,children:[(null==(f=e.touched)?void 0:f.agreement_1)&&(null==(w=e.errors)?void 0:w.agreement_1)||(null==(j=e.touched)?void 0:j.agreement_2)&&(null==(k=e.errors)?void 0:k.agreement_2)?(0,n.jsx)("legend",{children:nD(c,"agreementsMissing")},"invalid-agreements"):(0,n.jsx)("legend",{children:nD(c,"agreementsFields")},"valid-agreements"),Array.from({length:2},(t,a)=>{let l="agreement_".concat(a+1),r=nH(v,null==i?void 0:i[l]);return!!(null==i?void 0:i[l])&&r&&(0,n.jsx)(er.A,{formik:e,field:{name:l,link_label:null==r?void 0:r.link_label,link_label_expanded:null==r?void 0:r.link_label_expanded,content:null==r?void 0:r.content,display_name:null==r?void 0:r.display_name}},l)}),Array.from({length:2},(e,t)=>{let a="info_".concat(t+1),l=nH(v,null==i?void 0:i[a]);return!!(null==i?void 0:i[a])&&l&&(0,n.jsx)(el.A,{link_label:null==l?void 0:l.link_label,link_label_expanded:null==l?void 0:l.link_label_expanded,content:null==l?void 0:l.content,display_name:null==l?void 0:l.display_name},a)})]}),(0,n.jsx)(ea.Ay,{isOpen:y,handleClose:T,size:ea.Ih.MD,modalStyle:ea.YT.DEFAULT,fullScreen:l,showDrawerOnMobile:!1,$_ID_MODAL_TITLE:"PKOBP_FINTECH_CONTACT_FORM_MODAL",children:(0,n.jsxs)(ew.A,{className:p.responseContainer,children:[(0,n.jsxs)(ew.A,{className:p.messageWrapper,children:[(null==x?void 0:x.type)==="success"?(0,n.jsx)(K.A,{className:p.checkIcon}):(0,n.jsx)(Y.A,{className:p.closeIcon}),(null==x?void 0:x.message)&&(0,n.jsx)(_.A,{className:p.responseHeader,variant:"body1",dangerouslySetInnerHTML:{__html:null==x?void 0:x.message},id:"PKOBP_FINTECH_CONTACT_FORM_MODAL"})]}),(0,n.jsx)(A.default,{className:p.responseBtn,variant:"primary",renderAsButton:!0,onClickCallback:T,ariaLabel:nD(c,"closeWindow"),cy:nV,
1children:nD(c,"close")})]})}),(0,n.jsx)(A.default,{type:"submit",variant:"primary",disabled:e.isSubmitting,renderAsButton:!0,className:p.submitBtn,ariaLabel:nD(c,"submitForm"),children:nD(c,"sendForm")})]})})}})})},nq=c.Df.withName("PKOBPContent").create(()=>({root:{margin:0,...h.Ay.typography.body1,[h.Ay.breakpoints.down("sm")]:{fontSize:"16px"},"& h1":h.Ay.typography.h1,"& h2":h.Ay.typography.h2,"& h3":h.Ay.typography.h3,"& h4":h.Ay.typography.h4,"& h5":h.Ay.typography.h5,"& h6":h.Ay.typography.h6}})),nX=e=>{let{children:t,...a}=e,{classes:i}=nq();return(0,n.jsx)("div",{className:i.root,...a,children:t})};var n$=a(10213),nJ=a(21212);let nQ=c.Df.withName("PKOBPSimpleMessage").create(()=>({wrapper:{backgroundColor:h.Ay.palette.secondary.backgroundGrey,padding:"15px 0",[h.Ay.breakpoints.down("md")]:{padding:"0",borderBottom:"1px solid #E0E0E0","&>div":{padding:"0",maxWidth:"100%"}}},wrapper__hidden:{display:"none"},box:{backgroundColor:"#FFFFFF",borderRadius:"18px",padding:"20px 58px",position:"relative",overflow:"hidden",[h.Ay.breakpoints.down("md")]:{borderRadius:"0",padding:"43px 16px 20px 16px"}},box__collapsed:{paddingTop:"20px",[h.Ay.breakpoints.down("md")]:{paddingTop:"20px"},"&:after":{content:"''",position:"absolute",bottom:"16px",left:0,right:0,height:"50px",background:"linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1))"}},boxFlexible__expanded:{paddingBottom:"46px"},boxFlexible__collapsed:{[h.Ay.breakpoints.down("md")]:{paddingTop:"43px"}},content:{fontFamily:"Arial, sans-serif",lineHeight:"20px","& p:first-child":{marginTop:0},"& p:last-child":{marginBottom:0}},content__collapsed:{display:"-webkit-box","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",overflow:"hidden"},content__flexible:{fontFamily:h.Ay.typography.fontFamily},closeButton:{position:"absolute",top:0,right:0,padding:0,"&:hover":{background:"none"},"& svg":{width:"100%",height:"100%",fill:"#686868"}},expandButton:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",border:"none",cursor:"pointer",backgroundColor:"transparent",zIndex:1},expandTextButton:{fontFamily:h.Ay.typography.fontFamily,textTransform:"none",letterSpacing:0,fontSize:"14px",lineHeight:"24px",padding:0,color:h.Ay.palette.text.primary,position:"absolute",left:"50%",transform:"translateX(-50%)",bottom:"3px",zIndex:10,"&:hover":{[h.Ay.breakpoints.up("lg")]:{backgroundColor:"transparent",color:h.Ay.palette.primary.main}},"&:focus-visible":{outline:"solid 2px #000000"},"& svg":{fill:h.Ay.palette.primary.main,marginLeft:"2px",transition:"transform 0.2s"}},expandTextButton__expanded:{bottom:"16px","& svg":{transform:"rotate(180deg)"}}})),n0=e=>{var t,a;let{...i}=e,{classes:l}=nQ(),r="flexiblemessage"===i.type,[o,s]=(0,d.useState)((a=i.is_rolled_up,!r||!a)),[c,p]=(0,d.useState)(!1),u=(0,d.useContext)(U.G);return(0,n.jsx)(B.A,{className:f()(l.wrapper,{[l.wrapper__hidden]:c}),id:u,children:(0,n.jsx)(D.A,{children:(0,n.jsxs)(B.A,{className:f()(l.box,{[l.box__collapsed]:!o,[l.boxFlexible__expanded]:r&&o,[l.boxFlexible__collapsed]:r&&!o}),children:[(r||o)&&(0,n.jsx)(n$.A,{"aria-label":r?"Zamknij komunikat":"Zwiń komunikat",onClick:()=>{r?p(!0):s(!1)},className:l.closeButton,size:"small",children:(0,n.jsx)(Y.A,{})}),!r&&!o&&(0,n.jsx)("button",{className:l.expandButton,"aria-label":"Rozwiń komunikat",onClick:()=>s(!0)}),(0,n.jsx)(tk.default,{content:null==(t=i.message)?void 0:t.content,className:f()(l.content,{[l.content__collapsed]:!o,[l.content__flexible]:r}),products:null==i?void 0:i.product_for_wysiwyg_rendered}),r&&(0,n.jsxs)(nJ.A,{onClick:()=>s(e=>!e),variant:"text",className:f()(l.expandTextButton,{[l.expandTextButton__expanded]:o}),disableRipple:!0,"aria-label":o?"Zwiń komunikat":"Rozwiń komunikat",children:[o?"Zwiń":"Rozwiń"," ",(0,n.jsx)(V.A,{})]})]})})})},n1=z()(()=>a.e(756).then(a.bind(a,20756)),{loadableGenerated:{webpack:()=>[20756]}});var n2=a(98945),n6=a(19957);let n4={sale:{labelName:"Pieniądz sprzedaż",color:"#24428F"},buy:{labelName:"Pieniądz kupno",color:"#08BC85"},sale_foreign:{labelName:"Dewizy sprzedaż",color:"#FF2038"},buy_foreign:{labelName:"Dewizy kupno",color:"#F5AB10"}},n8=e=>null==e?void 0:e.replace(/\d+/g,""),n3={fontFamily:h.Ay.typography.fontFamily,color:"#000",fontWeight:400,fontSize:"16px",lineHeight:"20px"};var n5=a(31198);let n9=(e,t)=>{var a,n,i;return(null==n7||null==(a=n7[e])?void 0:a[t])||(null==n7||null==(n=n7.en)?void 0:n[t])||(null==n7||null==(i=n7.pl)?void 0:i[t])||""},n7={pl:{buy:"Kupno",sell:"Sprzedaż",foreignExchange:"Dewizy",change:"Zmiana",referenceRate:"Kurs referencyjny",cnbRate:"Kurs NBC*",day:"Z dnia",hour:"Godzina",table:"Tabela:",showMore:"Pokaż więcej",showMoreAriaLabel:"Pokaż więcej kurs\xf3w walut. Aktualnie pokazanych:",downloadFile:"Tabela z kursami walut w formacie Excel z dnia",loading:"Trwa ładowanie",downloadFileHeader:"Dokumenty do pobrania",noEntries:"Brak wynik\xf3w dla podanej daty",wrongDate:"Brak danych dla tej daty",ariaLabelDatePicker:"Wpisz datę z jakiej chcesz wyświetlić kursy. Data w formacie:",ariaLabelTimeSelect:"Wybierz godzinę z jakiej chcesz wyświetlić kursy",tableCaption:"Tabela przedstawiająca kursy dla kraju",dateTimeLegend:"Wybierz godzinę i datę z jakiej chcesz wyświetlić kursy",operationType:"Rodzaj operacji",collapse:"Zwiń",collapseAriaLabel:"Zwiń listę",noTrendChange:"Bez zmian",trendUp:"Wzrost o",trendDown:"Spadek o",value:"Wartość",tableExtraText:"*kurs jest prezentowany z jednodniowym op\xf3źnieniem w stosunku do kurs\xf3w publikowanych przez Narodowy Bank Czech",valueType:"Typ wartości",averageForeign:"Średni kurs NBP",money:"Pieniądze",chartBtnAria:"Kliknij aby zobaczyć wykresy kurs\xf3w walut",transactionsHeader:"Kursy dla transakcji z wyłączeniem obsługi kredyt\xf3w",creditsHeader:"Kursy walut wykorzystywane do&nbsp;obsługi kredyt\xf3w",spreadsHeader:"Spready do obsługi kredyt\xf3w",chartHeader:"Wykres kursu walut",week:"tydz.",month:"mies.",year:"rok",chartTimeRangeAria:"Wyświetl wykres z zakresu 
1czasu r\xf3wnego",foreignSpread:"Spread dewizy",percent:"Procent",markup:"Marża",exchangeRatesForDate:"Kursy wymiany z:",numberOfShown:"Liczba wyświetlonych kurs\xf3w to",hufTooltip:"W przypadku wymiany HUF kurs jest dla 100 jednostek walutowych."},en:{buy:"Buy",sell:"Sell",foreignExchange:"Foreign exchange",change:"Change",referenceRate:"Reference rate",cnbRate:"CNB rate*",day:"Day",hour:"Hour",table:"Table:",showMore:"Show more",showMoreAriaLabel:"Show more exchange rate",downloadFile:"Download exchange rate table in Excel format",loading:"Loading",downloadFileHeader:"Downloadable documents",noEntries:"No results for the selected date",wrongDate:"No data available for this date",ariaLabelDatePicker:"Enter the date for which you want to display exchange rates. Date format:",ariaLabelTimeSelect:"Select the time for which you want to display exchange rates",tableCaption:"Table showing exchange rates for the country",dateTimeLegend:"Select the time and date for which you want to display exchange rates",operationType:"Type of operation",collapse:"Collapse",collapseAriaLabel:"Collapse the list",noTrendChange:"No change",trendUp:"Increase of",trendDown:"Decrease of",value:"Value",tableExtraText:"*rate is presented with a one-day delay compared to the rates published by the Czech National Bank",exchangeRatesForDate:"Last updated",numberOfShown:"Number of items displayed",hufTooltip:"For HUF exchange rates, the exchange rate is for 100 currency units."},de:{buy:"Ankauf",sell:"Verkauf",foreignExchange:"Devisen",change:"\xc4nderung",referenceRate:"Referenzkurs",cnbRate:"NBC-Kurs*",day:"Vom",hour:"Uhrzeit",table:"Tabelle:",showMore:"Mehr anzeigen",showMoreAriaLabel:"Weitere Wechselkurse anzeigen. Derzeit angezeigt:",downloadFile:"Wechselkurstabellen im Excel-Format herunterladen",loading:"Wird geladen",downloadFileHeader:"Dokumente zum Herunterladen",noEntries:"Keine Ergebnisse f\xfcr das angegebene Datum",wrongDate:"Keine Daten f\xfcr dieses Datum",ariaLabelDatePicker:"Gib das Datum ein, f\xfcr das du die Kurse anzeigen m\xf6chtest. Datum im Format:",ariaLabelTimeSelect:"W\xe4hle die Uhrzeit, f\xfcr die die Wechselkurse anzeigt werden sollen",tableCaption:"Tabelle mit Wechselkursen f\xfcr das Land",dateTimeLegend:"W\xe4hle die Uhrzeit, f\xfcr die die Wechselkurse anzeigt werden sollen",operationType:"Art der Transaktion",collapse:"Einklappen",collapseAriaLabel:"Liste einklappen",noTrendChange:"Keine \xc4nderungen",trendUp:"Anstieg um",trendDown:"R\xfcckgang um",value:"Wert"},cs:{buy:"N\xe1kup",sell:"Prodej",foreignExchange:"Devizy",change:"Změna",referenceRate:"Referenčn\xed kurz",cnbRate:"Kurz ČNB*",day:"Den",hour:"Hodina",table:"Tabulka:",showMore:"Zobrazit v\xedce",showMoreAriaLabel:"Zobrazit dalš\xed směnn\xe9 kurzy. Aktu\xe1lně zobrazeno:",downloadFile:"St\xe1hnout kurzovn\xed tabulky ve form\xe1tu Excel",loading:"Nač\xedt\xe1n\xed",downloadFileHeader:"Soubor ke stažen\xed",noEntries:"Pro dan\xe9 datum nejsou k dispozici ž\xe1dn\xe9 v\xfdsledky.",wrongDate:"K tomuto datu nejsou k dispozici ž\xe1dn\xe9 \xfadaje",ariaLabelDatePicker:"Zadejte datum, od kter\xe9ho chcete kurzy zobrazit. Datum ve form\xe1tu:",ariaLabelTimeSelect:"Vyberte si čas (hodinu), od kter\xe9ho chcete zobrazit kurzy",tableCaption:"Tabulka zobrazuj\xedc\xed směnn\xe9 kurzy pro zemi",dateTimeLegend:"Wybierz godzinę i datę z jakiej chcesz wyświetlić kursy",operationType:"Typ operace",collapse:"Sbalit",collapseAriaLabel:"Sbalit seznam",noTrendChange:"Ž\xe1dn\xe9 změny",trendUp:"Zv\xfdšen\xed o",trendDown:"Sn\xedžen\xed o",value:"Hodnota",tableExtraText:"*kurz je prezentov\xe1n s jednodenn\xedm zpožděn\xedm ve srovn\xe1n\xed s kurzy publikovan\xfdmi Českou n\xe1rodn\xed bankou"},sk:{buy:"N\xe1kup",sell:"Predaj",foreignExchange:"Devizy",change:"Zmena",referenceRate:"Referenčn\xfd kurz",cnbRate:"Kurz NBC*",day:"Deň",hour:"Hodina",table:"Tabuľka:",showMore:"Zobraziť viac",showMoreAriaLabel:"Zobraziť viac kurzov. Aktu\xe1lne zobrazen\xe9:",downloadFile:"Stiahnuť tabuľku kurzov vo form\xe1te Excel",loading:"Nač\xedtava sa",downloadFileHeader:"Dokumenty na stiahnutie",noEntries:"Žiadne v\xfdsledky pre zadan\xfd d\xe1tum",wrongDate:"Žiadne \xfadaje pre tento d\xe1tum",ariaLabelDatePicker:"Zadajte d\xe1tum, pre ktor\xfd chcete zobraziť kurzy. Form\xe1t d\xe1tumu:",ariaLabelTimeSelect:"Vyberte čas, pre ktor\xfd chcete zobraziť kurzy",tableCaption:"Tabuľka zobrazuj\xfaca v\xfdmenn\xe9 kurzy pre 
1krajinu",dateTimeLegend:"Zadajte d\xe1tum, pre ktor\xfd chcete zobraziť kurzy.",operationType:"Typ oper\xe1cie",collapse:"Zbaliť",collapseAriaLabel:"Zbaliť zoznam",noTrendChange:"Bez zmeny",trendUp:"Zv\xfdšenie o",trendDown:"Zn\xedženie o",value:"Hodnota"},ro:{buy:"Cumpărare",sell:"V\xe2nzare",foreignExchange:"Schimb valutar",change:"Schimbare procentuală",referenceRate:"Curs de referință",cnbRate:"Curs de referință",day:"Ziua",hour:"Ora",table:"Tabelul:",showMore:"Afișează mai multe",showMoreAriaLabel:"Afișează mai multe cursuri de schimb valutar. Se afișează \xeen prezent:",downloadFile:"Descărcă tabelele cursurilor de schimb \xeen format Excel",loading:"Se \xeencarcă acum",downloadFileHeader:"Documente de descărcat",noEntries:"Niciun rezultat pentru data specificată",wrongDate:"Nu există date pentru această dată",ariaLabelDatePicker:"Introduceți data pentru care doriți să afișați tarifele. Data \xeen format:",ariaLabelTimeSelect:"Selectați ora de la care doriți să afișați cursurile",tableCaption:"Tabel care arată cursurile de schimb pentru țară",dateTimeLegend:"Introduceți data pentru care doriți să afișați tarifele.",operationType:"Tipul operațiunii",collapse:"Restr\xe2nge",collapseAriaLabel:"Restr\xe2nge lista",noTrendChange:"Fără modificări",trendUp:"Creștere cu",trendDown:"Scădere cu",value:"Valoare"},ru:{buy:"Купівля",sell:"Продажа",showMore:"Показать больше",showMoreAriaLabel:"Показать больше товаров. Текущее отображаемое количество товаров",collapse:"Свернуть",collapseAriaLabel:"Свернуть список",exchangeRatesForDate:"Последнее обновление",numberOfShown:"Количество отображаемых курсов",hufTooltip:"Для курсов обмена HUF курс указан за 100 единиц валюты."},uk:{buy:"Купівля",sell:"Продаж",showMore:"Показати більше",showMoreAriaLabel:"Показати більше елементів. Кількість елементів, що відображається",collapse:"Згорнути",collapseAriaLabel:"Згорнути список",exchangeRatesForDate:"Останнє оновлення",numberOfShown:"Кількість відображених курсів",hufTooltip:"Для обміну HUF курс указано за 100 одиниць валюти."}},ie=c.Df.withName("PKOBPFxRatesCard").create(()=>({container:{border:"1px solid ".concat(h.Ay.palette.secondary.borders),borderRadius:"16px",padding:"32px 31px 15px 31px",backgroundColor:"#fff",fontFamily:h.Ay.typography.fontFamily,color:h.Ay.palette.text.primary,width:"calc(33.3333333333333% - 20px)",[h.Ay.breakpoints.down("md")]:{width:"calc(50% - 8px)"},[h.Ay.breakpoints.down("sm")]:{width:"100%",padding:"24px 15px 3px 15px"}},container__isRatesWithMoney:{[h.Ay.breakpoints.down("sm")]:{padding:"20px 15px 3px 15px"}},container__isSingleCard:{width:"100%"},container__isMiniCard:{padding:"28px 31px 15px 31px",[h.Ay.breakpoints.down("sm")]:{padding:"24px 15px 3px 15px"}},header:{display:"flex",alignItems:"center",marginBottom:"16px"},header__withChart:{marginBottom:"12px"},header__isHideCurrencyCode:{marginBottom:"4px",minHeight:"32px",[h.Ay.breakpoints.down("sm")]:{minHeight:"unset",maxHeight:"23px",marginBottom:"0px"}},header__isMiniCard:{marginBottom:"19px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"16px"}},country:{fontSize:"18px",lineHeight:"24px",fontWeight:600,position:"relative",top:"1px",[h.Ay.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px"}},tooltipWrapper:{marginLeft:"8px",position:"relative",top:"-1px"},currency:{marginBottom:"8px",fontSize:"16px",lineHeight:"20px",fontWeight:300,[h.Ay.breakpoints.down("sm")]:{marginBottom:"0"}},table:{width:"100%",borderCollapse:"collapse",fontWeight:300,"& th":{textAlign:"right",fontSize:"14px",lineHeight:"20px",fontWeight:300,padding:"16px 0 15px 0"},"& tbody tr":{borderTop:"1px solid ".concat(h.Ay.palette.secondary.borders)},"& td":{padding:"16px 0",fontSize:"16px",lineHeight:"20px"},"& td:last-of-type, & th:last-of-type":{width:"99px",[h.Ay.breakpoints.down("lg")]:{width:"79px"}}},table__isTable4Col:{"& td:nth-child(3), & th:nth-child(3)":{width:"88px",[h.Ay.breakpoints.down("lg")]:{width:"auto"}},"& td:last-of-type, & th:last-of-type":{width:"81px",[h.Ay.breakpoints.down("lg")]:{width:"auto"}}},table__isSingleCard:{"& td:last-of-type, & th:last-of-type":{width:"142px",[h.Ay.breakpoints.down("lg")]:{width:"auto"}}},table__isTableWithoutHeaders:{marginTop:"12px","& tbody > tr:first-of-type":{border:"none"}},value:{textAlign:"right"},value__isUp:{color:h.Ay.palette.success.main},value__isDown:{color:h.Ay.palette.error.main},openChartBtn:{...h.cc,width:"32px",height:"32px",marginLeft:"auto","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},"& svg":{width:"32px",height:"32px",fill:h.Ay.palette.primary.main}}})),it=e=>{let{currency_code:t,country:a,buy_foreign_change:i,fixing_rate:l,sale_foreign_change:r,avg_foreign:o,currency_unit:s,buy:d,sale:c,buy_foreign:p,sale_foreign:u,buy_foreign_trend:m,sale_foreign_trend:h,spread_percent:x,spread_pln:g,lang:y="pl",tableCountry:b,handleChartBtnClick:v,type:w="rates",isSingleCard:A,hideCurrencyCode:_,tooltip:j,markup:k}=e,{classes:C}=ie(),N=e=>0===Number(e)?"nd.":e,S=(e,t)=>(0,n.jsxs)("td",{className:C.value,children:[(0,n.jsxs)(es.A,{children:[n9(y,"value")," ",e]}),t]}),T=(e,t)=>
1e?(0,n.jsxs)("td",{"aria-label":"spadek o ".concat(e),className:f()(C.value,{[C.value__isUp]:"up"===t,[C.value__isDown]:"down"===t}),children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:(e=>"up"===e?n9(y,"trendUp"):"down"===e?n9(y,"trendDown"):n9(y,"noTrendChange"))(t)})}),e]}):null,z=A?"div":"li";return(0,n.jsxs)(z,{className:f()(C.container,{[C.container__isSingleCard]:A,[C.container__isMiniCard]:"dcc"===w,[C.container__isRatesWithMoney]:"ratesWithMoney"===w}),"data-cy":"".concat("FxRatesCard","--").concat(a),children:[(0,n.jsxs)("div",{className:f()(C.header,{[C.header__isHideCurrencyCode]:_,[C.header__withChart]:!!v,[C.header__isMiniCard]:"dcc"===w}),children:[(0,n.jsx)(n5.A,{currency:n8(t)}),(0,n.jsx)("span",{className:C.country,children:n8(a)}),j&&(0,n.jsx)("div",{className:C.tooltipWrapper,children:j}),v&&(0,n.jsx)("button",{onClick:()=>v(n8(t)),className:C.openChartBtn,"aria-label":"".concat(n9(y,"chartBtnAria")," ").concat(n8(t)),children:(0,n.jsx)(eK,{})})]}),!_&&(0,n.jsx)("div",{className:C.currency,children:t&&(0,n.jsxs)("span",{children:[s||1," ",n8(t),".\xa0",l&&(0,n.jsxs)("span",{children:["cz"===b?n9(y,"cnbRate"):n9(y,"referenceRate"),": ",l]}),o&&(0,n.jsxs)("span",{children:[n9(y,"averageForeign"),": ",o]})]})}),(0,n.jsxs)("table",{className:f()(C.table,{[C.table__isTable4Col]:"ratesWithMoney"===w,[C.table__isTableWithoutHeaders]:"cantor"===w,[C.table__isSingleCard]:A}),children:[(0,n.jsx)(es.A,{children:(0,n.jsxs)("caption",{children:[n9(y,"tableCaption")," ",a]})}),(0,n.jsx)("thead",{"aria-hidden":!0,children:(()=>{let e=e=>(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:e})});switch(w){case"rates":case"ratesWithMoney":return(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:e(n9(y,"operationType"))}),(0,n.jsx)("th",{children:n9(y,"foreignExchange")}),"ratesWithMoney"===w&&(0,n.jsx)("th",{children:n9(y,"money")}),(r||i)&&(0,n.jsx)("th",{children:n9(y,"change")})]});case"spreads":return(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:e(n9(y,"valueType"))}),(0,n.jsx)("th",{children:n9(y,"foreignSpread")})]});case"cantor":return null}})()}),(0,n.jsx)("tbody",{children:(()=>{switch(w){case"rates":case"ratesWithMoney":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:n9(y,"buy")}),S(n9(y,"foreignExchange"),N(p)),"ratesWithMoney"===w&&S(n9(y,"money"),N(d)),T(i,m)]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:n9(y,"sell")}),S(n9(y,"foreignExchange"),N(u)),"ratesWithMoney"===w&&S(n9(y,"money"),N(c)),T(r,h)]})]});case"spreads":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:n9(y,"percent")}),x&&S(n9(y,"foreignSpread"),x)]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:"PLN"}),g&&S(n9(y,"foreignSpread"),g)]})]});case"dcc":return(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:n9(y,"markup")}),k&&S(n9(y,"markup"),"".concat(k,"%"))]});case"cantor":return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:n9(y,"buy")}),S(n9(y,"money"),N(p))]}),(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{scope:"row",children:n9(y,"sell")}),S(n9(y,"money"),N(u))]})]})}})()})]})]})};var ia=a(90617);let ii="FxratesDownloadFile",il=c.Df.withName("PKOBPFxratesDownloadFile").create(()=>({container:{margin:"112px auto 0 auto",maxWidth:"810px",textAlign:"center",[h.Ay.breakpoints.down("sm")]:{marginTop:"96px"}},header:{[h.Ay.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"15px"}},button:{...h.cc,color:h.Ay.palette.text.primary,marginTop:"40px",display:"flex",alignItems:"start",justifyContent:"center",marginLeft:"-2px","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("sm")]:{marginLeft:"-1px",marginTop:"0"}},iconContainer:{position:"relative",width:"48px",height:"48px",marginRight:"12px",alignSelf:"flex-start",[h.Ay.breakpoints.down("sm")]:{marginRight:"13px"},"& img":{width:"100%",height:"48px !important"}},extension:{position:"absolute",top:"20px",left:"15px !important",color:h.Ay.palette.primary.main,fontWeight:900,fontSize:"10px",lineHeight:"1.5 !important"},title:{width:"100%",maxWidth:"calc(100% - 48px - 12px)",marginTop:"15p
1x",marginBottom:0,paddingLeft:"1px",fontSize:"16px",lineHeight:"20px",[h.Ay.breakpoints.down("sm")]:{fontSize:"14px",marginTop:"18px"}}})),ir=e=>{let{tableId:t,country:a,datetime:i,tableNumber:l,lang:r="pl",type:o="foreign"}=e,{classes:s}=il(),d=(0,w.A)(h.Ay.breakpoints.down("md")),c=(0,en.A)(),p={foreign:c.apiModulesFxratesForeignGenerateXlsxList,transactions:c.apiModulesFxratesMainGenerateXlsxList,credits:c.apiModulesFxratesCreditGenerateXlsxList},u=ia.c9.fromISO(i),m=u.toFormat("yyyy-MM-dd HH:mm"),x=u.toFormat("dd.MM.yyyy"),g=u.toFormat("HH:mm"),y=async()=>{try{if(!(null==p?void 0:p[o]))throw Error("Wrong api endpoint");let e=await p[o]({"table-id":String(t),datetime:m,..."foreign"===o?{lang:r,country:a}:{},..."foreign"===o?{"table-number-zorba":l}:{"table-number":l}},{format:"blob"});if(!e.ok||!(null==e?void 0:e.data))throw Error("Failed to download file");let n=null==e?void 0:e.data,i=window.URL.createObjectURL(n),s=document.createElement("a");s.href=i;let d=e.headers.get("Content-Disposition"),c=null==d?void 0:d.match(/filename\*=UTF-8''([^;]+)/);s.download=(null==c?void 0:c[1])?decodeURIComponent(c[1]):"Kursy walut ".concat(m.replace(":","_"),".xlsx"),document.body.appendChild(s),s.click(),s.remove(),window.URL.revokeObjectURL(i)}catch(e){console.error("Download error:",e)}};return(0,n.jsxs)("div",{className:s.container,"data-cy":ii,children:[(0,n.jsx)(_.A,{variant:"h3",className:s.header,children:n9(r,"downloadFileHeader")}),(0,n.jsxs)("button",{className:s.button,onClick:y,"data-cy":"".concat(ii,"--btn"),children:[(0,n.jsxs)(ew.A,{className:s.iconContainer,children:[(0,n.jsx)("span",{className:s.extension,style:{left:10},"data-cy":"".concat(ii,"--extension"),"aria-hidden":!0,children:"XLS"}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]}),(0,n.jsxs)(_.A,{variant:"body1",className:s.title,cy:"".concat(ii,"--title"),children:[n9(r,"downloadFile")," ",!d&&(0,n.jsx)("br",{})," ",x,",","pl"===r?" godz.":""," ",g]})]})]})};var io=a(76319),is=a(18662),id=a(80824),ic=a(90033);let ip=e=>{let{apiDateGapFn:t,country:a}=e,[n,i]=(0,d.useState)(null),[l,r]=(0,d.useState)([]),[o,s]=(0,d.useState)(null),[c,p]=(0,d.useState)(null),[u,m]=(0,d.useState)(null),h=async()=>{try{var e,n;if(!t)return;i(!0);let l=a?await t({country:a}):await t({format:"json"});if(!l.ok)throw Error("Network response was not ok");let o=new Date(null==l||null==(e=l.data)?void 0:e.min_table),d=((null==l||null==(n=l.data)?void 0:n.days)||[]).map(e=>(0,I.A)(e)),c=new Date;for(;d.some(e=>(0,aT.A)(e,c));)c=(0,ic.A)(c,1);r(d||[]),s(c),m(c),p((0,a4.A)(o)?(0,ic.A)(o,1):null)}catch(e){console.error("Fetch error:",e)}finally{i(!1)}};return{isLoading:n,disabledDates:l,selectedDate:o,setDisabledDates:r,setSelectedDate:s,fetchDateGapData:h,minDate:c,lastAvailableDate:u}},iu=c.Df.withName("PKOBPFxratesDatePicker").create(()=>({datepickerContainer:{display:"inline-flex",flexDirection:"column",marginRight:"30px",width:"180px",".text-spacing-detected &":{width:"auto"},[h.Ay.breakpoints.down("sm")]:{width:"100%",marginBottom:"2px",marginRight:"0px"}},datepicker:{...aF.Z_,[h.Ay.breakpoints.down("md")]:{"& .MuiDatePickerToolbar-root":{display:"none"}}},datepickerInput:{...aF.Rj,"& .MuiOutlinedInput-root":{paddingRight:"12px",borderRadius:"8px",[h.Ay.breakpoints.down("sm")]:{paddingRight:"9px"}},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark},"& .MuiFormHelperText-root":{marginLeft:"8px"}},selectLabel:{"&&":{position:"relative",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.text.primary,transform:"none",marginBottom:"4px"}}})),im=e=>{var t,a;let{cy:i="FxratesDatePicker",lang:l="pl",minDate:r,handleChangeDate:o,setActiveHourTable:s,selectedDate:c,setSelectedDate:p,disabledDates:u}=e,{classes:m}=iu(),[x,g]=(0,d.useState)(""),y=(0,w.A)(h.Ay.breakpoints.down("md")),b=null!=(t=aB.E[l])?t:aB.E.en,f=null!=(a=aB.U[l])?a:aB.U.en,v=e=>{if(!(0,aN.vd)(e)||_(e))return void g(n9(l,"wrongDate"));s&&s(null),p(e),g("")},A=(0,d.useMemo)(()=>(0,az.s)(1e3,v),[v]),_=e=>{let t=new Date;return(0,E.A)(e,r)||u.some(t=>(0,aT.A)(t,e))||(0,P.A)(e,t)};return(0,d.useEffect)(()=>{o(c)},[c,l]),(0,n.jsx)("div",{className:m.datepickerContainer,children:(0,n.jsxs)(aP.$,{adapter
1Locale:b,dateAdapter:aO.M,localeText:f.components.MuiLocalizationProvider.defaultProps.localeText,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(i,"--datepicker"),variant:"standard",className:m.selectLabel,children:n9(l,"day")}),(0,n.jsx)(aI.l,{label:"",value:c,onChange:(e,t)=>{void 0!==t&&A(e)},onAccept:e=>{v(e)},renderDay:(e,t,a)=>(0,n.jsx)(aE.a,{...a,onClick:t=>{t.preventDefault(),t.stopPropagation(),c&&(0,aT.A)(e,c)&&v(null)}}),disableFuture:!0,disablePast:!1,minDate:r,maxDate:new Date,inputFormat:aN.ih,mask:aN.dz,showDaysOutsideCurrentMonth:!0,closeOnSelect:!0,reduceAnimations:!0,components:{OpenPickerIcon:aS.A},shouldDisableDate:_,desktopModeMediaQuery:h.Ay.breakpoints.up("md"),onOpen:()=>{setTimeout(()=>{let e=document.querySelector(".MuiCalendarPicker-root button");e&&e.focus()},200)},PaperProps:{className:m.datepicker,onKeyDown:e=>{"Escape"===e.key&&v(null)}},DialogProps:{className:m.datepicker},renderInput:e=>(0,n.jsx)($.A,{...e,id:"".concat(i,"--datepicker"),className:m.datepickerInput,error:!!x,helperText:x||"","data-cy":i+"--date-picker",name:i+"--date-picker",FormHelperTextProps:{id:"".concat(i,"--datepicker-error")},inputProps:{...e.inputProps,placeholder:"DD-MM-RRRR","aria-label":"".concat(n9(l,"ariaLabelDatePicker")," DD-MM-RRRR"),"aria-describedby":x?"".concat(i,"--datepicker-error"):void 0,"aria-invalid":!!x},...y&&{InputProps:{endAdornment:(0,n.jsx)(et.A,{position:"end",children:(0,n.jsx)(aS.A,{})})}}})})]})})},ih=c.Df.withName("PKOBPFxratesFilters").create(()=>({wrapper:{marginBottom:"48px"},wrapper__isFxratesFull:{marginBottom:"59px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"40px"}},wrapper__isTableName:{[h.Ay.breakpoints.down("sm")]:{marginBottom:"15px"}},container:{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",minHeight:"75px",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column",alignItems:"start"}},datetimeContainer:{margin:"0",padding:"0",border:"none",[h.Ay.breakpoints.down("sm")]:{width:"100%"},"& > legend":{...es.$}},time:{display:"inline-flex",alignItems:"center",justifyContent:"space-between",flexDirection:"row",flexWrap:"nowrap",gap:"30px",[h.Ay.breakpoints.down("md")]:{gap:"16px",marginTop:"20px"},[h.Ay.breakpoints.down("sm")]:{width:"100%"},"& > .MuiFormControl-root":{[h.Ay.breakpoints.down("sm")]:{width:"100%"}}},selectLabel:{"&&":{position:"relative",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.text.primary,transform:"none",marginBottom:"4px"}},select:{height:"48px",minWidth:"104px",".text-spacing-detected &":{height:"auto"},".text-spacing-detected & *":{lineHeight:"1.5 !important"},[h.Ay.breakpoints.down("sm")]:{width:"100%"},"& select":{zIndex:"1",paddingLeft:"13px",paddingTop:"14px",fontSize:"16px"},"& .MuiSelect-select":{color:h.Ay.palette.grey[700],WebkitTextFillColor:"unset"},"&.Mui-disabled":{backgroundColor:h.Ay.palette.secondary.backgroundDisabled,borderRadius:"8px","& svg":{fill:h.Ay.palette.grey[400]}},"& svg":{display:"inline-block",width:"18px",height:"18px",position:"absolute",right:11,top:14,strokeWidth:"0.5px",fill:h.Ay.palette.primary.main,[h.Ay.breakpoints.down("sm")]:{top:"50%",right:"18px",transform:"translateY(-50%)",color:h.Ay.palette.primary.main}},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,borderRadius:"8px",transition:"border 0.2s ease-in-out","& > legend":{width:"0px"}}},tableName:{fontSize:"18px",lineHeight:"24px",color:h.Ay.palette.text.primary,fontWeight:300,position:"relative",top:14,[h.Ay.breakpoints.down("sm")]:{top:0,fontSize:"16px",lineHeight:"20px",marginTop:40}},archiveInfo:{color:h.Ay.palette.error.main,marginTop:"16px",marginLeft:"2px"}})),ix=e=>{let{tableData:t,handleChangeDate:a,lang:i="pl",cy:l="FxratesFilters",isFxratesFull:r=!1,activeHourTable:o,setActiveHourTable:s,showTableName:c=!0,showArchiveInfo:p=!1,apiFn:u,country:m}=e,{classes:h}=ih(),{isLoading:x,setSelectedDate:g,selectedDate:y,disabledDates:b,fetchDateGapData:v,minDate:w,lastAvailableDate:A}=ip({apiDateGapFn:u,country:m});return(0,d.useEffect)(()=>{v()},[i]),(0,n.jsxs)("div",{className:f()(h.wrapper,{[h.wrapper__isFxratesFull]:r,[h.wrapper__isTableName]:c&&(null==o?void 0:o.id)}),children:[(0,n.jsxs)("div",{className:h.container,"data-cy":l,children:[(0,n.jsx)(eo.Ay,{isLoading:x,withOverlay:!0,size:eo.iW.MD}),(0,n.jsxs)("fieldset",{className:h.datetimeContainer,children:[(0,n.jsx)("legend",{children:n9(i,"dateTimeLegend")}),(0,n.jsx)(im,{cy:l,minDate:w,handleChangeDate:a,lang:i,selectedDate:y,setSelectedDate:g,disabledDates:b}),(null==o?void 0:o.id)&&(0,n.jsx)(is.A,{className:h.time,children:(0,n.jsxs)(id.A,{children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(l,"--timeSelect"),variant:"standard",className:h.selectLabel,children:n9(i,"hour")}),(0,n.jsx)(J.A,{className:h.select,name:"selectedTime",value:null==o?void 0:o.id,onChange:e=>{let a=null==t?void 0:t.filter(t=>{var a;return(null==t?void 0:t.id)==(null==e||null==(a=e.target)?void 0:a.value)});s((null==a?void 0:a.length)?a[0]:null)},displayEmpty:!0,IconComponent:io.t,id:"".concat(l,"--timeSelect"),label:"",inputProps:{"aria-label":n9(i,"ariaLabelTimeSelect")},disabled:(null==t?void 0:t.length)<=1,children:null==t?void 0:t.map(e=>{let{id:t,hour:a}=e;return(0,n.jsx)(Q.A,{value:t,children:a},t)})})]})})]}),c&&(null==o?void 0:o.id)&&(0,n.jsxs)("span",{className:h.tableName,"aria-live":"polite",children:[n9(i,"table")," ",(null==o?void 0:o.table_number_zorba)||(null==o?void 0:o.table_number)]})]}),A&&y&&r&&!(0,aT.A)(A,y)&&p&&!x&&(0,n.jsx)("div",{className:h.archiveInfo,children:"Archiwalne kursy walut"})]})},ig="FxratesShowMoreBtn",iy=c.Df.withName("PKOBPFxratesShowMoreBtn").create(()=>({btnWrapper:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:"48px",[h.Ay.breakpoints.down("sm")]:{marginTop:"32px"}}
1,btn:{margin:"0",[h.Ay.breakpoints.down("sm")]:{width:"100%"}}})),ib=e=>{let{allItemsCount:t,visibleCount:a,allItemsLoaded:i,handleToggleItems:l,lang:r}=e,{classes:o}=iy();return(0,n.jsx)("div",{className:o.btnWrapper,"data-cy":ig,children:(0,n.jsx)(A.default,{onClickCallback:l,className:o.btn,variant:"secondary",type:"button",renderAsButton:!0,ariaLabel:i?n9(r,"collapseAriaLabel"):"".concat(n9(r,"showMoreAriaLabel")," ").concat(a,"/").concat(t),cy:ig,children:i?n9(r,"collapse"):n9(r,"showMore")})})},iv="Fxrates",iw={padding:"0",margin:"0",listStyle:"none",display:"flex",gap:"30px",flexWrap:"wrap",position:"relative",[h.Ay.breakpoints.down("md")]:{gap:"16px"}},iA=c.Df.withName("PKOBPFxrates").create(()=>({cardsList:{...iw},tableExtraText:{fontWeight:300,marginTop:"110px",marginBottom:"0"}})),i_=e=>{let{country:t}=e,{classes:a}=iA(),i=(0,en.A)(),l=(0,d.useContext)(U.G),r=(0,d.useContext)(d_),o=(0,nL.v)(null==r?void 0:r.language),[s,c]=(0,d.useState)(!1),[p,u]=(0,d.useState)(null),[m,h]=(0,d.useState)([]),[x,g]=(0,d.useState)(6),[y,b]=(0,d.useState)(null),f=async e=>{try{var t,a;c(!0);let n=await i.apiModulesFxratesForeignTableList(e);if(!n.ok)throw Error("Network response was not ok");u(null==n?void 0:n.data),b((null==n||null==(a=n.data)?void 0:a[(null==n||null==(t=n.data)?void 0:t.length)-1])||null)}catch(e){console.error("Fetch error:",e),u(null),h([])}finally{c(!1)}},v=async e=>{try{if(!e)throw Error("Table id is not available");c(!0);let t=await i.apiModulesFxratesForeignRatesList({"table-id":String(e),lang:o});if(!t.ok)throw Error("Network response was not ok");h(null==t?void 0:t.data)}catch(e){console.error("Fetch error:",e),h([])}finally{c(!1)}},w=m.slice(0,x),A=x>=m.length;return(0,d.useEffect)(()=>{(null==y?void 0:y.id)?(console.log(o,"lang"),v(null==y?void 0:y.id)):h([])},[null==y?void 0:y.id,o]),(0,n.jsxs)(ew.A,{id:l,className:a.container,"data-cy":iv,children:[(0,n.jsx)(ix,{cy:iv+"--filter",tableData:p,handleChangeDate:e=>{e&&t&&f({date:(0,a8.A)(e,"yyyy-MM-dd"),country:t})},lang:o,activeHourTable:y,setActiveHourTable:b,apiFn:i.apiModulesFxratesForeignDateGapList,country:t}),(0,n.jsxs)("div",{children:[(0,n.jsx)(eo.Ay,{isLoading:s,withOverlay:!0,size:eo.iW.MD}),!(null==w?void 0:w.length)&&!1===s&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(o,"noEntries")}),(0,n.jsx)(es.A,{children:(0,n.jsxs)("p",{"aria-live":"polite",children:["Wyświetlono ",A?m.length:x," z ",m.length," kurs\xf3w"]})}),(0,n.jsx)("ul",{className:a.cardsList,"aria-live":"polite",children:w.map(e=>(0,n.jsx)(it,{...e,country:function(e){return 3===e.length||4===e.length?e:e.includes(".")?e.split(".").map(e=>0===e.length?e:e[0]+e.slice(1).toLowerCase()).join("."):e[0]+e.slice(1).toLowerCase()}(e.country),lang:o,tableCountry:t},e.currency_code))})]}),!!(null==w?void 0:w.length)&&(0,n.jsx)(ib,{visibleCount:x,allItemsLoaded:A,allItemsCount:null==m?void 0:m.length,handleToggleItems:()=>{g(e=>A?6:e+6)},lang:o}),!!(null==y?void 0:y.id)&&!s&&(0,n.jsx)(ir,{tableId:null==y?void 0:y.id,tableNumber:null==y?void 0:y.table_number,datetime:null==y?void 0:y.table_date,country:t,lang:o,type:"foreign"}),!!(null==y?void 0:y.id)&&!s&&"cz"===t&&(0,n.jsx)("div",{className:a.tableExtraText,"data-cy":"".concat(iv,"--extra_description"),children:(0,n.jsx)("p",{children:n9(o,"tableExtraText")})})]})};var ij=a(61265);let ik="FxratesCantor",iC=c.Df.withName("PKOBPFxratesCantor").create(()=>({container:{},title:{textAlign:"center",[h.Ay.breakpoints.down("md")]:{marginBottom:"32px"}},dateWrapper:{display:"flex",alignItems:"center",justifyContent:"flex-start",marginBottom:"24px",[h.Ay.breakpoints.down("md")]:{marginBottom:"8px"},"& svg":{width:"24px !important",height:"24px !important"},"& p":{lineHeight:"1"}},date:{fontWeight:400,marginRight:"4px",[h.Ay.breakpoints.down("md")]:{fontWeight:300,fontSize:"16px"}},ratesWrapper:{position:"relative"},cardsList:{...iw}})),iN=e=>{let{title:t,tooltip:a}=e,{classes:i}=iC(),l=(0,d.useContext)(U.G),r=(0,d.useContext)(d_),o=(0,nL.v)(null==r?void 0:r.language),{rates:s,ratesDate:c,isLoading:p,visibleRates:u,allItemsLoaded:m,visibleCount:h,handleToggleItems:x}=(()=>{let[e,t]=(0,d.useState)(null),[a,n]=(0,d.useState)(null),[i,l]=(0,d.useState)([]),[r,o]=(0,d.useState)(6),s=r>=(null==i?void 0:i.length),c=i.slice(0,r),p=(0,en.A)(),u=async()=>{try{t(!0);let e=await p.apiModulesFxratesCantorList();if(!e.ok)throw Error("No rates data");let a=null==e?void 0:e.data;l(null==a?void 0:a.rates),n(null==a?void 0:a.date)}catch(e){console.error("fetchRatesData error:",e),l([]),n(null)}finally{t(!1)}};return(0,d.useEffect)(()=>{u()},[]),{isLoading:e,rates:i,ratesDate:a,visibleRates:c,visibleCount:r,allItemsLoaded:s,handleToggleItems:()=>{o(e=>s?6:e+6)},fetchRatesData:u}})();return(0,n.jsxs)(ew.A,{id:l,className:i.container,"data-cy":ik,children:[t&&(0,n.jsx)(_.A,{variant:(0,ei.a)(null==t?void 0:t.hx),className:i.title,children:null==t?void 0:t.text}),(0,n.jsxs)(ew.A,{className:i.ratesWrapper,children:[(0,n.jsx)(eo.Ay,{isLoading:p,withOverlay:!0,size:eo.iW.MD}),c&&(0,aN.vd)(new Date(c))&&(0,n.jsxs)(ew.A,{className:i.dateWrapper,children:[(0,n.jsxs)(_.A,{variant:"body1",className:i.date,marginTop:0,marginBottom:0,children:[n9(o,"exchangeRatesForDate")," ",(0,a8.A)(new Date(c),"dd.MM.yyyy HH:mm")]}),!!a&&(0,n.jsx)(ij.default,{symbol:"?",text:a,$_ID:"".concat(ik,"-tooltip--date")})]}),!(null==u?void 0:u.length)&&!1===p&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(o,"noEntries")}),(0,n.jsx)(es.A,{children:(0,n.jsxs)("p",{"aria-live":"polite",children:[n9(o,"numberOfShown")," ",m?s.length:h]})}),(0,n.jsx)("ul",{className:i.cardsList,"aria-live":"polite",children:u.map((e,t)=>{let a=((null==e?void 0:e.currency_pair)||"").slice(0,-3);return(0,n.jsx)(it,{lang:o,type:"cantor",currency_code:a,hideCurrencyCode:!0,country:a,buy_foreign:(null==e?void 0:e.ask_price)&&(0,n2.tJ)(Number(null==e?void 0:e.ask_price),{precision:4}
1)||"",sale_foreign:(null==e?void 0:e.bid_price)&&(0,n2.tJ)(Number(null==e?void 0:e.bid_price),{precision:4})||"",tooltip:"HUF"===a?(0,n.jsx)(ij.default,{symbol:"?",text:n9(o,"hufTooltip"),$_ID:"".concat(ik,"-tooltip--").concat(e.currency_pair)}):null},e.currency_pair+t)})}),(null==s?void 0:s.length)>6&&(0,n.jsx)(ib,{visibleCount:h,allItemsLoaded:m,allItemsCount:null==s?void 0:s.length,handleToggleItems:x,lang:o})]})]})};var iS=a(74684),iT=a(52597),iz=a(16752);let iL=c.Df.withName("PKOBPFxratesFullPills").create(()=>({container:{display:"flex",columnGap:"7px",rowGap:"5px",margin:"34px auto 41px auto",flexWrap:"wrap",justifyContent:"start",[h.Ay.breakpoints.down("sm")]:{margin:"17px 0"}},pill:{padding:"13px 21px 13px 20px",letterSpacing:"-0.1px",marginBottom:"0px"}})),iP=e=>{let{pills:t,activeView:a,setActiveView:i,cy:l,ariaPrefix:r}=e,{classes:o}=iL(),s=(0,w.A)(h.Ay.breakpoints.down("md")),[c,p]=(0,d.useState)(!1),[u,m]=(0,d.useState)(!1),x=(0,d.useRef)(),g=u||t.length<=6?t:t.slice(0,5),y=t.length-5;(0,d.useEffect)(()=>{if((null==x?void 0:x.current)&&c){let e=f(a),t=x.current.querySelectorAll("button[role=tab]");t[e]&&t[e].focus()}},[c,a]);let b=e=>{let t=f(a);"ArrowLeft"===e.key?t>0&&(i(v(t-1)),p(!0)):"ArrowRight"===e.key&&t<g.length-1&&(i(v(t+1)),p(!0))},f=e=>null==t?void 0:t.findIndex(t=>t.key===e),v=e=>t[e].key;return(0,n.jsx)(ew.A,{className:o.container,role:"tablist","aria-labelledby":"".concat(r,"-title"),ref:x,children:s?(0,n.jsx)(iz.A,{cy:l,activeFilter:a,filters:t,setActiveFilter:i}):(0,n.jsxs)(n.Fragment,{children:[g.map(e=>{let{key:t,filter_name:s}=e;return(0,n.jsxs)(d.Fragment,{children:[(0,n.jsx)(iT.A,{classname:o.pill,label:s,isActive:t===a,cy:l,handleClickCallback:()=>i(t),id:(0,tI.bJ)(r,"button",t),role:"tab",ariaSelected:t===a,ariaControls:(0,tI.bJ)(r,"tabpanel",t),tabIndex:t===a?0:-1,onKeyDown:b}),(0,n.jsx)(es.A,{children:(0,n.jsx)("h2",{children:s})})]},t)}),!u&&t.length>6&&(0,n.jsx)(iT.A,{classname:o.pill,label:"+".concat(y," więcej"),isActive:!1,cy:"".concat(l,"-more"),handleClickCallback:()=>m(!0),id:(0,tI.bJ)(r,"button","more"),tabIndex:0,onKeyDown:e=>{if(null==x?void 0:x.current){let t=x.current.querySelectorAll("button[role=tab]");("Enter"===e.key||" "===e.key)&&t[4]&&(t[4].focus(),m(!0))}}},"more")]})})};var iI=function(e){return e.TRANSACTIONS="transactions",e.CREDITS="credits",e.CHF_SPREADS="chf_spreads",e.SPREADS="spreads",e.INTERBANK_RATES="interbank_rates",e.IRS="irs",e.BASE_RATE="base_rate",e.SETTLEMENT_RATES="settlement_rates",e.CARD_MARGINS="card_margins",e.DCC_MARGINS="dcc_margins",e.INTERCHANGE_FEES="interchange_fees",e.CANTOR="cantor",e}({});let iE=[{filter_name:"Tabela kurs\xf3w - transakcje",key:"transactions"},{filter_name:"Kantor - kursy",key:"cantor"},{filter_name:"Tabela kurs\xf3w - kredyty",key:"credits"},{filter_name:"Kursy / Spready CHF dla kredyt\xf3w mieszk.",key:"chf_spreads"},{filter_name:"Spready",key:"spreads"},{filter_name:"Stawki międzybankowe",key:"interbank_rates"},{filter_name:"IRS",key:"irs"},{filter_name:"Stała stopa bazowa",key:"base_rate"},{filter_name:"Kursy rozliczeniowe",key:"settlement_rates"},{filter_name:"Marże - karty",key:"card_margins"},{filter_name:"Marże - DCC",key:"dcc_margins"},{filter_name:"Opłaty interchange",key:"interchange_fees"}],iO=e=>{switch(e){case"AUD":case"CAD":case"JPY":return"Dla walut AUD, CAD, JPY Bank prowadzi<br />obsługę got\xf3wkową w wybranych oddziałach";case"NOK":case"SEK":case"CZK":case"DKK":case"HUF":return"Dla walut NOK, SEK, CZK, DKK i HUF<br />Bank prowadziwyłącznie obsługę bezgot\xf3wkową";default:return null}},iB={on:"O\\N",tn:"T\\N",w1:"1-tydz.",w2:"2-tyg.",m1:"1-mc",m2:"2-mc",m3:"3-mc",m6:"6-mc",m9:"9-mc",m12:"12-mc"},iF=[{key:"on",label:"POLSTR"},{key:"m1",label:"POLSTR 1M Stopa Składana"},{key:"m3",label:"POLSTR 3M Stopa Składana"},{key:"m6",label:"POLSTR 6M Stopa Składana"}],iD=c.Df.withName("PKOBPFxratesContentSection").create(()=>({content:{maxWidth:"810px",marginBottom:"40px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"24px",marginTop:"40px"}},content__isOlnyDescription:{marginBottom:"24px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"14px"}},header:{fontSize:"24px",lineHeight:"32px",margin:"0",padding:"0",marginBottom:"16
1px",[h.Ay.breakpoints.down("sm")]:{fontSize:"20px",lineHeight:"24px"}},extraDescription:{fontWeight:300,[h.Ay.breakpoints.down("sm")]:{lineHeight:"20px"},"& p":{marginBottom:"24px",[h.Ay.breakpoints.down("sm")]:{marginTop:"12px",marginBottom:"0px"}}}})),iR=e=>{let{headerTitle:t,extraDescription:a,cy:i}=e,{classes:l}=iD();return t||a?(0,n.jsxs)("div",{className:f()(l.content,{[l.content__isOlnyDescription]:!t}),children:[!!t&&(0,n.jsx)(_.A,{className:l.header,variant:"h3",dangerouslySetInnerHTML:{__html:t},"data-cy":"".concat(i||"FxratesContentSection","--title")}),a&&(0,n.jsx)(tk.default,{className:l.extraDescription,content:a,"data-cy":"".concat(i||"FxratesContentSection","--extra_description")})]}):null},iM=c.Df.withName("PKOBPFxratesFullTabSelector").create(()=>({buttons:{background:h.Ay.palette.secondary.backgroundGrey,borderRadius:"10px",display:"flex",justifyContent:"center",padding:"6px",gap:"4px",[h.Ay.breakpoints.down("sm")]:{padding:"6px 6px 7px 6px"}},btn:{...h.cc,width:"50%",textAlign:"center",minHeight:"40px",color:h.Ay.palette.text.primary,border:"1px solid transparent",position:"relative","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{fontSize:"16px",lineHeight:"20px"}},btn__withArrows:{"&::after":{display:"none",position:"absolute",content:'""',width:0,height:0,borderStyle:"solid",borderColor:"inherit",left:"50%",bottom:0,transform:"translate(-50%, 8px)",borderWidth:"8px 8px 0 8px",borderTopColor:h.Ay.palette.common.white,borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"}},btn__isActive:{background:"#fff",borderRadius:"8px",border:"1px solid ".concat(h.Ay.palette.secondary.borders),boxShadow:"0px 12px 20px #0000661A",color:h.Ay.palette.primary.main,"&$btn__withArrows::after":{display:"block"}}})),iH=e=>{let{options:t,activeKey:a,isLoading:i,onTabChange:l,withArrows:r,forceFocusAfterRerender:o}=e,{classes:s}=iM(),c=(0,d.useRef)([]),p=(0,d.useCallback)((e,a)=>{let n="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0,i=(a+n+t.length)%t.length;if(0!==n){var r;e.preventDefault(),null==(r=c.current[i])||r.focus()}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l(t[a].key),o&&setTimeout(()=>{var e;null==(e=c.current[a])||e.focus()},1e3))},[t,l]);return(0,n.jsx)("div",{className:null==s?void 0:s.buttons,role:"tablist","data-cy":"TabSelector",children:t.map((e,t)=>(0,n.jsx)("button",{ref:e=>c.current[t]=e,role:"tab","aria-selected":a===e.key,"aria-label":e.ariaLabel,className:f()(null==s?void 0:s.btn,{[s.btn__isActive]:a===e.key,[s.btn__withArrows]:r}),onClick:()=>l(e.key),onKeyDown:e=>p(e,t),disabled:i,tabIndex:a===e.key?0:-1,children:e.label},e.key))})},iW="FxratesFullCardMarginsCalculator",iU=c.Df.withName("PKOBPFxratesFullCardMarginsCalculator").create(()=>({container:{maxWidth:"810px"},tabsWrapper:{maxWidth:"444px",margin:"0 auto 34px auto",[h.Ay.breakpoints.down("sm")]:{marginBottom:"20px","& > div":{padding:"4px"},"& button":{padding:"11px","&::after":{display:"none !important"}}},"& button:first-of-type":{width:"198px",[h.Ay.breakpoints.down("sm")]:{width:"50%"}},"& button:last-of-type":{width:"230px",[h.Ay.breakpoints.down("sm")]:{width:"50%"}}},mainBox:{display:"flex",gap:"30px",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column",gap:"27px"}},form:{width:"50%",display:"flex",alignItems:"start",justifyContent:"space-between",flexDirection:"column",paddingTop:"4px",[h.Ay.breakpoints.down("sm")]:{width:"100%",gap:"24px"}},selectLabel:{"&&":{position:"relative",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.text.primary,transform:"none",marginBottom:"4px","&.Mui-disabled":{color:h.Ay.palette.text.primary}}},selectPlaceholder:{color:h.Ay.palette.grey[700],fontWeight:300,[h.Ay.breakpoints.down("sm")]:{letterSpacing:"-0.8px"}},select:{height:"48px",maxWidth:"390px",".text-spacing-detected &":{height:"auto"},".text-spacing-detected & *":{lineHeight:"1.5 !important"},[h.Ay.breakpoints.down("sm")]:{width:"100%"},"&.Mui-disabled":{backgroundColor:h.Ay.palette.secondary.backgroundDisabled,borderRadius:"8px","& svg path":{fill:h.Ay.palette.grey[400],stroke:h.Ay.palette.grey[400]}},"& svg":{display:"inline-block",width:"24px",height:"24px",position:"absolute",right:7,top:12},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,borderRadius:"8px",transition:"border 0.2s ease-in-out"},"& .MuiSelect-select":{paddingLeft:"12px",WebkitTextFillColor:"unset"},"& > fieldset > legend":{width:"0px"}},result:{width:"50%",background:h.Ay.palette.secondary.backgroundGrey,borderRadius:"16px",minHeight:"268px",padding:"41px 31px 32px 33px",display:"flex",alignItems:"start",justifyContent:"center",flexDirection:"column",position:"relative",[h.Ay.breakpoints.down("sm")]:{width:"100%",minHeight:"auto",alignItems:"center",padding:"22px 16px 27px 16px"},"&::after":{display:"block",position:"absolute",content:'""',width:0,height:0,borderStyle:"solid",borderColor:"inherit",top:"50%",left:0,transform:"translate(-8px, -50%)",borderWidth:"8px 8px 8px 0",borderRightColor:h.Ay.palette.secondary.backgroundGrey,borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",[h.Ay.breakpoints.down("sm")]:{top:0,left:"50%",transform:"translate(-50%, -8px)",borderWidth:"0 8px 8px 8px",borderTopColor:"transparent",borderRightColor:"transparent",borderBottomColor:h.Ay.palette.secondary.backgroundGrey,borderLeftColor:"transparent"}}},resultText:{fontSize:"16px",lineHeight:"20px",fontWeight:400,marginBottom:"3px"},resultTextValue:{fontSize:"28px",lineHeight:"32px",fontWeight:600}})),iG=e=>{var t,a,i,l,r,o;let{cardMarginsData:s}=e,{classes:c}=iU(),p=null==s?void 0:s.map(e=>e.label),[u,m]=(0,d.useState)(void 0),[h,x]=(0,d.useState)(""),[g,y]=(0,d.useState)(""),[b,f]=(0,d.useState)(""),v=null==s?void 0:s.find(e=>e.label===u),w=null!=(l=null==v?void 0:v.types)?l:[],A=null==w?void 0:w.find(e=>e.label===h),_=null!=(r=null==A?void 0:A.names)?r:[],j=null==_?void 0:_.find(e=>e.label===g),k=null!=(o=null==j||null==(t=j.markups)?void 0:t.map(e=>e.currency))?o:[],C=null==j||null==(i=j.markups)||null==(a=i.find(e=>e.currency===b))?void 0:a.markup,N=null==p?void 0:p.map(e=>({key:e,label:e,ariaLabel:e}));return((0,d.useEffect)(()=>{!u&&p.length>0&&m(p[0])},[p,u]),null==s?void 0:s.length)?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(B.A,{className:c.container,children:[(0,n.jsx)(B.A,{className:c.tabsWrapper,children:(0,n.jsx)(iH,{options:N,activeKey:u,isLoading:!1,onTabChange:e=>{m(e),x(""),y(""),f("")},withArrows:!0})}),(0,n.jsxs)(B.A,{className:c.mainBox,children:[(0,n.jsxs)(B.A,{className:c.form,children:[(0,n.jsxs)(id.A,{fullWidth:!0,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(iW,"--cardTypeSelect"),variant:"standard",className:c.selectLabel,children:"Typ karty"}),(0,n.jsx)(J.A,{value:h,className:c.select,name:"cardType",onChange:e=>{x(e.target.value),y(""),f("")},IconComponent:()=>(0,n.jsx)(V.A,{}),id:"".concat(iW,"--cardTypeSelect"),label:"",displayEmpty:!0,inputProps:{"aria-label":"Wybierz typ karty"},renderValue:e=>""===e?(0,n.jsx)("span",{className:c.selectPlaceholder,children:"Wybierz typ karty"}):e,children:w.map(e=>(0,n.jsx)(Q.A,{value:e.label,children:e.label},e.label))})]}),(0,n.jsxs)(id.A,{fullWidth:!0,disabled:!h,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(iW,"--cardNameSelect"),variant:"standard",className:c.selectLabel,children:"Nazwa karty"}),(0,n.jsx)(J.A,{value:g,className:c.select,name:"cardName",onChange:e=>{y(e.target.value),f("")},IconComponent:()=>(0,n.jsx)(V.A,{}),id:"".concat(iW,"--cardNameSelect"),label:"",displayEmpty:!0,inputProps:{"aria-label":"Wybierz nazwę karty"},renderValue:e=>""===e?(0,n.jsx)("span",{className:c.selectPlaceholder,children:"Wybierz nazwę karty"}):e,children:_.map(e=>(0,n.jsx)(Q.A,{value:e.label,children:e.label},e.label))})]}),(0,n.jsxs)(id.A,{fullWidth:!0,disabled:!g,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(iW,"--transactionCurrencySelect"),variant:"standard",className:c.selectLabel,children:"Waluta transakcji"}),(0,n.jsx)(J.A,{value:b,className:c.select,name:"transactionCurrency",onChange:e=>f(e.target.value),IconComponent:()=>(0,n.jsx)(V.A,{}),id:"".concat(iW,"--transactionCurrencySelect"),label:"",displayEmpty:!0,inputProps:{"aria-label":"Wybierz walutę transakcji"},renderValue:e=>""===e?(0,n.jsx)("span",{className:c.selectPlaceholder,children:"Wybierz walutę transakcji"}):e,children:k.map(e=>(0,n.jsx)(Q.A,{value:e,children:e},e))})]})]}),(0,n.jsxs)(B.A,{className:c.result,"aria-live":"polite",children:[(0,n.jsx)("span",{className:c.resultText,children:"Marża wynikowa"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:c.resultTextValue,children:b?"".concat(null!=C?C:0):"-,--"}),(0,n.jsx)("span",{children:" %"})]})]})]})]})}):null},iK="FxratesFullCardMargins",iV=c.Df.withName("PKOBPFxratesFullCardMargins").create(()=>({container:{position:"relative"},tableExtraText:{fontWeight:300,marginTop:"55px",marginBottom:"0",[h.Ay.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"24px"}}})),iY=e=>{let{lang:t,headerTitle:a,extraDescription:i,extraDescriptionDisclaimer:l}=e,{classes:r}=iV(),o=(0,en.A)(),[s,c]=(0,d.useState)(null),[p,u]=(0,d.useState)([]),m=async()=>{try{c(!0);let e=await o.apiModulesFxratesCardList({format:"json"});if(!e.ok)throw Error("No cardMargins data");u(e.data)}catch(e){console.error("fetchCardMarginsData error:",e),u([])}finally{c(!1)}};return(0,d.useEffect)(()=>{(null==p?void 0:p.length)||m()},[JSON.stringify(p)]),(0,n.jsxs)(ew.A,{className:r.container,"data-cy":iK,children:[(0,n.jsx)(eo.Ay,{isLoading:s,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(iR,{extraDescription:i,headerTitle:a,cy:iK}),(0,n.jsx)(iG,{cardMarginsData:p}),(0,n.jsx)("div",{children:(0,n.jsx)(tk.default,{className:r.tableExtraText,content:l,"data-cy":"".concat(iK,"--extra_description")})})]})};
1var iZ=a(42955),iq=a(89065),iX=a.n(iq),i$=a(4166),iJ=a.n(i$),iQ=a(75674),i0=a.n(iQ);let i1="FxratesFullChart",i2=c.Df.withName("PKOBPFxratesFullChart").create(()=>({container:{width:"808px",margin:"-25px 80px 0 82px",position:"relative",[h.Ay.breakpoints.down("md")]:{width:"100%",minWidth:"82vw",margin:"-24px 0 0 0",paddingRight:"23px"},[h.Ay.breakpoints.down("sm")]:{minWidth:"unset",margin:"-5px 0 0 0",paddingRight:"0px"}},header:{marginTop:"0px",marginBottom:"34px",fontSize:"24px",[h.Ay.breakpoints.down("md")]:{fontSize:"24px"}},tabsWrapper:{minWidth:"330px",maxWidth:"600px",margin:"16px auto 30px auto",[h.Ay.breakpoints.down("sm")]:{minWidth:"288px",margin:"0 auto"}},chartContainer:{position:"relative","& .highcharts-point":{transform:"translate(0px,-2px)"},"& .highcharts-tooltip":{"& > span":{backgroundColor:"#fff",border:"1px solid #B7B7B7",borderRadius:"4px",boxShadow:"0px 3px 6px #00006629",padding:"8px 8px 7px 8px"}},"& .ratesChart__tooltipValue":{position:"relative",fontWeight:400,paddingLeft:"12px",marginRight:"8px",display:"inline-block","&:nth-of-type(2), &:nth-of-type(4)":{marginRight:"0"}},"& .ratesChart__valueDot":{display:"block",width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"#FF2038",position:"absolute",left:"0",top:"calc(50% - 4px)",[h.Ay.breakpoints.down("sm")]:{top:"calc(50% - 6px)"}},"& .ratesChart__data":{[h.Ay.breakpoints.down("sm")]:{width:"calc(100vw - 32px)",marginLeft:"-3px"}},"& .ratesChart__category":{fontWeight:300,textAlign:"right",marginBottom:"3px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"12px"}},"& .ratesChart__values":{display:"flex",alignItems:"end",justifyContent:"start",flexWrap:"wrap",width:"126px",rowGap:"4px"},"& .ratesChart__value":{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px","&:last-of-type":{"& .ratesChart__valueDot":{backgroundColor:"#24428F"}}},"& .ratesChart__valueItem":{position:"relative",paddingLeft:"15px",[h.Ay.breakpoints.down("sm")]:{paddingLeft:"12px"}},"& .highcharts-yaxis-labels > span:last-of-type":{transform:"translateY(22px) !important"},"& .highcharts-xaxis-labels > span":{overflow:"visible !important","& .ratesChart__xLabel":{position:"relative"},"&:first-of-type .ratesChart__xLabel":{left:"50%"},"&:last-of-type .ratesChart__xLabel":{right:"50%"}}},legendWrapper:{display:"flex",alignItems:"center",justifyContent:"center",gap:"36px",margin:"24px auto 24px auto",border:"none",padding:"0",[h.Ay.breakpoints.down("md")]:{gap:"13px",justifyContent:"start",alignItems:"start",flexDirection:"column"},[h.Ay.breakpoints.down("sm")]:{marginTop:"8px",marginBottom:"16px"},"& > legend":{...es.$},"& .CheckboxField":{[h.Ay.breakpoints.down("sm")]:{width:"100%"}},"& .MuiFormControlLabel-root":{alignItems:"unset"},"& .MuiFormControlLabel-label":{marginTop:"0px",lineHeight:"26px",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},"& .ratesChart__checkboxLabel":{display:"flex",alignItems:"center",marginLeft:"-1px",position:"relative",top:"1px","& svg":{position:"relative",top:"-1px"},"& span":{marginLeft:"4px"},"& span:last-of-type":{[h.Ay.breakpoints.down("sm")]:{marginLeft:"auto",marginRight:"-3px"}}}},legendMobileDate:{display:"block",fontSize:"16px",lineHeight:"20px",fontWeight:300,textAlign:"right",marginTop:"20px"}})),i6=e=>{var t,a,i,l,r,o;let{lang:s,currencyCode:c,datetime:p,apiFn:u}=e,{classes:m}=i2(),x=(0,w.A)(h.Ay.breakpoints.down("sm")),g=(0,d.useRef)(null),[y,b]=(0,d.useState)(null),[f,v]=(0,d.useState)(!1),[A,j]=(0,d.useState)([]),[k,C]=(0,d.useState)("1w"),N=(0,d.useRef)(null),[,S]=(0,d.useReducer)(e=>e+1,0),T=e=>{N.current!==e&&x&&(N.current=e,S())};(0,d.useEffect)(()=>{(async()=>{try{var e,t;if(!c||!p||!u)throw Error("Rates are not available");v(!0);let a=ia.c9.fromISO(p).toFormat("yyyy-MM-dd HH:mm"),n=await u({code:c,datetime:a,period:k});if(!n.ok)throw Error("Network response was not ok");let i={sale:0,buy:1,sale_foreign:2,buy_foreign:3},l=null==n||null==(t=n.data)||null==(e=t.y)?void 0:e.slice().sort((e,t)=>{var a,n;return(null!=(a=i[e.name])?a:1/0)-(null!=(n=i[t.name])?n:1/0)});b({...null==n?void 0:n.data,y:l}),(null==A?void 0:A.length)||j(null==l?void 0:l.map(()=>!0))}catch(e){console.error("Fetch error:",e),b(null),j([])}finally{v(!1)}})()},[c,p,k]),i0()(iX());let z=(null==y||null==(t=y.x)?void 0:t.length)>31?21:null==y?void 0:y.x.length,L=(null==y||null==(a=y.x)?void 0:a.length)>31?21:null==y?void 0:y.x.length,P=/^((?!chrome|android).)*safari/i.test(null==(i=navigator)?void 0:i.userAgent),I={categories:null==y?void 0:y.x,min:.5,max:(null==y||null==(l=y.x)?void 0:l.length)-1.5,lineWidth:1,lineColor:h.Ay.palette.secondary.borders,gridLineWidth:1,gridLineColor:h.Ay.palette.secondary.borders,tickmarkPlacement:"on",tickPositions:((e,t)=>{if(e<=t)return Array.from({length:e},(e,t)=>t);let a=(e-1)/(t-1);return Array.from({length:t},(e,t)=>Math.round(t*a))})(null==y||null==(r=y.x)?void 0:r.length,x?L:z),...P?{plotLines:[{color:h.Ay.palette.secondary.borders,width:1.01,value:(null==y||null==(o=y.x)?void 0:o.length)-1}]}:{},labels:{useHTML:!0,step:1,autoRotation:void 0,y:25,formatter:function(){var e,t,a,n,i,l,r;let o=null==y||null==(e=y.x)?void 0:e[0],s=null==y||null==(a=y.x)?void 0:a[
1(null==y||null==(t=y.x)?void 0:t.length)-1],d=Math.floor((null==y||null==(n=y.x)?void 0:n.length)/2),c=null==y||null==(i=y.x)?void 0:i[d],p=this.axis.defaultLabelFormatter.call(this),u='<div class="ratesChart__xLabel">'.concat(((e,t)=>{let a=new Date(e);return a instanceof Date&&!isNaN(a)?(0,n6.Y)(a,t):e})(p,"2-digit"),"</div>"),m=null!=(r=null==y?void 0:y.x)?r:[],h=null==y||null==(l=y.x)?void 0:l.length,g=this.value,b=g===o||g===s,f=x&&g===c&&(h%2!=0||h>10),v=!x&&h<=10,w=!x&&h>10&&(()=>{let e=(h-1)/5,t=Array.from({length:6},(t,a)=>Math.round(a*e)),a=m.indexOf(g);return t.includes(a)})();return b||f||v||w?u:""},style:{fontFamily:h.Ay.typography.fontFamily,color:"#414141",fontWeight:300,fontSize:"14px"}}},E=(e,t)=>{let a=e.xAxis[0];e.originalYCoords=[],a.gridGroup.element.childNodes.forEach(function(t,a){let n=t.getAttribute("d");if(!n)return;let i=n.split(" ");e.originalYCoords[a]=parseFloat(i[5])}),a.gridGroup.element.childNodes.forEach(function(a,n){let i=a.getAttribute("d");if(!i||void 0===e.originalYCoords[n])return;let l=i.split(" "),r=e.originalYCoords[n]+t,o=l.slice(0,5).join(" ")+" "+r;a.setAttribute("d",o)})},O={credits:{enabled:!1},title:{text:""},lang:{accessibility:{chartContainerLabel:"Interaktywny wykres kursu walut",svgContainerLabel:"",legend:{legendItem:"Pokaż/ukryj {itemName}",legendLabel:"Legenda wykresu",legendLabelNoTitle:"Zmień widoczne elementy na wykresie"},series:{summary:{default:"{series.name}, seria {seriesNumber} z {chart.series.length} z {series.points.length} {#eq series.points.length 1}punktem{else}punktami{/eq}.",defaultCombination:"{series.name}, seria {seriesNumber} z {chart.series.length} z {series.points.length} {#eq series.points.length 1}punktem{else}punktami{/eq}."},xAxisDescription:"Oś X",yAxisDescription:"Oś Y"}}},accessibility:{enabled:!0,landmarkVerbosity:"all",keyboardNavigation:{enabled:!0,seriesNavigation:{mode:"normal"}},series:{describeSingleSeries:!1,descriptionFormatter:e=>"Seria danych ".concat(e.name)},point:{descriptionFormatter:e=>{let t=new Date(e.category),a=(0,a8.A)(t,"d MMMM yyyy 'godzina' HH:mm",{locale:iZ.A});return"Wartość ".concat(e.series.name," wynosi ").concat(e.y," dla daty ").concat(a)}}},chart:{spacingTop:0,height:x?248:361,spacingLeft:1,spacingRight:1,events:{load(){T(this.xAxis[0].categories.length-1)},render:function(){var e,t,a,n,i;((null==(e=window)?void 0:e.innerWidth)||(null==(a=document)||null==(t=a.documentElement)?void 0:t.clientWidth)||(null==(i=document)||null==(n=i.body)?void 0:n.clientWidth))>640?E(this,8):E(this,0)}}},series:(()=>{var e,t;return(null==y||null==(e=y.y)?void 0:e.length)?null==y||null==(t=y.y)?void 0:t.map(e=>{var t;return{yAxis:0,name:(e=>{switch(e){case"buy":return"Pieniądz kupno";case"sale":return"Pieniądz sprzedaż";case"buy_foreign":return"Dewizy kupno";case"sale_foreign":return"Dewizy sprzedaż"}})(e.name),data:e.values,type:"line",color:null==n4||null==(t=n4[e.name])?void 0:t.color,lineWidth:1}}):[]})(),xAxis:I,yAxis:(()=>{var e;if(!(null==y||null==(e=y.y)?void 0:e.length))return[];let t=(e=>{let t=e.y.map(e=>e.min);return{min:Math.min(...t),max:Math.max(...e.y.map(e=>e.max))}})(y);return[{min:null==t?void 0:t.min,max:null==t?void 0:t.max,opposite:!1,title:"",lineWidth:1,lineColor:h.Ay.palette.secondary.borders,gridLineWidth:1,gridLineColor:h.Ay.palette.secondary.borders,tickAmount:x?3:4,labels:{padding:0,useHTML:!0,format:"{value:.2f}",style:{color:"#000",fontFamily:h.Ay.typography.fontFamily,fontWeight:300,fontSize:"14px"},align:"left",x:2,y:-6}}]})(),legend:!1,tooltip:{crosshairs:{width:1.5,color:h.Ay.palette.secondary.borders,dashStyle:"dash"},useHTML:!0,backgroundColor:null,borderWidth:0,shadow:!1,distance:0,style:{...n3,fontWeight:300,padding:0},formatter:function(){return((e,t)=>{var a;let n=ia.c9.fromISO(e).toFormat("dd.MM.yyyy, HH:mm"),i="";return null==y||null==(a=y.y)||a.forEach((e,a)=>{if(A[a]){var n,l;i+='\n            <span class="ratesChart__tooltipValue">\n                <span class="ratesChart__valueDot" style="background-color: '.concat(null==n4||null==(n=n4[null==e?void 0:e.name])?void 0:n.color,'"></span>\n                ').concat((0,n2.tJ)(null==e||null==(l=e.values)?void 0:l[t],{precision:4}),"\n            </span>\n        ")}}),'\n        <div class="ratesChart__data">\n            '.concat('<div class="ratesChart__category">'.concat(n,"</div>"),'\n            <div class="ratesChart__values">\n                ').concat(i,"\n            </div>\n        </div>\n    ")})(this.x,this.point.index)},shared:!0,enabled:!x},plotOptions:{series:{point:{events:{mouseOver:function(){T(this.index)}}},states:{inactive:{enabled:!1},hover:{enabled:!1}},marker:{enabled:!1}}}},B=e=>{var t,a;let i=ia.c9.fromISO(null==y||null==(t=y.x)?void 0:t[null==N?void 0:N.current]).toFormat("dd.MM.yyyy, HH:mm");return(0,n.jsx)(n.Fragment,{children:!!(null==A?void 0:A.length)&&(0,n.jsxs)(n.Fragment,{children:[e&&(0,n.jsx)("span",{className:m.legendMobileDate,children:i}),(0,n.jsxs)(ew.A,{component:"fieldset",className:m.legendWrapper,"aria-labelledby":"".concat(i1,"--checkbox-group-desc"),children:[(0,n.jsx)("legend",{id:"".concat(i1,"--checkbox-group-desc"),children:"Zmień widoczne elementy na wykresie"}),null==y||null==(a=y.y)?void 0:a.map((t,a)=>{var i,l,r;let o=e&&(null==N?void 0:N.current)!==null?null==(i=t.values)?void 0:i[null==N?void 0:N.current]:null,s=null!=o?(0,n2.tJ)(o,{precision:4}):"",d=null==n4||null==(l=n4[null==t?void 0:t.name])?void 0:l.color,c=null==n4||null==(r=n4[null==t?void 0:t.name])?void 0:r.labelName;return(0,n.jsx)(nF.A,{checked:A[a],onChange:()=>(e=>{var t;let a=null==(t=g.current)?void 0:t.chart,n=[...A],i=null==a?void 0:a.series[e];if(i){let t=i.visible;i.setVisible(!t),n[e]=!t,j(n)}})(a),$_ID:"".concat(i1,"--checkbox--").concat(a),cy:i1,label:'\n                  <div class="ratesChart__checkboxLabel">\n                      <svg aria-hidden="true" width="8" height="8" viewBox="0 0 8 8">\n                        <circle cx="4" cy="4" r="4" fill='.concat(d," />\n                      </svg>
1\n                      <span>").concat(c,"</span>\n                      <span>").concat(s,"</span>\n                    </div>\n                  ")},"".concat(i1,"--checkbox--").concat(a))})]})]})})},F=[{key:"1w",label:"1 ".concat(n9(s,"week")),ariaLabel:"".concat(n9(s,"chartTimeRangeAria")," 1 ").concat(n9(s,"week"))},{key:"1m",label:"1 ".concat(n9(s,"month")),ariaLabel:"".concat(n9(s,"chartTimeRangeAria")," 1 ").concat(n9(s,"month"))},{key:"6m",label:"6 ".concat(n9(s,"month")),ariaLabel:"".concat(n9(s,"chartTimeRangeAria")," 6 ").concat(n9(s,"month"))},{key:"1y",label:"1 ".concat(n9(s,"year")),ariaLabel:"".concat(n9(s,"chartTimeRangeAria")," 1 ").concat(n9(s,"year"))}];return(0,n.jsxs)("div",{className:m.container,children:[!x&&(0,n.jsxs)(_.A,{variant:"h3",align:"center",className:m.header,id:"PKOBP_FXRATES_TRANSACTIONS_MODAL",children:[n9(s,"chartHeader")," ",n8(c)]}),(0,n.jsx)("div",{className:m.tabsWrapper,children:(0,n.jsx)(iH,{options:F,activeKey:k,isLoading:f,onTabChange:C,forceFocusAfterRerender:!0})}),x&&B(!0),(0,n.jsxs)("div",{className:m.chartContainer,children:[(0,n.jsx)(eo.Ay,{isLoading:f,withOverlay:!0,size:eo.iW.MD}),!!y&&(0,n.jsx)(iJ(),{highcharts:iX(),options:O,ref:g})]}),!x&&B()]})},i4=()=>{let[e,t]=(0,d.useState)(!1),[a,n]=(0,d.useState)(null);return{isChartModalOpen:e,activeChartCurrency:a,setIsChartModalOpen:t,handleChartBtnClick:e=>{n(e),t(!0)}}},i8=e=>{let{apiRatesFn:t,pageSize:a=6}=e,[n,i]=(0,d.useState)(null),[l,r]=(0,d.useState)([]),[o,s]=(0,d.useState)(a),c=o>=l.length,p=l.slice(0,o),u=async e=>{try{if(!t||!e)return;i(!0);let a=await t({"table-id":String(e)});if(!a.ok)throw Error("No rates data");r(a.data)}catch(e){console.error("fetchRatesData error:",e),r([])}finally{i(!1)}};return{isLoading:n,ratesData:l,setRatesData:r,visibleRates:p,visibleCount:o,allItemsLoaded:c,handleToggleItems:()=>{s(e=>c?a:e+a)},fetchRatesData:u}},i3=e=>{let{apiTableFn:t}=e,[a,n]=(0,d.useState)(null),[i,l]=(0,d.useState)(null),[r,o]=(0,d.useState)(null),s=async e=>{try{var a;let i=(0,a8.A)(e,"yyyy-MM-dd");if(!t)return;n(!0);let r=await t({date:i});if(!r.ok||!(null==r||null==(a=r.data)?void 0:a.length))throw Error("No data");l(r.data),o(r.data[r.data.length-1]||null)}catch(e){console.error("fetchTableData error:",e),l(null),o(null)}finally{n(!1)}};return{isLoading:a,tableData:i,activeHourTable:r,setActiveHourTable:o,fetchTableData:s,handleChangeDate:e=>{e&&s(e)}}},i5="FxratesFullChf",i9=c.Df.withName("PKOBPFxratesFullChf").create(()=>({container:{position:"relative"},cards:{display:"flex",alignItems:"start",justifyContent:"start",gap:"30px",marginBottom:"56px",[h.Ay.breakpoints.down("md")]:{flexDirection:"column",gap:"48px"}},cardWrapper:{width:"50%",[h.Ay.breakpoints.down("md")]:{width:"100%"},"& h3":{fontSize:"24px",lineHeight:"32px",marginTop:"0",marginBottom:"25px",fontWeight:400,[h.Ay.breakpoints.down("sm")]:{marginTop:"0",marginBottom:"16px",fontSize:"20px",lineHeight:"24px",textAlign:"center"}}},description:{"& p":{fontSize:"16px",lineHeight:"24px",fontWeight:300}}})),i7=e=>{var t,a;let{lang:i,extraDescription:l}=e,{classes:r}=i9(),o=(0,en.A)(),s=(0,w.A)(h.Ay.breakpoints.down("sm")),{isLoading:c,tableData:p,activeHourTable:u,setActiveHourTable:m,handleChangeDate:x}=i3({apiTableFn:o.apiModulesFxratesChfTableList}),{isLoading:g,visibleRates:y,setRatesData:b,fetchRatesData:f}=i8({apiRatesFn:o.apiModulesFxratesChfRatesList}),{isLoading:v,visibleRates:A,setRatesData:_,fetchRatesData:j}=i8({apiRatesFn:o.apiModulesFxratesChfSpreadsList}),{isChartModalOpen:k,setIsChartModalOpen:C,handleChartBtnClick:N,activeChartCurrency:S}=i4();return(0,d.useEffect)(()=>{(null==u?void 0:u.id)?(f(null==u?void 0:u.id),j(null==u?void 0:u.id)):(b([]),_([]))},[null==u?void 0:u.id]),(0,n.jsxs)(ew.A,{className:r.container,"data-cy":i5,children:[(0,n.jsx)(eo.Ay,{isLoading:c||g||v,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(ix,{cy:i5+"--filter",tableData:p,handleChangeDate:x,lang:i,isFxratesFull:!0,activeHourTable:u,setActiveHourTable:m,apiFn:o.apiModulesFxratesChfDateGapList,showTableName:!1,showArchiveInfo:!0}),!y[0]&&!A[0]&&!1===c&&!1===g&&!1===v&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(i,"noEntries")}),(!!y[0]||!!A[0])&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:r.cards,children:[(0,n.jsxs)("div",{className:r.cardWrapper,children:[(0,n.jsx)("h3",{children:"Kurs CHF dla klient\xf3w indywidualnych, spłacających kredyty mieszkaniowe w CHF"}),!!y[0]&&(0,n.jsx)(it,{...y[0],country:null==(t=y[0])?void 0:t.currency_code,lang:i,type:"rates",handleChartBtnClick:N,isSingleCard:!0,hideCurrencyCode:!0})]}),(0,n.jsxs)("div",{className:r.cardWrapper,children:[(0,n.jsx)("h3",{children:"Spread CHF dla klient\xf3w indywidualnych, spłacających kredyty mieszkaniowe w CHF"}),!!A[0]&&(0,n.jsx)(it,{...A[0],country:null==(a=A[0])?void 0:a.currency_code,lang:i,type:"spreads",isSingleCard:!0,hideCurrencyCode:!0})]})]}),(0,n.jsx)("div",{className:r.description,children:(0,n.jsx)(tk.default,{content:l,"data-cy":"".concat(i5,"--extra_description")})}),(0,n.jsx)(ea.Ay,{isOpen:k,handleClose:()=>C(!1),size:ea.Ih.LG,modalStyle:s?ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE:ea.YT.DEFAULT,fullScreen:s,showDrawerOnMobile:!1,$_ID_MODAL_TITLE:"PKOBP_FXRATES_CHF_MODAL",title:s?"".concat(n9(i,"chartHeader")," ").concat(S):null,children:(0,n.jsx)(i6,{lang:i,datetime:null==u?void 0:u.table_date,currencyCode:"CHF2",apiFn:o.apiModulesFxratesChfChartList})})]})]})},le="FxratesFullDcc",lt=c.Df.withName("PKOBPFxratesFullDcc").create(()=>({container:{position:"relative"},tableExtraText:{fontWeight:300,marginTop:"56px",marginBottom:"0",[h.Ay.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"24px"}},cardsList:{...iw}})),la=e=>{let{lang:t,headerTitle:a,extraDescription:i,extraDescriptionDisclaimer:l}=e,{classes:r}=lt(),o=(0,en.A)(),[s,c]=(0,d.useState)(null),[p,u]=(0,d.useState)([]),m=async()=>{try{c(!0);let e=await o.apiModulesFxratesAtmList({format:"json"});if(!e.ok)throw Error("No dcc data");u(e.data)}catch(e){console.error("fetchDccData error:",e),u([])}finally{c(!1)}};return(0,d.useEffect)(()=>{(null==p?void 0:p.length)||m()},[JSON.stringify(p)]),(0,n.jsxs)(ew.A,{className:r.container,"data-cy":le,children:[(0,n.jsx)(eo.Ay,{isLoading:s,withOverlay:!0,size:eo.iW.MD}),!(null==p?void 0:p.length)&&!1===s&&(0,n.jsx)(_.A,{variant:"h3",children:"Brak danych dla marży DCC"}),!!(null==p?void 0:p.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(iR,{extraDescription:i,headerTitle:a,cy:le}),(0,n.jsx)("ul",{className:r.cardsList,"aria-live":"polite",children:p.map(e=>(0,n.jsx)(it,{markup:null==e?void 0:e.markup,country:null==e?void 0:e.currency,currency_code:null==e?void 0:e.currency,type:"dcc",hideCurrencyCode:!0},null==e?void 0:e.currency))}),(0,n.jsx)("div",{children:(0,n.jsx)(tk.default,{className:r.tableExtraText,content:l,"data-cy":"".concat(le,"--extra_description")})})]})]})},ln=z()(()=>Promise.resolve().then(a.bind(a,61265)),{loadableGenerated:{webpack:()=>[61265]}}),li="FxratesFullExchangeRates",ll=c.Df.withName("PKOBPFxratesFullExchangeRates").create(()=>({container:{position:"relative"},header:{textAlign:"center",marginBottom:"40px",[h.Ay.breakpoints.down("sm")]:{marginTop:"0",marginBottom:"16
1px"}},extraDescription:{marginTop:"110px"},cardsList:{...iw}})),lr=e=>{let{extraDescription:t,type:a,headerTitle:i,lang:l}=e,{classes:r}=ll(),o=(0,en.A)(),s=(0,w.A)(h.Ay.breakpoints.down("sm")),c={transactions:o.apiModulesFxratesMainTableList,credits:o.apiModulesFxratesCreditTableList},p={transactions:o.apiModulesFxratesMainRatesList,credits:o.apiModulesFxratesCreditRatesList},{isLoading:u,tableData:m,activeHourTable:x,setActiveHourTable:g,handleChangeDate:y}=i3({apiTableFn:c[a]}),{isLoading:b,ratesData:f,setRatesData:v,visibleRates:A,fetchRatesData:j,visibleCount:k,allItemsLoaded:C,handleToggleItems:N}=i8({apiRatesFn:p[a]}),{isChartModalOpen:S,setIsChartModalOpen:T,handleChartBtnClick:z,activeChartCurrency:L}=i4();(0,d.useEffect)(()=>{(null==x?void 0:x.id)?j(null==x?void 0:x.id):v([])},[null==x?void 0:x.id]);let P=u||b;return(0,n.jsxs)(ew.A,{className:r.container,"data-cy":li,children:[(0,n.jsx)(eo.Ay,{isLoading:P,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(ix,{cy:li+"--filter",tableData:m,handleChangeDate:y,lang:l,isFxratesFull:!0,activeHourTable:x,setActiveHourTable:g,showTableName:!0,apiFn:"transactions"===a?o.apiModulesFxratesMainDateGapList:o.apiModulesFxratesCreditDateGapList,showArchiveInfo:!0}),(0,n.jsxs)("div",{children:[!(null==A?void 0:A.length)&&!1===P&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(l,"noEntries")}),(0,n.jsx)(es.A,{children:(0,n.jsxs)("p",{"aria-live":"polite",children:["Wyświetlono ",C?f.length:k," z ",f.length," kurs\xf3w"]})}),!!(null==A?void 0:A.length)&&(0,n.jsxs)(n.Fragment,{children:[!!i&&(0,n.jsx)(_.A,{className:r.header,variant:"h3",dangerouslySetInnerHTML:{__html:i}}),(0,n.jsx)("ul",{className:r.cardsList,"aria-live":"polite",children:A.map(e=>(0,n.jsx)(it,{...e,country:"credits"===a?(e=>{if("W.BRYTANIA"===e)return"Wielka Brytania";let t=["USA","EURO"];return e.split(".").map(e=>{let a=e.toUpperCase();return t.includes(a)?a:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(".")})(null==e?void 0:e.country):null==e?void 0:e.currency_code,lang:l,handleChartBtnClick:"transactions"===a?z:null,type:"transactions"===a?"ratesWithMoney":"rates",tooltip:(e=>"transactions"===a&&iO(e)?(0,n.jsx)(ln,{symbol:"?",text:iO(e),$_ID:"".concat(li,"-tooltip--").concat(e)}):null)(e.currency_code)},e.currency_code))}),(null==f?void 0:f.length)>6&&(0,n.jsx)(ib,{visibleCount:k,allItemsLoaded:C,allItemsCount:null==f?void 0:f.length,handleToggleItems:N,lang:l}),!!(null==x?void 0:x.id)&&!P&&(0,n.jsx)(ir,{tableId:null==x?void 0:x.id,tableNumber:null==x?void 0:x.table_number,datetime:null==x?void 0:x.table_date,lang:l,type:a}),t&&(0,n.jsx)(tk.default,{className:r.extraDescription,content:t,"data-cy":"".concat(li,"--extra_description")})]})]}),(0,n.jsx)(ea.Ay,{isOpen:S,handleClose:()=>T(!1),size:ea.Ih.LG,modalStyle:s?ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE:ea.YT.DEFAULT,fullScreen:s,showDrawerOnMobile:!1,$_ID_MODAL_TITLE:"PKOBP_FXRATES_TRANSACTIONS_MODAL",title:s?"".concat(n9(l,"chartHeader")," ").concat(L):null,children:(0,n.jsx)(i6,{lang:l,datetime:null==x?void 0:x.table_date,currencyCode:L,apiFn:o.apiModulesFxratesMainChartList})})]})},lo=c.Df.withName("PKOBPFxratesFullMiniCard").create(()=>({container:{border:"solid 1px ".concat(h.Ay.palette.secondary.borders),borderRadius:"16px",padding:"31px",[h.Ay.breakpoints.down("sm")]:{padding:"16px"}},title:{margin:"0",padding:"0",fontSize:"18px",lineHeight:"24px",fontWeight:600,marginBottom:"12px",[h.Ay.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px",marginBottom:"3px"}},content:{margin:"0",padding:"0",fontSize:"16px",lineHeight:"20px",fontWeight:300}})),ls=e=>{let{title:t,content:a}=e,{classes:i}=lo();return(0,n.jsxs)("div",{className:i.container,"data-cy":"FxratesFullMiniCard","aria-live":"polite",children:[t&&(0,n.jsx)("h3",{className:i.title,children:t}),a&&(0,n.jsx)("p",{className:i.content,children:a})]})},ld=e=>{let{apiRatesFn:t,pageSize:a=6}=e,[n,i]=(0,d.useState)(null),[l,r]=(0,d.useState)(null);return{isLoading:n,ratesData:l,fetchRatesData:async e=>{try{if(!t||!e)return;i(!0);let a=await t({date:e});if(!a.ok)throw Error("No rates data");r(a.data)}catch(e){console.error("fetchRatesData error:",e),r(null)}finally{i(!1)}}}},lc="FxratesFullFixedBaseRates",lp=c.Df.withName("PKOBPFxratesFullFixedBaseRates").create(()=>({container:{position:"relative"},cardsWrapper:{marginTop:"40px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"30px",[h.Ay.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gap:"15p
1x",marginTop:"13px"}}})),lu=e=>{var t,a,i,l;let{lang:r}=e,{classes:o}=lp(),s=(0,en.A)(),{isLoading:c,setSelectedDate:p,selectedDate:u,disabledDates:m,fetchDateGapData:h,minDate:x}=ip({apiDateGapFn:s.apiModulesFxratesFixedDateGapList}),{isLoading:g,ratesData:y,fetchRatesData:b}=ld({apiRatesFn:s.apiModulesFxratesFixedRatesList});return(0,d.useEffect)(()=>{h()},[]),(0,n.jsxs)(ew.A,{className:o.container,"data-cy":lc,children:[(0,n.jsx)(eo.Ay,{isLoading:c||g,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(im,{cy:lc+"--fixedbaserates",minDate:x,handleChangeDate:e=>{e&&b((0,a8.A)(e,"yyyy-MM-dd"))},lang:r,selectedDate:u,setSelectedDate:p,disabledDates:m}),!(null==y||null==(t=y.base)?void 0:t.value)&&!1===c&&!1===g&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(r,"noEntries")}),(0,n.jsx)("div",{className:o.cardsWrapper,children:(null==y||null==(a=y.base)?void 0:a.value)&&(0,n.jsx)(ls,{title:"5-letnia stała stopa bazowa",content:"W dniu ".concat((e=>e?ia.c9.fromISO(e).toFormat("dd.MM.yyyy"):"")(null==y||null==(i=y.base)?void 0:i.date)," wynosi ").concat(null==y||null==(l=y.base)?void 0:l.value,"%")})})]})};var lm=a(21988);let lh=c.Df.withName("PKOBPFxratesFullTable").create(()=>({container:{width:"100%"},header:{fontSize:"24px",lineHeight:"32px",margin:"0",padding:"0",fontWeight:400,marginBottom:"24px",[h.Ay.breakpoints.down("sm")]:{fontSize:"18px",lineHeight:"24px",marginBottom:"14px"}},table:{width:"100%",borderCollapse:"collapse",fontWeight:300,"& th":{textAlign:"left",fontSize:"14px",lineHeight:"20px",fontWeight:300,padding:"0 0 20px 0"},"& th:last-of-type":{fontWeight:600},"& tbody tr":{borderTop:"1px solid ".concat(h.Ay.palette.secondary.borders)},"& td":{padding:"16px 0",fontSize:"16px",lineHeight:"20px"},"& td:last-of-type, & th:last-of-type":{width:"auto",textAlign:"right"}}})),lx=e=>{let{cy:t,name:a,tableData:i,rows:l,hideEmptyRows:r=!1,hidePeriodHeader:o=!1,caption:s}=e,{classes:d}=lh();if(!i)return null;let c=null!=l?l:Object.keys(i).map(e=>({key:e,label:(null==iB?void 0:iB[e])||""})),p=r?c.filter(e=>null!=i[e.key]):c;return p.length?(0,n.jsxs)(ew.A,{className:d.container,"data-cy":t+"--table",children:[(0,n.jsx)("h4",{className:d.header,children:a}),(0,n.jsxs)("table",{className:d.table,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("caption",{children:s||"Tabela przedstawiająca stawki międzybankowe ".concat(a)})}),(0,n.jsx)("thead",{"aria-hidden":!0,children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:o?"":"Okres depozytu"}),(0,n.jsx)("th",{children:"Wysokość stopy w %"})]})}),(0,n.jsx)("tbody",{children:p.map(e=>{let{key:t,label:a}=e,l=i[t];return(0,n.jsxs)("tr",{children:[(0,n.jsxs)("td",{children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:"Okres depozytu"})}),a]}),(0,n.jsxs)("td",{children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:"Wysokość stopy w % wynosi"})}),l?(0,n2.tJ)(l,{precision:5,decimal:"."}):"b.d"]})]},t)})})]})]}):null},lg="FxratesFullInterbankRates",ly=c.Df.withName("PKOBPFxratesFullInterbankRates").create(()=>({container:{position:"relative"},cardsWrapper:{marginTop:"40px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"30px",[h.Ay.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gap:"15px",marginTop:"13px"}},polstrWrapper:{marginTop:"40px",[h.Ay.breakpoints.down("sm")]:{marginTop:"13px"}},tablesWrapper:{display:"grid",gridTemplateColumns:"1fr 1fr",alignItems:"start",gap:"30px",marginTop:"39px",[h.Ay.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",marginTop:"57px",gap:"57px"}},tablesWrapperSingle:{gridTemplateColumns:"1fr"}})),lb=e=>{var t,a,i;let{lang:l,interbank_wibid_show_until:r,interbank_wibid_active:o=!0,interbank_wibor_active:s=!0,interbank_polstr_active:c=!0,interbank_wibor_s3m_active:p=!0}=e,{classes:u}=ly(),m=(0,en.A)(),{isLoading:h,setSelectedDate:x,selectedDate:g,disabledDates:y,fetchDateGapData:b,minDate:v}=ip({apiDateGapFn:m.apiModulesFxratesInterbankDateGapList}),{isLoading:w,ratesData:A,fetchRatesData:_}=ld({apiRatesFn:m.apiModulesFxratesInterbankRatesList});(0,d.useEffect)(()=>{b()},[]);let j=!!r&&(0,P.A)(new Date(g),(0,lm.A)(new Date(r))),k=!!(null==A||null==(t=A.wibor_s3m)?void 0:t.value),C=!!(null==A?void 0:A.wibid)&&!j,N=!!(null==A?void 0:A.wibor),S=iF.some(e=>{var t;let{key:a}=e;return(null==A||null==(t=A.polstr)?void 0:t[a])!=null}),T=o&&C,z=s&&N,L=!k&&!C&&!N&&!S&&!h&&!w;return(0,n.jsxs)(ew.A,{className:u.container,"data-cy":lg,children:[(0,n.jsx)(eo.Ay,{isLoading:h||w,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(im,{cy:lg+"--interbank",minDate:v,handleChangeDate:e=>{e&&_((0,a8.A)(e,"yyyy-MM-dd"))},lang:l,selectedDate:g,setSelectedDate:x,disabledDates:y}),L&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(l,"noEntries")}),p&&k&&(0,n.jsx)("div",{className:u.cardsWrapper,children:(0,n.jsx)(ls,{title:"Stawka referencyjna WIBOR-S3M",content:"Od dnia ".concat((e=>e?ia.c9.fromISO(e).toFormat("dd.MM.yyyy"):"")(null==A||null==(a=A.wibor_s3m)?void 0:a.date)," wynosi ").concat(null==A||null==(i=A.wibor_s3m)?void 0:i.value,"%")})}),c&&S&&(0,n.jsx)("div",{className:u.polstrWrapper,children:(0,n.jsx)(lx,{cy:lg+"--polstr",tableData:null==A?void 0:A.polstr,name:"POLSTR i Indeksy Składane POLSTR",rows:iF,hideEmptyRows:!0,hidePeriodHeader:!0,caption:"Tabela przedstawiająca stawki POLSTR i Indeksy Składane POLSTR"})}),(0,n.jsxs)("div",{className:f()(u.tablesWrapper,!(T&&z)&&u.tablesWrapperSingle),children:[T&&(0,n.jsx)(lx,{cy:lg+"--wibid",tableData:null==A?void 0:A.wibid,name:"WIBID"}),z&&(0,n.jsx)(lx,{cy:lg+"--wibor",tableData:null==A?void 0:A.wibor,name:"WIBOR"})]})]})},lf={src:"/_next/static/media/mastercard.dd43246b.png",height:140,width:181,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAS1BMVEUBAAD/XxsAAAD1Bhn6oBvwABzuABr4nxvqAhr6mhf/oxr0nhn7oxv4oBvvExPtABvoABv/YgP9TwL1AB3zABz/qh39ABz9Owj/fAjudlYjAAAAFnRSTlM0EkGQ0fvT/fzFkDLcpcmwOPn5/Mz+u3yqPwAAAAlwSFlzAAALEwAACxMBAJqcGAAAADdJREFUeJwdwgkOABEQBMB2zmDXPfj/SyUqhepdDmQT/OJ9SAIcc29EH8oa+4j8UGaaaKMCoN8LO+wB6fIWAxIAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},lv={src:"/_next/static/media/visa.37dfb071.png",height:93,width:284,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAG1BMVEUTMswTM8wTNM4SM8oTNNATM8oUM8sUNMoUMcmPU8t5AAAACXRSTlNqrJejv418fz5LpVEvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIElEQVR4nAXBhw0AMAzDMHkh/f/ikhxa30xtQoU4ouUDBBMARWvLIUgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:3};var lw=a(75174);let lA=c.Df.withName("PKOBPFxratesFullCardWithImage").create(()=>({container:{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"column",minHeight:"232px",width:"100%",border:"1px solid ".concat(h.Ay.palette.secondary.borders),borderRadius:"16px",padding:"40px 15px 39px 15px",backgroundColor:"#fff",fontFamily:h.Ay.typography.fontFamily,color:h.Ay.palette.text.primary,boxShadow:h.Ay.palette.shadows.basic.normal,textDecoration:"none",transition:h.Ay.transitions.create(["box-shadow"]),"&:hover":{boxShadow:h.Ay.palette.shadows.basic.hover},[h.Ay.breakpoints.down("sm")]:{minHeight:"164px",paddingTop:"36px",paddingBottom:"16
1px",gap:"11px"}},imageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",height:"112px",[h.Ay.breakpoints.down("sm")]:{height:"80px"}},text:{fontSize:"18px",lineHeight:"24px",fontWeight:600,textAlign:"center",[h.Ay.breakpoints.down("sm")]:{fontSize:"16px",lineHeight:"20px"}}})),l_=e=>{let{imageSrc:t,text:a,href:i,imageWidth:l,imageHeight:r}=e,{classes:o}=lA();return(0,n.jsxs)("a",{href:i,target:"_blank",className:o.container,"data-cy":"FxratesFullCardWithImage","aria-label":"Kliknij, aby zobaczyć ".concat(a,". Uwaga, link otworzy się w nowym oknie."),children:[t&&(0,n.jsx)("div",{className:o.imageWrapper,children:(0,n.jsx)(tH.Ay,{src:t,width:l,height:r,formatFilepath:!1,alt:""})}),a&&(0,n.jsx)("span",{className:o.text,children:a})]})},lj="FxratesFullInterchangeFees",lk=c.Df.withName("PKOBPFxratesFullInterchangeFees").create(()=>({container:{position:"relative"},cards:{display:"flex",alignItems:"start",justifyContent:"start",gap:"30px",[h.Ay.breakpoints.down("md")]:{flexDirection:"column",gap:"16px"}}})),lC=e=>{let{extraDescription:t}=e,{classes:a}=lk(),i=(0,w.A)(h.Ay.breakpoints.down("sm"));return(0,n.jsxs)(ew.A,{className:a.container,"data-cy":lj,children:[(0,n.jsx)(iR,{extraDescription:t,cy:lj}),(0,n.jsxs)("div",{className:a.cards,children:[(0,n.jsx)(l_,{text:"Opłaty interchange w systemie Visa",href:"https://www.visa.co.uk/about-visa/visa-in-europe/fees-and-interchange.html#2",imageSrc:(0,lw.A)(lv),imageWidth:i?110:138,imageHeight:i?36:47}),(0,n.jsx)(l_,{text:"Opłaty interchange w systemie Mastercard",href:"https://www.mastercard.pl/pl-pl/punkty-handlowo-uslugowe/pierwsze-kroki/zrozumiec-oplate-interchange.html",imageSrc:(0,lw.A)(lf),imageWidth:90,imageHeight:70})]})]})},lN="FxratesFullIrs",lS=c.Df.withName("PKOBPFxratesFullIrs").create(()=>({container:{position:"relative"},cardsWrapper:{marginTop:"40px",display:"grid",gridTemplateColumns:"1fr 1fr",gap:"30px",[h.Ay.breakpoints.down("sm")]:{gridTemplateColumns:"1fr",gap:"15px",marginTop:"13px"}}})),lT=e=>{var t,a,i,l;let{lang:r}=e,{classes:o}=lS(),s=(0,en.A)(),{isLoading:c,setSelectedDate:p,selectedDate:u,disabledDates:m,fetchDateGapData:h,minDate:x}=ip({apiDateGapFn:s.apiModulesFxratesIrsDateGapList}),{isLoading:g,ratesData:y,fetchRatesData:b}=ld({apiRatesFn:s.apiModulesFxratesIrsRatesList});return(0,d.useEffect)(()=>{h()},[]),(0,n.jsxs)(ew.A,{className:o.container,"data-cy":lN,children:[(0,n.jsx)(eo.Ay,{isLoading:c||g,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(im,{cy:lN+"--irs",minDate:x,handleChangeDate:e=>{e&&b((0,a8.A)(e,"yyyy-MM-dd"))},lang:r,selectedDate:u,setSelectedDate:p,disabledDates:m}),!(null==y||null==(t=y.irs_2y)?void 0:t.value)&&!1===c&&!1===g&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(r,"noEntries")}),(0,n.jsx)("div",{className:o.cardsWrapper,children:!!(null==y||null==(a=y.irs_2y)?void 0:a.value)&&(0,n.jsx)(ls,{title:"Stawka referencyjna IRS 2Y",content:"Od dnia ".concat((e=>e?ia.c9.fromISO(e).toFormat("dd.MM.yyyy"):"")(null==y||null==(i=y.irs_2y)?void 0:i.date)," wynosi ").concat(null==y||null==(l=y.irs_2y)?void 0:l.value,"%")})})]})},lz="FxratesFullSettlementRates",lL=c.Df.withName("PKOBPFxratesFullSettlementRates").create(()=>({container:{position:"relative"},cards:{display:"flex",alignItems:"start",justifyContent:"start",gap:"30px",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column",gap:"16px"}}})),lP=e=>{let{headerTitle:t,extraDescription:a}=e,{classes:i}=lL(),l=(0,w.A)(h.Ay.breakpoints.down("sm"));return(0,n.jsxs)(ew.A,{className:i.container,"data-cy":lz,children:[(0,n.jsx)(iR,{extraDescription:a,headerTitle:t,cy:lz}),(0,n.jsxs)("div",{className:i.cards,children:[(0,n.jsx)(l_,{text:"Kalkulator Visa",href:"https://www.visa.pl/wsparcie-visa/konsument/travel-support/exchange-rate-calculator.html",imageSrc:(0,lw.A)(lv),imageWidth:l?110:138,imageHeight:l?36:47}),(0,n.jsx)(l_,{text:"Kalkulator Mastercard",href:"https://www.mastercard.pl/pl-pl/klienci-indywidualni/pomoc/kalkulator-walut.html",imageSrc:(0,lw.A)(lf),imageWidth:90,imageHeight:70})]})]})},lI="FxratesFullSpreads",lE=c.Df.withName("PKOBPFxratesFullSpreads").create(()=>({container:{position:"relative"},header:{fontSize:"24px",lineHeight:"1.333333333333333333",textAlign:"left",marginBottom:"24px",[h.Ay.breakpoints.down("sm")]:{marginTop:"0",marginBottom:"16
1px",fontSize:"20px",lineHeight:"24px"}},mainRemarks:{marginTop:"110px"},cardsList:{...iw}})),lO=e=>{let{lang:t}=e,{classes:a}=lE(),i=(0,en.A)(),{isLoading:l,tableData:r,activeHourTable:o,setActiveHourTable:s,handleChangeDate:c}=i3({apiTableFn:i.apiModulesFxratesCreditTableList}),{isLoading:p,ratesData:u,setRatesData:m,visibleRates:h,fetchRatesData:x,visibleCount:g,allItemsLoaded:y,handleToggleItems:b}=i8({apiRatesFn:i.apiModulesFxratesCreditSpreadsList,pageSize:9});return(0,d.useEffect)(()=>{(null==o?void 0:o.id)?x(null==o?void 0:o.id):m([])},[null==o?void 0:o.id]),(0,n.jsxs)(ew.A,{className:a.container,"data-cy":lI,children:[(0,n.jsx)(eo.Ay,{isLoading:l||p,withOverlay:!0,size:eo.iW.MD}),(0,n.jsx)(ix,{cy:lI+"--filter",tableData:r,handleChangeDate:c,lang:t,isFxratesFull:!0,activeHourTable:o,setActiveHourTable:s,showTableName:!1,apiFn:i.apiModulesFxratesCreditDateGapList}),!(null==h?void 0:h.length)&&!1===l&&!1===p&&(0,n.jsx)(ew.A,{fontSize:20,children:n9(t,"noEntries")}),(0,n.jsx)("div",{children:!!(null==h?void 0:h.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{className:a.header,variant:"h3",children:n9(t,"spreadsHeader")}),(0,n.jsx)("ul",{className:a.cardsList,"aria-live":"polite",children:h.map(e=>(0,n.jsx)(it,{...e,country:e.currency_code,lang:t,type:"spreads"},e.currency_code))}),(null==u?void 0:u.length)>9&&(0,n.jsx)(ib,{visibleCount:g,allItemsLoaded:y,allItemsCount:null==u?void 0:u.length,handleToggleItems:b,lang:t})]})})]})},lB="FxratesFull",lF=c.Df.withName("PKOBPFxratesFull").create(()=>({header:{"& .sectionheader__title":{fontSize:"40px",lineHeight:"48px",marginBottom:"17px",[h.Ay.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"0"}},"& .sectionheader__subtitle":{[h.Ay.breakpoints.down("sm")]:{marginTop:"1px",lineHeight:"20px !important"}}},link:{color:h.Ay.palette.primary.main,textDecoration:"underline",textUnderlineOffset:"2px","&:hover":{color:"#001E4B"}}})),lD=e=>{let{title:t,supertitle:a,subtitle:i,main_remarks:l,credit_remarks:r,atm_withdraw_title:o,atm_withdraw_description:s,billings_title:c,billings_description:p,card_payment_description:u,card_payment_title:m,interchange_description:h,chf_remarks:x,atm_withdraw_disclaimer:g,card_payment_disclaimer:y,main_active:b,cantor_active:f,credit_active:v,chf_active:w,spreads_active:A,interbank_active:_,irs_active:j,fixed_active:k,billings_active:C,card_payment_active:N,atm_withdraw_active:S,interchange_active:T,interbank_wibid_show_until:z,interbank_wibid_active:L,interbank_wibor_active:P,interbank_polstr_active:I,interbank_wibor_s3m_active:E}=e,{classes:O}=lF(),B=(0,d.useContext)(U.G),F=(0,d.useContext)(d_),D=(0,nL.v)(null==F?void 0:F.language),R={[iI.TRANSACTIONS]:b,[iI.CANTOR]:f,[iI.CREDITS]:v,[iI.CHF_SPREADS]:w,[iI.SPREADS]:A,[iI.INTERBANK_RATES]:_,[iI.IRS]:j,[iI.BASE_RATE]:k,[iI.SETTLEMENT_RATES]:C,[iI.CARD_MARGINS]:N,[iI.DCC_MARGINS]:S,[iI.INTERCHANGE_FEES]:T},M=iE.filter(e=>R[e.key]),[H,W]=(0,d.useState)(()=>{let e=M[0];return e?e.key:iI.TRANSACTIONS});return(0,n.jsxs)(ew.A,{id:B,"data-cy":lB,children:[(0,n.jsx)(iS.Ay,{title:t,supertitle:a,subtitle:i,className:O.header,$_ID_TITLE:"".concat(lB,"--mainTitle")}),(0,n.jsx)(iP,{pills:M,setActiveView:W,activeView:H,cy:lB,ariaPrefix:"".concat(lB,"--pills")}),(0,n.jsx)(ew.A,{role:"tabpanel",children:(()=>{switch(H){case iI.TRANSACTIONS:return(0,n.jsx)(lr,{extraDescription:null==l?void 0:l.content,type:"transactions",headerTitle:n9(D,"transactionsHeader"),lang:D},H);case iI.CREDITS:return(0,n.jsx)(lr,{extraDescription:null==r?void 0:r.content,type:"credits",headerTitle:n9(D,"creditsHeader"),lang:D},H);case iI.CHF_SPREADS:return(0,n.jsx)(i7,{lang:D,extraDescription:null==x?void 0:x.content});case iI.SPREADS:return(0,n.jsx)(lO,{lang:D});case iI.INTERBANK_RATES:return(0,n.jsx)(lb,{lang:D,interbank_wibid_show_until:z,interbank_wibid_active:L,interbank_wibor_active:P,interbank_polstr_active:I,interbank_wibor_s3m_active:E});case iI.IRS:return(0,n.jsx)(lT,{lang:D});case iI.BASE_RATE:return(0,n.jsx)(lu,{lang:D});case iI.SETTLEMENT_RATES:return(0,n.jsx)(lP,{lang:D,headerTitle:null==c?void 0:c.text,extraDescription:null==p?void 0:p.content});case iI.CARD_MARGINS:return(0,n.jsx)(iY,{lang:D,headerTitle:null==m?void 0:m.text,extraDescription:null==u?void 0:u.content,extraDescriptionDisclaimer:null==y?void 0:y.content});case iI.DCC_MARGINS:return(0,n.jsx)(la,{lang:D,headerTitle:null==o?void 0:o.text,extraDescription:null==s?void 0:s.content,extraDescriptionDisclaimer:null==g?void 0:g.content});case iI.INTERCHANGE_FEES:return(0,n.jsx)(lC,{lang:D,extraDescription:null==h?void 0:h.content});case iI.CANTOR:return(0,n.jsx)(ew.A,{my:2,children:(0,n.jsx)(tM.A,{href:"www.pkobp.pl/klient-indywidualny/aplikacja-iko-ipko/kantor-internetowy-mobilny-24h#bd-col-0bb651cf50d1-h-256569",className:O.link,cy:lB,children:"Przykładowe kursy wymiany walut w naszym kantorze internetowym"})});default:return null}})()})]})};var lR=a(97469),lM=a(73389),lH=a(80964);let lW=z()(()=>Promise.all([a.e(616),a.e(738),a.e(8657)]).then(a.bind(a,18657)),{loadableGenerated:{webpack:()=>[18657]}}
1),lU=z()(()=>a.e(5096).then(a.bind(a,5096)),{loadableGenerated:{webpack:()=>[5096]}});var lG=a(244);let lK=z()(()=>a.e(9870).then(a.bind(a,19870)),{loadableGenerated:{webpack:()=>[19870]}});var lV=function(e){return e[e.CURRENCY_PRODUCTS=1]="CURRENCY_PRODUCTS",e[e.COMMODITY_PRODUCTS=2]="COMMODITY_PRODUCTS",e[e.INTEREST_RATE_PRODUCTS=3]="INTEREST_RATE_PRODUCTS",e[e.INVESTMENT_PRODUCTS=4]="INVESTMENT_PRODUCTS",e}({});let lY={1:"Produkty walutowe",2:"Produkty towarowe",3:"Produkty Stopy procentowej",4:"Produkty inwestycyjne"};var lZ=function(e){return e[e.FX_FORWARD=1]="FX_FORWARD",e[e.FX_SWAP=2]="FX_SWAP",e[e.FX_OPTION=3]="FX_OPTION",e[e.FRA=4]="FRA",e[e.IRS=5]="IRS",e[e.CIRS=6]="CIRS",e[e.INTEREST_RATE_OPTION=7]="INTEREST_RATE_OPTION",e[e.COMMODITY_DERIVATIVE=8]="COMMODITY_DERIVATIVE",e[e.DUAL_CURRENCY_DEPOSIT=9]="DUAL_CURRENCY_DEPOSIT",e[e.INVESTMENT_DEPOSIT=10]="INVESTMENT_DEPOSIT",e[e.COMMODITY_OPTION=11]="COMMODITY_OPTION",e[e.EMISSIONS_TRANSACTION=12]="EMISSIONS_TRANSACTION",e[e.FX_OPTION_STRATEGY=13]="FX_OPTION_STRATEGY",e}({});let lq={1:"FX Forward",2:"FX Swap",3:"FX Opcja",4:"FRA",5:"IRS",6:"CIRS",7:"Opcja na stopę procentową",8:"Swap towarowy",9:"Lokata dwuwalutowa",10:"Lokata inwestycyjna",11:"Opcja towarowa",12:"Transakcja na rynku uprawnień do emisji gaz\xf3w cieplarnianych",13:"Strategia opcyjna FX"};var lX=function(e){return e[e.EUR=1]="EUR",e[e.PLN=2]="PLN",e[e.USD=3]="USD",e[e.CAD_PLN=4]="CAD_PLN",e[e.CHF_PLN=5]="CHF_PLN",e[e.EUR_GBP=6]="EUR_GBP",e[e.EUR_PLN=7]="EUR_PLN",e[e.EUR_USD=8]="EUR_USD",e[e.GBP_PLN=9]="GBP_PLN",e[e.NOK_PLN=10]="NOK_PLN",e[e.USD_PLN=11]="USD_PLN",e[e.GBP=12]="GBP",e[e.NOK=13]="NOK",e}({});let l$={1:"EUR",2:"PLN",3:"USD",4:"CAD/PLN",5:"CHF/PLN",6:"EUR/GBP",7:"EUR/PLN",8:"EUR/USD",9:"GBP/PLN",10:"NOK/PLN",11:"USD/PLN",12:"GBP",13:"NOK"};var lJ=function(e){return e[e.TWO_WEEKS=10]="TWO_WEEKS",e[e.ONE_MONTH=0]="ONE_MONTH",e[e.TWO_MONTHS=7]="TWO_MONTHS",e[e.THREE_MONTHS=1]="THREE_MONTHS",e[e.SIX_MONTHS=2]="SIX_MONTHS",e[e.EIGHT_MONTHS=8]="EIGHT_MONTHS",e[e.NINE_MONTHS=9]="NINE_MONTHS",e[e.ONE_YEAR=4]="ONE_YEAR",e[e.TWO_YEARS=5]="TWO_YEARS",e[e.FIVE_YEARS=6]="FIVE_YEARS",e}({});let lQ={10:"2 tygodnie",0:"1 miesiąc",7:"2 miesiące",1:"3 miesiące",2:"6 miesięcy",8:"8 miesięcy",9:"9 miesięcy",4:"1 rok",5:"2 lata",6:"5 lat"};var l0=function(e){return e[e.ALUMINIUM=1]="ALUMINIUM",e[e.ZINC=2]="ZINC",e[e.CORN=3]="CORN",e[e.DIESEL=4]="DIESEL",e[e.EURIBOR=5]="EURIBOR",e[e.LIBOR=7]="LIBOR",e[e.WIBOR=8]="WIBOR",e[e.BRENT_OIL=11]="BRENT_OIL",e[e.JET_FUEL=12]="JET_FUEL",e[e.EUA=13]="EUA",e}({});let l1={1:"XAL (Aluminium)",2:"XZN (Cynk)",3:"KUKURYDZA",4:"DIESEL",5:"EURIBOR",7:"LIBOR",8:"WIBOR",11:"XBR (Ropa Brent)",12:"XJC (Jet Fuel)",13:"EUA"};var l2=function(e){return e[e.FIXED_FIXED=1]="FIXED_FIXED",e[e.FIXED_FLOAT=2]="FIXED_FLOAT",e[e.FLOAT_FLOAT=3]="FLOAT_FLOAT",e}({});let l6={1:"stała/stała",2:"stała/zmienna",3:"zmienna/zmienna"};var l4=function(e){return e[e.BUY=1]="BUY",e[e.SELL=2]="SELL",e[e.BUY_CALL=3]="BUY_CALL",e[e.BUY_CAP=4]="BUY_CAP",e[e.BUY_FLOOR=5]="BUY_FLOOR",e[e.BUY_PUT=6]="BUY_PUT",e[e.BUY_SELL=7]="BUY_SELL",e[e.SELL_BUY=8]="SELL_BUY",e[e.SELL_CALL=9]="SELL_CALL",e[e.SELL_CAP=10]="SELL_CAP",e[e.SELL_FLOOR=11]="SELL_FLOOR",e[e.SELL_PUT=12]="SELL_PUT",e}({});let l8={1:"Kupno",2:"Sprzedaż",3:"Kupno opcji CALL",4:"Kupno opcji CAP",5:"Kupno opcji FLOOR",6:"Kupno opcji PUT",7:"Kupno/Sprzedaż",8:"Sprzedaż/Kupno",9:"Sprzedaż opcji CALL",10:"Sprzedaż opcji CAP",11:"Sprzedaż opcji FLOOR",12:"Sprzedaż opcji PUT"},l3={1:"Niesymetrczny forward z dolną barierą dezaktywującą",2:"Niesymetrczny forward z g\xf3rną barierą dezaktywującą",3:"Symetryczny korytarz zerokosztowy z g\xf3rną barierą dezaktywującą",4:"Symetryczny azjatycki korytarz zerokosztowy",5:"Symetryczny forward z dolną barierą dezaktywującą",6:"Symetryczny forward z g\xf3rną barierą dezaktywującą",7:"Symetryczny korytarz zerokosztowy (waniliowy)",8:"Symetryczny korytarz zerokosztowy z dolną barierą dezaktywującą"},l5="KidListMobile",l9=c.Df.withName("PKOBPKidListMobile").create(()=>({container:{borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),paddingTop:"24px",marginTop:"15p
1x"},kidContainer:{borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),paddingBottom:"17px",marginBottom:"21px"},header:{marginTop:"0",fontSize:"16px",lineHeight:"20px",marginBottom:"24px"},values:{display:"flex",alignItems:"start",justifyContent:"start",flexDirection:"column",gap:"17px"},valueRow:{display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"16px",lineHeight:"20px",width:"100%"},label:{fontWeight:300},value:{fontWeight:600,textAlign:"right"},downloadBtn:{marginTop:"23px",maxHeight:"48px",fontSize:"16px",lineHeight:"20px",paddingRight:"22px",marginBottom:"0px",width:"100%"},iconContainer:{position:"relative",width:"39px",height:"39px",alignSelf:"flex-start",top:"-8px",left:"-7px","& img":{width:"100%",height:"39px !important"}},extension:{position:"absolute",top:"17px",left:"12px !important",color:h.Ay.palette.primary.main,fontWeight:600,fontSize:"7px",lineHeight:"1.5 !important",letterSpacing:"-0.2px"},downloadBtnText:{marginLeft:"-5px",[h.Ay.breakpoints.down(335)]:{fontSize:"14px"}}})),l7=e=>{let{data:t}=e,{classes:a}=l9(),i=(e,t)=>(0,n.jsxs)("div",{className:a.valueRow,children:[(0,n.jsx)("span",{className:a.label,children:e}),(0,n.jsx)("span",{className:a.value,children:t})]});return(0,n.jsx)("div",{className:a.container,"data-cy":l5,children:t.map((e,t)=>(0,n.jsxs)("div",{className:a.kidContainer,children:[(0,n.jsx)("h3",{className:a.header,children:e.kid_name}),(0,n.jsxs)("div",{className:a.values,children:[(null==e?void 0:e.type_option_strategy)&&i("Rodzaj strategii",null==l3?void 0:l3[e.type_option_strategy]),(null==e?void 0:e.currency)&&i("Waluta",null==l$?void 0:l$[e.currency]),(null==e?void 0:e.base_instrument)&&i("Instrument bazowy",null==l1?void 0:l1[e.base_instrument]),(null==e?void 0:e.tenor)&&i("Termin wygaśnięcia",null==lQ?void 0:lQ[e.tenor]),(null==e?void 0:e.direction)&&i("Kierunek transakcji",null==l8?void 0:l8[e.direction])]}),(0,n.jsxs)(A.default,{variant:"secondary",className:a.downloadBtn,href:(0,nr.W6)({path:"/api/public/".concat(null==e?void 0:e.filepath,"?content-disposition=attachment;filename=").concat(e.kid_name,".pdf")}),ariaLabel:"Pobierz plik pdf - ".concat(e.kid_name,". Uwaga, link otworzy się w nowym oknie"),isExternal:!0,children:[(0,n.jsxs)("div",{className:a.iconContainer,children:[(0,n.jsx)("span",{className:a.extension,style:{left:10},"data-cy":"".concat(l5,"--extension"),"aria-hidden":!0,children:"PDF"}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",alt:"Ikonka pliku z rozszerzeniem pdf",title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]})," ",(0,n.jsx)("span",{className:a.downloadBtnText,children:"Pobierz dokument KID"})]})]},"kidMobile_".concat(t)))})},re="KidListTable",rt=c.Df.withName("PKOBPKidListTable").create(()=>({container:{marginTop:"49px"},table:{width:"100%",borderCollapse:"collapse"},thead:{borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),"& th":{textAlign:"left",padding:"0",paddingBottom:"18px"},"& span":{margin:"0",padding:"0",fontSize:"14px",lineHeight:"20px"}},row:{borderBottom:"1px solid #eee"},cell:{padding:"16px 0",verticalAlign:"middle",fontSize:"16px",lineHeight:"20px",fontWeight:300,paddingRight:"16px",width:"calc(121px + 16px)","&:first-child":{width:"calc(488px + 16px)",paddingRight:"24px"},"&:last-child":{padding:"6px 0",maxWidth:"48px"}},cell__isCurrency:{width:"91px"},downloadLink:{...h.cc,color:h.Ay.palette.text.primary,display:"flex",alignItems:"start",justifyContent:"center","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},iconContainer:{position:"relative",width:"48px",height:"48px",alignSelf:"flex-start","& img":{width:"100%",height:"48px !important"}},extension:{position:"absolute",top:"20px",left:"15px !important",color:h.Ay.palette.primary.main,fontWeight:900,fontSize:"10px",lineHeight:"1.5 !important"}})),ra=e=>{let{data:t}=e,{classes:a}=rt(),i=t.some(e=>!!e.currency),l=t.some(e=>!!e.tenor),r=t.some(e=>!!e.direction),o=t.some(e=>!!e.base_instrument),s=t.some(e=>!!e.type_option_strategy);return(0,n.jsx)("div",{className:a.container,"data-cy":re,children:(0,n.jsxs)("table",{className:a.table,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("caption",{children:"Tabela przedstawiająca wybrane dokumenty KID na podstawie wybranych filtr\xf3w"})}),(0,n.jsx)("thead",{className:a.thead,children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Produkt"})}),i&&(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Waluta"})}),s&&(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Rodzaj strategii"})}),o&&(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Instrument bazowy"})}),l&&(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Termin wygaśnięcia"})}),r&&(0,n.jsx)("th",{children:(0,n.jsx)("span",{children:"Kierunek transakcji"})}),(0,n.jsx)("th",{children:(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:"Plik do pobrania"})})})]})}),(0,n.jsx)("tbody",{children:t.map((e,t)=>(0,n.jsxs)("tr",{className:a.row,children:[(0,n.jsx)("td",{className:a.cell,children:e.kid_name}),i&&(0,n.jsx)("td",{className:f()(a.cell,a.cell__isCurrency),children:(null==l$?void 0:l$[e.currency])||""}),s&&(0,n.jsx)("td",{className:a.cell,children:(null==l3?void 0:l3[e.type_option_strategy])||""}),o&&(0,n.jsx)("td",{className:a.cell,children:(null==l1?void 0:l1[e.base_instrument])||""}),l&&(0,n.jsx)("td",{className:a.cell,children:(null==lQ?void 0:lQ[e.tenor])||""}),r&&(0,n.jsx)("td",{className:a.cell,children:(null==l8?void 0:l8[e.direction])||""}),(0,n.jsx)("td",{className:a.cell,children:(0,n.jsx)("a",{className:a.downloadLink,href:(0,nr.W6)({path:"/api/public/".concat(null==e?void 0:e.filepath,"?content-disposition=attachment;filename=").concat(e.kid_name,".pdf")}),target:"_blank","data-cy":"".concat(re,"--btn"),"aria-label":"Pobierz plik pdf - ".concat(e.kid_name,". Uwaga, link otworzy się w nowym oknie"),children:(0,n.jsxs)("div",{className:a.iconContainer,children:[(0,n.jsx)("span",{className:a.extension,style:{left:10}
1,"data-cy":"".concat(re,"--extension"),"aria-hidden":!0,children:"PDF"}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",alt:"Ikonka pliku z rozszerzeniem pdf",title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]})})})]},"kidDesktop_".concat(t)))})]})})},rn="KidSearcher",ri=c.Df.withName("PKOBPKidSearcher").create(()=>({inputContainer:{position:"relative",width:"100%",maxWidth:"811px",display:"flex",alignItems:"center",justifyContent:"start",marginTop:"40px",[h.Ay.breakpoints.down("md")]:{marginTop:"23px"}},input:{width:"100%",height:"48px",fontSize:16,borderRadius:8,border:"1px solid ".concat(h.Ay.palette.secondary.backgroundGrey),padding:"12px 110px 12px 15px",fontFamily:h.Ay.typography.fontFamily,background:h.Ay.palette.secondary.backgroundGrey,transition:"background 0.3s ease-in-out , border 0.3s ease-in-out","&:hover, &:focus, &:active, &:visited, &:focus-visible":{background:h.Ay.palette.primary.contrastText,border:"1px solid ".concat(h.Ay.palette.primary.main),outline:"none"},"&::placeholder":{color:h.Ay.palette.grey[700],fontWeight:400}},buttons:{position:"absolute",top:9,right:13,display:"flex",alignItems:"center",justifyContent:"start",gap:"11px"},inputButton:{width:"32px",height:"32px",border:"none",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",padding:"0",cursor:"pointer","& svg":{background:"transparent",width:"24px",height:"24px",display:"block"}},inputButton__isSearch:{"& svg":{width:"32px",height:"32px",fill:h.Ay.palette.primary.main}},inputButton__isClose:{"& svg":{fill:h.Ay.palette.grey[400]}},line:{width:"1px",height:"24px",background:h.Ay.palette.secondary.borders}})),rl=e=>{let{setSearchPhrase:t}=e,{classes:a}=ri(),[i,l]=(0,d.useState)("");return(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),i&&t(i)},className:a.inputContainer,children:[(0,n.jsx)("input",{type:"text",placeholder:"Wyszukaj","aria-label":"Wpisz dowolną frazę, aby wyszukać dokument KID",value:i,onChange:e=>{var a,n;l(null==e||null==(a=e.target)?void 0:a.value),(null==e||null==(n=e.target)?void 0:n.value)||t("")},className:a.input,"data-cy":"".concat(rn,"--searchInput")}),(0,n.jsxs)("div",{className:a.buttons,children:[!!(null==i?void 0:i.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{type:"button",onClick:()=>{l(""),t("")},className:f()(a.inputButton,a.inputButton__isClose),"data-cy":"".concat(rn,"--clearSearchBtn"),"aria-label":"Usuń wpisaną frazę",children:(0,n.jsx)(aM.A,{})}),(0,n.jsx)("span",{className:a.line})]}),(0,n.jsx)("button",{type:"submit",className:f()(a.inputButton,a.inputButton__isSearch),"data-cy":"".concat(rn,"--searchBtn"),"aria-label":"Rozpocznij wyszukiwanie dokumentu KID",children:(0,n.jsx)(aH.A,{})})]})]})},rr=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{transform:"translate(0 -0.03)",children:[(0,n.jsx)("rect",{width:"24",height:"24",transform:"translate(0 0.03)",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(0 -1)",children:[(0,n.jsx)("path",{"data-name":"Path 16568",d:"M5,11.037H19v-4H5Zm13.007-1H6v-2H18Z",transform:"translate(0 -1.007)"}),(0,n.jsx)("path",{"data-name":"Path 16569",d:"M5,17.03H19V13.037H5Zm13.007-.993H6v-2H18Z",transform:"translate(0 -2)"}),(0,n.jsx)("path",{"data-name":"Path 18772",d:"M5,17.03H19V13.037H5Zm13.007-.993H6v-2H18Z",transform:"translate(0 2.993)"})]})]})}),ro="data-moveleft",rs="data-moveright",rd="PillsSlider",rc=c.Df.withName("PKOBPPillsSlider").create(()=>({container:{position:"relative",padding:"10px 0",display:"flex",alignItems:"center",justifyContent:"start",width:"100%",height:"56px",overflowX:"clip"},pillsContainer:{position:"absolute",top:"0",bottom:0,left:"0",display:"flex",alignItems:"center",justifyContent:"start",gap:"".concat(8,"px"),transition:"transform 0.75s ease-in-out",[h.Ay.breakpoints.down("md")]:{left:"16px"}},pillsContainer__isOutsideMap:{[h.Ay.breakpoints.down("md")]:{left:"0"}},arrow:{position:"absolute",top:0,right:0,zIndex:1,width:"".concat(56,"px"),height:"".concat(56,"px"),background:"linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%)",border:"none",cursor:"pointer",[h.Ay.breakpoints.up("md")]:{padding:"16px"},[h.Ay.breakpoints.down("md")]:{top:"4px",width:"".concat(48,"px"),height:"".concat(48,"px")}},arrowPrev:{left:"0",right:"unset",background:"linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 1) 100%)"},arrowPrev__isOutsideMap:{left:"-16px"},arrowNext__isOutsideMap:{right:"-16px"}})),rp=e=>{let{pillClass:t,pillContainerClass:a,children:i,ariaLabelForPillsGroup:l,filters:r}=e,{classes:o}=rc(),[s,c]=(0,d.useState)(0),[p,u]=(0,d.useState)(0),[m,x]=(0,d.useState)(!1),[g,y]=(0,d.useState)(!1),[b,v]=(0,d.useState)([]),[A,_]=(0,d.useState)("right"),j=(0,w.A)(h.Ay.breakpoints.down("md")),k=(0,d.useRef)(null),C=(0,d.useRef)(null),N=(0,d.useRef)(null),S=(0,d.useRef)(null),T=j?48:56,z=15*!j,L=()=>{let e=k.current.offsetWidth,n=C.current.offsetWidth,i=e-T+z,l=k.current.querySelectorAll(".".concat(t));if(!i)return;let r=[],o=0,s=j?8:16,d=j?-((n-e)*1)-T+15+30:-((n-e)*1);if("left"===A){r.push(d);for(let e=l.length-1;e>=0;e--){let t=l[e],n=(null==t?void 0:t.offsetWidth)+8;if(o+(null==t?void 0:t.offsetWidth)<=i+s)o+=n;else{let e=j?15:T-15;r.push(o+r[r.length-1]-e),o=n+e,t.parentNode.classList.contains(a)&&t.setAttribute(ro,"true")}}r.pop(),r.reverse()}
1else l.forEach(e=>{let t=(null==e?void 0:e.offsetWidth)+8;o+(null==e?void 0:e.offsetWidth)<=i+s?o+=t:(r.length>0?r.push(-o+r[r.length-1]+T-15):r.push(-o+T-15),o=t+T-15,e.parentNode.classList.contains(a)&&e.setAttribute(rs,"true"))}),n+r[r.length-1]<i&&(r[r.length-1]=d);v(r)},P=e=>{"next"===e?u(p+1):u(p-1),L()};return(0,d.useEffect)(()=>{(null==b?void 0:b.length)&&(null==b?void 0:b[0])!==0?0===p?(c(0),x(!1),y(!0),_("right")):p===b.length?(c(b[p-1]),x(!0),y(!1),_("left")):p>b.length?(c((null==b?void 0:b[0])||0),x(!!(null==b?void 0:b[0])),y(!(null==b?void 0:b[0])),_((null==b?void 0:b[0])?"left":"right")):(c(b[p-1]),x(!0),y(!0)):(c(0),x(!1),y(!1))},[p,b]),(0,d.useEffect)(()=>{k.current.querySelectorAll(".".concat(t)).forEach(e=>{e.removeAttribute(ro),e.removeAttribute(rs)}),L()},[A]),(0,d.useEffect)(()=>{let e=setTimeout(()=>{L()},500),t=()=>{u(0),_("right"),L()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(e)}},[]),(0,d.useEffect)(()=>{let e=k.current.querySelectorAll(".".concat(t));if(!(null==e?void 0:e.length))return;let n=e=>{var t,n,i,l,r;let o=p===(null==b?void 0:b.length)?0x5f5e0ff:-1*b[p],s=0===p?0:-1*b[p-1],d=(null==e||null==(n=e.target)||null==(t=n.parentElement)?void 0:t.classList.contains(a))?null==e||null==(l=e.target)||null==(i=l.parentElement)?void 0:i.offsetLeft:null==e||null==(r=e.target)?void 0:r.offsetLeft;d>o?P("next"):d<s&&P("prev")};return e.forEach(e=>e.addEventListener("focus",n)),()=>{e.forEach(e=>e.removeEventListener("focus",n))}},[p,JSON.stringify(b)]),(0,d.useEffect)(()=>{L()},[JSON.stringify(r)]),(0,n.jsxs)(ew.A,{"data-cy":rd,className:o.container,ref:k,children:[m&&(0,n.jsx)("button",{onClick:()=>P("prev"),ref:N,className:f()(o.arrow,o.arrowPrev,{[o.arrowPrev__isOutsideMap]:!0},"PillsSliderArrowPrev"),"data-cy":"".concat(rd,"--leftArrowBtn"),tabIndex:-1,children:(0,n.jsx)(t_.A,{})}),(0,n.jsx)(ew.A,{className:f()(o.pillsContainer,{[o.pillsContainer__isOutsideMap]:!0}),style:{transform:"translate3d(".concat(s,"px, 0, 0)")},ref:C,role:"group","aria-label":l,children:i}),g&&(0,n.jsx)("button",{onClick:()=>P("next"),ref:S,className:f()(o.arrow,{[o.arrowNext__isOutsideMap]:!0}),"data-cy":"".concat(rd,"--rightArrowBtn"),tabIndex:-1,children:(0,n.jsx)(tj.A,{})})]})};var ru=a(17587);let rm=c.Df.withName("PKOBPKidPill").create(()=>({pill:{position:"relative",whiteSpace:"nowrap",padding:"17px 19px 15px 19px",lineHeight:1,border:"solid 1px ".concat(h.Ay.palette.secondary.bordersDark),maxHeight:46,backgroundColor:"#FFFFFF","&:hover, &:focus":{backgroundColor:h.Ay.palette.secondary.hover,borderColor:h.Ay.palette.secondary.bordersDark},"& svg, & svg path":{fill:h.Ay.palette.primary.main},[h.Ay.breakpoints.down("md")]:{padding:"14px 16px 12px 16px ",minHeight:"40px",maxHeight:"40px",border:"solid 1px ".concat(h.Ay.palette.secondary.borders),height:"40px"}},pill__isIcon:{padding:"11px 20px",[h.Ay.breakpoints.down("md")]:{padding:"7px 16px"}},pill__isActive:{maxHeight:46,fontWeight:600,color:h.Ay.palette.primary.main,border:"solid 1px #00006699 !important",backgroundColor:"#d6e0ff","&:hover, &:focus":{border:"solid 1px #00006699 !important",backgroundColor:"#d6e0ff"},"& svg, & svg path":{fill:h.Ay.palette.primary.main}}})),rh=e=>{let{handleBtnClick:t,className:a,label:i,isActive:l,cyType:r,iconLeft:o=null,iconRight:s=null,ariaExpanded:d,ariaLabel:c,id:p}=e,{classes:u}=rm();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(iT.A,{label:i,cy:"".concat("KidPill").concat(r?"--"+r.toLowerCase().replace(/\s+/g,""):""),enableMobileStyles:!0,handleClickCallback:t,classname:f()("KID_SELECTOR_PILL",u.pill,a,{[u.pill__isActive]:l,[u.pill__isIcon]:o||s}),small:!0,iconLeft:o,iconRight:s,ariaExpanded:d,ariaLabel:c,id:p})})};var rx=a(89342),rg=a(6234),ry=a(21123);let rb=["currency","tenor","direction","base_instrument","cirs_type"],rf=c.Df.withName("PKOBPFilterForm").create(()=>({container:{padding:"25px 17px 10px 17px","& .MuiFormControlLabel-root":{marginBottom:"15px"},[h.Ay.breakpoints.down("md")]:{padding:"0"}},checkboxWrapper:{marginTop:"-3px",marginLeft:"-3px"},checkbox:{width:"100%",alignItems:"start",margin:0,"& .MuiFormControl
1Label-label":{marginTop:"3px"}},checkboxInput:{padding:"0 10px 0 0","& input:focus + span":{border:"solid 1px",borderColor:h.Ay.palette.primary.light},"& input:focus + svg":{fill:h.Ay.palette.primary.light},"& input:focus-visible + svg":{outline:"1px solid black",borderRadius:"4px"}},checkboxIcon:{display:"inline-block",width:"20px",height:"20px",border:"solid 1px ".concat(h.Ay.palette.secondary.bordersDark),borderRadius:"2px",margin:"3px"},checkboxLabel:{fontSize:"16px",fontFamily:h.Ay.typography.fontFamily},buttons:{display:"flex",alignItems:"center",justifyContent:"space-between",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),padding:"24px 23px",background:"#fff",borderRadius:"0 0 16px 16px",boxShadow:"0px -3px 6px #81818114",[h.Ay.breakpoints.down("md")]:{position:"fixed",bottom:0,left:0,width:"100%",padding:"16px 18px",gap:16}},btn:{minWidth:"154px",margin:0,[h.Ay.breakpoints.down("md")]:{minWidth:"unset",width:"100%"}}})),rv=e=>{let{radioOptions:t,isActive:a,setActiveBox:i,properties:l,onUpdateProperties:r,onResetProperties:o,type:s}=e,{classes:c}=rf(),p=rb.includes(s),[u,m]=(0,d.useState)(p?[]:"");(0,d.useEffect)(()=>{let e=null==l?void 0:l[s];p?m("string"==typeof e&&e.length?e.split(","):[]):m("string"==typeof e?e:"")},[l,s,p]);let h=e=>{let{value:t,checked:a}=e.target;m(e=>Array.isArray(e)?a?[...e,t]:e.filter(e=>e!==t):[])},x=()=>{i("");let e=Array.isArray(u)?u.join(","):u;switch(s){case"product_type":o(["product"]),r({product_type:e});break;case"type_option_strategy":o(["product","product_type"]),r({type_option_strategy:e});break;default:r({[s]:e})}},g=()=>{switch(i(""),m(p?[]:""),s){case"product_type":o(["product"]);break;case"type_option_strategy":o(["product","product_type"]);break;default:r({[s]:""})}},y=(e,t)=>{if("Enter"===e.key||" "===e.key){t();let a=e.target.closest(".KidSelectorPillContainer");if(a){let e=a.querySelector("button");e&&setTimeout(()=>{e.focus()},100)}}};return a&&(0,n.jsxs)("div",{"data-cy":"FilterForm",children:[(0,n.jsx)(id.A,{component:"fieldset",className:c.container,tabIndex:-1,children:p?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(is.A,{className:c.checkboxWrapper,children:t.map(e=>(0,n.jsx)(rx.A,{className:c.checkbox,control:(0,n.jsx)(rg.A,{className:c.checkboxInput,checked:Array.isArray(u)&&u.includes(e.id),onChange:h,value:e.id,sx:{"& .MuiSvgIcon-root":{fontSize:26}},icon:(0,n.jsx)("span",{className:c.checkboxIcon}),inputProps:{tabIndex:0},disableRipple:!0}),label:e.label},e.id))})}):(0,n.jsx)(ry.A,{radioOptions:t,defaultValue:"",value:u,handleChange:e=>{m(e.target.value)},wcagPrefix:"Wybierz jedną z dostępnych opcji",name:s})}),(0,n.jsxs)("div",{className:c.buttons,children:[(0,n.jsx)(A.default,{className:c.btn,variant:"secondary",onClickCallback:g,ariaLabel:"Resetuj wybrane filtry",onKeyDown:e=>y(e,g),children:"Resetuj"}),(0,n.jsx)(A.default,{className:c.btn,variant:"primary",onClickCallback:x,ariaLabel:"Filtruj zgodnie z zaznaczonymi opcjami",onKeyDown:e=>y(e,x),children:"Filtruj"})]})]})},rw=[{label:lY[lV.CURRENCY_PRODUCTS],value:lV.CURRENCY_PRODUCTS,children:[{label:lq[lZ.FX_OPTION_STRATEGY],value:lZ.FX_OPTION_STRATEGY,options:{currencies:[{label:l$[lX.EUR_PLN],value:lX.EUR_PLN},{label:l$[lX.USD_PLN],value:lX.USD_PLN}],tenors:[{label:lQ[lJ.ONE_YEAR],value:lJ.ONE_YEAR},{label:lQ[lJ.TWO_YEARS],value:lJ.TWO_YEARS}],directions:[{label:l8[l4.BUY],value:l4.BUY},{label:l8[l4.SELL],value:l4.SELL}]}},{label:lq[lZ.FX_OPTION],value:lZ.FX_OPTION,options:{currencies:[{label:l$[lX.EUR_PLN],value:lX.EUR_PLN},{label:l$[lX.EUR_USD],value:lX.EUR_USD},{label:l$[lX.USD_PLN],value:lX.USD_PLN}],tenors:[{label:lQ[lJ.SIX_MONTHS],value:lJ.SIX_MONTHS},{label:lQ[lJ.ONE_YEAR],value:lJ.ONE_YEAR},{label:lQ[lJ.TWO_YEARS],value:lJ.TWO_YEARS}],directions:[{label:l8[l4.BUY_CALL],value:l4.BUY_CALL},{label:l8[l4.BUY_PUT],value:l4.BUY_PUT},{label:l8[l4.SELL_CALL],value:l4.SELL_CALL},{label:l8[l4.SELL_PUT],value:l4.SELL_PUT}]}},{label:lq[lZ.FX_FORWARD],value:lZ.FX_FORWARD,options:{currencies:[{label:l$[lX.CAD_PLN],value:lX.CAD_PLN},{label:l$[lX.CHF_PLN],value:lX.CHF_PLN},{label:l$[lX.EUR_GBP],value:lX.EUR_GBP},{label:l$[lX.EUR_PLN],value:lX.EUR_PLN},{label:l$[lX.EUR_USD],value:lX.EUR_USD},{label:l$[lX.GBP_PLN],value:lX.GBP_PLN},{label:l$[lX.NOK_PLN],value:lX.NOK_PLN},{label:l$[lX.USD_PLN],value:lX.USD_PLN}],tenors:[{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS},{label:lQ[lJ.ONE_YEAR],value:lJ.ONE_YEAR},{label:lQ[lJ.TWO_YEARS],value:lJ.TWO_YEARS}],directions:[{label:l8[l4.BUY],value:l4.BUY},{label:l8[l4.SELL],value:l4.SELL}]}},{label:lq[lZ.FX_SWAP],value:lZ.FX_SWAP,options:{currencies:[{label:l$[lX.CAD_PLN],value:lX.CAD_PLN},{label:l$[lX.CHF_PLN],value:lX.CHF_PLN},{label:l$[lX.EUR_GBP],value:lX.EUR_GBP},{label:l$[lX.EUR_PLN],value:lX.EUR_PLN},{label:l$[lX.EUR_USD],value:lX.EUR_USD},{label:l$[lX.GBP_PLN],value:lX.GBP_PLN},{label:l$[lX.NOK_PLN],value:lX.NOK_PLN},{label:l$[lX.USD_PLN],value:lX.USD_PLN}],tenors:[{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS},{label:lQ[lJ.ONE_YEAR],value:lJ.ONE_YEAR},{label:lQ[lJ.TWO_YEARS],value:lJ.TWO_YEARS}],directions:[{label:l8[l4.BUY_SELL],value:l4.BUY_SELL},{label:l8[l4.SELL_BUY],value:l4.SELL_BUY}]}}]},{label:lY[lV.COMMODITY_PRODUCTS],value:lV.COMMODITY_PRODUCTS,children:[{label:lq[lZ.EMISSIONS_TRANSACTION],value:lZ.EMISSIONS_TRANSACTION,options:{tenors:[{label:lQ[lJ.ONE_MONTH],value:lJ.ONE_MONTH},{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS}],directions:[{label:l8[l4.BUY],value:l4.BUY},{label:l8[l4.SELL],value:l4.SELL}]}},{label:lq[lZ.COMMODITY_DERIVATIVE],value:lZ.COMMODITY_DERIVATIVE,options:{currencies:[{label:l$[lX.EUR],value:lX.EUR},{label:l$[lX.USD],value:lX.USD}],baseInstruments:[{label:l1[l0.ALUMINIUM],value:l0.ALUMINIUM},{label:l1[l0.BRENT_OIL],value:l0.BRENT_OIL},{label:l1[l0.JET_FUEL],value:l0.JET_FUEL},{label:l1[l0.ZINC],value:l0.ZINC}],tenors:[{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS},{label:lQ[lJ.SIX_MONTHS],value:lJ.SIX_MONTHS},{label:lQ[lJ.ONE_YEAR],value:lJ.ONE_YEAR}],directions:[{label:l8[l4.BUY],value:l4.BUY},{label:l8[l4.SELL],value:l4.SELL}]}},{label:lq[lZ.COMMODITY_OPTION],value:lZ.COMMODITY_OPTION,options:{directions:[{label:l8[l4.BUY_CALL],value:l4.BUY_CALL},{label:l8[l4.BUY_PUT],value:l4.BUY_PUT}],baseInstruments:[{label:l1[l0.BRENT_OIL],value:l0.BRENT_OIL},{label:l1[l0.JET_FUEL],value:l0.JET_FUEL}]}}]},{label:lY[lV.INTEREST_RATE_PRODUCTS],value:lV.INTEREST_RATE_PRODUCTS,children:[{label:lq[lZ.INTEREST_RATE_OPTION],value:lZ.INTEREST_RATE_OPTION,options:{currencies:[{label:l$[lX.EUR],value:lX.EUR},{label:l$[lX.PLN],value:lX.PLN}],tenors:[{label:lQ[lJ.TWO_YEARS],value:lJ.TWO_YEARS},{label:lQ[lJ.FIVE_YEARS],value:lJ.FIVE_YEARS}],directions:[{label:l8[l4.BUY_CAP],value:l4.BUY_CAP},{label:l8[l4.SELL_CAP],value:l4.SELL_CAP},{label:l8[l4.BUY_FLOOR],value:l4.BUY_FLOOR},{label:l8[l4.SELL_FLOOR],value:l4.SELL_FLOOR}],baseInstruments:[{label:l1[l0.EURIBOR],value:l0.EURIBOR},{label:l1[l0.WIBOR],value:l0.WIBOR}]}},{label:lq[lZ.IRS],value:lZ.IRS,options:{currencies:[{label:l$[lX.EUR],value:lX.EUR},{label:l$[lX.PLN],value:lX.PLN},{label:l$[lX.USD],value:lX.USD}],baseInstruments:[{label:l1[l0.EURIBOR],value:l0.EURIBOR},{label:l1[l0.WIBOR],value:l0.WIBOR},{label:l1[l0.LIBOR],value:l0.LIBOR}],tenors:[{label:lQ[lJ.FIVE_YEARS],value:lJ.FIVE_YEARS}],directions:[{label:l8[l4.BUY],value:l4.BUY}]}},{label:lq[lZ.CIRS],value:lZ.CIRS,options:{currencies:[{label:l$[lX.EUR_PLN],value:lX.EUR_PLN}],directions:[{label:l8[l4.BUY],value:l4.BUY},{label:l8[l4.SELL],value:l4.SELL}],baseInstruments:[{label:l1[l0.LIBOR],value:l0.LIBOR},{label:l1[l0.WIBOR],value:l0.WIBOR}],tenors:[{label:lQ[lJ.FIVE_YEARS],value:lJ.FIVE_YEARS}],cirsTypes:[{label:l6[l2.FIXED_FIXED],value:l2.FIXED_FIXED},{label:l6[l2.FIXED_FLOAT],value:l2.FIXED_FLOAT},{label:l6[l2.FLOAT_FLOAT],value:l2.FLOAT_FLOAT}]}},{label:lq[lZ.FRA],value:lZ.FRA,options:{currencies:[{label:l$[lX.EUR],value:lX.EUR},{label:l$[lX.USD],value:lX.USD}],baseInstruments:[{label:l1[l0.WIBOR],value:l0.WIBOR}],tenors:[{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS},{label:lQ[lJ.SIX_MONTHS],value:lJ.SIX_MONTHS},{label:lQ[lJ.ONE_YEAR],value:lJ.ONE_YEAR}],directions:[{label:l8[l4.BUY],value:l4.BUY},{label:l8[l4.SELL],value:l4.SELL}]}}]},{label:lY[lV.INVESTMENT_PRODUCTS],value:lV.INVESTMENT_PRODUCTS,children:[{label:lq[lZ.INVESTMENT_DEPOSIT],value:lZ.INVESTMENT_DEPOSIT,options:{currencies:[{label:l$[lX.EUR],value:lX.EUR},{label:l$[lX.PLN],value:lX.PLN},{label:l$[lX.USD],value:lX.USD},{label:l$[lX.GBP],value:lX.GBP},{label:l$[lX.NOK],value:lX.NOK}],tenors:[{label:lQ[lJ.TWO_WEEKS],value:lJ.TWO_WEEKS},{label:lQ[lJ.ONE_MONTH],value:lJ.ONE_MONTH},{label:lQ[lJ.TWO_MONTHS],value:lJ.TWO_MONTHS},{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS},{label:lQ[lJ.SIX_MONTHS],value:lJ.SIX_MONTHS}]}},{label:lq[lZ.DUAL_CURRENCY_DEPOSIT],value:lZ.DUAL_CURRENCY_DEPOSIT,options:{currencies:[{label:l$[lX.EUR_PLN],value:lX.EUR_PLN},{label:l$[lX.EUR_USD],value:lX.EUR_USD},{label:l$[lX.USD_PLN],value:lX.USD_PLN}],tenors:[{label:lQ[lJ.ONE_MONTH],value:lJ.ONE_MONTH},{label:lQ[lJ.THREE_MONTHS],value:lJ.THREE_MONTHS}]}}]}],rA={"":null,cirs_type:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"pko_icon_commission_24_clip-path",children:(0,n.jsx)("path",{"data-name":"Path 2010",d:"M274.847-555.02h-8.265V-571h8.265l-4.028,3.14-1.959,4.76,1.86,4.75Z",fill:"#000066"})})}),(0,n.jsx)("rect",{width:"24",height:"24",fill:"#000066",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(-265 575)",children:[(0,n.jsx)("g",{"data-name":"Group 2158","clip-path":"url(#pko_icon_commission_24_clip-path)",children:(0,n.jsx)("g",{"data-name":"Group 2157",children:(0,n.jsx)("path",{"data-name":"Path 2009",d:"M274.568-569.48a6.453,6.453,0,0,1,6.4,6.5,6.453,6.453,0,0,1-6.465,6.44,6.453,6.453,0,0,1-6.4-6.46,6.472,6.472,0,0,1,6.465-6.47m0-1a7.451,7.451,0,0,0-7.4,7.5,7.451,7.451,0,0,0,7.46,7.44,7.451,7.451,0,0,0,7.4-7.47A7.469,7.469,0,0,0,274.568-570.47Z",fill:"#000066"})})}),(0,n.jsx)("path",{"data-name":"Path 2011",d:"M276.313-562.029c-.983,0-1.823-.923-1.823-2.674s.84-2.675,1.823-2.675,1.835.924,1.835,2.675S277.309-562.029,276.313-562.029Zm0-4.713c-.395,0-.707.624-.707,2.027s.312,2.015.707,2.015.72-.612.72-2.015S276.721-566.742,276.313-566.742Zm5.338-.456-4.006,7.748a1.2,1.2,0,0,1-1.068.744,3.172,3.172,0,0,1-.336-.024l3.994-7.724a1.213,1.213,0,0,1,1.08-.767A2.8,2.8,0,0,1,281.651-567.2Zm.024,8.576c-.984,0-1.824-.924-1.824
1-2.675s.84-2.674,1.824-2.674,1.835.923,1.835,2.674S282.67-558.622,281.675-558.622Zm0-4.714c-.4,0-.7.624-.7,2.027s.3,2.015.7,2.015c.419,0,.719-.612.719-2.015S282.094-563.336,281.675-563.336Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2008",d:"M279.044-570a6.981,6.981,0,0,1,6.962,7,6.981,6.981,0,0,1-6.962,7,6.981,6.981,0,0,1-6.962-7,6.981,6.981,0,0,1,6.962-7m0-1a7.978,7.978,0,0,0-7.957,8,7.978,7.978,0,0,0,7.957,8A7.979,7.979,0,0,0,287-563h0A7.979,7.979,0,0,0,279.044-571Z",fill:"#000066"})]})]}),{}),tenor:(0,n.jsx)(aS.A,{}),currency:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#000066",opacity:"0.003"}),(0,n.jsxs)("g",{transform:"translate(152 -154)",children:[(0,n.jsxs)("g",{"data-name":"Group 2385",children:[(0,n.jsx)("path",{"data-name":"Path 2348",d:"M-139.685,169.024h-2.91v-.087a1.932,1.932,0,0,1,.384-1.048l1.463-2.479h-1.727v-.527h2.71v.079a2.059,2.059,0,0,1-.359,1.04l-1.455,2.478h1.894Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2349",d:"M-138.8,169.024V166.6l-.536.359c-.176-.279-.063-.592.3-.831l.24-.145V163h.936v2.526l.639-.431c.184.271.064.6-.295.838l-.344.216v2.871Z",fill:"#000066"})]}),(0,n.jsx)("path",{"data-name":"Path 2350",d:"M-140,159a7,7,0,0,1,7,7,7,7,0,0,1-7,7,7,7,0,0,1-7-7,7,7,0,0,1,7-7m0-1a8,8,0,0,0-8,8,8,8,0,0,0,8,8,8,8,0,0,0,8-8h0A8,8,0,0,0-140,158Z",fill:"#000066"})]})]}),{}),currency_pair:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{children:(0,n.jsx)("rect",{"data-name":"Rectangle 7376",width:"24",height:"24",fill:"none"})})}),(0,n.jsx)("rect",{"data-name":"Rectangle 7375",width:"24",height:"24",fill:"#fff",opacity:"0"}),(0,n.jsx)("g",{"data-name":"Group 19386",children:(0,n.jsxs)("g",{"data-name":"Group 19385","clip-path":"url(#clip-path)",children:[(0,n.jsx)("path",{"data-name":"Path 18779",d:"M11.725,21l5.92-1.913L21,14.531a.956.956,0,0,0-1.336.2l-2.606,3.538L11.685,20,6.277,18.772a.957.957,0,0,0-1.119.759Z",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 18780",d:"M8.127,8.791l.025-1.442a1.215,1.215,0,0,1,.246.374c.114.217.221.414.552.42a1.229,1.229,0,0,0,.379-.072,1.311,1.311,0,0,0-1.168-1.22l.016-.937L7.67,5.905l-.016.937a1.191,1.191,0,0,0-1.21,1.1c-.012.721.5,1.12,1.166,1.4l-.028,1.612c-.26-.076-.346-.273-.49-.587a.561.561,0,0,0-.527-.41.953.953,0,0,0-.365.079,1.408,1.408,0,0,0,1.376,1.37l-.016.923.507.009.016-.936A1.275,1.275,0,0,0,9.34,10.177c.009-.655-.477-1.068-1.213-1.386m-.5-.229a.766.766,0,0,1-.4-.73.534.534,0,0,1,.426-.525Zm.465,2.393.024-1.377a.747.747,0,0,1,.435.729.617.617,0,0,1-.459.648",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 18781",d:"M17.556,10.6l.448.264a1.608,1.608,0,0,1-1.64,1.153c-.928,0-1.633-.641-1.888-1.9h-.72a.557.557,0,0,1,.568-.633H14.4a4.088,4.088,0,0,1-.016-.456V8.968h-.624a.556.556,0,0,1,.477-.627.549.549,0,0,1,.091,0h.1c.193-1.257.889-2.114,1.921-2.114a1.654,1.654,0,0,1,1.641,1.265,1.2,1.2,0,0,1-.584.136.646.646,0,0,1-.465-.24c-.344-.4-.376-.608-.7-.608-.36,0-.688.424-.76,1.56H17.23c0,.4-.313.632-.809.632h-.96c0,.185,0,.368.016.521H17.23c0,.4-.313.632-.809.632h-.872c.153.824.489,1.2.945,1.2a1.216,1.216,0,0,0,1.062-.716",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 18782",d:"M15.88,4a5.116,5.116,0,0,0-4,1.92,4.314,4.314,0,0,0-.58.9,4.942,4.942,0,0,0-.55,2.3,5.109,5.109,0,0,0,.55,2.31,4.762,4.762,0,0,0,.58.9,5,5,0,0,0,1.15,1.05c.03,0,.05-.01.08-.01.19-.03.39-.07.59-.1l.29-.06c.26-.04.52-.08.77-.12a4.03,4.03,0,0,1-2.88-2.98,3.636,3.636,0,0,1-.13-.99,3.585,3.585,0,0,1,.13-.99,3.954,3.954,0,0,1,.57-1.31,4.126,4.126,0,1,1,4.28,6.34,2.8,2.8,0,0,1,.81.48,1.879,1.879,0,0,1,.24.25A5.129,5.129,0,0,0,15.88,4",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 18783",d:"M7.88,5A4.131,4.131,0,0,1,11.3,6.82a4.314,4.314,0,0,1,.58-.9,5.125,5.125,0,1,0-6.32,7.77c.19-.1.39-.2.6-.29a5.515,5.515,0,0,1,.71-.28A4.122,4.122,0,0,1,7.88,5m1.67,7.89a2.13,2.13,0,0,1,.25.03,10.72,10.72,0,0,1,1.06.23.737.737,0,0,1,.14.04,5.117,5.
1117,0,0,0,.88-.86,4.762,4.762,0,0,1-.58-.9,4.141,4.141,0,0,1-1.75,1.46",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 18784",d:"M5.531,15.949l.366-.215.257-.141c.27-.146.545-.284.822-.408a5.316,5.316,0,0,1,.813-.3,3.4,3.4,0,0,1,.828-.1,5.277,5.277,0,0,1,.87.075c.293.047.589.114.884.192s.578.178.94.259a4.261,4.261,0,0,0,1.063.089c.35-.013.656-.043,1-.084s.649-.114.957-.165.616-.1.928-.146A1.877,1.877,0,0,1,16.013,15a.449.449,0,0,1,.347.3.642.642,0,0,1,.035.264.294.294,0,0,1-.072.176,1.382,1.382,0,0,1-.592.329,7.1,7.1,0,0,1-.863.211l-.934.182h-.009l-.935.183-.467.092a4.938,4.938,0,0,0-.509.132,7.194,7.194,0,0,0-.95.377.872.872,0,0,0-.438,1.153.839.839,0,0,0,.079.14,6.944,6.944,0,0,1,.774-.428,6.207,6.207,0,0,1,.819-.326,3.975,3.975,0,0,1,.413-.107l.464-.092.934-.182.936-.183a7.757,7.757,0,0,0,.986-.244,2.228,2.228,0,0,0,1.028-.628,1.253,1.253,0,0,0,.286-.689,1.56,1.56,0,0,0-.083-.674,1.4,1.4,0,0,0-.393-.6,1.485,1.485,0,0,0-.614-.32,2.745,2.745,0,0,0-1.138-.014c-.316.045-.636.094-.954.15s-.635.12-.921.159-.615.067-.9.077a3.262,3.262,0,0,1-.83-.069c-.259-.055-.578-.167-.9-.248s-.643-.158-.977-.212a6.309,6.309,0,0,0-1.027-.087,4.342,4.342,0,0,0-1.059.128,6.111,6.111,0,0,0-.971.358c-.3.136-.6.283-.885.439l-.431.241H3.147a.956.956,0,0,0,.952.96Z",fill:"#000066"})]})})]}),{}),direction:(0,n.jsx)(ru.A,{}),base_instrument:(0,n.jsx)(()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#fff",opacity:"0"}),(0,n.jsx)("path",{d:"M19.5,12H16.25L15,7H9L7.75,12H4.5L3,18h9l-1.25-5h2.5L12,18h9Zm-8.781,5H4.281l1-4H9.719ZM10.5,12H8.781l1-4h4.438l1,4H10.5Zm3.781,1h4.438l1,4H13.281Z",fill:"#000066"})]}),{}),type_option_strategy:(0,n.jsx)(rr,{}),product_type:(0,n.jsx)(rr,{}),product:null},r_=c.Df.withName("PKOBPKidSelector").create(()=>({container:{marginTop:"32px",display:"flex",alignItems:"center",justifyContent:"start",columnGap:"8px",rowGap:"16px",flexWrap:"wrap",maxWidth:"811px",paddingBottom:"32px",[h.Ay.breakpoints.down("md")]:{marginTop:"12px",paddingBottom:"20px"}},hr:{margin:"0",border:"none",borderColor:h.Ay.palette.secondary.borders,borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders)},iconLeft:{display:"flex",alignItems:"center",justifyContent:"center",marginRight:"3px"},iconRight:{display:"flex",alignItems:"center",justifyContent:"center",[h.Ay.breakpoints.down("md")]:{position:"relative",left:"-4px"}},pillContainer:{position:"relative",display:"inline-block","& button svg":{width:"24px",height:"24px","& path":{fill:h.Ay.palette.primary.main}},"& $iconRight":{marginRight:"8px"}},pill:{margin:"0"},pill__hasIconRight:{"&&":{paddingRight:"20px",[h.Ay.breakpoints.down("md")]:{padding:"0 3px 0 15px"}}},pill__closeIconActive:{"&&":{paddingRight:"11px",[h.Ay.breakpoints.down("md")]:{padding:"0 3px 0 15px"}}},pillFormContainer:{position:"absolute",top:"63px",width:"370px",opacity:0,height:"0",overflow:"hidden",transition:"opacity 0.3s ease-in-out",boxShadow:"0px 8px 32px #0000003D",borderRadius:"16px",zIndex:"9",background:h.Ay.palette.common.white,[h.Ay.breakpoints.down("md")]:{display:"none"}},pillFormContainer__isActive:{height:"auto",opacity:1},mobileModal:{"& .MuiPaper-root":{width:"100%","&:last-of-type":{paddingBottom:"80px"}}}})),rj=e=>{var t;let{properties:a,onUpdateProperties:i,onResetProperties:l}=e,{classes:r}=r_(),o=(0,w.A)(h.Ay.breakpoints.down("md")),[s,c]=(0,d.useState)(""),p=rw.find(e=>e.value===Number(null==a?void 0:a.product)),u=null==p||null==(t=p.children)?void 0:t.find(e=>e.value===Number(null==a?void 0:a.product_type)),m=u&&"children"in u?u.children.find(e=>e.value===Number(null==a?void 0:a.type_option_strategy)):void 0,x=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=e=>{o||!x.current||x.current.contains(e.target)||c("")};return s&&document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[s]);let g=(e,t,d,p)=>{let u=s===e,m=t,h="Wybierz wartość filtra ".concat(t),g=null==a?void 0:a[e];if(p&&g&&(m=null==p?void 0:p[g],h="Wybrany filtr ".concat(null==p?void 0:p[g],". Kliknij, aby zmienić lub usunąć.")),"string"==typeof g&&/^[\d,\s]+$/.test(g)&&!p){let e=g.split(",").map(e=>e.trim()).filter(e=>""!==e).length;m="".concat(t,": ").concat(String(e)),h="Flitr ".concat(t,". Zaznaczona liczba filtr\xf3w: ").concat(String(e),". Kliknij, aby zmienić lub zresetować.")}let y=()=>(0,n.jsx)(rv,{onUpdateProperties:i,onResetProperties:l,radioOptions:d.map(e=>({id:String(e.value),label:e.label})),isActive:u,setActiveBox:c,type:e,properties:a}),b=null==rA?void 0:rA[e];return"currency"===e&&d.some(e=>e.label.includes("/"))&&(b=null==rA?void 0:rA.currency_pair),(0,n.jsxs)("div",{className:f()(r.pillContainer,"KidSelectorPillContainer"),ref:u?x:null,children:[(0,n.jsx)(rh,{handleBtnClick:t=>{t.stopPropagation(),c(s!==e?e:"")},className:f()(r.pill,r.pill__hasIconRight,{[r.pill__isActive]:!!g}),label:m,isActive:!!g,iconLeft:b?(0,n.jsx)("span",{className:r.iconLeft,children:b}):null,iconRight:(0,n.jsx)("span",{className:r.iconRight,children:(0,n.jsx)(V.A,{})}),cyType:e,id:e,ariaExpanded:u,ariaLabel:h}),o?(0,n.jsx)(ea.Ay,{fullScreen:!0,isOpen:u,handleClose:()=>c(""),title:t,modalStyle:ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE,className:r.mobileModal,children:y()}):(0,n.jsx)("div",{className:f()(r.pillFormContainer,{[r.pillFormContainer__isActive]:u}),children:y()})]})},y=e=>(0,n.jsxs)(n.Fragment,{children:[e.cirsTypes&&g("cirs_type","Rodzaj CIRS",e.cirsTypes),e.currencies&&g("currency",e.currencies.some(e=>e.label.includes("/"))?"Para walutowa":"Waluta",e.currencies),e.baseInstruments&&g("base_instrument","Instrument bazowy",e.baseInstruments),e.tenors&&g("tenor","Termin wygaśnięcia",e.tenors),e.directions&&g("direction","Kierunek transakcji",e.directions)]}),b=(0,n.jsxs)(n.Fragment,{children:[rw.map(e=>(null==a?void 0:a.product)&&e.value!==Number(null==a?void 0:a.product)?null:(0,n.jsx)(rh,{handleBtnClick:()=>{e.value===Number(null==a?void 0:a.product)?l():i({product:String(e.value)})},className:f()(r.pill,{[r.pill__closeIconActive]:e.value===Number(null==a?void 0:a.product)}),label:e.label,isActive:e.value===Number(null==a?void 0:a.product),cyType:"product_group".concat(e.value),id:"product_group".concat(e.value),ariaLabel:"".concat(e.value===Number(null==a?void 0:a.product)?"Usuń":"Wybierz"," filtr ").concat(e.label),iconRight:e.value===Number(null==a?void 0:a.product)?(0,n.jsx)("span",{className:r.iconRight,children:(0,n.jsx)(Y.A,{})}):null},e.value)),(null==p?void 0:p.children)&&g("product_type","Grupa produkt\xf3w",p.children,lq),"children"in(null!=u?u:{})&&g("type_option_strategy","Rodzaj strategii",u.children,l3),!("children"in(null!=u?u:{}))&&(null==u?void 0:u.options)&&y(u.options),(null==m?void 0:m.options)&&y(m.options)]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-cy":"KidSelector",className:r.container,children:o?(0,n.jsx)(rp,{pillClass:"KID_SELECTOR_PILL",pillContainerClass:r.pillContainer,ariaLabelForPillsGroup:"W
1ybierz filtr dla dokument\xf3w KID",filters:a,children:b}):b}),(0,n.jsx)("hr",{className:r.hr})]})},rk=new Set(["name","product","product_type","type_option_strategy","currency","tenor","direction","base_instrument","cirs_type"]);function rC(e,t){switch(t.type){case"SET_PROPERTY":return{...e,...t.payload};case"RESET_PROPERTIES":{let a=new Set(t.skipKeys||[]),n={};for(let t in e)a.has(t)?n[t]=e[t]:n[t]="";return n}default:return e}}let rN=c.Df.withName("PKOBPKid").create(()=>({title:{fontSize:"48px",lineHeight:"56px",textAlign:"left !important",margin:"0",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px"}},description:{fontWeight:300,marginTop:"26px",[h.Ay.breakpoints.down("md")]:{lineHeight:"20px",marginTop:"4px","& p:first-of-type":{marginTop:"0px"}}},head:{maxWidth:"811px"},resultsContainer:{position:"relative",marginTop:"27px",[h.Ay.breakpoints.down("md")]:{marginTop:"11px"}},numberOfResults:{[h.Ay.breakpoints.down("md")]:{display:"block",width:"100%",borderBottom:"dashed 1px ".concat(h.Ay.palette.secondary.borders),fontWeight:300,fontSize:"16px",lineHeight:"24px",paddingBottom:"12px"}},downloadAllBtn:{marginTop:"31px",maxHeight:"48px",fontSize:"16px",lineHeight:"20px",paddingRight:"22px",[h.Ay.breakpoints.down("md")]:{width:"100%",marginTop:"24px"}},iconContainer:{position:"relative",width:"36px",height:"36px",alignSelf:"flex-start",top:"-6px",left:"-4px",[h.Ay.breakpoints.down("md")]:{width:"39px",height:"39px",top:"-8px",left:"-6px"},"& img":{width:"100%",height:"36px !important",[h.Ay.breakpoints.down("md")]:{height:"39px !important"}}},extension:{position:"absolute",top:"15px",left:"10px !important",color:h.Ay.palette.primary.main,fontWeight:600,fontSize:"7px",lineHeight:"1.5 !important",letterSpacing:"-0.2px",[h.Ay.breakpoints.down("md")]:{top:"17px",left:"12px !important"}},downloadAllBtnText:{[h.Ay.breakpoints.down("md")]:{marginLeft:"-5px"},[h.Ay.breakpoints.down(335)]:{fontSize:"14px"}},pagination:{marginTop:"74px",[h.Ay.breakpoints.down("md")]:{marginTop:"58px"}}})),rS=e=>{let{title:t,description:a}=e,{classes:i}=rN(),l=(0,en.A)(),r=(0,d.useContext)(tT.zp),o=(0,w.A)(h.Ay.breakpoints.down("md")),s=(0,d.useContext)(U.G),[c,p]=(0,d.useReducer)(rC,{}),[u,m]=(0,d.useState)(!1),[x,g]=(0,d.useState)([]),[y,b]=(0,d.useState)(""),[f,v]=(0,d.useState)(1),[j,k]=(0,d.useState)(null),C=Math.ceil(j/10),N=async()=>{if(r)return;m(!0);let e={page:f,page_size:10,product:(null==c?void 0:c.product)||void 0,product_type:(null==c?void 0:c.product_type)||void 0,type_option_strategy:(null==c?void 0:c.type_option_strategy)||void 0,base_instrument:(null==c?void 0:c.base_instrument)||void 0,cirs_type:(null==c?void 0:c.cirs_type)||void 0,currency:(null==c?void 0:c.currency)||void 0,tenor:(null==c?void 0:c.tenor)||void 0,direction:(null==c?void 0:c.direction)||void 0,name:y||void 0};try{var t,a;let n=await l.apiModulesKidsSearchList(e),i=null==n||null==(t=n.data)?void 0:t.results,r=null==n||null==(a=n.data)?void 0:a.count;k(r||null),(null==i?void 0:i.length)?g(i):g([])}catch(e){console.error(e),g([]),k(null)}finally{m(!1)}};return(0,d.useEffect)(()=>{if(!(null==c?void 0:c.product)&&!y){g([]),k(null);return}1!==f?v(1):N()},[JSON.stringify(c),y]),(0,d.useEffect)(()=>{if(!(null==c?void 0:c.product)&&!y){g([]),k(null);return}N()},[f]),(e=>{let t=(0,q.useRouter)();(0,d.useEffect)(()=>{if(!e||"object"!=typeof e)return;let a={};Object.entries(e).forEach(e=>{let[t,n]=e;null!=n&&""!==n&&(a[t]=String(n))});let n=t.asPath.split("?")[0];t.replace({pathname:n,query:a},void 0,{scroll:!1,shallow:!0})},[JSON.stringify(e)])})(c),(e=>{let t=(0,q.useRouter)();(0,d.useEffect)(()=>{if(!t.isReady)return;let a=t.query,n={};Object.entries(a).forEach(e=>{let[t,a]=e;"*"!==t&&rk.has(t)&&"string"==typeof a&&(n[t]=a)}),e({type:"SET_PROPERTY",payload:n})},[])})(p),(0,n.jsxs)(B.A,{id:s,className:i.container,"data-cy":"Kid",children:[(0,n.jsxs)(B.A,{className:i.head,children:[(0,n.jsx)(_.A,{variant:(0,ei.a)(null==t?void 0:t.hx),align:"center",cy:"Kid--title",className:i.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.text}})}),(null==a?void 0:a.content)&&(0,n.jsx)(tk.default,{className:i.description,content:null==a?void 0:a.content,"data-cy":"".concat("Kid","--description")})]}
1),r?(0,n.jsx)("pre",{children:"Lista plik\xf3w dostępna na opublikowanej stronie i podglądzie"}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(rl,{setSearchPhrase:b}),(0,n.jsx)(rj,{properties:c,onUpdateProperties:e=>p({type:"SET_PROPERTY",payload:e}),onResetProperties:e=>p({type:"RESET_PROPERTIES",skipKeys:e})}),(!!(null==c?void 0:c.product)||!!y)&&(0,n.jsxs)("div",{className:i.resultsContainer,children:[(0,n.jsx)(eo.Ay,{isLoading:u,text:"Trwa ładowanie",withOverlay:!0,size:eo.iW.LG}),j?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:i.numberOfResults,"aria-live":"polite",children:[j," wyniki wyszukiwania"," ",y&&(0,n.jsxs)(n.Fragment,{children:["dla ",(0,n.jsx)("b",{children:y})]})]}),!o&&(0,n.jsx)(ra,{data:x}),(0,n.jsxs)(A.default,{variant:"secondary",className:i.downloadAllBtn,href:(0,nr.W6)({path:"/api/public/kid_full.zip?content-disposition=attachment"}),target:"_blank",ariaLabel:"Pobierz plik wszystkie dokumenty KID, plik w formacie zip",cy:"".concat("Kid","--downloadAllBtn"),isExternal:!0,children:[(0,n.jsxs)("div",{className:i.iconContainer,children:[(0,n.jsx)("span",{className:i.extension,style:{left:10},"data-cy":"".concat("Kid","--extension"),"aria-hidden":!0,children:"PDF"}),(0,n.jsx)(tH.Ay,{src:null===aq.A||void 0===aq.A?void 0:aq.A.src,"aria-hidden":"true",alt:"Ikonka pliku z rozszerzeniem pdf",title:null===aq.A||void 0===aq.A?void 0:aq.A.filename,formatFilepath:!1})]})," ",(0,n.jsx)("span",{className:i.downloadAllBtnText,children:"Pobierz wszystkie dokumenty KID"})]})]}):(0,n.jsx)("p",{"aria-live":"polite",children:"Brak dokument\xf3w dla podanych filtr\xf3w"}),o&&(0,n.jsx)(l7,{data:x}),C>1&&(0,n.jsx)(B.A,{className:i.pagination,children:(0,n.jsx)(aC.A,{current:f,pages:C,onChangePage:e=>{v(e)},renderMobileShowMoreBtn:!1})})]})]})]})};var rT=a(86384);let rz=z()(()=>Promise.all([a.e(616),a.e(738)]).then(a.bind(a,50738)),{loadableGenerated:{webpack:()=>[50738]}});var rL=a(12097);let rP=z()(()=>Promise.resolve().then(a.bind(a,61265)),{loadableGenerated:{webpack:()=>[61265]}}),rI=c.Df.withName("PKOBPLeasingForm").create(()=>({container:{maxWidth:600,margin:"0 auto"},title:{fontSize:"32px",lineHeight:"40px",marginBottom:"38px",[h.Ay.breakpoints.down("md")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"13px"}},formContainer:{display:"flex",flexDirection:"column",gap:"8px",position:"relative"},fieldset:{margin:0,padding:0,border:"none","&>legend":es.$},inputs:{display:"flex",flexDirection:"column",gap:"8px",paddingTop:"5px","& p.Mui-error":{marginLeft:0,fontFamily:h.Ay.typography.fontFamily}},textField:{width:"100%",".text-spacing-detected &":{"& fieldset":{"& legend, & span":{lineHeight:"1 !important"}}},"& .MuiInputBase-root, &.MuiInputBase-root":{borderRadius:"8px",borderColor:h.Ay.palette.text.primary,fontFamily:h.Ay.typography.fontFamily,height:"48px",".text-spacing-detected &":{height:"auto",minHeight:"48px"}},"& .MuiInputAdornment-root":{marginLeft:"-2px",marginTop:"0",letterSpacing:"-1px",[h.Ay.breakpoints.down("md")]:{marginTop:"1px"},".text-spacing-detected &":{"& p":{marginTop:"5px"}}},"& .MuiInputBase-input":{paddingTop:"15px",paddingBottom:"15px",".text-spacing-detected &":{"&:not(textarea)":{lineHeight:"1 !important"},paddingTop:"calc(15px + 5px)"}},"& .MuiInputBase-multiline":{height:"unset",paddingTop:"15px",paddingBottom:"15px","& textarea":{padding:"0 !important"}},"& .MuiOutlinedInput-notchedOutline":{top:0,"& > *":{lineHeight:"0"}}},inputWrapper:{},labelWrapper:{display:"flex",alignItems:"center",marginBottom:"2px","& label":{color:h.Ay.palette.text.primary,display:"inline-block",fontSize:"14px",lineHeight:"24px"}},agreements:{marginTop:"16px"},agreementsError:{marginTop:"-8px",marginBottom:"8px"},infos:{marginTop:"0px"},noteBox:{marginTop:"16px"},note:{fontSize:"14px",lineHeight:"20px","& a":{textDecoration:"none",color:h.Ay.palette.primary.main,"&:hover":{color:h.Ay.palette.primary.light}}},responseContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",[h.Ay.breakpoints.up("sm")]:{minWidth:"600px"}},messageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:"100%",height:"100%",marginBottom:"15px"},checkIcon:{width:"96px",height:"96px",fill:h.Ay.palette.success.main,marginBottom:"16
1px"},closeIcon:{width:"96px",height:"96px",fill:h.Ay.palette.error.main},responseHeader:{margin:"0 0 18px 0",textAlign:"center",fontSize:"24px",lineHeight:32/24,[h.Ay.breakpoints.down("sm")]:{fontSize:"18px"}},responseBtn:{width:"auto",alignSelf:"center",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},submitBtn:{width:"auto",alignSelf:"start",margin:"-4px auto 0 auto",[h.Ay.breakpoints.down("sm")]:{width:"100%"}},msg:{"&&.Mui-error":{marginLeft:"38px",marginBottom:"5px",marginTop:0,lineHeight:"1.66",fontSize:"0.8571428571428571rem",[h.Ay.breakpoints.down("sm")]:{marginLeft:"36px"}}},consentField:{"&.MuiFormGroup-root p.Mui-error":{marginTop:"5px",marginBottom:"10px",marginLeft:"36px",lineHeight:"1.66",fontSize:"0.8571428571428571rem"}}})),rE=e=>{let{leasingFormSnippet:t,fields:a,agreements:i,infos:l,validationSchema:r,apiFormCreateFn:o,cy:s,id:c,isContactForm:p}=e,{classes:u}=rI(),m=(0,w.A)(h.Ay.breakpoints.down("sm")),[x,g]=(0,d.useState)(!1),[y,b]=(0,d.useState)(null),[f,j]=(0,d.useState)(!1),k=async(e,a)=>{let{resetForm:n}=a;g(!0);try{var i;let a=await o({...e,agreement_1:t.agreement_1?{id:t.agreement_1,value:e.agreement_1}:null,agreement_2:t.agreement_2?{id:t.agreement_2,value:e.agreement_2}:null,issue_source_code:(null==t?void 0:t.issue_source_code)||null,referer:(null==(i=document)?void 0:i.location)?document.location.origin+document.location.pathname:"",utm_source:(0,v.getCookie)("utm_source")||"",utm_medium:(0,v.getCookie)("utm_medium")||"",utm_campaign:(0,v.getCookie)("utm_campaign")||"",google_client_id:(0,v.getCookie)("_ga")||"",uuid:(null==t?void 0:t.snippet_uuid)||""},{checkToken:!1});if(a.ok)b({type:"success",message:"Formularz został pomyślnie wysłany. Dziękujemy!"}),n();else throw Error("HTTP error! Status: ".concat(a.status))}catch(e){console.error(e),b({type:"error",message:"Wystąpił błąd podczas wysyłania formularza.<br>Spr\xf3buj ponownie p\xf3źniej."})}finally{g(!1)}},C=()=>{j(!1),setTimeout(()=>{b(null)},500)};(0,d.useEffect)(()=>{(null==y?void 0:y.type)&&j(!0)},[y]);let{hx:N,title:S,agreements_note:T}=t,z=a.reduce((e,t)=>Object.assign(e,{[t.key]:t.initialValue}),{agreement_1:!1,agreement_2:!1}),L=p?"formularza kontaktowego":"formularza reklamacyjnego";return(0,n.jsxs)(B.A,{className:u.container,"data-cy":"".concat(s,"--wrapper"),id:c,children:[(0,n.jsx)(_.A,{variant:(0,ei.a)(N),align:"center",cy:s+"--title",className:u.title,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:S}})}),(0,n.jsx)(Z.l1,{initialValues:z,validationSchema:r,onSubmit:k,children:e=>{var r,o,p;return(0,d.useEffect)(()=>{if(e.submitCount>0&&!e.isValid){let t=Object.keys(e.errors)[0],a=document.querySelector('[name="'.concat(t,'"]'));(null==a?void 0:a.focus)&&a.focus()}},[e.submitCount,e.isValid]),(0,n.jsx)(Z.lV,{children:(0,n.jsxs)(B.A,{className:u.formContainer,children:[x&&(0,n.jsx)(eo.Ay,{isLoading:x,withOverlay:!0,size:eo.iW.LG}),(0,n.jsxs)(B.A,{component:"fieldset",className:u.fieldset,"aria-live":"polite",children:[(null==y?void 0:y.type)!=="success"&&!x&&(0,n.jsx)(n.Fragment,{children:e.submitCount>0&&!e.isValid?(0,n.jsxs)("legend",{children:["Nie wszystkie pola ",L," są poprawnie uzupełnione"]},"invalid-inputs"):(0,n.jsxs)("legend",{children:["Pola do wypełnienia ",L]},"valid-inputs")}),(0,n.jsx)(B.A,{className:u.inputs,children:a.map(t=>{var a,i,l,r,o;return(0,n.jsxs)(B.A,{className:u.inputWrapper,children:[(0,n.jsxs)(B.A,{className:u.labelWrapper,children:[(0,n.jsx)("label",{htmlFor:"".concat(s,"_").concat(t.key),children:t.label}),t.tooltip&&(0,n.jsx)(rP,{...{name:"Tooltip for ".concat(s,"_").concat(t.key),symbol:"?",text:t.tooltip},$_ID:"".concat(s,"_").concat(t.key,"--tooltip")})]}),(0,n.jsx)($.A,{id:"".concat(s,"_").concat(t.key),name:"".concat(t.key),"aria-label":"Wpisz ".concat(t.label),className:u.textField,value:null==(a=e.values)?void 0:a[t.key],onChange:a=>{let n=a.target.value;(null==t?void 0:t.regex)?t.regex.test(n)&&e.setFieldValue(t.key,n):e.setFieldValue(t.key,n)},onBlur:e.handleBlur,error:(null==(i=e.touched)?void 0:i[t.key])&&!!(null==(l=e.errors)?void 0:l[t.key]),helperText:(null==(r=e.touched)?void 0:r[t.key])&&(null==(o=e.errors)?void 0:o[t.key]),fullWidth:!0,multiline:!!t.multiline,minRows:2,maxRows:10,inputProps:t.inputProps,InputProps:t.InputProps?t.InputProps:{}})]})})}),T&&(0,n.jsx)(B.A,{className:u.noteBox,children:(0,n.jsx)(_.A,{cy:"".concat(s,"--note"),className:u.note,children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:T}})})}),(0,n.jsx)(B.A,{className:u.agreements,children:(null==i?void 0:i.length)?i.map(a=>(0,n.jsx)(er.A,{className:u.consentField,formik:e,field:{...a,error_message:null},hideError:!!(t.agreement_1&&t.agreement_2)})):(0,n.jsx)(n.Fragment,{})}),t.agreement_1&&t.agreement_2&&(0,n.jsx)(B.A,{className:u.agreementsError,children:(null==(r=e.touched)?void 0:r.agreement_1)&&(null==(o=e.errors)?void 0:o.agreement_1)&&(0,n.jsx)(ee.A,{className:u.msg,error:!0,id:c+"--error",children:null==(p=e.errors)?void 0:p.agreement_1})}),(0,n.jsx)(B.A,{className:u.infos,children:(null==l?void 0:l.length)?l.map(e=>(0,n.jsx)(el.A,{link_label:null==e?void 0:e.link_label,link_label_expanded:null==e?void 0:e.link_label_expanded,content:null==e?void 0:e.content,display_name:null==e?void 0:e.display_name})):(0,n.jsx)(n.Fragment,{})})]}),(0,n.jsx)(ea.Ay,{isOpen:f,handleClose:C,size:ea.Ih.MD,modalStyle:ea.YT.DEFAULT,fullScreen:m,showDrawerOnMobile:!1,$_ID_MODAL_TITLE:"PKOBP_LEASING_FORM_MODAL",children:(0,n.jsxs)(B.A,{className:u.responseContainer,children:[(0,n.jsxs)(B.A,{className:u.messageWrapper,children:[(null==y?void 0:y.type)==="success"?(0,n.jsx)(K.A,{className:u.checkIcon}):(0,n.jsx)(Y.A,{className:u.closeIcon}),(null==y?void 0:y.message)&&(0,n.jsx)(_.A,{className:u.responseHeader,variant:"body1",dangerouslySetInnerHTML:{__html:null==y?void 0:y.message},id:"PKOBP_LEASING_FORM_MODAL"})]}),(0,n.jsx)(A.default,{className:u.responseBtn,variant:"primary",renderAsButton:!0,onClickCallback:C,ariaLabel:"Zamknij okno",cy:s,children:"Zamknij"})]})}),(0,n.jsx)(A.default,{type:"submit",variant:"primary",disabled:e.isSubmitting,renderAsButton:!0,className:u.submitBtn,ariaLabel:"Wyślij uzupełniony formularz",children:"Wyślij"})]})})}})]})};var rO=a(29601);let rB="LeasingComplaintForm",rF=e=>{let{...t}=e,a=(0,en.A)(),i=a.apiModulesLeasingComplaintFormCreate,l=(0,d.useContext)(U.G),[r,o]=(0,d.useState)([]),[s,c]=(0,d.useState)([]);(0,d.useEffect)(()=>{let e=async e=>{try{let t=await a.apiModulesAgreementListList({agreements:e.toString()});if(t.ok)return t.data}catch(e){return console.error(e,"err"),[]}},n=[];return t.agreement_1&&n.push(t.agreement_1),t.agreement_2&&n.push(t.agreement_2),t.info_1&&n.push(t.info_1),t.info_2&&n.push(t.info_2),n.length&&(async()=>{let a=await e(n);if(a.length){let e=a.filter(e=>e.id===t.agreement_1||e.id===t.agreement_2),n=[],i=(null==e?void 0:e.find(e=>e.id===t.agreement_1))||null,l=(null==e?void 0:e.find(e=>e.id===t.agreement_2))||null;i&&n.push({...i,name:"agreement_1"}),l&&n.push({...l,name:"agreement_2"}),o(n);let r=a.filter(e=>e.id===t.info_1||e.id===t.info_2),s=[],d=(null==r?void 0:r.find(e=>
1e.id===t.info_1))||null,p=(null==r?void 0:r.find(e=>e.id===t.info_2))||null;d&&s.push({...d,name:"info_1"}),p&&s.push({...p,name:"info_2"}),c(s)}})(),()=>{o([]),c([])}},[]);let p=/^\d*$/,u=rL.Ut,m=/^[a-zA-Z\u0080-\u00FF\u0100-\u017F\u0180-\u024F\s-]*$/,h=[{key:"first_name",label:"Imię",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:50},InputProps:null,multiline:!1,regex:null},{key:"last_name",label:"Nazwisko",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:50},InputProps:null,multiline:!1,regex:null},{key:"company_full_name",label:"Pełna nazwa firmy",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:255},InputProps:null,multiline:!1,regex:null},{key:"phone_number",label:"Telefon kontaktowy",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:9},InputProps:{startAdornment:(0,n.jsx)(et.A,{position:"start",style:{marginLeft:"-2px"},children:"+ 48"})},multiline:!1,regex:p},{key:"email_address",label:"E-mail",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:100},InputProps:null,multiline:!1,regex:null},{key:"nip_or_pesel",label:"NIP/PESEL",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:16},InputProps:null,multiline:!1,regex:p},{key:"contract_number",label:"Numer umowy",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:50},InputProps:null,multiline:!1,regex:null},{key:"complaint_content",label:"Treść reklamacji",type:"text",tooltip:"Opis zdarzenia, wskazanie zastrzeżenia, wskazanie roszczenia wobec PKO Leasing Sp\xf3łka Akcyjna lub PKO Leasing Finanse",initialValue:"",inputProps:{maxLength:500},InputProps:null,multiline:!0,regex:null}],x="To pole jest wymagane",g=t.agreement_1&&t.agreement_2?"Potrzebujemy co najmniej jednej z powyższych zg\xf3d, aby m\xf3c się z Tobą skontaktować.":"Zgoda jest wymagana.",y=X.Ik().shape({first_name:X.Yj().required(x).max(50,"Pole może mieć maksymalnie 50 znak\xf3w.").matches(m,"Imię może zawierać tylko litery, spacje i myślniki."),last_name:X.Yj().required(x).max(50,"Pole może mieć maksymalnie 50 znak\xf3w.").matches(m,"Nazwisko może zawierać tylko litery, spacje i myślniki."),company_full_name:X.Yj().required(x).max(255,"Pole może mieć maksymalnie 255 znak\xf3w."),phone_number:X.Yj().required(x).max(9,"Pole może mieć maksymalnie 9 znak\xf3w.").matches(/^\d{9}$/,"Poprawny numer powinien składać się z 9 cyfr."),email_address:X.Yj().required(x).max(100,"Pole może mieć maksymalnie 100 znak\xf3w.").matches(u,"Niepoprawna wartość dla pola E-mail."),nip_or_pesel:X.Yj().required(x).max(16,"Pole może mieć maksymalnie 16 znak\xf3w.").matches(/^\d{10,16}$/,"Należy wprowadzić poprawny PESEL (11 cyfr) lub NIP (10-16 cyfr).").test("nip_or_pesel_checksum","Nie zgadza się suma kontrolna numeru.",e=>(0,rO.i)(e)||(0,rO.s)(e)),contract_number:X.Yj().max(50,"Pole może mieć maksymalnie 50 znak\xf3w."),complaint_content:X.Yj().required(x).max(500,"Pole może mieć maksymalnie 500 znak\xf3w."),agreement_1:X.zM().when("agreement_2",{is:!1,then:X.zM().oneOf([!0],g),otherwise:X.zM()}),agreement_2:X.zM().when("agreement_1",{is:!1,then:X.zM().oneOf([!0],g),otherwise:X.zM()})},[["agreement_1","agreement_2"]]);return(0,n.jsx)("div",{id:l,"data-cy":rB,children:(0,n.jsx)(rE,{leasingFormSnippet:t,id:l,cy:rB,fields:h,agreements:r,infos:s,validationSchema:y,apiFormCreateFn:i})})},rD="LeasingContactForm",rR=c.Df.withName("PKOBPLeasingContactForm").create(()=>({box:{}})),rM=e=>{let{...t}=e,a=(0,en.A)(),i=a.apiModulesLeasingContactFormCreate,l=(0,d.useContext)(U.G),{classes:r}=rR(),[o,s]=(0,d.useState)([]),[c,p]=(0,d.useState)([]);(0,d.useEffect)(()=>{let e=async e=>{try{let t=await a.apiModulesAgreementListList({agreements:e.toString()});if(t.ok)return t.data}catch(e){return console.error(e,"err"),[]}},n=[];return t.agreement_1&&n.push(t.agreement_1),t.agreement_2&&n.push(t.agreement_2),t.info_1&&n.push(t.info_1),t.info_2&&n.push(t.info_2),n.length&&(async()=>{let a=await e(n);if(a.length){let e=a.filter(e=>e.id===t.agreement_1||e.id===t.agreement_2),n=[],i=(null==e?void 0:e.find(e=>e.id===t.agreement_1))||null,l=(null==e?void 0:e.find(e=>e.id===t.agreement_2))||null;i&&n.push({...i,name:"agreement_1"}),l&&n.push({...l,name:"agreement_2"}),s(n);let r=a.filter(e=>e.id===t.info_1||e.id===t.info_2),o=[],d=(null==r?void 0:r.find(e=>
1e.id===t.info_1))||null,c=(null==r?void 0:r.find(e=>e.id===t.info_2))||null;d&&o.push({...d,name:"info_1"}),c&&o.push({...c,name:"info_2"}),p(o)}})(),()=>{s([]),p([])}},[]);let u=/^\d*$/,m=rL.Ut,h=[{key:"phone_number",label:"Telefon kontaktowy",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:9},InputProps:{startAdornment:(0,n.jsx)(et.A,{position:"start",style:{marginLeft:"-2px"},children:"+ 48"})},multiline:!1,regex:u},{key:"email_address",label:"E-mail",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:100},InputProps:null,multiline:!1,regex:null},{key:"postal_code",label:"Kod pocztowy",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:6},InputProps:null,multiline:!1,regex:/^\d*-?\d*$/},{key:"nip_or_pesel",label:"NIP/PESEL",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:16},InputProps:null,multiline:!1,regex:u},{key:"additional_information",label:"Informacje dodatkowe",type:"text",tooltip:null,initialValue:"",inputProps:{maxLength:4096},InputProps:null,multiline:!0,regex:null}],x="To pole jest wymagane",g=t.agreement_1&&t.agreement_2?"Potrzebujemy co najmniej jednej z powyższych zg\xf3d, aby m\xf3c się z Tobą skontaktować.":"Zgoda jest wymagana.",y=X.Ik().shape({phone_number:X.Yj().required(x).max(9,"Pole może mieć maksymalnie 9 znak\xf3w.").matches(/^\d{9}$/,"Poprawny numer powinien składać się z 9 cyfr."),email_address:X.Yj().required(x).max(100,"Pole może mieć maksymalnie 100 znak\xf3w.").matches(m,"Niepoprawna wartość dla pola E-mail."),postal_code:X.Yj().required(x).max(6,"Pole może mieć maksymalnie 6 znak\xf3w.").matches(/^\d{2}-\d{3}$/,"Kod pocztowy powinien mieć format XX-XXX (X jest cyfrą)."),nip_or_pesel:X.Yj().required(x).max(16,"Pole może mieć maksymalnie 16 znak\xf3w.").matches(/^\d{10,16}$/,"Należy wprowadzić poprawny PESEL (11 cyfr) lub NIP (10-16 cyfr).").test("nip_or_pesel_checksum","Nie zgadza się suma kontrolna numeru.",e=>(0,rO.i)(e)||(0,rO.s)(e)),additional_information:X.Yj().max(4096,"Pole może mieć maksymalnie 4096 znak\xf3w.").test("did_value_contains_not_allowed_chars","Pole nie może zawierać znak\xf3w < i >",e=>!(null==e?void 0:e.includes("<"))&&!(null==e?void 0:e.includes(">"))),agreement_1:X.zM().when("agreement_2",{is:!1,then:X.zM().oneOf([!0],g),otherwise:X.zM()}),agreement_2:X.zM().when("agreement_1",{is:!1,then:X.zM().oneOf([!0],g),otherwise:X.zM()})},[["agreement_1","agreement_2"]]);return(0,n.jsx)("div",{id:l,"data-cy":rD,className:r.box,children:(0,n.jsx)(rE,{leasingFormSnippet:t,id:l,cy:rD,fields:h,agreements:o,infos:c,validationSchema:y,apiFormCreateFn:i,isContactForm:!0})})},rH=z()(()=>a.e(1489).then(a.bind(a,51489)),{loadableGenerated:{webpack:()=>[51489]}}),rW=z()(()=>a.e(2003).then(a.bind(a,42003)),{loadableGenerated:{webpack:()=>[42003]}});var rU=a(84310);let rG=z()(()=>a.e(2459).then(a.bind(a,52459)),{loadableGenerated:{webpack:()=>[52459]}});var rK=a(56634);let rV=z()(()=>Promise.resolve().then(a.bind(a,46525)),{loadableGenerated:{webpack:()=>[46525]}}),rY=z()(()=>a.e(1506).then(a.bind(a,41506)),{loadableGenerated:{webpack:()=>[41506]}}),rZ=c.Df.withName("PKOBPOfeDfeTablePricingMainSection").create(()=>({container:{position:"relative",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),padding:"23px 0",display:"flex",alignItems:"flex-start",justifyContent:"flex-start",marginTop:"34px",[h.Ay.breakpoints.down("md")]:{gap:"17px",alignItems:"flex-start",flexDirection:"column",marginTop:"25px",padding:"17px 0 14px 0"}},pricingBox:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",flexDirection:"column","&:first-of-type":{marginRight:"111px",[h.Ay.breakpoints.down("md")]:{marginRight:"0px"}},"&:nth-of-type(2)":{marginRight:"83px",[h.Ay.breakpoints.down("md")]:{marginRight:"0px"}}},pricingLabel:{fontSize:"14px",lineHeight:"20px",fontWeight:300},pricingValue:{fontSize:"24px",lineHeight:"32px",fontWeight:600,marginTop:"3px",[h.Ay.breakpoints.down("md")]:{marginTop:"2px"}},pricingValue__isDate:{fontSize:"20px",lineHeight:"24px",marginTop:"2px"},pricingUnit:{fontSize:"16px",lineHeight:"24px",fontWeight:400,marginLeft:"3px"}})),rq=e=>{let{pricingDate:t,value:a,netAssets:i,isLoading:l}=e,{classes:r}=rZ();return(0,n.jsxs)(ew.A,{className:r.container,"data-cy":"OfeDfeTablePricingSection",children:[(0,n.jsx)(eo.Ay,{isLoading:l,withOverlay:!0,size:eo.iW.MD}),!!t&&(0,n.jsxs)(ew.A,{className:r.pricingBox,children:[(0,n.jsx)("span",{className:r.pricingLabel,children:"Wycena na dzień"}),(0,n.jsx)("span",{className:f()(r.pricingValue,r.pricingValue__isDate),
1children:(0,a8.A)(new Date(t),aN.nm)})]}),!!a&&(0,n.jsxs)(ew.A,{className:r.pricingBox,children:[(0,n.jsx)("span",{className:r.pricingLabel,children:"Wartość Jednostki rozrachunkowej"}),(0,n.jsxs)("div",{className:r.pricingValue,children:[(0,n.jsx)("span",{children:(0,n2.tJ)(a,{precision:2})}),(0,n.jsx)("span",{className:r.pricingUnit,children:"\xa0zł"})]})]}),!!i&&(0,n.jsxs)(ew.A,{className:r.pricingBox,children:[(0,n.jsx)("span",{className:r.pricingLabel,children:"Aktywa netto"}),(0,n.jsxs)("div",{className:r.pricingValue,children:[(0,n.jsx)("span",{children:(0,n2.tJ)(i,{precision:2})}),(0,n.jsx)("span",{className:r.pricingUnit,children:"\xa0zł"})]})]})]})},rX=c.Df.withName("PKOBPOfeDfeTableDatePicker").create(()=>({datepickerContainer:{display:"inline-flex",flexDirection:"column",width:"180px",flexShrink:0,".text-spacing-detected &":{width:"auto"},[h.Ay.breakpoints.down("md")]:{width:"calc(50% - 8px)",marginBottom:"2px"},[h.Ay.breakpoints.down(359)]:{width:"100%"}},datepicker:{...aF.Z_,[h.Ay.breakpoints.down("md")]:{"& .MuiDatePickerToolbar-root":{display:"none"}}},datepickerInput:{...aF.Rj,"& .MuiOutlinedInput-root":{paddingRight:"12px",borderRadius:"8px",[h.Ay.breakpoints.down("sm")]:{paddingRight:"8px"}},"& .MuiOutlinedInput-root input":{padding:"16px 0px 17px 12px"}
1,"& .MuiOutlinedInput-root input::placeholder":{color:h.Ay.palette.grey[700],fontWeight:300},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,transition:"border-color 0.3s ease-in-out "},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.primary.main},"& .MuiFormHelperText-root":{marginLeft:"8px"}},selectLabel:{"&&":{position:"relative",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.text.primary,transform:"none",marginBottom:"4px"}}})),r$=e=>{var t,a;let{cy:i="OfeDfeTableDatePicker",lang:l="pl",minDate:r,selectedDate:o,setSelectedDate:s,inputLabel:c,name:p,error:u}=e,{classes:m}=rX(),[x,g]=(0,d.useState)(""),y=(0,w.A)(h.Ay.breakpoints.down("md")),b=null!=(t=aB.E[l])?t:aB.E.en,f=null!=(a=aB.U[l])?a:aB.U.en,v=e=>{if(null===e||(0,aT.A)(e,o)){s(null),g("");return}if(!(0,aN.vd)(e)||_(e))return void g("Niepoprawna data");s(e),g("")},A=(0,d.useMemo)(()=>(0,az.s)(500,v),[v]),_=e=>{let t=new Date;return(0,E.A)(e,r)||(0,P.A)(e,t)};return(0,d.useEffect)(()=>{g(u)},[u]),(0,n.jsx)("div",{className:m.datepickerContainer,children:(0,n.jsxs)(aP.$,{adapterLocale:b,dateAdapter:aO.M,localeText:f.components.MuiLocalizationProvider.defaultProps.localeText,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(i,"-").concat(p,"--datepicker"),variant:"standard",className:m.selectLabel,children:c}),(0,n.jsx)(aI.l,{label:"",value:o,onChange:(e,t)=>
1{(null===e||void 0!==t)&&A(e)},onAccept:e=>{v(e)},renderDay:(e,t,a)=>(0,n.jsx)(aE.a,{...a,onClick:t=>{t.preventDefault(),t.stopPropagation(),o&&(0,aT.A)(e,o)&&v(null)}}),disableFuture:!0,disablePast:!1,minDate:r,maxDate:new Date,inputFormat:aN.nm,mask:aN.kv,showDaysOutsideCurrentMonth:!0,closeOnSelect:!0,reduceAnimations:!0,components:{OpenPickerIcon:aS.A},shouldDisableDate:_,desktopModeMediaQuery:h.Ay.breakpoints.up("md"),onOpen:()=>{setTimeout(()=>{let e=document.querySelector(".MuiCalendarPicker-root button");e&&e.focus()},200)},PaperProps:{className:m.datepicker,onKeyDown:e=>{"Escape"===e.key&&v(null)}},DialogProps:{className:m.datepicker},renderInput:e=>(0,n.jsx)($.A,{...e,id:"".concat(i,"-").concat(p,"--datepicker"),className:m.datepickerInput,error:!!x,helperText:x||"","data-cy":i+"--date-picker",name:i+"--date-picker",FormHelperTextProps:{id:"".concat(i,"-").concat(p,"--datepicker-error")},inputProps:{...e.inputProps,placeholder:"DD.MM.RRRR","aria-label":"Wpisz datę w formacie DD.MM.RRRR","aria-describedby":x?"".concat(i,"-").concat(p,"--datepicker-error"):void 0,"aria-invalid":!!x},...y&&{InputProps:{endAdornment:(0,n.jsx)(et.A,{position:"end",children:(0,n.jsx)(aS.A,{})})}}})})]})})};var rJ=a(96068);let rQ=(e,t)=>e&&t?(0,aT.A)(e,t)?'Data "do" nie może być taka sama jak data "od"':(0,P.A)(t,e)?"":'Data "do" musi być p\xf3źniejsza niż data "od"':"",r0=(e,t)=>{let a=null==t?void 0:t.find(t=>t.field===e);return(null==a?void 0:a.value)?"Ostatnia wycena z dnia ".concat((0,a8.A)((0,rJ.A)(null==a?void 0:a.value,"dd-MM-yyyy",new Date),"dd.MM.yyyy")):null},r1=(e,t,a)=>{let n=null==a?void 0:a.find(t=>t.field===e);return(null==n?void 0:n.value)?(0,rJ.A)(null==n?void 0:n.value,"dd-MM-yyyy",new Date):t};function r2(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],[a,n]=(0,d.useState)(null),[i,l]=(0,d.useState)(!1),[r,o]=(0,d.useState)(null),s=(0,d.useCallback)(async()=>{if(!e){n(null),o(null),l(!1);return}l(!0),o(null);try{let t=await fetch(e);if(!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.error||"HTTP ".concat(t.status))}let a=await t.json();n(a)}catch(e){o(e.message),n(null)}finally{l(!1)}},[e]);return(0,d.useEffect)(()=>{s()},[s,...t]),{data:a,loading:i,error:r,refetch:s}}let r6="OfeDfeTablePricingPeriod",r4=c.Df.withName("PKOBPOfeDfeTablePricingPeriod").create(()=>({container:{marginTop:"111px",[h.Ay.breakpoints.down("sm")]:{marginTop:"96px"}},title:{fontSize:"32px",lineHeight:"40px",textAlign:"center",marginTop:"0px",marginBottom:"45px",[h.Ay.breakpoints.down("sm")]:{fontSize:"20px",lineHeight:"24px",marginBottom:"21px"}},dates:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:"29px",border:"none",padding:"0",margin:"0",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column",gap:"22px","& > div":{width:"100%"}}},table:{width:"100%",borderCollapse:"collapse",marginTop:"37px",[h.Ay.breakpoints.down("sm")]:{marginTop:"34px"}},caption:{...es.$},thead:{borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),"& th":{textAlign:"left",padding:"0",paddingBottom:"18px"},"& th:last-of-type":{textAlign:"right"},"& span":{margin:"0",padding:"0",fontSize:"14px",lineHeight:"20px",[h.Ay.breakpoints.down("sm")]:{letterSpacing:"-0.1px"}}},row:{borderBottom:"1px solid #eee"},cell:{padding:"16px 0",fontSize:"16px",lineHeight:"20px",fontWeight:300,paddingRight:"16px","&:first-child":{textAlign:"left",paddingRight:"24px",[h.Ay.breakpoints.down("sm")]:{paddingRight:"0px"}},"&:last-child":{textAlign:"right",padding:"6px 0"}},pagination:{marginTop:"82px",[h.Ay.breakpoints.down("md")]:{marginTop:"58px"}}})),r8=e=>{var t,a,i,l,r,o,s,c,p,u,m,h,x;let{type:g,title:y}=e,{classes:b}=r4(),[f,v]=(0,d.useState)(null),[w,A]=(0,d.useState)(null),[j,k]=d.use
1State(1),C=f?(0,a8.A)(f,aN.ih):null,N=w?(0,a8.A)(w,aN.ih):null,S=(null==(a=ev()())||null==(t=a.publicRuntimeConfig)?void 0:t.OFE_PRICING_PERIOD_API_URL)||"",T=(null==(l=ev()())||null==(i=l.publicRuntimeConfig)?void 0:i.DFE_PRICING_PERIOD_API_URL)||"",z=new Date("ofe"===g?"1999-05-20":"2012-03-14"),{data:L}=function(e,t,a,n){return r2(e&&t&&a&&!n?"".concat(e,"?dateFrom=").concat(encodeURIComponent(t),"&dateTo=").concat(encodeURIComponent(a)):void 0,[t,a])}("ofe"===g?S:"dfe"===g?T:void 0,C,N,rQ(f,w)),P=null!=(x=null==L||null==(r=L.content)?void 0:r.periodicPricing)?x:[],E=Math.ceil(P.length/10),O=(0,d.useMemo)(()=>P.slice((j-1)*10,10*j),[P,j]);return(0,d.useEffect)(()=>{k(1)},[P]),(0,n.jsxs)(ew.A,{className:b.container,"data-cy":r6,children:[!!(null==y?void 0:y.text)&&(0,n.jsx)(_.A,{className:b.title,variant:(0,ei.a)(null==y?void 0:y.hx),"data-cy":"".concat(r6,"--title"),children:null==y?void 0:y.text}),(0,n.jsxs)(ew.A,{component:"fieldset",className:b.dates,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("legend",{children:"Zakres okresu inwestycji dla kt\xf3rego wyświetlone zostaną wartości jednostki rozrachunkowej"})}),(0,n.jsx)(r$,{name:"date-from",inputLabel:"Okres inwestycji od",minDate:z,selectedDate:r1("date-from",f,null==L||null==(o=L.content)?void 0:o.messages),setSelectedDate:v,error:r0("date-from",null==L||null==(s=L.content)?void 0:s.messages)}),(0,n.jsx)(r$,{name:"date-to",inputLabel:"Okres inwestycji do",minDate:f||z,selectedDate:r1("date-to",w,null==L||null==(c=L.content)?void 0:c.messages),setSelectedDate:A,error:rQ(f,w)||r0("date-to",null==L||null==(p=L.content)?void 0:p.messages)})]}),!!(null==L||null==(u=L.content)?void 0:u.periodicPricing)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("table",{className:b.table,children:[(0,n.jsxs)("caption",{className:b.caption,"aria-live":"polite",children:["Wyświetlono tabelę zawierającą ",null==L||null==(h=L.content)||null==(m=h.periodicPricing)?void 0:m.length," wierszy danych"]}),(0,n.jsx)("thead",{className:b.thead,children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:(0,n.jsx)("span",{children:"Okres"})}),(0,n.jsx)("th",{scope:"col",children:(0,n.jsx)("span",{children:"Wartość jednostki rozrachunkowej"})})]})}),(0,n.jsx)("tbody",{children:null==O?void 0:O.map((e,t)=>{var a;return(0,n.jsxs)("tr",{className:b.row,children:[(0,n.jsx)("td",{className:b.cell,children:(null==e?void 0:e.pricingDate)?(0,a8.A)((0,I.A)(e.pricingDate),aN.nm):""}),(0,n.jsx)("td",{className:b.cell,children:"".concat(null!=(a=(0,n2.tJ)(null==e?void 0:e.value))?a:0)})]},"pricingItemDesktop_".concat(t))})})]}),E>1&&(0,n.jsx)(ew.A,{className:b.pagination,children:(0,n.jsx)(aC.A,{current:j,pages:E,onChangePage:e=>{k(e)},onChangePageByKeyboard:e=>{k(e)},renderMobileShowMoreBtn:!1})})]})]})},r3="OfeDfeTableRateOfReturn",r5=c.Df.withName("PKOBPOfeDfeTableRateOfReturn").create(()=>({container:{marginTop:"112px",[h.Ay.breakpoints.down("sm")]:{marginTop:"96px"}},title:{fontSize:"32px",lineHeight:"40px",textAlign:"center",marginTop:"0px",marginBottom:"35px",[h.Ay.breakpoints.down("sm")]:{fontSize:"20px",lineHeight:"24px",marginBottom:"20px"}},contentWrapper:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",gap:"30px",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column"}},dates:{display:"flex",alignItems:"flex-start",justifyContent:"stretch",flexDirection:"column",gap:"24px",width:"50%",border:"none",padding:"0",margin:"0",[h.Ay.breakpoints.down("sm")]:{width:"100%",gap:"22px"},"& > div":{width:"100%"}},result:{width:"50%",background:h.Ay.palette.secondary.backgroundGrey,borderRadius:"16px",minHeight:"144px",padding:"26px 31px 32px 32px",display:"flex",alignItems:"start",justifyContent:"center",flexDirection:"column",position:"relative",marginTop:"24px",alignSelf:"stretch",[h.Ay.breakpoints.down("sm")]:{width:"100%",minHeight:"auto",alignItems:"center",padding:"22px 16px 27px 16px",marginTop:"-5px"},"&::after":{display:"block",position:"absolute",content:'""',width:0,height:0,borderStyle:"solid",borderColor:"inherit",top:"50%",left:0,transform:"translate(-8px, -50%)",borderWidth:"8px 8px 8px 0",borderRightColor:h.Ay.palette.secondary.backgroundGrey,borderTopColor:"transparent",borderBottomColor:"transparent",borderLeftColor:"transparent",[h.Ay.breakpoints.down("sm")]:{top:0,left:"50%",transform:"translate(-50%, -8px)",borderWidth:"0 8px 8px 8px",borderTopColor:"transparent",borderRightColor:"transparent",borderBottomColor:h.Ay.palette.secondary.backgroundGrey,borderLeftColor:"transparent"}}},resultText:{fontSize:"16px",lineHeight:"20px",fontWeight:400,marginBottom:"3px"},resultTextValue:{fontSize:"28px",lineHeight:"32px",fontWeight:600}})),r9=e=>{var t,a,i,l,r,o,s,c,p,u;let{type:m,title:h}=e,{classes:x}=r5(),[g,y]=(0,d.useState)(null),[b,f]=(0,d.useState)(null),v=g?(0,a8.A)(g,aN.ih):null,w=b?(0,a8.A)(b,aN.ih):null,A=(null==(a=ev()())||null==(t=a.publicRuntimeConfig)?void 0:t.OFE_RATE_OF_RETURN_API_URL)||"",j=(null==(l=ev()())||null==(i=l.publicRuntimeConfig)?void 0:i.DFE_RATE_OF_RETURN_API_URL)||"",k=new Date("ofe"===m?"1999-05-20":"2012-03-14"),{data:C}=function(e,t,a,n){return r2(e&&t&&a&&!n?"".concat(e,"?dateFrom=").concat(encodeURIComponent(t),"&dateTo=").concat(encodeURIComponent(a)):void 0,[t,a])}("ofe"===m?A:"dfe"===m?j:void 0,v,w,rQ(g,b));return(0,n.jsxs)(ew.A,{className:x.container,"data-cy":r3,children:[!!(null==h?void 0:h.text)&&(0,n.jsx)(_.A,{className:x.title,variant:(0,ei.a)(null==h?void 0:h.hx),"data-cy":"".concat(r3,"--title"),children:null==h?void 0:h.text}),(0,n.jsxs)(ew.A,{className:x.contentWrapper,children:[(0,n.jsxs)(ew.A,{component:"fieldset",className:x.dates,children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("legend",{children:"Zakres okresu inwestycji dla kt\xf3rego obliczona zostanie stopa zwrotu"})}),(0,n.jsx)(r$,{name:"date-from",inputLabel:"Okres inwestycji od",minDate:k,selectedDate:r1("date-from",g,null==C||null==(r=C.content)?void 0:r.messages),setSelectedDate:y,error:r0("date-from",null==C||null==(o=C.content)?void 0:o.messages)}),(0,n.jsx)(r$,{name:"date-to",inputLabel:"Okres inwestycji do",minDate:g||k,selectedDate:r1("date-to",b,null==C||null==(s=C.content)?void 0:s.messages),setSelectedDate:f,error:rQ(g,b)||r0("date-to",null==C||null==(c=C.content)?void 0:c.messages)})]}),(0,n.jsxs)(ew.A,{className:x.result,children:[(0,n.jsx)(es.A,{children:(0,n.jsxs)("span",{"aria-live":"polite",children:["Stopa zwrotu dla wybranego zakresu wynosi ",(null==C||null==(p=C.content)?void 0:p.returnRate)||"-"," procent"]})}
1),(0,n.jsx)("span",{className:x.resultText,"aria-hidden":!0,children:"Stopa zwrotu"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:x.resultTextValue,"aria-hidden":!0,children:(null==C||null==(u=C.content)?void 0:u.returnRate)!=null?C.content.returnRate.toFixed(3).toString().replace(".",","):"-,--"}),(0,n.jsx)("span",{"aria-hidden":!0,children:" %"})]})]})]})]})},r7=c.Df.withName("PKOBPOfeDfeTableTabSelector").create(()=>({buttons:{background:h.Ay.palette.secondary.backgroundGrey,borderRadius:"10px",display:"flex",justifyContent:"center",padding:"6px",gap:"4px",[h.Ay.breakpoints.down("sm")]:{padding:"6px 6px 7px 6px"}},btn:{...h.cc,width:"50%",textAlign:"center",minHeight:"40px",color:h.Ay.palette.text.primary,border:"1px solid transparent",position:"relative","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},[h.Ay.breakpoints.down("md")]:{fontSize:"16px",lineHeight:"20px"}},btn__withArrows:{"&::after":{position:"absolute",content:'""',width:0,height:0,borderStyle:"solid",borderColor:"inherit",left:"50%",bottom:0,transform:"translate(-50%, 8px)",borderWidth:"8px 8px 0 8px",borderTopColor:h.Ay.palette.common.white,borderRightColor:"transparent",borderLeftColor:"transparent",borderBottomColor:"transparent"}},btn__isActive:{background:"#fff",borderRadius:"8px",border:"1px solid ".concat(h.Ay.palette.secondary.borders),boxShadow:"0px 12px 20px #0000661A",color:h.Ay.palette.primary.main,"&$btn__withArrows::after":{display:"block"}}})),oe=e=>{let{options:t,activeKey:a,isLoading:i,onTabChange:l,withArrows:r,forceFocusAfterRerender:o}=e,{classes:s}=r7(),c=(0,d.useRef)([]),p=(0,d.useCallback)((e,a)=>{let n="ArrowRight"===e.key?1:"ArrowLeft"===e.key?-1:0,i=(a+n+t.length)%t.length;if(0!==n){var r;e.preventDefault(),null==(r=c.current[i])||r.focus()}("Enter"===e.key||" "===e.key)&&(e.preventDefault(),l(t[a].key),o&&setTimeout(()=>{var e;null==(e=c.current[a])||e.focus()},1e3))},[t,l]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("span",{children:"Wybierz opcje dla kt\xf3rej wyświetlić wyniki inwestycyjne"})}),(0,n.jsx)("div",{className:null==s?void 0:s.buttons,role:"tablist","data-cy":"OfeDfeTableTabSelector",children:t.map((e,t)=>{let o=a===e.key;return(0,n.jsx)("button",{ref:e=>{c.current[t]=e},role:"tab","aria-selected":o,"aria-label":e.ariaLabel,className:f()(null==s?void 0:s.btn,{[s.btn__isActive]:o,[s.btn__withArrows]:o&&r}),onClick:()=>l(e.key),onKeyDown:e=>p(e,t),disabled:i,tabIndex:o?0:-1,children:e.label},e.key)})})]})};function ot(e){var t,a;let{data:n,loading:i,error:l,refetch:r}=r2(e);return{data:(null==n?void 0:n.status)==="OK"?n.content:null,loading:i,error:(null==n?void 0:n.status)==="ERROR"&&null!=(a=null==(t=n.errors)?void 0:t.join(", "))?a:l,refetch:r}}let oa="OfeDfeTable",on=[{key:"ofe",label:"OFE",ariaLabel:"Przejdź do widoku OFE"},{key:"dfe",label:"DFE",ariaLabel:"Przejdź do widoku DFE"}],oi=c.Df.withName("PKOBPOfeDfeTable").create(()=>({container:{maxWidth:"810px",margin:"0 auto"},mainTitle:{fontSize:"40px",lineHeight:"48px",textAlign:"center",marginBottom:"40px",[h.Ay.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"27px"}},tabsWrapper:{margin:"0 auto",width:"198px",[h.Ay.breakpoints.down("sm")]:{width:"100%"}}})),ol=e=>{var t,a,i,l,r;let{...o}=e,{classes:s}=oi(),[c,p]=(0,d.useState)(null==on||null==(t=on[0])?void 0:t.key),u=(null==(i=ev()())||null==(a=i.publicRuntimeConfig)?void 0:a.OFE_PRICING_API_URL)||"",m=(null==(r=ev()())||null==(l=r.publicRuntimeConfig)?void 0:l.DFE_PRICING_API_URL)||"",h=(0,d.useContext)(U.G),{data:x,loading:g}=ot(u),{data:y,loading:b}=ot(m),{title:f,sub_title_1:v,sub_title_2:w}=o;return(0,n.jsxs)(ew.A,{id:h,className:s.container,"data-cy":oa,children:[(null==f?void 0:f.text)&&(0,n.jsx)(_.A,{className:s.mainTitle,variant:(0,ei.a)(null==f?void 0:f.hx),"data-cy":"".concat(oa,"--mainTitle"),children:null==f?void 0:f.text}),(0,n.jsx)(ew.A,{className:s.tabsWrapper,children:(0,n.jsx)(oe,{options:on,activeKey:c,isLoading:!1,onTabChange:e=>p(e),withArrows:!0})}),"ofe"===c&&(0,n.jsxs)(n.Fragment,{children:[!!x&&(0,n.jsx)(rq,{pricingDate:null==x?void 0:x.pricingDate,value:null==x?void 0:x.value,netAssets:null==x?void 0:x.netAssets,isLoading:g}),(0,n.jsx)(r9,{type:"ofe",title:v}),(0,n.jsx)(r8,{type:"ofe",title:w})]}),"dfe"===c&&(0,n.jsxs)(n.Fragment,{children:[!!y&&(0,n.jsx)(rq,{pricingDate:null==y?void 0:y.pricingDate,value:null==y?void 0:y.value,
1netAssets:null==y?void 0:y.netAssets,isLoading:b}),(0,n.jsx)(r9,{type:"dfe",title:v}),(0,n.jsx)(r8,{type:"dfe",title:w})]})]})},or=z()(()=>a.e(5881).then(a.bind(a,65881)),{loadableGenerated:{webpack:()=>[65881]}});var oo=a(51081),os=a(3377);let od=()=>(0,n.jsxs)("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:[(0,n.jsx)("rect",{width:"96",height:"96",fill:"inherit",opacity:"0"}),(0,n.jsx)("path",{d:"M-108.008,293h-15.88A7.821,7.821,0,0,0-132,301l-.012,4h-8.212L-148,361h63.712L-92,305h-8v-3.58A8.085,8.085,0,0,0-108.008,293ZM-128,301a3.75,3.75,0,0,1,4-4h16a3.75,3.75,0,0,1,4,4v4h-24Zm32.372,8.008.036.416,6.868,47.568h-54.84l6.968-47.984L-132,309v8c2.248-.232,4-1.692,4-4v-4h24v8c2.248-.232,4-1.692,4-4v-4Z",transform:"translate(164 -280.997)",fill:"inherit"})]}),oc=()=>(0,n.jsxs)("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:[(0,n.jsx)("rect",{width:"96",height:"96",fill:"inherit",opacity:"0"}),(0,n.jsx)("path",{d:"M33-536c8.828,0,16-6.672,16-15.5V-556a16.011,16.011,0,0,0-16-16,16.011,16.011,0,0,0-16,16v4A16.006,16.006,0,0,0,33-536ZM21-556c-.2-8.016,5.616-12,12.24-12S45-564,45-556v4c0,8-5.136,12-11.76,12S21-544,21-552Zm24.2,28.416h0a24.2,24.2,0,0,1-3.74,1.9,22.753,22.753,0,0,1-4.024,1.236A22.383,22.383,0,0,1,33.2-524a21.969,21.969,0,0,1-4.232-.456,22.609,22.609,0,0,1-4.02-1.236,25.238,25.238,0,0,1-3.74-1.892l-.22-.048s-8.46,4.384-8.8,4.6a6.545,6.545,0,0,0-1.232.968,6.2,6.2,0,0,0-1.72,2.56,5.885,5.885,0,0,0-.212,1.468l0,6.028A4.014,4.014,0,0,1,5-508l.02-10.08a9.827,9.827,0,0,1,.364-2.512,10.114,10.114,0,0,1,2.764-4.324,10.865,10.865,0,0,1,1.928-1.516l11.336-5.932,1.012.784.416.288.48.308a20.324,20.324,0,0,0,3.128,1.584,18.829,18.829,0,0,0,3.34,1.028A17.907,17.907,0,0,0,33.2-528a18,18,0,0,0,3.42-.364,18.876,18.876,0,0,0,3.336-1.024,20.24,20.24,0,0,0,3.12-1.588l.484-.308.412-.292,1.012-.8s11.152,5.812,11.336,5.924a10.8,10.8,0,0,1,1.952,1.524,9.313,9.313,0,0,1,2.368,4.336A32.727,32.727,0,0,1,61-516v8a3.989,3.989,0,0,1-4-4v-6.036a5.979,5.979,0,0,0-.216-1.476,5.278,5.278,0,0,0-1.32-2.556,10.194,10.194,0,0,0-2.892-1.836l-7.156-3.728-.22.048",transform:"translate(15 588)",fill:"inherit"})]}),op=c.Df.withName("PKOBPPoiPill").create(()=>({pill:{position:"relative",whiteSpace:"nowrap",padding:"17px 20px 15px 20px",lineHeight:1,border:"solid 1px ".concat(h.Ay.palette.secondary.bordersDark),maxHeight:46,backgroundColor:"#FFFFFF","&:hover, &:focus":{border:"solid 1px ".concat(h.Ay.palette.secondary.bordersDark),backgroundColor:h.Ay.palette.secondary.hover},"& svg, & svg path":{fill:h.Ay.palette.text.primary},[h.Ay.breakpoints.up("md")]:{boxShadow:"0px 8px 32px #00000008"},[h.Ay.breakpoints.down("md")]:{padding:"14px 16px 12px 16px ",minHeight:"40px",maxHeight:"40px"}},pill__isIcon:{padding:"13px 20px 11px 20px",[h.Ay.breakpoints.down("md")]:{padding:"7px 16px"}},pill__adjustPaddingsToIcon:{"& svg":{position:"relative",marginTop:"-2px"},padding:"13px 10px 11px 20px",[h.Ay.breakpoints.down("md")]:{padding:"0 3px 0 16px","&>span":{position:"relative",bottom:"-1px"}}},pill__isOutsideMap:{border:"solid 1px ".concat(h.Ay.palette.secondary.bordersDark),height:"40px"},pill__isActive:{maxHeight:46,fontWeight:600,color:h.Ay.palette.primary.main,border:"solid 1px #00006699 !important",backgroundColor:"#d6e0ff","&:hover, &:focus":{border:"solid 1px #00006699 !important",backgroundColor:"#d6e0ff"},"& svg, & svg path":{fill:h.Ay.palette.primary.main}}})),ou=e=>{let{handleBtnClick:t,className:a,label:i,isActive:l,cyType:r,iconLeft:o=null,iconRight:s=null,ariaExpanded:d,ariaLabel:c,id:p,adjustPaddingsToIcon:u}=e,{classes:m,cx:x}=op(),g=(0,w.A)(h.Ay.breakpoints.down("md")),{mobileView:y}=eS();return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(iT.A,{label:i,cy:"".concat("PoiPill").concat(r?"--"+r.toLowerCase().replace(/\s+/g,""):""),enableMobileStyles:!0,handleClickCallback:t,classname:x(m.pill,a,{[m.pill__isActive]:l,[m.pill__isIcon]:o||s,[m.pill__adjustPaddingsToIcon]:u,[m.pill__isOutsideMap]:g&&"list"===y}),small:!0,iconLeft:o,iconRight:s,ariaExpanded:d,ariaLabel:c,id:p})})},om="data-moveleft",oh="data-moveright",ox="PillsSlider",og=c.Df.withName("PKOBPPillsSlider").create(()=>({container:{position:"relative",padding:"10px 0",display:"flex",alignItems:"center",justifyContent:"start",width:"100%",height:"56px",overflowX:"clip"},pillsContainer:{position:"absolute",top:"0",bottom:0,left:"0",display:"flex",alignItems:"center",justifyContent:"start",ga
1p:"".concat(8,"px"),transition:"transform 0.75s ease-in-out",[h.Ay.breakpoints.down("md")]:{left:"16px"}},pillsContainer__isOutsideMap:{[h.Ay.breakpoints.down("md")]:{left:"0"}},arrow:{position:"absolute",top:0,right:0,zIndex:1,width:"".concat(56,"px"),height:"".concat(56,"px"),background:"linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 100%)",border:"none",cursor:"pointer",[h.Ay.breakpoints.up("md")]:{padding:"16px"},[h.Ay.breakpoints.down("md")]:{top:"4px",width:"".concat(48,"px"),height:"".concat(48,"px")}},arrowPrev:{left:"0",right:"unset",background:"linear-gradient(to left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 25%, rgba(255, 255, 255, 1) 100%)"},arrowPrev__isOutsideMap:{left:"-16px"},arrowNext__isOutsideMap:{right:"-16px"}})),oy=e=>{let{pillClass:t,children:a,handleResize:i,setActiveBox:l,ariaLabelForPillsGroup:r}=e,{classes:o}=og(),[s,c]=(0,d.useState)(0),[p,u]=(0,d.useState)(0),[m,x]=(0,d.useState)(!1),[g,y]=(0,d.useState)(!1),[b,v]=(0,d.useState)([]),[A,_]=(0,d.useState)("right"),j=(0,w.A)(h.Ay.breakpoints.down("md")),{filters:k,mobileView:C}=eS(),N=(0,d.useRef)(null),S=(0,d.useRef)(null),T=(0,d.useRef)(null),z=(0,d.useRef)(null),L=j?48:56,P=15*!j,I=()=>{let e=N.current.offsetWidth,a=S.current.offsetWidth,n=e-L+P,l=N.current.querySelectorAll(".".concat(t));if(!n)return;let r=[],o=0,s=j?8:16,d=j?-((a-e)*1)-L+15+30*("list"===C):-((a-e)*1);if("left"===A){r.push(d);for(let e=l.length-1;e>=0;e--){let t=l[e],a=(null==t?void 0:t.offsetWidth)+8;if(o+(null==t?void 0:t.offsetWidth)<=n+s)o+=a;else{let e=j?15:L-15;r.push(o+r[r.length-1]-e),o=a+e,t.parentNode.classList.contains("PoiOtherFilter")&&i&&t.setAttribute(om,"true")}}r.pop(),r.reverse()}else l.forEach(e=>{let t=(null==e?void 0:e.offsetWidth)+8;o+(null==e?void 0:e.offsetWidth)<=n+s?o+=t:(r.length>0?r.push(-o+r[r.length-1]+L-15):r.push(-o+L-15),o=t+L-15,e.parentNode.classList.contains("PoiOtherFilter")&&i&&e.setAttribute(oh,"true"))}),a+r[r.length-1]<n&&(r[r.length-1]=d);v(r)},E=e=>{"next"===e?u(p+1):u(p-1),l&&l(null),I()};(0,d.useEffect)(()=>{(null==b?void 0:b.length)&&(null==b?void 0:b[0])!==0?0===p?(c(0),x(!1),y(!0),_("right")):p===b.length?(c(b[p-1]),x(!0),y(!1),_("left")):(c(b[p-1]),x(!0),y(!0)):(c(0),x(!1),y(!1))},[p,b]),(0,d.useEffect)(()=>{N.current.querySelectorAll(".".concat(t)).forEach(e=>{e.removeAttribute(om),e.removeAttribute(oh)}),I()},[A]),(0,d.useEffect)(()=>{let e=setTimeout(()=>{I()},500),t=()=>{u(0),_("right"),I()};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(e)}},[]),(0,d.useEffect)(()=>{let e=N.current.querySelectorAll(".".concat(t));if(!(null==e?void 0:e.length))return;let a=e=>{var t,a,n,i,l;let r=p===(null==b?void 0:b.length)?0x5f5e0ff:-1*b[p],o=0===p?0:-1*b[p-1],s=(null==e||null==(a=e.target)||null==(t=a.parentElement)?void 0:t.classList.contains("PoiOtherFilter"))?null==e||null==(i=e.target)||null==(n=i.parentElement)?void 0:n.offsetLeft:null==e||null==(l=e.target)?void 0:l.offsetLeft;s>r?E("next"):s<o&&E("prev")};return e.forEach(e=>e.addEventListener("focus",a)),()=>{e.forEach(e=>e.removeEventListener("focus",a))}},[p,JSON.stringify(b)]),(0,d.useEffect)(()=>{I()},[JSON.stringify(k)]);let O=j&&"list"===C;return(0,n.jsxs)(ew.A,{"data-cy":ox,className:o.container,ref:N,children:[m&&(0,n.jsx)("button",{onClick:()=>E("prev"),ref:T,className:f()(o.arrow,o.arrowPrev,{[o.arrowPrev__isOutsideMap]:O},"PoiPillsSliderArrowPrev"),"data-cy":"".concat(ox,"--leftArrowBtn"),tabIndex:-1,children:(0,n.jsx)(t_.A,{})}),(0,n.jsx)(ew.A,{className:f()(o.pillsContainer,{[o.pillsContainer__isOutsideMap]:O}),style:{transform:"translate3d(".concat(s,"px, 0, 0)")},ref:S,role:"group","aria-label":r,children:a}),g&&(0,n.jsx)("button",{onClick:()=>E("next"),ref:z,className:f()(o.arrow,{[o.arrowNext__isOutsideMap]:O}),"data-cy":"".concat(ox,"--rightArrowBtn"),tabIndex:-1,children:(0,n.jsx)(tj.A,{})})]})},ob=c.Df.withName("PKOBPPoiOtherFilter").create(()=>({pill:{[h.Ay.breakpoints.down("md")]:{padding:"8px 16px 8px 16px ",minHeight:"40px",maxHeight:"40px"}},container:{position:"relative",lineHeight:1},pillFilterContainer:{position:"absolute",top:"72px",width:"370px",opacity:0,height:"0",overflow:"hidden",transition:"opacity 0.3s ease-in-out",boxShadow:"0px 8px 32px #0000003D",borderRadius:"16px",[h.Ay.breakpoints.down("md")]:{dis
1play:"none"}},pillFilterContainer__isActive:{height:"auto",opacity:1},pillFilterContainer__left:{left:0},pillFilterContainer__right:{right:0},iconRight:{height:"24px",marginLeft:"8px",[h.Ay.breakpoints.down("md")]:{marginLeft:"3px !important"},"& svg":{"-webkit-transition-property":"transform","-webkit-transition-duration":"0.2s","-webkit-transition-delay":"0.2s","-webkit-transition-timing-function":"ease-out","transition-property":"transform","transition-delay":"0.2s","transition-duration":"0.2s","transition-timing-function":"ease-out",fill:h.Ay.palette.primary.main}},iconRight__isActive:{"& svg":{transform:"rotate(180deg)"}}})),of=e=>{let{children:t,setActiveBox:a,activeBox:i,type:l,pillRef:r,boxPosition:o,label:s,numberOfChecked:d,isActive:c,iconLeft:p=null,className:u,ariaLabel:m}=e,{classes:x}=ob(),g=(0,w.A)(h.Ay.breakpoints.down("md"));return(0,n.jsxs)("div",{className:f()(x.container,"PoiOtherFilter"),"data-cy":"PoiOtherFilter",children:[(0,n.jsx)(ou,{handleBtnClick:e=>{if(g)a(i!==l?l:"");else{let t=e.target.closest("[".concat(om,"]")),n=e.target.closest("[".concat(oh,"]")),r=document.querySelector('[data-cy="PillsSlider--leftArrowBtn"]'),o=document.querySelector('[data-cy="PillsSlider--rightArrowBtn"]');t&&r?(r.click(),setTimeout(()=>{a(i!==l?l:"")},700)):n&&o?(o.click(),setTimeout(()=>{a(i!==l?l:"")},700)):a(i!==l?l:"")}},className:f()(x.pill,u),label:"".concat(s).concat(d?": ".concat(d):""),isActive:c,iconLeft:p,iconRight:(0,n.jsx)("span",{className:f()(x.iconRight,{[x.iconRight__isActive]:i===l}),children:(0,n.jsx)(V.A,{})}),cyType:l,ariaExpanded:i===l,ariaLabel:m,id:s.replace(/\s+/g,"").toLowerCase()}),(0,n.jsx)("div",{ref:i===l?r:null,className:f()(x.pillFilterContainer,x["pillFilterContainer__".concat(o)],{[x.pillFilterContainer__isActive]:i===l}),children:t})]})};var ov=a(66267),ow=a(49785);let oA="PoiFormContainer",o_=c.Df.withName("PKOBPPoiFormContainer").create(()=>({container:{width:"auto",minWidth:"370px",maxHeight:"484px",borderRadius:"16px 16px 0 0",background:"#fff",[h.Ay.breakpoints.up("md")]:{overflow:"hidden"},[h.Ay.breakpoints.down("md")]:{border:"none",minWidth:"unset"},"&& .MuiFormControlLabel-label":{marginTop:"1px"},"&& .MuiCheckbox-root":{paddingRight:"9px"},"&& .CheckboxField":{display:"flex",alignItems:"center",justifyContent:"start",color:h.Ay.palette.text.primary,fontSize:"16px",lineHeight:"20px",marginBottom:"17px","&:last-of-type":{marginBottom:"0"},[h.Ay.breakpoints.down("md")]:{marginBottom:"17px",fontWeight:400,"& span":{minHeight:"20px"}}}},scrollbox:{scrollbarGutter:"stable","&::-webkit-scrollbar-track":{[h.Ay.breakpoints.up("md")]:{margin:"16px 0 8px 0 !important"}},[h.Ay.breakpoints.up("md")]:{padding:"23px 17px 20px 17px",paddingRight:"8px",marginRight:"8px",maxHeight:"484px",overflowY:"auto",overflowX:"hidden",...eA.J},[h.Ay.breakpoints.down("md")]:{padding:0,margin:0,maxHeight:"unset",marginTop:"3px","&>fieldset":{width:"100%"}}},buttons:{display:"flex",alignItems:"center",justifyContent:"space-between",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),padding:"24px 23px",background:"#fff",borderRadius:"0 0 16px 16px",boxShadow:"0px -3px 6px #81818114",[h.Ay.breakpoints.down("md")]:{position:"fixed",bottom:0,left:0,width:"100%",padding:"16px 18px"}},btn:{minWidth:"154px",margin:0,[h.Ay.breakpoints.down("md")]:{width:"100%"}}})),oj=e=>{let{children:t,handleClearBtnClick:a,handleFilterBtnClick:i,isActive:l}=e,{classes:r}=o_(),o=(0,w.A)(h.Ay.breakpoints.down("md")),{setActivePoi:s}=eS(),d=(e,t)=>{if("Enter"===e.key||" "===e.key){t(),s(null);let a=e.target.closest(".PoiOtherFilter");if(a){let e=a.querySelector("button");e&&setTimeout(()=>{e.focus()},100)}}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ew.A,{className:r.container,tabIndex:-1,children:(0,n.jsx)(ew.A,{className:r.scrollbox,tabIndex:-1,children:t})}),a&&i&&l&&(0,n.jsxs)(ew.A,{className:r.buttons,children:[!o&&(0,n.jsx)(A.default,{type:"button",variant:"secondary",onClickCallback:()=>{a(),s(null)},className:r.btn,cy:"".concat(oA,"--clearBtn"),onKeyDown:e=>d(e,a),children:"Wyczyść"}),(0,n.jsx)(A.default,{type:"button",variant:"primary",onClickCallback:()=>{i(),s(null)},className:r.btn,cy:"".concat(oA,"--filterBtn"),onKeyDown:e=>d(e,i),children:"Filtruj"})]})]})},ok="PoiHoursForm",oC=[{id:"any",label:"Dowolne godziny"},{id:"openNow",label:"Czynne teraz"},{id:"openAllTime",label:"Czynne całą dobę"},{id:"openFromTo",label:"Otwarte w",withSeparator:!0}],oN=["Pn.","Wt.","Śr.","Cz.","Pt.","Sb.","Nd."],oS=Array.from({length:24},(e,t)=>t<10?"0".concat(t,":00"):"".concat(t,":00")),oT={selectedValue:"any",selectedDay:0,selectedStartTime:"11:00",selectedEndTime:"14:00"},oz=c.Df.withName("PKOBPPoiHoursForm").create(()=>
1({container:{"& .MuiFormControlLabel-root":{marginBottom:"15px"}},days:{"&&":{backgroundColor:h.Ay.palette.secondary.backgroundGrey,borderRadius:"8px",padding:"6px",width:"338px",[h.Ay.breakpoints.down("md")]:{maxWidth:"338px",width:"100%"}}},daysGroup:{gap:"4px",justifyContent:"space-between",[h.Ay.breakpoints.down("md")]:{gap:"0px"}},day:{fontFamily:h.Ay.typography.fontFamily,border:"1px solid transparent",background:"transparent",fontSize:"14px",lineHeight:1,cursor:"pointer",borderRadius:"8px",padding:"11px 10px 11px 10px","&.MuiFormControlLabel-root":{margin:"0"},"&& .MuiFormControlLabel-label":{lineHeight:"1",margin:"0",color:h.Ay.palette.text.primary},[h.Ay.breakpoints.down("md")]:{padding:"11px 8px 11px 8px",fontSize:"18px"},"& span":{fontSize:"inherit"}},day__isFocused:{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},day__isActive:{backgroundColor:"#fff",color:h.Ay.palette.primary.main,boxShadow:"0px 12px 20px #0000661A",border:"solid 1px ".concat(h.Ay.palette.secondary.borders),"&& .MuiFormControlLabel-label":{color:h.Ay.palette.primary.main}},dayRadioInput:{width:"0px",height:"0px",opacity:"0",padding:"0",margin:"0","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},time:{display:"flex",alignItems:"center",justifyContent:"space-between",flexDirection:"row",flexWrap:"nowrap",marginTop:19,gap:"30px",[h.Ay.breakpoints.down("md")]:{gap:"16px",marginTop:"20px"}},selectWrapper:{width:"50%"},selectLabel:{position:"relative",fontSize:"14px !important",lineHeight:"20px !important",color:h.Ay.palette.text.primary,transform:"none",marginLeft:"-1px"},select:{marginTop:"4px",height:"48px","& select":{zIndex:"1"},"& svg":{display:"inline-block",width:"24px",height:"24px",position:"absolute",right:6,top:12},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,borderRadius:"8px",transition:"border 0.2s ease-in-out"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{},"& fieldset>legend":{width:0}}})),oL=e=>{let{setActiveBox:t,initialValue:a,initialDay:i,initialEndTime:l,initialStartTime:r,isActive:o}=e,{classes:s,cx:c}=oz(),{handleFilterChange:p}=eS(),[u,m]=(0,d.useState)(a||oT.selectedValue),[h,x]=(0,d.useState)(i||oT.selectedDay),[g,y]=(0,d.useState)(null),[b,v]=(0,d.useState)(r||oT.selectedStartTime),[w,A]=(0,d.useState)(l||oT.selectedEndTime),_=(0,d.useRef)(null),j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";oC.forEach(t=>{t.id!==e&&"any"!==t.id&&p(t.id,null)}),"openFromTo"!==e&&(x(oT.selectedDay),v(oT.selectedStartTime),A(oT.selectedEndTime))},k=e=>parseInt(e.split(":")[0])>parseInt(b.split(":")[0]);return(0,d.useEffect)(()=>{k(w)||A("".concat(parseInt(b.split(":")[0])+1,":00"))},[b]),(0,n.jsx)(oj,{handleClearBtnClick:()=>{m(oT.selectedValue),x(oT.selectedDay),v(oT.selectedStartTime),A(oT.selectedEndTime),j(),t("")},handleFilterBtnClick:()=>{switch(u){case"any":j();break;case"openNow":p("openNow",!0),j("openNow");break;case"openAllTime":p("openAllTime",!0),j("openAllTime");break;case"openFromTo":p("openFromTo","".concat(h,",").concat(b,",").concat(w)),j("openFromTo")}t("")},"data-cy":ok,isActive:o,children:o&&(0,n.jsxs)(id.A,{component:"fieldset",className:s.container,tabIndex:-1,children:[(0,n.jsx)(ry.A,{radioOptions:oC,defaultValue:"any",value:u,handleChange:e=>{m(e.target.value)},wcagPrefix:"Wybierz godziny pracy",name:"hours"}),(0,n.jsx)(id.A,{component:"fieldset",className:s.days,children:(0,n.jsx)(ow.A,{value:h,onChange:(e,t)=>
1{var a;return a=Number(t),void(m("openFromTo"),x(a))},ref:_,row:!0,className:s.daysGroup,"aria-label":"Wybierz dzień tygodnia",role:"radiogroup",children:oN.map((e,t)=>(0,n.jsx)(rx.A,{value:t,control:(0,n.jsx)(ov.A,{className:s.dayRadioInput,tabIndex:"openFromTo"===u?0:-1,disableRipple:!0,onFocus:()=>y(t),onBlur:()=>y(null),"aria-label":oR[t]}),label:(0,n.jsx)("span",{"aria-hidden":"true",children:e}),className:f()(s.day,{[s.day__isActive]:h===t,[s.day__isFocused]:g===t}),"data-cy":"".concat(ok,"--day").concat(t)},"".concat(e,"_").concat(t)))})}),(0,n.jsxs)(is.A,{className:s.time,children:[(0,n.jsxs)(id.A,{className:s.selectWrapper,children:[(0,n.jsx)(aL.A,{htmlFor:"hour-start-time",variant:"standard",className:s.selectLabel,children:"Od godziny"}),(0,n.jsx)(J.A,{className:s.select,name:"startTime",value:b,onChange:e=>{let t=e.target.value;m("openFromTo"),v(t)},displayEmpty:!0,IconComponent:()=>(0,n.jsx)(V.A,{}),native:!0,id:"hour-start-time",label:"",inputProps:{tabIndex:"openFromTo"===u?0:-1},children:oS.map(e=>(0,n.jsx)("option",{value:e,className:s.option,children:e},"".concat(e,"_fromHours")))})]}),(0,n.jsxs)(id.A,{className:s.selectWrapper,children:[(0,n.jsx)(aL.A,{htmlFor:"hour-end-time",variant:"standard",className:s.selectLabel,children:"Do godziny"}),(0,n.jsx)(J.A,{className:s.select,name:"endTime",value:w,onChange:e=>{let t=e.target.value;m("openFromTo"),A(t)},displayEmpty:!0,IconComponent:()=>(0,n.jsx)(V.A,{}),native:!0,id:"hour-end-time",label:"",inputProps:{tabIndex:"openFromTo"===u?0:-1},children:oS.map(e=>{if(k(e))return(0,n.jsx)("option",{value:e,className:s.option,children:e},"".concat(e,"_fromHours"))})})]})]})]})})},oP=e=>{let{setActiveBox:t,initialSegments:a,initialServicesInsideSegments:i,isActive:l}=e,{handleFilterChange:r,segmentList:o}=eS(),[s,c]=(0,d.useState)(a||[]),[p,u]=(0,d.useState)(i||[]);return!!(null==o?void 0:o.length)&&(0,n.jsx)(oj,{handleClearBtnClick:()=>{c([]),u([]),r("segments",null),r("servicesInsideSegments",null),t("")},handleFilterBtnClick:()=>{r("segments",(null==s?void 0:s.length)?s:null),r("servicesInsideSegments",(null==p?void 0:p.length)?p:null),t("")},isActive:l,children:l&&(0,n.jsx)(id.A,{component:"fieldset",children:(0,n.jsx)(is.A,{"aria-label":"Wybierz filtry dla Segment klienta",children:o.map(e=>{var t;return null==e||null==(t=e.values)?void 0:t.map(t=>{let[a,i]=Object.entries(t)[0];return(0,n.jsx)(n.Fragment,{children:"Firmy"===i&&"service"===e.type?null:(0,n.jsx)(nF.A,{checked:((e,t)=>{switch(t){case"client":return s.includes(e);case"service":return p.includes(e);default:return!1}})(a,e.type),onChange:t=>((e,t,a,n)=>{if("Firmy"===n){var i,l,r;let a=null==(l=o.find(e=>"service"===e.type))||null==(i=l.values)?void 0:i.find(e=>Object.values(e).includes("Firmy")),n=a?null==(r=Object.keys(a))?void 0:r[0]:"-1";c(t?[...s,e]:s.filter(t=>t!==e)),u(t?[...p,n]:p.filter(e=>e!==n))}else switch(a){case"client":c(t?[...s,e]:s.filter(t=>t!==e));break;case"service":u(t?[...p,e]:p.filter(t=>t!==e))}})(a,t,e.type,i),label:i,cy:"".concat("PoiSegmentsForm","--checkbox"),$_ID:a},a)})})})})})})};var oI=a(90677);let oE=c.Df.withName("PKOBPPoiServicesInfoForAgencies").create(()=>({container:{color:h.Ay.palette.text.primary,marginBottom:"25px"},header:{margin:"0",padding:"0",fontSize:"16px",lineHeight:"24px",color:"#00000B"},list:{margin:"16px 0 0 0",padding:"0 0 0 17px",fontSize:"16px",lineHeight:"24px","& li::marker":{color:h.Ay.palette.grey[700],width:"6px",height:"6px",fontSize:"19px"},"& li:not(:last-of-type)":{marginBottom:"8px"}}})),oO=()=>{let{classes:e}=oE();return(0,n.jsxs)(ew.A,{className:e.container,"data-cy":"PoiServicesInfoForAgencies",children:[(0,n.jsx)("h4",{className:e.header,children:"Agencja gł\xf3wnie świadczy poniższe usługi"}),(0,n.jsxs)("ul",{className:e.list,children:[(0,n.jsx)("li",{children:"Zawieranie um\xf3w kredyt\xf3w i pożyczek got\xf3wkowych"}),(0,n.jsx)("li",{children:"Zawieranie um\xf3w o prowadzenie rachunk\xf3w bankowych, lokat terminowych"}),(0,n.jsx)("li",{children:"Zawieranie um\xf3w o karty kredytowe"}),(0,n.jsx)("li",{children:"Dokonywanie wpłat na rachunki bankowe, wypłaty, realizacja przelew\xf3w do ZUS, Urzędu Skarbowego"}),(0,n.jsx)("li",{children:"Regulowanie rachunk\xf3w m.in. za prąd, gaz, telefon, telewizję"})]})]})},oB="PoiServicesForm",oF=c.Df.withName("PKOBPPoiServicesForm").create(()=>({accordion:{padding:"25px 0 0 0",borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),borderBottom:"unset",borderRadius:"0 !important","&:last-of-type":{[h.Ay.breakpoints.up("md")]:{borderBottom:"solid 1px ".concat(h.Ay.palette.secondary.borders),"&.Mui-expanded":{paddingBottom:"24px"}}},"&::before":{display:"none"},"&.Mui-expanded":{marginTop:"0",marginBottom:"24px"},"& .MuiAccordionSummary-root":{width:"100%",justifyContent:"space-between",marginBottom:"24px",[h.Ay.breakpoints.down("md")]:{marginBottom:"23px"}},"& .MuiAccordionSummary-expandIconWrapper":{[h.Ay.breakpoints.down("md")]:{marginRight:"0px"},marginRight:"6px"}}
1,accordion__isCurrencies:{"& .MuiAccordionDetails-root":{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gridRowGap:"13px",paddingRight:"22px"},"&& .CheckboxField":{marginBottom:"0"}},accordion__title:{width:"100%"}})),oD=e=>{let{setActiveBox:t,initialServices:a,initialCurrencies:i,initialConveniences:l,isActive:r,showOnlyConvenience:o,showExtraInfoForAgencies:s}=e,{classes:c}=oF(),p=(0,en.A)(),{handleFilterChange:u}=eS(),[m,h]=(0,d.useState)([]),[x,g]=(0,d.useState)(a||[]),[y,b]=(0,d.useState)(i||[]),[v,w]=(0,d.useState)(l||[]),[A,_]=(0,d.useState)(!1),j=(e,t,a,n)=>{n(t?[...a,e]:a.filter(t=>t!==e))},k=async()=>{_(!0);try{let e=await p.apiModulesPoiConveniencesLabelList({format:"json"}),t=null==e?void 0:e.data;if(t)return t}catch(e){console.error(e)}finally{_(!1)}},C=async()=>{_(!0);try{var e;let t=await p.apiModulesPoiServicesLabelList({format:"json"}),a=null==t||null==(e=t.data)?void 0:e.filter(e=>"Wideorozmowa"!==e.label);if(a){let e=await k();e&&a.splice(a.length-1,0,e),h(a)}else h([])}catch(e){console.error(e),h([])}finally{_(!1)}};return(0,d.useEffect)(()=>{C()},[]),!!(null==m?void 0:m.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eo.Ay,{size:eo.iW.MD,isLoading:A,withOverlay:!0}),(0,n.jsxs)(oj,{handleClearBtnClick:()=>{g([]),b([]),w([]),u("services",null),u("currencies",null),u("conveniences",null),t("")},handleFilterBtnClick:()=>{let e=(null==x?void 0:x.length)?"".concat(x):null,a=(null==y?void 0:y.length)?"".concat(y):null,n=(null==v?void 0:v.length)?"".concat(v):null;u("services",e),u("currencies",a),u("conveniences",n),t("")},isActive:r,children:[s&&(0,n.jsx)(oO,{}),r&&m.map((e,t)=>{let{label:a,values:i,type:l}=e;return o&&"convenience"!==l?null:(0,n.jsx)(oI.A,{title:a,ariaLabel:a,className:f()(c.accordion,{[c.accordion__isCurrencies]:"currencies"===l}),styleTitleBolder:!0,defaultExpanded:o||i.some(e=>x.includes(e.id)||y.includes(e.id)),cy:oB,uuid:a.replace(/\s+/g,"").toLowerCase()+t,children:i.map(e=>{let{id:t,label:a}=e;return(0,n.jsx)(nF.A,{checked:((e,t)=>{switch(t){case"service":return x.includes(e);case"currencies":return y.includes(e);case"convenience":return v.includes(e);default:return!1}})(t,l),onChange:e=>((e,t,a)=>{switch(a){case"service":j(e,t,x,g);break;case"currencies":j(e,t,y,b);break;case"convenience":j(e,t,v,w)}})(t,e,l),label:a,cy:"".concat(oB,"--checkbox"),$_ID:l+t},l+t)})},a.replace(/\s+/g,"").toLowerCase()+t)})]})]})},oR=["Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],oM=c.Df.withName("PKOBPPoiOtherFilters").create(()=>({pill:{},iconLeft:{height:"24px",marginRight:"4px",fill:h.Ay.palette.primary.main,"& svg":{height:"24px",width:"24px"},"& *":{fill:"inherit !important"}},closeIcon:{display:"flex",alignItems:"center",justifyContent:"center",[h.Ay.breakpoints.down("md")]:{position:"relative",left:"-4px"}},mobileModal:{"& .MuiPaper-root":{width:"100%","&:last-of-type":{paddingBottom:"80px"}}}})),oH=()=>{var e,t,a,i,l,r,o,s,c,p,u,m,x;let{classes:g}=oM(),[y,b]=(0,d.useState)(""),[f,v]=(0,d.useState)("left"),{segmentList:A,filters:_,resetFilters:j,setActivePoi:k,forcedPoiType:C,setSearchInput:N,isBmMap:S}=eS(),T=(0,d.useRef)(null),z=(0,d.useRef)(null),L=(0,w.A)(h.Ay.breakpoints.down("md")),P=()=>{if(v("left"),!(null==z?void 0:z.current))return;let e=T.current.getBoundingClientRect(),t=z.current.getBoundingClientRect();e.right-t.right<30?v("right"):v("left")};(0,d.useEffect)(()=>(P(),window.addEventListener("resize",P),()=>{window.removeEventListener("resize",P)}),[y]);let I=(e,t)=>{var a,n,i,l;if(!e)return 0;if(!t)return"string"==typeof e?(null==e||null==(a=e.split(","))?void 0:a.length)||0:(null==e?void 0:e.length)||0;{let t=null==(i=A.find(e=>"service"===e.type))||null==(n=i.values)?void 0:n.find(e=>Object.values(e).includes("Firmy")),a=t?null==(l=Object.keys(t))?void 0:l[0]:"-1";return null==e?void 0:e.filter(e=>e!==a).length}},E=()=>{if(null==_?void 0:_.openNow)return"Czynne teraz";if(null==_?void 0:_.openAllTime)return"Czynne całą dobę";if(null==_?void 0:_.openFromTo){let e=_.openFromTo.split(",");return"".concat(oR[Number(e[0])],", ").concat(e[1]," - ").concat(e[2])}return!1},O=e=>{var t,a,n,i,l,r;let o=T.current&&(!T.current.contains(e.target)||!T.current.contains(null==(t=e.target)?void 0:t.parentNode)),s=(null==(n=e.target)||null==(a=n.classList)?void 0:a.contains("PoiPillsSliderArrowPrev"))||(null==(r=e.target)||null==(l=r.parentNode)||null==(i=l.classList)?void 0:i.contains("PoiPillsSliderArrowPrev"));(o||s)&&y&&b("")},B=()=>(null==_?void 0:_.openNow)?"openNow":(null==_?void 0:_.openAllTime)?"openAllTime":(null==_?void 0:_.openFromTo)?"openFromTo":"any",F=null==_||null==(e=_.openFromTo)?void 0:e.split(",");(0,d.useEffect)(()=>(L||document.addEventListener("click",O,!0),()=>{L||document.removeEventListener("click",O,!0)}));let D=(null==C?void 0:C.key)||(null==_||null==(t=_.type)?void 0:t.key)||(null==_||null==(a=_.atm_type)?void 0:a.key),R=I(null==_?void 0:_.segments)+I(null==_?void 0:_.servicesInsideSegments,!0),M=I(null==_?void 0:_.services)+I(null==_?void 0:_.currencies)+I(null==_?void 0:_.conveniences),H=R>0,W=M>0,U=function(){var e,t,a,i,l,r;let o=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,n.jsx)(of,{className:"POI_PILL_FILTERS",pillRef:z,type:"services",boxPosition:f,setActiveBox:b,activeBox:y,label:"Dostępne usługi",numberOfChecked:M,isActive:W,ariaLabel:W?"Zmień ".concat(M," wybrane filtry w Dostępne usługi"):"Ustaw filtr Dostępne usługi",iconLeft:(0,n.jsx)("span",{className:g.iconLeft,children:(0,n.jsx)(od,{})}),children:(0,n.jsx)(oD,{initialServices:null==(t=_.services)||null==(e=t.split(","))?void 0:e.map(e=>Number(e)),initialCurrencies:null==(i=_.currencies)||null==(a=i.split(","))?void 0:a.map(e=>Number(e)),initialConveniences:null==(r=_.conveniences)||null==(l=r.split(","))?void 0:l.map(e=>Number(e)),setActiveBox:b,isActive:"services"===y,showOnlyConvenience:o,showExtraInfoForAgencies:s})})};return(0,n.jsxs)("div",{ref:T,style:{width:"100%"},"data-cy":"PoiOtherFilters",children:[(0,n.jsxs)(oy,{pillClass:"POI_PILL_FILTERS",handleResize:P,setActiveBox:b,ariaLabelForPillsGroup:"W
1ybierz pozostałe filtry",children:[D&&(0,n.jsx)(ou,{handleBtnClick:()=>{j(),k(null),C&&N("")},className:"POI_PILL_FILTERS",label:(null==C?void 0:C.label)||(null==_||null==(i=_.type)?void 0:i.label)||(null==_||null==(l=_.atm_type)?void 0:l.label),isActive:!0,iconRight:(0,n.jsx)(Y.A,{className:g.closeIcon}),adjustPaddingsToIcon:!0,ariaLabel:"Usuń wybrany filtr ".concat((null==_||null==(r=_.type)?void 0:r.label)||(null==_||null==(o=_.atm_type)?void 0:o.label))}),"wrzutnia"!==D&&D!==ez&&"private_banking"!==D&&(0,n.jsx)(of,{className:"POI_PILL_FILTERS",pillRef:z,type:"hours",boxPosition:f,setActiveBox:b,activeBox:y,label:E()||"Godziny pracy",ariaLabel:E()?"Zmień wybrany fitr ".concat(E()):"Ustaw filtr Godziny pracy",isActive:!!E(),iconLeft:(0,n.jsx)("span",{className:g.iconLeft,children:(0,n.jsx)(eZ.A,{})}),children:(0,n.jsx)(oL,{initialValue:B(),initialDay:Number(null==F?void 0:F[0]),initialStartTime:null==F?void 0:F[1],initialEndTime:null==F?void 0:F[2],setActiveBox:b,isActive:"hours"===y})}),"facility"===D&&!S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(of,{className:"POI_PILL_FILTERS",pillRef:z,numberOfChecked:R,isActive:H,ariaLabel:H?"Zmień ".concat(R," wybrane filtry w Segment klienta"):"Ustaw filtr Segment klienta",type:"segments",boxPosition:f,setActiveBox:b,activeBox:y,label:"Segment klienta",iconLeft:(0,n.jsx)("span",{className:g.iconLeft,children:(0,n.jsx)(oc,{})}),children:(0,n.jsx)(oP,{initialSegments:_.segments,initialServicesInsideSegments:_.servicesInsideSegments,setActiveBox:b,isActive:"segments"===y})}),U()]}),("private_banking"===D&&!S||"broker"===D)&&U(!0),"agency"===D&&!S&&U(!0,!0)]}),(0,n.jsxs)(ea.Ay,{fullScreen:!0,isOpen:!!(L&&y),handleClose:()=>b(""),title:"hours"===y?"Godziny pracy":"segments"===y?"Segment klienta":"services"===y?"Dostępne usługi":void 0,modalStyle:ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE,className:g.mobileModal,children:["hours"===y&&(0,n.jsx)(oL,{setActiveBox:b,initialValue:B(),initialDay:Number(null==F?void 0:F[0]),initialStartTime:null==F?void 0:F[1],initialEndTime:null==F?void 0:F[2],isActive:"hours"===y}),"segments"===y&&!S&&(0,n.jsx)(oP,{initialSegments:_.segments,initialServicesInsideSegments:_.servicesInsideSegments,setActiveBox:b,isActive:"segments"===y}),"services"===y&&(0,n.jsx)(oD,{initialServices:null==(c=_.services)||null==(s=c.split(","))?void 0:s.map(e=>Number(e)),initialCurrencies:null==(u=_.currencies)||null==(p=u.split(","))?void 0:p.map(e=>Number(e)),initialConveniences:null==(x=_.conveniences)||null==(m
1=x.split(","))?void 0:m.map(e=>Number(e)),setActiveBox:b,isActive:"services"===y,showOnlyConvenience:"agency"===D||"private_banking"===D||"broker"===D,showExtraInfoForAgencies:"agency"===D})]})]})},oW=c.Df.withName("PKOBPPoiFilters").create(()=>({container:{position:"absolute",top:"32px",left:"406px",width:"calc(100% - 422px)",display:"flex",alignItems:"center",justifyContent:"start",zIndex:1,[h.Ay.breakpoints.down("md")]:{position:"static",width:"100%"}},pill:{}})),oU=e=>{let{isAddressSearchActive:t,handleSearch:a}=e,{classes:i}=oW(),{poiTypes:l,filters:r,handleFilterChange:o,setSearchInput:s,setActivePoi:d,centerCoordinates:c,setCenterCoordinates:p,forcedPoiType:u,isBmMap:m,bmLabels:h}=eS();return(0,n.jsxs)(ew.A,{className:i.container,"data-cy":"PoiFilters",children:[!t&&!(null==r?void 0:r.type)&&!(null==r?void 0:r.atm_type)&&(0,n.jsx)(oy,{pillClass:"POI_PILL_CITY",ariaLabelForPillsGroup:"Wybierz miasto",children:eT.map((e,t)=>(0,n.jsx)(ou,{cyType:e,handleBtnClick:e=>{var t,n;s(null==e||null==(t=e.target)?void 0:t.innerText),a(null==e||null==(n=e.target)?void 0:n.innerText),d(null)},className:"POI_PILL_CITY",label:e,id:e.replace(/\s+/g,"").toLowerCase()+t},e))}),t&&!u&&!(null==r?void 0:r.type)&&!(null==r?void 0:r.atm_type)&&(0,n.jsx)(oy,{pillClass:"POI_PILL_TYPE",ariaLabelForPillsGroup:"Wybierz rodzaj plac\xf3wki lub bankomatu",children:m&&h.length>0?h.map((e,t)=>(0,n.jsx)(ou,{cyType:e.label.replace(/\s+/g,"").toLowerCase()+t,handleBtnClick:()=>(e=>{o("type",{key:e.type,label:e.label}),e.services&&e.services.length?o("services",e.services.join(",")):o("services",null),d(null)})(e),className:"POI_PILL_TYPE",label:e.label,id:e.label.replace(/\s+/g,"").toLowerCase()+t},e.type+(e.services?"-".concat(e.services.join("-")):""))):l.map((e,t)=>{let{key:a,label:i}=e,l="atm_pko"===a||"cashdep_pko"===a?"atm_type":"type";return(0,n.jsx)(ou,{cyType:i.replace(/\s+/g,"").toLowerCase()+t,handleBtnClick:()=>((e,t,a)=>{t===ez?(o(e,{key:t,label:a}),d({...eL,distance:ts(eL,c)}),p({lat:eL.lat,lng:eL.lng}),s("".concat(eL.address,", ").concat(eL.zipcode," ").concat(eL.city))):(o(e,{key:t,label:a}),d(null))})(l,a,i),className:"POI_PILL_TYPE",label:i,id:i.replace(/\s+/g,"").toLowerCase()+t},a)})}),((null==r?void 0:r.type)||(null==r?void 0:r.atm_type)||!!u&&t)&&(0,n.jsx)(oH,{})]})};var oG=a(79993);let oK="PoiSearcherAutocomplete",oV=c.Df.withName("PKOBPPoiSearcherAutocomplete").create(()=>({container:{color:h.Ay.palette.primary.main,borderTop:"solid 1px ".concat(h.Ay.palette.secondary.borders),padding:"8px 16px",[h.Ay.breakpoints.down("md")]:{padding:"8px 7px"}},list:{listStyle:"none",margin:"0",padding:"0"},button:{...h.cc,display:"grid",gridTemplateColumns:"26px 1fr",alignItems:"center",minHeight:"40px",width:"100%",textAlign:"left",gap:"16px",transition:"background 0.3s ease-in-out ",padding:"7px 8px",fontSize:"16px",lineHeight:"20px",marginLeft:"-1px","& svg":{width:"26px",height:"26px",fill:h.Ay.palette.primary.main},"&:hover, &:focus":{background:h.Ay.palette.secondary.backgroundGrey}},button__isOpen:{background:h.Ay.palette.secondary.backgroundGrey},itemName:{"& > span":{color:h.Ay.palette.text.primary}}})),oY=e=>{let{handleSearch:t,activeAutocompleteIndex:a,handleItemClick:i}=e,{classes:l}=oV(),{autocompleteList:r}=eS();return(null==r?void 0:r.length)?(0,n.jsx)(ew.A,{className:l.container,"data-cy":oK,children:(0,n.jsx)("div",{children:(0,n.jsx)("ul",{className:l.list,children:null==r?void 0:r.map((e,t)=>(0,n.jsx)("li",{className:l.listItem,children:(0,n.jsxs)("button",{className:f()(l.button,{[l.button__isOpen]:a===t}),onClick:()=>i(e),"data-cy":"".concat(oK,"--autocompleteItem-").concat(t),children:[(0,n.jsx)(oG.A,{}),(0,n.jsx)("span",{className:l.itemName,dangerouslySetInnerHTML:{__html:function(e,t){return t.sort((e,t)=>t.offset-e.offset),t.forEach(t=>{let a=t.offset,n=t.offset+t.length,i=e.substring(a,n);e=e.substring(0,a)+"<span>".concat(i,"</span>")+e.substring(n)}),e}(e.description,e.matched_substrings)}})]})},e.place_id))})})}):null};var oZ=a(84013);let oq="PoiSearcherListItem",oX={fontSize:"14px",lineHeight:"20px",fontWeight:300,marginBottom:"3px"},o$=c.Df.withName("PKOBPPoiSearcherListItem").create(()=>({container:{...h.cc,marginBottom:"15px",display:"flex",alignItems:"start",justifyContent:"start",borderBottom:"1px solid ".concat(h.Ay.palette.secondary.borders),paddingBottom:"8px",width:"100%","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},listItem:{"&:first-of-type > button":{marginTop:"16px"},"&:last-of-type > button":{marginBottom:"0px",[h.Ay.breakpoints.up("md")]:{border:"none",paddingBottom:"0px"}}},listItem__isScrollButton:{"&:last-of-type > button":{borderBottom:"1px solid ".concat(h.Ay.palette.secondary.borders),marginBottom:"56px",paddingBottom:"8px"}},content:{width:"100%"},icon:{width:"32px",height:"32px",marginRight:"8px",border:"unset",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",padding:"0","& svg":{width:"32px",height:"32px",fill:h.Ay.palette.primary.main}},icon__isAtm:{width:"30px",height:"30px"},label:{display:"flex",alignItems:"top",justifyContent:"space-between",gap:"8px",...oX,lineHeight:"16px"},distance:{whiteSpace:"nowrap"},title:{fontSize:"18px",lineHeight:"24px",color:h.Ay.palette.primary.main,fontWeight:600,marginBottom:"3px"},address:{...oX,marginBottom:"2px",[h.Ay.breakpoints.down("md")]:{marginBottom:"2px"}},openHours:{...oX,[h.Ay.breakpoints.down("md")]:{marginBottom:"2px"}},openHours__isClosed:{fontWeight:500},hours:{fontWeight:600,color:h.Ay.palette.success.main},hours__isClosed:{color:h.Ay.palette.error.main},comments:{...oX,color:h.Ay.palette.error.main,[h.Ay.breakpoints.down("md")]:{marginBottom:"5px"}}})),oJ=e=>{var t;let{poi:a,showScrollButton:i,isFocus:l}=e,{classes:r}=o$(),o=(0,d.useRef)(null),{setActivePoi:s,filters:c,setFocusedPoi:p}=eS();return(0,d.useEffect)(()=>{l&&(null==o?void 0:o.current)&&(o.current.contentEditable="true",o.current.focus(),o.current.contentEditable="false")},[l]),(0,n.jsx)("li",{className:f()(r.listItem,{[r.listItem__isScrollButton]:i}),children:(0,n.jsxs)("button",{type:"button",className:f()(r.container,{[r.container__isScrollButton]:i}),onClick:()=>s(a),"data-cy":"".concat(oq,"--").concat(a.label),ref:o,onFocus:()=>{p("".concat((null==a?void 0:a.lat)||"").concat((null==a?void 0:a.lng)||""))},onBlur:e=>{var t;p(""),null==e||null==(t=e.target)||t.removeAttribute("data-focused")},children:[(0,n.jsx)("span",{className:f()(r.icon,{[r.icon__isAtm]:"atm_pko"===a.label}),"data-cy":"".concat(oq,"--icon"),children:(e=>{switch(e){case"atm_pko":return(0,n.jsx)(eI,{});case"broker":return(0,n.jsx)(eK,{});default:return(0,n.jsx)(eB.A,{})}})(a.label)}),(0,n.jsxs)("div",{className:r.content,children:[(0,n.jsx)("div",{className:r.label,children:(0,n.jsx)("span",{"data-cy":"".concat(oq,"--label"),children:(null==c||null==(t=c.atm_type)?void 0:t.key)==="cashdep_pko"?"Wpłatomat":a.mapped_label})}),(0,n.jsx)("div",{className:r.title,"data-cy":"".concat(oq,"--title"),children:a.fancy_name}),(0,n.jsxs)("div",{className:r.address,"data-cy":"".concat(oq,"--address"),children:[a.zipcode," ",a.city,", ",a.address]}),(()=>{let e=(0,eJ.f3)(a.opening_hours);return e?(0,n.jsxs)("div",{className:f()(r.openHours,{[r.openHours__isClosed]:!e.isOpen}),"data-cy":"".concat(oq,"--openHours"),children:[(0,n.jsx)("span",{className:f()(r.hours,{[r.hours__isClosed]:!e.isOpen}),children:e.label})," ",e.extraInfo]}):null})(),(0,eJ.h1)(null==a?void 0:a.cash_service_opening_hours,null==a?void 0:a.opening_hours)&&!(null==a?void 0:a.no_cash_dept)&&(0,n.jsx)("div",{className:r.comments,"data-cy":"".concat(oq,"--extraInfo"),children:(0,eJ._n)(null==a?void 0:a.cash_service_opening_hours)}),(null==a?void 0:a.no_cash_dept)&&(0,n.jsx)("div",{className:r.comments,"data-cy":"".concat(oq,"--extraInfo"),children:eP})]})]})})},oQ="PoiSearcherList",o0=c.Df.withName("PKOBPPoiSearcherList").create(()=>({hr:{margin:0,padding:0,border:"none",borderTop:"1px solid ".concat(h.Ay.palette.secondary.borders)},poiQty:{fontSize:"14px",lineHeight:"20px",fontWeight:300,padding:"16px 0",margin:"0 16px",display:"block",borderBottom:"1px solid ".concat(h.Ay.palette.secondary.borders),[h.Ay.breakpoints.down("md")]:{margin:"0"}},poiList:{...eA.J,scrollbarGutter:"stable",overflow:"auto",height:"calc(660px - 80px - 53px)",padding:"0 12px 16px 16px",margin:"0 8px 0 0",[h.Ay.breakpoints.down("md")]:{marginRight:"0px",height:"auto",padding:"0",scrollbarGutter:"unset",overflow:"unset"},"& li":{margin:0,padding:0,listStyle:"none"},'& li > button[data-focused="true"]':{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},showMoreBtn:{display:"block",width:"100%",marginTop:"32px"},goTopBtnWrapper:{position:"absolute",bottom:16,left:0,right:0,display:"flex",alignItems:"center",justifyContent:"center"},goTopBtn:{minWidth:"118px",minHeight:"40px",fontSize:"14px",display:"flex",alignItems:"center",justifyContent:"center",padding:"0",margin:"0","&>svg":{position:"relative",left:"-7px",transform:"scale(1.15)"}}})),o1=e=>{let{showList:t}=e,{classes:a}=o0(),{poiList:i,mobileView:l,isBmMap:r}=eS(),o=r?i.sort((e,t)=>
1"broker"===e.label?-1:+("broker"===t.label)):i,s=(0,w.A)(h.Ay.breakpoints.down("md")),[c,p]=(0,d.useState)(10),[u,m]=(0,d.useState)(0),[x,g]=(0,d.useState)(!1),y=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=()=>{var e;(null==(e=y.current)?void 0:e.scrollTop)>250?g(!0):g(!1)};if(y.current){var t;null==(t=y.current)||t.addEventListener("scroll",e)}return()=>{if(y.current){var t;null==(t=y.current)||t.removeEventListener("scroll",e),g(!1)}}},[t]),(0,d.useEffect)(()=>{"list"===l&&m(1)},[l]);let b=()=>{var e;null==(e=y.current)||e.scrollTo({top:0,behavior:"smooth"})},f=s?o.slice(0,c):o;return t?(0,n.jsxs)("div",{"data-cy":oQ,children:[(0,n.jsx)("hr",{className:a.hr}),(0,n.jsx)("span",{className:a.poiQty,children:(null==i?void 0:i.length)?"".concat(null==i?void 0:i.length," ").concat((0,ak.lw)(Number(null==i?void 0:i.length))," wyszukiwania"):"Brak wynik\xf3w - zmień kryteria wyszukiwania"}),(0,n.jsx)("ul",{className:a.poiList,ref:y,tabIndex:-1,children:!!(null==i?void 0:i.length)&&(0,n.jsx)(n.Fragment,{children:f.map((e,t)=>(0,n.jsx)(oJ,{poi:e,showScrollButton:x,isFocus:u===t+1},"".concat(e.fancy_name,"_").concat(e.address,"_").concat(e.lat,"_").concat(e.lng,"_").concat(t)))})}),(null==i?void 0:i.length)>c&&s&&(0,n.jsx)(A.default,{type:"button",className:a.showMoreBtn,onClickCallback:()=>{m(c+1),p(e=>e+10)},variant:"secondary",cy:"".concat(oQ,"--showMoreBtn"),children:"Pokaż więcej"}),!s&&x&&(0,n.jsx)("div",{className:a.goTopBtnWrapper,children:(0,n.jsxs)(A.default,{type:"button",className:a.goTopBtn,onClickCallback:b,onKeyDown:e=>{if("Enter"===e.key||" "===e.key){var t;null==e||e.preventDefault(),b();let a=null==y||null==(t=y.current)?void 0:t.querySelector("li > button");a.focus(),a.setAttribute("data-focused","true")}},variant:"secondary",ariaLabel:"Wr\xf3ć do początku listy",cy:"".concat(oQ,"--goUpBtn"),children:[(0,n.jsx)(oZ.A,{})," Do g\xf3ry"]})})]}):null},o2="PoiSearcher",o6=c.Df.withName("PKOBPPoiSearcher").withNestedSelectors().create(e=>{let{classes:t}=e;return{container:{position:"absolute",top:"20px",left:"20px",width:"370px",color:"#000",[h.Ay.breakpoints.down("md")]:{position:"relative",top:"0",left:"0",width:"calc(100% - 32px)",margin:"16px 16px 16px 16px"}},container__isOutsideMap:{[h.Ay.breakpoints.down("md")]:{margin:"0 0 12px 0",width:"100%",["& .".concat(t.searchSidebar)]:{boxShadow:"none",overflow:"unset"},["& .".concat(t.inputContainer)]:{padding:"0",minHeight:"48px"},["& .".concat(t.buttons)]:{top:8,right:4}}},container__insideModal:{margin:"0 !important",padding:"8px 8px 0 8px !important",width:"100% !important",["& .".concat(t.searchSidebar)]:{boxShadow:"none"},["& .".concat(t.inputContainer)]:{paddingBottom:"16px"}},searchSidebar:{width:"100%",background:"#fff",borderRadius:"16px",boxShadow:"0px 8px 32px #0000003D",maxHeight:"660px",overflow:"hidden"},inputContainer:{position:"relative",width:"100%",minHeight:"80px",display:"flex",alignItems:"center",justifyContent:"start",padding:"16px",[h.Ay.breakpoints.down("md")]:{padding:"8px 8px 9px 8px",minHeight:"65px"}},input:{width:"338px",height:"48px",fontSize:16,borderRadius:8,border:"1px solid ".concat(h.Ay.palette.secondary.bordersDark),padding:"12px 80px 12px 12px",fontFamily:h.Ay.typography.fontFamily,"&:focus, &:active, &:visited, &:focus-visible":{border:"1px solid ".concat(h.Ay.palette.primary.main),outline:"none"},"&::placeholder":{color:"#636363",fontWeight:400},[h.Ay.breakpoints.down("md")]:{width:"100%"}},buttons:{position:"absolute",top:24,right:19,display:"flex",alignItems:"center",justifyContent:"start",[h.Ay.breakpoints.down("md")]:{top:16,right:12}},inputButton:{width:"32px",height:"32px",border:"none",display:"flex",alignItems:"center",justifyContent:"center",background:"transparent",padding:"0",cursor:"pointer","& svg":{background:"transparent",width:"24px",height:"24px",display:"block"}},inputButton__isSearch:{marginRight:"7px",[h.Ay.breakpoints.down("md")]:{marginRight:"6px"},"& svg":{width:"32px",height:"32px",fill:h.Ay.palette.primary.main}},inputButton__isGeo:{marginLeft:"4px"},inputButton__isClose:{marginRight:"7px","& svg":{fill:h.Ay.palette.grey[400]}},line:{width:"1px",height:"24px",background:h.Ay.palette.secondary.borders}}}),o4=e=>{let{handleLocate:t,handleSearch:a,insideModal:i}=e,{classes:l}=o6(),{showXBtn:r,setShowXBtn:o,searchInput:s,setSearchInput:c,mobileView:p,activePoi:u,autocompleteList:m,setAutocompleteList:x,isSearchInputActive:g,setIsSearchInputActive:y,resetFilters:b,forcedPoiType:v}=eS(),A=(0,d.useRef)(null),_=(0,d.useRef)(null),[j,k]=(0,d.useState)(-1),[C,N]=(0,d.useState)(!1),S=(0,w.A)(h.Ay.breakpoints.up("md")),T=e=>{A.current&&!A.current.contains(e.target)&&g&&y(!1)},z=e=>{c(e.description),o(!0),a(e.description,null==e?void 0:e.place_id),y(!1)},L=(0,d.useCallback)((0,az.s)(800,e=>{if(!e)return void x(null);window.google&&new window.google.maps.places.AutocompleteService().getPlacePredictions({input:e,locationBias:{east:180,west:-180,north:90,south:-90},componentRestrictions:{country:"pl"},types:["locality","postal_code","route","street_number"]},(e,t)=>{"OK"===t?x(e):(console.error("AutocompleteService error:",t),x(null))})}),[]);return(0,d.useEffect)(()=>(S&&document.addEventListener("mousedown",T,!0),()=>{S&&document.removeEventListener("mousedown",T,!0)})),(0,d.useEffect)(()=>{s&&o(!0)},[p]),(0,d.useEffect)(()=>{(null==_?void 0:_.current)&&i&&g&&(_.current.focus(),L(s))},[i]),(0,n.jsx)(ew.A,{className:f()(l.container,{[l.container__insideModal]:!S&&i},{[l.container__isOutsideMap]:!S&&"list"===p}),"data-cy":o2,children:(0,n.jsxs)("div",{className:l.searchSidebar,ref:A,children:[S&&!!u&&(0,n.jsx)(to,{}),!u&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{onSubmit:e=>{e.preventDefault(),s&&(a(s),o(!0),y(!1))},className:l.inputContainer,children:[(0,n.jsx)("input",{type:"text",placeholder:"Wpisz miejscowość, ulicę","aria-label":"Wpisz miejscowość, ulicę",value:s,onChange:e=>{var t,a;c(null==e||null==(t=e.target)?void 0:t.value),y(!0),k(-1),r&&o(!1),L(null==e||null==(a=e.target)?void 0:a.value)},className:l.input,onFocus:()=>{(S||C)&&y(!0)},onBlur:()=>N(!1),onMouseDown:()=>N(!0),ref:_,"data-cy":"".concat(o2,"--searchInput"),onKeyDown:e=>{"ArrowDown"===e.key&&j<(null==m?void 0:m.length)-1&&(e.preventDefault(),k(e=>e+1)),"ArrowUp"===e.key&&j>0&&(e.preventDefault(),k(e=>e-1)),"Enter"===e.key&&j>=0&&(e.preventDefault(),(null==m?void 0:m[j])&&z(m[j]))}}),(0,n.jsxs)("div",{className:l.buttons,children:[r&&(null==s?void 0:s.length)?(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),c(""),o(!1),v&&b()},className:f()(l.inputButton,l.inputButton__isClose),"data-cy":"".concat(o2,"--clearSearchBtn"),"aria-label":"Usuń wpisaną miejscowość lub ulicę",children:(0,n.jsx)(a
1M.A,{})}):(0,n.jsx)("button",{type:"submit",className:f()(l.inputButton,l.inputButton__isSearch),"data-cy":"".concat(o2,"--searchBtn"),"aria-label":"Rozpocznij wyszukiwanie miejscowości lub ulicy",children:(0,n.jsx)(aH.A,{})}),(0,n.jsx)("span",{className:l.line}),(0,n.jsx)("button",{type:"button",className:f()(l.inputButton,l.inputButton__isGeo),onClick:t,"data-cy":"".concat(o2,"--locateBtn"),"aria-label":"Ustaw bieżącą lokalizację na mapie",children:(0,n.jsx)(eb.A,{})})]})]}),S&&(0,n.jsx)(o1,{showList:(!!(null==s?void 0:s.length)||g)&&!(null==m?void 0:m.length)}),!!(null==s?void 0:s.length)&&g&&!!(null==m?void 0:m.length)&&(0,n.jsx)(oY,{handleItemClick:z,activeAutocompleteIndex:j})]})]})})},o8=c.Df.withName("PKOBPPoiInterface").create(()=>({container:{color:h.Ay.palette.primary.main,[h.Ay.breakpoints.down("md")]:{marginBottom:"14px"}},container__isOutsideMap:{[h.Ay.breakpoints.down("md")]:{marginBottom:"12px"}},mobileModal:{"& .MuiPaper-root":{width:"100%"},"& .MuiDialogContent-root":{padding:"0",marginRight:"0px"}}})),o3=e=>{let{handleLocate:t,handleSearch:a}=e,{classes:i}=o8(),{showXBtn:l,searchInput:r,isSearchInputActive:o,setIsSearchInputActive:s,mobileView:d}=eS(),c=(0,w.A)(h.Ay.breakpoints.down("md"));return(0,n.jsxs)(ew.A,{className:f()(i.container,{[i.container__isOutsideMap]:c&&"list"===d}),"data-cy":"PoiInterface",children:[c&&(!c||o)?null:(0,n.jsx)(o4,{handleLocate:t,handleSearch:a}),(0,n.jsx)(oU,{handleSearch:a,isAddressSearchActive:l&&!!(null==r?void 0:r.length)}),c&&o&&(0,n.jsx)(ea.Ay,{fullScreen:!0,isOpen:c&&o,handleClose:()=>s(!1),title:"Wyszukiwanie",modalStyle:ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE,className:i.mobileModal,children:(0,n.jsx)(o4,{handleLocate:t,handleSearch:a,insideModal:!0})})]})},o5={src:"/_next/static/media/pko_icon_poi_agency_focused.8725e230.svg"},o9={src:"/_next/static/media/pko_icon_poi_atm.13fa2a3a.svg"},o7={src:"/_next/static/media/pko_icon_poi_atm_focused.2aae7dce.svg"};var se=a(39686),st=a(91908),sa=a(77380),sn=a(99614);let si={src:"/_next/static/media/pko_icon_poi_stocks.38a0c237.svg"},sl={src:"/_next/static/media/pko_icon_poi_stocks_focused.ee6aa06a.svg"},sr=e=>{let{currentZoom:t,maxZoom:a}=e,i=(0,w.A)(h.Ay.breakpoints.down("md")),{poiList:l,activePoi:r,setActivePoi:o,focusedPoi:s}=eS(),c=(0,d.useRef)(null);(0,d.useEffect)(()=>{if(!c.current)return;let e=c.current;(null==e?void 0:e.getClusters()).forEach(e=>{let t=(null==e?void 0:e.getMarkers()).some(e=>{var t,a;return"".concat(null==e||null==(t=e.getPosition())?void 0:t.lat()).concat(null==e||null==(a=e.getPosition())?void 0:a.lng())===s});e.clusterIcon.setCenter(null==e?void 0:e.getCenter()),e.clusterIcon.url=t?null===sn.A||void 0===sn.A?void 0:sn.A.src:null===sa.A||void 0===sa.A?void 0:sa.A.src,e.clusterIcon.show()})},[s]);let p=e=>l.map((t,a)=>((null==r?void 0:r.lat)!==t.lat||(null==r?void 0:r.lng)!==t.lng||(null==r?void 0:r.distance)!==t.distance)&&(0,n.jsx)(ex.pH,{icon:((e,t)=>{switch(e){case"agency":return{url:t===s?null==o5?void 0:o5.src:null==ey?void 0:ey.src};case"atm_pko":return{url:t===s?null==o7?void 0:o7.src:null==o9?void 0:o9.src};case"broker":return{url:t===s?null==sl?void 0:sl.src:null==si?void 0:si.src};default:return{url:t===s?null===st.A||void 0===st.A?void 0:st.A.src:null===se.A||void 0===se.A?void 0:se.A.src}}})(t.label,"".concat((null==t?void 0:t.lat)||"").concat((null==t?void 0:t.lng)||"")),position:{lat:t.lat,lng:t.lng},clusterer:e||null,onClick:()=>{o(t)},zIndex:a},"".concat(t.fancy_name,"_").concat(t.address,"_").concat(t.lat,"_").concat(t.lng,"_").concat(a)));return(null==l?void 0:l.length)?t<a?(0,n.jsx)(ex.w1,{averageCenter:!0,gridSize:i?40:60,options:{styles:[{url:null===sa.A||void 0===sa.A?void 0:sa.A.src,width:50,height:56,textSize:1e-6}]},onLoad:e=>{c.current=e},children:e=>p(e)}):p():null};var so=a(32253),ss=a(25501);let sd=e=>Object.fromEntries(Object.entries(e).filter(e=>
1{let[t,a]=e;return void 0!==a})),sc=["maps","places"],sp={lat:52.0705,lng:16.9252},su={lat:53.5468,lng:19.7064},sm="PoiMap",sh=c.Df.withName("PKOBPPoiMap").create(()=>({wrapper:{"& .gm-style iframe + div":{border:"none !important"}},loaderWrapper:{position:"absolute",top:0,bottom:0,right:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,[h.Ay.breakpoints.down("md")]:{top:153,bottom:"unset"}},loaderWrapper__isZoom:{zIndex:"0",backgroundColor:"#777777"},mobileListContainer:{paddingTop:"17px",position:"relative","&::before":{content:'""',width:"100%",height:"1px",display:"block",background:h.Ay.palette.secondary.borders,position:"absolute",top:0,left:0,[h.Ay.breakpoints.down("sm")]:{width:"100vw",left:"-16px"}}},mobileMenuContainer:{minHeight:"56px"},mobileMenu:{width:"100vw",marginLeft:"calc((-100vw + 100%)/2)",display:"flex",alignItems:"center",justifyContent:"center",[".".concat(so.ZM," &")]:{position:"fixed",bottom:0,left:0,width:"100%",marginLeft:0,zIndex:h.Ay.zIndex.mobilePOINavigation}},switchBtn:{width:"50%",minHeight:"56px",background:h.Ay.palette.primary.main,border:"none",color:h.Ay.palette.primary.contrastText,boxShadow:"0px 0px 12px #00006629",fontSize:"16px",lineHeight:1,fontFamily:h.Ay.typography.fontFamily,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"32px",height:"32px",fill:h.Ay.palette.primary.contrastText,marginRight:"8px"}},switchBtn__isWhite:{color:h.Ay.palette.text.primary,background:h.Ay.palette.primary.contrastText,"& svg":{fill:h.Ay.palette.primary.main}},localizationBtn:{position:"absolute",bottom:72,right:12,borderRadius:"50%",border:"none",background:"#fff",width:40,height:40,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",padding:0,overflow:"hidden","& svg":{width:"32px",height:"32px"}},mobileModal:{"& .MuiPaper-root":{width:"100%"},"& .MuiDialogContent-root":{paddingBottom:"100px"}}})),sx=()=>{var e,t,a;let{classes:i}=sh(),l=(0,en.A)(),r=(0,q.useRouter)(),o=(null==(t=ev()())||null==(e=t.publicRuntimeConfig)?void 0:e.GOOGLE_API_KEY)||"",s=(0,w.A)(h.Ay.breakpoints.between("sm","md")),c=(0,w.A)(h.Ay.breakpoints.down("sm")),p=(0,w.A)(h.Ay.breakpoints.down("md")),{filters:u,setPoiTypes:m,setSegmentList:x,setShowXBtn:g,searchInput:y,setSearchInput:b,mobileView:v,setMobileView:A,centerCoordinates:_,setCenterCoordinates:j,setPoiList:k,activePoi:C,setActivePoi:N,setAutocompleteList:S,updateAllFilters:T,setIsSearchInputActive:z,handleFilterChange:L,poiTypeParam:P,isBmMap:I}=eS(),{isLoading:E,isLoaded:O,bmParameters:F}=(()=>{let{setBmLabels:e,bmLabels:t,isBmMap:a}=eS(),[n,i]=(0,d.useState)(a&&0===t.length),[l,r]=(0,d.useState)(!a||t.length>0);return(0,d.useEffect)(()=>{a&&0===t.length&&n?(async()=>{try{let t=(0,en.A)(),a=await t.apiModulesPoiBmLabelList({format:"json"});(null==a?void 0:a.data)&&(e(a.data),r(!0))}catch(e){console.error("Error fetching BM labels:",e)}finally{i(!1)}})():t.length>0&&n&&(i(!1),r(!0))},[a,t.length,n]),{isLoading:n,isLoaded:l,bmParameters:(0,d.useMemo)(()=>{if(!a||!t.length)return{};let e=Array.from(new Set(t.map(e=>e.type))).join(","),n=t.filter(e=>{var t;return null==(t=e.services)?void 0:t.length}).flatMap(e=>e.services).filter(Boolean);return{type:e,services:n.length?n.join(","):void 0}},[a,t])}})(),D=(0,d.useRef)(null),[R,M]=(0,d.useState)(!0),[H,W]=(0,d.useState)(!1),[U,G]=(0,d.useState)(null),[K,V]=(0,d.useState)(!1),Y=(0,d.useCallback)(e=>G(e),[]),Z=p?10:11,X=(null==u||null==(a=u.type)?void 0:a.key)==="private_banking",$=_,J=12;X&&(J=p?5:6,$=p?su:sp);let{isLoaded:Q}=(0,ex.KD)({id:"google-map-script",googleMapsApiKey:o,libraries:sc,language:"pl",region:"PL"}),ee=async function(){var e,t,a,n,i,o,s;let d=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!U||I&&(!F.type||E))return;let c=U.getBounds();if(!c)return;M(!0);let m={"top-left":"".concat(null==c?void 0:c.getNorthEast().lat(),",").concat(null==c?void 0:c.getSouthWest
1().lng()),"bottom-right":"".concat(null==c?void 0:c.getSouthWest().lat(),",").concat(null==c?void 0:c.getNorthEast().lng()),type:P||(null==u||null==(e=u.type)?void 0:e.key)||(!I||(null==u||null==(t=u.type)?void 0:t.key)?void 0:F.type),atm_type:(null==u||null==(a=u.atm_type)?void 0:a.key)||void 0,clients:(null==u||null==(n=u.segments)?void 0:n.length)?String(null==u?void 0:u.segments):void 0,services:((e,t)=>{if(e||t)return e&&t?"".concat(e,",").concat(t):e||t})((null==u?void 0:u.services)||(!I||(null==u||null==(i=u.type)?void 0:i.key)?void 0:F.services),(null==u||null==(o=u.servicesInsideSegments)?void 0:o.length)?String(null==u?void 0:u.servicesInsideSegments):void 0),currencies:(null==u?void 0:u.currencies)||void 0,conveniences:(null==u?void 0:u.conveniences)||void 0,"open-now":(null==u?void 0:u.openNow)?"1":void 0,"open-all-time":(null==u?void 0:u.openAllTime)?"1":void 0,"open-from-to":(null==u?void 0:u.openFromTo)||void 0},h=I?l.apiModulesPoiMapBmList:l.apiModulesPoiMapList;try{let e=await h(sd(m)),t=(s=null==e?void 0:e.data,(null==s?void 0:s.length)?s.map(e=>({...e,distance:ts(e,_)})).sort((e,t)=>e.distance-t.distance):s);(null==t?void 0:t.length)?(k(t),V(!1)):!(null==t?void 0:t.length)&&U.getZoom()>Z&&(null==C?void 0:C.label)!==ez&&d?(U.setZoom(U.getZoom()-1),k([])):(k([]),V(!1)),r.replace({pathname:r.pathname,query:sd({...r.query,...m,"search-input":y||void 0})},void 0,{scroll:!1,shallow:!0})}catch(e){console.error(e),k([])}finally{M(!1),p||S(null)}},et=()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(e=>{let{latitude:t,longitude:a}=e.coords,n=new window.google.maps.Geocoder,i=new window.google.maps.LatLng(t,a);n.geocode({location:i},(e,n)=>{"OK"===n&&e[0]?(b((0,ss.M)(e[0].formatted_address)),V(!0),g(!0),z(!1),j({lat:t,lng:a})):console.error("Geocoder failed due to: "+n)})},e=>{console.error("Error getting current location:",e)}):console.error("Geolocation is not supported by this browser.")},ei=(e,t)=>{var a,n;(null==(n=window)||null==(a=n.google)?void 0:a.maps)&&e&&(V(!0),new window.google.maps.Geocoder().geocode({address:t?void 0:"".concat(e,", Polska"),language:"pl",placeId:t},(e,t)=>{if("OK"===t){var a,n,i;if((null==e||null==(n=e[0])||null==(a=n.types)?void 0:a[0])!=="country"){let{lat:t,lng:a}=e[0].geometry.location;j({lat:t(),lng:a()}),(null==(i=e[0])?void 0:i.formatted_address)&&(b((0,ss.M)(e[0].formatted_address)),g(!0))}else k([])}else console.error("Geocode was not successful for the following reason: "+t),k([])}))};(0,d.useEffect)(()=>((async()=>{try{let[e,t]=await Promise.all([l.apiModulesPoiMapLabelsList({format:"json"}),l.apiModulesPoiClientsLabelList({format:"json"})]),a=null==e?void 0:e.data,n=null==t?void 0:t.data,i=[];a&&(i=Object.entries(a).map(e=>{let[t,a]=e;return{key:t,label:a}}),m(i)),n&&x(n),((e,t)=>{var a,n,i,l,o,s,d;if((null==r||null==(a=r.query)?void 0:a["top-left"])||(null==r||null==(n=r.query)?void 0:n["bottom-right"])){if((null==r||null==(i=r.query)?void 0:i.type)===ez){L("type",{key:ez,label:eL.mapped_label}),N({...eL,distance:ts(eL,_)}),j({lat:eL.lat,lng:eL.lng}),b("".concat(eL.address,", ").concat(eL.zipcode," ").concat(eL.city));return}T(((e,t,a)=>{var n,i,l;let r={...a.query},o=e.find(e=>e.key===a.query.type),s=e.find(e=>e.key===a.query.atm_type),d=t.find(e=>"client"===e.type),c=(null==d||null==(n=d.values)?void 0:n.map(e=>Object.keys(e)[0])).filter(e=>{var t;return null==r||null==(t=r.clients)?void 0:t.includes(e)}),p=t.find(e=>"service"===e.type),u=(null==p||null==(i=p.values)?void 0:i.map(e=>Object.keys(e)[0])).filter(e=>{var t;return null==r||null==(t=r.services)?void 0:t.includes(e)}),m=null==r||null==(l=r.services)?void 0:l.split(","),h=null==m?void 0:m.filter(e=>!u.includes(e)),x=null==h?void 0:h.join(",");return{type:o,atm_type:s,openNow:(null==r?void 0:r["open-now"])||null,openAllTime:(null==r?void 0:r["open-all-time"])||null,openFromTo:(null==r?void 0:r["open-from-to"])||null,segments:(null==c?void 0:c.length)?c:null,servicesInsideSegments:(null==u?void 0:u.length)?u:null,services:x||null,currencies:(null==r?void 0:r.currencies)||null,conveniences:(null==r?void 0:r.conveniences)||null}})(e,t||[],r)),j(((e,t)=>{let a=null==e?void 0:e.split(","),n=null==t?void 0:t.split(",");return{lat:(parseFloat(null==a?void 0:a[0])+parseFloat(null==n?void 0:n[0]))/2,lng:(parseFloat(null==a?void 0:a[1])+parseFloat(null==n?void 0:n[1]))/2}})(null==(l=r.query)?void 0:l["top-left"],null==(o=r.query)?void 0:o["bottom-right"])),(null==r||null==(s=r.query)?void 0:s["search-input"])&&(b(null==r||null==(d=r.query)?void 0:d["search-input"]),g(!0))}})(i,n||[])}catch(e){console.error(e),m([]),x([])}})(),()=>{m([]),x([])}),[]),(0,d.useEffect)(()=>{X?ee(!1):(V(!0),ee(!0))},[JSON.stringify(u),P,I?O:void 0]),(0,d.useEffect)(()=>{U&&(null==C?void 0:C.lat)&&(null==C?void 0:C.lat)&&U.setCenter({lat:C.lat,lng:C.lng})},[JSON.stringify(C)]),(0,d.useEffect)(()=>(p&&document.body.classList.add(so.ZM),()=>{document.body.classList.remove(so.ZM)}),[p]);let el=R||I&&E;return(0,d.useEffect)(()=>{U&&Q&&!el&&setTimeout(()=>{U.getDiv().querySelectorAll('a, button, [tabindex="0"], [role="button"]').forEach(e
1=>{e.closest('[data-cy="PoiInterface"], [data-cy="PoiMap--localizationBtn"], .gm-control-active')||(e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1"))})},500)},[U,Q,el]),(0,d.useEffect)(()=>{U&&setTimeout(()=>{let e=U.getDiv();if(!e)return;let t=()=>{e.querySelectorAll('div[tabindex="0"]').forEach(e=>{e.setAttribute("tabindex","-1")})};t();let a=new MutationObserver(t);return a.observe(e,{subtree:!0,attributes:!0,attributeFilter:["tabindex"]}),()=>a.disconnect()},1e3)},[U]),Q?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(B.A,{className:i.wrapper,ref:D,"data-cy":sm,role:"application","aria-label":"Mapa plac\xf3wek i bankomat\xf3w",children:[(0,n.jsxs)(ex.u6,{mapContainerStyle:{width:p?"100vw":"100%",height:c?"480px":"700px",marginLeft:s?"calc((-100vw + 100%)/2)":p?"-16px":"0",position:p&&"list"===v?"absolute":"relative",left:p&&"list"===v?"-2000px":"unset"},center:$,zoom:J,onTilesLoaded:()=>{H&&W(!1)},onZoomChanged:()=>{(X||(null==U?void 0:U.getZoom())===12)&&W(!0)},options:{mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,minZoom:X?5:Z,maxZoom:19,clickableIcons:!1},onLoad:Y,onBoundsChanged:(0,az.s)(1e3,()=>ee(K)),children:[el&&(0,n.jsx)("div",{className:i.loaderWrapper,children:(0,n.jsx)(eo.Ay,{size:eo.iW.LG,isLoading:el})}),H&&(0,n.jsx)("div",{className:f()(i.loaderWrapper,i.loaderWrapper__isZoom),children:(0,n.jsx)(eo.Ay,{size:eo.iW.LG,isLoading:H,withOverlay:!0})}),(!p||p&&"map"===v)&&(0,n.jsx)(o3,{handleLocate:et,handleSearch:ei}),(0,n.jsx)("button",{type:"button",className:i.localizationBtn,onClick:et,"data-cy":"".concat(sm,"--localizationBtn"),"aria-label":"Ustaw bieżącą lokalizację na mapie",children:(0,n.jsx)(eb.A,{fill:"#666666"})}),!el&&(0,n.jsxs)(n.Fragment,{children:[(null==C?void 0:C.lat)!==_.lat&&(null==C?void 0:C.lng)!==_.lng&&(0,n.jsx)(ex.pH,{position:_,zIndex:-1}),(0,n.jsx)(sr,{currentZoom:null==U?void 0:U.getZoom(),maxZoom:19,map:U}),!!C&&(0,n.jsx)(ex.pH,{position:{lat:C.lat,lng:C.lng},icon:{url:null==eg?void 0:eg.src},zIndex:-1})]})]}),p&&"list"===v&&(0,n.jsxs)(B.A,{className:i.mobileListContainer,children:[el&&(0,n.jsx)("div",{className:i.loaderWrapper,children:(0,n.jsx)(eo.Ay,{size:eo.iW.LG,isLoading:el})}),(0,n.jsx)(o3,{handleSearch:ei,handleLocate:et}),(0,n.jsx)(o1,{showList:!0})]}),p&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B.A,{className:i.mobileMenuContainer,children:(0,n.jsxs)("div",{className:i.mobileMenu,children:[(0,n.jsxs)("button",{className:f()(i.switchBtn,{[i.switchBtn__isWhite]:"list"===v}),onClick:()=>A("map"),"data-cy":"".concat(sm,"--switchBtnMobile"),"aria-label":"Przejdź do widoku mapy",children:[(0,n.jsx)(eB.A,{}),(0,n.jsx)("span",{children:"Mapa"})]}),(0,n.jsxs)("button",{className:f()(i.switchBtn,{[i.switchBtn__isWhite]:"list"!==v}),onClick:()=>A("list"),"data-cy":"".concat(sm,"--switchBtnList"),"aria-label":"Przejdź do widoku listy",children:[(0,n.jsx)(oo.A,{}),(0,n.jsx)("span",{children:"Lista"})]})]})}),(0,n.jsx)(os.kH,{styles:{body:{paddingBottom:"40px"}}})]}),C&&(0,n.jsx)(ea.Ay,{fullScreen:!0,isOpen:!!(p&&C),handleClose:()=>N(null),title:(null==C?void 0:C.fancy_name)||"",modalStyle:ea.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE,className:i.mobileModal,children:(0,n.jsx)(to,{})})]})}):null},sg=z()(()=>Promise.resolve().then(a.bind(a,3750)),{loadableGenerated:{webpack:()=>[3750]}}),sy=z()(()=>a.e(2602).then(a.bind(a,32602)),{loadableGenerated:{webpack:()=>[32602]}}),sb=z()(()=>a.e(809).then(a.bind(a,30809)),{loadableGenerated:{webpack:()=>[30809]},ssr:!1}),sf=z()(()=>a.e(8904).then(a.bind(a,68904)),{loadableGenerated:{webpack:()=>[68904]},ssr:!1});var sv=a(46525);let sw=z()(()=>a.e(2664).then(a.bind(a,42664)),{loadableGenerated:{webpack:()=>[42664]},ssr:!1});var sA=a(60263),s_=a(83531);let sj=z()(()=>a.e(7827).then(a.bind(a,57827)),{loadableGenerated:{webpack:()=>[57827]}}),sk=z()(()=>a.e(4596).then(a.bind(a,44596)),{loadableGenerated:{webpack:()=>[44596]}}),sC=e=>{let{className:t="",color:a,width:i=40,height:l=40}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:i,height:l,viewBox:"-85.162 7.05 12.728 9.9",className:t,children:(0,n.jsx)("path",{d:"M-72.434,7.05a2,2,0,0,0-2.828,0L-78.8,10.586-82.333,7.05a2,2,0,0,0-2.829,0l4.95,4.95-4.95,4.95a2,2,0,0,0,2.829,0l3.535-3.536,3.536,3.536a2,2,0,0,0,2.828,0L-77.384,12Z",fill:a||"inherit"})})},sN=c.Df.withName("PKOBPSponsorshipFormResult").create(()=>({responseContainer:{display:"flex",flexDirection:"column",width:"100%",height:"100%",[h.Ay.breakpoints.up("sm")]:{minWidth:"600px"}},messageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:"100%",height:"100%",marginBottom:"15px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"8px"}},checkIcon:{width:"96px",height:"96px",fill:h.Ay.palette.success.main,marginBottom:"16
1px"},closeIcon:{width:"62px",height:"62px",fill:h.Ay.palette.error.main,marginBottom:"33px"},responseHeader:{margin:"0 0 21px 0",textAlign:"center",fontSize:"40px",lineHeight:"48px",[h.Ay.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"32px",fontWeight:400,marginBottom:"12px"}},responseMessage:{margin:"0",textAlign:"center",fontSize:"16px",lineHeight:"24px",fontWeight:300},responseBtn:{width:"auto",alignSelf:"center",[h.Ay.breakpoints.down("sm")]:{width:"100%"}}})),sS=e=>{let{isSuccess:t,applicationId:a}=e,{classes:i}=sN(),l=(0,w.A)(h.Ay.breakpoints.down("sm")),r={type:t?"success":"error",header:t?"Wniosek wysłany":"Wystąpił błąd",message:t?"Wniosek został zarejestrowany w systemie pod numerem ".concat(a||""):"Spr\xf3buj ponownie p\xf3źniej.".concat(l?"<br>":" ","Przepraszamy za utrudnienia!")};return(0,n.jsx)(ew.A,{className:i.responseContainer,"data-cy":"SponsorshipFormResult",children:(0,n.jsxs)(ew.A,{className:i.messageWrapper,children:[(null==r?void 0:r.type)==="success"?(0,n.jsx)(K.A,{className:i.checkIcon}):(0,n.jsx)(sC,{className:i.closeIcon}),(null==r?void 0:r.header)&&(0,n.jsx)(_.A,{className:i.responseHeader,variant:"body1",dangerouslySetInnerHTML:{__html:null==r?void 0:r.header}}),(null==r?void 0:r.message)&&(0,n.jsx)(_.A,{className:i.responseMessage,variant:"body1",dangerouslySetInnerHTML:{__html:null==r?void 0:r.message}})]})})},sT=e=>{let t=Object.keys(e)[0];if(t){var a;let e=document.querySelector('[name="'.concat(t,'"]'));null==e||e.scrollIntoView({behavior:"smooth",block:"center"}),null==e||null==(a=e.focus)||a.call(e)}},sz={applicant:{name:"",partyName:"",nip:"",street:"",postalCode:"",place:"",email:"",partnerFlag:!0},contactPerson:{name:"",phone:"",email:""},project:{name:"",description:"",place:"",type:"",dateFrom:null,dateTo:null,reach:"",significance:"",participantsNumber:"",estimatedCost:"",expectedValue:"",honoraryTitle:"",exclusivenessFlag:!1,exclusivenessReason:null,otherSponsor:""},summary:{benefitDescription:"",dataProcessingAgreementFlag:!1}};var sL=a(95399);let sP=/^\d{10}$/,sI=(0,sL.A)(new Date),sE=[X.Ik({applicant:X.Ik({name:X.Yj().required("To pole jest wymagane").max(300,"Upewnij się, że liczba znak\xf3w nie przekracza 300"),partyName:X.Yj().required("To pole jest wymagane").max(300,"Upewnij się, że liczba znak\xf3w nie przekracza 300"),nip:X.Yj().required("To pole jest wymagane").test("is-valid-nip","Nieprawidłowy numer NIP",e=>!!e&&(e=>{let t=e.replace(/[\s-]/g,"");if(!sP.test(t))return!1;let a=t.split("").map(Number);return[6,5,7,2,3,4,5,6,7].reduce((e,t,n)=>e+t*a[n],0)%11===a[9]})(e)),street:X.Yj().required("To pole jest wymagane").max(250,"Upewnij się, że liczba znak\xf3w nie przekracza 100"),postalCode:X.Yj().required("To pole jest wymagane").matches(/^\d{2}-\d{3}$/,{message:"Kod pocztowy musi być w postaci XX-XXX (cyfry)",excludeEmptyString:!0}),place:X.Yj().required("To pole jest wymagane").max(300,"Upewnij się, że liczba znak\xf3w nie przekracza 300"),email:X.Yj().email("Podaj poprawny adres e-mail.").required("To pole jest wymagane"),partnerFlag:X.zM().required("To pole jest wymagane").typeError("To pole jest wymagane")}),contactPerson:X.Ik({name:X.Yj().required("To pole jest wymagane").max(100,"Upewnij się, że liczba znak\xf3w nie przekracza 100"),phone:X.Yj().required("To pole jest wymagane").test("phone-length","Numer telefonu musi mieć 9 cyfr",e=>!e||/^\d{9}$/.test(e)),email:X.Yj().required("To pole jest wymagane").email("Podaj poprawny adres e-mail.").required("To pole jest wymagane")})}),X.Ik({project:X.Ik({name:X.Yj().required("To pole jest wymagane").max(300,"Upewnij się, że liczba znak\xf3w nie przekracza 300"),description:X.Yj().required("To pole jest wymagane").max(3e3,"Upewnij się, że liczba znak\xf3w nie przekracza 3000"),place:X.Yj().required("To pole jest wymagane").max(300,"Upewnij się, że liczba znak\xf3w nie przekracza 300"),type:X.Yj().required("To pole jest wymagane").max(100,"Upewnij się, że liczba znak\xf3w nie przekracza 100"),dateFrom:X.p6().typeError("Niepoprawna data").required("To pole jest wymagane").nullable().test("is-valid","Niepoprawna data",e=>null===e||e instanceof Date&&!isNaN(e.getTime())).test("min-year","Niepoprawna data",e=>!e||e>=sI).test("from-not-after-to","Data od nie może być większa niż data do",function(e){let{dateTo:t}=this.parent;return!e||!t||e<=t}),dateTo:X.p6().typeError("Niepoprawna data").required("To pole jest wymagane").nullable().test("is-valid","Niepoprawna data",e=>null===e||e instanceof Date&&!isNaN(e.getTime())).test("min-year","Niepoprawna data",e=>!e||e>=sI).test("to-not-before-from","Data do nie może być mniejsza niż data od",function(e){let{dateFrom:t}=this.parent;return!e||!t||e>=t}),reach:X.Yj().required("To pole jest wymagane").max(500,"Upewnij 
1się, że liczba znak\xf3w nie przekracza 500"),significance:X.Yj().required("To pole jest wymagane").max(3e3,"Upewnij się, że liczba znak\xf3w nie przekracza 3000"),participantsNumber:X.Yj().required("To pole jest wymagane").matches(/^\d+$/,"Pole może zawierać wyłącznie cyfry").max(100,"Upewnij się, że liczba znak\xf3w nie przekracza 100"),estimatedCost:X.Yj().required("To pole jest wymagane").matches(/^\d+$/,"Pole może zawierać wyłącznie cyfry").max(100,"Upewnij się, że liczba znak\xf3w nie przekracza 100"),expectedValue:X.Yj().required("To pole jest wymagane").matches(/^\d+$/,"Pole może zawierać wyłącznie cyfry").max(100,"Upewnij się, że liczba znak\xf3w nie przekracza 100"),honoraryTitle:X.Yj().required("To pole jest wymagane").max(300,"Upewnij się, że liczba znak\xf3w nie przekracza 300"),exclusivenessFlag:X.zM().required("To pole jest wymagane").typeError("To pole jest wymagane"),exclusivenessReason:X.Yj().max(1e3,"Upewnij się, że liczba znak\xf3w nie przekracza 1000").when("exclusivenessFlag",{is:!1,then:e=>e.required("To pole jest wymagane").nullable(),otherwise:e=>e.notRequired().nullable()}),otherSponsor:X.Yj().required("To pole jest wymagane").max(500,"Upewnij się, że liczba znak\xf3w nie przekracza 500")})}),X.Ik({summary:X.Ik({benefitDescription:X.Yj().required("To pole jest wymagane").max(3e3,"Upewnij się, że liczba znak\xf3w nie przekracza 3000"),dataProcessingAgreementFlag:X.zM().oneOf([!0],"Pole jest wymagane").typeError("Pole jest wymagane")})})],sO=(0,d.createContext)(void 0),sB=()=>{let e=(0,d.useContext)(sO);if(!e)throw Error("useBackendErrors must be used within a BackendErrorsProvider");return e},sF="SponsorshipFormHeading",sD=c.Df.withName("PKOBPSponsorshipFormHeading").create(()=>({container:{marginBottom:"40px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"16px"}},title:{fontSize:"40px",lineHeight:"48px",marginBottom:"20px",[h.Ay.breakpoints.down("sm")]:{fontSize:"24px",lineHeight:"32px",marginBottom:"12px"},"&:focus":{outline:"none"}},description:{fontSize:"16px",lineHeight:"24px",fontWeight:300,[h.Ay.breakpoints.down("sm")]:{margin:0}}})),sR=e=>{let{title:t,description:a}=e,{classes:i}=sD();return(0,n.jsxs)(ew.A,{className:i.container,"data-cy":sF,children:[(0,n.jsx)(_.A,{variant:"h1",className:i.title,cy:sF,tabIndex:-1,children:t}),(0,n.jsx)(_.A,{variant:"body2",className:i.description,cy:sF,children:a})]})},sM={formContainer:{maxWidth:"600px"},formTitle:{fontSize:"16px",lineHeight:"24px",fontWeight:700,marginBottom:"12px",marginTop:"31px",[h.Ay.breakpoints.down("sm")]:{marginTop:"16px"}}},sH={fieldWrapper:{marginBottom:"24px"},labelWrapper:{display:"flex",alignItems:"center",justifyContent:"flex-start",marginBottom:"4px","&& .pkobp-icon-tooltip":{display:"flex",alignItems:"center",justifyContent:"center"},"& label, & legend":{color:h.Ay.palette.text.primary,display:"inline-block",fontSize:"14px",lineHeight:"20px"},["& .".concat(ij.TooltipClass)]:{width:"20px",height:"20px",alignItems:"center",justifyContent:"center",marginLeft:"3px",position:"relative",top:"-1px"}}},sW="SponsorshipFormSwitchButton",sU=c.Df.withName("PKOBPSponsorshipFormSwitchButton").create(()=>({...sH,switch:{backgroundColor:h.Ay.palette.secondary.backgroundGrey,borderRadius:"8px",padding:"6px",width:"100%"},switchGroup:{gap:"4px",justifyContent:"space-between",[h.Ay.breakpoints.down("md")]:{gap:"0px"}},switchInput:{width:"0px",height:"0px",opacity:"0",padding:"0",margin:"0","&:focus-visible":{outline:"solid 2px ".concat(h.Ay.palette.primary.main)}},switchItem:{fontFamily:h.Ay.typography.fontFamily,border:"1px solid transparent",background:"transparent",fontSize:"16px",lineHeight:1,cursor:"pointer",borderRadius:"8px",width:"calc(50% - 2px)",display:"flex",alignItems:"center",justifyContent:"center",padding:"11px 10px 11px 10px","&.MuiFormControlLabel-root":{margin:"0"},"& .MuiFormControlLabel-label":{lineHeight:"1",margin:"0",color:h.Ay.palette.text.primary},[h.Ay.breakpoints.down("md")]:{padding:"11px 8px 11px 8px",fontSize:"18px"},"&:focus-within":{outline:"solid 2px ".concat(h.Ay.palette.primary.main),outlineOffset:"2px"}},switchItem__isFocused:{outline:"solid 2px ".concat(h.Ay.palette.primary.main)},switchItem__isActive:{backgroundColor:"#fff",color:h.Ay.palette.primary.main,boxShadow:"0px 12px 20px #0000661A",border:"solid 1px ".concat(h.Ay.palette.secondary.borders),"&& .MuiFormControl
1Label-label":{color:h.Ay.palette.primary.main}}})),sG=e=>{let{fieldName:t,label:a,ariaLabel:i,tooltipText:l}=e,{classes:r}=sU(),{backendErrors:o,clearFieldError:s}=sB(),d=(0,Z.j7)();return(0,n.jsxs)(ew.A,{className:r.fieldWrapper,"data-cy":sW,children:[(0,n.jsxs)(ew.A,{className:r.labelWrapper,children:[(0,n.jsx)("label",{htmlFor:"".concat(sW,"_").concat(t),children:a}),l&&(0,n.jsx)(ij.default,{symbol:"?",text:l,$_ID:"".concat(sW,"-tooltip--").concat(t)})]}),(0,n.jsx)(id.A,{component:"fieldset",className:r.switch,children:(0,n.jsxs)(ow.A,{value:String((0,Z.O6)(d.values,t)),onChange:e=>{s(t),d.setFieldValue(t,"true"===e.target.value)},row:!0,className:r.switchGroup,"aria-label":i,role:"radiogroup",id:"".concat(sW,"_").concat(t),children:[(0,n.jsx)(rx.A,{value:"true",control:(0,n.jsx)(ov.A,{className:r.switchInput,disableRipple:!0,"aria-label":"Tak"}),label:(0,n.jsx)("span",{"aria-hidden":"true",children:"Tak"}),className:f()(r.switchItem,{[r.switchItem__isActive]:!0===(0,Z.O6)(d.values,t)}),"data-cy":"".concat(sW,"--radio0-").concat(t)}),(0,n.jsx)(rx.A,{value:"false",control:(0,n.jsx)(ov.A,{className:r.switchInput,disableRipple:!0,"aria-label":"Nie"}),label:(0,n.jsx)("span",{"aria-hidden":"true",children:"Nie"}),className:f()(r.switchItem,{[r.switchItem__isActive]:!1===(0,Z.O6)(d.values,t)}),"data-cy":"".concat(sW,"--radio1-").concat(t)})]})}),((0,Z.O6)(d.touched,t)&&(0,Z.O6)(d.errors,t)||(0,Z.O6)(o,t))&&(0,n.jsx)(ee.A,{error:!0,children:(0,Z.O6)(d.errors,t)||(0,Z.O6)(o,t)})]})},sK="SponsorshipFormTextField",sV=c.Df.withName("PKOBPSponsorshipFormTextField").create(()=>({...sH,inputWrapper:{display:"flex",alignItems:"start",justifyContent:"flex-end",gap:"16px"},currency:{marginTop:"10px"},textField:{width:"100%",".text-spacing-detected &":{"& fieldset":{"& legend, & span":{lineHeight:"1 !important"}}},"& .MuiInputBase-root, &.MuiInputBase-root":{borderRadius:"8px",borderColor:h.Ay.palette.text.primary,fontFamily:h.Ay.typography.fontFamily,height:"48px",".text-spacing-detected &":{height:"auto",minHeight:"48px"}},"& .MuiInputAdornment-root":{marginLeft:"-2px",marginTop:"0",letterSpacing:"-1px",[h.Ay.breakpoints.down("md")]:{marginTop:"1px"},".text-spacing-detected &":{"& p":{marginTop:"5px"}}},"& .MuiInputBase-input":{paddingTop:"15px",paddingBottom:"15px",".text-spacing-detected &":{"&:not(textarea)":{lineHeight:"1 !important"},paddingTop:"calc(15px + 5px)"}},"& .MuiInputBase-multiline":{height:"unset",paddingTop:"12px",paddingBottom:"12px","& textarea":{padding:"0 !important"},[h.Ay.breakpoints.down("sm")]:{paddingBottom:"8px"}},"& .MuiOutlinedInput-notchedOutline":{top:0,"& > *":{lineHeight:"0"}}}})),sY=e=>{var t;let{fieldName:a,label:i,multiline:l,ariaLabel:r,tooltipText:o,className:s,minRows:d,maxLength:c,inputType:p="text"}=e,{classes:u}=sV(),m=(0,Z.j7)(),{backendErrors:h,clearFieldError:x}=sB();return(0,n.jsxs)(ew.A,{className:f()(u.fieldWrapper,s),"data-cy":sK,children:[(0,n.jsxs)(ew.A,{className:u.labelWrapper,children:[(0,n.jsx)("label",{htmlFor:"".concat(sK,"_").concat(a),children:i}),o&&(0,n.jsx)(ij.default,{symbol:"?",text:o,$_ID:"".concat(sK,"-tooltip--").concat(a)})]}),(0,n.jsxs)(ew.A,{className:u.inputWrapper,children:[(0,n.jsx)(Z.D0,{as:$.A,id:"".concat(sK,"_").concat(a),name:a,className:u.textField,value:(0,Z.O6)(m.values,a),onChange:e=>{x(a);let t=e.target.value;switch(p){case"phone":t=t.replace(/\D/g,"").slice(0,9);break;case"zipcode":{let e=t.replace(/[^0-9]/g,"");if(!t.includes("-")){let a=e.slice(0,2),n=e.slice(2,5);t=n.length>0?"".concat(a,"-").concat(n):a}t.length>6&&(t=t.slice(0,6));break}case"amount":case"number":t=t.replace(/\D/g,"")}m.setFieldValue(a,t)},onBlur:m.handleBlur,error:!!((0,Z.O6)(m.touched,a)&&(0,Z.O6)(m.errors,a))||(0,Z.O6)(h,a),helperText:(0,Z.O6)(m.touched,a)&&(0,Z.O6)(m.errors,a)||(0,Z.O6)(h,a),fullWidth:!0,placeholder:"amount"===p?"Wpisz kwotę":null,inputProps:{"aria-label":r,"aria-invalid":!!((0,Z.O6)(m.touched,a)&&(0,Z.O6)(m.errors,a)),"aria-describedby":(0,Z.O6)(m.touched,a)&&(0,Z.O6)(m.errors,a)?"".concat(sK,"_").concat(a,"_error"):void 0,inputMode:"phone"===p?"tel":"text",maxLength:null!=(t=Number(c))?t:void 0},InputProps:{startAdornment:"phone"===p?(0,n.jsx)(et.A,{position:"start",style:{marginLeft:"0px",letterSpacing:"-0.3px"},children:"+48"}):null},multiline:l,minRows:d||4,maxRows:10}),"amount"===p&&(0,n.jsx)("span",{className:u.currency,children:"PLN"})]})]})},sZ=c.Df.withName("PKOBPSponsorshipFormStep1").create(()=>({...sM,inputsWrapper:{display:"flex",alignItems:"flex-start",justifyContent:"flex-start",ga
1p:"30px","& > *":{width:"100%"},[h.Ay.breakpoints.down("sm")]:{gap:"16px"}}})),sq=()=>{let{classes:e}=sZ();return(0,n.jsxs)(ew.A,{"data-cy":"SponsorshipFormStep1",children:[(0,n.jsx)(sR,{title:"Wnioski sponsorskie - krok 1 z 3",description:"Aby złożyć wniosek o wsparcie sponsorskie wydarzenia, wypełnij poniższy formularz."}),(0,n.jsxs)(ew.A,{className:e.formContainer,children:[(0,n.jsx)(_.A,{variant:"h2",className:e.formTitle,children:"Informacje o wnioskodawcy"}),(0,n.jsx)(sY,{fieldName:"applicant.name",label:"Nazwa wnioskodawcy",ariaLabel:"Wpisz nazwę wnioskodawcy"}),(0,n.jsx)(sY,{fieldName:"applicant.partyName",label:"Nazwa podmiotu (strona w umowie)",ariaLabel:"Wpisz nazwę podmiotu",tooltipText:"Proszę wypełnić, jeśli jest inna niż nazwa wnioskującego"}),(0,n.jsx)(sY,{fieldName:"applicant.nip",label:"NIP",ariaLabel:"Wpisz NIP",tooltipText:"Proszę wprowadzić numer identyfikacji podatkowej (NIP) bez myślnik\xf3w",inputType:"number",maxLength:10}),(0,n.jsx)(sY,{fieldName:"applicant.street",label:"Ulica",ariaLabel:"Wpisz ulicę"}),(0,n.jsxs)(ew.A,{className:e.inputsWrapper,children:[(0,n.jsx)(sY,{fieldName:"applicant.postalCode",label:"Kod pocztowy",ariaLabel:"Wpisz kod pocztowy",inputType:"zipcode"}),(0,n.jsx)(sY,{fieldName:"applicant.place",label:"Miejscowość",ariaLabel:"Wpisz miejscowość"})]}),(0,n.jsx)(sY,{fieldName:"applicant.email",label:"Adres e-mail",ariaLabel:"Wpisz adres e-mail"}),(0,n.jsx)(sG,{fieldName:"applicant.partnerFlag",label:"Czy wnioskujący jest klientem Grupy Kapitałowej PKO Banku Polskiego?",ariaLabel:"Zaznacz czy wnioskujący jest klientem Grupy Kapitałowej PKO Banku Polskiego?"}),(0,n.jsx)(_.A,{variant:"h2",className:e.formTitle,children:"Osoba odpowiedzialna za realizację projektu po stronie organiztora"}),(0,n.jsx)(sY,{fieldName:"contactPerson.name",label:"Imię i nazwisko",ariaLabel:"Wpisz imię i nazwisko"}),(0,n.jsx)(sY,{fieldName:"contactPerson.phone",label:"Telefon",ariaLabel:"Wpisz numer telefonu",inputType:"phone"}),(0,n.jsx)(sY,{fieldName:"contactPerson.email",label:"Adres e-mail",ariaLabel:"Wpisz adres e-mail"})]})]})},sX=()=>(0,n.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M21.3337 8.00008V6.66675H20.0003V8.00008H12.0003V6.66675H10.667V8.00008H6.66699V24.0001H25.3337V8.00008H21.3337ZM10.667 9.33341V10.6667H12.0003V9.33341H20.0003V10.6667H21.3337V9.33341H24.0003V12.0001H8.00033V9.33341H10.667ZM8.00033 22.6667V13.3334H24.0003V22.6667H8.00033ZM9.33366 14.6667H10.667V16.0001H9.33366V14.6667ZM9.33366 17.3334H10.667V18.6667H9.33366V17.3334ZM9.33366 20.0001H10.667V21.3334H9.33366V20.0001ZM12.0003 14.6667H13.3337V16.0001H12.0003V14.6667ZM12.0003 17.3334H13.3337V18.6667H12.0003V17.3334ZM12.0003 20.0001H13.3337V21.3334H12.0003V20.0001ZM14.667 14.6667H16.0003V16.0001H14.667V14.6667ZM14.667 17.3334H16.0003V18.6667H14.667V17.3334ZM14.667 20.0001H16.0003V21.3334H14.667V20.0001ZM17.3337 14.6667H18.667V16.0001H17.3337V14.6667ZM17.3337 17.3334H18.667V18.6667H17.3337V17.3334ZM20.0003 14.6667H21.3337V16.0001H20.0003V14.6667ZM20.0003 17.3334H21.3337V18.6667H20.0003V17.3334Z",fill:"currentColor"})}),s$="SponsorshipFormDatePicker",sJ=c.Df.withName("PKOBPSponsorshipFormDatePicker").create(()=>({datepickerContainer:{display:"inline-flex",flexDirection:"column",marginBottom:"24px",width:"100%"},datepicker:{...aF.Z_,[h.Ay.breakpoints.down("md")]:{"& .MuiDatePickerToolbar-root":{display:"none"}}},datepickerInput:{...aF.Rj,"& .MuiOutlinedInput-root":{paddingRight:"12px",borderRadius:"8px",[h.Ay.breakpoints.down("sm")]:{paddingRight:"8px"}},"& .MuiOutlinedInput-root input":{padding:"16px 0px 17px 12px"}
1,"& .MuiOutlinedInput-root input::placeholder":{color:h.Ay.palette.grey[700],fontWeight:300},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,transition:"border-color 0.3s ease-in-out "},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.primary.main},"& .MuiFormHelperText-root":{marginLeft:"0px"},"& .MuiIconButton-root":{color:h.Ay.palette.primary.main,padding:0,borderRadius:"3px",transition:"background-color .2s, color .2s",marginRight:0,"& .MuiTouchRipple-root":{display:"none"},"&:hover, &:focus-visible":{color:"#fff",backgroundColor:h.Ay.palette.primary.main}},"& .MuiInputAdornment-root svg":{[h.Ay.breakpoints.down("md")]:{color:h.Ay.palette.primary.main,marginRight:"4px"}}},selectLabel:{"&&":{position:"relative",fontSize:"14px",lineHeight:"20px",color:h.Ay.palette.text.primary,transform:"none",marginBottom:"4px"}}})),sQ=e=>{let{minDate:t,inputLabel:a,fieldName:i}=e,{classes:l}=sJ(),r=(0,w.A)(h.Ay.breakpoints.down("md")),o=aB.E.pl,s=aB.U.pl,{backendErrors:c,clearFieldError:p}=sB(),u=(0,Z.j7)(),m=e=>{p(i),u.setFieldValue(i,e)},x=(0,d.useMemo)(()=>(0,az.s)(500,m),[]);return(0,n.jsx)("div",{className:l.datepickerContainer,children:(0,n.jsxs)(aP.$,{adapterLocale:o,dateAdapter:aO.M,localeText:s.components.MuiLocalizationProvider.defaultProps.localeText,children:[(0,n.jsx)(aL.A,{htmlFor:"".concat(s$,"-").concat(i,"--datepicker"),variant:"standard",className:l.selectLabel,children:a}),(0,n.jsx)(aI.l,{label:"",value:(0,Z.O6)(u.values,i),onChange:(e,t)=>
1{(null===e||void 0!==t)&&x(e)},onAccept:e=>{m(e)},renderDay:(e,t,a)=>(0,n.jsx)(aE.a,{...a,onClick:t=>{t.preventDefault(),t.stopPropagation(),(0,Z.O6)(u.values,i)&&(0,aT.A)(e,(0,Z.O6)(u.values,i))&&m(null)}}),disableFuture:!1,disablePast:!0,minDate:t,maxDate:new Date("2099-12-31"),inputFormat:aN.nm,mask:aN.kv,showDaysOutsideCurrentMonth:!0,closeOnSelect:!0,reduceAnimations:!0,components:{OpenPickerIcon:sX},desktopModeMediaQuery:h.Ay.breakpoints.up("md"),onOpen:()=>{setTimeout(()=>{let e=document.querySelector(".MuiCalendarPicker-root button");e&&e.focus()},200)},PaperProps:{className:l.datepicker,onKeyDown:e=>{"Escape"===e.key&&m(null)}},DialogProps:{className:l.datepicker},renderInput:e=>(0,n.jsx)($.A,{...e,id:"".concat(s$,"-").concat(i,"--datepicker"),className:l.datepickerInput,error:!!((0,Z.O6)(u.touched,i)&&(0,Z.O6)(u.errors,i))||(0,Z.O6)(c,i),helperText:(0,Z.O6)(u.touched,i)&&(0,Z.O6)(u.errors,i)||(0,Z.O6)(c,i),"data-cy":s$+"--date-picker",name:s$+"--date-picker",FormHelperTextProps:{id:"".concat(s$,"-").concat(i,"--datepicker-error")},inputProps:{...e.inputProps,placeholder:"DD.MM.RRRR","aria-label":"Wpisz datę w formacie DD.MM.RRRR","aria-invalid":!!((0,Z.O6)(u.touched,i)&&(0,Z.O6)(u.errors,i)),"aria-describedby":(0,Z.O6)(u.touched,i)&&(0,Z.O6)(u.errors,i)?"".concat(s$,"_").concat(i,"_datepicker-error"):void 0},...r&&{InputProps:{endAdornment:(0,n.jsx)(et.A,{position:"end",children:(0,n.jsx)(sX,{})})}}})})]})})},s0=e=>{let{width:t="24",height:a="24",viewBox:i="0 0 24 24"}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",width:t,height:a,viewBox:i,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M13.5561 14.6622L12.0001 15.9682L10.4441 14.6622L3.49512 8.83119C3.6611 8.62507 3.86708 8.45468 4.10066 8.33027C4.33424 8.20587 4.59058 8.13003 4.85425 8.10733C5.11791 8.08462 5.38345 8.11552 5.63486 8.19816C5.88627 8.28081 6.11834 8.41348 6.31712 8.58819L12.0001 13.3572L17.6831 8.58819C17.8819 8.41348 18.114 8.28081 18.3654 8.19816C18.6168 8.11552 18.8823 8.08462 19.146 8.10733C19.4097 8.13003 19.666 8.20587 19.8996 8.33027C20.1332 8.45468 20.3391 8.62507 20.5051 8.83119L13.5561 14.6622Z",fill:"#000066"})})},s1="SponsorshipFormSelect",s2=c.Df.withName("PKOBPSponsorshipFormSelect").create(()=>({...sH,selectLabel:{marginLeft:"16px",lineHeight:1},select:{height:"48px",width:"100%",".text-spacing-detected &":{height:"auto",minHeight:"48px"},"& select":{zIndex:"1"},"& svg":{display:"inline-block",width:"24px",height:"24px",position:"absolute",right:"12px",to
1p:"12px",".text-spacing-detected &":{top:"auto"}},"& .MuiSelect-select":{padding:"12px 14px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:h.Ay.palette.secondary.bordersDark,borderRadius:"8px",transition:"border 0.2s ease-in-out","& > legend":{width:"0px"}}},drawerList:{padding:0},drawerListButton:{padding:"16px 12px",borderRadius:"8px","&.Mui-focusVisible":{background:h.Ay.palette.secondary.backgroundGrey},"&.Mui-selected":{background:h.Ay.palette.secondary.backgroundGrey},"&.Mui-focusVisible.Mui-selected":{background:h.Ay.palette.secondary.backgroundGrey},"&.Mui-selected .MuiListItemText-primary":{fontWeight:700}},drawerListText:{margin:0,"& .MuiListItemText-primary":{lineHeight:1,fontSize:"16px",fontFamily:h.Ay.typography.fontFamily}},drawerListText__isClearBtn:{color:h.Ay.palette.grey[600]}})),s6=e=>{let{fieldName:t,label:a,ariaLabel:i,options:l,tooltipText:r}=e,{classes:o}=s2(),s=(0,w.A)(h.Ay.breakpoints.down("sm")),[c,p]=(0,d.useState)(null),{backendErrors:u,clearFieldError:m}=sB(),x=(0,Z.j7)();return(0,n.jsxs)(ew.A,{className:o.fieldWrapper,children:[(0,n.jsxs)(ew.A,{className:o.labelWrapper,children:[(0,n.jsx)("label",{htmlFor:"".concat(s1,"_").concat(t),children:a}),r&&(0,n.jsx)(ij.default,{symbol:"?",text:r,$_ID:"".concat(s1,"-tooltip--").concat(t)})]}),(0,n.jsxs)(J.A,{id:"".concat(s1,"_").concat(t),value:(0,Z.O6)(x.values,t),onChange:x.handleChange,name:t,IconComponent:()=>(0,n.jsx)(s0,{}),className:o.select,error:!!((0,Z.O6)(x.touched,t)&&(0,Z.O6)(x.errors,t))||(0,Z.O6)(u,t),label:"",inputProps:{"aria-label":i,"aria-invalid":!!(0,Z.O6)(x.errors,t),"aria-describedby":"".concat(s1,"_").concat(t,"_error"),readOnly:s},onClick:()=>s?p(t):null,displayEmpty:!0,renderValue:e=>{if(!e)return(0,n.jsxs)("span",{style:{color:h.Ay.palette.grey[700],fontWeight:300},children:["Wybierz ",a.toLowerCase()]});let t=null==l?void 0:l.find(t=>t.value===e);return(null==t?void 0:t.label)||""},children:[(0,n.jsx)(Q.A,{value:"",children:(0,n.jsx)(_.A,{color:h.Ay.palette.grey[500],children:"Wyczyść zaznaczenie"})}),null==l?void 0:l.map(e=>(0,n.jsx)(Q.A,{value:e.value,children:e.label},e.value))]}),((0,Z.O6)(x.touched,t)&&(0,Z.O6)(x.errors,t)||(0,Z.O6)(u,t))&&(0,n.jsx)(ee.A,{error:!0,id:"".concat(s1,"_").concat(t,"_error"),children:(0,Z.O6)(x.errors,t)||(0,Z.O6)(u,t)}),s&&(0,n.jsx)(nB.default,{isDrawerOpen:c===t,handleCloseDrawer:()=>p(null),withoutHeaderBox:!0,children:(0,n.jsxs)(nN.A,{className:o.drawerList,children:[(0,n.jsx)(nS.Ay,{disablePadding:!0,children:(0,n.jsx)(nT.A,{className:o.drawerListButton,selected:!1,onClick:()=>{m(t),x.setFieldValue(t,""),p(null)},children:(0,n.jsx)(nz.A,{primary:"Wyczyść zaznaczenie",className:f()(o.drawerListText,o.drawerListText__isClearBtn)})})}),null==l?void 0:l.map(e=>{let{value:a,label:i}=e;return(0,n.jsx)(nS.Ay,{disablePadding:!0,children:(0,n.jsx)(nT.A,{className:o.drawerListButton,selected:(0,Z.O6)(x.values,t)===a,onClick:()=>{m(t),x.setFieldValue(t,a),p(null)},children:(0,n.jsx)(nz.A,{primary:i,className:o.drawerListText})})},a)})]})})]})},s4=[{label:"Biznes",value:"BUSINESS"},{label:"Edukacja",value:"EDUCATION"},{label:"Innowacje",value:"INNOVATIONS"},{label:"Kultura",value:"CULTURE"},{label:"Sport",value:"SPORT"},{label:"Sport - biegi",value:"RUNS"},{label:"Sport - piłka nożna",value:"FOOTBALL"}],s8=[{label:"Lokalne",value:"LOCAL"},{label:"Regionalne",value:"REGIONAL"},{label:"Og\xf3lnopolskie",value:"NATIONWIDE"},{label:"Międzynarodowe",value:"INTERNATIONAL"}],s3=c.Df.withName("PKOBPSponsorshipFormStep2").create(()=>({...sM,datesWrapper:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"30px",[h.Ay.breakpoints.down("sm")]:{flexDirection:"column",gap:"0px"}}})),s5=()=>{var e,t,a;let{classes:i}=s3(),l=(0,Z.j7)();return(0,d.useEffect)(()=>{var e;(null==l||null==(e=l.values)?void 0:e.project.exclusivenessFlag)&&(null==l||l.setFieldValue("project.exclusivenessReason",null))},[null==l||null==(e=l.values)?void 0:e.project.exclusivenessFlag]),(0,n.jsxs)(ew.A,{"data-cy":"SponsorshipFormStep2",children:[(0,n.jsx)(sR,{title:"Wnioski sponsorskie - krok 2 z 3",description:"Aby złożyć wniosek o wsparcie sponsorskie wydarzenia, wypełnij poniższy formularz."}),(0,n.jsxs)(ew.A,{className:i.formContainer,children:[(0,n.jsx)(_.A,{variant:"h2",className:i.formTitle,children:"Informacje o projekcie"}),(0,n.jsx)(sY,{fieldName:"project.name",label:"Nazwa projektu",ariaLabel:"Podaj nazwę projektu"}),(0,n.jsx)(sY,{fieldName:"project.place",label:"Miejsce realizacji projektu",ariaLabel:"Podaj miejsce realizacji projektu"}),(0,n.jsx)(sY,{fieldName:"project.description",label:"Opis projektu",ariaLabel:"Uzupełnij opis projektu",tooltipText:"Proszę podać najistotniejsze informacje dot. przedsięwzięcia, w tym: gdzie się odbywa, do kogo jest kierowane, jaka jest spodziew
1ana liczba odbiorc\xf3w, udział ważnych osobistości, patronaty – honorowe, medialne.",multiline:!0,minRows:1}),(0,n.jsx)(s6,{fieldName:"project.type",label:"Rodzaj",ariaLabel:"Wybierz rodzaj projektu",options:s4}),(0,n.jsxs)(ew.A,{className:i.datesWrapper,children:[(0,n.jsx)(sQ,{minDate:new Date,fieldName:"project.dateFrom",inputLabel:"Data przedsięwzięcia od"}),(0,n.jsx)(sQ,{minDate:(null==l||null==(t=l.values)?void 0:t.project.dateFrom)?new Date(null==l||null==(a=l.values)?void 0:a.project.dateFrom):new Date,fieldName:"project.dateTo",inputLabel:"Data przedsięwzięcia do"})]}),(0,n.jsx)(s6,{fieldName:"project.reach",label:"Zasięg",ariaLabel:"Wybierz zasięg",options:s8}),(0,n.jsx)(sY,{fieldName:"project.significance",label:"Ranga",ariaLabel:"Wpisz rangę",tooltipText:"Patronaty, udział władz, os\xf3b opiniotw\xf3rczych, inne ważne cechy świadczące o prestiżu."}),(0,n.jsx)(sY,{fieldName:"project.participantsNumber",label:"Liczba uczestnik\xf3w",ariaLabel:"Podaj liczbę uczestnik\xf3w",inputType:"number"}),(0,n.jsx)(sY,{fieldName:"project.estimatedCost",label:"Szacunkowy koszt realizacji całego projektu (brutto)",ariaLabel:"Wpisz kwotę szacunkowego kosztu realizacji całego projektu (brutto)",inputType:"amount"}),(0,n.jsx)(sY,{fieldName:"project.expectedValue",label:"Oczekiwana kwota sponsorska (brutto)",ariaLabel:"Wpisz oczekiwaną kwotę sponsorską (brutto)",inputType:"amount"}),(0,n.jsx)(sY,{fieldName:"project.honoraryTitle",label:"Tytuł sponsorski oferowany Bankowi",ariaLabel:"Wpisz tytuł sponsorski oferowany Bankowi"}),(0,n.jsx)(sG,{fieldName:"project.exclusivenessFlag",label:"Czy Bank ma wyłączność branżową?",ariaLabel:"Zaznacz czy Bank ma wyłączność branżową?",tooltipText:"Jeśli nie, proszę kr\xf3tko uzasadnić"}),!(0,Z.O6)(l.values,"project.exclusivenessFlag")&&(0,n.jsx)(sY,{fieldName:"project.exclusivenessReason",label:"Uzasadnienie braku wyłączności branżowej",ariaLabel:"Podaj uzasadnienie braku wyłączności branżowej"}),(0,n.jsx)(sY,{fieldName:"project.otherSponsor",label:"Inni sponsorzy (planowani i potwierdzeni) wraz z tytułami sponsorskimi",ariaLabel:"Wpisz innych sponsor\xf3w (planowani i potwierdzeni) wraz z tytułami sponsorskimi"})]})]})},s9="SponsorshipFormAgreements",s7=c.Df.withName("PKOBPSponsorshipFormAgreements").create(()=>({agreements:{margin:0,padding:0,border:"none",marginLeft:"2px","&>legend":es.$,"& .MuiCheckbox-root":{paddingRight:"7px"},"& .MuiFormControlLabel-label":{fontSize:"14px",lineHeight:"20px",fontWeight:400,[h.Ay.breakpoints.down("sm")]:{marginTop:"2px"}},"& .agreement-description":{marginLeft:"30px",marginTop:"2px",[h.Ay.breakpoints.down("sm")]:{marginTop:"5px"}},"& .MuiFormGroup-root:last-of-type":{marginBottom:"0px"}},checkAllConsentsWrapper:{marginBottom:"24px","&& .MuiCheckbox-root":{paddingRight:"11px"},"&& .MuiFormControlLabel-label":{fontSize:"16px",lineHeight:"20px",fontWeight:700,marginTop:"4px"}}})),de=e=>{let{agreements:t}=e,{classes:a}=s7(),[i,l]=(0,d.useState)(!1),r=(0,Z.j7)(),o=t.some(e=>(0,Z.O6)(r.touched,e.name)&&(0,Z.O6)(r.errors,e.name));return(0,n.jsxs)(ew.A,{component:"fieldset",className:a.agreements,"data-cy":s9,children:[o?(0,n.jsx)("legend",{children:"Nie wszystkie obowiązkowe zgody formularza zostały zaznaczone"},"invalid-agreements"):(0,n.jsx)("legend",{children:"Zgody do zaznaczenia formularza"},"valid-agreements"),(0,n.jsx)(ew.A,{className:a.checkAllConsentsWrapper,children:(0,n.jsx)(nF.A,{checked:i,label:"Akceptuję treść poniższych oświadczeń",onChange:e=>{l(e),t.forEach(t=>{r.setFieldValue(t.name,e)})},$_ID:"".concat(s9,"--checkAllConsents"),cy:s9})}),t.map(e=>(0,n.jsx)(er.A,{formik:r,field:e},e.name))]})},dt=[{name:"summary.dataProcessingAgreementFlag",link_label:"Rozwiń pełną treść",link_label_expanded:"Zwiń pełną treść",display_name:"Zgoda na przetwarzanie danych w celu marketingu banku",content:"\n      <div>\n        <p>\n          Wyrażam zgodę na przetwarzanie moich danych prowadzonych przeze mnie podczas rejestracji wniosku o wsparcie sponsorskie  w  celu rozpatrzenia wniosku i realizacji działalności sponsorskiej PKO Banku Polskiego SA.\n        </p>\n        <p>\n          Stosownie do przepis\xf3w ustawy o ochronie danych osobowych potwierdzam otrzymanie informacji, że:\n        </p>\n        <ol>\n          <li>administratorem Pani/Pana danych osobowych jest Powszechna Kasa Oszczędności Bank Polski Sp\xf3łka Akcyjna z siedzibą w Warszawie, adres: ul. Świętokrzyska 36, 00-116 Warszawa</li>\n          <li>dane zbierane są w związku ze złożonym wnioskiem i działalnością sponsorską Banku,</li>\n          <li>zebrane dane nie będą udostępniane podmiotom zewnętrznym,</li>\n          <li>przysługuje mi prawo dostępu do treści moich danych oraz ich poprawiania na warunkach określonych w ustawie o ochronie danych osobowych.</li>\n        </ol>\n        <p>PKO Bank Polski informuje, że podanie danych jest niezbędne dla rozpatrzenia wniosku oraz podjęcie ew. wsp\xf3łpracy.</p>\n      </div>\n    "}],da=c.Df.withName("PKOBPSponsorshipFormStep3").create(()=>({...sM,textField:{marginBottom:"20px",[h.Ay.breakpoints.down("sm")]:{marginBottom:"34px"}}})),dn=()=>{let{classes:e}=da();return(0,n.jsxs)(ew.A,{"data-cy":"SponsorshipFormStep3",children:[(0,n.jsx)(sR,{title:"Wnioski sponsorskie - krok 3 z 3",description:"Aby złożyć wniosek o wsparcie sponsorskie wydarzenia, wypełnij poniższy formularz."}),(0,n.jsxs)(ew.A,{className:e.formContainer,children:[(0,n.jsx)(_.A,{variant:"h2",className:e.formTitle,children:"Świadczenia sponsorskie"}
1),(0,n.jsx)(sY,{fieldName:"summary.benefitDescription",label:"Opis świadczeń",ariaLabel:"Dodaj opis świadczeń",multiline:!0,minRows:4,className:e.textField}),(0,n.jsx)(de,{agreements:dt})]})]})},di=c.Df.withName("PKOBPSponsorshipForm").create(()=>({buttons:{display:"flex",alignItems:"center",justifyContent:"space-between",maxWidth:"600px",marginTop:"35px",[h.Ay.breakpoints.down("sm")]:{marginTop:"23px",gap:"16px","& button":{minWidth:"156px",width:"100%"}}},buttons__isOneBeforeLastStep:{marginTop:"28px",[h.Ay.breakpoints.down("sm")]:{marginTop:"18px"}},buttons__isLastStep:{maxWidth:"unset",justifyContent:"center",marginTop:"16px",minWidth:"160px","& button":{minWidth:"240px"}},nextBtn:{marginLeft:"auto",[h.Ay.breakpoints.down("sm")]:{width:"100%"}}})),dl=()=>{let{classes:e}=di(),t=(0,en.A)(),a=(0,d.useContext)(U.G),[i,l]=(0,d.useState)(0),[r,o]=(0,d.useState)({}),[s,c]=(0,d.useState)(""),[p,u]=(0,d.useState)(!1),[m,h]=(0,d.useState)(null),x=(0,d.useRef)(null),g=(0,d.useRef)(!0),y=[(0,n.jsx)(sq,{}),(0,n.jsx)(s5,{}),(0,n.jsx)(dn,{}),(0,n.jsx)(sS,{isSuccess:p,applicationId:m})];(0,d.useEffect)(()=>{if(g.current){g.current=!1;return}let e=setTimeout(()=>{var e;let t=null==(e=x.current)?void 0:e.querySelector("h1");null==t||t.scrollIntoView({behavior:"smooth",block:"start"}),null==t||t.focus()},0);return()=>clearTimeout(e)},[i]);let b=e=>{if(!(!e||isNaN(e.getTime())))return(0,a8.A)(e,"yyyy-MM-dd")},v=async e=>{try{let a=await t.apiModulesSponsorshipFormCreate({step:i+1,...e,project:{...e.project,dateFrom:b(e.project.dateFrom),dateTo:b(e.project.dateTo)}});if(a.data)return a.data}catch(e){return console.error(e),e}},w=async(e,t,a)=>{let n=await e();if(Object.keys(n).length>0){let e=Object.keys(n).length;c("Formularz zawiera ".concat(e," błęd\xf3w"));let a=e=>Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;return[t,!n||"object"!=typeof n||a(n)]}));return t(a(n)),sT(n),!1}let i=await v(a);return(null==i?void 0:i.status)===400&&(null==i?void 0:i.error)?(o(i.error),sT(i.error),!1):(null==i?void 0:i.status)!==400&&(null==i?void 0:i.error)?(l((null==y?void 0:y.length)-1),u(!1),!1):((null==i?void 0:i.application_id)&&h(i.application_id),!0)},_=async(e,t,a)=>{await w(e,t,a)&&l(e=>e+1)},j=()=>l(e=>e-1),k=async(e,t)=>{await w(t.validateForm,t.setTouched,e)&&(l((null==y?void 0:y.length)-1),u(!0))},C=y.length-1;return(0,n.jsx)(sO.Provider,{value:{backendErrors:r,setBackendErrors:o,clearFieldError:e=>{o(t=>{if(!t[e])return t;let{[e]:a,...n}=t;return n})}},children:(0,n.jsx)(ew.A,{id:a,"data-cy":"SponsorshipForm",children:(0,n.jsx)(Z.l1,{initialValues:sz,validationSchema:sE[i],onSubmit:k,validateOnBlur:!0,validateOnChange:!1,children:t=>{let{validateForm:a,setTouched:r,values:d,resetForm:c,setSubmitting:m}=t;return(0,n.jsxs)(Z.lV,{children:[(0,n.jsx)(es.A,{children:(0,n.jsx)("div",{role:"alert","aria-live":"assertive",children:s})}),(0,n.jsx)("div",{ref:x,children:y[i]}),(0,n.jsxs)(ew.A,{className:f()(e.buttons,{[e.buttons__isLastStep]:i===C,[e.buttons__isOneBeforeLastStep]:i===y.length-2}),children:[i>0&&i!==C&&(0,n.jsx)(A.default,{type:"button",variant:"secondary",onClickCallback:j,children:"Wstecz"}),i<y.length-2&&(0,n.jsx)(A.default,{type:"button",variant:"primary",className:e.nextBtn,onClickCallback:()=>_(a,r,d),children:"Dalej"}),i===y.length-2&&(0,n.jsx)(A.default,{variant:"primary",type:"submit",className:e.nextBtn,renderAsButton:!0,children:"Dalej"}),i===C&&(0,n.jsx)(A.default,{variant:p?"secondary":"primary",type:"button",onClickCallback:()=>{p&&(u(!1),c(),m(!1)),l(0),o({})},children:p?"Wr\xf3ć do strony gł\xf3wnej":"Spr\xf3buj ponownie"})]})]})}})})})},dr=z()(()=>Promise.all([a.e(1562),a.e(1643),a.e(5729)]).then(a.bind(a,15729)),{loadableGenerated:{webpack:()=>[15729]}}),ds=z()(()=>a.e(6424).then(a.bind(a,96424)),{loadableGenerated:{webpack:()=>[96424]}}),dd=z()(()=>a.e(5816).then(a.bind(a,15816)),{loadableGenerated:{webpack:()=>[15816]}}),dc=z()(()=>Promise.resolve().then(a.bind(a,38291)),{loadableGenerated:{webpack:()=>[38291]}}),dp=z()(()=>a.e(9429).then(a.bind(a,9429)),{loadableGenerated:{webpack:()=>[9429]},ssr:!1}),du=z()(()=>a.e(3375).then(a.bind(a,83375)),{loadableGenerated:{webpack:()=>[83375]},ssr:!1}),dm=z()(()=>a.e(9931).then(a.bind(a,19931)),{loadableGenerated:{webpack:()=>[19931]},ssr:!1}),dh={accordion:e=>{let t=x.JH.ACCORDION;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(G,{...e})})},advent_calendar:e=>{let t=x.YU.CALENDAR;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(t7,{...e})})},agency_contact_snippet:e=>{let t=x.YU.AGENCY_CONTACT,a=(0,d.useContext)(p.X4);return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:a?(0,n.jsx)(eN,{
1children:(0,n.jsx)(tu,{...e})}):(0,n.jsxs)("div",{children:["Komponent ".concat(e.defaultName," - będzie dostępny po opublikowaniu i podaniu w url parametru ")," ",(0,n.jsx)("span",{style:{whiteSpace:"nowrap"},children:'"agency-code"'})]})})},agency_contact_form_snippet:e=>{let t=x.YU.AGENCY_CONTACT_FORM,a=(0,d.useContext)(p.X4);return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:a?(0,n.jsx)(eh,{...e}):(0,n.jsxs)("div",{children:["Komponent ".concat(e.defaultName," - będzie dostępny po opublikowaniu i podaniu w url parametru ")," ",(0,n.jsx)("span",{style:{whiteSpace:"nowrap"},children:'"agency-code"'})]})})},agency_product_offer_snippet:e=>{let t=x.YU.AGENCY_PRODUCT_OFFER,a=(0,d.useContext)(p.X4);return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:a?(0,n.jsx)(tv,{...e}):(0,n.jsxs)("div",{children:["Komponent ".concat(e.defaultName," - będzie dostępny po opublikowaniu i podaniu w url parametru ")," ",(0,n.jsx)("span",{style:{whiteSpace:"nowrap"},children:'"agency-code"'})]})})},agency_product_offer_form_snippet:e=>{let t=x.YU.AGENCY_PRODUCT_OFFER_FORM;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tx,{...e})})},alert:tw.A,button:e=>{let[t,a]=(0,d.useState)();(0,d.useEffect)(()=>{a((0,tP.A)())},[]);let i=(0,tE.TE)(t,e);if(!i)return(0,n.jsx)(n.Fragment,{});let l=x.JH.BUTTON,r=(0,tI.tZ)({isGlobalized:e.isGlobalized});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:l,children:(0,n.jsx)(tq,{align:e.align,children:(0,n.jsx)(tX,{variant:e.variant,is_english:e.is_english,...e,...i,idGTM:r,linkId:e.id})})})})},breadcrumbs:e=>{let t=x.JH.BREADCRUMBS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tY,{...e})})},banner:e=>{let t=x.YU.BANNER;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tA,{...e})})},consolidationCalc:e=>{let t=x.YU.CALC_CONSOLID;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tJ,{...e})})},calcLoan:e=>{let t=x.YU.CALC_LOAN;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tQ,{...e})})},calcMortgage:e=>{let t=x.YU.CALC_MORTGAGE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(t0,{...e})})},callme_snippet:e=>{let t=x.JH.CALL_ME;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized"),prefix:t,children:(0,n.jsx)(ae,{...e})})},carousel:e=>{let t=x.YU.CAROUSEL;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(aa,{...e})})},category_links:e=>{let t=x.YU.CATEGORY_LINKS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(an,{...e})})},copyright:e=>{let t=x.YU.COPYRIGHT;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(al,{...e})})},compare:e=>{let t=x.YU.COMPARE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(ai,{...e})})},currencies:e=>{let t=x.YU.CURRENCIES;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(ar,{...e})})},contact_form_snippet:e=>{let t=x.YU.CC_FORMS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","skip_for_print","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(t$,{...e})})},deposit_calc:e=>{let t=x.YU.CALC_DEPOSIT;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(ao,{...e})})},escoring:e=>{let t=x.YU.ESCORING;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nv,{...e})})},dictation_snippet:e=>{let t=x.YU.DICTATION;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(a_,{...e})})},documents:e=>{let t=x.JH.DOCUMENTS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(aj,{...e})})},fintech_contact_form_snippet:e=>{let t=x.YU.FINTECH_CONTACT_FORM;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nZ,{...e})})},edocuments:e=>{let t=x.YU.EDOCUMENTS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nf,{...e})})},herobanner:e=>{let t=x.YU.HERO_BANNER;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(lW,{...e})})},headline:e=>{var t;let{content:a,...i}=e,l=a.replace(/\n/g,"<br>"),r=(0,w.A)(h.Ay.breakpoints.down("md")),o=x.JH.HEADLINE,s=(0,tI.tZ)({snippetPrefix:o,snippetUuid:null==(t=i.id)?void 0:t.toString(),isGlobalized:i.isGlobalized}),d=()=>(0,n.jsx)(U.A,{...(0,W.A)(i,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:o,children:(0,n.jsx)(_.A,{...(0,lH.A)(i,"page_structure","category","uuid","defaultName","created","name","elementId","elementIdPrefix","prefix","type","index","spacings"),idGTM:s,marginTop:0,marginBottom:0,wordBreak:"break-word",children:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:r?(0,lM.RD)(l):l}})})});return(0,n.jsx)(n.Fragment,{children:i.is_hidden?(0,n.jsx)(es.A,{children:(0,n.jsx)(d,{})}):(0,n.jsx)(d,{})})},html:e=>{var t;let{content:a,name:i,...l}=e,r=(0,lR.U)("HTML",i,""),o=x.JH.HTML,s=(0,tI.tZ)({snippetPrefix:o,snippetUuid:null==(t=l.id)?void 0:t.toString(),isGlobalized:l.isGlobalized});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U.A,{...(0,W.A)(l,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:o,children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:a},"data-cy":r,id:s})})})},image:e=>{let t=x.JH.IMAGE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(lG.A,{...e,addAlignWrapper:!0})})},iconwithlink:e=>{let t=x.JH.ICON_WITH_LINK;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(lU,{...e,isSnippet:!0})})},infoline:e=>{let t=x.YU.INFOLINE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(lK,{...e})})},kid_snippet:e=>{let t=x.YU.KID;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rS,{...e})})},lead_snippet:e=>{var t;let a=x.YU.LEAD,i={...e,lead_rendered:{...null==e?void 0:e.lead_rendered,sections:(0,rT.F1)(null==e||null==(t=e.lead_rendered)?void 0:t.sections)}};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:a,children:(0,n.jsx)(rz,{...i})})})},leasing_contact_form_snippet:e=>{let t=x.YU.LEASING_CONTACT_FORM;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rM,{...e})})},leasing_complaint_form_snippet:e=>{let t=x.YU.LEASING_COMPLAINT_FORM;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rF,{...e})})},logotypes:e=>{let t=x.YU.LOGOTYPES;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rH,{...e})})},menu:rU.A,links_menu:e=>{let t=x.YU.MENU_LINKS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings","spacings"),prefix:t,children:(0,n.jsx)(rG,{...e})})},meetapp:e=>{let t=x.YU.MEET_APP;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rW,{...e})})},neon:dp,news_item:e=>{let t=x.YU.NEWS_PAGE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rY,{...e})})},news_list:du,news:e=>{let t=x.YU.RECENT_NEWS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sv.default,{...e})})},ofe_dfe_table:e=>{let t=x.YU.OFE_DFE_TABLE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(ol,{...e})})},newscarousel:e=>{let t=x.YU.RECENT_NEWS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(rV,{...e})})},pad:e=>{let t=x.YU.PAD;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(or,{...e})})},products:e=>{let t=x.YU.PRODUCTS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sy,{...e})})},products_filters:e=>{let t=x.YU.PRODUCTS_FILTERS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sg,{...e})})},poi_map:e=>(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),children:(0,n.jsx)(eN,{mapType:e.poi_map_type,children:(0,n.jsx)(sx,{...e})})}),property_details_snippet:e=>{let t=x.YU.ESTATE_DETAILS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nw,{...e})})},property_home_outro:e=>{let t=x.YU.ESTATE_HOME_OUTRO;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nA,{...e})})},property_promoted_snippet:e=>{let t=x.YU.ESTATE_PROMOTED;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nj,{...e})})},property_search_snippet:e=>{let t=x.YU.ESTATE_SEARCH;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nk.I,{children:(0,n.jsx)(nC,{...e})})})},property_manager_snippet:e=>{let t=x.YU.ESTATE_MANAGER;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,customInlineStyles:{height:"100%"},children:(0,n.jsx)(n_,{...e})})},rates_chart:e=>{let t=x.YU.NEON;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sb,{...e})})},rates_table:e=>{let t=x.YU.RATES_TABLE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sf,{...e})})},search_results:dm,separator:e=>{let{...t}=e,a=x.JH.SEPARATOR;
1return(0,n.jsx)(U.A,{...(0,W.A)(t,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:a,children:(0,n.jsxs)(B.A,{minHeight:"1px","data-cy":"Separator-".concat(t.name),children:[(null==t?void 0:t.showLine)&&((null==t?void 0:t.variant)==="normal"||!(null==t?void 0:t.variant))&&(0,n.jsx)(aK.A,{}),(null==t?void 0:t.showLine)&&(null==t?void 0:t.variant)==="blue"&&(0,n.jsx)(s_.A,{})]})})},script:e=>(0,n.jsx)(sw,{...e}),scrollmenu:sA.A,slider:e=>{let t=x.YU.SLIDER;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sj,{...e})})},socialicons:e=>{let t=x.YU.SOCIALS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(sk,{positions:e.positions,name:e.name})})},video:e=>{let t=x.JH.VIDEO;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(dd,{...e})})},wysiwyg:e=>{let t=x.JH.WYSIWYG;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nX,{children:(0,n.jsx)(dc,{content:e.content,products:null==e?void 0:e.product_for_wysiwyg_rendered,isSnippet:!0})})})},tabs:e=>{let t=x.YU.TABS;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(dr,{...e})})},tiles:e=>{let t=x.JH.TILES;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(ds,{...e})})},floating_content:e=>{let t=x.YU.FLOATING_CONTENT;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","uuid","isGlobalized","spacings"),prefix:t,customInlineStyles:{height:"100%"},children:(0,n.jsx)(n1,{...e})})},simplemessage:e=>{let t=x.JH.SIMPLE_MESSAGE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nX,{children:(0,n.jsx)(n0,{...e})})})},flexiblemessage:e=>{let t=x.JH.FLEXIBLE_MESSAGE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(nX,{children:(0,n.jsx)(n0,{...e})})})},navigation_bar:rK.A,fxrates:e=>{let t=x.YU.FXRATES;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(i_,{...e})})},fxrates_full:e=>{let t=x.YU.FXRATESFULL;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(lD,{...e})})},card_repayment_calculator:e=>{let t=x.YU.CARD_REPAYMENT_CALCULATOR;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(at,{...e})})},fxrates_cantor:e=>{let t=x.YU.FXRATES_CANTOR;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(iN,{...e})})},sponsorship_form:e=>{let t=x.YU.SPONSORSHIP_FORM;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(dl,{...e})})},treasury_bonds_for_you:e=>{let t=x.YU.BONDS_FOR_YOU;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tV,{...e})})},treasury_bonds_comparison_table:e=>{let t=x.YU.BONDS_COMPARE_TABLE;return(0,n.jsx)(U.A,{...(0,W.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,children:(0,n.jsx)(tR,{...e})})},layout_w1_n1:e=>{let{classes:t,placeholders:a,...i}=e,{marginTop:l=0,marginBottom:r=0,hideNarrowColumnOnMobile:o=!1}=i,s=(0,w.A)(h.Ay.breakpoints.down("lg"))&&o;return(0,n.jsx)(F.A,{layoutUuid:(null==i?void 0:i.uuid)||"",layoutType:x.tX.COLWN,children:(0,n.jsx)(B.A,{pt:l,pb:r,component:"section",className:"PKOBP__L_W1N1",children:(0,n.jsx)(D.A,{...i,children:(0,n.jsxs)(R.A,{container:!0,children:[(0,n.jsx)(R.A,{item:!0,xs:12,...s?{sm:12,md:12}:{sm:7,md:8},lg:9,children:a[0]}),!s&&(0,n.jsx)(R.A,{item:!0,xs:12,sm:5,md:4,lg:3,children:a[1]})]})})})})},layout_w1_n1_narrower:e=>{let{classes:t,placeholders:a,...i}=e,{marginTop:l=0,marginBottom:r=0}=i;return(0,n.jsx)(F.A,{layoutUuid:(null==i?void 0:i.uuid)||"",layoutType:x.tX.COLWN_NRWR,children:(0,n.jsx)(B.A,{pt:l,pb:r,component:"section",className:"PKOBP__L_W1N1N",children:(0,n.jsx)(D.A,{...i,children:(0,n.jsxs)(R.A,{container:!0,children:[(0,n.jsx)(R.A,{item:!0,xs:12,sm:12,md:7,lg:7,children:a[0]}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:12,md:1,lg:1}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:12,md:4,lg:4,children:a[1]})]})})})})},layout16:e=>{let{placeholders:t,...a}=e,{marginTop:i=0,marginBottom:l=0}=a;return(0,n.jsx)(F.A,{layoutUuid:(null==a?void 0:a.uuid)||"",layoutType:x.tX.COL6,children:(0,n.jsx)(B.A,{pt:i,pb:l,component:"section",children:(0,n.jsx)(D.A,{...a,children:(0,n.jsxs)(R.A,{container:!0,center:!0,children:[(0,n.jsx)(R.A,{item:!0,xs:12,sm:6,md:4,lg:2,xl:2,children:t[0]}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:6,md:4,lg:2,xl:2,children:t[1]}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:6,md:4,lg:2,xl:2,children:t[2]}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:6,md:4,lg:2,xl:2,children:t[3]}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:6,md:4,lg:2,xl:2,children:t[4]}),(0,n.jsx)(R.A,{item:!0,xs:12,sm:6,md:4,lg:2,xl:2,children:t[5]})]})})})})},layout25:e=>{let{placeholders:t,...a}=e,{marginTop:i=0,marginBottom:l=0}=a;return(0,n.jsx)(F.A,{layoutUuid:(null==a?void 0:a.uuid)||"",layoutType:x.tX.COL4,children:(0,n.jsx)(B.A,{pt:i,pb:l,component:"section",children:(0,n.jsx)(D.A,{...a,children:(0,n.jsxs)(R.A,{container:!0,children:[(0,n.jsx)(R.A,{item:!0,xs:12,md:3,children:t[0]}),(0,n.jsx)(R.A,{item:!0,xs:12,md:3,children:t[1]}),(0,n.jsx)(R.A,{item:!0,xs:12,md:3,children:t[2]}),(0,n.jsx)(R.A,{item:!0,xs:12,md:3,children:t[3]})]})})})})},layout33:e=>{let{placeholders:t,...a}=e,{marginTop:i=0,marginBottom:l=0}=a;return(0,n.jsx)(F.A,{layoutUuid:(null==a?void 0:a.uuid)||"",layoutType:x.tX.COL3,children:(0,n.jsx)(B.A,{pt:i,pb:l,component:"section",children:(0,n.jsx)(D.A,{...a,children:(0,n.jsxs)(R.A,{container:!0,children:[(0,n.jsx)(R.A,{item:!0,xs:12,md:4,children:t[0]}),(0,n.jsx)(R.A,{item:!0,xs:12,md:4,children:t[1]}),(0,n.jsx)(R.A,{item:!0,xs:12,md:4,children:t[2]})]})})})})},layout50:e=>{let{placeholders:t,...a}=e,{marginTop:i=0,marginBottom:l=0}=a;return(0,n.jsx)(F.A,{layoutUuid:(null==a?void 0:a.uuid)||"",layoutType:x.tX.COL2,children:(0,n.jsx)(B.A,{pt:i,pb:l,component:"section",children:(0,n.jsx)(D.A,{...a,children:(0,n.jsxs)(R.A,{container:!0,children:[(0,n.jsx)(R.A,{item:!0,xs:12,md:6,children:t[0]}),(0,n.jsx)(R.A,{item:!0,xs:12,md:6,children:t[1]})]})})})})}
1,layout100:M.A,layoutFull:H.A,globalizer:e=>{let t=(e=>!(0,L.A)(e.structure_2)&&O(e.display_from_2,e.display_to_2)?e.structure_2:O(e.display_from,e.display_to)?e.structure:null)(e);return(0,L.A)(t)?(0,n.jsx)("div",{}):(0,n.jsx)(S,{structure:t,components:dh})}},dx=()=>(0,n.jsx)("iframe",{style:{width:"100vw",height:"100vh",border:"none"},src:"static/errorpages/index.html"}),dg=c.Df.withName("PKOBPOnlyBankNetworkInfo").create(()=>({box:{position:"fixed",top:"160px",left:"0",fontSize:"12px",padding:"4px",color:"#000",background:"#ff0",borderLeft:"none",border:"2px solid #000",borderTopRightRadius:"4px",borderBottomRightRadius:"4px",zIndex:h.Ay.zIndex.skiplink}})),dy=()=>{let{classes:e}=dg();return(0,n.jsxs)("div",{className:e.box,children:["Strona widoczna",(0,n.jsx)("br",{}),"tylko w sieci banku"]})};var db=a(11923);let df=c.Df.withName("PKOBPSkiplink").create(()=>({skiplink:{position:"absolute",left:"-999px",width:"1px",height:"1px",top:"auto","&:focus":{color:h.Ay.palette.common.white,background:h.Ay.palette.primary.light,borderBottomRightRadius:"4px",fontSize:"12px",padding:"3px",display:"inline-block",width:"auto",height:"auto",margin:"auto",outline:"none",position:"absolute",top:"0",left:"0",zIndex:h.Ay.zIndex.skiplink}}})),dv=()=>{let{classes:e}=df();return(0,n.jsx)("a",{className:e.skiplink,href:"#main",onKeyDown:e=>{if((0,db.A)()&&("Space"===e.code||"Enter"===e.code)){var t,a,n,i;e.preventDefault();let l=document.getElementById("main"),r=null==l||null==(t=l.querySelectorAll('button:not([tabindex="-1"]), [href], input:not([tabindex="-1"]), select:not([tabindex="-1"]), textarea:not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])'))?void 0:t[0];r&&(null==r||r.focus());let o=(null==l||null==(a=l.getBoundingClientRect())?void 0:a.top)+(null==(n=window)?void 0:n.scrollY);o&&(null==(i=window)||i.scrollTo(0,o))}},children:"Przejdź to gł\xf3wnej części strony"})},dw=()=>((0,d.useEffect)(()=>{if("undefined"==typeof document)return;let e=document.body,t=document.getElementById("detectTextSpacingParagraph");if(!t)return;let a=()=>{if(!t)return;let a=window.getComputedStyle(t),i=parseFloat(a.fontSize),l=parseFloat(a.lineHeight)/i,r=parseFloat(a.letterSpacing)/i,o=parseFloat(a.wordSpacing)/i,s=n();l>1.5||r>=.12||o>=.16||s?e.classList.add("text-spacing-detected"):e.classList.remove("text-spacing-detected")},n=()=>{try{var e;if(!(null==(e=document)?void 0:e.styleSheets))return!1;for(let e of document.styleSheets)for(let t of null==e?void 0:e.cssRules)if(t instanceof CSSStyleRule&&(null==t?void 0:t.selectorText)==="*"){let e=null==t?void 0:t.style;if((null==e?void 0:e.getPropertyPriority("line-height"))==="important"&&parseFloat(null==e?void 0:e.lineHeight)>=1.5||(null==e?void 0:e.getPropertyPriority("letter-spacing"))==="important"&&parseFloat(null==e?void 0:e.letterSpacing)>=.12||(null==e?void 0:e.getPropertyPriority("word-spacing"))==="important"&&parseFloat(null==e?void 0:e.wordSpacing)>=.16)return!0}}catch(e){console.warn("Nie można odczytać arkuszy styl\xf3w")}return!1},i=new MutationObserver(()=>{a()});i.observe(e,{attributes:!0,attributeFilter:["style"]});let l=new MutationObserver(()=>{a()});return l.observe(document.head,{childList:!0,subtree:!0}),a(),()=>{i.disconnect(),l.disconnect(),e.classList.remove("text-spacing-detected")}},[]),(0,n.jsx)(es.A,{children:(0,n.jsx)("p",{id:"detectTextSpacingParagraph"})})),dA=(0,d.createContext)(null),d_=(0,d.createContext)(null),dj=c.Df.withName("PKOBPContentPage").create(()=>({main:{position:"relative"},gradientTop:{position:"absolute",top:0,left:0,right:0,height:"1088px",background:"linear-gradient(360deg, #FFFFFF 0%, #F1F7FF 100%)",zIndex:"-1",[h.Ay.breakpoints.down("md")]:{background:"none"},"& span:nth-child(1)":{width:"33.75%",position:"absolute",left:0,background:"linear-gradient(360deg, rgba(255, 255, 255, 0) 85%, rgba(177, 210, 255, 0.8) 121.79%)",mixBlendMode:"soft-light",[h.Ay.breakpoints.down("md")]:{width:"29.44%"}},"& span:nth-child(2)":{width:"37.29%",position:"absolute",left:"31.93%",background:"linear-gradient(360deg, rgba(163, 202, 255, 0) 70.64%, rgba(177, 210, 255, 0.8) 127.15%)",[h.Ay.breakpoints.down("md")]:{width:"30.83%",left:"29.44%"}},"& span:nth-child(1), & span:nth-child(2)":{height:"312px",[h.Ay.breakpoints.down("md")]:{height:"248px"}},"& span:nth-child(3)":{height:"598px",width:"25.52%",position:"absolute",left:"56.25%",background:"linear-gradient(360deg, rgba(177, 210, 255, 0) 44.98%, rgba(177, 210, 255, 0.8) 125.37%)",[h.Ay.breakpoints.down("md")]:{width:"21.5%",left:"60.27%"}},"& span:nth-child(4)":{height:"598px",width:"18.23%",position:"absolute",left:"81.77%",background:"linear-gradient(360deg, rgba(227, 239, 255, 0
1) 75%, rgba(177, 210, 255, 0.8) 114.96%)",[h.Ay.breakpoints.down("md")]:{width:"18.23%"}},"& span:nth-child(3), & span:nth-child(4)":{height:"598px",[h.Ay.breakpoints.down("md")]:{height:"476px"}}},footer:{position:"relative",paddingBottom:"80px","&::before":{content:'""',position:"absolute",right:0,bottom:0,width:"73.2%",height:160,background:"linear-gradient(180deg, rgba(204, 227, 255, 0) -46.31%, rgba(204, 227, 255, 0) 24.92%, #CCE3FF 96.16%)",pointerEvents:"none",zIndex:0,[h.Ay.breakpoints.down("md")]:{width:"71.666%",background:"linear-gradient(180deg, rgba(187, 218, 255, 0) 26.91%, rgba(187, 218, 255, 0.55) 49.99%, #BBDAFF 96.16%)"}},"&::after":{content:'""',position:"absolute",left:0,bottom:0,width:"36.3%",height:80,background:"linear-gradient(0deg, #FF2038 0%, rgba(255, 32, 56, 0.45) 25%, rgba(255, 32, 56, 0.2) 50%, rgba(255, 32, 56, 0.05) 75%, rgba(255, 255, 255, 0) 100%)",pointerEvents:"none",zIndex:1,[h.Ay.breakpoints.down("md")]:{width:"47.777%",background:"linear-gradient(0deg, #FF2038 25%, rgba(255, 32, 56, 0.548081) 50%, rgba(255, 32, 56, 0.05) 85%, rgba(248, 248, 248, 0) 100%)"}},"& > *":{position:"relative",zIndex:2}}})),dk=e=>{var t,a,o,c,h,b,f;let{data:v,domain:w,showDisclaimer:A,disclaimerData:_}=e,{classes:j}=dj(),k=(e=>((0,d.useEffect)(()=>{if(e){window.scrollTo(0,0);let e=setTimeout(()=>{"scrollRestoration"in history&&(history.scrollRestoration="auto")},1e3);return()=>clearTimeout(e)}},[e]),e)?(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:"\n    (function() {\n      if ('scrollRestoration' in history) {\n        history.scrollRestoration = 'manual';\n      }\n      \n      window.scrollTo(0, 0);\n      \n      if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', function() {\n          window.scrollTo(0, 0);\n        });\n      }\n      \n      window.addEventListener('load', function() {\n        window.scrollTo(0, 0);\n      }, { once: true });\n      \n      setTimeout(function() {\n        window.scrollTo(0, 0);\n      }, 50);\n    })();\n  "}}):null)(!!(null==v?void 0:v.disclaimer)&&!A),T=(null==v?void 0:v.meta_robots)===i.CUSTOM&&(null==v?void 0:v.meta_custom_tag)?(0,r.Ay)(v.meta_custom_tag):null,z={storage:{...null==v||null==(t=v.global_variables)?void 0:t.reduce((e,t)=>(e[t.name]=t.value,e),{})}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s(),{children:[k,(0,n.jsx)("title",{children:(null==v?void 0:v.meta_title)||"PKO BP"}),(0,n.jsx)("meta",{name:"description",content:null==v?void 0:v.meta_description}),(0,n.jsx)("meta",{name:"article:modified_time",content:null==v?void 0:v.modified_at}),(null==v?void 0:v.meta_robots)&&(null==v?void 0:v.meta_robots)!==i.CUSTOM&&(0,n.jsx)("meta",{name:"robots",content:l[null==v?void 0:v.meta_robots].toLowerCase()}),T,(null==v?void 0:v.canonical_url)&&(0,n.jsx)("link",{rel:"canonical",href:((e,t)=>{var a,n;if(!e||"/"===e)return y(t);e===t&&y(e);let i=null==e?void 0:e.replace("www.",""),l=null==t||null==(n=t.replace("www.",""))||null==(a=n.replace("https://",""))?void 0:a.replace("http://","");return(null==i?void 0:i.indexOf(l))<0?y((null==e?void 0:e[0])==="/"?t+e:t+"/"+e):y(e)})(null==v?void 0:v.canonical_url,w||(0,g.C)())}),(0,n.jsx)("script",{dangerouslySetInnerHTML:{__html:"window.pko = ".concat(JSON.stringify(z))}})]}),(0,n.jsx)(dA.Provider,{value:w,children:(0,n.jsx)(d_.Provider,{value:null==v?void 0:v.multilingualism,children:(0,n.jsx)(p.Ay,{children:(0,n.jsx)(m.A,{children:(null==v||null==(a=v.page_structure)?void 0:a.header_rendered)||(null==v||null==(o=v.page_structure)?void 0:o.structure_rendered)||(null==v||null==(c=v.page_structure)?void 0:c.footer_rendered)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(dv,{}),(null==v?void 0:v.is_only_bank_network)&&(0,n.jsx)(dy,{}),(0,n.jsx)(dw,{}),(0,n.jsx)(u.A,{structurePart:x.Y_.NAVIGATION,children:(0,n.jsx)(S,{structure:null==v||null==(h=v.page_structure)?void 0:h.header_rendered,components:dh})}),(0,n.jsx)(u.A,{structurePart:x.Y_.PAGE_CONTENT,children:(0,n.jsxs)("main",{id:"main",className:j.main,children:[!!(null==v?void 0:v.gradient_top)&&(0,n.jsxs)("div",{className:j.gradientTop,children:[(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{}),(0,n.jsx)("span",{})]}),A&&_?(0,n.jsx)(N.A,{disclaimerData:_}):(0,n.jsx)(S,{structure:null==v||null==(b=v.page_structure)?void 0:b.structure_rendered,components:dh})]})}),(0,n.jsx)(u.A,{structurePart:x.Y_.FOOTER,children:(0,n.jsx)("footer",{id:"footer",className:(null==v?void 0:v.gradient_bottom)?j.footer:void 0,children:(0,n.jsx)(S,{structure:null==v||null==(f=v.page_structure)?void 0:f.footer_rendered,components:dh})})}),(0,n.jsx)(C,{})]}):(0,n.jsx)(dx,{})})})})})]})}},3750:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>I});var n=a(26514),i=a(70504),l=function(e){return e["FIRST_TWO/SECOND_THREE"]="2/3",e["FIRST_ONE_TWO_HALVES/SECOND_THREE"]="1/05/3",e["FIRST_ONE/SECOND_THREE"]="1/3",e["FIRST_THREE/SECOND_THREE"]="3/3",e}({}),r=a(46225),o=a(75834),s=a(93794),d=a(98938),c=a(74867),p=a(54004),u=a(13436),m=a(6395),h=a(52597),x=a(16752),g=a(2991),y=a(81132);let b=s.Df.withName("PKOBPProductsFiltersButtons").create(()=>({container:{display:"flex",gap:"8px",margin:"20px auto 30px auto",flexWrap:"wrap",justifyContent:"center",[p.Ay.breakpoints.down("sm")]:{margin:"0 0 16px 0"}},pill:{padding:"13px 20px"}})),f=e=>{let{filters:t,activeFilter:a,setActiveFilter:i,cy:l,ariaPrefix:r}=e,{classes:s}=b(),c=(0,m.A)(p.Ay.breakpoints.down("md")),[u,f]=(0,o.useState)(!1),v=(0,o.useRef)();(0,o.useEffect)(()=>
1{if((null==v?void 0:v.current)&&u){let e=A(a),t=v.current.querySelectorAll("button[role=tab]");t[e]&&t[e].focus()}},[u,a]);let w=e=>{let n=A(a);"ArrowLeft"===e.key?n>0&&(i(_(n-1)),f(!0)):"ArrowRight"===e.key&&n<t.length-1&&(i(_(n+1)),f(!0))},A=e=>null==t?void 0:t.findIndex(t=>t.key===e),_=e=>t[e].key;return(0,n.jsx)(d.A,{className:s.container,role:"tablist","aria-labelledby":"".concat(r,"-title"),ref:v,children:c?(0,n.jsx)(x.A,{cy:l,activeFilter:a,filters:t,setActiveFilter:i}):t.map(e=>{let{key:t,filter_name:o,id:d}=e;return(0,n.jsx)(h.A,{classname:s.pill,label:o,isActive:t===a,cy:l,handleClickCallback:()=>i(t),id:(0,y.bJ)(r,g.JH.BUTTON,d),role:"tab",ariaSelected:t===a,ariaControls:(0,y.bJ)(r,"tabpanel",t),tabIndex:t===a?0:-1,onKeyDown:w},t)})})};var v=a(34453),w=a(42920);let A=s.Df.withName("PKOBPProductsFiltersHead").create(()=>({container:{marginTop:"67px",marginBottom:"117px"},title:{...p.Ay.typography.h1,marginTop:0,marginBottom:"15px"},supertitle:{textTransform:"none",marginBottom:"20px",[p.Ay.breakpoints.down("md")]:{marginBottom:"15px"}},subtitle:{marginTop:0,marginBottom:0,[p.Ay.breakpoints.down("md")]:{fontSize:"14px"}}})),_=e=>{let{title:t,supertitle:a,subtitle:i,cy:l,ariaPrefix:r}=e,{classes:o}=A();return(0,n.jsxs)(d.A,{children:[a&&(0,n.jsx)(w.A,{variant:"subtitle1",align:"center",className:o.supertitle,dangerouslySetInnerHTML:{__html:a},"data-cy":"".concat(l,"--title")}),(null==t?void 0:t.text)&&(0,n.jsx)(w.A,{variant:(0,v.a)(null==t?void 0:t.hx),align:"center",className:o.title,dangerouslySetInnerHTML:{__html:null==t?void 0:t.text},"data-cy":"".concat(l,"--subtitle"),id:"".concat(r,"-title"),size:null==t?void 0:t.size}),i&&(0,n.jsx)(w.A,{variant:"body3",align:"center",className:o.subtitle,dangerouslySetInnerHTML:{__html:i}})]})};var j=a(2058),k=a(43371),C=a(10942);let N={[p.Ay.breakpoints.down("md")]:{minHeight:"unset",height:"auto",padding:"16px 12px 16px 16px !important"}},S={width:"95px !important",height:"auto !important",margin:"0 0 0 4px"},T=s.Df.withName("PKOBPProductsFiltersProducts").create(()=>({container:{display:"grid",gridTemplateColumns:"repeat(12, 1fr)",gap:"30px",[p.Ay.breakpoints.down("md")]:{display:"flex",flexDirection:"column",gap:"16px"}},container__hidden:{...k.$},container__isFlexCentered:{[p.Ay.breakpoints.up("md")]:{display:"flex",alignItems:"stretch",justifyContent:"center",flexWrap:"wrap"}},productWrapper:{gridColumn:"span 4",gridRow:"span 2",minHeight:"280px",["& .imageContainer .".concat(j.KR," span, & .imageContainer")]:{width:"326px !important",height:"128px !important",margin:"0px auto 0px auto",[p.Ay.breakpoints.down("md")]:{...S,width:"140px !important"},[p.Ay.breakpoints.down("sm")]:{...S}},[p.Ay.breakpoints.down("md")]:{gridColumn:"span 1",gridRow:"span 1",minHeight:"unset","& a":{...N}}},productWrapper__isFlexCentered:{[p.Ay.breakpoints.up("md")]:{width:"calc(33.3333333% - 20px)"}},productWrapper__fullColumn:{gridColumn:"span 12",minHeight:"340px",["& .imageContainer .".concat(j.KR," span, & .imageContainer")]:{width:"300px !important",height:"300px !important",[p.Ay.breakpoints.down("md")]:{...S,width:"140px !important"},[p.Ay.breakpoints.down("sm")]:{...S}},"& a":{height:"340px",minHeight:"340px",...N,[p.Ay.breakpoints.up("md")]:{padding:"47px 32px"}},[p.Ay.breakpoints.down("md")]:{minHeight:"unset"}},productWrapper__halfColumn:{gridColumn:"span 6",minHeight:"340px",["& .imageContainer .".concat(j.KR," span, & .imageContainer")]:{width:"276px !important",height:"276px !important",[p.Ay.breakpoints.down("lg")]:{width:"220px !important",height:"220px !important"},[p.Ay.breakpoints.down("md")]:{...S,width:"140px !important"},[p.Ay.breakpoints.down("sm")]:{...S}},"& a":{height:"340px",minHeight:"340px",...N,[p.Ay.breakpoints.up("md")]:{padding:"32px"},[p.Ay.breakpoints.down("lg")]:{height:"100%",minHeight:"unset"}},[p.Ay.breakpoints.down("lg")]:{minHeight:"unset"}},productWrapper__sevenTwelfthColumn:{gridColumn:"span 7",minHeight:"454px",["& .imageContainer .".concat(j.KR," span, & .imageContainer")]:{width:"405px !important",height:"405px !important",flexBasis:"405px",flexShrink:"1 !important",[p.Ay.breakpoints.down("lg")]:{flexBasis:"360px"},[p.Ay.breakpoints.up("md")]:{marginRight:"-22px",marginLeft:0},[p.Ay.breakpoints.down("md")]:{...S,width:"140px !important",flexBasis:"unset"},[p.Ay.breakpoints.down("sm")]:{...S}},"& .typographyContainer":{flex:1},"& a":{height:"454px",minHeight:"454px",...N,[p.Ay.breakpoints.up("md")]:{padding:"47px 32px"}},[p.Ay.breakpoints.down("md")]:{minHeight:"unset"}},productWrapper__fiveTwelfthColumn:{gridColumn:"span 5",gridRow:"span 1",minHeight:"212px",["& .imageContainer .".concat(j.KR," span, & .imageContainer")]:{width:"180px !important",height:"180px !important",[p.Ay.breakpoints.up("md")]:{marginRight:"-20px"},[p.Ay.breakpoints.down("md")]:{...S},[p.Ay.breakpoints.down("lg")]:{width:"120px !important",height:"120px !important"},[p.Ay.breakpoints.down("sm")]:{...S}},"& a":{padding:"31px",...N,height:"212px",minHeight:"212px",[p.Ay.breakpoints.down("sm")]:{height:"auto"}},[p.Ay.breakpoints.down("md")]:{minHeight:"unset"}}})),z=e=>{let{products:t,filterKey:a,filterName:i,activeFilter:r,activeDisplayVariant:o,ariaPrefix:s,id:u,isContainerFlexCentered:h,productsForWysiwyg:x}=e,{classes:b,cx:f}=T(),A=(0,m.A)(p.Ay.breakpoints.down("md")),_=e=>{switch("".concat(o,"_").concat(e+1)){case"".concat(l["FIRST_ONE/SECOND_THREE"],"_1"):return b.productWrapper__fullColumn;case"".concat(l["FIRST_TWO/SECOND_THREE"],"_1"):case"".concat(l["FIRST_TWO/SECOND_THREE"],"_2"):return b.productWrapper__halfColumn;case"".concat(l["FIRST_ONE_TWO_HALVES/SECOND_THREE"],"_1"):return b.productWrapper__sevenTwelfthColumn;case"".concat(l["FIRST_ONE_TWO_HALVES/SECOND_THREE"],"_2"):case"".concat(l["FIRST_ONE_TWO_HALVES/SECOND_THREE"],"_3"):return b.productWrapper__fiveTwelfthColumn;default:return null}},j=(0,v.D)((0,c.Vr)(),1);return(0,n.jsxs)(d.A,{role:"tabpanel","aria-labelledby":(0,y.bJ)(s,g.JH.BUTTON,u),id:(0,y.bJ)(s,"tabpanel",a),children:[(0,n.jsx)(k.A,{children:(0,n.jsx)(w.A,{variant:(0,v.a)(j),children:i})}),(0,n.jsx)(d.A,{className:f(b.container,{[b.container__hidden]:r!==a,[b.container__isFlexCentered]:h}),children:t.map((e,t)=>(0,n.jsx)(d.A,{className:f(b.productWrapper,{[b.productWrapper__isFlexCentered]:h},_(t)),children:(0,n.jsx)(C.A,{...e,size:null,isShort:!_(t),isPhotoOnTheLeft:!A&&_(t)===b.productWrapper__fullColumn,isBiggerHeader:(e=>{let t=_(e);return t&&(t===b.productWrapper__sevenTwelfthColumn||t===b.productWrapper__fullColumn)})(t),isMediumHeader:(e=>{let t=_(e);return t&&t===b.productWrapper__halfColumn})(t),isProductFilters:!0,isHidden:r!==a,productsForWysiwyg:x})},e.key))})]})},L="ProductsFilters",P=s.Df.withName("PKOBPProductsFilters").create(()=>({container:{marginTop:"5px",display:"flex",flexDirection:"column"},supertitle:{textTransform:"none"},title:{...p.Ay.typography.h2,fontSize:"42px"}})),I=e=>{var t;let{withUrlParams:a=!0,isContainerFlexCentered:s,...p}=e,m=(0,o.useContext)(u.G),{classes:h}=P(),[x,g]=(0,o.useState)(null),[y,b]=(0,o.useState)(l["FIRST_THREE/SECOND_THREE"]),{title:v,subt
1itle:w,supertitle:A,filters:j}=p,k=(0,o.useContext)(i.zp),C=(0,r.useRouter)(),N=x||(null==(t=j[0])?void 0:t.key);return(0,o.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("filter"),t=null==j?void 0:j.find(t=>t.index===+e);t&&g(t.key)},[j]),(0,o.useEffect)(()=>{var e;b((null==(e=j.filter(e=>{let{key:t}=e;return t===N})[0])?void 0:e.display_variant)||l["FIRST_THREE/SECOND_THREE"])},[N,j]),(0,n.jsx)(c.R1,{mainHx:v.hx,children:(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(d.A,{className:h.container,id:m,children:[(0,n.jsx)(_,{title:v,subtitle:w,supertitle:A,cy:L,ariaPrefix:m}),(0,n.jsx)(f,{filters:j,cy:L,activeFilter:N,setActiveFilter:e=>{g(e);let t=null==j?void 0:j.find(t=>t.key===e);t&&!k&&a&&C.replace({...C,query:{...C.query,filter:t.index}},void 0,{shallow:!0})},ariaPrefix:m}),j.map(e=>(0,n.jsx)(z,{id:e.id,products:e.positions,filterKey:e.key,filterName:e.filter_name,activeFilter:N,activeDisplayVariant:y,ariaPrefix:m,isContainerFlexCentered:s,productsForWysiwyg:null==e?void 0:e.product_for_wysiwyg_rendered},e.key))]})})})}},4454:()=>{},6271:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",children:[(0,n.jsx)("rect",{width:"32",height:"32",fill:"currentColor",opacity:"0"}),(0,n.jsxs)("g",{"data-name":"Group 14784",transform:"translate(-1523 -255)",children:[(0,n.jsx)("path",{"data-name":"Path 16519",d:"M92,6V5H90V6H80V5H78V6H73V26H97V6ZM78,8V9h2V8H90V9h2V8h3v3H75V8Zm-3,5H95V24H75Zm3,2h2v2H78Zm4,0h2v2H82Zm4,0h2v2H86Zm4,0h2v2H90ZM78,19h2v2H78Zm4,0h2v2H82Zm4,0h2v2H86Z",transform:"translate(1454 255)",fill:"currentColor"}),(0,n.jsx)("rect",{"data-name":"Rectangle 5989",width:"32",height:"32",transform:"translate(1523 255)",fill:"none"})]})]})},9079:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(26514);a(75834);var i=a(54907),l=a(25525),r=a(2991),o=a(23752);let s=e=>{var t;let{children:a,...s}=e,{marginTop:d=0,marginBottom:c=0}=s,p=null==a||null==(t=a.props)?void 0:t.structure,u=p&&!!(null==p?void 0:p.length)&&p.find(e=>(null==e?void 0:e.type)==="menu");return(0,n.jsx)(l.A,{layoutUuid:(null==s?void 0:s.uuid)||"",layoutType:r.tX.FULL,children:(0,n.jsx)(i.A,{pt:d,pb:c,component:u?"header":"section",children:(0,n.jsx)(o.A,{fullWidth:!0,children:a})})})}},10942:(e,t,a)=>{"use strict";a.d(t,{A:()=>T});var n=a(26514),i=a(69001),l=a.n(i),r=a(70504),o=a(23469),s=a.n(o),d=a(75834),c=a(93794),p=a(54907),u=a(6395),m=a(22965),h=a(74867),x=a(2058),g=a(38291),y=a(54004),b=a(2991),f=a(81132),v=a(34453),w=a(78892),A=a(33872),_=a(99090),j=a(13436),k=a(42920);let C=s()(()=>a.e(4278).then(a.bind(a,21897)),{loadableGenerated:{webpack:()=>[21897]}}),N=s()(()=>Promise.all([a.e(616),a.e(449),a.e(7208)]).then(a.bind(a,80449)),{loadableGenerated:{webpack:()=>[80449]}}),S=c.Df.withName("PKOBPProductItem").withNestedSelectors().create(e=>{let{classes:t,labelColor:a,borderColor:n}=e;return{itemContainer:{[y.Ay.breakpoints.down("md")]:{"&:not(:last-of-type)":{marginBottom:"16px"},flexGrow:0,maxWidth:"100%",flexBasis:"100%",flexShrink:0},"& img":{objectFit:"contain"}},itemContainer__productFilters:{height:"100%",padding:"0"},card:{display:"flex !important",width:"100%",height:"100%",position:"relative",boxShadow:"0px 3px 12px #0000661A",borderRadius:"12px",borderColor:y.Ay.palette.secondary.main,[y.Ay.breakpoints.up("md")]:{boxShadow:y.Ay.palette.shadows.basic.normal,borderRadius:"16px"},".text-spacing-detected &":{[y.Ay.breakpoints.up("md")]:{display:"block",paddingTop:"40px",height:"auto"}}},card__short:{justifyContent:"center",minHeight:"320px",height:"100%",[y.Ay.breakpoints.up("md")]:{padding:"70px 25px 40px 25px",minHeight:"300px"},[y.Ay.breakpoints.up("lg")]:{padding:"52px 25px 40px 25px"}},card__long:{justifyContent:"space-between",padding:"16px 12px 16px 16px",height:"100%",[y.Ay.breakpoints.up("md")]:{padding:"27px 32px",minHeight:"300px"},["& .".concat(t.title)]:{marginTop:"0 !important"}},card__isBordered:{borderColor:n+" !important",[y.Ay.breakpoints.up("md")]:{borderRadius:"12px"},"&:hover":{borderColor:n}},card__isLink:{cursor:"pointer",[y.Ay.breakpoints.up("md")]:{"&:hover":{boxShadow:y.Ay.palette.shadows.basic.hover}}},cardInner:{"& .imageContainer":{["& .".concat(x.$F)]:{[y.Ay.breakpoints.down("md")]:{width:"100%",height:"fit-content",maxHeight:"100%"}
1,[y.Ay.breakpoints.up("md")]:{height:"100%",maxWidth:"100%"}},["& .".concat(x.KR)]:{height:"100%"}}},cardInner__short:{maxWidth:"100%","& .imageContainer":{maxWidth:"100%",height:"112px",textAlign:"center",margin:"0 auto 17px auto",["& .".concat(x.KR," img")]:{maxWidth:"100%",height:"112px !important"}},"& .typographyContainer":{textAlign:"center"}},hasMasking:{"& .imageContainer":{["& .".concat(x.KR," img")]:{width:"auto",minWidth:"auto"}}},cardInner__long:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between","& .imageContainer":{display:"flex",alignItems:"center",order:2,flexShrink:0,width:"92px",height:"96px",marginLeft:"5px",[y.Ay.breakpoints.up("md")]:{width:"224px",height:"224px"}},"& .typographyContainer":{order:1,paddingRight:"4px",[y.Ay.breakpoints.up("md")]:{display:"flex",flexDirection:"column",paddingRight:"16px"}},"& .typographyContainer__paddingTop":{paddingTop:"10px"}},cardInner__hasLabel:{"& .typographyContainer":{[y.Ay.breakpoints.up("md")]:{paddingRight:"10px"}}},cardInner__isPhotoOnTheLeft:{justifyContent:"flex-start","& .imageContainer":{order:1,marginLeft:"0",marginRight:"80px"},"& .typographyContainer":{order:2,position:"relative",height:"100%",[y.Ay.breakpoints.up("md")]:{paddingTop:"49px",paddingBottom:"49px",justifyContent:"center"},"& > span":{top:"0",left:"0",marginBottom:"32px",alignSelf:"start"}}},title:{...y.Ay.typography.h6,margin:0,marginBottom:"8px",[y.Ay.breakpoints.up("md")]:{marginTop:"19px",marginBottom:"13px"}},title__big:{[y.Ay.breakpoints.up("md")]:{fontSize:"32px",fontWeight:600,lineHeight:1.25,marginBottom:"27px"}},title__medium:{[y.Ay.breakpoints.up("md")]:{fontSize:"24px",fontWeight:600,lineHeight:32/24,marginBottom:"24px"}},title__withRrso:{marginBottom:0},rrso:{marginTop:0},desc:{"& *":{fontSize:"14px !important"},...y.Ay.typography.body1,fontWeight:300,fontSize:"14px !important",lineHeight:"20px !important",margin:0,"& p:first-child":{marginTop:0},"& p:last-child":{marginBottom:0}},label:{fontSize:"14px",lineHeight:1,padding:"3px 6px",margin:0,borderRadius:"4px",backgroundColor:a,color:"#CBD6E6"===a||"#FFC787"===a?y.Ay.palette.text.primary:y.Ay.palette.common.white,[y.Ay.breakpoints.down("lg")]:{display:"inline-block",marginBottom:"12px"},[y.Ay.breakpoints.up("lg")]:{position:"absolute",top:"32px",left:"32px"},".text-spacing-detected &":{[y.Ay.breakpoints.up("lg")]:{position:"static"}}}}}),T=e=>{let{id:t,size:a,color:i,is_bordered:o,title:s,rrso:c,description:T,label:z,image:L,link:P,modal_rendered:I,lead_rendered:E,isShort:O=!1,isPhotoOnTheLeft:B=!1,isBiggerHeader:F,isMediumHeader:D,isProductFilters:R=!1,isHidden:M=!1,productsForWysiwyg:H}=e,W=(0,d.useContext)(r.zp),{classes:U,cx:G}=S({labelColor:i,borderColor:i}),K=(0,u.A)(y.Ay.breakpoints.down("lg")),V=(0,u.A)(y.Ay.breakpoints.down("md")),Y=(0,d.useContext)(j.G),Z=(0,f.bJ)(Y,b.YU.PRODUCT_ITEM,t),[q,X]=(0,d.useState)(!1),[$,J]=(0,d.useState)(!1),Q=()=>{if(V)return"long";if(O)return"short";switch(a){case"1/3":case"1/4":return"short";default:return"long"}},ee=!(null==P?void 0:P.href)&&I,et=!(null==P?void 0:P.href)&&E,ea=(0,v.D)((0,h.Vr)()||null,R?2:1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.A,{item:!0,xs:12,md:(()=>{switch(a){case"1/3":return 4;case"2/3":return 8;case"1/4":return 3;case"2/4":return 6;case"3/4":return 9;default:return 12}})(),className:G(U.itemContainer,{[U.itemContainer__productFilters]:R}),...!R?{role:"listitem"}:{},children:(0,n.jsx)(m.default,{additionalStyles:G(U.card,U["card__".concat(Q())],{[U.card__isBordered]:!!o,[U.card__isLink]:!!(null==P?void 0:P.href)||!!I||!!E,[U.hasMasking]:!!L.masking&&1!==L.masking}),...o?{border:i}:{},link:ee?{onClick:()=>X(!0),target:"_self",role:"button",tabIndex:0,onKeyDown:e=>X("Enter"===e.key||" "===e.key)}:et?{onClick:()=>J(!0),target:"_self",role:"button",tabIndex:0,onKeyDown:e=>J("Enter"===e.key||" "===e.key)}:(null==P?void 0:P.href)?(0,A.zf)({link:P,isWorkspace:W}):{},wcagPrefixById:"product-".concat(t),ariaDescribedby:"product-desc-".concat(t),cy:"ProductItem",idGTM:Z,wcagPrefix:null==P?void 0:P.aria_label,disableHref:M,children:(0,n.jsxs)(n.Fragment,{children:[z&&!K&&!B&&(0,n.jsx)(k.A,{className:U.label,children:z}),(0,n.jsxs)(p.A,{className:l()(U.cardInner,U["cardInner__".concat(Q())],{[U.c
1ardInner__isPhotoOnTheLeft]:B},{[U.cardInner__hasLabel]:!!z&&"long"===Q()}),children:[(null==L?void 0:L.file_path_url)&&(0,n.jsx)(p.A,{className:"imageContainer",children:(0,n.jsx)(x.Ay,{src:L.file_path_url,title:L.filename,alt:L.alt,loading:L.loading||"lazy",...(0,w.w)(L),masking:L.masking,margins:L.margins})}),(0,n.jsxs)(p.A,{className:l()("typographyContainer",{typographyContainer__paddingTop:!!z&&!F}),children:[z&&(K||B)&&(0,n.jsx)(k.A,{className:U.label,children:z}),(0,n.jsx)(k.A,{id:"product-".concat(t),variant:(0,v.a)(ea),className:l()(U.title,{[U.title__big]:F,[U.title__medium]:D,[U.title__withRrso]:!!c}),dangerouslySetInnerHTML:{__html:K?(e=>null==e?void 0:e.replace(/&nbsp;|&#160;|&#xA0;|\u00A0/gi," "))(s):s}}),c&&(0,n.jsx)(k.A,{variant:"body1",className:l()(U.title,U.rrso,{[U.title__big]:F,[U.title__medium]:D}),dangerouslySetInnerHTML:{__html:c}}),(0,n.jsx)(g.default,{content:T,className:U.desc,products:H,idIfIsNotSnippet:"product-desc-".concat(t)})]})]})]})})}),et&&(0,n.jsx)(N,{lead:E,isOpen:$,onClose:()=>J(!1)}),ee&&(0,n.jsx)(C,{isOpen:q,handleCloseModal:()=>X(!1),modalRendered:I})]})}},16752:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(26514),i=a(75834),l=a(93794),r=a(76319),o=a(80824),s=a(60719),d=a(29009),c=a(64695),p=a(11987),u=a(18123),m=a(42069),h=a(6395),x=a(54004),g=a(96587);let y=l.Df.withName("PKOBPSelectWithMobileDrawer").create(()=>({selectContainer:{minWidth:"328px",[x.Ay.breakpoints.down("sm")]:{minWidth:"100%"},"& .MuiOutlinedInput-root":{borderRadius:"8px",borderColor:x.Ay.palette.secondary.bordersDark},"& .MuiOutlinedInput-input":{[x.Ay.breakpoints.down("md")]:{padding:"11px 14px",fontSize:"16px",color:x.Ay.palette.text.primary,fontFamily:x.Ay.typography.fontFamily}},"& .Mui-focused .MuiOutlinedInput-notchedOutline":{borderWidth:"1px",borderColor:x.Ay.palette.secondary.bordersDark},"& .MuiSelect-icon":{top:"50%",right:"18px",transform:"translateY(-50%)",color:x.Ay.palette.primary.main,strokeWidth:"0.5px",zIndex:1},"& .MuiSelect-iconOpen":{transform:"translateY(-50%) rotate(180deg)"}},drawerList:{padding:0},drawerListButton:{padding:"16px 12px",borderRadius:"8px","&:hover":{backgroundColor:"#E8F2FA"},"&.Mui-focusVisible":{background:x.Ay.palette.secondary.backgroundBlue},"&.Mui-selected":{background:x.Ay.palette.secondary.backgroundBlue,"&:hover":{background:x.Ay.palette.secondary.backgroundBlue}},"&.Mui-focusVisible.Mui-selected":{background:x.Ay.palette.secondary.backgroundBlue},"&.Mui-selected .MuiListItemText-primary":{fontWeight:700}},drawerListText:{margin:0,"& .MuiListItemText-primary":{lineHeight:1,fontSize:"16px",fontFamily:x.Ay.typography.fontFamily}}})),b=e=>{let{filters:t,activeFilter:a,setActiveFilter:l,cy:b}=e,{classes:f}=y(),[v,w]=(0,i.useState)(!1),A=(0,h.A)(x.Ay.breakpoints.down("md"));return(0,n.jsxs)(o.A,{className:f.selectContainer,fullWidth:!0,children:[(0,n.jsx)(s.A,{id:"filter-name-select",value:a,onChange:e=>{var t;return l(null==e||null==(t=e.target)?void 0:t.value)},IconComponent:r.t,"data-cy":"".concat(b,"--filterSelect"),onClick:()=>A?w(!0):null,inputProps:{readOnly:A},children:t.map(e=>{let{key:t,filter_name:a}=e;return(0,n.jsx)(d.A,{value:t,children:a},t)})}),A&&(0,n.jsx)(g.default,{isDrawerOpen:v,handleCloseDrawer:()=>w(null),withoutHeaderBox:!0,children:(0,n.jsx)(c.A,{className:f.drawerList,children:t.map(e=>{let{key:t,filter_name:i}=e;return(0,n.jsx)(p.Ay,{disablePadding:!0,children:(0,n.jsx)(u.A,{className:f.drawerListButton,selected:a===t,onClick:()=>{l(t),w(!1)},children:(0,n.jsx)(m.A,{primary:i,className:f.drawerListText})})},t)})})})]})}},16755:(e,t,a)=>{"use strict";a.d(t,{A:()=>r});var n=a(68041),i=a(28519);let l=(0,i.A)({palette:{primary:{main:"#000066"},secondary:{main:"#EA1636"},tertiary:{main:"#ea1636"},error:{main:"#c83333",light:"#edb8b8"},success:{light:"#e4ffec",main:"#00a033",dark:"#008029"},focus:{light:"#77d9ff",main:"#00b7ff"},highlight:{light:"#e2f5ff",main:"#c8eeff",dark:"#b1e3ff"},grayscale:{black:"#000",darker:"#333",dark:"#666",medium:"#999",light:"#bbb",lighter:"#ddd",lightest:"#f1f1f1",white:"#fff"},transparentize:{white03:"rgba(255,255,255,0.3)",white05:"rgba(255,255,255,0.5)",white07:"rgba(255,255,255,0.7)",black03:"rgba(0,0,0,0.3)",black05:"rgba(0,0,0,0.5)",black07:"rgba(0,0,0,0.7)"}},typography:{htmlFontSize:14,fontSize:12,fontFamily:"pkobp,sans-serif"},shape:{borderRadius:3},spacing:8,zIndex:{alert:2050,searchContainer:1300,mobileDropdownMenu:1200,drawerResizer:1e3,overlay:1009,appbarBlue:1051,belowAppBarBlue:900,imagePreview:2}},n.$N),r=l=(0,i.A)(l,{components:{MuiCssBaseline:{styleOverrides:{"@global":{body:{backgroundColor:l.palette.common.white}}}},MuiButton:{defaultProps:{disableRipple:!0,variant:"contained",color:"primary"},styleOverrides:{root:{textTransform:"none"},fullWidth:{maxWidth:"300px"}}},MuiCheckbox:{defaultProps:{disableRipple:!0}},MuiTextField:{defaultProps:{size:"small",fullWidth:!0,InputLabelProps:{shrink:!0},margin:"dense"},styleOverrides:{root:{"& input, & textarea":{background:"rgba(255,255,255,0.7)"}}}},MuiSelect:{defaultProps:{variant:"outlined"},styleOverrides:{select:{padding:"8px 16px",color:l.palette.common.black,background:"rgba(255,255,255,0.7)"}}},MuiPaper:{defaultProps:{elevation:12}},MuiCard:{defaultProps:{elevation:12}},MuiTable:{defaultProps:{size:"small"},styleOverrides:{root:{minWidth:"600px"}}},MuiTablePagination:{styleOverrides:{toolbar:{[l.breakpoints.down("md")]:{justifyContent:"center",flexWrap:"wrap","& > p, & > div":{marginLeft:5,marginRight:5}}}}},MuiTableCell:{styleOverrides:{head:{color:"#666"}}},MuiDropzoneArea:{styleOverrides:{root:{borderWidth:"1px"},text:{fontSize:"1rem"}}},MuiTooltip:{defaultProps:{disableInteractive:!0,PopperProps:{"data-cy":"Tooltip-popper"}},styleOverrides:{tooltip:{top:"-8px"}}},MuiAccordion:{styleOverrides:{root:{boxShadow:"none"}}}
1,MuiLink:{styleOverrides:{root:{cursor:"pointer",wordBreak:"break-word"}}},MuiTypography:{styleOverrides:{root:{wordBreak:"break-word"}}}}})},17587:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{transform:"translate(12 12)",children:[(0,n.jsx)("rect",{width:"24",height:"24",transform:"translate(-12 -12)",fill:"#000066",opacity:"0"}),(0,n.jsx)("path",{d:"M9828,4342.5l3.5-3.5a1.1,1.1,0,0,1,0,1.5l-1.5,1.5h14v1h-14l1.5,1.5a1.1,1.1,0,0,1,0,1.5Zm12.5-7,1.5-1.5h-14v-1h14l-1.5-1.5a1.1,1.1,0,0,1,0-1.5l3.5,3.5-3.5,3.5A1.1,1.1,0,0,1,9840.5,4335.5Z",transform:"translate(-9836 -4338)",fill:"#000066"})]})})},19957:(e,t,a)=>{"use strict";a.d(t,{Y:()=>n});let n=(e,t)=>e?"string"==typeof e?new Date(e.replaceAll(/[.-]/g,"/")).toLocaleDateString("pl-PL"):new Date(e).toLocaleDateString("pl-PL",{year:t||"numeric",month:"numeric",day:"numeric"}):null},20285:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsxs)("svg",{"aria-hidden":!0,xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:[(0,n.jsx)("rect",{width:"96",height:"96",fill:"inherit",opacity:"0.002"}),(0,n.jsxs)("g",{transform:"translate(16 16)",children:[(0,n.jsx)("path",{"data-name":"Path 2069",d:"M-132.994,156.945a28.174,28.174,0,0,1,.744,5.908l4-.076a31.512,31.512,0,0,0-.452-4.788h0l0-.028h0l0-.024v0l0-.024h0l0-.024v0l0-.024v0l0-.02v0l0-.024v0l0-.02v0l0-.024,0,0,0-.024v0l0-.024h0l-.032-.184,0,0,0-.024v0l0-.02v0l0-.024v0l0-.02,0-.008,0-.016v-.008l0-.02v-.008l0-.016v-.008l0-.02,0-.008,0-.016v-.008l0-.02v-.008l0-.016v-.012l0-.016,0-.008,0-.02v-.008l0-.02v0l-.008-.024h0l-.012-.08,0,0,0-.024V157l0-.016,0-.008v-.02l0-.008,0-.016v-.008l0-.016,0-.012,0-.016v-.012l0-.012v-.012l0-.016,0-.012,0-.012v-.012l0-.016v-.012l0-.012,0-.012,0-.016v-.012l0-.012,0-.012v-.016l0-.012,0-.016v-.008l0-.02,0,0,0-.02v-.008l0-.024h0l0-.028v0l0-.02,0-.012,0-.016v-.008l0-.016,0-.012,0-.016v-.008l0-.016,0-.012,0-.016v-.008l0-.016,0-.012,0-.016v-.008l0-.016,0-.012v-.016l0-.008,0-.016v-.012l0-.016,0-.008,0-.016,0-.012v-.012l0-.012,0-.016,0-.012v-.016l0-.008,0-.016v-.012l-.008-.02v0l-.008-.028,0-.02V156l0-.016,0-.008,0-.02v-.008l0-.016,0-.008,0-.02h0l0-.024,0-.008,0-.016v0l0-.024,0,0,0-.016V155.8l0-.016,0-.008,0-.02v-.008l0-.016,0-.008,0-.02,0-.008v-.016l0-.008,0-.012v-.012l-.008-.016v-.012l0-.012,0-.008,0-.016v-.012l0-.016,0-.008,0-.016v-.008l-.008-.02V155.5l0-.016v-.008l-.008-.02h0l0-.024,0,0,0-.02v0l-.008-.024h0l0-.024h0c-.04-.16-.084-.316-.128-.472l-3.856,1.056C-133.158,156.269-133.074,156.6-132.994,156.945Z",transform:"translate(192.25 -131.357)",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 2070",d:"M-132.091,151.442l-2.872,2.78a27.876,27.876,0,0,1,4.184,5.58l3.476-1.98A31.688,31.688,0,0,0-132.091,151.442Z",transform:"translate(187.111 -141.674)",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 2071",d:"M-133.8,165.148l3.544,1.856a32.129,32.129,0,0,0,2.8-7.472l-3.892-.924A28.042,28.042,0,0,1-133.8,165.148Z",transform:"translate(190.609 -120.176)",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 2072",d:"M-96.868,201.388c-.588.552-1.2,1.072-1.836,1.572-.092.076-.192.148-.288.224a27.987,27.987,0,0,1-8.424,4.436c-.468.152-.936.288-1.412.412-.38.1-.76.2-1.144.288a28.39,28.39,0,0,1-3.408.552c-.864.08-1.736.128-2.62.128a28.116,28.116,0,0,1-5.028-.476c-.72-.132-1.432-.3-2.136-.488-.312-.08-.628-.148-.932-.24a28.617,28.617,0,0,1-2.936-1.068,28.034,28.034,0,0,1-6.52-3.944c-.508-.408-.984-.848-1.46-1.288-.568-.524-1.108-1.072-1.628-1.644-.38-.412-.756-.82-1.112-1.256a28.075,28.075,0,0,1-3.976-6.564,28.581,28.581,0,0,1-1.412-4.272c-.068-.26-.144-.516-.2-.78s-.108-.52-.156-.78a27.882,27.882,0,0,1-.5-5.2c0-.924.052-1.836.14-2.74a27.9,27.9,0,0,1,.468-3.04c.064-.3.156-.592.228-.888.184-.744.388-1.484.632-2.212A27.812,27.812,0,0,1-139,165.068c.492-.708,1.016-1.4,1.568-2.056.324-.384.668-.744,1.008-1.108.36-.384.724-.76,1.1-1.124a27.962,27.962,0,0,1,7.18-4.972c.616-.3,1.24-.584,1.884-.836.344-.14.7-.264,1.052-.388.72-.248,1.456-.472,2.2-.664.6-.152,1.2-.3,1.816-.42.92-.172,1.848-.3,2.78-.38.412-.032.828-.044,1.244-.06.884-.04,1.764-.076,2.644-.028l.208-4h-.032l-.028,0h-.064l-.028,0h-.032l-.06,0h-.032l-.092,0h-.032v0l-.12,0c-.388-.012-.784.028-1.172.028V149c-.468,0-.924.052-1.388.072-.5.02-1,.028-1.5.072q-1.584.144-3.12.44c-.084.016-.172.016-.256.036v0c-.36.068-.7.168-1.056.252l-.008-.024-.028,0-.008,0-.02,0h-.012l-.02.008h-.008l-.024.008h0l-.028.008h-.008l-.02,0-.012,0-.02,0-.008,0-.024,0h0l-.028.008-.008,0-.02,0-.012,0-.02,0h-.008l-.02.008h-.012l-.028.008h0l-.024.008h-.008l-.02,0-.008,0-.02,0-.012,0-.028.008h0l-.024,0-.008,0-.02,0-.008,0-.02,0-.012,0-.024,0,0,0-.028,0-.008,0-.02,0-.008,0-.02,0-.012,0-.02,0-.008,0-.028,0-.008,0-.02,0-.008,0-.02,0-.012,0-.016,0-.012,0-.024.008h-.012l-.016,0-.016,0-.012,0-.016,0-.016,0-.012,0-.02.008-.016,0-.016,0-.012,0-.016,0-.016,0-.012,0h-.016l-.016.008-.02,0-.016,0-.012,0-.016,0-.012,0-.016,0-.012,0-.016,0-.02.008-.02,0-.012,0-.012,0-.016,0-.016,0-.012,0-.012,0-.024,0-.016,0-.016,0-.012,0-.016,0-.012,0-.016,0-.012,0-.016,0-.008,0-.028.008-.016,0-.016,0-.012,0-.012,0-.012,0-.02,0,0,0-.04.012h0l-.02,0-.008,0-.016,0-.012,0-.016,0-.008,0-.04.012h0l-.016,0-.008,0-.02,0-.008,0-.02,0,0,0-.064.02h-.008l-.016.008h-.008l-.02.008h-.008l-.288.092-.04.012h-.008l-.02.008h0l-.092.032h0l-.02.008h-.008l-.02.008h0l-.072.02v0l-.024,0,0,0-.02.008h0l-.068.02v0l-.024,0,0,0-.02,0,0,0-.092.028v0l-.024,0,0,0-.092.032h0l-.02.008h0l-.092.032h0l-.02.008h0l-.092.032h0l-.024.008,0,0-.116.04h0l-.12.04h0l-.024.012h0l-.12.04h0l-.116.044h0l-.12.044-.116.044h0l-.14.056h0l-.092.036h0l-.024.008h0l-.116.044,0,0-.02.008-.072.024v0l-.02.008h0l-.02.008h0l-.088.036,0,0-.02.008h-.008l-.02.008h0l-.064.028h0l-.02.008-.008,0-.084.036h-.008l-.016.008-.008,0-.016.008h0l-.064.028h0l-.02.008-.008,0-.016.008h-.008l-.052.024-.124.052h0l-.016.008-.012,0-.012.008-.012,0-.016,0-.008.008-.028.008-.012.008-.012,0-.016,0-.012.008-.012,0-.012.008-.016,0-.012,0-.024.012-.008,0-.016.008-.012,0-.016.008-.012,0-.016.008-.008,0-.024.008-.008,0-.02.008-.008,0-.016.008-.012,0-.016.008-.008,0-.028.012,0,0-.02.008-.008,0-.02.008-.008,0-.02.008-.008,0-.052.024h0l-.02.012h-.008l-.02.012h-.008l-.052.024,0,0-.024.008,0,0-.024.012h0l-.08.036,0,0c-.484.22-.964.456-1.432.7l.008.02a32.069,32.069,0,0,0-6.54,4.556l-.028-.032v0l-.02.016,0,0-.02.016,0,0-.02.02h0l-.02.02-.008,0-.016.016,0,0-.02.02-.024.02-.008,0-.012.016-.008,0-.016.016,0,0-.02.02-.008.008-.012.008-.012.012-.008.008-.012.012-.012.008-.016.016-.012.008-.012.012-.008.008-.012.012,0,0-.028.024,0,0-.012.016-.008,0-.012.012-.008.008-.044.04,0,0-.016.016,0,0-.068.06v0l-.068.064h0c-.108.108-.2.228-.312.332-.52.508-1.012,1.048-1.5,1.588-.248.28-.512.54-.752.828a31.467,31.467,0,0,0-2.016,2.68l-.012.016h0a32.153,32.153,0,0,0-3.552,7.14l-.028-.008c-.128.352-.244.708-.36,1.068l-.048.148v.008l0,.016,0,.008-.008.032,0,.008,0,.016,0,.012,0,.016,0,.012,0,.012-.008.024,0,.012,0,.016,0,.012,0,.016,0,.012-.008.024v0l-.008.024,0,.008,0,.02,0,.008-.008.028h0l-.008.028v0l-.008.024v0l-.008.028h0l-.02.06h0l-.008.028h0c-.052.172-.064.356-.112.528a31.881,31.881,0,0,0-.712,3.336c-.04.232-.116.452-.148.688h0l0,.028v0l-.012.092h0l-.012.092v0l0,.024v.008l0,.028,0,.028,0,.008v.028l0,.024V177l0,.028v0l0,.024v.008l0,.02v.012l0,.02v.008l0,.028v.008l0,.02v.008l0,.02v.012l0,.024v.012l0,.016v.028l0,.016v.012l0,.028v.012l0,.016v.012l0,.016v.008l-.008.064v.024l0,.008v.024l-.008.068v0l0,.02v0l-.008.1h0c-.016.132-.028.26-.04.392l.024,0c-.084.948-.144,1.9-.144,2.872a31.886,31.886,0,0,0,.444,5.092l-.036.008c.04.236.08.476.124.712v0l0,.024v0l.008.04,0,.008v.02l0,.008,0,.02v.012l.008.028,0,.016v.016l0,.016,0,.016,0,.024,0,.016v.016l0,.012,0,.024,0,.016,0,.02,0,.012,0,.02v.012l.008.028v.012l0,.02,0,.012,0,.024v.008l0,.012.048.24.012.056,0,.008,0,.024,0,.008,0,.032v0l.008.028v.008l.008.024v.008l.008.032v0l.008.028v.008l.008.032,0,.028,0,.008,0,.028,0,0,0,.032,0,.008,0,.024,0,.008,0,.028,0,0,0,.032,0,.008,0,.024v.008l.008.032,0,0,0,.028,0,.008,0,.024,0,.008,0,.032,0,.008,0,.024,0,.008.008.032,0,.024v.008l0,.016,0,.008,0,.016v.008l0,.016,0,.008v.016l0,.008,0,.016,0,.008,0,.02v0l0,.024,0,.008,0,.016,0,.008v.016l0,.008,0,.016v.008l0,.016,0,.008,0,.016v.008l0,.016,0,.008,0,.024,0,.008,0,.016v.008l0,.016,0,.008,0,.012v.012l0,.012,0,.012,0,.012v.012l0,.012,0,.012,0,.016,0,.016,0,.016v.008l0,.012,0,.012,0,.012v.012l0,.012,0,.012,0,.012v.012l0,.012,0,.012,0,.012,0,.012,0,.02,0,.016v.008l0,.016,0,.008,0,.012v.012l0,.012,0,.012,0,.012,0,.008,0,.016v.008l.016.052v.008l0,.012,0,.012v.012l0,.008,0,.016,0,.008,0,.016v.008l0,.012,0,.008,0,.016v0l.016.06v0l0,.016,0,.008,0,.016v0l.008.02v0l0,.016,0,0,.028.108h0l0,.02h0l.008.02v0l0,.02h0c.024.084.064.16.088.24a31.462,31.462,0,0,0,1.312,3.684l.036.1.012,0a31.915,31.915,0,0,0,4.084,6.844l-.032.024c.092.112.2.208.288.32a32.313,32.313,0,0,0,2.488,2.788c.04.04.072.088.116.128h0l.016.016v0l.052.048h0l.016.016,0,0,.064.064h0l.016.016v0l.048.044,0,0,.016.012,0,.008.048.044,0,0,.012.012,0,0,.016.012,0,.008.028.024,0,0,.012.012.008.008.012.012.008.008.04.036.008.008.012.012.008.008.012.012.008.008.02.016.012.012.008.008.012.008.012.012.008.008.016.012.012.016.012.008.008.012.012.008.012.012.008.008.02.016,0,0,.016.016.008.008.012.012.008.008.016.012,0,0,.02.02.008.008.012.012.012,0,.012.016.008,0,.02.02,0,0,.016.012.008.012.012.008.008.008.02.02,0,0,.02.016,0,0,.016.012.008.008.016.016,0,0,.02.016.008.008.016.012,0,.008.016.012.008.008.02.016,0,0,.016.016.008,0,.016.016,0,0,.044.04,0,0,.016.016.008,0,.02.016h0l.024.02v0l.02.016,0,0,.02.016,0,0,.044.04,0,0,.02.016h0l.048.04h0l.02.02,0,0,.024.016v0l.044.04h0l.02.02h0l.048.04h0l.024.02h0l.072.06h0l.1.08.14.12.1.08.06.048.012.012c.236.192.468.38.7.564l.02-.024a31.877,31.877,0,0,0,6.848,4.092l0,.008.084.028a31.441,31.441,0,0,0,3.484,1.272c.268.08.544.136.816.208.884.24,1.78.452,2.692.616.2.036.38.1.576.132l.008-.044A31.773,31.773,0,0,0-116,213c.96,0,1.908-.06,2.844-.144l0,.02h.028l.012,0h.032l.028,0h.008l.024,0h.012l.024,0h0l.036,0h.036l.068-.008h0l.056-.008c.344-.036.676-.108,1.016-.152.656-.088,1.312-.164,1.972-.3h0l.084-.016.184-.036.012,0h0l.064-.016h0l.032,0,0,0,.032,0h0l.028-.008h.008l.064-.016h0l.028-.008h.008l.032-.008h0l.028,0,.008,0,.032-.008h0l.032,0,.008,0,.024,0,.008,0,.032,0v0l.032,0,.008,0,.028,0h0l.032-.008,0,0,.028,0,.008,0,.032,0h0l.032-.008.008,0,.024,0h.008l.032-.008,0,0,.028,0,.008,0,.032-.008.024,0,.008,0,.02,0h.008l.016,0,.012,0,.016,0h.012l.012,0,.012,0,.016,0h.012l.012,0,.012,0,.016,0,.008,0,.016,0h.012l.012,0,.012,0,.016,0h.012l.012,0,.012,0,.016,0,.012,0h.012l.012,0,.016,0,.012,0,.012,0h.012l.016,0,.012,0,.012,0,.024,0,.016,0,.008,0,.016,0,.012,0h.012l.012,0,.016,0,.008,0,.016,0h.012l.016,0,.012,0,.012,0,.012,0,.012,0h.012l.016,0,.012,0,.012,0,.012,0,.012,0h.016l.012,0,.012,0,.012,0,.016,0,.012,0,.012,0h.012l.012,0,.012,0,.016,0,.008,0,.016,0h0l.064-.016.008,0,.016,0h.008l.02,0,.008,0,.016,0,.008,0,.016,0h.008l.016-.008h.012l.016,0,.008,0,.016,0,.008,0,.016,0h.012l.016-.008h.008l.016,0,.008,0,.02,0h0l.02-.008h0l.02-.008h0l.02,0h0l.2-.056h0l.024-.008h0l.02-.008h0l.024-.008h0l.02,0,0,0,.024,0h0l.024-.008h0c.068-.02.132-.044.2-.064.168-.052.332-.108.5-.164.308-.1.616-.188.92-.3l-.012-.032a31.884,31.884,0,0,0,7.14-3.548l.012.016c.784-.528,1.544-1.
1084,2.276-1.676h0l.1-.076,0,0,.068-.056h0l.02-.02h0l.048-.04h0l.02-.02h0l.068-.06h0l.02-.02h0l.044-.04h0l.02-.016,0,0,.048-.04v0l.02-.016,0,0,.02-.012,0,0,.024-.02.02-.02.008,0,.016-.016,0,0,.044-.036,0,0,.02-.016,0,0,.02-.016,0,0,.02-.016,0,0,.02-.016,0,0,.02-.016,0,0,.044-.036,0-.008.016-.012.008-.008.016-.012,0,0,.024-.02,0,0,.016-.016.008,0,.016-.012,0-.008.02-.016,0,0,.02-.016.008-.008.012-.012.008-.008.016-.012.008,0,.02-.02,0,0,.016-.016.008,0,.016-.012,0-.008.024-.016,0,0,.016-.016.008-.008.012-.012.008-.008.016-.012,0,0,.024-.02,0,0,.016-.016.008,0,.012-.012.008-.008.02-.016.008-.008.012-.012.012-.008.012-.012.008-.008.016-.012,0-.008.02-.016.008-.008.012-.012.008-.008.016-.012.008-.008.02-.016.008-.008.012-.012.008-.008.012-.012.008-.008.016-.012.008-.008.016-.016.012-.008.008-.008.012-.012.008-.008.012-.012.016-.012.012-.012.012-.012.012-.008.008-.008.012-.012.008-.008.02-.016.008-.012.012-.008.008-.008.012-.012.008-.008.016-.012.016-.016.008-.008.012-.012.008-.008.012-.012.008-.008.012-.008.02-.02.008-.008.012-.008.008-.012.012-.008.008-.008.02-.02.008-.008.012-.012.008-.008.012-.012.008,0,.012-.012,0-.008.028-.024,0,0,.012-.012.008-.008.012-.012.008,0,.024-.024.008-.008.012-.012,0,0,.012-.012.008-.008.012-.012.032-.028,0-.008.016-.012,0,0,.016-.016,0,0,.028-.024,0,0,.012-.016,0,0,.016-.012,0-.008.044-.04,0-.008.016-.012,0,0,.012-.016.008,0,.028-.028h0l.016-.016,0,0,.012-.012.008-.008.044-.044,0,0,.012-.012.008-.008.012-.012,0,0,.028-.028,0,0,.012-.012.008,0,.012-.016,0,0,.044-.044,0,0,.016-.016,0,0,.048-.048h0l.016-.016,0,0,.012-.012,0,0,.044-.048.008,0,.012-.012,0,0,.048-.048v0l.016-.012,0-.008.012-.012,0,0,.044-.048,0,0,.016-.012,0,0,.044-.048,0,0,.016-.016v0l.016-.012v0l.048-.048,0,0,.016-.016h0l.048-.052h0l.016-.016,0,0,.06-.064,0,0,.016-.016h0l.048-.052v0l.016-.012,0,0,.06-.068,0,0,.064-.068h0l.016-.016v0l.064-.068,0,0,.06-.068h0l.012-.016,0,0,.064-.068h0l.072-.084-2.976-2.668C-95.7,200.308-96.292,200.844-96.868,201.388Z",transform:"translate(148 -149)",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 2073",d:"M-129.457,152.679l-.212-.132h0l-.076-.048h0l-.024-.016h0l-.052-.032h0l-.024-.016h0l-.024-.016h0l-.028-.016h0l-.024-.016,0,0-.02-.012h0l-.028-.016h0l-.024-.016,0,0-.02-.008-.008,0-.048-.028-.008-.008-.016-.008-.008,0-.02-.012-.008,0-.02-.012-.012-.008-.012-.008-.012,0-.016-.008-.008-.008-.024-.012-.008-.008-.016-.008-.012,0-.012-.008-.012-.008-.012-.008-.02-.012-.012,0-.012-.008-.012-.008-.012-.008-.012,0-.024-.016-.012,0-.012-.008-.008,0-.016-.008-.012-.008-.012-.008-.008,0-.028-.016-.008,0-.016-.008-.008,0-.016-.008,0,0-.036-.02,0,0-.016-.008-.008,0-.016-.008,0,0-.056-.028,0,0-.02-.012h0l-.056-.032,0,0-.016-.008,0,0-.084-.044h0l-.02-.012h0l-.064-.036-.02-.008h0a31.88,31.88,0,0,0-5.684-2.4l-1.2,3.816a28.077,28.077,0,0,1,6.356,2.9Z",transform:"translate(178.261 -147.911)",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 2068",d:"M-127.916,185.416-140.5,172.828V152s4,.272,4,4v15.172l11.416,11.412Z",transform:"translate(170.5 -140)",fill:"inherit"})]})]})},20295:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",children:[(0,n.jsx)("defs",{children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:".a{fill:none;opacity:0;stroke:none}.b{fill:inherit;stroke-width:0;}"}})}),(0,n.jsxs)("g",{transform:"translate(-0.246)",children:[(0,n.jsx)("rect",{className:"a",width:"32",height:"32",transform:"translate(0.246)"}),(0,n.jsxs)("g",{transform:"translate(0.841 -0.664)",children:[(0,n.jsx)("path",{className:"b",d:"M0,0V18.747H12.151V0H0M-1.33-1.33H13.481V20.077H-1.33Z",transform:"translate(9.334 7.295)"}),(0,n.jsx)("circle",{className:"b",cx:"1.5",cy:"1.5",r:"1.5",transform:"translate(13.904 20.364)"})]})]})]})},20442:(e,t,a)=>{"use strict";a.d(t,{x:()=>s,l:()=>d});var n=a(54080),i=a(76380);let l={key:"transaction_type",title:"Rodzaj transakcji",type:"checkbox",items:[{value:"sale",label:"Sprzedaż",key:"transaction_type-1",count:null}
1,{value:"rent",label:"Wynajem",key:"transaction_type-2",count:null}]},r={key:"property_type",title:"Typ nieruchomości",type:"checkbox",items:[]},o={key:"voivodeship",title:"Wojew\xf3dztwo",type:"checkbox",items:i.h.map((e,t)=>({value:e.value,label:e.label,key:"voivodeship-".concat(t+1),count:null}))},s=e=>(null==e?void 0:e.length)?{transaction_type:l,property_type:Object.assign(r,{items:e.map((e,t)=>({value:e.name,label:e.name,key:"property_type-".concat(t+1),count:null,isSelected:!1}))}),voivodeship:o}:{transaction_type:l,property_type:r,voivodeship:o},d=(e,t)=>{let a=t.transaction_type_counts,i=t.property_type_counts,l=t.voivodeship_counts,r=(e,t,a)=>{if(!e||!t||!a)return 0;let n=e.find(e=>e[t]===a);return n?n.count:0};return(0,n.Ay)(e,e=>{e.transaction_type.items=e.transaction_type.items.map(e=>({...e,count:r(a,"transaction_type",e.value)})),e.property_type.items=e.property_type.items.map(e=>({...e,count:r(i,"property_type__name",e.value)})),e.voivodeship.items=e.voivodeship.items.map(e=>({...e,count:r(l,"voivodeship",e.value)}))})}},21123:(e,t,a)=>{"use strict";a.d(t,{A:()=>x});var n=a(26514),i=a(69001),l=a.n(i),r=a(75834),o=a(80824),s=a(89342),d=a(66267),c=a(49785),p=a(77271),u=a(93794),m=a(54004);let h=u.Df.withName("PKOBPCustomRadioGroup").create(()=>({radioGroup__isHorizontal:{flexDirection:"row",marginTop:"4px","& label":{marginTop:"8px",marginBottom:"8px"}},label:{color:m.Ay.palette.text.primary,marginBottom:"16px","& .MuiFormControlLabel-label":{fontSize:"16px",lineHeight:"20px"}},radio:{padding:"0 12px 0 10px",[m.Ay.breakpoints.down("md")]:{paddingLeft:"12px"}},hr:{width:"100%",height:"1px",border:"unset",borderTop:"solid 1px ".concat(m.Ay.palette.secondary.borders),margin:"0 0 16px 0"}})),x=e=>{let{radioOptions:t,defaultValue:a,value:i,wcagPrefix:u,name:x,handleChange:g,isHorizontal:y}=e,{classes:b}=h(),f=(0,p.Ay)("span")(e=>{let{theme:t}=e;return{borderRadius:"50%",width:20,height:20,backgroundColor:t.palette.primary.contrastText,border:"solid 1px ".concat(t.palette.secondary.bordersDark),".Mui-focusVisible &":{outline:"solid 2px ".concat(t.palette.primary.main)}}}),v=(0,p.Ay)(f)({backgroundColor:m.Ay.palette.primary.contrastText,border:"solid 1px ".concat(m.Ay.palette.primary.main),"&::before":{display:"block",width:12,height:12,margin:3,borderRadius:"50%",backgroundColor:m.Ay.palette.primary.main,content:'""'}});return(0,n.jsx)(o.A,{"data-cy":"RadioGroup",children:(0,n.jsx)(c.A,{defaultValue:a,name:x,"aria-label":u,onChange:g,value:i,className:l()(b.radioGroup,{[b.radioGroup__isHorizontal]:y}),children:null==t?void 0:t.map(e=>(0,n.jsxs)(r.Fragment,{children:[e.withSeparator&&(0,n.jsx)("hr",{className:b.hr,"aria-hidden":!0}),(0,n.jsx)(s.A,{value:e.id,className:b.label,control:(0,n.jsx)(d.A,{className:b.radio,disableRipple:!0,checkedIcon:(0,n.jsx)(v,{}),icon:(0,n.jsx)(f,{})}),label:e.label})]},e.id))})})}},22552:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});let n={src:"/_next/static/media/icon_file.34355a5f.svg",height:96,width:96,blurWidth:0,blurHeight:0}},25250:(e,t,a)=>{"use strict";a.d(t,{C:()=>n});let n=()=>window.location.origin},25501:(e,t,a)=>{"use strict";a.d(t,{M:()=>n});let n=e=>{let t=e.split(",");return t.pop(),t.join(",").trim()}},28331:(e,t,a)=>{"use strict";a.d(t,{y:()=>i});var n=a(75834);let i=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],[a,i]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!e||!t)return;let a=new Image;return a.onload=()=>{i({width:a.naturalWidth,height:a.naturalHeight})},a.src=e,()=>{a.onload=null}},[e,t]),a}},29601:(e,t,a)=>{"use strict";a.d(t,{i:()=>n,s:()=>i});let n=e=>{if(!e)return!1;let t="number"==typeof e?e.toString():e,a=[1,3,7,9,1,3,7,9,1,3],n=0,i=parseInt(t.substring(10,11));for(let e=0;e<a.length;e++)n+=parseInt(t.substring(e,e+1))*a[e];return(10-(n%=10))%10===i},i=e=>{if(!e)return!1;let t="number"==typeof e?e.toString():e;t=t.replace(/[ -]/gi,"");let a=[6,5,7,2,3,4,5,6,7],n=0,i=parseInt(t.substring(9,10)),l=a.length;for(let e=0;e<l;e++)n+=parseInt(t.substr(e,1))*a[e];return n%11===i}},29692:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=e=>{let{className:t=""}=e;return(0,n.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",className:t,children:[(0,n.jsx)("rect",{"data-name":"Rectangle 3983",width:"96",height:"96",fill:"#fff",opacity:"0"}),(0,n.jsx)("path",{d:"M37.093,59.6l61-57a14.053,14.053,0,0,0-8-2c-2.8,0-6.6,1.2-13,8h0l-35,32-4,4-3-4-12-12c-6.4-6.8-9.8-8-13-8a14.008,14.008,0,0,0-8,3Z",transform:"translate(-2.093 17.4)",fill:"#2e7d49"})]})}},31198:(e,t,a)=>{"use strict";a.d(t,{A:()=>
1o});var n=a(26514);a(75834);var i=a(93794);let l={pln:{src:a(36485).A.src},eur:{src:"/_next/static/media/iko_flag_european_union_32x24.40c8fbb8.svg"},usd:{src:"/_next/static/media/iko_flag_usa_32x24.d896db65.svg"},gbp:{src:"/_next/static/media/iko_flag_great_britain_32x24.52563b94.svg"},chf:{src:"/_next/static/media/iko_flag_switzerland_32x24.05ca193d.svg"},czk:{src:"/_next/static/media/iko_flag_czech_republic_32x24.9d60815b.svg"},sek:{src:"/_next/static/media/iko_flag_sweden_32x24.498def46.svg"},nok:{src:"/_next/static/media/iko_flag_norway_32x24.a17884dd.svg"},dkk:{src:"/_next/static/media/iko_flag_denmark_32x24.1074c5a7.svg"},huf:{src:"/_next/static/media/iko_flag_hungary_32x24.3bd98ddf.svg"},ron:{src:"/_next/static/media/iko_flag_romania_32x24.13538bb4.svg"},bgn:{src:"/_next/static/media/iko_flag_bulgaria_32x24.8592d197.svg"},cny:{src:"/_next/static/media/iko_flag_china_32x24.e34e635f.svg"},jpy:{src:"/_next/static/media/iko_flag_japan_32x24.4b9d430f.svg"},hkd:{src:"/_next/static/media/iko_flag_hong_kong_32x24.866cdd11.svg"},sgd:{src:"/_next/static/media/iko_flag_signapore_32x24.6ec28847.svg"},aud:{src:"/_next/static/media/iko_flag_australia_32x24.b1458d7e.svg"},nzd:{src:"/_next/static/media/iko_flag_new_zeland_32x24.21da9bb0.svg"},zar:{src:"/_next/static/media/iko_flag_rpa_32x24.f9e84b06.svg"},try:{src:"/_next/static/media/iko_flag_turkey_32x24.448f9514.svg"},mxn:{src:"/_next/static/media/iko_flag_mexiko_flag_32x24.961b8fa2.svg"},cad:{src:"/_next/static/media/iko_flag_canada_32x24.18967ceb.svg"},hrk:{src:"/_next/static/media/iko_flag_croatia_32x24.94418a2b.svg"}},r=i.Df.withName("PKOBPFxratesFlag").create(()=>({flag:{marginRight:"8px",lineHeight:1,width:"32px"}})),o=e=>{let{currency:t}=e,{classes:a}=r(),i=null==l?void 0:l[null==t?void 0:t.toLowerCase()];return i?(0,n.jsx)("img",{src:i.src,"aria-hidden":!0,className:a.flag}):null}},31354:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsx)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 24 24",children:(0,n.jsxs)("g",{children:[(0,n.jsxs)("g",{transform:"translate(-561 1047)",children:[(0,n.jsx)("path",{d:"M577.5-1043c-3,0-5.5,2.5-5.5,5.5c0,1,0.4,2.1,1,2.9c0.4,0.5,0.8,1,1.3,1.5    c0.5,0.5,2.9,2.5,2.9,2.5l0.3,0.3l0.3-0.3c0,0,2.3-2,2.9-2.5c0.5-0.5,0.9-1,1.3-1.5c0.7-0.8,1-1.8,1-2.9    C583-1040.5,580.5-1043,577.5-1043z M581.2-1035.2c-0.4,0.5-0.7,0.9-1.2,1.4c-0.4,0.4-1.9,1.6-2.5,2.2c-0.7-0.
16-2.1-1.8-2.5-2.2    c-0.4-0.4-0.8-0.9-1.2-1.3c-0.5-0.6-0.8-1.5-0.8-2.3c0-2.5,2-4.5,4.5-4.5c2.5,0,4.5,2,4.5,4.5    C582-1036.7,581.7-1035.9,581.2-1035.2z"}),(0,n.jsx)("path",{d:"M577.5-1040c-1.4,0-2.5,1.1-2.5,2.5s1.1,2.5,2.5,2.5s2.5-1.1,2.5-2.5S578.9-1040,577.5-1040z    M577.5-1036c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S578.3-1036,577.5-1036z"})]}),(0,n.jsx)("path",{d:"M5.5,8.5C3.6,8.5,2,10.1,2,12c0,0.7,0.2,1.4,0.6,1.9c0.2,0.3,0.5,0.6,0.8,0.9   c0.3,0.3,1.7,1.5,1.7,1.5l0.3,0.3l0.3-0.3c0,0,1.4-1.2,1.7-1.5c0.3-0.3,0.6-0.6,0.8-0.9C8.8,13.4,9,12.7,9,12   C9,10.1,7.4,8.5,5.5,8.5z M7.6,13.3c-0.2,0.3-0.4,0.5-0.7,0.8c-0.2,0.2-0.9,0.8-1.4,1.2c-0.4-0.4-1.2-1-1.4-1.2   c-0.2-0.2-0.5-0.5-0.7-0.8C3.2,12.9,3,12.5,3,12c0-1.4,1.1-2.5,2.5-2.5C6.9,9.5,8,10.6,8,12C8,12.5,7.8,12.9,7.6,13.3z"}),(0,n.jsx)("rect",{x:"17",y:"18",width:"2",height:"1",fill:"#fff"}),(0,n.jsx)("rect",{x:"13",y:"18",width:"2",height:"1",fill:"#fff"}),(0,n.jsx)("rect",{x:"9",y:"18",width:"2",height:"1",fill:"#fff"}),(0,n.jsx)("rect",{x:"5",y:"18",width:"2",height:"1",fill:"#fff"})]})})},32253:(e,t,a)=>{"use strict";a.d(t,{ZM:()=>n});let n="withPinnedPOI"},32973:(e,t,a)=>{"use strict";a.d(t,{M:()=>r});var n=a(12877);class i extends String{charAt(e){return{toUpperCase:()=>this.valueOf()}}}let l=["Pn","Wt","Śr","Cz","Pt","So","Nd"].map(e=>new i(e));class r extends n.h{constructor(...e){super(...e),this.getWeekdays=()=>l}}},34653:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(70504),i=a(75834),l=a(2991),r=a(81132),o=a(13436);let s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.YU.CAROUSEL_ITEM,t=(0,i.useContext)(o.G),a=(0,i.useContext)(n.zp),s=(0,i.useRef)(null),d=()=>{if(a)return;let e=document.getElementById(t);Array.from(e.getElementsByClassName("slick-track"))[0].setAttribute("role","list"),Array.from(e.getElementsByClassName("slick-slide")).forEach(e=>{e.setAttribute("role","listitem")}),Array.from(e.getElementsByClassName("slick-slide slick-cloned")).forEach(e=>{e.removeAttribute("role")})},c=e=>{if("Tab"==e.key&&s.current){if(t.includes("-".concat(l.YU.HERO_BANNER,"-")))return;let e=Array.from(document.getElementById(t).getElementsByClassName("slick-active"))[0],a=(null==e?void 0:e.getElementsByTagName("a")[0])||(null==e?void 0:e.getElementsByTagName("button")[0]),n=document.activeElement.getAttribute("data-id");Number(null==a?void 0:a.getAttribute("data-id"))!==Number(n)&&s.current.slickNext()}};return(0,i.useEffect)(()=>{if(!a&&t){var e;return null==(e=document.getElementById(t))||e.addEventListener("keyup",c),()=>{var e;return null==(e=document.getElementById(t))?void 0:e.removeEventListener("keyup",c)}}},[a]),{carouselRef:s,setRoleAttributesForSlides:d,regenerateAttributesForForVisibleSlides:()=>{if(a)return;let n=document.getElementById(t);
1Array.from(n.getElementsByClassName("slick-active")).forEach(a=>{let n=a.querySelectorAll("[data-id]")[0];if(n){let a=null==n?void 0:n.getAttribute("data-id"),i=(0,r.bJ)(t,e,a);n.setAttribute("id",i),n.setAttribute("tabIndex","0")}}),Array.from(n.querySelectorAll("[aria-hidden=true]")).forEach(e=>{let t=e.querySelectorAll("[data-id]")[0];t&&(t.removeAttribute("id"),t.setAttribute("tabIndex","-1"))}),d()},setCarouselDotsAccessability:()=>{if(a)return;let e=document.getElementById(t).querySelectorAll("ul.slick-dots")[0];e&&Array.from(e.children).forEach((e,t)=>{let a=e.getElementsByTagName("button")[0];a.setAttribute("aria-label","Pozycja w grupie numer ".concat(t+1)),a.textContent="Pozycja numer ".concat(t+1)})}}}},37191:(e,t,a)=>{"use strict";a.d(t,{Rj:()=>eu,Z_:()=>em,Ay:()=>ex});var n=a(26514),i=function(e){return e[e.categories=0]="categories",e[e.customers=1]="customers",e[e.report_categories=2]="report_categories",e[e.tender_sources=3]="tender_sources",e[e.types=4]="types",e[e.provinces=5]="provinces",e[e.years=6]="years",e[e.date=7]="date",e}({}),l=a(69001),r=a.n(l),o=a(6271),s=a(69428),d=a(75834),c=a(6395),p=a(340),u=a(82056),m=a(57051),h=a(21340),x=a(86610),g=a(16755),y=a(44807);let b=e=>{let{labelFrom:t="Od",labelTo:a="Do",defaultFromDate:i,defaultToDate:l,minDateFrom:b,minDateTo:f,dateFromError:v,dateToError:w,disabled:A=!1,showToolbar:_=!1,className:j,inputClassName:k,dateMask:C,dateFormat:N,disableInputTyping:S,cy:T="",onSetDates:z,inputPlaceholder:L,customLabelFrom:P,customLabelTo:I,gridSpacing:E,showIconOnMobile:O,closeOnSelect:B,mobileModeBreakpoint:F="lg",shouldDisableDate:D,inputOpenClassName:R,disableFuture:M,triggerOnlyOnDayClick:H}=e,[W,U]=(0,d.useState)(!1),[G,K]=(0,d.useState)(!1),[V,Y]=(0,d.useState)([null,null]),[Z,q]=(0,d.useState)("day"),[X,$]=(0,d.useState)("day"),J=(0,c.A)(g.A.breakpoints.down(F));(0,d.useEffect)(()=>{i&&l?Y([new Date(i),new Date(l)]):i?Y([new Date(i),V[1]]):l?Y([V[0],new Date(l)]):Y([null,null])},[l,i]);let Q=(e,t)=>{if(null===t){if("start"===e){let e=V[1];Y([null,e]),z([null,e?ee(e):null])}else{let e=V[0];Y([e,null]),z([e?ee(e):null,null])}return}if((0,y.vd)(t))if("start"===e){let e=null!==V[1]&&(0,y.k_)(t)>(0,y.k_)(V[1])&&(0,y.vd)(t)?new Date((0,y.Xd)(t,{days:1})):V[1];Y([t,e]),z([ee(t),ee(e)])}else Y([V[0],t]),z([ee(V[0]),ee(t)])},ee=e=>e?(0,y.k_)(e).substr(0,10):null;return(0,n.jsxs)(p.Ay,{container:!0,spacing:E||3,children:[(0,n.jsxs)(p.Ay,{item:!0,sm:6,children:[P,(0,n.jsx)(h.l,{views:["year","month","day"],mask:C||y.ss,inputFormat:N||y.DX,label:t,value:V[0],onChange:e=>{H&&"day"!==Z||Q("start",e)},renderDay:(e,t,a)=>(0,n.jsx)(x.a,{...a,onClick:t=>{t.preventDefault(),t.stopPropagation(),V[0]&&(0,s.A)(e,V[0])&&Q("start",null)}}),minDate:b?new Date(b):null,components:{OpenPickerIcon:o.A},okText:"Zatwierdź",clearText:"Wyczyść",todayText:"Dzisiaj",cancelText:"Anuluj",clearable:!0,showTodayButton:!0,showToolbar:_,PaperProps:{className:j,onKeyDown:e=>{"Escape"===e.key&&Q("start",null)}},DialogProps:{className:j},disabled:A,desktopModeMediaQuery:g.A.breakpoints.up(F),closeOnSelect:B,renderInput:e=>(0,n.jsx)(u.A,{...e,className:r()(k,{[R]:W}),error:!!v,helperText:v||"","data-cy":"DateRangePicker-"+T+"--date-start",name:"date-range-picker--date-start",onKeyDown:e=>S?e.preventDefault():null,inputProps:{...e.inputProps,placeholder:L||e.inputProps.placeholder,"aria-label":"Wpisz datę początkową"},...J&&O&&{InputProps:{endAdornment:(0,n.jsx)(m.A,{position:"end",children:(0,n.jsx)(o.A,{})})}}}),shouldDisableDate:D,onOpen:()=>{U(!0),setTimeout(()=>{let e=document.querySelector(".MuiCalendarPicker-root button");e&&e.focus()},200)},onClose:()=>U(!1),disableFuture:M,onViewChange:e=>q(e)})]}),(0,n.jsxs)(p.Ay,{item:!0,sm:6,children:[I,(0,n.jsx)(h.l,{views:["year","month","day"],mask:C||y.ss,inputFormat:N||y.DX,label:a,value:V[1],onChange:e=>{H&&"day"!==X||Q("end",e)},renderDay:(e,t,a)=>(0,n.jsx)(x.a,{...a,onClick:t=>{t.preventDefault(),t.stopPropagation(),V[1]&&(0,s.A)(e,V[1])&&Q("end",null)}}),minDate:V[0]||new Date(f),components:{OpenPickerIcon:o.A},okText:"Zatwierdź",clearText:"Wyczyść",todayText:"Dzisiaj",cancelText:"Anuluj",clearable:!0,showTodayButton:!0,showToolbar:_,PaperProps:{className:j,onKeyDown:e=>{"Escape"===e.key&&Q("end",null)}},DialogProps:{className:j},disabled:A,desktopModeMediaQuery:g.A.breakpoints.up(F),closeOnSelect:B,renderInput:e=>(0,n.jsx)(u.A,{...e,className:r()(k,{[R]:G}),error:!!w,helperText:w||"","data-cy":"DateRangePicker-"+T+"--date-end",name:"date-range-picker--date-end",onKeyDown:e=>S?e.preventDefault():null,inputProps:{...e.inputProps,placeholder:L||e.inputProps.placeholder,"aria-label":"Wpisz datę końcową"},...J&&O&&{InputProps:{endAdornment:(0,n.jsx)(m.A,{position:"end",children:(0,n.jsx)(o.A,{})})}}}),shouldDisableDate:D,onOpen:()=>{U(!0),setTimeout(()=>{let e=document.querySelector(".MuiCalendarPicker-root button");e&&e.focus()},200)},onClose:()=>K(!1),disableFuture:M,onViewChange:e=>$(e)})]})]})};var f=a(70504),v=function(e){return e.categories="Kategorie",e.customers="Klienci",e.report_categories="Kategorie raport\xf3w",e.tender_sources="Źr\xf3dła przetarg\xf3w",e.types="Rodzaje",e.provinces="Wojew\xf3dztwa",e.years="Rok",e.date="Publikacja",e}({}),w=a(80964),A=a(48216),_=a(69863),j=a(95399),k=a(6018),C=a(21988),N=a(42341),S=a(42955),T=a(46225),z=a(93794),L=a(54907),P=a(11),I=a(82771),E=a(49898),O=a(90677),B=a(13403),F=a(43371),D=a(54004),R=a(2141),M=a(32973),H=a(34453),W=a(12097),U=a(53303),G=a(99090),K=a(27133),V=a(58751),Y=a(13436),Z=a(42920);let q=e=>(e=>{if(!e)return"";let t=window.location.origin,a=0>e.indexOf("api/default")?"/api/default/".concat(e):e;return"".concat(t).concat(a)})(e);var X=a(2115),$=a(33872);let J=z.Df.withName("PKOBPNewsListTextItem").create(()=>({fileLink:{textDecoration:"none",color:"inherit"},fileDownloadLink:{color:D.Ay.palette.primary.main,"&:hover":{color:D.Ay.palette.grey[800]}},title:{color:D.Ay.palette.primary.main,marginBottom:0,marginTop:"7px",[D.Ay.breakpoints.up("md")]:{marginTop:"1px"}},wrapEllipsis:{pointerEvents:"auto",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",[D.Ay.breakpoints.up("md")]:{"-webkit-line-clamp":"2"}}}
1)),Q=e=>{let{file:t,file_name:a}=e,{classes:i}=J();if(!t)return(0,n.jsx)(n.Fragment,{});let{file_path_url:l,size:o,extension:s}=t,d=q(l),c="".concat(q(l),"?content-disposition=attachment;filename=").concat(a,".").concat(s),p=(0,$.zf)({link:{href:d,open_in_new:!0},isWorkspace:!1}),u=(0,$.zf)({link:{href:c},isWorkspace:!1});return(0,n.jsxs)(P.A,{direction:"column",spacing:1,children:[(0,n.jsx)("a",{className:i.fileLink,...p,children:(0,n.jsxs)(P.A,{direction:"column",spacing:1,children:[(0,n.jsx)(Z.A,{className:r()(i.title,i.wrapEllipsis),variant:"h4",children:a}),(0,n.jsx)(Z.A,{children:"Plik w formacie ".concat(s.toUpperCase()," rozmiar ").concat((0,X.BR)(o))})]})}),(0,n.jsx)("a",{className:r()(i.fileLink,i.fileDownloadLink),...(0,w.A)(u,"idGTM","additionalWid"),"aria-label":"Pobierz plik ".concat(a),children:"Pobierz"})]})};var ee=a(52597);let et="NewsListFilterPills",ea=z.Df.withName("PKOBPNewsList").create(()=>({filterLabel:{fontSize:"20px",[D.Ay.breakpoints.down("md")]:{fontSize:"16px",fontWeight:"300"}},filterContainer:{[D.Ay.breakpoints.down("md")]:{marginTop:"6px",marginBottom:"22px"}},filterPillsContainer:{display:"flex",flexDirection:"column","& button:last-of-type":{marginBottom:"40px"},[D.Ay.breakpoints.down("md")]:{flexDirection:"row",flexWrap:"wrap",columnGap:"8px",rowGap:"12px","& button:last-of-type":{marginBottom:"0px"}}},filterPill:{display:"flex",justifyContent:"left",textAlign:"left",alignItems:"center",height:"60px",borderRadius:"10px",marginTop:"6px",marginBottom:"6px",maxWidth:"300px","&:hover":{cursor:"pointer"},[D.Ay.breakpoints.down("md")]:{borderRadius:"50px",minHeight:"40px",height:"40px",margin:"0px",fontSize:"14px",padding:"17px 14px 15px 14px","& svg":{marginRight:"-4px",marginBottom:"2px"}}},showMoreBtn:{display:"inline-block",textAlign:"left",marginTop:"15px"}})),en=(0,d.memo)(e=>{let{handleChangeFilters:t,moduleName:a,activeFilters:i,filtersAggregation:l,...o}=e,{classes:s}=ea(),{name:p,name_all:u,multiselect:m,show:h,entries_rendered:x,id:g}=o,[y,b]=(0,d.useState)(i||[0]),[f,w]=(0,d.useState)(0),[A,_]=(0,d.useState)(!1),j=(0,c.A)(D.Ay.breakpoints.down("md")),[k,C]=(0,d.useState)(!1);(0,d.useEffect)(()=>{C(!0)},[]),(0,d.useEffect)(()=>{h&&y&&k&&(y.includes(0)?t(a,null):t(a,y))},[y]);let N=f>3&&!j,S=x.filter(e=>{let{id:t}=e;return l[a].find(e=>e.key===t)}),T=(0,d.useMemo)(()=>(w(S.length+1),y.includes(0)||S.length||b([0]),null==S?void 0:S.slice(0,!A&&N?2:S.length)),[A,x,l]);return(0,n.jsxs)(L.A,{children:[j&&(0,n.jsx)(Z.A,{className:s.filterLabel,children:p||v[a]}),(0,n.jsx)(L.A,{className:s.filterContainer,children:(0,n.jsxs)(L.A,{className:s.filterPillsContainer,role:m?"group":"listbox","aria-multiselectable":!!m,children:[!!(null==T?void 0:T.length)&&!!(null==S?void 0:S.length)&&(0,n.jsx)(F.A,{children:(0,n.jsxs)("legend",{"aria-live":"polite",children:["Widoczne ",null==T?void 0:T.length," filtry z ",null==S?void 0:S.length," możliwych"]})}),(0,n.jsx)(ee.A,{isActive:y.includes(0),handleClickCallback:()=>{b([0])},classname:r()(s.filterPill,{[s.filterPill__active]:y.includes(0)}),label:u||"Wszystkie",textEllipsis:!0,showTickIcon:!0,id:"".concat(a).concat(0),cy:et,ariaSelected:y.includes(0),ariaLabel:"Pokaż wszystkie z grupy filtr\xf3w ".concat(v[a]),role:"option"},"all-".concat(p)),T.map(e=>{var t;let{id:i,name:r}=e,o=null==(t=l[a].find(e=>e.key===i))?void 0:t.doc_count,d=y.includes(i);return(0,n.jsx)(ee.A,{isActive:d,handleClickCallback:()=>(e=>{y.includes(e)?(e=>{if(1===y.length)return b([e]);b(t=>[...t.filter(t=>t!==e)])})(e):(e=>{m?b(t=>[...t.filter(e=>0!==e),e]):b([e])})(e)})(i),classname:s.filterPill,label:r,textEllipsis:!0,showTickIcon:!0,endAdornment:"(".concat(o,")"),id:"".concat(a).concat(i),cy:et,...m?{ariaChecked:d}:{ariaSelected:d},role:m?"checkbox":"option",ariaLabel:"Filtr ".concat(r," z grupy filtr\xf3w ").concat(v[a],". ").concat(o," dostępnych aktualności")},"".concat(r,"-").concat(i.toString()))}),N&&!A&&(0,n.jsx)(U.default,{className:s.showMoreBtn,onClickCallback:()=>{_(!0)},variant:"textBlue",ariaLabel:"Pokaż więcej filtr\xf3w z grupy ".concat(v[a]),ariaExpanded:!1,id:g,children:"Pokaż więcej"}),N&&A&&(0,n.jsx)(U.default,{className:s.showMoreBtn,onClickCallback:()=>{_(!1)},variant:"textBlue",ariaLabel:"Pokaż mniej filtr\xf3w z grupy ".concat(v[a]),ariaExpanded:!0,children:"Pokaż mniej"})]})})]})});var ei=a(83984),el=a(2058),er=a(16341),eo=a(99186),es=a(43849);let ed=z.Df.withName("PKOBPNewsListTextItem").create(()=>({newsItemLabel:{display:"flex",alignItems:"center",padding:"0px 6px",height:"20px",fontSize:"14px",marginRight:"7px",overflow:"hidden","& span":{fontSize:"14px"},[D.Ay.breakpoints.down("sm")]:{padding:"2px 6px 0 6px",marginRight:"13px"}},title:{color:D.Ay.palette.primary.main,marginBottom:0,marginTop:"7px",[D.Ay.breakpoints.up("md")]:{marginTop:"1px"}},imgContainer:{position:"relative",width:"180px",height:"100px",marginRight:"30px","& span, & div, & span *":{width:"100% !important",height:"100% !important"}},image:{width:"100%",height:"100%",borderRadius:"10px",objectFit:"unset"},publicationDate:{fontSize:14},linkContainer:{textDecoration:"none",color:"inherit"},newsItemHeader:{minHeight:"20px"},wrapEllipsis:{pointerEvents:"auto",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"3","-webkit-box-orient":"vertical",[D.Ay.breakpoints.up("md")]:{"-webkit-line-clamp":"2"}},lead:{fontSize:14,marginTop:"2px",[D.Ay.breakpoints.down("sm")]:{lineHeight:"20px"}}})),ec=e=>{let{path:t,...a}=e,{classes:i}=ed(),l=(0,c.A)(D.Ay.breakpoints.down("md")),{title:o,label:s,label_color:p,publication_date:u,lead:m,image:h,show_publication_time:x}=a,g=(0,d.useContext)(ei.X4),b=x?(0,y.Yq)(new Date(u),!1,"dd.MM.yyyy HH:mm"):(0,y.Yq)(new Date(u),!0,"dd.MM.yyyy");return(0,n.jsx)(er.A,{className:r()(i.linkContainer),isExternal:!0,href:(0,es.r)(t,g,!1),children:(0,n.jsxs)(P.A,{direction:"row",children:[h&&!l&&(0,n.jsx)(L.A,{className:i.imgContainer,children:(0,n.jsx)(el.Ay,{width:180,height:101,className:i.image,src:null==h?void 0:h.file_path_url,t
1itle:null==h?void 0:h.filename,alt:null==h?void 0:h.alt,loading:(null==h?void 0:h.loading)||"lazy"})}),(0,n.jsxs)(P.A,{direction:"column",sx:{flex:1,minWidth:0},children:[(0,n.jsxs)(P.A,{direction:"row",className:i.newsItemHeader,alignItems:"center",flexWrap:"wrap",rowGap:"8px",children:[s&&(0,n.jsx)(eo.A,{className:i.newsItemLabel,label:s,label_color:p}),u&&(0,n.jsx)(Z.A,{className:i.publicationDate,children:b})]}),(0,n.jsx)(Z.A,{className:r()(i.title,i.wrapEllipsis),variant:"h4",dangerouslySetInnerHTML:{__html:null==o?void 0:o.text}}),m&&(0,n.jsx)(Z.A,{className:r()(i.lead,i.wrapEllipsis),children:m})]})]})})},ep=e=>{let t=e.split("-").map(e=>parseInt(e,10));return new Date(t[0],t[1]-1,t[2])},eu={".text-spacing-detected & *":{lineHeight:"1.5 !important"},"& .MuiOutlinedInput-root":{borderRadius:"8px",fontFamily:"".concat(D.Ay.typography.fontFamily," !important"),paddingLeft:"3px",paddingRight:"11px",fontSize:"16px"},"& .MuiOutlinedInput-notchedOutline":{borderColor:D.Ay.palette.secondary.bordersDark},"& .MuiInputLabel-root":{fontFamily:"".concat(D.Ay.typography.fontFamily," !important")},"& input":{padding:"16px 12px 17px 12px",fontSize:"16px",height:"15px",borderRadius:"8px",".text-spacing-detected &":{height:"auto"}},"& input::placeholder":{opacity:1},"& .MuiInputAdornment--root":{zIndex:1},"& .MuiIconButton-root":{color:D.Ay.palette.primary.main,padding:0,borderRadius:"3px",transition:"background-color .2s, color .2s",marginRight:"-4px","& .MuiTouchRipple-root":{display:"none"},"&:hover, &:focus-visible":{color:"#fff",backgroundColor:D.Ay.palette.primary.main}},"& .MuiInputAdornment-root svg":{[D.Ay.breakpoints.down("md")]:{color:D.Ay.palette.primary.main}}},em={"& .MuiPaper-root":{[D.Ay.breakpoints.down("md")]:{position:"absolute",left:0,right:0,bottom:0,margin:0,minWidth:"100vw",borderRadius:0,borderTopLeftRadius:"10px",borderTopRightRadius:"10px"}},"& .MuiCalendarOrClockPicker-root > div, & .MuiCalendarPicker-root":{width:"100vw",height:"auto",[D.Ay.breakpoints.up("md")]:{width:"372px"}},"& .MuiMonthPicker-root":{width:"calc(100% - 8px)",[D.Ay.breakpoints.down("md")]:{width:"100%"},"& button":{textTransform:"uppercase",[D.Ay.breakpoints.up("md")]:{height:"60px"}}},"& .MuiPickersCalendarHeader-root":{paddingLeft:"22px",paddingRight:"19px",marginTop:"18px",marginBottom:"4px","& button:not(.Mui-disabled)":{"& .MuiSvgIcon-root":{fill:D.Ay.palette.primary.main}},"& .MuiPickersCalendarHeader-label":{textTransform:"capitalize",color:D.Ay.palette.primary.main,fontSize:"15px"},[D.Ay.breakpoints.down("sm")]:{paddingLeft:"17px",paddingRight:"13px",marginTop:"20px",marginBottom:"10px"}},"& div, span, button":{fontFamily:D.Ay.typography.fontFamily},"&.MuiPaper-root":{width:"372px",height:"362px",borderRadius:"10px",boxShadow:"0px 8px 32px #0000661A"},"& .MuiPickersArrowSwitcher-root":{marginLeft:"-12px","& button:nth-of-type(1)":{marginRight:"-13px"}},"& .PrivatePickersSlideTransition-root":{minHeight:"264px"},"& .MuiDatePickerToolbar-root":{backgroundColor:D.Ay.palette.primary.main,color:"".concat(D.Ay.palette.common.white," !important"),"& span":{color:"".concat(D.Ay.palette.common.white," !important")}},"& button":{borderRadius:"5px",fontSize:"1rem"},"& .MuiDayPicker-weekContainer":{margin:0},"& .MuiDayPicker-monthContainer":{[D.Ay.breakpoints.down("sm")]:{paddingLeft:"6px",paddingRight:"6px"}},"& .MuiPickersDay-root, & .MuiDayPicker-weekDayLabel":{fontSize:"16px",flex:1,[D.Ay.breakpoints.up("md")]:{width:"40px",height:"40px"}},"& .MuiDayPicker-header":{"&:nth-child(2)":{backgroundColor:"red"},[D.Ay.breakpoints.down("sm")]:{paddingLeft:"6px",paddingRight:"6px"}},"& .MuiDayPicker-weekDayLabel":{margin:"0px 6px"},"& .MuiPickersDay-root":{margin:"2px 6px"},"& .MuiPickersDay-root:not(.Mui-disabled):not(.Mui-selected)":{color:D.Ay.palette.primary.main},"& .MuiPickersDay-today:not(.Mui-selected)":{border:"1px solid ".concat(D.Ay.palette.primary.main)},"& button.Mui-selected":{color:D.Ay.palette.common.white,backgroundColor:D.Ay.palette.primary.main,"&:focus":{backgroundColor:D.Ay.palette.primary.main}},"& .MuiPickersToolbar-penIconButton":{display:"none"},"& .MuiDialogActions-root":{display:"none"}},eh=z.Df.withName("PKOBPNewsList").withNestedSelectors().create(e=>{let{classes:t}=e;return{loaderOverlay:{left:0,width:"100vw",height:"100vh",position:"fixed",zIndex:D.Ay.zIndex.overlayAboveAll,marginTop:"-56px"},filterLabel:{fontSize:"20px",maxWidth:"252px",width:"100%",overflow:"hidden",textOverflow:"ellipsis",display:"block",whiteSpace:"nowrap",[D.Ay.breakpoints.down("lg")]:{maxWidth:"194px"},[D.Ay.breakpoints.down("md")]:{fontSize:"16px"}},supertitle:{fontWeight:300,fontSize:"11px",letterSpacing:"1.65px",marginBottom:"23px"},subtitle:{fontWeight:300,marginBottom:"25px"},title:{...D.Ay.typography.h1,textAlign:"left",marginTop:"63px",marginBottom:"8px",[D.Ay.breakpoints.down("md")]:{fontSize:"24px"}},filterPill:{display:"flex",justifyContent:"center",alignItems:"center",height:"60px",borderRadius:"10px","&:hover":{cursor:"pointer"}},paginationWrapper:{margin:"0 auto",marginTop:"80px"},headerBox:{display:"inline-flex",justifyContent:"space-between",width:"100%"},newsListColumn:{[D.Ay.breakpoints.up("md")]:{padding:"0px 11px 0px 15px"}},filterAccordionContainer:{"& .Mui-expanded:before":{opacity:1},"& .MuiAccordion-root":{marginTop:0},"& .MuiAccordionSummary-root":{margin:"21px 0 20px 0",justifyContent:"space-between","&.Mu
1i-expanded":{marginBottom:"5px"}},"& button":{cursor:"pointer"},"& .MuiPaper-root":{borderBottom:"1px solid ".concat(D.Ay.palette.secondary.borders),borderRadius:"0px","&.Mui-expanded":{margin:"0px"},"&:before":{opacity:"0 !important"}}},filterWrapper:{display:"flex",justifyContent:"center",alignContent:"flex-end",flexWrap:"wrap",paddingBottom:"3px","& span":{fontSize:"14px",paddingTop:"8px",[D.Ay.breakpoints.up(900)]:{fontSize:"16px",paddingTop:"6px"}}},filterIcon:{display:"inline-block",border:"none",background:"none",padding:0,margin:0,marginLeft:"6px","& svg":{width:"36px",height:"33px",marginBottom:"2px",marginRight:"-2px"}},noResults:{fontSize:24,margin:"0 auto"},modal:{[D.Ay.breakpoints.up("sm")]:{"& .MuiPaper-root":{height:"800px"}},"& .MuiDialogContent-root":{paddingBottom:"100px"}},mobileFilterBtnContainer:{textAlign:"center",position:"absolute",width:"100%",bottom:0,left:0,right:0,boxShadow:"0px 0px 12px #00006629",height:"80px",display:"flex",justifyContent:"center",background:D.Ay.palette.common.white,alignItems:"center","& button":{height:"48px",width:"90%"}},".MuiDialog-container":{"& .MuiDatePickerToolbar-root":{backgroundColor:D.Ay.palette.primary.main,color:"".concat(D.Ay.palette.common.white," !important"),"& span":{color:"".concat(D.Ay.palette.common.white," !important")}}},datepicker:{...em},datepickerContainer:{marginTop:"-6px",[D.Ay.breakpoints.up("md")]:{marginTop:"27px"},"& .MuiGrid-container":{flexDirection:"column",marginTop:"0px"},"& .MuiGrid-item":{minWidth:"100%"},"& .MuiFormControl-root":{width:"100%"},["& .".concat(t.filterLabel)]:{marginBottom:"-15px"},"& button":{"&:focus-visible":{outline:"solid 2px ".concat(D.Ay.palette.primary.main),background:"unset"}}},datepickerInput:{...eu},datepickerInputOpen:{"& .MuiIconButton-root":{color:"#fff",backgroundColor:D.Ay.palette.primary.main}},datepickerLabel:{display:"block",fontWeight:"300",marginBottom:"4px",fontSize:"16px"},newsListList:{listStyle:"none",margin:0,padding:0,"& li":{margin:0,padding:0,"&:not(:first-of-type)":{marginTop:"54px",[D.Ay.breakpoints.down("md")]:{marginTop:"28px"}}}}}}),ex=e=>{var t,a,l,r,o;let{...p}=e,{classes:u}=eh(),{title:m,supertitle:h,subtitle:x,node:g,display_as:z,label_previous:q,label_next:X,aria_label_previous:$,aria_label_next:J}=p,[ee,et]=(0,d.useState)(!1),[ea,ei]=(0,d.useState)(!1),[el,er]=(0,d.useState)({count:0,next:"",previous:"",results:[]}),[eo,es]=(0,d.useState)(null),[ed,eu]=(0,d.useState)(),em=(0,R.A)(),ex=(0,d.useContext)(f.zp),eg=(0,T.useRouter)(),ey=(0,d.useContext)(Y.G),eb=(0,c.A)(D.Ay.breakpoints.down("md")),ef=Math.ceil((null==el?void 0:el.count)/8),ev=(null==eo||null==(t=eo.news_dates)?void 0:t.map(e=>(0,j.A)((0,k.A)(e))))||[],ew=(0,d.useRef)(null),{"*":eA,...e_}=eg.query,ej=Object.keys((0,w.A)(e_,"page")).length,ek=new URLSearchParams(e_);(0,d.useEffect)(()=>{var e;let t=(null==eg||null==(e=eg.query)?void 0:e.page)||"1";t&&ek.set("page",t)},[]);let eC=()=>{ex||eg.replace({pathname:window.location.pathname,query:ek.toString()},void 0,{shallow:!0})},eN=(e,t,a)=>{ek.set("page",e?e.toString():"1"),a?ek.set(t,a):ek.delete(t)},eS=async()=>{if(!ex)try{ei(!0);let{page:e,categories:t,customers:a,provinces:n,report_categories:i,tender_sources:l,types:r,years:o,date_from:s,date_to:d}=eg.query,c=eI(s),p=eI(d,!0),u=function(e,t){return eP(t)?{[e]:t}:{}},m={page_id:g.link_internal,...c&&{date_from:c},...p&&{date_to:p},...u("categories",t),...u("customers",a),...u("provinces",n),...u("report_categories",i),...u("tender_sources",l),...u("types",r),...u("years",o)},h=await em.apiNewsFiltersList({...m,variant:z});es(h.data);let x=await em.apiNewsItemsList({page:Number(e)||1,page_size:8,...m,variant:z});er({...x.data||{count:0,next:"",previous:"",results:[]}}),ei(!1)}catch(e){console.log(e),er({count:0,next:"",previous:"",results:[]}),ei(!1)}};(0,d.useEffect)(()=>{(async()=>{await eS()})()},[ek.toString()]);let eT=e=>{eN(e),eC(),(()=>{if(!(null==ew?void 0:ew.current))return;let e=ew.current.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:e<0?0:e,behavior:"smooth"})})()},ez=(e,t)=>{if(eb)return void eu(a=>({...a,page:1,[e]:null==t?void 0:t.join(",")}));eN(1,e,null==t?void 0:t.join(",")),eC()},eL=e=>Object.values(i).filter(e=>isNaN(Number(e))).filter(e=>"date"!==e).map((t,a)=>{let i=e_[t],l=p[t],r=null==i?void 0:i.split(",").map(e=>Number(e)),o=(0,A.A)(eo,t),s=l.name||v[t];if(l.show&&eo)return e?(0,n.jsx)(O.A,{defaultExpanded:!!(null==r?void 0:r.length)||0===a,ariaLabel:"".concat(s,". Grupa filtr\xf3w"),uuid:t,title:(0,n.jsx)(Z.A,{className:u.filterLabel,title:s,children:s}),children:(0,n.jsx)(en,{activeFilters:r,handleChangeFilters:ez,moduleName:t,filtersAggregation:o,...l})},t):(0,n.jsx)(en,{activeFilters:r,handleChangeFilters:ez,moduleName:t,filtersAggregation:o,...l},t)}),eP=e=>!!e&&!!e.match(W.HR),eI=(e,t)=>{try{let a=t?(0,C.A)(ep(e)):ep(e);return(null==a?void 0:a.toJSON())&&W.Eu.test(e)?a.toISOString():null}catch(e){return null}},eE=e=>{var t;let a=(null==p||null==(t=p.date)?void 0:t.name)||"Publikacja";
1return(0,n.jsx)(I.$,{adapterLocale:S.A,dateAdapter:M.M,localeText:E.$.components.MuiLocalizationProvider.defaultProps.localeText,children:(0,n.jsxs)(L.A,{className:u.datepickerContainer,children:[e&&(0,n.jsx)(Z.A,{className:u.filterLabel,children:a}),(0,n.jsx)(b,{dateFormat:y.ih,dateMask:y.dz,defaultFromDate:eg.query.date_from?eI(eg.query.date_from):null,defaultToDate:eg.query.date_to?eI(eg.query.date_to):null,onSetDates:e=>eB(e),className:u.datepicker,inputClassName:u.datepickerInput,inputOpenClassName:u.datepickerInputOpen,labelFrom:"",labelTo:"",inputPlaceholder:"DD-MM-RRRR",customLabelFrom:(0,n.jsx)(Z.A,{className:u.datepickerLabel,children:e?"Od":"".concat(a," od")}),customLabelTo:(0,n.jsx)(Z.A,{className:u.datepickerLabel,children:e?"Do":"".concat(a," do")}),gridSpacing:{xs:"12px",md:"22px"},showIconOnMobile:!0,closeOnSelect:!0,mobileModeBreakpoint:D.Ay.breakpoints.values.md,shouldDisableDate:e=>!ev.some(t=>(0,s.A)(t,e)),disableFuture:!0,triggerOnlyOnDayClick:!0})]})})},eO=()=>{ee&&eu(null),et(e=>!e)};(0,d.useEffect)(()=>{eb||et(!1)},[eb]);let eB=e=>{let t=e[0],a=e[1],n=(0,N.A)(new Date(t)),i=(0,N.A)(new Date(a));n<1e3||i<1e3||(eN(1,"date_from",t),eN(1,"date_to",a),eb?eu(e=>({...e,date_from:t,date_to:a})):eC())};return(0,n.jsxs)(L.A,{id:ey,children:[(0,n.jsxs)(G.A,{container:!0,children:[ea&&(0,n.jsx)(L.A,{className:u.loaderOverlay,children:(0,n.jsx)(K.Ay,{isLoading:ea,text:"Trwa ładowanie",withOverlay:!0,size:K.iW.LG})}),(0,n.jsxs)(G.A,{item:!0,xs:12,children:[h&&(0,n.jsx)(Z.A,{variant:"subtitle1",align:"center",mb:"23px",className:u.supertitle,dangerouslySetInnerHTML:{__html:h}}),(0,n.jsxs)(L.A,{className:u.headerBox,children:[(0,n.jsx)(Z.A,{variant:(0,H.a)(null==m?void 0:m.hx),className:u.title,children:null==m?void 0:m.text}),eb&&(0,n.jsxs)(P.A,{direction:"row",className:u.filterWrapper,children:[(0,n.jsxs)(Z.A,{children:["Filtry ",ej>0&&"(".concat(ej,")")]}),(0,n.jsx)("button",{className:u.filterIcon,type:"button","aria-label":"Otw\xf3rz filtry",onClick:eO,children:(0,n.jsx)(_.A,{})})]})]}),x&&(0,n.jsx)(Z.A,{variant:"body3",align:"left",mt:"10px",className:u.subtitle,dangerouslySetInnerHTML:{__html:x}})]}),!eb&&(0,n.jsxs)(G.A,{item:!0,xs:3,children:[(0,n.jsx)(P.A,{className:u.filterAccordionContainer,direction:"column",spacing:8,children:eL(!0)}),(null==p||null==(a=p.date)?void 0:a.show)?eE(!0):(0,n.jsx)(n.Fragment,{})]}),(0,n.jsx)(G.A,{item:!0,xs:1}),(0,n.jsxs)(G.A,{item:!0,xs:eb?12:8,className:u.newsListColumn,children:[(0,n.jsxs)(P.A,{direction:"column",mt:"25px",children:[(0,n.jsxs)(F.A,{children:[(0,n.jsx)("h2",{children:"Lista aktualności"}),(0,n.jsx)("legend",{"aria-live":"polite",children:(null==el?void 0:el.count)>
11?"Znaleziono ".concat(null==el?void 0:el.count," aktualności"):"Nie znaleziono żadnych aktualności"})]}),(0,n.jsx)("ul",{className:u.newsListList,ref:ew,children:null==el||null==(l=el.results)?void 0:l.map(e=>{let{id:t,snippet:a,path:i}=e,{file:l,image:r,title:o,label:s,label_color:d,lead:c,publication_date:p,file_name:u,show_publication_time:m}=a;return(0,n.jsxs)("li",{children:["contents"===z&&(0,n.jsx)(ec,{path:i,image:r,title:o,label:s,label_color:d,lead:c,publication_date:p,show_publication_time:m},t),"file"===z&&(0,n.jsx)(Q,{file:l,file_name:u},t)]})})}),!(null==el||null==(r=el.results)?void 0:r.length)&&(0,n.jsx)(Z.A,{className:u.noResults,variant:"body1",children:"Brak wynik\xf3w"})]}),(null==el?void 0:el.count)>8&&(0,n.jsx)(L.A,{className:u.paginationWrapper,children:(0,n.jsx)(V.A,{current:Number(eg.query.page||"1"),pages:ef,onChangePage:eT,onChangePageByKeyboard:e=>{(null==ew?void 0:ew.current)&&(eT(e),setTimeout(()=>{let e=ew.current.querySelector("a, button, [tabindex]");e&&e.focus()},1e3))},renderMobileShowMoreBtn:!1,labelPrevious:q,labelNext:X,ariaLabelPrevious:$,ariaLabelNext:J})})]})]}),eb&&(0,n.jsx)(B.Ay,{isOpen:ee,title:"Filtry",handleClose:eO,size:B.Ih.XL,modalStyle:eb?B.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE:B.YT.DEFAULT,fullScreen:eb,className:u.modal,$_ID_MODAL_TITLE:"PKOBP_NEWS_FILTERS_MODAL",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L.A,{children:eL(!1)}),(0,n.jsx)(L.A,{children:(null==p||null==(o=p.date)?void 0:o.show)?eE(!1):(0,n.jsx)(n.Fragment,{})}),(0,n.jsx)(L.A,{className:u.mobileFilterBtnContainer,children:(0,n.jsx)(U.default,{onClickCallback:()=>{if(!ed)return void eO();Object.entries(ed).forEach(e=>{let[t,a]=e;return eN(1,t,null==a?void 0:a.toString())}),eC(),eO()},variant:"primary",ariaLabel:"Filtruj",children:"Filtruj"})})]})})]})}},38264:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:(0,n.jsxs)("g",{transform:"translate(-945 -774)",children:[(0,n.jsx)("path",{d:"M957-809a4,4,0,0,1,4-4h32a4,4,0,0,1,4,4Zm30-46a10.011,10.011,0,0,1-10,10,10.011,10.011,0,0,1-10-10,10.011,10.011,0,0,1,10-10A10.011,10.011,0,0,1,987-855Zm-4,0a6.007,6.007,0,0,0-6-6,6.007,6.007,0,0,0-6,6,6.007,6.007,0,0,0,6,6A6.007,6.007,0,0,0,983-855Zm20,.2a25.812,25.812,0,0,1-4.914,15.168l-3.574,4.14L977-818.192l-17.406-17.184-3.57-4.116A25.885,25.885,0,0,1,951-854.8,26.133,26.133,0,0,1,977-881,26.138,26.138,0,0,1,1003-854.8Zm-4,0A22.128,22.128,0,0,0,977-877a22.128,22.128,0,0,0-22,22.2,21.838,21.838,0,0,0,4.16,12.832l3.352,3.86L977-823.812l14.6-14.408,3.356-3.884A21.792,21.792,0,0,0,999-854.8Z",transform:"translate(16 1667)",fill:"inherit"}),(0,n.jsx)("rect",{width:"96",height:"96",transform:"translate(945 774)",fill:"inherit",opacity:"0"})]})})},41304:(e,t,a)=>{"use strict";a.d(t,{NY:()=>s,_n:()=>l,f3:()=>r,h1:()=>d});let n=["Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"];function i(){let e=new Date().getDay()-1;return -1===e&&(e=6),e}function l(e){if(!(null==e?void 0:e.length))return null;let t=e[i()];return t?"Obsługa got\xf3wkowa w godzinach ".concat(t,"."):null}function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||!Array.isArray(e)||0===e.length)return null;let a=new Date,n=i(),l=60*(0===a.getHours()?24:a.getHours())+a.getMinutes(),r=e.map(e=>({...e,to_hour:0===e.to_hour?24:e.to_hour})),s=r.find(e=>{let t=60*e.from_hour+e.from_minute,a=60*e.to_hour+e.to_minute;return n>=e.day&&n<=e.day_to&&l>=t&&l<=a});return s?0===s.from_hour&&24===s.to_hour?{isOpen:!0,label:"Całodobowo"}:{isOpen:!0,label:"Otwarte:",extraInfo:"do ".concat(s.to_hour,":").concat(0===s.to_minute?"00":s.to_minute)}:o(r,n,l,t)}let o=function(e,t,a){let i,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(let n=0;n<e.length;n++){let l=e[n],r=60*l.from_hour+l.from_minute,o=60*l.to_hour+l.to_minute;if(t>=l.day&&t<=l.day_to){if(a<r){i={...l,day:t};break}else if(a>o&&t+1>=l.day&&t+1<=l.day_to){i={...l,day:t+1};break}else if(a>o&&(null==e?void 0:e.length)>n+1){i=e[n+1];break}}}let r=(e,t)=>"".concat(e,":").concat(0===t?"00":t),o=(e,t)=>({isOpen:!1,label:"Zamknięte:",extraInfo:((e,t)=>{let a=n[e.day],i=r(e.from_hour,e.from_minute);if(t){let t=r(e.to_hour,e.to_minute);return"otwarcie w ".concat(a," ").concat(i," - ").concat(t)}return"Otwarcie, ".concat(a," ").concat(i)})(e,t)});return(null==i?void 0:i.day)?o(i,l):o(e[0],l)},s=e=>{let t=i(),a=[];for(let i=t;i<t+n.length;i++){let t=i%n.length,l=e.find(e=>e.day<=t&&e.day_to>=t),r=void 0!==l,o=r?l.from_hour.toString():"",s=r?l.from_minute.toString().padStart(2,"0"):"",d=r?l.to_hour.toString():"",c=r?l.to_minute.toString().padStart(2,"0"):"";a.push({day:n[t],hours:r?"od ".concat(o,":").concat(s," do ").concat(d,":").concat(c):"Zamknięte"})}return a},d=(e,t)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length))return!1;let a=i(),n=e[a];if(!n)return!1;let l=n.split("-"),r=l[0].split(":"),o=parseInt(r[0],10),s=parseInt(r[1],10),d=l[1].split(":"),c=parseInt(d[0],10),p=parseInt(d[1],10),u=t.find(e=>a>=e.day&&a<=e.day_to);return o!==(null==u?void 0:u.from_hour)||s!==(null==u?void 0:u.from_minute)||c!==(null==u?void 0:u.to_hour)||p!==(null==u?void 0:u.to_minute)}},41526:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=e=>{let{width:t="24",height:a="24",viewBox:i="0 0 24 24",fill:l="#000066"}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:t,height:a,viewBox:i,children:(0,n.jsx)("path",{fill:l,d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"})})}},43849:(e,t,a)=>{"use strict";a.d(t,{r:()=>l});var n=a(11923),i=a(53498);let l=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(0,n.A)())return"";if(t||a)return"".concat(window.location.origin).concat(e);{let t=window.location.search.substr(10,window.location.search.length),a=new URL("http://".concat(t)).host,n="".concat(a).concat(e);return"".concat((0,i.r)()).concat(n)}}},44807:(e,t,a)=>{"use strict";a.d(t,{DX:()=>h,Xd:()=>u,Yq:()=>c,dz:()=>b,ih:()=>g,k_:()=>p,kv:()=>f,nm:()=>y,ss:()=>x,vd:()=>d});var n=a(2940),i=a(65951),l=a(69699),r=a(48793),o=a(42955);let s=e=>null===e||""===e,d=e=>!!s(e)||(0,r.A)(new Date(e)),c=(e,t,a)=>{try{if(s(e))return null;if(!d(e))throw Error();return(0,l.A)(e,a||(t?h:m),{locale:o.A})}catch(e){return"Invalid Date"}},p=e=>{try{if(s(e))return null;if(!d(e))throw Error();return(0,n.A)(e)}catch(e){return"Invalid Date"}},u=(e,t)=>
1{try{if(s(e))return null;if(!d(e))throw Error();return(0,i.A)(e,t)}catch(e){return"Invalid Date"}},m="yyyy-MM-dd HH:mm:ss",h="yyyy-MM-dd",x="____-__-__",g="dd-MM-yyyy",y="dd.MM.yyyy",b="__-__-____",f="__.__.____"},46525:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>S});var n=a(26514),i=a(2214),l=a(70504),r=a(75834),o=a(51603),s=a(54907),d=a(6395),c=a(93794),p=a(54004),u=a(2991),m=a(81132),h=a(34453),x=a(97469),g=a(33872),y=a(53303),b=a(99090),f=a(34653),v=a(13436),w=a(42920),A=a(69001),_=a.n(A),j=a(44807);let k=c.Df.withName("PKOBPRecentNewsItem").create(()=>({item:{display:"block",border:"1px solid ".concat(p.Ay.palette.secondary.main),textDecoration:"none",color:"inherit",borderRadius:"12px",padding:"32px",minHeight:"284px",margin:0,marginBottom:"28px",transition:p.Ay.transitions.create(["box-shadow"]),[p.Ay.breakpoints.up("sm")]:{borderRadius:"16px",marginBottom:"22px"},boxShadow:p.Ay.palette.shadows.basicSmaller.normal,"&:hover":{boxShadow:p.Ay.palette.shadows.basicSmaller.hover},"&.item__carousel":{boxShadow:p.Ay.palette.shadows.mobileBasicSmaller.normal,"&:hover":{boxShadow:p.Ay.palette.shadows.mobileBasicSmaller.hover},marginBottom:"10px",padding:"24px 19px 18px 19px",minHeight:"156px",width:"100%",[p.Ay.breakpoints.up("sm")]:{minHeight:"196px",padding:"24px 20px",marginBottom:"12px"},[p.Ay.breakpoints.up(900)]:{minHeight:"216px"},[p.Ay.breakpoints.up("md")]:{minHeight:"284px",padding:"32px"}}},title:{...p.Ay.typography.h4,fontSize:"16px",marginTop:"8px",marginBottom:"28px",[p.Ay.breakpoints.down("sm")]:{fontSize:"16px"},[p.Ay.breakpoints.up("sm")]:{marginTop:"18px",marginBottom:"22px"},[p.Ay.breakpoints.up("md")]:{fontSize:"24px"},".item__carousel &":{marginTop:"8px",marginBottom:0,[p.Ay.breakpoints.up("sm")]:{marginTop:"14px"}}},leadContainer:{fontWeight:300,fontSize:"16px",marginTop:"20px","& p":{margin:0}},date:{height:"20px",".item__carousel &":{color:p.Ay.palette.grey["700"]}},badge:{fontWeight:300,padding:"1px 5px",background:p.Ay.palette.secondary.borders,borderRadius:"4px",height:"20px",overflow:"hidden",marginLeft:"6px",display:"flex",alignItems:"center"},badgeText:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline",lineHeight:"normal"},ellipsisMultiline:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box","-webkit-line-clamp":"4","-webkit-box-orient":"vertical",[p.Ay.breakpoints.up("sm")]:{"-webkit-line-clamp":"2"}},ellipsisMultiline3:{"-webkit-line-clamp":"3"}})),C=e=>{let{cy:t,item:a,frameColor:i,isCarousel:o=!1,hideLead:d=!1,isTablet:c,target:h}=e,{classes:x,cx:g}=k(),y=(0,r.useContext)(l.zp),b=(0,r.useContext)(v.G),f=(0,m.bJ)(b,u.YU.RECENT_NEWS_ITEM,a.document_id),A=(null==a?void 0:a.label_background_color)==="#CBD6E6"||(null==a?void 0:a.label_background_color)==="#FFC787",C=(null==a?void 0:a.label_background_color)||p.Ay.palette.secondary.main,N="".concat((null==a?void 0:a.publish_date)?(0,j.Yq)(new Date(a.publish_date),!0,"dd.MM.yyyy"):null," ").concat((null==a?void 0:a.label_text)||""," ").concat(a.name,". ").concat((null==a?void 0:a.lead_text)||""," ").concat("_blank"===h?" Uwaga, link otworzy się w nowym oknie":"");return(0,n.jsxs)("a",{className:_()(x.item,{item__carousel:o}),href:a.front_url,target:h,style:{borderColor:(null==a?void 0:a.label_text)?C:(e=>"#636363"===e?p.Ay.palette.secondary.main:e)(i)},onClick:e=>{y&&e.preventDefault()},"data-cy":"".concat(t,"--item"),draggable:!1,"aria-label":N,id:f,"data-id":a.document_id,children:[(0,n.jsxs)(s.A,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,n.jsx)(w.A,{variant:"body4",weight:300,marginTop:0,marginBottom:0,className:x.date,"data-cy":"".concat(t,"--item-date"),children:(null==a?void 0:a.publish_date)?(0,j.Yq)(new Date(a.publish_date),!0,"dd.MM.yyyy"):null}),!!(null==a?void 0:a.label_text)&&(0,n.jsx)(s.A,{className:x.badge,style:{background:C,color:(null==a?void 0:a.label_text_color)?null==a?void 0:a.label_text_color:(null==a?void 0:a.label_text_color)||A?p.Ay.palette.text.primary:p.Ay.palette.common.white},children:(0,n.jsx)(w.A,{variant:"body4",weight:500,marginTop:0,marginBottom:0,"data-cy":"".concat(t,"--item-badge"),className:x.badgeText,children:a.label_text})})]}),(0,n.jsx)(s.A,{children:(0,n.jsx)(w.A,{variant:"body1",className:g(x.title,x.ellipsisMultiline),"data-cy":"".concat(t,"--item-name"),dangerouslySetInnerHTML:{__html:a.name}})}
1),!d&&(0,n.jsx)(s.A,{className:g(x.leadContainer,x.ellipsisMultiline,{[x.ellipsisMultiline3]:!c}),children:(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:a.lead_text},"data-cy":"".concat(t,"--item-content")})})]})},N=c.Df.withName("PKOBPRecentNews").create(()=>({slickContainer:{"& .slick-list":{[p.Ay.breakpoints.down("sm")]:{margin:"0 -16px",padding:"0 16px"},[p.Ay.breakpoints.between("sm","md")]:{margin:"0 -8px"},"&.isLast .slick-track":{[p.Ay.breakpoints.down("sm")]:{transform:"translate3d(calc(-756px + 100vw), 0px, 0px) !important"}}},"& .slick-dots":{marginBottom:"17px"},"& .slick-slide":{[p.Ay.breakpoints.down("sm")]:{width:"228px",margin:"0 8px"},"&>div":{[p.Ay.breakpoints.up("sm")]:{padding:"0 8px"}}}},title:{...p.Ay.typography.h2,marginTop:"0",marginBottom:"16px",[p.Ay.breakpoints.up("md")]:{marginBottom:"40px"}},button:{display:"inline-block",padding:"16px 44px",transition:"color 0.3s ease-in-out",margin:0,lineHeight:1}})),S=e=>{let{...t}=e,{classes:a}=N(),c=(0,r.useContext)(v.G),A=(0,r.useContext)(l.zp),{title:_,link:j,default_frame_color:k,single_news_frame_color:S,news_items:T,type:z}=t,L=(0,x.U)("RecentNews",t.name,null==_?void 0:_.text),P=(0,d.A)(p.Ay.breakpoints.down("sm")),I=(0,d.A)(p.Ay.breakpoints.down("md")),{carouselRef:E,setRoleAttributesForSlides:O,regenerateAttributesForForVisibleSlides:B,setCarouselDotsAccessability:F}=(0,f.A)(u.YU.NEWS_ITEM),D=(null==T?void 0:T.length)>3||I;return(0,n.jsxs)(s.A,{"data-cy":L,className:a.container,id:c,children:[(0,n.jsx)(s.A,{children:(0,n.jsx)(w.A,{variant:(0,h.a)(null==_?void 0:_.hx),align:"center","data-cy":"".concat(L,"--title"),className:a.title,dangerouslySetInnerHTML:{__html:null==_?void 0:_.text},size:null==_?void 0:_.size})}),A&&!T.length&&!T.length&&(0,n.jsx)(i.A,{}),(0,n.jsx)(s.A,{children:(null==T?void 0:T.length)>0&&D?(0,n.jsx)(o.A,{...{slidesToShow:P?1:I&&!P?2:3,slidesToScroll:1,initialSlide:0,infinite:!1,mobileFirst:!0,swipeToSlide:!0,arrows:!1,dots:!0,touchThreshold:100,variableWidth:P,beforeChange:(e,t)=>
1{let a=document.querySelector("#".concat(c," .slick-list"));2===t?a.classList.add("isLast"):a.classList.remove("isLast")},onInit:()=>{O(),F()},onReInit:()=>{B(),F()},afterChange:()=>{B()}},className:a.slickContainer,ref:E,children:T.map(e=>(0,n.jsx)(C,{item:e,frameColor:"default"===e.news_type?k:S,isCarousel:!0,hideLead:P,cy:L,isTablet:I,target:"newscarousel"===z?"_self":"_blank"},e.document_id))}):(0,n.jsx)(b.A,{container:!0,role:"list",children:(null==T?void 0:T.length)>0&&T.map(e=>(0,n.jsx)(b.A,{item:!0,xs:12,md:4,role:"listitem",children:(0,n.jsx)(C,{item:e,frameColor:"default"===e.news_type?k:S,cy:L,target:"newscarousel"===z?"_self":"_blank"})},e.document_id))})}),(null==j?void 0:j.href)&&(0,n.jsx)(s.A,{display:"flex",justifyContent:"center",children:(0,n.jsx)(y.default,{variant:"textBlue",...(0,g.zf)({link:j,isWorkspace:A,idGTM:(0,m.bJ)(c,u.YU.LINK,j.id)}),ariaLabel:(null==j?void 0:j.aria_label)||"Zobacz wszystkie aktualności",label:(null==j?void 0:j.label)||"Zobacz wszystkie",name:"Button-news",className:a.button})})]})}},47983:(e,t,a)=>{"use strict";a.d(t,{_:()=>i});var n=a(54004);let i={".pkobp-wysiwyg__modalStyles":{[n.Ay.breakpoints.down("md")]:{marginTop:"16px"},"& h2, & h3, & h4, & h5, & h6":{margin:"0 0 16px 0",fontSize:"20px",lineHeight:"24px",fontWeight:600,"&:not(:first-child)":{marginTop:"40px !important"},[n.Ay.breakpoints.down("md")]:{margin:"0 0 13px 0",fontSize:"18px",lineHeight:"24px","&:not(:first-child)":{marginTop:"16px !important"}}},"& h1":{margin:"0 0 32px 0",fontSize:"24px",lineHeight:"32px",marginTop:"16px !important",fontWeight:600},"& p":{marginTop:"0px",marginBottom:"8px",fontWeight:300,lineHeight:"24px",[n.Ay.breakpoints.down("md")]:{lineHeight:"20px",marginBottom:"0px"}},"& span":{lineHeight:"1"},"& ul":{marginBottom:"24px",[n.Ay.breakpoints.down("md")]:{lineHeight:"20px",marginTop:"13px"},"& li":{paddingBottom:"6px"},"& ul li":{lineHeight:"23.8px"}},"& a":{fontWeight:400},'& ul[style="list-style-type: checks;"], & ul[style="list-style-type:checks"]':{paddingLeft:"26px","& li":{marginBottom:"21px",lineHeight:"20px",paddingTop:"2px","& strong":{display:"inline-block",marginBottom:"6px"}}},"& ol":{marginTop:"17px",paddingLeft:"2px","& li":{lineHeight:"24px",paddingBottom:"8px",[n.Ay.breakpoints.down("md")]:{lineHeight:"20px"},"& ol":{paddingLeft:"1px"},"& li":{}}},"& img":{marginTop:"8px"},"& li":{fontWeight:300}}}},50555:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=e=>{let{width:t="24",height:a="24",viewBox:i="0 0 24 24"}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:t,height:a,viewBox:i,children:(0,n.jsx)("path",{fill:"#000066",d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"})})}},51081:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsxs)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"96",height:"96",viewBox:"0 0 96 96",children:[(0,n.jsx)("rect",{width:"96",height:"96",fill:"none",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(20 28.028)",children:[(0,n.jsx)("path",{"data-name":"Path 16568",d:"M5,23.037H61v-16H5Zm52.028-4H9v-8H57.008Z",transform:"translate(-5 -7.037)",fill:"inherit"}),(0,n.jsx)("path",{"data-name":"Path 16569",d:"M5,29.009H61V13.037H5Zm52.028-3.972H9v-8H57.008Z",transform:"translate(-5 10.963)",fill:"inherit"})]})]})},51507:(e,t,a)=>{"use strict";a.d(t,{A:()=>b});var n=a(26514),i=a(69001),l=a.n(i),r=a(99257),o=a(75834),s=a(93794),d=a(18662),c=a(89342),p=a(6234),u=a(56264),m=a(54907),h=a(74608),x=a(54004),g=a(13436);let y=s.Df.withName("PKOBPConsentField").create(()=>({msg:{"&&.Mui-error":{marginLeft:"38px",marginBottom:"5px",marginTop:0,lineHeight:1,fontSize:"0.8571428571428571rem",[x.Ay.breakpoints.down("sm")]:{marginLeft:"36px"}}},showDescription:{marginLeft:"37px",lineHeight:1,"& > button":{lineHeight:1,position:"relative","& *":{lineHeight:1}},[x.Ay.breakpoints.down("sm")]:{marginLeft:"36px"}},checkboxWrapper:{marginBottom:"23px",[x.Ay.breakpoints.down("sm")]:{marginBottom:"21px"}},checkboxWrapper__isBoldLabel:{marginBottom:"15px"},checkbox:{width:"100%",alignItems:"start",margin:0,"& .MuiFormControl
1Label-label":{fontSize:"14px",marginTop:"3px",fontFamily:x.Ay.typography.fontFamily,[x.Ay.breakpoints.down("sm")]:{marginTop:"6px",lineHeight:"20px"}}},checkbox__isBoldLabel:{"& .MuiFormControlLabel-label":{fontWeight:600,fontSize:"16px"}},checkboxInput:{padding:"0 13px 0 0",[x.Ay.breakpoints.down("sm")]:{padding:"0 14px 0 0"},"& input:focus + span":{border:"solid 1px",borderColor:x.Ay.palette.primary.hover},"& input:focus + svg":{fill:x.Ay.palette.primary.hover},"& input:focus-visible + svg":{outline:"1px solid black",borderRadius:"4px"},"& .MuiSvgIcon-root":{marginLeft:"-3px"}},checkboxIcon:{background:"#fff",display:"inline-block",width:"20px",height:"20px",border:"solid 1px ".concat(x.Ay.palette.secondary.bordersDark),borderRadius:"2px",margin:"3px 3px 3px 0"}})),b=e=>{let{field:t,formik:a,hideError:i,className:s,disabled:x}=e,{classes:b}=y(),f=t.name,{display_name:v,content:w,link_label:A="",link_label_expanded:_="",error_message:j=""}=t,k=(0,o.useContext)(g.G)+"-appr-"+t.name;return(0,n.jsxs)(d.A,{className:l()(b.checkboxWrapper,s),children:[(0,n.jsx)(c.A,{className:b.checkbox,control:(0,n.jsx)(p.A,{disableRipple:!0,id:k,name:t.name,className:l()(b.checkboxInput,"CheckboxField__input"),checked:!!(0,r.O6)(a.values,f),onChange:e=>a.handleChange(e),sx:{"& .MuiSvgIcon-root":{fontSize:26}},icon:(0,n.jsx)("span",{className:b.checkboxIcon}),inputProps:{tabIndex:0,"aria-invalid":!!j||!!(0,r.O6)(a.errors,f),"aria-describedby":"".concat(k,"--error")},disabled:x}),label:(0,n.jsx)("label",{dangerouslySetInnerHTML:{__html:v},htmlFor:k})}),i?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)(n.Fragment,{children:(0,r.O6)(a.touched,f)&&(0,r.O6)(a.errors,f)&&(0,n.jsx)(u.A,{className:b.msg,error:!0,id:"".concat(k,"--error"),children:j||(0,r.O6)(a.errors,f)})}),w&&(0,n.jsx)(m.A,{className:l()(b.showDescription,"agreement-description"),children:(0,n.jsx)(h.A,{expandLabel:A?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:A}}):"Rozwiń pełną treść",collapseLabel:_?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:_}}):"Zwiń pełną treść",text:w,cy:"ConsentField"})})]},t.name)}},52597:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var n=a(26514),i=a(69001),l=a.n(i),r=a(75834);let o=()=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,n.jsx)("rect",{width:"24",height:"24",fill:"#000066",opacity:"0"}),(0,n.jsx)("path",{d:"M-351.865-414.849a1.482,1.482,0,0,1,2.122,0l-7.048,7.047-4.973-4.926a1.469,1.469,0,0,1,2.121,0l2.829,2.829Z",transform:"translate(368 424)",fill:"#000066"})]});var s=a(11),d=a(93794),c=a(54004),p=a(53303);let u=d.Df.withName("PKOBPPill").create(()=>({btn:{borderRadius:"24px",borderColor:c.Ay.palette.secondary.bordersDark,minWidth:"unset",padding:"18px 24px 16px 24px",position:"relative","&:hover, &:focus":{backgroundColor:c.Ay.palette.secondary.hover,borderColor:c.Ay.palette.secondary.bordersDark},"& svg":{minWidth:"24px"}},btn__active:{paddingLeft:"15px","&, &:hover, &:focus":{backgroundColor:"#D6E0FF",color:c.Ay.palette.primary.main,borderColor:"#00006699"}},btn__small:{},btn__mobileStyles:{[c.Ay.breakpoints.down("md")]:{padding:"10px 20px",fontSize:"14px",lineHeight:"20px"}},textEllipsis:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},endAdornment:{marginLeft:"6px !important"},endAdornment__ellipsis:{marginLeft:"0 !important"}})),m=e=>{let{label:t,key:a,isActive:i,enableMobileStyles:d=!1,showTickIcon:c=!1,textEllipsis:m=!1,small:h=!1,classname:x="",id:g,cy:y,handleClickCallback:b,endAdornment:f,role:v,ariaSelected:w,ariaChecked:A,ariaExpanded:_,ariaControls:j,ariaLabel:k,tabIndex:C,onKeyDown:N,iconLeft:S=null,iconRight:T=null}=e,{classes:z}=u(),[L,P]=(0,r.useState)(!1),I=(0,r.useRef)(null),E=c&&i;return(0,r.useEffect)(()=>{var e,t;P((null==I||null==(e=I.current)?void 0:e.offsetWidth)<(null==I||null==(t=I.current)?void 0:t.scrollWidth))},[]),(0,n.jsx)(p.default,{variant:"secondary",className:l()(z.btn,{[z.btn__active]:i},{[z.btn__small]:h},{[z.btn__mobileStyles]:d},x),cy:"".concat(y,"--pill"),onClickCallback:e=>b(e),ariaLabel:k||t,id:g,role:v,ariaSelected:w,ariaChecked:A,ariaExpanded:_,ariaControl
1s:j,tabIndex:C,onKeyDown:N,children:(0,n.jsxs)(s.A,{component:"span",direction:"row",alignItems:"center",spacing:1,width:"100%",children:[E&&(0,n.jsx)(o,{}),S,m?(0,n.jsx)("span",{className:z.textEllipsis,ref:I,children:t}):t,f&&(0,n.jsx)("span",{className:l()(z.endAdornment,{[z.endAdornment__ellipsis]:L}),children:f}),T]})},a)}},53445:(e,t,a)=>{"use strict";a.d(t,{E:()=>i,s:()=>n});let n=[{value:"list",label:"Lista"},{value:"grid",label:"Grid"}],i="list"},56286:(e,t,a)=>{"use strict";a.d(t,{lX:()=>i,xM:()=>n});let n={key:"priceFilter",title:"Cena (zł)",type:"inputRange"},i={min:null,max:null}},56634:(e,t,a)=>{"use strict";a.d(t,{A:()=>p,p:()=>c});var n=a(26514),i=a(48216),l=a(23469),r=a.n(l);a(75834);var o=a(2991),s=a(13436);let d=r()(()=>a.e(1984).then(a.bind(a,51984)),{loadableGenerated:{webpack:()=>[51984]}}),c="NAVIGATIONBAR",p=e=>{let t=o.YU.NAVIGATION_BAR;return(0,n.jsx)(s.A,{...(0,i.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized"),prefix:t,datatype:c,children:(0,n.jsx)(d,{...e})})}},57335:(e,t,a)=>{"use strict";a.d(t,{A:()=>p,Q:()=>c});var n=a(26514),i=a(48216),l=a(23469),r=a.n(l);a(75834);var o=a(2991),s=a(13436);let d=r()(()=>a.e(4430).then(a.bind(a,14430)),{loadableGenerated:{webpack:()=>[14430]}}),c="ALERT",p=e=>{let t=o.JH.ALERT;return(0,n.jsx)(s.A,{...(0,i.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized"),prefix:t,datatype:c,children:(0,n.jsx)(d,{...e})})}},58735:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=e=>{let{color:t}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",children:(0,n.jsxs)("g",{transform:"translate(-281 -315)",children:[(0,n.jsx)("rect",{width:"32",height:"32",transform:"translate(281 315)",fill:"#000066",opacity:"0"}),(0,n.jsxs)("g",{transform:"translate(577 451)",children:[(0,n.jsx)("rect",{"data-name":"Rectangle 1894",width:"32",height:"32",transform:"translate(-296 -136)",fill:"#000066",opacity:"0"}),(0,n.jsx)("path",{"data-name":"Path 2425",d:"M-285.5-127.363l3.665,3.665-1.1,2.755-.225.564.4.46a40.507,40.507,0,0,0,4.128,4.127l.461.4.566-.227,2.755-1.1,3.664,3.665-2.38,4.163a40.155,40.155,0,0,1-16.091-16.09l4.164-2.38m.167-1.247L-291-125.371l.3.57a41.141,41.141,0,0,0,16.944,16.944l.57.3,3.24-5.668-4.671-4.672-3.366,1.348a39.309,39.309,0,0,1-4.026-4.024l1.347-3.368-4.671-4.671Z",fill:t||"#000066"}),(0,n.jsx)("path",{"data-name":"Path 2426",d:"M-279.554-126.5l3.5-3.5a1.116,1.116,0,0,1,0,1.5l-1.5,1.5,8.554.007V-126h-8.554l1.5,1.5a1.115,1.115,0,0,1,0,1.5Z",fill:t||"#000066"})]})]})})}},58751:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var n=a(26514),i=a(69001),l=a.n(i);a(75834);var r=a(93794),o=a(6395),s=a(98938),d=a(54004),c=a(53303);let p="SearchResultPagination",u=r.Df.withName("PKOBPPagination").create(()=>({box:{display:"flex",alignItems:"center",justifyContent:"center",width:"100%",flexWrap:"nowrap"},pages:{display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"nowrap",padding:"0",margin:"0",listStyle:"none"},btn:{margin:0,padding:"10px 12px 8px 12px",minHeight:"auto",maxHeight:"34px",minWidth:"34px",borderColor:"transparent",borderRadius:"8px",color:d.Ay.palette.primary.main}
1,btn__active:{borderColor:d.Ay.palette.secondary.borders,fontWeight:"bold"},btn__disableInteraction:{pointerEvents:"none",lineHeight:"20px",border:"1px solid transparent"},btn__number:{margin:"0 3px"},btn__prev:{marginRight:"26px"},btn__next:{marginLeft:"26px"},btnMobile:{width:"100%",borderRadius:"4px"}})),m=e=>{let{pages:t,current:a,onChangePage:i,onChangePageByKeyboard:r,renderMobileShowMoreBtn:m=!0,labelPrevious:h,labelNext:x,ariaLabelPrevious:g,ariaLabelNext:y}=e,{classes:b}=u(),f=(0,o.A)(d.Ay.breakpoints.down("md")),v=(e,t)=>{t===a?e.preventDefault():i(t)},w=(e,t)=>{("Enter"===e.key||" "===e.key)&&r&&(e.preventDefault(),r(t))},A=e=>{let{page:t}=e;return"..."===t?(0,n.jsx)("span",{tabIndex:-1,className:l()(b.btn,b.btn__number,b.btn__disableInteraction),children:t}):(0,n.jsx)(c.default,{variant:"secondary",className:l()(b.btn,b.btn__number,{[b.btn__active]:t===a}),onClickCallback:e=>v(e,t),onKeyDown:e=>w(e,t),ariaLabel:"Przejdź do strony numer ".concat(t),cy:"".concat(p,"--page").concat(t),id:"".concat(p,"--page").concat(t),children:t})};return f&&m?(0,n.jsx)(s.A,{component:"nav",role:"navigation","data-cy":"".concat(p,"--container"),className:b.box,"aria-label":"Nawigacja w paginacji",children:(0,n.jsx)(c.default,{variant:"secondary",className:b.btnMobile,onClickCallback:e=>v(e,a+1),disabled:a>=t,ariaLabel:"Pokaż więcej",cy:"".concat(p,"--showMore"),id:"".concat(p,"--showMore"),children:"Pokaż więcej"})}):(0,n.jsxs)(s.A,{component:"nav",role:"navigation","data-cy":"".concat(p,"--container"),className:b.box,"aria-label":"Zmiana strony",children:[!f&&(0,n.jsx)(c.default,{variant:"secondary",className:l()(b.btn,b.btn__prev),onClickCallback:e=>v(e,a-1),onKeyDown:e=>w(e,a-1),disabled:a<=1,ariaLabel:g||"Przejdź do poprzedniej strony",cy:"".concat(p,"--prev"),id:"".concat(p,"--prev"),children:h||"Poprzednia"}),(0,n.jsx)(s.A,{component:"ul",className:b.pages,children:((e,t)=>{let a=isNaN(Number(e))?0:Number(e),n=isNaN(Number(t))?0:Number(t);if(a<n&&(n=a),0>=n&&a>=1&&(n=1),a<=7)return Array.from({length:a}).map((e,t)=>t+1);{let e=[1];return 1===n||2===n?e.push(2,3,"...",a):n===a||n===a-1?e.push("...",a-2,a-1,a):(n>3&&e.push("..."),e.push(n-1,n,n+1),n<a-2&&e.push("..."),e.push(a)),e}})(t,a).map((e,t)=>(0,n.jsx)("li",{children:(0,n.jsx)(A,{page:e})},"paginationPage".concat(e)))}),!f&&(0,n.jsx)(c.default,{variant:"secondary",className:l()(b.btn,b.btn__next),onClickCallback:e=>v(e,a+1),onKeyDown:e=>w(e,a+1),disabled:a>=t,ariaLabel:y||"Przejdź do następnej strony",cy:"".concat(p,"--next"),id:"".concat(p,"--next"),children:x||"Następna"})]})}},60263:(e,t,a)=>{"use strict";a.d(t,{A:()=>p,m:()=>c});var n=a(26514),i=a(48216),l=a(23469),r=a.n(l);a(75834);var o=a(2991),s=a(13436);let d=r()(()=>a.e(8658).then(a.bind(a,88658)),{loadableGenerated:{webpack:()=>[88658]}}),c="SCROLLMENU",p=e=>{let t=o.YU.SCROLL_MENU;return(0,n.jsx)(s.A,{...(0,i.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized","spacings"),prefix:t,datatype:c,children:(0,n.jsx)(d,{...e})})}},69863:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=()=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32","aria-hidden":!0,children:(0,n.jsxs)("g",{transform:"translate(-465 -335)",children:[(0,n.jsx)("path",{"data-name":"Path 16373",d:"M5.333,7.833H17.428a2.654,2.654,0,0,0,5.144,0h2.761A1.306,1.306,0,0,0,24,6.5H22.572a2.654,2.654,0,0,0-5.144,0H4A1.306,1.306,0,0,0,5.333,7.833ZM20,5.833a1.316,1.316,0,0,1,1.128.667,1.185,1.185,0,0,1,0,1.333,1.288,1.288,0,0,1-2.256,0,1.185,1.185,0,0,1,0-1.333A1.316,1.316,0,0,1,20,5.833Z",transform:"translate(466.333 336.5)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 16374",d:"M24,17.5H22.572a2.654,2.654,0,0,0-5.144,0H4a1.306,1.306,0,0,0,1.333,1.333H17.428a2.654,2.654,0,0,0,5.144,0h2.761A1.306,1.306,0,0,0,24,17.5Zm-4,2a1.316,1.316,0,0,1-1.128-.667,1.185,1.185,0,0,1,0-1.333,1.288,1.288,0,0,1,2.256,0,1.185,1.185,0,0,1,0,1.333A1.316,1.316,0,0,1,20,19.5Z",transform:"translate(466.333 340.167)",fill:"#000066"}),(0,n.jsx)("path",{"data-name":"Path 16375",d:"M24,12H11.905a2.654,2.654,0,0,0-5.144,0H4a1.306,1.306,0,0,0,1.333,1.333H6.761a2.654,2.654,0,0,0,5.144,0H25.333A1.306,1.306,0,0,0,24,12ZM9.333,14a1.316,1.316,0,0,1-1.128-.667,1.185,1.185,0,0,1,0-1.333,1.288,1.288,0,0,1,2.256,0,1.185,1.185,0,0,1,0,1.333A1.316,1.316,0,0,1,9.333,14Z",transform:"translate(466.333 338.333)",fill:"#000066"}),(0,n.jsx)("rect",{"data-name":"Rectangle 5682",width:"32",height:"32",transform:"translate(465 335)",fill:"none",opacity:"0.005"})]})})},74608:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var n=a(26514),i=a(69001),l=a.n(i),r=a(62176),o=a(75834),s=a(93794),d=a(54004),c=a(53303),p=a(42920);let u=s.Df.withName("PKOBPExpandableText").create(()=>({btnExpand:{margin:"0px !important"},expandedText:{fontSize:"14px",margin:0,marginTop:"3px"},expandLinkText:{display:"flex","& p":{display:"flex",alignItems:"center",color:d.Ay.palette.primary.main,fontSize:"14px",margin:0,whiteSpace:"break-spaces",textAlign:"left"}},expandLinkText__expanded:{"& svg":{transform:"rotate(180deg)"}},iconBox:{position:"relative","& svg":{position:"absolute",top:"-5px",left:0}},iconBox_info:{"& svg":{top:"-2px"}}})),m=e=>{var t;let{text:a,expandLabel:i="Zobacz pełną treść",collapseLabel:s="Zwiń",cy:d,isInfo:m=!1}=e,{classes:h}=u(),[x,g]=(0,o.useState)(!1),y=null==a||null==(t=a.trim())?void 0:t.split(" "),b=x?y:null==y?void 0:y.slice(0,0),f=null==b?void 0:b.join(" ");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.default,{className:h.btnExpand,variant:"text",onClickCallback:()=>g(!x),cy:d,ariaExpanded:x,ariaLabel:(()=>{var e,t,a,n;let l=o.isValidElement(i)?null==i||null==(t=i.props)||null==(e=t.dangerouslySetInnerHTML)?void 0:e.__html:i,r=o.isValidElement(s)?null==s||null==(n=s.props)||null==(a=n.dangerouslySetInnerHTML)?void 0:a.__html:s;return x?r:l})(),children:(0,n.jsx)("div",{className:l()(h.expandLinkText,{[h.exp
1andLinkText__expanded]:x}),children:(0,n.jsx)(p.A,{variant:"body1",children:(0,n.jsxs)("span",{children:[x?s:i,(0,n.jsxs)("span",{className:l()(h.iconBox,{[h.iconBox_info]:m}),children:["\xa0",(0,n.jsx)(r.A,{})]})]})})})}),f&&(0,n.jsx)(p.A,{variant:"body1",className:h.expandedText,dangerouslySetInnerHTML:{__html:a}})]})}},74621:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var n=a(26514);a(75834);var i=a(93794),l=a(98938),r=a(74608);let o=i.Df.withName("PKOBPAdditionalAgreements").create(()=>({container:{margin:0,lineHeight:"20px",marginBottom:"23px"},displayName:{marginBottom:"0px",fontSize:"14px"}})),s=e=>{let{display_name:t,content:a,link_label:i,link_label_expanded:s}=e,{classes:d}=o();return(0,n.jsxs)(l.A,{className:d.container,children:[(0,n.jsx)("div",{className:d.displayName,dangerouslySetInnerHTML:{__html:t}}),!!a&&(0,n.jsx)(r.A,{expandLabel:i||"Rozwiń pełną treść",collapseLabel:s||"Zwiń pełną treść",text:a,isInfo:!0})]})}},74867:(e,t,a)=>{"use strict";a.d(t,{R1:()=>r,Vr:()=>o});var n=a(26514),i=a(75834);let l=(0,i.createContext)(null),r=e=>{let{children:t,mainHx:a}=e;return(0,n.jsx)(l.Provider,{value:a,children:t})},o=()=>(0,i.useContext)(l)},75174:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});let n=e=>(null==e?void 0:e.src)||e},76380:(e,t,a)=>{"use strict";a.d(t,{h:()=>n});let n=[{value:"dolnoslaskie",label:"dolnośląskie"},{value:"kujawsko_pomorskie",label:"kujawsko-pomorskie"},{value:"lubelskie",label:"lubelskie"},{value:"lubuskie",label:"lubuskie"},{value:"lodzkie",label:"ł\xf3dzkie"},{value:"malopolskie",label:"małopolskie"},{value:"mazowieckie",label:"mazowieckie"},{value:"opolskie",label:"opolskie"},{value:"podkarpackie",label:"podkarpackie"},{value:"podlaskie",label:"podlaskie"},{value:"pomorskie",label:"pomorskie"},{value:"slaskie",label:"śląskie"},{value:"swietokrzyskie",label:"świętokrzyskie"},{value:"warminsko_mazurskie",label:"warmińsko-mazurskie"},{value:"wielkopolskie",label:"wielkopolskie"},{value:"zachodniopomorskie",label:"zachodniopomorskie"}]},77978:(e,t,a)=>{"use strict";a.d(t,{E:()=>m,U:()=>u});var n=a(42955),i=a(27433),l=a(84042),r=a(23034),o=a(53025),s=a(37817),d=a(49898),c=a(74013),p=a(85058);let u={pl:d.$,en:c.c,de:p.z,ro:c.c,cs:c.c,sk:c.c},m={pl:n.A,en:i.A,de:l.A,ro:r.A,cs:o.A,sk:s.A}},78892:(e,t,a)=>{"use strict";a.d(t,{X:()=>n,w:()=>i});let n=e=>{var t;return(null==e||null==(t=e.extension)?void 0:t.toLowerCase())==="svg"},i=e=>e&&!n(e)?{height:null==e?void 0:e.image_height,width:null==e?void 0:e.image_width}:{}},80035:(e,t,a)=>{"use strict";a.d(t,{l:()=>i,y:()=>n});let n=9,i=1},80964:(e,t,a)=>{"use strict";function n(e){for(var t=arguments.length,a=Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];return a.reduce((e,t)=>(delete e[t],e),{...e})}a.d(t,{A:()=>n})},83418:(e,t,a)=>{"use strict";a.d(t,{v:()=>n});let n=e=>e&&({polski:"pl",angielski:"en",rumuński:"ro",ukraiński:"uk",czeski:"cs",słowacki:"sk",rosyjski:"ru",niemiecki:"de"})[e.toLowerCase()]||"pl"},83531:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var n=a(26514);a(75834);var i=a(93794),l=a(98938);let r=i.Df.withName("PKOBPBlueDivider").create(()=>({container:{display:"flex",alignItems:"stretch",justifyContent:"flex-start",height:"4px",width:"100%","& > *":{width:"100%"}},dark:{background:"#0033CC"},normal:{background:"#4578EE"},light:{background:"#9DBBFF"}})),o=()=>{let{classes:e}=r();return(0,n.jsxs)(l.A,{className:e.container,"data-cy":"BlueDivider",children:[(0,n.jsx)(l.A,{className:e.dark}),(0,n.jsx)(l.A,{className:e.normal}),(0,n.jsx)(l.A,{className:e.light})]})}},84013:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var n=a(26514);a(75834);let i=e=>{let{width:t="24",height:a="24",viewBox:i="0 0 24 24"}=e;return(0,n.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:t,height:a,viewBox:i,children:(0,n.jsxs)("g",{transform:"translate(-35 -15)",children:[(0,n.jsx)("g",{transform:"translate(41.75 21.75)",children:(0,n.jsx)("path",{"data-name":"Path 16020",d:"M52,46a1.911,1.911,0,0,0,2.571,0l2.571-2.571V52h1.7l.011-8.571L61.429,46A1.912,1.912,0,0,0,64,46l-6-6Z",transform:"translate(-52.75 -40.75)",fill:"#000066"})}),(0,n.jsx)("rect",{width:t,height:a,transform:"translate(35 15)",fill:"none"})]})})}},84310:(e,t,a)=>{"use strict";a.d(t,{A:()=>p,B:()=>c});var n=a(26514),i=a(48216),l=a(23469),r=a.n(l);a(75834);var o=a(2991),s=a(13436);let d=r()(()=>Promise.all([a.e(7621),a.e(3671),a.e(7194),a.e(4691)]).then(a.bind(a,88772)),{loadableGenerated:{webpack:()=>[88772]}}),c="MENU",p=e=>
1{let t=o.YU.MENU;return(0,n.jsx)(s.A,{...(0,i.A)(e,"id","defaultName","hide_on_mobile","uuid","isGlobalized"),prefix:t,datatype:c,children:(0,n.jsx)(d,{...e})})}},84987:()=>{},85570:(e,t,a)=>{"use strict";a.d(t,{r:()=>i,z:()=>n});let n=[{value:"-offer_date_created",label:"od najnowszych"},{value:"offer_date_created",label:"od najstarszych"},{value:"price",label:"od najtańszych"},{value:"-price",label:"od najdroższych"}],i="-offer_date_created"},90677:(e,t,a)=>{"use strict";a.d(t,{A:()=>v});var n=a(26514),i=a(69001),l=a.n(i),r=a(62176),o=a(75834),s=a(93794),d=a(86894),c=a(65485),p=a(17047),u=a(54004),m=a(2991),h=a(81132),x=a(34453),g=a(41568),y=a(13436),b=a(42920);let f=s.Df.withName("PKOBPAccordionBasic").create(()=>({root:{border:"none",boxShadow:"none",background:"transparent"},root__center:{marginTop:"4px !important","&::before":{display:"none"},"& $summaryIcon":{marginLeft:"0px !important"},"& $summaryRoot":{alignItems:"center",justifyContent:"center",marginBottom:"22px"},"& $title":{lineHeight:1,padding:"13px 0"},"& $detailsRoot":{marginBottom:"24px"},"& $detailsRoot ul":{marginTop:"0px",marginLeft:"0px",textAlign:"left"},"&& $detailsRoot ul li":{paddingLeft:"6px",marginBottom:"4px"}},summaryRoot:{minHeight:"24px !important",justifyContent:"flex-start",padding:0,"&.Mui-focusVisible":{outline:"solid 2px ".concat(u.Ay.palette.primary.main),background:"unset"}},summaryRoot__block:{justifyContent:"space-between",[u.Ay.breakpoints.down("sm")]:{paddingRight:0,gap:"15px"}},summaryContent:{flexGrow:"initial !important",margin:"0 !important"},summaryIcon:{marginLeft:"8px"},detailsRoot:{padding:0,[u.Ay.breakpoints.down("sm")]:{fontSize:"16px",fontWeight:300}},detailsRoot__margin:{marginTop:"29px"},title:{margin:0,[u.Ay.breakpoints.down("md")]:{fontSize:"14px"}},title__bolder:{fontWeight:600,lineHeight:"24px",fontSize:"16px"},btn:{margin:0,padding:0,height:"24px",width:"24px",border:"none",background:"transparent",cursor:"pointer"}})),v=e=>{let{children:t,title:a,cy:i="",uuid:s="",className:u,defaultExpanded:v,isExpanded:w,onChange:A,ariaLabel:_,ariaControls:j,hx:k,...C}=e,{classes:N}=f(),S=(0,o.useContext)(y.G),T=(0,h.bJ)(S,m.JH.ACCORDION_ITEM,s),z={};v&&(z={defaultExpanded:v}),void 0!==w&&"function"==typeof A&&(z=Object.assign({},z,{expanded:w,onChange:(e,t)=>
1A(t)}));let{styleTitleBolder:L,styleBlockElement:P,styleMarginBeforeContent:I,styleCenterTitle:E}=C;return(0,n.jsxs)(d.A,{classes:{root:l()(N.root,u,{[N.root__center]:E},"PKOBP__ACCORDION_BASIC")},"data-cy":"".concat(i,"--accordion"),...z,children:[(0,n.jsx)(c.A,{expandIcon:(0,n.jsx)("div",{className:N.btn,children:(0,n.jsx)(r.A,{})}),id:T,"aria-label":_?"Zwiń lub rozwiń sekcję ".concat((0,g.$)(_)):"Zwiń lub rozwiń sekcję",...void 0!==w?{"aria-expanded":w}:{},"aria-controls":j,classes:{root:l()(N.summaryRoot,{[N.summaryRoot__block]:P}),content:N.summaryContent,expandIconWrapper:N.summaryIcon},children:(0,n.jsx)(b.A,{className:l()(N.title,{[N.title__bolder]:L}),cy:"".concat(i,"--accordion-title"),variant:(0,x.a)(k,!0),children:a})}),(0,n.jsx)(p.A,{classes:{root:l()(N.detailsRoot,{[N.detailsRoot__margin]:I})},role:"region",children:t})]})}},96587:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>h});var n=a(26514),i=a(69001),l=a.n(i);a(75834);var r=a(21324),o=a(53317),s=a(54907),d=a(10213),c=a(93794),p=a(54004),u=a(42920);let m=c.Df.withName("PKOBPDrawer").create(()=>({headerbox:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:"20px",maxWidth:"100%",boxShadow:"0px 2px 2px 0px #81818133",padding:"13px 16px"},headerbox__isCenterHeader:{justifyContent:"flex-start",padding:"16px 36px 14px 36px"},title:{display:"flex",alignItems:"center",fontSize:"18px",maxWidth:"80%"},title__isCenterHeader:{maxWidth:"unset",width:"100%",justifyContent:"center",textAlign:"center",lineHeight:1},buttonX:{padding:"0",marginTop:"-1px","& path":{stroke:p.Ay.palette.primary.main,strokeWidth:"3px"}},buttonX__isCenterHeader:{position:"absolute",right:"16px"},contentbox:{padding:"16px"},contentbox__isContentNoPadding:{padding:"0"}})),h=e=>{let{isDrawerOpen:t,handleCloseDrawer:a,title:i,contentNoPadding:c,centerHeader:p,children:h,cy:x="Drawer",withoutHeaderBox:g=!1,className:y=""}=e,{classes:b}=m();return(0,n.jsxs)(o.Ay,{open:t,onClose:a,anchor:"bottom",PaperProps:{sx:{borderTopLeftRadius:"10px",borderTopRightRadius:"10px"}},className:y,children:[!g&&(0,n.jsxs)(s.A,{className:l()(b.headerbox,{[b.headerbox__isCenterHeader]:p}),children:[i&&(0,n.jsx)(u.A,{marginTop:0,marginBottom:0,variant:"body1",cy:x+"--title",className:l()(b.title,{[b.title__isCenterHeader]:p}),children:i}),(0,n.jsx)(d.A,{"aria-label":"Zamknij okno ".concat(i),onClick:a,color:"primary","data-cy":"".concat(x,"--button-close-x"),size:"small",className:l()(b.buttonX,{[b.buttonX__isCenterHeader]:p}),children:(0,n.jsx)(r.i,{size:18,"aria-hidden":!0})})]}),(0,n.jsx)(s.A,{className:l()(b.contentbox,{[b.contentbox__isContentNoPadding]:c}),children:h})]})}},96665:(e,t,a)=>{"use strict";a.d(t,{K:()=>h,I:()=>x});var n=a(26514),i=a(46225),l=a(75834),r=a(56286),o=a(80035),s=a(85570),d=a(53445),c=a(20442);let p={currentView:d.E,currentSort:s.r,currentPage:o.l,priceFilter:r.lX,keywordsFilter:"",pillsFilters:(0,c.x)([]),activePillsFilters:[]},u=(e,t)=>{switch(t.type){case"ESTATE/CHANGE_VIEW":return{...e,currentView:t.payload.currentView};case"ESTATE/CHANGE_SORT":return{...e,currentSort:t.payload.currentSort};case"ESTATE/CHANGE_PAGE":return{...e,currentPage:t.payload.currentPage};case"ESTATE/UPDATE_PRICE_FILTER":return{...e,priceFilter:t.payload.priceFilter,currentPage:o.l};case"ESTATE/UPDATE_KEYWORDS_FILTER":return{...e,keywordsFilter:t.payload.keywordsFilter,currentPage:o.l};case"ESTATE/SET_PILLS_FILTERS":case"ESTATE/UPDATE_PILLS_FILTERS":return{...e,pillsFilters:t.payload.pillsFilters};case"ESTATE/UPDATE_ACTIVE_PILLS_FILTERS":return{...e,activePillsFilters:t.payload.activePillsFilters,currentPage:o.l};case"ESTATE/UPDATE_PRICE_FILTER_AND_UPDATE_ACTIVE_PILLS_FILTERS":return{...e,priceFilter:t.payload.priceFilter,activePillsFilters:t.payload.activePillsFilters,currentPage:o.l};case"ESTATE/FILL_STATE":return{...e,...t.payload};default:return e}},m=(e,t,a)=>{if(!e)return[];{let n=e.split(",");return t.items.filter(e=>n.includes(e.value)).map(e=>({groupKey:a,key:e.key,value:e.value}))}},h=(0,l.createContext)(void 0),x=e=>{let{children:t}=e,a=(0,i.useRouter)(),[{currentView:r,currentSort:s,currentPage:d,priceFilter:x,keywordsFilter:g,pillsFilters:y,activePillsFilters:b},f]=(0,l.useReducer)(u,p),[v,w]=(0,l.useState)([]),[A,_]=(0,l.useState)([]),[j,k]=(0,l.useState)(null),[C,N]=(0,l.useState)(0),S=e=>{let t={currentView:r,currentSort:s,currentPage:d,priceFilter:x,keywordsFilter:g,activePillsFilters:b,...e};console.log("SET QUERY PARAMS",{updatedParam:e,params:t}),a.push({pathname:a.pathname,query:{"*":a.query["*"],page:t.currentPage,ordering:t.currentSort,view:t.currentView,...(e=>{let{priceFilter:t,keywordsFilter:a,activePillsFilters:n}=e,i={};if((null==t?void 0:t.min)&&Object.assign(i,{price_from:t.min}),(null==t?void 0:t.max)&&Object.assign(i,{price_to:t.max}),a&&Object.assign(i,{search_query:a}),n){let e=(e=>{let t=null==e?void 0:e.filter(e=>"transaction_type"===e.groupKey),a=null==e?void 0:e.filter(e=>"property_type"===e.groupKey),n=null==e?void 0:e.filter(e=>"voivodeship"===e.groupKey);return{...(null==t?void 0:t.length)?{transaction_type:t.map(e=>e.value).join(",")}:{},...(null==a?void 0:a.length)?{property_type:a.map(e=>e.value).join(",")}:{},...(null==n?void 0:n.length)?{voivodeship:n.map(e=>e.value).join(",")}:{}}})(n);e&&Object.assign(i,e)}return i})(t)}},void 0,{shallow:!0})};return(0,n.jsx)(h.Provider,{value:{propertyTypes:v,setPropertyTypes:w,items:A,setItems:_,aggregates:j,setAggregates:k,totalCount:C,setTotalCount:N,currentPage:d,dispatchChangePage:e=>{f({type:"ESTATE/CHANGE_PAGE",payload:{currentPage:e}}),S({currentPage:e})},currentView:r,dispatchChangeView:e=>{f({type:"ESTATE/CHANGE_VIEW",payload:{currentView:e}}),S({currentView:e})},currentSort:s,dispatchChangeSort:e=>{f({type:"ESTATE/CHANGE_SORT",payload:{currentSort:e}}),S({currentSort:e})},priceFilter:x,dispatchChangePriceFilter:e=>{f({type:"ESTATE/UPDATE_PRICE_FILTER",payload:{priceFilter:e}}),S({priceFilter:e,currentPage:o.l})},keywordsFilter:g,dispatchChangeKeywordsFilter:e=>{f({type:"ESTATE/UPDATE_KEYWORDS_FILTER",payload:{keywordsFilter:e}}),S({keywordsFilter:e,currentPage:o.l})},pillsFilters:y,dispatchSetPillsFilters:e=>{f({type:"ESTATE/SET_PILLS_FILTERS",payload:{pillsFilters:e}})},dispatchUpdatePillsFiltersWithAggregates:e=>{f({type:"ESTATE/UPDATE_PILLS_FILTERS",payload:{pillsFilters:(0,c.l)(y,e)}})},activePillsFilters:b,dispatchToggleFromActivePillsFilters:e=>{if(null==b?void 0:b.find(t=>t.value===e.value)){let t=[...b.filter(t=>t.value!==e.value)];f({type:"ESTATE/UPDATE_ACTIVE_PILLS_FILTERS",payload:{activePillsFilters:t}}),S({activePillsFilters:t,currentPage:o.l})}else{let t=[...b,e];f({type:"ESTATE/UPDATE_ACTIVE_PILLS_FILTERS",payload:{activePillsFilters:t}}),S({activePillsFilters:t,currentPage:o.l})}},dispatchUpdateActivePillsFilters:e=>{f({type:"ESTATE/UPDATE_ACTIVE_PILLS_FILTERS",payload:{activePillsFilters:e}}),S({activePillsFilters:e,currentPage:o.l})},dispatchChangePriceFilterAndActiveFilters:(e,t)=>
1{f({type:"ESTATE/UPDATE_PRICE_FILTER_AND_UPDATE_ACTIVE_PILLS_FILTERS",payload:{priceFilter:e,activePillsFilters:t}}),S({priceFilter:e,activePillsFilters:t,currentPage:o.l})},dispatchFillStateWithQueryParams:e=>{console.log("FILL STATE WITCH QUERY PARAMS",{params:e}),f({type:"ESTATE/FILL_STATE",payload:((e,t)=>{let a={...e.page?{currentPage:parseInt(e.page)}:{},...e.ordering?{currentSort:e.ordering}:{},...e.view?{currentView:e.view}:{},...e.search_query?{keywordsFilter:e.search_query}:{},...(e=>({priceFilter:{min:parseInt(e.price_from)||null,max:parseInt(e.price_to)||null}}))(e),...((e,t)=>{let a=m(e.transaction_type,t.transaction_type,"transaction_type");return{activePillsFilters:[...a,...m(e.property_type,t.property_type,"property_type"),...m(e.voivodeship,t.voivodeship,"voivodeship")]}})(e,t)};return console.log("CAST QUERY PARAMS INTO REDUCER STATE",{obj:a}),a})(e,y)})}},children:t})}},99186:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var n=a(26514),i=a(69001),l=a.n(i);a(75834);var r=a(54907),o=a(93794),s=a(54004),d=a(42920);let c=o.Df.withName("PKOBPNewsLabel").create(()=>({label:{padding:"3px 6px",borderRadius:"4px"},label_text:{fontSize:"14px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),p=e=>{let{...t}=e,{classes:a}=c(),{label:i,label_color:o,className:p=""}=t,u="#CBD6E6"===o||"#FFC787"===o;return(0,n.jsx)(r.A,{className:l()(a.label,p),bgcolor:o,color:u?s.Ay.palette.text.primary:s.Ay.palette.common.white,children:(0,n.jsx)(d.A,{className:a.label_text,children:i})})}}}]);

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.