","")}},Z))})]})]})}):g("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:g("img",{style:{margin:"0 auto"},width:"80",src:"https://images.samsung.com/is/image/samsung/assets/uk/pay-monthly-contracts-2023/contract-loading.gif"})})},Gc={light:{background:"#fff",text:"#000",grey:"#b4b4b4"},dark:{background:"#000",text:"#fff",grey:"#464646"}},Kc=e=>{var Re,Y,fe,st,V,ne;const{theme:t="light",setSelected:n,defaultSku:r,addToBag:o,dropdownOpen:i,setImage:l,inBasket:s,leadSku:u,setCta:a,onError:c,style:h,countryCode:m,outOfStock:k,notForSale:v,buyNow:w,ctaText:_,keyFeatures:d,colorText:p}=e;let{data:f,error:E,finished:S}=xl(u);const[x,T]=y.useState(u??Object.keys(f)[0]);y.useEffect(()=>{u&&T(u)},[u]);const[I,D]=y.useState([]);let{freeItems:j}=ma(u);y.useEffect(()=>{D(j)},[j]);const[ae,Q]=y.useState(""),[ie,ue]=gl({devices:f,selectedSku:x}),se=M=>{n(M),T(M),l(f[M].picture)},b=en(),he=xn({devices:f,selectedSku:x,availableSkus:ie,field:"color",handleSelectSku:se,element:vl,theme:t}),N=xn({devices:f,selectedSku:x,availableSkus:ie,field:"size",handleSelectSku:se,element:Sl,theme:t}),[B,W]=y.useState(!1),[q,$]=y.useState(0);y.useEffect(()=>{const M=()=>{var Ne;$((q+1)%(((Ne=f[x].gallery)==null?void 0:Ne.length)||1))};let K;return B&&(K=window.setInterval(M,700)),()=>{K&&window.clearInterval(K)}},[B,q]),y.useEffect(()=>{let M=null;f&&S&&f[x]&&(f[x].price.priceType?f[x]&&f[x].stock&&f[x].stock.stockLevelStatus==="outOfStock"?M=g(St,{onClick:()=>{},size:b?26:16,style:{margin:b?"1em 0":" 0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",backgroundColor:"#f4f4f4",borderColor:"#ffffff",pointerEvents:"none",color:"#b5b5b5",textAlign:"center"},children:k}):f[x]&&f[x].stock&&f[x].price.priceType&&f[x].stock.stockLevelStatus!=="outOfStock"&&(t==="light"?M=g(Ut,{onClick:()=>{window.location.href=`${f[x].link}buy/?modelCode=${x}`},size:b?26:16,style:{margin:b?"1em 0":"0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",textAlign:"center"},...me(`PCDBuyNow:${f[x].name}`),children:w}):M=g(On,{onClick:()=>{window.location.href=`${f[x].link}buy/?modelCode=${x}`},size:b?26:16,style:{margin:b?"1em 0":"0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",textAlign:"center","&:hover":{borderColor:"#ffffff"}},...me(`PCDBuyNow:${f[x].name}`),children:w})):M=g(St,{onClick:()=>{},size:b?26:16,style:{margin:b?"1em 0":"0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",backgroundColor:"#f4f4f4",borderColor:"#ffffff",pointerEvents:"none",color:"#b5b5b5",textAlign:"center"},children:v}),M!==null&&a(M))},[f,x,S,f[x]]);const O=Gc[t]||Gc.light;y.useState("HAND"),y.useState(" Default Value ");const{updateSkuToView:R,updateSecondProduct:U,updateSecondProductCategory:C,updateEditSecondProduct:H,updateSecondProductConfigurator:z,updateSecondProductSubCategory:G,updateSecondAccessary:ee,secondAccessary:te,activeTab:P,activeSubCategoryTab:pe,updateActiveSubCategoryTab:ye}=y.useContext(je);y.useContext(je),y.useContext(je),console.log(f[x]);const[oe,ve]=y.useState(null),[X,Z]=y.useState(!1),[Se,we]=y.useState([]),Ke=()=>{Z(!1);let M="https://searchapi.samsung.com/v6/front/b2c/product/card/detail/newhybris?siteCode=uk&modelList="+x+"&saleSkuYN=Y&onlyRequestSkuYN=Y&keySummaryYN=N&specYN=N&commonCodeYN=N";fetch(M).then(K=>K.json()).then(K=>{Z(!0),we(K),we(K)},K=>{Z(!0),ve(K)})},lt=()=>{let M="https://api.shop.samsung.com/tokocommercewebservices/v2/uk/products/"+x+"/offers?fields=SIMPLE_INFO";fetch(M).then(K=>K.json()).then(K=>{if(!K||K.length===0)return;let Ne=[];K.benefits.length>0&&K.benefits.forEach(Rt=>{Rt.code.includes("CASHBACK")&&Ne.push(Rt.description),Rt.code.includes("FOC")&&Ne.push(Rt.description)}),D(Ne)},K=>{})};return y.useEffect(()=>{Ke(),lt()},[x]),f[x]?g(ce,{children:L("div",{style:{opacity:i?"0.2":"1",margin:b?"5vw 0vw":"30px",display:b?"block":"flex",gap:"10%",justifyContent:"left",flexDirection:"row",width:"100%"},children:[L("div",{style:{width:b?"100%":"50%"},children:[L("div",{children:[g(le,{weight:"normal",size:"26",style:{marginBottom:"10px",fontWeight:"800",fontSize:b?"16px":"26px"},children:f&&f[x].name&&f[x].name.replace("
","")}),g(kl,{marginBottom:"12px",sku:x}),g(le,{weight:"normal",size:"24",style:{fontWeight:"700",fontSize:b?"14px":"24px"},children:f&&Cl(f[x].price.value,m)})]}),L("div",{style:{display:"flex",flexDirection:"row",width:"100%",justifyContent:"left",gap:"10%",marginTop:"20px"},children:[L("div",{style:{display:"flex",flexDirection:"column",gap:"10px",width:"40%"},children:[f&&f[x].size&&f[x].size!=null&&L(ce,{children:[g(le,{weight:"normal",size:b?19:12,style:{textAlign:"left",color:O.text,marginBottom:"6px"},children:((Y=(Re=Se==null?void 0:Se.response)==null?void 0:Re.resultData)==null?void 0:Y.productList[0].modelList[0].pviTypeName)=="Mobile"?"Storage":"Size"}),g(Zt,{style:{justifyContent:"left",width:"100%",padding:"0",marginBottom:"16px",gap:"10px",display:"flex",flexDirection:"row",flexWrap:"wrap"},children:g(wr,{children:N})})]}),L(le,{weight:"normal",size:b?19:12,style:{textAlign:"left",color:O.text,marginBottom:"6px"},children:[p,": ",(fe=f[x].color)==null?void 0:fe.colorName]}),g("div",{style:{margin:"min(0.34vw, 5px) 0",alignSelf:"flex-start"},children:f&&g(Zt,{style:{justifyContent:"center",alignItems:"center",width:"100%",maxWidth:"100%",padding:"0",flexWrap:"wrap",gap:b?"8px":"5px",flexDirection:"row"},children:g(wr,{children:he})})})]}),g("div",{style:{display:"flex",justifyContent:"center",width:"50%"},children:f&&f[x]&&g(ce,{children:g("div",{style:{width:b?"100%":"min(100%, 15.42vw)",aspectRatio:"3 / 2",backgroundImage:`url(${B?((st=f[x].gallery[q])==null?void 0:st.url)??"":f[x].picture.url})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",WebkitBackgroundSize:"contain",backgroundAttachment:"scroll",overflow:"visible",margin:"0 auto"},children:!f[x].picture.url&&g(xo,{height:"136",width:"200",viewBox:"0 0 200 136",style:{maxWidth:"100%"},children:g("rect",{x:"0",y:"0",rx:"15",ry:"15",width:"200",height:"136"})})})})})]})]}),L("div",{style:{width:b?"100%":"40%",display:"flex",flexDirection:"column",marginTop:b?"20px":"60px",justifyContent:"left"},children:[g("div",{children:((ne=(V=Se==null?void 0:Se.response)==null?void 0:V.resultData)==null?void 0:ne.productList[0].modelList[0].usp)&&L(ce,{children:[g(le,{weight:"normal",size:b?19:12,style:{textAlign:"left",fontWeight:"700",color:O.text,marginBottom:"11px",marginTop:"18px"},children:d}),g("ul",{style:{listStyleType:"disc",paddingInlineStart:"12px",fontFamily:"SamsungOne",fontSize:"14px",fontWeight:"450"},children:Se.response.resultData.productList[0].modelList[0].usp.map(M=>g("li",{style:{listStyleType:"disc",padding:"5px 0px"},children:M}))})]})}),g("div",{style:{display:"flex",justifyContent:b?"center":"left",margin:"18px auto auto"},children:f&&f[x].price.priceType&&g(St,{onClick:()=>{U(f[x].sku),C(P),pe!=""&&G(pe),ye(""),ee(ae),H(!1),z(!1),R("");const M=b?120:60,K=b?document.getElementById("bundle-component"):document.getElementById("productosyofertas");var Ne=K!==null?K.getBoundingClientRect().top-M:0;setTimeout(()=>{window.scrollTo({top:window.scrollY+Ne,behavior:"smooth"})},200)},size:b?26:16,style:{fontFamily:"SamsungOne",backgroundColor:"#2189ff",borderColor:O.background,color:"#fff",textAlign:"center"},...me("addSecondProductToBundleClicked"),children:_})}),g("div",{id:"offerDetails",children:I.map(M=>g("div",{style:{marginTop:"18px",flex:"1",fontSize:b?"12px":"14px",lineHeight:"1.33",fontFamily:"SamsungOne",clear:"both"},dangerouslySetInnerHTML:{__html:M.replace(/ style="[^"]*"/g,"").replace("

 ","")}}))})]})]})}):g("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:g("img",{style:{margin:"0 auto"},width:"80",src:"https://images.samsung.com/is/image/samsung/assets/uk/pay-monthly-contracts-2023/contract-loading.gif"})})},Xc={light:{background:"#fff",text:"#000",grey:"#b4b4b4"},dark:{background:"#000",text:"#fff",grey:"#464646"}},Zc=e=>{var Re,Y,fe,st,V,ne;const{theme:t="light",setSelected:n,defaultSku:r,addToBag:o,dropdownOpen:i,setImage:l,inBasket:s,leadSku:u,setCta:a,onError:c,style:h,countryCode:m,outOfStock:k,notForSale:v,buyNow:w,ctaText:_,keyFeatures:d,colorText:p}=e,{data:f,error:E,finished:S}=xl(u),[x,T]=y.useState(u??Object.keys(f)[0]);y.useEffect(()=>{u&&T(u)},[u]);const[I,D]=y.useState([]);let{freeItems:j}=ma(u);y.useEffect(()=>{D(j)},[j]);const[ae,Q]=y.useState(""),[ie,ue]=gl({devices:f,selectedSku:x}),se=M=>{n(M),T(M),l(f[M].picture)},b=en(),he=xn({devices:f,selectedSku:x,availableSkus:ie,field:"color",handleSelectSku:se,element:vl,theme:t}),N=xn({devices:f,selectedSku:x,availableSkus:ie,field:"size",handleSelectSku:se,element:Sl,theme:t}),[B,W]=y.useState(!1),[q,$]=y.useState(0);y.useEffect(()=>{const M=()=>{var Ne;$((q+1)%(((Ne=f[x].gallery)==null?void 0:Ne.length)||1))};let K;return B&&(K=window.setInterval(M,700)),()=>{K&&window.clearInterval(K)}},[B,q]),y.useEffect(()=>{let M=null;f&&S&&f[x]&&(f[x].price.priceType?f[x]&&f[x].stock&&f[x].stock.stockLevelStatus==="outOfStock"?M=g(St,{onClick:()=>{},size:b?26:16,style:{margin:b?"1em 0":" 0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",backgroundColor:"#f4f4f4",borderColor:"#ffffff",pointerEvents:"none",color:"#b5b5b5",textAlign:"center"},children:k}):f[x]&&f[x].stock&&f[x].price.priceType&&f[x].stock.stockLevelStatus!=="outOfStock"&&(t==="light"?M=g(Ut,{onClick:()=>{window.location.href=`${f[x].link}buy/?modelCode=${x}`},size:b?26:16,style:{margin:b?"1em 0":"0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",textAlign:"center"},...me(`PCDBuyNow:${f[x].name}`),children:w}):M=g(On,{onClick:()=>{window.location.href=`${f[x].link}buy/?modelCode=${x}`},size:b?26:16,style:{margin:b?"1em 0":"0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",textAlign:"center","&:hover":{borderColor:"#ffffff"}},...me(`PCDBuyNow:${f[x].name}`),children:w})):M=g(St,{onClick:()=>{},size:b?26:16,style:{margin:b?"1em 0":"0",padding:"0.8571em 1.5em",width:"100%",fontFamily:"SamsungOne",backgroundColor:"#f4f4f4",borderColor:"#ffffff",pointerEvents:"none",color:"#b5b5b5",textAlign:"center"},children:v}),M!==null&&a(M))},[f,x,S,f[x]]);const O=Xc[t]||Xc.light;y.useState("HAND"),y.useState(" Default Value ");const{updateSkuToView:R,updateThirdProductCategory:U,activeTab:C,updateThirdProduct:H,updateEditThirdProduct:z,updateThirdProductConfigurator:G,activeSubCategoryTab:ee,updateThirdAccessary:te,thirdAccessary:P,updateThirdProductSubCategory:pe,updateActiveSubCategoryTab:ye}=y.useContext(je);y.useContext(je);const[oe,ve]=y.useState(null),[X,Z]=y.useState(!1),[Se,we]=y.useState([]),Ke=()=>{Z(!1);let M="https://searchapi.samsung.com/v6/front/b2c/product/card/detail/newhybris?siteCode=uk&modelList="+x+"&saleSkuYN=Y&onlyRequestSkuYN=Y&keySummaryYN=N&specYN=N&commonCodeYN=N";fetch(M).then(K=>K.json()).then(K=>{Z(!0),we(K),we(K)},K=>{Z(!0),ve(K)})},lt=()=>{let M="https://api.shop.samsung.com/tokocommercewebservices/v2/uk/products/"+x+"/offers?fields=SIMPLE_INFO";fetch(M).then(K=>K.json()).then(K=>{if(!K||K.length===0)return;let Ne=[];K.benefits.length>0&&K.benefits.forEach(Rt=>{Rt.code.includes("CASHBACK")&&Ne.push(Rt.description),Rt.code.includes("FOC")&&Ne.push(Rt.description)}),D(Ne)},K=>{})};return y.useEffect(()=>{Ke(),lt()},[x]),f[x]?g(ce,{children:L("div",{style:{opacity:i?"0.2":"1",margin:b?"5vw 0vw":"30px",display:b?"block":"flex",gap:"10%",justifyContent:"left",flexDirection:"row",width:"100%"},children:[L("div",{style:{width:b?"100%":"50%"},children:[L("div",{children:[g(le,{weight:"normal",size:"26",style:{marginBottom:"10px",fontWeight:"800",fontSize:b?"16px":"26px"},children:f&&f[x].name&&f[x].name.replace("
","")}),g(kl,{marginBottom:"12px",sku:x}),g(le,{weight:"normal",size:"24",style:{fontWeight:"700",fontSize:b?"14px":"24px"},children:f&&Cl(f[x].price.value,m)})]}),L("div",{style:{display:"flex",flexDirection:"row",width:"100%",justifyContent:"left",gap:"10%",marginTop:"20px"},children:[L("div",{style:{display:"flex",flexDirection:"column",gap:"10px",width:"40%"},children:[f&&L(ce,{children:[g(le,{weight:"normal",size:b?19:12,style:{textAlign:"left",color:O.text,marginBottom:"6px"},children:((Y=(Re=Se==null?void 0:Se.response)==null?void 0:Re.resultData)==null?void 0:Y.productList[0].modelList[0].pviTypeName)=="Mobile"?"Storage":"Size"}),g(Zt,{style:{justifyContent:"left",width:"100%",padding:"0",marginBottom:"16px",gap:"10px",display:"flex",flexDirection:"row",flexWrap:"wrap"},children:g(wr,{children:N})})]}),L(le,{weight:"normal",size:b?19:12,style:{textAlign:"left",color:O.text,marginBottom:"6px"},children:[p,": ",(fe=f[x].color)==null?void 0:fe.colorName]}),g("div",{style:{margin:"min(0.34vw, 5px) 0",alignSelf:"flex-start"},children:f&&g(Zt,{style:{justifyContent:"center",alignItems:"center",width:"100%",maxWidth:"100%",padding:"0",flexWrap:"wrap",gap:b?"8px":"5px",flexDirection:"row"},children:g(wr,{children:he})})})]}),g("div",{style:{display:"flex",justifyContent:"center",width:"50%"},children:f&&f[x]&&g(ce,{children:g("div",{style:{width:b?"100%":"min(100%, 15.42vw)",aspectRatio:"3 / 2",backgroundImage:`url(${B?((st=f[x].gallery[q])==null?void 0:st.url)??"":f[x].picture.url})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",WebkitBackgroundSize:"contain",backgroundAttachment:"scroll",overflow:"visible",margin:"0 auto"},children:!f[x].picture.url&&g(xo,{height:"136",width:"200",viewBox:"0 0 200 136",style:{maxWidth:"100%"},children:g("rect",{x:"0",y:"0",rx:"15",ry:"15",width:"200",height:"136"})})})})})]})]}),L("div",{style:{width:b?"100%":"40%",display:"flex",flexDirection:"column",marginTop:b?"20px":"60px",justifyContent:"left"},children:[g("div",{children:((ne=(V=Se==null?void 0:Se.response)==null?void 0:V.resultData)==null?void 0:ne.productList[0].modelList[0].usp)&&L(ce,{children:[g(le,{weight:"normal",size:b?19:12,style:{textAlign:"left",fontWeight:"700",color:O.text,marginBottom:"11px",marginTop:"18px"},children:d}),g("ul",{style:{listStyleType:"disc",paddingInlineStart:"12px",fontFamily:"SamsungOne",fontSize:"14px",fontWeight:"450"},children:Se.response.resultData.productList[0].modelList[0].usp.map(M=>g("li",{style:{listStyleType:"disc",padding:"5px 0px"},children:M}))})]})}),g("div",{style:{display:"flex",justifyContent:b?"center":"left",margin:"18px auto auto"},children:f&&f[x].price.priceType&&g(St,{onClick:()=>{H(f[x].sku),U(C),ee!=""&&pe(ee),ye(""),te(ae),z(!1),G(!1),R("");const M=b?120:60,K=b?document.getElementById("bundle-component"):document.getElementById("productosyofertas");var Ne=K!==null?K.getBoundingClientRect().top-M:0;setTimeout(()=>{window.scrollTo({top:window.scrollY+Ne,behavior:"smooth"})},200)},size:b?26:16,style:{fontFamily:"SamsungOne",backgroundColor:"#2189ff",borderColor:O.background,color:"#fff",textAlign:"center"},...me("addThirdProductToBundleClicked"),children:_})}),g("div",{id:"offerDetails",children:I.map(M=>g("div",{style:{marginTop:"18px",flex:"1",fontSize:b?"12px":"14px",lineHeight:"1.33",fontFamily:"SamsungOne",clear:"both"},dangerouslySetInnerHTML:{__html:M.replace(/ style="[^"]*"/g,"").replace("

 ","")}}))})]})]})}):g("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:g("img",{style:{margin:"0 auto"},width:"80",src:"https://images.samsung.com/is/image/samsung/assets/uk/pay-monthly-contracts-2023/contract-loading.gif"})})};function Jt(e){return Array.isArray?Array.isArray(e):Bp(e)==="[object Array]"}const h1=1/0;function m1(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-h1?"-0":t}function g1(e){return e==null?"":m1(e)}function Ft(e){return typeof e=="string"}function Fp(e){return typeof e=="number"}function y1(e){return e===!0||e===!1||v1(e)&&Bp(e)=="[object Boolean]"}function jp(e){return typeof e=="object"}function v1(e){return jp(e)&&e!==null}function at(e){return e!=null}function es(e){return!e.trim().length}function Bp(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const S1="Incorrect 'index' type",w1=e=>`Invalid value for key ${e}`,x1=e=>`Pattern length exceeds max of ${e}.`,k1=e=>`Missing ${e} property in key`,C1=e=>`Property 'weight' in key '${e}' must be a positive integer`,Jc=Object.prototype.hasOwnProperty;class E1{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Vp(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Vp(e){let t=null,n=null,r=null,o=1,i=null;if(Ft(e)||Jt(e))r=e,t=qc(e),n=iu(e);else{if(!Jc.call(e,"name"))throw new Error(k1("name"));const l=e.name;if(r=l,Jc.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(C1(l));t=qc(l),n=iu(l),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function qc(e){return Jt(e)?e:e.split(".")}function iu(e){return Jt(e)?e.join("."):e}function _1(e,t){let n=[],r=!1;const o=(i,l,s)=>{if(at(i))if(!l[s])n.push(i);else{let u=l[s];const a=i[u];if(!at(a))return;if(s===l.length-1&&(Ft(a)||Fp(a)||y1(a)))n.push(g1(a));else if(Jt(a)){r=!0;for(let c=0,h=a.length;ce.score===t.score?e.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Ft(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Ft(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n{let l=o.getFn?o.getFn(t):this.getFn(t,o.path);if(at(l)){if(Jt(l)){let s=[];const u=[{nestedArrIndex:-1,value:l}];for(;u.length;){const{nestedArrIndex:a,value:c}=u.pop();if(at(c))if(Ft(c)&&!es(c)){let h={v:c,i:a,n:this.norm.get(c)};s.push(h)}else Jt(c)&&c.forEach((h,m)=>{u.push({nestedArrIndex:m,value:h})})}r.$[i]=s}else if(Ft(l)&&!es(l)){let s={v:l,n:this.norm.get(l)};r.$[i]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Dp(e,t,{getFn:n=re.getFn,fieldNormWeight:r=re.fieldNormWeight}={}){const o=new ga({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Vp)),o.setSources(t),o.create(),o}function N1(e,{getFn:t=re.getFn,fieldNormWeight:n=re.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new ga({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function Do(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=re.distance,ignoreLocation:i=re.ignoreLocation}={}){const l=t/e.length;if(i)return l;const s=Math.abs(r-n);return o?l+s/o:s?1:l}function O1(e=[],t=re.minMatchCharLength){let n=[],r=-1,o=-1,i=0;for(let l=e.length;i=t&&n.push([r,o]),r=-1)}return e[i-1]&&i-r>=t&&n.push([r,i-1]),n}const In=32;function R1(e,t,n,{location:r=re.location,distance:o=re.distance,threshold:i=re.threshold,findAllMatches:l=re.findAllMatches,minMatchCharLength:s=re.minMatchCharLength,includeMatches:u=re.includeMatches,ignoreLocation:a=re.ignoreLocation}={}){if(t.length>In)throw new Error(x1(In));const c=t.length,h=e.length,m=Math.max(0,Math.min(r,h));let k=i,v=m;const w=s>1||u,_=w?Array(h):[];let d;for(;(d=e.indexOf(t,v))>-1;){let T=Do(t,{currentLocation:d,expectedLocation:m,distance:o,ignoreLocation:a});if(k=Math.min(T,k),v=d+c,w){let I=0;for(;I=j;ue-=1){let se=ue-1,b=n[e.charAt(se)];if(w&&(_[se]=+!!b),Q[ue]=(Q[ue+1]<<1|1)&b,T&&(Q[ue]|=(p[ue+1]|p[ue])<<1|1|p[ue+1]),Q[ue]&S&&(f=Do(t,{errors:T,currentLocation:se,expectedLocation:m,distance:o,ignoreLocation:a}),f<=k)){if(k=f,v=se,v<=m)break;j=Math.max(1,2*m-v)}}if(Do(t,{errors:T+1,currentLocation:m,expectedLocation:m,distance:o,ignoreLocation:a})>k)break;p=Q}const x={isMatch:v>=0,score:Math.max(.001,f)};if(w){const T=O1(_,s);T.length?u&&(x.indices=T):x.isMatch=!1}return x}function b1(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:m,alphabet:b1(m),startIndex:k})},h=this.pattern.length;if(h>In){let m=0;const k=h%In,v=h-k;for(;m{const{isMatch:d,score:p,indices:f}=R1(t,v,w,{location:o+_,distance:i,threshold:l,findAllMatches:s,minMatchCharLength:u,includeMatches:r,ignoreLocation:a});d&&(m=!0),h+=p,d&&f&&(c=[...c,...f])});let k={isMatch:m,score:m?h/this.chunks.length:1};return m&&r&&(k.indices=c),k}}class _n{constructor(t){this.pattern=t}static isMultiMatch(t){return ed(t,this.multiRegex)}static isSingleMatch(t){return ed(t,this.singleRegex)}search(){}}function ed(e,t){const n=e.match(t);return n?n[1]:null}class M1 extends _n{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class L1 extends _n{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class F1 extends _n{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class j1 extends _n{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class B1 extends _n{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class V1 extends _n{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wp extends _n{constructor(t,{location:n=re.location,threshold:r=re.threshold,distance:o=re.distance,includeMatches:i=re.includeMatches,findAllMatches:l=re.findAllMatches,minMatchCharLength:s=re.minMatchCharLength,isCaseSensitive:u=re.isCaseSensitive,ignoreLocation:a=re.ignoreLocation}={}){super(t),this._bitapSearch=new Up(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:u,ignoreLocation:a})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Hp extends _n{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],i=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+i,o.push([r,n-1]);const l=!!o.length;return{isMatch:l,score:l?0:1,indices:o}}}const lu=[M1,Hp,F1,j1,V1,B1,L1,Wp],td=lu.length,D1=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,U1="|";function W1(e,t={}){return e.split(U1).map(n=>{let r=n.trim().split(D1).filter(i=>i&&!!i.trim()),o=[];for(let i=0,l=r.length;i!!(e[Oi.AND]||e[Oi.OR]),G1=e=>!!e[au.PATH],K1=e=>!Jt(e)&&jp(e)&&!cu(e),nd=e=>({[Oi.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Yp(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const l=G1(o);if(!l&&i.length>1&&!cu(o))return r(nd(o));if(K1(o)){const u=l?o[au.PATH]:i[0],a=l?o[au.PATTERN]:o[u];if(!Ft(a))throw new Error(w1(u));const c={keyId:iu(u),pattern:a};return n&&(c.searcher=uu(a,t)),c}let s={children:[],operator:i[0]};return i.forEach(u=>{const a=o[u];Jt(a)&&a.forEach(c=>{s.children.push(r(c))})}),s};return cu(e)||(e=nd(e)),r(e)}function X1(e,{ignoreFieldNorm:t=re.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:i,score:l})=>{const s=o?o.weight:null;r*=Math.pow(l===0&&s?Number.EPSILON:l,(s||1)*(t?1:i))}),n.score=r})}function Z1(e,t){const n=e.matches;t.matches=[],at(n)&&n.forEach(r=>{if(!at(r.indices)||!r.indices.length)return;const{indices:o,value:i}=r;let l={indices:o,value:i};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function J1(e,t){t.score=e.score}function q1(e,t,{includeMatches:n=re.includeMatches,includeScore:r=re.includeScore}={}){const o=[];return n&&o.push(Z1),r&&o.push(J1),e.map(i=>{const{idx:l}=i,s={item:t[l],refIndex:l};return o.length&&o.forEach(u=>{u(i,s)}),s})}class Er{constructor(t,n={},r){this.options={...re,...n},this.options.useExtendedSearch,this._keyStore=new E1(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof ga))throw new Error(S1);this._myIndex=n||Dp(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){at(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r-1&&(u=u.slice(0,n)),q1(u,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=uu(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:l,n:s})=>{if(!at(i))return;const{isMatch:u,score:a,indices:c}=n.searchIn(i);u&&o.push({item:i,idx:l,matches:[{score:a,value:i,norm:s,indices:c}]})}),o}_searchLogical(t){const n=Yp(t,this.options),r=(s,u,a)=>{if(!s.children){const{keyId:h,searcher:m}=s,k=this._findMatches({key:this._keyStore.get(h),value:this._myIndex.getValueForItemAtKeyId(u,h),searcher:m});return k&&k.length?[{idx:a,item:u,matches:k}]:[]}const c=[];for(let h=0,m=s.children.length;h{if(at(s)){let a=r(n,s,u);a.length&&(i[u]||(i[u]={idx:u,item:s,matches:[]},l.push(i[u])),a.forEach(({matches:c})=>{i[u].matches.push(...c)}))}}),l}_searchObjectList(t){const n=uu(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:l,i:s})=>{if(!at(l))return;let u=[];r.forEach((a,c)=>{u.push(...this._findMatches({key:a,value:l[c],searcher:n}))}),u.length&&i.push({idx:s,item:l,matches:u})}),i}_findMatches({key:t,value:n,searcher:r}){if(!at(n))return[];let o=[];if(Jt(n))n.forEach(({v:i,i:l,n:s})=>{if(!at(i))return;const{isMatch:u,score:a,indices:c}=r.searchIn(i);u&&o.push({score:a,key:t,value:i,idx:l,norm:s,indices:c})});else{const{v:i,n:l}=n,{isMatch:s,score:u,indices:a}=r.searchIn(i);s&&o.push({score:u,key:t,value:i,norm:l,indices:a})}return o}}Er.version="7.0.0";Er.createIndex=Dp;Er.parseIndex=N1;Er.config=re;Er.parseQuery=Yp;Q1(Y1);const ey=mt.li` padding: 12px 20px; &:empty { display: none } &:hover { background-color: #f7f7f7; } @media (max-width: 767px) { padding: 4px 10px; } `,ty=e=>{const{searchTerm:t,updateDropdownOpen:n,updateSearchTerm:r,devices:o}=e,i=en(),{data:l,error:s,finished:u}=u1(o);y.useState(l[0]);const[a,c]=y.useState(""),{updateSkuToView:h,updateSharedData:m}=y.useContext(je);y.useEffect(()=>{m(o)},[o]);const v=new Er(l,{keys:["displayName"],includeScore:!0}).search(a),w=a?v.map(_=>_.item):l;return y.useEffect(()=>{c(t)},[t]),g(ce,{children:w.map((_,d)=>g(ey,{onClick:()=>{n(!1),r(""),h(_.modelCode)},children:L("div",{style:{display:"flex",flexDirection:"row",gap:"12px",alignItems:"center"},children:[g("div",{style:{height:"40px",width:"40px",minWidth:"30px",aspectRatio:"1 / 1",backgroundImage:`url(${_.thumbUrl})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",WebkitBackgroundSize:"contain",backgroundAttachment:"scroll",overflow:"visible"},children:!_.thumbUrl&&g(xo,{height:"136",width:"200",viewBox:"0 0 200 136",style:{maxWidth:"100%"},children:g("rect",{x:"0",y:"0",rx:"15",ry:"15",width:"200",height:"136"})})}),g(le,{weight:"bold",style:{fontSize:i?"14px":"initial",minWidth:i?"58%":"65%"},children:_.displayName}),g(le,{weight:"bold",style:{fontSize:i?"14px":"initial",minWidth:"20%"},children:_.promotionPriceDisplay})]})},d))})},Uo=({showConfigurator:e,countryCode:t,dataSkus:n,copyData:r})=>{var ue,se,b,he,N,B,W,q,$,O,R,U,C,H,z,G,ee,te;const o=en(),i=$p();y.useState(null),y.useState(!1),y.useState([]);const{mainProduct:l,secondProduct:s,thirdProduct:u,editMainProduct:a,editSecondProduct:c,editThirdProduct:h,mainProductConfigurator:m,secondProductConfigurator:k,thirdProductConfigurator:v,skuToView:w,updateSkuToView:_,activeSubCategoryTab:d,updateActiveSubCategoryTab:p}=y.useContext(je);y.useContext(je),y.useContext(je);const f=y.useRef(null),[E,S]=y.useState(!1),[x,T]=y.useState(""),[I,D]=y.useState(""),j=P=>{D(P.target.value),P.target.value.length>2?T(P.target.value.toLowerCase()):P.target.value==""&&T("")},ae=P=>{S(P)},Q=P=>{T(P)},ie=()=>{_(""),D(""),T("")};return y.useEffect(()=>{function P(pe){if(f.current&&pe.target){const ye=pe.target;f.current.contains(ye)||S(!1)}}return document.addEventListener("mousedown",P),()=>{document.removeEventListener("mousedown",P)}},[f]),g(ce,{children:(m||k||v||a||c||h)&&e&&L("section",{className:"choose-your-product",id:"choose-your-la-product",style:{padding:o?"2vw":i?"30px":"30px 80px",background:o?"":"#fff",borderRadius:o?"0px":"12px",display:"block",margin:o?"8vw auto":"0px",width:"100%"},children:[L("div",{style:{display:"flex",height:"auto",opacity:1,cursor:"pointer",pointerEvents:"initial",transition:"visibility 0s linear 0.6s, opacity 0.6s linear",flexWrap:"wrap",position:"relative",gap:"10px",justifyContent:"center",marginBottom:"20px"},children:[g(le,{font:"secondary",weight:"bold",size:"20",style:{marginBottom:"26px",width:"100%",display:"inline-block",textAlign:o?"left":"center",fontSize:o?"16px":"20px"},children:r.productSelection.title}),g("div",{onClick:()=>{ie(),p("mobiles")},...me("mobilesTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:o?"left":"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="mobiles"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((se=(ue=r==null?void 0:r.productSelection)==null?void 0:ue.products)==null?void 0:se.AISmartphone)&&L(ce,{children:[g("img",{src:r.productSelection.products.AISmartphone.img,alt:`${r.productSelection.products.AISmartphone.alt}`,style:{paddingBottom:"5px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{fontSize:o?"10px":"12px"},children:r.productSelection.products.AISmartphone.title})]})}),g("div",{onClick:()=>{ie(),p("tablets")},...me("tabletsTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:o?"left":"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="tablets"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((he=(b=r==null?void 0:r.productSelection)==null?void 0:b.products)==null?void 0:he.AITablet)&&L(ce,{children:[g("img",{src:r.productSelection.products.AITablet.img,alt:`${r.productSelection.products.AITablet.alt}`,style:{paddingBottom:"10px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{fontSize:o?"10px":"12px"},children:r.productSelection.products.AITablet.title})]})}),g("div",{onClick:()=>{ie(),p("TV")},...me("TVTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="TV"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((B=(N=r==null?void 0:r.productSelection)==null?void 0:N.products)==null?void 0:B.AITV)&&L(ce,{children:[g("img",{src:r.productSelection.products.AITV.img,alt:`${r.productSelection.products.AITV.alt}`,style:{paddingBottom:"10px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{fontSize:o?"10px":"12px"},children:r.productSelection.products.AITV.title})]})}),g("div",{onClick:()=>{ie(),p("refrigerators")},...me("refrigeratorsTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="refrigerators"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((q=(W=r==null?void 0:r.productSelection)==null?void 0:W.products)==null?void 0:q.AIFridge)&&L(ce,{children:[g("img",{src:r.productSelection.products.AIFridge.img,alt:`${r.productSelection.products.AIFridge.alt}`,style:{paddingBottom:"10px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{fontSize:o?"10px":"12px"},children:r.productSelection.products.AIFridge.title})]})}),g("div",{onClick:()=>{ie(),p("Oven")},...me("OvenTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:o?"left":"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="Oven"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((O=($=r==null?void 0:r.productSelection)==null?void 0:$.products)==null?void 0:O.AIOven)&&L(ce,{children:[g("img",{src:r.productSelection.products.AIOven.img,alt:`${r.productSelection.products.AIOven.title} icon`,style:{paddingBottom:"2px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{padding:"0 5px 5px",textAlign:"center",fontSize:o?"10px":"12px"},children:r.productSelection.products.AIOven.title})]})}),g("div",{onClick:()=>{ie(),p("Vacuum")},...me("VacuumTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:o?"left":"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="Vacuum"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((U=(R=r==null?void 0:r.productSelection)==null?void 0:R.products)==null?void 0:U.AIRobotVacuum)&&L(ce,{children:[g("img",{src:r.productSelection.products.AIRobotVacuum.img,alt:`${r.productSelection.products.AIRobotVacuum.title} icon`,style:{paddingBottom:"2px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{padding:"0 5px 5px",textAlign:"center",fontSize:o?"10px":"12px"},children:r.productSelection.products.AIRobotVacuum.title})]})}),g("div",{onClick:()=>{ie(),p("washers")},...me("washersTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:o?"left":"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="washers"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((H=(C=r==null?void 0:r.productSelection)==null?void 0:C.products)==null?void 0:H.AIWashingMachine)&&L(ce,{children:[g("img",{src:r.productSelection.products.AIWashingMachine.img,alt:`${r.productSelection.products.AIWashingMachine.alt}`,style:{paddingBottom:"10px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{fontSize:o?"10px":"12px"},children:r.productSelection.products.AIWashingMachine.title})]})}),g("div",{onClick:()=>{ie(),p("dryers")},...me("dryersTabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:o?"left":"center",alignItems:"center",width:"100%",maxWidth:o?"calc(50% - 20px)":"120px",height:"80px",border:d=="dryers"?"1px solid #2189ff":"1px solid grey",borderRadius:"6px",background:"#fff",cursor:"pointer"},children:((G=(z=r==null?void 0:r.productSelection)==null?void 0:z.products)==null?void 0:G.AIDryer)&&L(ce,{children:[g("img",{src:r.productSelection.products.AIDryer.img,alt:r.productSelection.products.AIDryer.alt,style:{paddingBottom:"10px"}}),g(le,{font:"primary",weight:"normal",size:"12",style:{fontSize:o?"10px":"12px"},children:r.productSelection.products.AIDryer.title})]})})]}),d!=""&&L("div",{id:"search-box",style:{display:o?"block":"flex",flexDirection:"column",alignItems:"center"},children:[L("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative"},children:[L("div",{style:{position:"relative",width:o?"100%":"400px",margin:"20px 20px 0px 20px"},children:[g("input",{type:"text",value:I,onChange:j,onClick:()=>{S(!0)},style:{width:"100%",padding:"10px 5px 10px 20px",fontSize:o?"14px":"16px",border:"1px solid #E4E4E4",borderRadius:"25px",fontFamily:"SamsungOne"},placeholder:r.productSelection.searchBar}),g("img",{src:"https://images.samsung.com/is/image/samsung/assets/uk/bundle/icons/magnify.png",alt:"Search",style:{position:"absolute",top:"50%",right:"10px",transform:"translateY(-50%)",cursor:"pointer"}})]}),g("ul",{ref:f,style:{maxHeight:E?"300px":0,overflow:E?"scroll":"hidden",position:w!=""?"absolute":"relative",top:w!=""?"61px":"0px",background:"white",width:o?"100%":"400px",fontSize:o?"3.3vmin":"",padding:"0",margin:"0",listStyle:"none",cursor:"pointer",zIndex:"100",fontFamily:"SamsungOne",boxShadow:"2.8px 2.8px 2.2px rgba(0, 0, 0, 0.02),6.7px 6.7px 5.3px rgba(0, 0, 0, 0.028),12.5px 12.5px 10px rgba(0, 0, 0, 0.035),22.3px 22.3px 17.9px rgba(0, 0, 0, 0.042),41.8px 41.8px 33.4px rgba(0, 0, 0, 0.05),100px 100px 80px rgba(0, 0, 0, 0.07)"},children:d&&((ee=n.find(P=>P.subCategory.replace(/\s/g,"").toLowerCase()===d.toLowerCase()))==null?void 0:ee.eligibleSkus)&&g(ty,{searchTerm:x,updateDropdownOpen:ae,updateSearchTerm:Q,devices:(te=n.find(P=>P.subCategory.replace(/\s/g,"").toLowerCase()===d.toLowerCase()))==null?void 0:te.eligibleSkus})})]}),m&&w!=""&&l===""&&!a&&!c&&!h&&g(Qc,{defaultSku:w,theme:"light",setSelected:P=>console.log("sku"+P),addToBag:()=>console.log("naoo"),dropdownOpen:E,setImage:P=>console.log(P),inBasket:()=>!1,leadSku:w,setCta:P=>console.log(P),onError:P=>console.log(P),countryCode:t,copyLayouts:r.productSelection},w),k&&w!=""&&l!==""&&w!="mainProduct"&&s==""&&!a&&!c&&!h&&g(Kc,{defaultSku:w,theme:"light",setSelected:P=>console.log("sku"+P),addToBag:()=>console.log("naoo"),dropdownOpen:E,setImage:P=>console.log(P),inBasket:()=>!1,leadSku:w,setCta:P=>console.log(P),onError:P=>console.log(P),countryCode:t,outOfStock:(r==null?void 0:r.productSelection.outOfStock)||"Out of stock",notForSale:(r==null?void 0:r.productSelection.notForSale)||"Not for sale",buyNow:(r==null?void 0:r.productSelection.buyNow)||"Buy now",ctaText:r.productSelection.cta,keyFeatures:r.productSelection.keyFeatures,colorText:r.productSelection.color},w),v&&w!=""&&l!==""&&s!==""&&w!="mainProduct"&&w!="secondProduct"&&u==""&&!a&&!c&&!h&&g(Zc,{defaultSku:w,theme:"light",setSelected:P=>console.log("sku"+P),addToBag:()=>console.log("naoo"),dropdownOpen:E,setImage:P=>console.log(P),inBasket:()=>!1,leadSku:w,setCta:P=>console.log(P),onError:P=>console.log(P),countryCode:t,outOfStock:(r==null?void 0:r.productSelection.outOfStock)||"Out of stock",notForSale:(r==null?void 0:r.productSelection.notForSale)||"Not for sale",buyNow:(r==null?void 0:r.productSelection.buyNow)||"Buy now",ctaText:r.productSelection.cta,keyFeatures:r.productSelection.keyFeatures,colorText:r.productSelection.color},w),a&&w!=""&&g(ce,{children:g(Qc,{defaultSku:w,theme:"light",setSelected:P=>console.log("sku"+P),addToBag:()=>console.log("naoo"),dropdownOpen:E,setImage:P=>console.log(P),inBasket:()=>!1,leadSku:w,setCta:P=>console.log(P),onError:P=>console.log(P),countryCode:t,copyLayouts:r.productSelection},w)}),c&&w!=""&&g(ce,{children:g(Kc,{defaultSku:w,theme:"light",setSelected:P=>console.log("sku"+P),addToBag:()=>console.log("naoo"),dropdownOpen:E,setImage:P=>console.log(P),inBasket:()=>!1,leadSku:w,setCta:P=>console.log(P),onError:P=>console.log(P),countryCode:t,outOfStock:(r==null?void 0:r.productSelection.outOfStock)||"Out of stock",notForSale:(r==null?void 0:r.productSelection.notForSale)||"Not for sale",buyNow:(r==null?void 0:r.productSelection.buyNow)||"Buy now",ctaText:r.productSelection.cta,keyFeatures:r.productSelection.keyFeatures,colorText:r.productSelection.color},w)}),h&&w!=""&&g(ce,{children:g(Zc,{defaultSku:w,theme:"light",setSelected:P=>console.log("sku"+P),addToBag:()=>console.log("naoo"),dropdownOpen:E,setImage:P=>console.log(P),inBasket:()=>!1,leadSku:w,setCta:P=>console.log(P),onError:P=>console.log(P),countryCode:t,outOfStock:(r==null?void 0:r.productSelection.outOfStock)||"Out of stock",notForSale:(r==null?void 0:r.productSelection.notForSale)||"Not for sale",buyNow:(r==null?void 0:r.productSelection.buyNow)||"Buy now",ctaText:r.productSelection.cta,keyFeatures:r.productSelection.keyFeatures,colorText:r.productSelection.color},w)})]})]})})},Wo=mt.div` width: 100%; padding: 24px 24px 24px 28px; background-color: #ffffff; border-radius: 20px; transition: border 0.4s ease; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; align-items: center; position: relative; display: flex; &:hover { border: 2px solid #006fcf; } &:last-child { &:hover { border: none; } } max-width: 340px; min-height: 295px; position: relative; @media (min-width: 768px) and (max-width: 1440px) { padding: 1.73611111vw; border-width: 0.13888889vw; } @media (max-width: 767px) { max-width: 300px; margin-bottom: 2.6vw; padding: 4.44444444vw; border-width: 0.55555556vw; /* min-height: 68.66666667vw; */ border-radius: 2.55555556vw; } `,ts=mt.div` position: absolute; z-index: 2; top: 50%; width: 40px; height: 40px; padding: 9px; background-color: #fff; border-radius: 100%; -webkit-transform: translateY(-50%); transform: translateY(-50%); left: 0; margin-left: -27px; border: 1px solid #c3c3c3; display: flex; justify-content: center; align-items: center; font-size: 36px; color: #000; /* Change the color of the plus sign */ @media (min-width: 768px) and (max-width: 900px) { width: 2.6vw; height: 2.6vw; padding: 0.6vw; margin-left: -2.8vw; } @media (max-width: 767px) { top: 0; width: 7.44444444vw; height: 7.44444444vw; margin: -5vw 0vw 0vw 0vw; padding: 2.22222222vw; left: 50%; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); } `,ns=mt.span` font-size: 36px; margin-top: 4px; @media (min-width: 768px) and (max-width: 900px) { font-size: 3vw; margin-bottom: 0.4vw; } @media (max-width: 767px) { font-size: 7vw; margin-bottom: 0vw; } `;function ny(){var st;const t={copy:"bandleBuilder.json",skus:"bandleBuilderSkus.json"},n=en(),r=$p(),[o,i]=y.useState(null),[l,s]=y.useState(!1),[u,a]=y.useState([]),[c,h]=y.useState(),[m,k]=y.useState([]),[v,w]=y.useState(!0);if(y.useEffect(()=>{const V=()=>{var Ne;const M=(Ne=window.state)==null?void 0:Ne.newBundle;console.log("newBundle:",M),w(M!==!0);const K=document.getElementById("productosyofertas");K&&(K.style.display=M===!0?"none":"block")};V();const ne=()=>{console.log("Storage or event change detected"),V()};return window.addEventListener("storage",ne),window.addEventListener("newBundleChanged",ne),()=>{window.removeEventListener("storage",ne),window.removeEventListener("newBundleChanged",ne)}},[]),!v)return null;const{mainProduct:_,secondProduct:d,thirdProduct:p,mainAccessary:f,secondAccessary:E,thirdAccessary:S,mainProductCategory:x,secondProductCategory:T,thirdProductCategory:I,updateSecondProductCategory:D,updateThirdProductCategory:j,editMainProduct:ae,editSecondProduct:Q,editThirdProduct:ie,mainProductConfigurator:ue,updateMainProductConfigurator:se,secondProductConfigurator:b,updateSecondProductConfigurator:he,thirdProductConfigurator:N,updateThirdProductConfigurator:B,updateSkuToView:W,updateActiveTab:q,updateActiveSubCategoryTab:$,mainProductSubCategory:O,secondProductSubCategory:R,thirdProductSubCategory:U,updateMainProductSubCategory:C,updateSecondProductSubCategory:H,updateThirdProductSubCategory:z,countryCode:G,updateCountryCode:ee}=y.useContext(je),{updateMainProduct:te,updateSecondProduct:P,updateThirdProduct:pe}=y.useContext(je),{updateEditMainProduct:ye,updateEditSecondProduct:oe,updateEditThirdProduct:ve}=y.useContext(je),X=["uk","de","fr","es","it"],Z=Object.assign({"./util/data/de-de/bandleBuilder.json":()=>Pt(()=>import("./bandleBuilder-0635806f.js"),[]),"./util/data/de-de/bandleBuilderSkus.json":()=>Pt(()=>import("./bandleBuilderSkus-e3cc5fda.js"),[]),"./util/data/es-es/bandleBuilder.json":()=>Pt(()=>import("./bandleBuilder-73d72bcb.js"),[]),"./util/data/es-es/bandleBuilderSkus.json":()=>Pt(()=>import("./bandleBuilderSkus-659fdf21.js"),[]),"./util/data/fr-fr/bandleBuilder.json":()=>Pt(()=>import("./bandleBuilder-e70cf311.js"),[]),"./util/data/fr-fr/bandleBuilderSkus.json":()=>Pt(()=>import("./bandleBuilderSkus-c80db08b.js"),[]),"./util/data/it-it/bandleBuilder.json":()=>Pt(()=>import("./bandleBuilder-44723d82.js"),[]),"./util/data/it-it/bandleBuilderSkus.json":()=>Pt(()=>import("./bandleBuilderSkus-e4003262.js"),[]),"./util/data/uk-uk/bandleBuilder.json":()=>Pt(()=>import("./bandleBuilder-bdd57a5f.js"),[]),"./util/data/uk-uk/bandleBuilderSkus.json":()=>Pt(()=>import("./bandleBuilderSkus-bcc831e4.js"),[])}),Se=()=>{const ne=new URL(window.location.href).pathname.split("/").filter(M=>M);for(let M of ne)if(X.includes(M))return M;return"uk"},we=V=>`https://ai-meets-ai.s3.us-east-2.amazonaws.com/${G}/${V}`,Ke=async(V,ne)=>{const M=`./util/data/${V}-${V}/${ne}`;if(Z[M])return Z[M]().then(K=>K.default);throw new Error(`File ${M} not found`)},lt=async V=>{const ne=await fetch(V);if(!ne.ok)throw new Error(`Failed to fetch ${V}: ${ne.statusText}`);return await ne.json()};y.useEffect(()=>{window.state=window.state||{},window.state.newBundle=!1;let V=Se();V||(V="uk"),ee(V)},[ee]),y.useEffect(()=>{G&&(async()=>{try{let ne,M;ne=await lt(we(t.copy)),M=await lt(we(t.skus)),h(ne),k(M),console.log("Data fetched:",M)}catch(ne){console.error("Error fetching data:",ne)}})()},[G]);const Re=async()=>{s(!1);let V=p!==""?"https://api.shop.samsung.com/tokocommercewebservices/v2/uk/userData/anonymous/simulatecart?productCodes="+_+","+d+","+p:d!==""?"https://api.shop.samsung.com/tokocommercewebservices/v2/uk/userData/anonymous/simulatecart?productCodes="+_+","+d:"https://api.shop.samsung.com/tokocommercewebservices/v2/uk/userData/anonymous/simulatecart?productCodes="+_;fetch(V).then(ne=>ne.json()).then(ne=>{console.log(V),s(!0),a(ne),console.log(ne),a(ne)},ne=>{s(!0),i(ne)})};y.useEffect(()=>{Re()},[_,d,p]),y.useState(""),y.useState(""),y.useState(""),y.useState("");const Y=V=>{var ne=n?120:60;setTimeout(()=>{const M=document.getElementById(V);var K=M!==null?M.getBoundingClientRect().top-ne:0;window.scrollTo({top:window.scrollY+K,behavior:"smooth"})},500)},fe=()=>{q(""),$(""),W(""),ye(!1),oe(!1),ve(!1),$("")};return g(ce,{children:g("div",{id:"bundle-component",style:{maxWidth:"1440px",margin:"0 auto",position:"relative",marginTop:"0px"},children:L("div",{style:{padding:n?"4vw 4vw":r?"3vw 2vw":"50px",background:"#F7F7F7",borderRadius:"12px",margin:n?"0vw 3vw 3vw":"0px 0px 40px"},children:[L("section",{style:{width:"100%",maxWidth:"1440px",justifyContent:"center",alignItems:"center",display:"flex",margin:"0 auto",marginBottom:n?"":"40px",gap:r?"1.2vw":"12px",boxSizing:"border-box",flexDirection:n?"column":"row"},children:[L(Wo,{style:{border:_!=""?"0px":"1px solid black",justifyContent:_!=""?"flex-start":"center"},children:[_&&g("div",{style:{position:"absolute",right:"12px",top:"12px",zIndex:"2",cursor:"pointer"},onClick:()=>{d?(te(d),C(R)):(te(""),q("")),p?(P(p),D(I),H(U),j(""),z(""),pe("")):P(""),fe()},...me("DeleteFirstProductClicked"),children:g("svg",{width:"18px",height:"18px",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 .333c.448 0 .814.354.833.798V2.5H13.5v1.333h-1.025l-.898 11.055a.853.853 0 01-.808.778H3.268a.853.853 0 01-.84-.74l-.005-.037-.898-11.055H.5V2.5h3.667V1.167c0-.448.353-.814.797-.833H9zm2.137 3.5H2.863l.854 10.5h6.566l.854-10.5zm-1.97 8.5V6H7.833v6.334h1.334zM6.167 6v6.334H4.833V6h1.334zM5.5 1.667h3V2.5h-3v-.833z",fill:"#000"})})}),!_&&L(ce,{children:[g(le,{style:{textAlign:"center",fontSize:"16px",fontWeight:"bold",lineHeight:"1rem"},children:c==null?void 0:c.firstCardBox.title}),g(le,{style:{textAlign:"center",fontSize:"12px",fontWeight:"700"},children:c==null?void 0:c.firstCardBox.body}),g(Ut,{onClick:()=>{se(!0),fe(),Y("choose-your-la-product")},...me("AddFirstProductClicked"),size:n?26:14,style:{border:"1px solid #000",position:"absolute",bottom:"15px"},children:(c==null?void 0:c.firstCardBox.cta)||"Add a product"})]}),_&&L(ce,{children:[g(ql,{defaultSku:_,accessarySku:f,product:"mainproduct",theme:"light",setSelected:V=>console.log("sku"+V),addToBag:()=>console.log("naoo"),setImage:V=>console.log(V),inBasket:()=>!1,leadSku:_,setCta:V=>console.log(V),onError:V=>console.log(V),outOfStock:(c==null?void 0:c.productSelection.outOfStock)||"Out of stock",notForSale:(c==null?void 0:c.productSelection.notForSale)||"Not for sale",buyNow:(c==null?void 0:c.productSelection.buyNow)||"Buy now",saveText:(c==null?void 0:c.productSelection.save)||"Save"},_),g(On,{onClick:()=>{ye(!0),oe(!1),ve(!1),W(_),x!=""&&q(x),O!=""&&$(O),Y("choose-your-la-product")},...me("EditFirstProductClicked"),style:{border:"1px solid #707070",borderColor:"#707070",position:"absolute",bottom:"15px"},children:(c==null?void 0:c.firstCardBox.editSelection)||"Edit a product"})]})]}),c&&g(Uo,{showConfigurator:n&&(ue||ae),countryCode:G,dataSkus:m,copyData:c}),L(Wo,{style:{border:d!=""?"0px":"1px solid black",justifyContent:d!=""?"flex-start":"center"},children:[g(ts,{children:g(ns,{children:"+"})}),d&&g("div",{style:{position:"absolute",right:"12px",top:"12px",zIndex:"2",cursor:"pointer"},onClick:()=>{p?(P(p),D(I),H(U),pe("")):P(""),fe()},...me("DeleteSecondProductClicked"),children:g("svg",{width:"18px",height:"18px",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 .333c.448 0 .814.354.833.798V2.5H13.5v1.333h-1.025l-.898 11.055a.853.853 0 01-.808.778H3.268a.853.853 0 01-.84-.74l-.005-.037-.898-11.055H.5V2.5h3.667V1.167c0-.448.353-.814.797-.833H9zm2.137 3.5H2.863l.854 10.5h6.566l.854-10.5zm-1.97 8.5V6H7.833v6.334h1.334zM6.167 6v6.334H4.833V6h1.334zM5.5 1.667h3V2.5h-3v-.833z",fill:"#000"})})}),!d&&L(ce,{children:[g(le,{style:{textAlign:"center",fontSize:"16px",fontWeight:"bold",lineHeight:"1rem"},children:c==null?void 0:c.secondCardBox.title}),g(le,{style:{textAlign:"center",fontSize:"12px",fontWeight:"700"},children:c==null?void 0:c.secondCardBox.body})]}),_&&!d&&g(Ut,{onClick:()=>{he(!0),fe(),Y("choose-your-la-product")},...me("AddSecondProductClicked"),size:n?26:14,style:{border:"1px solid #000",position:"absolute",bottom:"15px"},children:(c==null?void 0:c.secondCardBox.cta)||"Add a product"}),d&&L(ce,{children:[g(ql,{defaultSku:d,accessarySku:E,theme:"light",product:"secondproduct",setSelected:V=>console.log("sku"+V),addToBag:()=>console.log("naoo"),setImage:V=>console.log(V),inBasket:()=>!1,leadSku:d,setCta:V=>console.log(V),onError:V=>console.log(V),outOfStock:(c==null?void 0:c.productSelection.outOfStock)||"Out of stock",notForSale:(c==null?void 0:c.productSelection.notForSale)||"Not for sale",buyNow:(c==null?void 0:c.productSelection.buyNow)||"Buy now",saveText:(c==null?void 0:c.productSelection.save)||"Save"},d),g(On,{onClick:()=>{ye(!1),oe(!0),ve(!1),W(d),T!=""&&q(T),R!=""&&$(R),Y("choose-your-la-product")},...me("EditSecondProductClicked"),style:{border:"1px solid #707070",borderColor:"#707070",position:"absolute",bottom:"15px"},children:(c==null?void 0:c.secondCardBox.editSelection)||"Edit a product"})]})]}),c&&g(Uo,{showConfigurator:n&&(b||Q),countryCode:G,dataSkus:m,copyData:c}),L(Wo,{style:{border:p!=""?"0px":"1px solid black",justifyContent:p!=""?"flex-start":"center"},children:[g(ts,{children:g(ns,{children:"+"})}),p&&g("div",{style:{position:"absolute",right:"12px",top:"12px",zIndex:"2",cursor:"pointer"},onClick:()=>{p&&pe(""),fe(),j(""),z("")},...me("DeleteThirdProductClicked"),children:g("svg",{width:"18px",height:"18px",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",focusable:"false",children:g("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 .333c.448 0 .814.354.833.798V2.5H13.5v1.333h-1.025l-.898 11.055a.853.853 0 01-.808.778H3.268a.853.853 0 01-.84-.74l-.005-.037-.898-11.055H.5V2.5h3.667V1.167c0-.448.353-.814.797-.833H9zm2.137 3.5H2.863l.854 10.5h6.566l.854-10.5zm-1.97 8.5V6H7.833v6.334h1.334zM6.167 6v6.334H4.833V6h1.334zM5.5 1.667h3V2.5h-3v-.833z",fill:"#000"})})}),!p&&L(ce,{children:[g(le,{style:{textAlign:"center",fontSize:"16px",fontWeight:"bold",lineHeight:"1rem"},children:c==null?void 0:c.thirdCardBox.title}),g(le,{style:{textAlign:"center",fontSize:"12px",fontWeight:"700"},children:c==null?void 0:c.thirdCardBox.body})]}),_&&d&&!p&&g(Ut,{onClick:()=>{B(!0),fe(),Y("choose-your-la-product")},...me("AddThirdProductClicked"),size:n?26:14,style:{border:"1px solid #000",position:"absolute",bottom:"15px"},children:(c==null?void 0:c.thirdCardBox.cta)||"Add a product"}),p&&L(ce,{children:[g(ql,{defaultSku:p,accessarySku:S,product:"thirdproduct",theme:"light",setSelected:V=>console.log("sku"+V),addToBag:()=>console.log("naoo"),setImage:V=>console.log(V),inBasket:()=>!1,leadSku:p,setCta:V=>console.log(V),onError:V=>console.log(V),outOfStock:(c==null?void 0:c.productSelection.outOfStock)||"Out of stock",notForSale:(c==null?void 0:c.productSelection.notForSale)||"Not for sale",buyNow:(c==null?void 0:c.productSelection.buyNow)||"Buy now",saveText:(c==null?void 0:c.productSelection.save)||"Save"},p),g(On,{onClick:()=>{ye(!1),oe(!1),ve(!0),W(p),I!=""&&q(I),U!=""&&$(U),Y("choose-your-la-product")},...me("EditThirdProductClicked"),style:{border:"1px solid #707070",borderColor:"#707070",position:"absolute",bottom:"15px"},children:(c==null?void 0:c.thirdCardBox.editSelection)||"Edit a product"})]})]}),c&&g(Uo,{showConfigurator:n&&(N||ie),countryCode:G,dataSkus:m,copyData:c}),L(Wo,{style:{padding:"24px 24px",justifyContent:"inherit"},children:[g(ts,{children:g(ns,{children:"="})}),u&&L(ce,{children:[L("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"},children:[g("div",{children:g(le,{weight:"700",size:n?26:20,style:{fontSize:n?"18px":"20px"},children:c==null?void 0:c.bundleResults.total})}),g("div",{children:g(le,{weight:"700",style:{fontSize:n?"18px":"20px"},size:n?26:20,children:Cl((st=u==null?void 0:u.totalPrice)==null?void 0:st.value,G)})})]}),!d&&g(Ut,{size:n?26:14,...me("addToBasketClicked"),style:{border:"1px solid #ddd",position:"absolute",bottom:"15px",background:"#ddd",color:"#aaa",cursor:"none",PointerEvent:"none"},children:(c==null?void 0:c.bundleResults.cta)||"Add to basket"}),d&&g(Ut,{onClick:()=>{const V=[];_!=null&&_!==""&&V.push(_),d!=null&&d!==""&&V.push(d),p!=null&&p!==""&&V.push(p),f!=null&&f!==""&&V.push(f),E!=null&&E!==""&&V.push(E),S!=null&&S!==""&&V.push(S);const ne=V.map(K=>({productCode:K,services:[],qty:1}));async function M(){await fetch(`https://api.shop.samsung.com/tokocommercewebservices/v2/${G}/addToCart/multi?fields=BASIC`,{headers:{accept:"application/json, text/javascript, */*; q=0.01","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","content-type":"application/json"},body:JSON.stringify(ne),method:"POST",mode:"cors",credentials:"include"}).then(async K=>{await K.json(),window.location.href=`https://shop.samsung.com/${G}/cart`}).catch(K=>{console.log(K.message)})}M()},style:{border:"1px solid #A5A5A5",position:"absolute",bottom:"15px","&:hover":{background:"#fff"}},...me("addToBasketClicked"),children:(c==null?void 0:c.bundleResults.cta)||"Add to basket"})]})]})]}),c&&g(Uo,{showConfigurator:!n,countryCode:G,dataSkus:m,copyData:c})]})})})}const ry=e=>{e&&e instanceof Function&&Pt(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:t,getFID:n,getFCP:r,getLCP:o,getTTFB:i})=>{t(e),n(e),r(e),o(e),i(e)})},oy=k0` * { box-sizing: border-box; } [hidden] { display: none; } font-family: 'SamsungOne, sans-serif'; margin: auto; background: white; color: black; > div, .maxwidth-limit { max-width: 1440px; margin: 0 auto; } .disclaimer { width: 80%; @media screen and (min-width: 768px) { width: 60%; } } .terms { margin: 0vw 5.55556vw; @media screen and (min-width: 768px) { margin: 0vw 8.19444vw; } @media screen and (min-width: 1440px) { margin: 0 120px; } } @font-face { font-family: 'SamsungSharpSans'; src: url('https://d199c2lmsg7yuw.cloudfront.net/SamsungSharpSans-Regular.otf') format('opentype'); font-style: normal; font-weight: 400; } @font-face { font-family: 'SamsungSharpSans'; src: url('https://d199c2lmsg7yuw.cloudfront.net/SamsungSharpSans-Medium.otf') format('opentype'); font-style: normal; font-weight: 500; } @font-face { font-family: 'SamsungSharpSans'; src: url('https://d199c2lmsg7yuw.cloudfront.net/SamsungSharpSans-Bold.otf') format('opentype'); font-style: normal; font-weight: 700; } @font-face { font-display: swap; font-family: 'SamsungOne'; font-style: normal; font-weight: normal; src: local('SamsungOne'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-400.woff2') format('woff2'), url('/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-400.woff') format('woff'), url('/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-400.ttf') format('truetype'), url('/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-400.eot?#iefix') format('embedded-opentype'); } @font-face { font-display: swap; font-family: 'SamsungOne'; font-style: normal; font-weight: bold; src: local('SamsungOne'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.woff2') format('woff2'), url('/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.woff') format('woff'), url('/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.ttf') format('truetype'), url('/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.eot?#iefix') format('embedded-opentype'); } .cheil-static-ecom *, .cheil-static-ecom *:after, .cheil-static-ecom *:before { box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; scroll-behavior: smooth; } .cheil-static-ecom { overflow: hidden; } #content > div.par.parsys > div.cl-g-sticky-navigation-text.section { display: none; } .visibleNav { display: block !important; } .pointer { cursor: pointer; } .addeventatc-selected { top: -175px!important; } #addeventatc2-drop { top: 0px!important; left: -55%!important; } .addevent { color: #fff!important; display: flex!important; justify-content: center; align-items: center; } .addevent:hover { color: #000!important; background: rgba(0,0,0,0)!important; } .addevent:hover svg #calendar-icon > * { stroke: #000!important; } .addeventatc_dropdown { width: 186px; } .addeventatc_dropdown span { background: none!important; padding: 14px 10px 14px 18px!important; } .divider { position: relative; width: 2px; &:after { content: ""; position: absolute; border-left: 2px solid black; height: 125%; border-radius: 2px; top: -0.2em; @media screen and (max-width: 768px) { border-left: 1px solid black; } } } .noWrap { white-space: nowrap; } .copyx { display: none!important; } .addeventatc { @media screen and (max-width: 768px){ margin: 3em auto; } span { display: none; } } .addeventatc .addeventatc_icon { display: none; } .ReactModal__Overlay { background: rgba(0, 0, 0, 0.5)!important; } .slick-slider { display: flex; } .slick-track { display: flex!important; align-items: center!important;; } img { &:focus { outline: none; } } #MinimalForm { display: none; } .formIframe { border: 0; } .CompareArrowLeft { position: absolute; top: -40%; right: 15%; } .CompareArrowRight { position: absolute; top: -40%; left: 15%; } .flex-end { align-self: flex-end; } .flex-start { align-self: flex-start; } .wider { letter-spacing: 0.1em; } .slick-slide { /* height: 50vh; */ max-width: 95vw !important; /* width: 75vw !important; */ overflow: hidden; } .slick-slide:focus { outline: none; } .slick-slider { max-width: 1440px; width: 95vw; } .slick-track { width: 95vw; } #apps { .slick-slider{ width: 100%; overflow: visible; margin: 0 auto; } .slick-arrow { display: none !important; } .slick-list { width: 100%; } } #cheil-id-root__financeModule{ margin: 25px auto !important; } .ReactModal__Body--open, .ReactModal__Html--open { overflow: hidden; } .ReactModal__Content { opacity: 0; max-width:1440px; transition: opacity 300ms ease-in-out; } .ReactModal__Content--after-open { opacity: 1; } .ReactModal__Content--before-close { opacity: 0; } .animatedSvg { stroke-dasharray: 100; stroke-dashoffset: 100; &_concierge { animation: dash 3s ease-in-out 1s forwards; } &_chat { animation: dashAlt 3s ease-in-out 2s forwards; } &_appointment { animation: dash 3s ease-in-out 3s forwards; } &_people { animation: dash 3s ease-in-out 4s forwards; } } @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { .animatedSvg { stroke-width: 0; stroke-dashoffset: 0; stroke-dasharray: 0; &_concierge { animation: none; } &_chat { animation:none; } &_appointment { animation: none; } &_people { animation: none; } } } _:-ms-lang(x), _:-webkit-full-screen, .animatedSvg{ stroke-width: 0; stroke-dashoffset: 0; stroke-dasharray: 0; &_concierge { animation: none; } &_chat { animation:none; } &_appointment { animation: none; } &_people { animation: none; } } @keyframes dash { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; stroke-width: 0 } } @keyframes dashAlt { 0% { stroke-dashoffset: 100; } 100% { stroke-dashoffset: 0; } } abbr,address,article,aside,audio,b,blockquote,body,canvas,caption,cite,code,dd,del,details,dfn,div,dl,dt,em,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,ins,kbd,label,legend,li,mark,menu,nav,object,ol,p,pre,q,samp,section,small,span,strong,sub,tbody,td,tfoot,th,thead,time,tr,ul,var,video { margin: 0; padding: 0; vertical-align: top; -webkit-box-sizing: border-box; box-sizing: border-box } `;window.state=window.state||{newBundle:!1};const iy=rs.createRoot(document.getElementById("cheil-static-ai-meets-ai"));iy.render(g(Vn.StrictMode,{children:g(w0,{theme:Tp,children:L(n1,{children:[g(oy,{}),g(ny,{})]})})}));try{window.sg.components.featureColumnCarousel.init()}catch{console.log("feature column carousel not loaded yet")}ry(); });

Enjoy the power of AI in the knowledge your privacy is secure

Samsung Knox provides a secure digital environment that allows you to enjoy our AI products and services safely.
See https://www.samsungknox.com/en/secured-by-knox for more information.

Illustration of a smartphone with a digital security shield and a synchronization icon. Illustration of a smartphone with a digital security shield and a synchronization icon.

Mobile

From the moment you power on your Galaxy device, Knox ensures the security of your confidential and sensitive data at every level, offering real-time protection 24/7.

Illustration of a smart TV with a digital security shield. Illustration of a smart TV with a digital security shield.

TV

Whether it’s streaming content or using online services on one our AI TVs, relax with comprehensive protection of your data - all thanks to the power of Knox security.

Illustration of a smart refrigerator and vacuum cleaner with a digital security shield and a connectivity icon. Illustration of a smart refrigerator and vacuum cleaner with a digital security shield and a connectivity icon.

Home Appliance

Enjoy peace of mind with Knox's robust authentication and proven cryptography, enabling you to confidently monitor and control your Bespoke AI devices.

Our AI products - your easier lifestyle

Innovative AI

Our products incorporate the latest innovative technology created to make life better

A triangle shape displays a female sitting on top of a Samsung washing machine. To the left is an image of a silver Samsung Bespoke Family Hub. A triangle shape displays a female sitting on top of a Samsung washing machine. To the left is an image of a silver Samsung Bespoke Family Hub.

AI For All

Discover how our AI empowers you from imagination to everyday life.

A range of Samsung smartphones and tablets are shown with their screens facing and displaying a starry night. Across them are the words, ‘Galaxy AI is here’. A range of Samsung smartphones and tablets are shown with their screens facing and displaying a starry night. Across them are the words, ‘Galaxy AI is here’.

Galaxy AI

Do more in a blink of an AI. Communicate in a different language, easily find things online or nail the perfect picture.

A green kitchen is shown with a black Samsung oven and silver Samsung fridge on display. To the left are a black Samsung dryer and washing machine stacked on top of each other. A green kitchen is shown with a black Samsung oven and silver Samsung fridge on display. To the left are a black Samsung dryer and washing machine stacked on top of each other.

Bespoke AI

Do life efficiently. Worry less about the washing, cleaning and cooking with a range of AI appliances.

A Samsung 8K Neo QLED is shown with a firework display on the screen. A Samsung 8K Neo QLED is shown with a firework display on the screen.

Samsung TV AI

Switch on to energy efficiency, 8K AI Upscaling12, incredibly immersive cinematic sound and more.

1. Instant Slow-mo is only available on the pre-installed Samsung Video Player and Samsung Gallery app. Service availability may differ by the video spec.

2. Results may vary depending on visual matches. Requires internet connection. Users may need to update Android to the latest version. Product functionality may be dependent on your app and device settings. Some functions may not be compatible with certain apps. Availability of the service varies by country and language. Accuracy of results is not guaranteed.

3. Translating feature in Chat Assist requires a network connection, Samsung Account login and language pack download from the Galaxy store. Must meet length requirements to activate feature. Service availability may vary by country, region or language. Some chat applications may not support this feature. Accuracy of results is not guaranteed.

4. Live Translate requires a network connection and Samsung Account login. Live Translate is only available on the pre-installed Samsung Phone app. Certain languages may require language pack download. Available in 13 languages from launch. Accuracy of results is not guaranteed. Function availability may vary by device model.

5. Note Assist requires a network connection and Samsung Account login. Character limit applies. Service availability may vary by language. Accuracy of results is not guaranteed.

6. Generative Edit requires a network connection and Samsung Account login. Editing with Generative Edit results in a resized photo up to 12MP. A visible watermark is overlaid on the image output upon saving in order to indicate that the image is generated by AI. The accuracy and reliability of the generated output is not guaranteed. Function availability may vary by device model.

7. Summary and translation results may vary each time.

8. Only available for smart appliances that are compatible with SmartThings. The SmartThings App is available on Android and iOS devices. A Wi-Fi connection and a Samsung account are required. Based on internal testing. The energy consumption of this 11kg model is 32kWh, which is 40% more energy efficient compared to the minimum threshold of energy efficiency class A (53kWh for 11kg models). Energy ratings tested with Eco 40-60 program, 10% savings tested with Eco 40-60 program.

9. Energy saving may vary according to model, viewing conditions or types of content. Does not work with gameplay or viewing priority modes. Energy savings based on internal test results and may vary. Requires SmartThings app, Internet connection, and SmartThings enabled devices. Adaptive Brightness will not operate in environments exceeding 80 lux.

10. Intelligent Mode is only available on the Q70 series and upwards for 2020 - 2023 TV models.

11. AI Motion Enhancer Pro applicable to QN900D. AI Motion Enhancer applicable to QN800D. Not applicable to PC connection and Game Mode.

12. 8K/4K AI upscaling may not apply to PC connection and Game Mode. NQ8 AI Gen3 Processor applies only to the QN900D model.

13. As of March 2024, AI Vision Inside can recognize 33 food items like fresh fruits and veggies. If the food is not recognizable, it may be listed as unknown item. AI Vision Inside cannot identify or list any food items in the fridge door bins or freezer. It recognizes food items based on deep learning models, which may be updated periodically to improve accuracy.

14. Only available on certain models. A dish should be placed in the center of the oven to achieve the best recognition. The accuracy of the recognition may vary depending on the actual usage conditions, such as the type of ingredients, cleanliness of the cavity and the brightness of the room light. For more detailed information, please refer to the user guide enclosed with the package.

15. Can be applied when the selected washing temperature is 20~40°C. Max saving from running at 20 degrees instead of 40 degrees.

16.  Total energy consumption reduced 18.2% and the time cooked reduced 22.6% according to internal test results based on IEC- 60350 test protocol (small cakes, convection 165℃, compared to whole compartment). Actual savings will vary depending on the cooking item, use, and other factors.

17. Object recognition may be affected by an objects shape or the environmental conditions.

18. Based on an AI-created algorithm. Actual results may vary depending on individual use.