PageSourceSearch

https://vox.pl/_next/static/chunks/2tks_r79854-t.js

js vox.pl collected 2026-09-24 20:22:26 UTC 64,430 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,118738,e=>{"use strict";let t,o;e.i(498849);var n=e.i(756432),i=e.i(191788),r=e.i(391732);e.i(689243);var a=e.i(61449),l=e.i(486533),s=e.i(203828),d=e.i(168489),u=e.i(232820),c=e.i(308358),f=e.i(398347),p=e.i(133646),x=e.i(472816),m=e.i(198112),g=e.i(880785),h=e.i(197516),w=e.i(857792),y=e.i(901520);let C=["designStor","interiorDesing"];var v=e.i(712314),b=e.i(700644);let j=(0,d.default)(()=>e.A(756030),{loadableGenerated:{modules:[268202]},ssr:!1}),S=({navElements:e,categoriesTree:t,serviceMap:o,navParams:r})=>{let{navTransparency:a,backgroundColor:l,fontColorVariant:s,withBorder:d}=r,[c,f]=(0,i.useState)(!1);(0,i.useEffect)(()=>{f(!0)},[]);let p=a===u.ENavTransparency.BOTH_TRANSPARENT||a===u.ENavTransparency.DESKTOP_TRANSPARENT_MOBILE_NOT_TRANSPARENT;return c?(0,n.jsx)(j,{navElements:e,categoriesTree:t,serviceMap:o,navParams:r}):(0,n.jsx)(b.default,{navElements:e,categoriesTree:t,serviceMap:o,isTransparent:p,backgroundColor:l,fontColorVariant:s,withBorder:d})};var k=e.i(142419),T=e.i(41158);e.i(664157);var E=e.i(271179),I=e.i(572336),L=e.i(681859),N=e.i(282182);let $=(0,a.observer)(()=>{let{setMenuDesktopHighlighted:e}=c.default,{t}=(0,E.useTranslation)("common");return(0,n.jsx)("nav",{sx:I.default.simpleNavigationContentContainer,"aria-label":"Navigation",tabIndex:0,role:"menu",onMouseEnter:()=>e(!0),onMouseLeave:()=>e(!1),onFocus:()=>e(!0),onBlur:()=>e(!1),children:(0,n.jsx)("div",{sx:I.default.menuLogoDesktop,children:(0,n.jsx)(T.default,{href:"/",prefetch:!1,children:(0,n.jsx)(N.default,{dataCy:"logoIcon",height:52,width:70,image:`${L.BASE_PATH}/img/logo.svg`,alt:t("logoIconAlt"),priority:!0})})})})}),A={footerContainer:{background:x.default.background.footer,height:"auto",padding:["0 16px 24px","0 16px 24px","0 24px 24px","0 40px 24px"],position:"relative"},footerContainerInner:{alignItems:"center",margin:"auto"},footerContactContainer:(e,t)=>({margin:"auto",padding:["40px 0","40px 0","64px 0",`64px 0 ${e?"24px":0}`],borderBottom:["none","none","none",`1px solid ${x.default.rawColors.darkGrey500}`],display:t?["flex","flex","flex","grid"]:["flex","flex","flex","row","row"],flexDirection:t?["column","column","column",null]:["column","column","column","row","row"],gridTemplateColumns:t?[null,null,null,"1fr minmax(auto, 596px) 1fr"]:void 0,alignItems:"center",justifyContent:["center","center",t?"center":"space-between"],alignSelf:"stretch",mb:["0","0","0","64px"]}),footerContactGridColumn:{justifySelf:["center","center","center","start"],width:["100%","100%","100%","auto"],"> div":{width:["100%","100%","100%","auto"]}},footerSocialGridColumn:{justifySelf:["center","center","center","end"],width:["100%","100%","100%","auto"],display:"flex",justifyContent:["center","center","center","flex-end"]},footerMediaContainer:{display:"flex",alignSelf:["center","center","center","center","center"],alignItems:"center",height:"32px",mt:["0","0","0","0","0"],ml:"0",justifyContent:"center",width:["auto","auto","auto","auto","auto"],a:{p:"0"},gap:"24px"},footerMediaLink:{height:"32px",display:"flex",justifyContent:"center"},footerNewsletterContainer:{display:"flex",flexDirection:"column",p:["0 0 41px","0 0 41px","0 0px 52px","0 0 60px"],fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"18px",color:x.default.rawColors.darkGrey700,width:["100%","51ch","510px","510px","596px"],maxWidth:"596px",justifySelf:["auto","auto","auto","center"]},newsletterForm:{display:"flex",position:"relative",fontSize:"16px",p:"10px 12px",borderBottom:`1px solid ${x.default.rawColors.darkGrey500}`,m:["-20px 0 15px","0 0 15px"],button:{mt:["-12px","0"]}},newsletterPlaceholder:{color:x.default.rawColors.darkGrey700,position:"absolute",zIndex:x.default.zIndex.documentUp+1,width:["28ch","90%"],height:"42px",pt:"10px",mt:["-20px","0"],letterSpacing:x.default.letterSpacings.caps,pointerEvents:"auto",border:"none",background:"transparent",paddingLeft:0,paddingRight:0,textAlign:"start",fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px","&:hover":{cursor:"text"},"&:focus-visible":{outline:`2px solid ${x.default.rawColors.blue500}`,outlineOffset:"2px"}},newsletterInput:{p:"8px 0",zIndex:x.default.zIndex.documentUp+2,width:"100%",textAlign:"start",background:"transparent",border:"none",boxShadow:"none",fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,letterSpacing:
1x.default.letterSpacings.caps,outline:"none",'&[data-pointer-focus="true"]:focus':{outline:"none !important",boxShadow:"none !important"},"&:focus":{outline:"none !important",boxShadow:"none !important"},"&:focus-visible":{outline:`2px solid ${x.default.rawColors.blue500} !important`,outlineOffset:"2px"},"&:focus:not(:focus-visible)":{outline:"none !important",boxShadow:"none !important"}},newsletterError:{color:x.default.rawColors.accent700,fontSize:x.default.fontSizes.caption,mb:"10px",mt:"-10px"},newsletterCheckbox:{position:"relative",display:"flex",ml:"5px",pb:["12px","6px","0"]},newsletterPolicyWrapper:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"12px",color:x.default.rawColors.darkGrey700,lineHeight:"16px",position:"relative",ml:"3px",mr:"12px",letterSpacing:x.default.letterSpacings.caps},newsletterPolicyLink:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"12px",color:x.default.rawColors.darkGrey700,lineHeight:"16.8px",mr:"4px",position:"relative",display:"inline-block","&:after":{content:'" "',position:"absolute",top:0,bottom:0,left:0,borderBottom:`1px solid ${x.default.rawColors.darkGrey700}`,width:"100%"}},newsletterThx:{minHeight:"100px",display:"flex",justifyContent:"center",alignItems:"center"},footerContact:{paddingBottom:["40px","40px","40px","0","0"],fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,lineHeight:"140%",textAlign:["center","center","start"],display:["block","block","flex"],width:["100%","100%","100%","25%","25%"],justifyContent:"space-between",alignSelf:"start",flexDirection:["column","column","row","column","column"]},footerGeneralContainer:e=>({display:["block","block","block","grid"],gridTemplateColumns:["repeat(1, 1fr)",`repeat(${e}, 1fr)`],gridGap:"20px",gridAutoRows:"minmax(100px, auto)",padding:"0"}),footerGeneralInnerContainer:{display:"flex",flexDirection:["column","column","row"]},footerGeneralListToogleBlock:{width:"100%",borderTop:`1px solid ${x.default.rawColors.darkGrey500}`},footerGeneralListWrapper:{display:"flex",m:"24px 0",alignItems:"center",":hover":{cursor:"pointer"}},addButton:{ml:"auto",pr:"10px"},footerGeneralListContainer:e=>({gridColumn:[1,e],gridRow:[e,1]}),footerGeneralList:{listStyle:"none",pb:["24px","24px","24px","0"]},footerGeneralListItem:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,lineHeight:"140%",marginBottom:"16px",letterSpacing:"0.05em",a:{color:x.default.rawColors.darkGrey700}},footerNavLink:{display:"block",textDecoration:"none","&:focus-visible":{outline:`2px solid ${x.default.rawColors.blue500} !important`,outlineOffset:"2px",position:"relative",zIndex:1,backgroundColor:"transparent !important",background:"none !important"},"&:focus:not(:focus-visible)":{outline:"none",backgroundColor:"transparent",background:"none"},"&:hover":{backgroundColor:"transparent",background:"none"},"&:active":{backgroundColor:"transparent",background:"none"}},footerBottom:e=>({borderTop:e?"none":[`1px solid ${x.default.rawColors.darkGrey500}`,`1px solid ${x.default.rawColors.darkGrey500}`,`1px solid ${x.default.rawColors.darkGrey500}`,"none"],display:"flex",justifyContent:"space-between",flexDirection:e?["column","column","row"]:"column",p:e?0:["40px 0","40px 0","42px 0 36px","42px 0 36px","50px 0 44px"]}),footerCopyRights:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,lineHeight:"140%",textAlign:"center",width:"auto",pb:["24px","24px","0"]},simpleFooterCopyRights:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,lineHeight:"140%",padding:["40px 0 24px","40px 0 24px","39px 0"],width:"100%",textAlign:"center"},footerRegionsContainer:{display:"flex",width:["auto","auto","auto","auto","100%"],flexDirection:["column","column","row"],justifyContent:["center","center","space-between"],alignItems:"center"},simpleFooterLocale:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,lineHeight:"140%",padding:["0 0 40px","0 0 40px",0],textAlign:["center","center","end"],display:"flex",alignItems:"center",justifyContent:"center",span:{textDecoration:"solid underline #a1a1a1 2px",m:"0 3px"}},simpleFooterLocaleIcon:{mr:"13px",padding:[0,0,"38px 0"]},chatContainer:{mt:"5px",display:"flex",alignItems:"center",justifyContent:["center","center","start"],a:{display:"flex",alignItems:"center",textDecoration:"underline"},span:{fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,fontSize:"16px",color:x.default.rawColors.darkGrey700,textDecorationStyle:"solid",textDecorationColor:"#a1a1a1",textDecorationLine:"underline",textDecorationThickness:"2px",mr:["17.67px","0px","0px"],p:"0 0 0 16px"}},footerPayments:{width:"100%",position:"relative",mt:"3px",justifyContent:"center",display:"flex",flexFlow:"wrap",rowGap:"40px",pb:["38px","38px","48px"]},footerPaymentsIcon:(e,t)=>({position:"relative",p:"0 20px",m:["0 auto","0 auto","0 17px"],height:"16px",width:t?["20%","20%",e]:e}),footerContactPhoneLink:{color:x.default.rawColors.darkGrey700,"&:focus, &:active, &:hover, &:focus":{color:x.default.rawColors.darkGrey700}}},G=()=>{let{t:e}=(0,E.useTranslation)("layouts"),t=new Date().getFullYear();return(0,n.jsx)("footer",{sx:A.footerContainer,children:(0,n.jsx)("div",{sx:A.footerContainerInner,children:(0,n.jsx)("div",{sx:A.footerBottom(!0),children:(0,n.jsx)("div",{sx:A.simpleFooterCopyRights,children:e("footer.rights",{actualYear:t})})})})})};var _=e.i(163855);let F=()=>{let{t:e}=(0,E.useTranslation)("common");return(0,n.jsx)("div",{sx:I.default.simpleNavigationMobileContentContainer,children:(0,n.jsx)("div",{sx:I.default.menuLogoMobile,children:(0,n.jsx)(T.default,{href:"/",prefetch:!1,children:(0,n.jsx)(N.default,{dataCy:"logoIcon",image:`${L.BASE_PATH}/img/logo.svg`,alt:e("logoIconAlt"),priority:!0,objectFit:"contain"})})})})};var R=e.i(817696);let W=({children:e,attachFirstChildToNavigation:t=!1,overflowY:o="auto",overflowX:r="hidden"})=>{let a=i.Children.toArray(e),l=i.Children.toArray(e);return l.shift(),(0,n.jsxs)("div",{sx:((e="auto",t="hidden")=>({display:"flex",flexFlow:"column nowrap",width:"100%",height:"100%",
1justifyContent:"space-between",overflowY:e,overflowX:t}))(o,r),children:[t&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(F,{}),(0,n.jsx)($,{}),a[0]]}),l]}),!t&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)(F,{}),(0,n.jsx)($,{}),e]}),(0,n.jsx)(_.default,{}),(0,n.jsx)(R.default,{}),(0,n.jsx)(G,{})]})},M=({children:e,positionTop:t,isProductCardOpened:o,navigationContainerIsStatic:r,setNavigationContainerIsStatic:a,navigationContainerIsVisible:l,setNavigationContainerIsVisible:s,setNavigationContainerHeight:d,isMenuMobileOpened:u,isMenuPined:c,isLoginGeneralOpened:f,isSearchOpened:p,userPanelOpened:m})=>{let g,h,w,y,C,v,[b,j]=(0,i.useState)(0),[S,k]=(0,i.useState)(300),[T,E]=(0,i.useState)(!1),[I,L]=(0,i.useState)(!1),N=(0,i.useRef)(null),$=(e,t,o=200)=>{C&&clearTimeout(C),C=setTimeout(()=>{a(e),s(t)},o)},A=()=>{o?window.removeEventListener("scroll",A):u||c||f||m||p||50>Math.abs(b-window.scrollY)||(window.scrollY<b&&window.scrollY>S?($(!1,!0),E(!1)):($(window.scrollY<=S,!1,400),l&&!r?E(!0):E(!1)),j(window.scrollY))},G=()=>{o?window.removeEventListener("resize",G):(window?.innerHeight&&k(window.innerHeight),N?.current?.clientHeight&&d(N?.current?.clientHeight))};return(0,i.useEffect)(()=>(window.addEventListener("scroll",A),window.addEventListener("resize",G),()=>{window.removeEventListener("scroll",A),window.removeEventListener("resize",G),C&&clearTimeout(C)})),(0,i.useEffect)(()=>{N?.current?.clientHeight&&G()},[N?.current?.clientHeight]),(0,i.useEffect)(()=>{let e=p||u||c||f||m;return e?L(e):v=setTimeout(()=>{L(!1)},420),()=>{v&&clearTimeout(v)}},[p,u,c,f,m]),(0,n.jsx)(i.Fragment,{children:(0,n.jsx)("div",{sx:(g=r,h=l,w=t,y=T,{width:"100%",height:h||g||y?"auto":0,overflowY:h||g||y?"unset":"hidden",position:g?"static":"fixed",top:g?0:`${w}px`,left:0,opacity:h||g?1:0,zIndex:I?x.default.zIndex.search:x.default.zIndex.barMenu,transform:h||g?"translateY(0)":"translateY(-100%)",transition:`transform ${x.default.transitions.time.normal} ${x.default.transitions.animation.atomCurve}, opacity ${x.default.transitions.time.normal} ${x.default.transitions.animation.atomCurve}`}),ref:N,children:e})})},P=()=>{let{t:e}=(0,E.useTranslation)("layouts");return(0,n.jsx)("a",{href:"#main-content",className:"skip-link",style:{position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},onFocus:e=>{e.target.style.position="static",e.target.style.width="auto",e.target.style.height="auto"},onBlur:e=>{e.target.style.position="absolute",e.target.style.left="-9999px",e.target.style.width="1px",e.target.style.height="1px"},children:e("footer.navigation.skipToContent")})};var z=e.i(407439),B=e.i(62989);let D=({media:e})=>{let{t}=(0,E.useTranslation)("layouts"),o=x.default.rawColors.neutralBlack;return(0,n.jsx)("div",{sx:A.footerMediaContainer,children:!!e&&e.map(e=>(0,n.jsx)(z.Link,{href:e.link,rel:"noreferrer",target:"_blank",title:`${e.icon} ${t("footer.links.opensInNewWindow")}`,children:(0,n.jsx)("div",{sx:A.footerMediaLink,children:(0,n.jsx)(B.default,{icon:(0,g.firstUppercase)(e.icon),size:"32px",color:o,title:e.icon})})},e.icon))})},O=({chatLink:e,phoneNr:t})=>{let{t:o}=(0,E.useTranslation)("layouts"),{locale:r}=(0,s.useRouter)(),a=(0,g.getLanguage)(r);return(0,n.jsxs)("div",{sx:A.footerContact,children:[t&&(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{children:o("footer.contact")}),(0,n.jsx)("a",{sx:A.footerContactPhoneLink,href:`tel:${t}`,children:t})]}),(0,n.jsx)("div",{sx:A.chatContainer,children:(()=>{switch(a){case"pl":return void 0!==window.LiveChatWidget&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("div",{"data-id":"VeAR_qiV4Vl",className:"livechat_button",dangerouslySetInnerHTML:{__html:`<a onclick="event.preventDefault(); if (LiveChatWidget !== undefined) { LiveChatWidget.call('maximize');return false; }" href="https://www.livechat.com/?utm_source=chat_button&utm_medium=referral&utm_campaign=lc_12811512">${o("footer.chat")}</a>`}}),(0,n.jsx)(B.default,{color:x.default.rawColors.darkGrey700,icon:"Whatsapp",padding:"0 0 0 18px",size:"32px",title:o("footer.chat")})]});case"en":return void 0!==window.LiveChatWidget&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("div",{"data-id":"eTweuIOZMQQ",className:"livechat_button",dangerouslySetInnerHTML:{__html:`<a onclick="event.preventDefault(); if (LiveChatWidget !== undefined) { LiveChatWidget.call('maximize');return false; }" href="https://www.livechat.com/?utm_source=chat_button&utm_medium=referral&utm_campaign=lc_12811512">${o("footer.chat")}</a>`}}),(0,n.jsx)(B.default,{color:x.default.rawColors.darkGrey700,icon:"Whatsapp",padding:"0 0 0 18px",size:"32px",title:o("footer.chat")}
1)]});case"es":return(0,n.jsxs)(z.Link,{href:e,target:"_blank",rel:"noreferrer",title:`${o("footer.chat")} ${o("footer.links.opensInNewWindow")}`,children:[(0,n.jsx)("span",{children:o("footer.chat")}),(0,n.jsx)(B.default,{color:x.default.rawColors.darkGrey700,icon:"Whatsapp",size:"32px"})]});default:return null}})()})]})};var H=e.i(904049);class q{email;locale;componentName;endpoints={subscribe:()=>"newsletter/subscribe"};static getLocale(){let{locale:e}=s.default;return e||(0,h.default)("NEXT_PUBLIC_DEFAULT_LOCALE")}async newsletterSend(e,t){if(this.email=e,this.locale=q.getLocale(),this.componentName=t,"true"!==L.EXPERTSENDER_ENABLED)return{status:"disabled",detail:""};let{json:o}=await (0,H.default)(this.endpoints.subscribe(),{method:"POST",body:JSON.stringify({email:e,componentName:t})},this.locale);return o}}let V=new q,Y=class{email="";errorMessage="";inputActive=!1;showThx=!1;termsAgreement=!1;sendingProgress=!1;agreementValidate=!0;constructor(){(0,w.makeAutoObservable)(this,{email:w.observable,inputActive:w.observable,agreementValidate:w.observable,submitNewsletterForm:w.action,setErrorMessage:w.action,setShowThx:w.action,setTermsAgreement:w.action,setInputActive:w.action})}setEmail=e=>{this.email=e};setInputActive=e=>{this.inputActive=e};setErrorMessage=e=>{this.errorMessage=e};setShowThx=e=>{this.showThx=e};setTermsAgreement=e=>{this.termsAgreement=e,this.agreementValidate=e};submitNewsletterForm=async()=>{if(this.email=this.email.trim(),this.agreementValidate=this.termsAgreement,this.emailValidation()&&this.termsAgreement){this.sendingProgress=!0;let{status:e}=await V.newsletterSend(this.email,"footer");(0,w.runInAction)(()=>{this.sendingProgress=!1,"200"!==e&&this.setErrorMessage("footer.newsletter.submitError"),this.setShowThx(!0)})}};emailValidation=()=>(this.setErrorMessage(""),!!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(this.email)||(this.setErrorMessage(this.email.length?"footer.newsletter.inputEmailValid":"footer.newsletter.inputEmailEmpty"),!1))},U=(0,i.createContext)((o=t??new Y,t||(t=o),o));var X=e.i(512370),K=e.i(585084),Z=e.i(845539);let J=(0,a.observer)(()=>{let{t:e}=(0,E.useTranslation)("layouts"),t=L.DEFAULT_URL_PRIVACY_POLICY,{email:o,setEmail:r,inputActive:a,setInputActive:l,showThx:s,errorMessage:d,agreementValidate:u,termsAgreement:c,setTermsAgreement:f,submitNewsletterForm:p,sendingProgress:m}=(0,i.useContext)(U),g=(0,i.useRef)(null),h=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{let t=e.target;g.current?.contains(t)||a&&!o?.length&&l(!1)};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)},[a,o,l]);let w=a||!!o?.length;return(0,n.jsx)("div",{sx:A.footerNewsletterContainer,children:s?(0,n.jsx)("div",{sx:A.newsletterThx,children:d||e("footer.newsletter.thx")}):(0,n.jsxs)("form",{ref:g,action:"",onSubmit:e=>{e.preventDefault(),p()},children:[(0,n.jsxs)("div",{sx:A.newsletterForm,children:[!w&&(0,n.jsx)("button",{type:"button","aria-controls":"newsletter-email-input",onMouseDown:e=>{e.preventDefault(),l(!0),(0,Z.focusWithoutVisibleRing)(h.current)},sx:A.newsletterPlaceholder,children:e("footer.newsletter.inputPlaceholder")}),(0,n.jsx)("input",{ref:h,id:"newsletter-email-input",onMouseDown:Z.handlePointerInputFocus,onKeyDown:Z.handleKeyboardInputFocus,onFocus:()=>{l(!0)},onBlur:e=>{(0,Z.clearPointerInputFocus)(e),o?.length||l(!1)},sx:A.newsletterInput,type:"email",value:o,name:"newsletterEmail",onChange:e=>{l(!0),r(e.currentTarget.value)},"aria-label":e("footer.newsletter.inputPlaceholder")}),(0,n.jsx)(X.default,{variant:"iconOnly",size:"small",loading:m,type:"submit",children:(0,n.jsx)(B.default,{icon:"ArrowForward",size:"24px",color:x.default.rawColors.darkGrey700})})]}),d&&(0,n.jsx)("div",{sx:A.newsletterError,children:e(d)}),(0,n.jsx)("div",{sx:A.newsletterCheckbox,children:(0,n.jsx)(K.default,{value:c,onChange:e=>f(e),error:e("footer.newsletter.inputTermsAgreement"),showError:!u,children:(0,n.jsxs)("div",{sx:A.newsletterPolicyWrapper,children:[e("footer.newsletter.privacyAgreement")," ",(0,n.jsx)(z.Link,{href:t,target:"_blank",rel:"noreferrer",sx:A.newsletterPolicyLink,title:`${e("footer.newsletter.privacyLink")} ${e("footer.links.opensInNewWindow")}`,children:e("footer.newsletter.privacyLink")}),e("footer.newsletter.subscriptionNote")]})})})]})})}),Q=({chatLink:e,socialMedia:t,phoneNr:o,showNewsletter:i})=>(0,n.jsxs)("div",{sx:A.footerContactContainer(!i,i),children:[i?(0,n.jsx)("div",{sx:A.footerContactGridColumn,children:(0,n.jsx)(O,{chatLink:e,phoneNr:o})}):(0,n.jsx)(O,{chatLink:e,phoneNr:o}),i&&(0,n.jsx)(J,{}),i?(0,n.jsx)("div",{sx:A.footerSocialGridColumn,children:(0,n.jsx)(D,{media:t})}):(0,n.jsx)(D,{media:t})]});e.i(900956);var ee=e.i(969500),et=e.i(248347);let eo=({section:e,index:t})=>{let{t:o}=(0,E.useTranslation)("layouts"),{isNarrowerThanTablet:r}=(0,ee.useResponsive)(),[a,l]=(0,i.useState)(!1),[s,d]=(0,i.useState)(!1),{header:u,items:c}=e;(0,i.useEffect)(()=>{d(!0),r||l(!0)},[r]);let f=(0,i.useMemo)(()=>c.map((e,t)=>({...e,id:t})),[c]),p=!s||r;return(0,n.jsxs)("div",{sx:A.footerGeneralListContainer(t),children:[p?(0,n.jsx)("div",{sx:A.footerGeneralListToogleBlock,onClick:()=>l(!a),onKeyDown:()=>l(!a),"aria-hidden":"true",children:(0,n.jsxs)("div",{sx:A.footerGeneralListWrapper,children:[(0,n.jsx)(et.default,{h:4,headingType:4,mobile:!0,color:x.default.rawColors.darkGrey700,children:u}),(0,n.jsx)(X.default,{variant:"iconOnly",addSx:A.addButton,cy:"CloseButton",title:a?o("footer.toggle.less"):o("footer.toggle.more"),children:(0,n.jsx)(B.default,{icon:a?"Minus":"Add",size:"18px",title:a?o("footer.toggle.less"):o("footer.toggle.more")})})]})}):(0,n.jsx)(et.default,{h:4,headingType:4,mobile:!0,pb:16,color:x.default.rawColors.darkGrey700,children:u}),(!s||a||!r)&&(0,n.jsx)("ul",{sx:A.footerGeneralList,children:f.map(e=>(0,n.jsx)("li",{children:e.html||/^(?:[a-z]+:)?\/\//i.test(e.link)?(0,n.jsx)("div",{sx:A.footerGeneralListItem,children:(e=>{if(e.html){if(e.html.includes('target="_blank"')){let t=e.html.match(/<a[^>]*>([^<]+)<\/a>/),i=t?t[1]:e.value,r=e.html.replace(/<a([^>]*target="_blank"[^>]*)>/,`<a$1 title="${i} ${o("footer.links.opensInNewWindow")}">`);return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:r}}
1)}return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.html}})}return(0,n.jsx)("a",{href:e.link,target:"_blank",rel:"noreferrer",title:`${e.value} ${o("footer.links.opensInNewWindow")}`,children:e.value})})(e)}):(0,n.jsx)(T.default,{href:e.link,className:"footer_nav",sx:A.footerNavLink,children:(0,n.jsx)("div",{sx:A.footerGeneralListItem,children:e.value})})},e.id))})]})},en=({sectionLinks:e})=>{let t=e?Object.values(e):[],o=0;return(0,n.jsx)("div",{sx:A.footerGeneralContainer(t.length),children:t.map(e=>(o+=1,(0,n.jsx)(eo,{section:e,index:o},o)))})};var ei=e.i(800925);let er=({footer:e})=>{let{socialMedia:t,chatLink:o,sectionLinks:i,payments:r,phoneNr:a}=e,l=new Date().getFullYear(),{t:s}=(0,E.useTranslation)("layouts"),d="true"===L.EXPERTSENDER_ENABLED,u=r?.length>5;return(0,n.jsxs)("footer",{sx:A.footerContainer,children:[(0,n.jsx)(P,{}),(0,n.jsxs)("div",{sx:A.footerContainerInner,children:[(0,n.jsx)(Q,{socialMedia:t,chatLink:o,phoneNr:a,showNewsletter:d}),(0,n.jsx)(en,{sectionLinks:i}),(0,n.jsxs)("div",{sx:A.footerBottom(!1),children:[(0,n.jsx)("div",{sx:A.footerPayments,role:"img","aria-label":s("footer.payments.acceptedMethods"),children:r&&r.map(e=>(0,n.jsx)("div",{sx:A.footerPaymentsIcon(e.width?`${e.width}px`:void 0,u),children:(0,n.jsx)(N.default,{image:e.icon,alt:e.name||s("footer.payments.paymentMethods"),objectFit:"contain"})},e.id))}),(0,n.jsxs)("div",{sx:A.footerRegionsContainer,children:[(0,n.jsx)("div",{sx:A.footerCopyRights,children:s("footer.rights",{actualYear:l})}),(0,n.jsx)(ei.default,{})]})]})]})]})};var ea=e.i(44446),el=e.i(405377),es=e.i(545193);let ed={container:(e,t=0,o=!1)=>({position:o?"static":"fixed",width:"100%",height:e?"auto":0,transition:`transform ${x.default.transitions.time.normal} ${x.default.transitions.animation.atomCurve}`,transform:e?"translateY(0)":"translateY(-100%)",zIndex:o?x.default.zIndex.documentUp:x.default.zIndex.barUp,top:t,left:0,overflow:"hidden",...m.default.mainTransition("height",x.default.transitions.animation.atomCurve,x.default.transitions.time.normal)}),popup:e=>({position:"relative",display:"flex",flexFlow:["column nowrap","column nowrap","row nowrap"],justifyContent:["uset","uset","space-between"],width:"100%",height:"auto",transition:`transform ${x.default.transitions.time.normal} ${x.default.transitions.animation.atomCurve}`,transform:e?"translateY(0)":"translateY(-100%)",backgroundColor:x.default.rawColors.darkGrey700,p:["24px 16px 24px 16px","24px 16px 24px 16px","24px 24px 24px 24px","24px 40px 24px 40px"],borderBottom:`1px solid ${x.default.rawColors.darkGrey600}`}),message:{maxWidth:420,color:x.default.rawColors.neutralWhite,fontSize:x.default.fontSizes.caption,p:["0 40px 16px 0","0 40px 16px 0","0 40px 16px 0",0]},buttons:{display:"flex",flexFlow:["row wrap","row wrap","column nowrap"],justifyContent:["space-between","space-between","start"],pr:[40,40,40],a:{width:"auto",height:36,mb:["unset","unset","8px"],mr:["8px","8px","unset"],"&:first-of-type":{mb:["24px","8px"]}},button:{"&:hover":{span:{color:x.default.rawColors.neutralWhite},backgroundColor:"transparent !important;"}},close:{position:"absolute",top:24,right:[16,16,24,40]}}};var eu=e.i(828297),ec=e.i(435689),ef=e.i(494691),ep=e.i(404209),ex=e.i(29368),em=e.i(349531);let eg=!1,eh={en:"en-EN",pl:"pl-PL",de:"de-DE",fr:"fr-FR",bg:"bg-BG",ro:"ro-RO"},ew={langCode:null,defaultLangCode:null,langUrl:null,shouldShow:!1},ey=e=>{if(!e)return null;let[t,o]=e.replace(/_/g,"-").toLowerCase().split("-");return eh[t]?eh[t]:o?`${t}-${o.toUpperCase()}`:`${t}-${t.toUpperCase()}`},eC=(e,t)=>{let o=e.replace(/_/g,"-").toLowerCase(),n=t.replace(/_/g,"-").toLowerCase();if(o===n)return!0;let[i,r]=o.split("-");return!!(n&&(i===n||r===n||n.startsWith(`${i}-`)))},ev=(e,t)=>{if(!e)return null;let o=null;return e.forEach(e=>
1{!o&&e?.languages&&e.languages.forEach(e=>{!o&&e?.code&&eC(e.code,t)&&(o=e.code.replace("_","-"))})}),o},eb=(0,a.observer)(({active:e,setActive:t,promotionalMessagesHeight:o})=>{let r,a,l,[s,d]=(0,i.useState)(ew),{langCode:u,defaultLangCode:f,langUrl:p}=s,{t:x,i18n:m}=(0,E.useTranslation)("common"),g=(0,ec.useSIteTypesStore)(),h=(0,i.useRef)(null),{codeToName:w}=(0,ex.default)(),[y]=(0,ep.useOffer)(),{langPopupHeight:C,setLangPopupHeight:v,barPositionStatic:b}=c.default,j=()=>{if(h?.current?.clientHeight&&e){let e=h.current?.clientHeight;+e!=(C?+C:0)&&v(+e)}},S=async()=>{var e,o;let n,i,r,a,l;eg=!0;let s=await es.default.getGeoData();if(!s)return;let{userGeolocation:u,locale:c}=s;if(!u?.country||!g.siteTypes)return;let f=(e=g.siteTypes,o=u.country,(n=ey(ev(e,o.toLowerCase())))&&m.exists(`langPopup.switchButtonText_${n}`)||(n="en-EN"),i=ey(ev(e,c)),l=!!(r=n?((e,t)=>{if(!e)return null;let o=null;return e.forEach(e=>{!o&&e?.languages&&e.languages.forEach(n=>{!o&&n?.code&&eC(n.code,t)&&(o=n.urls[em.ENVIRONMENT]||e.urls[em.ENVIRONMENT]||n.urls.prod||n.urls.test||n.urls.staging||null)})}),o})(e,n):null)&&!!i&&i!==n&&(a=n,!!(m.exists(`langPopup.switchButtonText_${a}`)&&m.exists(`langPopup.selectButtonText_${a}`)&&i&&m.exists(`langPopup.country_${a}_${i}`))),{langCode:n,defaultLangCode:i,langUrl:r,shouldShow:l});d(f),f.shouldShow&&setTimeout(()=>{t(!0),j()},1)};(0,i.useEffect)(()=>(eg||(ef.default?ef.default.getItem("langPopupClose"):null)||(async()=>{await g.initializeData(),S()})(),window.addEventListener("resize",j),j(),()=>{window.removeEventListener("resize",j)}),[e,C]);let k=eg&&u&&f&&p;return(0,n.jsx)(i.Fragment,{children:k&&(0,n.jsx)("div",{sx:ed.container(e,o,b),children:(0,n.jsxs)("div",{sx:ed.popup(e),ref:h,children:[(0,n.jsx)("span",{sx:ed.message,dangerouslySetInnerHTML:((a=w(r=L.OFFER_TO_REGION_MAP[y],u?u.split("-")[0]:void 0))||(a=r),l=u?x(`langPopup.message_${u}`,{country:a.toUpperCase()}):"",(0,eu.default)(l||""))}),(0,n.jsxs)("div",{sx:ed.buttons,children:[(0,n.jsx)(X.default,{variant:"outlined",onClick:()=>window.open(p,"_self"),variantColor:"white",size:"small",children:(u?x(`langPopup.switchButtonText_${u}`):"")||""}),(0,n.jsx)(X.default,{variant:"link",variantColor:"white",size:"micro",onClick:()=>g.openSidebar(u),children:(u?x(`langPopup.selectButtonText_${u}`):"")||""}),(0,n.jsx)(X.default,{addSx:ed.buttons.close,variant:"iconOnly",variantColor:"white",onClick:()=>{ef.default&&ef.default.setItem("langPopupClose","true"),t(!1),v(0)},cy:"GoToGlobalCloseButton",children:(0,n.jsx)(B.default,{icon:"Close3",size:"24px"})})]})]})})})}),ej={container:(e=!1,t=!1)=>({position:t?"static":"fixed",width:"100%",height:e||t?33:0,zIndex:t?x.default.zIndex.documentUp:x.default.zIndex.barUp,top:0,left:0,overflow:"hidden",display:"flex",justifyContent:"center",flexDirection:"row",alignItems:"center",font:x.default.fonts.uniformMedium,color:x.default.rawColors.neutralWhite,backgroundColor:x.default.rawColors.darkGrey700,borderBottom:`1px solid ${x.default.rawColors.darkGrey600}`,transition:`transform ${x.default.transitions.time.normal} ${x.default.transitions.animation.atomCurve}`,transform:e?"translateY(0)":"translateY(-100%)",...m.default.mainTransition("height",x.default.transitions.animation.atomCurve,x.default.transitions.time.normal),a:{display:"flex",flexDirection:"row",alignItems:"center",p:["0 24px 0 24px","0 36px 0 36px","0 48px 0 48px"],fontFamily:x.default.fonts.uniformMedium,fontSize:x.default.fontSizes.caption,color:x.default.rawColors.neutralWhite,letterSpacing:x.default.letterSpacings.bigCaps,span:{textDecoration:["underline","unset","unset"]},":hover, :visited":{color:x.default.rawColors.neutralWhite,span:{fontFamily:x.default.fonts.uniformMedium,textDecoration:"underline"}}},svg:{mr:"8px",mt:"-2px"}}),containerWrapper:{display:"flex",flexDirection:"row",alignItems:"center",p:["0 24px 0 24px","0 36px 0 36px","0 48px 0 48px"],fontFamily:x.default.fonts.uniformMedium,fontSize:x.default.fontSizes.caption,color:x.default.rawColors.neutralWhite,letterSpacing:x.default.letterSpacings.bigCaps},desktopOnly:{display:["none","none","unset"]}},eS=(0,a.observer)(({isActive:e,messages:t})=>{let{barPositionStatic:o}=c.default;return(0,n.jsx)(i.Fragment,{children:(0,n.jsx)("div",{sx:ej.container(e,o),"data-testid":"promotionalMe
1ssages",children:e&&t.map((e,t)=>{let o;return(0,n.jsx)("div",{sx:t>0?ej.desktopOnly:void 0,children:(o=(0,n.jsx)("div",{sx:ej.containerWrapper,"data-testid":"promotionalMessage",children:e.text}),e.hasLink()&&e.hasIcon()?o=(0,n.jsxs)(T.default,{href:e.getPrepareLink(),"data-testid":"promotionalMessage",children:[(0,n.jsx)(B.default,{icon:e.getIconType(),size:"16px",color:x.default.rawColors.neutralWhite}),(0,n.jsx)("span",{children:e.getText()})]}):e.hasLink()?o=(0,n.jsx)(T.default,{href:e.getPrepareLink(),"data-testid":"promotionalMessage",children:(0,n.jsx)("span",{children:e.text})}):e.hasIcon()&&(o=(0,n.jsxs)("div",{sx:ej.containerWrapper,"data-testid":"promotionalMessage",children:[(0,n.jsx)(B.default,{icon:e.getIconType(),size:"16px",color:x.default.rawColors.neutralWhite}),e.text]})),o)},e.getText())})})})});var ek=e.i(675493),eT=e.i(940853);class eE{text;icon;link;constructor(e){this.text=e.text,this.icon=e.icon,this.link=e.link}getText=()=>this.text;getIcon=()=>this.icon;getIconType=()=>this.icon&&eT.IconList.includes(this.icon)?this.icon:null;hasIcon=()=>this.icon&&!!this.getIconType()||!1;getLink=()=>this.link;hasLink=()=>!!this.link&&"#"!==(0,ek.default)(this.link);getPrepareLink=()=>this.link&&this.hasLink()?(0,ek.default)(this.link):null}async function eI(e,t){let o=window.SentryToolbar;if(o)return Promise.resolve(o);await eL(e,t);let n=window.SentryToolbar;if(!n)throw Error(`Unable to detect SentryToolbar global from ${t}`);return n}async function eL(e,t){let o=document.createElement("script");o.src=t,o.crossOrigin="anonymous",o.referrerPolicy="origin";let n=new Promise((t,n)=>{o.addEventListener("load",()=>{e.aborted||t()}),o.addEventListener("error",t=>{e.aborted||n(t)})});document.body.appendChild(o);try{await n}catch(e){throw console.log(e),Error(`Could not load Sentry DevToolbar bundle from ${t}`)}}("u">typeof window?window:e.g).SENTRY_RELEASE={id:"e9bbf1d079bd0fb800dd09a2a5d8fee517fdbcd6"};let eN=({enabled:e,organizationSlug:t,projectIdOrSlug:o,environment:n,placement:r="right-edge",theme:a="system",sentryOrigin:l,domId:s="sentry-toolbar",debug:d})=>(!function({cdn:e,enabled:t,initProps:o,version:n}){let r=(0,i.useRef)(null),a=e??function(e="latest"){return`https://browser.sentry-cdn.com/sentry-toolbar/${e}/toolbar.min.js`}(n);(0,i.useEffect)(()=>{!1!==t&&null===r.current&&(r.current=o)},[t,o]),(0,i.useEffect)(()=>{if(!1===t||null===r.current)return;let e=new AbortController,o=()=>{};return eI(e.signal,a).then(e=>{null!==r.current&&(o=e.init("function"==typeof r.current?r.current(e):r.current))}),()=>{e.abort(),o()}},[t,a])}({enabled:e,initProps:{organizationSlug:t,projectIdOrSlug:o,environment:n,placement:r,theme:a,sentryOrigin:l,domId:s,debug:d}}),null);var e$=e.i(350461);let eA={organizationSlug:e$.default.env.NEXT_PUBLIC_SENTRY_ORG||(0,h.default)("NEXT_PUBLIC_SENTRY_ORG")||"vox-org",projectIdOrSlug:e$.default.env.NEXT_PUBLIC_SENTRY_PROJECT||(0,h.default)("NEXT_PUBLIC_SENTRY_PROJECT")||"vox-frontend",environment:(0,h.default)("NEXT_PUBLIC_SENTRY_ENVIRONMENT")||"development",placement:"right-edge",theme:"system",sentryOrigin:e$.default.env.NEXT_PUBLIC_SENTRY_URL||(0,h.default)("NEXT_PUBLIC_SENTRY_URL")||"https://sentry.io",domId:"sentry-toolbar",debug:"logging"},eG=()=>({enabled:!0,...eA});var e_=e.i(730943);let eF=({isVisible:e,content:t,position:o,targetElement:i})=>{if(!e||!t)return null;let r=(()=>{if(!i)return{top:o.y-50,left:o.x};let e=i.getBoundingClientRect(),t=window.pageYOffset||document.documentElement.scrollTop,n=window.pageXOffset||document.documentElement.scrollLeft;return{top:e.top+t-50,left:e.left+n+e.width/2}})();return(0,e_.createPortal)((0,n.jsxs)("div",{style:{position:"absolute",top:r.top,left:r.left,transform:"translateX(-50%)",backgroundColor:"#4a4a4a",color:"white",padding:"8px 12px",borderRadius:"6px",fontSize:"14px",lineHeight:"1.4",zIndex:9999,maxWidth:"300px",wordWrap:"break-word",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",pointerEvents:"none"},children:[(0,n.jsx)("div",{style:{textAlign:"center"},children:t}),(0,n.jsx)("div",{style:{position:"absolute",top:"100%",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"6px solid #4a4a4a"}})]}),document.body)},eR=()=>{let{tooltipState:e}=(()=>
1{let[e,t]=(0,i.useState)({isVisible:!1,content:"",position:{x:0,y:0},targetElement:null}),o=(0,i.useCallback)((e,o)=>{let n=e.getBoundingClientRect();t({isVisible:!0,content:o,position:{x:n.left+n.width/2,y:n.top},targetElement:e})},[]),n=(0,i.useCallback)(()=>{t(e=>({...e,isVisible:!1}))},[]);return(0,i.useEffect)(()=>{let t=e=>{let t=e.target,n=null;for(t instanceof HTMLElement?n=t:t.parentElement&&(n=t.parentElement);n&&!n.getAttribute("tooltip-data");)n=n.parentElement;if(n){let e=n.getAttribute("tooltip-data");e&&o(n,e)}},i=e=>{let t=e.target,o=null;for(t instanceof HTMLElement?o=t:t.parentElement&&(o=t.parentElement);o&&!o.getAttribute("tooltip-data");)o=o.parentElement;o&&o.getAttribute("tooltip-data")&&n()},r=()=>{e.isVisible&&n()},a=()=>{e.isVisible&&n()};return document.addEventListener("mouseenter",t,!0),document.addEventListener("mouseleave",i,!0),document.addEventListener("scroll",r,!0),window.addEventListener("resize",a),()=>{document.removeEventListener("mouseenter",t,!0),document.removeEventListener("mouseleave",i,!0),document.removeEventListener("scroll",r,!0),window.removeEventListener("resize",a)}},[o,n,e.isVisible]),{tooltipState:e,showTooltip:o,hideTooltip:n}})();return(0,n.jsx)(eF,{isVisible:e.isVisible,content:e.content,position:e.position,targetElement:e.targetElement})};var eW=e.i(654641),eM=e.i(48512),eP=e.i(475169),ez=e.i(405372),eB=e.i(681976),eD=e.i(195764),eO=e.i(784558);let eH=e=>{window?.gtag&&"function"==typeof window.gtag&&window.gtag("event","generate_lead",{form_name:e})},eq={modalHeading:{padding:"0 16px",maxHeight:"925px"},modalContainer:e=>({display:e?"flex":"block",justifyContent:e?"center":"flex-start",fontFamily:`${x.default.fonts.uniformMedium} !important`}),modalHeadingText:{fontWeight:`${x.default.fontWeights.medium} !important`,lineHeight:"24px !important",letterSpacing:"1.2px !important",fontFamily:`${x.default.fonts.uniformMedium} !important`},modalContent:{padding:["24px 16px","24px 16px","24px 40px"],width:"100%",display:"flex",flexDirection:"column",height:"100%"},scrollableContent:{flex:1,overflowY:"auto",paddingRight:"8px",scrollbarWidth:"42px",scrollbarColor:`${x.default.rawColors.darkGrey700} ${x.default.rawColors.lightGrey300}`,"&::-webkit-scrollbar":{width:"2px",background:x.default.rawColors.neutralWhite,borderRadius:"2px"},"&::-webkit-scrollbar-track":{background:x.default.rawColors.lightGrey500},"&::-webkit-scrollbar-thumb":{borderRadius:"2px",background:x.default.rawColors.darkGrey700},[`@media (max-width: ${x.default.breakpoints[2]})`]:{scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"0px"}}},infoContainer:{padding:"16px",background:x.default.rawColors.lightGreyBgProduct},infoContent:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"12px",mb:"8px",pt:"4px"},infoText:{fontSize:"14px",color:x.default.rawColors.darkGrey700,fontFamily:x.default.fonts.uniform},smallInfoContainer:{marginTop:"16px"},smallInfoText:{fontSize:"12px",color:x.default.rawColors.darkGrey700,fontFamily:x.default.fonts.uniform},section:{paddingLeft:"4px",marginTop:"40px","&:last-of-type":{marginBottom:"8px"}},sectionTitle:{fontSize:"20px",fontWeight:"400",color:"darkGrey700",margin:"0 0 24px 0"},questionTextarea:{height:"74px",padding:"14px",maxHeight:"144px"},formInfo:{fontSize:"12px",color:x.default.rawColors.darkGrey700,fontFamily:x.default.fonts.uniform,marginTop:"-25px"},sectionTitleContainer:{marginBottom:"24px"},fullNameInput:{marginBottom:"16px"},emailInput:{marginBottom:"12px"},phoneContainer:{display:"flex",gap:"16px",marginBottom:"12px"},phoneCountryCodeSelect:{width:"120px",marginBottom:"0px"},phoneNumberInput:{flex:1,marginBottom:"0px"},footer:{display:"flex",flexDirection:["column","column","row"],justifyContent:"space-between",alignItems:"flex-start",gap:["12px","12px","40px"],marginTop:"auto",paddingTop:"24px",borderTop:"1px solid",borderTopColor:"lightGrey300",flexShrink:0},consentContainer:{flex:1,maxWidth:"550px"},consentText:{fontSize:"14px",color:"darkGrey700",lineHeight:"140%"},regulationsLink:{textDecoration:"underline",color:"darkGrey700 !important"},submitButton:{minWidth:"200px",height:"60px",fontFamily:x.default.fonts.uniformMedium,fontSize:"16px",fontWeight:x.default.fontWeights.medium,lineHeight:"140%",letterSpacing:"1.6px",flex:"auto",width:["100%","100%","auto"]},successContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"40px 20px",flex:1},successFooter:{borderTop:"1px solid",borderTopColor:"lightGrey300",paddingTop:"24px",paddingBottom:"0",width:"100%",display:"flex",justifyContent:"center"},successIconContainer:{padding:"64px",marginBottom:"24px"},successIcon:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px s
1olid",borderColor:"darkGrey700"},textContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%"},successTitle:{fontSize:"20px",fontStyle:"normal",fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,letterSpacing:"1px",lineHeight:"140%",color:"darkGrey700",marginBottom:"8px",textAlign:"center"},successMessage:{fontSize:"16px",fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,lineHeight:"140%",color:"darkGrey700"},closeButton:{width:"100%",fontFamily:x.default.fonts.uniform,height:"58px",fontWeight:x.default.fontWeights.medium,lineHeight:"140%",fontSize:"16px"},checkboxContainer:{gap:"8px"}},eV=(0,a.observer)(({isOpen:e,onClose:t})=>{let{t:o}=(0,E.useTranslation)("common"),[r,a]=(0,i.useState)(!1),[l,s]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1);(0,ea.default)(e,"designStorModal",!0,!0);let c=(0,i.useMemo)(()=>new eW.FormState({fullName:new eW.FieldState("").validators((0,eD.required)()).disableAutoValidation(),email:new eW.FieldState("").validators((0,eD.required)(),(0,eD.emailValid)()).disableAutoValidation(),phoneCountryCode:new eW.FieldState("PL"),phoneNumber:new eW.FieldState("").validators((0,eD.required)(),(0,eD.phone)("PL")).disableAutoValidation(),comment:new eW.FieldState("").validators((0,eD.min)(5),(0,eD.max)(4e3)).disableAutoValidation(),consent:new eW.FieldState(!1).validators((0,eD.requiredConsent)()).enableAutoValidation()}),[]);(0,i.useEffect)(()=>{e&&s(!1)},[e]),(0,i.useEffect)(()=>{c.$.consent.onChange(d)},[d,c]);let f=()=>{s(!1),t()},p=async()=>{a(!0);try{if((await c.validate()).hasError)return void a(!1);let e=c.$.phoneCountryCode.value,t=`${e} ${c.$.phoneNumber.value}`,n=await eO.default.submitDesignStor({fullName:c.$.fullName.value,email:c.$.email.value,phoneNumber:t,comment:c.$.comment.value||""});if(n.error){v.default.pushAlert({message:n.message?o(n.message):o("quoteRequest.error.submitFailed"),display:!0}),a(!1);return}eH("design_stor"),s(!0)}catch(e){console.error("Error submitting quote request:",e),v.default.pushAlert({message:o("quoteRequest.error.submitFailed"),display:!0})}finally{a(!1)}};return(0,n.jsx)(eM.default,{active:e,closeFunc:f,heading:o("designStor.title"),closeOnOutsideClick:!0,fullScreen:!0,addContentSx:eq.modalContainer(l),addSx:eq.modalHeading,headingAddSx:eq.modalHeadingText,children:(0,n.jsx)("div",{sx:eq.modalContent,"data-testid":"design-stor-modal-content",children:l?(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("div",{sx:eq.successContainer,"data-testid":"design-stor-modal-success-container",children:[(0,n.jsx)("div",{sx:eq.successIconContainer,"data-testid":"design-stor-modal-success-icon-container",children:(0,n.jsx)("div",{sx:eq.successIcon,"data-testid":"design-stor-modal-success-icon-wrapper",children:(0,n.jsx)(B.default,{icon:"Check",size:"64px",color:"darkGrey700",cy:"design-stor-modal-success-icon"})})}),(0,n.jsxs)("div",{sx:eq.textContainer,"data-testid":"design-stor-modal-success-text-container",children:[(0,n.jsx)(et.default,{h:5,addSx:eq.successTitle,"data-testid":"design-stor-modal-success-title",children:o("designStor.success.title")}),(0,n.jsx)("p",{sx:eq.successMessage,"data-testid":"design-stor-modal-success-message",children:o("designStor.success.message")})]})]}),(0,n.jsx)("div",{sx:eq.successFooter,"data-testid":"design-stor-modal-success-footer",children:(0,n.jsx)(X.default,{variant:"default",variantColor:"dark",onClick:f,addSx:eq.closeButton,cy:"design-stor-modal-success-close-button",children:o("designStor.success.closeButton")})})]}):(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("div",{sx:eq.scrollableContent,"data-testid":"design-stor-modal-scrollable-content",children:[(0,n.jsxs)("div",{sx:eq.infoContainer,"data-testid":"design-stor-modal-info-container",children:[(0,n.jsxs)("div",{sx:eq.infoContent,"data-testid":"design-stor-modal-info-content-1",children:[(0,n.jsx)(B.default,{icon:"Resize",size:"24px",color:"darkGrey700",cy:"design-stor-modal-info-icon-1"}),(0,n.jsx)("p",{sx:eq.infoText,"data-testid":"design-stor-modal-info-text-1",children:o("designStor.infoText1")})]}),(0,n.jsxs)("div",{sx:eq.infoContent,"data-testid":"design-stor-modal-info-content-2",children:[(0,n.jsx)(B.default,{icon:"GroupMonitor",size:"24px",color:"darkGrey700",cy:"design-stor-modal-info-icon-2"}
1),(0,n.jsx)("p",{sx:eq.infoText,"data-testid":"design-stor-modal-info-text-2",children:o("designStor.infoText2")})]}),(0,n.jsxs)("div",{sx:eq.infoContent,"data-testid":"design-stor-modal-info-content-3",children:[(0,n.jsx)(B.default,{icon:"Shield",size:"24px",color:"darkGrey700",cy:"design-stor-modal-info-icon-3"}),(0,n.jsx)("p",{sx:eq.infoText,"data-testid":"design-stor-modal-info-text-3",children:o("designStor.infoText3")})]})]}),(0,n.jsx)("div",{sx:eq.smallInfoContainer,"data-testid":"design-stor-modal-small-info-container",children:(0,n.jsx)("p",{sx:eq.smallInfoText,"data-testid":"design-stor-modal-small-info-text",children:o("designStor.infoText")})}),(0,n.jsxs)("div",{sx:eq.section,"data-testid":"design-stor-modal-data-section",children:[(0,n.jsxs)("div",{sx:eq.sectionTitleContainer,"data-testid":"design-stor-modal-data-section-title-container",children:[(0,n.jsx)(et.default,{h:4,headingType:4,addSx:eq.sectionTitle,"data-testid":"design-stor-modal-data-section-title",children:o("designStor.yourData")}),(0,n.jsx)("p",{sx:eq.formInfo,"data-testid":"design-stor-modal-form-info",children:o("designStor.formInfo")})]}),(0,n.jsx)(eP.default,{field:c.$.email,placeholder:o("quoteRequest.email"),addSx:eq.emailInput,cy:"design-stor-modal-email-input"}),(0,n.jsx)(eP.default,{field:c.$.fullName,placeholder:o("quoteRequest.fullName"),addSx:eq.fullNameInput,cy:"design-stor-modal-full-name-input"}),(0,n.jsxs)("div",{sx:eq.phoneContainer,"data-testid":"design-stor-modal-phone-container",children:[(0,n.jsx)(eB.default,{value:c.$.phoneCountryCode.value,onChange:e=>c.$.phoneCountryCode.onChange(e.toString()),options:[{name:"+48",value:"PL"}],addSx:eq.phoneCountryCodeSelect,disabled:!0,cy:"design-stor-modal-phone-country-code-select"}),(0,n.jsx)(eP.default,{field:c.$.phoneNumber,placeholder:o("quoteRequest.phoneNumber"),addSx:eq.phoneNumberInput,cy:"design-stor-modal-phone-number-input"})]})]}),(0,n.jsxs)("div",{sx:eq.section,"data-testid":"design-stor-modal-question-section",children:[(0,n.jsx)(et.default,{h:4,headingType:4,addSx:eq.sectionTitle,"data-testid":"design-stor-modal-question-section-title",children:o("designStor.sectionTitle")}),(0,n.jsx)(ez.default,{field:c.$.comment,placeholder:o("designStor.questionPlaceholder"),bottomDescription:o("designStor.questionText"),maxLength:4e3,addSx:eq.questionTextarea,cy:"design-stor-modal-question-textarea"})]})]}),(0,n.jsxs)("div",{sx:eq.footer,"data-testid":"design-stor-modal-footer",children:[(0,n.jsx)("div",{sx:eq.consentContainer,"data-testid":"design-stor-modal-consent-container",children:(0,n.jsx)(K.default,{value:d,onChange:u,showError:!!c.$.consent.error,error:c.$.consent.error||"",addSx:eq.checkboxContainer,cy:"design-stor-modal-consent-checkbox",children:(0,n.jsxs)("span",{sx:eq.consentText,"data-testid":"design-stor-modal-consent-text",children:[o("quoteRequest.consent")," ",(0,n.jsx)("a",{href:"/pages/regulamin",target:"_blank",rel:"noopener noreferrer",sx:eq.regulationsLink,"data-testid":"design-stor-modal-regulations-link",children:o("quoteRequest.regulationsLink")})]})})}),(0,n.jsx)(X.default,{variant:"default",variantColor:"brand",onClick:p,disabled:r,loading:r,addSx:eq.submitButton,cy:"design-stor-modal-submit-button",children:o("designStor.btnText")})]})]})})})}),eY={postalCodeInput:{marginBottom:"12px"},modalHeading:{padding:"0 16px",maxHeight:"925px"},modalContainer:e=>({display:e?"flex":"block",justifyContent:e?"center":"flex-start",fontFamily:`${x.default.fonts.uniformMedium} !important`}),modalHeadingText:{fontWeight:`${x.default.fontWeights.medium} !important`,lineHeight:"24px !important",letterSpacing:"1.2px !important",fontFamily:`${x.default.fonts.uniformMedium} !important`},modalContent:{padding:["24px 16px","24px 16px","24px 40px"],width:"100%",display:"flex",flexDirection:"column",height:"100%"},scrollableContent:{flex:1,overflowY:"auto",paddingRight:"8px",scrollbarWidth:"42px",scrollbarColor:`${x.default.rawColors.darkGrey700} ${x.default.rawColors.lightGrey300}`,"&::-webkit-scrollbar":{width:"2px",background:x.default.rawColors.neutralWhite,borderRadius:"2px"},"&::-webkit-scrollbar-track":{background:x.default.rawColors.lightGrey500},"&::-webkit-scrollbar-thumb":{borderRadius:"2px",background:x.default.rawColors.darkGrey700},[`@media (max-width: ${x.default.breakpoints[2]})`]:{scrollbarWidth:"thin","&::-webkit-scrollbar":{width:"0px"}}},infoContainer:{padding:"8px 16px",background:x.default.rawColors.lightGreyBgProduct},infoText:{fontSize:"14px",color:x.default.rawColors.darkGrey700,fontFamily:x.default.fonts.uniform},smallInfoContainer:{marginTop:"16px"},smallInfoText:{fontSize:"12px",color:x.default.rawColors.darkGrey700,fontFamily:x.default.fonts.uniform},section:{marginTop:"40px",paddingLeft:"4px","&:last-of-type":{marginBottom:"8px"}},sectionTitle:{fontSize:"20px",fontWeight:"400",color:"darkGrey700",margin:"0 0 24px 0"}
1,questionTextarea:{height:"74px",padding:"14px",maxHeight:"144px"},formInfo:{fontSize:"12px",color:x.default.rawColors.darkGrey700,fontFamily:x.default.fonts.uniform,marginTop:"-25px"},sectionTitleContainer:{marginBottom:"24px"},fullNameInput:{marginBottom:"16px"},emailInput:{marginBottom:"12px"},phoneContainer:{display:"flex",gap:"16px",marginBottom:"12px"},phoneCountryCodeSelect:{width:"120px",marginBottom:"0px"},phoneNumberInput:{flex:1,marginBottom:"0px"},footer:{display:"flex",flexDirection:["column","column","row"],justifyContent:"space-between",alignItems:"flex-start",gap:["12px","12px","40px"],marginTop:"auto",paddingTop:"24px",borderTop:"1px solid",borderTopColor:"lightGrey300",flexShrink:0},consentContainer:{flex:1,maxWidth:"550px"},consentText:{fontSize:"14px",color:"darkGrey700",lineHeight:"140%"},regulationsLink:{textDecoration:"underline",color:"darkGrey700 !important"},submitButton:{minWidth:"200px",height:"60px",fontFamily:x.default.fonts.uniformMedium,fontSize:"16px",fontWeight:x.default.fontWeights.medium,lineHeight:"140%",letterSpacing:"1.6px",flex:"auto",width:["100%","100%","auto"]},successContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"40px 20px",flex:1},successFooter:{borderTop:"1px solid",borderTopColor:"lightGrey300",paddingTop:"24px",paddingBottom:"0",width:"100%",display:"flex",justifyContent:"center"},successIconContainer:{padding:"64px",marginBottom:"24px"},successIcon:{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",border:"2px solid",borderColor:"darkGrey700"},textContainer:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%"},successTitle:{fontSize:"20px",fontStyle:"normal",fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,letterSpacing:"1px",lineHeight:"140%",color:"darkGrey700",marginBottom:"8px",textAlign:"center"},successMessage:{fontSize:"16px",fontFamily:x.default.fonts.uniform,fontWeight:x.default.fontWeights.normal,lineHeight:"140%",color:"darkGrey700"},closeButton:{width:"100%",fontFamily:x.default.fonts.uniform,height:"58px",fontWeight:x.default.fontWeights.medium,lineHeight:"140%",fontSize:"16px"},checkboxContainer:{gap:"8px"}},eU=(0,a.observer)(({isOpen:e,onClose:t})=>{let{t:o}=(0,E.useTranslation)("common"),[r,a]=(0,i.useState)(!1),[l,s]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1);(0,ea.default)(e,"interiorDesignModal",!0,!0);let c=async e=>{let t=e?.trim(),o=(0,eD.required)()(t);return o||(o=(0,eD.postal)("PL")(t))},f=(0,i.useMemo)(()=>new eW.FormState({fullName:new eW.FieldState("").validators((0,eD.required)()).disableAutoValidation(),email:new eW.FieldState("").validators((0,eD.required)(),(0,eD.emailValid)()).disableAutoValidation(),postalCode:new eW.FieldState("").validators(c).disableAutoValidation(),phoneCountryCode:new eW.FieldState("PL"),phoneNumber:new eW.FieldState("").validators((0,eD.required)(),(0,eD.phone)("PL")).disableAutoValidation(),comment:new eW.FieldState("").validators((0,eD.min)(5),(0,eD.max)(4e3)).disableAutoValidation(),consent:new eW.FieldState(!1).validators((0,eD.requiredConsent)()).enableAutoValidation()}),[]);(0,i.useEffect)(()=>{e&&s(!1)},[e]),(0,i.useEffect)(()=>{f.$.consent.onChange(d)},[d,f]);let p=()=>{s(!1),t()},x=async()=>{a(!0);try{if((await f.validate()).hasError)return void a(!1);let e=f.$.phoneCountryCode.value,t=`${e} ${f.$.phoneNumber.value}`,n=await eO.default.submitDesignConsultation({fullName:f.$.fullName.value,postalCode:f.$.postalCode.value,email:f.$.email.value,phoneNumber:t,comment:f.$.comment.value||""});if(n.error){v.default.pushAlert({message:n.message?o(n.message):o("quoteRequest.error.submitFailed"),display:!0}),a(!1);return}eH("interior_desing"),s(!0)}catch(e){console.error("Error submitting quote request:",e),v.default.pushAlert({message:o("quoteRequest.error.submitFailed"),display:!0})}finally{a(!1)}};return(0,n.jsx)(eM.default,{active:e,closeFunc:p,heading:o("interiorDesignModal.title"),closeOnOutsideClick:!0,fullScreen:!0,addContentSx:eY.modalContainer(l),addSx:eY.modalHeading,headingAddSx:eY.modalHeadingText,children:(0,n.jsx)("div",{sx:eY.modalContent,"data-testid":"interior-design-modal-content",children:l?(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("div",{sx:eY.successContainer,"data-testid":"interior-design-modal-success-container",children:[(0,n.jsx)("div",{sx:eY.successIconContainer,"data-testid":"interior-design-modal-success-icon-container",children:(0,n.jsx)("div",{sx:eY.successIcon,"data-testid":"interior-design-modal-success-icon-wrapper",children:(0,n.jsx)(B.default,{icon:"Check",size:"64px",color:"darkGrey700",cy:"interior-design-modal-success-icon"})})}),(0,n.jsxs)("div",{sx:eY.textContainer,"data-testid":"interior-design-modal-success-text-container",children:[(0,n.jsx)(et.default,{h:5,addSx:eY.successTitle,"data-testid":"interior-design-modal-success-title",children:o("interiorDesignModal.success.title")}
1),(0,n.jsx)("p",{sx:eY.successMessage,"data-testid":"interior-design-modal-success-message",children:o("interiorDesignModal.success.message")})]})]}),(0,n.jsx)("div",{sx:eY.successFooter,"data-testid":"interior-design-modal-success-footer",children:(0,n.jsx)(X.default,{variant:"default",variantColor:"dark",onClick:p,addSx:eY.closeButton,cy:"interior-design-modal-success-close-button",children:o("interiorDesignModal.success.closeButton")})})]}):(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("div",{sx:eY.scrollableContent,"data-testid":"interior-design-modal-scrollable-content",children:[(0,n.jsx)("div",{sx:eY.infoContainer,"data-testid":"interior-design-modal-info-container",children:(0,n.jsx)("p",{sx:eY.infoText,"data-testid":"interior-design-modal-info-text",children:o("interiorDesignModal.infoText1")})}),(0,n.jsxs)("div",{sx:eY.section,"data-testid":"interior-design-modal-data-section",children:[(0,n.jsxs)("div",{sx:eY.sectionTitleContainer,"data-testid":"interior-design-modal-data-section-title-container",children:[(0,n.jsx)(et.default,{h:4,headingType:4,addSx:eY.sectionTitle,"data-testid":"interior-design-modal-data-section-title",children:o("interiorDesignModal.yourData")}),(0,n.jsx)("p",{sx:eY.formInfo,"data-testid":"interior-design-modal-form-info",children:o("interiorDesignModal.formInfo")})]}),(0,n.jsx)(eP.default,{field:f.$.email,placeholder:o("quoteRequest.email"),addSx:eY.emailInput,cy:"interior-design-modal-email-input"}),(0,n.jsx)(eP.default,{field:f.$.fullName,placeholder:o("quoteRequest.fullName"),addSx:eY.fullNameInput,cy:"interior-design-modal-full-name-input"}),(0,n.jsx)(eP.default,{field:f.$.postalCode,placeholder:o("quoteRequest.postalCode"),addSx:eY.postalCodeInput,cy:"interior-design-modal-postal-code-input"}),(0,n.jsxs)("div",{sx:eY.phoneContainer,"data-testid":"interior-design-modal-phone-container",children:[(0,n.jsx)(eB.default,{value:f.$.phoneCountryCode.value,onChange:e=>f.$.phoneCountryCode.onChange(e.toString()),options:[{name:"+48",value:"PL"}],addSx:eY.phoneCountryCodeSelect,disabled:!0,cy:"interior-design-modal-phone-country-code-select"}),(0,n.jsx)(eP.default,{field:f.$.phoneNumber,placeholder:o("quoteRequest.phoneNumber"),addSx:eY.phoneNumberInput,cy:"interior-design-modal-phone-number-input"})]})]}),(0,n.jsxs)("div",{sx:eY.section,"data-testid":"interior-design-modal-question-section",children:[(0,n.jsx)(et.default,{h:4,headingType:4,addSx:eY.sectionTitle,"data-testid":"interior-design-modal-question-section-title",children:o("interiorDesignModal.sectionTitle")}),(0,n.jsx)(ez.default,{field:f.$.comment,placeholder:o("interiorDesignModal.questionPlaceholder"),bottomDescription:o("interiorDesignModal.questionText"),maxLength:4e3,addSx:eY.questionTextarea,cy:"interior-design-modal-question-textarea"})]})]}),(0,n.jsxs)("div",{sx:eY.footer,"data-testid":"interior-design-modal-footer",children:[(0,n.jsx)("div",{sx:eY.consentContainer,"data-testid":"interior-design-modal-consent-container",children:(0,n.jsx)(K.default,{value:d,onChange:u,showError:!!f.$.consent.error,error:f.$.consent.error||"",addSx:eY.checkboxContainer,cy:"interior-design-modal-consent-checkbox",children:(0,n.jsxs)("span",{sx:eY.consentText,"data-testid":"interior-design-modal-consent-text",children:[o("quoteRequest.consent")," ",(0,n.jsx)("a",{href:"/pages/regulamin",target:"_blank",rel:"noopener noreferrer",sx:eY.regulationsLink,"data-testid":"interior-design-modal-regulations-link",children:o("quoteRequest.regulationsLink")})]})})}),(0,n.jsx)(X.default,{variant:"default",variantColor:"brand",onClick:x,disabled:r,loading:r,addSx:eY.submitButton,cy:"interior-design-modal-submit-button",children:o("interiorDesignModal.btnText")})]})]})})})}),eX=(0,d.default)(()=>e.A(95309),{loadableGenerated:{modules:[457209]}
1,ssr:!1}),eK=(0,d.default)(()=>e.A(801438),{loadableGenerated:{modules:[705303]},ssr:!1}),eZ=(0,d.default)(()=>e.A(467712),{loadableGenerated:{modules:[390084]},ssr:!1}),eJ=(0,a.observer)(({children:e,footer:t={},navigationBar:o={},simpleLayout:a=!1,attachFirstChildToNavigation:d=!1,navParams:b={navTransparency:u.ENavTransparency.BOTH_NOT_TRANSPARENT},categoriesTree:j={},promotionalMessages:T=[],addresses:E,overflowY:I,overflowX:N,slugToPageScrollY:$})=>{let A,G;A=(0,f.useCartStore)(),G=(0,g.getRegion)(),(0,i.useEffect)(()=>{let e=()=>{if(!document.hidden){let e=ef.default?ef.default.getItem(`cartId_${G}`):null;e===A.cartId?""!==A.cartId&&""!==e&&A.refreshCart():A.getCartFromLocalStorage()&&A.fetchAndPopulateCartStore()}};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[A]);let{data:_}=(0,l.useSession)(),F=_?.user?.roles?.includes(L.ROLES.ECOMMERCE_DEVELOPER),{navigationProductItemSelected:R,navigationAndFooterVisible:P,isCartCreated:z,setCartCreated:B,isMenuMobileOpened:D,isVideoModalOpened:O,isSearchOpened:H,userData:q,langPopupHeight:V,isPromotionalMessagesOpened:Y,barPositionStatic:U,isMenuPined:X,isLoginGeneralOpened:K,userPanelOpened:Z,setIsPromotionalMessagesOpened:J,setBarsPositionStatic:Q,isProductCardOpened:ee,lastVisitedProductId:et,navigationContainerIsStatic:eo,setNavigationContainerIsStatic:en,navigationContainerIsVisible:ei,setNavigationContainerIsVisible:es,setNavigationContainerHeight:ed}=c.default,eu=(0,g.getRegion)(),[ec,ep]=(0,i.useState)(!1),[ex,em]=(0,i.useState)(!1),[eg,eh]=(0,i.useState)(!1),{cartId:ew,fetchAndPopulateCartStore:ey,fetchAvailableDeliveries:eC,getCartFromLocalStorage:ev}=(0,f.useCartStore)(),ej=(0,s.useRouter)(),{pathname:ek}=ej;(0,i.useEffect)(()=>{let e=()=>{window.setTimeout(()=>{(()=>{let{hash:e}=window.location;if(!(e=>{if(!e||e.length<=1)return!1;let t=e.toLowerCase();return!C.some(e=>t.includes(e.toLowerCase()))})(e))return;let t=decodeURIComponent(e.slice(1)).trim();t&&(0,y.default)(t)})()},50)};return ej.events.on("routeChangeComplete",e),e(),()=>{ej.events.off("routeChangeComplete",e)}},[ej]);let{id:eT}=(0,p.useCustomerDataStore)(),{createSession:eI}=(()=>{let{data:e}=(0,l.useSession)(),{fetchAndPopulateCustomerDataStore:t,getCustomerFromSession:o,removeCustomerFromSession:n}=(0,p.useCustomerDataStore)(),i=async()=>{if(e?.token.error==="RefreshAccessTokenError"){"string"==typeof e.token.idToken?(0,l.signOut)({callbackUrl:`/api/auth/logout?idToken=${e.token.idToken}`}):(0,l.signOut)(),await n();return}await (0,w.runInAction)(async()=>{await t()})};return{createSession:async()=>{let t=!!e&&new Date(e.expires).getTime()||0,r=Date.now()>t;void 0!==e&&(e&&!r&&await i(),e&&r&&((0,l.signOut)({callbackUrl:`/api/auth/logout?idToken=${e.token.idToken}`}),await n()),await o())}}})(),eL=(0,i.useMemo)(()=>{let e={},t=Object.values(j);return t&&t.forEach(t=>{Object.assign(e,(0,el.createServiceMap)(t))}),e},[j]),e$=()=>T.length?T.map(e=>new eE(e)):[],eA=()=>{$&&document.body.offsetHeight&&window.scrollY&&c.default.setScrollYOnPage($,document.body.offsetHeight,window.scrollY)};(0,i.useEffect)(()=>{if($&&1){let e=window.location.hash.length>1,t=c.default.getScrollYOnPage($);!e&&!et&&t&&document.body.offsetHeight&&setTimeout(()=>{let e=t.documentHeight-document.body.offsetHeight,o=t.scrollY-e;window.scrollTo({top:o,behavior:"instant"})},400),window.document.onclick=eA}return()=>{window.document.onclick=null}},[$,et]),(0,i.useEffect)(()=>{ek.includes("product")||(0,g.removeConfiguratorScripts)()},[ek]);let e_="true"===(0,h.default)("NEXT_PUBLIC_DISPLAY_DESIGN_STOR"),eF=()=>{let e=window.location.hash;e.includes("designStor")&&"true"===(0,h.default)("NEXT_PUBLIC_DISPLAY_DESIGN_STOR")?em(!0):e.includes("interiorDesing")?eh(!0):(em(!1),eh(!1))};(0,i.useEffect)(()=>(window.addEventListener("hashchange",eF,!1),window.addEventListener("popstate",eF,!1),window.addEventListener("click",eF,!1),eF(),()=>{window.removeEventListener("hashchange",eF,!1),window.removeEventListener("click",eF,!1),window.removeEventListener("popstate",eF,!1)}),[]);let eW=()=>{window.history.replaceState({},"",window.location.pathname)};(0,i.useEffect)(()=>{_&&("string"==typeof eT&&(()=>{let e;_?.token?.newSignIn&&"number"==typeof _.token.newSignIn&&Date.now()-_.token.newSignIn<1e4&&(e={event:"ga4Event",eventAction:"Logowanie",eventLabel:eT,dimension1:k.ACCOUNT_TYPE,dimension3:eT},window&&window.dataLayer&&(window.dataLayer.push({ecommerce:null}),window.dataLayer.push(e)))})(),r.configureScope(e=>{e.setTag("customerId",eT)}))},[eT]),(0,i.useEffect)(()=>{(async()=>
1{if(z&&E){let e;"MX"===eu&&E?.basicAddress?.postalCode?e={key:"postalCode",value:E?.basicAddress.postalCode}:"EUR"===eu&&E?.basicAddress?.country&&(e={key:"countryCode",value:E?.basicAddress.country}),await eC(e)}})()},[E]),(0,i.useEffect)(()=>{(async()=>{if(!ev())return;let{cartId:e,products:t}=await ey();if(e&&t.size>0){let e;"MX"===eu&&E?.basicAddress?.postalCode?e={key:"postalCode",value:E?.basicAddress.postalCode}:"EUR"===eu&&E?.basicAddress?.country&&(e={key:"countryCode",value:E?.basicAddress.country}),await eC(e)}B(!0)})()},[]),(0,i.useEffect)(()=>{eI()},[_]),(0,i.useEffect)(()=>{r.configureScope(e=>{e.setTag("cartId",ew)})},[ew,V,ec]),(0,i.useEffect)(()=>{J(e$().length>0&&!D&&!X&&!K&&!Z&&!K&&!ee),Q(e$().length>0&&!D&&!X&&ee&&!K)},[e$().length,D,K,X,K,Z,ee]);let eM=(0,i.useMemo)(()=>v.default.alerts.length>0&&v.default.currentAlert,[v.default.alerts.length]),eP=(0,i.useMemo)(()=>!!(R||D||K||H||q||eM||O),[R,D,H,q,eM,O,K]);(0,ea.default)(eP,"layout");let ez=(0,i.useMemo)(()=>{let e=0;return H||(!ec||D||X||Z||K||!V||U||(e+=V),Y&&!U&&(e+=33)),e},[ec,V,U,Y,D,X,H,K,Z]),eB=(0,i.useMemo)(()=>!!Object.keys(t).length,[t]);return a?(0,n.jsx)(W,{attachFirstChildToNavigation:d,overflowY:I,overflowX:N,children:e}):(0,n.jsxs)("div",{sx:((e,t=null,o=null)=>({minHeight:"100vh",display:"flex",flexDirection:"column",justifyContent:"flex-start",position:"relative",mt:e,overflowY:t,overflowX:o,...m.default.mainTransition("margin-top",x.default.transitions.animation.atomCurve,x.default.transitions.time.normal)}))(ez,I||null,N||null),children:[z&&(0,n.jsx)(eX,{isCartCreated:z}),(0,n.jsx)(eS,{isActive:(!!Y||U)&&!!o,messages:e$()}),P&&o&&(0,n.jsx)(i.Fragment,{children:(0,n.jsx)(eb,{active:ec&&!D&&!X&&!K,setActive:ep,promotionalMessagesHeight:33*!!Y})}),(0,n.jsx)(M,{positionTop:ez,isProductCardOpened:ee,navigationContainerIsStatic:eo,setNavigationContainerIsStatic:en,navigationContainerIsVisible:ei,setNavigationContainerIsVisible:es,setNavigationContainerHeight:ed,isMenuMobileOpened:D,isMenuPined:X,isSearchOpened:H,isLoginGeneralOpened:K,userPanelOpened:Z,children:(0,n.jsx)(S,{navElements:o,categoriesTree:j,serviceMap:eL,navParams:eo?b:{navTransparency:u.ENavTransparency.BOTH_NOT_TRANSPARENT,backgroundColor:x.default.rawColors.neutralWhite}}
1)}),(0,n.jsx)(eK,{}),(0,n.jsx)(eZ,{}),e,P&&eB&&(0,n.jsx)(er,{footer:t}),F&&(0,n.jsx)(eN,{enabled:eG().enabled,organizationSlug:eG().organizationSlug,projectIdOrSlug:eG().projectIdOrSlug,environment:eG().environment,placement:eG().placement,theme:eG().theme,sentryOrigin:eG().sentryOrigin,domId:eG().domId,debug:eG().debug}),(0,n.jsx)(eR,{}),e_&&(0,n.jsx)(eV,{isOpen:ex,onClose:()=>{em(!1),eW()}}),(0,n.jsx)(eU,{isOpen:eg,onClose:()=>{eh(!1),eW()}})]})});e.s(["default",0,eJ],118738)}]);
2
3//# sourceMappingURL=0wdldc85r311_.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.