script scroll
script scroll
Ways we care for you and your business:
Dedicated tech support
A dedicated team of tech experts are available to assist you by phone, chat or by email.
14 days returns & order tracking
Enjoy free returns and 24/7 order tracking.
Up to 3 year warranty
All Samsung products come with a manufacturer's warranty. Please visit
this link to confirm the length of your warranty.
Samsung Business account
Get at least 10% off all devices on the Samsung business shop.2
Mobile
TV & Monitors
Appliances
Get more with My Business Membership
Get more with My Business Membership
Become a My Business member and get exclusive discounts, free delivery, dedicated support and more.
Chat to our specialists
Chat to our specialists
Live one-to-one advice now or look for the widget in the bottom right hand corner of your browser when you’re ready.
Code is on Github repository: 2024-B2B-Bundle-Builder1.5.git
","")}}))})]})]})})]}),S&&M(me,{children:[M("div",{style:{borderRadius:"4px",background:"#fff",margin:"10px 0px 10px"},children:[M("div",{style:{cursor:"pointer",display:"inline-block",position:"relative",fontSize:"14px",lineHeight:"1.33",fontFamily:"SamsungOne",fontWeight:"700",padding:"12px 8px",width:"100%"},onClick:jl,children:["View Key features",g("div",{style:{position:"absolute",right:"8px",top:"9px"},children:br?g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:g("path",{d:"M2 11H22V13H2V11Z",fill:"black"})}):g("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:g("path",{d:"M13 2V11H22V13H13V22H11V13H2V11H11V2H13Z",fill:"black"})})})]}),br&&g(me,{children:g("ul",{style:{listStyleType:"disc",paddingInlineStart:"12px",fontFamily:"SamsungOne",fontSize:"14px",fontWeight:"500",marginLeft:"16px",padding:"0px 8px 12px"},children:Mt.response.resultData.productList[0].modelList[0].usp.slice(0,3).map((ae,Ne)=>g("li",{style:{listStyleType:"disc",padding:"3px 0px"},children:ae},`usp_${Ne}`))})})]}),k.length>0&&g("div",{id:"offerDetails",style:{borderRadius:"4px",background:"#fff",padding:"12px 8px",marginBottom:"10px"},children:k.map(ae=>g("div",{style:{flex:"1",fontSize:S?"12px":"14px",lineHeight:"1.33",fontFamily:"SamsungOne",fontWeight:"700",color:"#408BF7",clear:"both"},dangerouslySetInnerHTML:{__html:ae.replace(/ style="[^"]*"/g,"").replace("
","")}}))}),p.includes("SM-Q5")&&g(Ed,{}),g("div",{style:{display:"flex",justifyContent:S?"center":"left"},children:z!==null&&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"})})};function Jt(e){return Array.isArray?Array.isArray(e):zh(e)==="[object Array]"}const ny=1/0;function ry(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-ny?"-0":t}function oy(e){return e==null?"":ry(e)}function Ft(e){return typeof e=="string"}function Lh(e){return typeof e=="number"}function iy(e){return e===!0||e===!1||ly(e)&&zh(e)=="[object Boolean]"}function Ph(e){return typeof e=="object"}function ly(e){return Ph(e)&&e!==null}function dt(e){return e!=null}function Ps(e){return!e.trim().length}function zh(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const sy="Incorrect 'index' type",ay=e=>`Invalid value for key ${e}`,uy=e=>`Pattern length exceeds max of ${e}.`,cy=e=>`Missing ${e} property in key`,dy=e=>`Property 'weight' in key '${e}' must be a positive integer`,Ld=Object.prototype.hasOwnProperty;class fy{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Ih(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 Ih(e){let t=null,n=null,r=null,o=1,i=null;if(Ft(e)||Jt(e))r=e,t=Pd(e),n=Aa(e);else{if(!Ld.call(e,"name"))throw new Error(cy("name"));const l=e.name;if(r=l,Ld.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(dy(l));t=Pd(l),n=Aa(l),i=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:i}}function Pd(e){return Jt(e)?e:e.split(".")}function Aa(e){return Jt(e)?e.join("."):e}function py(e,t){let n=[],r=!1;const o=(i,l,s)=>{if(dt(i))if(!l[s])n.push(i);else{let a=l[s];const u=i[a];if(!dt(u))return;if(s===l.length-1&&(Ft(u)||Lh(u)||iy(u)))n.push(oy(u));else if(Jt(u)){r=!0;for(let d=0,v=u.length;de.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(dt(l)){if(Jt(l)){let s=[];const a=[{nestedArrIndex:-1,value:l}];for(;a.length;){const{nestedArrIndex:u,value:d}=a.pop();if(dt(d))if(Ft(d)&&!Ps(d)){let v={v:d,i:u,n:this.norm.get(d)};s.push(v)}else Jt(d)&&d.forEach((v,c)=>{a.push({nestedArrIndex:c,value:v})})}r.$[i]=s}else if(Ft(l)&&!Ps(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 Th(e,t,{getFn:n=ne.getFn,fieldNormWeight:r=ne.fieldNormWeight}={}){const o=new Vu({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Ih)),o.setSources(t),o.create(),o}function xy(e,{getFn:t=ne.getFn,fieldNormWeight:n=ne.fieldNormWeight}={}){const{keys:r,records:o}=e,i=new Vu({getFn:t,fieldNormWeight:n});return i.setKeys(r),i.setIndexRecords(o),i}function ii(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=ne.distance,ignoreLocation:i=ne.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=ne.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 ky(e,t,n,{location:r=ne.location,distance:o=ne.distance,threshold:i=ne.threshold,findAllMatches:l=ne.findAllMatches,minMatchCharLength:s=ne.minMatchCharLength,includeMatches:a=ne.includeMatches,ignoreLocation:u=ne.ignoreLocation}={}){if(t.length>Pn)throw new Error(uy(Pn));const d=t.length,v=e.length,c=Math.max(0,Math.min(r,v));let w=i,x=c;const p=s>1||a,C=p?Array(v):[];let f;for(;(f=e.indexOf(t,x))>-1;){let P=ii(t,{currentLocation:f,expectedLocation:c,distance:o,ignoreLocation:u});if(w=Math.min(P,w),x=f+d,p){let A=0;for(;A=S;T-=1){let X=T-1,le=n[e.charAt(X)];if(p&&(C[X]=+!!le),H[T]=(H[T+1]<<1|1)&le,P&&(H[T]|=(h[T+1]|h[T])<<1|1|h[T+1]),H[T]&E&&(m=ii(t,{errors:P,currentLocation:X,expectedLocation:c,distance:o,ignoreLocation:u}),m<=w)){if(w=m,x=X,x<=c)break;S=Math.max(1,2*c-x)}}if(ii(t,{errors:P+1,currentLocation:c,expectedLocation:c,distance:o,ignoreLocation:u})>w)break;h=H}const I={isMatch:x>=0,score:Math.max(.001,m)};if(p){const P=Sy(C,s);P.length?a&&(I.indices=P):I.isMatch=!1}return I}function Cy(e){let t={};for(let n=0,r=e.length;n{this.chunks.push({pattern:c,alphabet:Cy(c),startIndex:w})},v=this.pattern.length;if(v>Pn){let c=0;const w=v%Pn,x=v-w;for(;c{const{isMatch:f,score:h,indices:m}=ky(t,x,p,{location:o+C,distance:i,threshold:l,findAllMatches:s,minMatchCharLength:a,includeMatches:r,ignoreLocation:u});f&&(c=!0),v+=h,f&&m&&(d=[...d,...m])});let w={isMatch:c,score:c?v/this.chunks.length:1};return c&&r&&(w.indices=d),w}}class Cn{constructor(t){this.pattern=t}static isMultiMatch(t){return zd(t,this.multiRegex)}static isSingleMatch(t){return zd(t,this.singleRegex)}search(){}}function zd(e,t){const n=e.match(t);return n?n[1]:null}class _y extends Cn{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 Ey extends Cn{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 Ly extends Cn{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 Cn{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 zy extends Cn{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 Iy extends Cn{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 Ah extends Cn{constructor(t,{location:n=ne.location,threshold:r=ne.threshold,distance:o=ne.distance,includeMatches:i=ne.includeMatches,findAllMatches:l=ne.findAllMatches,minMatchCharLength:s=ne.minMatchCharLength,isCaseSensitive:a=ne.isCaseSensitive,ignoreLocation:u=ne.ignoreLocation}={}){super(t),this._bitapSearch=new bh(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 Nh extends Cn{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 Na=[_y,Nh,Ly,Py,Iy,zy,Ey,Ah],Id=Na.length,Ty=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,by="|";function Ay(e,t={}){return e.split(by).map(n=>{let r=n.trim().split(Ty).filter(i=>i&&!!i.trim()),o=[];for(let i=0,l=r.length;i!!(e[Ki.AND]||e[Ki.OR]),Ry=e=>!!e[Ra.PATH],Oy=e=>!Jt(e)&&Ph(e)&&!Oa(e),Td=e=>({[Ki.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function $h(e,t,{auto:n=!0}={}){const r=o=>{let i=Object.keys(o);const l=Ry(o);if(!l&&i.length>1&&!Oa(o))return r(Td(o));if(Oy(o)){const a=l?o[Ra.PATH]:i[0],u=l?o[Ra.PATTERN]:o[a];if(!Ft(u))throw new Error(ay(a));const d={keyId:Aa(a),pattern:u};return n&&(d.searcher=Ma(u,t)),d}let s={children:[],operator:i[0]};return i.forEach(a=>{const u=o[a];Jt(u)&&u.forEach(d=>{s.children.push(r(d))})}),s};return Oa(e)||(e=Td(e)),r(e)}function By(e,{ignoreFieldNorm:t=ne.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 Fy(e,t){const n=e.matches;t.matches=[],dt(n)&&n.forEach(r=>{if(!dt(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 Dy(e,t){t.score=e.score}function jy(e,t,{includeMatches:n=ne.includeMatches,includeScore:r=ne.includeScore}={}){const o=[];return n&&o.push(Fy),r&&o.push(Dy),e.map(i=>{const{idx:l}=i,s={item:t[l],refIndex:l};return o.length&&o.forEach(a=>{a(i,s)}),s})}class zr{constructor(t,n={},r){this.options={...ne,...n},this.options.useExtendedSearch,this._keyStore=new fy(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Vu))throw new Error(sy);this._myIndex=n||Th(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){dt(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)),jy(a,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=Ma(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:i,i:l,n:s})=>{if(!dt(i))return;const{isMatch:a,score:u,indices:d}=n.searchIn(i);a&&o.push({item:i,idx:l,matches:[{score:u,value:i,norm:s,indices:d}]})}),o}_searchLogical(t){const n=$h(t,this.options),r=(s,a,u)=>{if(!s.children){const{keyId:v,searcher:c}=s,w=this._findMatches({key:this._keyStore.get(v),value:this._myIndex.getValueForItemAtKeyId(a,v),searcher:c});return w&&w.length?[{idx:u,item:a,matches:w}]:[]}const d=[];for(let v=0,c=s.children.length;v{if(dt(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:d})=>{i[a].matches.push(...d)}))}}),l}_searchObjectList(t){const n=Ma(t,this.options),{keys:r,records:o}=this._myIndex,i=[];return o.forEach(({$:l,i:s})=>{if(!dt(l))return;let a=[];r.forEach((u,d)=>{a.push(...this._findMatches({key:u,value:l[d],searcher:n}))}),a.length&&i.push({idx:s,item:l,matches:a})}),i}_findMatches({key:t,value:n,searcher:r}){if(!dt(n))return[];let o=[];if(Jt(n))n.forEach(({v:i,i:l,n:s})=>{if(!dt(i))return;const{isMatch:a,score:u,indices:d}=r.searchIn(i);a&&o.push({score:u,key:t,value:i,idx:l,norm:s,indices:d})});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}}zr.version="7.0.0";zr.createIndex=Th;zr.parseIndex=xy;zr.config=ne;zr.parseQuery=$h;My($y);const Wy=e=>{var a,u,d;const{leadSku:t}=e,{data:n,error:r,finished:o}=Uu(t),[i,l]=y.useState(t??Object.keys(n)[0]);y.useEffect(()=>{t&&l(t)},[t]),Ol({devices:n,selectedSku:i});const s=Et();return y.useState(null),y.useState(!1),y.useState([]),y.useEffect(()=>{console.log("current sku in dropdown"),console.log(n)},[i]),(a=n[i])!=null&&a.price?g(me,{children:n[i].price&&g(oe,{weight:"bold",style:{fontSize:s?"3.4vmin":"initial",minWidth:"20%"},children:n&&((d=(u=n[i])==null?void 0:u.price)==null?void 0:d.formattedValue)})}):null},Uy=Ke.li`
padding: 4px;
&:hover {
background-color: #F2F2F2;
border-radius: 2px;
}
@media (max-width: 767px) {
padding: 4px 10px;
}
`,Vy=e=>{const{searchTerm:t,updateDropdownOpen:n,updateSearchTerm:r,devices:o}=e,i=Et(),{data:l}=Ug(o),{skuToView:s,updateSkuToView:a,editProduct:u}=y.useContext(Je),[d,v]=y.useState(""),[c,w]=y.useState([]),x=window.location.href.includes("uk_student")?"uk_student":window.location.href.includes("uk_networks")?"uk_networks":"uk";return y.useEffect(()=>{if(w([]),l&&d!==""){const f=new zr(l,{keys:["displayName"],includeScore:!0}).search(d).map(h=>h.item);w(f)}else l&&w(l)},[l,d]),y.useEffect(()=>{v(t)},[t]),y.useEffect(()=>{var C;const p=document.getElementById("search-product");c.length===1?(s==""&&a((C=c[0])==null?void 0:C.modelCode),p&&(p.style.display="none")):c.length>1&&p&&(p.style.display="block")},[c]),g(me,{children:c.map((p,C)=>p.stockStatusText!==null&&g(Uy,{id:"product-list",onClick:()=>{n(!1),r(""),a(p.modelCode)},children:M("div",{style:{display:"flex",flexDirection:"row",gap:"8px",alignItems:"center",alignSelf:"stretch"},children:[g("div",{style:{height:"48px",width:"48px",aspectRatio:"1 / 1",backgroundImage:`url(${p.thumbUrl})`,backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",overflow:"visible"},children:!p.thumbUrl&&g(Lo,{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(oe,{weight:"400",style:{fontSize:i?"14px":"initial",width:i?"70%":"80%",maxWidth:"490px"},children:p.displayName}),x==="uk"&&g(oe,{weight:"700",style:{fontSize:i?"14px":"initial",minWidth:i?"20%":"62px"},children:p.promotionPriceDisplay}),x!=="uk"&&g(Wy,{leadSku:p.modelCode})]})},C))})};Ke.li`
padding: 12px 20px;
&:empty {
display: none;
}
&:hover {
background-color: #f7f7f7;
}
@media (max-width: 767px) {
padding: 4px 10px;
}
`;const bd=()=>{const e=Et(),t=Ao();y.useState(null),y.useState(!1),y.useState([]);const n=jn(),{pageName:r,editMainProduct:o,editSecondProduct:i,skuToView:l,addedQuantities:s,updateSkuToView:a,activeTab:u,updateActiveTab:d,config:v,bundleCurrentIndex:c,showConfigurator:w,eligibleskus:x,updateEligibleskus:p,updateEligibleAccessarySkus:C}=y.useContext(Je),f=y.useRef(null),[h,m]=y.useState(!1),[k,E]=y.useState(""),[I,P]=y.useState(""),A=T=>{P(T.target.value),T.target.value.length>2?E(T.target.value.toLowerCase()):T.target.value==""&&E("")},W=T=>{m(T)},S=T=>{E(T)},Z=()=>{a(""),P(""),E("")};y.useEffect(()=>{function T(X){if(f.current&&X.target){const le=X.target;f.current.contains(le)||m(!1)}}return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},[]);const q=c!==0?(T=>{const X=v.bundles.find(le=>le.id===T);return X?v.categories[X.categories]:[]})(c):[];return y.useEffect(()=>{const T=Array.isArray(q)?q.find(X=>X.isDefault):null;T&&d(T.id)},[q]),y.useEffect(()=>{const T=Array.isArray(q)?q.find(X=>X.id===u):null;T&&(p(T.eligibleskus),T.eligibleaccessaryskus&&Object.keys(T.eligibleaccessaryskus).length>0&&C(T.eligibleaccessaryskus),E(""),P(""))},[u,l]),g(me,{children:w&&M("section",{id:"choose-your-product",style:{padding:e?"0px":t?"30px":"30px 90px",background:e?"":n.layout.configBg,borderRadius:e?"0px":"10px",display:"block",margin:e?"32px auto":"0px",maxWidth:e?"100%":"unset",boxSizing:"border-box",width:"100%"},children:[M("div",{style:{display:"flex",alignItems:"center",width:"100%",flexDirection:"column"},children:[g(oe,{font:"secondary",weight:"bold",size:"20",style:{width:"100%",display:"inline-block",textAlign:"center",fontSize:e?"16px":"20px",color:n.colors.black,fontWeight:"700",marginBottom:"24px"},children:"What type of product are you after?"}),g("div",{id:"mininav",style:{display:"flex",height:"auto",opacity:1,flexWrap:"wrap",gap:"16px",justifyContent:"center",marginBottom:"20px, auto, 0px",width:"100%"},children:q==null?void 0:q.map(T=>M("div",{onClick:()=>{u!=T.id&&(p(null),d(T.id),Z())},...Be(r+":"+T.name.trim().replace(/\s+/g,"").toLowerCase()+"TabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",maxWidth:e?"130px":"120px",border:u==T.id?"1px solid #408BF7":e?"0px":`1px solid ${n.layout.categoryTileBorder}`,opacity:u==T.id?"1":"0.8",padding:"16px 0",borderRadius:e?"12px":"6px",background:n.layout.categoryTileBg,cursor:"pointer"},children:[g("img",{src:T.icon,alt:T.name,style:{marginBottom:e?"7px":"14px",height:e?"24px":"42px",width:e?"24px":"42px",filter:n.layout.iconFilter}}),g(oe,{font:"primary",weight:"normal",style:{fontSize:"14px",textAlign:"center",color:n.colors.black},children:T.name})]},`category-${T.id}`))})]}),u&&x!=null&&M("div",{id:"search-box",style:{display:u?e?"block":"flex":"none",flexDirection:"column",alignItems:"center"},children:[M("div",{id:"search-product",style:{display:"flex",flexDirection:"column",alignItems:"center",position:"relative"},children:[M("div",{style:{position:"relative",width:e?"100%":"684px",margin:e?"32px auto 0px":"40px 20px 0px 20px",boxSizing:"border-box"},children:[g("input",{type:"text",value:I,onChange:A,onClick:()=>{m(!0)},style:{width:"100%",padding:"10px 5px 10px 20px",fontSize:e?"16px":"14px",border:h?"1px solid #408BF7":"1px solid #757575",background:"#F6F7F6",borderRadius:"99px",fontFamily:"SamsungOne",position:"relative"},placeholder:"Search product name"}),h&&g("div",{style:{position:"absolute",top:"55%",right:"44px",transform:"translateY(-50%)",cursor:"pointer"},children:M("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[g("g",{clipPath:"url(#clip0_2333_567)",children:g("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"})}),g("defs",{children:g("clipPath",{id:"clip0_2333_567",children:g("rect",{width:"16",height:"16",fill:"white"})})})]})}),g("div",{style:{position:"absolute",top:"55%",right:"16px",transform:"translateY(-50%)",cursor:"pointer"},children:M("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[g("g",{clipPath:"url(#clip0_2333_182)",children:g("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"})}),g("defs",{children:g("clipPath",{id:"clip0_2333_182",children:g("rect",{width:"16",height:"16",fill:"white"})})})]})})]}),g("div",{style:{display:h?"block":"none",top:l!=""?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:l!=""?"absolute":"relative"},children:g("ul",{className:"noScrollBars",ref:f,style:{listStyle:"none",cursor:"pointer",overflowY:"scroll",overflowX:"hidden",maxHeight:"300px",fontSize:e?"3.3vmin":""},children:x.length>0&&g(Vy,{searchTerm:k,updateDropdownOpen:W,updateSearchTerm:S,devices:x})})})]}),u&&l!=""&&g(ty,{defaultSku:l,theme:"dark",setSelected:T=>console.log("sku"+T),addToBag:(T,X)=>console.log("naoo"),dropdownOpen:h,setImage:T=>console.log(T),inBasket:T=>!1,leadSku:l,setCta:T=>console.log(T),onError:T=>console.log(T)},l)]})]})})},Hy=e=>{const{freeProducts:t}=e,n=jn(),r=Et();Ao();const o=Ml(),[i,l]=y.useState(!1);return M("div",{style:{},children:[M("button",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",cursor:"pointer",marginBottom:"4px"},onClick:()=>l(!i),children:[g(oe,{weight:"700",style:{color:n.colors.blue,fontSize:"14px"},children:"Promotions applied..."}),g("i",{style:{border:`solid ${n.colors.blue}`,borderWidth:"0px 3px 3px 0px",display:"inline-block",padding:"3px",margin:"3px 0px 0px 0px",transform:i?"rotate(-135deg":"rotate(45deg)",WebkitTransform:i?"rotate(-135deg":"rotate(45deg)",transition:"transform 0.3s ease"}})]}),i&&g(me,{children:g("div",{children:g("ul",{children:t.map((s,a)=>g("li",{children:M(oe,{weight:"400",style:{display:"flex",color:n.colors.blue,fontSize:r?"12px":o?"10px":"12px",width:"100%",gap:"2px",justifyContent:"space-between",paddingBottom:"4px"},children:[M("span",{children:[" ",s.name,", Qty: ",s.quantity]}),M("span",{style:{fontWeight:"700"},children:[" ",Gt(s.price)," "]})]})},a))})})})]})},Qy=({appid:e})=>{const t=Et(),n=window.location.host=="www.samsung.com"?"https://www.samsung.com":window.location.host=="p6-qa.samsung.com"?"https://p6-qa.samsung.com":"",r="/aemapi/v6/data-login/callSALogin.uk.json",o=n!=""?n+r:"",{isUserLoggedIn:i,updateIsUserLoggedIn:l,addedProducts:s,addedAccessaries:a,addedCategories:u,addedQuantities:d,setAddedProducts:v,setAddedAccessaries:c,setAddedCategories:w,setAddedQuantities:x}=y.useContext(Je),p=y.useRef(s),C=y.useRef(a),f=y.useRef(u),h=y.useRef(d),m=y.useRef(!1);y.useEffect(()=>{p.current=s,C.current=a,f.current=u,h.current=d},[s]);const k=S=>{var Z=t?120:60;setTimeout(()=>{const H=document.getElementById(S==null?void 0:S.appid);var q=H!==null?H.getBoundingClientRect().top-Z:0;window.scrollTo({top:window.scrollY+q,behavior:"smooth"})},500)};y.useEffect(()=>{if(!i){E();const S=document.querySelectorAll(".gnb__utility-link.loginBtnx"),Z=H=>{m.current=!0,P()};return S.forEach(H=>H.addEventListener("click",Z)),()=>{S.forEach(H=>H.removeEventListener("click",Z))}}},[]);const E=()=>{document.querySelectorAll(".gnb__utility-link.loginBtn").forEach(Z=>{Z.classList.add("loginBtnx"),Z.classList.remove("loginBtn")})},I=()=>{document.querySelectorAll(".gnb__utility-link.loginBtnx").forEach(Z=>{Z.classList.add("loginBtn"),Z.classList.remove("loginBtnx")})};y.useEffect(()=>{i&&W()},[i]),y.useEffect(()=>{if(o!=""){const S=H=>{var X;const T=`; ${document.cookie}`.split(`; ${H}=`);if((T==null?void 0:T.length)===2)return(X=T.pop())==null?void 0:X.split(";").shift()};(async()=>{try{const q=await(await fetch(o)).json(),T=S("guid"),X=S("flpe"),le=T?T.trim():"",F=X?X.trim():"";q.redCookieChk==="Y"&&le&&F?l(!0):l(!1)}catch(H){console.error("Error fetching user status:",H)}})()}else l(!0)},[o]);const P=()=>{if(A()){const S=document.querySelector(".gnb__utility-link.loginBtn");S&&(S==null||S.click())}},A=()=>{const S=JSON.stringify(m.current?p.current:s);window.localStorage.setItem("bundle-products",S);const Z=JSON.stringify(m.current?C.current:a);window.localStorage.setItem("bundle-accessaries",Z);const H=JSON.stringify(m.current?f.current:u);window.localStorage.setItem("bundle-categories",H);const q=JSON.stringify(m.current?h.current:d);return window.localStorage.setItem("bundle-quantities",q),I(),!0},W=()=>{window.localStorage.getItem("user-state");const S=window.localStorage.getItem("bundle-products"),Z=window.localStorage.getItem("bundle-accessaries"),H=window.localStorage.getItem("bundle-categories"),q=window.localStorage.getItem("bundle-quantities");if(S!=""&&Z!=""&&H!="")try{const T=JSON.parse(S??"[]"),X=JSON.parse(Z??"[]"),le=JSON.parse(H??"[]"),F=JSON.parse(q??"[]");return T&&(T==null?void 0:T.length)>0&&le&&(le==null?void 0:le.length)>0&&F&&(F==null?void 0:F.length)>0&&(v(T),c(X),w(le),x(F),m.current||k({appid:e}),window.localStorage.removeItem("bundle-products"),window.localStorage.removeItem("bundle-accessaries"),window.localStorage.removeItem("bundle-categories"),window.localStorage.removeItem("bundle-quantities")),!0}catch{return console.log("Exception at the time of retriving persistant Object"),!1}else return!1};return g(me,{children:!i&&M("div",{style:{display:"flex",margin:"0px auto",gap:"20px",width:"100%",justifyContent:"center"},children:[g(Cr,{onClick:()=>{P()},...Be("signInClicked"),size:t?22:14,style:{border:"1px solid #000",fontSize:"14px",position:"relative",bottom:"20px"},children:"Sign in"}),g(Cr,{onClick:()=>{P()},...Be("createAnAccountClicked"),size:t?22:14,style:{border:"1px solid #000",fontSize:"14px",position:"relative",bottom:"20px"},children:"Create an account"})]})})},Ad=Ke.div`
width: 100%;
background: #fff;
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.20);
border-radius: 10px;
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%;
}
`,Nd=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;
top: -5px;
left: 50%;
-webkit-transform: translateX(-50%,0);
transform: translateX(-50%,0);
margin-left: -20px;
}
`;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 Gy(e){var ie,Se;const{appconfig:t,appid:n}=e,[r,o]=y.useState(null),[i,l]=y.useState(null),s=jn(),{pageName:a,updatePageName:u,topCategory:d,updateTopCategory:v,updateSkuToView:c,updateActiveTab:w,updateConfig:x,addedProducts:p,addedAccessaries:C,addedQuantities:f,removeAddedProducts:h,removeAddedAccessaries:m,removeAddedQuantities:k,bundleCurrentIndex:E,updateBundleCurrentIndex:I,updateShowConfigurator:P,addedCategories:A,removeAddedCategories:W,updateEditProduct:S,updateAppId:Z,isUserLoggedIn:H}=y.useContext(Je),q=L=>{var V=F?120:80;setTimeout(()=>{const ee=document.getElementById(L);var Y=ee!==null?ee.getBoundingClientRect().top-V:0;window.scrollTo({top:window.scrollY+Y,behavior:"smooth"})},500)},T=()=>{h(),m(),W(),k(),P(!1),I(0)},X=L=>{var V;if(!d&&((V=L==null?void 0:L.topCategories)!=null&&V.length)){const ee=L.topCategories.find(_e=>_e.isDefault),Y=L.pageName;ee&&v(ee.id),Y&&u(Y)}else le()},le=()=>{const L=d==="mobile"?r==null?void 0:r.mobile:d==="computing"?r==null?void 0:r.computing:d==="homeappliance"?r==null?void 0:r.homeappliance:d==="tvav"?r==null?void 0:r.tvav:d==="tvav1"?r==null?void 0:r.tvav1:d==="refrigeration"?r==null?void 0:r.refrigeration:d==="vacuum"?r==null?void 0:r.vacuum:r==null?void 0:r.allcategories;l(L||null),x(L||null)};y.useEffect(()=>{if(r){const L=(r==null?void 0:r.pageName)||"bundlebuilder";u(L),le()}},[d,r]),y.useEffect(()=>{const L=async V=>{if(V!==void 0)try{const Y=await(await fetch(V)).json();o(Y),T(),X(Y)}catch(ee){console.log(ee),console.log("Error response while fetching config")}else console.log("Error fetching config")};if(t){const V=`${te}config-${t}.json`;Z(n),L(V)}},[t]),y.useEffect(()=>{const L=V=>{if(V.origin===window.location.origin&&V.data==="reloadBundleBuilder"){const ee=window.bBCategory;ee&&(v(ee),q(n))}};return window.addEventListener("message",L),()=>{window.removeEventListener("message",L)}},[]);const F=Et(),z=Ao(),U=Ml(),[D,J]=y.useState(null),[R,B]=y.useState(!1),[$,G]=y.useState([]),_=window.location.href.includes("uk_student")?"uk_student":window.location.href.includes("uk_networks")?"uk_networks":window.location.href.includes("business")?"uk_business":"uk",[re,O]=y.useState(""),[ce,se]=y.useState([]);y.useEffect(()=>{console.log($),setTimeout(()=>{const L=$.entries;if(!L)return;try{const Y=L,_e=Y.map(fe=>";"+fe.product.baseProduct+":"+fe.quantity+":"+fe.product.price.value).join(","),pe=Y.map(fe=>fe.product.code).join(",");O(`${_e}|${pe}|${a}:${d}bundle:bundle builder:add to basket`)}catch(Y){O(`uk:${a}bundle:addToBasketClicked`),console.log(Y)}const V=L.filter(Y=>!p.includes(Y.product.code));console.log(V);const ee=V.length>0?V.map(Y=>({name:Y.product.name,quantity:Y.quantity,price:Number(Y.rrp.value)*Number(Y.quantity)})):[];se(ee)},300)},[$]);let te="https://2024-bundle-builder.s3.eu-west-2.amazonaws.com/",K=window.location.pathname.includes("/multistore/uk_networks/")?"networks":window.location.pathname.includes("/multistore/uk_student/")?"student":"b2c";te=K=="networks"||K=="student"?te+"cug/":te+"seuk/",te=window.location.host=="www.samsung.com"?te+"production/":te+"qa/",(window.location.host=="localhost:3000"||window.location.host=="localhost:3001")&&(te="./");const we=async()=>{var _e;B(!1);let L="";_==="uk_student"?L="https://api.shop.samsung.com/tokocommercewebservices/v2/uk_student/userData/anonymous/simulatecart?productCodes=":_==="uk_networks"?L="https://api.shop.samsung.com/tokocommercewebservices/v2/uk_networks/userData/anonymous/simulatecart?productCodes=":_==="uk_business"?L="https://api.shop.samsung.com/tokocommercewebservices/v2/uk_business/userData/anonymous/simulatecart?productCodes=":L="https://api.shop.samsung.com/tokocommercewebservices/v2/uk/userData/anonymous/simulatecart?productCodes=";let V=((_e=window.user_properties)==null?void 0:_e.user_login_status)=="logged in"?"loggedin":"loggedout";const ee=p.flatMap((pe,fe)=>Array(Number(f[fe])).fill(pe)).join(",");let Y=L+ee+"&_="+Date.now()+"&isLoggedIn="+V;fetch(Y,{method:"GET",headers:{"Content-Type":"application/json","User-Agent":navigator.userAgent,"Cache-Control":"no-cache, no-store, must-revalidate",Pragma:"no-cache",Expires:"0"},credentials:"include"}).then(pe=>pe.json()).then(pe=>{B(!0),G(pe)},pe=>{B(!0),J(pe)})};y.useEffect(()=>{we()},[p]),y.useEffect(()=>{var L;if(!d&&((L=r==null?void 0:r.topCategories)!=null&&L.length)){const V=r.topCategories.find(ee=>ee.isDefault);V&&v(V.id)}},[r,d]);const ze=()=>{w(null),P(!1),c("")};return g(me,{children:M("div",{style:{maxWidth:"1440px",margin:"0 auto",position:"relative",padding:"0px 0px 40px"},children:[(r==null?void 0:r.showHeaderText)&&M("div",{style:{textAlign:"center",padding:F?"4vw 4vw":U?"3vw 2vw":"30px 50px"},children:[g("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}}),g("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}}),g("p",{className:"ch-dt-19 ch-mo-17",style:{color:s.colors.black,fontFamily:"SamsungOne",fontWeight:666,margin:"0 0 16px 0"},children:H?g("span",{dangerouslySetInnerHTML:{__html:r==null?void 0:r.loggedinsubheader}}):g("span",{dangerouslySetInnerHTML:{__html:r==null?void 0:r.subheader}})})]}),g(Qy,{appid:n}),(r==null?void 0:r.showHeaderNav)&&g("div",{id:"catNav",style:{display:"flex",height:"auto",flexWrap:"wrap",gap:"10px",justifyContent:"center",marginBottom:"30px",width:"100%"},children:(ie=r==null?void 0:r.topCategories)==null?void 0:ie.map((L,V)=>M("div",{onClick:()=>{v(L.id),w(""),c(""),setTimeout(()=>{T()},500)},...Be(a+":"+L.id+"TabClicked"),style:{display:"flex",flexDirection:"column",justifyContent:"flex-start",alignItems:"center",width:F?"29%":"100%",maxWidth:F?"auto":"204px",height:F?"auto":"100px",padding:"16px 5px",borderRadius:"10px",backgroundColor:d==L.id?s.colors.charcoalBlack:s.colors.lightBeige,cursor:"pointer"},children:[g("div",{style:{marginBottom:F?"12px":"7px",height:F?"37px":"41px",display:"flex",alignItems:"flex-end"},children:d===L.id?g("img",{style:{width:"100%",maxWidth:"38px",height:"auto"},src:L.iconselected,alt:`${L.name} Icon`}):g("img",{style:{width:"100%",maxWidth:"38px",height:"auto"},src:L.icon,alt:`${L.name} Icon`})}),g(oe,{font:"primary",weight:"normal",style:{fontSize:"14px",textAlign:"center",color:d==L.id?s.colors.black:s.colors.semiBlack},children:L.name})]},`topnav-${V}`))},d),M("div",{style:{padding:F?"4vw 4vw":U?"3vw 2vw":"50px",background:s.layout.appBackground,boxShadow:"0px 1px 3px 0px rgba(0, 0, 0, 0.20)",borderRadius:"10px",margin:U?"6vw 3vw 0vw":"10px 0px 0px",opacity:H?1:.5},children:[M("section",{style:{width:"100%",maxWidth:"1440px",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:F?"column":"row",margin:"0 auto",marginBottom:F?"":"40px",gap:z?"10px":"12px",boxSizing:"border-box"},children:[(Se=i==null?void 0:i.bundles)==null?void 0:Se.map(L=>M(Zt.Fragment,{children:[M(Ad,{style:{padding:F?"20px":z?"16px":p.length>=L.id?"30px 44px 18px 26px":"18px",background:p.length==L.id-1?s.layout.bundleBgCurrent:p.length=L.id||F&&p.length==L.id-1?"flex-start":"center"},children:[L.id>1&&g(Nd,{children:g("img",{src:`https://images.samsung.com/is/content/samsung/assets/uk/bundle/icons/${s.images.plusIcon}`,alt:"Icon Plus"})}),p.length{ze(),q("choose-your-product"),I(L.id),P(!0)},...Be(`add${p.length===0?"First":p.length===1?"Second":"Third"}ProductClicked`),size:F?22:14,style:{border:"1px solid #000",fontSize:"14px",position:"absolute",bottom:"20px"},children:L.ctacopy})]}),p.length>=L.id&&M(me,{children:[g("div",{style:{position:"absolute",right:F?"14px":z?"12px":"18px",top:F?"14px":z?"12px":"30px",zIndex:"2",cursor:"pointer"},onClick:()=>{L.categories!="mainCategories"?(h(L.id-1),m(L.id-1),W(L.id-1),k(L.id-1)):(h(),m(),W(),k()),ze()},...Be(a+":DeleteProductClicked"),children:g("img",{src:"https://images.samsung.com/is/content/samsung/assets/uk/bundle/icons/remove-icon.svg",alt:"Remove Icon",style:{width:"20px",height:"24px"}})}),g(qg,{defaultSku:p[L.id-1],accessarySku:C[L.id-1],quantity:f[L.id-1],bundleId:L.id,product:"mainproduct",theme:"light",setSelected:V=>console.log("sku"+V),addToBag:(V,ee)=>console.log("naoo"),setImage:V=>console.log(V),inBasket:V=>!1,leadSku:p[L.id-1],setCta:V=>console.log(V),onError:V=>console.log(V)},p[L.id-1]),!F&&g(oo,{onClick:()=>{I(L.id),c(p[L.id-1]),w(A[L.id-1]),P(!0),S(!0),q("choose-your-product")},...Be(a+":EditProductClicked"),size:F?22:14,style:{border:"1px solid #707070",fontSize:"14px",borderColor:"#707070",position:"absolute",bottom:"23px"},children:"Edit selection"})]})]}),F&&E==L.id&&g(bd,{})]},`bundle-${L.id}`)),M(Ad,{style:{padding:F?"20px 16px":"24px 24px",minHeight:F?"238px":"272px",background:s.layout.bundleTotalColumnBg,gap:"5px"},children:[g(Nd,{children:g("img",{src:`https://images.samsung.com/is/content/samsung/assets/uk/bundle/icons/${s.images.equalsIcon}`,alt:"Icon equals"})}),$&&g(me,{children:(()=>{var L,V,ee,Y,_e;return Number(((L=$==null?void 0:$.subTotal)==null?void 0:L.value)||0),Number(((V=$==null?void 0:$.totalDiscounts)==null?void 0:V.value)||0),Number(((ee=$==null?void 0:$.totalPrice)==null?void 0:ee.value)||0),M(me,{children:[M("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",paddingBottom:F?"4px":"0px"},children:[g("div",{children:g(oe,{weight:"400",style:{color:s.colors.blue,fontSize:"14px"},children:"Total Saving"})}),g("div",{children:g(oe,{weight:"700",style:{color:s.colors.blue,fontSize:"14px"},children:(Y=$==null?void 0:$.totalDiscounts)==null?void 0:Y.formattedValue})})]}),g("div",{style:{display:"flex",flexDirection:"column",width:"100%",height:F?"auto":z?"13vw":U?"9vw":ce.length>0?"110px":"100px",overflow:F?"":"hidden",justifyContent:"start",paddingBottom:F?"5px":"2px"},children:ce.length>0&&g(me,{children:g(Hy,{freeProducts:ce})})}),g("hr",{style:{border:"none",display:"block",height:"1px",backgroundColor:s.colors.silverGray,width:"100%",margin:F?"5px auto 5px":U?"2px auto 2px":"5px auto 5px"}}),M("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",paddingBottom:F?"5px":"10px"},children:[g("div",{children:g(oe,{weight:"700",size:F?26:20,style:{color:s.colors.black,fontSize:F?"18px":z?"16px":"20px"},children:"Total price"})}),g("div",{children:g(oe,{weight:"700",style:{color:s.colors.black,fontSize:F?"18px":z?"16px":"20px"},size:F?26:20,children:(_e=$==null?void 0:$.totalPrice)==null?void 0:_e.formattedValue})})]}),p.length<=1?g(oo,{size:F?22:14,...Be(a+":addToBasketClicked","microsite_cartandshop"),style:{border:`1px solid ${s.colors.mediumGray}`,position:"absolute",bottom:"23px",background:s.colors.paleGray,color:s.colors.mediumGray,cursor:"none",PointerEvent:"none",fontSize:"14px"},children:"Add to basket"}):g(Lg,{onClick:()=>{const pe=[],fe=[];for(const[Ee,Le]of p.entries())Le&&Le!=""&&(pe.push(Le),fe.push(Number(f[Ee])));for(const[Ee,Le]of C.entries())Le&&Le!=""&&(pe.push(Le),fe.push(fe[Ee]));const Q=pe.map((Ee,Le)=>({productCode:Ee,services:[],qty:fe[Le]}));async function he(){const Ee=window.location.href.includes("uk_student")?"uk_student":window.location.href.includes("uk_networks")?"uk_networks":window.location.href.includes("/business/")?"uk_business":"uk";await fetch(`https://api.shop.samsung.com/tokocommercewebservices/v2/${Ee}/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(Q),method:"POST",mode:"cors",credentials:"include"}).then(async Le=>{await Le.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.includes("/business/")?window.location.href="https://shop.samsung.com/uk/business/cart":window.location.href="https://shop.samsung.com/uk/cart"}).catch(Le=>{console.log(Le.message)})}he()},size:F?26:14,style:{position:"absolute",bottom:"23px",fontSize:"14px"},...Be(a+":addToBasketClicked","microsite_cartandshop",re),children:"Add to basket"})]})})()})]})]}),!F&&g(bd,{})]})]})})}const Yy="modulepreload",Zy=function(e){return"/"+e},$d={},Ky=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Zy(i),i in $d)return;$d[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let d=o.length-1;d>=0;d--){const v=o[d];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":Yy,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((d,v)=>{u.addEventListener("load",d),u.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Xy=e=>{e&&e instanceof Function&&Ky(()=>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)})},Md=ag`
* {
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);
}
}
`,Rd=document.querySelectorAll(".bundle-builder-component");if(Rd.length>0)Rd.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"?xg:Yi,i=document.getElementById(t);i&&n!=null&&vi.createRoot(i).render(g(Zt.StrictMode,{children:g(yd,{theme:o,children:M(Dg,{children:[g(Md,{}),g(Gy,{appconfig:n,appid:t})]})})}))});else{const e=document.getElementById("bundle-builder-error-msg");e&&vi.createRoot(e).render(g(Zt.StrictMode,{children:M(yd,{theme:Yi,children:[g(Md,{}),g(oe,{style:{textAlign:"center",fontSize:"16px",fontWeight:"bold",margin:"10px auto"},children:"Error initializing the app"})]})}))}Xy();
});