(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3320],{4384:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/g/p/[...slug]",function(){return l(3102)}])},3377:function(e,t,l){"use strict";l.d(t,{G:function(){return SCProductContainer}});var r=l(2322),n=l(9097),i=l.n(n),a=l(3696),s=l(9949);let SCProductContainer=e=>{let{children:t,className:l,id:n,setsize:o,posinset:c,hasTitle:u,hasPrice:d,styles:m,url:p,...f}=e,{title:h,"aria-label":x}=f;return(0,r.jsx)("article",{...f,id:n,"aria-setsize":-1===c?void 0:o,"aria-posinset":-1===c?void 0:c,"aria-labelledby":u?"".concat(n,"-title"):void 0,"aria-describedby":d?"".concat(n,"-price"):void 0,className:(0,a.tw)("w-full",!p&&l,null==m?void 0:m.article),"aria-label":void 0,children:(0,r.jsx)(s.f,{condition:p,ifTrue:e=>(0,r.jsx)(i(),{href:p,prefetch:!1,className:(0,a.tw)("block pinterest-enabled",l||"relative flex flex-col h-full",null==m?void 0:m.link),title:h,"aria-label":h?void 0:x,children:e}),children:t})})}},1489:function(e,t,l){"use strict";l.d(t,{O:function(){return SCProductImage}});var r=l(2322),n=l(2784),i=l(9097),a=l.n(i);let useDetectTouch=()=>{let[e,t]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{window.matchMedia("(pointer: coarse)").matches||t(!1)},[]),e};var s=l(3696),o=l(9949),c=l(5008);let SCProductImage=e=>{let{images:t,url:l,paddingBottom:i=139.5,alt:u,shadow:d,styles:m,sizes:p="25vw",layout:f="responsive",priority:h,...x}=e,v=useDetectTouch(),{height:g,width:y}=x,b=t.length>=2?t.slice(0,2):t,[w,j]=(0,n.useState)(!1),[A,N]=(0,n.useState)(!1);return(0,r.jsx)(o.f,{condition:l,ifTrue:e=>(0,r.jsx)(a(),{href:l,prefetch:!1,children:e}),children:(0,r.jsx)("div",{className:(0,s.tw)("relative w-full h-0 group",null==m?void 0:m.container),onTouchStartCapture:e=>e.stopPropagation(),onMouseOverCapture:()=>b.length>1&&!v&&!w&&j(!0),style:{paddingBottom:"".concat(i,"%")},children:b.map((e,t)=>{if(!w&&1===t)return null;let l=b[0].height<b[0].width,n=b[0].height===b[0].width,i=e.height/e.width,a=l?b[0].width/b[0].height:b[0].height/b[0].width;return(0,r.jsx)("div",{className:(0,s.tw)("absolute w-full transition-opacity",d&&"shadow-product",(null==m?void 0:m.wrapper)||"transform-center",1===t&&A&&"opacity-0 duration-300 group-hover:opacity-100",1===t&&!A&&"opacity-0",0===t&&2===b.length&&"opacity-100",0===t&&2===b.length&&A&&"group-hover:opacity-0 duration-300"),style:{paddingBottom:(0,s.tw)(1===t&&!n&&"".concat(100*a,"%"))},children:(0,r.jsx)(c.N,{...x,sizes:p,src:e.URL,alt:e.alt||u&&"".concat(u," ").concat(t)||"",className:(0,s.tw)("w-full h-full",1===t&&!n&&"object-cover"),fill:1===t&&!n,height:1!==t||n?g||154*i:void 0,width:1!==t||n?y||154:void 0,priority:0===t&&!!h||void 0,onLoadingComplete:1===t?()=>N(!0):void 0})},e.URL)})})})}},2288:function(e,t,l){"use strict";l.d(t,{y:function(){return SCProductList}});var r=l(2322),n=l(2784),i=l(7981),a=l(1013);let SCProductList=e=>{let{children:t,label:l,loading:s=!1,feed:o=!1,relevant:c=!0,id:u,innerRef:d,...m}=e,p=(0,i.M)("product-list");u=u||p;let f=(0,n.useRef)(null);f=d||f;let handleKeyUp=e=>{var t,l;let r=null===(t=f.current)||void 0===t?void 0:t.querySelectorAll("article"),n=null===(l=document.activeElement)||void 0===l?void 0:l.closest("article");if(!(null==r?void 0:r.length)||!n)return;let i=Array.from(r).findIndex(e=>e===n);switch(e.key){case"PageUp":r[i-1<0?r.length-1:i-1].focus();break;case"PageDown":r[i+1>=r.length?0:i+1].focus();break;case"Home":e.ctrlKey&&r[0].focus();break;case"End":e.ctrlKey&&r[r.length-1].focus()}},h={id:u,role:o?"feed":void 0,"aria-live":o?"polite":void 0,"aria-atomic":o?"false":void 0,"aria-relevant":o?"all":void 0,"aria-busy":o?s:void 0,"aria-label":l||"Product list",onKeyUp:e=>handleKeyUp(e),onKeyDown:e=>["PageUp","PageDown"].includes(e.key)&&e.preventDefault()};return(0,r.jsx)(a.q,{relevant:c,...m,innerRef:f,...h,children:t})}},6236:function(e,t,l){"use strict";l.d(t,{z:function(){return SCProductPrice}});var r=l(2322),n=l(2784),i=l(8867),a=l(3696),s=l(8970),o=l(5100),c=l(231),u=l(6154);let SCProductPrice=e=>{let{price:t,campaignPrice:l,categoryIDs:d,id:m,showOnlyPrice:p,showOnlyLowest:f,styles:h,...x}=e,{formatCurrency:v}=(0,o.a)(),g=(0,c.P)(),{discountCampaign:y}=(0,u.J)(),b=(0,n.useMemo)(()=>(0,i.n)(t,l,d,y),[l,d,y,t]);return(0,r.jsx)("span",{...x,id:(0,a.tw)(m&&"".concat(m,"-price")),className:(null==h?void 0:h.container)||"font-medium text-xs whitespace-nowrap",children:null!==b&&b<t?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ins",{className:(null==h?void 0:h.sale)||"text-urgent",children:p?v(b):(0,s.T)(g["common.price-from"],v(b))}),(0,r.jsx)("del",{className:(0,a.tw)(f?"visually-hidden":(null==h?void 0:h.original)||"text-gray-600 ms-1"),children:v(t)})]}):(0,r.jsx)("span",{className:null==h?void 0:h.price,children:p?v(t):(0,s.T)(g["common.price-from"],v(t))})})}},425:function(e,t,l){"use strict";l.d(t,{d:function(){return SCProductPrices}});var r=l(2322),n=l(2784),i=l(8867),a=l(3696),s=l(8970),o=l(5100),c=l(231),u=l(6154);let SCProductPrices=e=>{let{priceList:t,id:l,showOnlyPrice:d,showOnlyLowest:m,styles:p,...f}=e,{formatCurrency:h}=(0,o.a)(),x=(0,c.P)(),{discountCampaign:v}=(0,u.J)(),g=(0,n.useMemo)(()=>Array.isArray(t)?t.reduce((e,t)=>((null==t?void 0:t.price)&&(e.price+=t.price,e.campaignPrice+=(0,i.n)(t.price,t.campaignPrice,t.categoryIDs,v)||t.price),e),{price:0,campaignPrice:0}):{price:0,campaignPrice:0},[v,t]);return 0===g.price?null:(0,r.jsx)("span",{...f,id:(0,a.tw)(l&&"".concat(l,"-price")),className:(null==p?void 0:p.container)||"font-medium text-xs whitespace-nowrap",children:null!==g.campaignPrice&&g.campaignPrice<g.price?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("ins",{className:(null==p?void 0:p.sale)||"text-urgent",children:d?h(g.campaignPrice):(0,s.T)(x["common.price-from"],h(g.campaignPrice))}),(0,r.jsx)("del",{className:(0,a.tw)(m?"visually-hidden":(null==p?void 0:p.original)||"text-gray-600 ms-1"),children:h(g.price)})]}):(0,r.jsx)("span",{className:null==p?void 0:p.price,children:d?h(g.price):(0,s.T)(x["common.price-from"],h(g.price))})})}},7707:function(e,t,l){"use strict";l.d(t,{r:function(){return SCProductTitle}});var r=l(2322),n=l(9097),i=l.n(n),a=l(3696),s=l(9949);let SCProductTitle=e=>{let{title:t,id:l,url:n,className:o,...c}=e;return(0,r.jsx)(s.f,{condition:n,ifTrue:e=>(0,r.jsx)(i(),{href:n,prefetch:!1,className:(0,a.tw)("truncate",o),children:e}),children:(0,r.jsx)("p",{...c,id:"".concat(l,"-title"),className:(0,a.tw)("truncate",o),children:t})})}},5008:function(e,t,l){"use strict";l.d(t,{N:function(){return SCImageX}});var r=l(2322),n=l(6577),i=l.n(n),a=l(5722);let SCImageX=e=>{let{alt:t,fill:l=!1,...n}=e;return(0,r.jsx)(i(),{loader:a.X,alt:t||"",...n,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAGQAQMAAABs65Z3AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAGUExURfT09P///59qs78AAAAJcEhZcwAADsMAAA7DAcdvqGQAAAA+SURBVHja7cExAQAAAMKg9U9tDQ8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACASzWd0AABmDxSzAAAAABJRU5ErkJggg==",placeholder:"blur",fill:l,style:{maxWidth:"100%"}})}},2371:function(e,t,l){"use strict";l.d(t,{L:function(){return SCPseudoButton}});var r=l(2322),n=l(2784),i=l(3696);let SCPseudoButton=e=>{let{children:t,onClick:l,onKeyDown:a,onKeyUp:s,disabled:o,innerRef:c,...u}=e,{className:d}=u,m=(0,n.useRef)(null);return m=c||m,(0,r.jsx)("div",{ref:m,role:"button","aria-hidden":"true",onKeyDown:e=>{["Enter"," "].includes(e.key)&&e.preventDefault(),null==a||a(e)},onKeyUp:e=>{if(["Enter"," "].includes(e.key)){var t;e.preventDefault(),null===(t=m.current)||void 0===t||t.click()}null==s||s(e)},onClick:e=>l&&l(e),...u,className:(0,i.tw)("cursor-pointer",d,o&&"pointer-events-none"),children:t})}},5417:function(e,t,l){"use strict";l.d(t,{t:function(){return SCScrollIndicator}});var r=l(2322),n=l(2784),i=l(6577),a=l.n(i),s=l(4876),o=l(3696),c=l(2371),u=l(4720);let SCScrollIndicator=e=>{let{onClick:t,className:l,color:i="white",hideWhenClicked:d,localStorageKey:m,...p}=e;"permanent"!==d||m||console.warn('<SCScrollIndicator /> "hideWhenClicked" prop is set to "permanent" but no "localStorageKey" is provided. Component will not be permanently hidden.');let f=(0,n.useRef)(null),[h,x]=(0,n.useState)(!1),[v,g]=(0,n.useState)(h),[y,b]=(0,s._)(f,v),w="white"===i;return((0,n.useEffect)(()=>{x(!localStorage.getItem(m||""))},[m]),(0,n.useEffect)(()=>g(h),[h]),b)?null:(0,r.jsx)(c.L,{innerRef:f,onClick:()=>{d&&g(!1),"permanent"===d&&m&&localStorage.setItem(m,"true"),t()},className:(0,o.tw)("flex flex-center use-animation rounded-full transition-opacity duration-150 bg-blur w-10 h-10 border",l,y?"opacity-100":"opacity-0",w?"bg-white/80 border-black/20 shadow-md":"bg-black/80 border-white/20"),...p,children:(0,r.jsx)("div",{className:"animate levitate-y",children:(0,r.jsx)(a(),{src:u.Z,alt:"Down arrow icon",style:{height:12,width:21.24},"aria-hidden":"true",className:(0,o.tw)(!w&&"invert")})})})}},8988:function(e,t,l){"use strict";l.d(t,{S:function(){return SCStickyContainer}});var r=l(2322),n=l(2784),i=l(2336),a=l(3696);let SCStickyContainer=e=>{let{children:t,offset:l,backgroundColor:s="bg-white",className:o,...c}=e,u=(0,n.useRef)(null),[d,m]=(0,n.useState)(0),[p,f]=(0,n.useState)(0);return(0,n.useEffect)(()=>{let e=u.current,determineHeight=()=>{var t;f(null!==(t=null==e?void 0:e.clientHeight)&&void 0!==t?t:0)};return addEventListener("resize",determineHeight),determineHeight(),()=>removeEventListener("resize",determineHeight)},[u]),(0,n.useEffect)(()=>{var e,t;m(l||(null!==(t=null===(e=(0,i.kx)())||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0))},[l]),(0,r.jsxs)("div",{className:"relative z-0",children:[(0,r.jsx)("div",{ref:u,className:(0,a.tw)("sticky",o),style:{top:"".concat(d,"px"),zIndex:-1,...c.style},...c,children:t}),(0,r.jsx)("div",{className:(0,a.tw)("relative translate-y-0 pointer-events-none transform-gpu",s),style:{height:p,marginBottom:-1*p}})]})}},4767:function(e,t,l){"use strict";l.d(t,{t:function(){return SCTablist}});var r=l(2322),n=l(2784),i=l(3696),a=l(5888),s=l(7081);let SCTablist=e=>{let{children:t,className:l,innerRef:o,__ref__:c,__rootId__:u,__selected__:d,__onChange__:m,__allowDeselect__:p,...f}=e;return(0,r.jsx)("div",{...f,className:(0,i.tw)("flex justify-between items-center",l),ref:o,role:"tablist",children:n.Children.toArray(t).map(e=>(0,a.h)(e)&&"Tab"===(0,s.i)(e)?(0,n.cloneElement)(e,{__ref__:c,__rootId__:u,__onChange__:m,__selected__:d,__allowDeselect__:p}):e)})};SCTablist.displayName="Tablist"},287:function(e,t,l){"use strict";l.d(t,{e:function(){return SCTabpanel}});var r=l(2322),n=l(3696);let SCTabpanel=e=>{let{children:t,id:l,className:i,__rootId__:a,__selected__:s,...o}=e;return(0,r.jsx)("div",{...o,id:"".concat(a,"-").concat(l,"-panel"),"aria-labelledby":"".concat(a,"-").concat(l,"-tab"),hidden:l!==s,className:(0,n.tw)("relative",i),children:t})};SCTabpanel.displayName="Tabpanel"},2657:function(e,t,l){"use strict";l.d(t,{v:function(){return SCTabs}});var r=l(2322),n=l(2784),i=l(7981),a=l(3696),s=l(5888),o=l(7081),c=l(1013);let SCTabs=e=>{let{children:t,className:l,selected:u,onChange:d,label:m,relevant:p=!0,id:f,allowDeselect:h,innerRef:x,...v}=e,g=(0,i.M)("tabs");g=f||g;let y=(0,n.useRef)(null);return y=x||y,(0,r.jsx)(c.q,{relevant:!!p,...v,innerRef:y,id:g,"aria-label":m,className:(0,a.tw)("flex flex-col",l),children:n.Children.toArray(t).map(e=>{if((0,s.h)(e)){if("Tablist"===(0,o.i)(e))return(0,n.cloneElement)(e,{__ref__:y,__rootId__:g,__selected__:u,__onChange__:d,__allowDeselect__:h});if("Tabpanel"===(0,o.i)(e))return(0,n.cloneElement)(e,{__rootId__:g,__selected__:u})}return e})})}},3298:function(e,t,l){"use strict";l.d(t,{o:function(){return getDiscountCampaign}});let getDiscountCampaign=(e,t)=>{if(!t||!e)return null;for(let l of t.discounts){let t=l.categoryIDs.some(t=>e.includes(t));if(t)return l}return null}},8867:function(e,t,l){"use strict";l.d(t,{n:function(){return getDynamicCampaignPrice}});var r=l(3298);let getDynamicCampaignPrice=(e,t,l,n)=>{let i=(0,r.o)(l,n);return i?"percentage"===i.type?Math.round((e-e*i.value/100)*100)/100:void 0:t}},4341:function(e,t,l){"use strict";l.d(t,{m:function(){return useHorizontalScroll}});var r=l(2784);let useHorizontalScroll=e=>{(0,r.useEffect)(()=>{let t=e.current;if(!t)return;let handleWheel=e=>{if(t.offsetWidth>=t.scrollWidth)return;e.preventDefault();let l=e.deltaX,r=e.deltaY;t.scrollLeft+=Math.abs(r)>Math.abs(l)?r:l};return t.addEventListener("wheel",handleWheel,{passive:!1}),()=>t.removeEventListener("wheel",handleWheel)},[e])}},3126:function(e,t,l){"use strict";l.d(t,{l:function(){return useUsingKeyboard}});var r=l(2784);let useUsingKeyboard=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],[t,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e)return;let t=document.querySelector("body");if(!t)return;let setState=()=>l(!!t.dataset.keyboard),r=new MutationObserver(e=>{for(let t of e)if("data-keyboard"===t.attributeName)return setState()});return setState(),r.observe(t,{attributes:!0}),()=>r.disconnect()},[e]),t}},5722:function(e,t,l){"use strict";l.d(t,{X:function(){return imageLoader}});let imageLoader=e=>{var t;let{src:l,width:r,quality:n}=e,i=new URL("https://images.desenio.com/"+l),a=null===(t=l.split(".").pop())||void 0===t?void 0:t.toLowerCase();return"gif"===a||(i.searchParams.set("auto","compress,format"),i.searchParams.set("fit","max"),i.searchParams.set("w",r.toString()),n&&i.searchParams.set("q",n.toString())),i.toString()}},2623:function(e,t,l){"use strict";l.d(t,{$0:function(){return updateCartFromApi},LR:function(){return addManyToCartFromApi},Um:function(){return addToCartFromApi}});var r=l(5181);let addToCartFromApi=async(e,t)=>await (0,r.sg)("/api/cart/add/?locale=".concat(e),t),addManyToCartFromApi=async(e,t)=>await (0,r.sg)("/api/cart/add-many/?locale=".concat(e),t),updateCartFromApi=async(e,t)=>await (0,r.sg)("/api/cart/update/?locale=".concat(e),t)},7977:function(e,t,l){"use strict";l.d(t,{b:function(){return Alert}});var r=l(2322),n=l(1997),i=l(2784),a=l(2516),s=l(422),o=l(4876),c=l(2634),u=l(7981),d=l(3696),m=l(3033),p=l(3870),f=l(231);let SCAlert=e=>{let{isOpen:t,onClose:l,title:n,text:h,slot:x,acceptText:v,rejectText:g,blocking:y,focus:b="reject",styles:w}=e,j=(0,f.P)();(0,s.h)(t);let A=(0,i.useRef)(null),N=(0,i.useRef)(null),S=(0,i.useRef)(null),[C,k]=(0,o._)(S,t);(0,c.N)(t);let P=(0,u.M)("alert");return((0,i.useEffect)(()=>{var e,l;t&&("accept"===b?null===(e=A.current)||void 0===e||e.focus():null===(l=N.current)||void 0===l||l.focus())},[t,b]),k)?(0,r.jsx)(a.Z,{children:(0,r.jsx)(r.Fragment,{})}):(0,r.jsx)(a.Z,{children:(0,r.jsxs)(m.K,{isActive:!0,onMouseDown:e=>e.stopPropagation(),onMouseUp:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onPointerUp:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),children:[(0,r.jsx)(p.O,{"aria-hidden":"true",onClick:()=>!y&&l("reject"),className:(0,d.tw)("use-animation transition-opacity duration-200 z-100",null==w?void 0:w.overlay),style:{opacity:C?".40":"0"}}),(0,r.jsx)("div",{className:"fixed top-0 left-0 flex w-full h-full p-4 pointer-events-none ignore-optimizations flex-center z-max",children:(0,r.jsxs)("section",{ref:S,role:"alertdialog","aria-labelledby":"".concat(P,"-title"),"aria-describedby":"".concat(P,"-text"),className:(0,d.tw)("use-animation pointer-events-auto max-w-md transition-all duration-300 overflow-hidden",null==w?void 0:w.alert),style:{maxHeight:"90vh",transform:C?"translate3d(0, 0, 0)":"translate3d(0, -.5rem, 0)",opacity:C?"1":"0"},children:[(0,r.jsx)("span",{id:"".concat(P,"-title"),className:null==w?void 0:w.title,children:n}),(0,r.jsxs)("div",{className:(0,d.tw)("overflow-y-auto overscroll-contain hide-scrollbar",null==w?void 0:w.content),children:[(0,r.jsx)("p",{id:"".concat(P,"-text"),className:null==w?void 0:w.text,children:h}),x&&(0,r.jsx)("div",{className:null==w?void 0:w.slot,children:x})]}),(0,r.jsxs)("div",{className:null==w?void 0:w.buttons,children:[(0,r.jsx)("button",{ref:N,onClick:()=>l("reject"),className:(0,d.tw)(null==w?void 0:w.button,null==w?void 0:w.reject),children:g||j["common.reject"]}),(0,r.jsx)("button",{ref:A,onClick:()=>l("accept"),className:(0,d.tw)(null==w?void 0:w.button,null==w?void 0:w.accept),children:v||j["common.accept"]})]})]})})]})})},h={alert:"bg-white flex flex-1 flex-col items-center shadow-modal rounded-lg sm:rounded-2xl p-4 sm:p-0",overlay:"bg-black",title:"h3 uppercase pt-2 sm:pt-6 px-4 text-center mb-3",content:"px-4 flex flex-col pb-4 py-1",slot:"mt-3",text:"mb-2 text-center",buttons:"w-full flex flex-col sm:flex-row",accept:"button button-primary rounded-none sm:rounded-be-2xl sm:m-0",reject:"button button-secondary rounded-none sm:rounded-bs-2xl mb-4 sm:m-0"},Alert=e=>{let{styles:t,...l}=e,i=(0,n.T)(h,t);return(0,r.jsx)(SCAlert,{styles:i,...l})}},8775:function(e,t,l){"use strict";l.d(t,{O:function(){return Breadcrumbs}});var r=l(2322),n=l(1997),i=l(2784),a=l(9097),s=l.n(a),o=l(5632),c=l(9511),u=l(3126),d=l(4341),m=l(6940),p=l(7036),f=l(3696),h=l(5100);let SCBreadcrumbs=e=>{let{items:t,count:l=2,innerRef:n,styles:a,...x}=e,{asPath:v}=(0,o.useRouter)(),{breadcrumbs:g,isRTL:y}=(0,h.a)();t=t||g;let{width:b}=(0,c.E)(),w=(0,i.useRef)(null);w=n||w;let j=(0,u.l)();(0,d.m)(w);let A=(0,i.useRef)(null),N=(0,i.useRef)(null),S=(0,i.useRef)(null),[C,k]=(0,i.useState)(!1),[P,T]=(0,i.useState)(!1),[z,B]=(0,i.useState)(),[I,_]=(0,i.useState)(0),R=(0,m.K)(()=>T(!1),null),E=((null==t?void 0:t.length)||0)>l;return((0,i.useEffect)(()=>{var e;if(P&&!C&&k(!0),!E||!w.current||!A.current||!N.current||!S.current)return;(0,p.A)({element:w.current,scrollTo:"left",duration:300,position:0});let t=null===(e=A.current)||void 0===e?void 0:e.getBoundingClientRect()[y?"right":"left"],l=N.current.getBoundingClientRect()[y?"right":"left"],r=S.current.offsetWidth;B(P?void 0:A.current.getBoundingClientRect()[y?"left":"right"]-l),_(P?r*(y?1:-1):t-l)},[E,C,P,v,l,y,b]),t)?(0,r.jsxs)("nav",{id:"breadcrumbs",ref:w,className:(0,f.tw)("flex items-center w-full overflow-x-auto hide-scrollbar mask-x-scroll",null==a?void 0:a.container,1===t.length&&"opacity-0 pointer-events-none"),onMouseOverCapture:()=>R(null),onMouseOutCapture:()=>{E&&R(300)},onBlurCapture:()=>j&&E&&T(!1),onFocusCapture:()=>j&&E&&T(!0),onScroll:()=>{if(!E||!w.current||!S.current)return;let e=w.current.scrollLeft*(y?-1:1),t=null;S.current.style.transform="translate3d(-".concat(e/2,"px, 0px, 0px)"),e<=0&&(t=1),e>=32&&(t=0),null===t&&(t=1-1*e/32),S.current.style.filter="opacity(".concat(t,")")},"aria-label":"Breadcrumb",...x,children:[E&&(0,r.jsxs)("div",{ref:S,className:(0,f.tw)("sticky start-0 z-10 flex items-center transition-opacity duration-150 shrink-0",P?"opacity-0 pointer-events-none":"opacity-100 delay-150"),children:[(0,r.jsx)("div",{role:"presentation",className:(0,f.tw)("flex flex-center",null==a?void 0:a.ellipsis),onMouseEnter:()=>{E&&(T(!0),R(null))},onClick:()=>E&&T(!0),children:[void 0,void 0,void 0].map((e,t)=>(0,r.jsx)("div",{className:(0,f.tw)("rounded-full",null==a?void 0:a.dot),style:{height:6,width:6,opacity:"calc(0.5 - ".concat(t," * 0.1)")}},t))}),(0,r.jsx)(Separator,{})]}),(0,r.jsx)("ol",{ref:A,className:(0,f.tw)("flex flex-nowrap",null==a?void 0:a.list,C&&"transition-transform duration-300"),style:{transform:(0,f.tw)(E&&"translate3d(".concat(I,"px, 0px, 0px)")),width:z},children:null==t?void 0:t.map((e,n)=>{let i=n===t.length-1,o=n===t.length-l,c=n>=t.length-l;return(0,r.jsxs)("li",{ref:E&&o?N:void 0,className:(0,f.tw)("flex flex-nowrap mx-1 transition-opacity group duration-300","ltr:first:-ml-3 rtl:first:-mr-3",c||P?"opacity-100":"opacity-0 pointer-events-none"),children:[(0,r.jsx)(s(),{href:"/".concat(e.URL),passHref:!0,prefetch:!1,className:(0,f.tw)("flex items-center me-2 group-last:me-0 whitespace-nowrap hover:underline truncate",i&&"font-medium pe-3",null==a?void 0:a.item),"aria-current":i?"page":void 0,tabIndex:1===t.length?-1:0,onClick:e=>{var t,l;(null===(t=A.current)||void 0===t?void 0:t.getAnimations)!==void 0&&(null===(l=A.current)||void 0===l?void 0:l.getAnimations().length)>0&&e.preventDefault()},style:{maxWidth:"15rem"},children:e.title}),!i&&(0,r.jsx)(Separator,{})]},n)})})]}):null},Separator=()=>(0,r.jsx)("div",{role:"separator","aria-orientation":"vertical",className:"relative font-bold -top-px text-md start-px rtl-mirror",children:"▸"}),x={container:"px-4 py-2",ellipsis:"h-5 px-2 bg-black/10 rounded-md me-2",dot:"bg-black me-1 last:me-0",list:"ps-1 ms-2",item:"text-black/80 text-xs"},Breadcrumbs=e=>{let{styles:t,...l}=e,i=(0,n.T)(x,t);return(0,r.jsx)(SCBreadcrumbs,{styles:i,...l})}},9211:function(e,t,l){"use strict";l.d(t,{O:function(){return Tab}});var r=l(2322),n=l(3696);let SCTab=e=>{let{children:t,innerRef:l,htmlFor:i,styles:a,__ref__:s,__rootId__:o,__selected__:c,__onChange__:u,__allowDeselect__:d,...m}=e,p=c===i,handleClick=()=>{if(u){if((null==s?void 0:s.current)&&p&&!d){let e=s.current.querySelector("#".concat(o,"-").concat(i,"-panel"));if(e)return e.focus()}return u(p&&d?null:i)}},handleKeyUp=e=>{var t;let l;switch(e.preventDefault(),e.key){case" ":case"Enter":return handleClick()}if(!u)return;let r=null===(t=e.target.parentNode)||void 0===t?void 0:t.querySelectorAll("button[role=tab]:not([disabled])");if(!r)return;let n=Array.from(r).findIndex(t=>t===e.target);switch(e.key){case"ArrowLeft":l=n-1<0?r[r.length-1]:r[n-1];break;case"ArrowRight":l=n+1>r.length-1?r[0]:r[n+1];break;case"Home":l=r[0];break;case"End":l=r[r.length-1]}l&&(u(l.dataset.identifier),l.focus())};return(0,r.jsx)("button",{...m,ref:l,role:"tab",id:"".concat(o,"-").concat(i,"-tab"),tabIndex:null===c?0:p?0:-1,onClick:handleClick,onKeyUp:e=>handleKeyUp(e),onKeyDown:e=>["ArrowLeft","ArrowRight","Home","End"," ","Enter"].includes(e.key)&&e.preventDefault(),"aria-selected":p,"data-identifier":i,"aria-controls":"".concat(o,"-").concat(i,"-panel"),className:(0,n.tw)("flex-1 truncate",p?(0,n.tw)("cursor-default",null==a?void 0:a.selectedTab,null==a?void 0:a.tab):null==a?void 0:a.tab),children:t||i})};SCTab.displayName="Tab";var i=l(1997);let a={tab:"py-2 border-b-2 uppercase text-black disabled:text-black/50",selectedTab:"border-black"},Tab=e=>{let{styles:t,...l}=e,n=(0,i.T)(a,t);return(0,r.jsx)(SCTab,{styles:n,...l})};Tab.displayName="Tab"},5790:function(e,t,l){"use strict";l.d(t,{y:function(){return GWBulkBuy}});var r=l(2322),n=l(5086),i=l(425),a=l(5564),s=l(231);let GWBulkBuy=e=>{let{buttonText:t,priceList:l,disabled:o,loading:c,onBuy:u,activityIndicatorProps:d,styles:m,isOutOfStock:p=!1,...f}=e,h=(0,s.P)(),x=(0,n.a)("sm");return(0,r.jsxs)("div",{className:(null==m?void 0:m.container)||"flex flex-col flex-center z-10 sticky bottom-0 h-xs:static p-4 md:p-0 md:py-4 bg-white border-t border-gray-200",children:[l.length>0&&(0,r.jsxs)("output",{className:(null==m?void 0:m.wrapper)||"flex items-center w-full justify-between mb-2 font-bold uppercase text-md",children:[(0,r.jsx)("span",{children:h["common.subtotal"]}),(0,r.jsx)(i.d,{priceList:l,showOnlyPrice:!0,showOnlyLowest:!x,id:void 0,styles:(null==m?void 0:m.price)||{price:"text-md",sale:"text-md text-urgent me-2",original:"text-md"}})]}),(0,r.jsx)("div",{className:(null==m?void 0:m.buttonWrapper)||"flex flex-center w-full",children:(0,r.jsx)("button",{...f,className:(null==m?void 0:m.button)||"button button-primary w-full mx-auto flex items-center relative mb-safe",onClick:u,disabled:o,children:c?(0,r.jsx)(a.z,{color:"black",bgColor:"transparent",size:15,...d}):t})})]})}},6484:function(e,t,l){"use strict";l.d(t,{e:function(){return GWSummary}});var r=l(2322),n=l(9949),i=l(231);let GWSummary=e=>{let{children:t,posters:l,frames:a,passepartouts:s,placement:o,styles:c,...u}=e,d=(0,i.P)();return(0,r.jsxs)(n.f,{condition:"beforeProducts"===o,ifTrue:e=>(0,r.jsx)("header",{...u,className:null==c?void 0:c.container,children:e}),ifFalse:e=>(0,r.jsx)("footer",{...u,className:null==c?void 0:c.container,children:e}),children:[(0,r.jsx)("strong",{className:null==c?void 0:c.title,children:d["gw-summary.included"]}),(0,r.jsxs)("ul",{className:null==c?void 0:c.list,children:[!l&&!a&&!s&&(0,r.jsx)("li",{children:d["gw-summary.selection-empty"]}),0!==l&&(0,r.jsxs)("li",{className:null==c?void 0:c.item,children:[d["gw-summary.posters"]," ",l]}),0!==a&&(0,r.jsxs)("li",{className:null==c?void 0:c.item,children:[d["gw-summary.frames"]," ",a]}),0!==s&&(0,r.jsxs)("li",{className:null==c?void 0:c.item,children:[d["gw-summary.passe-partouts"]," ",s]})]}),t]})}},9906:function(e,t,l){"use strict";l.d(t,{H:function(){return MeasurementSwitcher}});var r=l(2322),n=l(7144),i=l(1994),a=l(1997),s=l(2784),o=l(7981),c=l(3696);let SCSwitcher=e=>{let{name:t,label:l,active:n,onChange:i,controls:a,id:u,showSeparators:d=!0,separator:m="|",styles:p}=e,f=(0,o.M)("switcher");u=u||f;let h=(0,s.useRef)(null),onKeyUpHandler=(e,t)=>{var l;let r=null===(l=h.current)||void 0===l?void 0:l.querySelectorAll("#".concat(u," button"));if(r)switch(e.key){case"ArrowLeft":r[t-1<0?r.length-1:t-1].focus();break;case"ArrowRight":r[t+1>=r.length?0:t+1].focus()}};return(0,r.jsx)("div",{ref:h,role:"radiogroup",className:null==p?void 0:p.container,"aria-label":l,children:a.map((e,l)=>{let o=n===l||n===e;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:(0,c.tw)(null==p?void 0:p.button,o&&(null==p?void 0:p.active)),name:t,role:"radio","aria-checked":o,value:e,onClick:()=>i(l,e),onKeyUp:e=>onKeyUpHandler(e,l),children:e}),d&&l<a.length-1&&(0,r.jsx)("span",{role:"separator","aria-orientation":"vertical",className:null==p?void 0:p.separator,children:" ".concat(m," ")})]},l)})})},u={active:"font-bold",separator:"mx-0.5"},Switcher=e=>{let{styles:t,...l}=e,n=(0,a.T)(u,t);return(0,r.jsx)(SCSwitcher,{styles:n,...l})},MeasurementSwitcher=e=>{let{systemCode:t,styles:l,onOpenChange:a}=e,{supportInches:s,measurementSystem:o,setMeasurementSystem:c}=(0,n._c)();return(0,r.jsx)(r.Fragment,{children:["poster","frame","passepartout","posterHanger","bundle","personalPoster","personalPhoto","galleryWall","canvas","any"].includes(t)&&s&&(0,r.jsx)(Switcher,{name:"measurement-system",label:"Measurement system",controls:["Cm","In"],active:o,onChange:(e,t)=>{a&&a(!0),localStorage.setItem(i.Y.measurementSystem,t),c(t)},styles:l})})}},3102:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return ee},default:function(){return Page}});var r=l(2322),n=l(7635),i=l(2784),a=l(6577),s=l.n(a),o=l(5237),c=l.n(o),u=l(7255),d=l(7981),m=l(5086),p=l(2336),f=l(7036),h=l(3696),x=l(5234),v=l(3540),g=l(5564),y=l(8988),b=l(5008),w=l(5417),j=l(1978),A=l(667),N=l(2657),S=l(4767),C=l(287),k=l(9906),P=l(8775),T=l(7977),z=l(2620),B=l(9211),I=l(5632),_=l(9857),R=l(2091),E=l(2232),D=l(8867),O=l(772),U=l(2288),L=l(6484),M=l(7144),H=l(3377),K=l(1489),W=l(7707),G=l(6236),F=l(231);let GWProductCardBundle=e=>{let{page:t,item:l,index:n,frames:a,passepartouts:s,onCustomize:o,shadow:c,styles:m}=e,p=(0,d.M)("gw-product-card"),f=(0,F.P)(),{getSize:v}=(0,M._c)(),{trackItemList:g}=(0,u.GB)(),y=(0,x.Qk)(l,l.defaultCombinationID),b=(0,x.z_)(l.posterImages,null==y?void 0:y.size),w=(0,x.$h)(a,l.defaultFrameID),j=l.isPassepartoutDefault&&(0,x.vw)(s,null==y?void 0:y.size);(0,i.useEffect)(()=>{y&&(0,E.K)(y.id,"click"),w&&(0,E.K)(w.productID,"click"),j&&(0,E.K)(j.productID,"click")},[]);let onTitleClicked=e=>{y&&g({bannerId:t.articleNumber,bannerName:t.title,products:[{articleNumber:y.articleNumber,title:e.title,price:y.campaignPrice?y.campaignPrice:y.price,variant:y.size,categoryIDs:y.categoryIDs}]},"select_item")},A=y&&y.stock<=0,N=w&&w.stock<=0,S=j&&j.stock<=0;return(0,r.jsxs)(r.Fragment,{children:[y&&(0,r.jsx)(H.G,{id:"".concat(p,"-poster"),setsize:void 0,posinset:void 0,hasTitle:!0,hasPrice:!0,className:(null==m?void 0:m.product)||"flex justify-start items-start",style:{gridRow:"1 / ".concat([y,w,j].filter(e=>e).length)},children:(0,r.jsxs)("section",{className:"flex flex-1 min-w-0 me-2 last:me-0",children:[(0,r.jsx)(BundleImage,{image:b,styles:null==m?void 0:m.image,className:(0,h.tw)(A&&"opacity-50 pointer-events-none"),alt:l.title,shadow:c}),(0,r.jsxs)("div",{className:"relative flex flex-col flex-1 min-w-0 ms-4",children:[(0,r.jsxs)("div",{className:(0,h.tw)(A&&"opacity-50 pointer-events-none"),children:[(0,r.jsx)(BundleTitle,{id:"".concat(p,"-poster"),title:l.title,url:l.URL,styles:"font-medium text-sm hover:underline",onTitleClicked:()=>onTitleClicked(l)}),(0,r.jsx)("span",{className:"block truncate",children:v(y.size,y.sizeTitle)}),(0,r.jsx)("div",{children:(0,r.jsx)(BundlePrice,{id:"".concat(p,"-poster"),price:y.price,campaignPrice:y.campaignPrice,categoryIDs:y.categoryIDs,styles:null==m?void 0:m.price})})]}),A&&(0,r.jsx)(BundleOOS,{customizeText:f["common.customize"],customize:!0,onClick:()=>o(n)})]})]})}),w&&(0,r.jsx)(H.G,{id:p,setsize:void 0,posinset:void 0,hasTitle:!0,hasPrice:!0,className:(0,h.tw)((null==m?void 0:m.product)||"flex justify-start items-start sm:ps-2"),children:(0,r.jsxs)("section",{className:"flex flex-1 min-w-0 me-2 last:me-0",children:[(0,r.jsx)(BundleImage,{image:w.image,alt:l.title,className:(0,h.tw)((N||A)&&"opacity-50 pointer-events-none"),styles:null==m?void 0:m.image}),(0,r.jsxs)("div",{className:"relative flex flex-col flex-1 min-w-0 ms-4",children:[(0,r.jsxs)("div",{className:(0,h.tw)((N||A)&&"opacity-50 pointer-events-none"),children:[(0,r.jsx)(BundleTitle,{id:"".concat(p,"-frame"),title:w.shortTitle,styles:"font-medium text-sm"}),(0,r.jsx)("span",{className:"block truncate",children:v(w.size,w.sizeTitle)}),(0,r.jsx)(BundlePrice,{id:"".concat(p,"-frame"),price:w.price,campaignPrice:w.campaignPrice,categoryIDs:w.categoryIDs,styles:null==m?void 0:m.price})]}),N&&(0,r.jsx)(BundleOOS,{customizeText:f["common.customize"],customize:!0,onClick:()=>o(n)})]})]})}),j&&(0,r.jsx)(H.G,{id:p,setsize:void 0,posinset:void 0,hasTitle:!0,hasPrice:!0,className:(0,h.tw)((null==m?void 0:m.product)||"flex justify-start items-start sm:ps-2"),children:(0,r.jsxs)("section",{className:"flex flex-1 min-w-0 me-2 last:me-0",children:[(0,r.jsx)(BundleImage,{image:j.image,alt:l.title,className:(0,h.tw)((S||N||A)&&"opacity-50 pointer-events-none"),styles:null==m?void 0:m.image}),(0,r.jsxs)("div",{className:"relative flex flex-col flex-1 min-w-0 ms-4",children:[(0,r.jsxs)("div",{className:(0,h.tw)((S||N||A)&&"opacity-50 pointer-events-none"),children:[(0,r.jsx)(BundleTitle,{id:"".concat(p,"-passepartout"),title:j.shortTitle,styles:"font-medium text-sm pe-2"}),(0,r.jsx)("span",{className:"block truncate",children:v(j.size,j.sizeTitle)}),(0,r.jsx)(BundlePrice,{id:"".concat(p,"-passepartout"),price:j.price,campaignPrice:j.campaignPrice,categoryIDs:j.categoryIDs,styles:null==m?void 0:m.price})]}),S&&(0,r.jsx)(BundleOOS,{})]})]})})]})},BundleImage=e=>{let{image:t,shadow:l,alt:n,styles:i,className:a}=e;return(0,r.jsx)(r.Fragment,{children:t&&(0,r.jsx)(A.p,{src:t.URL,height:t.height,width:t.width,className:(0,h.tw)("block shrink-0 grow-0",a),style:{width:60},children:(0,r.jsx)(K.O,{images:[t],alt:n,shadow:l,styles:i})})})},BundleTitle=e=>{let{id:t,title:l,url:n,styles:i,onTitleClicked:a}=e;return(0,r.jsx)(W.r,{id:t,title:l,url:(0,h.tw)(n&&"/p/".concat(n)),className:i,onClick:()=>null==a?void 0:a()})},BundlePrice=e=>{let{price:t,campaignPrice:l,categoryIDs:n,id:i,styles:a,className:s}=e;return(0,r.jsx)(G.z,{id:i,price:t,campaignPrice:l,categoryIDs:n,showOnlyPrice:!0,styles:a,className:s})},BundleOOS=e=>{let{customize:t,customizeText:l,onClick:n}=e,i=(0,F.P)();return(0,r.jsxs)("div",{className:"bottom-0 right-0 flex items-center mt-1 text-tiny",children:[(0,r.jsx)("span",{className:"text-urgent line-clamp-2",children:i["common.out-of-stock"]}),t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O.Y,{orientation:"vertical",className:"mx-2 bg-brand-700"}),(0,r.jsx)("button",{className:"underline cursor-pointer",onClick:n,children:l})]})]})};var q=l(5790),Q=l(6255),X=l(6154),Y=l(2623),Z=l(8243);let GWTabBuyAll=e=>{let{page:t,isOutOfStock:l,onCustomizeSpecificItem:n,onBuyAll:a,styles:o}=e,{setToast:c}=(0,Q.e)(),d=(0,F.P)(),{discountCampaign:m}=(0,X.J)(),{locale:p="en"}=(0,I.useRouter)(),{mutate:f}=(0,_.kY)(),[v,g]=(0,i.useState)(!1),{items:y,frames:b,passepartouts:w}=t,A=(0,x.RK)(y),N=(0,x.Ir)(y,b),S=(0,x.M_)(y,w),{trackAddToCart:C}=(0,u.GB)(),handleBuyAll=async()=>{if(l)null==a||a();else{g(!0);let e=[...Array.from(A,e=>{let[t,{id:l}]=e;return l}),...Array.from(N,e=>{let[t,{id:l}]=e;return l}),...Array.from(S,e=>{let[t,{id:l}]=e;return l})],t=await (0,Y.LR)(p,{quantity:1,combinationIDs:e.join(",")});if(t.status!==R.M.OK)return g(!1),c({type:"error",text:t.error});let l=[...Array.from(A,e=>{let[t,{productID:l}]=e;return l}),...Array.from(N,e=>{let[t,{productID:l}]=e;return l}),...Array.from(S,e=>{let[t,{productID:l}]=e;return l})];l.map(e=>(0,E.K)(e,"addToCart"));let r=[];[A,N,S].forEach(e=>{e.forEach(e=>{if(e)return r.push({articleNumber:e.articleNumber,quantity:1,title:e.title,price:(0,D.n)(e.price,e.campaignPrice,e.categoryIDs,m)||e.price,variant:e.sizeTitle})})}),C("AddFromGalleryWallPage",[...r]),await f("/api/cart/?locale=".concat(p)),g(!1),null==a||a()}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(L.e,{placement:"beforeProducts",posters:A.size,frames:N.size,passepartouts:S.size,styles:(null==o?void 0:o.summary)||{container:"bg-gray-100 p-4 flex flex-col justify-start xs:justify-center xs:items-center",list:"flex flex-col xs:flex-row flex-wrap justify-center",item:"xs:me-4 xs:last:me-0"},children:[(S.size>0||l)&&(0,r.jsx)(O.Y,{orientation:"horizontal",className:"max-w-xs mx-auto my-1 bg-brand-500"}),S.size>0&&(0,r.jsx)("small",{className:"text-brand-900 xs:text-center",children:d["gw-summary.footnote"]}),l&&(0,r.jsx)("small",{className:"font-medium xs:text-center xs:mt-1",children:d["gw-summary.out-of-stock"]})]}),(0,r.jsx)(U.y,{label:"All curated products in Gallery Wall",className:(null==o?void 0:o.list)||"mt-4 mb-8 flex flex-col px-4 md:px-0",children:t.items.map((e,l)=>(0,r.jsx)(j.n,{className:(null==o?void 0:o.photoSwipe)||(0,h.tw)("grid grid-cols-1 sm:grid-cols-2 mt-4 first:mt-0 xl:grid-cols-3 gap-2 pb-4 md:px-1",t.items.length-1!==l&&"border-b border-brand-500"),children:(0,r.jsx)(GWProductCardBundle,{page:t,index:l,item:e,frames:t.frames,passepartouts:t.passepartouts,onCustomize:n,shadow:!0})},l))}),(0,r.jsx)(q.y,{priceList:[...Array.from(A.values()),...Array.from(N.values()),...Array.from(S.values())],buttonText:(0,r.jsx)("span",{className:"flex items-center",children:l?(0,r.jsx)("span",{className:"me-2",children:t.phrases.customize}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"me-2",children:d["common.add-all-to"]}),(0,r.jsx)("span",{className:"visually-hidden",children:d["common.cart"]}),(0,r.jsx)(s(),{src:Z.Z,alt:"Bag icon",style:{height:"16px",width:"16px"},className:"invert"})]})}),disabled:v,isOutOfStock:l,loading:v,onBuy:handleBuyAll,styles:null==o?void 0:o.bulkBuy})]})};var J=l(8717),$={src:"/_next/static/media/zoom-in.87e9b017.svg",height:1e3,width:1e3,blurWidth:0,blurHeight:0};let V=c()(()=>Promise.all([l.e(8),l.e(1304)]).then(l.bind(l,1304)).then(e=>e.GWTabCustomize),{loadableGenerated:{webpack:()=>[1304]},loading:function(){return(0,r.jsx)(g.z,{})}}),PageGWProduct=e=>{var t,l;let{page:n}=e,a=(0,F.P)(),{setShoppingMenu:o}=(0,J.l)(),{trackAddToCartGA4:c}=(0,u.GB)(),g=(0,d.M)("product"),I=(0,m.a)("md"),_=(0,i.useRef)(null),R=(0,i.useRef)(null),[E,D]=(0,i.useState)("buyAll"),[O,U]=(0,i.useState)(null),[L,M]=(0,i.useState)(!1),[H,K]=(0,i.useState)(0),[W,G]=(0,i.useState)(!1),[q,Q]=(0,i.useState)(!1),[X,Y]=(0,i.useState)(!0),[Z,ee]=(0,i.useState)(!1);(0,i.useEffect)(()=>{Z||"customize"!==E||ee(!0)},[E,Z]),(0,i.useEffect)(()=>Y(!localStorage.getItem(v.m.customizeAlertMuted)),[]),(0,i.useEffect)(()=>{"buyAll"===E&&W&&X&&Q(!0)},[W,X,E]);let scrollToTablist=()=>{var e,t;if(!_.current)return;let l=_.current.getBoundingClientRect().top,r=window.innerHeight,n=window.scrollY+_.current.getBoundingClientRect().top-(null!==(t=null===(e=(0,p.kx)())||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0);!I&&l/r>.6?(0,f.A)({element:document.documentElement,position:n,scrollTo:"top",duration:750}):l/r<0&&scrollTo({top:n})},renderSEOHeading=()=>(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h1",{id:"".concat(g,"-title"),className:(0,h.tw)("px-4 mt-4 text-center uppercase md:px-0 h2 md:text-start",n.description?"mb-2":"md:mb-0 mb-12"),children:n.title}),n.description&&(0,r.jsx)("div",{id:"".concat(g,"-description"),className:"brand-defaults gw-product-description",dangerouslySetInnerHTML:{__html:n.description}}),(0,r.jsx)(k.H,{systemCode:n.systemCode,styles:{container:(0,h.tw)("h-8 px-2 w-full max-w-[15rem] mb-12 md:mb-0 mx-auto md:max-w-[10rem] md:-mx-1 flex-center bg-brand-300 rounded-full","buyAll"===E?"flex":"md:flex hidden"),button:"flex-1"}})]});(0,i.useEffect)(()=>{var e,t;K(null!==(t=null===(e=(0,p.kx)())||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0)},[]),(0,i.useEffect)(()=>{n.isInStock||M(!0)},[n.isInStock]);let handleCustomizeSpecificItem=e=>{scrollToTablist(),D("customize"),U(e)};"buyAll"===E&&O&&U(null);let handleBuyAll=e=>{if(L&&!e){scrollToTablist(),D("customize");return}o("cart",!0,!0);let t=n.items.map(t=>{let l=t.defaultCombinationID;(null==e?void 0:e.posters)&&t.combinations.map(t=>{e.posters.includes(t.id)&&(l=t.id)});let r=[];if(!(null==e?void 0:e.posters)||e.posters.includes(l)){let i=(0,x.Qk)(t,l);r.push(i),e||r.push((0,x.$h)(n.frames,t.defaultFrameID)),!e&&t.isPassepartoutDefault&&r.push((0,x.vw)(n.passepartouts,null==i?void 0:i.size))}return r.map(e=>e)}).flat().flatMap(e=>e?[e]:[]);(null==e?void 0:e.frames)&&e.frames.map(e=>{let l=(0,x.$h)(n.frames,e);l&&t.push(l)}),(null==e?void 0:e.passepartouts)&&e.passepartouts.map(e=>{let l=(0,x.A6)(n.passepartouts,e);l&&t.push(l)}),c(t,{title:n.title,articleNumber:n.articleNumber,price:n.price})},handleBuySingle=e=>{o("cart",!0,!0),c([e.poster,...e.frame?[e.frame]:[],...e.passepartout?[e.passepartout]:[]],{title:n.title,articleNumber:n.articleNumber,price:n.price})};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.O,{styles:{container:"mx-auto hidden mt-1 md:flex px-4"},style:{maxWidth:1300}}),(0,r.jsxs)(y.S,{className:"md:hidden",offset:H,children:[(0,r.jsx)("div",{className:"relative overflow-hidden",style:{paddingBottom:"".concat(n.image.height/n.image.width*100,"%")},children:(0,r.jsx)(b.N,{src:n.image.URL,alt:n.image.alt||n.title||"",sizes:"80vw",priority:!0,fill:!0,className:"object-cover"})}),(0,r.jsx)(w.t,{onClick:scrollToTablist,className:"absolute left-0 right-0 mx-auto md:hidden bottom-4",color:"white"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-start mx-auto mb-8 md:flex-row md:px-4 md:mb-24",style:{maxWidth:1300},children:[I&&(0,r.jsxs)("div",{className:"w-full max-w-[400px] mt-9 sticky",style:{top:"".concat(H+(null!==(l=null===(t=R.current)||void 0===t?void 0:t.offsetHeight)&&void 0!==l?l:0),"px")},children:[(0,r.jsx)(j.n,{children:(0,r.jsxs)(A.p,{src:n.image.URL,height:n.image.height,width:n.image.width,className:"relative flex justify-center bg-transparent",children:[(0,r.jsx)("div",{className:"relative w-full max-w-none",children:(0,r.jsx)(b.N,{src:n.image.URL,alt:n.image.alt||n.title||"",sizes:"25vw",priority:!0,height:400*(n.image.height/n.image.width),width:400})}),(0,r.jsx)("div",{className:"absolute flex w-8 h-8 rounded-full pointer-events-none bg-white/75 bg-blur flex-center top-3 end-3",children:(0,r.jsx)(s(),{src:$,alt:"Zoom in icon",height:17,width:17,"aria-hidden":"true"})})]})}),renderSEOHeading()]}),(0,r.jsxs)("section",{className:"w-full flex-1 md:min-w-[500px] z-10 translate-y-0 bg-white md:bg-transparent md:ms-8 lg:ms-12","aria-labelledby":"".concat(g,"-title"),"aria-describedby":(0,h.tw)(n.description&&"".concat(g,"-description")),children:[(0,r.jsx)(T.b,{title:a["common.warning"],text:n.phrases["alert-text"],acceptText:n.phrases["alert-confirm"],focus:"accept",styles:{reject:"hidden"},slot:(0,r.jsx)(z.o2,{name:"customize-alert",label:a["common.dont-show"],checked:!X,onChange:e=>Y(!e.target.checked),styles:{infoSlot:"hidden"}}),isOpen:q,onClose:e=>{if(Q(!1),"accept"!==e)return Y(!0);X||localStorage.setItem(v.m.customizeAlertMuted,"true")}}),(0,r.jsxs)(N.v,{innerRef:_,label:"Purchasing mode",selected:E,onChange:e=>{_.current&&(scrollToTablist(),D(e))},children:[(0,r.jsxs)(S.t,{innerRef:R,className:"sticky z-20 flex flex-1 bg-white top-12",children:[(0,r.jsx)(B.O,{htmlFor:"buyAll",children:n.phrases["buy-all"]}),(0,r.jsx)(B.O,{htmlFor:"customize",children:n.phrases.customize})]}),(0,r.jsx)(C.e,{id:"buyAll",className:"relative",style:{minHeight:300},children:(0,r.jsx)(GWTabBuyAll,{page:n,isOutOfStock:L,onBuyAll:()=>handleBuyAll(),onCustomizeSpecificItem:e=>handleCustomizeSpecificItem(e)})}),(0,r.jsx)(C.e,{id:"customize",className:"relative",style:{minHeight:300},children:Z&&(0,r.jsx)(V,{page:n,indexOfItem:O,onChange:e=>G(e),onBuySingle:e=>handleBuySingle(e),onBuyAll:e=>handleBuyAll(e)})})]})]})]}),!I&&renderSEOHeading()]})};var ee=!0;function Page(e){let{payload:t}=e;return(0,r.jsx)(n.A,{hide:{notifications:!0},children:(0,r.jsx)(PageGWProduct,{...t})})}}},function(e){e.O(0,[8281,9614,1613,7635,9774,2888,179],function(){return e(e.s=4384)}),_N_E=e.O()}]);