1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3531],{91:(e,t,a)=>{a.d(t,{NL:()=>c,Pg:()=>o,Q2:()=>s,Y4:()=>l});var n=a(54080),i=a(2141);let s=async e=>{let t=[];return(e.forEach(e=>{t.push(...o(e.desktop)),e.mobile&&t.push(...o(e.mobile))}),t.length)?r(e,await l(t)):e},o=e=>{var t,a,n,i;if(!(null==e||null==(a=e.bws)||null==(t=a.field_list)?void 0:t.length))return[];let s=[];return null==e||null==(i=e.bws)||null==(n=i.field_list)||n.forEach(e=>{(null==e?void 0:e.custom_agreement)&&s.push(null==e?void 0:e.custom_agreement)}),s},l=async e=>{let t=(0,i.A)();try{let a=[...new Set(e)].join(", "),n=await t.apiModulesAgreementListList({agreements:a});return(null==n?void 0:n.data)||[]}catch(e){return console.error(e),[]}},r=(e,t)=>(0,n.Ay)(e,e=>{e.forEach(e=>{var a,n,i,s,o,l,r,d,p;(null==e||null==(n=e.desktop)||null==(a=n.bws)?void 0:a.field_list)&&(e.desktop.bws.field_list=c(null==(r=e.desktop)||null==(l=r.bws)?void 0:l.field_list,t)),(null==e||null==(o=e.mobile)||null==(s=o.bws)||null==(i=s.field_list)?void 0:i.length)&&(e.mobile.bws.field_list=c(null==(p=e.mobile)||null==(d=p.bws)?void 0:d.field_list,t))})}),c=(e,t)=>e?(0,n.Ay)(e,e=>{e.forEach(e=>{if(null==e?void 0:e.custom_agreement){let a=t.find(t=>t.id===e.custom_agreement)||{};Object.assign(e,a)}})}):[]},5912:(e,t,a)=>{a.r(t),a.d(t,{default:()=>K});var n=a(26514),i=a(69001),s=a.n(i),o=a(70504),l=a(58735),r=a(24995),c=a(75834),d=a(93794),p=a(98938),u=a(17443),x=a(54004),m=a(13436),h=a(6395),f=a(13403),g=a(54907),b=a(14571),y=a(41507),A=a(16755),_=function(e){return e[e.XS=15]="XS",e[e.MD=30]="MD",e[e.XL=50]="XL",e}({}),w=function(e){return e.INHERIT="inherit",e.PRIMARY="primary",e}({});let S=d.Df.create(()=>({loader:{display:"flex",alignItems:"center"},loaderText:{marginLeft:A.A.spacing(1),whiteSpace:"nowrap"},loaderText__15:{fontSize:"12px"},loaderText__30:{marginLeft:A.A.spacing(2)},loaderText__50:{fontSize:"24px",marginLeft:A.A.spacing(3)},loaderText__inherit:{color:"inherit"},loaderText__primary:{color:A.A.palette.primary.main}})),k=e=>{let{text:t,size:a=30,color:i="inherit"}=e,{classes:o}=S();return(0,n.jsxs)(g.A,{className:o.loader,"data-cy":"Loader",children:[(0,n.jsx)(y.A,{size:a,color:i}),t&&(0,n.jsx)(b.A,{component:"span",className:s()(o.loaderText,o["loaderText__".concat(a)],o["loaderText__".concat(i)]),children:t})]})};var j=a(23469),T=a.n(j),I=a(91),N=a(53303),v=a(42920),C=a(93368);let L=T()(()=>Promise.all([a.e(1562),a.e(3557),a.e(674),a.e(6774)]).then(a.bind(a,10674)),{loadableGenerated:{webpack:()=>[10674]}}),M=d.Df.withName("PKOBPCallMeForm").create(()=>({box:{position:"relative",display:"flex",width:"100%","& form":{'& label[for="bootstrap-input"]':{display:"none"},"& .agreement-description":{marginLeft:"33px",marginTop:"3px","&> p":{fontSize:"13px"}},width:"initial"}},loaderWrapper:{position:"absolute",top:"50%",right:"0px",left:"0px"},formWrapper:{margin:"10px 0px","& .customAgreement":{"& p":{fontSize:"12px",lineHeight:"initial"},"& svg":{width:"18px",height:"18px"}}},form:{display:"flex",flexDirection:"column",height:"100%",width:"100%",scrollbarWidth:"none","& .customAgreement > p":{overflowY:"scroll !important",maxHeight:"calc(100vh - 670px)",paddingRight:"10px",marginRight:"-5px",...C.J,[x.Ay.breakpoints.down("sm")]:{maxHeight:"calc(100vh - 430px)"}},[x.Ay.breakpoints.down("sm")]:{position:"relative",paddingBottom:0,display:"block",height:"auto",maxHeight:"unset"}},header:{display:"block",fontSize:"20px",marginTop:0,marginBottom:"7px",lineHeight:1.5},text:{display:"block",margin:0,padding:0,fontSize:"14px",lineHeight:18/14},checkboxIcon:{display:"inline-block",width:"20px",height:"20px",border:"solid 1px ".concat(x.Ay.palette.secondary.bordersDark),borderRadius:"2px",margin:"2px 4px 2px 2px"},btnWrapper:{position:"absolute",bottom:0,left:0,right:0,[x.Ay.breakpoints.down("sm")]:{position:"fixed",padding:"16px",backgroundColor:"#fff",borderTop:"1px solid #D5D5D5",boxShadow:"0px -3px 6px #0000661A",marginTop:0}},btn:{width:"100%",margin:0}})),H=e=>{let{callMeId:t,header:a,text:i,btnLabel:s,setMessageWindow:o,bwsData:l,cy:r,wid:d}=e,{classes:p}=M(),m=(0,h.A)(x.Ay.breakpoints.down("sm")),{refSubmit:f,currentResponse:b,isFormSubmitting:y}=(0,u.Rc)(),[A,S]=(0,c.useState)(null),[j,T]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{T(!0),(async()=>{let e=(0,I.Pg)({bws:l}),t=await (0,I.Y4)(e);S({...l,field_list:(0,I.NL)(l.field_list,t)}),T(!1)})()},[]),(0,c.useEffect)(()=>{b&&o(b.type)},[b]),(0,n.jsx)(g.A,{className:p.box,children:(0,n.jsxs)(g.A,{className:p.form,children:[a&&!m&&(0,n.jsx)(v.A,{variant:"body1",className:p.header,dangerouslySetInnerHTML:{__html:a},"data-cy":"".concat(r,"--header")}),i&&(0,n.jsx)(v.A,{className:p.text,dangerouslySetInnerHTML:{__html:i},"data-cy":"".concat(r,"--text")}),(0,n.jsx)(g.A,{className:p.formWrapper,children:j&&!A?(0,n.jsx)(g.A,{className:p.loaderWrapper,children:(0,n.jsx)(k,{size:_.MD,color:w.PRIMARY,text:"Trwa Åadowanie formularza..."})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(L,{bws:{...A,passWids:d,callMeId:t},displayAsForm:!0,hideSubmitButton:!0,isCallmeForm:!0}),!y&&(0,n.jsx)(g.A,{className:p.btnWrapper,children:(0,n.jsx)(N.default,{onClickCallback:()=>{var e;null==f||null==(e=f.current)||e.click()},className:p.btn,variant:"primary",type:"submit",renderAsButton:!0,ariaLabel:s,cy:r,children:s})})]})})]})})};var O=a(29692);let D=d.Df.withName("PKOBPCallMeMessage").create(()=>({container:{display:"flex",flexDirection:"column",width:"100%",maxHeight:"calc(100vh - 150px)",overflowY:"auto",[x.Ay.breakpoints.down("sm")]:{height:"100%",maxHeight:"unset"}},messageWrapper:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",width:"100%",height:"100%"},checkIcon:{width:"96px",height:"96px",fill:x.Ay.palette.success.main,marginBottom:"16
1px"},closeIcon:{width:"96px",height:"96px",fill:x.Ay.palette.error.main},header:{margin:"0 0 18px 0",textAlign:"center",fontSize:"18px",lineHeight:24/18},text:{textAlign:"center",fontSize:"16px",lineHeight:1.5,fontWeight:300,marginBottom:"16px"},btn:{width:"100%",margin:"auto 0 0 0"}})),R=e=>{let{messageType:t,messageSuccessHeader:a,messageSuccessText:i,messageErrorHeader:s,messageErrorText:o,closeTooltip:l}=e,{classes:c}=D();return(0,n.jsxs)(p.A,{className:c.container,children:[(0,n.jsxs)(p.A,{className:c.messageWrapper,children:["success"===t?(0,n.jsx)(O.A,{className:c.checkIcon}):(0,n.jsx)(r.A,{className:c.closeIcon}),"cannot_view_form"!==t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.A,{className:c.header,variant:"body1",children:"success"===t?a:s}),(0,n.jsx)(v.A,{className:c.text,variant:"span",children:"success"===t?i:o})]}):(0,n.jsx)(v.A,{className:c.text,variant:"span",children:"Nie udaÅo siÄ wyÅwietliÄ formularza. Spr\xf3buj ponownie p\xf3źniej."})]}),(0,n.jsx)(N.default,{className:c.btn,variant:"primary",renderAsButton:!0,onClickCallback:l,ariaLabel:"Zamknij",children:"Zamknij"})]})},W=d.Df.withName("PKOBPCallMeAfterRollout").create(()=>({"&":{"@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}},"@keyframes fadeOut":{"0%":{opacity:1},"100%":{opacity:0}}},container:{display:"inline-flex",position:"absolute",bottom:"72px",right:0,backgroundColor:"#fff",width:"288px",maxWidth:"288px",minHeight:"408px",maxHeight:"calc(100vh - 155px)",padding:"17px 14px 16px 16px",boxShadow:x.Ay.palette.shadows.basic.normal,borderRadius:"8px",border:"1px solid ".concat(x.Ay.palette.secondary.borders),"&::after":{content:"''",width:0,height:0,display:"block",position:"absolute",borderStyle:"solid",right:"20px",bottom:"-8px",borderWidth:"8px 8px 0 8px",borderColor:"#fff transparent transparent transparent"}},container__isVisible:{[x.Ay.breakpoints.up("sm")]:{animation:"fadeIn .5s ".concat(x.Ay.transitions.easing.easeInOut)}},container__isHidden:{[x.Ay.breakpoints.up("sm")]:{animation:"fadeOut .5s ".concat(x.Ay.transitions.easing.easeInOut)}},modal:{"& .MuiDialogContent-root":{[x.Ay.breakpoints.down("sm")]:{paddingTop:"17px",paddingBottom:"16px"}}}})),E=e=>{let{callMeId:t,header:a,text:i,btnLabel:o,messageSuccessHeader:l,messageSuccessText:r,messageErrorHeader:d,messageErrorText:m,isAfterRolloutTextVisible:g,closeTooltip:b,bwsData:y,cy:A,wid:_}=e,{classes:w}=W(),S=(0,h.A)(x.Ay.breakpoints.down("sm")),[k,j]=(0,c.useState)(null),[T,I]=(0,c.useState)(!1),{setCurrentResponse:N}=(0,u.Rc)();(0,c.useEffect)(()=>{S||(g?I(g):setTimeout(()=>{I(g)},400)),setTimeout(()=>{j(null),N(null)},400)},[g]);let v=()=>(0,n.jsx)(H,{text:i,header:a,btnLabel:o,setMessageWindow:j,bwsData:y,cy:A,wid:_,callMeId:t}),C=()=>(0,n.jsx)(R,{messageType:k,messageSuccessHeader:l,messageSuccessText:r,messageErrorHeader:d,messageErrorText:m,closeTooltip:b});return S&&g?(0,n.jsx)(f.Ay,{className:w.modal,isOpen:g,title:a,handleClose:b,size:f.Ih.LG,modalStyle:f.YT.ROW_TITLE_AND_X_WITH_BOTTOMLINE,fullScreen:S,$_ID_MODAL_TITLE:"PKOBP_CALLME_MODAL",children:k?C():v()}):T&&(0,n.jsx)(p.A,{className:s()(w.container,{[w.container__isVisible]:g,[w.container__isHidden]:!g}),children:k?C():v()})},z={margin:0,padding:0,fontSize:"14px",color:x.Ay.palette.primary.contrastText},P=d.Df.withName("PKOBPCallMeBeforeRollout").create(()=>({"&":{"@keyframes fadeIn":{"0%":{opacity:0},"100%":{opacity:1}},"@keyframes fadeOut":{"0%":{opacity:1},"100%":{opacity:0}}},container:{position:"absolute",bottom:"72px",right:0,backgroundColor:x.Ay.palette.info.main,minWidth:"212px",padding:"17px 16px 14px 16px",boxShadow:x.Ay.palette.shadows.basic.normal,borderRadius:"4px",animation:"fadeIn .5s ".concat(x.Ay.transitions.easing.easeInOut),"&::after":{content:"''",width:0,height:0,display:"block",position:"absolute",borderStyle:"solid",right:"20px",bottom:"-8px",borderWidth:"8px 8px 0 8px",borderColor:"".concat(x.Ay.palette.info.main," transparent transparent transparent")}},container__isVisible:{animation:"fadeIn .5s ".concat(x.Ay.transitions.easing.easeInOut)},container__isHidden:{animation:"fadeOut .5s ".concat(x.Ay.transitions.easing.easeInOut)},header:{...z,lineHeight:1.25,fontWeight:"bold"},text:{...z,fontWeight:300}})),B=e=>{let{header:t,text:a,isBeforeRolloutTextVisible:i,cy:o}=e,{classes:l}=P(),[r,d]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{i?d(i):setTimeout(()=>{d(i)},400)},[i]),r&&(0,n.jsxs)(p.A,{className:s()(l.container,{[l.container__isVisible]:i,[l.container__isHidden]:!i}),children:[t&&(0,n.jsx)(v.A,{variant:"body1",className:l.header,dangerouslySetInnerHTML:{__html:t},"data-cy":"".concat(o,"--header")}),a&&(0,n.jsx)(v.A,{className:l.text,dangerouslySetInnerHTML:{__html:a},"data-cy":"".concat(o,"--text")})]})},Y="CallMe",F=d.Df.withName("PKOBPCallMe").create(()=>({"&":{"@keyframes fadeIn":{"0%":{opacity:0}
1,"100%":{opacity:1}}},container:{position:"fixed",bottom:"16px",right:"16px",zIndex:x.Ay.zIndex.callMe,[x.Ay.breakpoints.down("md")]:{bottom:"82px",right:"12px"}},container__isOpen:{zIndex:x.Ay.zIndex.callMeTooltip},container__isWorkspace:{position:"static",marginLeft:"auto",display:"flex",justifyContent:"flex-end"},btn:{backgroundColor:x.Ay.palette.info.main,width:"56px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",boxShadow:x.Ay.palette.shadows.basic.normal,animation:"fadeIn .5s ".concat(x.Ay.transitions.easing.easeInOut),outline:"none",border:"none",cursor:"pointer","&:focus-visible":{outline:"solid 2px"}}})),K=e=>{let{...t}=e,{classes:a}=F(),[i,d]=(0,c.useState)(!1),[x,h]=(0,c.useState)(!1),[f,g]=(0,c.useState)(null),[b,y]=(0,c.useState)(!1),A=(0,c.useContext)(o.zp),_=(0,c.useContext)(m.G),{callme:w,callme_rendered:S}=t,{id:k,header:j,before_rollout_text:T,seconds_delay_button:I,seconds_delay_before_rollout_text:N,seconds_display_before_rollout_text:v,label_button_send:C,after_rollout_text:L,message_success_header:M,message_success_text:H,message_error_header:O,message_error_text:D,bws:R,wid:W}=S,z=()=>{y(!b),clearTimeout(f),x&&h(!1)};return(0,c.useEffect)(()=>{A?d(!0):setTimeout(()=>{d(!0)},1e3*I),v&&g(setTimeout(()=>{h(!0)},(I+N)*1e3)),v&&setTimeout(()=>{h(!1)},(I+N+v)*1e3)},[]),w&&i?(0,n.jsxs)(p.A,{className:s()(a.container,{[a.container__isWorkspace]:A,[a.container__isOpen]:b}),children:[(0,n.jsx)("button",{id:_,className:a.btn,onClick:z,tabIndex:0,"aria-label":"".concat(b?"Zamknij":"Otw\xf3rz"," okno ").concat(j),children:b?(0,n.jsx)(r.A,{color:"#fff"}):(0,n.jsx)(l.A,{color:"#fff"})}),!A&&(0,n.jsxs)(u.nP,{children:[(0,n.jsx)(B,{header:j,text:T,isBeforeRolloutTextVisible:x,cy:"".concat(Y,"BeforeRollout")}),(0,n.jsx)(E,{callMeId:k,header:j,text:L,btnLabel:C,messageSuccessHeader:M,messageSuccessText:H,messageErrorHeader:O,messageErrorText:D,isAfterRolloutTextVisible:b,closeTooltip:z,bwsData:R,wid:W,cy:"".concat(Y,"AfterRollout")})]})]}):null}},17443:(e,t,a)=>{a.d(t,{Rc:()=>l,nP:()=>o});var n=a(26514),i=a(75834);let s=(0,i.createContext)(null),o=e=>{let{children:t,forcedCurrentStage:a="INIT",onLeadSuccess:o,dictationParticipantId:l}=e,[r,c]=(0,i.useState)(null),[d,p]=(0,i.useState)(a),[u,x]=(0,i.useState)(null),[m,h]=(0,i.useState)(null),[f,g]=(0,i.useState)(""),[b,y]=(0,i.useState)(""),[A,_]=(0,i.useState)(!1),[w,S]=(0,i.useState)(null),[k,j]=(0,i.useState)(""),[T,I]=(0,i.useState)(""),[N,v]=(0,i.useState)(!1),[C,L]=(0,i.useState)(null),[M,H]=(0,i.useState)(null),[O,D]=(0,i.useState)(""),[R,W]=(0,i.useState)(""),[E,z]=(0,i.useState)(!1),P=(0,i.useRef)(null);return(0,i.useEffect)(()=>{a&&p(a)},[a]),(0,n.jsx)(s.Provider,{value:{currentStage:d,setCurrentStage:p,currentBws:u,setCurrentBws:x,currentResponse:m,setCurrentResponse:h,modalTitle:f,setModalTitle:g,modalSubtitle:b,setModalSubtitle:y,poi:w,setPoi:S,focusedPoi:k,setFocusedPoi:j,refSubmit:r,setRefSubmit:c,checkAllConsents:A,setCheckAllConsents:_,poiDictionaryName:T,setPoiDictionaryName:I,isFormSubmitting:N,setIsFormSubmitting:v,sendButtonWrapperRef:P,formThankYouMessage:C,setFormThankYouMessage:L,formFailureMessage:M,setFormFailureMessage:H,formSendButtonLabel:O,setFormSendButtonLabel:D,setUpdateMaskAfterFormReset:z,updateMaskAfterFormReset:E,onLeadSuccess:o,dictationParticipantId:l,acceptLabel:R,setAcceptLabel:W},children:(0,n.jsx)(n.Fragment,{children:t})})},l=()=>(0,i.useContext)(s)}}]);
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.