"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6608],{13856:(e,t,l)=>{l.d(t,{default:()=>a});var i=l(27573),n=l(47379),r=l(37187),o=l(50209);let a=e=>{let{title:t,media:l,index:a,pageData:d,layout:s,itemsPerRow:c=[1,4,1,2,3],showTitle:u=!1,autoPlay:x}=e;return(0,i.jsxs)(n.default,{maxWidth:!1,disableGutters:!0,sx:{px:0},children:[u&&t&&(0,i.jsx)(o.default,{variant:"h5",sx:{fontWeight:"bold",color:"primary.main",p:2},children:t}),(0,i.jsx)("div",{children:(0,i.jsx)(r.default,{media:l,title:t,imageIndex:a,layout:s,pageData:d,aspectRatio:"4/5",itemsPerRow:c,autoPlay:x,priority:0===a})})]})}},49967:(e,t,l)=>{l.d(t,{default:()=>a});var i=l(27573),n=l(47379),r=l(50209),o=l(51161);let a=e=>{let{title:t,subtitle:l,content:a}=e;return(0,i.jsxs)(n.default,{maxWidth:!1,sx:{py:2,justifyContent:"center",alignItems:"flex-start",display:"flex",flexDirection:"column"},disableGutters:!0,children:[l&&(0,i.jsx)(r.default,{variant:"overline",gutterBottom:!0,sx:{color:"primary.main",fontWeight:"bold"},children:l}),t&&(0,i.jsx)(r.default,{variant:"h1",gutterBottom:!0,sx:{color:"primary.main",fontWeight:"bold",wordBreak:"keep-all",hyphens:"auto"},children:t}),(null==a?void 0:a.length)>0&&(0,i.jsx)(r.default,{variant:"body1",component:"div",sx:{color:"primary.main",fontSize:"1.2rem",lineHeight:"2.6rem"},children:(0,i.jsx)(o.Z,{blocks:a})})]})}},55996:(e,t,l)=>{l.d(t,{default:()=>s});var i=l(27573),n=l(7653),r=l(87659),o=l(82295),a=l(79885),d=l(70755);function s(e){let{link:t,text:l,configurator:s,productId:c}=e,[u,x]=(0,n.useState)(!1);return s&&c?(0,i.jsx)(d.default,{open:u,setOpen:x,productId:c,children:(0,i.jsx)(o.default,{sx:{textAlign:"center",minWidth:160,fontWeight:"bold"},color:"primary",variant:"text",endIcon:(0,i.jsx)(a.Z,{}),onClick:()=>x(!0),children:l})}):(0,i.jsxs)(o.default,{sx:{textAlign:"center",minWidth:160,fontWeight:"bold"},color:"primary",variant:"text",endIcon:(0,i.jsx)(a.Z,{}),...!!t&&{LinkComponent:r.default,href:t,target:(null==t?void 0:t.startsWith("http"))?"_blank":"_self"},children:[l," ",s&&"configurador"]})}},45978:(e,t,l)=>{l.d(t,{default:()=>h});var i=l(27573),n=l(7653),r=l(26313),o=l(13179),a=l(23809),d=l(7351),s=l(50209),c=l(80639),u=l(51161),x=l(64101),m=l(87388);let h=e=>{let{questions:t,title:l,description:h}=e,[p,f]=(0,n.useState)(!1),v=e=>(t,l)=>{f(!!l&&e)},j=(0,n.useMemo)(()=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:null==t?void 0:t.map(e=>{let{question:t,answer:l}=e;return{"@type":"Question",name:t,acceptedAnswer:{"@type":"Answer",text:(0,m.io)(l)}}})}),[t]);return(0,i.jsxs)(r.default,{sx:{justifyContent:"center",alignItems:"flex-start",display:"flex",flexDirection:"column",py:2},children:[(0,i.jsx)("script",{type:"application/ld+json",id:"schema-org",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}}),(0,i.jsxs)(x.default,{direction:"column",spacing:1,sx:{pb:1},children:[(0,i.jsx)(s.default,{variant:"h4",gutterBottom:!0,sx:{color:"primary.main",fontWeight:"bold"},children:l}),(0,i.jsx)(s.default,{variant:"body1",sx:{color:"text.secondary"},children:h})]}),null==t?void 0:t.map((e,l)=>{let{question:n,answer:r}=e;return(0,i.jsxs)(o.Z,{expanded:p===l,onChange:v(l),sx:{width:"100%",bgcolor:"background.default",border:"1px solid","&:before":{display:"none"},borderRadius:0===l?"8px 8px 0 0":"0",m:"0px !important",borderBottom:t.length-1===l?"1px solid":"none",borderColor:"divider"},children:[(0,i.jsx)(d.Z,{expandIcon:(0,i.jsx)(c.Z,{color:"primary"}),"aria-controls":"panel1bh-content",id:"panel1bh-header",children:(0,i.jsx)(s.default,{variant:"h6",sx:{color:"text.primary"},children:n})}),(0,i.jsx)(a.Z,{children:(0,i.jsx)(s.default,{component:"div",variant:"body1",sx:{color:"text.secondary"},children:(0,i.jsx)(u.Z,{blocks:r})})})]},l)})]})}},62324:(e,t,l)=>{l.d(t,{default:()=>f});var i=l(27573),n=l(7653),r=l(26313),o=l(64101),a=l(37187),d=l(21066),s=l(50209),c=l(5298),u=l.n(c),x=l(4754),m=l(51161),h=l(11489),p=l(86899);let f=e=>{let{title:t,description:l,content:c,position:f,media:v,index:j}=e,{t:g}=(0,x.Z)(),[b,y]=(0,n.useState)(!1),w=(0,n.useMemo)(()=>({ml:{xs:0,md:"right"===f?0:"auto"},mr:{xs:0,md:"left"===f?0:"auto"},px:{xs:2,md:6}}),[f]);return(0,i.jsx)(h.default,{children:(0,i.jsxs)(o.default,{direction:{xs:"column",md:"left"==f?"row":"row-reverse"},spacing:{xs:2,md:0},sx:{alignItems:"center",width:"100%",minHeight:"50vh",height:"100%",mx:"auto",bgcolor:e=>(0,p.$n)(e.palette.primary.main,.9)},children:[(0,i.jsx)(r.default,{sx:{display:"block",overflow:"hidden",height:"100%",aspectRatio:"4/5",width:{xs:"100%",md:"50%"}},children:(0,i.jsx)(a.default,{media:v,title:t,layout:"slide",imageIndex:j,aspectRatio:"4/5",itemsPerRow:[1],isHalf:!0})}),(0,i.jsxs)(r.default,{sx:[{flex:"1",py:4},...Array.isArray(w)?w:[w]],children:[(0,i.jsx)(s.default,{variant:"h1",sx:{color:"primary.main"},children:t}),(0,i.jsx)(s.default,{variant:"body1",component:"div",sx:{color:"primary.main",width:"100%",fontSize:"1.2rem"},children:(0,i.jsx)(m.Z,{blocks:null!=l?l:[]})}),(0,i.jsx)(r.default,{sx:{width:"100%",mt:3,borderTop:"1px solid",borderColor:"divider",color:"text.secondary"},children:u()(c,(e,t)=>{let{title:l,description:n}=e;return(0,i.jsx)(d.Z,{title:g(l,"capitalize"),description:(0,i.jsx)(m.Z,{blocks:null!=n?n:[]}),Icon:null,id:t,open:b,setOpen:y},t)})})]})]})})}},73715:(e,t,l)=>{l.d(t,{default:()=>p});var i=l(27573),n=l(7653),r=l(64101),o=l(26313),a=l(37187),d=l(50209),s=l(4754),c=l(86854),u=l(79885),x=l(67842),m=l(24617),h=l(64691);function p(e){let{name:t,formFields:l,textButton:p,title:f,subtitle:v,description:j,media:g}=e,{t:b}=(0,s.Z)(),{showSnackbar:y}=(0,c.Z)(),w=(0,n.useCallback)(async e=>{let{formData:l,formId:i}=e,n=Object.entries(l).map(e=>{let[t,l]=e;return"".concat(t,": ").concat(l)}).join("\r");return(0,m.Z)([{createOrReplace:{_type:"form",_id:i,shop:h.kd,name:t||"Formulario",formData:n,createdAt:new Date().toISOString()}}])},[t]),k=(0,n.useCallback)(async()=>{y({message:b("Form:thanks"),severity:"success"})},[b,y]);return(0,i.jsxs)(r.default,{id:"form",direction:{xs:"column",sm:"row"},spacing:{xs:2,sm:4},sx:{width:"100%",minHeight:"50vh",height:"100%",mx:"auto",px:2,py:6},children:[(0,i.jsxs)(o.default,{sx:{display:"block",overflow:"hidden",height:"100%",width:"100%"},children:[v&&(0,i.jsx)(d.default,{variant:"overline",gutterBottom:!0,sx:{color:"primary.main",fontWeight:"bold"},children:v}),f&&(0,i.jsx)(d.default,{variant:"h1",gutterBottom:!0,sx:{color:"primary.main"},children:f}),j&&(0,i.jsx)(d.default,{variant:"body1",sx:{color:"text.primary",width:"100%",fontSize:"1.1rem",lineHeight:"2rem",mb:3},children:j}),(0,i.jsx)(a.default,{media:g,title:f,layout:"slide",imageIndex:1,aspectRatio:"4/5",itemsPerRow:[1],isHalf:!0})]}),(0,i.jsx)(o.default,{sx:{display:"block",overflow:"hidden",height:"100%",width:"100%",maxWidth:"sm",py:1},children:(0,i.jsx)(x.Z,{name:t,formFields:l,textButton:p,onSubmit:w,onComplete:k,EndIcon:(0,i.jsx)(u.Z,{})})})]})}},94537:(e,t,l)=>{l.d(t,{default:()=>g});var i=l(27573),n=l(7653),r=l(64101),o=l(26313),a=l(50209),d=l(10908),s=l(4754),c=l(43419);let u=(0,l(20582).default)(()=>Promise.resolve().then(l.bind(l,70755)),{loadableGenerated:{webpack:()=>[70755]},ssr:!1}),x=e=>{let{productId:t}=e,{t:l}=(0,s.Z)(),[r,o]=(0,n.useState)(!1);return(0,i.jsx)(u,{open:r,setOpen:o,productId:t||null,children:(0,i.jsx)(d.Z,{color:"info",variant:"outlined",startIcon:(0,i.jsx)(c.Z,{}),onClick:()=>o(!r),sx:{py:.5},children:l("ProductActions:configure")})})};var m=l(21066),h=l(21911),p=l(38433),f=l.n(p),v=l(39111),j=l(64691);function g(e){let{products:t=[]}=e,[l,d]=(0,n.useState)(!1),s=(0,n.useMemo)(()=>f()(t,"id").filter(e=>!!(null==e?void 0:e.title)),[t]);return(0,i.jsx)(i.Fragment,{children:null==s?void 0:s.map((e,t)=>{var n,s,c;return(0,i.jsx)(m.Z,{id:null==e?void 0:e.id,title:(0,i.jsxs)(r.default,{direction:"row",spacing:1,component:"div",sx:{alignItems:"center"},children:[(0,i.jsx)(o.default,{sx:{width:64,height:80,position:"relative"},children:(0,i.jsx)(h.default,{src:null==e?void 0:e.media[0],ratio:1.25,alt:null==e?void 0:e.title,sizes:"320px",fill:!0})}),(0,i.jsx)(a.default,{variant:"body1",component:"div",sx:{color:"text.primary"},children:null==e?void 0:e.title})]}),description:(0,i.jsxs)(r.default,{direction:"column",spacing:2,children:[(null==e?void 0:e.title)&&(0,i.jsx)(a.default,{variant:"body1",component:"div",sx:{color:"primary.main",fontWeight:"bold",textTransform:"uppercase"},children:null==e?void 0:e.title}),(null==e?void 0:null===(n=e.subtitle)||void 0===n?void 0:n.length)>2&&(0,i.jsx)(a.default,{variant:"body2",component:"div",sx:{color:"text.secondary"},children:null==e?void 0:e.subtitle}),(0,i.jsx)(x,{productId:null==e?void 0:e.id}),(null==e?void 0:null===(s=e.prices)||void 0===s?void 0:s.length)>0&&j.y0&&(0,i.jsx)(v.Z,{prices:null!==(c=null==e?void 0:e.prices)&&void 0!==c?c:[]})]}),size:"small",setOpen:d,open:l},t)})})}},8701:(e,t,l)=>{l.d(t,{G:()=>s,H:()=>d});var i=l(27573),n=l(7653),r=l(67754),o=l(72159),a=l(33562);let d=(0,n.createContext)({typeToShow:"standard",startModel:!1,modelLoaded:!1,productId:"",isCustomerProduct:!1,isProduct:!1,pageData:{},features:{},itemsPerRow:[],media:[],isMobile:!1,setModelLoaded:e=>{},setTypeToShow:e=>{},setStartModel:e=>{}}),s=e=>{let{children:t,pageData:l,features:s,itemsPerRow:c,media:u}=e,[x,m]=(0,n.useState)("standard"),[h,p]=(0,n.useState)(!1),[f,v]=(0,n.useState)(!1),j=(0,r.useParams)(),g=(0,o.default)(e=>e.breakpoints.down("md")),b=(null==l?void 0:l.productType)===a.s7,y=(null==l?void 0:l.type)==="checkout"&&(null==l?void 0:l.productType)===a.c5,w=null==l?void 0:l.productId;return(0,n.useEffect)(()=>{p(!1),m("standard")},[j.productId]),(0,i.jsx)(d.Provider,{value:{typeToShow:x,startModel:h,modelLoaded:f,productId:w,isCustomerProduct:b,isProduct:y,pageData:l,features:s,itemsPerRow:c,isMobile:g,media:u,setStartModel:p,setTypeToShow:m,setModelLoaded:v},children:t})}},71236:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(7653),n=l(8701);function r(){return(0,i.useContext)(n.H)}},253:(e,t,l)=>{l.d(t,{default:()=>v});var i=l(27573),n=l(8701),r=l(7653),o=l(64691),a=l(71236),d=l(20582),s=l(37187),c=l(81312);let u=(0,d.default)(()=>Promise.all([l.e(25),l.e(9395)]).then(l.bind(l,32351)),{loadableGenerated:{webpack:()=>[32351]}}),x=(0,d.default)(()=>Promise.all([l.e(7761),l.e(230),l.e(6575),l.e(6314),l.e(7411),l.e(4618),l.e(2104)]).then(l.bind(l,2104)),{loadableGenerated:{webpack:()=>[2104]}}),m=(0,d.default)(()=>Promise.all([l.e(7761),l.e(230),l.e(6129)]).then(l.bind(l,86129)),{loadableGenerated:{webpack:()=>[86129]}}),h=(0,d.default)(()=>l.e(9202).then(l.bind(l,69202)),{loadableGenerated:{webpack:()=>[69202]}}),p=()=>o.mD?x:o.Ap?m:o.y0?u:null;function f(){let{pageData:e,itemsPerRow:t,media:l=[],isMobile:n}=(0,a.Z)(),o=(0,r.useMemo)(p,[]),d=(0,r.useMemo)(()=>{var t;return(null==l?void 0:l.some(e=>{let{type:t}=e;return"mediaPage"==t}))?null==e?void 0:null===(t=e.media)||void 0===t?void 0:t.length:null==l?void 0:l.length},[l,e]);return(0,i.jsxs)(c.default,{container:!0,spacing:3,children:[(0,i.jsxs)(c.default,{size:{xs:12,md:8},sx:{maxHeight:d<=1?"100dvh":"auto",position:"relative"},children:[(0,i.jsx)(s.default,{title:null==e?void 0:e.title,imageIndex:0,layout:n?"slide":"grid",media:l,pageData:e,aspectRatio:"4/5",itemsPerRow:t,autoPlay:!1},null==e?void 0:e.id),(0,i.jsx)(h,{})]}),(0,i.jsx)(c.default,{size:{xs:12,md:4},children:(0,i.jsx)(o,{})})]})}function v(e){return(0,i.jsx)(n.G,{...e,id:"configurator",children:(0,i.jsx)(f,{})})}},6299:(e,t,l)=>{l.d(t,{default:()=>A});var i=l(27573),n=l(7653),r=l(64691),o=l(81312),a=l(50209),d=l(45697),s=l(67754),c=l(61209),u=l(26313),x=l(17119),m=l(32799),h=l(46524),p=l(59510),f=l(82295),v=l(99213),j=l(64101),g=l(11937),b=l(27241),y=l(26481),w=l(35266),k=l(7904),Z=l(79965),C=l.n(Z),I=l(4754);let P=["referencia","parametros"],S={es:"Filtros",en:"Filters",fr:"Filtres"},z={es:"Seleccione los filtros para reducir los productos",en:"Select filters to narrow down the products",fr:"S\xe9lectionnez les filtres pour affiner les produits"},R={es:"Restablecer",en:"Reset",fr:"R\xe9initialiser"},F=["width","price","height"];function M(e){let{products:t,setItemsFiltered:l}=e,r=(0,s.useRouter)(),{lang:o}=(0,I.Z)(),{open:d,CloseButton:Z,handleClick:M,handleClose:W}=(0,k.Z)(),A=(0,s.useSearchParams)(),[O,T]=(0,n.useState)({}),[L,D]=(0,n.useState)({}),[E,B]=(0,n.useState)({}),[G,H]=(0,n.useState)({});(0,n.useEffect)(()=>{let e={},l={};t.forEach(t=>{var i;null==t||null===(i=t.filters)||void 0===i||i.forEach(t=>{if(!P.includes(t.name)){if(F.some(e=>t.name.toLowerCase().includes(e))){let e=F.find(e=>t.name.toLowerCase().includes(e));l[e]||(l[e]={min:1/0,max:-1/0}),l[e].min=Math.min(l[e].min,Number(t.value)),l[e].max=Math.max(l[e].max,Number(t.value))}else e[t.name]||(e[t.name]=new Set),Array.isArray(t.value)?t.value.forEach(l=>e[t.name].add(l.toString())):e[t.name].add(t.value.toString())}})}),B(e),H(l);let i={},n={};A.forEach((e,t)=>{if(!P.includes(t)){if(F.some(e=>t.toLowerCase().includes(e))){let[l,i]=e.split(",").map(Number);n[t]={min:l,max:i}}else i[t]=e.split(",")}}),T(i),D(n)},[t,A]),(0,n.useEffect)(()=>{l(t.filter(e=>Object.entries(O).every(t=>{var l;let[i,n]=t,r=null===(l=e.filters)||void 0===l?void 0:l.find(e=>e.name===i);return!!r&&(Array.isArray(r.value)?n.some(e=>r.value.includes(e)):n.includes(r.value.toString()))})&&Object.entries(L).every(t=>{var l,i;let[n,{min:r,max:o}]=t,a=F.find(e=>n.toLowerCase().includes(e)),d=null===(l=e.filters)||void 0===l?void 0:l.find(e=>e.name.toLowerCase()==="min".concat(a)),s=null===(i=e.filters)||void 0===i?void 0:i.find(e=>e.name.toLowerCase()==="max".concat(a));if(!d||!s)return!1;let c=Number(d.value);return Number(s.value)>=r&&c<=o})))},[O,L,t,l]);let _=(0,n.useCallback)((e,t)=>{let l=new URLSearchParams(A.toString()),i=!1;if(Array.isArray(t)&&t.length>0)l.get(e)!==t.join(",")&&(l.set(e,t.join(",")),i=!0);else if(Array.isArray(t)&&0===t.length)l.has(e)&&(l.delete(e),i=!0);else if("string"==typeof t){var n;((null===(n=l.get(e))||void 0===n?void 0:n.split(","))||[]).join(",")!==t&&(l.set(e,t),i=!0)}i&&r.push("?".concat(l.toString()))},[A,r]),U=(0,n.useCallback)((e,t)=>{T(l=>{let i={...l};if(Array.isArray(t))i[e]=t;else{i[e]||(i[e]=[]);let l=i[e].indexOf(t);l>-1?i[e].splice(l,1):i[e].push(t)}return 0===i[e].length&&delete i[e],i}),_(e,t)},[_]),N=(0,n.useCallback)((e,t)=>{D(l=>({...l,[e]:{min:t[0],max:t[1]}})),_(e,t.join(","))},[_]),q=(0,n.useCallback)(()=>{T({}),D({}),r.push(window.location.pathname),W(),l(t)},[r,W,l,t]),V=(0,n.useMemo)(()=>Object.values(O).flat().length+Object.keys(L).length,[O,L]),Y=(0,n.useCallback)(e=>{var t,l;let i=(null===(t=E[e])||void 0===t?void 0:t.size)||0,n=(null===(l=O[e])||void 0===l?void 0:l.length)||0;return"".concat(n,"/").concat(i)},[E,O]);return 0===Object.keys(E).length&&0===Object.keys(G).length?null:(0,i.jsxs)(u.default,{children:[(0,i.jsx)(v.Z,{badgeContent:V,color:"primary",children:(0,i.jsx)(f.default,{variant:"outlined",startIcon:(0,i.jsx)(g.Z,{}),onClick:M,sx:{mb:2},size:"small",children:S[o]})}),(0,i.jsx)(c.ZP,{anchor:"right",open:d,onClose:W,sx:{"& .MuiDrawer-paper":{width:320}},children:(0,i.jsxs)(j.default,{direction:"column",sx:{height:"100%"},children:[(0,i.jsxs)(x.default,{sx:{flexGrow:1,overflowY:"auto"},disablePadding:!0,children:[(0,i.jsxs)(m.default,{children:[(0,i.jsx)(y.default,{primary:S[o],secondary:z[o],primaryTypographyProps:{variant:"h6"}}),(0,i.jsx)(Z,{})]}),Object.entries(G).map(e=>{var t,l,n,r,o,d,s,c;let[u,{min:x,max:h}]=e;return(0,i.jsx)(m.default,{children:(0,i.jsxs)(j.default,{direction:"column",spacing:.25,sx:{width:"100%"},children:[(0,i.jsx)(a.default,{variant:"caption",sx:{textTransform:"capitalize",fontWeight:"bold"},children:C()(u)}),(0,i.jsx)(w.ZP,{value:[null!==(o=null===(t=L[u])||void 0===t?void 0:t.min)&&void 0!==o?o:x,null!==(d=null===(l=L[u])||void 0===l?void 0:l.max)&&void 0!==d?d:h],onChange:(e,t)=>N(u,t),valueLabelDisplay:"auto",min:x,max:h}),(0,i.jsxs)(j.default,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(a.default,{variant:"caption",children:null!==(s=null===(n=L[u])||void 0===n?void 0:n.min)&&void 0!==s?s:x}),(0,i.jsx)(a.default,{variant:"caption",children:null!==(c=null===(r=L[u])||void 0===r?void 0:r.max)&&void 0!==c?c:h})]})]})},u)}),Object.entries(E).map(e=>{let[t,l]=e;return(0,i.jsx)(m.default,{children:(0,i.jsxs)(j.default,{direction:"column",spacing:.25,sx:{width:"100%"},children:[(0,i.jsxs)(j.default,{direction:"row",justifyContent:"space-between",children:[(0,i.jsx)(a.default,{variant:"caption",sx:{textTransform:"capitalize",fontWeight:"bold"},children:C()(t)}),(0,i.jsx)(a.default,{variant:"caption",sx:{color:"text.secondary"},children:Y(t)})]}),(0,i.jsx)(h.Z,{multiple:!0,variant:"outlined",size:"small",fullWidth:!0,value:O[t]||[],onChange:e=>U(t,e.target.value),renderValue:e=>(null==e?void 0:e.length)?e.map(C()).join(", "):"Select options",displayEmpty:!0,placeholder:"Select options",MenuProps:{sx:{"& .MuiBackdrop-root":{backgroundColor:"rgba(0,0,0,0)"},"& .MuiSelect-select.MuiSelect-select":{color:"text.secondary"}}},children:Array.from(l).map(e=>{var l;return(0,i.jsxs)(p.Z,{value:e,children:[(0,i.jsx)(b.Z,{checked:(null===(l=O[t])||void 0===l?void 0:l.includes(e))||!1,size:"small"}),(0,i.jsx)(y.default,{primary:C()(e)})]},e)})})]})},t)})]}),(0,i.jsx)(j.default,{direction:"row",sx:{p:.5,borderTop:1,borderColor:"divider",justifyContent:"flex-end"},children:(0,i.jsx)(f.default,{onClick:q,variant:"text",size:"small",children:R[o]})})]})})]})}var W=l(27333);function A(e){let{items:t=[],title:l,disableLink:s=!1,showButtons:c=!1,Item:u=d.Z,customItemsPerRow:x,redeem:m=!1,multipleItemsPerRow:h=!1}=e,[p,f]=(0,n.useState)([]),v=(0,n.useMemo)(()=>x||{xs:h?6:12,sm:6,md:4,lg:4,xl:3,xxl:3,xxxl:r.mD?3:2},[x,h]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)(j.default,{direction:"row",spacing:2,sx:{justifyContent:"space-between",width:"100%"},children:[l?(0,i.jsx)(a.default,{variant:"h4",component:"div",sx:{color:"primary.main",pb:2},children:l}):(0,i.jsx)("div",{}),(0,i.jsx)(M,{products:t,setItemsFiltered:f})]}),(null==p?void 0:p.length)>0&&(0,i.jsx)(o.default,{container:!0,spacing:2,children:(null!=p?p:[]).map((e,t)=>{let l={...v,xs:e.featured?12:v.xs,sm:e.featured?12:v.sm};return(0,i.jsx)(o.default,{size:l,children:(0,i.jsx)(u,{...e,link:(null==e?void 0:e.fileUrl)?null==e?void 0:e.fileUrl:(null==e?void 0:e.link)||"#",gridItem:l,disableLink:s,showButtons:c,redeem:m})},"".concat(e.id,"-").concat(t))})}),(null==p?void 0:p.length)===0&&(0,i.jsx)(o.default,{container:!0,spacing:2,children:[...Array(12)].map((e,t)=>(0,i.jsx)(o.default,{size:v,children:(0,i.jsx)(W.Z,{variant:"rectangular",sx:{aspectRatio:"4/5",width:"100%",height:"100%"}})},t))})]})}},43105:(e,t,l)=>{l.d(t,{default:()=>f});var i=l(27573),n=l(7653),r=l(43678),o=l(12512),a=l(95717),d=l(72903),s=l(39111),c=l(84224),u=l(64101),x=l(50209),m=l(35861),h=l(417),p=l(64691);function f(e){var t;let{pageData:l,type:f="automatic",products:v}=e,[j,g]=(0,n.useState)(!1),b=()=>g(!1);return p.Ap?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.Z,{variant:"extended",color:"info",sx:{position:"fixed",bottom:25,right:25,color:"common.white",zIndex:1199,textTransform:"none"},onClick:()=>g(!0),"aria-label":"price",children:[(0,i.jsx)(d.Z,{fontSize:"small",sx:{mr:1}}),"Lista de precios"]}),(0,i.jsxs)(o.Z,{open:j,onClose:b,maxWidth:"sm",fullWidth:!0,sx:{"& .MuiDialog-paper":{bgcolor:"background.default"}},children:[(0,i.jsxs)(c.Z,{variant:"h5",fontWeight:"bold",position:"relative",color:"primary.main",children:["Lista de precios",(0,i.jsx)(h.default,{sx:{position:"absolute",right:15,top:"50%",transform:"translateY(-50%)"},onClick:b,children:(0,i.jsx)(m.Z,{})})]}),(0,i.jsxs)(a.Z,{sx:{mt:.5,px:1.5},children:["automatic"===f&&(0,i.jsx)(s.Z,{prices:null!==(t=null==l?void 0:l.prices)&&void 0!==t?t:[]}),"manual"===f&&(null==v?void 0:v.map((e,t)=>{var l;return(0,i.jsxs)(u.default,{direction:"column",spacing:1,sx:{mb:2},children:[(0,i.jsx)(x.default,{variant:"body1",sx:{fontWeight:"bold",px:1,color:"primary.main"},children:null==e?void 0:e.title}),(0,i.jsx)(s.Z,{prices:null!==(l=null==e?void 0:e.prices)&&void 0!==l?l:[]})]},t)}))]})]})]})}},19526:(e,t,l)=>{l.d(t,{default:()=>p});var i=l(27573),n=l(24773),r=l(94744),o=l(7653),a=l(25863),d=l(50209),s=l(417),c=l(17473),u=l(10954),x=l(64101),m=l(45697);l(67708),l(42891),l(2609);var h=l(64691);function p(e){let{items:t=[],title:l,titleVariant:p="h4",disableLink:f=!1,showButtons:v=!1,limit:j=6,disableWishlist:g=!1,Item:b=m.Z}=e,y=(0,o.useRef)(null),w=(0,a.Z)(),k=(0,o.useMemo)(()=>{let e={xs:1,sm:2,md:3,lg:3,xl:4,xxl:4,xxxl:h.mD?4:6}[w];return e<=j?e*(1===e?1.02:1.1):j*(1===j?1.02:1.1)},[w]);return(null==t?void 0:t.length)?(0,i.jsxs)("div",{style:{width:"100%"},children:[(0,i.jsxs)(x.default,{direction:"row",spacing:1,sx:{alignItems:"center",mb:2,justifyContent:"space-between",width:"100%"},children:[!!l&&(0,i.jsx)(d.default,{variant:p,component:"div",sx:{color:"primary.main",mb:3},children:l}),(null==t?void 0:t.length)>k&&(0,i.jsxs)(x.default,{direction:"row",spacing:1,children:[(0,i.jsx)("div",{children:(0,i.jsx)(s.default,{onClick:()=>{var e;return null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.slidePrev()},"aria-label":"prev",component:"div",children:(0,i.jsx)(c.Z,{fontSize:"small"})})}),(0,i.jsx)("div",{children:(0,i.jsx)(s.default,{onClick:()=>{var e;return null==y?void 0:null===(e=y.current)||void 0===e?void 0:e.slideNext()},"aria-label":"next",component:"div",children:(0,i.jsx)(u.Z,{fontSize:"small"})})})]})]}),(0,i.jsx)("div",{style:{width:"100%"},children:(0,i.jsx)(n.tq,{slidesPerView:k,spaceBetween:20,modules:[r.W_,r.Gk],cssMode:!0,mousewheel:!0,keyboard:!0,onBeforeInit:e=>{y.current=e},style:{width:"100%"},children:null==t?void 0:t.map((e,t)=>(0,i.jsx)(n.o5,{children:(0,i.jsx)(b,{...e,link:(null==e?void 0:e.fileUrl)?null==e?void 0:e.fileUrl:(null==e?void 0:e.link)||"#",itemsPerRow:k,disableLink:f,showButtons:v,disableWishlist:g,gridItem:{xs:12,sm:6,md:4,lg:4,xl:3,xxl:3,xxxl:h.mD?3:2}})},"slide-".concat(t)))})})]}):null}},89134:(e,t,l)=>{l.d(t,{default:()=>v});var i=l(27573),n=l(7653),r=l(5298),o=l.n(r),a=l(50209),d=l(26313),s=l(24773),c=l(94744);l(67708),l(76536),l(2609);var u=l(21911),x=l(93480);function m(e){let{image:t,videoUrl:l,type:r,title:o,itemsPerRow:a,format:s="square"}=e,c=(0,n.useMemo)(()=>"(max-width: 1920px) ".concat(Math.floor(100/a),"vw, ").concat(Math.floor(1920/a),"px"),[a]);return(0,i.jsxs)(d.default,{sx:{position:"relative",aspectRatio:{square:"1/1",circular:"1/1",logo:"1/1"}[s],m:"logo"===s?1:0,p:0,overflow:"hidden",borderRadius:{square:2,circular:20,logo:0}[s],..."logo"===s&&{filter:"grayscale(100%)"}},children:["image"==r&&(0,i.jsx)(u.default,{ratio:1,src:t,fill:!0,sizes:c,quality:80,alt:o}),"video"==r&&(0,i.jsx)(x.Z,{mobileUrl:l,desktopUrl:l,autoPlay:!1})]})}function h(e){var t,l,n;let{media:r,itemsPerRow:a,title:u,format:x}=e;return(null==r?void 0:r.length)===0?null:(null==r?void 0:r.length)===1?(0,i.jsx)(m,{image:null==r?void 0:null===(t=r[0])||void 0===t?void 0:t.image,videoUrl:null==r?void 0:null===(l=r[0])||void 0===l?void 0:l.videoUrl,type:null==r?void 0:null===(n=r[0])||void 0===n?void 0:n.type,title:u,itemsPerRow:a,format:x}):(0,i.jsx)(d.default,{sx:{width:"100%",display:"block"},children:(0,i.jsx)(s.tq,{slidesPerView:1,spaceBetween:20,modules:[c.tl,c.Gk],cssMode:!0,pagination:{clickable:!0},children:o()(null!=r?r:[],(e,t)=>{let{image:l,videoUrl:n,type:r}=e;return(0,i.jsx)(s.o5,{children:(0,i.jsx)(m,{image:l,videoUrl:n,type:r,title:u,itemsPerRow:a,format:x})},"media-".concat(t))})})})}function p(e){let{title:t,description:l,media:n=[],itemsPerRow:r,layout:o,format:d="square"}=e;return(0,i.jsxs)("div",{children:[(0,i.jsx)(h,{media:n,itemsPerRow:r,title:t,format:d}),"logo"!==d&&(0,i.jsx)(a.default,{variant:"h6",gutterBottom:!0,align:"left",sx:{textTransform:"capitalize",color:"text.primary",mt:2.5},children:t}),"logo"!==d&&(0,i.jsx)(a.default,{variant:"body1",align:"left",sx:{color:"text.secondary",mb:"grid"===o?3:0,display:"-webkit-box",WebkitLineClamp:"square"===d?10:3,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:"1.5rem"},children:l})]})}var f=l(6299);let v=e=>{let{content:t=[],title:l="",format:r="square"}=e,a=(0,n.useMemo)(()=>o()(t,e=>({...e,format:r})),[t,r]),d=(0,n.useMemo)(()=>"logo"===r?{xs:4,sm:3,md:2,lg:2,xl:2,xxl:1,xxxl:1}:{xs:12,sm:6,md:4,lg:4,xl:3,xxl:3,xxxl:3},[r]);return(0,i.jsx)(f.default,{items:a,title:l,Item:p,customItemsPerRow:d})}},70755:(e,t,l)=>{l.r(t),l.d(t,{default:()=>c});var i=l(27573),n=l(7653),r=l(67754),o=l(12512),a=l(7683),d=l(54570),s=l(33562);function c(e){let{children:t,open:l,productId:c,planner:u=!1,fullScreen:x=!0,setOpen:m,onClose:h=()=>{}}=e,{storeId:p,setOpenCart:f,setOpenWishlist:v}=(0,a.Z)(),j=(0,r.useRouter)(),g=(0,r.useParams)(),{setForceMutate:b,userData:y,userId:w,setOpenLogin:k,getUserData:Z}=(0,d.Z)();(0,n.useEffect)(()=>(b(l?"configurator-opened":null),()=>{b(null)}),[l,b]);let C=(0,n.useCallback)(e=>{let{data:t,origin:l}=e;if((null==t?void 0:t.id)===s.NB&&l===window.location.origin){switch(m(!1),null==t?void 0:t.type){case s.gC:Z({userId:w}),k(!0);break;case s.$L:f(!0);break;case s.dd:v(!0)}(null==t?void 0:t.closeAddItem)&&h(),j.refresh()}},[j,h,m,f,v,Z,k,w]);(0,n.useEffect)(()=>{if(l)return window.addEventListener("message",C),()=>{window.removeEventListener("message",C)}},[C,l]);let I=(0,n.useMemo)(()=>{let e="/";return(null==g?void 0:g.lang)&&(e+="".concat(g.lang,"/")),e+="configurator/".concat(c),e+="?planner=".concat(u?"true":"false"),p&&(e+="&storeId=".concat(p)),w&&(e+="&userId=".concat(w)),(null==y?void 0:y.type)&&(e+="&role=".concat(y.type)),e},[c,p,w,y,u,null==g?void 0:g.lang]);return(0,i.jsxs)(i.Fragment,{children:[t,l&&(0,i.jsx)(o.Z,{open:!0,onClose:()=>m(!l),fullWidth:!0,maxWidth:!1,fullScreen:x,disableEscapeKeyDown:!0,keepMounted:!1,sx:{"& .MuiDialog-paper":x?{}:{height:"100%",width:"100%",m:2,borderRadius:1,overflow:"hidden"}},children:(0,i.jsx)("iframe",{src:I,style:{width:"100%",height:"100%",border:"none"}})})]})}},80088:(e,t,l)=>{l.d(t,{default:()=>a});var i=l(27573),n=l(1786),r=l(81312);function o(e){let{index:t,item:l,rows:o}=e,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,l=0,i=1;for(let n=0;n<e.length;n++)if(t<=(l+=e[n])){i=e[n];break}return i}(o,t+1);return(0,i.jsx)(r.default,{size:12/a,sx:{maxWidth:"100dvh"},children:(0,i.jsx)(n.Z,{title:l.title,imageIndex:l.imageIndex,current:l.current,itemsPerRow:a,aspectRatioImage:l.aspectRatioImage,priority:l.priority})})}function a(e){let{title:t,imageIndex:l,mediaParsed:a,priority:d=!1,pointAction:s=()=>{},itemsPerRow:c=[1],isHalf:u=!1}=e;return 0===a.length?null:1===a.length?(0,i.jsx)(n.Z,{title:t,imageIndex:0,current:a[0],itemsPerRow:u?2:1,aspectRatioImage:a[0].aspectRatioImage,priority:d}):(0,i.jsx)("div",{children:(0,i.jsx)(r.default,{container:!0,width:"100%",height:"100%",spacing:.5,children:a.map((e,n)=>{let{aspectRatioImage:r,...a}=e;return(0,i.jsx)(o,{rows:c,index:n,item:{title:t,imageIndex:l,current:a,itemsPerRow:c,aspectRatioImage:r,priority:d,pointAction:s}},n)})})})}},1786:(e,t,l)=>{l.d(t,{Z:()=>S});var i=l(27573),n=l(26313),r=l(21911);let o=e=>{let{title:t,image:l,sizes:o,aspectRatio:a="1/1",priority:d=!1}=e,s="string"==typeof a&&(null==a?void 0:a.split("/"))||[1,1],c=s[1]/s[0]||1;return(0,i.jsx)(n.default,{sx:{position:"relative",overflow:"hidden",width:"100%",height:"100%",aspectRatio:a},children:(0,i.jsx)(r.default,{ratio:c,src:l,alt:null!=t?t:"alt",fill:!0,sizes:o,style:{objectFit:"contain",objectPosition:"center !important"},priority:d})})};var a=l(82295),d=l(50209),s=l(81312),c=l(87659),u=l(5298),x=l.n(u);let m=e=>{var t;let{current:l,aspectRatio:r,imageIndex:u,title:m,sizes:h}=e;return(0,i.jsxs)(n.default,{sx:{display:"relative",color:"common.black"},children:[(0,i.jsx)(o,{image:l.ref,index:u,title:m,sizes:h,aspectRatio:r,priority:0===u}),(0,i.jsx)(d.default,{variant:"h3",color:"inherit",sx:{fontWeight:"bold",position:"absolute",top:"10%",left:"50%",width:"70%",fontSize:{xs:"1.5rem",sm:"2.5rem",md:"3rem",lg:"3.5rem"},transform:"translateX(-50%)",textAlign:"center",textShadow:"0px 0px 15px #FFFFFF"},children:null==l?void 0:l.title}),(0,i.jsx)(s.default,{container:!0,sx:{justifyContent:"center",alignItems:"center",gap:2,position:"absolute",bottom:"10%",left:"50%",transform:"translate(-50%, -50%)"},children:x()(null!==(t=null==l?void 0:l.buttons)&&void 0!==t?t:[],(e,t)=>{let{text:l,link:n,color:r}=e;return(0,i.jsx)(s.default,{children:(0,i.jsx)(c.default,{href:null!=n?n:"#",passHref:!0,children:(0,i.jsx)(a.default,{sx:{textAlign:"center",bgcolor:"common.".concat(r),color:"common.".concat("black"===r?"white":"black"),"&:hover":{bgcolor:"common.".concat(r),color:"common.".concat("black"===r?"white":"black")},minWidth:160},variant:"contained",children:l})})},"button-".concat(t))})})]})};var h=l(93480),p=l(85319);l(7653);var f=l(51161),v=l(64101),j=l(37187),g=l(55996),b=l(89639),y=l.n(b);function w(e){let{title:t,subtitle:l,description:r,buttons:o,position:a,media:c,index:u,aspectRatio:m="4/5"}=e;return(0,i.jsxs)(v.default,{direction:{xs:"column",md:"left"==a?"row":"row-reverse"},spacing:{xs:2,md:0},sx:{width:"100%",minHeight:"50vh",height:"100%",mx:"auto"},children:[(0,i.jsx)(n.default,{sx:{display:"block",overflow:"hidden",height:"100%",position:"relative",aspectRatio:m,width:{xs:"100%",md:"50%"}},children:(0,i.jsx)(j.default,{media:c,title:t,layout:"slide",imageIndex:u,aspectRatio:m,itemsPerRow:[1],priority:0===u,isHalf:!0})}),(0,i.jsxs)(n.default,{sx:{flex:"1",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",py:{xs:4,md:0},ml:{xs:0,md:"right"===a?0:"auto"},mr:{xs:0,md:"left"===a?0:"auto"},px:{xs:2,md:4}},children:[l&&(0,i.jsx)(d.default,{variant:"overline",sx:{color:"primary.main",fontWeight:"bold",textAlign:{xs:"left",md:"center"},width:"100%"},children:l}),t&&(0,i.jsx)(d.default,{variant:"h1",sx:{color:"primary.main",fontWeight:"bold",width:"100%",textAlign:{xs:"left",md:"center"},wordBreak:"keep-all",hyphens:"auto",pb:1},children:y()(t)}),(null==r?void 0:r.length)>0&&(0,i.jsx)(d.default,{variant:"body1",component:"div",sx:{color:"primary.main",width:"100%",textAlign:{xs:"left",md:"center"},fontSize:"1.2rem"},children:(0,i.jsx)(f.Z,{blocks:r})}),(null==o?void 0:o.length)>0&&(0,i.jsx)(s.default,{container:!0,justifyContent:"center",alignItems:"center",gap:2,mt:3,mb:1,children:x()(null!=o?o:[],(e,t)=>(0,i.jsx)(s.default,{children:(0,i.jsx)(g.default,{...e})},"cta-".concat(t)))})]})]})}var k=l(417),Z=l(75629),C=l(58973),I=l(64691);let P=e=>{var t;let{current:l,title:r,imageIndex:a,itemsPerRow:d=1,pointAction:s=()=>{}}=e,c="(max-width: 1024px) 100vw, ".concat(I.mD?"".concat(Math.floor(1600/(d||1)),"px"):"".concat(Math.floor(100/(d||1)),"vw"));return(0,i.jsxs)(n.default,{sx:{width:"100%",height:"100%",position:"relative",aspectRatio:"4/5"},children:[(0,i.jsx)(o,{image:l.image,index:a,title:r,sizes:c,aspectRatio:"4/5",priority:!1}),null==l?void 0:null===(t=l.points)||void 0===t?void 0:t.map((e,t)=>(0,i.jsx)(C.Z,{title:e.product.title,placement:"top",children:(0,i.jsx)(k.default,{sx:{top:100*e.y+"%",left:100*e.x+"%",position:"absolute",transform:"translate(-50%, -50%)",zIndex:1,color:"#FFF","&:hover":{bgcolor:"#FFFFFF80"},animation:"changeColor 2s infinite","@keyframes changeColor":{"0%":{bgcolor:"#FFFFFF20"},"50%":{bgcolor:"#FFFFFF80"},"100%":{bgcolor:"#FFFFFF20"}}},href:"#".concat(e.product.id),onClick:()=>{s(e.product.id)},children:(0,i.jsx)(Z.Z,{})})},"point-".concat(t)))]})},S=e=>{let{current:t,title:l,imageIndex:r,aspectRatioImage:a="4/5",itemsPerRow:d=1,priority:s=!1,pointAction:c=()=>{}}=e,u=null==t?void 0:t.type,x={xs:"4/5",sm:"3/2",md:"16/9"};("image"===u||"text"===u||"spacing"===u)&&(x=a);let f="(max-width: 1024px) 100vw, ".concat(I.mD?"".concat(Math.floor(1600/(d||1)),"px"):"".concat(Math.floor(1920/(d||1)),"px"));return(null==t?void 0:t.type)==="video"?(0,i.jsx)(h.Z,{mobileUrl:null==t?void 0:t.mobileUrl,desktopUrl:null==t?void 0:t.desktopUrl,autoPlay:null==t?void 0:t.autoPlay}):(null==t?void 0:t.type)==="imageWithPoints"?(0,i.jsx)(P,{current:t,title:l,imageIndex:r,itemsPerRow:d,pointAction:c}):(null==t?void 0:t.type)==="imageText"?(0,i.jsx)(m,{current:t,index:r,title:l,alt:l,sizes:f,aspectRatio:x}):(null==t?void 0:t.type)==="block03"?(0,i.jsx)(w,{...t,aspectRatio:"4/5"}):(null==t?void 0:t.type)==="image"?(0,i.jsx)(o,{image:t.ref,index:r,title:l,sizes:f,aspectRatio:x,priority:s}):(null==t?void 0:t.type)==="model3d"?(0,i.jsx)(n.default,{sx:{width:"100%",height:"100%",position:"relative",aspectRatio:"4/5"},children:(0,i.jsx)(p.default,{src:t.modelUrl,alt:l,"shadow-intensity":"1","camera-controls":!0})}):(0,i.jsx)(n.default,{sx:{width:"100%",height:"100%",aspectRatio:x}})}},98889:(e,t,l)=>{l.d(t,{default:()=>p});var i=l(27573),n=l(7653),r=l(5298),o=l.n(r),a=l(1786),d=l(26313),s=l(417),c=l(17473),u=l(10954);function x(e){let{swiperRef:t,left:l=10,right:n=10,size:r="medium"}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.default,{sx:{zIndex:1,position:"absolute",bottom:"50%",transform:"translateY(50%)",left:l,display:{xs:"none",md:"block"}},children:(0,i.jsx)(s.default,{onClick:()=>{var e;return null==t?void 0:null===(e=t.current)||void 0===e?void 0:e.slidePrev()},"aria-label":"prev",component:"div",size:r,sx:{opacity:.5,"&:hover":{opacity:1}},children:(0,i.jsx)(c.Z,{fontSize:"small"})})}),(0,i.jsx)(d.default,{sx:{zIndex:1,position:"absolute",bottom:"50%",transform:"translateY(50%)",right:n,display:{xs:"none",md:"block"}},children:(0,i.jsx)(s.default,{onClick:()=>{var e;return null==t?void 0:null===(e=t.current)||void 0===e?void 0:e.slideNext()},"aria-label":"next",component:"div",size:r,sx:{opacity:.5,"&:hover":{opacity:1}},children:(0,i.jsx)(u.Z,{fontSize:"small"})})})]})}var m=l(24773),h=l(94744);function p(e){let{mediaParsed:t,autoPlay:l,title:r,imageIndex:s,aspectRatio:c,priority:u=!1,isHalf:p=!1}=e,f=(0,n.useRef)(null);return(0,i.jsxs)(d.default,{sx:{width:"100%",height:"100%",position:"relative"},children:[(0,i.jsx)(m.tq,{pagination:{clickable:!0},modules:[h.Gk,h.tl,...l?[h.pt]:[]],mousewheel:!0,cssMode:!0,keyboard:!0,slidesPerView:1,autoplay:{delay:6500,disableOnInteraction:!1},onBeforeInit:e=>{f.current=e},children:o()(t,(e,t)=>(0,i.jsx)(m.o5,{children:(0,i.jsx)(a.Z,{title:r,imageIndex:s,current:e,itemsPerRow:p?2:1,aspectRatioImage:c,priority:u})},"slide-".concat(t)))}),(0,i.jsx)(x,{swiperRef:f})]})}l(67708),l(76536),l(2609),l(48407)},37187:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var i=l(27573),n=l(80088),r=l(98889);let o=e=>{let{media:t,title:l,imageIndex:o,layout:a,pageData:d={},aspectRatio:s,itemsPerRow:c=[1],autoPlay:u,priority:x=!1,isHalf:m=!1}=e,h=null==t?void 0:t.map(e=>{if((null==e?void 0:e.type)==="mediaPage"){var t;return null!==(t=null==d?void 0:d.media)&&void 0!==t?t:[]}return e}).flat();return"slide"===a&&(null==h?void 0:h.length)>1?(0,i.jsx)(r.default,{title:l,imageIndex:o,mediaParsed:h,autoPlay:u,aspectRatio:s,priority:x}):(0,i.jsx)(n.default,{title:l,imageIndex:o,mediaParsed:h,itemsPerRow:c,isHalf:m,priority:x})}},45697:(e,t,l)=>{l.d(t,{Z:()=>C});var i=l(27573),n=l(87659),r=l(26313),o=l(64101),a=l(50209),d=l(20582),s=l(64691),c=l(7653),u=l(21911),x=l(74076),m=l(25863),h=l(16472);function p(e){let{media:t,alt:l,link:o,id:a,index:d,sectionTitle:p,sectionId:f,gridItem:v,disableLink:j=!1,disableHover:g=!1}=e,b=(0,m.Z)(),[y,w]=(0,c.useState)(!1),k=(0,c.useMemo)(()=>12/((null==v?void 0:v[b])||3),[v,b]),Z=(0,c.useCallback)(()=>{(0,x.Z)({eventType:"select_item",slugs:[a],itemData:{item_list_id:f,item_list_name:p,index:d}})},[f,p,d,a]),C=(0,c.useCallback)(()=>!g&&w(!1),[g]),I=(0,c.useCallback)(()=>!g&&w(!0),[g]),P=(0,c.useMemo)(()=>s.mD?"(max-width: 1920px) ".concat(Math.floor(100/k),"vw, ").concat(Math.floor(1920/k),"px"):"".concat(Math.floor(100/k),"vw"),[k]);return(0,i.jsx)(r.default,{onClick:Z,onMouseEnter:I,onMouseLeave:C,onTouchStart:I,onTouchEnd:C,...!j&&!!o&&"#"!=o&&{component:n.default,href:o},children:(0,i.jsx)(r.default,{component:h.Z,sx:{position:"relative",width:"100%",height:"100%",aspectRatio:"4/5",transition:"transform 1.5s","& > img":{objectFit:"cover",objectPosition:"center"}},children:(0,i.jsx)(u.default,{ratio:1.25,src:t[y&&t.length>1?1:0],alt:l,fill:!0,sizes:P,quality:80})})})}var f=l(4754);function v(e){let{id:t}=e,{t:l}=(0,f.Z)();return(0,i.jsx)(i.Fragment,{children:l(t)})}var j=l(33562);let g=(0,d.default)(()=>l.e(2137).then(l.bind(l,62137)),{loadableGenerated:{webpack:()=>[62137]}}),b=(0,d.default)(()=>l.e(9680).then(l.bind(l,19680)),{loadableGenerated:{webpack:()=>[19680]}}),y=(0,d.default)(()=>l.e(3820).then(l.bind(l,83820)),{loadableGenerated:{webpack:()=>[83820]}}),w=(0,d.default)(()=>Promise.all([l.e(6314),l.e(4618)]).then(l.bind(l,74618)),{loadableGenerated:{webpack:()=>[74618]}}),k=(0,d.default)(()=>Promise.all([l.e(7761),l.e(230),l.e(2620)]).then(l.bind(l,82620)),{loadableGenerated:{webpack:()=>[82620]}}),Z=(0,d.default)(()=>l.e(7231).then(l.bind(l,37231)),{loadableGenerated:{webpack:()=>[37231]}});function C(e){let{media:t,price:l,minPrice:d,maxPrice:c,discount:u,title:x,subtitle:m,redeem:h=!1,link:f,id:C,type:I,index:P,sectionTitle:S,sectionId:z,gridItem:R,disableLink:F=!1,productGroup:M=[],showButtons:W=!1,disableHover:A=!1,disableWishlist:O=!1,_type:T=j.c5}=e,L=(null==M?void 0:M.length)?[...null==M?void 0:M.filter(e=>e.id==C),...null==M?void 0:M.filter(e=>e.id!=C)]:[],D=["post","collection","room"].includes(T);return(0,i.jsxs)(o.default,{direction:"column",spacing:1,sx:{width:"100%",position:"relative",alignItems:"flex-start"},children:[(0,i.jsxs)(r.default,{sx:{width:"100%",height:"100%",mb:1,position:"relative"},children:[s.mD&&!O&&!D&&(0,i.jsx)(r.default,{sx:{position:"absolute",top:5,right:5,zIndex:10},children:(0,i.jsx)(b,{icon:!0,productId:C})}),s.Ap&&!D&&(0,i.jsx)(r.default,{sx:{position:"absolute",top:5,right:5,zIndex:10},children:(0,i.jsx)(y,{productId:C})}),"configure"===I&&(0,i.jsx)(a.default,{variant:"caption",component:"div",sx:{bgcolor:"primary.light",color:"common.white",position:"absolute",bottom:0,right:0,zIndex:1,fontSize:"0.60rem",fontWeight:600,px:.5,py:.2,alignItems:"center",justifyContent:"center",display:"flex",textTransform:"uppercase"},children:(0,i.jsx)(v,{id:"ProductItem:custom"})}),(0,i.jsx)(p,{media:t,link:f,id:C,index:P,gridItem:R,sectionTitle:S,sectionId:z,disableLink:F,disableHover:A,alt:x})]}),(0,i.jsxs)(o.default,{direction:{xs:"column",sm:"row"},spacing:{xs:0,sm:1},sx:{justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},width:"100%"},children:[(0,i.jsx)(a.default,{variant:"body1",...!F&&!!f&&"#"!=f&&{component:n.default,href:f},sx:{fontWeight:"bold",textTransform:"uppercase",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",lineClamp:"2",overflowWrap:"anywhere"},children:x}),(l>0||d>0||c>0)&&(0,i.jsx)(k,{minPrice:d,maxPrice:c,price:l,discount:u,type:I,align:"right"})]}),m&&(0,i.jsx)(a.default,{variant:"body2",sx:{color:"text.secondary",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",lineClamp:"2"},children:m}),("checkout"===I||W)&&(0,i.jsx)(w,{size:"small",variant:"outlined",fullWidth:!0,productId:C}),h&&(0,i.jsx)(g,{points:l||0,id:C}),(null==L?void 0:L.length)>0&&(0,i.jsx)(o.default,{direction:"row",spacing:.4,sx:{alignItems:"center"},children:null==L?void 0:L.map((e,t)=>(0,i.jsx)(Z,{item:e,index:t,id:C},"tooltip-".concat(t)))})]})}},21066:(e,t,l)=>{l.d(t,{Z:()=>f});var i=l(27573),n=l(50209),r=l(12154),o=l(15320),a=l(34766),d=l(9937),s=l(22543),c=l(26481),u=l(81312),x=l(26313),m=l(58973),h=l(21911);let p=e=>{let{src:t,alt:l,grayscale:n=!0}=e;return(0,i.jsx)(u.default,{children:(0,i.jsx)(m.Z,{title:l,children:(0,i.jsx)(x.default,{sx:{bgcolor:"common.white",borderRadius:1,p:.5},children:(0,i.jsx)("div",{style:{width:40,height:40,position:"relative"},children:(0,i.jsx)(h.default,{src:t,alt:l,fill:!0,sizes:"80px",style:{filter:n?"grayscale(100%)":"none"},ratio:1})})})})})},f=e=>{let{title:t,description:l,id:x,Icon:m=null,color:h,icons:f,open:v,setOpen:j,dense:g=!1,size:b="medium",sx:y={}}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(d.Z,{dense:g,onClick:()=>{j(x!==v&&x)},id:x,divider:!0,sx:{...y},children:[m&&(0,i.jsx)(s.default,{children:(0,i.jsx)(m,{fontSize:"small",color:h})}),(0,i.jsx)(c.default,{primary:t,primaryTypographyProps:{variant:"small"===b?"body2":"h6",component:"div"}}),v===x?(0,i.jsx)(o.Z,{color:"action",fontSize:"small"}):(0,i.jsx)(r.Z,{color:"action",fontSize:"small"})]}),(0,i.jsxs)(a.Z,{in:v===x,timeout:"auto",unmountOnExit:!0,children:[(null==f?void 0:f.length)>0&&(0,i.jsx)(u.default,{container:!0,gap:1.5,px:1.5,pt:2,pb:1,children:null==f?void 0:f.map((e,t)=>{let{alt:l,src:n}=e;return(0,i.jsx)(p,{alt:l,src:n,grayscale:!0},t)})}),(0,i.jsx)(n.default,{variant:"body1",component:"div",sx:{color:"text.secondary",py:2,px:2,borderBottom:"1px solid",borderColor:"divider"},children:l})]})]})}},67842:(e,t,l)=>{l.d(t,{Z:()=>p});var i=l(27573),n=l(7653),r=l(94528),o=l(64101),a=l(10908),d=l(54570),s=l(84166),c=l(26313),u=l(50209),x=l(59510),m=l(87659),h=l(86854);let p=e=>{let{name:t,formFields:l,textButton:p,linkButton:f="",readOnly:v=!1,defaultValues:j=!1,onSubmit:g=()=>Promise.resolve(),onComplete:b=()=>Promise.resolve(),StartIcon:y=null,EndIcon:w=null}=e,[k,Z]=(0,n.useState)({}),[C,I]=(0,n.useState)(!1),{userId:P}=(0,d.Z)(),S=(0,n.useMemo)(()=>(0,s.Z)(14),[]),{showSnackbar:z}=(0,h.Z)(),R=(0,n.useMemo)(()=>!j||JSON.stringify(j)!==JSON.stringify(k),[j,k]),F=(0,n.useCallback)(e=>{let{name:t,value:l}=e.target;Z(e=>({...e,[t]:l}))},[]),M=(0,n.useCallback)(async e=>(e.preventDefault(),I(!0),g({formData:k,formId:S}).then(()=>(window.scrollTo({top:0,behavior:"smooth"}),b({formData:k,formId:S}))).catch(()=>{z({message:"An error has occurred",severity:"error"})}).finally(()=>{I(!1)})),[k,S,t,P]);return(0,n.useEffect)(()=>{0===Object.keys(k).length&&j&&Z(j)},[j]),(0,i.jsx)(c.default,{component:"form",onSubmit:M,sx:{maxWidth:"sm",width:"100%"},children:(0,i.jsxs)(o.default,{direction:"column",spacing:3,children:[l.map((e,t)=>{var l,n,o,a;return(null==e?void 0:e.type)==="title"?(0,i.jsx)(u.default,{variant:"body1",sx:{color:"text.secondary",textTransform:"uppercase"},children:null==e?void 0:e.title},t):(0,i.jsx)(r.Z,{fullWidth:!0,label:null==e?void 0:e.title,name:null==e?void 0:e.name,value:null!==(o=null==k?void 0:k[null==e?void 0:e.name])&&void 0!==o?o:"",placeholder:null==e?void 0:e.placeholder,type:null!==(a=null==e?void 0:e.type)&&void 0!==a?a:"text",variant:"outlined",size:"small",onChange:F,required:null==e?void 0:e.required,select:!!(null==e?void 0:null===(l=e.options)||void 0===l?void 0:l.length),disabled:C,slotProps:{input:{readOnly:v}},children:null==e?void 0:null===(n=e.options)||void 0===n?void 0:n.map((e,t)=>(0,i.jsx)(x.Z,{value:e,children:e},t))},t)}),!f&&p&&(0,i.jsx)(a.Z,{type:"submit",variant:"contained",color:"primary",size:"large",fullWidth:!0,loading:C,endIcon:w,startIcon:y,disabled:!R,children:p}),!!f&&(0,i.jsx)(m.default,{href:f,passHref:!0,children:(0,i.jsx)(a.Z,{variant:"outlined",color:"primary",size:"large",fullWidth:!0,loading:C,endIcon:w,startIcon:y,children:p})})]})})}},39111:(e,t,l)=>{l.d(t,{Z:()=>c});var i=l(27573),n=l(7653),r=l(64101),o=l(50209),a=l(26313),d=l(7531),s=l(21066);let c=e=>{let{prices:t}=e,[l,c]=(0,n.useState)(!1);return(null==t?void 0:t.length)===0?null:(0,i.jsx)(a.default,{sx:{borderTop:"1px solid",borderColor:"divider"},children:null==t?void 0:t.map((e,t)=>{var n;return(0,i.jsx)(s.Z,{title:null==e?void 0:e.title,size:"small",description:null==e?void 0:null===(n=e.content)||void 0===n?void 0:n.map((e,t)=>(null==e?void 0:e.title)&&(null==e?void 0:e.price)?(0,i.jsxs)(r.default,{direction:"row",sx:{width:"100%",justifyContent:"space-between"},children:[(0,i.jsx)(o.default,{variant:"body2",children:null==e?void 0:e.title}),(0,i.jsx)(o.default,{variant:"body2",children:(0,d.Z)({amount:Number(null==e?void 0:e.price)/100})})]},t):(0,i.jsx)(a.default,{sx:{height:20}},t)),setOpen:c,open:l,id:"benefit-".concat(t)},"benefit-".concat(t))})})}},85319:(e,t,l)=>{l.d(t,{default:()=>r});var i=l(27573),n=l(7653);function r(e){return(0,n.useEffect)(()=>{{let e=document.createElement("script");return e.type="module",e.src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.5.0/model-viewer.min.js",e.async=!0,document.body.appendChild(e),()=>{document.body.removeChild(e)}}},[]),(0,i.jsx)("model-viewer",{...e})}},25863:(e,t,l)=>{l.d(t,{Z:()=>r});var i=l(67817),n=l(72159);function r(){let e=(0,i.default)();return[...e.breakpoints.keys].reverse().reduce((t,l)=>{let i=(0,n.default)(e.breakpoints.up(l));return!t&&i?l:t},null)||"md"}}}]);