PageSourceSearch

https://wishesquotes.org/js/page-buying-pd.min.eeb9431bf6dc2b001b8869bc85fdef28.js

js wishesquotes.org collected 2026-09-26 17:15:43 UTC 1,149,606 bytes, 2,186 lines download raw bytes

vendor: 10,055 bytes, lines 1-27
1/*
2 Copyright 2019, Akamai Technologies, Inc. All Rights Reserved. akamai-viewer-0.7.1 */
3var $jscomp$this=this,$jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(l){return l.raw=l};$jscomp.createTemplateTagFirstArgWithRaw=function(l,g){l.raw=g;return l};$jscomp.arrayIteratorImpl=function(l){var g=0;return function(){return g<l.length?{done:!1,value:l[g++]}:{done:!0}}};$jscomp.arrayIterator=function(l){return{next:$jscomp.arrayIteratorImpl(l)}};
4$jscomp.makeIterator=function(l){var g="undefined"!=typeof Symbol&&Symbol.iterator&&l[Symbol.iterator];return g?g.call(l):$jscomp.arrayIterator(l)};$jscomp.arrayFromIterator=function(l){for(var g,H=[];!(g=l.next()).done;)H.push(g.value);return H};$jscomp.arrayFromIterable=function(l){return l instanceof Array?l:$jscomp.arrayFromIterator($jscomp.makeIterator(l))};
5$jscomp.getGlobal=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var g=0;g<l.length;++g){var H=l[g];if(H&&H.Math==Math)return H}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;
6$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(l,g,H){if(l==Array.prototype||l==Object.prototype)return l;l[g]=H.value;return l};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};
7$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(l,g){var H=$jscomp.propertyToPolyfillSymbol[g];if(null==H)return l[g];H=l[H];return void 0!==H?H:l[g]};$jscomp.polyfill=function(l,g,H,u){g&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(l,g,H,u):$jscomp.polyfillUnisolated(l,g,H,u))};
8$jscomp.polyfillUnisolated=function(l,g,H,u){H=$jscomp.global;l=l.split(".");for(u=0;u<l.length-1;u++){var n=l[u];if(!(n in H))return;H=H[n]}l=l[l.length-1];u=H[l];g=g(u);g!=u&&null!=g&&$jscomp.defineProperty(H,l,{configurable:!0,writable:!0,value:g})};
9$jscomp.polyfillIsolated=function(l,g,H,u){var n=l.split(".");l=1===n.length;u=n[0];u=!l&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<n.length-1;v++){var F=n[v];if(!(F in u))return;u=u[F]}n=n[n.length-1];H=$jscomp.IS_SYMBOL_NATIVE&&"es6"===H?u[n]:null;g=g(H);null!=g&&(l?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:g}):g!==H&&(void 0===$jscomp.propertyToPolyfillSymbol[n]&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):
10$jscomp.POLYFILL_PREFIX+n),n=$jscomp.propertyToPolyfillSymbol[n],$jscomp.defineProperty(u,n,{configurable:!0,writable:!0,value:g})))};$jscomp.underscoreProtoCanBeSet=function(){var l={a:!0},g={};try{return g.__proto__=l,g.a}catch(H){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(l,g){l.__proto__=g;if(l.__proto__!==g)throw new TypeError(l+" is not extensible");return l}:null;
11$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(l){if(!(l instanceof Object))throw new TypeError("Iterator result "+l+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
12$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(l){this.yieldResult=l};
13$jscomp.generator.Context.prototype.throw_=function(l){this.abruptCompletion_={exception:l,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(l){this.abruptCompletion_={return:l};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(l){this.abruptCompletion_={jumpTo:l};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(l,g){this.nextAddress=g;return{value:l}};
14$jscomp.generator.Context.prototype.yieldAll=function(l,g){l=$jscomp.makeIterator(l);var H=l.next();$jscomp.generator.ensureIteratorResultIsObject_(H);if(H.done)this.yieldResult=H.value,this.nextAddress=g;else return this.yieldAllIterator_=l,this.yield(H.value,g)};$jscomp.generator.Context.prototype.jumpTo=function(l){this.nextAddress=l};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
15$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(l,g){this.catchAddress_=l;void 0!=g&&(this.finallyAddress_=g)};$jscomp.generator.Context.prototype.setFinallyBlock=function(l){this.catchAddress_=0;this.finallyAddress_=l||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(l,g){this.nextAddress=l;this.catchAddress_=g||0};
16$jscomp.generator.Context.prototype.enterCatchBlock=function(l){this.catchAddress_=l||0;l=this.abruptCompletion_.exception;this.abruptCompletion_=null;return l};$jscomp.generator.Context.prototype.enterFinallyBlock=function(l,g,H){H?this.finallyContexts_[H]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=l||0;this.finallyAddress_=g||0};
17$jscomp.generator.Context.prototype.leaveFinallyBlock=function(l,g){g=this.finallyContexts_.splice(g||0)[0];if(g=this.abruptCompletion_=this.abruptCompletion_||g){if(g.isException)return this.jumpToErrorHandler_();void 0!=g.jumpTo&&this.finallyAddress_<g.jumpTo?(this.nextAddress=g.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=l};$jscomp.generator.Context.prototype.forIn=function(l){return new $jscomp.generator.Context.PropertyIterator(l)};
18$jscomp.generator.Context.PropertyIterator=function(l){this.object_=l;this.properties_=[];for(var g in l)this.properties_.push(g);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var l=this.properties_.pop();if(l in this.object_)return l}return null};$jscomp.generator.Engine_=function(l){this.context_=new $jscomp.generator.Context;this.program_=l};
19$jscomp.generator.Engine_.prototype.next_=function(l){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,l,this.context_.next_);this.context_.next_(l);return this.nextStep_()};
20$jscomp.generator.Engine_.prototype.return_=function(l){this.context_.start_();var g=this.context_.yieldAllIterator_;if(g)return this.yieldAllStep_("return"in g?g["return"]:function(H){return{value:H,done:!0}},l,this.context_.return);this.context_.return(l);return this.nextStep_()};
21$jscomp.generator.Engine_.prototype.throw_=function(l){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],l,this.context_.next_);this.context_.throw_(l);return this.nextStep_()};
22$jscomp.generator.Engine_.prototype.yieldAllStep_=function(l,g,H){try{var u=l.call(this.context_.yieldAllIterator_,g);$jscomp.generator.ensureIteratorResultIsObject_(u);if(!u.done)return this.context_.stop_(),u;var n=u.value}catch(v){return this.context_.yieldAllIterator_=null,this.context_.throw_(v),this.nextStep_()}this.context_.yieldAllIterator_=null;H.call(this.context_,n);return this.nextStep_()};
23$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var l=this.program_(this.context_);if(l)return this.context_.stop_(),{value:l.value,done:!1}}catch(g){this.context_.yieldResult=void 0,this.context_.throw_(g)}this.context_.stop_();if(this.context_.abruptCompletion_){l=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(l.isException)throw l.exception;return{value:l.return,done:!0}}return{value:void 0,done:!0}};
24$jscomp.generator.Generator_=function(l){this.next=function(g){return l.next_(g)};this.throw=function(g){return l.throw_(g)};this.return=function(g){return l.return_(g)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(l,g){g=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(g));$jscomp.setPrototypeOf&&l.prototype&&$jscomp.setPrototypeOf(g,l.prototype);return g};
25$jscomp.asyncExecutePromiseGenerator=function(l){function g(u){return l.next(u)}function H(u){return l.throw(u)}return new Promise(function(u,n){function v(F){F.done?u(F.value):Promise.resolve(F.value).then(g,H).then(v,n)}v(l.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(l){return $jscomp.asyncExecutePromiseGenerator(l())};$jscomp.asyncExecutePromiseGeneratorProgram=function(l){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(l)))};
26(function(){function l(){W.$popup.find(".hubble-pd-popup__layer-inner").target.forEach(function(aa){var x=v(aa);aa=x.find(".hubble-pd-popup__foot");var U=x.find(".hubble-pd-popup__content-wrap");x=x.find(".hubble-pd-popup__content");var B=W.$popup.find(".hubble-pd-popup__wrap").height();x.css({maxHeight:""});B=0<aa.target.length?B-((parseFloat(U.css("padding-top"))||0)+(aa.offset().height||0)):B-((parseFloat(U.css("padding-top"))||0)+(parseFloat(U.css("padding-bottom"))||0));x.css({maxHeight:B+"px"})})}
27function g(aa,x){x=void 0===x?null:x;aa=v(aa);aa.show();aa.setLayerFocus(".hubble-pd-popup__layer",F.close);aa.trigger("openPopup");
27document.documentElement.classList.add("hive-layer-scroll-lock");v("head").attr("aria-hidden","true");aa.find(".hubble-pd-popup__layer").removeAttr("role");aa.find(F.close).off("click").on("click",H);W.$popup=aa;W.$openBtn=v(x);aa.hasClass("is-scroll-active")&&(0<aa.find(".hubble-pd-popup__foot").target.length&&aa.find(".hubble-pd-popup__content-wrap").css({paddingBottom:"0"}),
28l(),v(window).off("resize",l).on("resize",l));window.sg.common.lazyLoad.setLazyLoad()}function H(){var aa=W.$popup;aa.hide();aa.offLayerFocus();document.documentElement.classList.remove("hive-layer-scroll-lock");v("head").removeAttr("aria-hidden");aa.find(".hubble-pd-popup__layer").attr("role","dialog");aa.find(F.close).off("click");v(window).off("resize",l);W.$openBtn.focus();W.$popup=null;W.$openBtn=null}function u(){W.$btns.off("click").on("click",function(aa){g(aa.currentTarget.dataset.layerTarget,
29aa.currentTarget)})}function n(){W.$btns=v(F.section);u()}var v=window.sg.common.$q,F={section:"[data-layer-target]",close:".hubble-pd-popup-closer"},W={$btns:null,$popup:null,$openBtn:null};window.sg.components.hubblePdPopup={init:n,reinit:function(aa,x){aa=void 0===aa?null:aa;x=void 0===x?null:x;null===aa?n():g(aa,x)},openPopup:g,closePopup:H,resizeHeight:l};v.ready(n)})();
30(function(){function l(){g(H.section).target.forEach(function(n){u.instances.has(n)||new u(n)})}var g=window.sg.common.$q,H={section:".notification-bar"},u=function(n){var v=this;this.selector={section:H.section,btn:".notification-bar__toggle-btn",hidden:".notification-bar__toggle-btn .hidden",content:".notification-bar__inner",nomarl:".notification-bar__column--collapsed",expend:".notification-bar__column--expanded"};this.timer=null;this.ele={window:g(window),section:g(n),btn:null,content:null,nomarl:null,
31expand:null};this.handler={resize:function(){v.ele.section.css({height:""});v.timer&&clearTimeout(v.timer);setTimeout(function(){v.setHeight()},400)}};this.setProperty();u.instances.set(n,this);this.init()};u.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.ele.hidden=this.ele.section.find(this.selector.hidden);this.ele.content=this.ele.section.find(this.selector.content);this.ele.pdBanner=this.ele.section.find(this.selector.pdBanner);this.ele.nomarl=this.ele.section.find(this.selector.nomarl);
32this.ele.expand=this.ele.section.find(this.selector.expend)};u.prototype.init=function(){this.bindEvents()};u.prototype.reInit=function(){this.setProperty();this.bindEvents()};u.prototype.setHeight=function(){this.ele.section.css({height:this.ele.content.outerHeight()+"px"})};u.prototype.bindEvents=function(){var n=this;this.ele.btn.off("click").on("click",function(){n.ele.section.hasClass("is-expanded")?n.closeBanner():n.openBanner()});this.ele.window.off("resize",this.handler.resize).on("resize",
33this.handler.resize);this.setHeight()};u.prototype.openBanner=function(){this.ele.section.addClass("is-expanded");this.ele.section.attr("aria-expanded",!0);this.ele.nomarl.hide();this.ele.expand.show();this.ele.hidden.innerHTML("Click to Collapse");this.setHeight()};u.prototype.closeBanner=function(){this.ele.section.removeClass("is-expanded");this.ele.section.attr("aria-expanded",!1);this.ele.nomarl.show();this.ele.expand.hide();this.ele.hidden.innerHTML("Click to Expand");this.setHeight()};u.instances=
34new WeakMap;window.sg.components.notificationBar={init:l,reInit:function(){g(H.section).target.forEach(function(n){u.instances.has(n)?u.instances.get(n).reInit():new u(n)})},closeBanner:function(n){n=void 0===n?!0:n;g(H.section).target.forEach(function(v){u.instances.has(v)&&u.instances.get(v).closeBanner(n)})}};g.ready(l)})();
35(function(){var l=window.sg.common.$q,g=window.sg.common.swiperManager,H=null,u=null,n=function(){H.find(".usp-banner__desc").target.forEach(function(aa){aa=l(aa);var x=aa.attr("data-an-page-track"),U=aa.attr("data-an-headline-text");aa.find("a").target.forEach(function(B){B.setAttribute("an-tr","ft17_usp banner-"+x+"-text-link");B.setAttribute("an-ca","content click");B.setAttribute("an-ac","feature");B.setAttribute("an-la","usp banner:"+U)})});H.target.forEach(function(aa){var x=l(aa);if(x.hasClass("usp-banner--bg-dynamic")){var U=
36x.find(".swiper-container");aa=function(){U.find(".swiper-slide-active").hasClass("dynamic--bg-light-gray")?(x.addClass("dynamic--bg-light-gray"),x.removeClass("dynamic--bg-blue")):U.find(".swiper-slide-active").hasClass("dynamic--bg-blue")&&(x.addClass("dynamic--bg-blue"),x.removeClass("dynamic--bg-light-gray"))};g.getSwiper(U.target[0]).on("transitionEnd",aa);aa()}})},v=function(){H.target.forEach(function(aa){function x(k){var A=l(e.slides[e.activeIndex]),ca=A.find(".usp-banner__desc a"),K=A.find(".
36image__main[data-desktop-aem-asset-id], .image-v2__main[data-desktop-aem-asset-id], .first-image img[data-desktop-aem-asset-id], .video[data-desktop-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .image__hover-image--hover[data-aem-asset-id],  .video[data-aem-asset-id]").target.map(function(D){return l(D).attr("data-desktop-aem-asset-id")||
37l(D).attr("data-aem-asset-id")}).filter(function(D){return null!==D&&""!==D}).join(",");A=A.find(".image__main[data-mobile-aem-asset-id], .image-v2__main[data-mobile-aem-asset-id], .first-image img[data-mobile-aem-asset-id], .video[data-mobile-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .image__hover-image--hover[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(D){return l(D).attr("data-mobile-aem-asset-id")||
38l(D).attr("data-aem-asset-id")}).filter(function(D){return null!==D&&""!==D}).join(",");switch(k){case "desktop":p.attr("an-as",K);ca.attr("an-as",K);break;case "mobile":p.attr("an-as",A),ca.attr("an-as",A)}}var U=window.sg.common.utils.getCurrentDevice(),B=l(window);aa=l(aa);var w=aa.find(".swiper-container"),e=g.getSwiper(w.target[0]),p=aa.find(".usp-banner__indicator button");x(U);e.on("slideChange",function(){x(U)});e.on("init",function(){x(U)});B.on("resize",function(){var k=window.sg.common.utils.getCurrentDevice();
39U!==k&&(U=k,x(U))})})},F=function(){u.target.forEach(function(aa){aa=l(aa);1===aa.find(".usp-banner__icon").target.length&&("ltr"===window.sg.common.utils.getDirection()?aa.find(".usp-banner__desc").css({"text-align":"left"}):"rtl"===window.sg.common.utils.getDirection()&&aa.find(".usp-banner__desc").css({"text-align":"right"}))})},W=function(){window.sg.common.image.initAll();H=l(".usp-banner");u=l(".usp-banner__contents");H.target.length&&u.target.length&&(n(),v(),"mobile"===window.sg.common.utils.getCurrentDevice()&&
40F())};l.ready(W);window.sg.components.uspBanner={init:W,reInit:function(){l(".usp-banner").find(".basic-swiper").target.forEach(function(aa){g.getSwiper(aa)?g.slideReInit(aa):g.slideInit(aa)});n();v()}}})();
41(function(){function l(){g(H.section).target.forEach(function(n){u.instances.has(n)||new u(n)})}var g=window.sg.common.$q,H={section:".pd-banner"},u=function(n){this.selector={section:H.section,btn:".pd-banner__toggle",hidden:".hidden",content:".pd-banner__inner",contentFade:".pd-banner__content-wrap",contentTitle:".pd-banner__title",timerText:".pd-banner__timer-text",timerCloseTxt:".offer-timer__timer-text",timerOpenDay:".pd-banner__timer .offer-timer__remain-day",timerOpenCount:".pd-banner__timer .offer-timer__counter",
42timerOpenIndia:".s-timer \x3e span .text"};this.ele={window:g(window),section:g(n),btn:null,hidden:null,content:null,contentFade:null,contentTitle:null,timerCloseTxt:null,timerOpenDay:null,timerOpenCount:null};this.bannerType=this.isRu=this.isIndia=this.timeText=this.timeStart=this.timeEnd=this.isTimeStart=this.colorStyle=this.timer=null;this.usePreOfferBanner=this.ele.section.hasClass("pd-banner--pre-offer");this.setProperty();u.instances.set(n,this);this.init()};u.prototype.setProperty=function(){this.ele.btn=
43this.ele.section.find(this.selector.btn);this.ele.hidden=this.ele.section.find(this.selector.hidden);this.ele.content=this.ele.section.find(this.selector.content);this.ele.timerText=this.ele.section.find(this.selector.timerText);this.ele.contentFade=this.ele.section.find(this.selector.contentFade);this.ele.contentTitle=this.ele.section.find(this.selector.contentTitle);this.colorStyle={preFold:JSON.parse(this.ele.section.attr("data-prefold-data")),preUnfold:JSON.parse(this.ele.section.attr("data-preunfold-data")),
44fold:JSON.parse(this.ele.section.attr("data-fold-data")),unfold:JSON.parse(this.ele.section.attr("data-unfold-data"))};this.timeText={start:this.ele.content.attr("data-start-text")||"",end:this.ele.content.attr("data-end-text")||"",day:this.ele.content.attr("data-day-text")||""};this.isIndia=this.ele.section.hasClass("timer-in");if(this.isRu=this.ele.section.hasClass("timer-ru"))this.ele.remainText=this.ele.section.find(".offer-timer__remain-text")};u.prototype.init=function(){this.bindEvents();this.setCounter();
45this.setStyle(this.ele.section.hasClass("pd-banner--open"))};
45u.prototype.setCounter=function(){this.ele.timerCloseTxt=this.ele.section.find(this.selector.timerCloseTxt);this.ele.timerOpenDay=this.ele.section.find(this.selector.timerOpenDay);this.ele.timerOpenCount=this.ele.section.find(this.isIndia?this.selector.timerOpenIndia:this.selector.timerOpenCount);this.timeStart=u.dateFormat(this.ele.content.attr("data-start-time"));this.timeEnd=u.dateFormat(this.ele.content.attr("data-end-time"));this.isTimeStart=
460<new Date(this.timeStart)-new Date?!0:!1;this.viewTime();clearInterval(this.timer);this.timer=null;this.timer=setInterval(this.viewTime.bind(this),1E3)};u.prototype.viewTime=function(){var n=u.counterData(this.isTimeStart?this.timeStart:this.timeEnd),v=this.isTimeStart?this.timeText.start:this.timeText.end,F=this.isIndia?":":this.isRu?" \u0434. ":" | ";if(0>=n.distance)if(!0===this.isTimeStart)this.isTimeStart=!1,n=u.counterData(this.timeEnd),this.ele.timerOpenDay=this.ele.section.find(this.selector.timerOpenDay),
47this.ele.section.find(".offer-timer__day").removeClass("offer-timer__day--end");else if(0===this.timeStart)this.ele.section.show();else{this.hideBanner();return}else"block"!==this.ele.section.css("display")&&this.ele.section.show(),this.ele.timerText.text(""+v),this.setOfferStates();0<n.day?""===this.timeText.day?(this.ele.timerCloseTxt.text(v+" "+n.day+F+n.hour+":"+n.minute+":"+n.second),"cn"==$("#siteCode").val()&&this.ele.timerCloseTxt.text(""+v+n.day+F+n.hour+":"+n.minute+":"+n.second)):this.ele.timerCloseTxt.text(v+
48" "+n.day+" "+this.timeText.day+F+n.hour+":"+n.minute+":"+n.second):this.ele.timerCloseTxt.text(v+" "+n.hour+":"+n.minute+":"+n.second);this.isIndia?(v=this.ele.timerOpenCount.target[0].parentNode,0===n.day&&"none"!==v.style.display?v.style.display="none":0<n.day&&""!==v.style.display&&(v.style.display=""),this.ele.timerOpenCount.target.forEach(function(W,aa){var x=null;switch(aa){case 0:x=u.numFormat(n.day);break;case 1:x=n.hour;break;case 2:x=n.minute;break;case 3:x=n.second}W.textContent=x;aa=
49W.nextElementSibling;aa.textContent=1>=parseInt(W.textContent)?aa.dataset.textSingular:aa.dataset.textPlural})):(0<n.day?"cn"==$("#siteCode").val()?(this.ele.section.find(".offer-timer__day").text(n.day),this.ele.section.find(".offer-timer__day").append('\x3cspan class\x3d"offer-timer__remain-day"\x3e'+Granite.I18n.get("Day in")+"\x3c/span\x3e")):this.ele.timerOpenDay.text(n.day):null!==this.ele.timerOpenDay&&(this.ele.section.find(".offer-timer__day").addClass("offer-timer__day--end"),this.ele.timerOpenDay=
50null),this.isRu&&this.ele.remainText.text(""+v),this.ele.timerOpenCount.text(n.hour+":"+n.minute+":"+n.second))};u.counterData=function(n){n=new Date(n)-new Date;return{day:Math.floor(n/864E5),hour:u.numFormat(Math.floor(n%864E5/36E5)),minute:u.numFormat(Math.floor(n%36E5/6E4)),second:u.numFormat(Math.floor(n%6E4/1E3)),distance:n}};u.numFormat=function(n){n=Number(n).toString();10>Number(n)&&1===n.length&&(n="0"+n);return n};u.dateFormat=function(n){return null===n||""===n?0:n.substring(0,4)+"-"+
51n.substring(4,6)+"-"+n.substring(6,8)+"T"+n.substring(8,10)+":"+n.substring(10)};u.prototype.setOfferStates=function(){this.usePreOfferBanner&&(this.isTimeStart?"preOfferbanner"!==this.bannerType&&(this.ele.section.addClass("pd-banner--pre-offer-show"),this.bannerType="preOfferbanner"):"offerBanner"!==this.bannerType&&(this.ele.section.removeClass("pd-banner--pre-offer-show"),window.sg.common.lazyLoad.setLazyLoad(),this.bannerType="offerBanner",this.setStyle(this.ele.section.hasClass("pd-banner--open"))))};
52u.prototype.hideBanner=function(){this.ele.section.hide();clearInterval(this.timer);this.isTimeStart=this.timer=null;this.ele.window.trigger("resize")};u.prototype.reInit=function(){this.setProperty();this.bindEvents();clearInterval(this.timer);this.setCounter()};u.prototype.bindEvents=function(){var n=this;this.ele.btn.off("click").on("click",function(){n.ele.section.hasClass("pd-banner--open")?n.closeBanner():n.openBanner()})};u.prototype.setStyle=function(n){var v=this.usePreOfferBanner&&this.isTimeStart;
53if(n){n=v?this.colorStyle.preFold.textColor:this.colorStyle.fold.textColor;var F=v?this.colorStyle.preUnfold.textColor:this.colorStyle.unfold.textColor;this.ele.section.css({background:v?this.colorStyle.preUnfold.bgColor:this.colorStyle.unfold.bgColor});this.ele.section.removeClass("pd-banner--text-"+n);this.ele.section.addClass("pd-banner--text-"+F)}else n=v?this.colorStyle.preFold.textColor:this.colorStyle.fold.textColor,F=v?this.colorStyle.preUnfold.textColor:this.colorStyle.unfold.textColor,this.ele.section.css({background:v?
54this.colorStyle.preFold.bgColor:this.colorStyle.fold.bgColor}),this.ele.section.removeClass("pd-banner--text-"+F),"black"!==this.colorStyle.fold.textColor&&this.ele.section.addClass("pd-banner--text-"+n)};u.prototype.openBanner=function(){var n=this;if(!(0>this.timerDayInt)){this.ele.content.stop();this.ele.content.attr("style","");var v=this.ele.content.height();this.ele.section.addClass("pd-banner--open");var F=this.ele.content.height();this.ele.content.target[0].style.height=v+"px";this.ele.content.animate({height:F+
55"px"},300,function(){n.ele.content.attr("style","")});this.ele.contentFade.target[0].style.opacity=1;this.ele.section.attr("aria-expanded",!0);window.sg.common.lazyLoad.setLazyLoad();this.setStyle(!0)}};u.prototype.closeBanner=function(n){var v=this;n=void 0===n?!0:n;if(!(0>this.timerDayInt)){this.ele.content.stop();if(n){this.ele.content.attr("style","");n=this.ele.content.height();this.ele.section.removeClass("pd-banner--open");var F=this.ele.content.height();this.ele.section.addClass("pd-banner--open");
56this.ele.content.target[0].style.height=n+"px";this.ele.content.animate({height:F+"px"},300,function(){v.ele.section.removeClass("pd-banner--open");v.ele.content.attr("style","");v.ele.contentTitle.target[0].style.opacity=0;setTimeout(function(){v.ele.contentTitle.target[0].style.opacity=1},30)})}else this.ele.section.removeClass("pd-banner--open"),this.ele.content.attr("style",""),this.ele.contentTitle.target[0].style.opacity=1;this.ele.contentFade.target[0].style.opacity=0;this.ele.section.attr("aria-expanded",
57!1);this.setStyle(!1)}};u.instances=new WeakMap;window.sg.components.pdBanner={init:l,reInit:function(){g(H.section).target.forEach(function(n){u.instances.has(n)?u.instances.get(n).reInit():new u(n)})},closeBanner:function(n){n=void 0===n?!0:n;g(H.section).target.forEach(function(v){u.instances.has(v)&&u.instances.get(v).closeBanner(n)})}};g.ready(l)})();
58!function(l){var g=Date.now||function(){return+new Date},H={},u=1;l.core?core.effect||(core.effect={}):l.core={effect:{}};core.effect.Animate={requestAnimationFrame:function(){var n=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame,v=!!n;if(n&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}
58/i.test(n.toString())&&(v=!1),v)return function(B,w){n(B,w)};var F={},W=0,aa=1,x=null,U=+new Date;return function(B,w){w=aa++;return F[w]=B,W++,
59null===x&&(x=setInterval(function(){var e=+new Date,p=F;F={};W=0;for(var k in p)p.hasOwnProperty(k)&&(p[k](e),U=e);2500<e-U&&(clearInterval(x),x=null)},1E3/60)),w}}(),stop:function(n){var v=null!=H[n];return v&&(H[n]=null),v},isRunning:function(n){return null!=H[n]},start:function(n,v,F,W,aa,x){var U=g(),B=U,w=0,e=0,p=u++;if(x||(x=document.body),0==p%20){var k={},A;for(A in H)k[A]=!0;H=k}var ca=function(K){K=!0!==K;var D=g();if(!H[p]||v&&!v(p))return H[p]=null,void(F&&F(60-e/((D-U)/1E3),p,!1));if(K)for(var h=
60Math.round((D-B)/(1E3/60))-1,C=0;C<Math.min(h,4);C++)ca(!0),e++;W&&1<(w=(D-U)/W)&&(w=1);h=aa?aa(w):w;!1!==n(h,D,K)&&1!==w||!K?K&&(B=D,core.effect.Animate.requestAnimationFrame(ca,x)):(H[p]=null,F&&F(60-e/((D-U)/1E3),p,1===w||null==W))};return H[p]=!0,core.effect.Animate.requestAnimationFrame(ca,x),p}}}(this);var Scroller;
61!function(){Scroller=function(n,v){this.__callback=n;this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3};for(var F in v)this.options[F]=v[F]};var l=function(n){return Math.pow(n-1,3)+1},g=function(n){return 1>(n/=.5)?.5*Math.pow(n,3):.5*(Math.pow(n-2,3)+2)},H={__isSingleTouch:!1,__isTracking:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,
62__clientHeight:0,__contentWidth:0,__contentHeight:0,__snapWidth:100,__snapHeight:100,__refreshHeight:null,__refreshActive:!1,__refreshActivate:null,__refreshDeactivate:null,__refreshStart:null,__zoomLevel:1,__scrollLeft:0,__scrollTop:0,__maxScrollLeft:0,__maxScrollTop:0,__scheduledLeft:0,__scheduledTop:0,__scheduledZoom:0,__lastTouchLeft:null,__lastTouchTop:null,__lastTouchMove:null,__positions:null,__minDecelerationScrollLeft:null,__minDecelerationScrollTop:null,__maxDecelerationScrollLeft:null,
63__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(n,v,F,W){n&&(this.__clientWidth=n);v&&(this.__clientHeight=v);F&&(this.__contentWidth=F);W&&(this.__contentHeight=W);this.__computeScrollMax();this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(n,v){this.__clientLeft=n||0;this.__clientTop=v||0},setSnapSize:function(n,v){this.__snapWidth=n;this.__snapHeight=v},activatePullToRefresh:function(n,v,F,W){this.__refreshHeight=
64n;this.__refreshActivate=v;this.__refreshDeactivate=F;this.__refreshStart=W},finishPullToRefresh:function(){this.__refreshActive=!1;this.__refreshDeactivate&&this.__refreshDeactivate();this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,zoom:this.__zoomLevel}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(n,v,F,W){if(!this.options.zooming)throw Error("Zooming is not enabled!");
65this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1);var aa=this.__zoomLevel;null==F&&(F=this.__clientWidth/2);null==W&&(W=this.__clientHeight/2);n=Math.max(Math.min(n,this.options.maxZoom),this.options.minZoom);this.__computeScrollMax(n);F=(F+this.__scrollLeft)*n/aa-F;W=(W+this.__scrollTop)*n/aa-W;F>this.__maxScrollLeft?F=this.__maxScrollLeft:0>F&&(F=0);W>this.__maxScrollTop?W=this.__maxScrollTop:0>W&&(W=0);this.__publish(F,W,n,v)},zoomBy:function(n,v,
66F,W){this.zoomTo(this.__zoomLevel*n,v,F,W)},scrollTo:function(n,v,F,W){if(this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1),null!=W&&W!==this.__zoomLevel){if(!this.options.zooming)throw Error("Zooming is not enabled!");n*=W;v*=W;this.__computeScrollMax(W)}else W=this.__zoomLevel;this.options.scrollingX?this.options.paging?n=Math.round(n/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(n=Math.round(n/this.__snapWidth)*this.__snapWidth):
67n=this.__scrollLeft;this.options.scrollingY?this.options.paging?v=Math.round(v/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(v=Math.round(v/this.__snapHeight)*this.__snapHeight):v=this.__scrollTop;n=Math.max(Math.min(this.__maxScrollLeft,n),0);v=Math.max(Math.min(this.__maxScrollTop,v),0);n===this.__scrollLeft&&v===this.__scrollTop&&(F=!1);this.__publish(n,v,W,F)},scrollBy:function(n,v,F){this.scrollTo((this.__isAnimating?this.__scheduledLeft:this.__scrollLeft)+(n||0),(this.__isAnimating?
68this.__scheduledTop:this.__scrollTop)+(v||0),F)},doMouseZoom:function(n,v,F,W){return this.zoomTo(this.__zoomLevel*(0<n?.97:1.03),!1,F-this.__clientLeft,W-this.__clientTop)},doTouchStart:function(n,v){if(null==n.length)throw Error("Invalid touch list: "+n);if(v instanceof Date&&(v=v.valueOf()),"number"!=typeof v)throw Error("Invalid timestamp value: "+v);this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1);this.__isAnimating&&(core.effect.Animate.stop(this.__isAnimating),
69this.__isAnimating=!1);var F,W,aa=1===n.length;aa?(F=n[0].pageX,W=n[0].pageY):(F=Math.abs(n[0].pageX+n[1].pageX)/2,W=Math.abs(n[0].pageY+n[1].pageY)/2);this.__initialTouchLeft=F;this.__initialTouchTop=W;this.__zoomLevelStart=this.__zoomLevel;this.__lastTouchLeft=F;this.__lastTouchTop=W;this.__lastTouchMove=v;this.__lastScale=1;this.__enableScrollX=!aa&&this.options.scrollingX;this.__enableScrollY=!aa&&this.options.scrollingY;this.__isTracking=!0;this.__isDragging=!aa;this.__isSingleTouch=aa;this.__positions=
70[]},doTouchMove:function(n,v,F){if(null==n.length)throw Error("Invalid touch list: "+n);if(v instanceof Date&&(v=v.valueOf()),"number"!=typeof v)throw Error("Invalid timestamp value: "+v);if(this.__isTracking){var W,aa;2===n.length?(W=Math.abs(n[0].pageX+n[1].pageX)/2,aa=Math.abs(n[0].pageY+n[1].pageY)/2):(W=n[0].pageX,aa=n[0].pageY);n=this.__positions;if(this.__isDragging){var x=W-this.__lastTouchLeft,U=aa-this.__lastTouchTop,B=this.__scrollLeft,w=this.__scrollTop,e=this.__zoomLevel;if(null!=F&&
71this.options.zooming){var p=e;if(e=e/this.__lastScale*F,e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),p!==e){var k=W-this.__clientLeft,A=aa-this.__clientTop;B=(k+B)*e/p-k;w=(A+w)*e/p-A;this.__computeScrollMax(e)}}
71this.__enableScrollX&&(B-=x,p=this.__maxScrollLeft,(B>p||0>B)&&(this.options.bouncing?B+=x/2:B=B>p?p:0));this.__enableScrollY&&(w-=U,x=this.__maxScrollTop,(w>x||0>w)&&(this.options.bouncing?(w+=U/2,this.__enableScrollX||null==this.__refreshHeight||(!this.__refreshActive&&
72w<=-this.__refreshHeight?(this.__refreshActive=!0,this.__refreshActivate&&this.__refreshActivate()):this.__refreshActive&&w>-this.__refreshHeight&&(this.__refreshActive=!1,this.__refreshDeactivate&&this.__refreshDeactivate()))):w=w>x?x:0));60<n.length&&n.splice(0,30);n.push(B,w,v);this.__publish(B,w,e)}else U=this.options.locking?3:0,B=Math.abs(W-this.__initialTouchLeft),w=Math.abs(aa-this.__initialTouchTop),this.__enableScrollX=this.options.scrollingX&&B>=U,this.__enableScrollY=this.options.scrollingY&&
73w>=U,n.push(this.__scrollLeft,this.__scrollTop,v),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(5<=B||5<=w);this.__lastTouchLeft=W;this.__lastTouchTop=aa;this.__lastTouchMove=v;this.__lastScale=F}},doTouchEnd:function(n){if(n instanceof Date&&(n=n.valueOf()),"number"!=typeof n)throw Error("Invalid timestamp value: "+n);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging&&(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&100>=n-this.__lastTouchMove)){for(var v=
74this.__positions,F=v.length-1,W=F,aa=F;0<aa&&v[aa]>this.__lastTouchMove-100;aa-=3)W=aa;W!==F&&(F=v[F]-v[W],aa=this.__scrollTop-v[W-1],this.__decelerationVelocityX=(this.__scrollLeft-v[W-2])/F*(1E3/60),this.__decelerationVelocityY=aa/F*(1E3/60),v=this.options.paging||this.options.snapping?4:1,(Math.abs(this.__decelerationVelocityX)>v||Math.abs(this.__decelerationVelocityY)>v)&&(this.__refreshActive||this.__startDeceleration(n)))}this.__isDecelerating||(this.__refreshActive&&this.__refreshStart?(this.__publish(this.__scrollLeft,
75-this.__refreshHeight,this.__zoomLevel,!0),this.__refreshStart&&this.__refreshStart()):(this.scrollTo(this.__scrollLeft,this.__scrollTop,!0,this.__zoomLevel),this.__refreshActive&&(this.__refreshActive=!1,this.__refreshDeactivate&&this.__refreshDeactivate())));this.__positions.length=0}},__publish:function(n,v,F,W){var aa=this,x=aa.__isAnimating;if(x&&(core.effect.Animate.stop(x),aa.__isAnimating=!1),W&&aa.options.animating){aa.__scheduledLeft=n;aa.__scheduledTop=v;aa.__scheduledZoom=F;var U=aa.__scrollLeft,
76B=aa.__scrollTop,w=aa.__zoomLevel,e=n-U,p=v-B,k=F-w;aa.__isAnimating=core.effect.Animate.start(function(A,ca,K){K&&(aa.__scrollLeft=U+e*A,aa.__scrollTop=B+p*A,aa.__zoomLevel=w+k*A,aa.__callback&&aa.__callback(aa.__scrollLeft,aa.__scrollTop,aa.__zoomLevel))},function(A){return aa.__isAnimating===A},function(A,ca,K){ca===aa.__isAnimating&&(aa.__isAnimating=!1);aa.options.zooming&&aa.__computeScrollMax()},aa.options.animationDuration,x?l:g)}else aa.__scheduledLeft=aa.__scrollLeft=n,aa.__scheduledTop=
77aa.__scrollTop=v,aa.__scheduledZoom=aa.__zoomLevel=F,aa.__callback&&aa.__callback(n,v,F),aa.options.zooming&&aa.__computeScrollMax()},__computeScrollMax:function(n){null==n&&(n=this.__zoomLevel);this.__maxScrollLeft=Math.max(this.__contentWidth*n-this.__clientWidth,0);this.__maxScrollTop=Math.max(this.__contentHeight*n-this.__clientHeight,0)},__startDeceleration:function(n){var v=this;if(v.options.paging){n=Math.max(Math.min(v.__scrollLeft,v.__maxScrollLeft),0);var F=Math.max(Math.min(v.__scrollTop,
78v.__maxScrollTop),0),W=v.__clientWidth,aa=v.__clientHeight;v.__minDecelerationScrollLeft=Math.floor(n/W)*W;v.__minDecelerationScrollTop=Math.floor(F/aa)*aa;v.__maxDecelerationScrollLeft=Math.ceil(n/W)*W;v.__maxDecelerationScrollTop=Math.ceil(F/aa)*aa}else v.__minDecelerationScrollLeft=0,v.__minDecelerationScrollTop=0,v.__maxDecelerationScrollLeft=v.__maxScrollLeft,v.__maxDecelerationScrollTop=v.__maxScrollTop;var x=v.options.snapping?4:.1;v.__isDecelerating=core.effect.Animate.start(function(U,B,
79w){v.__stepThroughDeceleration(w)},function(){return Math.abs(v.__decelerationVelocityX)>=x||Math.abs(v.__decelerationVelocityY)>=x},function(U,B,w){v.__isDecelerating=!1;v.scrollTo(v.__scrollLeft,v.__scrollTop,v.options.snapping)})},__stepThroughDeceleration:function(n){var v=this.__scrollLeft+this.__decelerationVelocityX,F=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var W=Math.max(Math.min(this.__maxDecelerationScrollLeft,v),this.__minDecelerationScrollLeft);W!==v&&
80(v=W,this.__decelerationVelocityX=0);W=Math.max(Math.min(this.__maxDecelerationScrollTop,F),this.__minDecelerationScrollTop);W!==F&&(F=W,this.__decelerationVelocityY=0)}(n?this.__publish(v,F,this.__zoomLevel):(this.__scrollLeft=v,this.__scrollTop=F),this.options.paging)||(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95);this.options.bouncing&&(W=n=0,v<this.__minDecelerationScrollLeft?n=this.__minDecelerationScrollLeft-v:v>this.__maxDecelerationScrollLeft&&(n=this.__maxDecelerationScrollLeft-
81v),F<this.__minDecelerationScrollTop?W=this.__minDecelerationScrollTop-F:F>this.__maxDecelerationScrollTop&&(W=this.__maxDecelerationScrollTop-F),0!==n&&(0>=n*this.__decelerationVelocityX?this.__decelerationVelocityX+=.03*n:this.__decelerationVelocityX=.08*n),0!==W&&(0>
81=W*this.__decelerationVelocityY?this.__decelerationVelocityY+=.03*W:this.__decelerationVelocityY=.08*W))}},u;for(u in H)Scroller.prototype[u]=H[u]}();
82(function(l){"function"==typeof define&&define.amd?define(["shoestring"],l):"object"==typeof module&&module.exports?module.exports=l():l()})(function(){function l(e,p){var k,A=typeof e,ca=[];if(!e)return new W(ca);if(e.call)return l.ready(e);if(e.constructor===W&&!p)return e;if("string"===A&&0===e.indexOf("\x3c")){var K=F.createElement("div");return K.innerHTML=e,l(K).children().each(function(){K.removeChild(this)})}return"string"===A?p?l(p).find(e):(k=F.querySelectorAll(e),new W(k,e)):"[object Array]"===
83Object.prototype.toString.call(A)||v.NodeList&&e instanceof v.NodeList?new W(e,e):e.constructor===Array?new W(e,e):new W([e],e)}function g(e,p){var k=!1;return e.each(function(){for(var A=0;A<p.length;)this===p[A]&&(k=!0),A++}),k}function H(e,p){e.shoestringData||(e.shoestringData={});e.shoestringData.events||(e.shoestringData.events={});e.shoestringData.loop||(e.shoestringData.loop={});e.shoestringData.events[p]||(e.shoestringData.events[p]=[])}function u(e,p,k){var A={};A.isCustomEvent=k.isCustomEvent;
84A.callback=k.callfunc;A.originalCallback=k.originalCallback;A.namespace=k.namespace;e.shoestringData.events[p].push(A);k.customEventLoop&&(e.shoestringData.loop[p]=k.customEventLoop)}function n(e,p,k){var A=this.shoestringData.events[e];if(A&&A.length){var ca,K=[];var D=0;for(ca=A.length;D<ca;D++)p&&p!==A[D].namespace||void 0!==k&&k!==A[D].originalCallback||(this.removeEventListener(e,A[D].callback,!1),K.push(D));D=0;for(ca=K.length;D<ca;D++)this.shoestringData.events[e].splice(D,1)}}var v="undefined"!=
85typeof window?window:this,F=v.document,W=function(e,p){this.length=0;this.selector=p;l.merge(this,e)};W.prototype.reverse=[].reverse;l.fn=W.prototype;l.Shoestring=W;l.extend=function(e,p){for(var k in p)p.hasOwnProperty(k)&&(e[k]=p[k]);return e};l.merge=function(e,p){var k;var A=+p.length;var ca=0;for(k=e.length;ca<A;ca++)e[k++]=p[ca];return e.length=k,e};v.shoestring=l;l.ajax=function(e,p){var k,A,ca="",K=new XMLHttpRequest;if(k=l.extend({},l.ajax.settings),p&&l.extend(k,p),e||(e=k.url),K&&e){if(k.data)for(A in k.data)k.data.hasOwnProperty(A)&&
86(""!==ca&&(ca+="\x26"),ca+=encodeURIComponent(A)+"\x3d"+encodeURIComponent(k.data[A]));if("GET"===k.method&&ca&&(e+="?"+ca),K.open(k.method,e,k.async),K.setRequestHeader)for(A in K.setRequestHeader("X-Requested-With","XMLHttpRequest"),"POST"===k.method&&ca&&K.setRequestHeader("Content-type","application/x-www-form-urlencoded"),k.headers)k.headers.hasOwnProperty(A)&&K.setRequestHeader(A,k.headers[A]);return K.onreadystatechange=function(){if(4===K.readyState){var D=(K.responseText||"").replace(/^\s+|\s+$/g,
87"");if(0===K.status.toString().indexOf("0"))return k.cancel(D,K.status,K);if(K.status.toString().match(/^(4|5)/)&&RegExp.$1)return k.error(D,K.status,K);if(k.success)return k.success(D,K.status,K)}},4===K.readyState?K:("POST"===k.method&&ca?K.send(ca):K.send(),K)}};l.ajax.settings={success:function(){},error:function(){},cancel:function(){},method:"GET",async:!0,data:null,headers:{}};l.get=function(e,p){return l.ajax(e,{success:p})};l.fn.load=function(e,p){var k=this,A=arguments;return l.ajax(e,{success:function(ca){k.each(function(){l(this).html(ca)});
88p&&p.apply(k,A)}}),this};l.post=function(e,p,k){return l.ajax(e,{data:p,method:"POST",success:k})};l.fn.each=function(e){return l.each(this,e)};l.each=function(e,p){for(var k=0,A=e.length;k<A&&!1!==p.call(e[k],k,e[k]);k++);return e};l.inArray=function(e,p){for(var k=-1,A=0,ca=p.length;A<ca;A++)p.hasOwnProperty(A)&&p[A]===e&&(k=A);return k};l.ready=function(e){return aa&&e?e.call(F):e?x.push(e):U(),[F]};l.fn.ready=function(e){return l.ready(e),this};var aa=!1,x=[],U=function(){if(!aa){for(;x.length;)x.shift().call(F);
89aa=!0}};(F.attachEvent?"complete"===F.readyState:"loading"!==F.readyState)?U():(F.addEventListener("DOMContentLoaded",U,!1),F.addEventListener("readystatechange",U,!1),v.addEventListener("load",U,!1));l.fn.is=function(e){var p,k,A=!1,ca=this;return"string"!=typeof e?(k=e.length&&e[0]?e:[e],g(this,k)):(p=this.parent(),p.length||(p=l(F)),p.each(function(K,D){K=D.querySelectorAll(e);A=g(ca,K)}),A)};l.fn.data=function(e,p){return void 0===e?this[0]?this[0].shoestringData||{}:void 0:void 0!==p?this.each(function(){this.shoestringData||
90(this.shoestringData={});this.shoestringData[e]=p}):this[0]&&this[0].shoestringData?this[0].shoestringData[e]:void 0};l.fn.removeData=function(e){return this.each(function(){void 0!==e&&this.shoestringData?(this.shoestringData[e]=void 0,delete this.shoestringData[e]):this[0].shoestringData={}})};void 0===v.$&&(v.$=l);l.fn.addClass=function(e){var p=e.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k=0,A=p.length;k<A;k++)void 0===this.className||""!==this.className&&this.className.match(new RegExp("(^|\\s)"+
91p[k]+"($|\\s)"))||(this.className+=" "+p[k])})};l.fn.add=function(e){var p=[];return this.each(function(){p.push(this)}),l(e).each(function(){p.push(this)}),l(p)};l.fn.after=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),1<e.length&&(e=e.reverse()),this.each(function(p){for(var k=0,A=e.length;k<A;k++){var ca=0<p?e[k].cloneNode(!0):e[k];this.parentNode.insertBefore(ca,this.nextSibling)}})};l.fn.append=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(p){for(var k=
920,A=e.length;k<A;k++)this.appendChild(0<p?e[k].cloneNode(!0):e[k])})};l.fn.appendTo=function(e){return this.each(function(){l(e).append(this)})};l.fn.attr=function(e,p){var k="string"==typeof e;return void 0===p&&k?this[0]?this[0].getAttribute(e):void 0:this.each(function(){if(k)this.setAttribute(e,p);else for(var A in e)e.hasOwnProperty(A)&&this.setAttribute(A,e[A])})};l.fn.before=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(p){for(var k=0,A=e.length;k<A;k++)this.parentNode.insertBefore(0<
93p?e[k].cloneNode(!0):e[k],this)})};l.fn.children=function(){var e,p,k=[];return this.each(function(){e=this.children;for(p=-1;p++<e.length-1;)-1===l.inArray(e[p],k)&&k.push(e[p])}),l(k)};l.fn.clone=function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),l(e)};l.fn.closest=function(e){var p=[];return e?(this.each(function(){var k;if(l(k=this).is(e))return void p.push(this);for(;k.parentElement;){if(l(k.parentElement).is(e)){p.push(k.parentElement);break}k=k.parentElement}}),l(p)):
94l(p)};l.cssExceptions={float:["cssFloat"]};(function(){function e(ca){return ca.replace(/\-([A-Za-z])/g,function(K,D){return D.toUpperCase()})}function p(ca,K){return v.getComputedStyle(ca,null).getPropertyValue(K)}var k=l.cssExceptions,A=" -webkit- -ms- -moz- -o- -khtml-".split(" ");l._getStyle=function(ca,K){var D,h,C;if(k[K]){var E=0;for(C=k[K].length;E<C;E++)if(h=p(ca,k[K][E]))return h}E=0;for(C=A.length;E<C;E++)if(D=e(A[E]+K),h=p(ca,D),D!==K&&(h=h||p(ca,K)),A[E]&&(h=h||p(ca,A[E]+K)),h)return h}})();
95(function(){function e(k){return k.replace(/\-([A-Za-z])/g,function(A,ca){return ca.toUpperCase()})}var p=l.cssExceptions;l._setStyle=function(k,A,ca){var K=e(A);if(k.style[A]=ca,K!==A&&(k.style[K]=ca),p[A]){K=0;for(var D=p[A].length;K<D;K++)k.style[p[A][K]]=ca}}})();l.fn.css=function(e,p){if(this[0])return"object"==typeof e?this.each(function(){for(var k in e)e.hasOwnProperty(k)&&l._setStyle(this,k,e[k])}):void 0!==p?this.each(function(){l._setStyle(this,e,p)}):l._getStyle(this[0],e)};l.fn.eq=function(e){return l(this[e]?
96this[e]:[])};l.fn.filter=function(e){var p=[];return this.each(function(k){"function"==typeof e?!1!==e.call(this,k)&&p.push(this):9===this.nodeType?this===e&&p.push(this):(this.parentNode?k=l(e,this.parentNode):(k=l(F.createDocumentFragment()),k[0].appendChild(this),k=l(e,k)),-1<l.inArray(this,k)&&p.push(this))}),l(p)};l.fn.find=function(e){var p,k=[];return this.each(function(){p=this.querySelectorAll(e);for(var A=0,ca=p.length;A<ca;A++)k=k.concat(p[A])}),l(k)};l.fn.first=function(){return this.eq(0)};
97l.fn.get=function(e){if(void 0===e){e=[];for(var p=0;p<this.length;p++)e.push(this[p]);return e}return this[e]};l._dimension=function(e,p,k){var A;return void 0===k?(A=p.replace(/^[a-z]/,function(ca){return ca.toUpperCase()}),e[0]["offset"+A]):(k="string"==typeof k?k:k+"px",e.each(function(){this.style[p]=k}))};l.fn.height=function(e){return l._dimension(this,"height",e)};var B=function(e){if("string"==typeof e||"number"==typeof e)return this.each(function(){this.innerHTML=""+e});var p="";if(void 0!==
98e.length)for(var k=0,A=e.length;k<A;k++)p+=e[k].outerHTML;else p=e.outerHTML;return this.each(function(){this.innerHTML=p})};l.fn.html=function(e){if(void 0!==e)return B.call(this,e);var p="";return this.each(function(){p+=this.innerHTML}),p};(function(){function e(p,k){var A,ca,K;for(A=ca=0;A<p.length;A++){if(K=p.item?p.item(A):p[A],k(K))return ca;1===K.nodeType&&ca++}return-1}l.fn.index=function(p){var k,A;return k=this,void 0===p?(A=(this[0]&&this[0].parentNode||F.documentElement).childNodes,e(A,
99function(ca){return k[0]===ca})):e(k,function(ca){return ca===l(p,ca.parentNode)[0]})}})();l.fn.insertAfter=function(e){return this.each(function(){l(e).after(this)})};l.fn.insertBefore=function(e){return this.each(function(){l(e).before(this)})};l.fn.last=function(){return this.eq(this.length-1)};l.fn.next=function(){var e=[];return this.each(function(){var p,k;var A=l(this.parentNode)[0].childNodes;for(var ca=0;ca<A.length;ca++){if(p=A.item(ca),k&&1===p.nodeType){e.push(p);break}p===this&&(k=!0)}}),
100l(e)};l.fn.not=function(e){var p=[];return this.each(function(){var k=l(e,this.parentNode);-1===l.inArray(this,k)&&p.push(this)}),l(p)};l.fn.offset=function(){return{top:this[0].offsetTop,left:this[0].offsetLeft}};l.fn.parent=function(){var e,p=[];return this.each(function(){(e=this===F.documentElement?F:this.parentNode)&&11!==e.nodeType&&p.push(e)}),l(p)};l.fn.parents=function(e){var p=[];return this.each(function(){for(var k,A=this;A.parentElement&&!k;)A=A.parentElement,e?A===l(e)[0]&&(k=!0,-1===
101l.inArray(A,p)&&p.push(A)):-1===l.inArray(A,p)&&p.push(A)}),l(p)};l.fn.prepend=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(p){for(var k=0,A=e.length;k<A;k++){var ca=0<p?e[k].cloneNode(!0):e[k];this.firstChild?this.insertBefore(ca,this.firstChild):this.appendChild(ca)}})};l.fn.prependTo=function(e){return this.each(function(){l(e).prepend(this)})};l.fn.prev=function(){var e=[];return this.each(function(){var p,k;var A=l(this.parentNode)[0].childNodes;for(var ca=
102A.length-1;0<=ca;ca--){if(p=A.item(ca),k&&1===p.nodeType){e.push(p);break}p===this&&(k=!0)}}),l(e)};l.fn.prevAll=function(){var e=[];return this.each(function(){for(var p=l(this).prev();p.length;
102)e.push(p[0]),p=p.prev()}),l(e)};l.propFix={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",tabindex:"tabIndex"};l.fn.prop=function(e,p){if(this[0])return e=l.propFix[e]||e,void 0!==p?this.each(function(){this[e]=p}):this[0][e]};l.fn.removeAttr=function(e){return this.each(function(){this.removeAttribute(e)})};
103l.fn.removeClass=function(e){var p=e.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k,A,ca=0,K=p.length;ca<K;ca++)void 0!==this.className&&(A=new RegExp("(^|\\s)"+p[ca]+"($|\\s)","gmi"),k=this.className.replace(A," "),this.className=k.replace(/^\s+|\s+$/g,""))})};l.fn.remove=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})};l.fn.removeProp=function(e){var p=l.propFix[e]||e;return this.each(function(){this[p]=void 0;delete this[p]})};
104l.fn.replaceWith=function(e){"string"==typeof e&&(e=l(e));var p=[];return 1<e.length&&(e=e.reverse()),this.each(function(k){var A=this.cloneNode(!0);if(p.push(A),this.parentNode)if(1===e.length)A=0<k?e[0].cloneNode(!0):e[0],this.parentNode.replaceChild(A,this);else{for(var ca=0,K=e.length;ca<K;ca++)A=0<k?e[ca].cloneNode(!0):e[ca],this.parentNode.insertBefore(A,this.nextSibling);this.parentNode.removeChild(this)}}),l(p)};l.inputTypes="text hidden password color date datetime email month number range search tel time url week".split(" ");
105l.inputTypeTest=new RegExp(l.inputTypes.join("|"));l.fn.serialize=function(){var e={};return l("input, select",this).each(function(){var p=this.type,k=this.name,A=this.value;l.inputTypeTest.test(p)||("checkbox"===p||"radio"===p)&&this.checked?e[k]=A:"SELECT"===this.nodeName&&(e[k]=this.options[this.selectedIndex].nodeValue)}),e};l.fn.siblings=function(){if(!this.length)return l([]);var e=[],p=this[0].parentNode.firstChild;do 1===p.nodeType&&p!==this[0]&&e.push(p),p=p.nextSibling;while(p);return l(e)};
106var w=function(e){var p,k="",A=0;if(p=e.nodeType)if(1===p||9===p||11===p){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)k+=w(e)}else{if(3===p||4===p)return e.nodeValue}else for(;p=e[A++];)k+=w(p);return k};return l.fn.text=function(){return w(this)},l.fn.val=function(e){var p;return void 0!==e?this.each(function(){if("SELECT"===this.tagName){var k,A,ca=this.options,K=[],D=ca.length;for(K[0]=e;D--;){var h=ca[D];(h.selected=0<=l.inArray(h.value,K))&&(k=
107!0,A=D)}this.selectedIndex=k?A:-1}else this.value=e}):(p=this[0],"SELECT"===p.tagName?0>p.selectedIndex?"":p.options[p.selectedIndex].value:p.value)},l.fn.width=function(e){return l._dimension(this,"width",e)},l.fn.wrapInner=function(e){return this.each(function(){var p=this.innerHTML;this.innerHTML="";l(this).append(l(e).html(p))})},l.fn.bind=function(e,p,k){function A(K,D,h){var C;if(!K._namespace||K._namespace===D){K.data=p;K.namespace=K._namespace;var E=function(){return!0};K.isDefaultPrevented=
108function(){return!1};var T=K.preventDefault;return K.target=h||K.target||K.srcElement,K.preventDefault=function(){return T?function(){K.isDefaultPrevented=E;T.call(K)}:function(){K.isDefaultPrevented=E;K.returnValue=!1}}(),K.stopPropagation=K.stopPropagation||function(){K.cancelBubble=!0},C=k.apply(this,[K].concat(K._args)),!1===C&&(K.preventDefault(),K.stopPropagation()),C}}"function"==typeof p&&(k=p,p=null);var ca=e.split(" ");return this.each(function(){for(var K,D=this,h=0,C=ca.length;h<C;h++){K=
109ca[h].split(".");var E=K[0],T=0<K.length?K[1]:null;K=function(R){return D.ssEventTrigger&&(R._namespace=D.ssEventTrigger._namespace,R._args=D.ssEventTrigger._args,D.ssEventTrigger=null),A.call(D,R,T)};H(this,E);this.addEventListener(E,K,!1);u(this,E,{callfunc:K,isCustomEvent:!1,customEventLoop:null,originalCallback:k,namespace:T})}})},l.fn.on=l.fn.bind,l.fn.unbind=function(e,p){var k=e?e.split(" "):[];return this.each(function(){if(this.shoestringData&&this.shoestringData.events)if(k.length)for(var A,
110ca,K=0,D=k.length;K<D;K++)if(A=k[K].split("."),ca=A[0],A=0<A.length?A[1]:null,ca)n.call(this,ca,A,p);else{ca=void 0;var h=p;for(ca in this.shoestringData.events)n.call(this,ca,A,h)}else for(K in this.shoestringData.events)n.call(this,K,void 0,void 0)})},l.fn.off=l.fn.unbind,l.fn.one=function(e,p){var k=e.split(" ");return this.each(function(){for(var A,ca={},K=l(this),D=0,h=k.length;D<h;D++)A=k[D],ca[A]=function(C){var E=l(this),T;
110for(T in ca)E.unbind(T,ca[T]);return p.apply(this,[C].concat(C._args))},
111K.bind(A,ca[A])})},l.fn.triggerHandler=function(e,p){var k,A=e.split(" ")[0],ca=this[0];if(F.createEvent&&ca.shoestringData&&ca.shoestringData.events&&ca.shoestringData.events[A]){ca=ca.shoestringData.events[A];for(var K in ca)ca.hasOwnProperty(K)&&(e=F.createEvent("Event"),e.initEvent(A,!0,!0),e._args=p,p.unshift(e),k=ca[K].originalCallback.apply(e.target,p))}return k},l.fn.trigger=function(e,p){var k=e.split(" ");return this.each(function(){for(var A,ca,K,D=0,h=k.length;D<h;D++){if(A=k[D].split("."),
112ca=A[0],K=0<A.length?A[1]:null,"click"===ca&&"INPUT"===this.tagName&&"checkbox"===this.type&&this.click)return this.click(),!1;if(F.createEvent){var C=F.createEvent("Event");C.initEvent(ca,!0,!0);C._args=p;C._namespace=K;this.dispatchEvent(C)}}})},l});window.jQuery||(window.jQuery=window.jQuery||window.shoestring);(function(l){l.Akamai=l.Akamai||{};window.componentNamespace="Akamai"})("undefined"==typeof exports?window:exports);
113(function(l,g){g(l);var H=g(document.documentElement);var u=l.componentNamespace=l.componentNamespace||"FG";l[u]=l[u]||{};Function.prototype.bind=Function.prototype.bind||function(v){var F=this;return function(){F.apply(v,arguments)}};var n=l[u].Tau=function(v,F){this.element=v;this.options=F||{};this.$element=g(v);this.$initial=this.$element.find("img");this.$loading=this.$element.find(".loading");this.index=0;this.frames=1<this.$initial.length?this.$initial.length:parseInt(this.$initial.attr("data-frames"),
11410)||this.options.frames;v=parseInt(this.$initial.attr("data-reduced-step-size"),10)||4;this.stepSize=l.requestAnimationFrame?1:v;this.autoRotateStartDelay=(this.options.autoplay||{}).delay||parseInt(this.$initial.attr("data-auto-rotate-delay"),10)||n.autoRotateStartDelay;this.mouseMoveBinding=this.rotateEvent.bind(this);this.touchMoveBinding=this.rotateEvent.bind(this);this.path=new n.Path;this.$initial.first().addClass("focused");this.$element.addClass("tau-enhanced");this.$render=g('\x3cdiv data-render class\x3d"render"\x3e\x3c/div\x3e').css("position",
115"absolute").css("left","0").css("top","0").prependTo(this.element);!1!==this.options.canvas&&(this.canvas=g("\x3ccanvas/\x3e").prependTo(this.element)[0],this.canvas.getContext&&(this.canvasCtx=this.canvas.getContext("2d"),this.$element.addClass("tau-canvas"),g(l).bind("resize",function(){clearTimeout(this.canvasResizeTimeout);this.canvasResizeTimeout=setTimeout(this.renderCanvas.bind(this),100)}.bind(this))));this.options.controls&&(this.options.controls.text=this.options.controls.text||{play:"Spin Object",
116left:"Rotate Left",right:"Rotate Right"},this.createControls());this.createImages();this.options.autoplay&&this.options.autoplay.enabled&&(this.autostartTimeout=setTimeout(this.autoRotate.bind(this),this.autoRotateStartDelay));this.bind()};n.autoRotateTraversalTime=4500;n.autoRotateStartDelay=100;n.verticalScrollRatio=4;n.maxVelocity=60;n.prototype.createControls=function(){this.$controls=g("\x3cdiv class\x3d'tau-controls'\x3e\x3c/div\x3e");this.options.controls.play&&this.$controls.append(this.controlAnchorMarkup("play"));
117this.options.controls.arrows&&this.$controls.prepend(this.controlAnchorMarkup("left")).append(this.controlAnchorMarkup("right"));this.$controls.bind("mousedown touchstart",this.onControlDown.bind(this));this.$controls.bind("mouseup",this.onControlUp.bind(this));this.$controls.bind("click",function(v){g(v.target).is("a")&&v.preventDefault()});this.$element.append(this.$controls)};n.prototype.controlAnchorMarkup=function(v){var F=this.options.controls.text[v];return"\x3ca href\x3d'#' data-tau-controls\x3d'"+
118v+"' title\x3d'"+F+"'\x3e"+F+"\x3c/a\x3e"};n.prototype.onControlDown=function(v){switch(g(v.target).closest("a").attr("data-tau-controls")){case "left":this.$element.addClass("control-left-down");this.stopAutoRotate();this.autoRotate();break;case "right":this.$element.addClass("control-right-down"),this.stopAutoRotate(),this.autoRotate(!0)}};n.prototype.onControlUp=function(v){switch(g(v.target).closest("a").attr("data-tau-controls")){case "left"
118:case "right":this.$element.removeClass("control-left-down");
119this.$element.removeClass("control-right-down");this.stopAutoRotate();break;case "play":this.autoInterval?this.stopAutoRotate():this.autoRotate()}};n.prototype.change=function(v){this.goto(this.options.reverse?this.index-v:this.index+v)};n.prototype.goto=function(v){var F,W,aa=this.$images.length;return v%=aa,W=(aa+v)%aa,F=this.$images.eq(W),F[0].tauImageLoaded?(this.$current?this.$current.removeClass("focused"):this.$images.removeClass("focused"),this.$current=F,this.index=W,this.canvasCtx?this.renderCanvas():
120(this.$current.addClass("focused"),!0)):(this.showLoading(),!1)};n.prototype.renderCanvas=function(){var v=this.$current[0],F=v.width,W=v.height,aa=this.element.clientWidth,x=aa/F*W;return!!(F&&W&&v.complete)&&((this.canvas.width!==aa||this.canvas.height!==x||aa&&x)&&(this.canvas.width=aa,this.canvas.height=x),this.canvasCtx.drawImage(v,0,0,aa,x),!0)};n.prototype.createImages=function(){if(1>this.$initial.length)throw Error("At least one image required");if(this.loadedCount=0,1==this.$initial.length){this.markImageLoaded(this.$initial[0]);
121var v=this.options.template||this.$initial.attr("data-src-template");for(var F=[],W=this.stepSize+1;W<=this.frames;W+=this.stepSize){var aa="\x3cimg src\x3d"+v.replace("$FRAME",W)+"\x3e\x3c/img\x3e";aa=g(aa);F.push(aa)}g.each(F,function(x,U){U=g(U);U.bind("load error",function(B){this.imageLoaded(x,B.target,B)}.bind(this));this.$element.append(U);this.$render.append(U.html())}.bind(this));this.$current=this.$images=this.$element.children().filter("img");this.goto(0)}else this.$images=this.$element.children().filter("img"),
122this.$images.each(function(x,U){0<g(U).height()?this.imageLoaded(x,U):g(U).bind("load error",function(B){this.imageLoaded(x,B.target,B)}.bind(this))}.bind(this))};n.prototype.imageLoaded=function(v,F,W){v=!1;this.markImageLoaded(F);this.$element.find("img")[0]!=F||W&&"error"===W.type||this.options.autoplay&&this.options.autoplay.enabled||(this.goto(0),this.$element.trigger("tau.init"),v=!0);++this.loadedCount>=this.frames-1&&(this.hideLoading(),v||(this.$element.trigger("tau.init"),this.initialized=
123!0))};n.prototype.markImageLoaded=function(v){v.tauImageLoaded=!0};n.prototype.bind=function(){this.$element.bind("mousedown touchstart",this.track.bind(this))};n.prototype.autoRotate=function(v){this.autoInterval||(this.$element.addClass("spinning"),this.change(v?-1:1),this.autoInterval=setInterval(function(){this.change(v?-1:1)}.bind(this),this.autoRotateDelay()*this.stepSize),this.$element.trigger("tau.auto-rotate-start"))};n.prototype.autoRotateDelay=function(){return(this.options.interval||n.autoRotateTraversalTime)/
124this.frames};n.prototype.stopAutoRotate=function(){clearInterval(this.autoInterval);clearInterval(this.autostartTimeout);this.$element.removeClass("spinning");this.autoInterval=void 0;this.$element.trigger("tau.auto-rotate-stop")};n.prototype.track=function(v){g(v.target).closest(".tau-controls").length||("mousedown"===v.type&&v.preventDefault(),"touchstart"===v.type?this.$element.trigger("tau.touch-tracking-start"):this.$element.trigger("tau.mouse-tracking-start"),this.tracking)||(H.one("mouseup",
125this.release.bind(this)),H.one("touchend",this.release.bind(this)),this.tracking=!0,this.path.reset(),this.cursorGrab(),this.rotateThreshold=this.$element[0].clientWidth/this.frames/(this.options.sensitivity||1),v=this.getPoint(v),this.downX=v.x,this.downY=v.y,this.downIndex=this.index,H.bind("mousemove",this.mouseMoveBinding),H.bind("touchmove",this.touchMoveBinding))};n.prototype.slow=function(){if(!this.path.isSufficient())return void this.clearSlowInterval();this.rotate({x:this.path.last().x+
126this.velocity,y:this.path.last().y});0<this.velocity?(this.velocity-=this.decelVal(),0>=this.velocity&&this.clearSlowInterval()):(this.velocity+=this.decelVal(),0<=this.velocity&&this.clearSlowInterval())};n.prototype.decelVal=function(){return this.decelTimeStep()/8};n.prototype.clearSlowInterval=function(){clearInterval(this.slowInterval);this.velocity=0;this.slowInterval=void 0};n.prototype.decel=function(){var v,F;this.path.isSufficient()&&(v=this.path.velocity(this.decelTimeStep()),F=0<v?1:0>
127v?-1:0,Math.abs(v)>n.maxVelocity&&(v=F*n.maxVelocity),this.velocity=v,this.slowInterval=setInterval(this.slow.bind(this),this.decelTimeStep()))};n.prototype.decelTimeStep=function(){return this.autoRotateDelay()/2};n.prototype.release=function(v){g(v.target).closest(".tau-control
127s").length||this.tracking&&("touchend"===v.type?this.$element.trigger("tau.touch-tracking-stop"):this.$element.trigger("tau.mouse-tracking-stop"),this.decel(),this.cursorRelease(),H.unbind("mousemove",this.mouseMoveBinding),
128H.unbind("touchmove",this.touchMoveBinding),this.tracking=!1)};n.prototype.cursorGrab=function(){H.addClass("grabbing")};n.prototype.cursorRelease=function(){H.removeClass("grabbing")};n.prototype.showLoading=function(){this.$loading.attr("style","display: block")};n.prototype.hideLoading=function(){this.$loading.attr("style","display: none")};n.prototype.getPoint=function(v){var F=v.touches||v.originalEvent&&v.originalEvent.touches;return F?{x:F[0].pageX,y:F[0].pageY}:{x:v.pageX||v.clientX,y:v.pageY||
129v.clientY}};n.prototype.rotateEvent=function(v){this.rotate(this.getPoint(v))&&v.preventDefault()};n.prototype.rotate=function(v){var F,W;if(F=v.x-this.downX,W=v.y-this.downY,Math.abs(W)/Math.abs(F)>=n.verticalScrollRatio)return!1;if(this.path.record(v),Math.abs(F)>=this.rotateThreshold){this.stopAutoRotate();var aa;return aa=this.options.reverse?this.downIndex+Math.round(F/this.rotateThreshold):this.downIndex-Math.round(F/this.rotateThreshold),this.goto(aa),!0}}})(this,jQuery);
130(function(l,g){g=l.componentNamespace=l.componentNamespace||"FG";l[g]=l[g]||{};Date.now=Date.now||function(){return(new Date).getTime()};l=l[g].Tau.Path=function(){this.reset()};l.prototype.isSufficient=function(){return!!this.prevPoint&&this.prevPrevPoint};l.prototype.distance=function(){return this.prevPoint.x-this.prevPrevPoint.x};l.prototype.duration=function(){return this.prevTime-this.prevPrevTime};l.prototype.record=function(H){this.prevPrevTime=this.prevTime;this.prevPrevPoint=this.prevPoint;
131this.prevTime=Date.now();this.prevPoint=H};l.prototype.velocity=function(H){var u,n;return u=this.distance(),n=this.duration(),u/(n/H)};l.prototype.reset=function(){this.prevPrevPoint=this.prevPrevTime=this.prevTime=this.prevPoint=void 0};l.prototype.last=function(){return this.prevPoint}})(this,jQuery);
132(function(l,g){function H(F){return String(F).replace(/[&<>"'`=\/]/g,function(W){return v[W]})}l.Akamai=l.Akamai||{};var u=l.Akamai.Util={};u.preflight=function(F,W,aa,x){if(x=x||F.constructor.name,F._$el=g(W),!F._$el.length)throw Error(x+" component requires element");return F._$el.data(x)?F._$el.data(x):(F._$el.data(x,F),F._$el.attr(F.constructor._dataAttr,!0),F._options=u.options(F.constructor.defaultOptions||{},aa||{},F._$el,x),F._originalOptions=u.extend(!0,{},F._options),u.mapEvents(F),!1)};
133u.component=function(F,W,aa){aa||(aa=W,W=!1);var x=function(U,B){var w=u.preflight(this,U,B,F);if(w)return this._trigger("init"),w;aa.apply(this,arguments);W||this._trigger("init")};return x.name=F,x._dataAttr="data-akamai-"+F.toLowerCase(),x.createMany=u.createMany(x),x.prototype._trigger=u.trigger(F),x};u.mapEvents=function(F){var W=F.constructor._componentEventMapping||{},aa;for(aa in W)if(W.hasOwnProperty(aa)){var x=W[aa].to||W[aa],U=W[aa].selector?F._$el.find(W[aa].selector):void 0;u.mapEvent(F,
134aa,x,U)}};u.mapEvent=function(F,W,aa,x){(x||F._$el).bind(W,function(){F._trigger(aa)}.bind(F))};u.createMany=function(F,W){return W=W||"["+F._dataAttr+"]",function(aa,x){var U=[];return g(aa).find(W).each(function(B,w){U.push(new F(w,x))}),U}};u.propRequired=function(F,W,aa){return function(){var x=arguments;if(!this[F])throw Error(W);return aa.apply(this,x)}};u.trigger=function(F){return F=F.toLowerCase(),function(W){this._$el.trigger("akamai-"+F+"-"+W)}};u.camelToKabob=function(F){return F.replace(/([A-Z]+)/g,
135function(W){return"-"+W.toLowerCase()})};u.options=function(F,W,aa,x){var U={},B=u.extend(!0,{},F);aa&&x&&(U=u.getDataAttrOptions(aa,F,"data-akamai-"+x.toLowerCase()));W=u.extend(!0,u.extend(!0,B,U),W);return aa&&x&&u.setDataAttrOptions(aa,F,W,x),W};u.getDataAttrOptions=function(F,W,aa){var x={},U;for(U in W)if(W.hasOwnProperty(U)){var B=u.camelToKabob(U);B=aa+"-"+B;!/object/.test(typeof W[U])||W[U]instanceof Array?(B=F.attr(B),B=u.coerceAttrVal(B),void 0!==B&&null!==B&&(x[U]=B)):(B=u.getDataAttrOptions(F,
136W[U],B),x[U]=B)}return x};u.setDataAttrOptions=function(F,W,aa,x){u.setDataAttrOptionsPrefix(F,W,aa,"data-akamai-"+x.toLowerCase())};u.setDataAttrOptionsPrefix=function(F,W,aa,x){W=W||{};for(var U in aa)if(aa.hasOwnProperty(U)&&"breakpoints"!==U){var B=u.camelToKabob(U);B=x+"-"+B;/object/.test(typeof aa[U])?u.setDataAttrOptionsPrefix(F,W[U],aa[U],B):(F.attr(B)||void 0!==W[U])&&F.attr(B,aa[U])}};u.coerceAttrVal=function(F){return"true"===F||"false"!==F&&(/^[0-9]+$/.test(F)?parseInt(F,10):/^[0-9]+.[0-9]+$/.test(F)?
137parseFloat(F,10):F)};u.extend=function(F,W,aa){var x,U;if(null!=aa)for(x in aa){var B=W[x];var w=aa[x];W!==w&&(F&&w&&u.isPlainObject(w)?(U=B&&u.isPlainObject(B)?B:{},W[x]=u.extend(F,U,w)):void 0!==w&&(W[x]=w))}return W};u.isPlainObject=function(F){return!(!F||"[object Object]"!==Object.prototype.toString.call(F)
137)};var n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;u.trim=function(F){return null==F?"":(F+"").replace(n,"")};u.map=function(F,W){return u.reduce(F,function(aa,x,U){return aa.push(W(x,U)),aa},[])};
138u.reduce=function(F,W,aa){for(var x=0;x<F.length;x++)aa=W(aa,F[x],x);return aa};u.log=function(F,W){console&&console[W||"log"](F)};u.mapJSONVals=function(F,W,aa){var x={};if(F.map)return F.map(function(B){return u.mapJSONVals(B,W)});if(0<=["string","number","boolean"].indexOf(typeof F))return W(F,aa);for(var U in F)F.hasOwnProperty(U)&&(x[U]=u.mapJSONVals(F[U],W,U));return x};u.escapeJSONVals=function(F){return u.mapJSONVals(F,function(W){return"string"==typeof W?H(W):W})};var v={"\x26":"\x26amp;",
139"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","/":"\x26#x2F;","`":"\x26#x60;","\x3d":"\x26#x3D;"}})("undefined"==typeof exports?window:exports,this.jQuery);
140(function(l,g){l.Akamai=l.Akamai||{};l.Akamai.Advanceable={extension:{next:function(H){this.goto(this.getIndex()+1,function(){H&&H();this._trigger("next")}.bind(this))},previous:function(H){this.goto(this.getIndex()-1,function(){H&&H();this._trigger("previous")}.bind(this))}},extend:function(H){if(!H.prototype.goto||!H.prototype.getIndex)throw Error("Advanceable mixin requires `goto` and `getIndex` methods");g.extend(H.prototype,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
141(function(l,g){l.Akamai=l.Akamai||{};l.Akamai.Sourceable={extension:{_srcArray:function(H,u,n){var v=u.policy||u.thumbnail&&u.thumbnail.policy,F=u.widthParam;return u.widths.map(function(W){var aa=H+"?"+F+"\x3d"+W;return v&&(aa+="\x26impolicy\x3d"+v),n&&(aa+=" "+W+"w"),aa})},_srcset:function(H,u){return this._srcArray(H,u,!0).join(", ")},_fallbackSrc:function(H,u){return this._srcArray(H,u)[0]},_largestSrc:function(H,u){return this._srcArray(H,u).pop()}},extendStatic:function(H){Akamai.Util.extend(!1,
142H,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
143(function(l,g){var H=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){l.setTimeout(n,1E3/60)}}();l.toss=function(n,v){toss.tossing(n,!1);var F,W,aa=0,x=n.scrollLeft,U=n.scrollTop,B={top:"+0",left:"+0",duration:200,easing:toss.easing,finished:function(){}};if(v)for(var w in B)void 0!==v[w]&&(B[w]=v[w]);"string"==typeof B.left?(B.left=parseFloat(B.left),F=B.left+x):(F=B.left,B.left-=x);"string"==typeof B.top?(B.top=parseFloat(B.top),
144W=B.top+U):(W=B.top,B.top-=U);toss.tossing(n,!0);var e=(new Date).getTime(),p=e+B.duration,k=function(){var A=(new Date).getTime();if(toss.tossing(n)){if(A<p)return aa=(A-e)/B.duration*B.duration,n.scrollLeft=B.easing(aa,x,B.left,B.duration),n.scrollTop=B.easing(aa,U,B.top,B.duration),H(k);n.scrollLeft=F;n.scrollTop=W;B.finished&&B.finished();toss.tossing(n,!1)}else B.finished&&B.finished()};return H(k),{top:W,left:F,duration:B.duration,easing:B.easing}};var u={};toss.tossing=function(n,v){return void 0!==
145v&&(u[n]=v),u[n]};toss.easing=function(n,v,F,W){return F*((n=n/W-1)*n*n+1)+v};toss.toss=toss})(this);
146(function(l,g){g.fn.snapper=function(H){function u(B,w){var e=g(B).find(".snapper_item"),p=g(B).width(),k=[];return e.each(function(A){this.offsetLeft>=w-5&&this.offsetLeft<w+p-5&&k.push(this)}),g(k)}function n(B){return B.width()+parseFloat(B.css("margin-left"))+parseFloat(B.css("margin-right"))}function v(B,w,e){e=e?e+"-":"";w=u(B,w);g(B).trigger("snapper."+e+"snap",{activeSlides:w})}function F(B,w,e,p){v(B,w);var k=function(){B.scrollLeft=w;g(B).closest(".snapper").removeClass("snapper-looping");
147g(B).trigger("snapper.after-goto",{activeSlides:u(B,w)});p&&p();v(B,w,"after")};!l.toss&&l.overthrow&&(l.toss=l.overthrow.toss);void 0===l.toss||e?(B.scrollLeft=w,k()):l.toss(B,{left:w,finished:k})}var W,aa,x=arguments,U=l.CSS&&l.CSS.supports&&(l.CSS.supports("scroll-snap-type","mandatory")||l.CSS.supports("-webkit-scroll-snap-type","mandatory")||l.CSS.supports("-ms-scroll-snap-type","mandatory"));return W=this.each(function(){function B(){var t=E.attr("data-autoplay")||E.attr("data-snapper-autoplay"),
148y=!1;if(t){try{t=parseInt(t,10)}catch(I){y=!0}if(!t||y)throw Error("Snapper: `data-autoplay` must have an natural number value.");}return t}function w(){var t=z.attr("style");z.attr("style","");var y=fa.eq(0).attr("style");fa.eq(0).attr("style","");var I=R.width(),X=fa.eq(0).width(),V=l.getComputedStyle(fa[0],null),O=parseFloat(V.getPropertyValue("margin-left")),S=parseFloat(V.getPropertyValue("margin-right"));V=X+O+S;fa.eq(0).attr("style",y);z.attr("style",t);t=X/I*100;y=S/I*100;O=O/I*100;X=t+O+
149y;t/=X;y/=X;O/=X;z.css("width",va/Math.round(I/V)*100+"%");fa.css("width",100/va*t+"%");fa.css("margin-left",100/va*O+"%");fa.css("margin-right",100/va*y+"%")}function e(){if(d)return void(r=!0);var t=R[0].scrollLeft,y=z.width(),I=fa[1]?fa[1].offsetLeft:n(fa.eq(0));I*=Math.round(t/I);y-=R.width();I>y&&(I=y);t!==I&&(U?(v(R[0],I),v(R[0],I,"after")):F(R[0],I));r=!1}function p(){var t=R[0].scrollLeft,y=fa.length,I=z.width();void 0===N&&(N=Math.round(t/I*y));b&&clearTimeout(b);b=setTimeout(function(){w();
150F(R[0],fa[N].offsetLeft,!0);N=b=void 0},50)}function k(t){var y=R[0].scrollLeft,I=z.width(),X=n(R);t?y>=I-X-5?(E.addClass("snapper-looping"),F(R[0],0),t=void 0):t=A():0===y?(E.addClass("snapper-looping"),F(R[0],z.width()-R.width()),t=void 0):t=ca();return t}function A(){F(R[0],R[0].scrollLeft+z.width()/va,!1,function(){R.trigger("snapper.after-next")})}function ca(){F(R[0],R[0].scrollLeft-z.width()/va,!1,function(){R.trigger("snapper.after-prev")})}function K(t){var y=(new Date).getTime();if(!(!t&&
151G&&200>y-G)){G=y;var I=R[0].scrollLeft,X=n(z);t=n(ra);y=ra;y=y.height()+parseFloat(y.css("margin-bottom"))+parseFloat(y.css("margin-top"));I=Math.round(I/X*va)||0;X=ra.find("a").removeClass(oa).eq(I).addClass(oa);I=na[0];t=X[0].offsetLeft-t/2;y=X[0].offsetTop-y/2;void 0!==l.toss?l.toss(I,{left:t,top:y}):(I.scrollLeft=t,I.scrollTop=y)}}function D(t){t&&(h=setTimeout(function(){var y=B();y&&(k(!0),D(y))},t))}if(void 0===aa){var h,C=this,E=g(C),T=E.is("[data-snapper-nextprev]"),R=g(".snapper_pane",C),
152z=R.find(".snapper_items"),fa=z.children();fa.addClass("snapper_item");var va=fa.length,ra=g(".snapper_nav",C),oa="snapper_nav_item-selected",da="false"!==E.attr("data-snapper-deeplinking");if("string"!=typeof H){var na=ra.find(".snapper_nav_inner");if(na.length||(na=g('\x3cdiv class\x3d"snapper_nav_inner"\x3e\x3c/div\x3e').append(ra.children()).appendTo(ra)),R.attr("tabindex","0"),w(),g(C).addClass("snapper-enhanced"),T){T=g('\x3cul class\x3d"snapper_nextprev"\x3e\x3cli class\x3d"snapper_nextprev_item"\x3e\x3ca href\x3d"#prev" class\x3d"snapper_nextprev_prev"\x3ePrev\x3c/a\x3e\x3c/li\x3e\x3cli class\x3d"snapper_nextprev_item"\x3e\x3ca href\x3d"#next" class\x3d"snapper_nextprev_next"\x3eNext\x3c/a\x3e\x3c/li\x3e\x3c/ul\x3e');
153var L=g(".snapper_nextprev_contain",C);L.length||(L=g(C));T.appendTo(L)}g("a",this).bind("click",function(t){clearTimeout(h);var y=g(this).attr("href");if(g(this).is(".snapper_nextprev_next"))return t.preventDefault(),k(!0);if(g(this).is(".snapper_nextprev_prev"))return t.preventDefault(),k(!1);0===y.indexOf("#")&&1<y.length&&(t.preventDefault(),t=g(y,C),t.length&&(F(R[0],t[0].offsetLeft),da&&"replaceState"in l.history&&l.history.replaceState({},document.title,y)))});g(this).bind("keydown",function(t){37!==
154t.keyCode&&38!==t.keyCode||(clearTimeout(h),t.preventDefault(),t.stopImmediatePropagation(),k(!1));39!==t.keyCode&&40!==t.keyCode||(clearTimeout(h),t.preventDefault(),t.stopImmediatePropagation(),k(!0))});var N,b,r=!1;
154if(g(l).bind("resize",p),ra.length){var G;K();R.bind("scroll",K)}var P,Z=0;R.bind("scroll",function(t){Z=(new Date).getTime();P=!0});setInterval(function(){P&&Z<=(new Date).getTime()-150&&(e(),K&&K(!0),P=!1)},150);var d=!1;R.bind("touchstart",function(){clearTimeout(h);d=!0});R.bind("touchend",
155function(){d=!1;r&&!P&&(e(),P=!1)});D(B())}else{var M=Array.prototype.slice.call(x,1);L=z.width()/va;switch(H){case "goto":T=M[0]%va;offset=L*T;F(R[0],offset,!1,function(){e();"function"==typeof M[1]&&M[1]()});break;case "getIndex":aa=Math.floor((R[0].scrollLeft+1)/L);break;case "updateWidths":w()}}}}),void 0!==aa?aa:W}})(this,jQuery);
156(function(l){var g=function(){var H=l.jQuery;H.fn.enlarge=function(u){var n=arguments,v=H(this).data("options")||{button:!0,hoverZoomWithoutClick:!0,delay:300,flyout:{width:200,height:200},placement:"inline",magnification:3};"string"!=typeof u&&(v=H.extend(v,u),H(this).data("options",v));var F,W=this.each(function(){function aa(){"inline"===v.placement?(fa=z,G=r,h.data("zoomParent",G),b=N):(fa=X.find("img")[0],G=b=X,h.data("zoomParent",G))}function x(){X.css({width:v.flyout.width+"px",height:v.flyout.height+
157"px",top:"",left:"","margin-left":"","margin-top":""});var V=v.placement.match(/left|right/);V&&X.css(V[0],-v.flyout.width+"px");v.placement.match(/loupe/)&&X.css({"margin-left":-v.flyout.width/2+"px","margin-top":-v.flyout.height/2+"px"});X[0].className=X[0].className.replace(/enlarge_flyout\-[^$\s]+/," ");X.addClass("enlarge_flyout-"+v.placement)}function U(){v.disabled?h.addClass("enlarge_disabled"):h.removeClass("enlarge_disabled")}function B(){P=!h.data("zoomed");h.data("zoomed",P)}function w(V){if(V=
158V||function(){},P){if(v.disabled)return V(),!1;var O=new Image;O.className="enlarge_img-loading";O.onload=function(){fa.sizes=O.sizes;T&&ra||(fa.src=da);H(O).remove();V()};O.sizes=r[0].offsetWidth*v.magnification+"px";T&&ra?ra&&(O.srcset=ra):O.src=da;H(O).insertBefore(fa)}else fa.sizes=oa,T||(fa.src=va),V()}function e(){if(h.data("lockedZoom"))r.add(G).removeClass(Z),h.data("lockedZoom",lockedZoom=!1),b.removeAttr("tabindex");else{if(v.disabled)return!1;r.add(G).addClass(Z);h.data("lockedZoom",lockedZoom=
159!0);b.attr("tabindex","0");b[0].focus()}}function p(){if(h.data("zoomed")){if(v.disabled)return!1;"inline"===v.placement&&N.add(r).css({width:r[0].offsetWidth+"px",height:parseFloat(getComputedStyle(r[0]).height)+"px"});G.addClass(na);H(fa).css("width",r[0].offsetWidth*v.magnification+"px");H(C).trigger("enlarge.after-zoom-in")}else G.removeClass(na),"inline"===v.placement&&N.add(r).css({width:"",height:""}),H(fa).css("width",""),H(C).trigger("enlarge.after-zoom-out")}function k(){function V(){v.placement=
160O;aa();H(C).unbind("enlarge.after-zoom-out",V)}var O=v.placement;"inline"!==O&&(H(C).bind("enlarge.after-zoom-out",V),v.placement="inline",aa())}function A(){if(v.disabled&&!h.data("zoomed"))return!1;B();w(function(){e();p();var V=b.width(),O=b.height(),S=fa.offsetHeight;b[0].scrollLeft=fa.offsetWidth/2-V/2;b[0].scrollTop=S/2-O/2})}function ca(V){"touchstart"===V.type&&(y=!0);y&&"mouseenter"===V.type||"mouseenter"===V.type&&!y&&!I||h.data("lockedZoom")||t||(t=!0,N.addClass(L),M=setTimeout(function(){N.removeClass(L);
161B();w(function(){p();d=!0;D(V)})},v.delay))}function K(V){N.removeClass(L);clearTimeout(M);d=!1;!1!==v.hoverZoomWithoutClick||y||(I=!1);y&&"mouseleave"===V.type&&(y=!1)}function D(V){if(d&&(!y||"mousemove"!==V.type)){var O=V.touches?V.touches[0]:V;V.preventDefault();var S=O.clientX-V.target.getBoundingClientRect().left,Q=O.clientY-V.target.getBoundingClientRect().top;if(v.placement.match(/loupe/)){var ea=(V.touches?-v.flyout.width/1.3:-v.flyout.width/2)+"px",la=(V.touches?-v.flyout.height/1.3:-v.flyout.height/
1622)+"px";requestAnimationFrame(function(){X.css({top:Q+"px",left:S+"px","margin-left":ea,"margin-top":la})})}O=V.target.offsetHeight;var ma=fa.offsetHeight,ta=b[0].offsetHeight;b[0].scrollLeft=S/V.target.offsetWidth*(fa.offsetWidth-b[0].offsetWidth);
162b[0].scrollTop=Q/O*(ma-ta)}}var h=H(this),C=this,E=l.document.createElement("img"),T="srcset"in E&&"sizes"in E,R=H(this).find("a");if(!R.length)throw Error("enlarge: requires an anchor element with `href` for the enlarged image source");var z=h.find("img")[0],
163fa=z,va=fa.src,ra=H(fa).attr("srcset"),oa=H(fa).attr("sizes"),da=R[0].href,na=(R[0].innerText,"enlarge-zoomed"),L="enlarge-delay",N=H(fa).closest(".enlarge_contain"),b=N,r=H(fa).closest(".enlarge_pane")||h,G=H(this).data("zoomParent")||r;H(this).data("zoomParent",G);var P=h.data("zoomed")||!1;h.data("zoomed",P);h.data("lockedZoom",h.data("lockedZoom")||!1);var Z="enlarge-locked";if(!N.length)throw Error("enlarge: requires an element above the image marked with the class `enlarge_contain`");if("string"!=
164typeof u){U();h.data("updateOptions",function(V){v=H.extend(v,V);H(this).data("options",v);aa();x();I=v.hoverZoomWithoutClick;v.image&&v.image.sizes&&(oa=v.image.sizes,w());U();v.disabled&&h.data("zoomed")&&A()});var d,M,t,y,I=v.hoverZoomWithoutClick,X=H('\x3cdiv class\x3d"enlarge_flyout"\x3e\x3c/div\x3e').append(N.clone());X.insertAfter(r);N.append('\x3ci class\x3d"enlarge_loader"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e');aa();x();R.bind("keydown",function(V){13!==V.keyCode&&32!==V.keyCode||k();32===V.keyCode&&
165(V.preventDefault(),H(this).trigger("click"))}).bind("click",function(V){V.preventDefault();A()});H(l).bind("resize",function(V){h.data("lockedZoom")&&A()});H(l.document).bind("mouseup",function(V){h.data("lockedZoom")&&!H(V.target).closest(r).length&&A()});H(z).bind("mouseenter touchstart",ca).bind("mousemove touchmove",D).bind("mouseleave touchend",function(V){t=!1;P&&!h.data("lockedZoom")&&(B(),w(function(){p()}));K(V)}).bind("click",function(V){V.preventDefault();y&&"inline"===v.placement&&A();
166!1!==v.hoverZoomWithoutClick||y||(I=!I,I?H(this).trigger("mouseenter"):H(this).trigger("mouseleave"))});H(this).bind("keydown keyup",function(V){37===V.keyCode||38===V.keyCode||39===V.keyCode||40===V.keyCode?(V.stopImmediatePropagation(),h.data("lockedZoom")||V.preventDefault()):"keyup"===V.type&&H(this).data("lockedZoom")&&27===V.keyCode&&(A(),R[0].focus(),V.stopImmediatePropagation())});r.bind("scroll",function(){h.data("zoomed")&&(B(),w(function(){h.data("lockedZoom")&&e();p()}))})}else switch(E=
167Array.prototype.slice.call(n,1),u){case "in":h.data("zoomed")||A();break;case "out":h.data("zoomed")&&A();break;case "isZoomed":F=h.data("zoomed");break;case "updateOptions":h.data("updateOptions")(E[0])}});return void 0!==F?F:W}};"undefined"!=typeof module?module.exports=g:g()})("undefined"!=typeof global?global:this);
168(function(l){l.Akamai=l.Akamai||{};l.Akamai.Image={defaultConfig:{widths:"320 640 800 1024 2048 5000".split(" "),sizes:"100vw",policy:void 0,widthParam:"imwidth"}}})("undefined"==typeof exports?window:exports);
169(function(l,g){var H=Akamai.Util.component("Spin360",function(u,n){this._comp=new Akamai.Tau(u,this._options)});Akamai.Sourceable.extendStatic(H);H._componentEventMapping={"tau.auto-rotate-start":"play","tau.auto-rotate-stop":"pause"};H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,"Spin360")};H._renderImg=function(u,n){return'\n\t\t\t\x3cimg src\x3d"'+
170H._fallbackSrc(u,n.images)+'"\n\t\t\t\tsrcset\x3d"'+H._srcset(u,n.images)+'"\n\t\t\t\tsizes\x3d"'+n.images.sizes+'" /\x3e\n\t\t'};H.render=function(u,n){var v=Akamai.Util.options(H.defaultOptions,n);return Akamai.Util.trim('\n\t\t\t\x3cdiv class\x3d"tau" data-akamai-spin360 title\x3d"'+u.alt+'"\x3e\n\t\t\t\t'+Akamai.Util.map(u.urls,function(F){return H._renderImg(F,v)}).join("\n")+"\n\t\t\t\x3c/div\x3e\n\t\t")};H.defaultOptions={autoplay:{enabled:!1,delay:1E3},controls:{arrows:!1,play:!1,text:{left:"Rotate Left",
171right:"Rotate Right",play:"Spin Object"}},frames:72,images:Akamai.Image.defaultConfig,interval:3E3,reverse:!1,sensitivity:1,template:void 0};H.prototype.goto=function(u,n){this._comp.goto(u);this._trigger("goto");n&&n()};H.prototype.getIndex=function(){return this._comp.index};Akamai.Advanceable.extend(H);H.prototype.next;H.prototype.previous;H.prototype.play=function(){this._comp.autoRotate()};H.prototype.pause=function(){this._comp.stopAutoRotate()};H.prototype.getElement=function(){return this._$el[0]};
172H.States={Playing:0,Paused:1};H.prototype.getState=function(){return this._comp.autoInterval?H.States.Playing:H.States.Paused};l.Akamai=l.Akamai||{};l.Akamai.Spin360=H})("undefined"==typeof exports?window:exports,this.jQuery);
173(function(){function l(H,u){throw Error("Not allowed to instantiate MagnifierImpl");}l.prototype.updateOptions=function(H){throw Error("magnifier updateOptions not implemented");};l.prototype.zoomIn=function(){throw Error("magnifier zoomIn not implemented");};l.prototype.zoomOut=function(){throw Error("magnifier zoomOut not implemented");};l.prototype.isMagnified=function(){throw Error("magnifier isMagnified not implemented");};l.prototype.toggleZoom=function(){throw Error("magnifier toggleZoom not implemented");
174};l.prototype.render=function(H,u,n,v,F){throw Error("magnifier render not implemented");};var g="undefined"==typeof exports?window:exports;g.Akamai=g.Akamai||{};
174g.Akamai.MagnifierImpl=l})();
175(function(){function l(H,u){this._$el=$(H);this._$el.enlarge(u)}l.prototype=Object.create(Akamai.MagnifierImpl.prototype);l.prototype.constructor=l;l.prototype.updateOptions=function(H){this._$el.enlarge("updateOptions",H)};l.prototype.zoomIn=function(){this._$el.enlarge("in")};l.prototype.zoomOut=function(){this._$el.enlarge("out")};l.prototype.isMagnified=function(){return this._$el.enlarge("isZoomed")};l.prototype.toggleZoom=function(){this.isMagnified()?this.zoomOut():this.zoomIn()};l.render=
176function(H,u,n,v,F){return"\n\t\t\t\x3cdiv "+u+'\x3e\n\t\t\t\t\x3cdiv class\x3d"enlarge_contain"\x3e\n\t\t\t\t\t\x3cimg src\x3d"'+n+'"\n\t\t\t\t\t\tsrcset\x3d"'+F+'"\n\t\t\t\t\t\tsizes\x3d"'+H.image.sizes+'"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3ca href\x3d"'+v+'"\n\t\t\t\t\tclass\x3d"enlarge_btn"\n\t\t\t\t\ttitle\x3d"'+H.buttonText+'"\x3e\n\t\t\t\t\t'+H.buttonText+"\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};var g="undefined"==typeof exports?window:exports;g.Akamai=g.Akamai||{};g.Akamai.MagnifierImplEnlarge=
177l})();
178(function(){function l(u,n){this.element=u;this.handler=n;this.reset()}function g(u,n){this._$el=$(u);this._options=n;this._container=this._$el.get(0);this._content=this._$el.children().get(0);this._imgCast=$(this._content).find("div").get(0);this._zoomInBtn=this._$el.find("a.scroller-zoom-in").get(0);this._zoomOutBtn=this._$el.find("a.scroller-zoom-out").get(0);this._magnification=1;var v=this;this.scroller=new Scroller(this._renderer(),{zooming:n.enabled,minZoom:1,maxZoom:n.magnification,animationDuration:n.animationDuration});
179u=this._container.getBoundingClientRect();this.scroller.setPosition(u.left+this._container.clientLeft,u.top+this._container.clientTop);this._installEventHandlers();this._updateButtonStates();setTimeout(function(){v._onResize()})}l.prototype.onDown=function(u){u.target==this.element&&(this.isDown?this.reset():(this.down.x=u.clientX,this.down.y=u.clientY,this.down.timestamp=new Date,this.isDown=!0))};l.prototype.onMove=function(){this.isMoved=!0};l.prototype.onUp=function(u){this.isDown&&(this.up.x=
180u.clientX,this.up.y=u.clientY,this.up.timestamp=new Date,!this.isMoved&&this.down.x===this.up.x&&this.down.y===this.up.y&&500>=this.up.timestamp.getTime()-this.down.timestamp.getTime()&&this.handler());this.reset()};l.prototype.reset=function(u,n){this.down={x:-1/0,y:-1/0,timestamp:new Date(0)};this.isMoved=this.isDown=!1;this.up={x:1/0,y:1/0,timestamp:new Date}};g.prototype=Object.create(Akamai.MagnifierImpl.prototype);g.prototype.constructor=g;g.prototype.updateOptions=function(u){u=this._container.getBoundingClientRect();
181this.scroller.setPosition(u.left+this._container.clientLeft,u.top+this._container.clientTop);this._onResize();this._zoomBy(1/this._options.magnification,!1)};g.prototype.zoomIn=function(){this._zoomBy(this._options.incrementalZoomFactor)};g.prototype.cyclicZoom=function(){this._magnification>=this._options.magnification?this._zoomBy(1/this._options.magnification):this.zoomIn()};g.prototype.zoomOut=function(){this._zoomBy(1/this._options.incrementalZoomFactor)};g.prototype.isMagnified=function(){return 1<
182this._magnification};g.prototype.toggleZoom=function(){throw Error("zoom toggle behavior is undefined in scroller mode");};g.render=function(u,n,v,F,W){return"\n\t\t\t\x3cdiv "+n+'\x3e\n\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\x3cimg src\x3d"'+v+'"\n\t\t\t\t\tsrcset\x3d"'+W+'"\n\t\t\t\t\tsizes\x3d"'+u.image.sizes+'"\x3e\n\t\t\t\t\t\x3cdiv\x3e\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3ca href\x3d"'+F+'"\n\t\t\t\t\tclass\x3d"scroller-zoom-in"\n\t\t\t\t\ttitle\x3d"'+u.zoomInBtnText+'"\x3e\n\t\t\t\t\t'+u.zoomInBtnText+
183'\n\t\t\t\t\x3c/a\x3e\n\t\t\t\t\x3ca href\x3d"'+F+'"\n\t\t\t\t\tclass\x3d"scroller-zoom-out"\n\t\t\t\t\ttitle\x3d"'+u.zoomOutBtnText+'"\x3e\n\t\t\t\t\t'+u.zoomOutBtnText+"\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};g.prototype._zoomBy=function(u,n){var v=this;u=Number(u);void 0===n&&(n=this._options.animateZoom);1===u||1===this._magnification&&1>u||this._magnification===this._options.magnification&&1<u||(this.scroller.zoomTo(this._magnification*u,this._options.animateZoom),setTimeout(function(){v._onZoom()},
184this._options.animationDuration))};g.prototype._onZoom=function(){var u=this._magnification;this._magnification=Number(this.scroller.getValues().zoom.toFixed(2));this._updateButtonStates();u>this._magnification?this._$el.trigger("scroller.after-zoom-out"):u<this._magnification&&this._$el.trigger("scroller.after-zoom-in")};g.prototype._renderer=function(){var u,n=document.documentElement.style,v=this;window.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?u="presto":"MozAppearance"in
185n?u="gecko":"WebkitAppearance"in n?u="webkit":"string"==typeof navigator.cpuClass&&(u="trident");u={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[u];n=document.createElement("div");var F=u+"Transform";return void 0!==n.style[u+"Perspective"]?function(W,aa,x){v._content.style[F]="translate3d("+-W+"px,"+-aa+"px,0) scale("+x+")"}:void 0!==n.style[F]?function(W,aa,x){v._content.style[F]="translate("+-W+"px,"+-aa+"px) scale("+x+")"}:function(W,aa,x){v._content.style.marginLeft=W?-W/x+"px":"";v._content.style.marginTop=
186aa?-aa/x+"px":"";v._content.style.zoom=x||""}};g.prototype._onResize=function(){this.scroller.setDimensions(this._container.clientWidth,this._container.clientHeight,this._container.clientWidth,this._container.clientHeight)};g.prototype._installEventHandlers=function(){var u=this,n=new l(this._imgCast,function(){u.cyclicZoom()});window.addEventListener("resize",function(v){u._onResize(v)},!1);this._zoomInBtn.addEventListener("click",function(v){v.preventDefault();u.zoomIn()},!1);this._zoomOutBtn.addEventListener("click",
187function(v){v.preventDefault();u.zoomOut()},!1);"ontouchstart"in window?(u._container.addEventListener("touchstart",function(v){if(v.touches[0].target!=u._$el.find("a.scroller-zoom-in").get(0)&&v.touches[0].target!=u._$el.find("a.scroller-zoom-out").get(0)&&!(v.touches[0]&&v.touches[0].target&&v.touches[0].target.tagName.match(/input|textarea|
187select/i))){u.scroller.doTouchStart(v.touches,v.timeStamp);for(var F=0;F<v.touches.length;F++)n.onDown(v.touches[F]);v.preventDefault()}},!1),document.addEventListener("touchmove",
188function(v){u.scroller.doTouchMove(v.touches,v.timeStamp,v.scale);n.onMove()},!1),document.addEventListener("touchend",function(v){u.scroller.doTouchEnd(v.timeStamp);u._onZoom();for(var F=0;F<v.changedTouches.length;F++)n.onUp(v.changedTouches[F])},!1),document.addEventListener("touchcancel",function(v){u.scroller.doTouchEnd(v.timeStamp);u._onZoom();for(var F=0;F<v.changedTouches.length;F++)n.onUp(v.changedTouches[F])},!1)):(u._container.addEventListener("mousedown",function(v){v.target.tagName.match(/input|textarea|select/i)||
189(u.scroller.doTouchStart([{pageX:v.pageX,pageY:v.pageY}],v.timeStamp),n.onDown(v))},!1),document.addEventListener("mousemove",function(v){n.isDown&&(u.scroller.doTouchMove([{pageX:v.pageX,pageY:v.pageY}],v.timeStamp),n.onMove())},!1),document.addEventListener("mouseup",function(v){n.isDown&&(u.scroller.doTouchEnd(v.timeStamp),n.onUp(v))},!1))};g.prototype._updateButtonStates=function(){1===this._magnification?($(this._$el).addClass("scroller-zoom-out-max"),$(this._$el).removeClass("scroller-zoom-in-max")):
190this._magnification===this._options.magnification?($(this._$el).addClass("scroller-zoom-in-max"),$(this._$el).removeClass("scroller-zoom-out-max")):($(this._$el).removeClass("scroller-zoom-in-max"),$(this._$el).removeClass("scroller-zoom-out-max"))};var H="undefined"==typeof exports?window:exports;H.Akamai=H.Akamai||{};H.Akamai.MagnifierImplScroller=g})();
191(function(l,g){var H=Akamai.Util.component("Magnifier",function(u,n){this._options.disabled=!this._options.enabled;this._options.mode===H.MODE_ANIMATED_ZOOM?this._impl=new Akamai.MagnifierImplScroller(u,n):this._impl=new Akamai.MagnifierImplEnlarge(u,n)});H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);this._options.disabled=!this._options.enabled;Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,
192"Magnifier");this._impl.updateOptions(this._options)};H._componentEventMapping={"enlarge.after-zoom-in":"in","enlarge.after-zoom-out":"out","scroller.after-zoom-in":"in","scroller.after-zoom-out":"out"};H.MODE_HOVER_ZOOM="hoverzoom";H.MODE_ANIMATED_ZOOM="animatedzoom";H.defaultOptions={mode:H.MODE_HOVER_ZOOM,button:!0,enabled:!0,magnification:3,image:Akamai.Image.defaultConfig,delay:300,buttonText:"Toggle Image Magnification",flyout:{width:200,height:200},hoverZoomWithoutClick:!0,placement:"inline",
193incrementalZoomFactor:3,animateZoom:!0,animationDuration:250,zoomInBtnText:"Zoom In",zoomOutBtnText:"Zoom Out"};Akamai.Sourceable.extendStatic(H);H.render=function(u,n){n=Akamai.Util.options(H.defaultOptions,n);var v=H._dataAttr,F=H._fallbackSrc(u.url,n.image),W=H._largestSrc(u.url,n.image);u=H._srcset(u.url,n.image);return(n.mode===H.MODE_ANIMATED_ZOOM?Akamai.MagnifierImplScroller:Akamai.MagnifierImplEnlarge).render(n,v,F,W,u,n.image.sizes)};H.prototype.in=function(){this._impl.zoomIn()};H.prototype.out=
194function(){this._impl.zoomOut()};H.prototype.isMagnified=function(){return this._impl.isMagnified()};H.prototype.toggle=function(){this._impl.toggleZoom()};l.Akamai=l.Akamai||{};l.Akamai.Magnifier=H})("undefined"==typeof exports?window:exports,this.jQuery);
195(function(l,g){g=Akamai.Util.component("VideoImpl",function(H,u){throw Error("Not allowed to instantiate VideoImpl");});g.render=function(H,u){throw Error("VideoImpl.render not implemented");};l.Akamai=l.Akamai||{};l.Akamai.VideoImpl=g})("undefined"==typeof exports?window:exports,this.jQuery);
196(function(l,g){g=Akamai.Util.component("VideoImplPristine",function(H,u){});g.prototype=Object.create(Akamai.VideoImpl.prototype);g.prototype.constructor=g;g.render=function(H,u){u=Akamai.Util.options(Akamai.Video.defaultOptions,u);var n=H.url,v=H.poster||"";H=H.mime?'type\x3d"'+H.mime+'"':"";return Akamai.Util.trim("\n\t\t\t\x3cdiv "+Akamai.Video._dataAttr+"\x3e\n\t\t\t\t\x3cvideo "+[u.loop?"loop":"",u.autoplay?"autoplay":"",u.controls?"controls":"",u.muted?"muted":"","playsinline"].join(" ")+' poster\x3d"'+
197v+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+'" '+H+" /\x3e\n\t\t\t\t\x3c/video\x3e\n\t\t\t\x3c/div\x3e\n\t\t")};l.Akamai=l.Akamai||{};l.Akamai.VideoImplPristine=g})("undefined"==typeof exports?window:exports,this.jQuery);
198(function(l,g){var H=Akamai.Util.component("VideoImplIm",function(u,n){u=Akamai.Util.options(Akamai.Video.defaultOptions,n);H._validateOptions(u)});H.prototype=Object.create(Akamai.VideoImpl.prototype);H.prototype.constructor=H;H._validateOptions=function(u){if(!Array.isArray(u.sizes)||3!==u.sizes.length)throw Error("Akamai.Video sizes must have three entries");if(u.sizes.some(function(n){return isNaN(n)}))throw Error("Akamai.VideoImplIm all sizes must be numbers");};H.render=function(u,n){var v=
199Akamai.Util.options(Akamai.Video.defaultOptions,n);H._validateOptions(v);n=u.url;u=u.poster||"";var F=window.innerWidth;F=992>F?v.sizes[0]:1200>F?v.sizes[1]:v.sizes[2];v=[v.loop?"loop":"",v.autoplay?"autoplay":"",v.controls?"controls":"",v.muted?"muted":"","playsinline"];var W=-1===n.indexOf("?")?"?":"\x26";return Akamai.Util.trim("\n\t\t\t\x3cdiv "+Akamai.Video._dataAttr+"\x3e\n\t\t\t\t\x3cvideo "+v.join(" ")+' poster\x3d"'+u+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+W+"imformat\x3dvp9\x26imwidth\x3d"+
200F+'" type\x3d"video/webm" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+W+"imformat\x3dh265\x26imwidth\x3d"+F+'" type\x3d"video/mp4; codecs\x3dhevc" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+W+"imformat\x3dh264\x26imwidth\x3d"+F+'" type\x3d"video/mp4" /\x3e\n\t\t\t\t\x3c/video\x3e\n\t\t\t\x3c/div\x3e\n\t\t')};l.Akamai=l.Akamai||{};l.Akamai.VideoImplIm=H})("undefined"==typeof exports?window:exports,this.jQuery);
201(function(l,g){var H=Akamai.Util.component("Video",function(u,n){if(this._comp=this._$el.length&&void 0,this._$videoElement=this._$el.find("video"),this._videoElement=this._$videoElement[0],!this._videoElement)throw Error("Akamai.Video requires a child HTML Video element");if(!this._videoElement.play||!this._videoElement.pause)return this._unsupportedAPI=!0,void this._unsupported();this._setState(this._videoElement.paused?H.States.Paused:H.States.Playing);this._$el.bind("akamai-video-play",function(){this._setState(H.States.Playing)}.bind(this)).bind("akamai-video-pause",
202function(){this._setState(H.States.Paused)}.bind(this));this._createPlayButton()});H.MODE_IM="im";H.MODE_PRISTINE="pristine";H._componentEventMapping={play:{to:"play",selector:"video"},pause:{to:"pause",selector:"video"},seeked:{to:"seek",selector:"video"}};H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,"Video")};H.defaultOptions={autoplay:!1,
203controls:!0,loop:!1,muted:!0,mode:H.MODE_PRISTINE,sizes:[854,1280,1920]};H.render=function(u,n){return(n&&n.mode===H.MODE_IM?Akamai.VideoImplIm:Akamai.VideoImplPristine).render(u,n)};H.States={Playing:0,Paused:1};H.prototype._unsupported=function(){return this._unsupportedAPI&&Akamai.Util.log("Video: video API not supported","error"),this._unsupportedAPI};H.prototype.play=function(){this._unsupported()||this._videoElement.play()};H.prototype.pause=function(){this._unsupported()||this._videoElement.pause()};
204H.prototype.getState=function(){return this._state};H.prototype._setState=function(u){this._state=u};H.prototype.seek=function(u){if(0>u||100<u)throw Error("seek takes a an integer between 0 and 100");this._videoElement.currentTime=u/100*(this._videoElement.duration||1)};H.prototype.setLoop=function(u){this._videoElement.loop=u};H.prototype.getElement=function(){return this._$el[0]};H.prototype._createPlayButton=function(){var u,n=this._$el[0],v=this._videoElement;this._options.autoplay||(n.insertAdjacentHTML("beforeend",
205'\n\t\t\t\x3csvg viewBox\x3d"0 0 200 200" alt\x3d"Play video"\x3e\n\t\t\t\t\x3ccircle cx\x3d"100" cy\x3d"100" r\x3d"90" fill\x3d"none" stroke-width\x3d"15" stroke\x3d"#fff"/\x3e\n\t\t\t\t\x3cpolygon points\x3d"70, 55 70, 145 145, 100" fill\x3d"#fff"/\x3e\n\t\t\t\x3c/svg\x3e\n\t\t'),v.removeAttribute("controls"),u=this._$el.find("svg")[0],u.addEventListener("click",function(){v.play();u.classList.add("is-hidden");this._options.controls&&v.setAttribute("controls","controls")}.bind(this)))};l.Akamai=
206l.Akamai||{};l.Akamai.Video=H})("undefined"==typeof exports?window:exports,this.jQuery);
207(function(l,g){var H=Akamai.Util.component("Carousel",function(u,n){this._spins=Akamai.Spin360.createMany(this._$el[0],this._options.spin360);this._magnifiers=Akamai.Magnifier.createMany(this._$el[0],this._options.magnifier);this._videos=Akamai.Video.createMany(this._$el[0],this._options.video);this._$el.snapper(this._options);this._setAspectRatio();this._bindAspectAttributes();this._options.slideshow.autostart&&setTimeout(function(){this.startSlideshow()}.bind(this),this._options.slideshow.interval);
208this._activeItemAttributes();this._$el.bind("akamai-carousel-goto",this._activeItemAttributes.bind(this));this._handleAutoplayables();this._$el.bind("akamai-carousel-goto",this._handleAutoplayables.bind(this));this._$el.bind("tau.touch-tracking-start",function(){this._$el.find(".snapper_pane").addClass("no-scroll")}.bind(this)).bind("tau.touch-tracking-stop",function(){this._$el.find(".snapper_pane").removeClass("no-scroll")}.bind(this));this._$el.bind(this.constructor._stopSlideshowEvents.join(" "),
209this.stopSlideshow.bind(this))});H._stopSlideshowEvents=["akamai-magnifier-in","akamai-magnifier-out","akamai-spin360-goto","akamai-video-play","akamai-video-seek"];H.prototype._handleAutoplayables=function(){var u=function(n){return!!g(n.getElement()).closest("["+this.constructor.activeItemAttr+"]").length}.bind(this);
209this._videos.concat(this._spins).forEach(function(n){u(n)&&n._carouselWasPlaying?n.play():n.getState()==n.constructor.States.Playing?(n._carouselWasPlaying=!0,n.pause()):n._carouselWasPlaying=
210!1}.bind(this))};H.counter=0;H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);var n=function(v,F){v._updateOptions(this._options[F])}.bind(this);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,"Carousel");this._$el.snapper("updateOptions",u);this._spins.forEach(function(v){n(v,"spin360")});this._magnifiers.forEach(function(v){n(v,"magnifier")});this._videos.forEach(function(v){n(v,"video")});
211this._setAspectRatio()};H._componentEventMapping={"snapper.after-snap":"goto","snapper.snap":"snap","snapper.after-next":"next","snapper.after-prev":"previous"};H.defaultOptions={arrows:!0,aspectratio:!1,slideshow:{interval:4E3,autostart:!1},thumbnail:{placement:"bottom",type:"images",policy:void 0,sizes:"300px"},images:Akamai.Image.defaultConfig};H.renderMapping={image:Akamai.Magnifier,spin360:Akamai.Spin360,video:Akamai.Video};H._typeMapping={image:"magnifier"};H._uniqueItemId=function(u,n){return"akamai-carousel-"+
212H.counter+"-"+u.type+"-"+n};Akamai.Sourceable.extendStatic(H);H._renderItem=function(u,n,v){var F=H._typeMapping[u.type]||u.type;if(!H.renderMapping[u.type])throw Error("\n\t\t\t\titem type "+u.type+" at index "+n+" must be 'image', 'spin360', or 'video'\n\t\t\t");return'\n\t\t\t\x3cdiv class\x3d"snapper_item" id\x3d"'+H._uniqueItemId(u,n)+'"\x3e\n\t\t\t\t'+H.renderMapping[u.type].render(u,v[F])+"\n\t\t\t\x3c/div\x3e\n\t\t"};H._renderThumbnailAnchor=function(u,n,v,F){var W="",aa=u.alt||"";W="video"===
213u.type?u.poster||n.reduce(function(U,B){return U||H._thumbUrl(B)},""):H._thumbUrl(u);F.images.policy=F.thumbnail.policy;n=H._fallbackSrc(W,F.images);W=H._srcset(W,F.images);var x=F.images.sizes;F.thumbnail.policy&&(x=F.thumbnail.sizes);F=[H._dataAttr+'-thumb-type\x3d"'+u.type+'"',"video"!=u.type||u.poster?"":"${Carousel._dataAttr}-thumb-noposter"];return'\n\t\t\t\x3ca href\x3d"#'+H._uniqueItemId(u,v)+'" '+F.join(" ")+'\x3e\n\t\t\t\t\x3cimg src\x3d"'+n+'" srcset\x3d"'+W+'" sizes\x3d"'+x+'" alt\x3d"'+
214aa+'" title\x3d"Scroll to '+u.type+" "+v+'" /\x3e\n\t\t\t\x3c/a\x3e\n\t\t'};H._thumbUrl=function(u){return"video"===u.type?u.poster:u.url||u.urls&&u.urls[0]};H._renderThumbnails=function(u,n){return 1>=u.length?"":'\n\t\t\t\x3cdiv class\x3d"snapper_nav"\x3e\n\t\t\t\t\x3cdiv class\x3d"snapper_nav_inner"\x3e\n\t\t\t\t\t'+Akamai.Util.map(u,function(v,F){return H._renderThumbnailAnchor(v,u,F,n)}).join("\n")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};H.prototype._setAspectAttributes=function(u){var n=
215H._dataAttr+"-aspectratio-orientation";u.height()>u.width()?u.attr(n,"portrait"):u.height()<u.width()?u.attr(n,"landscape"):u.parent().height()>=u.parent().width()?u.attr(n,"landscape"):u.attr(n,"portrait")};H.prototype._setAspectRatio=function(){var u=this._options.aspectratio||0,n=this._$el.find(".snapper_item");n.css("padding-top",u/n.length+"%")};H.prototype._bindAspectAttributes=function(){if(!1!==this._options.aspectratio){var u=(this._options.aspectratio,this),n=this._$el.find(".snapper_item");
216n.each(function(){var v=g(this),F=v.find("img, video").eq(0);F.bind("load loadedmetadata",loadBinding=function(){clearTimeout(W);v.is("["+Akamai.Spin360._dataAttr+"]")?u._setAspectAttributes(v.find("canvas")):u._setAspectAttributes(F)});var W=setTimeout(loadBinding,5E3)});n.eq(0).find("img,video").eq(0).bind("load loadedmetadata",function(){u._trigger("first-media-load")})}};H.render=function(u,n){n=n||{};var v=Akamai.Util.options(H.defaultOptions,n);n=[""+H._dataAttr,H._dataAttr+'-item-count\x3d"'+
217(u||[]).length+'"','data-snapper-deeplinking\x3d"false"',v.arrows?"data-snapper-nextprev":""];return H.counter++,Akamai.Util.trim("\n\t\t\t\x3cdiv "+n.join(" ")+' class\x3d"snapper"\x3e\n\t\t\t\t\x3cdiv class\x3d"snapper_nextprev_contain"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"snapper_pane_crop"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"snapper_pane enlarge_pane"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"snapper_items"\x3e\n\t\t\t\t\t\t\t\t'+Akamai.Util.map(u,function(F,W){return H._renderItem(F,W,v)}).join("\n")+
218"\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\n\t\t\t\t"+H._renderThumbnails(u,v)+"\n\t\t\t\x3c/div\x3e\n\t\t")};H.prototype.getSpin360s=function(){return this._spins};H.prototype.getMagnifiers=function(){return this._magnifiers};H.prototype.getVideos=function(){return this._videos};H.prototype.goto=function(u,n){this._$el.snapper("goto",u,n)};H._itemAttr=H._dataAttr+"-item";H._activeItemAttr=H._itemAttr+"-active";H.prototype._activeItemAttributes=
219function(){var u=this.constructor._itemAttr,n=this.constructor._activeItemAttr;this._$el.find(".snapper_item").attr(u,!0).removeAttr(n).eq(this.getIndex()).attr(n,!0)};H.prototype.getIndex=function(){return this._$el.snapper("getIndex")};Akamai.Advanceable.extend(H);H.prototype.next;H.prototype.previous;H.prototype.startSlideshow=function(){this._$el.one("mousedown touchstart",this.stopSlideshow.bind(this));this.next(function(){this._trigger("start-slideshow");this._slideshowTimer=setTimeout(function(){this.startSlideshow()}.bind(this),
220this._options.slideshow.interval)}.bind(this))};H.prototype.stopSlideshow=function(){clearTimeout(this._slideshowTimer);this._slideshowTimer=void 0;this._trigger("stop-slideshow")};H.prototype.refresh=function(){this._$el.snapper("updateWidths")};l.Akamai=l.Akamai||{};l.Akamai.Carousel=H})("undefined"==typeof exports?window:exports,this.jQuery);
221(function(l,g){var H=Akamai.Util.component("Fullscreen",function(u,n){this._options.enabled&&this._init()});H.prototype._init=function(){this._$fullscreen=this._$el;this.addButton();this._fullscreenApiKeys=H._keys();this._options.native?this._useNativeApi=!!this._fullscreenApiKeys:this._useNativeApi=!1;this._fullscreenFallbackEnabled=!1;this._$placeholder=g("\x3cdiv\x3e");this._isFullscreen=!1;this.addEvents()};H.classes={btn:"akamai-fullscreen-btn",btnContainer:"akamai-fullscreen-btncontainer",enterBtn:"akamai-fullscreen-btn-enter",
222exitBtn:"akamai-fullscreen-btn-exit",active:"akamai-fullscreen-active",fallback:"akamai-fullscreen-fallback"};H.attr={width:"data-akamai-fullscreen-width",enterBtn:"data-akamai-fullscreen-btn",exitBtn:"data-akamai-fullscreen-exit-btn"};H.defaultOptions={enabled:!1,native:!1};H.prototype.addButton=function(){this._$widthAdjust=this._$fullscreen.children().filter(".focused");this._$widthAdjust.length||(this._$widthAdjust=this._$fullscreen.children().eq(0));null===this._$widthAdjust.attr(H.attr.width)&&
223this._$widthAdjust.attr(H.attr.width,"");this._$widthAdjust.find("["+H.attr.enterBtn+"]").length||(this._$buttonContainer=this._$widthAdjust,this._$buttonContainer.addClass(H.classes.btnContainer),this._$buttonContainer.append(this.render()))};H.prototype.addEvents=function(){this._$fullscreen.on("click",function(u){g(u.target).is("["+H.attr.enterBtn+"]")&&(this.enter(),u.preventDefault())}.bind(this));this._$fullscreen.on("click",function(u){g(u.target).is("["+H.attr.exitBtn+"]")&&(this.exit(),u.preventDefault())}.bind(this));
224this._useNativeApi&&document.addEventListener(this._fullscreenApiKeys.onchange,function(){document[this._fullscreenApiKeys.element]||this._exit()}.bind(this),!1);g(document).on("keydown",function(u){27===(u.keyCode||u.which)&&this._exit()}.bind(this))};H.prototype.render=function(){return Akamai.Util.trim("\n\t\t\t\x3cbutton "+H.attr.enterBtn+' class\x3d"'+H.classes.btn+" "+H.classes.enterBtn+' icon-fullscreen"\x3eFull Screen\x3c/button\x3e\n\t\t\t\x3cbutton '+H.attr.exitBtn+' class\x3d"'+H.classes.btn+
225" "+H.classes.exitBtn+' icon-close-light"\x3eExit Full Screen\x3c/button\x3e\n\t\t')};
225H._keyLookup=[{enter:"requestFullscreen",exit:"exitFullscreen",element:"fullscreenElement",onchange:"fullscreenchange"},{enter:"webkitRequestFullscreen",exit:"webkitExitFullscreen",element:"webkitFullscreenElement",onchange:"webkitfullscreenchange"},{enter:"webkitRequestFullScreen",exit:"webkitCancelFullScreen",element:"webkitCurrentFullScreenElement",onchange:"webkitfullscreenchange"},{enter:"mozRequestFullScreen",
226exit:"mozCancelFullScreen",element:"mozFullScreenElement",onchange:"mozfullscreenchange"},{enter:"msRequestFullscreen",exit:"msExitFullscreen",element:"msFullscreenElement",onchange:"MSFullscreenChange"}];H._keys=function(u){var n=H._keyLookup;u=document.body;for(var v=0,F=n.length;v<F;v++)if(n[v].enter in u)return n[v]};H.prototype._maximizePlacement=function(){this._fullscreenFallbackEnabled=!0;this._$fullscreen.addClass(H.classes.fallback);this._$placeholder.insertAfter(this._$fullscreen);this._$fullscreen.appendTo(document.body)};
227H.prototype._restorePlacement=function(){this._fullscreenFallbackEnabled&&(this._fullscreenFallbackEnabled=!1,this._$fullscreen.removeClass(H.classes.fallback),this._$fullscreen.insertAfter(this._$placeholder),this._$placeholder.remove())};H.prototype._adjustWidth=function(){this._$fullscreen.css("width","auto !important");var u=this._$fullscreen.width(),n=this._$fullscreen.height();u=u*(this._useNativeApi?window.screen.height:Math.max(document.documentElement.clientHeight,window.innerHeight||0))/
228n;u>(this._useNativeApi?window.screen.width:Math.max(document.documentElement.clientWidth,window.innerWidth||0))&&(u="100%");this._$widthAdjust.width(u)};H.prototype._revertWidth=function(){this._$widthAdjust.css("width","")};H.prototype.enter=function(){this._$fullscreen.addClass(H.classes.active);this._useNativeApi?(this._$fullscreen[0][this._fullscreenApiKeys.enter](),this._adjustWidth()):(this._adjustWidth(),this._maximizePlacement());this._isFullscreen=!0;this._trigger("enter")};H.prototype._exit=
229function(){this._$fullscreen.removeClass(H.classes.active);this._useNativeApi||this._restorePlacement();this._revertWidth();this._isFullscreen=!1;this._trigger("exit")};H.prototype.exit=function(){this._useNativeApi&&document[this._fullscreenApiKeys.exit]();this._exit()};H.prototype.isFullscreen=function(){return this._isFullscreen};l.Akamai=l.Akamai||{};l.Akamai.Fullscreen=H})("undefined"==typeof exports?window:exports,this.jQuery);
230(function(l,g){var H=Akamai.Util.component("Viewer",!0,function(u,n){this._updateSizesOptions(!0);this._onResizeComplete(this._updateSizesOptions.bind(this));this._options.carousel=H._extendCarouselOptions(this._options);this._withData(function(v){v&&(this._checkJSONUrls(v),v=Akamai.Util.escapeJSONVals(v),this._options.items.data=v);this._tagMapping={};0==this._$el.children().length&&v&&(this._tagMapping=this.constructor._tagSplit(v,this._options.items),this._$el.append(this.constructor.render(v,
231this._options,!0)));this._carousels=Akamai.Carousel.createMany(u,this._options.carousel);this._fullscreen=new Akamai.Fullscreen(u,this._options.fullscreen);this._$el.bind("akamai-fullscreen-enter akamai-fullscreen-exit",function(){this._updateOptions(this._resolveBreakpointOptions())}.bind(this));this._setBreakpoints();this._trigger("init")}.bind(this),function(v){throw Error(v);})});H.prototype._updateSizesOptions=function(u){var n=this._$el.width();n&&0<n&&(n+="px",this._options=Akamai.Util.extend(!0,
232this._options,{carousel:{images:{sizes:n}}}));u||this._updateOptions(this._options)};H.prototype._withData=function(u,n){this._options.items.uri?void 0!==this._options.items.uri&&0<this._options.items.uri.length&&g.get(this._options.items.uri,function(v){v="string"==typeof v?JSON.parse(v):v;this._exceedsLimit(v.items,n)||u(v.items)}.bind(this)):this._exceedsLimit(this._options.items.data,n)||u(this._options.items.data)};H.prototype._exceedsLimit=function(u,n){return!!u&&4*JSON.stringify(u).length/
2331024>this._options.items.limit&&(n=n||function(){},n("JSON data size exceeds "+this._options.items.limit+" KiB. Limit can be configured with items.limit Akamai.Viewer options."),!0)};H.prototype._setBreakpoints=function(){this._breakpoints=this._reduceBreakp
233oints(this._options.breakpoints||{});this._fullscreenBreakpoints=this._reduceBreakpoints(this._options.fullscreenBreakpoints||{});this._bindBreakpoints()};H.prototype._reduceBreakpoints=function(u){var n=[],v;for(v in u)if(u.hasOwnProperty(v))try{n.push(parseInt(v,
23410))}catch(F){Akamai.Util.log(F,"error")}return n.sort(function(F,W){return W<F}),n};H.prototype._bindBreakpoints=function(){[this._breakpoints,this._fullscreenBreakpoints].forEach(function(u){if(u.length)for(var n=-1;n<u.length;n++)this._bindMatchMedia(u[n],u[n+1])}.bind(this))};H.prototype._onResizeComplete=function(u){var n;window.addEventListener("resize",function(){clearTimeout(n);n=setTimeout(u,500)})};H.prototype._bindMatchMedia=function(u,n){(u=u||0,n=n||1E9,window.matchMedia)&&(n=window.matchMedia("(min-width: "+
235u+"px) and (max-width: "+n+"px)"))&&n.addListener&&(this._mediaMatch(n,u,!0),n.addListener(function(v){this._mediaMatch(v,u)}.bind(this)))};H.prototype._mediaMatch=function(u,n,v){u.matches&&(u=this._resolveBreakpointOptions(n),this._updateOptions(u))};H.prototype._getCurrentMinWidth=function(u){for(var n=-1;n<u.length;n++)if(minWidth=u[n]||0,maxWidth=u[n+1]||1E8,window.matchMedia){var v=window.matchMedia("(min-width: "+minWidth+"px) and (max-width: "+maxWidth+"px)");if(v&&v.matches)return minWidth}return!1};
236H.prototype._resolveBreakpointOptions=function(u){var n,v;return this._fullscreen.isFullscreen()?(n=this._fullscreenBreakpoints,v=this._options.fullscreenBreakpoints):(n=this._breakpoints,v=this._options.breakpoints),u||(u=this._getCurrentMinWidth(n)),n.length?n.reduce(function(F,W){F=Akamai.Util.extend(!0,{},F);return W<=u&&(F=Akamai.Util.extend(!0,F,v[W])),F},Akamai.Util.extend(!0,{},this._originalOptions)):this._originalOptions};H._extendCarouselOptions=function(u){var n=Akamai.Util.extend(!0,
237{},u.carousel||{});return Akamai.Util.extend(!0,n,{magnifier:u.magnifier,spin360:u.spin360,video:u.video,fullscreen:u.fullscreen})};H.prototype._updateOptions=function(u){this._options=Akamai.Util.extend(!0,this._options,u);var n=H._extendCarouselOptions(u);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,u,"Viewer");this._carousels.forEach(function(v){v._updateOptions(n)}.bind(this))};H.prototype._checkJSONUrls=function(u){var n=this._options.items.hostnames;return Akamai.Util.mapJSONVals(u,
238function(v,F){if("url"===F&&!this._urlHostnameMatch(v))throw Error("The URL `"+v+"` does not match this page's hostname or the whitelist defined in Akamai.Viewer option `hostnames` which is:\n\n"+(n.length?n.join("\n"):"No hostnames")+"\n");return v}.bind(this))};H.prototype._urlHostnameMatch=function(u){var n=document.createElement("a");return n.href=u,n.hostname===window.location.hostname||0<=this._options.items.hostnames.indexOf(n.hostname)};H.defaultOptions={breakpoints:{},items:{data:void 0,
239defaultTag:"akamai-untagged",hostnames:[],limit:100,renderAll:!1,tags:void 0,uri:void 0},carousel:Akamai.Carousel.defaultOptions,magnifier:Akamai.Magnifier.defaultOptions,spin360:Akamai.Spin360.defaultOptions,video:Akamai.Video.defaultOptions,fullscreen:Akamai.Fullscreen.defaultOptions};H._tagSplit=function(u,n){u=u.map(function(F){return F.tags=F.tags&&F.tags.length?F.tags:[n.defaultTag],F});n.tags&&(u=n.data.filter(function(F){return F.tags.reduce(function(W,aa){return W||0<=n.tags.indexOf(aa)},
240!1)}));var v=u[0].tags[0];u=u.reduce(function(F,W){return(W.tags||[]).forEach(function(aa){F[aa]=F[aa]||[];F[aa].push(W)}),F},{});return u[H._firstRenderTag]=u[v],u};H._firstRenderTag="akamai-first-render";H._tagAttr=H._dataAttr+"-tag";H._renderTag=function(u,n){return Akamai.Util.trim("\n\t\t\t\x3cdiv "+H._tagAttr+'\x3d"'+u[0].tags[0]+'"\x3e\n\t\t\t\t'+Akamai.Carousel.render(u,n)+"\n\t\t\t\x3c/div\x3e\n\t\t")};H.render=function(u,n,v){u=H._tagSplit(u,n.items);var F=H._extendCarouselOptions(n);n=
241n.items.renderAll?u.map(function(W,aa){return H._renderTag(aa,F)}).join(" "):H._renderTag(u[H._firstRenderTag],F);u="\n\t\t\t\x3cdiv "+H._dataAttr+"\x3e\n\t\t\t\t"+n+"\n\t\t\t\x3c/div\x3e\n\t\t";return v?n:u};H.prototype.getCarousels=function(){return this._carousels};H.prototype.switchTag=function(u){if(-1==this.getTags().indexOf(u))return void Akamai.Util.log("tag: "+u+" is not present in the data for this viewer","error");var n=this._$el.find("["+this.constructor._tagAttr+'\x3d"'+u+'"]');if(n.length)this._showViewer(n);
242else{n=this._resolveBreakpointOptions();
242var v=H._extendCarouselOptions(n),F=g(this.constructor._renderTag(this._tagMapping[u],v,!0)),W=F.find("img"),aa=W.length,x=0;F.css("display","none");W.bind("load",function(){if(++x===aa){W.unbind("load");var U=Akamai.Carousel.createMany(F[0],v);U.forEach(function(B){B.goto(B.getIndex())});this._carousels=this._carousels.concat(U);this._showViewer(F,U)}}.bind(this));this._$el.append(F)}};H.prototype._showViewer=function(u,n){this._$el.find("["+this.constructor._tagAttr+
243"]").css("display","none").removeClass("focused");u.css("display","block").addClass("focused");n&&n.map(function(v){v.refresh()});this._fullscreen.addButton();this._trigger("switch-tag")};H.prototype.getTags=function(){if(this._tags)return this._tags;var u=[],n;for(n in this._tagMapping)this._tagMapping.hasOwnProperty(n)&&n!==H._firstRenderTag&&u.push(n);return this._tags=u};l.Akamai=l.Akamai||{};l.Akamai.Viewer=H})("undefined"==typeof exports?window:exports,this.jQuery);
244(function(l,g){g.fn.akamaiViewer=function(H){this.each(function(u,n){new Akamai.Viewer(n,H)})}})("undefined"==typeof exports?window:exports,this.jQuery);
245(function(){var l=window.sg.common.$q,g=new WeakMap,H=window.sg.common.utils.triggerEvent,u={init:function(n){n.hasAttribute("data-akamai-viewer")||(n=n.querySelector("[data-akamai-viewer]"));if(n){if(!g.has(n)){var v=new Akamai.Viewer(n,{carousel:{arrows:!1},spin360:{reverse:!0},items:{uri:n.getAttribute("data-spin-uri")}});g.set(n,v)}H(window,"resize")}},initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll("[data-akamai-viewer]"))).forEach(function(n){n.hasAttribute("data-init-on-loaded")&&
246(u.init(n),n.removeAttribute("data-init-on-loaded"))})}};window.sg.common.image360=u;l.ready(u.initAll)})();"use strict";
247function QRCode(l){var g,H,u,n,v=[],F=[],W=Math.max,aa=Math.min,x=Math.abs,U=Math.ceil,B=/^[0-9]*$/,w=/^[A-Z0-9 $%*+.\/:-]*$/,e=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],
248[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],p=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,
24921,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],k={L:[0,1],M:[1,0],Q:[2,3],H:[3,2]},A=function(da,na){for(var L=0,N=8;N--;)L=L<<1^285*(L>>>7)^(na>>>N&1)*da;return L},ca=function(da,na){for(var L=[],N=da.length,b=N;b;)for(var r=da[N-b--]^L.shift(),G=na.length;G--;)L[G]^=A(na[G],r);return L},K=function(da){da=[function(){return 0==(na+L)%2},function(){return 0==na%2},function(){return 0==L%3},function(){return 0==(na+L)%3},function(){return 0==((na/2|0)+(L/3|0))%2},function(){return 0==
250na*L%2+na*L%3},function(){return 0==(na*L%2+na*L%3)%2},function(){return 0==((na+L)%2+na*L%3)%2}][da];for(var na=n;na--;)for(var L=n;L--;)F[na][L]||(v[na][L]^=da())},D=function(){for(var da=function(V,O){O[6]||(V+=n);O.shift();O.push(V)},na=function(V,O,S){return V&&(da(O,S),O=0),da(O+n,S),L(S)},L=function(V){var O=V[5],S=0<O&&V[4]==O&&V[3]==3*O&&V[2]==O&&V[1]==O;return(S&&V[6]>=4*O&&V[0]>=O?1:0)+(S&&V[0]>=4*O&&V[6]>=O?1:0)},N=0,b=n*n,r=0,G=n;G--;){for(var P=[0,0,0,0,0,0,0],Z=[0,0,0,0,0,0,0],d=!1,
251M=!1,t=0,y=0,I=n;I--;){v[G][I]==d?5==++t?N+=3:5<t&&N++:(da(t,P),N+=40*L(P),t=1,d=v[G][I]);v[I][G]==M?5==++y?N+=3:5<y&&N++:(da(y,Z),N+=40*L(Z),y=1,M=v[I][G]);var X=v[G][I];X&&r++;I&&G&&X==v[G][I-1]&&X==v[G-1][I]&&X==v[G-1][I-1]&&(N+=3)}N+=40*na(d,t,P)+40*na(M,y,Z)}return N+=10*(U(x(20*r-10*b)/b)-1)},h=function(da,na,L){for(;na--;)L.push(da>>>na&1)},C=function(da,na){return 0!=(da>>>na&1)},E=function(da){if(1>da||40<da)throw"Version number out of range";var na=(16*da+128)*da+64;if(2<=da){var L=da/7|
2522;
252na-=(25*L-10)*L-55;7<=da&&(na-=36)}return na},T=function(da,na){for(var L=2;-2<=L;L--)for(var N=2;-2<=N;N--)ra(da+N,na+L,1!=W(x(N),x(L)))},R=function(da,na){for(var L=4;-4<=L;L--)for(var N=4;-4<=N;N--){var b=W(x(N),x(L)),r=da+N,G=na+L;0<=r&&r<n&&0<=G&&G<n&&ra(r,G,2!=b&&4!=b)}},z=function(da){var na=H[1]<<3|da,L=na;for(da=10;da--;)L=L<<1^1335*(L>>>9);na=21522^(na<<10|L);if(0!=na>>>15)throw"Assertion error";for(da=0;5>=da;da++)ra(8,da,C(na,da));ra(8,7,C(na,6));ra(8,8,C(na,7));ra(7,8,C(na,8));for(da=
2539;15>da;da++)ra(14-da,8,C(na,da));for(da=0;8>da;da++)ra(n-1-da,8,C(na,da));for(da=8;15>da;da++)ra(8,n-15+da,C(na,da));ra(8,n-8,1)},fa=function(){for(var da=n;da--;)ra(6,da,0==da%2),ra(da,6,0==da%2);for(var na=function(){var b=[];if(1<g)for(var r=2+(g/7|0),G=32==g?26:2*U((n-13)/(2*r-2));r--;)b[r]=r*G+6;return b}(),L=da=na.length;L--;)for(var N=da;N--;)0==N&&0==L||0==N&&L==da-1||N==da-1&&0==L||T(na[N],na[L]);R(3,3);R(n-4,3);R(3,n-4);z(0);(function(){if(!(7>g)){for(var b=g,r=12;r--;)b=b<<1^7973*(b>>>
25411);b|=g<<12;if(r=18,0!=b>>>18)throw"Assertion error";for(;r--;){var G=n-11+r%3,P=r/3|0,Z=C(b,r);ra(G,P,Z);ra(P,G,Z)}}})()},va=function(da,na){return(E(da)/8|0)-e[na[0]][da]*p[na[0]][da]},ra=function(da,na,L){v[na][da]=L?1:0;F[na][da]=1}
254,oa=function(da,na,L,N){if(""==da)da=[];else if(B.test(da)){if(!B.test(da))throw"String contains non-numeric characters";for(var b=[],r=0;r<da.length;){var G=aa(da.length-r,3);h(parseInt(da.substr(r,G),10),3*G+1,b);r+=G}da=[{modeBits:1,numBitsCharCount:[10,12,14],
255numChars:da.length,bitData:b}]}else if(w.test(da)){if(!w.test(da))throw"String contains unencodable characters in alphanumeric mode";r=[];for(b=0;b+2<=da.length;b+=2)G=45*"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(da.charAt(b)),G+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(da.charAt(b+1)),h(G,11,r);da=[(b<da.length&&h("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(da.charAt(b)),6,r),{modeBits:2,numBitsCharCount:[9,11,13],numChars:da.length,bitData:r})]}else{b=da;
256da=[];for(r=(b=encodeURI(b),0);r<b.length;r++)"%"!=b.charAt(r)?da.push(b.charCodeAt(r)):(da.push(parseInt(b.substr(r+1,2),16)),r+=2);b=[];for(r=0;r<da.length;r++)h(da[r],8,b);da=[{modeBits:4,numBitsCharCount:[8,16,16],numChars:da.length,bitData:b}]}var P=L;L=N;var Z=G=void 0;if(void 0===G&&(G=1),void 0===Z&&(Z=40),void 0===L&&(L=-1),void 0===P&&(P=!0),!(1<=G&&G<=Z&&40>=Z)||-1>L||7<L)throw"Invalid value";b=[];r=236;for(N=[];;){a:{var d=da;for(var M=G,t=0,y=d.length;y--;){var I=d[y],X=I.numBitsCharCount[(M+
2577)/17|0];if(1<<X<=I.numChars){d=1/0;break a}t+=4+X+I.bitData.length}d=t}if(d<=8*va(G,na))break;if(G>=Z)throw"Data too long";G++}if(P)for(Z=(P=[k.H,k.Q,k.M]).length;Z--;)d<=8*va(G,P[Z])&&(na=P[Z]);for(P=0;P<da.length;P++)for(M=da[P],h(M.modeBits,4,b),h(M.numChars,M.numBitsCharCount[(G+7)/17|0],b),Z=0,M=M.bitData;Z<M.length;Z++)b.push(M[Z]);if(b.length!=d)throw"Assertion error";da=8*va(G,na);if(b.length>da)throw"Assertion error";if(h(0,aa(4,da-b.length),b),h(0,(8-b.length%8)%8,b),0!=b.length%8)throw"Assertion error";
258for(;b.length<da;)h(r,8,b),r^=253;for(Z=b.length;Z--;)N[Z>>>3]|=b[Z]<<7-(7&Z);H=na;u=L;for(da=n=4*(g=G)+17;da--;)v[da]=[],F[da]=[];fa();if(N.length!=va(g,H))throw"Invalid argument";r=p[H[0]][g];da=e[H[0]][g];L=E(g)/8|0;na=r-L%r;L=L/r|0;b=[];P=1;G=[];G[da-1]=1;for(Z=0;Z<da;Z++){for(d=0;d<da;d++)G[d]=A(G[d],P)^G[d+1];P=A(P,2)}for(Z=P=0;P<r;P++)d=N.slice(Z,Z+L-da+(P<na?0:1)),Z+=d.length,M=ca(d,G),P<na&&d.push(0),b.push(d.concat(M));N=[];for(P=0;P<b[0].length;P++)for(r=0;r<b.length;r++)(P!=L-da||r>=na)&&
259N.push(b[r][P]);da=0;na=1;for(b=L=n-1;0<b;b-=2)for(6==b&&--b,r=0>(na=-na)?L:0,G=0;G<n;++G){for(P=b;P>b-2;--P)F[r][P]||(v[r][P]=C(N[da>>>3],7-(7&da)),++da);r+=na}if(0>u)for(N=1E9,da=8;da--;)K(da),z(da),na=D(),N>na&&(N=na,u=da),K(da);K(u);z(u);F=[]};return function(){function da(X){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(X)}function na(X,V){for(var O in X=document.createElementNS(b,X),V||{})X.setAttribute(O,V[O]);return X}var L,N,b="http://www.w3.org/2000/svg",r="";var G="string"==typeof l?{msg:l}:
260l||{};var P=G.pal||["#000"],Z=x(G.dim)||256,d=[1,0,0,1,N=-1<(N=x(G.pad))?N:4,N],M=da(M=P[0])?M:"#000",t=da(t=P[1])?t:0;P=G.vrb?0:1;oa(G.msg||"",k[G.ecl]||k.M,0==G.ecb?0:1,G.mtx);var y=n+2*N;for(G=n;G--;){var I=0;for(N=n;N--;)v[G][N]&&(P?(I++,v[G][N-1]||(r+="M"+N+","+G+"h"+I+"v1h-"+I+"v-1z",I=0)):r+="M"+N+","+G+"h1v1h-1v-1z")}return L=na("svg",{viewBox:[0,0,y,y].join(" "),width:Z,height:Z,fill:M,"shape-rendering":"crispEdges",xmlns:b,version:"1.1"}),t&&L.appendChild(na("path",{fill:t,d:"M0,0V"+y+"H"+
261y+"V0H0Z"})),L.appendChild(na("path",{transform:"matrix("+d+")",d:r})),L}()}
262(function(){var l=window.sg.common.$q,g=window.sg.common.utils,H=window.sg.common.libs,u=g.addEventListener,n=g.removeAllEventListeners,v=window.sg.common.lazyLoad,F=window.sg.common.constants.BREAKPOINTS,W=window.sg.common.constants.KEY_CODE,aa=window.sg.common.swiperManager,x=window.sg.common.scrollbar,U,B,w,e,p,k,A,ca,K={},D=null,h=null,C=null,E=function(L){this.selector={optionBox:".pd-option-selector__label, .pd-option-selector__button",optionItem:".pd-select-option__item",optionWrap:".pd-select-option__wrap",
263radio:'input[type\x3d"radio"], button.pd-option-selector__button',button:"button.pd-option-selector__button",sameText:".pd-option-selector__text-wrap",sameColor:".pd-option-selector__label",sameColorTitle:".pd-option-selector__text-wrap",message:".pd-select-option__alert-message",disclaimer:".pd-select-option__item-disclaimer, .pd-select-option__item-info",offerContainer:".pd-offer",offerItem:".pd-offer__item",offerChild:".pd-offer-child",offerChildToogleButton:'[data-js-action\x3d"pdOfferToggle"]',
264offsetMessage:".pd-select-option__wrap",careOption:".pd-select-option__list--samsung-care",counterBtn:".pd-select-option__counter .pd-select-option__counter--btn",counterNum:".pd-select-option__counter--number",addonContainer:".add-on-product-list-wrap",addonItem:".add-on-product",addonSummaryWrap:".add-on-product__price-summary-wrap",addonSummaryCTA:".add-on-product__price-summary-icon",viewMoreCTA:'[data-js-action\x3d"offerListViewMore"]',viewMoreItem:"[data-view-more-item]",tooltipCTA:".pd-select-option__tooltip__cta",
265addOnLearnMore:".add-on__layer-learn-more",dataTargetPopup:"data-target-popup",tradeInLearnMorePopupBtnEl:'[data-target-popup\x3d"tradeInLearnMorePopup"]',hubbleCareinfoPopupBtnEl:'[data-target-popup\x3d"hubbleCareinfoPopup"]',upgradeLearnMorePopupBtnEl:'[data-target-popup\x3d"upgradeLearnMorePopup"]',manufacturerInfoPopupBtnEl:'[data-target-popup\x3d"manufacturerInfoPopup"]',cancelReturnPolicyPopupBtnEl:'[data-target-popup\x3d"cancelReturnPolicyPopup"]',warrantyPolicyPopupBtnEl:'[data-target-popup\x3d"warrantyPolicyPopup"]',
266leasingLearnmorePopupBtnEl:'[data-target-popup\x3d"leasingLearnmorePopup"]',deliveryPickupPopupBtnEl:".pd-delivery-pickup__button .cta, .pd-delivery-pickup__edit-button.cta",dotListTextInner:".dot-list__text-inner",hdd02TooltipContainer:'[data-js-action\x3d"hdd02ToolTipContainer"]',hdd02TooltipLayer:'[data-js-action\x3d"hdd02ToolTipLayer"]',hdd02TooltipShow:'[data-js-action\x3d"hdd02ToolTipShow"]',hdd02TooltipHide:'[data-js-action\x3d"hdd02ToolTipHide"]'};this.el={section:l(L),window:l(window),body:l("body")};
267this.stateColor=0<this.el.section.find(".pd-select-option__list--color .pd-option-selector__promotion-text").target.length;this.focusTargetEl=this.stateWide=this.changeBeforChecked=this.showMessageEl=null;this.handler={handlePdTooltipEvent:this.handlePdTooltipEvent.bind(this),handleOptionBoxClick:this.handleOptionBoxClick.bind(this),handleViewMoreToggle:this.handleViewMoreToggle.bind(this),handleShowPdPopup:this.handleShowPdPopup.bind(this),handleOptionChange:this.handleOptionChange.bind(this),handleOptionButtonClick:this.handleOptionButtonClick.bind(this),
268handleClickCounter:this.handleClickCounter.bind(this),handleInputCounterNum:this.handleInputCounterNum.bind(this),handleComboOffer:this.handleComboOffer.bind(this),resize:this.resize.bind(this),handleHdd02TooltipOpen:this.handleHdd02TooltipOpen.bind(this),handleHdd02TooltipClose:this.handleHdd02TooltipClose.bind(this)};E.instances.set(L,this);this.init()};E.prototype.init=function(){this.setElements();this.bindEvents();this.resize()};E.prototype.reInit=function(){this.init()};E.prototype.setElements=
269function(){this.stateColor?(this.el.same=this.el.section.find(this.selector.sameColor),this.el.sameColorTitle=this.el.section.find(this.selector.sameColorTitle)):this.el.same=this.el.section.find(this.selector.sameText);this.el.optionBox=this.el.section.find(this.selector.optionBox);this.el.radio=this.el.section.find(this.selector.radio);this.el.button=this.el.section.find(this.selector.button);this.el.offsetMessage=this.el.section.find(this.selector.offsetMessage);this.el.viewMoreCTA=this.el.section.find(this.selector.viewMoreCTA);
270this.el.tooltipCTA=this.el.section.find(this.selector.tooltipCTA);this.el.targetPopupCTA=this.el.section.find("["+this.selector.dataTargetPopup+"]");this.el.counterBtn=this.el.section.find(this.selector.counterBtn);this.el.counterNum=this.el.section.find(this.selector.counterNum);this.el.hdd02TooltipContainer=this.el.section.find(this.selector.dotListTextInner+" "+this.selector.hdd02TooltipContainer);this.careMotion=0<this.el.offsetMessage.find(this.selector.careOption).target.length};E.prototype.bindEvents=
271function(){this.el.optionBox.off("click",this.handler.handleOptionBoxClick).on("click",this.handler.handleOptionBoxClick);this.el.radio.off("change",this.handler.handleOptionChange).on("change",this.handler.handleOptionChange);this.el.button.off("click",this.handler.handleOptionButtonClick).on("click",this.handler.handleOptionButtonClick);this.el.viewMoreCTA.off("click",this.handler.handleViewMoreToggle).on("click",this.handler.handleViewMoreToggle);this.el.targetPopupCTA.off("click",this.handler.handleShowPdPopup).on("click",
272this.handler.handleShowPdPopup);this.el.counterBtn.off("click",this.handler.handleClickCounter).on("click",this.handler.handleClickCounter);this.el.counterNum.off("input",this.handler.handleInputCounterNum).on("input",this.handler.handleInputCounterNum);this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.bindPdTooltipEvent();this.bindAddOnProductEvent();this.bindChipSelectEvent();this.bindComboOfferEvent();this.reInitDotListTooltip()};E.prototype.reInitDotListTooltip=
273function(){var L=this;this.el.hdd02TooltipContainer=this.el.section.find(this.selector.hdd02TooltipShow);this.el.hdd02TooltipContainer.off("mouseenter").on("mouseenter",function(N){return L.handler.handleHdd02TooltipOpen(N)});this.el.hdd02TooltipContainer.off("focus").on("focus",function(N){return L.handler.handleHdd02TooltipOpen(N)});this.el.hdd02TooltipContainer.off("click").on("click",function(N){return L.handler.handleHdd02TooltipOpen(N)})};E.prototype.handleHdd02TooltipOpen=function(L){L=l(L.currentTarget);
274var N=L.closest(this.selector.hdd02TooltipContainer),b=N.find(this.selector.hdd02TooltipHide);this.focusTargetEl&&l(this.focusTargetEl).target[0].matches(this.selector.hdd02TooltipHide)?this.focusTargetEl=L.target[0]:(N.on("mouseleave",this.handler.handleHdd02TooltipClose),N.on("focusout",this.handler.handleHdd02TooltipClose),b.on("click",this.handler.handleHdd02TooltipClose),l(document).on("keydown",this.handler.handleHdd02TooltipClose),L.attr("aria-expanded",!0),N.attr("data-tooltip-show",!0))};
275E.prototype.handleHdd02TooltipClose=function(L){var N=L.type,b=l(L.target),r=L.relatedTarget||document.avtiveElement,G=b.closest(this.selector.hdd02TooltipContainer),P=G.find(this.selector.hdd02TooltipShow),Z=G.find(this.selector.hdd02TooltipHide);if("focusout"!==N||!l(r).closest(this.selector.hdd02TooltipContainer).target.length)if("keydown"!==N||L.keyCode===W.ESC)G.off("mouseleave",this.handler.handleHdd02TooltipClose),G.off("focusout",this.handler.handleHdd02TooltipClose),Z.off("click",this.handler.handleHdd02TooltipClose),
276l(document).off("keydown",this.handler.handleHdd02TooltipClose),"focusout"!==N&&b.target[0].matches(this.selector.hdd02TooltipHide)&&(this.focusTargetEl=Z.target[0],P.focus()),P.attr("aria-expanded",!1),G.attr("data-tooltip-show",!1)};E.prototype.resize=function(){this.stateColor&&this.sameHeight(this.el.sameColorTitle);this.sameHeight(this.el.same);null===this.showMessageEl||this.careMotion||(this.showMessageEl.finish(),this.el.offsetMessage.target.length&&this.el.offsetMessage.finish().css({paddingBottom:this.showMessageEl.height()+
277parseFloat(this.showMessageEl.css("margin-top"))+"px"}))};E.prototype.sameHeight=function(L){var N=window.sg.components.ProductDetailKvNew;if(!(0>=L.target.length||this.stateWide)){var b=Math.round(L.target[0].getBoundingClientRect().top),r=0,G=0;L.css({height:""});L.target.forEach(function(P,Z){var d=P.getBoundingClientRect(),M=Math.round(d.top);l(P).eq(0).css({height:d.height+"px"});0!==Z&&M!==b&&(l(L.target.slice(Z-G,Z)).css({height:r+"px"}),b=M,G=r=0);d.height>r&&(r=d.height);G++});1<G&&l(L.target.slice(L.target.length-
278G)).css({height:r+"px"});N&&N.callResize&&N.callResize()}};E.prototype.handleOptionBoxClick=function(L){this.el.section.hasClass("off-change")?this.changeBeforChecked=this.el.section.target[0].querySelector(this.selector.optionItem+" input
278:checked"):(L=l(L.currentTarget).closest(this.selector.optionItem).target[0],this.showMessage(L))};E.prototype.handleOptionChange=function(L){null!==this.changeBeforChecked?(this.changeBeforChecked.checked=!0,this.changeBeforChecked=null):this.changeSelect(L.target)};
279E.prototype.handleOptionButtonClick=function(L){this.changeSelect(L.target)};E.prototype.triggerChange=function(L){this.changeBeforChecked=null;L.checked=!0;this.showMessage(l(L).closest(".pd-select-option__item").target[0],!1,!0);this.changeSelect(L)};E.prototype.changeSelect=function(L){L=l(L).closest(".pd-select-option__item");L.hasClass("is-disabled")||(this.el.section.find(".pd-select-option__item").removeClass("selected"),L.addClass("selected"))};E.prototype.showMessage=function(L,N,b){N=void 0===
280N?!1:N;b=void 0===b?!1:b;var r=window.sg.components.ProductDetailKvNew;L=l(L);var G=L.find(this.selector.radio),P=this.el.section.find(this.selector.message),Z=L.closest(this.selector.optionWrap),d=L.find(this.selector.disclaimer);this.el.offsetMessage=Z;Z=0;l(".hdd02-buying-tool .pd-select-option .pd-select-option__alert-message, .hdd02-buying-tool .pd-select-option .pd-select-option__item-disclaimer, .hdd02-buying-tool .pd-select-option .pd-select-option__item-info").target.forEach(function(M){"block"===
281M.style.display&&(M=l(M).closest(".hdd02-buying-tool .pd-select-option").target[0],E.instances.has(M)&&E.instances.get(M).hideMessage())});0<P.target.length&&(G.target[0].disabled||"true"===G.attr("aria-disabled")||N)&&(this.showMessageEl=P,Z=this.showAlertMessage(P,G.attr("aria-label")));0===Z&&0<d.target.length&&(this.showMessageEl=d,Z=this.showDisclaimer(d));this.careMotion||this.el.offsetMessage.finish().animate({paddingBottom:Z+"px"},600,function(){r&&r.resize&&r.resize()});b||0<L.find("input.option-result-focus, button.option-result-focus").target.length&&
282r&&r.optionClose&&r.optionClose(this.el.section.target[0].nextElementSibling.querySelector(".option-result__close"))};E.prototype.showAlertMessage=function(L,N){L.find("span").text(N);L.finish().css({display:"block",opacity:0}
282);N=L.height();L.finish().css({height:N+"px"});L.animate({opacity:1},600,function(){L.css({opacity:1,height:"",top:""})});return N+parseFloat(L.css("margin-top"))};E.prototype.showDisclaimer=function(L){L.finish().css({display:"block",opacity:0});var N=L.height();this.careMotion?
283(L.css({height:0}),L.animate({opacity:1,height:N+"px"},200,function(){L.css({opacity:1,height:""})})):(L.css({}),L.animate({height:N+"px",opacity:1},200,function(){L.css({opacity:1,height:"",top:""})}));return N+parseFloat(L.css("margin-top"))};E.prototype.hideMessage=function(){var L=this;0<this.el.offsetMessage.target.length&&""===this.el.offsetMessage.target[0].style.paddingBottom&&!this.careMotion||(this.el.section.find(this.selector.message+", "+this.selector.disclaimer).target.forEach(function(N){if("block"===
284N.style.display){var b=l(N);L.careMotion?b.finish().animate({opacity:"0",height:"0"},600,function(){N.style.display="";N.style.height=""}):(b.finish().css({}),b.animate({opacity:"0"},600,function(){b.attr("style","")}));L.showMessageEl=null}}),this.careMotion||this.el.offsetMessage.finish().animate({paddingBottom:"0px"},600))};E.prototype.handlePdTooltipEvent=function(L){var N=L.currentTarget,b=N.closest(".pd-select-option__tooltip"),r=b.querySelector(".pd-select-option__tooltip__message"),G=b.querySelector(".pd-select-option__tooltip__close"),
285P=function(){b.classList.remove("is-active");b.classList.remove("is-click");r.setAttribute("tabindex",-1);document.removeEventListener("click",Z);G.removeEventListener("click",Z)},Z=function(d){("click"===d.type&&!N.contains(d.target)&&!r.contains(d.target)||"click"===d.type&&G.contains(d.target))&&P()};b.classList.contains("is-active")?P():(b.classList.add("is-click"),b.classList.add("is-active"),r.setAttribute("tabindex",0),u(G,"click",Z),u(document,"click",Z));L.stopPropagation()};E.prototype.handleViewMoreToggle=
286function(L){var N=this,b=l(L.currentTarget);L=b.find(".pd-select-option__view-more-text");var r=b.attr("data-text-open"),G=b.attr("data-text-close"),P=this.el.section.find(this.selector.viewMoreItem).target.slice(3),Z=function(){b.attr("data-is-animation")&&window.requestAnimationFrame(Z)};"true"===b.attr("aria-expanded")?("desktop"===g.getCurrentDevice()&&(l(P[0]).off("transitionstart").on("transitionstart",function(){b.attr("data-is-animation",!0);var d=document.querySelector("body").scrollLeft,
287M=window.scrollY+N.el.section.target[0].getBoundingClientRect().top,t=l(".pdd01-anchor-nav-v2--fixed").height()||0;window.scrollTo(d,M-t+10,"smooth");window.requestAnimationFrame(Z)}),l(P[P.length-1]).off("transitionend").on("transitionend",function(){b.removeAttr("data-is-animation");window.dispatchEvent(new Event("resize"))})),P.forEach(function(d){var M=l(d);M.addClass("pd-select-option__view-more--show");M.slideUp(400,function(){M.removeClass("pd-select-option__view-more--show");d.style=""})}),
288L.text(r),b.attr("aria-expanded",!1)):(l(P[0]).off("transitionstart"),l(P[P.length-1]).off("transitionend"),P.forEach(function(d){d=l(d);d.find(".image").target.forEach(function(M){v.forceLoad(M)});d.addClass("pd-select-option__view-more--show");d.slideDown(400,function(){})}),L.text(G),b.attr("aria-expanded",!0))};E.prototype.handleShowPdPopup=function(L){L=L.currentTarget;var N=l(L).attr(this.selector.dataTargetPopup),b=window.sg.components.ProductDetailKvNew;switch(N){case "mordernType":case "beveledType":b&&
289b.openBezelPopup&&b.openBezelPopup(L)}};E.prototype.handleClickCounter=function(L){var N=l(L.currentTarget).closest(".pd-select-option__counter").find(".pd-select-option__counter--number"),b=parseInt(N.target[0].value);b=L.currentTarget.classList.contains("icon-minus")?1<b?--b:1:999>b?++b:999;N.attr("value",b);N.target[0].value=b};E.prototype.handleInputCounterNum=function(L){L.target.setAttribute("value",L.target.value)};E.prototype.handleComboOffer=function(L){var N=l(L.target),b=N.closest(this.selector.offerChild),
290r=b.find(".hidden"),G=JSON.parse(r.target[0].dataset.globalText),P=N;"pdOfferToggle"!==L.target.getAttribute("data-js-action")&&(P=N.closest(this.selector.offerChildToogleButton));b.hasClass("open")?(b.removeClass("open"),P.attr("aria-expanded","fal
290se"),r.text(G.Expand)):(l(this.selector.offerChild).removeClass("open"),l(this.selector.offerChildToogleButton).attr("aria-expanded","false"),l(this.selector.offerChildToogleButton).find(".hidden").text(G.Expand),b.addClass("open"),P.attr("aria-expanded",
291"true"),v.setLazyLoad(),r.text(G.Collapse))};E.prototype.bindPdTooltipEvent=function(){this.el.tooltipCTA=this.el.section.find(this.selector.tooltipCTA);if(0<this.el.tooltipCTA.target.length)this.el.tooltipCTA.off("click",this.handler.handlePdTooltipEvent).on("click",this.handler.handlePdTooltipEvent)};E.prototype.bindComboOfferEvent=function(){if(this.el.section.find(this.selector.offerChild).target.length)this.el.section.find(this.selector.offerChildToogleButton).off("click",this.handler.handleComboOffer).on("click",
292this.handler.handleComboOffer)};E.prototype.bindChipSelectEvent=function(){var L=this;this.el.section.find(".pd-select-option__list--color-chip .pd-option-selector input").target.forEach(function(N){N.addEventListener("change",function(){L.el.section.find(".pd-select-option__color-name span").target[0].innerText=N.closest(".pd-option-selector").querySelector(".pd-option-selector__label .hidden").innerText})})};E.prototype.bindAddOnProductEvent=function(){var L=this.el.section.find(this.selector.addonSummaryWrap);
293if(L.target.length){var N=L.find(this.selector.addonSummaryCTA);N.off("click").on("click",function(){L.hasClass("open")?(L.removeClass("open"),N.attr("aria-expanded","false")):(L.addClass("open"),N.attr("aria-expanded","true"))})}};E.prototype.toggleVDAddOnViewMoreCTA=function(L){L=l(L);L.find(".add-on-product-list-wrap--vd").target.length&&L.find(this.selector.viewMoreCTA).eq(0).trigger("click")};E.prototype.viewMoreVDAddOn=function(){this.el.section.find(".add-on-product-list-wrap--vd").target.length&&
294this.el.section.find(this.selector.viewMoreCTA).eq(0).trigger("click")};var T=function(){R(document.querySelector(".hdd02-pdp-header__buying-tool"));z();l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)||new E(L)})},R=function(L){L instanceof HTMLElement&&(U=L.querySelector('[data-target-popup\x3d"tradeInLearnMorePopup"]'),B=L.querySelector('[data-target-popup\x3d"hubbleCareinfoPopup"]'),w=L.querySelector('[data-target-popup\x3d"upgradeLearnMorePopup"]'),e=L.querySelector('[data-target-popup\x3d"manufacturerInfoPopup"]'),
295p=L.querySelector('[data-target-popup\x3d"cancelReturnPolicyPopup"]'),k=L.querySelector('[data-target-popup\x3d"warrantyPolicyPopup"]'),A=L.querySelector('[data-target-popup\x3d"leasingLearnmorePopup"]'),ca=L.querySelectorAll(".pd-delivery-pickup__button .cta, .pd-delivery-pickup__edit-button.cta"))},z=function(){K.tradeInLearnMorePopupBtnEl&&(n(U,"click"),K.tradeInLearnMorePopupBtnEl=!1);K.hubbleCareinfoPopupBtnEl&&(n(B,"click"),K.hubbleCareinfoPopupBtnEl=!1);K.upgradeLearnMorePopupBtnEl&&(n(w,"click"),
296K.upgradeLearnMorePopupBtnEl=!1);K.manufacturerInfoPopupBtnEl&&(n(e,"click"),K.manufacturerInfoPopupBtnEl=!1);K.cancelReturnPolicyPopupBtnEl&&(n(p,"click"),K.cancelReturnPolicyPopupBtnEl=!1);K.warrantyPolicyPopupBtnEl&&(n(k,"click"),K.warrantyPolicyPopupBtnEl=!1);K.leasingLearnmorePopupBtnEl&&(n(A,"click"),K.leasingLearnmorePopupBtnEl=!1);R(document.querySelector(".hdd02-pdp-header__buying-tool"));U&&(u(U,"click",function(L){na(L.target.dataset.targetPopup)}),K.tradeInLearnMorePopupBtnEl=!0);B&&(u(B,
297"click",function(L){na(L.target.dataset.targetPopup)}),K.hubbleCareinfoPopupBtnEl=!0);w&&(u(w,"click",function(L){na(L.target.dataset.targetPopup)}),K.upgradeLearnMorePopupBtnEl=!0);e&&(u(e,"click",function(L){na(L.target.dataset.targetPopup)}),K.manufacturerInfoPopupBtnEl=!0);p&&(u(p,"click",function(L){na(L.target.dataset.targetPopup)}),K.cancelReturnPolicyPopupBtnEl=!0);k&&(u(k,"click",function(L){na(L.target.dataset.targetPopup)}),K.warrantyPolicyPopupBtnEl=!0);A&&(u(A,"click",function(L){na(L.target.dataset.targetPopup)}),
298K.leasingLearnmorePopupBtnEl=!0);ca&&ca.forEach(function(L){u(L,"click",function(N){0===l(N.currentTarget).closest(".pd-delivery-pickup__item").index()&&oa(document.querySelector(".pdd23-edd-popup"),N.currentTarget);N.preventDefault()})})},fa=function(){var L=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");g.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&g.removeMobileFocusLoop();null!==D&&(l(D).focus(),D=null);L.hide();L.find(".add-on-popup__close").off("click");
299L.off("keydown",va);L.find(".swiper-button-prev").removeAttr("tabindex");L.find(".swiper-button-next").removeAttr("tabindex");ra();l(window).off("resize",ra)},va=function(L){var N=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");if(L.keyCode===H.keyCode.TAB_KEY){var b=1<N.find(".swiper-slide").target.length?N.find(".swiper-button-prev").hasClass("swiper-button-disabled")?N.find(".swiper-button-next").target[0]:N.find('a, button, input
299:not([type\x3d"hidden"]), textarea').target[0]:N.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];
300if(!1===L.shiftKey&&N.find(".add-on-popup__close").target[0]===document.activeElement)L.preventDefault(),b.focus();else if(!0===L.shiftKey&&b===document.activeElement||!0===L.shiftKey&&N.target[0]===document.activeElement)L.preventDefault(),N.find(".add-on-popup__close").focus()}},ra=function(){var L=l(".hdd02-pdp-header").find(".add-on__layer-learn-more"),N=document.documentElement.clientHeight,b=L.find(".add-on-popup__inner"),r=L.find(".scrollbar"),G=L.find(".scrollbar__wrap");"block"===L.target[0].style.display?
301(F.MOBILE>=g.getViewPort().width?(G=G.target[0].getBoundingClientRect(),N=parseInt(N-G.top),b.css({"min-height":""}),r.css({height:N+"px"})):N<=b.target[0].getBoundingClientRect().height?(b.css({"min-height":N+"px",height:N+"px"}),b=b.target[0].getBoundingClientRect(),N=G.target[0].getBoundingClientRect(),b=parseInt(b.height-N.top),r.css({height:b+"px"})):(b.css({"min-height":"",height:""}),r.css({height:""})),setTimeout(function(){x.resize(r.target[0])},300)):(b.css({"min-height":"",height:""}),
302r.css({height:""}))},oa=function(L,N){N&&N.closest(".pd-delivery-pickup__item")&&(h=N.closest(".pd-delivery-pickup__item"));C=l(L);l(window).off("resize",da).on("resize",da)},da=function(){var L=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__wrap").clientHeight,N=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__contents").scrollHeight;L<N?document.querySelector(".pdd23-edd-popup").querySelector(".layer-popup__inner").classList.add("is-overflow"):document.querySelector(".pdd23-edd-popup").querySelector(".layer-popup__inner").classList.remove("is-overflow")},
303na=function(L){window.sg.components[L].showPopup()};E.instances=new WeakMap;window.sg.components.PDbuyingToolNew={init:T,reInit:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)?E.instances.get(L).reInit():new E(L)})},showMessage:function(L){var N=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];E.instances.has(N)&&E.instances.get(N).showMessage(L,!0)},bindShowPdPopupEvent:z,bindPdTooltipEvent:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)&&
304E.instances.get(L).bindPdTooltipEvent()})},bindComboOfferEvent:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)&&E.instances.get(L).bindComboOfferEvent()})},openAddOnLearnMore:function(L){var N=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");L&&(D=L);g.hiddenScroll();N.show();v.setLazyLoad();N.on("keydown",va);N.find(".add-on-popup__close").off("click").on("click",fa);if(L=N.find(".basic-swiper").target[0])aa.slideUpdate(L),aa.slideReInit(L);
3051<N.find(".swiper-slide").target.length?L=N.find(".swiper-button-next").target[0]:(N.find(".swiper-button-prev").attr("tabindex","-1"),N.find(".swiper-button-next").attr("tabindex","-1"),L=N.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);L.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&g.setMobileFocusLoop(N.target[0]);ra();l(window).off("resize",ra).on("resize",ra)},toggleVDAddOnViewMoreCTA:function(L){var N=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];
306E.instances.has(N)&&E.instances.get(N).toggleVDAddOnViewMoreCTA(L)},viewMoreVDAddOn:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)&&E.instances.get(L).viewMoreVDAddOn()})},triggerChange:function(L){var N=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];E.instances.has(N)&&E.instances.get(N).triggerChange(L)},openPopup:oa,closePopup:function(L){0<l(h).target.length&&(!1===L?(l(h).find(".pd-delivery-pickup__content").show(),l(h).find(".pd-delivery-pickup__content-summarized").hide(),
307D=h.querySelector(".pd-delivery-pickup__button .cta")):(l(h).find(".pd-delivery-pickup__content").hide(),l(h).find(".pd-delivery-pickup__content-summarized").show(),D=h.querySelector(".pd-delivery-pickup__edit-button.cta")));l(D).focus();D=null;null!==C&&(C.hide(),C=null)}};l.ready(T)})();
308(function(){var l=window.sg.common.$q,g=window.sg.common.utils,H=window.sg.components.PDbuyingToolNew,u={section:".hdd02-pdp-header",productGallery:".hdd02-gallery",PDbuyingToolNew:".hdd02-buying-tool .pd-select-option"},n=function(F){this.selector={galleryArea:".hdd02-pdp-header__gallery-area",gallery:".hdd02-pdp-header__gallery",info:".hdd02-product-info",buyingTool:".hdd02-pdp-header__buying-tool",option:".option-result",optionCloseBtn:".option-result .option-result__close"};this.el={section:l(F),
309window:l(window),html:l("html")};this.class={headerKVFixedClass:"hdd02-pdp-header--fixed",headerKVUxV2Class:"hdd02-pdp-header--ux-v2"};this.isUsEppDiscount=null;this.statePc="desktop"===g.getCurrentDevice();this.resizeTimer=null;this.scrollTimer=0;this.scrollOffGallery=!1;this.popupData={};this.isShopApp=null;this.pdType="default";this.galleryRect={height:null,start:null,padding:null,attach:null,end:null,mode:null,resizeTimer:null};this.handler={closeBezelPopup:this.closeBezelPopup.bind(this),scroll:this.scroll.bind(this),
310resize:this.resize.bind(this)};n.instances.set(F,this);this.init()};n.prototype.init=function(){this.setElements();this.bindEvents();this.el.section.hasClass(this.class.headerKVUxV2Class)&&(this.pdType="uxv2");this.resize()};n.prototype.reInit=function(){this.init()};n.prototype.setElements=function(){this.el.galleryArea=this.el.section.find(this.selector.galleryArea);this.el.gallery=this.el.section.find(this.selector.gallery);this.el.buyingTool=this.el.section.find(this.selector.buyingTool);this.el.info=
311this.el.section.find(this.selector.info);this.el.breadcrumb=l(".nvd02-breadcrumb");(this.isShopApp=!(!window.EcommAndroidClient&&!window.flutter_inappwebview)||-1<navigator.userAgent.toLowerCase().indexOf("samsung-mobile-app"))&&
311!this.el.section.hasClass("hdd02-pdp-header--is-shopapp")&&this.el.section.addClass("hdd02-pdp-header--is-shopapp")};n.prototype.bindEvents=function(){this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("resize",this.handler.resize).on("resize",
312this.handler.resize)};n.prototype.scroll=function(){var F=(new Date).getTime();F>this.scrollTimer&&(this.scrollTimer=F+500,this.galleryRect.mode=null,this.setGalleryRect());this.setGalleryTop()};n.prototype.resize=function(){var F=this;this.statePc="desktop"===g.getCurrentDevice();this.galleryRect.mode=null;this.setGalleryRect();this.setGalleryTop();clearTimeout(this.resizeTimer);this.resizeTimer=null;this.resizeTimer=setTimeout(function(){F.galleryRect.mode=null;F.setGalleryRect();F.setGalleryTop()},
313400)};n.prototype.setGalleryRect=function(){var F=document.body.scrollTop||document.documentElement.scrollTop;this.galleryRect.height=this.el.gallery.height();this.statePc?this.el.buyingTool.css({minHeight:this.galleryRect.height+"px"}):this.el.buyingTool.css({minHeight:""});var W=0;F=this.el.section.offset().top+F;var aa=0,x=this.el.buyingTool.find(".hdd02-buying-tool");if(0<x.target.length){var U=x.target[0].lastElementChild;["paddingBottom","marginBottom"].forEach(function(e){aa+=parseInt(window.getComputedStyle(U)[e])})}x=
314l(".pdd01-anchor-nav-v2__menu-inner");var B=l(".pdd39-anchor-nav"),w=0;window.sg.components.pdHeaderNavigationV2&&0<x.target.length?w=x.offset().height:window.sg.components.Pdd39AnchorNav&&0<B.target.length?w=parseFloat(getComputedStyle(B.target[0]).getPropertyValue("--pdd39-fixed-header-height").trim()):this.galleryRect.padding=0;W+=w;this.galleryRect.padding=w;this.galleryRect.start=F-W;this.galleryRect.attach=this.el.section.offset().height-this.el.galleryArea.offset().height-aa;this.galleryRect.end=
315F+this.galleryRect.attach-W};n.prototype.scrollGalleryOff=function(F){F?(this.setGalleryTop(0),this.scrollOffGallery=F):(this.scrollOffGallery=F,this.resize())};n.prototype.setGalleryTop=function(F){F=void 0===F?document.body.scrollTop||document.documentElement.scrollTop:F;if(!this.scrollOffGallery){var W=this.el.buyingTool.height()||0,aa=this.el.info.height()||0;W+=aa;this.el.galleryArea.height()>W||("default"===this.pdType?this.statePc?F>this.galleryRect.end?"end"!==this.galleryRect.mode&&(this.setGalleryRect(),
316this.el.section.addClass(this.class.headerKVFixedClass),this.el.galleryArea.css({position:"absolute",top:this.galleryRect.attach-parseInt(document.body.style.top||0)+"px"}),this.galleryRect.mode="end"):F>this.galleryRect.start?"start"!==this.galleryRect.mode&&(this.el.section.addClass(this.class.headerKVFixedClass),this.el.galleryArea.css({position:"fixed",top:this.galleryRect.padding-1+"px"}),this.galleryRect.mode="start"):"none"!==this.galleryRect.mode&&(this.setGalleryRect(),this.el.section.removeClass(this.class.headerKVFixedClass),
317this.el.galleryArea.css({position:"",top:""}),this.galleryRect.mode="none"):"mobile"!==this.galleryRect.mode&&(this.el.section.removeClass(this.class.headerKVFixedClass),this.el.galleryArea.css({position:"",top:""}),this.galleryRect.mode="mobile"):"uxv2"===this.pdType&&(this.statePc?(this.el.galleryArea.target[0].style.setProperty("--hdd02-fixed-header-top",this.galleryRect.padding+"px"),F>this.galleryRect.start?"start"!==this.galleryRect.mode&&(this.el.section.addClass(this.class.headerKVFixedClass),
318this.galleryRect.mode="start"):"none"!==this.galleryRect.mode&&(this.setGalleryRect(),this.el.section.removeClass(this.class.headerKVFixedClass),this.galleryRect.mode="none")):"mobile"!==this.galleryRect.mode&&(this.el.section.removeClass(this.class.headerKVFixedClass),this.el.galleryArea.target[0].style.setProperty("--hdd02-fixed-header-top",0),this.galleryRect.mode="mobile")))}};n.prototype.optionClose=function(F){var W=this,aa=l(F).closest(this.selector.option);if("none"!==aa.target[0].style.display){F=
319l(aa.target[0].previousElementSibling);if(F.hasClass("pd-select-option")){F=F.find('input.option-result-focus, .text-field input[type\x3d"text"]');var x=F.attr("type");"radio"===x?!0!==F.target[0].checked&&(F.target[0].checked=!0,F.trigger("change")):"text"===x&&(F.target[0].value="",F.focus())}aa.stop().slideUp(600,function(){aa.hide();W.resize()})}};n.prototype.openBezelPopup=function(F){this.popupData={btn:F,popup:l("#"+F.dataset.targetPopup)};this.popupData.popup.css({display:"block"});this.popupData.popup.setLayerFocus(".layer-popup__close",
320".layer-popup__close",!1);g.setMobileFocusLoop(this.popupData.popup.target[0]);g.hiddenScroll();window.sg.common.scrollbar.resize(this.popupData.popup.find(".scrollbar").target[0]);this.popupData.popup.find(".layer-popup__close").off("click",this.handler.closeBezelPopup).on("click",this.handler.closeBezelPopup);null===window.sg.common.layerPopupMaxHeight.init(this.popupData.popup.target[0])&&window.sg.common.layerPopupMaxHeight.setMax(this.popupData.popup.target[0])};n.prototype.closeBezelPopup=function(){this.popupData.popup.css({display:""});
321this.popupData.popup.offLayerFocus();g.removeMobileFocusLoop();g.visibleScroll();this.popupData.btn.focus();this.popupData={btn:null,popup:null}};n.callResize=function(){l(u.ProductDetailKvNew).target.forEach(function(F){n.instances.has(F)&&n.instances.get(F).resize()})};var v=function(){l(u.section).target.forEach(function(F){n.instances.has(F)||new n(F)})};n.instances=new WeakMap;window.sg.components.ProductDetailKvNew={init:v,reInit:function(){l(u.section).target.forEach(function(F){n.instances.has(F)?
322n.instances.get(F).reInit():new n(F)});H&&H.reInit();l(u.section).find(".text-field").target.forEach(function(F){window.sg.common.textField.init(F)});l(u.section).find(".text-field-v2").target.forEach(function(F){window.sg.common.textFieldv2.reInit(F)})},resize:function(){l(u.ProductDetailKvNew).target.forEach(function(F){n.instances.has(F)&&n.instances.get(F).resize()})},showMessage:function(F){H&&H.showMessage(F,!0)},productFixed:function(){var F=l(u.section);n.addClass("product-detail-kv--fixed");
323n.instances.get(F.target[0]).setGalleryTop();l(u.productGallery).css({position:"fixed",top:0})},scrollGalleryOff:function(F,W){n.instances.has(F)&&n.instances.get(F).scrollGalleryOff(W)},optionClose:function(F){var W=F&&l(F).closest(u.section).target[0];n.instances.has(W)&&n.instances.get(W).optionClose(F)},triggerChange:function(F){H&&H.triggerChange(F)},scrollGo:function(){},init360:function(){window.sg.common.image360.initAll()},openBezelPopup:function(F){var W=l(F).closest(u.section).target[0];
324n.instances.has(W)&&n.instances.get(W).openBezelPopup(F)}};l.load(v)})();
325(function(){var l=window.sg.common.$q,g=window.sg.common.utils,H=window.sg.common.swiperManager,u=l(window),n=window.sg.common.scrollbar,v=window.sg.common.lazyLoad,F=window.sg.common.video,W=window.sg.common.utils.triggerEvent,aa=window.sg.common.image360,x=function(K){var D=K;"undefined"!==typeof Granite&&(D=Granite.I18n.get(K));return D},U="undefined"!==typeof digitalData&&digitalData&&digitalData.page&&digitalData.page.pageInfo&&digitalData.page.pageInfo.pageTrack||"",B=function(K){this.el={popup:l(K),
326window:l(window)};this.selector={title:".layer-popup__title",imageContainer:".hdd02-gallery__popup-vertical-image",videoContainer:".hdd02-gallery__popup-vertical-video",thumbnailWrap:".hdd02-gallery__popup-thumbnail",thumbnailImageItemList:".hdd02-gallery__popup-image-item",thumbnailImageItemLink:".hdd02-gallery__popup-image-link",thumbnailVideoItemList:".hdd02-gallery__popup-video-item",imageContentList:".image-content",zoomImageContentList:".zoom-image",snackbarList:".snackbar",videoContentList:".video-content",
327popupImage:".hdd02-gallery__popup-image",popupImageMoreCta:".hdd02-gallery__popup-image-cta",scrollbar:".scrollbar",contentContainer:".hdd02-gallery__popup-vertical-content",controlBtnContainer:".hdd02-gallery__popup-control",controlListContainer:".hdd02-gallery__popup-control-list",changeViewTargetList:'[data-js-action\x3d"changePcGalleryPopup"]',imageControlBtnList:"[data-image-control]",zoomInBtn:'[data-image-control\x3d"zoomIn"]',zoomOutBtn:'[data-image-control\x3d"zoomOut"]',moveUpBtn:'[data-image-control\x3d"up"]',
328moveDownBtn:'[data-image-control\x3d"down"]',moveLeftBtn:'[data-image-control\x3d"left"]',moveRightBtn:'[data-image-control\x3d"right"]'};this.classes={controlListContainerShow:"hdd02-gallery__popup-control-list--show"};this.popupType={image:"image",video:"video"};this.handler={handleImageControlBtnClick:this.handleImageControlBtnClick.bind(this),handleGalleryImagePointerDown:this.handleGalleryImagePointerDown.bind(this),handleGalleryImagePointerMove:this.handleGalleryImagePointerMove.bind(this),
329handleGalleryImagePointerUp:this.handleGalleryImagePointerUp.bind(this),handleViewMoreClick:this.handleViewMoreClick.bind(this),handleChangeViewTargetClick:this.handleChangeViewTargetClick.bind(this)};this.isRtl=g.isRtl();this.activeVideoContent=this.currentZoomImgContainer=this.activeImageContent=this.activeVideoThumbnail=this.activeImageThumbnail=null;this.isDragging=!1;this.moveThreshold=10;this.clickTimer=this.clickZoomXY=this.dragZoomXY=null;this.minZoomStep=1;this.maxZoomStep=3;this.currentZoomStep=
330this.prevZoomStep=this.minZoomStep;K&&B.instances.set(K,this);this.init()};B.prototype.init=function(){this.setElements();this.bindEvents()};B.prototype.setElements=function(){this.el.title=this.el.popup.find(this.selector.title);this.el.imageContainer=this.el.popup.find(this.selector.imageContainer);this.el.videoContainer=this.el.popup.find(this.selector.videoContainer);this.el.thumbnailWrap=this.el.popup.find(this.selector.thumbnailWrap);this.el.thumbnailImageItemList=this.el.popup.find(this.selector.thumbnailImageItemList);
331this.el.thumbnailVideoItemList=this.el.popup.find(this.selector.thumbnailVideoItemList);this.el.imageContentList=this.el.popup.find(this.selector.imageContentList);this.el.zoomImageContentList=this.el.popup.find(this.selector.zoomImageContentList);this.el.snackbarList=this.el.popup.find(this.selector.snackbarList);this.el.videoContentList=this.el.popup.find(this.selector.videoContentList);this.el.popupImage=this.el.popup.find(this.selector.popupImage);this.el.popupImageMoreCta=this.el.popup.find(this.selector.popupImageMoreCta);
332this.el.scrollbar=this.el.popup.find(this.selector.scrollbar);this.el.contentContainer=this.el.popup.find(this.selector.contentContainer);this.el.controlBtnContainer=this.el.popup.find(this.selector.controlBtnContainer);this.el.controlListContainer=this.el.popup.find(this.selector.controlListContainer);this.el.changeViewTargetList=this.el.popup.find(this.selector.changeViewTargetList);this.el.imageControlBtnList=this.el.popup.find(this.selector.imageControlBtnList);this.el.zoomInBtn=this.el.popup.find(this.selector.zoomInBtn);
333this.el.zoomOutBtn=this.el.popup.find(this.selector.zoomOutBtn);this.el.moveUpBtn=this.el.popup.find(this.selector.moveUpBtn);this.el.moveDownBtn=this.el.popup.find(this.selector.moveDownBtn);this.el.moveLeftBtn=this.el.popup.find(this.selector.moveLeftBtn);this.el.moveRightBtn=this.el.popup.find(this.selector.moveRightBtn)};B.prototype.bindEvents=function(){this.el.popupImageMoreCta.off("
333click",this.handler.handleViewMoreClick).on("click",this.handler.handleViewMoreClick);this.el.changeViewTargetList.off("click",
334this.handler.handleChangeViewTargetClick).on("click",this.handler.handleChangeViewTargetClick);this.el.imageControlBtnList.off("click",this.handler.handleImageControlBtnClick).on("click",this.handler.handleImageControlBtnClick);this.el.imageContentList.off("touchstart",this.handler.handleGalleryImagePointerDown).on("touchstart",this.handler.handleGalleryImagePointerDown);this.el.imageContentList.off("mousedown",this.handler.handleGalleryImagePointerDown).on("mousedown",this.handler.handleGalleryImagePointerDown)};
335B.prototype.open=function(K,D){this.el.popup.setLayerFocus(".layer-popup",".hdd02-gallery__popup-close");this.setScrollbar();this.changeCurrentView(K,D);this.el.popup.addClass("hdd02-popup-open");g.setMobileFocusLoop(this.el.popup.target[0]);var h=(K=this.el.title.target[0])||g.getFirstFocusableEl(this.el.popup.target[0]);K&&K.setAttribute("tabindex","-1");setTimeout(function(){h&&h.focus()},20)};B.prototype.close=function(){this.isDragging||(this.el.popup.offLayerFocus(),this.stopVideo(),this.el.popup.removeClass("hdd02-popup-open"),
336g.removeMobileFocusLoop())};B.prototype.playVideo=function(){F.init(this.currentVideoEl)};B.prototype.stopVideo=function(){this.currentVideoEl&&F.dispose(this.currentVideoEl)};B.prototype.changeCurrentView=function(K,D){K=void 0===K?this.popupType.image:K;D=void 0===D?0:D;var h=this.el.thumbnailWrap.attr("data-text-selected")||"";this.stopVideo();switch(K){case this.popupType.image:this.el.thumbnailVideoItemList.removeClass("hdd02-gallery__popup-video-item--on");this.el.thumbnailVideoItemList.find("a, button").removeAttr("title");
337this.activeImageThumbnail&&(this.activeImageThumbnail.removeClass("hdd02-gallery__popup-image-item--on"),this.activeImageThumbnail.find("a, button").removeAttr("title"));this.activeImageContent&&this.activeImageContent.removeClass("image-content--show");this.activeImageThumbnail=this.el.thumbnailImageItemList.eq(D);this.activeImageContent=this.el.imageContentList.eq(D);this.activeImageThumbnail.addClass("hdd02-gallery__popup-image-item--on");this.activeImageThumbnail.find("a, button").attr("title",
338h);this.activeImageContent.addClass("image-content--show");this.currentImageEl=this.activeImageContent.find(".default-image").target[0];this.currentZoomImgContainer=this.el.zoomImageContentList.target[D];this.currentZoomImg=l(this.currentZoomImgContainer).find(".image img.image__main").target[0];this.currentSnackBar=this.el.snackbarList.target[D];v.setLazyLoadManually(this.currentImageEl);this.handleZoomState("reset");this.el.controlBtnContainer.removeClass("hdd02-gallery__popup-control--hide");this.el.imageContainer.show();
339this.el.videoContainer.hide();break;case this.popupType.video:this.el.thumbnailImageItemList.removeClass("hdd02-gallery__popup-image-item--on"),this.el.thumbnailImageItemList.find("a, button").removeAttr("title"),this.activeVideoThumbnail&&(this.activeVideoThumbnail.removeClass("hdd02-gallery__popup-video-item--on"),this.activeVideoThumbnail.find("a, button").removeAttr("title")),this.activeVideoContent&&this.activeVideoContent.removeClass("video-content--show"),this.activeVideoThumbnail=this.el.thumbnailVideoItemList.eq(D),
340this.activeVideoContent=this.el.videoContentList.eq(D),this.activeVideoThumbnail.addClass("hdd02-gallery__popup-video-item--on"),this.activeVideoThumbnail.find("a, button").attr("title",h),this.activeVideoContent.addClass("video-content--show"),this.currentVideoEl=this.activeVideoContent.find(".video").target[0],v.setLazyLoadManually(this.currentVideoEl),this.playVideo(),this.el.controlBtnContainer.addClass("hdd02-gallery__popup-control--hide"),this.el.imageContainer.hide(),this.el.videoContainer.show()}};
341B.prototype.setScrollbar=function(){this.el.scrollbar.target.forEach(function(K){n.reInit(K)})};B.prototype.setCursorAndSnackBarState=function(){this.currentZoomStep!==this.minZoomStep&&(this.currentZoomStep===this.maxZoomStep?this.currentSnackBar.innerText=x("Click or tap to zoom out"):this.prevZoomStep<this.currentZoomStep?this.currentSnackBar.innerText=x("Click or tap to zoom in"):this.prevZoomStep>this.currentZoomStep&&(this.currentSnackBar.innerText=x("Click or tap to zoom out")))};B.prototype.setControllerState=
342function(){function K(){D.classList.contains("control-hide")&&D.classList.remove(h)}var D=this.el.controlListContainer.target[1],h=this.classes.control
342ListContainerShow;D&&(this.currentZoomStep<=this.maxZoomStep&&this.currentZoomStep>this.minZoomStep?(D.classList.add(h),requestAnimationFrame(function(){D.classList.remove("control-hide")})):(D.addEventListener("transitionend",K,{once:!0}),D.classList.add("control-hide")))};B.prototype.setZoomControlBtnState=function(K){this.currentZoomStep===this.minZoomStep?
343(this.el.zoomInBtn.removeAttr("disabled"),this.el.zoomOutBtn.attr("disabled",""),K&&this.el.zoomInBtn.focus()):this.currentZoomStep===this.maxZoomStep?(this.el.zoomInBtn.attr("disabled",""),this.el.zoomOutBtn.removeAttr("disabled"),K&&this.el.zoomOutBtn.focus()):(this.el.zoomInBtn.removeAttr("disabled"),this.el.zoomOutBtn.removeAttr("disabled"))};B.prototype.resetZoom=function(){this.currentZoomStep=this.prevZoomStep=this.minZoomStep;this.currentZoomImgContainer.style.display="";this.currentImageEl.style.display=
344""};B.prototype.zoomIn=function(){this.prevZoomStep=this.currentZoomStep;this.currentZoomStep++;v.setLazyLoadManually(this.currentZoomImgContainer);this.currentZoomStep>this.minZoomStep&&(this.currentZoomImgContainer.style.display="block",this.currentImageEl.style.display="none")};B.prototype.zoomOut=function(){this.prevZoomStep=this.currentZoomStep;this.currentZoomStep--;this.currentZoomStep===this.minZoomStep&&this.resetZoom()};B.prototype.showZoomXY=function(){null!==this.currentZoomImgContainer&&
345(this.currentZoomImg.style.transform="scale("+(this.currentZoomStep-1)/(this.maxZoomStep-1)+")",this.currentZoomImg.style.marginTop="",this.isRtl?this.currentZoomImg.style.marginRight="":this.currentZoomImg.style.marginLeft="",this.el.moveUpBtn.removeAttr("disabled"),this.el.moveDownBtn.removeAttr("disabled"),this.el.moveLeftBtn.removeAttr("disabled"),this.el.moveRightBtn.removeAttr("disabled"))};B.prototype.moveZoomImg=function(K,D){var h=this.el.contentContainer.target[0].getBoundingClientRect(),
346C=this.currentZoomImg.getBoundingClientRect(),E=Math.abs(parseInt(C.width-h.width));h=Math.abs(parseInt(C.height-h.height));0!==D&&(C=D+parseInt(this.currentZoomImg.style.marginTop||0,0),C=0>D?Math.max(-h,C):Math.min(h,C),C>-h&&C<h&&(this.el.moveUpBtn.removeAttr("disabled"),this.el.moveDownBtn.removeAttr("disabled")),C===h&&(this.el.moveUpBtn.attr("disabled",!0),!this.isDragging&&this.el.moveDownBtn.focus()),C===-h&&(this.el.moveDownBtn.attr("disabled",!0),!this.isDragging&&this.el.moveUpBtn.focus()),
347this.currentZoomImg.style.marginTop=C+"px");0!==K&&(this.isRtl?(D=K+parseInt(this.currentZoomImg.style.marginRight||0,0),D=0>K?Math.max(-E,D):Math.min(E,D),D>-E&&D<E&&(this.el.moveRightBtn.removeAttr("disabled"),this.el.moveLeftBtn.removeAttr("disabled")),D===E&&(this.el.moveRightBtn.attr("disabled",!0),!this.isDragging&&this.el.moveLeftBtn.focus()),D===-E&&(this.el.moveLeftBtn.attr("disabled",!0),!this.isDragging&&this.el.moveRightBtn.focus()),this.currentZoomImg.style.marginRight=D+"px"):(D=K+parseInt(this.currentZoomImg.style.marginLeft||
3480,0),D=0>K?Math.max(-E,D):Math.min(E,D),D>-E&&D<E&&(this.el.moveLeftBtn.removeAttr("disabled"),this.el.moveRightBtn.removeAttr("disabled")),D===E&&(this.el.moveLeftBtn.attr("disabled",!0),!this.isDragging&&this.el.moveRightBtn.focus()),D===-E&&(this.el.moveRightBtn.attr("disabled",!0),!this.isDragging&&this.el.moveLeftBtn.focus()),this.currentZoomImg.style.marginLeft=D+"px"))};B.prototype.handleImageControlBtnClick=function(K){K=K.currentTarget.getAttribute("data-image-control");switch(K){case "zoomIn":case "zoomOut":this.handleZoomState(K);
349break;case "up":case "down":case "left":case "right":this.handleImageMove(K)}};B.prototype.handleGalleryImagePointerDown=function(K){var D=K.clientX||K.touches[0].clientX,h=K.clientY||K.touches[0].clientY;this.isDragging=!0;this.dragZoomXY=[D,h];this.clickZoomXY=[D,h];K.preventDefault();this.el.window.off("touchmove",this.handler.handleGalleryImagePointerMove).on("touchmove",this.handler.handleGalleryImagePointerMove);this.el.window.off("touchend",this.handler.handleGalleryImagePointerUp).on("touchend",
350this.handler.handleGalleryImagePointerUp);this.el.window.off("mousemove",this.handler.handleGalleryImagePointerMove).on("mousemove",this.handler.handleGalleryImagePointerMove);this.el.window.off("mouseup",this.handler.handleGalleryImagePointerUp).on("mouseup",this.handler.handleGalleryImagePointerUp)};B.prototype.handleGalleryImagePointerMove=function(K){var D=K.clientX||K.touches&&K.touches[0].clientX;K=K.clientY||K.touches&&K.touches[0].clientY;null!==this.dragZoomXY&&null!==this.currentZoomImgContainer&&
351"block"===this.currentZoomImgContainer.style.display&&this.moveZoomImg(this.isRtl?this.dragZoomXY[0]-D:D-this.dragZoomXY[0],K-this.dragZoomXY[1]);this.dragZoomXY=[D,K]};B.prototype.handleGalleryImagePointerUp=function(){var K=this;this.moveThreshold>Math.max(Math.abs(this.dragZoomXY[0]-this.clickZoomXY[0]),Math.abs(this.dragZoomXY[1]-this.clickZoomXY[1]))&&(clearTimeout(this.clickTimer),this.clickTimer=null,this.clickTimer=setTimeout(function(){K.handleZoomState()},30));this.el.window.off("touchmove",
352this.handler.handleGalleryImagePointerMove);this.el.window.off("touchend",this.handler.handleGalleryImagePointerUp);this.el.window.off("mousemove",this.handler.handleGalleryImagePointerMove);this.el.window.off("mouseup",this.handler.handleGalleryImagePointerUp);this.clickZoomXY=this.dragZoomXY=null;requestAnimationFrame(function(){K.isDragging=!1})};B.prototype.handleZoomState=function(K){var D=this;"reset"===K?this.resetZoom():"zoomIn"===K?this.zoomIn():"zoomOut"===K?this.zoomOut():this.currentZoomStep===
353this.minZoomStep?this.zoomIn():this.currentZoomStep===this.maxZoomStep?this.zoomOut():this.prevZoomStep<this.currentZoomStep?this.zoomIn():this.prevZoomStep>this.currentZoomStep&&this.zoomOut();this.setCursorAndSnackBarState();this.setControllerState();this.setZoomControlBtnState("reset"!==K);this.currentZoomImg.classList.contains("image--loaded")?this.showZoomXY():this.currentZoomImg.addEventListener("load",function(){D.showZoomXY()})};B.prototype.handleImageMove=function(K){switch(K){case "up":this.moveZoomImg(0,
35450);break;case "down":this.moveZoomImg(0,-50);break;
354case "left":this.moveZoomImg(this.isRtl?-50:50,0);break;case "right":this.moveZoomImg(this.isRtl?50:-50,0)}};B.prototype.handleChangeViewTargetClick=function(K){K=l(K.currentTarget);var D=K.parent();if(K.hasClass("hdd02-gallery__popup-image-link")){var h=this.el.thumbnailImageItemList.target.findIndex(function(C){return C===D.target[0]});this.changeCurrentView(this.popupType.image,h)}K.hasClass("hdd02-gallery__popup-video-link")&&(h=this.el.thumbnailVideoItemList.target.findIndex(function(C){return C===
355D.target[0]}),this.changeCurrentView(this.popupType.video,h))};B.prototype.handleViewMoreClick=function(){var K=this;this.el.popupImage.toggleClass("hdd02-gallery__popup-image--view-more");this.el.popupImage.hasClass("hdd02-gallery__popup-image--view-more")?(this.el.popupImageMoreCta.find("span").text(this.el.popupImageMoreCta.attr("data-less-text")),setTimeout(function(){var D=K.el.popup.find(K.selector.thumbnailImageItemList).eq(10).find(K.selector.thumbnailImageItemLink).target[0];D&&D.focus()},
35650)):this.el.popupImageMoreCta.find("span").text(this.el.popupImageMoreCta.attr("data-more-text"));this.setScrollbar()};var w=function(K){this.el={popup:l(K)};this.selector={videoContentList:".video-content"};K&&w.instances.set(K,this);this.init()};w.prototype.init=function(){this.setElements();this.bindEvents()};w.prototype.setElements=function(){this.el.videoContentList=this.el.popup.find(this.selector.videoContentList)};w.prototype.bindEvents=function(){};w.prototype.playVideo=function(){F.init(this.currentVideoEl)};
357w.prototype.stopVideo=function(){this.currentVideoEl&&F.dispose(this.currentVideoEl)};w.prototype.open=function(K){this.activeVideoContent&&this.activeVideoContent.removeClass("video-content--show");this.activeVideoContent=l(this.el.videoContentList.target[K]);this.activeVideoContent.addClass("video-content--show");this.currentVideoEl=this.activeVideoContent.find(".video").target[0];v.setLazyLoadManually(this.currentVideoEl);this.playVideo();this.el.popup.addClass("hdd02-popup-open");g.setFocusFirstFocusableEl(this.el.popup.target[0])};
358w.prototype.close=function(){this.activeVideoContent&&(this.activeVideoContent.removeClass("video-content--show"),this.activeVideoContent=null);this.stopVideo();this.el.popup.removeClass("hdd02-popup-open")};var e=function(K,D){this.el={popup:l(K),popupCta:D};this.selector={qrCode:".qr-code"};K&&e.instances.set(K,this);this.init()};e.prototype.init=function(){this.setElements();this.bindEvents();this.setAr()};e.prototype.setElements=function(){this.el.arQrCode=this.el.popup.find(this.selector.qrCode)};
359e.prototype.bindEvents=function(){};e.prototype.open=function(){this.isQRtype&&(this.el.popup.addClass("hdd02-popup-open"),g.setFocusFirstFocusableEl(this.el.popup.target[0]))};e.prototype.close=function(){this.el.popup.removeClass("hdd02-popup-open")};e.prototype.setAr=function(){this.isQRtype=!1;/Android/i.test(navigator.userAgent)?this.buildAr("aos"):/iPhone|iPad|iPod/i.test(navigator.userAgent)?this.buildAr("ios"):(this.isQRtype=!0,this.setQrCode())};e.prototype.buildAr=function(K){var D="https:"+
360this.el.popupCta.attr("data-araos-href");"ios"===K?(D="https:"+this.el.popupCta.attr("data-arios-href"),this.el.popupCta.attr("rel","ar"),D+=".usdz"):D="intent://arvr.google.com/scene-viewer/1.0?file\x3d"+D+".glb#Intent;scheme\x3dhttps;package\x3dcom.google.android.googlequicksearchbox;action\x3dandroid.intent.action.VIEW;S.browser_fallback_url\x3dhttps://www.samsung.com;end;";this.el.popupCta.attr("href",D)};e.prototype.setQrCode=function(){var K=window.location.href+"?ar";this.el.arQrCode.find("svg").target.length||
361this.el.arQrCode.append(QRCode({msg:K}))};var p=function(K,D){this.el={popup:l(K),popupCta:D};this.isViewerInit=!1;K&&p.instances.set(K,this);this.init()};p.prototype.init=function(){this.setElements();this.bindEvents()};p.prototype.setElements=function(){this.el.image360=this.el.popup.find(".image-360")};p.prototype.bindEvents=function(){};p.prototype.open=function(){this.isViewerInit||(aa.init(this.el.image360.target[0]),this.isViewerInit=!0);this.el.popup.addClass("hdd02-popup-open");g.setFocusFirstFocusableEl(this.el.popup.target[0])};
362p.prototype.close=function(){this.el.popup.removeClass("hdd02-popup-open")};var k=function(K,D){this.el={popup:l(K),popupCta:D};K&&k.instances.set(K,this);this.init()};k.prototype.init=function(){this.setElements();this.bindEvents()};k.prototype.setElements=function(){};k.prototype.bindEvents=function(){};k.prototype.open=function(){var K=this;this.el.popup.setLayerFocus(".layer-popup",".hdd02-gallery__popup-close");this.el.popup.addClass("hdd02-popup-open");g.setFocusFirstFocusableEl(this.el.popup.target[0]);
363if(null===document.querySelector("script[data-js360]")){var D=document.getElementsByTagName("head")[0],h=document.createElement("link");h.type="text/css";h.rel="stylesheet";h.href="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/css/popup360.css";D.appendChild(h);h=document.createElement("script");h.dataset.js360=!0;D.appendChild(h);h.onload=function(){if(window.imgSeqViewer){var C=new imgSeqViewer("#seqContainer");C.init();var E=spinImageNewData[0],T=spinImageNewData[1],
364R=[],z=[];if(null!=E&&null!=E.unfoldSpinImage)for(var fa=0;fa<E.unfoldSpinImage.length;fa++)R.push(E.unfoldSpinImage[fa].largeImgPath);if(null!=T&&null!=T.foldSpinImage)for(E=0;E<T.foldSpinImage.length;E++)z.push(T.foldSpinImage[E].largeImgPath);0!==R.length&&0!==z.length||l(".btn-changetype").hide();0===R.length?window.componentsGallery360(C,z):window.componentsGallery360(C,R,z)}else K.el.popup.find(".hdd02-gallery__popup-close").trigger("click")};h.src="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/js/popupnew360.js"}else window.imgSeqViewer?
365W(window,"resize"):this.el.popup.find(".hdd02-gallery__popup-close").trigger("click")};k.prototype.close=function(){this.el.popup.offLayerFocus();this.el.popup.removeClass("hdd02-popup-open")};var A=function(K){this.el={section:l(K),focusTarget:null};this.selector={hdd02PdpHeader:".hdd02-pdp-header",swiperContainer:".hdd02-gallery__list",progressIndicator:".progressbar-indicator",mobileArrow:".screen-indicator",imageItemList:".hdd02-gallery__item",pcThumbnailItemList:".hdd02-gallery__thumbnail-item",
366moVideoThumbnailSwiperContainer:".hdd02-gallery__video-content",moVideoThumbnailItemList:".hdd02-gallery__video-item",MoVideoLink:".hdd02-gallery__video-link",layerPopup:".layer-popup",layerPopupContents:".layer-popup__contents",pcGalleryPopup:".hdd02-gallery__popup.type-gallery.type-gallery",moVideoLayerPopup:".hdd02-gallery__layer-popup.type-mo-video",arPopup:".hdd02-gallery__layer-popup.type-ar",popup360:".hdd02-gallery__layer-popup.type-360view",popup360New:".hdd02-gallery__popup.type-360view-new",
367openPcGalleryPopupTarget:'[data-js-action\x3d"openPcGalleryPopup"]',closeGalleryPopupTarget:'[data-js-action\x3d"closeGalleryPopup"]',openMoVideoPopupTarget:'[data-js-action\x3d"openMoVideoPopup"]',closeLayerPopupTarget:'[data-js-action\x3d"closeLayerPopup"]',viewInArBtn:'[data-js-action\x3d"viewInAr"]',viewIn360Btn:'[data-js-action\x3d"viewIn360"]',viewIn360NewBtn:'[data-js-action\x3d"viewIn360New"]'};this.classes={ux2:"hdd02-pdp-header--ux-v2"};this.deviceSize=g.getCurrentDevice();this.moVideoThumbnailSwiper=
368this.swiper=this.focusTargetEl=this.currentActivePopup=null;this.handler={handleResize:this.handleResize.bind(this),handleBgGalleryPopupCloseClick:this.handleBgGalleryPopupCloseClick.bind(this),handlePcGalleryPopupOpenClick:this.handlePcGalleryPopupOpenClick.bind(this),handlePcGalleryPopupCloseClick:this.handlePcGalleryPopupCloseClick.bind(this),handleMoVideoPopupOpenClick:this.handleMoVideoPopupOpenClick.bind(this),handleLayerPopupCloseClick:this.handleLayerPopupCloseClick.bind(this),handleViewInArClick:this.handleViewInArClick.bind(this),
369handleViewIn360Click:this.handleViewIn360Click.bind(this),handleViewIn360NewClick:this.handleViewIn360NewClick.bind(this)};A.instances.set(K,this);this.init()};A.prototype.init=function(){this.setElements();this.bindEvents();this.setSwiperStatus();this.handler.handleResize();"desktop"===this.deviceSize&&this.setImageItemList(!1,0)};A.prototype.reInit=function(){this.setElements();this.bindEvents();this.setSwiperStatus();window.sg.common.image.initAll();this.handler.handleResize();"desktop"===this.deviceSize&&
370this.setImageItemList(!1,0)};A.prototype.setElements=function(){var K=this;this.el.hdd02PdpHeader=l(this.selector.hdd02PdpHeader);this.el.swiperContainer=this.el.section.find(this.selector.swiperContainer);this.el.moVideoThumbnailSwiperContainer=this.el.section.find(this.selector.moVideoThumbnailSwiperContainer);this.el.progressIndicator=this.el.section.find(this.selector.progressIndicator);this.el.mobileArrow=this.el.section.find(this.selector.mobileArrow);this.el.layerPopup=this.el.section.find(this.selector.layerPopup);
371this.el.layerPopupContents=this.el.section.find(this.selector.layerPopupContents);this.el.pcGalleryPopup=this.el.section.find(this.selector.pcGalleryPopup);
371this.el.openPcGalleryPopupTarget=this.el.section.find(this.selector.openPcGalleryPopupTarget);this.el.closeGalleryPopupTarget=this.el.section.find(this.selector.closeGalleryPopupTarget);this.el.imageItemList=this.el.section.find(this.selector.imageItemList);this.el.pcThumbnailItemList=this.el.section.find(this.selector.pcThumbnailItemList);this.el.arPopup=
372this.el.section.find(this.selector.arPopup);this.el.popup360=this.el.section.find(this.selector.popup360);this.el.popup360New=this.el.section.find(this.selector.popup360New);this.el.moVideoThumbnailItemList=this.el.section.find(this.selector.moVideoThumbnailItemList);this.el.moVideoLayerPopup=this.el.section.find(this.selector.moVideoLayerPopup);this.el.MoVideoLink=this.el.section.find(this.selector.MoVideoLink);this.el.openMoVideoPopupTarget=this.el.section.find(this.selector.openMoVideoPopupTarget);
373this.el.closeMoVideoPopupTarget=this.el.section.find(this.selector.closeLayerPopupTarget);this.el.viewInArBtn=this.el.section.find(this.selector.viewInArBtn);this.el.viewIn360Btn=this.el.section.find(this.selector.viewIn360Btn);this.el.viewIn360NewBtn=this.el.section.find(this.selector.viewIn360NewBtn);this.el.pcGalleryPopup.target.forEach(function(D){B.instances.has(D)?B.instances.get(D).init():K.pcGalleryPopup=new B(D)});this.el.moVideoLayerPopup.target.forEach(function(D){w.instances.has(D)?w.instances.get(D).init():
374K.moVideoPopup=new w(D)});this.el.arPopup.target.forEach(function(D){e.instances.has(D)?e.instances.get(D).init():K.arPopup=new e(D,K.el.viewInArBtn)});this.el.popup360.target.forEach(function(D){p.instances.has(D)?p.instances.get(D).init():K.popup360=new p(D,K.el.viewIn360Btn)});this.el.popup360New.target.forEach(function(D){k.instances.has(D)?k.instances.get(D).init():K.popup360New=new k(D,K.el.viewIn360Btn)})};A.prototype.bindEvents=function(){u.off("resize",this.handler.handleResize).on("resize",
375this.handler.handleResize);u.off("change",this.handler.handleResize).on("change",this.handler.handleResize);this.el.openPcGalleryPopupTarget.off("click",this.handler.handlePcGalleryPopupOpenClick).on("click",this.handler.handlePcGalleryPopupOpenClick);this.el.closeGalleryPopupTarget.off("click",this.handler.handlePcGalleryPopupCloseClick).on("click",this.handler.handlePcGalleryPopupCloseClick);this.el.layerPopup.off("click",this.handler.handleBgGalleryPopupCloseClick).on("click",this.handler.handleBgGalleryPopupCloseClick);
376this.el.openMoVideoPopupTarget.off("click",this.handler.handleMoVideoPopupOpenClick).on("click",this.handler.handleMoVideoPopupOpenClick);this.el.closeMoVideoPopupTarget.off("click",this.handler.handleLayerPopupCloseClick).on("click",this.handler.handleLayerPopupCloseClick);this.el.viewInArBtn.off("click",this.handler.handleViewInArClick).on("click",this.handler.handleViewInArClick);this.el.viewIn360Btn.off("click",this.handler.handleViewIn360Click).on("click",this.handler.handleViewIn360Click);this.el.viewIn360NewBtn.off("click",
377this.handler.handleViewIn360NewClick).on("click",this.handler.handleViewIn360NewClick);this.swiper=H.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=H.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0])};A.prototype.setSwiperStatus=function(){this.swiper=H.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=H.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]);this.moVideoThumbnailSwiper||(this.el.moVideoThumbnailSwiperContainer.target.forEach(function(K){H.slideInit(K)}),
378this.moVideoThumbnailSwiper=H.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]));this.setTagging();this.swiper?this.initSwiper():(this.initSwiper(),this.swiper=H.getSwiper(this.el.swiperContainer.target[0]));this.swiper&&(this.swiper.slides.length<=parseInt(this.swiper.params.slidesPerView)||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.progressIndicator.removeClass("progressbar-indicator--show")):(this.swiper.allowTouchMove=!0,this.el.progressIndicator.addClass("progressbar-indicator--show")))};
379A.prototype.setTagging=function(){var K=this.el.hdd02PdpHeader.hasClass(this.classes.ux2)?"hdd02_gallery-"+U+"-swipe-indication":"hdd02_pdp header-"+U+"-swipe-indication";this.el.mobileArrow.attr("an-tr",K);this.el.mobileArrow.attr("an-ca","indication");this.el.mobileArrow.attr("an-ac","carousel");this.updateTagging()};A.prototype.updateTagging=function(){if(this.swiper){var K=this.swiper.activeIndex+1;this.el.mobileArrow.target.forEach(function(D){D=l(D);D.hasClass("screen-indicator--prev")&&D.attr("an-la",
380"carousel:swipe:product gallery"+(K-1));D.hasClass("screen-indicator--next")&&D.attr("an-la","carousel:swipe:product gallery"+(K+1))})}};A.prototype.initSwiper=function(){var K=this;this.el.swiperContainer.target.forEach(function(D){H.slideReInit(D);H.slideInitEnd(D,function(){K.swiper=H.getSwiper(D);K.updateTagging();K.swiper.on("slideChangeTransitionEnd",function(){K.updateTagging()})})})};A.prototype.setImageItemList=function(K,D){var h=this;this.el.pcThumbnailItemList.removeClass("hdd02-gallery__thumbnail-item--on");
381this.el.imageItemList.target.forEach(function(C,E){C=l(C);K||E===D?(C.show(),l(h.el.pcThumbnailItemList.target[D]).addClass("hdd02-gallery__thumbnail-item--on")):C.hide()})};A.prototype.closeActivePopup=function(){this.currentActivePopup&&(this.currentActivePopup.close(),this.setOriginFocus(),this.currentActivePopup=null)};A.prototype.setOriginFocus=function(){this.focusTargetEl&&this.focusTargetEl instanceof Element&&(this.focusTargetEl.focus(),this.focusTargetEl=null)};A.prototype.openPcGalleryPopup=
382function(K){if("mobile"!==this.deviceSize){var D=l(K),h=0;D.hasClass("hdd02-gallery__thumbnail-item-video")?K=this.pcGalleryPopup.popupType.video:D.hasClass("hdd02-gallery__thumbnail-item-text")?K=this.pcGalleryPopup.popupType.image:D.hasClass("hdd02-gallery__image")?K=this.pcGalleryPopup.popupType.image:(K=this.pcGalleryPopup.popupType.image,h=this.el.pcThumbnailItemList.target.findIndex(function(C){return C===D.parent().target[0]}),this.setImageItemList(!1,h));this.closeActivePopup();this.pcGalleryPopup.open(K,
383h);this.currentActivePopup=this.pcGalleryPopup;this.el.hdd02PdpHeader.addClass("hdd02-pdp-header--gallery-popup-active");g.hiddenScroll()}};A.prototype.closeGalleryPopup=function(){this.closeActivePopup();this.el.hdd02PdpHeader.removeClass("hdd02-pdp-header--gallery-popup-active");g.visibleScroll()};A.prototype.openMoVideoPopupTarget=function(K){var D=l(K);K=this.el.moVideoThumbnailItemList.target.findIndex(function(h){return h===D.parent().target[0]});this.el.MoVideoLink.removeClass("hdd02-gallery__video-link--on");
384D.eq(0).addClass("hdd02-gallery__video-link--on");this.closeActivePopup();this.moVideoPopup.open(K);this.currentActivePopup=this.moVideoPopup};A.prototype.closeLayerPopupTarget=function(){this.el.MoVideoLink.removeClass("hdd02-gallery__video-link--on");this.closeActivePopup()};A.prototype.handleViewInArClick=function(K){this.closeActivePopup();this.focusTargetEl=K.currentTarget;this.arPopup.open();this.currentActivePopup=this.arPopup};A.prototype.handleViewIn360Click=function(K){this.closeActivePopup();
385this.focusTargetEl=K.currentTarget;this.popup360.open();this.currentActivePopup=this.popup360};A.prototype.handleViewIn360NewClick=function(K){this.closeActivePopup();this.focusTargetEl=K&&K.currentTarget;this.popup360New.open();this.currentActivePopup=this.popup360New;this.el.hdd02PdpHeader.addClass("hdd02-pdp-header--gallery-popup-active");g.hiddenScroll()};A.prototype.handleMoVideoPopupOpenClick=function(K){this.focusTargetEl=K=K.currentTarget;this.openMoVideoPopupTarget(K)};A.prototype.handleLayerPopupCloseClick=
386function(){this.closeLayerPopupTarget()};A.prototype.handlePcGalleryPopupOpenClick=function(K){this.focusTargetEl=K=K.currentTarget;this.openPcGalleryPopup(K)};A.prototype.handlePcGalleryPopupCloseClick=function(K){this.closeGalleryPopup(K.currentTarget)};A.prototype.handleBgGalleryPopupCloseClick=function(K){this.currentActivePopup&&this.currentActivePopup.isDragging||K.target.classList.contains("layer-popup")&&this.closeGalleryPopup(K.currentTarget)};A.prototype.handleResize=function(){var K=this,
387D=g.getCurrentDevice();this.deviceSize!==D&&(document.fullscreenElement&&"IFRAME"===document.fullscreenElement.nodeName?this.el.section.removeClass("hdd02-gallery__disable-iframe-fullscreen"):(this.el.section.addClass("hdd02-gallery__disable-iframe-fullscreen"),"mobile"===D?(this.closeGalleryPopup(),this.setImageItemList(!0),this.el.swiperContainer.find(".swiper-slide").target.forEach(function(h){l(h).find(".hdd02-gallery__image").attr("tabindex",-1)})):setTimeout(function(){K.setImageItemList(!1,
3880)},10)),setTimeout(function(){K.setSwiperStatus()},10));this.deviceSize=D};var ca=function(){l(".hdd02-gallery").target.forEach(function(K){A.instances.has(K)?A.instances.get(K).reInit(!0):new A(K)})};A.instances=new WeakMap;B.instances=new WeakMap;w.instances=new WeakMap;e.instances=new WeakMap;p.instances=new WeakMap;k.instances=new WeakMap;l.load(ca);window.sg.components.PDheaderGalleryNew={init:ca,reInit:function(){l(".hdd02-gallery").target.forEach(function(K){A.instances.has(K)?A.instances.get(K).reInit():
389new A(K)})},openNew360Popup:function(){l(".hdd02-gallery").target.forEach(function(K){A.instances.has(K)&&A.instances.get(K).handleViewIn360NewClick()})}}})();
390(function(){var l=window.sg.common.$q,g=window.sg.common.utils,H=window.sg.common.swiperManager,u=window.sg.common.scrollbar,n=window.sg.common.lazyLoad,v=function(W){this.el={section:l(W),window:l(window)};this.selector={dimensionsPopup:".pd-sellout-option__dimensions-popup",dimensionsPopupTitle:".layer-popup__title",dimensionsPopupSwiper:".pd-sellout-option__dimensions-popup-swiper"};this.resizeTimer=this.resizeHandler=null;this.popupData={};this.swiper=null;this.handler={closePopup:this.closePopup.bind(this),
391handleClickDim:this.handleClickDim.bind(this)};v.instances.set(W,this);this.init()};v.prototype.init=function(){this.setElements()};v.prototype.reInit=function(){this.init()};v.prototype.setElements=function(){this.el.dimensionsPopup=this.el.section.find(this.selector.dimensionsPopup);this.el.dimensionsPopupSwiper=this.el.dimensionsPopup.find(this.selector.dimensionsPopupSwiper)};v.prototype.openPopup=function(W,aa){aa=void 0===aa?{}:aa;this.popupData={btn:W,popup:l("#"+W.dataset.targetPopup)};this.popupData.popup.addClass("popup--open");
392n.setLazyLoadManually(this.el.section.target[0]);this.popupData.popup.setLayerFocus(".layer-popup__inner",".layer-popup__close");g.setMobileFocusLoop(this.popupData.popup.target[0]);g.hiddenScroll();this.popupData.popup.find(".layer-popup__close").off("click",this.handler.closePopup).on("click",this.handler.closePopup);aa.resizeHandler&&(this.resizeHandler=aa.resizeHandler.bind(this),window.addEventListener("resize",this.resizeHandler));var x=(W=this.popupData.popup.find(this.selector.dimensionsPopupTitle).target[0])||
393g.getFirstFocusableEl(this.popupData.popup.target[0]);W&&W.setAttribute("tabindex","-1");setTimeout(function(){x&&x.focus()},500)};v.prototype.closePopup=function(){var W=this;this.popupData.popup.removeClass("popup--open");this.popupData.popup.offLayerFocus();g.removeMobileFocusLoop();g.visibleScroll();
393this.el.window.off("click",this.handler.handleClickDim);this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null);setTimeout(function(){W.popupData.btn.focus();
394W.popupData={btn:null,popup:null}},20)};v.prototype.setSwiperStatus=function(W){(this.swiper=H.getSwiper(W.target[0]))?this.initSwiper(W):(this.initSwiper(W),this.swiper=H.getSwiper(W.target[0]))};v.prototype.initSwiper=function(W){var aa=this;W.target.forEach(function(x){H.slideReInit(x);H.slideInitEnd(x,function(){aa.swiper=H.getSwiper(x)})})};v.prototype.setScrollbar=function(W){W.target.forEach(function(aa){u.reInit(aa)})};v.prototype.setDimensionsPopupHeight=function(){var W=this.el.dimensionsPopup.find(".layer-popup__inner").target[0].getBoundingClientRect().height,
395aa=this.el.dimensionsPopup.find(".layer-popup__title").target[0].getBoundingClientRect().height,x=this.el.dimensionsPopup.find(".pd-sellout-option__dimensions-popup-cta").target[0].getBoundingClientRect().height;aa=Math.round(aa+x);(x=this.el.dimensionsPopup.find(".scrollbar__wrap").target[0])&&(x.style.height=W-aa+"px")};v.prototype.resizeDimensionsPopup=function(){var W=this,aa=g.getCurrentDevice();clearTimeout(this.resizeTimer);this.resizeTimer=null;this.resizeTimer=setTimeout(function(){W.setScrollbar(W.el.dimensionsPopup.find(".scrollbar"));
396W.setDimensionsPopupHeight();W.currentDevice!==aa&&W.setSwiperStatus(W.el.dimensionsPopupSwiper);W.currentDevice=aa},10)};v.prototype.openDimensionsPopup=function(W){this.openPopup(W,{resizeHandler:this.resizeDimensionsPopup});this.resizeDimensionsPopup();this.el.window.off("click",this.handler.handleClickDim).on("click",this.handler.handleClickDim)};v.prototype.handleClickDim=function(W){W&&!W.target.closest(".pd-sellout-option__dimensions-popup .layer-popup__inner")&&this.closePopup()};var F=function(){l(".pd-sellout-option").target.forEach(function(W){v.instances.has(W)?
397v.instances.get(W).reInit(!0):new v(W)})};v.instances=new WeakMap;window.sg.components.SelloutOption={init:F,reInit:function(){l(".pd-sellout-option").target.forEach(function(W){v.instances.has(W)?v.instances.get(W).reInit():new v(W)})},openDimensionsPopup:function(W){var aa=l(W).closest(".pd-sellout-option").target[0];v.instances.has(aa)&&v.instances.get(aa).openDimensionsPopup(W)},closePopup:function(){l(".pd-sellout-option").target.forEach(function(W){v.instances.has(W)&&v.instances.get(W).closePopup()})}};
398l.load(F)})();
399(function(){var l=window.sg.common.$q,g=window.sg.common.tab,H=window.sg.common.swiperManager,u=window.sg.common.constants.BREAKPOINTS,n=window.sg.common.utils,v=window.sg.common.scrollbar,F=window.sg.common.OptionSelector,W=window.sg.common.libs,aa=n.setMobileFocusLoop,x=n.removeMobileFocusLoop,U=function(w){var e=this;this.el={window:l(window),component:l(w)};this.activeCta=this.activeTarget=this.resizeTimer=this.downOptionScroll=this.winRect=null;this.handler={setFix:this.setFix.bind(this),resize:this.resize.bind(this),
400resizeSwiper:this.resizeSwiper.bind(this),slideChange:this.slideChange.bind(this),clickViewIcon:this.clickViewIcon.bind(this),checkedCheckbox:this.checkedCheckbox.bind(this),clickSelect:function(p){e.clickSelect(p.currentTarget)},clickMoreBtn:this.clickMoreBtn.bind(this),clickTab:function(){var p=e.el.tabBtn.target.indexOf(event.currentTarget);e.el.swiper.swiper.slideTo(p)},clickFooterBtn:function(){e.el.swiper.swiper.slideNext()},swiperTouchStart:function(p){e.isPc?e.el.swiper.swiper.allowTouchMove=
401!1:0===l(p.target).closest(".option-selector").target.length&&(e.el.swiper.swiper.allowTouchMove=!0)},optionTouchDown:function(){e.el.window.off("mousemove",e.handler.optionTouchMove).on("mousemove",e.handler.optionTouchMove);e.el.window.off("touchmove",e.handler.optionTouchMove).on("touchmove",e.handler.optionTouchMove);e.el.window.off("mouseup",e.handler.optionTouchUp).on("mouseup",e.handler.optionTouchUp);e.el.window.off("touchend",e.handler.optionTouchUp).on("touchend",e.handler.optionTouchUp);
402e.downOptionScroll=e.el.swiper.querySelector(".swiper-slide-active .scrollbar__wrap").scrollLeft},optionTouchMove:function(){v.scrollTo(e.el.swiper.querySelector(".swiper-slide-active \x3e .scrollbar"),0);null!==e.downOptionScroll&&e.el.swiper.swiper.allowTouchMove&&(e.el.swiper.swiper.allowTouchMove=!1)},optionTouchUp:function(){e.downOptionScroll=null;e.el.window.off("mousemove",e.handler.optionTouchMove);e.el.window.off("touchmove",e.handler.optionTouchMove);
402e.el.window.off("mouseup",e.handler.optionTouchUp);
403e.el.window.off("touchend",e.handler.optionTouchUp)},focusLock:this.focusLock.bind(this),closePopup:this.closePopup.bind(this),slideChangeTransitionEnd:this.slideChangeTransitionEnd.bind(this),slideChangeTransitionStart:this.slideChangeTransitionStart.bind(this),slideResetTransitionStart:this.slideResetTransitionStart.bind(this)};U.instances.set(w,this);this.init()};U.prototype.setElements=function(){this.el.tabBtn=this.el.component.find(".tab__item-title");this.el.swiper=this.el.component.find(".pdd16-step-buying__contents .pdd16-step-buying__card-wrap").target[0];
404this.el.StepSwiper=this.el.component.find(".pdd16-step-buying__add-on-list").target[0];this.el.StepSwiperSlide=this.el.component.find(".pdd16-step-buying__add-on-list").find(".swiper-slide");this.el.footer=this.el.component.find(".pdd16-step-buying__footer");this.el.dummyHeaer=this.el.component.find(".pdd16-step-buying__header__dummy");this.el.dummyFooter=this.el.component.find(".pdd16-step-buying__footer__dummy");this.el.viewIcon=this.el.component.find(".pdd16-step-buying__list-type \x3e a");this.el.selectBtn=
405this.el.component.find(".pdd16-step-buying__card \x3e button.cta:not(.js-cta-stock), .pdd16-step-buying__card-cta button.cta:not(.js-cta-stock)");this.el.selectNum=this.el.component.find(".pdd16-step-buying__evoucher-list li:first-child .pdd16-step-buying__evoucher-title \x3e span");this.el.selectClearAll=this.el.component.find(".cta--clear-all");this.el.moreBtn=this.el.component.find(".pdd16-step-buying__view-more");this.el.tab=this.el.component.find(".tab");this.el.checkbox=this.el.component.find('.pdd16-step-buying__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]');
406this.el.component.hasClass("pdd16-step-buying--default")?this.el.footerBtn=this.el.component.find(".pdd16-step-buying__footer .cta--step"):this.el.footerBtn=l([]);this.el.popup=this.el.component.find(".pdd16-step-buying__layer-learn-more");this.el.closePopupCta=this.el.popup.find(".layer-popup__close");this.downOptionScroll=null;this.el.component.find(".pdd16-step-buying__card-wrap .swiper-slide").target.forEach(function(w){var e=w.querySelectorAll(".pdd16-step-buying__card:nth-child(-n+6)");
406[].concat($jscomp.arrayFromIterable(e)).forEach(function(p){p.classList.add("is-show")});
407l(e[e.length-1]).find(".pdd16-step-buying__tooltip").css({right:0,left:"auto"});6>=w.querySelectorAll(".pdd16-step-buying__card").length&&(w.querySelector(".pdd16-step-buying__view-more").style.display="none");e=w.querySelectorAll(".pdd16-step-buying__list-type \x3e a");w.classList.contains("pdd16-step-buying__2column")?(e[0].classList.add("on"),e[1].classList.remove("on")):(e[0].classList.remove("on"),e[1].classList.add("on"))});this.lastSlideIdx=0<this.el.StepSwiperSlide.target.length?this.el.StepSwiperSlide.target.length-
4082:null};U.prototype.init=function(){this.setElements();void 0===this.el.swiper.swiper&&H.slideReInit(this.el.swiper);this.resize();this.bindEvents()};U.prototype.reInit=function(){this.setElements();window.sg.common.lazyLoad.setLazyLoad();void 0===this.el.swiper.swiper?H.slideReInit(this.el.swiper):H.slideUpdate(this.el.swiper);void 0===this.el.StepSwiper.swiper?H.slideReInit(this.el.StepSwiper):H.slideUpdate(this.el.StepSwiper);this.resize();this.bindEvents()};U.prototype.slideChangeTransitionStart=
409function(){this.el.StepSwiperSlide.addClass("changing");this.el.StepSwiperSlide.removeClass("changed");u.MOBILE<n.getViewPort().width?this.el.StepSwiperSlide.eq(this.lastSlideIdx).hasClass("swiper-slide-active")&&(this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend")):this.el.StepSwiper.swiper.isEnd&&(this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlid32eIdx).removeClass("changedend"))};
410U.prototype.slideChangeTransitionEnd=function(){u.MOBILE<n.getViewPort().width?this.el.StepSwiperSlide.eq(this.lastSlideIdx).hasClass("swiper-slide-active")&&(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changedend")):this.el.StepSwiper.swiper.isEnd?(this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changedend")):
411(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"));this.setAccessbility()};U.prototype.slideResetTransitionStart=function(){u.MOBILE>=n.getViewPort().width&&(this.el.StepSwiper.swiper.isEnd?this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"):this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"))};
412U.prototype.setSlideAria=function(w,e){w=l(w);!0===e?w.attr("aria-hidden",!0):w.attr("aria-hidden",!1)};U.prototype.setAccessbility=function(){var w=this;this.el.StepSwiperSlide.target.forEach(function(e){l(e).hasClass("swiper-slide-active")||l(e).hasClass("swiper-slide-next")?w.setSlideAria(e,!1):w.setSlideAria(e,!0)})};U.prototype.bindEvents=function(){var w=this;this.el.window.off("scroll",this.handler.setFix).on("scroll",this.handler.setFix);this.el.window.off("resize",this.handler.resize).on("resize",
413this.handler.resize);this.el.tabBtn.off("click",this.handler.clickTab).on("click",this.handler.clickTab);this.el.viewIcon.off("click",this.handler.clickViewIcon).on("click",this.handler.clickViewIcon);this.el.selectBtn.off("click",this.handler.clickSelect).on("click",this.handler.clickSelect);this.clickSelect();this.el.footerBtn.off("click",this.handler.clickFooterBtn).on("click",this.handler.clickFooterBtn);this.el.moreBtn.off("click",this.handler.clickMoreBtn).on("click",this.handler.clickMoreBtn);
414void 0!==this.el.swiper.swiper&&(this.el.swiper.swiper.off("slideChange",this.handler.slideChange),this.el.swiper.swiper.off("touchStart",this.handler.swiperTouchStart));this.el.swiper.swiper.on("slideChange",this.handler.slideChange);this.el.swiper.swiper.on("touchStart",this.handler.swiperTouchStart);this.tabActive();
414requestAnimationFrame(function(){w.setMaxHeight()});this.el.component.find(".option-selector").target.forEach(function(e){F.reInit(l(e))});this.el.component.find(".option-selector__wrap--capacity").target.forEach(function(e){1===
415l(e).find(".option-selector__swiper-slide").target.length&&l(e).addClass("option-selector__wrap--capacity-single")});this.el.component.find(".pdd16-step-buying__card-option").target.forEach(function(e){e=l(e);e.off("mousedown").on("mousedown",w.handler.optionTouchDown);e.off("touchstart").on("touchstart",w.handler.optionTouchDown)});this.el.closePopupCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.el.StepSwiper&&void 0!==this.el.StepSwiper.swiper&&(this.el.StepSwiper.swiper.off("slideChangeTransitionEnd",
416this.handler.slideChangeTransitionEnd).on("slideChangeTransitionEnd",this.handler.slideChangeTransitionEnd),this.el.StepSwiper.swiper.off("transitionEnd",this.handler.slideChangeTransitionEnd).on("transitionEnd",this.handler.slideChangeTransitionEnd),this.el.StepSwiper.swiper.off("slideChangeTransitionStart",this.handler.slideChangeTransitionStart).on("slideChangeTransitionStart",this.handler.slideChangeTransitionStart),this.el.StepSwiper.swiper.off("slideResetTransitionStart",this.handler.slideResetTransitionStart).on("slideResetTransitionStart",
417this.handler.slideResetTransitionStart),this.setAccessbility());this.el.checkbox.off("change",this.handler.checkedCheckbox).on("change",this.handler.checkedCheckbox)};U.prototype.checkedCheckbox=function(){var w=this.el.checkbox.target.length,e=this.el.component.find('.pdd16-step-buying__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]:checked').target.length,p=this.el.component.find(".cta--step");w===e?(p.removeClass("cta--disabled"),p.removeAttr("disabled")):(p.addClass("cta--disabled"),
418p.attr("disabled","true"))};U.prototype.clearAll=function(){this.el.component.find(".pdd16-step-buying__card \x3e .cta--contained.cta--on:not([disabled]), .pdd16-step-buying__card-cta .cta--contained.cta--on:not([disabled])").trigger("click")};U.prototype.clickMoreBtn=function(w){w=l(w.currentTarget).closest(".pdd16-step-buying__view-more");var e=w.closest(".swiper-slide"),p=e.find(".pdd16-step-buying__card");e=e.find(".pdd16-step-buying__card:not(.is-show)");w.css({display:"none"});p.addClass("is-show");
419this.setMaxHeight();e.find(".option-selector").target.forEach(function(k){F.reInit(l(k))});this.resizeSwiper();p.eq(5).find(".pdd16-step-buying__tooltip").css({right:"",left:""});p.eq(p.target.length-1).find(".pdd16-step-buying__tooltip").css({right:0,left:"auto"})};U.prototype.clickSelect=function(w,e){w=void 0===w?null:w;e=void 0===e?null:e;null!==w&&(null===e&&(e=!w.classList.contains("cta--on")),e?(w.classList.add("cta--on"),l(w).find("span").innerHTML(w.dataset.textSelected)):(w.classList.remove("cta--on"),
420l(w).find("span").innerHTML(w.dataset.text)));0<this.el.selectNum.target.length&&(w=this.el.component.find(".pdd16-step-buying__card \x3e .cta--contained.cta--on, .pdd16-step-buying__card-cta .cta--contained.cta--on").target.length,this.el.selectNum.text(w))};U.prototype.slideChange=function(){var w=this;this.tabActive();requestAnimationFrame(function(){w.setMaxHeight()})};U.prototype.clickViewIcon=function(w){var e=l(w.currentTarget),p=e.closest(".pdd16-step-buying__list-type").find("a"),k=e.closest(".swiper-slide");
421p.removeClass("on");e.addClass("on");"1column"===w.currentTarget.getAttribute("aria-label")?(k.removeClass("pdd16-step-buying__2column"),k.addClass("pdd16-step-buying__1column"),k.find(".option-selector__wrap--color-chip").attr("data-mobile-view",5),k.find(".option-selector__wrap--capacity").attr("data-mobile-view",2)):(k.removeClass("pdd16-step-buying__1column"),k.addClass("pdd16-step-buying__2column"),k.find(".option-selector__wrap--color-chip").attr("data-mobile-view",4),k.find(".option-selector__wrap--capacity").attr("data-mobile-view",
4221));k.find(".option-selector").target.forEach(function(A){F.reInit(l(A))});this.setMaxHeight();this.resizeSwiper()};U.prototype.resizeSwiper=function(){l(this.el.swiper).find(".swiper-container, .swiper-wrapper, .swiper-slide").css({height:""});[].concat($jscomp.arrayFromIterable(this.el.component.find(".scrollbar").target)).forEac
422h(function(w){v.resize(w)});this.el.swiper.swiper.emit("resize")};U.prototype.sameHeightPc=function(w,e,p){p=void 0===p?!1:p;var k=0;w=w.find(e);w.target.forEach(function(A){A=
423A.getBoundingClientRect().height;k<A&&(k=A)});if(p)return k;w.css({height:k+"px"})};U.prototype.optionOneLinePC=function(w){var e=w.find(".pdd16-step-buying__card.is-show"),p=0;e.target.forEach(function(k){k=k.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;p<k&&(p=k)});2>p&&(0===e.find(".option-selector__wrap--color-chip").target.length?w.find(".scrollbar__contents").addClass("none-color-chip"):w.find(".scrollbar__contents").addClass("single-chip"))};
424U.prototype.optionOneLineMo=function(w,e){e=void 0===e?null:e;if(null===e){var p=w.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;w=l(w)}else{p=w.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");var k=e.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");p=Math.max(p.length,k.length);w=l([w,e])}2>p&&(0===w.find(".option-selector__wrap--color-chip").target.length?w.find(".option-selector").addClass("none-color-chip"):
425w.find(".option-selector").addClass("single-chip"))};U.prototype.setMaxHeight=function(){var w=this,e=l(this.el.swiper).find(".swiper-slide-active");0===e.target.length&&(e=this.el.component.find(".pdd16-step-buying__tab").eq(0));var p=l(this.el.swiper);e.find(".pdd16-step-buying__card, .pdd16-step-buying__card-badge, .pdd16-step-buying__card-option, .pdd16-step-buying__card-seller, .pdd16-step-buying__card-header-badge, .pdd16-step-buying__card-price, .pdd16-step-buying__card-cta, .pdd16-step-buying__view-more").css({height:""});
426p.find(".none-color-chip").removeClass("none-color-chip");p.find(".single-chip").removeClass("single-chip");if(this.isPc)this.optionOneLinePC(e),this.sameHeightPc(e,".pdd16-step-buying__card-badge"),this.sameHeightPc(e,".pdd16-step-buying__card-option"),this.sameHeightPc(e,".pdd16-step-buying__card-seller"),this.sameHeightPc(e,".pdd16-step-buying__card-header-badge"),this.sameHeightPc(e,".pdd16-step-buying__card-price"),this.sameHeightPc(e,".pdd16-step-buying__card-cta"),p=this.sameHeightPc(e,".pdd16-step-buying__card",
427!0),e.find(".pdd16-step-buying__view-more").css({height:p+"px"}),e.find(".pdd16-step-buying__card").css({height:p+"px"});else if(!1!==e.target[0].classList.contains("pdd16-step-buying__2column")){var k=e.find(".pdd16-step-buying__card.is-show");k.target.forEach(function(A,ca){if(0!==ca%2){var K=k.target[ca-1];w.optionOneLineMo(K,A);".pdd16-step-buying__card-option .pdd16-step-buying__card-badge .pdd16-step-buying__card-seller .pdd16-step-buying__card-header-badge .pdd16-step-buying__card-price .pdd16-step-buying__card .pdd16-step-buying__card-cta".split(" ").forEach(function(D){var h=
428K.querySelector(D),C=A.querySelector(D);".pdd16-step-buying__card"===D&&(h=K,C=A);null!==h&&null!==C&&(D=Math.max(h.getBoundingClientRect().height,C.getBoundingClientRect().height),h.style.height=D+"px",C.style.height=D+"px")})}});0===(k.target.length-1)%2&&this.optionOneLineMo(k.target[k.target.length-1],null)}};U.prototype.tabActive=function(){var w=this.el.swiper.swiper,e=this.el.component.find(".pdd16-step-buying__tab").target;void 0===w?this.el.footerBtn.text(this.el.swiper.querySelector(".swiper-slide").dataset.buttonText):
429this.el.footerBtn.text(e[w.activeIndex].dataset.buttonText);g.selectTab(this.el.tab.target[0],w.activeIndex)};U.prototype.resize=function(){var w=this;this.winRect=n.getViewPort();this.el.dummyHeaer.css({height:this.el.component.find(".pdd16-step-buying__header").offset().height+"px"});var e=u.MOBILE<n.getViewPort().width;e!==this.isPc?(this.isPc=e,this.setMaxHeight(),this.resizeSwiper()):this.setMaxHeight();this.isPc?this.el.swiper.swiper.allowTouchMove&&(this.el.swiper.swiper.allowTouchMove=!1,
430this.offFix()):(!0!==this.el.swiper.swiper.allowTouchMove&&(this.el.swiper.swiper.allowTouchMove=!0),1===this.el.component.find(".pdd16-step-buying__add-on-list .swiper-slide").target.length&&this.el.component.find(".pdd16-step-buying__add-on-list").addClass("is-full"));e=this.el.component.find(".pdd16-step-buying__footer");this.el.dummyFooter.css({height:e.offset().height+parseInt(window.getComputedStyle(e.target[0]).marginTop)+"px"});null!==this.activeTarget&&this.popupResize();clearTimeout(this.resizeTimer);
431this.resizeTimer=null;this.resizeTimer=setTimeout(function(){w.resizeSwiper()},200)};U.prototype.offFix=function(){this.el.footer.removeClass("pdd16-step-buying__footer--fi
431xed");this.el.component.removeClass("pdd16-step-buying--floating")};U.prototype.setFix=function(){var w=this.el.component.offset();this.isPc||(0>w.top&&w.bottom>this.winRect.height?(this.el.component.hasClass("pdd16-step-buying--floating")||this.el.component.addClass("pdd16-step-buying--floating"),this.el.footer.hasClass("pdd16-step-buying__footer--fixed")||
432this.el.footer.addClass("pdd16-step-buying__footer--fixed")):(this.el.component.hasClass("pdd16-step-buying--floating")&&this.el.component.removeClass("pdd16-step-buying--floating"),this.el.footer.hasClass("pdd16-step-buying__footer--fixed")&&this.el.footer.removeClass("pdd16-step-buying__footer--fixed")))};U.prototype.focusLock=function(w){if(w.keyCode===W.keyCode.TAB_KEY){var e=1<this.activeTarget.find(".swiper-slide").target.length?this.activeTarget.find(".swiper-button-prev").hasClass("swiper-button-disabled")?
433this.activeTarget.find(".swiper-button-next").target[0]:this.activeTarget.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0]:this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];!1===w.shiftKey&&this.el.closePopupCta.target[0]===document.activeElement?(w.preventDefault(),e.focus()):!0===w.shiftKey&&e===document.activeElement?(w.preventDefault(),this.el.closePopupCta.focus()):!0===w.shiftKey&&this.activeTarget.target[0]===
434document.activeElement&&(w.preventDefault(),this.el.closePopupCta.focus())}};U.prototype.activePopup=function(w){w&&(this.activeCta=l(w));n.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();this.activeTarget.on("keydown",this.handler.focusLock);H.slideUpdate(this.activeTarget.find(".basic-swiper").target[0]);H.slideReInit(this.activeTarget.find(".basic-swiper").target[0]);1<this.activeTarget.find(".swiper-slide").target.length?w=this.activeTarget.find(".swiper-button-next").target[0]:
435(this.activeTarget.find(".swiper-button-prev").attr("tabindex","-1"),this.activeTarget.find(".swiper-button-next").attr("tabindex","-1"),w=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);w.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&aa(this.activeTarget.target[0]);this.popupResize()};U.prototype.closePopup=function(){n.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&x();null!==this.activeCta&&
436this.activeCta.focus();this.activeTarget.hide();this.activeTarget.off("keydown",this.handler.eventFocusLock);l(this.activeCta).focus();this.activeTarget.find(".swiper-button-prev").removeAttr("tabindex");this.activeTarget.find(".swiper-button-next").removeAttr("tabindex");this.popupResize(!1);this.activeTarget=this.activeCta=null};U.prototype.popupResize=function(w){w=void 0===w?!0:w;var e=document.documentElement.clientHeight,p=this.activeTarget.find(".layer-popup__inner"),k=this.activeTarget.find(".scrollbar"),
437A=this.activeTarget.find(".scrollbar__wrap");!0===w?(this.isPc?e<=p.target[0].getBoundingClientRect().height?(p.css({"min-height":e+"px",height:e+"px"}),p=p.target[0].getBoundingClientRect(),e=A.target[0].getBoundingClientRect(),p=parseInt(p.height-e.top),k.css({height:p+"px"})):(p.css({"min-height":"",height:""}),k.css({height:""})):(A=A.target[0].getBoundingClientRect(),e=parseInt(e-A.top),p.css({"min-height":""}),k.css({height:e+"px"})),setTimeout(function(){v.resize(k.target[0])},300)):(p.css({"min-height":"",
438height:""}),k.css({height:""}))};var B=function(w){w=void 0===w?{visibleScrollTop:!0}:w;l(".pdd16-step-buying").target.forEach(function(e){l(e).find(".tab").target.forEach(function(p){g.init(p)});U.instances.has(e)?U.instances.get(e).reInit():new U(e);l(e).find(".scrollbar").target.forEach(function(p){v.reInit(p)})});w.visibleScrollTop&&(n.visibleScroll(),window.scrollTo(0,0))};U.instances=new WeakMap;l.ready(B);window.sg.components.stepbuying={init:B,clearAll:function(w){U.instances.has(w)&&U.instances.get(w).clearAll()},
439cardSelect:function(w,e){e=void 0===e?null:e;var p=l(w).closest(".pdd16-step-buying").target[0];U.instances.has(p)&&U.instances.get(p).clickSelect(w,e)},activePopup:function(w){l(".pdd16-step-buying").target.forEach(function(e){U.instances.has(e)&&U.instances.get(e).activePopup(w)})},closePopup:function(){l(".pdd16-step-buying").target.forEach(function(w){U.instances.has(w)&&U.instances.get(w).closePopup()})}}})();
440(function(){var l=window.sg.common.$q,g=window.sg.common.swiperManager,H=window.sg.common.utils,u=window.sg.common.scrollbar,n=window.sg.common.OptionSelector,v=window.sg.common.libs,F=H.setMobileFocusLoop,W=H.removeMobileFocusLoop,aa=function(U){var B=this;
440this.el={window:l(window),component:l(U),classes:{bottomExpandedClass:"pdd16-step-buying-v2__bottom--expanded",bottomTopClass:"pdd16-step-buying-v2__bottom--top",bottomFixedClass:"pdd16-step-buying-v2__bottom--fixed"}};this.bottomPriceTopRect=
441this.activeCta=this.activeTarget=null;this.handler={scroll:this.scroll.bind(this),resize:this.resize.bind(this),checkedCheckbox:this.checkedCheckbox.bind(this),clickSelect:function(w){B.clickSelect(w.currentTarget)},focusLock:this.focusLock.bind(this),closePopup:this.closePopup.bind(this),handleTransitionEnd:this.handleTransitionEnd.bind(this),handleSwiperTouchStart:this.handleSwiperTouchStart.bind(this)};aa.instances.set(U,this);this.init()};aa.prototype.setElements=function(){this.el.categoryContents=
442this.el.component.find(".pdd16-step-buying-v2__category-contents");this.el.selectBtn=this.el.component.find(".pdd16-step-buying-v2__card-inner \x3e button.cta:not(.js-cta-stock), .pdd16-step-buying-v2__card-cta button.cta:not(.js-cta-stock)");this.el.selectNum=this.el.component.find(".pdd16-step-buying-v2__evoucher-list li:first-child .pdd16-step-buying-v2__evoucher-title \x3e span");this.el.checkbox=this.el.component.find('.pdd16-step-buying-v2__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]');
443this.el.bottomWrap=this.el.component.find(".pdd16-step-buying-v2__bottom-wrap");this.el.popup=this.el.component.find(".pdd16-step-buying-v2__layer-learn-more");this.el.closePopupCta=this.el.popup.find(".layer-popup__close")};aa.prototype.init=function(){this.setElements();this.initSwiper();this.resize();this.bindEvents()};aa.prototype.reInit=function(){this.setElements();window.sg.common.lazyLoad.setLazyLoad();this.initSwiper();this.resize();this.bindEvents()};aa.prototype.cardReInit=function(U){U=
444l(U);window.sg.common.lazyLoad.setLazyLoad();U.find(".pdd16-step-buying-v2__card-inner \x3e button.cta:not(.js-cta-stock), .pdd16-step-buying-v2__card-cta button.cta:not(.js-cta-stock)").off("click",this.handler.clickSelect).on("click",this.handler.clickSelect);n.reInit(U);if(U.find(".option-selector__wrap--capacity").target){var B=U.find(".option-selector__wrap--capacity");1===B.find(".option-selector__swiper-slide").target.length&&B.addClass("option-selector__wrap--capacity-single")}this.setMaxHeight(U.closest(".pdd16-step-buying-v2__category-contents").target)};
445aa.prototype.bindEvents=function(){this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.el.selectBtn.off("click",this.handler.clickSelect).on("click",this.handler.clickSelect);this.scroll();this.clickSelect();this.el.component.find(".option-selector").target.forEach(function(U){n.reInit(l(U))});this.el.component.find(".option-selector__wrap--capacity").target.forEach(function(U){1===
446l(U).find(".option-selector__swiper-slide").target.length&&l(U).addClass("option-selector__wrap--capacity-single")});this.el.closePopupCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.el.checkbox.off("change",this.handler.checkedCheckbox).on("change",this.handler.checkedCheckbox)};aa.prototype.checkedCheckbox=function(){var U=this.el.checkbox.target.length,B=this.el.component.find('.pdd16-step-buying-v2__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]:checked').target.length,
447w=this.el.component.find(".pdd16-step-buying-v2__bottom-price__cta .cta");U===B?(w.removeClass("cta--disabled"),w.removeAttr("disabled")):(w.addClass("cta--disabled"),w.attr("disabled","true"))};aa.prototype.clearAll=function(){this.el.component.find(".pdd16-step-buying-v2__card \x3e .cta--contained.cta--on:not([disabled]), .pdd16-step-buying-v2__card-cta .cta--contained.cta--on:not([disabled])").trigger("click")};aa.prototype.clickSelect=function(U,B){U=void 0===U?null:U;B=void 0===B?null:B;null!==
448U&&(null===B&&(B=!U.classList.contains("cta--on")),B?(U.classList.add("cta--on"),l(U).find("span").innerHTML(U.dataset.textSelected)):(U.classList.remove("cta--on"),l(U).find("span").innerHTML(U.dataset.text)));0<this.el.selectNum.target.length&&(U=this.el.component.find(".pdd16-step-buying-v2__card \x3e .cta--contained.cta--on, .pdd16-step-buying-v2__card-cta .cta--contained.cta--on").target.length,this.el.selectNum.text(U))};aa.prototype.handleSwiperTouchStart=function(U){l(U.currentTarget).find(".pdd16-step-buying-v2__card-list").addClass("swiper-duration--none")};
449aa.prototype.handleTransitionEnd=function(U){l(U.wrapperEl).removeClass("swiper-duration--none")};aa.prototype.setMaxHeight=function(U){var B=l(U).target[0];U="pdd16-step-buying-v2__card-header-badge pdd16-step-buying-v2__card-text pdd16-step-buying-v2__card-option pdd16-step-buying-v2__card-badge pdd16-step-buying-v2__card-seller pdd16-step-buying-v2__card-price pdd16-step-buying-v2__card-cta pdd16-step-buying-v2__card-inner".split(" ");
449U.forEach(function(w){return l(B).find("."+w).css({height:""})});
450U.forEach(function(w){w=l(B).find("."+w);var e=w.target.map(function(p){return l(p).outerHeight()}).reduce(function(p,k){return Math.max(p,k)});w.target.forEach(function(p){l(p).css({height:e+"px"})});0>=e&&w.addClass("no-data")})};aa.prototype.resize=function(){this.scroll();this.initSwiper();null!==this.activeTarget&&this.popupResize()};aa.prototype.initSwiper=function(){var U=this;this.el.categoryContents.target.forEach(function(B){g.slideReInit(B);void 0!==B.swiper&&null!==B.swiper&&(B.swiper.off("touchStart",
451U.handler.handleSwiperTouchStart).on("touchStart",U.handler.handleSwiperTouchStart),B.swiper.off("transitionEnd",function(){return U.handleTransitionEnd(B.swiper)}).on("transitionEnd",function(){return U.handler.handleTransitionEnd(B.swiper)}));U.setMaxHeight(B)})};aa.prototype.scroll=function(){var U=window.pageYOffset||document.documentElement.scrollTop;if(this.el.bottomWrap.target[0])if(0<U?this.el.bottomWrap.removeClass(this.el.classes.bottomTopClass):this.el.bottomWrap.addClass(this.el.classes.bottomTopClass),
452this.bottomPriceTopRect=this.el.bottomWrap.target[0].getBoundingClientRect().bottom,this.bottomPriceTopRect<window.innerHeight){if(U>this.scrollEnd||!this.el.bottomWrap.hasClass(this.el.classes.bottomFixedClass))this.el.bottomWrap.removeClass(this.el.classes.bottomFixedClass),this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass)}else U=window.pageYOffset||document.documentElement.scrollTop,U>this.scrollEnd?this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass):(this.el.bottomWrap.addClass(this.el.classes.bottomFixedClass),
453this.el.bottomWrap.addClass(this.el.classes.bottomExpandedClass)),this.scrollEnd=U};aa.prototype.focusLock=function(U){if(U.keyCode===v.keyCode.TAB_KEY){var B=1<this.activeTarget.find(".swiper-slide").target.length?this.activeTarget.find(".swiper-button-prev").hasClass("swiper-button-disabled")?this.activeTarget.find(".swiper-button-next").target[0]:this.activeTarget.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0]:this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];
454!1===U.shiftKey&&this.el.closePopupCta.target[0]===document.activeElement?(U.preventDefault(),B.focus()):!0===U.shiftKey&&B===document.activeElement?(U.preventDefault(),this.el.closePopupCta.focus()):!0===U.shiftKey&&this.activeTarget.target[0]===document.activeElement&&(U.preventDefault(),this.el.closePopupCta.focus())}};aa.prototype.activePopup=function(U){U&&(this.activeCta=l(U));H.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();this.activeTarget.on("keydown",this.handler.focusLock);
455g.slideUpdate(this.activeTarget.find(".basic-swiper").target[0]);g.slideReInit(this.activeTarget.find(".basic-swiper").target[0]);1<this.activeTarget.find(".swiper-slide").target.length?U=this.activeTarget.find(".swiper-button-next").target[0]:(this.activeTarget.find(".swiper-button-prev").attr("tabindex","-1"),this.activeTarget.find(".swiper-button-next").attr("tabindex","-1"),U=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);U.focus();
4560>=document.querySelectorAll("[data-aria-hidden]").length&&F(this.activeTarget.target[0]);this.popupResize()};aa.prototype.closePopup=function(){H.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&W();null!==this.activeCta&&this.activeCta.focus();this.activeTarget.hide();this.activeTarget.off("keydown",this.handler.eventFocusLock);l(this.activeCta).focus();this.activeTarget.find(".swiper-button-prev").removeAttr("tabindex");this.activeTarget.find(".swiper-button-next").removeAttr("tabindex");
457this.popupResize(!1);this.activeTarget=this.activeCta=null};aa.prototype.popupResize=function(U){U=void 0===U?!0:U;var B=document.documentElement.clientHeight,w=this.activeTarget.find(".layer-popup__inner"),e=this.activeTarget.find(".scrollbar"),p=this.activeTarget.find(".scrollbar__wrap");!0===U?(this.isPc?B<=w.target[0].getBoundingClientRect().height?(w.css({"min-height":B+"px",height:B+"px"}),w=w.target[0].getBoundingClientRect(),B=p.target[0].getBoundingClientRect(),w=parseInt(w.height-B.top),
458e.css({height:w+"px"})):(w.css({"min-height":"",height:""}),e.css({height:""})):(p=p.target[0].getBoundingClientRect(),B=parseInt(B-p.top),w.css({"min-height":""}),e.css({height:B+"px"})),setTimeout(function(){u.resize(e.target[0])},300)):(w.css({"min-height":"",height:""}),e.css({height:""}))};var x=function(U){U=void 0===U?{visibleScrollTop:!0}:U;l(".pdd16-step-buying-v2").target.forEach(function(B){aa.instances.has(B)?aa.instances.get(B).reInit():new aa(B)});U.visibleScrollTop&&(H.visibleScroll(),
459window.scrollTo(0,0))};aa.instances=new WeakMap;l.ready(x);window.sg.components.stepbuyingV2={init:x,cardReInit:function(U){var B=l(U).closest(".pdd16-step-buying-v2").target[0];aa.instances.has(B)&&aa.instances.get(B).cardReInit(U)},clearAll:function(U){aa.instances.has(U)&&aa.instances.get(U).clearAll()},cardSelect:function(U,B){B=void 0===B?null:B;var w=l(U).closest(".pdd16-step-buying-v2").target[0];aa.instances.has(w)&&aa.instances.get(w).clickSelect(U,B)},activePopup:function(U){l(".pdd16-step-buying-v2").target.forEach(function(B){aa.instances.has(B)&&
460aa.instances.get(B).activePopup(U)})},closePopup:function(){l(".pdd16-step-buying-v2").target.forEach(function(U){aa.instances.has(U)&&aa.instances.get(U).closePopup()})}}})();
461(function(){var l=window.sg.common.$q,g=window.sg.common.constants.KEY_CODE,H=function(n){var v=this;this.selector={discountTitle:".us-epp-discount__title",selectWrap:".us-epp-discount__select",selectCta:".us-epp-discount__select-cta",selectItem:'.us-epp-discount__select-item input[type\x3d"radio"]',learnMore:".us-epp-discount__select-link .cta",selectOpenCls:"us-epp-discout__select--open",fixedCls:"us-epp-discount--fiexd"};this.el={component:l(n),fixDummy:null};this.isFixOnce=!1;this.handler={toggleLayer:this.toggleLayer.bind(this),
462setFocusLock:this.setFocusLock.bind(this),resizeFix:function(){0<v.el.fixDummy.target.length&&v.el.fixDummy.css({height:v.el.component.height()+"px"})}};H.instances.set(n,this);this.setElements();this.init()};H.prototype.setElements=function(){this.el.discountTitle=this.el.component.find(this.selector.discountTitle);this.el.selectWrap=this.el.component.find(this.selector.selectWrap);this.el.selectCta=this.el.component.find(this.selector.selectCta);this.el.hiddenText=this.el.selectCta.find(".hidden");
463this.el.selectItem=this.el.component.find(this.selector.selectItem);this.el.learnMore=this.el.component.find(this.selector.learnMore);this.el.fixDummy=l(this.el.component.target[0].nextElementSibling);this.globalText=0<this.el.selectCta.target.length?JSON.parse(this.el.selectCta.target[0].dataset.globalText):null};H.prototype.init=function(){this.bindEvents()};H.prototype.reInit=function(){this.setElements();this.bindEvents()};H.prototype.toggleLayer=function(){this.el.selectWrap.hasClass(this.selector.selectOpenCls)?
464this.closeLayer():this.openLayer()};H.prototype.openLayer=function(){this.el.selectWrap.addClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Close)};H.prototype.closeLayer=function(){this.el.selectWrap.removeClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Open)};H.prototype.setFixed=function(n){!1===this.isFixOnce&&(this.isFixOnce=!0);n?this.el.component.target[0].classList.contains(this.selector.fixedCls)||this.el.component.addClass(this.selector.fixedCls):
465this.el.component.target[0].classList.contains(this.selector.fixedCls)&&this.el.component.removeClass(this.selector.fixedCls)};H.prototype.setFocusLock=function(n){n.keyCode===g.TAB&&!1===n.shiftKey&&(this.el.selectCta.focus(),this.closeLayer(),n.preventDefault())};
465H.prototype.bindEvents=function(){this.el.selectCta.off("click",this.handler.toggleLayer).on("click",this.handler.toggleLayer);this.el.learnMore.off("keydown",this.handler.setFocusLock).on("keydown",this.handler.setFocusLock);l(window).off("resize",
466this.handler.resizeFix).on("resize",this.handler.resizeFix);this.handler.resizeFix()};var u=function(){l(".us-epp-discount").target.forEach(function(n){H.instances.has(n)||new H(n)})};H.instances=new WeakMap;l.ready(u);window.sg.components.usEppDiscount={init:u,reInit:function(){l(".us-epp-discount").target.forEach(function(n){H.instances.has(n)?H.instances.get(n).reInit():new H(n)})},closeLayer:function(){l(".us-epp-discount").target.forEach(function(n){H.instances.has(n)&&H.instances.get(n).closeLayer()})},
467setFixed:function(n){l(".us-epp-discount").target.forEach(function(v){H.instances.has(v)&&H.instances.get(v).setFixed(n)})}}})();
468(function(l,g){function H(){g("#spaceWidth, #spaceHeight, #spaceDepth").on("keyup",function(){var w=g("#spaceWidth").val(),e=g("#spaceHeight").val(),p=g("#spaceDepth").val();""==w&&""==e&&""==p?u():""!=w&&""!=e&&""!=p&&n()})}function u(){g(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("is-show");g(".pd-sellout-option__dimensions-popup-cta button").addClass("cta--disabled");g(".pd-sellout-option__dimensions-popup-cta button").html(F);g(".pd-sellout-option__dimensions-popup-cta button").attr("an-la",
469"dimension popup:lets measure your space:check fit");g("#spaceWidth").val("");g("#spaceHeight").val("");g("#spaceDepth").val("");g("#spaceWidth").parent().parent().removeClass("delete").removeClass("active");g("#spaceHeight").parent().parent().removeClass("delete").removeClass("active");g("#spaceDepth").parent().parent().removeClass("delete").removeClass("active");g(".pd-sellout-option__dimensions-popup-cta button").off("click").on("click",function(w){})}function n(){g(".pd-sellout-option__dimensions-popup-cta button").removeClass("cta--disabled");
470g(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("is-show");g(".pd-sellout-option__dimensions-popup-cta button").html(F);g(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:check fit");g(".pd-sellout-option__dimensions-popup-cta button").off("click").on("click",function(w){});g(".pd-sellout-option__dimensions-popup-cta button").on("click",function(w){v()})}function v(){var w=Number(g("#packageWidth").val()),e=Number(g("#packageHeight").val()),
471p=Number(g("#packageDepth").val()),k=Number(g("#spaceWidth").val()),A=Number(g("#spaceHeight").val()),ca=Number(g("#spaceDepth").val()),K=g("#packageUnit").val();w<k&&e<A&&p<ca?(g(".pd-sellout-option__dimensions-popup-result-wrap").addClass("is-show"),g(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("error"),g(".pd-sellout-option__dimensions-popup-cta button").html(W),g(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:done"),
472g(".pd-sellout-option__dimensions-popup-result-title").html(x),"th"==siteCode?g(".pd-sellout-option__dimensions-popup-result-text").html(U+" "+Granite.I18n.get("W{0} X H{1} X D{2}
472",[k+" "+K,A+" "+K,ca+" "+K])):g(".pd-sellout-option__dimensions-popup-result-text").html(U+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k,A,ca])),g(".pd-sellout-option__dimensions-popup-cta button").on("click",function(D){window.sg.components.SelloutOption.closePopup();u()})):(g(".pd-sellout-option__dimensions-popup-result-wrap").addClass("is-show"),
473g(".pd-sellout-option__dimensions-popup-result-wrap").addClass("error"),g(".pd-sellout-option__dimensions-popup-cta button").html(aa),g(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:measure again"),g(".pd-sellout-option__dimensions-popup-result-title").html(B),"th"==siteCode?g(".pd-sellout-option__dimensions-popup-result-text").html(U+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k+" "+K,A+" "+K,ca+" "+K])):g(".pd-sellout-option__dimensions-popup-result-text").html(U+
474" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k,A,ca])),g(".pd-sellout-option__dimensions-popup-cta button").on("click",function(D){n();w>=k?g("#spaceWidth").focus():e>=A?g("#spaceHeight").focus():p>=ca&&g("#spaceDepth").focus()}))}Granite.I18n.get("Width");Granite.I18n.get("Height");Granite.I18n.get("Depth");Granite.I18n.get("Ex.");var F=Granite.I18n.get("Check fit"),W=Granite.I18n.get("Done",null,"ux25"),aa=Granite.I18n.get("Measure again"),x=Granite.I18n.get("It will be a perfect fit."),U=Granite.I18n.get("Your dimensions:"),
475B=Granite.I18n.get("It will not fit your space. Please measure again.");g(function(){H()});window.sg.components.dynamic.Dimension={init:H}})(window,window.jQuery);
476(function(l){var g=window.sg.components.ProductDetailKvNew,H=window.sg.components.PDbuyingToolNew,u=window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2"),n=l(".hdd02-pdp-header"),v=n.find(".sg-pdh-gallery-section"),F=n.find(".sg-pdh-buying-tool");u.PDPHeaderUI={isDebug:!0,$ui:n,optionClose:g.optionClose,openBezelPopup:g.openBezelPopup,triggerChange:H.triggerChange,gallery:{init:function(){v.find("#galleryPopupViewMoreButton").off("click.tagging").on("click.tagging",function(){var W=l(this),
477aa=W.children("span.text").text();W.attr("data-more-text")===aa?W.attr("an-la","gallery popup:view less"):W.attr("an-la","gallery popup:view more")})}},buyingTool:{$wrapper:F,$ui:F.children("section.hdd02-buying-tool"),$options:F.find(".sg-pdh-buying-options"),showMessage:H.showMessage,bindPdTooltipEvent:H.bindPdTooltipEvent,bindComboOfferEvent:H.bindComboOfferEvent,openAddOnLearnMore:H.openAddOnLearnMore,viewMoreVDAddOn:H.viewMoreVDAddOn}}})(jQuery);
478var bc_rewards=function(){var l=function(){var H;return{isNew:function(u){return H!==u},get modelCode(){return H},set modelCode(u){this.isNew(u)&&(H=u)}}}(),g=function(H,u){var n,v,F,W;return $jscomp.asyncExecutePromiseGeneratorProgram(function(aa){if(1==aa.nextAddress)return aa.setCatchFinallyBlocks(2),(n=l.isNew(u))?aa.yield(H.fetch(u),4):aa.return();if(2!=aa.nextAddress)return v=aa.yieldResult,F=v.rewardsPolicies,H.setContext(F),l.modelCode=u,aa.leaveTryBlock(0);W=aa.enterCatchBlock();console.error("[Rewards] Fetch error",
479W);H.setContext(void 0);aa.jumpToEnd()})};return{calculate:function(H,u){var n;return function(v){for(var F=[],W=0;W<arguments.length;++W)F[W-0]=arguments[W];n&&clearTimeout(n);return new Promise(function(aa){n=setTimeout(function(){var x=$jscomp$this,U;return $jscomp.asyncExecutePromiseGeneratorProgram(function(B){if(1==B.nextAddress)return B.yield(H.apply(x,F),2);U=B.yieldResult;aa(U);B.jumpToEnd()})},u)})}}(function(H){var u,n,v,F,W,aa,x;return $jscomp.asyncExecutePromiseGeneratorProgram(function(U){return 1==
480U.nextAddress?(u=H,n=u.modelCode,v=u.totalPrice,F=v.sale,W=u.rewards,aa=W.context,x=W.calculator,U.yield(g(aa,n),2)):aa.initialized?U.return(x.calculate({context:aa,totalPrice:F})):U.return(void 0)})},300),convertToDisplay:function(H,u){if(u){var n=H.rewards;H=n.pageContext;n=n.context;var v=u.totalPoint;H=n.isConfigEnabled("useNumberFormatterByLocale")?new Intl.NumberFormat(H.locale):new Intl.NumberFormat;return{result:u,visible:!!u,formatted:{totalPoint:[H.format(v),"P"].join(" ")},isGuest:n.isGuest,
481rewardsMemeberCheckSite:n.rewardsMemeberCheckSite,isNonRewardsMember:n.isNonRewardsMember,isRewardsMember:n.isRewardsMember}}}}}();
482(function(l){var g=function(H){var u=void 0===H.config?{}:H.config;H=void 0===H.pageContext?{}:H.pageContext;this.initialized=!1;this.config=u;this.pageContext=H};g.prototype.fetch=function(H){var u=this,n,v,F,W,aa,x,U;return $jscomp.asyncExecutePromiseGeneratorProgram(function(B){n=u.pageContext;v=n.searchDomain;F=n.apiStageInfo;W=n.siteCode;aa=n.channel;x=n.tierCode;U=new URLSearchParams;U.set("siteCode",W);U.set("channel",aa);U.set("modelCode",H);U.set("tierCode",x||"T001");return B.return(new Promise(function(w,
483e){$.ajax({url:v+"/"+F+"/b2c/rewards-policy?"+U.toString(),type:"GET",dataType:"json",data:JSON,cache:!0,timeout:2E4,success:function(p){return w(p.response.resultData)},error:function(p){return e(p)}})}))})};g.prototype.setContext=function(H){this.initialized=!!H;this.rewardsPolicies=H||[]};g.prototype.summarizePolicies=function(){var H=this;return this.rewardsPolicies.map(function(u){return Object.assign({},{policyId:u.policyId,policyType:u.policyType,currencyConversionRate:u.currencyConversionRate},
484H.sumPolicyItems(u.items))})};g.prototype.sumPolicyItems=function(H){return{fixed:H.filter(function(u){return"1"===u.pointType}).reduce(function(u,n){return u+n.point},0),ratio:H.filter(function(u){return"2"===u.pointType}).reduce(function(u,n){return u+n.point},0)}};g.prototype.isConfigEnabled=function(H){var u=this.pageContext.siteCode;return(H=this.config[H])?0<H.filter(function(n){return n===u}).length:!1};$jscomp.global.Object.defineProperties(g.prototype,{available:{configurable:!0,enumerable:!0,
485get:function(){var H=this.pageContext,u=H.isEpp;return this.config.allowedSites.includes(H.siteCode)&&!u}},isGuest:{configurable:!0,enumerable:!0,get:function(){return!this.pageContext.isLogin}},rewardsMemeberCheckSite:{configurable:!0,enumerable:!0,get:function(){var H=this.pageContext,u=H.isEpp;return this.config.rewardsMemeberCheckSite.includes(H.siteCode)&&!u}},isNonRewardsMember:{configurable:!0,enumerable:!0,get:function(){var H=this.pageContext,u=H.tierCode;return!!H.isLogin&&!u}},isRewardsMember:{configurable:!0,
486enumerable:!0,get:function(){var H=this.pageContext,u=H.tierCode;return!!H.isLogin&&!!u}}});l.dynamic=l.dynamic||{};l.dynamic.RewardsPolicyContext=g})(window.sg.components);
487(function(l){var g=function(){this.modelContext=this.context=null;this.state={}};g.prototype.calculate=function(H){var u=H.totalPrice;this.context=H.context;this.state={};this.rewards=void 0;this.modelContext={totalPrice:Number.isNaN(u)?0:Number(u)};this.beforeCalculate();this._calculate();return this.rewards};g.prototype.beforeCalculate=function(){this.state.rewardsPolicies=this.context.summarizePolicies()};g.prototype._calculate=function(){var H=this.modelContext.totalPrice,u=this.state.rewardsPolicies.reduce(function(n,
488v){return n+(v.ratio/100*H/v.currencyConversionRate+v.fixed)},0);this.rewards={totalPoint:Math.round(u)}};l.dynamic=l.dynamic||{};l.dynamic.RewardsCalculator=g})(window.sg.components);
489(function(){function l(a){var c=Math.pow(10,2);a=Number(a)/1.95583;a=Math.round(a*c)/c;return currencyComma(a,"EUR")}function g(a){var c=Math.pow(10,2);a=1.95583*Number(a);a=Math.round(a*c)/c;return currencyComma(a,"BGN")}function H(a,c){a=void 0===a?0:a;c=void 0===c?function(){}:c;var m=[],f="";"number"!==typeof a&&(a=0);for(var q=1;q<=a;q++)f="descListText"+q,m.push(f);"function"===typeof c&&c(m);return m}function u(a){var c=$("#priceCurrency").val(),m="se no dk fi fr ch ch_fr at pt cz ro be nl be_fr".split(" ").includes(siteCode),
490f=["uk"].includes(siteCode),q="fr"===siteCode?"from":"From";$.each(a,function(ba,J){var ha=!1;ba=$.map(J.itemSet,function(Ka,Qa){Qa=Ka.cycle;var Oa="mo"===Qa?1:"yr"===Qa?2:3,Sa=Ka.oriPriceValue,Ra=Ka.paymentCycle,Ua=currencyComma(Sa,c),Y=Ka.optionOriWasPrice,ja=currencyComma(Y,c),ya=null!=Ka.freeMonths?Ka.freeMonths:"0";"monthly"==Ka.paymentCycle&&null!=Ka.freeMonths&&""!=Ka.freeMonths&&"0"!=Ka.freeMonths&&(ha=!0);return{flag:Qa,price:Sa,sortNo:Oa,formattedPrice:Ua,paymentCycle:R
490a,wasPrice:Y,formattedWasPrice:ja,
491freeMonths:ya}});if("ro"==siteCode||"at"==siteCode||"cz"==siteCode||"be"==siteCode||"nl"==siteCode||"be_fr"==siteCode){var qa="ro"==siteCode?"{0}/month SC+":"{0}/month",ia=0,za=0,Ja="",Fa="";$.each(ba,function(Ka,Qa){if(0==ia||ia>Qa.price)ia=Qa.price,Ja="mo"===Qa.flag?Granite.I18n.get(qa,currencyComma(ia,c)):currencyComma(ia,c);za<Qa.price&&(za=Qa.price,Fa=currencyComma(za,c))});var Ba="";1<ba.length?Ba=""+Granite.I18n.get("From {0} or {1}",[Ja,Fa]):1==ba.length&&(Ba=""+Ja);J.depthOnePrice=Ba}else{ba.sort(function(Ka,
492Qa){return Ka.sortNo-Qa.sortNo});var Ha=0;if("es"===siteCode){var Va=99999999;$.map(ba,function(Ka,Qa){"monthly"!=Ka.paymentCycle&&(Ka.price<Va&&(Ha=Ka.formattedPrice),Va=Ka.price)})}else if("se"===siteCode||"no"===siteCode||"dk"===siteCode||"fi"===siteCode||"ae"===siteCode||"ae_ar"===siteCode||"uk"===siteCode||"it"===siteCode||"fr"===siteCode){var Na=99999999;$.map(ba,function(Ka,Qa){"monthly"==Ka.paymentCycle&&(Ka.price<Na&&(Ha=Ka.formattedPrice),Na=Ka.price)})}var ka=!0,La=$.map(ba,function(Ka,
493Qa){var Oa="";["uk","it","fr"].includes(siteCode)?ha?"monthly"===Ka.paymentCycle&&ka&&null!=Ka.freeMonths&&"0"!=Ka.freeMonths&&(Oa=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ka.freeMonths,Ha]),ka=!1):ka&&(Oa+=""+Ka.formattedPrice,"mo"===Ka.flag&&(Oa+=""+Granite.I18n.get("SC+ Popup Bundle mo price"))):["ae","ae_ar"].includes(siteCode)?ha?"monthly"===Ka.paymentCycle&&ka&&null!=Ka.freeMonths&&"0"!=Ka.freeMonths&&(Oa=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ka.freeMonths,Ha]),ka=!1):
494ka&&(Oa+=""+Ka.formattedPrice,"mo"===Ka.flag&&(Oa+="/"+Granite.I18n.get("month"))):"es"==siteCode?"monthly"===Ka.paymentCycle?Oa+=Ka.formattedPrice+"/mes":(ka&&(Oa+=Ha),isNotEmpty(Ka.flag)&&f&&(Oa+="/"+Granite.I18n.get(Ka.flag)),ka=!1):["se","dk","no","fi"].includes(siteCode)?"monthly"===Ka.paymentCycle&&ka&&(Oa=null!=Ka.freeMonths&&"0"!=Ka.freeMonths?Granite.I18n.get("freeMonths {0}/month, from {1}",[Ka.freeMonths,Ha]):Granite.I18n.get("freeMonths_null {0}/month",[Ha]),ka=!1):(0===Qa&&m&&(Oa=Granite.I18n.get(q)+
495" "),Oa+=""+Ka.formattedPrice,"mo"===Ka.flag?Oa+="/"+Granite.I18n.get(Ka.flag):isNotEmpty(Ka.flag)&&f&&(Oa+="/"+Granite.I18n.get(Ka.flag)));return Oa}).join(" "+Granite.I18n.get("or")+" ");ba=["se","no","fi","dk"];Ba=" "+Granite.I18n.get("or")+" ";["uk","ae","ae_ar","it","fr"].includes(siteCode)&&(ka?(La=La.split(Ba),La.sort(function(Ka,Qa){return Ka.substring(0,Ka.indexOf(" "))-Qa.substring(0,Qa.indexOf(" "))}),["ae","ae_ar"].includes(siteCode)&&2<La.length&&La.splice(1,La.length-2),La=La.join(" "+
496Granite.I18n.get("or")+" ")):ba.push(siteCode));if("es"===siteCode){La=La.trim();for(var Da=0;3>Da;Da++)La.endsWith("o")&&(La=La.slice(0,-2))}ba.includes(siteCode)&&(La=La.replaceAll(Ba,""));J.depthOnePrice=La}})}function n(a,c){a=Number(a)/Number(c)*Math.pow(10,2);a=Number(a).toFixed(2);return a=a.replace(".",",")}function v(a,c,m){a=(Number(c)-Number(m))/Number(m)*Math.pow(10,2);console.log(a);a=Math.round(a);console.log(a);return a}function F(a,c){digitalData.product.model_code=a.modelCode?a.modelCode.replace(/&/g,
497" and ").replace(/  /g," "):"";digitalData.product.model_name=a.modelName?a.modelName.replace(/&/g," and ").replace(/  /g," "):"";digitalData.product.model_price=parseFloat(a.totalPrice.sale).toFixed(2);digitalData.product.list_price=a.proudctPriceInfo.orignalPrice;digitalData.product.displayName=a.displayName?a.displayName.replace(/&/g," and ").replace(/  /g," "):"";digitalData.product.pd_type=a.stockLevelStatus&&"NOORDER"!==a.stockLevelStatus?"sale":"no sale";digitalData.product.products=a.modelName?
498a.modelName.replace(/&/g," and ").replace(/  /g," "):"";c=0;var m="",f=digitalData.page.pageInfo.siteCode;""!=digitalData.page.pathIndicator.depth_2&&(f+=":"+digitalData.page.pathIndicator.depth_2,c=2,m=digitalData.page.pathIndicator.depth_2);""!=digitalData.page.pathIndicator.depth_3&&(f+=":"+digitalData.page.pathIndicator.depth_3,c=3,m=digitalData.page.pathIndicator.depth_3);""!=digitalData.page.pathIndicator.depth_4&&(f+=":"+digitalData.page.pathIndicator.depth_4,c=4,m=digitalData.page.pathIndicator.depth_4);
499""!=digitalData.page.pathIndicator.depth_5&&(f+=":"+digitalData.page.pathIndicator.depth_5,c=5,m=digitalData.page.pathIndicator.depth_5);var q=a.currentPdpUrl?a.currentPdpUrl.split("/"):[];if(q&&0<q.length){a="";q=$jscomp.makeIterator(q);for(var ba=q.next();!ba.done;ba=q.next())(ba=ba.value)&&""!==ba&&(a=ba);a=a.replace(/&/g," and ").replace(/  /g," ");digitalData.page.pathIndicator["depth_"+c]=a;f.replace(m,a)}}function W(a,c){c=a.siteCode;if("pt"===c||"es"===c||"fr"===c)if(xa){if(!a.isNotFirstReward){c=
500$("#searchDomain").val();var m=$("#apiStageInfo").val();c=c+"/"+m+"/epp/v2/cms/storeinfo";m={siteCode:$("#siteCode").val(),companyCode:$("#eppCompanyCode").val()};$.ajax({url:c,type:"GET",data:m,dataType:"json",cache:!0,crossDomain:!0,timeout:2E4,success:function(f){f.response&&f.response.resultData&&f.response.resultData.storeInfo&&"Y"===f.response.resultData.storeInfo.rewardsDisplayYN&&$("#pd-rewards-msg").show()}});a.isNotFirstReward=!0}}else $("#pd-rewards-msg").show()}function aa(a,c,m){m=m.buyingToolOptMemory;
501c?$(m).find(".pd-option-selector__sub-text").empty():$(m).find(".pd-select-option__item").each(function(){if($(this).find(".option-input").is(":checked"))return $(this).find(".pd-option-selector__sub-text").html(a),!1})}function x(a,c,m){var f=a.util,q=c.buyingToolOptOffer.find(".pd-offer__item.bogo"),ba=f.hasOffer(a,c);c=f.hasBogo(a,c);
501ba&&c&&(q=q.find(".pd-price").attr("data-price"))&&(m.original=parseFloat(m.original)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function U(a,c,m){var f=
502a.disabledClass;c=c.buyingToolOptCareResult;f=c.hasClass(a.hasComponentClass)&&!c.hasClass(f);var q=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+parseFloat(q),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function B(a,c,m){var f=a.disabledClass;c=c.buyingToolOptWarrantyResult;f=c.hasClass(a.hasComponentClass)&&!c.hasClass(f);var q=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");
503f&&(m.original=parseFloat(m.original)+parseFloat(q),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function w(a,c,m){var f=a.disabledClass;c=c.buyingToolOptWarrantyVdResult;f=c.hasClass(a.hasComponentClass)&&!c.hasClass(f);c=c.find(".option-result__text-wrap").attr("data-price");f&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function e(a,c,m){var f=a.util,q=$(c.buyingToolOptTradeInResult);
504c=f.hasTradeInResult(a,c);q="vn"==siteCode?q.find(".option-result__multiple").attr("data-price"):q.find(".result-price").attr("data-price");c&&q&&!a.drawObj.tradeInResult.priceOverFlag&&(m.sale=parseFloat(m.sale)-parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function p(a,c,m){var f=a.util.hasAssuredBuyBackResultResult(a,c),q=c.buyingToolOptAssuredBuyBackResult;c=q.find(".result-price").attr("data-price");q=q.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+
505parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function k(a,c,m){var f=a.util.hasNewAssuredBuyBackResult(a,c),q=c.buyingToolOptNewAssuredBuyBackResult;c=q.find(".result-price").attr("data-price");q=q.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function A(a,c,m){var f=a.hasComponentClass,q=a.disabledClass,ba=c.buyingToolOptOffer.find(".pd-offer__item.giftBundle");
506c=c.buyingToolOptOffer;if(c.hasClass(f)&&!c.hasClass(q))for(c=0;c<ba.length;c++){var J=$(ba.get(c));if(J.hasClass(f)&&!J.hasClass(q)){J=J.find(".pd-offer__selected-bundle");for(var ha=0;ha<J.length;ha++){var qa=$(J.get(ha)).attr("data-price"),ia=$(J.get(ha)).attr("data-sale-price");qa&&(m.original=parseFloat(m.original)+parseFloat(qa),m.sale=parseFloat(m.sale)+parseFloat(ia),a.getOptoinPrice||(a.getOptoinPrice=!0))}}}}function ca(a,c,m){var f=a.hasComponentClass,q=a.disabledClass,ba=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");
507c=c.buyingToolOptOffer;if(c.hasClass(f)&&!c.hasClass(q))for(c=0;c<ba.length;c++){var J=$(ba.get(c));if(J.hasClass(f)&&!J.hasClass(q)){J=J.find(".pd-offer__selected-bundle");for(var ha=0;ha<J.length;ha++){var qa=$(J.get(ha)).attr("data-price"),ia=$(J.get(ha)).attr("data-sale-price");qa&&(m.original=parseFloat(m.original)+parseFloat(qa),m.sale=parseFloat(m.sale)+parseFloat(ia),a.getOptoinPrice||(a.getOptoinPrice=!0))}}}}function K(a,c,m){var f=a.hasComponentClass,q=a.disabledClass;c=$(c.buyingToolOptTariffResult);
508f=c.hasClass(f)&&!c.hasClass(q);q=c.find(".result-price").attr("data-price");f&&q&&("fr"==a.siteCode?(m.original=parseFloat(m.original),m.sale=parseFloat(m.sale)+parseFloat(q)):(m.original=parseFloat(m.original)-parseFloat(a.proudctPriceInfo.orignalPrice)+parseFloat(q),m.sale=parseFloat(m.sale)-parseFloat(a.proudctPriceInfo.salePrice)+parseFloat(q)),a.getOptoinPrice||(a.getOptoinPrice=!0))}function D(a,c,m){a.drawObj.tariffOptionResult.hasComponent&&("uk"===siteCode?(m.original=parseFloat(m.original)-
509a.proudctPriceInfo.orignalPrice+parseFloat(a.tariffPrice),m.sale=parseFloat(m.sale)-a.proudctPriceInfo.salePrice+parseFloat(a.tariffPrice)):"au"===siteCode&&(m.original=parseFloat(m.original)-parseFloat(a.tariffPrice),m.sale=parseFloat(m.sale)-parseFloat(a.tariffPrice)),a.getOptoinPrice||(a.getOptoinPrice=!0))}function h(a,c,m){var f=c.buyingToolOptEmbedAddon;c=f.hasClass(a.hasComponentClass);var q=0<$(".option-embed-addon .add-on-product-list-wrap--vd").length?".add-on-product-list-wrap--vd":".add-on-product-list-wrap",
510ba=parseFloat(f.find(q).attr("data-total-price"));f=parseFloat(f.find(q).attr("data-total-sale-price"));c&&ba&&(m.original=parseFloat(m.original)+ba,m.sale=parseFloat(m.sale)+f,a.getOptoinPrice||(a.getOptoinPrice=!0))}function C(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptBetween.on("click","#pd-leasing-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util;"nl"===f.siteCode&&(!0===f.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").show(),$(".pd-select-option.pd-select-option--type-offer").show());
511q.hasBetween(f,m)&&(q.removeBetweenResult(f,m),q.totalAfterFunction(f,m))});c.buyingToolOptBetween.on("click","#pd-leasing-1",a,function(m){$(this).attr("data-payment-value");var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=q.hasBetween(f,m);q.hasTradeInResult(f,m);"nl"===f.siteCode&&(!0===f.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").hide(),$(".pd-select-option.pd-select-option--type-offer").hide());ba&&(q.addBetweenResult(f,m),q.totalAfterFunction(f,m))})}function E(a,
512c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariffPlan.on("click","#pd-carrier-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util;q.removeTariffPlanResult(f,m);q.totalAfterFunction(f,m)});c.buyingToolOptTariffPlan.on("click",".option-input:not(#pd-carrier-0)",a,function(m){var f=$(this),q=m.data.sharedObj;m=m.data.selectorObj;var ba=q.util,J=q.tariffPlanSelectedClass;ba.hasTariffPlan(q,m)&&(ba.removeTariffPlanSelectedClass(q,m),f.addClass(J),ba.addTariffPlanResult(q,m),
513ba.totalAfterFunction(q,m))})}function T(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#pd-trade-in-0, .open-trade-popup",a,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.util,ha=q.shopSkuCode,qa=J.hasTradeIn(q,ba),ia=J.hasOffer(q,ba),za=q.pdHrefLang,Ja=q.pdMultiLanguageYN,Fa=q.apiDomain,Ba=q.proudctPriceInfo.salePrice,Ha=J.hasForeverResult(q,ba),Va=q.tradeInType,Na=!1,ka=!1;f.preventDefault();if(!qa)return!1;if((new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()){if(q.isMultiTradeIn){Fa=
514$(f.currentTarget).attr("data-trade-index");q.checkedIndex=-1;if(!Fa&&q.drawObj.tradeInResult.list&&q.drawObj.tradeInResult.list.length>=q.maxTradeInsAllowed)return!1;Fa&&(q.checkedIndex=Fa)}(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein");bc_common_tradeIn.init(q.modelCode)}else if("in"===siteCode)ia&&(Na=J.hasBogo(q,ba),ka=J.hasComboResult(q,ba)),"CE"===Va?("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&window.flutter_inappwebview.callHandler("getPinCode").then(function(La){sielTradeIn.prepopulatePinCode(La)}).catch(function(){}),
515window.sg.components.sielTradeInPopup.showPopup()):(0==$(".bc-exchange-popup").length&&(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("instant-exchange"),setTimeout(function(){Na||k
515a?configuratorExchange.setExchange(!0,Ba,Ha):configuratorExchange.setExchange(!1,Ba,Ha);window.sg.components.bcExchangePopup.showPopup()},200));else if("uk"===siteCode&&"CE"===Va)-1<window.location.host.indexOf("p6-pre-qa3.")&&(ba.buyingToolOptTradeIn.find("#pd-trade-in-0").attr("data-total-price")||
516sielTradeIn.callSkuDevicesAjax(q),window.sg.components.sielTradeInPopup.showPopup());else if(q.ceTradeUpPopup.isEnabled)"ro"!==siteCode||q.isTradeUp?window.CeTradeUpPopup.openPopup():tradeinData.showPopup();else if("fr"===siteCode)q.isMigrationHybris?(Fa=q.util.hasBetweenResult(q,ba),f=q.proudctPriceInfo.orignalPrice,tradeinData.setTradein(f,Fa?"LEASE":"PURCHASE"),tradeinData.showPopup()):(f={sku:ha},xa&&(f.store_id=$("#eppCompanyCode").val()),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json",
517"Access-Control-Allow-Origin":"*"},url:Fa+"/v1/exchange/offers",type:"POST",dataType:"json",data:JSON.stringify(f),xhrFields:{withCredentials:!0},beforeSend:function(La){"Y"===Ja&&La.setRequestHeader("x-ecom-locale",za)},success:function(La){if(La){var Da=q.util.hasBetweenResult(q,ba);tradeinData.setTradein(La,q.proudctPriceInfo.orignalPrice,Da?"LEASE":"PURCHASE");tradeinData.showPopup()}},error:function(La){var Da="";La.responseJSON&&La.responseJSON.message&&(Da=La.responseJSON.message);confirmPopup(Da)}}));
518else{if(q.isMultiTradeIn){Fa=$(f.currentTarget).attr("data-trade-index");q.checkedIndex=-1;if(!Fa&&q.drawObj.tradeInResult.list&&q.drawObj.tradeInResult.list.length>=q.maxTradeInsAllowed)return!1;Fa&&(q.checkedIndex=Fa)}tradeinData.showPopup()}});var m=function(f,q){var ba=f.util,J=f.view,ha=f.drawObj,qa=ba.hasForever(f,q),ia=ba.hasUpgradeResult(f,q),za=$("#siteCode").val(),Ja=window.location.pathname.replace("/content/samsung","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(Ja)&&
519sessionStorage.removeItem(Ja);null!==ha.deliveryResult.priorityText&&!0===ha.tradeInResult.isUpfront&&$(q.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(f.isMultiTradeIn){if(-1<f.checkedIndex){"kz_kz"===f.siteCode||"kz_ru"===f.siteCode?(ha.tradeInResult.list.forEach(function(Ha){bc_common_tradeIn.removeDevice(Ha.imeiKey)}),ha.tradeInResult.list.splice(0)):ha.tradeInResult.list.splice(f.checkedIndex,1);Ja=ha.tradeInResult.additionalDiscountFlag;("sg"===za||"vn"===za||"id"===za||
520Ja)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(f,ha.tradeInResult);for(Ja=0;Ja<ha.tradeInResult.list.length;Ja++)ha.tradeInResult.list[Ja].index=Ja;"cn"==za&&(Ja=ha.tradeInResult.list,void 0!=ha.tradeInResult&&void 0!=Ja&&0<Ja.length&&(Ja=bc_common_tradeIn.directConditionCall(),Ja.done(function(Ha,Va,Na){var ka=ha.tradeInResult.list.length,La=0,Da=0;$.each(Ha.result.additionalParameters.entry,function(Ka,Qa){"ticketMoney"===Qa.key&&(La=Qa.value);"o2oTicketMoney"===Qa.key&&
521(Da=Qa.value)});$.each(ha.tradeInResult.list[ka-1].services.tradeInAdditionalInfo,function(Ka,Qa){"ticketMoney"===Qa.key&&(ha.tradeInResult.list[ka-1].services.tradeInAdditionalInfo[Ka].value=La);"o2oTicketMoney"===Qa.key&&(ha.tradeInResult.list[ka-1].services.tradeInAdditionalInfo[Ka].value=Da)})}),Ja.fail(function(Ha,Va,Na){})))}else ha.tradeInResult.list=[];if(f.isMultiTradeIn&&ha.tradeInResult.list&&0<ha.tradeInResult.list.length){"tr"==za?(ha.tradeInResult.dataPrice=ha.tradeInResult.list.reduce(function(Ha,
522Va){return Ha+parseInt(Va.dataCashBack)},0),ha.tradeInResult.dataPrice+=ha.tradeInResult.list[0].services.tradeInSpecialPrice,ha.tradeInResult.list[0].firstcheck=!0,ha.tradeInResult.list[0].othercheck=!1):ha.tradeInResult.dataPrice=ha.tradeInResult.list.reduce(function(Ha,Va){return Ha+Va.dataPrice},0);if("cn"==za){var Fa=0;$.each(ha.tradeInResult.list,function(Ha,Va){$.each(Va.services.tradeInAdditionalInfo,function(Na,ka){"ticketMoney"===ka.key&&Fa<ka.value&&(Fa=ka.value)})});ha.tradeInResult.totalTicketMoney=
523Fa;ha.tradeInResult.totalTicketMoneyText=0==Fa?"":Granite.I18n.get("Additional Trade in discount from Samsung")+": "+currencyComma(Fa,f.priceCurrency);ha.tradeInResult.dataPrice=parseFloat(ha.tradeInResult.dataPrice)+parseFloat(Fa);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Ba=0;
523$.each(ha.tradeInResult.list,function(Ha,Va){$.each(Va.services.tradeInAdditionalInfo,function(Na,ka){"o2oTicketMoney"===ka.key&&Ba<ka.value&&(Ba=ka.value)})});ha.tradeInResult.totalO2oTicketMoney=
524Ba;ha.tradeInResult.totalO2oTicketMoneyText=0==Ba?"":Granite.I18n.get("O2O special subsidy")+": "+currencyComma(Ba,f.priceCurrency);ha.tradeInResult.dataPrice=parseFloat(ha.tradeInResult.dataPrice)+parseFloat(Ba)}}Ja=Number(ha.tradeInResult.dataPrice)-Number(f.proudctPriceInfo.salePrice);f.minOrderEntryValue&&(Ja+=Number(f.minOrderEntryValue));"be"===za||"be_fr"===za||"nl"===za||"sg"===za||"vn"===za||"my"===za||"id"===za||"fr"===za||"de"===za||"sa"===za||"sa_en"===za||"cl"===za?(ha.tradeInResult.totalAmountText=
525currencyComma(ha.tradeInResult.dataPrice,f.priceCurrency),0<Ja?(ha.tradeInResult.priceOverFlag=!0,ha.tradeInResult.excessAmount=Ja,ha.tradeInResult.tenText=currencyComma(f.minOrderEntryValue,f.priceCurrency)):ha.tradeInResult.priceOverFlag=!1):ha.tradeInResult.priceOverFlag=ha.tradeInResult.dataPrice>f.proudctPriceInfo.salePrice?!0:!1;"tr"==za&&(ha.tradeInResult.dataPrice=0)}q.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").removeClass("cta--disabled").prop("disabled",!1);
526("sg"==za||"my"==za)&&(Ja=q.buyingToolOptTradeInResult.find(".limit-count"))&&0<Ja.length&&!Ja.is(":visible")&&Ja.show()}f.isMultiTradeIn&&0!=ha.tradeInResult.list.length?1===ha.tradeInResult.list.length&&"de"===za&&f.isMultiTradeIn&&f.hasStackbleTradeInFreeGiftPromotion&&!f.hasTradeInFreeGiftPromotion&&(f.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(ha.tradeInResult={hasComponent:!1,description:"",dataPrice:"",dataCashBack:"",dataCash:"",price:"",disclaimer:"",
527list:[]},ma.triggerChange(document.querySelector("#pd-trade-in-1")),"de"===za&&(f.hasTradeInFreeGiftPromotion||f.isMultiTradeIn&&f.hasStackbleTradeInFreeGiftPromotion)&&(f.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)));f.exchangeApiData={exchangeFlag:!1};J.tradeInResultDraw(ha);ia&&J.upgradeResultDraw(ha);qa&&ba.foreverDraw(f,q);ba.totalAfterFunction(f,q);f.isMultiTradeIn?ba.hasTradeInResult(f,q)||delete f.globalServiceInfo.tradein:f.globalServiceInfo.tradein&&
528delete f.globalServiceInfo.tradein;(f=$(q.buyingToolOptTradeIn).find('input[data-target-popup\x3d"deleteTradeInPopUp"]'))&&f.focus();"se"===za&&0<$(".samsung-flex-options .pd-select-option__item").length&&(window.sg.components.SamsungFlexPopup.tradeUpEnabled=!1,window.sg.components.SamsungFlexPopup.updateText(),$(".samsung-flex-options .pd-select-option__item").each(function(Ha,Va){$(".samsung-flex-options .pd-select-option__item").eq(Ha).find("#trade-up-default-0"+Ha).attr("disabled",!1)}),za=$(".samsung-flex-trade-in-notice.pd-select-option__notice.pd-select-option__notice--normal"),
5290<za.length&&za.hasClass("is-show")&&za.removeClass("is-show"))};c.buyingToolOpt.on("click","#pd-trade-in-1, .remove-trade-in-result",a,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.util,ha=q.siteCode;$("#categorySubTypeCode").val();var qa="hr"===ha||"si"===ha,ia=J.hasTradeInResult(q,ba);q.isMultiTradeIn&&(f=$(f.currentTarget).attr("data-trade-index"),q.checkedIndex=-1,f&&(q.checkedIndex=f));if(ia)if(ia=!0,"ro"!==ha||q.isTradeUp||(ia=!1),q.ceTradeUpPopup.isEnabled&&ia)window.CeTradeUpPopup.showResetConfirmPopup(function(){m(q,
530ba)});else{ia=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?");"ee"===ha||"lv"===ha||"lt"===ha||"pl"===ha||"at"===ha||"kz_kz"===ha||"kz_ru"===ha||"ro"===ha||"bg"===ha?ia=Granite.I18n.get("You're sure you want to delete this item?"):"pe"===ha||qa?ia=Granite.I18n.get("Do you want to proceed?"):"au"
530===ha||"jp"===ha?ia=" ":"be"===ha||"be_fr"===ha||"nl"===ha?ia=Granite.I18n.get("Are you sure you want to delete this option?"):"in"===ha?ia=Granite.I18n.get("Selected exchange will be removed.")+
531"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"):"th"===ha&&(ia=Granite.I18n.get("Please check again."));$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-trade-in");confirmPopup(ia,"delete");"au"===ha?($(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Are you sure you want to remove this item?")),$(".confirm-popup").find(".cta--black").html(Granite.I18n.get("Cancel")),$(".confirm-popup").find(".cta--emphasis").html(Granite.I18n.get("Remove"))):
532"kz_kz"===ha||"kz_ru"===ha||"nl"===ha?$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Remove")):"in"===ha?$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Remove Exchange")):$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Selected options will be reset."));"pl"===ha&&$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Delete"));"ro"!==ha&&"bg"!==ha&&"jp"!==ha&&"cn"!==ha||$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Selected options will be reset.(Trade-In)"));
533if("sk"===ha||"cz"===ha)$(".confirm-popup").find(".confirm-popup__title").html(""),$(".confirm-popup").find(".cta--black").html(Granite.I18n.get("No")),$(".confirm-popup").find(".cta--emphasis").html(Granite.I18n.get("Yes"));J.settingCommonPopupTagging("tradeIn",q,ba);"CE"==q.tradeInType&&sielTradeIn.initializeStep("all");ma.triggerChange(document.querySelector("#pd-trade-in-0"))}else ma.triggerChange(document.querySelector("#pd-trade-in-1"))});c.buyingToolOptTradeIn.on("click",'.cta[data-target-popup\x3d"tradeInLearnMorePopup"]',
534a,function(f){window.sg.components.tradeInLearnMorePopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-trade-in"]',a,function(f){m(f.data.sharedObj,f.data.selectorObj)});$(document).on("click",".trade-in-popup-v3__close, .trade-in-popup-v3__btn-close, .trade-in-popup__close, .trade-in-popup__btn-close, .cn-trade-in-popup__close, .cn-trade-in-popup__step1.cn-trade-in-popup__footer.cta--outlined, .trade-in-popup-v4__close, .trade-in-popup-v4__btn-close, .bc-exchange-popup__close, .vd-trade-in-popup__close, .sdf-comp-step-panel-product .sdf-comp-button-back",
535a,function(f){f.data.sharedObj.drawObj.tradeInResult.hasComponent||ma.triggerChange(document.querySelector("#pd-trade-in-1"))})}function R(a,c){var m=xa?a.apiDomain:$("#storeDomain").val(),f=a.siteCode,q=xa?{withCredentials:!0}:{},ba={sharedObj:a,selectorObj:c};a={sku:[a.modelCode]};a=JSON.stringify(a);var J=null;"tr"==f&&$.ajax({url:m+"/tokocommercewebservices/v2/"+f+"/stocks/cities",type:"POST",dataType:"json",cache:!0,xhrFields:q,crossDomain:!0,timeout:2E4,data:a,headers:{"content-type":"application/json"},
536success:function(ha){J=ha},error:function(ha){J=null}});c.buyingToolOptCheckDealerStock.on("click",".menu__list-wrap",ba,function(ha){var qa=ha.data.sharedObj,ia=qa.drawObj,za=$(ha.data.selectorObj.buyingToolOptCheckDealerStock),Ja=za.find("select[name\x3dcheck-dealer-stock]").val(),Fa=ia.checkDealerStock,Ba="",Ha="";ha.preventDefault();za.find(".pd-select-option__notice--normal").removeClass("is-show");za.find(".pd-select-option__check-message--success").removeClass("is-show");za.find(".pd-select-option__check-message--error").removeClass("is-show");
537za.find(".pd-select-option__check-message--success").html(Ba);"select City"!=Ja?J&&void 0!=J.detailList?void 0!=J.detailList.stockWithCity&&0<J.detailList.stockWithCity.length?(ha=J.detailList.stockWithCity.find(function(Va){return Va.isocodeShort==Ja}),Ba=J.detailList.nerpStock,"OUTOFSTOCK"==qa.stockLevelStatus?0>=Ba&&(void 0!=ha?0<ha.quantity?(Ha=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
538$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ha=Granite.I18n.get("Get stock alert"),
539$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Ba?void 0!=ha?0<ha.quantity?(Ba="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ba),za.find(".pd-select-option__check-message--success").addClass("is-show"),
540Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
541$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
542ha?0<ha.quantity?(Ba="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ba),za.find(".pd-select-option__check-message--success").addClass("is-show")):za.find(".pd-select-option__check-message--error").addClass("is-show"):za.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==qa.stockLevelStatus?Ha=Granite.I18n.get("Get stock alert"):(za.find(".pd-select-option__check-message--error").addClass("is-show"),
543Ha=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
544$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ia.checkDealerStock=
545Fa});c.buyingToolOptCheckDealerStock.on("change",".menu__select",ba,function(ha){var qa=ha.data.sharedObj,ia=qa.drawObj,za=$(ha.data.selectorObj.buyingToolOptCheckDealerStock),Ja=za.find("select[name\x3dcheck-dealer-stock]").val(),Fa=ia.checkDealerStock,Ba="",Ha="";ha.preventDefault();za.find(".pd-select-option__notice--normal").removeClass("is-show");za.find(".pd-select-option__check-message--success").removeClass("is-show");za.find(".pd-select-option__check-message--error").removeClass("is-show");
546za.find(".pd-select-option__check-message--success").html(Ba);"select City"!=Ja?J&&void 0!=J.detailList?void 0!=J.detailList.stockWithCity&&0<J.detailList.stockWithCity.length?(ha=J.detailList.stockWithCity.find(function(Va){return Va.isocodeShort==Ja}),Ba=J.detailList.nerpStock,"OUTOFSTOCK"==qa.stockLevelStatus?0>=Ba&&(void 0!=ha?0<ha.quantity?(Ha=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
547$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ha=Granite.I18n.get("Get stock alert"),
548$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Ba?void 0!=ha?0<ha.quantity?(Ba="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ba),za.find(".pd-select-option__check-message--success").addClass("is-show"),
549Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
550$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
551ha?0<ha.quantity?(Ba="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ba),za.find(".pd-select-option__check-message--success").addClass("is-show")):za.find(".pd-select-option__check-message--error").addClass("is-show"):za.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==qa.stockLevelStatus?Ha=Granite.I18n.get("Get stock alert"):(za.find(".pd-select-option__check-message--error").addClass("is-show"),
552Ha=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
553$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ia.checkDealerStock=
554Fa})}function z(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariff.on("click","#pd-tariff-option-0",a,function(m){var f=m.data.sharedObj,q=f.util.hasTariffOption(f,m.data.selectorObj);m.preventDefault();if(!q)return!1;f.isMigrationHybris?tariffData.showPopup():"GPv2"===f.apiFlag?tariffData.setTariff(f.syndiProductData):tariffData.showPopup(f.hybrisApiData.tarriffOption)});c.buyingToolOpt.on("click","#pd-tariff-option-1, .remove-tariff-option-result",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;
555var q=f.util,ba=q.hasTariffOptionResult(f,m);ma.triggerChange(document.querySelector("#pd-tariff-option-1"));ba&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-tariff-option"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("tariffOption",f,m))});c.buyingToolOptTariff.on("click",'.cta[data-target-popup\x3d"tariffInfoPopup"]',
556a,function(m){window.sg.components.tariffInfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-tariff-option"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;ma.triggerChange(document.querySelector("#pd-tariff-option-1"));J.tariffOptionResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataPrice:null,dataSimskuCode:null,dataModelCode:null,dataId:null};if("de"===f.siteCode){var ha=
557window.sg.components.dynamic.detailSharedObj.relatedProductsObj;if(f.hasTariffGift)if(q.isNotEmpty(ha)){var qa={};f.hasGift=!0;f.hasGiftBundle=!1;
557window.sg.components.dynamic.freeGiftHybrisCommon.relatedProductsSimpleInfoSuccessCallBackFunc(ha,f,qa);window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)}else f.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1);f.hasPlanIDAndFreeGiftPromotion&&(f.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0))}(ha=
558tariffData.BROADBAND_CACHE.returnObject)&&ha.isBroadbandService&&tariffData.removeBroadbandCache();ba.tariffOpionResultDraw(J);q.totalAfterFunction(f,m);f.globalServiceInfo.tariff&&delete f.globalServiceInfo.tariff})}function fa(a,c){var m=c.buyingToolOptOffer;c={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.giftBundle .s-btn-gift-popup",c,function(f){var q=$(this),ba=f.data.sharedObj;f=f.data.selectorObj;var J=ba.util;q=q.closest(".giftBundle");var ha=ba.disabledClass;f=J.hasOffer(ba,
559f)&&!q.hasClass(ha);J=$(this).attr("data-gift-idx");"0"===J&&(J=null);ba.checkedGiftArea=q;f&&(ba.isGpv2?window.sg.components.dynamic.freeGiftGPv2.giftPopupGrid(J):ba.isMigrationHybris?window.sg.components.dynamic.freeGiftNewHybris.giftPopupGrid(J):window.sg.components.dynamic.freeGiftHybris.giftPopupGrid(J))});m.on("click",".pd-offer__item.giftBundle .pd-offer__selected-bundle-cancel",c,function(f){var q=$(this),ba=f.data.sharedObj;f=f.data.selectorObj;q=q.attr("data-event-index");var J=Granite.I18n.get("Selected options will be reset.")+
560"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),ha=ba.util;$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-gift");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-index",q);confirmPopup(J,"delete");ha.settingCommonPopupTagging("combo",ba,f)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-gift"]',c,function(f){f=$(this).attr("data-event-index");var q=a.view,ba=a.drawObj,
561J=ba.offer.gift.item.bundleList;J.splice(f,1);if(1>J.length)ba.offer.gift.item.hasBundle=!1,ba.offer.gift.item.learnMoreCta.giftIdx=0;else for(var ha in J)J[ha].dataEventType=ha;q.productOfferDraw(ba)})}function va(a,c){var m=c.buyingToolOptOffer,f={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.compoBundle .s-btn-combo-popup",f,function(q){var ba=$(this),J=q.data.sharedObj;q=q.data.selectorObj;var ha=J.util;ba=ba.closest(".compoBundle");var qa=J.disabledClass;q=ha.hasOffer(J,q)&&!ba.hasClass(qa);
562ha=ba.attr("data-combo-index");var ia=[];J.checkedComboArea=ba;q&&(0<ba.find(".pd-offer__selected-bundle").length&&ba.find(".pd-offer__selected-bundle").each(function(){ia.push($(this).attr("data-index"))}),window.sg.components.dynamic.comboPopup.comboPopupGrid(J.globalComboData[ha],ia),window.sg.components.shopComboPopup.showPopup())});m.on("click",".pd-offer__item.compoBundle .pd-offer__selected-bundle-cancel",f,function(q){var ba=$(this),J=q.data.sharedObj;q=q.data.selectorObj;ba=ba.attr("data-event-index");
563var ha=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),qa=J.util;$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-combo");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-index",ba);confirmPopup(ha,"delete");qa.settingCommonPopupTagging("combo",J,q)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-combo"]',f,function(q){var ba=
564$(this).attr("data-event-index").split("-");q=Number(ba[1]);ba=Number(ba[2]);var J=a.view,ha=a.util,qa=a.drawObj,ia=qa.offer.combo,za=null;for(Fa in ia){var Ja=ia[Fa];if(Ja.comboIndex===q){za=Ja;break}}if(za){var Fa=za.item.bundleList;Fa.splice(ba,1);1>Fa.length&&(za.hasBundle=!1);for(var Ba in Fa)Fa[Ba].dataEventType="combo-"+q+"-"+Ba}J.productOfferDraw(qa,!0);J.tradeInResultDraw(qa);ha.totalAfterFunction(a,c);a.globalServiceInfo.combo&&delete a.globalServiceInfo.combo})}function ra(a,c){a={sharedObj:a,
565selectorObj:c};c.buyingToolOptUpgrade.on("click","#pd-samsung-upgrade-0",a,function(m){var f=m.data.sharedObj,q=m.data.selectorObj,ba=f.util,J=$(this),ha=ba.hasTradeInResult(f,q),qa=ba.hasCareResult(f,q),ia=ba.hasUpgrade(f,q),za=f.eupData,Ja=f.drawObj,Fa=f.view;if(J.hasClass("hybris-es-yes"))$("#pd-samsung-upgrade-0").attr("checked","checked"),$("#pd-samsung-upgrade-1").prop("checked",!1),Ja.upgradeResult={hasComponent:!0,displayModelName:null,discountText1:null,description1:"Con Samsung Upgrade, \u00a1Disfruta de seguro Gratis! **",
566description2:null,dataId:["0"],dataPrice:0,isHybris:!0,isGp:!1},Fa.upgradeResultHybrisDraw(Ja),ma.triggerChange(document.querySelector("#pd-samsung-upgrade-0")),ba.totalAfterFunction(f,q),$(q.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(Granite.I18n.get("With Samsung Upgrade, Enjoy Free Insurance!")),$("#pd-rewards-msg").text(Granite.I18n.get("Financing for 24 months. Fixed Debtor Rate 0.00%, T.A.E. 0,00%*"));else{m.preventDefault();if(!ia)return!1;ha?0===f.tradeInSelectCnt&&
567(za.salePrice-=f.tradeInSelectPrice,f.tradeInSelectCnt++):1===f.tradeInSelectCnt&&(za.salePrice+=f.tradeInSelectPrice,f.tradeInSelectCnt--);qa?0===f.smcSelectCnt&&(za.salePrice+=f.smcSelectPrice,f.smcSelectCnt++):1===f.smcSelectCnt&&(za.salePrice-=f.smcSelectPrice,f.smcSelectCnt--);buyingPdEup.eupPopupGrid(f.eupData)}});c.buyingToolOpt.on("click","#pd-samsung-upgrade-1, .remove-upgrade-result",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=$(this),J=q.hasUpgradeResult(f,
568m),ha=f.drawObj,qa=f.view;ba.hasClass("hybris-es-no")?($("#pd-samsung-upgrade-1").attr("checked","checked"),$("#pd-samsung-upgrade-0").prop("checked",!1),ha.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!0,isGp:!1},qa.upgradeResultHybrisDraw(ha),ma.triggerChange(document.querySelector("#pd-samsung-upgrade-1")),q.totalAfterFunction(f,m),$(m.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(""),
569xa&&"es"===f.siteCode?$("#pd-rewards-msg").text(Granite.I18n.get("Earn 1% back in rewards (for Re
569wards members only)_epp")):$("#pd-rewards-msg").text(Granite.I18n.get("Earn 1% back in rewards (for Rewards members only)"))):(ma.triggerChange(document.querySelector("#pd-samsung-upgrade-1")),J&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
570"remove-upgrade"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("upgrade",f,m)))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-upgrade"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!1,isGp:!0};ma.triggerChange(document.querySelector("#pd-samsung-upgrade-1"));ba.upgradeResultDraw(J);
571q.totalAfterFunction(f,m)});c.buyingToolOptUpgrade.on("click",'.cta[data-target-popup\x3d"upgradeLearnMorePopup"]',a,function(m){window.sg.components.upgradeLearnMorePopup.showPopup()})}function oa(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-1",a,function(m){var f=m.data.sharedObj,q=f.util.hasAssuredBuyBack(f,m.data.selectorObj);m.preventDefault();if(!q)return!1;m="";q=f.syndiProductData.product_display_name?f.syndiProductData.product_display_name:
572"";f.proudctPriceInfo.salePrice?m=currencyComma(f.proudctPriceInfo.salePrice,f.priceCurrency):f.proudctPriceInfo.orignalPrice&&(m=currencyComma(f.proudctPriceInfo.orignalPrice,f.priceCurrency));assuredBuybackData.assuredBuybackGrid(q,m,f.totalSkuList[f.assuredSku])});c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=q.hasAssuredBuyBackResultResult(f,m);ma.triggerChange(document.querySelector("#pd-galaxy-assured-0"));
573ba&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-assured"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("assured",f,m))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-assured"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.assuredBuyBackResult={hasComponent:!1,
574dataSku:null,dataPrice:null,dataSalePrice:null};ma.triggerChange(document.querySelector("#pd-galaxy-assured-0"));ba.assuredBuyBackResultDraw(J);q.totalAfterFunction(f,m)})}function da(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptNewAssuredBuyBack.on("click",".open-popup",a,function(m){var f=$(this),q=m.data.sharedObj,ba=q.util.hasNewAssuredBuyBack(q,m.data.selectorObj),J=[],ha=Number(f.attr("id").slice(-1))-1;m.preventDefault();if(!ba)return!1;m=$(".hdd02-buying-tool .pd-select-option__notice");
575m.hasClass("is-show")&&m.removeClass("is-show");q.newAssuredBuyBackCheck=!0;q.popupReturnObj=f;J.push(q.newAssuredBuyBackList[ha].productItem);configuratorABB.setProductInfo(J)});c.buyingToolOptNewAssuredBuyBack.on("click","#pd-galaxy-new-assured-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=q.hasNewAssuredBuyBackResult(f,m);f.util.checkAddToCart(f,m);var J=$(".hdd02-buying-tool .pd-select-option__notice");J.hasClass("is-show")&&J.removeClass("is-show");f.newAssuredBuyBackCheck=
576!0;ba&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-new-assured"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("assured",f,m))});c.buyingToolOptNewAssuredBuyBack.on("click",'.cta[data-target-popup\x3d"assuredBuyBackInfoPopup"]',a,function(m){window.sg.components.AssuredBuyBackInfoPopup.showPopup()});$(".confirm-popup").on("click",
577'.cta[data-event-type\x3d"remove-new-assured"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.newAssuredBuyBackResult={hasComponent:!1,dataModelCode:null,dataModelName:null,dataPrice:null,dataDisplayPrice:null,dataDisplayName:null};ba.newAssuredBuyBackResultDraw(J);ma.triggerChange(document.querySelector("#pd-galaxy-new-assured-0"));q.totalAfterFunction(f,m)})}function na(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptGalaxyForever.on("click",
578"#pd-samsung-galaxy-forever-0",m,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.util,ha=J.hasForever(q,ba),qa=J.hasTradeInResult(q,ba),ia=q.exchangeApiData,za=q.priceCurrency,Ja=J.hasBogo(q,ba);ba=J.hasComboResult(q,ba);f.preventDefault();if(!ha)return!1;qa&&ia.addtionalPrice&&!Ja&&!ba?(f=Granite.I18n.get("Along with Galaxy Forever benefit, you will not be entitled for additional exchange bonus ({0}). However, you can avail the regular exchange benefit.",currencyComma(ia.addtionalPrice,
579za)),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","open-forever-popup"),confirmPopup(f,"delete")):buyingPdForever.foreverPopupGrid(q.foreverFinanceInfo)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"open-forever-popup"]',m,function(f){buyingPdForever.foreverPopupGrid(a.foreverFinanceInfo)});c.buyingToolOpt.on("click","#pd-samsung-galaxy-forever-1, .remove-forever-result",m,function(f){var q=f.data.sharedObj;f=f.data.selectorObj;
580var ba=q.util,J=ba.hasForeverResult(q,f);ma.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-1"));J&&(J=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-forever"),confirmPopup(J,"delete"),ba.settingCommonPopupTagging("forever",q,f))});c.buyingToolOptWarranty.on("click",'.cta[data-target-popup\x3d""]',m,function(f){});
581$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-forever"]',m,function(f){var q=f.data.sharedObj;f=f.data.selectorObj;var ba=q.util,J=q.view,ha=q.drawObj,qa=ba.hasTradeInResult(q,f);ha.galaxyForeverResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};ma.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-1"));J.galaxyForeverResultDraw(ha);qa&&ba.exchangeResultDraw(q,f);ba.totalAfterFunction(q,f);
582ba.hasCare(q,f)&&(f.buyingToolOptCare.show(),window.sg.components.ProductDetailKvNew.reInit())})}function L(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptWarranty.on("click","#pd-samsung-warranty-0",a,function(m){var f=m.data.sharedObj,q=m.data.selectorObj,ba=f.util;m.preventDefault();if(!ba.hasWarranty(f,q))return!1;configuratorWarranty.setProductInfo(f.finalWarrantyList)});c.buyingToolOptWarrantyVd.on("click","#pd-extended-warranty-option-0",a,function(m){var f=m.data.sharedObj,q=m.data.selectorObj,
583ba=f.util;m.preventDefault();if(!ba.hasWarrantyVd(f,q))return!1;configuratorWarrantyVD.setProductInfo()});c.buyingToolOpt.on("click","#pd-samsung-warranty-1, .remove-warranty-result",a,function(m){var f=m.data.sharedObj;m=f.util.hasWarrantyResult(f,m.data.selectorObj);ma.triggerChange(document.querySelector("#pd-samsung-warranty-1"));m&&(m=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
584"remove-warranty"),confirmPopup(m,"delete"))});c.buyingToolOpt.on("click","#pd-extended-warranty-option-1, .option-result--extended-warranty-option .option-result__close",a,function(m){var f=m.data.sharedObj;if(f.util.hasWarrantyVdResult(f,m.data.selectorObj))if(m=Granite.I18n.get("VD_Extended Warranty Popup_Delete Warranty"),"mx"==siteCode){$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("data-event-type","remove-warranty-vd");confirmPopup(m,"delete","",document.querySelector(".option-result--extended-warranty-option"));
585var q=$(".confirm-popup");
585m=q.find(".confirm-popup__title");f=q.find(".cta--contained");q=q.find(".cta--outlined");m.html(Granite.I18n.get("Las opciones seleccionadas se eliminaran"));f.html(Granite.I18n.get("VD_Extended Warranty_YES"));q.html(Granite.I18n.get("VD_Extended Warranty_NO"))}else $(".confirm-popup-v2 .confirm-popup-v2__cta-wrap .cta.cta--contained").attr("data-event-type","remove-warranty-vd"),confirmPopupV2(m,"delete warranty","",document.querySelector(".option-result--extended-warranty-option"))});
586c.buyingToolOptWarrantyVd.on("click",'.cta[data-target-popup\x3d"ExtendedWarrantyLearnMorePopup"]',a,function(m){m=Granite.I18n.get("VD_Extended Warranty Popup_Delete Warranty");confirmPopupV2(m,"warranty learn more","",document.querySelector(".option-warranty-vd .cta"))});c.buyingToolOptWarrantyVd.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});c.buyingToolOptWarranty.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',
587a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};ma.triggerChange(document.querySelector("#pd-samsung-warranty-1"));ba.warrantyResultDraw(J);
588q.totalAfterFunction(f,m)});$(".confirm-popup-v2,.confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty-vd"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;ma.triggerChange(document.querySelector("#pd-extended-warranty-option-1"));ma.optionClose(document.querySelector(".option-result--extended-warranty-option"));J.warrantyVdResult={hasComponent:!1,title:null,price:null,smcCode:null,description:null,priceDisplay:null};ba.warrantyVdResultDraw(J);
589q.totalAfterFunction(f,m);"mx"==siteCode&&$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("data-event-type","");$(".summary__product-price").hide();$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").hide()})}function N(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptCare.on("click",".open-grid",a,function(m){m=$(this);var f=m.closest(".pd-option-selector").siblings();m.closest(".pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(q,
590ba){$(ba).hasClass("hidden")||$(ba).addClass("hidden")});f.removeClass("hidden");window.dispatchEvent(new Event("resize"))});c.buyingToolOptCare.on("click",".open-popup",a,function(m){var f=$(this),q=m.data.sharedObj,ba=m.data.selectorObj,J=q.isNotGpv2,ha=q.util,qa=q.drawObj.care.isSmcType2?Number(f.attr("data-index")):Number(f.attr("data-index"))-1;ha=ha.hasCare(q,ba);ba=[];q.popupReturnObj=f;m.preventDefault();if(!ha)return!1;J||q.isMigrationHybris?(m=$.extend({},q.hybrisCareData),ba.push(m.smcs[qa]),
591m.smcs=ba,"true"==f.attr("data-prePopup")?configuratorCare.showPrePopup(m,f):configuratorCare.showPopup(m,f)):(ba.push(q.finalCareList[qa]),configuratorCare.setProductInfo(ba))});c.buyingToolOptCare.on("click","#pd-samsung-care-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.drawObj,ba=q.care.isSmcType2,J=f.util,ha=f.siteCode,qa=J.hasCareResult(f,m);q.careResult.dataModelCode="none";f.util.checkAddToCart(f,m);qa?(ba?ma.triggerChange(f.popupReturnObj.closest("li").find(".open-grid").get(0)):
592f.popupReturnObj&&ma.triggerChange(f.popupReturnObj.get(0)),"pt"===ha?(q=Granite.I18n.get("The selected option will be deleted.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(q,"delete")):"cn"===ha?(q=Granite.I18n.get("Are you sure you want to remove Samsung Butler service?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
593"remove-care"),confirmPopup(q,"delete")):"ro"===ha||"it"===ha?(q=Granite.I18n.get("Remove Samsung Care+"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(q,"deleteSC+")):(q=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(q,"delete")),
594J.settingCommonPopupTagging("care",f,m)):ba&&$(this).closest(".pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(ia,za){$(za).hasClass("hidden")||$(za).addClass("hidden")})});c.buyingToolOptCare.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});c.buyingToolOptCare.on("click",'.cta[data-target-popup\x3d"scLearnMorePopup"]',a,function(m){window.sg.components.scLearnMorePopup.showPopup()});
595$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-care"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.careResult={hasComponent:!1,description:"",dataPrice:"",dataSalePrice:"",dataModelName:"",dataModelCode:"none",dataId:"",price:"",disclaimer:""};"fr"===siteCode&&0<$(".pd-select-option.trade-in").length&&$(".pd-select-option.trade-in input").attr("disabled",!1);
595J.care.isSmcType2&&(f.popupReturnObj.get(0).checked=!1,$(".option-care ul.pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(ha,
596qa){$(qa).hasClass("hidden")||$(qa).addClass("hidden")}));ma.triggerChange(document.querySelector("#pd-samsung-care-0"));ba.careResultDraw(J);q.totalAfterFunction(f,m);f.globalServiceInfo.care&&delete f.globalServiceInfo.care})}function b(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptEmbedAddon.on("click","ul li input, .embed-addon-add",m,function(f){var q=$(this),ba=f.data.sharedObj,J=ba.globalServiceInfo;f=f.data.selectorObj;var ha=ba.util;$("#priceCurrency").val();var qa=0<$(".option-embed-addon .add-on-product-list-wrap--vd").length?
597$(".option-embed-addon .add-on-product-list-wrap--vd"):$(".option-embed-addon .add-on-product-list-wrap"),ia=parseFloat(qa.attr("data-total-price")),za=parseFloat(qa.attr("data-total-sale-price")),Ja=q.closest("li").find(".add-on-product__final-price"),Fa=q.closest("li").find(".add-on-product__original-price"),Ba=q.closest("li").find(".add-on-product__saving-price");parseFloat(Ja.attr("data-price"));Fa=Ba.attr("data-save-price")?parseFloat(Fa.attr("data-original-price")):parseFloat(Ja.attr("data-price"));
598Ja=parseFloat(Ja.attr("data-price"));"checkbox"===q.attr("type")?q.attr("id"):q.attr("data-id");q.closest("li").find(".add-on-product__title").attr("data-model-name");var Ha="checkbox"===q.attr("type")?q.closest("li").find(".add-on-product__serial-number").attr("data-model-code"):"in"!==siteCode?q.attr("data-mode-code"):q.attr("data-shopsku");Ba=ba.drawObj.embedAddon.itemSet;for(var Va=[],Na=$jscomp.makeIterator(Ba),ka=Na.next();!ka.done;ka=Na.next())Va.push(ka.value.modelCode);var La="";Na=!1;"checkbox"===
599q.attr("type")?Na=q.is(":checked")?!0:!1:q.hasClass("cta--outlined")?(q.removeClass("cta--outlined"),q.addClass("cta--contained"),q.attr("aria-label","Added"),q.text(Granite.I18n.get("Added")),Na=!0):(q.addClass("cta--outlined"),q.removeClass("cta--contained"),q.attr("aria-label","Add"),q.text(Granite.I18n.get("Add")),Na=!1);q.blur();ba.clickEmbedAddon=!0;Na?(J.embedaddon&&0<J.embedaddon.length?J.embedaddon.push(Ha):J.embedaddon=[Ha],qa.attr("data-total-price",ia+Fa),qa.attr("data-total-sale-price",
600za+Ja),Ba.filter(function(Da){Da.modelCode===Ha&&ba.embedAddonSelected.push(Da)})):(J.embedaddon=J.embedaddon.filter(function(Da){return Da!==Ha}),qa.attr("data-total-price",ia-Fa),qa.attr("data-total-sale-price",za-Ja),ba.embedAddonSelected=ba.embedAddonSelected.filter(function(Da){return Da.modelCode!==Ha}));ba.embedAddonSelected.forEach(function(Da){Da.summaryPrice=""+Da.finalPrice});ba.drawObj.price.summaryArea.embedAddonSelected=ba.embedAddonSelected;0<$("#personalizeMyTv").length&&(ba.pmtModelList=
601ba.pmtModelList.filter(function(Da){return!Va.includes(Da)}),J.embedaddon.forEach(function(Da){ba.pmtModelList.push(Da)}),ba.pmtModelList.forEach(function(Da){La.includes("\x26option\x3d")||ba.pmtURL.includes("\x26option\x3d")||(La+="\x26option\x3d");La+=Da+","}),ba.pmtURL||(ba.pmtURL=$("#personalizeMyTv .cta").attr("href")),$("#personalizeMyTv .cta").attr("href",ba.pmtURL+La.slice(0,-1)));ha.totalAfterFunction(ba,f)});c.buyingToolOptEmbedAddon.on("click",".cta-learn-more",m,function(f){f=$(this).attr("data-model-idx");
602var q=a.drawObj.embedAddon.itemSet[f],ba=q.thirdPASeller,J=q.categorySubType;f=$("#addOnLayerPopupLearnMore");f.find(".add-on-popup__title").html(J);J=q.imgSrcList;var ha="";for(qa in J)ha+='\n\t\t\t\t\x3cdiv class\x3d"swiper-slide" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+P(J[qa],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+P(J[qa],"$N_400_PNG$",!1,!0)+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+
603P(J[qa],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+P(J[qa],"$N_400_PNG$",!1,!0)+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e';var qa='\n\t\t\t\x3cdiv class\x3d"swiper-container basic-swiper" data-swiper-option\x3d\'{\n\t\t\t\t"slidesPerView":"1", "keepWrapper":true, "loop":false, "pagination":false,\n\t\t\t\t"componentEl":".add-on__learn-more-images", "offTxtAccesibility":"true", "centeredSlides": true,\n\t\t\t\t"centeredSlidesB
603ounds": true, "followFinger": '+
604(J&&1===J.length?!1:!0)+'}\'\x3e\n\t\t\t\t\x3cbutton type\x3d"button" class\x3d"swiper-button-prev"\x3e\n\t\t\t\t\t\x3cspan class\x3d"hidden"\x3ePrevious\x3c/span\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-bold" href\x3d"#previous-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3cdiv class\x3d"swiper-wrapper" role\x3d"list"\x3e'+ha+'\x3c/div\x3e\n\t\t\t\t\x3cbutton type\x3d"button" class\x3d"swiper-button-next"\x3e\n\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/button\x3e\n\t\t\t\x3c/div\x3e';
605f.find(".add-on__learn-more-images").html(qa);J&&1===J.length&&f.find(".swiper-container").attr("");qa="";ha="GPv2"===$("#shopIntegrationFlag").val();var ia="Hybris-new"===$("#shopIntegrationFlag").val();J="Hybris-intg"===$("#shopIntegrationFlag").val();ha=!ha&&!J&&!ia;if(J){J=[{key:q.tradeIn,value:q.tradeInDesc},{key:q.premiumCare,value:q.premiumCareDesc},{key:q.financing,value:q.financingDesc},{key:q.upgrade,value:q.upgradeDesc},{key:q.storePromotions?"Y":"N",value:q.storePromotions}];for(var za in J)"Y"===
606J[za].key&&(qa+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+J[za].value+"\x3c/li\x3e")}else if(ha&&q.vd3PAMarketingMessage&&0<q.vd3PAMarketingMessage.length)for(za=$jscomp.makeIterator(q.vd3PAMarketingMessage),J=za.next();!J.done;J=za.next())qa+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+J.value+"\x3c/li\x3e";if(q.uspText&&0<q.uspText.length)for(za=$jscomp.makeIterator(q.uspText),J=za.next();!J.done;J=za.next())qa+='\t\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+
607J.value+"\x3c/li\x3e";za="";if(q.keySummary&&0<q.keySummary.length)for(J=$jscomp.makeIterator(q.keySummary),ha=J.next();!ha.done;ha=J.next())ha=ha.value,"feature"===ha.displayType.toLowerCase()&&(za+='\n\t\t\t\t\t\t\t\x3cli class\x3d"add-on__learn-more-feature-icon-item"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"add-on__learn-more-feature-icon-image"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+
608P(ha.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+P(ha.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+ha.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+P(ha.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+P(ha.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+ha.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cp class\x3d"add-on__learn-more-feature-icon-text"\x3e'+ha.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
609ba='\n\t\t\t\t\x3ch3 class\x3d"add-on__learn-more-title"\x3e'+q.name+'\x3c/h3\x3e\n\t\t\t\t\x3cdiv class\x3d"add-on__learn-more-info"\x3e\n\t\t\t\t\t\x3cp class\x3d"add-on__learn-more-sku"\x3e'+q.modelCode+"\x3c/p\x3e\n\t\t\t\t\t"+(ba?"\x3cstrong class\x3d\"add-on__learn-more-seller\"\x3eGranite.I18n.get('Seller') : thirdPASeller\x3c/strong\x3e":"")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t";if(q.ratings&&q.reviewCount){J=q.ratings;ha=q.reviewCount;J||(J=0);ia=Math.pow(10,1);J=Math.round(J*ia)/ia;var Ja=
610parseFloat(J).toFixed(1);ia=parseInt(J);var Fa=parseInt(100*(Ja-ia));"0.0"!==Ja&&(J=Ja);Ja='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Ba=0;Ba<ia;Ba++)Ja+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 100%;"\x3e\x3c/span\x3e\x3c/span\x3e';if(5>ia&&0<ia)for(Ja+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width:'+
611Fa+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',Fa=4;Fa>ia;Fa--)Ja+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';else if(0===ia)for(ia=0;5>ia;ia++)Ja+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';Ja+='\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+
612Granite.I18n.get("Product Ratings")+" : \x3c/span\x3e\x3cspan\x3e"+J+'\x3c/span\x3e\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3cem class\x3d"rating__review-count"\x3e(\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Number of Ratings")+" :\x3c/span\x3e\x3cspan\x3e"+(ha?ha:0)+"\x3c/span\x3e)\x3c/em\x3e";J='\x3cdiv class\x3d"add-on__learn-more-review"\x3e\n\t\t\t\t\t\x3cspan class\x3d"rating"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"rating__inner"\x3e\n\t\t\t\t\t\t\t'+Ja+"\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\x3c/div\x3e"}else J=
613"";q=ba+J+'\n\t\t\t\t\x3cul class\x3d"add-on__learn-more-feature" role\x3d"list"\x3e\n\t\t\t\t\t'+qa+"\n\t\t\t\t\x3c/ul\x3e\n\t\t\t\t"+(q.pdpUrl?'\x3cdiv class\x3d"add-on__learn-more-cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--underline cta--black cta--icon" href\x3d"'+q.pdpUrl+'" aria-label\x3d"Link Title" target\x3d"_blank"\x3e\n\t\t\t\t\t\t'+Granite.I18n.get("Product detail")+'\n\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\x3c/div\x3e':
614"")+"\n\t\t\t\t"+(za?'\x3cul class\x3d"add-on__learn-more-feature-icon"\x3e\n\t\t\t\t\t'+za+"\n\t\t\t\t\x3c/ul\x3e":"");f.find(".add-on__learn-more-content").html(q);ma.buyingTool.openAddOnLearnMore(document.querySelector("#addOnLayerPopupLearnMore"))});c.buyingToolOptEmbedAddon.on("click",".add-on-product__view-btns-wrap button",m,function(f){ma.buyingTool.viewMoreVDAddOn()})}function r(a,c){c.buyingToolOptSMBQuantity.on("click",".smb-count",{sharedObj:a,selectorObj:c},function(m){m=Number($("#counterText").val());
615a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("propertychange change keyup paste","#counterText",function(m){m=$(this);var f=m.val().replace(/[^0-9].*/,"");m.val(f);m=Number(m.val());a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("focusout ","#counterText",function(m){m=$(this);m.val()&&"0"!=m.val()||m.val(1)})}function G(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#gift-card-amount-0, #gift-card-amount-1",a,function(m){var f=m.data.sharedObj;m=
616m.data.selectorObj;f.giftCard.amountValid=!0;
616f.giftCard.selectedPrice=$(this).data("price");f.util.settingPriceDraw(f,m)});c.buyingToolOpt.on("click","#gift-card-amount-2",a,function(m){m.data.sharedObj.giftCard.amountValid=!1});c.buyingToolOpt.on("click",".pd-select-option--gift-card .cta",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.giftCard.inputAmount;q<f.giftCard.minPrice||q>f.giftCard.maxPrice||0<q%f.giftCard.priceIncrement?(f.giftCard.amountValid=!1,f=Granite.I18n.get("Please enter only numbers. {0} {1}",
617[f.giftCard.minPriceFormatted,f.giftCard.maxPriceFormatted]),$(".pd-select-option--gift-card .text-field-v2__text").text(f),$(".pd-select-option--gift-card .text-field-v2__text.error").show()):(f.giftCard.amountValid=!0,$(".pd-select-option--gift-card .text-field-v2__text.error").hide(),$("#gift-card-amount-2").attr("data-price",f.giftCard.inputAmount),f.giftCard.selectedPrice=$("#gift-card-amount-2").attr("data-price"),f.util.settingPriceDraw(f,m))});$("#gift-card-amount-0").click()}function P(a,
618c,m,f){var q="",ba=$("#scene7domain").val();a&&(-1<a.indexOf("?")?(a=a.replace("medias",""),a=a.substring(2,a.indexOf("?")),a=a.substring(0,a.lastIndexOf("-")),c=""):c="?"+c,-1<a.indexOf("https:")||-1<a.indexOf("http:")||-1<a.indexOf("//stg-images.samsung.com/")||-1<a.indexOf("//images.samsung.com/")||-1<a.indexOf("image.samsung.com/")||-1<a.indexOf("//stg-images.samsung.com.cn/")||-1<a.indexOf("//images.samsung.com.cn/")||-1<a.indexOf("image.samsung.com.cn/")?q=a:(m&&(ba=ba.replace("/image/","/content/")),
619q=ba+a));f&&-1===a.indexOf("?")&&(q+=c);return q}function Z(a,c){c={sharedObj:a,selectorObj:c};var m=0;a.btnClickFlagAddCartContinue=!0;$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder continue"], .hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart continue"]');
620$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder continue"], .hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart continue"]',c,function(f){if(a.btnClickFlagAddCartContinue&&
621!ea(f.data.sharedObj)){var q=f.data.sharedObj;f=f.data.selectorObj;var ba=q.siteCode,J=q.util,ha=$("#shopIntegrationFlag").val();J.checkingDeliveryCode(q,f)&&m++;if(1===m&&J.checkingDeliveryCode(q,f)&&J.checkingNewAssuredBuyBack(q)&&J.checkingSamsungCare(q)&&J.checkWarrantyVd(q))q.afterEvent.addToCartCta(null,!1),q.isMigrationHybris?(q.clickDom=this,$("#hubble-care").addClass("gift-hubble-care")):"Hybris"===ha||"Hybris-intg"===ha||"in"===ba?q.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
622window.sg.components.dynamic.bridgePage.moveBridgePage(this);else{m=0;return}}a.btnClickFlagAddCartContinue=!1});$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout continue"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout continue"]',
623c,function(f){if(!ea(f.data.sharedObj)){var q=f.data.sharedObj;f=f.data.selectorObj;var ba=q.util,J=$("#shopIntegrationFlag").val();ba.checkingDeliveryCode(q,f)&&m++;1===m&&ba.checkingDeliveryCode(q,f)&&ba.checkingNewAssuredBuyBack(q)&&ba.checkingSamsungCare(q)&&(q.afterEvent.checkOutCta(null,!1),q.isMigrationHybris?(q.clickDom=this,$("#hubble-care").addClass("gift-hubble-care")):"Hybris"===J||"Hybris-intg"===J||"in"===siteCode?q.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
624window.sg.components.dynamic.bridgePage.moveBridgePage(this))}});$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout"],.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout between"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout between"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout between"]',
625c,function(f){a.clickTarget=$(this);ea(f.data.sharedObj)||(f=f.data.sharedObj,f.util.checkingSamsungCare(f)&&f.afterEvent.checkOutCta(null,!0))});
625$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart"]',
626c,function(f){a.clickTarget=$(this);if(!ea(f.data.sharedObj)){var q=f.data.sharedObj,ba=q.util;if(ba.checkingDeliveryCode(q,f.data.selectorObj)){var J,ha;console.log("Is Extended warranty available? ",null==q?void 0:null==(J=q.drawObj)?void 0:null==(ha=J.warrantyVd)?void 0:ha.hasComponent);var qa,ia;"pl"===q.siteCode&&(null==q?0:null==(qa=q.drawObj)?0:null==(ia=qa.warrantyVd)?0:ia.hasComponent)?ba.checkWarrantyVd(q)&&q.afterEvent.addToCartCta(null,!0):ba.checkingSamsungCare(q)&&(q.giftCard.isGiftCard?
627ba.checkingRecipientInfo(q)&&q.afterEvent.addToCartCta(null,!0):q.newAssuredBuyBackFlag?ba.checkingNewAssuredBuyBack(q)&&q.afterEvent.addToCartCta(null,!0):q.afterEvent.addToCartCta(null,!0))}}"br"===a.siteCode&&(f=$(this).parent().attr("class"),"pd-buying-price__cta"==f?d(a,digitalData,".pd-buying-price__cta .cta","pdd01_anchor nav-product detail-cta-cart page"):"cost-box__cta"==f&&d(a,digitalData,".cost-box__cta .cta","header(pim)_price bar-product detail-button-cart"))});$(document).off("click",
628'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder"]',c,function(f){a.clickTarget=$(this);ea(f.data.sharedObj)||(f=f.data.sharedObj,
629f.util.checkingSamsungCare(f)&&f.afterEvent.addToCartCta(null,!0))});$(document).on("click",'.hdd02-buying-tool [data-cta-type\x3d"for-business"], #anchorNavigationPriceBar [data-cta-type\x3d"for-business"], #anchorNavigationPriceBarMobile [data-cta-type\x3d"for-business"]',c,function(f){mailformPopup.showPopup()})}function d(a,c,m,f){a={"class":"cta cta--contained cta--emphasis add-special-tagging js-buy-now tg-add-to-cart","data-cta-type":"add-cart","data-sku-code":c.product.model_code,"an-tr":f,
630"an-ca":"buy cta","an-ac":"buy now","an-la":"buy now","aria-label":$(m).text()+":"+c.product.displayName,"data-discountprice":parseFloat(a.totalPrice.sale).toFixed(2),"data-modelcode":c.product.model_code,"data-modeldisplay":c.product.displayName,"data-modelname":c.product.model_name,"data-modelrevenue":c.product.list_price,"data-modelprice":c.product.list_price,"data-pvitype":c.page.pathIndicator.depth_2,"data-pvisubtype":c.page.pathIndicator.depth_3,"data-pimsubtype":c.page.pathIndicator.depth_4,
631"data-modelqty":"1"};_satellite.track("buy_cta_dc",a)}function M(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptDelivery.on("input","#delivery-zipcode",m,function(f){f=f.data.sharedObj.siteCode;if("in"===f||"id"===f)f=$(this),f.val(f.val().replace(/[^0-9]/g,""))});c.buyingToolOptDelivery.on("keyup","#delivery-zipcode",m,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.siteCode,ha=q.util,qa=$(this),ia=$(ba.buyingToolOptDelivery).find("#delivery-zipcode").val()||"",za=$(ba.buyingToolOptDelivery).find(".check-zipcode");
632"in"===J&&6===ia.length?za.removeClass("cta--disabled"):za.addClass("cta--disabled");13===f.which||"us"===J&&5===ia.length||"in"==J&&6===ia.length&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?ha.deliveryGetApiData(q,ba):"ae"!==J&&"ae_ar"!==J&&"us"!==J&&(qa.val(qa.val().replace(/[^\d].+/,"")),(48>f.which||57<f.which)&&f.preventDefault())});c.buyingToolOptDelivery.on("click",".check-zipcode",m,function(f){a.util.deliveryGetApiData(a,c)});c.buyingToolOptDelivery.on("keypress",
633"#delivery-zipcode",m,function(f){var q=f.data.sharedObj.siteCode,ba=$(this);"ae"!==q&&"ae_ar"!==q&&"us"!==q&&(ba.val(ba.val().replace(/[^\d].+/,"")),(48>
633f.which||57<f.which)&&f.preventDefault())});c.buyingToolOptDelivery.on("click",".text-field-v2__input-icon.delete",m,function(f){var q=f.data.sharedObj.siteCode;f=$(f.data.selectorObj.buyingToolOptDelivery).find(".check-zipcode");"in"===q&&f.addClass("cta--disabled")});c.buyingToolOpt.on("click",".remove-delivery",m,function(f){var q=f.data.sharedObj;
634f=f.data.selectorObj;var ba=q.util,J=q.drawObj,ha=q.view;"in"===q.siteCode&&(J.delivery.ctaClass="cta--disabled",$(f.buyingToolOptDelivery).find(".check-zipcode").addClass("cta--disabled"));ba.hasDeliveryResult(q,f)&&(J.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]},$.cookies.del("HA-Deeplink-Zipcode",{domain:".samsung.com"}),$("#delivery-zipcode").val(""),ha.deliveryResultDraw(J));J.delivery.priorityDeliveryText&&$(f.buyingToolOptDelivery).find(".pd-select-option__tooltip").show();
635$(f.buyingToolOptDeliveryPickupStore).hide()});ma.buyingTool.bindPdTooltipEvent()}function t(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolCalculate.on("click",".js-install-calc:not(.eip-ee-cal)",m,function(f){f.preventDefault();f=$(this).attr("href");var q=$(".eip-popup");0<q.length&&(q.find("iframe").attr("src",f),window.sg.components.eipPopup.showPopup())});c.buyingToolCalculate.on("click",".js-install-calc.eip-ee-cal",m,function(f){f.preventDefault();installmentPlansData.getPaymentData(a.proudctPriceInfo.salePrice,
636c.buyingToolCalculate.find(".js-install-calc.eip-ee-cal").get(0))})}function y(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptOffer.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(f){f.preventDefault();var q=$(this),ba=q.attr("href");f=$(".eip-popup");a.isMigrationHybris||"hu"===a.siteCode||"sg"===a.siteCode||"my"===a.siteCode||"nz"===a.siteCode||"vn"===a.siteCode||"th"===a.siteCode?"in"===a.siteCode?0<f.length&&(q=$("#storeWebDomain").val()+ba,f.find("iframe").attr("src",q),window.sg.components.eipPopup.showPopup()):
637window.sg.components.financePopup.showEmiPopup(a.modelCode,q):0<f.length&&(f.find("iframe").attr("src",ba),window.sg.components.eipPopup.showPopup())});c.buyingToolOptOfferText.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(f){f.preventDefault();f=$(this);var q="in"!==a.siteCode?f.attr("href"):$("#storeWebDomain").val()+f.attr("href"),ba=$(".eip-popup");a.isMigrationHybris&&"de"!==a.siteCode&&"in"!==a.siteCode||"hu"===a.siteCode||"sg"===a.siteCode||"my"===a.siteCode||"nz"===a.siteCode||
638"vn"===a.siteCode||"th"===a.siteCode?window.sg.components.financePopup.showEmiPopup(a.modelCode,f):0<ba.length&&(ba.find("iframe").attr("src",q),window.sg.components.eipPopup.showPopup())})}function I(a,c){c.buyingToolOptOffer.on("click",'a[data-target-popup\x3d"eipEEPopup"]',{sharedObj:a,selectorObj:c},function(m){m.preventDefault();m=$(m.currentTarget).attr("id");installmentPlansData.getPaymentData(a.proudctPriceInfo.salePrice,c.buyingToolOptOffer.find("#"+m).get(0),a.shopSkuCode)})}function X(a,
639c){c.buyingToolGlallery.on("click",".btn-360",{sharedObj:a,selectorObj:c},function(m){window.sg.common.image360.initAll()})}function V(a,c){var m={sharedObj:a,selectorObj:c};$(".us-epp-discount-keep").on("click",".epp-discount",m,function(f){f=$(this).attr("data-store-id");callUsPrivateStore(f,{sharedObj:a,selectorObj:c},a.util.selectedUsEpp);window.sg.components.usEppDiscount.closeLayer()})}function O(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"manufacturerInfoPopup"]',
640m,function(f){0<$(".manufacturer-info-popup").length&&window.sg.components.manufacturerInfoPopup.showPopup()});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"cancelReturnPolicyPopup"]',m,function(f){f=$(".cancel-return-policy-popup");if(0<f.length){var q=a.returnPolicyText;f.find(".cancel-return-policy-popup__text").html(q);window.sg.components.cancelReturnPolicyPopup.showPopup()}});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"warrantyPolicyPopup"]',m,function(f){f=$(".warranty-policy-popup");
641if(0<f.length){var q=a.warrantyText;f.find(".warranty-policy-popup__text").html(q);window.sg.components.warrantyPolicyPopup.showPopup()}})}function S(a,c){var m=a.siteCode;c=a.apiDomain;var f=a.shopSkuCode,q=a.pdMultiLanguageYN,ba=a.pdHrefLang;a.tradeInFlag&&"fr"!==m&&"in"!==m&&(a={sku:f},xa&&(a.store_id=$("#eppCompanyCode").val()),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:c+"/v1/exchange/offers",type:"POST",dataType:"json",
642data:JSON.stringify(a),xhrFields:{withCredentials:!0},beforeSend:function(J){"Y"===q&&J.setRequestHeader("x-ecom-locale",ba)},success:function(J){J&&tradeinData.setTradein(J,"","")},error:function(J){}}))}function Q(a,c,m){var f=c.stockLevelStatus,q=c.siteCode,ba=c.util,J=ba.hasBetweenResult(c,m),ha=ba.hasBetweenResult(c,m);m=ba.hasAcessory(c,m);ba=c.hasGift;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,2);var qa=[],ia="",za=!1;if("INSTOCK"==f||"BACKORDERED"==
643f||"PREORDER"==f)if(J?(za=!0,ia=Granite.I18n.get("Checkout"),qa.push("checkout"),qa.push("between")):ha?"uk"!==q&&"de"!==q?(za=!0,ia=Granite.I18n.get("Checkout"),qa.push("checkout")):qa.push(a):qa.push(a),m||ba)if(!c.isEmbedAddOn||c.isEmbedAddOn&&c.hasGift)za=!0,ia="pl"===q?Granite.I18n.get("Add to cart"):Granite.I18n.get("Buy now"),"PREORDER"==f&&(ia=Granite.I18n.get("pre order")),qa.push("continue");return{title:ia,ctaType:qa.join(" "),isSpecial:za}}function ea(a){return a.isStorePopup?(confirmPopup(Granite.I18n.get("This product is available to buy in store. Please contact store representative. Thank You!"),
644"error"),!0):!1}var la=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),ma=la.ux2.PDPHeaderUI,ta=la.ux2.PriceBar,xa="true"===$("#
644isEppPage").val(),sa="Y"==$("#isNotDelTagSites").val()?"\x3cdel\x3e":"",Ma="Y"==$("#isNotDelTagSites").val()?"\x3c/del\x3e":"",pa=function(a){this.parent=a};pa.prototype.afterTotalAPI=function(a,c){if(a.finishedFirstSyndi&&a.finishedSecondSyndi&&a.finishedAddOn&&a.finishedSearch){var m=a.util;a.hasAddonApiData||(c.buyingToolOptCare.html(""),c.buyingToolOptCare.hide(),
645c.buyingToolOptWarranty.html(""),c.buyingToolOptWarranty.hide(),$(".product-emc-task #emcCare").remove());S(a,c);if("Y"!==a.pdProductTypeCheckYn)if(a.pdSmcType&&"type2"===a.pdSmcType)a.addOnApiList.care&&(a.finalWarrantyList=a.addOnApiList.care.list);else{if(a.addOnApiList.care)if(xa){var f=[];for(q in a.addOnApiList.care.list)a.addOnApiList.care.list[q].price_info&&f.push(a.addOnApiList.care.list[q]);a.finalCareList=f}else a.finalCareList=a.addOnApiList.care.list}else if(a.addOnApiList&&a.addOnApiList.careAndWarranty)for(f in a.addOnApiList.careAndWarranty.list){var q=
646a.addOnApiList.careAndWarranty.list[f];var ba=q.product_type.toUpperCase();"WARRANTY"===ba?a.finalWarrantyList.push(q):"INSURANCE"===ba&&a.finalCareList.push(q)}this.settingAfterApiCareDraw(a,c);this.totalAfterFunction(a,c);f=a.financeFlag;q=a.siteCode;ba=a.promotionFinancingFlag;var J=a.totalPrice.sale,ha=a.util,qa=a.view,ia=Granite.I18n.get("Calculate Finance"),za=a.drawObj,Ja=ha.getEmiUrl(a,c),Fa=!1,Ba={};"Y"===f&&""!==financingUrl&&"in"!==q&&("uk"===q||"id"===q||"sk"===q||"cz"===q?ba&&(Fa=!0,
647Ba=ha.getAttrCta(ia,Ja,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"pl"===q||"hu"===q||"ro"===q||"bg"===q||"ua"===q||"ph"===q||"sg"===q||"my"===q||"nz"===q||"cn"===q||"co"===q||"cl"===q||"mx"===q?J&&100<J&&(Fa=!0,Ba=ha.getAttrCta(ia,Ja,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"ee"===q||"lv"===q?(Fa=!0,Ba=ha.getAttrCta(ia,Ja,"_self","js-install-calc eip-ee-cal",{layerTarget:"eipEEPopup"},"")):(Fa=!0,Ba=ha.getAttrCta(ia,Ja,"_self","js-install-calc",{layerTarget:"eipPopup"},
648"")));za.calculator={hasComponent:Fa,emiAttr:Ba};qa.emiDraw(za);ba=a.util;J=c.buyingToolOptOffer;f=$(c.buyingToolCalculate).find(".js-install-calc");q=J.find('a[data-target-popup\x3d"eipPopup"]');J=J.find('a[data-target-popup\x3d"eipEEPopup"]');ba=ba.getEmiUrl(a,c);q.attr("href",ba);J.attr("href",ba);f.attr("href",ba);a.upgradeFlag&&buyingPdEup.setTncUpgrade();this.totalReinit(a,c);m.gpHybrisGlobalEndPoint(a,c)}};pa.prototype.totalReinit=function(a,c){a=a.siteCode;window.sg.components.ProductDetailKvNew.reInit();
649window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.smg.wtb&&window.smg.wtb.common.reInit();"in"===a&&window.sg.components.hubblePdPopup&&window.sg.components.hubblePdPopup.reinit();window.sg.components.pdHeaderNavigationV2.reInit();window.location.search&&document.querySelector(".btn-gallery-ar")&&"?ar"===window.location.search&&document.querySelector(".btn-gallery-ar").click();ma.gallery.init();ma.buyingTool.bindPdTooltipEvent()};pa.prototype.deliveryGetApiData=
650function(a,c){var m=$(c.buyingToolOptDelivery),f=a.drawObj,q=m.find("#delivery-zipcode").val(),ba=a.view,J=a.siteCode,ha=a.shopSkuCode,qa=a.commonApiModel,ia="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();q?"in"===J&&6>q.length?(f.delivery.errorMessage="Please enter a valid Pincode",f.delivery.inputAttr.value=q,ba.deliveryDraw(f),ia||$(m).find("#delivery-zipcode").focus().val("").val(q),$(m).find(".text-field-v2__text.error").show(),$(m).find(".pd-select-option__tooltip").hide(),
651$(m).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide()):(f.delivery.errorMessage=null,f.delivery.inputAttr.value=q,$(m).find(".text-field-v2__text.error").hide(),ba.deliveryDraw(f),a.isMigrationHybris?"in"===J?(ia&&$.cookies.set("deliveryPincode",q,{domain:".samsung.com",path:"/"+J}),qa.deliveryNewInAPI(a,c,q,null==a.fulfillmentSku?ha:a.fulfillmentSku)):qa.deliveryNewBybrisAPI(a,c,q,ha):"in"===J?$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(za,
652Ja,Fa){f.delivery.time=Fa.getResponseHeader("Date");qa.deliveryInAPI(a,c,q,null==a.fulfillmentSku?ha:a.fulfillmentSku)}}):"us"===J?qa.deliveryUsAPI(a,c,q,ha):qa.deliveryAPI(a,c,q,ha)):(J=Granite.I18n.get("Enter your zipcode"),f.delivery.errorMessage=J,f.delivery.inputAttr.value=q,ba.deliveryDraw(f),ia||$(m).find("#delivery-zipcode").focus().val("").val(q),$(m).find(".text-field-v2__text.error").show(),$(m).find(".pd-select-option__tooltip").hide(),$(m).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide())};
653pa.prototype.selectedUsEpp=function(a){var c=a.sharedObj;a=a.selectorObj;var m=$.cookies.get("tmktid",{domain:".samsung.com"}),f=$.cookies.get("tsgmt",{domain:".samsung.com"});m&&(c.drawObj.usEppData.title="with "+f+" Discounts",c.drawObj.usEppData.hasSelectBox=!1,c.view.usEppDraw(c.drawObj),c.commonApiModel.setUsEppPrice(c,a))};pa.prototype.settingAfterApiCareDraw=function(a,c){c=a.drawObj;var m=a.view,f=c.care.itemSet,q=a.finalCareList,ba=a.samsungCareBadgeList,J={},ha=c.care.items,qa=c.care.useOneDepthPrice,
654ia=0,za=1;if(c.care.isSmcType2){var Ja=!1,Fa=!1,Ba={};for(ua in q){var Ha=q[ua],Va=Ha.modelCode;if(!J[Va]){Ba.$jscomp$loop$prop$isTheft$338=Ha.isTheft;var Na={},ka=Granite.I18n.get("Samsung Care+"),La="",Da="",Ka="",Qa="",Oa="",Sa="",Ra="",Ua="",Y="",ja=null,ya=null,Aa="",Ga="";Ha.displayName&&(ka=Ha.displayName);Ha.price_info&&Ha.price_info[0]&&(Na=Ha.price_info[0],ja=Na.msrp_price,ya=Na.sale_price,Ka=Na.saveText);ja&&ja.duration_value&&ja.paymentcycle_value&&0<ja.duration_value&&null!=ja.paymentcycle_value&&
655"monthly"==ja.paymentcycle_value.toLowerCase()&&(Ua=ja.duration_value,Y=ja.paymentcycle_value.toLowerCase());ja&&ja.freeMonths_value&&(Ra=ja.freeMonths_value);ya&&ya.duration_value&&ya.paymentcycle_value&&0<ya.duration_value&&null!=ya.paymentcycle_value&&"monthly"==ya.paymentcycle_value.toLowerCase()&&(Ua=ya.duration_value,Y=ya.paymentcycle_value.toLowerCase());null!=ja&&"undefined"!==typeof ja.wasValue?(ja&&null!=ja.value&&(Sa=ja.value,Aa=ja.wasValue,ja.formatted_value&&(La=ja.formatted_value),ja.formatted_wasValue&&
656(Ga=ja.formatted_wasValue)),ya&&ya.value?(ya.value&&(Oa=ya.value),ya.formatted_value&&(Da=ya.formatted_value),Sa&&Sa===Oa&&(La="")):Da=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||"it"===a.siteCode)&&Ua&&Y?Granite.I18n.get("{0}/month {1}",[La,Ua]):("ch"===a.siteCode||"ch_fr"===a.siteCode||"ro"===a.siteCode||"at"===a.siteCode||"cz"===a.siteCode||"pt"===a.siteCode)&&Ua&&Y?Granite.I18n.get("{0}
656/Mon",La):La,Ha.flags&&
657Ha.flags.is_subscription&&"ro"!=a.siteCode&&"cz"!=a.siteCode&&(Da=Granite.I18n.get("{0}/month",Da)),0!=parseFloat(Aa)&&null!=Aa&&(Da="\x3cdel\x3e"+Ga+"\x3c/del\x3e\x3cem\x3e"+Da+"\x3c/em\x3e")):(ja&&ja.value&&(Sa=ja.value,ja.formatted_value&&(La=ja.formatted_value)),ya&&ya.value?(ya.value&&(Oa=ya.value),ya.formatted_value&&(Da=ya.formatted_value),Sa&&Sa===Oa&&(La="")):Da=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||
658"it"===a.siteCode)&&Ua&&Y?Granite.I18n.get("{0}/month {1}",[La,Ua]):La,Ha.flags&&Ha.flags.is_subscription&&(Da=Granite.I18n.get("{0}/month",Da)),Oa&&Sa&&Sa!==Oa&&(Qa="\x3cdel\x3e"+La+"\x3c/del\x3e"));Oa="";0<ba.length&&ba[ua].product_tags&&ba[ua].product_tags[0]&&(Oa=ba[ua].product_tags[0]);Aa=null!==Aa&&ja&&"undefined"!==typeof ja.wasValue?ja.wasValue:"";"es"==siteCode&&"monthly"==Y&&(Da=-1<Da.indexOf("\x3cem\x3e")?Da.replace(/<\/em>/g,"/mes\x3c/em\x3e"):Da+"/mes");"monthly"===Y&&null!=Ra&&"0"!=
659Ra&&""!=Ra?"se"===siteCode?Da="0 kr/m\u00e5n i "+Ra+" m\u00e5n, d\u00e4refter "+Da:"no"===siteCode?Da="0 kr/mnd i "+Ra+" mnd, deretter "+Da:"dk"===siteCode?Da="0 kr./md. i "+Ra+" mdr., derefter "+Da:"fi"===siteCode?Da="0 \u20ac/kk "+Ra+" kk ajan, sen "+Da:"ae"===siteCode?Da="0 AED for "+Ra+" months then "+Da+"/mo":"ae_ar"===siteCode?Da="0.00 \u062f.\u0625 \u0644\u0645\u062f\u0629 "+Ra+" \u0645\u0646 \u0627\u0644\u0623\u0634\u0647\u0631 \u062b\u0645"+Da+"/\u0634\u0647\u0631\u064a\u0627\u064b":"uk"===
660siteCode||"fr"===siteCode?(Da=Da.substring(0,Da.indexOf("/")),Da=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ra,Da])):"it"===siteCode&&(Da=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ra,Da])):"monthly"!==Y||null!=Ra&&"0"!=Ra&&""!=Ra||("uk"===siteCode?(Da=Da.substring(0,Da.indexOf("/")),Da=Granite.I18n.get("freeMonths_null {0}/month",[Da])):"ae"===siteCode?Da+="/month":"ae_ar"===siteCode&&(Da+="/\u0641\u064a \u0627\u0644\u0634\u0647\u0631"));Ba.$jscomp$loop$prop$itemObj$339={index:ia,
661optionName:ka,optionSalePrice:Da,optionOriPrice:Qa,optionSavePrice:Ka,optionOriWasPrice:Aa,specialText:Ha.long_description,badge:Oa,paymentCycle:Y,oriPriceValue:Sa,summary:Ha.summary,cycle:Ha.cycle,freeMonths:Ra};f.push(Ba.$jscomp$loop$prop$itemObj$339);Ha.displayName=ka;Na.formattedPrice=Da;Na.formattedDelPrice=La;J[Va]=Va;ia++;!Ja&&Ba.$jscomp$loop$prop$isTheft$338?(Ba.$jscomp$loop$prop$descList$336=[],"at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?Ba.$jscomp$loop$prop$descList$336=
662H(4,function(Ea){Ea.forEach(function(Ia,wa){Ea[wa]="theft-"+Ia})}):["ae","ae_ar"].includes(siteCode)?Ba.$jscomp$loop$prop$descList$336=H(5,function(Ea){Ea.forEach(function(Ia,wa){Ea[wa]="theft-"+Ia})}):["ro"].includes(siteCode)?Ba.$jscomp$loop$prop$descList$336=H(6,function(Ea){Ea.forEach(function(Ia,wa){Ea[wa]="theft-"+Ia})}):Ba.$jscomp$loop$prop$descList$336=H(5),Ba.$jscomp$loop$prop$descList$336.forEach(function(Ea){return function(Ia,wa){Ea.$jscomp$loop$prop$descList$336[wa]=Granite.I18n.get(Ia);
663-1<Granite.I18n.get(Ia).indexOf("descListText")&&Ea.$jscomp$loop$prop$descList$336.splice(wa,1)}}(Ba)),ha.push({index:za,isTheft:Ba.$jscomp$loop$prop$isTheft$338,optionName:Granite.I18n.get("Accidental Damage \x26 Theft"),paymentCycle:Y,optionSalePrice:"",optionOriPrice:Qa,optionSavePrice:Ka,depthOneBtnTitle:Granite.I18n.get("Accidental Damage \x26 Theft CTA Button"),descList:Ba.$jscomp$loop$prop$descList$336}),Ja=!0,za++):Fa||Ba.$jscomp$loop$prop$isTheft$338||(Ba.$jscomp$loop$prop$descList$62$337=
664[],"at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?Ba.$jscomp$loop$prop$descList$62$337=H(4,function(Ea){Ea.forEach(function(Ia,wa){Ea[wa]="damage-"+Ia})}):["ae","ae_ar"].includes(siteCode)?Ba.$jscomp$loop$prop$descList$62$337=H(5,function(Ea){Ea.forEach(function(Ia,wa){Ea[wa]="damage-"+Ia})}):["ro"].includes(siteCode)?Ba.$jscomp$loop$prop$descList$62$337=H(6,function(Ea){Ea.forEach(function(Ia,wa){Ea[wa]="damage-"+Ia})}):Ba.$jscomp$loop$prop$descList$62$337=
665H(5),Ba.$jscomp$loop$prop$descList$62$337.forEach(function(Ea){return function(Ia,wa){Ea.$jscomp$loop$prop$descList$62$337[wa]=Granite.I18n.get(Ia);-1<Granite.I18n.get(Ia).indexOf("descListText")&&Ea.$jscomp$loop$prop$descList$62$337.splice(wa,1)}}(Ba)),ha.push({index:za,isTheft:Ba.$jscomp$loop$prop$isTheft$338,optionName:Granite.I18n.get("Accidental Damage"),paymentCycle:Y,optionSalePrice:"",optionOriPrice:Qa,optionSavePrice:Ka,depthOneBtnTitle:Granite.I18n.get("Accidental Damage CTA Button"),descList:Ba.$jscomp$loop$prop$descList$62$337}),
666Fa=!0,za++);$.map($.grep(ha,function(Ea){return function(Ia,wa){return Ia.isTheft===Ea.$jscomp$loop$prop$isTheft$338}}(Ba)),function(Ea){return function(Ia,wa){Ia.itemSet||(Ia.itemSet=[]);Ia.itemSet.push(Ea.$jscomp$loop$prop$itemObj$339)}}(Ba))}Ba={$jscomp$loop$prop$descList$336:Ba.$jscomp$loop$prop$descList$336,$jscomp$loop$prop$descList$62$337:Ba.$jscomp$loop$prop$descList$62$337,$jscomp$loop$prop$isTheft$338:Ba.$jscomp$loop$prop$isTheft$338,$jscomp$loop$prop$itemObj$339:Ba.$jscomp$loop$prop$itemObj$339}}1!=
667ha[0].isTheft&&ha.reverse();qa&&u(ha)}else for(Ja in q){var ua=q[Ja];ha=ua.modelCode;if(!J[ha]){qa={};za=Granite.I18n.get("Samsung Care+");Ka=Da=Ha=Ba=ka=Fa="";Va=!1;Na=Qa="";Sa=La=null;
667Y=Ra="";ua.displayName&&(za=ua.displayName);ua.price_info&&ua.price_info[0]&&(qa=ua.price_info[0],La=qa.msrp_price,Sa=qa.sale_price,Ba=qa.saveText);La&&La.duration_value&&La.paymentcycle_value&&0<La.duration_value&&null!=La.paymentcycle_value&&"monthly"==La.paymentcycle_value.toLowerCase()&&(Qa=La.duration_value,Na=
668La.paymentcycle_value.toLowerCase());Sa&&Sa.duration_value&&Sa.paymentcycle_value&&0<Sa.duration_value&&null!=Sa.paymentcycle_value&&"monthly"==Sa.paymentcycle_value.toLowerCase()&&(Qa=Sa.duration_value,Na=Sa.paymentcycle_value.toLowerCase());"it"===a.siteCode&&Sa&&Sa.paymentcycle_value&&(Na=Sa.paymentcycle_value.toLowerCase());if(null!=La&&"undefined"!==typeof La.wasValue){if(La&&La.value||("ch"===a.siteCode||"ch_fr"===a.siteCode||"sa"===a.siteCode||"sa_en"===a.siteCode)&&0==La.value)Ka=La.value,
669Ra=La.wasValue,La.formatted_value&&(Fa=La.formatted_value),La.formatted_wasValue&&(Y=La.formatted_wasValue);"uk"!==a.siteCode&&"tr"!==a.siteCode||0!=parseFloat(La.value)?(Sa&&Sa.value?(Sa.value&&(Da=Sa.value),Sa.formatted_value&&(ka=Sa.formatted_value),Ka&&Ka===Da&&(Fa="")):ka=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Na?Granite.I18n.get("{0}/month {1}",[Fa,Qa]):Fa,ua.flags&&ua.flags.is_subscription&&
670(ka=Granite.I18n.get("{0}/month",ka)),Da&&Ka&&Ka!==Da&&("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Na&&(ka=Granite.I18n.get("{0}/month {1}",[ka,Qa]))):ka=Granite.I18n.get("Free");"it"===a.siteCode&&0==parseFloat(La.value)?(ka=$("#priceCurrency").val(),Va=!0,ka=currencyComma(parseFloat(La.value),ka).replace(",00","")):0==parseFloat(Ra)||null==Ra||!xa&&"tr"===a.siteCode||(ka="\x3cdel\x3e"+Y+"\x3c/del\x3e\x3cem\x3e"+
671ka+"\x3c/em\x3e")}else La&&La.value&&(Ka=La.value,La.formatted_value&&(Fa=La.formatted_value)),Sa&&Sa.value?(Sa.value&&(Da=Sa.value),Sa.formatted_value&&(ka=Sa.formatted_value),Ka&&Ka===Da&&(Fa="")):ka=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Na?Granite.I18n.get("{0}/month {1}",[Fa,Qa]):Fa,ua.flags&&ua.flags.is_subscription&&(ka=Granite.I18n.get("{0}/month",ka)),Da&&Ka&&Ka!==Da&&(("fi"===a.siteCode||
672"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Na&&(ka=Granite.I18n.get("{0}/month {1}",[ka,Qa])),Ha="nl"===a.siteCode||"be"===a.siteCode||"be_fr"===a.siteCode||"de"===a.siteCode?Granite.I18n.get("From {0}","\x3cdel\x3e"+Fa+"\x3c/del\x3e"):"jp"===a.siteCode?"(\u5272\u5f15\u524d\u4fa1\u683c : "+Fa+")":"\x3cdel\x3e"+Fa+"\x3c/del\x3e");La="";0<ba.length&&ba[Ja].product_tags&&ba[Ja].product_tags[0]&&(La=ba[Ja].product_tags[0]);Da=
673"";a.isGpv2?ua.inventory&&ua.inventory.status&&(Da=ua.inventory.status.toLowerCase()):ua.otherParameters&&isNotEmpty(ua.otherParameters.stockLevelStatus)&&(Da=ua.otherParameters.stockLevelStatus.toLowerCase());f.push({index:ia+1,prePopup:Va,optionName:za,optionSalePrice:ka,optionOriPrice:Ha,optionSavePrice:Ba,specialText:ua.long_description,badge:La,isAlMese:ka&&"it"==a.siteCode&&"monthly"==Na?!0:!1,isNoAlMese:!ka||"it"==a.siteCode&&"monthly"==Na?!1:!0,paymentCycle:"fr"==a.siteCode?Na:"",stockStatus:"in"==
674a.siteCode&&"outofstock"==Da?"OOS":""});ua.displayName=za;qa.formattedPrice=ka;qa.formattedDelPrice=Fa;J[ha]=ha;ia++}}m.productAddOnCare(c)};pa.prototype.checkAddToCart=function(a,c){var m=a.util,f=a.drawObj;a.checkValid=!1;c="INSTOCK"==a.apiChangeStockStatus||"LOWSTOCK"==a.apiChangeStockStatus||"PREORDER"==a.apiChangeStockStatus||"BACKORDERED"==a.apiChangeStockStatus?m.checkingDeliveryCode(a,c)&&m.checkingNewAssuredBuyBack(a)&&(m.checkingSamsungCare(a)||"none"===f.careResult.dataModelCode)?!0:!1:
675!1;a.checkValid=!0;$(".hdd02-buying-tool .cost-box__cta .cta:not(.cta--icon)").attr("canAddToCart",c);$(".pd-buying-price .pd-buying-price__cta .cta").attr("canAddToCart",c);$(".pd-g-anchor-navigation-ux25 .pdd39-anchor-nav__cta .cta").attr("canAddToCart",c)};pa.prototype.totalAfterFunction=function(a,c){this.optionExposureRule(a,c);this.settingPriceDraw(a,c);this.setSamcolVatFreePrice(a);this.settingPriceCta(a.hasPriceCta,a,c,a.currentUrl);this.settingBezelOptionDraw(a,c);this.settingBezelInfo(a,
676c);this.settingGiftCard(a,c);this.settingDeliveryPickup(a,c);this.settingRecommendation(a,c);"se"!=siteCode&&"no"!=siteCode&&"fi"!=siteCode&&"dk"!=siteCode||this.displayStockStatus(a,c);this.thirdPartyTagging(a,c);this.checkAddToCart(a,c)};pa.prototype.clickEventListener=function(a,c){C(a,c);E(a,c);T(a,c);R(a,c);z(a,c);va(a,c);fa(a,c);ra(a,c);N(a,c);L(a,c);na(a,c);Z(a,c);M(a,c);t(a,c);y(a,c);I(a,c);O(a,c);X(a,c);V(a,c);oa(a,c);da(a,c);b(a,c);G(a,c);r(a,c)};pa.prototype.getQuerystring=function(a){for(var c=
677window.location.search.substring(1).split("\x26"),m=0;m<c.length;m++){var f=c[m].split("\x3d");if(f[0]===a)return f[1]}};pa.prototype.getBrowserName=function(){var a="Unknown";-1!==navigator.userAgent.indexOf("MSIE")?a="MSIE":-1!==navigator.userAgent.indexOf("Firefox")?a="Firefox":-1!==navigator.userAgent.indexOf("Opera")?a="Opera":-1!==navigator.userAgent.indexOf("Chrome")?a="Chrome":-1!==navigator.userAgent.indexOf("Safari")&&(a="Safari");return a};pa.prototype.removeClass=function(a,c){return a.replace(c,
678"").replace("  "," ")};pa.prototype.addClass=function(a,c){return a+(" "+c)};pa.prototype.merge=function(a,c,m,f){f=void 0===f?"":f;if(m&&(a[c]?$.extend(a[c],m):(a[c]=m,a[c].apiType=""),a=a[c],f&&(a.apiType+=" "+f),a.price_info&&0<a.price_info.length)){f=$("#priceCurrency").val();c=$("#siteCode").val();for(var q in a.price_info){m=a.price_info[q];var ba="",J="";if(m.msrp_price&&m.msrp_price.value){ba=m.msrp_price.value;var ha=m.msrp_price.formatted_value;null===ha&&(ha=currencyComma(ba,f),m.msrp_price.formatted_value=
679ha)}m.sale_price&&m.sale_price.value&&(ba!==m.sale_price.value&&(J=m.discount_description&&m.discount_description.type&&-1<"rebate,percentage".indexOf(m.discount_description.type.toLowerCase())&&m.discount_description.formatted_value?m.discount_description.formatted_value:currencyComma(ba-m.sale_price.value,f),J=Granite.I18n.get("Save {0}",J,c)),ba=m.sale_price.value,ha=m.sale_price.formatted_value,null===ha&&(ha=currencyComma(ba,f),m.sale_price.formatted_value=ha
679));m.saveText=J;if("nl"===c||"be"===
680c||"be_fr"===c)m.list_price&&m.list_price.formatted_value&&(m.list_price.formatted_value=deleteCurrency(m.list_price.formatted_value,f).trim()),m.msrp_price&&m.msrp_price.formatted_value&&(m.msrp_price.formatted_value=deleteCurrency(m.msrp_price.formatted_value,f).trim()),m.sale_price&&m.sale_price.formatted_value&&(m.sale_price.formatted_value=deleteCurrency(m.sale_price.formatted_value,f).trim())}}};pa.prototype.removeElement=function(a){for(var c in a){var m=a[c];m&&0<m.length&&($(a).html="",$(a).hide())}};
681pa.prototype.addDisabledAllNotOneElement=function(a,c){a=$(a);c=c.disabledCtaClass;a&&0<a.length&&(a=a.find(".option-input:gt(0)"),0<a.length&&$(a.parent().parent()).addClass(c))};pa.prototype.addDisabledAllElement=function(a,c){a=$(a);c=c.disabledCtaClass;if(a&&0<a.length&&(a=a.find(".option-input"),0<a.length)){var m=a.parent().parent();a.attr("disabled","true");$(m).addClass(c)}};pa.prototype.removeDisabledAllElement=function(a,c){a=$(a);c=c.disabledCtaClass;if(a&&0<a.length&&(a=a.find(".option-input"),
6820<a.length)){var m=a.parent().parent();a.removeAttr("disabled");$(m).removeClass(c)}};pa.prototype.addDisabledSecondElement=function(a,c){a=$(a);c=c.disabledCtaClass;a&&0<a.length&&(a=a.find(".option-input"),0<a.length&&$($(a).get(1)).parent().parent().addClass(c))};pa.prototype.addCheckedFirstElement=function(a){(a=$(a))&&0<a.length&&(a=a.find(".option-input"),0<a.length&&(a=$($(a).get(0)),a.attr("checked","checked"),a.parent().parent().addClass("selected")))};pa.prototype.addCheckedSecondElement=
683function(a){(a=$(a))&&0<a.length&&(a=a.find(".option-input"),0<a.length&&(a=$(a).get(1),a.attr("checked","checked"),a.parent().parent().addClass("selected")))};pa.prototype.removeCheckedElement=function(a){(a=$(a))&&0<a.length&&(a=a.find(".option-input"),0<a.length&&(a.prop("checked",!1),a.parent().parent().removeClass("selected")))};pa.prototype.disabledOptionElement=function(a,c){a=$(a);var m=c.disabledClass;c=c.selectedClass;a&&0<a.length&&(a.hasClass(m)||a.addClass(m),a.hasClass(c)&&a.removeClass(c))};
684pa.prototype.removeSelectedOptionElement=function(a,c){a=$(a);c=c.selectedClass;a&&0<a.length&&a.hasClass(c)&&a.removeClass(c)};pa.prototype.getEmiUrl=function(a,c){c=a.totalPrice.sale;var m=a.siteCode,f=a.financingUrl,q=a.emiCalculatorUrl;return"uk"===m||"in"===m||"id"===m?a.emiUrl+"/?sku\x3d"+a.shopSkuCode+"\x26price\x3d"+c+"\x26page\x3dsimple buying tool:offer":"de"===m?f:"pl"===m||"hu"===m||"lt"===m||"ro"===m||"bg"===m||"ua"===m?q:"ee"===m||"lv"===m?"javascript:void(0);":f+"/?total\x3d"+c+"\x26page\x3dpdp"};
685pa.prototype.removeDisabledElement=function(a,c){a=$(a);c=c.disabledClass;a&&0<a.length&&a.removeClass(c)};pa.prototype.settingExchangeAPIData=function(a,c,m,f){var q=c.util,ba=c.drawObj,J=c.siteCode,ha=q.hasForeverResult(c,m),qa=q.hasForever(c,m),ia="",za="",Ja="",Fa=0,Ba=0,Ha=0,Va=0,Na="",ka="",La="";if(a){a.device_info&&(a.device_info.name&&(za=a.device_info.name),a.device_info.brand&&(Ja=a.device_info.brand));"CE"==c.tradeInType&&(a.device_info&&(ka=a.device_info.product_condition,La=a.device_info.category),
686a.partner&&(Na=a.partner));var Da="";Ja&&(Da+=Ja);Da&&(Da+=" | ");za&&(Da+=za);a.estimated_discount&&(a.estimated_discount.exchange_discount&&(Ba=parseFloat(a.estimated_discount.exchange_discount.amount)),a.estimated_discount.exchange_value&&(Fa=parseFloat(a.estimated_discount.exchange_value.amount)),a.estimated_discount.total&&(Ha=parseFloat(a.estimated_discount.total.amount),ia=a.estimated_discount.total.currency),"CE"===c.tradeInType&&"uk"===J&&-1<window.location.host.indexOf("p6-pre-qa3.")&&(J=
687m.buyingToolOptTradeIn.find("#pd-trade-in-0").attr("data-total-price"),Ha=parseFloat(J)));a.estimated_discount&&a.estimated_discount.special_discount&&a.estimated_discount.special_discount.amount&&(Va=parseFloat(a.estimated_discount.special_discount.amount));"CE"==c.tradeInType?c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Da,isUpfront:!a.delayed_gratification,specialDiscount:Va,exchangePrice:Fa,addtionalPrice:Ba,totalPrice:Ha,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,partner:Na,productC
687ondition:ka,
688productCategory:La,tradeupCurrency:ia}:(c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Da,isUpfront:!a.delayed_gratification,specialDiscount:Va,exchangePrice:Fa,addtionalPrice:Ba,totalPrice:Ha,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,tradeupCurrency:ia},a.withCeTradeUpPopup&&(c.exchangeApiData.withCeTradeUpPopup=!0));q.exchangeResultDraw(c,m);qa&&q.foreverDraw(c,m);ha&&f.galaxyForeverResultDraw(ba);q.totalAfterFunction(c,m)}};pa.prototype.exchangeResultDraw=function(a,c){var m=a.view,f=a.util,
689q=a.priceCurrency,ba=a.drawObj,J=a.siteCode,ha=f.hasOffer(a,c),qa=f.hasForeverResult(a,c),ia=a.exchangeApiData,za=ia.modelAndBrand,Ja=ia.exchangePrice,Fa=ia.addtionalPrice,Ba=ia.totalPrice,Ha=ia.isUpfront,Va=ia.partner,Na=ia.productCondition,ka=ia.productCategory,La=!1,Da=!1,Ka=0,Qa=ia.dataQuoteId;ha&&(La=f.hasBogo(a,c),Da=f.hasComboResult(a,c));if(ia.exchangeFlag){ha=Ja?La||Da||qa?Ba-Fa:Ba:Ba;f=currencyComma(ha,q);Ha?(Ka=ha,Ja=f+"("+Granite.I18n.get("Instant Discount")+")"):Ja=f+"("+Granite.I18n.get("Assured Value")+
690")";qa&&"in"===J&&ia.foreverId&&(Qa=ia.foreverId);qa=".siel-trade-in-popup-option__condition-check-desc-"+Na;Fa="";"CE"==a.tradeInType&&Na&&(Fa="Television"!=ka&&"average"==Na?"Average":Na[0].toUpperCase()+Na.slice(1,Na.length));if("CE"==a.tradeInType)if("in"===J)ba.tradeInResult={hasComponent:!0,textTitleCe:"Congratulations your exchange has been applied",textCe:"Get exchange value of up to \u20b9"+Ba+" on your old product \x3cbr\x3e By: \x3cstrong\x3e"+Va+"\x3cstrong\x3e",description:"Actual Exchange discount will depend upon Product Evaluation results",
691tooltip:Fa+"(\u20b9"+Ba+")\x3cbr\x3e "+$(qa).text(),dataQuoteId:Qa,isUpfront:Ha,discountText1:Ja,dataPrice:Ka};else{if("uk"===J){J="Get "+currencyComma(Ba,q)+" off your order instantly for recycling your TV";if("08030000"===a.categoryTypeCode||"08010000"===a.categoryTypeCode||"08070000"===a.categoryTypeCode||"07010000"===a.categoryTypeCode)switch(a.categoryTypeCode){case "08030000":J="Get "+currencyComma(Ba,q)+"\x3c/span\x3e for recycling your refrigerator\x3c/strong\x3e";break;case "08010000":J=
692"Get "+currencyComma(Ba,q)+"\x3c/span\x3e for recycling your laundry device\x3c/strong\x3e";break;case "08070000":J="Get "+currencyComma(Ba,q)+"\x3c/span\x3e for recycling your vacuum\x3c/strong\x3e";break;case "07010000":J="Get "+currencyComma(Ba,q)+"\x3c/span\x3e for recycling your monitor\x3c/strong\x3e"}ba.tradeInResult={hasComponent:!0,discountText1:Ja,description:J,dataPrice:Ka,dataQuoteId:Qa,isUpfront:Ha}}}else ia.withCeTradeUpPopup?(q="b2c_"+a.ceTradeUpPopup.productCategoryGroup,a=a.ceTradeUpPopup.productCategoryMainType,
693"ph"!==J||"rf"!==a&&"wm"!==a&&"ac"!==a||(q="b2c_"+a),"at"!==J||"rf"!==a&&"wm"!==a&&"vc"!==a||(q="b2c_"+a),"bg"===J&&(a=ia.tradeupCurrency,f=currencyComma(ha,a),a="eur"===a.toLowerCase()?g(ha):l(ha),f=f+" / "+a),Ja=CeTradeUpPopup.config.view.showDiscountAmount.inResultBanner?Granite.I18n.get(CeTradeUpPopup.config.shop.isCashbackSite?'"{0}" (Assured Value)':'"{0}" (Instant Discount)',[f],q):"",a="",CeTradeUpPopup.config.view.showDiscountAmount.inResultDescription&&(a=Granite.I18n.get("Get {0} off you order instantly for recycling your device",
694[f],q)),ba.tradeInResult={hasComponent:!0,discountText1:Ja,description:a,dataPrice:Ka,dataQuoteId:Qa,isUpfront:Ha}):ba.tradeInResult={hasComponent:!0,displayModelName:Granite.I18n.get("Your Trade-in")+" : "+za,discountText1:Ja,description:Granite.I18n.get("*Actual trade-in discount might differ from estimated discount."),dataPrice:Ka,dataQuoteId:Qa,isUpfront:Ha};ma.triggerChange(document.querySelector("#pd-trade-in-0"));m.tradeInResultDraw(ba);null!==ba.deliveryResult.priorityText&&!0===ba.tradeInResult.isUpfront?
695$(c.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==ba.deliveryResult.priorityText&&!1===ba.tradeInResult.isUpfront&&$(c.buyingToolOptDeliveryResult).find(".delivery-priority").show();ma.buyingTool.bindPdTooltipEvent()}};pa.prototype.foreverDraw=function(a,c){var m=a.foreverFinanceInfo,f=m.productPrice?parseFloat(m.productPrice):0,q=m.assuredBuyBack?parseFloat(m.assuredBuyBack):0,ba=m.tenureValue?parseFloat(m.tenureValue):0,J=m.carePrice?parseFloat(m.carePrice):0,ha=a.drawObj,
696qa=a.priceCurrency,ia=a.view,za=a.util;c=za.hasTradeInResult(a,c);var Ja=a.drawObj.tradeInResult.dataPrice,Fa=0;a={};c&&(Fa=Ja,m.tradeinCheckFlag=!0,m.tradeinprice=Ja,m.tradeinDiscountYn=0==Ja?!0:!1);f=(f+J-Fa-q)/ba;m.foreverPrice=f;a.layerTarget="#hubble-forever-learnmore-layer";za=za.getAttrCta(Granite.I18n.get("Learn more"),"javascript:;","_self","",a,"");ba=Granite.I18n.get("Pay {0} per month and own the device for {1} months.",[currencyComma(f,qa),ba]);ha.galaxyForever={hasComponent:m.foreverFlag,
697title:Granite.I18n.get("Galaxy Forever"),description:ba,learnMoreCta:za,yesAttr:{"class":"hubble-pd-popup-opener",text:Granite.I18n.get("YES"),subText:null,layerTarget:"#hubble-galaxy-forever-layer"},noAttr:{"class":"hubble-pd-popup-opener",text:Granite.I18n.get("NO"),layerTarget:null,eventType:"forever"}};ia.galaxyForeverDraw(ha)};pa.prototype.optionExposureRule=function(a,c){switch(a.siteCode){case "uk":if(a.categoryTypeCode.startsWith("01")){var m={tariffOption:["upgrade","warranty"],tradeIn:["upgrade"],
698upgrade:["tariffOption","tradeIn","combo","accessory"],care:[],warranty:[],combo:["upgrade"]};var f={tariffOption:["upgrade","warranty","price"],tradeIn:["upgrade","price"],upgrade:["tariffOption","tradeIn","combo","price"],care:[],warranty:[],combo:["upgrade","price"],accessory:["upgrade","price"]}}else m={tariffOption:["tradeIn","upgrade","care","warranty"],tradeIn:["tariffOption","upgrade"],upgrade:["tariffOption","tradeIn","combo","accessory"],care:["tariffOption"],warranty:["tariffOption"],combo:["upgrade"]},
699f={tariffOption:["tradeIn","upgrade","care","warranty","price"],tradeIn:["tariffOption","upgrade","price"],upgrade:["tariffOption","tradeIn","combo","price"],care:["tariffOption"],warranty:["tariffOption"],combo:["upgrade","price"],accessory:["upgrade","price"]};this.checkingDiabledEnabled(a,c,m,f);break;case "de":m={tariffOption:["tradeIn","upgrade","care","warranty","calculate"],tradeIn:["tariffOption","warranty"],upgrade:["tariffOption","warranty"],care:["tariffOption","warranty"],warranty:["tariffOption",
700"tradeIn","upgrade","care"]};f={tariffOption:["tradeIn","upgrade","care","warranty","price"],tradeIn:["tariffOption","warranty","price"],upgrade:["tariffOption","warranty","price"],care:["tariffOption","warranty"],warranty:["tariffOption","tradeIn","upgrade","care"],calculate:["tariffOption"]};this.checkingDiabledEnabled(a,c,m,f);break;case "fr":m={tariffOption:["tradeIn","between"],tradeIn:["financing","tariffOption"],between:"care warranty bogo combo financing accessory tariffOption".split(" "),
701care:["between","warranty"],warranty:["between","care"]};f={tariffOption:["tradeIn","between"],between:["care","warranty","tariffOption"],care:["between","warranty"],warranty:["between","care"],bogo:["between","price"],combo:["between","price"],financing:["tradeIn","between"],accessory:["between","price"]};this.checkingDiabledEnabled(a,c,m,f);break;case "nl":case "be":case "be_fr":m={tariffPlan:"tradeIn between care warranty bogo combo accessory".split(" "),tradeIn:["tariffPlan","between"],between:"tariffPlan tradeIn care warranty bogo combo accessory".split(" "),
702care:["tariffPlan","between"],warranty:["tariffPlan","between"],combo:["tariffPlan","between"]};f={tariffPlan:"tradeIn between care warranty combo price".split(" "),tradeIn:["tariffPlan","between","price"],between:["tariffPlan","tradeIn","care","warranty","combo"],care:["tariffPlan","between"],warranty:["tariffPlan","between"],bogo:["tariffPlan","between","price"],combo:["tariffPlan","between","price"],accessory:["tariffPlan","between","price"]};this.checkingDiabledEnabled(a,c,m,f);break;case "in":m=
703{forever:["accessory"]};f={};this.checkingDiabledEnabled(a,c,m,f);break;case "it":m={between:["accessory","care","tradeIn"]};f={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,f);break;case "ru":m={between:["accessory","care","tradeIn"]};f={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,f);break;case "es":m={upgrade:["accessory","care","tradeIn"]};f={accessory:["upgrade"],care:["upgrade"],tradeIn:["upgrade"]};
704this.checkingDiabledEnabled(a,c,m,f);break;case "au":m={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},f={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},this.checkingDiabledEnabled(a,c,m,f)}};pa.prototype.checkingDiabledEnabled=function(a,c,m,f){var q=a.drawObj,ba={tariffOption:this.disabledTariffOption,tradeIn:this.disabledTradeIn,
705upgrade:this.disabledUpgrade,between:this.disabledBetween,care:this.disabledCare,warranty:this.disabledWarranty,bogo:this.disabledBogo,combo:this.disabledCombo,calculate:this.disabledCalculate,financing:this.disabledFinancing,tariffPlan:this.disabledTariffPlan,accessory:this.disabledAccessory},J={tariffOption:this.enabledTariffOption,tradeIn:this.enabledTradeIn,upgrade:this.enabledUpgrade,between:this.enabledBetween,care:this.enabledCare,warranty:this.enabledWarranty,bogo:this.enabledBogo,combo:this.enabledCombo,
706calculate:this.enabledCalculate,financing:this.enabledFinancing,tariffPlan:this.enabledTariffPlan,accessory:this.enabledAccessory};q={tariffOption:this.hasTariffOptionResult(a,c),tradeIn:this.hasTradeInResult(a,c),upgrade:this.hasUpgradeResult(a,c),between:this.hasBetweenResult(a,c),care:this.hasCareResult(a,c),warranty:this.hasWarrantyResult(a,c),warrantyVd:this.hasWarrantyVdResult(a,c),combo:this.hasComboResult(a,c),tariffPlan:this.hasTariffPlanResult(a,c),price:!q.price.priceWrapper.hasPriceWrapper,
707forever:this.hasForeverResult(a,c)};for(var ha in m)if(q[ha])for(var qa=$jscomp.makeIterator(m[ha]),ia=qa.next();!ia.done;ia=qa.next()){ia=ia.value;ma.isDebug&&console.log("[HDD02] Disable component: "+ia);var za=ba[ia];za?za.call(this,a,c):console.warn("[HDD02] Disable handler not exists: "+ia)}else for(qa=$jscomp.makeIterator(m[ha]),ia=qa.next();!ia.done;ia=qa.next()){ia=ia.value;za=f[ia];var Ja=!1,Fa;for(Fa in za){if(Ja)break;q[za[Fa]]&&(Ja=!0)}Ja||(ma.isDebug&&console.log("[HDD02] Enable component: "+
708ia),(za=J[ia])?za.call(this,a,c):console.warn("[HDD02] Enable handler not exists: "+ia))}};pa.prototype.disabledAccessory=function(a,c){a.accessoryDisabled=!0};pa.prototype.enabledAccessory=function(a,c){a.accessoryDisabled=!1};pa.prototype.disabledFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));a.hide();a.addClass("removed")};pa.prototype.enabledFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));a.show();a.removeClass("removed")};pa.prototype.disabledCalculate=
709function(a,c){$(c.buyingToolCalculate).hide()};pa.prototype.enabledCalculate=function(a,c){$(c.buyingToolCalculate).show()};pa.prototype.disabledCombo=function(a,c){var m=a.drawObj.offer.combo,f=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=$(c.buyingToolOptOffer.find(".pd-offer__selected-bundle-wrap"));this.disabledOptionElement(f,a);
709for(var q in m)a=m[q],a.item.bundleList&&(a.item.bundleList=[]);c.remove()};pa.prototype.enabledCombo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");
710this.removeDisabledElement(c,a)};pa.prototype.hasComboResult=function(a,c){a=a.disabledClass;c=$(c.buyingToolOptOffer.find(".pd-offer__item.compoBundle"));var m=!1;if(0<c.length&&!$(c.get(0)).hasClass(a))for(a=0;a<c.length;a++)if(0<$(c.get(a)).find(".pd-offer__selected-bundle").length){m=!0;break}return m};pa.prototype.hasGiftResult=function(a,c){var m=!1,f=a.disabledClass;if("Hybris-new"==$("#shopIntegrationFlag").val())void 0!=a.drawObj.offer.gift.item&&a.drawObj.offer.gift.item.bundleList&&(m=
711!0);else if(a=$(c.buyingToolOptOffer.find(".pd-offer__item.giftBundle")),0<a.length&&!$(a.get(0)).hasClass(f))for(f=0;f<a.length;f++)if(0<$(a.get(f)).find(".pd-offer__selected-bundle").length){m=!0;break}return m};pa.prototype.disabledBogo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");this.disabledOptionElement(c,a)};pa.prototype.enabledBogo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");this.removeDisabledElement(c,a)};pa.prototype.hasBogo=function(a,c){var m=
712a.hasComponentClass;a=a.disabledClass;c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");return c.hasClass(m)&&!c.hasClass(a)};pa.prototype.disabledTariffPlan=function(a,c){c=c.buyingToolOptTariffPlan;this.disabledOptionElement(c,a);this.removeSelectedOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a)};pa.prototype.enabledTariffPlan=function(a,c){c=c.buyingToolOptTariffPlan;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasTariffPlan=
713function(a,c){var m=a.disabledClass;c=c.buyingToolOptTariffPlan;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasTariffPlanResult=function(a,c){var m=a.disabledClass,f=a.selectedClass;c=c.buyingToolOptTariffPlan;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)&&c.hasClass(f)};pa.prototype.addTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.addClass(a.selectedClass)};pa.prototype.removeTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.removeClass(a.selectedClass);
714this.removeTariffPlanSelectedClass(a,c)};pa.prototype.removeTariffPlanSelectedClass=function(a,c){a=a.tariffPlanSelectedClass;$(c.buyingToolOptTariffPlan).find(".option-input").removeClass(a)};pa.prototype.disabledBetween=function(a,c){c=c.buyingToolOptBetween;this.removeSelectedOptionElement(c,a);this.removeCheckedElement(c);this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a)};pa.prototype.enabledBetween=function(a,c){c=c.buyingToolOptBetween;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,
715a)};pa.prototype.hasBetween=function(a,c){var m=a.disabledClass;c=c.buyingToolOptBetween;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasBetweenResult=function(a,c){var m=a.hasComponentClass,f=a.selectedClass;a=a.disabledClass;c=$(c.buyingToolOptBetween);return c.hasClass(m)&&!c.hasClass(a)&&c.hasClass(f)};pa.prototype.addBetweenResult=function(a,c){$(c.buyingToolOptBetween).addClass(a.selectedClass)};pa.prototype.removeBetweenResult=function(a,c){$(c.buyingToolOptBetween).removeClass(a.selectedClass)};
716pa.prototype.disabledWarranty=function(a,c){var m=a.view,f=a.drawObj;c=c.buyingToolOptWarranty;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);f.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};m.warrantyResultDraw(f)};pa.prototype.enabledWarranty=function(a,c){c=c.buyingToolOptWarranty;this.removeDisabledAllElement(c,
717a);this.removeDisabledElement(c,a)};pa.prototype.hasWarranty=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarranty;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasWarrantyResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarrantyResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.disabledWarrantyVd=function(a,c){c=a.view;var m=a.drawObj;this.disabledOptionElement(warrantyAreaVd,a);this.removeCheckedElement(warrantyAreaVd);this.addDisabledAllElement(warrantyAreaVd,
718a);m.warrantyVdResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};c.warrantyVdResultDraw(m)};pa.prototype.enabledWarrantyVd=function(a,c){c=c.buyingToolOptWarrantyVd;this.removeDisabledAllElement(c,a);this.removeDisabledElement(c,a)};pa.prototype.hasWarrantyVd=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarrantyVd;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};
719pa.prototype.hasWarrantyVdResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarrantyVdResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasForever=function(a,c){var m=a.disabledClass;c=c.buyingToolOptGalaxyForever;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasForeverResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptGalaxyForeverResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasAssuredBuyBack=function(a,
720c){var m=a.disabledClass;c=c.buyingToolOptAssuredBuyBack;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasAssuredBuyBackResultResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptAssuredBuyBackResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasNewAssuredBuyBack=function(a,c){var m=a.disabledClass;c=c.buyingToolOptNewAssuredBuyBack;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasNewAssuredBuyBackResult=function(a,c){var m=
721a.disabledClass;c=c.buyingToolOptNewAssuredBuyBackResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.disabledCare=function(a,c){var m=a.view,f=a.drawObj;c=c.buyingToolOptCare;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);f.careResult={hasComponent:!1,description:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,price:null,disclaimer:null,savedPrice:null};m.careResultDraw(f)};pa.prototype.enabledCare=
722function(a,c){c=c.buyingToolOptCare;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasCare=function(a,c){var m=a.disabledClass;c=c.buyingToolOptCare;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasCareResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptCareResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.disabledUpgrade=function(a,c){var m=a.view,f=a.drawObj;c=c.buyingToolOptUpgrade;this.disabledOptionElement(c,
723a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);f.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};m.upgradeResultDraw(f)};pa.prototype.enabledUpgrade=function(a,c){c=c.buyingToolOptUpgrade;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasUpgrade=function(a,c){var m=a.disabledClass;c=c.buyingToolOptUpgrade;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasUpgradeResult=
724function(a,c){var m=a.disabledClass;c=c.buyingToolOptUpgradeResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.disabledTradeIn=function(a,c){var m=a.view,f=a.drawObj;c=c.buyingToolOptTradeIn;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);f.tradeInResult={hasComponent:!1,displayModelName:null,discountText1:null,discountText2:null,discountText3:null,description:null,dataPrice:null,dataCashBack:null,dataQuoteId:null,dataId:[]};m.tradeInResultDraw(f)};
725pa.prototype.enabledTradeIn=function(a,c){c=c.buyingToolOptTradeIn;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasTradeIn=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTradeIn;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasTradeInResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTradeInResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.disabledTariffOption=function(a,c){var m=a.view,f=a.drawObj;
726c=c.buyingToolOptTariff;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);f.tariffOptionResult={hasComponent:!1,description:null,dataPrice:null,price:null,disclaimer:null,dataSimskuCode:null,dataModelCode:null,dataId:null};m.tariffOpionResultDraw(f)};pa.prototype.enabledTariffOption=function(a,c){c=c.buyingToolOptTariff;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasTariffOption=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTariff;
727return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasTariffOptionResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTariffResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));return 0<a.length&&!a.hasClass("removed")};pa.prototype.hasOffer=function(a,c){var m=a.disabledClass;c=c.buyingToolOptOffer;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasAcessory=
728function(a,c){return a.addonsFlag&&!a.accessoryDisabled};pa.prototype.hasDeliveryResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptDeliveryResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.getImgAttr=function(a,c,m,f){f=void 0===f?{}:f;var q=window.sg.sdf.util;a=this.imgDomain(a);c=this.imgDomain(c);var ba=q.previewImageSrc(a,m);q=q.previewImageSrc(c,m);m={srcPc:a,srcMo:c,lazySrcPc:ba,lazySrcMo:q,alt:m};for(var J in f)m[J]=f[J];return m};pa.prototype.getAttrCta=
729function(a,c,m,f,q,ba){q=void 0===q?{}:q;ba=void 0===ba?"new-window":ba;var J={};f=[f];a||(a=null);J.text=a;c&&(J.href=c);"_blank"===m?(a=Granite.I18n.get("Open in a new window"),J.target="_blank",J.isOutLink=!0,J.
729isNotOutLink=null,f.push(ba),J.title=a):(J.isOutLink=null,J.isNotOutLink=!0);J.class=f.join(" ");for(var ha in q)"anla"==ha?J["an-la"]=q[ha]:J[ha]=q[ha];return J};pa.prototype.nonCheckError=function(a,c){try{c&&c.apply(a)}catch(m){console.log(m)}};pa.prototype.escapeHtml=function(a){var c=
730{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#039;"};return a.replace(/[&<>"']/g,function(m){return c[m]})};pa.prototype.imgDomain=function(a,c){var m="",f=$("#scene7domain").val();a&&(-1<a.indexOf("http:")||-1<a.indexOf("//stg-images.samsung.com/")||-1<a.indexOf("//images.samsung.com/")||-1<a.indexOf("image.samsung.com/")||-1<a.indexOf("//stg-images.samsung.com.cn/")||-1<a.indexOf("//images.samsung.com.cn/")||-1<a.indexOf("image.samsung.com.cn/")?m=a:(c&&(f=f.replace("/image/",
731"/content/")),m=f+a));return m};pa.prototype.isNotEmptyArray=function(a){return a&&0<a.length&&a[0]};pa.prototype.isNotEmpty=function(a){return"number"!==typeof a&&""===a||null===a||void 0===a||null!==a&&"object"===typeof a&&!Object.keys(a).length?!1:!0};pa.prototype.formattingPrice=function(a){0>parseFloat(a)?a=0:-1<String(a).indexOf(".")&&(a=a.toFixed(2));return a};pa.prototype.hasComponent=function(a,c){var m=c.hasComponentClass;c=c.disabledClass;a=$(a);var f=!1;0<a.length&&(f=a.hasClass(m)&&!a.hasClass(c));
732return f};pa.prototype.settingPriceDraw=function(a,c){function m(Zb){var Dc='\x3cp role\x3d"listitem" class\x3d"battery-tax-disclaimer-html"\x3e*'+Zb.batteryInformativeTaxes+"\x3c/p\x3e",xc='\x3cp role\x3d"listitem" class\x3d"green-tax-disclaimer-html"\x3e*'+Zb.greenInformativeTaxes+"\x3c/p\x3e",yc=$("#disclaimer.text-editor--feature-bottom-disclaimer").find("div").last();yc.length&&Zb.batteryTaxShowSpecificationArea&&yc.not(":has(.battery-tax-disclaimer-html)").append(Dc);yc.length&&Zb.greenTaxShowSpecificationArea&&
733yc.not(":has(.green-tax-disclaimer-html)").append(xc)}var f=a.siteCode,q=a.util,ba=a.view,J=a.drawObj,ha=J.between.hasComponent,qa=a.proudctPriceInfo,ia=a.priceCurrency,za=$("#shopIntegrationFlag").val(),Ja=q.hasBetweenResult(a,c),Fa=q.hasFinancing(a,c),Ba=a.paymentMethods,Ha=c.buyingToolPriceBar.find(".cost-box__badge"),Va=c.buyingToolPriceBar.find(".cost-box__new-badge"),Na=q.hasUpgradeResult(a,c),ka=J.price.priceWrapper,La=a.proudctPriceInfo.orignalPriceFormatted,Da=a.proudctPriceInfo.salePriceFormatted,
734Ka=a.proudctPriceInfo.rowCodeformattedPriceSave,Qa=ka.info.summaryPrice,Oa=a.drawObj.careResult.dataPaymentcycle,Sa=parseFloat(qa.orignalPrice),Ra=parseFloat(qa.salePrice),Ua=qa.salePriceFormatted,Y=Sa-Ra;a.getOptoinPrice=!1;1<qa.productCartCount&&(Sa=parseFloat(qa.orignalPrice)*qa.productCartCount,Ra=parseFloat(qa.salePrice)*qa.productCartCount,Ua=currencyComma(Ra,ia),Y=Sa-Ra,a.getOptoinPrice=!0);var ja={original:Sa,sale:Ra,saved:Y};J.priceAnchor.priceWrapper.info={};J.price.priceWrapper.info={};
735ka.info.useTooltip=!1;a.giftCard.isGiftCard&&(ja.original=parseFloat(a.giftCard.selectedPrice),ja.sale=parseFloat(a.giftCard.selectedPrice),ja.saved=parseFloat(ja.original)-parseFloat(ja.sale));if(a.isBezel&&!a.bezelDummyCode){var ya=a.selectedBezelColor,Aa=0,Ga=0;if("Hybris-new"===za)ya&&(ya.hasOwnProperty("price")&&(Aa=ya.price.value),Ga=ya.hasOwnProperty("promotionPrice")?0<ya.promotionPrice.value&&ya.promotionPrice.value<Aa?ya.promotionPrice.value:Aa:Aa);else if("Hybris"===za||"Hybris-intg"===
736za)ya.hasOwnProperty("price")&&null!=ya.price&&(Aa=ya.price),Ga=ya.hasOwnProperty("promotionPrice")&&null!=ya.promotionPrice?0<ya.promotionPrice&&ya.promotionPrice<Aa?ya.promotionPrice:Aa:Aa;a.sellingWithBazel?(ja.original=parseFloat(ja.original),ja.sale=parseFloat(ja.sale)):(ja.original=parseFloat(ja.original)+parseFloat(Aa),ja.sale=parseFloat(ja.sale)+parseFloat(Ga));ja.saved=parseFloat(ja.original)-parseFloat(ja.sale)}if(0<Ha.length){ka.hasEnergyLabel=!0;var ua=Ha.find(".cost-box__pf-link"),Ea=
737Ha.find(".badge"),Ia=Ha.find(".badge-repairability a"),wa=Va.find(".badge-repairability img"),Ca={};0<ua.length&&(ua=$(ua.get(0)),ka.ficheAttr=this.getAttrCta(ua.text(),ua.attr("href"),ua.attr("target")));0<Ea.length&&(Ea=$(Ea.get(0)),ka.hasEnergyLabel=!0,ka.labelAttr=this.getAttrCta(Ea.find(".hidden").text(),Ea.attr("href"),Ea.attr("target"),Ea.attr("class")),ka.labelAttr.spanClass=Ea.find(".badge__grade--with-text").attr("class"));0<Ia.length&&(Ia=$(Ia.get(0)),wa=$(wa.get(0)),Ca.desktopSrc=wa.attr("data-desktop-src"),
738Ca.mobileSrc=wa.attr("data-mobile-src"),$("#anchorContainer").hasClass("bg-black")&&(Ca.desktopSrc=Ca.desktopSrc.replace("Light_83x50","Dark_60x36"),Ca.mobileSrc=Ca.desktopSrc.replace("Light_130x78","Dark_88x52")),Ca.alt=wa.attr("alt"),Ca.anla=Ia.attr("an-la"),ka.repairAttr=this.getAttrCta(Ia.text(),Ia.attr("href"),Ia.attr("target"),"",Ca))}if(0<Va.length){ka.hasNewEnergyLabel=!0;var Xa=Va.find(".badge-energy-label__text"),Ta=Va.find(".badge-energy-label__badge"),Pa=Va.find(".badge-repairability a"),
739Wa=Va.find(".badge-repairability img");Ca={};0<Xa.length&&(Xa=$(Xa.get(0)),ka.ficheAttr=this.getAttrCta(Xa.text(),Xa.attr("href"),Xa.attr("target")));0<Ta.length&&(Ta=$(Ta.get(0)),ka.hasNewEnergyLabel=!0,ka.labelAttr=this.getAttrCta(Ta.text(),Ta.attr("href"),Ta.attr("target"),Ta.attr("class")),ka.labelAttr.spanClass=Ta.attr("class"));0<Pa.length&&(Pa=$(Pa.get(0)),Wa=$(Wa.get(0)),Ca.desktopSrc=Wa.attr("data-desktop-src"),Ca.mobileSrc=Wa.attr("data-mobile-src"),$("#anchorContainer").hasClass("bg-black")&&
740(Ca.desktopSrc=Ca.desktopSrc.replace("Light_83x50","Dark_60x36"),Ca.mobileSrc=Ca.desktopSrc.replace("Light_130x78","Dark_88x52")),Ca.alt=Wa.attr("alt"),Ca.anla=Pa.attr("an-la"),ka.repairAttr=this.getAttrCta(Pa.text(),Pa.attr("href"),Pa.attr("target"),"",Ca))}if(ka.hasPriceWrapper){"ae"!==f&&"ae_ar"!==f&&aa(Ua,ha,c);var ab="",Ya="";if("nl"===f||"be"===f||"be_fr"===f)ab="From",ka.info.fromText=ab;"de"===f&&(Ya="From",ka.info.fromText=Ya);
740qa.usEppPrice&&(ja.sale=parseFloat(ja.sale)-parseFloat(qa.usEppPrice));
741x(a,c,ja);U(a,c,ja);B(a,c,ja);w(a,c,ja);e(a,c,ja);"au"!==f&&"se"!==f&&"no"!==f&&"fi"!==f&&"dk"!==f&&"uk"!==f&&K(a,c,ja);ca(a,c,ja);A(a,c,ja);p(a,c,ja);k(a,c,ja);h(a,c,ja);"uk"!==f&&"au"!==f||D(a,c,ja);ja.saved=parseFloat(ja.original)-parseFloat(ja.sale);ja.original=this.formattingPrice(ja.original);ja.saved=this.formattingPrice(ja.saved);ja.sale=this.formattingPrice(ja.sale);J.tradeIn.hasComponent&&ka.info.useTooltip&&(ja.monthly=4,ja.monthlyPrice=this.formattingPrice(ja.sale/ja.monthly));if(qa.monthlyPriceInfo&&
742qa.monthlyPriceInfo.monthlyPrice&&"tr"===f){var Za=$("#categoryTypeCode").val();Za&&4<=Za.length&&(Za=Za.substring(0,4));"0101"===Za&&(qa.monthlyPriceInfo.monthlyPrice="",qa.monthlyPriceInfo.interest="",qa.monthlyPriceInfo.tenureVal="")}a.totalPrice=ja;var cb="be"===f||"be_fr"===f||"nl"===f||"fr"===f;if("ro"==f||"bg"==f){if(qa.batteryInformativeTaxes){J.price.priceWrapper.info.batteryInformativeTaxes=Granite.I18n.get("Battery recycling cost, borne by Samsung: {0} (Included in the final price)",qa.batteryInformativeTaxes);
743var ib,$a=null!=(ib=null==qa?void 0:qa.batteryInformativeTaxesAreaToShow)?ib:[];$a.includes("priceArea")&&(J.price.priceWrapper.info.batteryTaxShowPriceArea=!0);$a.includes("specification")&&(J.price.priceWrapper.info.batteryTaxShowSpecificationArea=!0)}if(qa.greenInformativeTaxes){J.price.priceWrapper.info.greenInformativeTaxes=Granite.I18n.get("Green tax cost, borne by Samsung: {0} (Included in the final price)",qa.greenInformativeTaxes);var mb,kb=null!=(mb=null==qa?void 0:qa.greenInformativeTaxesAreaToShow)?
744mb:[];kb.includes("priceArea")&&(J.price.priceWrapper.info.greenTaxShowPriceArea=!0);kb.includes("specification")&&(J.price.priceWrapper.info.greenTaxShowSpecificationArea=!0)}m(J.price.priceWrapper.info)}if(Ja&&!cb){var gb=c.buyingToolOptBetween.find("#pd-leasing-1"),xb=gb.attr("data-tenure-unit"),Cb=parseFloat(gb.attr("data-tenure-value")),hb=parseFloat(gb.attr("data-monthly-value")),Mb=parseFloat(gb.attr("data-payment-value"));ka.info.totalPrice="it"===f?Granite.I18n.get("Advance")+" "+currencyComma(Mb,
745ia)+" "+Granite.I18n.get("Monthly fee of")+" "+currencyComma(hb,ia)+" "+Granite.I18n.get("for")+" "+xb+" "+Granite.I18n.get("months"):"ru"===f?Granite.I18n.get("{0}/month",currencyComma(hb,ia)):currencyComma(Mb,ia)+" + "+Cb+" x "+currencyComma(hb,ia)+"/"+Granite.I18n.get(xb)}else if(Na){if("es"===f)if(Ra&&0!=Ra){var rb=24,nb=((Ra-.1*Ra)/rb).toFixed(2),Ib=.1*Ra+((Ra-.1*Ra)/rb-nb)*rb;ka.info.totalPrice=currencyComma(Ib,ia)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(nb,ia))}else Sa&&0!=Sa&&
746(rb=24,nb=((Sa-.1*Sa)/rb).toFixed(2),Ib=.1*Sa+((Sa-.1*Sa)/rb-nb)*rb,ka.info.totalPrice=currencyComma(Ib,ia)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(nb,ia)))}else{ab&&(ka.info.vatText="( "+Granite.I18n.get("VAT Included")+" )");Ya&&(ka.info.vatText=Granite.I18n.get("VAT Included"));if(0<ja.saved){if(a.getOptoinPrice)ka.info.totalPrice=currencyComma(ja.sale,ia),"se"==f&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(window.sg.components.SamsungFlexPopup.tradeUpEnabled&&
747(window.sg.components.SamsungFlexPopup.priceNavigationBarPostTradeUp=ka.info.totalPrice,window.sg.components.SamsungFlexPopup.priceSummaryPostTradeUp=ka.info.totalPrice),ka.info.totalPrice=window.sg.components.SamsungFlexPopup.summaryPriceWithTradeUp),"fi"!==f&&"se"!==f&&"dk"!==f&&"no"!==f&&"ee"!==f&&"lv"!==f&&"lt"!==f||!Oa||(ka.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your Samsung Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));else if(qa.monthlyPriceInfo&&
748qa.monthlyPriceInfo.monthlyPrice){var bb=qa.monthlyPriceInfo.monthlyPrice,jb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,db=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==f?ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isLowestInstallmentInterest?(ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(bb,
749ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,db])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===f&&(ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,db]),ka.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,db]))):"ro"===
750f||"bg"===f?ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isMonthlySENA?ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]):a.isSECZ?(ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(bb,ia)),ka.info.totalPriceAnchor=
751Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)):ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+
752Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if("id"==f)ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isLowestInstallmentInterest)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,db])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,
753ia);else if("hk"===f||"hk_en"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(bb,ia)]),ka.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[jb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("hu"===f){var sb=parseInt(bb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),
754Ob=1>parseFloat(db)?(100*parseFloat(db)).toString().slice(0,db.length-1):db;ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",sb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Ob])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia)}else if("my"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isMonthlySENA)ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",
755currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]);else if("it"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("ch"===f||"ch_fr"===f){var ob=Granite.I18n.get("{0}/mo at",currencyComma(bb,ia)),fc=Granite.I18n.get("{0} Monthly installments",jb),cc=Granite.I18n.get("total (installment)"),
756Hb=currencyComma(ja.sale,ia);ka.info.totalPrice=ob+" "+fc+", "+cc+" "+Hb}else ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(bb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,
757ia);var Rb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&Rb.attr("data-leasing-price",ka.info.totalPrice);a.isLeasingPrice=ka.info.totalPrice}else"hr"!=f?ka.info.totalPrice=currencyComma(ja.sale,ia):"hr"==f&&(ka.info.totalPrice=Da.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==f&&(a.savingInformation?(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,ka.info.orignalPrice=sa+currencyComma(ja.original,i
757a)+Ma,ka.info.savePrice=
758a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext=
759"",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==f&&a.taxPriceDisplay&&(ka.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a);if(ab||Ya)ab&&null!=qa.listPrice&&0<qa.listPrice?(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia),null!=qa.orignalPrice&&0<qa.orignalPrice&&null!=qa.salePrice&&0<qa.salePrice&&(ka.info.orignalPrice=
760Granite.I18n.get("From {0}",currencyComma(ja.original,ia)),J.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("From {0}",sa+currencyComma(ja.original,ia)+Ma))):"de"==f&&1==a.isNewElementLowestWasPriceSetting?(ka.info.orignalPrice=currencyComma(ja.original,ia),J.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(ja.original,ia),ka.info.hasLowestWasPrice=!0):(ka.info.orignalPrice=Granite.I18n.get("From {0}",currencyComma(ja.original,ia)),J.priceAnchor.priceWrapper.info.orignalPrice=
761Granite.I18n.get("From {0}",sa+currencyComma(ja.original,ia)+Ma)),"de"==f&&!0!==a.isNewElementLowestWasPriceSetting&&(J.priceAnchor.priceWrapper.info.orignalPrice="");else if("pe"!==f&&"cl"!==f&&"mx"!==f&&"co"!==f||!qa.monthlyPriceInfo.monthlyPrice||(J.priceAnchor.priceWrapper.info.disclaimer="*Aplican condiciones"),"ca"===f||"ca_fr"===f)"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(J.priceAnchor.priceWrapper.info.savingInformation='\x3cp class\x3d"pd-buying-price__text-saving-info"\x3e'+
762a.savingInformation+"\x3c/p\x3e");else{if("ro"!=f&&"bg"!=f)if("jp"==f)ka.info.orignalPrice="(\u5272\u5f15\u524d\u4fa1\u683c : "+currencyComma(ja.original,ia)+")",J.priceAnchor.priceWrapper.info.orignalPrice="(\u5272\u5f15\u524d\u4fa1\u683c : "+currencyComma(ja.original,ia)+")";else{if(!xa||"pl"!==f||a.isNewElementLowestWasPrice)!0!==a.isNewElementLowestWasPrice||!1!==a.isNewElementLowestWasPriceSetting||"at"===f||a.hasFrequentPrice?(ka.info.orignalPrice=currencyComma(ja.original,ia),"at"==f?(ka.info.orignalPrice=
763La,J.priceAnchor.priceWrapper.info.orignalPrice=La):"hr"==f||"si"==f||"lv"==f||"lt"==f||"ee"==f?J.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(ja.original,ia):"ua"==f?(ka.info.orignalPrice="\x3cdel\x3e"+currencyComma(ja.original,ia)+"\x3c/del\x3e",J.priceAnchor.priceWrapper.info.orignalPrice="\x3cdel\x3e"+currencyComma(ja.original,ia)+"\x3c/del\x3e"):J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ka.info.hasNoLowestWasPrice=!1,ka.info.hasLowestWasPrice=
764!0,"pl"==f&&!0===a.isNewElementLowestWasPriceSetting?(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):"it"==f&&!0===a.isNewElementLowestWasPriceSetting||"at"!=f||!0!==a.isNewElementLowestWasPriceSetting||(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"))):
765(ka.info.orignalPrice="",J.priceAnchor.priceWrapper.info.orignalPrice="")}else if("ro"==f||"bg"==f){ka.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(ja.original,ia));J.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(ja.original,ia));if("bg"==f){var Pb="eur"===a.priceCurrency.toLowerCase()?g(ja.original):l(ja.original);J.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("RRP {0}
765",currencyComma(ja.original,ia))+" / "+Pb}q.hasTradeInResult(a,
766c)&&(J.priceAnchor.priceWrapper.info.orignalPrice="",ka.info.orignalPrice="")}"br"==f&&(a.savingInformation?(ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ka.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=
767a.savingValue+" "+Granite.I18n.get("off")):(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText));"ar"==f&&a.taxPriceDisplay&&(ka.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay);this.setSamcolVatFreePrice(a)}if(""===ab&&!this.hasComponent(c.buyingToolOptTariffResult,
768a))if("in"===f&&(ka.info.orignalPriceAddText="MRP: "+ka.info.orignalPrice+" (Incl. of all taxes)"),"hu"===f&&!0===a.isNewElementLowestWasPriceHuType&&!0===a.isNewElementLowestWasPriceSettingHuType&&(ka.info.orignalPriceAddText=Granite.I18n.get("Best price in the past 30 days:")+" "+a.proudctPriceInfo.wasPriceFormatted+"("+v(ja.original,ja.sale,a.proudctPriceInfo.wasPrice)+"%)",J.priceAnchor.priceWrapper.info.orignalPriceAddText="",J.priceAnchor.priceWrapper.info.ceExchangePrice=Granite.I18n.get("Best price in the past 30 days:")+
769" "+a.proudctPriceInfo.wasPriceFormatted+"("+v(ja.original,ja.sale,a.proudctPriceInfo.wasPrice)+"%)"),"ca"===f||"ca_fr"===f)"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(J.priceAnchor.priceWrapper.info.savingInformation='\x3cp class\x3d"pd-buying-price__text-saving-info"\x3e'+a.savingInformation+"\x3c/p\x3e");else if("ro"!==f&&"bg"!==f){"br"===f?a.savingInformation?(ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ka.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=
770a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=
771"",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText):"co"===f&&!0===a.vatEligible?(ka.info.savePrice="",J.priceAnchor.priceWrapper.info.savePrice=""):!0===a.isNewElementLowestWasPrice&&!1===a.isNewElementLowestWasPriceSetting?(J.priceAnchor.priceWrapper.info.savePrice="",ka.info.savePrice=""):(ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)),"pl"==f&&!0===a.isNewElementLowestWasPriceSetting?(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),
772J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):"it"==f&&!0===a.isNewElementLowestWasPriceSetting?(ka.info.savePrice=Granite.I18n.get("Save the {0}%",n(ja.saved,ja.original)),J.priceAnchor.priceWrapper.info.savePrice=Granite.I18n.get("Save the {0}%",n(ja.saved,ja.original))):"at"==f&&!0===a.isNewElementLowestWasPriceSetting&&(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),J.priceAnchor.priceWrapper.info.lowestWasPricetext=
773Granite.I18n.get("Lowest price 30 days before the discount:")));if(xa&&"pl"===f){var Eb="";0<qa.listPrice&&(Eb=" "+currencyComma(qa.listPrice,ia),J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+Eb)}this.setSamcolVatFreePrice(a)}if("it"===f&&xa){var $b=window.sg.epp.common.eppDiscountRate(qa.b2cPrice,qa.salePrice),Sb=Granite.I18n.get("Price at Samsung.it: {0}",[currencyComma(qa.b2cPrice,ia)]),gc=Granite.I18n.get("You save {0}%",[$b]);0!=$b&&(ka.info.eppDiscountText=Sb,ka.info.eppDiscountRateText=
774gc,J.priceAnchor.priceWrapper.info.eppDiscountText=Sb,J.priceAnchor.priceWrapper.info.eppDiscountRateText=gc)}"au"!==f&&"fi"!==f&&"se"!==f&&"dk"!==f&&"no"!==f&&"ee"!==f&&"lv"!==f&&"lt"!==f||!a.isHybrisSplitPDTariff||(ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)));"fr"==f&&a.drawObj.tariffOptionResult.hasComponent&&(ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)));var Qb=q.hasTradeInResult(a,c);"fr"==f&&Qb&&a.commonTradein&&(J.price.priceWrapper.info.hasLowestWasPrice=
775!0,J.price.priceWrapper.info.hasNoLowestWasPrice=!1,ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)),ka.info.orignalPrice=currencyComma(ja.original,i
775a),J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma);"fr"===f&&(J.tradeIn.hasComponent&&ka.info.useTooltip?(ka.info.useTooltip=!0,ka.info.monthly=ja.monthly,ka.info.monthlyPrice=currencyComma(ja.monthlyPrice,ia),ka.info.monthlyPriceText=Granite.I18n.get("from")+" "+ka.info.monthly+" x "+ka.info.monthlyPrice+
776" "+Granite.I18n.get("free of charge or")):ka.info.nonTooltip=!0);-1!==$.inArray(f,["dk","fi","se","no","ee"])&&Qb&&(J.price.priceWrapper.info.withTradeIn=""+Granite.I18n.get("with trade-in"),J.priceAnchor.priceWrapper.info.disclaimer=""+Granite.I18n.get("with trade-in"));ka.info.unformattedSavePrice=ja.saved}else{if("nl"===f||"be"===f||"be_fr"===f)a.isMigrationHybris?0<qa.listPrice&&(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia)):qa.orignalPrice<
777qa.listPrice&&(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia));"in"===f&&(ka.info.orignalPriceAddText="MRP: "+currencyComma(ja.original,ia)+" (Incl. of all taxes)");if(xa&&"pl"===f){var lc="";0<qa.listPrice&&(lc=" "+currencyComma(qa.listPrice,ia),J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+lc)}"pe"!==f&&"cl"!==f&&"mx"!==f&&"co"!==f||!qa.monthlyPriceInfo.monthlyPrice||(J.priceAnchor.priceWrapper.info.disclaimer=
778"*Aplican condiciones");if(ja.original){!a.getOptoinPrice&&Da?a.isBezel||a.giftCard.isGiftCard?(ka.info.totalPrice=currencyComma(ja.sale,ia),"hr"==f&&a.isBezel&&(ka.info.totalPrice=ka.info.totalPrice.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e"))):("hr"!=f?ka.info.totalPrice=Da:"hr"==f&&(ka.info.totalPrice=Da.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==f&&(a.savingInformation?(J.price.priceWrapper.info.hasLowestWasPrice=
779!0,ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ka.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):
780(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==f&&a.taxPriceDisplay&&(ka.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a)):ka.info.totalPrice=currencyComma(ja.original,ia);if(!a.getOptoinPrice&&qa.monthlyPriceInfo&&
781qa.monthlyPriceInfo.monthlyPrice){var pb=qa.monthlyPriceInfo.monthlyPrice,tb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,Fb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==f?ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb])+" "+Granite.I18n.get("or")+" "+Da:a.isLowestInstallmentInterest?(ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
782[tb,Fb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===f&&(ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[tb,Fb]),ka.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[tb,Fb]))):"ro"===f||"bg"===f?ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(pb,
783ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isMonthlySENA?ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb]):a.isSECZ?(ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(pb,ia)),ka.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb])+" "+Granite.I18n.get("or")+
784" "+Da):ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb])+" "+Granite.I18n.get("or")+" "+Da;else if("id"==f)ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(pb,
785ia))+" "+Granite.I18n.get("for {0} mos",[tb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isLowestInstallmentInterest)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[tb,Fb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if("hk"===f||"hk_en"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(pb,
786ia)]),ka.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[tb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("hu"===f)sb=parseInt(pb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),Ob=1>parseFloat(Fb)?(100*parseFloat(Fb)).toString().slice(0,Fb.length-1):Fb,ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",sb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[tb,
787Ob])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia);else if("my"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isMonthlySENA)ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb]);else if("it"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",
788currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("ch"===f||"ch_fr"===f){var rc=Granite.I18n.get("{0}/mo at",currencyComma(pb,ia)),ub=Granite.I18n.get("{0} Monthly installments",tb),mc=Granite.I18n.get("total (installment)"),lb=currencyComma(ja.sale,ia);ka.info.totalPrice=rc+" "+ub+", "+mc+" "+lb}else ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("or")+
789" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(pb,ia))+" "+Granite.I18n.get("for {0} mos",[tb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);var yb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&yb.attr("data-leasing-price",ka.info.totalPrice);a.isLeasingPrice=ka.info.totalPrice}
789"fi"!==f&&"se"!==f&&"dk"!==f&&"no"!==
790f&&"ee"!==f&&"lv"!==f&&"lt"!==f||!Oa||(ka.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your Samsung Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));"fr"===f&&(J.tradeIn.hasComponent&&ka.info.useTooltip?(ka.info.useTooltip=!0,ka.info.monthly=ja.monthly,ka.info.monthlyPrice=currencyComma(ja.monthlyPrice,ia),ka.info.monthlyPriceText=Granite.I18n.get("from")+" "+ka.info.monthly+" x "+ka.info.monthlyPrice+" "+Granite.I18n.get("free of charge or")):
791ka.info.nonTooltip=!0)}else"uk"!==f&&"au"!==f||!a.drawObj.tariffOptionResult.hasComponent||0!==ja.sale||(J.price.priceWrapper.info.summaryPrice=J.price.priceWrapper.info.totalPrice=currencyComma(ja.sale,ia))}if("in"==f&&a.promotionSalesPitch){var Db=parseFloat(ja.sale)-parseFloat(a.promotionSalesPitch);ka.info.ceExchangePrice="From "+currencyComma(Db,ia)+" with exchange*"}if(!ja.sale&&!ja.original&&a.proudctPriceInfo.orignalPriceFormatted&&("uk"!==f&&"au"!==f||!a.drawObj.tariffOptionResult.hasComponent||
7920!==ja.sale))if(Da!==La&&(ka.info.orignalPrice=La),Ka&&(ka.info.savePrice=Ka),qa.monthlyPriceInfo&&qa.monthlyPriceInfo.monthlyPrice){var eb=qa.monthlyPriceInfo.monthlyPrice,zb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,Jb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if("id"==f)ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(eb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Da;else if(a.isLowestInstallmentInterest)ka.info.totalPrice=
793Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[zb,Jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===f&&(ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[zb,Jb]),ka.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
794[zb,Jb]));else if("hk"===f||"hk_en"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(eb,ia)]),ka.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[zb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("hu"===f)sb=parseInt(eb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),
795Ob=1>parseFloat(Jb)?(100*parseFloat(Jb)).toString().slice(0,Jb.length-1):Jb,ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",sb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[zb,Ob])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia);else if("ro"===f||"bg"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("or")+" "+Da;else if("my"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("or")+
796" "+Da;else if(a.isMonthlySENA)ka.info.totalPrice=Da+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos",[zb]);else if(a.isSECZ)ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(eb,ia)),ka.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Da;else if("it"===f)ka.info.totalPrice=Da,
797ka.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Da,J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("ch"===f||"ch_fr"===f){var Tb=Granite.I18n.get("{0}/mo at",currencyComma(eb,ia)),hc=Granite.I18n.get("{0} Monthly installments",zb),Ub=Granite.I18n.get("total (installment)"),qb=currencyComma(ja.sale,ia);ka.info.totalPrice=Tb+" "+hc+", "+Ub+" "+qb}else ka.info.totalPrice=
798"tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(eb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Da;var vb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&vb.attr("data-leasing-price",ka.info.totalPrice);a.isLeasingPrice=
799ka.info.totalPrice}else ka.info.totalPrice=Da}J.price.priceWrapper.info.extraRewards=!1;if(a.extraRewardsSites){var Ab=$jscomp.makeIterator(a.extraRewardsDate[f].split("-")),Vb=Ab.next().value,Yb=Ab.next().value,Kb=function(Zb){var Dc=parseInt(Zb.substring(0,4)),xc=parseInt(Zb.substring(4,6))-1;Zb=parseInt(Zb.substring(6,8));return(new Date(Dc,xc,Zb)).setHours(0,0,0,0)},Wb=new Date,Bb=Kb(Vb),fb=Kb(Yb),Nb=(new Date(Wb.getUTCFullYear(),Wb.getUTCMonth(),Wb.getUTCDate())).setHours(0,0,0,0);Nb>
799=Bb&&Nb<=
800fb&&(J.price.priceWrapper.info.extraRewards=!0)}if(a.hasFrequentPrice){var wb=a.proudctPriceInfo.frequentPrice,nc=a.proudctPriceInfo.frequentPriceFormatted?a.proudctPriceInfo.frequentPriceFormatted:currencyComma(wb,ia);J.priceAnchor.priceWrapper.info.hasFrequentPrice=!0;J.priceAnchor.priceWrapper.info.orignalPrice=sa+nc+Ma}if("fr"===f&&Fa&&Ba){var ac=Ba.simulation_plans,Lb="";if(ac)for(var dc in ac){var Xb=Object.keys(ac[dc]);Lb=currencyComma(ac[dc][Xb].installment_amount.value,ia);ka.info.text?ka.info.text2=
801Granite.I18n.get("{0} sans frais par Carte bancaire :**",Xb)+" "+Lb:ka.info.text=Granite.I18n.get("{0} sans frais par Carte bancaire :**",Xb)+" "+Lb}}"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(ka.info.savingInformation=a.savingInformation);a.useShippingOrBack&&a.shippingOrBack&&(ka.info.shippingOrBack=a.shippingOrBack);var sc="Hybris"===a.apiFlag||"Hybris-intg"===a.apiFlag;if(sc){a.stockLevelStatusDisplay&&""!=a.stockLevelStatusDisplay&&(ka.info.text2=a.stockLevelStatusDisplay);var Gb=
802("Y"===globalShopInfo.shopServiceYN&&"Y"===a.isCart||"Hybris-intg"===a.apiFlag)&&"Y"!==a.oldProductYn,ic=!0;sc&&("N"!==globalShopInfo.shopServiceYN&&a.oldHybrisSalesStatus||(ic=!1));Gb&&globalShopInfo.reservedMsg&&"undefined"!=typeof globalShopInfo.reservedMsg&&null!=globalShopInfo.reservedMsg&&""!=globalShopInfo.reservedMsg&&(ka.info.text3=globalShopInfo.reservedMsg);Gb&&hybrisShopInfo.reservedMsg&&ic&&"undefined"!=typeof hybrisShopInfo.reservedMsg&&null!=hybrisShopInfo.reservedMsg&&""!=hybrisShopInfo.reservedMsg&&
803(ka.info.text3=hybrisShopInfo.reservedMsg);-1!==$.inArray(f,["no","dk","fi","se"])&&!0===ic?"OUTOFSTOCK"==a.apiChangeStockStatus||"INSTOCK"!=a.apiChangeStockStatus&&"LOWSTOCK"!=a.apiChangeStockStatus&&"PREORDER"!=a.apiChangeStockStatus&&"BACKORDERED"!=a.apiChangeStockStatus?"OUTOFSTOCK"==a.apiChangeStockStatus&&(J.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description").remove()):($(".cost-box__description.howToReceiveTheProduct").show(),J.price.priceWrapper.info.howToReceiveTheProduct=
804""+Granite.I18n.get("Choose home delivery or pick up in store in 1-2 hours")):(J.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description").remove())}else"pe"!==f&&"mx"!==f||!a.stockLevelStatusDisplay||""==a.stockLevelStatusDisplay||(ka.info.text3=a.stockLevelStatusDisplay);ka.info.summaryPrice=Qa;ka.info.salePriceFormatted=Da?Da:La;ka.info.orignalPrice!==ka.info.summaryPrice&&(ka.info.summaryPrice=ka.info.totalPrice);a.proudctPriceInfo.salesPitch&&(ka.info.salesPitch=a.proudctPriceInfo.salesPitch);
805if(a.drawObj.tradeInResult.priceOverFlag&&("nl"===f||"be"===f||"be_fr"===f||"sg"===f||"vn"===f||"id"===f||"fr"===f||"de"===f||"sa"===f||"sa_en"===f||"kz_kz"===f||"kz_ru"===f||"cl"===f||"cn"===f)&&(J.price.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia),J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia),"fr"==f&&(J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia)),"cn"==f)){var jc=a.hasComponentClass,tc=a.disabledClass,
806zc=c.buyingToolOptCareResult,ec=zc.hasClass(jc)&&!zc.hasClass(tc),Ec=zc.find(".result-price").attr("data-price"),kc=c.buyingToolOptWarrantyVdResult,oc=kc.hasClass(jc)&&!kc.hasClass(tc),uc=kc.find(".option-result__text-wrap").attr("data-price"),pc=a.minOrderEntryValue;ec&&(pc+=parseFloat(Ec));oc&&(pc+=parseFloat(uc));J.price.priceWrapper.info.totalPrice=currencyComma(pc,ia);J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(pc,ia)}xa&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&
807window.sg.epp.common.usePosQty&&(J.price.priceWrapper.info.walkoutQtyText=Granite.I18n.get("Walk Out")+" ("+Granite.I18n.get("Qty")+" : "+a.walkoutQty.toLocaleString()+")",J.price.priceWrapper.info.homeDeliveryQtyText=Granite.I18n.get("Home Delivery")+" ("+Granite.I18n.get("Qty")+" : "+a.homeDeliveryQty.toLocaleString()+")");J.priceAnchor.priceWrapper.info=$.extend({},J.price.priceWrapper.info,J.priceAnchor.priceWrapper.info);(a.isSECZ||"pl"===f)&&ka.info.totalPriceAnchor&&(J.priceAnchor.priceWrapper.info.totalPrice=
808ka.info.totalPriceAnchor);if(ka.info.totalPrice){var qc=currencyComma(ja.sale,ia);"gr"===f&&(qc=ka.info.salePriceFormatted);J.priceAnchor.priceWrapper.info.totalPrice=ka.info.totalPrice.replace(qc,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+qc+"\x3c/span\x3e")}a.isSENA&&qa&&qa.promotionPriceValidTo&&($(".cost-box__description.promotionPriceValidTo").show(),ka.info.promotionPriceValidTo=qa.promotionPriceValidTo);if("at"==f)if(qa&&!1===(null==qa?void 0:qa.isFreeDeliveryCost)){ka.info.shippingCostPopup=
809{};ka.info.isFreeDeliveryCost=!0;var vc;ka.info.shippingCostPopup.deliveryModes=null==qa?void 0:null==(vc=qa.shippingCostPopup)?void 0:vc.deliveryModes;var Ac;ka.info.shippingCostPopup.deliveryServices=null==qa?void 0:null==(Ac=qa.shippingCostPopup)?void 0:Ac.deliveryServices}else if(null==qa?0:qa.itsFreeDelivery)ka.info.itsFreeDelivery=!0;xa||"tr"!==f||(ka.info.hasLowestWasPrice=!1,ka.info.lowestWasPricetext="",ka.info.orignalPrice="",ka.info.savePrice="",J.priceAnchor.priceWrapper.info.lowestWasPricetext=
810"",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.savePrice="");"cn"===f&&window.sg.components.dynamic.productInstallmentWithGiftPD.setInstallmentPrice(a,c);if(ka.info.useTooltip){$("#disclaimer").find(".text-editor__inner").empty();var Fc='\x3cdiv class\x3d"text-editor__column-wrap"\x3e\n                                          \x3cdiv class\x3d"text-editor__column description-text-size--small"\x3e\n                                              '+Granite.I18n.get("disclaimerText")+
811"\n                                          \x3c/div\x3e\n                                      \x3c/div\x3e";$("#disclaimer").find(".text-editor__inner").html(Fc)}if("bg"==f)if("eur"===a.priceCurrency.toLowerCase()){if(-1==J.price.priceWrapper.info.totalPrice.indexOf("\u043b\u0432")){var bc=ja.sale,wc=g(bc);J.price.priceWrapper.info.totalPrice+=" / "+wc;J.priceAnchor.priceWrapper.info.totalPrice+=" / "+wc}}else-1==J.price.priceWrapper.info.totalPrice.indexOf("\u20ac")&&(wc=ja.sale,bc=l(wc),J.price.priceWrapper.info.totalPrice+=
812" / "+bc,J.priceAnchor.priceWrapper.info.totalPrice+=" / "+bc);ba.productPriceTotalDraw(J,a.isOptClicked);var Bc;"at"==f&&(null==(Bc=J.price.priceWrapper.info)?0:Bc.shippingCostPopup)&&ba.shippingCostPopupDraw(J.price.priceWrapper.info.shippingCostPopup)}else a.isSENA&&(a.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description.howToReceiveTheProduct").remove()),ba.productPriceTotalDraw(J,a.isOptClicked)};pa.prototype.setSamcolVatFreePriceOld=function(a,c,m){"co"==a.siteCode&&
813!0===a.vatEligible?(c.priceAnchor.priceWrapper.info.hasSamcolVatFreePrice=!0,c.priceAnchor.priceWrapper.info.samcolVatFreePrice=a.proudctPriceInfo.vatFreePriceFormatted,m.info.hasSamcolVatFreePrice=!0,m.info.samcolVatFreePrice=a.proudctPriceInfo.vatFreePriceFormatted,m.info.orignalPrice&&null!=m.info.orignalPrice&&""!==m.info.orignalPrice?(c.priceAnchor.priceWrapper.info.hasOrignalPrice=!0,m.info.hasOrignalPrice=!0,c.priceAnchor.priceWrapper.info.hasNoOrignalPrice=!1,m.info.hasNoOrignalPrice=!1):
814(c.priceAnchor.priceWrapper.info.hasOrignalPrice=!1,m.info.hasOrignalPrice=!1,c.priceAnchor.priceWrapper.info.hasNoOrignalPrice=!0,m.info.hasNoOrignalPrice=!0)):(c.priceAnchor.priceWrapper.info.hasNoSamcolVatFreePrice=!0,c.priceAnchor.priceWrapper.info.hasSamcolVatFreePrice=!1,m.info.hasNoSamcolVatFreePrice=!0,m.info.hasSamcolVatFreePrice=!1,!0===a.isNewElementLowestWasPrice&&!1===a.isNewElementLowestWasPriceSetting?(m.info.hasNoLowestWasPrice=!0,m.info.hasLowestWasPrice=!1):(m.info.hasNoLowestWasPrice=
815!1,m.info.hasLowestWasPrice=!0))};pa.prototype.setSamcolVatFreePrice=function(a){var c=a.drawObj;"co"==a.siteCode&&!0===a.vatEligible?(c.priceAnchor.priceWrapper.info.hasSamcolVatFreePrice=!0,c.priceAnchor.priceWrapper.info.samcolVatFreePrice=a.proudctPriceInfo.vatFreePriceFormatted,c.price.priceWrapper.info.hasSamcolVatFreePrice=!0,c.price.priceWrapper.info.samcolVatFreePrice=a.proudctPriceInfo.vatFreePriceFormatted,c.price.priceWrapper.info.orignalPrice&&null!=c.price.priceWrapper.info.orignalPrice&&
816""!==c.price.priceWrapper.info.orignalPrice?(c.priceAnchor.priceWrapper.info.hasOrignalPrice=!0,c.price.priceWrapper.info.hasOrignalPrice=!0,c.priceAnchor.priceWrapper.info.hasNoOrignalPrice=!1,c.price.priceWrapper.info.hasNoOrignalPrice=!1):(c.priceAnchor.priceWrapper.info.hasOrignalPrice=!1,c.price.priceWrapper.info.hasOrignalPrice=!1,c.priceAnchor.priceWrapper.info.hasNoOrignalPrice=!0,c.price.priceWrapper.info.hasNoOrignalPrice=!0)):(c.priceAnchor.priceWrapper.info.hasNoSamcolVatFreePrice=!0,
817c.priceAnchor.priceWrapper.info.hasSamcolVatFreePrice=!1,c.price.priceWrapper.info.hasNoSamcolVatFreePrice=!0,c.price.priceWrapper.info.hasSamcolVatFreePrice=!1)};pa.prototype.specialTagging=function(a,c){var m=a.modelCode,f=a.modelName,q=a.displayName,ba=a.pvitype.toLowerCase(),J=a.pvisubtype.toLowerCase(),ha=a.pimsubtype.toLowerCase(),qa=a.proudctPriceInfo.orignalPrice,ia=a.proudctPriceInfo.salePrice,za=a.imgUrl,Ja=a.skuId;$(document).find(".add-special-tagging").each(function(Fa,Ba){!$(B
817a).attr("data-modelcode")&&
818m&&$(Ba).attr("data-modelcode",m);za&&$(Ba).hasClass("tg-add-to-cart")&&$(Ba).attr("data-imageurl",za);!$(Ba).attr("data-modelname")&&f&&$(Ba).attr("data-modelcode")&&-1<$(Ba).attr("data-modelcode").indexOf(m)&&$(Ba).attr("data-modelname",f.toLowerCase());!$(Ba).attr("data-modelprice")&&ia&&$(Ba).attr("data-modelcode")&&-1<$(Ba).attr("data-modelcode").indexOf(m)&&$(Ba).attr("data-modelprice",qa);!$(Ba).attr("data-modelrevenue")&&ia&&$(Ba).attr("data-modelcode")&&-1<$(Ba).attr("data-modelcode").indexOf(m)&&
819$(Ba).attr("data-modelrevenue",qa);!$(Ba).attr("data-discountprice")&&ia&&$(Ba).attr("data-modelcode")&&-1<$(Ba).attr("data-modelcode").indexOf(m)&&$(Ba).attr("data-discountprice",ia);!$(Ba).attr("data-modeldisplay")&&q&&$(Ba).attr("data-modelcode")&&-1<$(Ba).attr("data-modelcode").indexOf(m)&&$(Ba).attr("data-modeldisplay",q.toLowerCase());!$(Ba).attr("data-pvitype")&&ba&&$(Ba).attr("data-pvitype",ba);!$(Ba).attr("data-pvisubtype")&&J&&$(Ba).attr("data-pvisubtype",J);!$(Ba).attr("data-pimsubtype")&&
820ha&&$(Ba).attr("data-pimsubtype",ha);$(Ba).attr("data-modelqty")||$(Ba).attr("data-modelqty","1");!$(Ba).attr("data-skuid")&&Ja&&$(Ba).attr("data-skuid",Ja)});this.thirdPartyTagging(a,c,c.buyingToolOptTariff.find(".option-input"))};pa.prototype.settingPriceCta=function(a,c,m,f){var q=c.drawObj,ba=c.view,J=c.apiChangeStockStatus,ha=c.priceCurrency;if("Y"!==c.wtbCtaBtnYn){var qa=a,ia=c.util,za=c.drawObj,Ja=c.isSimplePDP,Fa=c.siteCode,Ba=c.modelName,Ha=m.buyingToolOptTariffPlan.find("ul li"),Va=c.modelCode,
821Na=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",ka=c.wtbSrc,La=c.imgUrl,Da=c.wtbSubTypeCode,Ka=c.shopSkuCode,Qa=$(m.buyingToolOptTariffPlan),Oa=ia.hasTariffPlanResult(c,m),Sa=Qa.find(".option-input.this-checked").attr("data-url"),Ra=$("#shopIntegrationFlag").val(),Ua="GPv2"===Ra,Y="Hybris"===Ra||"Hybris-intg"===Ra,ja="Hybris-new"===Ra,ya=c.wtbUseYn,Aa=c.wtbDispFuncUseYN,Ga=za.price,ua="_self",Ea="",Ia="",wa={},Ca=c.stockLevelStatus,Xa=Ca,Ta="";"cn"==Fa&&(Ta="GetStock");c.isPossibleBuy=
822"INSTOCK"==Ca||"BACKORDERED"==Ca||"PREORDER"==Ca||"LOWSTOCK"==Ca?!0:!1;if(c.isBezel&&c.isPossibleBuy)if("Hybris-new"===Ra){var Pa=c.selectedBezelColor;if(Pa){var Wa=Pa.hasOwnProperty("stock")?Pa.stock.stockLevelStatus.toUpperCase():"";Ca=Wa}""==Ca&&(qa=!1)}else{if("Hybris"===Ra||"Hybris-intg"===Ra)Pa=c.selectedBezelColor,Wa="",Pa&&Pa.hasOwnProperty("stockLevelStatus")&&null!=Pa.stockLevelStatus&&(Wa=Pa.stockLevelStatus.toUpperCase()),Ca=Wa,""==Ca&&(qa=!1)}else if(c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel||
823!c.isBezel&&c.sellingWithBazel)Ca="OUTOFSTOCK";var ab="_self",Ya="",Za="",cb={},ib="",$a="",mb={},kb="pd-buying-price--cta3",gb="javascript:;",xb="javascript:;",Cb={modelName:Ba,dataTtile:Na,imgSrc:ka,iaCode:Da,dataModelCode:Va};"in"===Fa&&(Cb.dataModelCode=$("#modelCode").val());var hb=!0,Mb="br"===Fa||"ar"===Fa||"latin"===Fa?!0:!1;Y?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(hb=!1):ja?c.newHybrisSalesStatus||(hb=!1):Ua?c.accessoryDisabled&&(hb=!1):Mb&&(c.hybrisApiData.shopAPI?
824"br"!==Fa||c.hybrisApiData.shopAPI.salesStatus?"ar"===Fa&&"ON_SALES"!==c.hybrisApiData.shopAPI.salesStatus?hb=!1:"latin"===Fa&&"ON_SALE"!==c.hybrisApiData.shopAPI.salesStatus&&(hb=!1):hb=!1:Mb=!1);var rb=!1;"Y"===ya?(rb="Y"===Aa&&(Y||ja||Ua||Mb)?hb?!1:!0:!0,Ra||(rb=!0)):rb=!1;"mx"===Fa&&(rb=!1);if(qa)if(rb?"NOORDER"===Ca?(Ia=Za=Granite.I18n.get("Where to buy"),Ea=Ya="js-cta-buy tg-wtb",wa=cb=Cb):"id"!==Fa&&($a=Granite.I18n.get("Where to buy"),ib="js-cta-buy tg-wtb",mb=Cb):"NOORDER"===Ca&&(Za=Ia=Granite.I18n.get("not for sale"),
825Ya=Ea="cta--disabled tg-not-for-sale"),"NOORDER"===Ca)kb="pd-buying-price--cta2","in"===Fa&&(Ya=Ea="js-cta-stock tg-out-stock",Za=Ia=Granite.I18n.get("Get stock alert"),cb=wa={moCode:Ka});else{if("OUTOFSTOCK"===Ca)Ya=Ea="js-cta-stock tg-out-stock",Za=Ia=Granite.I18n.get("Get stock alert"),cb=wa={moCode:Ka,gsFlag:Ta};else if("PREORDER"===Ca){var nb=Q("preorder",c,m),Ib={};Ya=Ea="js-buy-now";Ib.moCode=Ka;nb.isSpecial?(Za=Ia=nb.title,nb.ctaType&&(-1<nb.ctaType.indexOf("continue")?(Ya+=" tg-continue",
826Ea+=" tg-continue"):-1<nb.ctaType.indexOf("checkout")&&(Ya+=" tg-checkout",Ea+=" tg-checkout",-1<nb.ctaType.indexOf("between")&&(Ya+=" tg-between",Ea+=" tg-between")))):(Za=Ia=Granite.I18n.get("pre order"),Ya+=" tg-pre-order",Ea+=" tg-pre-order");Ib.ctaType=nb.ctaType;cb=wa=Ib}else{var bb=Q("add-cart",c,m),jb={moCode:Ka};Ya=Ea="js-buy-now";bb.isSpecial?(Za=Ia=bb.title,bb.ctaType&&(-1<bb.ctaType.indexOf("continue")?(Ya+=" tg-continue",Ea+=" tg-continue"):-1<bb.ctaType.indexOf("checkout")&&(Ya+=" tg-checkout",
827Ea+=" tg-checkout",-1<bb.ctaType.indexOf("between")&&(Ya+=" tg-between",Ea+=" tg-between")))):(Za=Ia=Granite.I18n.get("Add to cart"),Ya+=" tg-add-to-cart",Ea+=" tg-add-to-cart",jb.imgUrl=La);jb.ctaType=bb.ctaType;cb=wa=jb;"lt"!==Fa&&"lv"!==Fa&&"ee"!==Fa||"INSTOCK"!==Ca&&"BACKORDERED"!==Ca||!c.stockCu
827stomMessage||($("#pd-delivery-msg").html(c.stockCustomMessage),$("#pd-delivery-msg").show());"tr"===Fa&&"INSTOCK"===Ca&&(Za=Ia=Granite.I18n.get("Buy now"));["th","lv","lt","ee"].includes(Fa)&&"INSTOCK"===
828Ca&&(Za=Ia=Granite.I18n.get("Buy"))}W(c,m)}else kb="pd-buying-price--cta2",rb?(Ia=Za=Granite.I18n.get("Where to buy"),Ea=Ya="js-cta-buy tg-wtb",wa=cb=Cb,!Ja&&("nl"===Fa||"be"===Fa||"be_fr"===Fa)&&0<Ha.length&&(Ia=Granite.I18n.get("BUY WITH SUBSCRIPTION"),Ea="s-cta-item js-tariff-cta tg-subscription",wa.style="display:none;")):(Za=Ia=Granite.I18n.get("not for sale"),Ya=Ea="cta--disabled tg-not-for-sale"),"in"===Fa&&(Ya=Ea="js-cta-stock tg-out-stock",Za=Ia=Granite.I18n.get("Get stock alert"),cb=wa=
829{moCode:Ka});c.sellingWithBazel&&"OUTOFSTOCK"==Ca&&(Ya=Ea="cta--disabled js-cta-stock tg-out-stock",Za=Ia=Granite.I18n.get("Out Of Stock"),cb=wa={moCode:Ka});Oa&&(Ya=Ea="js-buy-now is-checked tg-subscription",Za=Ia=Granite.I18n.get("BUY WITH SUBSCRIPTION"),xb=gb=Sa);c.hasBespokeCta&&("PREORDER"!==Ca&&(Ya=Ea="tg-bespoke",Za=Ia=Granite.I18n.get("Customize yours"),xb=gb=$("#bespokeCtaLink").val(),ab=ua="_self"),"Y"===ya&&($a=Granite.I18n.get("Where to buy"),ib="js-cta-buy tg-wtb",mb=Cb));"cn"==Fa&&c.isComingSoon&&
830(Ta="ComingSoon",Za=Ia=Granite.I18n.get("Coming Soon Title"),cb.gsFlag=Ta,wa.gsFlag=Ta);Ca=Xa;Ga.classType=kb;Ga.isNotForSale=!Ga.configuratorEnabled&&Za===Granite.I18n.get("not for sale");Ga.wtbAttr=ia.getAttrCta($a,"javascript:;","_self",ib,mb);Ga.containedAttr=ia.getAttrCta(Ia,gb,ua,Ea,wa);Ga.anchorNaviAttr=ia.getAttrCta(Za,xb,ab,Ya,cb)}else{var db=a,sb=c.util,Ob=c.drawObj,ob=c.siteCode,fc=c.modelName,cc=c.modelCode,Hb=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",Rb=c.wtbSrc,Pb=
831c.wtbSubTypeCode,Eb=c.shopSkuCode,$b=$(m.buyingToolOptTariffPlan),Sb=sb.hasTariffPlanResult(c,m),gc=$b.find(".option-input.this-checked").attr("data-url"),Qb=$("#shopIntegrationFlag").val(),lc="GPv2"===Qb,pb="Hybris"===Qb||"Hybris-intg"===Qb,tb="Hybris-new"===Qb,Fb=c.wtbUseYn,rc=c.wtbDispFuncUseYN,ub=Ob.price,mc="_self",lb="",yb="",Db={},eb=c.stockLevelStatus,zb=eb,Jb="";"cn"==ob&&(Jb="GetStock");c.isPossibleBuy="INSTOCK"==eb||"BACKORDERED"==eb||"PREORDER"==eb||"LOWSTOCK"==eb?!0:!1;if(c.isBezel&&
832c.isPossibleBuy)if("Hybris-new"===Qb){var Tb=c.selectedBezelColor;if(Tb){var hc=Tb.hasOwnProperty("stock")?Tb.stock.stockLevelStatus.toUpperCase():"";eb=hc}""==eb&&(db=!1)}else{if("Hybris"===Qb||"Hybris-intg"===Qb)Tb=c.selectedBezelColor,hc="",Tb&&Tb.hasOwnProperty("stockLevelStatus")&&null!=Tb.stockLevelStatus&&(hc=Tb.stockLevelStatus.toUpperCase()),eb=hc,""==eb&&(db=!1)}else c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel&&(eb="OUTOFSTOCK");var Ub="_self",qb="",vb="",Ab={},Vb="",Yb="",Kb={},Wb=
833"javascript:;",Bb="javascript:;",fb="pd-buying-price--cta2",Nb={modelName:fc,dataTtile:Hb,imgSrc:Rb,iaCode:Pb,dataModelCode:cc};"in"===ob&&(Nb.dataModelCode=$("#modelCode").val());var wb=!0,nc="br"===ob||"ar"===ob||"latin"===ob?!0:!1;pb?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(wb=!1):tb?c.newHybrisSalesStatus||(wb=!1):lc?c.accessoryDisabled&&(wb=!1):nc&&(c.hybrisApiData.shopAPI?"br"!==ob||c.hybrisApiData.shopAPI.salesStatus?"ar"===ob&&"ON_SALES"!==c.hybrisApiData.shopAPI.salesStatus?
834wb=!1:"latin"===ob&&"ON_SALE"!==c.hybrisApiData.shopAPI.salesStatus&&(wb=!1):wb=!1:nc=!1);var ac=!1;
834"Y"===Fb?(ac="Y"===rc&&(pb||tb||lc||nc)?wb?!1:!0:!0,Qb||(ac=!0)):ac=!1;"mx"===ob&&(ac=!1);if(db){ac?("NOORDER"===eb?(qb=lb="js-cta-buy tg-wtb",vb=yb=Granite.I18n.get("Where to buy"),Ab=Db=Nb):(Vb="js-cta-buy tg-wtb ",Yb=Granite.I18n.get("Where to buy"),Kb=Nb,fb="pd-buying-price--cta3"),"in"===ob&&(qb=lb="js-cta-stock tg-out-stock",vb=yb=Granite.I18n.get("Get stock alert"),Ab=Db={moCode:Eb})):"NOORDER"===
835eb&&(qb=lb="cta--disabled no-for-sale tg-not-for-sale",vb=yb=Granite.I18n.get("not for sale"),"in"===ob&&(qb=lb="js-cta-stock tg-out-stock",vb=yb=Granite.I18n.get("Get stock alert"),Ab=Db={moCode:Eb}));if("OUTOFSTOCK"===eb)qb=lb="js-cta-stock tg-out-stock",vb=yb=Granite.I18n.get("Get stock alert"),Ab=Db={moCode:Eb,gsFlag:Jb};else if("PREORDER"===eb){var Lb=Q("preorder",c,m),dc={};qb=lb="js-buy-now pre-order";dc.moCode=Eb;Lb.isSpecial?(vb=yb=Lb.title,Lb.ctaType&&(-1<Lb.ctaType.indexOf("continue")?
836(qb+=" tg-continue",lb+=" tg-continue"):-1<Lb.ctaType.indexOf("checkout")&&(qb+=" tg-checkout",lb+=" tg-checkout",-1<Lb.ctaType.indexOf("between")&&(qb+=" tg-between",lb+=" tg-between")))):(vb=yb=Granite.I18n.get("pre order"),qb+=" tg-pre-order",lb+=" tg-pre-order");dc.ctaType=Lb.ctaType;Kb.moCode=Eb;Ab=Db=dc}else{var Xb=Q("add-cart",c,m);qb=lb="js-buy-now";"Y"===Fb&&("in"===ob?(qb=lb="js-cta-stock tg-out-stock",vb=yb=Granite.I18n.get("Get stock alert"),Ab=Db={moCode:Eb}):(fb="pd-buying-price--cta3",
837Vb="js-cta-buy tg-wtb ",Yb=Granite.I18n.get("Where to buy"),Kb=Nb));var sc={moCode:Eb};Xb.isSpecial?(vb=yb=Xb.title,Xb.ctaType&&(-1<Xb.ctaType.indexOf("continue")?(qb+=" tg-continue",lb+=" tg-continue"):-1<Xb.ctaType.indexOf("checkout")&&(qb+=" tg-checkout",lb+=" tg-checkout",-1<Xb.ctaType.indexOf("between")&&(qb+=" tg-between",lb+=" tg-between")))):(vb=yb=Granite.I18n.get("Add to cart"),qb+=" tg-add-to-cart",lb+=" tg-add-to-cart");sc.ctaType=Xb.ctaType;Ab=Db=sc;Kb.moCode=Eb;"lt"!==ob&&"lv"!==ob&&
838"ee"!==ob||"INSTOCK"!==eb&&"BACKORDERED"!==eb||!c.stockCustomMessage||($("#pd-delivery-msg").html(c.stockCustomMessage),$("#pd-delivery-msg").show());["th","lv","lt","ee"].includes(ob)&&"INSTOCK"===eb&&(vb=yb=Granite.I18n.get("Buy"))}W(c,m)}else"Y"===Fb?(qb=lb="js-cta-buy tg-wtb",vb=yb=Granite.I18n.get("Where to buy"),Ab=Db=Nb):(qb=lb="cta--disabled tg-not-for-sale",vb=yb=Granite.I18n.get("not for sale")),"in"===ob&&(qb=lb="js-cta-stock tg-out-stock",vb=yb=Granite.I18n.get("Get stock alert"),Ab=Db=
839{moCode:Eb}),fb="pd-buying-price--cta1";c.sellingWithBazel&&"OUTOFSTOCK"==eb&&(qb=lb="cta--disabled js-cta-stock tg-out-stock",vb=yb=Granite.I18n.get("Out Of Stock"),Ab=Db={moCode:Eb});Sb&&(qb=lb="js-buy-now is-checked tg-subscription",vb=yb=Granite.I18n.get("BUY WITH SUBSCRIPTION"),Wb=Bb=gc);c.hasBespokeCta&&("PREORDER"!==eb&&(qb=lb="tg-bespoke",vb=yb=Granite.I18n.get("Customize yours"),Wb=Bb=$("#bespokeCtaLink").val(),Ub=mc="_self"),"Y"===Fb&&(Yb=Granite.I18n.get("Where to buy"),Vb="js-cta-buy tg-wtb",
840Kb=Nb));"cn"==ob&&c.isComingSoon&&(Jb="ComingSoon",vb=yb=Granite.I18n.get("Coming Soon Title"),Ab.gsFlag=Jb,Db.gsFlag=Jb);eb=zb;ub.classType=fb;ub.isNotForSale=!ub.configuratorEnabled&&vb===Granite.I18n.get("not for sale");ub.wtbAttr=sb.getAttrCta(Yb,"javascript:;","_self",Vb,Kb);ub.containedAttr=sb.getAttrCta(yb,Bb,mc,lb,Db);ub.anchorNaviAttr=sb.getAttrCta(vb,Wb,Ub,qb,Ab)}this.changeUsCta(c,m);this.settingForBusiness(c,m);this.settingReserveInStore(c,m);"INSTOCK"==c.stockLevelStatus&&void 0!==$("#personalizeCheckStatus").val()&&
841"Y"==$("#personalizeCheckStatus").val()&&this.settingPersonalizeTvCta(c,m);this.checkingCtaCount(c,m);var Gb=q.price,ic=c.modelCode,jc=c.ctaLocalText,tc=c.configuratorUseYn,zc=$("#tempTitle").val(),ec=c.configuratorUrl;"Y"===tc&&"page-standard-pd"===zc&&(""!==ec&&null!==ec?(ec=ec+"?modelCode\x3d"+ic,Gb.anchorNaviAttr.href=ec,Gb.containedAttr.href=ec,Gb.anchorNaviAttr.class=Gb.containedAttr.class="configuratorUse-y"):Gb.anchorNaviAttr.class=Gb.containedAttr.class="cta--disabled configuratorUse-y",
842""!==jc&&null!==jc&&(Gb.anchorNaviAttr.text=Gb.containedAttr.text=jc),Gb.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());var Ec=c.soundbarCategoryData;(c.addonStepBuying04||c.addonStepBuying0701)&&!c.newEmbedVDCountry&&Ec&&1===Ec.categoryTotalCount&&!c.hasGift&&c.embedAddonSelected&&0<c.embedAddonSelected.length&&(Gb.anchorNaviAttr.class=Gb.containedAttr.class=Gb.anchorNaviAttr.class.replace(" tg-continue",""),Gb.anchorNaviAttr.ctaType=Gb.containedAttr.ctaType=Gb.anchorNaviAttr.ctaType.replace(" continue",
843""));ba.productCtaDraw(q);this.settingCtaTagging(c,m);this.specialTagging(c,m);var kc=m.buyingToolPriceBar.find(".summary__product-price");if(c.embedAddonSelected&&0<c.embedAddonSelected.length)kc.show();else{var oc=m.buyingToolOptEmbedAddon.attr("data-leasing-price");oc&&kc.html()===q.price.priceWrapper.info.totalPrice&&($(".pd-buying-price .pd-buying-price__wrap .pd-buying-price__new-price").html(oc),$(".hdd02-buying-tool__cost-box .cost-box__price .cost-box__price-now").html(oc));kc.hide()}if("uk"===
844siteCode||"au"===siteCode){var uc=!1,pc=$(".pd-buying-price__save"),qc=$(".cost-box__price-save"),vc=$(".pd-buying-price__new-price"),Ac=$(".cost-box__price-now"),Fc=vc.html();"uk"===siteCode&&q.tariffOptionResult.hasComponent&&(vc.html("Upfront Cost : "+Fc),Ac.html("Upfront Cost : "+Fc));q.tariffOptionResult.hasComponent&&q.tradeInResult.hasComponent&&(q.careResult.hasComponent?0>parseInt(c.tariffPrice)+q.careResult.dataSalePrice-q.tradeInResult.dataPrice&&(uc=!0):0>parseInt(c.tariffPrice)-q.tradeInResult.dataPrice&&
845(uc=!0));var bc=$(".hdd02-buying-tool__cost-box");uc?(0<bc.find(".cost-box__error-message").length?bc.find(".cost-box__error-message").html('\x3cp class\x3d"cost-box__error-message"\x3eSorry, we are unable to proceed due to the current product combination. Please select another device to trade-in or change your Sim Plan selection.\x3c/p\x3e'):bc.find(".cost-box__cta-wrap").after('\x3cp class\x3d"cost-box__error-message"\x3eSorry, we are unable to proceed due to the current product combination. Please select another device to trade-in or change your Sim Plan selection.\x3c/p\x3e'),
846$(".cost-box__cta a").addClass("cta--disabled"),$(".pd-buying-price__cta a").addClass("cta--disabled")):bc.find(".cost-box__error-message").remove();if("uk"===siteCode&&q.tradeInResult.hasComponent)if(0<pc.length)pc.html("Save "+currencyComma(q.tradeInResult.dataPrice,ha)),qc.html("Save "+currencyComma(q.tradeInResult.dataPrice,ha));else{var wc='\x3cdiv class\x3d"pd-buying-price__save"\x3eSave '+currencyComma(q.tradeInResult.dataPrice,ha)+"\x3c/div\x3e",Bc='\x3cstrong class\x3d"cost-box__price-save"\x3e\x3cspan class\x3d"hidden"\x3ePrice \x3c/span\x3eSave '+
847currencyComma(q.tradeInResult.dataPrice,ha)+"\x3c/strong\x3e";$(".pd-buying-price .pd-buying-price__was").after(wc);
847$(".hdd02-buying-tool__cost-box .cost-box__price-original").after(Bc)}q.tariffOptionResult.hasComponent&&($(".pd-buying-price .pd-buying-price__was").hide(),$(".pd-buying-price .pd-buying-price__save").hide(),$(".hdd02-buying-tool__cost-box .cost-box__price-original").hide(),$(".hdd02-buying-tool__cost-box .cost-box__price-save").hide())}m.buyingTool.find("#apiChangeStockStatus").val(J);
848this.settingRewardsDraw(c)};pa.prototype.settingBezelInfo=function(a,c){var m=a.modelCode,f=$(".option-bezelcolor .pd-option-selector");if(0<f.length)for(var q=0;q<f.length;q++){var ba=f.eq(q).attr("data-disabled");f.eq(q).parent().addClass(ba)}a.sellingWithBazel&&0==$("#option-bezelcolor .pd-select-option__wrap").length&&this.settingPriceCta(a.hasPriceCta,a,c,a.currentUrl);if(0<$("#option-bezelcolor .pd-select-option__wrap").length&&!a.isBezel){a.isBezel=!0;c=$("input[id^\x3d'pd-color-multi']");
849for(q=0;q<c.length;q++)a.bezelColorArray.push(c[q]),"dummyCode"==c[0].dataset.bezelmodelcode&&(c[0].dataset.bezelmodelcode=m),a.bezelModelCodeList+=c[q].dataset.bezelmodelcode,a.bezelModelPatternCodeList+=c[q].dataset.bezelmodelpatterncode,q<c.length-1&&(a.bezelModelCodeList+=",",a.bezelModelPatternCodeList+=",");this.bezelModelCodeApiCall(a)}};pa.prototype.bezelModelCodeApiCall=function(a){function c(Ja,Fa){var Ba=$("#shopIntegrationFlag").val(),Ha=Ja.bezelModelCodeArray;if("Hybris-new"===Ba)for(Ba=
8500;Ba<Fa.length;Ba++)Ja.bezelModelCodeArray.push(Fa[Ba]);else if("Hybris"===Ba||"Hybris-intg"===Ba)for(Fa=Fa.productDatas,Ba=0;Ba<Ja.bezelModelCodeArrayList.length;Ba++)for(var Va=0;Va<Fa.length;
850Va++)Ja.bezelModelCodeArrayList[Ba]==Fa[Va].productCode&&Ja.bezelModelCodeArray.push(Fa[Va]);Ja.selectedBezelColor=Ha[Ja.bezelColorIndex]}var m=$("#storeDomain").val(),f=a.multistoreSiteCd,q=a.bezelModelCodeList,ba=$("#shopIntegrationFlag").val(),J=q.split(","),ha="ca"===f||"ca_fr"===f;a.bezelModelCodeArrayList=
851J;J="";J=xa?$("#eppCompanyCode").val():f;var qa="";$("#shopParmLang").val()&&(qa="\x26lang\x3d"+$("#shopParmLang").val());var ia=xa||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};f="\x26country_region\x3d";var za="";ha&&(za=getSECACountryRegion(),f+=za);if("Hybris-new"===ba)$.ajax({url:m+"/tokocommercewebservices/v2/"+J+"/products?productCodes\x3d"+q+"\x26fields\x3dSIMPLE_INFO"+qa,type:"GET",cache:!0,crossDomain:!0,xhrFields:ia,dataType:"json",timeout:2E4,
852success:function(Ja,Fa,Ba){200==Ba.status&&c(a,Ja)},error:function(Ja,Fa,Ba){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}});else if("Hybris"===ba||"Hybris-intg"===ba)J=m+"/"+J+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+q,"Y"===a.hybrisJsonYn?$.ajax({url:J,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ja,Fa,Ba){200==Ba.status&&c(a,Ja)},error:function(){},complete:function(){0<
853$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}}):ha?$.ajax({url:J+f,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ja,Fa,Ba){200==Ba.status&&c(a,Ja)},error:function(){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}}):$.ajax({url:J,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",
854cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ja,Fa,Ba){200==Ba.status&&c(a,Ja)},error:function(){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}})};pa.prototype.settingDeliveryMessage=function(a,c){c=a.drawObj;var m=a.view,f=a.useDeliveryMessage,q=a.deliveryMessage;c.deliveryMessage={hasComponent:!1,deliveryMessage:""};f&&""!==q&&(c.deliveryMessage.hasComponent=!0,c.deliveryMessage.deliveryMessage=
855a.deliveryMessage);m.deliveryMessageDraw(c)};pa.prototype.settingShippingOrBack=function(a){if(a.useShippingOrBack&&a.drawObj.price.priceWrapper.hasPriceWrapper&&"OUTOFSTOCK"!==a.stockLevelStatus){var c=a.drawObj,m=a.view;a.backOrderMessage?a.shippingOrBack=a.backOrderMessage:a.shippingMessage&&(a.shippingOrBack=a.shippingMessage);c.shippingOrBack={hasComponent:a.shippingOrBack?!0:!1,shippingOrBack:a.shippingOrBack};m.shippingOrBackDraw(c)}};pa.prototype.settingGiftCard=function(a,c){if(0<$(".pd-select-option--gift-card").length&&
856!a.giftCard.isGiftCard){var m=a.siteCode;$.cookies.get("jwt_"+a.countryIsoCode,{domain:".samsung.com"});var f=$.cookies.get("guid",{domain:".samsung.com"});"cn"===m&&(f=$.cookies.get("guid",{domain:".samsung.com.cn"}));c=$.cookies.get("flpe",{domain:".samsung.com"});"cn"===m&&(c=$.cookies.get("flpe",{domain:".samsung.com.cn"}));m={};if(c&&f){m=$("#cck").val();var q=CryptoJS.enc.Utf8.parse(m);m=(CryptoJS.AES.encrypt(""+f,q,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+m).substring(0,32);m=CryptoJS.enc.Utf8.parse(m);
857c=CryptoJS.AES.decrypt(c,m,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});c=CryptoJS.enc.Utf8.stringify(c);m=JSON.parse(decodeURIComponent(c))}var ba=m.firstName,J=m.lastName,ha=m.emailAddr;a.giftCard.isGiftCard=!0;a.giftCard.cartGiftCardCode=a.modelCode;a.giftCard.selectedPrice=a.giftCard.minPrice;c=Granite.I18n.get("minPrice{0} maxPrice{1} priceIncrement{2}",[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted,a.giftCard.priceIncrementFormatted]);m=Granite.I18n.get("Please enter only numbers. {0} {1}",
858[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted]);$(".pd-select-option--gift-card .text-field-v2__hint").text(c);$(".pd-select-option--gift-card .text-field-v2__text").text(m);null!=f&&""!=f||$(".checkbox-v2").hide();$(document).on("click","#email-checkbox",function(){null!=f&&""!=f&&($("#email-checkbox").is(":checked")?(null!=ha&&ha&&(a.giftCard.emailValid=!0,$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(0).hide(),$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(1).hide(),
859$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(2).hide()),a.giftCard.email=ha,a.giftCard.firstName=ba,a.giftCard.lastName=J,$("#email-address-input").val(ha),$("#first-name-input").val(ba),$("#last-name-input").val(J),$("#email-address-input").parent().parent().addClass("active"),$("#first-name-input").parent().parent().addClass("active"),$("#last-name-input").parent().parent().addClass("active")):(a.giftCard.emailValid=!1,a.giftCard.email="",a.giftCard.firstName="",a.giftCard.lastName=
860"",$("#email-address-input").val(""),$("#first-name-input").val(""),$("#last-name-input").val(""),$("#email-address-input").parent().parent().removeClass("active"),$("#first-name-input").parent().parent().removeClass("active"),$("#last-name-input").parent().parent().removeClass("active")))});$(document).on("change keyup paste","#gift-card-amount-input",function(ia){ia=$("#gift-card-amount-input").val();a.giftCard.inputAmount=ia.replace(/[^0-9]/g,"");$("#gift-card-amount-input").val(a.giftCard.inputAmount)});
861$(document).on("focusout","#personalized-message-input",function(ia){a.giftCard.personalizedMessage=$("#personalized-message-input").val()});var qa;$(document).on("focusout","#email-address-input",function(ia){qa=$("#email-address-input").val();/^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/.test(qa)?(a.giftCard.emailValid=!0,a.giftCard.email=$("#email-address-input").val(),$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(0).hide()):(a.giftCard.emailValid=!1,$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(0).show())});
862$(document).on("focusout","#first-name-input",function(ia){a.giftCard.firstName=$("#first-name-input").val();""==a.giftCard.firstName?$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(1).show():$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(1).hide()});$(document).on("focusout","#last-name-input",function(ia){a.giftCard.lastName=$("#last-name-input").val();""==a.giftCard.lastName?$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(2).show():
863$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(2).hide()})}};pa.prototype.settingDeliveryPickup=function(a,c){if(0<$(".pd-select-option--delivery-pickup").length&&!a.deliveryPickup.isDeliveryPickup){a.deliveryPickup.isDeliveryPickup=!0;var m=a.siteCode;checkEppSite()&&a.isSENA&&(a.blockPickupDisplay="Y");0<$(".pd-select-option--delivery-pickup").length&&((a.categoryTypeCode.startsWith("01")||a.categoryTypeCode.startsWith("08")||a.categoryTypeCode.startsWith("04"))&&"N"==a.blockEddDisplay||
864"N"==a.blockPickupDisplay)&&($(".pd-select-option--delivery-pickup").show(),"N"!=a.blockEddDisplay&&$(".pd-select-option--delivery-pickup .pd-delivery-pickup__list .pd-delivery-pickup__item").eq(0).hide(),"N"!=a.blockPickupDisplay&&$(".pd-select-option--delivery-pickup .pd-delivery-pickup__list .pd-delivery-pickup__item").eq(1).hide());$(document).on("click",".pd-delivery-pickup__item-wrap.delivery .pd-delivery-pickup__button .cta, .pd-delivery-pickup__item-wrap.delivery .pd-delivery-pickup__edit-button",
865function(){"cn"===m?window.sg.components.pdRddPopup.callRddPopupGrid($(this)):window.sg.components.eddPopup.activePopup($(this))});$(document).on("click",".pd-delivery-pickup__item-wrap.pickup .pd-delivery-pickup__button .cta, .pd-delivery-pickup__item-wrap.pickup .pd-delivery-pickup__edit-button",function(){var f=$("#gmapLatitude").val(),q=$("#gmapLongitude").val();0<$("#pickup-map-canvas").length&&pickupOptionPD.initMap(f,q,"N");window.sg.components.pickupOptionsPopup.showPopup($(this))})}};pa.prototype.settingRecommendation=
866function(a,c){c=a.modelCode;var m=a.siteCode,f=a.notUseRecommendation,q=a.notEppUseRecommendation;!a.useRecommendation||f.includes(m)||xa&&q.includes(m)||a.isRecommendation||("A"!=a.productType?"INSTOCK"!=a.stockLevelStatus&&"BACKORDERED"!=a.stockLevelStatus&&"PREORDER"!=a.stockLevelStatus&&"LOWSTOCK"!=a.stockLevelStatus?(a.isRecommendation=!0,productRecommendationUx2PD.get
866SearchProductCardForBDCApi(c)):$(".pdd36-recommendation-oos-new").remove():$(".pdd36-recommendation-oos-new").remove())};pa.prototype.settingPrePurchase=
867function(a,c){var m=a.siteCode,f=c.buyingToolOptPrePurchase.find(".block1_learnMore");c=c.buyingToolOptPrePurchase.find(".block2_learnMore");var q="b2c_"+a.prePurchaseMainCateCode;xa||"ca"!=m&&"ca_fr"!=m||"08"!==a.categoryTypeCode.slice(0,2)?xa||"uk"!=m||(a=a.categoryTypeCode.slice(0,4),"0807"===a?q="b2c_vc":"0808"===a?q="b2c_ck":"0809"===a?q="b2c_dw":"0811"===a&&(q="b2c_mc")):q="b2c_da";a=Granite.I18n.getVar("Block1 Link",q);q=Granite.I18n.getVar("Block2 Link",q);f.attr("href",a);c.attr("href",q)};
868pa.prototype.displayStockStatus=function(a,c){c=c.buyingTool;var m=a.stockLevelStatus.toLowerCase(),f="";f+='\x3cspan class\x3d"pd-in-stock-icon"\x3e';f+='  \x3cspan class\x3d"s-stock-icon"\x3e';f+='    \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e';f+='      \x3cuse xlink:href\x3d"#confirmation-result-bold" href\x3d"#confirmation-result-bold"\x3e\x3c/use\x3e';f+="    \x3c/svg\x3e";f+="  \x3c/span\x3e";f+=Granite.I18n.get("IN STOCK");f+="\x3c/span\x3e";var q="";q+='\x3cspan class\x3d"pd-out-stock-icon"\x3e';
869q+='  \x3cspan class\x3d"s-stock-icon"\x3e';q+='    \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e';q+='      \x3cuse xlink:href\x3d"#cancel-bold" href\x3d"#cancel-bold"\x3e\x3c/use\x3e';q+="    \x3c/svg\x3e";q+="  \x3c/span\x3e";q+=Granite.I18n.get("Out Of Stock");q+="\x3c/span\x3e";var ba="";ba+='  \x3cspan class\x3d"pd-instock"\x3e';ba+=Granite.I18n.get("IN STOCK");ba+="\x3c/span\x3e";var J="";J+='  \x3cspan class\x3d"pd-outofstock"\x3e';J+=Granite.I18n.get("Out Of Stock");
870J+="\x3c/span\x3e";$(c).find(".pd-select-option__item").each(function(){var ha=$(this).find(".option-input"),qa=ha.attr("name");if(("pd-size"===qa||"pd-color"===qa)&&ha.is(":checked"))return $(this).siblings().find(".pd-in-stock-icon,.pd-out-stock-icon,.pd-instock,.pd-outofstock").remove(),"instock"==m?(ha="pd-size"===qa?f:ba)&&0===$(this).find(".pd-instock, .pd-in-stock-icon").length&&$(this).append(ha):("outofstock"==m||"noorder"==m)&&(ha="pd-size"===qa?q:J)&&0===$(this).find(".pd-outofstock, .pd-out-stock-icon").length&&
871$(this).append(ha),!1})};pa.prototype.changeUsCta=function(a,c){c=a.util;var m=a.pfAllUrl,f=a.drawObj,q=f.price;"us"===a.siteCode&&f.delivery.errorMessage&&(q.containedAttr=c.getAttrCta(Granite.I18n.get("SEE SIMILAR PRODUCTS IN STOCK"),m,"_self","",{}),q.anchorNaviAttr=c.getAttrCta(Granite.I18n.get("SEE SIMILAR PRODUCTS IN STOCK"),m,"_self","",{}))};pa.prototype.settingReserveInStore=function(a,c){c=a.drawObj.price;a.hasReserveInStore&&(c.reserveInStoreAttr={text:Granite.I18n.get("Reserve In Store").toUpperCase(),
872"class":null,href:a.apiDomain+"/"+a.siteCode+"/reserve-online/reserve-now-product?productC
872ode\x3d"+a.modelCode,title:null,target:"_self"})};pa.prototype.settingForBusiness=function(a,c){c=a.drawObj.price;var m=a.util,f=a.siteCode;a.hasEbtButtonUse&&(c.outlinedAttr=m.getAttrCta(Granite.I18n.get("For Business"),"javascript:;","_self","tg-for-business",{ctaType:"for-business"}),c.containedAttr.class&&-1<c.containedAttr.class.indexOf("js-cta-buy")&&("br"===f?c.anchorNaviAttr={}:c.wtbAttr=$.extend({},
873c.wtbAtt,c.containedAttr),c.containedAttr={}))};pa.prototype.settingPersonalizeTvCta=function(a,c){if(!a.setPersonalizeTv&&a.hasPersonalizeTv){a.setPersonalizeTv=!0;var m=a.modelCode;$.ajax({url:"https://vdapi.samsung.com/tvs/tvpersonalize/api/tvapps/appserver/ispersonalizetv",type:"GET",dataType:"text",data:{modelCode:m},async:!1,xhrFields:xa?{withCredentials:!0}:{},contentType:"application/json",success:function(f){"Available"==f?$.ajax({url:"/"+a.siteCode+"/tvs/personalize-my-tv/",type:"GET",datatype:"json",
874data:{sku:m,type:"apps"},success:function(q,ba,J){"200"==J.status&&$("#personalizeMyTv").show()},error:function(q,ba,J){}}):$("#personalizeMyTv").hide()},error:function(f,q,ba){}})}};pa.prototype.checkingCtaCount=function(a,c){c=a.drawObj.price;var m=0;c.outlinedAttr.text&&m++;c.containedAttr.text&&m++;c.reserveInStoreAttr.text&&m++;c.bespokeAttr.text&&m++;2<=m&&!a.hasBespokeCta?c.ctaWrapperClass="cost-box__cta-wrap--business":2<=m&&a.hasBespokeCta&&(c.ctaWrapperClass="cost-box__cta-wrap--bespoke")};
875pa.prototype.checkingDeliveryCode=function(a,c){var m=a.util,f=a.view,q=a.drawObj,ba=a.siteCode,J=a.pdProductType,ha=c.buyingToolOptDelivery,qa=$(ha.find("#delivery-zipcode")).val();c=m.hasDeliveryResult(a,c);m=a.pdPackageYn;var ia=!0;"in"!==ba||"PHONE"===J||m||(c?a.checkValid&&(q.delivery.errorMessage=null,$(ha).find(".text-field-v2__text.error").hide(),f.deliveryDraw(q)):(isNotEmpty(qa)||(ba=Granite.I18n.get("Enter your zipcode"),a.checkValid&&(q.delivery.errorMessage=ba,q.delivery.inputAttr.value=
876qa,f.deliveryDraw(q))),a.checkValid&&($(ha).find(".text-field-v2__text.error").show(),$(ha).find("#delivery-zipcode").focus().val("").val(qa),$(ha).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide()),ia=!1));return ia};pa.prototype.checkWarrantyVd=function(a){if("pl"!==a.siteCode)return!0;var c=$("#tempTitle").val(),m,f;if(!(null==a?0:null==(m=a.drawObj)?0:null==(f=m.warrantyVd)?0:f.hasComponent)||"page-standard-pd"!==c)return!0;var q,ba;if(null==a?0:null==(q=a.drawObj)?
8770:null==(ba=q.warrantyVdResult)?0:ba.smcCode)return!0;c=$(".option-warranty-vd li.selected").first();a=$(".option-warranty-vd");if(c.length)return c=c.find("input[data-extended-warranty]").first().attr("data-extended-warranty"),a.find(".checkingWarrantyVd").hasClass("is-show")&&a.find(".checkingWarrantyVd").removeClass("is-show"),"none"===c;a&&(a.find(".checkingWarrantyVd").addClass("is-show"),document.querySelector(".option-warranty-vd").scrollIntoView({block:"center"}));return!1};pa.prototype.checkingSamsungCare=
878function(a){var c=$("#tempTitle").val(),m=!0;a.samsungCareFlag&&"page-buying-pd"==c&&(null!=a.drawObj.careResult.dataModelCode&&""!=a.drawObj.careResult.dataModelCode?a.checkValid&&$(".option-care").find(".checkingSamsungCare").hasClass("is-show")&&$(".option-care").find(".checkingSamsungCare").removeClass("is-show"):(m=!1,a.checkValid&&($(".option-care").find(".checkingSamsungCare").addClass("is-show"),document.querySelector(".option-care").scrollIntoView({block:"center"}))));return m};pa.prototype.checkingRecipientInfo=
879function(a){var c=!0;a.giftCard.isGiftCard&&((c=a.giftCard.amountValid&&a.giftCard.emailValid&&""!=a.giftCard.firstName&&""!=a.giftCard.lastName,a.giftCard.amountValid)?a.giftCard.emailValid?""==a.giftCard.firstName?($(".pd-select-option--delivery-details .text-field-v2__text.error").eq(1).show(),$("#first-name-input").focus()):""==a.giftCard.lastName&&($(".pd-select-option--delivery-details .text-field-v2__text.error").eq(2).show(),$("#last-name-input").focus()):($(".pd-select-option--delivery-details .text-field-v2__text.error").eq(0).show(),
880$("#email-address-input").focus()):$("#gift-card-amount-2").prop("checked")&&(a=Granite.I18n.get("Please enter only numbers. {0} {1} check",[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted]),$(".pd-select-option--gift-card .text-field-v2__text").text(a),$(".pd-select-option--gift-card .text-field-v2__text.error").show(),$("#gift-card-amount-input").focus()));return c};pa.prototype.checkingNewAssuredBuyBack=function(a){var c=!0;if("in"===siteCode&&a.newAssuredBuyBackFlag){var m=$(".hdd02-buying-tool .option-new-assured-buy-back .pd-select-option__notice");
881c=a.newAssuredBuyBackCheck;
881!a.newAssuredBuyBackCheck&&a.checkValid&&(document.querySelector(".hdd02-buying-tool .option-new-assured-buy-back").scrollIntoView({block:"center"}),m.hasClass("is-show")||m.addClass("is-show"))}return c};pa.prototype.settingCommonPopupTagging=function(a,c,m){var f=m="";"combo"===a?(m="header(pim)_offer option:bundle offer-"+c.pageTrackPd+"-delete-confirm",f="bundle offer:delete option:"):"tradeIn"===a?(m="header(pim)_trade in-"+c.pageTrackPd+"-delete-confirm",f="trade in:delete option:",
882c.isMultiTradeIn&&(m="header(pim)_trade in-"+c.pageTrackPd+"-option_click"+Number(c.checkedIndex)+1)):"care"===a?(m="header(pim)_service option selector:samsung care-"+c.pageTrackPd+"-delete confirm alert-option click1",f="samsung care:delete option:"):"upgrade"===a?(m="header(pim)_service option selector-"+c.pageTrackPd+"}-cta-link",f="upgrade program:delete option:"):"tariffOption"===a?(m="header(pim)_service option selector tariff-"+c.pageTrackPd+"}-popup-button",f="tariff:delete option:"):"forever"===
883a?(m="header(pim)_service option selector galaxy forever-"+c.pageTrackPd+"}-popup-button",f="galaxy forever:delete option:"):"assured"===a&&(m="header(pim)_service option selector assured buy back-"+c.pageTrackPd+"}-popup-button",f="assured buy back:delete option:");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--outlined").attr("an-tr",m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",f+"no");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("an-tr",
884m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",f+"yes")};pa.prototype.settingWishlistTagging=function(a,c){a=a.pageTrackPd;c=$(c.buyingToolInfoWishlist.find(".pd-wishlist-cta"));var m=$(".pd-header-gallery").find(".pd-info__wishlist .pd-wishlist-cta"),f=!1;navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i)&&(f=!0);if(c&&0<c.length){var q="hdd02_pdp header-"+a+"-wishlist add/ remove-account3",ba="",J=c.attr("class")?c.attr("class"):"";
885"Y"===$("#typeux2025").val()&&(q="",-1<J.indexOf("tg-add-wishlist")?q="add":-1<J.indexOf("tg-remove-wishlist")&&(q="remove"),q=f?"hdd02_gallery-"+a+"-wishlist "+q+"-account3":"hdd02_product info.-"+a+"-wishlist "+q+"-account3");-1<J.indexOf("tg-add-wishlist")?ba="add to wishlist":-1<J.indexOf("tg-remove-wishlist")&&(ba="remove from wishlist");c.attr("an-tr",q).attr("an-ca","account").attr("an-ac","wishlist").attr("an-la",ba);m.attr("an-tr",q).attr("an-ca","account").attr("an-ac","wishlist").attr("an-la",
886ba)}};pa.prototype.settingCtaTagging=function(a,c){var m="Y"===$("#typeux2025").val()?!0:!1,f="anchorNavigationPriceBar .pd-buying-price__cta .cta";m&&(f="anchorNavigationPriceBar .pdd39-anchor-nav__cta .cta");var q=$("#"+f);f=c.buyingToolPriceBar.find(".cta");var ba=a.pageTrackPd,J=[a.modelCode],ha=[a.modelName],qa=[a.displayName],ia=[a.proudctPriceInfo.orignalPrice],za=[a.proudctPriceInfo.salePrice],Ja=[a.pvitype.toLowerCase()],Fa=[a.pvisubtype.toLowerCase()],Ba=[a.pimsubtype.toLowerCase()],Ha=
887["1"],Va=c.buyingToolGlallery.find("li img").attr("src");if(a.util.hasTradeInResult(a,c)){var Na=a.ceTradeUpPopup.isEnabled?"trade-up":"trade-in";J.push(Na);ha.push(Na);qa.push(Na);Ja.push("shop program");Fa.push(Na);Ba.push(Na);ia.push("0");za.push("0");Ha.push("0")}a.util.hasUpgradeResult(a,c)&&(J.push("upgrade"),ha.push("upgrade"),qa.push("upgrade"),Ja.push("shop program"),Fa.push("upgrade"),Ba.push("upgrade"),ia.push("0"),za.push("0"),Ha.push("0"));a.util.hasCareResult(a,c)&&(J.push(a.drawObj.careResult.dataModelCode),
888ha.push(a.drawObj.careResult.dataModelCode),qa.push(a.drawObj.careResult.dataModelCode),ia.push(a.drawObj.careResult.dataPrice),za.push(a.drawObj.careResult.dataSalePrice),Ja.push("shop program"),Fa.push("samsung care"),Ba.push("insurance"),Ha.push("1"));a.util.hasWarrantyResult(a,c)&&(J.push(a.drawObj.warrantyResult.dataModelCode),ha.push(a.drawObj.warrantyResult.dataModelCode),qa.push(a.drawObj.warrantyResult.dataModelCode),ia.push(a.drawObj.warrantyResult.dataPrice),za.push(a.drawObj.warrantyResult.dataSalePrice),
889Ja.push("shop program"),Fa.push("samsung care"),Ba.push("warranty"),Ha.push("1"));a.util.hasTariffOptionResult(a,c)&&(J.push(a.drawObj.tariffOptionResult.dataModelCode),ha.push(a.drawObj.tariffOptionResult.dataModelCode),qa.push(a.drawObj.tariffOptionResult.dataModelCode),Ja.push("shop program"),Fa.push("tariff"),Ba.push("tariff"),ia.push("0"),za.push("0"),Ha.push("0"));a.util.hasForeverResult(a,c)&&(J.push("forever"),ha.push("forever"),qa.push("forever"),Ja.push("shop program"),Fa.push("forever"),
890Ba.push("forever"),ia.push(a.drawObj.galaxyForeverResult.dataPrice),za.push(a.drawObj.galaxyForeverResult.dataPrice),Ha.push("1"));a.util.hasBogo(a,c)&&(J.push(a.drawObj.offer.bogo.item.modelCode),ha.push(a.drawObj.offer.bogo.item.modelName),qa.push(a.drawObj.offer.bogo.item.displayName),a.drawObj.offer.bogo.item.price.price&&(ia.push(1*Number(a.drawObj.offer.bogo.item.price.price)),za.push("0")),Ja.push(a.drawObj.offer.bogo.item.pviTypeName),Fa.push(a.drawObj.offer.bogo.item.pviSubtypeName),Ba.push(a.drawObj.offer.bogo.item.categorySubTypeEngName),
891Ha.push("1"));if(a.util.hasGiftResult(a,c)&&(Na=a.drawObj.offer.gift.item.bundleList)&&0<Na.length)for(var ka in Na){var La=Na[ka];J.push(La.dataModelCode);ha.push(La.dataModelName);qa.push(La.dataDisplayName);ia.push(La.dataPrice);za.push(La.dataSalePrice);Ja.push(La.pviTypeName);Fa.push(La.pviSubtypeName);Ba.push(La.categorySubTypeEngName);Ha.push("1")}if(a.util.hasComboResult(a,c)&&a.drawObj.offer.combo&&0<a.drawObj.offer.combo.length)for(var Da in a.drawObj.offer.combo)if((ka=a.drawObj.offer.combo[Da].item.bundleList)&&
8920<ka.length)for(var Ka in ka)Na=ka[Ka],J.push(Na.dataModelCode),ha.push(Na.dataModelName),qa.push(Na.dataDisplayName),ia.push(Na.dataPrice),za.push(Na.dataSalePrice),Ja.push(Na.pviTypeName),Fa.push(Na.pviSubtypeName),Ba.push(Na.categorySubTypeEngName),Ha.push("1");a.util.hasAssuredBuyBackResultResult(a,c)&&(J.push(a.drawObj.assuredBuyBackResult.dataSku),ha.push(a.drawObj.assuredBuyBackResult.dataModelName),qa.push(a.drawObj.assuredBuyBackResult.displayModelName),Ja.push("shop program"),Fa.push("galaxy assured"),
893Ba.push("galaxy assured"),ia.push(a.drawObj.assuredBuyBackResult.dataPrice),za.push(a.drawObj.assuredBuyBackResult.dataSalePrice),Ha.push("1"));a.util.hasNewAssuredBuyBackResult(a,c)&&(J.push(a.drawObj.newAssuredBuyBackResult.dataModelCode),ha.push(a.drawObj.newAssuredBuyBackResult.dataModelName),qa.push(a.drawObj.newAssuredBuyBackResult.dataDisplayName),Ja.push("shop program"),Fa.push("galaxy assured"),Ba.push("galaxy assured"),ia.push(a.drawObj.newAssuredBuyBackResult.dataPrice),za.push(a.drawObj.newAssuredBuyBackResult.dataPrice),
894Ha.push("1"));if((Da=a.embedAddonSelected)&&0<Da.length)for(Da=$jscomp.makeIterator(Da),Ka=Da.next();!Ka.done;Ka=Da.next())Ka=Ka.value,J.push(Ka.modelCode),ha.push(Ka.modelName),qa.push(Ka.name),Ja.push(Ka.pviType),Fa.push(Ka.pviSubtype),Ba.push(Ka.categorySubType?Ka.categorySubType.toLowerCase():""),ia.push(Ka.revenue),za.push(Ka.finalPriceValue),Ha.push("1");J=J.join(",");qa=qa.join(";");ha=ha.join(",");ia=ia.join(",");Ja=Ja.join(",");Fa=Fa.join(",");Ba=Ba.join(",");za=za.join(",");Ha=Ha.join(",");
895Da=$("section.tariff-popup .tariff-popup__btn-submit");"uk"===a.siteCode&&0<Da.length&&(Da.attr("data-modelcode",J),Da.attr("data-modeldisplay",qa),Da.attr("data-modelname",ha),Da.attr("data-modelrevenue",ia),Da.attr("data-modelprice",ia),Da.attr("data-pvitype",Ja),Da.attr("data-pvisubtype",Fa),Da.attr("data-pimsubtype",Ba),Da.attr("data-discountprice",za),Da.attr("data-modelqty",Ha),a.util.hasTariffOptionResult(a,c)||(Da.attr("data-modelrevenue",Da.attr("data-modelrevenue")+",0"),Da.attr("data-modelprice",
896Da.attr("data-modelprice")+",0"),Da.attr("data-discountprice",Da.attr("data-discountprice")+",0"),Da.attr("data-pvitype",Da.attr("data-pvitype")+",shop program"),Da.attr("data-pvisubtype",Da.attr("data-pvisubtype")+",tariff"),Da.attr("data-pimsubtype",Da.attr("data-pimsubtype")+",tariff"),Da.attr("data-modelqty",Da.attr("data-modelqty")+",0")));if(q&&0<q.length){var Qa=Na=ka=Ka="";Da="";La=!1;var Oa=q.attr("class")?q.attr("class"):"",Sa="pdd01_anchor nav";m?(Sa="pdd39_anchor nav v3",-1<Oa.indexOf("configuratorUse-y")?
897""!==a.ctaEngText&&null!==a.ctaEngText&&(Ka=Sa+"-"+ba+"-cta-buy page",ka="buy cta",Qa=Na=a.ctaEngText):-1<Oa.indexOf("tg-continue")?(Ka=Sa+"-"+ba+"-cta to cart-ecommerce2",ka="ecommerce",Na="addToCart",Qa="anchor navi:buy now",La=!0):-1<Oa.indexOf("tg-wtb")?(Ka=Sa+"-"+ba+"-where to buy-buy_cta2",ka="buy cta",Na="where to buy",Qa="anchor navi:where to buy"):-1<Oa.indexOf("tg-add-to-cart")||-1<Oa.indexOf("tg-checkout")?(Ka=Sa+"-"+ba+"-cta to cart-ecommerce1",ka="ecommerce",Na="addToCart",Da=Granite.I18n.get("Add to cart")+
898":"+a.displayName,-1<Oa.indexOf("tg-add-to-cart")?"br"===a.siteCode?(ka="buy cta",Qa=Na="buy now"):Qa="anchor navi:add to cart":-1<Oa.indexOf("tg-checkout")&&(Qa="anchor navi:checkout",-1<Oa.indexOf("tg-between")&&(Qa="anchor navi:lease")),La=!0):-1<Oa.indexOf("tg-pre-order")?(Ka=Sa+"-"+ba+"-cta to cart-ecommerce1",ka="ecommerce",Na="addToCart",Qa="anchor navi:pre-order",La=!0):-1<Oa.indexOf("tg-out-stock")?(Ka=Sa+"-"+ba+"-notify me-buy_cta2",ka="buy cta",Na="stock alert",Qa="anchor navi:notify me",
899q.attr("data-antr",Sa+"-"+ba+"-cta-stock alert popup")):-1<Oa.indexOf("tg-subscription")?(Qa=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",Ka=Sa+"-"+ba+"-cta-subscription",ka="buy cta",Na="buy with subscription:carrier:"+Qa,Qa="buy with subscription:carrier:"+Qa):-1<Oa.indexOf("tg-buy-now")?(Ka=Sa+"-"+ba+"-cta to cart-ecommerce1",ka="ecommerce",Na="addToCart",Qa=
900"anchor navi:buy now"):-1<Oa.indexOf("tg-learn-more")&&(Ka=Sa+"-"+ba+"-cta-learn more",ka="product click",Na="pd buying tool",Qa="learn more click")):-1<Oa.indexOf("configuratorUse-y")?""!==a.ctaEngText&&null!==a.ctaEngText&&(Ka=Sa+"-"+ba+"-cta-buy page",ka="buy cta",Qa=Na=a.ctaEngText):-1<Oa.indexOf("tg-continue")?(Ka=Sa+"-"+ba+"-cta-cart",ka="ecommerce",Na="addToCart",Qa="secondary navi:add to cart",La=!0):-1<Oa.indexOf("tg-wtb")?(Ka=Sa+"-"+ba+"-where to buy-buy_cta2",ka="buy cta",Na="where to buy",
901Qa="anchor navi:where to buy"):-1<Oa.indexOf("tg-add-to-cart")||-1<Oa.indexOf("tg-checkout")?(Ka=Sa+"-"+ba+"-cta-cart page",ka="ecommerce",Na="addToCart",Da=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Oa.indexOf("tg-add-to-cart")?("br"===a.siteCode?(ka="buy cta",Qa=Na="buy now"):Qa="secondary navi:add to cart",La="",$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(La=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")),La=La.substring(0,
902La.indexOf("?",0)),q.attr("data-imageurl",La)):-1<Oa.indexOf("tg-checkout")&&(Qa="secondary navi:checkout",-1<Oa.indexOf("tg-between")&&(Qa="secondary navi:lease")),La=!0):-1<Oa.indexOf("tg-pre-order")?(Ka=Sa+"-"+ba+"-cta-cart page",ka="ecommerce",Na="addToCart",Qa="secondary navi:pre order",La=!0):-1<Oa.indexOf("tg-out-stock")?(Ka=Sa+"-"+ba+"-notify me-buy_cta2",ka="buy cta",Na="stock alert",Qa="anchor navi:notify me",q.attr("data-antr",Sa+"-"+ba+"-cta-stock alert popup")):-1<Oa.indexOf("tg-subscription")?
903(Qa=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",Ka=Sa+"-"+ba+"-cta-subscription",ka="buy cta",Na="buy with subscription:carrier:"+Qa,Qa="buy with subscription:carrier:"+Qa):-1<Oa.indexOf("tg-buy-now")?(Ka=Sa+"-"+ba+"-cta-buy page",ka="buy cta",Qa=Na="buy now"):-1<Oa.indexOf("tg-learn-more")&&(Ka=Sa+"-"+ba+"-cta-learn more",ka="product click",Na="pd buying tool",
904Qa="learn more click");q.attr("an-tr",Ka).attr("an-ca",ka).attr("an-ac",Na).attr("an-la",Qa);Ka={anTr:Ka,anCa:ka,anAc:Na,anLa:Qa};"Y"===$("#thirdPartyPrdYN").val()&&(digitalData.product.iot_sid&&q.attr("data-iot-sid",digitalData.product.iot_sid),digitalData.product.iot_shgroup&&q.attr("data-iot-shgroup",digitalData.product.iot_shgroup),digitalData.product.iot_brandname&&q.attr("data-iot-brandname",digitalData.product.iot_brandname));Da&&q.attr("aria-label",Da);za&&(q.attr("data-discountprice",za),
905digitalData.product.model_price=za);La&&(J&&q.attr("data-modelcode",J),qa&&q.attr("data-modeldisplay",qa),ha&&q.attr("data-modelname",ha),ia&&q.attr("data-modelrevenue",ia),ia&&(q.attr("data-modelprice",ia),digitalData.product.list_price=ia),Ja&&q.attr("data-pvitype",Ja),Fa&&q.attr("data-pvisubtype",Fa),Ba&&q.attr("data-pimsubtype",Ba),Ha&&q.attr("data-modelqty",Ha),Va&&(q.attr("data-imageurl",Va),f.attr("data-imageurl",Va)));a.drawObj.price.anchorNaviAttr=$.extend(a.drawObj.price.anchorNaviAttr,
906Ka)}if(f&&0<f.length)for(q="header(pim)_price bar",(Va="Y"===$("#typeux2025").val()?!0:!1)&&(q="hdd02_summary, get stock alert pop_up"),Da=0;Da<f.length;Da++){Ka=$(f.get(Da));Oa=Ka.attr("class")?Ka.attr("class"):"";var Ra=La=Na=ka="";Sa="";Qa=!1;Va?-1<Oa.indexOf("tg-continue")?(ka=q+"-"+ba+"-cta to cart-ecommerce2",Na="ecommerce",La="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Oa.indexOf("tg-wtb")?(ka=q+"-"+ba+"-where to buy-buy_cta3",
906Na="buy cta",La="where to buy",Ra="pd buying tool:where to buy"):
907-1<Oa.indexOf("tg-add-to-cart")||-1<Oa.indexOf("tg-checkout")?(ka=q+"-"+ba+"-cta to cart-ecommerce1",Na="ecommerce",La="addToCart",Sa=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Oa.indexOf("tg-add-to-cart")?"br"===a.siteCode?(Na="buy cta",Ra=La="buy now"):Ra="pd buying tool:add to cart":-1<Oa.indexOf("tg-checkout")&&(Ra="buying tool:checkout",-1<Oa.indexOf("tg-between")&&(Ra="buying tool:lease")),Qa=!0):-1<Oa.indexOf("tg-pre-order")?(ka=q+"-"+ba+"-cta to cart-ecommerce1",Na="ecommerce",La=
908"addToCart",Ra="pd buying tool:pre order",Qa=!0):-1<Oa.indexOf("tg-out-stock")?(ka=q+"-"+ba+"-button-alert",Na="buy cta",La="stock alert",Ra="pd buying tool:stock alert",Ka.attr("data-antr",q+"-"+ba+"-text-alert")):-1<Oa.indexOf("tg-subscription")?(Oa=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",ka=q+"-"+ba+"-button-subscription",Na="buy cta",La="buy with subscription:carrier:"+
909Oa,Ra="pd buying tool:"+Oa):-1<Oa.indexOf("tg-buy-now")?(ka=q+"-"+ba+"-cta to cart-ecommerce1",Na="ecommerce",La="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Oa.indexOf("tg-learn-more")?(ka=q+"-"+ba+"-cta-learn more",Na="product click",La="pd buying tool",Ra="learn more click"):-1<Oa.indexOf("tg-for-business")?(ka=q+"-"+ba+"-cta-forbusiness",Na="buy cta",La="for business",Ra="pd buying tool:for business"):-1<Oa.indexOf("tg-bespoke")&&(ka=q+"-"+ba+"-cta-bespoke",Na="content click",La="feature",
910Ra="pd buying tool:customize yours"):-1<Oa.indexOf("tg-continue")?(ka=q+"-"+ba+"-button-text",Na="ecommerce",La="addToCart",Ra="pd buying tool:add to cart",Qa=!0):-1<Oa.indexOf("tg-wtb")?(ka=q+"-"+ba+"-button-where to buy",Na="buy cta",La="where to buy",Ra="pd buying tool:where to buy"):-1<Oa.indexOf("tg-add-to-cart")||-1<Oa.indexOf("tg-checkout")?(ka=q+"-"+ba+"-button-cart",Na="ecommerce",La="addToCart",Sa=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Oa.indexOf("tg-add-to-cart")?"br"===a.siteCode?
911(Na="buy cta",Ra=La="buy now"):Ra="pd buying tool:add to cart":-1<Oa.indexOf("tg-checkout")&&(Ra="buying tool:checkout",-1<Oa.indexOf("tg-between")&&(Ra="buying tool:lease")),Qa=!0):-1<Oa.indexOf("tg-pre-order")?(ka=q+"-"+ba+"-buy-cart",Na="ecommerce",La="addToCart",Ra="pd buying tool:pre order",Qa=!0):-1<Oa.indexOf("tg-out-stock")?(ka=q+"-"+ba+"-button-alert",Na="buy cta",La="stock alert",Ra="pd buying tool:stock alert",Ka.attr("data-antr",q+"-"+ba+"-text-alert")):-1<Oa.indexOf("tg-subscription")?
912(Oa=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",ka=q+"-"+ba+"-button-subscription",Na="buy cta",La="buy with subscription:carrier:"+Oa,Ra="pd buying tool:"+Oa):-1<Oa.indexOf("tg-buy-now")?(ka=q+"-"+ba+"-buy-cart",Na="ecommerce",La="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Oa.indexOf("tg-learn-more")?(ka=q+"-"+ba+"-cta-learn more",Na="product click",La=
913"pd buying tool",Ra="learn more click"):-1<Oa.indexOf("tg-for-business")?(ka=q+"-"+ba+"-cta-forbusiness",Na="buy cta",La="for business",Ra="pd buying tool:for business"):-1<Oa.indexOf("tg-bespoke")&&(ka=q+"-"+ba+"-cta-bespoke",Na="content click",La="feature",Ra="pd buying tool:customize yours");Ka.attr("an-tr",ka).attr("an-ca",Na).attr("an-ac",La).attr("an-la",Ra);Sa&&Ka.attr("aria-label",Sa);za&&Ka.attr("data-discountprice",za);Qa&&(J&&Ka.attr("data-modelcode",J),qa&&Ka.attr("data-modeldisplay",
914qa),ha&&Ka.attr("data-modelname",ha),ia&&Ka.attr("data-modelrevenue",ia),ia&&Ka.attr("data-modelprice",ia),Ja&&Ka.attr("data-pvitype",Ja),Fa&&Ka.attr("data-pvisubtype",Fa),Ba&&Ka.attr("data-pimsubtype",Ba),Ha&&Ka.attr("data-modelqty",Ha));this.thirdPartyTagging(a,c,Ka)}ta.isEnabled()&&(ta.$ui.find(".pd-buying-price .pd-buying-price__badge.mobile").hide(),1<ta.$ui.find(".pd-buying-price__badge.mobile").length&&ta.$ui.find(".pd-buying-price__badge.mobile").eq(1).remove(),m&&ta.$mo&&0<ta.$mo.length&&
915ta.$mo.priceSection&&0<ta.$mo.priceSection.length&&ta.resetMobilePriceSection())};pa.prototype.thirdPartyTagging=function(a,c,m){a=$("#thirdPartyPrdYN").val();var f=digitalData.product.iot_sid,q=digitalData.product.iot_shgroup,ba=digitalData.product.iot_brandname;"Y"===a&&(a=[],m?a.push(m):(a.push(c.buyingToolInfoRating.find("a")),a.push($("#personalizeMyTv a")),"Y"===$("#typeux2025").val()?a.push(c.buyingToolOptOfferText.find('a[data-target-popup!\x3d"eipPopup"]')):a.push(c.buyingToolOptOffer.find('a[data-target-popup!\x3d"eipPopup"]'))),
916a.forEach(function(J){0<J.length&&(f&&J.attr("data-iot-sid",f),q&&J.attr("data-iot-shgroup",q),ba&&J.attr("data-iot-brandname",ba))}))};pa.prototype.settingBezelOptionDraw=function(a,c){if(a.useBezelOptionDraw&&(a.categoryTypeCode.startsWith("04")||a.categoryTypeCode.startsWith("07"))){var m=a.drawObj,f=a.view;m.bezelOption={hasComponent:0<a.noneTypeList.length||0<a.modernTypeList.length||0<a.beveledTypeList.length||0<a.freestyleList.length,sellingWithBazel:a.sellingWithBazel,noneSellingWithBazel:!a.sellingWithBazel,
917bezelImageClass:a.bezelImageClass,title:null,description:null,noneType:0<a.noneTypeList.length&&0==a.modernTypeList.length&&0==a.beveledTypeList.length,modernType:0<a.modernTypeList.length,beveledType:0<a.beveledTypeList.length,bezel:0<a.noneTypeList.length||0<a.modernTypeList.length||0<a.beveledTypeList.length,freestyle:0<a.freestyleList.length,noneTypeList:a.noneTypeList,modernTypeList:a.modernTypeList,beveledTypeList:a.beveledTypeList,freestyleList:a.freestyleList};f.bezelOptionDraw(m);this.settingBezelInfo(a,
918c)}};pa.prototype.settingTradeInDraw=function(a,c,m,f){var q=c.util,ba=c.tradeInUrl,J=c.siteCode,ha=c.tradeinText,qa=c.drawObj,ia=c.apiFlag,za=c.view,Ja=c.priceCurrency,Fa=c.isGPv2AndHyIntg,Ba=c.isHybrisSplitPD,Ha=c.isHybrisSplitPDTradeIn,Va=c.tradeInType,Na=c.promotionSalesPitch,ka=2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,La=!1,Da="",Ka=!1,Qa=0;a&&(void 0!==a.maxDiscount&&(Qa=a.maxDiscount),!0===a.directOutLink?(La=!0,Ka=!1):Ka=!0);var Oa=
919"",Sa=!1,Ra=!0,Ua="",Y="_self",ja="",ya="javascript:;",Aa={};Aa={};Da={};var Ga={},ua="";Ga="";$("#categorySubTypeCode").val();var Ea="hr"===J||"si"===J;if("in"===J||"fr"===J)Qa=c.tradeinSaveValue;if(f&&(Fa||Ba&&Ha)){Ua=ha;if("pt"===J||"es"===J||"th"===J||"se"===J||"no"===J||"dk"===J||"fi"===J||"sk"===J||"cz"===J)Qa=0;if("th"==J||"at"==J)Ua=Granite.I18n.get("TRADE-IN Description");if(Qa&&0<Qa){var Ia="be"==J||"be_fr"==J||"nl"==J?currencyCommaExcep(Qa,Ja):"jp"==J?currencyComma(parseFloat(Qa),Ja):currencyComma(Qa,
920Ja);ua=Granite.I18n.get("Save up to")+" "+Ia;if("co"===J)ua=Granite.I18n.get("Save up to");else if("hu"===J||"at"===J||"it"===J||"my"===J)ua="";Ga=null;Oa=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Qa,Ja));"co"===J&&xa&&(Da="epp_"+c.categoryTypeCode,Oa=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",null,"01010000"===c.categoryTypeCode||"01020000"===c.categoryTypeCode?Da:"epp"))}else Oa=Granite.I18n.get("TRADE-IN");ba&&(Y="_blank",
921ya=ba,ja=Granite.I18n.get("Learn more"));Da={text:Granite.I18n.get("YES"),eventType:"tradein",layerTarget:"tradeInPopup",subText:ua,isDirectLink:La,isPopup:Ka};Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",subText:Ga,eventType:"tradein"};if(a.withCeTradeUpPopup)Qa=a.maxDiscount||0,La=currencyComma(Qa,Ja),ba="b2c_"+c.ceTradeUpPopup.productCategoryGroup,Ua=c.ceTradeUpPopup.productCategoryMainType,"ph"!==J||"rf"!==Ua&&"wm"!==Ua&&"ac"!==Ua||(ba="b2c_"+Ua),"at"!==J||"rf"!==Ua&&"wm"!==
922Ua&&"vc"!==Ua||(ba="b2c_"+Ua),"bg"===J&&(Ua=a.tradeupCurrency,La=currencyComma(Qa,Ua),Qa="eur"===Ua.toLowerCase()?g(Qa):l(Qa),La=La+" / "+Qa),Oa=Granite.I18n.get('Want up to "{0}" off? Recycle your old device for an instant discount',[La],ba),Ua="",CeTradeUpPopup.config.view.useServiceDescription&&(Ua=Granite.I18n.getVar("Trade-up service description",ba),"th"!==J||"b2c_vd"!==ba&&"b2c_mon"!==ba||(Ua=Granite.I18n.get("Trade-up service description",[La],ba))),Da.subText="",CeTradeUpPopup.config.view.showDiscountAmount.inYesCta&&
923(Da.subText=Granite.I18n.get('(Save up to "{0}")',[La],ba)),Da.text=Granite.I18n.getVar("Yes",ba),Ga.text=Granite.I18n.getVar("No",ba),a.learnMoreOutlink?(ya=a.learnMoreOutlink,Y="_blank"):(ya="javascript:;",Y="_self"),ja=Granite.I18n.get("Learn more");else if(-1<ia.indexOf("GPv2"))if("in"===J&&"CE"!==Va)Oa=Granite.I18n.get("Exchange your device"),Na&&(Ua="Exchange any product and get benefits up to "+currencyComma(Na,Ja)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Na,Ja)),Da={"class":"trade-in-exchange",
924eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,layerTarget:"instantExchangePopupHubble",isDirectLink:La,isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=ya=Y="";else if("in"===J&&"CE"===Va)Oa="Exchange",Ua="",Na&&(Ua="Exchange any product and get benefits up to "+currencyComma(Na,Ja)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Na,Ja)),Da={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,
925layerTarget:"sielTradeInPopup",isDirectLink:La,isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=ya=Y="",Sa=!0,Ra=!1;else if("id"===J)Ua=Granite.I18n.get("Download the Exchange Add application to do an HP test. If you pass the test, the HP IMEI will be recorded in our data and consumers can enjoy a special price exchange."),ja=ya=Y="";else{if("ae"===J||"ae_ar"===J)ya="javascript:;",ja=Granite.I18n.get("Learn more"),Aa.layerTarget="tradeInLearnMorePopup",
926Ua=Granite.I18n.get("Go to samsungtradein.ae, evaluate the old device and receive the Trade in code.")}else if(Ha&&"SplitPD TradeIn Description"!==Granite.I18n.get("SplitPD TradeIn Description")&&(Ua=Granite.I18n.get("SplitPD TradeIn Description")),"ru"===J||"za"===J)ya="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Aa.layerTarget="tradeInLearnMorePopup","za"===J&&(Da.text=Granite.I18n.get("Yes, please"),Ga.text=Granite.I18n.get("No, thanks"));else if("nz"===J)ya="https://www.samsung.com/nz/galaxytradein",
927ja=Granite.I18n.get("Learn more"),Y="_blank",Ua=Granite.I18n.get("Only devices with a quoted trade-in price that is less than the price of the device that you intend to buy are available for instant trade-in");else if("se"===J||"dk"===J||"fi"===J||"no"===J||"ee"===J||"ee"===J||"lv"===J||"lt"===J)ya="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Aa.layerTarget="tradeInLearnMorePopup",Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks");else if("es"===J||"pt"===J)ya=
928"javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Aa.layerTarget="tradeInLearnMorePopup",Da.text=Granite.I18n.get("Yes, please"),Ga.text=Granite.I18n.get("No, thanks"),"04000000"===$("#categoryGroupCode").val()&&("es"===J&&(ja=Granite.I18n.get("Learn more(TV)")),Oa=Granite.I18n.get("TRADE-IN(TV)"),Ua=Granite.I18n.get("SplitPD TradeIn Description(TV)"),Da.text=Granite.I18n.get("YES"),Ga.text=Granite.I18n.get("NO"),"es"===J&&$(".trade-in-learn-more-popup .trade-in-learn-more-popup__title").html(Granite.I18n.get("How trade-in works(TV)")),
929[{title:Granite.I18n.get("Trade-In Learn More popup title_1(TV)"),desc:Granite.I18n.get("Trade-In Learn More popup desc_1(TV)")},{title:Granite.I18n.get("Trade-In Learn More popup title_2(TV)"),desc:Granite.I18n.get("Trade-In Learn More popup desc_2(TV)")},{title:Granite.I18n.get("Trade-In Learn More popup title_3(TV)"),desc:Granite.I18n.get("Trade-In Learn More popup desc_3(TV)")},{title:"Trade-In Learn More popup title_4(TV)"===Granite.I18n.get("Trade-In Learn More popup title_4(TV)")?"":Granite.I18n.get("Trade-In Learn More popup title_4(TV)"),
930desc:"Trade-In Learn More popup desc_4(TV)"===Granite.I18n.get("Trade-In Learn More popup desc_4(TV)")?"":Granite.I18n.get("Trade-In Learn More popup desc_4(TV)")}
930].forEach(function(wa,Ca){wa.title&&wa.desc&&($(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-title").eq(Ca).html(wa.title),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-desc").eq(Ca).html(wa.desc))}),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__disclaimer").html(Granite.I18n.get("Trade-In disclaimer(TV)")));
931else if("sg"===J)ya="https://www.samsung.com/sg/shop-faq/trade-in/",ja=Granite.I18n.get("Learn more"),Y="_blank",Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in."),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks");else if("it"===J)ya="https://www.samsung.com/it/offer/mobile-trade-in/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("ca"===J||"ca_fr"===J)ya="https://www.samsung.com/"+J+"/trade-in-program/",
932ja=Granite.I18n.get("Learn more"),Y="_blank";else if("au"===J)Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy."),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),ya="https://www.samsung.com/au/tradeup/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("my"===J)ya=xa?"/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-trade-in/":"https://www.samsung.com/my/trade-in/",
933Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in."),ja=Granite.I18n.get("Learn more"),Y="_blank";else if("ae"===J||"ae_ar"===J)Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy."),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Da.subText="",c.categoryTypeCode.startsWith("01")&&(Oa=Granite.I18n.get("Trade-in up to 3 old devices and get cashback"),
934c.sgeSiteInstantChk&&(Oa=Granite.I18n.get("Samsung Trade-in Title"),Ua=Granite.I18n.get("Samsung Trade-in subTitle"))),ja=Granite.I18n.get("Learn more"),Y="_blank",a="",["04010000","04050000","04020000","05010000","07010000"].includes(c.categoryTypeCode)?(a="07010000"===c.categoryTypeCode?"monitor-trade-in/":"tv-trade-in/",Oa=Granite.I18n.get("Trade-in your old device and get guaranteed cashback")):a="mobile-trade-in/","ae"===J?ya="https://www.samsung.com/ae/offer/"+a:"ae_ar"===J&&(ya="https://www.samsung.com/ae_ar/offer/"+
935a),La&&(Da="https://samsungtradein.ae/",Da={"class":"noname",eventType:"directLink",text:Granite.I18n.get("Yes please"),subText:ua,layerTarget:"none",isDirectLink:La,href:Da,isPopup:!1},Ga={text:Granite.I18n.get("No thanks"),layerTarget:"none",eventType:"tradein"},ja=ya=Y="");else if("sa"===J||"sa_en"===J)c.categoryTypeCode.startsWith("04")&&(Oa=Granite.I18n.get("Want up to {0} off? Try trading in your old device!",currencyComma(Qa,Ja)));else if("ch"===J||"ch_fr"===J)ya="javascript:;",ja=Granite.I18n.get("Learn more"),
936Y="_self",Aa.layerTarget="tradeInLearnMorePopup",Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");else if("hu"===J)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");else if("vn"===J)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),
937ya="https://www.samsung.com/vn/offer/len-doi-sieu-pham/",ja=Granite.I18n.get("Learn more"),Y="_blank",Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");else if("nl"===J||"be"===J||"be_fr"===J)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in.");else if("hk"===J||
938"hk_en"===J)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Oa=Granite.I18n.get("Samsung Trade-in"),ya="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Aa.layerTarget="tradeInLearnMorePopup";else if("at"===J)"04000000"===$("#categoryGroupCode").val()?(Oa=Granite.I18n.getVar("Trade-Up","ux2"),ya="https://www.samsung.com/at/tvs/trade-up/"):"01000000"===$("#categoryGroupCode").val()?(ya="javascript:;",Y="_self",Aa.layerTarget="tradeInLearnMorePopup"):"08000000"===
939$("#categoryGroupCode").val()&&(Oa=Granite.I18n.getVar("Trade-Up","ux2"),ya="https://www.samsung.com/at/offer/trade-up-bonus/"),Ua=Granite.I18n.get("TRADE-IN Description");else if("fr"===J)Ua=xa?"B\u00e9n\u00e9ficiez d'une remise imm\u00e9diate pour la reprise d'un smartphone ou d'une tablette":"B\u00e9n\u00e9ficiez d\u2019une remise imm\u00e9diate pour la reprise d\u2019anciens appareils";else if("uk"===J&&"CE"===Va){Da.layerTarget="sielTradeInPopup";ya="https://www.samsung.com/uk/tvs/trade-up/";
940if(ka||"08030000"===c.categoryTypeCode||"08010000"===c.categoryTypeCode||"08070000"===c.categoryTypeCode||"07010000"===c.categoryTypeCode)ya="https://www.samsung.com/uk/tv-and-home-appliances-trade-up/";c.ceHeadlineText&&(Oa=c.ceHeadlineText,Da.subText=c.ceSubText)}else"cl"===J?(Oa=Granite.I18n.get("TRADE-IN"),Da.text=Granite.I18n.get("Yes"),Ua=Granite.I18n.get("Trade in actualmente es solo para Regi\u00f3n Metropolitana.")):"pe"===J?(ya="https://www.samsung.com/pe/plan-canje-galaxy/",ja=Granite.I18n.get("Learn more"),
941Y="_blank"):"de"===J?(Oa=Granite.I18n.get("Trade-In"),Ua=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Qa,Ja))):"pl"===J?ya="https://www.samsung.com/pl/trade-in/":Ea?(Oa=Granite.I18n.get("TRADE-IN (mx)"),Ua=Granite.I18n.get("TRADE-IN description (mx)",currencyComma(Qa,Ja)),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),ua=Granite.I18n.get("Save up to")+" "+Ia):"ro"===J?(Oa=Granite.I18n.get("TRADE-IN"),Ua=Granite.I18n.get("TRADE-IN description"),
942Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),ua=Granite.I18n.get("Save up to (Trade-in)")+" "+Ia,ja=Granite.I18n.get("Learn More (Trade-in)"),ya="https://www.samsung.com/ro/trade-in/"):"bg"===J?(ua=Granite.I18n.get("Save up to")+" "+Ia,ja=Granite.I18n.get("Learn More"),ya="https://www.samsung.com/bg/trade-in/"):"jp"===J?(Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("TRADE-IN description"),
943ja=Granite.I18n.get("Learn More (Trade-in)"),ya="https://www.samsung.com/jp/trade-in/",Y="_blank"):"cn"===J||"tr"===J?(ya="javascript:;",Da.text=Granite.I18n.get("Yes Please"),Ga.text=Granite.I18n.get("No Thanks"),ja=Granite.I18n.get("Learn more"),Y="_self",Aa.layerTarget="tradeInLearnMorePopup",Oa=Granite.I18n.get("Samsung Trade-in"),Ua=Granite.I18n.get("Get more discount on your new Galxy when you trade-in.")):"sk"===J||"cz"===J?(Oa=Granite.I18n.get("Return your old device to us and save!"),Da.text=
944Granite.I18n.get("Yes Please"),Ga.text=Granite.I18n.get("No Thanks"),ya="https://www.samsung.com/"+J+"/trade-in/"):"in"===J&&"CE"!==Va?(Oa=Granite.I18n.get("Exchange your device"),Na&&(Ua="Exchange any product and get benefits up to "+currencyComma(Na,Ja)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Na,Ja)),Da={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,layerTarget:"instantExchangePopupHubble",isDirectLink:La,isPopup:!0},Ga={text:Granite.I18n.get("NO"),
945layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=ya=Y=""):"in"===J&&"CE"===Va&&(Oa="Exchange",Ua="",Na&&(Ua="Exchange any product and get benefits up to "+currencyComma(Na,Ja)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Na,Ja)),Da={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,layerTarget:"sielTradeInPopup",isDirectLink:La,isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=ya=Y="",Sa=
946!0,Ra=!1);Aa=q.getAttrCta(ja,ya,Y,"",Aa,"");qa.tradeIn={hasComponent:f,hasCeTradein:Sa,hasExchange:Ra,title:Oa,learnMoreCta:Aa,description:Ua,yesAttr:Da,noAttr:Ga};c.ceTradeUpPopup.isEnabled&&"undefined"!==typeof CeTradeUpPopup&&!CeTradeUpPopup.config.view.useLearnMoreCta&&(Aa.isOutLink=null,Aa.isNotOutLink=null);f&&qa.priceAnchor.priceWrapper.info.useTooltip&&(qa.tradeIn.hasTooltipClass=" pd-buying-price__tooltip");za.tradeInDraw(qa);f=window.location.pathname.replace("/content/samsung","").replace(".html",
947"/")+"--service--gpv";sessionStorage.getItem(f)&&(f=JSON.parse(sessionStorage.getItem(f)),f=f.tradein.list?f.tradein.list[0]:f.tradein,qa=f.tradeinInfo,za=qa.device_info.brand,"jp"===J&&(za=qa.device_info.category),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount({provider:f.provider,displayBrandName:za,displayModelName:f.model,tradeinId:f.id,serviceType:"trade-in",serviceCode:f.id,imeiKey:f.imeiKey,price:f.price,discount:{gratification:"",price:f.displayPrice,total:f.displayPrice+
948f.cashbackPrice},value:{gratification:"",price:f.discountPrice},tradeInType:f.tradeInType,promotion:f.promotion,tradeinDiscountYn:qa.delayed_gratification,open_promo_tax:"",additionalDiscountFlag:f.additionalDiscountFlag,tradeInSpecialPrice
948:f.specialPrice,commonTradein:c.commonTradein,tradeinInfo:qa},"tradein"));q.totalAfterFunction(c,m)}};pa.prototype.settingTradeInErrMsgDraw=function(a,c,m){if(a.compareMaxTradeInWithCart){c=a.drawObj;var f=a.view;a=!!a.disableTradeIn;var q="";a&&(q="disabled");
949c.tradeInErrMsg={hasComponent:m&&a,disableTradeIn:a,disableText:q};f.tradeInErrMsgDraw(c)}};pa.prototype.gpHybrisGlobalEndPoint=function(a,c){F(a,c);this.settingCtaTagging(a,c);this.specialTagging(a,c);if(0<$(".pd-select-option__color-name").length){var m=$(".pd-select-option__list--color-chip .option-input.checked").data("colorname");null!=m&&""!=m&&"undefined"!=typeof m&&(m=m.replace(/&/g,", "),$("#multiColorText").text(m))}window.onload=function(){-1<window.location.href.indexOf("#trade-in")&&
950(a.drawObj.tradeIn.hasComponent&&a.ceTradeUpPopup.isEnabled&&!a.categoryTypeCode.startsWith("01")||a.drawObj.tradeIn.hasComponent&&a.categoryTypeCode.startsWith("01"))&&$("#pd-trade-in-0").click();a.isSENA&&("OUTOFSTOCK"==a.apiChangeStockStatus||"INSTOCK"!=a.apiChangeStockStatus&&"LOWSTOCK"!=a.apiChangeStockStatus&&"PREORDER"!=a.apiChangeStockStatus&&"BACKORDERED"!=a.apiChangeStockStatus||$(".cost-box__description.howToReceiveTheProduct").show());var f;a.isSENA&&(null==a?0:null==(f=a.proudctPriceInfo)?
9510:f.promotionPriceValidTo)&&$(".cost-box__description.promotionPriceValidTo").show();a.util.checkAddToCart(a,c);0<document.querySelectorAll(".pdd01-anchor-nav-v2__combo-package-wrap").length&&window.sg.common.icon.redrawSvgs(document.querySelector(".pdd01-anchor-nav-v2__combo-package-wrap"));0<document.querySelectorAll(".combo-package").length&&window.sg.common.icon.redrawSvgs(document.querySelector(".combo-package"));window.sg.components.pdHeaderNavigationV2.reInit()}};pa.prototype.initGlobalVal=
952function(a,c){c=a.drawObj;a.childCheckList=[];a.samsungCareList=[];a.samsungCareBadgeList=[];a.addOnInfoTemp=[];a.addOnInfo=[];a.bogoModelList=[];a.bogoSearchList=[];a.setComboPopupData=[];a.globalComboData=[];a.reCallSyndi=[];a.totalSkuList={};a.eupData={};a.addOnApiList={};a.addonDate="";a.pdUpgrade="";c.offer.offerList=[];c.offer.combo=[];c.offer.gift=[];c.offer.promotionMessage=[];c.offer.promotionFinance=[];c.offer.promotionSmartclub=[];c.offer.childList=[];c.usEppData.selectList=[];c.tradeInResult.list=
953[];a.comboFlag=!1;a.tradeInFlag=!1;a.upgradeEligible=!1;a.upgradeFlag=!1;a.bogoFlag=!1;a.financingEligible=!1;a.promotionFinancingFlag=!1;a.emcPromotionIcon=!1;a.addonsFlag=!1;a.samsungCareFlag=!1;a.warrantyFlag=!1;a.checkingComboSearchFlag=!1;a.checkingBogoSearchFlag=!1;a.hasAddonApiData=!1};pa.prototype.setPriceProudctPriceInfo=function(a,c,m){c=a.isGpv2;var f=m.price,q=m.priceDisplay,ba=m.promotionPrice,J=m.promotionPriceDisplay,ha=m.leasingInfo,qa=m.saveText;m=m.tradeInPriceText;var ia=a.priceCurrency,
954za=a.siteCode;f&&(a.proudctPriceInfo.orignalPrice=f);q?a.proudctPriceInfo.orignalPriceFormatted=q:f&&(a.proudctPriceInfo.orignalPriceFormatted=currencyComma(f,ia));a.proudctPriceInfo.salePrice=ba?ba:f;a.proudctPriceInfo.salePriceFormatted=J?J:ba?currencyComma(ba,ia):a.proudctPriceInfo.orignalPriceFormatted;c&&ha&&ha.monthlyRate&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=ha.monthlyRate,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=ha.tenureVal);!c&&monthlyPriceInfo&&monthlyPriceInfo.leasingMonthly&&
955(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=monthlyPriceInfo.leasingMonthly,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=monthlyPriceInfo.leasingMonths);qa&&(a.proudctPriceInfo.rowCodeformattedPriceSave=qa);m&&(a.proudctPriceInfo.salePriceFormatted=m);if("nl"===za||"be"===za||"be_fr"===za)c=a.proudctPriceInfo.listPriceFormatted,f=a.proudctPriceInfo.orignalPriceFormatted,q=a.proudctPriceInfo.salePriceFormatted,ba=a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,c&&(a.proudctPriceInfo.listPriceFormatted=
956deleteCurrency(c,a.priceCurrency).trim()),f&&(a.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(f,a.priceCurrency).trim()),q&&(a.proudctPriceInfo.salePriceFormatted=deleteCurrency(q,a.priceCurrency).trim()),ba&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=deleteCurrency(ba,a.priceCurrency).trim())};pa.prototype.loadComponent=function(a){var c=location.pathname;-1!=c.indexOf(".html")?c=c.replace(".html",""):"/"==c[c.length-1]&&(c=c.slice(0,-1));xa&&(c=window.sg.components.dynamic.detailSharedObj.detailNodePath.replace(".dynamic",
957""));var m=c+".async."+a+"/";0<location.pathname.indexOf(".html")&&(m=c+".async."+a+".html");0>=$("#hubble-"+a+"-layer").length&&$.ajax({type:"GET",url:m,dataType:"html",async:!1,success:function(f){if(-1<f.indexOf("\x3clink")&&-1<f.indexOf('"text/css"\x3e')){var q=f.substring(f.indexOf("\x3clink"),f.indexOf('"text/css"\x3e')+12);f=f.replace(q,"");$("#wrap").append(q)}for(q=Date.now()+100;Date.now()<q;);$("#wrap").append(f)},error:function(f){},complete:function(){}});"commontradein"==a&&window.sg.common.textFieldv2.initAll()};
958pa.prototype.isCommonTradeinCheck=function(){var a=window.sg.components.dynamic?window.sg.components.dynamic.detailSharedObj:null,c=$("#categoryGroupCode").val(),m=$("#categoryTypeCode").val(),f=$("#categorySubTypeCode").val(),q=!1;if("01000000"==c)q=!0;else if("03010100"==f&&("fr"===siteCode||"it"===siteCode))q=!0;else if("03010000"==m&&-1!==$.inArray(siteCode,"se no dk fi ee lt lv de hk hk_en es".split(" ")))q=!0;else if(-1!==$.inArray(siteCode,["ae","ae_ar"]))-1!==$.inArray(m,["04010000","04050000",
959"04020000","05010000","07010000"])&&(q=!0);else if(-1!==$.inArray(siteCode,["sa","sa_en"]))m.startsWith("04")&&(q=!0);else if("vn"==siteCode)m.startsWith("0805")||(q=!0);else if(-1!==$.inArray(siteCode,["be","be_fr","nl"]))a&&(a.ceTradeUpPopup&&a.ceTradeUpPopup.isEnabled||(q=!0));else if("cn"==$("#siteCode").val()||"tr"==$("#siteCode").val()||"hr"==$("#siteCode").val()||"si"==$("#siteCode").val())q=!0;a=$("#tempTitle").val();c=!1;"Y"!=$("#isCommonTradein").val()||!q||"page-buying-pd"!=a&&"page-standard-pd"!=
960a||(c=!0);return c};pa.prototype.validateQuantity=function(a,c,m,f){f=void 0===f?!1:f;var q=m.buyingToolOptSMBQuantity.find(".pd-select-option__error");
960if(0!=q.length){var ba=1,J=999;"true"==window.sg.epp.common.offlineFlag&&(ba=1,J=99);c.proudctPriceInfo.smbMinQty=ba;c.proudctPriceInfo.smbMaxQty=J;q.hide();if(a){a>c.proudctPriceInfo.netavailable&&(q.text(Granite.I18n.get("There is only {0} Stock available. (Final Stock available at check out)",[c.proudctPriceInfo.netavailable])),q.show(),a=c.proudctPriceInfo.netavailable,
961m.buyingToolOptSMBQuantity.find("#counterText").val(a));if(a<c.proudctPriceInfo.smbMinQty||a>c.proudctPriceInfo.smbMaxQty)f||(q.text(Granite.I18n.get("Please input range between {0} to {1}",[c.proudctPriceInfo.smbMinQty,c.proudctPriceInfo.smbMaxQty])),q.show()),a=a<c.proudctPriceInfo.smbMinQty?c.proudctPriceInfo.smbMinQty:c.proudctPriceInfo.smbMaxQty,m.buyingToolOptSMBQuantity.find("#counterText").val(a);c.proudctPriceInfo.productCartCount=parseInt(a);c.util.settingPriceDraw(c,m)}}};pa.prototype.tradeInResultReset=
962function(a,c){var m=a.util,f=a.view,q=a.drawObj,ba=m.hasForever(a,c),J=m.hasUpgradeResult(a,c);null!==q.deliveryResult.priorityText&&!0===q.tradeInResult.isUpfront&&$(c.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(a.isMultiTradeIn&&q.tradeInResult.list&&0<q.tradeInResult.list.length){for(var ha=q.tradeInResult.list.length;0<ha;ha--)q.tradeInResult.list.splice(a.checkedIndex,1);q.tradeInResult.list=[];q.tradeInResult.dataPrice=0;q.tradeInResult.priceOverFlag=q.tradeInResult.dataPrice>
963a.proudctPriceInfo.salePrice?!0:!1}if(!a.isMultiTradeIn||q.tradeInResult&&q.tradeInResult.list&&0==q.tradeInResult.list.length)q.tradeInResult={hasComponent:!1,description:"",dataPrice:"",dataCashBack:"",dataCash:"",price:"",disclaimer:""};a.exchangeApiData={exchangeFlag:!1};f.tradeInResultDraw(q);J&&f.upgradeResultDraw(q);ba&&m.foreverDraw(a,c);m.totalAfterFunction(a,c);a.isMultiTradeIn?m.hasTradeInResult(a,c)||delete a.globalServiceInfo.tradein:a.globalServiceInfo.tradein&&delete a.globalServiceInfo.tradein;
964c="04"===$("#categoryGroupCode").val().substring(0,2);m="08"===$("#categoryGroupCode").val().substring(0,2);-1!=$.inArray(a.siteCode,a.useSummaryArea)&&(c||m)&&(1==$(".summary__select-option-sub-wrap:visible").length&&$(".summary__product-price").hide(),$(".summary__select-option-sub-wrap.tradein-wrap").html(""),$(".summary__select-option-sub-wrap.tradein-wrap").hide())};pa.prototype.settingRewardsDraw=function(a){var c=a.view,m=a.drawObj,f=a.rewards.context;m.rewards=void 0;f.available&&bc_rewards&&
965bc_rewards.calculate(a).then(function(q){q&&(m.rewards=bc_rewards.convertToDisplay(a,q))}).then(function(){return!!m.rewards&&c.rewardsDraw(a,m)})};la.BuyingToolOpUtile=pa})();
966(function(){function l(w,e,p){"Y"===$("#typeux2025").val()?(p=p.buyingToolOptOfferText.empty(),w.invokeTemplate("offerText",e,p.get(0))):(p=p.buyingToolOptOffer.empty(),w.invokeTemplate("offer",e,p.get(0)),e.offer.isViewMore&&p.find("#sgOfferListPanel").children("li[data-view-more-item\x3dtrue]").each(function(k,A){2<k&&$(A).addClass("pd-select-option__view-more--hidden")}))}function g(w,e){if(e&&0<e.length)for(var p in e){var k=e[p];$(w).find(k.target).html(k.text)}}function H(w,e){w=w.offer.childList;
967for(var p in w)u(w[p],e)}function u(w,e){w=[w.promotionMessage,w.promotionFinance,w.promotionSmartclub];for(var p in w){var k=w[p],A;for(A in k){var ca=k[A].item;if(ca&&(ca=ca.rowText))for(var K in ca){var D=ca[K],h="Y"===$("#typeux2025").val()?!0:!1,C=e.buyingToolOptOffer.find(D.target);h&&(C=e.buyingToolOptOfferText.find(D.target));C.html(D.text)}}}}function n(w){var e=w.buyingToolPriceBar.get(0),p=w.buyingToolOptOffer.get(0);"Y"===$("#typeux2025").val()&&(p=w.buyingToolOptOfferText.get(0));var k=
968w.buyingToolOptCare.get(0),A=w.buyingToolOptWarranty.get(0),ca=w.buyingToolOptUpgrade.get(0),K=w.buyingToolOptDelivery.get(0),D=w.buyingToolOptTariff.get(0),h=w.buyingToolOptTariffResult.get(0);w.buyingToolOptBezelOption.get(0);var C=w.buyingToolOptTradeIn.get(0),E=w.buyingToolOptCheckDealerStock.get(0),T=w.buyingToolCalculate.get(0),R=w.buyingToolOptGalaxyForever.get(0),z=w.buyingToolOptAssuredBuyBack.get(0),fa=w.buyingToolOptNewAssuredBuyBack.get(0),va=w.buyingToolOptOfferFinance.get(0),ra=w.buyingToolOptEmbedAddon.get(0);
969w=$(w.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);p.innerHTML="";e.innerHTML="";x.resetPriceSection();C&&(C.innerHTML="");E&&(E.innerHTML="");k&&(k.innerHTML="");A&&(A.innerHTML="");ca&&(ca.innerHTML="");K&&(K.innerHTML="");D&&(D.innerHTML="");h&&(h.innerHTML="");T&&(T.innerHTML="");R&&(R.innerHTML="");z&&(z.innerHTML="");fa&&(fa.innerHTML="");va&&(va.innerHTML="");ra&&(ra.innerHTML="");
969w&&(w.innerHTML="")}function v(){window.sg.components.ProductDetailKvNew.reInit();window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"))}
970function F(w,e){e=!1;w.offer.delightDelivery.hasItem?e=!0:0<w.offer.combo.length?e=!0:w.offer.gift.hasItem?e=!0:w.offer.bogo.hasItem?e=!0:0<w.offer.promotionMessage.length?e=!0:0<w.offer.promotionFinance.length?e=!0:0<w.offer.promotionSmartclub.length?e=!0:0<w.offer.childList.length&&(e=!0);w.offer.hasComponent=e;if(0<w.offer.promotionMessage.length||0<w.offer.promotionFinance.length)w.offer.hasSkuData=!0}function W(w,e){var p={tradeIn:"buyingToolOptTradeIn",tradeInResult:"buyingToolOptTradeInResult",
971checkDealerStock:"buyingToolOptCheckDealerStock",delivery:"buyingToolOptDelivery",deliveryResult:"buyingToolOptDeliveryResult",tariffOption:"buyingToolOptTariff",tariffOptionResult:"buyingToolOptTariffResult",offer:"buyingToolOptOffer",prePurchase:"buyingToolOptPrePurchase",care:"buyingToolOptCare",careResult:"buyingToolOptCareResult",warranty:"buyingToolOptWarranty",warrantyResult:"buyingToolOptWarrantyResult",upgrade:"buyingToolOptUpgrade",upgradeResult:"buyingToolOptUpgradeResult",assuredBuyBack:"buyingToolOptAssuredBuyBack",
972assuredBuyBackResult:"buyingToolOptAssuredBuyBackResult",newAssuredBuyBack:"buyingToolOptNewAssuredBuyBack",newAssuredBuyBackResult:"buyingToolOptNewAssuredBuyBackResult",galaxyForever:"buyingToolOptGalaxyForever",galaxyForeverResult:"buyingToolOptGalaxyForeverResult",embedAddon:"buyingToolOptEmbedAddon",calculator:"buyingToolCalculate",between:"buyingToolOptBetween",offerFinance:"buyingToolOptOfferFinance"},k;for(k in p){var A=e[p[k]].get(0);if(w[k].hasComponent){var ca="Y"===$("#typeux2025").val()?
973!0:!1;ca&&"offer"===k&&(A=e.buyingToolOptOfferText.get(0));$(A).show().addClass("has-component");ca&&"offer"===k&&$(A).find(".pd-select-option__headline-wrap").hide()}else $(A).hide().removeClass("has-component"),"prePurchase"===k&&$(A).remove()}0!==e.buyingToolLinks.length||w.calculator.hasComponent?$(e.buyingToolCalculateDivider.get(0)).show():$(e.buyingToolCalculateDivider.get(0)).hide()}var aa=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),x=aa.ux2.PriceBar,U=window.sg.sdf.comp,
974B=function(w,e){this.sharedObj=e;this.selectorObj=w;this.$ui=w.componentWrapper;this.component=U.dispatch(w.buyingTool)};B.prototype.usEppDraw=function(w){var e=this.$ui.find(".us-epp-discount-keep");this.component.invokeTemplate("usEpp",w,e.empty().get(0));w.usEppData.hasComponent?(e.addClass("has-component"),e.show()):(e.removeClass("has-component"),e.hide());window.sg.components.usEppDiscount.reInit();window.sg.common.icon.update(document.querySelector(".us-epp-discount-keep"))};B.prototype.emiDraw=
975function(w){var e=this.selectorObj.buyingToolCalculate.get(0);e.innerHTML="";this.component.invokeTemplate("calculator",w,e);w.calculator.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide())};B.prototype.productWishListDraw=function(w){var e=this.sharedObj,p=this.selectorObj,k=this.selectorObj.buyingToolInfoWishlist.get(0);k&&(k.innerHTML="",this.component.invokeTemplate("wishlist",w,k));e.util.thirdPartyTagging(e,p,p.buyingToolInfoWishlist.find(".pd-wishlist-cta"));
976window.sg.components.wishlistIcon.reInit();window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"))};B.prototype.shippingCostPopupDraw=function(w){var e=$(".shipping-cost-popup_delivery_services"),p=$(".shipping-cost-popup_delivery_methods");if(null==w?0:w.deliveryServices){e.show();var k=null==w?void 0:w.deliveryServices.map(function(A){return'\n\t\t\t\t  \x3cli class\x3d"shipping-cost-popup__options-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-name"\x3e'+
977A.name+'\x3c/span\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-cost"\x3e'+A.price+"\x3c/span\x3e\n\t\t\t\t  \x3c/li\x3e\n\t\t\t"}).join("");e.find("ul.shipping-cost-popup__options").html(k)}if(null==w?0:w.deliveryModes)p.show(),w=null==w?void 0:w.deliveryModes.map(function(A){return'\n\t\t\t\t  \x3cli class\x3d"shipping-cost-popup__options-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-name"\x3e'+A.name+'\x3c/span\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-cost"\x3e'+
978A.price+"\x3c/span\x3e\n\t\t\t\t  \x3c/li\x3e\n\t\t\t"}).join(""),p.find("ul.shipping-cost-popup__options").html(w)};B.prototype.productPriceTotalDraw=function(w,e){var p=this.sharedObj,k=this.selectorObj,A=k.buyingToolPriceBar.get(0);e?this.$ui.find(".sg-pdh-order-summary").replaceWith(k.buyingToolPriceBar.get(0)):A.innerHTML="";x.drawPriceSection(w);this.component.invokeTemplate("buyingPrice",w,A);"se"===$("#siteCode").val()&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.tradeUpEnabled&&
979!window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(w=$(".hdd02-buying-tool__cost-box .cost-box__price"),e=$(".pd-buying-price__wrap"),window.sg.components.SamsungFlexPopup.priceSummaryPostTradeUp=w.find(".cost-box__price-now").text(),window.sg.components.SamsungFlexPopup.priceSummaryavingsPostTradeUp=0<w.find(".cost-box__price-sub").length?w.find(".cost-box__price-sub").html():"",window.sg.components.SamsungFlexPopup.priceNavigationBarPostTradeUp=e.find(".pd-buying-price__new-price .pd-buying-price__new-price-inner").html(),
980window.sg.components.SamsungFlexPopup.priceNavigationBarSavingsPostTradeUp=e.find(".pd-buying-price__inner .pd-buying-price__box").html());p.util.thirdPartyTagging(p,k,k.buyingToolPriceBar.find("a.cta"));p.util.settingCtaTagging(p,k);p.util.specialTagging(p,k);window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.smg.wtb&&window.smg.wtb.common.reInit();if("fr"===$("#siteCode").val()||"be_fr"===$("#siteCode").val()||"be"===$("#siteCode").val())window.sg.common.image.initAll(),
981window.sg.common.icon.redrawSvgs();setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100)};B.prototype.deliveryResultDraw=function(w){var e=this.selectorObj.buyingToolOptDeliveryResult.get(0);e.innerHTML="";this.component.invokeTemplate("deliveryResult",w,e);w.deliveryResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.deliveryPickupStoreDraw=function(w){var e=this.selectorObj.buyingToolOptDeliveryPickupStore.get(0);
982e.innerHTML="";this.component.invokeTemplate("deliveryPickupStore",w,e);w.deliveryPickupStore.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.betweenDraw=function(w){var e=this.selectorObj,p=e.buyingToolOptBetween.get(0);if(e=$(e.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0))e.innerHTML="";this.component.invokeTemplate("between",w,e);w.between.hasComponent?($(p).addClass("has-component"),$(p).show()):
983($(p).removeClass("has-component"),$(p).hide())};B.prototype.deliveryDraw=function(w){var e=this.selectorObj.buyingToolOptDelivery.get(0);e.innerHTML="";this.component.invokeTemplate("delivery",w,e);w.delivery.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.deliveryMessageDraw=function(w){var e=this.selectorObj.buyingToolOptDeliveryMessage.get(0);e.innerHTML="";this.component.invokeTemplate("deliveryMessage",w,e);w.deliveryMessage.hasComponent?
984($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.shippingOrBackDraw=function(w){var e=this.selectorObj.buyingToolOptShippingOrBack.get(0);e.innerHTML="";this.component.invokeTemplate("shippingOrBack",w,e);w.shippingOrBack.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.assuredBuyBackDraw=function(w){var e=this.selectorObj.buyingToolOptAssuredBuyBack.get(0);e.innerHTML=
985"";this.component.invokeTemplate("assuredBuyBack",w,e);w.assuredBuyBack.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide())};B.prototype.assuredBuyBackResultDraw=function(w){var e=this.selectorObj.buyingToolOptAssuredBuyBackResult.get(0);e.innerHTML="";this.component.invokeTemplate("assuredBuyBackResult",w,e);w.assuredBuyBackResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.newAssuredBuyBackDraw=
986function(w){var e=this.selectorObj,p=e.buyingToolOptNewAssuredBuyBack.get(0);p.innerHTML="";this.component.invokeTemplate("newAssuredBuyBack",w,p);w.newAssuredBuyBack.hasComponent?($(p).addClass("has-component"),$(p).show()):($(p).removeClass("has-component"),$(p).hide());$(e.buyingToolOptNewAssuredBuyBack).find(".pd-select-option__item").each(function(k,A){k=$(A).find('input[name\x3d"pd-galaxy-new-assured"]');"OOS"==k.data("stockstatus")&&k.attr("disabled",!0)})};B.prototype.newAssuredBuyBackResultDraw=
987function(w){var e=this.selectorObj.buyingToolOptNewAssuredBuyBackResult.get(0);e.innerHTML="";this.component.invokeTemplate("newAssuredBuyBackResult",w,e);w.newAssuredBuyBackResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.galaxyForeverDraw=function(w){var e=this.selectorObj.buyingToolOptGalaxyForever.get(0);e.innerHTML="";this.component.invokeTemplate("galaxyForever",w,e);w.galaxyForever.hasComponent?($(e).addClass("has-component"),
988$(e).show()):($(e).removeClass("has-component"),$(e).hide())};B.prototype.galaxyForeverResultDraw=function(w){var e=this.selectorObj.buyingToolOptGalaxyForeverResult.get(0);e.innerHTML="";this.component.invokeTemplate("galaxyForeverResult",w,e);w.galaxyForeverResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.upgradeDraw=function(w){var e=this.selectorObj.buyingToolOptUpgrade.get(0);e&&(e.innerHTML="");this.component.invokeTemplate("upgrade",
989w,e);w.upgrade.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide())};B.prototype.warrantyResultDraw=function(w){var e=this.selectorObj.buyingToolOptWarrantyResult.get(0);e.innerHTML="";this.component.invokeTemplate("warrantyResult",w,e);w.warrantyResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.warrantyVdResultDraw=function(w){var e=this.selectorObj.buyingToolOptWarrantyVdResult.get(0);
990e.innerHTML="";this.component.invokeTemplate("warrantyVdResult",w,e);w.warrantyVdResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.careResultDraw=function(w){var e=this.selectorObj.buyingToolOptCareResult.get(0);e.innerHTML="";this.component.invokeTemplate("careResult",w,e);w.careResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide())};B.prototype.tariffOpionDraw=
991function(w){var e=this.sharedObj,p=this.selectorObj,k=p.buyingToolOptTariff.get(0);k.innerHTML="";this.component.invokeTemplate("tariffOption",w,k);w.tariffOption.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptTariff.find(".option-input")),$(k).addClass("has-component"),$(k).show()):($(k).removeClass("has-component"),$(k).hide())};B.prototype.tariffOpionResultDraw=function(w){var e=this.selectorObj.buyingToolOptTariffResult.get(0);e.innerHTML="";this.component.invokeTemplate("tariffOptionResult",
992w,e);w.tariffOptionResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.bezelOptionDraw=function(w){var e=this.selectorObj.buyingToolOptBezelOption.get(0);e.innerHTML="";this.component.invokeTemplate("bezelOption",w,e);w.bezelOption.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide())};B.prototype.tradeInDraw=function(w){var e=this.selectorObj,p=this.sharedObj,k=e.buyingToolOptTradeIn.get(0);
993k.innerHTML="";this.component.invokeTemplate("tradeIn",w,k);w.tradeIn.hasComponent?(p.util.thirdPartyTagging(p,e,e.buyingToolOptTradeIn.find(".option-input")),$(k).addClass("has-component"),$(k).show()):($(k).removeClass("has-component"),$(k).hide())};B.prototype.tradeInErrMsgDraw=function(w){var e=this.selectorObj,p=e.buyingToolOptTradeInErrMsg.get(0);p.innerHTML="";this.component.invokeTemplate("tradeInErrMsg",w,p);w.tradeInErrMsg.hasComponent?(e.buyingToolOptTradeIn.find(".pd-option-selector").each(function(k,
994A){k=$(A);k.addClass("cta--disabled");k.find(".option-input").prop("disabled",!0)}),$(p).addClass("has-component"),$(p).show(),window.sg.common.icon.update(document.querySelector("#tradeInErrMsg span.option-result__message-inner"))):($(p).removeClass("has-component"),$(p).hide())};B.prototype.tradeInResultDraw=function(w){var e=this.selectorObj,p=e.buyingToolOptTradeInResult.get(0),k=this.sharedObj.siteCode;p.innerHTML="";this.component.invokeTemplate("tradeInResult",w,p);"vn"===k&&$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").hide();
995"vn"!==k||w.tradeInResult.list&&0!=w.tradeInResult.list.length||$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").show();if(w.tradeInResult.hasComponent){$(p).addClass("has-component");$(p).show();p=!1;this.sharedObj.isMultiTradeIn&&(p=w.tradeInResult.list&&w.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||w.tradeInResult.priceOverFlag);if("pl"===k&&isNotEmpty(w.priceAnchor.priceWrapper.info.summaryPrice)&&isNotEmpty(w.tradeInResult.dataPrice)&&
9961>=Number(w.priceAnchor.priceWrapper.info.summaryPrice.split(",")[0])-Number(w.tradeInResult.dataPrice)){e.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0);var A=this.$ui.find("#isCommonTradein").val();"Y"===A&&e.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",!0)}if(this.sharedObj.isMultiTradeIn&&w.tradeInResult.list&&p){if(w.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||
997"vn"===k)e.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0),A=this.$ui.find("#isCommonTradein").val(),"Y"===A&&e.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",!0),("sg"===k||"my"===k)&&(p=e.buyingToolOptTradeInResult.find(".limit-count"))&&0<p.length&&p.is(":visible")&&p.hide();w.tradeInResult.priceOverFlag?("au"===k&&e.buyingToolOptTradeInResult.find(".option-result__multiple-price").text(currencyComma(0,
998this.sharedObj.priceCurrency)),"tr"!==k&&e.buyingToolOptTradeInResult.find(".over-price-alert").show(),"sg"===k||"cl"===k?e.buyingToolOptTradeInResult.find(".desc-target").show():e.buyingToolOptTradeInResult.find(".desc-target").hide(),("sg"===k||"my"===k)&&(p=e.buyingToolOptTradeInResult.find(".limit-count"))&&0<p.length&&p.is(":visible")&&p.hide(),"tr"!==k&&(e.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0),e.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",
999!0))):(e.buyingToolOptTradeInResult.find(".over-price-alert").hide(),e.buyingToolOptTradeInResult.find(".desc-target").show())}else e.buyingToolOptTradeInResult.find(".over-price-alert").hide();if("ae"===k||"ae_ar"===k)"Y"===w.tradeInResult.specialInstantDiscountYn?e.buyingToolOptTradeInResult.find(".desc-type2").show():e.buyingToolOptTradeInResult.find(".desc-type2").hide()}else $(p).removeClass("has-component"),$(p).hide();v()};B.prototype.checkDealerStockDraw=function(w){var e=this.selectorObj,
1000p=e.buyingToolOptCheckDealerStock.get(0);e=$(e.buyingToolOptCheckDealerStock);p.innerHTML="";this.component.invokeTemplate("checkDealerStock",w,p);e.find(".menu__list-wrap.scrollbar").remove();w.checkDealerStock.hasComponent?($(p).addClass("has-component"),$(p).show()):($(p).removeClass("has-component"),$(p).hide());window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);0===e.find(".
1000menu__list-wrap.scrollbar").length&&window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0])};
1001B.prototype.upgradeResultDraw=function(w){var e=this.selectorObj.buyingToolOptUpgradeResult.get(0);e.innerHTML="";this.component.invokeTemplate("upgradeResult",w,e);w.upgradeResult.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).hide(),$(e).removeClass("has-component"));v()};B.prototype.upgradeResultHybrisDraw=function(w){var e=this.selectorObj.buyingToolOptUpgradeResult.get(0);e.innerHTML="";this.component.invokeTemplate("upgradeResultHybris",w,e);w.upgradeResult.hasComponent?$(e).addClass("has-component"):
1002$(e).removeClass("has-component");v()};B.prototype.productCtaDraw=function(w){var e=this.sharedObj,p=this.selectorObj;if(x.isEnabled()){x.drawPriceSection(w);var k=p.buyingToolPriceBar.empty().get(0);this.component.invokeTemplate("buyingPrice",w,k);e.util.thirdPartyTagging(e,p,p.buyingToolPriceBar.find("a.cta"));window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.smg.wtb&&window.smg.wtb.common.reInit();if("fr"===$("#siteCode").val()||"be_fr"===
1003$("#siteCode").val()||"be"===$("#siteCode").val())window.sg.common.image.initAll(),window.sg.common.icon.redrawSvgs();setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100)}};B.prototype.productAddOnCare=function(w){var e=this.sharedObj,p=this.selectorObj,k=p.buyingToolOptCare.get(0);k.innerHTML="";this.component.invokeTemplate("care",w,k);w.care.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptCare.find(".option-input")),$(p.buyingToolOptCare.get(0)).addClass("has-component"),
1004g(p.buyingToolOptCare,w.care.rowText),$(p.buyingToolOptCare.get(0)).show()):$(p.buyingToolOptCare.get(0)).hide();w.careResult.hasComponent?($(p.buyingToolOptCare.get(0)).addClass("has-component"),$(p.buyingToolOptCareResult.get(0)).show()):$(p.buyingToolOptCareResult.get(0)).hide();$(p.buyingToolOptCare).find(".pd-select-option__item").each(function(A,ca){A=$(ca).find('input[name\x3d"pd-samsung-care"]');"OOS"==A.data("stockstatus")&&A.attr("disabled",!0)})};B.prototype.productAddOnWarranty=function(w){var e=
1005this.selectorObj,p=e.buyingToolOptWarranty.get(0);p.innerHTML="";this.component.invokeTemplate("warranty",w,p);w.warranty.hasComponent?$(e.buyingToolOptWarranty.get(0)).show():$(e.buyingToolOptWarranty.get(0)).hide();w.warrantyResult.hasComponent?$(e.buyingToolOptWarrantyResult.get(0)).show():$(e.buyingToolOptWarrantyResult.get(0)).hide()};B.prototype.productAddOnWarrantyVd=function(w){var e=this.sharedObj,p=this.selectorObj,k=p.buyingToolOptWarrantyVd.get(0);k.innerHTML="";this.component.invokeTemplate("warrantyVd",
1006w,k);w.warrantyVd.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptWarrantyVd.find("input")),$(p.buyingToolOptWarrantyVd.get(0)).show()):$(p.buyingToolOptWarrantyVd.get(0)).hide();w.warrantyVdResult.hasComponent?$(p.buyingToolOptWarrantyVdResult.get(0)).show():$(p.buyingToolOptWarrantyVdResult.get(0)).hide()};B.prototype.productOfferDraw=function(w,e){e=this.sharedObj;var p=this.selectorObj;F(w,p);l(this.component,w,p);u(w.offer,p);w.offer.hasComponent&&w.offer.hasPackage&&H(w,p);$("#siteCode").val();
1007"Y"===$("#typeux2025").val()?w.offer.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptOfferText.find('a[data-target-popup!\x3d"eipPopup"]')),$(p.buyingToolOptOfferText.get(0)).addClass("has-component"),$(p.buyingToolOptOfferText.get(0)).show()):$(p.buyingToolOptOfferText.get(0)).hide():w.offer.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptOffer.find('a[data-target-popup!\x3d"eipPopup"]')),$(p.buyingToolOptOffer.get(0)).addClass("has-component"),$(p.buyingToolOptOffer.get(0)).show()):
1008$(p.buyingToolOptOffer.get(0)).hide();window.sg.components.PDbuyingToolNew.reInit();window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.sg.common.lazyLoad.setLazyLoad()};B.prototype.embedAddonDraw=function(w,e){var p=this.selectorObj,k=p.buyingToolOptEmbedAddon.get(0);k.innerHTML="";this.component.invokeTemplate("embedAddon",e,k);e.embedAddon.hasComponent?($(".pd-g-product-detail-header-ux2 .option-embed-addon").replaceWith(k),w.isLeasingPrice&&
1009$(".option-embed-addon").attr("data-leasing-price",w.isLeasingPrice),$(".option-embed-addon .add-on-product").each(function(){$(this).hasClass("add-on-product--out-of-stock")&&$(this).find("input").attr("disabled","disabled")}),w.util.thirdPartyTagging(w,p,p.buyingToolOptEmbedAddon.find(".add-on-product-list-wrap button")),$(p.buyingToolOptEmbedAddon.get(0)).addClass("has-component"),$(p.buyingToolOptEmbedAddon.get(0)).show(),w.isOptClicked&&w.util.clickEventListener(w,p)):($(p.buyingToolOptEmbedAddon.get(0)).removeClass("has-component"),
1010$(p.buyingToolOptEmbedAddon.get(0)).hide())};B.prototype.productDraw=function(w){var e=this.selectorObj,p=this.component;F(w,e);n(e);x.drawPriceSection(w);var k=e.buyingToolPriceBar.get(0);p.invokeTemplate("buyingPrice",w,k);setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100);p.invokeTemplate("delivery",w,e.buyingToolOptDelivery.get(0));p.invokeTemplate("deliveryResult",w,e.buyingToolOptDeliveryResult.get(0));p.invokeTemplate("deliveryPickupStore",w,e.buyingToolOptDeliveryPickupStore.get(0));
1011p.invokeTemplate("tariffOption",w,e.buyingToolOptTariff.get(0));p.invokeTemplate("tariffOptionResult",w,e.buyingToolOptTariffResult.get(0));p.invokeTemplate("prePurchase",w,e.buyingToolOptPrePurchase.get(0));l(p,w,e);p.invokeTemplate("offerFinance",w,e.buyingToolOptOfferFinance.get(0));p.invokeTemplate("care",w,e.buyingToolOptCare.get(0));p.invokeTemplate("careResult",w,e.buyingToolOptCareResult.get(0));p.invokeTemplate("warranty",w,e.buyingToolOptWarranty.get(0));p.invokeTemplate("warrantyResult",
1012w,e.buyingToolOptWarrantyResult.get(0));p.invokeTemplate("bezelOption",w,e.buyingToolOptBezelOption.get(0));p.invokeTemplate("tradeIn",w,e.buyingToolOptTradeIn.get(0));p.invokeTemplate("tradeInResult",w,e.buyingToolOptTradeInResult.get(0));p.invokeTemplate("checkDealerStock",w,e.buyingToolOptCheckDealerStock.get(0));$(e.buyingToolOptCheckDealerStock).find(".menu__list-wrap.scrollbar").remove();p.invokeTemplate("upgrade",w,e.buyingToolOptUpgrade.get(0));p.invokeTemplate("upgradeResult",w,e.buyingToolOptUpgradeResult.get(0));
1013p.invokeTemplate("galaxyForever",w,e.buyingToolOptGalaxyForever.get(0));p.invokeTemplate("galaxyForeverResult",w,e.buyingToolOptGalaxyForeverResult.get(0));p.invokeTemplate("assuredBuyBack",w,e.buyingToolOptAssuredBuyBack.get(0));p.invokeTemplate("assuredBuyBackResult",w,e.buyingToolOptAssuredBuyBackResult.get(0));p.invokeTemplate("newAssuredBuyBack",w,e.buyingToolOptNewAssuredBuyBack.get(0));p.invokeTemplate("newAssuredBuyBackResult",w,e.buyingToolOptNewAssuredBuyBackResult.get(0));p.invokeTemplate("embedAddon",
1014w,e.buyingToolOptEmbedAddon.get(0));p.invokeTemplate("calculator",w,e.buyingToolCalculate.get(0));k=$(e.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);p.invokeTemplate("between",w,k);$(".pd-select-option--check-dealer-stock .menu").length&&window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);$(e.buyingToolOptCare).find(".pd-select-option__item").each(function(A,ca){A=$(ca).find('input[name\x3d"pd-samsung-care"]');"OOS"==A.data("stockstatus")&&
1015A.attr("disabled",!0)});if("fr"===$("#siteCode").val()||"be_fr"===$("#siteCode").val()||"be"===$("#siteCode").val())window.sg.common.image.initAll(),window.sg.common.icon.redrawSvgs();W(w,e);u(w.offer,e);w.offer.hasPackage&&H(w,e);g(e.buyingToolOptCare,w.care.rowText)};
1015B.prototype.anchorDraw=function(w){w&&x.setProductTitle(w)};B.prototype.banerDraw=function(w){if(w){var e=$(".product-offer-banner .product-offer-banner__simple .product-offer-banner__simple-txt-area");e.addClass("is-active");e.attr("data-start-time",
1016w)}};B.prototype.productModel=function(){return{usEppData:{hasComponent:!1,saveText:null,title:null,hasSelectBox:!1,selectList:[{title:null,storeId:null}]},between:{hasComponent:!1,purchase:{text:null},nonPurchase:{text:null,dataLeaseing:null,tenureUnit:null,tenureValue:null,monthlyValue:null,paymentValue:null,paymentModeCode:null}},betweenResult:{hasComponent:!1,description:null,price:null,disclaimer:null},upgrade:{hasComponent:!1,isEmbededType:!1,isNotEmbededType:!0,title:null,description:null,
1017learnMoreCta:{"class":null,title:null,href:null,target:null,text:null,layerTarget:null},yesAttr:{"class":null,text:null,subText:null,layerTarget:null},noAttr:{"class":null,text:null,layerTarget:null,eventType:null},embedData:{listClass:null,infoData:[{iconLink:null,title:null,description:null}],tncData:[{index:0,dataId:null,text:null,isReadOnly:!1}]}},upgradeResult:{hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isGp:!0,isHybris:!1},
1018assuredBuyBack:{hasComponent:!1,title:null,yesAttr:{"class":null,text:null,subText:null,layerTarget:null},noAttr:{"class":null,text:null,layerTarget:null,eventType:null}},assuredBuyBackResult:{hasComponent:!1,dataSku:null,dataPrice:null,dataSalePrice:null,displayModelName:null,dataModelName:null,pviTypeName:null},newAssuredBuyBack:{hasComponent:!1,title:null,description:null,itemSet:[{index:1,title:null,priceDisplay:null,sku:null,productItem:{}}],learnMoreCta:{"class":null,title:null,href:null,target:null,
1019text:null,layerTarget:null},yesAttr:{"class":null,text:null,subText:null,layerTarget:null},noAttr:{"class":null,text:null,layerTarget:null,eventType:null}},newAssuredBuyBackResult:{hasComponent:!1,dataModelCode:null,dataModelName:null,dataPrice:null,dataDisplayPrice:null,dataDisplayName:null},galaxyForever:{hasComponent:!1,title:null,description:null,learnMoreCta:{"class":null,title:null,href:null,target:null,text:null,layerTarget:null},yesAttr:{"class":null,text:null,subText:null,layerTarget:null},
1020noAttr:{"class":null,text:null,layerTarget:null,eventType:null}},galaxyForeverResult:{hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null},bezelOption:{hasComponent:!1,sellingWithBazel:!1,noneSellingWithBazel:!0,noneType:!1,modernType:!1,beveledType:!1,bezel:!1,freestyle:!1,noneTypeList:[{index:0,modelCode:null,modelPatternCode:null,name:null,value:null}],modernTypeList:[{index:0,modelCode:null,modelPatternCode:null,name:null,value:null}],
1021beveledTypeList:[{index:0,modelCode:null,modelPatternCode:null,name:null,value:null}],freestyleList:[{index:0,modelCode:null,modelPatternCode:null,name:null,value:null}]},tradeIn:{hasComponent:!1,title:null,description:null,hasCeTradein:!1,hasExchange:!0,learnMoreCta:{"class":null,title:null,href:null,target:null,text:null,layerTarget:null,isOutLink:null,isNotOutLink:null},yesAttr:{"class":null,text:null,subText:null,eventType:null,layerTarget:null,skuCode:null,href:null,isDirectLink:!1,isPopup:!1},
1022noAttr:{"class":null,text:null,layerTarget:null,eventType:null,modelCode:null,modelName:null}},tradeInResult:{hasComponent:!1,hasCeTradein:!1,textTitleCe:null,textCe:null,tooltip:null,displayModelName:null,isUpfront:null,discountText1:null,discountText2:null,discountText3:null,specialDiscountText:null,description:null,dataPrice:null,dataCashBack:null,dataQuoteId:null,dataId:[],priceOverFlag:!1,list:[{index:0,displayModelName:null,discountPriceText:null,dataPrice:null,dataCashBack:null,dataQuoteId:null,
1023dataId:[],services:null}]},checkDealerStock:{hasComponent:!1},care:{hasComponent:!1,title:null,description:null,learnMoreCta:{"class":null,title:null,href:null,target:null,text:null,layerTarget:null,isOutLink:null,isNotOutLink:null},yesAttr:{"class":null,text:null,subText:null,layerTarget:null},noAttr:{"class":null,text:null,layerTarget:null,eventType:null},itemSet:[{index:1,prePopup:!1,optionName:null,optionSalePrice:null,optionOriPrice:null,optionSavePrice:null,specialText:null,badge:null,paymentCycle:null}],
1024rowText:[{target:null,text:null}]},careResult:{hasComponent:!1,description:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,price:null,disclaimer:null,savedPrice:null},warranty:{hasComponent:!1,title:null,description:null,learnMoreCta:{"class":null,title:null,href:null,target:null,text:null,layerTarget:null},yesAttr:{"class":null,text:null,layerTarget:null},noAttr:{"class":null,text:null,layerTarget:null,eventType:null}},warrantyResult:{hasComponent:!1,displayModelName:null,
1025discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,
1025savedPrice:null},warrantyVd:{hasComponent:!1,title:null,description:null,learnMoreCta:{"class":null,title:null,href:null,target:null,text:null,layerTarget:null,isOutLink:null,isNotOutLink:null},yesAttr:{"class":null,text:null,layerTarget:null},noAttr:{"class":null,text:null,layerTarget:null,eventType:null}},warrantyVdResult:{hasComponent:!1,title:null,price:null,smcCode:null,description:null,
1026priceDisplay:null},emcTask:[{title:null,hasArea:!1,srcPc:null,alt:null,text:null,careId:null}],embedAddon:{hasComponent:!1,title:null,description:null,itemSet:[]},wishList:{stockLevelStatus:null,contentWrapperClass:null,moCode:null,moName:null,price:null,targetId:null,labelText:null,isSelected:null},offerFinance:{hasComponent:!1,title:null,description:null,learnMoreCta:{"class":null,title:null,href:null,target:null,text:null}},prePurchase:{hasComponent:this.sharedObj.prePurchaseFlag,title:null,description:null,
1027learnMoreCta:{"class":null,title:null,href:null,target:null,text:null}},offer:{hasComponent:!1,hasPackage:"Y"==$("#pdPackageYn").val(),hasSkuData:!1,headline:null,delightDelivery:{title:null,hasItem:!1,item:{headline:null,contentWrapperClass:null,description:{hasDescription:!1,main:[{text:null}]},learnMoreCta:{"class":null,title:null,href:null,target:null,text:null},imgAttr:{classWapper:null,srcPc:null,srcMo:null,lazySrcPc:null,lazySrcMo:null,alt:null}}},totalCnt:0,isViewMore:!1,combo:[{offerIndex:null,
1028hideClass:null,title:null,comboIndex:0,hasItem:!1,item:{headline:null,iconName:null,description:{hasDescription:!1,main:[{text:null}],date:null},learnMoreCta:{"class":null,title:null,href:null,target:null,text:null},hasBundle:!1,bundleList:[{headline:null,deleteTitle:null,dataPrice:null,dataSalePrice:null,dataEventType:null,dataModelName:null,dataDisplayName:null,pviTypeName:null,pviSubtypeName:null,categorySubTypeEngName:null,dataSkuCode:null,dataModelCode:null,dataIndex:null,imgAttr:{classWapper:null,
1029srcPc:null,srcMo:null,lazySrcPc:null,lazySrcMo:null,alt:null},price:{original:null,save:null,now:null,dataPrice:null,dataSalePrice:null}}]}}],gift:{offerIndex:null,hideClass:null,title:null,giftIndex:0,hasItem:!1,item:{headline:null,description:{hasDescription:!1,main:[{text:null}],date:null},learnMoreCta:{"class":null,title:null,href:null,target:null,giftIdx:null,text:null},hasBundle:!1,bundleList:[{headline:null,deleteTitle:null,dataPrice:null,dataSalePrice:null,dataEventType:null,dataModelName:null,
1030dataDisplayName:null,dataSkuCode:null,dataModelCode:null,pviTypeName:null,pviSubtypeName:null,categorySubTypeEngName:null,dataIndex:null,imgAttr:{classWapper:null,srcPc:null,srcMo:null,lazySrcPc:null,lazySrcMo:null,alt:null},price:{original:null,save:null,now:null,dataPrice:null,dataSalePrice:null}}]}},bogo:{offerIndex:null,hideClass:null,title:null,hasItem:!1,item:{headline:null,contentWrapperClass:null,modelCode:null,modelName:null,displayName:null,pviTypeName:null,pviSubtypeName:null,categorySubTypeEngName:null,
1031description:{hasDescription:!1,main:[{text:null}],date:null},imgAttr:{classWapper:null,srcPc:null,srcMo:null,lazySrcPc:null,lazySrcMo:null,alt:null},price:{hasPrice:!1,price:null,original:null,save:null,now:null}}},promotionMessage:[{offerIndex:null,hideClass:null,title:null,hasItem:!1,item:{contentWrapperClass:null,iconAttr:{src:null,alt:null},description:{hasDescription:!1},rowText:[{target:null,text:null}]}}],promotionFinance:[{offerIndex:null,hideClass:null,title:null,hasItem:!1,item:{headline:null,
1032contentWrapperClass:null,iconAttr:{src:null,alt:null},description:{hasDescription:!1},rowText:[{target:null,text:null}]}}],promotionSmartclub:[{offerIndex:null,hideClass:null,title:null,hasItem:!1,item:{headline:null,contentWrapperClass:null,iconAttr:{src:null,alt:null},description:{hasDescription:!1},rowText:[{target:null,text:null}]}}],childList:[{hasComponent:!1,childCode:null,displayName:null,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]}]},tariffOption:{hasComponent:!1,
1033headline:null,description:null,logoList:[{src:null,alt:null}]},tariffOptionResult:{hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataPrice:null,dataSimskuCode:null,dataModelCode:null,dataId:null},delivery:{hasComponent:!1,headline:null,label:null,cancelText:null,errorMessage:null,enterText:null,time:null,isPriorityDelivery:!1,priorityDeliveryText:null,priorityDeliveryTooltip:null,labelClass:null,ctaClass:null,inputAttr:{maxlength:null,disabled:null,value:null},
1034submitAttr:{}},deliveryResult:{hasComponent:!1,priorityCost:null,priorityText:null,mainText:null,subText:null,decText:null,disclaimerList:[{disclaimer:null}]},price:{classType:null,ctaWrapperClass:null,priceWrapper:{hasPriceWrapper:!1,hasEnergyLabel:!1,hasNewEnergyLabel:!1,ficheAttr:{text:null,"class":null,href:null,title:null,target:null},labelAttr:{text:null,"class":null,href:null,title:null,target:null,spanClass:null},repairAttr:{text:null,"class":null,href:null,title:null,target:null,src:null,
1035alt:null,"an-la":null},info:{orignalPrice:null,orignalPriceAddText:null,savePrice:null,totalPrice:null,summaryPrice:null,vatText:null,text:null,text2:null,salesPitch:null,fromText:null,monthlyPrice:null,stockCustomMessage:null,description:null,ceExchangePrice:null,savingInformation:null,salePriceFormatted:null},isLeasingInfo:null},bespokeAttr:{text:null,"class":null,href:null,title:null,target:null},wtbAttr:{text:null,"class":null,href:null,title:null,target:null,moCode:null,dataModelName:null,dataSku:null,
1036dataTtile:null,dataProductCode:null,imgSrc:null,iaCode:null,dataModelCode:null},outlinedAttr:{text:null,"class":null,href:null,title:null,ctaType:null,target:null},containedAttr:{text:null,"class":null,href:null,title:null,ctaType:null,target:null,moCode:null,dataModelName:null,dataTtile:null,style:null,imgSrc:null,iaCode:null,dataModelCode:null},reserveInStoreAttr:{text:null,"class":null,href:null,title:null,target:null},anchorNaviAttr:{text:null,"class":null,href:null,title:null,ctaType:null,target:null,
1037moCode:null,dataModelName:null,dataTtile:null,imgSrc:null,iaCode:null,dataModelCode:null},summaryArea:{embedAddonSelected:null}},priceAnchor:{priceWrapper:{info:{orignalPrice:null,savePrice:null,totalPrice:null,noLineOrignal:null,text:null,text2:null,fromText:null,monthlyPrice:null,stockCustomMessage:null,savingInformation:null,hasFrequentPrice:!1}}},calculator:{hasComponent:!1,emiAttr:{text:null,"class":null,href:null,target:null,title:null,layerTarget:null}}}};B.prototype.eanCodeDraw=function(){var w=
1038$("#eanCode").val();"Y"!==$("#typeux2025").val()?0<$("p.pd-info__ean").length?$("p.pd-info__ean").innerHTML="EAN : "+w:$("p.pd-info__sku").after('\x3cp class\x3d"pd-info__ean"\x3eEAN : '+w+"\x3c/p\x3e"):0<$("span.pdd39-anchor-nav__info-ean").length?$("span.pdd39-anchor-nav__info-ean").innerHTML="EAN : "+w:$("span.pdd39-anchor-nav__info-sku").after('\x3cspan class\x3d"pdd39-anchor-nav__info-ean"\x3eEAN : '+w+"\x3c/span\x3e")};B.prototype.hotDealBadgeDraw=function(w){var e='\x3cspan class\x3d"badge-icon badge-icon--label-v2 badge-icon--bg-color-teal"\x3e'+
1039w+"\x3c/span\x3e";"ch"===siteCode||"ch_fr"===siteCode?$("div.pdd39-anchor-nav__headline-wrap").prepend(e):"Y"===$("#typeux2025").val()?0<$("span.badge-icon").length?$("span.badge-icon")[0].innerHTML=w:$("div.pdd39-anchor-nav__headline-wrap").prepend(e):0<$("strong.pd-info__badge-icon").length?($("strong.pd-info__badge-icon").innerHTML="",$("strong.pd-info__badge-icon").append(e)):$("div.pd-info").prepend('\x3cstrong class\x3d"pd-info__badge-icon"\x3e'+e+"\x3c/strong\x3e")};B.prototype.rewardsDraw=
1040function(w,e){this.productPriceTotalDraw(e,w.isOptClicked);v()};aa.BuyingToolOpView=B})();
1041(function(){function l(x){var U=x.util,B=x.comboSearchList,w=x.noComboSearchList,e=x.realComboSearchList,p=!1;if(U.isNotEmptyArray(B)){var k=x.pdSoftBundleUseYn,A;for(A in B){var ca=B[A],K=e[A],D=w[A],h=[],C;for(C in ca)for(var E in K){var T=ca[C],R=K[E];if(R.ctaType&&"NOORDER"!==R.ctaType.toUpperCase()&&T.msrp_price&&T.msrp_price.value)if(p=!0,T.sku===R.shopSKU)R.thumbUrl=U.imgDomain(R.thumbUrl),R.msrp_price=T.msrp_price,R.sale_price=T.sale_price,R.formatted_value=T.formatted_value,R.sales_pitch=
1042T.sales_pitch,R.type=T.type,h.push(R);else if("Y"===k&&"ecom"===T.sku_source)for(var z in D)T.sku===D[z].sku&&h.push(searchComboData[kdx])}U.isNotEmptyArray(h)&&x.globalComboData.push(h)}}p||(x.drawObj.offer.combo=[],x.view.productOfferDraw(x.drawObj))}function g(x,U,B){U=x.util;var w=x.priceCurrency,e=x.view;x=x.drawObj;for(var p in B){var k=B[p],A=k.thumbUrl,ca=k.thumbUrlAlt,K=x.offer,D=k.pviTypeName?k.pviTypeName.toLowerCase():"",h=k.pviSubtypeName?k.pviSubtypeName.toLowerCase():"",C=k.categorySubTypeEngName?
1043k.categorySubTypeEngName.toLowerCase():"";A=U.getImgAttr(A,A,ca,{classWapper:"image__main responsive-img"});ca=[];var E=B[p];E.bogo_sales_pitch&&ca.push({text:E.bogo_sales_pitch});var T="",R="",z="";k.price_info&&0<k.price_info.length&&(T=k.price_info[0],z=T.msrp_price.value,T=T.msrp_price.formatted_value,"nl"!==siteCode&&"be"!==siteCode&&"be_fr"!==siteCode&&(R=Granite.I18n.get("Save {0}",T)));var fa=currencyComma(0,w);
1043"true"===$("#isEppPage").val()&&"pl"===siteCode&&(R=T="");k={title:"bogo",hasItem:!0,
1044item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),modelCode:k.modelCode,modelName:k.modelName,displayName:k.displayName,pviTypeName:D,pviSubtypeName:h,categorySubTypeEngName:C,description:{hasDescription:!0,main:ca,date:E.bogo_date},imgAttr:A,price:{hasPrice:!0,price:z,original:T,save:R,now:fa}}};K.bogo=k}e.productOfferDraw(x)}function H(x){var U=x.getFullYear(),B=String(x.getMonth()+1).padStart(2,"0");x=String(x.getDate()).padStart(2,"0");return U+"-"+B+"-"+x}function u(x){var U=
1045x.getDate(),B=function(w){if(11<=w&&13>=w)return"th";switch(w%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(U);x="January February March April May June July August September October November December".split(" ")[x.getMonth()];return""+U+B+" "+x}function n(x,U){x=new Date(x);return"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")[x.getDay()]+", "+"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[x.getMonth()]+" "+x.getDate()}var v=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
1046F=v.ux2.PDPHeaderUI,W=new URL(location.href);W.searchParams.has("addon")&&(W.searchParams.delete("addon"),history.replaceState(null,document.title,W.toString()),history.back());W=function(){};W.prototype.setUsEppPrice=function(x,U){var B=$.cookies.get("tmktid",{domain:".samsung.com"}),w=x.modelCode;B&&$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.samsung.com/us/shop/price.us",type:"POST",dataType:"json",timeout:2E4,
1047data:JSON.stringify({marketId:B,modelCodes:w}),xhrFields:{withCredentials:!0},success:function(e){if(e&&0<e.length)for(var p in e){var k=e[p];x.modelCode===k.prdMdlCd&&k.prdSavePriceInf&&(k=k.prdSavePriceInf.trim(),k=deleteCurrency(k,x.priceCurrency),x.drawObj.usEppData.hasComponent=!0,x.proudctPriceInfo.usEppPrice=k,x.drawObj.usEppData.upText="Save an extra",x.drawObj.usEppData.saveText=currencyComma(k,x.priceCurrency),x.view.usEppDraw(x.drawObj),x.util.settingPriceDraw(x,U))}}})};W.prototype.setUsProductJson=
1048function(x,U){$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.samsung.com/us/consumer/shop/productJson.json",type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},success:function(B){B&&B[x.modelCode]&&(B=parseFloat(B[x.modelCode].eppMaxSavingPercentage),x.drawObj.usEppData.hasComponent=!0,x.drawObj.usEppData.upText="Save up to an extra",x.drawObj.usEppData.saveText=currencyComma(x.proudctPriceInfo.salePrice*
1049B,x.priceCurrency),x.drawObj.usEppData.title="with Samsung Discount Program",x.view.usEppDraw(x.drawObj))}})};W.prototype.setEppDiscount=function(x,U){$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.samsung.com/us/smg/content/samsung/content-library/prepurchase/eppdiscount/epp-discount.json",type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},success:function(B){if(B&&B.eppDiscounts){x.drawObj.usEppData.hasSelectBox=
1050!0;for(var w in B.eppDiscounts){var e=B.eppDiscounts[w];x.drawObj.usEppData.selectList.push({title:e.label,storeId:e.storeId,index:w})}x.view.usEppDraw(x.drawObj)}}})};W.prototype.callRelatedAndSearch=function(x,U,B,w,e){var p=this;B=void 0===B?{}:B;var k={},A={};this.callRelatedProductAjax(x,function(ca,K,D){if(K){A.relatedAPI=ca;if(null!=ca.products&&0<ca.products.length){ca=$jscomp.makeIterator(ca.products);for(var h=ca.next();!h.done;h=ca.next())h=h.value,k[h.modelcode]={relatedAPI:h}}0<Object.keys(k).length?
1051p.callSearchApiAjax(Object.keys(k),function(C,E,T){if(E&&(A.searchAPI=C,200===C.response.statusCode&&C.response.resultData&&C.response.resultData.productList)){C=$jscomp.makeIterator(C.response.resultData.productList);for(var R=C.next();!R.done;R=C.next()){R=R.value;for(var z=$jscomp.makeIterator(R.modelList),fa=z.next();!fa.done;fa=z.next())fa=fa.value,k["in"!==siteCode?fa.modelCode:fa.shopSKU].searchAPI={categoryData:R,modelData:fa}}}A.totalResult=k;U(A,E,T)}
1051,D,e):U(A,K,D)}else U(A,K,D)},B,w)};
1052W.prototype.callSearchApiAjax=function(x,U,B,w){x=void 0===x?[]:x;B=void 0===B?{}:B;var e=$("#searchDomain").val(),p=$("#siteCode").val(),k=$("#apiStageInfo").val(),A=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("GPv2"):!0,ca=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg"):!0,K=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new"):!0,D=2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,
10532)?!0:!1,h=4<$("#categorySubTypeCode").val().length&&"0701"===$("#categorySubTypeCode").val().substring(0,4)?!0:!1,C="Hybris-new"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()&&"Hybris-intg"!==$("#shopIntegrationFlag").val()||"08000000"!==$("#apiChangeCategoryGroupCode").val()?!1:!0;D=D||h||C;h=$.cookies.get("country_region")?$.cookies.get("country_region").toString():"";"levant"===p||"levant_ar"===p||"n_africa"===p||"ae"!==p&&"ae_ar"!==p||$.cookies.get("estoreSitecode",
1054{domain:".samsung.com"});C="";C=A?"gpv2":ca?"hybris":K?"newhybris":"global";A="true"===$("#isEppPage").val();e=e+"/"+k+"/"+(A?"epp/v2":"b2c")+"/product/model/list/"+C+"/front";x={siteCode:p,modelList:x.join(","),saleSkuYN:"N",onlyRequestSkuYN:"Y"};A&&(x.companyCode=$("#eppCompanyCode").val(),x.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(x.groupName=window.sg.epp.common.groupName),k=location.pathname.match(/[0-9]{13}/g),null!=k&&"undefined"!=typeof k&&""!=$.trim(k)&&(x.offerId=k[0]),""!=
1055window.sg.epp.common.userStoreId&&(x.o2oId=window.sg.epp.common.userStoreId));D&&(x.vd3PACardYN="Y");x.commonCodeYN="in"!=p?"N":"Y";if("ca"===p||"ca_fr"===p)x.regionCode=null!=h&&""!=h?h:"CA-ON";var E="",T=!1;w&&(x=w);$.ajax({url:e,type:"GET",data:x,dataType:"json",cache:!0,crossDomain:!0,timeout:2E4,success:function(R){E=R;T=!0},complete:function(){U(E,T,B)}})};W.prototype.callRelatedProductAjax=function(x,U,B,w){B=void 0===B?{}:B;var e="",p="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
1056$("#siteCode").val();e="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();x=e+"/tokocommercewebservices/v2/"+p+"/products/"+x+"/relatedProducts?fields\x3dSIMPLE_INFO";e={queryType:"ACCESSORIES"};var k="",A=!1;w&&(e=w);$("#shopParmLang").val()&&(e.lang=$("#shopParmLang").val());w="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?
1057{withCredentials:!0}:{};$.ajax({url:x,type:"GET",data:e,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:w,success:function(ca){k=ca;A=!0},complete:function(){U(k,A,B)}})};W.prototype.callRelatedProductAjaxOldHybris=function(x,U,B,w,e){w=void 0===w?{}:w;var p=$("#storeDomain").val(),k=x.multistoreSiteCd,A="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():k;k="ca"===k||"ca_fr"===k;U=p+"/"+A+"/servicesv2/getRelatedProductsSimpleInfo?productCode\x3d"+U;p="\x26country_region\x3d";
1058k&&(A=getSECACountryRegion(),p+=A);A={queryType:"ACCESSORIES"};var ca="",K=!1;e&&(A=e);var D="Query1910499421933433041_151";if("SELECTION_OF_GIFT"==e.queryType||x.hasGift&&!x.hasBundle)D="Query1910499421933433041_152";else if("SELECTION_OF_BUNDLE"==e.queryType||x.hasGift&&x.hasBundle)x.bundleCnt++,D="Query1910499421933433041_153"+x.bundleCnt;"Y"===x.hybrisJsonYn?$.ajax({url:U,type:"GET",data:A,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(h){ca=
1059h;K=!0},complete:function(){B(ca,K,w)}}):k?$.ajax({url:U+p,type:"GET",data:A,dataType:"jsonp",jsonpCallback:D,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(h){ca=h;K=!0},complete:function(){B(ca,K,w)}}):$.ajax({url:U,type:"GET",data:A,dataType:"jsonp",jsonpCallback:D,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(h){ca=h;K=!0},complete:function(){B(ca,K,w)}})};W.prototype.callRelatedProductAjaxAddOns=function(x,U,B,w){B=void 0===
1060B?{}:B;
1060var e=$("#storeDomain").val(),p="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();$("#shopParmLang").val()&&$("#shopParmLang").val();var k="",A=!1,ca="";w&&(ca=w,ca.categoryPrefix="AEM_");$.ajax({url:e+"/tokocommercewebservices/v2/"+p+"/products/"+x+"/relatedCategorizedProducts?fields\x3dSIMPLE_INFO",type:"GET",data:ca,dataType:"json",cache:!0,crossDomain:!0,xhrFields:{withCredentials:!0},timeout:1E4,success:function(K){k=K;A=!0},complete:function(){U(k,A,B)}})};
1061W.prototype.callRelatedProductAjaxAddOnsOldHybris=function(x,U,B,w,e,p){e=void 0===e?{}:e;var k=$("#storeDomain").val(),A=U.multistoreSiteCd,ca="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():A;A="ca"===A||"ca_fr"===A;B=k+"/"+ca+"/servicesv2/getRelatedCategorizedProductsSimpleInfo?productCode\x3d"+B;k="\x26country_region\x3d";A&&(ca=getSECACountryRegion(),k+=ca);var K="",D=!1;ca="";p&&(ca=p);x&&(ca.categoryPrefix="AEM_");p="Query1910499421933433041_161";x&&(p="Query1910499421933433041_162");
1062"Y"===U.hybrisJsonYn?$.ajax({url:B,type:"GET",data:ca,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(h){K=h;D=!0},complete:function(){w(K,D,e)}}):A?$.ajax({url:B+k,type:"GET",data:ca,dataType:"jsonp",jsonpCallback:p,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(h){K=h;D=!0},complete:function(){w(K,D,e)}}):$.ajax({url:B,type:"GET",data:ca,dataType:"jsonp",jsonpCallback:p,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
1063success:function(h){K=h;D=!0},complete:function(){w(K,D,e)}})};W.prototype.callSimulatecartAjax=function(x,U,B){B=void 0===B?{}:B;var w="",e="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();w="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();var p=e;"true"!==$("#isEppPage").val()&&("levant"===e?p="jo":"levant_ar"===e?p="jo_ar":"n_africa"===e&&
1064(p="ma"));w=w+"/tokocommercewebservices/v2/"+p+"/userData/anonymous/simulatecart";x={productCodes:x};e="true"===$("#isEppPage").val()?{withCredentials:!0}:{};var k="",A=!1;$.ajax({url:w,type:"GET",data:x,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:e,success:function(ca){k=ca;A=!0},complete:function(){U(k,A,B)}})};W.prototype.deliveryUsAPI=function(x,U,B,w){var e=x.apiDomain+"/v4/fulfillment/earliest-available-delivery-dates";x.drawObj.deliveryResult={hasComponent:!1,mainText:null,
1065decText:null,disclaimerList:[{disclaimer:null}]};$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},type:"GET",url:e,data:"sku\x3d"+w+"\x26postal_code\x3d"+B,dataType:"json",timeout:1E4,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(p){var k=x.drawObj,A=k.delivery,ca=k.deliveryResult;k.delivery.errorMessage=null;if(null!==p&&0<p.length){var K=!1,D;for(D in p){var h=p[D];if(h.sku&&h.sku===w&&h.earliest_available_delivery_date){K=
1066!0;x.cartPinCode=B;ca.hasComponent=!0;A.inputAttr.value=B;var C=new Date(h.earliest_available_delivery_date);h=C.getUTCFullYear();var E=C.getUTCMonth();C=C.getUTCDate();ca.mainText=Granite.I18n.get("This product is available for delivery in your area");ca.disclaimerList=[];ca.disclaimerList.push({disclaimer:Granite.I18n.get("Earliest delivery : {0}","Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[E]+" "+C+", "+h)});$.cookies.set("HA-Deeplink-Zipcode",B,{domain:".samsung.com"})}}K||(k.delivery.errorMessage=
1067"This product is currently not available in your area.",k.delivery.inputAttr.value=B)}else k.delivery.errorMessage="This product is currently not available in your area.",k.delivery.inputAttr.value=B},error:function(p){p=x.drawObj;p.delivery.errorMessage="This product is currently not available in your area.";p.delivery.inputAttr.value=B},complete:function(){var p=x.view,k=x.drawObj,A=$(U.buyingToolOptDelivery),ca=x.util;p.deliveryResultDraw(k);p.deliveryDraw(k);k.delivery.errorMessage?($(A).find(".text-field-v2__text.error").show(),
1068$(A).find("#delivery-zipcode").focus().val("").val(B)):($(A).find(".text-field-v2__text.error").hide(),k.delivery.errorMessage=null);ca.settingPriceCta(x.hasPriceCta,x,U,x.currentUrl)}})};W.prototype.deliveryAPI=function(x,U,B,w){var e=x.apiDomain,p=x.pdHrefLang,k=x.pdMultiLanguageYN,A=x.isOldHybrisCheckService,ca=x.siteCode;x.drawObj.delivery.errorMessage=null;x.drawObj.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};var K={postal_code:B,skus:[w]},D=
1069e+"/v4/configurator/postal-code-check";
1069"true"===$("#isEppPage").val()&&(K.store_id=$("#eppCompanyCode").val());A?("my"==ca&&(K={postCode:B,sku:w},D=e+"/"+ca+"/servicesv2/postal-code-check/getDeliveryTat"),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:D,type:"GET",dataType:"json",timeout:2E4,data:K,xhrFields:{withCredentials:!0},beforeSend:function(h){"Y"===k&&h.setRequestHeader("x-ecom-locale",p)},success:function(h){var C=x.drawObj,
1070E=C.delivery,T=C.deliveryResult,R=x.siteCode,z="";null!==h?h.valid?(x.cartPinCode=B,T.hasComponent=!0,E.inputAttr.value=B,T.mainText=null!==h.deliveryTurnAroundTime?h.deliveryTurnAroundTime:"",$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+R})):z=Granite.I18n.get("Sorry, we do not ship to your zipcode currently."):z=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");C.delivery.errorMessage=z},error:function(h){var C=x.drawObj;h.responseJSON?(h=h.responseJSON,h=
1071h.message?Granite.I18n.get(h.message):Granite.I18n.get("We're sorry, an error occurred.")):h=Granite.I18n.get("We're sorry, an error occurred.");C.delivery.errorMessage=h},complete:function(){var h=x.view,C=x.drawObj;h.deliveryResultDraw(C);h.deliveryDraw(C);C.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B))}})):$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json",
1072"Access-Control-Allow-Origin":"*"},url:D,type:"POST",dataType:"json",timeout:2E4,data:JSON.stringify(K),xhrFields:{withCredentials:!0},beforeSend:function(h){"Y"===k&&h.setRequestHeader("x-ecom-locale",p)},success:function(h){var C=x.drawObj,E=C.delivery,T=C.deliveryResult,R=x.siteCode,z="";null!==h&&0<h.length?h[0].is_op_available?(h=h[0],x.cartPinCode=B,T.hasComponent=!0,E.inputAttr.value=B,T.mainText=Granite.I18n.get("Delivery available. Get it in {0}",null!==h.turn_around_time?h.turn_around_time:
1073""),h.local_dealers&&0<h.local_dealers.length&&(E=h.local_dealers[0],T.decText=E.store_name,E.address&&T.disclaimerList.push({disclaimer:E.address}),E.contact_number&&T.disclaimerList.push({disclaimer:E.contact_number})),$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+R})):z=Granite.I18n.get("Sorry, we do not ship to your zipcode currently."):z=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");C.delivery.errorMessage=z},error:function(h){var C=x.drawObj;h.responseJSON?
1074(h=h.responseJSON,h=h.message?Granite.I18n.get(h.message):Granite.I18n.get("We're sorry, an error occurred.")):h=Granite.I18n.get("We're sorry, an error occurred.");C.delivery.errorMessage=h},complete:function(){var h=x.view,C=x.drawObj;h.deliveryResultDraw(C);h.deliveryDraw(C);C.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B))}})};W.prototype.deliveryNewBybrisAPI=function(x,U,
1075B,w){var e="";$("#shopParmLang").val()&&(e="?lang\x3d"+$("#shopParmLang").val());w="true"===$("#isEppPage").val()?{withCredentials:!0}:{};"id"!=siteCode?(e=x.apiDomain+"/tokocommercewebservices/v2/"+x.siteCodeWithEpp+"/products/"+x.modelCode+"/deliveryModes?fields\x3dSIMPLE_INFO\x26postCode\x3d"+B+e,x.drawObj.delivery.errorMessage=null,x.drawObj.deliveryResult={hasComponent:!1,priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]},$.ajax({url:e,type:"GET",dataType:"json",
1076timeout:3E4,xhrFields:w,crossDomain:!0,contentType:"application/json",success:function(p){var k=p.deliveryTurnAroundTime;p.valid?(x.drawObj.delivery.inputAttr.value=B,x.drawObj.deliveryResult={hasComponent:p.val
1076id,priorityText:null,mainText:Granite.I18n.get("Delivery available. Get it in {0}",k),decText:"storeName",disclaimerList:[]},x.drawObj.deliveryResult.disclaimerList.push({disclaimer:"address"}),x.drawObj.deliveryResult.disclaimerList.push({disclaimer:"number"}),$.cookies.set("deliveryPincode",
1077B,{domain:".samsung.com",path:"/"+x.siteCode})):x.drawObj.delivery.errorMessage=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.")},error:function(p){var k=x.drawObj;p.responseJSON?(p=p.responseJSON,p=p.message?Granite.I18n.get(p.message):Granite.I18n.get("We're sorry, an error occurred.")):p=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=p},complete:function(){var p=x.view,k=x.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);
1078p.deliveryResultDraw(k);p.deliveryDraw(k);k.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));k.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();F.buyingTool.bindPdTooltipEvent()}})):(e=$("#storeWebDomain").val()+"/"+x.siteCodeWithEpp+"/servicesv2/postal-code-check/getDeliveryTat?postCode\x3d"+B+"\x26sku\x3d"+x.modelCode,w="true"===
1079$("#isEppPage").val()?{withCredentials:!0}:{},x.drawObj.delivery.errorMessage=null,x.drawObj.deliveryResult={hasComponent:!1,mainText:null},$.ajax({url:e,type:"GET",dataType:"json",timeout:3E4,xhrFields:w,crossDomain:!0,contentType:"application/json",success:function(p){var k=p.deliveryTurnAroundTime;p.valid&&"oos"===k&&"id"===siteCode?x.drawObj.delivery.errorMessage=Granite.I18n.get("Delivery Out Of Stock Message"):p.valid?(x.drawObj.delivery.inputAttr.value=B,x.drawObj.deliveryResult={hasComponent:p.val
1079id,
1080mainText:Granite.I18n.get("Delivery available. Get it in {0}",k)},$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+x.siteCode})):x.drawObj.delivery.errorMessage=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.")},error:function(p){var k=x.drawObj;p.responseJSON?(p=p.responseJSON,p=p.message?Granite.I18n.get(p.message):Granite.I18n.get("We're sorry, an error occurred.")):p=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=p},complete:function(){var p=
1081x.view,k=x.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);p.deliveryResultDraw(k);p.deliveryDraw(k);k.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));k.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();F.buyingTool.bindPdTooltipEvent()}}))};W.prototype.deliveryInAPI=function(x,U,B,w){var e=x.apiDomain,
1082p="";"true"===$("#isEppPage").val()&&(p="\x26store_id\x3d"+$("#eppCompanyCode").val());w=e+"/v4/configurator/serviceability?postal_code\x3d"+B+"\x26skus\x3d"+[w]+p;x.drawObj.delivery.errorMessage=null;e="true"===$("#isEppPage").val()?{withCredentials:!0}:{};x.drawObj.deliveryResult={hasComponent:!1,priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};x.drawObj.deliveryPickupStore={hasComponent:!1,deliveryPickupStore:!1,deliveryPickupStoreName:""};$.ajax({url:w,type:"GET",
1083dataType:"json",timeout:3E4,crossDomain:!0,xhrFields:e,contentType:"application/json",success:function(k,A,ca){A=x.drawObj;var K=A.delivery,D=A.deliveryResult,h=A.deliveryPickupStore,C=null;if(200==ca.status)if(ca=k[0].external_attributes,ca.is_op_available)if(ca.local_dealers[0]&&ca.local_dealers[0].serviceable){if(k[0].delivery_modes&&0<k[0].delivery_modes.length){var E=null,T=null,R;for(R in k[0].delivery_modes){var z=k[0].delivery_modes[R];x.cartPinCode=B;D.hasComponent=!0;K.inputAttr.value=B;
1084if(z.custom_properties.delivery_mode_type&&z.estimated_delivery_date){var fa=z.custom_properties.delivery_mode_type,va="standard"===fa.replace(/ /g,"").toLowerCase(),ra="prioritydelivery"===fa.replace(/ /g,"").toLowerCase(),oa=z.estimated_delivery_date,da=Number(oa.split("-")[2]);fa="";z.short_description&&(fa=z.short_description);var na=z.flags.is_installation_available,L=z.earliest_installation_date;na&&L&&ra&&(E="Schedule installation \x26 Demo : By "+n(L,"priority"));na&&L&&va&&(T="Schedule installation \x26 Demo : By "+
1085n(L,"standard"));ra?z.estimated_delivery_time&&(D.priorityCost=z.cost.value,z=z.estimated_delivery_time,va="",z&&(z=Number(z.split(":")[0]),12>z?va="AM":(12<z&&(z-=12),va="PM")),ra=Number(K.time.split(",")[1].trim().substring(0,2)),na=Number(K.time.split("GMT")[0].trim().slice(-8).split(":")[0])+5,59<Number(K.time.split("GMT")[0].trim().slice(-8).split(":")[1])+30&&(na+=1),23<na&&(ra+=1),oa=ra===da?"Today":ra+1===da?"Tomorrow":n(oa).split(",")[0],D.priorityText=fa+": "+oa+" by "+z+" "+va):va&&(D.mainText=
1086"Delivery by "+n(oa,"standard"))}}E?(D.subText=E,D.mainText=null):T&&(D.subText=T,D.priorityText=null)}else C=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");ca.local_dealers[0].store_name&&(D.decText="Fullfillment by : "+ca.local_dealers[0].store_name);ca.is_cod_available&&0>JSON.stringify(D.disclaimerList).indexOf("Cash on delivery is available.")&&D.disclaimerList.push({disclaimer:Granite.I18n.get("Cash on delivery is available.")});0<ca.pickup_stores.length&&""!==ca.pickup_stores[0].store_name&&
1087(h.hasComponent=!0,h.deliveryPickupStore=!0,h.deliveryPickupStoreName=ca.pickup_stores[0].store_name);$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+siteCode})}else C=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else C=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else C=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");A.delivery.errorMessage=C},error:function(k){var A=x.drawObj;k.responseJSON?(k=k.responseJSON,
1088k=k.message?Granite.I18n.get(k.message):Granite.I18n.get("We're sorry, an error occurred.")):k=Granite.I18n.get("We're sorry, an error occurred.");A.delivery.errorMessage=k},complete:function(){var k=x.view,A=x.drawObj;0===A.deliveryResult.priorityCost&&(A.deliveryResult.mainText=null);k.deliveryResultDraw(A);k.deliveryDraw(A);k.deliveryPickupStoreDraw(A);A.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));
1089A.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==A.deliveryResult.priorityText&&!0===A.tradeInResult.isUpfront?$(U.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==A.deliveryResult.priorityText&&!1===A.tradeInResult.isUpfront&&$(U.buyingToolOptDeliveryResult).find(".delivery-priority").show();F.buyingTool.bindPdTooltipEvent()}})};W.prototype.deliveryNewInAPI=function(x,U,B,w){var e=x.apiDomain;
1089"true"===$("#isEppPage").val()&&
1090$("#eppCompanyCode").val();w=e+"/tokocommercewebservices/v2/"+x.siteCodeWithEpp+"/servicesv2/postal-code-check/getDeliveryTat?postCode\x3d"+B+"\x26sku\x3d"+w+"\x26field\x3dPDP_DELIVERY_INFO";x.drawObj.delivery.errorMessage=null;e="true"===$("#isEppPage").val()?{withCredentials:!0}:{};x.drawObj.deliveryResult={hasComponent:!1,priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};x.drawObj.deliveryPickupStore={hasComponent:!1,deliveryPickupStore:!1,deliveryPickupStoreName:"",
1091disclaimerList:[]};$.ajax({url:w,type:"GET",dataType:"json",timeout:3E4,crossDomain:!0,xhrFields:e,contentType:"application/json",success:function(p,k,A){k=x.drawObj;var ca=k.delivery,K=k.deliveryResult,D=k.deliveryPickupStore,h=null;k.delivery.ctaClass="cta--disabled";if(200==A.status)if((A=p.pdpDeliveryInfo.external_attributes)&&A.is_op_available)if(A.local_dealers&&A.local_dealers[0]&&A.local_dealers[0].serviceable){k.delivery.ctaClass="";x.cartPinCode=B;K.hasComponent=!0;ca.inputAttr.value=B;
1092K.mainText=null;K.priorityText=null;A.local_dealers[0].estimated_delivery_date&&(K.mainText="Delivery : By "+n(A.local_dealers[0].estimated_delivery_date));if(A.local_dealers[0].shipping_methods&&0<A.local_dealers[0].shipping_methods.length){ca=A.local_dealers[0].shipping_methods;var C=ca.find(function(fa){return fa.model_code.includes("SDD")})||ca.find(function(fa){return fa.model_code.includes("NDD")})||ca[0];if(C){ca=C.model_code.includes("SDD")||C.model_code.includes("NDD");var E=H(new Date),
1093T=C.estimated_delivery_date;E=Math.round((new Date(T)-new Date(E))/864E5);C=C.model_code.includes("EXPRESS");ca?(0==E?(K.priorityText="Priority Delivery : By Today",C&&(K.priorityText="Delivery available in 4-6hrs.")):K.priorityText=1==E?"Priority Delivery : By Tomorrow":"Priority Delivery : By "+u(new Date(T)),K.mainText=null):K.mainText="Delivery : By "+u(new Date(T))}}p.deliveryTurnAroundTime&&(K.mainText?K.mainText=p.deliveryTurnAroundTime:K.priorityText&&(K.priorityText=p.deliveryTurnAroundTime));
1094p.pdpDeliveryInfo.earliest_installation_date&&(K.subText="Schedule installation \x26 Demo : By "+n(p.pdpDeliveryInfo.earliest_installation_date,""));A.local_dealers[0].store_name&&(K.decText="Fulfillment by : "+A.local_dealers[0].store_name);A.is_cod_available&&0>JSON.stringify(K.disclaimerList).indexOf("Cash on delivery is available.")&&K.disclaimerList.push({disclaimer:Granite.I18n.get("Cash on delivery is available.")});for(var R in A.local_dealers)if(A.local_dealers[R].click_and_collect&&""!==
1095A.local_dealers[R].store_name)if(D.hasComponent=!0,D.deliveryPickupStore=!0,D.deliveryPickupStoreName=A.local_dealers[R].store_name,p.pdpDeliveryInfo.bopisDescription&&0<p.pdpDeliveryInfo.bopisDescription.length)for(var z in p.pdpDeliveryInfo.bopisDescription)D.disclaimerList.push(p.pdpDeliveryInfo.bopisDescription[z]);else D.disclaimerList.push(Granite.I18n.get("Travel charger at \u20b91")),D.disclaimerList.push(Granite.I18n.get("Free customization on your Galaxy device")),D.disclaimerList.push(Granite.I18n.get("Free device set up")),
1096D.disclaimerList.push(Granite.I18n.get("Call us at 7788997706 to know more (11:00 AM - 10:00 PM all days"));$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+siteCode})}else h=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else h=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else h=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");k.delivery.errorMessage=h},error:function(p){var k=x.drawObj;p.responseJSON?(p=p.responseJSON,
1097p=p.message?Granite.I18n.get(p.message):Granite.I18n.get("We're sorry, an error occurred.")):p=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=p},complete:function(){var p=x.view,k=x.drawObj,A="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();p.deliveryResultDraw(k);p.deliveryDraw(k);p.deliveryPickupStoreDraw(k);k.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),A||$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));
1098k.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==k.deliveryResult.priorityText&&!0===k.tradeInResult.isUpfront?$(U.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==k.deliveryResult.priorityText&&!1===k.tradeInResult.isUpfront&&$(U.buyingToolOptDeliveryResult).find(".delivery-priority").show();x.util.checkAddToCart(x,U);F.buyingTool.bindPdTooltipEvent()}})};W.prototype.externalAjax=function(x,U){U=x.apiDomain;var B=x.pdMultiLanguageYN,
1099w=x.pdHrefLang,e={access_token:x.accessToken,skus:[x.shopSkuCode]};
1099"true"===$("#isEppPage").val()&&(e.store_id=$("#eppCompanyCode").val());$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:U+"/v1/exchange/external",type:"POST",dataType:"json",data:JSON.stringify(e),timeout:1E4,xhrFields:{withCredentials:!0},beforeSend:function(p){"Y"===B&&p.setRequestHeader("x-ecom-locale",w)},success:function(p){null!==p&&0<p.length&&x.afterEvent.offerAndAddonsDiscount(p,
1100"galaxyapp")},error:function(p){var k="";p.responseJSON&&p.responseJSON.message&&(k=p.responseJSON.message);confirmPopup(k)},complete:function(){history.replaceState({},null,location.pathname)}})};W.prototype.exchangeInDataV1Api=function(x,U,B){var w={device_info:{imei:B.IMEI},offer_id:B.notselected_offer_id,device_id:B.device_id,postal_code:B.postal_code,sku:x.shopSkuCode};"true"===$("#isEppPage").val()&&(w.store_id=$("#eppCompanyCode").val());B.dataQuoteId=B.id;B.foreverId=null;var e=x.apiDomain,
1101p="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(e=$("#gpvStoreDomain").val(),p="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:e+p,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,data:JSON.stringify(w),timeout:5E3,success:function(k){null!=k&&(null!=k.estimated_discount&&null!=k.estimated_discount.exchange_discount.amount&&0!=Number(k.estimated_discount.exchange_discount.amount)?
1102(B.estimated_discount.exchange_discount.amount=k.estimated_discount.exchange_discount.amount,B.estimated_discount.total.amount=k.estimated_discount.total.amount,null!=k.estimated_discount.total.currency&&(B.estimated_discount.total.currency=k.estimated_discount.total.currency),B.dataQuoteId=k.id,B.foreverId=B.id):(B.dataQuoteId=B.id,B.foreverId=k.id))},complete:function(){x.util.settingExchangeAPIData(B,x,U,x.view)}})};W.prototype.tradeInCeDataV1Api=function(x,U,B){var w={device_id:B.device_id,device_info:{product_condition:$(".radio-v2.active").children("input").val().toLowerCase()},
1103offer_id:B.offer_id,postal_code:B.postal_code,sku:B.sku};"true"===$("#isEppPage").val()&&(w.store_id=$("#eppCompanyCode").val());B.dataQuoteId=B.id;B.foreverId=null;var e=x.apiDomain,p="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(e=$("#gpvStoreDomain").val(),p="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:e+p,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},
1104crossDomain:!0,data:JSON.stringify(w),timeout:5E3,success:function(k){null!=k&&(null!=k.estimated_discount&&null!=k.estimated_discount.exchange_discount.amount&&0!=Number(k.estimated_discount.exchange_discount.amount)?(B.estimated_discount.exchange_discount.amount=k.estimated_discount.exchange_discount.amount,B.estimated_discount.total.amount=k.estimated_discount.total.amount,null!=k.estimated_discount.total.currency&&(B.estimated_discount.total.currency=k.estimated_discount.total.currency),B.dataQuoteId=
1105k.id,B.foreverId=B.id):(B.dataQuoteId=B.id,B.foreverId=k.id))},complete:function(){x.util.settingExchangeAPIData(B,x,U,x.view)}})};W.prototype.calcularAPI=function(x){$.ajax({type:"GET",url:"apiDomain/br/ng/p4v1/calcShippingCost",data:{productCode:"modelCode",zipCode:x},dataType:"jsonp",jsonp:"callback",timeout:5E3,success:function(U){},error:function(U){}})};W.prototype.waitSearchAPI=function(x,U){x.checkingBogoSearchFlag&&x.checkingComboSearchFlag&&x.checkingAddOnSearchFlag&&x.checkingGiftSearchFlag&&
1106this.callSearchApi(x,U)};W.prototype.historyBackEvent=function(){-1!=navigator.userAgent.indexOf("Android 4.")&&navigator.userAgent.indexOf("AppleWebKit");var x="add-on",U="add on",B="-option-select";$(".hubble-addon-page").is(":visible")&&($(".hubble-addon-page").hasClass("is-gift-type")?(
1106x="freegift",U="free gift",B="-cta-option alert popup"):v.detailSharedObj.isVoucher&&(U=x="evoucher"));var w=!1;window.addEventListener("popstate",function(e){e&&(w=!0,$("body").css("display","none"),window.location.reload())});
1107w||$("body").css("display","");setTimeout(function(){var e=new URL(location.href);e.searchParams.has("addon")||e.searchParams.set("addon",!0);history.pushState(null,document.title,e.toString());window.addEventListener("popstate",function(p){w||($("#content").is(":visible")?history.back():(p={htmlText:Granite.I18n.get("Your selections will not be saved if you exit. Exit window?",null,i18n_hint),btnPrimaryText:Granite.I18n.get("Yes",null,i18n_hint),btnGhostText:Granite.I18n.get("No",null,i18n_hint),
1108btnPrimaryAttrs:{"an-tr":"bridge_"+U+"-"+bcPageTrack()+B,"an-ca":"option click","an-ac":"bridge","an-la":x+":reset option:yes","data-modelcode":v.detailSharedObj.modelCode,"data-modeldisplay":v.detailSharedObj.displayName,"data-modelname":v.detailSharedObj.modelName,"data-modelrevenue":v.detailSharedObj.proudctPriceInfo.salePrice,"data-modelprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pvitype":v.detailSharedObj.pvitype.toLowerCase(),"data-pvisubtype":v.detailSharedObj.pvisubtype.toLowerCase(),
1109"data-discountprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":v.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"},btnGhostyAttrs:{"an-tr":"bridge_"+U+"-"+bcPageTrack()+B,"an-ca":"option click","an-ac":"bridge","an-la":x+":reset option:no","data-modelcode":v.detailSharedObj.modelCode,"data-modeldisplay":v.detailSharedObj.displayName,"data-modelname":v.detailSharedObj.modelName,"data-modelrevenue":v.detailSharedObj.proudctPriceInfo.salePrice,"data-modelprice":v.detailSharedObj.proudctPriceInfo.salePrice,
1110"data-pvitype":v.detailSharedObj.pvitype.toLowerCase(),"data-pvisubtype":v.detailSharedObj.pvisubtype.toLowerCase(),"data-discountprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":v.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"}},bc_confirm.notify(p,"history-back"),$(".confirm-popup").off("click",'.cta[data-event-type\x3d"history-back"]'),$(".confirm-popup").on("click",'.cta[data-event-type\x3d"history-back"]',function(k){if($(this).hasClass("cta--contained"))$("#wrap").removeClass("hubble-content__addon"),
1111$(".confirm-popup").hide(),location.reload();else return history.pushState(null,document.title,location.href),$(".confirm-popup").hide(),!1})))})},500)};W.prototype.callSearchApi=function(x,U){var B=x.siteCode,w=x.pdStageInfo,e=x.pdSearchDomain+"/",p=[],k="",A=x.careAndWarrantySearchList,ca=x.careSearchList,K=x.addOnSearchList,D=x.giftSearchList,h=x.bogoSearchList,C=x.comboSearchList;k=x.noComboSearchList=[];var E=x.realComboSearchList=[];for(ra in A)p.push(A[ra]);for(var T in ca)p.push(ca[T]);for(var R in K)p.push(K[R]);
1112for(var z in D)p.push(D[z]);for(var fa in h)p.push(h[fa].sku);for(var va in C){var ra=C[va];T=[];R=[];for(var oa in ra)z=ra[oa],"ecom"!==z.sku_source?(p.push(z.sku),R.push({sku:z.sku})):T.push(z);0===R.length&&x.globalComboData.push(T);k.push(T);E.push(R)}if(k=p.join(","))x.finishedSearch=!1;else return!1;B={commonCodeYN:"Y",siteCode:B,modelList:k,saleSkuYN:"N",onlyRequestSkuYN:"Y"};va=(p="true"===$("#isEppPage").val())?"epp/v2":"b2c";p&&(B.companyCode=$("#eppCompanyCode").val(),window.sg.epp.common.isUserGroupPricing&&
1113(B.groupName=window.sg.epp.common.groupName));$.ajax({url:e+w+"/"+va+"/product/card/detail/gpv2",type:"GET",data:B,dataType:"json",cache:!0,success:function(da,na,L){na=da.response;da=x.util;if(200===na.statusCode){var N=na.resultData.productList;for(G in N){na=N[G];L=na.modelList;for(var b in L){var r=L[b];da.merge(x.totalSkuList,r.shopSKU,r,"searchProductCard");x.totalSkuList[r.shopSKU]&&(x.totalSkuList[r.shopSKU].categorySubTypeEngName=na.categorySubTypeEngName,x.totalSkuList[r.shopSKU].categorySubTypeCode=
1114na.categorySubTypeCode,x.totalSkuList[r.shopSKU].familyIndex=G)}}x.addOnGift&&x.addOnGift.products&&0<x.addOnGift.products.length&&x.addOnGift.products.filter(function(Z){for(var d in N){var M=N[d];if(M.modelList&&0<M.modelList.length){M=M.modelList;for(var t in M)if(Z.modelCode===M[t].modelCode)return N[d]}}});var G=[];if(x.addOnApiList&&x.addOnApiList.addOn&&x.addOnApiList.addOn.list&&0<x.addOnApiList.addOn.list.length){var P=x.addOnApiList.addOn.list;G=N.filter(function(Z){for(var d in P)for(var M in N){var t=
1115N[M];if(t.modelList&&0<t.modelList.length){t=t.modelList;for(var y in t)if(P[d].discounted_sku===t[y].shopSKU)return Z}}});x.addOnSearchGPv2=G}}},error:function(da,na,L){}
1115,complete:function(){var da=x.util,na=x.bogoSearchList,L=x.addOnApiList,N=x.realComboSearchList;if(L.careAndWarranty&&da.isNotEmptyArray(L.careAndWarranty.list))for(var b in L.careAndWarranty.list){var r=L.careAndWarranty.list[b],G=r.sku;x.totalSkuList[G]&&$.extend(r,x.totalSkuList[G])}if(L.care&&da.isNotEmptyArray(L.care.list))for(var P in L.care.list)b=
1116L.care.list[P],r=b.discounted_sku,x.totalSkuList[r]&&$.extend(b,x.totalSkuList[r]);if(L.addOn&&da.isNotEmptyArray(L.addOn.list)){for(var Z in L.addOn.list)P=L.addOn.list[Z],b=P.discounted_sku,x.totalSkuList[b]&&$.extend(P,x.totalSkuList[b]);x.addOnCategoryList=x.addOnCategoryList.filter(function(X){if(0<X.category.productList.length)return X})}if(L.addOn&&da.isNotEmptyArray(L.gift.list)){Z=!1;for(P=0;P<L.gift.list.length;P++){b=L.gift.list[P];r=b.discounted_sku;G=x.totalSkuList[r];var d=G.inventory,
1117M=!1;d&&d.status&&(M="NOORDER"===d.status.toUpperCase()||"OUTOFSTOCK"===d.status.toUpperCase());M?L.gift.list.splice(P--,1):G&&-1<G.apiType.indexOf("searchProductCard")&&($.extend(b,x.totalSkuList[r]),Z=!0)}Z||(x.drawObj.offer.gift.hasItem=!1,x.view.productOfferDraw(x.drawObj));0===L.gift.list.length&&(x.hasAddOns?window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():setInterval(function(){v.DetailAfterEvent.addToCartCta([],!0,!0)},1E3))}if(da.isNotEmptyArray(na)){for(var t in na)L=
1118na[t],Z=L.sku,x.totalSkuList[Z]&&$.extend(L,x.totalSkuList[Z]);g(x,U,na)}if(da.isNotEmptyArray(C)){for(var y in N){da=N[y];for(var I in da)na=da[I],t=na.sku,x.totalSkuList[t]&&$.extend(na,x.totalSkuList[t])}l(x)}x.finishedSearch=!0;x.util.afterTotalAPI(x,U)}})};W.prototype.callAddOnApi=function(x,U){var B=x.shopSkuCode,w=x.apiDomain.replace("/v6/","")+"/v4/configurator/add-ons-linear";B="sku\x3d"+B+"\x26expand_details\x3dtrue";"true"===$("#isEppPage").val()&&(B+="\x26store_id\x3d"+$("#eppCompanyCode").val());
1119x.finishedAddOn=!1;$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},type:"GET",url:w,data:B,dataType:"json",timeout:1E4,async:!0,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(e){var p=0;for(C in e.expanded.product_tags){p++;var k=e.expanded.product_tags[C];x.addOnCategoryList.push({category:{display_name:!x.useAddonV2&&k.formatted_sales_pitch[0]?k.formatted_sales_pitch[0]:k.sales_pitch[0],id:k.id,product_tag:k.product_tag_name,
1120key:p,order:p,productList:[]}})}p=[];for(var A in e.products)for(var ca in x.addOnInfoTemp)e.products[A].sku===x.addOnInfoTemp[ca].discounted_sku&&p.push(e.products[A]);for(var K in x.addOnCategoryList)for(var D in p)for(var h in p[D].product_tags)x.addOnCategoryList[K].category.product_tag===p[D].product_tags[h]&&x.addOnCategoryList[K].category.productList.push(p[D]);p=x.careAndWarrantySearchList=[];h=x.careSearchList=[];A=x.addOnSearchList=[];D=x.giftSearchList=[];ca=x.addOnApiList;K=x.util;var C=
1121"type2"!==x.pdSmcType;e&&e.products&&(x.hasAddonApiData=!0);for(var E in e.products)K.merge(x.totalSkuList,E,e.products[E],"addOn");if(C){if(K.isNotEmptyArray(ca.careAndWarranty.list)){E=ca.careAndWarranty.list;for(var T in E)"ecom"!==E[T].sku_source&&p.push(E[T].discounted_sku)}if(K.isNotEmptyArray(ca.care.list)){T=ca.care.list;for(var R in T)"ecom"!==T[R].sku_source&&h.push(T[R].discounted_sku)}}if(K.isNotEmptyArray(ca.gift.list)){R=ca.gift.list;for(var z in R)R[z].discounted_sku&&D.push(R[z].discounted_sku);
1122$.extend(x.addOnGift.expanded,e.expanded);e=x.addOnGift;x.giftFlag&&(e=e.expanded.product_tags||"",x.hasGift=e&&e.GIFT&&"addon_group"===e.GIFT.category&&"GIFT"===e.GIFT.product_tag_name?!0:!1)}if(K.isNotEmptyArray(ca.addOn.list)){e=ca.addOn.list;for(var fa in e)e[fa].discounted_sku&&A.push(e[fa].discounted_sku)}},error:function(e){e.responseJSON&&e.responseJSON.message&&(e=e.responseJSON.message,confirmPopup(e))},complete:function(){var e=x.commonApiModel,p=x.addOnApiList,k=x.util;x.checkingAddOnSearchFlag=
1123!0;x.finishedAddOn=!0;x.checkingGiftSearchFlag=!0;if(p.careAndWarranty&&k.isNotEmptyArray(p.careAndWarranty.list))for(var A in p.careAndWarranty.list){var ca=p.careAndWarranty.list[A],K=ca.sku;x.totalSkuList[K]&&$.extend(ca,x.totalSkuList[K])}if(p.care&&k.isNotEmptyArray(p.care.list))for(var D in p.care.list)A=p.care.list[D],ca=A.discounted_sku,x.totalSkuList[ca]&&$.extend(A,x.totalSkuList[ca]);if(p.addOn&&k.isNotEmptyArray(p.addOn.list))for(var h in p.addOn.list)D=p.addOn.list[h],A=D.discounted_sku,
1124x.totalSkuList[A]&&$.extend(D,x.totalSkuList[A]);if(p.addOn&&k.isNotEmptyArray(p.gift.list))for(var C in p.gift.list)k=p.gift.list[C],h=k.discounted_sku,x.totalSkuList[h]&&$.extend(k,x.totalSkuList[h]);e.waitSearchAPI(x,U);x.util.afterTotalAPI(x,U)}})};W.prototype.settingWishList=function(x,U){var B=x.drawObj,w=B.wishList,e=$.cookies.get("jwt_"+x.countryIsoCode,{domain:".samsung.com"}),p=x.stockLevelStatus,k=x.proudctPriceInfo.salePrice,A=commonLoginCheck(),ca=x.apiDomain,K=x.pdMultiLanguageYN,D=
1125x.pdHrefLang,h=x.view,C=-1<$("#shopIntegrationFlag").val().indexOf("GPv2"),E=x.util;w.stockLevelStatus=p;w.price=k;w.moCode=x.shopSkuCode?x.shopSkuCode:x.modelCode;w.moName=x.modelName;w.labelText=Granite.I18n.get("add wishlist")+" : "+x.modelName;w.targetId="#wishlist-popup";w.contentWrapperClass="NOORDER"===p||"LEARNMORE"===p?"js-btn-wishlist js-not-for-sale-wishlist tg-add-wishlist js-learnmore":k?A?"s-btn-wishlist js-select-wishlist tg-add-wishlist":"s-btn-wishlist js-create-wishlist tg-add-wishlist":
1126"js-btn-wishlist js-not-for-sale-wishlist js-learnmore tg-add-wishlist";
1126C?A?(B="","true"===$("#isEppPage").val()&&(B="?store_id\x3d"+$("#eppCompanyCode").val()),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store-global","x-ecom-jwt":e},url:ca+"/v4/identity/wishlist"+B,type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(T){"Y"===K&&T.setRequestHeader("x-ecom-locale",D)},
1127success:function(T,R,z){R=x.drawObj.wishList;z=R.moCode;if(T)for(var fa=0;fa<T.length;fa++){var va=T[fa];if(!1===va.deleted&&va.sku===z){R.labelText=Granite.I18n.get("Remove wishlist")+" : "+x.modelName;R.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist";R.isSelected="true";break}}},error:function(T,R,z){},complete:function(){var T=x.util;x.view.productWishListDraw(x.drawObj);T.settingWishlistTagging(x,U)}})):(h.productWishListDraw(B),E.settingWishlistTagging(x,
1128U)):-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg")?A?this.settingWishListOldHybris(x,U):(h.productWishListDraw(B),E.settingWishlistTagging(x,U)):"Hybris"==$("#shopIntegrationFlag").val()&&x.isOldHybrisWishlist&&(A?this.settingWishListOldHybris(x,U):(h.productWishListDraw(B),E.settingWishlistTagging(x,U)));if(null===e||""===e)return!1};W.prototype.settingWishListOldHybris=function(x,U){var B="",w=""==x.multistoreSiteCd||"ae"!=x.siteCodeWithEpp&&"ae_ar"!=x.siteCodeWithEpp?!1:!0;$("#shopParmLang").val()&&
1129(B="\x26lang\x3d"+$("#shopParmLang").val());var e=$("#newHyvStoreDomain").val(),p=e+"/tokocommercewebservices/v2/"+x.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productCode\x3d"+x.modelCode+B;w&&(p=e+"/tokocommercewebservices/v2/"+x.multistoreSiteCd+"/users/current/wishlist/default/product/exist?productCode\x3d"+x.modelCode+B);$.ajax({url:p,type:"GET",timeout:2E4,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(k){var A=x.drawObj.wishList;k&&-1<k.toLowerCase().indexOf("my wishlist")&&
1130(A.labelText=Granite.I18n.get("Remove wishlist")+" : "+x.modelName,A.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",A.isSelected="true")},error:function(k){},complete:function(){var k=x.util;x.view.productWishListDraw(x.drawObj);k.settingWishlistTagging(x,U)}})};W.prototype.settinsUpgradeTncData=function(x,U){U=[x.shopSkuCode];var B=x.apiDomain,w="";isEPP&&(w="\x26store_id\x3d"+$("#eppCompanyCode").val());var e="true"===$("#isEppPage").val()?
1131{withCredentials:!0}:{};$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:B+"/v1/tnc?display\x3dupgrade\x26tags\x3d"+U+w,type:"GET",dataType:"json",xhrFields:e,timeout:2E4,success:function(p,k,A){if(p){k=[];A=x.view;for(var ca=x.drawObj,K=0;K<p.length;K++){var D=p[K].data;!0===D.is_active&&k.push({index:K,dataId:D.id,text:D.content,isReadOnly:!0===D.read_only,is_required:!0===D.is_required})}ca.upgrade.embedData.tncData=k;A.upgradeDraw(ca)}}})};
1132W.prototype.offlineStockAjax=function(x){if("true"===$("#isEppPage").val()&&"true"==window.sg.epp.common.offlineFlag&&"OUTOFSTOCK"!=x.stockLevelStatus.toUpperCase()){var U=!1;"INSTOCK"===x.stockLevelStatus.toUpperCase()&&(U=!0);var B=!1;$.ajax({url:x.apiDomain+"/tokocommercewebservices/v2/"+$("#eppCompanyCode").val()+"/users/current/agentStockInfo?productcodes\x3d"+x.shopSkuCode,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(w){w=w.inventory_info;
1133null!=w&0<w.length&&1<=w[0].quantity_available&&(B=!0)},error:function(w,e,p){},complete:function(){if(U||B)$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-teal"),$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-orange");U&&B?($("#offlineBadgeSpan").html(Granite.I18n.get("Available In-Store")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-orange"),x.isStorePopup=!0):U&&!B&&($("#offlineBadgeSpan").html(Granite.I18n.get("Doorstep Delivery")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-teal"))}})}};
1134W.prototype.fetchNewOfferFormat=function(x){var U=$.trim(x.offerText||"");if(""!==U){var B=$.trim(x.linkText||""),w=$.trim(x.url||"");x.newFormat={title:$.trim(x.title),offerText:U,linkEnabled:""!==B&&""!==w,linkText:B,linkUrl:w,imageUrl:$.trim(x.imageURL)};F.isDebug&&console.log(x)}};v.BuyingToolOpAjaxCommon=W;var aa=null;
1134window.visualViewport.addEventListener("resize",function(){var x=document.activeElement;"input"===x.tagName.toLowerCase()&&"text"===x.type.toLowerCase()&&(clearTimeout(aa),aa=setTimeout(function(){x.scrollIntoView({behavior:"smooth",
1135block:"center"})},200))})})();
1136(function(){function l(b,r){r="";var G=$.cookies.get("estoreSitecode",{domain:".samsung.com"});if("levant"===b.siteCode)r="jo";else if("levant_ar"===b.siteCode)r="jo_ar";else if("n_africa"===b.siteCode)r="ma";else{if(b=("ae"===b.siteCode||"ae_ar"===b.siteCode)&&G)b=(new Set("ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" "))).has(G);b&&(r=G)}return r}function g(b,r,G,P){G=b.multistoreSiteCd;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():siteCode;G=b.apiDomain+"/"+G+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+
1137b.modelCode;"py"===b.siteCode&&(G=b.apiDomain+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+b.modelCode);"Y"===b.hybrisJsonYn?$.ajax({url:G,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Z,d,M){u(Z,b,r,P)},error:function(){F(b,r,P)},complete:function(){k(b,r)}}):$.ajax({url:G,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584_0",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
1138success:function(Z,d,M){u(Z,b,r,P)},error:function(){F(b,r,P)},complete:function(){k(b,r)}})}function H(b,r,G,P){G=b.multistoreSiteCd;var Z="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G,d="ca"===G||"ca_fr"===G,M=b.apiDomain+"/"+Z+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+b.modelCode,t="";d&&(t=getSECACountryRegion(),M=M+"\x26country_region\x3d"+t);"tr"===G?(G=b.apiDomain+"/"+Z+"/dotcom/v2/products?sku\x3d"+b.modelCode,Z="true"===$("#isEppPage").val()?{withCredentials:!0}:
1139{},$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:G,xhrFields:Z,type:"GET",dataType:"xml",timeout:1E4,success:function(y){$(y).find("product").each(function(){var I=$(this).find("modelName").text(),X=$(this).find("url").text(),V=$(this).find("stockLevelStatus").text(),O=$(this).find("salesStatus").text(),S=$(this).find("price").text(),Q=$(this).find("priceDisplay").text();b.modelCode==I?"inStock"==V&&"true"==O&&(V=V.toUpperCase(),
1140b.stockLevelStatus=V,b.apiChangeStockStatus=V,b.hasPriceCta=!0,b.buyNowUrl=X,b.proudctPriceInfo.orignalPrice=S,b.proudctPriceInfo.orignalPriceFormatted=Q,b.drawObj.price.priceWrapper.hasPriceWrapper=!0,b.util.settingPriceCta(b.hasPriceCta,b,r,P)):F(b,r,P)})},error:function(){F(b,r,P)},complete:function(){k(b,r)}})):"Y"===b.hybrisJsonYn?$.ajax({url:M,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(y,I,X){n(y,b,r,P)},error:function(){F(b,
1141r,P)},complete:function(){k(b,r)}}):$.ajax({url:M,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(y,I,X){n(y,b,r,P)},error:function(){F(b,r,P)},complete:function(){k(b,r)}})}function u(b,r,G,P){"0000"===b.resultCode&&r.modelCode===b.code?(r.hybrisApiData.shopAPI=b,b.apiType="realtime",W(b,r,G,P)):F(r,G,P)}function n(b,r,G,P){var Z=!1;"0000"===b.resultCode&&0<b.productDatas.length&&$.each(b.productDatas,
1142function(d,M){if(r.modelCode===M.productCode){r.hybrisApiData.shopAPI=M;r.blockEddDisplay=M.blockEddDisplay&&null!=M.blockEddDisplay?M.blockEddDisplay:"Y";r.blockPickupDisplay=0==M.blockPickupDisplay&&null!=M.blockPickupDisplay?"N":"Y";M.apiType="simple";v(M,r,G,P);W(M,r,G,P);if(r.useDeliveryMessage&&(d=M.aemAdditionalInfoTypes))for(var t=0;t<d.length;t++){var y=d[t];y&&"delivery_message"===y.type.toLowerCase()&&(r.deliveryMessage=y.aemAdditionalInfos[0].value)}M.backOrderMessage&&(r.backOrderMessage=
1143M.backOrderMessage);M.shippingETA&&(r.shippingMessage=M.shippingETA);Z=!0;return!1}});Z||(F(r,G,P),r.oldHybrisSalesStatus=!1,r.isSENA&&(r.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null));"0000"===b.resultCode&&"0000"===b.productDatas[0].resultCode&&"ON_SALE"===b.productDatas[0].salesStatus?r.oldHybrisSalesStatus=!0:(r.oldHybrisSalesStatus=!1,r.isSENA&&(r.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null))}function v(b,r,G,P){if(b=b.aemAdditionalInfoTypes)for(P=0;P<b.length;P++){var Z=
1144b[P];if(Z){var d=Z.type.toLowerCase();"voucher"===d?(r.voucherdataHybris=Z.aemAdditionalInfos,r.hasVoucher=!0):"gift"===d?(r.giftdataHybris=Z.aemAdditionalInfos,r.hasGift=!0):"vdcombomessage"===d&&(r.vdcombodataHybris=Z.aemAdditionalInfos);d={};for(var M=0;M<Z.aemAdditionalInfos.length;d={$jscomp$loop$prop$util$341:d.$jscomp$loop$prop$util$341},M++){var t=Z.aemAdditionalInfos[M];t&&t.key&&t.value&&("discountValue"===t.key&&(r.splitPDTradeInSpecial=t.value),"discountmessage"===t.key&&(r.splitPDTradeInSpecialMsg=
1145t.value),"SELLING_WITH_BEZEL"===t.key&&(d.$jscomp$loop$prop$util$341=r.util,r.sellingWithBazel="true"==t.value?!0:!1,r.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(r,r.modelCode,function(y){return function(I,X){var V=[],O=[],S=[],Q=[];X&&null!=I.products&&0<I.products.length&&$.each(I.products,function(ea,la){var ma,ta,xa,sa,Ma,pa="true"===(null==(ma=la.aemAdditionalInfoTypes[0])?void 0:null==(ta=ma.aemAdditionalInfos[0])?void 0:
1146ta.value)?null==(xa=la.aemAdditionalInfoTypes[0])?void 0:null==(sa=xa.aemAdditionalInfos[0])?void 0:null==(Ma=sa.key)?void 0:Ma.toUpperCase():"";ma=""!=la.imageUrl?!0:!1;ta=""==la.imageUrl?!0:!1;xa=la.imageUrl.replace("$ORIGIN_PNG$","");sa=la.stocklevel.toUpperCase();Ma=" is-disabled";if("INSTOCK"==sa||"BACKORDERED"==sa||"PREORDER"==sa||"LOWSTOCK"==sa)Ma="";""==r.bezelImageClass&&ma&&(r.bezelImageClass="pd-select-option__list--image-button");ea={index:ea,modelCode:la.modelcode,name:la.colorName,value:la.colorCode,
1147hasImage:ma,hasNotImage:ta,imageUrl:xa,disabledClass:Ma};
1147"BEZEL_COLOR"===pa?V.push(ea):"BEZEL_MODERN"===pa?O.push(ea):"BEZEL_BEVELLED"===pa?S.push(ea):"FREESTYLE_COLOR"===pa&&Q.push(ea)});r.noneTypeList=V;r.modernTypeList=O;r.beveledTypeList=S;r.freestyleList=Q;y.$jscomp$loop$prop$util$341.settingBezelOptionDraw(r,G)}}(d),null,{queryType:"ADD_COLOR_FOR_VD"})))}}}}function F(b,r,G){b.util.settingPriceCta(!1,b,r,G)}function W(b,r,G,P){var Z=r.util,d=r.drawObj.price.priceWrapper,M=r.priceCurrency;"true"===
1148$("#isEppPage").val()&&"it"===r.siteCode&&((null===b.price||0===b.price)&&null!=b.promotionPrice&&0<b.promotionPrice&&(b.price=b.promotionPrice),r.proudctPriceInfo.b2cPrice=b.price);var t=b.price,y=b.promotionPrice,I;if((null==b?0:null==(I=b.merchFlags)?0:I.length)&&r.useHotDealBadge){var X;if(I=b.merchFlags.find(function(xa){return"true"===(null==(X=xa.attributes)?void 0:X.isHotDealMerchFlag)&&"string"===typeof xa.code})){r.merchText=I.code;var V,O;null==(V=r.view)||null==(O=V.hotDealBadgeDraw)||
1149O.call(V,r.merchText)}}if(r.isNewElementLowestWasPrice&&(V=0,b.lowestWasPrice&&(V=b.lowestWasPrice.value?b.lowestWasPrice.value:0),b.lowestWasPrice&&b.lowestWasPrice.value))if(b.promotionPrice){if(V<=b.price&&V>b.promotionPrice||r.isSENA&&V>b.promotionPrice)t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,r.isNewElementLowestWasPriceSetting=!0;"true"===$("#isEppPage").val()&&"it"===r.siteCode&&(t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,r.isNewElementLowestWasPriceSetting=!0)}else r.isSENA&&
1150V>b.price&&(t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,y=b.price,r.isNewElementLowestWasPriceSetting=!0),V<=b.price&&(t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price);r.isNewElementLowestWasPriceHuType&&(V=0,b.lowestWasPrice&&(V=b.lowestWasPrice.value?b.lowestWasPrice.value:0),y&&0!==Number(y)&&t!==y&&0<V&&(r.isNewElementLowestWasPriceSettingHuType=!0),!0===r.isNewElementLowestWasPriceSettingHuType&&(r.proudctPriceInfo.wasPrice=V,r.proudctPriceInfo.wasPriceFormatted=currencyComma(V,
1151M)));V=null!=b.stockLevelStatus?b.stockLevelStatus.toUpperCase():"";O=null!=b.stockLevelStatusDisplay?b.stockLevelStatusDisplay:"";var S=null!=b.savingInformation?b.savingInformation:"",Q="";Q=I="";"ca"===r.siteCode||"ca_fr"===r.siteCode?r.savingInformation=S:"br"===r.siteCode?(S="",S=null!=b.SavingInformation?b.SavingInformation:"",r.savingInformation=S,Q=null!=b.TaxPriceDisplay?b.TaxPriceDisplay:"",S=null!=b.price?b.price:"",r.taxPriceDisplay=Q,"OUTOFSTOCK"==V&&(r.taxPriceDisplay=S,r.savingInformation=
1152""),Q=null!=b.savingValue?b.savingValue:"",r.savingValue=Q,b.installmentPlan&&b.installmentPlan.storeText&&(I=null!=b.installmentPlan.storeText?b.installmentPlan.storeText:""),r.storeText=I):"ar"===r.siteCode&&(r.taxPriceDisplay=null!=b.TaxPriceDisplay?currencyComma(b.TaxPriceDisplay,"ars").replaceAll(" ARS",""):"");"LOWSTOCK"==V&&(r.stockLevelStatusDisplay=O);"INSTOCK"==V||"LOWSTOCK"==V?(V=b.flagPreOrder&&"Y"===b.flagPreOrder?"PREORDER":"INSTOCK","ca"!==r.siteCode&&"ca_fr"!==r.siteCode||"Y"!==b.reserveNowBtnYn||
1153(r.hasReserveInStore=!0)):"OUTOFSTOCK"==V?(r.isOutOfStock=!0,"realtime"!==b.apiType||r.useStockAlert?(r.useStockAlert&&(r.skuId=b.skuId),V="OUTOFSTOCK"):V="NOORDER"):""==V&&(V="NOORDER");r.stockLevelStatus=V;r.apiChangeStockStatus=V;r.hasPriceCta=!0;Z.settingPriceCta(r.hasPriceCta,r,G,P);"realtime"===b.apiType&&(t=deleteCurrency(b.price,M).trim(),y=deleteCurrency(b.promotionPrice,M).trim());if("at"===r.siteCode)if(!1===(null==b?void 0:b.isFreeDeliveryCost)){r.proudctPriceInfo.shippingCostPopup={};
1154r.proudctPriceInfo.isFreeDeliveryCost=b.isFreeDeliveryCost;var ea;r.proudctPriceInfo.shippingCostPopup.deliveryModes=null==b?void 0:null==(ea=b.deliveryModes)?void 0:ea.deliveryMode;var la;r.proudctPriceInfo.shippingCostPopup.deliveryServices=null==b?void 0:null==(la=b.deliveryServices)?void 0:la.deliveryService}else if(null==b?0:b.isFreeDeliveryCost)r.proudctPriceInfo.itsFreeDelivery=!0;y||(y=t);y&&0!==Number(y)&&(d.hasPriceWrapper="NOORDER"!==V?!0:!1,r.proudctPriceInfo.orignalPrice=t,r.proudctPriceInfo.orignalPriceFormatted=
1155b.priceFormatted?b.priceFormatted:currencyComma(t,M),r.proudctPriceInfo.salePrice=y,r.proudctPriceInfo.salePriceFormatted=b.promotionPriceFormatted?b.promotionPriceFormatted:y===t?r.proudctPriceInfo.orignalPriceFormatted:currencyComma(y,M),b.promotionPriceValidTo&&(r.proudctPriceInfo.promotionPriceValidTo=b.promotionPriceValidTo));if(r.isHyIntg&&b.aemAdditionalInfoTypes&&0<b.aemAdditionalInfoTypes.length){P=b.aemAdditionalInfoTypes;for(var ma in P)if(Z=P[ma],"TRADEIN"===Z.type&&Z.aemAdditionalInfos&&
11560<Z.aemAdditionalInfos.length)for(var ta in Z.aemAdditionalInfos)M=Z.aemAdditionalInfos[ta],"TRADEIN_TEXT"===M.key&&M.value&&(r.proudctPriceInfo.salePriceFormatted=M.value)}"simple"===b.apiType&&aa(r,G);d.info.summaryPrice=r.proudctPriceInfo.salePriceFormatted}
1156function aa(b,r){var G=b.multistoreSiteCd,P="ae ae_ar jo jo_ar sa sa_en za ma eg".split(" "),Z="";"true"===$("#isEppPage").val()&&P.includes(G)&&(Z="/nocache");P="ca"===G||"ca_fr"===G;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
1157G;G=b.apiDomain+"/"+G+"/servicesv2"+Z+"/leasingInfo?productCode\x3d"+b.modelCode;Z="";P&&(Z=getSECACountryRegion(),G=G+"\x26country_region\x3d"+Z);Z="true"===$("#isEppPage").val()?{withCredentials:!0}:{};"Y"===b.hybrisJsonYn?$.ajax({url:G,type:"GET",cache:!0,crossDomain:!0,xhrFields:Z,dataType:"json",timeout:2E4,success:function(d){x(d,b,r)}}):$.ajax({url:G,type:"GET",cache:!0,crossDomain:!0,xhrFields:Z,dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_171",timeout:2E4,success:function(d){x(d,
1158b,r)}})}function x(b,r,G){if(b&&0<b.length){var P="";if("se"==siteCode){var Z=$("\x3cdiv\x3e"),d=0;$.each(b,function(M,t){if("se-fairownPaymentMode"===t.paymentModeCode){var y=t.months/12,I=t.months,X=Granite.I18n.get("Years"),V=Granite.I18n.get("months");X=y+" "+X+" ("+I+" "+V+")";var O=parseFloat(t.monthly);0===M&&(d=O);O<=d&&(d=O);t=$("\x3cdiv\x3e").addClass("checkbox-radio");X=$("\x3cinput\x3e").attr({type:"radio",name:"model","data-monthly":O,"data-renewalPeriod":X,"data-service-code":"SE-FAIROWN-TV-"+
1159I,class:"samsung-flex-popup__radio-item-input hidden",id:"radio-item-"+(M+1)});0===M&&X.attr("checked","");M=$("\x3clabel\x3e").attr("for","radio-item-"+(M+1)).addClass("samsung-flex-popup__smc-inner");V=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-name");y=$("\x3cstrong\x3e").addClass("samsung-flex-popup__smc-monthly").text(y+" \u00e5r ( "+I+" m\u00e5nader)");I=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");var S=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");
1160V.append(y,I,S);y=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-content");O=$("\x3cstrong\x3e").addClass("samsung-flex-popup__smc-monthly").text(" "+O+" kr/m\u00e5n");I=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");S=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");y.append(O,I,S);M.append(V,y);t.append(X,M);Z.append(t)}else P=t});console.log("## [SAMS UPGRADE] ## Msg: Renewal plans data from the Leasing API is: ",Z);0<$(".samsung-flex-popup__smc-renewal-plans-wrapper").length&&
1161$(".samsung-flex-popup__smc-renewal-plans-wrapper").html(Z);0<$("#trade-up-default-00").length&&(window.sg.components.SamsungFlexPopup.originalUptoDisplayPrice="Fr\u00e5n "+d+" kr/m\u00e5n",$("#trade-up-default-00").siblings(".pd-option-selector__label").find(".pd-option-selector__sub-text").text(window.sg.components.SamsungFlexPopup.originalUptoDisplayPrice));window.sg.components.SamsungFlexPopup&&(window.sg.components.SamsungFlexPopup.originalContentPriceSummaryPageLoad=window.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePriceFormatted,
1162window.sg.components.SamsungFlexPopup.originalContentPriceNavigationPageLoad=window.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePriceFormatted)}else P=b[0];r.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=P.monthly;r.proudctPriceInfo.monthlyPriceInfo.tenureVal=P.months;"hu"==siteCode&&(r.proudctPriceInfo.monthlyPriceInfo.interest=P.interest);null!==P.monthly&&""!==P.monthly&&void 0!==P.monthly&&(r.drawObj.price.priceWrapper.isLeasingInfo=!0);r.util.totalAfterFunction(r,G)}b&&0<b.length&&
1163($.each(b,function(M,t){if("ru"!=siteCode&&"24"==t.months||"ru"==siteCode&&"12"==t.months)r.proudctPriceInfo.leaseInfo.upfront=null!=t.upfront&&""!=t.upfront?t.upfront:0,r.proudctPriceInfo.leaseInfo.monthly=null!=t.monthly&&""!=t.monthly?t.monthly:"",r.proudctPriceInfo.leaseInfo.month=null!=t.months&&""!=t.months?t.months:""}),fa(r,G))}function U(b,r,G,P){var Z=b.drawObj,d=b.util,M=b.buyNowUrlYn,t=b.buyNowUrl,y=b.multistoreSiteCd,I=b.configuratorUrl,X=b.ctaLocalText,V=b.configuratorUseYn,O=$("#tempTitle").val(),
1164S=$("#shopIntegrationFlag").val(),Q=b.wtbUseYn,ea=b.wtbDispFuncUseYN,la=Z.price,ma="",ta={},xa="javascript:;",sa="",Ma={},pa="javascript:;",a={};a.modelName=b.modelName;a.dataTtile=b.pdRemoveTagTxt;a.imgSrc=b.wtbSrc;a.iaCode=b.wtbSubTypeCode;a.dataModelCode=b.modelCode;ma=!0;"Hybris"===S||"Hybris-intg"===S?"N"!==globalShopInfo.shopServiceYN&&b.oldHybrisSalesStatus||(ma=!1):"Hybris-new"===S?b.newHybrisSalesStatus||(ma=!1):"GPv2"===S&&b.accessoryDisabled&&(ma=!1);"mx"===siteCode&&(Q="N");M?t?(sa=ma=
1165"js-buy-now tg-buy-now",S=M=Granite.I18n.get("buy now"),pa=xa=t):(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma.modelName=b.modelName,Ma.dataTtile=b.pdRemoveTagTxt,Ma.imgSrc=b.wtbSrc,Ma.iaCode=b.wtbSubTypeCode,Ma.dataModelCode=b.modelCode,ta=Ma,"mx"===siteCode&&(S=M=Granite.I18n.get("not for sale"),sa=ma="cta--disabled tg-not-for-sale")):S?"Y"===Q?"Y"===ea&&"3rd"!==S?ma?(ta.moCode=b.shopSkuCode,ta.ctaType="add-cart",Ma=ta,S=M=Granite.I18n.get("Add to cart"),sa=ma="js-buy-now tg-add-to-cart"):
1166(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma=ta=a):(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma=ta=a):(S=M=Granite.I18n.get("not for sale"),sa=ma="cta--disabled tg-not-for-sale"):"Y"===Q?(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma=ta=a,t="true"===$("#
1166isEppPage").val()?{withCredentials:!0}:{},"tr"===y&&$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:b.apiDomain+"/"+
1167y+"/dotcom/v2/products?sku\x3d"+b.modelCode,type:"GET",dataType:"xml",xhrFields:t,timeout:1E4,success:function(c){$(c).find("product").each(function(){var m=$(this).find("modelName").text(),f=$(this).find("url").text(),q=$(this).find("stockLevelStatus").text(),ba=$(this).find("salesStatus").text(),J=$(this).find("price").text(),ha=$(this).find("priceDisplay").text();b.modelCode==m?"inStock"==q&&"true"==ba&&(q=q.toUpperCase(),b.stockLevelStatus=q,b.apiChangeStockStatus=q,b.hasPriceCta=!0,b.buyNowUrl=
1168f,b.proudctPriceInfo.orignalPrice=J,b.proudctPriceInfo.orignalPriceFormatted=ha,b.drawObj.price.priceWrapper.hasPriceWrapper=!0,b.util.settingPriceCta(b.hasPriceCta,b,r,P)):F(b,r,P)})},error:function(){F(b,r,P)},complete:function(){k(b,r)}})):(S=M=Granite.I18n.get("not for sale"),sa=ma="cta--disabled tg-not-for-sale");"Y"===V&&"page-standard-pd"===O&&(""!==I&&null!==I?(pa=xa=I,ta.ctaType="",Ma=ta,sa=ma="configuratorUse-y"):sa=ma="cta--disabled configuratorUse-y",""!==X&&null!==X&&(S=M=X),la.configuratorEnabled=
1169!0,$(".pd-g-product-detail-header-ux2").hide());la.isNotForSale=!la.configuratorEnabled&&S===Granite.I18n.get("not for sale");la.wtbAttr=d.getAttrCta(void 0,"javascript:;","_self","",{});la.containedAttr=d.getAttrCta(M,xa,"_self",ma,ta);la.anchorNaviAttr=d.getAttrCta(S,pa,"_self",sa,Ma);d.settingForBusiness(b,r);G.productDraw(Z);d.settingPriceDraw(b,r);b.commonApiModel.settingWishList(b,r);d.clickEventListener(b,r)}function B(b,r,G,P,Z,d){if(!L){L=!0;var M="br"===b.siteCode||"latin"===b.siteCode||
1170"ar"===b.siteCode||"py"===b.siteCode;"true"===$("#isEppPage").val()&&(M="br"===b.siteCode||"latin"===b.siteCode||"ar"===b.siteCode||"py"===b.siteCode);M?e(b,P,Z):w(b,r,G,P,Z,d)}}function w(b,r,G,P,Z,d){var M="Hybris-new"===$("#shopIntegrationFlag").val(),t="",y=0,I=!0,X=!1,V="",O=!1,S={products:[]};if("id"==b.siteCode||"my"==b.siteCode)V=$("#delivery-zipcode").val();if(b.modelCode){if(b.exchangeApiData&&b.exchangeApiData.exchangeFlag&&b.ceTradeUpPopup.isEnabled)if(CeTradeUpPopup.context.modelPackage)for(var Q=
1171$jscomp.makeIterator(CeTradeUpPopup.context.modelPackage.models),ea=Q.next();!ea.done;ea=Q.next()){var la=ea.value;ea={productCode:la.modelCode,quantity:1};var ma="products["+y+"]";t+=ma+".productCode\x3d"+la.modelCode+"\x26"+ma+".quantity\x3d1";la.modelCode===CeTradeUpPopup.context.modelCode&&(ea.services=[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}],la="\x26"+ma+".services[0]",t+=la+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+la+".provider\x3dEXCHANGE");S.products.push(ea);
1172y++}else Q=b.proudctPriceInfo.productCartCount&&1<b.proudctPriceInfo.productCartCount?b.proudctPriceInfo.productCartCount:1,t+="products["+y+"].productCode\x3d"+b.modelCode,t+="\x26products["+y+"].quantity\x3d"+Q,ea="\x26products["+y+"].services[0]",t+=ea+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+ea+".provider\x3dEXCHANGE",S.products.push({productCode:b.modelCode,quantity:Q,services:[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}]}),y++;else Q=b.proudctPriceInfo.productCartCount&&
11731<b.proudctPriceInfo.productCartCount?b.proudctPriceInfo.productCartCount:1,t+="products["+y+"].productCode\x3d"+b.modelCode,t+="\x26products["+y+"].quantity\x3d"+Q,S.products.push({productCode:b.modelCode,quantity:Q}),y++;("id"==b.siteCode&&M||"my"==b.siteCode)&&null!=V&&void 0!=V&&""!=V&&(t+="\x26products[0].postalCode\x3d"+V,S.products[0].postalCode=V);b.giftCard.isGiftCard&&b.giftCard.cartGiftCardCode&&(V={key:"giftcard_personalized_message",value:b.giftCard.personalizedMessage},Q=[{key:"giftcard_amount",
1174value:b.giftCard.selectedPrice},{key:"giftcard_recipient_email",value:b.giftCard.email},{key:"giftcard_recipient",value:b.giftCard.firstName+" "+b.giftCard.lastName}],null!=b.giftCard.personalizedMessage&&""!=b.giftCard.personalizedMessage&&Q.push(V),t+="\x26products[0].productC
1174ode\x3d"+b.giftCard.cartGiftCardCode,t+="\x26products[0].quantity\x3d1",S.products[0].additionalInfos=Q)}b.cartBezelCode&&(t+="\x26products["+y+"].productCode\x3d"+b.cartBezelCode,t+="\x26products["+y+"].quantity\x3d1",S.products.push({productCode:b.cartBezelCode,
1175quantity:1}),y++);var ta=0;V=b.globalServiceInfo;if(b.isMultiTradeIn){if(!b.drawObj.tradeInResult.priceOverFlag||"nl"!==siteCode&&"be"!==siteCode&&"be_fr"!==siteCode&&"sg"!==siteCode&&"vn"!==siteCode&&"my"!==siteCode&&"id"!==siteCode&&"fr"!==siteCode&&"de"!==siteCode&&"sa"!==siteCode&&"sa_en"!==siteCode&&"kz_kz"!==siteCode&&"kz_ru"!==siteCode&&"cl"!==siteCode||(b.drawObj.tradeInResult.priceOverFlag=!1),b.drawObj.tradeInResult.list&&0<b.drawObj.tradeInResult.list.length&&!b.drawObj.tradeInResult.priceOverFlag){var xa=
1176b.drawObj.tradeInResult.list;ta=xa.length;$.each(xa,function(m,f){var q=f.services;if(null==q.tradeInType||void 0==q.tradeInType)q.tradeInType="IMEI";$.each(q.tradeInAdditionalInfo,function(ha,qa){"sg"!=siteCode||"compasia.imei"!=qa.key||isNotEmpty(qa.value)||(qa.value=q.imeiKey);isNotEmpty(q.imeiKey)||qa.key!=q.tradeInType||(q.imeiKey=qa.value)});t+="\x26products[0].services["+m+"].serviceCode\x3d"+encodeURIComponent(q.tradeinId);t+="\x26products[0].services["+m+"].additionalInfos[0].key\x3d"+q.tradeInType;
1177t+="\x26products[0].services["+m+"].additionalInfos[0].value\x3d"+q.imeiKey;f={serviceCode:q.tradeinId,additionalInfos:[{key:q.tradeInType,value:q.imeiKey}]};var ba=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&ba&&(f.serviceCode=q.tradeinId,f.provider=q.provider,f.additionalInfos.push({key:"deviceSku",value:q.tradeinId}));"fr"==siteCode&&q.serviceType&&null!=q.serviceType&&void 0!=q.serviceType&&(f.serviceType=q.serviceTypeCode);oa(S,f);"au"==siteCode&&
1178""!=q.tradeInPrice&&void 0!=q.tradeInPrice&&S.products[0].services[m].additionalInfos.push({key:"discountAmount",value:q.tradeInPrice});if("de"!=siteCode&&1<xa.length||"de"==siteCode&&1<b.maxTradeInsAllowed)t+="\x26products[0].services["+m+"].addToCartType\x3dAPPEND",S.products[0].services[m].addToCartType="APPEND";var J=1;""!=q.questionAndAnswer&&void 0!=q.questionAndAnswer&&(t+="\x26products[0].services["+m+"].additionalInfos["+J+"].key\x3dquestionAndAnswer",t+="\x26products[0].services["+m+"].additionalInfos["+
1179J+"].value\x3d"+encodeURIComponent(JSON.stringify(q.questionAndAnswer)),S.products[0].services[m].additionalInfos.push({key:"questionAndAnswer",value:JSON.stringify(q.questionAndAnswer)}),J++,$.each(q.questionAndAnswer,function(ha,qa){t+="\x26products[0].services["+m+"].assessmentCriteria["+ha+"].name\x3d"+qa.name;t+="\x26products[0].services["+m+"].assessmentCriteria["+ha+"].value\x3d"+qa.value;S.products[0].services[m].assessmentCriteria||(S.products[0].services[m].assessmentCriteria=[]);S.products[0].services[m].assessmentCriteria.push({name:qa.name,
1180value:qa.value})}));null!=q.tradeInAdditionalInfo&&void 0!=q.tradeInAdditionalInfo&&$.each(q.tradeInAdditionalInfo,function(ha,qa){t+="\x26products[0].services["+m+"].additionalInfos["+J+"].key\x3d"+qa.key;t+="\x26products[0].services["+m+"].additionalInfos["+J+"].value\x3d"+encodeURIComponent(qa.value);S.products[0].services[m].additionalInfos.push({key:qa.key,value:qa.value});J++})})}}else if(V.tradein&&V.tradein.tradeinId&&!b.ceTradeUpPopup.isEnabled){ta=1;V.tradein.tradeInType||(V.tradein.tradeInType=
1181"IMEI");t+="\x26products[0].services[0].serviceCode\x3d"+V.tradein.tradeinId;t+="\x26products[0].services[0].additionalInfos[0].key\x3d"+V.tradein.tradeInType;t+="\x26products[0].services[0].additionalInfos[0].value\x3d"+V.tradein.imeiKey;Q={serviceCode:V.tradein.tradeinId,additionalInfos:[{key:V.tradein.tradeInType,value:V.tradein.imeiKey}]};ea=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&ea&&(Q.serviceCode=V.tradein.tradeinId,Q.provider=V.tradein.provider,
1182Q.additionalInfos.push({key:"deviceSku",value:V.tradein.tradeinId}));"fr"==siteCode&&V.tradein.serviceType&&null!=V.tradein.serviceType&&void 0!=V.tradein.serviceType&&(Q.serviceType=V.tradein.serviceTypeCode);oa(S,Q);var sa=1;"ca"!==b.siteCode&&"ca_fr"!==b.siteCode&&V.tradein.questionAndAnswer&&(t+="\x26products[0].services[0].additionalInfos["+sa+"].key\x3dquestionAndAnswer",t+="\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+JSON.stringify(V.tradein.questionAndAnswer),M?S.products[0].services[0].additionalInfos.push({key:"questionAndAnswer",
1183value:encodeURIComponent(JSON.stringify(V.tradein.questionAndAnswer))}):S.products[0].services[0].additionalInfos.push({key:"questionAndAnswer",value:JSON.stringify(V.tradein.questionAndAnswer)}),sa++,$.each(V.tradein.questionAndAnswer,function(m,f){t+="\x26products[0].services[0].assessmentCriteria["+m+"].name\x3d"+f.name;t+="\x26products[0].services[0].assessmentCriteria["+m+"].value\x3d"+f.value;S.products[0].services[0].assessmentCriteria||(S.products[0].services[0].assessmentCriteria=[]);S.products[0].services[0].assessmentCriteria.push({name:f.name,
1184value:f.value})}));V.tradein.tradeInAdditionalInfo&&$.each(V.tradein.tradeInAdditionalInfo,function(m,f){t+="\x26products[0].services[0].additionalInfos["+sa+"].key\x3d"+f.key;t=M?t+("\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+f.value):t+("\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+encodeURIComponent(f.value));S.products[0].services[0].additionalInfos.push({key:f.key,value:f.value});sa++});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"my"===
1185b.siteCode||"de"===b.siteCode&&!ea)X=!0,S.clearCart=!0;if("lt"===siteCode||"lv"===siteCode||"ee"===siteCode)V.tradein.cartAdditionalInfos&&
11850<V.tradein.cartAdditionalInfos.length&&(ea={key:"IMEI",value:V.tradein.imeiKey?V.tradein.imeiKey:""},Q.additionalInfos=V.tradein.cartAdditionalInfos,Q.additionalInfos.unshift(ea)),Q.targetProductCode=b.modelCode}b.useWarrantyVd&&$(".option-result--extended-warranty-option .option-result__text-wrap").data("model-code")&&(t+="\x26products[0].services[0].serviceCode\x3d"+
1186encodeURIComponent($(".option-result--extended-warranty-option .option-result__text-wrap").data("model-code")),oa(S,{serviceCode:encodeURIComponent($(".option-result--extended-warranty-option .option-result__text-wrap").data("model-code"))}));V.care&&V.care.discounted_sku&&(t+="\x26products[0].services["+ta+"].serviceCode\x3d"+encodeURIComponent(V.care.discounted_sku),oa(S,{serviceCode:"true"===$("#isEppPage").val()?V.care.discounted_sku:-1<V.care.discounted_sku.indexOf("+")?V.care.discounted_sku:
1187encodeURIComponent(V.care.discounted_sku)}),ta++);if(V.tariff&&V.tariff.tariffId){if(M){if("fr"===b.siteCode){var Ma={};Ma.planId=V.tariff.tariffId;Ma.serviceType="SIM_PLAN";oa(S,Ma)}else if(V.tariff&&V.tariff.modelCode&&V.tariff.simSkuCode)if(t+="\x26products[0].services["+ta+"].planId\x3d"+V.tariff.modelCode,t+="\x26products[0].services["+ta+"].serviceCode\x3d"+V.tariff.simSkuCode,V.tariff.isBroadbandService){t+="\x26products[0].services["+ta+"].serviceType\x3dBROADBAND_PLAN";var pa=0<(V.tariff.tariffArr||
1188[]).length?V.tariff.tariffArr[0]:{};t+=function(){var m=[],f;for(f in pa)m.push("\x26products[0].services["+ta+"].serviceAddress."+f+"\x3d"+encodeURIComponent(pa[f]));return m.join("")}();oa(S,{planId:V.tariff.modelCode,serviceCode:V.tariff.simSkuCode,serviceType:"BROADBAND_PLAN",serviceAddress:pa})}else oa(S,{planId:V.tariff.modelCode,serviceCode:V.tariff.simSkuCode});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)X=!0}else Ma={},"se"===b.siteCode||
1189"no"===b.siteCode||"dk"===b.siteCode||"au"===b.siteCode?(Ma.planId=V.tariff.tariffId,Ma.serviceType="SIM_PLAN",S.clearCart=!0):Ma.serviceCode=V.tariff.tariffId,t+="\x26products[0].services["+ta+"].serviceCode\x3d"+V.tariff.tariffId,$.each(V.tariff.tariffArr,function(m,f){t+="\x26products[0].services["+ta+"].additionalInfos["+m+"].key\x3d"+f.key;t+="\x26products[0].services["+ta+"].additionalInfos["+m+"].value\x3d"+f.value;Ma.additionalInfos||(Ma.additionalInfos=[]);Ma.additionalInfos.push({key:f.key,
1190value:f.value})}),oa(S,Ma);ta++}V.combo&&0<V.combo.length&&$.each(V.combo,function(m,f){t+="\x26products["+y+"].productCode\x3d"+f.modelCode;t+="\x26products["+y+"].quantity\x3d1";S.products.push({productCode:f.modelCode,quantity:1});y++;("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)&&null!=f&&-1<f.modelCode.indexOf("SIM")&&(X=!0)});V.embedaddon&&0<V.embedaddon.length&&$.each(V.embedaddon,function(m,f){t+="\x26products["+y+"].productCode\x3d"+f;
1191t+="\x26products["+y+"].quantity\x3d1";S.products.push({productCode:f,quantity:1});y++});var a=!1;V=!1;if(Z){if(y=0,t="",S.products=[],$.each(r,function(m,f){t+=(""===t?"":"\x26")+"products["+y+"].productCode\x3d"+f;t+="\x26products["+y+"].quantity\x3d1";S.products.push({productCode:f,quantity:1});y++;a=!0}),d&&0<Object.keys(d).length)for(r=$jscomp.makeIterator(d.modelCode),d=r.next();!d.done;d=r.next())if(modelCode=d.value)t+=(""===t?"":"\x26")+"products["+y+"].productCode\x3d"+modelCode,t+="\x26products["+
1192y+"].quantity\x3d1",y++,S.products.push({productCode:modelCode,quantity:1}),V=!0}else P||(I=!1);r=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl;void 0!==r&&("ae"===siteCode?r=r.replace("/ae/","/"+b.multistoreSiteCd+"/"):"ae_ar"===siteCode&&(r=r.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")));var c=$("#storeWebDomain").val();r="";0==S.products.length&&(S={});d="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd;M?(t=encodeURI(t),
1193r=c+"/"+d+"/ng/p4v1/addToCart?"+t):r=b.apiDomain+"/"+d+"/ng/p4v1/addToCart?"+t;if(a||V)X=!1,r+="\x26clearCart\x3dfalse",S.clearCart=!1;X&&(M||"my"===b.siteCode)&&(r+="\x26clearCart\x3dtrue",S.clearCart=!0);"Y"==b.addToCartPostYn&&(r=M?c+"/"+d+"/servicesv2/addToCart":b.apiDomain+"/"+d+"/servicesv2/addToCart");$(".cm-loader").show();!Z||a||V?"Y"==b.addToCartPostYn?(O=!0,$.ajax({url:r,type:"POST",data:JSON.stringify(S),dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/json",timeout:2E4,
1194beforeSend:function(){$(".cm-loader").show()},success:function(m){if("0000"===m.resultCode||"0002"===m.resultCode)if(updateTotalCartCount(m.cartCount),I){m=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl;void 0!==m&&("ae"===siteCode?m=m.replace("/ae/","/"+b.multistoreSiteC
1194d+"/"):"ae_ar"===siteCode&&(m=m.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")));m="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":
1195m;var f="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,q="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode||"fr"===siteCode,ba=$("#pd-leasing-1").prop("checked"),J=b.drawObj.between.nonPurchase.paymentModeCode;location.href=q&&ba&&null!==J?c+"/"+f+"/cart/payment/"+J:m}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,p(m),"ca"!=siteCode&&"ca_fr"!=siteCode||P||Z||(window.scrollTo(0,0),$(".pdd16-step-buying").hide(),$(".pdd16-step-buying").html(N),$(".pdd16-step-buying").siblings().add($(".pdd16-step-buying").parent().siblings()).show(),
1196$(".add-ons-evoucher-popup").hide(),b.util.clickEventListener(b,G))},error:function(m){$(".cm-loader").hide();L=!1;p(m)},complete:function(){}})):0==O&&("Y"===b.hybrisJsonYn?$.ajax({url:r,type:"GET",data:{},dataType:"json",xhrFields:{withCredentials:!0},timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(m){if("0000"===m.resultCode||"0002"===m.resultCode)if(updateTotalCartCount(m.cartCount),I){var f=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:
1197b.apiDomain+b.cartUrl,q="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode||"fr"===siteCode,ba=$("#pd-leasing-1").prop("checked");m=b.drawObj.between.nonPurchase.paymentModeCode;f="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":f;q&&ba&&null!==m?(q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+q+"/cart/payment/"+m):location.href=f}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,
1198p(m)},error:function(m){$(".cm-loader").hide();L=!1;p(m)}}):(O="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:r,type:"GET",data:{},dataType:"jsonp",xhrFields:O,jsonp:"callback",timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(m){if("0000"===m.resultCode||"0002"===m.resultCode)if(updateTotalCartCount(m.cartCount),I){var f=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,q="be"===siteCode||"be_fr"===siteCode||
1199"nl"===siteCode||"fr"===siteCode,ba=$("#pd-leasing-1").prop("checked");m=b.drawObj.between.nonPurchase.paymentModeCode;f="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":f;q&&ba&&null!==m?(q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+q+"/cart/payment/"+m):location.href=f}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,p(m)},error:function(m){$(".cm-loader").hide();L=!1;p(m)}}))):
1200"ae"===siteCode||"ae_ar"===siteCode?("ae"===siteCode?b.cartUrl=b.cartUrl.replace("/ae/","/"+b.multistoreSiteCd+"/"):"ae_ar"===siteCode&&(b.cartUrl=b.cartUrl.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")),O=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,O="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":O,location.href=O):(O=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:
1201b.apiDomain+b.cartUrl,O="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":O,location.href=O)}function e(b,r,G){r="";
1201b.modelCode&&(r+="productCode\x3d"+b.modelCode,r+="\x26quantity\x3d1",b.exchangeApiData&&b.exchangeApiData.exchangeFlag&&b.ceTradeUpPopup.isEnabled&&(r+="\x26services[0].exchangeId\x3d"+b.exchangeApiData.dataQuoteId+"\x26services[0].provider\x3dEXCHANGE"));G=b.multistoreSiteCd;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
1202G;r=b.apiDomain+"/"+G+"/ng/p4v1/addCart?"+r;"ar"===b.siteCode||"br"===b.siteCode?location.href=b.apiDomain+"/"+b.siteCodeWithEpp+"/getServicesProduct?productCode\x3d"+b.modelCode:"py"===b.siteCode?location.href=b.apiDomain+"/getServicesProduct?productCode\x3d"+b.modelCode:(G="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:r,type:"GET",data:{},dataType:"jsonp",xhrFields:G,jsonp:"callback",async:!1,timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(P){$(".cm-loader").hide();
1203"0000"===P.resultCode?(updateTotalCartCount(P.cartCount),P=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,P="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":P,location.href=P):(L=!1,p(P))},error:function(P){$(".cm-loader").hide();L=!1;p(P)}}))}function p(b){var r=Granite.I18n.get("We're sorry, an error occurred.");"ae"===$("#siteCode").val()||"ae_ar"===$("#siteCode").val()?b&&b.products&&0<b.products.length&&
1204b.products[0].resultMessage&&null!=b.products[0].resultMessage&&(r=b.products[0].resultMessage):"de"==$("#siteCode").val()?b&&b.products&&0<b.products.length&&(b.products[0].productC
1204ode&&null!=b.products[0].productCode?"V-GIFTCARD"==b.products[0].productCode?r=b.products[0].resultMessage:b.resultMessage?r=b.resultMessage:b.responseJSON&&b.responseJSON.message&&(r=b.responseJSON.message):b.resultMessage?r=b.resultMessage:b.responseJSON&&b.responseJSON.message&&(r=b.responseJSON.message)):b.resultMessage?
1205r=b.resultMessage:b.responseJSON&&b.responseJSON.message&&(r=b.responseJSON.message);b&&b.responseJSON&&b.responseJSON.errors&&0<b.responseJSON.errors.length&&b.responseJSON.errors[0]&&b.responseJSON.errors[0].type&&"TokoUpgradeProductsError"==b.responseJSON.errors[0].type&&(r="Please remove Samsung Flex or Samsung Upgrade to order multiple items, or place a separate order.");confirmPopup(r,"error")}function k(b,r){var G=b.drawObj,P=b.view,Z=b.isGPv2AndHyIntg,d=b.isHybrisSplitPD,M=b.isHybrisSplitPDTradeIn,
1206t=b.isHybrisSplitPDSamsungCarePlus,y=b.isHybrisSplitPDUpgrade,I=b.isHybrisSplitPDTariff,X=b.util;$("#categoryGroupCode").val();"au"===siteCode&&b.categoryTypeCode.startsWith("01")&&tariffData.setTariff();X.settingShippingOrBack(b);X.totalAfterFunction(b,r);X.clickEventListener(b,r);if(Z||d){M&&(Z=$("#tempTitle").val(),(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()?((new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein"),bc_common_tradeIn.init()):
1207!b.ceTradeUpPopup.isEnabled||"page-buying-pd"!=Z&&"page-standard-pd"!=Z?(Z=$("#categoryTypeCode").val(),"levant"==siteCode||"levant_ar"==siteCode||"tw"==siteCode||"vn"==siteCode&&Z.startsWith("0805")||"undefined"!==typeof tradeinData&&tradeinData.setTradein()):(0===$("#ce-trade-up-popup-section").length&&(Z=b.ceTradeUpPopup.productCategoryGroup,d=b.ceTradeUpPopup.productCategoryMainType,"at"!==siteCode||"rf"!==d&&"wm"!==d&&"vc"!==d||(Z=d),(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("ce-tradeup."+
1208Z)),window.CeTradeUpPopup.init(b.modelCode)));t&&("ca"===siteCode||"ca_fr"===siteCode?b.useWarrantyVd||configuratorCare.setProductInfo():configuratorCare.setProductInfo());if(y){var V=b.siteCode;d=b.util;M=b.isHybrisSplitPDUpgrade;var O=b.stockLevelStatus;M&&(b.upgradeFlag=!0);t=b.upgradeFlag;var S={};Z={};y=Granite.I18n.get("Pay for your new Galaxy phone in monthly instalments and be invited to upgrade to the new Galaxy as soon as it launches.");var Q=!1;if(M){var ea=Granite.I18n.get("Learn more");
1209S.layerTarget="upgradeLearnMorePopup";M=Granite.I18n.get("Samsung Upgrade");if("es"==V){if("INSTOCK"==O||"LOWSTOCK"==O)Q=!0}else Q=!0;Q&&(V={"class":"hybris-es-yes",text:Granite.I18n.get("Samsung Upgrade")},O={"class":"hybris-es-no",text:Granite.I18n.get("No, thanks"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"},d=d.getAttrCta(ea,"javascript:;","_self","",S,""),G.upgrade={hasComponent:t,isEmbededType:!1,isNotEmbededType:!0,title:M,learnMoreCta:d,description:y,yesAttr:V,noAttr:O,embedData:Z})}}I&&
1210configuratorTariff.setProductInfo()}z(b,"FAIROWN_FLEX")&&(console.log("## [SAMS UPGRADE] ## Msg: FAIROWN_FLEX is available for this product, hence displaying the view."),0<$(".pd-samsung-upgrade-wrapper").length&&$(".pd-samsung-upgrade-wrapper").show());0<b.giftdataHybris.length&&("Hybris"===b.apiFlag||"Hybris-intg"===b.apiFlag?window.sg.components.dynamic.freeGiftHybrisCommon.getRelatedProductsSimpleInfo(b.modelCode):window.sg.components.dynamic.freeGiftHybris.getRelatedProductsSimpleInfo(b.modelCode));
1211"Hybris"===b.apiFlag||"Hybris-intg"===b.apiFlag?((b.addonStepBuying04||b.addonStepBuying0701)&&b.newEmbedVDCountry&&window.sg.components.dynamic.bridgePageCommon.getRelatedProductsVdSimpleInfo(b.modelCode),window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(b.modelCode)):window.sg.components.dynamic.betterTogetherHybris.getRelatedProductsSimpleInfo(b.modelCode);b.isOldHybrisCheckService&&(z(b,"BENEFIT")&&A(b,r),z(b,"SIM")&&(b.simpleInfoSIM=!0));I=b.util;t=b.siteCode;y=b.deliveryPickup.deliverySiteCode;
1212b.isOldHybrisCheckService&&z(b,"POSTAL_CODE")&&(Z=b.siteCode,d=b.stockLevelStatus,M=b.drawObj.delivery,"my"===Z&&(M.hasComponent=!0,M.headline=Granite.I18n.get("Delivery Detail"),M.label=Granite.I18n.get("Enter Zipcode"),M.cancelText=Granite.I18n.get("Delete"),M.enterText=Granite.I18n.get("Search"),"my"===Z&&(M.inputAttr.maxlength="5"),"
1212NOORDER"===d||"OUTOFSTOCK"===d)&&(M.labelClass="text-field--disabled",M.ctaClass="cta--disabled",M.inputAttr.disabled="true"),y.includes(t)&&($(".pd-select-option--delivery-pickup").show(),
1213I.settingDeliveryPickup(b,r)));if(b.isOldHybrisCheckService&&z(b,"warranty")&&b.useWarrantyVd){I=b.siteCode;t=b.drawObj;y=b.view;Z=b.useWarrantyVd;d=b.ceTradeUpPopup.productCategoryGroup;M="";S="_blank";ea="";"it"==I||"my"==I?(M="javascript:;",S="",ea="ExtendedWarrantyLearnMorePopup"):"ae"==I?M="https://www.samsung.com/ae/support-s-care/":"ae_ar"==I?M="https://www.samsung.com/ae_ar/support-s-care/":"au"==I?M="https://www.samsung.com/au/offer/samsung-care-plus/appliances/":"es"!=I||"vd"!=d&&"da"!=
1214d?"nz"==I?M="https://www.samsung.com/nz/offer/care-service/":"n_africa"==I?M="https://www.samsung.com/n_africa/offer/extended-warranty/":"vn"==I?M="https://www.samsung.com/vn/offer/samsung-care-plus-premium/":"ch"==I?M="https://www.samsung.com/ch/support/warranty/":"ch_fr"==I?M="https://www.samsung.com/ch_fr/support/warranty/":"sg"==I?M="https://www.samsung.com/sg/offer/samsung-care-plus/appliances/":"at"==I&&(M="https://www.samsung.com/at/support/warranty/"):M="https://www.samsung.com/es/extensiones-garantia-tv/";
1215V=Granite.I18n.get("Extended Warranty");O="";Q={};var la={},ma={};Z&&($(r.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),Q="ch"==I||"ch_fr"==I?{learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),learnMoreHref:M,learnMoreTarget:S,learnMoreTargetPopup:ea}:{learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:M,learnMoreTarget:S,learnMoreTargetPopup:ea},V=Granite.I18n.get("VD_Extended Warranty_Title"),O=Granite.I18n.get("VD_Extended Warranty_Description"),"nz"!=I||"vd"!=
1216d&&"da"!=d||(V=Granite.I18n.get("VD_Extended Warranty_Title",null,"b2c_"+d),O=Granite.I18n.get("VD_Extended Warranty_Description",null,"b2c_"+d)),la={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},ma={text:Granite.I18n.get("VD_Extended Warranty_NO")});t.warrantyVd={hasComponent:Z,title:V,learnMoreCta:Q,description:O,yesAttr:la,noAttr:ma,subText:""};y.productAddOnWarrantyVd(t)}I=b.util;b.useDeliveryMessage&&I.settingDeliveryMessage(b,r);b.commonApiModel.settingWishList(b,
1217r);P.productDraw(G);X.totalReinit(b,r);X.gpHybrisGlobalEndPoint(b,r)}function A(b,r){var G=b.multistoreSiteCd;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G;var P="";P=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():$("#storeDomain").val();var Z="";$("#shopParmLang").val()&&(Z="\x26lang\x3d"+$("#shopParmLang").val());$.ajax({url:P+"/tokocommercewebservices/v2/"+G+"/products/"+b.modelCode+"/offers?fields\x3dSIMPLE_INFO"+Z,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},
1218crossDomain:!0,timeout:2E4,success:function(d,M,t){if(d&&d.benefits&&0<d.benefits.length)if(M=d.benefits,t=b.drawObj.offer,"Y"===$("#typeux2025").val())K(d.benefits,b,r,"sku");else{d=0;for(var y in M){var I=M[y];b.commonApiModel.fetchNewOfferFormat(I);var X=I.type?I.type.toUpperCase():"";if("COMBO"===X)d+=1,b.commonApiModel.callRelatedAndSearch(b.modelCode,C,{sharedObj:b,promotion:I,selectorObj:r,index:y},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===X){X=y;var V=b,O=V.siteCode,S=V.drawObj.offer,
1219Q=V.financingUrl,ea=R(I,V).iconAlt,la="offer-emi emi-index-"+X,ma=[];V.financingEligible=!0;Q&&(V.emiCalculatorUrl=Q);I.description&&ma.push(I.description);if(0<ma.length){var ta=Q=null,xa=null;"id"!==O&&"ee"!==O&&"lt"!==O&&"lv"!==O&&"pl"!==O||!I.description||(Q=I.description);if("hu"===O||"sg"===O||"my"===O||"nz"===O||"vn"===O||"th"===O)for(V.promotionFinancingFlag=!0,V=0;V<ma.length;V++){var sa=ma[V].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>sa.indexOf("\x3ca")?"in"===O?(ta=sa,xa={label:Granite.I18n.get("Learn more"),
1220labelAnalytics:sa.toLowerCase().replace(/"/g,"")}):(xa={labelAnalytics:sa.toLowerCase().replace(/"/g,"")},xa.label="id"===O||"ee"===O||"lt"===O||"lv"===O||"pl"===O?Granite.I18n.get("Learn more"):sa):ta=sa}else ta=ma.join("");S.promotionFinance.push({offerIndex:X,title:"finance",hasItem:!0,item:{contentWrapperClass:la,iconAttr:{alt:ea},description:{text:Q,hasDescription:null!=Q},emiText:ta,cta:xa,hasCta:null!=xa},newFormat:I.newFormat})}}else"BOGO"===X?(d+=1,h(I,y,b,r)):X||(d+=1,E(I,y,b,r));3<d&&(t.isViewMore=
1221!0)}}},error:function(d,M,t){},complete:function(){D(b,r,0);var d=b.pdChildModelCnt;b.pdPackageYn&&0<d&&ca(b,r)}})}
1221function ca(b,r){var G=b.multistoreSiteCd,P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G,Z="";Z=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():$("#storeDomain").val();var d="";$("#shopParmLang").val()&&(d="\x26lang\x3d"+$("#shopParmLang").val());G=b.pdChildModelCnt;var M=b.drawObj.offer;if(0<G)for(var t=0,y={},I=0;I<G;y={$jscomp$loop$prop$childCode$343:y.$jscomp$loop$prop$childCode$343,
1222$jscomp$loop$prop$childSet$344:y.$jscomp$loop$prop$childSet$344},I++){var X=I+1+"";10>I+1&&(X="0"+(I+1));X=document.querySelector("#pdChidleModel"+X);y.$jscomp$loop$prop$childCode$343=X.dataset.code;y.$jscomp$loop$prop$childSet$344={code:y.$jscomp$loop$prop$childCode$343,name:X.dataset.name,main:X.dataset.main,displayName:X.dataset.displayName};b.pdChildModelList.push(y.$jscomp$loop$prop$childSet$344);(function(V){return function(O){$.ajax({url:Z+"/tokocommercewebservices/v2/"+P+"/products/"+V.$jscomp$loop$prop$childCode$343+
1223"/offers?fields\x3dSIMPLE_INFO"+d,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,success:function(S,Q,ea){if(S&&S.benefits&&0<S.benefits.length){Q=S.benefits;0===t&&(M.childList=[]);M.childList.push({hasComponent:!0,childCode:V.$jscomp$loop$prop$childSet$344.code,displayName:V.$jscomp$loop$prop$childSet$344.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())K(S.benefits,
1224b,r,"child",t);else{S=0;for(var la in Q){ea=Q[la];b.commonApiModel.fetchNewOfferFormat(ea);var ma=ea.type?ea.type.toUpperCase():"";"INSTALLMENT"!==ma&&"COMBO"!==ma&&(S+=1);if(4>S){var ta=t+""+S;"BOGO"===ma?h(ea,ta,b,r,"child",t):ma||E(ea,ta,b,r,"child",t)}}la=b.drawObj.offer.childList;0===S&&la.splice(ord)}t=M.childList.length}},error:function(S,Q,ea){},complete:function(){D(b,r,O+1)}})}})(y)(I)}}function K(b,r,G,P,Z){Z=void 0===Z?0:Z;if(b&&0<b.length){var d=0,M;for(M in b){var t=b[M],y=t.type?t.type.toUpperCase():
1225"";$.trim(t.offerText||"");var I=$.trim(t.title||"");""==I&&(I=$.trim(t.description||""));$.trim(t.linkText||"");$.trim(t.url||"");if(""!==I)if("INSTALLMENT"!==y)d+=1,2>=d&&("child"===P?T(t,Z+""+d,r,G,"child",Z):T(t,M,r,G));else if("child"!=P&&"INSTALLMENT"===y){y=void 0;I=M;var X=r,V=X.siteCode,O=X.drawObj.offer,S=X.financingUrl,Q="offer-emi emi-index-"+I,ea=[];X.financingEligible=!0;S&&(X.emiCalculatorUrl=S);t=$.trim(t.description||"");""!==t&&ea.push(t);if(0<ea.length){S=null;var la=!1,ma=!1,ta=
1226!1,xa=null;if("hu"===V||"sg"===V||"my"===V||"nz"===V||"vn"===V||"th"===V)for(X.promotionFinancingFlag=!0,X=0;X<ea.length;X++){var sa=ea[X].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");xa=sa;0>sa.indexOf("\x3ca")&&("in"===V?(ma=!0,S={label:Granite.I18n.get("Learn more")}):"id"===V||"ee"===V||"lt"===V||"lv"===V||"pl"===V?(ma=!0,S={label:Granite.I18n.get("Learn more")}):la=!0)}else ta=!0,xa=ea.join("");ta||(V=62,ma&&(V=53),xa.length>V&&(y=t,xa=ellipsize(xa,V)),null!=xa&&(xa=xa.replace(/</g,"\x26lt;"),
1227xa=xa.replace(/>/g,"\x26gt;")),null!=y&&(y=y.replace(/</g,"\x26lt;"),y=y.replace(/>/g,"\x26gt;")));O.promotionFinance.push({offerIndex:I,title:"finance",hasItem:!0,item:{contentWrapperClass:Q,offerTooltip:y,emiText:xa,cta:S,hasCta:ma,hasLink:la,hasDesc:ta}})}}}"child"===P&&0===d&&r.drawObj.offer.childList.splice(Z)}}function D(b,r,G){r=b.pdChildModelCnt;var P=!1;b.pdPackageYn?r==G&&(P=!0):P=!0;P&&(b.drawObj.offer.headline=Granite.I18n.getVar("Offer","ux2"),b.view.productOfferDraw(b.drawObj),window.sg.components.PDbuyingToolNew.reInit())}
1228function h(b,r,G,P,Z,d){P=G.drawObj.offer;"child"===(void 0===Z?"product":Z)&&(P=G.drawObj.offer.childList[void 0===d?0:d]);var M=b.image&&b.image.url?b.image.url:"";Z=G.priceCurrency;d=G.pdTimeformatFront;M=G.util.getImgAttr(M,M,b.image&&b.image.altText?b.image.altText:"",{classWapper:"image__main responsive-img"});var t=[],y="";
1228b.description&&t.push({text:b.description});b.startDate&&b.endDate&&!G.isSENA&&"hu"!=G.siteCode&&(y=d?dateFormat(b.startDate.split("T")[0],d)+" ~ "+dateFormat(b.endDate.split("T")[0],
1229d):b.startDate.split("T")[0]+" ~ "+b.endDate.split("T")[0]);G=currencyComma(0,Z);b={offerIndex:r,title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),description:{hasDescription:!0,main:t,date:y},imgAttr:M,price:{hasPrice:!0,price:0,original:"",save:"",now:G}},newFormat:b.newFormat};P.bogo=b}function C(b,r,G){var P=G.index;if(P){if(null==P||""==P)P=0}else P=0;r=G.sharedObj;var Z=r.drawObj,d=Z.offer.combo,M=r.util,t=r.view;G=G.promotion;var y=
1230r.pdTimeformatFront,I=R(G,r),X="",V="";I.promoIconFlag&&(V=I.iconImgName);I=[];G.description?I.push({text:G.description}):I.push({text:Granite.I18n.get("Select combo bundle option")});var O={layerTarget:"shopComboPopup"};O.comboIdx=r.globalComboData.length;M=M.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",O,"");G.startDate&&G.endDate&&!r.isSENA&&"hu"!=r.siteCode&&(X=y?dateFormat(G.startDate.split("T")[0],y)+" ~ "+dateFormat(G.endDate.split("T")[0],y):G.startDate.split("T")[0]+
1231" ~ "+G.endDate.split("T")[0]);P={offerIndex:P,title:"compoBundle",comboIndex:r.globalComboData.length,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:V,description:{hasDescription:!0,main:I,date:X},learnMoreCta:M},newFormat:G.newFormat};d.push(P);t.productOfferDraw(Z,!0);b=window.sg.components.dynamic.comboPopup.setComboData(b.totalResult);r.globalComboData.push(b)}function E(b,r,G,P,Z,d){P=G.drawObj.offer;"child"===(void 0===Z?"product":Z)&&(P=G.drawObj.offer.childList[void 0===
1232d?0:d]);G=R(b,G);Z="offer-promotion promotion-index-"+r;d=[];var M=null;b.description&&d.push(b.description);G.promoIconFlag&&(M="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+G.iconImgName+".svg");var t=null;if(!b.newFormat){var y="";for(t=0;t<d.length;t++)y+=d[t].replace("\x3ca","\x3ca target\x3d'_blank'");t=[];t.push({target:"."+Z.replace(" ",".")+" .pd-offer__desc",text:y})}
1232P.promotionMessage.push({offerIndex:r,title:"promoMessage",hasItem:!0,
1233item:{contentWrapperClass:Z,isIcon:!0,iconAttr:{src:M,alt:G.iconAlt},description:{hasDescription:!0},rowText:t},newFormat:b.newFormat})}function T(b,r,G,P,Z,d){P=G.drawObj.offer;var M="offer-promotion promotion-index-"+r;"child"===(void 0===Z?"product":Z)&&(P=G.drawObj.offer.childList[void 0===d?0:d]);$.trim(b.offerText||"");G=$.trim(b.title||"");""==G&&(G=$.trim(b.description||""));Z=$.trim(b.linkText||"");b=$.trim(b.url||"");"tw"!==siteCode&&""!==b&&(Z=Granite.I18n.get("Learn more"));if(""!==G){d=
123462;""!==Z&&""!==b&&(d=53);if(G.length>d){var t=G;G=ellipsize(G,d)}G=G.replace(/</g,"\x26lt;");G=G.replace(/>/g,"\x26gt;");null!=t&&(t=t.replace(/</g,"\x26lt;"),t=t.replace(/>/g,"\x26gt;"));P.promotionMessage.push({offerIndex:r,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:M,offerTitle:G,offerTooltip:t,linkEnabled:""!==b,linkText:Z,linkUrl:b}})}}function R(b,r){var G=r.promotionImgType?r.promotionImgType.split(","):[];r="";var P=!1,Z="";if(b.image&&(r=b.image.altText,Z=b.image.url))for(b=
1235$jscomp.makeIterator(G),G=b.next();!G.done;G=b.next())if(G.value===Z){P=!0;break}return{iconAlt:r,promoIconFlag:P,iconImgName:Z}}function z(b,r){if(b.hybrisApiData.shopAPI&&b.hybrisApiData.shopAPI.supportedAvailableServices){b=$jscomp.makeIterator(b.hybrisApiData.shopAPI.supportedAvailableServices);for(var G=b.next();!G.done;G=b.next())if(G.value.toUpperCase()===r.toUpperCase())return!0}return!1}function fa(b,r){r=b.siteCode;var G=b.drawObj,P=b.view,Z=b.isHybrisSplitPDLease,d=Granite.I18n.get("Up2You Rental"),
1236M=Granite.I18n.get("Purchase");if(Z){Z=b.proudctPriceInfo.leaseInfo.upfront;var t=b.proudctPriceInfo.leaseInfo.month;b=b.proudctPriceInfo.leaseInfo.monthly;var y=!1;""!==Z&&""!==t&&""!==b&&(y=!0);"ru"===r&&(d=Granite.I18n.get("Buy with Samsung Upgrade"),M=Granite.I18n.get("Buy Now"));G.between={hasComponent:y,purchase:{text:M},nonPurchase:{text:d,dataLeaseing:"",tenureUnit:t,tenureValue:0,monthlyValue:b,paymentValue:Z}};P.betweenDraw(G)}}function va(b,r,G){var P=b.pdSearchDomain+"/",Z="Hybris-intg"===
1237b.apiFlag,d=b.modelCode,M=b.pdStageInfo,t=l(b,r),y=b.siteCode,I=$.cookies.get("country_region")?$.cookies.get("country_region").toString():"",X="global",V=!1;Z&&(X="hybris");Z={commonCodeYN:"N",siteCode:b.siteCode,modelList:d,saleSkuYN:"N",onlyRequestSkuYN:"Y"};"global"===X&&t&&(Z.shopSiteCode=t);if("ca"===y||"ca_fr"===y)Z.regionCode=null!=I&&""!=I?I:"CA-ON";y=(t="true"===$("#isEppPage").val())?"epp/v2":"b2c";t&&(Z.companyCode=$("#eppCompanyCode").val(),Z.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&
1238(Z.groupName=window.sg.epp.common.groupName),""!=window.sg.epp.common.userStoreId&&(Z.o2oId=window.sg.epp.common.userStoreId));$.ajax({url:P+M+("/"+y+"/product/card/detail/")+X,type:"GET",data:Z,dataType:"json",cache:!0,success:function(O,S,Q){S=b.modelCode;Q=b.priceCurrency;V=!0;if(O&&O.response&&O.response&&O.response.resultData&&O.response.resultData.productList){O=O.response.resultData.productList;var ea=b.siteCode,la;for(la in O){var ma=O[la].modelList;if(ma)for(var ta in ma){var xa=ma[ta],sa=
1239xa.ctaType?xa.ctaType.toUpperCase():"";b.stockLevelStatus=sa;S===xa.modelCode&&("trr"!=b.siteCode&&(xa.price&&(b.proudctPriceInfo.orignalPrice=xa.price),xa.priceDisplay?b.proudctPriceInfo.orignalPriceFormatted=xa.priceDisplay:xa.price&&(b.proudctPriceInfo.orignalPriceFormatted=currencyComma(xa.price,Q)),b.proudctPriceInfo.salePrice=xa.promotionPrice?xa.promotionPrice:xa.price,b.proudctPriceInfo.salePriceFormatted=xa.promotionPriceDisplay?xa.promotionPriceDisplay:xa.promotionPrice?currencyComma(xa.promotionPrice,
1240Q):b.proudctPriceInfo.orignalPriceFormatted),xa.monthlyPriceInfo&&xa.monthlyPriceInfo.leasingMonthly&&("au"===ea||"nz"===ea||"ae"===ea||"my"===ea||"sg"===ea||"ca"===ea||"ca_fr"===ea||"it"===ea||"se"===ea||"dk"===ea||"fi"===ea||"no"===ea||"es"===ea||"pt"===ea||"th"===ea||"tw"===ea||"ru"===ea||"ch"===ea||"ch_fr"===ea)&&(b.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=xa.monthlyPriceInfo.leasingMonthly,b.proudctPriceInfo.monthlyPriceInfo.tenureVal=xa.monthlyPriceInfo.leasingMonths),xa.formattedPriceSave&&
1241(b.proudctPriceInfo.rowCodeformattedPriceSave=xa.formattedPriceSave),b.proudctPriceInfo.salePriceFormatted&&"LEARNMORE"!==sa&&"NOORDER"!==sa&&"Y"!==b.oldProductYn&&(b.drawObj.price.priceWrapper.hasPriceWrapper=!0),xa.tradeInPriceText&&b.isHyIntg&&(b.proudctPriceInfo.salePriceFormatted=xa.tradeInPriceText),O[la].productGroupId&&(sa=r.buyingTool.find("reevoo-reviewable-badge"),0<sa.length&&sa.attr("sku","series:"+O[la].productGroupId)),xa.configuratorUrl&&(b.buyNowUrl=xa.configuratorUrl))}}}},error:function(O){console.log(O)},
1242complete:function(){G(b,r,V)}})}function ra(b,r,G){G=b.view;var P=b.currentUrl,Z=b.siteCode,d=("Y"===b.isCart||"Hybris-intg"===b.apiFlag)&&"Y"!==b.oldProductYn;Z="br"===Z||"latin"===Z||"ar"===Z||"py"===Z;var M=b.util;$(r.buyingToolOptCheckDealerStock).remove();d?Z?g(b,r,G,P):H(b,r,G,P):(U(b,r,G,P),M.totalReinit(b,r),M.gpHybrisGlobalEndPoint(b,r))}function oa(b,r){b.products[0].services||(b.products[0].services=[]);b.products[0].services.push(r)}var da=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
1243na=function(){};na.prototype.productAjax=function(b,r){var G=l(b,r),P=b.siteCode;G&&(P=G);
1243b.multistoreSiteCd=P;va(b,r,ra)};na.prototype.callAddToCartCta=function(b,r,G,P,Z,d){B(b,r,G,P,Z,d)};na.prototype.callCheckOutCta=function(b,r,G,P,Z,d){B(b,r,G,P,Z,d)};var L=!1,N=$(".pdd16-step-buying").html();da.BuyingToolOpAjaxHybris=na})();
1244(function(){function l(k){$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(A,ca,K){k.drawObj.delivery.time=K.getResponseHeader("Date")}})}function g(k,A,ca,K){var D=k.apiDomain,h=k.pdHrefLang,C=k.pdMultiLanguageYN,E=k.siteCode,T=$.cookies.get("jwt_"+k.countryIsoCode,{domain:".samsung.com"}),R=[],z=k.priceCurrency,fa=[],va=0,ra=0,oa=!1,da="";l(k);for(da=0;da<ca.length;da++){var na=ca[da];50<=va&&(va=0,R.push(fa),fa=[]);fa.push(na);va++;da==ca.length-1&&R.push(fa)}for(ca=0;ca<
1245R.length;ca++){fa="";if("uk"==E||"de"==E)fa=",carrier_attributes";"fr"===E&&(fa+=",payment_methods");"in"===E&&(fa+=",delivery_modes");da="skus\x3d"+R[ca].join(",")+"\x26component\x3doffers,promotion,promotion_price"+fa+"\x26count\x3d0";"true"===$("#isEppPage").val()&&(da+="\x26store_id\x3d"+$("#eppCompanyCode").val());$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:D+"/v4/configurator/syndicated-product-linear",data:da,type:"GET",
1246dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(L){T&&L.setRequestHeader("x-ecom-jwt",T);"Y"===C&&L.setRequestHeader("x-ecom-locale",h)},success:function(L,N,b){if(L&&0!==L.total_number_of_products){N=k.syndiApiData;oa=!0;for(var r in L.products){var G=L.products[r];G.price_info&&G.price_info[0]&&(b=G.price_info[0].msrp_price,G=G.price_info[0].sale_price,b&&(b.formatted_value=currencyComma(b.value,z)),G&&(G.formatted_value=currencyComma(G.value,z)))}"true"===$("#isEppPage").val()&&
1247window.sg.epp&&window.sg.epp.common&&"D2R"===window.sg.epp.common.ecomStoreType&&(r=Object.keys(L.products),r=L.products[r].fulfillment_sku,null!=r&&R[0]!=r&&(L.products[R[0]]=L.products[r],L.products[r]=null,k.fulfillmentSku=r));$.extend(N.products,L.products);$.extend(N.expanded,L.expanded)}},error:function(L,N,b){},complete:function(){ra++;R.length==ra&&K(k,A,oa)}})}}function H(k,A,ca){var K=k.setComboPopupData,D=ca.offer.combo,h=k.util,C=k.view,E=0;if(k.comboFlag){for(var T=0;T<K.length;T++){var R=
1248K[T];k.comboSearchList.push(R.comboInfo);var z=[];R.comboPitch?z.push({text:R.comboPitch}):z.push({text:Granite.I18n.get("Select combo bundle option")});var fa={layerTarget:"shopComboPopup"};fa.comboIdx=E;fa=h.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",fa,"");R={title:"compoBundle",comboIndex:T,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:R.iconImgName,description:{hasDescription:!0,main:z,date:R.comboDate},learnMoreCta:fa}};D.push(R);
1249E++}C.productOfferDraw(ca,!0)}K=k.samsungCareFlag;D=k.warrantyFlag;h=k.addonsFlag;C=k.giftFlag;E=k.newAssuredBuyBackFlag;T=k.pdProductTypeCheckYn;R=k.util;z=k.commonApiModel;fa=k.addOnInfoTemp;var va=k.addOnGift.products,ra=k.samsungCareList,oa=k.newAssuredBuyBackList,da=k.addOnInfo,na=k.afterEvent,L=k.bogoFlag,N=k.pdSoftBundleUseYn,b=k.bogoModelList,r=k.pdBogoUseYn,G={},P={},Z={},d={},M={};k.checkingBogoSearchFlag=!0;k.checkingComboSearchFlag=!0;L&&"N"!==r&&"Y"!==N&&0<b.length&&(k.bogoSearchList=
1250k.bogoModelList);if(K||D)"Y"===T?R.isNotEmptyArray(da)?G={title:"careAndWarranty",list:da}:na.setMainCallBack("careAndWarranty",null):R.isNotEmptyArray(ra)?P={title:"care",list:ra}:na.setMainCallBack("care",null);h&&(Z={title:"addOn",list:fa},k.hasAddOns=!0);C&&(d={title:"addOnGift",list:va});E&&(M={title:"newAssuredBuyBack",list:oa});K||D||h||C||E?(k.addOnApiList={careAndWarranty:G,care:P,addOn:Z,gift:d,newAssuredBuyBack:M},z.callAddOnApi(k,A)):(k.checkingAddOnSearchFlag=!0,k.checkingGiftSearchFlag=
1251!0);z.waitSearchAPI(k,A);K=k.samsungCareFlag;ra=k.pdProductTypeCheckYn;fa=k.pdSmcType;C=k.util;D=k.view;va=k.careLearnMoreUrl;na=k.samsungCareSubText;da=k.samsungCarePackFlag;E="_self";T="";R="javascript:;";z={};h=[];oa="";na&&(-1<na.indexOf("\x3c/strong\x3e\x3c/p\x3e")?oa=na.substring(na.indexOf("\x3c/strong\x3e\x3c/p\x3e")+13,na.length):-1<na.indexOf("\x3c/strong\x3e\x3c/h2\x3e")?oa=na.substring(na.indexOf("\x3c/strong\x3e\x3c/h2\x3e")+14,na.length):-1<na.indexOf("\x3c/strong\x3e\x3c/h3\x3e")?oa=
1252na.substring(na.indexOf("\x3c/strong\x3e\x3c/h3\x3e")+14,na.length):-1<na.indexOf("\x3c/strong\x3e\x3c/h4\x3e")?oa=na.substring(na.indexOf("\x3c/strong\x3e\x3c/h4\x3e")+14,na.length):-1<na.indexOf("\x3c/strong\x3e\x3c/h5\x3e")?oa=na.substring(na.indexOf("\x3c/strong\x3e\x3c/h5\x3e")+14,na.length):-1<na.indexOf("\x3c/strong\x3e\x3c/h1\x3e")&&(oa=na.substring(na.indexOf("\x3c/strong\x3e\x3c/h1\x3e")+14,na.length)));if(K||da)"type2"===fa?k.warrantyFlag=!0:(fa=da?Granite.I18n.get("Samsung CarePack"):
1253Granite.I18n.get("Samsung Care+"),"fr"!==siteCode?va&&(T=Granite.I18n.get("Learn more"),R=va,E="_blank"):(T=Granite.I18n.get("Learn more"),z.layerTarget="hubbleCareinfoPopup"),k.samsungCareSubText?(va="temp","de"===siteCode?"Y"!==ra?h.push({target:".pd-select-option__desc",text:k.samsungCareSubText}):h.push({target:".pd-select-option__desc",text:oa}):"in"===siteCode?(ra=k.samsungCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,""),h.push({target:".pd-select-option__discount-text",text:ra})):(ra=
1254"\x3cp\x3e"+k.samsungCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,"")+"\x3c/p\x3e",h.push({target:".pd-select-option__desc",text:ra}))):va=da?Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever. (Samsung CarePack)"):Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever."),ra={text:Granite.I18n.get("YES"),layerTarget:"hubbleCarePopup"},oa={text:Granite.I18n.get("NO"),eventType:"care"},C=C.getAttrCta(T,R,E,"",z,""),ca.care={hasComponent:K,
1255title:fa,learnMoreCta:C,description:va,yesAttr:ra,noAttr:oa,subText:"",rowText:h,itemSet:[]});D.productAddOnCare(ca);K=k.warrantyFlag;D=k.pdProductType;h=k.warrantyLearnMoreUrl;C=k.util;E=k.view;T=Granite.I18n.get("Extended Warranty");R="";z="_self";fa="";va="javascript:;";ra={};oa={};da={};na={};K&&($(A.buyingToolOptWarranty.get(0)).addClass("has-component"),h&&(fa=Granite.I18n.get("Learn more"),va=h,z="_blank"),"de"!==siteCode||"TV"!=D&&"ETC"!=D?R=Granite.I18n.get("With Extended Warranty, you can enjoy extra protection for your first 12 months. Be covered for unfortunate incidents that are not included in our standard 2 year warranty."):
1256(T=Granite.I18n.get("Garantieverl\u00e4ngerung"),R="Verl\u00e4ngere die Standard-Herstellergarantie deines Samsung Ger\u00e4ts von 2 auf 5 Jahre"),da={"class":"js-extended-layer cm-s-popup-opener is-async js-warranty-pop",text:Granite.I18n.get("YES"),layerTarget:"extendedWarrantyPopup"},na={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"warranty"},ra=C.getAttrCta(fa,va,z,"",oa,""));ca.warranty={hasComponent:K,title:T,learnMoreCta:ra,description:R,yesAttr:da,noAttr:na,subText:""};
1257E.productAddOnWarranty(ca);h=k.util;A=k.view;K=k.newAssuredBuyBackFlag;D=k.newAssuredBuyBackList;C=Granite.I18n.get("Learn more");h=h.getAttrCta(C,"javascript:;","","",{layerTarget:"assuredBuyBackInfoPopup"},"");K&&(k.drawObj.newAssuredBuyBack={hasComponent:K,title:Granite.I18n.get("Samsung Assured Buyback"),description:Granite.I18n.get("Get up to 70% resale value with Assured Buyback"),itemSet:D,learnMoreCta:h,yesAttr:{"class":null,text:null,subText:"",layerTarget:""},noAttr:{"class":null,text:"None",
1258layerTarget:"",eventType:"newAssuredBuyBack"}},A.newAssuredBuyBackDraw(ca))}function u(k,A,ca,K){K=A.siteCode;var D=A.syndiApiData.expanded;ca=ca.tariffOption;var h=[];if(k.carrier_attributes){var C=k.carrier_attributes.carrier_plans?k.carrier_attributes.carrier_plans.skus:[],E=D.carrier_attributes&&D.carrier_attributes.carrier_plans?D.carrier_attributes.carrier_plans:{};D=D.carrier_attributes&&D.carrier_attributes.carriers?D.carrier_attributes.carriers:[];for(var T=[],R=0;R<C.length;R++){var z=E[C[R]];
1259if(z){if("de"===K||"uk"===K)A.tariffFlag=!0;null!=z.child_item_groups&&0<z.child_item_groups.length&&(z.child_skus=z.child_item_groups[0].skus);for(var fa=0;fa<D.length;fa++){var va=z.carrier;z.carrier_id&&(va=z.carrier_id);if(va.toUpperCase()==D[fa].id.toUpperCase()){z.carrier=D[fa];break}}T.push(z);k.carrier_attributes.carrier_plans=T}if(null!=z&&null!=z.carrier&&null!=z.carrier.images.url&&""!==z.carrier.images.url){fa=!0;for(va=0;va<h.length;va++)z.carrier.images.url===h[va].images.url&&(fa=!1);
1260fa&&h.push(z.carrier)}}h.sort(function(ra,oa){return ra.sort_order<oa.sort_order?-1:ra.sort_order>oa.sort_order?1:0});if(A.tariffFlag){ca.hasComponent=!0;ca.headline=Granite.I18n.get("Tariff Option");ca.description=Granite.I18n.get("Choose your preferred tariff from various providers.");k=[];if(0<h.length)for(A=0;A<h.length;A++)C={src:"",alt:""},"de"===K?-1<h[A].images.url.indexOf("Telekom")?(C.src="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-1.png",
1261C.alt="Telekom"):-1<h[A].images.url.indexOf("Vodaphone")?(C.src="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-3.png",C.alt="Vodaphone"):-1<h[A].images.url.indexOf("o2")?(C.src="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-2.png",C.alt="o2"):(C.src=h[A].images.url,C.alt=""):"uk"===K&&(C.src=h[A].images.url,C.alt=""),C.src&&k.push(C);ca.logoList=k}}}function n(k,A,ca,K){var D=A.siteCode,
1262h=A.pdProductType,C=A.stockLevelStatus,E=ca.delivery,T=A.deliveryYN,R=$.cookies.get("HA-Deeplink-Zipcode",{domain:".samsung.com"}),z=A.util,fa="",va="",ra=A.syndiApiData.expanded;
1262if("in"===D&&k.delivery_modes&&0<k.delivery_modes.length){k=k.delivery_modes;for(var oa=[],da=0;da<k.length;da++){var na=ra.delivery_modes[k[da]];if(na.custom_properties&&na.custom_properties.delivery_mode_type&&"priority delivery"===na.custom_properties.delivery_mode_type&&na.time_slot_attributes&&na.time_slot_attributes.slot_code&&
1263na.time_slot_attributes.cut_off_hour&&na.time_slot_attributes.cut_off_minutes){na=na.time_slot_attributes;var L=na.cut_off_hour;2>L.length&&(L="0"+L);var N=na.cut_off_minutes;2>N.length&&(N="0"+N);var b={};b.idx=da;na.slot_code.includes("SAME")?b.time=Number(L+N):b.time=Number(String(Number(L)+24)+N);oa.push(b)}}if(0<oa.length&&null!==E.time){na=E.time.split("GMT")[0].trim().slice(-8);da=Number(na.split(":")[0])+5;na=Number(na.split(":")[1])+30;59<na&&(na-=30,da+=1);2>String(na).length&&(na="0"+String(na));
12642>String(da).length&&(da="0"+String(da));na=Number(String(da)+String(na));oa.sort(function(G,P){return G.time-P.time});da="";for(var r in oa)if(na<oa[r].time){da=oa[r].idx;break}""!==da&&(fa=ra.delivery_modes[k[da]].time_slot_attributes,r=Number(fa.cut_off_hour),oa="",12>r?oa="AM":(oa="PM",12<r&&(r-=12)),na="",fa.slot_code.includes("NEXT")?na="Next day":fa.slot_code.includes("SAME")&&(na="Same day"),fa="Order by "+r+" "+oa+" and get "+na+" delivery.*",ra.delivery_modes[k[da]].images.large_image.desc&&
1265(va=ra.delivery_modes[k[da]].images.large_image.desc.replaceAll("\n","\x3c/br\x3e")),E.isPriorityDelivery=!0)}}if("in"===D||"id"===D&&"PHONE"===h||"us"===D&&T)if(E.hasComponent=!0,E.headline=Granite.I18n.get("Delivery Detail"),E.label=Granite.I18n.get("Enter Zipcode"),E.cancelText=Granite.I18n.get("Delete"),E.enterText=Granite.I18n.get("Search"),"id"===D?E.inputAttr.maxlength="5":"us"===D?(E.inputAttr.maxlength="5",R&&(E.inputAttr.value=R,A.view.deliveryDraw(ca),z.deliveryGetApiData(A,K))):(E.inputAttr.maxlength=
1266"6",""!==fa&&(E.priorityDeliveryText=fa),""!==va&&(E.priorityDeliveryTooltip=va)),"NOORDER"===C||"OUTOFSTOCK"===C)E.labelClass="text-field--disabled",E.ctaClass="cta--disabled",E.inputAttr.disabled="true"}function v(k,A,ca,K){ca=A.samsungCareBadgeList;K=A.samsungCareList;var D=A.reCallSyndi,h=A.multiCareYn,C=A.util;if("Y"!==A.pdProductTypeCheckYn){var E=k.discount_description;if(null!==E&&0<E.length)for(var T=0;T<E.length;T++)for(var R=0;R<E[T].discounted_skus.length;R++){var z={},fa=E[T].discounted_skus[R],
1267va=fa.sku;C.merge(A.totalSkuList,va,fa);z.discounted_sku=va;K.push(z);A.samsungCareFlag=!0;"Y"===h&&D.push({sku:va})}A.samsungCareFlag&&k.formatted_sales_pitch&&0<k.formatted_sales_pitch.length&&(A.samsungCareSubText=k.formatted_sales_pitch);for(var ra in k.product_tag_order)ca.push(k.product_tag_order[ra]);ca.sort(function(oa,da){return oa.product_rank-da.product_rank})}}function F(k,A,ca,K,D){var h=A.pdTimeformatFront;ca=A.pdProductTypeCheckYn;K=A.util;D=k.product_tag_order;var C=A.addOnInfoTemp,
1268E=A.reCallSyndi,T="";k.start_date&&k.end_date&&(T=""!==h?dateFormat(k.start_date.split("T")[0],h)+" ~ "+dateFormat(k.end_date.split("T")[0],h):k.start_date.split("T")[0]+" ~ "+k.end_date.split("T")[0]);A.addonDate=T;h=k.discount_description;if(null!==h&&0<h.length)for(var R=0;R<h.length;R++)for(var z=h[R],fa=0;fa<z.discounted_skus.length;fa++){var va={},ra=z.discounted_skus[fa],oa=!1,da=ra.sku;va.discounted_sku=da;ra.offer_type=A.hasVoucher?"CONFIGURATORADDONVOUCHER":"CONFIGURATORADDON";ra.addonDate=
1269T;ra.product_formatted_sales_pitch=k.formatted_sales_pitch;K.merge(A.totalSkuList,da,ra);if(!A.hasVoucher&&D&&D[da]&&D[da].product_tags&&0<D[da].product_tags.length)for(var na=0;na<D[da].product_tags.length;na++)"GIFT"===D[da].product_tags[na].toUpperCase()&&(A.giftDrawData.date=T,A.giftDrawData.dec=k.formatted_sales_pitch,!k.formatted_sales_pitch&&k.sales_pitch&&(A.giftDrawData.dec=k.sales_pitch),A.addOnGift.products.push(va),oa=A.giftFlag=!0);"Y"!==ca?oa||(A.addOnInfoTempCache[va.discounted_sku]||
1270(C.push(va),A.addOnInfoTempCache[va.discounted_sku]=va.discounted_sku),A.addonsFlag=!0):oa||E.push(ra)}}function W(k,A){A=(A=A.promotionImgType)?A.split(","):[];var ca=!1;k=k.images&&0<k.images.length?k.images[0]:"";if(0<A.length&&k)for(var K in A)if(A[K]===k){ca=!0;break}return{promoIconFlag:ca,iconImgName:k}}function aa(k,A,ca){var K=k.reCallSyndi,D=k.util,h=k.syndiApiData.products,C=k.drawObj;if(ca){for(ca=0;ca<K.length;ca++){var E=K[ca],T=h[E.sku];
1270if(T){D.merge(k.totalSkuList,E.sku,T,"syndi");
1271var R=k,z=R.siteCode,fa=R.util,va=R.drawObj.offer;if("Y"===R.pdSoftBundleUseYn)if(T.sku_source)if(E.sku_source=T.sku_source,"ecom"===T.sku_source)if("COMBO"===E.offer_type)null!==T.inventory&&(E.ctaType=T.inventory.status),null!==T.images&&null!==T.images.small_image&&(E.thumbUrl=T.images.small_image.url,E.thumbUrlAlt=T.images.small_image.desc),E.displayName=T.product_display_name,E.modelName=T.model_name,E.modelCode=T.model_code;else{if("BOGO"===E.offer_type_b){var ra=T.images.small_image.url;ra=
1272fa.getImgAttr(ra,ra,T.images.small_image.desc,{classWapper:"image__main responsive-img"});var oa=R.priceCurrency;fa=R.view;var da=T.taxonomy&&T.taxonomy.product_category?T.taxonomy.product_category.toLowerCase():"",na=T.taxonomy&&T.taxonomy.name?T.taxonomy.name.toLowerCase():"",L=T.taxonomy&&T.taxonomy.name?T.taxonomy.name.toLowerCase():"",N=T.model_code,b=T.model_name,r=T.product_display_name,G=[];G.push({text:E.bogo_sales_pitch});var P="",Z="",d="",M="";null!==T.price_info&&0<T.price_info.length&&
1273(M=T.price_info[0].msrp_price.value,P=T.price_info[0].msrp_price.formatted_value,"nl"!==z&&"be"!==z&&"be_fr"!==z&&(Z=Granite.I18n.get("Save {0}",currencyComma(T.price_info[0].sale_price.value,oa),z)),d=currencyComma(0,oa));"true"===$("#isEppPage").val()&&"pl"===z&&(Z=P="");z={title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),modelCode:N,modelName:b,displayName:r,pviTypeName:da,pviSubtypeName:na,categorySubTypeEngName:L,description:{hasDescription:!0,
1274main:G,date:E.bogo_date},imgAttr:ra,price:{hasPrice:!0,price:M,original:P,save:Z,now:d}}};va.bogo=z;fa.productOfferDraw(R.drawObj)}}else"BOGO"===E.offer_type_b&&R.bogoSearchList.push(E);else"BOGO"===E.offer_type_b&&R.bogoSearchList.push(E);R=void 0;va=k;z=va.multiCareYn;"Y"===va.pdProductTypeCheckYn&&"CONFIGURATORADDON"===E.offer_type&&T.product_type&&(fa=T.product_type.toUpperCase(),"PHYSICAL"===fa?(fa={},fa.discounted_sku=T.sku,va.addOnInfoTempCache[fa.discounted_sku]||(va.addOnInfoTemp.push(fa),
1275va.addonsFlag=!0,va.addOnInfoTempCache[fa.discounted_sku]=fa.discounted_sku)):"INSURANCE"!==fa&&"WARRANTY"!==fa||!T.sku_source||("ecom"===T.sku_source?(T.discounted_sku=T.sku,null!=T.images&&null!=T.images.small_image&&(T.thumbUrl=T.images.small_image.url,T.thumbUrlAlt=T.images.small_image.desc),T.ctaType=T.inventory.status,T.displayName=T.product_display_name,T.modelName=T.model_name,T.modelCode=T.model_code):T.discounted_sku=T.sku,va.addOnInfo.push(T),"INSURANCE"===fa?(va.samsungCareFlag=!0,E.product_formatted_sales_pitch&&
1276(va.samsungCareSubText=E.product_formatted_sales_pitch)):"WARRANTY"===fa&&(va.warrantyFlag=!0)));if("Y"===z&&(va=va.samsungCareList,null!==va&&0<va.length))for(R in va)T.sku===va[R].discounted_sku&&(va[R].custom_properties=T.custom_properties,va[R].images=T.images,va[R].long_description=T.long_description,va[R].short_description=T.short_description,va[R].product_display_name=T.product_display_name,va[R].displayName=T.product_display_name,va[R].modelName=T.model_name,va[R].modelCode=T.model_code,va[R].sku_source=
1277T.sku_source,va[R].sale_price=T.sale_price,va[R].msrp_price=T.msrp_price,va[R].product_type=T.product_type);R=k;va=A;z=R.util;E.checkingType&&"forever"===E.checkingType&&(fa=T.product_type.toUpperCase(),ra=T.price_info,oa=R.foreverFinanceInfo,da=0,"INSURANCE"===fa&&ra&&0<ra.length&&(ra[0].msrp_price&&ra[0].msrp_price.value&&(da=ra[0].msrp_price.value),ra[0].sale_price&&ra[0].sale_price.value&&(da=ra[0].sale_price.value)),oa.carePrice=da,z.foreverDraw(R,va));R=k;va=R.newAssuredBuyBackList;E.checkingType&&
1278"newAssuredBuyBack"===E.checkingType&&T&&"BUYBACK"===T.product_type.toUpperCase()&&(E=T.product_display_name,z=T.sku,fa="",T.price_info&&T.price_info[0].sale_price&&T.price_info[0].sale_price.value?fa=currencyComma(T.price_info[0].sale_price.value,R.priceCurrency):T.price_info&&T.price_info[0].msrp_price&&T.price_info[0].msrp_price.value&&(fa=currencyComma(T.price_info[0].msrp_price.value,R.priceCurrency)),va.push({index:va.length+1,title:E,priceDisplay:fa,sku:z,productItem:T}))}}H(k,A,C)}k.finishedSecondSyndi=
1279!0;k.util.afterTotalAPI(k,A)}function x(k,A,ca,K,D,h){var C=k.util,E=k.drawObj,T=k.siteCode,R=E.offer.combo,z=E.offer.gift,fa=E.tariffOptionResult,va=E.careResult,ra=E.warrantyResult,oa=E.upgradeResult,da=E.tradeInResult,na=E.between.nonPurchase,L=k.drawObj.galaxyForeverResult,N=k.drawObj.assuredBuyBackResult,b=k.drawObj.newAssuredBuyBackResult,r=$(A.buyingToolOptDelivery.find("#delivery-zipcode")).val(),G=C.hasTariffOptionResult(k,A),P=C.hasCareResult(k,A),Z=C.hasWarrantyResult(k,A),d=C.hasUpgradeResult(k,
1280A),M=C.hasTradeInResult(k,A),t=C.hasBetweenResult(k,A),y=C.hasComboResult(k,A),I=C.hasForeverResult(k,A),X=C.hasGiftResult(k,A),V=C.hasAssuredBuyBackResultResult(k,A),O=C.hasNewAssuredBuyBackResult(k,A),S={},Q=k.childCheckList,ea=k.pdAppId,la=k.shopSkuCode;E={line_items:[]};var ma={line_items:[]},ta={},xa={is_accepted:!0},sa="",Ma="",pa="",a="",c="",m="",f="",q="",ba="",J="",ha="",qa="",ia="",za="",Ja="",Fa="";if(C.checkingDeliveryCode(k,A)){h||(ma.sku_id=la,ma.quantity="1",k.proudctPriceInfo.productCartCount&&
12811<k.proudctPriceInfo.productCartCount&&(ma.quantity=""+k.proudctPriceInfo.productCartCount));if(G){A=fa.dataModelCode;var Ba=fa.dataSimskuCode;fa=fa.dataId;C.isNotEmptyArray(fa)&&(sa=","+fa.join("|"),$.each(fa,function(Ua,Y){ta[Y]=xa}));A&&(S[A]=A,ma.line_items.push({sku_id:A,quantity:"1"}));Ba&&(S[Ba]=Ba,ma.line_items.push({sku_id:Ba,quantity:"1"}))}M&&(fa=da.dataId,da=da.dataQuoteId,C.isNotEmptyArray(fa)&&(Ma=","+fa.join("|"),$.each(fa,function(Ua,Y){ta[Y]=xa})),da&&(pa="\x26exchange_id\x3d"+da),
1282ma.exchange_id=da);if(P){da=va.dataId;va=va.dataModelCode;var Ha={};C.isNotEmptyArray(da)&&(a=","+da.join("|"),$.each(da,function(Ua,Y){Ha[Y]=xa}));va&&(J="\x26addChildItem[]\x3d"+va+",1",ma.line_items.push({sku_id:va,quantity:"1",consents:Ha}))}if(Z){va=ra.dataId;ra=ra.dataModelCode;var Va={};C.isNotEmptyArray(va)&&(a=","+va.join("|"),$.each(va,function(Ua,Y){Va[Y]=xa}));ra&&(J="\x26addChildItem[]\x3d"+ra+",1",ma.line_items.push({sku_id:ra,quantity:"1",consents:Va}))}if(d){za=oa.dataId;var Na={};
1283C.isNotEmptyArray(za)&&(c=","+za.join("|"),$.each(za,function(Ua,Y){Na[Y]=xa}));for(var ka in Q)ha=c?ha+("\x26addChildItem[]\x3d"+Q[ka]+",1"+c):ha+("\x26addChildItem[]\x3d"+Q[ka]+",1"),ma.line_items.push({sku_id:Q[ka],quantity:"1",consents:Na});za="\x26flush\x3dtrue";E.flush=!0}k.pdUpgrade&&(k.pdUpgrade="fr"===T?"":"\x26upgrade\x3dtrue",m=k.pdUpgrade);t&&(ia="\x26finance_plan_id\x3d"+na.dataLeaseing,za="\x26flush\x3dtrue",E.flush=!0,ma.finance_plan_id=na.dataLeaseing);if(y)for(var La in R){ka=R[La].item;
1284for(var Da in ka.bundleList)if(oa=ka.bundleList[Da].dataModelCode)S[oa]=oa,ma.line_items.push({sku_id:oa,quantity:"1"})}if(X){R=z.item;for(var Ka in R.bundleList)if(z=R.bundleList[Ka].dataModelCode)S[z]=z,ma.line_items.push({sku_id:z,quantity:"1"})}if(V){Ka=N.dataSku;var Qa={};N=N.dataId;V="";C.isNotEmptyArray(N)&&(V=","+N.join("|"),$.each(N,function(Ua,Y){Qa[Y]=xa}));
1284Ka&&(Fa="\x26addChildItem[]\x3d"+Ka+V,ma.line_items.push({sku_id:Ka,quantity:"1",consents:Qa}))}O&&(b=b.dataModelCode)&&(Fa="\x26addChildItem[]\x3d"+
1285b,ma.line_items.push({sku_id:b,quantity:"1"}));if(I){I=L.modelList;b=L.dataId;L=L.financePlanId;C.isNotEmptyArray(b)&&(f=","+b.join("|"));for(var Oa in I)Ja+="\x26addChildItem[]\x3d"+I[Oa]+",1";Ja+=f;L&&(Ja+="\x26finance_plan_id\x3d"+L)}for(var Sa in S)q+="\x26addChildItem[]\x3d"+S[Sa]+",1";for(var Ra in ca)ba="id"===T?ba+("\x26addChildItem[]\x3d"+ca[Ra]+",1"):ba+("\x26addItem[]\x3d"+ca[Ra]+",1"),k.hasVoucher&&k.voucherdata.coupons&&k.voucherdata.coupons[0]&&(ba+="\x26promoCode\x3d"+k.voucherdata.coupons[0]),
1286ma.line_items.push({sku_id:ca[Ra],quantity:"1"});r&&(qa="\x26postal_code\x3d"+r,E.postal_code=r);"de"!==T&&"uk"!==T||!G&&!M||(za="\x26flush\x3dtrue",E.flush=!0);ea&&(K+="?appId\x3d"+k.pdAppId);0<Object.keys(ta).length&&(ma.consents=ta);0<Object.keys(ma).length&&E.line_items.push(ma);"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(la=$("#originShopSku").val());if("id"===T)window.location.href=K+("?addItem[]\x3d"+la+",1"+sa+Ma+q+J+a+ha+ia+pa+qa+m+za+ba+Ja);else{C=",1";if(h){h=
1287"";for(T=0;T<ca.length;T++)la="\x26",0==T&&(la="?"),h+=la+"addItem[]\x3d"+ca[T]+C;K+=h}else k.proudctPriceInfo.productCartCount&&1<k.proudctPriceInfo.productCartCount&&(C=","+k.proudctPriceInfo.productCartCount),K+="?addItem[]\x3d"+la+C+sa+Ma+q+J+a+ha+ia+pa+qa+m+za+Ja+Fa;"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(K=K.replace("addItem[]","flash_skus"),K=K.replace(C,""));D?window.location.href=K:U(k,E,ca)}}}function U(k,A,ca){var K=k.siteCode,D=$.cookies.get("jwt_"+k.countryIsoCode,
1288{domain:".samsung.com"});k=k.apiDomain+"/v4/shopping-carts/";var h="true"===$("#isEppPage").val()?{withCredentials:!0}:{},C={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"};"in"===K&&(window&&window.EcommAndroidClient&&(C["x-ecom-app-id"]="samsung-mobile-app"),K="undefined"!==typeof window?!(!window.EcommAndroidClient&&!window.flutter_inappwebview):!1,K&&(K=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"samsung-mobile-app":
1289"samsung-mobile-app-ios",C["x-ecom-app-id"]=K),C["x-ecom-source"]="AEM.PDP");$.ajax({headers:C,url:k,type:"POST",data:JSON.stringify(A),xhrFields:h,dataType:"json",cache:!0,beforeSend:function(E){null!=D&&""!=D&&E.setRequestHeader("x-ecom-jwt",D)},timeout:2E4,success:function(E,T,R){ca&&0<ca.length&&(E=Granite.I18n.get("The item is added to your cart"),confirmPopup(E,"addtocart"))},error:function(E){console.log("fail add to cart")}})}function B(k,A,ca){var K=k.util,D=k.drawObj,h=k.view,C=k.currentUrl,
1290E=k.shopSkuCode,T=k.syndiApiData,R=k.siteCode;gpv2ShopInfo&&"nl"===R&&(k.util.setPriceProudctPriceInfo(k,A,{price:gpv2ShopInfo.price,priceDisplay:gpv2ShopInfo.priceDisplay,promotionPrice:gpv2ShopInfo.promotionPrice,promotionPriceDisplay:gpv2ShopInfo.promotionPriceDisplay,leasingInfo:gpv2ShopInfo.leasingInfo,listPrice:gpv2ShopInfo.listPrice,listPriceDisplay:gpv2ShopInfo.listPriceDisplay,saveText:gpv2ShopInfo.saveText,tradeInPriceText:gpv2ShopInfo.tradeInPriceText}),k.proudctPriceInfo.salePriceFormatted&&
1291(k.drawObj.price.priceWrapper.hasPriceWrapper=!0));if(ca)if(T.products[E]){var z=T.products[E];k.syndiProductData=z;var fa=k.siteCode,va=k.proudctPriceInfo,ra=D.price.priceWrapper,oa=k.util,da="";if(z.inventory){da=z.inventory.status.toUpperCase();var na=z.inventory.custom_stock_message;k.stockLevelStatus=da;k.apiChangeStockStatus=da;k.stockCustomMessage=na;D.stockLevelStatus=da;va.netavailable=z.inventory.net_available&&0<Number(z.inventory.net_available)?Number(z.inventory.net_available):1;"true"===
1292$("#isEppPage").val()&&0<A.buyingToolOptSMBQuantity.length&&va.netavailable<va.smbMinQty&&(da="OUTOFSTOCK",k.stockLevelStatus="OUTOFSTOCK",D.stockLevelStatus="OUTOFSTOCK")}"pl"===fa&&"OUTOFSTOCK"===da||"NOORDER"===da||!0!==z.flags.ecom_flag?(oa.disabledOptionElement(A.buyingToolOptTariff,k),oa.disabledOptionElement(A.buyingToolOptUpgrade,k),oa.disabledOptionElement(A.buyingToolOptOffer,k),oa.disabledOptionElement(A.buyingToolOptTradeIn,k),k.accessoryDisabled=!0,ra.hasPriceWrapper=!1):ra.hasPriceWrapper=
1293!0;if(z.price_info&&0<z.price_info.length){z.flags.ecom_flag&&(k.hasPriceCta=!0);for(var L=z.price_info,N=z.preferred_finance_plan,b=0;b<L.length;b++){var r=L[b],G="",P="",Z="",d="",M="";r.msrp_price&&(G=r.msrp_price.value,P=r.msrp_price.formatted_value);r.list_price&&(Z=r.list_price.value,d=r.list_price.formatted_value);if(r.sale_price){var t=r.sale_price.value;var y=r.sale_price.formatted_value}else t=G,y=P;r.sales_pitch&&(1==r.sales_pitch.length?M=r.sales_pitch[0]:2<=r.sales_pitch.length&&(""!=
1294r.sales_pitch[0]&&null!=r.sales_pitch[0]&&void 0!=r.sales_pitch[0]&&""!=r.sales_pitch[1]&&null!=r.sales_pitch[1]&&void 0!=r.sales_pitch[1]?M=r.
1294sales_pitch[0]+"\x3cbr /\x3e"+r.sales_pitch[1]:""==r.sales_pitch[0]||null==r.sales_pitch[0]||void 0==r.sales_pitch[0]||""!=r.sales_pitch[1]&&null!=r.sales_pitch[1]&&void 0!=r.sales_pitch[1]?""==r.sales_pitch[1]||null==r.sales_pitch[1]||void 0==r.sales_pitch[1]||""!=r.sales_pitch[0]&&null!=r.sales_pitch[0]&&void 0!=r.sales_pitch[0]||(M=r.sales_pitch[1]):M=r.sales_pitch[0]),
1295"true"!==$("#isEppPage").val()||"in"!==k.siteCode)&&(va.salesPitch=M);va.orignalPrice=G;va.orignalPriceFormatted=P;va.salePrice=t;va.salePriceFormatted=y;va.listPrice=Z;va.listPriceFormatted=d}N&&N.installment_amount&&"NaN"!==N.installment_amount&&N.tenure.unit&&(va.monthlyPriceInfo.monthlyPrice=N.installment_amount,va.monthlyPriceInfo.tenureVal=N.tenure.unit)}z.payment_methods&&(k.paymentMethods=z.payment_methods);z.flags&&z.flags.ecom_flag&&(k.proudctEcomFlag=z.flags.ecom_flag);K.settingPriceCta(k.hasPriceCta,
1296k,A,C);if(D.price.priceWrapper.hasPriceWrapper){n(z,k,D,A);u(z,k,D,A);D.offer.headline="fr"===k.siteCode?Granite.I18n.get("Offer_PD"):Granite.I18n.getVar("Offer","ux2");var I=k.siteCode;if("in"===I&&!0===z.flags.online_to_offline){var X=D.offer,V=k.util,O=[];O.push({text:Granite.I18n.get("1. Free express delivery from your local Samsung plaza")});O.push({text:Granite.I18n.get("2. Delivery by appointment")});O.push({text:Granite.I18n.get("3. Hassle free installation")});var S="/"+I+"/smart-utsav-delight-delivery/O2O/terms/";
1297var Q=V.getAttrCta(Granite.I18n.get("Learn more"),S,"_self","",{},"");var ea={title:"delightDelivery",hasItem:!0,item:{headline:Granite.I18n.get("Delight delivery"),description:{hasDescription:!0,main:O},learnMoreCta:Q,imgAttr:{srcPc:"/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/product-offer-delight-delivery.jpg",alt:"delight delivery"}}};X.delightDelivery=ea}var la=k.syndiApiData.expanded;if(z.promotions&&0<z.promotions.length){for(var ma=z.promotions,ta=
1298{},xa=0;xa<ma.length;xa++){var sa=la.promotions[ma[xa]],Ma=sa.type?sa.type.toUpperCase():"",pa=la.offers[sa.offer_id],a=pa&&pa.type?pa.type.toUpperCase():"",c=sa.trade_in_type?sa.trade_in_type.toUpperCase():"",m=0<sa.sales_pitch.length?sa.sales_pitch[0]:"";if(Ma)if("CONFIGURATOROFFER"===Ma&&"TRADEIN"===a){k.tradeInType=c;m&&/^[0-9\\.]*$/.test(m.trim())&&(k.promotionSalesPitch=m);var f=void 0,q=k,ba=q.siteCode,J=q.util,ha="";q.tradeInFlag=!0;if(J.isNotEmptyArray(pa.formatted_sales_pitch)){var qa=pa.sales_pitch;
12990<qa.length&&(ha=qa[0]);"pl"===ba&&(ha=ha.replace(/<(\/p|p)([^>]*)>/gi,"").replace(/<(\/em|em)([^>]*)>/gi,""))}else ha="in"===ba?Granite.I18n.get("Buy with exchange"):"ae"===ba||"ae_ar"===ba?Granite.I18n.get("Generate Trade in code"):Granite.I18n.get("Trade in your old device");if(pa.discount_description&&0<pa.discount_description.length){var ia=0;for(f in pa.discount_description){var za=pa.discount_description[f],Ja=za.value;"Rebate"===za.type&&Ja&&(ia=Math.max(ia,Ja))}q.tradeinSaveValue=ia}q.tradeinText=
1300ha}else if("CONFIGURATORUPGRADE"===Ma){var Fa=k,Ba=z,Ha=Fa.childCheckList,Va=Fa.eupData,Na=Fa.pdUpgradeUseYn,ka=Fa.util;Fa.upgradeEligible=!0;if("Y"===Na){var La=sa.discount_description;if(null!==La&&0<La.length)for(var Da=0;Da<La.length;Da++)for(var Ka=0;Ka<La[Da].discounted_skus.length;Ka++){var Qa=La[Da].discounted_skus[Ka],Oa=Qa.sku;ka.merge(Fa.totalSkuList,Oa,Qa);Ha.push(Oa);Fa.upgradeFlag=!0;Va.displayName=Ba.product_display_name;Va.sku=Oa;Va.salePrice=Ba.price_info?Ba.price_info[Da].sale_price.value:
1301""}}}else if("CONFIGURATORADDONSAMSUNGCARE"===Ma)v(sa,k,D,A);else if("CONFIGURATORADDON"===Ma)F(sa,k,D,A,xa);else if("CONFIGURATOROFFER"===Ma&&"COMBO"===a){if(!ta[sa.offer_id]){var Sa=void 0,Ra=k,Ua=Ra.pdTimeformatFront,Y=Ra.siteCode,ja=Ra.reCallSyndi,ya=Ra.setComboPopupData,Aa=Ra.util,Ga=Ra.priceCurrency,ua={},Ea=sa.images&&0<sa.images.length?sa.images[0]:null;ua.comboInfo=[];ua.iconImgName=Ea;sa.start_date&&sa.end_date&&(ua.comboDate=Ua?dateFormat(sa.start_date.split("T")[0],Ua)+" ~ "+dateFormat(sa.end_date.split("T")[0],
1302Ua):sa.start_date.split("T")[0]+" ~ "+sa.end_date.split("T")[0]);sa.formatted_sales_pitch&&(ua.comboPitch=sa.formatted_sales_pitch);if(pa.discount_description&&0<pa.discount_description.length){var Ia=pa.expanded;for(Sa in pa.discount_description){var wa=pa.discount_description[Sa];if(wa.skus&&0<wa.skus.length)for(var Ca=wa.skus,Xa=0;Xa<Ca.length;Xa++){var Ta={};Ta.sku=Ca[Xa];if(Ia&&Ia.discounted_skus&&Ia.discounted_skus[Ca[Xa]]){var Pa=Ia.discounted_skus[Ca[Xa]],Wa=0;Pa.msrp_price?(Ta.msrp_price=
1303Pa.msrp_price,Wa=Pa.msrp_price.value):Ta.msrp_price={};Ta.sale_price=Pa.sale_price?Pa.sale_price:{};"percentage"===wa.type.toLowerCase()?Ta.formatted_value=wa.value+"%":Ta.formatted_value=currencyComma(wa.value,Ga);"fr"===Y&&wa.value&&-1<"rebate".indexOf(wa.type.toLowerCase())&&0>=Number(Wa)-Number(wa.value)&&(Ta.formatted_value="0");Ta.type=wa.type;Ta.offer_type=pa.type="COMBO";Ta.sales_pitch=pa.sales_pitch&&0<pa.sales_pitch.length?pa.sales_pitch[0]:"";ua.comboInfo.push(Ta);ja.push(Ta);Ra.comboFlag=
1304!0;Aa.merge(Ra.totalSkuList,Ta.sku,Ta)}}}ya.push(ua)}ta[sa.offer_id]=sa.offer_id}}else if("CONFIGURATOROFFER"===Ma&&"BOGO"===a){if(!ta[sa.offer_id]){var ab=void 0,Ya=k,Za=Ya.pdTimeformatFront,cb=Ya.reCallSyndi,ib=Ya.bogoModelList,$a=Ya.pdSoftBundleUseYn,mb=Ya.util,kb="",gb="";if("N"!==Ya.pdBogoUseYn&&(sa.start_date&&sa.end_date&&(gb=Za?dateFormat(sa.start_date.split("T")[0],Za)+" ~ "+dateFormat(sa.end_date.split("T")[0],Za):sa.start_date.split("T")[0]+" ~ "+sa.end_date.split("T")[0]),sa.sales_pitch&&
1305(kb=sa.sales_pitch[0]),pa.discount_description&&0<pa.discount_description.length))for(ab in pa.discount_description)if(pa.discount_description[ab].skus&&0<pa.discount_description[ab].skus.length)for(var xb=pa.discount_description[ab].skus,Cb=0;Cb<xb.length;Cb++){var hb={};hb.sku=xb[Cb];hb.bogo_date=gb;hb.bogo_sales_pitch=kb;"Y"===$a?(hb.offer_type_b="BOGO",cb.push(hb)):ib.push(hb);mb.merge(Ya.totalSkuList,hb.sku,hb);Ya.bogoFlag=!0}ta[sa.offer_id]=sa.offer_id}}else if("PRODUCTDETAILSPROMOMESSAGE"===
1306Ma){var Mb=xa,rb=D.offer,nb=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",Ib=W(sa,k),bb=Ib.promoIconFlag,jb=Ib.iconImgName,db="offer-promotion promotion-index-"+Mb,sb=[],Ob=null,ob=[],fc="";null!==sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length?sb=sa.formatted_sales_pitch:null!==sa.sales_pitch&&0<sa.sales_pitch.length&&(sb=sa.sales_pitch);bb&&(Ob="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+jb+".svg");for(var cc=
13070;cc<sb.length;cc++)fc+=sb[cc].replace("\x3ca","\x3ca target\x3d'_blank'");ob.push({target:"."+db.replace(" ",".")+" .pd-offer__desc",text:fc});rb.promotionMessage.push({title:"promoMessage",hasItem:!0,item:{contentWrapperClass:db,isIcon:!0,iconAttr:{src:Ob,alt:nb},description:{hasDescription:!0},rowText:ob}})}else if("PRODUCTDETAILSFINANCEPLANPROMO"===Ma){var Hb=k,Rb=xa,Pb=Hb.siteCode,Eb=D.offer,$b=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",Sb=sa.emi_calculator_url?sa.emi_calculator_url:
1308Hb.financingUrl,gc=W(sa,Hb),Qb=gc.promoIconFlag,lc=gc.iconImgName,pb="offer-emi emi-index-"+Rb,tb="",Fb="",rc=[],ub="";Hb.financingEligible=!0;Sb&&(Hb.emiCalculatorUrl=Sb);sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length?tb=sa.formatted_sales_pitch:sa.sales_pitch&&0<sa.sales_pitch.length&&(tb=sa.sales_pitch);if(tb){Qb&&(Fb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+lc+".svg",ub=ub+'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+
1309(Fb+'?$LazyLoad_Home_PNG$" alt\x3d"'+$b+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Fb+'?$48_48_PNG$" alt\x3d"'+$b+'"\x3e\x3c/div\x3e'),ub+="\x3c/div\x3e");ub+='\x3cdiv class\x3d"pd-offer-desc"\x3e';ub+='\x3cdiv class\x3d"pd-offer__cta"\x3e';if("in"===Pb||"uk"===Pb||"lt"===Pb||"id"===Pb){Hb.promotionFinancingFlag=!0;for(var mc=0;mc<tb.length;mc++){var lb=tb[mc].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>lb.indexOf("\x3ca")&&("in"===Pb?(ub+='\x3cstrong class\x3d"pd-offer__title-text"\x3e',
1310ub+=lb+" \x3cbr/\x3e",ub+='\x3ca class\x3d"cta cta--underline cta--black add-special-tagging" href\x3d"javascript:void(0);" data-target-popup\x3d"eipPopup" aria-haspopup\x3d"dialog" role\x3d"button"an-tr\x3d"header(pim)_offer option-'+Hb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+lb.toLowerCase()+':learn more"\x3e'+Granite.I18n.get("Learn more")+"\x3c/a\x3e",ub+="\x3c/strong\x3e"):ub+='\x3ca class\x3d"cta cta--underline cta--black add-special-tagging" href\x3d"javascript:void(0);" data-target-popup\x3d"eipPopup" aria-haspopup\x3d"dialog" role\x3d"button"an-tr\x3d"header(pim)_offer option-'+
1311Hb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+lb.toLowerCase()+':learn more"\x3e'+lb+"\x3c/a\x3e")}}else if("ee"===Pb||"lv"===Pb){Hb.promotionFinancingFlag=!0;for(var yb=0;yb<tb.length;yb++){var Db=tb[yb].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>Db.indexOf("\x3ca")&&(ub+='\x3ca class\x3d"cta cta--underline cta--black add-special-tagging" href\x3d"javascript:void(0);" data-target-popup\x3d"eipEEPopup" aria-haspopup\x3d"dialog" role\x3d"button"id\x3d"fiance-ee-'+
1312Rb+'"an-tr\x3d"header(pim)_offer option-'+Hb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+Db.toLowerCase()+':learn more"\x3e'+Db+"\x3c/a\x3e")}}else{ub+='\x3cstrong class\x3d"pd-offer__title-text"\x3e';for(var eb=0;eb<tb.length;eb++)ub+=tb[eb];ub+="\x3c/strong\x3e"}ub+="\x3c/div\x3e";ub+="\x3c/div\x3e";rc.push({target:"."+pb.replace(" ","."),text:ub});Eb.promotionFinance.push({title:"finance",hasItem:!0,item:{contentWrapperClass:pb,iconAttr:{src:Fb,alt:$b},
1313description:{hasDescription:!0},rowText:rc}})}}else if("PRODUCTDETAILSSMARTCLUBPROMO"===Ma){var zb=void 0,Jb=xa,Tb=k.siteCode,hc=D.offer,Ub=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",qb=W(sa,k).iconImgName,vb="offer-smart-club smart-club-index-"+Jb,Ab="",Vb="",Yb=[];sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length&&(Ab=sa.formatted_sales_pitch);if(Ab){Vb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+qb+".svg";zb=
1314'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+(Vb+'?$LazyLoad_Home_PNG$" alt\x3d"'+Ub+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Vb+'?$48_48_PNG$" alt\x3d"'+Ub+'"\x3e\x3c/div\x3e');zb+="\x3c/div\x3e";zb+='\x3cdiv class\x3d"pd-offer-desc"\x3e\x3cdiv\x3e';zb+="\t\t\x3ch3\x3e\x3cstrong\x3eSmart Club\x3c/strong\x3e\x3c/h3\x3e";zb+="\x3cp\x3e";for(var Kb=0;Kb<Ab.length;Kb++)0>Ab[Kb].replace("\x3cu\x3e",
1315"").replace("\x3c/u\x3e","").indexOf("\x3ca")&&"in"===Tb&&(zb+=Ab+"");zb+="\x3c/p\x3e";zb+="\x3c/div\x3e";Yb.push({target:"."+vb.replace(" ","."),text:zb});hc.promotionSmartclub.push({title:"smartclub",hasItem:!0,item:{contentWrapperClass:vb,iconAttr:{src:Vb,alt:Ub},description:{hasDescription:!0}
1315,rowText:Yb}})}}else if("PRODUCTDETAILSSAMSUNGFINANCEPLANPROMO"===Ma){var Wb=D,Bb=k.financeplusUrl+"?family_id\x3d"+k.familyCode+"\x26sku\x3d"+k.shopSkuCode,fb=null;"in"===k.siteCode&&(Bb="https://www.samsung.com/in/offer/online/finance-plus/",
1316fb="blank");var Nb="",wb=null;k.financingEligible=!0;null!==sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length?Nb=sa.formatted_sales_pitch:null!==sa.sales_pitch&&0<sa.sales_pitch.length&&(Nb=sa.sales_pitch);for(var nc=0;nc<Nb.length;nc++)wb=Nb[nc].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");Wb.offerFinance={title:Granite.I18n.get("Samsung Finance+"),hasComponent:!0,description:wb,learnMoreCta:{"class":null,title:null,href:Bb,target:fb,text:Granite.I18n.get("Learn more")}}}else if("CONFIGURATORBUYBACK"!==
1317Ma)if("CONFIGURATORADDONVOUCHER"===Ma){var ac=k,Lb={},dc=sa.discount_description;sa.sales_pitch&&0<sa.sales_pitch.length&&(Lb.sales_pitch=sa.sales_pitch[0]);sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length&&(Lb.formatted_sales_pitch=sa.formatted_sales_pitch[0]);if(dc&&0<dc.length){Lb.discount_description=dc;for(var Xb=0;Xb<dc.length;Xb++){var sc=dc[Xb];Lb.price=sc.value;Lb.coupons=sc.coupons}}sa.terms_and_condition_ids&&0<sa.terms_and_condition_ids.length&&(Lb.terms_and_condition_ids=sa.terms_and_condition_ids);
1318ac.voucherdata=Lb;ac.hasVoucher=!0;F(sa,k,D,A,xa)}else if("CONFIGURATORASSUREDBUYBACK"===Ma){if("in"===k.siteCode){var Gb=k,ic=sa.discount_description;if(null!==ic&&0<ic.length)for(var jc=0;jc<ic.length;jc++)for(var tc=0;tc<ic[jc].discounted_skus.length;tc++){var zc=ic[jc].discounted_skus[tc].sku;Gb.newAssuredBuyBackFlag=!0;Gb.reCallSyndi.push({sku:zc,checkingType:"newAssuredBuyBack"})}}}else"CONFIGURATORADDONCAREPACK"===Ma&&w(sa,z,k,A)}var ec=k.reCallSyndi,Ec=k.syndiApiData.products;if(0<ec.length){for(var kc=
1319[],oc=0;oc<ec.length;oc++){var uc=ec[oc].sku;Ec[uc]||kc.push(uc)}0<kc.length?(k.finishedSecondSyndi=!1,g(k,A,kc,aa)):aa(k,A,!0)}else H(k,A,D)}var pc=k.util,qc=!1;k.tradeInFlag&&("in"===siteCode?qc=!0:"fr"===siteCode&&(qc=!0));pc.settingTradeInDraw({},k,A,qc);var vc=k.upgradeFlag,Ac=k.pdUpgradeLearnMoreUrl,Fc=k.util,bc=k.siteCode,wc=k.pdProductType,Bc="",Zb="",Dc="_self",xc="",yc="javascript:;",Ic={},Jc={},Kc={};vc&&("uk"===bc?Ac&&(xc=Granite.I18n.get("Learn more"),yc=Ac,Dc="_blank"):"de"===bc&&(xc=
1320Granite.I18n.get("Learn more"),Ic.layerTarget="upgradeLearnMorePopup"),Bc=Granite.I18n.get("Add Samsung Upgrade Program"),Zb="uk"===bc?"PHONE"!==wc?Granite.I18n.get("Pay for your new TV in monthly installments and be invited to upgrade to the latest TV after months."):Granite.I18n.get("Pay for your new smartphone in monthly instalments and be invited to upgrade to the new smartphone as soon as it launches."):Granite.I18n.get("Pay for your new Galaxy phone in monthly instalments and be invited to upgrade to the new Galaxy as soon as it launches."),
1321Jc={"class":"cm-s-popup-opener",text:Granite.I18n.get("YES"),layerTarget:"upgradePopup"},Kc={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"});var Pc=Fc.getAttrCta(xc,yc,Dc,"",Ic,"");D.upgrade={hasComponent:vc,isEmbededType:!1,isNotEmbededType:!0,title:Bc,learnMoreCta:Pc,description:Zb,yesAttr:Jc,noAttr:Kc,embedData:{}};var Lc=k.stockLevelStatus,Qc=k.proudctEcomFlag;if(("pl"!==k.siteCode||"OUTOFSTOCK"!==Lc)&&"NOORDER"!==Lc&&!0===Qc&&
1322null!==z.price_info&&0<z.price_info.length)for(var Hc=z.price_info,Gc=0;Gc<Hc.length;Gc++)if(!0===z.flags.is_upgrade_eligible&&Hc[Gc].leasing_details){var Mc=Hc[Gc].leasing_details,Cc=null,Nc;for(Nc in Mc)Cc=Mc[Nc];if(Cc){var Rc=Cc.tenure.unit,Sc=Cc.tenure.value,Tc=Cc.monthly_rate.value,Uc=Cc.down_payment.value;var Vc=k.pdUpgrade?Granite.I18n.get("Upgrade"):Granite.I18n.get("Lease");D.between={hasComponent:!0,purchase:{text:Granite.I18n.get("Purchase")},nonPurchase:{text:Vc,dataLeaseing:Cc.plan_id,
1323tenureUnit:Rc,tenureValue:Sc,monthlyValue:Tc,paymentValue:Uc}}}}var Wc=k.siteCode,Oc=$.cookies.get("epp_verified",{domain:".samsung.com"}),Xc="PHONE"===k.pdProductType,Yc=$.cookies.get("tmktid",{domain:".samsung.com"});"us"===Wc&&(Oc&&!0===Oc?k.util.selectedUsEpp({sharedObj:k,selectorObj:A}):Xc&&(Yc?k.util.selectedUsEpp({sharedObj:k,selectorObj:A}):(k.commonApiModel.setUsProductJson(k,A),k.commonApiModel.setEppDiscount(k,A))))}}else K.settingPriceCta(k.hasPriceCta,k,A,C);else K.settingPriceCta(k.hasPriceCta,
1324k,A,C);k.commonApiModel.offlineStockAjax(k);k.finishedFirstSyndi=!0;h.productDraw(D);K.afterTotalAPI(k,A);
1324k.commonApiModel.settingWishList(k,A);K.clickEventListener(k,A)}function w(k,A,ca,K){A=ca.samsungCareBadgeList;K=ca.samsungCareList;var D=ca.reCallSyndi,h=ca.multiCareYn,C=ca.util,E=ca.samsungCarePackFlag;if("Y"!==ca.pdProductTypeCheckYn&&E){E=k.discount_description;if(null!==E&&0<E.length)for(var T=0;T<E.length;T++)for(var R=0;R<E[T].discounted_skus.length;R++){var z={},fa=E[T].discounted_skus[R],
1325va=fa.sku;C.merge(ca.totalSkuList,va,fa);z.discounted_sku=va;K.push(z);ca.samsungCareFlag=!0;"Y"===h&&D.push({sku:va})}ca.samsungCareFlag&&k.formatted_sales_pitch&&0<k.formatted_sales_pitch.length&&(ca.samsungCareSubText=k.formatted_sales_pitch);for(var ra in k.product_tag_order)A.push(k.product_tag_order[ra]);A.sort(function(oa,da){return oa.product_rank-da.product_rank})}}var e=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),p=function(){};p.prototype.productAjax=function(k,A){var ca=
1326[k.shopSkuCode];k.finishedFirstSyndi=!1;g(k,A,ca,B)};p.prototype.callCheckOutCta=function(k,A,ca,K,D){var h=k.checkOutLink;h="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":h;x(k,ca,A,h,K,D)};p.prototype.callAddToCartCta=function(k,A,ca,K,D){var h=k.cartUrl;h="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":h;x(k,ca,A,h,K,D)};e.BuyingToolOpAjaxGPv2=p})();
1327(function(){function l(d,M,t,y,I){var X=d.util,V=d.drawObj,O=$(t.buyingToolOptDelivery.find("#delivery-zipcode")).val(),S=X.hasTariffOptionResult(d,t),Q=X.hasCareResult(d,t),ea=X.hasWarrantyResult(d,t),la=X.hasWarrantyVdResult(d,t),ma=X.hasUpgradeResult(d,t),ta=X.hasTradeInResult(d,t),xa=X.hasBetweenResult(d,t),sa=X.hasComboResult(d,t),Ma=X.hasForeverResult(d,t),pa=X.hasGiftResult(d,t),a=X.hasAssuredBuyBackResultResult(d,t),c=X.hasNewAssuredBuyBackResult(d,t);y={};if(X.checkingDeliveryCode(d,t))if(d.cartBezelCode&&
1328(y.bezelCode=d.cartBezelCode,y.isContinue=I),d.giftCard.cartGiftCardCode&&(y.giftCardCode=d.giftCard.cartGiftCardCode,y.isContinue=I),y.postalCode=O,I){if(M&&0<M.length&&(y.addon={modelCodeList:[].concat($jscomp.arrayFromIterable(M)),childModelObject:d.productChildModelObject}),pa){d=V.offer.gift.item;for(var m in d.bundleList)y.gift={modelCode:d.bundleList[m]}}}else{"true"===$("#isEppPage").val()&&"in"===d.siteCode&&d.proudctPriceInfo.productCartCount&&1<d.proudctPriceInfo.productCartCount&&(y.orignalQuantity=
1329{},y.orignalQuantity.quantity=""+d.proudctPriceInfo.productCartCount);"cn"===d.siteCode&&(M=d.installmentGift)&&M.selectedOffers&&(y.installment=M);(M=d.globalServiceInfo.embedaddon)&&0<M.length&&(y.embedaddon=M);S&&(S=V.tariffOptionResult,y.tariff={modelCode:S.dataModelCode,simSkuCode:S.dataSimskuCode,tnc:[S.dataId],tariffResult:d.globalServiceInfo.tariff});ta&&"in"!==P&&(ta=V.tradeInResult,"cn"===P||"tr"===P?y.tradeIn={plan_id:ta.dataQuoteId,tradeInResultList:d.isMultiTradeIn&&ta.list?ta.list:[]}:
1330d.useNewAddToCartApi?(S=d.isMultiTradeIn&&ta.list?ta.list:[],d.isMultiTradeIn||!d.globalServiceInfo||d.ceTradeUpPopup.isEnabled||(d.globalServiceInfo.tradein.services={},d.globalServiceInfo.tradein.services.tradeInAdditionalInfo=d.globalServiceInfo.tradein.tradeInAdditionalInfo,d.globalServiceInfo.tradein.services.questionAndAnswer=d.globalServiceInfo.tradein.questionAndAnswer,d.globalServiceInfo.tradein.services.tradeInType=d.globalServiceInfo.tradein.tradeInType,d.globalServiceInfo.tradein.services.imeiKey=
1331d.globalServiceInfo.tradein.imeiKey,d.globalServiceInfo.tradein.services.serviceCode=d.globalServiceInfo.tradein.serviceCode?d.globalServiceInfo.tradein.serviceCode:d.globalServiceInfo.tradein.tradeinId,d.globalServiceInfo.tradein.services.serviceType=d.globalServiceInfo.tradein.serviceType,S.push(d.globalServiceInfo.tradein)),y.tradeIn={plan_id:ta.dataQuoteId,tradeInResultList:S}):y.tradeIn={plan_id:ta.dataQuoteId},ta.dataId&&0<ta.dataId.length&&(y.tradeIn.tnc=[].concat($jscomp.arrayFromIterable(ta.dataId))));
1332if(d.exchangeApiData&&d.exchangeApiData.exchangeFlag&&d.ceTradeUpPopup.isEnabled||"in"===P)y.exchange="in"==P?{exchangeId:d.exchangeApiData.dataQuoteId,tradeInType:d.tradeInType}
1332:{exchangeId:d.exchangeApiData.dataQuoteId};"se"==P&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(y.samsungUpgrade={serviceCode:window.sg.components.SamsungFlexPopup.samsungFlexServiceCode});if(Q){Q=V.careResult;var f;"es"!==P&&"fr"!==P&&"cz"!==P||"monthly"!==(null==(f=V.careResult.dataPaymentcycle)?
1333void 0:f.toLowerCase())?y.care={modelCode:Q.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(Q.dataId))}:y.care={modelCode:Q.dataModelCode,isMonltly:!0,paymentCycle:V.careResult.dataPaymentcycle.toUpperCase(),tnc:[].concat($jscomp.arrayFromIterable(Q.dataId))}}ea&&(f=V.warrantyResult,y.warranty={modelCode:f.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(f.dataId))});la&&(y.warrantyVd={modelCode:V.warrantyVdResult.smcCode});ma&&(y.upgrade={modelCode:d.childCheckList[0],tnc:[].concat($jscomp.arrayFromIterable(V.upgradeResult.dataId))});
1334xa&&(y.between={plan_id:V.between.nonPurchase.dataLeaseing});if(sa){la=V.offer.combo;y.combo={modelCodeList:[]};for(var q in la){ma=la[q].item;for(var ba in ma.bundleList)y.combo.modelCodeList.push(ma.bundleList[ba].dataModelCode)}}if(pa)for(m in q=V.offer.gift.item,q.bundleList)if(ba=q.bundleList[m].dataModelCode)y.gift={modelCode:ba};a&&(m=d.drawObj.assuredBuyBackResult,y.assuredBuyBack={modelCode:m.dataSku,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});Ma&&(m=d.drawObj.galaxyForeverResult,
1335y.forever={modelCodeList:[].concat($jscomp.arrayFromIterable(m.modelList)),planId:m.financePlanId,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});c&&(d=d.drawObj.newAssuredBuyBackResult,y.newAssuredBuyBack={modelCode:d.dataModelCode,dataDisplayName:d.dataDisplayName,dataDisplayPrice:d.dataDisplayPrice,dataPrice:d.dataPrice,hasComponent:d.hasComponent})}return y}function g(d,M,t){if(!t.isExecuted){var y=!0;for(I in t.finishedAPIList)if(!t.finishedAPIList[I]){y=!1;break}if(y){t.isExecuted=!0;d.view.productDraw(d.drawObj);
1336"in"===P&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&d.drawObj.delivery.hasComponent&&U(d,M);d.util.totalAfterFunction(d,M);if("10030000"!=d.categoryTypeCode){t=d.financeFlag;y=d.financingUrl;var I=d.siteCode;var X=d.promotionFinancingFlag,V=d.util,O=d.view,S=Granite.I18n.get("Calculate Finance"),Q=d.drawObj,ea=V.getEmiUrl(d,M),la=!1,ma={};"Y"===t&&""!==y&&"in"!==I&&("uk"===I||"id"===I||"lt"===I||"lv"===I||"ee"===I||"pl"===I||"hu"===I||"ro"===I||"bg"===I||"ua"===I||
1337"ph"===I||"sg"===I||"my"===I||"nz"===I||"sk"===I||"cz"===I||"cn"===I||"co"===I||"cl"===I||"mx"===I?X&&(la=!0,ma=V.getAttrCta(S,ea,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):(la=!0,ma=V.getAttrCta(S,ea,"_self","js-install-calc",{layerTarget:"eipPopup"},"")));Q.calculator={hasComponent:la,emiAttr:ma};O.emiDraw(Q)}I=d.util;X=M.buyingToolOptOffer;"Y"===$("#typeux2025").val()&&(X=M.buyingToolOptOfferText);t=$(M.buyingToolCalculate).find(".js-install-calc");y=X.find('a[data-target-popup\x3d"eipPopup"]');
1338X=X.find('a[data-target-popup\x3d"eipEEPopup"]');I=I.getEmiUrl(d,M);y.attr("href",I);X.attr("href",I);t.attr("href",I);d.util.totalReinit(d,M);d.util.gpHybrisGlobalEndPoint(d,M);H(d,M);d.util.clickEventListener(d,M);window.sg.components.PDbuyingToolNew.reInit()}}}function H(d,M){var t=d.drawObj,y=t.wishList,I=$.cookies.get("jwt_"+d.countryIsoCode,{domain:".samsung.com"}),X=d.stockLevelStatus,V=d.proudctPriceInfo.salePrice,O=commonLoginCheck(),S=d.apiDomain,Q=d.view,ea=d.util;y.stockLevelStatus=X;
1339y.price=V;y.moCode=d.shopSkuCode?d.shopSkuCode:d.modelCode;y.moName=d.modelName;y.labelText=Granite.I18n.get("add wishlist")+" : "+d.modelName;y.targetId="#wishlist-popup";y.contentWrapperClass="NOORDER"===X||"LEARNMORE"===X?"js-btn-wishlist js-not-for-sale-wishlist tg-add-wishlist js-learnmore":V?O?"s-btn-wishlist js-select-wishlist tg-add-wishlist":"s-btn-wishlist js-create-wishlist tg-add-wishlist":"js-btn-wishlist js-not-for-sale-wishlist js-learnmore tg-add-wishlist";y="";$("#shopParmLang").val()&&
1340(y="\x26lang\x3d"+$("#shopParmLang").val());O?$.ajax({url:S+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productC
1340ode\x3d"+d.modelCode+y,type:"GET",dataType:"json",timeout:2E4,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(la){var ma=d.drawObj.wishList;la&&"My Wishlist"===la&&(ma.labelText=Granite.I18n.get("Remove wishlist")+" : "+d.modelName,ma.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",
1341ma.isSelected="true")},error:function(la){},complete:function(){var la=d.util;d.view.productWishListDraw(d.drawObj);la.settingWishlistTagging(d,M)}}):(Q.productWishListDraw(t),ea.settingWishlistTagging(d,M));if(null===I||""===I)return!1}function u(d,M,t,y){var I=d.drawObj,X=d.siteCode;if(y){k(d,M,t);"pe"!=X&&"mx"!=X||p(d,M,t);("fr"==X&&d.hasRentalInstallment||"fr"!=X)&&n(d,M,t);"cn"==X&&t.apiData[d.modelCode].isComingSoon&&(d.isComingSoon=t.apiData[d.modelCode].isComingSoon);ra(d,M,t);e(d,M,t);d.util.settingShippingOrBack(d);
1342d.util.settingPriceCta(d.hasPriceCta,d,M,d.currentUrl);"tr"==X?(y=t.apiData[d.modelCode],void 0!=y.omniChannelFlag&&y.omniChannelFlag?w(d,M,t):$(M.buyingToolOptCheckDealerStock).remove()):$(M.buyingToolOptCheckDealerStock).remove();if("cn"==X){y=t.apiData[d.modelCode];var V=d.apiDomain,O="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():X,S=[];y.availableCoupons&&null!=y.availableCoupons&&0<y.availableCoupons.length&&(y.availableCoupons.forEach(function(Q){S.push(Q.code)}),$.ajax({url:V+"/tokocommercewebservices/v2/"+
1343O+"/users/current/coupons?couponCodes\x3d"+S,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(Q,ea,la){if(200==la.status&&null!=Q&&Q&&Q.data.coupons){Q=Q.data.coupons;var ma=(new Date).toISOString();Q=Q.filter(function(ta){return ta.endDate>=ma});ea=[];Q&&2<=Q.length?(ea=Q.sort(function(ta,xa){return new Date(xa.startDate)-new Date(ta.startDate)}),product_coupon.init(ea),pd_hybris_coupon_popup.init(ea)):Q&&1==Q.length&&(ea=Q,product_coupon.init(ea),
1344pd_hybris_coupon_popup.init(ea))}},error:function(){console.log("coupon ajax err")}}))}I.price.priceWrapper.hasPriceWrapper&&(d.drawObj.offer.headline="fr"===X?Granite.I18n.get("Offer_PD"):Granite.I18n.getVar("Offer","ux2"),x(d,M,t),aa(d,M,t),v(d,M,t),F(d,M,t));d.commonApiModel.offlineStockAjax(d);d.useHotDealBadge&&d.merchText&&d.view.hotDealBadgeDraw(d.merchText);d.util.settingPriceDraw(d,M);d.view.productDraw(d.drawObj)}else $(M.buyingToolOptCheckDealerStock).remove();g(d,M,t)}function n(d,M,t){var y=
1345d.apiDomain,I=d.siteCode,X=d.modelCode,V="";$("#shopParmLang").val()&&(V="\x26lang\x3d"+$("#shopParmLang").val());y=y+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/servicesv2/leasingInfoV2?productCode\x3d"+X+V;"true"!==$("#isEppPage").val()||"pe"!==I&&"cl"!==I||(y=$("#storeWebDomain").val()+"/"+d.siteCodeWithEpp+"/servicesv2/nocache/leasingInfo?productCode\x3d"+X);t.finishedAPIList.leasing=!1;X="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?
1346{withCredentials:!0}:{};$.ajax({url:y,type:"GET",dataType:"json",cache:!0,xhrFields:X,crossDomain:!0,timeout:2E4,success:function(O){if(O&&0<O.length){var S=!1,Q=-1,ea=-1;!0===d.hasRentalInstallment&&"nl"==I&&"nl"===d.siteCode&&O&&0<O.length&&O[0]&&O[0].months&&W(O,d,M,t);O=$jscomp.makeIterator(O);for(var la=O.next();!la.done;la=O.next())if(la=la.value,"UPGRADE"!==la.paymentModeType.toUpperCase()||S)"LEASING"===la.paymentModeType.toUpperCase()&&(la.monthly&&-1===Q&&(Q=parseFloat(la.monthly)),"nl"==
1347I?(la.months&&-1===ea&&(ea=parseInt(la.months)),"nl-evollisPaymentMode"===la.paymentModeCode&&la.months&&la.monthly&&la.interest&&parseInt(la.months)>=ea&&(t.commonModel.price.leasingInfo.monthlyRate=la.monthly,t.commonModel.price.leasingInfo.tenureVal=la.months,t.commonModel.price.leasingInfo.interest=la.interest,t.commonModel.price.leasingInfo.upfront=la.upfront,t.commonModel.price.leasingInfo.paymentModeCode=la.paymentModeCode,ea=parseInt(la.months))):la.months&&la.monthly&&0===parseFloat(la.interest)&&
1348parseFloat(la.monthly)<=Q&&(t.commonModel.price.leasingInfo.monthlyRate=la.monthly,t.commonModel.price.leasingInfo.tenureVal=la.months,t.commonModel.price.leasingInfo.interest=la.interest,t.commonModel.price.leasingInfo.upfront=la.upfront,t.commonModel.price.leasingInfo.paymentModeCode=la.paymentModeCode,Q=parseFloat(la.monthly)),oa(d,M,t));else{d.eupData.salePrice=la.totalCost;d.eupData.monthlyPrice=la.monthly;d.eupData.months=la.months;S=d;var ma=t,ta=S.childCheckList,xa=S.eupData,sa=ma.commonModel.upgradeData,
1349Ma=S.pdUpgradeUseYn;la=S.util;var pa=S.pdUpgradeLearnMoreUrl,a=S.pdProductType;sa.hasData&&(S.upgradeEligible=!0,"Y"===Ma&&sa.sku&&(sa=sa.sku,ta.push(sa),S.upgradeFlag=!0,xa.displayName=ma.commonModel.product_display_name,xa.sku=sa));ta=ma="";Ma="_self";var c="",m="javascript:;",f={};xa={};sa={};S.upgradeFlag&&("uk"===P?pa&&(c=Granite.I18n.get("Learn more"),m=pa,Ma="_blank"):"de"===P&&(c=Granite.I18n.get("Learn more"),f.layerTarget="upgradeLearnMorePopup"),ma=Granite.I18n.get("Add Samsung Upgrade Program"),
1350ta="uk"===P?"PHONE"!==a?Granite.I18n.get("Pay for your new TV in monthly installments and be invited to upgrade to the latest TV after months."):Granite.I18n.get("Pay for your new smartphone in monthly instalments and be invited to upgrade to the new smartphone as soon as it launches."):Granite.I18n.get("Pay for your new Galaxy phone in monthly instalments and be invited to upgrade to the new Galaxy as soon as it launches."),xa={"class":"cm-s-popup-opener",text:Granite.I18n.get("YES"),layerTarget:"upgradePopup"},
1351sa={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"});la=la.getAttrCta(c,m,Ma,"",f,"");S.drawObj.upgrade={hasComponent:S.upgradeFlag,isEmbededType:!1,isNotEmbededType:!0,title:ma,learnMoreCta:la,description:ta,yesAttr:xa,noAttr:sa,embedData:{}};S.upgradeFlag&&buyingPdEup.setTncUpgrade();S=!0}O=d.siteCode;Q=d.drawObj;ea=d.view;la="be"===O||"be_fr"===O||"nl"===O||"fr"===O;O=Granite.I18n.get("Lease");S=Granite.I18n.get("Purchase");la&&(la=
1352t.commonModel.price.leasingInfo.upfront,pa=t.commonModel.price.leasingInfo.tenureVal,a=t.commonModel.price.leasingInfo.monthlyRate,ma=t.commonModel.price.leasingInfo.paymentModeCode,ta=!1,""!==la&&""!==pa&&""!==a&&(ta=!0),Q.between={hasComponent:ta,purchase:{text:S},nonPurchase:{text:O,tenureUnit:pa,tenureValue:0,monthlyValue:a,paymentValue:la,paymentModeCode:ma}},ea.betweenDraw(Q))}},error:function(O){},complete:function(){t.finishedAPIList.leasing=!0;g(d,M,t)}})}function v(d,M,t){if(t.commonModel.warrantyData.hasData){var y=
1353d.warrantyFlag=!0,I=d.pdProductType,X=d.warrantyLearnMoreUrl,V=d.util,O=d.view,S=d.drawObj,Q=Granite.I18n.get("Extended Warranty"),ea="",la="_self",ma="",ta="javascript:;",xa={},sa={},Ma={},pa={};y&&($(M.buyingToolOptWarranty.get(0)).addClass("has-component"),X&&(ma=Granite.I18n.get("Learn more"),ta=X,la="_blank"),"de"!==P||"TV"!=I&&"ETC"!=I?ea=Granite.I18n.get("With Extended Warranty, you can enjoy extra protection for your first 12 months. Be covered for unfortunate incidents that are not included in our standard 2 year warranty."):
1354(Q=Granite.I18n.get("Garantieverl\u00e4ngerung"),ea="Verl\u00e4ngere die Standard-Herstellergarantie deines Samsung Ger\u00e4ts von 2 auf 5 Jahre"),Ma={"class":"js-extended-layer cm-s-popup-opener is-async js-warranty-pop",text:Granite.I18n.get("YES"),layerTarget:"extendedWarrantyPopup"},pa={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"warranty"},xa=V.getAttrCta(ma,ta,la,"",sa,""));S.warranty={hasComponent:y,title:Q,learnMoreCta:xa,description:ea,yesAttr:Ma,noAttr:pa,subText:""};
1355d.finalWarrantyList=t.commonModel.warrantyData.skuData;O.productAddOnWarranty(S)}}function F(d,M,t){if(t.commonModel.warrantyVdData.hasData){t=d.useWarrantyVd;var y="",I="_blank",X="",V=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1;"de"==P?y="https://www.samsung.com/de/offer/garantieverlaengerung":"mx"==P?V?(I="_self",X="hubbleCareinfoPopup"):y="https://www.samsung.com/mx/support/samsung-care-plus-da":"fr"==P?y="https://www.samsung.com/fr/shop-faq/extensions-de-garantie/":
1356"cn"==P?y="https://www.samsung.com.cn/offer/ce-extended-warranty/":"ph"==P?y="https://www.samsung.com/ph/offer/samsung-care-plus-consumer-electronics/":"id"==P?y="https://images.samsung.com/is/content/samsung/assets/id/offer/2025/5/tnc/terms_and_condition_program_care_plus.pdf":"cz"==P?y="https://www.samsung.com/cz/support/warranty/":"sk"==P?y="https://www.samsung.com/sk/support/warranty/":"in"==P?y="https://www.samsung.com/in/support/warranty/":"lt"==P?y="https://www.samsung.com/lt/support/warranty/":
1357"lv"==P?y="https://www.samsung.com/lv/support/warranty/":"ee"==P?y="https://www.samsung.com/ee/support/warranty/":"pl"==P?y="https://www.scplus.samsung.pl/":"hr"==P?y="https://www.samsung.com/hr/support/warranty/":"si"==P&&(y="https://www.samsung.com/si/support/warranty/");V=d.view;var O=d.drawObj,S=d.ceTradeUpPopup.productCategoryGroup,Q=Granite.I18n.get("Extended Warranty"),ea="",la={},ma={},ta={};t&&($(M.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),la="ee"==P?{learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),
1358learnMoreHref:y,learnMoreTarget:I,learnMoreTargetPopup:X}:{learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:y,learnMoreTarget:I,learnMoreTargetPopup:X},Q=Granite.I18n.get("VD_Extended Warranty_Title"),ea=Granite.I18n.get("VD_Extended Warranty_Description"),"mx"==P&&"da"==S&&(Q=Granite.I18n.get("DA_Extended Warranty_Title"),ea=Granite.I18n.get("DA_Extended Warranty_Description")),ma={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},ta={text:Granite.I18n.get("VD_Extended Warranty_NO")},
1359"mx"==P&&0<$.grep([{category:"04010000",name:"TVs"},{category:"04020000",name:"Lifestyle TVs"},{category:"04040000",name:"Business TVs"}],function(xa){return xa.category==d.categoryTypeCode}
1359).length&&(Q=Granite.I18n.get("VD_Extended Warranty_Title {0}"," ").replace("  ",""),la.learnMoreHref="https://www.samsung.com/mx/support/samsung-care-plus-tv/"));O.warrantyVd={hasComponent:t,title:Q,learnMoreCta:la,description:ea,yesAttr:ma,noAttr:ta,subText:""};V.productAddOnWarrantyVd(O)}}function W(d,M,t,y){t=
1360M.priceCurrency;M=[];for(var I in d)"LEASING"===d[I].paymentModeType.toUpperCase()&&"nl-santanderPayment"===d[I].paymentModeCode&&M.push(d[I]);if(1<M.length){M.sort(function(V,O){return V.months>O.months?-1:V.months<O.months?1:0});var X=I=d="";X="";M[0].interest&&M[0].months&&(X=M[0].interest+"% Financiering: In "+M[0].months+" termijnen*");""!==X&&$(".financing-info-box__contents-info-text").text(X);M[0].monthly?(d=currencyCommaExcep(parseFloat(M[0].monthly).toFixed(2),t).replace(".",""),X=d+" p/m",
1361$(".financing-info-box__contents-info-price").text(X)):$(".financing-info-box__contents-info-price").remove();$(".pd-select-option.financing-info-box-area").show();M[0].totalCost&&(I=currencyCommaExcep(parseFloat(M[0].totalCost).toFixed(2),t).replace(".",""));X=y.commonModel.price.salePrice.value?currencyCommaExcep(y.commonModel.price.salePrice.value,t).replace(".",""):currencyCommaExcep(y.commonModel.price.msrpPrice.value,t).replace(".","");y="";y='\x3cdiv class\x3d"pd-financing-table__table"\x3e\n\t\t            \x3cdiv class\x3d"pd-financing-table__thead"\x3e\n\t\t              \x3cdiv class\x3d"pd-financing-table__tr"\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eTotale kredietbedrag\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eDebet rentevoet op jaarbasis (vast)\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eJaarlijks kosten-percentage\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eTermijnbedrag per maand\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eDuur krediet-overeenkomst\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eTotaal door de consument te betalen bedrag\x3c/div\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t            \x3cdiv class\x3d"pd-financing-table__body"\x3e\n\t\t              \x3cdiv class\x3d"pd-financing-table__tr"\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+
1362X+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+M[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+M[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+d+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+M[0].months+' Maanden\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I+"\x3c/div\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e";
1363$("#rentalInstallmentFinancingTable").html(y);$("#rentalInstallmentFinancing").show()}else 1==M.length&&(X=X=I=d="",M[0].interest&&M[0].months&&(X=M[0].interest+"% Financiering: In "+M[0].months+" termijnen*"),""!==X&&$(".financing-info-box__contents-info-text").text(X),M[0].monthly?(d=currencyCommaExcep(parseFloat(M[0].monthly).toFixed(2),t).replace(".",""),X=d+" p/m",$(".financing-info-box__contents-info-price").text(X)):$(".financing-info-box__contents-info-price").remove(),$(".pd-select-option.financing-info-box-area").show(),
1364M[0].totalCost&&(I=currencyCommaExcep(parseFloat(M[0].totalCost).toFixed(2),t).replace(".","")),X=y.commonModel.price.salePrice.value?currencyCommaExcep(y.commonModel.price.salePrice.value,t).replace(".",""):currencyCommaExcep(y.commonModel.price.msrpPrice.value,t).replace(".",""),y="",y='\x3cdiv class\x3d"pd-financing-table__table"\x3e\n\t\t            \x3cdiv class\x3d"pd-financing-table__thead"\x3e\n\t\t              \x3cdiv class\x3d"pd-financing-table__tr"\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eTotale kredietbedrag\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eDebet rentevoet op jaarbasis (vast)\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eJaarlijks kosten-percentage\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eTermijnbedrag per maand\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eDuur krediet-overeenkomst\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__th"\x3eTotaal door de consument te betalen bedrag\x3c/div\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t            \x3cdiv class\x3d"pd-financing-table__body"\x3e\n\t\t              \x3cdiv class\x3d"pd-financing-table__tr"\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+
1365X+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+M[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+M[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+d+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+M[0].months+' Maanden\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I+"\x3c/div\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e",
1366$("#rentalInstallmentFinancingTable").html(y),$("#rentalInstallmentFinancing").show())}function aa(d,M,t){var y=d.util,I=d.siteCode;if(t.commonModel.tradeInData.hasData){var X=!1;d.tradeInFlag=!0;d.tradeInFlag&&"in"===I&&(X=!0);"in"==I?(t=Granite.I18n.get("Buy with exchange"),d.tradeinText=t,y.settingTradeInDraw({},d,M,X)):!d.tradeInFlag||"uk"===P&&"CE"===d.tradeInType||(M=$("#tempTitle").val(),(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()?((new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein"),
1367bc_common_tradeIn.init()):"ro"===P&&d.categoryTypeCode.startsWith("08")&&!t.commonModel.tradeInData.isTradeUp?tradeinData.setTradein():!d.ceTradeUpPopup.isEnabled||"page-buying-pd"!=M&&"page-standard-pd"!=M?tradeinData.setTradein():(0===$("#ce-trade-up-popup-section").length&&(M=d.ceTradeUpPopup.productCategoryGroup,t=d.ceTradeUpPopup.productCategoryMainType,"ph"!==P||"rf"!==t&&"wm"!==t&&"ac"!==t||(M=t),(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("ce-tradeup."+M)),window.CeTradeUpPopup.init(d.modelCode)))}}
1368function x(d,M,t){var y=d.siteCode,I=d.drawObj,X=d.stockLevelStatus,V=I.delivery,O=d.deliveryYN,S=$.cookies.get("HA-Deeplink-Zipcode",{domain:".samsung.com"}),Q=d.util,ea=d.pdPackageYn,la=d.drawObj.delivery;if("in"===P){var ma=d.drawObj.delivery.time;t=t.apiData[d.modelCode];if(t.deliveryModes&&0<t.deliveryModes.length){var ta=t.deliveryModes,xa=0;t=[];for(var sa=[],Ma=0;Ma<ta.length;Ma++){var pa=ta[Ma];pa.deliveryStandard&&pa.longText&&("SDD"===pa.deliveryStandard||"NDD"===pa.deliveryStandard)&&
1369(xa++,"SDD"===pa.deliveryStandard&&t.push(pa),"NDD"===pa.deliveryStandard&&sa.push(pa))}0<xa&&null!==ma&&(ta=ma.split("GMT")[0].trim().slice(-8),ma=Number(ta.split(":")[0])+5,xa=Number(ta.split(":")[1])+30,59<xa&&(xa-=30,ma+=1),2>String(xa).length&&(xa="0"+String(xa)),2>String(ma).length&&(ma="0"+String(ma)),ta={},ma=Number(String(ma)+String(xa)),ma<Number(1E3)?0<t.length?ta=t[0]:0<sa.length&&(ta=sa[0]):ma>=Number(1E3)&&0<sa.length&&(ta=sa[0]),ta&&(la.priorityDeliveryText=ta.longText,ta.longDescription&&
1370(la.priorityDeliveryTooltip=ta.longDescription.replaceAll("\n","\x3c/br\x3e")),la.isPriorityDelivery=!0))}}if("in"===y&&!ea||"us"===y&&O)if(V.hasComponent=!0,V.headline=Granite.I18n.get("Delivery Detail"),V.label=Granite.I18n.get("Enter Zipcode"),V.cancelText=Granite.I18n.get("Delete"),V.enterText=Granite.I18n.get("Search"),"id"===y?V.inputAttr.maxlength="5":"us"===y?(V.inputAttr.maxlength="5",S&&(V.inputAttr.value=S,d.view.deliveryDraw(I),Q.deliveryGetApiData(d,M))):(V.ctaClass="cta--disabled",V.inputAttr.maxlength=
1371"6"),"NOORDER"===X||"OUTOFSTOCK"===X)V.labelClass="text-field--disabled",V.ctaClass="cta--disabled",V.inputAttr.disabled="true"}function U(d,M){var t,y;return $jscomp.asyncExecutePromiseGeneratorProgram(function(I){if(1==I.nextAddress)return t=d.stockLevelStatus,(y=$.cookies.get("deliveryPincode",{domain:".samsung.com"}))?I.jumpTo(2):I.yield(window.flutter_inappwebview.callHandler("getPinCode"),3);2!=I.nextAddress&&(y=I.yieldResult);y&&y.toString().replace(/[^0-9]/g,"")&&(d.drawObj.delivery.inputAttr.value=
1372y,d.view.deliveryDraw(d.drawObj),"NOORDER"!==t&&"OUTOFSTOCK"!==t&&d.util.deliveryGetApiData(d,M));I.jumpToEnd()})}function B(d){$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(M,t,y){d.drawObj.delivery.time=y.getResponseHeader("Date")}})}
1372function w(d,M,t){var y="true"===$("#isEppPage").val()?d.apiDomain:$("#storeDomain").val(),I=d.siteCode,X=d.drawObj,V=!1,O="true"===$("#isEppPage").val()?{withCredentials:!0}:{},S=new Promise(function(ea,la){$.ajax({url:y+"/tokocommercewebservices/v2/"+
1373I+"/countries/"+I+"/regions?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:O,crossDomain:!0,timeout:2E4,success:function(ma){ma&&void 0!=ma.regions?ea(ma):ea(null)},error:function(ma){ea(null)}})}),Q=new Promise(function(ea,la){$.ajax({url:y+"/tokocommercewebservices/v2/"+I+"/countries/"+I+"/regionsPinned?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:O,crossDomain:!0,timeout:2E4,success:function(ma){ma&&void 0!=ma.regions?ea(ma):ea(null)},
1374error:function(ma){ea(null)}})});Promise.all([S,Q]).then(function(ea){var la=ea[0],ma=ea[1];if(null!=la&&null!=la.regions&&0<la.regions.length){la=ea[0].regions;if(null!=ma){ma=ea[1].regions;var ta=0;ma.forEach(function(xa){var sa=la.findIndex(function(pa){return xa.isocodeShort==pa.isocodeShort}),Ma=la[sa];la.splice(sa,1);la.splice(ta,0,Ma);ta++})}V=!0;ea=Granite.I18n.get("Select city");X.checkDealerStock={hasComponent:V,selectCity:ea,dataList:la};d.view.checkDealerStockDraw(d.drawObj);g(d,M,t)}})}
1375function e(d,M,t){t.commonModel.emcomFlag&&(t.commonModel.price.msrpPrice.value&&(d.hasPriceCta=!0),0==t.commonModel.price.msrpPrice.value&&"10030000"==d.categoryTypeCode&&"de"==d.siteCode&&(d.hasPriceCta=!0),d.proudctEcomFlag=!0);oa(d,M,t)}function p(d,M,t){var y="true"===$("#isEppPage").val()?d.apiDomain:$("#storeWebDomain").val(),I="true"===$("#isEppPage").val()?d.siteCodeWithEpp:d.siteCode,X=d.modelCode;t.finishedAPIList.stocklevel=!1;$.ajax({url:y+"/tokocommercewebservices/v2/"+I+"/products/stockinfo?productCodes\x3d"+
1376X,type:"GET",cache:!0,crossDomain:!0,dataType:"json",timeout:2E4,success:function(V,O,S){200==S.status&&V&&0<V.length&&V[0].code==X&&"INSTOCK"==V[0].stock.stockLevelStatus.toUpperCase()&&(1==V[0].stock.stockLevel?d.stockLevelStatusDisplay=Granite.I18n.get("There is 1 unit available"):2<=V[0].stock.stockLevel&&9>=V[0].stock.stockLevel?d.stockLevelStatusDisplay=Granite.I18n.get("There are {0} units available",V[0].stock.stockLevel):10<=V[0].stock.stockLevel&&"pe"==I&&(d.stockLevelStatusDisplay=Granite.I18n.get("More than 10 units available")))},
1377error:function(V,O,S){},complete:function(){t.finishedAPIList.stocklevel=!0;g(d,M,t)}})}function k(d,M,t){$("#categorySubTypeCode").val();va(d,M,t);var y=t.apiData[d.modelCode];if(y){y.stock&&(t.commonModel.stockLevelStatus=y.stock.stockLevelStatus,"lowStock"==y.stock.stockLevelStatus&&(t.commonModel.stockLevelStatus="INSTOCK"));y.price&&(t.commonModel.price.msrpPrice.value=y.price.value,t.commonModel.price.msrpPrice.formatted_value=y.price.formattedValue,"bg"===P&&y.price.currencyIso&&$("#priceCurrency").val().toLowerCase()!==
1378y.price.currencyIso.toLowerCase()&&(d.priceCurrency=y.price.currencyIso,$("#priceCurrency").val(y.price.currencyIso)));d.useHotDealBadge&&null!=y.merchFlags&&0<y.merchFlags.length&&y.merchFlags.forEac
1378h(function(xa,sa){xa.code&&(d.merchText=xa.code)});if(d.isNewElementLowestWasPrice&&y.lowestWasPrice){var I=y.lowestWasPrice?y.lowestWasPrice.value:0;if(y.promotionPrice){if(I<=y.price.value&&I>y.promotionPrice.value||("si"==P||"hr"==P||"lv"==P||"lt"==P||"ee"==P)&&I>y.promotionPrice.value)t.commonModel.price.msrpPrice.value=
1379y.lowestWasPrice.value,t.commonModel.price.msrpPrice.formatted_value=y.lowestWasPrice.formattedValue,d.isNewElementLowestWasPriceSetting=!0}else("pl"==P||"si"==P||"hr"==P||"lv"==P||"lt"==P||"ee"==P)&&I>y.price.value&&(t.commonModel.price.salePrice.value=y.price.value,t.commonModel.price.salePrice.formatted_value=y.price.formattedValue,t.commonModel.price.msrpPrice.value=y.lowestWasPrice.value,t.commonModel.price.msrpPrice.formatted_value=y.lowestWasPrice.formattedValue,d.isNewElementLowestWasPriceSetting=
1380!0),I<=y.price.value&&(t.commonModel.price.msrpPrice.value=y.lowestWasPrice.value,t.commonModel.price.msrpPrice.formatted_value=y.lowestWasPrice.formattedValue)}y.promotionPrice&&(t.commonModel.price.salePrice.value=y.promotionPrice.value,t.commonModel.price.salePrice.formatted_value=y.promotionPrice.formattedValue);y.frequentPrice&&"fr"==P&&(d.hasFrequentPrice=!0,t.commonModel.price.frequentPrice.value=y.frequentPrice.value,t.commonModel.price.frequentPrice.formatted_value=y.frequentPrice.formattedValue);
1381y.backOrderMessage&&(d.backOrderMessage=y.backOrderMessage);y.shippingETA&&(d.shippingMessage=y.shippingETA);if("nl"==P||"be"==P||"be_fr"==P)y.msrpPrice?(t.commonModel.price.listPrice.value=y.msrpPrice.value,t.commonModel.price.listPrice.formatted_value=y.msrpPrice.formattedValue):y.promotionPrice<y.price&&(t.commonModel.price.listPrice.value=y.price.value,t.commonModel.price.listPrice.formatted_value=y.price.formattedValue);"true"===$("#isEppPage").val()&&"pl"===P&&y.msrpPrice&&(t.commonModel.price.listPrice.value=
1382y.msrpPrice.value,t.commonModel.price.listPrice.formatted_value=y.msrpPrice.formattedValue);"co"==P&&(y.vatEligible&&!0===y.vatEligible?(d.vatEligible=!0,y.vatFreePrice&&(t.commonModel.price.vatFreePrice.value=y.vatFreePrice.value,t.commonModel.price.vatFreePrice.formatted_value=y.vatFreePrice.formattedValue,$(".pd-buying-price").addClass("pd-buying-price--samcol-only"),$("#option-device-memory-IM003 .pd-option-selector__sub-text").remove(),$(".cost-box").addClass("cost-box--samcol"))):d.vatEligible=
1383!1);"in"===P&&y.salesPitch&&(d.proudctPriceInfo.salesPitch=y.salesPitch);y.variablePrice&&(d.giftCard.maxPrice=y.variablePrice.priceRange.maxPrice.value,d.giftCard.maxPriceFormatted=y.variablePrice.priceRange.maxPrice.formattedValue,d.giftCard.minPrice=y.variablePrice.priceRange.minPrice.value,d.giftCard.minPriceFormatted=y.variablePrice.priceRange.minPrice.formattedValue,d.giftCard.priceIncrement=y.variablePrice.priceIncrement.value,d.giftCard.priceIncrementFormatted=y.variablePrice.priceIncrement.formattedValue);
1384d.blockEddDisplay=y.blockEddDisplay&&null!=y.blockEddDisplay?y.blockEddDisplay:"Y";if(y.name||d.displayName)t.commonModel.product_display_name=y.name?y.name:d.displayName;y.salesStatus&&(t.commonModel.emcomFlag="PURCHASABLE"===y.salesStatus.toUpperCase(),d.newHybrisSalesStatus=t.commonModel.emcomFlag);y.backOrderAdditionalText&&(t.commonModel.stockCustomMessage=y.backOrderAdditionalText);d.isLowestInstallmentAmount&&y.lowestInstallmentAmount&&y.lowestInstallmentAmountTenure&&(t.commonModel.price.lowestInstallmentAmount=
1385y.lowestInstallmentAmount,t.commonModel.price.lowestInstallmentAmountTenure=y.lowestInstallmentAmountTenure,d.isLowestInstallmentInterest&&y.lowestInstallmentInterest&&(t.commonModel.price.lowestInstallmentInterest=y.lowestInstallmentInterest));d.isSECZ&&0!=d.calculateInstallmentPeriodicValue&&0!=d.calculateInstallmentPeriod&&(t.commonModel.price.lowestInstallmentAmount=d.calculateInstallmentPeriod,t.commonModel.price.lowestInstallmentAmountTenure=d.calculateInstallmentPeriodicValue);"de"===P&&ca(d,
1386M,t);if(("ro"==P||"bg"==P)&&y.informativeTaxes&&0<y.informativeTaxes.length){I=$jscomp.makeIterator(y.informativeTaxes);for(var X=I.next();!X.done;X=I.next())X=X.value,"BATTERY_TAX_INFORMATIVE"===X.code?(d.proudctPriceInfo.batteryInformativeTaxes=X.value,d.proudctPriceInfo.batteryInformativeTaxesAreaToShow=X.areaToShow):"GREEN_TAX_INFORMATIVE"===X.code&&(d.proudctPriceInfo.greenInformativeTaxes=X.value,d.proudctPriceInfo.greenInformativeTaxesAreaToShow=X.areaToShow)}X=I=!1;if(y.supportedAvailableServices)for(var V=
1387$jscomp.makeIterator(y.supportedAvailableServices),O=V.next();!O.done;O=V.next())switch(O=O.value,O.toUpperCase()){case "TRADE_IN":t.commonModel.tradeInData={hasData:!0,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:X};break;case "TRADE_UP":X||(X=!0,d.isTradeUp=X);t.commonModel.tradeInData={hasData:!0,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:X};break;case "INSURANCE":"in"===d.siteCode?d.samsungCarePackFlag||!typeof configuratorCare||I||(configuratorCare.setProductInfo(),I=!0):typeof configuratorCare&&
1388!I&&(configuratorCare.setProductInfo(),I=!0);break;case "UPGRADE_ENROLLMENT":t.commonModel.upgradeData.hasData=!0;break;case "WARRANTY":"in"===d.siteCode?d.samsungCarePackFlag&&typeof configuratorCare&&!I&&(configuratorCare.setProductInfo(!0),I=!0):d.useWarrantyVd?t.commonModel.warrantyVdData={hasData:d.useWarrantyVd,skuData:[{discounted_sku:"",price_info:[{msrp_price:{value:0,formatted_value:""},sale_price:{value:0,formatted_value:""},saveText:""}],custom_properties:{plan_inclusions:[],plan_exclusions:[]}}]}:
1389t.commonModel.warrantyData={hasData:!1,skuData:[{discounted_sku:"",price_info:[{msrp_price:{value:0,formatted_value:""},sale_price:{value:0,formatted_value:""},saveText:""}],custom_properties:{plan_inclusions:[],plan_exclusions:[]}}]};break;case "SIM_PLAN":case "BROADBAND_PLAN":typeof tariffData&&tariffData.setTariff({serviceName:O.toUpperCase()});break;case "BENEFIT":A(d,M,t);break;case "ACCESSORIES":(d.addonStepBuying04||d.addonStepBuying0701)&&d.newEmbedVDCountry&&window.sg.components.dynamic.bridgePageCommon.getRelatedProductsVdSimpleInfo(d.modelCode);
1390window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(d.modelCode);break;case "RENTAL":d.hasRentalInstallment=!0;break;case "POSTAL_CODE":O=d.util;d.deliveryPickup.deliverySiteCode.includes(d.siteCode)&&($(".pd-select-option--delivery-pickup").show(),O.settingDeliveryPickup(d,M));break;case "ABB":b(d,M,t)}var S=y.aemAdditionalInfoTypes;if(S&&0<S.length){V=X=I=!1;O=[];var Q={};S=$jscomp.makeIterator(S);for(var ea=S.next();!ea.done;Q={$jscomp$loop$prop$util$232$346:Q.$jscomp$loop$prop$util$232$346},
1391ea=S.next()){ea=ea.value;var la=ea.type?ea.type.toUpperCase():"";
1391if("VOUCHER"===la)d.voucherdataHybris=ea.aemAdditionalInfos,d.hasVoucher=!0,window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(d.modelCode);else if("GIFT"===la)d.giftdataHybris=ea.aemAdditionalInfos,d.hasGift=!0,d.hasGiftPage=!0,window.sg.components.dynamic.freeGiftHybrisCommon.getRelatedProductsSimpleInfo(d.modelCode);else if("VDCOMBOMESSAGE"===la)d.vdcombodataHybris=ea.aemAdditionalInfos;else if("BOGO"===la&&
1392ea.aemAdditionalInfos&&0<ea.aemAdditionalInfos.length)for(var ma=$jscomp.makeIterator(ea.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,"skuPrice"===ta.key?t.commonModel.bogoData.bogoPrice=ta.value:"skuCode"===ta.key&&(t.commonModel.bogoData.bogoSku=ta.value);else if("UPGRADE_SKU"===la&&ea.aemAdditionalInfos&&0<ea.aemAdditionalInfos.length)for(ma=$jscomp.makeIterator(ea.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,"upgradeSKU"===ta.key&&(t.commonModel.upgradeData.sku=
1393ta.value);else if("SPECIALPRICEVALIDITY"===la){if("ee"===P||"lv"===P||"lt"===P)for(ma=$jscomp.makeIterator(ea.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,ta.key&&"SPECIALPRICEVALIDITYPERIOD"===ta.key.toUpperCase()&&(d.proudctPriceInfo.salesPitch=ta.value)}else if("PLANIDANDFREEGIFTPROMOTIONUNAVAILABLE"===la)for(I=!0,ma=$jscomp.makeIterator(ea.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,ta.planIdList&&0<ta.planIdList.length&&O.push.apply(O,$jscomp.arrayFromIterable(ta.planIdList));
1394else"TRADEINFREEGIFTPROMOTION"===la?X=!0:"SELLING_WITH_BEZEL"===la&&(Q.$jscomp$loop$prop$util$232$346=d.util,d.sellingWithBazel="true"==ea.aemAdditionalInfos[0].value?!0:!1,d.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(d.modelCode,function(xa){return function(sa,Ma){var pa=[],a=[],c=[],m=[];Ma&&null!=sa.products&&0<sa.products.length&&$.each(sa.products,function(f,q){var ba,J,ha,qa,ia,za="true"===(null==(ba=q.aemAdditionalInfoTypes[0])?
1395void 0:null==(J=ba.aemAdditionalInfos[0])?void 0:J.value)?null==(ha=q.aemAdditionalInfoTypes[0])?void 0:null==(qa=ha.aemAdditionalInfos[0])?void 0:null==(ia=qa.key)?void 0:ia.toUpperCase():"";ba=""!=q.picture.url?!0:!1;J=""==q.picture.url?!0:!1;ha=q.picture.url.replace("$ORIGIN_PNG$","");qa=q.stock.stockLevelStatus.toUpperCase();ia=" is-disabled";if("INSTOCK"==qa||"BACKORDERED"==qa||"PREORDER"==qa||"LOWSTOCK"==qa)ia="";""==d.bezelImageClass&&ba&&(d.bezelImageClass="pd-select-option__list--image-button");
1396f={index:f,modelCode:q.modelcode,name:q.colorName,value:q.colorCode,hasImage:ba,hasNotImage:J,imageUrl:ha,disabledClass:ia};"BEZEL_COLOR"===za?pa.push(f):"BEZEL_MODERN"===za?a.push(f):"BEZEL_BEVELLED"===za?c.push(f):"FREESTYLE_COLOR"===za&&m.push(f)});d.noneTypeList=pa;d.modernTypeList=a;d.beveledTypeList=c;d.freestyleList=m;xa.$jscomp$loop$prop$util$232$346.settingBezelOptionDraw(d,M)}}(Q),null,{queryType:"ADD_COLOR_FOR_VD"}));
1396if("true"===$("#isEppPage").val()&&"de"===P&&"TRADEINFREEGIFTPROMOTION"===
1397la)for(X=!1,ma=$jscomp.makeIterator(ea.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,ta.key&&"tradeinandfreegiftpromotionunavailable"===ta.key.toLowerCase()&&(tradeinandfreegiftpromotionunavailable=JSON.parse(ta.value));if("de"===P&&"STACKABLETRADEINFREEGIFTPROMOTION"===la)for(V=!1,ea=$jscomp.makeIterator(ea.aemAdditionalInfos),ta=ea.next();!ta.done;ta=ea.next())la=ta.value,la.key&&"stackabletradeinandfreegiftpromotionunavailable"===la.key.toLowerCase()&&(V=JSON.parse(la.value))}1==
1398d.hasGift&&I&&(d.hasPlanIDAndFreeGiftPromotion=!0,d.giftSelectionSkipPlanIdList=O);1==d.hasGift&&X&&(d.hasTradeInFreeGiftPromotion=!0);1==d.hasGift&&V&&(d.hasStackbleTradeInFreeGiftPromotion=!0)}"true"===$("#isEppPage").val()&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&window.sg.epp.common.usePosQty&&(d.walkoutQty=0,d.homeDeliveryQty=0,y.stock&&y.stock.warehouse&&null!=y.stock.warehouse&&y.stock.warehouse.forEach(function(xa,sa){xa.isOnline?d.homeDeliveryQty+=xa.stockLevel&&
1399null!=xa.stockLevel?xa.stockLevel:0:d.walkoutQty+=xa.stockLevel&&null!=xa.stockLevel?xa.stockLevel:0}))}}function A(d,M,t){var y=d.apiDomain,I=d.siteCode,X=d.modelCode,V=d.priceCurrency,O="";$("#shopParmLang").val()&&(O="\x26lang\x3d"+$("#shopParmLang").val());y=y+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+X+"/offers?fields\x3dSIMPLE_INFO"+O;t.finishedAPIList.offers=!1;var S;$.ajax({url:y,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,
1400success:function(Q,ea,la){Q&&Q.benefits&&0<Q.benefits.length?(d.isSECZ&&0!==d.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+d.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+d.calculateInstallmentPeriod),ea={code:"Finanace -Calculator",description:""+Granite.I18n.get("product detail offer emi From {0}/mo",currencyComma(d.calculateInstallmentPeriodicValue,V)),endDate:null,startDate:null,type:"INSTALLMENT",count:1},Q.benefits.unshift(ea)),"Y"===
1401$("#typeux2025").val()?D(Q.benefits,d,M,t,"sku"):h(Q.benefits,d,M,t)):d.isSECZ&&0!==d.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+d.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+d.calculateInstallmentPeriod),Q.benefits=[{co
1401de:"Finanace -Calculator",description:""+Granite.I18n.get("product detail offer emi From {0}/mo",currencyComma(d.calculateInstallmentPeriodicValue,V)),endDate:null,startDate:null,type:"INSTALLMENT",count:1}],"Y"===$("#typeux2025").val()?
1402D(Q.benefits,d,M,t,"sku"):h(Q.benefits,d,M,t));S=Q},error:function(Q,ea,la){},complete:function(){t.finishedAPIList.offers=!0;var Q=d.pdChildModelCnt;d.pdPackageYn&&0<Q?K(d,M,t):t.finishedAPIList.childOffers=!0;"cn"===I&&window.sg.components.dynamic.productInstallmentWithGiftPD.getInstallmentWithGiftAPI(S,d,M);"in"===I&&window.sg.components.productLivedemo.getOfferBenefitsApiData(S.benefits);g(d,M,t)}})}function ca(d,M,t){var y={code:"Finanace -Calculator",description:""+Granite.I18n.get("Calculate Finance"),
1403endDate:null,startDate:null,type:"INSTALLMENT",count:1};fa(y,0,d,M,t);t.finishedAPIList.offers||(t.finishedAPIList.offers=!0,g(d,M,t))}function K(d,M,t){var y=d.drawObj.offer,I=d.apiDomain,X="";$("#shopParmLang").val()&&(X="\x26lang\x3d"+$("#shopParmLang").val());var V=d.pdChildModelCnt;t.finishedAPIList.childOffers=!1;if(0<V)for(var O=0,S={},Q=0;Q<V;S={$jscomp$loop$prop$apiURL$348:S.$jscomp$loop$prop$apiURL$348,$jscomp$loop$prop$childSet$349:S.$jscomp$loop$prop$childSet$349},Q++){var ea=document.querySelector("#pdChidleModel0"+
1404(Q+1)),la=ea.dataset.code;S.$jscomp$loop$prop$childSet$349={code:la,name:ea.dataset.name,main:ea.dataset.main,displayName:ea.dataset.displayName};d.pdChildModelList.push(S.$jscomp$loop$prop$childSet$349);S.$jscomp$loop$prop$apiURL$348=I+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+la+"/offers?fields\x3dSIMPLE_INFO"+X;(function(ma){return function(ta){$.ajax({url:ma.$jscomp$loop$prop$apiURL$348,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,
1405timeout:2E4,success:function(xa,sa,Ma){if(xa&&xa.benefits&&0<xa.benefits.length){0===O&&(y.childList=[]);y.childList.push({hasComponent:!0,childCode:ma.$jscomp$loop$prop$childSet$349.code,displayName:ma.$jscomp$loop$prop$childSet$349.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())D(xa.benefits,d,M,t,"child",O);else if(xa=xa.benefits,sa=O,t.comboCount=0,xa&&0<xa.length){Ma=0;for(var pa in xa){var a=xa[pa];d.commonApiModel.fetchNewOfferFormat(a);
1406var c=a.type?a.type.toUpperCase():"";"INSTALLMENT"!==c&&"COMBO"!==c&&(Ma+=1);if(4>Ma){var m=sa+""+Ma;"BOGO"===c?C(a,m,d,M,t,"child",sa):c||R(a,m,d,M,t,"child",sa)}}0===Ma&&d.drawObj.offer.childList.splice(sa)}O=y.childList.length}},error:function(xa,sa,Ma){},complete:function(){ta===V-1&&(t.finishedAPIList.childOffers=!0);g(d,M,t)}})}})(S)(Q)}}function D(d,M,t,y,I,X){X=void 0===X?0:X;var V=$("#siteCode").val(),O=M.isSEBN,S=2;O&&(S=4);if(d&&0<d.length){var Q=0,ea;for(ea in d){var la=d[ea],ma=la.type?
1407la.type.toUpperCase():"",ta=$.trim(la.offerText||""),xa=$.trim(la.title||"");""!=xa||O||(xa=$.trim(la.description||""));$.trim(la.linkText||"");$.trim(la.url||"");var sa=!1;"INSTALLMENT"!==ma&&("uk"===V||"in"===V?""!==xa&&""!==ta&&(sa=!0,"in"===V&&"LIVE_DEMO"===ma&&(sa=!1)):""!==xa&&(sa=!0));sa?(Q+=1,Q<=S&&("child"===I?z(la,X+""+Q,M,t,y,"child",X):z(la,ea,M,t,y))):"child"!=I&&"INSTALLMENT"===ma&&fa(la,ea,M,t,y)}"child"===I&&0===Q&&M.drawObj.offer.childList.splice(X)}}function h(d,M,t,y){y.comboCount=
14080;var I=M.drawObj.offer;if(d&&0<d.length){I.totalCnt=d.length;var X=0,V;for(V in d){var O=d[V];M.commonApiModel.fetchNewOfferFormat(O);var S=O.type?O.type.toUpperCase():"";if("COMBO"===S)X+=1,y.finishedAPIList.comboAPIFlag=!1,y.comboCount++,M.commonApiModel.callRelatedAndSearch(M.modelCode,E,{sharedObj:M,promotion:O,newbirsObj:y,selectorObj:t,index:V},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===S){X+=1;S=V;var Q=M,ea=Q.siteCode,la=Q.drawObj.offer,ma=Q.financingUrl,ta=T(O,Q).iconAlt,
1409xa="offer-emi emi-index-"+S,sa=[];Q.financingEligible=!0;ma&&(Q.emiCalculatorUrl=ma);O.description&&sa.push(O.description);if(0<sa.length){var Ma=ma=null,pa=null;"id"!==ea&&"ee"!==ea&&"lt"!==ea&&"lv"!==ea&&"pl"!==ea||!O.description||(ma=O.description);if("in"===ea||"uk"===ea||"lt"===ea||"id"===ea||"lv"===ea||"ee"===ea||"pl"===ea||"hu"
1409===ea||"ro"===ea||"bg"===ea||"ua"===ea||"ph"===ea||"sg"===ea||"my"===ea||"nz"===ea||"sk"===ea||"cz"===ea||"cn"===ea||"co"===ea||"cl"===ea||"mx"===ea)for(Q.promotionFinancingFlag=
1410!0,Q=0;Q<sa.length;Q++){var a=sa[Q].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>a.indexOf("\x3ca")?"in"===ea?(Ma=a,pa={label:Granite.I18n.get("Learn more"),labelAnalytics:a.toLowerCase().replace(/"/g,"")}):(pa={labelAnalytics:a.toLowerCase().replace(/"/g,"")},pa.label="id"===ea||"ee"===ea||"lt"===ea||"lv"===ea||"pl"===ea?Granite.I18n.get("Learn more"):a):Ma=a}else Ma=sa.join("");la.promotionFinance.push({offerIndex:S,title:"finance",hasItem:!0,item:{contentWrapperClass:xa,iconAttr:{alt:ta},
1411description:{text:ma,hasDescription:null!=ma},emiText:Ma,cta:pa,hasCta:null!=pa},newFormat:O.newFormat})}}else"BOGO"===S?(X+=1,C(O,V,M,t,y)):S||"cn"===P&&("cn"!==P||O.benefitGroup)||(X+=1,R(O,V,M,t,y))}3<X&&(I.isViewMore=!0)}}function C(d,M,t,y,I,X,V){y=t.drawObj.offer;"child"===(void 0===X?"product":X)&&(y=t.drawObj.offer.childList[void 0===V?0:V]);V=d.image&&d.image.url?d.image.url:"";X=t.priceCurrency;var O=t.pdTimeformatFront;t=t.util.getImgAttr(V,V,d.image&&d.image.altText?d.image.altText:"",
1412{classWapper:"image__main responsive-img"});V=[];var S="";d.description&&V.push({text:d.description});d.startDate&&d.endDate&&(S=O?dateFormat(d.startDate.split("T")[0],O)+" ~ "+dateFormat(d.endDate.split("T")[0],O):d.startDate.split("T")[0]+" ~ "+d.endDate.split("T")[0]);var Q=O="";if(I=I.commonModel.bogoData.bogoPrice)O=currencyComma(I,X),"nl"!==P&&"be"!==P&&"be_fr"!==P&&(Q=Granite.I18n.get("Save {0}",O));X=currencyComma(0,X);"true"===$("#isEppPage").val()&&"pl"===P&&(Q=O="");d={offerIndex:M,title:"bogo",
1413hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),description:{hasDescription:!0,main:V,date:S},imgAttr:t,price:{hasPrice:!0,price:I,original:O,save:Q,now:X}},newFormat:d.newFormat};y.bogo=d}function E(d,M,t){var y=t.index;if(y){if(null==y||""==y)y=0}else y=0;M=t.sharedObj;var I=M.drawObj,X=M.comboFlag=!0,V=I.offer.combo,O=M.util,S=M.view,Q=t.promotion,ea=M.pdTimeformatFront,la=T(Q,M),ma=t.selectorObj;t=t.newbirsObj;var ta=M.siteCode,xa="",sa="";X&&(la.promoIconFlag&&
1414(sa=la.iconImgName),X=[],Q.description?X.push({text:Q.description}):X.push({text:Granite.I18n.get("Select combo bundle option")}),la={layerTarget:"shopComboPopup"},la.comboIdx=M.globalComboData.length,O=O.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",la,""),Q.startDate&&Q.endDate&&(xa=ea?dateFormat(Q.startDate.split("T")[0],ea)+" ~ "+dateFormat(Q.endDate.split("T")[0],ea):Q.startDate.split("T")[0]+" ~ "+Q.endDate.split("T")[0],"id"===ta&&(xa=Q.startDate.split("T")[0]+
1415" ~ "+Q.endDate.split("T")[0])),y={offerIndex:y,title:"compoBundle",comboIndex:M.globalComboData.length,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:sa,description:{hasDescription:!0,main:X,date:xa},learnMoreCta:O},newFormat:Q.newFormat},V.push(y));S.productOfferDraw(I,!0);d=window.sg.components.dynamic.comboPopup.setComboData(d.totalResult);M.globalComboData.push(d);t.comboCount===M.globalComboData.length&&(t.finishedAPIList.comboAPIFlag=!0);g(M,ma,t)}function T(d,M){var t=
1416M.promotionImgType?M.promotionImgType.split(","):[];M="";var y=!1,I="";if(d.image&&(M=d.image.altText,I=d.image.url))for(d=$jscomp.makeIterator(t),t=d.next();!t.done;t=d.next())if(t.value===I){y=!0;break}return{iconAlt:M,promoIconFlag:y,iconImgName:I}}function R(d,M,t,y,I,X,V){y=t.drawObj.offer;"child"===(void 0===X?"product":X)&&(y=t.drawObj.offer.childList[void 0===V?0:V]);X=T(d,t);t=X.iconAlt;var O=X.promoIconFlag,S=X.iconImgName;X="offer-promotion promotion-index-"+M;V=[];I=null;d.description&&
1417V.push(d.description);O&&(I="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+S+".svg");S=null;if(!d.newFormat){O="";for(S=0;S<V.length;S++)O+=V[S].replace("\x3ca","\x3ca target\x3d'_blank'");S=[];S.push({target:"."+X.replace(" ",".")+" .pd-offer__desc",text:O})}y.promotionMessage.push({offerIndex:M,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:X,isIcon:!0,iconAttr:{src:I,alt:t},description:{hasDescription:!0}
1417,rowText:S},newFormat:d.newFormat})}
1418function z(d,M,t,y,I,X,V){X=void 0===X?"product":X;V=void 0===V?0:V;y=t.drawObj.offer;var O=t.isSEBN;I=$("#siteCode").val();var S="offer-promotion promotion-index-"+M;"child"===X&&(y=t.drawObj.offer.childList[V]);t=$.trim(d.offerText||"");X=$.trim(d.title||"");V=$.trim(d.description||"");""!=X||O||(X=V);V=$.trim(d.linkText||"");var Q=$.trim(d.url||"");"uk"!==I&&"in"!==I&&""!==Q&&(V=Granite.I18n.get("Learn more"));var ea=!1;"uk"===I||"in"===I?""!==X&&""!==t&&(ea=!0):""!==X&&(ea=!0);if(ea){ea=62;""!==
1419V&&""!==Q&&(ea=53);O&&(ea=100);if(X.length>ea){var la=X;X=ellipsize(X,ea)}X=X.replace(/</g,"\x26lt;");X=X.replace(/>/g,"\x26gt;");null!=la&&(la=la.replace(/</g,"\x26lt;"),la=la.replace(/>/g,"\x26gt;"));ea=O&&""!==t?!0:!1;var ma=$.trim(d.startDate||"");d=$.trim(d.endDate||"");O=O&&""!==ma&&""!==d?!0:!1;var ta;ea&&("nl"===I||"be"===I?ta='Bekijk \x3ca href\x3d"'+t+'" target\x3d"_blank"\x3ehier\x3c/a\x3e de actievoorwaarden':"be_fr"===I&&(ta='Consultez \x3ca href\x3d"'+t+'" target\x3d"_blank"\x3eici\x3c/a\x3e les conditions de l\'offre promotionnelle'));
1420var xa;O&&(xa=Granite.I18n.get("Promotion period: {0} to {1}",[ma,d]));y.promotionMessage.push({offerIndex:M,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:S,offerTitle:X,offerTooltip:la,linkEnabled:""!==V&&""!==Q,linkText:V,linkUrl:Q,hasTCCTA:ea,tcCTAText:ta,hasPeriod:O,periodText:xa}})}}function fa(d,M,t,y,I){var X=t.siteCode;y=t.drawObj.offer;var V=t.financingUrl;I="offer-emi emi-index-"+M;var O=[];t.financingEligible=!0;V&&(t.emiCalculatorUrl=V);d=$.trim(d.description||"");""!==d&&
1421O.push(d);if(0<O.length){V=null;var S=!1,Q=!1,ea=!1,la=null;if("de"===X||"in"===X||"uk"===X||"lt"===X||"id"===X||"lv"===X||"ee"===X||"pl"===X||"hu"===X||"ro"===X||"bg"===X||"ua"===X||"ph"===X||"sg"===X||"my"===X||"nz"===X||"sk"===X||"cz"===X||"cn"===X||"co"===X||"cl"===X||"mx"===X)for(t.promotionFinancingFlag=!0,t=0;t<O.length;t++){var ma=O[t].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");la=ma;0>ma.indexOf("\x3ca")&&("in"===X?(Q=!0,V={label:Granite.I18n.get("Learn more")}):"id"===X||"ee"===X||
1422"lt"===X||"lv"===X||"pl"===X?(Q=!0,V={label:Granite.I18n.get("Learn more")}):S=!0)}else ea=!0,la=O.join("");if(!ea){t=62;Q&&(t=53);if(la.length>t){var ta=d;la=ellipsize(la,t)}null!=la&&(la=la.replace(/</g,"\x26lt;"),la=la.replace(/>/g,"\x26gt;"));null!=ta&&(ta=ta.replace(/</g,"\x26lt;"),ta=ta.replace(/>/g,"\x26gt;"))}y.promotionFinance.push({offerIndex:M,title:"finance",hasItem:!0,item:{contentWrapperClass:I,offerTooltip:ta,emiText:la,cta:V,hasCta:Q,hasLink:S,hasDesc:ea}})}}function va(d,M,t){t.commonModel.price=
1423{listPrice:{value:0,formatted_value:""},vatFreePrice:{value:0,formatted_value:""},msrpPrice:{value:0,formatted_value:""},salePrice:{value:0,formatted_value:""},leasingInfo:{monthlyRate:"",tenureVal:""},frequentPrice:{value:0,formatted_value:""},saveText:"",tradeInPriceText:""};t.commonModel.tariffData=[];t.commonModel.promotionsMsg=[]}function ra(d,M,t){var y=d.drawObj,I=t.commonModel,X=d.siteCode,V=y.price.priceWrapper,O=d.util,S="";I.stockLevelStatus&&(S=I.stockLevelStatus.toUpperCase(),d.stockLevelStatus=
1424S,d.apiChangeStockStatus=S,y.stockLevelStatus=S);I.stockCustomMessage&&(d.stockCustomMessage=I.stockCustomMessage);checkEppSite()&&"in"===X&&(d.proudctPriceInfo.netavailable=t.apiData[d.modelCode]&&t.apiData[d.modelCode].stock&&t.apiData[d.modelCode].stock.stockLevel&&0<Number(t.apiData[d.modelCode].stock.stockLevel)?Number(t.apiData[d.modelCode].stock.stockLevel):1,0<M.buyingToolOptSMBQuantity.length&&d.proudctPriceInfo.netavailable<d.proudctPriceInfo.smbMinQty&&(S="OUTOFSTOCK",d.stockLevelStatus=
1425"OUTOFSTOCK",y.stockLevelStatus="OUTOFSTOCK"));"pl"===X&&"OUTOFSTOCK"===S||"NOORDER"===S||!I.emcomFlag?(O.disabledOptionElement(M.buyingToolOptTariff,d),O.disabledOptionElement(M.buyingToolOptUpgrade,d),O.disabledOptionElement(M.buyingToolOptOffer,d),O.disabledOptionElement(M.buyingToolOptTradeIn,d),d.accessoryDisabled=!0,V.hasPriceWrapper=!1):V.hasPriceWrapper=!0}function oa(d,M,t){M=t.commonModel.price.lowestInstallmentAmount;var y=t.commonModel.price.lowestInstallmentAmountTenure;d.isSECZ&&(M=
1426d.calculateInstallmentPeriodicValue,y=d.calculateInstallmentPeriod);var I=t.commonModel.price.lowestInstallmentInterest,X=t.commonModel.price.msrpPrice.value,V=t.commonModel.price.msrpPrice.formatted_value,O=t.commonModel.price.salePrice.value,S=t.commonModel.price.salePrice.formatted_value,Q=t.commonModel.price.leasingInfo,ea=t.commonModel.price.saveText,la=t.commonModel.price.tradeInPriceText,ma=d.priceCurrency,ta=d.siteCode,xa=t.commonModel.price.vatFreePrice.value,sa=t.commonModel.price.vatFreePrice.formatted_value,
1427Ma=t.commonModel.price.frequentPrice.value,pa=t.commonModel.price.frequentPrice.formatted_value;X&&(d.proudctPriceInfo.orignalPrice=X);V?d.proudctPriceInfo.orignalPriceFormatted=V:X&&(d.proudctPriceInfo.orignalPriceFormatted=currencyComma(X,ma));d.proudctPriceInfo.salePrice=O?O:X;d.proudctPriceInfo.salePriceFormatted=S?S:O?currencyComma(O,ma):d.proudctPriceInfo.orignalPriceFormatted;d.vatEligible&&sa&&(d.proudctPriceInfo.vatFreePrice=xa,d.proudctPriceInfo.vatFreePriceFormatted=sa);Q&&Q.monthlyRate&&
1428(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=Q.monthlyRate,d.proudctPriceInfo.monthlyPriceInfo.tenureVal=Q.tenureVal,d.proudctPriceInfo.monthlyPriceInfo.interest=Q.interest);
1428Ma&&(d.proudctPriceInfo.frequentPrice=Ma,d.proudctPriceInfo.frequentPriceFormatted=pa);d.isLowestInstallmentAmount&&(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=M,d.proudctPriceInfo.monthlyPriceInfo.tenureVal=y,d.isLowestInstallmentInterest&&(d.proudctPriceInfo.monthlyPriceInfo.interest=I));d.isSECZ&&(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=
1429M,d.proudctPriceInfo.monthlyPriceInfo.tenureVal=y);ea&&(d.proudctPriceInfo.rowCodeformattedPriceSave=ea);la&&(d.proudctPriceInfo.salePriceFormatted=la);if("nl"===ta||"be"===ta||"be_fr"===ta||"true"===$("#isEppPage").val()&&"pl"===ta)M=t.commonModel.price.listPrice.formatted_value,y=d.proudctPriceInfo.orignalPriceFormatted,I=d.proudctPriceInfo.salePriceFormatted,X=d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,M&&(d.proudctPriceInfo.listPriceFormatted=deleteCurrency(M,d.priceCurrency).trim(),d.proudctPriceInfo.listPrice=
1430t.commonModel.price.listPrice.value),y&&(d.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(y,d.priceCurrency).trim()),I&&(d.proudctPriceInfo.salePriceFormatted=deleteCurrency(I,d.priceCurrency).trim()),X&&(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=deleteCurrency(X,d.priceCurrency).trim());d.drawObj.price.priceWrapper.info.summaryPrice=d.proudctPriceInfo.salePriceFormatted}function da(d,M,t,y,I,X){var V=d.apiDomain,O=d.siteCode,S=y[0],Q=!1,ea="";$("#shopParmLang").val()&&(ea="\x26lang\x3d"+
1431$("#shopParmLang").val());t.finishedAPIList[X]=!1;y=V+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+S+"/**?fields\x3dSIMPLE_INFO"+ea;"in"==d.siteCode&&(y=V+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products?productCodes\x3d"+S+"\x26fields\x3dSIMPLE_INFO"+ea,B(d));V="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};var la;$.ajax({url:y,type:"GET",cache:!0,crossDomain:!0,xhrFields:V,dataType:"json",
1432timeout:2E4,success:function(ma,ta,xa){"in"==d.siteCode&&ma&&(ma=ma[0]);ma&&ma.code&&(-1==$.inArray("BROADBAND_PLAN",ma.supportedAvailableServices)&&isNotEmpty(tariffData)&&tariffData.BROADBAND_CACHE.returnObject&&tariffData.removeBroadbandCache(),Q=!0,t.apiData[ma.code]=ma,la=ma.aemAdditionalInfoTypes)},error:function(ma,ta,xa){d.newHybrisSalesStatus=!1},complete:function(){t.finishedAPIList[X]=!0;I(d,M,t,Q);if("in"===O){var ma=la;window.sg.components.productLivedemo.setLivedemoWrapEmpty();window.sg.components.productVideoCarousel.getFireworkApiData(ma)}}})}
1433function na(d){var M=-1<d.cartUrl.indexOf("https://")||-1<d.cartUrl.indexOf("http://")?d.cartUrl:d.apiDomain+d.cartUrl;void 0!==M&&("ae"===d.siteCode?M=M.replace("/ae/","/"+d.multistoreSiteCd+"/"):"ae_ar"===d.siteCode&&(M=M.replace("/ae_ar/","/"+d.multistoreSiteCd+"/")));return M}function L(d,M,t){var y="";$("#shopParmLang").val()&&(y="\x26lang\x3d"+$("#shopParmLang").val());var I={withCredentials:!0};if(d.isSECZ){var X="";X=d.apiDomain+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+
1434d.modelCode+"/calculateInstallment?fields\x3dDEFAULT"+y;$.ajax({url:X,type:"GET",dataType:"json",xhrFields:I,crossDomain:!0,async:!1,timeout:1E4,success:function(V){V&&V.values&&0<V.values.length&&V.values[0]&&V.values[0].values&&N(V,d,M,t)},error:function(V){}})}}function N(d,M,t,y){d=d.values[0].values;1<d.length?(d.sort(function(I,X){"string"===typeof I.periodicValue&&(I.periodicValue=Number(I.periodicValue));"string"===typeof X.periodicValue&&(X.periodicValue=Number(X.periodicValue));return I.periodicValue<
1435X.periodicValue?-1:I.periodicValue>X.periodicValue?1:I.period<X.period?-1:I.period>X.period?1:0}),M.calculateInstallmentPeriodicValue=d[0].periodicValue,M.calculateInstallmentPeriod=d[0].period,y.commonModel.price.lowestInstallmentAmount=d[0].periodicValue,y.commonModel.price.lowestInstallmentAmountTenure=d[0].period):1==d.length&&(M.calculateInstallmentPeriodicValue=d[0].periodicValue,M.calculateInstallmentPeriod=d[0].period,y.commonModel.price.lowestInstallmentAmount=d[0].periodicValue,y.commonModel.price.lowestInstallmentAmountTenure=
1436d[0].period);oa(M,t,y)}function b(d,M,t){var y,I,X,V,O,S,Q,ea,la,ma,ta,xa,sa,Ma;return $jscomp.asyncExecutePromiseGeneratorProgram(function(pa){if(1==pa.nextAddress)return y=d.newAssuredBuyBackList,pa.yield(r(d,M,t),2);I=pa.yieldResult;O=null==(X=I)?void 0:null==(V=X.serviceProductDataGroup)?void 0:V.serviceProducts[0];if(I.serviceProductDataGroup&&O&&O.serviceProductVariants&&0<O.serviceProductVariants.length){S=O.serviceProductVariants;Q=$jscomp.makeIterator(S);for(ea=Q.next();!ea.done;ea=Q.next())if(la=
1437ea.value)ma=la.name,ta=la.code,xa="",la.priceData&&la.priceData.value&&(xa=currencyComma(la.priceData.value,d.priceCurrency)),sa=la.stock&&la.stock.stockLevelStatus&&"outofstock"==la.stock.stockLevelStatus.toLowerCase()?"OOS":"",Ma={index:y.length+1,title:ma,priceDisplay:xa,sku:ta,productItem:la,stockStatus:sa},y.push(Ma);var a=d.util,c=d.view,m=d.newAssuredBuyBackFlag,f=d.newAssuredBuyBackList,q=Granite.I18n.get("Learn more");a=a.getAttrCta(q,"javascript:;","","",{layerTarget:"assuredBuyBackInfoPopup"},
1438"");m&&(d.drawObj.newAssuredBuyBack={hasComponent:m,title:Granite.I18n.get("Samsung Assured Buyback"),description:Granite.I18n.get("Get up to 70% resale value with Assured Buyback"),itemSet:f,learnMoreCta:a,yesAttr:{"class":null,text:null,subText:"",layerTarget:""},noAttr:{"class":null,text:"None",layerTarget:"",eventType:"newAssuredBuyBack"}},c.newAssuredBuyBackDraw(d.drawObj))}pa.jumpToEnd()})}function r(d,M,t){var y="true"===$("#isEppPage").val()?d.apiDomain:$("#storeDomain").val(),I="?categoryCode\x3dabb\x26provider\x3dABB";
1439I=$("#shopParmLang").val()?I+("\x26lang\x3d"+$("#shopParmLang").val()):I+"\x26lang\x3den_IN";$("#priceCurrency").val()&&(I+="\x26curr\x3d"+$("#priceCurrency").val().toUpperCase());return new Promise(function(X,V){$.ajax({url:y+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/servicesv2/externalService/"+d.modelCode+I,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!0}).done(function(O){d.newAssuredBuyBackFlag=!0;X(O)}).fail(function(O){V(O)})})}var G=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
1440P=$("#siteCode").val(),Z=function(){this.newbirsObj={finishedAPIList:{firstNewBrisAPI:!0,offers:!0,childOffers:!0,combo:!0,leasing:!0},commonModel:{stockLevelStatus:"",stockCustomMessage:"",product_display_name:"",emcomFlag:!1,price:{listPrice:{value:0,formatted_value:""},vatFreePrice:{value:0,formatted_value:""},msrpPrice:{value:0,formatted_value:""},salePrice:{value:0,formatted_value:""},leasingInfo:{monthlyRate:"",tenureVal:"",interest:""},frequentPrice:{value:0,formatted_value:""},saveText:"",
1441tradeInPriceText:"",financePlan:{installment_amount:"",unit:""}},tradeInData:{hasData:!1,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:!1},bogoData:{bogoPrice:"",bogoSku:""},upgradeData:{hasData:!1,sku:""},warrantyData:{hasData:!1,skuData:[{discounted_sku:"",price_info:[{msrp_price:{value:0,formatted_value:""},sale_price:{value:0,formatted_value:""},saveText:""}],custom_properties:{plan_inclusions:[],plan_exclusions:[]}}]},warrantyVdData:{hasData:!1,skuData:[{discounted_sku:"",price_info:[{msrp_price:{value:0,
1442formatted_value:""},sale_price:{value:0,formatted_value:""},saveText:""}],custom_properties:{plan_inclusions:[],plan_exclusions:[]}}]},promotionsMsg:[{formatted_sales_pitch:"",sales_pitch:""}],samsungPomoFinanceData:{hasData:!1,formatted_sales_pitch:"",sales_pitch:""},pomoFinanceData:{hasData:!1,formatted_sales_pitch:"",sales_pitch:""}},isExecuted:!1,apiData:{},comboCount:0}};Z.prototype.productAjax=function(d,M){var t=this.newbirsObj;d.isSECZ&&L(d,M,t);var y="";var I=$.cookies.get("estoreSitecode",
1443{domain:".samsung.com"});if("levant"===d.siteCode)y="jo";else if("levant_ar"===d.siteCode)y="jo_ar";else if("n_africa"===d.siteCode)y="ma";else{var X;if(X=("ae"===d.siteCode||"ae_ar"===d.siteCode)&&I)X=(new Set("ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" "))).has(I);X&&(y=I)}d.multistoreSiteCd=y?y:d.siteCode;da(d,M,t,[d.modelCode],u,"firstNewBrisAPI");g(d,M,t);g(d,M,t)};Z.prototype.callAddToCartCta=function(d,M,t,y,I,X){var V="";if("uk"===P||"au"===P||"cn"===P||"tr"===P||d.useNewAddToCartApi)d.globalServiceInfo&&
1444d.globalServiceInfo.gift&&d.globalServiceInfo.gift.modelCode?V=d.globalServiceInfo.gift:X&&(V={modelCode:X.modelCode});var O=new G.BuyingToolOpAjaxHybris,S=l(d,M,t,y,I),Q=d.isMiniCart,ea={clickDom:d.clickDom,isMiniCart:Q,isContinue:I},la=d.modelCode,ma="",ta="";y&&(ma=-1<d.cartUrl.indexOf("https://")||-1<d.cartUrl.indexOf("http://")?d.cartUrl:d.apiDomain+d.cartUrl,ma=na(d),ma="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":ma,Q&&(ea.cartUrl=ma,ma="",
1445ta=function(xa,sa,Ma){Ma.isMiniCart&&window.sg.minicart&&!Ma.isContinue?(window.sg.minicart.open(Ma.cartUrl,d.clickTarget),d.btnClickFlagAddCartContinue=!0):location.href=Ma.cartUrl}));I&&(la="");I||y||(ta=function(xa,sa,Ma){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(Ma.clickDom)});"uk"==P||"cn"==P||"tr"==P||d.useNewAddToCartApi?(V&&(S.gift=V),addToCartNewHybris(la,ma,ta,S,ea)):(O.callAddToCartCta(d,M,t,y,I,X),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(ea.clickDom))};
1446Z.prototype.callCheckOutCta=function(d,M,t,y,I,X){var V=new G.BuyingToolOpAjaxHybris,O=l(d,M,t,y,I),S=d.isMiniCart,Q={clickDom:d.clickDom,isMiniCart:S,isContinue:I},ea=d.modelCode,la="",ma="";y||"id"===P&&(y=!0);y&&(la=-1<d.cartUrl.indexOf("https://")||-1<d.cartUrl.indexOf("http://")?d.cartUrl:d.apiDomain+d.cartUrl,la=na(d),la="true"===$("#
1446isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":la,S&&(Q.cartUrl=la,la="",ma=function(sa,Ma,pa){pa.isMiniCart&&window.sg.minicart&&
1447!pa.isContinue?(window.sg.minicart.open(pa.cartUrl,d.clickTarget),d.btnClickFlagAddCartContinue=!0):location.href=pa.cartUrl}));I&&(ea="");I||y||(ma=function(sa,Ma,pa){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(pa.clickDom)});S=$("#pd-leasing-1").prop("checked");var ta="be"===P||"be_fr"===P||"nl"===P||"fr"===P,xa=new G.BuyingToolOpAjaxNewbris;ta&&S?xa.callAddToCartCta(d,M,t,y,I,X):"uk"==P||"cn"==P||"tr"==P||d.useNewAddToCartApi?addToCartNewHybris(ea,la,ma,O,Q):(V.callAddToCartCta(d,
1448M,t,y,I,X),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(Q.clickDom))};G.BuyingToolOpAjaxNewbris=Z})();
1449(function(){function l(){var h="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();var C="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();return $.ajax({url:C+"/tokocommercewebservices/v2/"+h+"/tnc?context\x3dSERVICE\x26value\x3dtradeinExcludedPaymentModes\x26lang\x3den_GB\x26curr\x3dGBP",type:"GET",dataType:"json",timeout:2E4,crossDomain:!0,xhrFields:{withCredentials:!0},
1450async:!0})}function g(h){var C="";$.each(h,function(E,T){T.preselected&&(C||(C=E),C<E&&(C=E))});return C}function H(h){var C={consents:[],product_type:""};C.discounted_sku=h.smcCode;C.modelCode=h.smcCode;C.product_display_name="";C.msrp_price={};C.msrp_price.value=h.price;C.msrp_price.formatted_value="";C.msrp_price.duration="";h.duration&&0<h.duration&&(C.msrp_price.duration=h.duration);C.msrp_price.paymentcycle="";h.paymentCycle&&"monthly"==h.paymentCycle.toLowerCase()&&(C.msrp_price.paymentcycle=
1451h.paymentCycle.toLowerCase());C.sale_price={};C.sale_price.value=h.promotionPrice?h.promotionPrice:h.price;C.sale_price.formatted_value="";C.sale_price.duration="";h.duration&&0<h.duration&&(C.sale_price.duration=h.duration);C.sale_price.paymentcycle="";h.paymentCycle&&"monthly"==h.paymentCycle.toLowerCase()&&(C.sale_price.paymentcycle=h.paymentCycle.toLowerCase());return C}function u(h,C,E,T){var R=C.siteCode,z=C.priceCurrency,fa=$(C.buyingToolOptUpgradeResult).find(".result-price"),va=C.drawObj,
1452ra=C.util,oa=C.openPromoTaxParam,da=C.isHybrisSplitPD,na=C.isHybrisSplitPDTradeIn,L=C.splitPDTradeInSpecial,N=C.splitPDTradeInSpecialMsg,b=C.isMultiTradeIn&&va.tradeInResult.list?va.tradeInResult.list:[];$("#categorySubTypeCode").val();var r="hr"===R||"si"===R,G={},P="",Z=0,d=0,M="",t=0,y=0,I=0,X=0,V=!1,O=!1,S=!1,Q=null,ea=null,la=null,ma=null,ta=null,xa=null,sa=null,Ma="",pa=null,a=0,c=null,m=null,f=null,q=null,ba=null,J=0;if(h){S=h.discount&&h.value;var ha=W(h,C,S);V=ha.tradeinDiscountYn;P=ha.modelAndBrand;
1453M=ha.StrOrignalDisplayPrice;t=ha.orignalDisplayPrice;I=ha.orignalCashBackPrice;X=ha.orignalTotalPrice;d=ha.displayPrice;y=ha.cashBackPrice;Q=ha.priceText;a=ha.enhancedDiscountAmount;J=ha.eventAmountPrice;var qa=h.additionalDiscountFlag||!1;if("ca"===R||"ca_fr"===R){var ia=[];h.displayBrandName&&ia.push(h.displayBrandName);h.displayModelName&&ia.push(h.displayModelName);P=Granite.I18n.get("Your Trade-in")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+ia.join(" | ");d=X;Q=Granite.I18n.get("Total Trade-in")+
1454"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+currencyComma(X,z);0<t&&(ea=currencyComma(t,z)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")");0<a&&(la=currencyComma(a,z)+" ("+Granite.I18n.get("Promotional Trade-in Credit")+")")}else if("ae"===R||"ae_ar"===R||"sa"===R||"sa_en"===R){var za=[];h.displayBrandName&&za.push(h.displayBrandName);h.displayModelName&&za.push(h.displayModelName);P=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+za.join(" | ");d=0;C.instantDiscount=
1455"Y"==h.specialInstantDiscountYn?!0:!1;C.sgeSiteInstantChk&&C.instantDiscount&&(d=X);I&&(pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),ea=currencyComma(I,z)+" ("+Granite.I18n.get("Cashback")+")");if(C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(I,z);var Ja=[];h.displayBrandName&&Ja.push(h.displayBrandName);h.displayModelName&&Ja.push(h.displayModelName);var Fa="";h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice));
1456var Ba={index:b.length,count:b.length+1,displayModelName:Ja.join(" | "),discountPriceText:currencyComma(I,z),discountText1:Q,dataPrice:d,dataCashBack:I,data
1456QuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,specialInstantDiscountYn:h.specialInstantDiscountYn};-1<C.checkedIndex?(Ba.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ba)):b.push(Ba)}}else if("pk"===R){var Ha=[];h.displayBrandName&&Ha.push(h.displayBrandName);h.displayModelName&&
1457Ha.push(h.displayModelName);P=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+Ha.join(" | ");if(C.isMultiTradeIn){t=parseFloat(h.value.price);Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,z);Fa="";h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice));var Va=[];h.displayBrandName&&Va.push(h.displayBrandName);h.displayModelName&&Va.push(h.displayModelName);var Na={index:b.length,count:b.length+1,displayModelName:Va.join(" | "),discountPriceText:currencyComma(I,
1458z),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,specialInstantDiscountYn:h.specialInstantDiscountYn};-1<C.checkedIndex?(Na.index=C.checkedIndex,b.splice(C.checkedIndex,1,Na)):b.push(Na)}}else if("de"===R){h.openPromoTax?O=h.openPromoTax:oa&&(O=oa);C.tradeInSelectPrice=I+t;if(C.isMultiTradeIn){var ka=C.hasStackbleTradeInFreeGiftPromotion;va.tradeInResult.hasComponent||(ka=!1);ka&&(C.hasGift=
1459!1,C.hasVoucher||C.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1))}C.hasTradeInFreeGiftPromotion&&(C.hasGift=!1,C.hasVoucher||C.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1));V||(d=t+I,Q="- "+currencyComma(d,z)+" "+Granite.I18n.get("Upfront discount"),O&&0!==I&&(ea=Granite.I18n.get("Inkl. {0} Tauschpr\u00e4mie | Direktabzug im Warenkorb",
1460currencyComma(I,z))),ra.hasUpgradeResult&&(Z=parseFloat(fa.attr("data-price"))-parseFloat(C.tradeInSelectPrice),fa.attr("data-price",Z),$(fa).find(".option-result__text").innerHTML=currencyComma(parseFloat(Z/24),z)+" / "+Granite.I18n.get("month")));if(C.isMultiTradeIn){var La=[];h.displayBrandName&&La.push(h.displayBrandName);h.displayModelName&&La.push(h.displayModelName);Fa="";if(h.tradeInSpecialPrice){var Da=""+Granite.I18n.get("Total Discount");Fa=parseFloat(h.tradeInSpecialPrice);d+=Fa;var Ka=
1461h.priceInfos;if(0<Ka.length){var Qa="";$.each(Ka,function(Bb,fb){Qa+=fb+"\x3cbr\x3e"});sa=Qa+="("+Granite.I18n.get("Upfront discount",null,null)+")"}}else sa="("+Granite.I18n.get("Upfront discount")+")";var Oa={index:b.length,count:b.length+1,displayModelName:La.join(" | "),discountPriceText:currencyComma(d,z),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,discountPriceTextTile:Da,specialDiscountText:sa,discountPrice:parseFloat(t),specialPrice:Fa,priceinfodesc:Qa,
1462provider:h.provider,closedDiscountAmount:parseFloat(h.closedDiscountAmount?h.closedDiscountAmount:0)};-1<C.checkedIndex?(Oa.index=C.checkedIndex,b.splice(C.checkedIndex,1,Oa)):b.push(Oa);if(ra.hasUpgradeResult){var Sa=b.reduce(function(Bb,fb){return Bb+parseInt(fb.dataPrice)},0);Z=parseFloat(fa.attr("data-price"))-parseFloat(Sa);fa.attr("data-price",Z);$(fa).find(".option-result__text").innerHTML=currencyComma(parseFloat(Z/24),z)+" / "+Granite.I18n.get("month")}}}else if("pl"===R){if(V||(Q=Granite.I18n.get("Total Cashback")+
1463": "+currencyComma(X,z),Fa="",h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice),Q=Granite.I18n.get("Total Cashback")+": "+currencyComma(parseFloat(X)+parseFloat(h.tradeInSpecialPrice),z),ea="-"+currencyComma(X,z)+" ("+Granite.I18n.get("Old device value")+")",la="-"+currencyComma(h.tradeInSpecialPrice,z)+" ("+Granite.I18n.get("Additional value")+")"),"instantDiscount"!=h.discountMode&&(d=0)),C.isMultiTradeIn){var Ra="",Ua="";h.tradeInSpecialPrice?(Ra=""+currencyComma(parseFloat(X)+parseFloat(h.tradeInSpecialPrice),
1464z),Q=(h.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(X),z),Ua=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(h.tradeInSpecialPrice),z)):(Ra=""+currencyComma(parseFloat(X),z),Q="");var Y=F(" | ",h.displayBrandName,h.displayModelName);h.isGuaranteedTradeIn&&h.tradeInSpecialPrice&&(d=h.tradeInSpecialPrice);var ja=""+Granite.I18n.get("Total Discount"),ya={index:b.length,count:b.length+1,displayModelName:Y,
1465discountPriceText:Ra,discountText1:Q,dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:Ua,discountPrice:parseFloat(d),specialPrice
1465:Fa,discountPriceTextTile:ja,isGuaranteedTradeIn:h.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(ya.index=C.checkedIndex,b.splice(C.checkedIndex,1,ya)):b.push(ya)}}else if("sk"===R){if(V||(Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,z),Fa="",h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice),Q=Granite.I18n.get("Total Discount")+
1466": "+currencyComma(parseFloat(X)+parseFloat(h.tradeInSpecialPrice),z),ea="-"+currencyComma(X,z)+" ("+Granite.I18n.get("Old device value")+")",la="-"+currencyComma(h.tradeInSpecialPrice,z)+" ("+Granite.I18n.get("Additional value")+")",d=parseFloat(X+h.tradeInSpecialPrice)),"instantDiscount"!=h.discountMode&&(d=0,Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,z))),C.isMultiTradeIn){var Aa="",Ga="";h.tradeInSpecialPrice?(Aa=""+currencyComma(parseFloat(X)+parseFloat(h.tradeInSpecialPrice),
1467z),Q=(h.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(X),z),Ga=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(h.tradeInSpecialPrice),z)):(Aa=""+currencyComma(parseFloat(X),z),Q="");var ua=F(" | ",h.displayBrandName,h.displayModelName);h.isGuaranteedTradeIn&&h.tradeInSpecialPrice&&(d=h.tradeInSpecialPrice);var Ea=""+Granite.I18n.get("Total Discount"),Ia={index:b.length,count:b.length+1,displayModelName:ua,
1468discountPriceText:Aa,discountText1:Q,dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:Ga,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:Ea,isGuaranteedTradeIn:h.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(Ia.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ia)):b.push(Ia)}}else if("lv"===R||"lt"===R||"ee"===R)h.tradeInSpecialPrice?(c=currencyComma(X,z)+" ("+Granite.I18n.get("Your device trade-in value")+")",m=currencyComma(h.tradeInSpecialPrice,
1469z)+" ("+Granite.I18n.get("Additional bonus")+")",Q=Granite.I18n.get("Total trade amount")+" : "+currencyComma(X+h.tradeInSpecialPrice,z),d=parseFloat(X+h.tradeInSpecialPrice)):(Q=currencyComma(X,z),d=X),"instantDiscount"!=h.discountMode&&(d=0,Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,z)),pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");else if("id"===R||"ph"===R){if(V||(d=t+I,0!==t&&(Q=currencyComma(t,z)+" ("+Granite.I18n.get("Regular exchange discount")+
1470")"),0!==I&&(ea=currencyComma(I,z)+" ("+Granite.I18n.get("Additional exchange discount")+")")),C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,z);var wa=[];h.displayBrandName&&wa.push(h.displayBrandName);h.displayModelName&&wa.push(h.displayModelName);Fa="";h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice));var Ca={index:b.length,count:b.length+1,displayModelName:wa.join(" | "),discountPriceText:currencyComma(d,z),discountText1:Q,dataPrice:d,dataCashBack:y,
1471dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(Ca.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ca)):b.push(Ca)}}else if("uk"===R)V||(d=t+I,Q="- "+currencyComma(d,z)+" "+Granite.I18n.get("Upfront discount"));else if("fr"===R){V?(y=t+I,Q=currencyComma(y,z)+" "+Granite.I18n.get("Cashback")):(d=t+I,Q="- "+currencyComma(d,z)+" "+Granite.I18n.get("Upfront discount"));0!==I&&(pa=Granite.I18n.get("* Includes {0} additional discount",
1472currencyComma(I,z)));C.commonTradein=h.commonTradein;var Xa="";h.tradeInSpecialPrice&&(Xa=parseInt(h.tradeInSpecialPrice));if(C.isMultiTradeIn){var Ta=[];h.displayBrandName&&Ta.push(h.displayBrandName);h.displayModelName&&Ta.push(h.displayModelName);var Pa=""+Granite.I18n.get("Total de remise appliqu\u00e9e");Q=currencyComma(t,z)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil");var Wa=h.abondementAmount,ab="",Ya=h.spotGuaranteeAmount,Za="";h.spotGuaranteeAmount||h.abondementAmount||
1473h.tradeInSpecialPrice||(Q="");h.spotGuaranteeAmount&&(Za="+"+currencyComma(h.spotGuaranteeAmount,z)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (offre de reprise garantie)"));h.abondementAmount&&(ab="+"+currencyComma(h.abondementAmount,z)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (abondement)"));h.tradeInSpecialPrice&&(sa="+"+currencyComma(parseInt(h.tradeInSpecialPrice),z)+" "+Granite.I18n.get("de bonus reprise"));var cb={index:b.length,count:b.length+1,displayModelName:Ta.join(" | "),
1474discountPriceText:currencyComma(d,z),discountText1:Q,dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice
1474:Xa,discountPriceTextTile:Pa,abondementAmount:Wa,abondementAmountText:ab,spotGuaranteeAmount:Ya,spotGuaranteeAmountText:Za};-1<C.checkedIndex?(cb.index=C.checkedIndex,b.splice(C.checkedIndex,1,cb)):b.push(cb)}Xa&&(sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Xa,z),X=parseFloat(X)+parseFloat(Xa),
1475d+=Xa)}else if("be"===R||"be_fr"===R||"nl"===R){h.tradeinId=h.tradeinInfo.id;Da=""+Granite.I18n.get("Total Discount");Q=currencyComma(t,z)+" ("+Granite.I18n.get("Regular Exchange Value")+")";var ib="";h.tradeInSpecialPrice&&(ib=parseInt(h.tradeInSpecialPrice),sa=Granite.I18n.get("Special Discount")+" "+currencyComma(ib,z),d+=ib);if(C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,z);var $a=[];h.displayBrandName&&$a.push(h.displayBrandName);h.displayModelName&&$a.push(h.displayModelName);
1476var mb={index:b.length,count:b.length+1,displayModelName:$a.join(" | "),discountPriceText:currencyComma(d,z),discountText1:Q,discountPriceTextTile:Da,specialDiscountText:sa,dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,isGuaranteedTradeIn:h.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(mb.index=C.checkedIndex,b.splice(C.checkedIndex,1,mb)):b.push(mb)}}else if("sk"===R||"cz"===R)h.tradeInSpecialPrice?(c=currencyComma(X,z)+" ("+Granite.I18n.get("Your device value")+")",
1477m=currencyComma(h.tradeInSpecialPrice,z)+" ("+Granite.I18n.get("Additional bonus")+")",Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X+h.tradeInSpecialPrice,z)):Q=currencyComma(X,z),d=0;else if("pe"===R||"co"===R)Q=currencyComma(I,z)+" "+Granite.I18n.get("Cashback"),d=0;else if("mx"===R){var kb=0,gb=0,xb=0;0<h.tradeInAdditionalInfo.length&&($.each(h.tradeInAdditionalInfo,function(Bb,fb){"discountAmount"===fb.key&&(kb=parseFloat(fb.value));"additionalDiscount"===fb.key&&(gb=parseFloat(fb.value))}),
1478xb=kb+gb,Q=0<kb?currencyComma(kb,z):null,ea=0<gb?currencyComma(gb,z):null);Ma=currencyComma(xb,z)}else if("kz_kz"===R||"kz_ru"===R){if(pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),C.isMultiTradeIn){var Cb=[];h.displayBrandName&&Cb.push(h.displayBrandName);h.displayModelName&&Cb.push(h.displayModelName);var hb={index:b.length,count:b.length+1,displayModelName:Cb.join(" | "),discountPriceText:currencyComma(d,z),discountText1:Q,dataPrice:d,dataCashBack:y,
1479dataQuoteId:h.tradeinId,imeiKey:h.imeiKey,dataId:h.consents,services:h};-1<h.checkedIndex&&b.splice(0);b.push(hb)}}else if("cl"===R&&C.isMultiTradeIn){pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");var Mb=""+Granite.I18n.get("Regular Exchange Value");Q="";var rb=[];h.displayBrandName&&rb.push(h.displayBrandName);h.displayModelName&&rb.push(h.displayModelName);Fa="";y=I;d=0;h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice),Mb=""+Granite.I18n.get("Total Discount"),
1480Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(y,z),sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Fa,z),d+=Fa,y+=Fa);var nb={index:b.length,count:b.length+1,discountPriceTextTile:Mb,discountPriceText:currencyComma(y,z),displayModelName:rb.join(" | "),dataPrice:d,dataCashBack:I,dataQuoteId:h.tradeinId,dataId:h.consents,imeiKey:h.imeiKey,services:h,specialDiscountText:sa,discountText1:Q,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(nb.index=C.checkedIndex,
1481b.splice(C.checkedIndex,1,nb)):b.push(nb)}else if("ua"===R)y=h.discount.price.replace(/\u20b4/g,"").trim(),Q=Granite.I18n.get("Approximate estimated cost")+" : "+y+" "+Granite.I18n.get("\u0433\u0440\u043d"),xb=gb=kb=0,0<h.tradeInAdditionalInfo.length&&($.each(h.tradeInAdditionalInfo,function(Bb,fb){"discountAmount"===fb.key&&(kb=parseFloat(fb.value));"additionalDiscount"===fb.key&&(gb=parseFloat(fb.value))}),0<gb?(xb=kb+gb,d=gb,Q=Granite.I18n.get("Approximate estimated cost ETI")+" : "+currencyComma(xb,
1482z).replace(/\u20b4/g,"").trim()+" "+Granite.I18n.get("\u0433\u0440\u043d"),ea="("+Granite.I18n.get("Estimated value of old device")+": "+(0<kb?currencyComma(kb,z):null)+')\x3cp class\x3d"option-result__text option-result__text-blue"\x3e('+Granite.I18n.get("Instant benefit")+": "+(0<gb?currencyComma(gb,z):null)+")"):d=0),pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");else if("at"===R&&"01000000"===$("#categoryGroupCode").val())d=X,Q=currencyComma(d,
1483z),d=0;else if(r)Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,z),0<t&&(ea="-"+currencyComma(t,z)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")"),0<a?la="-"+currencyComma(a,z)+" ("+Granite.I18n.get("Overtrade bonus")+")":h.tradeInSpecialPrice&&(X=parseFloat(X)+parseFloat(h.tradeInSpecialPrice),Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,z),la="-"+currencyComma(parseFloat(h.tradeInSpecialPrice),z)+" ("+Granite.I18n.get("Special Discount")+")"),pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),
1484d=X;else if("ro"===R||"bg"===R){if(0<a?(Q=currencyComma(parseFloat(X),z),d=X):Q=currencyComma(d,z),"bg"===R){var Ib="eur"===C.priceCurrency.toLowerCase()?v(d):n(d);Q+=" / "+Ib}}else if("jp"===R)h.tradeinId=h.tradeinInfo.id,f=Granite.I18n.get("Total Cashback amount"),0<J?(q="\x3cdel\x3e"+Granite.I18n.get("Trade-in value")+" : "+currencyComma(I,z)+"\x3c/del\x3e",ba=Granite.I18n.get("Total trade-in value")+" : "+currencyComma(J,z)):ba=Granite.I18n.get("Trade-in value")+" : "+currencyComma(X,z),d=0;else if("cn"===
1485R){var bb=0;pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in.")+" T\x26Cs apply.";Q=Granite.I18n.get("Trade in amount")+": "+currencyComma(t,z);$.each(h.tradeInAdditionalInfo,function(Bb,fb){"vendorDiscount"===fb.key&&(bb=fb.value)});0!=bb&&(ea=Granite.I18n.get("Trade in discount from partner: Shans")+": "+currencyComma(bb,z),d+=parseFloat(bb));if(C.isMultiTradeIn){var jb=[];h.displayBrandName&&jb.push(h.displayBrandName);h.displayModelName&&jb.push(h.displayModelName);
1486var db={index:b.length,count:b.length+1,displayModelName:jb.join(" | "),discountPriceText:currencyComma(d,z),discountText1:Q,discountText2:ea,dataPrice:d,dataTotalPrice:X,dataCashBack:y,dataQuoteId:h.tradeinId,imeiKey:h.imeiKey,dataId:h.consents,provider:h.provider,services:h};-1<C.checkedIndex?(db.index=C.checkedIndex,b.splice(C.checkedIndex,1,db)):b.push(db)}}else if("tr"==R){var sb=Granite.I18n.get("Total Cashback"),Ob="",ob="",fc=!1,cc=!0;if(V){Ob=""+currencyComma(parseFloat(X),z);if(0==b.length||
14870==C.checkedIndex)fc=!0,cc=!1;h.tradeInSpecialPrice?(Ob=""+currencyComma(parseFloat(X)+parseFloat(h.tradeInSpecialPrice),z),Q=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),z),ob=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(h.tradeInSpecialPrice),z)):(Ob=""+currencyComma(parseFloat(X),z),Q=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),z),ob=Granite.I18n.get("Additional value")+" "+currencyComma(0,z));ea=""+currencyComma(parseFloat(X),
1488z);la=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),z);y=X;if(C.isMultiTradeIn){var Hb=[];h.displayBrandName&&Hb.push(h.displayBrandName);h.displayModelName&&Hb.push(h.displayModelName);var Rb={index:b.length,count:b.length+1,displayModelName:Hb.join(" | "),discountPriceTextTile:sb,discountPriceText:Ob,discountText1:Q,discountText2:ea,discountText3:la,dataPrice:d,dataTotalPrice:X,dataCashBack:y,dataQuoteId:h.tradeinId,imeiKey:h.imeiKey,dataId:h.consents,provider:h.provider,
1489services:h,firstcheck:fc,othercheck:cc,specialDiscountText:ob};-1<C.checkedIndex?(Rb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Rb)):b.push(Rb)}}}else if(da&&na){"se"==R&&void 0!==M&&""!==M&&null!==M&&(t=M);var Pb=!1;pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");if("es"===R)X=void 0!=X&&X?parseFloat(X):0,I=void 0!=I&&I?parseFloat(I):0,ea=0<t?Granite.I18n.get("Value to")+" "+currencyComma(X,z)+" "+Granite.I18n.get("include promotion"):Granite.I18n.get("Up to")+
1490" "+currencyComma(I,z)+" ("+Granite.I18n.get("Cashback")+")","04000000"===$("#categoryGroupCode").val()&&(pa=Granite.I18n.get("Trade-In disclaimer(TV)"));else if("my"===R){xb=gb=kb=0;pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");Q=""+Granite.I18n.get("Regular Exchange Value");ea=""+Granite.I18n.get("Special Discount");var Eb=[];h.displayBrandName&&Eb.push(h.displayBrandName);h.displayModelName&&Eb.push(h.displayModelName);if(h.tradeInSpecialPrice){var $b=
1491parseInt(h.tradeInSpecialPrice);X=parseFloat(X)+parseFloat($b);0==I&&0<t?d+=$b:0<I&&0==t&&(d=0)}var Sb={index:b.length,count:b.length+1,displayModelName:Eb.join(" | "),discountPriceText:currencyComma(I,z)+"*",discountText1:Q,dataPrice:d,dataCashBack:I,data
1491QuoteId:h.tradeinId,dataId:h.consents,services:h};0<h.tradeInAdditionalInfo.length&&$.each(h.tradeInAdditionalInfo,function(Bb,fb){"discountAmount"===fb.key&&(kb=parseFloat(fb.value));"additionalDiscount"===fb.key&&(gb=parseFloat(fb.value),Sb.dataPrice=
1492gb)});xb=kb+gb;Sb.discountPriceText=currencyComma(kb,z)+"*";Sb.discountText1=0<kb?Q:null;Sb.discountPriceText2=gb?currencyComma(gb,z)+"*":null;Sb.discountText2=0<gb?ea:null;-1<C.checkedIndex?(Sb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Sb)):b.push(Sb)}else if("vn"===R){pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");Fa="";h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice));var gc={index:b.length,count:b.length+1,displayModelName:h.displayModelName,
1493dataPrice:d,dataCashBack:I,dataQuoteId:h.tradeinId,dataId:h.consents,imeiKey:h.imeiKey,services:h,specialDiscountText:sa,discountText1:Q,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(gc.index=C.checkedIndex,b.splice(C.checkedIndex,1,gc)):b.push(gc)}else if("hk"===R||"hk_en"===R){void 0!==h.tradeinTotalAmount&&(Q=" "+Granite.I18n.get("Trade-in discount")+" : "+currencyComma(h.tradeinTotalAmount,z)+" ( "+Granite.I18n.get("Total Rebate")+" )",0<h.tradeinTotalAmount&&(0<h.tradeinValue&&
1494(ea=currencyComma(h.tradeinValue,z)+" ( "+Granite.I18n.get("Rebate")+" )"),0<h.exclusiveTradeinUnitOffer&&(la=currencyComma(h.exclusiveTradeinUnitOffer,z)+" ( "+Granite.I18n.get("Extra Trade-in Rebate")+" )"),0<h.extraTradeinOffer&&(ma=currencyComma(h.extraTradeinOffer,z)+" ( "+Granite.I18n.get("Designated Used Device Trade-in Rebate")+" )"),0<h.exclusiveChannerTradeinOffer&&(ta=currencyComma(h.exclusiveChannerTradeinOffer,z)+" ( "+Granite.I18n.get("Online Shop Trade-in Rebate")+" )"),0<h.extraTradeinVoucher&&
1495(xa=currencyComma(h.extraTradeinVoucher,z)+" ( "+Granite.I18n.get("Promo code Trade-in Rebate")+" )")));if(C.isMultiTradeIn){var Qb=[];h.displayBrandName&&Qb.push(h.displayBrandName);h.displayModelName&&Qb.push(h.displayModelName);var lc="",pb="",tb=h.tradeinValue,Fb="",rc=h.exclusiveTradeinUnitOffer,ub="",mc=h.extraTradeinOffer,lb="",yb=h.exclusiveChannerTradeinOffer,Db="",eb=h.extraTradeinVoucher,zb="";if(void 0!==h.tradeinTotalAmount){lc=""+Granite.I18n.get("Estimated Trade-in Value");pb=Granite.I18n.get("Total Rebate")+
1496" "+currencyComma(h.tradeinTotalAmount,z)+"*";0<h.tradeinTotalAmount&&0<h.tradeinValue&&(Fb=Granite.I18n.get("Rebate")+" "+currencyComma(h.tradeinValue,z));if(0<h.exclusiveTradeinUnitOffer||0==h.exclusiveTradeinUnitOffer&&0==h.extraTradeinOffer)ub=Granite.I18n.get("Extra Trade-in Rebate")+" "+currencyComma(h.exclusiveTradeinUnitOffer,z);0<h.tradeinTotalAmount&&(0<h.extraTradeinOffer&&(lb=Granite.I18n.get("Designated Used Device Trade-in Rebate")+" "+currencyComma(h.extraTradeinOffer,z)),0<h.exclusiveChannerTradeinOffer&&
1497(Db=Granite.I18n.get("Online Shop Trade-in Rebate")+" "+currencyComma(h.exclusiveChannerTradeinOffer,z)),0<h.extraTradeinVoucher&&(zb=Granite.I18n.get("Promo code Trade-in Rebate")+" "+currencyComma(h.extraTradeinVoucher,z)))}var Jb={index:b.length,count:b.length+1,displayModelName:Qb.join(" | "),discountPriceText:pb,discountText1:"",dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:lc,
1498tradeinTotalAmount:h.tradeinTotalAmount,tradeinValue:tb,tradeinValueText:Fb,exclusiveTradeinUnitOffer:rc,exclusiveTradeinUnitOfferText:ub,extraTradeinOffer:mc,extraTradeinOfferText:lb,extraTradeinOfferTextShow:lb?!0:!1,exclusiveChannerTradeinOffer:yb,exclusiveChannerTradeinOfferText:Db,exclusiveChannerTradeinOfferTextShow:Db?!0:!1,extraTradeinVoucher:eb,extraTradeinVoucherText:zb,extraTradeinVoucherTextShow:zb?!0:!1};-1<C.checkedIndex?(Jb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Jb)):b.push(Jb)}d=
14990}else if(C.isMultiTradeIn){var Tb=[];h.displayBrandName&&Tb.push(h.displayBrandName);h.displayModelName&&Tb.push(h.displayModelName);Fa="";"sg"===R&&h.tradeInSpecialPrice&&(Fa=parseFloat(h.tradeInSpecialPrice));var hc="";"au"===R&&(Q=""+Granite.I18n.get("Old device value"),ea=""+Granite.I18n.get("Additional value"),Da=""+Granite.I18n.get("Total Discount"),h.tradeInSpecialPrice&&0<parseFloat(h.tradeInSpecialPrice)&&(Fa=p
1499arseFloat(h.tradeInSpecialPrice)),h.tradeInPrice&&(hc=parseFloat(h.tradeInPrice)));
1500var Ub={index:b.length,count:b.length+1,displayModelName:Tb.join(" | "),discountPriceTextTitle:Da,discountPriceText:currencyComma(d,z),dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,services:h,specialDiscountText:sa,discountText1:Q,discountText2:ea,discountAmountPrice:d,discountAmountPriceText:currencyComma(d,z),specialPriceText:currencyComma(Fa,z),discountPrice:parseFloat(d),specialPrice:Fa,tradeInPrice:hc};"it"==R&&(Ub.discountPriceTextTitle=""+Granite.I18n.get("Valore della prevalutazione"),
1501Ub.discountPriceText=currencyComma(t+I,z),Ub.dataPrice=t,Ub.dataCashBack=I,0<I?T.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Cashback Result Text"):T.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Discount Result Text"));-1<C.checkedIndex?(Ub.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ub)):b.push(Ub)}else"nz"===R?(P=Granite.I18n.getVar("Trade-in",
1502"ux2")+" : "+P,Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,z),0<a&&(ea="-"+currencyComma(t,z)+" ("+Granite.I18n.get("Your old device value")+")",la="-"+currencyComma(a,z)+" ("+Granite.I18n.get("Overtrade bonus")+")"),d=X):(0<t&&(ea="ch"===R||"ch_fr"===R?Granite.I18n.get("Up to")+" "+currencyComma(t,z):currencyComma(t,z),"ru"===R||"au"===R||"th"===R?" "!==Granite.I18n.get("Immediate Discount")&&(ea+=" ("+Granite.I18n.get("Immediate Discount")+")"):"vn"===R?(P=null,Q=currencyComma(t,
1503z)+" ("+Granite.I18n.get("Regular Exchange Value")+") ",ea=null):" "!==Granite.I18n.get("Regular Exchange Value")&&("za"===R&&(ea+="*"),ea+=" ("+Granite.I18n.get("Regular Exchange Value")+")")),0<I&&("th"===R&&0<t||(""!==ea?la=currencyComma(I,z)+" ("+Granite.I18n.get("Cashback")+")":ea=currencyComma(I,z)+" ("+Granite.I18n.get("Cashback")+")")));""!==L&&0<Number(L)&&(sa=currencyComma(L,z),sa=""!==N?sa+(" ("+N+")"):sa+(" ("+Granite.I18n.get("Special Discount")+")"),X=parseFloat(X)+parseFloat(L),Pb=
1504!0);if("sg"===R&&h.tradeInSpecialPrice){var qb=parseInt(h.tradeInSpecialPrice);sa=Granite.I18n.get("Special Discount")+" "+currencyComma(qb,z);X=parseFloat(X)+parseFloat(qb);d+=qb;Pb=!0}if(Pb)Q="it"!==R&&"ru"!==R&&"au"!==R&&"nz"!==R&&"za"!==R&&"th"!==R&&"ca"!==R&&"ca_fr"!==R&&0<t?Granite.I18n.get("Total Discount")+" : "+currencyComma(X,z):Granite.I18n.get("Total Benefit")+" : "+currencyComma(X,z);else if("it"===R&&(0<t||0<I)&&(ea=Q=null,0<t)){var vb=[];h.displayBrandName&&vb.push(h.displayBrandName);
1505h.displayModelName&&vb.push(h.displayModelName);P=Granite.I18n.get("Galaxy Now! Credito Immediato")+" : "+vb.join(" | ")}}G={hasComponent:!0,displayModelName:P,discountText1:Q,discountText2:ea,discountText3:la,discountText4:ma,discountText5:ta,discountText6:xa,specialDiscountText:sa,description:pa,dataPrice:d,dataCashBack:y,dataQuoteId:h.tradeinId,dataId:h.consents,list:b,tradeinAmountText:c,dealBonusPriceText:m,additionalDiscountFlag:qa,priceAreaTitleText:f,totalCashBackPriceText:ba,imeiKey:h.imeiKey,
1506deletedOriginalCashBackPriceText:q,contentText:A};"dk"==R||"fi"==R||"se"==R||"no"==R?(G.discountPriceText=currencyComma(d,z),G.discountText2=Granite.I18n.get("Regular Exchange Value")+" "+G.discountPriceText):"mx"==R&&(G.discountPriceText=Ma);if(C.isMultiTradeIn&&0<b.length){("sg"===R||"vn"===R||"id"===R||qa)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(C,G);"tr"==R?(G.dataPrice=b.reduce(function(Bb,fb){return Bb+parseInt(fb.dataCashBack)},0),G.dataPrice+=b[0].services.tradeInSpecialPrice):
1507G.dataPrice=b.reduce(function(Bb,fb){return Bb+parseInt(fb.dataPrice)},0);if("cn"==R){var Ab=0;$.each(b,function(Bb,fb){$.each(fb.services.tradeInAdditionalInfo,function(Nb,wb){"ticketMoney"===wb.key&&Ab<wb.value&&(Ab=wb.value)})});G.dataPrice=parseFloat(G.dataPrice)+parseFloat(Ab);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Vb=0;$.each(G.list,function(Bb,fb){$.each(fb.services.tradeInAdditionalInfo,function(Nb,wb){"o2oTicketMoney"===wb.key&&Vb<wb.value&&(Vb=wb.value)})});
1508G.dataPrice=parseFloat(G.dataPrice)+parseFloat(Vb)}}if("kz_kz"===R||"kz_ru"===R)G.dataPrice=h.totalSumPrice;var Yb=Number(G.dataPrice)-Number(C.proudctPriceInfo.salePrice);C.minOrderEntryValue&&(Yb+=Number(C.minOrderEntryValue));if("be"===R||"be_fr"===R||"nl"===R||"sg"===R||"vn"===R||"my"===R||"id"===R||"fr"===R||"kz_kz"===R||"kz_ru"===R||"de"===R||"sa"===R||"sa_en"===R||"cl"===R){if(G.totalAmountText=currencyComma(G.dataPrice,z),0<Yb&&(G.priceOverFlag=!0,G.excessAmount=Yb,G.excessAmountText=currencyComma(Yb,
1509z),G.tenText=currencyComma(C.minOrderEntryValue,z),"kz_kz"===R||"kz_ru"===R))G.totalAmountText=currencyComma(Number(C.proudctPriceInfo.salePrice)-Number(C.minOrderEntryValue),z)}else G.dataPrice>C.proudctPriceInfo.salePrice&&(G.priceOverFlag=!0);"tr"==R&&(G.dataPrice=0);if("cn"==R){var Kb=0;$.each(G.list,function(Bb,fb){$.each(fb.services.tradeInAdditionalInfo,function(Nb,wb){"ticketMoney"===wb.key&&Kb<wb.value&&(Kb=wb.value)})});G.totalTicketMoney=0;0!=Kb&&(G.totalTicketMoney=Kb,G.totalTicketMoneyText=
1510Granite.I18n.get("Additional Trade in discount from Samsung")+": "+currencyComma(Kb,z));if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Wb=0;$.each(G.list,function(Bb,fb){$.each(fb.services.tradeInAdditionalInfo,function(Nb,wb){"o2oTicketMoney"===wb.key&&Wb<wb.value&&(Wb=wb.value)})});G.totalO2oTicketMoney=0;0!=Wb&&(G.totalO2oTicketMoney=Wb,G.totalO2oTicketMoneyText=Granite.I18n.get("O2O special subsidy")+": "+currencyComma(Wb,z))}}}U.triggerChange(document.querySelector("#pd-trade-in-0"));
1511va.tradeInResult=G;T.tradeInResultDraw(va);ra.totalAfterFunction(C,E)}}function n(h){var C=Math.pow(10,2);h=Number(h)/1.95583;h=Math.round(h*C)/C;return currencyComma(h,"EUR")}function v(h){var C=Math.pow(10,2);h=1.95583*Number(h);h=Math.round(h*C)/C;return currencyComma(h,"BGN")}function F(h,C){for(var E=[],T=1;T<arguments.length;++T)E[T-1]=arguments[T];h=void 0===h?" | ":h;return E.filter(function(R){return R}).join(h)}function W(h,C,E){var T=C.priceCurrency;C=C.isHybrisSplitPD;var R=!1,z="",fa=
1512"",va="",ra=0,oa=0,da=0,na=0,L=0,N="",b=0,r=[],G=0;h.tradeinDiscountYn&&(R=h.tradeinDiscountYn);h.displayBrandName&&(z=h.displayBrandName,r.push(h.displayBrandName));h.displayModelName&&(fa=h.displayModelName,r.push(h.displayModelName));var P=Granite.I18n.get("Your Trade-in")+" : "+r.join(" | ");if("pt"===siteCode)P=Granite.I18n.get("Your Trade-in")+" : "+fa;else if("nz"===siteCode||"dk"===siteCode||"fi"===siteCode||"se"===siteCode||"no"===siteCode)P=r.join(" | ");E&&(va=h.value.price,ra=parseFloat(h.value.price),
1513oa=parseFloat(h.discount.price),da=parseFloat(h.discount.total),h.value.enhancedDiscountAmount&&(b=parseFloat(h.value.enhancedDiscountAmount)),h.discount&&h.discount.eventAmountPrice&&(G=parseFloat(h.discount.eventAmountPrice)));R?(L=ra,C||(N="tr"===siteCode?currencyComma(h.discount.price,T)+" "+Granite.I18n.get("Cashback"):"- "+currencyComma(L,T)+" "+Granite.I18n.get("Cashback"))):(na=ra,C||(N="- "+currencyComma(na,T)+" "+Granite.I18n.get("Upfront discount")));return{tradeinDiscountYn:R,displayBrandName:z,
1514displayModelName:fa,modelAndBrand:P,StrOrignalDisplayPrice:va,orignalDisplayPrice:ra,orignalCashBackPrice:oa,orignalTotalPrice:da,displayPrice:na,cashBackPrice:L,priceText:N,enhancedDiscountAmount:b,eventAmountPrice:G}}function aa(h,C,E,T){var R=C.priceCurrency,z=0,fa=0,va=null,ra=0,oa=null;h&&(h.discounted_sku&&(h.msrp_price&&(h.msrp_price.value&&(z=parseFloat(h.msrp_price.value)),h.msrp_price.formatted_value||currencyComma(z,R),h.msrp_price.duration&&(ra=h.msrp_price.duration),h.msrp_price.paymentcycle&&
1515(oa=h.msrp_price.paymentcycle)),h.sale_price&&(fa=h.sale_price.value?parseFloat(h.sale_price.value):z,va=h.sale_price.formatted_value?h.sale_price.formatted_value:currencyComma(fa,R),h.sale_price.duration&&(ra=h.sale_price.duration),h.sale_price.paymentcycle&&(oa=h.sale_price.paymentcycle)),0<z&&z!==fa&&currencyComma(z-fa,R)),C.drawObj.careResult={hasComponent:!0,dataPrice:z,dataSalePrice:fa,dataModelName:h.modelName,dataModelCode:h.modelCode,dataId:h.consents,dataPromotionPrice:va,dataDuration:ra,
1516dataPaymentcycle:oa},C.popupReturnObj&&setTimeout(function(){U.triggerChange(C.popupReturnObj.get(0))},50),T.careResultDraw(p),w.totalAfterFunction(C,E))}var x=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),U=x.ux2.PDPHeaderUI,B="",w="",e="",p="",k="",A="",ca=!0,K=!1,D=function(h,C){k=C;B=h;w=B.util;e=B.view;p=B.drawObj};D.prototype.setTradeInSuportSubsidy=function(h){K=h};D.prototype.getTradeInSupportSidiy=function(){return K};D.prototype.wishlistPopup=function(h,C,E){var T=p.wishList;
1517h&&(T.contentWrapperClass=w.addClass(T.contentWrapperClass,h),T.contentWrapperClass=w.removeClass(T.contentWrapperClass,"tg-add-wishlist"),T.contentWrapperClass=w.addClass(T.contentWrapperClass,"tg-remove-wishlist"));C&&(T.contentWrapperClass=w.removeClass(T.contentWrapperClass,C),T.contentWrapperClass=w.addClass(T.contentWrapperClass,"tg-add-wishlist"),T.contentWrapperClass=w.removeClass(T.contentWrapperClass,"tg-remove-wishlist"));E&&(T.labelText=E);e.productWishListDraw(p);w.settingWishlistTagging(B,
1518k)};D.prototype.checkOutCta=function(h,C,E,T){h=void 0===h?[]:h;C=void 0===C?!1:C;
1518E=void 0===E?!1:E;B.useNewAddToCartApi?(new x.BuyingToolOpAjaxNewbris).callCheckOutCta(B,h,k,C,E,T):B.shopApiModel.callCheckOutCta(B,h,k,C,E,T)};D.prototype.addToCartCta=function(h,C,E,T){h=void 0===h?[]:h;C=void 0===C?!1:C;E=void 0===E?!1:E;B.useNewAddToCartApi?(new x.BuyingToolOpAjaxNewbris).callAddToCartCta(B,h,k,C,E,T):B.shopApiModel.callAddToCartCta(B,h,k,C,E,T)};D.prototype.offerAndAddonsDiscount=function(h,C){B.globalServiceInfo[C]=
1519h;if("tradein"===C)u(h,B,k,e);else if("tariff"===C){var E=B,T=k,R=e,z=E.drawObj,fa=E.util,va=E.priceCurrency,ra=E.siteCode,oa="";if(h){"uk"===ra?(oa=Granite.I18n.get("Monthly Price : ")+" "+currencyComma(h.price,va)+"/month***",E.tariffPrice=h.upfrontAmount):("au"===ra&&(E.tariffPrice=h.discount),h.period?oa=Granite.I18n.get("You pay now")+" "+currencyComma(h.price,va)+"/"+h.period:h.price&&(oa=Granite.I18n.get("You pay now")+" "+currencyComma(h.price,va)));"au"===ra&&h.priceText&&(oa=h.priceText);
1520if("se"==ra||"no"==ra||"dk"==ra)oa="";"fr"==ra&&fa.isNotEmpty(h.pricing.promotions)&&fa.isNotEmpty(h.pricing.promotions[0].monthly_rate.value)&&(oa=Granite.I18n.get("Starting from")+" "+Granite.I18n.get("{0}/month",currencyComma(h.pricing.promotions[0].monthly_rate.value,va)));z.tariffOptionResult={hasComponent:!0,displayModelName:h.serviceDescription,discountText1:oa,description1:"fr"==ra?"":Granite.I18n.get("Invoice will be issued by the network service company"),dataPrice:h.periodPrice,dataSimskuCode:h.simSkuCode,
1521dataModelCode:h.modelCode,dataId:h.consents};if("de"===ra){E.hasGiftPage?(E.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(E.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1),E.hasVoucher||E.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1));var da=!1;1==E.hasPlanIDAndFreeGiftPromotion&&((da=E.giftSelectionSkipPlanIdList.includes(h.modelCode))?
1522(E.hasGift=!1,E.hasVoucher||E.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1)):(E.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)));da||window.sg.components.dynamic.freeGiftHybrisCommon.getTariffRelatedProductsSimpleInfo(E.modelCode)}U.triggerChange(document.querySelector("#pd-tariff-option-0"));R.tariffOpionResultDraw(z);fa.totalAfterFunction(E,T)}}else if("combo"===
1523C){var na=B,L=k,N=e,b=na.util,r=na.drawObj,G=r.offer.combo,P=Number(na.checkedComboArea.attr("data-combo-index")),Z=b.hasTradeInResult(na,L),d=na.priceCurrency,M=null,t;for(t in G){var y=G[t];if(y.comboIndex===P){M=y;break}}if(M){M.item.hasBundle=!0;M.item.bundleList=[];for(var I in h){var X=h[I].thumbUrl,V=h[I].pviTypeName?h[I].pviTypeName.toLowerCase():"",O=h[I].pviSubtypeName?h[I].pviSubtypeName.toLowerCase():"",S=h[I].categorySubTypeEngName?h[I].categorySubTypeEngName.toLowerCase():"",Q="",ea=
1524"",la="",ma="",ta="";h[I].msrp_price&&!h[I].sale_price&&(h[I].sale_price=h[I].msrp_price);if(h[I].sale_price&&h[I].msrp_price){var xa="",sa="";xa=h[I].sale_price.formatted_value?h[I].sale_price.formatted_value:currencyComma(h[I].sale_price.value,d);sa=h[I].msrp_price.formatted_value?h[I].msrp_price.formatted_value:currencyComma(h[I].msrp_price.value,d);var Ma="";if("nl"===siteCode||"be"===siteCode||"be_fr"===siteCode)Ma=Granite.I18n.get("From");var pa="";"de"===siteCode&&(pa=Granite.I18n.get("From"));
1525h[I].sale_price?(0!==parseFloat(h[I].msrp_price.value)-parseFloat(h[I].sale_price.value)?(Q=Ma+pa+sa,ma=h[I].msrp_price.value,h[I].saveText&&""===Ma&&(ea=h[I].saveText)):(Q=" ",ma=h[I].msrp_price.value),la=Granite.I18n.get(xa),ta=h[I].sale_price.value):(Q=" ",ma=h[I].msrp_price.value,la=Granite.I18n.get(sa),ta=h[I].msrp_price.value)}var a={title:h[I].displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+h[I].displayName,dataPrice:ma,dataSalePrice:ta,dataEventType:"combo-"+P+"-"+I,dataModelName:h[I].modelName,
1526dataDisplayName:h[I].displayName,pviTypeName:V,pviSubtypeName:O,categorySubTypeEngName:S,dataSkuCode:h[I].shopSKU,dataModelCode:h[I].modelCode,dataIndex:h[I].idx,imgAttr:{classWapper:"image__main responsive-img",srcPc:X,alt:h[I].thumbUrlAlt},price:{original:Q,save:ea,now:la}};M.item.bundleList.push(a)}"in"===siteCode&&Z&&b.exchangeResultDraw(na,L);N.productOfferDraw(r,!0);b.totalAfterFunction(na,L)}}else if("exchange"===C){var c=B,m=k,f=e;"CE"===c.tradeInType&&"in"===siteCode?c.commonApiModel.tradeInCeDataV1Api(c,
1527m,h):h.notselected_offer_id?c.commonApiModel.exchangeInDataV1Api(c,m,h):(h.dataQuoteId=h.id,c.util.settingExchangeAPIData(h,c,m,f))}else if("eup"===C){var q=B,ba=k,J=e,ha=q.drawObj,qa=q.util,ia=q.priceCurrency;h&&(ha.upgradeResult={hasComponent:!0,displayModelName:h.displayName,discountText1:Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(h.salePrice/24),ia)),dataId:h.consents,dataPrice:h.salePrice},q.isMigrationHybris&&h.monthlyPrice&&(ha.upgradeResult.discountText1=
1528Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(h.monthlyPrice),ia))),U.triggerChange(document.querySelector("#pd-samsung-upgrade-0")),J.upgradeResultDraw(ha),qa.totalAfterFunction(q,ba))}else if("care"===C)aa(h,B,k,e);else if("warranty"===C){var za=B,Ja=k,Fa=e,Ba=za.siteCode,Ha=za.multiCareYn,Va="",Na=0,ka="",La=0,Da="",Ka="",Qa="",Oa="",Sa="",Ra="",Ua=null;if(h){h.discounted_sku&&(ka=h.discounted_sku,"GPv2"===za.apiFlag?(Na=h.msrp_price.value,h.sale_price.formatted_value?
1529(Va=h.msrp_price.formatted_value,La=parseFloat(h.msrp_price.value)-parseFloat(h.sale_price.value)):h.msrp_price.formatted_value&&(Va=h.msrp_price.formatted_value)):(Ua=Na=h.sale_price.value,Va=currencyComma(h.sale_price.value,za.priceCurrency)));var Y="";if("nl"===Ba||"be"===Ba||"be_fr"===Ba)Y=Granite.I18n.get("From");var ja="";"de"===Ba&&(ja=Granite.I18n.get("From"));var ya=Granite.I18n.get("Extended Warranty");"Y"!==Ha&&(Da=ya+" "+ka);0!==La?(Ka=Na,Oa=Y+ja+" "+Va,""===Y&&(Ra=Granite.I18n.get("Save {0}",
1530currencyComma(La,za.priceCurrency),Ba)),Qa=Ua,("ee"===Ba||"lt"===Ba||"lv"===Ba)&&h.sales_pitch&&(Sa=h.sales_pitch[0])):(Ka=Na,Qa=Ua,Oa=Va);za.drawObj.warrantyResult={hasComponent:!0,displayModelName:Da,discountText1:Oa,description1:Sa,dataPrice:Ka,dataSalePrice:Qa,dataModelName:h.modelName,dataModelCode:h.modelCode,dataId:h.consents,savedPrice:Ra};U.triggerChange(document.querySelector("#pd-samsung-warranty-0"));Fa.warrantyResultDraw(p);w.totalAfterFunction(za,Ja)}}else if("warrantyVd"===C){var Aa=
1531B,Ga=k,ua=e,Ea=["mx"].includes(Aa.siteCode)?!0:!1,Ia="",wa="";wa=currencyComma(h.price,Aa.priceCurrency);Ea&&h.paymentCycle&&"MONTHLY"===h.paymentCycle.toUpperCase()&&(wa=Granite.I18n.get("{0}/month",currencyComma(h.price,Aa.priceCurrency)));h&&($(".option-result--extended-warranty-option").removeAttr("style"),Aa.drawObj.warrantyVdResult={hasComponent:!0,title:h.title,price:h.price,smcCode:h.smcCode,description:h.description,priceDisplay:wa},U.triggerChange(document.querySelector("#pd-extended-warranty-option-0")),
1532ua.warrantyVdResultDraw(p),w.totalAfterFunction(Aa,Ga),Ia='\x3cstrong class\x3d"summary__product-name"\x3e'+h.title+'\x3c/strong\x3e\n\t\t\t\t\t\t   \x3cp class\x3d"summary__product-price" style\x3d""\x3e'+currencyComma(h.price,Aa.priceCurrency)+"\x3c/p\x3e",$(".summary__product-price").show(),$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").html(Ia))}else if("forever"===C){var Ca=B,Xa=k,Ta=e,Pa=Ca.util,Wa=Pa.hasTradeInResult(Ca,Xa);h&&(Ca.drawObj.galaxyForeverResult={hasComponent:!0,displayModelName:h.displayName,
1533discountText1:Granite.I18n.get("Monthly Cost")+":"+currencyComma(h.foreverPrice,Ca.priceCurrency),description1:Granite.I18n.get("Tenure")+":"+h.tenureValue+" "+Granite.I18n.get("month"),dataId:h.consents,dataPrice:null,modelList:h.modelCodeArr,financePlanId:h.plan_id},U.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-0")),Ta.galaxyForeverResultDraw(p),Xa.buyingToolOptCare.hide(),Wa&&Pa.exchangeResultDraw(Ca,Xa),Pa.totalAfterFunction(Ca,Xa))}else if("gift"===C){var ab=B,Ya=k,Za=e,
1534cb=ab.util,ib=ab.drawObj,$a=ib.offer.gift,mb=ab.priceCurrency,kb=h.pviTypeName?h.pviTypeName.toLowerCase():"",gb=h.pviSubtypeName?h.pviSubtypeName.toLowerCase():"",xb=h.categorySubTypeEngName?h.categorySubTypeEngName.toLowerCase():"";$a.item.hasBundle=!0;$a.item.bundleList=[];var Cb=h.thumbUrl,hb="",Mb="",rb="",nb="",Ib="";if(h.sale_price&&h.msrp_price){var bb="",jb="";bb=h.sale_price.formatted_value?h.sale_price.formatted_value:currencyComma(h.sale_price.value,mb);jb=h.msrp_price.formatted_value?
1535h.msrp_price.formatted_value:currencyComma(h.msrp_price.value,mb);var db="";if("nl"===siteCode||"be"===siteCode||"be_fr"===siteCode)db=Granite.I18n.get("From");var sb="";"de"===siteCode&&(sb=Granite.I18n.get("From"));h.sale_price?(0!==parseFloat(h.msrp_price.value)-parseFloat(h.sale_price.value)?(hb=db+sb+jb,nb=h.msrp_price.value,h.saveText&&""===db&&(Mb=h.saveText)):(hb=" ",nb=h.msrp_price.value),rb=Granite.I18n.get(bb),Ib=h.sale_price.value):(hb=" ",nb=h.msrp_price.value,rb=Granite.I18n.get(jb),
1536Ib=h.msrp_price.value)}
1536h.selectIdx&&($a.item.learnMoreCta.giftIdx=h.selectIdx);var Ob={title:h.displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+h.displayName,dataPrice:nb,dataSalePrice:Ib,dataEventType:0,dataModelName:h.modelName,dataDisplayName:h.displayName,dataSkuCode:h.shopSKU,dataModelCode:h.modelCode,dataIndex:h.selectIdx,pviTypeName:kb,pviSubtypeName:gb,categorySubTypeEngName:xb,imgAttr:{classWapper:"image__main responsive-img",srcPc:Cb,alt:h.thumbUrlAlt},price:{original:hb,
1537save:Mb,now:rb}};$a.item.bundleList.push(Ob);Za.productOfferDraw(ib,!0);cb.settingPriceDraw(ab,Ya)}else if("assured"===C){var ob=B,fc=k,cc=e,Hb=ob.util;h&&(ob.drawObj.assuredBuyBackResult={hasComponent:!0,dataSku:h.sku,dataPrice:h.msrp_price.value,dataSalePrice:h.sale_price.value,dataId:h.consents,displayModelName:h.displayModelName,dataModelName:h.dataModelName},U.triggerChange(document.querySelector("#pd-galaxy-assured-1")),cc.assuredBuyBackResultDraw(p),Hb.totalAfterFunction(ob,fc))}else if("newassured"===
1538C){var Rb=B,Pb=k,Eb=e,$b=Rb.util;h&&(Rb.drawObj.newAssuredBuyBackResult={hasComponent:!0,dataModelCode:h.modelCode,dataModelName:h.modelName,dataPrice:h.productPrice,dataDisplayPrice:h.productDisplayPrice,dataDisplayName:h.productDisplayName},Rb.popupReturnObj&&U.triggerChange(Rb.popupReturnObj.get(0)),Eb.newAssuredBuyBackResultDraw(p),$b.totalAfterFunction(Rb,Pb))}};D.prototype.drawTradeInWithPopup=function(h){var C="uk"===siteCode,E=!1;B.sgeSiteInstantChk=["ae","ae_ar"].includes(B.multistoreSiteCd);
1539C&&ca&&l().done(function(T){T&&isNotEmpty(T[0])&&isNotEmpty(T[0].content)&&(A=T[0].content)}).fail(function(T){}).always(function(T){ca=!1});if(h&&h.flag){E=B.tradeInFlag=!0;B.maxTradeInsAllowed=h.maxTradeInsAllowed;if("ae"===B.siteCode||"ae_ar"===B.siteCode||B.isSEBN)B.maxTradeInsAllowed=1;B.minOrderEntryValue=h.minOrderEntryValue}"fr"!==B.siteCode||h.withCeTradeUpPopup||(h={maxDiscount:0,directOutLink:!1});B.compareMaxTradeInWithCart=w.isNotEmpty(h)?h.compareMaxTradeInWithCart:!1;B.disableTradeIn=
1540B.compareMaxTradeInWithCart?h.disableTradeIn:!1;B.util.hasTradeIn(B,k)||(w.settingTradeInDraw(h,B,k,E),w.settingTradeInErrMsgDraw(B,k,E),window.sg.components.ProductDetailKvNew.reInit())};D.prototype.newHybrisDrawTariffOption=function(h,C,E){var T=$.extend({isBroadbandService:!1},E);E=B.view;var R=B.drawObj,z=B.siteCode,fa=[];if(T.isBroadbandService)B.tariffFlag=!0,R.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options Broadband"),description:"",logoList:[],href:"",yesAttr:{text:Granite.I18n.get("YES")},
1541noAttr:{text:Granite.I18n.get("No, Thanks")}},E.tariffOpionDraw(R),window.sg.components.ProductDetailKvNew.reInit();else if(h&&0<h.length){B.tariffFlag=!0;h=$jscomp.makeIterator(h);for(T=h.next();!T.done;T=h.next()){var va=T.value;T=va.imgUrl;va=va.imgAlt;T&&("de"===z&&(-1<T.indexOf("Telekom")?(T="https://images.samsung.com/is/image/samsung/assets/de/tarife/logos/tarrif-sim-telekom_NEU.png",va="Telekom"):-1<T.indexOf("Vodaphone")?(T="https://images.samsung.com/is/image/samsung/assets/de/icons/sim/250821_SIM_Icon_Vodafone.png",
1542va="Vodaphone"):-1<T.indexOf("o2")&&(T="https://images.samsung.com/is/image/samsung/assets/de/icons/sim/250821_SIM_Icon_o2.png",va="o2")),fa.push({src:T,alt:va}))}h=Granite.I18n.get("Choose your preferred tariff from various providers.");if("fr"==z&&C){var ra=0;$.each(C,function(oa,da){for(oa=0;oa<da.tariffPlans.length;oa++)!da.tariffPlans[oa].recommended||0!=ra&&null!=ra&&void 0!=ra||(ra+=da.tariffPlans[oa].discount)});0<ra&&(h=Granite.I18n.get("Choose a network and save up to {0}",'\x3cstrong style\x3d"color: #006bea;"\x3e'+
1543currencyComma(ra,B.priceCurrency)+"\x3c/strong\x3e"))}"de"==z&&B.categoryTypeCode.startsWith("01")&&(h=Granite.I18n.get("Choose the right plan for you."));R.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options"),description:h,logoList:fa,href:"",yesAttr:{text:Granite.I18n.get("YES")},noAttr:{text:Granite.I18n.get("NO")}};"se"!==z&&"no"!==z&&"dk"!==z||B.simpleInfoSIM?(E.tariffOpionDraw(R),window.sg.components.ProductDetailKvNew.reInit()):R.tariffOption.hasComponent=!1}};D.prototype.hybrisDrawTariffOption=
1544function(h){var C=B.view,E=B.drawObj;B.isGPv2AndHyIntg&&h&&h.carriers&&0<h.carriers.length&&(B.tariffFlag=!0,B.hybrisApiData.tarriffOption=h,E.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Option"),description:Granite.I18n.get("Choose your preferred tariff from various providers."),logoList:[{src:null,alt:null}],yesAttr:{text:Granite.I18n.get("YES")},noAttr:{text:Granite.I18n.get("NO")}},"se"!==siteCode&&"no"!==siteCode&&"dk"!==siteCode||B.simpleInfoSIM?(C.tariffOpionDraw(E),window.sg.components.ProductDetailKvNew.reInit()):
1545E.tariffOption.hasComponent=!1)};D.prototype.hybrisDrawGift=function(h){var C=B.view,E=B.drawObj,T=E.offer,R=B.util,z=B.giftdataHybris,fa=null,va=null;if(B.isGPv2AndHyIntg&&h){B.giftFlag=!0;
1545h=R.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-gift-popup",{layerTarget:"freeGiftPopup",giftIdx:0},"");B.giftdataHybris;for(var ra in z)R=z[ra],R.key&&"mainTitle"===R.key&&(fa=R.value),R.key&&"subTitle"===R.key&&(va=R.value);z=[];va&&z.push({text:va});T.gift={title:"giftBundle",giftIndex:0,
1546hasItem:!0,item:{headline:fa,description:{hasDescription:!0,main:z,date:null},learnMoreCta:h}};C.productOfferDraw(E)}};D.prototype.hybrisDrawCare=function(h,C){var E=B.isHybrisSplitPD,T=B.isHybrisSplitPDSamsungCarePlus;if((B.isGPv2AndHyIntg||E&&T)&&h.smcs&&0<h.smcs.length){E="se"===siteCode||"no"===siteCode||"fi"===siteCode||"dk"===siteCode;T="pl"===siteCode;T="uk fr es ch ch_fr ro at cz pt be be_fr nl de ae ae_ar it".split(" ").includes(siteCode)||E||T;var R="se no dk fi uk fr es ch ch_fr at pt cz ro be be_fr nl de ae ae_ar it".split(" ").includes(siteCode),
1547z="pt"===siteCode,fa="uk de fr es pt it nl be be_fr at cz ro pl ch ch_fr se no fi dk".split(" ").includes(siteCode),va="se dk no fi nl be be_fr".split(" ").includes(siteCode),ra=B.samsungCareFlag=!0,oa=B.priceCurrency,da=B.util,na=B.careLearnMoreUrl;E=h.smcs;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,2);var L=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,N=2<$("#categorySubTypeCode").val().length&&"01"===
1548$("#categorySubTypeCode").val().substring(0,2)?!0:!1,b="",r="_self",G="",P="javascript:;",Z={};Z={};var d={},M={},t="";t=!1;b=[""].includes(siteCode);var y="";"ca"==siteCode?y="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/extended-warranty-img.jpg":"ca_fr"==siteCode?y="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/extended-warranty-img-FR.jpg":"it"==siteCode?y="https://images.samsung.com/is/image/samsung/common/bc/images/care/care-image-it.jpg":
1549"ae"==siteCode?y="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/care-image-ae.jpg":"ae_ar"==siteCode&&(y="https://images.samsung.com/is/image/samsung/assets/ae_ar/smartphones/socialimage/care-image-ae.jpg");var I=!1;t=Granite.I18n.get("Add Samsung Care+");C&&(t=Granite.I18n.get("Samsung CarePack"));!L||"cl"!==siteCode&&"pe"!==siteCode&&"co"!==siteCode&&"mx"!==siteCode||(t=Granite.I18n.get("DA_Add Samsung Care+"));if(!N&&("ca"===siteCode||"ca_fr"===siteCode)){var X=
1550$(".hubble-care-popup__image .image__preview.lazy-load.responsive-img"),V=$(".hubble-care-popup__image .image__main.lazy-load.responsive-img"),O=$(".hubble-care-popup__image .image__preview.responsive-img.image--loaded image--hide"),S=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),Q;for(Q in E){N=E[Q];if(N.summary&&"WARRANTY"===N.summary.toUpperCase()){I=!0;break}if(0==I&&N.productShortDescription&&-1<N.productShortDescription.toUpperCase().indexOf("WARRANTY")){I=!0;break}}I&&
1551(t=Granite.I18n.get("VD_Add Samsung Care+"),setTimeout(function(){if("ca"==siteCode||"ca_fr"==siteCode)X.attr("data-desktop-src",y+"?$380_223_PNG$"),X.attr("data-mobile-src",y+"?$680_398_PNG$"),X.attr("data-src",y+"?$380_223_PNG$"),X.attr("src",y+"?$380_223_PNG$"),V.attr("data-desktop-src",y+"?$380_223_PNG$"),V.attr("data-mobile-src",y+"?$680_398_PNG$"),V.attr("data-src",y+"?$380_223_PNG$"),V.attr("src",y+"?$380_223_PNG$"),O.attr("data-desktop-src",y+"?$380_223_PNG$"),O.attr("data-mobile-src",y+"?$680_398_PNG$"),
1552O.attr("data-src",y+"?$380_223_PNG$"),O.attr("src",y+"?$380_223_PNG$"),S.attr("data-desktop-src",y+"?$380_223_PNG$"),S.attr("data-mobile-src",y+"?$680_398_PNG$"),S.attr("data-src",y+"?$380_223_PNG$"),S.attr("src",y+"?$380_223_PNG$")},1200))}else if("it"==siteCode||"ae"==siteCode||"ae_ar"==siteCode)N=$(".hubble-care-popup__image .image__preview.lazy-load.responsive-img"),V=$(".hubble-care-popup__image .image__main.lazy-load.responsive-img"),d=$(".hubble-care-popup__image .image__preview.responsive-img.image--loaded image--hide"),
1553M=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),N.attr("data-desktop-src",y),N.attr("data-mobile-src",y),N.attr("data-src",y),N.attr("src",y),V.attr("data-desktop-src",y),V.attr("data-mobile-src",y),V.attr("data-src",y),V.attr("src",y),d.attr("data-desktop-src",y),d.attr("data-mobile-src",y),d.attr("data-src",y),d.attr("src",y),M.attr("data-desktop-src",y),M.attr("data-mobile-src",y),M.attr("data-src",y),M.attr("src",y);b?"uk"===siteCode?(P="javascript:;",G=Granite.I18n.get("Learn more"),
1554r="_self",Z.layerTarget="hubbleCareinfoPopup"):"es"===siteCode?(P="javascript:void(0);",G=Granite.I18n.get("Know the advantages"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"de"===siteCode&&(P="javascript:void(0);",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):!fa&&na?(G=Granite.I18n.get("Learn more"),P=na,r="_blank"):(siteCode=$("#siteCode").val(),"uk de fr es pt it at cz ro pl".split(" ").includes(siteCode)?(P="https://www.samsung.com/"+siteCode+"/offer/samsung-care-plus/",
1555G=Granite.I18n.get("Learn more"),"es"===siteCode&&(G=Granite.I18n.get("Know the advantages")),r="_blank"):"cn tr ae ae_ar se no dk fi nl be be_fr".split(" ").includes(siteCode)?(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):["au","hk","hk_en","sg","vn"].includes(siteCode)?(P="https://www.samsung.com/"+siteCode+"/offer/samsung-care-plus/",G=Granite.I18n.get("Learn more"),r="_blank"):["ch","ch_fr"].includes(siteCode)?(P="https://www.samsung.com/"+siteCode+
1556"/mobile/samsung-care-plus/",G=Granite.I18n.get("Learn more"),r="_blank"):"za"===siteCode?(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="scLearnMorePopup"):"ca_fr"===siteCode||"ca"===siteCode?I?("ca"===siteCode?P="https://support-ca.samsung.com/secaew/consumer/ca/category/categorymain":"ca_fr"===siteCode&&(P="https://support-ca.samsung.com/secaew/consumer/ca_fr/category/categorymain"),G=Granite.I18n.get("Learn more"),r="_blank"):(P="javascript:;",G=Granite.I18n.get("Learn more"),
1557r="_self",Z.layerTarget="scLearnMorePopup"):"my"===siteCode?"true"===$("#
1557isEppPage").val()&&(P="/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-sc-plus/",G=Granite.I18n.get("Learn more"),r="_blank"):"pe"===siteCode?L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"co"===siteCode?L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"cl"===siteCode?L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),
1558r="_self",Z.layerTarget="hubbleCareinfoPopup"):"mx"===siteCode&&L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"));b=Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever.");I&&(b=Granite.I18n.get("VD_Insurance that protects and cares for your phone wherever, whenever."));C&&(b=Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever. (Samsung CarePack)"));"fr"===siteCode&&(b=Granite.I18n.get("Gold standard insurance direct from Samsung."));
1559if("ch"===siteCode||"ch_fr"===siteCode||"at"===siteCode)b=Granite.I18n.get("Protect your device with our insurance");!L||"cl"!==siteCode&&"pe"!==siteCode&&"co"!==siteCode&&"mx"!==siteCode||(b=Granite.I18n.get("DA_Insurance that protects and cares for your phone wherever, whenever."));"vn"===siteCode&&(b=Granite.I18n.get("Insurance that protects and cares for your phone for VN"));d={text:Granite.I18n.get("YES"),layerTarget:"hubbleCarePopup"};M={text:Granite.I18n.get("NO"),eventType:"care"};Z=da.getAttrCta(G,
1560P,r,"",Z,"");va&&(Z.isOutLink=null,Z.isNotOutLink=null);p.care={hasComponent:ra,title:t,learnMoreCta:Z,description:b,yesAttr:d,noAttr:M,subText:"",rowText:[],itemSet:[],items:[],isSmcType2:T,useOneDepthPrice:R};B.finalCareList=[];for(Q in E)C=E[Q],t=!1,B.isMigrationHybris&&C.paymentCycle&&"MONTHLY"===C.paymentCycle.toUpperCase()&&(t=!0),R={},R="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode?{flags:{is_subscription:t},displayName:C.title,price_info:[{msrp_price:{value:C.price,formatted_value:currencyCommaExcep(C.price,
1561oa),duration_value:C.duration,paymentcycle_value:C.paymentCycle},sale_price:{value:C.promotionPrice,formatted_value:currencyCommaExcep(C.promotionPrice,oa),duration_value:C.duration,paymentcycle_value:C.paymentCycle}}],long_description:C.summary,summary:C.summary}:I?{flags:{is_subscription:t},displayName:C.title,price_info:[{msrp_price:{value:C.price,formatted_value:currencyComma(C.price,oa),duration_value:C.duration,paymentcycle_value:C.paymentCycle},sale_price:{value:C.promotionPrice,formatted_value:currencyComma(C.promotionPrice,
1562oa),duration_value:C.duration,paymentcycle_value:C.paymentCycle}}],long_description:"",isWarranty:I,otherParameters:isNotEmpty(C.otherParameters)?C.otherParameters:""}:{flags:{is_subscription:t},displayName:C.title,price_info:[{msrp_price:{value:C.price,formatted_value:currencyComma(C.price,oa),duration_value:C.duration,paymentcycle_value:C.paymentCycle,wasValue:C.wasPrice,formatted_wasValue:currencyComma(C.wasPrice,oa),freeMonths_value:"undefined"!=typeof C.freeMonths&&null!=C.freeMonths?C.freeMonths:
1563"0"},sale_price:{value:C.promotionPrice,formatted_value:currencyComma(C.promotionPrice,oa),duration_value:C.duration,paymentcycle_value:C.paymentCycle}}],long_description:C.summary,isWarranty:I,summary:C.summary,otherParameters:isNotEmpty(C.otherParameters)?C.otherParameters:""},T&&(da.isNotEmpty(C.otherParameters)||(C.otherParameters={theft:"false"}),C.isTheft="true"===C.otherParameters.theft?!0:!1,"ae"!==siteCode&&"ae_ar"!==siteCode||"SCR"!==C.otherParameters.perks?["ae","ae_ar"].includes(siteCode)||
1564"TFT"!==C.otherParameters.perks||(C.isTheft=!0):C.isTheft=!0,R.otherParameters=C.otherParameters,R.isTheft=C.isTheft,fa=C.yearlySubscription,va="",da.isNotEmpty(C.paymentCycle)&&"MONTHLY"===C.paymentCycle.toUpperCase()?va="mo":da.isNotEmpty(fa)&&Number(fa)&&(va="yr",1!==Number(fa)&&(va=fa+"yrs")),R.cycle=va),B.finalCareList.push(R);B.hybrisCareData=h;B.hybrisCareData.isSmcType2=T?!0:!1;da.settingAfterApiCareDraw(B,k);window.sg.components.ProductDetailKvNew.reInit();z&&(h=g(E),""!==h&&(B.popupReturnObj=
1565$(".option-care li input[data-index\x3d"+(h+1)+"]"),h=H(E[h]),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(h,"care")))}};D.prototype.hybrisDrawAccessory=function(h){var C=B.util;B.addonsFlag=h?!0:!1;C.settingPriceCta(B.hasPriceCta,B,k,B.currentUrl)};D.prototype.tradeInResultSpecialPrice=function(h,C){for(var E=!0,T=C.list,R=-1,z=0,fa=0;fa<T.length;fa++){var va=T[fa];va.specialPrice&&parseFloat(z)<parseFloat(va.specialPrice)&&(z=va.specialPrice,R=fa)}C.specialInstantDiscountYn=
1566"N";z=C.additionalDiscountFlag;for(fa=0;fa<T.length;fa++){var ra=h.priceCurrency;va=T[fa];var oa="",da=va.discountPrice,na=va.discountPrice,L="ae"===siteCode||"ae_ar"===siteCode||"sa"===siteCode||"sa_en"===siteCode,N=h.sgeSiteInstantChk,b=h.instantDiscount;L?(na=da=va.dataCashBack,N&&b&&(na=da=va.discountPrice)):"fr"==siteCode&&(va.spotGuaranteeAmou
1566nt&&(na+=parseFloat(va.spotGuaranteeAmount)),va.abondementAmount&&(na+=parseFloat(va.abondementAmount)));var r="",G="",P=!1,Z="",d=va.specialPrice;z&&
1567"de"!=siteCode&&(d=va.specialPrice&&fa==R);if(E&&d){E=parseInt(va.specialPrice);G=Granite.I18n.get("Special Discount")+" "+currencyComma(E,ra);if("fr"===siteCode)G="+"+currencyComma(parseInt(E),ra)+" "+Granite.I18n.get("de bonus reprise");else if("de"===siteCode)va.priceinfodesc&&(G=va.priceinfodesc);else if("ae"===siteCode||"ae_ar"===siteCode)G="Y"==va.specialInstantDiscountYn?"+"+Granite.I18n.get("Additional Trade-in discount")+" "+currencyComma(E,ra):"+"+Granite.I18n.get("Additional trade-in cashback")+
1568" "+currencyComma(E,ra);N&&(G=b?"":Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(E,ra));na+=E;oa=currencyComma(na,ra);P=!0;E=!1}if(P)if(L){Z=""+Granite.I18n.get("Total cashback amount");oa=""+currencyComma(na,ra);r=Granite.I18n.get("Old device value")+" : "+currencyComma(da,ra);if("ae"===siteCode||"ae_ar"===siteCode)r=Granite.I18n.get("Old device value")+" "+currencyComma(da,ra);N&&b&&(Z=""+Granite.I18n.get("Additional Trade-in discount"),r="")}else"fr"===siteCode?(Z=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),
1569r=currencyComma(da,ra)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),oa=""+currencyComma(na,ra)):"de"===siteCode?Z=""+Granite.I18n.get("Total Discount"):"pk"===siteCode?(Z=""+Granite.I18n.get("Total Discount"),r=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(da,ra)):r=Granite.I18n.get("Regular Exchange Value")+" : "+currencyComma(da,ra);else L?(r="sa"===siteCode||"sa_en"===siteCode?""+Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Regular Exchange Value")+
1570" "+currencyComma(da,ra),N&&(r="",Z=b?""+Granite.I18n.get("Additional Trade-in discount"):""+Granite.I18n.get("Regular Exchange Value"))):"fr"===siteCode?(Z=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),r=currencyComma(da,ra)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),va.spotGuaranteeAmount||va.abondementAmount||(r="")):"de"===siteCode?r="("+Granite.I18n.get("Upfront discount")+")":"pk"===siteCode?(Z=""+Granite.I18n.get("Total Discount"),r=Granite.I18n.get("Regular Exchange Value")+
1571" "+currencyComma(da,ra)):Z=""+Granite.I18n.get("Regular Exchange Value"),oa=""+currencyComma(na,ra);va.discountPriceTextTile=Z;va.discountPriceText=oa;va.specialDiscountText=G;va.discountText1=r;L?(va.dataPrice=0,"ae"!==siteCode&&"ae_ar"!==siteCode||!P||"Y"!=va.specialInstantDiscountYn||(va.dataPrice=parseInt(va.specialPrice),C.specialInstantDiscountYn="Y"),N&&b&&(va.dataPrice=na,C.specialInstantDiscountYn="Y")):va.dataPrice=na}};x.DetailAfterEventClass=D})();
1572(function(){function l(){var D=$("#apiChangeModelCode").val(),h=$("#apiChangeCategorySubSubTypeCode").val(),C=$("#apiChangeCategorySubTypeCode").val(),E=$("#apiChangeCategoryTypeCode").val(),T=$("#apiChangeCategoryGroupCode").val(),R=$("#apiChangeModelName").val(),z=$("#apiChangeShopSKU").val(),fa=$("#apiChangePdpUrl").val(),va=$("#apiChangeFamilyCode").val();D&&$("#modelCode").val(D);h&&$("#categorySubSubTypeCode").val(h);C&&$("#categorySubTypeCode").val(C);E&&$("#categoryTypeCode").val(E);T&&$("#categoryGroupCode").val(T);
1573R&&$("#modelName").val(R);z&&$("#shopSKU").val(z);fa&&$("#pdpUrl").val(fa);va&&$("#familyCode").val(va);p=$(".hdd02-pdp-header");D=p.find(".sg-pdh-product-info");h=p.find("#detail-input-hidden");C=p.find(".sg-pdh-buying-tool");E=C.find(".sg-pdh-buying-options");T=C.find(".sg-pdh-order-summary");R=$("#siteCode").val();z=$("#categoryGroupCode").val().substring(0,2);var ra=$("#apiChangeCategorySubTypeCode").val();fa=ra.substring(0,4);ra=ra.substring(0,6);va="ae"!==R&&"ae_ar"!==R||!["04","08"].includes(z)?
1574!1:!0;var oa="au"===R&&(["0401","0402"].includes(fa)||["08"].includes(z))?!0:!1,da="vn"===R&&["04","08","07"].includes(z)?!0:!1,na="in"===R&&["04","05","07","08"].includes(z)?!0:!1,L="my"===R&&["04","05","06","07","08"].includes(z)?!0:!1,N="Y"===$("#ceTradeUpEnabledYn").val()||("ch"===R||"ch_fr"===R)&&["08"].includes(z),b="sa"!==R&&"sa_en"!==R||!["04","08"].includes(z)?!1:!0,r=$("#tempTitle").val(),G=("ca_fr"===R||"ca"===R)&&"0701"==fa||("ca_fr"===R||"ca"===R)&&"08"==z&&"true"!=$("#isEppPage").val()?
1575!0:!1,P="uk"!==R||"0807"!=fa&&"0808"!=fa&&"0809"!=fa&&"0811"!=fa&&"0701"!=fa?!1:!0,Z="kz_kz"!==R&&"kz_ru"!==R||"08"!=z||"true"==$("#isEppPage").val()?!1:!0;"cz"===R&&["01","04","05","07","08"].includes(z)&&$("#isEppPage").val();"sk"===R&&["01","04","05","07","08"].includes(z)&&$("#isEppPage").val();var d="fr"===R&&["04","08"].includes(z)&&"true"!=$("#isEppPage").val()?!0:!1,M="pl"===R&&(["04"].includes(z)||["08"].includes(z))&&"true"!=$("#isEppPage").val()?!0:!1,t="es"===R&&(["04"].includes(z)||["08"].includes(z))&&
1576"true"!=$("#isEppPage").val()?!0:!1,y="levant"!==R&&"levant_ar"!==R||!["04"].includes(z)&&!["08"].includes(z)||"true"==$("#isEppPage").val()?!1:!0,I="it"===R&&(["0401","0701"].includes(fa)||["08"].includes(z))&&"true"!=$("#isEppPage").val()?!0:!1,X="true"==$("#isEppPage").val()&&"pl"===R&&["08"].includes(z)?!0:!1;ra=P||G||"0401"==fa||"0402"==fa||"0803"==fa||"080101"==ra||"080103"==ra?!0:!1;G="";$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(G=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src"),
1577G=G.substring(0,G.indexOf("?",0)));ca={drawObj:{},apiDomain:$("#storeDomain").val(),apiFlag:$("#shopIntegrationFlag").val(),modelCode:"in"===$("#siteCode").val()?$("#apiChangeShopSKU").val():$("#apiChangeModelCode").val(),siteCode:$("#siteCode").val(),siteCodeWithEpp:"true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val(),shopApiModel:null,commonApiModel:null,afterEvent:null,util:null,view:null,isCart:$("#useStore").val(),oldProductYn:$("#oldProductYn").val(),abnormalcoloryn:1===
1578$("#abnormalColorYN").length?$("#abnormalColorYN").val():"N",pdHrefLang:$("#localLang").val(),countryIsoCode:$("#countryIsoCode").val(),pdMultiLanguageYN:$("#multiLanguageYn").val(),shopSkuCode:$("#apiChangeShopSKU").val(),stockLevelStatus:$("#pdCtaType").val(),stockCustomMessage:"",wtbCtaBtnYn:$("#pdWtbCtaBtnYn").val(),wtbUseYn:$("#apiChangeWtbUseYn").val(),wtbDispFuncUseYN:$("#wtbDispFuncUseYN").val(),isSimplePDP:"S-B"===$("#pdType").val()||"S-F"===$("#pdType").val(),modelName:$("#apiChangeModelName").val(),
1579pdRemoveTagTxt:$("#pdRemoveTagTxt").val(),wtbSrc:$("#wtbSrc").val(),imgUrl:G,wtbSubTypeCode:$("#apiChangeCategorySubTypeCode").val(),pdProductType:$("#pdProductType").val(),tradeInFlag:!1,tradeinSaveValue:"",tradeinText:"",tradeInType:"in"===$("#siteCode").val()&&["04","05","07","08"].includes(z)?"CE":"",promotionSalesPitch:0,upgradeEligible:!1,pdUpgradeUseYn:$("#pdUpgradeUseYn").val(),upgradeFlag:!1,eupData:{},childCheckList:[],pdProductTypeCheckYn:$("#pdProductTypeCheckYn").val(),samsungCareList:[],
1580samsungCareBadgeList:[],samsungCareFlag:!1,samsungCarePackFlag:"in"===$("#siteCode").val()&&["04","05","07","08"].includes(z)?!0:!1,prePurchaseFlag:Z||d||M||X||t||y||I||ra&&"uk ca ca_fr de be be_fr nl cn".split(" ").includes(R)?!0:!1,newAssuredBuyBackFlag:!1,newAssuredBuyBackList:[],newAssuredBuyBackCheck:!1,pdTimeformatFront:$("#pdTimeformatFront").val(),productChildModelObject:{},addOnCategoryList:[],addOnGift:{products:[],expanded:{}},addOnInfoTemp:[],addOnInfoTempCache:{},addOnInfo:[],embedAddon08:"08000000"===
1581$("#apiChangeCategoryGroupCode").val()?!0:!1,isEmbedAddOn:"Hybris-new"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()&&"Hybris-intg"!==$("#shopIntegrationFlag").val()||"08000000"!==$("#apiChangeCategoryGroupCode").val()?!1:!0,embedAddonSelected:[],multiCareYn:$("#multiCareYn").val(),addonsFlag:!1,giftFlag:!1,pdPackageYn:"Y"==$("#pdPackageYn").val(),pdChildModelCnt:0<$("#pdChildModelCnt").val()?$("#pdChildModelCnt").val():0,pdChildModelList:[],comboFlag:!1,setComboPopupData:[],
1582pdBogoUseYn:$("#pdBogoUseYn").val(),bogoModelList:[],bogoFlag:!1,financingEligible:!1,promotionFinancingFlag:!1,emcPromotionIcon:!1,pdSoftBundleUseYn:$("#pdSoftBundleUseYn").val(),tariffFlag:!1,priceCurrency:$("#priceCurrency").val(),promotionImgType:$("#promotionImgType").val(),giftDrawData:{date:null,dec:null},globalComboData:[],pdStageInfo:$("#apiStageInfo").val(),noComboSearchList:[],realComboSearchList:[],pdSearchDomain:$("#searchDomain").val(),addonDate:"",warrantyFlag:!1,careLearnMoreUrl:$("#pdCareLearnMoreUrl").val(),
1583pdSmcType:$("#smcType").val(),reCallSyndi:[],tradeInUrl:$("#pdTradeInUrl").val(),pdUpgradeLearnMoreUrl:$("#pdUpgradeLearnMoreUrl").val(),financeFlag:$("#pdCalculateFinancingYn").val(),financingUrl:$("#financingUrl").val(),warrantyLearnMoreUrl:$("#pdWarrantyLearnMoreUrl").val(),hybrisJsonYn:$("#hybrisApiJson").val()?$("#hybrisApiJson").val():"N",addToCartPostYn:$("#addToCartPostYn").val()?$("#addToCartPostYn").val():"N",disabledClass:"is-disabled",hasComponentClass:"has-component",selectedClass:"is-selected",
1584disabledCtaClass:"cta--disabled",checkingBogoSearchFlag:!1,checkingComboSearchFlag:!1,checkingAddOnSearchFlag:!1,checkingGiftSearchFlag:!1,addonModelCodeList:[],bogoSearchList:[],comboSearchList:[],careAndWarrantySearchList:[],careSearchList:[],addOnSearchList:[],giftSearchList:[],addOnApiList:{},finalCareList:[],finalWarrantyList:[],totalSkuList:{},finishedFirstSyndi:!0,finishedSecondSyndi:!0,finishedAddOn:!0,finishedSearch:!0,cartTradeInQuoteId:"",tradeinDiscountYn:"",hasAddonApiData:!1,learnMoreCtaUrl:$("#pdLearnMoreCtaUrl").val(),
1585proudctPriceInfo:{orignalPrice:"",salePrice:"",batteryInformativeTaxes:"",greenInformativeTaxes:"",batteryInformativeTaxesAreaToShow:[],greenInformativeTaxesAreaToShow:[],batteryTaxShowPriceArea:!1,batteryTaxShowSpecificationArea:!1,greenTaxShowPriceArea:!1,greenTaxShowSpecificationArea:!1,vatFreePrice:"",vatFreePriceFormatted:"",listPrice:"",listPriceFormatted:"",wasPrice:"",orignalPriceFormatted:"",salePriceFormatted:"",wasPriceFormatted:"",rowCodeformattedPriceSave:"",usEppPrice:"",salesPitch:"",
1586frequentPrice:"",frequentPriceFormatted:"",leaseInfo:{monthly:"",month:"",upfront:""},monthlyPriceInfo:{monthlyPrice:"",tenureVal:"",interest:""},productCartCount:1,netavailable:1,smbMinQty:1,smbMaxQty:999},totalPrice:{original:"",sale:"",saved:""},currentUrl:"",paymentMethods:{},installmentGift:{},hasPriceCta:!1,accessoryDisabled:!1,proudctEcomFlag:!1,optionId:"",familyCode:$("#familyCode").val(),detailNodePath:$("#detailNodePath").val(),currentpagenav:$("#current-page-nav").val(),addItem:[],addChildItem:[],
1587openPromoTaxParam:"",tradeInSelectPrice:0,syndiProductData:"",checkedComboArea:"",checkedGiftArea:"",globalServiceInfo:[],tradeInSelectCnt:0,smcSelectCnt:0,smcSelectPrice:0,cartPinCode:"",pdUpgrade:"",checkOutLink:$("#checkOutUrl").val(),useNewAddToCartApi:"Y"===$("#useNewAddToCartApi").val()?!0:!1,cartUrl:$("#cartUrl").val(),pdAppId:"",isPreqa:$("#
1587isPreqa").val(),emiUrl:$("#emiUrl").val(),accessToken:"",pdDisplayYn:$("#pdDisplayYn").val(),returnPolicyText:$("#returnPolicy").val(),warrantyText:$("#warranty").val(),
1588isLive:$("#isLive").val(),samsungCareSubText:"",financeplusUrl:$("#financeplusUrl").val(),popupReturnObj:null,tariffPlanSelectedClass:"this-checked",isNotGpv2:$("#shopIntegrationFlag").val()?0>$("#shopIntegrationFlag").val().indexOf("GPv2"):!0,isGpv2:$("#shopIntegrationFlag").val()?-1<$("#shopIntegrationFlag").val().indexOf("GPv2"):!0,isHyIntg:-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg"),isGPv2AndHyIntg:-1<$("#shopIntegrationFlag").val().indexOf("GPv2")||-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg")||
1589-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new"),isHybrisSplitPD:"Y"===$("#splitPdYn").val(),isHybrisSplitPDTradeIn:"Y"===$("#splitPdTradeInYn").val(),isHybrisSplitPDSamsungCarePlus:"Y"===$("#splitPdSamsungCarePlusYn").val(),isHybrisSplitPDLease:"Y"===$("#splitPdLeaseYn").val(),isHybrisSplitPDUpgrade:"Y"===$("#splitPdUpgradeYn").val(),isHybrisSplitPDTariff:"Y"===$("#splitPdTariffYn").val(),splitPDTradeInSpecial:"",hybrisCareData:null,foreverFinanceInfo:{foreverFlag:!1,displayName:null,assuredBuyBack:null,
1590downPayment:null,tenureValue:null,productPrice:null,exchangeDiscount:null,foreverPrice:null,carePrice:null,tradeinCheckFlag:!1,tradeinDiscountYn:!1,tradeinprice:null},exchangeApiData:{exchangeFlag:!1},hybrisApiData:{tarriffOption:null,shopAPI:null},syndiApiData:{products:{},expanded:{}},modelCodeList:$("#modelCodeList").val(),isClicked:!1,isOptClicked:!1,emiCalculatorUrl:"",focusId:"",commonCode:$("#commonCode").val(),voucherdata:{},voucherdataHybris:[],giftdataHybris:[],hasVoucher:!1,hasGift:!1,
1591vdcombodataHybris:[],hasGiftPage:!1,relatedProductsObj:{},hasPlanIDAndFreeGiftPromotion:!1,hasTradeInFreeGiftPromotion:!1,giftSelectionSkipPlanIdList:[],hasStackbleTradeInFreeGiftPromotion:!1,useAddonV2:$("#apiChangeCategoryTypeCode").val().startsWith("01"),hasAddOns:!1,hasBundle:!1,getOptoinPrice:!1,freeGiftOos:!1,pageTrackPd:$("#pageTrackPd").val(),displayName:$("#apiChangeDisplayName").val(),hasEbtButtonUse:"Y"===$("#ebtButtonUse").val(),hasReserveInStore:!1,buyNowUrl:"",buyNowUrlYn:"Y"===$("#buyNowUrlYn").val(),
1592currentPdpUrl:$("#currentPdpUrl").val(),pvitype:$("#pvitype").val(),pvisubtype:$("#pvisubtype").val(),pimsubtype:$("#pimsubtype").val(),parentPath:$("#parentPath").val(),pfAllUrl:$("#pfAllUrl").val(),deliveryYN:"Y"===$("#deliveryYN").val(),isBuyingoptionApi:!1,categoryTypeCode:$("#apiChangeCategoryTypeCode").val(),multistoreSiteCd:"",assuredSku:"",apiChangePdJcrTitle:$("#apiChangePdJcrTitle").val(),apiChangeStockStatus:"",hasBespokeCta:"Y"===$("#bespokeCtaUse").val(),setPersonalizeTv:!1,hasPersonalizeTv:"04010000"===
1593$("#categoryTypeCode").val()||"04050000"===$("#categoryTypeCode").val()||"04020000"===$("#categoryTypeCode").val(),pmtURL:"",pmtModelList:[],useStockAlert:"hk"===R||"hk_en"===R||"br"===R,skuId:"",isMigrationHybris:-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new"),gpvStoreDomain:$("#gpvStoreDomain")?$("#gpvStoreDomain").val():"",clickDom:"",configuratorUrl:$("#navConfiguratorUrl").val(),ctaLocalText:$("#navCtaLocalText").val(),ctaEngText:$("#navCtaEngText").val(),configuratorUseYn:$("#navConfiguratorUseYn").val(),
1594aplautYn:$("#aplautYn").val(),aplautVerTwoYn:"ru"===R||"kz_ru"===R||"kz_kz"===R,isMiniCart:("uk"===R||"au"===R)&&("page-standard-pd"===r||"page-buying-pd"===r),clickTarget:"",btnClickFlagAddCartContinue:!0,giftCard:{isGiftCard:!1,inputAmount:0,amountValid:!1,emailValid:!1,personalizedMessage:"",email:"",firstName:"",lastName:"",minPrice:0,minPriceFormatted:"",maxPrice:0,maxPriceFormatted:"",priceIncrement:0,priceIncrementFormatted:"",selectedPrice:0,cartGiftCardCode:""},deliveryPickup:{deliverySiteCode:["my",
1595"ph","cn"],isDeliveryPickup:!1},deliveryMessage:"",useDeliveryMessage:"jp"===R,shippingOrBack:"",useShippingOrBack:!0,isRecommendation:!1,useRecommendation:"Hybris-intg"===$("#shopIntegrationFlag").val()||"Hybris"===$("#shopIntegrationFlag").val()||"Hybris-new"===$("#shopIntegrationFlag").val()||"GPv2"===$("#shopIntegrationFlag").val()||"3rd"===$("#shopIntegrationFlag").val(),notUseRecommendation:["ie","ru","latin","uy","il"],notEppUseRecommendation:"il ie be be_fr nl gr ru cn bg ar br py bg".split(" "),
1596productType:$("#productType").val(),checkValid:!0,useWarrantyVd:("04"==z||"08"==z)&&"de"===R||"01"!=z&&("fr"===R||"es"===R)||("04"==z||"08"==z)&&("it"===R||"sg"===R||"cz"===R||"sk"===R||"ch"===R||"ch_fr"===R||"lv"===R||"lt"===R||"ee"===R||"ca"===R||"ca_fr"===R||"pl"===R||"at"===R||"si"===R||"hr"===R)||["01"].includes(z)&&("si"===R||"hr"===R)||["07"].includes(z)&&"at"===R||"mx"===R||"cn"===R||(["0401","0402"].includes(fa)||["08"].includes(z))&&"ph"===R||["0801","0803","0805","0401"].includes(fa)&&
1597"id"===R||(["0401","0402","0404","0501"].includes(fa)||"08"==z)&&"nz"===R||["01","04","05","07","08"].includes(z)&&"n_africa"===R||va||oa||b||da||na||L||("08"==z||"01"==z)&&("levant"===R||"levant_ar"===R),isOldHybrisWishlist:"Y"===h.find("#isOldHybrisWishlist").val(),isBezel:!1,is2022Product:!1,sellingWithBazel:!1,bezelImageClass:"",noneTypeList:[],modernTypeList:[],beveledTypeList:[],freestyleList:[],useBezelOptionDraw:!1,bezelDummyCode:!0,isBezelClicked:!1,isPossibleBuy:!1,bezelColorArray:[],bezelModelCodeList:"",
1598bezelModelPatternCodeList:"",bezelModelCodeArrayList:[],bezelModelCodeArray:[],bezelColorIndex:0,selectedBezelColor:{},selectedBezelTotalPrice:{original:"",sale:"",saved:""},cartBezelCode:"",checkedIndex:-1,isMultiTradeIn:"Y"===h.find("#isMultiTradeIn").val(),isOldHybrisCheckService:"Hybris-intg"===$("#shopIntegrationFlag").val()||"Hybris"===$("#shopIntegrationFlag").val(),backOrderMessage:"",stockLevelStatusDisplay:"",add
1598onGiftBundleRelatedData:[],addonBundleRelatedData:[],bundleCnt:0,vdAddonInitPriceHtml:"",
1599savingInformation:"",extraRewardsSites:"Y"===$("#isExposeExtraRewardsSites").val()?!0:!1,extraRewardsDate:{kz_kz:"20260201-20260228",kz_ru:"20260201-20260228",pt:"20251006-20251019",vn:"20251006-20251012",za:"20250929-20251019"},blockEddDisplay:"",blockPickupDisplay:"",addonStepBuying04:2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,addonStepBuying0701:4<$("#categorySubTypeCode").val().length&&"0701"===$("#categorySubTypeCode").val().substring(0,
16004)?!0:!1,isOutOfStock:!1,taxPriceDisplay:"",storeText:"",savingValue:"",shippingMessage:"",vatEligible:"",isNewElementLowestWasPrice:"pl"===$("#siteCode").val()||"si"===$("#siteCode").val()||"hr"===$("#siteCode").val()||"gr"===$("#siteCode").val()||"fi"===$("#siteCode").val()||"it"===$("#siteCode").val()||"se"===$("#siteCode").val()||"no"===$("#siteCode").val()||"dk"===$("#siteCode").val()||"fr"===$("#siteCode").val()||"at"===$("#siteCode").val()||"de"===$("#siteCode").val()||"lv"===$("#siteCode").val()||
1601"lt"===$("#siteCode").val()||"ee"===$("#siteCode").val(),isNewElementLowestWasPriceSetting:!1,isNewElementLowestWasPriceHuType:"hu"===$("#siteCode").val(),isNewElementLowestWasPriceSettingHuType:!1,isLowestInstallmentAmount:"id"===$("#siteCode").val()||"ee"===$("#siteCode").val()||"lv"===$("#siteCode").val()||"lt"===$("#siteCode").val()||"pl"===$("#siteCode").val()||"pe"===$("#siteCode").val()||"cl"===$("#siteCode").val()||"ro"===$("#siteCode").val()||"bg"===$("#siteCode").val()||"mx"===$("#siteCode").val()||
1602"co"===$("#siteCode").val()||"sk"===$("#siteCode").val()||"cz"===$("#siteCode").val()||"gr"===$("#siteCode").val()||"in"===$("#siteCode").val(),isLowestInstallmentInterest:"ee"===$("#siteCode").val()||"lv"===$("#siteCode").val()||"lt"===$("#siteCode").val()||"pl"===$("#siteCode").val(),hasFrequentPrice:!1,isSENA:0<=["dk","fi","no","se"].indexOf(R),isSECZ:0<=["sk","cz"].indexOf(R),isSEBN:0<=["nl","be","be_fr"].indexOf(R),calculateInstallmentPeriodicValue:0,calculateInstallmentPeriod:0,isMonthlySENA:"se"===
1603$("#siteCode").val()||"fi"===$("#siteCode").val()||"no"===$("#siteCode").val(),walkoutQty:0,homeDeliveryQty:0,isStorePopup:!1,ceTradeUpPopup:{isEnabled:N,categoryGroup:z,productCategoryMainType:{"0401":"tv","0402":"tv","0801":"wm","0803":"rf","0807":"vc","0805":"ac","0701":"monitor"}[fa],productCategoryGroup:{"03":"pc","04":"vd","05":"sb","07":"mon","08":"da"}[z]},isTradeUp:!1,showEmbedAddon:!1,vdRelatedProducts:{},newEmbedVDCountry:"Hybris-new"===$("#shopIntegrationFlag").val()||"Hybris"===$("#shopIntegrationFlag").val()||
1604"Hybris-intg"===$("#shopIntegrationFlag").val(),hasRentalInstallment:!1,useHotDealBadge:"true"===$("#isEppPage").val()&&"pl"===$("#siteCode").val()||"ch"===$("#siteCode").val()||"ch_fr"===$("#siteCode").val(),prePurchaseMainCateCode:{"0401":"tv","0402":"tv","0801":"wm","0803":"rf","0701":"monitor"}[fa],rewards:{config:{allowedSites:["au","de","fr","it","mx"],useNumberFormatterByLocale:["de"],rewardsMemeberCheckSite:["mx"]},pageContext:{siteCode:$("#siteCode").val(),searchDomain:$("#searchDomain").val(),
1605apiStageInfo:$("#apiStageInfo").val(),channel:"true"!==$("#isEppPage").val()?"ESTORE":void 0,isEpp:"true"===$("#isEppPage").val(),tierName:window.localStorage.getItem("TierName"),tierCode:window.localStorage.getItem("TierCode"),isLogin:commonLoginCheck(),locale:$("#localLang").val()},context:null,calculator:null}};K={componentWrapper:p,buyingTool:C,buyingToolGlallery:p.find(".sg-pdh-gallery-section"),buyingToolInfo:D,buyingToolInfoTitle:D.find(".pd-info__title"),buyingToolInfoSku:D.find(".pd-info__sku"),
1606buyingToolInfoWishlist:D.find(".pd-info__wishlist"),buyingToolInfoRating:D.find(".pd-info__rating"),buyingToolInfoUsp:D.find(".pd-info__usp-list"),buyingToolOpt:E,buyingToolOptBundle:E.find(".pd-select-option.bundle-group"),buyingToolOptBezelOption:E.find(".pd-select-option.option-bezelcolor"),buyingToolOptTradeIn:E.find(".pd-select-option.trade-in"),buyingToolOptTradeInErrMsg:E.find("#tradeInErrMsg"),buyingToolOptTradeInResult:E.find(".option-result.result-trade-in"),buyingToolOptCheckDealerStock:E.find(".pd-select-option.pd-select-option--check-dealer-stock"),
1607buyingToolOptGroup:E.find(".pd-select-option.option-group"),buyingToolOptDevice:E.find(".pd-select-option.option-device"),buyingToolOptColor:E.find(".pd-select-option.option-color"),buyingToolOptCarrier:E.find(".pd-select-option.option-carrier"),buyingToolOptMemory:E.find(".pd-select-option.option-device-memory"),buyingToolOptSize:E.find(".pd-select-option.option-size"),buyingToolOptCapacity:E.find(".pd-select-option.option-capacity"),buyingToolOptContract:E.find(".pd-select-option.option-contract"),
1608buyingToolOptStorageMemory:E.find(".pd-select-option.option-storage-memory"),buyingToolOptOthers:E.find(".pd-select-option.option-others"),buyingToolOptBetween:E.find(".pd-select-option.option-between"),buyingToolOptDelivery:E.find(".pd-select-option.pd-select-option--delivery-detail"),buyingToolOptDeliveryResult:E.find(".option-result.result-delivery"),buyingToolOptShippingOrBack:E.find(".pd-select-option__eta-text.js-shippingOrBack"),buyingToolOptDeliveryMessage:E.find(".pd-select-option__eta-text.js-deliveryMessage"),
1609buyingToolOptDeliveryPickupStore:E.find(".pd-select-option__extra-benefit"),buyingToolOptTariffPlan:E.find(".pd-select-option.option-tariff-plan"),buyingToolOptTariff:E.find(".pd-select-option.option-tariff"),buyingToolOptTariffResult:E.find(".option-result.result-tariff-option"),buyingToolOptOffer:"Y"===$("#pdPackageYn").val()?E.find(".pd-select-option.pd-select-option--type-offer-combo"):E.find(".pd-select-option.option-offer"),buyingToolOptOfferText:"Y"===$("#pdPackageYn").val()?E.find(".pd-select-option.pd-select-option--type-offer-text.pd-select-option--type-offer-text-combo"):
1610E.find(".pd-select-option.pd-select-option--type-offer-text"),buyingToolOptPrePurchase:E.find(".pd-select-option.pre-purchase-check"),buyingToolOptOfferFinance:E.find(".pd-select-option.option-offer-finance"),buyingToolOptUpgrade:E.find(".pd-select-option.option-upgrade"),buyingToolOptUpgradeResult:E.find(".option-result.result-upgrade"),buyingToolOptGalaxyForever:E.find(".pd-select-option.option-galaxy-forever"),buyingToolOptGalaxyForeverResult:E.find(".option-result.result-galaxy-forever"),buyingToolOptAssuredBuyBack:E.find(".pd-select-option.option-assured-buy-back"),
1611buyingToolOptAssuredBuyBackResult:E.find(".option-result-dev.result-option-assured-buy-back"),buyingToolOptNewAssuredBuyBack:E.find(".pd-select-option.option-new-assured-buy-back"),buyingToolOptNewAssuredBuyBackResult:E.find(".option-result-dev.result-option-new-assured-buy-back"),buyingToolOptWarranty:E.find(".pd-select-option.option-warranty"),buyingToolOptWarrantyResult:E.find(".option-result.result-warranty"),buyingToolOptWarrantyVd:E.find(".pd-select-option.option-warranty-vd"),buyingToolOptWarrantyVdResult:E.find(".option-result.option-result--extended-warranty-option"),
1612buyingToolOptCare:E.find(".pd-select-option.option-care"),buyingToolOptCareResult:E.find(".option-result-dev.result-care"),buyingToolOptEmbedAddon:E.find(".pd-select-option.option-embed-addon"),buyingToolOptSMBQuantity:E.find(".pd-select-option.pd-select-option--quantity"),buyingToolPriceBar:T,buyingToolCalculate:E.find(".pd-buying-tool__emi-calculator"),buyingToolCalculateDivider:E.find(".option-divider.emi-links"),buyingToolLinks:E.find(".pd-buying-tool__links")};ca.stockLevelStatus&&(ca.stockLevelStatus=
1613ca.stockLevelStatus.toUpperCase());"true"===$("#isEppPage").val()&&("undefined"!=typeof eppOmniPricingUseYn&&"N"===eppOmniPricingUseYn&&(ca.isNewElementLowestWasPrice=!1),ca.isSENA&&(ca.isNewElementLowestWasPrice=!0),"true"===window.sg.epp.common.quantityUse?$(".pd-select-option--quantity").css("display",""):$(".pd-select-option--quantity").remove());D=ca;h=new k.BuyingToolOpView(K,D);C=new k.BuyingToolOpUtile(K);D.view=h;D.util=C;D.shopApiModel=D.isMigrationHybris?new k.BuyingToolOpAjaxNewbris:"GPv2"===
1614D.apiFlag?new k.BuyingToolOpAjaxGPv2:new k.BuyingToolOpAjaxHybris;D.commonApiModel=new k.BuyingToolOpAjaxCommon;D.pdRemoveTagTxt=C.escapeHtml(D.pdRemoveTagTxt);C=h.productModel();D.drawObj=C;C=new k.DetailAfterEventClass(D,K);D.afterEvent=C;k.DetailAfterEvent=C;k.detailSelectorObj=K;k.detailSharedObj=D;
1614"true"===$("#isEppPage").val()&&(window.sg.components.dynamic&&window.sg.components.dynamic.bridgePageCommonHybris&&window.sg.components.dynamic.bridgePageCommonHybris.setSharedObj(D),window.sg.epp&&
1615window.sg.epp.common&&window.sg.epp.common.isPosStore&&h.eanCodeDraw());h=k;C=h.RewardsCalculator;D.rewards.context=new h.RewardsPolicyContext({config:D.rewards.config,pageContext:D.rewards.pageContext});D.rewards.calculator=new C;D=ca;h=K;C=D.util;T=D.pdStageInfo;R=D.pdDisplayYn;E=D.parentPath;-1<E.indexOf("/content/samsung")&&(E=E.split("/content/samsung")[1]);"admin"!==T&&"N"===R&&(T=!1,"true"===$("#isEppPage").val()&&(R=location.pathname.match(/[0-9]{13}/g),null!=R&&"undefined"!=typeof R&&""!=
1616$.trim(R)&&(T=!0)),T||(T="/",-1<location.href.indexOf(".html")&&(T=".html"),E&&(location.href=E+T)));window.location.search&&-1<window.location.search.indexOf("accesstoken")&&(D.accessToken=C.getQuerystring("accesstoken"),D.commonApiModel.externalAjax(D,h));window.location.search&&-1<window.location.search.indexOf("appId")&&(D.pdAppId=C.getQuerystring("appId"));window.location.search&&-1<window.location.search.indexOf("upgrade")&&(D.pdUpgrade=C.getQuerystring("upgrade"));window.location.search&&-1<
1617window.location.search.indexOf("exchangeid")&&-1<window.location.search.indexOf("open_promo_tax")&&(D.openPromoTaxParam=C.getQuerystring("open_promo_tax"));D.apiChangePdJcrTitle&&(document.title=D.apiChangePdJcrTitle);C.initGlobalVal(D,h);g(D,h);C.validateQuantity("1",D,h,!0);D=ca;h=K;C=D.view;E=D.displayName;T=D.siteCode;R=D.modelCode;z=window.location.href.replace("/buy","");"in"===T&&-1<R.indexOf("SM-A920F")&&(z="https://www.samsung.com/in/microsite/galaxy-a9/");C.anchorDraw(E);D.currentUrl=z;
1618C=D.siteCode;E=D.isCart;T=D.oldProductYn;R=D.abnormalcoloryn;z=D.shopApiModel;fa=D.modelCode;va=D.util;D.syndiProductData="";"in"===C&&-1<fa.indexOf("SM-A920F")&&(D.currentUrl="https://www.samsung.com/in/microsite/galaxy-a9/");D.isNotGpv2?z.productAjax(D,h):"Y"===E&&"Y"!==T&&"Y"!==R?z.productAjax(D,h):(va.totalAfterFunction(D,h),D.util.clickEventListener(D,h),D.commonApiModel.settingWishList(D,h),va.gpHybrisGlobalEndPoint(D,h));H(ca,K)}function g(D,h){h=$(".usp-text");for(var C=0;C<h.length;C++){var E=
1619h.eq(C).text();E&&-1<E.indexOf("|_|")&&(E=E.trim().replace(/\|_\|([^\|_\|]*)\|_\|/g,function(T,R){return currencyComma(parseFloat(R),D.priceCurrency)}),h.eq(C).text(E))}}function H(D,h){D.optionId="";var C={sharedObj:D,selectorObj:h};h.buyingToolOptBundle.on("click",".option-input",C,function(T){var R=$(this),z=T.data.sharedObj,fa=T.data.selectorObj,va=z.detailNodePath;-1<window.location.href.indexOf("author.samsung.com")&&-1==va.indexOf("/content/samsung")&&(va="/content/samsung"+va);var ra=z.siteCode,
1620oa=modelCodeToSelector(R.data("modelcode"));T=R.data("familycode");var da=z.isClicked,na=R.closest(".pd-select-option").attr("id");z.isBuyingoptionApi=R.hasClass("buyingoption-api");z.focusId=na;if(da||R.hasClass("checked"))return!1;da="/";-1<location.href.indexOf(".html")&&(da=".html");if(oa){na="";if("true"===$("#isEppPage").val()){var L=location.pathname.match(/[0-9]{13}/g);null!=L&&"undefined"!=typeof L&&""!=$.trim(L)&&(na=".offerid-"+L)}T=va+".pd-g-product-detail-header-ux2."+oa+"."+z.siteCode+
1621"."+T+na+da;z.isClicked=!0;z.isOptClicked=!0;setTimeout(function(){z.isClicked=!1},1500);da=z.disabledClass;na=fa.buyingToolOptWarrantyVdResult;var N=function(r){var G=$("\x3cdiv\x3e\x3c/div\x3e").append(r);r=G.find(".sg-pdh-product-info");var P=G.find(".sg-pdh-gallery-section"),Z=G.find(".sg-pdh-buying-tool"),d=G.find("#sg-pdh-dynamic-template-assembly"),M=G.find("#detail-input-hidden"),t=G.find("#betterTogether"),y=G.find("section.pd-banner"),I=G.find("#pdd16-step-buying");G=G.find("#front-api-rawcode-component");
1622$("#detailNodePath").val(va);p.find(".sg-pdh-product-info").replaceWith(r);p.find(".sg-pdh-gallery-section").replaceWith(P);p.find(".sg-pdh-buying-tool").replaceWith(Z);p.find("#sg-pdh-dynamic-template-assembly").replaceWith(d);p.find("#detail-input-hidden").replaceWith(M);p.find("#betterTogether").replaceWith(t);p.find("section.pd-banner").replaceWith(y);p.find("#pdd16-step-buying").replaceWith(I);p.find("#front-api-rawcode-component").replaceWith(G);"nl"===ra&&($("#rentalInstallmentFinancing").hide(),
1623$("#rentalInstallmentFinancingTable").html(""));window.sg.components.ProductDetailKvNew.reInit();$("#"+z.focusId).find('.option-input[checked\x3d"checked"]').focus();r=$("#currentPdpUrl").val();P=-1<location.href.indexOf("/buy");r&&(-1<location.href.indexOf(".html")?("/"===r.substring(r.length-1)&&(r=r.substring(0,r.length-1)),r=P&&0>r.indexOf("/buy")?"/content/samsung"+r+"/buy.html":"/content/samsung"+r+".html"):P&&0>r.indexOf("/buy")&&(r="/"===r.substring(r.length-1)?r+"buy/":r+"/buy/"),"true"===
1624$("#isEppPage").val()&&(P=$("#currentPdpUrl").val(),Z="buy",-1<location.href.indexOf("/pd.")&&(Z="pd"),-1<P.
1624indexOf("/pd.")?r=$("#currentPdpUrl").val().replace("/pd.","/"+Z+"."):-1<P.indexOf("/feature.")?r=$("#currentPdpUrl").val().replace("/feature.","/"+Z+"."):-1<P.indexOf("/buy.")&&(r=$("#currentPdpUrl").val().replace("/buy.","/"+Z+".")),P=r.match(/[0-9]{13}/g),""===$.trim(P)&&(P=location.pathname.match(/[0-9]{13}/g),null!=P&&"undefined"!=typeof P&&""!=$.trim(P)&&(r=r.replace(oa,oa+"."+P))),-1<
1625location.href.indexOf(".html")&&("/"===r.substring(r.length-1)&&(r=r.substring(0,r.length-1)),-1==r.indexOf("/content/samsung")&&(r="/content/samsung"+r),r+=".html")),history.pushState(null,null,r));0<$(".pd-g-product-promotion-bar").length&&e();l();window.sg.components.pdBanner.reInit();r="Y"===$("#typeux2025").val()?".pd-g-anchor-navigation-ux25":".pd-g-anchor-navigation-ux2";P="true"===$("#isEppPage").val()?".ep-cm-g-breadcrumb":".nv-g-breadcrumb";z.isBuyingoptionApi||w(u(".pd-g-feature-benefit-ux2",
1626z,fa),".pd-g-feature-benefit-ux2",z,fa);U(u(".pd-g-product-detail-offer-banner",z,fa),".pd-g-product-detail-offer-banner",z,fa);x(u(".pd-g-product-specs-ux2",z,fa),".pd-g-product-specs-ux2",z,fa);W(u(".pd-g-product-review-highlight",z,fa),".pd-g-product-review-highlight",z,fa);F(u(".pd-g-product-recently-viewed-ux2",z,fa),".pd-g-product-recently-viewed-ux2",z,fa);n(u(".pd-g-product-support-ux2",z,fa),".pd-g-product-support-ux2",z,fa);v(u(P,z,fa),P,z,fa);aa(u(".pd-g-manufacturer-info-popup",z,fa),
1627".pd-g-manufacturer-info-popup",z,fa);B(u(r,z,fa),r,z,fa);window.sg.components.SelloutOption.reInit();window.sg.components.dynamic.Dimension.init();window.sg.components.PDheaderGalleryNew.reInit();A.gallery.init();window.sg.components.ProductDetailKvNew.scrollGo(document.querySelector("#"+z.focusId));window.sg.components.stepbuying.init()},b=function(r){$.ajax({type:"GET",url:r,dataType:"html",success:N,complete:function(){z.isClicked=!1}})};na.hasClass(z.hasComponentClass)&&!na.hasClass(da)?(da=
1628Granite.I18n.get("VD_Extended Warranty Popup_Change Option"),$(".confirm-popup-v2 .confirm-popup-v2__cta-wrap .cta.cta--contained").attr("data-event-type","change-option"),$(".confirm-popup-v2 .confirm-popup-v2__cta-wrap .cta.cta--contained").attr("data-nodeurl",T),confirmPopupV2(da,"change option","",R),$(".confirm-popup-v2").on("click",'.cta[data-event-type\x3d"change-option"]',C,function(r){r=$(this).data("nodeurl");b(r)})):b(T)}});h.buyingToolOptBundle.on("click",".bezel-option-input",C,function(T){var R=
1629$(this),z=T.data.sharedObj,fa=T.data.selectorObj;T=z.detailNodePath;-1<window.location.href.indexOf("author.samsung.com")&&-1==T.indexOf("/content/samsung")&&(T="/content/samsung"+T);var va=z.modelCode,ra=R.data("bezelmodelcode");R.data("bezelmodelpatterncode");var oa=R.data("familycode"),da=z.isBezelClicked,na=R.closest(".pd-select-option").attr("id"),L=ra===va,N="";z.pmtURL="/"+z.siteCode+"/tvs/personalize-my-tv/?sku\x3d"+va+"\x26type\x3dapps";z.pmtModelList=[];L||"dummyCode"==ra?(z.cartBezelCode=
1630"",z.bezelDummyCode=!0):(z.bezelDummyCode=!1,z.cartBezelCode=ra,z.pmtModelList.push(ra));z.soundbarCategoryData&&0<Object.keys(z.soundbarCategoryData).length&&z.embedAddonSelected.forEach(function(b,r){z.pmtModelList.push(b.modelCode)});if(0<$("#personalizeMyTv").length){if(!L||L&&0<z.pmtModelList.length)N+="\x26option\x3d";z.pmtModelList.forEach(function(b){N+=b+","});$("#personalizeMyTv .cta").attr("href",z.pmtURL+N.slice(0,-1))}z.isBuyingoptionApi=R.hasClass("buyingoption-api");z.focusId=na;for(na=
16310;na<z.bezelColorArray.length;na++)L=R.attr("id"),z.bezelColorArray[na].id==L&&(z.bezelColorIndex=na);z.selectedBezelColor=z.bezelModelCodeArray[z.bezelColorIndex];z.isBezel&&(z.util.settingPriceDraw(z,fa),z.isPossibleBuy?z.util.settingPriceCta(z.hasPriceCta,z,fa,z.currentUrl):!z.isPossibleBuy&&z.sellingWithBazel&&z.util.settingPriceCta(z.hasPriceCta,z,fa,z.currentUrl));if(da||R.hasClass("checked"))return!1;R="/";-1<location.href.indexOf(".html")&&(R=".html");va&&(fa="",fa=-1<ra.indexOf("/")?ra.replace("/",
1632"_"):ra,da="","true"===$("#isEppPage").val()&&(na=location.pathname.match(/[0-9]{13}/g),null!=na&&"undefined"!=typeof na&&""!=$.trim(na)&&(da=".offerid-"+na)),fa=ra?T+".pd-g-product-detail-header-ux2."+va+"."+z.siteCode+"."+oa+"."+fa+da+R:T+".pd-g-product-detail-header-ux2."+va+"."+z.siteCode+"."+oa+da+R,z.isBezelClicked=!0,setTimeout(function(){z.isBezelClicked=!1},1500),$.ajax({type:"GET",url:fa,dataType:"html",success:function(b){b=$("\x3cdiv\x3e\x3c/div\x3e").append(b).find(".sg-pdh-gallery-section");
1633p.find(".sg-pdh-gallery-section").replaceWith(b);window.sg.components.ProductDetailKvNew.reInit();window.sg.components.PDheaderGalleryNew.reInit();A.gallery.init();window.sg.common.lazyLoad.reInit()},complete:function(){z.isBezelClicked=!1}}));p.find(".pd-select-option__info-link").click(function(){var b=$(this).data("target-popup"),r="";1<p.find(".pd-select-option__info-link").length?"mordernType"===b?r=document.querySelectorAll(".pd-select-option__info-link")[0]:"beveledType"===b&&(r=document.querySelectorAll(".pd-select-option__info-link")[1]):
1634r=document.querySelectorAll(".pd-select-option__info-link")[0];A.openBezelPopup(r)})});if("Y"==D.aplautYn){var E=D.modelCode.replace("/","_");D.aplautVerTwoYn?(aplaut.createWidget({container_id:"ap-reviews-container",type:"reviews",context_id:E}),aplaut.createWidget({container_id:"ap-inlineInformer-container",type:"inlineInformer",context_id:E,params:{scrollTarget:"ap-reviews-container"}}),aplaut.createWidget({container_id:"ap-questionsAnswers-container",type:"questionsAnswers",context_id:E})):ShoppilotAPI.then(function(T){var R=
1635T.require("product_widget");T=T.require("multi_widget");
1635var z=new R({name:"inline-rating",product_id:E,container:"#aplaut-inline-rating-container"}),fa=new R({name:"product-reviews",product_id:E,container:"#aplaut-reviews-container"});R=new R({name:"product-questions",product_id:E,container:"#aplaut-questions-container"});T.render([z,fa,R])})}$(document).on("click",".bv_stars_component_container, .sp-inline-rating-stars, .pd-info__rating",function(){document.querySelector("#reviewWrap \x3e a").click()});
1636$("#isEppPage").val()&&p.find(".hdd02-pdp-header__cta-epromotor").hide();$(document).on("click",".hdd02-pdp-header .hdd02-pdp-header__cta-epromotor .cta",function(){window.sprChat("open")})}function u(D,h,C){C=h.detailNodePath;var E=modelCodeToSelector($("#modelCode").val());h=h.siteCode;var T="",R="/";-1<location.href.indexOf(".html")&&(R=".html");var z="";if("true"===$("#isEppPage").val()){var fa=location.pathname.match(/[0-9]{13}/g);null!=fa&&"undefined"!=typeof fa&&""!=$.trim(fa)&&(z=".offerid-"+
1637fa)}D&&(T=C+D+"."+E+"."+h+z+R,-1<D.indexOf("pd-g-anchor-navigation-ux2")&&(T=$("#familyCode").val(),T=C+D+"."+E+"."+h+"."+T+z+R));return T}function n(D,h,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(T){$(h).html(T)}})}function v(D,h,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(T){T=$("\x3cdiv\x3e\x3c/div\x3e").append(T).find(".text-editor");$(".nv-g-breadcrumb .text-editor").replaceWith(T)}})}function F(D,h,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",
1638success:function(R){var z=window.sg.components.dynamic,fa=window.sg.components.ProductRecentlyViewed||{};$(h).html(R);z.rencentlyViewUx2&&z.rencentlyViewUx2.rencentlyViewGrid&&T.nonCheckError(z,z.rencentlyViewUx2.rencentlyViewGrid);fa&&T.nonCheckError(fa,fa.reInit)}})}function W(D,h,C,E){"Y"===$("#bvFlag").val()&&(-1<D.indexOf(".html")?(D=D.substring(0,D.length-5),D+=".pd-g-product-review-highlight-tab1.html"):(D=D.substring(0,D.length-1),D+=".pd-g-product-review-highlight-tab1/"),h="#review");$.ajax({type:"GET",
1639url:D,dataType:"html",success:function(T){$(h).html(T);T=window.sg.components.dynamic;"cn"===C.siteCode&&T.cnReview&&T.cnReview.init()}})}function aa(D,h,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){$(h).html(R);0<$(".manufacturer-info-popup").length&&(R=window.sg.components.manufacturerInfoPopup||{},T.nonCheckError(R,R.reInit))}})}function x(D,h,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var z=window.sg.components.ProductSpecNew||
1640{};$(h).html(R);T.nonCheckError(z,z.reInit)}})}function U(D,h,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var z=window.sg.components.pdBanner||{};$(h).html(R);T.nonCheckError(z,z.reInit)}})}function B(D,h,C,E){var T=C.util,R=C.view;$.ajax({type:"GET",url:D,dataType:"html",success:function(z){var fa=window.sg.aem.components.product.setAnchors,va=window.sg.components.pdHeaderNavigationV2;if("Y"===$("#typeux2025").val()){var ra=$(".pdd39-anchor-nav__header");z=$("\x3cdiv\x3e\x3c/div\x3e").append(z).find(".pdd39-anchor-nav__headline-wrap");
1641ra.find(".pdd39-anchor-nav__headline-wrap").replaceWith(z)}else $(h).html(z);T.nonCheckError(fa,fa.init);T.nonCheckError(va,va.reInit);R.productPriceTotalDraw(window.sg.components.dynamic.detailSharedObj.drawObj,window.sg.components.dynamic.detailSharedObj.isOptClicked);R.productDraw(window.sg.components.dynamic.detailSharedObj.drawObj);R.anchorDraw(k.detailSelectorObj.buyingToolInfoTitle.text());window.sg.components.pdHeaderNavigationV2.reInit()}})}function w(D,h,C,E){$.ajax({type:"GET",url:D,dataType:"html",
1642success:function(T){var R=C.util,z=$("\x3cdiv\x3e\x3c/div\x3e").append(T);$(h).html(T);0<z.find(".feature-benefit").length&&R.nonCheckError(window.sg.components.featureBenefit,window.sg.components.featureBenefit.reInit);0<z.find(".feature-benefit-banner").length&&R.nonCheckError(window.sg.components.featureBenefitBanner,window.sg.components.featureBenefitBanner.reInit);0<z.find(".feature-benefit-bundle").length&&R.nonCheckError(window.sg.components.featureBenefitBundle,window.sg.components.featureBenefitBundle.reInit);
16430<z.find(".feature-benefit-full-bleed").length&&R.nonCheckError(window.sg.components.featureBenefitFullBleed,window.sg.components.featureBenefitFullBleed.reInit);0<z.find(".feature-benefit-gallery").length&&R.nonCheckError(window.sg.components.featureBenefitGallery,window.sg.components.featureBenefitGallery.reInit);0<z.find(".feature-benefit-half-text").length&&R.nonCheckError(window.sg.components.featureBenefitHalfText,window.sg.components.featureBenefitHalfText.reInit);0<z.find(".feature-benefit-tab").length&&
1644R.nonCheckError(window.sg.components.featureBenefitTab,window.sg.components.featureBenefitTab.reInit);0<z.find(".three-column-carousel").length&&R.nonCheckError(window.sg.components.featureBenefitThreeColumn,window.sg.components.featureBenefitThreeColumn.reInit);0<z.find(".two-column").length&&R.nonCheckError(window.sg.components.featureBenefitTwoColumn,window.sg.components.featureBenefitTwoColumn.reInit);0<z.find(".feature-benefit-video-kv").length&&R.nonCheckError(window.sg.components.featureBenefitVideoKv,
1645window.sg.components.featureBenefitVideoKv.reInit);window.sg.common.image.initAll()}})}function e(){var D=$(location).prop("pathname"),h=$("#siteCode").val(),C="";0<$("#categoryGroupCode").length&&(C=$("#categoryGroupCode").val());"/"!=D.charAt(D.length-1)||checkEppSite()||(D=D.substr(0,D.length-1));$.ajax({type:"GET",data:{resourcePath:D,siteCode:h,productGroupCode:C},url:"/aemapi/v6/product/getNotification",success:function(E){var T="undefined"!==typeof digitalData&&digitalData&&digitalData.page&&
1646digitalData.page.pageInfo&&digitalData.page.pageInfo.pageTrack||"";var R='\x3csection class\x3d"notification-bar notification-bar--toggle"\x3e  \x3cdiv class\x3d"notification-bar__inner"\x3e    \x3cdiv class\x3d"notification-bar__column notification-bar__column--collapsed"\x3e      \x3cdiv class\x3d"notification-bar__column-inner"\x3e        \x3cdiv class\x3d"notification-bar__text notification-bar__text-pc"\x3e\x3cspan\x3e'+(E.closePcHeadline+"\x3c/span\x3e\x3c/div\x3e");R+='        \x3cdiv class\x3d"notification-bar__text notification-bar__text-mo"\x3e\x3cspan\x3e'+
1647E.closeMobileHeadline+"\x3c/span\x3e\x3c/div\x3e";R=R+'        \x3cdiv class\x3d"notification-bar__cta"\x3e          \x3ca class\x3d"cta cta--label cta--black cta--icon" href\x3d"'+(E.ctaUrl+'" title\x3d"'+E.ctaTitle+'" target\x3d"'+E.windowStyle+'"');R+='          \t an-tr\x3d"cod02_promotion bar-'+T+'-text-link" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:'+E.closePcHeadline+":"+E.ctaEngText+'"\x3e'+E.ctaText+'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e';"_self"==E.windowStyle?
1648R+='              \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e':"_blank"==E.windowStyle&&(R+='              \x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e');R=R+'            \x3c/svg\x3e          \x3c/a\x3e        \x3c/div\x3e      \x3c/div\x3e    \x3c/div\x3e    \x3cdiv class\x3d"notification-bar__column notification-bar__column--expanded"\x3e      \x3cdiv class\x3d"notification-bar__column-inner"\x3e        \x3ch2 class\x3d"notification-bar__headline"\x3e'+
1649(E.openHeadline+"\x3c/h2\x3e");R=R+'        \x3cdiv class\x3d"notification-bar__cta"\x3e          \x3ca class\x3d"cta cta--label cta--black cta--icon" href\x3d"'+(E.ctaUrl+'" title\x3d"'+E.ctaTitle+'" target\x3d"'+E.windowStyle+'"');R+='          \t an-tr\x3d"cod02_promotion bar-'+T+'-text-link" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:'+E.closePcHeadline+":"+E.ctaEngText+'"\x3e'+E.ctaText+'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e';"_self"==E.windowStyle?R+='              \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e':
1650"_blank"==E.windowStyle&&(R+='              \x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e');R=R+'            \x3c/svg\x3e          \x3c/a\x3e        \x3c/div\x3e      \x3c/div\x3e    \x3c/div\x3e    \x3cbutton type\x3d"button" class\x3d"notification-bar__toggle-btn" an-tr\x3d"cod02_promotion bar-'+(T+'-view more-indication" an-ca\x3d"indication" an-ac\x3d"view more" an-la\x3d"promotion banner:view more"\x3e      \x3cspan class\x3d"hidden"\x3e')+(Granite.I18n.get("Click to Expand")+
1651"\x3c/span\x3e");R+='      \x3csvg class\x3d"icon icon--open" focusable\x3d"false"\x3e        \x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e      \x3c/svg\x3e      \x3csvg class\x3d"icon icon--close" focusable\x3d"false"\x3e        \x3cuse xlink:href\x3d"#close-up-bold" href\x3d"#close-up-bold"\x3e\x3c/use\x3e      \x3c/svg\x3e    \x3c/button\x3e  \x3c/div\x3e\x3c/section\x3e';$(".pd-g-product-promotion-bar").html(R);$(".pd-g-product-promotion-bar").show();
1651window.sg.components.notificationBar.init();
1652window.sg.common.icon.update(document.querySelector(".pd-g-product-promotion-bar"))},error:function(E){$(".pd-g-product-promotion-bar").html("");$(".pd-g-product-promotion-bar").hide()},complete:function(){}})}var p=$(".hdd02-pdp-header"),k=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),A=k.ux2.PDPHeaderUI,ca={},K={};if(0>=p.length)return!1;l()})();
1653(function(l,g){function H(ca){null!=ca.products&&0<ca.products.length&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),g.each(ca.products,function(K,D){K=D.modelcode;U[K]={};U[K].modelCode=K;U[K].name=D.name||"";U[K].imageUrl=D.imageUrl||"";U[K].imageUrlAlt=D.imageUrlAlt||"";U[K].stocklevel=D.stocklevel||"";U[K].price=D.price||"";U[K].priceValue=D.priceValue||"";U[K].promotionPrice="";U[K].promotionPriceValue="";U[K].promotionPrice=D.promotionPrice?D.promotionPrice:D.price;U[K].promotionPriceValue=
1654D.promotionPriceValue?D.promotionPriceValue:D.priceValue}))}var u=g("#siteCode").val(),n=g("#hybrisApiJson").val(),v=g("#storeDomain").val(),F=g("#searchDomain").val(),W=g("#apiStageInfo").val(),aa=g("#priceCurrency").val(),x="Hybris-intg"===g("#shopIntegrationFlag").val()?"hybris":"global",U={},B=[],w="ae"===u||"ae_ar"===u||"levant"===u||"levant_ar"===u||"n_africa"===u,e="ca"===u||"ca_fr"===u,p="";if("ae"===u||"ae_ar"===u){var k=l.cookies.getCookie("estoreSitecode");p=k?"ae"===k||"ae_ar"===k||"kw"===
1655k||"kw_ar"===k||"om"===k||"om_ar"===k||"bh"===k||"bh_ar"===k||"qa"===k||"qa_ar"===k?k:u:u}else p="levant"===u?"jo":"levant_ar"===u?"jo_ar":"n_africa"===u?"ma":u;p="true"===g("#isEppPage").val()?g("#eppCompanyCode").val():p;var A=v+"/"+p;if("cl"===u||"mx"===u||"py"===u)A=v;A+="/servicesv2/getRelatedProductsSimpleInfo";l.sg.sdf.util.prepareNamespace("sg.components.dynamic").betterTogetherHybris={getRelatedProductsSimpleInfo:function(ca){var K="\x26country_region\x3d";if(e){var D=getSECACountryRegion();
1656K+=D}ca="?productCode\x3d"+ca;B=[];D="true"===g("#isEppPage").val()?{withCredentials:!0}:{};"Y"===n?g.ajax({url:A+ca,type:"GET",dataType:"json",cache:!0,crossDomain:!0,xhrFields:D,timeout:1E4,success:H,error:function(){}}):e?g.ajax({url:A+ca+K,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:D,cache:!0,crossDomain:!0,timeout:1E4,success:H,error:function(){}}):g.ajax({url:A+ca,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:D,cache:!0,
1657crossDomain:!0,timeout:1E4,success:H,error:function(){}})},getSearchProductcard:function(ca){var K=[];g.each(U,function(E,T){K.push(T.modelCode)});var D=g.cookies.get("country_region")?g.cookies.get("country_region").toString():"",h={modelList:K.toString(),onlyRequestSkuYN:"Y",saleSkuYN:"N",siteCode:u};if("ca"===u||"ca_fr"===u)h.regionCode=null!=D&&""!=D?D:"CA-ON";w&&(h.shopSiteCode=p);var C=(D="true"===g("#isEppPage").val())?"epp/v2":"b2c";D&&(h.companyCode=g("#eppCompanyCode").val(),h.shopSkuYN=
1658"N",l.sg.epp.common.isUserGroupPricing&&(h.groupName=l.sg.epp.common.groupName),""!=l.sg.epp.common.userStoreId&&(h.o2oId=l.sg.epp.common.userStoreId));g.ajax({url:F+"/"+W+("/"+C+"/product/card/detail/")+x,type:"GET",data:h,dataType:"json",cache:!0,timeout:1E4,success:function(E){200===E.response.statusCode&&null!=E.response.resultData&&null!=E.response.resultData.productList&&(E=E.response.resultData.productList,g.each(E,function(T,R){var z=R.modelList,fa=R.categorySubTypeEngName;null!=z&&g.each(z,
1659function(va,ra){var oa=ra.modelCode,da=U[oa].stocklevel;U[oa]&&(ra.displayName||(ra.displayName=U[oa].name),ra.thumbUrl||(ra.thumbUrl=U[oa].imageUrl),ra.thumbUrlAlt||(ra.thumbUrlAlt=U[oa].imageUrlAlt),ra.priceDisplay=U[oa].price,ra.promotionPriceDisplay=U[oa].promotionPrice,ra.price=U[oa].priceValue,ra.promotionPrice=U[oa].promotionPriceValue,ra.stocklevel=da,ra.isStock=!(""===da||"OUTOFSTOCK"===da.toUpperCase()),ra.idx=String(T)+"-"+String(va),ra.categorySubTypeEngName=fa)})}),B=E)},error:function(){},
1660complete:function(){ca(B)}})},setPriceInfo:function(ca){var K=ca.price,D=ca.promotionPrice,h=Number((parseFloat(K)-parseFloat(D)).toFixed(2)),C=currencyComma(h,aa),E=ca.priceDisplay||(K?currencyComma(K,aa):"");ca=ca.promotionPriceDisplay||(D?currencyComma(D,aa):"");return{promotionPrice:D,productPrice:K,savePriceTemp:h,saveText:C,productPriceDisplay:E,promotionPriceDisplay:ca}}}})(window,window.jQuery);
1661(function(l,g){function H(v,F){v.push({fmyChipType:F.fmyChipType,optionList:[{optionCode:F.fmyChipCode,optionLocalName:F.fmyChipLocalName,optionName:F.fmyChipName}]})}var u=g("#priceCurrency").val();g=g("#siteCode").val();var n="nl"===g||"be"===g||"be_fr"===g;l.sg.sdf.util.prepareNamespace("sg.components.dynamic").betterTogetherGPv2={setFamily:function(v){var F=[],W={},aa;for(aa in v){var x=v[aa];null!=x.familyIndex&&(null==W[x.familyIndex]&&(W[x.familyIndex]=[]),W[x.familyIndex].push(x))}v=0;for(aa in W){var U=
1662{};U.modelList=W[aa];U.chipOptions=[];for(var B=0;B<W[aa].length;B++){x=W[aa][B];var w=x.ctaType;x.idx=String(v)+"-"+String(B);x.inventory&&x.inventory.status&&(w=x.inventory.status,x.ctaType=w);x.isStock=!(""===w||"NOORDER"===w.toUpperCase()||"OUTOFSTOCK"===w.toUpperCase());w=U.chipOptions;x=x.fmyChipList;for(var e=0;e<x.length;e++){var p=x[e];if(0<w.length){for(var k=!0,A=0;A<w.length;A++){var ca=w[A];if(ca.fmyChipType===p.fmyChipType){var K={optionCode:p.fmyChipCode,optionLocalName:p.fmyChipLocalName,
1663optionName:p.fmyChipName};k=!1;-1===JSON.stringify(ca.optionList).indexOf(JSON.stringify(K))&&ca.optionList.push(K)}}k&&H(w,p)}else H(w,p)}}v++;F.push(U)}return F},setPriceInfo:function(v){var F=0,W=0,aa=0,x="",U="",B="";null!=v.price_info&&0<v.price_info.length&&v.price_info[0].msrp_price&&(W=v.price_info[0].msrp_price.value,F=v.price_info[0].sale_price.value,aa=Number((parseFloat(W)-
1663parseFloat(F)).toFixed(2)),x=currencyComma(aa,u),U=v.price_info[0].msrp_price.formatted_value,B=v.price_info[0].sale_price.formatted_value,
1664null!=v.price_info[0].discount_description&&null!=v.price_info[0].discount_description.type&&"rebate,percentage".indexOf(v.price_info[0].discount_description.type.toLowerCase())&&null!=v.price_info[0].discount_description.formatted_value&&(x=v.price_info[0].discount_description.formatted_value),U=n||!U?currencyComma(W,u):U,B=n||!B?currencyComma(F,u):B);return{promotionPrice:F,productPrice:W,savePriceTemp:aa,saveText:x,productPriceDisplay:U,promotionPriceDisplay:B}}}})(window,window.jQuery);
1665(function(l,g){function H(){var N=g("#voucherTotal"),b=g("#voucherBalance"),r=g("#voucherCharge"),G=currencyComma(0,k),P=g(".better-together__headline-text"),Z=g(".better-together__desciption");N.html(G);b.html(G);r.html(G);if(R)N=e.detailSharedObj.voucherdata,Z="",N.formatted_sales_pitch?Z=N.formatted_sales_pitch:N.sales_pitch&&(Z=N.sales_pitch),P.html(Z),b.html(N.discount_description[0].formatted_value),b.attr("data-price",N.discount_description[0].value),b.attr("data-oriPrice",N.discount_description[0].value);
1666else for(N=e.detailSharedObj.voucherdataHybris,r=0;r<N.length;r++){G=N[r].key;var d=N[r].value;d&&("voucherPrice"===G&&(b.html(currencyComma(d,k)),b.attr("data-price",d),b.attr("data-oriPrice",d)),"mainTitle"===G&&P.html(d),"subTitle"===G&&(Z.html(d),Z.show()))}g(".better-together").addClass("better-together__selected");g(".better-together__selected-info").show()}function u(){var N=g("#voucherTotal"),b=g("#voucherBalance"),r=g("#voucherCharge"),G=b.attr("data-oriPrice"),P=g(".better-together__selected-title .number span");
1667N.attr("data-price",0);b.attr("data-price",G);r.attr("data-price",0);N.html(currencyComma(0,k));b.html(currencyComma(G,k));r.html(currencyComma(0,k));P.html(0);N=g(".better-together .better-together__cta .cta--on");N.find("span").html(da);N.removeClass("cta--on")}function n(N){var b=g("#voucherBalance"),r=Number(b.attr("data-oriPrice"))||0;b=Number(b.attr("data-price"))||0;if(0===b){var G="allVoucher";var P=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
1668N="voucher"+N}else b===r?(G="redeem",P=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(b,k)),N="skip"+N):0<b&&(G="voucher",P=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(b,k)),N="voucher"+N);confirmPopup(P,G,N)}function v(N){A=N;null==A||0===Object.keys(A).length?setInterval(function(){e.DetailAfterEvent.addToCartCta([],!0,!0)},1E3):(U(A),e.detailSharedObj.hasVoucher&&
1669H(),l.sg.components.betterTogether.show(document.querySelector(".better-together"),g(".better-together").siblings().add(g(".better-together").parent().siblings()),T),l.sg.components.betterTogether.reInit(),0===g(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&g(".better-together__cta-more").hide())}function F(N,b){for(var r=0;r<N.length;r++)if(N[r]===b)return!0;return!1}function W(N,b,r){var G="",P=g("#scene7domain").val();N&&(b=-1<N.indexOf("?")?"":"?"+b,-1<N.indexOf("https:")||
1670-1<N.indexOf("http:")||-1<N.indexOf("//stg-images.samsung.com/")||-1<N.indexOf("//images.samsung.com/")||-1<N.indexOf("image.samsung.com/")||-1<N.indexOf("//stg-images.samsung.com.cn/")||-1<N.indexOf("//images.samsung.com.cn/")||-1<N.indexOf("image.samsung.com.cn/")?G=N:(r&&(P=P.replace("/image/","/content/")),G=P+N),G+=b);return G}function aa(N){var b="",r=N.modelList[N.frontModelIdx],G=r.isStock,P=E.setPriceInfo(r),Z=P.promotionPrice,d=P.savePriceTemp,M=P.saveText,t=P.productPriceDisplay,y=P.promotionPriceDisplay;
1671P=D?"evoucher":"add-on";var I="";r.thumbUrl&&(I='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+W(r.thumbUrl,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+W(r.thumbUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+r.thumbUrlAlt+'"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+W(r.thumbUrl,"$240_240_PNG$")+'" data-mobile-src\x3d"'+W(r.thumbUrl,"$480_480_PNG$")+'" alt\x3d"'+r.thumbUrlAlt+'"\x3e');b+='\x3cdiv class\x3d"better-together__item unbind-option" data-index\x3d"'+
1672r.idx+'" data-price\x3d"'+Z+'"\x3e\n\t\t\t\t\x3cdiv class\x3d"better-together__product-name"\x3e\x3cspan class\x3d"better-together__product-name-inner"\x3e'+r.displayName+'\x3c/span\x3e\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"better-together__image-wrap"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"better-together__image"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t'+I+"\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e";Z="";I=N.modelList[N.frontModelIdx];if(N.viewOptionObj&&
16730<Object.keys(N.viewOptionObj).length){var X="",V=0,O=N.viewOptionObj,S=N.optionTypeList;for(Ba in N.viewOptionObj){var Q=Ba.toLowerCase().replace(/ /g,"-"),ea=N.viewOptionObj[Ba].optionList,la="",ma=D?"evoucher":"add-on";N.viewOptionObj[Ba].styleAttr&&(la=N.viewOptionObj[Ba].styleAttr);if("COLOR"===Ba){var ta="",xa="",sa;for(sa in ea){var Ma=ea[sa];var pa=!1;var a=Ma.modelIdx.split(",");if(null!=Ma.modelIdx&&F(a,String(N.frontModelIdx))){pa=!0;ta=Ma.modelIdx;var c=""}else if(c=" is-disabled",0===
1674V)c="";else{var m=X.split(","),f;for(f in a)if(F(m,a[f])){c="";break}}m=a="";if(""===c){var q=Ma.modelIdx;var ba=[],J=!0,ha;for(ha in O)if(ha!==Ba){var qa=O[ha].optionList,ia;for(ia in qa){var za=qa[ia];za=za.modelIdx;var Ja=za.split(",");-1<Ja.indexOf(String(N.frontModelIdx))&&ba.push(za)}}q=L(O,q,ba,J,S);N.modelList.length>q&&N.modelList[q]&&(a=N.modelList[q].modelCode,m=N.modelList[q].modelName)}ba="pdd10-"+Q+"-"+sa+"-"+I.idx;
1674J="pdd10-"+Q+"-"+I.idx;xa+='\x3cspan class\x3d"option-selector__swiper-slide'+
1675c+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+ba+'" name\x3d"'+J+'" data-modeli\x3d"'+q+'"'+(pa?" checked":"")+(""===c?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+C+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+ma+":"+Ba.toLowerCase()+":"+Ma.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+a+'" data-modelname\x3d"'+m+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+
1676ba+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+Ma.optionCode+'"\x3e'+Ma.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}X=ta;Q="";for(sa in ea)Ma=ea[sa],a=Ma.modelIdx.split(","),null!=Ma.modelIdx&&F(a,String(N.frontModelIdx))&&(Q=Ma.optionLocalName);Z+='\x3cdiv class\x3d"option-selector__color-name"\x3e'+Granite.I18n.get("Color")+' : \x3cspan class\x3d"color-name-text"\x3e'+
1677Q+'\x3c/span\x3e\x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip" data-desktop-view\x3d"5" data-mobile-view\x3d"5"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+la+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+xa+'\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true" an-tr\x3d"pdd10_product bought together-'+
1678C+'-image-arrow" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:left"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true" an-tr\x3d"pdd10_product bought together-'+
1679C+'-image-arrow" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:right"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Next")+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e'}else if("MOBILE MEMORY"===Ba||
1680"TV SIZE"===Ba||"HOME APPLIANCE SIZE"===Ba){xa=ta="";for(var Fa=0;Fa<ea.length;Fa++){Ma=ea[Fa];pa=!1;a=Ma.modelIdx.split(",");if(null!=Ma.modelIdx&&F(a,String(N.frontModelIdx)))pa=!0,ta=Ma.modelIdx,c="";else if(c=" is-disabled",0===V)c="";else for(f in m=X.split(","),a)if(F(m,a[f])){c="";break}m=a="";if(""===c){q=Ma.modelIdx;ba=[];J=!1;for(ha in O)if(ha!==Ba)for(ia in qa=O[ha].optionList,qa)za=qa[ia],za=za.modelIdx,Ja=za.split(","),-1<Ja.indexOf(String(N.frontModelIdx))&&ba.push(za);q=L(O,q,ba,J,
1681S);N.modelList.length>q&&N.modelList[q]&&(a=N.modelList[q].modelCode,m=N.modelList[q].modelName)}ba="pdd10-"+Q+"-"+Fa+"-"+I.idx;
1681J="pdd10-"+Q+"-"+I.idx;xa+='\x3cspan class\x3d"option-selector__swiper-slide'+c+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+ba+'" name\x3d"'+J+'" data-modeli\x3d"'+q+'"'+(pa?" checked":"")+(""===c?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+C+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+
1682ma+":"+Ba.toLowerCase()+":"+Ma.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+a+'" data-modelname\x3d"'+m+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+ba+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+Ma.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}X=ta;Z+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity" data-desktop-view\x3d"3" data-mobile-view\x3d"3"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
1683la+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+xa+'\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__floating-bar" style\x3d"display: none;"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true" an-tr\x3d"pdd10_product bought together-'+C+'-image-arrow" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:left"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+
1684Granite.I18n.get("Previous")+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true" an-tr\x3d"pdd10_product bought together-'+C+'-image-arrow" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:right"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+
1685Granite.I18n.get("Next")+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e'}V++}}b=b+('\x3cdiv class\x3d"better-together__info"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\t'+Z+'\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\x3cdiv class\x3d"better-together__fiche"\x3e\n\t\t\t\t')+
1686((null!=r.ficheFileUrl?'\x3ca href\x3d"'+r.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+Granite.I18n.get("Open in a new window")+'" class\x3d"cta-text" an-tr\x3d"pdd10_product bought together-'+C+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+P+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t"+(null!=r.energyLabelGrade?'\x3ca class\x3d"badge '+r.energyLabelClass2+'" href\x3d"'+r.energyFileUrl+'" target\x3d"_blank" title\x3d"'+r.energyLabelGrade+
1687'"\x3e\n\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+r.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+r.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\x3c/div\x3e");if("pl"!==p||G)b+='\x3cdiv class\x3d"better-together__price"\x3e'+y+'\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"better-together__price-sub"\x3e\n\t\t\t\t'+(0<d?'\x3cspan class\x3d"better-together__price-original"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+
1688Granite.I18n.get("Original Price")+": \x3c/span\x3e\n\t\t\t\t\t\t"+(h||"de"===p?Granite.I18n.get("From")+" ":"")+"\x3cdel\x3e"+t+"\x3c/del\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t"+(h?"":'\x3cspan class\x3d"better-together__price-save"\x3e'+Granite.I18n.get("Save {0}",M)+"\x3c/span\x3e"):"")+"\n\t\t\t\t\x3c/div\x3e";N=ca.includes(r.idx);t=Granite.I18n.get("Out Of Stock");d=Granite.I18n.get("Item added");var Ba=Granite.I18n.get("Add to cart");M=Granite.I18n.get("Add");t=G?N?d:D?M:Ba:t;return b+='\x3cdiv class\x3d"better-together__cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--contained cta--black'+
1689(!G||N&&!D?" cta--disabled":"")+(N&&D?" cta--on":"")+'" href\x3d"javascript:void(0)" title\x3d"'+t+'" \n\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+C+"-"+(D?"button":"popup")+'-add" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+P+':add item" \n\t\t\t\t\t\tdata-modelcode\x3d"'+r.modelCode+'" data-modelname\x3d"'+r.modelName+'"\x3e\n\t\t\t\t\t\t'+(D?'\x3cspan data-global-text\x3d\'{"selected" : "'+d+'", "unSelected" : "'+M+"\"}'\x3e"+t+"\x3c/span\x3e":t)+"\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e"}
1690function x(N,b){null==N.modelList[b].displayName&&(N.modelList[b].displayName="");var r={};for(d in N.modelList){var G=N.modelList[d].fmyChipList,P;for(P in G){var Z=G[P].fmyChipType+"+"+G[P].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+G[P].fmyChipLocalName.replace('"',"").replace("\x26quot;","");
1690r[Z]=void 0==r[Z]?d:r[Z]+(","+d)}}var d=[];G={};if(N.chipOptions)for(P=0;P<N.chipOptions.length;P++){var M=N.chipOptions[P],t=M.fmyChipType,y=M.optionList,I;for(I in y)Z=M.fmyChipType+"+"+y[I].optionCode.replace('"',
1691"").replace("\x26quot;","")+"+"+y[I].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=r[Z]&&(y[I].modelIdx=r[Z]);G[t]={};G[t].optionList=y;d.push(t)}N.viewOptionObj=G;N.optionTypeList=d;N.frontModelIdx=b;return N}function U(N){var b="";ca=[];K=[];D=l.sg.components.dynamic.detailSharedObj.hasVoucher;if(null!=N){b="";for(var r=0;r<N.length;r++){var G=N[r];if(null!=G.modelList&&0<G.modelList.length){for(var P=0,Z=null,d=0;d<G.modelList.length;d++){var M=G.modelList[d],t=M.isStock;M.selected&&
1692"Y"===M.selected&&(P=d,t&&(Z=d))}if(null==Z)for(d=0;d<G.modelList.length;d++)if(M=G.modelList[d],M.isStock){Z=d;break}null==Z&&(Z=P);G=x(G,Z);b+=aa(G)}}b+='\x3cdiv class\x3d"better-together__cta-more"\x3e\n\t\t\t\t\x3ca href\x3d"javascript:void(0);" class\x3d"cta" an-tr\x3d"pdd10_product bought together-'+C+'-image-view more" an-ca\x3d"indication" an-ac\x3d"view more" an-la\x3d"view more"\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon next" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\x3cspan class\x3d"cta-text"\x3e'+
1693Granite.I18n.get("View more")+'\x3c/span\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon down" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e'}g(".better-together .scrollbar__contents").html(b);B()}function B(){g(".better-together").off("click",".option-selector__color input, .option-selector__size input");g(".better-together").on("click",".option-selector__color input, .option-selector__size input",
1694function(){var N=(g(this).closest(".better-together__item").attr("data-index")||"").split("-")[0],b=g(this).data("modeli");setTimeout(function(){if(null!=b){A[N].frontModelIdx=b;var r=x(A[N],b),G=g(".better-together__item.unbind-option").eq(N),P=g(".better-together__item.unbind-option").index(G);G.find(".option-selector__swiper-wrapper").each(function(Z){Z=A[N].optionTypeList[Z];var d=g(this).attr("style");A[N].viewOptionObj[Z].styleAttr=d});G.replaceWith(aa(r));G=g(document.querySelectorAll(".better-together__item.unbind-option")[P]);
1695G.addClass("is-item-visible");l.sg.components.betterTogether.reInitCard(G[0]);B()}},300)});g(".better-together").off("click",".better-together__cta .cta:not(.cta--disabled)");g(".better-together").on("click",".better-together__cta .cta:not(.cta--disabled)",function(){var N=g(this),b=Granite.I18n.get("Item added"),r=N.closest(".better-together__item").attr("data-index"),G=r.split("-");G=A[G[0]].modelList[G[1]];G=R?G.shopSKU:G.modelCode;D?(b=ca.indexOf(r),N=parseFloat(N.closest(".better-together__item").attr("data-price")),
1696-1<b?(w(N,!1),ca.splice(b,1),K.splice(b,1)):(w(N,!0),ca.push(r),K.push(G))):(N.text(b),N.addClass("cta--disabled"),ca.push(r),K.push(G),r=Granite.I18n.get("Product has been successfully added to cart"),"pl"!==p&&confirmPopup(r,"addToCart"));r=g("#primaryInfoGoCart");N=g("#primaryInfoCheckOut");b=g("#primaryInfoGoCart, #primaryInfoCheckOut");if(0<ca.length){for(var P=G="",Z="",d="",M="",t="",y="",I="",X="",V="",O=0;O<ca.length;O++){var S=ca[O],Q=S.split("-")[0];S=S.split("-")[1];Q=A[Q].modelList[S];
1697S=E.setPriceInfo(Q);var ea=S.productPrice,la="",ma="";0<O&&(la=",",ma=";");G+=la+Q.modelCode;P+=la+Q.modelName;Z+=ma+Q.displayName;d+=la+ea;M+=la+S.promotionPrice;t+=la+Q.pviTypeName;y+=la+Q.pviSubtypeName;I+=la+Q.categorySubTypeEngName;X+=la+ea;V+=la+1}t=t.toLowerCase();y=y.toLowerCase();I=I.toLowerCase();D?(r.attr("an-tr","pdd10_product bought together-"+C+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:go to cart"),N.attr("an-tr","pdd10_product bought together-"+
1698C+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:checkout")):(r.attr("an-tr","pdd10_product bought together-"+C+"-text-addedcart").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:go to cart"),N.attr("an-tr","pdd10_product bought together-"+C+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:checkout"));b.attr("data-modelcode",G).attr("data-modelname",P).attr("data-modeldisplay",Z).attr("data-modelprice",
1699d).attr("data-discountprice",M).attr("data-pvitype",t).attr("data-pvisubtype",y).attr("data-pimsubtype",I).attr("data-modelrevenue",X).attr("data-modelqty",V).attr("data-modelcurrency",k)}else D?(r.attr("an-tr","pdd10_product bought together-"+C+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart"),N.attr("an-tr","pdd10_product bought together-"+C+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout")):
1700(r.attr("an-tr","pdd10_product bought together-"+C+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"),N.attr("an-tr","pdd10_product bought together-"+C+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout")),b.removeAttr("data-modelcode").removeAttr("data-modelname").removeAttr("data-modeldisplay").removeAttr("data-modelprice").removeAttr("data-discountprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-pimsubtype").removeAttr("data-modelrevenue").removeAttr("data-modelqty").removeAttr("data-modelcurrency")})}
1701function w(N,b){var r=g("#voucherTotal"),G=g("#voucherBalance"),P=g("#voucherCharge"),Z=parseFloat(r.attr("data-price")||0),d=parseFloat(G.attr("data-oriprice")||0);Z=b?Z+N:Number((parseFloat(Z)-parseFloat(N)).toFixed(2));N=Number((parseFloat(d)-parseFloat(Z)).toFixed(2));0>N?(b=-N,N=0):b=0;r.attr("data-price",Z);G.attr("data-price",N);P.attr("data-price",b);r.html(currencyComma(Z,k));G.html(currencyComma(N,k));P.html(currencyComma(b,k))}var e=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
1702p=g("#siteCode").val(),k=g("#priceCurrency").val(),A=[],ca=[],K=[],D=!1,h="nl"===p||"be"===p||"be_fr"===p,
1702C=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),E={},T=null,R=!1,z=!1,fa=Granite.I18n.get("From"),va=Granite.I18n.get("or"),ra=Granite.I18n.get("Monthly Price:"),oa=Granite.I18n.get("Full Price:"),da=Granite.I18n.get("Add"),na=Granite.I18n.get("Are you sure to remove this product?"),L=function(N,b,r,G,P){b=b.split(",");var Z=b[0];P=P.indexOf("MEMORY");if(!R&&!z&&G&&0<P){r=N.MEMORY.optionList;
1703var d=0,M=0,t;for(t in r){Z=r[t].modelIdx.split(",");for(var y in Z)if(F(b,Z[y])){N=r[t].optionCode.replace("TB","000").replace(/[^0-9]/g,"");M<N&&(M=N,d=Z[y]);break}}b=d}else{for(d in r)if(t=r[d]){y=t.split(",");t=[];for(M in b)-1<y.indexOf(String(b[M]))&&t.push(b[M]);0<t.length&&(b=t)}b=0<b.length?b[0]:Z}return b};g(document).on("click",".better-together__selected .better-together__selected-close",function(){0<g(".better-together .better-together__cta .cta--on").length&&confirmPopup(na,"voucherDelete",
1704"voucherClearAll")});g(document).on("click","#voucherClearAll",function(){ca=[];K=[];u()});g(document).on("click","#primaryInfoGoCart",function(){e.detailSharedObj.hasVoucher?n("GoCart"):e.DetailAfterEvent.addToCartCta(K,!0,!0)});g(document).on("click","#primaryInfoCheckOut",function(){e.detailSharedObj.hasVoucher?n("CheckOut"):e.DetailAfterEvent.checkOutCta(K,!0,!0)});g(document).on("click","#voucherGoCart",function(){e.DetailAfterEvent.addToCartCta(K,!0,!0)});g(document).on("click","#voucherCheckOut",
1705function(){e.DetailAfterEvent.checkOutCta(K,!0,!0)});g(document).on("click","#skipGoCart",function(){e.DetailAfterEvent.addToCartCta([],!0,!0)});g(document).on("click","#skipCheckOut",function(){e.DetailAfterEvent.checkOutCta([],!0,!0)});g(document).on("click",".better-together__cta-more",function(){l.sg.components.betterTogether.more();0===g(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&g(this).hide()});e.bridgePage={moveBridgePage:function(N){var b=e.detailSharedObj;
1706T=N;N=e.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||"";var r=N.split(" "+va+" ");N=1<r.length?'\x3cdiv class\x3d"better-together__price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+ra+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__price-text"\x3e'+fa+"\x3c/span\x3e\n                    "+r[0].replace(fa,"")+'\n                \x3c/div\x3e\n                \x3cdiv class\x3d"better-together__full-price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+
1707oa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__full-price-text"\x3e'+va+"\x3c/span\x3e\n                    "+r[1]+"\n                \x3c/div\x3e":'\x3cdiv class\x3d"better-together__price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+oa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__price-text"\x3e\x3c/span\x3e\n                    '+N+"\n                \x3c/div\x3e";g(".better-together .better-together__price-wrap").html(N);R="GPv2"===
1708b.apiFlag;z="Hybris-new"===b.apiFlag;R?(E=e.betterTogetherGPv2,v(E.setFamily(b.addOnInfoTemp))):z?(E=e.betterTogetherNewHybris,E.getSearchProductcard(v)):(E=e.betterTogetherHybris,E.getSearchProductcard(v),g("#primaryInfoCheckOut").remove());e.detailSharedObj.hasVoucher?(u(),g("#primaryInfoCheckOut").attr("an-tr","pdd10_product bought together-"+C+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout"),g("#primaryInfoGoCart").attr("an-tr","pdd10_product bought together-"+
1709C+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart"),g(".better-together__back-cta").attr("an-la","evoucher:back"),g(".better-together__item-box .better-together__fiche a.cta-text").attr("an-la","evoucher:product fiche")):(g("#primaryInfoCheckOut").attr("an-tr","pdd10_product bought together-"+C+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout"),g("#primaryInfoGoCart").attr("an-tr","pdd10_product bought together-"+
1710C+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"));g("#primaryInfoCheckOut, #primaryInfoGoCart").removeAttr("data-modelcode").removeAttr("data-modelname").removeAttr("data-modeldisplay").removeAttr("data-modelprice").removeAttr("data-discountprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-pimsubtype").removeAttr("data-modelrevenue").removeAttr("data-modelqty").removeAttr("data-modelcurrency")}}})(window,
1711window.jQuery);
1712(function(l,g){function H(){var Y=g("#voucherTotal"),ja=g("#voucherBalance"),ya=g("#voucherCharge"),Aa=currencyComma(0,ra),Ga=g(".pdd16-step-buying__headline"),ua=g(".pdd16-step-buying__sub-headline"),Ea=g(".pdd16-step-buying__disclaimer");z.useAddonV2&&(Y=g("#voucherTotal2"),ja=g("#voucherBalance2"),ya=g("#voucherCharge2"),Ga=g(".pdd16-step-buying-v2__headline"),ua=g(".pdd16-step-buying-v2__sub-headline"),Ea=g(".pdd16-step-buying-v2__disclaimer"));Y.html(Aa);ja.html(Aa);ya.html(Aa);if(da)Y=T.detailSharedObj.voucherdata,
1713ua="",Y.formatted_sales_pitch?ua=Y.formatted_sales_pitch:Y.sales_pitch&&(ua=Y.sales_pitch),Ga.html(ua),ja.html(Y.discount_description[0].formatted_value),ja.attr("data-price",Y.discount_description[0].value),ja.attr("data-oriPrice",Y.discount_description[0].value);else for(Y=T.detailSharedObj.voucherdataHybris,ya=0;ya<Y.length;ya++){Aa=Y[ya].key;var Ia=Y[ya].value;Ia&&("voucherprice"===Aa.toLowerCase()&&(ja.html(currencyComma(Ia,ra)),ja.attr("data-price",Ia),ja.attr("data-oriPrice",Ia)),"maintitle"===
1714Aa.toLowerCase()&&Ga.html(Ia),"subtitle"===Aa.toLowerCase()&&(ua.html(Ia),ua.show()),"description"===Aa.toLowerCase()&&(Ea.find("p").html(Ia),Ea.show()))}}function u(){var Y=g("#voucherTotal"),ja=g("#voucherBalance"),ya=g("#voucherCharge"),Aa=g("#selectedItem");z.useAddonV2&&(Y=g("#voucherTotal2"),ja=g("#voucherBalance2"),ya=g("#voucherCharge2"),Aa=g("#selectedItem2"));var Ga=ja.attr("data-oriPrice"),ua=g(".better-together__selected-title .number span");Y.attr("data-price",0);ja.attr("data-price",
1715Ga);ya.attr("data-price",0);Aa.html("");Y.html(currencyComma(0,ra));ja.html(currencyComma(Ga,ra));ya.html(currencyComma(0,ra));ua.html(0);ta=ma=0}function n(Y){var ja=g("#voucherBalance");z.useAddonV2&&(ja=g("#voucherBalance2"));var ya=Number(ja.attr("data-oriPrice"))||0;ja=Number(ja.attr("data-price"))||0;if(0===ja){var Aa="allVoucher";var Ga=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
1716Y="voucher"+Y}else ja===ya?(Aa="redeem",Ga=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(ja,ra)),Y="skip"+Y):0<ja&&(Aa="voucher",Ga=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(ja,ra)),Y="voucher"+Y);confirmPopup(Ga,Aa,Y);Y=g(".confirm-popup");ya=Y.find(".confirm-popup__title");Ga=Y.find(".cta--contained");ja=Y.find(".cta--outlined");if("hk"===
1717fa||"hk_en"===fa)"redeem"===Aa?(ya.html(Granite.I18n.get("Are you sure? (redeem)")),Y.find(".cta--outlined.cta--black").attr("id","skipGoCartAddOn"),Ga.html(Granite.I18n.get("Use Your Galaxy Credit")),ja.html(Granite.I18n.get("Skip")),Y.find(".cta--contained.cta--emphasis").removeAttr("id")):"voucher"===Aa&&(ya.html(Granite.I18n.get("Are you sure? (voucher)")),Y.find(".cta--outlined.cta--black").attr("id","voucherGoCartAddOn"),Ga.html(Granite.I18n.get("Use Your Galaxy Credit")),ja.html(Granite.I18n.get("Skip")),
1718Y.find(".cta--contained.cta--emphasis").removeAttr("id"))}function v(Y){if(r&&z.vdcombodataHybris&&0<z.vdcombodataHybris.length){var ja="";z.vdcombodataHybris.forEach(function(Ca){"maintitle"===Ca.key.toLowerCase()?ja+=Ca.value:"subtitle"===Ca.key.toLowerCase()&&(ja=ja?ja+("\x3cbr/\x3e"+Ca.value):ja+Ca.value)});g(".pdd16-step-buying__promotion-banner .pdd16-step-buying__promotion-banner-text").html(ja);g(".pdd16-step-buying__promotion-banner").show()}else g(".pdd16-step-buying__promotion-banner").remove();
1719if(z.hasGift&&z.giftdataHybris&&0<z.giftdataHybris.length){var ya=g(".pdd16-step-buying .pdd16-step-buying__card-input");ya&&(ba={modelCode:[ya.find("input:checked").attr("data-modelcode")]})}else l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();if(da){z.addOnCategoryList.forEach(function(Ca,Xa){Ca.category.productList.forEach(function(Ta,Pa){z.addOnSearchGPv2.forEach(function(Wa,ab){Wa.familyId===Ta.family_id&&(z.addOnInfoTemp.forEach(function(Ya){Wa.modelList.filter(function(Za,
1720cb){if(Ya.model_code===Za.modelCode){var ib=Ya.price_info[0],$a=Ya.inventory.status||"";Za.displayName=Ya.displayName||"";Za.thumbUrlAlt=Ya.imageUrlAlt||"";Za.priceDisplay=ib.list_price.formatted_value||"";Za.promotionPriceDisplay=ib.sale_price.formatted_value||"";Za.price=ib.list_price.value||"";Za.promotionPrice=ib.sale_price.value||"";Za.stocklevel=$a;Za.isStock=!(""===$a||"OUTOFSTOCK"===$a.toUpperCase());Za.idx=String(Pa)+"-"+String(cb)}})}),z.addOnCategoryList[Xa].category.productList[Pa]=Wa,
1721z.addOnCategoryList[Xa].category.idx=String(Xa))})})});var Aa=[];z.addOnCategoryList.forEach(function(Ca){Ca.category.idx&&Aa.push(Ca)});z.addOnCategoryList=Aa;z.addOnCategoryList.forEach(function(Ca,Xa){var Ta=[];Ca.category.productList.reduce(function(Pa,Wa){Pa.includes(Wa.familyId)||(Pa.push(Wa.familyId),Ta.push(Wa));return Pa},[]);Ca.category.productList=Ta});I=z.addOnCategoryList}else I=Y;if(null==I||0===Object.keys(I).length)setInterval(function(){D()},1E3);else{if(z.useAddonV2){g(".pd-buying-price .pd-buying-price__cta .cta").attr("id",
1722"primaryInfoGoCartAddOn");var Ga={};Y=g("#primaryInfoGoCartAddOn")[0].attributes;g.each(Y,function(){Ga[this.name]=this.value});g(".pd-buying-price .pd-buying-price__cta .cta").attr("id","");g(".pdd16-step-buying-v2__bottom-price__cta a").attr(Ga);Y=Qa.find(".pdd16-step-buying-v2__bottom-price-inner");ya=Qa.find(".pdd16-step-buying-v2__evoucher");var ua=z.drawObj.price.priceWrapper.info,Ea=g(".pdd16-step-buying__header-price-text")[0].innerText.split(" "+qa+" "),Ia=Ea[0];Ea=1<Ea.length?Ea[1]:"";var wa=
1723"";"bg"==fa&&(Ia=document.querySelector(".pdd16-step-buying__header-price-text"),Ia.querySelectorAll("sup").forEach(function(Ca){return Ca.replaceWith(","+Ca.textContent)}),Ia=Ia.textContent.trim(),Ea=$jscomp.makeIterator(Ia.split(" "+qa+" ")),Ia=Ea.next().value,Ea=Ea.next().value,wa=function(Ca){return Ca.replace(/,(\d+)(?!\d)/g,"\x3csup\x3e$1\x3c/sup\x3e")},Ia=wa(Ia),Ea=Ea?wa(Ea):"");g(".pdd16-step-buying-v2__bottom-headline-text").text(z.displayName);g("#primaryInfoGoCartAddOn").text(Granite.I18n.get("Buy now"));
1724Ia&&Y.find(".final-text strong").html(Ia);Ea&&Y.find(".monthly-text").html(qa+" "+Ea);"in"==fa?(wa=ua.savePrice,Y.find(".pdd16-step-buying-v2__bottom-price-tax").text(""+ua.orignalPriceAddText),wa&&(Y.find(".sale-text").text(wa),Y.find(".pdd16-step-buying-v2__bottom-price-tax").append('\x3cinput type\x3d"hidden" class\x3d"hiddenSavePrice" value\x3d"'+ua.unformattedSavePrice+'"/\x3e'))):Y.find(".pdd16-step-buying-v2__bottom-price-save").remove();z.hasVoucher&&ya.show();k(I)}else p(I);R.hide();l.scrollTo(0,
17250);Ka.show();if(da||na){Y=g("[class*\x3d'feature-benefit']");for(ya=0;ya<Y.length;ya++)Y[ya].remove();Y=g("[class*\x3d'three-column-carousel']");for(ya=0;ya<Y.length;ya++)Y[ya].remove();g(".video-wrapper").remove();Y=g(".root.responsivegrid \x3e div");for(ua=0;ua<Y.length;ua++)ya=Y[ua].classList,ya.value.includes("aem-Grid--12")||Y[ua].remove();0<g(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&g(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(L)for(Y=
1726g(".root.responsivegrid \x3e div"),ua=0;ua<Y.length;ua++)ya=Y[ua].classList,ya.value.includes("aem-Grid--default--12")||Y[ua].remove();Ka.siblings().add(Ka.parent().siblings()).hide();setTimeout(function(){z.useAddonV2?l.sg.components.stepbuyingV2.init():l.sg.components.stepbuying.init(
1726)},50);0===g(".scrollbar__contents .pdd16-step-buying__card").not(".is-item-visible").length&&g(".pdd16-step-buying__cta-more").hide();T.detailSharedObj.hasVoucher?(H(),_satellite.setVar("Add Page Name","evoucher")):
1727_satellite.setVar("Add Page Name","add on");_satellite.track("page view");Oa.get("useStaticTitle")&&(g(".pdd16-step-buying__headline")[0].innerHTML=Oa.get("staticTitle"));Oa.get("useStaticSubTitle")&&g(".pdd16-step-buying__sub-headline").text(Oa.get("staticSubTitle"))}}function F(Y,ja){for(var ya=0;ya<Y.length;ya++)if(Y[ya]===ja)return!0;return!1}function W(Y,ja,ya){var Aa="",Ga=g("#scene7domain").val();Y&&(-1<Y.indexOf("?")&&(Y=Y.replace("medias",""),Y=Y.substring(0,Y.indexOf("?")),Y+="?"+ja),-1<
1728Y.indexOf("https:")||-1<Y.indexOf("http:")||-1<Y.indexOf("//stg-images.samsung.com/")||-1<Y.indexOf("//images.samsung.com/")||-1<Y.indexOf("image.samsung.com/")||-1<Y.indexOf("//stg-images.samsung.com.cn/")||-1<Y.indexOf("//images.samsung.com.cn/")||-1<Y.indexOf("image.samsung.com.cn/")?Aa=Y:(ya&&(Ga=Ga.replace("/image/","/content/")),Aa=Ga+Y));return Aa}function aa(Y,ja,ya){ja="";var Aa=g("#scene7domain").val();Y&&(-1<Y.indexOf("?")&&(Y=Y.replace("medias",""),Y=Y.substring(2,Y.indexOf("?")),Y=Y.substring(0,
1729Y.lastIndexOf("-"))),-1<Y.indexOf("https:")||-1<Y.indexOf("http:")||-1<Y.indexOf("//stg-images.samsung.com/")||-1<Y.indexOf("//images.samsung.com/")||-1<Y.indexOf("image.samsung.com/")||-1<Y.indexOf("//stg-images.samsung.com.cn/")||-1<Y.indexOf("//images.samsung.com.cn/")||-1<Y.indexOf("image.samsung.com.cn/")?ja=Y:(ya&&(Aa=Aa.replace("/image/","/content/")),ja=Aa+Y));return ja}function x(){X=[];V=[];O=[];t={}}function U(Y){var ja="",ya="",Aa=a[Y].priceValue,Ga=a[Y].promotionPriceValue?a[Y].promotionPriceValue:
1730Aa,ua=Ga?Aa-Ga:0,Ea=a[Y].promotionPrice?a[Y].promotionPrice:a[Y].price;var Ia='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\''+W(a[Y].imageUrl,"$LazyLoad_Home_PNG$")+"' data-mobile-src\x3d\""+W(a[Y].imageUrl,"$LazyLoad_Home_PNG$")+'"  alt\x3d"" role\x3d"img"\x3e \n\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d\''+W(a[Y].imageUrl)+"' data-mobile-src\x3d\""+W(a[Y].imageUrl)+'" alt\x3d""  role\x3d"img"\x3e';ya+='\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\n\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+
1731a[Y].name+'\x3c/strong\x3e \n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+a[Y].name+'\x3c/div\x3e \n\t\t\t\t\t\t\t\t\x3c/div\x3e \n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"image image--main-loaded"\x3e '+Ia+" \x3c/div\x3e ";if(Ia="outofstock"!==(a[Y].stocklevel?a[Y].stocklevel.toLowerCase():"outofstock")?!0:!1)if(z.addonBundleRelatedData&&0!=z.addonBundleRelatedData.length)for(var wa=$jscomp.makeIterator(z.addonBundleRelatedData),Ca=wa.next();!Ca.done;Ca=wa.next()){if(Ca=Ca.value,
1732Ca.bundleModelCode===a[Y].modelCode){var Xa=[];for(Pa in Ca)"bundleModelCode"!==Pa&&Ca[Pa]&&(Xa[Ca[Pa].groupCode]||(Xa[Ca[Pa].groupCode]=[]),"outOfStock"!==Ca[Pa].stocklevel&&Ca[Pa].colorCode&&Xa[Ca[Pa].groupCode].push(Ca[Pa]));for(var Ta in Xa)Ia&&0==Xa[Ta].length&&(Ia=!1)}}else Ia=!1;var Pa=Ia?za:ka;ya+='\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-option" style\x3d"height:84.4375px"\x3e \n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__color-name"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e \n\t\t\t\t\t\t\t\t\t\x3c/div\x3e \n\t\t\t\t\t\t\t\t\x3c/div\x3e \n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-badge"\x3e \n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"badge-energy-label"\x3e \n\t\t\t\t\t\t\t\t\t\x3c/div\x3e \n\t\t\t\t\t\t\t\t\x3c/div\x3e \n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+
1733Ea+'\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"card-was '+(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eOriginal Price: '+Aa+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+Ga+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+(ua&&!Da?"\x3cdel\x3e"+a[Y].price+"\x3c/del\x3e":"")+"\n\t\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e";
1733"cn"==fa&&frontModel.isComingSoon&&1==frontModel.isComingSoon?ya+='\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--icon cta--icon-leading bundleSelect cta--bundle js-cta-stock cta--outlined"  data-gs-flag\x3d"ComingSoon" title\x3d"SELECT" id\x3d"bundleSelect" data-modelcode\x3d"'+
1734a[Y].modelcode+'" data-originPrice\x3d'+Aa+" data-savePrice\x3d"+ua+" data-promotionPrice\x3d"+Ga+' aria-selected\n\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-product detail-popup-add" an-ca\x3d"option click" data-text\x3d"'+za+'" data-text-selected\x3d"'+Na+'"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cspan\x3e'+Pa+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/use\x3e \n\t\t\t\t\t\t\t\t\t\t\x3c/svg\x3e \n\t\t\t\t\t\t\t\t\t\x3c/button\x3e ':
1735("cn"!=fa||Ia||(ja=' data-gs-flag\x3d"GetStock"'),ya+='\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--icon cta--icon-leading bundleSelect cta--bundle '+(Ia?"cta--black":"js-cta-stock cta--outlined")+'" '+ja+' title\x3d"SELECT" id\x3d"bundleSelect" data-modelcode\x3d"'+a[Y].modelcode+'" data-originPrice\x3d'+Aa+" data-savePrice\x3d"+ua+" data-promotionPrice\x3d"+Ga+' aria-selected\n\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-product detail-popup-add" an-ca\x3d"option click" data-text\x3d"'+
1736za+'" data-text-selected\x3d"'+Na+'"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cspan\x3e'+Pa+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/use\x3e \n\t\t\t\t\t\t\t\t\t\t\x3c/svg\x3e \n\t\t\t\t\t\t\t\t\t\x3c/button\x3e ');return ya}function B(Y,ja,ya){var Aa="",Ga=r?Y.thirdPASeller:"",ua=Y.modelList[Y.frontModelIdx],Ea=ua.fmyChipList,Ia="";if(Ea&&0<Ea.length)for(var wa=
17370;wa<Ea.length;wa++)if("COLOR"==Ea[wa].fmyChipType){Ia=""!==ua.fmyChipList[wa].fmyChipLocalName?ua.fmyChipList[wa].fmyChipLocalName:ua.fmyChipList[wa].fmyChipName;break}Ea=ua.isStock;var Ca=y.setPriceInfo(ua);wa=Ca.promotionPrice;var Xa=S?"evoucher":"add-on",Ta="";Q=ja;var Pa=ua.thumbUrl?ua.thumbUrl:"",Wa=ua.thumbUrlAlt?ua.thumbUrlAlt:"";Pa&&(Ta='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+aa(Pa,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+aa(Pa,"$LazyLoad_Home_PNG$")+
1738'" alt\x3d"'+Wa+'" role\x3d"img" data-img-src\x3d"'+Pa+'"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+aa(Pa,"$240_240_PNG$")+'" data-mobile-src\x3d"'+aa(Pa,"$480_480_PNG$")+'" alt\x3d"'+Wa+'" role\x3d"img"\x3e');Wa=Pa="";if(ua.commercialFlag)Pa=ua.commercialFlag,Wa="badge-icon--bg-color-teal";else if(ua.topFlags&&ua.topFlags.iconTitle&&ua.topFlags.iconTypeCd)switch(Pa=ua.topFlags.iconTypeCd,Pa.replace(/ /g,"").toUpperCase()){case "N":Pa=Granite.I18n.get("new");
1739Wa="badge-icon--bg-color-blue";break;case "H":Pa=Granite.I18n.get("hot");Wa="badge-icon--bg-color-red";break;case "B":Pa=Granite.I18n.get("best seller");Wa="badge-icon--bg-color-orange";break;case "U":Pa=ua.topFlags.iconTitle,Wa="badge-icon--bg-color-teal"}Aa=Aa+('\x3c!--/* (2022.06.21 \uc218\uc815) Badge \ucd94\uac00: badge \uc5c6\uc744 \uc2dc .pdd16-step-buying__card-header-badge \uc601\uc5ed \uc720\uc9c0 */--\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-header-badge"\x3e\n\t\t\t\t\x3c!--/* new\uc758 bg color : blue, badge-icon--bg-color-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* best seller\uc758 bg color : orange, badge-icon--bg-color-orange \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* hot\uc758 bg color : red, badge-icon--bg-color-red \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* special deal\uc758 bg color : blue, badge-icon--bg-color-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* eco\uc758 bg color : green, badge-icon--bg-color-green \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* trade-in\uc758 bg color : teal, badge-icon--bg-color-teal \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* gold tier\uc758 bg color : gold, badge-icon--bg-color-gold \uc
1739d94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* silver tier\uc758 bg color : silver, badge-icon--bg-color-silver \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* registered tier\uc758 bg color : silver, badge-icon--bg-color-neutral-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Dark Cyan, badge-icon--bg-color-teal \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Black, badge-icon--bg-color-black \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Red, badge-icon--bg-color-red \ucd94\uac00 */--\x3e\n\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Blue, badge-icon--bg-color-blue \ucd94\uac00 */--\x3e\n\t\t\t\t'+
1740(Wa?'\x3cspan class\x3d"badge-icon badge-icon--label '+Wa+'"\x3e'+Pa+"\x3c/span\x3e":"")+'\n\t\t\t\x3c/div\x3e\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e')+(ua.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+ua.displayName+'\x3c/div\x3e\n            \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+Ta+"\n\t\t\t\x3c/div\x3e\n\t\t\t\t");Ta=da?": "+Ia:"\x26nbsp;"+Ia;Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-seller"\x3e\n\t\t\t\t\x3cp class\x3d"pdd16-step-buying__card-seller-text"\x3e\n\t\t\t\t\t'+
1741(Ga?'Granite.I18n.get("Seller") : thirdPASeller':"")+'\n\t\t\t\t\x3c/p\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-option"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\t'+(Ia?'\x3cdiv class\x3d"option-selector__color-name"\x3e\n\t\t\t\t\t\t\t\t'+Granite.I18n.get("Color")+' \n\t\t\t\t\t\t\t\t\x3cspan class\x3d"color-name-text"\x3e'+Ta+"\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t"+Ua(Y,!1,ja,ya)+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";
1742Y=ua.energyLabelGrade&&ua.energyFileUrl;Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-badge"\x3e\n\t\t\t\t\x3cdiv class\x3d"badge-enery-label"\x3e\n\t\t\t\t\t'+(ua.energyLabelGrade&&ua.ficheFileUrl?'\x3ca href\x3d"'+ua.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+Granite.I18n.get("Open in a new window")+'" class\x3d"cta-text" an-tr\x3d"pdd16_product bought together-'+oa+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+Xa+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+
1743"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Y?'\x3ca class\x3d"badge '+ua.energyLabelClass2+'" href\x3d"'+ua.energyFileUrl+'" target\x3d"_blank" title\x3d"'+ua.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+ua.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+ua.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";Y=null!==Ca.promotionPrice&&""!==Ca.promotionPrice&&"0"!==Ca.promotionPrice&&
1744Number(parseFloat(Ca.productPrice).toFixed(2))!==Number(parseFloat(Ca.promotionPrice).toFixed(2))?!0:!1;Z&&(Y=!1);ya="";M&&ua.monthlyPriceInfo&&ua.monthlyPriceInfo.leasingMonthly&&ua.monthlyPriceInfo.leasingMonths&&(ya=currencyComma(ua.monthlyPriceInfo.leasingMonthly,ra),Ga=ua.monthlyPriceInfo.leasingMonths,ya='\x3cdiv class\x3d"pdd16-step-buying__card-price-description"\x3e\x3cbutton class\x3d"pdd16-step-buying__card-price-description--button" type\x3d"button"\x3e\x3cspan\x3e'+(Granite.I18n.get("From {0}/mo",
1745[ya])+" "+Granite.I18n.get("for {0} mos",[Ga]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==fa||Ea?"co"===fa&&Ca.vatPrice?Aa+='\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price pdd16-step-buying__card-price--samcol"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-excluding-vat"\x3ePrecio sin IVA: '+Ca.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+Ca.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+
1746Ca.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+Ca.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":Y?M?Ca.lowestWasPrice?((Y=Math.round((parseFloat(Ca.productPrice)-parseFloat(Ca.lowestWasPrice))/parseFloat(Ca.lowestWasPrice)*100))&&0<Y&&(Y="+"+Y),Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+
1747Ca.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-text"\x3e'+Granite.I18n.get("Best price in the past 30 days:")+" "+currencyComma(Ca.lowestWasPrice,ra)+" ("+Y+'%)\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-suggested"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e\x3cdel\x3e'+Ca.productPriceDisplay+'\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+
1748Granite.I18n.get("Save {0}",Ca.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t"+ya+"\n\t\t\t\t\t\t\t\t \x3c/div\x3e"):Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+Ca.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t                \x3cspan class\x3d"card-was '+(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+Ca.productPriceDisplay+
1749'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+Ca.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+Ca.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==fa?(Y="MRP: "+Ca.productPriceDisplay+" (Incl. of all taxes)",ya=Ca.saveText?'\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",Ca.saveText)+"\x3c/span\x3e":"",Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+
1750Ca.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-tax"\x3e'+Y+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+ya+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t              \x3c/div\x3e"):Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+Ca.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t                \x3cspan class\x3d"card-was '+
1751(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+Ca.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+Ca.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!va&&"tr"!==fa||va&&"pl"!==fa?"\x3cdel\x3e"+Ca.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":d&&Ca.lowestWasPrice?(Ca.savePriceTemp=0,0<Ca.lowestWasPrice&&
1752(Ca.promotionPrice?(Ca.lowestWasPrice<=Ca.productPrice&&Ca.lowestWasPrice>
1752Ca.promotionPrice&&(Ca.productPrice=Ca.lowestWasPrice),Ca.savePriceTemp=Ca.productPrice-Ca.promotionPrice):Ca.lowestWasPrice<=Ca.productPrice&&(Ca.productPrice=Ca.lowestWasPrice)),Ca.productPriceDisplay=currencyComma(Ca.productPrice,ra),Ca.saveText=0<Ca.savePriceTemp?currencyComma(Ca.savePriceTemp,ra):"",Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+
1753Ca.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-suggested pdd16-step-buying--no-line-through"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+Ca.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",Ca.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e"):
1754Aa="in"==fa?Aa+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+Ca.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-tax"\x3eMRP: '+(Ca.productPriceDisplay+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t              \x3c/div\x3e")):
1755Aa+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+(Ca.promotionPrice&&Ca.promotionPrice<=Ca.productPrice?Ca.promotionPriceDisplay:Ca.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e"):Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\x3c/div\x3e';ya=X.includes(ja+"-"+ua.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Ta=Granite.I18n.get("COMING SOON");Ga=!1;Ia="";if("cn"==fa&&ua.isComingSoon&&1==
1756ua.isComingSoon)Y=Granite.I18n.get("Coming Soon Title"),Ia=' data-gs-flag\x3d"ComingSoon"';else if(Ea?Y=ya?Na:za:(Y=Granite.I18n.get("Get Stock Alert"),"cn"==fa&&(Ia=' data-gs-flag\x3d"GetStock"')),null==Ea||void 0==Ea||null==Ca||void 0==Ca)Y=Ta,Ga=!0;Ta=null!==Ca.promotionPrice&&""!==Ca.promotionPrice&&"0"!==Ca.promotionPrice?Ca.promotionPrice:Ca.productPrice;Pa=Ca.productPrice;Ca=Ca.savePriceTemp;Wa=r?"pdd16_step buying-"+oa+"-cta-button":"pdd16_product bought together-"+oa+"-popup-add";var ab=
1757da?ua.shopSKU:ua.modelCode;Aa+='\x3cdiv class\x3d"pdd16-step-buying__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Ga?"cta--disabled":"")+" cta cta--contained cta--icon cta--icon-leading  cta--2line-mo "+(Ea?"cta--black":"js-cta-stock cta--outlined")+"  "+(ya?" cta--on":"")+'" '+Ia+' title\x3d"'+Y+'" aria-selected\x3d""  \n\t\t\t\t\t\tan-tr\x3d"'+Wa+'" an-ca\x3d"'+(Ea?"option click":"buy cta")+'" an-ac\x3d"'+(Ea?"bridge":"stock alert")+'" an-la\x3d"'+(r?"vd add-on":Xa)+":"+(Ea?"add item":"get stock alert")+
1758'" \n\t\t\t\t\t\tdata-modelcode\x3d"'+ab+'" data-modelname\x3d"'+ua.modelName+'" data-shopsku\x3d"'+ua.shopSKU+'" data-price\x3d'+Ta+" data-text\x3d"+za+' data-text-selected\x3d"'+Na+'" data-oriprice\x3d"'+Pa+'" data-savePrice\x3d"'+Ca+'"\x3e\n\t\t\t\t\t\t\t\x3cspan\x3e'+Y+'\x3c/span\x3e\n\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\n\t\t\t\t\t\t\t\t\x3c/use\x3e\n\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t'+
1759(r?'\x3cdiv class\x3d"pdd16-step-buying__card-cta-learn-more"\x3e\n\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--outlined cta--black cta--2line-mo learn-more-btn" an-tr\x3d"pdd16_step buying-product detail-cta-button" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"vd add-on:learn more" data-modelcode\x3d"'+ab+'" data-modelname\x3d"'+ua.modelName+'"\x3e\n\t\t\t\t\t\t\t'+Granite.I18n.get("Learn more")+"\n\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\x3c/div\x3e";return'\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+
1760ja+"-"+ua.idx+'" data-price\x3d"'+wa+'"\x3e\n\t\t\t\t\t\t\t\t\t'+Aa+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e"}function w(Y,ja,ya){var Aa="",Ga=r?Y.thirdPASeller:"",ua=Y.modelList[Y.frontModelIdx],Ea=ua.fmyChipList,Ia="";if(Ea&&0<Ea.length)for(var wa=0;wa<Ea.length;wa++)if("COLOR"==Ea[wa].fmyChipType){Ia=""!==ua.fmyChipList[wa].fmyChipLocalName?ua.fmyChipList[wa].fmyChipLocalName:ua.fmyChipList[wa].fmyChipName;break}Ea=ua.isStock;wa=y.setPriceInfo(ua);
1760var Ca=wa.promotionPrice,Xa=S?"evoucher":"add-on",Ta="";
1761Q=ja;var Pa=ua.thumbUrl?ua.thumbUrl:"",Wa=ua.thumbUrlAlt?ua.thumbUrlAlt:"";Pa&&(Ta='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+aa(Pa,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+aa(Pa,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+Wa+'" role\x3d"img" data-img-src\x3d"'+Pa+'"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+aa(Pa,"$240_240_PNG$")+'" data-mobile-src\x3d"'+aa(Pa,"$480_480_PNG$")+'" alt\x3d"'+Wa+'" role\x3d"img"\x3e');
1762Wa=Pa="";if(ua.commercialFlag)Pa=ua.commercialFlag,Wa="badge-icon--bg-color-teal";else if(ua.topFlags&&ua.topFlags.iconTitle&&ua.topFlags.iconTypeCd)switch(Pa=ua.topFlags.iconTypeCd,Pa.replace(/ /g,"").toUpperCase()){case "N":Pa=Granite.I18n.get("new");Wa="badge-icon--bg-color-blue";break;case "H":Pa=Granite.I18n.get("hot");Wa="badge-icon--bg-color-red";break;case "B":Pa=Granite.I18n.get("best seller");Wa="badge-icon--bg-color-orange";break;case "U":Pa=ua.topFlags.iconTitle,Wa="badge-icon--bg-color-teal"}Aa=
1763Aa+('\x3c!--/* (2022.06.21 \uc218\uc815) Badge \ucd94\uac00: badge \uc5c6\uc744 \uc2dc .pdd16-step-buying__card-header-badge \uc601\uc5ed \uc720\uc9c0 */--\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-header-badge"\x3e\n\t\t\t\t\t\x3c!--/* new\uc758 bg color : blue, badge-icon--bg-color-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* best seller\uc758 bg color : orange, badge-icon--bg-color-orange \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* hot\uc758 bg color : red, badge-icon--bg-color-red \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* special deal\uc758 bg color : blue, badge-icon--bg-color-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* eco\uc758 bg color : green, badge-icon--bg-color-green \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* trade-in\uc758 bg color : teal, badge-icon--bg-color-teal \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* gold tier\uc758 bg color : gold, badge-icon--bg-color-gold \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* silver tier\uc758 bg color : silver, badge-icon--bg-color-silver \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* registered tier\uc758 bg color : silver, badge-icon--bg-color-neutral-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Dark Cyan, badge-icon--bg-color-teal \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Black, badge-icon--bg-color-black \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Red, badge-icon--bg-color-red \ucd94\uac00 */--\x3e\n\t\t\t\t\t\x3c!--/* user key-in\uc758 bg color : Blue, badge-icon--bg-color-blue \ucd94\uac00 */--\x3e\n\t\t\t\t\t'+
1764(Wa?'\x3cspan class\x3d"badge-icon badge-icon--label '+Wa+'"\x3e'+Pa+"\x3c/span\x3e":"")+'\n\t\t\t\t\x3c/div\x3e\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t')+(Ta+'\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-title"\x3e\n\t\t\t\t\t\x3cstrong class\x3d"pdd16-step-buying-v2__card-title-text"\x3e'+ua.displayName+"\x3c/strong\x3e\n\t            \x3c/div\x3e");Ta=da?": "+Ia:"\x26nbsp;"+Ia;Aa+='\x3cp class\x3d"pdd16-step-buying-v2__card-text"\x3e\x3c/p\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-seller"\x3e\n\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying-v2__card-seller-text"\x3e\n\t\t\t\t\t\t'+
1765(Ga?'Granite.I18n.get("Seller") : thirdPASeller':"")+'\n\t\t\t\t\t\x3c/p\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-option"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"option-selector '+(Ia?"option-selector__color-text":"")+'"\x3e\n\t\t\t\t\t\t'+(Ia?'\x3cdiv class\x3d"option-selector__color-name"\x3e\n\t\t\t\t\t\t\t\t\t'+Granite.I18n.get("Color")+' \n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"color-name-text"\x3e'+Ta+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t\t"+
1766Ua(Y,!1,ja,ya)+"\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e";Y=ua.energyLabelGrade&&ua.energyFileUrl;Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-badge"\x3e\n\t\t\t\t\x3cdiv class\x3d"badge-enery-label"\x3e\n\t\t\t\t\t'+(ua.energyLabelGrade&&ua.ficheFileUrl?'\x3ca href\x3d"'+ua.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+Granite.I18n.get("Open in a new window")+'" class\x3d"cta-text" an-tr\x3d"pdd16_product bought together-'+oa+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+
1767Xa+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Y?'\x3ca class\x3d"badge '+ua.energyLabelClass2+'" href\x3d"'+ua.energyFileUrl+'" target\x3d"_blank" title\x3d"'+ua.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+ua.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+ua.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";Y=
1768null!==wa.promotionPrice&&""!==wa.promotionPrice&&"0"!==wa.promotionPrice&&Number(parseFloat(wa.productPrice).toFixed(2))!==Number(parseFloat(wa.promotionPrice).toFixed(2))?!0:!1;Z&&(Y=!1);ya="";M&&ua.monthlyPriceInfo&&ua.monthlyPriceInfo.leasingMonthly&&ua.monthlyPriceInfo.leasingMonths&&(ya=currencyComma(ua.monthlyPriceInfo.leasingMonthly,ra),Ga=ua.monthlyPriceInfo.leasingMonths,ya='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-description"\x3e\x3cbutton class\x3d"pdd16-step-buying-v2__card-price-description--button" type\x3d"button"\x3e\x3cspan\x3e'+
1769(Granite.I18n.get("From {0}/mo",[ya])+" "+Granite.I18n.get("for {0} mos",[Ga]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==fa||Ea?"co"===fa&&wa.vatPrice?Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price pdd16-step-buying__card-price--samcol"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-excluding-vat"\x3ePrecio sin IVA
1769: '+wa.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+wa.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+
1770wa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+wa.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":Y?M?wa.lowestWasPrice?((Y=Math.round((parseFloat(wa.productPrice)-parseFloat(wa.lowestWasPrice))/parseFloat(wa.lowestWasPrice)*100))&&0<Y&&(Y="+"+Y),Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+
1771wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-text"\x3e'+Granite.I18n.get("Best price in the past 30 days:")+" "+currencyComma(wa.lowestWasPrice,ra)+" ("+Y+'%)\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-suggested"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e\x3cdel\x3e'+wa.productPriceDisplay+'\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+
1772Granite.I18n.get("Save {0}",wa.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t"+ya+"\n\t\t\t\t\t\t\t\t \x3c/div\x3e"):Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+wa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t                \x3cspan class\x3d"card-was '+(P?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\n\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+
1773wa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+wa.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+wa.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==fa?(Y="MRP: "+wa.productPriceDisplay+" (Incl. of all taxes)",ya=wa.saveText?'\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+Granite.I18n.get("Save {0}",wa.saveText)+"\x3c/span\x3e":"",Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+
1774wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-tax"\x3e'+Y+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+ya+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t              \x3c/div\x3e"):Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+wa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t                \x3cspan class\x3d"card-was '+
1775(P?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\n\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+wa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+wa.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!va&&"tr"!==fa||va&&"pl"!==fa?"\x3cdel\x3e"+wa.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":d&&wa.lowestWasPrice?(wa.savePriceTemp=0,0<wa.lowestWasPrice&&
1776(wa.promotionPrice?(wa.lowestWasPrice<=wa.productPrice&&wa.lowestWasPrice>wa.promotionPrice&&(wa.productPrice=wa.lowestWasPrice),wa.savePriceTemp=wa.productPrice-wa.promotionPrice):wa.lowestWasPrice<=wa.productPrice&&(wa.productPrice=wa.lowestWasPrice)),wa.productPriceDisplay=currencyComma(wa.productPrice,ra),wa.saveText=0<wa.savePriceTemp?currencyComma(wa.savePriceTemp,ra):"",Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+
1777wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-suggested pdd16-step-buying-v2--no-line-through"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+wa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+Granite.I18n.get("Save {0}",wa.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e"):
1778Aa="in"==fa?Aa+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-tax"\x3eMRP: '+(wa.productPriceDisplay+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t              \x3c/div\x3e")):
1779Aa+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+(wa.promotionPrice&&wa.promotionPrice<=wa.productPrice?wa.promotionPriceDisplay:wa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e"):Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\x3c/div\x3e';ya=X.includes(ja+"-"+ua.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Ga=Granite.I18n.get("COMING SOON");Ia=!1;Ta="";if("cn"==fa&&ua.isComingSoon&&
17801==ua.isComingSoon)Y=Granite.I18n.get("Coming Soon Title"),Ta=' data-gs-flag\x3d"ComingSoon"';else if(Ea?Y=ya?Na:za:(Y=Granite.I18n.get("Get Stock Alert"),"cn"==fa&&(Ta=' data-gs-flag\x3d"GetStock"')),null==Ea||void 0==Ea||null==wa||void 0==wa)Y=Ga,Ia=!0;Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Ia?"cta--disabled":"")+" cta cta--black "+(Ea?"cta--contained":"js-cta-stock cta--outlined")+"  "+(ya?" cta--on":"")+'" '+Ta+' title\x3d"'+Y+'" aria-selected\x3d""  \n\t\t\t\t\t\tan-tr\x3d"'+
1781(r?"pdd16_step buying-"+oa+"-cta-button":"pdd16_product bought together-"+oa+"-popup-add")+'" an-ca\x3d"'+(Ea?"option click":"buy cta")+'" an-ac\x3d"'+(Ea?"bridge":"stock alert")+'" an-la\x3d"'+(r?"vd add-on":Xa)+":"+(Ea?"add item":"get stock alert")+'" \n\t\t\t\t\t\tdata-modelcode\x3d"'+(da?ua.shopSKU:"in"!==fa?ua.modelCode:ua.shopSKU)+'" '+(ua.childModelCode?'data-childmodelcode\x3d"'+ua.childModelCode+'"':"")+' data-modelname\x3d"'+ua.modelName+'" data-shopsku\x3d"'+ua.shopSKU+'" data-price\x3d'+
1782(null!==wa.promotionPrice&&""!==wa.promotionPrice&&"0"!==wa.promotionPrice?wa.promotionPrice:wa.productPrice)+" data-text\x3d"+za+' data-text-selected\x3d"'+Na+'" data-oriprice\x3d"'+wa.productPrice+'" data-savePrice\x3d"'+wa.savePriceTemp+'"\x3e\n\t\t\t\t\t\t\t\x3cspan\x3e'+Y+"\x3c/span\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e";return'\x3cdiv class\x3d"pdd16-step-buying-v2__card swiper-slide '+(ya?"is-selected":"")+'" role\x3d"listitem"\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-inner" data-index\x3d"'+
1783ja+"-"+ua.idx+'" data-price\x3d"'+Ca+'"\x3e\n\t\t\t\t\t'+Aa+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e"}function e(Y,ja){null==Y.modelList[ja].displayName&&(Y.modelList[ja].displayName="");var ya={};for(Ea in Y.modelList){var Aa=Y.modelList[Ea].fmyChipList,Ga;for(Ga in Aa){var ua=Aa[Ga].fmyChipType+"+"+Aa[Ga].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+Aa[Ga].fmyChipLocalName.replace('"',"").replace("\x26quot;","");ya[ua]=void 0==ya[ua]?Ea:ya[ua]+(","+Ea)}}var Ea=[];Aa={};if(Y.chipOptions)for(Ga=
17840;Ga<Y.chipOptions.length;Ga++){var Ia=Y.chipOptions[Ga],wa=Ia.fmyChipType,Ca=Ia.optionList,Xa;for(Xa in Ca)ua=Ia.fmyChipType+"+"+Ca[Xa].optionCode.replace('"',"").replace("\x26quot;","")+"+"+Ca[Xa].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=ya[ua]&&(Ca[Xa].modelIdx=ya[ua]);Aa[wa]={};Aa[wa].optionList=Ca;Ea.push(wa)}Y.viewOptionObj=Aa;Y.optionTypeList=Ea;Y.frontModelIdx=ja;return Y}function p(Y){var ja="",ya="";z.hasBundle&&(ya=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());
1785x();S=l.sg.components.dynamic.detailSharedObj.hasVoucher;xa=g(".pdd16-step-buying__header-price-text")[0].innerHTML;Ma=Object.keys(Y).length;if(0<Object.keys(Y).length){var Aa="";g.each(Y,function(Ea,Ia){Ia=Y[Ea].category.productList;for(var wa=q=0;wa<Ia.length;wa++){var Ca=Ia[wa];if(null!=Ca.modelList&&0<Ca.modelList.length){for(var Xa=0,Ta=null,Pa=0;Pa<Ca.modelList.length;Pa++){var Wa=Ca.modelList[Pa],ab=Wa.isStock;Wa.selected&&"Y"===Wa.selected&&(Xa=Pa,ab&&(Ta=Pa))}if(null==Ta)for(Pa=0;Pa<Ca.modelList.length;Pa++)if(Wa=
1786Ca.modelList[Pa],Wa.isStock){Ta=Pa;break}null==Ta&&(Ta=Xa);Ca=e(Ca,Ta);Aa+=B(Ca,Ea)}q++}if(Y[Ea].category.display_name==ya){Ia=Y[Ea];a=Ia.category.productList;for(var Ya in Y[Ea].category.productList)wa=Y[Ea].category.productList[Ya],Aa+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+Ia.category.key+"-"+Ya+'-0" data-price\x3d"'+(wa.promotionPriceValue?wa.promotionPriceValue:wa.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+U(Ya)+"\n\t\t\t\t\t\t\t\x3c/div\x3e"}ja+='  \x3cdiv class\x3d"pdd16-step-buying__tab pdd16-step-buying__2column swiper-slide" data-button-text\x3d"'+
1787(Number(Ea)+1==Ma?Fa:Ba)+'"\x3e\n\t\t            \x3cdiv class\x3d"pdd16-step-buying__list-type"\x3e\n\t\t            \x3ca class\x3d"btn-type on" aria-label\x3d"2column"\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(-344 -388) translate(344 388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t                  \x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 388)" /\x3e\n                        \x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 394.649)" /\x3e\n                        \x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 388)" /\x3e\n                        \x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 394.649)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t            \x3ca class\x3d"btn-type" aria-label\x3d"1column"\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(349 388) translate(-349 -388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t                  \x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 388.732) translate(7 1.268) translate(-349 -388)" /\x3e\n                        \x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 395.732) translate(7 1.268) translate(-349 -388)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t          \x3c/div\x3e\n\t\t          \x3cdiv class\x3d"scrollbar"\x3e\n\t\t            \x3cdiv class\x3d"scrollbar__contents"\x3e\n\t\t            \t'+
1788Aa+'\n\t\t              \x3cdiv class\x3d"pdd16-step-buying__view-more"\x3e\n\t\t                \x3cbutton type\x3d"button" class\x3d"cta" aira-label\x3d"'+J+'"\x3e\n\t\t                  \x3csvg class\x3d"icon next" focusable\x3d"false"\x3e\n\t\t                    \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t                  \x3c/svg\x3e\n\t\t                  \x3cspan class\x3d"cta-text"\x3e'+J+'\x3c/span\x3e\n\t\t                  \x3csvg class\x3d"icon down" focusable\x3d"false"\x3e\n\t\t                    \x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\n\t\t                  \x3c/svg\x3e\n\t\t                \x3c/button\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e\n\t\t        \x3c/div\x3e';
1789Aa=""})}g(".pdd16-step-buying .pdd16-step-buying__card-wrap .swiper-wrapper").html(ja);var Ga="";if(r&&!da){g("#pdd16-step-buying").addClass("pdd16-step-buying--default");Ga=1<g(".pdd16-step-buying .pdd16-step-buying__tab-wrap .tab__list li").length?'\n\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-price"\x3e\n\t\t\t                \x3cp class\x3d"pdd16-step-buying__footer-text"\x3e\x3cstrong\x3e'+Ha+"\x3c/strong\x3e"+(Oa.get("useVATInclusiveArea")?Va:"")+'\x3c/p\x3e\n\t\t\t                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+
1790xa+'\x3c/p\x3e\n\t\t\t              \x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--emphasis cta--step" aria-label\x3d"Next" id\x3d"nextBtn"\x3e\n\t\t\t\t\t\t\t\t'+Ba+"\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\x3c/div\x3e":'\n\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--emphasis cta--step" aria-label\x3d"Next" id\x3d"primaryInfoGoCartAddOn"\x3e\n\t\t\t\t\t\t\t\t'+
1791Fa+"\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t";var ua=Granite.I18n.get("*Savings based on regular Samsung.com price. Discount applied automatically at checkout when two or more qualifying products in basket.");"cn"!=fa&&(Ga+='\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__footer-disclaimer"\x3e'+ua+"\x3c/p\x3e\n\t\t\t\t\t\t")}else Ga='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-price"\x3e\n\t                \x3cp class\x3d"pdd16-step-buying__footer-text"\x3e\x3cstrong\x3e'+
1792Ha+"\x3c/strong\x3e"+(Oa.get("useVATInclusiveArea")?Va:"")+'\x3c/p\x3e\n\t                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+xa+'\x3c/p\x3e\n\t              \x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta-wrap"\x3e\n\t                \x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t\t                \x3cbutton class\x3d"cta cta--underline cta--emphasis addon cta--skip"\x3e\n\t\t                \t'+Granite.I18n.get("Skip")+'\n\t\t              \t\x3c/button\x3e\n\t            \t\x3c/div\x3e\n\t            \x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t            \t\x3cbutton class\x3d"cta cta--contained cta--emphasis" id\x3d"primaryInfoGoCartAddOn"\x3e\n\t                \t'+
1793(La?Granite.I18n.get("CONTINUE(ADD_ON)"):Granite.I18n.get("CONTINUE"))+"\n\t              \t\x3c/button\x3e\n\t            \x3c/div\x3e\n\t          \x3c/div\x3e";g(".pdd16-step-buying__footer").html(Ga);A()}function k(Y){var ja="",ya="";z.hasBundle&&(ya=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());x();S=l.sg.components.dynamic.detailSharedObj.hasVoucher;xa=g(".pdd16-step-buying-v2__bottom-price-inner")[0].innerHTML;Ma=Object.keys(Y).length;if(0<Object.keys(Y).length){var Aa=
1794"";
1794g.each(Y,function(Ga,ua){ua=Y[Ga].category.productList;for(var Ea=q=0;Ea<ua.length;Ea++){var Ia=ua[Ea];if(null!=Ia.modelList&&0<Ia.modelList.length){"cn"==fa&&"01090100"==Ia.categorySubTypeCode&&Ia.modelList.forEach(function(ab,Ya){var Za=ab.idx.split("-");Za[1]=Ya;ab.idx=Za.join("-")});for(var wa=0,Ca=null,Xa=0;Xa<Ia.modelList.length;Xa++){var Ta=Ia.modelList[Xa],Pa=Ta.isStock;Ta.selected&&"Y"===Ta.selected&&(wa=Xa,Pa&&(Ca=Xa))}if(null==Ca)for(Xa=0;Xa<Ia.modelList.length;Xa++)if(Ta=Ia.modelList[Xa],
1795Ta.isStock){Ca=Xa;break}null==Ca&&(Ca=wa);Ia=e(Ia,Ca);Aa+=w(Ia,Ga)}q++}if(Y[Ga].category.display_name==ya){ua=Y[Ga];a=ua.category.productList;for(var Wa in Y[Ga].category.productList)Ea=Y[Ga].category.productList[Wa],Aa+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+ua.category.key+"-"+Wa+'-0" data-price\x3d"'+(Ea.promotionPriceValue?Ea.promotionPriceValue:Ea.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+U(Wa)+"\n\t\t\t\t\t\t\t\x3c/div\x3e"}ja+='\x3cdiv class\x3d"pdd16-step-buying-v2__category"\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying-v2__category-title"\x3e'+
1796Y[Ga].category.display_name+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__category-contents swiper-container basic-swiper" data-swiper-option\x3d\'{\n\t\t\t              "breakpoints": {\n\t\t\t                "1": {\n\t\t\t                  "slidesPerView": "auto",\n\t\t\t                  "centeredSlides": false,\n\t\t\t                  "freeMode": true\n\t\t\t                },\n\t\t\t                "768": {\n\t\t\t                  "slidesPerView": 4,\n\t\t\t                  "centeredSlides": false,\n\t\t\t                  "freeMode": true\n\t\t\t                }\n\t\t\t              },\n\t\t\t              "keepWrapper": true,\n\t\t\t              "offTxtAccesibility": true,\n\t\t\t              "watchOverflow": true,\n\t\t\t              "componentEl": ".pdd16-step-buying-v2__category",\n\t\t\t              "scrollbar": {\n\t\t\t                "el": ".swiper-scrollbar",\n\t\t\t                "draggable": true\n\t\t\t              },\n\t\t\t              "navigation": {\n\t\t\t                "nextEl": ".pdd16-step-buying-v2__swiper-button.swiper-button-next.next-'+
1797Ga+'",\n\t\t\t                "prevEl": ".pdd16-step-buying-v2__swiper-button.swiper-button-prev.prev-'+Ga+'"\n\t\t\t              }\n\t\t\t            }\'\x3e\n\t\t\t            \t\x3cdiv class\x3d"pdd16-step-buying-v2__card-list swiper-wrapper" role\x3d"list"\x3e\n\t\t\t            \t\t'+Aa+'\n\t                    \t\x3c/div\x3e\n\t                    \t\x3cdiv class\x3d"swiper-scrollbar"\x3e\x3c/div\x3e\n\t\t\t          \t\x3c/div\x3e\n\t\t\t          \t\x3cbutton type\x3d"button" class\x3d"pdd16-step-buying-v2__swiper-button  swiper-button-prev prev-'+
1798Ga+'"\x3e\n\t\t\t\t          \t\x3cspan class\x3d"hidden"\x3ePrevious\x3c/span\x3e\n\t\t\t\t          \t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t          \t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t          \t\x3c/svg\x3e\n\t\t\t          \t\x3c/button\x3e\n\t\t\t          \t\x3cbutton type\x3d"button" class\x3d"pdd16-step-buying-v2__swiper-button  swiper-button-next next-'+Ga+'"\x3e\n\t\t\t\t          \t\x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t          \t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t          \t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t          \t\x3c/svg\x3e\n\t\t\t          \t\x3c/button\x3e\n\t\t\t\t\t\x3c/div\x3e';
1799Aa=""})}g(".pdd16-step-buying-v2__category-list").html(ja);A()}function A(){Ka.off("click",".option-selector__color input, .option-selector__size input");Ka.on("click",".option-selector__color input, .option-selector__size input",function(){var Y=g(this),ja=Y.attr("data-modeli"),ya=(z.useAddonV2?Y.closest(".pdd16-step-buying-v2__card").children():Y.closest(".pdd16-step-buying__card")).attr("data-index")||"",Aa=ya.split("-")[1];ya.split("-");var Ga=ya.split("-")[0];setTimeout(function(){if(null!=ja){I[Ga].category.productList[Aa].frontModelIdx=
1800ja;var ua=e(I[Ga].category.productList[Aa],ja);if(z.useAddonV2){var Ea=g(".pdd16-step-buying-v2__category").eq(Ga).find(".pdd16-step-buying-v2__card").eq(Aa),Ia=g(".pdd16-step-buying-v2__card").index(Ea);Ea.find(".option-selector__swiper-wrapper").each(function(wa){wa=I[Ga].category.productList[Aa].optionTypeList[wa];var Ca=g(this).attr("style");I[Ga].category.productList[Aa].viewOptionObj[wa].styleAttr=Ca});xa=g(".pdd16-step-buying__header-price-text")[0].innerHTML;Ea.replaceWith(w(ua,Ga,Aa,Y));
1801l.sg.components.stepbuyingV2.cardReInit(document.getElementById(Y.attr("id")).closest(".pdd16-step-buying-v2__card"))}else Ea=g(".pdd16-step-buying__2column").eq(Ga).find(".pdd16-step-buying__card").eq(Aa),Ia=g(".pdd16-step-buying__card").index(Ea),Ea.find(".option-selector__swiper-wrapper").each(function(wa){wa=I[Ga].category.productList[Aa].optionTypeList[wa];var Ca=g(this).attr("style");I[Ga].category.productList[Aa].viewOptionObj[wa].styleAttr=Ca}),xa=g(".pdd16-step-buying__header-price-text")[0].innerHTML,
1802Ea.replaceWith(B(ua,Ga,Aa,Y)),Ea=g(document.querySelectorAll(".pdd16-step-buying__card")[Ia]),Ea.addClass("is-show"),l.sg.components.stepbuying.init(
1802)}},100);A()});Ka.off("click",".pdd16-step-buying__card .cta:not(.learn-more-btn), .pdd16-step-buying-v2__card .cta:not(.learn-more-btn)");Ka.on("click",".pdd16-step-buying__card .cta:not(.learn-more-btn), .pdd16-step-buying-v2__card .cta:not(.learn-more-btn)",function(){var Y=g(this);f=Y;var ja="in"===fa?Y.attr("data-shopsku"):Y.attr("data-modelcode"),
1803ya=z.useAddonV2?Y.closest(".pdd16-step-buying-v2__card").children().attr("data-index"):Y.closest(".pdd16-step-buying__card").attr("data-index"),Aa=z.proudctPriceInfo.monthlyPriceInfo.tenureVal,Ga=z.useAddonV2?parseFloat(Y.closest(".pdd16-step-buying-v2__card").children().attr("data-price")):parseFloat(Y.closest(".pdd16-step-buying__card").attr("data-price")),ua=Number(g(".hiddenPrice")[0].getAttribute("value")),Ea=Number(g(".hiddenSavePrice").val())||0,Ia="",wa="",Ca="";wa=wa=wa="";if(g(this).hasClass("cta--bundle"))ea=
1804g(this).attr("data-promotionprice"),g(this).hasClass("js-cta-stock")||(g(this).hasClass("cta--on")?(ya=a.filter(function(Pa){return Pa.modelcode===ja}),Ga=z.addonBundleRelatedData.filter(function(Pa){return Pa.bundleModelCode===ja}),l.sg.components.addonBundlePopup.callSearchAjax(ya[0],Ga[0]),l.sg.components.notifyMePopup.showPopup(document.querySelector(".add-ons-evoucher-popup")),l.sg.components.notifyMePopup.reInit()):((z.useAddonV2?g(".pdd16-step-buying-v2__evoucher-title span"):g(".pdd16-step-buying__evoucher-title span")).html(--c),
1805S?(wa=Number(g("#voucherBalance").attr("data-price")),g("#voucherBalance").attr("data-oriprice"),wa=Number(g("#voucherCharge").attr("data-price")),z.useAddonV2&&(wa=Number(g("#voucherBalance2").attr("data-price")),g("#voucherBalance2").attr("data-oriprice"),wa=Number(g("#voucherCharge2").attr("data-price"))),ma-=Number(g(this).attr("data-originprice")),ta-=Number(parseFloat(g(this).attr("data-saveprice")).toFixed(2)),h(Ga,!1),wa&&(ua=wa>=Number(ea)?ua-Number(ea):ua-wa)):ua-=Number(ea),t[ja]&&(t[ja]=
1806[])));else if(ea=g(this).attr("data-price"),la=g(this).attr("data-saveprice"),ya.split("-"),wa=X.indexOf(ya),Y=Y.attr("data-childmodelcode"),g(this).hasClass("cta--on")&&!g(this).hasClass("js-cta-stock"))z.useAddonV2?(g(this).closest(".pdd16-step-buying-v2__card.swiper-slide").addClass("is-selected"),g(".pdd16-step-buying-v2__evoucher-title span").html(++c)):g(".pdd16-step-buying__evoucher-title span").html(++c),X.push(ya),S?(wa=Number(g("#voucherBalance").attr("data-price")),z.useAddonV2&&(wa=Number(g("#voucherBalance2").attr("data-price"))),
18070>wa-Number(ea)&&(ua+=-(wa-Number(ea)),Ea+=Number(la)),ma+=Number(g(this).attr("data-oriprice")),ta+=Number(parseFloat(g(this).attr("data-saveprice")).toFixed(2)),h(Ga,!0)):(z.useAddonV2&&(ma+=Number(g(this).attr("data-oriprice")),ta+=Number(parseFloat(g(this).attr("data-saveprice")).toFixed(2))),ua+=Number(ea),Ea+=Number(la)),V.push(ja),Y&&(z.productChildModelObject[ja]=Y),ya=g(this).closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-title strong").html(),Ga=g(this).closest(".pdd16-step-buying__card").find(".image img"),
1808ya={modelCode:ja,modelName:ya,src:Ga.attr("data-img-src")},O.push(ya);else if(!g(this).hasClass("cta--on")&&!g(this).hasClass("js-cta-stock")){z.useAddonV2?(g(this).closest(".pdd16-step-buying-v2__card.swiper-slide").removeClass("is-selected"),g(".pdd16-step-buying-v2__evoucher-title span").html(--c)):g(".pdd16-step-buying__evoucher-title span").html(--c);X.splice(wa,1);S?(wa=Number(g("#voucherBalance").attr("data-price")),g("#voucherBalance").attr("data-oriprice"),wa=Number(g("#voucherCharge").attr("data-price")),
1809z.useAddonV2&&(wa=Number(g("#voucherBalance2").attr("data-price")),g("#voucherBalance2").attr("data-oriprice"),wa=Number(g("#voucherCharge2").attr("data-price"))),ma-=Number(g(this).attr("data-oriprice")),ta-=Number(parseFloat(g(this).attr("data-saveprice")).toFixed(2)),h(Ga,!1),wa&&(ua=wa>=Number(ea)?ua-Number(ea):ua-wa,Ea-=Number(la))):(z.useAddonV2&&(ma-=Number(g(this).attr("data-oriprice")),ta-=Number(parseFloat(g(this).attr("data-saveprice")).toFixed(2))),ua-=Number(ea),Ea-=Number(la));for(ya=
18100;ya<V.length;ya++)if(V[ya]==ja){V.splice(ya,1);ya--;break}Y&&delete z.productChildModelObject[ja];O=O.filter(function(Pa){return ja!==Pa.modelCode})}wa=Granite.I18n.get("From {0}/mo",currencyComma(ua/Number(Aa),ra))+" "+Granite.I18n.get("for {0} mos",Aa)+" "+Granite.I18n.get("or")+" "+currencyComma(ua,ra);Ia=wa.split(" "+qa+" ");if(r)if(Ca||(Ca=g(".pdd16-step-buying__header-price").html()),0<V.length){var Xa=("in"===fa?g("#shopSKU").val():g("#modelCode").val())+",";
1810V.forEach(function(Pa,Wa){Xa+=
1811Pa+(V.length-1===Wa?"":",")});var Ta="";O.forEach(function(Pa){Ta+='\n\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__add-on-list-box swiper-slide" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__add-on-list-icon"\x3e\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon close" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#plus-bold" href\x3d"#plus-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__add-on-list-image"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"" data-mobile-src\x3d"" alt\x3d"" role\x3d"img" data-comp-name\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+
1812aa(Pa.src,"$48_48_PNG$")+'" data-mobile-src\x3d"'+aa(Pa.src,"$32_32_PNG$")+'" alt\x3d"" role\x3d"img" data-comp-name\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__add-on-list-product-name"\x3e'+Pa.modelName+"\x3c/div\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e"});Aa=g(".pdd16-step-buying__header");Aa.addClass("pdd16-step-buying__header-add-on-product");Aa.find(".swiper-container").show();Aa.find(".swiper-wrapper").html(Ta);Aa.find(".pdd16-step-buying__quantity strong").html("+"+
1813V.length);l.sg.components.dynamic.detailSharedObj.commonApiModel.callSimulatecartAjax(Xa,function(Pa,Wa){if(Pa){if(Pa.subTotal&&Pa.totalDiscounts&&Pa.totalPrice){var ab=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo,Ya=ab.salePrice,Za=ab.orignalPrice;Wa=T.detailSharedObj.drawObj.price.priceWrapper.info.unformattedSavePrice;var cb=Ya-(Za-Wa);ab=currencyComma(Pa.subTotal.value-ab.salePrice+Za+(Pa.totalDiscounts.value-(Za-Ya)),ra);Ya=currencyComma(Pa.totalDiscounts.value+(0<cb?cb:0),ra);cb=
1814currencyComma(Pa.totalPrice.value-(0<cb?cb:0),ra);m&&(cb=Pa.totalPrice.formattedValue);Pa=Pa.totalPrice.value;Ca='\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';Ca=m?Ca+("\x3cstrong\x3e"+ha+" "+Ia[0].replace(ha,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+qa+" "+cb+"\x3c/strong\x3e"):Ca+("\x3cstrong\x3e"+cb+"\x3c/strong\x3e");Da||Z?Ca+="\x3c/div\x3e":"in"==fa?(cb="MRP: "+ab+" (Incl. of all taxes)",Wa=0<Wa?'\x3cspan class\x3d"sale-text" data-save-price\x3d'+Ya+"\x3e"+
1815Granite.I18n.get("Save {0}",Ya)+"\x3c/span\x3e":"",Ca+='\n\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"was-text" data-orignal-price\x3d'+ab+'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3e'+cb+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+Wa+"\n\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e"):Ca+='\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save '+
1816(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'+(P?'\x3cdel class\x3d"was-text" data-orignal-price\x3d'+ab+"\x3e"+ab+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+ab+"\x3e"+ab+"\x3c/span\x3e")+'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d'+Ya+"\x3e"+Granite.I18n.get("Save {0}",Ya)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e";Ca+='\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
1817Pa+'"\x3e'}g(".pdd16-step-buying__header-price").html(Ca);"bg"==fa&&(Wa="eur"===ra.toLowerCase()?"\u043b\u0432":"\u20ac",-1==g(".pdd16-step-buying__header-wrap .pdd16-step-buying__header-price-text").text().indexOf(Wa)&&(Wa=g(".hiddenPrice").val(),Wa="eur"===ra.toLowerCase()?E(Wa):C(Wa),g(".pdd16-step-buying__header-wrap .pdd16-step-buying__header-price-text strong").append(" / "+Wa)))}})}else Aa=g(".pdd16-step-buying__header"),Aa.removeClass("pdd16-step-buying__header-add-on-product"),Aa.find(".swiper-container").hide(),
1818Ca=z.vdAddonInitPriceHtml;else Ca=z.useAddonV2?m?'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+Ia[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t "+qa+" "+ha+" "+Ia[0].replace(ha,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e':'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+"\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t"+
1819("mx"!==fa?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Ia[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+Ia[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e':m?'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
1820ha+" "+Ia[0].replace(ha,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+qa+" "+Ia[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e':'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+"\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t"+("mx"!==fa?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Ia[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
1821Ia[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e';S&&(wa=!ta||0>ta?"in"==fa?"MRP: "+currencyComma(ma,ra)+" (Incl. of all taxes)":currencyComma(ma,ra):"in"==fa?"MRP: "+currencyComma(ma,ra)+" (Incl. of all taxes) \x3cspan\x3e"+Granite.I18n.get("Save")+" "+currencyComma(ta,ra)+"\x3c/span\x3e "+currencyComma(ma-ta,ra):currencyComma(ma,ra)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ta,ra)+"\x3c/del\x3e "+currencyComma(ma-
1822ta,ra),g("#selectedItem").html(wa),z.useAddonV2&&g("#selectedItem2").html(wa));g(".pdd16-step-buying__header-price").html(Ca);g(".pdd16-step-buying__footer-sum").html(Ca);
1822void 0===g(".tab__list").attr("style")&&(g(document).off("click","#freeGiftPopup .layer-popup__close"),g(document).on("click","#freeGiftPopup .layer-popup__close",function(){l.sg.components.stepbuying.clearAll(g(".bundleSelect"));f.removeClass("cta--on")}));ca();z.useAddonV2?(Aa="",Aa=m?'\x3cdiv class\x3d"pdd16-step-buying-v2__bottom-price-text"\x3e\n            \t\t\t \t\x3cspan class\x3d"final-text"\x3e\x3cstrong\x3e'+
1823Ia[1]+'\x3c/strong\x3e\x3c/span\x3e\n            \t\t\t \t\x3cspan class\x3d"monthly-text"\x3e'+qa+" "+ha+" "+Ia[0].replace(ha,"")+"\x3c/span\x3e\n \t\t\t\t\t\t\x3c/div\x3e":'\x3cdiv class\x3d"pdd16-step-buying-v2__bottom-price-text"\x3e\n\t         \t\t\t \t\x3cspan class\x3d"final-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Ia[1]+"\x3c/strong\x3e\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e","in"==fa&&(ya=0<Ea?'\x3cspan class\x3d"sale-text"\x3eSave '+currencyComma(Ea,ra)+"\x3c/span\x3e":"",Aa+='\x3cdiv class\x3d"pdd16-step-buying-v2__bottom-price-save"\x3e\n            \t\t\t \t\x3cinput type\x3d"hidden" class\x3d"hiddenSavePrice" value\x3d"'+
1824Ea+'" /\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__bottom-price-tax"\x3eMRP: '+currencyComma(ua+Ea,ra)+' (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text"\x3eSave '+currencyComma(Ea,ra)+"\x3c/span\x3e\n\t\t\t\t\t\t\t"+ya+"\n\t\t\t\t\t\t\x3c/div\x3e"),g(".pdd16-step-buying-v2__bottom-price-inner").html(Aa),"bg"==fa&&(ua="eur"===ra.toLowerCase()?"\u043b\u0432":"\u20ac",-1==g(".final-text strong").text().indexOf(ua)&&(ua=g(".hiddenPrice").val(),ua="eur"===
1825ra.toLowerCase()?E(ua):C(ua),g(".final-text strong").append(" / "+ua)))):l.sg.components.stepbuying.init()});Ka.off("click",".pdd16-step-buying__card .pdd16-step-buying__card-cta-learn-more button");Ka.on("click",".pdd16-step-buying__card .pdd16-step-buying__card-cta-learn-more button",function(){var Y=g(this),ja=z.useAddonV2?Y.closest(".pdd16-step-buying-v2__card").children().attr("data-index").split("-"):Y.closest(".pdd16-step-buying__card").attr("data-index").split("-");Y=I[ja[0]].category.productList[ja[1]].modelList[ja[2]];
1826var ya=I[ja[0]].category.productList[ja[1]].thirdPASeller,Aa=g(".pdd16-step-buying__footer-cta button").attr("data-category-name");ja=g(".pdd16-step-buying__layer-learn-more");ja.find(".layer-popup__title").html(Aa);Aa=Y.galleryImage&&0<Y.galleryImage.length?Y.galleryImage:[Y.thumbUrl];var Ga="";if(Aa)for(var ua in Aa)Ga+='\n\t\t\t\t\t\x3cdiv class\x3d"swiper-slide" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+
1827aa(Aa[ua],"$290_240_PNG$")+'" data-mobile-src\x3d"'+aa(Aa[ua],"$520_400_PNG$")+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+aa(Aa[ua],"$290_240_PNG$")+'" data-mobile-src\x3d"'+aa(Aa[ua],"$520_400_PNG$")+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e';ua='\n\t\t\t\t\x3cdiv class\x3d"swiper-container basic-swiper" data-swiper-option\x3d\'{\n\t\t\t\t\t"slidesPerView":"1","keepWrapper":true,"loop":false,"pagination":false,"componentEl":".pdd16-step-buying__learn-more-images","offTxtAccesibility":"true","centeredSlides": true,"centeredSlidesBounds": true,"followFinger":'+
1828(1<Aa.length?!0:!1)+'}\'\x3e\n\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"swiper-button-prev" an-tr\x3d"pdd16_step buying-product detail-image-index" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:index:left"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+'\x3c/span\x3e\n\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#previous-bold" href\x3d"#previous-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\x3cdiv class\x3d"swiper-wrapper" role\x3d"list"\x3e\n\t\t\t\t\t\t'+
1829Ga+'\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"swiper-button-next" an-tr\x3d"pdd16_step buying-product detail-image-index" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:index:right"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Next")+'\x3c/span\x3e\n\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e';
1830ja.find(".pdd16-step-buying__learn-more-images").html(ua);ua="";Aa="Hybris-intg"===g("#shopIntegrationFlag").val();Ga=!da&&!Aa&&!L;if(Aa){Aa=[{key:Y.tradeIn,value:Y.tradeInDesc},{key:Y.premiumCare,value:Y.premiumCareDesc},{key:Y.financing,value:Y.financingDesc},{key:Y.upgrade,value:Y.upgradeDesc},{key:Y.storePromotions?"Y":"N",value:Y.storePromotions}];for(var Ea in Aa)"Y"===Aa[Ea].key&&(ua+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Aa[Ea].value+"\x3c/li\x3e")}else if(Ga&&
1831Y.vd3PAMarketingMessage&&0<Y.vd3PAMarketingMessage.length)for(Ea=$jscomp.makeIterator(Y.vd3PAMarketingMessage),Aa=Ea.next();!Aa.done;Aa=Ea.next())ua+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Aa.value+"\x3c/li\x3e";if(Y.uspText&&0<Y.uspText.length)for(Ea=$jscomp.makeIterator(Y.uspText),Aa=Ea.next();!Aa.done;Aa=Ea.next())ua+='\t\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Aa.value+"\x3c/li\x3e";Ea="";if(Y.keySummary&&
18320<Y.keySummary.length)for(Aa=$jscomp.makeIterator(Y.keySummary),Ga=Aa.next();!Ga.done;Ga=Aa.next())Ga=Ga.value,"feature"===Ga.displayType.toLowerCase()&&(Ea+='\n\t\t\t\t\t\t\t\x3cli class\x3d"pdd16-step-buying__learn-more-feature-icon-item"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__learn-more-feature-icon-image"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+aa(Ga.imgUrl,"$64_64_P
1832NG$")+
1833'" data-mobile-src\x3d"'+aa(Ga.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+Ga.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+aa(Ga.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+aa(Ga.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+Ga.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__learn-more-feature-icon-text"\x3e'+Ga.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
1834ya='\n\t\t\t\t\x3ch3 class\x3d"pdd16-step-buying__learn-more-title"\x3e'+Y.displayName+'\x3c/h3\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__learn-more-info"\x3e\n\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__learn-more-sku"\x3e'+Y.modelCode+"\x3c/p\x3e\n\t\t\t\t\t"+(ya?"\x3cstrong class\x3d\"pdd16-step-buying__learn-more-seller\"\x3eGranite.I18n.get('Seller') : thirdPASeller\x3c/strong\x3e":"")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t";if(Y.ratings&&Y.reviewCount){Aa=Y.ratings;Ga=Y.reviewCount;Aa||
1835(Aa=0);var Ia=Math.pow(10,1);Aa=Math.round(Aa*Ia)/Ia;var wa=parseFloat(Aa).toFixed(1);Ia=parseInt(Aa);var Ca=parseInt(100*(wa-Ia));"0.0"!==wa&&(Aa=wa);wa='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Xa=0;Xa<Ia;Xa++)wa+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 100%;"\x3e\x3c/span\x3e\x3c/span\x3e';if(5>Ia&&0<Ia)for(wa+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width:'+
1836Ca+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',Ca=4;Ca>Ia;Ca--)wa+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';else if(0===Ia)for(Ia=0;5>Ia;Ia++)wa+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';wa+='\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+
1837Granite.I18n.get("Product Ratings")+" : \x3c/span\x3e\x3cspan\x3e"+Aa+'\x3c/span\x3e\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3cem class\x3d"rating__review-count"\x3e(\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Number of Ratings")+" :\x3c/span\x3e\x3cspan\x3e"+(Ga?Ga:0)+"\x3c/span\x3e)\x3c/em\x3e";Aa='\x3cdiv class\x3d"pdd16-step-buying__learn-more-review"\x3e\n\t\t\t\t\t\x3cspan class\x3d"rating"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"rating__inner"\x3e\n\t\t\t\t\t\t\t'+wa+"\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\x3c/div\x3e"}else Aa=
1838"";Y=ya+Aa+'\n\t\t\t\t\x3cul class\x3d"pdd16-step-buying__learn-more-feature" role\x3d"list"\x3e\n\t\t\t\t\t'+ua+"\n\t\t\t\t\x3c/ul\x3e\n\t\t\t\t"+(Y.pdpUrl?'\x3cdiv class\x3d"pdd16-step-buying__learn-more-cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--underline cta--black cta--icon" href\x3d"'+Y.pdpUrl+'" aria-label\x3d"Link Title" target\x3d"_blank" \n\t\t\t\t\t\tan-tr\x3d"pdd16_step buying-product detail-cta-button" an-ca\x3d"product click" an-ac\x3d"bridge" an-la\x3d"vd add-on:learn more popup:learn more" data-modelcode\x3d"'+
1839Y.modelCode+'" data-modelname\x3d"'+Y.modelName+'"\x3e\n\t\t\t\t\t\t'+Granite.I18n.get("Product detail")+'\n\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\x3c/div\x3e':"")+"\n\t\t\t\t"+(Ea?'\x3cul class\x3d"pdd16-step-buying__learn-more-feature-icon"\x3e\n\t\t\t\t\t'+Ea+"\n\t\t\t\t\x3c/ul\x3e":"");ja.find(".pdd16-step-buying__learn-more-content").html(Y);
1840l.sg.components.stepbuying.activePopup(document.querySelector("#layerPopupLearnMore"))});ca()}function ca(){var Y=g("#primaryInfoGoCartAddOn"),ja=g("#primaryInfoCheckOutAddOn"),ya=g("#nextBtn"),Aa=g("#primaryInfoGoCartAddOn, #primaryInfoCheckOutAddOn, #voucherGoCartAddOn, #skipGoCartAddOn"),Ga=[];if(da||na)for(var ua in I)Ga.push(I[ua].category.display_name);if(L){ua=[];for(var Ea in I)ua.push(I[Ea]);ua.sort(function($a,mb){return $a.category.order-mb.category.order});Ea=$jscomp.makeIterator(ua);
1841for(ua=Ea.next();!ua.done;ua=Ea.next())Ga.push(ua.value.category.display_name)}Ga=0<g(".tab__item--active").length?Ga[g(".tab__item--active").index()]:Ga[0];if(0<X.length){var Ia=ua=Ea="",wa="",Ca="",Xa="",Ta="",Pa="",Wa="";pa="";for(var ab=0;ab<X.length;
1841ab++){var Ya=X[ab],Za=Ya.split("-")[0],cb=Ya.split("-")[1];Ya=Ya.split("-")[2];Za=I[Za].category.productList[cb].modelList[Ya];cb=y.setPriceInfo(Za);Ya=cb.productPrice;var ib="";0<ab&&(ib=",");Ea+=ib+Za.modelCode;ua+=ib+Za.modelName;pa+=ib+Za.displayName;
1842Ia+=ib+Ya;wa+=ib+cb.promotionPrice;Ca+=ib+Za.pviTypeName;Xa+=ib+Za.pviSubtypeName;Ta+=ib+Za.pviSubtypeName+" "+Za.pviTypeName;Pa+=ib+Ya;Wa+=ib+1}Ca=Ca.toLowerCase();Xa=Xa.toLowerCase();Ta=Ta.toLowerCase();r?"nextBtn"===g(".cta--step").attr("id")?ya.attr("an-tr","pdd16_step buying-"+oa+"-button-next").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ga.toLowerCase()+":next").attr("data-category-name",Ga):Y.attr("an-tr","pdd16_step buying-"+oa+"-cta-cart page").attr("an-ca",
1843"ecommerce").attr("an-ac","addToCart").attr("an-la","vd add-on:checkout").attr("data-category-name",Ga):S?(Y.attr("an-tr","pdd16_product bought together-"+oa+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:go to cart"),ja.attr("an-tr","pdd16_product bought together-"+oa+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:checkout")):(Y.attr("an-tr","pdd16_product bought together-"+oa+"-text-addedcart").attr("an-ca",
1844"ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:go to cart"),ja.attr("an-tr","pdd16_product bought together-"+oa+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:checkout"));Aa.attr("data-modelcode",Ea).attr("data-modeldisplay",pa).attr("data-modelname",ua).attr("data-modelrevenue",Pa).attr("data-modelprice",Ia).attr("data-pvitype",Ca).attr("data-pvisubtype",Xa).attr("data-discountprice",wa).attr("data-pimsubtype",Ta).attr("data-modelqty",Wa)}else r?
1845"nextBtn"===g(".cta--step").attr("id")?ya.attr("an-tr","pdd16_step buying-"+oa+"-button-next").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ga.toLowerCase()+":next").attr("data-category-name",Ga):Y.attr("an-tr","pdd16_step buying-"+oa+"-button-checkout").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ga.toLowerCase()+":checkout").attr("data-category-name",Ga):S?(Y.attr("an-tr","pdd16_product bought together-"+oa+"-popup-cart").attr("an-ca",
1846"content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart"),ja.attr("an-tr","pdd16_product bought together-"+oa+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout")):(Y.attr("an-tr","pdd16_product bought together-"+oa+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"),ja.attr("an-tr","pdd16_product bought together-"+oa+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac",
1847"feature").attr("an-la","add-on:checkout")),Aa.removeAttr("data-modelcode").removeAttr("data-modeldisplay").removeAttr("data-modelname").removeAttr("data-modelrevenue").removeAttr("data-modelprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-discountprice").removeAttr("data-pimsubtype").removeAttr("data-modelqty");ya.removeAttr("data-modelcode").removeAttr("data-modeldisplay").removeAttr("data-modelname").removeAttr("data-modelrevenue").removeAttr("data-modelprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-discountprice").removeAttr("data-pimsubtype").removeAttr("data-modelqty")}
1848function K(Y){Y=void 0===Y?!1:Y;for(var ja=[],ya=$jscomp.makeIterator(V),Aa=ya.next();!Aa.done;Aa=ya.next())ja.push(Aa.value);da&&z.giftFlag&&z.globalServiceInfo.gift&&z.globalServiceInfo.gift.modelCode&&ja.push(z.globalServiceInfo.gift.modelCode);for(var Ga in t)for(ya=$jscomp.makeIterator(t[Ga]),Aa=ya.next();!Aa.done;Aa=ya.next())ja.push(Aa.value);Y?T.DetailAfterEvent.checkOutCta(ja,!0,!0,ba):T.DetailAfterEvent.addToCartCta(ja,!0,!0,ba)}function D(Y){(void 0===Y?0:Y)?T.DetailAfterEvent.checkOutCta([],
1849!0,!0,ba):T.DetailAfterEvent.addToCartCta([],!0,!0,ba)}function h(Y,ja){var ya=g("#voucherTotal"),Aa=g("#voucherBalance"),Ga=g("#voucherCharge");z.useAddonV2&&(ya=g("#voucherTotal2"),Aa=g("#voucherBalance2"),Ga=g("#voucherCharge2"));
1849var ua=parseFloat(ya.attr("data-price")||0),Ea=parseFloat(Aa.attr("data-oriprice")||0);ua=ja?ua+Y:Number((parseFloat(ua)-parseFloat(Y)).toFixed(2));Y=Number((parseFloat(Ea)-parseFloat(ua)).toFixed(2));0>Y?(ja=-Y,Y=0):ja=0;ya.attr("data-price",ua);Aa.attr("data-price",
1850Y);Ga.attr("data-price",ja);ya.html(currencyComma(ua,ra));Aa.html(currencyComma(Y,ra));Ga.html(currencyComma(ja,ra))}function C(Y){var ja=Math.pow(10,2);Y=Number(Y)/1.95583;Y=Math.round(Y*ja)/ja;return currencyComma(Y,"EUR")}function E(Y){var ja=Math.pow(10,2);Y=1.95583*Number(Y);Y=Math.round(Y*ja)/ja;return currencyComma(Y,"BGN")}var T=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),R=T.ux2.PriceBar,z=T.detailSharedObj,fa=g("#siteCode").val(),va="true"===g("#isEppPage").val(),ra=g("#priceCurrency").val(),
1851oa=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),da="GPv2"===g("#shopIntegrationFlag").val()&&"in"===fa,na="Hybris"===g("#shopIntegrationFlag").val()||"Hybris-intg"===g("#shopIntegrationFlag").val(),L="Hybris-new"===g("#shopIntegrationFlag").val(),N=g("#categorySubTypeCode").val(),b=g("#categoryTypeCode").val(),r=2<N.length&&"04"===N.substring(0,2)||4<N.length&&"0701"===N.substring(0,4),G="jp"!==fa&&"n_africa"!==fa&&"de"!==fa,P="Y"==g("#isNotDelTagSites").val()?!0:!1,Z="pl"===fa||"si"===
1852fa||"gr"===fa||"fi"===fa||"it"===fa||"se"===fa||"no"===fa||"dk"===fa||"fr"===fa||"de"===fa?!0:!1,d=Z&&"de"===fa?!0:!1,M="hu"===fa?!0:!1,t={},y={},I=[],X=[],V=[],O=[],S=!1,Q="",ea=0,la=0,ma=0,ta=0,xa,sa,Ma=0,pa="",a="",c=0,m=!1,f="",q=0,ba="",J=Granite.I18n.get("View more"),ha=Granite.I18n.get("From"),qa=Granite.I18n.get("or"),ia=Granite.I18n.get("Monthly Price")+":";Granite.I18n.get("Full Price:");var za=Granite.I18n.get("Add"),Ja=Granite.I18n.get("Are you sure to remove this product?"),Fa=Granite.I18n.get("Checkout"),
1853Ba=Granite.I18n.get("Next"),Ha=Granite.I18n.get("Total"),Va=Granite.I18n.get("VAT Inclusive"),Na=Granite.I18n.get("Added"),ka=Granite.I18n.get("Out Of Stock"),La="fr"==fa,Da=va&&"pl"===fa;va&&(Z="Y"===eppOmniPricingUseYn?!0:!1,z.isSENA&&(Z=!0));if("fr"===fa||"tr"===fa)ha="";var Ka=z.useAddonV2?g(".pdd16-step-buying-v2"):g(".pdd16-step-buying"),Qa=g(".pdd16-step-buying-v2__bottom");N={it:{useTncOnAddOn:!1},id:{useAddOnNextI18n:!0},ch:{useStaticTitle:r,staticTitle:Granite.I18n.get("Amazing additions")},
1854ch_fr:{useStaticTitle:r,staticTitle:Granite.I18n.get("Amazing additions")},ee:{useStaticTitle:r,staticTitle:Granite.I18n.get("Amazing additions")},nl:{useStaticTitle:r,staticTitle:N.startsWith("0701")?Granite.I18n.get("addon title(monitor)"):Granite.I18n.get("Choose your TV set-up"),useStaticSubTitle:r,staticSubTitle:N.startsWith("0701")?Granite.I18n.get("addon subtitle(monitor)"):Granite.I18n.get("addon subtitle")},be:{useStaticTitle:r&&"04010000"==b,staticTitle:Granite.I18n.get("Choose your TV set-up"),
1855useStaticSubTitle:r&&"04010000"==b,staticSubTitle:Granite.I18n.get("addon subtitle")},be_fr:{useStaticTitle:r&&"04010000"==b,staticTitle:Granite.I18n.get("Choose your TV set-up"),useStaticSubTitle:r&&"04010000"==b,staticSubTitle:Granite.I18n.get("addon subtitle")},default:{useVATInclusiveArea:!1}};var Oa=function(Y,ja){var ya=ja[Y],Aa=ja["default"];return{get:function(Ga){return ya&&"undefined"!==typeof ya[Ga]?ya[Ga]:Aa&&"undefined"!==typeof Aa[Ga]?Aa[Ga]:!1}}}(fa,N);Oa.get("useAddOnNextI18n")&&(Ba=
1856Granite.I18n.get("Next (addon)"));var Sa=!0,Ra=function(Y,ja,ya,Aa,Ga){ja=ja.split(",");var ua=ja[0];Ga=Ga.indexOf("MEMORY");if(!da&&!L&&!na&&Aa&&0<Ga){ya=Y.MEMORY.optionList;var Ea=0,Ia=0,wa;for(wa in ya){ua=ya[wa].modelIdx.split(",");for(var Ca in ua)if(F(ja,ua[Ca])){Y=ya[wa].optionCode.replace("TB","000").replace(/[^0-9]/g,"");Ia<Y&&(Ia=Y,Ea=ua[Ca]);break}}ja=Ea}else{for(Ea in ya)if(wa=ya[Ea]){Ca=wa.split(",");wa=[];for(Ia in ja)-1<Ca.indexOf(String(ja[Ia]))&&wa.push(ja[Ia]);0<wa.length&&(ja=wa)}ja=
18570<ja.length?ja[0]:ua}return ja},Ua=function(Y,ja,ya,Aa){ya="";var Ga=!1;if(Y.viewOptionObj&&0<Object.keys(Y.viewOptionObj).length){var ua=0,Ea=Y.viewOptionObj,Ia=Y.optionTypeList;Y.viewOptionObj.hasOwnProperty("RING SIZE")&&(Ga=!0);Y.viewOptionObj=Object.keys(Y.viewOptionObj).sort(function(bb,jb){if("COLOR"==bb)return-1;if("COLOR"==jb)return 1}).reduce(function(bb,jb){bb[jb]=Y.viewOptionObj[jb];return bb},{});for(var wa in Y.viewOptionObj){var Ca=wa.toLowerCase().replace(/ /g,"-"),Xa=Y.viewOptionObj[wa].optionList,
1858Ta=!1,Pa={},Wa="",ab=S?"evoucher":"add-on";Y.viewOptionObj[wa].styleAttr&&(Wa=Y.viewOptionObj[wa].styleAttr);if("COLOR"===wa){Wa="";
1858for(var Ya in Xa){var Za=Xa.length;Pa=Xa[Ya];Ta=!1;var cb=Pa.modelIdx.split(",");null!=Pa.modelIdx&&F(cb,String(Y.frontModelIdx))&&(Ta=!0);var ib=cb="";var $a=Pa.modelIdx;var mb=[],kb=!0,gb;for(gb in Ea)if(gb!==wa){var xb=Ea[gb].optionList,Cb;for(Cb in xb){var hb=xb[Cb];hb=hb.modelIdx;var Mb=hb.split(",");-1<Mb.indexOf(String(Y.frontModelIdx))&&mb.push(hb)}}$a=Ra(Ea,
1859$a,mb,kb,Ia);Y.modelList.length>$a&&Y.modelList[$a]&&(cb=Y.modelList[$a].modelCode,ib=Y.modelList[$a].modelName);var rb=Y.modelList[$a].price,nb=Y.modelList[$a].promotionPrice;xb=rb-nb;da&&Y.modelList[$a].idx&&(Y.modelList[$a].idx=q+"-"+$a);Aa&&(Y.modelList[$a].idx=Aa+"-"+$a);mb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx;kb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx;Ga&&(mb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a,kb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+
1860$a);hb=Pa.multiColorYN;Wa+='\x3cspan class\x3d"option-selector__swiper-slide"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+mb+'" name\x3d"'+kb+'" data-modeli\x3d"'+$a+'" '+(Ta?" checked":"")+' \n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"'+(r?"pdd16_step buying":"pdd16_product bought together")+"-"+oa+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+(r?"vd ":"")+ab+":"+wa.toLowerCase()+":"+Pa.optionName.toLowerCase()+
1861'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+cb+'" data-modelname\x3d"'+ib+'" data-price\x3d"'+rb+'" data-promotionPrice\x3d"'+nb+'" data-saveprice\x3d"'+xb+'" data-index\x3d"'+Y.modelList[$a].idx+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+mb+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+function(bb){var jb="";if("Y"!=bb)jb='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+Pa.optionCode+'"\x3e'+Pa.optionLocalName+"\x3c/span\x3e";else if(bb=Pa.multiColorList){var db=bb.optionCodeList,
1862sb="";switch(bb.optionColorType){case "C1":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36" height\x3d"35.999" viewBox\x3d"0 0 36 35.999"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-18.001 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"35.999" transform\x3d"translate(18.001 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,0A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(18.001 -9)" fill\x3d"'+
1863db[0]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(18.001 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t  \x3c/span\x3e';break;case "C2_A":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C2AType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg\x3e\n\t\t\t\t\t\t\x3c!--/* left -\x3e right \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250a18,18,0,0,1,18-18h0v36h0A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+
1864db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7232a18,18,0,0,1,18,18,18,18,0,0,1-18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+db[1]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1865break;case "C2_B":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C2BType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg\x3e\n\t\t\t\t\t\t\x3c!--/* top -\x3e bottom \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250a18,18,0,0,1,18-18,18,18,0,0,1,18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+
1866db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250h36a18,18,0,0,1-18,18A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+db[1]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1867break;case "C3_A":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C3AType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36.001" viewB
1867ox\x3d"0 0 36.001 36.001"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(27.001 -17.999) rotate(90)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(18 -3.005) rotate(-90)"\x3e\n\t\t\t\t\t\t\x3c!--/* left -\x3e right -\x3e bottom \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-1047.672,8501.792a18.1,18.1,0,0,1-1.321-6.168c0-.027,0-.056,0-.083s0-.06,0-.09a18.092,18.092,0,0,1,1.906-8.522c.009-.017.017-.036.028-.053.017-.036.034-.068.051-.1.028-.054.058-.109.085-.162,0,0,0,0,0-.007.109-.205.22-.405.337-.608l0,0a18.019,18.019,0,0,1,1.92-2.717,18.076,18.076,0,0,1,2.2-2.157,18.042,18.042,0,0,1,2.467-1.712,18.109,18.109,0,0,1,2.674-1.264,18.212,18.212,0,0,1,3.76-.967.18.18,0,0,0,.032,0,.045.045,0,0,0,.017,0A18.394,18.394,0,0,1-1031,8477v18h0l-15.583,9A18.227,18.227,0,0,1-1047.672,8501.792Z" transform\x3d"translate(1019 -8477.001)" fill\x3d"'+
1868db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-1049,8494.994h0v-18a18.692,18.692,0,0,1,2.051.115,18.089,18.089,0,0,1,4.971,1.313.644.644,0,0,0,.068.025.02.02,0,0,0,.015.009,17.41,17.41,0,0,1,1.889.95,18.359,18.359,0,0,1,2.047,1.374c.015.013.032.023.047.036s.034.028.051.041a18.122,18.122,0,0,1,4.446,5.135h0a18.843,18.843,0,0,1,.9,1.783l.045.1s0,0,0,0a18.093,18.093,0,0,1,1.462,6.915c0,.023,0,.047,0,.073v.1a18.107,18.107,0,0,1-1.622,7.482l-.032.073c-.009.019-.019.038-.028.058-.22.474-.463.94-.73,1.4Z" transform\x3d"translate(1037.001 -8477)" fill\x3d"'+
1869db[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-1034.289,8494.979a18.08,18.08,0,0,1-9.093-2.986c-.017-.013-.036-.023-.053-.036a.663.663,0,0,1-.062-.043,18.052,18.052,0,0,1-4.213-3.972l-.1-.128a18.141,18.141,0,0,1-1.2-1.816l15.589-9,15.585,9a18.048,18.048,0,0,1-2.04,2.858.119.119,0,0,1-.015.016l-.077.089a18.1,18.1,0,0,1-2.673,2.456l-.026.02-.1.077a18.052,18.052,0,0,1-9.792,3.466c-.051,0-.1.007-.158.007a.029.029,0,0,1-.013,0c-.228.009-.458.013-.689.013C-1033.709,8495-1034,8495-1034.289,8494.979Z" transform\x3d"translate(1021.412 -8459.007)" fill\x3d"'+
1870db[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.021,17,17,0,1,0,30.021,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(-30.004 0)" fill\x3d"rgba(29,29,27,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';break;case "C3_B":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C3BType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 -4)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 4)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(17.999 4.001)"\x3e\n\t\t\t\t\t\t\x3c!--/* left -\x3e center -\x3e right \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18A18.006,18.006,0,0,1,12,1.024v33.95A18.006,18.006,0,0,1,0,18Z" transform\x3d"translate(0 0)" fill\x3d"'+
1871db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,34.974V1.024a18.086,18.086,0,0,1,12,0v33.95a18.085,18.085,0,0,1-12,0Z" transform\x3d"translate(12 0)" fill\x3d"'+db[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,16.975A18.007,18.007,0,0,0,12,33.95V0A18.007,18.007,0,0,0,0,16.975Z" transform\x3d"translate(36 34.975) rotate(180)" fill\x3d"'+db[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,35A17,17,0,0,0,30.02,5.979,17,17,0,1,0,5.979,30.019,16.889,16.889,0,0,0,18,35m0,1A18,18,0,1,1,36,18,18,18,0,0,1,18,36Z" transform\x3d"translate(0)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1872break;case "C3_C":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C3CType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36" height\x3d"36" viewBox\x3d"0 0 36 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-18 -4)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 4)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(53.999 4) rotate(90)"\x3e\n\t\t\t\t\t\t\x3c!--/* top -\x3e middle -\x3e bottom \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18A18.006,18.006,0,0,1,12,1.024v33.95A18.006,18.006,0,0,1,0,18Z" transform\x3d"translate(0 0)" fill\x3d"'+
1873db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,34.974V1.024a18.086,18.086,0,0,1,12,0v33.95a18.085,18.085,0,0,1-12,0Z" transform\x3d"translate(12 0
1873)" fill\x3d"'+db[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,16.975A18.007,18.007,0,0,0,12,33.95V0A18.007,18.007,0,0,0,0,16.975Z" transform\x3d"translate(36 34.975) rotate(180)" fill\x3d"'+db[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,35A17,17,0,0,0,30.02,5.979,17,17,0,1,0,5.979,30.019,16.889,16.889,0,0,0,18,35m0,1A18,18,0,1,1,36,18,18,18,0,0,1,18,36Z" transform\x3d"translate(0)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1874break;case "C4_A":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C4AType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg\x3e\n\t\t\t\t\t\t\x3c!--/* top-left -\x3e top-right -\x3e bottom-right -\x3e bottom-left \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250a18,18,0,0,1,18-18v18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+
1875db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7250v-18a18,18,0,0,1,18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+db[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7250h18a18,18,0,0,1-18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+db[2]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250h18v18h0A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+db[3]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1876break;case "CP":sb='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.CPType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(48.004 -9)"\x3e\n\t\t\t\t\t\t\x3c!--/* middle-left -\x3e top-left -\x3e top-right -\x3e middle-right -\x3e bottom-right -\x3e bottom-left \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M1.333,15.8A18.1,18.1,0,0,1,.01,9.628c0-.027,0-.055,0-.082s0-.06,0-.089A18.086,18.086,0,0,1,1.91.935L1.938.88l.053-.1L2.074.614l0-.007Q2.239.3,2.413,0L18,9,2.413,18A18.157,18.157,0,0,1,1.333,15.8Z" transform\x3d"translate(-30.005 8.994)" fill\x3d"'+
1877db[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,9A17.9,17.9,0,0,1,6.584,2.41,18.351,18.351,0,0,1,9.257,1.145a18.061,18.061,0,0,1,3.667-.95l.132-.019.019,0A18.137,18.137,0,0,1,15.582,0V18Z" transform\x3d"translate(-27.587 0)" fill\x3d"'+db[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18V0A18.223,18.223,0,0,1,2.05.115,18.011,18.011,0,0,1,7.021,1.427l.068.026a.028.028,0,0,0,.015.008,17.506,17.506,0,0,1,1.89.949,18.328,18.328,0,0,1,2.047,1.376l.046.035.052.041A18.106,18.106,0,0,1,15.585,9Z" transform\x3d"translate(-12.003 0)" fill\x3d"'+
1878db[2]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,9,15.583,0a18.31,18.31,0,0,1,.9,1.785l.045.1v0A18.087,18.087,0,0,1,18,8.808c0,.023,0,.048,0,.072s0,.064,0,.1a18.082,18.082,0,0,1-1.621,7.483l-.033.073-.027.058q-.332.71-.731,1.4Z" transform\x3d"translate(-12.004 8.997)" fill\x3d"'+db[3]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,0,15.585,9a18.082,18.082,0,0,1-2.041,2.858l-.014.016-.078.089a18.166,18.166,0,0,1-2.672,2.457l-.027.02-.1.075A18.057,18.057,0,0,1,.86,17.979L.7,17.986H.688C.46,18,.23,18,0,18Z" transform\x3d"translate(-12.005 17.994)" fill\x3d"'+
1879db[4]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M14.717,17.98a18.082,18.082,0,0,1-9.094-2.987l-.054-.036-.062-.042A18.087,18.087,0,0,1,1.3,10.942h0l-.1-.127A18.134,18.134,0,0,1,0,9L15.589,0V18C15.3,18,15.006,17.994,14.717,17.98Z" transform\x3d"translate(-27.593 17.993)" fill\x3d"'+db[5]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.021,17,17,0,1,0,30.021,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(-30.004 0)" fill\x3d"rgba(29,29,27,
18790.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e'}jb+=
1880sb}return jb}(hb)+'\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Pa.optionName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}ya+='\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip swiper-mode '+(1==ja?"":"option-selector__wrap")+'" data-desktop-view\x3d"5" data-mobile-view\x3d"4"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"transform: translateX(0px);"\x3e\n\t\t\t\t\t\t\t\t\t\t'+
1881Wa+'\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev option-selector__button--disabled" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true"  tabindex\x3d"0" style\x3d"display:block;"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(5<Za?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':
1882"")+'\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block;"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Ba+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(5<Za?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':
1883"")+"\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t"}else if("MOBILE MEMORY"===wa||"TV SIZE"===wa||"HOME APPLIANCE SIZE"===wa||"MONITOR SCREEN SIZE"===wa||"RING SIZE"===wa||"MEMORY MEMORY"===wa){rb="";for(nb=0;nb<Xa.length;nb++){var Ib=Xa.length;Pa=Xa[nb];Ta=!1;cb=Pa.modelIdx.split(",");null!=Pa.modelIdx&&F(cb,String(Y.frontModelIdx))&&(Ta=!0);ib=cb="";$a=Pa.modelIdx;mb=[];kb=!1;for(gb in Ea)if(gb!==wa)for(Cb in xb=Ea[gb].optionList,xb)hb=xb[Cb],
1884hb=hb.modelIdx,Mb=hb.split(","),-1<Mb.indexOf(String(Y.frontModelIdx))&&mb.push(hb);$a=Ra(Ea,$a,mb,kb,Ia);Y.modelList.length>$a&&Y.modelList[$a]&&(cb=Y.modelList[$a].modelCode,ib=Y.modelList[$a].modelName);mb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx;kb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx;Ga&&(Ta=!0,mb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a,kb="pdd16-"+Ca+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a);rb+='\x3cspan class\x3d"option-selector__swiper-slide'+(Ta?" is-active":
1885"")+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+mb+'" name\x3d"'+kb+'" data-modeli\x3d"'+$a+'"'+(Ta?" checked":"")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"'+(r?"pdd16_step buying":"pdd16_product bought together")+"-"+oa+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+(r?"vd ":"")+ab+":"+wa.toLowerCase()+":"+Pa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+cb+'" data-modelname\x3d"'+
1886ib+'" data-index\x3d"'+Y.modelList[$a].idx+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+mb+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+Pa.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}ya+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity swiper-mode '+(1==ja?"":"option-selector__wrap")+'" data-desktop-view\x3d"3" data-mobile-view\x3d"2"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
1887Wa+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+rb+'\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__floating-bar" style\x3d"display: none;"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev option-selector__button--disabled" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block;"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+
1888"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Ib?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+'\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+
1889Ba+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Ib?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+"\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e"}ua++}}return ya};
1889g(document).off("click",".pdd16-step-buying__evoucher-cta .cta--clear-all, .pdd16-step-buying-v2__evoucher-cta .cta--clear-all");g(document).on("click",".pdd16-step-buying__evoucher-cta .cta--clear-all, .pdd16-step-buying-v2__evoucher-cta .cta--clear-all",
1890function(){a:{if(0<Object.keys(t).length)for(Y in t)if(0<t[Y].length){var Y=!0;break a}Y=!1}(0<V.length||Y)&&confirmPopup(Ja,"voucherDelete","voucherClearAll")});g(document).off("click","#voucherClearAll");g(document).on("click","#voucherClearAll",function(){for(var Y=z.useAddonV2?g(".pdd16-step-buying-v2__bottom-price-inner"):g(".pdd16-step-buying__header-price-text"),ja=0;ja<Y.length;ja++)Y[ja].innerHTML=xa,g(".hiddenPrice")[ja].setAttribute("value",sa);c=0;x();u();l.sg.components.stepbuying.clearAll(document.querySelector(".pdd16-step-buying"));
1891g(".pdd16-step-buying__evoucher-title span").html(0);z.useAddonV2&&(g(".pdd16-step-buying-v2__card.swiper-slide").removeClass("is-selected"),l.sg.components.stepbuyingV2.clearAll(document.querySelector(".pdd16-step-buying-v2")),g(".pdd16-step-buying-v2__evoucher-title span").html(0))});g(document).off("click","#primaryInfoGoCartAddOn");g(document).on("click","#primaryInfoGoCartAddOn",function(){z.hasVoucher?n("GoCartAddOn"):K()});g(document).off("click","#primaryInfoCheckOutAddOn");g(document).on("click",
1892"#primaryInfoCheckOutAddOn",function(){z.hasVoucher?n("CheckOutAddOn"):K()});g(document).off("click","#voucherGoCartAddOn");g(document).on("click","#voucherGoCartAddOn",function(){K()});g(document).off("click","#voucherCheckOutAddOn");g(document).on("click","#voucherCheckOutAddOn",function(){K(!0)});g(document).off("click","#skipGoCartAddOn");g(document).on("click","#skipGoCartAddOn",function(){D()});g(document).off("click","#skipCheckOutAddOn");g(document).on("click","#skipCheckOutAddOn",function(){D(!0)});
1893g(document).off("click",".pdd16-step-buying__cta-more");g(document).on("click",".pdd16-step-buying__cta-more",function(){l.sg.components.betterTogether.more();0===g(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&g(this).hide()});g(document).off("click",".pdd16-step-buying .addon.cta--skip, .pdd16-step-buying-v2 .addon.cta--skip");g(document).on("click",".pdd16-step-buying .addon.cta--skip, .pdd16-step-buying-v2 .addon.cta--skip",function(){if(z.hasVoucher){var Y=g(".confirm-popup"),
1894ja=Y.find(".confirm-popup__title"),ya=Y.find(".confirm-popup__desc"),Aa=Y.find(".cta--contained");Y=Y.find(".cta--outlined");var Ga=g("#voucherBalance");z.useAddonV2&&(Ga=g("#voucherBalance2"));Ga=Number(Ga.attr("data-oriPrice"))||0;Ga=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(Ga,ra));Aa.attr("id","skipGoCartAddOn");ya.html(Ga);ja.html(Granite.I18n.get("Are you sure?"));Y.attr("id","");Y.html(Granite.I18n.get("Redeem"));Y.show();
1895Aa.html(Granite.I18n.get("Skip"));l.sg.components.confirmPopup.showPopup()}else D()});g(document).off("click",".pdd16-step-buying .cta--step");g(document).on("click",".pdd16-step-buying .cta--step",function(){var Y=g(".pdd16-step-buying .tab__item--active").index()+1;g(".pdd16-step-buying .tab__item").length===Y?g(this).attr("id","primaryInfoGoCartAddOn"):g(this).attr("id","nextBtn")});g(document).off("click",".pdd16-step-buying .tab__item-title");g(document).on("click",".pdd16-step-buying .tab__item-title",
1896function(){var Y=g(".pdd16-step-buying__headline"),ja=g(".pdd16-step-buying .tab__item--active").index()+1,ya=g(".pdd16-step-buying .tab__item").length,Aa="es"===fa?"Choose yours {0}":"Choose your {0}";r&&(Oa.get("useStaticTitle")?Y[0].innerHTML=Oa.get("staticTitle"):z.hasVoucher||(Y[0].innerHTML=Granite.I18n.get(Aa,g(this)[0].innerText)),Y=g(this).parents(".pdd16-step-buying__tab-wrap").find(".cta--step"),ya===ja?Y.attr("id","primaryInfoGoCartAddOn"):Y.attr("id","nextBtn"));ca()});g(document).off("click",
1897".pdd16-step-buying #nextBtn");g(document).on("click",".pdd16-step-buying #nextBtn",function(){var Y=g(".pdd16-step-buying__headline"),ja=g(".pdd16-step-buying .tab__item--active").find("button"),ya=g(".pdd16-step-buying .tab__item--active").index()+1,Aa=g(".pdd16-step-buying .tab__item").length,Ga="es"===fa?"Choose yours {0}":"Choose your {0}";
1897r&&(Oa.get("useStaticTitle")?Y[0].innerHTML=Oa.get("staticTitle"):z.hasVoucher||(Y[0].innerHTML=Granite.I18n.get(Ga,ja[0].innerText)),Aa===ya?g(this).attr("id",
1898"primaryInfoGoCartAddOn"):g(this).attr("id","nextBtn"));ca()});g(document).off("click",".add-ons-evoucher-popup #bundleAddOn");g(document).on("click",".add-ons-evoucher-popup #bundleAddOn",function(){var Y=0,ja=0,ya=0,Aa=[],Ga=g(".add-ons-evoucher-popup__item .option-selector-v2__color-code");Ga&&Ga.each(function(){g(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&Aa.push(g(this))});(Ga=g(".add-ons-evoucher-popup__item .option-selector-v2__size-text"))&&Ga.each(function(){g(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&
1899Aa.push(g(this))});var ua=g(this).attr("data-parent-modelcode");t[ua]=[];g(this).attr("data-price")&&(Y+=Number(g(this).attr("data-price")));g(this).attr("data-promotionprice")&&(ja+=Number(g(this).attr("data-promotionprice")));g(this).attr("data-saveprice")&&(ya+=Number(g(this).attr("data-saveprice")));g.each(Aa,function(wa,Ca){t[ua].push(Aa[wa].attr("data-modelcode"))});Ga=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;var Ea="",Ia="";Ia=Number(g(".hiddenPrice")[0].getAttribute("value"));
1900Ea=Ea="";g(".pdd16-step-buying__evoucher-title span").html(++c);S?(Ea=Number(g("#voucherBalance").attr("data-price")),0>Ea-Number(ja)&&(Ia+=-(Ea-Number(ja))),ma+=Number(Y),ta+=Number(ya),h(parseFloat(ja),!0)):Ia+=Number(ja);Ea=Granite.I18n.get("From {0}/mo",currencyComma(Ia/Number(Ga),ra))+" "+Granite.I18n.get("for {0} mos",Ga)+" "+Granite.I18n.get("or")+" "+currencyComma(Ia,ra);Y=Ea.split(" "+qa+" ");Ia=m?'\n\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
1901ha+" "+Y[0].replace(ha,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t"+qa+" "+Y[1]+'\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+Ia+'"\x3e':'\n\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Y[1]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+Ia+'"\x3e';g(".pdd16-step-buying__header-price").html(Ia);
1902g(".pdd16-step-buying__footer-sum").html(Ia);S&&(Ea=ta?currencyComma(ma,ra)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ta,ra)+"\x3c/del\x3e "+currencyComma(ma-ta,ra):currencyComma(ma,ra),g("#selectedItem").html(Ea),z.useAddonV2&&g("#selectedItem2").html(Ea));l.sg.components.notifyMePopup.closePopup()});g(document).off("click",".add-ons-evoucher-popup .layer-popup__close");g(document).on("click",".add-ons-evoucher-popup .layer-popup__close",function(){var Y=g(this).attr("data-attr-parent");
1903g.each(g(".pdd16-step-buying__tab .bundleSelect"),function(ja,ya){g(this).attr("data-modelcode")===Y&&(g(this).find("span").text(za),g(this).removeClass("cta--on"))})});T.bridgePageCommonHybris={moveBridgePage:function(Y){S=l.sg.components.dynamic.detailSharedObj.hasVoucher;z=T.detailSharedObj;var ja=T.detailSharedObj.drawObj.price.priceWrapper.info;Y=ja.totalPrice||"";var ya=ja.savePrice||"";ja=ja.unformattedSavePrice||"";var Aa=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.orignalPrice||
1904"",Ga=currencyComma(Aa,ra)||"",ua=Y.split(" "+qa+" ");sa=z.totalPrice.sale;if(r){var Ea='\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';1<ua.length?(m=!0,Ea+="\x3cstrong\x3e"+ha+" "+ua[0].replace(ha,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+qa+" "+ua[1]+"\x3c/strong\x3e"):Ea+="\x3cstrong\x3e"+Y+"\x3c/strong\x3e";Ga&&ya?Ea=Da?Ea+"\x3c/div\x3e":z.isNewElementLowestWasPrice&&!z.isNewElementLowestWasPriceSetting?Ea+"\x3c/div\x3e":"in"==fa?Ea+('\n\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save"\x3e\n\t\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"was-text" data-orignal-price\x3d'+
1905Aa+'\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3eMRP: '+(Ga+' (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d')+(ja+"\x3e"+ya+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e")):Ea+('\n\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save '+(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t'+(P?'\x3cdel class\x3d"was-text" data-orignal-price\x3d'+Aa+"\x3e"+
1906Ga+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+Aa+"\x3e"+Ga+"\x3c/span\x3e")+'\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d'+ja+"\x3e"+ya+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e"):"in"!=fa||ya||(Ea+='\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save"\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"was-text" data-orignal-price\x3d'+Aa+'\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3eMRP: '+
1907(Ga+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e"));Ea+='\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e';z.vdAddonInitPriceHtml=Ea}else z.useAddonV2?1<ua.length?(m=!0,Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+ua[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t "+qa+" "+ha+" "+ua[0].replace(ha,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
1908sa+'"\x3e'):Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+ua[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e':1<ua.length?(m=!0,Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
1909ha+" "+ua[0].replace(ha,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t"+qa+" "+ua[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e'):Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+ua[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e';g(".pdd16-step-buying__header-price").html(Ea);
1910g(".pdd16-step-buying__footer-sum").html(Ea);Y=na||da?z.hasGift&&Sa&&!z.hasVoucher:L?z.hasGift&&Sa:!1;na&&z.hasVoucher&&Sa&&(Y=z.hasGift=!1);Y?(g(".pdd16-step-buying .tab").removeClass("bg-light-gray").removeAttr("data-use-arrow"),g(".pdd16-step-buying .tab__list").hide(),g(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")||g(".pdd16-step-buying").addClass("pdd16-step-buying--free-gift"),Sa=!1,l.sg.components.dynamic.bridgePagefreeGift.moveBridgePage()):(Y=r&&z.newEmbedVDCountry,ya=z.soundbarCategoryData&&
19110<Object.keys(z.soundbarCategoryData).length?!0:!1,Y=Y?z.hasAddOns&&!z.isEmbedAddOn:z.hasAddOns&&(!z.isEmbedAddOn||z.isEmbedAddOn&&ya),ya=z.useAddonV2?g(".pdd16-step-buying-v2__evoucher"):g(".pdd16-step-buying__evoucher"),Y?(g(".pdd16-step-buying .tab").addClass("bg-light-gray").attr("data-use-arrow"),g(".pdd16-step-buying .tab__list").show(),y=T.bridgePageCommon,Oa.get("useStaticSubTitle")?(g(".pdd16-step-buying__sub-headline").css("display",""),S?ya.css("display",""):ya.remove()):S&&(g(".pdd16-step-buying__sub-headline").css("display",
1912""),ya.css("display","")),g(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")&&g(".pdd16-step-buying").removeClass("pdd16-step-buying--free-gift"),z.isEmbedAddOn||(da?(v(),y.categoryGridGPv2()):y.get
1912SearchProductcard(v)),Sa=!0,Oa.get("useTncOnAddOn")||(Y=g(".pdd16-step-buying__tnc"))&&0<Y.length&&Y.hide()):na&&z.hasVoucher&&(Y=-1<z.cartUrl.indexOf("https://")||-1<z.cartUrl.indexOf("http://")?z.cartUrl:z.apiDomain+z.cartUrl,Y=va?g("#storeWebDomain").val()+"/"+g("#eppCompanyCode").val()+
1913"/cart":Y,location.href=Y));T.detailSharedObj.hasVoucher?(u(),g("#primaryInfoCheckOutAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+oa+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout"),g("#primaryInfoGoCartAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+oa+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart")):(g("#primaryInfoCheckOutAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr",
1914"pdd16_product bought together-"+oa+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout"),g("#primaryInfoGoCartAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+oa+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"));g("#primaryInfoCheckOutAddOn, #primaryInfoGoCartAddOn,skipGoCartAddOn,voucherGoCartAddOn").removeAttr("data-modelcode").removeAttr("data-modelname").removeAttr("data-modeldisplay").removeAttr("data-modelprice").removeAttr("data-discountprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-pimsubtype").removeAttr("data-modelrevenue").removeAttr("data-modelqty").removeAttr("data-modelcurrency")},
1915setSharedObj:function(Y){z=Y}}})(window,window.jQuery);
1916(function(l,g){function H(N,b,r,G){var P=l.sg.components.dynamic.detailSharedObj,Z=P.drawObj,d=Z.embedAddon.itemSet;N&&(d=Z.embedAddon.itemSet=[]);P.soundbarCategoryData={};va=modelCode;G&&b.every(function(V){var O=V.category&&V.category.order;if(""==O||null==O)return!1;O=Number(O);if(isNaN(O))return!1;V.category.order=O;return!0})&&b.sort(function(V,O){return V.category.order-O.category.order});if(ca){var M=0;Z=$jscomp.makeIterator(b);for(G=Z.next();!G.done;G=Z.next()){var t=$jscomp.makeIterator(G.value.products);
1917for(G=t.next();!G.done;G=t.next())M++}d.length>=M&&(d=[]);E={};z=b;var y=0;for(M={$jscomp$loop$prop$i$310$351:0};M.$jscomp$loop$prop$i$310$351<b.length;M={$jscomp$loop$prop$i$310$351:M.$jscomp$loop$prop$i$310$351},M.$jscomp$loop$prop$i$310$351++)r&&null!=b[M.$jscomp$loop$prop$i$310$351].products&&0<b[M.$jscomp$loop$prop$i$310$351].products.length&&(u(b[M.$jscomp$loop$prop$i$310$351].products),g.each(b[M.$jscomp$loop$prop$i$310$351].products,function(V){return function(O,S){O=S.modelcode;var Q=E[O]=
1918{};Q.modelCode=O;Q.name=S.name;S.priority&&(Q.priority=S.priority);S.imageUrl&&(Q.imageUrl=S.imageUrl);S.imageUrlAlt&&(Q.imageUrlAlt=S.imageUrlAlt);S.stocklevel&&(Q.stocklevel=S.stocklevel);S.price&&S.priceValue&&(Q.priceValue=S.priceValue,Q.price=S.price,Q.promotionPriceValue=S.priceValue,Q.promotionPrice=S.price);S.promotionPrice&&S.promotionPriceValue&&(Q.promotionPriceValue=S.promotionPriceValue,Q.promotionPrice=S.promotionPrice);S.lowestWasPrice&&S.lowestWasPriceValue&&(Q.lowestWasPriceValue=
1919S.lowestWasPriceValue,Q.lowestWasPrice=S.lowestWasPrice);S.commercialFlag&&(Q.commercialFlag=S.commercialFlag);S.referenceColor&&(Q.referenceColor=S.referenceColor);if("at"==k&&0<S.aemAdditionalInfoTypes.length){var ea=S.aemAdditionalInfoTypes.filter(function(la){return"CHILD_PRODUCT"==la.type});0<ea.length&&(Q.childModelCode=ea[0].aemAdditionalInfos[0].value)}if(S.groupCode&&0==S.groupId||S.groupCode&&0!=S.groupId)Q.groupCode=S.groupCode,Q.groupId=S.groupId;F(S.modelcode)&&(P.hasBundle=!0,na=b[V.$jscomp$loop$prop$i$310$351].category.display_name,
1920g.extend(S,Q),P.addonBundleIdx=V.$jscomp$loop$prop$i$310$351,P.addonBundleData=b[V.$jscomp$loop$prop$i$310$351],W(S.modelcode));N?(n(P,S,Q,O,d,y),y++):P.isEmbedAddOn&&P.embedAddon08&&(n(P,S,Q,O,d,y),y++)}}(M)));0<Object.keys(E).length&&!N&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);N?(P.vdRelatedProducts=E,0<Object.keys(P.vdRelatedProducts).length&&!P.showEmbedAddon&&v(P,d,P.vdRelatedProducts,b,r)):P.isEmbedAddOn&&P.embedAddon08&&
1921v(P,d,E,b,r)}else if(K){Z=0;t=$jscomp.makeIterator(b);for(G=t.next();!G.done;G=t.next()){var I=$jscomp.makeIterator(G.value.products);for(G=I.next();!G.done;G=I.next())Z++}d.length>=Z&&(d=[]);E={};z=b;var X=0;for(G={$jscomp$loop$prop$i$315$353:0};G.$jscomp$loop$prop$i$315$353<b.length;G={$jscomp$loop$prop$i$315$353:G.$jscomp$loop$prop$i$315$353},G.$jscomp$loop$prop$i$315$353++)r&&null!=b[G.$jscomp$loop$prop$i$315$353].products&&0<b[G.$jscomp$loop$prop$i$315$353].products.length&&(u(b[G.$jscomp$loop$prop$i$315$353].products),
1922g.each(b[G.$jscomp$loop$prop$i$315$353].products,function(V){return function(O,S){O="in"!==k?S.modelco
1922de:S.aemSkuCode;var Q=E[O]={};Q.modelCode=O;Q.name=S.name;S.priority&&(Q.priority=S.priority);S.picture&&(Q.imageUrl=S.picture.url,Q.imageUrlAlt=S.picture.altText);S.stock&&(Q.stocklevel=S.stock.stockLevelStatus);S.price&&S.price.value&&(Q.priceValue=S.price.value,Q.price=S.price.formattedValue,Q.promotionPriceValue=S.price.value,Q.promotionPrice=S.price.formattedValue);S.promotionPrice&&S.promotionPrice.value&&
1923(Q.promotionPriceValue=S.promotionPrice.value,Q.promotionPrice=S.promotionPrice.formattedValue);S.lowestWasPrice&&S.lowestWasPrice.value&&(Q.lowestWasPriceValue=S.lowestWasPrice.value,Q.lowestWasPrice=S.lowestWasPrice.formattedValue);S.commercialFlag&&(Q.commercialFlag=S.commercialFlag);S.referenceColor&&(Q.referenceColor=S.referenceColor);if(S.groupCode&&0==S.groupId||S.groupCode&&0!=S.groupId)Q.groupCode=S.groupCode,Q.groupId=S.groupId;F(S.modelcode)&&(P.hasBundle=!0,na=b[V.$jscomp$loop$prop$i$315$353].category.display_name,
1924g.extend(S,Q),P.addonBundleIdx=V.$jscomp$loop$prop$i$315$353,P.addonBundleData=b[V.$jscomp$loop$prop$i$315$353],W(S.modelcode));Q.bundleCategoryName=b[V.$jscomp$loop$prop$i$315$353].category.display_name;N?(n(P,S,Q,O,d,X),X++):P.isEmbedAddOn&&P.embedAddon08&&(n(P,S,Q,O,d,X),X++)}}(G)));for(M in E)G=E[M],G.bundleCategoryName===na&&(F(G.modelCode)||delete E[M]);0<z.length&&z.forEach(function(V,O){if(V.category.display_name===na)for(var S in V.products)F(V.products[S].modelcode)||z[O].products.splice(S,
19251)});0<Object.keys(E).length&&!N&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);N?(P.vdRelatedProducts=E,0<Object.keys(P.vdRelatedProducts).length&&!P.showEmbedAddon&&v(P,d,P.vdRelatedProducts,b,r)):P.isEmbedAddOn&&P.embedAddon08&&v(P,d,E,b,r)}}function u(N){N.sort(function(b,r){return r.priority&&0!=r.priority?0==b.priority?1:b.priority-r.priority:b.priority&&0!=b.priority?-1:0})}function n(N,b,r,G,P,Z){var d=N.drawObj,M=ca?
1926b.promotionPriceValue:b.promotionPrice?b.promotionPrice.value:"",t=ca?b.priceValue:b.price.value,y=""+(b.promotionPrice&&M?M:"");M=""+(y?t-M:"");y=""+(y?Granite.I18n.get("Save {0}",currencyComma(M,p)):"");if("bg"==k&&M){if("eur"===N.priceCurrency.toLowerCase()){t=Math.pow(10,2);var I=1.95583*Number(M);I=Math.round(I*t)/t;t=currencyComma(I,"BGN")}else t=Math.pow(10,2),I=Number(M)/1.95583,I=Math.round(I*t)/t,t=currencyComma(I,"EUR");y+=" / "+t}var X=I=t=null;"outofstock"===r.stocklevel.toLowerCase()&&
1927(t=!0,I=" add-on-product--out-of-stock");d.embedAddon.hasComponent=!0;d.embedAddon.title=Granite.I18n.get("Add-on Items");d.embedAddon.isVDSTEPBUYING=h?h:null;d.embedAddon.isNotVDSTEPBUYING=h?null:!0;d.embedAddon.newComponent=!0;d.embedAddon.useMobileCTA=!1;2<Z&&d.embedAddon.newComponent&&(X=" pd-select-option__view-more--hidden");"cl"!==k&&(d.embedAddon.description=Granite.I18n.get("Additional items to complement your purchase"));var V=N.categoryTypeCode?N.categoryTypeCode.substring(0,2):"";"pe"==
1928k&&"08"===V&&(d.embedAddon.title=Granite.I18n.get("Add-on Items(08)"),d.embedAddon.description=Granite.I18n.get("Additional items to complement your purchase(08)"));P.push({index:Z,name:b.name,nameToLowerCase:b.name?b.name.toLowerCase():"",groupCode:b.groupCode.toLowerCase(),modelCode:G,shopSku:b.modelcode,finalPrice:r.promotionPrice,finalPriceValue:r.promotionPriceValue,originalPrice:!M||t||L?null:r.price,originalPriceValue:M&&!t?K?b.price.value:b.priceValue:null,savePrice:!M||t||L?null:y,savePriceValue:M&&
1929!t?M:null,isOOS:t,isStock:!t,oosClass:I,hideClass:X,revenue:b.price.value,isLearnMorePopup:h||N.embedAddon08})}function v(N,b,r,G,P){N.showEmbedAddon=!0;var Z=N.drawObj,d=N.view;l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(r),function(M,t){if(t&&200===M.response.statusCode&&null!=M.response.resultData&&null!=M.response.resultData.productList){var y=M.response.resultData.productList;3<b.length&&Z.embedAddon.newComponent&&(Z.embedAddon.useMobileCTA=!0);g.each(b,
1930function(I,X){g.each(y,function(V,O){V=O.modelList;null!=V&&g.each(V,function(S,Q){if(X.modelCode===Q.modelCode){if(h||N.embedAddon08||N.isEmbedAddOn){!Q.galleryImage&&Q.thumbUrl&&(Q.galleryImage=[Q.thumbUrl],Q.galleryImageAlt=[Q.thumbUrlAlt]);b[I].imgSrc=e(Q.thumbUrl);b[I].imgSrcList=Q.galleryImage;b[I].imgAlt=Q.thumbUrlAlt;b[I].imgAltList=Q.galleryImageAlt;b[I].thirdPASeller=O.thirdPASeller;b[I].tradeIn=Q.tradeIn;b[I].tradeInDesc=Q.tradeInDesc;b[I].premiumCare=Q.premiumCare;b[I].premiumCareDesc=
1931Q.premiumCareDesc;b[I].financing=Q.financing;b[I].financingDesc=Q.financingDesc;b[I].upgrade=Q.upgrade;b[I].upgradeDesc=Q.upgradeDesc;b[I].financingDesc=Q.financingDesc;b[I].storePromotions=Q.storePromotions;b[I].vd3PAMarketingMessage=Q.vd3PAMarketingMessage;b[I].uspText=Q.uspText;b[I].keySummary=Q.keySummary;b[I].ratings=Q.ratings;b[I].pdpUrl=Q.pdpUrl;if(Q.topFlags&&Q.topFlags.iconTitle&&Q.topFlags.iconTypeCd){S=Q.topFlags.iconTypeCd;var ea="";switch(S.replace(/ /g,"").toUpperCase()){case "N":S=
1932Granite.I18n.get("new");ea="badge-icon--bg-color-blue";break;case "H":S=Granite.I18n.get("hot");ea="badge-icon--bg-color-red";break;case "B":S=Granite.I18n.get("best seller");ea="badge-icon--bg-color-orange";break;case "U":S=Q.topFlags.iconTitle,ea="badge-icon--bg-color-teal"}b[I].iconTitle=S;b[I].iconClass=ea}if(h){S="Hybris"===g("#shopIntegrationFlag").val();ea="Hybris-intg"===g("#shopIntegrationFlag").val();var la="Hybris-new"===g("#shopIntegrationFlag").val();
1932b[I].uspText&&0<b[I].uspText.length&&
1933(b[I].dotList1=b[I].uspText[0],b[I].dotList2=b[I].uspText[1]?b[I].uspText[1]:"");S&&b[I].marketingMessage&&0<b[I].marketingMessage.length&&(b[I].dotList3=b[I].marketingMessage[0]);(ea||la)&&b[I].storePromotions&&0<b[I].storePromotions.length&&(b[I].dotList3=b[I].storePromotions[0])}}else b[I].imgSrc=e(Q.thumbUrl),b[I].imgAlt=Q.thumbUrlAlt;b[I].modelName=Q.modelName;b[I].pviType=Q.pviTypeName?Q.pviTypeName.toLowerCase():"";b[I].pviSubtype=Q.pviSubtypeName?Q.pviSubtypeName.toLowerCase():"";b[I].categorySubType=
1934O.categorySubTypeName?O.categorySubTypeName:O.categorySubTypeEngName;Q=!0;C&&(Q=!1);Q||(b[I].originalPrice=b[I].originalPriceValue=b[I].savePrice=b[I].savePriceValue=null)}})})});0<b.length&&(d.embedAddonDraw(N,Z),0<g(".pd-select-option__view-more").length&&l.sg.common.icon.redrawSvgs(document.querySelector(".pd-select-option__view-more")),l.sg.components.PDbuyingToolNew.reInit())}})}function F(N){return N?"F-"==N.substring(0,2):!1}function W(N){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(b,
1935N,function(r,G){T={};T.bundleModelCode=N;G&&null!=r.products&&0<r.products.length&&(g.each(r.products,function(P,Z){P=Z.modelcode;var d=T[P]={};d.modelCode=P;d.name=Z.name;Z.imageUrl&&(d.imageUrl=Z.imageUrl);Z.imageUrlAlt&&(d.imageUrlAlt=Z.imageUrlAlt);Z.stocklevel&&(d.stocklevel=Z.stocklevel);Z.price&&Z.priceValue&&(d.priceValue=Z.priceValue,d.price=Z.price,d.promotionPriceValue=Z.priceValue,d.promotionPrice=Z.price);Z.promotionPrice&&Z.promotionPriceValue&&(d.promotionPriceValue=Z.promotionPriceValue,
1936d.promotionPrice=Z.promotionPrice);if(Z.groupCode&&0==Z.groupId||Z.groupCode&&0!=Z.groupId)d.groupCode=Z.groupCode,d.groupId=Z.groupId;Z.colorCode&&(d.colorCode=Z.colorCode)}),R.push(T));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(N,function(r,G){T={};T.bundleModelCode=N;G&&null!=r.products&&0<r.products.length&&(g.each(r.products,function(P,Z){P=Z.modelcode;var d=T[P]={};d.modelCode=P;d.name=
1937Z.name;Z.picture&&(d.imageUrl=Z.picture.url,d.imageUrlAlt=Z.picture.altText);Z.stock&&(d.stocklevel=Z.stock.stockLevelStatus);Z.price&&Z.price.value&&(d.priceValue=Z.price.value,d.price=Z.price.formattedValue,d.promotionPriceValue=Z.price.value,d.promotionPrice=Z.price.formattedValue);Z.promotionPrice&&Z.promotionPrice.value&&(d.promotionPriceValue=Z.promotionPrice.value,d.promotionPrice=Z.promotionPrice.formattedValue);if(Z.groupCode&&0==Z.groupId||Z.groupCode&&0!=Z.groupId)d.groupCode=Z.groupCode,
1938d.groupId=Z.groupId;Z.colorCode&&(d.colorCode=Z.colorCode)}),R.push(T));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"})}function aa(N,b){g.each(b,function(r,G){g.each(N,function(P,Z){var d=Z.modelList;null!=d&&(x(d,Z.chipOptions,b),g.each(d,function(M,t){var y=t.modelCode,I=b[y].stocklevel||"";b[y]&&(t.displayName||(t.displayName=b[y].name||""),t.thumbUrlAlt=b[y].imageUrlAlt||"",t.priceDisplay=b[y].price||"",t.promotionPriceDisplay=b[y].promotionPrice||"",t.lowestWasPriceDisplay=
1939b[y].lowestWasPrice||"",t.price=b[y].priceValue||"",t.promotionPrice=b[y].promotionPriceValue||"",t.lowestWasPrice=b[y].lowestWasPriceValue||"",t.stocklevel=I,t.isStock=!(""===I||"OUTOFSTOCK"===I.toUpperCase()),t.idx=String(P)+"-"+String(M),t.commercialFlag=b[y].commercialFlag||"",t.referenceColor=b[y].referenceColor||"",t.childModelCode=b[y].childModelCode||"")}))})})}function x(N,b,r){g.each(N,function(G,P){G=P.modelCode;if(r[G]){var Z=r[G].priority||0;P.priority=Z;P.fmyChipList&&g.each(P.fmyChipList,
1940function(d,M){M.fmyChipType&&"color"==M.fmyChipType.toLowerCase()&&g.each(b,function(t,y){y.fmyChipType&&"color"==y.fmyChipType.toLowerCase()&&g.each(y.optionList,function(I,X){X.optionCode==M.fmyChipCode&&(X.priority=Z)})})})}});N.sort(function(G,P){return 0==P.priority?0==G.priority?0:-1:0==G.priority?1:G.priority-P.priority});g.each(b,function(G,P){"color"==P.fmyChipType.toLowerCase()&&P.optionList.sort(function(Z,d){return 0==d.priority?0==Z.priority?0:-1:0==Z.priority?1:Z.priority-d.priority})})}
1941function U(N){var b=l.sg.components.dynamic.detailSharedObj;fa={};var r=0,G={},P=[],Z=[];
1941if(h&&!b.newEmbedVDCountry){var d=b.soundbarCategoryData&&0<Object.keys(b.soundbarCategoryData).length?!0:!1,M=b.globalServiceInfo.embedaddon&&0<b.globalServiceInfo.embedaddon.length?!0:!1;h&&d&&M&&(z=z.filter(function(y){var I=y.category.id.replace(/_/g,"").replace(/ /g,"").toLowerCase();if(-1===I.indexOf("soundbar")&&-1===I.indexOf("sounddevice"))return y}))}g.each(z,function(y,I){g.each(z[y].products,function(X,
1942V){g.each(N,function(O,S){var Q=S.familyId;g.each(S.modelList,function(ea,la){if(V.modelcode==("in"!==k?la.modelCode:la.shopSKU)){var ma=B(S);if("cn"==k&&"01090100"==ma.categorySubTypeCode){var ta=la.fmyChipList.filter(function(xa){return"RING SIZE"==xa.fmyChipType})[0].fmyChipCode;-1==Z.indexOf(ma.familyId+"_"+ta)&&(ma.familyId=Q+"_"+ta,ma.chipOptions=ma.chipOptions.map(function(xa){if("RING SIZE"==xa.fmyChipType)return Object.assign({},xa,{optionList:xa.optionList.filter(function(Ma){return Ma.optionCode==
1943ta})});var sa=[];ma.modelList.filter(function(Ma){return Ma.fmyChipList[0].fmyChipCode==ta}).forEach(function(Ma){Ma.fmyChipList.forEach(function(pa){"COLOR"==pa.fmyChipType&&sa.push({multiColorList:pa.multiColorList,multiColorYN:pa.multiColorYN,optionCode:pa.fmyChipCode,optionLocalName:pa.fmyChipLocalName,optionName:pa.fmyChipName,priority:0})})});return Object.assign({},xa,{optionList:sa})}),ma.modelList=ma.modelList.filter(function(xa){return xa.fmyChipList[0].fmyChipCode==ta}),P.push(ma),Z.push(ma.familyId))}else-1==
1944Z.indexOf(ma.familyId)&&(P.push(ma),Z.push(ma.familyId));G={category:{display_name:I.category.display_name,id:I.category.id,order:I.category.order,productList:P,key:r}};fa[r]=G}})})});Z=[];P=[];r++});r=0;d=b.addonBundleIdx;!fa[d]&&b.hasBundle&&(b=b.addonBundleData,fa[d]={category:{display_name:b.category.display_name,id:b.category.id,key:d,order:b.category.order,productList:b.products}});b=Object.keys(fa);b=$jscomp.makeIterator(b);for(d=b.next();!d.done;d=b.next())fa[r]=fa[d.value],fa[r].category.id=
1945r,r++;b=[];for(var t in fa)b.push(fa[t]);b.sort(function(y,I){return y.category.order-I.category.order});g.each(b,function(y,I){g.each(I.category.productList,function(X,V){g.each(V.modelList,function(O,S){S.idx=X+"-"+S.idx.split("-")[1]})})});return b}function B(N){for(var b={},r=$jscomp.makeIterator(Object.entries(N)),G=r.next();!G.done;G=r.next()){var P=$jscomp.makeIterator(G.value);G=P.next().value;P=P.next().value;b[G]=P}r=[];for(G=0;G<N.modelList.length;G++){P={};for(var Z=$jscomp.makeIterator(Object.entries(N.modelList[G])),
1946d=Z.next();!d.done;d=Z.next()){var M=$jscomp.makeIterator(d.value);d=M.next().value;M=M.next().value;P[d]=M}r.push(P)}b.modelList=r;return b}function w(N){var b=l.sg.components.dynamic.detailSharedObj,r=[];ra=[];K&&(oa=[]);if(0<Object.keys(fa).length){g.each(fa,function(d,M){null!=M.category.id&&void 0!=M.category.id&&0>ra.indexOf(M.category.id)&&(r={categoryId:M.category.id,categoryOrder:M.category.order,display_name:M.category.display_name},ra.push(M.category.id),oa.push(r))});oa.sort(function(d,
1947M){return d.categoryOrder-M.categoryOrder});ra=[];for(N=0;N<oa.length;N++)ra.push(oa[N].categoryId);var G="",P=g(".pdd16-step-buying__headline"),Z=g(".pdd16-step-buying__sub-headline");b.useAddonV2&&(P=g(".pdd16-step-buying-v2__headline"),Z=g(".pdd16-step-buying-v2__sub-headline"));g.each(ra,function(d,M){M="es"===k?"Choose yours {0}":"Choose your {0}";0==d&&h?(P[0].innerHTML=Granite.I18n.get(M,oa[d].display_name),A?(Z.text(Granite.I18n.get("addon subtitle")),"nl"===k&&b.addonStepBuying0701&&(P.text(Granite.I18n.get("addon title(monitor)")),
1948Z.text(Granite.I18n.get("addon subtitle(monitor)")))):("ch"===k||"ch_fr"===k)&&b.addonStepBuying04&&P.text(Granite.I18n.get("addon title(tv)"))):h||b.hasVoucher||"se"===k||"no"===k||"dk"===k||"fi"===k||(P[0].innerHTML=Granite.I18n.get("Amazing additions"),Z.css("display","none"));G+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';G+='\t\t\t\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-select-tab" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+
1949(h?"vd ":"")+"add-on:"+oa[d].display_name+':tab"\x3e'+oa[d].display_name;G+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';G+="\t\t\t\t\x3c/button\x3e";G+="\t\t\t\x3c/li\x3e"})}else G="",P=g(".pdd16-step-buying__headline"),G+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e',G+='\t\t\t\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-select-tab" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+(h?"vd ":"")+"add-on:"+
1950na+':tab"\x3e'+na,G+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e',G+="\t\t\t\t\x3c/button\x3e",G+="\t\t\t\x3c/li\x3e";0<g(".tab__list").length&&g(".tab__list").html(G)}
1950function e(N,b,r){b="";var G=g("#scene7domain").val();N&&(-1<N.indexOf("?")&&(N=N.replace("medias",""),N=N.substring(2,N.indexOf("?")),N=N.substring(0,N.lastIndexOf("-"))),-1<N.indexOf("https:")||-1<N.indexOf("http:")||-1<N.indexOf("//stg-images.samsung.com/")||-1<N.indexOf("//images.samsung.com/")||-1<N.indexOf("image.samsung.com/")||
1951-1<N.indexOf("//stg-images.samsung.com.cn/")||-1<N.indexOf("//images.samsung.com.cn/")||-1<N.indexOf("image.samsung.com.cn/")?b=N:(r&&(G=G.replace("/image/","/content/")),b=G+N));return b}l.sg.sdf.util.prepareNamespace("sg.components.dynamic");var p=g("#priceCurrency").val(),k=g("#siteCode").val(),A="nl"===k||"be"===k||"be_fr"===k,ca="Hybris"===g("#shopIntegrationFlag").val()||"Hybris-intg"===g("#shopIntegrationFlag").val(),K="Hybris-new"===g("#shopIntegrationFlag").val(),D=g("#categorySubTypeCode").val(),
1952h=2<D.length&&"04"===D.substring(0,2)||4<D.length&&"0701"===D.substring(0,4),C="pl"===k||"si"===k||"gr"===k||"fi"===k||"it"===k||"se"===k||"no"===k||"dk"===k||"fr"===k?!0:!1,E={},T={},R=[],z={},fa={},va="",ra=[],oa=[],da="",na="";Granite.I18n.get("From");Granite.I18n.get("or");Granite.I18n.get("Monthly Price:");Granite.I18n.get("Full Price:");Granite.I18n.get("Add");Granite.I18n.get("Are you sure to remove this product?");var L="true"===g("#isEppPage").val()&&"pl"===k?!0:!1;"true"===g("#isEppPage").val()&&
1953(C="Y"===eppOmniPricingUseYn?!0:!1);l.sg.components.dynamic.bridgePageCommon={getRelatedProductsSimpleInfo:function(N){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!1,b,N,function(r,G){r&&0<r.length&&H(!1,r,G,b.embedAddon08)},null,{queryType:"ACCESSORIES"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(N,function(r,G){r&&0<r.length&&H(!1,r,G,b.embedAddon08)},null,
1954{queryType:"ACCESSORIES"})},getRelatedProductsVdSimpleInfo:function(N){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!0,b,N,function(r,G){r&&0<r.length&&H(!0,r,G,!0)},null,{queryType:"DISPLAY_ON_PDP"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(N,function(r,G){r&&0<r.length&&H(!0,r,G,!0)},null,{queryType:"DISPLAY_ON_PDP"})},getSearchProductcard:function(N){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(E),
1955function(b,r){r&&200===b.response.statusCode&&null!=b.response.resultData&&null!=b.response.resultData.productList&&(b=b.response.resultData.productList,aa(b,E),b=U(b),w(va),N(b))},null,null)},setPriceInfo:function(N){var b=N.price,r=N.promotionPrice,G=Number((b-r).toFixed(2)),P=currencyComma(G,p),Z=A||!N.priceDisplay?currencyComma(b,p):N.priceDisplay,d=A||!N.promotionPriceDisplay?currencyComma(r,p):N.promotionPriceDisplay,M=N.lowestWasPrice?parseFloat(N.lowestWasPrice):0,t="co"===k&&"true"===N.vatEligible&&
1956N.vatFreePrice&&N.vatFreePriceDisplay;return{promotionPrice:r,productPrice:b,savePriceTemp:G,saveText:P,productPriceDisplay:Z,promotionPriceDisplay:d,lowestWasPrice:M,vatPrice:t?N.vatFreePriceDisplay:"",vatPriceValue:t?N.vatPriceValue:""}},getBundleCategoryName:function(){return na},getRelatedProductsSimpleBundle:W,getBundleSearchProductcard:function(N){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(T),function(b,r){if(r&&200===b.response.statusCode&&null!=b.response.resultData&&
1957null!=b.response.resultData.productList){var G=b.response.resultData.productList;g.each(T,function(P,Z){g.each(G,function(d,M){M=M.modelList;null!=M&&g.each(M,function(t,y){var I=y.modelCode,X=T[I].stocklevel||"";T[I]&&(y.displayName||(y.displayName=T[I].name||""),y.thumbUrlAlt=T[I].imageUrlAlt||"",y.priceDisplay=T[I].price||"",y.promotionPriceDisplay=T[I].promotionPrice||"",y.price=T[I].priceValue||"",y.promotionPrice=T[I].promotionPriceValue||"",y.stocklevel=X,y.isStock=!(""===X||"OUTOFSTOCK"===
1958X.toUpperCase()),y.idx=String(d)+"-"+String(t),y.commercialFlag=T[I].commercialFlag||"",y.referenceColor=T[I].referenceColor||"",y.childModelCode=T[I].childModelCode||"")})})});da=G;N(da)}},null,null)},categoryGridGPv2:function(){var N="";l.sg.components.dynamic.detailSharedObj.addOnCategoryList.forEach(function(b){N+='\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';N+='\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-select-tab" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+
1959b.category.display_name+':tab"\x3e'+b.category.display_name;N+='\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';N+="\t\x3c/button\x3e";N+="\x3c/li\x3e"});g(".pdd16-step-buying .tab__list").html(N)}}})(window,window.jQuery);
1960(function(l,g){function H(O,S){l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();fa=C?[].concat($jscomp.arrayFromIterable(new Set(A.addOnGift.products.map(function(ea){return ea.family_id}
1960)))).map(function(ea,la){return function(ma){ma=void 0===ma?{}:ma;return{familyId:ea,chipOptions:ma.chipOptions,modelList:(void 0===ma.modelList?[]:ma.modelList).filter(function(ta){var xa=ta.modelCode;return A.addOnGift.products.some(function(sa){var Ma=sa.modelCode;return sa.family_id===
1961ea&&Ma===xa})}).map(function(ta,xa){var sa=A.addOnGift.products[xa],Ma=!(""===sa.inventory.status||"OUTOFSTOCK"===sa.inventory.status.toUpperCase());return Object.assign({},ta,{idx:la+"-"+xa,stocklevel:sa.inventory.status,isStock:Ma,displayName:sa.displayName})})}}(A.addOnSearchGPv2.find(function(ma,ta){return ma.familyId===ea}))}).filter(function(ea){return 0<ea.modelList.length}):O;if(S||null!=fa&&0!==Object.keys(fa).length){W(fa);I.get("useTnc")&&I.get("useTncFromAPI")&&(y=w(),O=I.get("tncAPIContext")?
1962I.get("tncAPIContext"):"",y.render(O));l.scrollTo(0,0);g(".pdd16-step-buying__promotion-banner").hide();g(".pdd16-step-buying").show();k.hide();if(C||E){O=g("[class*\x3d'feature-benefit']");for(S=0;S<O.length;S++)O[S].remove();O=g("[class*\x3d'three-column-carousel']");for(S=0;S<O.length;S++)O[S].remove();g(".video-wrapper").remove();O=g(".root.responsivegrid \x3e div");for(var Q=0;Q<O.length;Q++)S=O[Q].classList,S.value.includes("aem-Grid--12")||O[Q].remove();0<g(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&
1963g(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(T)for(O=g(".root.responsivegrid \x3e div"),Q=0;Q<O.length;Q++)S=O[Q].classList,S.value.includes("aem-Grid--default--12")||O[Q].remove();g(".pdd16-step-buying").siblings().add(g(".pdd16-step-buying").parent().siblings()).hide();setTimeout(function(){l.sg.components.stepbuying.init()},10);0===g(".scrollbar__contents .pdd16-step-buying__card").not(".is-item-visible").length&&g(".pdd16-step-buying__cta-more").hide();
1964_satellite.setVar("Add Page Name","free gift");_satellite.track("page view")}else(!R||R&&"in"===ca)&&A.addonsFlag&&(A.hasAddOns=!0),A.hasAddOns?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():setInterval(function(){p.DetailAfterEvent.addToCartCta([],!0,!0)},1E3)}function u(O,S){for(var Q=0;Q<O.length;Q++)if(O[Q]===S)return!0;return!1}function n(O,S,Q){S="";var ea=g("#scene7domain").val();O&&(-1<O.indexOf("?")&&(O=O.replace("medias",""),O=O.substring(2,O.indexOf("?")),O=O.substring(0,
1965O.lastIndexOf("-"))),-1<O.indexOf("https:")||-1<O.indexOf("http:")||-1<O.indexOf("//stg-images.samsung.com/")||-1<O.indexOf("//images.samsung.com/")||-1<O.indexOf("image.samsung.com/")||-1<O.indexOf("//stg-images.samsung.com.cn/")||-1<O.indexOf("//images.samsung.com.cn/")||-1<O.indexOf("image.samsung.com.cn/")?S=O:(Q&&(ea=ea.replace("/image/","/content/")),S=ea+O));return S}function v(O){var S="",Q=O.modelList[O.frontModelIdx],ea=Q.idx==V,la=Q.fmyChipList,ma="";if(la&&0<la.length)for(var ta=0;ta<
1966la.length;ta++)if("COLOR"==la[ta].fmyChipType){ma=""!==Q.fmyChipList[ta].fmyChipLocalName?Q.fmyChipList[ta].fmyChipLocalName:Q.fmyChipList[ta].fmyChipName;break}la=Q.isStock;var xa=z.setPriceInfo(Q),sa="";ta=Q.idx.split("-")[0];Q.thumbUrl&&(sa='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+n(Q.thumbUrl,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+n(Q.thumbUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+Q.thumbUrlAlt+'" role\x3d"img"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+
1967n(Q.thumbUrl,"$240_240_PNG$")+'" data-mobile-src\x3d"'+n(Q.thumbUrl,"$480_480_PNG$")+'" alt\x3d"'+Q.thumbUrlAlt+'" role\x3d"img"\x3e');S+='\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+Q.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+Q.displayName+'\x3c/div\x3e\n            \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+sa+"\n\t\t\t\x3c/div\x3e\n\t\t\t\t";sa="";la||(sa=
1968t);var Ma=C?": "+ma:"\x26nbsp;"+ma;ma='\x3cdiv class\x3d"pdd16-step-buying__card-option" style\x3d"height:84.4375px"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\t'+(""!=ma?'\x3cdiv class\x3d"option-selector__color-name"\x3e\n\t\t\t\t\t\t\t\t\t'+Granite.I18n.get("Color")+'\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"color-name-text"\x3e'+Ma+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t";Ma="";if(O.viewOptionObj&&0<Object.keys(O.viewOptionObj).length){var pa=
1969"",a=0,c=O.viewOptionObj,m=O.optionTypeList,f;for(f in O.viewOptionObj){var q=f.toLowerCase().replace(/ /g,"-"),ba=O.viewOptionObj[f].optionList,J="";O.viewOptionObj[f].styleAttr&&(J=O.viewOptionObj[f].styleAttr);if("COLOR"===f){var ha="";J="";for(var qa in ba){var ia=ba.length;var za=ba[qa];var Ja=!1;var Fa=za.modelIdx.split(",");if(null!=za.modelIdx&&u(Fa,String(O.frontModelIdx))){Ja=!0;ha=za.modelIdx;var Ba=""}else if(Ba=" is-disabled",0===a)Ba="";else{var Ha=pa.split(","),Va;for(Va in Fa)if(u(Ha,
1970Fa[Va])){Ba="";break}}Ha=Fa="";if(""===Ba){var Na=za.modelIdx;var ka=[],La=!0,Da;for(Da in c)if(Da!==f){var Ka=c[Da].optionList,Qa;
1970for(Qa in Ka){var Oa=Ka[Qa];Oa=Oa.modelIdx;var Sa=Oa.split(",");-1<Sa.indexOf(String(O.frontModelIdx))&&ka.push(Oa)}}Na=X(c,Na,ka,La,m);O.modelList.length>Na&&O.modelList[Na]&&(Fa=O.modelList[Na].modelCode,Ha=O.modelList[Na].modelName)}ka="pdd16-"+q+"-"+qa+"-"+O.modelList[Na].idx;La="pdd16-"+q+"-"+qa+"-"+O.modelList[Na].idx;var Ra=za.multiColorYN;Ja='\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+
1971ka+'" name\x3d"'+La+'" data-modeli\x3d"'+Na+'" '+(Ja?" checked":"")+(""===Ba?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-'+D+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+f.toLowerCase()+":"+za.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Fa+'" data-modelname\x3d"'+Ha+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+ka+'"\x3e\n\t\t\t\t\t\t\t\t\t\t';Fa="";if("Y"!=Ra)Fa='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+
1972za.optionCode+'"\x3e'+za.optionLocalName+"\x3c/span\x3e";else if(Ba=za.multiColorList){Ha=Ba.optionCodeList;Ra="";switch(Ba.optionColorType){case "C1":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36" height\x3d"35.999" viewBox\x3d"0 0 36 35.999"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-18.001 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"35.999" transform\x3d"translate(18.001 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,0A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(18.001 -9)" fill\x3d"'+
1973Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(18.001 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t  \x3c/span\x3e';break;case "C2_A":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C2AType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg\x3e\n\t\t\t\t\t\t\x3c!--/* left -\x3e right \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250a18,18,0,0,1,18-18h0v36h0A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+
1974Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7232a18,18,0,0,1,18,18,18,18,0,0,1-18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1975break;case "C2_B":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C2BType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg\x3e\n\t\t\t\t\t\t\x3c!--/* top -\x3e bottom \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250a18,18,0,0,1,18-18,18,18,0,0,1,18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+
1976Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250h36a18,18,0,0,1-18,18A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1977break;case "C3_A":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C3AType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36.001" viewB
1977ox\x3d"0 0 36.001 36.001"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(27.001 -17.999) rotate(90)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(18 -3.005) rotate(-90)"\x3e\n\t\t\t\t\t\t\x3c!--/* left -\x3e right -\x3e bottom \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-1047.672,8501.792a18.1,18.1,0,0,1-1.321-6.168c0-.027,0-.056,0-.083s0-.06,0-.09a18.092,18.092,0,0,1,1.906-8.522c.009-.017.017-.036.028-.053.017-.036.034-.068.051-.1.028-.054.058-.109.085-.162,0,0,0,0,0-.007.109-.205.22-.405.337-.608l0,0a18.019,18.019,0,0,1,1.92-2.717,18.076,18.076,0,0,1,2.2-2.157,18.042,18.042,0,0,1,2.467-1.712,18.109,18.109,0,0,1,2.674-1.264,18.212,18.212,0,0,1,3.76-.967.18.18,0,0,0,.032,0,.045.045,0,0,0,.017,0A18.394,18.394,0,0,1-1031,8477v18h0l-15.583,9A18.227,18.227,0,0,1-1047.672,8501.792Z" transform\x3d"translate(1019 -8477.001)" fill\x3d"'+
1978Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-1049,8494.994h0v-18a18.692,18.692,0,0,1,2.051.115,18.089,18.089,0,0,1,4.971,1.313.644.644,0,0,0,.068.025.02.02,0,0,0,.015.009,17.41,17.41,0,0,1,1.889.95,18.359,18.359,0,0,1,2.047,1.374c.015.013.032.023.047.036s.034.028.051.041a18.122,18.122,0,0,1,4.446,5.135h0a18.843,18.843,0,0,1,.9,1.783l.045.1s0,0,0,0a18.093,18.093,0,0,1,1.462,6.915c0,.023,0,.047,0,.073v.1a18.107,18.107,0,0,1-1.622,7.482l-.032.073c-.009.019-.019.038-.028.058-.22.474-.463.94-.73,1.4Z" transform\x3d"translate(1037.001 -8477)" fill\x3d"'+
1979Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-1034.289,8494.979a18.08,18.08,0,0,1-9.093-2.986c-.017-.013-.036-.023-.053-.036a.663.663,0,0,1-.062-.043,18.052,18.052,0,0,1-4.213-3.972l-.1-.128a18.141,18.141,0,0,1-1.2-1.816l15.589-9,15.585,9a18.048,18.048,0,0,1-2.04,2.858.119.119,0,0,1-.015.016l-.077.089a18.1,18.1,0,0,1-2.673,2.456l-.026.02-.1.077a18.052,18.052,0,0,1-9.792,3.466c-.051,0-.1.007-.158.007a.029.029,0,0,1-.013,0c-.228.009-.458.013-.689.013C-1033.709,8495-1034,8495-1034.289,8494.979Z" transform\x3d"translate(1021.412 -8459.007)" fill\x3d"'+
1980Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.021,17,17,0,1,0,30.021,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(-30.004 0)" fill\x3d"rgba(29,29,27,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';break;case "C3_B":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C3BType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 -4)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 4)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(17.999 4.001)"\x3e\n\t\t\t\t\t\t\x3c!--/* left -\x3e center -\x3e right \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18A18.006,18.006,0,0,1,12,1.024v33.95A18.006,18.006,0,0,1,0,18Z" transform\x3d"translate(0 0)" fill\x3d"'+
1981Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,34.974V1.024a18.086,18.086,0,0,1,12,0v33.95a18.085,18.085,0,0,1-12,0Z" transform\x3d"translate(12 0)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,16.975A18.007,18.007,0,0,0,12,33.95V0A18.007,18.007,0,0,0,0,16.975Z" transform\x3d"translate(36 34.975) rotate(180)" fill\x3d"'+Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,35A17,17,0,0,0,30.02,5.979,17,17,0,1,0,5.979,30.019,16.889,16.889,0,0,0,18,35m0,1A18,18,0,1,1,36,18,18,18,0,0,1,18,36Z" transform\x3d"translate(0)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1982break;case "C3_C":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C3CType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36" height\x3d"36" viewBox\x3d"0 0 36 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-18 -4)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 4)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(53.999 4) rotate(90)"\x3e\n\t\t\t\t\t\t\x3c!--/* top -\x3e middle -\x3e bottom \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18A18.006,18.006,0,0,1,12,1.024v33.95A18.006,18.006,0,0,1,0,18Z" transform\x3d"translate(0 0)" fill\x3d"'+
1983Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,34.974V1.024a18.086,18.086,0,0,1,12,0v33.95a18.085,18.085,0,0,1-12,0Z" transform\x3d"translate(12 0
1983)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,16.975A18.007,18.007,0,0,0,12,33.95V0A18.007,18.007,0,0,0,0,16.975Z" transform\x3d"translate(36 34.975) rotate(180)" fill\x3d"'+Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,35A17,17,0,0,0,30.02,5.979,17,17,0,1,0,5.979,30.019,16.889,16.889,0,0,0,18,35m0,1A18,18,0,1,1,36,18,18,18,0,0,1,18,36Z" transform\x3d"translate(0)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1984break;case "C4_A":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.C4AType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg\x3e\n\t\t\t\t\t\t\x3c!--/* top-left -\x3e top-right -\x3e bottom-right -\x3e bottom-left \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250a18,18,0,0,1,18-18v18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+
1985Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7250v-18a18,18,0,0,1,18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7250h18a18,18,0,0,1-18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250h18v18h0A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[3]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
1986break;case "CP":Ra='\n\t\t\t\t\x3cspan class\x3d"option-selector__color-code" data-sdf-test\x3d"{{chip.CPType}}"\x3e\n\t\t\t\t\t\x3csvg xmlns\x3d"http://www.w3.org/2000/svg" width\x3d"36.001" height\x3d"36" viewBox\x3d"0 0 36.001 36"\x3e\n\t\t\t\t\t\x3cg transform\x3d"translate(-17.999 9)"\x3e\n\t\t\t\t\t\t\x3crect width\x3d"36" height\x3d"36" transform\x3d"translate(18 -9)" fill\x3d"none" /\x3e\n\t\t\t\t\t\t\x3cg transform\x3d"translate(48.004 -9)"\x3e\n\t\t\t\t\t\t\x3c!--/* middle-left -\x3e top-left -\x3e top-right -\x3e middle-right -\x3e bottom-right -\x3e bottom-left \ubc29\ud5a5\uc73c\ub85c color code \uc801\uc6a9 */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M1.333,15.8A18.1,18.1,0,0,1,.01,9.628c0-.027,0-.055,0-.082s0-.06,0-.089A18.086,18.086,0,0,1,1.91.935L1.938.88l.053-.1L2.074.614l0-.007Q2.239.3,2.413,0L18,9,2.413,18A18.157,18.157,0,0,1,1.333,15.8Z" transform\x3d"translate(-30.005 8.994)" fill\x3d"'+
1987Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,9A17.9,17.9,0,0,1,6.584,2.41,18.351,18.351,0,0,1,9.257,1.145a18.061,18.061,0,0,1,3.667-.95l.132-.019.019,0A18.137,18.137,0,0,1,15.582,0V18Z" transform\x3d"translate(-27.587 0)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18V0A18.223,18.223,0,0,1,2.05.115,18.011,18.011,0,0,1,7.021,1.427l.068.026a.028.028,0,0,0,.015.008,17.506,17.506,0,0,1,1.89.949,18.328,18.328,0,0,1,2.047,1.376l.046.035.052.041A18.106,18.106,0,0,1,15.585,9Z" transform\x3d"translate(-12.003 0)" fill\x3d"'+
1988Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,9,15.583,0a18.31,18.31,0,0,1,.9,1.785l.045.1v0A18.087,18.087,0,0,1,18,8.808c0,.023,0,.048,0,.072s0,.064,0,.1a18.082,18.082,0,0,1-1.621,7.483l-.033.073-.027.058q-.332.71-.731,1.4Z" transform\x3d"translate(-12.004 8.997)" fill\x3d"'+Ha[3]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,0,15.585,9a18.082,18.082,0,0,1-2.041,2.858l-.014.016-.078.089a18.166,18.166,0,0,1-2.672,2.457l-.027.02-.1.075A18.057,18.057,0,0,1,.86,17.979L.7,17.986H.688C.46,18,.23,18,0,18Z" transform\x3d"translate(-12.005 17.994)" fill\x3d"'+
1989Ha[4]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M14.717,17.98a18.082,18.082,0,0,1-9.094-2.987l-.054-.036-.062-.042A18.087,18.087,0,0,1,1.3,10.942h0l-.1-.127A18.134,18.134,0,0,1,0,9L15.589,0V18C15.3,18,15.006,17.994,14.717,17.98Z" transform\x3d"translate(-27.593 17.993)" fill\x3d"'+Ha[5]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.021,17,17,0,1,0,30.021,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(-30.004 0)" fill\x3d"rgba(29,29,27,
19890.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e'}Fa+=
1990Ra}J+=Ja+Fa+'\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+za.optionName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}pa=ha;Ma+='\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip" data-desktop-view\x3d"5" data-mobile-view\x3d"4"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper" \x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper"\x3e\n\t\t\t\t\t\t\t\t\t\t'+
1991J+'\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(5<ia?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':
1992"")+'\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Next")+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(5<ia?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+"\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t"}else if("MOBILE MEMORY"===
1993f||"TV SIZE"===f||"HOME APPLIANCE SIZE"===f||"MONITOR SCREEN SIZE"===f){Ra=ha="";for(var Ua=0;Ua<ba.length;Ua++){var Y=ba.length;za=ba[Ua];Ja=!1;Fa=za.modelIdx.split(",");if(null!=za.modelIdx&&u(Fa,String(O.frontModelIdx)))Ja=!0,ha=za.modelIdx,Ba="";else if(Ba=" is-disabled",0===a)Ba="";else for(Va in Ha=pa.split(","),Fa)if(u(Ha,Fa[Va])){Ba="";break}Ha=Fa="";if(""===Ba){Na=za.modelIdx;ka=[];La=!1;for(Da in c)if(Da!==f)for(Qa in Ka=c[Da].optionList,Ka)Oa=Ka[Qa],Oa=Oa.modelIdx,Sa=Oa.split(","),-1<Sa.indexOf(String(O.frontModelIdx))&&
1994ka.push(Oa);Na=X(c,Na,ka,La,m);O.modelList.length>Na&&O.modelList[Na]&&(Fa=O.modelList[Na].modelCode,Ha=O.modelList[Na].modelName)}ka="pdd16-"+q+"-"+Ua+"-"+O.modelList[Na].idx;
1994La="pdd16-"+q+"-"+O.modelList[Na].idx;Ra+='\x3cspan class\x3d"option-selector__swiper-slide'+Ba+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+ka+'" name\x3d"'+La+'" data-modeli\x3d"'+Na+'" '+(Ja?" checked":"")+(""===Ba?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-'+
1995D+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+f.toLowerCase()+":"+za.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Fa+'" data-modelname\x3d"'+Ha+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+ka+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+za.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}pa=
1996ha;Ma+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity" data-desktop-view\x3d"2" data-mobile-view\x3d"1"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+J+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+Ra+'\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__floating-bar" style\x3d"display: none;"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev option-selector__button--disabled" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block;"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+
1997Granite.I18n.get("Previous")+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Y?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+'\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+
1998Granite.I18n.get("Next")+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Y?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+"\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e"}a++}}S+=ma+Ma+' \n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-state"\x3e\n\t\t\t\t\x3cp\x3e'+sa+"\x3c/p\x3e\n\t\t\t\x3c/div\x3e";
1999h&&(S=null!=xa.promotionPrice&&""!==xa.promotionPrice&&"0"!=xa.promotionPrice?S+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t                \x3cstrong class\x3d"card-price"\x3e'+xa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t                \x3cspan class\x3d"card-was"\x3e\n\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+xa.productPriceDisplay+'\x3c/span\x3e\n\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+xa.promotionPrice+'"\x3e\n\t\t                  \x3cdel\x3e'+
2000xa.productPriceDisplay+"\x3c/del\x3e\n\t\t                \x3c/span\x3e\n\t\t              \x3c/div\x3e"):S+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t                \x3cstrong class\x3d"card-price"\x3e'+xa.productPriceDisplay+"\x3c/strong\x3e\n\t\t              \x3c/div\x3e"));O=C?Q.shopSKU:"in"!==ca?Q.modelCode:O=Q.shopSKU;S+='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-input"\x3e\n                    \x3cdiv class\x3d"radio-v2"\x3e\n                      \x3cinput type\x3d"radio" name\x3d"radio" class\x3d"hidden" id\x3d"radio-id-'+
2001ta+'" data-modelcode\x3d"'+O+'" data-modelname\x3d"'+Q.modelName+'" data-shopsku\x3d"'+Q.shopSKU+'" '+(la?"":"disabled checked")+" "+(ea?" checked":"")+'\x3e\n                      \x3clabel class\x3d"radio-v2__label" for\x3d"radio-id-'+ta+'"\x3e\n                        \x3cspan class\x3d"radio-v2__label-box-wrap"\x3e\n                          \x3cspan class\x3d"radio-v2__label-box"\x3e\n                            \x3cspan class\x3d"radio-v2__label-box-circle"\x3e\x3c/span\x3e\n                          \x3c/span\x3e\n                        \x3c/span\x3e\n                        \x3cspan class\x3d"radio-v2__label-text"\x3eSelecting item\x3c/span\x3e\n                      \x3c/label\x3e\n                    \x3c/div\x3e\n                  \x3c/div\x3e\n\t\t\t';
2002return'\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+Q.idx+'" data-modelcode\x3d"'+O+'"\x3e\n\t\t\t\t\t\t\t\t\t'+S+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e"}function F(O,S){null==O.modelList[S].displayName&&(O.modelList[S].displayName="");var Q={};for(ta in O.modelList){var ea=O.modelList[ta].fmyChipList,la;for(la in ea){var ma=ea[la].fmyChipType+"+"+ea[la].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+ea[la].fmyChipLocalName.replace('"',"").replace("\x26quot;","");Q[ma]=void 0==Q[ma]?
2003ta:Q[ma]+(","+ta)}}var ta=[];ea={};if(O.chipOptions)for(la=0;la<O.chipOptions.length;la++){var xa=O.chipOptions[la],sa=xa.fmyChipType,Ma=xa.optionList,pa;for(pa in Ma)ma=xa.fmyChipType+"+"+Ma[pa].optionCode.replace('"',"").replace("\x26quot;","")+"+"+Ma[pa].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=Q[ma]&&(Ma[pa].modelIdx=Q[ma]);ea[sa]={};ea[sa].optionList=Ma;ta.push(sa)}O.viewOptionObj=ea;O.optionTypeList=ta;O.frontModelIdx=S;return O}function W(O){A.addonGiftBundleRelatedData=
2004A.addonGiftBundleRelatedData.filter(function(a,c,m){return c===m.findIndex(function(f){return f.bundleModelCode===a.bundleModelCode})});var S="";if(C){var Q=A.addOnGift.expanded.product_tags.GIFT;Q=Q.formatted_sales_pitch?Q.formatted_sales_pitch:Q.sales_pitch;g(".pdd16-step-buying__headline").html(Q)}else{var ea=l.sg.components.dynamic.detailSharedObj.giftdataHybris;g.each(ea,function(a,c){"maintitle"===ea[a].key.toLowerCase()&&g(".pdd16-step-buying__headline").html(ea[a].value);"subtitle"===ea[a].key.toLowerCase()&&
2005(g(".pdd16-step-buying__sub-headline").html(ea[a].value),g(".pdd16-step-buying__sub-headline").css("display",""));"description"===ea[a].key.toLowerCase()&&(g(".pdd16-step-buying__disclaimer p").html(ea[a].value),g(".pdd16-step-buying__disclaimer").css("display",""))})}oa=g(".pdd16-step-buying__header-price-text")[0].innerHTML;if(0<O.length){for(var la="",ma=0;ma<O.length;ma++)if(Q=O[ma],null!=Q.modelList&&0<Q.modelList.length){na=0;for(var ta=null,xa=0;xa<Q.modelList.length;xa++){var sa=Q.modelList[xa],
2006Ma=sa.isStock;sa.selected&&"Y"===sa.selected&&(na=xa,Ma&&(ta=xa))}if(null==ta)for(xa=0;xa<Q.modelList.length;xa++)if(sa=Q.modelList[xa],sa.isStock){ta=xa;break}null==ta&&(ta=na);Q=F(Q,ta);la+=v(Q)}l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(A.hasGiftBundle)for(var pa in A.addonGiftBundleRelatedData)la+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+aa(pa)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";O=A.giftdataHybris;pa="";pa=!1;if(O.length)for(ma=
20070;ma<O.length;ma++)"freeSmc"==O[ma].key&&"Y"==O[ma].value&&(pa=!0);if(pa)for(O=A.hybrisCareData.smcs,pa=0;pa<O.length;pa++)if(null==O[pa].paymentCycle||"MONTHLY"!=O[pa].paymentCycle.toUpperCase()){O=O[pa];pa=U(O);la+='\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"SC"\x3e\n\t\t\t\t\t\t\t\t\t'+pa+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e";break}S+='\x3cdiv class\x3d"pdd16-step-buying__tab pdd16-step-buying__ swiper-slide"\x3e\n\t\t            \x3cdiv class\x3d"pdd16-step-buying__list-type"\x3e\n\t\t            \x3ca class\x3d"btn-type on" aria-label\x3d""\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(-344 -388) translate(344 388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 388)" /\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 394.649)" /\x3e\n                    \t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 388)" /\x3e\n                    \t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 394.649)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t            \x3ca class\x3d"btn-type" aria-label\x3d""\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(349 388) translate(-349 -388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 388.732) translate(7 1.268) translate(-349 -388)" /\x3e\n                    \t\t\x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 395.732) translate(7 1.268) translate(-349 -388)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t          \x3c/div\x3e\n\t\t          \x3cdiv class\x3d"scrollbar"\x3e\n\t\t            \x3cdiv class\x3d"scrollbar__contents"\x3e\n\t\t            \t'+
2008la+'\n\t\t              \x3cdiv class\x3d"pdd16-step-buying__view-more"\x3e\n\t\t                \x3cbutton type\x3d"button" class\x3d"cta" aira-label\x3d"'+Z+'"\x3e\n\t\t                  \x3csvg class\x3d"icon next" focusable\x3d"false"\x3e\n\t\t                    \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t                  \x3c/svg\x3e\n\t\t                  \x3cspan class\x3d"cta-text"\x3e'+Z+'\x3c/span\x3e\n\t\t                  \x3csvg class\x3d"icon down" focusable\x3d"false"\x3e\n\t\t                    \x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\n\t\t                  \x3c/svg\x3e\n\t\t                \x3c/button\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e\n\t\t        \x3c/div\x3e';
2009la=""}else{S="";l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(A.hasGiftBundle)for(ma in A.addonGiftBundleRelatedData)S+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+aa(ma)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";O=A.giftdataHybris;pa="";pa=!1;if(O.length)for(ma=0;ma<O.length;ma++)"freeSmc"==O[ma].key&&"Y"==O[ma].value&&(pa=!0);if(pa){O=A.hybrisCareData.smcs;for(pa=0;pa<O.length;pa++)if(null==O[pa].paymentCycle||"MONTHLY"!=O[pa].paymentCycle.toUpperCase()){la=
2010O[pa];break}pa=U(la);
2010S+='\n\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"SC"\x3e\n\t\t\t\t\t\t\t'+pa+"\n\t\t\t\t\t\t\x3c/div\x3e"}S='\x3cdiv class\x3d"pdd16-step-buying__tab pdd16-step-buying__ swiper-slide"\x3e\n\t\t            \x3cdiv class\x3d"pdd16-step-buying__list-type"\x3e\n\t\t            \x3ca class\x3d"btn-type on" aria-label\x3d""\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(-344 -388) translate(344 388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 388)" /\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 394.649)" /\x3e\n                 \t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 388)" /\x3e\n                 \t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 394.649)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t            \x3ca class\x3d"btn-type" aria-label\x3d""\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(349 388) translate(-349 -388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 388.732) translate(7 1.268) translate(-349 -388)" /\x3e\n                 \t\t\x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 395.732) translate(7 1.268) translate(-349 -388)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t          \x3c/div\x3e\n\t\t          \x3cdiv class\x3d"scrollbar"\x3e\n\t\t            \x3cdiv class\x3d"scrollbar__contents"\x3e\n\t\t            \t'+
2011S+'\n\t\t              \x3cdiv class\x3d"pdd16-step-buying__view-more"\x3e\n\t\t                \x3cbutton type\x3d"button" class\x3d"cta" aira-label\x3d"'+Z+'"\x3e\n\t\t                  \x3csvg class\x3d"icon next" focusable\x3d"false"\x3e\n\t\t                    \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t                  \x3c/svg\x3e\n\t\t                  \x3cspan class\x3d"cta-text"\x3e'+Z+'\x3c/span\x3e\n\t\t                  \x3csvg class\x3d"icon down" focusable\x3d"false"\x3e\n\t\t                    \x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\n\t\t                  \x3c/svg\x3e\n\t\t                \x3c/button\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e\n\t\t        \x3c/div\x3e'}g(".pdd16-step-buying .pdd16-step-buying__card-wrap .swiper-wrapper").html(S);
2012la=g(".radio-v2 input");O=la.closest(".pdd16-step-buying--free-gift").find(".pdd16-step-buying__card-state p");S=!1;for(pa=0;pa<O.length;pa++)if(ma=la[pa].getAttribute("id"),Q=la[pa].getAttribute("class"),O[pa].innerText.toUpperCase()!=t.toUpperCase()&&"radio-id-99"!=ma&&"radio-id-SC"!=ma&&!Q.includes("cta--bundle")){la[pa].setAttribute("checked",!0);ra.push(la[pa].getAttribute("data-modelcode"));S=!0;break}O=0;pa="";pa=g(".pdd16-step-buying--free-gift .pdd16-step-buying__card-state p");for(ma=0;ma<
2013pa.length;ma++)pa[ma].innerText.toUpperCase()==t.toUpperCase()&&"radio-id-SC"!=la[ma].getAttribute("id")&&O++;
2013O==pa.length?(N=!0,pa=Granite.I18n.get("Skip"),S=!0):(pa="",pa=Granite.I18n.get("CONTINUE"));I.get("useGiftContinueI18nForAllCTA")&&(pa=Granite.I18n.get("CONTINUE(GIFT)"));la=g(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");(I.get("useTnc")?e(la):1)||(S=!1);la='\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-price"\x3e\n                \x3cp class\x3d"pdd16-step-buying__footer-text"\x3e\x3cstrong\x3e'+
2014d+"\x3c/strong\x3e"+M+'\x3c/p\x3e\n                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+oa+'\x3c/p\x3e\n              \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta-wrap"\x3e';"it"===ca&&(la+='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d"cta cta--underline cta--emphasis gift cta--skip" id\x3d"giftSkip"\x3e\n\t\t\t\t\t\tNon mi interessa\n\t\t             \x3c/button\x3e\n\t\t        \x3c/div\x3e');la+='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t            \t\x3cbutton \n\t\t\t\t\t\tclass\x3d"cta cta--contained cta--emphasis '+
2015(S?"":"cta--disabled")+" "+(I.get("useTnc")?"cta--step":"")+'" \n\t\t\t\t\t\tid\x3d"giftContinue" \n\t\t\t\t\t\t'+(S?"":"disabled")+"\x3e\n\t                \t"+pa+"\n\t              \t\x3c/button\x3e\n\t            \x3c/div\x3e\n            \x3c/div\x3e\n          \x3c/div\x3e";g(".pdd16-step-buying__footer").html(la);I.get("useTnc")&&(S="gift tnc ("+ca+")",g(".pdd16-step-buying__tnc .checkbox-v2__label-text").html(Granite.I18n.get(S)),g(".pdd16-step-buying__tnc").show());B()}function aa(O){var S=
2016"",Q=A.relatedProductsBundle[A.addonGiftBundleRelatedData[O].bundleModelCode],ea=Q.modelcode;var la='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\''+x(Q.imageUrl,"$LazyLoad_Home_PNG$")+"' data-mobile-src\x3d\""+x(Q.imageUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"" role\x3d"img"\x3e\n\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d\''+x(Q.imageUrl)+"' data-mobile-src\x3d\""+x(Q.imageUrl)+'" alt\x3d"" role\x3d"img"\x3e';S+='\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+
2017Q.name+'\x3c/strong\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3eBundle\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+la+"\n\t\t\t\x3c/div\x3e\n\t\t\t";la=!1;Q=t;for(var ma in A.addonGiftBundleRelatedData[O]){var ta=A.addonGiftBundleRelatedData[O][ma];if(ta.stocklevel&&"inStock"===ta.stocklevel&&ta.colorCode){la=!0;Q="";break}}return S+('\x3cdiv class\x3d"pdd16-step-buying__card-option" style\x3d"height:84.4375px"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-state"\x3e\n\t\t\t\t\x3cp\x3e'+
2018Q+'\x3c/p\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-input"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"radio-v2"\x3e\n\t\t\t\t\t  \x3cinput type\x3d"radio" name\x3d"radio" class\x3d"hidden cta--bundle" id\x3d')+((la?ea:"")+' data-modelCode\x3d"'+ea+'" '+(la?"":"disabled")+'\x3e\n\t\t\t\t\t  \x3clabel class\x3d"radio-v2__label" for\x3d"'+ea+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"radio-v2__label-box-wrap"\x3e\n\t\t\t\t\t\t  \x3cspan class\x3d"radio-v2__label-box"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"radio-v2__label-box-circle"\x3e\x3c/span\x3e\n\t\t\t\t\t\t  \x3c/span\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"radio-v2__label-text"\x3e\x3c/span\x3e\n\t\t\t\t\t  \x3c/label\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t  \x3c/div\x3e\n\t\t\t')}
2019function x(O,S,Q){var ea="",la=g("#scene7domain").val();O&&(-1<O.indexOf("?")&&(O=O.replace("medias",""),O=O.substring(0,O.indexOf("?")),O+="?"+S),-1<O.indexOf("https:")||-1<O.indexOf("http:")||-1<O.indexOf("//stg-images.samsung.com/")||-1<O.indexOf("//images.samsung.com/")||-1<O.indexOf("image.samsung.com/")||-1<O.indexOf("//stg-images.samsung.com.cn/")||-1<O.indexOf("//images.samsung.com.cn/")||-1<O.indexOf("image.samsung.com.cn/")?ea=O:(Q&&(la=la.replace("/image/","/content/")),ea=la+O));return ea}
2020function U(O){var S='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\n\t\t\t\t\t\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e\n\t\t\t\t\t\t'+O.title+'\n\t\t\t\t\t\x3c/strong\x3e\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e\n\t\t\t\t\t\t'+O.title+'\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' data-mobile-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' alt\x3d""\x3e\n\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' data-mobile-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' alt\x3d""\x3e\n\t\t\t\t\x3c/div\x3e';
2021return S=S+'\x3cdiv class\x3d"pdd16-step-buying__card-option" style\x3d"height:84.4375px"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-state"\x3e\n\t\t\t\t\t\x3cp\x3e\x3c/p\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-input"\x3e\n\t                    \x3cdiv class\x3d"radio-v2"\x3e\n\t                      \x3cinput type\x3d"radio" name\x3d"radio" class\x3d"hidden" id\x3d"radio-id-SC" data-modelCode\x3d"'+
2022(O.smcCode+'"\x3e\n\t                      \x3clabel class\x3d"radio-v2__label" for\x3d"radio-id-SC"\x3e\n\t                        \x3cspan class\x3d"radio-v2__label-box-wrap"\x3e\n\t                          \x3cspan class\x3d"radio-v2__label-box"\x3e\n\t                            \x3cspan class\x3d"radio-v2__label-box-circle"\x3e\x3c/span\x3e\n\t                          \x3c/span\x3e\n\t                        \x3c/span\x3e\n\t                        \x3cspan class\x3d"radio-v2__label-text"\x3e\x3c/span\x3e\n\t                      \x3c/label\x3e\n\t                    \x3c/div\x3e\n\t                  \x3c/div\x3e\n\t\t\t\t')}
2023function B(){g(".pdd16-step-buying__card \x3e .pdd16-step-buying__card-option").off("
2023click",".option-selector__color input, .option-selector__size input");g(".pdd16-step-buying__card \x3e .pdd16-step-buying__card-option").on("click",".option-selector__color input, .option-selector__size input",function(){var O=g(this);ra=[];g(".pdd16-step-buying__header-price-text").html(oa);g(".hiddenPrice").attr("value",da);var S=(O.closest(".pdd16-step-buying__card").attr("data-index")||"").split("-")[0],Q=O.attr("data-modeli");
2024O=fa[S].modelList[Q];ra.push(O.modelCode);O=O.isStock;V=g(this).attr("name");var ea=V.lastIndexOf("-");V=V.substring(V.lastIndexOf("-",ea-1)+1);setTimeout(function(){if(null!=Q){fa[S].frontModelIdx=Q;var la=F(fa[S],Q),ma=g(".pdd16-step-buying__card").eq(S),ta=g(".pdd16-step-buying__card").index(ma);ma.find(".option-selector__swiper-wrapper").each(function(xa){xa=fa[S].optionTypeList[xa];var sa=g(this).attr("style");fa[S].viewOptionObj[xa].styleAttr=sa});ma.replaceWith(v(la));ma=g(document.querySelectorAll(".pdd16-step-buying__card")[ta]);
2025ma.addClass("is-show");l.sg.components.stepbuying.init();B()}},300);O?(g("#giftContinue").hasClass("cta--disabled")&&g("#giftContinue").removeClass("cta--disabled").attr("disabled",!1),g("#giftContinue").attr("aria-disabled","")):(g("#giftContinue").addClass("cta--disabled").attr("disabled",!0),g("#giftContinue").attr("aria-disabled","true"))});g(".pdd16-step-buying.pdd16-step-buying--free-gift").off("click",".radio-v2__label");g(".pdd16-step-buying.pdd16-step-buying--free-gift").on("click",".radio-v2__label",
2026function(){var O=g(this);L=O;O.closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-state p");g(".pdd16-step-buying__header-price-text").html(oa);g(".hiddenPrice").attr("value",da);ra=[];va=[];var S=O.closest(".pdd16-step-buying__card").attr("data-index"),Q=O.closest(".radio-v2").find('input[type\x3d"radio"]');if("radio-id-SC"==O.closest(".radio-v2").find('input[type\x3d"radio"]').attr("id")){S=[];O=A.hybrisCareData;Q=O.smcs;for(var ea,la=0;la<Q.length;la++)if(null==Q[la].paymentCycle||
2027"MONTHLY"!=Q[la].paymentCycle.toUpperCase()){ea=Q[la];break}S.push(ea);O.smcs=S;configuratorCare.showPopup(O);g(".hubble-care-popup__smc-price").hide()}else if(Q.hasClass("cta--bundle")){var ma=Q.attr("data-modelcode");ea=l.sg.components.dynamic.detailSharedObj.relatedProductsBundle[ma];S=l.sg.components.dynamic.detailSharedObj.addonGiftBundleRelatedData.filter(function(ta){return ta.bundleModelCode===ma});l.sg.components.addonBundlePopup.callSearchAjax(ea,S[0],!0);l.sg.components.notifyMePopup.showPopup(document.querySelector(".add-ons-evoucher-popup"));
2028l.sg.components.notifyMePopup.reInit()}else Q.hasClass("cta--bundle")||"radio-id-SC"==Q.attr("id")||(ea=S.split("-"),ea=fa[ea[0]].modelList[ea[1]],O="",g("#priceCurrency").val(),g(".hiddenPrice")[0].getAttribute("value"),O=C?ea.shopSKU:ea.modelCode,O=C?ea.shopSKU:ea.modelCode,va.push(S),ra.push(O));(E||T)&&g(".tab__list").attr("style")&&-1<g(".tab__list").attr("style").indexOf("none")&&(g(document).off("click","#freeGiftPopup .layer-popup__close, .hubble-care-popup__close"),g(document).on("click",
2029"#freeGiftPopup .layer-popup__close, .hubble-care-popup__close",function(){L.prev().prop("checked",!1)}),g(document).off("click",".hubble-care-popup__button-inner .hubble-care-popup__button-item"),g(document).on("click",".hubble-care-popup__button-inner .hubble-care-popup__button-item",function(){g(".hubble-care-popup__button-inner .hubble-care-popup__button-item")[0]==g(this)[0]?(L.prev().prop("checked",!1),g("#giftContinue").addClass("cta--disabled").attr("disabled",!0)):g("#giftContinue").removeClass("cta--disabled").attr("disabled",
2030!1)}));ea=g(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");ea=I.get("useTnc")?e(ea):!0;0<ra.length&&ea?g("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):g("#giftContinue").addClass("cta--disabled").attr("disabled",!0)})}function w(){var O=g(".pdd16-step-buying__tnc");g("#giftContinue");var S=function(Q){var ea="";Q&&0<Q.length&&(ea=Q.map(function(la){return'\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tnc-checkbox '+(la.required?"is-required":
2031"")+'"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"checkbox-v2"\x3e\n\t\t\t\t\t\t\t\x3cinput class\x3d"checkbox-v2__input" type\x3d"checkbox" name\x3d"checkbox" id\x3d"'+la.code+'"\x3e\n\t\t\t\t\t\t\t\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+la.code+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-box-wrap"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-box"\x3e\n\t\t\t\t\t\t\t\t\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-text"\x3e'+
2032la.content+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e"}).join(""));return ea};return{render:function(Q){g.when(p.freeGiftHybrisCommon.getTnc(Q)).done(function(ea){ea&&0<ea.length&&(O.html(S(ea)),ea=g(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']"),(I.get("useTnc")?e(ea):1)||g("#giftContinue").addClass("cta--disabled").attr("disabled",!0))})}}}function e(O){var S=!0;0<O.length&&O.each(function(){var Q=g(this);
2033Q.closest(".pdd16-step-buying__tnc-checkbox").hasClass("is-required")&&(S=S&&Q.is(":checked"))});return S}var p=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),k=p.ux2.PriceBar,A=p.detailSharedObj,ca=g("#siteCode").val(),K=g("#priceCurrency").val(),D=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),h="se"===ca||"dk"===ca||"fi"===ca||"no"===ca,C="GPv2"===g("#shopIntegrationFlag").val(),E="Hybris"===g("#shopIntegrationFlag").val()||"Hybris-intg"===g("#shopIntegrationFlag").val(),T="Hybris-new"===
2034g("#shopIntegrationFlag").val(),R="true"===g("#isEppPage").val(),z={},fa=[],va=[],ra=[],oa,da,na,L,N=!1,b=!1,r=Granite.I18n.get("From"),G=Granite.I18n.get("or"),P=Granite.I18n.get("Monthly Price:"),Z=Granite.I18n.get("View more"),d=Granite.I18n.get("Total"),M=Granite.I18n.get("VAT Inclusive"),t=Granite.I18n.get("Out Of Stock"),y=null,I=function(O,S){var Q=S[O],ea=S["default"];return{get:function(la){return Q&&"undefined"!==typeof Q[la]?Q[la]:ea&&"undefined"!==typeof ea[la]?ea[la]:!1}}}(ca,{it:{useGiftContinueI18nForAllCTA:!0,
2035useTnc:!0,useTncFromAPI:!0,tncAPIContext:"FOC"}}),X=function(O,S,Q,ea,la){S=S.split(",");var ma=S[0];la=la.indexOf("MEMORY");if(!C&&!T&&!E&&ea&&0<la){Q=O.MEMORY.optionList;var ta=0,xa=0,sa;for(sa in Q){ma=Q[sa].modelIdx.split(",");for(var Ma in ma)if(u(S,ma[Ma])){O=Q[sa].optionCode.replace("TB","000").replace(/[^0-9]/g,"");xa<O&&(xa=O,ta=ma[Ma]);break}}S=ta}else{for(ta in Q)if(sa=Q[ta]){Ma=sa.split(",");sa=[];for(xa in S)-1<Ma.indexOf(String(S[xa]))&&sa.push(S[xa]);0<sa.length&&(S=sa)}S=0<S.length?
2036S[0]:ma}return S},V="";
2036g(document).off("click",".hubble-care-popup .hubble-care-popup__button-item a");g(document).on("click",".hubble-care-popup .hubble-care-popup__button-item a",function(O){O=g(this);if(void 0!=A.globalServiceInfo.care&&"Confirm"==O[0].innerText){O=A.globalServiceInfo.care;O=g(".hiddenPrice").val()-O.sale_price.value;var S=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;S=(Granite.I18n.get("From {0}/mo",currencyComma(O/Number(S),K))+" "+Granite.I18n.get("for {0} mos",
2037S)+" "+G+" "+currencyComma(O,K)).split(" "+G+" ");O=b?'\n                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+S[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n                    \t"+G+" "+S[1]+'\x3c/p\x3e\n                    \x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+O+'"\x3e\n                ':'\n\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
2038P+'\x3c/strong\x3e\x3c/p\x3e\n                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+S[1]+'\x3c/strong\x3e\x3c/p\x3e\n                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+O+'"\x3e\n\t\t\t\t';g(".pdd16-step-buying__header-price").html(O);g(".pdd16-step-buying__footer-sum").html(O)}O=g("#radio-id-SC").attr("data-modelCode");ra.push(O);0==ra.length?g("#giftContinue").addClass("cta--disabled").attr("disabled",!0):g("#giftContinue").removeClass("cta--disabled").attr("disabled",
2039!1)});g(document).off("click","#bundleAddOnGift");g(document).on("click","#bundleAddOnGift",function(){var O=[],S=g(".add-ons-evoucher-popup__item .option-selector-v2__swiper-slide.is-checked");g.each(S,function(la,ma){O.push(S.find(".option-selector-v2__color-code")[la].getAttribute("data-modelcode"))});for(var Q=0;Q<O.length;Q++)ra.push(O[Q]);if(0==ra.length)g("#giftContinue").addClass("cta--disabled").attr("disabled",!0);else{g("#giftContinue").removeClass("cta--disabled").attr("disabled",!1);
2040var ea=g(this).attr("data-parent-modelcode");g(".pdd16-step-buying--free-gift .pdd16-step-buying__card-input .cta--bundle").each(function(la){g(this).attr("data-modelcode")===ea&&g(this).prop("checked",!0)})}l.sg.components.notifyMePopup.closePopup()});g(document).off("click",".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");g(document).on("click",".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']",function(){var O=g(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");
2041e(O)?g("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):g("#giftContinue").addClass("cta--disabled").attr("disabled",!0)});g(document).off("click","#giftContinue, #giftSkip");g(document).on("click","#giftContinue, #giftSkip",function(){var O=A.soundbarCategoryData&&0<Object.keys(A.soundbarCategoryData).length?!0:!1;"giftSkip"===g(this).attr("id")&&(N=!0);N?A.hasAddOns&&!A.isEmbedAddOn||A.hasAddOns&&A.isEmbedAddOn&&O?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():
2042p.DetailAfterEvent.addToCartCta([],!0,!0):(ra=ra.filter(function(S){return S}),0<ra.length&&-1<ra[0].indexOf(",")&&(ra=ra[0].split(",")),setTimeout(function(){l.sg.components.stepbuying.init();A.hasAddOns&&!A.isEmbedAddOn||A.hasAddOns&&A.isEmbedAddOn&&O?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():p.DetailAfterEvent.addToCartCta(ra,!0,!0);A.globalServiceInfo.care&&delete A.globalServiceInfo.care},10))});p.bridgePagefreeGift={moveBridgePage:function(O){O=(p.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||
2043"").split(" "+G+" ");var S=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePrice;da=A.globalServiceInfo.care?S+A.globalServiceInfo.care.sale_price.value:S;1<O.length?(b=!0,O="tr"===ca?'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+O[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+G+" "+O[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
2044da+'"\x3e\n\t                ':'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+O[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+G+" "+O[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+da+'"\x3e\n\t                '):O="tr"===ca?'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
2045P+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+O[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+da+'"\x3e\n\t\t\t\t\t':'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+O[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
2046da+'"\x3e\n\t\t\t\t\t';g(".pdd16-step-buying__header-price").html(O);g(".pdd16-step-buying__footer-sum").html(O);if(C||E||T)z=p.freeGiftHybrisCommon,C?(O=A.addOnApiList.gift)&&O.list&&0<O.list.length&&H(O.list):0===fa.length&&0<A.add
2046onGiftBundleRelatedData.length?H([],!0):z.getSearchProductcard(H)}}})(window,window.jQuery);
2047(function(l,g){function H(K,D,h){k={};g.each(K.products,function(C,E){C=E.modelcode;var T=k[C]={};T.modelCode=C;T.name=E.name;E.picture&&(T.imageUrl=E.picture.url,T.imageUrlAlt=E.picture.altText);E.stock&&(T.stocklevel=E.stock.stockLevelStatus);E.price&&E.price.value&&(T.priceValue=E.price.value,T.price=E.price.formattedValue,T.promotionPriceValue=E.price.value,T.promotionPrice=E.price.formattedValue);E.promotionPrice&&E.promotionPrice.value&&(T.promotionPriceValue=E.promotionPrice.value,T.promotionPrice=
2048E.promotionPrice.formattedValue);"F-"==E.modelcode.substring(0,2)&&(E.name&&(T.name=E.name),g.extend(E,T),h[E.modelcode]=E,u(E.modelcode),D.hasGiftBundle=!0)});D.relatedProductsBundle=h}function u(K){x?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(v,K,function(D,h){A={};A.bundleModelCode=K;h&&null!=D.products&&0<D.products.length&&(g.each(D.products,function(C,E){C=E.modelcode;var T=A[C]={};T.modelCode=C;T.name=E.name;E.imageUrl&&(T.imageUrl=E.imageUrl);E.imageUrlAlt&&
2049(T.imageUrlAlt=E.imageUrlAlt);E.stocklevel&&(T.stocklevel=E.stocklevel);E.price&&E.priceValue&&(T.priceValue=E.priceValue,T.price=E.price,T.promotionPriceValue=E.priceValue,T.promotionPrice=E.price);E.promotionPrice&&E.promotionPriceValue&&(T.promotionPriceValue=E.promotionPriceValue,T.promotionPrice=E.promotionPrice);E.colorCode&&(T.colorCode=E.colorCode)}),ca.push(A));v.addonGiftBundleRelatedData=ca},null,{queryType:"SELECTION_OF_BUNDLE"}):U&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,
2050function(D,h){A={};A.bundleModelCode=K;h&&null!=D.products&&0<D.products.length&&(g.each(D.products,function(C,E){C=E.modelcode;var T=A[C]={};T.modelCode=C;T.name=E.name;E.picture&&(T.imageUrl=E.picture.url,T.imageUrlAlt=E.picture.altText);E.stock&&(T.stocklevel=E.stock.stockLevelStatus);E.price&&E.price.value&&(T.priceValue=E.price.value,T.price=E.price.formattedValue,T.promotionPriceValue=E.price.value,T.promotionPrice=E.price.formattedValue);E.promotionPrice&&E.promotionPrice.value&&(T.promotionPriceValue=
2051E.promotionPrice.value,T.promotionPrice=E.promotionPrice.formattedValue);if(E.groupCode&&0==E.groupId||E.groupCode&&0!=E.groupId)T.groupCode=E.groupCode,T.groupId=E.groupId;E.colorCode&&(T.colorCode=E.colorCode)}),ca.push(A));v.addonGiftBundleRelatedData=ca},null,{queryType:"SELECTION_OF_BUNDLE"})}var n=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),v=n.detailSharedObj,F=g("#priceCurrency").val(),W=g("#siteCode").val(),aa="nl"===W||"be"===W||"be_fr"===W,x="Hybris"===g("#shopIntegrationFlag").val()||
2052"Hybris-intg"===g("#shopIntegrationFlag").val(),U="Hybris-new"===g("#shopIntegrationFlag").val(),B=g("#storeDomain").val(),w=g("#categoryGroupCode").val(),e=[],p=[],k={},A={},ca=[];g(document).on("bundlePopupEvent",function(K,D){g(".hubble-addon-page").hasClass("is-gift-type");"NewHybris"==g("#storeType").val()?getNewRelatedProductsBundleInfo(D):getRelatedProductsBundleInfo(D)});Granite.I18n.get("From");Granite.I18n.get("or");Granite.I18n.get("Monthly Price:");Granite.I18n.get("Full Price:");Granite.I18n.get("Add");
2053Granite.I18n.get("Are you sure to remove this product?");l.sg.components.dynamic.freeGiftHybrisCommon={getRelatedProductsSimpleInfo:function(K){A={};e=[];x?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(v,K,function(D,h){h&&null!=D.products&&0<D.products.length?(k={},g.each(D.products,function(C,E){if(E.stocklevel){C=E.modelcode;var T=k[C]={};T.modelCode=C;T.name=E.name;E.imageUrl&&(T.imageUrl=E.imageUrl);E.imageUrlAlt&&(T.imageUrlAlt=E.imageUrlAlt);E.stocklevel&&
2054(T.stocklevel=E.stocklevel);E.price&&E.priceValue&&(T.priceValue=E.priceValue,T.price=E.price);E.promotionPrice&&E.promotionPriceValue&&(T.promotionPriceValue=E.promotionPriceValue,T.promotionPrice=E.promotionPrice,E.priceValue===E.promotionPriceValue&&(T.promotionPriceValue=null,T.promotionPrice=null));"F-"==E.modelcode.substring(0,2)&&(E.picture&&(T.imageUrl=E.picture.url),E.name&&(T.name=E.name),g.extend(E,T),A[E.modelco
2054de]=E,u(E.modelcode),v.hasGiftBundle=!0)}}),v.relatedProductsBundle=A,l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):
2055(l.sg.components.dynamic.detailSharedObj.hasGift=!1,l.sg.components.dynamic.detailSharedObj.hasGiftPage=!1,l.sg.components.dynamic.detailSharedObj.hasAddOns||l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1))},null,{queryType:"SELECTION_OF_GIFT"}):U&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,function(D,h){l.sg.components.dynamic.detailSharedObj.relatedProductsObj={};h&&null!=D.products&&0<D.products.length?(l.sg.components.dynamic.detailSharedObj.relatedProductsObj=
2056D,H(D,v,A),l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(l.sg.components.dynamic.detailSharedObj.hasGift=!1,l.sg.components.dynamic.detailSharedObj.hasGiftPage=!1,l.sg.components.dynamic.detailSharedObj.hasAddOns||l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1))},null,{queryType:"SELECTION_OF_GIFT"})},getRelatedProductsSimpleBundle:u,getAddOnGift:function(){return e},giftPopupGrid:function(K){l.sg.components.dynamic.freeGift.giftPopupGrid(K)},getSearchProductcard:function(K){var D=
2057[];g.each(Object.keys(k),function(h,C){"F-"!=C.substr(0,2)&&D.push(C)});0<D.length?l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(D,function(h,C){C&&200===h.response.statusCode&&null!=h.response.resultData&&null!=h.response.resultData.productList&&(h=h.response.resultData.productList,g.each(h,function(E,T){T=T.modelList;null!=T&&g.each(T,function(R,z){var fa="in"!==W?z.modelCode:z.shopSKU;if(k[fa]){var va=k[fa].stocklevel;z.displayName||(z.displayName=k[fa].name||"");z.thumbUrlAlt=
2058k[fa].imageUrlAlt||"";z.priceDisplay=k[fa].price||"";z.promotionPriceDisplay=k[fa].promotionPrice||"";z.price=k[fa].priceValue||"";z.promotionPrice=k[fa].promotionPriceValue||"";z.stocklevel=va;z.isStock=!(""===va||"OUTOFSTOCK"===va.toUpperCase());z.idx=String(E)+"-"+String(R)}})}),e=h,K(e))},null,null):K([])},setPriceInfo:function(K){var D=K.price,h=K.promotionPrice,C=Number((D-h).toFixed(2)),E=currencyComma(C,F),T=aa||!K.priceDisplay?currencyComma(D,F):K.priceDisplay;K=aa||!K.promotionPriceDisplay?
2059currencyComma(h,F):K.promotionPriceDisplay;return{promotionPrice:h,productPrice:D,savePriceTemp:C,saveText:E,productPriceDisplay:T,promotionPriceDisplay:K}},getBundleSearchProductcard:function(K){var D=[];g.each(k,function(h,C){"F-"!=C.modelcode.substr(0,2)&&D.push(C.modelcode)});l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(D,function(h,C){if(C&&200===h.response.statusCode&&null!=h.response.resultData&&null!=h.response.resultData.productList){var E=h.response.resultData.productList;
2060g.each(A,function(T,R){g.each(E,function(z,fa){fa=fa.modelList;null!=fa&&g.each(fa,function(va,ra){var oa=ra.modelCode,da=A[oa].stocklevel||"";A[oa]&&(ra.displayName||(ra.displayName=A[oa].name||""),ra.thumbUrlAlt=A[oa].imageUrlAlt||"",ra.priceDisplay=A[oa].price||"",ra.promotionPriceDisplay=A[oa].promotionPrice||"",ra.price=A[oa].priceValue||"",ra.promotionPrice=A[oa].promotionPriceValue||"",ra.stocklevel=da,ra.isStock=!(""===da||"OUTOFSTOCK"===da.toUpperCase()),ra.idx=String(z)+"-"+String(va))})})});
2061p=E;K(p)}},null,null)},getProductListData:function(){return p},getTariffRelatedProductsSimpleInfo:function(K){var D=n.detailSharedObj;A={};D.hasGiftBundle=!1;e=[];l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,function(h,C){C&&null!=h.products&&0<h.products.length?(l.sg.components.dynamic.detailSharedObj.hasTariffGift=!0,l.sg.components.dynamic.detailSharedObj.hasGift=!0,H(h,D,A),l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):l.sg.components.dynamic.detailSharedObj.hasTariffGift=
2062!1},null,{queryType:"SELECTION_OF_GIFT_FOR_SERVICETYPE",serviceId:D.tariffServiceId})},relatedProductsSimpleInfoSuccessCallBackFunc:H,relatedProductsBundle:A,getTnc:function(K){var D=checkEppSite()&&x?g("input#newHyvStoreDomain").val():B,h=checkEppSite()?l.sg.epp.common.companyCode:W,C=checkEppSite()?{withCredentials:!0}:{};return g.ajax({url:D+"/tokocommercewebservices/v2/"+h+"/tnc?context\x3d"+K+"\x26value\x3d"+w,type:"GET",dataType:"json",xhrFields:C})}}})(window,window.jQuery);
2063(function(){var l=window.sg.common.$q,g=window.sg.common.utils,H=window.sg.common.lazyLoad,u=window.sg.common.scrollbar,n=window.sg.common.constants.BREAKPOINTS,v=window.sg.common.OptionSelector,F=null,W=function(U){this.selector={component:".accessories",cardFiche:".accessories__product-price-info",rating:".accessories__rating",optionWrap:".option-selector"};this.el={component:l(U)};this.handler={setHeight:this.setHeight.bind(this)};W.instances.set(U,this);this.init()};W.prototype.setElement=function(){this.el.cardSlide=
2064this.el.component.find(".accessories__item");this.el.cardFiche=this.el.component.find(this.selector.cardFiche);this.el.rating=this.el.component.find(this.selector.rating);this.el.optionWrap=this.el.component.find(this.selector.optionWrap)};W.prototype.init=function(){this.setElement();this.setCardInstances();this.setHeight();this.bindEvents()};W.prototype.reInit=function(){this.init()};W.prototype.setDefault=function(){[this.el.rating,this.el.cardSlide,this.el.cardFiche,this.el.optionWrap].forEac
2064h(function(U){U.css({height:""})})};
2065W.prototype.setHeight=function(){var U=this,B=n.MOBILE>g.getViewPort().width?[this.el.rating,this.el.cardSlide,this.el.cardFiche,this.el.optionWrap]:[this.el.rating,this.el.cardSlide,this.el.optionWrap];this.setDefault();B.forEach(function(w){var e=[];w.target.forEach(function(k){k=l(k);"none"!==k.css("display")&&e.push(k.outerHeight())});var p=Math.max.apply(null,e);w.target.forEach(function(k){k=l(k);"none"!==k.css("display")&&k.css({height:p+"px"})})});setTimeout(function(){U.el.component.find(".scrollbar").target.forEach(function(w){u.resize(w)})},
206630)};W.prototype.setCardInstances=function(){this.el.cardSlide.target.forEach(function(U){aa.instances.has(U)?aa.instances.get(U).reInit():new aa(U)})};W.prototype.bindEvents=function(){l(window).off("resize",this.handler.setHeight).on("resize",this.handler.setHeight)};var aa=function(U){this.selector={cardComponent:".accessories__item",optionSelector:".option-selector__wrap",mobileOptionWrap:".accessories__option-selector",mobileOptionColor:".accessories__color-chip",mobileOptionCapacity:".accessories__capacity"};
2067this.el={component:l(U)};this.handler={resize:this.resize.bind(this)};aa.instances.set(U,this);this.init()};aa.prototype.setElement=function(){this.el.optionSelector=this.el.component.find(this.selector.optionSelector);this.el.mobileOptionWrap=this.el.component.find(this.selector.mobileOptionWrap);this.resizeFlag=this.mobileFlag=this.desktopFlag=!1};aa.prototype.init=function(){this.setElement();this.resize();this.bindEvents()};aa.prototype.reInit=function(){this.init()};aa.prototype.setMobileOption=
2068function(){var U=this;this.el.mobileOptionWrap.target.forEach(function(B){B=l(B);var w=B.find(U.selector.mobileOptionColor),e=B.find(U.selector.mobileOptionCapacity);w.target.length&&(5<w.find(".accessories__color").target.length?w.addClass("accessories__color-chip--over"):w.removeClass("accessories__color-chip--over"));e.target.length&&(e.width()>B.width()?e.addClass("accessories__capacity--over"):e.removeClass("accessories__capacity--over"))})};aa.prototype.resize=function(){n.MOBILE<g.getViewPort().width?
2069!1===this.desktopFlag&&(this.desktopFlag=!0,this.mobileFlag=!1):!1===this.mobileFlag&&(this.desktopFlag=!1,this.mobileFlag=!0,!1===this.resizeFlag&&(this.setMobileOption(),this.resizeFlag=!0))};aa.prototype.bindEvents=function(){l(window).off("resize",this.handler.resize).on("resize",this.handler.resize)};var x=function(){l(window);F=l(".accessories");F.target.length&&l(".accessories").target.forEach(function(U){W.instances.has(U)||new W(U)})};W.instances=new WeakMap;aa.instances=new WeakMap;l.ready(x);
2070window.sg.components.accessories={init:x,reInit:function(){H.setLazyLoad();l(".accessories").target.forEach(function(U){l(U).find(".scrollbar").target.forEach(function(B){u.reInit(B);u.resize(B)});l(U).find(".option-selector").target.forEach(function(B){v.reInit(l(B))});W.instances.has(U)?W.instances.get(U).reInit():new W(U)})},reInitItem:function(U){H.setLazyLoad();l(U).target.forEach(function(B){l(B).find(".option-selector").target.forEach(function(w){v.reInit(l(w))});aa.instances.has(B)?aa.instances.get(B).reInit():
2071new aa(B)})}}})();
2072(function(l,g){window.sg.components.dynamic=window.sg.components.dynamic||{};l=window.sg.components.dynamic;var H=function(){function u(oa,da){var na=!0,L="",N="",b="",r="",G="";if("Y"===x||"pl"===e&&"OUTOFSTOCK"===da)na=!1;else if("NOORDER"===da||"LEARNMORE"===da)na="nl"===e||"be"===e||"be_fr"===e?!0:!1;oa.price&&(L=oa.price);
2072oa.listPrice&&(r=oa.listPrice);oa.listPriceDisplay?G=oa.listPriceDisplay:oa.listPrice&&(G=currencyComma(oa.listPrice,aa));oa.priceDisplay?N=oa.priceDisplay:oa.price&&(N=currencyComma(oa.price,
2073aa));da=oa.promotionPrice?oa.promotionPrice:oa.price;var P=oa.promotionPriceDisplay?oa.promotionPriceDisplay:oa.promotionPrice?currencyComma(oa.promotionPrice,aa):N;var Z="Y"===g.cookies.get("isSMBRegisteredUserYN",{domain:".samsung.com"})&&commonLoginCheck();p&&Z&&(oa.tieredPrice&&k?(da=oa.tieredPrice,P=currencyComma(oa.tieredPrice,aa),oa.tieredPriceDisplay&&(P=oa.tieredPriceDisplay)):oa.smbPromotionPrice&&(da=oa.smbPromotionPrice,P=currencyComma(oa.smbPromotionPrice,aa)));L&&da&&L!==da?b=currencyComma(parseFloat(L)-
2074parseFloat(da),aa):oa.formattedPriceSave?b=oa.formattedPriceSave:oa.saveText&&0<parseFloat(oa.saveText)&&(b=oa.saveText);var d="Y"===g.cookies.get("useTaxExPriceYN",{domain:".samsung.com"});p&&d&&(oa.taxExPrice&&(da=oa.taxExPrice,P=currencyComma(oa.taxExPrice,aa),oa.taxExPriceDisplay&&(P=oa.taxExPriceDisplay)),Z&&oa.taxExTieredPrice&&k&&(da=oa.taxExTieredPrice,P=currencyComma(oa.taxExTieredPrice,aa),oa.taxExTieredPriceDisplay&&(P=oa.taxExTieredPriceDisplay)));oa.tradeInPriceText&&-1<g("#shopIntegrationFlag").val().indexOf("Hybris-intg")&&
2075(P=oa.tradeInPriceText);if("be"===e||"be_fr"===e||"nl"===e)N=deleteCurrency(N,aa),P=deleteCurrency(P,aa),b=deleteCurrency(b,aa),G=deleteCurrency(G,aa);return{hasPrice:na,orignalPrice:L,salePrice:da,listPrice:r,listPriceFormatted:G,orignalPriceFormatted:N,salePriceFormatted:P,savePriceFormatted:b}}var n=g("#searchDomain").val(),v=g("#shopIntegrationFlag").val(),F=g("#siteCode").val(),W=g("#apiStageInfo").val(),aa=g("#accPriceCurrency").val(),x=g("#oldProductYn").val(),U=g("#accModelList").val(),B=
2076g("#reviewUseYN").val(),w=g("#reevooUseYN").val(),e=g("#siteCode").val(),p=g("#shopIntegrationFlag")?"true"===g("#shopIntegrationFlag").val():!0,k=g("#tieredPriceUseYn")?"Y"===g("#tieredPriceUseYn").val():!0,A="GPv2"===v?!0:!1,ca="Hybris-new"===v?!0:!1,K="Hybris-intg"===v?!0:!1,D=digitalData.page.pageInfo.pageTrack,h=g("#scene7domain").val(),C=[],E=0;Granite.I18n.setLocale(g("#language").val());var T=function(oa,da,na){var L=h;fnIsNull(oa)||-1<oa.indexOf("http:")||""===oa||-1<oa.indexOf("//image-us.samsung.com/")||
2077-1<oa.indexOf("//stg-images.samsung.com.cn/")||-1<oa.indexOf("//images.samsung.com.cn/")||-1<oa.indexOf("image.samsung.com.cn/")||-1<oa.indexOf("//stg-images.samsung.com/")||-1<oa.indexOf("//images.samsung.com/")||-1<oa.indexOf("image.samsung.com/")?na=oa:(na&&(L=L.replace("/image/","/content/")),na=L+oa);0>na.indexOf("?$")&&!fnIsNull(oa)&&("lazy"===da?(oa=na,da="?$LazyLoad_Home",na=na.toLowerCase(),da=-1<na.indexOf(".jpg")?da+"_JPG$":-1<na.indexOf(".jpeg")?da+"_JPG$":-1<na.indexOf(".png")?da+"_PNG$":
2078-1<na.indexOf(".gif")?da+"_GIF$":da+"_PNG$",na=oa+da):"product-desktop"===da?na+="?$240_240_PNG$":"product-mobile"===da&&(na+="?$480_480_PNG$"));return na},R=function(oa,da){for(var na=0;na<oa.length;na++)if(oa[na]===da)return!0;return!1},z=function(oa,da){if(!fnIsNull(da)&&!fnIsNull(oa.modelList)&&!fnIsNull(oa.modelList[da])){var na=oa.modelList[da];fnIsNull(na.displayName)&&(oa.modelList[da].displayName="");if(!fnIsNull(na.thumbUrl)){var L={};fnIsNull(na.thumbUrl)||(L={},L.imageUrlDesktop=T(na.thumbUrl,
2079"product-desktop"),L.imageUrlMobile=T(na.thumbUrl,"product-mobile"),L.lazyImageUrl=T(na.thumbUrl,"lazy"));oa.modelList[da].thumbInfo=L}if("Y"===B||"Y"===w){L="";var N=na.ratings;fnIsNull(N)&&(N=0,oa.modelList[da].ratings=0);var b=Math.pow(10,1);N=Math.round(N*b)/b;b=parseFloat(N).toFixed(1);N=parseInt(N);var r=parseInt(100*(b-N));var G="";"0.0"!==b?oa.modelList[da].ratings=b:G="rating--empty";oa.modelList[da].ratingEmptyText=G;for(b=0;b<N;b++)L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 100%;"\x3e\x3c/span\x3e\x3c/span\x3e';
2080if(5>N&&0<N)for(L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: '+r+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',b=4;b>N;b--)L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';else if(0===N&&!fnIsNull(oa.modelList[da].reviewUrl))for(N=0;5>N;N++)L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';
2081oa.modelList[da].ratingHtml=L;fnIsNull(na.reviewCount)&&(oa.modelList[da].reviewCount="0");oa.modelList[da].ratingsText=Granite.I18n.get("{0} out of {1} Stars",["\x3cspan\x3e"+na.ratings+"\x3c/span\x3e","5"],e)}fnIsNull(na.energyLabelGrade)&&(oa.modelList[da].energyLabelGrade="");fnIsNull(na.ficheFileUrl)&&(oa.modelList[da].ficheFileUrl="")}return oa},fa=function(oa,da,na,L,N){da=da.split(",");var b=da[0];N=N.indexOf("MEMORY");if(!A&&!ca&&L&&0<N){na=oa.MEMORY.optionList;var r=0,G=0;for(Z in na){b=
2082na[Z].modelIdx.split(",");for(var P in b)if(R(da,b[P])){oa=na[Z].optionCode.replace("TB","000").replace(/[^0-9]/g,"");G<oa&&(G=oa,r=b[P]);break}}da=r}else{for(r in na){var Z=na[r];if(!fnIsNull(Z)){P=Z.split(",");Z=[];for(G in da)-1<P.indexOf(String(da[G]))&&Z.push(da[G]);0<Z.length&&(da=Z)}}da=0<da.length?da[0]:b}return da},va=function(oa){var da="",na="",L=oa.modelList[oa.frontModelIdx];fnIsNull(L.ctaType)||(na=L.ctaType.toUpperCase(),oa.modelList[oa.frontModelIdx].ctaTypeUpperCase=na);fnIsNull(oa.categorySubTypeCode)||
2083oa.categorySubTypeCode.substr(0,2);p&&L.b2bHybrisShopInfo&&(na=L.b2bHybrisShopInfo.ctaType.toUpperCase());var N="javascript:void(0)";fnIsNull(L.pdpUrl)||(N=L.pdpUrl);var b='\x3cdiv class\x3d"accessories__product-name"\x3e';!fnIsNull(L.displayName)&&(b+='\x3ca href\x3d"'+N+'" an-tr\x3d"pd_accessories-'+D+'-product-link" an-ca\x3d"product click" an-ac\x3d"accessories" an-la\x3d"product click" data-modelcode\x3d"'+L.modelCode+'" data-modelname\x3d"'+L.modelName+'"\x3e'+L.displayName+"\x3c/p\x3e\x3c/a\x3e");
2084da+=b+"\x3c/div\x3e";N='\x3cdiv class\x3d"accessories__image"\x3e';"true"===g("#isEppPage").val()&&(b="N"===oa.simplePdYN?"pd":"feature",-1<L.pdpUrl.indexOf("/pd.")?L.pdpUrl=L.pdpUrl.replace(/\/pd./ig,"/"+b+"."):-1<L.pdpUrl.indexOf("/feature.")&&(L.pdpUrl=L.pdpUrl.replace(/\/feature./ig,"/"+b+".")));fnIsNull(L.pdpUrl)||fnIsNull(L.thumbUrl)||(N+='\x3ca href\x3d"'+L.pdpUrl+'" an-tr\x3d"pd_accessories-'+D+'-product-link" an-ca\x3d"product click" an-ac\x3d"accessories" an-la\x3d"product click" data-modelcode\x3d"'+
2085L.modelCode+'" data-modelname\x3d"'+L.modelName+'"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+L.thumbInfo.lazyImageUrl+'" data-mobile-src\x3d"'+L.thumbInfo.lazyImageUrl+'" alt\x3d"'+L.thumbUrlAlt+'"\x3e\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+L.thumbInfo.imageUrlDesktop+'" data-mobile-src\x3d"'+L.thumbInfo.imageUrlMobile+'" alt\x3d"'+L.thumbUrlAlt+'"\x3e\x3c/div\x3e\x3c/a\x3e');da+=N+'\x3c/div\x3e\x3cdiv class\x3d"accessories__text"\x3e';
2086N="";b=oa.modelList[oa.frontModelIdx];if(!fnIsNull(oa.viewOptionObj)){N+='\x3cdiv class\x3d"option-selector"\x3e';if(!fnIsNull(oa.viewOptionObj)&&0<Object.keys(oa.viewOptionObj).length){var r="",G=0,P=oa.viewOptionObj,Z=oa.optionTypeList;for(q in oa.viewOptionObj){var d=q.toLowerCase().replace(/ /g,"-");var M=oa.viewOptionObj[q].optionList,t="",y,I="",X="";var V=y="";fnIsNull(oa.viewOptionObj[q].styleAttr)||(V=oa.viewOptionObj[q].styleAttr);var O="";for(var S in M){var Q=M[S];var ea=Q.modelIdx.split(",");
2087null!=Q.modelIdx&&R(ea,String(oa.frontModelIdx))&&(O=Q.optionLocalName)}if("COLOR"===q){N+='\x3cdiv class\x3d"option-selector__color-name"\x3e\x3cdiv class\x3d"option-selector__color-name-inner"\x3e\x3cspan class\x3d"color-name-title"\x3e'+Granite.I18n.get("Color")+' : \x3c/span\x3e\x3cspan class\x3d"color-name-text"\x3e'+O+'\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip" data-desktop-view\x3d"5" data-mobile-view\x3d"3"\x3e\x3cdiv class\x3d"option-selector__swiper"\x3e\x3cdiv class\x3d"option-selector__swiper-container"\x3e\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
2088V+'" role\x3d"list"\x3e';for(S in M){Q=M[S];V=!1;ea=Q.modelIdx.split(",");
2088if(null!=Q.modelIdx&&R(ea,String(oa.frontModelIdx)))V=!0,t=Q.modelIdx,O="";else if(O=" js-fmyChip-is-disabled-acc",0===G)O="";else{var la=r.split(",");for(var ma in ea)if(R(la,ea[ma])){O="";break}}if(""===O){y=Q.modelIdx;ea=[];la=!0;for(var ta in P)if(ta!==q){var xa=P[ta].optionList;for(var sa in xa){var Ma=xa[sa];Ma=Ma.modelIdx;var pa=Ma.split(",");-1<pa.indexOf(String(oa.frontModelIdx))&&ea.push(Ma)}}y=fa(P,y,ea,la,Z);oa.modelList.length>
2089y&&!fnIsNull(oa.modelList[y])&&(I=' data-modelcode\x3d"'+oa.modelList[y].modelCode+'"',X=' data-modelname\x3d"'+oa.modelList[y].modelName+'"')}ea="product-"+d+"-"+S+"-"+b.modelCode;la="product-"+d+"-"+b.modelCode;N+='\x3cspan class\x3d"option-selector__swiper-slide'+(V?" swiper-slide-active":"")+'" role\x3d"listitem"\x3e\x3cspan class\x3d"option-selector__color js-acc-product-fmychip'+O+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+ea+'" data-optionName\x3d"'+Q.optionLocalName+'" name\x3d"'+la+'" data-modeli\x3d"'+
2090y+'" data-code\x3d"'+Q.optionCode+'"'+(V?" checked":"")+' an-tr\x3d"pd_accessories-'+D+'-text-option" an-ca\x3d"option click" an-ac\x3d"accessories" an-la\x3d"'+q.toLowerCase()+":"+Q.optionName.replace('"',"\x26quot;").toLowerCase()+'"'+I+X+' data-typeidx\x3d"'+G+'" data-moidx\x3d"'+Q.modelIdx+'" \x3e\x3clabel for\x3d"'+ea+'"\x3e\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+Q.optionCode+'"\x3e'+Q.optionLocalName+'\x3c/span\x3e\x3cspan class\x3d"hidden"\x3e'+Q.optionLocalName+
2091"\x3c/span\x3e\x3c/label\x3e\x3c/span\x3e\x3c/span\x3e"}r=t;N+='\x3c/div\x3e\x3c/div\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"'+Granite.I18n.get("Previous")+'" role\x3d"button" aria-disabled\x3d"true"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+'\x3c/span\x3e\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"'+
2092Granite.I18n.get("Next")+'" role\x3d"button" aria-disabled\x3d"true"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Next")+'\x3c/span\x3e\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'}else{N+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity" data-desktop-view\x3d"3" data-mobile-view\x3d"2"\x3e\x3cdiv class\x3d"option-selector__swiper"\x3e\x3cdiv class\x3d"option-selector__swiper-container"\x3e\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
2093V+'" role\x3d"list"\x3e';for(var a=0;a<M.length;a++){Q=M[a];V=!1;ea=Q.modelIdx.split(",");if(null!=Q.modelIdx&&R(ea,String(oa.frontModelIdx)))V=!0,t=Q.modelIdx,O="";else if(O=" js-fmyChip-is-disabled-acc",0===G)O="";else{la=r.split(",");for(var c in ea)if(R(la,ea[c])){O="";break}}if(""===O){y=Q.modelIdx;ea=[];la=!1;for(var m in P)if(m!==q){xa=P[m].optionList;for(var f in xa)Ma=xa[f],Ma=Ma.modelIdx,pa=Ma.split(","),-1<pa.indexOf(String(oa.frontModelIdx))&&ea.push(Ma)}y=fa(P,y,ea,la,Z);oa.modelList.length>
2094y&&!fnIsNull(oa.modelList[y])&&(I=' data-modelcode\x3d"'+oa.modelList[y].modelCode+'"',X=' data-modelname\x3d"'+oa.modelList[y].modelName+'"')}ea="product-"+d+"-"+a+"-"+b.modelCode;la="product-"+d+"-"+b.modelCode;N+='\x3cspan class\x3d"option-selector__swiper-slide'+(V?" swiper-slide-active":"")+'" role\x3d"listitem"\x3e\x3cspan class\x3d"option-selector__size js-acc-product-fmychip'+O+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+ea+'" data-optionName\x3d"'+Q.optionLocalName+'" name\x3d"'+la+'" data-modeli\x3d"'+
2095y+'" an-tr\x3d"pd_accessories-'+D+'-text-option" an-ca\x3d"option click" an-ac\x3d"accessories" an-la\x3d"'+q.toLowerCase()+":"+Q.optionName.replace('"',"\x26quot;").toLowerCase()+'"'+I+X+' data-typeidx\x3d"'+G+'" data-code\x3d"'+Q.optionCode+'"'+(V?" checked":"")+' data-moidx\x3d"'+Q.modelIdx+'"\x3e\x3clabel class\x3d"option-selector__size-label" for\x3d"'+ea+'"\x3e\x3cspan class\x3d"option-selector__size-label-text"\x3e'+Q.optionLocalName+"\x3c/span\x3e\x3c/label\x3e\x3c/span\x3e\x3c/span\x3e"}r=
2096t;N+='\x3cdiv class\x3d"option-selector__floating-bar" style\x3d"display: none;"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"'+Granite.I18n.get("Previous")+'" role\x3d"button" aria-disabled\x3d"true"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+'\x3c/span\x3e\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"'+
2097Granite.I18n.get("Next")+'" role\x3d"button" aria-disabled\x3d"true"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Next")+'\x3c/span\x3e\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e'}G++}}N+="\x3c/div\x3e"}var q=da+N;S="";ma="/"+e+"/common/review/"+L.modelCode+"/";fnIsNull(L.reviewUrl)||(ma=L.reviewUrl);"Y"!==B&&"Y"!==w||fnIsNull(L.ratingHtml)||"cn"===e||(S+='\x3cdiv class\x3d"accessories__rating"\x3e\x3ca href\x3d"'+
2098ma+'" data-modelcode\x3d"'+L.modelCode+'" data-modelname\x3d"'+L.modelName+'" an-tr\x3d"pd_accessories-'+D+'-image-review" an-ca\x3d"review" an-ac\x3d"accessories" an-la\x3d"read review"\x3e\x3cspan class\x3d"rating '+L.ratingEmptyText+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Rating")+'\x3c/span\x3e\x3cspan class\x3d"rating__inner"\x3e\x3cspan class\x3d"rating__star-list"\x3e'+L.ratingHtml+'\x3c/span\x3e\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Product Ratings")+
2099" : \x3c/span\x3e\x3cspan\x3e"+L.ratings+'\x3c/span\x3e\x3c/strong\x3e\x3cem class\x3d"rating__review-count"\x3e(\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Number of Ratings")+" :\x3c/span\x3e\x3cspan\x3e"+L.reviewCount+"\x3c/span\x3e)\x3c/em\x3e\x3c/span\x3e\x3c/span\x3e\x3ca\x3e\x3c/div\x3e");q+=S;oa=oa.thirdPASeller;S='\x3cdiv class\x3d"accessories__seller"\x3e';!fnIsNull(oa)&&(S+='\x3cp class\x3d"accessories__seller-inner"\x3e'+oa+"\x3c/p\x3e");oa=q+(S+"\x3c/div\x3e");ma=p?u(L.b2bHybrisShopInfo,
2100na):u(L,na);q=ma.hasPrice;na='\x3cdiv class\x3d"accessories__price"\x3e';q&&(q=ma.salePriceFormatted,S=ma.orignalPriceFormatted,ta=ma.savePriceFormatted,sa=ma.listPrice,m=ma.listPriceFormatted,null!=L.listPrice&&(sa=parseFloat(L.listPrice)-parseFloat(L.price)),ma=N=b=da=f=c="",G=r=!1,A||ca||p?fnIsNull(L.leasingInfo)||"nl"!==e?fnIsNull(L.monthlyPriceInfo)||fnIsNull(L.monthlyPriceInfo.leasingMonthly)||fnIsNull(L.monthlyPriceInfo.leasingMonths)||fnIsNull(L.monthlyPriceInfo.interest)||(c=L.monthlyPriceInfo.leasingMonthly,
2101"be"!==e&&"be_fr"!==e&&(c=currencyComma(c,aa)),f=L.monthlyPriceInfo.leasingMonths,r=!0):(L=L.leasingInfo,N=deleteCurrency(L.monthlyRate,aa),f=L.tenureVal,da=deleteCurrency(L.downPaymentFormatted,aa),b=L.tenureUnit,G=!0):fnIsNull(L.monthlyPriceInfo)||fnIsNull(L.monthlyPriceInfo.leasingMonthly)||fnIsNull(L.monthlyPriceInfo.leasingMonths)||"au"!==e&&"nz"!==e&&"ae"!==e&&"my"!==e&&"sg"!==e&&"ca"!==e&&"ca_fr"!==e&&"it"!==e&&"se"!==e&&"dk"!==e&&"fi"!==e&&"no"!==e&&"es"!==e&&"pt"!==e&&"th"!==e&&"tw"!==e&&
2102"ru"!==e&&"ch"!==e&&"ch_fr"!==e||(L=L.monthlyPriceInfo,c=L.leasingMonthly,c=currencyComma(c,aa),f=L.leasingMonths,r=!0),A||ca||K||p?ta?(S="nl"===e||"be"===e||"be_fr"===e||"de"===e?Granite.I18n.get("From {0}",["\x3cdel\x3e"+S+"\x3c/del\x3e"]):"\x3cdel\x3e"+S+"\x3c/del\x3e",ma='\x3cspan class\x3d"accessories__price-original"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e"+S+"\x3c/span\x3e","nl"!==e&&"be"!==e&&"be_fr"!==e&&(ma+='\x3cspan class\x3d"accessories__price-save"\x3e'+
2103Granite.I18n.get("Save {0}",ta)+"\x3c/span\x3e")):0<sa&&("nl"===e||"be"===e||"be_fr"===e)&&(ma+='\x3cspan class\x3d"accessories__price-original"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e\x3cspan\x3e"+Granite.I18n.get("Listprice")+" "+m+"\x3c/span\x3e\x3c/span\x3e"):ta&&"nl"!==e&&"be"!==e&&"be_fr"!==e&&(ma+='\x3cspan class\x3d"accessories__price-save"\x3e'+ta+"\x3c/span\x3e"),r?(L=Granite.I18n.get("From {0}/mo",[c])+" ",L+=Granite.I18n.get("for {0} mos",
2104[f])+" ",L+=Granite.I18n.get("or")+q,na+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cspan class\x3d"accessories__price-current" data-pricetext\x3d"'+L+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Monthly Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-current-text"\x3e'+Granite.I18n.get("From {0}/mo",[c])+"\x3c/span\x3e "+Granite.I18n.get("for {0} mos",[f])+'\x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Current Price")+
2105': \x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly-text"\x3e '+Granite.I18n.get("or")+" \x3c/span\x3e"+q+"\x3c/span\x3e\x3c/div\x3e"):G?""!==da&&""!==b&&""!==f&&""!==N&&(ta=" "+da+" + "+f+" x "+N+"/"+Granite.I18n.get(b),L=S+" "+Granite.I18n.get("or")+" "+ta,na+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cdiv class\x3d"product-card__price-current" data-pricetext\x3d"'+(L+'"\x3e\x3cspan class\x3d"hidden"\x3e')+Granite.I18n.get("Current Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-current-text"\x3e'+
2106q+'\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"accessories__price-monthly"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Monthly Price")+': \x3c/span\x3e\x3cspan class\x3d"product-card__price-monthly-text"\x3e '+Granite.I18n.get("or")+" \x3c/span\x3e"+ta+"\x3c/div\x3e\x3c/div\x3e"):na+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cdiv class\x3d"accessories__price-current" data-pricetext\x3d"'+q+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Current Price")+": \x3c/span\x3e"+q+
2107"\x3c/div\x3e\x3c/div\x3e",na+='\x3cdiv class\x3d"accessories__price-detail"\x3e',!fnIsNull(ma)&&(na+=ma),na+="\x3c/div\x3e");return oa+(na+"\x3c/div\x3e\x3c/div\x3e")},ra=function(){g(".js-fmyChip-is-disabled-acc").parent().addClass("is-disabled");g(".js-fmyChip-is-disabled-acc").removeClass("js-fmyChip-is-disabled-acc").find("input").prop("disabled",!0);var oa=g(".js-acc-product-fmychip").find("input");oa.off("click.finder");oa.on("click.finder",function(da){da=g(this);
2107var na=da.closest(".js-acc-product-card"),
2108L=na.data("productidx"),N=da.data("modeli");setTimeout(function(){if(!fnIsNull(N)){C[L].frontModelIdx=N;var b=z(C[L],N);na.find(".option-selector__wrap").each(function(r){r=C[L].optionTypeList[r];var G=g(this).find(".option-selector__swiper-wrapper").attr("style");C[L].viewOptionObj[r].styleAttr=G});na.html(va(b));ra();window.sg.components.accessories.reInitItem(document.querySelectorAll(".accessories__item")[L])}},300)})};v=function(){var oa={},da="",na="",L="true"===g("#isEppPage").val();na=L?"epp/v2":
2109"b2c";L&&(oa.companyCode=g("#eppCompanyCode").val(),oa.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(oa.groupName=window.sg.epp.common.groupName),L=location.pathname.match(/[0-9]{13}/g),null!=L&&"undefined"!=typeof L&&""!=g.trim(L)&&(oa.offerId=L[0]),""!=window.sg.epp.common.userStoreId&&(oa.o2oId=window.sg.epp.common.userStoreId));na=A?na+"/product/card/detail/gpv2":ca?na+"/product/card/detail/newhybris":K?na+"/product/card/detail/hybris":p?"b2b/product/card/detail":na+"/product/card/detail/global";
2110if(U){oa.siteCode=F;oa.modelList=U;oa.saleSkuYN="N";oa.onlyRequestSkuYN="N";oa.keySummaryYN="N";oa.specYN="N";L=g.cookies.get("estoreSitecode")?g.cookies.get("estoreSitecode").toString():"";var N=g.cookies.get("country_region")?g.cookies.get("country_region").toString():"",b="",r="";"ae"===e||"ae_ar"===e?r=fnIsNull(L)?e:"ae"===L||"ae_ar"===L||"kw"===L||"kw_ar"===L||"om"===L||"om_ar"===L||"bh"===L||"bh_ar"===L||"qa"===L||"qa_ar"===L?L:e:"levant"===e?r="jo":"levant_ar"===e?r="jo_ar":"n_africa"===e&&
2111(r="ma");if("ca"===e||"ca_fr"===e)b=fnIsNull(N)?"CA-ON":N,oa.regionCode=b;fnIsNull(r)||(oa.shopSiteCode=r);if(A||ca||p)oa.commonCodeYN="N";p&&(oa.shopType="b2bhybris");g.ajax({url:n+"/"+W+"/"+na,data:oa,async:!1,success:function(G){if(200===G.response.statusCode&&0<G.response.resultData.productList.length)for(var P=0;P<G.response.resultData.productList.length;P++){var Z=G.response.resultData.productList[P],d=0;if(!fnIsNull(Z.modelList)&&0<Z.modelList.length)for(var M=0;M<Z.modelList.length;M++){var t=
2112Z.modelList[M];void 0!==t.selected&&"Y"===t.selected&&(d=M)}Z.frontModelIdx=d;t=void 0;M={};for(t in Z.modelList){var y=Z.modelList[t].fmyChipList,I;for(I in y){var X=y[I].fmyChipType+"+"+y[I].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+y[I].fmyChipLocalName.replace('"',"").replace("\x26quot;","");M[X]=void 0===M[X]?t:M[X]+(","+t)}}t=[];y={};if(!fnIsNull(Z.chipOptions))for(X=0;X<Z.chipOptions.length;X++){var V=Z.chipOptions[X],O=V.fmyChipType,S=V.optionList,Q;for(Q in S){var ea=V.fmyChipType+
2113"+"+S[Q].optionCode.replace('"',"").replace("\x26quot;","")+"+"+S[Q].optionLocalName.replace('"',"").replace("\x26quot;","");void 0!==M[ea]&&(S[Q].modelIdx=M[ea])}y[O]={};y[O].optionList=S;t.push(O)}Z.viewOptionObj=y;Z.optionTypeList=t;C[E]=Z;d=z(Z,d);d=va(d);da+='\x3cdiv class\x3d"accessories__item js-acc-product-card" data-productidx\x3d'+E+"\x3e";da+=d;da+="\x3c/div\x3e";E++}}})}da?(g("section.accessories").find("div.scrollbar__contents").html(da),ra(),g("section.accessories").show()):g("section.accessories").remove()};
2114U&&v()};g(function(){H();window.sg.components.accessories.reInit()});l.accessoriesGrid=H})(window,window.jQuery);
2115(function(){var l=window.sg.common.$q,g=function(u){this.selector={accordionCta:'[data-js-action\x3d"ftd22AccordionOpen"]',accordionEl:".ftd22-faq__accordion",accordionContentWrap:".ftd22-faq__accordion-content-wrap",accordionContent:".ftd22-faq__accordion-content",disclaimerNumber:".ftd22-faq__accordion-title-cta .disclaimer-bottom-number"};this.classes={accordionExpand:"ftd22-faq__accordion--expanded"};this.el={section:l(u),window:l(window)};this.handler={handleResize:this.handleResize.bind(this),
2116handleClickAccordion:this.handleClickAccordion.bind(this),handleClickNumber:this.handleClickNumber.bind(this)};g.instances.set(u,this);this.init()};g.prototype.init=function(){this.setElements();this.bindEvents();this.toggleAccordion()};g.prototype.reInit=function(){this.init()};g.prototype.setElements=function(){this.el.accordionEl=this.el.section.find(this.selector.accordionEl);this.el.accordionCta=this.el.section.find(this.selector.accordionCta);this.el.disclaimerNumber=this.el.section.find(this.selector.disclaimerNumber)};
2117g.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize);
2117this.el.window.off("change",this.handler.handleResize).on("change",this.handler.handleResize);this.el.window.off("deviceorientation",this.handler.handleResize).on("deviceorientation",this.handler.handleResize);this.el.accordionCta.off("click",this.handler.handleClickAccordion).on("click",this.handler.handleClickAccordion);this.el.disclaimerNumber.off("click",this.handler.handleClickNumber).on("click",
2118this.handler.handleClickNumber)};g.prototype.handleResize=function(){this.toggleAccordion()};g.prototype.handleClickAccordion=function(u){u=l(u.currentTarget).closest(this.selector.accordionEl);var n=u.find(this.selector.accordionContentWrap),v=u.find(this.selector.accordionCta);u.toggleClass(this.classes.accordionExpand);u.hasClass(this.classes.accordionExpand)?(n.removeAttr("inert"),v.attr("aria-expanded",!0)):(n.attr("inert",!0),v.attr("aria-expanded",!1));this.toggleAccordion()};g.prototype.handleClickNumber=
2119function(u){u.stopPropagation()};g.prototype.toggleAccordion=function(){var u=this.el.section.find(".ftd22-faq__accordion.ftd22-faq__accordion--expanded").find(this.selector.accordionContent),n=this.el.section.find(".ftd22-faq__accordion:not(.ftd22-faq__accordion--expanded)").find(this.selector.accordionContentWrap);u.target.forEach(function(v){l(v).parent().css({"max-height":l(v).outerHeight()+"px"})});n.css({"max-height":0})};var H=function(){l(".ftd22-faq").target.forEach(function(u){g.instances.has(u)||
2120new g(u)})};g.instances=new WeakMap;window.sg.components.Ftd22Faq={init:H,reInit:function(){l(".ftd22-faq").target.forEach(function(u){g.instances.has(u)?g.instances.get(u).reInit():new g(u)})}};l.load(H)})();
2121(function(){var l=window.sg.common.$q,g=window.sg.common.utils,H=window.sg.common.lazyLoad,u=window.sg.common.swiperManager,n=function(F){this.selector={swiperContainer:".pdd28-reasons-to-buy__list",imageWrap:".pdd28-reasons-to-buy__image",nameWrap:".pdd28-reasons-to-buy__name-wrap",descWrap:".pdd28-reasons-to-buy__desc-wrap",screenIndicatorPrev:".screen-indicator--prev",screenIndicatorNext:".screen-indicator--next"};this.el={window:l(window),section:l(F)};this.swiperIndex=this.swiper=this.currentDevice=
2122null;this.handler={handleResize:this.handleResize.bind(this)};n.instances.set(F,this);this.init()};n.prototype.init=function(){this.setElements();this.bindEvents()};n.prototype.reInit=function(){this.init();H.forceLoad(this.section)};n.prototype.setElements=function(){this.el.swiperContainer=this.el.section.find(this.selector.swiperContainer);this.el.imageWrap=this.el.section.find(this.selector.imageWrap);this.el.nameWrap=this.el.section.find(this.selector.nameWrap);this.el.descWrap=this.el.section.find(this.selector.descWrap);
2123this.el.screenIndicatorPrev=this.el.section.find(this.selector.screenIndicatorPrev);this.el.screenIndicatorNext=this.el.section.find(this.selector.screenIndicatorNext)};n.prototype.bindEvents=function(){this.swiper=u.getSwiper(this.el.swiperContainer.target[0]);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize);this.el.window.off("change",this.handler.handleResize).on("change",this.handler.handleResize);this.el.window.off("deviceorientation",this.handler.handleResize).on("deviceorientation",
2124this.handler.handleResize);window.dispatchEvent(new Event("resize"))};n.prototype.handleResize=function(){var F=this,W=g.getCurrentDevice();this.matchHeight();this.currentDevice!==W&&setTimeout(function(){F.initSwiper();F.updateTagging()},250);this.currentDevice=W};n.prototype.matchHeight=function(){[this.el.nameWrap,this.el.descWrap].forEach(function(F){var W=F.target.reduce(function(aa,x){x=x.children[0]?x.children[0].clientHeight:0;return aa>x?aa:x},0);F.css({height:W+"px"});0===W?F.addClass("is-empty"):
2125F.removeClass("is-empty")})};n.prototype.updateTagging=function(){if(this.swiper){var F=this.swiperIndex+1;this.el.screenIndicatorPrev.attr("an-la","carousel:swipe:buy direct get more"+(F-1));this.el.screenIndicatorNext.attr("an-la","carousel:swipe:buy direct get more"+(F+1))}};n.prototype.initSwiper=function(){var F=this;this.el.swiperContainer.target.forEach(function(W){u.slideReInit(W);u.slideInitEnd(W,function(){F.swiper=u.getSwiper(W);F.updateTagging();F.swiper.on("reachEnd",function(){F.swiperIndex=
2126F.swiper.slides.length-1;F.updateTagging()});F.swiper.on("transitionEnd",function(){F.swiper.isEnd||(F.swiperIndex=F.swiper.activeIndex,F.updateTagging())})})})};var v=function(){l(".pdd28-reasons-to-buy").target.forEach(function(F){n.instances.has(F)||new n(F)})};n.instances=new WeakMap;window.sg.components.PdReasonsToBuy={init:v,reInit:function(){l(".pdd28-reasons-to-buy").target.forEach(function(F){n.instances.has(F)?n.instances.get(F).reInit():new n(F)})}};l.load(v)})();
2127(function(l,g){function H(){var x=g("#siteCode").val(),U=g("#pfCategoryTypeCode").val(),B="GPv2"===F?!0:!1,w="Hybris-intg"===F?!0:!1;fnIsNull(F);var e="Hybris-new"===F?!0:!1,p=checkEppSite(),k=g("#searchDomain").val(),A=g("#apiStageInfo").val(),ca=p?"epp/v2":"b2c",K=k+"/"+A+"/"+ca+"/product/finder/global";B?K=k+"/"+A+"/"+ca+"/product/finder/gpv2":w?K=k+"/"+A+"/"+ca+"/product/finder/hybris":e&&(K=k+"/"+A+"/"+ca+"/product/finder/newhybris");x={type:U,siteCode:x,start:1,num:12,sort:"newest",onlyFilterInfoYN:"N",
2128keySummaryYN:"Y",onlyReasonToBuyYN:"Y"};if(p){p=l.sg.epp.common.companyCode;U=g("#pfType").val();x.companyCode=p;x.pfType=U;if("F"==U||"R"==U)x.offerId=g("#pfOfferId").val();l.sg.epp.common.isUserGroupPricing&&(x.groupName=l.sg.epp.common.groupName);""!=window.sg.epp.common.userStoreId&&(x.o2oId=window.sg.epp.common.userStoreId)}g.ajax({url:K,type:"GET",data:x,dataType:"json",cache:!0,timeout:2E4,success:function(D){if(2
212800===D.response.statusCode){D=D.response.resultData.reasonsToBuyList;var h="",
2129C=!0,E=g("#pfCategoryGroupCode").val(),T=g("#pfCategoryTypeCode").val();if(D&&null!=D){for(var R in D){var z=D[R];if(null==z.iconType||""==z.iconType)C=!1}R=Granite.I18n.get("Learn more",null,"ux2");for(N in D){z=D[N];var fa=null!=z.iconType&&""!=z.iconType?!0:!1,va="",ra="",oa="";"NEW"==z.ctaLinkType&&(va='target\x3d"_blank"',ra=" cta--icon",oa='\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n                                    \x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e\n                               \x3c/svg\x3e');
2130va=null!=z.ctaURL&&""!=z.ctaURL?va:"";var da=aa[z.iconType];if("ca"===siteCode||"ca_fr"===siteCode)"smart_care"===z.iconType?da="#samsung-care-plus-bold":"cashback"!==z.iconType||"03000000"!==E&&"04000000"!==E&&"05000000"!==E&&"08000000"!==E&&"07010000"!==T||(da="#price-guarantee-reguler");var na=fa&&-1<da.indexOf("#")?!0:!1,L="";if("#smart-care-regular"===da||"#samsung-app"===da||"#support-laptop"===da)L="pdd28-reasons-to-buy__item--colored-icon-off";h+='\x3cdiv class\x3d"pdd28-reasons-to-buy__item swiper-slide '+
2131L+'" role\x3d"listitem"\x3e\n                                        \x3cdiv class\x3d"pdd28-reasons-to-buy__card"\x3e\n                                          \x3c!--/* [D] \uc774\ubbf8\uc9c0\uac00 \uc5c6\ub354\ub77c\ub3c4 pdd28-reasons-to-buy__image \uad6c\uc870 \uc720\uc9c0 */--\x3e\n                                    ';C&&(h+='\x3cdiv class\x3d"pdd28-reasons-to-buy__image"\x3e',fa&&(h=na?h+('\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n                                                \x3cuse xlink:href\x3d"'+
2132da+'" href\x3d"'+da+'"\x3e\x3c/use\x3e\n                                              \x3c/svg\x3e'):h+('\x3cdiv class\x3d"image"\x3e\n                                                    \x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+z.iconType+'" data-mobile-src\x3d"'+z.iconType+'" \n                                                    alt\x3d"'+z.iconAltText+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n                                                \x3c/div\x3e')),
2133h+="\x3c/div\x3e");fa=ellipsize(z.title,67);h+='\x3cdiv class\x3d"pdd28-reasons-to-buy__name-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__name"\x3e'+fa+"\x3c/p\x3e\n                                    \x3c/div\x3e";null!=z.description&&""!=z.description&&"\x26nbsp;"!=z.description?(da=ellipsize(z.description,413),h+='\x3cdiv class\x3d"pdd28-reasons-to-buy__desc-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__desc"\x3e'+
2134da+"\x3c/p\x3e\n                                    \x3c/div\x3e"):h+='\x3cdiv class\x3d"pdd28-reasons-to-buy__desc-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__desc"\x3e\x3c/p\x3e\n                                    \x3c/div\x3e';null!=z.ctaURL&&""!=z.ctaURL&&"\x26nbsp;"!=z.ctaURL&&(da=checkEppSite()?getEppMultiStorePath(z.ctaURL):z.ctaURL,h+='\x3cdiv class\x3d"pdd28-reasons-to-buy__cta"\x3e\n                                            \x3ca class\x3d"cta cta--underline-v2 cta--black'+
2135ra+' cta--large" href\x3d"'+da+'" aria-label\x3d"'+R+". "+fa+'" '+va+'\n                                               an-tr\x3d"pdd28_reasons to buy-'+v+'-learn more-content_click" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"reasons to buy:buy direct get more:'+z.title+':learn more"\x3e\n                                                '+R+"\n                                                "+oa+"\n                                            \x3c/a\x3e\n                                        \x3c/div\x3e");
2136h+="\x3c/div\x3e\n                                \x3c/div\x3e"}}var N=h;D="";""!=N&&(D=""+N);""!==D?(g(".pdd28-reasons-to-buy__list-inner").html(D),g("section.pdd28-reasons-to-buy").show(),window.sg.components.PdReasonsToBuy.reInit()):(g("section.pdd28-reasons-to-buy").html(""),g("section.pdd28-reasons-to-buy").hide())}},error:function(){console.log("\x3e\x3e\x3e\x3e\x3e\x3e\x3e\x3e\x3e\x3e\x3e reasonsToBuy API Error ")},complete:function(D){}})}var u=g("#tempTitle").val(),n=g("#rtbListSize").val(),
2137v=g("#pageTrack").val(),F=g("#shopIntegrationFlag").val(),W=-1<u.indexOf("page-pf-ux2")||checkEppSite()&&-1<u.indexOf("page-pf")?!0:!1,aa={cart:"#cart-regular",shipping:"#shipping-regular",shipping_help:"#shipping-help-regular",order_tracking:"#order-tracking-regular",shipping_free:"#shipping-free-regular",in_stock:"#in-stock-regular",cancel_order:"#cancel-order-regular",return_order:"#return-order-regular",find_order:"#find-order-regular",finance:"#finance-regular",barcode:"#barcode-regular",qr_code:"#qr-code-regular",
2138coupon:"#coupon-regular",event:"#event-regular",bundle:"#bundle-regular",gift:"#gift-regular",payment:"#payment-regular",deal
2138:"#shopping-deal-regular",exclusive_color:"#exclusive-color",store:"#store-regular",repair_support:"#repair-support-regular",warranty:"#warranty-regular",smart_care:"#smart-care-regular",trade_in:"#trade-in-regular",upgrade:"#upgrade-regular",emotion_worst:"#service-emoticon-worst",emotion_sorry:"#emoticon-sorry-regular",early_upgrade_program:"#early-upgrade-program",galaxy_free_trial_program:"#galaxy-free-trial-program",
2139cracked_screen_trade_in:"#cracked-screen-trade-in",support_labtop:"#support-laptop",support_laptop:"#support-laptop",pick_up_from_store:"#pick-up-from-store",device:"#icon-smartphones-tablets-regular",bank:"#bank-reguler",calendar_outline:"#calendar-reverse-reguler",cashback:"#cashback-outline-reguler",customer_service:"#customer-service-regular",fast_shipping_guarantee:"#fast-shipping-guarantee-reguler",home_appliance_service:"#home-appliance-service-reguler",interest_free:"#interest-free-reguler",
2140point:"#point-reguler",price_guarantee:"#price-guarantee-reguler",rewards:"#rewards-reguler",Samsung_Shop_App_icon_Android_96x96:"#samsung-app",shipping_trade:"#shipping-trade-up",show:"#show-regular",smartthings:"#smartthings-reguler",windfree:"#windfree-reguler","samsung-club":"#samsung-club-regular"};g(function(){var x=g("h2.pdd28-reasons-to-buy__headline"),U=x.text();x.text(ellipsize(U,72));if(W)console.log("PF "+F+" : "+n),H();else if(console.log("PD "+F+" : "+n),1>n)g("section.pdd28-reasons-to-buy").html(""),
2141g("section.pdd28-reasons-to-buy").hide();else{x=g("#pdd28_card_title");U=g("#pdd28_card_description");var B=x.text(),w=U.text();x.text(ellipsize(B,67));U.text(ellipsize(w,413));g("section.pdd28-reasons-to-buy").show()}})})(window,window.jQuery);
2142(function(){var l,g;function H(){var B=document.querySelector(".manufacturer-info-popup");B&&(l=B,g=B.querySelector(".layer-popup"),U=B.querySelector(".layer-popup__close"),W.init(g),U.addEventListener("click",v),B=document.querySelector(x.section+" "+x.close),B.removeEventListener("keydown",n),B.addEventListener("keydown",n),B=document.querySelector(x.section+" "+x.layerPopup),B.removeEventListener("keydown",u),B.addEventListener("keydown",u))}function u(B){B.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===
2143B.keyCode&&B.target===document.querySelector(x.section+" "+x.layerPopup)&&(B.preventDefault(),document.querySelector(x.section+" "+x.close).focus())}function n(B){B.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==B.keyCode||(B.preventDefault(),document.querySelector(x.section+" "+x.layerPopup).focus())}function v(){l.removeAttribute("style");aa.popupControl.close();aa.visibleScroll();document.querySelector(".pdd-buying-tool")?document.querySelector('.pdd-buying-tool [data-target-popup\x3d"manufacturerInfoPopup"]').focus():
2144document.querySelector('.pd-buying-tool [data-target-popup\x3d"manufacturerInfoPopup"]').focus()}var F=window.sg.common.$q,W=window.sg.common.layerPopupMaxHeight,aa=window.sg.common.utils,x={section:".manufacturer-info-popup",layerPopup:".layer-popup",close:".layer-popup__close"};var U=g=l=void 0;window.sg.components.manufacturerInfoPopup={reInit:H,showPopup:function(){l.style.display="block";W.reInit(g);var B=document.querySelector(x.section+" "+x.layerPopup);B.setAttribute("tabindex",0);B.focus();
2145aa.popupControl.open(v);aa.hiddenScroll()}};F.ready(H)})();
2146(function(){function l(){g(H.section).target.forEach(function(n){new u(n)})}var g=window.sg.common.$q,H={section:".text-editor"},u=function(n){this.selector={section:H.section,columnBox:".text-editor__column-wrap",hiddenTextArea:".text-editor__column-hidden-text",viewCta:".text-editor__column-cta",activeClass:"is-show"};this.ele={window:g(window),section:g(n),viewCta:null};this.handler={charView:this.charView.bind(this)};u.instances.set(n,this);this.init()};u.prototype.init=function(){this.setProperty();
2147this.bindEvents()};u.prototype.reInit=function(){this.setProperty();this.bindEvents()};u.prototype.setProperty=function(){var n=this;this.ele.viewCta=this.ele.section.find(this.selector.viewCta);this.ele.section.find(this.selector.columnBox).target.forEach(function(v){var F=g(v);if(0<F.find(n.selector.hiddenTextArea).target.length){var W=F.find(n.selector.hiddenTextArea).target[0].previousElementSibling,aa=F.find(n.selector.hiddenTextArea).target[0].firstElementChild;"P"===aa.tagName.toUpperCase()&&
2148aa.classList.add("text-extend");if("P"===W.tagName.toUpperCase()&&(W.classList.add("text-extend"),""!==W.style.textAlign)){aa=W.style.textAlign;var x=F.find(n.selector.hiddenTextArea).target[0].children;
2148[].concat($jscomp.arrayFromIterable(x)).forEach(function(U){if(""===U.style.textAlign&&!U.classList.contains("text-extend")){var B=window.getComputedStyle(U).textAlign,w=U.getAttribute("style");null!==w?U.setAttribute("style",w+" text-align:"+B):U.setAttribute("style","text-align:"+B)}});x=document.createElement("div");
2149x.classList.add("extend-area");x.setAttribute("style","text-align:"+aa);x.appendChild(W);x.appendChild(F.find(n.selector.hiddenTextArea).target[0]);x.appendChild(F.find(n.selector.viewCta).target[0]);g(v).find(".text-editor__column").target[0].appendChild(x)}}})};u.prototype.charView=function(n){n=g(n.currentTarget);var v=n.closest(this.selector.columnBox).find(this.selector.hiddenTextArea),F=JSON.parse(n.target[0].dataset.globalText);v.hasClass(this.selector.activeClass)?(n.innerHTML(F.Show),v.removeClass(this.selector.activeClass)):
2150(n.innerHTML(F.Hidden),v.addClass(this.selector.activeClass))};u.prototype.bindEvents=function(){this.ele.viewCta.off("click",this.handler.charView).on("click",this.handler.charView)};u.instances=new WeakMap;window.sg.components.textEditor={init:l,reInit:function(){g(H.section).target.forEach(function(n){u.instances.has(n)?u.instances.get(n).reInit():new u(n)})}};g.ready(l)})();
2151(function(l,g){window.sg.components.dynamic=window.sg.components.dynamic||{};g(document).on("click",".disclaimer_activeClass_dev",function(){var H=g(this).attr("href");g(H).addClass("feature-bottom-disclaimer__item--active")});g(document).on("click",".feature-bottom-disclaimer__cta-top",function(){g(this).parent().parent().removeClass("feature-bottom-disclaimer__item--active")})})(window,window.jQuery);
2152(function(){function l(){g(v.section).target.forEach(function(W){F.instances.has(W)||new F(W)})}var g=window.sg.common.$q,H=window.sg.common.utils,u=window.sg.common.lazyLoad,n=window.sg.common.swiperManager,v={section:".pdd36-recommendation-oos-new"},F=function(W){this.selector={content:".pdd36-recommendation-oos-new__content",swiperContainer:".pdd36-recommendation-oos-new__list",nameWrap:".pdd36-recommendation-oos-new__name-wrap",ratingWrap:".pdd36-recommendation-oos-new__rating-wrap",ficheWrap:".pdd36-recommendation-oos-new__fiche-wrap",
2153priceWrap:".pdd36-recommendation-oos-new__price-wrap",progressIndicator:".progressbar-indicator",progressIndicatorShowClass:"progressbar-indicator--show",dataEmptyClass:"pdd36-recommendation-oos-new--data-empty"};this.el={window:g(window),section:g(W)};this.swiper=this.currentDevice=null;this.handler={handleResize:this.handleResize.bind(this)};F.instances.set(W,this);this.init()};F.prototype.init=function(){this.setElements();this.initSwiper();this.bindEvents()};F.prototype.reInit=function(){this.init();
2154u.forceLoad(this.section)};F.prototype.setElements=function(){this.el.swiperContainer=this.el.section.find(this.selector.swiperContainer);this.el.nameWrap=this.el.section.find(this.selector.nameWrap);this.el.ratingWrap=this.el.section.find(this.selector.ratingWrap);this.el.ficheWrap=this.el.section.find(this.selector.ficheWrap);this.el.priceWrap=this.el.section.find(this.selector.priceWrap);this.el.progressIndicator=this.el.section.find(this.selector.progressIndicator)};F.prototype.bindEvents=function(){this.swiper=
2155n.getSwiper(this.el.swiperContainer.target[0]);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize);this.el.window.off("change",this.handler.handleResize).on("change",this.handler.handleResize);this.el.window.off("deviceorientation",this.handler.handleResize).on("deviceorientation",this.handler.handleResize);window.dispatchEvent(new Event("resize"))};F.prototype.handleResize=function(){var W=this,aa=H.getCurrentDevice();this.setHeight();this.currentDevice!==
2156aa&&setTimeout(function(){W.setSwiperStatus()},10);this.currentDevice=aa};F.prototype.setSwiperStatus=function(){(this.swiper=n.getSwiper(this.el.swiperContainer.target[0]))?this.swiper.slides.length<=parseInt(this.swiper.params.slidesPerView)||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.progressIndicator.removeClass(this.selector.progressIndicatorShowClass)):(this.swiper.allowTouchMove=!0,this.el.progressIndicator.addClass(this.selector.progressIndicatorShowClass)):this.initSwiper()};
2157F.prototype.setHeight=function(){var W=this;[this.el.nameWrap,this.el.ratingWrap,this.el.ficheWrap,this.el.priceWrap].forEac
2157h(function(aa){var x=aa.target.reduce(function(U,B){B=B.children[0]?B.children[0].clientHeight:0;return U>B?U:B},0);aa.css({height:x+"px"});0===x?aa.addClass(W.selector.dataEmptyClass):aa.removeClass(W.selector.dataEmptyClass)})};F.prototype.initSwiper=function(){var W=this;this.el.swiperContainer.target.forEach(function(aa){n.slideReInit(aa);n.slideInitEnd(aa,function(){W.swiper=
2158n.getSwiper(aa);W.setSwiperStatus()})})};F.instances=new WeakMap;window.sg.components.Pdd36ProductRecommendationOOS={init:l,reInit:function(){g(v.section).target.forEach(function(W){F.instances.has(W)?F.instances.get(W).reInit():new F(W)})}};g.ready(l)})();var productRecommendationUx2PD={};
2159(function(l){function g(){var v,F;return $jscomp.asyncExecutePromiseGeneratorProgram(function(W){if(1==W.nextAddress)return W.setCatchFinallyBlocks(2),W.yield(alloy("getIdentity"),4);if(2!=W.nextAddress){v=W.yieldResult;if(!v||!v.identity||!v.identity.ECID)throw Error("ECID not found");return W.return(v.identity.ECID)}F=W.enterCatchBlock();console.error("Error retrieving ECID:",F.message);return W.return(null)})}function H(v){v&&(v=v.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,
2160"\x26quot;").replace(/'/g,"\x26#039;"));return v}var u=siteCode+":"+Math.floor(new Date/1E3)+":"+Math.floor(1E5+9E5*Math.random()),n="true"===l("#isEppPage").val();productRecommendationUx2PD={getSearchProductCardForBDCApi:function(v){var F,W,aa,x,U,B,w,e,p,k,A,ca,K,D,h,C,E,T,R;return $jscomp.asyncExecutePromiseGeneratorProgram(function(z){if(1==z.nextAddress)return F="https://api-recommender.bigdata.samsung.com",W="/prodrec/recommendation",z.yield(g(),2);aa=z.yieldResult;B=U=x="";if(commonLoginCheck()){w=
2161".samsung.com";"cn"===siteCode&&(w=".samsung.com.cn");try{if(e=l.cookies.get("dcgue",{domain:w})?l.cookies.get("dcgue",{domain:w}):window.localStorage.getItem("dcgue"))e=decodeURIComponent(e),p=l.cookies.get("encGuid",{domain:w}),k=p.substring(4,36).toLowerCase(),A=CryptoJS.enc.Utf8.parse(k),ca=CryptoJS.AES.decrypt(e,A,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),x=CryptoJS.enc.Utf8.stringify(ca)}catch(fa){console.error("get guid fail:",fa)}U=l.cookies.get("sa_id",{domain:w});B=l.cookies.get("s_ecid",
2162{domain:w})}K=l.cookies.get("cmapi_cookie_privacy",{domain:".samsung.com"});D=cookies.getCookie("recent_list");h=[];l.each(cookies.getCookies(),function(fa,va){-1!=fa.indexOf("AMCV_")&&h.push(va.toString())});C="b2c";E="";n&&(C="epp",E=window.sg.epp.common.companyCode);T={requestId:u,country:siteCode,num:6,siteType:C};R={pageType:"pdp_similar_product",guid:x,saId:U,visitorId:B,ecid:aa,visitorIdList:h,consent:K,recentList:D,targetModel:v,rewardPoint:"",eppStoreName:E};l.ajax({headers:T,url:F+W,type:"POST",
2163data:JSON.stringify(R),xhrFields:{withCredentials:!0},contentType:"application/json; charset\x3dutf-8",dataType:"json",async:!1,cache:!0,success:function(fa,va,ra){if(200==ra.status)if(fa.recommendations&&0<fa.recommendations.length){va=fa.recommendations;u=fa.requestId;l(".pdd36-recommendation-oos-new .pdd36-recommendation-oos-new__list-inner").show();l(".pdd36-recommendation-oos-new .pd-offer__content").hide();fa=l(".pdd36-recommendation-oos-new");var oa="";if(null!=va){for(ra=0;ra<va.length;ra++){var da=
2164va[ra].product,na=va[ra].model;if(null!=da.modelList&&0<da.modelList.length){for(var L=0,N=0;N<da.modelList.length;N++)da.modelList[N].modelCode==na&&(L=N);da.frontModelIdx=L;var b=da;da=ra;L=b.modelList[b.frontModelIdx];na="";H((L.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));N='data-modelcode\x3d"'+L.modelCode+'"';var r='data-modelname\x3d"'+L.modelName+'"',G='data-requested\x3d"'+u+'"';(b.categorySubTypeEngName||"").toLowerCase();(L.pviTypeName||"").toLowerCase();(L.pviSubtypeName||
2165"").toLowerCase();da='{"an-tr":"pdd36_product  card case-product detail-index-indication","an-ca":"indication","an-ac":"carousel","an-la":"carousel:index:'+da+'"}';var P=b.modelList[b.frontModelIdx],Z="";H((P.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));var d='an-ca\x3d"product click" an-ac\x3d"recommended product" an-la\x3d"image click" an-tr\x3d"pdd36_product recommendation-product detail-product click-product_click2" data-modelname\x3d"'+(P.modelName+'" data-modelcode\x3d"')+
2166(P.modelCode+'" data-requested\x3d"')+(u+'"');if(P.thumbUrl){b=P.thumbUrl;var M=P.thumbUrlAlt||"",t=P.pdpUrl;"Y"===P.simplePdYN&&n&&null!=P.originPdpUrl&&(t=P.originPdpUrl.replace("feature.","buy."));d='\x3c!--/* Preset desktop: 180_180, mobile: 200_200 */--\x3e\n\t\t\t\t\x3ca href\x3d"'+t+'" class\x3d"pdd36-recommendation-oos-new__image-link" '+d+"\x3e\n\t\t\t\t";var y=t="",I="",X=!1;fnIsNull(P.topFlags)||fnIsNull(P.topFlags.iconTypeCd)||("N"===P.topFlags.iconTypeCd?(I=Granite.I18n.get("new"),y=
2167" badge-icon--bg-color-blue",X=!0):"H"===P.topFlags.iconTypeCd?(I=Granite.I18n.get("hot"),y=" badge-icon--bg-color-red",X=!0):"B"===P.topFlags.iconTypeCd&&(I=Granite.I18n.get("best seller"),y=" badge-icon--bg-color-orange",X=!0));X&&(t='\x3cspan class\x3d"badge-icon badge-icon--label-v2'+y+'"\x3e'+I+"\x3c/span\x3e");Z+=d+t+'\n\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+(b+'?$144_144_PNG$" data-mobile-src\x3d"')+
2168(b+'?$UX_EXT1_PNG$" alt\x3d"')+M+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+(b+'?$144_144_PNG$" data-mobile-src\x3d"')+(b+'?$UX_EXT1_PNG$" alt\x3d"')+M+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/a\x3e'}N='\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__image"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t'+Z+'\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__name-wrap"\x3e\n\t\t\t\t\t\t\t\t                  \x3ca href\x3d"'+
2169L.pdpUrl+'" class\x3d"pdd36-recommendation-oos-new__name"an-tr\x3d"pdd36_product recommendation-product detail-product click-product_click2" an-ca\x3d"product click" an-ac\x3d"recommended product" an-la\x3d"display name click" '+r+" "+N+" "+G+"\x3e"+L.displayName+'\x3c/a\x3e\n\t\t\t\t\t\t\t\t                \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__rating-wrap"\x3e\n\t\t\t\t\t\t\t\t                  ';r="";b=L.ratings;fnIsNull(b)&&(b=0,L.ratings=0);G='an-ca\x3d"review" an-ac\x3d"recommended product" an-la\x3d"read review" an-tr\x3d"pdd36_product recommendation-product detail-review-review1" data-modelname\x3d"'+
2170(L.modelName+'" data-modelcode\x3d"')+(L.modelCode+'"');M=Math.pow(10,1);b=Math.round(b*M)/M;M=parseFloat(b).toFixed(1);b=parseInt(b);parseInt(100*(M-b));"0.0"!==M&&(L.ratings=M);null!=L.ratings&&""!=L.ratings&&"cn"!==siteCode&&"0"!==L.ratings&&(b="/"+siteCode+"/common/review/"+L.modelCode+"/",null!=L.reviewUrl&&""!=L.reviewUrl&&(b=L.reviewUrl),r+='\x3c!--/* rating \ub0b4\uc6a9\uc774 \uc5c6\uc744 \uacbd\uc6b0 \ud558\ub2e8 \ub9c8\ud06c\uc5c5 \uc0ad\uc81c */--\x3e\n            \t\x3c!-- /* \uc804\uccb4 Empty: .rating--empty \ucd94\uac00 */ --\x3e\n            \t\x3ca href\x3d"'+
2171b+'" class\x3d"pdd36-recommendation-oos-new__rating" '+G+'\x3e\n            \t\x3cdiv class\x3d"rating-v2"\x3e\n                    \x3cdiv class\x3d"rating-v2__wrap"\x3e\n                      \x3cspan class\x3d"rating-v2__star"\x3e\n                        \x3csvg class\x3d"rating-v2__star-icon"\x3e\n                        \x3cuse xlink:href\x3d"#star-rating-full-bold" href\x3d"#star-rating-full-bold"\x3e\x3c/use\x3e\n                        \x3c/svg\x3e\n                      \x3c/span\x3e\n                      \x3cdiv class\x3d"rating-v2__text-box"\x3e\n                        \x3cstrong class\x3d"rating-v2__point"\x3e\n                          \x3cspan class\x3d"hidden"\x3eProduct Ratings : \x3c/span\x3e\n                          \x3cspan class\x3d"rating-v2__point-text"\x3e'+
2172L.ratings+'\x3c/span\x3e\n                        \x3c/strong\x3e\n                        \x3cstrong class\x3d"rating-v2__review-count"\x3e\n                          \x26#40;\n                          \x3cspan class\x3d"hidden"\x3eNumber of Ratings:\x3c/span\x3e\n                          \x3cspan class\x3d"rating-v2__review-count-text"\x3e'+L.reviewCount+"\x3c/span\x3e\n                          \x26#41;\n                        \x3c/strong\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                  \x3c/div\x3e\n                  \x3c/a\x3e");
2173N=N+r+'\n\t\t\t\t\t\t\t\t                \x3c/div\x3e\n\t\t\t\t\t\t\t\t                \x3cdiv class\x3d"pdd36-recommendation-oos-new__price-wrap"\x3e\n\t\t\t\t\t\t\t\t                  ';r=l("#priceCurrency").val();G=l("#priceCurrency").val();b=L.price;M=L.promotionPrice;Z="";b&&("bg"===siteCode&&(L.priceCurrency&&(r=L.priceCurrency),L.promotionPriceCurrency&&(G=L.promotionPriceCurrency)),L=b,Z=currencyComma(b,r),M&&parseFloat(b)>
2173parseFloat(M)&&0<parseFloat(M)&&(Z=currencyComma(M,G),L=M),"bg"===
2174siteCode&&(G=Z,b=Math.pow(10,2),L=Number(L.toString()),"BGN"===r?(L/=1.95583,r="EUR"):"EUR"===r?(L*=1.95583,r="BGN"):r=l("#priceCurrency").val(),L=Math.round(L*b)/b,L=currencyComma(L,r),Z=G+(" / "+L)));na+=N+('\n\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__price"\x3e\n\t\t\t\x3cp class\x3d"pdd36-recommendation-oos-new__price-current"\x3e\n\t\t\t\t'+Z+"\n\t\t\t\x3c/p\x3e\n        \x3c/div\x3e\n\t\t\t\t\t\t\t\t                \x3c/div\x3e");na='\x3cdiv class\x3d"pdd36-recommendation-oos-new__item swiper-slide" role\x3d"listitem" data-tagging\x3d\''+
2175da+"'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+na+"\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e";oa+=na}}va=fa.html;ra=oa;oa='\x3cdiv class\x3d"pdd36-recommendation-oos-new__inner"\x3e\x3cdiv class\x3d"pdd36-recommendation-oos-new__content"\x3e';da='\x3cp class\x3d"pdd36-recommendation-oos-new__headline"\x3e'+Granite.I18n.get("Looking for alternatives?")+"\x3c/p\x3e";va.call(fa,oa+da+('\x3cdiv class\x3d"pdd36-recommendation-oos-new__list swiper-container basic-swiper"data-swiper-option\x3d\'{\n\t\t\t\t\t\t\t\t\t            "breakpoints": {\n\t\t\t\t\t\t\t\t\t              "1": {\n\t\t\t\t\t\t\t\t\t                "slidesPerView": "auto",\n\t\t\t\t\t\t\t\t\t                "centeredSlides": false,\n\t\t\t\t\t\t\t\t\t                "freeMode": true\n\t\t\t\t\t\t\t\t\t              },\n\t\t\t\t\t\t\t\t\t              "768": {\n\t\t\t\t\t\t\t\t\t                "slidesPerView": 3,\n\t\t\t\t\t\t\t\t\t                "centeredSlides": false\n\t\t\t\t\t\t\t\t\t              }\n\t\t\t\t\t\t\t\t\t            },\n\t\t\t\t\t\t\t\t\t            "pagination": true,\n\t\t\t\t\t\t\t\t\t            "keepWrapper": true,\n\t\t\t\t\t\t\t\t\t            "offTxtAccesibility": true,\n\t\t\t\t\t\t\t\t\t            "componentEl": ".pdd36-recommendation-oos-new"\n\t\t\t\t\t\t\t\t\t          }\'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__list-inner swiper-wrapper" role\x3d"list"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'+
2176ra+'\n\t\t\t\t\t\t\t\t\t\t            \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t            \x3c!--/* Mobile Screen indicator */--\x3e\n\t\t\t\t\t\t\t\t\t\t            \x3cdiv class\x3d"screen-indicator-wrap"\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3cbutton class\x3d"screen-indicator screen-indicator--prev" an-tr\x3d"pdd36_product recommendation-product detail-product click-arrow-indication" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:left" \x3e\n\t\t\t\t\t\t\t\t\t\t                \x3cdiv class\x3d"screen-indicator--icon"\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3ePrevious\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\t\t                    \x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3c/button\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3cbutton class\x3d"screen-indicator screen-indicator--next" an-tr\x3d"pdd36_product recommendation-product detail-product click-arrow-indication" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:right"\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3cdiv class\x3d"screen-indicator--icon"\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\t\t                    \x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3c/button\x3e\n\t\t\t\t\t\t\t\t\t\t            \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t            \x3c!--/* // Mobile Screen indicator */--\x3e\n\t\t\t\t\t\t\t\t\t\t \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t        \x3c!--/* Progress Indicator */--\x3e\n\t\t\t\t\t\t\t\t\t\t          \x3cdiv class\x3d"progressbar-indicator"\x3e\n\t\t\t\t\t\t\t\t\t\t            \x3cdiv class\x3d"progressbar-indicator__inner"\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3cdiv class\x3d"progressbar-indicator__bar"\x3e\x3cspan class\x3d"progressbar-indicator__bar-fill"\x3e\x3c/span\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3cdiv class\x3d"progressbar-indicator__arrow-wrap"\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3cbutton class\x3d"progressbar-indicator__arrow swiper-button-prev" an-tr\x3d"pdd36_product recommendation-product detail-product click-arrow-indication" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:left" \x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3ePrevious\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true" width\x3d"40" height\x3d"40" viewbox\x3d"0 0 40 40"\x3e\n\t\t\t\t\t\t\t\t\t\t                    \x3cg transform\x3d"translate(40 40) rotate(180)"\x3e\n\t\t\t\t\t\t\t\t\t\t                      \x3cpath d\x3d"M21.47,16.53A.75.75,0,0,1,22.53,15.47l4,4a.75.75,0,0,1,0,1.061l-4,4A.75.75,0,0,1,21.47,23.47l2.72-2.72H14.5a.75.75,0,0,1,0-1.5h9.689Z" /\x3e\n\t\t\t\t\t\t\t\t\t\t                    \x3c/g\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3c/button\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3cbutton class\x3d"progressbar-indicator__arrow swiper-button-next" an-tr\x3d"pdd36_product recommendation-product detail-product click-arrow-indication" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow:right" \x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true" width\x3d"40" height\x3d"40" viewbox\x3d"0 0 40 40"\x3e\n\t\t\t\t\t\t\t\t\t\t                    \x3cpath d\x3d"M21.47,16.53A.75.75,0,0,1,22.53,15.47l4,4a.75.75,0,0,1,0,1.061l-4,4A.75.75,0,0,1,21.47,23.47l2.72-2.72H14.5a.75.75,0,0,1,0-1.5h9.689Z" /\x3e\n\t\t\t\t\t\t\t\t\t\t                  \x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\t                \x3c/button\x3e\n\t\t\t\t\t\t\t\t\t\t              \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t            \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t          \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t          \x3c!--/* // Progress Indicator */--\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e'));
2177window.sg.components.Pdd36ProductRecommendationOOS.reInit()}}else l(".pdd36-recommendation-oos-new .pdd36-recommendation-oos-new__list-inner").hide()},error:function(){},complete:function(fa){}});z.jumpToEnd()})}}})(window.jQuery);
2178(function(){function l(){g(u.section).target.forEach(function(v){n.instances.has(v)||new n(v)})}var g=window.sg.common.$q,H=window.sg.common.tab,u={section:".pdd40-rtb-bar"},n=function(v){this.selector={wrap:".tab"};this.el={section:g(v),window:g(window)};this.init();n.instances.set(v,this)};n.prototype.init=function(){this.setElements();H.init(this.el.wrap.target[0])};n.prototype.reInit=function(){this.setElements();H.init(this.el.wrap.target[0])};n.prototype.setElements=function(){this.el.wrap=
2179this.el.section.find(this.selector.wrap)};n.instances=new WeakMap;window.sg.components.Pdd40RTBBar={init:l,reInit:function(){g(u.section).target.forEach(function(v){n.instances.has(v)?n.instances.get(v).reInit():new n(v)})}};g.ready(l)})();
2180(function(){var l,g,H,u;function n(){var p=document.querySelector(".siel-trade-in-popup");p&&(l=p,g=p.querySelector(".siel-trade-in-popup__close"),H=p.querySelector(".siel-trade-in-popup__btn-cancel"),u=p.querySelector(".siel-trade-in-popup--start"),w=p.querySelector(".siel-trade-in-popup--end"),e=0,v())}function v(){g.addEventListener("click",function(){W()});H.addEventListener("click",function(){W()});u.addEventListener("focus",function(){g.focus()});w.addEventListener("focus",function(){l.querySelector(".text-field-v2__input").focus()});
2181window.addEventListener("resize",function(){F()});F()}function F(){var p=window.innerHeight,k=l.querySelector(".siel-trade-in-popup__title").getBoundingClientRect().height,A=l.querySelector(".siel-trade-in-popup__btn-wrap").getBoundingClientRect().height,ca=p-k-A;"desktop"===B.getCurrentDevice()?640>ca?l.querySelector(".scrollbar__wrap").style.height=p-k-A+"px":l.querySelector(".scrollbar__wrap").style.height="640px":l.querySelector(".scrollbar__wrap").style.height=p-k-A+"px";U.resize(l.querySelector(".scrollbar"))}
2182function W(){l.removeAttribute("style");B.popupControl.close();B.visibleScroll();document.querySelector(".pdd-buying-tool")?document.querySelector('.pdd-buying-tool [data-target-popup\x3d"sielTradeInPopup"]').focus():document.querySelector('.pd-buying-tool [data-target-popup\x3d"sielTradeInPopup"]').focus()}function aa(){[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".radio-v2__input"))).forEac
2182h(function(p){p.addEventListener("change",function(){[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".radio-v2"))).forEach(function(k){k.classList.remove("active")});
2183p.parentElement.classList.add("active")})})}var x=window.sg.common.$q,U=window.sg.common.scrollbar,B=window.sg.common.utils;var w=u=H=g=l=void 0;var e=0;window.sg.components.sielTradeInPopup={init:n,showPopup:function(){l.style.display="block";B.popupControl.open(W);B.hiddenScroll();F()},showStep:function(p){l.querySelectorAll(".siel-trade-in-popup-option")[e].classList.add("show");"last"===p&&(aa(),l.querySelectorAll(".siel-trade-in-popup-option")[e+1].classList.add("show"),l.querySelector(".siel-trade-in-popup-option__headline-btn").addEventListener("click",
2184function(){if(l.querySelector(".siel-trade-in-popup-option__type-guide-wrap").classList.contains("show")){var k=l.querySelector(".siel-trade-in-popup-option__type-guide-wrap"),A=l.querySelector("#guide-btn");k.classList.remove("show");k.classList.add("hide");A.setAttribute("xlink:href","#open-down-regular");A.setAttribute("href","#open-down-regular")}else l.querySelector(".siel-trade-in-popup-option__type-guide-wrap").classList.contains("hide")?(k=l.querySelector(".siel-trade-in-popup-option__type-guide-wrap"),
2185A=l.querySelector("#guide-btn"),k.classList.remove("hide"),k.classList.add("show"),A.setAttribute("xlink:href","#close-up-regular"),A.setAttribute("href","#close-up-regular")):l.querySelector(".siel-trade-in-popup-option__type-guide-wrap").classList.add("show")}),l.querySelector(".siel-trade-in-popup__disclaimer-wrap").classList.add("show"));e+=1},closePopup:W,resizePopup:F,goScroll:function(p){p=l.querySelectorAll(".siel-trade-in-popup-option")[p].offsetTop;U.scrollTo(l.querySelector(".scrollbar"),
21860,p,!0)}};x.ready(function(){return n()})})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.