Build a bundle.
Save a bundle.1

BUNDLE BUILDER 2.0 CODE

 ","")}}))}),S.includes("SM-Q5")&&f(dd,{}),f("div",{style:{display:"flex",justifyContent:$?"center":"left"},children:z!==null&&z})]}),!$&&S.includes("SM-Q5")&&f("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"10px",padding:"15px",marginTop:"20px"},children:f(Z,{weight:"normal",size:"12",style:{fontWeight:"400",fontSize:"12px",lineHeight:"14px"},children:"After receiving your Sizing kit, please enter your size on the 'My Order' page within 14 days. If you don't confirm within 14 days, your order will be cancelled and refunded. Due to high demand, some sizes could be delayed in delivery."})})]})})}),$&&S.includes("SM-Q5")&&f("div",{style:{backgroundColor:"#F4F4F4",borderRadius:"10px",padding:"15px",width:"90%",margin:"0 auto",marginTop:"15px"},children:f(Z,{weight:"normal",size:"12",style:{fontWeight:"400",fontSize:"12px",lineHeight:"14px"},children:"After receiving your Sizing kit, please enter your size on the 'My Order' page within 14 days. If you don't confirm within 14 days, your order will be cancelled and refunded. Due to high demand, some sizes could be delayed in delivery."})}),!S.includes("SM-Q5")&&de&&Object.keys(de).indexOf(S)>-1&&f(ue,{children:f(B1,{defaultSku:M,theme:"light",setSelected:ie=>console.log("sku"+ie),addToBag:(ie,ke)=>console.log("naoo"),setImage:ie=>console.log(ie),inBasket:ie=>!1,leadSkus:de[S],accessarySku:ie=>{C(ie)},setCta:ie=>console.log(ie),onError:ie=>console.log(ie)},de[S][0])})]}),!$&&f(ue,{children:O("div",{style:{width:$?"100%":c.layout.configCol2Width,display:"flex",flexDirection:"row",padding:$?"10px":"0px 0px",marginTop:$?"20px":"0px",justifyContent:$?"center":"left",borderRadius:c.layout.productWrapperBorderRadius,background:$?"":c.layout.productWrapperBackground,boxShadow:$?"":c.layout.productWrapperBoxShadow},children:[f("div",{style:{display:"flex",justifyContent:"center",width:"49%",paddingRight:"16px"},children:m&&m[S]&&f(ue,{children:f("div",{style:{width:$?"100%":"min(100%, 18.42vw)",aspectRatio:"3 / 2",backgroundImage:`url(${ne?((Me=m[S].gallery[ae])==null?void 0:Me.url)??"":m[S].picture.url})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",WebkitBackgroundSize:"contain",backgroundAttachment:"scroll",overflow:"visible",margin:"0 auto"},children:!m[S].picture.url&&f(wo,{height:"136",width:"200",viewBox:"0 0 200 136",style:{maxWidth:"100%"},children:f("rect",{x:"0",y:"0",rx:"15",ry:"15",width:"200",height:"136"})})})})}),O("div",{style:{maxWidth:"400px"},children:[f("div",{style:{display:"flex",justifyContent:$?"center":"left"},children:z!==null&&z}),f("div",{style:{paddingRight:"8px"},children:((Nu=(Hn=De==null?void 0:De.response)==null?void 0:Hn.resultData)==null?void 0:Nu.productList[0].modelList[0].usp)&&O(ue,{children:[f(Z,{weight:"normal",size:$?19:14,style:{textAlign:"left",fontSize:"14px",fontWeight:"700",color:"#000",marginBottom:"13px",marginTop:"30px"},children:"Key features"}),f("ul",{style:{listStyleType:"disc",paddingInlineStart:"12px",fontFamily:"SamsungOne",fontSize:"14px",fontWeight:"500"},children:De.response.resultData.productList[0].modelList[0].usp.slice(0,3).map((ie,ke)=>f("li",{style:{listStyleType:"disc",padding:"3px 0px"},children:ie},`usp_${ke}`))})]})}),S.includes("SM-Q5")&&f(dd,{}),E.length>0&&f("div",{id:"offerDetails",style:{borderRadius:"10px",background:"#F4F4F4",boxShadow:"0px 1px 3px 0px rgba(0, 0, 0, 0.20)",padding:"16px",marginTop:"18px"},children:E.map(ie=>f("div",{style:{flex:"1",fontSize:$?"12px":"14px",lineHeight:"1.33",fontFamily:"SamsungOne",fontWeight:"700",color:"#408BF7",clear:"both"},dangerouslySetInnerHTML:{__html:ie.replace(/ style="[^"]*"/g,"").replace("

 ","")}}))})]})]})})]})}):f("div",{style:{display:"flex",justifyContent:"center",alignItems:"center"},children:f("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 qt(e){return Array.isArray?Array.isArray(e):ph(e)==="[object Array]"}const W1=1/0;function H1(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-W1?"-0":t}function U1(e){return e==null?"":H1(e)}function Dt(e){return typeof e=="string"}function dh(e){return typeof e=="number"}function V1(e){return e===!0||e===!1||Q1(e)&&ph(e)=="[object Boolean]"}function fh(e){return typeof e=="object"}function Q1(e){return fh(e)&&e!==null}function ut(e){return e!=null}function us(e){return!e.trim().length}function ph(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const G1="Incorrect 'index' type",Y1=e=>`Invalid value for key ${e}`,K1=e=>`Pattern length exceeds max of ${e}.`,X1=e=>`Missing ${e} property in key`,Z1=e=>`Property 'weight' in key '${e}' must be a positive integer`,fd=Object.prototype.hasOwnProperty;class J1{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=hh(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 hh(e){let t=null,n=null,r=null,o=1,i=null;if(Dt(e)||qt(e))r=e,t=pd(e),n=ga(e);else{if(!fd.call(e,"name"))throw new Error(X1("name"));const l=e.name;if(r=l,fd.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(Z1(l));t=pd(l),n=ga(l),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function pd(e){return qt(e)?e:e.split(".")}function ga(e){return qt(e)?e.join("."):e}function q1(e,t){let n=[],r=!1;const o=(i,l,s)=>{if(ut(i))if(!l[s])n.push(i);else{let a=l[s];const u=i[a];if(!ut(u))return;if(s===l.length-1&&(Dt(u)||dh(u)||V1(u)))n.push(U1(u));else if(qt(u)){r=!0;for(let p=0,v=u.length;pe.score===t.score?e.idx{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Dt(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();Dt(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(ut(l)){if(qt(l)){let s=[];const a=[{nestedArrIndex:-1,value:l}];for(;a.length;){const{nestedArrIndex:u,value:p}=a.pop();if(ut(p))if(Dt(p)&&!us(p)){let v={v:p,i:u,n:this.norm.get(p)};s.push(v)}else qt(p)&&p.forEach((v,d)=>{a.push({nestedArrIndex:d,value:v})})}r.$[i]=s}else if(Dt(l)&&!us(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 mh(e,t,{getFn:n=K.getFn,fieldNormWeight:r=K.fieldNormWeight}={}){const o=new Iu({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(hh)),o.setSources(t),o.create(),o}function ly(e,{getFn:t=K.getFn,fieldNormWeight:n=K.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Iu({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function Zo(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=K.distance,ignoreLocation:i=K.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 sy(e=[],t=K.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 Pn=32;function ay(e,t,n,{location:r=K.location,distance:o=K.distance,threshold:i=K.threshold,findAllMatches:l=K.findAllMatches,minMatchCharLength:s=K.minMatchCharLength,includeMatches:a=K.includeMatches,ignoreLocation:u=K.ignoreLocation}={}){if(t.length>Pn)throw new Error(K1(Pn));const p=t.length,v=e.length,d=Math.max(0,Math.min(r,v));let m=i,y=d;const w=s>1||a,S=w?Array(v):[];let h;for(;(h=e.indexOf(t,y))>-1;){let P=Zo(t,{currentLocation:h,expectedLocation:d,distance:o,ignoreLocation:u});if(m=Math.min(P,m),y=h+p,w){let N=0;for(;N=W;te-=1){let ne=te-1,ye=n[e.charAt(ne)];if(w&&(S[ne]=+!!ye),q[te]=(q[te+1]<<1|1)&ye,P&&(q[te]|=(c[te+1]|c[te])<<1|1|c[te+1]),q[te]&E&&(g=Zo(t,{errors:P,currentLocation:ne,expectedLocation:d,distance:o,ignoreLocation:u}),g<=m)){if(m=g,y=ne,y<=d)break;W=Math.max(1,2*d-y)}}if(Zo(t,{errors:P+1,currentLocation:d,expectedLocation:d,distance:o,ignoreLocation:u})>m)break;c=q}const T={isMatch:y>=0,score:Math.max(.001,g)};if(w){const P=sy(S,s);P.length?a&&(T.indices=P):T.isMatch=!1}return T}function uy(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:d,alphabet:uy(d),startIndex:m})},v=this.pattern.length;if(v>Pn){let d=0;const m=v%Pn,y=v-m;for(;d{const{isMatch:h,score:c,indices:g}=ay(t,y,w,{location:o+S,distance:i,threshold:l,findAllMatches:s,minMatchCharLength:a,includeMatches:r,ignoreLocation:u});h&&(d=!0),v+=c,h&&g&&(p=[...p,...g])});let m={isMatch:d,score:d?v/this.chunks.length:1};return d&&r&&(m.indices=p),m}}class _n{constructor(t){this.pattern=t}static isMultiMatch(t){return hd(t,this.multiRegex)}static isSingleMatch(t){return hd(t,this.singleRegex)}search(){}}function hd(e,t){const n=e.match(t);return n?n[1]:null}class cy 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 dy 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 fy 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 py 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 hy 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 my 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 yh extends _n{constructor(t,{location:n=K.location,threshold:r=K.threshold,distance:o=K.distance,includeMatches:i=K.includeMatches,findAllMatches:l=K.findAllMatches,minMatchCharLength:s=K.minMatchCharLength,isCaseSensitive:a=K.isCaseSensitive,ignoreLocation:u=K.ignoreLocation}={}){super(t),this._bitapSearch=new gh(t,{location:n,threshold:r,distance:o,includeMatches:i,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class vh 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 ya=[cy,vh,fy,py,my,hy,dy,yh],md=ya.length,gy=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,yy="|";function vy(e,t={}){return e.split(yy).map(n=>{let r=n.trim().split(gy).filter(i=>i&&!!i.trim()),o=[];for(let i=0,l=r.length;i!!(e[Ui.AND]||e[Ui.OR]),ky=e=>!!e[xa.PATH],Cy=e=>!qt(e)&&fh(e)&&!Sa(e),gd=e=>({[Ui.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function wh(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const l=ky(o);if(!l&&i.length>1&&!Sa(o))return r(gd(o));if(Cy(o)){const a=l?o[xa.PATH]:i[0],u=l?o[xa.PATTERN]:o[a];if(!Dt(u))throw new Error(Y1(a));const p={keyId:ga(a),pattern:u};return n&&(p.searcher=wa(u,t)),p}let s={children:[],operator:i[0]};return i.forEach(a=>{const u=o[a];qt(u)&&u.forEach(p=>{s.children.push(r(p))})}),s};return Sa(e)||(e=gd(e)),r(e)}function _y(e,{ignoreFieldNorm:t=K.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 Ey(e,t){const n=e.matches;t.matches=[],ut(n)&&n.forEach(r=>{if(!ut(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 zy(e,t){t.score=e.score}function Py(e,t,{includeMatches:n=K.includeMatches,includeScore:r=K.includeScore}={}){const o=[];return n&&o.push(Ey),r&&o.push(zy),e.map(i=>{const{idx:l}=i,s={item:t[l],refIndex:l};return o.length&&o.forEach(a=>{a(i,s)}),s})}class Pr{constructor(t,n={},r){this.options={...K,...n},this.options.useExtendedSearch,this._keyStore=new J1(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Iu))throw new Error(G1);this._myIndex=n||mh(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){ut(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r-1&&(a=a.slice(0,n)),Py(a,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=wa(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:l,n:s})=>{if(!ut(i))return;const{isMatch:a,score:u,indices:p}=n.searchIn(i);a&&o.push({item:i,idx:l,matches:[{score:u,value:i,norm:s,indices:p}]})}),o}_searchLogical(t){const n=wh(t,this.options),r=(s,a,u)=>{if(!s.children){const{keyId:v,searcher:d}=s,m=this._findMatches({key:this._keyStore.get(v),value:this._myIndex.getValueForItemAtKeyId(a,v),searcher:d});return m&&m.length?[{idx:u,item:a,matches:m}]:[]}const p=[];for(let v=0,d=s.children.length;v{if(ut(s)){let u=r(n,s,a);u.length&&(i[a]||(i[a]={idx:a,item:s,matches:[]},l.push(i[a])),u.forEach(({matches:p})=>{i[a].matches.push(...p)}))}}),l}_searchObjectList(t){const n=wa(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:l,i:s})=>{if(!ut(l))return;let a=[];r.forEach((u,p)=>{a.push(...this._findMatches({key:u,value:l[p],searcher:n}))}),a.length&&i.push({idx:s,item:l,matches:a})}),i}_findMatches({key:t,value:n,searcher:r}){if(!ut(n))return[];let o=[];if(qt(n))n.forEach(({v:i,i:l,n:s})=>{if(!ut(i))return;const{isMatch:a,score:u,indices:p}=r.searchIn(i);a&&o.push({score:u,key:t,value:i,idx:l,norm:s,indices:p})});else{const{v:i,n:l}=n,{isMatch:s,score:a,indices:u}=r.searchIn(i);s&&o.push({score:a,key:t,value:i,norm:l,indices:u})}return o}}Pr.version="7.0.0";Pr.createIndex=mh;Pr.parseIndex=ly;Pr.config=K;Pr.parseQuery=wh;Sy(xy);const Iy=e=>{var a,u,p;const{leadSku:t}=e,{data:n,error:r,finished:o}=Pu(t),[i,l]=x.useState(t??Object.keys(n)[0]);x.useEffect(()=>{t&&l(t)},[t]),$l({devices:n,selectedSku:i});const s=Lt();return x.useState(null),x.useState(!1),x.useState([]),x.useEffect(()=>{console.log("current sku in dropdown"),console.log(n)},[i]),(a=n[i])!=null&&a.price?f(ue,{children:n[i].price&&f(Z,{weight:"bold",style:{fontSize:s?"3.4vmin":"initial",minWidth:"20%"},children:n&&((p=(u=n[i])==null?void 0:u.price)==null?void 0:p.formattedValue)})}):null},Ny=Ke.li` padding: 4px; &:hover { background-color: #F2F2F2; border-radius: 2px; } @media (max-width: 767px) { padding: 4px 10px; } ${({active:e})=>e&&` background-color: #F7F7F7 ; border-radius: 2px; `} `,Ty=e=>{const{searchTerm:t,updateDropdownOpen:n,updateSearchTerm:r,devices:o}=e,i=Lt(),{data:l}=T1(o),{skuToView:s,updateSkuToView:a,pageName:u,activeSubCategoryTab:p,updateDiscountedCategoryIds:v}=x.useContext(Wt),[d,m]=x.useState(""),[y,w]=x.useState([]),S=window.location.href.includes("uk_student")?"uk_student":window.location.href.includes("uk_networks")?"uk_networks":"uk";return x.useEffect(()=>{if(w([]),l&&d!==""){const c=new Pr(l,{keys:["displayName"],includeScore:!0}).search(d);w(c.map(g=>g.item))}else w(l)},[l,d]),x.useEffect(()=>{m(t)},[t]),x.useEffect(()=>{var c,g;const h=document.getElementById("search-product");if(l.length===1){if(s==""&&a((c=y[0])==null?void 0:c.modelCode),h){h.style.display="none";const C=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0});document.dispatchEvent(C)}}else l.length>1&&h&&(h.style.display="block",s==""&&a((g=y[0])==null?void 0:g.modelCode))},[y]),f(ue,{children:y.map((h,c)=>h.stockStatusText!==null&&f(Ny,{id:"product-list"+c,active:h.modelCode===s,onClick:()=>{n(!1),r(""),a(h.modelCode)},...Qe(u+":"+p.trim().replace(/\s+/g,"").toLowerCase()+":dropdownproductclicked"),children:O("div",{style:{display:"flex",flexDirection:"row",gap:"8px",alignItems:"center",alignSelf:"stretch"},children:[f("div",{style:{height:"48px",width:"48px",aspectRatio:"1 / 1",backgroundImage:`url(${h.thumbUrl})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",overflow:"visible"},children:!h.thumbUrl&&f(wo,{height:"136",width:"200",viewBox:"0 0 200 136",style:{maxWidth:"100%"},children:f("rect",{x:"0",y:"0",rx:"15",ry:"15",width:"200",height:"136"})})}),f(Z,{weight:"400",style:{fontSize:i?"14px":"initial",width:i?"70%":"80%",maxWidth:"490px"},children:h.displayName}),S==="uk"&&f(Z,{weight:"700",style:{fontSize:i?"14px":"initial",minWidth:i?"20%":"62px"},children:h.promotionPriceDisplay}),S!=="uk"&&f(Iy,{leadSku:h.modelCode})]})},c))})};Ke.li` padding: 12px 20px; &:empty { display: none; } &:hover { background-color: #f7f7f7; } @media (max-width: 767px) { padding: 4px 10px; } `;const yd=()=>{const e=Lt(),t=Nl(),n=Tl();x.useState(null),x.useState(!1),x.useState([]);const r=zr(),{pageName:o,skuToView:i,updateSkuToView:l,activeTab:s,updateActiveTab:a,editProduct:u,activeSubCategoryTab:p,updateActiveSubCategoryTab:v,config:d,bundleCurrentIndex:m,showConfigurator:y,eligibleskus:w,updateEligibleskus:S,updateEligibleAccessarySkus:h,discountedCategoryIds:c,updateDiscountedCategoryIds:g,updateDiscountedBundleId:C}=x.useContext(Wt),E=x.useRef(null),[T,P]=x.useState(!1),[N,F]=x.useState(""),[W,$]=x.useState(""),[q,le]=x.useState(null),te=_=>{$(_.target.value),_.target.value.length>2?F(_.target.value.toLowerCase()):_.target.value==""&&F("")},ne=_=>{P(_)},ye=_=>{F(_)},ae=()=>{l(""),$(""),F("")};x.useEffect(()=>{function _(A){if(E.current&&A.target){const j=A.target;E.current.contains(j)||(P(!1),$(""),F(""))}}return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const R=_=>{const A=d.bundles.find(j=>j.id===_&&j.isDefault);if(A){const j=d.categories[A.categories];return m>1&&Array.isArray(c)&&c.length>0?j.filter(Y=>c.includes(Y.id)):j}return[]};let z=[];z=m!==0?R(m):[],x.useEffect(()=>{const _=Array.isArray(z)?z.length>1?z.find(A=>A.id===s||A.isDefault):z[0]:null;_&&!u&&(a(_.id),v(_.name),_.isDefault&&ne(!0),m==1&&Array.isArray(_.nextBundleDCIds)&&_.nextBundleDCIds.length>0&&(g(_.nextBundleDCIds),le(_.dcBundleId)))},[z,m]);const B=_=>Array.isArray(_)?_:typeof _=="object"&&_!==null?Object.keys(_):[],V=(_,A)=>{var j;return typeof _=="object"&&_!==null&&A in _?((j=_[A])==null?void 0:j.nextBundleDCIds)||[]:[]},M=(_,A)=>{var j;return typeof _=="object"&&_!==null&&A in _&&((j=_[A])==null?void 0:j.dcBundleId)||0};return x.useEffect(()=>{const _=Array.isArray(z)?z.find(A=>A.id===s):null;if(i!=""&&_&&m==1){const A=V(_.eligibleskus,i),j=M(_.eligibleskus,i);A&&A.length>0&&(g(A),le(j))}},[i]),x.useEffect(()=>{const _=Array.isArray(z)?z.length>1?z.find(A=>A.id===s):z[0]:null;if(_){const A=B(_.eligibleskus);S(A),_.eligibleaccessaryskus&&Object.keys(_.eligibleaccessaryskus).length>0&&h(_.eligibleaccessaryskus),F(""),$("")}},[s,m]),f(ue,{children:y&&O("section",{id:"choose-your-product",style:{padding:e?"0px":t?"30px":n?"30px 90px":"30px 120px",background:e?"":r.layout.configBg,borderRadius:e?"0px":"20px",display:"block",margin:e?"32px auto":"0px",maxWidth:e?"100%":"unset",boxSizing:"border-box",width:"100%",marginTop:"40px"},children:[O("div",{style:{display:"flex",alignItems:"center",width:"100%",flexDirection:"column"},children:[f(Z,{font:"secondary",weight:"bold",size:"20",style:{width:"100%",display:"inline-block",textAlign:"center",fontSize:e?"16px":"20px",color:r.colors.black,fontWeight:"700",marginBottom:"24px"},children:"Which products do you want to save on today?"}),f("div",{id:"mininav",style:{display:"flex",height:"auto",opacity:1,flexWrap:"wrap",gap:"16px",justifyContent:"center",marginBottom:"20px, auto, 0px",width:"100%"},children:z==null?void 0:z.map(_=>O("div",{onClick:()=>{s!=_.id&&(S(null),m==1&&Array.isArray(_.nextBundleDCIds)&&_.nextBundleDCIds.length>0&&(g(_.nextBundleDCIds),le(_.dcBundleId)),a(_.id),v(_.name),P(!0),ae())},...Qe(o+":"+_.name.trim().replace(/\s+/g,"").toLowerCase()+"TabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",maxWidth:"130px",border:s==_.id?"1px solid #408BF7":e?"0px":`1px solid ${r.layout.categoryTileBorder}`,opacity:s==_.id?"1":"0.8",padding:"15px 0",borderRadius:"12px",background:r.layout.categoryTileBg,cursor:"pointer"},children:[f("img",{src:_.icon,alt:_.name,style:{marginBottom:"7px",height:"24px",width:"24px",filter:r.layout.iconFilter}}),f(Z,{font:"primary",weight:"500",style:{fontSize:"14px",textAlign:"center",color:r.colors.black},children:_.name})]},`category-${_.id}`))})]}),s&&w!=null&&O("div",{id:"search-box",style:{display:s?e?"block":"flex":"none",minHeight:s?"420px":"auto",flexDirection:"column",alignItems:"center"},children:[O("div",{id:"search-product",style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative"},children:[O("div",{style:{position:"relative",width:e?"100%":"684px",margin:e?"32px auto 0px":"40px 20px 0px 20px",boxSizing:"border-box"},children:[f("input",{type:"text",value:W,onChange:te,onClick:()=>{P(!0)},...Qe(o+":"+p.trim().replace(/\s+/g,"").toLowerCase()+":searchclicked"),style:{width:"100%",padding:"10px 5px 10px 20px",fontSize:e?"16px":"14px",border:T?"1px solid #408BF7":"1px solid #757575",background:"#F6F7F6",borderRadius:"99px",fontFamily:"SamsungOne",position:"relative"},placeholder:"Search product name"}),T&&f("div",{style:{position:"absolute",top:"55%",right:"44px",transform:"translateY(-50%)",cursor:"pointer"},children:O("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[f("g",{clipPath:"url(#clip0_2333_567)",children:f("path",{d:"M8 15.584C6.50022 15.584 5.03412 15.1392 3.78711 14.306C2.54009 13.4728 1.56816 12.2885 0.994217 10.9029C0.420278 9.51725 0.270109 7.99256 0.562701 6.5216C0.855293 5.05064 1.5775 3.69948 2.638 2.63898C3.69851 1.57848 5.04967 0.856269 6.52063 0.563677C7.99158 0.271086 9.51627 0.421254 10.9019 0.995194C12.2875 1.56913 13.4718 2.54107 14.305 3.78808C15.1383 5.0351 15.583 6.5012 15.583 8.00097C15.5899 8.99872 15.3985 9.98789 15.0199 10.911C14.6412 11.8342 14.0829 12.6728 13.3774 13.3784C12.6719 14.0839 11.8332 14.6422 10.91 15.0208C9.98691 15.3995 8.99774 15.5909 8 15.584ZM7.883 8.70697L10.534 11.359L11.359 10.534L8.708 7.88197L11.359 5.23097L10.534 4.40697L7.883 7.05697L5.231 4.40597L4.406 5.22997L7.057 7.88197L4.406 10.534L5.231 11.359L7.882 8.70797L7.883 8.70697Z",fill:"#AAAAAA"})}),f("defs",{children:f("clipPath",{id:"clip0_2333_567",children:f("rect",{width:"16",height:"16",fill:"white"})})})]})}),f("div",{style:{position:"absolute",top:"55%",right:"16px",transform:"translateY(-50%)",cursor:"pointer"},children:O("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[f("g",{clipPath:"url(#clip0_2333_182)",children:f("path",{d:"M6.76351 0.681763C10.1178 0.681763 12.8468 3.41076 12.8468 6.7651C12.8468 8.19638 12.35 9.51381 11.5197 10.554L15.3198 14.3785L14.3739 15.3183L10.5795 11.4995C9.53517 12.3429 8.20726 12.8484 6.76351 12.8484C3.40918 12.8484 0.680176 10.1194 0.680176 6.7651C0.680176 3.41076 3.40918 0.681763 6.76351 0.681763ZM6.76351 2.0151C4.14434 2.0151 2.01351 4.14593 2.01351 6.7651C2.01351 9.38426 4.14434 11.5151 6.76351 11.5151C9.38268 11.5151 11.5135 9.38426 11.5135 6.7651C11.5135 4.14593 9.38268 2.0151 6.76351 2.0151Z",fill:"black"})}),f("defs",{children:f("clipPath",{id:"clip0_2333_182",children:f("rect",{width:"16",height:"16",fill:"white"})})})]})})]}),f("div",{style:{display:T?"block":"none",top:i!=""?e?"40px":"80px":"0px",padding:e?"12px 4px 12px 0px":"24px 8px 24px 24px",zIndex:"100",fontFamily:"SamsungOne",borderRadius:"10px",border:"1px solid #F4F4F4",background:"#FFF",boxShadow:"0px 4px 10px -2px rgba(0, 0, 0, 0.20)",margin:e?"12px 0px 0px 0px":"12px 20px 0px 20px",width:e?"100%":"684px",position:i!=""?"absolute":"relative"},children:f("ul",{className:"noScrollBars",ref:E,style:{listStyle:"none",cursor:"pointer",overflowY:"scroll",overflowX:"hidden",maxHeight:"300px",fontSize:e?"3.3vmin":""},children:w.length>0&&f(Ty,{searchTerm:N,updateDropdownOpen:ne,updateSearchTerm:ye,devices:w})})})]}),s&&i!=""&&f(j1,{defaultSku:i,discountedBundleId:q,theme:"dark",setSelected:_=>console.log("sku"+_),addToBag:(_,A)=>console.log("naoo"),dropdownOpen:T,setImage:_=>console.log(_),inBasket:_=>!1,leadSku:i,setCta:_=>console.log(_),onError:_=>console.log(_)},i)]})]})})};const $y=e=>{const{onConfirm:t}=e,[n,r]=x.useState(!0),o=Lt();x.useContext(Wt);function i({onClose:s}){return O("div",{className:"bc-service-guide-popup bc-popup is-scroll-active is-opened",id:"hubble-service-guide-layer",style:{display:"block"},children:[f("span",{className:"bc-popup__dimmed"}),f("div",{className:"bc-popup__wrap",children:f("div",{className:"bc-popup__layer",children:f("div",{className:"bc-popup__layer-inner",children:f("div",{className:"bc-popup__content-wrap",children:O("div",{className:"scrollbar",children:[f("div",{className:"scrollbar__wrap",style:{maxHeight:"200px"},children:f("div",{className:"bc-popup__content scrollbar__contents",children:f("div",{className:"bc-popup__body",children:f("div",{className:"bc-popup__body-inner",children:O("div",{className:"bc-service-guide-popup__content",children:[f("div",{className:"bc-service-guide-popup__description-wrap",children:f("div",{className:"bc-service-guide-popup__description",children:"Sorry! We’ve had to remove the discounted item because it’s not part of this particular bundle offer. To enjoy your discount, please pick another item to match the main product offer."})}),f("div",{className:"bc-service-guide-popup__confirm-btn",children:f(Ll,{onClick:()=>{s()},size:o?22:14,style:{border:"1px solid #707070",fontSize:"14px",margin:"0px auto",borderColor:"#707070",position:"relative"},children:"Confirm"})})]})})})})}),f("div",{className:"scrollbar-horizontal__track",style:{display:"none"},children:f("div",{className:"scrollbar-horizontal__track-content",children:f("div",{className:"scrollbar-horizontal__bar"})})}),f("div",{className:"scrollbar-vertical__track",style:{display:"none"},children:f("div",{className:"scrollbar-vertical__track-content",children:f("div",{className:"scrollbar-vertical__bar",style:{height:"77.4269px",transform:"translate3d(0px, 0px, 0px)"}})})})]})})})})})]})}return f(ue,{children:n&&f(i,{onClose:()=>{t(),r(!1)}})})};const Ay=({text:e="Helpful info goes here."})=>f("sup",{className:"info-tooltip",children:O("span",{className:"tooltip-icon",tabIndex:0,"aria-describedby":"tooltip-text",children:[f("span",{className:"icon-roundel",children:"i"}),f("span",{className:"tooltip-content",role:"tooltip",id:"tooltip-text",children:e})]})}),vd=Ke.div` width: 100%; background: #fff; box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.20); border-radius: 20px; transition: border 0.4s ease; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; align-items: center; position: relative; max-width: 328px; min-height: 272px; position: relative; @media (max-width: 767px) { min-height: 132px; max-width: 100%; justify-content: center; } `,wd=Ke.div` position: absolute; z-index: 2; top: 50%; left: 0; width: 40px; height: 40px; -webkit-transform: translateY(-50%); transform: translateY(-50%); margin-left: -26px; // @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: 0px; // width: 7.44444444vw; // height: 7.44444444vw; // margin: -5vw 0vw 0vw ; // padding: 2.22222222vw; width: 30px; height: 30px; top: -4px; left: 50%; -webkit-transform: translateX(-50%,0); transform: translateX(-50%,0); margin-left: -15px; } `;Ke.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; } `;Ke.li` padding: 12px 20px; &:hover { background-color: #f7f7f7; } @media (max-width: 767px) { padding: 4px 10px; } `;function by(e){var we,De,_t;const{appconfig:t,appid:n}=e,[r,o]=x.useState(null),[i,l]=x.useState(null),s=zr(),{pageName:a,updatePageName:u,topCategory:p,updateTopCategory:v,updateSkuToView:d,updateActiveTab:m,updateConfig:y,addedProducts:w,addedAccessaries:S,removeAddedProducts:h,removeAddedAccessaries:c,bundleCurrentIndex:g,updateBundleCurrentIndex:C,updateShowConfigurator:E,updateEligibleskus:T,addedCategories:P,removeAddedCategories:N,updateEditProduct:F,updateAppId:W,editProduct:$,discountedCategoryIds:q,discountedBundleId:le,updateDiscountedBundleId:te}=x.useContext(Wt),ne=I=>{var L=z?120:80;setTimeout(()=>{const G=document.getElementById(I);var ge=G!==null?G.getBoundingClientRect().top-L:0;window.scrollTo({top:window.scrollY+ge,behavior:"smooth"})},500)},ye=()=>{h(),c(),N(),E(!1),C(0)},ae=I=>{var L;if(!p&&((L=I==null?void 0:I.topCategories)!=null&&L.length)){const G=I.topCategories.find(He=>He.isDefault),ge=I.pageName;G&&v(G.id),ge&&u(ge)}else R()},R=()=>{const I=p==="computing"?r==null?void 0:r.computing:p==="homeappliance"?r==null?void 0:r.homeappliance:p==="tvav"?r==null?void 0:r.tvav:p==="tvav1"?r==null?void 0:r.tvav1:p==="refrigeration"?r==null?void 0:r.refrigeration:p==="vacuum"?r==null?void 0:r.vacuum:r==null?void 0:r.mobile;l(I||null),y(I||null)};x.useEffect(()=>{if(r){const I=(r==null?void 0:r.pageName)||"bundlebuilder";u(I),R()}},[p,r]),x.useEffect(()=>{const I=async L=>{if(L!==void 0)try{const ge=await(await fetch(L)).json();o(ge),ye(),ae(ge)}catch(G){console.log(G),console.log("Error response while fetching config")}else console.log("Error fetching config")};if(t){const L=`${X}config-${t}.json`;W(n),I(L)}},[t]),x.useEffect(()=>{const I=L=>{if(L.origin===window.location.origin&&L.data==="reloadBundleBuilder"){const G=window.bBCategory;G&&(v(G),ne(n))}};return window.addEventListener("message",I),()=>{window.removeEventListener("message",I)}},[]);const z=Lt(),B=Nl(),V=Tl(),[M,_]=x.useState(null),[A,j]=x.useState(!1),[k,Y]=x.useState([]),[D,ce]=x.useState("");x.useEffect(()=>{setTimeout(()=>{const I=k.entries;if(I.length)try{const L=I,G=L.map(He=>";"+He.product.baseProduct+":"+He.product.price.value).join(","),ge=L.map(He=>He.product.code).join(",");ce(`${G}|${ge}|${a}:${p}bundle:bundle builder:add to basket`)}catch(L){ce(`uk:${a}bundle:addToBasketClicked`),console.log(L)}},300)},[k]);const J=window.location.href.includes("uk_student")?"uk_student":window.location.href.includes("uk_networks")?"uk_networks":"uk";let X="https://2025-bundle-builder.s3.eu-west-2.amazonaws.com/",Q=window.location.pathname.includes("/multistore/uk_networks/")?"networks":window.location.pathname.includes("/multistore/uk_student/")?"student":"b2c";X=Q=="networks"||Q=="student"?X+"cug/":X+"seuk/",X=window.location.host=="www.samsung.com"?X+"production/":X+"qa/",(window.location.host=="localhost:3000"||window.location.host=="localhost:3001")&&(X="./");const me=async()=>{j(!1);let I="";J==="uk_student"?I="https://api.shop.samsung.com/tokocommercewebservices/v2/uk_student/userData/anonymous/simulatecart?productCodes=":J==="uk_networks"?I="https://api.shop.samsung.com/tokocommercewebservices/v2/uk_networks/userData/anonymous/simulatecart?productCodes=":I="https://api.shop.samsung.com/tokocommercewebservices/v2/uk/userData/anonymous/simulatecart?productCodes=";const L=[...w,...S].filter(Boolean);let G=I+L.join(",");fetch(G).then(ge=>ge.json()).then(ge=>{j(!0),Y(ge)},ge=>{j(!0),_(ge)})};x.useEffect(()=>{me()},[w]);const[de,ee]=x.useState(!1),[_e,oe]=x.useState(null);x.useEffect(()=>{g===1&&w.length>1&&!$&&P.forEach((I,L)=>{L!==0&&q.length&&!q.includes(I)&&(oe(L),ee(!0))})},[$,q]);const Ie=()=>{_e!==null&&(h(_e),c(_e),N(_e)),ee(!1),oe(null)};x.useEffect(()=>{var I;if(!p&&((I=r==null?void 0:r.topCategories)!=null&&I.length)){const L=r.topCategories.find(G=>G.isDefault);L&&v(L.id)}},[r,p]);const Rt=()=>{m(null),E(!1),d("")};return O(ue,{children:[O("div",{style:{maxWidth:"1440px",margin:"0 auto",position:"relative",padding:"0px 0px 40px"},children:[(r==null?void 0:r.showHeaderText)&&O("div",{style:{textAlign:"center",padding:z?"4vw 4vw":V?"3vw 2vw":"30px 50px"},children:[f("h2",{className:"ch-dt-16 ch-mo-16",style:{color:s.colors.gold,fontFamily:"SamsungOne",fontWeight:700,margin:"0 0 16px 0",textTransform:"capitalize"},dangerouslySetInnerHTML:{__html:r==null?void 0:r.eyebrowtext}}),f("h3",{className:"ch-dt-38 ch-mo-28",style:{color:s.colors.black,fontFamily:"SamsungSharpSans",fontWeight:666,margin:"0 0 16px 0"},dangerouslySetInnerHTML:{__html:r==null?void 0:r.header}}),f("p",{className:"ch-dt-18 ch-mo-17",style:{color:s.colors.black,fontFamily:"SamsungOne",fontWeight:400},dangerouslySetInnerHTML:{__html:r==null?void 0:r.subheader}})]}),(r==null?void 0:r.showHeaderNav)&&f("div",{id:"catNav",style:{display:"flex",height:"auto",flexWrap:"wrap",gap:"10px",justifyContent:"center",marginBottom:"30px",width:"100%"},children:(we=r==null?void 0:r.topCategories)==null?void 0:we.map((I,L)=>O("div",{onClick:()=>{v(I.id),m(""),d(""),setTimeout(()=>{ye()},500)},...Qe(a+":"+I.id+"TabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",width:z?"29%":"100%",maxWidth:z?"auto":"204px",height:z?"auto":"100px",padding:"16px 5px",borderRadius:"10px",backgroundColor:p==I.id?s.colors.charcoalBlack:s.colors.lightBeige,cursor:"pointer"},children:[f("div",{style:{marginBottom:z?"12px":"7px",height:z?"37px":"41px",display:"flex",alignItems:"flex-end"},children:p===I.id?f("img",{style:{width:"100%",maxWidth:"38px",height:"auto"},src:I.iconselected,alt:`${I.name} Icon`}):f("img",{style:{width:"100%",maxWidth:"38px",height:"auto"},src:I.icon,alt:`${I.name} Icon`})}),f(Z,{font:"primary",weight:"normal",style:{fontSize:"14px",textAlign:"center",color:p==I.id?s.colors.black:s.colors.semiBlack},children:I.name})]},`topnav-${L}`))},p),f(Xg,{steps:((De=r==null?void 0:r.stepper)==null?void 0:De.steps)??[]}),O("div",{style:{padding:z?"4vw 4vw":V?"3vw 2vw":"40px",background:s.layout.appBackground,boxShadow:"0px 1px 3px 0px rgba(0, 0, 0, 0.20)",borderRadius:"20px",margin:V?"6vw 3vw 0vw":"10px 0px 0px"},children:[O("section",{style:{width:"100%",maxWidth:"1440px",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:z?"column":"row",margin:"0 auto",marginBottom:z?"":"0px",gap:B?"10px":"12px",boxSizing:"border-box"},children:[(_t=i==null?void 0:i.bundles)==null?void 0:_t.map(I=>I.isDefault?O(Kt.Fragment,{children:[O(vd,{style:{padding:z?"18px 20px":B?"16px":w.length>=I.id?"30px 44px 18px 26px":"18px",background:w.length==I.id-1?s.layout.bundleBgCurrent:w.length=I.id||z&&w.length==I.id-1?z&&I.id==1&&w.length1&&f(wd,{children:f("img",{src:`https://images.samsung.com/is/content/samsung/assets/uk/bundle/icons/${s.images.plusIcon}`,alt:"Icon Plus",style:{width:z?"30px":"40px",height:"auto"}})}),w.length{var G;const L=(G=i==null?void 0:i.bundles)==null?void 0:G.find(ge=>ge.id===le);return L?O(ue,{children:[f(Z,{style:{textAlign:"center",color:s.colors.black,fontSize:"16px",fontWeight:"700"},children:f("span",{dangerouslySetInnerHTML:{__html:L.bundletitle??""}})}),f(Z,{style:{textAlign:"center",color:s.colors.black,fontSize:"12px",fontWeight:"500"},children:f("span",{dangerouslySetInnerHTML:{__html:L.bundlesubtitle??""}})})]}):O(ue,{children:[f(Z,{style:{textAlign:"center",color:s.colors.black,fontSize:"16px",fontWeight:"700"},children:f("span",{dangerouslySetInnerHTML:{__html:I.title}})}),f(Z,{style:{textAlign:"center",color:s.colors.black,fontSize:"12px",fontWeight:"500"},children:f("span",{dangerouslySetInnerHTML:{__html:I.subtitle}})})]})})(),w.length==I.id-1&&f(ld,{onClick:()=>{Rt(),ne("choose-your-product"),C(I.id),E(!0),T("")},...Qe(`${a}:add${w.length===0?"First":w.length===1?"Second":"Third"}ProductClicked`),size:z?22:14,style:{fontSize:"14px",position:"absolute",bottom:"20px"},children:I.ctacopy})]}),w.length>=I.id&&O(ue,{children:[f("div",{style:{position:"absolute",right:z?"10px":B?"12px":"18px",top:z||B?"12px":"30px",zIndex:"2",cursor:"pointer"},onClick:()=>{I.categories!="mainCategories"?(h(I.id-1),c(I.id-1),N(I.id-1)):(h(),c(),N(),te()),Rt()},...Qe(a+":DeleteProductClicked"),children:f("img",{src:"https://images.samsung.com/is/content/samsung/assets/uk/bundle/icons/remove-icon.svg",alt:"Remove Icon",style:{width:"auto",height:z?"16px":"20px"}})}),f(D1,{defaultSku:w[I.id-1],accessarySku:S[I.id-1],bundleId:I.id,product:I.categories,theme:"light",setSelected:L=>console.log("sku"+L),addToBag:(L,G)=>console.log("naoo"),setImage:L=>console.log(L),inBasket:L=>!1,leadSku:w[I.id-1],setCta:L=>console.log(L),onError:L=>console.log(L)},w[I.id-1]),!z&&f(ha,{onClick:()=>{C(I.id),d(w[I.id-1]),m(P[I.id-1]),E(!0),F(!0),ne("choose-your-product")},...Qe(a+":EditProductClicked"),size:z?22:14,style:{border:"1px solid #707070",fontSize:"14px",borderColor:"#707070",position:"absolute",bottom:"23px"},children:"Edit selection"}),z&&f(ue,{children:f("div",{style:{position:"absolute",left:"20px",bottom:"14px"},children:O(ha,{style:{padding:"10px 4px",gap:"4px",alignItems:"center",display:"flex",width:"118px",height:"24px",borderRadius:"4px",backgroundColor:"#F4F4F4",boxShadow:"1px 1px 1px 1px F4F4F4"},onClick:()=>{C(0),d(""),m(null),E(!1),C(I.id),d(w[I.id-1]),m(P[I.id-1]),E(!0),F(!0),ne("choose-your-product")},...Qe("EditProductClicked"),children:[O("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[f("defs",{children:f("clipPath",{id:"clip0",children:f("rect",{width:"18",height:"18",fill:"white"})})}),f("g",{"clip-path":"url(#clip0)",children:f("path",{d:"M1.47559 17.0991C1.39156 17.0996 1.30844 17.0817 1.23208 17.0466C1.15572 17.0115 1.08799 16.9601 1.03365 16.896C0.978497 16.8297 0.93881 16.7519 0.91747 16.6683C0.896129 16.5846 0.893673 16.4973 0.910277 16.4127L2.08328 11.2611C2.13158 11.0722 2.22384 10.8974 2.35253 10.7509L12.0067 1.0924C12.1252 0.974654 12.2841 0.906446 12.4511 0.90164C12.6181 0.896833 12.7807 0.95579 12.9058 1.06653L16.9067 5.06497C17.025 5.18332 17.0936 5.34242 17.0986 5.50972C17.1035 5.67702 17.0443 5.83987 16.9331 5.96497L7.2849 15.6169C7.1435 15.751 6.97251 15.8499 6.78578 15.9057L1.61996 17.0824C1.57261 17.0933 1.52419 17.0989 1.47559 17.0991ZM2.85371 12.0994L1.95578 16.0442L5.89703 15.1476L2.85371 12.0994ZM12.4695 1.95472L3.25365 11.1726L6.82571 14.7501L16.0443 5.52884L12.4695 1.95472Z",fill:"#408BF7"})})]}),f(Z,{weight:"700",size:14,style:{textAlign:"left",fontSize:"14px",color:"#408BF7",marginBottom:"0px"},children:"Edit selection"})]})})})]})]}),z&&g==I.id&&f(yd,{})]},`bundle-${I.id}`):null),O(vd,{style:{padding:z?"20px 16px":"24px 24px",minHeight:z?"238px":"272px",background:s.layout.bundleTotalColumnBg,justifyContent:"flex-start"},children:[f(wd,{children:f("img",{src:`https://images.samsung.com/is/content/samsung/assets/uk/bundle/icons/${s.images.equalsIcon}`,style:{width:z?"30px":"40px",height:"auto"},alt:"Icon equals"})}),k&&f(ue,{children:(()=>{var ge,He,Xe,jn,Wn;const I=Number(((ge=k==null?void 0:k.subTotal)==null?void 0:ge.value)||0),L=Number(((He=k==null?void 0:k.totalDiscounts)==null?void 0:He.value)||0),G=Number(((Xe=k==null?void 0:k.totalPrice)==null?void 0:Xe.value)||0);return $t(L-(I-G)),$t(I-G),O(ue,{children:[f("div",{style:{display:"flex",width:"100%",justifyContent:"center",paddingTop:z?"5px":"0px",paddingBottom:z?"5px":"16px"},children:f("div",{children:O(Z,{weight:"400",style:{color:s.colors.black,textDecoration:"line-through",fontSize:z?"11px":"12px"},children:["Subtotal ",(jn=k==null?void 0:k.subTotal)==null?void 0:jn.formattedValue]})})}),O("div",{style:{display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"center",paddingBottom:z?"5px":"10px"},children:[f("div",{children:f(Z,{weight:"700",style:{color:s.colors.black,fontSize:z?"18px":B?"16px":"18px"},children:"Total price"})}),f("div",{children:f(Z,{weight:"700",style:{color:s.colors.black,fontSize:z?"22px":B?"26px":"28px"},children:(Wn=k==null?void 0:k.totalPrice)==null?void 0:Wn.formattedValue})})]}),O("div",{style:{display:"flex",width:"100%",justifyContent:"center",alignItems:"center",gap:"5px",paddingBottom:z?"2px":"10px"},children:[f("div",{children:f(Z,{weight:"700",style:{color:s.colors.blue,fontSize:z?"12px":"14px"},children:"You save"})}),f("div",{children:O(Z,{weight:"700",style:{color:s.colors.blue,fontSize:z?"16px":"18px"},children:[$t(L),f(Ay,{text:"Total saving includes bundle and promotional savings. Plus any free gift value, if applicable."})]})})]}),f("hr",{style:{border:"none",display:"block",height:"1px",backgroundColor:s.colors.silverGray,width:"100%",margin:z?"5px auto 5px":"0px auto 10px"}}),w.length<=1?f(Ll,{size:z?22:14,...Qe(a+":addToBasketClicked","microsite_cartandshop"),style:{border:`1px solid ${s.colors.paleGray}`,position:"absolute",bottom:"23px",background:s.colors.paleGray,color:s.colors.mediumGray,cursor:"auto",PointerEvent:"none",fontSize:"14px"},children:"Add bundle to basket"}):f(ld,{onClick:()=>{const tn=[];let U="";const Ae=["SM-Q5KAPH","SM-Q5DAPH","SM-Q5SAPH"];for(const Me of w)Me&&Me!=""&&tn.push(Me);for(const Me of S)Me&&Me!=""&&(Me.includes("ET-YQ5")?U=Me:tn.push(Me));const st=tn.map(Me=>Ae.includes(Me)&&U!=""?{services:[],productCode:Me,qty:1,childProducts:[{product:{code:U},quantity:1}]}:{productCode:Me,services:[],qty:1}).filter(Boolean);async function zo(){const Me=window.location.href.includes("uk_student")?"uk_student":window.location.href.includes("uk_networks")?"uk_networks":"uk";await fetch(`https://api.shop.samsung.com/tokocommercewebservices/v2/${Me}/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(st),method:"POST",mode:"cors",credentials:"include"}).then(async Hn=>{await Hn.json(),window.location.href.includes("uk_student")?window.location.href="https://shop.samsung.com/uk/multistore/ukepp/uk_student/cart":window.location.href.includes("uk_networks")?window.location.href="https://shop.samsung.com/uk/multistore/ukepp/uk_networks/cart":window.location.href="https://shop.samsung.com/uk/cart"}).catch(Hn=>{console.log(Hn.message)})}zo()},size:z?26:14,style:{position:"absolute",bottom:"23px",fontSize:"14px"},...Qe(a+":addToBasketClicked","microsite_cartandshop",D),children:"Add bundle to basket"})]})})()})]})]}),!z&&f(yd,{})]})]}),de&&f($y,{onConfirm:Ie})]})}const Ly="modulepreload",Ry=function(e){return"/"+e},xd={},My=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Ry(i),i in xd)return;xd[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const v=o[p];if(v.href===i&&(!l||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":Ly,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((p,v)=>{u.addEventListener("load",p),u.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Oy=e=>{e&&e instanceof Function&&My(()=>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)})},Sd=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-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('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-400.woff') format('woff'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-400.ttf') format('truetype'), url('https://www.samsung.com/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('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.woff') format('woff'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.ttf') format('truetype'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungOne-700.eot?#iefix') format('embedded-opentype'); } @font-face { font-display: swap; font-family: 'SamsungSharpSans'; font-style: normal; font-weight: bold; src: local('SamsungSharpSans'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungSharpSansBd.woff2') format('woff2'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungSharpSansBd.woff') format('woff'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungSharpSansBd.eot?#iefix') format('embedded-opentype'); } @font-face { font-display: swap; font-family: 'SamsungSharpSans'; font-style: normal; font-weight: normal; src: local('SamsungSharpSans'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungSharpSansBd.woff2') format('woff2'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungSharpSansBd.woff') format('woff'), url('https://www.samsung.com/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/fonts/SamsungSharpSansBd.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 } @media screen and (max-width: 767px) { .ch-mo-9 { font-size: 2.5vw; } .ch-mo-10 { font-size: 2.78vw; } .ch-mo-11 { font-size: 3.06vw; } .ch-mo-12 { font-size: 3.33vw; } .ch-mo-13 { font-size: 3.61vw; } .ch-mo-14 { font-size: 3.89vw; } .ch-mo-15 { font-size: 4.17vw; } .ch-mo-16 { font-size: 4.44vw; } .ch-mo-17 { font-size: 4.72vw; } .ch-mo-18 { font-size: 5vw; } .ch-mo-19 { font-size: 5.28vw; } .ch-mo-20 { font-size: 5.56vw; } .ch-mo-21 { font-size: 5.83vw; } .ch-mo-22 { font-size: 6.11vw; } .ch-mo-23 { font-size: 6.39vw; } .ch-mo-24 { font-size: 6.67vw; } .ch-mo-26 { font-size: 7.22vw; } .ch-mo-28 { font-size: 7.78vw; } .ch-mo-30 { font-size: 8.33vw; } .ch-mo-32 { font-size: 8.89vw; } .ch-mo-34 { font-size: 9.44vw; } .ch-mo-36 { font-size: 10vw; } .ch-mo-38 { font-size: 10.6vw; } .ch-mo-40 { font-size: 11.1vw; } .ch-mo-42 { font-size: 11.7vw; } .ch-mo-44 { font-size: 12.2vw; } .ch-mo-46 { font-size: 12.8vw; } .ch-mo-48 { font-size: 13.3vw; } } @media screen and (min-width: 768px) { .ch-dt-9 { font-size: min(9px, 0.625vw); } .ch-dt-10 { font-size: min(10px, 0.694vw); } .ch-dt-11 { font-size: min(11px, 0.764vw); } .ch-dt-12 { font-size: min(12px, 0.833vw); } .ch-dt-13 { font-size: min(13px, 0.903vw); } .ch-dt-14 { font-size: min(14px, 0.972vw); } .ch-dt-15 { font-size: min(15px, 1.04vw); } .ch-dt-16 { font-size: min(16px, 1.11vw); } .ch-dt-17 { font-size: min(17px, 1.18vw); } .ch-dt-18 { font-size: min(18px, 1.25vw); } .ch-dt-19 { font-size: min(19px, 1.32vw); } .ch-dt-20 { font-size: min(20px, 1.39vw); } .ch-dt-21 { font-size: min(21px, 1.46vw); } .ch-dt-22 { font-size: min(22px, 1.53vw); } .ch-dt-23 { font-size: min(23px, 1.6vw); } .ch-dt-24 { font-size: min(24px, 1.67vw); } .ch-dt-26 { font-size: min(26px, 1.81vw); } .ch-dt-28 { font-size: min(28px, 1.94vw); } .ch-dt-30 { font-size: min(30px, 2.08vw); } .ch-dt-32 { font-size: min(32px, 2.22vw); } .ch-dt-34 { font-size: min(34px, 2.36vw); } .ch-dt-36 { font-size: min(36px, 2.5vw); } .ch-dt-38 { font-size: min(38px, 2.64vw); } .ch-dt-40 { font-size: min(40px, 2.78vw); } .ch-dt-42 { font-size: min(42px, 2.92vw); } .ch-dt-44 { font-size: min(44px, 3.06vw); } .ch-dt-46 { font-size: min(46px, 3.19vw); } .ch-dt-48 { font-size: min(48px, 3.33vw); } .ch-dt-58 { font-size: min(58px, 4.02vw); } } `,kd=document.querySelectorAll(".bundle-builder-component");if(kd.length>0)kd.forEach(e=>{const t=e.id,n=e.getAttribute("data-config"),r=e.getAttribute("data-theme");console.log(`ID: ${t}, Config: ${n}, Theme: ${r}`);const o=r==="dark"?a1:ji,i=document.getElementById(t);i&&n!=null&&ci.createRoot(i).render(f(Kt.StrictMode,{children:f(nd,{theme:o,children:O(P1,{children:[f(Sd,{}),f(by,{appconfig:n,appid:t})]})})}))});else{const e=document.getElementById("bundle-builder-error-msg");e&&ci.createRoot(e).render(f(Kt.StrictMode,{children:O(nd,{theme:ji,children:[f(Sd,{}),f(Z,{style:{textAlign:"center",fontSize:"16px",fontWeight:"bold",margin:"10px auto"},children:"Error initializing the app"})]})}))}Oy(); });

1. Purchase from Samsung.com by 03/06/25. Discount applied automatically at checkout when two or more qualifying products in basket. Excludes all Vacuum Cleaners, Microwaves & accessories. Not in conjunction with any other offer. While stocks last.

Hiding second SKU in bundles