1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ab930406-28f0-4408-96fe-574c5776c809",e._sentryDebugIdIdentifier="sentry-dbid-ab930406-28f0-4408-96fe-574c5776c809")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9886],{13074:e=>{e.exports={categoryContainer:"frametooltipmodal_categoryContainer__fgJTv",categoryHeader:"frametooltipmodal_categoryHeader__frPA6",categoryText:"frametooltipmodal_categoryText__L_tMb",viewContainer:"frametooltipmodal_viewContainer__DZsbw",measurementContainer:"frametooltipmodal_measurementContainer__Ebt03",categorySubheader:"frametooltipmodal_categorySubheader__lotZ6",imagesContainer:"frametooltipmodal_imagesContainer__gQXzw",formContainer:"frametooltipmodal_formContainer__3Auss",formControl:"frametooltipmodal_formControl__zjbZm",spiritLevelContainer:"frametooltipmodal_spiritLevelContainer__E_KmP"}},13961:(e,t,i)=>{"use strict";i.d(t,{A:()=>tf});var s=i(37876),r=i(14232),o=i(74078),n=i(94220),a=i(77539),l=i(65400),c=i(6629),d=i(89099),u=i(47702);let m=function(e){let{posts:t,squares:i,aspectRatio:o}=e,[n,l]=(0,r.useState)(20),[c,d]=(0,r.useState)(20),u=(0,r.useContext)(a.A);return(0,r.useEffect)(()=>{u.setSvgDefaults()},[u.posts,u.squares]),(0,r.useEffect)(()=>{try{if(u.customizerProduct.product.minWidth>u.customizerProduct.width||u.customizerProduct.width>u.customizerProduct.product.maxWidth||u.customizerProduct.product.minHeight>u.customizerProduct.height||u.customizerProduct.height>u.customizerProduct.product.maxHeight)return;parseInt(u.customizerProduct.width)>parseInt(u.customizerProduct.height)?(l(20),d(20*(u.customizerProduct.height/u.customizerProduct.width))):(d(20),l(20*(u.customizerProduct.width/u.customizerProduct.height)))}catch{}},[u.customizerProduct]),(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"d-flex main-box",style:{border:"2px solid #005EBD",padding:"10px 12px",position:"relative"},children:u.postsArray.map((e,r)=>(0,s.jsx)("div",{className:"d-flex",style:{border:"2px solid #005EBD",width:`${n/t}em`,minHeight:`${c}em`,marginLeft:-2,paddingBottom:8},children:(0,s.jsx)("div",{className:"d-flex flex-column",children:e.squares.map((r,o)=>(0,s.jsx)("div",{style:{border:"2px solid #005EBD",minHeight:`${e.squares.length>i/t?c/e.squares.length+.1:c/e.squares.length+.3125}em`,width:`${n/t-1.5}em`,margin:"0.6em",marginBottom:0},children:(0,s.jsx)("div",{children:""})},o))})},r))})})};var p=i(8156),h=i(6189),g=i(58863),x=i(68827),f=i.n(x),_=i(13074),j=i.n(_),P=i(85418),v=i(38465),b=i(94085);let C=({categoryKey:e,categories:t,handleMeasurementChange:i,translations:r,frameElementIndex:o})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:j().categoryHeader,children:(0,P.sD)(r)[e]}),(0,s.jsx)("h2",{className:j().categoryText,children:(0,P.VU)(r)[e]}),(0,s.jsx)("div",{className:j().categoryContainer,children:t.map((t,n)=>{let a=`category-${o}-${e}-${t.id}`;return(0,s.jsx)(z,{category:t,categoryKey:e,handleMeasurementChange:i,frameElementIndex:o,catIdx:n,translations:r},a)})})]}),z=({category:e,categoryKey:t,handleMeasurementChange:i,frameElementIndex:r,translations:o})=>{let n="FrameLevel"===e.id;return(0,s.jsxs)("div",{className:j().viewContainer,"data-sentry-component":"MeasurementCategory","data-sentry-source-file":"frametooltipmodal.jsx",children:[!b.xl&&(0,s.jsxs)("span",{className:j().categorySubheader,children:[" ",e.subHeader," "]}),(0,s.jsx)("div",{className:j().imagesContainer,children:(0,s.jsx)(f(),{layout:"fill",src:e.imageSrc,alt:e.id,"data-sentry-element":"NextImage","data-sentry-source-file":"frametooltipmodal.jsx"})}),(0,s.jsxs)("div",{className:j().measurementContainer,children:[b.xl&&(0,s.jsx)("span",{className:j().categorySubheader,children:e.subHeader}),e.values.map((a,l)=>(0,s.jsx)(s.Fragment,{children:n?(0,s.jsx)(s.Fragment,{children:0===l&&(0,s.jsx)("div",{className:`basicMarkdown ${j().spiritLevelContainer}`,children:(0,s.jsx)(g.A,{children:o.spiritLevelMeasurementExplanation})})}):(0,s.jsx)("div",{className:j().formContainer,children:(0,s.jsx)(v.A.Control,{className:j().formControl,onChange:s=>i(t,e.id,l,s.target.value,r),min:0,value:a,size:"sm",type:"number",placeholder:o.placeholderInputField})},`${e.id}-value-${l}`)}))]})]})},y=function({translations:e,handleMeasurementChange:t,allMeasurements:i,frameElementIndex:r}){return(0,s.jsx)(s.Fragment,{children:Object.entries(i).map(([i,o])=>(0,s.jsx)(C,{frameElementIndex:r,categoryKey:i,categories:o,translations:e,handleMeasurementChange:t},i))})};var w=i(48058),N=i.n(w);let S=function({title:e,text:t,buttonText:i,translations:o,image:n,tooltip:l,category:d,step:m,isFrame:x,handleMeasurementChange:f,allMeasurements:_,frameElementIndex:j,increasedSize:P}){let[v,b]=(0,r.useState)(!1),[C,z]=(0,r.useState)({height:0,width:0}),w=(0,r.useRef)(null),S=(0,r.useContext)(a.A);function k(){b(e=>!e)}(0,r.useEffect)(()=>{{let t,i=w.current;function e(){clearTimeout(t),t=setTimeout(()=>{z({...C,height:i.clientHeight,width:i.clientWidth}
1),S.handleToolTipDimensions({height:i.clientHeight,width:i.clientWidth})},150)}return z({...C,height:i.clientHeight,width:i.clientWidth}),S.handleToolTipDimensions({height:i.clientHeight,width:i.clientWidth}),window.addEventListener("resize",e),i=>{clearTimeout(t),window.removeEventListener("resize",e)}}},[]);let D=function(){if(-1!==["category","subCategory","finalProductView"].indexOf(S.customizerStepData?.title))return null;if(l?.title&&l?.content)if(x)return(0,s.jsx)(y,{title:l?.title,content:l?.content,translations:o,handleMeasurementChange:f,allMeasurements:_,frameElementIndex:j});else return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:(0,u.t)("title",{title:l?.title},{product:d?.name||d?.title})}),(0,s.jsx)(p.A,{data:l?.content})]});return l?.title&&l?.modal?.content?(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:(0,u.t)("title",{title:l?.title},{product:d?.name||d?.title})}),(0,s.jsx)(p.A,{data:l?.modal?.content})]}):o[`${m}TooltipModal`]?(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:o[`${m}TooltipModal`]?.title}),(0,s.jsx)(p.A,{data:o[`${m}TooltipModal`]?.content})]}):null}();return(0,s.jsx)(s.Fragment,{children:P?(0,s.jsxs)("div",{id:"div1",className:`${N().customizerHintLarge} cursor mt-0`,ref:w,children:[(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between mt-0 cursor w-100",onClick:k,children:[(l?.image?.url||n?.url)&&(0,s.jsx)("div",{className:`cursor ${N().hintImg}`,children:(0,s.jsx)(c.A,{src:l?.image?.url||n?.url,fluid:!0,alt:""})}),(0,s.jsxs)("div",{className:`flex-column align-items-start flex-grow-1 ${N().textBlock}`,children:[(0,s.jsx)("span",{children:(0,u.t)("title",{title:e||l?.title},{product:d?.name||d?.title})}),(0,s.jsx)(g.A,{children:(0,u.t)("text",{text:l?.text||t},{product:d?.name||d?.title})})]}),(l?.buttonText||i)&&(0,s.jsxs)("div",{className:`cursor d-flex flex-column align-items-center ${N().rightBlock}`,children:[(0,s.jsx)(c.A,{src:"/images/arrowsexpand.svg",fluid:!0,alt:"read more"}),(0,s.jsx)("span",{children:l?.buttonText||i})]})]}),D&&(0,s.jsx)(r.Fragment,{children:(0,s.jsx)(h.A,{show:v,classes:"hint-modal",handleClose:k,children:D})})]}):(0,s.jsxs)("div",{id:"div1",className:"customizer-hint cursor mt-0",ref:w,children:[(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between mt-0 cursor",onClick:k,children:[(l?.image?.url||n?.url)&&(0,s.jsx)("div",{className:"cursor hint-img",children:(0,s.jsx)(c.A,{src:l?.image?.url||n?.url,fluid:!0,alt:""})}),(0,s.jsxs)("div",{className:"flex-column align-items-start text-block flex-grow-1",children:[(0,s.jsx)("span",{children:(0,u.t)("title",{title:e||l?.title},{product:d?.name||d?.title})}),(0,s.jsx)(g.A,{children:(0,u.t)("text",{text:l?.text||t},{product:d?.name||d?.title})})]}),(l?.buttonText||i)&&(0,s.jsxs)("div",{className:"cursor d-flex flex-column align-items-center right-block",children:[(0,s.jsx)(c.A,{src:"/images/arrowsexpand.svg",fluid:!0,alt:"read more"}),(0,s.jsx)("span",{children:l?.buttonText||i})]})]}),D&&(0,s.jsx)(r.Fragment,{children:(0,s.jsx)(h.A,{show:v,classes:"hint-modal",handleClose:k,children:D})})]})})},k=function(e){let{productsMatrix:t,translations:i,categorySlug:p,subCategorySlug:h,tooltip:g,category:x}=e,f=(0,r.useContext)(a.A),[_,j]=(0,r.useState)(null),P=(0,d.useRouter)();function v(e,i){if("posts"===e){let e=t?.filter(e=>e.posts===f.posts+i).sort((e,t)=>e.posts===t.posts?e.squares>t.squares?1:-1:e.posts>t.posts?1:-1);if(0===e.length&&(e=t?.filter(e=>i>0?e.posts>f.posts:e.posts<f.posts).sort((e,t)=>e.posts===t.posts?e.squares>t.squares?1:-1:e.posts>t.posts?1:-1)),e.length>0){let t=e.find(e=>e.squares===f.squares);t||(t=e[0]),f.setPosts(t.posts),f.setSquares(t.squares)}}else{let e=t?.filter(e=>e.squares===f.squares+i).sort((e,t)=>e.squares===t.squares?e.posts>t.posts?1:-1:e.squares>t.squares?1:-1);if(0===e.length&&(e=t?.filter(e=>i>0?e.squares>f.squares:e.squares<f.squares).sort((e,t)=>e.squares===t.squares?e.posts>t.posts?1:-1:e.squares>t.squares?1:-1)),e.length>0){let t=e.find(e=>e.posts===f.posts);t||(t=e[0]),f.setPosts(t.posts),f.setSquares(t.squares)}}}return(0,r.useEffect)(()=>
1{if(t&&t.find(e=>e.posts===f.posts&&f.squares===e.squares));else if(t?.length>0){var e=t.sort((e,t)=>e.posts===t.posts?e.squares>t.squares?1:-1:e.posts>t.posts?1:-1);f.setPosts(e[0].posts),f.setSquares(e[0].squares)}},[t]),(0,s.jsxs)("div",{className:"d-flex flex-column dimension-block",children:[(0,s.jsx)("div",{className:"d-flex flex-column align-items-start mb-4",children:(0,s.jsx)("div",{className:"dimenions-step-title d-none d-sm-none d-md-none d-lg-block",children:(0,u.t)("panesTitle",i)})}),(0,s.jsxs)(n.A,{className:"d-flex align-items-center",children:[(0,s.jsx)(o.A,{xs:12,sm:12,md:12,lg:6,xl:6,children:(0,s.jsx)("div",{className:"dimenions-img",children:(0,s.jsx)(m,{posts:f.posts,squares:f.squares})})}),(0,s.jsx)(o.A,{xs:12,sm:12,md:12,lg:6,xl:6,children:(0,s.jsxs)("div",{className:"dimenions-inputs",children:[(0,s.jsxs)("div",{className:"d-flex justify-content-between align-items-center fags",children:[(0,s.jsx)("div",{className:"fags-btn me-3",children:(0,s.jsx)(l.A,{disabled:t?.find(e=>e.posts<f.posts)===void 0,onClick:()=>{v("posts",-1),j(null)},children:(0,s.jsx)(c.A,{src:"/images/minus.svg",alt:""})})}),(0,s.jsxs)("div",{className:"w-100 fags-value",children:[f.posts," ",(0,u.t)("panesRow",i)]}),(0,s.jsx)("div",{className:"fags-btn ms-3",children:(0,s.jsx)(l.A,{disabled:t?.find(e=>e.posts>f.posts)===void 0,onClick:()=>{v("posts",1),j(null)},children:(0,s.jsx)(c.A,{src:"/images/plusblue.svg",alt:""})})})]}),(0,s.jsxs)("div",{className:"d-flex justify-content-between align-items-center fags",children:[(0,s.jsx)("div",{className:"fags-btn me-3",children:(0,s.jsx)(l.A,{disabled:t?.find(e=>e.squares<f.squares)===void 0,onClick:()=>{v("squares",-1),j(null)},children:(0,s.jsx)(c.A,{src:"/images/minus.svg",alt:""})})}),(0,s.jsxs)("div",{className:"w-100 fags-value",children:[f.squares," ",(0,u.t)("panesColumn",i)]}),(0,s.jsx)("div",{className:"fags-btn ms-3",children:(0,s.jsx)(l.A,{disabled:t?.find(e=>e.squares>f.squares)===void 0,onClick:()=>{v("squares",1),j(null)},children:(0,s.jsx)(c.A,{src:"/images/plusblue.svg",alt:""})})})]}),(0,s.jsx)("div",{className:"mt-2 mb-2 d-block error-msg",children:_}),(0,s.jsx)("div",{className:"mt-4 mb-4 d-block mobile-customizer-hint",children:(0,s.jsx)(S,{tooltip:g,title:(0,u.t)("panesTooltipTitle",i,{},!0),text:(0,u.t)("panesTooltipText",i,{},!0),buttonText:(0,u.t)("panesTooltipButton",i,{},!0),translations:i,image:i.panesTooltipImage?i.panesTooltipImage:null,category:x})}),(0,s.jsxs)(l.A,{className:"next-step-btn d-flex justify-content-center align-items-center w-50 mt-3",onClick:function(){let e=null;j(null);for(let i=0;i<t.length;i++)if(t[i].posts===f.posts&&t[i].squares===f.squares){e=t[i];break}null===e?j("No product found with these posts & squares."):P.push(`/design/${p}/${h}/${e.slug}/${e.productId}`)},disabled:0===f.posts||0===f.squares,children:[(0,s.jsx)("span",{className:"me-2",children:(0,u.t)("nextStepButton",i)}),(0,s.jsx)(c.A,{src:"/images/whitebtnarrow.svg",fluid:!0,alt:""})]})]})})]})]})};var D=i(48275),T=i(79350);let A=(0,T.J1)` 2 mutation UpdateProductLine($input: CartsUpdateProductLineInput!) { 3 updateCartProductLine(input: $input) { 4 cart { 5 installations { 6 available 7 priceQuote 8 startupFee 9 disposalFee 10 } 11 installationService 12 installationPrice 13 abDesign 14 cartCustomProducts(status: ready) { 15 id 16 price 17 quantity 18 status 19 } 20 } 21 } 22 } 23`;var M=i(53779),I=i(76797);let H=function(e){let t=(0,r.useContext)(a.A),i=(0,d.useRouter)(),{goToNextStep:m,viewType:p,translations:h,region:g,category:x}=e,f=(0,I.mx)(t.customizerProduct.featuredImage?.url,"600");return(0,s.jsxs)("div",{children:["customizer"===p?(0,s.jsx)("div",{className:"d-none d-sm-none d-md-none d-lg-block final-product-block final-product-header mb-3",children:(0,u.t)("finalizerPageTitle",h)}):null,(0,s.jsxs)(n.A,{className:"customizer"===p?"final-product-block":"final-modal-product",children:[(0,s.jsxs)(o.A,{xs:12,sm:12,md:12,lg:6,xl:6,className:"box-1 ps-0",children:[(0,s.jsx)("div",{className:"prod-img d-none d-sm-none d-md-flex",style:{maxHeight:"15em"},children:(0,s.jsx)(c.A,{fluid:!0,src:f,style:{maxHeight:"15em"},alt:""})}),(0,s.jsxs)("div",{className:"prod-img d-flex d-sm-flex d-md-none justify-content-between align-items-center d-md-none",children:[(0,s.jsx)("span",{className:"prod-title ws-b",children:t.customizerProduct.subCategory.title}),(0,s.jsx)(c.A,{fluid:!0,src:t.customizerProduct.product.featuredImage?.url,style:{maxHeight:"15em",width:"auto"},alt:""})]})]}),(0,s.jsx)(o.A,{xs:12,sm:12,md:12,lg:6,xl:6,className:"box-2 pe-0",children:(0,s.jsxs)("div",{className:"prod-details d-flex flex-column",children:[(0,s.jsxs)("div",{className:"prod-info d-flex flex-column mb-3",children:[(0,s.jsx)("span",{className:"d-none d-sm-none d-md-flex prod-title",children:t.customizerProduct.subCategory.title}),(0,s.jsx)("span",{className:"d-none d-sm-none d-md-flex",children:t.customizerProduct.product.title}),"customizer"===p?(0,s.jsxs)("div",{className:"d-flex flex-column align-items-center final-price-info",children:[(0,s.jsx)("span",{className:"prod-price",children:(0,I.vv)(t.configuratorProductsCount*t.customizerProduct.price,i.locale)}),(0,s.jsxs)("span",{className:"discount-amount",children:[(0,u.t)("finalizerDiscountLabel",h)," ",(0,I.vv)(t.configuratorProductsCount*(0,I.lO)(t.customizerProduct.generalPrice-t.customizerProduct.price),i.locale)]})]}):null]}),"customizer"===p?(0,s.jsx)("div",{className:"final-product-block d-flex justify-content-center mb-3",children:(0,s.jsxs)(l.A,{onClick:m,className:"d-flex align-items-center justify-content-center btn-block w-100",children:[(0,s.jsx)("span",{className:"me-2",children:(0,u.t)("finalizerAddToBasketLabel",h)}),(0,s.jsx)(c.A,{src:"/images/cart_white.svg",alt:""})]})}):null,(0,s.jsx)("div",{className:"prod-props d-flex flex-column",children:t.customizerProduct.productC
23omponents.map(function(e){return"subCategory"!==e.title&&"category"!==e.title&&"panes"!==e.title&&"dimensions"!==e.title&&"finalProductView"!==e.title&&"mosquitoNets"!==e.title&&"windowBlinds"!==e.title&&null!==e.selected&&e.components.length>=1?(0,s.jsx)("div",{className:"props d-flex align-items-center justify-content-between",children:(0,s.jsxs)("div",{className:"prop-title d-flex",children:[(0,s.jsxs)("span",{className:"ws-b",children:[(0,u.t)(`${(0,I.id)(e.title)}SidebarName`,h),":"]}),(0,s.jsx)("span",{className:"ms-2",children:(0,s.jsx)(s.Fragment,{children:"windowBlinds"===e.title?e.selected?.fabricFamily==="none"?`${e.selected?.title}`:`${e.selected?.fabricFamily} - ${e.selected?.title}`:e.selected.title})})]})},e.title):"dimensions"===e.title?(0,s.jsxs)("div",{className:"props d-flex align-items-center justify-content-between",children:[(0,s.jsxs)("div",{className:"prop-title d-flex",children:[(0,s.jsxs)("span",{className:"ws-b",children:[(0,u.t)("dimensionsSidebarName",h),":"]}),(0,s.jsxs)("span",{className:"ms-2",children:[t.customizerProduct?.width,"cm x"," ",t.customizerProduct?.height,"cm"]})]}),(0,s.jsx)("span",{className:"prop-price"})]},e.title):null})}),"modal"===p?(0,s.jsx)("div",{className:"prod-info d-flex mt-2 w-100 justify-content-end",children:(0,s.jsx)("span",{className:"prod-price",children:(0,I.vv)(t.configuratorProductsCount*t.customizerProduct.price,i.locale)})}):null]})})]}),"customizer"===p?(0,s.jsx)("div",{className:"final-product-block border-top customizer mt-3 pt-2",children:(0,s.jsx)(S,{title:(0,u.t)("finalizerTooltipTitle",h,{},!0),text:(0,u.t)("finalizerTooltipText",h,{},!0),buttonText:(0,u.t)("finalizerTooltipButton",h,{},!0),translations:h,image:h.finalizerTooltipImage||null,category:x})}):null]})};var L=i(74434),$=i.n(L);let q=(0,T.J1)` 24mutation CreateCustomProduct($input: CustomProductsCreateInput!) { 25 createCustomProduct(input: $input) { 26 cartCustomProduct { 27 customProduct { 28 id 29 price 30 generalPrice 31 width 32 height 33 hinge { id title hingeType } 34 glass { id title } 35 glazing { id title noGlass } 36 glassSpacer { id title } 37 handle { id title } 38 emergencyExit { id title } 39 lockCore { id title } 40 material { id title name } 41 profile { id title } 42 safetyLock { id title } 43 spross { id title } 44 threshold { id title thresholdType } 45 ventilationGrill { id title } 46 windbrake { id title } 47 windowSill { id title } 48 windowBlind { id title fabricFamily} 49 panelProfile { id title } 50 latch { id title lockType } 51 openingDirection { id title openingDirectionType } 52 packer { id title } 53 innerColor { id title } 54 outerColor { id title } 55 mosquitoNet { id title } 56 montageHole { id title } 57 productSpecification 58 configurableComponentTypes 59 expectedDeliveryWeek { week } 60 featuredImage { 61 url 62 featured 63 } 64 images { 65 url 66 featured 67 } 68 product { 69 id 70 name 71 title 72 code 73 defaultHeight 74 defaultWidth 75 maxHeight 76 maxWidth 77 minHeight 78 minWidth 79 layoutPosts 80 layoutSquares 81 explicitMeasurementEnabled 82 explicitMeasurementCombinations { 83 width 84 height 85 } 86 featuredImage { 87 url 88 }, 89 images { 90 url 91 }, 92 drawableJson 93 } 94 subCategory { 95 productMatrix { 96 posts 97 squares 98 productId 99 } 100 dimensionMatrixEnabled 101 dimensionMatrix 102 category { 103 id 104 title 105 name 106 } 107 name 108 id 109 title 110 } 111 } 112 id 113 price 114 quantity 115 status 116 } 117 } 118}`;var E=i(94437);let F=(0,T.J1)` 119query CustomProduct($customProductId: ID) { 120 customProduct(id: $customProductId) { 121 id 122 price 123 generalPrice 124 width 125 productSpecification 126 configurableComponentTypes 127 configuratorStep 128 featuredImage { 129 url 130 }, 131 images { 132 url 133 } 134 product { 135 id 136 name 137 title 138 code 139 defaultHeight 140 defaultWidth 141 maxHeight 142 maxWidth 143 minHeight 144 minWidth 145 layoutPosts 146 layoutSquares 147 explicitMeasurementEnabled 148 explicitMeasurementCombinations { 149 width 150 height 151 } 152 featuredImage { 153 url 154 }, 155 images { 156 url 157 }, 158 drawableJson 159 } 160 subCategory { 161 productMatrix { 162 posts 163 squares 164 productId 165 } 166 dimensionMatrixEnabled 167 dimensionMatrix 168 category { 169 id 170 title 171 name 172 } 173 name 174 id 175 title 176 } 177 height 178 expectedDeliveryWeek { week } 179 ${E.d} 180 hinge { id title hingeType price } 181 glass { id title price } 182 glassSpacer { id title } 183 glazing { id title price noGlass} 184 handle { id title price } 185 emergencyExit { id title price } 186 lockCore { id title price } 187 material { id title price name} 188 profile { id title price } 189 safetyLock { id title price } 190 spross { id title price } 191 threshold { id thresholdType title price } 192 ventilationGrill { id title price } 193 windbrake { id title price } 194 windowSill { id title price } 195 windowBlind { id title price fabricFamily } 196 panelProfile { id title price } 197 latch { id title lockType price } 198 openingDirection { id title price openingDirectionType } 199 packer { id title price } 200 innerColor { id title price } 201 outerColor { id title price } 202 mosquitoNet { id title price productionCode} 203 montageHole { id title price } 204 } 205}`,O=(0,T.J1)` 206query CustomProduct($customProductId: ID) { 207 customProduct(id: $customProductId) { 208 id 209 configurableComponentTypes 210 productSpecification 211 cartCustomProduct { 212 quantity 213 status 214 } 215 ${E.d} 216 } 217}`;var B=i(97970);function W(e,t,i,s){let r,o={};
217return o.productComponents=[],r=e.createCustomProduct?e.createCustomProduct.cartCustomProduct:e,s.customizerStepMap.forEach(e=>{r.customProduct[e.title]?o.productComponents.push({components:r.customProduct[e.title],title:e.title,selected:null}):r.customProduct.configurableComponentTypes.find(t=>t===e.remote)?o.productComponents.push({components:[],title:e.title,selected:null}):["innerColors","outerColors"].includes(e.title)&&o.productComponents.push({components:[],title:e.title,selected:null})}),Object.keys(r.customProduct).forEach(function(e){"object"!=typeof r.customProduct[e]||null===r.customProduct[e]||"images"===e?o[e]=r.customProduct[e]:"object"!=typeof r.customProduct[e]||r.customProduct[e][0]||0===r.customProduct[e].length||(o[e]={...r.customProduct[e]})}),o.productComponents.unshift({components:{width:null,height:null},title:"dimensions",selected:null}),o.productComponents.unshift({components:{fags:null,ruders:null},title:"fagsruders",selected:null}),o.productComponents.unshift({components:{width:null,height:null},title:"subCategoryView",selected:null}),o.productComponents.unshift({components:{width:null,height:null},title:"categoryView",selected:null}),o.productComponents.push({components:{width:null,height:null},title:"finalProductView",selected:null}),o.quantity=t,o.status=i,o.productComponents.map(e=>{"latches"===e.title&&(e.selected=o.latch),"emergencyExits"===e.title&&(e.selected=o.emergencyExit),"glasses"===e.title&&(e.selected=o.glass),"glassSpacers"===e.title&&(e.selected=o.glassSpacer),"glazings"===e.title&&(e.selected=o.glazing),"handles"===e.title&&(e.selected=o.handle),"hinges"===e.title&&(e.selected=o.hinge),"lockCores"===e.title&&(e.selected=o.lockCore),"materials"===e.title&&(e.selected=o.material),"innerColors"===e.title&&(e.selected=o.innerColor),"outerColors"===e.title&&(e.selected=o.outerColor),"openingDirections"===e.title&&(e.selected=o.openingDirection),"packers"===e.title&&(e.selected=o.packer),"panelProfiles"===e.title&&(e.selected=o.panelProfile),"profiles"===e.title&&(e.selected=o.profile),"safetyLocks"===e.title&&(e.selected=o.safetyLock),"sprosses"===e.title&&(e.selected=o.spross),"thresholds"===e.title&&(e.selected=o.threshold),"ventilationGrills"===e.title&&(e.selected=o.ventilationGrill),"windbrakes"===e.title&&(e.selected=o.windbrake),"windowSills"===e.title&&(e.selected=o.windowSill),"windowBlinds"===e.title&&(e.selected=o.windowBlind),"mosquitoNets"===e.title&&(e.selected=o.mosquitoNet),"montageHoles"===e.title&&(e.selected=o.montageHole)}),o}let R=async(e,t,i,s,r)=>{let o=null;i.setLoadingMainCustomizer(!0);try{i.setConfiguratorProductsCount(1);let{data:n,errors:a}=await (0,D.ls)(s).mutate({mutation:q,variables:{input:{productId:e,traits:t,attributes:{}}}}),l=i?.cartData?.cartCustomProducts.find(e=>e?.customProduct?.id===i?.customizerProduct?.id);if(r&&!l&&i.customizerProduct.width&&i.customizerProduct.height&&n?.createCustomProduct?.cartCustomProduct?.customProduct?.product?.id===r)return i.setLoadingMainCustomizer(!1);o=n;let c=W(o,o.createCustomProduct.cartCustomProduct.quantity,o.createCustomProduct.cartCustomProduct.status,i);i.setCustomizerProduct(c),i.setCustomizerCartCustomProductId(o.createCustomProduct.cartCustomProduct.id),i.setCustomizerCurrentStepData(c.productComponents[3],3),i.setLoadingMainCustomizer(!1)}catch(e){console.error("An error occurred during create custom cart",e)}},V=async(e,t)=>{try{let{data:i,errors:s}=await (0,D.ls)(t).query({query:O,fetchPolicy:"no-cache",variables:{customProductId:e.customizerProduct.id}}),r=i.customProduct;if(!r)return;let o=e.customizerProduct.productComponents.map(e=>{let t=r[e.title];return t?{...e,components:t}:e}),n={...e.customizerProduct,productComponents:o};e.setCustomizerProduct(n)}catch(e){console.error("This error happens in aditional product fetch",e)}},U=async(e,t,i,s,r,o,n,a,l,c,d,u)=>{let m=null;try{if(e||t){if(e)i.setCustomizerCurrentStepData(i.customizerProduct.productComponents[2],2);else if(t){let e;i.setLoadingMainCustomizer(!0);try{if(d){let{data:t}=await (0,D.ls)(o).query({query:B.jm,variables:{uuid:d||i.b2bChosenOffer?.uuid}});e=t.b2bOfferByUuid}else{let{data:t,errors:i}
217=await (0,D.ls)(o).query({query:(0,D.J1)` 218 query TypesShopQueryType { 219 cart { 220 abDesign 221 cartCustomProducts { 222 id 223 quantity 224 } 225 } 226 } 227 `});e=t}let t=e.cart.cartCustomProducts.find(e=>e.id===a);if(t)try{let{data:e,errors:s}=await (0,D.ls)(o).query({query:F,variables:{customProductId:l}});m=e;let r=W(m,t.quantity,t.status,i);i.setConfiguratorProductsCount(t.quantity),i.setHighestCustomizerStepIndex(20),i.setCustomizerCartCustomProductId(a),i.setCustomizerProduct(r);let n=null;for(let t=0;t<r.productComponents.length;t++)r.productComponents[t].title===(0,I.c8)(e.customProduct.configuratorStep)&&(n=t);null!==n&&i.setCustomizerCurrentStepData(r.productComponents[n],n),i.setLoadingMainCustomizer(!1)}catch(e){console.error("Error fetching custom product in edit mode:",e)}else i.setCustomizerCartCustomProductId(a),u(!0)}catch(e){console.error("An error occurred during EDIT MODE data fetch:",e)}}}else await R(s,r,i,o,c)}catch(e){console.error("An error occurred during the initial data fetch:",e)}finally{i.setLoadingMainCustomizer(!1)}};function J(e,t){switch(t){case"latches":if(e.customizerStepData.components.length)return{title:"latchId",value:e.customizerStepData.selected.id};return null;case"emergencyExits":if(e.customizerStepData.components.length)return{title:"emergencyExitId",value:e.customizerStepData.selected.id};return null;case"glasses":if(e.customizerStepData.components.length)return{title:"glassId",value:e.customizerStepData.selected.id};return null;case"glassSpacers":if(e.customizerStepData.components.length)return{title:"glassSpacerId",value:e.customizerStepData.selected.id};return null;case"glazings":if(e.customizerStepData.components.length)return{title:"glazingId",value:e.customizerStepData.selected.id};return null;case"handles":if(e.customizerStepData.components.length)return{title:"handleId",value:e.customizerStepData.selected.id};return null;case"hinges":if(e.customizerStepData.components.length)return{title:"hingeId",value:e.customizerStepData.selected.id};return null;case"lockCores":if(e.customizerStepData.components.length)return{title:"lockCoreId",value:e.customizerStepData.selected.id};return null;case"materials":if(e.customizerStepData.components.length)return{title:"materialId",value:e.customizerStepData.selected.id};return null;case"innerColors":if(e.customizerStepData.components.length)return{title:"innerColorId",value:e?.customizerStepData?.selected?.id};return null;case"outerColors":if(e.customizerStepData.components.length)return{title:"outerColorId",value:e?.customizerStepData?.selected?.id};return null;case"openingDirections":if(e.customizerStepData.components.length)return{title:"openingDirectionId",value:e.customizerStepData.selected.id};return null;case"packers":if(e.customizerStepData.components.length)return{title:"packerId",value:e.customizerStepData.selected.id};return null;case"panelProfiles":if(e.customizerStepData.components.length)return{title:"panelProfileId",value:e.customizerStepData.selected.id};return null;case"profiles":if(e.customizerStepData.components.length)return{title:"profileId",value:e.customizerStepData.selected.id};return null;case"safetyLocks":if(e.customizerStepData.components.length)return{title:"safetyLockId",value:e.customizerStepData.selected.id};return null;case"sprosses":if(e.customizerStepData.components.length)return{title:"sprossId",value:e.customizerStepData.selected.id};return null;case"thresholds":if(e.customizerStepData.components.length)return{title:"thresholdId",value:e.customizerStepData.selected.id};return null;case"ventilationGrills":if(e.customizerStepData.components.length)return{title:"ventilationGrillId",value:e.customizerStepData.selected.id};return null;case"windbrakes":if(e.customizerStepData.components.length)return{title:"windbrakeId",value:e.customizerStepData.selected.id};return null;case"windowSills":if(e.customizerStepData.components.length)return{title:"windowSillId",value:e.customizerStepData.selected.id};return null;case"windowBlinds":if(e.customizerStepData.components.length)return{title:"windowBlindId",value:e.customizerStepData.selected.id};return null;case"mosquitoNets":if(e.customizerStepData.components.length)return{title:"mosquitoNetId",value:e?.customizerStepData?.selected?.id};return null;case"montageHoles":if(e.customizerStepData.components.length)return{title:"montageHoleId",value:e?.customizerStepData?.selected?.id};return null;case"dimensions":return{title:"dimensions",width:e.customizerProduct.width,height:e.customizerProduct.height};case"finalProductView":return null}}
227function G(e){e.productComponents.unshift({components:{width:null,height:null},title:"dimensions",selected:null}),e.productComponents.unshift({components:{fags:null,ruders:null},title:"panes",selected:null}),e.productComponents.unshift({components:{width:null,height:null},title:"subCategory",selected:null}),e.productComponents.unshift({components:{width:null,height:null},title:"category",selected:null}),e.productComponents.push({components:{width:null,height:null},title:"finalProductView",selected:null}),e.productComponents.map(t=>{"latches"===t.title&&(t.selected=e.latch),"emergencyExits"===t.title&&(t.selected=e.emergencyExit),"glasses"===t.title&&(t.selected=e.glass),"glassSpacers"===t.title&&(t.selected=e.glassSpacer),"glazings"===t.title&&(t.selected=e.glazing),"handles"===t.title&&(t.selected=e.handle),"hinges"===t.title&&(t.selected=e.hinge),"lockCores"===t.title&&(t.selected=e.lockCore),"materials"===t.title&&(t.selected=e.material),"innerColors"===t.title&&(t.selected=e.innerColor),"outerColors"===t.title&&(t.selected=e.outerColor),"openingDirections"===t.title&&(t.selected=e.openingDirection),"packers"===t.title&&(t.selected=e.packer),"panelProfiles"===t.title&&(t.selected=e.panelProfile),"profiles"===t.title&&(t.selected=e.profile),"safetyLocks"===t.title&&(t.selected=e.safetyLock),"sprosses"===t.title&&(t.selected=e.spross),"thresholds"===t.title&&(t.selected=e.threshold),"ventilationGrills"===t.title&&(t.selected=e.ventilationGrill),"windbrakes"===t.title&&(t.selected=e.windbrake),"windowSills"===t.title&&(t.selected=e.windowSill),"windowBlinds"===t.title&&(t.selected=e.windowBlind),"mosquitoNets"===t.title&&(t.selected=e.mosquitoNet),"montageHoles"===t.title&&(t.selected=e.montageHole)})}async function Z(e,t,i,s,r,o){if(e.customProductSaving)return;var n=i;n.components=n.components.map(e=>e.id===s.id?{...e,priceDiff:0}:{...e,priceDiff:e.priceDiff-s.priceDiff}),e.setCustomProductSaving(!0),n.selected=n.components.find(e=>e.id===s.id);let a=e.customizerProduct;a.price=a.price+s.priceDiff,e.setCustomizerProduct({...a,price:a.price}),e.updateSelectedStepComponent(s,i.title),e.setCustomizerStepData(n);let l=J(e,r);var c=e.customizerStepMap.find(t=>t.title===e.customizerStepData.title);if(null!==l&&"dimensions"!==l.title&&"panes"!==l.title){let{data:i,error:r}=await (0,D.ls)(t,o?.myServerAccessToken).mutate({mutation:c.mutation,variables:{input:{attributes:{[l.title]:parseInt(n.selected.id)},id:e.customizerProduct.id}}}),a={};a.productComponents=[];let u=i.updateCustomProduct;e.customizerStepMap.forEach(e=>{u.customProduct[e.title]?a.productComponents.push({components:u.customProduct[e.title],title:e.title,selected:null}):u.customProduct.configurableComponentTypes.find(t=>t===e.remote)?a.productComponents.push({components:[],title:e.title,selected:null}):["innerColors","outerColors"].includes(e.title)&&a.productComponents.push({components:[],title:e.title,selected:null})}),Object.keys(u.customProduct).forEach(function(e){"object"!=typeof u.customProduct[e]||null===u.customProduct[e]||"images"===e?a[e]=u.customProduct[e]:"object"!=typeof u.customProduct[e]||u.customProduct[e][0]||0===u.customProduct[e].length||(a[e]={...u.customProduct[e]})}),G(a),e.setCustomizerProduct(a);var n,d=a.productComponents.find(e=>e.title===c.title);e.setCustomizerCurrentStepData(d,a.productComponents.indexOf(d)),e.updateCustomizerProductPrice(a);try{n=structuredClone(e.customizerStepData)}catch(t){n=JSON.parse(JSON.stringify(e.customizerStepData))}n.components=n.components.map(e=>e.id===s.id?{...e,priceDiff:0}:{...e,priceDiff:e.priceDiff-s.priceDiff}),n.selected=n.components.find(e=>e.id===s.id),e.setCustomizerStepData(n),e.setCustomProductSaving(!1)}}async function K(e,t,i,s,r){if(e.customProductSaving)return;e.setCustomProductSaving(!0),i.selected=i.components.find(e=>e.id===s.id);let o={title:"mosquitoNetId"};var n=e.customizerStepMap.find(e=>"mosquitoNets"===e.title);if(null!==o){let{data:s,error:a}=await (0,D.ls)(t,r?.myServerAccessToken).mutate({mutation:n.mutation,variables:{input:{attributes:{[o.title]:parseInt(i.selected.id)},id:e.customizerProduct.id}}}),l={};
227l.productComponents=[];let c=s.updateCustomProduct;e.customizerStepMap.forEach(e=>{c.customProduct[e.title]?l.productComponents.push({components:c.customProduct[e.title],title:e.title,selected:null}):c.customProduct.configurableComponentTypes.find(t=>t===e.remote)?l.productComponents.push({components:[],title:e.title,selected:null}):["innerColors","outerColors"].includes(e.title)&&l.productComponents.push({components:[],title:e.title,selected:null})}),Object.keys(c.customProduct).forEach(function(e){"object"!=typeof c.customProduct[e]||null===c.customProduct[e]||"images"===e?l[e]=c.customProduct[e]:"object"!=typeof c.customProduct[e]||c.customProduct[e][0]||0===c.customProduct[e].length||(l[e]={...c.customProduct[e]})}),G(l),e.setCustomizerProduct(l),e.updateCustomizerProductPrice(l),e.setCustomProductSaving(!1)}}function Y(e,t,i){let s=(0,r.useContext)(a.A),o=(0,d.useRouter)(),n=s.customizerProduct?.mosquitoNet?.id===t,l=e?.components.find(e=>e.id===t),c=e?.components.find(e=>"1"===e.id),u=async()=>{await K(s,o,e,l,i)},m=async()=>{await K(s,o,e,c,i)},p=async()=>{n?await m():await u()};return{isAdded:n,handleToggle:p,findMosquitoNet:l}}let Q=({component:e,standardMosquito:t,authentificationSession:i,standardMosquitoPicture:r,translations:o,standardNet:n,router:a})=>{let{isAdded:l,handleToggle:d,findMosquitoNet:m}=Y(e,t,i);return(0,s.jsxs)("div",{className:$().container,children:[(0,s.jsx)(c.A,{src:r?.url,alt:o?.mosquitoNetsUpsellPictureStandard?.responsiveImage?.alt||"Mosquito Net Standard",className:$().image}),(0,s.jsxs)("div",{className:$().content,children:[(0,s.jsx)(g.A,{className:$().title,children:(0,u.t)(m?.priceDiff===0?"mosquitoNetsUpsellAdded":"mosquitoNetsUpsellPrice",o,{amount:(0,I.vv)((0,I.lO)(n),a.locale)})}),(0,s.jsx)("p",{className:$().description,children:o?.mosquitoNetsUpsellText})]}),(0,s.jsxs)("div",{className:$().toggleContainer,children:[(0,s.jsx)("input",{type:"checkbox",id:"standardMosquito",className:$().toggle,checked:l,onChange:d}),(0,s.jsx)("label",{htmlFor:"standardMosquito",className:$().switch})]})]})},X=({component:e,premiumMosquito:t,authentificationSession:i,premiumMosquitoPicture:r,translations:o,premiumNet:n,router:a})=>{let{isAdded:l,handleToggle:d,findMosquitoNet:m}=Y(e,t,i);return(0,s.jsxs)("div",{className:$().container,children:[(0,s.jsx)(c.A,{src:r?.url,alt:o?.mosquitoNetsUpsellPicturePremium?.responsiveImage?.alt||"Mosquito Net Premium",className:$().image}),(0,s.jsxs)("div",{className:$().content,children:[(0,s.jsx)(g.A,{className:$().title,children:(0,u.t)(m?.priceDiff===0?"mosquitoNetsUpsellAddedPremium":"mosquitoNetsUpsellPricePremium",o,{amount:(0,I.vv)((0,I.lO)(n),a.locale)})}),(0,s.jsx)("p",{className:$().description,children:o?.mosquitoNetsUpsellTextPremium})]}),(0,s.jsxs)("div",{className:$().toggleContainer,children:[(0,s.jsx)("input",{type:"checkbox",id:"toggle",className:$().toggle,checked:l,onChange:d}),(0,s.jsx)("label",{htmlFor:"toggle",className:$().switch})]})]})},ee=function({show:e,handleClose:t,translations:i,region:o,customProductId:n,displayComponents:m,authentificationSession:p}){let h=(0,d.useRouter)(),g=(0,r.useContext)(a.A),x=g.customProductSaving,f=!!g.b2bChosenOffer,_=g.customizerProduct?.productComponents?.find(e=>e?.title=="mosquitoNets"),j=_?.components?.filter(e=>e?.productionCode?.includes("standard"))?.map(e=>e.id)[0],P=_?.components?.filter(e=>e?.productionCode?.includes("standard"))?.map(e=>e.featuredImage)[0],v=_?.components?.filter(e=>e?.productionCode?.includes("premium"))?.map(e=>e.id)[0],b=_?.components?.filter(e=>e?.productionCode?.includes("premium"))?.map(e=>e.featuredImage)[0],C=function(e){let t=e?.components.find(e=>e?.id==="1"),i=Math.abs(t?.priceDiff||0);return e?.components.map(e=>{if(e?.id==="1")return{...e,fullPrice:i};{let t=i+e?.priceDiff;return{...e,fullPrice:t}}})}(_),z=C?.find(e=>e?.id===j)?.fullPrice,y=C?.find(e=>e?.id===v)?.fullPrice;async function w(){g.setCustomProductSaving(!0);try{let{data:e,errors:i}=await (0,D.ls)(h,p?.myServerAccessToken).mutate({mutation:(0,T.J1)` 228 mutation DuplicateProduct($input: CustomProductsDuplicateInput!) { 229 duplicateCustomProduct(input: $input) { 230 cartCustomProduct { 231 id 232 customProduct { 233 id 234 subCategory { 235 id 236 } 237 product { 238 id 239 } 240 } 241 } 242 } 243 } 244 `,variables:{input:{customProductId:n}}});if(e.duplicateCustomProduct){let i=e.duplicateCustomProduct.cartCustomProduct.customProduct.id,s=e.duplicateCustomProduct.cartCustomProduct.id,r=e.duplicateCustomProduct.cartCustomProduct.customProduct.product.id,o=e.duplicateCustomProduct.cartCustomProduct.customProduct.subCategory.id;t();let n=()=>{g.setCustomProductSaving(!1),h.events.off("routeChangeComplete",n)};h.events.on("routeChangeComplete",n),h.push({pathname:`/edit/${i}/${s}/${r}/${o}`,query:f?{b2bUUID:g?.b2bChosenOffer?.uuid}:{}})}}catch(e){g.setCustomProductSaving(!1)}}return(0,s.jsx)(M.A,{show:e,onHide:()=>x?"":t(),backdrop:"static",keyboard:!1,centered:!0,size:"lg",dialogClassName:"final-prod-modal",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(M.A.Header,{closeButton:!0,children:(0,s.jsx)(M.A.Title,{children:(0,s.jsxs)("div",{className:"modal-title d-flex flex-column align-items-center",children:[(0,s.jsx)("div",{className:"title d-flex align-items-end",children:(0,u.t)("addedToCartModalTitle",i
244)}),(0,s.jsx)("div",{className:"sub-title",children:(0,u.t)("addedToCartModalDescription",i)})]})})}),(0,s.jsx)(M.A.Body,{children:(0,s.jsx)(H,{viewType:"modal",translations:i,region:o})}),(0,s.jsx)(M.A.Footer,{children:(0,s.jsxs)("div",{className:"modal-action-btns d-flex justify-content-center align-items-center",children:[!1,(0,s.jsxs)("div",{className:`${$().buttonsWrapper}`,children:[(0,s.jsx)("div",{className:"d-flex justify-content-end",children:(0,s.jsxs)(l.A,{id:"goto-cart",variant:"primary",onClick:()=>h.push("/cart"),className:"d-flex justify-content-center",size:"lg",disabled:x,children:[(0,s.jsx)("span",{className:"me-2",children:(0,u.t)("addedToCartModalGoToBasketButton",i)}),(0,s.jsx)(c.A,{src:"/images/cart_white.svg",alt:""})]})}),(0,s.jsx)("div",{className:"d-flex justify-content-end",children:(0,s.jsxs)(l.A,{variant:"primary",onClick:()=>w(),className:"d-flex align-items-center justify-content-center",size:"lg",disabled:x,children:[(0,s.jsx)("span",{className:"me-2",children:(0,u.t)("addedToCartModalDuplicateProductButton",i)}),(0,s.jsx)(c.A,{src:"/images/dupplus.svg",alt:""})]})}),m?.map((e,t)=>{if(e?.title==="mosquitoNets"){let r=[];return e?.components.forEach(e=>{e?.productionCode!=="none"&&r.push(e?.available||!1)}),r.every(e=>!e)?"":(0,s.jsxs)("div",{className:"d-flex flex-column gap-3",children:[(0,s.jsx)(Q,{component:e,standardMosquito:j,authentificationSession:p,standardMosquitoPicture:P,translations:i,standardNet:z,router:h}),(0,s.jsx)(X,{component:e,premiumMosquito:v,authentificationSession:p,premiumMosquitoPicture:b,translations:i,premiumNet:y,router:h})]},t)}return null})]})]})})]})})};var et=i(73757);i(83122);var ei=i(58306),es=i.n(ei),er=i(15039),eo=i.n(er),en=i(54587),ea=i.n(en),el=i(13845),ec=i(13363),ed=i(10195);let eu=function(e){let{controlId:t,label:i,type:o,placeholder:n,name:a,value:l,onChange:c,onBlur:d,groupItem:u,hint:m,error:p,disableField:h}=e,g=(0,r.useRef)(null);return(0,r.useEffect)(()=>{g.current&&g.current.addEventListener("wheel",e=>{e.preventDefault()})},[g]),(0,s.jsxs)("div",{className:"custom-input-group mb-3",children:[(0,s.jsx)(v.A.Label,{children:i}),(0,s.jsxs)(ed.A,{className:p&&"error-input",children:[(0,s.jsx)(v.A.Control,{ref:g,type:o,placeholder:n,name:a,value:l,onChange:c,onBlur:d,error:"true",disabled:h}),(0,s.jsx)(ed.A.Text,{id:"basic-addon2",children:"cm"})]}),m&&(0,s.jsx)("span",{className:`input-description ${p&&"error"}`,children:m})]})};var em=i(18847),ep=i.n(em),eh=i(59296);let eg=["fixed","fixed_sash"],ex={"en-gb":{notice:"Please note: {openable} of {total} panes can be opened. Fixed panes are marked with + on the drawing.",legendTitle:"How to read the drawing",viewNote:"The drawing shows the product seen from the outside.",sideHung:"Side-hung pane â opens. The tip of the triangle points to the handle side, the hinges are on the opposite side.",topHung:"Top-hung pane â opens. Hinged at the top and opens outwards at the bottom.",fixed:"Fixed pane â cannot be opened.",handle:"Handle â only on panes that open."},"da-dk":{notice:"Bem\xe6rk: {openable} af {total} rammer kan \xe5bnes. Faste rammer er markeret med + p\xe5 tegningen.",legendTitle:"S\xe5dan l\xe6ser du tegningen",viewNote:"Tegningen viser produktet set udefra.",sideHung:"Sideh\xe6ngt ramme â kan \xe5bnes. Trekantens spids peger mod grebssiden, h\xe6ngslerne sidder i den modsatte side.",topHung:"Toph\xe6ngt ramme â kan \xe5bnes. H\xe6ngslet foroven og \xe5bner udad forneden.",fixed:"Fast ramme â kan ikke \xe5bnes.",handle:"Greb â kun p\xe5 rammer, der kan \xe5bnes."},"no-no":{notice:"Merk: {openable} av {total} rammer kan \xe5pnes. Faste rammer er merket med + p\xe5 tegningen.",legendTitle:"Slik leser du tegningen",viewNote:"Tegningen viser produktet sett utenfra.",sideHung:"Sidehengslet ramme â kan \xe5pnes. Spissen p\xe5 trekanten peker mot h\xe5ndtakssiden, hengslene sitter p\xe5 motsatt side.",topHung:"Topphengslet ramme â kan \xe5pnes. Hengslet i toppen og \xe5pnes utover nederst.",fixed:"Fast ramme â kan ikke \xe5pnes.",handle:"H\xe5ndtak â kun p\xe5 rammer som kan \xe5pnes."},"sv-se":{notice:"Obs: {openable} av {total} b\xe5gar \xe4r \xf6ppningsbara. Fasta b\xe5gar \xe4r markerade med + p\xe5 ritningen.",legendTitle:"S\xe5 l\xe4ser du ritningen",viewNote:"Ritningen visar produkten sedd utifr\xe5n.",sideHung:"Sidoh\xe4ngd b\xe5ge â \xf6ppningsbar. Triangelns spets pekar mot handtagssidan, g\xe5ngj\xe4rnen sitter p\xe5 motsatt sida.",topHung:"\xd6verkantsh\xe4ngd b\xe5ge â \xf6ppningsbar. H\xe4ngd i \xf6verkant och \xf6ppnas ut\xe5t i nederkant.",fixed:"Fast b\xe5ge â kan inte \xf6ppnas.",handle:"Handtag â endast p\xe5 \xf6ppningsbara b\xe5gar."},"de-de":{notice:"Hinweis: {openable} von {total} Fl\xfcgeln lassen sich \xf6ffnen. Feste Fl\xfcgel sind in der Zeichnung mit + markiert.",legendTitle:"So lesen Sie die Zeichnung",viewNote:"Die Zeichnung zeigt das Produkt von au\xdfen.",sideHung:"Seitlich angeschlagener Fl\xfcgel â l\xe4sst sich \xf6ffnen. Die Dreieckss
244pitze zeigt zur Griffseite, die B\xe4nder sitzen gegen\xfcber.",topHung:"Oben angeschlagener Fl\xfcgel â l\xe4sst sich \xf6ffnen. Oben angeschlagen, \xf6ffnet unten nach au\xdfen.",fixed:"Fester Fl\xfcgel â l\xe4sst sich nicht \xf6ffnen.",handle:"Griff â nur an Fl\xfcgeln, die sich \xf6ffnen lassen."},"et-ee":{notice:"NB! {total} raamist on avatavad {openable}. Fikseeritud raamid on joonisel t\xe4histatud m\xe4rgiga +.",legendTitle:"Kuidas joonist lugeda",viewNote:"Joonis n\xe4itab toodet v\xe4ljastpoolt vaadatuna.",sideHung:"K\xfclghingedega raam â avatav. Kolmnurga tipp n\xe4itab k\xe4epideme poolt, hinged asuvad vastask\xfcljel.",topHung:"\xdclahingedega raam â avatav. Hinged on \xfcleval ja raam avaneb alt v\xe4ljapoole.",fixed:"Fikseeritud raam â ei ole avatav.",handle:"K\xe4epide â ainult avatavatel raamidel."}},ef={notice:"fixedPanesNotice",legendTitle:"visualizerLegendTitle",viewNote:"visualizerLegendViewNote",sideHung:"visualizerLegendSideHung",topHung:"visualizerLegendTopHung",fixed:"visualizerLegendFixed",handle:"visualizerLegendHandle"};function e_(e,t){let i={...ex[e]||ex["en-gb"]};return Object.entries(ef).forEach(([e,s])=>{let r=t?.[s];"string"==typeof r&&r.trim()&&(i[e]=r)}),i}var ej=i(23003),eP=i.n(ej);let ev={fill:"none",stroke:"#EF4444",strokeWidth:2,strokeDasharray:"5,4"},eb={fill:"#ffffff",stroke:"#4aa1f3",strokeWidth:2};function eC({children:e}){return(0,s.jsxs)("svg",{width:"56",height:"56",viewBox:"0 0 56 56","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"4",y:"4",width:"48",height:"48",rx:"2",...eb}),e]})}function ez({panes:e,locale:t,translations:i,placement:r}){if(!e||0===e.fixed||0===e.openable||i?.fixedPanesNoticeEnabled===!1)return null;let o=e_(t,i).notice.replace("{openable}",e.openable).replace("{total}",e.total);return(0,s.jsxs)("aside",{className:eo()(eP().fixed_panes_notice,{[eP().fixed_panes_notice_mobile]:"mobile"===r,[eP().fixed_panes_notice_desktop]:"desktop"===r}),role:"note",children:[(0,s.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"#0071e3",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}),(0,s.jsx)("span",{children:o})]})}function ey({locale:e,translations:t}){let i=e_(e,t);return(0,s.jsxs)("div",{className:eP().legend,children:[(0,s.jsx)("h3",{children:i.legendTitle}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:[(0,s.jsx)(eC,{children:(0,s.jsx)("polyline",{points:"8,8 48,28 8,48",...ev})}),(0,s.jsx)("span",{children:i.sideHung})]}),(0,s.jsxs)("li",{children:[(0,s.jsx)(eC,{children:(0,s.jsx)("polyline",{points:"8,8 28,48 48,8",...ev})}),(0,s.jsx)("span",{children:i.topHung})]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)(eC,{children:[(0,s.jsx)("line",{x1:"28",y1:"20",x2:"28",y2:"36",...ev}),(0,s.jsx)("line",{x1:"20",y1:"28",x2:"36",y2:"28",...ev})]}),(0,s.jsx)("span",{children:i.fixed})]}),(0,s.jsxs)("li",{children:[(0,s.jsx)(eC,{children:(0,s.jsx)("rect",{x:"43",y:"19",width:"5",height:"18",rx:"1",fill:"#F1F5F9",stroke:"#4aa1f3",strokeWidth:"1.5"})}),(0,s.jsx)("span",{children:i.handle})]})]}),(0,s.jsx)("p",{className:eP().legend_view_note,children:i.viewNote})]})}var ew=i(19699),eN=i(97234),eS=i.n(eN);let ek=({label:e,name:t,id:i,required:r,onChange:o,ariaLabel:n,children:a,onBlur:l,disabled:c,value:d,size:u})=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(v.A.Group,{className:"mb-4 custom-input","data-sentry-element":"unknown","data-sentry-source-file":"selectComponent.jsx",children:[e&&(0,s.jsx)(v.A.Label,{className:eS().form_label,children:e}),(0,s.jsx)(v.A.Select,{name:t,id:i,required:r,onChange:o,"aria-label":n,onBlur:l,disabled:c,value:d,size:u,"data-sentry-element":"unknown","data-sentry-source-file":"selectComponent.jsx",children:a})]})});var eD=i(42765),eT=i.n(eD);function eA({zoom:e="200",alt:t="This is a zoomed-in image",width:i="100%",height:o="auto",src:n,highResSrc:a,id:l,className:c,errorContent:d=(0,s.jsx)("p",{children:"There was a problem loading your image"}),onZoomChange:u,setIsZoomed:m,isZoomed:p}){let[h,g]=(0,r.useState)("50% 50%"),[x,f]=(0,r.useState)(null),[_,j]=(0,r.useState)(!1),P=p?eT().zoomed:eT().fullView;(0,r.useEffect)(()=>()=>{p&&u(!1)},[p,u]),(0,r.useEffect)(()=>
244{if(p&&a){let e=new Image;e.src=a,e.onload=()=>f(a)}},[p,a]);let v=e=>{let t=e.currentTarget.getBoundingClientRect(),i=(e.clientX-t.x)/t.width*100,s=(e.clientY-t.y)/t.height*100;g(`${i}% ${s}%`)};return _?(0,s.jsx)(s.Fragment,{children:d}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{id:l,className:`${P} ${c||""}`,onClick:e=>{let t=!p;m(t),u&&(v(e),u(t))},onMouseMove:p?v:null,onMouseLeave:()=>p&&g(h),children:[(0,s.jsx)("img",{id:"imageNormal",src:n,alt:t,style:{opacity:+!p},width:i,height:o}),p&&(0,s.jsx)("img",{src:x,alt:t,style:{position:"absolute",top:0,left:0,width:"calc(100% - 40px)",height:"calc(100% - 40px)",padding:"20px",objectFit:"contain",transform:`scale(${parseInt(e)/100})`,transformOrigin:h,transition:"transform 0.2s ease-out"}})]})})}let eM=ep()(()=>Promise.all([i.e(7391),i.e(5334),i.e(3856),i.e(5037),i.e(3791),i.e(9256)]).then(i.bind(i,1091)).then(e=>({default:e.ProductVisualizer})),{loadableGenerated:{webpack:()=>[null]},ssr:!1});function eI(e,t=[]){if(!e||t.length<0)return null;let i=new Set().add(e?.url);return t&&t.forEach(e=>{i.add(e.url)}),i}function eH(e,t){let i=[];for(let s=e;s<=t;s++)s%10==8&&i.push(s);return i}function eL(e,t){let i=[];for(let s=e;s<=t;s++)s%10==0&&i.push(s);return i}function e$(e,t){let i=Math.ceil(e/10),s=Math.floor(t/10),r=[];for(let e=i;e<=s;e++)r.push(e);return r}let eq=({imageUrl:e,handleZoomChange:t,applicationCtx:i,isZoomed:r,setIsZoomed:o,index:n})=>{let a=(0,I.mx)(e,"300"),l=(0,I.mx)(e,"1000");return(0,s.jsx)("div",{className:r?"product-shape-item-zoomed":"product-shape-item",children:b.xl?(0,s.jsx)(eA,{src:a,highResSrc:l,alt:`${i.customizerProduct.subCategory.title} ${i.customizerProduct.product.title}`,zoom:"200",onZoomChange:t,isZoomed:r,setIsZoomed:o}):(0,s.jsx)(el.A,{src:r?l:a,afterZoomIn:e=>{t(!e)},afterZoomOut:i.customProductSaving?t(!1):()=>{t(!1)},imgAttributes:{alt:`${i.customizerProduct.subCategory.title} ${i.customizerProduct.product.title}`,loading:"eager"},hideHint:!0,hideCloseButton:!0,fadeDuration:0,zoomScale:`${b.v1?"1":"0.4"}`,zoomPreload:!0,moveType:"drag"})})},eE=({imageUrl:e,applicationCtx:t,choosenWidth:i})=>{let r=(0,I.mx)(e,"100");return(0,s.jsx)(ea(),{alt:`${t.customizerProduct?.subCategory?.title} ${t.customizerProduct?.product?.title}`,src:r,width:100,height:100,style:{width:i,height:"auto",cursor:"pointer"}})},eF=({router:e,errors:t,dimensionProduct:i,translations:r,measurementState:o,setMeasurementState:n,applicationCtx:a,setDimensionProduct:l,setDimensionProductDM:c})=>{let{customizerProduct:d}=a,u=async s=>{let r,o;if(t.width||t.height)return;a.setCustomProductSaving(!0);let{minWidth:u,minHeight:m,maxWidth:p,maxHeight:h,defaultHeight:g,defaultWidth:x}=d?.product,f=eL(u,p),_=eL(m,h),j=Math.min(...f),P=Math.min(..._);"cm"===s&&(r=parseInt(i.width,10)||x,o=parseInt(i.height,10)||g),"dm"===s&&(r=j,o=P),l({width:"",height:""}),c({width:"",height:""});try{let{data:t}=await (0,D.ls)(e).mutate({mutation:et.k,variables:{input:{attributes:{width:r,height:o},id:d.id}}});if(t){let e={...d,width:r,height:o,generalPrice:t?.updateCustomProduct?.customProduct?.generalPrice,price:t?.updateCustomProduct?.customProduct?.price};a.setCustomizerProduct(e),n(s)}}catch(e){console.error("Error updating dimensions:",e)}finally{a.setCustomProductSaving(!1)}};return(0,s.jsxs)("div",{className:es().main_container_measurement_selection,children:[(0,s.jsx)("div",{className:eo()({[es().container_measurement_button]:!0,[es().container_measurement_button_selected]:"cm"===o}),onClick:()=>u("cm"),children:(0,s.jsx)("span",{children:r?.measurementCmLabel})}),(0,s.jsx)("div",{className:eo()({[es().container_measurement_button]:!0,[es().container_measurement_button_selected]:"dm"===o}),onClick:()=>u("dm"),children:(0,s.jsx)("span",{children:r?.measurementDmLabel})})]})},eO=({router:e,errors:t,dimensionProduct:i,translations:r,measurementState:o,setMeasurementState:n,applicationCtx:a,setDimensionProduct:l,setDimensionProductDM:c})=>{let{customizerProduct:d}=a,u=async s=>{let r,o;if(t.width||t.height)return;a.setCustomProductSaving(!0);let{minWidth:u,minHeight:m,maxWidth:p,maxHeight:h,defaultHeight:g,defaultWidth:x}=d?.product,f=eH(u,p),_=eH(m,h),j=Math.min(...f),P=Math.min(..._);"cm"===s&&(r=parseInt(i.width,10)||x,o=parseInt(i.height,10)||g),"dm"===s&&(r=j,o=P),l({width:"",height:""}),c({width:"",height:""});try{let{data:t}=await (0,D.ls)(e).mutate({mutation:et.k,variables:{input:{attributes:{width:r,height:o},id:d.id}}});if(t){let e={...d,width:r,height:o,generalPrice:t?.updateCustomProduct?.customProduct?.generalPrice,price:t?.updateCustomProduct?.customProduct?.price};a.setCustomizerProduct(e),n(s)}}catch(e){console.error("Error updating dimensions:",e)}finally{a.setCustomProductSaving(!1)}};return(0,s.jsxs)("div",{className:es().main_container_measurement_selection,children:[(0,s.jsx)("div",{className:eo()({[es().container_measurement_button]:!0,[es().container_measurement_button_selected]:"cm"===o}),onClick:()=>u("cm"),children:(0,s.jsx)("span",{children:r?.measurementCmLabel})}),(0,s.jsx)("div",{className:eo()({[es().container_measurement_button]:!0,[es().container_measurement_button_selected]:"dm"===o}),onClick:()=>u("dm"),children:(0,s.jsx)("span",{children:r?.measurementDmLabel})})]})},eB=({applicationCtx:e,locale:t,onChangeDimensionDM:i,translations:r,goToNextStep:o,dimensionProductDM:n,maxWidthFor:a,minHeightFor:l,maxHeightFor:c})=>{let{width:d,height:m}=n,{minWidth:p,maxWidth:h,minHeight:g,maxHeight:x}=e.customizerProduct?.product||{},f=e$(p,h),_=e$(g,x),j=a(e.customizerProduct.height),P=d?l(e.customizerProduct.width):g,v=d?c(e.customizerProduct.width):x,b=eL(p,h),C=(eL(g,x),Math.ceil(Math.min(...b)/10)),z=Math.ceil(Math.max(...b)/10);return(0,s.jsxs)("div",{className:es().main_container_selectors_dm,children:[(0,s.jsxs)(ek,{label:`${(0,u.t)("measurementsWidth",r)}`,name:"widthDM",onChange:e=>{i(e,C,t)},onBlur:e=>{let t=e.relatedTarget;!(t?.tagName==="SELECT"&&t?.name.includes("DM"))&&d&&m&&o(t?.id==="nextStep")},disabled:e.customProductSaving,children:[!d&&(0,s.jsx)("option",{children:(0,u.t)("measurementDropdownLabel",r)}),f.map((e,t)=>{let i=10*e;return i<p||i>h||m&&i>j?null:(0,s.jsxs)("option",{value:e,children:[10*e," cm"]},t)})]}),(0,s.jsx)("p",{className:es().measurement_cm_details,children:d?`${r.measurementsWidth}: ${10*d} cm`:`${(0,u.t)("measurementsInputHintDm",r,{property:(0,u.t)("measurementsWidth",r),min:10*C,max:10*z})}`}),(0,s.jsxs)(ek,{label:`${(0,u.t)("measurementsHeight",r)}`,name:"heightDM",onBlur:e=>{let t=e.relatedTarget;!(t?.tagName==="SELECT"&&t?.name.includes("DM"))&&d&&m&&o(t?.id==="nextStep")},onChange:e=>{i(e,C,t)},disabled:e.customProductSaving,children:[!m&&(0,s.jsx)("option",{children:(0,u.t)("measurementDropdownLabel",r)}),_.map((e,t)=>{let i=10*e;return i<P||i>v?null:(0,s.jsxs)("option",{value:e,children:[10*e," cm"]},t)})]}),(0,s.jsx)("p",{className:es().measurement_cm_details,children:m?`${r.measurementsHeight}: ${10*m} cm`:`${(0,u.t)("measurementsInputHintDm",r,{property:(0,u.t)("measurementsHeight",r),min:P,max:v})}`})]})},eW=({applicationCtx:e,locale:t,onChangeDimensionDM:i,translations:r,goToNextStep:o,dimensionProductDM:n,maxWidthFor:a,minHeightFor:l,maxHeightFor:c})=>{let{width:d,height:m}=n,{minWidth:p,maxWidth:h,minHeight:g,maxHeight:x}=e.customizerProduct?.product||{},f=e$(p,h),_=e$(g,x),j=a(e.customizerProduct.height),P=d?"sv-se"==t?10*d-2:10*d:null,v=P?l(P):g,b=P?c(P):x,C=eH(p,h),z=(eH(g,x),Math.ceil(Math.min(...C)/10)),y=Math.ceil(Math.max(...C)/10);return(0,s.jsxs)("div",{className:es().main_container_selectors_dm,children:[(0,s.jsxs)(ek,{label:`${(0,u.t)("measurementsWidth",r)}`,name:"widthDM",onChange:e=>{i(e,z,t)},onBlur:e=>{let t=e.relatedTarget;!(t?.tagName==="SELECT"&&t?.name.includes("DM"))&&d&&m&&o(t?.id==="nextStep")},disabled:e.customProductSaving,children:[!d&&(0,s.jsx)("option",{children:(0,u.t)("measurementDropdownLabel",r)}),f.map((e,i)=>{let r="sv-se"==t?10*e-2:10*e;return r<p||r>h||m&&r>j?null:(0,s.jsx)("option",{value:e,children:e},i)})]}),(0,s.jsx)("p",{className:es().measurement_cm_details,children:d?`${r.measurementsWidth}: ${"sv-se"==t?10*d-2:10*d} cm`:`${(0,u.t)("measurementsInputHintDm",r,{property:(0,u.t)("measurementsWidth",r),min:z,max:y})}`}),(0,s.jsxs)(ek,{label:`${(0,u.t)("measurementsHeight",r)}`,name:"heightDM",onBlur:e=>{let t=e.relatedTarget;!(t?.tagName==="SELECT"&&t?.name.includes("DM"))&&d&&m&&o(t?.id==="nextStep")},onChange:e=>{i(e,z,t)},disabled:e.customProductSaving,children:[!m&&(0,s.jsx)("option",{children:(0,u.t)("measurementDropdownLabel",r)}),_.map((e,i)=>{let r="sv-se"==t?10*e-2:10*e;return r<v||r>b?null:(0,s.jsx)("option",{value:e,children:e},i)})]}),(0,s.jsx)("p",{className:es().measurement_cm_details,children:m?`${r.measurementsHeight}
244: ${"sv-se"==t?10*m-2:10*m} cm`:`${(0,u.t)("measurementsInputHintDm",r,{property:(0,u.t)("measurementsHeight",r),min:"sv-se"==t?Math.ceil((v+2)/10):Math.ceil(v/10),max:"sv-se"==t?Math.floor((b+2)/10):Math.floor(b/10)})}`})]})},eR=({applicationCtx:e,translations:t,goToNextStep:i})=>{let r=e.customizerProduct.product.explicitMeasurementCombinations;return(0,s.jsxs)("div",{className:es().main_container_selectors_dm,children:[(0,s.jsx)(ek,{label:`${(0,u.t)("measurementsWidth",t)} x ${(0,u.t)("measurementsHeight",t)}`,name:"measurements",onChange:t=>{let s=t.target.value.split("x").map(e=>parseFloat(e)),o=r.find(e=>e.width===s[0]&&e.height===s[1]),n=r.find(t=>t.height===e.customizerProduct.height&&t.width===e.customizerProduct.width);(o.height!=n.height||o.width!=n.width)&&(e.customizerProduct.width=s[0],e.customizerProduct.height=s[1],i(!1))},disabled:e.customProductSaving,value:`${e.customizerProduct.width}x${e.customizerProduct.height}`,children:r.map((e,t)=>(0,s.jsxs)("option",{value:`${e.width}x${e.height}`,children:[e.width,"cm x ",e.height,"cm"]},t))}),(0,s.jsx)("p",{className:es().measurement_cm_details,children:(0,u.t)("measurementsInputHint",t,{property:(0,u.t)("measurementsWidth",t),min:Math.min(...r.map(e=>e.width)),max:Math.max(...r.map(e=>e.width))})}),(0,s.jsx)("p",{className:es().measurement_cm_details,children:(0,u.t)("measurementsInputHint",t,{property:(0,u.t)("measurementsHeight",t),min:Math.min(...r.map(e=>e.height)),max:Math.max(...r.map(e=>e.height))})})]})},eV=function(e){let t=(0,d.useRouter)(),{goToNextStep:i,translations:l,category:c,tooltip:m,step:x,measurementState:f,setMeasurementState:_,setIsZoomed:j,handleZoomChange:P,isZoomed:b,errors:C,setErrors:z,dimensionProductDM:y,setDimensionProductDM:w,authentificationSession:N,tooltips:k}=e,T=(0,r.useContext)(a.A),[A,M]=(0,r.useState)(null),[H,L]=(0,r.useState)([]),[$,q]=(0,r.useState)([]),E=$||H,F=!!(T.customizerProduct?.product?.code&&eh.WINDOW_MODELS[T.customizerProduct.product.code]),O=function(e){try{let t=e?eh.WINDOW_MODELS?.[e]:null;if(!t||"window"!==t.type)return null;let i=function e(t,i=[]){return t&&(Array.isArray(t.children)?t.children.forEach(t=>e(t,i)):i.push(t)),i}(t.layout);if(0===i.length)return null;let s=i.filter(e=>eg.includes(e?.opening||e?.defaultOpening||"fixed")).length;return{total:i.length,fixed:s,openable:i.length-s}}catch(e){return null}}(T.customizerProduct?.product?.code),[B,W]=(0,r.useState)(+!F),[R,V]=(0,r.useState)("2d"),[U,J]=(0,r.useState)(!1),[Z,K]=(0,r.useState)(!1);(0,r.useEffect)(()=>{W(0),V("2d")},[T.customizerProduct?.product?.code]);let[Y,Q]=(0,r.useState)({width:"",height:""});function X(e){if(!T.customizerProduct.subCategory.dimensionMatrixEnabled)return T.customizerProduct.product.maxWidth;let t=10*e,i=T.customizerProduct.subCategory.dimensionMatrix.find(e=>e.models.includes(T.customizerProduct.product.code));if(!i)return T.customizerProduct.product.maxWidth;let s=Math.max(...i.combinations.filter(e=>e.minHeight<=t).map(e=>e.maxWidth))/10;return isFinite(s)?Math.min(s,T.customizerProduct.product.maxWidth):T.customizerProduct.product.maxWidth}function ee(e){if(!T.customizerProduct.subCategory.dimensionMatrixEnabled)return T.customizerProduct.product.minHeight;let t=10*e,i=T.customizerProduct.subCategory.dimensionMatrix.find(e=>e.models.includes(T.customizerProduct.product.code));if(!i)return T.customizerProduct.product.minHeight;let s=i.combinations.filter(e=>e.maxWidth>=t);if(0===s.length)return T.customizerProduct.product.maxHeight;let r=Math.min(...s.map(e=>e.minHeight))/10;return isFinite(r)?Math.max(r,T.customizerProduct.product.minHeight):T.customizerProduct.product.minHeight}function et(e){if(!T.customizerProduct.subCategory.dimensionMatrixEnabled)return T.customizerProduct.product.maxHeight;let t=10*e,i=T.customizerProduct.subCategory.dimensionMatrix.find(e=>e.models.includes(T.customizerProduct.product.code));if(!i)return T.customizerProduct.product.maxHeight;let s=i.combinations.filter(e=>e.maxWidth>=t);if(0===s.length)return T.customizerProduct.product.maxHeight;let r=s.reduce((e,t)=>t.minHeight>e.minHeight?t:e),o=i.combinations.filter(e=>e.minHeight>r.minHeight).reduce((e,t)=>
244!e||t.minHeight<e.minHeight?t:e,null),n=(o?o.minHeight-1:r.minHeight)/10;return isFinite(n)?Math.min(n,T.customizerProduct.product.maxHeight):T.customizerProduct.product.maxHeight}function ei(e,t){let i=T.customizerProduct.product.maxWidth,s=T.customizerProduct.product.minWidth,r=ee(T.customizerProduct.width),o=et(T.customizerProduct.width),n=T.customizerProduct.product.maxHeight,a=T.customizerProduct.product.minHeight,c="",d=Number(t);if(parseFloat(d)){if("width"===e&&(s>d||i<d)&&(c=(0,u.t)("widthValueMismatchLabel",l,{min:s,max:i})),"height"===e){let e=Number(T.customizerProduct.width),t=e>=s&&e<=i,m=T.customizerProduct.subCategory.dimensionMatrixEnabled,p=Y.width&&t&&m,h=p?r:a,g=p?o:n;(d<h||d>g)&&(c=p?(0,u.t)("matrixDependentHeightMismatch",l,{width:T.customizerProduct.width,min:h,max:g}):(0,u.t)("heightValueMismatchLabel",l,{min:a,max:n}))}}else c=(0,u.t)("numberIntegerMismatchLabel",l);z(t=>({...t,[e]:c}))}function es(e=!1){let{width:t,height:s}=Y;if(""!==t&&""!==s)return i(e)}function er(e){let{name:t,value:i}=e.target;Q({...Y,[t]:i}),T.customProductSaving||("width"===t&&T.updateCustomizerProductWidth(i),"height"===t&&T.updateCustomizerProductHeight(i))}function eo(e,t,i){let{name:s,value:r}=e.target,o="sv-se"==i?10*r-2:10*r;if(T.customProductSaving)return;let n={};if("widthDM"===s&&(n.width=r,T.updateCustomizerProductWidth(o),y.height)){let e="sv-se"==i?10*y.height-2:10*y.height,t=ee(o),s=et(o);(e<t||e>s)&&(n.height="")}if("heightDM"===s){n.height=r;let e="sv-se"==i?10*r-2:10*r,s=X(e);if(("sv-se"==i?10*y.width-2:10*y.width)>s){n.width=t;let s="sv-se"==i?10*t-2:10*t;T.updateCustomizerProductWidth(s),T.updateCustomizerProductWidthAndHeight(s,e)}else T.updateCustomizerProductHeight(e)}w({...y,...n})}return(0,r.useEffect)(()=>{let{featuredImage:e,images:t,drawableJson:i}=T.customizerProduct.product,s=T?.customizerProduct?.featuredImage,r=T?.customizerProduct?.images,o=eI(s,r),n=eI(e,t);i&&0!==Object.keys(i).length?M(i):M(null),s&&r?(q(Array.from(o)),W(0)):q(null),L(Array.from(n))},[T.customizerProduct]),(0,r.useEffect)(()=>{T.customizerProduct.product.layoutPosts&&T.customizerProduct.product.layoutSquares&&(T.setDefaultPosts(T.customizerProduct.product.layoutPosts),T.setDefaultSquares(T.customizerProduct.product.layoutSquares))},[]),(0,r.useEffect)(()=>{let{width:e,height:i}=T.customizerProduct,{id:s,defaultHeight:r,defaultWidth:o}=T.customizerProduct?.product,n=localStorage.getItem(I.zY);if(t.pathname.includes("edit"))return Q({width:e,height:i});(n||"undefined"!==n&&s===n)&&Q({width:o!==e?e:"",height:r!==i?i:""})},[T.customizerProduct?.product?.id,T.customizerProduct?.id]),(0,r.useEffect)(()=>{Y.width?ei("width",T.customizerProduct?.width):z(e=>({...e,width:""})),Y.height?ei("height",T.customizerProduct?.height):z(e=>({...e,height:""}))},[T.customizerProduct?.width,T.customizerProduct?.height]),(0,s.jsxs)("div",{className:"d-flex flex-column dimension-block",children:[(0,s.jsxs)(n.A,{className:"d-flex align-items-stretch",children:[(0,s.jsxs)(o.A,{xs:12,lg:6,className:"dimension-preview",children:[(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:b?"dimenions-img-zoomed":"dimenions-img",children:[(0,s.jsxs)(ec.A,{interval:null,activeIndex:B,indicators:!1,slide:!0,nextLabel:!1,prevLabel:!1,controls:!1,onSelect:e=>W(e),children:[F&&(0,s.jsx)(ec.A.Item,{children:(0,s.jsx)("div",{className:"product-shape-item",children:(0,s.jsx)(eM,{productCode:T.customizerProduct?.product?.code,width:Math.min(Math.max(T.customizerProduct?.width*10,10*(T.customizerProduct?.product?.minWidth||0)),10*(T.customizerProduct?.product?.maxWidth||1/0)),height:Math.min(Math.max(T.customizerProduct?.height*10,10*(T.customizerProduct?.product?.minHeight||0)),10*(T.customizerProduct?.product?.maxHeight||1/0)),hasPacker:T.customizerProduct?.packer?.id!=="1",mode:R,hasCylinder:T.customizerProduct?.lockCore&&T.customizerProduct?.lockCore?.id!=="1",showHandle:T.customizerProduct?.latch?.lockType==="Inline"||T.customizerProduct?.handle&&T.customizerProduct?.handle?.id!=="1",thresholdType:T.customizerProduct?.threshold?.thresholdType==="Aluminium"?"composite":T.customizerProduct?.threshold?.thresholdType==="Mahogany"?"mahogany":"standard",openingDirection:T.customizerProduct?.openingDirection?.openingDirectionType||null})})},"visualizer"),E.map((e,t)=>(0,s.jsx)(ec.A.Item,{children:(0,s.jsx)(eq,{choosenWidth:"100%",imageUrl:e,applicationCtx:T,handleZoomChange:P,isZoomed:b,setIsZoomed:j,index:t})},`image-${t}`))]}),F&&0===B&&(0,s.jsxs)("div",{style:{position:"absolute",top:"12px",right:"12px",zIndex:10,display:"flex",gap:"8px"},children:[(0,s.jsx)("div",{onClick:()=>K(!0),style:{padding:"6px",borderRadius:"8px",cursor:"pointer",background:"rgba(255,255,255,0.85)",backdropFilter:"blur(4px)",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",display:"flex",alignItems:"center",justifyContent:"center",transition:"background 200ms"},children:(0,s.jsx)("img",{src:"/images/info.svg",alt:"info",loading:"lazy",style:{width:"18px",height:"18px"}})}),(0,s.jsx)("div",{className:"d-none d-md-block",onClick:()=>V("2d"===R?"3d":"2d"),style:{padding:"6px 12px",borderRadius:"8px",cursor:"pointer",background:"rgba(255,255,255,0.85)",backdropFilter:"blur(4px)",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",fontSize:"13px",fontWeight:"600",color:"#333",userSelect:"none",transition:"background 200ms"},children:"2d"===R?"3D":"2D"})]}),F&&(0,s.jsx)(h.A,{show:Z,handleClose:()=>K(!1),classes:"hint-modal",children:(0,s.jsxs)("div",{children:[l.visualizerTooltipModal&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{children:l.visualizerTooltipModal?.title}),(0,s.jsx)(p.A,{data:l.visualizerTooltipModal?.content})]}),(0,s.jsx)(ey,{locale:t.locale,translations:l})]})}),E.length>0&&!b&&(0,s.jsxs)("div",{style:{position:"absolute",bottom:"12px",left:"50%",transform:"translateX(-50%)",display:"flex",gap:"8px",zIndex:10},children:[F&&(0,s.jsx)("div",{onClick:()=>W(0),style:{width:"48px",height:"48px",borderRadius:"8px",overflow:"hidden",cursor:"pointer",background:"rgba(255,255,255,0.85)",backdropFilter:"blur(4px)",border:0===B?"2px solid #0071E3":"2px s
244olid transparent",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",transition:"border-color 200ms",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:0===B?"#0071E3":"#333",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),(0,s.jsx)("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),(0,s.jsx)("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]})}),E.map((e,t)=>{let i=F?t+1:t;return(0,s.jsx)("div",{onClick:()=>W(i),style:{width:"48px",height:"48px",borderRadius:"8px",overflow:"hidden",cursor:"pointer",background:"rgba(255,255,255,0.85)",backdropFilter:"blur(4px)",border:B===i?"2px solid #0071E3":"2px solid transparent",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",transition:"border-color 200ms"},children:(0,s.jsx)(eE,{choosenWidth:"100%",imageUrl:e,applicationCtx:T})},`thumb-${t}`)})]})]})}),(0,s.jsx)(ez,{panes:O,locale:t.locale,translations:l,placement:"mobile"})]}),(0,s.jsxs)(o.A,{xs:12,lg:6,className:"dimension-data d-flex flex-column justify-content-center align-items-center",children:[(0,s.jsxs)("div",{className:"d-flex w-100 flex-column text-center mb-lg-4",children:[(0,s.jsx)("div",{className:"d-block dimenions-step-title",children:(0,u.t)("measurementsTitle",l)}),(0,s.jsx)("div",{className:"d-block dimenions-step-info",children:(0,s.jsx)(g.A,{children:(0,u.t)("measurementsHint",l)})}),"sv-se"==t.locale&&T.customizerProduct?.product?.explicitMeasurementEnabled!==!0&&(0,s.jsx)(eO,{router:t,errors:C,applicationCtx:T,dimensionProduct:Y,translations:l,measurementState:f,setMeasurementState:_,dimensionProductDM:y,setDimensionProduct:Q,setDimensionProductDM:w}),"no-no"==t.locale&&T.customizerProduct?.product?.explicitMeasurementEnabled!==!0&&(0,s.jsx)(eF,{router:t,errors:C,applicationCtx:T,dimensionProduct:Y,translations:l,measurementState:f,setMeasurementState:_,dimensionProductDM:y,setDimensionProduct:Q,setDimensionProductDM:w})]}),(0,s.jsxs)("div",{className:"dimenions-inputs",lang:"nl",children:["cm"===f&&T.customizerProduct?.product?.explicitMeasurementEnabled!==!0&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eu,{label:`${(0,u.t)("measurementsWidth",l)}:`,placeholder:T.customizerProduct?.product?.defaultWidth,value:Y.width,onChange:e=>er(e),onBlur:e=>{es(e.relatedTarget?.id==="nextStep")},type:"number",controlId:"width",name:"width",groupItem:!0,error:C.width?"true":null,hint:C.width?C.width:(0,u.t)("measurementsInputHint",l,{property:(0,u.t)("measurementsWidth",l),min:T.customizerProduct?.product?.minWidth,max:T.customizerProduct?.product?.maxWidth}),disableField:T.customProductSaving}),(0,s.jsx)(eu,{label:`${(0,u.t)("measurementsHeight",l)}:`,placeholder:T.customizerProduct.product?.defaultHeight,value:Y.height,onChange:e=>er(e),onBlur:e=>{es(e.relatedTarget?.id==="nextStep")},type:"number",controlId:"height",name:"height",groupItem:!0,error:C.height?"true":null,hint:C.height?C.height:(0,u.t)("measurementsInputHint",l,{property:(0,u.t)("measurementsHeight",l),min:Y.width&&!C.width?ee(T.customizerProduct.width):T.customizerProduct?.product?.minHeight,max:Y.width&&!C.width?et(T.customizerProduct.width):T.customizerProduct?.product?.maxHeight}),disableField:T.customProductSaving})]}),"dm"===f&&T.customizerProduct?.product?.explicitMeasurementEnabled!==!0&&"sv-se"==t.locale&&(0,s.jsx)(eW,{locale:t.locale,errors:C,applicationCtx:T,onChangeDimension:er,onChangeDimensionDM:eo,translations:l,dimensionProduct:Y,goToNextStep:i,dimensionProductDM:y,setDimensionProductDM:w,maxWidthFor:X,minHeightFor:ee,maxHeightFor:et}),"dm"===f&&T.customizerProduct?.product?.explicitMeasurementEnabled!==!0&&"no-no"==t.locale&&(0,s.jsx)(eB,{locale:t.locale,errors:C,applicationCtx:T,onChangeDimension:er,onChangeDimensionDM:eo,translations:l,dimensionProduct:Y,goToNextStep:i,dimensionProductDM:y,setDimensionProductDM:w,maxWidthFor:X,minHeightFor:ee,maxHeightFor:et}),T.customizerProduct?.product?.explicitMeasurementEnabled===!0&&(0,s.jsx)(eR,{errors:C,applicationCtx:T,onChangeDimension:er,translations:l,dimensionProduct:Y,goToNextStep:i,dimensionProductDM:y}),(()=>
244{let e=T.customizerProduct?.productComponents?.find(e=>"packers"===e.title);if(!e||e.components.length<=1)return null;let i=[...e.components].sort((e,t)=>t.priceDiff-e.priceDiff),r=i[0],o=i[i.length-1];e.selected&&e.components.find(t=>t.id===e.selected.id);let n=e.selected?.id===r?.id,a=k?.filter(e=>"packers"===e.step)[0]||null,d=!!(a||l.packersTooltipTitle||l.packersTooltipModal),m=Math.abs((r?.priceDiff||0)-(o?.priceDiff||0)),g=async()=>{if(T.customProductSaving)return;let e=n?o:r;if(!e)return;T.setCustomProductSaving(!0);let i=T.customizerProduct;i.price=i.price+e.priceDiff,T.setCustomizerProduct({...i});try{let{data:i}=await (0,D.ls)(t,N?.myServerAccessToken).mutate({mutation:ew.m,variables:{input:{attributes:{packerId:parseInt(e.id)},id:T.customizerProduct.id}}}),s={};s.productComponents=[];let r=i.updateCustomProduct;T.customizerStepMap.forEach(e=>{r.customProduct[e.title]?s.productComponents.push({components:r.customProduct[e.title],title:e.title,selected:null}):r.customProduct.configurableComponentTypes.find(t=>t===e.remote)?s.productComponents.push({components:[],title:e.title,selected:null}
244):["innerColors","outerColors"].includes(e.title)&&s.productComponents.push({components:[],title:e.title,selected:null})}),Object.keys(r.customProduct).forEach(e=>{"object"!=typeof r.customProduct[e]||null===r.customProduct[e]||"images"===e?s[e]=r.customProduct[e]:"object"!=typeof r.customProduct[e]||r.customProduct[e][0]||0===r.customProduct[e].length||(s[e]={...r.customProduct[e]})}),G(s),T.setCustomizerProduct(s)}catch(e){console.error("Error updating packer:",e)}finally{T.setCustomProductSaving(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"d-flex align-items-center justify-content-between py-3 px-3 mt-3",style:{background:"#f8f9fa",borderRadius:"6px",border:"1px solid #dee2e6",minHeight:"56px",cursor:"pointer"},onClick:g,children:[(0,s.jsxs)("span",{style:{fontSize:"14px",fontWeight:"600"},children:[T.customizerProduct?.packer?.title||(0,u.t)(`${(0,I.id)("packers")}SidebarName`,l),n&&m>0&&(0,s.jsxs)("span",{style:{color:"#666",marginLeft:"8px"},children:["+",(0,I.vv)((0,I.lO)(m),t.locale)]})]}),(0,s.jsxs)("div",{className:"d-flex align-items-center gap-3",children:[d&&(0,s.jsx)("img",{src:"/images/info.svg",alt:"info",style:{width:"24px",height:"24px",cursor:"pointer"},onClick:e=>{e.stopPropagation(),J(!0)}}),(0,s.jsx)(v.A.Check,{type:"switch",id:"packer-switch",checked:n,onChange:g,disabled:T.customProductSaving,className:"packer-switch-lg"})]})]}),d&&(0,s.jsx)(h.A,{show:U,handleClose:()=>J(!1),classes:"hint-modal",children:a?.title&&a?.content?(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:(0,u.t)("title",{title:a.title},{product:c?.name||c?.title})}),(0,s.jsx)(p.A,{data:a.content})]}):a?.title&&a?.modal?.content?(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:(0,u.t)("title",{title:a.title},{product:c?.name||c?.title})}),(0,s.jsx)(p.A,{data:a.modal.content})]}):l.packersTooltipModal?(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{children:l.packersTooltipModal?.title}),(0,s.jsx)(p.A,{data:l.packersTooltipModal?.content})]}):null})]})})(),(0,s.jsx)("div",{className:"d-flex flex-column align-items-center mt-3",children:(0,s.jsx)(S,{tooltip:m,title:(0,u.t)("measurementsTooltipTitle",l,{},!0),text:(0,u.t)("measurementsTooltipText",l,{},!0),buttonText:(0,u.t)("measurementsTooltipButton",l,{},!0),translations:l,image:l.measurementsTooltipImage?l.measurementsTooltipImage:null,category:c,step:x})})]})]})]}),(0,s.jsx)(ez,{panes:O,locale:t.locale,translations:l,placement:"desktop"})]})};var eU=i(55820),eJ=i(50893),eG=i(96709),eZ=i.n(eG),eK=i(55212),eY=i(99600),eQ=i(97151);let eX=["latches","latchTypes","innerColors","outerColors"],e0=({component:e,isSelected:t})=>{let i=t?e.featuredImage?.url:e.inactiveFeaturedImage?.url;return(0,s.jsx)("div",{className:"component-image",children:i?(0,s.jsx)(c.A,{src:i,fluid:!0,alt:"",style:{objectFit:"scale-down"}}):(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(c.A,{src:t?"/images/crosscircled_white.svg":"/images/crosscircled_blue.svg",fluid:!0,alt:""})})})},e1=({component:e})=>{let t=e?.datoData?.image;return(0,s.jsx)("div",{className:"component-image",children:t?(0,s.jsx)(c.A,{src:t,fluid:!0,alt:"",style:{objectFit:"scale-down"}}):(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)(c.A,{src:"/images/crosscircled_white.svg",fluid:!0,alt:""})})})},e2=({component:e,translations:t,router:i})=>(0,s.jsx)("div",{className:"single-component-price",children:e.available?0===e.priceDiff?(0,u.t)("configuratorSamePriceLabel",t):e.priceDiff>0?`+${(0,I.vv)((0,I.lO)(e.priceDiff),i.locale)}`:`-${(0,I.vv)(Math.abs((0,I.lO)(e.priceDiff)),i.locale)}`:""}),e3=({component:e,isSelected:t,isSuggested:i,translations:r,customizerStepData:o,router:n,name:a,applicationCtx:l})=>{let c=eX.includes(a),d=e?.unavailabilityReasons[0],u=()=>(0,s.jsxs)("div",{className:`${eZ().unavailableOverlay}`,children:[(0,s.jsx)("span",{children:r.incompatibilityOverlayText}),(0,s.jsx)(eK.A,{componentChoice:!0,data:d})]});return c?(0,s.jsxs)("div",{className:"d-flex flex-column w-100 align-items-center position-relative",style:{cursor:e.available?"pointer":"default"},children:[!1===e.available&&u(),(0,s.jsx)("div",{className:"d-flex flex-column align-items-center w-100 component",children:(0,s.jsx)(e0,{component:e,isSelected:t})}),(0,s.jsxs)("div",{className:"d-flex flex-column align-items-center justify-content-between single-component",children:[(0,s.jsx)("div",{className:"single-component-title",children:e.title}),(0,s.jsx)(e2,{component:e,translations:r,router:n})]})]}):(0,s.jsxs)("div",{className:"d-flex align-items-center w-100 component",style:{cursor:e.available?"pointer":"default"},children:[!1===e.available&&u(),!0===e.available&&l.customProductSaving&&(0,s.jsx)("div",{className:`${eZ().unavailableOverlay}`}),(0,s.jsx)(e0,{component:e,isSelected:t}),(0,s.jsxs)("div",{className:"d-flex flex-column justify-content-between w-75 single-component",children:[(0,s.jsx)("div",{className:"single-component-title",children:e.title}),(0,s.jsx)("div",{className:"single-component-description",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,eQ.Oj)(e.description)}})}),(0,s.jsx)(e2,{component:e,translations:r,router:n})]}),i&&(0,s.jsx)("div",{className:`${eZ().designerPreferredBadge}`,children:r[`label${o.title[0].toUpperCase()}${o.title.substring(1)}`]||r.configuratorPreferredComponentLabel})]})},e5=({component:e,isSelected:t,handleOnClick:i,isSuggested:n,translations:a,customizerStepData:l,router:c,name:d,applicationCtx:u})=>(0,r.createElement)(o.A,{...eX.includes(d)?{sm:6,xs:6,md:3,lg:3,xl:3}:{md:12,lg:6,xl:6},key:e.id,className:`${t?"active ":""} d-flex justify-content-between main-component-block ${d} cursor`,onClick:i},(0,s.jsx)(e3,{component:e,isSelected:t,isSuggested:n,translations:a,customizerStepData:l,router:c,name:d,applicationCtx:u})),e8=({component:e,customizerStepData:t,selectComponent:i,applicationCtx:r,name:o,translations:n,router:a,componentTitle:l,authentificationSession:c})=>{let d=t.selected?.id===e.id,u=e.id===n[`${t.title}SuggestedComponentId`];return(0,s.jsx)(e5,{component:e,isSelected:d,handleOnClick:()=>e.available&&i(r,a,t,e,l,c),isSuggested:u,translations:n,customizerStepData:t,router:a,name:o,applicationCtx:r})},e4=function({selectComponent:e,componentTitle:t,name:i,translations:m,authentificationSession:p}){var h;let g=(0,r.useContext)(a.A),x=(0,d.useRouter)(),{width:f}=(0,eY.A)(),[_,j]=(0,r.useState)(null),P=g.customizerProduct?.productC
244omponents?.find(e=>e.title===t),v=P?.components?.length>4,b=P?.components?.length,C=m.blindsFabricFamilies.reduce((e,t)=>{let i=t.fabricFamilyConnector;return i&&(e[i]={description:t.fabricFamilyDescription,image:t?.fabricFamilyImage?.responsiveImage?.src}),e},{}),z=g?.customizerProduct.productComponents?.find(e=>"windowBlinds"===e.title),y=(h=z?.components,void 0===h?[]:h.reduce((e,t)=>{let{fabric_family:i}=t.additionalAttributes;return i&&C[i]&&(e[i]||(e[i]={datoData:C[i],backendData:[]}),e[i].backendData.push(t)),e},{}));return(0,s.jsx)(n.A,{className:`attribute-row justify-content-center ${v?"scroll-bar":""}`,style:f<=1025?{height:"auto"}:{},children:(0,s.jsxs)(s.Fragment,{children:["windowBlinds"!==t&&"subCategoryView"!==i&&"categoryView"!==i&&b&&P?.components.map(r=>(0,s.jsx)(e8,{component:r,customizerStepData:P,selectComponent:e,name:i,translations:m,router:x,applicationCtx:g,componentTitle:t,authentificationSession:p},r.id)),"windowBlinds"===t&&null===_?(0,s.jsx)(s.Fragment,{children:Object.entries(y).map(([n,a])=>{let l=[],c=[];y[n].backendData.forEach(e=>{l.push(e?.unavailabilityReasons[0]||""),c.push(e?.available||!1)});let d=c.every(e=>!e);return(0,s.jsxs)(r.Fragment,{children:["none"===n&&a.backendData.map(r=>(0,s.jsx)(e8,{component:r,customizerStepData:P,selectComponent:e,name:i,translations:m,router:x,applicationCtx:g,componentTitle:t},r.id)),"none"!==n&&(0,r.createElement)(o.A,{md:12,lg:6,xl:6,key:n,className:`${n===P.selected?.fabricFamily?"active":""} d-flex position-relative justify-content-between main-component-block ${i} cursor`,onClick:d?void 0:()=>{j(n)}},(0,s.jsxs)("div",{className:"d-flex align-items-center w-100 component",style:{cursor:d?"not-allowed":"pointer"},children:[d&&(0,s.jsxs)("div",{className:`${eZ().unavailableOverlay}`,children:[(0,s.jsx)("span",{children:m.incompatibilityOverlayText}),(0,s.jsx)(eK.A,{componentChoice:!0,data:l[0]})]}),(0,s.jsx)(e1,{component:a,selectedFabric:_}),(0,s.jsxs)("div",{className:"d-flex flex-column justify-content-between w-75 single-component",children:[(0,s.jsx)("div",{className:"single-component-title",children:n}),(0,s.jsx)("div",{className:"single-component-description",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,eQ.Oj)(a.backendData[0]?.datoData?.description)}})})]})]}))]},n)})}):(0,s.jsx)(s.Fragment,{children:_&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsxs)(l.A,{className:"btn-light d-flex justify-content-center align-items-center",onClick:()=>j(null),children:[(0,s.jsx)(c.A,{style:{transform:"rotate(180deg)"},src:"/images/buttonarrow.svg",fluid:!0,alt:"",className:"me-2"}),(0,s.jsx)("span",{children:(0,u.t)("chooseFabric",m)})]})}),y[_].backendData.map(r=>(0,s.jsx)(e8,{component:r,customizerStepData:P,selectComponent:e,name:i,translations:m,router:x,applicationCtx:g,componentTitle:t},r.id))]})})]})})},e6=function({productsMatrix:e,translations:t,region:i,categorySlug:m,subCategorySlug:p,tooltips:h,category:g,componentTitle:x,lastAccordion:f,measurementState:_,setMeasurementState:j,errors:P,setErrors:v,setDimensionProductDM:b,dimensionProductDM:C,displayComponents:z,authentificationSession:y,addProductToBasket:w,addProductToOffer:N}){let T=(0,r.useContext)(a.A),M=T.customizerStepData,[H,L]=(0,r.useState)(!1),[$,q]=(0,r.useState)(!1),E=(0,d.useRouter)(),[F,O]=(0,r.useState)(!1);async function B(e=!0,t=!1){if(T.customProductSaving)return;let i={event:"select_item",productType:T?.customizerStepData?.title=="dimensions"?{productType:T?.customizerStepData?.title,product:T?.customizerStepData?.selected?.title,dimension:{width:T?.customizerProduct?.width,height:T?.customizerProduct?.height}}:{productType:T?.customizerStepData?.title,product:T?.customizerStepData?.selected?.title}};window?.dataLayer?.push(i);let s=J(T,x);var r=T.customizerStepMap.find(e=>e.title===x),o=T.customizerStepMap.indexOf(r),n=T.customizerStepMap.find(e=>{if(T.customizerStepMap.indexOf(e)<=o)return!1;let t=T.customizerProduct.productComponents.find(t=>t.title===e.title);return!!t&&(!!(["packers","hinges","thresholds"].includes(t.title)&&t.components?.length>=1||t.components?.length>1)||void 0)});if(null==n&&(n=T.customizerStepMap.find(e=>"finalProductView"===e.title)),null!==s&&"dimensions"!==s.title&&"panes"!==s.title)try{var a=T.customizerProduct.productC
244omponents.find(e=>e.title===n.title);if("finalProductView"===n.title){let e=parseInt(T.configuratorProductsCount)||1,t={item_id:T.customizerProduct.product.id,item_code:T.customizerProduct.product.code,item_name:`${T.customizerProduct.subCategory.title} - ${T.customizerProduct.product.title}`,item_category:T.customizerProduct.subCategory.category.title,price:T.customizerProduct.price,quantity:e,material:T.customizerProduct.material?.title,glass:T.customizerProduct.glass?.title,glazing:T.customizerProduct.glazing?.title,handle:T.customizerProduct.handle?.title,openingDirection:T.customizerProduct.openingDirection.title,innerColor:T.customizerProduct.innerColor?.title,outerColor:T.customizerProduct.outerColor?.title};window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:(0,I.OY)((0,eJ.Kj)(E.locale)),value:T.customizerProduct.price*e,items:[t]}});var l=T.customizerProduct.cartCustomProductId;if(null==l&&(l=T.customizerCartCustomProductId),null!==l){L(!0),T.setLoadingCustomizer(!0);try{let{data:e,error:t}=await (0,D.ls)(E).mutate({mutation:A,variables:{input:{attributes:{status:"ready",quantity:parseInt(T.configuratorProductsCount)},cartCustomProductId:l,offerId:T?.b2bChosenOffer?.offerId}}}),i=e?.updateCartProductLine?.cart,s=i?.cartCustomProducts;(0,I.Uu)(s,T),T.setLoadingCustomizer(!1)}catch(e){T.setLoadingCustomizer(!1)}}else L(!0);q(!0)}else T.setHighestCustomizerStepIndex(4),T.setCustomizerCurrentStepData(a,T.customizerProduct.productComponents.indexOf(a)),T.setCustomizerCurrentStepData(a,T.customizerProduct.productComponents.indexOf(a))}catch(e){}else if(s?.title==="dimensions"){T.setLoadingCustomizer(!0),T.setCustomProductSaving(!0);try{let i={};if(!t){let{data:e,error:t}=await (0,D.ls)(E,y?.myServerAccessToken).mutate({mutation:et.k,variables:{input:{attributes:{width:parseFloat(s.width),height:parseFloat(s.height)},id:T.customizerProduct.id}}});i.productComponents=[];let r=e.updateCustomProduct;T.customizerStepMap.forEach(e=>{r.customProduct[e.title]?i.productComponents.push({components:r.customProduct[e.title],title:e.title,selected:null}):r.customProduct.configurableComponentTypes.find(t=>t===e.remote)?i.productComponents.push({components:[],title:e.title,selected:null}
244):["innerColors","outerColors"].includes(e.title)&&i.productComponents.push({components:[],title:e.title,selected:null})}),Object.keys(r.customProduct).forEach(function(e){"object"!=typeof r.customProduct[e]||null===r.customProduct[e]||"images"===e?i[e]=r.customProduct[e]:"object"!=typeof r.customProduct[e]||r.customProduct[e][0]||0===r.customProduct[e].length||(i[e]={...r.customProduct[e]})}),G(i),T.setCustomizerProduct(i)}if(e||t){let e=T.customizerProduct.productComponents.find(e=>e.title===n.title);T.setCustomizerCurrentStepData(e,T.customizerProduct.productComponents.indexOf(e))}T.setLoadingCustomizer(!1),T.setCustomProductSaving(!1)}catch(e){T.setLoadingCustomizer(!1),T.setCustomProductSaving(!1)}}else T.setCustomizerCurrentStep(T.customizerStep+1)}(0,r.useEffect)(()=>()=>{T.setDefaultVisitedSteps()},[]);let W=h?.filter(e=>e.step===x)[0]||null,R=(0,I.id)(x);return(0,s.jsxs)("div",{className:"d-flex flex-column step-data right-block",children:[x&&"dimensions"!==x&&"panes"!==x&&"fagsruders"!==x&&"category"!==x&&"subCategory"!==x&&"finalProductView"!==x?(0,s.jsx)("div",{className:"mobile-rows",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(e4,{componentTitle:x,name:x,step:R,selectComponent:Z,region:i,translations:t,goToNextStep:B,authentificationSession:y}),(0,s.jsxs)("div",{className:"with-price-previewer",children:[(0,s.jsx)(n.A,{className:"mt-2 no-mobile-border border-top pt-2 d-flex justify-content-center",children:(t[`${R}TooltipTitle`]||W)&&(0,s.jsx)(S,{step:R,tooltip:W,title:(0,u.t)(`${R}TooltipTitle`,t,{product:g?.name||g?.title},!0),text:(0,u.t)(`${R}TooltipText`,t,{product:g?.name||g?.title},!0),buttonText:(0,u.t)(`${R}TooltipButton`,t,{},!0),translations:t,image:t[`${R}TooltipImage`]?t[`${R}TooltipImage`]:null,category:g})}),(0,s.jsx)(n.A,{className:"mb-2",children:(0,s.jsx)(o.A,{className:"d-flex justify-content-center",children:(0,s.jsxs)(eU.A,{className:"next-step-btn w-50 mb-2",active:T.customProductSaving,spinner:!0,styles:{overlay:e=>({...e,borderRadius:"32px",background:"rgba(0, 0, 0, 0.25)"})},children:[f.title===x&&(0,s.jsxs)(l.A,{onClick:T?.b2bChosenOffer?N:w,className:"d-flex align-items-center justify-content-center w-100",variant:"primary",disabled:M&&null===M.selected&&0!==M.components.length,children:[T?.b2bChosenOffer?(0,u.t)("addChangesToOffer",t):(0,u.t)("draft"===T.customizerProduct.status?"goToLastStepButtonTitle":"saveChangesButtonLabel",t),(0,s.jsx)(c.A,{src:"/images/cart_white.svg",className:"ms-2",alt:"Cart icon to add product to the cart"})]}),f.title!==x&&(0,s.jsxs)(l.A,{className:"btn-light d-flex justify-content-center align-items-center w-100",onClick:()=>B(),disabled:M&&null===M.selected&&0!==M.components.length,children:[(0,s.jsx)("span",{className:"me-2",children:(0,u.t)("nextStepButton",t)}),(0,s.jsx)(c.A,{src:"/images/buttonarrow.svg",fluid:!0,alt:""})]})]})})})]})]})}):"dimensions"===x?(0,s.jsx)(eV,{tooltip:W,goToNextStep:B,translations:t,category:g,step:R,measurementState:_,setMeasurementState:j,isZoomed:F,setIsZoomed:O,handleZoomChange:e=>{O(e)},errors:P,setErrors:v,setDimensionProductDM:b,dimensionProductDM:C,authentificationSession:y,tooltips:h}):"panes"===x||"fagsruders"===x?(0,s.jsx)(k,{tooltip:W,productsMatrix:e,translations:t,categorySlug:m,subCategorySlug:p,category:g}):null,(0,s.jsx)(ee,{tooltip:null,customProductId:T.customizerProduct.id,show:$,handleClose:()=>q(!1),handleExit:()=>E.push("/cart"),translations:t,region:i,displayComponents:z,authentificationSession:y})]})};var e9=i(79495),e7=i(22636),te=i.n(e7),tt=i(39324),ti=i.n(tt),ts=i(45105),tr=i.n(ts),to=i(16210),tn=i(15566),ta=i(99406),tl=i(76617),tc=i(60624),td=i.n(tc);let tu=({region:e,translations:t,className:i=""})=>{let r=(0,d.useRouter)();if(!(0,tl.w4)({region:e}))return null;let o=(0,ta.Lu)(t,r?.locale),n=(0,ta.ic)("installationWidgetTitle",o),a=(0,ta.ic)("installationWidgetText",o),l=(0,ta.ic)("installationWidgetCta",o),u=(0,ta.ic)("installationWidgetNote",o);return n&&a?(0,s.jsxs)("aside",{className:`${td().widget} ${i}`,"aria-label":n,"data-sentry-component":"InstallationWidget","data-sentry-source-file":"installationwidget.jsx",children:[(0,s.jsxs)("div",{className:td().head,children:[(0,s.jsx)(c.A,{src:"/images/installationBriefcase.svg",alt:"",className:td().icon,"data-sentry-element":"Image","data-sentry-source-file":"installationwidget.jsx"}),(0,s.jsxs)("div",{className:td().copy,children:[(0,s.jsx)("span",{className:td().title,children:n}),(0,s.jsx)("span",{className:td().text,children:a})]})]}),l&&(0,s.jsx)("div",{className:td().cta,children:(0,s.jsx)(tn.w,{href:(0,ta.ic)("installationHowItWorksUrl",o),text:l,className:"reusableLightLinkButton",imgSrc:"/images/arrowBlueRight.svg",iconAlt:"",target:"_blank"})}),u&&(0,s.jsx)("span",{className:td().note,children:u})]}):null},tm=function({translations:e,region:t,addProductToBasket:i,mixAndMatchCampaign:o,errors:n,displayComponents:m,setIsNewCustomerModalOpen:p,customerOffers:g,addProductToOffer:x,authentificationSession:f,editPage:_,b2bLiveCartTranslation:j,notChosenCustomerError:P,showErrorAboutOfferChoice:v,setShowErrorAboutOfferChoice:b,measurementState:C,dimensionProductDM:z,installationTranslations:y}){let w=(0,r.useContext)(a.A),{customizerProduct:N}
244=w,[S,k]=(0,r.useState)(!1),[D,T]=(0,r.useState)(!1),A=(0,d.useRouter)(),{publicRuntimeConfig:M}=ti()(),H=w?.configuratorProductsCount*N?.generalPrice==w?.configuratorProductsCount*N?.price;async function L(){b(!0)}return(0,r.useEffect)(()=>{window.Klarna&&window.Klarna.OnsiteMessaging&&window.Klarna.OnsiteMessaging.refresh()},[w.configuratorProductsCount,N.price]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tr(),{async:!0,"data-environment":"production"===M.SITE_ENV?"production":"playground",src:"https://osm.klarnaservices.com/lib.js","data-cookieconsent":"ignore","data-client-id":M.klarnaMerchantIds[(0,eJ.Kj)(A.locale)]}),(0,s.jsxs)("div",{className:"add-to-cart-side-bar",children:[(0,s.jsxs)("div",{className:"delivery-info mb-1",children:[(0,s.jsx)(c.A,{alt:"Truck Icon to illustrate how many week will be the delevery",src:"/images/Truck.svg"})," ",(0,s.jsxs)("span",{children:[(0,u.t)("sidebarDeliveryWeekLabel",e)," ",N.expectedDeliveryWeek.week||"N/A"]})]}),(0,s.jsxs)("div",{className:"main-content d-flex flex-column align-items-center",children:[(0,s.jsxs)("div",{className:"est-price",children:[(0,u.t)("estimatedPriceLabel",e),":"," ",(0,I.vv)(w.configuratorProductsCount*(0,I.lO)(N.price),A.locale)]}),!H&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"general-price",children:[(0,u.t)("estimatedDiscountablePriceLabel",e)," ",w.customProductSaving?"...":(0,I.vv)(w.configuratorProductsCount*N.generalPrice,A.locale)]}),(0,s.jsxs)("div",{className:"you-save",children:[(0,u.t)("youSaveLabel",e)," ",w.customProductSaving?"...":(0,I.vv)(w.configuratorProductsCount*(0,I.lO)(N.generalPrice-N.price),A.locale)]})]}),(0,s.jsxs)("div",{className:"pt-2 my-2 d-flex product-pcs align-items-center",children:[(0,s.jsx)(l.A,{disabled:w.configuratorProductsCount<=1,style:{backgroundColor:"transparent",border:"none",padding:"0",margin:"5px"},onClick:()=>{w.setConfiguratorProductsCount(w.configuratorProductsCount-1)},children:(0,s.jsx)(c.A,{src:"/images/minusblue.svg",alt:"minus"})}),(0,s.jsxs)("span",{className:"pcs-count",children:[w.configuratorProductsCount," ",(0,u.t)("quantityInputLabel",e)]}),(0,s.jsx)(l.A,{style:{backgroundColor:"transparent",border:"none",padding:"0",margin:"5px"},onClick:()=>{w.setConfiguratorProductsCount(w.configuratorProductsCount+1)},children:(0,s.jsx)(c.A,{src:"/images/plusblue.svg",alt:"plus"})})]}),g?.collection&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(to.n,{pendingB2bOffersCollection:g,applicationCtx:w,isDisabled:_||w.customProductSaving,b2bLiveCartTranslation:j,setShowErrorAboutOfferChoice:b}),v&&(0,s.jsx)("div",{className:"mt-3 w-100 text-start",children:(0,s.jsx)("span",{className:"generalErrorStyle ",children:P})}),!_&&(0,s.jsx)(eU.A,{className:"add-to-cart w-100 mt-3",active:w.customProductSaving,spinner:!0,styles:{overlay:e=>({...e,borderRadius:"32px",background:"rgba(0, 0, 0, 0.25)"}),spinner:e=>({...e,width:"35px",height:"35px",margin:"0 auto"})},children:(0,s.jsx)(l.A,{id:"add-new-customer-offers",className:"d-flex align-items-center justify-content-center w-100",variant:"primary",onClick:()=>p(!0),children:(0,u.t)("addNewCustomerModal",e)})})]}),f&&(0,s.jsx)(eU.A,{className:"add-to-cart w-100 mt-3",active:w.customProductSaving,spinner:!0,styles:{overlay:e=>({...e,borderRadius:"32px",background:"rgba(0, 0, 0, 0.25)"}),spinner:e=>({...e,width:"35px",height:"35px",margin:"0 auto"})},children:(0,s.jsxs)(l.A,{onClick:w?.b2bChosenOffer?x:L,id:"add-to-offer",className:"d-flex align-items-center justify-content-center w-100",variant:"primary",disabled:!w.customizerProduct.width||!w.customizerProduct.height||"dm"===C&&(!z?.width||!z?.height)||w.customizerProduct.product.minHeight>w.customizerProduct.height||w.customizerProduct.height>w.customizerProduct.product.maxHeight||w.customizerProduct.product.minWidth>w.customizerProduct.width||w.customizerProduct.width>w.customizerProduct.product.maxWidth||n.width.length>0||n.height.length>0||w.b2bOffersData?.collection?.length===0,children:[(0,u.t)("addChangesToOffer",e),(0,s.jsx)(c.A,{src:"/images/cart_white.svg",className:"ms-2",alt:""})]})}),!f&&(0,s.jsx)(eU.A,{className:"add-to-cart w-100 mt-3",active:w.customProductSaving,spinner:!0,styles:{overlay:e=>({...e,borderRadius:"32px",background:"rgba(0, 0, 0, 0.25)"}),spinner:e=>({...e,width:"35px",height:"35px",margin:"0 auto"})},children:(0,s.jsxs)(l.A,{onClick:i,id:"add-to-basket",className:"d-flex align-items-center justify-content-center w-100",variant:"primary",disabled:!w.customizerProduct.width||!w.customizerProduct.height||"dm"===C&&(!z?.width||!z?.height)||w.customizerProduct.product.minHeight>w.customizerProduct.height||w.customizerProduct.height>w.customizerProduct.product.maxHeight||w.customizerProduct.product.minWidth>w.customizerProduct.width||w.customizerProduct.width>w.customizerProduct.product.maxWidth||n.width.length>0||n.height.length>0,children:[(0,u.t)("draft"===w.customizerProduct.status?"goToLastStepButtonTitle":"saveChangesButtonLabel",e),(0,s.jsx)(c.A,{src:"/images/cart_white.svg",className:"ms-2",alt:""})]})})]}),t?.availablePaymentChannels?.some(e=>"klarna"===e.toLowerCase())&&(0,s.jsx)("div",{children:(0,s.jsx)("klarna-placement",{"data-key":"credit-promotion-badge","data-locale":A.locale,"data-
244purchase-amount":Math.round(w.configuratorProductsCount*(0,I.lO)(N.price)*100)})}),(0,s.jsx)(tu,{region:t,translations:y,className:"mt-3"}),o?.activateCampaign&&(0,s.jsx)("div",{className:`${te().mixAndMatchContainer}`,children:o?.textCampaign}),(0,s.jsx)(h.A,{classes:"specification-modal custom-modal",show:S,handleClose:function(){k(e=>!e)},children:(0,s.jsx)("div",{className:"ws-b fs-14 specification",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:w.customizerProduct.productSpecification}})})}),(0,s.jsx)(ee,{tooltip:null,customProductId:w.customizerProduct.id,show:D,handleClose:()=>T(!1),translations:e,region:t,displayComponents:m,authentificationSession:f})]})]})},tp=()=>(0,s.jsxs)("div",{className:es().header_container_loading_customizer,"data-sentry-component":"SingleItemLoadingCustomizer","data-sentry-source-file":"loadingcustomizer.jsx",children:[(0,s.jsx)("div",{className:es().title_loading_customizer}),(0,s.jsx)("div",{className:es().dimensions_loading_customizer})]}),th=({count:e=7})=>(0,s.jsx)(s.Fragment,{children:Array.from({length:e},(e,t)=>(0,s.jsx)(tp,{},t))}),tg=()=>(0,s.jsxs)(n.A,{className:es().loading_customizer,"data-sentry-element":"Row","data-sentry-component":"LoadingCustomizer","data-sentry-source-file":"loadingcustomizer.jsx",children:[(0,s.jsxs)(o.A,{xs:12,sm:12,md:12,lg:8,xl:8,className:es().main_container_loading_customizer,"data-sentry-element":"Col","data-sentry-source-file":"loadingcustomizer.jsx",children:[(0,s.jsxs)(n.A,{"data-sentry-element":"Row","data-sentry-source-file":"loadingcustomizer.jsx",children:[(0,s.jsx)(o.A,{xs:12,lg:6,"data-sentry-element":"Col","data-sentry-source-file":"loadingcustomizer.jsx",children:(0,s.jsxs)("div",{className:es().container_image_product_loading_customizer,children:[(0,s.jsx)("div",{className:es().main_image_product_loading_customizer}),(0,s.jsx)("div",{className:es().carousel_image_product_loading_customizer})]})}),(0,s.jsx)(o.A,{xs:12,lg:6,"data-sentry-element":"Col","data-sentry-source-file":"loadingcustomizer.jsx",children:(0,s.jsxs)("div",{className:es().container_details_product_loading_customizer,children:[(0,s.jsx)("div",{className:es().title_details_loading_customizer}),(0,s.jsx)("div",{className:es().subtitle_details_loading_customizer}),(0,s.jsx)("div",{className:es().input_details_loading_customizer}),(0,s.jsx)("div",{className:es().input_details_loading_customizer}),(0,s.jsx)("div",{className:es().popup_details_loading_customizer})]})})]}),(0,s.jsx)(th,{"data-sentry-element":"ComponentDrawerLoading","data-sentry-source-file":"loadingcustomizer.jsx"})]}),(0,s.jsxs)(o.A,{lg:4,xl:4,className:es().main_container_loading_price,"data-sentry-element":"Col","data-sentry-source-file":"loadingcustomizer.jsx",children:[(0,s.jsx)("div",{className:es().delivery_loading_price}),(0,s.jsxs)("div",{className:es().container_loading_price,children:[(0,s.jsx)("div",{className:es().price_loading_price}),(0,s.jsx)("div",{className:es().input_loading_price}),(0,s.jsx)("div",{className:es().button_loading_price})]})]})]});var tx=i(71037);let tf=function({productSelector:e,productsMatrix:t,productId:i,editMode:m,customProductId:p,cartCustomProductId:h,category:g,categorySlug:x,subCategorySlug:f,translations:_,dimensionMode:j,region:P,tooltips:v,mixAndMatchCampaign:b,traitSlugs:C,b2bTranslations:z,customerOffers:y,setCustomerOffers:w,authentificationSession:N,b2bUUID:S,setIsEditPageDataInvalid:k,b2bLiveCartTranslation:T,notChosenCustomerError:M,installationTranslations:H}){let L=(0,r.useContext)(a.A),$=(0,d.useRouter)(),q=$.pathname.includes("edit"),{customizerProduct:E,customizerStepData:F,customizerinitialloading:O}=L,{width:B,height:W}=E,[R,J]=(0,r.useState)("cm"),[G,Z]=(0,r.useState)(""),K=L.b2bChosenOffer,[Y,Q]=(0,r.useState)({width:"",height:""}),X=(0,r.useRef)();"dm"===R&&(Y.width,Y.height);let[et,ei]=(0,r.useState)([]),[er,eo]=(0,r.useState)(""),[en,ea]=(0,r.useState)(!1),[el,ec]=(0,r.useState)("dimensions"),[ed,eu]=(0,r.useState)(!1),[em,ep]=(0,r.useState)({width:"",height:""}),eh=!L.customizerProduct.width||!L.customizerProduct.height||L.customizerProduct.product.minHeight>L.customizerProduct.height||L.customizerProduct.height>L.customizerProduct.product.maxHeight||L.customizerProduct.product.minWidth>L.customizerProduct.width||L.customizerProduct.width>L.customizerProduct.product.maxWidth||em.width.length>0||em.height.length>0,[eg,ex]=(0,r.useState)(!1),[ef,e_]=(0,r.useState)(!1),ej=["hinges","thresholds","glasses"],eP=["packers"],ev=["dimensions","category","categoryView","subCategory","subCategoryView","finalProductView"];async function eb(){let e=L.customizerCartCustomProductId;if(null!==e){L.setCustomProductSaving(!0);try{let{data:t}=await (0,D.ls)($,N?.myServerAccessToken).mutate({mutation:A,variables:{input:{attributes:{status:"ready",quantity:parseInt(L.configuratorProductsCount)},cartCustomProductId:e,offerId:L?.b2bChosenOffer?.offerId}}});(0,I.Wn)({selectedOfferData:K,applicationCtx:L,router:$})}catch(e){}finally{L.setCustomizerProduct({...L.customizerProduct,status:"ready"}),L.setCustomProductSaving(!1),eu(!0)}}}async function eC(){var e=L.customizerProduct.cartCustomProductId||L.customizerCartCustomProductId;let t=parseInt(L.configuratorProductsCount)||1,i={item_id:L?.customizerProduct?.product?.id,item_code:L?.customizerProduct?.product?.code,item_name:`${L?.customizerProduct?.subCategory?.title} - ${L?.customizerProduct?.product?.title}`,item_category:L?.customizerProduct?.subCategory?.category?.title,price:L?.customizerProduct?.price,quantity:t,material:L?.customizerProduct?.material?.title,glass:L?.customizerProduct?.glass?.title,glazing:L?.customizerProduct?.glazing?.title,glassSpacer:L?.customizerProduct?.glassSpacer?.title,handle:L?.customizerProduct?.handle?.title,openingDirection:L?.customizerProduct?.openingDirection?.title,innerColor:L?.customizerProduct?.innerColor?.title,outerColor:L?.customizerProduct?.outerColor?.title,width:L?.customizerProduct?.width,height:L?.customizerProduct?.height};if(window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:(0,I.OY)((0,eJ.Kj)($.locale)),value:L.customizerProduct.price*t,items:[i]}}),null!==e){L.setCustomProductSaving(!0);try{let{data:t}=await (0,D.ls)($,N?.myServerAccessToken).mutate({mutation:A,variables:{input:{attributes:{status:"ready",quantity:parseInt(L.configuratorProductsCount)},cartCustomProductId:e}}});
244(0,I.T1)($,L)}catch(e){}finally{L.setCustomizerProduct({...L.customizerProduct,status:"ready"}),L.setCustomProductSaving(!1),eu(!0)}}}return(0,r.useEffect)(()=>{let e=E.productComponents.some(e=>"materials"===e.title&&e.selected?.name==="PVC");ei(E.productComponents.filter(t=>!ev.includes(t.title)&&(!!(ej.includes(t.title)&&t.components.length>0||e&&eP.includes(t.title)&&t.components.length>0)||t.components.length>1)))},[E]),(0,r.useEffect)(()=>()=>localStorage.setItem(I.zY,i),[]),(0,r.useEffect)(()=>((async()=>{let t=localStorage.getItem(I.zY);await U(e,m,L,i,C,$,j,h,p,t,S,k)})(),()=>{L.setDefaultVisitedSteps()}),[p,i]),(0,r.useEffect)(()=>{void 0===X.current&&(X.current=L.customizerProduct?.id),L.customizerProduct?.id&&L.customizerProduct.id!==X.current&&(V(L,$),X.current=L.customizerProduct.id)},[L.customizerProduct?.id]),(0,r.useEffect)(()=>{if(F&&(ec(F.title),document)){if(er!==F.title){let e=document.getElementById(`accordion-${F.title}`);setTimeout(()=>{if(e){let t=e.getBoundingClientRect(),i=window.scrollY+t.top;window.scrollTo({top:i-135,behavior:"smooth"})}},500)}eo(F.title)}},[F]),O?(0,s.jsx)(tg,{}):(0,s.jsxs)("div",{children:[E?.product&&E?.productComponents?.length>0&&(0,s.jsx)("div",{className:"product-customiser-container new-designer",children:(0,s.jsxs)(n.A,{className:"d-flex mobile-customizer",children:[(0,s.jsxs)(o.A,{md:(F&&"fagsruders"!==F.title&&"panes"!==F.title&&F.title,12),lg:F&&"fagsruders"!==F.title&&"panes"!==F.title&&"finalProductView"!==F.title?8:12,xl:F&&"fagsruders"!==F.title&&"panes"!==F.title&&"finalProductView"!==F.title?8:12,children:[(0,s.jsx)("div",{className:"d-none d-xl-block",style:{marginTop:F&&"fagsruders"!==F.title&&"panes"!==F.title&&"finalProductView"!==F.title?"1rem":"0px"}}),(0,s.jsx)("div",{id:"accordion-dimensions",children:(0,s.jsx)(e6,{componentTitle:"dimensions",productsMatrix:t,translations:_,region:P,categorySlug:x,subCategorySlug:f,tooltips:v,category:g,measurementState:R,setMeasurementState:J,errors:em,setErrors:ep,setDimensionProductDM:Q,dimensionProductDM:Y,displayComponents:et,authentificationSession:N})}),0===et.length&&(0,s.jsx)(th,{count:7}),(0,s.jsx)(e9.A,{className:"main-customizer-accordion",activeKey:el,children:et.filter(e=>"packers"!==e.title).map((e,i)=>{let r=et.filter(e=>"packers"!==e.title),o=r[r.length-1];return(0,s.jsxs)(e9.A.Item,{eventKey:e.title,id:`accordion-${e.title}`,children:[(0,s.jsx)(e9.A.Header,{onClick:()=>(function(e){if(L.customProductSaving)return;
244let{productComponents:t}=E,i=t.findIndex(t=>t.title===e);if(L.setCustomizerCurrentStepData(t[i],i),i===L.customizerStep&&el)ec(null);else{ec(e);let t={event:"select_item",productType:L?.customizerStepData?.title=="dimensions"?{productType:L?.customizerStepData?.title,product:L?.customizerStepData?.selected?.title,dimension:{width:L?.customizerProduct?.width,height:L?.customizerProduct?.height}}:{productType:L?.customizerStepData?.title,product:L?.customizerStepData?.selected?.title}};window?.dataLayer?.push(t)}})(e.title),children:(0,s.jsxs)("div",{className:el===e.title?"product-component-header d-flex flex-row justify-content-between active ":"product-component-header d-flex flex-row justify-content-between",children:[(0,s.jsx)("div",{className:"text-break",children:"innerColors"!==e.title?"glazings"===e.title&&L.customizerProduct[e.title.substring(0,e.title.length-1)]?.noGlass?(0,u.t)("glazingsNoGlassSidebarName",_):(0,u.t)(`${(0,I.id)(e.title)}SidebarName`,_):(0,u.t)(et.find(e=>"outerColors"==e.title)?`${(0,I.id)(e.title)}SidebarName`:"generalColorTitle",_)}),(0,s.jsx)("div",{className:"text-end",children:e?.selected?.title})]})}),(0,s.jsx)(e9.A.Body,{children:(0,s.jsx)(e6,{componentTitle:e.title,productsMatrix:t,translations:_,region:P,categorySlug:x,subCategorySlug:f,tooltips:v,category:g,lastAccordion:o,errors:em,setErrors:ep,setDimensionProductDM:Q,dimensionProductDM:Y,displayComponents:et,addProductToBasket:eC,addProductToOffer:eb,authentificationSession:N})})]},i)})}),(0,s.jsx)(tu,{region:P,translations:H,className:"d-lg-none mt-3"})]}),(0,s.jsx)(o.A,{md:4,lg:4,xl:4,className:es().main_container_add_cart,children:(0,s.jsx)("div",{className:"d-none d-sm-none d-md-none d-lg-block d-xl-block",children:(0,s.jsx)(tm,{region:P,installationTranslations:H,translations:_,addProductToBasket:eC,addProductToOffer:eb,mixAndMatchCampaign:b?.mixAndMatchCampaign,errors:em,displayComponents:et,customerOffers:y,setIsNewCustomerModalOpen:ex,handleB2bDropDownChange:(e,t)=>
244{Z(t)},selectedCustomerOffer:G,authentificationSession:N,editPage:q,b2bLiveCartTranslation:T,notChosenCustomerError:M,showErrorAboutOfferChoice:ef,setShowErrorAboutOfferChoice:e_,measurementState:R,dimensionProductDM:Y})})})]})}),F&&"panes"!==F.title&&"finalProductView"!==F.title&&!L.customizerinitialloading&&(0,s.jsx)("div",{className:`${es().offCanvasMain} d-flex w-100 justify-content-center`,children:(0,s.jsxs)("div",{className:`${es().offCanvasComponents} d-flex d-sm-flex d-md-flex d-lg-none d-xl-none align-items-center justify-content-between`,children:[(0,s.jsx)("div",{className:"d-flex",children:(0,s.jsxs)("div",{className:`${es().priceTitle} d-flex flex-column`,children:[(0,s.jsxs)("span",{className:`${es().title}`,children:[(0,u.t)("youSaveLabel",_),":"," ",L.customProductSaving?"...":(0,I.vv)((0,I.lO)(L.customizerProduct.generalPrice-L.customizerProduct.price),$.locale)]}),(0,s.jsxs)("span",{className:`${es().price}`,children:[(0,u.t)("estimatedPriceLabel",_),":"," ",(0,I.vv)((0,I.lO)(L?.customizerProduct?.price),$.locale)]})]})}),(0,s.jsx)("div",{className:"d-flex",children:(0,s.jsx)(eU.A,{active:L.customProductSaving,spinner:!0,styles:{overlay:e=>({...e,borderRadius:"2em",background:"rgba(0, 0, 0, 0.25)"}),spinner:e=>({...e,width:"35px",height:"35px",margin:"0 auto"})},children:(0,s.jsx)(l.A,{onClick:()=>eC(1),className:`${es().mobileAddToCart}`,disabled:eh,children:(0,s.jsx)(c.A,{alt:"toggle-canvas",src:"/images/white-add-to-basket.svg"})})})})]})}),y?.collection&&(0,s.jsx)("div",{className:"mt-3 d-flex w-100 justify-content-center",children:(0,s.jsxs)("div",{className:`${es().offCanvasComponents} flex-sm-column flex-md-column d-lg-none d-xl-none align-items-center justify-content-between`,children:[(0,s.jsx)(to.n,{pendingB2bOffersCollection:y,applicationCtx:L,isDisabled:q||L.customProductSaving,b2bLiveCartTranslation:T}),(0,s.jsx)(l.A,{id:"addNewCustomer",className:"mt-3 d-flex align-items-center justify-content-center w-100",variant:"primary",onClick:()=>ex(!0),children:(0,u.t)("addNewCustomerModal",_)}),(0,s.jsx)(eU.A,{className:"w-100 mt-3",active:L.customProductSaving,spinner:!0,styles:{overlay:e=>({...e,borderRadius:"32px",background:"rgba(0, 0, 0, 0.25)"}),spinner:e=>({...e,width:"35px",height:"35px",margin:"0 auto"})},children:(0,s.jsxs)(l.A,{onClick:eb,id:"addToOffer",className:"d-flex align-items-center justify-content-center w-100",variant:"primary",disabled:eh,children:[(0,u.t)("addChangesToOffer",_),(0,s.jsx)(c.A,{src:"/images/cart_white.svg",className:"ms-2",alt:""})]})})]})}),eg&&(0,s.jsx)(tx.z5,{onClose:()=>ex(!1),authentificationSession:N,datoTranslations:z?.profileOverviewPage,router:$,setCustomerOffers:w,setShowErrorAboutOfferChoice:e_}),(0,s.jsx)(ee,{tooltip:null,customProductId:L.customizerProduct.id,show:ed,handleClose:()=>eu(!1),translations:_,region:P,displayComponents:et,authentificationSession:N})]})}},22636:e=>{e.exports={mixAndMatchContainer:"addtocartsidebar_mixAndMatchContainer__pUZE3"}},23003:e=>{e.exports={fixed_panes_notice:"visualizerLegend_fixed_panes_notice__S8ISN",fixed_panes_notice_desktop:"visualizerLegend_fixed_panes_notice_desktop__x9CtP",fixed_panes_notice_mobile:"visualizerLegend_fixed_panes_notice_mobile__AhR35",legend:"visualizerLegend_legend__0S1at",legend_view_note:"visualizerLegend_legend_view_note__COxHT"}},26918:(e,t,i)=>{"use strict";i.d(t,{A:()=>g});var s=i(37876),r=i(77328),o=i.n(r),n=i(48230),a=i.n(n),l=i(89099),c=i(50893),d=i(76797),u=i(33906),m=i.n(u);function p({href:e,locale:t,children:i,isCurrent:r}){return r||!e?(0,s.jsx)("span",{className:m().current,children:i}):/^https?:\/\//i.test(e||"")?(0,s.jsx)("a",{className:m().link,href:e,children:i}):(0,s.jsx)(a(),{href:e,locale:t,className:m().link,"data-sentry-element":"Link","data-sentry-component":"Crumb","data-sentry-source-file":"topicalBreadcrumbs.jsx",children:i})}function h(){return(0,s.jsx)("span",{"aria-hidden":"true",className:m().separator,"data-sentry-component":"Separator","data-sentry-source-file":"topicalBreadcrumbs.jsx",children:"âº"})}function g({items:e,homeBreadcrumb:t,parent:i,currentTitle:r,withSchema:n=!1}){let a=(0,l.useRouter)(),u=(0,c.Jz)(a.locale),g=e&&e.length?e.filter(e=>e&&e.title):function({homeBreadcrumb:e,parent:t,currentTitle:i}){if(!t?.title||!t?.url)return null;let s=[];return e?.title&&e?.url&&s.push({title:e.title,url:e.url}),s.push({title:t.title,url:t.url}),i&&s.push({title:i,current:!0}),s}
244({homeBreadcrumb:t,parent:i,currentTitle:r});return g&&0!==g.length?(0,s.jsxs)(s.Fragment,{children:[n&&g.length>1&&(0,s.jsx)(o(),{children:(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(function(e,t,i){let s=(0,d.Yo)(t,i.split(/[?#]/)[0]);return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,i)=>{let r;return{"@type":"ListItem",position:i+1,name:e.title,item:e.url?(r=e.url,/^https?:\/\//i.test(r)?r:(0,d.Yo)(t,r.startsWith("/")?r:`/${r}`)):s}})}}(g,a.locale,a.asPath))}},"breadcrumb-jsonld")}),(0,s.jsx)("nav",{"aria-label":"Breadcrumb",className:m().breadcrumbs,children:(0,s.jsx)("ol",{className:m().list,children:g.map((e,t)=>{let i=t===g.length-1,r=!!e.current||i&&!e.url;return(0,s.jsxs)("li",{className:m().item,children:[(0,s.jsx)(p,{href:r?null:e.url,locale:u,isCurrent:r,children:e.title}),!i&&(0,s.jsx)(h,{})]},`${e.title}-${t}`)})})})]}):null}},33906:e=>{e.exports={breadcrumbs:"topicalBreadcrumbs_breadcrumbs__l6icy",list:"topicalBreadcrumbs_list__mnF2J",item:"topicalBreadcrumbs_item__VF0Pn",link:"topicalBreadcrumbs_link__U4ndT",current:"topicalBreadcrumbs_current__ZNGRn",separator:"topicalBreadcrumbs_separator__609Wm"}},34806:(e,t,i)=>{"use strict";i.d(t,{A:()=>h});var s=i(37876),r=i(74078),o=i(58863),n=i(98802),a=i.n(n),l=i(26918),c=i(48230),d=i.n(c),u=i(89099),m=i(50893);function p({href:e,label:t}){let i=(0,u.useRouter)(),r="string"==typeof t?t.trim():"";return e&&r?(0,s.jsx)("p",{className:a().category_link_wrapper,"data-sentry-component":"CategoryLink","data-sentry-source-file":"categoryLink.jsx",children:(0,s.jsx)(d(),{href:e,locale:(0,m.Jz)(i.locale),className:a().category_link,"data-sentry-element":"Link","data-sentry-source-file":"categoryLink.jsx",children:r})}):null}let h=({category:e,subCategory:t,productDetails:i,datoProductResponse:n,datoCategory:c,productPageTitle:d,homeBreadcrumb:u,categoryLink:m})=>{if(!t||!i)return null;let h=e?.slug||t?.category?.slug,g=e?.title||t?.category?.title||t?.category?.name||c?.title,x=t?.title,f=i?.title||d,_=[];return u?.title&&u?.url&&_.push({title:u.title,url:u.url}),g&&h&&_.push({title:g,url:`/${h}`}),x&&h&&t?.slug&&_.push({title:x,url:`/${h}/${t.slug}`}),f&&_.push({title:f,current:!0}),(0,s.jsxs)("div",{className:a().title_container_product_page,"data-sentry-component":"HeaderProduct","data-sentry-source-file":"headerproduct.jsx",children:[(0,s.jsxs)(r.A,{md:8,lg:8,xl:8,"data-sentry-element":"Col","data-sentry-source-file":"headerproduct.jsx",children:[_.length>1&&(0,s.jsx)(l.A,{items:_}),d&&(0,s.jsx)("h1",{className:a().main_customizer_product_title,children:d}),n?.productDescription&&(0,s.jsx)(o.A,{className:a().main_customizer_product_description,children:n.productDescription}),m&&(0,s.jsx)(p,{href:m.href,label:m.label})]}),(0,s.jsx)(r.A,{className:a().main_customizer_container_delivery,md:4,lg:4,xl:4,"data-sentry-element":"Col","data-sentry-source-file":"headerproduct.jsx"})]})}},42765:e=>{e.exports={zoomed:"imagemagnifier_zoomed__YCPdW",img:"imagemagnifier_img__NAtKS"}},48058:e=>{e.exports={customizerHintLarge:"customizerhint_customizerHintLarge__aIN2Q",hintImg:"customizerhint_hintImg__5uYqG",textBlock:"customizerhint_textBlock__2x7tg",rightBlock:"customizerhint_rightBlock__3J91y"}},58306:e=>{e.exports={loading_customizer:"productcustomizer_loading_customizer__uFf7W",main_container_customiser_product_page:"productcustomizer_main_container_customiser_product_page__chajw",container_loading_customizer:"productcustomizer_container_loading_customizer__JOHYc",main_container_measurement_selection:"productcustomizer_main_container_measurement_selection__Oz8q9",container_measurement_button:"productcustomizer_container_measurement_button__wgqwC",container_measurement_button_selected:"productcustomizer_container_measurement_button_selected__u6L80",measurement_cm_details:"productcustomizer_measurement_cm_details__qI33l",main_container_loading_customizer:"productcustomizer_main_container_loading_customizer__TE2Kz",header_container_loading_customizer:"productcustomizer_header_container_loading_customizer__KnAAx",title_loading_customizer:"productcustomizer_title_loading_customizer__UsgCL",dimensions_loading_customizer:"productcustomizer_dimensions_loading_customizer__yel1X",loadingAnimation:"productcustomizer_loadingAnimation__02nst",container_image_product_loading_customizer:"productcustomizer_container_image_product_loading_customizer__tlR8G",main_image_product_loading_customizer:"productcustomizer_main_image_product_loading_customizer__VLVCI",carousel_image_product_loading_customizer:"productcustomizer_carousel_image_product_loading_customizer__JzxBT",container_details_product_loading_customizer:"productcustomizer_container_details_product_loading_customizer__gZJDs",title_details_loading_customizer:"productcustomizer_title_details_loading_customizer__5HfLt",subtitle_details_loading_customizer:"productcustomizer_subtitle_details_loading_customizer__xjPYf",input_details_loading_customizer:"productcustomizer_input_details_loading_customizer__gCwrN",popup_details_loading_customizer:"productcustomizer_popup_details_loading_customizer__0N7Il",main_container_loading_price:"productcustomizer_main_container_loading_price__NekJ1",modal_image_product:"productcustomizer_modal_image_product__M7j78",modal_image_product_actived:"productcustomizer_modal_image_product_actived__249Hj",seoTextContainer:"productcustomizer_seoTextContainer__E4tPt",offCanvasComponents:"productcustomizer_offCanvasComponents__83yb2",mobileAddToCart:"productcustomizer_mobileAddToCart__6ZLG1",priceTitle:"productcustomizer_priceTitle__yh8g0",title:"productcustomizer_title__cJ05b",price:"productcustomizer_price__DtxzO",offCanvasMain:"productcustomizer_offCanvasMain__gxebX",main_container_add_cart:"productcustomizer_main_container_add_cart__to2pT",delivery_loading_price:"productcustomizer_delivery_loading_price__tcM1k",container_loading_price:"productcustomizer_container_loading_price__5TojN",price_loading_price:"productcustomizer_price_loading_price__6wRfw",input_loading_price:"productcustomizer_input_loading_price__egF5X",button_loading_price:"productcustomizer_button_loading_price__f2IJK"}},60624:e=>{e.exports={widget:"installationwidget_widget__3dHy9",head:"installationwidget_head__BHhG_",icon:"installationwidget_icon__VMZ0s",copy:"installationwidget_
244copy__6bU4y",title:"installationwidget_title__IPxhS",text:"installationwidget_text__cty0_",cta:"installationwidget_cta__uopK5",note:"installationwidget_note__nIDQf"}},74434:e=>{e.exports={buttonsWrapper:"finalproductmodal_buttonsWrapper__vXRew",container:"finalproductmodal_container__eL325",image:"finalproductmodal_image__6nBcK",content:"finalproductmodal_content__buQED",title:"finalproductmodal_title__2JINz",description:"finalproductmodal_description__QGp__",toggleContainer:"finalproductmodal_toggleContainer__98iFL",toggle:"finalproductmodal_toggle__WUBq4",switch:"finalproductmodal_switch__gWzcT"}},85418:(e,t,i)=>{"use strict";i.d(t,{Uv:()=>r,VU:()=>n,sD:()=>o});var s=i(79350);let r=(0,s.J1)` 245 mutation ($input: ReclamationsCreateInput!) { 246 createReclamation(input: $input) { 247 reclamation { 248 orderIdentifier 249 id 250 email 251 deliveredAt 252 damagePositions { 253 description 254 id 255 position 256 transportDamage 257 damageCategory 258 isMounted 259 mountedBy 260 } 261 } 262 } 263 } 264`,o=e=>({productSquarenessMeasurements:e?.productSquarenessHeader,distorsion:e?.distorsionHeader,frameParallelVerification:e?.frameParallelHeader}),n=e=>({productSquarenessMeasurements:e?.productSquarenessText,distorsion:e?.distorsionText,frameParallelVerification:e?.frameParallelText})},96709:e=>{e.exports={unavailableOverlay:"configuratorcomponentchoices_unavailableOverlay__Roqw8",designerPreferredBadge:"configuratorcomponentchoices_designerPreferredBadge__6ADV0"}},98802:e=>{e.exports={title_container_product_page:"ProductPage_title_container_product_page__P1kFL",main_customizer_product_title:"ProductPage_main_customizer_product_title__MRTfo",main_customizer_product_description:"ProductPage_main_customizer_product_description__5EVku",category_link_wrapper:"ProductPage_category_link_wrapper__rjAFC",category_link:"ProductPage_category_link__hx1rr",main_customizer_container_delivery:"ProductPage_main_customizer_container_delivery__gSLyE"}}}]);
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.