/*
 Copyright 2019, Akamai Technologies, Inc. All Rights Reserved. akamai-viewer-0.7.1 */
var $jscomp$this=this,$jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(l){return l.raw=l};$jscomp.createTemplateTagFirstArgWithRaw=function(l,h){l.raw=h;return l};$jscomp.arrayIteratorImpl=function(l){var h=0;return function(){return h<l.length?{done:!1,value:l[h++]}:{done:!0}}};$jscomp.arrayIterator=function(l){return{next:$jscomp.arrayIteratorImpl(l)}};
$jscomp.makeIterator=function(l){var h="undefined"!=typeof Symbol&&Symbol.iterator&&l[Symbol.iterator];return h?h.call(l):$jscomp.arrayIterator(l)};$jscomp.arrayFromIterator=function(l){for(var h,G=[];!(h=l.next()).done;)G.push(h.value);return G};$jscomp.arrayFromIterable=function(l){return l instanceof Array?l:$jscomp.arrayFromIterator($jscomp.makeIterator(l))};
$jscomp.getGlobal=function(l){l=["object"==typeof globalThis&&globalThis,l,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var h=0;h<l.length;++h){var G=l[h];if(G&&G.Math==Math)return G}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;
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(l,h,G){if(l==Array.prototype||l==Object.prototype)return l;l[h]=G.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={};
$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(l,h){var G=$jscomp.propertyToPolyfillSymbol[h];if(null==G)return l[h];G=l[G];return void 0!==G?G:l[h]};$jscomp.polyfill=function(l,h,G,u){h&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(l,h,G,u):$jscomp.polyfillUnisolated(l,h,G,u))};
$jscomp.polyfillUnisolated=function(l,h,G,u){G=$jscomp.global;l=l.split(".");for(u=0;u<l.length-1;u++){var p=l[u];if(!(p in G))return;G=G[p]}l=l[l.length-1];u=G[l];h=h(u);h!=u&&null!=h&&$jscomp.defineProperty(G,l,{configurable:!0,writable:!0,value:h})};
$jscomp.polyfillIsolated=function(l,h,G,u){var p=l.split(".");l=1===p.length;u=p[0];u=!l&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<p.length-1;v++){var F=p[v];if(!(F in u))return;u=u[F]}p=p[p.length-1];G=$jscomp.IS_SYMBOL_NATIVE&&"es6"===G?u[p]:null;h=h(G);null!=h&&(l?$jscomp.defineProperty($jscomp.polyfills,p,{configurable:!0,writable:!0,value:h}):h!==G&&(void 0===$jscomp.propertyToPolyfillSymbol[p]&&($jscomp.propertyToPolyfillSymbol[p]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(p):
$jscomp.POLYFILL_PREFIX+p),p=$jscomp.propertyToPolyfillSymbol[p],$jscomp.defineProperty(u,p,{configurable:!0,writable:!0,value:h})))};$jscomp.underscoreProtoCanBeSet=function(){var l={a:!0},h={};try{return h.__proto__=l,h.a}catch(G){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(l,h){l.__proto__=h;if(l.__proto__!==h)throw new TypeError(l+" is not extensible");return l}:null;
$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};
$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};
$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,h){this.nextAddress=h;return{value:l}};
$jscomp.generator.Context.prototype.yieldAll=function(l,h){l=$jscomp.makeIterator(l);var G=l.next();$jscomp.generator.ensureIteratorResultIsObject_(G);if(G.done)this.yieldResult=G.value,this.nextAddress=h;else return this.yieldAllIterator_=l,this.yield(G.value,h)};$jscomp.generator.Context.prototype.jumpTo=function(l){this.nextAddress=l};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(l,h){this.catchAddress_=l;void 0!=h&&(this.finallyAddress_=h)};$jscomp.generator.Context.prototype.setFinallyBlock=function(l){this.catchAddress_=0;this.finallyAddress_=l||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(l,h){this.nextAddress=l;this.catchAddress_=h||0};
$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,h,G){G?this.finallyContexts_[G]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=l||0;this.finallyAddress_=h||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(l,h){h=this.finallyContexts_.splice(h||0)[0];if(h=this.abruptCompletion_=this.abruptCompletion_||h){if(h.isException)return this.jumpToErrorHandler_();void 0!=h.jumpTo&&this.finallyAddress_<h.jumpTo?(this.nextAddress=h.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)};
$jscomp.generator.Context.PropertyIterator=function(l){this.object_=l;this.properties_=[];for(var h in l)this.properties_.push(h);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};
$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_()};
$jscomp.generator.Engine_.prototype.return_=function(l){this.context_.start_();var h=this.context_.yieldAllIterator_;if(h)return this.yieldAllStep_("return"in h?h["return"]:function(G){return{value:G,done:!0}},l,this.context_.return);this.context_.return(l);return this.nextStep_()};
$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_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(l,h,G){try{var u=l.call(this.context_.yieldAllIterator_,h);$jscomp.generator.ensureIteratorResultIsObject_(u);if(!u.done)return this.context_.stop_(),u;var p=u.value}catch(v){return this.context_.yieldAllIterator_=null,this.context_.throw_(v),this.nextStep_()}this.context_.yieldAllIterator_=null;G.call(this.context_,p);return this.nextStep_()};
$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(h){this.context_.yieldResult=void 0,this.context_.throw_(h)}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}};
$jscomp.generator.Generator_=function(l){this.next=function(h){return l.next_(h)};this.throw=function(h){return l.throw_(h)};this.return=function(h){return l.return_(h)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(l,h){h=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(h));$jscomp.setPrototypeOf&&l.prototype&&$jscomp.setPrototypeOf(h,l.prototype);return h};
$jscomp.asyncExecutePromiseGenerator=function(l){function h(u){return l.next(u)}function G(u){return l.throw(u)}return new Promise(function(u,p){function v(F){F.done?u(F.value):Promise.resolve(F.value).then(h,G).then(v,p)}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)))};
(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 T=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(T.css("padding-top"))||0)+(aa.offset().height||0)):B-((parseFloat(T.css("padding-top"))||0)+(parseFloat(T.css("padding-bottom"))||0));x.css({maxHeight:B+"px"})})}
function h(aa,x){x=void 0===x?null:x;aa=v(aa);aa.show();aa.setLayerFocus(".hubble-pd-popup__layer",F.close);aa.trigger("openPopup");document.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",G);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"}),
l(),v(window).off("resize",l).on("resize",l));window.sg.common.lazyLoad.setLazyLoad()}function G(){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){h(aa.currentTarget.dataset.layerTarget,
aa.currentTarget)})}function p(){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:p,reinit:function(aa,x){aa=void 0===aa?null:aa;x=void 0===x?null:x;null===aa?p():h(aa,x)},openPopup:h,closePopup:G,resizeHeight:l};v.ready(p)})();
(function(){function l(){h(G.section).target.forEach(function(p){u.instances.has(p)||new u(p)})}var h=window.sg.common.$q,G={section:".notification-bar"},u=function(p){var v=this;this.selector={section:G.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:h(window),section:h(p),btn:null,content:null,nomarl:null,
expand: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(p,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);
this.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 p=this;this.ele.btn.off("click").on("click",function(){p.ele.section.hasClass("is-expanded")?p.closeBanner():p.openBanner()});this.ele.window.off("resize",this.handler.resize).on("resize",
this.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=
new WeakMap;window.sg.components.notificationBar={init:l,reInit:function(){h(G.section).target.forEach(function(p){u.instances.has(p)?u.instances.get(p).reInit():new u(p)})},closeBanner:function(p){p=void 0===p?!0:p;h(G.section).target.forEach(function(v){u.instances.has(v)&&u.instances.get(v).closeBanner(p)})}};h.ready(l)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.swiperManager,G=null,u=null,p=function(){G.find(".usp-banner__desc").target.forEach(function(aa){aa=l(aa);var x=aa.attr("data-an-page-track"),T=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:"+T)})});G.target.forEach(function(aa){var x=l(aa);if(x.hasClass("usp-banner--bg-dynamic")){var T=
x.find(".swiper-container");aa=function(){T.find(".swiper-slide-active").hasClass("dynamic--bg-light-gray")?(x.addClass("dynamic--bg-light-gray"),x.removeClass("dynamic--bg-blue")):T.find(".swiper-slide-active").hasClass("dynamic--bg-blue")&&(x.addClass("dynamic--bg-blue"),x.removeClass("dynamic--bg-light-gray"))};h.getSwiper(T.target[0]).on("transitionEnd",aa);aa()}})},v=function(){G.target.forEach(function(aa){function x(k){var A=l(e.slides[e.activeIndex]),ca=A.find(".usp-banner__desc a"),K=A.find(".image__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")||
l(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")||
l(D).attr("data-aem-asset-id")}).filter(function(D){return null!==D&&""!==D}).join(",");switch(k){case "desktop":n.attr("an-as",K);ca.attr("an-as",K);break;case "mobile":n.attr("an-as",A),ca.attr("an-as",A)}}var T=window.sg.common.utils.getCurrentDevice(),B=l(window);aa=l(aa);var w=aa.find(".swiper-container"),e=h.getSwiper(w.target[0]),n=aa.find(".usp-banner__indicator button");x(T);e.on("slideChange",function(){x(T)});e.on("init",function(){x(T)});B.on("resize",function(){var k=window.sg.common.utils.getCurrentDevice();
T!==k&&(T=k,x(T))})})},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();G=l(".usp-banner");u=l(".usp-banner__contents");G.target.length&&u.target.length&&(p(),v(),"mobile"===window.sg.common.utils.getCurrentDevice()&&
F())};l.ready(W);window.sg.components.uspBanner={init:W,reInit:function(){l(".usp-banner").find(".basic-swiper").target.forEach(function(aa){h.getSwiper(aa)?h.slideReInit(aa):h.slideInit(aa)});p();v()}}})();
(function(){function l(){h(G.section).target.forEach(function(p){u.instances.has(p)||new u(p)})}var h=window.sg.common.$q,G={section:".pd-banner"},u=function(p){this.selector={section:G.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",
timerOpenIndia:".s-timer \x3e span .text"};this.ele={window:h(window),section:h(p),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(p,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.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")),
fold: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();
this.setStyle(this.ele.section.hasClass("pd-banner--open"))};u.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=
0<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 p=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>=p.distance)if(!0===this.isTimeStart)this.isTimeStart=!1,p=u.counterData(this.timeEnd),this.ele.timerOpenDay=this.ele.section.find(this.selector.timerOpenDay),
this.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<p.day?""===this.timeText.day?(this.ele.timerCloseTxt.text(v+" "+p.day+F+p.hour+":"+p.minute+":"+p.second),"cn"==$("#siteCode").val()&&this.ele.timerCloseTxt.text(""+v+p.day+F+p.hour+":"+p.minute+":"+p.second)):this.ele.timerCloseTxt.text(v+
" "+p.day+" "+this.timeText.day+F+p.hour+":"+p.minute+":"+p.second):this.ele.timerCloseTxt.text(v+" "+p.hour+":"+p.minute+":"+p.second);this.isIndia?(v=this.ele.timerOpenCount.target[0].parentNode,0===p.day&&"none"!==v.style.display?v.style.display="none":0<p.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(p.day);break;case 1:x=p.hour;break;case 2:x=p.minute;break;case 3:x=p.second}W.textContent=x;aa=
W.nextElementSibling;aa.textContent=1>=parseInt(W.textContent)?aa.dataset.textSingular:aa.dataset.textPlural})):(0<p.day?"cn"==$("#siteCode").val()?(this.ele.section.find(".offer-timer__day").text(p.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(p.day):null!==this.ele.timerOpenDay&&(this.ele.section.find(".offer-timer__day").addClass("offer-timer__day--end"),this.ele.timerOpenDay=
null),this.isRu&&this.ele.remainText.text(""+v),this.ele.timerOpenCount.text(p.hour+":"+p.minute+":"+p.second))};u.counterData=function(p){p=new Date(p)-new Date;return{day:Math.floor(p/864E5),hour:u.numFormat(Math.floor(p%864E5/36E5)),minute:u.numFormat(Math.floor(p%36E5/6E4)),second:u.numFormat(Math.floor(p%6E4/1E3)),distance:p}};u.numFormat=function(p){p=Number(p).toString();10>Number(p)&&1===p.length&&(p="0"+p);return p};u.dateFormat=function(p){return null===p||""===p?0:p.substring(0,4)+"-"+
p.substring(4,6)+"-"+p.substring(6,8)+"T"+p.substring(8,10)+":"+p.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"))))};
u.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 p=this;this.ele.btn.off("click").on("click",function(){p.ele.section.hasClass("pd-banner--open")?p.closeBanner():p.openBanner()})};u.prototype.setStyle=function(p){var v=this.usePreOfferBanner&&this.isTimeStart;
if(p){p=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-"+p);this.ele.section.addClass("pd-banner--text-"+F)}else p=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?
this.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-"+p)};u.prototype.openBanner=function(){var p=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+
"px"},300,function(){p.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(p){var v=this;p=void 0===p?!0:p;if(!(0>this.timerDayInt)){this.ele.content.stop();if(p){this.ele.content.attr("style","");p=this.ele.content.height();this.ele.section.removeClass("pd-banner--open");var F=this.ele.content.height();this.ele.section.addClass("pd-banner--open");
this.ele.content.target[0].style.height=p+"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",
!1);this.setStyle(!1)}};u.instances=new WeakMap;window.sg.components.pdBanner={init:l,reInit:function(){h(G.section).target.forEach(function(p){u.instances.has(p)?u.instances.get(p).reInit():new u(p)})},closeBanner:function(p){p=void 0===p?!0:p;h(G.section).target.forEach(function(v){u.instances.has(v)&&u.instances.get(v).closeBanner(p)})}};h.ready(l)})();
!function(l){var h=Date.now||function(){return+new Date},G={},u=1;l.core?core.effect||(core.effect={}):l.core={effect:{}};core.effect.Animate={requestAnimationFrame:function(){var p=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame,v=!!p;if(p&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(p.toString())&&(v=!1),v)return function(B,w){p(B,w)};var F={},W=0,aa=1,x=null,T=+new Date;return function(B,w){w=aa++;return F[w]=B,W++,
null===x&&(x=setInterval(function(){var e=+new Date,n=F;F={};W=0;for(var k in n)n.hasOwnProperty(k)&&(n[k](e),T=e);2500<e-T&&(clearInterval(x),x=null)},1E3/60)),w}}(),stop:function(p){var v=null!=G[p];return v&&(G[p]=null),v},isRunning:function(p){return null!=G[p]},start:function(p,v,F,W,aa,x){var T=h(),B=T,w=0,e=0,n=u++;if(x||(x=document.body),0==n%20){var k={},A;for(A in G)k[A]=!0;G=k}var ca=function(K){K=!0!==K;var D=h();if(!G[n]||v&&!v(n))return G[n]=null,void(F&&F(60-e/((D-T)/1E3),n,!1));if(K)for(var f=
Math.round((D-B)/(1E3/60))-1,C=0;C<Math.min(f,4);C++)ca(!0),e++;W&&1<(w=(D-T)/W)&&(w=1);f=aa?aa(w):w;!1!==p(f,D,K)&&1!==w||!K?K&&(B=D,core.effect.Animate.requestAnimationFrame(ca,x)):(G[n]=null,F&&F(60-e/((D-T)/1E3),n,1===w||null==W))};return G[n]=!0,core.effect.Animate.requestAnimationFrame(ca,x),n}}}(this);var Scroller;
!function(){Scroller=function(p,v){this.__callback=p;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(p){return Math.pow(p-1,3)+1},h=function(p){return 1>(p/=.5)?.5*Math.pow(p,3):.5*(Math.pow(p-2,3)+2)},G={__isSingleTouch:!1,__isTracking:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,
__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,
__maxDecelerationScrollTop:null,__decelerationVelocityX:null,__decelerationVelocityY:null,setDimensions:function(p,v,F,W){p&&(this.__clientWidth=p);v&&(this.__clientHeight=v);F&&(this.__contentWidth=F);W&&(this.__contentHeight=W);this.__computeScrollMax();this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(p,v){this.__clientLeft=p||0;this.__clientTop=v||0},setSnapSize:function(p,v){this.__snapWidth=p;this.__snapHeight=v},activatePullToRefresh:function(p,v,F,W){this.__refreshHeight=
p;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(p,v,F,W){if(!this.options.zooming)throw Error("Zooming is not enabled!");
this.__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);p=Math.max(Math.min(p,this.options.maxZoom),this.options.minZoom);this.__computeScrollMax(p);F=(F+this.__scrollLeft)*p/aa-F;W=(W+this.__scrollTop)*p/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,p,v)},zoomBy:function(p,v,
F,W){this.zoomTo(this.__zoomLevel*p,v,F,W)},scrollTo:function(p,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!");p*=W;v*=W;this.__computeScrollMax(W)}else W=this.__zoomLevel;this.options.scrollingX?this.options.paging?p=Math.round(p/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(p=Math.round(p/this.__snapWidth)*this.__snapWidth):
p=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;p=Math.max(Math.min(this.__maxScrollLeft,p),0);v=Math.max(Math.min(this.__maxScrollTop,v),0);p===this.__scrollLeft&&v===this.__scrollTop&&(F=!1);this.__publish(p,v,W,F)},scrollBy:function(p,v,F){this.scrollTo((this.__isAnimating?this.__scheduledLeft:this.__scrollLeft)+(p||0),(this.__isAnimating?
this.__scheduledTop:this.__scrollTop)+(v||0),F)},doMouseZoom:function(p,v,F,W){return this.zoomTo(this.__zoomLevel*(0<p?.97:1.03),!1,F-this.__clientLeft,W-this.__clientTop)},doTouchStart:function(p,v){if(null==p.length)throw Error("Invalid touch list: "+p);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),
this.__isAnimating=!1);var F,W,aa=1===p.length;aa?(F=p[0].pageX,W=p[0].pageY):(F=Math.abs(p[0].pageX+p[1].pageX)/2,W=Math.abs(p[0].pageY+p[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=
[]},doTouchMove:function(p,v,F){if(null==p.length)throw Error("Invalid touch list: "+p);if(v instanceof Date&&(v=v.valueOf()),"number"!=typeof v)throw Error("Invalid timestamp value: "+v);if(this.__isTracking){var W,aa;2===p.length?(W=Math.abs(p[0].pageX+p[1].pageX)/2,aa=Math.abs(p[0].pageY+p[1].pageY)/2):(W=p[0].pageX,aa=p[0].pageY);p=this.__positions;if(this.__isDragging){var x=W-this.__lastTouchLeft,T=aa-this.__lastTouchTop,B=this.__scrollLeft,w=this.__scrollTop,e=this.__zoomLevel;if(null!=F&&
this.options.zooming){var n=e;if(e=e/this.__lastScale*F,e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),n!==e){var k=W-this.__clientLeft,A=aa-this.__clientTop;B=(k+B)*e/n-k;w=(A+w)*e/n-A;this.__computeScrollMax(e)}}this.__enableScrollX&&(B-=x,n=this.__maxScrollLeft,(B>n||0>B)&&(this.options.bouncing?B+=x/2:B=B>n?n:0));this.__enableScrollY&&(w-=T,x=this.__maxScrollTop,(w>x||0>w)&&(this.options.bouncing?(w+=T/2,this.__enableScrollX||null==this.__refreshHeight||(!this.__refreshActive&&
w<=-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<p.length&&p.splice(0,30);p.push(B,w,v);this.__publish(B,w,e)}else T=this.options.locking?3:0,B=Math.abs(W-this.__initialTouchLeft),w=Math.abs(aa-this.__initialTouchTop),this.__enableScrollX=this.options.scrollingX&&B>=T,this.__enableScrollY=this.options.scrollingY&&
w>=T,p.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(p){if(p instanceof Date&&(p=p.valueOf()),"number"!=typeof p)throw Error("Invalid timestamp value: "+p);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging&&(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&100>=p-this.__lastTouchMove)){for(var v=
this.__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(p)))}this.__isDecelerating||(this.__refreshActive&&this.__refreshStart?(this.__publish(this.__scrollLeft,
-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(p,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=p;aa.__scheduledTop=v;aa.__scheduledZoom=F;var T=aa.__scrollLeft,
B=aa.__scrollTop,w=aa.__zoomLevel,e=p-T,n=v-B,k=F-w;aa.__isAnimating=core.effect.Animate.start(function(A,ca,K){K&&(aa.__scrollLeft=T+e*A,aa.__scrollTop=B+n*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:h)}else aa.__scheduledLeft=aa.__scrollLeft=p,aa.__scheduledTop=
aa.__scrollTop=v,aa.__scheduledZoom=aa.__zoomLevel=F,aa.__callback&&aa.__callback(p,v,F),aa.options.zooming&&aa.__computeScrollMax()},__computeScrollMax:function(p){null==p&&(p=this.__zoomLevel);this.__maxScrollLeft=Math.max(this.__contentWidth*p-this.__clientWidth,0);this.__maxScrollTop=Math.max(this.__contentHeight*p-this.__clientHeight,0)},__startDeceleration:function(p){var v=this;if(v.options.paging){p=Math.max(Math.min(v.__scrollLeft,v.__maxScrollLeft),0);var F=Math.max(Math.min(v.__scrollTop,
v.__maxScrollTop),0),W=v.__clientWidth,aa=v.__clientHeight;v.__minDecelerationScrollLeft=Math.floor(p/W)*W;v.__minDecelerationScrollTop=Math.floor(F/aa)*aa;v.__maxDecelerationScrollLeft=Math.ceil(p/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(T,B,
w){v.__stepThroughDeceleration(w)},function(){return Math.abs(v.__decelerationVelocityX)>=x||Math.abs(v.__decelerationVelocityY)>=x},function(T,B,w){v.__isDecelerating=!1;v.scrollTo(v.__scrollLeft,v.__scrollTop,v.options.snapping)})},__stepThroughDeceleration:function(p){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&&
(v=W,this.__decelerationVelocityX=0);W=Math.max(Math.min(this.__maxDecelerationScrollTop,F),this.__minDecelerationScrollTop);W!==F&&(F=W,this.__decelerationVelocityY=0)}(p?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=p=0,v<this.__minDecelerationScrollLeft?p=this.__minDecelerationScrollLeft-v:v>this.__maxDecelerationScrollLeft&&(p=this.__maxDecelerationScrollLeft-
v),F<this.__minDecelerationScrollTop?W=this.__minDecelerationScrollTop-F:F>this.__maxDecelerationScrollTop&&(W=this.__maxDecelerationScrollTop-F),0!==p&&(0>=p*this.__decelerationVelocityX?this.__decelerationVelocityX+=.03*p:this.__decelerationVelocityX=.08*p),0!==W&&(0>=W*this.__decelerationVelocityY?this.__decelerationVelocityY+=.03*W:this.__decelerationVelocityY=.08*W))}},u;for(u in G)Scroller.prototype[u]=G[u]}();
(function(l){"function"==typeof define&&define.amd?define(["shoestring"],l):"object"==typeof module&&module.exports?module.exports=l():l()})(function(){function l(e,n){var k,A=typeof e,ca=[];if(!e)return new W(ca);if(e.call)return l.ready(e);if(e.constructor===W&&!n)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?n?l(n).find(e):(k=F.querySelectorAll(e),new W(k,e)):"[object Array]"===
Object.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 h(e,n){var k=!1;return e.each(function(){for(var A=0;A<n.length;)this===n[A]&&(k=!0),A++}),k}function G(e,n){e.shoestringData||(e.shoestringData={});e.shoestringData.events||(e.shoestringData.events={});e.shoestringData.loop||(e.shoestringData.loop={});e.shoestringData.events[n]||(e.shoestringData.events[n]=[])}function u(e,n,k){var A={};A.isCustomEvent=k.isCustomEvent;
A.callback=k.callfunc;A.originalCallback=k.originalCallback;A.namespace=k.namespace;e.shoestringData.events[n].push(A);k.customEventLoop&&(e.shoestringData.loop[n]=k.customEventLoop)}function p(e,n,k){var A=this.shoestringData.events[e];if(A&&A.length){var ca,K=[];var D=0;for(ca=A.length;D<ca;D++)n&&n!==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"!=
typeof window?window:this,F=v.document,W=function(e,n){this.length=0;this.selector=n;l.merge(this,e)};W.prototype.reverse=[].reverse;l.fn=W.prototype;l.Shoestring=W;l.extend=function(e,n){for(var k in n)n.hasOwnProperty(k)&&(e[k]=n[k]);return e};l.merge=function(e,n){var k;var A=+n.length;var ca=0;for(k=e.length;ca<A;ca++)e[k++]=n[ca];return e.length=k,e};v.shoestring=l;l.ajax=function(e,n){var k,A,ca="",K=new XMLHttpRequest;if(k=l.extend({},l.ajax.settings),n&&l.extend(k,n),e||(e=k.url),K&&e){if(k.data)for(A in k.data)k.data.hasOwnProperty(A)&&
(""!==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,
"");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,n){return l.ajax(e,{success:n})};l.fn.load=function(e,n){var k=this,A=arguments;return l.ajax(e,{success:function(ca){k.each(function(){l(this).html(ca)});
n&&n.apply(k,A)}}),this};l.post=function(e,n,k){return l.ajax(e,{data:n,method:"POST",success:k})};l.fn.each=function(e){return l.each(this,e)};l.each=function(e,n){for(var k=0,A=e.length;k<A&&!1!==n.call(e[k],k,e[k]);k++);return e};l.inArray=function(e,n){for(var k=-1,A=0,ca=n.length;A<ca;A++)n.hasOwnProperty(A)&&n[A]===e&&(k=A);return k};l.ready=function(e){return aa&&e?e.call(F):e?x.push(e):T(),[F]};l.fn.ready=function(e){return l.ready(e),this};var aa=!1,x=[],T=function(){if(!aa){for(;x.length;)x.shift().call(F);
aa=!0}};(F.attachEvent?"complete"===F.readyState:"loading"!==F.readyState)?T():(F.addEventListener("DOMContentLoaded",T,!1),F.addEventListener("readystatechange",T,!1),v.addEventListener("load",T,!1));l.fn.is=function(e){var n,k,A=!1,ca=this;return"string"!=typeof e?(k=e.length&&e[0]?e:[e],h(this,k)):(n=this.parent(),n.length||(n=l(F)),n.each(function(K,D){K=D.querySelectorAll(e);A=h(ca,K)}),A)};l.fn.data=function(e,n){return void 0===e?this[0]?this[0].shoestringData||{}:void 0:void 0!==n?this.each(function(){this.shoestringData||
(this.shoestringData={});this.shoestringData[e]=n}):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 n=e.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k=0,A=n.length;k<A;k++)void 0===this.className||""!==this.className&&this.className.match(new RegExp("(^|\\s)"+
n[k]+"($|\\s)"))||(this.className+=" "+n[k])})};l.fn.add=function(e){var n=[];return this.each(function(){n.push(this)}),l(e).each(function(){n.push(this)}),l(n)};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(n){for(var k=0,A=e.length;k<A;k++){var ca=0<n?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(n){for(var k=
0,A=e.length;k<A;k++)this.appendChild(0<n?e[k].cloneNode(!0):e[k])})};l.fn.appendTo=function(e){return this.each(function(){l(e).append(this)})};l.fn.attr=function(e,n){var k="string"==typeof e;return void 0===n&&k?this[0]?this[0].getAttribute(e):void 0:this.each(function(){if(k)this.setAttribute(e,n);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(n){for(var k=0,A=e.length;k<A;k++)this.parentNode.insertBefore(0<
n?e[k].cloneNode(!0):e[k],this)})};l.fn.children=function(){var e,n,k=[];return this.each(function(){e=this.children;for(n=-1;n++<e.length-1;)-1===l.inArray(e[n],k)&&k.push(e[n])}),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 n=[];return e?(this.each(function(){var k;if(l(k=this).is(e))return void n.push(this);for(;k.parentElement;){if(l(k.parentElement).is(e)){n.push(k.parentElement);break}k=k.parentElement}}),l(n)):
l(n)};l.cssExceptions={float:["cssFloat"]};(function(){function e(ca){return ca.replace(/\-([A-Za-z])/g,function(K,D){return D.toUpperCase()})}function n(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,f,C;if(k[K]){var E=0;for(C=k[K].length;E<C;E++)if(f=n(ca,k[K][E]))return f}E=0;for(C=A.length;E<C;E++)if(D=e(A[E]+K),f=n(ca,D),D!==K&&(f=f||n(ca,K)),A[E]&&(f=f||n(ca,A[E]+K)),f)return f}})();
(function(){function e(k){return k.replace(/\-([A-Za-z])/g,function(A,ca){return ca.toUpperCase()})}var n=l.cssExceptions;l._setStyle=function(k,A,ca){var K=e(A);if(k.style[A]=ca,K!==A&&(k.style[K]=ca),n[A]){K=0;for(var D=n[A].length;K<D;K++)k.style[n[A][K]]=ca}}})();l.fn.css=function(e,n){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!==n?this.each(function(){l._setStyle(this,e,n)}):l._getStyle(this[0],e)};l.fn.eq=function(e){return l(this[e]?
this[e]:[])};l.fn.filter=function(e){var n=[];return this.each(function(k){"function"==typeof e?!1!==e.call(this,k)&&n.push(this):9===this.nodeType?this===e&&n.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)&&n.push(this))}),l(n)};l.fn.find=function(e){var n,k=[];return this.each(function(){n=this.querySelectorAll(e);for(var A=0,ca=n.length;A<ca;A++)k=k.concat(n[A])}),l(k)};l.fn.first=function(){return this.eq(0)};
l.fn.get=function(e){if(void 0===e){e=[];for(var n=0;n<this.length;n++)e.push(this[n]);return e}return this[e]};l._dimension=function(e,n,k){var A;return void 0===k?(A=n.replace(/^[a-z]/,function(ca){return ca.toUpperCase()}),e[0]["offset"+A]):(k="string"==typeof k?k:k+"px",e.each(function(){this.style[n]=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 n="";if(void 0!==
e.length)for(var k=0,A=e.length;k<A;k++)n+=e[k].outerHTML;else n=e.outerHTML;return this.each(function(){this.innerHTML=n})};l.fn.html=function(e){if(void 0!==e)return B.call(this,e);var n="";return this.each(function(){n+=this.innerHTML}),n};(function(){function e(n,k){var A,ca,K;for(A=ca=0;A<n.length;A++){if(K=n.item?n.item(A):n[A],k(K))return ca;1===K.nodeType&&ca++}return-1}l.fn.index=function(n){var k,A;return k=this,void 0===n?(A=(this[0]&&this[0].parentNode||F.documentElement).childNodes,e(A,
function(ca){return k[0]===ca})):e(k,function(ca){return ca===l(n,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 n,k;var A=l(this.parentNode)[0].childNodes;for(var ca=0;ca<A.length;ca++){if(n=A.item(ca),k&&1===n.nodeType){e.push(n);break}n===this&&(k=!0)}}),
l(e)};l.fn.not=function(e){var n=[];return this.each(function(){var k=l(e,this.parentNode);-1===l.inArray(this,k)&&n.push(this)}),l(n)};l.fn.offset=function(){return{top:this[0].offsetTop,left:this[0].offsetLeft}};l.fn.parent=function(){var e,n=[];return this.each(function(){(e=this===F.documentElement?F:this.parentNode)&&11!==e.nodeType&&n.push(e)}),l(n)};l.fn.parents=function(e){var n=[];return this.each(function(){for(var k,A=this;A.parentElement&&!k;)A=A.parentElement,e?A===l(e)[0]&&(k=!0,-1===
l.inArray(A,n)&&n.push(A)):-1===l.inArray(A,n)&&n.push(A)}),l(n)};l.fn.prepend=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(n){for(var k=0,A=e.length;k<A;k++){var ca=0<n?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 n,k;var A=l(this.parentNode)[0].childNodes;for(var ca=
A.length-1;0<=ca;ca--){if(n=A.item(ca),k&&1===n.nodeType){e.push(n);break}n===this&&(k=!0)}}),l(e)};l.fn.prevAll=function(){var e=[];return this.each(function(){for(var n=l(this).prev();n.length;)e.push(n[0]),n=n.prev()}),l(e)};l.propFix={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",tabindex:"tabIndex"};l.fn.prop=function(e,n){if(this[0])return e=l.propFix[e]||e,void 0!==n?this.each(function(){this[e]=n}):this[0][e]};l.fn.removeAttr=function(e){return this.each(function(){this.removeAttribute(e)})};
l.fn.removeClass=function(e){var n=e.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k,A,ca=0,K=n.length;ca<K;ca++)void 0!==this.className&&(A=new RegExp("(^|\\s)"+n[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 n=l.propFix[e]||e;return this.each(function(){this[n]=void 0;delete this[n]})};
l.fn.replaceWith=function(e){"string"==typeof e&&(e=l(e));var n=[];return 1<e.length&&(e=e.reverse()),this.each(function(k){var A=this.cloneNode(!0);if(n.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(n)};l.inputTypes="text hidden password color date datetime email month number range search tel time url week".split(" ");
l.inputTypeTest=new RegExp(l.inputTypes.join("|"));l.fn.serialize=function(){var e={};return l("input, select",this).each(function(){var n=this.type,k=this.name,A=this.value;l.inputTypeTest.test(n)||("checkbox"===n||"radio"===n)&&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=[],n=this[0].parentNode.firstChild;do 1===n.nodeType&&n!==this[0]&&e.push(n),n=n.nextSibling;while(n);return l(e)};
var w=function(e){var n,k="",A=0;if(n=e.nodeType)if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)k+=w(e)}else{if(3===n||4===n)return e.nodeValue}else for(;n=e[A++];)k+=w(n);return k};return l.fn.text=function(){return w(this)},l.fn.val=function(e){var n;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 f=ca[D];(f.selected=0<=l.inArray(f.value,K))&&(k=
!0,A=D)}this.selectedIndex=k?A:-1}else this.value=e}):(n=this[0],"SELECT"===n.tagName?0>n.selectedIndex?"":n.options[n.selectedIndex].value:n.value)},l.fn.width=function(e){return l._dimension(this,"width",e)},l.fn.wrapInner=function(e){return this.each(function(){var n=this.innerHTML;this.innerHTML="";l(this).append(l(e).html(n))})},l.fn.bind=function(e,n,k){function A(K,D,f){var C;if(!K._namespace||K._namespace===D){K.data=n;K.namespace=K._namespace;var E=function(){return!0};K.isDefaultPrevented=
function(){return!1};var U=K.preventDefault;return K.target=f||K.target||K.srcElement,K.preventDefault=function(){return U?function(){K.isDefaultPrevented=E;U.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 n&&(k=n,n=null);var ca=e.split(" ");return this.each(function(){for(var K,D=this,f=0,C=ca.length;f<C;f++){K=
ca[f].split(".");var E=K[0],U=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,U)};G(this,E);this.addEventListener(E,K,!1);u(this,E,{callfunc:K,isCustomEvent:!1,customEventLoop:null,originalCallback:k,namespace:U})}})},l.fn.on=l.fn.bind,l.fn.unbind=function(e,n){var k=e?e.split(" "):[];return this.each(function(){if(this.shoestringData&&this.shoestringData.events)if(k.length)for(var A,
ca,K=0,D=k.length;K<D;K++)if(A=k[K].split("."),ca=A[0],A=0<A.length?A[1]:null,ca)p.call(this,ca,A,n);else{ca=void 0;var f=n;for(ca in this.shoestringData.events)p.call(this,ca,A,f)}else for(K in this.shoestringData.events)p.call(this,K,void 0,void 0)})},l.fn.off=l.fn.unbind,l.fn.one=function(e,n){var k=e.split(" ");return this.each(function(){for(var A,ca={},K=l(this),D=0,f=k.length;D<f;D++)A=k[D],ca[A]=function(C){var E=l(this),U;for(U in ca)E.unbind(U,ca[U]);return n.apply(this,[C].concat(C._args))},
K.bind(A,ca[A])})},l.fn.triggerHandler=function(e,n){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=n,n.unshift(e),k=ca[K].originalCallback.apply(e.target,n))}return k},l.fn.trigger=function(e,n){var k=e.split(" ");return this.each(function(){for(var A,ca,K,D=0,f=k.length;D<f;D++){if(A=k[D].split("."),
ca=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=n;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);
(function(l,h){h(l);var G=h(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 p=l[u].Tau=function(v,F){this.element=v;this.options=F||{};this.$element=h(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"),
10)||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)||p.autoRotateStartDelay;this.mouseMoveBinding=this.rotateEvent.bind(this);this.touchMoveBinding=this.rotateEvent.bind(this);this.path=new p.Path;this.$initial.first().addClass("focused");this.$element.addClass("tau-enhanced");this.$render=h('\x3cdiv data-render class\x3d"render"\x3e\x3c/div\x3e').css("position",
"absolute").css("left","0").css("top","0").prependTo(this.element);!1!==this.options.canvas&&(this.canvas=h("\x3ccanvas/\x3e").prependTo(this.element)[0],this.canvas.getContext&&(this.canvasCtx=this.canvas.getContext("2d"),this.$element.addClass("tau-canvas"),h(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",
left:"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()};p.autoRotateTraversalTime=4500;p.autoRotateStartDelay=100;p.verticalScrollRatio=4;p.maxVelocity=60;p.prototype.createControls=function(){this.$controls=h("\x3cdiv class\x3d'tau-controls'\x3e\x3c/div\x3e");this.options.controls.play&&this.$controls.append(this.controlAnchorMarkup("play"));
this.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){h(v.target).is("a")&&v.preventDefault()});this.$element.append(this.$controls)};p.prototype.controlAnchorMarkup=function(v){var F=this.options.controls.text[v];return"\x3ca href\x3d'#' data-tau-controls\x3d'"+
v+"' title\x3d'"+F+"'\x3e"+F+"\x3c/a\x3e"};p.prototype.onControlDown=function(v){switch(h(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)}};p.prototype.onControlUp=function(v){switch(h(v.target).closest("a").attr("data-tau-controls")){case "left":case "right":this.$element.removeClass("control-left-down");
this.$element.removeClass("control-right-down");this.stopAutoRotate();break;case "play":this.autoInterval?this.stopAutoRotate():this.autoRotate()}};p.prototype.change=function(v){this.goto(this.options.reverse?this.index-v:this.index+v)};p.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():
(this.$current.addClass("focused"),!0)):(this.showLoading(),!1)};p.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)};p.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]);
var 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=h(aa);F.push(aa)}h.each(F,function(x,T){T=h(T);T.bind("load error",function(B){this.imageLoaded(x,B.target,B)}.bind(this));this.$element.append(T);this.$render.append(T.html())}.bind(this));this.$current=this.$images=this.$element.children().filter("img");this.goto(0)}else this.$images=this.$element.children().filter("img"),
this.$images.each(function(x,T){0<h(T).height()?this.imageLoaded(x,T):h(T).bind("load error",function(B){this.imageLoaded(x,B.target,B)}.bind(this))}.bind(this))};p.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=
!0))};p.prototype.markImageLoaded=function(v){v.tauImageLoaded=!0};p.prototype.bind=function(){this.$element.bind("mousedown touchstart",this.track.bind(this))};p.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"))};p.prototype.autoRotateDelay=function(){return(this.options.interval||p.autoRotateTraversalTime)/
this.frames};p.prototype.stopAutoRotate=function(){clearInterval(this.autoInterval);clearInterval(this.autostartTimeout);this.$element.removeClass("spinning");this.autoInterval=void 0;this.$element.trigger("tau.auto-rotate-stop")};p.prototype.track=function(v){h(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)||(G.one("mouseup",
this.release.bind(this)),G.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,G.bind("mousemove",this.mouseMoveBinding),G.bind("touchmove",this.touchMoveBinding))};p.prototype.slow=function(){if(!this.path.isSufficient())return void this.clearSlowInterval();this.rotate({x:this.path.last().x+
this.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())};p.prototype.decelVal=function(){return this.decelTimeStep()/8};p.prototype.clearSlowInterval=function(){clearInterval(this.slowInterval);this.velocity=0;this.slowInterval=void 0};p.prototype.decel=function(){var v,F;this.path.isSufficient()&&(v=this.path.velocity(this.decelTimeStep()),F=0<v?1:0>
v?-1:0,Math.abs(v)>p.maxVelocity&&(v=F*p.maxVelocity),this.velocity=v,this.slowInterval=setInterval(this.slow.bind(this),this.decelTimeStep()))};p.prototype.decelTimeStep=function(){return this.autoRotateDelay()/2};p.prototype.release=function(v){h(v.target).closest(".tau-controls").length||this.tracking&&("touchend"===v.type?this.$element.trigger("tau.touch-tracking-stop"):this.$element.trigger("tau.mouse-tracking-stop"),this.decel(),this.cursorRelease(),G.unbind("mousemove",this.mouseMoveBinding),
G.unbind("touchmove",this.touchMoveBinding),this.tracking=!1)};p.prototype.cursorGrab=function(){G.addClass("grabbing")};p.prototype.cursorRelease=function(){G.removeClass("grabbing")};p.prototype.showLoading=function(){this.$loading.attr("style","display: block")};p.prototype.hideLoading=function(){this.$loading.attr("style","display: none")};p.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||
v.clientY}};p.prototype.rotateEvent=function(v){this.rotate(this.getPoint(v))&&v.preventDefault()};p.prototype.rotate=function(v){var F,W;if(F=v.x-this.downX,W=v.y-this.downY,Math.abs(W)/Math.abs(F)>=p.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);
(function(l,h){h=l.componentNamespace=l.componentNamespace||"FG";l[h]=l[h]||{};Date.now=Date.now||function(){return(new Date).getTime()};l=l[h].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(G){this.prevPrevTime=this.prevTime;this.prevPrevPoint=this.prevPoint;
this.prevTime=Date.now();this.prevPoint=G};l.prototype.velocity=function(G){var u,p;return u=this.distance(),p=this.duration(),u/(p/G)};l.prototype.reset=function(){this.prevPrevPoint=this.prevPrevTime=this.prevTime=this.prevPoint=void 0};l.prototype.last=function(){return this.prevPoint}})(this,jQuery);
(function(l,h){function G(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=h(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)};
u.component=function(F,W,aa){aa||(aa=W,W=!1);var x=function(T,B){var w=u.preflight(this,T,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],T=W[aa].selector?F._$el.find(W[aa].selector):void 0;u.mapEvent(F,
aa,x,T)}};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 T=[];return h(aa).find(W).each(function(B,w){T.push(new F(w,x))}),T}};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,
function(W){return"-"+W.toLowerCase()})};u.options=function(F,W,aa,x){var T={},B=u.extend(!0,{},F);aa&&x&&(T=u.getDataAttrOptions(aa,F,"data-akamai-"+x.toLowerCase()));W=u.extend(!0,u.extend(!0,B,T),W);return aa&&x&&u.setDataAttrOptions(aa,F,W,x),W};u.getDataAttrOptions=function(F,W,aa){var x={},T;for(T in W)if(W.hasOwnProperty(T)){var B=u.camelToKabob(T);B=aa+"-"+B;!/object/.test(typeof W[T])||W[T]instanceof Array?(B=F.attr(B),B=u.coerceAttrVal(B),void 0!==B&&null!==B&&(x[T]=B)):(B=u.getDataAttrOptions(F,
W[T],B),x[T]=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 T in aa)if(aa.hasOwnProperty(T)&&"breakpoints"!==T){var B=u.camelToKabob(T);B=x+"-"+B;/object/.test(typeof aa[T])?u.setDataAttrOptionsPrefix(F,W[T],aa[T],B):(F.attr(B)||void 0!==W[T])&&F.attr(B,aa[T])}};u.coerceAttrVal=function(F){return"true"===F||"false"!==F&&(/^[0-9]+$/.test(F)?parseInt(F,10):/^[0-9]+.[0-9]+$/.test(F)?
parseFloat(F,10):F)};u.extend=function(F,W,aa){var x,T;if(null!=aa)for(x in aa){var B=W[x];var w=aa[x];W!==w&&(F&&w&&u.isPlainObject(w)?(T=B&&u.isPlainObject(B)?B:{},W[x]=u.extend(F,T,w)):void 0!==w&&(W[x]=w))}return W};u.isPlainObject=function(F){return!(!F||"[object Object]"!==Object.prototype.toString.call(F))};var p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;u.trim=function(F){return null==F?"":(F+"").replace(p,"")};u.map=function(F,W){return u.reduce(F,function(aa,x,T){return aa.push(W(x,T)),aa},[])};
u.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 T in F)F.hasOwnProperty(T)&&(x[T]=u.mapJSONVals(F[T],W,T));return x};u.escapeJSONVals=function(F){return u.mapJSONVals(F,function(W){return"string"==typeof W?G(W):W})};var v={"\x26":"\x26amp;",
"\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","/":"\x26#x2F;","`":"\x26#x60;","\x3d":"\x26#x3D;"}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){l.Akamai=l.Akamai||{};l.Akamai.Advanceable={extension:{next:function(G){this.goto(this.getIndex()+1,function(){G&&G();this._trigger("next")}.bind(this))},previous:function(G){this.goto(this.getIndex()-1,function(){G&&G();this._trigger("previous")}.bind(this))}},extend:function(G){if(!G.prototype.goto||!G.prototype.getIndex)throw Error("Advanceable mixin requires `goto` and `getIndex` methods");h.extend(G.prototype,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){l.Akamai=l.Akamai||{};l.Akamai.Sourceable={extension:{_srcArray:function(G,u,p){var v=u.policy||u.thumbnail&&u.thumbnail.policy,F=u.widthParam;return u.widths.map(function(W){var aa=G+"?"+F+"\x3d"+W;return v&&(aa+="\x26impolicy\x3d"+v),p&&(aa+=" "+W+"w"),aa})},_srcset:function(G,u){return this._srcArray(G,u,!0).join(", ")},_fallbackSrc:function(G,u){return this._srcArray(G,u)[0]},_largestSrc:function(G,u){return this._srcArray(G,u).pop()}},extendStatic:function(G){Akamai.Util.extend(!1,
G,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var G=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(p){l.setTimeout(p,1E3/60)}}();l.toss=function(p,v){toss.tossing(p,!1);var F,W,aa=0,x=p.scrollLeft,T=p.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),
W=B.top+T):(W=B.top,B.top-=T);toss.tossing(p,!0);var e=(new Date).getTime(),n=e+B.duration,k=function(){var A=(new Date).getTime();if(toss.tossing(p)){if(A<n)return aa=(A-e)/B.duration*B.duration,p.scrollLeft=B.easing(aa,x,B.left,B.duration),p.scrollTop=B.easing(aa,T,B.top,B.duration),G(k);p.scrollLeft=F;p.scrollTop=W;B.finished&&B.finished();toss.tossing(p,!1)}else B.finished&&B.finished()};return G(k),{top:W,left:F,duration:B.duration,easing:B.easing}};var u={};toss.tossing=function(p,v){return void 0!==
v&&(u[p]=v),u[p]};toss.easing=function(p,v,F,W){return F*((p=p/W-1)*p*p+1)+v};toss.toss=toss})(this);
(function(l,h){h.fn.snapper=function(G){function u(B,w){var e=h(B).find(".snapper_item"),n=h(B).width(),k=[];return e.each(function(A){this.offsetLeft>=w-5&&this.offsetLeft<w+n-5&&k.push(this)}),h(k)}function p(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);h(B).trigger("snapper."+e+"snap",{activeSlides:w})}function F(B,w,e,n){v(B,w);var k=function(){B.scrollLeft=w;h(B).closest(".snapper").removeClass("snapper-looping");
h(B).trigger("snapper.after-goto",{activeSlides:u(B,w)});n&&n();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,T=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"),
z=!1;if(t){try{t=parseInt(t,10)}catch(I){z=!0}if(!t||z)throw Error("Snapper: `data-autoplay` must have an natural number value.");}return t}function w(){var t=y.attr("style");y.attr("style","");var z=da.eq(0).attr("style");da.eq(0).attr("style","");var I=R.width(),X=da.eq(0).width(),V=l.getComputedStyle(da[0],null),P=parseFloat(V.getPropertyValue("margin-left")),S=parseFloat(V.getPropertyValue("margin-right"));V=X+P+S;da.eq(0).attr("style",z);y.attr("style",t);t=X/I*100;z=S/I*100;P=P/I*100;X=t+P+
z;t/=X;z/=X;P/=X;y.css("width",wa/Math.round(I/V)*100+"%");da.css("width",100/wa*t+"%");da.css("margin-left",100/wa*P+"%");da.css("margin-right",100/wa*z+"%")}function e(){if(d)return void(r=!0);var t=R[0].scrollLeft,z=y.width(),I=da[1]?da[1].offsetLeft:p(da.eq(0));I*=Math.round(t/I);z-=R.width();I>z&&(I=z);t!==I&&(T?(v(R[0],I),v(R[0],I,"after")):F(R[0],I));r=!1}function n(){var t=R[0].scrollLeft,z=da.length,I=y.width();void 0===O&&(O=Math.round(t/I*z));b&&clearTimeout(b);b=setTimeout(function(){w();
F(R[0],da[O].offsetLeft,!0);O=b=void 0},50)}function k(t){var z=R[0].scrollLeft,I=y.width(),X=p(R);t?z>=I-X-5?(E.addClass("snapper-looping"),F(R[0],0),t=void 0):t=A():0===z?(E.addClass("snapper-looping"),F(R[0],y.width()-R.width()),t=void 0):t=ca();return t}function A(){F(R[0],R[0].scrollLeft+y.width()/wa,!1,function(){R.trigger("snapper.after-next")})}function ca(){F(R[0],R[0].scrollLeft-y.width()/wa,!1,function(){R.trigger("snapper.after-prev")})}function K(t){var z=(new Date).getTime();if(!(!t&&
H&&200>z-H)){H=z;var I=R[0].scrollLeft,X=p(y);t=p(ra);z=ra;z=z.height()+parseFloat(z.css("margin-bottom"))+parseFloat(z.css("margin-top"));I=Math.round(I/X*wa)||0;X=ra.find("a").removeClass(oa).eq(I).addClass(oa);I=na[0];t=X[0].offsetLeft-t/2;z=X[0].offsetTop-z/2;void 0!==l.toss?l.toss(I,{left:t,top:z}):(I.scrollLeft=t,I.scrollTop=z)}}function D(t){t&&(f=setTimeout(function(){var z=B();z&&(k(!0),D(z))},t))}if(void 0===aa){var f,C=this,E=h(C),U=E.is("[data-snapper-nextprev]"),R=h(".snapper_pane",C),
y=R.find(".snapper_items"),da=y.children();da.addClass("snapper_item");var wa=da.length,ra=h(".snapper_nav",C),oa="snapper_nav_item-selected",ea="false"!==E.attr("data-snapper-deeplinking");if("string"!=typeof G){var na=ra.find(".snapper_nav_inner");if(na.length||(na=h('\x3cdiv class\x3d"snapper_nav_inner"\x3e\x3c/div\x3e').append(ra.children()).appendTo(ra)),R.attr("tabindex","0"),w(),h(C).addClass("snapper-enhanced"),U){U=h('\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');
var L=h(".snapper_nextprev_contain",C);L.length||(L=h(C));U.appendTo(L)}h("a",this).bind("click",function(t){clearTimeout(f);var z=h(this).attr("href");if(h(this).is(".snapper_nextprev_next"))return t.preventDefault(),k(!0);if(h(this).is(".snapper_nextprev_prev"))return t.preventDefault(),k(!1);0===z.indexOf("#")&&1<z.length&&(t.preventDefault(),t=h(z,C),t.length&&(F(R[0],t[0].offsetLeft),ea&&"replaceState"in l.history&&l.history.replaceState({},document.title,z)))});h(this).bind("keydown",function(t){37!==
t.keyCode&&38!==t.keyCode||(clearTimeout(f),t.preventDefault(),t.stopImmediatePropagation(),k(!1));39!==t.keyCode&&40!==t.keyCode||(clearTimeout(f),t.preventDefault(),t.stopImmediatePropagation(),k(!0))});var O,b,r=!1;if(h(l).bind("resize",n),ra.length){var H;K();R.bind("scroll",K)}var N,Z=0;R.bind("scroll",function(t){Z=(new Date).getTime();N=!0});setInterval(function(){N&&Z<=(new Date).getTime()-150&&(e(),K&&K(!0),N=!1)},150);var d=!1;R.bind("touchstart",function(){clearTimeout(f);d=!0});R.bind("touchend",
function(){d=!1;r&&!N&&(e(),N=!1)});D(B())}else{var M=Array.prototype.slice.call(x,1);L=y.width()/wa;switch(G){case "goto":U=M[0]%wa;offset=L*U;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);
(function(l){var h=function(){var G=l.jQuery;G.fn.enlarge=function(u){var p=arguments,v=G(this).data("options")||{button:!0,hoverZoomWithoutClick:!0,delay:300,flyout:{width:200,height:200},placement:"inline",magnification:3};"string"!=typeof u&&(v=G.extend(v,u),G(this).data("options",v));var F,W=this.each(function(){function aa(){"inline"===v.placement?(da=y,H=r,f.data("zoomParent",H),b=O):(da=X.find("img")[0],H=b=X,f.data("zoomParent",H))}function x(){X.css({width:v.flyout.width+"px",height:v.flyout.height+
"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 T(){v.disabled?f.addClass("enlarge_disabled"):f.removeClass("enlarge_disabled")}function B(){N=!f.data("zoomed");f.data("zoomed",N)}function w(V){if(V=
V||function(){},N){if(v.disabled)return V(),!1;var P=new Image;P.className="enlarge_img-loading";P.onload=function(){da.sizes=P.sizes;U&&ra||(da.src=ea);G(P).remove();V()};P.sizes=r[0].offsetWidth*v.magnification+"px";U&&ra?ra&&(P.srcset=ra):P.src=ea;G(P).insertBefore(da)}else da.sizes=oa,U||(da.src=wa),V()}function e(){if(f.data("lockedZoom"))r.add(H).removeClass(Z),f.data("lockedZoom",lockedZoom=!1),b.removeAttr("tabindex");else{if(v.disabled)return!1;r.add(H).addClass(Z);f.data("lockedZoom",lockedZoom=
!0);b.attr("tabindex","0");b[0].focus()}}function n(){if(f.data("zoomed")){if(v.disabled)return!1;"inline"===v.placement&&O.add(r).css({width:r[0].offsetWidth+"px",height:parseFloat(getComputedStyle(r[0]).height)+"px"});H.addClass(na);G(da).css("width",r[0].offsetWidth*v.magnification+"px");G(C).trigger("enlarge.after-zoom-in")}else H.removeClass(na),"inline"===v.placement&&O.add(r).css({width:"",height:""}),G(da).css("width",""),G(C).trigger("enlarge.after-zoom-out")}function k(){function V(){v.placement=
P;aa();G(C).unbind("enlarge.after-zoom-out",V)}var P=v.placement;"inline"!==P&&(G(C).bind("enlarge.after-zoom-out",V),v.placement="inline",aa())}function A(){if(v.disabled&&!f.data("zoomed"))return!1;B();w(function(){e();n();var V=b.width(),P=b.height(),S=da.offsetHeight;b[0].scrollLeft=da.offsetWidth/2-V/2;b[0].scrollTop=S/2-P/2})}function ca(V){"touchstart"===V.type&&(z=!0);z&&"mouseenter"===V.type||"mouseenter"===V.type&&!z&&!I||f.data("lockedZoom")||t||(t=!0,O.addClass(L),M=setTimeout(function(){O.removeClass(L);
B();w(function(){n();d=!0;D(V)})},v.delay))}function K(V){O.removeClass(L);clearTimeout(M);d=!1;!1!==v.hoverZoomWithoutClick||z||(I=!1);z&&"mouseleave"===V.type&&(z=!1)}function D(V){if(d&&(!z||"mousemove"!==V.type)){var P=V.touches?V.touches[0]:V;V.preventDefault();var S=P.clientX-V.target.getBoundingClientRect().left,Q=P.clientY-V.target.getBoundingClientRect().top;if(v.placement.match(/loupe/)){var ha=(V.touches?-v.flyout.width/1.3:-v.flyout.width/2)+"px",ka=(V.touches?-v.flyout.height/1.3:-v.flyout.height/
2)+"px";requestAnimationFrame(function(){X.css({top:Q+"px",left:S+"px","margin-left":ha,"margin-top":ka})})}P=V.target.offsetHeight;var la=da.offsetHeight,ua=b[0].offsetHeight;b[0].scrollLeft=S/V.target.offsetWidth*(da.offsetWidth-b[0].offsetWidth);b[0].scrollTop=Q/P*(la-ua)}}var f=G(this),C=this,E=l.document.createElement("img"),U="srcset"in E&&"sizes"in E,R=G(this).find("a");if(!R.length)throw Error("enlarge: requires an anchor element with `href` for the enlarged image source");var y=f.find("img")[0],
da=y,wa=da.src,ra=G(da).attr("srcset"),oa=G(da).attr("sizes"),ea=R[0].href,na=(R[0].innerText,"enlarge-zoomed"),L="enlarge-delay",O=G(da).closest(".enlarge_contain"),b=O,r=G(da).closest(".enlarge_pane")||f,H=G(this).data("zoomParent")||r;G(this).data("zoomParent",H);var N=f.data("zoomed")||!1;f.data("zoomed",N);f.data("lockedZoom",f.data("lockedZoom")||!1);var Z="enlarge-locked";if(!O.length)throw Error("enlarge: requires an element above the image marked with the class `enlarge_contain`");if("string"!=
typeof u){T();f.data("updateOptions",function(V){v=G.extend(v,V);G(this).data("options",v);aa();x();I=v.hoverZoomWithoutClick;v.image&&v.image.sizes&&(oa=v.image.sizes,w());T();v.disabled&&f.data("zoomed")&&A()});var d,M,t,z,I=v.hoverZoomWithoutClick,X=G('\x3cdiv class\x3d"enlarge_flyout"\x3e\x3c/div\x3e').append(O.clone());X.insertAfter(r);O.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&&
(V.preventDefault(),G(this).trigger("click"))}).bind("click",function(V){V.preventDefault();A()});G(l).bind("resize",function(V){f.data("lockedZoom")&&A()});G(l.document).bind("mouseup",function(V){f.data("lockedZoom")&&!G(V.target).closest(r).length&&A()});G(y).bind("mouseenter touchstart",ca).bind("mousemove touchmove",D).bind("mouseleave touchend",function(V){t=!1;N&&!f.data("lockedZoom")&&(B(),w(function(){n()}));K(V)}).bind("click",function(V){V.preventDefault();z&&"inline"===v.placement&&A();
!1!==v.hoverZoomWithoutClick||z||(I=!I,I?G(this).trigger("mouseenter"):G(this).trigger("mouseleave"))});G(this).bind("keydown keyup",function(V){37===V.keyCode||38===V.keyCode||39===V.keyCode||40===V.keyCode?(V.stopImmediatePropagation(),f.data("lockedZoom")||V.preventDefault()):"keyup"===V.type&&G(this).data("lockedZoom")&&27===V.keyCode&&(A(),R[0].focus(),V.stopImmediatePropagation())});r.bind("scroll",function(){f.data("zoomed")&&(B(),w(function(){f.data("lockedZoom")&&e();n()}))})}else switch(E=
Array.prototype.slice.call(p,1),u){case "in":f.data("zoomed")||A();break;case "out":f.data("zoomed")&&A();break;case "isZoomed":F=f.data("zoomed");break;case "updateOptions":f.data("updateOptions")(E[0])}});return void 0!==F?F:W}};"undefined"!=typeof module?module.exports=h:h()})("undefined"!=typeof global?global:this);
(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);
(function(l,h){var G=Akamai.Util.component("Spin360",function(u,p){this._comp=new Akamai.Tau(u,this._options)});Akamai.Sourceable.extendStatic(G);G._componentEventMapping={"tau.auto-rotate-start":"play","tau.auto-rotate-stop":"pause"};G.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);Akamai.Util.setDataAttrOptions(this._$el,G.defaultOptions,this._options,"Spin360")};G._renderImg=function(u,p){return'\n\t\t\t\x3cimg src\x3d"'+
G._fallbackSrc(u,p.images)+'"\n\t\t\t\tsrcset\x3d"'+G._srcset(u,p.images)+'"\n\t\t\t\tsizes\x3d"'+p.images.sizes+'" /\x3e\n\t\t'};G.render=function(u,p){var v=Akamai.Util.options(G.defaultOptions,p);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 G._renderImg(F,v)}).join("\n")+"\n\t\t\t\x3c/div\x3e\n\t\t")};G.defaultOptions={autoplay:{enabled:!1,delay:1E3},controls:{arrows:!1,play:!1,text:{left:"Rotate Left",
right:"Rotate Right",play:"Spin Object"}},frames:72,images:Akamai.Image.defaultConfig,interval:3E3,reverse:!1,sensitivity:1,template:void 0};G.prototype.goto=function(u,p){this._comp.goto(u);this._trigger("goto");p&&p()};G.prototype.getIndex=function(){return this._comp.index};Akamai.Advanceable.extend(G);G.prototype.next;G.prototype.previous;G.prototype.play=function(){this._comp.autoRotate()};G.prototype.pause=function(){this._comp.stopAutoRotate()};G.prototype.getElement=function(){return this._$el[0]};
G.States={Playing:0,Paused:1};G.prototype.getState=function(){return this._comp.autoInterval?G.States.Playing:G.States.Paused};l.Akamai=l.Akamai||{};l.Akamai.Spin360=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(){function l(G,u){throw Error("Not allowed to instantiate MagnifierImpl");}l.prototype.updateOptions=function(G){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");
};l.prototype.render=function(G,u,p,v,F){throw Error("magnifier render not implemented");};var h="undefined"==typeof exports?window:exports;h.Akamai=h.Akamai||{};h.Akamai.MagnifierImpl=l})();
(function(){function l(G,u){this._$el=$(G);this._$el.enlarge(u)}l.prototype=Object.create(Akamai.MagnifierImpl.prototype);l.prototype.constructor=l;l.prototype.updateOptions=function(G){this._$el.enlarge("updateOptions",G)};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=
function(G,u,p,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"'+p+'"\n\t\t\t\t\t\tsrcset\x3d"'+F+'"\n\t\t\t\t\t\tsizes\x3d"'+G.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"'+G.buttonText+'"\x3e\n\t\t\t\t\t'+G.buttonText+"\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};var h="undefined"==typeof exports?window:exports;h.Akamai=h.Akamai||{};h.Akamai.MagnifierImplEnlarge=
l})();
(function(){function l(u,p){this.element=u;this.handler=p;this.reset()}function h(u,p){this._$el=$(u);this._options=p;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:p.enabled,minZoom:1,maxZoom:p.magnification,animationDuration:p.animationDuration});
u=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=
u.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,p){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}};h.prototype=Object.create(Akamai.MagnifierImpl.prototype);h.prototype.constructor=h;h.prototype.updateOptions=function(u){u=this._container.getBoundingClientRect();
this.scroller.setPosition(u.left+this._container.clientLeft,u.top+this._container.clientTop);this._onResize();this._zoomBy(1/this._options.magnification,!1)};h.prototype.zoomIn=function(){this._zoomBy(this._options.incrementalZoomFactor)};h.prototype.cyclicZoom=function(){this._magnification>=this._options.magnification?this._zoomBy(1/this._options.magnification):this.zoomIn()};h.prototype.zoomOut=function(){this._zoomBy(1/this._options.incrementalZoomFactor)};h.prototype.isMagnified=function(){return 1<
this._magnification};h.prototype.toggleZoom=function(){throw Error("zoom toggle behavior is undefined in scroller mode");};h.render=function(u,p,v,F,W){return"\n\t\t\t\x3cdiv "+p+'\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+
'\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"};h.prototype._zoomBy=function(u,p){var v=this;u=Number(u);void 0===p&&(p=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()},
this._options.animationDuration))};h.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")};h.prototype._renderer=function(){var u,p=document.documentElement.style,v=this;window.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?u="presto":"MozAppearance"in
p?u="gecko":"WebkitAppearance"in p?u="webkit":"string"==typeof navigator.cpuClass&&(u="trident");u={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[u];p=document.createElement("div");var F=u+"Transform";return void 0!==p.style[u+"Perspective"]?function(W,aa,x){v._content.style[F]="translate3d("+-W+"px,"+-aa+"px,0) scale("+x+")"}:void 0!==p.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=
aa?-aa/x+"px":"";v._content.style.zoom=x||""}};h.prototype._onResize=function(){this.scroller.setDimensions(this._container.clientWidth,this._container.clientHeight,this._container.clientWidth,this._container.clientHeight)};h.prototype._installEventHandlers=function(){var u=this,p=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",
function(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|select/i))){u.scroller.doTouchStart(v.touches,v.timeStamp);for(var F=0;F<v.touches.length;F++)p.onDown(v.touches[F]);v.preventDefault()}},!1),document.addEventListener("touchmove",
function(v){u.scroller.doTouchMove(v.touches,v.timeStamp,v.scale);p.onMove()},!1),document.addEventListener("touchend",function(v){u.scroller.doTouchEnd(v.timeStamp);u._onZoom();for(var F=0;F<v.changedTouches.length;F++)p.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++)p.onUp(v.changedTouches[F])},!1)):(u._container.addEventListener("mousedown",function(v){v.target.tagName.match(/input|textarea|select/i)||
(u.scroller.doTouchStart([{pageX:v.pageX,pageY:v.pageY}],v.timeStamp),p.onDown(v))},!1),document.addEventListener("mousemove",function(v){p.isDown&&(u.scroller.doTouchMove([{pageX:v.pageX,pageY:v.pageY}],v.timeStamp),p.onMove())},!1),document.addEventListener("mouseup",function(v){p.isDown&&(u.scroller.doTouchEnd(v.timeStamp),p.onUp(v))},!1))};h.prototype._updateButtonStates=function(){1===this._magnification?($(this._$el).addClass("scroller-zoom-out-max"),$(this._$el).removeClass("scroller-zoom-in-max")):
this._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 G="undefined"==typeof exports?window:exports;G.Akamai=G.Akamai||{};G.Akamai.MagnifierImplScroller=h})();
(function(l,h){var G=Akamai.Util.component("Magnifier",function(u,p){this._options.disabled=!this._options.enabled;this._options.mode===G.MODE_ANIMATED_ZOOM?this._impl=new Akamai.MagnifierImplScroller(u,p):this._impl=new Akamai.MagnifierImplEnlarge(u,p)});G.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,G.defaultOptions,this._options,
"Magnifier");this._impl.updateOptions(this._options)};G._componentEventMapping={"enlarge.after-zoom-in":"in","enlarge.after-zoom-out":"out","scroller.after-zoom-in":"in","scroller.after-zoom-out":"out"};G.MODE_HOVER_ZOOM="hoverzoom";G.MODE_ANIMATED_ZOOM="animatedzoom";G.defaultOptions={mode:G.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",
incrementalZoomFactor:3,animateZoom:!0,animationDuration:250,zoomInBtnText:"Zoom In",zoomOutBtnText:"Zoom Out"};Akamai.Sourceable.extendStatic(G);G.render=function(u,p){p=Akamai.Util.options(G.defaultOptions,p);var v=G._dataAttr,F=G._fallbackSrc(u.url,p.image),W=G._largestSrc(u.url,p.image);u=G._srcset(u.url,p.image);return(p.mode===G.MODE_ANIMATED_ZOOM?Akamai.MagnifierImplScroller:Akamai.MagnifierImplEnlarge).render(p,v,F,W,u,p.image.sizes)};G.prototype.in=function(){this._impl.zoomIn()};G.prototype.out=
function(){this._impl.zoomOut()};G.prototype.isMagnified=function(){return this._impl.isMagnified()};G.prototype.toggle=function(){this._impl.toggleZoom()};l.Akamai=l.Akamai||{};l.Akamai.Magnifier=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){h=Akamai.Util.component("VideoImpl",function(G,u){throw Error("Not allowed to instantiate VideoImpl");});h.render=function(G,u){throw Error("VideoImpl.render not implemented");};l.Akamai=l.Akamai||{};l.Akamai.VideoImpl=h})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){h=Akamai.Util.component("VideoImplPristine",function(G,u){});h.prototype=Object.create(Akamai.VideoImpl.prototype);h.prototype.constructor=h;h.render=function(G,u){u=Akamai.Util.options(Akamai.Video.defaultOptions,u);var p=G.url,v=G.poster||"";G=G.mime?'type\x3d"'+G.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"'+
v+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+p+'" '+G+" /\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=h})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var G=Akamai.Util.component("VideoImplIm",function(u,p){u=Akamai.Util.options(Akamai.Video.defaultOptions,p);G._validateOptions(u)});G.prototype=Object.create(Akamai.VideoImpl.prototype);G.prototype.constructor=G;G._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(p){return isNaN(p)}))throw Error("Akamai.VideoImplIm all sizes must be numbers");};G.render=function(u,p){var v=
Akamai.Util.options(Akamai.Video.defaultOptions,p);G._validateOptions(v);p=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===p.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"'+p+W+"imformat\x3dvp9\x26imwidth\x3d"+
F+'" type\x3d"video/webm" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+p+W+"imformat\x3dh265\x26imwidth\x3d"+F+'" type\x3d"video/mp4; codecs\x3dhevc" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+p+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=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var G=Akamai.Util.component("Video",function(u,p){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?G.States.Paused:G.States.Playing);this._$el.bind("akamai-video-play",function(){this._setState(G.States.Playing)}.bind(this)).bind("akamai-video-pause",
function(){this._setState(G.States.Paused)}.bind(this));this._createPlayButton()});G.MODE_IM="im";G.MODE_PRISTINE="pristine";G._componentEventMapping={play:{to:"play",selector:"video"},pause:{to:"pause",selector:"video"},seeked:{to:"seek",selector:"video"}};G.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);Akamai.Util.setDataAttrOptions(this._$el,G.defaultOptions,this._options,"Video")};G.defaultOptions={autoplay:!1,
controls:!0,loop:!1,muted:!0,mode:G.MODE_PRISTINE,sizes:[854,1280,1920]};G.render=function(u,p){return(p&&p.mode===G.MODE_IM?Akamai.VideoImplIm:Akamai.VideoImplPristine).render(u,p)};G.States={Playing:0,Paused:1};G.prototype._unsupported=function(){return this._unsupportedAPI&&Akamai.Util.log("Video: video API not supported","error"),this._unsupportedAPI};G.prototype.play=function(){this._unsupported()||this._videoElement.play()};G.prototype.pause=function(){this._unsupported()||this._videoElement.pause()};
G.prototype.getState=function(){return this._state};G.prototype._setState=function(u){this._state=u};G.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)};G.prototype.setLoop=function(u){this._videoElement.loop=u};G.prototype.getElement=function(){return this._$el[0]};G.prototype._createPlayButton=function(){var u,p=this._$el[0],v=this._videoElement;this._options.autoplay||(p.insertAdjacentHTML("beforeend",
'\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=
l.Akamai||{};l.Akamai.Video=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var G=Akamai.Util.component("Carousel",function(u,p){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);
this._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(" "),
this.stopSlideshow.bind(this))});G._stopSlideshowEvents=["akamai-magnifier-in","akamai-magnifier-out","akamai-spin360-goto","akamai-video-play","akamai-video-seek"];G.prototype._handleAutoplayables=function(){var u=function(p){return!!h(p.getElement()).closest("["+this.constructor.activeItemAttr+"]").length}.bind(this);this._videos.concat(this._spins).forEach(function(p){u(p)&&p._carouselWasPlaying?p.play():p.getState()==p.constructor.States.Playing?(p._carouselWasPlaying=!0,p.pause()):p._carouselWasPlaying=
!1}.bind(this))};G.counter=0;G.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);var p=function(v,F){v._updateOptions(this._options[F])}.bind(this);Akamai.Util.setDataAttrOptions(this._$el,G.defaultOptions,this._options,"Carousel");this._$el.snapper("updateOptions",u);this._spins.forEach(function(v){p(v,"spin360")});this._magnifiers.forEach(function(v){p(v,"magnifier")});this._videos.forEach(function(v){p(v,"video")});
this._setAspectRatio()};G._componentEventMapping={"snapper.after-snap":"goto","snapper.snap":"snap","snapper.after-next":"next","snapper.after-prev":"previous"};G.defaultOptions={arrows:!0,aspectratio:!1,slideshow:{interval:4E3,autostart:!1},thumbnail:{placement:"bottom",type:"images",policy:void 0,sizes:"300px"},images:Akamai.Image.defaultConfig};G.renderMapping={image:Akamai.Magnifier,spin360:Akamai.Spin360,video:Akamai.Video};G._typeMapping={image:"magnifier"};G._uniqueItemId=function(u,p){return"akamai-carousel-"+
G.counter+"-"+u.type+"-"+p};Akamai.Sourceable.extendStatic(G);G._renderItem=function(u,p,v){var F=G._typeMapping[u.type]||u.type;if(!G.renderMapping[u.type])throw Error("\n\t\t\t\titem type "+u.type+" at index "+p+" must be 'image', 'spin360', or 'video'\n\t\t\t");return'\n\t\t\t\x3cdiv class\x3d"snapper_item" id\x3d"'+G._uniqueItemId(u,p)+'"\x3e\n\t\t\t\t'+G.renderMapping[u.type].render(u,v[F])+"\n\t\t\t\x3c/div\x3e\n\t\t"};G._renderThumbnailAnchor=function(u,p,v,F){var W="",aa=u.alt||"";W="video"===
u.type?u.poster||p.reduce(function(T,B){return T||G._thumbUrl(B)},""):G._thumbUrl(u);F.images.policy=F.thumbnail.policy;p=G._fallbackSrc(W,F.images);W=G._srcset(W,F.images);var x=F.images.sizes;F.thumbnail.policy&&(x=F.thumbnail.sizes);F=[G._dataAttr+'-thumb-type\x3d"'+u.type+'"',"video"!=u.type||u.poster?"":"${Carousel._dataAttr}-thumb-noposter"];return'\n\t\t\t\x3ca href\x3d"#'+G._uniqueItemId(u,v)+'" '+F.join(" ")+'\x3e\n\t\t\t\t\x3cimg src\x3d"'+p+'" srcset\x3d"'+W+'" sizes\x3d"'+x+'" alt\x3d"'+
aa+'" title\x3d"Scroll to '+u.type+" "+v+'" /\x3e\n\t\t\t\x3c/a\x3e\n\t\t'};G._thumbUrl=function(u){return"video"===u.type?u.poster:u.url||u.urls&&u.urls[0]};G._renderThumbnails=function(u,p){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 G._renderThumbnailAnchor(v,u,F,p)}).join("\n")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};G.prototype._setAspectAttributes=function(u){var p=
G._dataAttr+"-aspectratio-orientation";u.height()>u.width()?u.attr(p,"portrait"):u.height()<u.width()?u.attr(p,"landscape"):u.parent().height()>=u.parent().width()?u.attr(p,"landscape"):u.attr(p,"portrait")};G.prototype._setAspectRatio=function(){var u=this._options.aspectratio||0,p=this._$el.find(".snapper_item");p.css("padding-top",u/p.length+"%")};G.prototype._bindAspectAttributes=function(){if(!1!==this._options.aspectratio){var u=(this._options.aspectratio,this),p=this._$el.find(".snapper_item");
p.each(function(){var v=h(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)});p.eq(0).find("img,video").eq(0).bind("load loadedmetadata",function(){u._trigger("first-media-load")})}};G.render=function(u,p){p=p||{};var v=Akamai.Util.options(G.defaultOptions,p);p=[""+G._dataAttr,G._dataAttr+'-item-count\x3d"'+
(u||[]).length+'"','data-snapper-deeplinking\x3d"false"',v.arrows?"data-snapper-nextprev":""];return G.counter++,Akamai.Util.trim("\n\t\t\t\x3cdiv "+p.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 G._renderItem(F,W,v)}).join("\n")+
"\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"+G._renderThumbnails(u,v)+"\n\t\t\t\x3c/div\x3e\n\t\t")};G.prototype.getSpin360s=function(){return this._spins};G.prototype.getMagnifiers=function(){return this._magnifiers};G.prototype.getVideos=function(){return this._videos};G.prototype.goto=function(u,p){this._$el.snapper("goto",u,p)};G._itemAttr=G._dataAttr+"-item";G._activeItemAttr=G._itemAttr+"-active";G.prototype._activeItemAttributes=
function(){var u=this.constructor._itemAttr,p=this.constructor._activeItemAttr;this._$el.find(".snapper_item").attr(u,!0).removeAttr(p).eq(this.getIndex()).attr(p,!0)};G.prototype.getIndex=function(){return this._$el.snapper("getIndex")};Akamai.Advanceable.extend(G);G.prototype.next;G.prototype.previous;G.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),
this._options.slideshow.interval)}.bind(this))};G.prototype.stopSlideshow=function(){clearTimeout(this._slideshowTimer);this._slideshowTimer=void 0;this._trigger("stop-slideshow")};G.prototype.refresh=function(){this._$el.snapper("updateWidths")};l.Akamai=l.Akamai||{};l.Akamai.Carousel=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var G=Akamai.Util.component("Fullscreen",function(u,p){this._options.enabled&&this._init()});G.prototype._init=function(){this._$fullscreen=this._$el;this.addButton();this._fullscreenApiKeys=G._keys();this._options.native?this._useNativeApi=!!this._fullscreenApiKeys:this._useNativeApi=!1;this._fullscreenFallbackEnabled=!1;this._$placeholder=h("\x3cdiv\x3e");this._isFullscreen=!1;this.addEvents()};G.classes={btn:"akamai-fullscreen-btn",btnContainer:"akamai-fullscreen-btncontainer",enterBtn:"akamai-fullscreen-btn-enter",
exitBtn:"akamai-fullscreen-btn-exit",active:"akamai-fullscreen-active",fallback:"akamai-fullscreen-fallback"};G.attr={width:"data-akamai-fullscreen-width",enterBtn:"data-akamai-fullscreen-btn",exitBtn:"data-akamai-fullscreen-exit-btn"};G.defaultOptions={enabled:!1,native:!1};G.prototype.addButton=function(){this._$widthAdjust=this._$fullscreen.children().filter(".focused");this._$widthAdjust.length||(this._$widthAdjust=this._$fullscreen.children().eq(0));null===this._$widthAdjust.attr(G.attr.width)&&
this._$widthAdjust.attr(G.attr.width,"");this._$widthAdjust.find("["+G.attr.enterBtn+"]").length||(this._$buttonContainer=this._$widthAdjust,this._$buttonContainer.addClass(G.classes.btnContainer),this._$buttonContainer.append(this.render()))};G.prototype.addEvents=function(){this._$fullscreen.on("click",function(u){h(u.target).is("["+G.attr.enterBtn+"]")&&(this.enter(),u.preventDefault())}.bind(this));this._$fullscreen.on("click",function(u){h(u.target).is("["+G.attr.exitBtn+"]")&&(this.exit(),u.preventDefault())}.bind(this));
this._useNativeApi&&document.addEventListener(this._fullscreenApiKeys.onchange,function(){document[this._fullscreenApiKeys.element]||this._exit()}.bind(this),!1);h(document).on("keydown",function(u){27===(u.keyCode||u.which)&&this._exit()}.bind(this))};G.prototype.render=function(){return Akamai.Util.trim("\n\t\t\t\x3cbutton "+G.attr.enterBtn+' class\x3d"'+G.classes.btn+" "+G.classes.enterBtn+' icon-fullscreen"\x3eFull Screen\x3c/button\x3e\n\t\t\t\x3cbutton '+G.attr.exitBtn+' class\x3d"'+G.classes.btn+
" "+G.classes.exitBtn+' icon-close-light"\x3eExit Full Screen\x3c/button\x3e\n\t\t')};G._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",
exit:"mozCancelFullScreen",element:"mozFullScreenElement",onchange:"mozfullscreenchange"},{enter:"msRequestFullscreen",exit:"msExitFullscreen",element:"msFullscreenElement",onchange:"MSFullscreenChange"}];G._keys=function(u){var p=G._keyLookup;u=document.body;for(var v=0,F=p.length;v<F;v++)if(p[v].enter in u)return p[v]};G.prototype._maximizePlacement=function(){this._fullscreenFallbackEnabled=!0;this._$fullscreen.addClass(G.classes.fallback);this._$placeholder.insertAfter(this._$fullscreen);this._$fullscreen.appendTo(document.body)};
G.prototype._restorePlacement=function(){this._fullscreenFallbackEnabled&&(this._fullscreenFallbackEnabled=!1,this._$fullscreen.removeClass(G.classes.fallback),this._$fullscreen.insertAfter(this._$placeholder),this._$placeholder.remove())};G.prototype._adjustWidth=function(){this._$fullscreen.css("width","auto !important");var u=this._$fullscreen.width(),p=this._$fullscreen.height();u=u*(this._useNativeApi?window.screen.height:Math.max(document.documentElement.clientHeight,window.innerHeight||0))/
p;u>(this._useNativeApi?window.screen.width:Math.max(document.documentElement.clientWidth,window.innerWidth||0))&&(u="100%");this._$widthAdjust.width(u)};G.prototype._revertWidth=function(){this._$widthAdjust.css("width","")};G.prototype.enter=function(){this._$fullscreen.addClass(G.classes.active);this._useNativeApi?(this._$fullscreen[0][this._fullscreenApiKeys.enter](),this._adjustWidth()):(this._adjustWidth(),this._maximizePlacement());this._isFullscreen=!0;this._trigger("enter")};G.prototype._exit=
function(){this._$fullscreen.removeClass(G.classes.active);this._useNativeApi||this._restorePlacement();this._revertWidth();this._isFullscreen=!1;this._trigger("exit")};G.prototype.exit=function(){this._useNativeApi&&document[this._fullscreenApiKeys.exit]();this._exit()};G.prototype.isFullscreen=function(){return this._isFullscreen};l.Akamai=l.Akamai||{};l.Akamai.Fullscreen=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var G=Akamai.Util.component("Viewer",!0,function(u,p){this._updateSizesOptions(!0);this._onResizeComplete(this._updateSizesOptions.bind(this));this._options.carousel=G._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,
this._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);})});G.prototype._updateSizesOptions=function(u){var p=this._$el.width();p&&0<p&&(p+="px",this._options=Akamai.Util.extend(!0,
this._options,{carousel:{images:{sizes:p}}}));u||this._updateOptions(this._options)};G.prototype._withData=function(u,p){this._options.items.uri?void 0!==this._options.items.uri&&0<this._options.items.uri.length&&h.get(this._options.items.uri,function(v){v="string"==typeof v?JSON.parse(v):v;this._exceedsLimit(v.items,p)||u(v.items)}.bind(this)):this._exceedsLimit(this._options.items.data,p)||u(this._options.items.data)};G.prototype._exceedsLimit=function(u,p){return!!u&&4*JSON.stringify(u).length/
1024>this._options.items.limit&&(p=p||function(){},p("JSON data size exceeds "+this._options.items.limit+" KiB. Limit can be configured with items.limit Akamai.Viewer options."),!0)};G.prototype._setBreakpoints=function(){this._breakpoints=this._reduceBreakpoints(this._options.breakpoints||{});this._fullscreenBreakpoints=this._reduceBreakpoints(this._options.fullscreenBreakpoints||{});this._bindBreakpoints()};G.prototype._reduceBreakpoints=function(u){var p=[],v;for(v in u)if(u.hasOwnProperty(v))try{p.push(parseInt(v,
10))}catch(F){Akamai.Util.log(F,"error")}return p.sort(function(F,W){return W<F}),p};G.prototype._bindBreakpoints=function(){[this._breakpoints,this._fullscreenBreakpoints].forEach(function(u){if(u.length)for(var p=-1;p<u.length;p++)this._bindMatchMedia(u[p],u[p+1])}.bind(this))};G.prototype._onResizeComplete=function(u){var p;window.addEventListener("resize",function(){clearTimeout(p);p=setTimeout(u,500)})};G.prototype._bindMatchMedia=function(u,p){(u=u||0,p=p||1E9,window.matchMedia)&&(p=window.matchMedia("(min-width: "+
u+"px) and (max-width: "+p+"px)"))&&p.addListener&&(this._mediaMatch(p,u,!0),p.addListener(function(v){this._mediaMatch(v,u)}.bind(this)))};G.prototype._mediaMatch=function(u,p,v){u.matches&&(u=this._resolveBreakpointOptions(p),this._updateOptions(u))};G.prototype._getCurrentMinWidth=function(u){for(var p=-1;p<u.length;p++)if(minWidth=u[p]||0,maxWidth=u[p+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};
G.prototype._resolveBreakpointOptions=function(u){var p,v;return this._fullscreen.isFullscreen()?(p=this._fullscreenBreakpoints,v=this._options.fullscreenBreakpoints):(p=this._breakpoints,v=this._options.breakpoints),u||(u=this._getCurrentMinWidth(p)),p.length?p.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};G._extendCarouselOptions=function(u){var p=Akamai.Util.extend(!0,
{},u.carousel||{});return Akamai.Util.extend(!0,p,{magnifier:u.magnifier,spin360:u.spin360,video:u.video,fullscreen:u.fullscreen})};G.prototype._updateOptions=function(u){this._options=Akamai.Util.extend(!0,this._options,u);var p=G._extendCarouselOptions(u);Akamai.Util.setDataAttrOptions(this._$el,G.defaultOptions,u,"Viewer");this._carousels.forEach(function(v){v._updateOptions(p)}.bind(this))};G.prototype._checkJSONUrls=function(u){var p=this._options.items.hostnames;return Akamai.Util.mapJSONVals(u,
function(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"+(p.length?p.join("\n"):"No hostnames")+"\n");return v}.bind(this))};G.prototype._urlHostnameMatch=function(u){var p=document.createElement("a");return p.href=u,p.hostname===window.location.hostname||0<=this._options.items.hostnames.indexOf(p.hostname)};G.defaultOptions={breakpoints:{},items:{data:void 0,
defaultTag:"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};G._tagSplit=function(u,p){u=u.map(function(F){return F.tags=F.tags&&F.tags.length?F.tags:[p.defaultTag],F});p.tags&&(u=p.data.filter(function(F){return F.tags.reduce(function(W,aa){return W||0<=p.tags.indexOf(aa)},
!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[G._firstRenderTag]=u[v],u};G._firstRenderTag="akamai-first-render";G._tagAttr=G._dataAttr+"-tag";G._renderTag=function(u,p){return Akamai.Util.trim("\n\t\t\t\x3cdiv "+G._tagAttr+'\x3d"'+u[0].tags[0]+'"\x3e\n\t\t\t\t'+Akamai.Carousel.render(u,p)+"\n\t\t\t\x3c/div\x3e\n\t\t")};G.render=function(u,p,v){u=G._tagSplit(u,p.items);var F=G._extendCarouselOptions(p);p=
p.items.renderAll?u.map(function(W,aa){return G._renderTag(aa,F)}).join(" "):G._renderTag(u[G._firstRenderTag],F);u="\n\t\t\t\x3cdiv "+G._dataAttr+"\x3e\n\t\t\t\t"+p+"\n\t\t\t\x3c/div\x3e\n\t\t";return v?p:u};G.prototype.getCarousels=function(){return this._carousels};G.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 p=this._$el.find("["+this.constructor._tagAttr+'\x3d"'+u+'"]');if(p.length)this._showViewer(p);
else{p=this._resolveBreakpointOptions();var v=G._extendCarouselOptions(p),F=h(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 T=Akamai.Carousel.createMany(F[0],v);T.forEach(function(B){B.goto(B.getIndex())});this._carousels=this._carousels.concat(T);this._showViewer(F,T)}}.bind(this));this._$el.append(F)}};G.prototype._showViewer=function(u,p){this._$el.find("["+this.constructor._tagAttr+
"]").css("display","none").removeClass("focused");u.css("display","block").addClass("focused");p&&p.map(function(v){v.refresh()});this._fullscreen.addButton();this._trigger("switch-tag")};G.prototype.getTags=function(){if(this._tags)return this._tags;var u=[],p;for(p in this._tagMapping)this._tagMapping.hasOwnProperty(p)&&p!==G._firstRenderTag&&u.push(p);return this._tags=u};l.Akamai=l.Akamai||{};l.Akamai.Viewer=G})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){h.fn.akamaiViewer=function(G){this.each(function(u,p){new Akamai.Viewer(p,G)})}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(){var l=window.sg.common.$q,h=new WeakMap,G=window.sg.common.utils.triggerEvent,u={init:function(p){p.hasAttribute("data-akamai-viewer")||(p=p.querySelector("[data-akamai-viewer]"));if(p){if(!h.has(p)){var v=new Akamai.Viewer(p,{carousel:{arrows:!1},spin360:{reverse:!0},items:{uri:p.getAttribute("data-spin-uri")}});h.set(p,v)}G(window,"resize")}},initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll("[data-akamai-viewer]"))).forEach(function(p){p.hasAttribute("data-init-on-loaded")&&
(u.init(p),p.removeAttribute("data-init-on-loaded"))})}};window.sg.common.image360=u;l.ready(u.initAll)})();"use strict";
function QRCode(l){var h,G,u,p,v=[],F=[],W=Math.max,aa=Math.min,x=Math.abs,T=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],
[-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]],n=[[-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,
21,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(ea,na){for(var L=0,O=8;O--;)L=L<<1^285*(L>>>7)^(na>>>O&1)*ea;return L},ca=function(ea,na){for(var L=[],O=ea.length,b=O;b;)for(var r=ea[O-b--]^L.shift(),H=na.length;H--;)L[H]^=A(na[H],r);return L},K=function(ea){ea=[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==
na*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}][ea];for(var na=p;na--;)for(var L=p;L--;)F[na][L]||(v[na][L]^=ea())},D=function(){for(var ea=function(V,P){P[6]||(V+=p);P.shift();P.push(V)},na=function(V,P,S){return V&&(ea(P,S),P=0),ea(P+p,S),L(S)},L=function(V){var P=V[5],S=0<P&&V[4]==P&&V[3]==3*P&&V[2]==P&&V[1]==P;return(S&&V[6]>=4*P&&V[0]>=P?1:0)+(S&&V[0]>=4*P&&V[6]>=P?1:0)},O=0,b=p*p,r=0,H=p;H--;){for(var N=[0,0,0,0,0,0,0],Z=[0,0,0,0,0,0,0],d=!1,
M=!1,t=0,z=0,I=p;I--;){v[H][I]==d?5==++t?O+=3:5<t&&O++:(ea(t,N),O+=40*L(N),t=1,d=v[H][I]);v[I][H]==M?5==++z?O+=3:5<z&&O++:(ea(z,Z),O+=40*L(Z),z=1,M=v[I][H]);var X=v[H][I];X&&r++;I&&H&&X==v[H][I-1]&&X==v[H-1][I]&&X==v[H-1][I-1]&&(O+=3)}O+=40*na(d,t,N)+40*na(M,z,Z)}return O+=10*(T(x(20*r-10*b)/b)-1)},f=function(ea,na,L){for(;na--;)L.push(ea>>>na&1)},C=function(ea,na){return 0!=(ea>>>na&1)},E=function(ea){if(1>ea||40<ea)throw"Version number out of range";var na=(16*ea+128)*ea+64;if(2<=ea){var L=ea/7|
2;na-=(25*L-10)*L-55;7<=ea&&(na-=36)}return na},U=function(ea,na){for(var L=2;-2<=L;L--)for(var O=2;-2<=O;O--)ra(ea+O,na+L,1!=W(x(O),x(L)))},R=function(ea,na){for(var L=4;-4<=L;L--)for(var O=4;-4<=O;O--){var b=W(x(O),x(L)),r=ea+O,H=na+L;0<=r&&r<p&&0<=H&&H<p&&ra(r,H,2!=b&&4!=b)}},y=function(ea){var na=G[1]<<3|ea,L=na;for(ea=10;ea--;)L=L<<1^1335*(L>>>9);na=21522^(na<<10|L);if(0!=na>>>15)throw"Assertion error";for(ea=0;5>=ea;ea++)ra(8,ea,C(na,ea));ra(8,7,C(na,6));ra(8,8,C(na,7));ra(7,8,C(na,8));for(ea=
9;15>ea;ea++)ra(14-ea,8,C(na,ea));for(ea=0;8>ea;ea++)ra(p-1-ea,8,C(na,ea));for(ea=8;15>ea;ea++)ra(8,p-15+ea,C(na,ea));ra(8,p-8,1)},da=function(){for(var ea=p;ea--;)ra(6,ea,0==ea%2),ra(ea,6,0==ea%2);for(var na=function(){var b=[];if(1<h)for(var r=2+(h/7|0),H=32==h?26:2*T((p-13)/(2*r-2));r--;)b[r]=r*H+6;return b}(),L=ea=na.length;L--;)for(var O=ea;O--;)0==O&&0==L||0==O&&L==ea-1||O==ea-1&&0==L||U(na[O],na[L]);R(3,3);R(p-4,3);R(3,p-4);y(0);(function(){if(!(7>h)){for(var b=h,r=12;r--;)b=b<<1^7973*(b>>>
11);b|=h<<12;if(r=18,0!=b>>>18)throw"Assertion error";for(;r--;){var H=p-11+r%3,N=r/3|0,Z=C(b,r);ra(H,N,Z);ra(N,H,Z)}}})()},wa=function(ea,na){return(E(ea)/8|0)-e[na[0]][ea]*n[na[0]][ea]},ra=function(ea,na,L){v[na][ea]=L?1:0;F[na][ea]=1},oa=function(ea,na,L,O){if(""==ea)ea=[];else if(B.test(ea)){if(!B.test(ea))throw"String contains non-numeric characters";for(var b=[],r=0;r<ea.length;){var H=aa(ea.length-r,3);f(parseInt(ea.substr(r,H),10),3*H+1,b);r+=H}ea=[{modeBits:1,numBitsCharCount:[10,12,14],
numChars:ea.length,bitData:b}]}else if(w.test(ea)){if(!w.test(ea))throw"String contains unencodable characters in alphanumeric mode";r=[];for(b=0;b+2<=ea.length;b+=2)H=45*"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(ea.charAt(b)),H+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(ea.charAt(b+1)),f(H,11,r);ea=[(b<ea.length&&f("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(ea.charAt(b)),6,r),{modeBits:2,numBitsCharCount:[9,11,13],numChars:ea.length,bitData:r})]}else{b=ea;
ea=[];for(r=(b=encodeURI(b),0);r<b.length;r++)"%"!=b.charAt(r)?ea.push(b.charCodeAt(r)):(ea.push(parseInt(b.substr(r+1,2),16)),r+=2);b=[];for(r=0;r<ea.length;r++)f(ea[r],8,b);ea=[{modeBits:4,numBitsCharCount:[8,16,16],numChars:ea.length,bitData:b}]}var N=L;L=O;var Z=H=void 0;if(void 0===H&&(H=1),void 0===Z&&(Z=40),void 0===L&&(L=-1),void 0===N&&(N=!0),!(1<=H&&H<=Z&&40>=Z)||-1>L||7<L)throw"Invalid value";b=[];r=236;for(O=[];;){a:{var d=ea;for(var M=H,t=0,z=d.length;z--;){var I=d[z],X=I.numBitsCharCount[(M+
7)/17|0];if(1<<X<=I.numChars){d=1/0;break a}t+=4+X+I.bitData.length}d=t}if(d<=8*wa(H,na))break;if(H>=Z)throw"Data too long";H++}if(N)for(Z=(N=[k.H,k.Q,k.M]).length;Z--;)d<=8*wa(H,N[Z])&&(na=N[Z]);for(N=0;N<ea.length;N++)for(M=ea[N],f(M.modeBits,4,b),f(M.numChars,M.numBitsCharCount[(H+7)/17|0],b),Z=0,M=M.bitData;Z<M.length;Z++)b.push(M[Z]);if(b.length!=d)throw"Assertion error";ea=8*wa(H,na);if(b.length>ea)throw"Assertion error";if(f(0,aa(4,ea-b.length),b),f(0,(8-b.length%8)%8,b),0!=b.length%8)throw"Assertion error";
for(;b.length<ea;)f(r,8,b),r^=253;for(Z=b.length;Z--;)O[Z>>>3]|=b[Z]<<7-(7&Z);G=na;u=L;for(ea=p=4*(h=H)+17;ea--;)v[ea]=[],F[ea]=[];da();if(O.length!=wa(h,G))throw"Invalid argument";r=n[G[0]][h];ea=e[G[0]][h];L=E(h)/8|0;na=r-L%r;L=L/r|0;b=[];N=1;H=[];H[ea-1]=1;for(Z=0;Z<ea;Z++){for(d=0;d<ea;d++)H[d]=A(H[d],N)^H[d+1];N=A(N,2)}for(Z=N=0;N<r;N++)d=O.slice(Z,Z+L-ea+(N<na?0:1)),Z+=d.length,M=ca(d,H),N<na&&d.push(0),b.push(d.concat(M));O=[];for(N=0;N<b[0].length;N++)for(r=0;r<b.length;r++)(N!=L-ea||r>=na)&&
O.push(b[r][N]);ea=0;na=1;for(b=L=p-1;0<b;b-=2)for(6==b&&--b,r=0>(na=-na)?L:0,H=0;H<p;++H){for(N=b;N>b-2;--N)F[r][N]||(v[r][N]=C(O[ea>>>3],7-(7&ea)),++ea);r+=na}if(0>u)for(O=1E9,ea=8;ea--;)K(ea),y(ea),na=D(),O>na&&(O=na,u=ea),K(ea);K(u);y(u);F=[]};return function(){function ea(X){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(X)}function na(X,V){for(var P in X=document.createElementNS(b,X),V||{})X.setAttribute(P,V[P]);return X}var L,O,b="http://www.w3.org/2000/svg",r="";var H="string"==typeof l?{msg:l}:
l||{};var N=H.pal||["#000"],Z=x(H.dim)||256,d=[1,0,0,1,O=-1<(O=x(H.pad))?O:4,O],M=ea(M=N[0])?M:"#000",t=ea(t=N[1])?t:0;N=H.vrb?0:1;oa(H.msg||"",k[H.ecl]||k.M,0==H.ecb?0:1,H.mtx);var z=p+2*O;for(H=p;H--;){var I=0;for(O=p;O--;)v[H][O]&&(N?(I++,v[H][O-1]||(r+="M"+O+","+H+"h"+I+"v1h-"+I+"v-1z",I=0)):r+="M"+O+","+H+"h1v1h-1v-1z")}return L=na("svg",{viewBox:[0,0,z,z].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"+z+"H"+
z+"V0H0Z"})),L.appendChild(na("path",{transform:"matrix("+d+")",d:r})),L}()}
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,G=window.sg.common.libs,u=h.addEventListener,p=h.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,T,B,w,e,n,k,A,ca,K={},D=null,f=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",
radio:'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"]',
offsetMessage:".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",
addOnLearnMore:".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"]',
leasingLearnmorePopupBtnEl:'[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")};
this.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),
handleClickCounter: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=
function(){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);
this.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=
function(){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",
this.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=
function(){var L=this;this.el.hdd02TooltipContainer=this.el.section.find(this.selector.hdd02TooltipShow);this.el.hdd02TooltipContainer.off("mouseenter").on("mouseenter",function(O){return L.handler.handleHdd02TooltipOpen(O)});this.el.hdd02TooltipContainer.off("focus").on("focus",function(O){return L.handler.handleHdd02TooltipOpen(O)});this.el.hdd02TooltipContainer.off("click").on("click",function(O){return L.handler.handleHdd02TooltipOpen(O)})};E.prototype.handleHdd02TooltipOpen=function(L){L=l(L.currentTarget);
var O=L.closest(this.selector.hdd02TooltipContainer),b=O.find(this.selector.hdd02TooltipHide);this.focusTargetEl&&l(this.focusTargetEl).target[0].matches(this.selector.hdd02TooltipHide)?this.focusTargetEl=L.target[0]:(O.on("mouseleave",this.handler.handleHdd02TooltipClose),O.on("focusout",this.handler.handleHdd02TooltipClose),b.on("click",this.handler.handleHdd02TooltipClose),l(document).on("keydown",this.handler.handleHdd02TooltipClose),L.attr("aria-expanded",!0),O.attr("data-tooltip-show",!0))};
E.prototype.handleHdd02TooltipClose=function(L){var O=L.type,b=l(L.target),r=L.relatedTarget||document.avtiveElement,H=b.closest(this.selector.hdd02TooltipContainer),N=H.find(this.selector.hdd02TooltipShow),Z=H.find(this.selector.hdd02TooltipHide);if("focusout"!==O||!l(r).closest(this.selector.hdd02TooltipContainer).target.length)if("keydown"!==O||L.keyCode===W.ESC)H.off("mouseleave",this.handler.handleHdd02TooltipClose),H.off("focusout",this.handler.handleHdd02TooltipClose),Z.off("click",this.handler.handleHdd02TooltipClose),
l(document).off("keydown",this.handler.handleHdd02TooltipClose),"focusout"!==O&&b.target[0].matches(this.selector.hdd02TooltipHide)&&(this.focusTargetEl=Z.target[0],N.focus()),N.attr("aria-expanded",!1),H.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()+
parseFloat(this.showMessageEl.css("margin-top"))+"px"}))};E.prototype.sameHeight=function(L){var O=window.sg.components.ProductDetailKvNew;if(!(0>=L.target.length||this.stateWide)){var b=Math.round(L.target[0].getBoundingClientRect().top),r=0,H=0;L.css({height:""});L.target.forEach(function(N,Z){var d=N.getBoundingClientRect(),M=Math.round(d.top);l(N).eq(0).css({height:d.height+"px"});0!==Z&&M!==b&&(l(L.target.slice(Z-H,Z)).css({height:r+"px"}),b=M,H=r=0);d.height>r&&(r=d.height);H++});1<H&&l(L.target.slice(L.target.length-
H)).css({height:r+"px"});O&&O.callResize&&O.callResize()}};E.prototype.handleOptionBoxClick=function(L){this.el.section.hasClass("off-change")?this.changeBeforChecked=this.el.section.target[0].querySelector(this.selector.optionItem+" input: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)};
E.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,O,b){O=void 0===
O?!1:O;b=void 0===b?!1:b;var r=window.sg.components.ProductDetailKvNew;L=l(L);var H=L.find(this.selector.radio),N=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"===
M.style.display&&(M=l(M).closest(".hdd02-buying-tool .pd-select-option").target[0],E.instances.has(M)&&E.instances.get(M).hideMessage())});0<N.target.length&&(H.target[0].disabled||"true"===H.attr("aria-disabled")||O)&&(this.showMessageEl=N,Z=this.showAlertMessage(N,H.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&&
r&&r.optionClose&&r.optionClose(this.el.section.target[0].nextElementSibling.querySelector(".option-result__close"))};E.prototype.showAlertMessage=function(L,O){L.find("span").text(O);L.finish().css({display:"block",opacity:0});O=L.height();L.finish().css({height:O+"px"});L.animate({opacity:1},600,function(){L.css({opacity:1,height:"",top:""})});return O+parseFloat(L.css("margin-top"))};E.prototype.showDisclaimer=function(L){L.finish().css({display:"block",opacity:0});var O=L.height();this.careMotion?
(L.css({height:0}),L.animate({opacity:1,height:O+"px"},200,function(){L.css({opacity:1,height:""})})):(L.css({}),L.animate({height:O+"px",opacity:1},200,function(){L.css({opacity:1,height:"",top:""})}));return O+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(O){if("block"===
O.style.display){var b=l(O);L.careMotion?b.finish().animate({opacity:"0",height:"0"},600,function(){O.style.display="";O.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 O=L.currentTarget,b=O.closest(".pd-select-option__tooltip"),r=b.querySelector(".pd-select-option__tooltip__message"),H=b.querySelector(".pd-select-option__tooltip__close"),
N=function(){b.classList.remove("is-active");b.classList.remove("is-click");r.setAttribute("tabindex",-1);document.removeEventListener("click",Z);H.removeEventListener("click",Z)},Z=function(d){("click"===d.type&&!O.contains(d.target)&&!r.contains(d.target)||"click"===d.type&&H.contains(d.target))&&N()};b.classList.contains("is-active")?N():(b.classList.add("is-click"),b.classList.add("is-active"),r.setAttribute("tabindex",0),u(H,"click",Z),u(document,"click",Z));L.stopPropagation()};E.prototype.handleViewMoreToggle=
function(L){var O=this,b=l(L.currentTarget);L=b.find(".pd-select-option__view-more-text");var r=b.attr("data-text-open"),H=b.attr("data-text-close"),N=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"===h.getCurrentDevice()&&(l(N[0]).off("transitionstart").on("transitionstart",function(){b.attr("data-is-animation",!0);var d=document.querySelector("body").scrollLeft,
M=window.scrollY+O.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(N[N.length-1]).off("transitionend").on("transitionend",function(){b.removeAttr("data-is-animation");window.dispatchEvent(new Event("resize"))})),N.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=""})}),
L.text(r),b.attr("aria-expanded",!1)):(l(N[0]).off("transitionstart"),l(N[N.length-1]).off("transitionend"),N.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(H),b.attr("aria-expanded",!0))};E.prototype.handleShowPdPopup=function(L){L=L.currentTarget;var O=l(L).attr(this.selector.dataTargetPopup),b=window.sg.components.ProductDetailKvNew;switch(O){case "mordernType":case "beveledType":b&&
b.openBezelPopup&&b.openBezelPopup(L)}};E.prototype.handleClickCounter=function(L){var O=l(L.currentTarget).closest(".pd-select-option__counter").find(".pd-select-option__counter--number"),b=parseInt(O.target[0].value);b=L.currentTarget.classList.contains("icon-minus")?1<b?--b:1:999>b?++b:999;O.attr("value",b);O.target[0].value=b};E.prototype.handleInputCounterNum=function(L){L.target.setAttribute("value",L.target.value)};E.prototype.handleComboOffer=function(L){var O=l(L.target),b=O.closest(this.selector.offerChild),
r=b.find(".hidden"),H=JSON.parse(r.target[0].dataset.globalText),N=O;"pdOfferToggle"!==L.target.getAttribute("data-js-action")&&(N=O.closest(this.selector.offerChildToogleButton));b.hasClass("open")?(b.removeClass("open"),N.attr("aria-expanded","false"),r.text(H.Expand)):(l(this.selector.offerChild).removeClass("open"),l(this.selector.offerChildToogleButton).attr("aria-expanded","false"),l(this.selector.offerChildToogleButton).find(".hidden").text(H.Expand),b.addClass("open"),N.attr("aria-expanded",
"true"),v.setLazyLoad(),r.text(H.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",
this.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(O){O.addEventListener("change",function(){L.el.section.find(".pd-select-option__color-name span").target[0].innerText=O.closest(".pd-option-selector").querySelector(".pd-option-selector__label .hidden").innerText})})};E.prototype.bindAddOnProductEvent=function(){var L=this.el.section.find(this.selector.addonSummaryWrap);
if(L.target.length){var O=L.find(this.selector.addonSummaryCTA);O.off("click").on("click",function(){L.hasClass("open")?(L.removeClass("open"),O.attr("aria-expanded","false")):(L.addClass("open"),O.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&&
this.el.section.find(this.selector.viewMoreCTA).eq(0).trigger("click")};var U=function(){R(document.querySelector(".hdd02-pdp-header__buying-tool"));y();l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)||new E(L)})},R=function(L){L instanceof HTMLElement&&(T=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"]'),
n=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"))},y=function(){K.tradeInLearnMorePopupBtnEl&&(p(T,"click"),K.tradeInLearnMorePopupBtnEl=!1);K.hubbleCareinfoPopupBtnEl&&(p(B,"click"),K.hubbleCareinfoPopupBtnEl=!1);K.upgradeLearnMorePopupBtnEl&&(p(w,"click"),
K.upgradeLearnMorePopupBtnEl=!1);K.manufacturerInfoPopupBtnEl&&(p(e,"click"),K.manufacturerInfoPopupBtnEl=!1);K.cancelReturnPolicyPopupBtnEl&&(p(n,"click"),K.cancelReturnPolicyPopupBtnEl=!1);K.warrantyPolicyPopupBtnEl&&(p(k,"click"),K.warrantyPolicyPopupBtnEl=!1);K.leasingLearnmorePopupBtnEl&&(p(A,"click"),K.leasingLearnmorePopupBtnEl=!1);R(document.querySelector(".hdd02-pdp-header__buying-tool"));T&&(u(T,"click",function(L){na(L.target.dataset.targetPopup)}),K.tradeInLearnMorePopupBtnEl=!0);B&&(u(B,
"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);n&&(u(n,"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)}),
K.leasingLearnmorePopupBtnEl=!0);ca&&ca.forEach(function(L){u(L,"click",function(O){0===l(O.currentTarget).closest(".pd-delivery-pickup__item").index()&&oa(document.querySelector(".pdd23-edd-popup"),O.currentTarget);O.preventDefault()})})},da=function(){var L=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");h.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&h.removeMobileFocusLoop();null!==D&&(l(D).focus(),D=null);L.hide();L.find(".add-on-popup__close").off("click");
L.off("keydown",wa);L.find(".swiper-button-prev").removeAttr("tabindex");L.find(".swiper-button-next").removeAttr("tabindex");ra();l(window).off("resize",ra)},wa=function(L){var O=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");if(L.keyCode===G.keyCode.TAB_KEY){var b=1<O.find(".swiper-slide").target.length?O.find(".swiper-button-prev").hasClass("swiper-button-disabled")?O.find(".swiper-button-next").target[0]:O.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0]:O.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];
if(!1===L.shiftKey&&O.find(".add-on-popup__close").target[0]===document.activeElement)L.preventDefault(),b.focus();else if(!0===L.shiftKey&&b===document.activeElement||!0===L.shiftKey&&O.target[0]===document.activeElement)L.preventDefault(),O.find(".add-on-popup__close").focus()}},ra=function(){var L=l(".hdd02-pdp-header").find(".add-on__layer-learn-more"),O=document.documentElement.clientHeight,b=L.find(".add-on-popup__inner"),r=L.find(".scrollbar"),H=L.find(".scrollbar__wrap");"block"===L.target[0].style.display?
(F.MOBILE>=h.getViewPort().width?(H=H.target[0].getBoundingClientRect(),O=parseInt(O-H.top),b.css({"min-height":""}),r.css({height:O+"px"})):O<=b.target[0].getBoundingClientRect().height?(b.css({"min-height":O+"px",height:O+"px"}),b=b.target[0].getBoundingClientRect(),O=H.target[0].getBoundingClientRect(),b=parseInt(b.height-O.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:""}),
r.css({height:""}))},oa=function(L,O){O&&O.closest(".pd-delivery-pickup__item")&&(f=O.closest(".pd-delivery-pickup__item"));C=l(L);l(window).off("resize",ea).on("resize",ea)},ea=function(){var L=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__wrap").clientHeight,O=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__contents").scrollHeight;L<O?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")},
na=function(L){window.sg.components[L].showPopup()};E.instances=new WeakMap;window.sg.components.PDbuyingToolNew={init:U,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 O=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];E.instances.has(O)&&E.instances.get(O).showMessage(L,!0)},bindShowPdPopupEvent:y,bindPdTooltipEvent:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)&&
E.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 O=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");L&&(D=L);h.hiddenScroll();O.show();v.setLazyLoad();O.on("keydown",wa);O.find(".add-on-popup__close").off("click").on("click",da);if(L=O.find(".basic-swiper").target[0])aa.slideUpdate(L),aa.slideReInit(L);
1<O.find(".swiper-slide").target.length?L=O.find(".swiper-button-next").target[0]:(O.find(".swiper-button-prev").attr("tabindex","-1"),O.find(".swiper-button-next").attr("tabindex","-1"),L=O.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);L.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&h.setMobileFocusLoop(O.target[0]);ra();l(window).off("resize",ra).on("resize",ra)},toggleVDAddOnViewMoreCTA:function(L){var O=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];
E.instances.has(O)&&E.instances.get(O).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 O=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];E.instances.has(O)&&E.instances.get(O).triggerChange(L)},openPopup:oa,closePopup:function(L){0<l(f).target.length&&(!1===L?(l(f).find(".pd-delivery-pickup__content").show(),l(f).find(".pd-delivery-pickup__content-summarized").hide(),
D=f.querySelector(".pd-delivery-pickup__button .cta")):(l(f).find(".pd-delivery-pickup__content").hide(),l(f).find(".pd-delivery-pickup__content-summarized").show(),D=f.querySelector(".pd-delivery-pickup__edit-button.cta")));l(D).focus();D=null;null!==C&&(C.hide(),C=null)}};l.ready(U)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,G=window.sg.components.PDbuyingToolNew,u={section:".hdd02-pdp-header",productGallery:".hdd02-gallery",PDbuyingToolNew:".hdd02-buying-tool .pd-select-option"},p=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),
window:l(window),html:l("html")};this.class={headerKVFixedClass:"hdd02-pdp-header--fixed",headerKVUxV2Class:"hdd02-pdp-header--ux-v2"};this.isUsEppDiscount=null;this.statePc="desktop"===h.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),
resize:this.resize.bind(this)};p.instances.set(F,this);this.init()};p.prototype.init=function(){this.setElements();this.bindEvents();this.el.section.hasClass(this.class.headerKVUxV2Class)&&(this.pdType="uxv2");this.resize()};p.prototype.reInit=function(){this.init()};p.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=
this.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"))&&!this.el.section.hasClass("hdd02-pdp-header--is-shopapp")&&this.el.section.addClass("hdd02-pdp-header--is-shopapp")};p.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)};p.prototype.scroll=function(){var F=(new Date).getTime();F>this.scrollTimer&&(this.scrollTimer=F+500,this.galleryRect.mode=null,this.setGalleryRect());this.setGalleryTop()};p.prototype.resize=function(){var F=this;this.statePc="desktop"===h.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()},
400)};p.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 T=x.target[0].lastElementChild;["paddingBottom","marginBottom"].forEach(function(e){aa+=parseInt(window.getComputedStyle(T)[e])})}x=
l(".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=
F+this.galleryRect.attach-W};p.prototype.scrollGalleryOff=function(F){F?(this.setGalleryTop(0),this.scrollOffGallery=F):(this.scrollOffGallery=F,this.resize())};p.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(),
this.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),
this.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),
this.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")))}};p.prototype.optionClose=function(F){var W=this,aa=l(F).closest(this.selector.option);if("none"!==aa.target[0].style.display){F=
l(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()})}};p.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",
".layer-popup__close",!1);h.setMobileFocusLoop(this.popupData.popup.target[0]);h.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])};p.prototype.closeBezelPopup=function(){this.popupData.popup.css({display:""});
this.popupData.popup.offLayerFocus();h.removeMobileFocusLoop();h.visibleScroll();this.popupData.btn.focus();this.popupData={btn:null,popup:null}};p.callResize=function(){l(u.ProductDetailKvNew).target.forEach(function(F){p.instances.has(F)&&p.instances.get(F).resize()})};var v=function(){l(u.section).target.forEach(function(F){p.instances.has(F)||new p(F)})};p.instances=new WeakMap;window.sg.components.ProductDetailKvNew={init:v,reInit:function(){l(u.section).target.forEach(function(F){p.instances.has(F)?
p.instances.get(F).reInit():new p(F)});G&&G.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){p.instances.has(F)&&p.instances.get(F).resize()})},showMessage:function(F){G&&G.showMessage(F,!0)},productFixed:function(){var F=l(u.section);p.addClass("product-detail-kv--fixed");
p.instances.get(F.target[0]).setGalleryTop();l(u.productGallery).css({position:"fixed",top:0})},scrollGalleryOff:function(F,W){p.instances.has(F)&&p.instances.get(F).scrollGalleryOff(W)},optionClose:function(F){var W=F&&l(F).closest(u.section).target[0];p.instances.has(W)&&p.instances.get(W).optionClose(F)},triggerChange:function(F){G&&G.triggerChange(F)},scrollGo:function(){},init360:function(){window.sg.common.image360.initAll()},openBezelPopup:function(F){var W=l(F).closest(u.section).target[0];
p.instances.has(W)&&p.instances.get(W).openBezelPopup(F)}};l.load(v)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,G=window.sg.common.swiperManager,u=l(window),p=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},T="undefined"!==typeof digitalData&&digitalData&&digitalData.page&&digitalData.page.pageInfo&&digitalData.page.pageInfo.pageTrack||"",B=function(K){this.el={popup:l(K),
window: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",
popupImage:".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"]',
moveDownBtn:'[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),
handleGalleryImagePointerUp:this.handleGalleryImagePointerUp.bind(this),handleViewMoreClick:this.handleViewMoreClick.bind(this),handleChangeViewTargetClick:this.handleChangeViewTargetClick.bind(this)};this.isRtl=h.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=
this.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);
this.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);
this.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);
this.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("click",this.handler.handleViewMoreClick).on("click",this.handler.handleViewMoreClick);this.el.changeViewTargetList.off("click",
this.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)};
B.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");h.setMobileFocusLoop(this.el.popup.target[0]);var f=(K=this.el.title.target[0])||h.getFirstFocusableEl(this.el.popup.target[0]);K&&K.setAttribute("tabindex","-1");setTimeout(function(){f&&f.focus()},20)};B.prototype.close=function(){this.isDragging||(this.el.popup.offLayerFocus(),this.stopVideo(),this.el.popup.removeClass("hdd02-popup-open"),
h.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 f=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");
this.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",
f);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();
this.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),
this.activeVideoContent=this.el.videoContentList.eq(D),this.activeVideoThumbnail.addClass("hdd02-gallery__popup-video-item--on"),this.activeVideoThumbnail.find("a, button").attr("title",f),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()}};
B.prototype.setScrollbar=function(){this.el.scrollbar.target.forEach(function(K){p.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=
function(){function K(){D.classList.contains("control-hide")&&D.classList.remove(f)}var D=this.el.controlListContainer.target[1],f=this.classes.controlListContainerShow;D&&(this.currentZoomStep<=this.maxZoomStep&&this.currentZoomStep>this.minZoomStep?(D.classList.add(f),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?
(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=
""};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&&
(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 f=this.el.contentContainer.target[0].getBoundingClientRect(),
C=this.currentZoomImg.getBoundingClientRect(),E=Math.abs(parseInt(C.width-f.width));f=Math.abs(parseInt(C.height-f.height));0!==D&&(C=D+parseInt(this.currentZoomImg.style.marginTop||0,0),C=0>D?Math.max(-f,C):Math.min(f,C),C>-f&&C<f&&(this.el.moveUpBtn.removeAttr("disabled"),this.el.moveDownBtn.removeAttr("disabled")),C===f&&(this.el.moveUpBtn.attr("disabled",!0),!this.isDragging&&this.el.moveDownBtn.focus()),C===-f&&(this.el.moveDownBtn.attr("disabled",!0),!this.isDragging&&this.el.moveUpBtn.focus()),
this.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||
0,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);
break;case "up":case "down":case "left":case "right":this.handleImageMove(K)}};B.prototype.handleGalleryImagePointerDown=function(K){var D=K.clientX||K.touches[0].clientX,f=K.clientY||K.touches[0].clientY;this.isDragging=!0;this.dragZoomXY=[D,f];this.clickZoomXY=[D,f];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",
this.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&&
"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",
this.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===
this.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,
50);break;case "down":this.moveZoomImg(0,-50);break;case "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 f=this.el.thumbnailImageItemList.target.findIndex(function(C){return C===D.target[0]});this.changeCurrentView(this.popupType.image,f)}K.hasClass("hdd02-gallery__popup-video-link")&&(f=this.el.thumbnailVideoItemList.target.findIndex(function(C){return C===
D.target[0]}),this.changeCurrentView(this.popupType.video,f))};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()},
50)):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)};
w.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");h.setFocusFirstFocusableEl(this.el.popup.target[0])};
w.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)};
e.prototype.bindEvents=function(){};e.prototype.open=function(){this.isQRtype&&(this.el.popup.addClass("hdd02-popup-open"),h.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:"+
this.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||
this.el.arQrCode.append(QRCode({msg:K}))};var n=function(K,D){this.el={popup:l(K),popupCta:D};this.isViewerInit=!1;K&&n.instances.set(K,this);this.init()};n.prototype.init=function(){this.setElements();this.bindEvents()};n.prototype.setElements=function(){this.el.image360=this.el.popup.find(".image-360")};n.prototype.bindEvents=function(){};n.prototype.open=function(){this.isViewerInit||(aa.init(this.el.image360.target[0]),this.isViewerInit=!0);this.el.popup.addClass("hdd02-popup-open");h.setFocusFirstFocusableEl(this.el.popup.target[0])};
n.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");h.setFocusFirstFocusableEl(this.el.popup.target[0]);
if(null===document.querySelector("script[data-js360]")){var D=document.getElementsByTagName("head")[0],f=document.createElement("link");f.type="text/css";f.rel="stylesheet";f.href="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/css/popup360.css";D.appendChild(f);f=document.createElement("script");f.dataset.js360=!0;D.appendChild(f);f.onload=function(){if(window.imgSeqViewer){var C=new imgSeqViewer("#seqContainer");C.init();var E=spinImageNewData[0],U=spinImageNewData[1],
R=[],y=[];if(null!=E&&null!=E.unfoldSpinImage)for(var da=0;da<E.unfoldSpinImage.length;da++)R.push(E.unfoldSpinImage[da].largeImgPath);if(null!=U&&null!=U.foldSpinImage)for(E=0;E<U.foldSpinImage.length;E++)y.push(U.foldSpinImage[E].largeImgPath);0!==R.length&&0!==y.length||l(".btn-changetype").hide();0===R.length?window.componentsGallery360(C,y):window.componentsGallery360(C,R,y)}else K.el.popup.find(".hdd02-gallery__popup-close").trigger("click")};f.src="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/js/popupnew360.js"}else window.imgSeqViewer?
W(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",
moVideoThumbnailSwiperContainer:".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",
openPcGalleryPopupTarget:'[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=h.getCurrentDevice();this.moVideoThumbnailSwiper=
this.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),
handleViewIn360Click: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&&
this.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);
this.el.layerPopupContents=this.el.section.find(this.selector.layerPopupContents);this.el.pcGalleryPopup=this.el.section.find(this.selector.pcGalleryPopup);this.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=
this.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);
this.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():
K.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){n.instances.has(D)?n.instances.get(D).init():K.popup360=new n(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",
this.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);
this.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",
this.handler.handleViewIn360NewClick).on("click",this.handler.handleViewIn360NewClick);this.swiper=G.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=G.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0])};A.prototype.setSwiperStatus=function(){this.swiper=G.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=G.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]);this.moVideoThumbnailSwiper||(this.el.moVideoThumbnailSwiperContainer.target.forEach(function(K){G.slideInit(K)}),
this.moVideoThumbnailSwiper=G.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]));this.setTagging();this.swiper?this.initSwiper():(this.initSwiper(),this.swiper=G.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")))};
A.prototype.setTagging=function(){var K=this.el.hdd02PdpHeader.hasClass(this.classes.ux2)?"hdd02_gallery-"+T+"-swipe-indication":"hdd02_pdp header-"+T+"-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",
"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){G.slideReInit(D);G.slideInitEnd(D,function(){K.swiper=G.getSwiper(D);K.updateTagging();K.swiper.on("slideChangeTransitionEnd",function(){K.updateTagging()})})})};A.prototype.setImageItemList=function(K,D){var f=this;this.el.pcThumbnailItemList.removeClass("hdd02-gallery__thumbnail-item--on");
this.el.imageItemList.target.forEach(function(C,E){C=l(C);K||E===D?(C.show(),l(f.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=
function(K){if("mobile"!==this.deviceSize){var D=l(K),f=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,f=this.el.pcThumbnailItemList.target.findIndex(function(C){return C===D.parent().target[0]}),this.setImageItemList(!1,f));this.closeActivePopup();this.pcGalleryPopup.open(K,
f);this.currentActivePopup=this.pcGalleryPopup;this.el.hdd02PdpHeader.addClass("hdd02-pdp-header--gallery-popup-active");h.hiddenScroll()}};A.prototype.closeGalleryPopup=function(){this.closeActivePopup();this.el.hdd02PdpHeader.removeClass("hdd02-pdp-header--gallery-popup-active");h.visibleScroll()};A.prototype.openMoVideoPopupTarget=function(K){var D=l(K);K=this.el.moVideoThumbnailItemList.target.findIndex(function(f){return f===D.parent().target[0]});this.el.MoVideoLink.removeClass("hdd02-gallery__video-link--on");
D.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();
this.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");h.hiddenScroll()};A.prototype.handleMoVideoPopupOpenClick=function(K){this.focusTargetEl=K=K.currentTarget;this.openMoVideoPopupTarget(K)};A.prototype.handleLayerPopupCloseClick=
function(){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,
D=h.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(f){l(f).find(".hdd02-gallery__image").attr("tabindex",-1)})):setTimeout(function(){K.setImageItemList(!1,
0)},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;n.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():
new A(K)})},openNew360Popup:function(){l(".hdd02-gallery").target.forEach(function(K){A.instances.has(K)&&A.instances.get(K).handleViewIn360NewClick()})}}})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,G=window.sg.common.swiperManager,u=window.sg.common.scrollbar,p=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),
handleClickDim: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");
p.setLazyLoadManually(this.el.section.target[0]);this.popupData.popup.setLayerFocus(".layer-popup__inner",".layer-popup__close");h.setMobileFocusLoop(this.popupData.popup.target[0]);h.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])||
h.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();h.removeMobileFocusLoop();h.visibleScroll();this.el.window.off("click",this.handler.handleClickDim);this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null);setTimeout(function(){W.popupData.btn.focus();
W.popupData={btn:null,popup:null}},20)};v.prototype.setSwiperStatus=function(W){(this.swiper=G.getSwiper(W.target[0]))?this.initSwiper(W):(this.initSwiper(W),this.swiper=G.getSwiper(W.target[0]))};v.prototype.initSwiper=function(W){var aa=this;W.target.forEach(function(x){G.slideReInit(x);G.slideInitEnd(x,function(){aa.swiper=G.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,
aa=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=h.getCurrentDevice();clearTimeout(this.resizeTimer);this.resizeTimer=null;this.resizeTimer=setTimeout(function(){W.setScrollbar(W.el.dimensionsPopup.find(".scrollbar"));
W.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)?
v.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()})}};
l.load(F)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.tab,G=window.sg.common.swiperManager,u=window.sg.common.constants.BREAKPOINTS,p=window.sg.common.utils,v=window.sg.common.scrollbar,F=window.sg.common.OptionSelector,W=window.sg.common.libs,aa=p.setMobileFocusLoop,x=p.removeMobileFocusLoop,T=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),
resizeSwiper:this.resizeSwiper.bind(this),slideChange:this.slideChange.bind(this),clickViewIcon:this.clickViewIcon.bind(this),checkedCheckbox:this.checkedCheckbox.bind(this),clickSelect:function(n){e.clickSelect(n.currentTarget)},clickMoreBtn:this.clickMoreBtn.bind(this),clickTab:function(){var n=e.el.tabBtn.target.indexOf(event.currentTarget);e.el.swiper.swiper.slideTo(n)},clickFooterBtn:function(){e.el.swiper.swiper.slideNext()},swiperTouchStart:function(n){e.isPc?e.el.swiper.swiper.allowTouchMove=
!1:0===l(n.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);
e.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);e.el.window.off("mouseup",e.handler.optionTouchUp);
e.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)};T.instances.set(w,this);this.init()};T.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];
this.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=
this.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"]');
this.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)");[].concat($jscomp.arrayFromIterable(e)).forEach(function(n){n.classList.add("is-show")});
l(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-
2:null};T.prototype.init=function(){this.setElements();void 0===this.el.swiper.swiper&&G.slideReInit(this.el.swiper);this.resize();this.bindEvents()};T.prototype.reInit=function(){this.setElements();window.sg.common.lazyLoad.setLazyLoad();void 0===this.el.swiper.swiper?G.slideReInit(this.el.swiper):G.slideUpdate(this.el.swiper);void 0===this.el.StepSwiper.swiper?G.slideReInit(this.el.StepSwiper):G.slideUpdate(this.el.StepSwiper);this.resize();this.bindEvents()};T.prototype.slideChangeTransitionStart=
function(){this.el.StepSwiperSlide.addClass("changing");this.el.StepSwiperSlide.removeClass("changed");u.MOBILE<p.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"))};
T.prototype.slideChangeTransitionEnd=function(){u.MOBILE<p.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")):
(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"));this.setAccessbility()};T.prototype.slideResetTransitionStart=function(){u.MOBILE>=p.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"))};
T.prototype.setSlideAria=function(w,e){w=l(w);!0===e?w.attr("aria-hidden",!0):w.attr("aria-hidden",!1)};T.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)})};T.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",
this.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);
void 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();requestAnimationFrame(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===
l(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",
this.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",
this.handler.slideResetTransitionStart),this.setAccessbility());this.el.checkbox.off("change",this.handler.checkedCheckbox).on("change",this.handler.checkedCheckbox)};T.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,n=this.el.component.find(".cta--step");w===e?(n.removeClass("cta--disabled"),n.removeAttr("disabled")):(n.addClass("cta--disabled"),
n.attr("disabled","true"))};T.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")};T.prototype.clickMoreBtn=function(w){w=l(w.currentTarget).closest(".pdd16-step-buying__view-more");var e=w.closest(".swiper-slide"),n=e.find(".pdd16-step-buying__card");e=e.find(".pdd16-step-buying__card:not(.is-show)");w.css({display:"none"});n.addClass("is-show");
this.setMaxHeight();e.find(".option-selector").target.forEach(function(k){F.reInit(l(k))});this.resizeSwiper();n.eq(5).find(".pdd16-step-buying__tooltip").css({right:"",left:""});n.eq(n.target.length-1).find(".pdd16-step-buying__tooltip").css({right:0,left:"auto"})};T.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"),
l(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))};T.prototype.slideChange=function(){var w=this;this.tabActive();requestAnimationFrame(function(){w.setMaxHeight()})};T.prototype.clickViewIcon=function(w){var e=l(w.currentTarget),n=e.closest(".pdd16-step-buying__list-type").find("a"),k=e.closest(".swiper-slide");
n.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",
1));k.find(".option-selector").target.forEach(function(A){F.reInit(l(A))});this.setMaxHeight();this.resizeSwiper()};T.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)).forEach(function(w){v.resize(w)});this.el.swiper.swiper.emit("resize")};T.prototype.sameHeightPc=function(w,e,n){n=void 0===n?!1:n;var k=0;w=w.find(e);w.target.forEach(function(A){A=
A.getBoundingClientRect().height;k<A&&(k=A)});if(n)return k;w.css({height:k+"px"})};T.prototype.optionOneLinePC=function(w){var e=w.find(".pdd16-step-buying__card.is-show"),n=0;e.target.forEach(function(k){k=k.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;n<k&&(n=k)});2>n&&(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"))};
T.prototype.optionOneLineMo=function(w,e){e=void 0===e?null:e;if(null===e){var n=w.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;w=l(w)}else{n=w.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");var k=e.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");n=Math.max(n.length,k.length);w=l([w,e])}2>n&&(0===w.find(".option-selector__wrap--color-chip").target.length?w.find(".option-selector").addClass("none-color-chip"):
w.find(".option-selector").addClass("single-chip"))};T.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 n=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:""});
n.find(".none-color-chip").removeClass("none-color-chip");n.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"),n=this.sameHeightPc(e,".pdd16-step-buying__card",
!0),e.find(".pdd16-step-buying__view-more").css({height:n+"px"}),e.find(".pdd16-step-buying__card").css({height:n+"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 f=
K.querySelector(D),C=A.querySelector(D);".pdd16-step-buying__card"===D&&(f=K,C=A);null!==f&&null!==C&&(D=Math.max(f.getBoundingClientRect().height,C.getBoundingClientRect().height),f.style.height=D+"px",C.style.height=D+"px")})}});0===(k.target.length-1)%2&&this.optionOneLineMo(k.target[k.target.length-1],null)}};T.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):
this.el.footerBtn.text(e[w.activeIndex].dataset.buttonText);h.selectTab(this.el.tab.target[0],w.activeIndex)};T.prototype.resize=function(){var w=this;this.winRect=p.getViewPort();this.el.dummyHeaer.css({height:this.el.component.find(".pdd16-step-buying__header").offset().height+"px"});var e=u.MOBILE<p.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,
this.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);
this.resizeTimer=null;this.resizeTimer=setTimeout(function(){w.resizeSwiper()},200)};T.prototype.offFix=function(){this.el.footer.removeClass("pdd16-step-buying__footer--fixed");this.el.component.removeClass("pdd16-step-buying--floating")};T.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")||
this.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")))};T.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")?
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];!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]===
document.activeElement&&(w.preventDefault(),this.el.closePopupCta.focus())}};T.prototype.activePopup=function(w){w&&(this.activeCta=l(w));p.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();this.activeTarget.on("keydown",this.handler.focusLock);G.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?w=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"),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()};T.prototype.closePopup=function(){p.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&x();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");this.popupResize(!1);this.activeTarget=this.activeCta=null};T.prototype.popupResize=function(w){w=void 0===w?!0:w;var e=document.documentElement.clientHeight,n=this.activeTarget.find(".layer-popup__inner"),k=this.activeTarget.find(".scrollbar"),
A=this.activeTarget.find(".scrollbar__wrap");!0===w?(this.isPc?e<=n.target[0].getBoundingClientRect().height?(n.css({"min-height":e+"px",height:e+"px"}),n=n.target[0].getBoundingClientRect(),e=A.target[0].getBoundingClientRect(),n=parseInt(n.height-e.top),k.css({height:n+"px"})):(n.css({"min-height":"",height:""}),k.css({height:""})):(A=A.target[0].getBoundingClientRect(),e=parseInt(e-A.top),n.css({"min-height":""}),k.css({height:e+"px"})),setTimeout(function(){v.resize(k.target[0])},300)):(n.css({"min-height":"",
height:""}),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(n){h.init(n)});T.instances.has(e)?T.instances.get(e).reInit():new T(e);l(e).find(".scrollbar").target.forEach(function(n){v.reInit(n)})});w.visibleScrollTop&&(p.visibleScroll(),window.scrollTo(0,0))};T.instances=new WeakMap;l.ready(B);window.sg.components.stepbuying={init:B,clearAll:function(w){T.instances.has(w)&&T.instances.get(w).clearAll()},
cardSelect:function(w,e){e=void 0===e?null:e;var n=l(w).closest(".pdd16-step-buying").target[0];T.instances.has(n)&&T.instances.get(n).clickSelect(w,e)},activePopup:function(w){l(".pdd16-step-buying").target.forEach(function(e){T.instances.has(e)&&T.instances.get(e).activePopup(w)})},closePopup:function(){l(".pdd16-step-buying").target.forEach(function(w){T.instances.has(w)&&T.instances.get(w).closePopup()})}}})();
(function(){var l=window.sg.common.$q,h=window.sg.common.swiperManager,G=window.sg.common.utils,u=window.sg.common.scrollbar,p=window.sg.common.OptionSelector,v=window.sg.common.libs,F=G.setMobileFocusLoop,W=G.removeMobileFocusLoop,aa=function(T){var B=this;this.el={window:l(window),component:l(T),classes:{bottomExpandedClass:"pdd16-step-buying-v2__bottom--expanded",bottomTopClass:"pdd16-step-buying-v2__bottom--top",bottomFixedClass:"pdd16-step-buying-v2__bottom--fixed"},selector:{categoryContents:".pdd16-step-buying-v2__category-contents",
cardDescViewMoreContainer:'[data-js-action\x3d"cardDescViewMoreContainer"]',cardDescViewMoreText:'[data-js-action\x3d"cardDescViewMoreText"]',cardDescViewMoreButton:'[data-js-action\x3d"cardDescViewMoreButton"]',cardDescViewMoreButtonText:'[data-js-action\x3d"cardDescViewMoreButtonText"]',cardDescExpanded:"data-card-desc-expanded"}};this.bottomPriceTopRect=this.activeCta=this.activeTarget=this.currentDevice=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),handleCardDescViewMoreToggle:this.handleCardDescViewMoreToggle.bind(this)};aa.instances.set(T,this);this.init()};aa.prototype.setElements=function(){this.el.categoryContents=this.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"]');this.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(T){T=l(T);window.sg.common.lazyLoad.setLazyLoad();T.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);p.reInit(T);if(T.find(".option-selector__wrap--capacity").target){var B=T.find(".option-selector__wrap--capacity");1===B.find(".option-selector__swiper-slide").target.length&&B.addClass("option-selector__wrap--capacity-single")}this.setMaxHeight(T.closest(".pdd16-step-buying-v2__category-contents").target)};aa.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(T){p.reInit(l(T))});this.el.component.find(".option-selector__wrap--capacity").target.forEach(function(T){1===l(T).find(".option-selector__swiper-slide").target.length&&l(T).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);this.setCardDescViewMore()};aa.prototype.checkedCheckbox=function(){var T=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,w=this.el.component.find(".pdd16-step-buying-v2__bottom-price__cta .cta");T===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(T,B){T=void 0===T?null:T;B=void 0===B?null:B;null!==T&&(null===B&&(B=!T.classList.contains("cta--on")),B?(T.classList.add("cta--on"),l(T).find("span").innerHTML(T.dataset.textSelected)):
(T.classList.remove("cta--on"),l(T).find("span").innerHTML(T.dataset.text)));0<this.el.selectNum.target.length&&(T=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(T))};aa.prototype.handleSwiperTouchStart=function(T){l(T.currentTarget).find(".pdd16-step-buying-v2__card-list").addClass("swiper-duration--none")};aa.prototype.handleTransitionEnd=function(T){l(T.wrapperEl).removeClass("swiper-duration--none")};
aa.prototype.setMaxHeight=function(T){var B=l(T).target[0];T="pdd16-step-buying-v2__card-header-badge pdd16-step-buying-v2__card-text pdd16-step-buying-v2__card-desc 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(" ");T.forEach(function(w){return l(B).find("."+w).css({height:""})});T.forEach(function(w){w=l(B).find("."+w);var e=w.target.map(function(n){return l(n).outerHeight()}).reduce(function(n,
k){return Math.max(n,k)},0);w.target.forEach(function(n){l(n).css({height:e+"px"})});0>=e&&w.addClass("no-data")})};aa.prototype.resize=function(){this.scroll();this.currentDevice!==G.getCurrentDevice()&&this.setCardDescViewMore();this.initSwiper();null!==this.activeTarget&&this.popupResize();this.currentDevice=G.getCurrentDevice()};aa.prototype.initSwiper=function(){var T=this;this.el.categoryContents.target.forEach(function(B){h.slideReInit(B);void 0!==B.swiper&&null!==B.swiper&&(B.swiper.off("touchStart",
T.handler.handleSwiperTouchStart).on("touchStart",T.handler.handleSwiperTouchStart),B.swiper.off("transitionEnd",function(){return T.handleTransitionEnd(B.swiper)}).on("transitionEnd",function(){return T.handler.handleTransitionEnd(B.swiper)}));T.setMaxHeight(B)})};aa.prototype.scroll=function(){var T=window.pageYOffset||document.documentElement.scrollTop;if(this.el.bottomWrap.target[0])if(0<T?this.el.bottomWrap.removeClass(this.el.classes.bottomTopClass):this.el.bottomWrap.addClass(this.el.classes.bottomTopClass),
this.bottomPriceTopRect=this.el.bottomWrap.target[0].getBoundingClientRect().bottom,this.bottomPriceTopRect<window.innerHeight){if(T>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 T=window.pageYOffset||document.documentElement.scrollTop,T>this.scrollEnd?this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass):(this.el.bottomWrap.addClass(this.el.classes.bottomFixedClass),
this.el.bottomWrap.addClass(this.el.classes.bottomExpandedClass)),this.scrollEnd=T};aa.prototype.focusLock=function(T){if(T.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];
!1===T.shiftKey&&this.el.closePopupCta.target[0]===document.activeElement?(T.preventDefault(),B.focus()):!0===T.shiftKey&&B===document.activeElement?(T.preventDefault(),this.el.closePopupCta.focus()):!0===T.shiftKey&&this.activeTarget.target[0]===document.activeElement&&(T.preventDefault(),this.el.closePopupCta.focus())}};aa.prototype.activePopup=function(T){T&&(this.activeCta=l(T));G.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?T=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"),T=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);T.focus();
0>=document.querySelectorAll("[data-aria-hidden]").length&&F(this.activeTarget.target[0]);this.popupResize()};aa.prototype.closePopup=function(){G.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");
this.popupResize(!1);this.activeTarget=this.activeCta=null};aa.prototype.popupResize=function(T){T=void 0===T?!0:T;var B=document.documentElement.clientHeight,w=this.activeTarget.find(".layer-popup__inner"),e=this.activeTarget.find(".scrollbar"),n=this.activeTarget.find(".scrollbar__wrap");!0===T?(this.isPc?B<=w.target[0].getBoundingClientRect().height?(w.css({"min-height":B+"px",height:B+"px"}),w=w.target[0].getBoundingClientRect(),B=n.target[0].getBoundingClientRect(),w=parseInt(w.height-B.top),
e.css({height:w+"px"})):(w.css({"min-height":"",height:""}),e.css({height:""})):(n=n.target[0].getBoundingClientRect(),B=parseInt(B-n.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:""}))};aa.prototype.setCardDescViewMore=function(){var T=this;this.el.cardDescViewMoreContainer=this.el.component.find(this.el.selector.cardDescViewMoreContainer);this.el.cardDescViewMoreText=this.el.component.find(this.el.selector.cardDescViewMoreText);
this.el.cardDescViewMoreButton=this.el.component.find(this.el.selector.cardDescViewMoreButton);this.el.cardDescViewMoreContainer.target.forEach(function(B){B=l(B);var w=B.find(T.el.selector.cardDescViewMoreText),e=B.find(T.el.selector.cardDescViewMoreButton),n=B.find(T.el.selector.cardDescViewMoreButtonText);B.attr("data-card-desc-expanded",!1);e.attr("aria-expanded",!1);n.text(e.attr("data-text-open"));w.target.length&&w.target[0].scrollHeight>w.target[0].clientHeight?e.show():e.hide()});this.el.cardDescViewMoreButton.off("click",
this.handler.handleCardDescViewMoreToggle).on("click",this.handler.handleCardDescViewMoreToggle)};aa.prototype.handleCardDescViewMoreToggle=function(T){T=l(T.currentTarget);var B="true"===T.closest(this.el.selector.cardDescViewMoreContainer).attr(this.el.selector.cardDescExpanded),w=T.closest(this.el.selector.categoryContents),e=w.find(this.el.selector.cardDescViewMoreContainer),n=w.find(this.el.selector.cardDescViewMoreButton),k=w.find(this.el.selector.cardDescViewMoreButtonText);B?(e.attr(this.el.selector.cardDescExpanded,
!1),n.attr("aria-expanded",!1),k.text(T.attr("data-text-open"))):(e.attr(this.el.selector.cardDescExpanded,!0),n.attr("aria-expanded",!0),k.text(T.attr("data-text-close")));this.setMaxHeight(w.target[0])};var x=function(T){T=void 0===T?{visibleScrollTop:!0}:T;l(".pdd16-step-buying-v2").target.forEach(function(B){aa.instances.has(B)?aa.instances.get(B).reInit():new aa(B)});T.visibleScrollTop&&(G.visibleScroll(),window.scrollTo(0,0))};aa.instances=new WeakMap;l.ready(x);window.sg.components.stepbuyingV2=
{init:x,cardReInit:function(T){var B=l(T).closest(".pdd16-step-buying-v2").target[0];aa.instances.has(B)&&aa.instances.get(B).cardReInit(T)},clearAll:function(T){aa.instances.has(T)&&aa.instances.get(T).clearAll()},cardSelect:function(T,B){B=void 0===B?null:B;var w=l(T).closest(".pdd16-step-buying-v2").target[0];aa.instances.has(w)&&aa.instances.get(w).clickSelect(T,B)},activePopup:function(T){l(".pdd16-step-buying-v2").target.forEach(function(B){aa.instances.has(B)&&aa.instances.get(B).activePopup(T)})},
closePopup:function(){l(".pdd16-step-buying-v2").target.forEach(function(T){aa.instances.has(T)&&aa.instances.get(T).closePopup()})}}})();
(function(){var l=window.sg.common.$q,h=window.sg.common.constants.KEY_CODE,G=function(p){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(p),fixDummy:null};this.isFixOnce=!1;this.handler={toggleLayer:this.toggleLayer.bind(this),
setFocusLock:this.setFocusLock.bind(this),resizeFix:function(){0<v.el.fixDummy.target.length&&v.el.fixDummy.css({height:v.el.component.height()+"px"})}};G.instances.set(p,this);this.setElements();this.init()};G.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");
this.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};G.prototype.init=function(){this.bindEvents()};G.prototype.reInit=function(){this.setElements();this.bindEvents()};G.prototype.toggleLayer=function(){this.el.selectWrap.hasClass(this.selector.selectOpenCls)?
this.closeLayer():this.openLayer()};G.prototype.openLayer=function(){this.el.selectWrap.addClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Close)};G.prototype.closeLayer=function(){this.el.selectWrap.removeClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Open)};G.prototype.setFixed=function(p){!1===this.isFixOnce&&(this.isFixOnce=!0);p?this.el.component.target[0].classList.contains(this.selector.fixedCls)||this.el.component.addClass(this.selector.fixedCls):
this.el.component.target[0].classList.contains(this.selector.fixedCls)&&this.el.component.removeClass(this.selector.fixedCls)};G.prototype.setFocusLock=function(p){p.keyCode===h.TAB&&!1===p.shiftKey&&(this.el.selectCta.focus(),this.closeLayer(),p.preventDefault())};G.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",
this.handler.resizeFix).on("resize",this.handler.resizeFix);this.handler.resizeFix()};var u=function(){l(".us-epp-discount").target.forEach(function(p){G.instances.has(p)||new G(p)})};G.instances=new WeakMap;l.ready(u);window.sg.components.usEppDiscount={init:u,reInit:function(){l(".us-epp-discount").target.forEach(function(p){G.instances.has(p)?G.instances.get(p).reInit():new G(p)})},closeLayer:function(){l(".us-epp-discount").target.forEach(function(p){G.instances.has(p)&&G.instances.get(p).closeLayer()})},
setFixed:function(p){l(".us-epp-discount").target.forEach(function(v){G.instances.has(v)&&G.instances.get(v).setFixed(p)})}}})();
(function(l,h){function G(){h("#spaceWidth, #spaceHeight, #spaceDepth").on("keyup",function(){var w=h("#spaceWidth").val(),e=h("#spaceHeight").val(),n=h("#spaceDepth").val();""==w&&""==e&&""==n?u():""!=w&&""!=e&&""!=n&&p()})}function u(){h(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("is-show");h(".pd-sellout-option__dimensions-popup-cta button").addClass("cta--disabled");h(".pd-sellout-option__dimensions-popup-cta button").html(F);h(".pd-sellout-option__dimensions-popup-cta button").attr("an-la",
"dimension popup:lets measure your space:check fit");h("#spaceWidth").val("");h("#spaceHeight").val("");h("#spaceDepth").val("");h("#spaceWidth").parent().parent().removeClass("delete").removeClass("active");h("#spaceHeight").parent().parent().removeClass("delete").removeClass("active");h("#spaceDepth").parent().parent().removeClass("delete").removeClass("active");h(".pd-sellout-option__dimensions-popup-cta button").off("click").on("click",function(w){})}function p(){h(".pd-sellout-option__dimensions-popup-cta button").removeClass("cta--disabled");
h(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("is-show");h(".pd-sellout-option__dimensions-popup-cta button").html(F);h(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:check fit");h(".pd-sellout-option__dimensions-popup-cta button").off("click").on("click",function(w){});h(".pd-sellout-option__dimensions-popup-cta button").on("click",function(w){v()})}function v(){var w=Number(h("#packageWidth").val()),e=Number(h("#packageHeight").val()),
n=Number(h("#packageDepth").val()),k=Number(h("#spaceWidth").val()),A=Number(h("#spaceHeight").val()),ca=Number(h("#spaceDepth").val()),K=h("#packageUnit").val();w<k&&e<A&&n<ca?(h(".pd-sellout-option__dimensions-popup-result-wrap").addClass("is-show"),h(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("error"),h(".pd-sellout-option__dimensions-popup-cta button").html(W),h(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:done"),
h(".pd-sellout-option__dimensions-popup-result-title").html(x),"th"==siteCode?h(".pd-sellout-option__dimensions-popup-result-text").html(T+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k+" "+K,A+" "+K,ca+" "+K])):h(".pd-sellout-option__dimensions-popup-result-text").html(T+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k,A,ca])),h(".pd-sellout-option__dimensions-popup-cta button").on("click",function(D){window.sg.components.SelloutOption.closePopup();u()})):(h(".pd-sellout-option__dimensions-popup-result-wrap").addClass("is-show"),
h(".pd-sellout-option__dimensions-popup-result-wrap").addClass("error"),h(".pd-sellout-option__dimensions-popup-cta button").html(aa),h(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:measure again"),h(".pd-sellout-option__dimensions-popup-result-title").html(B),"th"==siteCode?h(".pd-sellout-option__dimensions-popup-result-text").html(T+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k+" "+K,A+" "+K,ca+" "+K])):h(".pd-sellout-option__dimensions-popup-result-text").html(T+
" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k,A,ca])),h(".pd-sellout-option__dimensions-popup-cta button").on("click",function(D){p();w>=k?h("#spaceWidth").focus():e>=A?h("#spaceHeight").focus():n>=ca&&h("#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."),T=Granite.I18n.get("Your dimensions:"),
B=Granite.I18n.get("It will not fit your space. Please measure again.");h(function(){G()});window.sg.components.dynamic.Dimension={init:G}})(window,window.jQuery);
(function(l){var h=window.sg.components.ProductDetailKvNew,G=window.sg.components.PDbuyingToolNew,u=window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2"),p=l(".hdd02-pdp-header"),v=p.find(".sg-pdh-gallery-section"),F=p.find(".sg-pdh-buying-tool");u.PDPHeaderUI={isDebug:!0,$ui:p,optionClose:h.optionClose,openBezelPopup:h.openBezelPopup,triggerChange:G.triggerChange,gallery:{init:function(){v.find("#galleryPopupViewMoreButton").off("click.tagging").on("click.tagging",function(){var W=l(this),
aa=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:G.showMessage,bindPdTooltipEvent:G.bindPdTooltipEvent,bindComboOfferEvent:G.bindComboOfferEvent,openAddOnLearnMore:G.openAddOnLearnMore,viewMoreVDAddOn:G.viewMoreVDAddOn}}})(jQuery);
var bc_rewards=function(){var l=function(){var G;return{isNew:function(u){return G!==u},get modelCode(){return G},set modelCode(u){this.isNew(u)&&(G=u)}}}(),h=function(G,u){var p,v,F,W;return $jscomp.asyncExecutePromiseGeneratorProgram(function(aa){if(1==aa.nextAddress)return aa.setCatchFinallyBlocks(2),(p=l.isNew(u))?aa.yield(G.fetch(u),4):aa.return();if(2!=aa.nextAddress)return v=aa.yieldResult,F=v.rewardsPolicies,G.setContext(F),l.modelCode=u,aa.leaveTryBlock(0);W=aa.enterCatchBlock();console.error("[Rewards] Fetch error",
W);G.setContext(void 0);aa.jumpToEnd()})};return{calculate:function(G,u){var p;return function(v){for(var F=[],W=0;W<arguments.length;++W)F[W-0]=arguments[W];p&&clearTimeout(p);return new Promise(function(aa){p=setTimeout(function(){var x=$jscomp$this,T;return $jscomp.asyncExecutePromiseGeneratorProgram(function(B){if(1==B.nextAddress)return B.yield(G.apply(x,F),2);T=B.yieldResult;aa(T);B.jumpToEnd()})},u)})}}(function(G){var u,p,v,F,W,aa,x;return $jscomp.asyncExecutePromiseGeneratorProgram(function(T){return 1==
T.nextAddress?(u=G,p=u.modelCode,v=u.totalPrice,F=v.sale,W=u.rewards,aa=W.context,x=W.calculator,T.yield(h(aa,p),2)):aa.initialized?T.return(x.calculate({context:aa,totalPrice:F})):T.return(void 0)})},300),convertToDisplay:function(G,u){if(u){var p=G.rewards,v=p.pageContext;p=p.context;var F=u.totalPoint,W="p";v=(p.isConfigEnabled("useNumberFormatterByLocale")?new Intl.NumberFormat(v.locale):new Intl.NumberFormat).format(F);F=Granite.I18n.get("* Actual Samsung Rewards points earned may differ from the estimate provided.");
if("pt"===G.siteCode)v=v.replace(",",".");else if("cz"===G.siteCode)W="b";else if("hk"===G.siteCode||"hk_en"===G.siteCode)F=Granite.I18n.get("* Actual Samsung Rewards points earned may differ from the estimate provided. {0}",v),G.oldHybrisSalesStatus||(F="");return{result:u,visible:!!u,formatted:{totalPoint:[v,W].join(" ")},isGuest:p.isGuest,rewardsMemeberCheckSite:p.rewardsMemeberCheckSite,isNonRewardsMember:p.isNonRewardsMember,isRewardsMember:p.isRewardsMember,rewardsDescription:F}}}}}();
(function(l){var h=function(G){var u=void 0===G.config?{}:G.config;G=void 0===G.pageContext?{}:G.pageContext;this.initialized=!1;this.config=u;this.pageContext=G};h.prototype.fetch=function(G){var u=this,p,v,F,W,aa,x,T;return $jscomp.asyncExecutePromiseGeneratorProgram(function(B){p=u.pageContext;v=p.searchDomain;F=p.apiStageInfo;W=p.siteCode;aa=p.channel;x=p.tierCode;T=new URLSearchParams;T.set("siteCode",W);T.set("channel",aa);T.set("modelCode",G);T.set("tierCode",x||"T001");return B.return(new Promise(function(w,
e){$.ajax({url:v+"/"+F+"/b2c/rewards-policy?"+T.toString(),type:"GET",dataType:"json",data:JSON,cache:!0,timeout:2E4,success:function(n){return w(n.response.resultData)},error:function(n){return e(n)}})}))})};h.prototype.setContext=function(G){this.initialized=!!G;this.rewardsPolicies=G||[]};h.prototype.summarizePolicies=function(){var G=this;return this.rewardsPolicies.map(function(u){return Object.assign({},{policyId:u.policyId,policyType:u.policyType,currencyConversionRate:u.currencyConversionRate},
G.sumPolicyItems(u.items))})};h.prototype.sumPolicyItems=function(G){return{fixed:G.filter(function(u){return"1"===u.pointType}).reduce(function(u,p){return u+p.point},0),ratio:G.filter(function(u){return"2"===u.pointType}).reduce(function(u,p){return u+p.point},0)}};h.prototype.isConfigEnabled=function(G){var u=this.pageContext.siteCode;return(G=this.config[G])?0<G.filter(function(p){return p===u}).length:!1};$jscomp.global.Object.defineProperties(h.prototype,{available:{configurable:!0,enumerable:!0,
get:function(){var G=this.pageContext,u=G.isEpp;return this.config.allowedSites.includes(G.siteCode)&&!u}},isGuest:{configurable:!0,enumerable:!0,get:function(){return!this.pageContext.isLogin}},rewardsMemeberCheckSite:{configurable:!0,enumerable:!0,get:function(){var G=this.pageContext,u=G.isEpp;return this.config.rewardsMemeberCheckSite.includes(G.siteCode)&&!u}},isNonRewardsMember:{configurable:!0,enumerable:!0,get:function(){var G=this.pageContext,u=G.tierCode;return!!G.isLogin&&!u}},isRewardsMember:{configurable:!0,
enumerable:!0,get:function(){var G=this.pageContext,u=G.tierCode;return!!G.isLogin&&!!u}}});l.dynamic=l.dynamic||{};l.dynamic.RewardsPolicyContext=h})(window.sg.components);
(function(l){var h=function(){this.modelContext=this.context=null;this.state={}};h.prototype.calculate=function(G){var u=G.totalPrice;this.context=G.context;this.state={};this.rewards=void 0;this.modelContext={totalPrice:Number.isNaN(u)?0:Number(u)};this.beforeCalculate();this._calculate();return this.rewards};h.prototype.beforeCalculate=function(){this.state.rewardsPolicies=this.context.summarizePolicies()};h.prototype._calculate=function(){var G=this.modelContext.totalPrice,u=this.state.rewardsPolicies.reduce(function(p,
v){return p+(v.ratio/100*G/v.currencyConversionRate+v.fixed)},0);this.rewards={totalPoint:Math.round(u)}};l.dynamic=l.dynamic||{};l.dynamic.RewardsCalculator=h})(window.sg.components);
(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 h(a){var c=Math.pow(10,2);a=1.95583*Number(a);a=Math.round(a*c)/c;return currencyComma(a,"BGN")}function G(a,c){a=void 0===a?0:a;c=void 0===c?function(){}:c;var m=[],g="";"number"!==typeof a&&(a=0);for(var q=1;q<=a;q++)g="descListText"+q,m.push(g);"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),
g=["uk"].includes(siteCode),q="fr"===siteCode?"from":"From";$.each(a,function(ba,J){var fa=!1;ba=$.map(J.itemSet,function(Ka,Qa){Qa=Ka.cycle;var Na="mo"===Qa?1:"yr"===Qa?2:3,Ua=Ka.oriPriceValue,Ra=Ka.paymentCycle,Va=currencyComma(Ua,c),Y=Ka.optionOriWasPrice,ja=currencyComma(Y,c),za=null!=Ka.freeMonths?Ka.freeMonths:"0";"monthly"==Ka.paymentCycle&&null!=Ka.freeMonths&&""!=Ka.freeMonths&&"0"!=Ka.freeMonths&&(fa=!0);return{flag:Qa,price:Ua,sortNo:Na,formattedPrice:Va,paymentCycle:Ra,wasPrice:Y,formattedWasPrice:ja,
freeMonths:za}});if("at"==siteCode||"cz"==siteCode||"be"==siteCode||"nl"==siteCode||"be_fr"==siteCode){var qa="ro"==siteCode?"{0}/month SC+":"{0}/month",ia=0,Aa=0,Ia="",Fa="";$.each(ba,function(Ka,Qa){if(0==ia||ia>Qa.price)ia=Qa.price,Ia="mo"===Qa.flag?Granite.I18n.get(qa,currencyComma(ia,c)):currencyComma(ia,c);Aa<Qa.price&&(Aa=Qa.price,Fa=currencyComma(Aa,c))});var Da="";1<ba.length?Da=""+Granite.I18n.get("From {0} or {1}",[Ia,Fa]):1==ba.length&&(Da=""+Ia);J.depthOnePrice=Da}else{ba.sort(function(Ka,
Qa){return Ka.sortNo-Qa.sortNo});var Ga=0;if("es"===siteCode){var Sa=99999999;$.map(ba,function(Ka,Qa){"monthly"!=Ka.paymentCycle&&(Ka.price<Sa&&(Ga=Ka.formattedPrice),Sa=Ka.price)})}else if("se"===siteCode||"no"===siteCode||"dk"===siteCode||"fi"===siteCode||"ae"===siteCode||"ae_ar"===siteCode||"uk"===siteCode||"it"===siteCode||"fr"===siteCode||"ro"===siteCode){var La=99999999;$.map(ba,function(Ka,Qa){"monthly"==Ka.paymentCycle&&(Ka.price<La&&(Ga=Ka.formattedPrice),La=Ka.price)})}var ma=!0,Oa=$.map(ba,
function(Ka,Qa){var Na="";["uk","it","fr","ro"].includes(siteCode)?fa?"monthly"===Ka.paymentCycle&&ma&&null!=Ka.freeMonths&&"0"!=Ka.freeMonths&&(Na=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ka.freeMonths,Ga]),ma=!1):ma&&(Na+=""+Ka.formattedPrice,"mo"===Ka.flag&&(Na+=""+Granite.I18n.get("SC+ Popup Bundle mo price"))):["ae","ae_ar"].includes(siteCode)?fa?"monthly"===Ka.paymentCycle&&ma&&null!=Ka.freeMonths&&"0"!=Ka.freeMonths&&(Na=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ka.freeMonths,
Ga]),ma=!1):ma&&(Na+=""+Ka.formattedPrice,"mo"===Ka.flag&&(Na+="/"+Granite.I18n.get("month"))):"es"==siteCode?"monthly"===Ka.paymentCycle?Na+=Ka.formattedPrice+"/mes":(ma&&(Na+=Ga),isNotEmpty(Ka.flag)&&g&&(Na+="/"+Granite.I18n.get(Ka.flag)),ma=!1):["se","dk","no","fi"].includes(siteCode)?"monthly"===Ka.paymentCycle&&ma&&(Na=null!=Ka.freeMonths&&"0"!=Ka.freeMonths?Granite.I18n.get("freeMonths {0}/month, from {1}",[Ka.freeMonths,Ga]):Granite.I18n.get("freeMonths_null {0}/month",[Ga]),ma=!1):"de"==siteCode?
(0===Qa&&m&&(Na=Granite.I18n.get(q)+" "),Na+=""+Ka.formattedPrice,Na="mo"===Ka.flag?Na+(""+Granite.I18n.get("SC+ Popup Bundle mo price")):isNotEmpty(Ka.flag)&&g?Na+("/"+Granite.I18n.get(Ka.flag)):Na+(""+Granite.I18n.get("SC+ Popup Bundle upfront price"))):(0===Qa&&m&&(Na=Granite.I18n.get(q)+" "),Na+=""+Ka.formattedPrice,"mo"===Ka.flag?Na+="/"+Granite.I18n.get(Ka.flag):isNotEmpty(Ka.flag)&&g&&(Na+="/"+Granite.I18n.get(Ka.flag)));return Na}).join(" "+Granite.I18n.get("or")+" ");ba=["se","no","fi","dk"];
Da=" "+Granite.I18n.get("or")+" ";"uk ae ae_ar it fr ro".split(" ").includes(siteCode)&&(ma?(Oa=Oa.split(Da),Oa.sort(function(Ka,Qa){return Ka.substring(0,Ka.indexOf(" "))-Qa.substring(0,Qa.indexOf(" "))}),["ae","ae_ar"].includes(siteCode)&&2<Oa.length&&Oa.splice(1,Oa.length-2),Oa=Oa.join(" "+Granite.I18n.get("or")+" ")):ba.push(siteCode));if("es"===siteCode){Oa=Oa.trim();for(var Ca=0;3>Ca;Ca++)Oa.endsWith("o")&&(Oa=Oa.slice(0,-2))}ba.includes(siteCode)&&(Oa=Oa.replaceAll(Da,""));J.depthOnePrice=
Oa}})}function p(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," 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?a.modelName.replace(/&/g," and ").replace(/  /g," "):"";c=0;var m="",g=digitalData.page.pageInfo.siteCode;""!=digitalData.page.pathIndicator.depth_2&&(g+=":"+digitalData.page.pathIndicator.depth_2,
c=2,m=digitalData.page.pathIndicator.depth_2);""!=digitalData.page.pathIndicator.depth_3&&(g+=":"+digitalData.page.pathIndicator.depth_3,c=3,m=digitalData.page.pathIndicator.depth_3);""!=digitalData.page.pathIndicator.depth_4&&(g+=":"+digitalData.page.pathIndicator.depth_4,c=4,m=digitalData.page.pathIndicator.depth_4);""!=digitalData.page.pathIndicator.depth_5&&(g+=":"+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;g.replace(m,a)}}function W(a,c){c=a.siteCode;if("pt"===c||"es"===c||"fr"===c)if(ya){if(!a.isNotFirstReward){c=$("#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(g){g.response&&g.response.resultData&&g.response.resultData.storeInfo&&"Y"===g.response.resultData.storeInfo.rewardsDisplayYN&&$("#pd-rewards-msg").show()}});a.isNotFirstReward=!0}}else $("#pd-rewards-msg").show()}function aa(a,c,m){m=m.buyingToolOptMemory;c?$(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 g=a.util,q=c.buyingToolOptOffer.find(".pd-offer__item.bogo"),ba=g.hasOffer(a,c);c=g.hasBogo(a,c);ba&&c&&(q=q.find(".pd-price").attr("data-price"))&&(m.original=parseFloat(m.original)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function T(a,c,m){var g=a.disabledClass;c=c.buyingToolOptCareResult;g=c.hasClass(a.hasComponentClass)&&!c.hasClass(g);var q=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");g&&(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 g=a.disabledClass;c=c.buyingToolOptWarrantyResult;g=c.hasClass(a.hasComponentClass)&&!c.hasClass(g);var q=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");g&&(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 g=a.disabledClass;c=c.buyingToolOptWarrantyVdResult;
g=c.hasClass(a.hasComponentClass)&&!c.hasClass(g);c=c.find(".option-result__text-wrap").attr("data-price");g&&(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 g=a.util,q=$(c.buyingToolOptTradeInResult);c=g.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 n(a,c,m){var g=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");g&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function k(a,c,m){var g=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");g&&(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 g=a.hasComponentClass,q=a.disabledClass,ba=c.buyingToolOptOffer.find(".pd-offer__item.giftBundle");c=c.buyingToolOptOffer;if(c.hasClass(g)&&!c.hasClass(q))for(c=0;c<ba.length;c++){var J=$(ba.get(c));if(J.hasClass(g)&&!J.hasClass(q)){J=J.find(".pd-offer__selected-bundle");for(var fa=0;fa<J.length;fa++){var qa=
$(J.get(fa)).attr("data-price"),ia=$(J.get(fa)).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 g=a.hasComponentClass,q=a.disabledClass,ba=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=c.buyingToolOptOffer;if(c.hasClass(g)&&!c.hasClass(q))for(c=0;c<ba.length;c++){var J=$(ba.get(c));if(J.hasClass(g)&&!J.hasClass(q)){J=J.find(".pd-offer__selected-bundle");
for(var fa=0;fa<J.length;fa++){var qa=$(J.get(fa)).attr("data-price"),ia=$(J.get(fa)).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 g=a.hasComponentClass,q=a.disabledClass;c=$(c.buyingToolOptTariffResult);g=c.hasClass(g)&&!c.hasClass(q);q=c.find(".result-price").attr("data-price");g&&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)-a.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 f(a,c,m){var g=c.buyingToolOptEmbedAddon;c=g.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",ba=parseFloat(g.find(q).attr("data-total-price"));g=parseFloat(g.find(q).attr("data-total-sale-price"));c&&ba&&(m.original=parseFloat(m.original)+
ba,m.sale=parseFloat(m.sale)+g,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 g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util;"nl"===g.siteCode&&(!0===g.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").show(),$(".pd-select-option.pd-select-option--type-offer").show());q.hasBetween(g,m)&&(q.removeBetweenResult(g,m),q.totalAfterFunction(g,m))});c.buyingToolOptBetween.on("click",
"#pd-leasing-1",a,function(m){$(this).attr("data-payment-value");var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=q.hasBetween(g,m);q.hasTradeInResult(g,m);"nl"===g.siteCode&&(!0===g.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").hide(),$(".pd-select-option.pd-select-option--type-offer").hide());ba&&(q.addBetweenResult(g,m),q.totalAfterFunction(g,m))})}function E(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariffPlan.on("click","#pd-carrier-0",a,function(m){var g=
m.data.sharedObj;m=m.data.selectorObj;var q=g.util;q.removeTariffPlanResult(g,m);q.totalAfterFunction(g,m)});c.buyingToolOptTariffPlan.on("click",".option-input:not(#pd-carrier-0)",a,function(m){var g=$(this),q=m.data.sharedObj;m=m.data.selectorObj;var ba=q.util,J=q.tariffPlanSelectedClass;ba.hasTariffPlan(q,m)&&(ba.removeTariffPlanSelectedClass(q,m),g.addClass(J),ba.addTariffPlanResult(q,m),ba.totalAfterFunction(q,m))})}function U(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#pd-trade-in-0, .open-trade-popup",
a,function(g){var q=g.data.sharedObj,ba=g.data.selectorObj,J=q.util,fa=q.shopSkuCode,qa=J.hasTradeIn(q,ba),ia=J.hasOffer(q,ba),Aa=q.pdHrefLang,Ia=q.pdMultiLanguageYN,Fa=q.apiDomain,Da=q.proudctPriceInfo.salePrice,Ga=J.hasForeverResult(q,ba),Sa=q.tradeInType,La=!1,ma=!1;g.preventDefault();if(!qa)return!1;if((new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()){if(q.isMultiTradeIn){Fa=$(g.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&&(La=J.hasBogo(q,ba),ma=J.hasComboResult(q,ba)),"CE"===Sa?("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&window.flutter_inappwebview.callHandler("getPinCode").then(function(Oa){sielTradeIn.prepopulatePinCode(Oa)}).catch(function(){}),
window.sg.components.sielTradeInPopup.showPopup()):(0==$(".bc-exchange-popup").length&&(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("instant-exchange"),setTimeout(function(){La||ma?configuratorExchange.setExchange(!0,Da,Ga):configuratorExchange.setExchange(!1,Da,Ga);window.sg.components.bcExchangePopup.showPopup()},200));else if("uk"===siteCode&&"CE"===Sa)-1<window.location.host.indexOf("p6-pre-qa3.")&&(ba.buyingToolOptTradeIn.find("#pd-trade-in-0").attr("data-total-price")||
sielTradeIn.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),g=q.proudctPriceInfo.orignalPrice,tradeinData.setTradein(g,Fa?"LEASE":"PURCHASE"),tradeinData.showPopup()):(g={sku:fa},ya&&(g.store_id=$("#eppCompanyCode").val()),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json",
"Access-Control-Allow-Origin":"*"},url:Fa+"/v1/exchange/offers",type:"POST",dataType:"json",data:JSON.stringify(g),xhrFields:{withCredentials:!0},beforeSend:function(Oa){"Y"===Ia&&Oa.setRequestHeader("x-ecom-locale",Aa)},success:function(Oa){if(Oa){var Ca=q.util.hasBetweenResult(q,ba);tradeinData.setTradein(Oa,q.proudctPriceInfo.orignalPrice,Ca?"LEASE":"PURCHASE");tradeinData.showPopup()}},error:function(Oa){var Ca="";Oa.responseJSON&&Oa.responseJSON.message&&(Ca=Oa.responseJSON.message);confirmPopup(Ca)}}));
else{if(q.isMultiTradeIn){Fa=$(g.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(g,q){var ba=g.util,J=g.view,fa=g.drawObj,qa=ba.hasForever(g,q),ia=ba.hasUpgradeResult(g,q),Aa=$("#siteCode").val(),Ia=window.location.pathname.replace("/content/samsung","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(Ia)&&
sessionStorage.removeItem(Ia);null!==fa.deliveryResult.priorityText&&!0===fa.tradeInResult.isUpfront&&$(q.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(g.isMultiTradeIn){if(-1<g.checkedIndex){"kz_kz"===g.siteCode||"kz_ru"===g.siteCode?(fa.tradeInResult.list.forEach(function(La){bc_common_tradeIn.removeDevice(La.imeiKey)}),fa.tradeInResult.list.splice(0)):fa.tradeInResult.list.splice(g.checkedIndex,1);Ia=fa.tradeInResult.additionalDiscountFlag;("sg"===Aa||"vn"===Aa||"id"===Aa||
Ia)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(g,fa.tradeInResult);for(Ia=0;Ia<fa.tradeInResult.list.length;Ia++)fa.tradeInResult.list[Ia].index=Ia;"cn"==Aa&&(Ia=fa.tradeInResult.list,void 0!=fa.tradeInResult&&void 0!=Ia&&0<Ia.length&&(Ia=bc_common_tradeIn.directConditionCall(),Ia.done(function(La,ma,Oa){var Ca=fa.tradeInResult.list.length,Ka=0,Qa=0;$.each(La.result.additionalParameters.entry,function(Na,Ua){"ticketMoney"===Ua.key&&(Ka=Ua.value);"o2oTicketMoney"===Ua.key&&
(Qa=Ua.value)});$.each(fa.tradeInResult.list[Ca-1].services.tradeInAdditionalInfo,function(Na,Ua){"ticketMoney"===Ua.key&&(fa.tradeInResult.list[Ca-1].services.tradeInAdditionalInfo[Na].value=Ka);"o2oTicketMoney"===Ua.key&&(fa.tradeInResult.list[Ca-1].services.tradeInAdditionalInfo[Na].value=Qa)})}),Ia.fail(function(La,ma,Oa){})))}else fa.tradeInResult.list=[];if(g.isMultiTradeIn&&fa.tradeInResult.list&&0<fa.tradeInResult.list.length){if(("hr"===Aa||"si"===Aa)&&"0"==g.checkedIndex){Ia=fa.tradeInResult.list[0];
var Fa=Ia.specialPrice;void 0!=Fa&&(Ia.discountPrice=parseFloat(Ia.dataPrice)+parseFloat(Fa),Ia.discountPriceText=""+currencyComma(Ia.discountPrice,g.priceCurrency),Ia.discountText1=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(Ia.dataPrice),g.priceCurrency),Ia.dataPrice=parseFloat(Ia.dataPrice)+parseFloat(Fa),Ia.specialDiscountText=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(Fa),g.priceCurrency))}if("hk"===Aa||"hk_en"===Aa){var Da=!1;fa.tradeInResult.list.forEach(function(La,
ma){Da?La.useGtiPriceArea=!1:!La.useGtiPriceArea&&La.hasGtiPrice&&(Da=La.useGtiPriceArea=!0)})}"tr"==Aa?(fa.tradeInResult.dataPrice=fa.tradeInResult.list.reduce(function(La,ma){return La+parseInt(ma.dataCashBack)},0),fa.tradeInResult.dataPrice+=fa.tradeInResult.list[0].services.tradeInSpecialPrice,fa.tradeInResult.list[0].firstcheck=!0,fa.tradeInResult.list[0].othercheck=!1):fa.tradeInResult.dataPrice=fa.tradeInResult.list.reduce(function(La,ma){return La+ma.dataPrice},0);if("cn"==Aa){var Ga=0;$.each(fa.tradeInResult.list,
function(La,ma){$.each(ma.services.tradeInAdditionalInfo,function(Oa,Ca){"ticketMoney"===Ca.key&&Ga<Ca.value&&(Ga=Ca.value)})});fa.tradeInResult.totalTicketMoney=Ga;fa.tradeInResult.totalTicketMoneyText=0==Ga?"":Granite.I18n.get("Additional Trade in discount from Samsung")+": "+currencyComma(Ga,g.priceCurrency);fa.tradeInResult.dataPrice=parseFloat(fa.tradeInResult.dataPrice)+parseFloat(Ga);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Sa=0;$.each(fa.tradeInResult.list,
function(La,ma){$.each(ma.services.tradeInAdditionalInfo,function(Oa,Ca){"o2oTicketMoney"===Ca.key&&Sa<Ca.value&&(Sa=Ca.value)})});fa.tradeInResult.totalO2oTicketMoney=Sa;fa.tradeInResult.totalO2oTicketMoneyText=0==Sa?"":Granite.I18n.get("O2O special subsidy")+": "+currencyComma(Sa,g.priceCurrency);fa.tradeInResult.dataPrice=parseFloat(fa.tradeInResult.dataPrice)+parseFloat(Sa)}}Ia=Number(fa.tradeInResult.dataPrice)-Number(g.proudctPriceInfo.salePrice);g.minOrderEntryValue&&(Ia+=Number(g.minOrderEntryValue));
"be"===Aa||"be_fr"===Aa||"nl"===Aa||"sg"===Aa||"vn"===Aa||"my"===Aa||"id"===Aa||"fr"===Aa||"de"===Aa||"sa"===Aa||"sa_en"===Aa||"cl"===Aa?(fa.tradeInResult.totalAmountText=currencyComma(fa.tradeInResult.dataPrice,g.priceCurrency),0<Ia?(fa.tradeInResult.priceOverFlag=!0,fa.tradeInResult.excessAmount=Ia,fa.tradeInResult.tenText=currencyComma(g.minOrderEntryValue,g.priceCurrency)):fa.tradeInResult.priceOverFlag=!1):fa.tradeInResult.priceOverFlag=fa.tradeInResult.dataPrice>g.proudctPriceInfo.salePrice?
!0:!1;"tr"==Aa&&(fa.tradeInResult.dataPrice=0)}q.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").removeClass("cta--disabled").prop("disabled",!1);("sg"==Aa||"my"==Aa)&&(Ia=q.buyingToolOptTradeInResult.find(".limit-count"))&&0<Ia.length&&!Ia.is(":visible")&&Ia.show()}g.isMultiTradeIn&&0!=fa.tradeInResult.list.length?1===fa.tradeInResult.list.length&&"de"===Aa&&g.isMultiTradeIn&&g.hasStackbleTradeInFreeGiftPromotion&&!g.hasTradeInFreeGiftPromotion&&(g.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):
(fa.tradeInResult={hasComponent:!1,description:"",dataPrice:"",dataCashBack:"",dataCash:"",price:"",disclaimer:"",list:[]},la.triggerChange(document.querySelector("#pd-trade-in-1")),"de"===Aa&&(g.hasTradeInFreeGiftPromotion||g.isMultiTradeIn&&g.hasStackbleTradeInFreeGiftPromotion)&&(g.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)));g.exchangeApiData={exchangeFlag:!1};J.tradeInResultDraw(fa);ia&&J.upgradeResultDraw(fa);qa&&ba.foreverDraw(g,q);ba.totalAfterFunction(g,
q);g.isMultiTradeIn?ba.hasTradeInResult(g,q)||delete g.globalServiceInfo.tradein:g.globalServiceInfo.tradein&&delete g.globalServiceInfo.tradein;(g=$(q.buyingToolOptTradeIn).find('input[data-target-popup\x3d"deleteTradeInPopUp"]'))&&g.focus();"se"===Aa&&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(La,ma){$(".samsung-flex-options .pd-select-option__item").eq(La).find("#trade-up-default-0"+
La).attr("disabled",!1)}),Aa=$(".samsung-flex-trade-in-notice.pd-select-option__notice.pd-select-option__notice--normal"),0<Aa.length&&Aa.hasClass("is-show")&&Aa.removeClass("is-show"))};c.buyingToolOpt.on("click","#pd-trade-in-1, .remove-trade-in-result",a,function(g){var q=g.data.sharedObj,ba=g.data.selectorObj,J=q.util,fa=q.siteCode;$("#categorySubTypeCode").val();var qa="hr"===fa||"si"===fa,ia=J.hasTradeInResult(q,ba);q.isMultiTradeIn&&(g=$(g.currentTarget).attr("data-trade-index"),q.checkedIndex=
-1,g&&(q.checkedIndex=g));if(ia)if(ia=!0,"ro"!==fa||q.isTradeUp||(ia=!1),q.ceTradeUpPopup.isEnabled&&ia)window.CeTradeUpPopup.showResetConfirmPopup(function(){m(q,ba)});else{ia=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?");"ee"===fa||"lv"===fa||"lt"===fa||"pl"===fa||"at"===fa||"kz_kz"===fa||"kz_ru"===fa||"ro"===fa||"bg"===fa?ia=Granite.I18n.get("You're sure you want to delete this item?"):"pe"===fa||qa?ia=Granite.I18n.get("Do you want to proceed?"):
"au"===fa||"jp"===fa?ia=" ":"be"===fa||"be_fr"===fa||"nl"===fa?ia=Granite.I18n.get("Are you sure you want to delete this option?"):"in"===fa?ia=Granite.I18n.get("Selected exchange will be removed.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"):"th"===fa&&(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"===fa?($(".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"))):"kz_kz"===fa||"kz_ru"===fa||"nl"===fa?$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Remove")):"in"===fa?$(".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"===fa&&$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Delete"));
"ro"!==fa&&"bg"!==fa&&"jp"!==fa&&"cn"!==fa||$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Selected options will be reset.(Trade-In)"));if("sk"===fa||"cz"===fa)$(".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");la.triggerChange(document.querySelector("#pd-trade-in-0"))}else la.triggerChange(document.querySelector("#pd-trade-in-1"))});
c.buyingToolOptTradeIn.on("click",'.cta[data-target-popup\x3d"tradeInLearnMorePopup"]',a,function(g){window.sg.components.tradeInLearnMorePopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-trade-in"]',a,function(g){m(g.data.sharedObj,g.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",
a,function(g){g.data.sharedObj.drawObj.tradeInResult.hasComponent||la.triggerChange(document.querySelector("#pd-trade-in-1"))})}function R(a,c){var m=ya?a.apiDomain:$("#storeDomain").val(),g=a.siteCode,q=ya?{withCredentials:!0}:{},ba={sharedObj:a,selectorObj:c};a={sku:[a.modelCode]};a=JSON.stringify(a);var J=null;"tr"==g&&$.ajax({url:m+"/tokocommercewebservices/v2/"+g+"/stocks/cities",type:"POST",dataType:"json",cache:!0,xhrFields:q,crossDomain:!0,timeout:2E4,data:a,headers:{"content-type":"application/json"},
success:function(fa){J=fa},error:function(fa){J=null}});c.buyingToolOptCheckDealerStock.on("click",".menu__list-wrap",ba,function(fa){var qa=fa.data.sharedObj,ia=qa.drawObj,Aa=$(fa.data.selectorObj.buyingToolOptCheckDealerStock),Ia=Aa.find("select[name\x3dcheck-dealer-stock]").val(),Fa=ia.checkDealerStock,Da="",Ga="";fa.preventDefault();Aa.find(".pd-select-option__notice--normal").removeClass("is-show");Aa.find(".pd-select-option__check-message--success").removeClass("is-show");Aa.find(".pd-select-option__check-message--error").removeClass("is-show");
Aa.find(".pd-select-option__check-message--success").html(Da);"select City"!=Ia?J&&void 0!=J.detailList?void 0!=J.detailList.stockWithCity&&0<J.detailList.stockWithCity.length?(fa=J.detailList.stockWithCity.find(function(Sa){return Sa.isocodeShort==Ia}),Da=J.detailList.nerpStock,"OUTOFSTOCK"==qa.stockLevelStatus?0>=Da&&(void 0!=fa?0<fa.quantity?(Ga=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),Ga=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ga=Granite.I18n.get("Get stock alert"),
$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Da?void 0!=fa?0<fa.quantity?(Da="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",fa.quantity)+"\x3c/span\x3e",Aa.find(".pd-select-option__check-message--success").html(Da),Aa.find(".pd-select-option__check-message--success").addClass("is-show"),
Ga=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),Ga=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),Ga=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
fa?0<fa.quantity?(Da="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",fa.quantity)+"\x3c/span\x3e",Aa.find(".pd-select-option__check-message--success").html(Da),Aa.find(".pd-select-option__check-message--success").addClass("is-show")):Aa.find(".pd-select-option__check-message--error").addClass("is-show"):Aa.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==qa.stockLevelStatus?Ga=Granite.I18n.get("Get stock alert"):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),
Ga=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ga="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ga="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ia.checkDealerStock=
Fa});c.buyingToolOptCheckDealerStock.on("change",".menu__select",ba,function(fa){var qa=fa.data.sharedObj,ia=qa.drawObj,Aa=$(fa.data.selectorObj.buyingToolOptCheckDealerStock),Ia=Aa.find("select[name\x3dcheck-dealer-stock]").val(),Fa=ia.checkDealerStock,Da="",Ga="";fa.preventDefault();Aa.find(".pd-select-option__notice--normal").removeClass("is-show");Aa.find(".pd-select-option__check-message--success").removeClass("is-show");Aa.find(".pd-select-option__check-message--error").removeClass("is-show");
Aa.find(".pd-select-option__check-message--success").html(Da);"select City"!=Ia?J&&void 0!=J.detailList?void 0!=J.detailList.stockWithCity&&0<J.detailList.stockWithCity.length?(fa=J.detailList.stockWithCity.find(function(Sa){return Sa.isocodeShort==Ia}),Da=J.detailList.nerpStock,"OUTOFSTOCK"==qa.stockLevelStatus?0>=Da&&(void 0!=fa?0<fa.quantity?(Ga=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),Ga=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ga=Granite.I18n.get("Get stock alert"),
$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Da?void 0!=fa?0<fa.quantity?(Da="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",fa.quantity)+"\x3c/span\x3e",Aa.find(".pd-select-option__check-message--success").html(Da),Aa.find(".pd-select-option__check-message--success").addClass("is-show"),
Ga=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),Ga=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),Ga=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
fa?0<fa.quantity?(Da="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",fa.quantity)+"\x3c/span\x3e",Aa.find(".pd-select-option__check-message--success").html(Da),Aa.find(".pd-select-option__check-message--success").addClass("is-show")):Aa.find(".pd-select-option__check-message--error").addClass("is-show"):Aa.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==qa.stockLevelStatus?Ga=Granite.I18n.get("Get stock alert"):(Aa.find(".pd-select-option__check-message--error").addClass("is-show"),
Ga=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ga="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ga="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ga),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ga),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ia.checkDealerStock=
Fa})}function y(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariff.on("click","#pd-tariff-option-0",a,function(m){var g=m.data.sharedObj,q=g.util.hasTariffOption(g,m.data.selectorObj);m.preventDefault();if(!q)return!1;g.isMigrationHybris?tariffData.showPopup():"GPv2"===g.apiFlag?tariffData.setTariff(g.syndiProductData):tariffData.showPopup(g.hybrisApiData.tarriffOption)});c.buyingToolOpt.on("click","#pd-tariff-option-1, .remove-tariff-option-result",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;
var q=g.util,ba=q.hasTariffOptionResult(g,m);la.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",g,m))});c.buyingToolOptTariff.on("click",'.cta[data-target-popup\x3d"tariffInfoPopup"]',
a,function(m){window.sg.components.tariffInfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-tariff-option"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.drawObj;la.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"===g.siteCode){var fa=
window.sg.components.dynamic.detailSharedObj.relatedProductsObj;if(g.hasTariffGift)if(q.isNotEmpty(fa)){var qa={};g.hasGift=!0;g.hasGiftBundle=!1;window.sg.components.dynamic.freeGiftHybrisCommon.relatedProductsSimpleInfoSuccessCallBackFunc(fa,g,qa);window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)}else g.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1);g.hasPlanIDAndFreeGiftPromotion&&(g.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0))}(fa=
tariffData.BROADBAND_CACHE.returnObject)&&fa.isBroadbandService&&tariffData.removeBroadbandCache();ba.tariffOpionResultDraw(J);q.totalAfterFunction(g,m);g.globalServiceInfo.tariff&&delete g.globalServiceInfo.tariff})}function da(a,c){var m=c.buyingToolOptOffer;c={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.giftBundle .s-btn-gift-popup",c,function(g){var q=$(this),ba=g.data.sharedObj;g=g.data.selectorObj;var J=ba.util;q=q.closest(".giftBundle");var fa=ba.disabledClass;g=J.hasOffer(ba,
g)&&!q.hasClass(fa);J=$(this).attr("data-gift-idx");"0"===J&&(J=null);ba.checkedGiftArea=q;g&&(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(g){var q=$(this),ba=g.data.sharedObj;g=g.data.selectorObj;q=q.attr("data-event-index");var J=Granite.I18n.get("Selected options will be reset.")+
"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),fa=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");fa.settingCommonPopupTagging("combo",ba,g)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-gift"]',c,function(g){g=$(this).attr("data-event-index");var q=a.view,ba=a.drawObj,
J=ba.offer.gift.item.bundleList;J.splice(g,1);if(1>J.length)ba.offer.gift.item.hasBundle=!1,ba.offer.gift.item.learnMoreCta.giftIdx=0;else for(var fa in J)J[fa].dataEventType=fa;q.productOfferDraw(ba)})}function wa(a,c){var m=c.buyingToolOptOffer,g={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.compoBundle .s-btn-combo-popup",g,function(q){var ba=$(this),J=q.data.sharedObj;q=q.data.selectorObj;var fa=J.util;ba=ba.closest(".compoBundle");var qa=J.disabledClass;q=fa.hasOffer(J,q)&&!ba.hasClass(qa);
fa=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[fa],ia),window.sg.components.shopComboPopup.showPopup())});m.on("click",".pd-offer__item.compoBundle .pd-offer__selected-bundle-cancel",g,function(q){var ba=$(this),J=q.data.sharedObj;q=q.data.selectorObj;ba=ba.attr("data-event-index");
var fa=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(fa,"delete");qa.settingCommonPopupTagging("combo",J,q)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-combo"]',g,function(q){var ba=
$(this).attr("data-event-index").split("-");q=Number(ba[1]);ba=Number(ba[2]);var J=a.view,fa=a.util,qa=a.drawObj,ia=qa.offer.combo,Aa=null;for(Fa in ia){var Ia=ia[Fa];if(Ia.comboIndex===q){Aa=Ia;break}}if(Aa){var Fa=Aa.item.bundleList;Fa.splice(ba,1);1>Fa.length&&(Aa.hasBundle=!1);for(var Da in Fa)Fa[Da].dataEventType="combo-"+q+"-"+Da}J.productOfferDraw(qa,!0);J.tradeInResultDraw(qa);fa.totalAfterFunction(a,c);a.globalServiceInfo.combo&&delete a.globalServiceInfo.combo})}function ra(a,c){a={sharedObj:a,
selectorObj:c};c.buyingToolOptUpgrade.on("click","#pd-samsung-upgrade-0",a,function(m){var g=m.data.sharedObj,q=m.data.selectorObj,ba=g.util,J=$(this),fa=ba.hasTradeInResult(g,q),qa=ba.hasCareResult(g,q),ia=ba.hasUpgrade(g,q),Aa=g.eupData,Ia=g.drawObj,Fa=g.view;if(J.hasClass("hybris-es-yes"))$("#pd-samsung-upgrade-0").attr("checked","checked"),$("#pd-samsung-upgrade-1").prop("checked",!1),Ia.upgradeResult={hasComponent:!0,displayModelName:null,discountText1:null,description1:"Con Samsung Upgrade, \u00a1Disfruta de seguro Gratis! **",
description2:null,dataId:["0"],dataPrice:0,isHybris:!0,isGp:!1},Fa.upgradeResultHybrisDraw(Ia),la.triggerChange(document.querySelector("#pd-samsung-upgrade-0")),ba.totalAfterFunction(g,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;fa?0===g.tradeInSelectCnt&&
(Aa.salePrice-=g.tradeInSelectPrice,g.tradeInSelectCnt++):1===g.tradeInSelectCnt&&(Aa.salePrice+=g.tradeInSelectPrice,g.tradeInSelectCnt--);qa?0===g.smcSelectCnt&&(Aa.salePrice+=g.smcSelectPrice,g.smcSelectCnt++):1===g.smcSelectCnt&&(Aa.salePrice-=g.smcSelectPrice,g.smcSelectCnt--);buyingPdEup.eupPopupGrid(g.eupData)}});c.buyingToolOpt.on("click","#pd-samsung-upgrade-1, .remove-upgrade-result",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=$(this),J=q.hasUpgradeResult(g,
m),fa=g.drawObj,qa=g.view;ba.hasClass("hybris-es-no")?($("#pd-samsung-upgrade-1").attr("checked","checked"),$("#pd-samsung-upgrade-0").prop("checked",!1),fa.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!0,isGp:!1},qa.upgradeResultHybrisDraw(fa),la.triggerChange(document.querySelector("#pd-samsung-upgrade-1")),q.totalAfterFunction(g,m),$(m.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(""),
ya&&"es"===g.siteCode?$("#pd-rewards-msg").text(Granite.I18n.get("Earn 1% back in rewards (for Rewards members only)_epp")):$("#pd-rewards-msg").text(Granite.I18n.get("Earn 1% back in rewards (for Rewards members only)"))):(la.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",
"remove-upgrade"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("upgrade",g,m)))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-upgrade"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.drawObj;J.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!1,isGp:!0};la.triggerChange(document.querySelector("#pd-samsung-upgrade-1"));ba.upgradeResultDraw(J);
q.totalAfterFunction(g,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 g=m.data.sharedObj,q=g.util.hasAssuredBuyBack(g,m.data.selectorObj);m.preventDefault();if(!q)return!1;m="";q=g.syndiProductData.product_display_name?g.syndiProductData.product_display_name:
"";g.proudctPriceInfo.salePrice?m=currencyComma(g.proudctPriceInfo.salePrice,g.priceCurrency):g.proudctPriceInfo.orignalPrice&&(m=currencyComma(g.proudctPriceInfo.orignalPrice,g.priceCurrency));assuredBuybackData.assuredBuybackGrid(q,m,g.totalSkuList[g.assuredSku])});c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=q.hasAssuredBuyBackResultResult(g,m);la.triggerChange(document.querySelector("#pd-galaxy-assured-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-assured"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("assured",g,m))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-assured"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.drawObj;J.assuredBuyBackResult={hasComponent:!1,
dataSku:null,dataPrice:null,dataSalePrice:null};la.triggerChange(document.querySelector("#pd-galaxy-assured-0"));ba.assuredBuyBackResultDraw(J);q.totalAfterFunction(g,m)})}function ea(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptNewAssuredBuyBack.on("click",".open-popup",a,function(m){var g=$(this),q=m.data.sharedObj,ba=q.util.hasNewAssuredBuyBack(q,m.data.selectorObj),J=[],fa=Number(g.attr("id").slice(-1))-1;m.preventDefault();if(!ba)return!1;m=$(".hdd02-buying-tool .pd-select-option__notice");
m.hasClass("is-show")&&m.removeClass("is-show");q.newAssuredBuyBackCheck=!0;q.popupReturnObj=g;J.push(q.newAssuredBuyBackList[fa].productItem);configuratorABB.setProductInfo(J)});c.buyingToolOptNewAssuredBuyBack.on("click","#pd-galaxy-new-assured-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=q.hasNewAssuredBuyBackResult(g,m);g.util.checkAddToCart(g,m);var J=$(".hdd02-buying-tool .pd-select-option__notice");J.hasClass("is-show")&&J.removeClass("is-show");g.newAssuredBuyBackCheck=
!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",g,m))});c.buyingToolOptNewAssuredBuyBack.on("click",'.cta[data-target-popup\x3d"assuredBuyBackInfoPopup"]',a,function(m){window.sg.components.AssuredBuyBackInfoPopup.showPopup()});$(".confirm-popup").on("click",
'.cta[data-event-type\x3d"remove-new-assured"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.drawObj;J.newAssuredBuyBackResult={hasComponent:!1,dataModelCode:null,dataModelName:null,dataPrice:null,dataDisplayPrice:null,dataDisplayName:null};ba.newAssuredBuyBackResultDraw(J);la.triggerChange(document.querySelector("#pd-galaxy-new-assured-0"));q.totalAfterFunction(g,m)})}function na(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptGalaxyForever.on("click",
"#pd-samsung-galaxy-forever-0",m,function(g){var q=g.data.sharedObj,ba=g.data.selectorObj,J=q.util,fa=J.hasForever(q,ba),qa=J.hasTradeInResult(q,ba),ia=q.exchangeApiData,Aa=q.priceCurrency,Ia=J.hasBogo(q,ba);ba=J.hasComboResult(q,ba);g.preventDefault();if(!fa)return!1;qa&&ia.addtionalPrice&&!Ia&&!ba?(g=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,
Aa)),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","open-forever-popup"),confirmPopup(g,"delete")):buyingPdForever.foreverPopupGrid(q.foreverFinanceInfo)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"open-forever-popup"]',m,function(g){buyingPdForever.foreverPopupGrid(a.foreverFinanceInfo)});c.buyingToolOpt.on("click","#pd-samsung-galaxy-forever-1, .remove-forever-result",m,function(g){var q=g.data.sharedObj;g=g.data.selectorObj;
var ba=q.util,J=ba.hasForeverResult(q,g);la.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,g))});c.buyingToolOptWarranty.on("click",'.cta[data-target-popup\x3d""]',m,function(g){});
$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-forever"]',m,function(g){var q=g.data.sharedObj;g=g.data.selectorObj;var ba=q.util,J=q.view,fa=q.drawObj,qa=ba.hasTradeInResult(q,g);fa.galaxyForeverResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};la.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-1"));J.galaxyForeverResultDraw(fa);qa&&ba.exchangeResultDraw(q,g);ba.totalAfterFunction(q,g);
ba.hasCare(q,g)&&(g.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 g=m.data.sharedObj,q=m.data.selectorObj,ba=g.util;m.preventDefault();if(!ba.hasWarranty(g,q))return!1;configuratorWarranty.setProductInfo(g.finalWarrantyList)});c.buyingToolOptWarrantyVd.on("click","#pd-extended-warranty-option-0",a,function(m){var g=m.data.sharedObj,q=m.data.selectorObj,
ba=g.util;m.preventDefault();if(!ba.hasWarrantyVd(g,q))return!1;configuratorWarrantyVD.setProductInfo()});c.buyingToolOpt.on("click","#pd-samsung-warranty-1, .remove-warranty-result",a,function(m){var g=m.data.sharedObj;m=g.util.hasWarrantyResult(g,m.data.selectorObj);la.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",
"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 g=m.data.sharedObj;if(g.util.hasWarrantyVdResult(g,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"));
var q=$(".confirm-popup");m=q.find(".confirm-popup__title");g=q.find(".cta--contained");q=q.find(".cta--outlined");m.html(Granite.I18n.get("Las opciones seleccionadas se eliminaran"));g.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"))});
c.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"]',
a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.drawObj;J.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};la.triggerChange(document.querySelector("#pd-samsung-warranty-1"));ba.warrantyResultDraw(J);
q.totalAfterFunction(g,m)});$(".confirm-popup-v2,.confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty-vd"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.drawObj;la.triggerChange(document.querySelector("#pd-extended-warranty-option-1"));la.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);
q.totalAfterFunction(g,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 O(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptCare.on("click",".open-grid",a,function(m){m=$(this);var g=m.closest(".pd-option-selector").siblings();m.closest(".pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(q,
ba){$(ba).hasClass("hidden")||$(ba).addClass("hidden")});g.removeClass("hidden");window.dispatchEvent(new Event("resize"))});c.buyingToolOptCare.on("click",".open-popup",a,function(m){var g=$(this),q=m.data.sharedObj,ba=m.data.selectorObj,J=q.isNotGpv2,fa=q.util,qa=q.drawObj.care.isSmcType2?Number(g.attr("data-index")):Number(g.attr("data-index"))-1;fa=fa.hasCare(q,ba);ba=[];q.popupReturnObj=g;m.preventDefault();if(!fa)return!1;J||q.isMigrationHybris?(m=$.extend({},q.hybrisCareData),ba.push(m.smcs[qa]),
m.smcs=ba,"true"==g.attr("data-prePopup")?configuratorCare.showPrePopup(m,g):configuratorCare.showPopup(m,g)):(ba.push(q.finalCareList[qa]),configuratorCare.setProductInfo(ba))});c.buyingToolOptCare.on("click","#pd-samsung-care-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.drawObj,ba=q.care.isSmcType2,J=g.util,fa=g.siteCode,qa=J.hasCareResult(g,m);q.careResult.dataModelCode="none";g.util.checkAddToCart(g,m);qa?(ba?la.triggerChange(g.popupReturnObj.closest("li").find(".open-grid").get(0)):
g.popupReturnObj&&la.triggerChange(g.popupReturnObj.get(0)),"pt"===fa?(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"===fa?(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",
"remove-care"),confirmPopup(q,"delete")):"ro"===fa||"it"===fa?(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")),
J.settingCommonPopupTagging("care",g,m)):ba&&$(this).closest(".pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(ia,Aa){$(Aa).hasClass("hidden")||$(Aa).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()});
$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-care"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var q=g.util,ba=g.view,J=g.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);J.care.isSmcType2&&(g.popupReturnObj.get(0).checked=!1,$(".option-care ul.pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(fa,
qa){$(qa).hasClass("hidden")||$(qa).addClass("hidden")}));la.triggerChange(document.querySelector("#pd-samsung-care-0"));ba.careResultDraw(J);q.totalAfterFunction(g,m);g.globalServiceInfo.care&&delete g.globalServiceInfo.care})}function b(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptEmbedAddon.on("click","ul li input, .embed-addon-add",m,function(g){var q=$(this),ba=g.data.sharedObj,J=ba.globalServiceInfo;g=g.data.selectorObj;var fa=ba.util;$("#priceCurrency").val();var qa=0<$(".option-embed-addon .add-on-product-list-wrap--vd").length?
$(".option-embed-addon .add-on-product-list-wrap--vd"):$(".option-embed-addon .add-on-product-list-wrap"),ia=parseFloat(qa.attr("data-total-price")),Aa=parseFloat(qa.attr("data-total-sale-price")),Ia=q.closest("li").find(".add-on-product__final-price"),Fa=q.closest("li").find(".add-on-product__original-price"),Da=q.closest("li").find(".add-on-product__saving-price");parseFloat(Ia.attr("data-price"));Fa=Da.attr("data-save-price")?parseFloat(Fa.attr("data-original-price")):parseFloat(Ia.attr("data-price"));
Ia=parseFloat(Ia.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 Ga="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");Da=ba.drawObj.embedAddon.itemSet;for(var Sa=[],La=$jscomp.makeIterator(Da),ma=La.next();!ma.done;ma=La.next())Sa.push(ma.value.modelCode);var Oa="";La=!1;"checkbox"===
q.attr("type")?La=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")),La=!0):(q.addClass("cta--outlined"),q.removeClass("cta--contained"),q.attr("aria-label","Add"),q.text(Granite.I18n.get("Add")),La=!1);q.blur();ba.clickEmbedAddon=!0;La?(J.embedaddon&&0<J.embedaddon.length?J.embedaddon.push(Ga):J.embedaddon=[Ga],qa.attr("data-total-price",ia+Fa),qa.attr("data-total-sale-price",
Aa+Ia),Da.filter(function(Ca){Ca.modelCode===Ga&&ba.embedAddonSelected.push(Ca)})):(J.embedaddon=J.embedaddon.filter(function(Ca){return Ca!==Ga}),qa.attr("data-total-price",ia-Fa),qa.attr("data-total-sale-price",Aa-Ia),ba.embedAddonSelected=ba.embedAddonSelected.filter(function(Ca){return Ca.modelCode!==Ga}));ba.embedAddonSelected.forEach(function(Ca){Ca.summaryPrice=""+Ca.finalPrice});ba.drawObj.price.summaryArea.embedAddonSelected=ba.embedAddonSelected;0<$("#personalizeMyTv").length&&(ba.pmtModelList=
ba.pmtModelList.filter(function(Ca){return!Sa.includes(Ca)}),J.embedaddon.forEach(function(Ca){ba.pmtModelList.push(Ca)}),ba.pmtModelList.forEach(function(Ca){Oa.includes("\x26option\x3d")||ba.pmtURL.includes("\x26option\x3d")||(Oa+="\x26option\x3d");Oa+=Ca+","}),ba.pmtURL||(ba.pmtURL=$("#personalizeMyTv .cta").attr("href")),$("#personalizeMyTv .cta").attr("href",ba.pmtURL+Oa.slice(0,-1)));fa.totalAfterFunction(ba,g)});c.buyingToolOptEmbedAddon.on("click",".cta-learn-more",m,function(g){g=$(this).attr("data-model-idx");
var q=a.drawObj.embedAddon.itemSet[g],ba=q.thirdPASeller,J=q.categorySubType;g=$("#addOnLayerPopupLearnMore");g.find(".add-on-popup__title").html(J);J=q.imgSrcList;var fa="";for(qa in J)fa+='\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"'+N(J[qa],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+N(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"'+
N(J[qa],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+N(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"centeredSlidesBounds": true, "followFinger": '+
(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'+fa+'\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';
g.find(".add-on__learn-more-images").html(qa);J&&1===J.length&&g.find(".swiper-container").attr("");qa="";fa="GPv2"===$("#shopIntegrationFlag").val();var ia="Hybris-new"===$("#shopIntegrationFlag").val();J="Hybris-intg"===$("#shopIntegrationFlag").val();fa=!fa&&!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 Aa in J)"Y"===
J[Aa].key&&(qa+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+J[Aa].value+"\x3c/li\x3e")}else if(fa&&q.vd3PAMarketingMessage&&0<q.vd3PAMarketingMessage.length)for(Aa=$jscomp.makeIterator(q.vd3PAMarketingMessage),J=Aa.next();!J.done;J=Aa.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(Aa=$jscomp.makeIterator(q.uspText),J=Aa.next();!J.done;J=Aa.next())qa+='\t\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+
J.value+"\x3c/li\x3e";Aa="";if(q.keySummary&&0<q.keySummary.length)for(J=$jscomp.makeIterator(q.keySummary),fa=J.next();!fa.done;fa=J.next())fa=fa.value,"feature"===fa.displayType.toLowerCase()&&(Aa+='\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"'+
N(fa.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+N(fa.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+fa.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"'+N(fa.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+N(fa.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+fa.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'+fa.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
ba='\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;fa=q.reviewCount;J||(J=0);ia=Math.pow(10,1);J=Math.round(J*ia)/ia;var Ia=
parseFloat(J).toFixed(1);ia=parseInt(J);var Fa=parseInt(100*(Ia-ia));"0.0"!==Ia&&(J=Ia);Ia='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Da=0;Da<ia;Da++)Ia+='\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(Ia+='\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:'+
Fa+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',Fa=4;Fa>ia;Fa--)Ia+='\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++)Ia+='\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';Ia+='\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+
Granite.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"+(fa?fa: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'+Ia+"\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=
"";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':
"")+"\n\t\t\t\t"+(Aa?'\x3cul class\x3d"add-on__learn-more-feature-icon"\x3e\n\t\t\t\t\t'+Aa+"\n\t\t\t\t\x3c/ul\x3e":"");g.find(".add-on__learn-more-content").html(q);la.buyingTool.openAddOnLearnMore(document.querySelector("#addOnLayerPopupLearnMore"))});c.buyingToolOptEmbedAddon.on("click",".add-on-product__view-btns-wrap button",m,function(g){la.buyingTool.viewMoreVDAddOn()})}function r(a,c){c.buyingToolOptSMBQuantity.on("click",".smb-count",{sharedObj:a,selectorObj:c},function(m){m=Number($("#counterText").val());
a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("propertychange change keyup paste","#counterText",function(m){m=$(this);var g=m.val().replace(/[^0-9].*/,"");m.val(g);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 H(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#gift-card-amount-0, #gift-card-amount-1",a,function(m){var g=m.data.sharedObj;m=
m.data.selectorObj;g.giftCard.amountValid=!0;g.giftCard.selectedPrice=$(this).data("price");g.util.settingPriceDraw(g,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 g=m.data.sharedObj;m=m.data.selectorObj;var q=g.giftCard.inputAmount;q<g.giftCard.minPrice||q>g.giftCard.maxPrice||0<q%g.giftCard.priceIncrement?(g.giftCard.amountValid=!1,g=Granite.I18n.get("Please enter only numbers. {0} {1}",
[g.giftCard.minPriceFormatted,g.giftCard.maxPriceFormatted]),$(".pd-select-option--gift-card .text-field-v2__text").text(g),$(".pd-select-option--gift-card .text-field-v2__text.error").show()):(g.giftCard.amountValid=!0,$(".pd-select-option--gift-card .text-field-v2__text.error").hide(),$("#gift-card-amount-2").attr("data-price",g.giftCard.inputAmount),g.giftCard.selectedPrice=$("#gift-card-amount-2").attr("data-price"),g.util.settingPriceDraw(g,m))});$("#gift-card-amount-0").click()}function N(a,
c,m,g){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/")),
q=ba+a));g&&-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"]');
$(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(g){if(a.btnClickFlagAddCartContinue&&
!ha(g.data.sharedObj)){var q=g.data.sharedObj;g=g.data.selectorObj;var ba=q.siteCode,J=q.util,fa=$("#shopIntegrationFlag").val();J.checkingDeliveryCode(q,g)&&m++;if(1===m&&J.checkingDeliveryCode(q,g)&&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"===fa||"Hybris-intg"===fa||"in"===ba?q.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
window.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"]',
c,function(g){if(!ha(g.data.sharedObj)){var q=g.data.sharedObj;g=g.data.selectorObj;var ba=q.util,J=$("#shopIntegrationFlag").val();ba.checkingDeliveryCode(q,g)&&m++;1===m&&ba.checkingDeliveryCode(q,g)&&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):
window.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"]',
c,function(g){a.clickTarget=$(this);ha(g.data.sharedObj)||(g=g.data.sharedObj,g.util.checkingSamsungCare(g)&&g.afterEvent.checkOutCta(null,!0))});$(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"]',
c,function(g){a.clickTarget=$(this);if(!ha(g.data.sharedObj)){var q=g.data.sharedObj,ba=q.util;if(ba.checkingDeliveryCode(q,g.data.selectorObj)){var J,fa;console.log("Is Extended warranty available? ",null==q?void 0:null==(J=q.drawObj)?void 0:null==(fa=J.warrantyVd)?void 0:fa.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?
ba.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&&(g=$(this).parent().attr("class"),"pd-buying-price__cta"==g?d(a,digitalData,".pd-buying-price__cta .cta","pdd01_anchor nav-product detail-cta-cart page"):"cost-box__cta"==g&&d(a,digitalData,".cost-box__cta .cta","header(pim)_price bar-product detail-button-cart"))});$(document).off("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"]');$(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(g){a.clickTarget=$(this);ha(g.data.sharedObj)||(g=g.data.sharedObj,
g.util.checkingSamsungCare(g)&&g.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(g){mailformPopup.showPopup()})}function d(a,c,m,g){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":g,
"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,
"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(g){g=g.data.sharedObj.siteCode;if("in"===g||"id"===g)g=$(this),g.val(g.val().replace(/[^0-9]/g,""))});c.buyingToolOptDelivery.on("keyup","#delivery-zipcode",m,function(g){var q=g.data.sharedObj,ba=g.data.selectorObj,J=q.siteCode,fa=q.util,qa=$(this),ia=$(ba.buyingToolOptDelivery).find("#delivery-zipcode").val()||"",Aa=$(ba.buyingToolOptDelivery).find(".check-zipcode");
"in"===J&&6===ia.length?Aa.removeClass("cta--disabled"):Aa.addClass("cta--disabled");13===g.which||"us"===J&&5===ia.length||"in"==J&&6===ia.length&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?fa.deliveryGetApiData(q,ba):"ae"!==J&&"ae_ar"!==J&&"us"!==J&&(qa.val(qa.val().replace(/[^\d].+/,"")),(48>g.which||57<g.which)&&g.preventDefault())});c.buyingToolOptDelivery.on("click",".check-zipcode",m,function(g){a.util.deliveryGetApiData(a,c)});c.buyingToolOptDelivery.on("keypress",
"#delivery-zipcode",m,function(g){var q=g.data.sharedObj.siteCode,ba=$(this);"ae"!==q&&"ae_ar"!==q&&"us"!==q&&(ba.val(ba.val().replace(/[^\d].+/,"")),(48>g.which||57<g.which)&&g.preventDefault())});c.buyingToolOptDelivery.on("click",".text-field-v2__input-icon.delete",m,function(g){var q=g.data.sharedObj.siteCode;g=$(g.data.selectorObj.buyingToolOptDelivery).find(".check-zipcode");"in"===q&&g.addClass("cta--disabled")});c.buyingToolOpt.on("click",".remove-delivery",m,function(g){var q=g.data.sharedObj;
g=g.data.selectorObj;var ba=q.util,J=q.drawObj,fa=q.view;"in"===q.siteCode&&(J.delivery.ctaClass="cta--disabled",$(g.buyingToolOptDelivery).find(".check-zipcode").addClass("cta--disabled"));ba.hasDeliveryResult(q,g)&&(J.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]},$.cookies.del("HA-Deeplink-Zipcode",{domain:".samsung.com"}),$("#delivery-zipcode").val(""),fa.deliveryResultDraw(J));J.delivery.priorityDeliveryText&&$(g.buyingToolOptDelivery).find(".pd-select-option__tooltip").show();
$(g.buyingToolOptDeliveryPickupStore).hide()});la.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(g){g.preventDefault();g=$(this).attr("href");var q=$(".eip-popup");0<q.length&&(q.find("iframe").attr("src",g),window.sg.components.eipPopup.showPopup())});c.buyingToolCalculate.on("click",".js-install-calc.eip-ee-cal",m,function(g){g.preventDefault();installmentPlansData.getPaymentData(a.proudctPriceInfo.salePrice,
c.buyingToolCalculate.find(".js-install-calc.eip-ee-cal").get(0))})}function z(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptOffer.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(g){g.preventDefault();var q=$(this),ba=q.attr("href");g=$(".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<g.length&&(q=$("#storeWebDomain").val()+ba,g.find("iframe").attr("src",q),window.sg.components.eipPopup.showPopup()):
window.sg.components.financePopup.showEmiPopup(a.modelCode,q):0<g.length&&(g.find("iframe").attr("src",ba),window.sg.components.eipPopup.showPopup())});c.buyingToolOptOfferText.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(g){g.preventDefault();g=$(this);var q="in"!==a.siteCode?g.attr("href"):$("#storeWebDomain").val()+g.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||
"vn"===a.siteCode||"th"===a.siteCode?window.sg.components.financePopup.showEmiPopup(a.modelCode,g):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,
c){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(g){g=$(this).attr("data-store-id");callUsPrivateStore(g,{sharedObj:a,selectorObj:c},a.util.selectedUsEpp);window.sg.components.usEppDiscount.closeLayer()})}function P(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"manufacturerInfoPopup"]',
m,function(g){0<$(".manufacturer-info-popup").length&&window.sg.components.manufacturerInfoPopup.showPopup()});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"cancelReturnPolicyPopup"]',m,function(g){g=$(".cancel-return-policy-popup");if(0<g.length){var q=a.returnPolicyText;g.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(g){g=$(".warranty-policy-popup");
if(0<g.length){var q=a.warrantyText;g.find(".warranty-policy-popup__text").html(q);window.sg.components.warrantyPolicyPopup.showPopup()}})}function S(a,c){var m=a.siteCode;c=a.apiDomain;var g=a.shopSkuCode,q=a.pdMultiLanguageYN,ba=a.pdHrefLang;a.tradeInFlag&&"fr"!==m&&"in"!==m&&(a={sku:g},ya&&(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",
data: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 g=c.stockLevelStatus,q=c.siteCode,ba=c.util,J=ba.hasBetweenResult(c,m),fa=ba.hasBetweenResult(c,m);m=ba.hasAcessory(c,m);ba=c.hasGift;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,2);var qa=[],ia="",Aa=!1;if("INSTOCK"==g||"BACKORDERED"==
g||"PREORDER"==g)if(J?(Aa=!0,ia=Granite.I18n.get("Checkout"),qa.push("checkout"),qa.push("between")):fa?"uk"!==q&&"de"!==q?(Aa=!0,ia=Granite.I18n.get("Checkout"),qa.push("checkout")):qa.push(a):qa.push(a),m||ba)if(!c.isEmbedAddOn||c.isEmbedAddOn&&c.hasGift)Aa=!0,ia="pl"===q?Granite.I18n.get("Add to cart"):Granite.I18n.get("Buy now"),"PREORDER"==g&&(ia=Granite.I18n.get("pre order")),qa.push("continue");return{title:ia,ctaType:qa.join(" "),isSpecial:Aa}}function ha(a){return a.isStorePopup?(confirmPopup(Granite.I18n.get("This product is available to buy in store. Please contact store representative. Thank You!"),
"error"),!0):!1}var ka=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),la=ka.ux2.PDPHeaderUI,ua=ka.ux2.PriceBar,ya="true"===$("#isEppPage").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(),
c.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(ya){var g=[];for(q in a.addOnApiList.care.list)a.addOnApiList.care.list[q].price_info&&g.push(a.addOnApiList.care.list[q]);a.finalCareList=g}else a.finalCareList=a.addOnApiList.care.list}else if(a.addOnApiList&&a.addOnApiList.careAndWarranty)for(g in a.addOnApiList.careAndWarranty.list){var q=
a.addOnApiList.careAndWarranty.list[g];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);g=a.financeFlag;q=a.siteCode;ba=a.promotionFinancingFlag;var J=a.totalPrice.sale,fa=a.util,qa=a.view,ia=Granite.I18n.get("Calculate Finance"),Aa=a.drawObj,Ia=fa.getEmiUrl(a,c),Fa=!1,Da={};"Y"===g&&""!==financingUrl&&"in"!==q&&("uk"===q||"id"===q||"sk"===q||"cz"===q?ba&&(Fa=!0,
Da=fa.getAttrCta(ia,Ia,"_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||"kz_kz"===q||"kz_ru"===q?J&&100<J&&(Fa=!0,Da=fa.getAttrCta(ia,Ia,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"ee"===q||"lv"===q?(Fa=!0,Da=fa.getAttrCta(ia,Ia,"_self","js-install-calc eip-ee-cal",{layerTarget:"eipEEPopup"},"")):(Fa=!0,Da=fa.getAttrCta(ia,Ia,"_self","js-install-calc",
{layerTarget:"eipPopup"},"")));Aa.calculator={hasComponent:Fa,emiAttr:Da};qa.emiDraw(Aa);ba=a.util;J=c.buyingToolOptOffer;g=$(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);g.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();
window.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();la.gallery.init();la.buyingTool.bindPdTooltipEvent()};pa.prototype.deliveryGetApiData=
function(a,c){var m=$(c.buyingToolOptDelivery),g=a.drawObj,q=m.find("#delivery-zipcode").val(),ba=a.view,J=a.siteCode,fa=a.shopSkuCode,qa=a.commonApiModel,ia="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();q?"in"===J&&6>q.length?(g.delivery.errorMessage="Please enter a valid Pincode",g.delivery.inputAttr.value=q,ba.deliveryDraw(g),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()):(g.delivery.errorMessage=null,g.delivery.inputAttr.value=q,$(m).find(".text-field-v2__text.error").hide(),ba.deliveryDraw(g),a.isMigrationHybris?"in"===J?(ia&&$.cookies.set("deliveryPincode",q,{domain:".samsung.com",path:"/"+J}),qa.deliveryNewInAPI(a,c,q,null==a.fulfillmentSku?fa:a.fulfillmentSku)):qa.deliveryNewBybrisAPI(a,c,q,fa):"in"===J?$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(Aa,
Ia,Fa){g.delivery.time=Fa.getResponseHeader("Date");qa.deliveryInAPI(a,c,q,null==a.fulfillmentSku?fa:a.fulfillmentSku)}}):"us"===J?qa.deliveryUsAPI(a,c,q,fa):qa.deliveryAPI(a,c,q,fa)):(J=Granite.I18n.get("Enter your zipcode"),g.delivery.errorMessage=J,g.delivery.inputAttr.value=q,ba.deliveryDraw(g),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())};
pa.prototype.selectedUsEpp=function(a){var c=a.sharedObj;a=a.selectorObj;var m=$.cookies.get("tmktid",{domain:".samsung.com"}),g=$.cookies.get("tsgmt",{domain:".samsung.com"});m&&(c.drawObj.usEppData.title="with "+g+" 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,g=c.care.itemSet,q=a.finalCareList,ba=a.samsungCareBadgeList,J={},fa=c.care.items,qa=c.care.useOneDepthPrice,
ia=0,Aa=1;if(c.care.isSmcType2){var Ia=!1,Fa=!1,Da={};for(va in q){var Ga=q[va],Sa=Ga.modelCode;if(!J[Sa]){Da.$jscomp$loop$prop$isTheft$347=Ga.isTheft;var La={},ma=Granite.I18n.get("Samsung Care+"),Oa="",Ca="",Ka="",Qa="",Na="",Ua="",Ra="",Va="",Y="",ja=null,za=null,Ba="",Ha="";Ga.displayName&&(ma=Ga.displayName);Ga.price_info&&Ga.price_info[0]&&(La=Ga.price_info[0],ja=La.msrp_price,za=La.sale_price,Ka=La.saveText);ja&&ja.duration_value&&ja.paymentcycle_value&&0<ja.duration_value&&null!=ja.paymentcycle_value&&
"monthly"==ja.paymentcycle_value.toLowerCase()&&(Va=ja.duration_value,Y=ja.paymentcycle_value.toLowerCase());ja&&ja.freeMonths_value&&(Ra=ja.freeMonths_value);za&&za.duration_value&&za.paymentcycle_value&&0<za.duration_value&&null!=za.paymentcycle_value&&"monthly"==za.paymentcycle_value.toLowerCase()&&(Va=za.duration_value,Y=za.paymentcycle_value.toLowerCase());null!=ja&&"undefined"!==typeof ja.wasValue?(ja&&null!=ja.value&&(Ua=ja.value,Ba=ja.wasValue,ja.formatted_value&&(Oa=ja.formatted_value),ja.formatted_wasValue&&
(Ha=ja.formatted_wasValue)),za&&za.value?(za.value&&(Na=za.value),za.formatted_value&&(Ca=za.formatted_value),Ua&&Ua===Na&&(Oa="")):Ca=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||"it"===a.siteCode)&&Va&&Y?Granite.I18n.get("{0}/month {1}",[Oa,Va]):("ch"===a.siteCode||"ch_fr"===a.siteCode||"ro"===a.siteCode||"at"===a.siteCode||"cz"===a.siteCode||"pt"===a.siteCode)&&Va&&Y?Granite.I18n.get("{0}/Mon",Oa):Oa,Ga.flags&&
Ga.flags.is_subscription&&"ro"!=a.siteCode&&"cz"!=a.siteCode&&(Ca=Granite.I18n.get("{0}/month",Ca)),0!=parseFloat(Ba)&&null!=Ba&&(Ca="\x3cdel\x3e"+Ha+"\x3c/del\x3e\x3cem\x3e"+Ca+"\x3c/em\x3e")):(ja&&ja.value&&(Ua=ja.value,ja.formatted_value&&(Oa=ja.formatted_value)),za&&za.value?(za.value&&(Na=za.value),za.formatted_value&&(Ca=za.formatted_value),Ua&&Ua===Na&&(Oa="")):Ca=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||
"it"===a.siteCode)&&Va&&Y?Granite.I18n.get("{0}/month {1}",[Oa,Va]):Oa,Ga.flags&&Ga.flags.is_subscription&&(Ca=Granite.I18n.get("{0}/month",Ca)),Na&&Ua&&Ua!==Na&&(Qa="\x3cdel\x3e"+Oa+"\x3c/del\x3e"));Na="";0<ba.length&&ba[va].product_tags&&ba[va].product_tags[0]&&(Na=ba[va].product_tags[0]);Ba=null!==Ba&&ja&&"undefined"!==typeof ja.wasValue?ja.wasValue:"";"es"==siteCode&&"monthly"==Y&&(Ca=-1<Ca.indexOf("\x3cem\x3e")?Ca.replace(/<\/em>/g,"/mes\x3c/em\x3e"):Ca+"/mes");"monthly"===Y&&null!=Ra&&"0"!=
Ra&&""!=Ra?"se"===siteCode?Ca="0 kr/m\u00e5n i "+Ra+" m\u00e5n, d\u00e4refter "+Ca:"no"===siteCode?Ca="0 kr/mnd i "+Ra+" mnd, deretter "+Ca:"dk"===siteCode?Ca="0 kr./md. i "+Ra+" mdr., derefter "+Ca:"fi"===siteCode?Ca="0 \u20ac/kk "+Ra+" kk ajan, sen "+Ca:"ae"===siteCode?Ca="0 AED for "+Ra+" months then "+Ca+"/mo":"ae_ar"===siteCode?Ca="0.00 \u062f.\u0625 \u0644\u0645\u062f\u0629 "+Ra+" \u0645\u0646 \u0627\u0644\u0623\u0634\u0647\u0631 \u062b\u0645"+Ca+"/\u0634\u0647\u0631\u064a\u0627\u064b":"uk"===
siteCode||"fr"===siteCode||"ro"===siteCode?(Ca=Ca.substring(0,Ca.indexOf("/")),Ca=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ra,Ca])):"it"===siteCode&&(Ca=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ra,Ca])):"monthly"!==Y||null!=Ra&&"0"!=Ra&&""!=Ra||("uk"===siteCode?(Ca=Ca.substring(0,Ca.indexOf("/")),Ca=Granite.I18n.get("freeMonths_null {0}/month",[Ca])):"ae"===siteCode?Ca+="/month":"ae_ar"===siteCode&&(Ca+="/\u0641\u064a \u0627\u0644\u0634\u0647\u0631"));"de"==siteCode&&"monthly"!=
Y&&(Ca+=Granite.I18n.get("SC+ Popup Bundle upfront price"));Da.$jscomp$loop$prop$itemObj$348={index:ia,optionName:ma,optionSalePrice:Ca,optionOriPrice:Qa,optionSavePrice:Ka,optionOriWasPrice:Ba,specialText:Ga.long_description,badge:Na,paymentCycle:Y,oriPriceValue:Ua,summary:Ga.summary,cycle:Ga.cycle,freeMonths:Ra};g.push(Da.$jscomp$loop$prop$itemObj$348);Ga.displayName=ma;La.formattedPrice=Ca;La.formattedDelPrice=Oa;J[Sa]=Sa;ia++;!Ia&&Da.$jscomp$loop$prop$isTheft$347?(Ia=[],Ia="at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?
G(4,function(Ea){Ea.forEach(function(Ja,ta){Ea[ta]="theft-"+Ja})}):["ae","ae_ar"].includes(siteCode)?G(5,function(Ea){Ea.forEach(function(Ja,ta){Ea[ta]="theft-"+Ja})}):["ro","tr"].includes(siteCode)?G(6,function(Ea){Ea.forEach(function(Ja,ta){Ea[ta]="theft-"+Ja})}):G(5),Da.$jscomp$loop$prop$tempDescList$343=[],Da.$jscomp$loop$prop$tempDescListIdex$344=0,Ia.forEach(function(Ea){return function(Ja,ta){0>Granite.I18n.get(Ja).indexOf("descListText")&&(Ea.$jscomp$loop$prop$tempDescList$343[Ea.$jscomp$loop$prop$tempDescListIdex$344]=
Granite.I18n.get(Ja),Ea.$jscomp$loop$prop$tempDescListIdex$344++)}}(Da)),Ia=Da.$jscomp$loop$prop$tempDescList$343,fa.push({index:Aa,isTheft:Da.$jscomp$loop$prop$isTheft$347,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:Ia}),Ia=!0,Aa++):Fa||Da.$jscomp$loop$prop$isTheft$347||(Fa=[],Fa="at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?
G(4,function(Ea){Ea.forEach(function(Ja,ta){Ea[ta]="damage-"+Ja})}):["ae","ae_ar"].includes(siteCode)?G(5,function(Ea){Ea.forEach(function(Ja,ta){Ea[ta]="damage-"+Ja})}):["ro","tr"].includes(siteCode)?G(6,function(Ea){Ea.forEach(function(Ja,ta){Ea[ta]="damage-"+Ja})}):G(5),Da.$jscomp$loop$prop$tempDescList$63$345=[],Da.$jscomp$loop$prop$tempDescListIdex$64$346=0,Fa.forEach(function(Ea){return function(Ja,ta){0>Granite.I18n.get(Ja).indexOf("descListText")&&(Ea.$jscomp$loop$prop$tempDescList$63$345[Ea.$jscomp$loop$prop$tempDescListIdex$64$346]=
Granite.I18n.get(Ja),Ea.$jscomp$loop$prop$tempDescListIdex$64$346++)}}(Da)),Fa=Da.$jscomp$loop$prop$tempDescList$63$345,fa.push({index:Aa,isTheft:Da.$jscomp$loop$prop$isTheft$347,optionName:Granite.I18n.get("Accidental Damage"),paymentCycle:Y,optionSalePrice:"",optionOriPrice:Qa,optionSavePrice:Ka,depthOneBtnTitle:Granite.I18n.get("Accidental Damage CTA Button"),descList:Fa}),Fa=!0,Aa++);$.map($.grep(fa,function(Ea){return function(Ja,ta){return Ja.isTheft===Ea.$jscomp$loop$prop$isTheft$347}}(Da)),
function(Ea){return function(Ja,ta){Ja.itemSet||(Ja.itemSet=[]);Ja.itemSet.push(Ea.$jscomp$loop$prop$itemObj$348)}}(Da))}Da={$jscomp$loop$prop$tempDescList$343:Da.$jscomp$loop$prop$tempDescList$343,$jscomp$loop$prop$tempDescListIdex$344:Da.$jscomp$loop$prop$tempDescListIdex$344,$jscomp$loop$prop$tempDescList$63$345:Da.$jscomp$loop$prop$tempDescList$63$345,$jscomp$loop$prop$tempDescListIdex$64$346:Da.$jscomp$loop$prop$tempDescListIdex$64$346,$jscomp$loop$prop$isTheft$347:Da.$jscomp$loop$prop$isTheft$347,
$jscomp$loop$prop$itemObj$348:Da.$jscomp$loop$prop$itemObj$348}}1!=fa[0].isTheft&&fa.reverse();qa&&u(fa)}else for(Da in q){var va=q[Da];fa=va.modelCode;if(!J[fa]){qa={};Aa=Granite.I18n.get("Samsung Care+");ma=La=Y=Qa=Ga=Ka="";Ia=!1;Fa=Oa="";Ca=Sa=null;Ra=Ua="";va.displayName&&(Aa=va.displayName);va.price_info&&va.price_info[0]&&(qa=va.price_info[0],Sa=qa.msrp_price,Ca=qa.sale_price,Qa=qa.saveText);Sa&&Sa.duration_value&&Sa.paymentcycle_value&&0<Sa.duration_value&&null!=Sa.paymentcycle_value&&"monthly"==
Sa.paymentcycle_value.toLowerCase()&&(Oa=Sa.duration_value,Fa=Sa.paymentcycle_value.toLowerCase());Ca&&Ca.duration_value&&Ca.paymentcycle_value&&0<Ca.duration_value&&null!=Ca.paymentcycle_value&&"monthly"==Ca.paymentcycle_value.toLowerCase()&&(Oa=Ca.duration_value,Fa=Ca.paymentcycle_value.toLowerCase());"it"===a.siteCode&&Ca&&Ca.paymentcycle_value&&(Fa=Ca.paymentcycle_value.toLowerCase());if(null!=Sa&&"undefined"!==typeof Sa.wasValue){if(Sa&&Sa.value||("ch"===a.siteCode||"ch_fr"===a.siteCode||"sa"===
a.siteCode||"sa_en"===a.siteCode)&&0==Sa.value)ma=Sa.value,Ua=Sa.wasValue,Sa.formatted_value&&(Ka=Sa.formatted_value),Sa.formatted_wasValue&&(Ra=Sa.formatted_wasValue);"uk"!==a.siteCode&&"tr"!==a.siteCode||0!=parseFloat(Sa.value)?(Ca&&Ca.value?(Ca.value&&(La=Ca.value),Ca.formatted_value&&(Ga=Ca.formatted_value),ma&&ma===La&&(Ka="")):Ga=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Oa&&Fa?Granite.I18n.get("{0}/month {1}",
[Ka,Oa]):Ka,va.flags&&va.flags.is_subscription&&(Ga=Granite.I18n.get("{0}/month",Ga)),La&&ma&&ma!==La&&("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Oa&&Fa&&(Ga=Granite.I18n.get("{0}/month {1}",[Ga,Oa]))):Ga=Granite.I18n.get("Free");"it"===a.siteCode&&0==parseFloat(Sa.value)?(Ga=$("#priceCurrency").val(),Ia=!0,Ga=currencyComma(parseFloat(Sa.value),Ga).replace(",00","")):0==parseFloat(Ua)||null==Ua||!ya&&"tr"===
a.siteCode||(Ga="\x3cdel\x3e"+Ra+"\x3c/del\x3e\x3cem\x3e"+Ga+"\x3c/em\x3e")}else Sa&&Sa.value&&(ma=Sa.value,Sa.formatted_value&&(Ka=Sa.formatted_value)),Ca&&Ca.value?(Ca.value&&(La=Ca.value),Ca.formatted_value&&(Ga=Ca.formatted_value),ma&&ma===La&&(Ka="")):Ga=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Oa&&Fa?Granite.I18n.get("{0}/month {1}",[Ka,Oa]):Ka,va.flags&&va.flags.is_subscription&&(Ga=Granite.I18n.get("{0}/month",
Ga)),La&&ma&&ma!==La&&(("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Oa&&Fa&&(Ga=Granite.I18n.get("{0}/month {1}",[Ga,Oa])),Y="nl"===a.siteCode||"be"===a.siteCode||"be_fr"===a.siteCode||"de"===a.siteCode?Granite.I18n.get("From {0}","\x3cdel\x3e"+Ka+"\x3c/del\x3e"):"jp"===a.siteCode?"(\u5272\u5f15\u524d\u4fa1\u683c : "+Ka+")":"\x3cdel\x3e"+Ka+"\x3c/del\x3e");Sa="";0<ba.length&&ba[Da].product_tags&&ba[Da].product_tags[0]&&
(Sa=ba[Da].product_tags[0]);La="";a.isGpv2?va.inventory&&va.inventory.status&&(La=va.inventory.status.toLowerCase()):va.otherParameters&&isNotEmpty(va.otherParameters.stockLevelStatus)&&(La=va.otherParameters.stockLevelStatus.toLowerCase());g.push({index:ia+1,prePopup:Ia,optionName:Aa,optionSalePrice:Ga,optionOriPrice:Y,optionSavePrice:Qa,specialText:va.long_description,badge:Sa,isAlMese:Ga&&"it"==a.siteCode&&"monthly"==Fa?!0:!1,isNoAlMese:!Ga||"it"==a.siteCode&&"monthly"==Fa?!1:!0,paymentCycle:"fr"==
a.siteCode?Fa:"",stockStatus:"in"==a.siteCode&&"outofstock"==La?"OOS":""});va.displayName=Aa;qa.formattedPrice=Ga;qa.formattedDelPrice=Ka;J[fa]=fa;ia++}}m.productAddOnCare(c)};pa.prototype.checkAddToCart=function(a,c){var m=a.util,g=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"===
g.careResult.dataModelCode)?!0:!1:!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,c);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);U(a,c);R(a,c);y(a,c);wa(a,c);da(a,c);ra(a,c);O(a,c);L(a,c);na(a,c);Z(a,c);M(a,c);t(a,c);z(a,c);I(a,c);P(a,c);X(a,c);V(a,c);oa(a,c);ea(a,c);b(a,c);H(a,c);r(a,c)};pa.prototype.getQuerystring=
function(a){for(var c=window.location.search.substring(1).split("\x26"),m=0;m<c.length;m++){var g=c[m].split("\x3d");if(g[0]===a)return g[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,"").replace("  "," ")};pa.prototype.addClass=function(a,c){return a+(" "+c)};pa.prototype.merge=function(a,c,m,g){g=void 0===g?"":g;if(m&&(a[c]?$.extend(a[c],m):(a[c]=m,a[c].apiType=""),a=a[c],g&&(a.apiType+=" "+g),a.price_info&&0<a.price_info.length)){g=$("#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 fa=m.msrp_price.formatted_value;null===fa&&
(fa=currencyComma(ba,g),m.msrp_price.formatted_value=fa)}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,g),J=Granite.I18n.get("Save {0}",J,c)),ba=m.sale_price.value,fa=m.sale_price.formatted_value,null===fa&&(fa=currencyComma(ba,g),m.sale_price.formatted_value=
fa));m.saveText=J;if("nl"===c||"be"===c||"be_fr"===c)m.list_price&&m.list_price.formatted_value&&(m.list_price.formatted_value=deleteCurrency(m.list_price.formatted_value,g).trim()),m.msrp_price&&m.msrp_price.formatted_value&&(m.msrp_price.formatted_value=deleteCurrency(m.msrp_price.formatted_value,g).trim()),m.sale_price&&m.sale_price.formatted_value&&(m.sale_price.formatted_value=deleteCurrency(m.sale_price.formatted_value,g).trim())}}};pa.prototype.removeElement=function(a){for(var c in a){var m=
a[c];m&&0<m.length&&($(a).html="",$(a).hide())}};pa.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"),0<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=function(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))};pa.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,g=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?g:"pl"===m||"hu"===m||"lt"===m||"ro"===m||"bg"===m||"ua"===m?q:"ee"===m||"lv"===m?"javascript:void(0);":
g+"/?total\x3d"+c+"\x26page\x3dpdp"};pa.prototype.removeDisabledElement=function(a,c){a=$(a);c=c.disabledClass;a&&0<a.length&&a.removeClass(c)};pa.prototype.settingExchangeAPIData=function(a,c,m,g){var q=c.util,ba=c.drawObj,J=c.siteCode,fa=q.hasForeverResult(c,m),qa=q.hasForever(c,m),ia="",Aa="",Ia="",Fa=0,Da=0,Ga=0,Sa=0,La="",ma="",Oa="";if(a){a.device_info&&(a.device_info.name&&(Aa=a.device_info.name),a.device_info.brand&&(Ia=a.device_info.brand));"CE"==c.tradeInType&&(a.device_info&&(ma=a.device_info.product_condition,
Oa=a.device_info.category),a.partner&&(La=a.partner));var Ca="";Ia&&(Ca+=Ia);Ca&&(Ca+=" | ");Aa&&(Ca+=Aa);a.estimated_discount&&(a.estimated_discount.exchange_discount&&(Da=parseFloat(a.estimated_discount.exchange_discount.amount)),a.estimated_discount.exchange_value&&(Fa=parseFloat(a.estimated_discount.exchange_value.amount)),a.estimated_discount.total&&(Ga=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=m.buyingToolOptTradeIn.find("#pd-trade-in-0").attr("data-total-price"),Ga=parseFloat(J)));a.estimated_discount&&a.estimated_discount.special_discount&&a.estimated_discount.special_discount.amount&&(Sa=parseFloat(a.estimated_discount.special_discount.amount));"CE"==c.tradeInType?c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Ca,isUpfront:!a.delayed_gratification,specialDiscount:Sa,exchangePrice:Fa,addtionalPrice:Da,totalPrice:Ga,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,partner:La,productCondition:ma,
productCategory:Oa,tradeupCurrency:ia}:(c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Ca,isUpfront:!a.delayed_gratification,specialDiscount:Sa,exchangePrice:Fa,addtionalPrice:Da,totalPrice:Ga,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,tradeupCurrency:ia},a.withCeTradeUpPopup&&(c.exchangeApiData.withCeTradeUpPopup=!0));q.exchangeResultDraw(c,m);qa&&q.foreverDraw(c,m);fa&&g.galaxyForeverResultDraw(ba);q.totalAfterFunction(c,m)}};pa.prototype.exchangeResultDraw=function(a,c){var m=a.view,g=a.util,
q=a.priceCurrency,ba=a.drawObj,J=a.siteCode,fa=g.hasOffer(a,c),qa=g.hasForeverResult(a,c),ia=a.exchangeApiData,Aa=ia.modelAndBrand,Ia=ia.exchangePrice,Fa=ia.addtionalPrice,Da=ia.totalPrice,Ga=ia.isUpfront,Sa=ia.partner,La=ia.productCondition,ma=ia.productCategory,Oa=!1,Ca=!1,Ka=0,Qa=ia.dataQuoteId;fa&&(Oa=g.hasBogo(a,c),Ca=g.hasComboResult(a,c));if(ia.exchangeFlag){fa=Ia?Oa||Ca||qa?Da-Fa:Da:Da;g=currencyComma(fa,q);Ga?(Ka=fa,Ia=g+"("+Granite.I18n.get("Instant Discount")+")"):Ia=g+"("+Granite.I18n.get("Assured Value")+
")";qa&&"in"===J&&ia.foreverId&&(Qa=ia.foreverId);qa=".siel-trade-in-popup-option__condition-check-desc-"+La;Fa="";"CE"==a.tradeInType&&La&&(Fa="Television"!=ma&&"average"==La?"Average":La[0].toUpperCase()+La.slice(1,La.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"+Da+" on your old product \x3cbr\x3e By: \x3cstrong\x3e"+Sa+"\x3cstrong\x3e",description:"Actual Exchange discount will depend upon Product Evaluation results",
tooltip:Fa+"(\u20b9"+Da+")\x3cbr\x3e "+$(qa).text(),dataQuoteId:Qa,isUpfront:Ga,discountText1:Ia,dataPrice:Ka};else{if("uk"===J){J="Get "+currencyComma(Da,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(Da,q)+"\x3c/span\x3e for recycling your refrigerator\x3c/strong\x3e";break;case "08010000":J=
"Get "+currencyComma(Da,q)+"\x3c/span\x3e for recycling your laundry device\x3c/strong\x3e";break;case "08070000":J="Get "+currencyComma(Da,q)+"\x3c/span\x3e for recycling your vacuum\x3c/strong\x3e";break;case "07010000":J="Get "+currencyComma(Da,q)+"\x3c/span\x3e for recycling your monitor\x3c/strong\x3e"}ba.tradeInResult={hasComponent:!0,discountText1:Ia,description:J,dataPrice:Ka,dataQuoteId:Qa,isUpfront:Ga}}}else ia.withCeTradeUpPopup?(q="b2c_"+a.ceTradeUpPopup.productCategoryGroup,a=a.ceTradeUpPopup.productCategoryMainType,
"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,g=currencyComma(fa,a),a="eur"===a.toLowerCase()?h(fa):l(fa),g=g+" / "+a),Ia=CeTradeUpPopup.config.view.showDiscountAmount.inResultBanner?Granite.I18n.get(CeTradeUpPopup.config.shop.isCashbackSite?'"{0}" (Assured Value)':'"{0}" (Instant Discount)',[g],q):"",a="",CeTradeUpPopup.config.view.showDiscountAmount.inResultDescription&&(a=Granite.I18n.get("Get {0} off you order instantly for recycling your device",
[g],q)),ba.tradeInResult={hasComponent:!0,discountText1:Ia,description:a,dataPrice:Ka,dataQuoteId:Qa,isUpfront:Ga}):ba.tradeInResult={hasComponent:!0,displayModelName:Granite.I18n.get("Your Trade-in")+" : "+Aa,discountText1:Ia,description:Granite.I18n.get("*Actual trade-in discount might differ from estimated discount."),dataPrice:Ka,dataQuoteId:Qa,isUpfront:Ga};la.triggerChange(document.querySelector("#pd-trade-in-0"));m.tradeInResultDraw(ba);null!==ba.deliveryResult.priorityText&&!0===ba.tradeInResult.isUpfront?
$(c.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==ba.deliveryResult.priorityText&&!1===ba.tradeInResult.isUpfront&&$(c.buyingToolOptDeliveryResult).find(".delivery-priority").show();la.buyingTool.bindPdTooltipEvent()}};pa.prototype.foreverDraw=function(a,c){var m=a.foreverFinanceInfo,g=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,fa=a.drawObj,
qa=a.priceCurrency,ia=a.view,Aa=a.util;c=Aa.hasTradeInResult(a,c);var Ia=a.drawObj.tradeInResult.dataPrice,Fa=0;a={};c&&(Fa=Ia,m.tradeinCheckFlag=!0,m.tradeinprice=Ia,m.tradeinDiscountYn=0==Ia?!0:!1);g=(g+J-Fa-q)/ba;m.foreverPrice=g;a.layerTarget="#hubble-forever-learnmore-layer";Aa=Aa.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(g,qa),ba]);fa.galaxyForever={hasComponent:m.foreverFlag,
title:Granite.I18n.get("Galaxy Forever"),description:ba,learnMoreCta:Aa,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(fa)};pa.prototype.optionExposureRule=function(a,c){switch(a.siteCode){case "uk":if(a.categoryTypeCode.startsWith("01")){var m={tariffOption:["upgrade","warranty"],tradeIn:["upgrade"],
upgrade:["tariffOption","tradeIn","combo","accessory"],care:[],warranty:[],combo:["upgrade"]};var g={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"]},
g={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,g);break;case "de":m={tariffOption:["tradeIn","upgrade","care","warranty","calculate"],tradeIn:["tariffOption","warranty"],upgrade:["tariffOption","warranty"],care:["tariffOption","warranty"],warranty:["tariffOption",
"tradeIn","upgrade","care"]};g={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,g);break;case "fr":m={tariffOption:["tradeIn","between"],tradeIn:["financing","tariffOption"],between:"care warranty bogo combo financing accessory tariffOption".split(" "),
care:["between","warranty"],warranty:["between","care"]};g={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,g);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(" "),
care:["tariffPlan","between"],warranty:["tariffPlan","between"],combo:["tariffPlan","between"]};g={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,g);break;case "in":m=
{forever:["accessory"]};g={};this.checkingDiabledEnabled(a,c,m,g);break;case "it":m={between:["accessory","care","tradeIn"]};g={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,g);break;case "ru":m={between:["accessory","care","tradeIn"]};g={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,g);break;case "es":m={upgrade:["accessory","care","tradeIn"]};g={accessory:["upgrade"],care:["upgrade"],tradeIn:["upgrade"]};
this.checkingDiabledEnabled(a,c,m,g);break;case "au":m={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},g={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},this.checkingDiabledEnabled(a,c,m,g)}};pa.prototype.checkingDiabledEnabled=function(a,c,m,g){var q=a.drawObj,ba={tariffOption:this.disabledTariffOption,tradeIn:this.disabledTradeIn,
upgrade: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,
calculate: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,
forever:this.hasForeverResult(a,c)};for(var fa in m)if(q[fa])for(var qa=$jscomp.makeIterator(m[fa]),ia=qa.next();!ia.done;ia=qa.next()){ia=ia.value;la.isDebug&&console.log("[HDD02] Disable component: "+ia);var Aa=ba[ia];Aa?Aa.call(this,a,c):console.warn("[HDD02] Disable handler not exists: "+ia)}else for(qa=$jscomp.makeIterator(m[fa]),ia=qa.next();!ia.done;ia=qa.next()){ia=ia.value;Aa=g[ia];var Ia=!1,Fa;for(Fa in Aa){if(Ia)break;q[Aa[Fa]]&&(Ia=!0)}Ia||(la.isDebug&&console.log("[HDD02] Enable component: "+
ia),(Aa=J[ia])?Aa.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=
function(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,g=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=$(c.buyingToolOptOffer.find(".pd-offer__selected-bundle-wrap"));this.disabledOptionElement(g,a);for(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");
this.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,g=a.disabledClass;if("Hybris-new"==$("#shopIntegrationFlag").val())void 0!=a.drawObj.offer.gift.item&&a.drawObj.offer.gift.item.bundleList&&(m=
!0);else if(a=$(c.buyingToolOptOffer.find(".pd-offer__item.giftBundle")),0<a.length&&!$(a.get(0)).hasClass(g))for(g=0;g<a.length;g++)if(0<$(a.get(g)).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=
a.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=
function(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,g=a.selectedClass;c=c.buyingToolOptTariffPlan;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)&&c.hasClass(g)};pa.prototype.addTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.addClass(a.selectedClass)};pa.prototype.removeTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.removeClass(a.selectedClass);
this.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,
a)};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,g=a.selectedClass;a=a.disabledClass;c=$(c.buyingToolOptBetween);return c.hasClass(m)&&!c.hasClass(a)&&c.hasClass(g)};pa.prototype.addBetweenResult=function(a,c){$(c.buyingToolOptBetween).addClass(a.selectedClass)};pa.prototype.removeBetweenResult=function(a,c){$(c.buyingToolOptBetween).removeClass(a.selectedClass)};
pa.prototype.disabledWarranty=function(a,c){var m=a.view,g=a.drawObj;c=c.buyingToolOptWarranty;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);g.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};m.warrantyResultDraw(g)};pa.prototype.enabledWarranty=function(a,c){c=c.buyingToolOptWarranty;this.removeDisabledAllElement(c,
a);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,
a);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)};
pa.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,
c){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=
a.disabledClass;c=c.buyingToolOptNewAssuredBuyBackResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.disabledCare=function(a,c){var m=a.view,g=a.drawObj;c=c.buyingToolOptCare;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);g.careResult={hasComponent:!1,description:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,price:null,disclaimer:null,savedPrice:null};m.careResultDraw(g)};pa.prototype.enabledCare=
function(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,g=a.drawObj;c=c.buyingToolOptUpgrade;this.disabledOptionElement(c,
a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);g.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};m.upgradeResultDraw(g)};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=
function(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,g=a.drawObj;c=c.buyingToolOptTradeIn;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);g.tradeInResult={hasComponent:!1,displayModelName:null,discountText1:null,discountText2:null,discountText3:null,description:null,dataPrice:null,dataCashBack:null,dataQuoteId:null,dataId:[]};m.tradeInResultDraw(g)};
pa.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,g=a.drawObj;
c=c.buyingToolOptTariff;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);g.tariffOptionResult={hasComponent:!1,description:null,dataPrice:null,price:null,disclaimer:null,dataSimskuCode:null,dataModelCode:null,dataId:null};m.tariffOpionResultDraw(g)};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;
return 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=
function(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,g){g=void 0===g?{}:g;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 g)m[J]=g[J];return m};pa.prototype.getAttrCta=
function(a,c,m,g,q,ba){q=void 0===q?{}:q;ba=void 0===ba?"new-window":ba;var J={};g=[g];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.isNotOutLink=null,g.push(ba),J.title=a):(J.isOutLink=null,J.isNotOutLink=!0);J.class=g.join(" ");for(var fa in q)"anla"==fa?J["an-la"]=q[fa]:J[fa]=q[fa];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=
{"\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="",g=$("#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&&(g=g.replace("/image/",
"/content/")),m=g+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 g=!1;0<a.length&&(g=a.hasClass(m)&&!a.hasClass(c));
return g};pa.prototype.settingPriceDraw=function(a,c){function m(ac){var Ec='\x3cp role\x3d"listitem" class\x3d"battery-tax-disclaimer-html"\x3e*'+ac.batteryInformativeTaxes+"\x3c/p\x3e",zc='\x3cp role\x3d"listitem" class\x3d"green-tax-disclaimer-html"\x3e*'+ac.greenInformativeTaxes+"\x3c/p\x3e",Ac=$("#disclaimer.text-editor--feature-bottom-disclaimer").find("div").last();Ac.length&&ac.batteryTaxShowSpecificationArea&&Ac.not(":has(.battery-tax-disclaimer-html)").append(Ec);Ac.length&&ac.greenTaxShowSpecificationArea&&
Ac.not(":has(.green-tax-disclaimer-html)").append(zc)}var g=a.siteCode,q=a.util,ba=a.view,J=a.drawObj,fa=J.between.hasComponent,qa=a.proudctPriceInfo,ia=a.priceCurrency,Aa=$("#shopIntegrationFlag").val(),Ia=q.hasBetweenResult(a,c),Fa=q.hasFinancing(a,c),Da=a.paymentMethods,Ga=c.buyingToolPriceBar.find(".cost-box__badge"),Sa=c.buyingToolPriceBar.find(".cost-box__new-badge"),La=q.hasUpgradeResult(a,c),ma=J.price.priceWrapper,Oa=a.proudctPriceInfo.orignalPriceFormatted,Ca=a.proudctPriceInfo.salePriceFormatted,
Ka=a.proudctPriceInfo.rowCodeformattedPriceSave,Qa=ma.info.summaryPrice,Na=a.drawObj.careResult.dataPaymentcycle,Ua=parseFloat(qa.orignalPrice),Ra=parseFloat(qa.salePrice),Va=qa.salePriceFormatted,Y=Ua-Ra;a.getOptoinPrice=!1;1<qa.productCartCount&&(Ua=parseFloat(qa.orignalPrice)*qa.productCartCount,Ra=parseFloat(qa.salePrice)*qa.productCartCount,Va=currencyComma(Ra,ia),Y=Ua-Ra,a.getOptoinPrice=!0);var ja={original:Ua,sale:Ra,saved:Y};J.priceAnchor.priceWrapper.info={};J.price.priceWrapper.info={};
ma.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 za=a.selectedBezelColor,Ba=0,Ha=0;if("Hybris-new"===Aa)za&&(za.hasOwnProperty("price")&&(Ba=za.price.value),Ha=za.hasOwnProperty("promotionPrice")?0<za.promotionPrice.value&&za.promotionPrice.value<Ba?za.promotionPrice.value:Ba:Ba);else if("Hybris"===Aa||"Hybris-intg"===
Aa)za.hasOwnProperty("price")&&null!=za.price&&(Ba=za.price),Ha=za.hasOwnProperty("promotionPrice")&&null!=za.promotionPrice?0<za.promotionPrice&&za.promotionPrice<Ba?za.promotionPrice:Ba:Ba;a.sellingWithBazel?(ja.original=parseFloat(ja.original),ja.sale=parseFloat(ja.sale)):(ja.original=parseFloat(ja.original)+parseFloat(Ba),ja.sale=parseFloat(ja.sale)+parseFloat(Ha));ja.saved=parseFloat(ja.original)-parseFloat(ja.sale)}if(0<Ga.length){ma.hasEnergyLabel=!0;var va=Ga.find(".cost-box__pf-link"),Ea=
Ga.find(".badge"),Ja=Ga.find(".badge-repairability a"),ta=Sa.find(".badge-repairability img"),xa={};0<va.length&&(va=$(va.get(0)),ma.ficheAttr=this.getAttrCta(va.text(),va.attr("href"),va.attr("target")));0<Ea.length&&(Ea=$(Ea.get(0)),ma.hasEnergyLabel=!0,ma.labelAttr=this.getAttrCta(Ea.find(".hidden").text(),Ea.attr("href"),Ea.attr("target"),Ea.attr("class")),ma.labelAttr.spanClass=Ea.find(".badge__grade--with-text").attr("class"));0<Ja.length&&(Ja=$(Ja.get(0)),ta=$(ta.get(0)),xa.desktopSrc=ta.attr("data-desktop-src"),
xa.mobileSrc=ta.attr("data-mobile-src"),$("#anchorContainer").hasClass("bg-black")&&(xa.desktopSrc=xa.desktopSrc.replace("Light_83x50","Dark_60x36"),xa.mobileSrc=xa.desktopSrc.replace("Light_130x78","Dark_88x52")),xa.alt=ta.attr("alt"),xa.anla=Ja.attr("an-la"),ma.repairAttr=this.getAttrCta(Ja.text(),Ja.attr("href"),Ja.attr("target"),"",xa))}if(0<Sa.length){ma.hasNewEnergyLabel=!0;var Xa=Sa.find(".badge-energy-label__text"),Ta=Sa.find(".badge-energy-label__badge"),Pa=Sa.find(".badge-repairability a"),
Wa=Sa.find(".badge-repairability img");xa={};0<Xa.length&&(Xa=$(Xa.get(0)),ma.ficheAttr=this.getAttrCta(Xa.text(),Xa.attr("href"),Xa.attr("target")));0<Ta.length&&(Ta=$(Ta.get(0)),ma.hasNewEnergyLabel=!0,ma.labelAttr=this.getAttrCta(Ta.text(),Ta.attr("href"),Ta.attr("target"),Ta.attr("class")),ma.labelAttr.spanClass=Ta.attr("class"));0<Pa.length&&(Pa=$(Pa.get(0)),Wa=$(Wa.get(0)),xa.desktopSrc=Wa.attr("data-desktop-src"),xa.mobileSrc=Wa.attr("data-mobile-src"),$("#anchorContainer").hasClass("bg-black")&&
(xa.desktopSrc=xa.desktopSrc.replace("Light_83x50","Dark_60x36"),xa.mobileSrc=xa.desktopSrc.replace("Light_130x78","Dark_88x52")),xa.alt=Wa.attr("alt"),xa.anla=Pa.attr("an-la"),ma.repairAttr=this.getAttrCta(Pa.text(),Pa.attr("href"),Pa.attr("target"),"",xa))}if(ma.hasPriceWrapper){"ae"!==g&&"ae_ar"!==g&&aa(Va,fa,c);var ab="",Ya="";if("nl"===g||"be"===g||"be_fr"===g)ab="From",ma.info.fromText=ab;"de"===g&&(Ya="From",ma.info.fromText=Ya);qa.usEppPrice&&(ja.sale=parseFloat(ja.sale)-parseFloat(qa.usEppPrice));
x(a,c,ja);T(a,c,ja);B(a,c,ja);w(a,c,ja);e(a,c,ja);"au"!==g&&"se"!==g&&"no"!==g&&"fi"!==g&&"dk"!==g&&"uk"!==g&&K(a,c,ja);ca(a,c,ja);A(a,c,ja);n(a,c,ja);k(a,c,ja);f(a,c,ja);"uk"!==g&&"au"!==g||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&&ma.info.useTooltip&&(ja.monthly=4,ja.monthlyPrice=this.formattingPrice(ja.sale/ja.monthly));if(qa.monthlyPriceInfo&&
qa.monthlyPriceInfo.monthlyPrice&&"tr"===g){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 bb="be"===g||"be_fr"===g||"nl"===g||"fr"===g;if("ro"==g||"bg"==g){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);
var 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 pb,kb=null!=(pb=null==qa?void 0:qa.greenInformativeTaxesAreaToShow)?
pb:[];kb.includes("priceArea")&&(J.price.priceWrapper.info.greenTaxShowPriceArea=!0);kb.includes("specification")&&(J.price.priceWrapper.info.greenTaxShowSpecificationArea=!0)}m(J.price.priceWrapper.info)}if(Ia&&!bb){var gb=c.buyingToolOptBetween.find("#pd-leasing-1"),yb=gb.attr("data-tenure-unit"),Eb=parseFloat(gb.attr("data-tenure-value")),hb=parseFloat(gb.attr("data-monthly-value")),Kb=parseFloat(gb.attr("data-payment-value"));ma.info.totalPrice="it"===g?Granite.I18n.get("Advance")+" "+currencyComma(Kb,
ia)+" "+Granite.I18n.get("Monthly fee of")+" "+currencyComma(hb,ia)+" "+Granite.I18n.get("for")+" "+yb+" "+Granite.I18n.get("months"):"ru"===g?Granite.I18n.get("{0}/month",currencyComma(hb,ia)):currencyComma(Kb,ia)+" + "+Eb+" x "+currencyComma(hb,ia)+"/"+Granite.I18n.get(yb)}else if(La){if("es"===g)if(Ra&&0!=Ra){var sb=24,qb=((Ra-.1*Ra)/sb).toFixed(2),Fb=.1*Ra+((Ra-.1*Ra)/sb-qb)*sb;ma.info.totalPrice=currencyComma(Fb,ia)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(qb,ia))}else Ua&&0!=Ua&&
(sb=24,qb=((Ua-.1*Ua)/sb).toFixed(2),Fb=.1*Ua+((Ua-.1*Ua)/sb-qb)*sb,ma.info.totalPrice=currencyComma(Fb,ia)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(qb,ia)))}else{ab&&(ma.info.vatText="( "+Granite.I18n.get("VAT Included")+" )");Ya&&(ma.info.vatText=Granite.I18n.get("VAT Included"));if(0<ja.saved){if(a.getOptoinPrice)ma.info.totalPrice=currencyComma(ja.sale,ia),"se"==g&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(window.sg.components.SamsungFlexPopup.tradeUpEnabled&&
(window.sg.components.SamsungFlexPopup.priceNavigationBarPostTradeUp=ma.info.totalPrice,window.sg.components.SamsungFlexPopup.priceSummaryPostTradeUp=ma.info.totalPrice),ma.info.totalPrice=window.sg.components.SamsungFlexPopup.summaryPriceWithTradeUp),"fi"!==g&&"se"!==g&&"dk"!==g&&"no"!==g&&"ee"!==g&&"lv"!==g&&"lt"!==g||!Na||(ma.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&&
qa.monthlyPriceInfo.monthlyPrice){var cb=qa.monthlyPriceInfo.monthlyPrice,lb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,eb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==g?ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isLowestInstallmentInterest?(ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(cb,
ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===g&&(ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb]),ma.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb]))):"ro"===
g||"bg"===g?ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isMonthlySENA?ma.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb]):a.isSECZ?(ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(cb,ia)),ma.info.totalPriceAnchor=
Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)):ma.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+
Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if("id"==g)ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isLowestInstallmentInterest)ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,
ia);else if("hk"===g||"hk_en"===g)ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(cb,ia)]),ma.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[lb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ma.info.totalPriceMonthly;else if("hu"===g){var nb=parseInt(cb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),
Zb=1>parseFloat(eb)?(100*parseFloat(eb)).toString().slice(0,eb.length-1):eb;ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",nb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,Zb])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia)}else if("my"===g)ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isMonthlySENA)ma.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",
currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb]);else if("it"===g)ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ma.info.totalPriceMonthly;else if("ch"===g||"ch_fr"===g){var ob=Granite.I18n.get("{0}/mo at",currencyComma(cb,ia)),gc=Granite.I18n.get("{0} Monthly installments",lb),bc=Granite.I18n.get("total (installment)"),
Lb=currencyComma(ja.sale,ia);ma.info.totalPrice=ob+" "+gc+", "+bc+" "+Lb}else ma.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(cb,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,
ia);var Nb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&Nb.attr("data-leasing-price",ma.info.totalPrice);a.isLeasingPrice=ma.info.totalPrice}else"hr"!=g?ma.info.totalPrice=currencyComma(ja.sale,ia):"hr"==g&&(ma.info.totalPrice=Ca.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==g&&(a.savingInformation?(ma.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,ma.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ma.info.savePrice=
a.savingValue+" "+Granite.I18n.get("off"),ma.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")):(ma.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ma.info.orignalPrice="",ma.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext=
"",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==g&&a.taxPriceDisplay&&(ma.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&&(ma.info.orignalPrice=
Granite.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"==g&&1==a.isNewElementLowestWasPriceSetting?(ma.info.orignalPrice=currencyComma(ja.original,ia),J.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(ja.original,ia),ma.info.hasLowestWasPrice=!0):(ma.info.orignalPrice=Granite.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"==g&&!0!==a.isNewElementLowestWasPriceSetting&&(J.priceAnchor.priceWrapper.info.orignalPrice="");else if("pe"!==g&&"cl"!==g&&"mx"!==g&&"co"!==g||!qa.monthlyPriceInfo.monthlyPrice||(J.priceAnchor.priceWrapper.info.disclaimer="*Aplican condiciones"),"ca"===g||"ca_fr"===g)"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"!=g&&"bg"!=g)if("jp"==g)ma.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(!ya||"pl"!==g||a.isNewElementLowestWasPrice)!0!==a.isNewElementLowestWasPrice||!1!==a.isNewElementLowestWasPriceSetting||"at"===g||a.hasFrequentPrice?(ma.info.orignalPrice=currencyComma(ja.original,ia),"at"==g?(ma.info.orignalPrice=
Oa,J.priceAnchor.priceWrapper.info.orignalPrice=Oa):"hr"==g||"si"==g||"lv"==g||"lt"==g||"ee"==g||"pt"==g?J.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(ja.original,ia):"ua"==g?(ma.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="cz"==g||"sk"==g?1==a.isNewElementLowestWasPriceSetting?currencyComma(ja.original,
ia):"":sa+currencyComma(ja.original,ia)+Ma,ma.info.hasNoLowestWasPrice=!1,ma.info.hasLowestWasPrice=!0,"pl"==g&&!0===a.isNewElementLowestWasPriceSetting)?(ma.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:")):"cz"!==g&&"sk"!==g||!0!==a.isNewElementLowestWasPriceSetting?"it"==g&&!0===a.isNewElementLowestWasPriceSetting||"at"!=g||!0!==a.isNewElementLowestWasPriceSetting||
(ma.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:")):J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price in last 30 days"):(ma.info.orignalPrice="",J.priceAnchor.priceWrapper.info.orignalPrice="")}else if("ro"==g||"bg"==g){ma.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"==g){var Ob="eur"===a.priceCurrency.toLowerCase()?h(ja.original):l(ja.original);J.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(ja.original,ia))+" / "+Ob}q.hasTradeInResult(a,c)&&(J.priceAnchor.priceWrapper.info.orignalPrice="",ma.info.orignalPrice="")}"br"==g&&(a.savingInformation?(ma.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ma.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),
ma.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")):(ma.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ma.info.orignalPrice="",ma.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=
"",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText));"ar"==g&&a.taxPriceDisplay&&(ma.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay);this.setSamcolVatFreePrice(a)}if(""===ab&&!this.hasComponent(c.buyingToolOptTariffResult,a))if("in"===g&&(ma.info.orignalPriceAddText="MRP: "+ma.info.orignalPrice+" (Incl. of all taxes)"),"hu"===g&&!0===a.isNewElementLowestWasPriceHuType&&!0===a.isNewElementLowestWasPriceSettingHuType&&(ma.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:")+" "+a.proudctPriceInfo.wasPriceFormatted+"("+v(ja.original,ja.sale,a.proudctPriceInfo.wasPrice)+"%)"),"ca"===g||"ca_fr"===g)"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"!==g&&"bg"!==g){"br"===g?a.savingInformation?(ma.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ma.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ma.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")):(ma.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ma.info.orignalPrice="",ma.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText):"co"===g&&!0===a.vatEligible?(ma.info.savePrice="",J.priceAnchor.priceWrapper.info.savePrice=""):!0===a.isNewElementLowestWasPrice&&!1===a.isNewElementLowestWasPriceSetting?(J.priceAnchor.priceWrapper.info.savePrice=
"",ma.info.savePrice=""):(ma.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)),"pl"==g&&!0===a.isNewElementLowestWasPriceSetting)?(ma.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:")):"cz"!==g&&"sk"!==g||!0!==a.isNewElementLowestWasPriceSetting?"it"==g&&!0===a.isNewElementLowestWasPriceSetting?(ma.info.savePrice=Granite.I18n.get("Save the {0}%",
p(ja.saved,ja.original)),J.priceAnchor.priceWrapper.info.savePrice=Granite.I18n.get("Save the {0}%",p(ja.saved,ja.original))):"at"==g&&!0===a.isNewElementLowestWasPriceSetting&&(ma.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:")):J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price in last 30 days");if(ya&&"pl"===g){var Hb=
"";0<qa.listPrice&&(Hb=" "+currencyComma(qa.listPrice,ia),J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+Hb)}this.setSamcolVatFreePrice(a)}if("it"===g&&ya){var cc=window.sg.epp.common.eppDiscountRate(qa.b2cPrice,qa.salePrice),nc=Granite.I18n.get("Price at Samsung.it: {0}",[currencyComma(qa.b2cPrice,ia)]),oc=Granite.I18n.get("You save {0}%",[cc]);0!=cc&&(ma.info.eppDiscountText=nc,ma.info.eppDiscountRateText=oc,J.priceAnchor.priceWrapper.info.eppDiscountText=nc,J.priceAnchor.priceWrapper.info.eppDiscountRateText=
oc)}"au"!==g&&"fi"!==g&&"se"!==g&&"dk"!==g&&"no"!==g&&"ee"!==g&&"lv"!==g&&"lt"!==g||!a.isHybrisSplitPDTariff||(ma.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)));"fr"==g&&a.drawObj.tariffOptionResult.hasComponent&&(ma.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)));var Pb=q.hasTradeInResult(a,c);"fr"==g&&Pb&&a.commonTradein&&(J.price.priceWrapper.info.hasLowestWasPrice=!0,J.price.priceWrapper.info.hasNoLowestWasPrice=!1,ma.info.savePrice=Granite.I18n.get("Save {0}",
currencyComma(ja.saved,ia)),ma.info.orignalPrice=currencyComma(ja.original,ia),J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma);"fr"===g&&(J.tradeIn.hasComponent&&ma.info.useTooltip?(ma.info.useTooltip=!0,ma.info.monthly=ja.monthly,ma.info.monthlyPrice=currencyComma(ja.monthlyPrice,ia),ma.info.monthlyPriceText=Granite.I18n.get("from")+" "+ma.info.monthly+" x "+ma.info.monthlyPrice+" "+Granite.I18n.get("free of charge or")):ma.info.nonTooltip=!0);-1!==$.inArray(g,["dk",
"fi","se","no","ee"])&&Pb&&(J.price.priceWrapper.info.withTradeIn=""+Granite.I18n.get("with trade-in"),J.priceAnchor.priceWrapper.info.disclaimer=""+Granite.I18n.get("with trade-in"));ma.info.unformattedSavePrice=ja.saved}else{if("nl"===g||"be"===g||"be_fr"===g)a.isMigrationHybris?0<qa.listPrice&&(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia)):qa.orignalPrice<qa.listPrice&&(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+
" "+currencyComma(qa.listPrice,ia));"in"===g&&(ma.info.orignalPriceAddText="MRP: "+currencyComma(ja.original,ia)+" (Incl. of all taxes)");if(ya&&"pl"===g){var pc="";0<qa.listPrice&&(pc=" "+currencyComma(qa.listPrice,ia),J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+pc)}"pe"!==g&&"cl"!==g&&"mx"!==g&&"co"!==g||!qa.monthlyPriceInfo.monthlyPrice||(J.priceAnchor.priceWrapper.info.disclaimer="*Aplican condiciones");if(ja.original){!a.getOptoinPrice&&Ca?a.isBezel||a.giftCard.isGiftCard?
(ma.info.totalPrice=currencyComma(ja.sale,ia),"hr"==g&&a.isBezel&&(ma.info.totalPrice=ma.info.totalPrice.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e"))):("hr"!=g?ma.info.totalPrice=Ca:"hr"==g&&(ma.info.totalPrice=Ca.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==g&&(a.savingInformation?(J.price.priceWrapper.info.hasLowestWasPrice=!0,ma.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+
a.savingInformation,ma.info.orignalPrice=sa+currencyComma(ja.original,ia)+Ma,ma.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ma.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")):(ma.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",
ma.info.orignalPrice="",ma.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==g&&a.taxPriceDisplay&&(ma.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a)):ma.info.totalPrice=currencyComma(ja.original,ia);if(!a.getOptoinPrice&&qa.monthlyPriceInfo&&qa.monthlyPriceInfo.monthlyPrice){var rb=qa.monthlyPriceInfo.monthlyPrice,
jb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,Gb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==g?ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+Ca:a.isLowestInstallmentInterest?(ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Gb])+" "+Granite.I18n.get("or")+" "+
currencyComma(ja.sale,ia),"pl"===g&&(ma.info.totalPrice=Ca,ma.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Gb]),ma.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Gb]))):"ro"===g||"bg"===g?ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+
" "+currencyComma(ja.sale,ia):a.isMonthlySENA?ma.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]):a.isSECZ?(ma.info.totalPrice=Ca,ma.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(rb,ia)),ma.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+Ca):ma.info.totalPrice=
"tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+Ca;else if("id"==g)ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(rb,ia))+" "+
Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isLowestInstallmentInterest)ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Gb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if("hk"===g||"hk_en"===g)ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(rb,ia)]),
ma.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=ma.info.totalPriceMonthly;else if("hu"===g)nb=parseInt(rb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),Zb=1>parseFloat(Gb)?(100*parseFloat(Gb)).toString().slice(0,Gb.length-1):Gb,ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",nb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Zb])+" "+
Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia);else if("my"===g)ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isMonthlySENA)ma.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]);else if("it"===g)ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",
currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ma.info.totalPriceMonthly;else if("ch"===g||"ch_fr"===g){var hc=Granite.I18n.get("{0}/mo at",currencyComma(rb,ia)),tb=Granite.I18n.get("{0} Monthly installments",jb),qc=Granite.I18n.get("total (installment)"),mb=currencyComma(ja.sale,ia);ma.info.totalPrice=hc+" "+tb+", "+qc+" "+mb}else ma.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+
" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);var ub=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&ub.attr("data-leasing-price",ma.info.totalPrice);a.isLeasingPrice=ma.info.totalPrice}"fi"!==g&&"se"!==g&&"dk"!==g&&"no"!==
g&&"ee"!==g&&"lv"!==g&&"lt"!==g||!Na||(ma.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your Samsung Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));"fr"===g&&(J.tradeIn.hasComponent&&ma.info.useTooltip?(ma.info.useTooltip=!0,ma.info.monthly=ja.monthly,ma.info.monthlyPrice=currencyComma(ja.monthlyPrice,ia),ma.info.monthlyPriceText=Granite.I18n.get("from")+" "+ma.info.monthly+" x "+ma.info.monthlyPrice+" "+Granite.I18n.get("free of charge or")):
ma.info.nonTooltip=!0)}else"uk"!==g&&"au"!==g||!a.drawObj.tariffOptionResult.hasComponent||0!==ja.sale||(J.price.priceWrapper.info.summaryPrice=J.price.priceWrapper.info.totalPrice=currencyComma(ja.sale,ia))}if("in"==g&&a.promotionSalesPitch){var Ib=parseFloat(ja.sale)-parseFloat(a.promotionSalesPitch);ma.info.ceExchangePrice="From "+currencyComma(Ib,ia)+" with exchange*"}if(!ja.sale&&!ja.original&&a.proudctPriceInfo.orignalPriceFormatted&&("uk"!==g&&"au"!==g||!a.drawObj.tariffOptionResult.hasComponent||
0!==ja.sale))if(Ca!==Oa&&(ma.info.orignalPrice=Oa),Ka&&(ma.info.savePrice=Ka),qa.monthlyPriceInfo&&qa.monthlyPriceInfo.monthlyPrice){var fb=qa.monthlyPriceInfo.monthlyPrice,zb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,Qb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if("id"==g)ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(fb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Ca;else if(a.isLowestInstallmentInterest)ma.info.totalPrice=
Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[zb,Qb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===g&&(ma.info.totalPrice=Ca,ma.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[zb,Qb]),ma.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
[zb,Qb]));else if("hk"===g||"hk_en"===g)ma.info.totalPrice=currencyComma(ja.sale,ia),ma.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(fb,ia)]),ma.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=ma.info.totalPriceMonthly;else if("hu"===g)nb=parseInt(fb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),
Zb=1>parseFloat(Qb)?(100*parseFloat(Qb)).toString().slice(0,Qb.length-1):Qb,ma.info.totalPrice=Granite.I18n.get("pd From {0}/mo",nb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[zb,Zb])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia);else if("ro"===g||"bg"===g)ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("or")+" "+Ca;else if("my"===g)ma.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("or")+
" "+Ca;else if(a.isMonthlySENA)ma.info.totalPrice=Ca+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[zb]);else if(a.isSECZ)ma.info.totalPrice=Ca,ma.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(fb,ia)),ma.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Ca;else if("it"===g)ma.info.totalPrice=Ca,
ma.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Ca,J.priceAnchor.priceWrapper.info.totalPriceMonthly=ma.info.totalPriceMonthly;else if("ch"===g||"ch_fr"===g){var Xb=Granite.I18n.get("{0}/mo at",currencyComma(fb,ia)),rc=Granite.I18n.get("{0} Monthly installments",zb),ic=Granite.I18n.get("total (installment)"),vb=currencyComma(ja.sale,ia);ma.info.totalPrice=Xb+" "+rc+", "+ic+" "+vb}else ma.info.totalPrice=
"tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[zb])+" "+Granite.I18n.get("or")+" "+Ca;var wb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&wb.attr("data-leasing-price",ma.info.totalPrice);a.isLeasingPrice=
ma.info.totalPrice}else ma.info.totalPrice=Ca}J.price.priceWrapper.info.extraRewards=!1;if(a.extraRewardsSites){var Db=$jscomp.makeIterator(a.extraRewardsDate[g].split("-")),Yb=Db.next().value,jc=Db.next().value,Sb=function(ac){var Ec=parseInt(ac.substring(0,4)),zc=parseInt(ac.substring(4,6))-1;ac=parseInt(ac.substring(6,8));return(new Date(Ec,zc,ac)).setHours(0,0,0,0)},kc=new Date,dc=Sb(Yb),lc=Sb(jc),Mb=(new Date(kc.getUTCFullYear(),kc.getUTCMonth(),kc.getUTCDate())).setHours(0,0,0,0);Mb>=dc&&Mb<=
lc&&(J.price.priceWrapper.info.extraRewards=!0)}if(a.hasFrequentPrice){var Tb=a.proudctPriceInfo.frequentPrice,ec=a.proudctPriceInfo.frequentPriceFormatted?a.proudctPriceInfo.frequentPriceFormatted:currencyComma(Tb,ia);J.priceAnchor.priceWrapper.info.hasFrequentPrice=!0;J.priceAnchor.priceWrapper.info.orignalPrice=sa+ec+Ma}if("fr"===g&&Fa&&Da){var Ub=Da.simulation_plans,Ab="";if(Ub)for(var Vb in Ub){var Jb=Object.keys(Ub[Vb]);Ab=currencyComma(Ub[Vb][Jb].installment_amount.value,ia);ma.info.text?ma.info.text2=
Granite.I18n.get("{0} sans frais par Carte bancaire :**",Jb)+" "+Ab:ma.info.text=Granite.I18n.get("{0} sans frais par Carte bancaire :**",Jb)+" "+Ab}}"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(ma.info.savingInformation=a.savingInformation);a.useShippingOrBack&&a.shippingOrBack&&(ma.info.shippingOrBack=a.shippingOrBack);var mc="Hybris"===a.apiFlag||"Hybris-intg"===a.apiFlag;if(mc){a.stockLevelStatusDisplay&&""!=a.stockLevelStatusDisplay&&(ma.info.text2=a.stockLevelStatusDisplay);var Cb=
("Y"===globalShopInfo.shopServiceYN&&"Y"===a.isCart||"Hybris-intg"===a.apiFlag)&&"Y"!==a.oldProductYn,Wb=!0;mc&&("N"!==globalShopInfo.shopServiceYN&&a.oldHybrisSalesStatus||(Wb=!1));Cb&&globalShopInfo.reservedMsg&&"undefined"!=typeof globalShopInfo.reservedMsg&&null!=globalShopInfo.reservedMsg&&""!=globalShopInfo.reservedMsg&&(ma.info.text3=globalShopInfo.reservedMsg);Cb&&hybrisShopInfo.reservedMsg&&Wb&&"undefined"!=typeof hybrisShopInfo.reservedMsg&&null!=hybrisShopInfo.reservedMsg&&""!=hybrisShopInfo.reservedMsg&&
(ma.info.text3=hybrisShopInfo.reservedMsg);"tw"===g&&"PREORDER"===a.stockLevelStatus&&(ma.info.text3="");-1!==$.inArray(g,["no","dk","fi","se"])&&!0===Wb?"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=""+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"!==g&&"mx"!==g||!a.stockLevelStatusDisplay||""==a.stockLevelStatusDisplay||(ma.info.text3=a.stockLevelStatusDisplay);ma.info.summaryPrice=Qa;ma.info.salePriceFormatted=Ca?Ca:Oa;ma.info.orignalPrice!==ma.info.summaryPrice&&(ma.info.summaryPrice=ma.info.totalPrice);a.proudctPriceInfo.salesPitch&&
(ma.info.salesPitch=a.proudctPriceInfo.salesPitch);if(a.drawObj.tradeInResult.priceOverFlag&&("nl"===g||"be"===g||"be_fr"===g||"sg"===g||"vn"===g||"id"===g||"fr"===g||"de"===g||"sa"===g||"sa_en"===g||"kz_kz"===g||"kz_ru"===g||"cl"===g||"cn"===g||"tr"===g)&&(J.price.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia),J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia),"fr"==g&&(J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,
ia)),"cn"==g)){var Rb=a.hasComponentClass,$b=a.disabledClass,xb=c.buyingToolOptCareResult,db=xb.hasClass(Rb)&&!xb.hasClass($b),sc=xb.find(".result-price").attr("data-price"),Bb=c.buyingToolOptWarrantyVdResult,tc=Bb.hasClass(Rb)&&!Bb.hasClass($b),wc=Bb.find(".option-result__text-wrap").attr("data-price"),uc=a.minOrderEntryValue;db&&(uc+=parseFloat(sc));tc&&(uc+=parseFloat(wc));J.price.priceWrapper.info.totalPrice=currencyComma(uc,ia);J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(uc,ia)}ya&&
window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&window.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"===g)&&ma.info.totalPriceAnchor&&(J.priceAnchor.priceWrapper.info.totalPrice=ma.info.totalPriceAnchor);if(ma.info.totalPrice){var vc=currencyComma(ja.sale,ia);"gr"===g&&(vc=ma.info.salePriceFormatted);J.priceAnchor.priceWrapper.info.totalPrice=ma.info.totalPrice.replace(vc,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+vc+"\x3c/span\x3e")}a.isSENA&&qa&&qa.promotionPriceValidTo&&($(".cost-box__description.promotionPriceValidTo").show(),ma.info.promotionPriceValidTo=qa.promotionPriceValidTo);
if("at"==g)if(qa&&!1===(null==qa?void 0:qa.isFreeDeliveryCost)){ma.info.shippingCostPopup={};ma.info.isFreeDeliveryCost=!0;var xc;ma.info.shippingCostPopup.deliveryModes=null==qa?void 0:null==(xc=qa.shippingCostPopup)?void 0:xc.deliveryModes;var Bc;ma.info.shippingCostPopup.deliveryServices=null==qa?void 0:null==(Bc=qa.shippingCostPopup)?void 0:Bc.deliveryServices}else if(null==qa?0:qa.itsFreeDelivery)ma.info.itsFreeDelivery=!0;ya||"tr"!==g||(ma.info.hasLowestWasPrice=!1,ma.info.lowestWasPricetext=
"",ma.info.orignalPrice="",ma.info.savePrice="",J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.savePrice="");"cn"===g&&window.sg.components.dynamic.productInstallmentWithGiftPD.setInstallmentPrice(a,c);if(ma.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")+"\n                                          \x3c/div\x3e\n                                      \x3c/div\x3e";$("#disclaimer").find(".text-editor__inner").html(Fc)}if("bg"==g)if("eur"===a.priceCurrency.toLowerCase()){if(-1==J.price.priceWrapper.info.totalPrice.indexOf("\u043b\u0432")){var fc=ja.sale,yc=h(fc);J.price.priceWrapper.info.totalPrice+=" / "+yc;J.priceAnchor.priceWrapper.info.totalPrice+=" / "+yc}}else-1==J.price.priceWrapper.info.totalPrice.indexOf("\u20ac")&&
(yc=ja.sale,fc=l(yc),J.price.priceWrapper.info.totalPrice+=" / "+fc,J.priceAnchor.priceWrapper.info.totalPrice+=" / "+fc);ba.productPriceTotalDraw(J,a.isOptClicked);var Cc;"at"==g&&(null==(Cc=J.price.priceWrapper.info)?0:Cc.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&&!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):(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=!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&&
""!==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,
c.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,g=a.modelName,q=a.displayName,ba=a.pvitype.toLowerCase(),J=a.pvisubtype.toLowerCase(),fa=a.pimsubtype.toLowerCase(),qa=a.proudctPriceInfo.orignalPrice,ia=a.proudctPriceInfo.salePrice,Aa=a.imgUrl,Ia=a.skuId;$(document).find(".add-special-tagging").each(function(Fa,Da){!$(Da).attr("data-modelcode")&&
m&&$(Da).attr("data-modelcode",m);Aa&&$(Da).hasClass("tg-add-to-cart")&&$(Da).attr("data-imageurl",Aa);!$(Da).attr("data-modelname")&&g&&$(Da).attr("data-modelcode")&&-1<$(Da).attr("data-modelcode").indexOf(m)&&$(Da).attr("data-modelname",g.toLowerCase());!$(Da).attr("data-modelprice")&&ia&&$(Da).attr("data-modelcode")&&-1<$(Da).attr("data-modelcode").indexOf(m)&&$(Da).attr("data-modelprice",qa);!$(Da).attr("data-modelrevenue")&&ia&&$(Da).attr("data-modelcode")&&-1<$(Da).attr("data-modelcode").indexOf(m)&&
$(Da).attr("data-modelrevenue",qa);!$(Da).attr("data-discountprice")&&ia&&$(Da).attr("data-modelcode")&&-1<$(Da).attr("data-modelcode").indexOf(m)&&$(Da).attr("data-discountprice",ia);!$(Da).attr("data-modeldisplay")&&q&&$(Da).attr("data-modelcode")&&-1<$(Da).attr("data-modelcode").indexOf(m)&&$(Da).attr("data-modeldisplay",q.toLowerCase());!$(Da).attr("data-pvitype")&&ba&&$(Da).attr("data-pvitype",ba);!$(Da).attr("data-pvisubtype")&&J&&$(Da).attr("data-pvisubtype",J);!$(Da).attr("data-pimsubtype")&&
fa&&$(Da).attr("data-pimsubtype",fa);$(Da).attr("data-modelqty")||$(Da).attr("data-modelqty","1");!$(Da).attr("data-skuid")&&Ia&&$(Da).attr("data-skuid",Ia)});this.thirdPartyTagging(a,c,c.buyingToolOptTariff.find(".option-input"))};pa.prototype.settingPriceCta=function(a,c,m,g){var q=c.drawObj,ba=c.view,J=c.apiChangeStockStatus,fa=c.priceCurrency;if("Y"!==c.wtbCtaBtnYn){var qa=a,ia=c.util,Aa=c.drawObj,Ia=c.isSimplePDP,Fa=c.siteCode,Da=c.modelName,Ga=m.buyingToolOptTariffPlan.find("ul li"),Sa=c.modelCode,
La=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",ma=c.wtbSrc,Oa=c.imgUrl,Ca=c.wtbSubTypeCode,Ka=c.shopSkuCode,Qa=$(m.buyingToolOptTariffPlan),Na=ia.hasTariffPlanResult(c,m),Ua=Qa.find(".option-input.this-checked").attr("data-url"),Ra=$("#shopIntegrationFlag").val(),Va="GPv2"===Ra,Y="Hybris"===Ra||"Hybris-intg"===Ra,ja="Hybris-new"===Ra,za=c.wtbUseYn,Ba=c.wtbDispFuncUseYN,Ha=Aa.price,va="_self",Ea="",Ja="",ta={},xa=c.stockLevelStatus,Xa=xa,Ta="";"cn"==Fa&&(Ta="GetStock");c.isPossibleBuy=
"INSTOCK"==xa||"BACKORDERED"==xa||"PREORDER"==xa||"LOWSTOCK"==xa?!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():"";xa=Wa}""==xa&&(qa=!1)}else{if("Hybris"===Ra||"Hybris-intg"===Ra)Pa=c.selectedBezelColor,Wa="",Pa&&Pa.hasOwnProperty("stockLevelStatus")&&null!=Pa.stockLevelStatus&&(Wa=Pa.stockLevelStatus.toUpperCase()),xa=Wa,""==xa&&(qa=!1)}else if(c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel||
!c.isBezel&&c.sellingWithBazel)xa="OUTOFSTOCK";var ab="_self",Ya="",Za="",bb={},ib="",$a="",pb={},kb="pd-buying-price--cta3",gb="javascript:;",yb="javascript:;",Eb={modelName:Da,dataTtile:La,imgSrc:ma,iaCode:Ca,dataModelCode:Sa};"in"===Fa&&(Eb.dataModelCode=$("#modelCode").val());var hb=!0,Kb="br"===Fa||"ar"===Fa||"latin"===Fa?!0:!1;Y?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(hb=!1):ja?c.newHybrisSalesStatus||(hb=!1):Va?c.accessoryDisabled&&(hb=!1):Kb&&(c.hybrisApiData.shopAPI?
"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:Kb=!1);var sb=!1;"Y"===za?(sb="Y"===Ba&&(Y||ja||Va||Kb)?hb?!1:!0:!0,Ra||(sb=!0)):sb=!1;"mx"===Fa&&(sb=!1);if(qa)if(sb?"NOORDER"===xa?(Ja=Za=Granite.I18n.get("Where to buy"),Ea=Ya="js-cta-buy tg-wtb",ta=bb=Eb):"id"!==Fa&&($a=Granite.I18n.get("Where to buy"),ib="js-cta-buy tg-wtb",pb=Eb):"NOORDER"===xa&&(Za=Ja=Granite.I18n.get("not for sale"),
Ya=Ea="cta--disabled tg-not-for-sale"),"NOORDER"===xa)kb="pd-buying-price--cta2","in"===Fa&&(Ya=Ea="js-cta-stock tg-out-stock",Za=Ja=Granite.I18n.get("Get stock alert"),bb=ta={moCode:Ka});else{if("OUTOFSTOCK"===xa)Ya=Ea="js-cta-stock tg-out-stock",Za=Ja=Granite.I18n.get("Get stock alert"),bb=ta={moCode:Ka,gsFlag:Ta};else if("PREORDER"===xa){var qb=Q("preorder",c,m),Fb={};Ya=Ea="js-buy-now";Fb.moCode=Ka;qb.isSpecial?(Za=Ja=qb.title,qb.ctaType&&(-1<qb.ctaType.indexOf("continue")?(Ya+=" tg-continue",
Ea+=" tg-continue"):-1<qb.ctaType.indexOf("checkout")&&(Ya+=" tg-checkout",Ea+=" tg-checkout",-1<qb.ctaType.indexOf("between")&&(Ya+=" tg-between",Ea+=" tg-between")))):(Za=Ja=Granite.I18n.get("pre order"),Ya+=" tg-pre-order",Ea+=" tg-pre-order");Fb.ctaType=qb.ctaType;bb=ta=Fb}else{var cb=Q("add-cart",c,m),lb={moCode:Ka};Ya=Ea="js-buy-now";cb.isSpecial?(Za=Ja=cb.title,cb.ctaType&&(-1<cb.ctaType.indexOf("continue")?(Ya+=" tg-continue",Ea+=" tg-continue"):-1<cb.ctaType.indexOf("checkout")&&(Ya+=" tg-checkout",
Ea+=" tg-checkout",-1<cb.ctaType.indexOf("between")&&(Ya+=" tg-between",Ea+=" tg-between")))):(Za=Ja=Granite.I18n.get("Add to cart"),Ya+=" tg-add-to-cart",Ea+=" tg-add-to-cart",lb.imgUrl=Oa);lb.ctaType=cb.ctaType;bb=ta=lb;"lt"!==Fa&&"lv"!==Fa&&"ee"!==Fa||"INSTOCK"!==xa&&"BACKORDERED"!==xa||!c.stockCustomMessage||($("#pd-delivery-msg").html(c.stockCustomMessage),$("#pd-delivery-msg").show());"tr"===Fa&&"INSTOCK"===xa&&(Za=Ja=Granite.I18n.get("Buy now"));["th","lv","lt","ee"].includes(Fa)&&"INSTOCK"===
xa&&(Za=Ja=Granite.I18n.get("Buy"))}W(c,m)}else kb="pd-buying-price--cta2",sb?(Ja=Za=Granite.I18n.get("Where to buy"),Ea=Ya="js-cta-buy tg-wtb",ta=bb=Eb,!Ia&&("nl"===Fa||"be"===Fa||"be_fr"===Fa)&&0<Ga.length&&(Ja=Granite.I18n.get("BUY WITH SUBSCRIPTION"),Ea="s-cta-item js-tariff-cta tg-subscription",ta.style="display:none;")):(Za=Ja=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=Ja=Granite.I18n.get("Get stock alert"),bb=ta=
{moCode:Ka});c.sellingWithBazel&&"OUTOFSTOCK"==xa&&(Ya=Ea="cta--disabled js-cta-stock tg-out-stock",Za=Ja=Granite.I18n.get("Out Of Stock"),bb=ta={moCode:Ka});Na&&(Ya=Ea="js-buy-now is-checked tg-subscription",Za=Ja=Granite.I18n.get("BUY WITH SUBSCRIPTION"),yb=gb=Ua);c.hasBespokeCta&&("PREORDER"!==xa&&(Ya=Ea="tg-bespoke",Za=Ja=Granite.I18n.get("Customize yours"),yb=gb=$("#bespokeCtaLink").val(),ab=va="_self"),"Y"===za&&($a=Granite.I18n.get("Where to buy"),ib="js-cta-buy tg-wtb",pb=Eb));"cn"==Fa&&c.isComingSoon&&
(Ta="ComingSoon",Za=Ja=Granite.I18n.get("Coming Soon Title"),bb.gsFlag=Ta,ta.gsFlag=Ta);xa=Xa;Ha.classType=kb;Ha.isNotForSale=!Ha.configuratorEnabled&&Za===Granite.I18n.get("not for sale");Ha.wtbAttr=ia.getAttrCta($a,"javascript:;","_self",ib,pb);Ha.containedAttr=ia.getAttrCta(Ja,gb,va,Ea,ta);Ha.anchorNaviAttr=ia.getAttrCta(Za,yb,ab,Ya,bb)}else{var eb=a,nb=c.util,Zb=c.drawObj,ob=c.siteCode,gc=c.modelName,bc=c.modelCode,Lb=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",Nb=c.wtbSrc,Ob=
c.wtbSubTypeCode,Hb=c.shopSkuCode,cc=$(m.buyingToolOptTariffPlan),nc=nb.hasTariffPlanResult(c,m),oc=cc.find(".option-input.this-checked").attr("data-url"),Pb=$("#shopIntegrationFlag").val(),pc="GPv2"===Pb,rb="Hybris"===Pb||"Hybris-intg"===Pb,jb="Hybris-new"===Pb,Gb=c.wtbUseYn,hc=c.wtbDispFuncUseYN,tb=Zb.price,qc="_self",mb="",ub="",Ib={},fb=c.stockLevelStatus,zb=fb,Qb="";"cn"==ob&&(Qb="GetStock");c.isPossibleBuy="INSTOCK"==fb||"BACKORDERED"==fb||"PREORDER"==fb||"LOWSTOCK"==fb?!0:!1;if(c.isBezel&&
c.isPossibleBuy)if("Hybris-new"===Pb){var Xb=c.selectedBezelColor;if(Xb){var rc=Xb.hasOwnProperty("stock")?Xb.stock.stockLevelStatus.toUpperCase():"";fb=rc}""==fb&&(eb=!1)}else{if("Hybris"===Pb||"Hybris-intg"===Pb)Xb=c.selectedBezelColor,rc="",Xb&&Xb.hasOwnProperty("stockLevelStatus")&&null!=Xb.stockLevelStatus&&(rc=Xb.stockLevelStatus.toUpperCase()),fb=rc,""==fb&&(eb=!1)}else c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel&&(fb="OUTOFSTOCK");var ic="_self",vb="",wb="",Db={},Yb="",jc="",Sb={},kc=
"javascript:;",dc="javascript:;",lc="pd-buying-price--cta2",Mb={modelName:gc,dataTtile:Lb,imgSrc:Nb,iaCode:Ob,dataModelCode:bc};"in"===ob&&(Mb.dataModelCode=$("#modelCode").val());var Tb=!0,ec="br"===ob||"ar"===ob||"latin"===ob?!0:!1;rb?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(Tb=!1):jb?c.newHybrisSalesStatus||(Tb=!1):pc?c.accessoryDisabled&&(Tb=!1):ec&&(c.hybrisApiData.shopAPI?"br"!==ob||c.hybrisApiData.shopAPI.salesStatus?"ar"===ob&&"ON_SALES"!==c.hybrisApiData.shopAPI.salesStatus?
Tb=!1:"latin"===ob&&"ON_SALE"!==c.hybrisApiData.shopAPI.salesStatus&&(Tb=!1):Tb=!1:ec=!1);var Ub=!1;"Y"===Gb?(Ub="Y"===hc&&(rb||jb||pc||ec)?Tb?!1:!0:!0,Pb||(Ub=!0)):Ub=!1;"mx"===ob&&(Ub=!1);if(eb){Ub?("NOORDER"===fb?(vb=mb="js-cta-buy tg-wtb",wb=ub=Granite.I18n.get("Where to buy"),Db=Ib=Mb):(Yb="js-cta-buy tg-wtb ",jc=Granite.I18n.get("Where to buy"),Sb=Mb,lc="pd-buying-price--cta3"),"in"===ob&&(vb=mb="js-cta-stock tg-out-stock",wb=ub=Granite.I18n.get("Get stock alert"),Db=Ib={moCode:Hb})):"NOORDER"===
fb&&(vb=mb="cta--disabled no-for-sale tg-not-for-sale",wb=ub=Granite.I18n.get("not for sale"),"in"===ob&&(vb=mb="js-cta-stock tg-out-stock",wb=ub=Granite.I18n.get("Get stock alert"),Db=Ib={moCode:Hb}));if("OUTOFSTOCK"===fb)vb=mb="js-cta-stock tg-out-stock",wb=ub=Granite.I18n.get("Get stock alert"),Db=Ib={moCode:Hb,gsFlag:Qb};else if("PREORDER"===fb){var Ab=Q("preorder",c,m),Vb={};vb=mb="js-buy-now pre-order";Vb.moCode=Hb;Ab.isSpecial?(wb=ub=Ab.title,Ab.ctaType&&(-1<Ab.ctaType.indexOf("continue")?
(vb+=" tg-continue",mb+=" tg-continue"):-1<Ab.ctaType.indexOf("checkout")&&(vb+=" tg-checkout",mb+=" tg-checkout",-1<Ab.ctaType.indexOf("between")&&(vb+=" tg-between",mb+=" tg-between")))):(wb=ub=Granite.I18n.get("pre order"),vb+=" tg-pre-order",mb+=" tg-pre-order");Vb.ctaType=Ab.ctaType;Sb.moCode=Hb;Db=Ib=Vb}else{var Jb=Q("add-cart",c,m);vb=mb="js-buy-now";"Y"===Gb&&("in"===ob?(vb=mb="js-cta-stock tg-out-stock",wb=ub=Granite.I18n.get("Get stock alert"),Db=Ib={moCode:Hb}):(lc="pd-buying-price--cta3",
Yb="js-cta-buy tg-wtb ",jc=Granite.I18n.get("Where to buy"),Sb=Mb));var mc={moCode:Hb};Jb.isSpecial?(wb=ub=Jb.title,Jb.ctaType&&(-1<Jb.ctaType.indexOf("continue")?(vb+=" tg-continue",mb+=" tg-continue"):-1<Jb.ctaType.indexOf("checkout")&&(vb+=" tg-checkout",mb+=" tg-checkout",-1<Jb.ctaType.indexOf("between")&&(vb+=" tg-between",mb+=" tg-between")))):(wb=ub=Granite.I18n.get("Add to cart"),vb+=" tg-add-to-cart",mb+=" tg-add-to-cart");mc.ctaType=Jb.ctaType;Db=Ib=mc;Sb.moCode=Hb;"lt"!==ob&&"lv"!==ob&&
"ee"!==ob||"INSTOCK"!==fb&&"BACKORDERED"!==fb||!c.stockCustomMessage||($("#pd-delivery-msg").html(c.stockCustomMessage),$("#pd-delivery-msg").show());["th","lv","lt","ee"].includes(ob)&&"INSTOCK"===fb&&(wb=ub=Granite.I18n.get("Buy"))}W(c,m)}else"Y"===Gb?(vb=mb="js-cta-buy tg-wtb",wb=ub=Granite.I18n.get("Where to buy"),Db=Ib=Mb):(vb=mb="cta--disabled tg-not-for-sale",wb=ub=Granite.I18n.get("not for sale")),"in"===ob&&(vb=mb="js-cta-stock tg-out-stock",wb=ub=Granite.I18n.get("Get stock alert"),Db=Ib=
{moCode:Hb}),lc="pd-buying-price--cta1";c.sellingWithBazel&&"OUTOFSTOCK"==fb&&(vb=mb="cta--disabled js-cta-stock tg-out-stock",wb=ub=Granite.I18n.get("Out Of Stock"),Db=Ib={moCode:Hb});nc&&(vb=mb="js-buy-now is-checked tg-subscription",wb=ub=Granite.I18n.get("BUY WITH SUBSCRIPTION"),kc=dc=oc);c.hasBespokeCta&&("PREORDER"!==fb&&(vb=mb="tg-bespoke",wb=ub=Granite.I18n.get("Customize yours"),kc=dc=$("#bespokeCtaLink").val(),ic=qc="_self"),"Y"===Gb&&(jc=Granite.I18n.get("Where to buy"),Yb="js-cta-buy tg-wtb",
Sb=Mb));"cn"==ob&&c.isComingSoon&&(Qb="ComingSoon",wb=ub=Granite.I18n.get("Coming Soon Title"),Db.gsFlag=Qb,Ib.gsFlag=Qb);fb=zb;tb.classType=lc;tb.isNotForSale=!tb.configuratorEnabled&&wb===Granite.I18n.get("not for sale");tb.wtbAttr=nb.getAttrCta(jc,"javascript:;","_self",Yb,Sb);tb.containedAttr=nb.getAttrCta(ub,dc,qc,mb,Ib);tb.anchorNaviAttr=nb.getAttrCta(wb,kc,ic,vb,Db)}this.changeUsCta(c,m);this.settingForBusiness(c,m);this.settingReserveInStore(c,m);"INSTOCK"==c.stockLevelStatus&&void 0!==$("#personalizeCheckStatus").val()&&
"Y"==$("#personalizeCheckStatus").val()&&this.settingPersonalizeTvCta(c,m);this.checkingCtaCount(c,m);var Cb=q.price,Wb=c.modelCode,Rb=c.ctaLocalText,$b=c.configuratorUseYn,xb=$("#tempTitle").val(),db=c.configuratorUrl;"Y"===$b&&"page-standard-pd"===xb&&(""!==db&&null!==db?(db=db+"?modelCode\x3d"+Wb,Cb.anchorNaviAttr.href=db,Cb.containedAttr.href=db,Cb.anchorNaviAttr.class=Cb.containedAttr.class="configuratorUse-y"):Cb.anchorNaviAttr.class=Cb.containedAttr.class="cta--disabled configuratorUse-y",
""!==Rb&&null!==Rb&&(Cb.anchorNaviAttr.text=Cb.containedAttr.text=Rb),Cb.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());var sc=c.soundbarCategoryData;(c.addonStepBuying04||c.addonStepBuying0701)&&!c.newEmbedVDCountry&&sc&&1===sc.categoryTotalCount&&!c.hasGift&&c.embedAddonSelected&&0<c.embedAddonSelected.length&&(Cb.anchorNaviAttr.class=Cb.containedAttr.class=Cb.anchorNaviAttr.class.replace(" tg-continue",""),Cb.anchorNaviAttr.ctaType=Cb.containedAttr.ctaType=Cb.anchorNaviAttr.ctaType.replace(" continue",
""));ba.productCtaDraw(q);this.settingCtaTagging(c,m);this.specialTagging(c,m);var Bb=m.buyingToolPriceBar.find(".summary__product-price");if(c.embedAddonSelected&&0<c.embedAddonSelected.length)Bb.show();else{var tc=m.buyingToolOptEmbedAddon.attr("data-leasing-price");tc&&Bb.html()===q.price.priceWrapper.info.totalPrice&&($(".pd-buying-price .pd-buying-price__wrap .pd-buying-price__new-price").html(tc),$(".hdd02-buying-tool__cost-box .cost-box__price .cost-box__price-now").html(tc));Bb.hide()}if("uk"===
siteCode||"au"===siteCode){var wc=!1,uc=$(".pd-buying-price__save"),vc=$(".cost-box__price-save"),xc=$(".pd-buying-price__new-price"),Bc=$(".cost-box__price-now"),Fc=xc.html();"uk"===siteCode&&q.tariffOptionResult.hasComponent&&(xc.html("Upfront Cost : "+Fc),Bc.html("Upfront Cost : "+Fc));q.tariffOptionResult.hasComponent&&q.tradeInResult.hasComponent&&(q.careResult.hasComponent?0>parseInt(c.tariffPrice)+q.careResult.dataSalePrice-q.tradeInResult.dataPrice&&(wc=!0):0>parseInt(c.tariffPrice)-q.tradeInResult.dataPrice&&
(wc=!0));var fc=$(".hdd02-buying-tool__cost-box");wc?(0<fc.find(".cost-box__error-message").length?fc.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'):fc.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'),
$(".cost-box__cta a").addClass("cta--disabled"),$(".pd-buying-price__cta a").addClass("cta--disabled")):fc.find(".cost-box__error-message").remove();if("uk"===siteCode&&q.tradeInResult.hasComponent)if(0<uc.length)uc.html("Save "+currencyComma(q.tradeInResult.dataPrice,fa)),vc.html("Save "+currencyComma(q.tradeInResult.dataPrice,fa));else{var yc='\x3cdiv class\x3d"pd-buying-price__save"\x3eSave '+currencyComma(q.tradeInResult.dataPrice,fa)+"\x3c/div\x3e",Cc='\x3cstrong class\x3d"cost-box__price-save"\x3e\x3cspan class\x3d"hidden"\x3ePrice \x3c/span\x3eSave '+
currencyComma(q.tradeInResult.dataPrice,fa)+"\x3c/strong\x3e";$(".pd-buying-price .pd-buying-price__was").after(yc);$(".hdd02-buying-tool__cost-box .cost-box__price-original").after(Cc)}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);
this.settingRewardsDraw(c)};pa.prototype.settingBezelInfo=function(a,c){var m=a.modelCode,g=$(".option-bezelcolor .pd-option-selector");if(0<g.length)for(var q=0;q<g.length;q++){var ba=g.eq(q).attr("data-disabled");g.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']");
for(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(Ia,Fa){var Da=$("#shopIntegrationFlag").val(),Ga=Ia.bezelModelCodeArray;if("Hybris-new"===Da)for(Da=
0;Da<Fa.length;Da++)Ia.bezelModelCodeArray.push(Fa[Da]);else if("Hybris"===Da||"Hybris-intg"===Da)for(Fa=Fa.productDatas,Da=0;Da<Ia.bezelModelCodeArrayList.length;Da++)for(var Sa=0;Sa<Fa.length;Sa++)Ia.bezelModelCodeArrayList[Da]==Fa[Sa].productCode&&Ia.bezelModelCodeArray.push(Fa[Sa]);Ia.selectedBezelColor=Ga[Ia.bezelColorIndex]}var m=$("#storeDomain").val(),g=a.multistoreSiteCd,q=a.bezelModelCodeList,ba=$("#shopIntegrationFlag").val(),J=q.split(","),fa="ca"===g||"ca_fr"===g;a.bezelModelCodeArrayList=
J;J="";J=ya?$("#eppCompanyCode").val():g;var qa="";$("#shopParmLang").val()&&(qa="\x26lang\x3d"+$("#shopParmLang").val());var ia=ya||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};g="\x26country_region\x3d";var Aa="";fa&&(Aa=getSECACountryRegion(),g+=Aa);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,
success:function(Ia,Fa,Da){200==Da.status&&c(a,Ia)},error:function(Ia,Fa,Da){},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(Ia,Fa,Da){200==Da.status&&c(a,Ia)},error:function(){},complete:function(){0<
$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}}):fa?$.ajax({url:J+g,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ia,Fa,Da){200==Da.status&&c(a,Ia)},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",
cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ia,Fa,Da){200==Da.status&&c(a,Ia)},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,g=a.useDeliveryMessage,q=a.deliveryMessage;c.deliveryMessage={hasComponent:!1,deliveryMessage:""};g&&""!==q&&(c.deliveryMessage.hasComponent=!0,c.deliveryMessage.deliveryMessage=
a.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&&
!a.giftCard.isGiftCard){var m=a.siteCode;$.cookies.get("jwt_"+a.countryIsoCode,{domain:".samsung.com"});var g=$.cookies.get("guid",{domain:".samsung.com"});"cn"===m&&(g=$.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&&g){m=$("#cck").val();var q=CryptoJS.enc.Utf8.parse(m);m=(CryptoJS.AES.encrypt(""+g,q,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+m).substring(0,32);m=CryptoJS.enc.Utf8.parse(m);
c=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,fa=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}",
[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!=g&&""!=g||$(".checkbox-v2").hide();$(document).on("click","#email-checkbox",function(){null!=g&&""!=g&&($("#email-checkbox").is(":checked")?(null!=fa&&fa&&(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(),
$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(2).hide()),a.giftCard.email=fa,a.giftCard.firstName=ba,a.giftCard.lastName=J,$("#email-address-input").val(fa),$("#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=
"",$("#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)});
$(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())});
$(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():
$(".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||
"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",
function(){"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 g=$("#gmapLatitude").val(),q=$("#gmapLongitude").val();0<$("#pickup-map-canvas").length&&pickupOptionPD.initMap(g,q,"N");window.sg.components.pickupOptionsPopup.showPopup($(this))})}};pa.prototype.settingRecommendation=
function(a,c){c=a.modelCode;var m=a.siteCode,g=a.notUseRecommendation,q=a.notEppUseRecommendation;!a.useRecommendation||g.includes(m)||ya&&q.includes(m)||a.isRecommendation||("A"!=a.productType?"INSTOCK"!=a.stockLevelStatus&&"BACKORDERED"!=a.stockLevelStatus&&"PREORDER"!=a.stockLevelStatus&&"LOWSTOCK"!=a.stockLevelStatus?(a.isRecommendation=!0,productRecommendationUx2PD.getSearchProductCardForBDCApi(c)):$(".pdd36-recommendation-oos-new").remove():$(".pdd36-recommendation-oos-new").remove())};pa.prototype.settingPrePurchase=
function(a,c){var m=a.siteCode,g=c.buyingToolOptPrePurchase.find(".block1_learnMore");c=c.buyingToolOptPrePurchase.find(".block2_learnMore");var q="b2c_"+a.prePurchaseMainCateCode;ya||"ca"!=m&&"ca_fr"!=m||"08"!==a.categoryTypeCode.slice(0,2)?ya||"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);g.attr("href",a);c.attr("href",q)};
pa.prototype.displayStockStatus=function(a,c){c=c.buyingTool;var m=a.stockLevelStatus.toLowerCase(),g="";g+='\x3cspan class\x3d"pd-in-stock-icon"\x3e';g+='  \x3cspan class\x3d"s-stock-icon"\x3e';g+='    \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e';g+='      \x3cuse xlink:href\x3d"#confirmation-result-bold" href\x3d"#confirmation-result-bold"\x3e\x3c/use\x3e';g+="    \x3c/svg\x3e";g+="  \x3c/span\x3e";g+=Granite.I18n.get("IN STOCK");g+="\x3c/span\x3e";var q="";q+='\x3cspan class\x3d"pd-out-stock-icon"\x3e';
q+='  \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");
J+="\x3c/span\x3e";$(c).find(".pd-select-option__item").each(function(){var fa=$(this).find(".option-input"),qa=fa.attr("name");if(("pd-size"===qa||"pd-color"===qa)&&fa.is(":checked"))return $(this).siblings().find(".pd-in-stock-icon,.pd-out-stock-icon,.pd-instock,.pd-outofstock").remove(),"instock"==m?(fa="pd-size"===qa?g:ba)&&0===$(this).find(".pd-instock, .pd-in-stock-icon").length&&$(this).append(fa):("outofstock"==m||"noorder"==m)&&(fa="pd-size"===qa?q:J)&&0===$(this).find(".pd-outofstock, .pd-out-stock-icon").length&&
$(this).append(fa),!1})};pa.prototype.changeUsCta=function(a,c){c=a.util;var m=a.pfAllUrl,g=a.drawObj,q=g.price;"us"===a.siteCode&&g.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(),
"class":null,href:a.apiDomain+"/"+a.siteCode+"/reserve-online/reserve-now-product?productCode\x3d"+a.modelCode,title:null,target:"_self"})};pa.prototype.settingForBusiness=function(a,c){c=a.drawObj.price;var m=a.util,g=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"===g?c.anchorNaviAttr={}:c.wtbAttr=$.extend({},
c.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:ya?{withCredentials:!0}:{},contentType:"application/json",success:function(g){"Available"==g?$.ajax({url:"/"+a.siteCode+"/tvs/personalize-my-tv/",type:"GET",datatype:"json",
data:{sku:m,type:"apps"},success:function(q,ba,J){"200"==J.status&&$("#personalizeMyTv").show()},error:function(q,ba,J){}}):$("#personalizeMyTv").hide()},error:function(g,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")};
pa.prototype.checkingDeliveryCode=function(a,c){var m=a.util,g=a.view,q=a.drawObj,ba=a.siteCode,J=a.pdProductType,fa=c.buyingToolOptDelivery,qa=$(fa.find("#delivery-zipcode")).val();c=m.hasDeliveryResult(a,c);m=a.pdPackageYn;var ia=!0;"in"!==ba||"PHONE"===J||"10020000"===a.categoryTypeCode||m||(c?a.checkValid&&(q.delivery.errorMessage=null,$(fa).find(".text-field-v2__text.error").hide(),g.deliveryDraw(q)):(isNotEmpty(qa)||(ba=Granite.I18n.get("Enter your zipcode"),a.checkValid&&(q.delivery.errorMessage=
ba,q.delivery.inputAttr.value=qa,g.deliveryDraw(q))),a.checkValid&&($(fa).find(".text-field-v2__text.error").show(),$(fa).find("#delivery-zipcode").focus().val("").val(qa),$(fa).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,g;if(!(null==a?0:null==(m=a.drawObj)?0:null==(g=m.warrantyVd)?0:g.hasComponent)||"page-standard-pd"!==c)return!0;var q,
ba;if(null==a?0:null==(q=a.drawObj)?0: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=function(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=function(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(),$("#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");c=a.newAssuredBuyBackCheck;!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 g=m="";"combo"===a?(m="header(pim)_offer option:bundle offer-"+
c.pageTrackPd+"-delete-confirm",g="bundle offer:delete option:"):"tradeIn"===a?(m="header(pim)_trade in-"+c.pageTrackPd+"-delete-confirm",g="trade in:delete option:",c.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",g="samsung care:delete option:"):"upgrade"===a?(m="header(pim)_service option selector-"+c.pageTrackPd+"}-cta-link",
g="upgrade program:delete option:"):"tariffOption"===a?(m="header(pim)_service option selector tariff-"+c.pageTrackPd+"}-popup-button",g="tariff:delete option:"):"forever"===a?(m="header(pim)_service option selector galaxy forever-"+c.pageTrackPd+"}-popup-button",g="galaxy forever:delete option:"):"assured"===a&&(m="header(pim)_service option selector assured buy back-"+c.pageTrackPd+"}-popup-button",g="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",g+"no");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("an-tr",m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",g+"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"),g=!1;navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i)&&
(g=!0);if(c&&0<c.length){var q="hdd02_pdp header-"+a+"-wishlist add/ remove-account3",ba="",J=c.attr("class")?c.attr("class"):"";"Y"===$("#typeux2025").val()&&(q="",-1<J.indexOf("tg-add-wishlist")?q="add":-1<J.indexOf("tg-remove-wishlist")&&(q="remove"),q=g?"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",ba)}};pa.prototype.settingCtaTagging=function(a,c){var m="Y"===$("#typeux2025").val()?!0:!1,g="anchorNavigationPriceBar .pd-buying-price__cta .cta";m&&(g="anchorNavigationPriceBar .pdd39-anchor-nav__cta .cta");var q=$("#"+g);g=c.buyingToolPriceBar.find(".cta");var ba=a.pageTrackPd,J=[a.modelCode],fa=[a.modelName],qa=[a.displayName],ia=[a.proudctPriceInfo.orignalPrice],
Aa=[a.proudctPriceInfo.salePrice],Ia=[a.pvitype.toLowerCase()],Fa=[a.pvisubtype.toLowerCase()],Da=[a.pimsubtype.toLowerCase()],Ga=["1"],Sa=c.buyingToolGlallery.find("li img").attr("src");if(a.util.hasTradeInResult(a,c)){var La=a.ceTradeUpPopup.isEnabled?"trade-up":"trade-in";J.push(La);fa.push(La);qa.push(La);Ia.push("shop program");Fa.push(La);Da.push(La);ia.push("0");Aa.push("0");Ga.push("0")}a.util.hasUpgradeResult(a,c)&&(J.push("upgrade"),fa.push("upgrade"),qa.push("upgrade"),Ia.push("shop program"),
Fa.push("upgrade"),Da.push("upgrade"),ia.push("0"),Aa.push("0"),Ga.push("0"));a.util.hasCareResult(a,c)&&(J.push(a.drawObj.careResult.dataModelCode),fa.push(a.drawObj.careResult.dataModelCode),qa.push(a.drawObj.careResult.dataModelCode),ia.push(a.drawObj.careResult.dataPrice),Aa.push(a.drawObj.careResult.dataSalePrice),Ia.push("shop program"),Fa.push("samsung care"),Da.push("insurance"),Ga.push("1"));a.util.hasWarrantyResult(a,c)&&(J.push(a.drawObj.warrantyResult.dataModelCode),fa.push(a.drawObj.warrantyResult.dataModelCode),
qa.push(a.drawObj.warrantyResult.dataModelCode),ia.push(a.drawObj.warrantyResult.dataPrice),Aa.push(a.drawObj.warrantyResult.dataSalePrice),Ia.push("shop program"),Fa.push("samsung care"),Da.push("warranty"),Ga.push("1"));a.util.hasTariffOptionResult(a,c)&&(J.push(a.drawObj.tariffOptionResult.dataModelCode),fa.push(a.drawObj.tariffOptionResult.dataModelCode),qa.push(a.drawObj.tariffOptionResult.dataModelCode),Ia.push("shop program"),Fa.push("tariff"),Da.push("tariff"),ia.push("0"),Aa.push("0"),Ga.push("0"));
a.util.hasForeverResult(a,c)&&(J.push("forever"),fa.push("forever"),qa.push("forever"),Ia.push("shop program"),Fa.push("forever"),Da.push("forever"),ia.push(a.drawObj.galaxyForeverResult.dataPrice),Aa.push(a.drawObj.galaxyForeverResult.dataPrice),Ga.push("1"));a.util.hasBogo(a,c)&&(J.push(a.drawObj.offer.bogo.item.modelCode),fa.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)),
Aa.push("0")),Ia.push(a.drawObj.offer.bogo.item.pviTypeName),Fa.push(a.drawObj.offer.bogo.item.pviSubtypeName),Da.push(a.drawObj.offer.bogo.item.categorySubTypeEngName),Ga.push("1"));if(a.util.hasGiftResult(a,c)&&(La=a.drawObj.offer.gift.item.bundleList)&&0<La.length)for(var ma in La){var Oa=La[ma];J.push(Oa.dataModelCode);fa.push(Oa.dataModelName);qa.push(Oa.dataDisplayName);ia.push(Oa.dataPrice);Aa.push(Oa.dataSalePrice);Ia.push(Oa.pviTypeName);Fa.push(Oa.pviSubtypeName);Da.push(Oa.categorySubTypeEngName);
Ga.push("1")}if(a.util.hasComboResult(a,c)&&a.drawObj.offer.combo&&0<a.drawObj.offer.combo.length)for(var Ca in a.drawObj.offer.combo)if((ma=a.drawObj.offer.combo[Ca].item.bundleList)&&0<ma.length)for(var Ka in ma)La=ma[Ka],J.push(La.dataModelCode),fa.push(La.dataModelName),qa.push(La.dataDisplayName),ia.push(La.dataPrice),Aa.push(La.dataSalePrice),Ia.push(La.pviTypeName),Fa.push(La.pviSubtypeName),Da.push(La.categorySubTypeEngName),Ga.push("1");a.util.hasAssuredBuyBackResultResult(a,c)&&(J.push(a.drawObj.assuredBuyBackResult.dataSku),
fa.push(a.drawObj.assuredBuyBackResult.dataModelName),qa.push(a.drawObj.assuredBuyBackResult.displayModelName),Ia.push("shop program"),Fa.push("galaxy assured"),Da.push("galaxy assured"),ia.push(a.drawObj.assuredBuyBackResult.dataPrice),Aa.push(a.drawObj.assuredBuyBackResult.dataSalePrice),Ga.push("1"));a.util.hasNewAssuredBuyBackResult(a,c)&&(J.push(a.drawObj.newAssuredBuyBackResult.dataModelCode),fa.push(a.drawObj.newAssuredBuyBackResult.dataModelName),qa.push(a.drawObj.newAssuredBuyBackResult.dataDisplayName),
Ia.push("shop program"),Fa.push("galaxy assured"),Da.push("galaxy assured"),ia.push(a.drawObj.newAssuredBuyBackResult.dataPrice),Aa.push(a.drawObj.newAssuredBuyBackResult.dataPrice),Ga.push("1"));if((Ca=a.embedAddonSelected)&&0<Ca.length)for(Ca=$jscomp.makeIterator(Ca),Ka=Ca.next();!Ka.done;Ka=Ca.next())Ka=Ka.value,J.push(Ka.modelCode),fa.push(Ka.modelName),qa.push(Ka.name),Ia.push(Ka.pviType),Fa.push(Ka.pviSubtype),Da.push(Ka.categorySubType?Ka.categorySubType.toLowerCase():""),ia.push(Ka.revenue),
Aa.push(Ka.finalPriceValue),Ga.push("1");J=J.join(",");qa=qa.join(";");fa=fa.join(",");ia=ia.join(",");Ia=Ia.join(",");Fa=Fa.join(",");Da=Da.join(",");Aa=Aa.join(",");Ga=Ga.join(",");Ca=$("section.tariff-popup .tariff-popup__btn-submit");"uk"===a.siteCode&&0<Ca.length&&(Ca.attr("data-modelcode",J),Ca.attr("data-modeldisplay",qa),Ca.attr("data-modelname",fa),Ca.attr("data-modelrevenue",ia),Ca.attr("data-modelprice",ia),Ca.attr("data-pvitype",Ia),Ca.attr("data-pvisubtype",Fa),Ca.attr("data-pimsubtype",
Da),Ca.attr("data-discountprice",Aa),Ca.attr("data-modelqty",Ga),a.util.hasTariffOptionResult(a,c)||(Ca.attr("data-modelrevenue",Ca.attr("data-modelrevenue")+",0"),Ca.attr("data-modelprice",Ca.attr("data-modelprice")+",0"),Ca.attr("data-discountprice",Ca.attr("data-discountprice")+",0"),Ca.attr("data-pvitype",Ca.attr("data-pvitype")+",shop program"),Ca.attr("data-pvisubtype",Ca.attr("data-pvisubtype")+",tariff"),Ca.attr("data-pimsubtype",Ca.attr("data-pimsubtype")+",tariff"),Ca.attr("data-modelqty",
Ca.attr("data-modelqty")+",0")));if(q&&0<q.length){var Qa=La=ma=Ka="";Ca="";Oa=!1;var Na=q.attr("class")?q.attr("class"):"",Ua="pdd01_anchor nav";m?(Ua="pdd39_anchor nav v3",-1<Na.indexOf("configuratorUse-y")?""!==a.ctaEngText&&null!==a.ctaEngText&&(Ka=Ua+"-"+ba+"-cta-buy page",ma="buy cta",Qa=La=a.ctaEngText):-1<Na.indexOf("tg-continue")?(Ka=Ua+"-"+ba+"-cta to cart-ecommerce2",ma="ecommerce",La="addToCart",Qa="anchor navi:buy now",Oa=!0):-1<Na.indexOf("tg-wtb")?(Ka=Ua+"-"+ba+"-where to buy-buy_cta2",
ma="buy cta",La="where to buy",Qa="anchor navi:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(Ka=Ua+"-"+ba+"-cta to cart-ecommerce1",ma="ecommerce",La="addToCart",Ca=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?"br"===a.siteCode?(ma="buy cta",Qa=La="buy now"):Qa="anchor navi:add to cart":-1<Na.indexOf("tg-checkout")&&(Qa="anchor navi:checkout",-1<Na.indexOf("tg-between")&&(Qa="anchor navi:lease")),Oa=!0):-1<Na.indexOf("tg-pre-order")?
(Ka=Ua+"-"+ba+"-cta to cart-ecommerce1",ma="ecommerce",La="addToCart",Qa="anchor navi:pre-order",Oa=!0):-1<Na.indexOf("tg-out-stock")?(Ka=Ua+"-"+ba+"-notify me-buy_cta2",ma="buy cta",La="stock alert",Qa="anchor navi:notify me",q.attr("data-antr",Ua+"-"+ba+"-cta-stock alert popup")):-1<Na.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=Ua+"-"+ba+"-cta-subscription",ma="buy cta",La="buy with subscription:carrier:"+Qa,Qa="buy with subscription:carrier:"+Qa):-1<Na.indexOf("tg-buy-now")?(Ka=Ua+"-"+ba+"-cta to cart-ecommerce1",ma="ecommerce",La="addToCart",Qa="anchor navi:buy now"):-1<Na.indexOf("tg-learn-more")&&(Ka=Ua+"-"+ba+"-cta-learn more",ma="product click",La="pd buying tool",Qa="learn more click")):-1<Na.indexOf("configuratorUse-y")?""!==a.ctaEngText&&null!==a.ctaEngText&&(Ka=Ua+"-"+ba+"-cta-buy page",ma="buy cta",Qa=La=a.ctaEngText):
-1<Na.indexOf("tg-continue")?(Ka=Ua+"-"+ba+"-cta-cart",ma="ecommerce",La="addToCart",Qa="secondary navi:add to cart",Oa=!0):-1<Na.indexOf("tg-wtb")?(Ka=Ua+"-"+ba+"-where to buy-buy_cta2",ma="buy cta",La="where to buy",Qa="anchor navi:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(Ka=Ua+"-"+ba+"-cta-cart page",ma="ecommerce",La="addToCart",Ca=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?("br"===a.siteCode?(ma="buy cta",Qa=La="buy now"):
Qa="secondary navi:add to cart",Oa="",$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(Oa=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")),Oa=Oa.substring(0,Oa.indexOf("?",0)),q.attr("data-imageurl",Oa)):-1<Na.indexOf("tg-checkout")&&(Qa="secondary navi:checkout",-1<Na.indexOf("tg-between")&&(Qa="secondary navi:lease")),Oa=!0):-1<Na.indexOf("tg-pre-order")?(Ka=Ua+"-"+ba+"-cta-cart page",ma="ecommerce",La="addToCart",Qa="secondary navi:pre order",
Oa=!0):-1<Na.indexOf("tg-out-stock")?(Ka=Ua+"-"+ba+"-notify me-buy_cta2",ma="buy cta",La="stock alert",Qa="anchor navi:notify me",q.attr("data-antr",Ua+"-"+ba+"-cta-stock alert popup")):-1<Na.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=Ua+"-"+ba+"-cta-subscription",ma="buy cta",La="buy with subscription:carrier:"+Qa,Qa="buy with subscription:carrier:"+
Qa):-1<Na.indexOf("tg-buy-now")?(Ka=Ua+"-"+ba+"-cta-buy page",ma="buy cta",Qa=La="buy now"):-1<Na.indexOf("tg-learn-more")&&(Ka=Ua+"-"+ba+"-cta-learn more",ma="product click",La="pd buying tool",Qa="learn more click");q.attr("an-tr",Ka).attr("an-ca",ma).attr("an-ac",La).attr("an-la",Qa);Ka={anTr:Ka,anCa:ma,anAc:La,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));Ca&&q.attr("aria-label",Ca);Aa&&(q.attr("data-discountprice",Aa),digitalData.product.model_price=Aa);Oa&&(J&&q.attr("data-modelcode",J),qa&&q.attr("data-modeldisplay",qa),fa&&q.attr("data-modelname",fa),ia&&q.attr("data-modelrevenue",ia),ia&&(q.attr("data-modelprice",ia),digitalData.product.list_price=ia),Ia&&q.attr("data-pvitype",Ia),Fa&&q.attr("data-pvisubtype",Fa),Da&&q.attr("data-pimsubtype",Da),
Ga&&q.attr("data-modelqty",Ga),Sa&&(q.attr("data-imageurl",Sa),g.attr("data-imageurl",Sa)));a.drawObj.price.anchorNaviAttr=$.extend(a.drawObj.price.anchorNaviAttr,Ka)}if(g&&0<g.length)for(q="header(pim)_price bar",(Sa="Y"===$("#typeux2025").val()?!0:!1)&&(q="hdd02_summary, get stock alert pop_up"),Ca=0;Ca<g.length;Ca++){Ka=$(g.get(Ca));Na=Ka.attr("class")?Ka.attr("class"):"";var Ra=Oa=La=ma="";Ua="";Qa=!1;Sa?-1<Na.indexOf("tg-continue")?(ma=q+"-"+ba+"-cta to cart-ecommerce2",La="ecommerce",Oa="addToCart",
Ra="pd buying tool:buy now",Qa=!0):-1<Na.indexOf("tg-wtb")?(ma=q+"-"+ba+"-where to buy-buy_cta3",La="buy cta",Oa="where to buy",Ra="pd buying tool:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(ma=q+"-"+ba+"-cta to cart-ecommerce1",La="ecommerce",Oa="addToCart",Ua=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?"br"===a.siteCode?(La="buy cta",Ra=Oa="buy now"):Ra="pd buying tool:add to cart":-1<Na.indexOf("tg-checkout")&&(Ra="buying tool:checkout",
-1<Na.indexOf("tg-between")&&(Ra="buying tool:lease")),Qa=!0):-1<Na.indexOf("tg-pre-order")?(ma=q+"-"+ba+"-cta to cart-ecommerce1",La="ecommerce",Oa="addToCart",Ra="pd buying tool:pre order",Qa=!0):-1<Na.indexOf("tg-out-stock")?(ma=q+"-"+ba+"-button-alert",La="buy cta",Oa="stock alert",Ra="pd buying tool:stock alert",Ka.attr("data-antr",q+"-"+ba+"-text-alert")):-1<Na.indexOf("tg-subscription")?(Na=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():
"",ma=q+"-"+ba+"-button-subscription",La="buy cta",Oa="buy with subscription:carrier:"+Na,Ra="pd buying tool:"+Na):-1<Na.indexOf("tg-buy-now")?(ma=q+"-"+ba+"-cta to cart-ecommerce1",La="ecommerce",Oa="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Na.indexOf("tg-learn-more")?(ma=q+"-"+ba+"-cta-learn more",La="product click",Oa="pd buying tool",Ra="learn more click"):-1<Na.indexOf("tg-for-business")?(ma=q+"-"+ba+"-cta-forbusiness",La="buy cta",Oa="for business",Ra="pd buying tool:for business"):
-1<Na.indexOf("tg-bespoke")&&(ma=q+"-"+ba+"-cta-bespoke",La="content click",Oa="feature",Ra="pd buying tool:customize yours"):-1<Na.indexOf("tg-continue")?(ma=q+"-"+ba+"-button-text",La="ecommerce",Oa="addToCart",Ra="pd buying tool:add to cart",Qa=!0):-1<Na.indexOf("tg-wtb")?(ma=q+"-"+ba+"-button-where to buy",La="buy cta",Oa="where to buy",Ra="pd buying tool:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(ma=q+"-"+ba+"-button-cart",La="ecommerce",Oa="addToCart",Ua=Granite.I18n.get("Add to cart")+
":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?"br"===a.siteCode?(La="buy cta",Ra=Oa="buy now"):Ra="pd buying tool:add to cart":-1<Na.indexOf("tg-checkout")&&(Ra="buying tool:checkout",-1<Na.indexOf("tg-between")&&(Ra="buying tool:lease")),Qa=!0):-1<Na.indexOf("tg-pre-order")?(ma=q+"-"+ba+"-buy-cart",La="ecommerce",Oa="addToCart",Ra="pd buying tool:pre order",Qa=!0):-1<Na.indexOf("tg-out-stock")?(ma=q+"-"+ba+"-button-alert",La="buy cta",Oa="stock alert",Ra="pd buying tool:stock alert",Ka.attr("data-antr",
q+"-"+ba+"-text-alert")):-1<Na.indexOf("tg-subscription")?(Na=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",ma=q+"-"+ba+"-button-subscription",La="buy cta",Oa="buy with subscription:carrier:"+Na,Ra="pd buying tool:"+Na):-1<Na.indexOf("tg-buy-now")?(ma=q+"-"+ba+"-buy-cart",La="ecommerce",Oa="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Na.indexOf("tg-learn-more")?
(ma=q+"-"+ba+"-cta-learn more",La="product click",Oa="pd buying tool",Ra="learn more click"):-1<Na.indexOf("tg-for-business")?(ma=q+"-"+ba+"-cta-forbusiness",La="buy cta",Oa="for business",Ra="pd buying tool:for business"):-1<Na.indexOf("tg-bespoke")&&(ma=q+"-"+ba+"-cta-bespoke",La="content click",Oa="feature",Ra="pd buying tool:customize yours");Ka.attr("an-tr",ma).attr("an-ca",La).attr("an-ac",Oa).attr("an-la",Ra);Ua&&Ka.attr("aria-label",Ua);Aa&&Ka.attr("data-discountprice",Aa);Qa&&(J&&Ka.attr("data-modelcode",
J),qa&&Ka.attr("data-modeldisplay",qa),fa&&Ka.attr("data-modelname",fa),ia&&Ka.attr("data-modelrevenue",ia),ia&&Ka.attr("data-modelprice",ia),Ia&&Ka.attr("data-pvitype",Ia),Fa&&Ka.attr("data-pvisubtype",Fa),Da&&Ka.attr("data-pimsubtype",Da),Ga&&Ka.attr("data-modelqty",Ga));this.thirdPartyTagging(a,c,Ka)}ua.isEnabled()&&(ua.$ui.find(".pd-buying-price .pd-buying-price__badge.mobile").hide(),1<ua.$ui.find(".pd-buying-price__badge.mobile").length&&ua.$ui.find(".pd-buying-price__badge.mobile").eq(1).remove(),
m&&ua.$mo&&0<ua.$mo.length&&ua.$mo.priceSection&&0<ua.$mo.priceSection.length&&ua.resetMobilePriceSection())};pa.prototype.thirdPartyTagging=function(a,c,m){a=$("#thirdPartyPrdYN").val();var g=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"]'))),
a.forEach(function(J){0<J.length&&(g&&J.attr("data-iot-sid",g),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,g=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,
bezelImageClass: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};g.bezelOptionDraw(m);this.settingBezelInfo(a,
c)}};pa.prototype.settingTradeInDraw=function(a,c,m,g){var q=c.util,ba=c.tradeInUrl,J=c.siteCode,fa=c.tradeinText,qa=c.drawObj,ia=c.apiFlag,Aa=c.view,Ia=c.priceCurrency,Fa=c.isGPv2AndHyIntg,Da=c.isHybrisSplitPD,Ga=c.isHybrisSplitPDTradeIn,Sa=c.tradeInType,La=c.promotionSalesPitch,ma=2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,Oa=!1,Ca="",Ka=!1,Qa=0;a&&(void 0!==a.maxDiscount&&(Qa=a.maxDiscount),!0===a.directOutLink?(Oa=!0,Ka=!1):Ka=!0);var Na=
"",Ua=!1,Ra=!0,Va="",Y="_self",ja="",za="javascript:;",Ba={};Ba={};Ca={};var Ha={},va="";Ha="";$("#categorySubTypeCode").val();var Ea="hr"===J||"si"===J;if("in"===J||"fr"===J)Qa=c.tradeinSaveValue;if(g&&(Fa||Da&&Ga)){Va=fa;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)Va=Granite.I18n.get("TRADE-IN Description");if(Qa&&0<Qa){var Ja="be"==J||"be_fr"==J||"nl"==J?currencyCommaExcep(Qa,Ia):"jp"==J?currencyComma(parseFloat(Qa),Ia):currencyComma(Qa,
Ia);va=Granite.I18n.get("Save up to")+" "+Ja;if("co"===J)va=Granite.I18n.get("Save up to");else if("hu"===J||"at"===J||"it"===J||"my"===J)va="";Ha=null;Na=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Qa,Ia));"co"===J&&ya&&(Ca="epp_"+c.categoryTypeCode,Na=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",null,"01010000"===c.categoryTypeCode||"01020000"===c.categoryTypeCode?Ca:"epp"))}else Na=Granite.I18n.get("TRADE-IN");ba&&(Y="_blank",
za=ba,ja=Granite.I18n.get("Learn more"));Ca={text:Granite.I18n.get("YES"),eventType:"tradein",layerTarget:"tradeInPopup",subText:va,isDirectLink:Oa,isPopup:Ka};Ha={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",subText:Ha,eventType:"tradein"};if(a.withCeTradeUpPopup)Qa=a.maxDiscount||0,Oa=currencyComma(Qa,Ia),ba="b2c_"+c.ceTradeUpPopup.productCategoryGroup,Va=c.ceTradeUpPopup.productCategoryMainType,"ph"!==J||"rf"!==Va&&"wm"!==Va&&"ac"!==Va||(ba="b2c_"+Va),"at"!==J||"rf"!==Va&&"wm"!==
Va&&"vc"!==Va||(ba="b2c_"+Va),"bg"===J&&(Va=a.tradeupCurrency,Oa=currencyComma(Qa,Va),Qa="eur"===Va.toLowerCase()?h(Qa):l(Qa),Oa=Oa+" / "+Qa),Na=Granite.I18n.get('Want up to "{0}" off? Recycle your old device for an instant discount',[Oa],ba),Va="",CeTradeUpPopup.config.view.useServiceDescription&&(Va=Granite.I18n.getVar("Trade-up service description",ba),"th"!==J||"b2c_vd"!==ba&&"b2c_mon"!==ba||(Va=Granite.I18n.get("Trade-up service description",[Oa],ba))),Ca.subText="",CeTradeUpPopup.config.view.showDiscountAmount.inYesCta&&
(Ca.subText=Granite.I18n.get('(Save up to "{0}")',[Oa],ba)),Ca.text=Granite.I18n.getVar("Yes",ba),Ha.text=Granite.I18n.getVar("No",ba),a.learnMoreOutlink?(za=a.learnMoreOutlink,Y="_blank"):(za="javascript:;",Y="_self"),ja=Granite.I18n.get("Learn more");else if(-1<ia.indexOf("GPv2"))if("in"===J&&"CE"!==Sa)Na=Granite.I18n.get("Exchange your device"),La&&(Va="Exchange any product and get benefits up to "+currencyComma(La,Ia)+"*",va=Granite.I18n.get("Save up to")+" "+currencyComma(La,Ia)),Ca={"class":"trade-in-exchange",
eventType:"exchange",text:Granite.I18n.get("YES"),subText:va,layerTarget:"instantExchangePopupHubble",isDirectLink:Oa,isPopup:!0},Ha={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=za=Y="";else if("in"===J&&"CE"===Sa)Na="Exchange",Va="",La&&(Va="Exchange any product and get benefits up to "+currencyComma(La,Ia)+"*",va=Granite.I18n.get("Save up to")+" "+currencyComma(La,Ia)),Ca={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:va,
layerTarget:"sielTradeInPopup",isDirectLink:Oa,isPopup:!0},Ha={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=za=Y="",Ua=!0,Ra=!1;else if("id"===J)Va=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=za=Y="";else{if("ae"===J||"ae_ar"===J)za="javascript:;",ja=Granite.I18n.get("Learn more"),Ba.layerTarget="tradeInLearnMorePopup",
Va=Granite.I18n.get("Go to samsungtradein.ae, evaluate the old device and receive the Trade in code.")}else if(Ga&&"SplitPD TradeIn Description"!==Granite.I18n.get("SplitPD TradeIn Description")&&(Va=Granite.I18n.get("SplitPD TradeIn Description")),"ru"===J||"za"===J)za="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup","za"===J&&(Ca.text=Granite.I18n.get("Yes, please"),Ha.text=Granite.I18n.get("No, thanks"));else if("nz"===J)za="https://www.samsung.com/nz/galaxytradein",
ja=Granite.I18n.get("Learn more"),Y="_blank",Va=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("ee"===J)za="https://www.samsung.com/ee/tagasiost/",ja=Granite.I18n.get("Learn more"),Y="_self";else if("lv"===J)za="https://www.samsung.com/lv/atpirkums/",ja=Granite.I18n.get("Learn more"),Y="_self";else if("lt"===J)za="https://www.samsung.com/lt/grazinimas/",ja=Granite.I18n.get("Learn more"),
Y="_self";else if("se"===J||"dk"===J||"fi"===J||"no"===J)za="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks");else if("es"===J||"pt"===J)za="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Ca.text=Granite.I18n.get("Yes, please"),Ha.text=Granite.I18n.get("No, thanks"),"04000000"===$("#categoryGroupCode").val()&&("es"===J&&(ja=
Granite.I18n.get("Learn more(TV)")),Na=Granite.I18n.get("TRADE-IN(TV)"),Va=Granite.I18n.get("SplitPD TradeIn Description(TV)"),Ca.text=Granite.I18n.get("YES"),Ha.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)")),[{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)"),desc:"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)")}].forEach(function(ta,
xa){ta.title&&ta.desc&&($(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-title").eq(xa).html(ta.title),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-desc").eq(xa).html(ta.desc))}),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__disclaimer").html(Granite.I18n.get("Trade-In disclaimer(TV)")));else if("sg"===J)za="https://www.samsung.com/sg/shop-faq/trade-in/",ja=Granite.I18n.get("Learn more"),
Y="_blank",Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in."),Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks");else if("it"===J)za="https://www.samsung.com/it/offer/mobile-trade-in/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("ca"===J||"ca_fr"===J)za="https://www.samsung.com/"+J+"/trade-in-program/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("au"===J)Na=Granite.I18n.get("Samsung Trade-in"),
Va=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy."),Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),za="https://www.samsung.com/au/tradeup/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("my"===J)za=ya?"/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-trade-in/":"https://www.samsung.com/my/trade-in/",Na=Granite.I18n.get("Samsung Trade-in"),Va=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)Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy."),Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),Ca.subText="",c.categoryTypeCode.startsWith("01")&&(Na=Granite.I18n.get("Trade-in up to 3 old devices and get cashback"),c.sgeSiteInstantChk&&(Na=Granite.I18n.get("Samsung Trade-in Title"),Va=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/",Na=Granite.I18n.get("Trade-in your old device and get guaranteed cashback")):a="mobile-trade-in/","ae"===J?za="https://www.samsung.com/ae/offer/"+a:"ae_ar"===J&&(za="https://www.samsung.com/ae_ar/offer/"+a),Oa&&(Ca="https://samsungtradein.ae/",Ca={"class":"noname",eventType:"directLink",text:Granite.I18n.get("Yes please"),
subText:va,layerTarget:"none",isDirectLink:Oa,href:Ca,isPopup:!1},Ha={text:Granite.I18n.get("No thanks"),layerTarget:"none",eventType:"tradein"},ja=za=Y="");else if("sa"===J||"sa_en"===J)c.categoryTypeCode.startsWith("04")&&(Na=Granite.I18n.get("Want up to {0} off? Try trading in your old device!",currencyComma(Qa,Ia)));else if("ch"===J||"ch_fr"===J)za="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");
else if("hu"===J)Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");else if("vn"===J)Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),za="https://www.samsung.com/vn/offer/len-doi-sieu-pham/",ja=Granite.I18n.get("Learn more"),Y="_blank",Na=Granite.I18n.get("Samsung Trade-in"),Va=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)Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in.");else if("hk"===J||"hk_en"===J)Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("Samsung Trade-in"),za="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup";else if("at"===J)"04000000"===
$("#categoryGroupCode").val()?(Na=Granite.I18n.getVar("Trade-Up","ux2"),za="https://www.samsung.com/at/tvs/trade-up/"):"01000000"===$("#categoryGroupCode").val()?(za="javascript:;",Y="_self",Ba.layerTarget="tradeInLearnMorePopup"):"08000000"===$("#categoryGroupCode").val()&&(Na=Granite.I18n.getVar("Trade-Up","ux2"),za="https://www.samsung.com/at/offer/trade-up-bonus/"),Va=Granite.I18n.get("TRADE-IN Description");else if("fr"===J)Va=ya?"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"===Sa){Ca.layerTarget="sielTradeInPopup";za="https://www.samsung.com/uk/tvs/trade-up/";if(ma||"08030000"===c.categoryTypeCode||"08010000"===c.categoryTypeCode||"08070000"===c.categoryTypeCode||"07010000"===c.categoryTypeCode)za="https://www.samsung.com/uk/tv-and-home-appliances-trade-up/";c.ceHeadlineText&&(Na=c.ceHeadlineText,Ca.subText=c.ceSubText)}else"cl"===J?(Na=Granite.I18n.get("TRADE-IN"),
Ca.text=Granite.I18n.get("Yes"),Va=Granite.I18n.get("Trade in actualmente es solo para Regi\u00f3n Metropolitana.")):"pe"===J?(za="https://www.samsung.com/pe/plan-canje-galaxy/",ja=Granite.I18n.get("Learn more"),Y="_blank"):"de"===J?(Na=Granite.I18n.get("Trade-In"),Va=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Qa,Ia))):"pl"===J?za="https://www.samsung.com/pl/trade-in/":Ea?(Na=Granite.I18n.get("TRADE-IN (mx)"),Va=Granite.I18n.get("TRADE-IN description (mx)",
currencyComma(Qa,Ia)),Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),va=Granite.I18n.get("Save up to")+" "+Ja):"ro"===J?(Na=Granite.I18n.get("TRADE-IN"),Va=Granite.I18n.get("TRADE-IN description"),Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),va=Granite.I18n.get("Save up to (Trade-in)")+" "+Ja,ja=Granite.I18n.get("Learn More (Trade-in)"),za="https://www.samsung.com/ro/trade-in/"):"bg"===J?(va=Granite.I18n.get("Save up to")+" "+Ja,ja=Granite.I18n.get("Learn More"),
za="https://www.samsung.com/bg/trade-in/"):"jp"===J?(Ca.text=Granite.I18n.get("Yes please"),Ha.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("TRADE-IN description"),ja=Granite.I18n.get("Learn More (Trade-in)"),za="https://www.samsung.com/jp/trade-in/",Y="_blank"):"cn"===J||"tr"===J?(za="javascript:;",Ca.text=Granite.I18n.get("Yes Please"),Ha.text=Granite.I18n.get("No Thanks"),ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",
Na=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Get more discount on your new Galxy when you trade-in.")):"sk"===J||"cz"===J?(Na=Granite.I18n.get("Return your old device to us and save!"),Ca.text=Granite.I18n.get("Yes Please"),Ha.text=Granite.I18n.get("No Thanks"),za="https://www.samsung.com/"+J+"/trade-in/"):"ua"===J?(Na=Granite.I18n.get("Samsung Trade-in Title"),Va=Granite.I18n.get("Samsung Trade-in subTitle")):"in"===J&&"CE"!==Sa?(Na=Granite.I18n.get("Exchange your device"),La&&(Va=
"Exchange any product and get benefits up to "+currencyComma(La,Ia)+"*",va=Granite.I18n.get("Save up to")+" "+currencyComma(La,Ia)),Ca={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:va,layerTarget:"instantExchangePopupHubble",isDirectLink:Oa,isPopup:!0},Ha={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=za=Y=""):"in"===J&&"CE"===Sa&&(Na="Exchange",Va="",La&&(Va="Exchange any product and get benefits up to "+currencyComma(La,
Ia)+"*",va=Granite.I18n.get("Save up to")+" "+currencyComma(La,Ia)),Ca={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:va,layerTarget:"sielTradeInPopup",isDirectLink:Oa,isPopup:!0},Ha={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=za=Y="",Ua=!0,Ra=!1);Ba=q.getAttrCta(ja,za,Y,"",Ba,"");qa.tradeIn={hasComponent:g,hasCeTradein:Ua,hasExchange:Ra,title:Na,learnMoreCta:Ba,description:Va,yesAttr:Ca,noAttr:Ha};c.ceTradeUpPopup.isEnabled&&
"undefined"!==typeof CeTradeUpPopup&&!CeTradeUpPopup.config.view.useLearnMoreCta&&(Ba.isOutLink=null,Ba.isNotOutLink=null);c.ceTradeUpPopup.isEnabled||"ee"!==J&&"lv"!==J&&"lt"!==J||(Ba.isOutLink=!0,Ba.isNotOutLink=null);g&&qa.priceAnchor.priceWrapper.info.useTooltip&&(qa.tradeIn.hasTooltipClass=" pd-buying-price__tooltip");Aa.tradeInDraw(qa);g=window.location.pathname.replace("/content/samsung","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(g)&&(g=JSON.parse(sessionStorage.getItem(g)),
g=g.tradein.list?g.tradein.list[0]:g.tradein,qa=g.tradeinInfo,Aa=qa.device_info.brand,"jp"===J&&(Aa=qa.device_info.category),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount({provider:g.provider,displayBrandName:Aa,displayModelName:g.model,tradeinId:g.id,serviceType:"trade-in",serviceCode:g.id,imeiKey:g.imeiKey,price:g.price,discount:{gratification:"",price:g.displayPrice,total:g.displayPrice+g.cashbackPrice},value:{gratification:"",price:g.discountPrice},tradeInType:g.tradeInType,
promotion:g.promotion,tradeinDiscountYn:qa.delayed_gratification,open_promo_tax:"",additionalDiscountFlag:g.additionalDiscountFlag,tradeInSpecialPrice:g.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 g=a.view;a=!!a.disableTradeIn;var q="";a&&(q="disabled");c.tradeInErrMsg={hasComponent:m&&a,disableTradeIn:a,disableText:q};g.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")&&(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 g;a.isSENA&&(null==a?0:null==(g=a.proudctPriceInfo)?0:g.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=function(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=[];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 g=m.price,q=m.priceDisplay,ba=m.promotionPrice,J=m.promotionPriceDisplay,fa=m.leasingInfo,qa=m.saveText;m=m.tradeInPriceText;var ia=a.priceCurrency,Aa=a.siteCode;g&&(a.proudctPriceInfo.orignalPrice=g);q?a.proudctPriceInfo.orignalPriceFormatted=q:
g&&(a.proudctPriceInfo.orignalPriceFormatted=currencyComma(g,ia));a.proudctPriceInfo.salePrice=ba?ba:g;a.proudctPriceInfo.salePriceFormatted=J?J:ba?currencyComma(ba,ia):a.proudctPriceInfo.orignalPriceFormatted;c&&fa&&fa.monthlyRate&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=fa.monthlyRate,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=fa.tenureVal);!c&&monthlyPriceInfo&&monthlyPriceInfo.leasingMonthly&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=monthlyPriceInfo.leasingMonthly,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=
monthlyPriceInfo.leasingMonths);qa&&(a.proudctPriceInfo.rowCodeformattedPriceSave=qa);m&&(a.proudctPriceInfo.salePriceFormatted=m);if("nl"===Aa||"be"===Aa||"be_fr"===Aa)c=a.proudctPriceInfo.listPriceFormatted,g=a.proudctPriceInfo.orignalPriceFormatted,q=a.proudctPriceInfo.salePriceFormatted,ba=a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,c&&(a.proudctPriceInfo.listPriceFormatted=deleteCurrency(c,a.priceCurrency).trim()),g&&(a.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(g,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));ya&&(c=window.sg.components.dynamic.detailSharedObj.detailNodePath.replace(".dynamic",""));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(g){if(-1<g.indexOf("\x3clink")&&-1<g.indexOf('"text/css"\x3e')){var q=g.substring(g.indexOf("\x3clink"),g.indexOf('"text/css"\x3e')+12);g=g.replace(q,"");$("#wrap").append(q)}for(q=Date.now()+100;Date.now()<q;);$("#wrap").append(g)},error:function(g){},complete:function(){}});"commontradein"==a&&window.sg.common.textFieldv2.initAll()};pa.prototype.isCommonTradeinCheck=function(){var a=window.sg.components.dynamic?
window.sg.components.dynamic.detailSharedObj:null,c=$("#categoryGroupCode").val(),m=$("#categoryTypeCode").val(),g=$("#categorySubTypeCode").val(),q=!1;if("01000000"==c)q=!0;else if("03010100"==g&&("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","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"!=a||(c=!0);return c};pa.prototype.validateQuantity=function(a,c,
m,g){g=void 0===g?!1:g;var q=m.buyingToolOptSMBQuantity.find(".pd-select-option__error");if(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,m.buyingToolOptSMBQuantity.find("#counterText").val(a));
if(a<c.proudctPriceInfo.smbMinQty||a>c.proudctPriceInfo.smbMaxQty)g||(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=function(a,c){var m=a.util,g=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 fa=q.tradeInResult.list.length;0<fa;fa--)q.tradeInResult.list.splice(a.checkedIndex,1);q.tradeInResult.list=[];q.tradeInResult.dataPrice=0;q.tradeInResult.priceOverFlag=q.tradeInResult.dataPrice>a.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};g.tradeInResultDraw(q);J&&g.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;c="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,g=a.rewards.context;m.rewards=void 0;g.available&&bc_rewards&&bc_rewards.calculate(a).then(function(q){q&&(m.rewards=
bc_rewards.convertToDisplay(a,q))}).then(function(){return!!m.rewards&&c.rewardsDraw(a,m)})};ka.BuyingToolOpUtile=pa})();
(function(){function l(w,e,n){"Y"===$("#typeux2025").val()?(n=n.buyingToolOptOfferText.empty(),w.invokeTemplate("offerText",e,n.get(0))):(n=n.buyingToolOptOffer.empty(),w.invokeTemplate("offer",e,n.get(0)),e.offer.isViewMore&&n.find("#sgOfferListPanel").children("li[data-view-more-item\x3dtrue]").each(function(k,A){2<k&&$(A).addClass("pd-select-option__view-more--hidden")}))}function h(w,e){if(e&&0<e.length)for(var n in e){var k=e[n];$(w).find(k.target).html(k.text)}}function G(w,e){w=w.offer.childList;
for(var n in w)u(w[n],e)}function u(w,e){w=[w.promotionMessage,w.promotionFinance,w.promotionSmartclub];for(var n in w){var k=w[n],A;for(A in k){var ca=k[A].item;if(ca&&(ca=ca.rowText))for(var K in ca){var D=ca[K],f="Y"===$("#typeux2025").val()?!0:!1,C=e.buyingToolOptOffer.find(D.target);f&&(C=e.buyingToolOptOfferText.find(D.target));C.html(D.text)}}}}function p(w){var e=w.buyingToolPriceBar.get(0),n=w.buyingToolOptOffer.get(0);"Y"===$("#typeux2025").val()&&(n=w.buyingToolOptOfferText.get(0));var k=
w.buyingToolOptCare.get(0),A=w.buyingToolOptWarranty.get(0),ca=w.buyingToolOptUpgrade.get(0),K=w.buyingToolOptDelivery.get(0),D=w.buyingToolOptTariff.get(0),f=w.buyingToolOptTariffResult.get(0);w.buyingToolOptBezelOption.get(0);var C=w.buyingToolOptTradeIn.get(0),E=w.buyingToolOptCheckDealerStock.get(0),U=w.buyingToolCalculate.get(0),R=w.buyingToolOptGalaxyForever.get(0),y=w.buyingToolOptAssuredBuyBack.get(0),da=w.buyingToolOptNewAssuredBuyBack.get(0),wa=w.buyingToolOptOfferFinance.get(0),ra=w.buyingToolOptEmbedAddon.get(0);
w=$(w.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);n.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="");f&&(f.innerHTML="");U&&(U.innerHTML="");R&&(R.innerHTML="");y&&(y.innerHTML="");da&&(da.innerHTML="");wa&&(wa.innerHTML="");ra&&(ra.innerHTML="");w&&(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"))}
function 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 n={tradeIn:"buyingToolOptTradeIn",tradeInResult:"buyingToolOptTradeInResult",
checkDealerStock:"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",
assuredBuyBackResult:"buyingToolOptAssuredBuyBackResult",newAssuredBuyBack:"buyingToolOptNewAssuredBuyBack",newAssuredBuyBackResult:"buyingToolOptNewAssuredBuyBackResult",galaxyForever:"buyingToolOptGalaxyForever",galaxyForeverResult:"buyingToolOptGalaxyForeverResult",embedAddon:"buyingToolOptEmbedAddon",calculator:"buyingToolCalculate",between:"buyingToolOptBetween",offerFinance:"buyingToolOptOfferFinance"},k;for(k in n){var A=e[n[k]].get(0);if(w[k].hasComponent){var ca="Y"===$("#typeux2025").val()?
!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,T=window.sg.sdf.comp,
B=function(w,e){this.sharedObj=e;this.selectorObj=w;this.$ui=w.componentWrapper;this.component=T.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=
function(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,n=this.selectorObj,k=this.selectorObj.buyingToolInfoWishlist.get(0);k&&(k.innerHTML="",this.component.invokeTemplate("wishlist",w,k));e.util.thirdPartyTagging(e,n,n.buyingToolInfoWishlist.find(".pd-wishlist-cta"));
window.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"),n=$(".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'+
A.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)n.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'+
A.price+"\x3c/span\x3e\n\t\t\t\t  \x3c/li\x3e\n\t\t\t"}).join(""),n.find("ul.shipping-cost-popup__options").html(w)};B.prototype.productPriceTotalDraw=function(w,e){var n=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&&
!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(),
window.sg.components.SamsungFlexPopup.priceNavigationBarSavingsPostTradeUp=e.find(".pd-buying-price__inner .pd-buying-price__box").html());n.util.thirdPartyTagging(n,k,k.buyingToolPriceBar.find("a.cta"));n.util.settingCtaTagging(n,k);n.util.specialTagging(n,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(),
window.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);
e.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,n=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?($(n).addClass("has-component"),$(n).show()):
($(n).removeClass("has-component"),$(n).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?
($(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=
"";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=
function(w){var e=this.selectorObj,n=e.buyingToolOptNewAssuredBuyBack.get(0);n.innerHTML="";this.component.invokeTemplate("newAssuredBuyBack",w,n);w.newAssuredBuyBack.hasComponent?($(n).addClass("has-component"),$(n).show()):($(n).removeClass("has-component"),$(n).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=
function(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"),
$(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",
w,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);
e.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=
function(w){var e=this.sharedObj,n=this.selectorObj,k=n.buyingToolOptTariff.get(0);k.innerHTML="";this.component.invokeTemplate("tariffOption",w,k);w.tariffOption.hasComponent?(e.util.thirdPartyTagging(e,n,n.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",
w,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,n=this.sharedObj,k=e.buyingToolOptTradeIn.get(0);
k.innerHTML="";this.component.invokeTemplate("tradeIn",w,k);w.tradeIn.hasComponent?(n.util.thirdPartyTagging(n,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,n=e.buyingToolOptTradeInErrMsg.get(0);n.innerHTML="";this.component.invokeTemplate("tradeInErrMsg",w,n);w.tradeInErrMsg.hasComponent?(e.buyingToolOptTradeIn.find(".pd-option-selector").each(function(k,
A){k=$(A);k.addClass("cta--disabled");k.find(".option-input").prop("disabled",!0)}),$(n).addClass("has-component"),$(n).show(),window.sg.common.icon.update(document.querySelector("#tradeInErrMsg span.option-result__message-inner"))):($(n).removeClass("has-component"),$(n).hide())};B.prototype.tradeInResultDraw=function(w){var e=this.selectorObj,n=e.buyingToolOptTradeInResult.get(0),k=this.sharedObj.siteCode;n.innerHTML="";this.component.invokeTemplate("tradeInResult",w,n);"vn"===k&&$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").hide();
"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){$(n).addClass("has-component");$(n).show();n=!1;!this.sharedObj.isMultiTradeIn||"si"!==k&&"hr"!==k?this.sharedObj.isMultiTradeIn&&(n=w.tradeInResult.list&&w.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||w.tradeInResult.priceOverFlag):n=w.tradeInResult.list&&3<=w.tradeInResult.list.length||
w.tradeInResult.priceOverFlag;if("pl"===k&&isNotEmpty(w.priceAnchor.priceWrapper.info.summaryPrice)&&isNotEmpty(w.tradeInResult.dataPrice)&&1>=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&&n){if("si"===k||"hr"===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);if(w.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||"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)&&(n=e.buyingToolOptTradeInResult.find(".limit-count"))&&0<n.length&&n.is(":visible")&&n.hide();w.tradeInResult.priceOverFlag?("au"===k&&e.buyingToolOptTradeInResult.find(".option-result__multiple-price").text(currencyComma(0,this.sharedObj.priceCurrency)),"tr"!==k&&e.buyingToolOptTradeInResult.find(".over-price-alert").show(),
"sg"===k||"cl"===k||"tr"===k?e.buyingToolOptTradeInResult.find(".desc-target").show():e.buyingToolOptTradeInResult.find(".desc-target").hide(),("sg"===k||"my"===k)&&(n=e.buyingToolOptTradeInResult.find(".limit-count"))&&0<n.length&&n.is(":visible")&&n.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",!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 $(n).removeClass("has-component"),$(n).hide();v()};B.prototype.checkDealerStockDraw=function(w){var e=this.selectorObj,n=e.buyingToolOptCheckDealerStock.get(0);e=$(e.buyingToolOptCheckDealerStock);
n.innerHTML="";this.component.invokeTemplate("checkDealerStock",w,n);e.find(".menu__list-wrap.scrollbar").remove();w.checkDealerStock.hasComponent?($(n).addClass("has-component"),$(n).show()):($(n).removeClass("has-component"),$(n).hide());window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);0===e.find(".menu__list-wrap.scrollbar").length&&window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0])};
B.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"):
$(e).removeClass("has-component");v()};B.prototype.productCtaDraw=function(w){var e=this.sharedObj,n=this.selectorObj;if(x.isEnabled()){x.drawPriceSection(w);var k=n.buyingToolPriceBar.empty().get(0);this.component.invokeTemplate("buyingPrice",w,k);e.util.thirdPartyTagging(e,n,n.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"===
$("#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,n=this.selectorObj,k=n.buyingToolOptCare.get(0);k.innerHTML="";this.component.invokeTemplate("care",w,k);w.care.hasComponent?(e.util.thirdPartyTagging(e,n,n.buyingToolOptCare.find(".option-input")),$(n.buyingToolOptCare.get(0)).addClass("has-component"),
h(n.buyingToolOptCare,w.care.rowText),$(n.buyingToolOptCare.get(0)).show()):$(n.buyingToolOptCare.get(0)).hide();w.careResult.hasComponent?($(n.buyingToolOptCare.get(0)).addClass("has-component"),$(n.buyingToolOptCareResult.get(0)).show()):$(n.buyingToolOptCareResult.get(0)).hide();$(n.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=
this.selectorObj,n=e.buyingToolOptWarranty.get(0);n.innerHTML="";this.component.invokeTemplate("warranty",w,n);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,n=this.selectorObj,k=n.buyingToolOptWarrantyVd.get(0);k.innerHTML="";this.component.invokeTemplate("warrantyVd",
w,k);w.warrantyVd.hasComponent?(e.util.thirdPartyTagging(e,n,n.buyingToolOptWarrantyVd.find("input")),$(n.buyingToolOptWarrantyVd.get(0)).show()):$(n.buyingToolOptWarrantyVd.get(0)).hide();w.warrantyVdResult.hasComponent?$(n.buyingToolOptWarrantyVdResult.get(0)).show():$(n.buyingToolOptWarrantyVdResult.get(0)).hide()};B.prototype.productOfferDraw=function(w,e){e=this.sharedObj;var n=this.selectorObj;F(w,n);l(this.component,w,n);u(w.offer,n);w.offer.hasComponent&&w.offer.hasPackage&&G(w,n);$("#siteCode").val();
"Y"===$("#typeux2025").val()?w.offer.hasComponent?(e.util.thirdPartyTagging(e,n,n.buyingToolOptOfferText.find('a[data-target-popup!\x3d"eipPopup"]')),$(n.buyingToolOptOfferText.get(0)).addClass("has-component"),$(n.buyingToolOptOfferText.get(0)).show()):$(n.buyingToolOptOfferText.get(0)).hide():w.offer.hasComponent?(e.util.thirdPartyTagging(e,n,n.buyingToolOptOffer.find('a[data-target-popup!\x3d"eipPopup"]')),$(n.buyingToolOptOffer.get(0)).addClass("has-component"),$(n.buyingToolOptOffer.get(0)).show()):
$(n.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 n=this.selectorObj,k=n.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&&
$(".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,n,n.buyingToolOptEmbedAddon.find(".add-on-product-list-wrap button")),$(n.buyingToolOptEmbedAddon.get(0)).addClass("has-component"),$(n.buyingToolOptEmbedAddon.get(0)).show(),w.isOptClicked&&w.util.clickEventListener(w,n)):($(n.buyingToolOptEmbedAddon.get(0)).removeClass("has-component"),
$(n.buyingToolOptEmbedAddon.get(0)).hide())};B.prototype.productDraw=function(w){var e=this.selectorObj,n=this.component;F(w,e);p(e);x.drawPriceSection(w);var k=e.buyingToolPriceBar.get(0);n.invokeTemplate("buyingPrice",w,k);setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100);n.invokeTemplate("delivery",w,e.buyingToolOptDelivery.get(0));n.invokeTemplate("deliveryResult",w,e.buyingToolOptDeliveryResult.get(0));n.invokeTemplate("deliveryPickupStore",w,e.buyingToolOptDeliveryPickupStore.get(0));
n.invokeTemplate("tariffOption",w,e.buyingToolOptTariff.get(0));n.invokeTemplate("tariffOptionResult",w,e.buyingToolOptTariffResult.get(0));n.invokeTemplate("prePurchase",w,e.buyingToolOptPrePurchase.get(0));l(n,w,e);n.invokeTemplate("offerFinance",w,e.buyingToolOptOfferFinance.get(0));n.invokeTemplate("care",w,e.buyingToolOptCare.get(0));n.invokeTemplate("careResult",w,e.buyingToolOptCareResult.get(0));n.invokeTemplate("warranty",w,e.buyingToolOptWarranty.get(0));n.invokeTemplate("warrantyResult",
w,e.buyingToolOptWarrantyResult.get(0));n.invokeTemplate("bezelOption",w,e.buyingToolOptBezelOption.get(0));n.invokeTemplate("tradeIn",w,e.buyingToolOptTradeIn.get(0));n.invokeTemplate("tradeInResult",w,e.buyingToolOptTradeInResult.get(0));n.invokeTemplate("checkDealerStock",w,e.buyingToolOptCheckDealerStock.get(0));$(e.buyingToolOptCheckDealerStock).find(".menu__list-wrap.scrollbar").remove();n.invokeTemplate("upgrade",w,e.buyingToolOptUpgrade.get(0));n.invokeTemplate("upgradeResult",w,e.buyingToolOptUpgradeResult.get(0));
n.invokeTemplate("galaxyForever",w,e.buyingToolOptGalaxyForever.get(0));n.invokeTemplate("galaxyForeverResult",w,e.buyingToolOptGalaxyForeverResult.get(0));n.invokeTemplate("assuredBuyBack",w,e.buyingToolOptAssuredBuyBack.get(0));n.invokeTemplate("assuredBuyBackResult",w,e.buyingToolOptAssuredBuyBackResult.get(0));n.invokeTemplate("newAssuredBuyBack",w,e.buyingToolOptNewAssuredBuyBack.get(0));n.invokeTemplate("newAssuredBuyBackResult",w,e.buyingToolOptNewAssuredBuyBackResult.get(0));n.invokeTemplate("embedAddon",
w,e.buyingToolOptEmbedAddon.get(0));n.invokeTemplate("calculator",w,e.buyingToolCalculate.get(0));k=$(e.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);n.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")&&
A.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&&G(w,e);h(e.buyingToolOptCare,w.care.rowText)};B.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",
w)}};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,
learnMoreCta:{"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},
assuredBuyBack:{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,
text: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},
noAttr:{"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}],
beveledTypeList:[{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},
noAttr:{"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,
dataId:[],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}],
rowText:[{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,
discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice: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,
priceDisplay: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,
learnMoreCta:{"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,
hideClass: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,
srcPc: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,
dataDisplayName: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,
description:{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,
contentWrapperClass: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,
headline: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},
submitAttr:{}},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,
alt: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,
dataTtile: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,
moCode: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=
$("#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'+
w+"\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=
function(w,e){this.productPriceTotalDraw(e,w.isOptClicked);v()};aa.BuyingToolOpView=B})();
(function(){function l(x){var T=x.util,B=x.comboSearchList,w=x.noComboSearchList,e=x.realComboSearchList,n=!1;if(T.isNotEmptyArray(B)){var k=x.pdSoftBundleUseYn,A;for(A in B){var ca=B[A],K=e[A],D=w[A],f=[],C;for(C in ca)for(var E in K){var U=ca[C],R=K[E];if(R.ctaType&&"NOORDER"!==R.ctaType.toUpperCase()&&U.msrp_price&&U.msrp_price.value)if(n=!0,U.sku===R.shopSKU)R.thumbUrl=T.imgDomain(R.thumbUrl),R.msrp_price=U.msrp_price,R.sale_price=U.sale_price,R.formatted_value=U.formatted_value,R.sales_pitch=
U.sales_pitch,R.type=U.type,f.push(R);else if("Y"===k&&"ecom"===U.sku_source)for(var y in D)U.sku===D[y].sku&&f.push(searchComboData[kdx])}T.isNotEmptyArray(f)&&x.globalComboData.push(f)}}n||(x.drawObj.offer.combo=[],x.view.productOfferDraw(x.drawObj))}function h(x,T,B){T=x.util;var w=x.priceCurrency,e=x.view;x=x.drawObj;for(var n in B){var k=B[n],A=k.thumbUrl,ca=k.thumbUrlAlt,K=x.offer,D=k.pviTypeName?k.pviTypeName.toLowerCase():"",f=k.pviSubtypeName?k.pviSubtypeName.toLowerCase():"",C=k.categorySubTypeEngName?
k.categorySubTypeEngName.toLowerCase():"";A=T.getImgAttr(A,A,ca,{classWapper:"image__main responsive-img"});ca=[];var E=B[n];E.bogo_sales_pitch&&ca.push({text:E.bogo_sales_pitch});var U="",R="",y="";k.price_info&&0<k.price_info.length&&(U=k.price_info[0],y=U.msrp_price.value,U=U.msrp_price.formatted_value,"nl"!==siteCode&&"be"!==siteCode&&"be_fr"!==siteCode&&(R=Granite.I18n.get("Save {0}",U)));var da=currencyComma(0,w);"true"===$("#isEppPage").val()&&"pl"===siteCode&&(R=U="");k={title:"bogo",hasItem:!0,
item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),modelCode:k.modelCode,modelName:k.modelName,displayName:k.displayName,pviTypeName:D,pviSubtypeName:f,categorySubTypeEngName:C,description:{hasDescription:!0,main:ca,date:E.bogo_date},imgAttr:A,price:{hasPrice:!0,price:y,original:U,save:R,now:da}}};K.bogo=k}e.productOfferDraw(x)}function G(x){var T=x.getFullYear(),B=String(x.getMonth()+1).padStart(2,"0");x=String(x.getDate()).padStart(2,"0");return T+"-"+B+"-"+x}function u(x){var T=
x.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"}}(T);x="January February March April May June July August September October November December".split(" ")[x.getMonth()];return""+T+B+" "+x}function p(x,T){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"),
F=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,T){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,
data:JSON.stringify({marketId:B,modelCodes:w}),xhrFields:{withCredentials:!0},success:function(e){if(e&&0<e.length)for(var n in e){var k=e[n];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,T))}}})};W.prototype.setUsProductJson=
function(x,T){$.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*
B,x.priceCurrency),x.drawObj.usEppData.title="with Samsung Discount Program",x.view.usEppDraw(x.drawObj))}})};W.prototype.setEppDiscount=function(x,T){$.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=
!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,T,B,w,e){var n=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 f=ca.next();!f.done;f=ca.next())f=f.value,k[f.modelcode]={relatedAPI:f}}0<Object.keys(k).length?
n.callSearchApiAjax(Object.keys(k),function(C,E,U){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 y=$jscomp.makeIterator(R.modelList),da=y.next();!da.done;da=y.next())da=da.value,k["in"!==siteCode?da.modelCode:da.shopSKU].searchAPI={categoryData:R,modelData:da}}}A.totalResult=k;T(A,E,U)},D,e):T(A,K,D)}else T(A,K,D)},B,w)};
W.prototype.callSearchApiAjax=function(x,T,B,w){x=void 0===x?[]:x;B=void 0===B?{}:B;var e=$("#searchDomain").val(),n=$("#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,
2)?!0:!1,f=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||f||C;f=$.cookies.get("country_region")?$.cookies.get("country_region").toString():"";"levant"===n||"levant_ar"===n||"n_africa"===n||"ae"!==n&&"ae_ar"!==n||$.cookies.get("estoreSitecode",
{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:n,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]),""!=
window.sg.epp.common.userStoreId&&(x.o2oId=window.sg.epp.common.userStoreId));D&&(x.vd3PACardYN="Y");x.commonCodeYN="in"!=n?"N":"Y";if("ca"===n||"ca_fr"===n)x.regionCode=null!=f&&""!=f?f:"CA-ON";var E="",U=!1;w&&(x=w);$.ajax({url:e,type:"GET",data:x,dataType:"json",cache:!0,crossDomain:!0,timeout:2E4,success:function(R){E=R;U=!0},complete:function(){T(E,U,B)}})};W.prototype.callRelatedProductAjax=function(x,T,B,w){B=void 0===B?{}:B;var e="",n="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
$("#siteCode").val();e="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();x=e+"/tokocommercewebservices/v2/"+n+"/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()?
{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(){T(k,A,B)}})};W.prototype.callRelatedProductAjaxOldHybris=function(x,T,B,w,e){w=void 0===w?{}:w;var n=$("#storeDomain").val(),k=x.multistoreSiteCd,A="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():k;k="ca"===k||"ca_fr"===k;T=n+"/"+A+"/servicesv2/getRelatedProductsSimpleInfo?productCode\x3d"+T;n="\x26country_region\x3d";
k&&(A=getSECACountryRegion(),n+=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:T,type:"GET",data:A,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f){ca=
f;K=!0},complete:function(){B(ca,K,w)}}):k?$.ajax({url:T+n,type:"GET",data:A,dataType:"jsonp",jsonpCallback:D,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f){ca=f;K=!0},complete:function(){B(ca,K,w)}}):$.ajax({url:T,type:"GET",data:A,dataType:"jsonp",jsonpCallback:D,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f){ca=f;K=!0},complete:function(){B(ca,K,w)}})};W.prototype.callRelatedProductAjaxAddOns=function(x,T,B,w){B=void 0===
B?{}:B;var e=$("#storeDomain").val(),n="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/"+n+"/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(){T(k,A,B)}})};
W.prototype.callRelatedProductAjaxAddOnsOldHybris=function(x,T,B,w,e,n){e=void 0===e?{}:e;var k=$("#storeDomain").val(),A=T.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="";n&&(ca=n);x&&(ca.categoryPrefix="AEM_");n="Query1910499421933433041_161";x&&(n="Query1910499421933433041_162");
"Y"===T.hybrisJsonYn?$.ajax({url:B,type:"GET",data:ca,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f){K=f;D=!0},complete:function(){w(K,D,e)}}):A?$.ajax({url:B+k,type:"GET",data:ca,dataType:"jsonp",jsonpCallback:n,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f){K=f;D=!0},complete:function(){w(K,D,e)}}):$.ajax({url:B,type:"GET",data:ca,dataType:"jsonp",jsonpCallback:n,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
success:function(f){K=f;D=!0},complete:function(){w(K,D,e)}})};W.prototype.callSimulatecartAjax=function(x,T,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 n=e;"true"!==$("#isEppPage").val()&&("levant"===e?n="jo":"levant_ar"===e?n="jo_ar":"n_africa"===e&&
(n="ma"));w=w+"/tokocommercewebservices/v2/"+n+"/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(){T(k,A,B)}})};W.prototype.deliveryUsAPI=function(x,T,B,w){var e=x.apiDomain+"/v4/fulfillment/earliest-available-delivery-dates";x.drawObj.deliveryResult={hasComponent:!1,mainText:null,
decText: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(n){var k=x.drawObj,A=k.delivery,ca=k.deliveryResult;k.delivery.errorMessage=null;if(null!==n&&0<n.length){var K=!1,D;for(D in n){var f=n[D];if(f.sku&&f.sku===w&&f.earliest_available_delivery_date){K=
!0;x.cartPinCode=B;ca.hasComponent=!0;A.inputAttr.value=B;var C=new Date(f.earliest_available_delivery_date);f=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+", "+f)});$.cookies.set("HA-Deeplink-Zipcode",B,{domain:".samsung.com"})}}K||(k.delivery.errorMessage=
"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(n){n=x.drawObj;n.delivery.errorMessage="This product is currently not available in your area.";n.delivery.inputAttr.value=B},complete:function(){var n=x.view,k=x.drawObj,A=$(T.buyingToolOptDelivery),ca=x.util;n.deliveryResultDraw(k);n.deliveryDraw(k);k.delivery.errorMessage?($(A).find(".text-field-v2__text.error").show(),
$(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,T,x.currentUrl)}})};W.prototype.deliveryAPI=function(x,T,B,w){var e=x.apiDomain,n=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=
e+"/v4/configurator/postal-code-check";"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(f){"Y"===k&&f.setRequestHeader("x-ecom-locale",n)},success:function(f){var C=x.drawObj,
E=C.delivery,U=C.deliveryResult,R=x.siteCode,y="";null!==f?f.valid?(x.cartPinCode=B,U.hasComponent=!0,E.inputAttr.value=B,U.mainText=null!==f.deliveryTurnAroundTime?f.deliveryTurnAroundTime:"",$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+R})):y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently."):y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");C.delivery.errorMessage=y},error:function(f){var C=x.drawObj;f.responseJSON?(f=f.responseJSON,f=
f.message?Granite.I18n.get(f.message):Granite.I18n.get("We're sorry, an error occurred.")):f=Granite.I18n.get("We're sorry, an error occurred.");C.delivery.errorMessage=f},complete:function(){var f=x.view,C=x.drawObj;f.deliveryResultDraw(C);f.deliveryDraw(C);C.delivery.errorMessage&&($(T.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(T.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B))}})):$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json",
"Access-Control-Allow-Origin":"*"},url:D,type:"POST",dataType:"json",timeout:2E4,data:JSON.stringify(K),xhrFields:{withCredentials:!0},beforeSend:function(f){"Y"===k&&f.setRequestHeader("x-ecom-locale",n)},success:function(f){var C=x.drawObj,E=C.delivery,U=C.deliveryResult,R=x.siteCode,y="";null!==f&&0<f.length?f[0].is_op_available?(f=f[0],x.cartPinCode=B,U.hasComponent=!0,E.inputAttr.value=B,U.mainText=Granite.I18n.get("Delivery available. Get it in {0}",null!==f.turn_around_time?f.turn_around_time:
""),f.local_dealers&&0<f.local_dealers.length&&(E=f.local_dealers[0],U.decText=E.store_name,E.address&&U.disclaimerList.push({disclaimer:E.address}),E.contact_number&&U.disclaimerList.push({disclaimer:E.contact_number})),$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+R})):y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently."):y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");C.delivery.errorMessage=y},error:function(f){var C=x.drawObj;f.responseJSON?
(f=f.responseJSON,f=f.message?Granite.I18n.get(f.message):Granite.I18n.get("We're sorry, an error occurred.")):f=Granite.I18n.get("We're sorry, an error occurred.");C.delivery.errorMessage=f},complete:function(){var f=x.view,C=x.drawObj;f.deliveryResultDraw(C);f.deliveryDraw(C);C.delivery.errorMessage&&($(T.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(T.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B))}})};W.prototype.deliveryNewBybrisAPI=function(x,T,
B,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",
timeout:3E4,xhrFields:w,crossDomain:!0,contentType:"application/json",success:function(n){var k=n.deliveryTurnAroundTime;n.valid?(x.drawObj.delivery.inputAttr.value=B,x.drawObj.deliveryResult={hasComponent:n.valid,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",
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(n){var k=x.drawObj;n.responseJSON?(n=n.responseJSON,n=n.message?Granite.I18n.get(n.message):Granite.I18n.get("We're sorry, an error occurred.")):n=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=n},complete:function(){var n=x.view,k=x.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);
n.deliveryResultDraw(k);n.deliveryDraw(k);k.delivery.errorMessage&&($(T.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(T.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));k.delivery.priorityDeliveryText&&$(T.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"===
$("#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(n){var k=n.deliveryTurnAroundTime;n.valid&&"oos"===k&&"id"===siteCode?x.drawObj.delivery.errorMessage=Granite.I18n.get("Delivery Out Of Stock Message"):n.valid?(x.drawObj.delivery.inputAttr.value=B,x.drawObj.deliveryResult={hasComponent:n.valid,
mainText: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(n){var k=x.drawObj;n.responseJSON?(n=n.responseJSON,n=n.message?Granite.I18n.get(n.message):Granite.I18n.get("We're sorry, an error occurred.")):n=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=n},complete:function(){var n=
x.view,k=x.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);n.deliveryResultDraw(k);n.deliveryDraw(k);k.delivery.errorMessage&&($(T.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(T.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));k.delivery.priorityDeliveryText&&$(T.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();F.buyingTool.bindPdTooltipEvent()}}))};W.prototype.deliveryInAPI=function(x,T,B,w){var e=x.apiDomain,
n="";"true"===$("#isEppPage").val()&&(n="\x26store_id\x3d"+$("#eppCompanyCode").val());w=e+"/v4/configurator/serviceability?postal_code\x3d"+B+"\x26skus\x3d"+[w]+n;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",
dataType:"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,f=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,U=null,R;for(R in k[0].delivery_modes){var y=k[0].delivery_modes[R];x.cartPinCode=B;D.hasComponent=!0;K.inputAttr.value=B;
if(y.custom_properties.delivery_mode_type&&y.estimated_delivery_date){var da=y.custom_properties.delivery_mode_type,wa="standard"===da.replace(/ /g,"").toLowerCase(),ra="prioritydelivery"===da.replace(/ /g,"").toLowerCase(),oa=y.estimated_delivery_date,ea=Number(oa.split("-")[2]);da="";y.short_description&&(da=y.short_description);var na=y.flags.is_installation_available,L=y.earliest_installation_date;na&&L&&ra&&(E="Schedule installation \x26 Demo : By "+p(L,"priority"));na&&L&&wa&&(U="Schedule installation \x26 Demo : By "+
p(L,"standard"));ra?y.estimated_delivery_time&&(D.priorityCost=y.cost.value,y=y.estimated_delivery_time,wa="",y&&(y=Number(y.split(":")[0]),12>y?wa="AM":(12<y&&(y-=12),wa="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===ea?"Today":ra+1===ea?"Tomorrow":p(oa).split(",")[0],D.priorityText=da+": "+oa+" by "+y+" "+wa):wa&&(D.mainText=
"Delivery by "+p(oa,"standard"))}}E?(D.subText=E,D.mainText=null):U&&(D.subText=U,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&&
(f.hasComponent=!0,f.deliveryPickupStore=!0,f.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,
k=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&&($(T.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(T.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));
A.delivery.priorityDeliveryText&&$(T.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==A.deliveryResult.priorityText&&!0===A.tradeInResult.isUpfront?$(T.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==A.deliveryResult.priorityText&&!1===A.tradeInResult.isUpfront&&$(T.buyingToolOptDeliveryResult).find(".delivery-priority").show();F.buyingTool.bindPdTooltipEvent()}})};W.prototype.deliveryNewInAPI=function(x,T,B,w){var e=x.apiDomain;"true"===$("#isEppPage").val()&&
$("#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:"",
disclaimerList:[]};$.ajax({url:w,type:"GET",dataType:"json",timeout:3E4,crossDomain:!0,xhrFields:e,contentType:"application/json",success:function(n,k,A){k=x.drawObj;var ca=k.delivery,K=k.deliveryResult,D=k.deliveryPickupStore,f=null;k.delivery.ctaClass="cta--disabled";if(200==A.status)if((A=n.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;
K.mainText=null;K.priorityText=null;A.local_dealers[0].estimated_delivery_date&&(K.mainText="Delivery : By "+p(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(da){return da.model_code.includes("SDD")})||ca.find(function(da){return da.model_code.includes("NDD")})||ca[0];if(C){ca=C.model_code.includes("SDD")||C.model_code.includes("NDD");var E=G(new Date),
U=C.estimated_delivery_date;E=Math.round((new Date(U)-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(U)),K.mainText=null):K.mainText="Delivery : By "+u(new Date(U))}}n.deliveryTurnAroundTime&&(K.mainText?K.mainText=n.deliveryTurnAroundTime:K.priorityText&&(K.priorityText=n.deliveryTurnAroundTime));
n.pdpDeliveryInfo.earliest_installation_date&&(K.subText="Schedule installation \x26 Demo : By "+p(n.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&&""!==
A.local_dealers[R].store_name)if(D.hasComponent=!0,D.deliveryPickupStore=!0,D.deliveryPickupStoreName=A.local_dealers[R].store_name,n.pdpDeliveryInfo.bopisDescription&&0<n.pdpDeliveryInfo.bopisDescription.length)for(var y in n.pdpDeliveryInfo.bopisDescription)D.disclaimerList.push(n.pdpDeliveryInfo.bopisDescription[y]);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")),
D.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 f=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else f=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else f=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");k.delivery.errorMessage=f},error:function(n){var k=x.drawObj;n.responseJSON?(n=n.responseJSON,
n=n.message?Granite.I18n.get(n.message):Granite.I18n.get("We're sorry, an error occurred.")):n=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=n},complete:function(){var n=x.view,k=x.drawObj,A="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();n.deliveryResultDraw(k);n.deliveryDraw(k);n.deliveryPickupStoreDraw(k);k.delivery.errorMessage&&($(T.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),A||$(T.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));
k.delivery.priorityDeliveryText&&$(T.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==k.deliveryResult.priorityText&&!0===k.tradeInResult.isUpfront?$(T.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==k.deliveryResult.priorityText&&!1===k.tradeInResult.isUpfront&&$(T.buyingToolOptDeliveryResult).find(".delivery-priority").show();x.util.checkAddToCart(x,T);F.buyingTool.bindPdTooltipEvent()}})};W.prototype.externalAjax=function(x,T){T=x.apiDomain;var B=x.pdMultiLanguageYN,
w=x.pdHrefLang,e={access_token:x.accessToken,skus:[x.shopSkuCode]};"true"===$("#isEppPage").val()&&(e.store_id=$("#eppCompanyCode").val());$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:T+"/v1/exchange/external",type:"POST",dataType:"json",data:JSON.stringify(e),timeout:1E4,xhrFields:{withCredentials:!0},beforeSend:function(n){"Y"===B&&n.setRequestHeader("x-ecom-locale",w)},success:function(n){null!==n&&0<n.length&&x.afterEvent.offerAndAddonsDiscount(n,
"galaxyapp")},error:function(n){var k="";n.responseJSON&&n.responseJSON.message&&(k=n.responseJSON.message);confirmPopup(k)},complete:function(){history.replaceState({},null,location.pathname)}})};W.prototype.exchangeInDataV1Api=function(x,T,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,
n="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(e=$("#gpvStoreDomain").val(),n="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:e+n,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)?
(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,T,x.view)}})};W.prototype.tradeInCeDataV1Api=function(x,T,B){var w={device_id:B.device_id,device_info:{product_condition:$(".radio-v2.active").children("input").val().toLowerCase()},
offer_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,n="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(e=$("#gpvStoreDomain").val(),n="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:e+n,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)?(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,T,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(T){},error:function(T){}})};W.prototype.waitSearchAPI=function(x,T){x.checkingBogoSearchFlag&&x.checkingComboSearchFlag&&x.checkingAddOnSearchFlag&&x.checkingGiftSearchFlag&&
this.callSearchApi(x,T)};W.prototype.historyBackEvent=function(){-1!=navigator.userAgent.indexOf("Android 4.")&&navigator.userAgent.indexOf("AppleWebKit");var x="add-on",T="add on",B="-option-select";$(".hubble-addon-page").is(":visible")&&($(".hubble-addon-page").hasClass("is-gift-type")?(x="freegift",T="free gift",B="-cta-option alert popup"):v.detailSharedObj.isVoucher&&(T=x="evoucher"));var w=!1;window.addEventListener("popstate",function(e){e&&(w=!0,$("body").css("display","none"),window.location.reload())});
w||$("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(n){w||($("#content").is(":visible")?history.back():(n={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),
btnPrimaryAttrs:{"an-tr":"bridge_"+T+"-"+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(),
"data-discountprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":v.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"},btnGhostyAttrs:{"an-tr":"bridge_"+T+"-"+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,
"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(n,"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"),
$(".confirm-popup").hide(),location.reload();else return history.pushState(null,document.title,location.href),$(".confirm-popup").hide(),!1})))})},500)};W.prototype.callSearchApi=function(x,T){var B=x.siteCode,w=x.pdStageInfo,e=x.pdSearchDomain+"/",n=[],k="",A=x.careAndWarrantySearchList,ca=x.careSearchList,K=x.addOnSearchList,D=x.giftSearchList,f=x.bogoSearchList,C=x.comboSearchList;k=x.noComboSearchList=[];var E=x.realComboSearchList=[];for(ra in A)n.push(A[ra]);for(var U in ca)n.push(ca[U]);for(var R in K)n.push(K[R]);
for(var y in D)n.push(D[y]);for(var da in f)n.push(f[da].sku);for(var wa in C){var ra=C[wa];U=[];R=[];for(var oa in ra)y=ra[oa],"ecom"!==y.sku_source?(n.push(y.sku),R.push({sku:y.sku})):U.push(y);0===R.length&&x.globalComboData.push(U);k.push(U);E.push(R)}if(k=n.join(","))x.finishedSearch=!1;else return!1;B={commonCodeYN:"Y",siteCode:B,modelList:k,saleSkuYN:"N",onlyRequestSkuYN:"Y"};wa=(n="true"===$("#isEppPage").val())?"epp/v2":"b2c";n&&(B.companyCode=$("#eppCompanyCode").val(),window.sg.epp.common.isUserGroupPricing&&
(B.groupName=window.sg.epp.common.groupName));$.ajax({url:e+w+"/"+wa+"/product/card/detail/gpv2",type:"GET",data:B,dataType:"json",cache:!0,success:function(ea,na,L){na=ea.response;ea=x.util;if(200===na.statusCode){var O=na.resultData.productList;for(H in O){na=O[H];L=na.modelList;for(var b in L){var r=L[b];ea.merge(x.totalSkuList,r.shopSKU,r,"searchProductCard");x.totalSkuList[r.shopSKU]&&(x.totalSkuList[r.shopSKU].categorySubTypeEngName=na.categorySubTypeEngName,x.totalSkuList[r.shopSKU].categorySubTypeCode=
na.categorySubTypeCode,x.totalSkuList[r.shopSKU].familyIndex=H)}}x.addOnGift&&x.addOnGift.products&&0<x.addOnGift.products.length&&x.addOnGift.products.filter(function(Z){for(var d in O){var M=O[d];if(M.modelList&&0<M.modelList.length){M=M.modelList;for(var t in M)if(Z.modelCode===M[t].modelCode)return O[d]}}});var H=[];if(x.addOnApiList&&x.addOnApiList.addOn&&x.addOnApiList.addOn.list&&0<x.addOnApiList.addOn.list.length){var N=x.addOnApiList.addOn.list;H=O.filter(function(Z){for(var d in N)for(var M in O){var t=
O[M];if(t.modelList&&0<t.modelList.length){t=t.modelList;for(var z in t)if(N[d].discounted_sku===t[z].shopSKU)return Z}}});x.addOnSearchGPv2=H}}},error:function(ea,na,L){},complete:function(){var ea=x.util,na=x.bogoSearchList,L=x.addOnApiList,O=x.realComboSearchList;if(L.careAndWarranty&&ea.isNotEmptyArray(L.careAndWarranty.list))for(var b in L.careAndWarranty.list){var r=L.careAndWarranty.list[b],H=r.sku;x.totalSkuList[H]&&$.extend(r,x.totalSkuList[H])}if(L.care&&ea.isNotEmptyArray(L.care.list))for(var N in L.care.list)b=
L.care.list[N],r=b.discounted_sku,x.totalSkuList[r]&&$.extend(b,x.totalSkuList[r]);if(L.addOn&&ea.isNotEmptyArray(L.addOn.list)){for(var Z in L.addOn.list)N=L.addOn.list[Z],b=N.discounted_sku,x.totalSkuList[b]&&$.extend(N,x.totalSkuList[b]);x.addOnCategoryList=x.addOnCategoryList.filter(function(X){if(0<X.category.productList.length)return X})}if(L.addOn&&ea.isNotEmptyArray(L.gift.list)){Z=!1;for(N=0;N<L.gift.list.length;N++){b=L.gift.list[N];r=b.discounted_sku;H=x.totalSkuList[r];var d=H.inventory,
M=!1;d&&d.status&&(M="NOORDER"===d.status.toUpperCase()||"OUTOFSTOCK"===d.status.toUpperCase());M?L.gift.list.splice(N--,1):H&&-1<H.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(ea.isNotEmptyArray(na)){for(var t in na)L=
na[t],Z=L.sku,x.totalSkuList[Z]&&$.extend(L,x.totalSkuList[Z]);h(x,T,na)}if(ea.isNotEmptyArray(C)){for(var z in O){ea=O[z];for(var I in ea)na=ea[I],t=na.sku,x.totalSkuList[t]&&$.extend(na,x.totalSkuList[t])}l(x)}x.finishedSearch=!0;x.util.afterTotalAPI(x,T)}})};W.prototype.callAddOnApi=function(x,T){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());
x.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 n=0;for(C in e.expanded.product_tags){n++;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,
key:n,order:n,productList:[]}})}n=[];for(var A in e.products)for(var ca in x.addOnInfoTemp)e.products[A].sku===x.addOnInfoTemp[ca].discounted_sku&&n.push(e.products[A]);for(var K in x.addOnCategoryList)for(var D in n)for(var f in n[D].product_tags)x.addOnCategoryList[K].category.product_tag===n[D].product_tags[f]&&x.addOnCategoryList[K].category.productList.push(n[D]);n=x.careAndWarrantySearchList=[];f=x.careSearchList=[];A=x.addOnSearchList=[];D=x.giftSearchList=[];ca=x.addOnApiList;K=x.util;var C=
"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 U in E)"ecom"!==E[U].sku_source&&n.push(E[U].discounted_sku)}if(K.isNotEmptyArray(ca.care.list)){U=ca.care.list;for(var R in U)"ecom"!==U[R].sku_source&&f.push(U[R].discounted_sku)}}if(K.isNotEmptyArray(ca.gift.list)){R=ca.gift.list;for(var y in R)R[y].discounted_sku&&D.push(R[y].discounted_sku);
$.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 da in e)e[da].discounted_sku&&A.push(e[da].discounted_sku)}},error:function(e){e.responseJSON&&e.responseJSON.message&&(e=e.responseJSON.message,confirmPopup(e))},complete:function(){var e=x.commonApiModel,n=x.addOnApiList,k=x.util;x.checkingAddOnSearchFlag=
!0;x.finishedAddOn=!0;x.checkingGiftSearchFlag=!0;if(n.careAndWarranty&&k.isNotEmptyArray(n.careAndWarranty.list))for(var A in n.careAndWarranty.list){var ca=n.careAndWarranty.list[A],K=ca.sku;x.totalSkuList[K]&&$.extend(ca,x.totalSkuList[K])}if(n.care&&k.isNotEmptyArray(n.care.list))for(var D in n.care.list)A=n.care.list[D],ca=A.discounted_sku,x.totalSkuList[ca]&&$.extend(A,x.totalSkuList[ca]);if(n.addOn&&k.isNotEmptyArray(n.addOn.list))for(var f in n.addOn.list)D=n.addOn.list[f],A=D.discounted_sku,
x.totalSkuList[A]&&$.extend(D,x.totalSkuList[A]);if(n.addOn&&k.isNotEmptyArray(n.gift.list))for(var C in n.gift.list)k=n.gift.list[C],f=k.discounted_sku,x.totalSkuList[f]&&$.extend(k,x.totalSkuList[f]);e.waitSearchAPI(x,T);x.util.afterTotalAPI(x,T)}})};W.prototype.settingWishList=function(x,T){var B=x.drawObj,w=B.wishList,e=$.cookies.get("jwt_"+x.countryIsoCode,{domain:".samsung.com"}),n=x.stockLevelStatus,k=x.proudctPriceInfo.salePrice,A=commonLoginCheck(),ca=x.apiDomain,K=x.pdMultiLanguageYN,D=
x.pdHrefLang,f=x.view,C=-1<$("#shopIntegrationFlag").val().indexOf("GPv2"),E=x.util;w.stockLevelStatus=n;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"===n||"LEARNMORE"===n?"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":
"js-btn-wishlist js-not-for-sale-wishlist js-learnmore tg-add-wishlist";C?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(U){"Y"===K&&U.setRequestHeader("x-ecom-locale",D)},
success:function(U,R,y){R=x.drawObj.wishList;y=R.moCode;if(U)for(var da=0;da<U.length;da++){var wa=U[da];if(!1===wa.deleted&&wa.sku===y){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(U,R,y){},complete:function(){var U=x.util;x.view.productWishListDraw(x.drawObj);U.settingWishlistTagging(x,T)}})):(f.productWishListDraw(B),E.settingWishlistTagging(x,
T)):-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg")?A?this.settingWishListOldHybris(x,T):(f.productWishListDraw(B),E.settingWishlistTagging(x,T)):"Hybris"==$("#shopIntegrationFlag").val()&&x.isOldHybrisWishlist&&(A?this.settingWishListOldHybris(x,T):(f.productWishListDraw(B),E.settingWishlistTagging(x,T)));if(null===e||""===e)return!1};W.prototype.settingWishListOldHybris=function(x,T){var B="",w=""==x.multistoreSiteCd||"ae"!=x.siteCodeWithEpp&&"ae_ar"!=x.siteCodeWithEpp?!1:!0;$("#shopParmLang").val()&&
(B="\x26lang\x3d"+$("#shopParmLang").val());var e=$("#newHyvStoreDomain").val(),n=e+"/tokocommercewebservices/v2/"+x.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productCode\x3d"+x.modelCode+B;w&&(n=e+"/tokocommercewebservices/v2/"+x.multistoreSiteCd+"/users/current/wishlist/default/product/exist?productCode\x3d"+x.modelCode+B);$.ajax({url:n,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")&&
(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,T)}})};W.prototype.settinsUpgradeTncData=function(x,T){T=[x.shopSkuCode];var B=x.apiDomain,w="";isEPP&&(w="\x26store_id\x3d"+$("#eppCompanyCode").val());var e="true"===$("#isEppPage").val()?
{withCredentials:!0}:{};$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:B+"/v1/tnc?display\x3dupgrade\x26tags\x3d"+T+w,type:"GET",dataType:"json",xhrFields:e,timeout:2E4,success:function(n,k,A){if(n){k=[];A=x.view;for(var ca=x.drawObj,K=0;K<n.length;K++){var D=n[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)}}})};
W.prototype.offlineStockAjax=function(x){if("true"===$("#isEppPage").val()&&"true"==window.sg.epp.common.offlineFlag&&"OUTOFSTOCK"!=x.stockLevelStatus.toUpperCase()){var T=!1;"INSTOCK"===x.stockLevelStatus.toUpperCase()&&(T=!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;
null!=w&0<w.length&&1<=w[0].quantity_available&&(B=!0)},error:function(w,e,n){},complete:function(){if(T||B)$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-teal"),$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-orange");T&&B?($("#offlineBadgeSpan").html(Granite.I18n.get("Available In-Store")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-orange"),x.isStorePopup=!0):T&&!B&&($("#offlineBadgeSpan").html(Granite.I18n.get("Doorstep Delivery")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-teal"))}})}};
W.prototype.fetchNewOfferFormat=function(x){var T=$.trim(x.offerText||"");if(""!==T){var B=$.trim(x.linkText||""),w=$.trim(x.url||"");x.newFormat={title:$.trim(x.title),offerText:T,linkEnabled:""!==B&&""!==w,linkText:B,linkUrl:w,imageUrl:$.trim(x.imageURL)};F.isDebug&&console.log(x)}};v.BuyingToolOpAjaxCommon=W;var aa=null;window.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",
block:"center"})},200))})})();
(function(){function l(b,r){r="";var H=$.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)&&H)b=(new Set("ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" "))).has(H);b&&(r=H)}return r}function h(b,r,H,N){H=b.multistoreSiteCd;H="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():siteCode;H=b.apiDomain+"/"+H+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+
b.modelCode;"py"===b.siteCode&&(H=b.apiDomain+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+b.modelCode);"Y"===b.hybrisJsonYn?$.ajax({url:H,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Z,d,M){u(Z,b,r,N)},error:function(){F(b,r,N)},complete:function(){k(b,r)}}):$.ajax({url:H,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584_0",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
success:function(Z,d,M){u(Z,b,r,N)},error:function(){F(b,r,N)},complete:function(){k(b,r)}})}function G(b,r,H,N){H=b.multistoreSiteCd;var Z="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():H,d="ca"===H||"ca_fr"===H,M=b.apiDomain+"/"+Z+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+b.modelCode,t="";d&&(t=getSECACountryRegion(),M=M+"\x26country_region\x3d"+t);"tr"===H?(H=b.apiDomain+"/"+Z+"/dotcom/v2/products?sku\x3d"+b.modelCode,Z="true"===$("#isEppPage").val()?{withCredentials:!0}:
{},$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:H,xhrFields:Z,type:"GET",dataType:"xml",timeout:1E4,success:function(z){$(z).find("product").each(function(){var I=$(this).find("modelName").text(),X=$(this).find("url").text(),V=$(this).find("stockLevelStatus").text(),P=$(this).find("salesStatus").text(),S=$(this).find("price").text(),Q=$(this).find("priceDisplay").text();b.modelCode==I?"inStock"==V&&"true"==P&&(V=V.toUpperCase(),
b.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,N)):F(b,r,N)})},error:function(){F(b,r,N)},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(z,I,X){p(z,b,r,N)},error:function(){F(b,
r,N)},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(z,I,X){p(z,b,r,N)},error:function(){F(b,r,N)},complete:function(){k(b,r)}})}function u(b,r,H,N){"0000"===b.resultCode&&r.modelCode===b.code?(r.hybrisApiData.shopAPI=b,b.apiType="realtime",W(b,r,H,N)):F(r,H,N)}function p(b,r,H,N){var Z=!1;"0000"===b.resultCode&&0<b.productDatas.length&&$.each(b.productDatas,
function(d,M){if(r.modelCode===M.productCode){r.hybrisApiData.shopAPI=M;r.blockEddDisplay=M.blockEddDisplay&&null!=M.blockEddDisplay?M.blockEddDisplay:"Y";r.blockPickupDisplay=r.isSENA&&0==M.blockPickupDisplay&&null!=M.blockPickupDisplay?"N":"Y";M.apiType="simple";v(M,r,H,N);W(M,r,H,N);if(r.useDeliveryMessage&&(d=M.aemAdditionalInfoTypes))for(var t=0;t<d.length;t++){var z=d[t];z&&"delivery_message"===z.type.toLowerCase()&&(r.deliveryMessage=z.aemAdditionalInfos[0].value)}M.backOrderMessage&&(r.backOrderMessage=
M.backOrderMessage);M.shippingETA&&(r.shippingMessage=M.shippingETA);Z=!0;return!1}});Z||(F(r,H,N),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,H,N){if(b=b.aemAdditionalInfoTypes)for(N=0;N<b.length;N++){var Z=
b[N];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$350:d.$jscomp$loop$prop$util$350},M++){var t=Z.aemAdditionalInfos[M];t&&t.key&&t.value&&("discountValue"===t.key&&(r.splitPDTradeInSpecial=t.value),"discountmessage"===t.key&&(r.splitPDTradeInSpecialMsg=
t.value),"SELLING_WITH_BEZEL"===t.key&&(d.$jscomp$loop$prop$util$350=r.util,r.sellingWithBazel="true"==t.value?!0:!1,r.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(r,r.modelCode,function(z){return function(I,X){var V=[],P=[],S=[],Q=[];X&&null!=I.products&&0<I.products.length&&$.each(I.products,function(ha,ka){var la,ua,ya,sa,Ma,pa="true"===(null==(la=ka.aemAdditionalInfoTypes[0])?void 0:null==(ua=la.aemAdditionalInfos[0])?void 0:
ua.value)?null==(ya=ka.aemAdditionalInfoTypes[0])?void 0:null==(sa=ya.aemAdditionalInfos[0])?void 0:null==(Ma=sa.key)?void 0:Ma.toUpperCase():"";la=""!=ka.imageUrl?!0:!1;ua=""==ka.imageUrl?!0:!1;ya=ka.imageUrl.replace("$ORIGIN_PNG$","");sa=ka.stocklevel.toUpperCase();Ma=" is-disabled";if("INSTOCK"==sa||"BACKORDERED"==sa||"PREORDER"==sa||"LOWSTOCK"==sa)Ma="";""==r.bezelImageClass&&la&&(r.bezelImageClass="pd-select-option__list--image-button");ha={index:ha,modelCode:ka.modelcode,name:ka.colorName,value:ka.colorCode,
hasImage:la,hasNotImage:ua,imageUrl:ya,disabledClass:Ma};"BEZEL_COLOR"===pa?V.push(ha):"BEZEL_MODERN"===pa?P.push(ha):"BEZEL_BEVELLED"===pa?S.push(ha):"FREESTYLE_COLOR"===pa&&Q.push(ha)});r.noneTypeList=V;r.modernTypeList=P;r.beveledTypeList=S;r.freestyleList=Q;z.$jscomp$loop$prop$util$350.settingBezelOptionDraw(r,H)}}(d),null,{queryType:"ADD_COLOR_FOR_VD"})))}}}}function F(b,r,H){b.util.settingPriceCta(!1,b,r,H)}function W(b,r,H,N){var Z=r.util,d=r.drawObj.price.priceWrapper,M=r.priceCurrency;"true"===
$("#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,z=b.promotionPrice,I;if((null==b?0:null==(I=b.merchFlags)?0:I.length)&&r.useHotDealBadge){var X;if(I=b.merchFlags.find(function(ya){return"true"===(null==(X=ya.attributes)?void 0:X.isHotDealMerchFlag)&&"string"===typeof ya.code})){r.merchText=I.code;var V,P;null==(V=r.view)||null==(P=V.hotDealBadgeDraw)||
P.call(V,r.merchText)}}if(r.isNewElementLowestWasPrice)if(V=0,b.lowestWasPrice&&(V=b.lowestWasPrice.value?b.lowestWasPrice.value:0),"au"==siteCode)V<b.price&&V>b.promotionPrice?(t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,r.isNewElementLowestWasPriceSetting=!0):r.isNewElementLowestWasPrice=!1;else if(b.lowestWasPrice&&b.lowestWasPrice.value)if(b.promotionPrice){if(V<=b.price&&V>b.promotionPrice||(r.isSENA||"pt"==siteCode)&&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||"pt"==siteCode)&&V>b.price&&(t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,z=b.price,r.isNewElementLowestWasPriceSetting=!0),V<=b.price&&(t=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price);else"true"===$("#isEppPage").val()&&r.isSENA&&b.promotionPrice&&(r.isNewElementLowestWasPriceSetting=
!0);r.isNewElementLowestWasPriceHuType&&(V=0,b.lowestWasPrice&&(V=b.lowestWasPrice.value?b.lowestWasPrice.value:0),z&&0!==Number(z)&&t!==z&&0<V&&(r.isNewElementLowestWasPriceSettingHuType=!0),!0===r.isNewElementLowestWasPriceSettingHuType&&(r.proudctPriceInfo.wasPrice=V,r.proudctPriceInfo.wasPriceFormatted=currencyComma(V,M)));V=null!=b.stockLevelStatus?b.stockLevelStatus.toUpperCase():"";P=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=""),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=P);"INSTOCK"==V||"LOWSTOCK"==V?(V=b.flagPreOrder&&"Y"===b.flagPreOrder?"PREORDER":"INSTOCK","ca"!==r.siteCode&&"ca_fr"!==r.siteCode||"Y"!==b.reserveNowBtnYn||(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,H,N);"realtime"===b.apiType&&(t=deleteCurrency(b.price,M).trim(),z=deleteCurrency(b.promotionPrice,M).trim());if("at"===r.siteCode)if(!1===(null==b?void 0:b.isFreeDeliveryCost)){r.proudctPriceInfo.shippingCostPopup={};r.proudctPriceInfo.isFreeDeliveryCost=b.isFreeDeliveryCost;var ha;r.proudctPriceInfo.shippingCostPopup.deliveryModes=null==b?void 0:null==(ha=b.deliveryModes)?void 0:
ha.deliveryMode;var ka;r.proudctPriceInfo.shippingCostPopup.deliveryServices=null==b?void 0:null==(ka=b.deliveryServices)?void 0:ka.deliveryService}else if(null==b?0:b.isFreeDeliveryCost)r.proudctPriceInfo.itsFreeDelivery=!0;z||(z=t);z&&0!==Number(z)&&(d.hasPriceWrapper="NOORDER"!==V?!0:!1,r.proudctPriceInfo.orignalPrice=t,r.proudctPriceInfo.orignalPriceFormatted=b.priceFormatted?b.priceFormatted:currencyComma(t,M),r.proudctPriceInfo.salePrice=z,r.proudctPriceInfo.salePriceFormatted=b.promotionPriceFormatted?
b.promotionPriceFormatted:z===t?r.proudctPriceInfo.orignalPriceFormatted:currencyComma(z,M),b.promotionPriceValidTo&&(r.proudctPriceInfo.promotionPriceValidTo=b.promotionPriceValidTo));if(r.isHyIntg&&b.aemAdditionalInfoTypes&&0<b.aemAdditionalInfoTypes.length){N=b.aemAdditionalInfoTypes;for(var la in N)if(Z=N[la],"TRADEIN"===Z.type&&Z.aemAdditionalInfos&&0<Z.aemAdditionalInfos.length)for(var ua in Z.aemAdditionalInfos)M=Z.aemAdditionalInfos[ua],"TRADEIN_TEXT"===M.key&&M.value&&(r.proudctPriceInfo.salePriceFormatted=
M.value)}"simple"===b.apiType&&aa(r,H);d.info.summaryPrice=r.proudctPriceInfo.salePriceFormatted}function aa(b,r){var H=b.multistoreSiteCd,N="ae ae_ar jo jo_ar sa sa_en za ma eg".split(" "),Z="";"true"===$("#isEppPage").val()&&N.includes(H)&&(Z="/nocache");N="ca"===H||"ca_fr"===H;H="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():H;H=b.apiDomain+"/"+H+"/servicesv2"+Z+"/leasingInfo?productCode\x3d"+b.modelCode;Z="";N&&(Z=getSECACountryRegion(),H=H+"\x26country_region\x3d"+Z);Z="true"===$("#isEppPage").val()?
{withCredentials:!0}:{};"Y"===b.hybrisJsonYn?$.ajax({url:H,type:"GET",cache:!0,crossDomain:!0,xhrFields:Z,dataType:"json",timeout:2E4,success:function(d){x(d,b,r)}}):$.ajax({url:H,type:"GET",cache:!0,crossDomain:!0,xhrFields:Z,dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_171",timeout:2E4,success:function(d){x(d,b,r)}})}function x(b,r,H){if(b&&0<b.length){var N="";if("se"==siteCode){var Z=$("\x3cdiv\x3e"),d=0;$.each(b,function(M,t){if("se-fairownPaymentMode"===t.paymentModeCode){var z=
t.months/12,I=t.months,X=Granite.I18n.get("Years"),V=Granite.I18n.get("months");X=z+" "+X+" ("+I+" "+V+")";var P=parseFloat(t.monthly);0===M&&(d=P);P<=d&&(d=P);t=$("\x3cdiv\x3e").addClass("checkbox-radio");X=$("\x3cinput\x3e").attr({type:"radio",name:"model","data-monthly":P,"data-renewalPeriod":X,"data-service-code":"SE-FAIROWN-TV-"+I,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");z=$("\x3cstrong\x3e").addClass("samsung-flex-popup__smc-monthly").text(z+" \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("");V.append(z,I,S);z=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-content");P=$("\x3cstrong\x3e").addClass("samsung-flex-popup__smc-monthly").text(" "+P+" kr/m\u00e5n");I=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");
S=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");z.append(P,I,S);M.append(V,z);t.append(X,M);Z.append(t)}else N=t});console.log("## [SAMS UPGRADE] ## Msg: Renewal plans data from the Leasing API is: ",Z);0<$(".samsung-flex-popup__smc-renewal-plans-wrapper").length&&$(".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,window.sg.components.SamsungFlexPopup.originalContentPriceNavigationPageLoad=window.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePriceFormatted)}else N=b[0];r.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=N.monthly;r.proudctPriceInfo.monthlyPriceInfo.tenureVal=N.months;"hu"==siteCode&&(r.proudctPriceInfo.monthlyPriceInfo.interest=
N.interest);null!==N.monthly&&""!==N.monthly&&void 0!==N.monthly&&(r.drawObj.price.priceWrapper.isLeasingInfo=!0);r.util.totalAfterFunction(r,H)}b&&0<b.length&&($.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:""}),da(r,H))}function T(b,
r,H,N){var Z=b.drawObj,d=b.util,M=b.buyNowUrlYn,t=b.buyNowUrl,z=b.multistoreSiteCd,I=b.configuratorUrl,X=b.ctaLocalText,V=b.configuratorUseYn,P=$("#tempTitle").val(),S=$("#shopIntegrationFlag").val(),Q=b.wtbUseYn,ha=b.wtbDispFuncUseYN,ka=Z.price,la="",ua={},ya="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;la=!0;"Hybris"===S||"Hybris-intg"===S?"N"!==globalShopInfo.shopServiceYN&&
b.oldHybrisSalesStatus||(la=!1):"Hybris-new"===S?b.newHybrisSalesStatus||(la=!1):"GPv2"===S&&b.accessoryDisabled&&(la=!1);"mx"===siteCode&&(Q="N");M?t?(sa=la="js-buy-now tg-buy-now",S=M=Granite.I18n.get("buy now"),pa=ya=t):(sa=la="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,ua=Ma,"mx"===siteCode&&(S=M=Granite.I18n.get("not for sale"),sa=la="cta--disabled tg-not-for-sale")):
S?"Y"===Q?"Y"===ha&&"3rd"!==S?la?(ua.moCode=b.shopSkuCode,ua.ctaType="add-cart",Ma=ua,S=M=Granite.I18n.get("Add to cart"),sa=la="js-buy-now tg-add-to-cart"):(sa=la="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma=ua=a):(sa=la="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma=ua=a):(S=M=Granite.I18n.get("not for sale"),sa=la="cta--disabled tg-not-for-sale"):"Y"===Q?(sa=la="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Ma=ua=a,t="true"===$("#isEppPage").val()?{withCredentials:!0}:
{},"tr"===z&&$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:b.apiDomain+"/"+z+"/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(),g=$(this).find("url").text(),q=$(this).find("stockLevelStatus").text(),ba=$(this).find("salesStatus").text(),J=$(this).find("price").text(),fa=$(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=g,b.proudctPriceInfo.orignalPrice=J,b.proudctPriceInfo.orignalPriceFormatted=fa,b.drawObj.price.priceWrapper.hasPriceWrapper=!0,b.util.settingPriceCta(b.hasPriceCta,b,r,N)):F(b,r,N)})},error:function(){F(b,r,N)},complete:function(){k(b,r)}})):(S=M=Granite.I18n.get("not for sale"),sa=la="cta--disabled tg-not-for-sale");"Y"===V&&"page-standard-pd"===P&&(""!==I&&null!==
I?(pa=ya=I,ua.ctaType="",Ma=ua,sa=la="configuratorUse-y"):sa=la="cta--disabled configuratorUse-y",""!==X&&null!==X&&(S=M=X),ka.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());ka.isNotForSale=!ka.configuratorEnabled&&S===Granite.I18n.get("not for sale");ka.wtbAttr=d.getAttrCta(void 0,"javascript:;","_self","",{});ka.containedAttr=d.getAttrCta(M,ya,"_self",la,ua);ka.anchorNaviAttr=d.getAttrCta(S,pa,"_self",sa,Ma);d.settingForBusiness(b,r);H.productDraw(Z);d.settingPriceDraw(b,r);
b.commonApiModel.settingWishList(b,r);d.clickEventListener(b,r)}function B(b,r,H,N,Z,d){if(!L){L=!0;var M="br"===b.siteCode||"latin"===b.siteCode||"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,N,Z):w(b,r,H,N,Z,d)}}function w(b,r,H,N,Z,d){var M="Hybris-new"===$("#shopIntegrationFlag").val(),t="",z=0,I=!0,X=!1,V="",P=!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=$jscomp.makeIterator(CeTradeUpPopup.context.modelPackage.models),ha=Q.next();!ha.done;ha=Q.next()){var ka=ha.value;ha={productCode:ka.modelCode,quantity:1};var la="products["+z+"]";t+=la+".productCode\x3d"+ka.modelCode+"\x26"+la+".quantity\x3d1";ka.modelCode===CeTradeUpPopup.context.modelCode&&(ha.services=[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}],
ka="\x26"+la+".services[0]",t+=ka+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+ka+".provider\x3dEXCHANGE");S.products.push(ha);z++}else Q=b.proudctPriceInfo.productCartCount&&1<b.proudctPriceInfo.productCartCount?b.proudctPriceInfo.productCartCount:1,t+="products["+z+"].productCode\x3d"+b.modelCode,t+="\x26products["+z+"].quantity\x3d"+Q,ha="\x26products["+z+"].services[0]",t+=ha+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+ha+".provider\x3dEXCHANGE",S.products.push({productCode:b.modelCode,
quantity:Q,services:[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}]}),z++;else Q=b.proudctPriceInfo.productCartCount&&1<b.proudctPriceInfo.productCartCount?b.proudctPriceInfo.productCartCount:1,t+="products["+z+"].productCode\x3d"+b.modelCode,t+="\x26products["+z+"].quantity\x3d"+Q,S.products.push({productCode:b.modelCode,quantity:Q}),z++;("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",value: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].productCode\x3d"+b.giftCard.cartGiftCardCode,t+="\x26products[0].quantity\x3d1",S.products[0].additionalInfos=
Q)}b.cartBezelCode&&(t+="\x26products["+z+"].productCode\x3d"+b.cartBezelCode,t+="\x26products["+z+"].quantity\x3d1",S.products.push({productCode:b.cartBezelCode,quantity:1}),z++);var ua=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 ya=b.drawObj.tradeInResult.list;ua=ya.length;$.each(ya,function(m,g){var q=g.services;if(null==q.tradeInType||void 0==q.tradeInType)q.tradeInType="IMEI";$.each(q.tradeInAdditionalInfo,function(fa,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;t+="\x26products[0].services["+m+"].additionalInfos[0].value\x3d"+q.imeiKey;g={serviceCode:q.tradeinId,additionalInfos:[{key:q.tradeInType,value:q.imeiKey}]};var ba=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&ba&&(g.serviceCode=q.tradeinId,g.provider=q.provider,g.additionalInfos.push({key:"deviceSku",
value:q.tradeinId}));"fr"==siteCode&&q.serviceType&&null!=q.serviceType&&void 0!=q.serviceType&&(g.serviceType=q.serviceTypeCode);oa(S,g);"au"==siteCode&&""!=q.tradeInPrice&&void 0!=q.tradeInPrice&&S.products[0].services[m].additionalInfos.push({key:"discountAmount",value:q.tradeInPrice});if("de"!=siteCode&&1<ya.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["+J+"].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(fa,qa){t+="\x26products[0].services["+m+"].assessmentCriteria["+fa+"].name\x3d"+qa.name;t+="\x26products[0].services["+
m+"].assessmentCriteria["+fa+"].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,value:qa.value})}));null!=q.tradeInAdditionalInfo&&void 0!=q.tradeInAdditionalInfo&&$.each(q.tradeInAdditionalInfo,function(fa,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){ua=1;V.tradein.tradeInType||(V.tradein.tradeInType="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}]};ha=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&ha&&(Q.serviceCode=V.tradein.tradeinId,Q.provider=V.tradein.provider,Q.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",value: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,g){t+="\x26products[0].services[0].assessmentCriteria["+
m+"].name\x3d"+g.name;t+="\x26products[0].services[0].assessmentCriteria["+m+"].value\x3d"+g.value;S.products[0].services[0].assessmentCriteria||(S.products[0].services[0].assessmentCriteria=[]);S.products[0].services[0].assessmentCriteria.push({name:g.name,value:g.value})}));V.tradein.tradeInAdditionalInfo&&$.each(V.tradein.tradeInAdditionalInfo,function(m,g){t+="\x26products[0].services[0].additionalInfos["+sa+"].key\x3d"+g.key;t=M?t+("\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+
g.value):t+("\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+encodeURIComponent(g.value));S.products[0].services[0].additionalInfos.push({key:g.key,value:g.value});sa++});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"my"===b.siteCode||"de"===b.siteCode&&!ha)X=!0,S.clearCart=!0;if("lt"===siteCode||"lv"===siteCode||"ee"===siteCode)V.tradein.cartAdditionalInfos&&0<V.tradein.cartAdditionalInfos.length&&(ha={key:"IMEI",value:V.tradein.imeiKey?V.tradein.imeiKey:""},Q.additionalInfos=
V.tradein.cartAdditionalInfos,Q.additionalInfos.unshift(ha)),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"+encodeURIComponent($(".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["+ua+"].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:encodeURIComponent(V.care.discounted_sku)}),ua++);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["+
ua+"].planId\x3d"+V.tariff.modelCode,t+="\x26products[0].services["+ua+"].serviceCode\x3d"+V.tariff.simSkuCode,V.tariff.isBroadbandService){t+="\x26products[0].services["+ua+"].serviceType\x3dBROADBAND_PLAN";var pa=0<(V.tariff.tariffArr||[]).length?V.tariff.tariffArr[0]:{};t+=function(){var m=[],g;for(g in pa)m.push("\x26products[0].services["+ua+"].serviceAddress."+g+"\x3d"+encodeURIComponent(pa[g]));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||"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["+ua+"].serviceCode\x3d"+V.tariff.tariffId,$.each(V.tariff.tariffArr,function(m,g){t+=
"\x26products[0].services["+ua+"].additionalInfos["+m+"].key\x3d"+g.key;t+="\x26products[0].services["+ua+"].additionalInfos["+m+"].value\x3d"+g.value;Ma.additionalInfos||(Ma.additionalInfos=[]);Ma.additionalInfos.push({key:g.key,value:g.value})}),oa(S,Ma);ua++}V.combo&&0<V.combo.length&&$.each(V.combo,function(m,g){t+="\x26products["+z+"].productCode\x3d"+g.modelCode;t+="\x26products["+z+"].quantity\x3d1";S.products.push({productCode:g.modelCode,quantity:1});z++;("nl"===b.siteCode||"be"===b.siteCode||
"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)&&null!=g&&-1<g.modelCode.indexOf("SIM")&&(X=!0)});V.embedaddon&&0<V.embedaddon.length&&$.each(V.embedaddon,function(m,g){t+="\x26products["+z+"].productCode\x3d"+g;t+="\x26products["+z+"].quantity\x3d1";S.products.push({productCode:g,quantity:1});z++});var a=!1;V=!1;if(Z){if(z=0,t="",S.products=[],$.each(r,function(m,g){t+=(""===t?"":"\x26")+"products["+z+"].productCode\x3d"+g;t+="\x26products["+z+"].quantity\x3d1";S.products.push({productCode:g,
quantity:1});z++;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["+z+"].productCode\x3d"+modelCode,t+="\x26products["+z+"].quantity\x3d1",z++,S.products.push({productCode:modelCode,quantity:1}),V=!0}else N||(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),r=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?(P=!0,$.ajax({url:r,type:"POST",data:JSON.stringify(S),dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/json",timeout:2E4,beforeSend: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.multistoreSiteCd+"/"):"ae_ar"===siteCode&&(m=m.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")));m="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":m;var g="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+"/"+g+"/cart/payment/"+J:m}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,n(m),"ca"!=siteCode&&"ca_fr"!=siteCode||N||Z||(window.scrollTo(0,0),$(".pdd16-step-buying").hide(),$(".pdd16-step-buying").html(O),$(".pdd16-step-buying").siblings().add($(".pdd16-step-buying").parent().siblings()).show(),$(".add-ons-evoucher-popup").hide(),b.util.clickEventListener(b,H))},error:function(m){$(".cm-loader").hide();L=!1;n(m)},complete:function(){}})):0==P&&("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 g=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.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;g="true"===
$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":g;q&&ba&&null!==m?(q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+q+"/cart/payment/"+m):location.href=g}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,n(m)},error:function(m){$(".cm-loader").hide();L=!1;n(m)}}):(P="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:r,type:"GET",data:{},dataType:"jsonp",xhrFields:P,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 g=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.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;g="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+
"/cart":g;q&&ba&&null!==m?(q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+q+"/cart/payment/"+m):location.href=g}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,n(m)},error:function(m){$(".cm-loader").hide();L=!1;n(m)}}))):"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+"/")),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):(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)}function e(b,r,H){r="";b.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"));H=b.multistoreSiteCd;H="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():H;r=b.apiDomain+"/"+H+"/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:(H="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:r,type:"GET",data:{},dataType:"jsonp",xhrFields:H,jsonp:"callback",async:!1,timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(N){$(".cm-loader").hide();"0000"===N.resultCode?(updateTotalCartCount(N.cartCount),N=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,N="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+
"/"+$("#eppCompanyCode").val()+"/cart":N,location.href=N):(L=!1,n(N))},error:function(N){$(".cm-loader").hide();L=!1;n(N)}}))}function n(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&&b.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].productCode&&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?r=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 H=b.drawObj,N=b.view,Z=b.isGPv2AndHyIntg,d=b.isHybrisSplitPD,M=b.isHybrisSplitPDTradeIn,t=b.isHybrisSplitPDSamsungCarePlus,z=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(),d=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck(),M="jp"===siteCode?y(b,"TRADE_IN"):!0,d?M&&((new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein"),bc_common_tradeIn.init()):!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."+Z)),window.CeTradeUpPopup.init(b.modelCode)));t&&("ca"===siteCode||"ca_fr"===siteCode?b.useWarrantyVd||configuratorCare.setProductInfo():configuratorCare.setProductInfo());if(z){var V=
b.siteCode;d=b.util;M=b.isHybrisSplitPDUpgrade;var P=b.stockLevelStatus;M&&(b.upgradeFlag=!0);t=b.upgradeFlag;var S={};Z={};z=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 ha=Granite.I18n.get("Learn more");S.layerTarget="upgradeLearnMorePopup";M=Granite.I18n.get("Samsung Upgrade");if("es"==V){if("INSTOCK"==P||"LOWSTOCK"==P)Q=!0}else Q=!0;Q&&(V={"class":"hybris-es-yes",text:Granite.I18n.get("Samsung Upgrade")},
P={"class":"hybris-es-no",text:Granite.I18n.get("No, thanks"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"},d=d.getAttrCta(ha,"javascript:;","_self","",S,""),H.upgrade={hasComponent:t,isEmbededType:!1,isNotEmbededType:!0,title:M,learnMoreCta:d,description:z,yesAttr:V,noAttr:P,embedData:Z})}}I&&configuratorTariff.setProductInfo()}y(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));"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&&(y(b,"BENEFIT")&&A(b,r),y(b,"SIM")&&(b.simpleInfoSIM=!0));I=b.util;t=b.siteCode;z=b.deliveryPickup.deliverySiteCode;b.isOldHybrisCheckService&&y(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"),"NOORDER"===d||"OUTOFSTOCK"===d)&&(M.labelClass="text-field--disabled",M.ctaClass="cta--disabled",M.inputAttr.disabled="true"),z.includes(t)&&($(".pd-select-option--delivery-pickup").show(),I.settingDeliveryPickup(b,r)));if(b.isOldHybrisCheckService&&y(b,"warranty")&&b.useWarrantyVd){I=b.siteCode;t=b.drawObj;z=b.view;Z=b.useWarrantyVd;d=b.ceTradeUpPopup.productCategoryGroup;
M="";S="_blank";ha="";"it"==I||"my"==I?(M="javascript:;",S="",ha="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"!=d?"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/";V=Granite.I18n.get("Extended Warranty");P="";Q={};var ka={},la={};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:ha}:{learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:M,learnMoreTarget:S,learnMoreTargetPopup:ha},V=Granite.I18n.get("VD_Extended Warranty_Title"),P=Granite.I18n.get("VD_Extended Warranty_Description"),"nz"!=I||"vd"!=d&&"da"!=d||(V=Granite.I18n.get("VD_Extended Warranty_Title",null,"b2c_"+d),P=Granite.I18n.get("VD_Extended Warranty_Description",null,"b2c_"+d)),ka={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},
la={text:Granite.I18n.get("VD_Extended Warranty_NO")});t.warrantyVd={hasComponent:Z,title:V,learnMoreCta:Q,description:P,yesAttr:ka,noAttr:la,subText:""};z.productAddOnWarrantyVd(t)}I=b.util;b.useDeliveryMessage&&I.settingDeliveryMessage(b,r);b.commonApiModel.settingWishList(b,r);N.productDraw(H);X.totalReinit(b,r);X.gpHybrisGlobalEndPoint(b,r)}function A(b,r){var H=b.multistoreSiteCd;H="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():H;var N="";N=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():
$("#storeDomain").val();var Z="";$("#shopParmLang").val()&&(Z="\x26lang\x3d"+$("#shopParmLang").val());$.ajax({url:N+"/tokocommercewebservices/v2/"+H+"/products/"+b.modelCode+"/offers?fields\x3dSIMPLE_INFO"+Z,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},crossDomain:!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 z in M){var I=M[z];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:z},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===X){X=z;var V=b,P=V.siteCode,S=V.drawObj.offer,Q=V.financingUrl,ha=R(I,V).iconAlt,ka="offer-emi emi-index-"+X,la=[];V.financingEligible=!0;Q&&(V.emiCalculatorUrl=Q);I.description&&la.push(I.description);if(0<la.length){var ua=Q=null,ya=null;"id"!==P&&"ee"!==P&&"lt"!==P&&"lv"!==P&&"pl"!==
P||!I.description||(Q=I.description);if("hu"===P||"sg"===P||"my"===P||"nz"===P||"vn"===P||"th"===P)for(V.promotionFinancingFlag=!0,V=0;V<la.length;V++){var sa=la[V].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>sa.indexOf("\x3ca")?"in"===P?(ua=sa,ya={label:Granite.I18n.get("Learn more"),labelAnalytics:sa.toLowerCase().replace(/"/g,"")}):(ya={labelAnalytics:sa.toLowerCase().replace(/"/g,"")},ya.label="id"===P||"ee"===P||"lt"===P||"lv"===P||"pl"===P?Granite.I18n.get("Learn more"):sa):ua=sa}else ua=
la.join("");S.promotionFinance.push({offerIndex:X,title:"finance",hasItem:!0,item:{contentWrapperClass:ka,iconAttr:{alt:ha},description:{text:Q,hasDescription:null!=Q},emiText:ua,cta:ya,hasCta:null!=ya},newFormat:I.newFormat})}}else"BOGO"===X?(d+=1,f(I,z,b,r)):X||(d+=1,E(I,z,b,r));3<d&&(t.isViewMore=!0)}}},error:function(d,M,t){},complete:function(){D(b,r,0);var d=b.pdChildModelCnt;b.pdPackageYn&&0<d&&ca(b,r)}})}function ca(b,r){var H=b.multistoreSiteCd,N="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
H,Z="";Z=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():$("#storeDomain").val();var d="";$("#shopParmLang").val()&&(d="\x26lang\x3d"+$("#shopParmLang").val());H=b.pdChildModelCnt;var M=b.drawObj.offer;if(0<H)for(var t=0,z={},I=0;I<H;z={$jscomp$loop$prop$childCode$352:z.$jscomp$loop$prop$childCode$352,$jscomp$loop$prop$childSet$353:z.$jscomp$loop$prop$childSet$353},I++){var X=I+1+"";10>I+1&&(X="0"+(I+1));X=document.querySelector("#pdChidleModel"+X);z.$jscomp$loop$prop$childCode$352=X.dataset.code;
z.$jscomp$loop$prop$childSet$353={code:z.$jscomp$loop$prop$childCode$352,name:X.dataset.name,main:X.dataset.main,displayName:X.dataset.displayName};b.pdChildModelList.push(z.$jscomp$loop$prop$childSet$353);(function(V){return function(P){$.ajax({url:Z+"/tokocommercewebservices/v2/"+N+"/products/"+V.$jscomp$loop$prop$childCode$352+"/offers?fields\x3dSIMPLE_INFO"+d,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,success:function(S,Q,ha){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$353.code,displayName:V.$jscomp$loop$prop$childSet$353.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())K(S.benefits,b,r,"child",t);else{S=0;for(var ka in Q){ha=Q[ka];b.commonApiModel.fetchNewOfferFormat(ha);var la=ha.type?ha.type.toUpperCase():"";"INSTALLMENT"!==la&&"COMBO"!==la&&(S+=1);
if(4>S){var ua=t+""+S;"BOGO"===la?f(ha,ua,b,r,"child",t):la||E(ha,ua,b,r,"child",t)}}ka=b.drawObj.offer.childList;0===S&&ka.splice(ord)}t=M.childList.length}},error:function(S,Q,ha){},complete:function(){D(b,r,P+1)}})}})(z)(I)}}function K(b,r,H,N,Z){Z=void 0===Z?0:Z;if(b&&0<b.length){var d=0,M;for(M in b){var t=b[M],z=t.type?t.type.toUpperCase():"";$.trim(t.offerText||"");var I=$.trim(t.title||"");""==I&&(I=$.trim(t.description||""));$.trim(t.linkText||"");$.trim(t.url||"");if(""!==I)if("INSTALLMENT"!==
z)d+=1,2>=d&&("child"===N?U(t,Z+""+d,r,H,"child",Z):U(t,M,r,H));else if("child"!=N&&"INSTALLMENT"===z){z=void 0;I=M;var X=r,V=X.siteCode,P=X.drawObj.offer,S=X.financingUrl,Q="offer-emi emi-index-"+I,ha=[];X.financingEligible=!0;S&&(X.emiCalculatorUrl=S);t=$.trim(t.description||"");""!==t&&ha.push(t);if(0<ha.length){S=null;var ka=!1,la=!1,ua=!1,ya=null;if("hu"===V||"sg"===V||"my"===V||"nz"===V||"vn"===V||"th"===V)for(X.promotionFinancingFlag=!0,X=0;X<ha.length;X++){var sa=ha[X].replace("\x3cu\x3e",
"").replace("\x3c/u\x3e","");ya=sa;0>sa.indexOf("\x3ca")&&("in"===V?(la=!0,S={label:Granite.I18n.get("Learn more")}):"id"===V||"ee"===V||"lt"===V||"lv"===V||"pl"===V?(la=!0,S={label:Granite.I18n.get("Learn more")}):ka=!0)}else ua=!0,ya=ha.join("");ua||(V=62,la&&(V=53),ya.length>V&&(z=t,ya=ellipsize(ya,V)),null!=ya&&(ya=ya.replace(/</g,"\x26lt;"),ya=ya.replace(/>/g,"\x26gt;")),null!=z&&(z=z.replace(/</g,"\x26lt;"),z=z.replace(/>/g,"\x26gt;")));P.promotionFinance.push({offerIndex:I,title:"finance",
hasItem:!0,item:{contentWrapperClass:Q,offerTooltip:z,emiText:ya,cta:S,hasCta:la,hasLink:ka,hasDesc:ua}})}}}"child"===N&&0===d&&r.drawObj.offer.childList.splice(Z)}}function D(b,r,H){r=b.pdChildModelCnt;var N=!1;b.pdPackageYn?r==H&&(N=!0):N=!0;N&&(b.drawObj.offer.headline=Granite.I18n.getVar("Offer","ux2"),b.view.productOfferDraw(b.drawObj),window.sg.components.PDbuyingToolNew.reInit())}function f(b,r,H,N,Z,d){N=H.drawObj.offer;"child"===(void 0===Z?"product":Z)&&(N=H.drawObj.offer.childList[void 0===
d?0:d]);var M=b.image&&b.image.url?b.image.url:"";Z=H.priceCurrency;d=H.pdTimeformatFront;M=H.util.getImgAttr(M,M,b.image&&b.image.altText?b.image.altText:"",{classWapper:"image__main responsive-img"});var t=[],z="";b.description&&t.push({text:b.description});b.startDate&&b.endDate&&!H.isSENA&&"hu"!=H.siteCode&&(z=d?dateFormat(b.startDate.split("T")[0],d)+" ~ "+dateFormat(b.endDate.split("T")[0],d):b.startDate.split("T")[0]+" ~ "+b.endDate.split("T")[0]);H=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:z},imgAttr:M,price:{hasPrice:!0,price:0,original:"",save:"",now:H}},newFormat:b.newFormat};N.bogo=b}function C(b,r,H){var N=H.index;if(N){if(null==N||""==N)N=0}else N=0;r=H.sharedObj;var Z=r.drawObj,d=Z.offer.combo,M=r.util,t=r.view;H=H.promotion;var z=r.pdTimeformatFront,I=R(H,r),X="",V="";I.promoIconFlag&&(V=I.iconImgName);I=[];H.description?I.push({text:H.description}):
I.push({text:Granite.I18n.get("Select combo bundle option")});var P={layerTarget:"shopComboPopup"};P.comboIdx=r.globalComboData.length;M=M.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",P,"");H.startDate&&H.endDate&&!r.isSENA&&"hu"!=r.siteCode&&(X=z?dateFormat(H.startDate.split("T")[0],z)+" ~ "+dateFormat(H.endDate.split("T")[0],z):H.startDate.split("T")[0]+" ~ "+H.endDate.split("T")[0]);N={offerIndex:N,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:H.newFormat};d.push(N);t.productOfferDraw(Z,!0);b=window.sg.components.dynamic.comboPopup.setComboData(b.totalResult);r.globalComboData.push(b)}function E(b,r,H,N,Z,d){N=H.drawObj.offer;"child"===(void 0===Z?"product":Z)&&(N=H.drawObj.offer.childList[void 0===d?0:d]);H=R(b,H);Z="offer-promotion promotion-index-"+r;d=[];var M=null;b.description&&d.push(b.description);
H.promoIconFlag&&(M="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+H.iconImgName+".svg");var t=null;if(!b.newFormat){var z="";for(t=0;t<d.length;t++)z+=d[t].replace("\x3ca","\x3ca target\x3d'_blank'");t=[];t.push({target:"."+Z.replace(" ",".")+" .pd-offer__desc",text:z})}N.promotionMessage.push({offerIndex:r,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:Z,isIcon:!0,iconAttr:{src:M,alt:H.iconAlt},description:{hasDescription:!0},rowText:t},
newFormat:b.newFormat})}function U(b,r,H,N,Z,d){N=H.drawObj.offer;var M="offer-promotion promotion-index-"+r;"child"===(void 0===Z?"product":Z)&&(N=H.drawObj.offer.childList[void 0===d?0:d]);$.trim(b.offerText||"");H=$.trim(b.title||"");""==H&&(H=$.trim(b.description||""));Z=$.trim(b.linkText||"");b=$.trim(b.url||"");"tw"!==siteCode&&""!==b&&(Z=Granite.I18n.get("Learn more"));if(""!==H){d=62;""!==Z&&""!==b&&(d=53);if(H.length>d){var t=H;H=ellipsize(H,d)}H=H.replace(/</g,"\x26lt;");H=H.replace(/>/g,
"\x26gt;");null!=t&&(t=t.replace(/</g,"\x26lt;"),t=t.replace(/>/g,"\x26gt;"));N.promotionMessage.push({offerIndex:r,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:M,offerTitle:H,offerTooltip:t,linkEnabled:""!==b,linkText:Z,linkUrl:b}})}}function R(b,r){var H=r.promotionImgType?r.promotionImgType.split(","):[];r="";var N=!1,Z="";if(b.image&&(r=b.image.altText,Z=b.image.url))for(b=$jscomp.makeIterator(H),H=b.next();!H.done;H=b.next())if(H.value===Z){N=!0;break}return{iconAlt:r,promoIconFlag:N,
iconImgName:Z}}function y(b,r){if(b.hybrisApiData.shopAPI&&b.hybrisApiData.shopAPI.supportedAvailableServices){b=$jscomp.makeIterator(b.hybrisApiData.shopAPI.supportedAvailableServices);for(var H=b.next();!H.done;H=b.next())if(H.value.toUpperCase()===r.toUpperCase())return!0}return!1}function da(b,r){r=b.siteCode;var H=b.drawObj,N=b.view,Z=b.isHybrisSplitPDLease,d=Granite.I18n.get("Up2You Rental"),M=Granite.I18n.get("Purchase");if(Z){Z=b.proudctPriceInfo.leaseInfo.upfront;var t=b.proudctPriceInfo.leaseInfo.month;
b=b.proudctPriceInfo.leaseInfo.monthly;var z=!1;""!==Z&&""!==t&&""!==b&&(z=!0);"ru"===r&&(d=Granite.I18n.get("Buy with Samsung Upgrade"),M=Granite.I18n.get("Buy Now"));H.between={hasComponent:z,purchase:{text:M},nonPurchase:{text:d,dataLeaseing:"",tenureUnit:t,tenureValue:0,monthlyValue:b,paymentValue:Z}};N.betweenDraw(H)}}function wa(b,r,H){var N=b.pdSearchDomain+"/",Z="Hybris-intg"===b.apiFlag,d=b.modelCode,M=b.pdStageInfo,t=l(b,r),z=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"===z||"ca_fr"===z)Z.regionCode=null!=I&&""!=I?I:"CA-ON";z=(t="true"===$("#isEppPage").val())?"epp/v2":"b2c";t&&(Z.companyCode=$("#eppCompanyCode").val(),Z.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(Z.groupName=window.sg.epp.common.groupName),""!=window.sg.epp.common.userStoreId&&(Z.o2oId=window.sg.epp.common.userStoreId));
$.ajax({url:N+M+("/"+z+"/product/card/detail/")+X,type:"GET",data:Z,dataType:"json",cache:!0,async:!0}).done(function(P,S,Q){S=b.modelCode;Q=b.priceCurrency;V=!0;if(P&&P.response&&P.response&&P.response.resultData&&P.response.resultData.productList){P=P.response.resultData.productList;var ha=b.siteCode,ka;for(ka in P){var la=P[ka].modelList;if(la)for(var ua in la){var ya=la[ua],sa=ya.ctaType?ya.ctaType.toUpperCase():"";b.stockLevelStatus=sa;S===ya.modelCode&&("trr"!=b.siteCode&&(ya.price&&(b.proudctPriceInfo.orignalPrice=
ya.price),ya.priceDisplay?b.proudctPriceInfo.orignalPriceFormatted=ya.priceDisplay:ya.price&&(b.proudctPriceInfo.orignalPriceFormatted=currencyComma(ya.price,Q)),b.proudctPriceInfo.salePrice=ya.promotionPrice?ya.promotionPrice:ya.price,b.proudctPriceInfo.salePriceFormatted=ya.promotionPriceDisplay?ya.promotionPriceDisplay:ya.promotionPrice?currencyComma(ya.promotionPrice,Q):b.proudctPriceInfo.orignalPriceFormatted),ya.monthlyPriceInfo&&ya.monthlyPriceInfo.leasingMonthly&&("au"===ha||"nz"===ha||"ae"===
ha||"my"===ha||"sg"===ha||"ca"===ha||"ca_fr"===ha||"it"===ha||"se"===ha||"dk"===ha||"fi"===ha||"no"===ha||"es"===ha||"pt"===ha||"th"===ha||"tw"===ha||"ru"===ha||"ch"===ha||"ch_fr"===ha)&&(b.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=ya.monthlyPriceInfo.leasingMonthly,b.proudctPriceInfo.monthlyPriceInfo.tenureVal=ya.monthlyPriceInfo.leasingMonths),ya.formattedPriceSave&&(b.proudctPriceInfo.rowCodeformattedPriceSave=ya.formattedPriceSave),b.proudctPriceInfo.salePriceFormatted&&"LEARNMORE"!==sa&&
"NOORDER"!==sa&&"Y"!==b.oldProductYn&&(b.drawObj.price.priceWrapper.hasPriceWrapper=!0),ya.tradeInPriceText&&b.isHyIntg&&(b.proudctPriceInfo.salePriceFormatted=ya.tradeInPriceText),P[ka].productGroupId&&(sa=r.buyingTool.find("reevoo-reviewable-badge"),0<sa.length&&sa.attr("sku","series:"+P[ka].productGroupId)),ya.configuratorUrl&&(b.buyNowUrl=ya.configuratorUrl))}}}}).fail(function(P){console.log(P)}).always(function(P){H(b,r,V)})}function ra(b,r,H){H=b.view;var N=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?h(b,r,H,N):G(b,r,H,N):(T(b,r,H,N),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 ea=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),na=function(){};na.prototype.productAjax=function(b,r){var H=l(b,r),N=b.siteCode;H&&(N=
H);b.multistoreSiteCd=N;wa(b,r,ra)};na.prototype.callAddToCartCta=function(b,r,H,N,Z,d){B(b,r,H,N,Z,d)};na.prototype.callCheckOutCta=function(b,r,H,N,Z,d){B(b,r,H,N,Z,d)};var L=!1,O=$(".pdd16-step-buying").html();ea.BuyingToolOpAjaxHybris=na})();
(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 h(k,A,ca,K){var D=k.apiDomain,f=k.pdHrefLang,C=k.pdMultiLanguageYN,E=k.siteCode,U=$.cookies.get("jwt_"+k.countryIsoCode,{domain:".samsung.com"}),R=[],y=k.priceCurrency,da=[],wa=0,ra=0,oa=!1,ea="";l(k);for(ea=0;ea<ca.length;ea++){var na=ca[ea];50<=wa&&(wa=0,R.push(da),da=[]);da.push(na);wa++;ea==ca.length-1&&R.push(da)}for(ca=0;ca<
R.length;ca++){da="";if("uk"==E||"de"==E)da=",carrier_attributes";"fr"===E&&(da+=",payment_methods");"in"===E&&(da+=",delivery_modes");ea="skus\x3d"+R[ca].join(",")+"\x26component\x3doffers,promotion,promotion_price"+da+"\x26count\x3d0";"true"===$("#isEppPage").val()&&(ea+="\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:ea,type:"GET",
dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(L){U&&L.setRequestHeader("x-ecom-jwt",U);"Y"===C&&L.setRequestHeader("x-ecom-locale",f)},success:function(L,O,b){if(L&&0!==L.total_number_of_products){O=k.syndiApiData;oa=!0;for(var r in L.products){var H=L.products[r];H.price_info&&H.price_info[0]&&(b=H.price_info[0].msrp_price,H=H.price_info[0].sale_price,b&&(b.formatted_value=currencyComma(b.value,y)),H&&(H.formatted_value=currencyComma(H.value,y)))}"true"===$("#isEppPage").val()&&
window.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(O.products,L.products);$.extend(O.expanded,L.expanded)}},error:function(L,O,b){},complete:function(){ra++;R.length==ra&&K(k,A,oa)}})}}function G(k,A,ca){var K=k.setComboPopupData,D=ca.offer.combo,f=k.util,C=k.view,E=0;if(k.comboFlag){for(var U=0;U<K.length;U++){var R=
K[U];k.comboSearchList.push(R.comboInfo);var y=[];R.comboPitch?y.push({text:R.comboPitch}):y.push({text:Granite.I18n.get("Select combo bundle option")});var da={layerTarget:"shopComboPopup"};da.comboIdx=E;da=f.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",da,"");R={title:"compoBundle",comboIndex:U,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:R.iconImgName,description:{hasDescription:!0,main:y,date:R.comboDate},learnMoreCta:da}};D.push(R);
E++}C.productOfferDraw(ca,!0)}K=k.samsungCareFlag;D=k.warrantyFlag;f=k.addonsFlag;C=k.giftFlag;E=k.newAssuredBuyBackFlag;U=k.pdProductTypeCheckYn;R=k.util;y=k.commonApiModel;da=k.addOnInfoTemp;var wa=k.addOnGift.products,ra=k.samsungCareList,oa=k.newAssuredBuyBackList,ea=k.addOnInfo,na=k.afterEvent,L=k.bogoFlag,O=k.pdSoftBundleUseYn,b=k.bogoModelList,r=k.pdBogoUseYn,H={},N={},Z={},d={},M={};k.checkingBogoSearchFlag=!0;k.checkingComboSearchFlag=!0;L&&"N"!==r&&"Y"!==O&&0<b.length&&(k.bogoSearchList=
k.bogoModelList);if(K||D)"Y"===U?R.isNotEmptyArray(ea)?H={title:"careAndWarranty",list:ea}:na.setMainCallBack("careAndWarranty",null):R.isNotEmptyArray(ra)?N={title:"care",list:ra}:na.setMainCallBack("care",null);f&&(Z={title:"addOn",list:da},k.hasAddOns=!0);C&&(d={title:"addOnGift",list:wa});E&&(M={title:"newAssuredBuyBack",list:oa});K||D||f||C||E?(k.addOnApiList={careAndWarranty:H,care:N,addOn:Z,gift:d,newAssuredBuyBack:M},y.callAddOnApi(k,A)):(k.checkingAddOnSearchFlag=!0,k.checkingGiftSearchFlag=
!0);y.waitSearchAPI(k,A);K=k.samsungCareFlag;ra=k.pdProductTypeCheckYn;da=k.pdSmcType;C=k.util;D=k.view;wa=k.careLearnMoreUrl;na=k.samsungCareSubText;ea=k.samsungCarePackFlag;E="_self";U="";R="javascript:;";y={};f=[];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=
na.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||ea)"type2"===da?k.warrantyFlag=!0:(da=ea?Granite.I18n.get("Samsung CarePack"):
Granite.I18n.get("Samsung Care+"),"fr"!==siteCode?wa&&(U=Granite.I18n.get("Learn more"),R=wa,E="_blank"):(U=Granite.I18n.get("Learn more"),y.layerTarget="hubbleCareinfoPopup"),k.samsungCareSubText?(wa="temp","de"===siteCode?"Y"!==ra?f.push({target:".pd-select-option__desc",text:k.samsungCareSubText}):f.push({target:".pd-select-option__desc",text:oa}):"in"===siteCode?(ra=k.samsungCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,""),f.push({target:".pd-select-option__discount-text",text:ra})):(ra=
"\x3cp\x3e"+k.samsungCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,"")+"\x3c/p\x3e",f.push({target:".pd-select-option__desc",text:ra}))):wa=ea?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(U,R,E,"",y,""),ca.care={hasComponent:K,
title:da,learnMoreCta:C,description:wa,yesAttr:ra,noAttr:oa,subText:"",rowText:f,itemSet:[]});D.productAddOnCare(ca);K=k.warrantyFlag;D=k.pdProductType;f=k.warrantyLearnMoreUrl;C=k.util;E=k.view;U=Granite.I18n.get("Extended Warranty");R="";y="_self";da="";wa="javascript:;";ra={};oa={};ea={};na={};K&&($(A.buyingToolOptWarranty.get(0)).addClass("has-component"),f&&(da=Granite.I18n.get("Learn more"),wa=f,y="_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."):
(U=Granite.I18n.get("Garantieverl\u00e4ngerung"),R="Verl\u00e4ngere die Standard-Herstellergarantie deines Samsung Ger\u00e4ts von 2 auf 5 Jahre"),ea={"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(da,wa,y,"",oa,""));ca.warranty={hasComponent:K,title:U,learnMoreCta:ra,description:R,yesAttr:ea,noAttr:na,subText:""};
E.productAddOnWarranty(ca);f=k.util;A=k.view;K=k.newAssuredBuyBackFlag;D=k.newAssuredBuyBackList;C=Granite.I18n.get("Learn more");f=f.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:f,yesAttr:{"class":null,text:null,subText:"",layerTarget:""},noAttr:{"class":null,text:"None",
layerTarget:"",eventType:"newAssuredBuyBack"}},A.newAssuredBuyBackDraw(ca))}function u(k,A,ca,K){K=A.siteCode;var D=A.syndiApiData.expanded;ca=ca.tariffOption;var f=[];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 U=[],R=0;R<C.length;R++){var y=E[C[R]];
if(y){if("de"===K||"uk"===K)A.tariffFlag=!0;null!=y.child_item_groups&&0<y.child_item_groups.length&&(y.child_skus=y.child_item_groups[0].skus);for(var da=0;da<D.length;da++){var wa=y.carrier;y.carrier_id&&(wa=y.carrier_id);if(wa.toUpperCase()==D[da].id.toUpperCase()){y.carrier=D[da];break}}U.push(y);k.carrier_attributes.carrier_plans=U}if(null!=y&&null!=y.carrier&&null!=y.carrier.images.url&&""!==y.carrier.images.url){da=!0;for(wa=0;wa<f.length;wa++)y.carrier.images.url===f[wa].images.url&&(da=!1);
da&&f.push(y.carrier)}}f.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<f.length)for(A=0;A<f.length;A++)C={src:"",alt:""},"de"===K?-1<f[A].images.url.indexOf("Telekom")?(C.src="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-1.png",
C.alt="Telekom"):-1<f[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<f[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=f[A].images.url,C.alt=""):"uk"===K&&(C.src=f[A].images.url,C.alt=""),C.src&&k.push(C);ca.logoList=k}}}function p(k,A,ca,K){var D=A.siteCode,
f=A.pdProductType,C=A.stockLevelStatus,E=ca.delivery,U=A.deliveryYN,R=$.cookies.get("HA-Deeplink-Zipcode",{domain:".samsung.com"}),y=A.util,da="",wa="",ra=A.syndiApiData.expanded;if("in"===D&&k.delivery_modes&&0<k.delivery_modes.length){k=k.delivery_modes;for(var oa=[],ea=0;ea<k.length;ea++){var na=ra.delivery_modes[k[ea]];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&&
na.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 O=na.cut_off_minutes;2>O.length&&(O="0"+O);var b={};b.idx=ea;na.slot_code.includes("SAME")?b.time=Number(L+O):b.time=Number(String(Number(L)+24)+O);oa.push(b)}}if(0<oa.length&&null!==E.time){na=E.time.split("GMT")[0].trim().slice(-8);ea=Number(na.split(":")[0])+5;na=Number(na.split(":")[1])+30;59<na&&(na-=30,ea+=1);2>String(na).length&&(na="0"+String(na));
2>String(ea).length&&(ea="0"+String(ea));na=Number(String(ea)+String(na));oa.sort(function(H,N){return H.time-N.time});ea="";for(var r in oa)if(na<oa[r].time){ea=oa[r].idx;break}""!==ea&&(da=ra.delivery_modes[k[ea]].time_slot_attributes,r=Number(da.cut_off_hour),oa="",12>r?oa="AM":(oa="PM",12<r&&(r-=12)),na="",da.slot_code.includes("NEXT")?na="Next day":da.slot_code.includes("SAME")&&(na="Same day"),da="Order by "+r+" "+oa+" and get "+na+" delivery.*",ra.delivery_modes[k[ea]].images.large_image.desc&&
(wa=ra.delivery_modes[k[ea]].images.large_image.desc.replaceAll("\n","\x3c/br\x3e")),E.isPriorityDelivery=!0)}}if("in"===D||"id"===D&&"PHONE"===f||"us"===D&&U)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),y.deliveryGetApiData(A,K))):(E.inputAttr.maxlength=
"6",""!==da&&(E.priorityDeliveryText=da),""!==wa&&(E.priorityDeliveryTooltip=wa)),"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,f=A.multiCareYn,C=A.util;if("Y"!==A.pdProductTypeCheckYn){var E=k.discount_description;if(null!==E&&0<E.length)for(var U=0;U<E.length;U++)for(var R=0;R<E[U].discounted_skus.length;R++){var y={},da=E[U].discounted_skus[R],
wa=da.sku;C.merge(A.totalSkuList,wa,da);y.discounted_sku=wa;K.push(y);A.samsungCareFlag=!0;"Y"===f&&D.push({sku:wa})}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,ea){return oa.product_rank-ea.product_rank})}}function F(k,A,ca,K,D){var f=A.pdTimeformatFront;ca=A.pdProductTypeCheckYn;K=A.util;D=k.product_tag_order;var C=A.addOnInfoTemp,
E=A.reCallSyndi,U="";k.start_date&&k.end_date&&(U=""!==f?dateFormat(k.start_date.split("T")[0],f)+" ~ "+dateFormat(k.end_date.split("T")[0],f):k.start_date.split("T")[0]+" ~ "+k.end_date.split("T")[0]);A.addonDate=U;f=k.discount_description;if(null!==f&&0<f.length)for(var R=0;R<f.length;R++)for(var y=f[R],da=0;da<y.discounted_skus.length;da++){var wa={},ra=y.discounted_skus[da],oa=!1,ea=ra.sku;wa.discounted_sku=ea;ra.offer_type=A.hasVoucher?"CONFIGURATORADDONVOUCHER":"CONFIGURATORADDON";ra.addonDate=
U;ra.product_formatted_sales_pitch=k.formatted_sales_pitch;K.merge(A.totalSkuList,ea,ra);if(!A.hasVoucher&&D&&D[ea]&&D[ea].product_tags&&0<D[ea].product_tags.length)for(var na=0;na<D[ea].product_tags.length;na++)"GIFT"===D[ea].product_tags[na].toUpperCase()&&(A.giftDrawData.date=U,A.giftDrawData.dec=k.formatted_sales_pitch,!k.formatted_sales_pitch&&k.sales_pitch&&(A.giftDrawData.dec=k.sales_pitch),A.addOnGift.products.push(wa),oa=A.giftFlag=!0);"Y"!==ca?oa||(A.addOnInfoTempCache[wa.discounted_sku]||
(C.push(wa),A.addOnInfoTempCache[wa.discounted_sku]=wa.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,f=k.syndiApiData.products,C=k.drawObj;if(ca){for(ca=0;ca<K.length;ca++){var E=K[ca],U=f[E.sku];if(U){D.merge(k.totalSkuList,E.sku,U,"syndi");
var R=k,y=R.siteCode,da=R.util,wa=R.drawObj.offer;if("Y"===R.pdSoftBundleUseYn)if(U.sku_source)if(E.sku_source=U.sku_source,"ecom"===U.sku_source)if("COMBO"===E.offer_type)null!==U.inventory&&(E.ctaType=U.inventory.status),null!==U.images&&null!==U.images.small_image&&(E.thumbUrl=U.images.small_image.url,E.thumbUrlAlt=U.images.small_image.desc),E.displayName=U.product_display_name,E.modelName=U.model_name,E.modelCode=U.model_code;else{if("BOGO"===E.offer_type_b){var ra=U.images.small_image.url;ra=
da.getImgAttr(ra,ra,U.images.small_image.desc,{classWapper:"image__main responsive-img"});var oa=R.priceCurrency;da=R.view;var ea=U.taxonomy&&U.taxonomy.product_category?U.taxonomy.product_category.toLowerCase():"",na=U.taxonomy&&U.taxonomy.name?U.taxonomy.name.toLowerCase():"",L=U.taxonomy&&U.taxonomy.name?U.taxonomy.name.toLowerCase():"",O=U.model_code,b=U.model_name,r=U.product_display_name,H=[];H.push({text:E.bogo_sales_pitch});var N="",Z="",d="",M="";null!==U.price_info&&0<U.price_info.length&&
(M=U.price_info[0].msrp_price.value,N=U.price_info[0].msrp_price.formatted_value,"nl"!==y&&"be"!==y&&"be_fr"!==y&&(Z=Granite.I18n.get("Save {0}",currencyComma(U.price_info[0].sale_price.value,oa),y)),d=currencyComma(0,oa));"true"===$("#isEppPage").val()&&"pl"===y&&(Z=N="");y={title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),modelCode:O,modelName:b,displayName:r,pviTypeName:ea,pviSubtypeName:na,categorySubTypeEngName:L,description:{hasDescription:!0,
main:H,date:E.bogo_date},imgAttr:ra,price:{hasPrice:!0,price:M,original:N,save:Z,now:d}}};wa.bogo=y;da.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;wa=k;y=wa.multiCareYn;"Y"===wa.pdProductTypeCheckYn&&"CONFIGURATORADDON"===E.offer_type&&U.product_type&&(da=U.product_type.toUpperCase(),"PHYSICAL"===da?(da={},da.discounted_sku=U.sku,wa.addOnInfoTempCache[da.discounted_sku]||(wa.addOnInfoTemp.push(da),
wa.addonsFlag=!0,wa.addOnInfoTempCache[da.discounted_sku]=da.discounted_sku)):"INSURANCE"!==da&&"WARRANTY"!==da||!U.sku_source||("ecom"===U.sku_source?(U.discounted_sku=U.sku,null!=U.images&&null!=U.images.small_image&&(U.thumbUrl=U.images.small_image.url,U.thumbUrlAlt=U.images.small_image.desc),U.ctaType=U.inventory.status,U.displayName=U.product_display_name,U.modelName=U.model_name,U.modelCode=U.model_code):U.discounted_sku=U.sku,wa.addOnInfo.push(U),"INSURANCE"===da?(wa.samsungCareFlag=!0,E.product_formatted_sales_pitch&&
(wa.samsungCareSubText=E.product_formatted_sales_pitch)):"WARRANTY"===da&&(wa.warrantyFlag=!0)));if("Y"===y&&(wa=wa.samsungCareList,null!==wa&&0<wa.length))for(R in wa)U.sku===wa[R].discounted_sku&&(wa[R].custom_properties=U.custom_properties,wa[R].images=U.images,wa[R].long_description=U.long_description,wa[R].short_description=U.short_description,wa[R].product_display_name=U.product_display_name,wa[R].displayName=U.product_display_name,wa[R].modelName=U.model_name,wa[R].modelCode=U.model_code,wa[R].sku_source=
U.sku_source,wa[R].sale_price=U.sale_price,wa[R].msrp_price=U.msrp_price,wa[R].product_type=U.product_type);R=k;wa=A;y=R.util;E.checkingType&&"forever"===E.checkingType&&(da=U.product_type.toUpperCase(),ra=U.price_info,oa=R.foreverFinanceInfo,ea=0,"INSURANCE"===da&&ra&&0<ra.length&&(ra[0].msrp_price&&ra[0].msrp_price.value&&(ea=ra[0].msrp_price.value),ra[0].sale_price&&ra[0].sale_price.value&&(ea=ra[0].sale_price.value)),oa.carePrice=ea,y.foreverDraw(R,wa));R=k;wa=R.newAssuredBuyBackList;E.checkingType&&
"newAssuredBuyBack"===E.checkingType&&U&&"BUYBACK"===U.product_type.toUpperCase()&&(E=U.product_display_name,y=U.sku,da="",U.price_info&&U.price_info[0].sale_price&&U.price_info[0].sale_price.value?da=currencyComma(U.price_info[0].sale_price.value,R.priceCurrency):U.price_info&&U.price_info[0].msrp_price&&U.price_info[0].msrp_price.value&&(da=currencyComma(U.price_info[0].msrp_price.value,R.priceCurrency)),wa.push({index:wa.length+1,title:E,priceDisplay:da,sku:y,productItem:U}))}}G(k,A,C)}k.finishedSecondSyndi=
!0;k.util.afterTotalAPI(k,A)}function x(k,A,ca,K,D,f){var C=k.util,E=k.drawObj,U=k.siteCode,R=E.offer.combo,y=E.offer.gift,da=E.tariffOptionResult,wa=E.careResult,ra=E.warrantyResult,oa=E.upgradeResult,ea=E.tradeInResult,na=E.between.nonPurchase,L=k.drawObj.galaxyForeverResult,O=k.drawObj.assuredBuyBackResult,b=k.drawObj.newAssuredBuyBackResult,r=$(A.buyingToolOptDelivery.find("#delivery-zipcode")).val(),H=C.hasTariffOptionResult(k,A),N=C.hasCareResult(k,A),Z=C.hasWarrantyResult(k,A),d=C.hasUpgradeResult(k,
A),M=C.hasTradeInResult(k,A),t=C.hasBetweenResult(k,A),z=C.hasComboResult(k,A),I=C.hasForeverResult(k,A),X=C.hasGiftResult(k,A),V=C.hasAssuredBuyBackResultResult(k,A),P=C.hasNewAssuredBuyBackResult(k,A),S={},Q=k.childCheckList,ha=k.pdAppId,ka=k.shopSkuCode;E={line_items:[]};var la={line_items:[]},ua={},ya={is_accepted:!0},sa="",Ma="",pa="",a="",c="",m="",g="",q="",ba="",J="",fa="",qa="",ia="",Aa="",Ia="",Fa="";if(C.checkingDeliveryCode(k,A)){f||(la.sku_id=ka,la.quantity="1",k.proudctPriceInfo.productCartCount&&
1<k.proudctPriceInfo.productCartCount&&(la.quantity=""+k.proudctPriceInfo.productCartCount));if(H){A=da.dataModelCode;var Da=da.dataSimskuCode;da=da.dataId;C.isNotEmptyArray(da)&&(sa=","+da.join("|"),$.each(da,function(Va,Y){ua[Y]=ya}));A&&(S[A]=A,la.line_items.push({sku_id:A,quantity:"1"}));Da&&(S[Da]=Da,la.line_items.push({sku_id:Da,quantity:"1"}))}M&&(da=ea.dataId,ea=ea.dataQuoteId,C.isNotEmptyArray(da)&&(Ma=","+da.join("|"),$.each(da,function(Va,Y){ua[Y]=ya})),ea&&(pa="\x26exchange_id\x3d"+ea),
la.exchange_id=ea);if(N){ea=wa.dataId;wa=wa.dataModelCode;var Ga={};C.isNotEmptyArray(ea)&&(a=","+ea.join("|"),$.each(ea,function(Va,Y){Ga[Y]=ya}));wa&&(J="\x26addChildItem[]\x3d"+wa+",1",la.line_items.push({sku_id:wa,quantity:"1",consents:Ga}))}if(Z){wa=ra.dataId;ra=ra.dataModelCode;var Sa={};C.isNotEmptyArray(wa)&&(a=","+wa.join("|"),$.each(wa,function(Va,Y){Sa[Y]=ya}));ra&&(J="\x26addChildItem[]\x3d"+ra+",1",la.line_items.push({sku_id:ra,quantity:"1",consents:Sa}))}if(d){Aa=oa.dataId;var La={};
C.isNotEmptyArray(Aa)&&(c=","+Aa.join("|"),$.each(Aa,function(Va,Y){La[Y]=ya}));for(var ma in Q)fa=c?fa+("\x26addChildItem[]\x3d"+Q[ma]+",1"+c):fa+("\x26addChildItem[]\x3d"+Q[ma]+",1"),la.line_items.push({sku_id:Q[ma],quantity:"1",consents:La});Aa="\x26flush\x3dtrue";E.flush=!0}k.pdUpgrade&&(k.pdUpgrade="fr"===U?"":"\x26upgrade\x3dtrue",m=k.pdUpgrade);t&&(ia="\x26finance_plan_id\x3d"+na.dataLeaseing,Aa="\x26flush\x3dtrue",E.flush=!0,la.finance_plan_id=na.dataLeaseing);if(z)for(var Oa in R){ma=R[Oa].item;
for(var Ca in ma.bundleList)if(oa=ma.bundleList[Ca].dataModelCode)S[oa]=oa,la.line_items.push({sku_id:oa,quantity:"1"})}if(X){R=y.item;for(var Ka in R.bundleList)if(y=R.bundleList[Ka].dataModelCode)S[y]=y,la.line_items.push({sku_id:y,quantity:"1"})}if(V){Ka=O.dataSku;var Qa={};O=O.dataId;V="";C.isNotEmptyArray(O)&&(V=","+O.join("|"),$.each(O,function(Va,Y){Qa[Y]=ya}));Ka&&(Fa="\x26addChildItem[]\x3d"+Ka+V,la.line_items.push({sku_id:Ka,quantity:"1",consents:Qa}))}P&&(b=b.dataModelCode)&&(Fa="\x26addChildItem[]\x3d"+
b,la.line_items.push({sku_id:b,quantity:"1"}));if(I){I=L.modelList;b=L.dataId;L=L.financePlanId;C.isNotEmptyArray(b)&&(g=","+b.join("|"));for(var Na in I)Ia+="\x26addChildItem[]\x3d"+I[Na]+",1";Ia+=g;L&&(Ia+="\x26finance_plan_id\x3d"+L)}for(var Ua in S)q+="\x26addChildItem[]\x3d"+S[Ua]+",1";for(var Ra in ca)ba="id"===U?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]),
la.line_items.push({sku_id:ca[Ra],quantity:"1"});r&&(qa="\x26postal_code\x3d"+r,E.postal_code=r);"de"!==U&&"uk"!==U||!H&&!M||(Aa="\x26flush\x3dtrue",E.flush=!0);ha&&(K+="?appId\x3d"+k.pdAppId);0<Object.keys(ua).length&&(la.consents=ua);0<Object.keys(la).length&&E.line_items.push(la);"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(ka=$("#originShopSku").val());if("id"===U)window.location.href=K+("?addItem[]\x3d"+ka+",1"+sa+Ma+q+J+a+fa+ia+pa+qa+m+Aa+ba+Ia);else{C=",1";if(f){f=
"";for(U=0;U<ca.length;U++)ka="\x26",0==U&&(ka="?"),f+=ka+"addItem[]\x3d"+ca[U]+C;K+=f}else k.proudctPriceInfo.productCartCount&&1<k.proudctPriceInfo.productCartCount&&(C=","+k.proudctPriceInfo.productCartCount),K+="?addItem[]\x3d"+ka+C+sa+Ma+q+J+a+fa+ia+pa+qa+m+Aa+Ia+Fa;"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(K=K.replace("addItem[]","flash_skus"),K=K.replace(C,""));D?window.location.href=K:T(k,E,ca)}}}function T(k,A,ca){var K=k.siteCode,D=$.cookies.get("jwt_"+k.countryIsoCode,
{domain:".samsung.com"});k=k.apiDomain+"/v4/shopping-carts/";var f="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":
"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:f,dataType:"json",cache:!0,beforeSend:function(E){null!=D&&""!=D&&E.setRequestHeader("x-ecom-jwt",D)},timeout:2E4,success:function(E,U,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,f=k.view,C=k.currentUrl,
E=k.shopSkuCode,U=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&&
(k.drawObj.price.priceWrapper.hasPriceWrapper=!0));if(ca)if(U.products[E]){var y=U.products[E];k.syndiProductData=y;var da=k.siteCode,wa=k.proudctPriceInfo,ra=D.price.priceWrapper,oa=k.util,ea="";if(y.inventory){ea=y.inventory.status.toUpperCase();var na=y.inventory.custom_stock_message;k.stockLevelStatus=ea;k.apiChangeStockStatus=ea;k.stockCustomMessage=na;D.stockLevelStatus=ea;wa.netavailable=y.inventory.net_available&&0<Number(y.inventory.net_available)?Number(y.inventory.net_available):1;"true"===
$("#isEppPage").val()&&0<A.buyingToolOptSMBQuantity.length&&wa.netavailable<wa.smbMinQty&&(ea="OUTOFSTOCK",k.stockLevelStatus="OUTOFSTOCK",D.stockLevelStatus="OUTOFSTOCK")}"pl"===da&&"OUTOFSTOCK"===ea||"NOORDER"===ea||!0!==y.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=
!0;if(y.price_info&&0<y.price_info.length){y.flags.ecom_flag&&(k.hasPriceCta=!0);for(var L=y.price_info,O=y.preferred_finance_plan,b=0;b<L.length;b++){var r=L[b],H="",N="",Z="",d="",M="";r.msrp_price&&(H=r.msrp_price.value,N=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 z=r.sale_price.formatted_value}else t=H,z=N;r.sales_pitch&&(1==r.sales_pitch.length?M=r.sales_pitch[0]:2<=r.sales_pitch.length&&(""!=
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]?M=r.sales_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]),
"true"!==$("#isEppPage").val()||"in"!==k.siteCode)&&(wa.salesPitch=M);wa.orignalPrice=H;wa.orignalPriceFormatted=N;wa.salePrice=t;wa.salePriceFormatted=z;wa.listPrice=Z;wa.listPriceFormatted=d}O&&O.installment_amount&&"NaN"!==O.installment_amount&&O.tenure.unit&&(wa.monthlyPriceInfo.monthlyPrice=O.installment_amount,wa.monthlyPriceInfo.tenureVal=O.tenure.unit)}y.payment_methods&&(k.paymentMethods=y.payment_methods);y.flags&&y.flags.ecom_flag&&(k.proudctEcomFlag=y.flags.ecom_flag);K.settingPriceCta(k.hasPriceCta,
k,A,C);if(D.price.priceWrapper.hasPriceWrapper){p(y,k,D,A);u(y,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===y.flags.online_to_offline){var X=D.offer,V=k.util,P=[];P.push({text:Granite.I18n.get("1. Free express delivery from your local Samsung plaza")});P.push({text:Granite.I18n.get("2. Delivery by appointment")});P.push({text:Granite.I18n.get("3. Hassle free installation")});var S="/"+I+"/smart-utsav-delight-delivery/O2O/terms/";
var Q=V.getAttrCta(Granite.I18n.get("Learn more"),S,"_self","",{},"");var ha={title:"delightDelivery",hasItem:!0,item:{headline:Granite.I18n.get("Delight delivery"),description:{hasDescription:!0,main:P},learnMoreCta:Q,imgAttr:{srcPc:"/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/product-offer-delight-delivery.jpg",alt:"delight delivery"}}};X.delightDelivery=ha}var ka=k.syndiApiData.expanded;if(y.promotions&&0<y.promotions.length){for(var la=y.promotions,ua=
{},ya=0;ya<la.length;ya++){var sa=ka.promotions[la[ya]],Ma=sa.type?sa.type.toUpperCase():"",pa=ka.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 g=void 0,q=k,ba=q.siteCode,J=q.util,fa="";q.tradeInFlag=!0;if(J.isNotEmptyArray(pa.formatted_sales_pitch)){var qa=pa.sales_pitch;
0<qa.length&&(fa=qa[0]);"pl"===ba&&(fa=fa.replace(/<(\/p|p)([^>]*)>/gi,"").replace(/<(\/em|em)([^>]*)>/gi,""))}else fa="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(g in pa.discount_description){var Aa=pa.discount_description[g],Ia=Aa.value;"Rebate"===Aa.type&&Ia&&(ia=Math.max(ia,Ia))}q.tradeinSaveValue=ia}q.tradeinText=
fa}else if("CONFIGURATORUPGRADE"===Ma){var Fa=k,Da=y,Ga=Fa.childCheckList,Sa=Fa.eupData,La=Fa.pdUpgradeUseYn,ma=Fa.util;Fa.upgradeEligible=!0;if("Y"===La){var Oa=sa.discount_description;if(null!==Oa&&0<Oa.length)for(var Ca=0;Ca<Oa.length;Ca++)for(var Ka=0;Ka<Oa[Ca].discounted_skus.length;Ka++){var Qa=Oa[Ca].discounted_skus[Ka],Na=Qa.sku;ma.merge(Fa.totalSkuList,Na,Qa);Ga.push(Na);Fa.upgradeFlag=!0;Sa.displayName=Da.product_display_name;Sa.sku=Na;Sa.salePrice=Da.price_info?Da.price_info[Ca].sale_price.value:
""}}}else if("CONFIGURATORADDONSAMSUNGCARE"===Ma)v(sa,k,D,A);else if("CONFIGURATORADDON"===Ma)F(sa,k,D,A,ya);else if("CONFIGURATOROFFER"===Ma&&"COMBO"===a){if(!ua[sa.offer_id]){var Ua=void 0,Ra=k,Va=Ra.pdTimeformatFront,Y=Ra.siteCode,ja=Ra.reCallSyndi,za=Ra.setComboPopupData,Ba=Ra.util,Ha=Ra.priceCurrency,va={},Ea=sa.images&&0<sa.images.length?sa.images[0]:null;va.comboInfo=[];va.iconImgName=Ea;sa.start_date&&sa.end_date&&(va.comboDate=Va?dateFormat(sa.start_date.split("T")[0],Va)+" ~ "+dateFormat(sa.end_date.split("T")[0],
Va):sa.start_date.split("T")[0]+" ~ "+sa.end_date.split("T")[0]);sa.formatted_sales_pitch&&(va.comboPitch=sa.formatted_sales_pitch);if(pa.discount_description&&0<pa.discount_description.length){var Ja=pa.expanded;for(Ua in pa.discount_description){var ta=pa.discount_description[Ua];if(ta.skus&&0<ta.skus.length)for(var xa=ta.skus,Xa=0;Xa<xa.length;Xa++){var Ta={};Ta.sku=xa[Xa];if(Ja&&Ja.discounted_skus&&Ja.discounted_skus[xa[Xa]]){var Pa=Ja.discounted_skus[xa[Xa]],Wa=0;Pa.msrp_price?(Ta.msrp_price=
Pa.msrp_price,Wa=Pa.msrp_price.value):Ta.msrp_price={};Ta.sale_price=Pa.sale_price?Pa.sale_price:{};"percentage"===ta.type.toLowerCase()?Ta.formatted_value=ta.value+"%":Ta.formatted_value=currencyComma(ta.value,Ha);"fr"===Y&&ta.value&&-1<"rebate".indexOf(ta.type.toLowerCase())&&0>=Number(Wa)-Number(ta.value)&&(Ta.formatted_value="0");Ta.type=ta.type;Ta.offer_type=pa.type="COMBO";Ta.sales_pitch=pa.sales_pitch&&0<pa.sales_pitch.length?pa.sales_pitch[0]:"";va.comboInfo.push(Ta);ja.push(Ta);Ra.comboFlag=
!0;Ba.merge(Ra.totalSkuList,Ta.sku,Ta)}}}za.push(va)}ua[sa.offer_id]=sa.offer_id}}else if("CONFIGURATOROFFER"===Ma&&"BOGO"===a){if(!ua[sa.offer_id]){var ab=void 0,Ya=k,Za=Ya.pdTimeformatFront,bb=Ya.reCallSyndi,ib=Ya.bogoModelList,$a=Ya.pdSoftBundleUseYn,pb=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&&
(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 yb=pa.discount_description[ab].skus,Eb=0;Eb<yb.length;Eb++){var hb={};hb.sku=yb[Eb];hb.bogo_date=gb;hb.bogo_sales_pitch=kb;"Y"===$a?(hb.offer_type_b="BOGO",bb.push(hb)):ib.push(hb);pb.merge(Ya.totalSkuList,hb.sku,hb);Ya.bogoFlag=!0}ua[sa.offer_id]=sa.offer_id}}else if("PRODUCTDETAILSPROMOMESSAGE"===
Ma){var Kb=ya,sb=D.offer,qb=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",Fb=W(sa,k),cb=Fb.promoIconFlag,lb=Fb.iconImgName,eb="offer-promotion promotion-index-"+Kb,nb=[],Zb=null,ob=[],gc="";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);cb&&(Zb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+lb+".svg");for(var bc=
0;bc<nb.length;bc++)gc+=nb[bc].replace("\x3ca","\x3ca target\x3d'_blank'");ob.push({target:"."+eb.replace(" ",".")+" .pd-offer__desc",text:gc});sb.promotionMessage.push({title:"promoMessage",hasItem:!0,item:{contentWrapperClass:eb,isIcon:!0,iconAttr:{src:Zb,alt:qb},description:{hasDescription:!0},rowText:ob}})}else if("PRODUCTDETAILSFINANCEPLANPROMO"===Ma){var Lb=k,Nb=ya,Ob=Lb.siteCode,Hb=D.offer,cc=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",nc=sa.emi_calculator_url?sa.emi_calculator_url:
Lb.financingUrl,oc=W(sa,Lb),Pb=oc.promoIconFlag,pc=oc.iconImgName,rb="offer-emi emi-index-"+Nb,jb="",Gb="",hc=[],tb="";Lb.financingEligible=!0;nc&&(Lb.emiCalculatorUrl=nc);sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length?jb=sa.formatted_sales_pitch:sa.sales_pitch&&0<sa.sales_pitch.length&&(jb=sa.sales_pitch);if(jb){Pb&&(Gb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+pc+".svg",tb=tb+'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+
(Gb+'?$LazyLoad_Home_PNG$" alt\x3d"'+cc+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Gb+'?$48_48_PNG$" alt\x3d"'+cc+'"\x3e\x3c/div\x3e'),tb+="\x3c/div\x3e");tb+='\x3cdiv class\x3d"pd-offer-desc"\x3e';tb+='\x3cdiv class\x3d"pd-offer__cta"\x3e';if("in"===Ob||"uk"===Ob||"lt"===Ob||"id"===Ob){Lb.promotionFinancingFlag=!0;for(var qc=0;qc<jb.length;qc++){var mb=jb[qc].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>mb.indexOf("\x3ca")&&("in"===Ob?(tb+='\x3cstrong class\x3d"pd-offer__title-text"\x3e',
tb+=mb+" \x3cbr/\x3e",tb+='\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-'+Lb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+mb.toLowerCase()+':learn more"\x3e'+Granite.I18n.get("Learn more")+"\x3c/a\x3e",tb+="\x3c/strong\x3e"):tb+='\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-'+
Lb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+mb.toLowerCase()+':learn more"\x3e'+mb+"\x3c/a\x3e")}}else if("ee"===Ob||"lv"===Ob){Lb.promotionFinancingFlag=!0;for(var ub=0;ub<jb.length;ub++){var Ib=jb[ub].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>Ib.indexOf("\x3ca")&&(tb+='\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-'+
Nb+'"an-tr\x3d"header(pim)_offer option-'+Lb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+Ib.toLowerCase()+':learn more"\x3e'+Ib+"\x3c/a\x3e")}}else{tb+='\x3cstrong class\x3d"pd-offer__title-text"\x3e';for(var fb=0;fb<jb.length;fb++)tb+=jb[fb];tb+="\x3c/strong\x3e"}tb+="\x3c/div\x3e";tb+="\x3c/div\x3e";hc.push({target:"."+rb.replace(" ","."),text:tb});Hb.promotionFinance.push({title:"finance",hasItem:!0,item:{contentWrapperClass:rb,iconAttr:{src:Gb,alt:cc},
description:{hasDescription:!0},rowText:hc}})}}else if("PRODUCTDETAILSSMARTCLUBPROMO"===Ma){var zb=void 0,Qb=ya,Xb=k.siteCode,rc=D.offer,ic=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",vb=W(sa,k).iconImgName,wb="offer-smart-club smart-club-index-"+Qb,Db="",Yb="",jc=[];sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length&&(Db=sa.formatted_sales_pitch);if(Db){Yb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+vb+".svg";zb=
'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+(Yb+'?$LazyLoad_Home_PNG$" alt\x3d"'+ic+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Yb+'?$48_48_PNG$" alt\x3d"'+ic+'"\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 Sb=0;Sb<Db.length;Sb++)0>Db[Sb].replace("\x3cu\x3e",
"").replace("\x3c/u\x3e","").indexOf("\x3ca")&&"in"===Xb&&(zb+=Db+"");zb+="\x3c/p\x3e";zb+="\x3c/div\x3e";jc.push({target:"."+wb.replace(" ","."),text:zb});rc.promotionSmartclub.push({title:"smartclub",hasItem:!0,item:{contentWrapperClass:wb,iconAttr:{src:Yb,alt:ic},description:{hasDescription:!0},rowText:jc}})}}else if("PRODUCTDETAILSSAMSUNGFINANCEPLANPROMO"===Ma){var kc=D,dc=k.financeplusUrl+"?family_id\x3d"+k.familyCode+"\x26sku\x3d"+k.shopSkuCode,lc=null;"in"===k.siteCode&&(dc="https://www.samsung.com/in/offer/online/finance-plus/",
lc="blank");var Mb="",Tb=null;k.financingEligible=!0;null!==sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length?Mb=sa.formatted_sales_pitch:null!==sa.sales_pitch&&0<sa.sales_pitch.length&&(Mb=sa.sales_pitch);for(var ec=0;ec<Mb.length;ec++)Tb=Mb[ec].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");kc.offerFinance={title:Granite.I18n.get("Samsung Finance+"),hasComponent:!0,description:Tb,learnMoreCta:{"class":null,title:null,href:dc,target:lc,text:Granite.I18n.get("Learn more")}}}else if("CONFIGURATORBUYBACK"!==
Ma)if("CONFIGURATORADDONVOUCHER"===Ma){var Ub=k,Ab={},Vb=sa.discount_description;sa.sales_pitch&&0<sa.sales_pitch.length&&(Ab.sales_pitch=sa.sales_pitch[0]);sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length&&(Ab.formatted_sales_pitch=sa.formatted_sales_pitch[0]);if(Vb&&0<Vb.length){Ab.discount_description=Vb;for(var Jb=0;Jb<Vb.length;Jb++){var mc=Vb[Jb];Ab.price=mc.value;Ab.coupons=mc.coupons}}sa.terms_and_condition_ids&&0<sa.terms_and_condition_ids.length&&(Ab.terms_and_condition_ids=sa.terms_and_condition_ids);
Ub.voucherdata=Ab;Ub.hasVoucher=!0;F(sa,k,D,A,ya)}else if("CONFIGURATORASSUREDBUYBACK"===Ma){if("in"===k.siteCode){var Cb=k,Wb=sa.discount_description;if(null!==Wb&&0<Wb.length)for(var Rb=0;Rb<Wb.length;Rb++)for(var $b=0;$b<Wb[Rb].discounted_skus.length;$b++){var xb=Wb[Rb].discounted_skus[$b].sku;Cb.newAssuredBuyBackFlag=!0;Cb.reCallSyndi.push({sku:xb,checkingType:"newAssuredBuyBack"})}}}else"CONFIGURATORADDONCAREPACK"===Ma&&w(sa,y,k,A)}var db=k.reCallSyndi,sc=k.syndiApiData.products;if(0<db.length){for(var Bb=
[],tc=0;tc<db.length;tc++){var wc=db[tc].sku;sc[wc]||Bb.push(wc)}0<Bb.length?(k.finishedSecondSyndi=!1,h(k,A,Bb,aa)):aa(k,A,!0)}else G(k,A,D)}var uc=k.util,vc=!1;k.tradeInFlag&&("in"===siteCode?vc=!0:"fr"===siteCode&&(vc=!0));uc.settingTradeInDraw({},k,A,vc);var xc=k.upgradeFlag,Bc=k.pdUpgradeLearnMoreUrl,Fc=k.util,fc=k.siteCode,yc=k.pdProductType,Cc="",ac="",Ec="_self",zc="",Ac="javascript:;",Ic={},Jc={},Kc={};xc&&("uk"===fc?Bc&&(zc=Granite.I18n.get("Learn more"),Ac=Bc,Ec="_blank"):"de"===fc&&(zc=
Granite.I18n.get("Learn more"),Ic.layerTarget="upgradeLearnMorePopup"),Cc=Granite.I18n.get("Add Samsung Upgrade Program"),ac="uk"===fc?"PHONE"!==yc?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."),
Jc={"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(zc,Ac,Ec,"",Ic,"");D.upgrade={hasComponent:xc,isEmbededType:!1,isNotEmbededType:!0,title:Cc,learnMoreCta:Pc,description:ac,yesAttr:Jc,noAttr:Kc,embedData:{}};var Lc=k.stockLevelStatus,Qc=k.proudctEcomFlag;if(("pl"!==k.siteCode||"OUTOFSTOCK"!==Lc)&&"NOORDER"!==Lc&&!0===Qc&&
null!==y.price_info&&0<y.price_info.length)for(var Hc=y.price_info,Gc=0;Gc<Hc.length;Gc++)if(!0===y.flags.is_upgrade_eligible&&Hc[Gc].leasing_details){var Mc=Hc[Gc].leasing_details,Dc=null,Nc;for(Nc in Mc)Dc=Mc[Nc];if(Dc){var Rc=Dc.tenure.unit,Sc=Dc.tenure.value,Tc=Dc.monthly_rate.value,Uc=Dc.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:Dc.plan_id,
tenureUnit: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,
k,A,C);k.commonApiModel.offlineStockAjax(k);k.finishedFirstSyndi=!0;f.productDraw(D);K.afterTotalAPI(k,A);k.commonApiModel.settingWishList(k,A);K.clickEventListener(k,A)}function w(k,A,ca,K){A=ca.samsungCareBadgeList;K=ca.samsungCareList;var D=ca.reCallSyndi,f=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 U=0;U<E.length;U++)for(var R=0;R<E[U].discounted_skus.length;R++){var y={},da=E[U].discounted_skus[R],
wa=da.sku;C.merge(ca.totalSkuList,wa,da);y.discounted_sku=wa;K.push(y);ca.samsungCareFlag=!0;"Y"===f&&D.push({sku:wa})}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,ea){return oa.product_rank-ea.product_rank})}}var e=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),n=function(){};n.prototype.productAjax=function(k,A){var ca=
[k.shopSkuCode];k.finishedFirstSyndi=!1;h(k,A,ca,B)};n.prototype.callCheckOutCta=function(k,A,ca,K,D){var f=k.checkOutLink;f="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":f;x(k,ca,A,f,K,D)};n.prototype.callAddToCartCta=function(k,A,ca,K,D){var f=k.cartUrl;f="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":f;x(k,ca,A,f,K,D)};e.BuyingToolOpAjaxGPv2=n})();
(function(){function l(d,M,t,z,I){var X=d.util,V=d.drawObj,P=$(t.buyingToolOptDelivery.find("#delivery-zipcode")).val(),S=X.hasTariffOptionResult(d,t),Q=X.hasCareResult(d,t),ha=X.hasWarrantyResult(d,t),ka=X.hasWarrantyVdResult(d,t),la=X.hasUpgradeResult(d,t),ua=X.hasTradeInResult(d,t),ya=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);z={};if(X.checkingDeliveryCode(d,t))if(d.cartBezelCode&&
(z.bezelCode=d.cartBezelCode,z.isContinue=I),d.giftCard.cartGiftCardCode&&(z.giftCardCode=d.giftCard.cartGiftCardCode,z.isContinue=I),z.postalCode=P,I){if(M&&0<M.length&&(z.addon={modelCodeList:[].concat($jscomp.arrayFromIterable(M)),childModelObject:d.productChildModelObject}),pa){d=V.offer.gift.item;for(var m in d.bundleList)z.gift={modelCode:d.bundleList[m]}}}else{"true"===$("#isEppPage").val()&&"in"===d.siteCode&&d.proudctPriceInfo.productCartCount&&1<d.proudctPriceInfo.productCartCount&&(z.orignalQuantity=
{},z.orignalQuantity.quantity=""+d.proudctPriceInfo.productCartCount);"cn"===d.siteCode&&(M=d.installmentGift)&&M.selectedOffers&&(z.installment=M);(M=d.globalServiceInfo.embedaddon)&&0<M.length&&(z.embedaddon=M);S&&(S=V.tariffOptionResult,z.tariff={modelCode:S.dataModelCode,simSkuCode:S.dataSimskuCode,tnc:[S.dataId],tariffResult:d.globalServiceInfo.tariff});ua&&"in"!==N&&(ua=V.tradeInResult,"cn"===N||"tr"===N?z.tradeIn={plan_id:ua.dataQuoteId,tradeInResultList:d.isMultiTradeIn&&ua.list?ua.list:[]}:
d.useNewAddToCartApi?(S=d.isMultiTradeIn&&ua.list?ua.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=
d.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)),z.tradeIn={plan_id:ua.dataQuoteId,tradeInResultList:S}):z.tradeIn={plan_id:ua.dataQuoteId},ua.dataId&&0<ua.dataId.length&&(z.tradeIn.tnc=[].concat($jscomp.arrayFromIterable(ua.dataId))));
if(d.exchangeApiData&&d.exchangeApiData.exchangeFlag&&d.ceTradeUpPopup.isEnabled||"in"===N)z.exchange="in"==N?{exchangeId:d.exchangeApiData.dataQuoteId,tradeInType:d.tradeInType}:{exchangeId:d.exchangeApiData.dataQuoteId};"se"==N&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(z.samsungUpgrade={serviceCode:window.sg.components.SamsungFlexPopup.samsungFlexServiceCode});if(Q){Q=V.careResult;var g;"es"!==N&&"fr"!==N&&"cz"!==N||"monthly"!==(null==(g=V.careResult.dataPaymentcycle)?
void 0:g.toLowerCase())?z.care={modelCode:Q.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(Q.dataId))}:z.care={modelCode:Q.dataModelCode,isMonltly:!0,paymentCycle:V.careResult.dataPaymentcycle.toUpperCase(),tnc:[].concat($jscomp.arrayFromIterable(Q.dataId))}}ha&&(g=V.warrantyResult,z.warranty={modelCode:g.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(g.dataId))});ka&&(z.warrantyVd={modelCode:V.warrantyVdResult.smcCode});la&&(z.upgrade={modelCode:d.childCheckList[0],tnc:[].concat($jscomp.arrayFromIterable(V.upgradeResult.dataId))});
ya&&(z.between={plan_id:V.between.nonPurchase.dataLeaseing});if(sa){ka=V.offer.combo;z.combo={modelCodeList:[]};for(var q in ka){la=ka[q].item;for(var ba in la.bundleList)z.combo.modelCodeList.push(la.bundleList[ba].dataModelCode)}}if(pa)for(m in q=V.offer.gift.item,q.bundleList)if(ba=q.bundleList[m].dataModelCode)z.gift={modelCode:ba};a&&(m=d.drawObj.assuredBuyBackResult,z.assuredBuyBack={modelCode:m.dataSku,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});Ma&&(m=d.drawObj.galaxyForeverResult,
z.forever={modelCodeList:[].concat($jscomp.arrayFromIterable(m.modelList)),planId:m.financePlanId,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});c&&(d=d.drawObj.newAssuredBuyBackResult,z.newAssuredBuyBack={modelCode:d.dataModelCode,dataDisplayName:d.dataDisplayName,dataDisplayPrice:d.dataDisplayPrice,dataPrice:d.dataPrice,hasComponent:d.hasComponent})}return z}function h(d,M,t){if(!t.isExecuted){var z=!0;for(I in t.finishedAPIList)if(!t.finishedAPIList[I]){z=!1;break}if(z){t.isExecuted=!0;d.view.productDraw(d.drawObj);
"in"===N&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&d.drawObj.delivery.hasComponent&&T(d,M);d.util.totalAfterFunction(d,M);if("10030000"!=d.categoryTypeCode){t=d.financeFlag;z=d.financingUrl;var I=d.siteCode;var X=d.promotionFinancingFlag,V=d.util,P=d.view,S=Granite.I18n.get("Calculate Finance"),Q=d.drawObj,ha=V.getEmiUrl(d,M),ka=!1,la={};"Y"===t&&""!==z&&"in"!==I&&("uk"===I||"id"===I||"lt"===I||"lv"===I||"ee"===I||"pl"===I||"hu"===I||"ro"===I||"bg"===I||"ua"===I||
"ph"===I||"sg"===I||"my"===I||"nz"===I||"sk"===I||"cz"===I||"cn"===I||"co"===I||"cl"===I||"mx"===I||"kz_kz"===I||"kz_ru"===I?X&&(ka=!0,la=V.getAttrCta(S,ha,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):(ka=!0,la=V.getAttrCta(S,ha,"_self","js-install-calc",{layerTarget:"eipPopup"},"")));Q.calculator={hasComponent:ka,emiAttr:la};P.emiDraw(Q)}I=d.util;X=M.buyingToolOptOffer;"Y"===$("#typeux2025").val()&&(X=M.buyingToolOptOfferText);t=$(M.buyingToolCalculate).find(".js-install-calc");z=X.find('a[data-target-popup\x3d"eipPopup"]');
X=X.find('a[data-target-popup\x3d"eipEEPopup"]');I=I.getEmiUrl(d,M);z.attr("href",I);X.attr("href",I);t.attr("href",I);d.util.totalReinit(d,M);d.util.gpHybrisGlobalEndPoint(d,M);G(d,M);d.util.clickEventListener(d,M);window.sg.components.PDbuyingToolNew.reInit()}}}function G(d,M){var t=d.drawObj,z=t.wishList,I=$.cookies.get("jwt_"+d.countryIsoCode,{domain:".samsung.com"}),X=d.stockLevelStatus,V=d.proudctPriceInfo.salePrice,P=commonLoginCheck(),S=d.apiDomain,Q=d.view,ha=d.util;z.stockLevelStatus=X;
z.price=V;z.moCode=d.shopSkuCode?d.shopSkuCode:d.modelCode;z.moName=d.modelName;z.labelText=Granite.I18n.get("add wishlist")+" : "+d.modelName;z.targetId="#wishlist-popup";z.contentWrapperClass="NOORDER"===X||"LEARNMORE"===X?"js-btn-wishlist js-not-for-sale-wishlist tg-add-wishlist js-learnmore":V?P?"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";z="";$("#shopParmLang").val()&&
(z="\x26lang\x3d"+$("#shopParmLang").val());P?$.ajax({url:S+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productCode\x3d"+d.modelCode+z,type:"GET",dataType:"json",timeout:2E4,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(ka){var la=d.drawObj.wishList;ka&&"My Wishlist"===ka&&(la.labelText=Granite.I18n.get("Remove wishlist")+" : "+d.modelName,la.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",
la.isSelected="true")},error:function(ka){},complete:function(){var ka=d.util;d.view.productWishListDraw(d.drawObj);ka.settingWishlistTagging(d,M)}}):(Q.productWishListDraw(t),ha.settingWishlistTagging(d,M));if(null===I||""===I)return!1}function u(d,M,t,z){var I=d.drawObj,X=d.siteCode;if(z){k(d,M,t);"pe"!=X&&"mx"!=X||n(d,M,t);("fr"==X&&d.hasRentalInstallment||"fr"!=X)&&p(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);
d.util.settingPriceCta(d.hasPriceCta,d,M,d.currentUrl);"tr"==X?(z=t.apiData[d.modelCode],void 0!=z.omniChannelFlag&&z.omniChannelFlag?w(d,M,t):$(M.buyingToolOptCheckDealerStock).remove()):$(M.buyingToolOptCheckDealerStock).remove();if("cn"==X){z=t.apiData[d.modelCode];var V=d.apiDomain,P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():X,S=[];z.availableCoupons&&null!=z.availableCoupons&&0<z.availableCoupons.length&&(z.availableCoupons.forEach(function(Q){S.push(Q.code)}),$.ajax({url:V+"/tokocommercewebservices/v2/"+
P+"/users/current/coupons?couponCodes\x3d"+S,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(Q,ha,ka){if(200==ka.status&&null!=Q&&Q&&Q.data.coupons){Q=Q.data.coupons;var la=(new Date).toISOString();Q=Q.filter(function(ua){return ua.endDate>=la});ha=[];Q&&2<=Q.length?(ha=Q.sort(function(ua,ya){return new Date(ya.startDate)-new Date(ua.startDate)}),product_coupon.init(ha),pd_hybris_coupon_popup.init(ha)):Q&&1==Q.length&&(ha=Q,product_coupon.init(ha),
pd_hybris_coupon_popup.init(ha))}},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();h(d,M,t)}function p(d,M,t){var z=
d.apiDomain,I=d.siteCode,X=d.modelCode,V="";$("#shopParmLang").val()&&(V="\x26lang\x3d"+$("#shopParmLang").val());z=z+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/servicesv2/leasingInfoV2?productCode\x3d"+X+V;"true"!==$("#isEppPage").val()||"pe"!==I&&"cl"!==I||(z=$("#storeWebDomain").val()+"/"+d.siteCodeWithEpp+"/servicesv2/nocache/leasingInfo?productCode\x3d"+X);t.finishedAPIList.leasing=!1;X="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?
{withCredentials:!0}:{};$.ajax({url:z,type:"GET",dataType:"json",cache:!0,xhrFields:X,crossDomain:!0,timeout:2E4,success:function(P){if(P&&0<P.length){var S=!1,Q=-1,ha=-1;!0===d.hasRentalInstallment&&"nl"==I&&"nl"===d.siteCode&&P&&0<P.length&&P[0]&&P[0].months&&W(P,d,M,t);P=$jscomp.makeIterator(P);for(var ka=P.next();!ka.done;ka=P.next())if(ka=ka.value,"UPGRADE"!==ka.paymentModeType.toUpperCase()||S)"LEASING"===ka.paymentModeType.toUpperCase()&&(ka.monthly&&-1===Q&&(Q=parseFloat(ka.monthly)),"nl"==
I?(ka.months&&-1===ha&&(ha=parseInt(ka.months)),"nl-evollisPaymentMode"===ka.paymentModeCode&&ka.months&&ka.monthly&&ka.interest&&parseInt(ka.months)>=ha&&(t.commonModel.price.leasingInfo.monthlyRate=ka.monthly,t.commonModel.price.leasingInfo.tenureVal=ka.months,t.commonModel.price.leasingInfo.interest=ka.interest,t.commonModel.price.leasingInfo.upfront=ka.upfront,t.commonModel.price.leasingInfo.paymentModeCode=ka.paymentModeCode,ha=parseInt(ka.months))):ka.months&&ka.monthly&&0===parseFloat(ka.interest)&&
parseFloat(ka.monthly)<=Q&&(t.commonModel.price.leasingInfo.monthlyRate=ka.monthly,t.commonModel.price.leasingInfo.tenureVal=ka.months,t.commonModel.price.leasingInfo.interest=ka.interest,t.commonModel.price.leasingInfo.upfront=ka.upfront,t.commonModel.price.leasingInfo.paymentModeCode=ka.paymentModeCode,Q=parseFloat(ka.monthly)),oa(d,M,t));else{d.eupData.salePrice=ka.totalCost;d.eupData.monthlyPrice=ka.monthly;d.eupData.months=ka.months;S=d;var la=t,ua=S.childCheckList,ya=S.eupData,sa=la.commonModel.upgradeData,
Ma=S.pdUpgradeUseYn;ka=S.util;var pa=S.pdUpgradeLearnMoreUrl,a=S.pdProductType;sa.hasData&&(S.upgradeEligible=!0,"Y"===Ma&&sa.sku&&(sa=sa.sku,ua.push(sa),S.upgradeFlag=!0,ya.displayName=la.commonModel.product_display_name,ya.sku=sa));ua=la="";Ma="_self";var c="",m="javascript:;",g={};ya={};sa={};S.upgradeFlag&&("uk"===N?pa&&(c=Granite.I18n.get("Learn more"),m=pa,Ma="_blank"):"de"===N&&(c=Granite.I18n.get("Learn more"),g.layerTarget="upgradeLearnMorePopup"),la=Granite.I18n.get("Add Samsung Upgrade Program"),
ua="uk"===N?"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."),ya={"class":"cm-s-popup-opener",text:Granite.I18n.get("YES"),layerTarget:"upgradePopup"},
sa={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"});ka=ka.getAttrCta(c,m,Ma,"",g,"");S.drawObj.upgrade={hasComponent:S.upgradeFlag,isEmbededType:!1,isNotEmbededType:!0,title:la,learnMoreCta:ka,description:ua,yesAttr:ya,noAttr:sa,embedData:{}};S.upgradeFlag&&buyingPdEup.setTncUpgrade();S=!0}P=d.siteCode;Q=d.drawObj;ha=d.view;ka="be"===P||"be_fr"===P||"nl"===P||"fr"===P;P=Granite.I18n.get("Lease");S=Granite.I18n.get("Purchase");ka&&(ka=
t.commonModel.price.leasingInfo.upfront,pa=t.commonModel.price.leasingInfo.tenureVal,a=t.commonModel.price.leasingInfo.monthlyRate,la=t.commonModel.price.leasingInfo.paymentModeCode,ua=!1,""!==ka&&""!==pa&&""!==a&&(ua=!0),Q.between={hasComponent:ua,purchase:{text:S},nonPurchase:{text:P,tenureUnit:pa,tenureValue:0,monthlyValue:a,paymentValue:ka,paymentModeCode:la}},ha.betweenDraw(Q))}},error:function(P){},complete:function(){t.finishedAPIList.leasing=!0;h(d,M,t)}})}function v(d,M,t){if(t.commonModel.warrantyData.hasData){var z=
d.warrantyFlag=!0,I=d.pdProductType,X=d.warrantyLearnMoreUrl,V=d.util,P=d.view,S=d.drawObj,Q=Granite.I18n.get("Extended Warranty"),ha="",ka="_self",la="",ua="javascript:;",ya={},sa={},Ma={},pa={};z&&($(M.buyingToolOptWarranty.get(0)).addClass("has-component"),X&&(la=Granite.I18n.get("Learn more"),ua=X,ka="_blank"),"de"!==N||"TV"!=I&&"ETC"!=I?ha=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."):
(Q=Granite.I18n.get("Garantieverl\u00e4ngerung"),ha="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"},ya=V.getAttrCta(la,ua,ka,"",sa,""));S.warranty={hasComponent:z,title:Q,learnMoreCta:ya,description:ha,yesAttr:Ma,noAttr:pa,subText:""};
d.finalWarrantyList=t.commonModel.warrantyData.skuData;P.productAddOnWarranty(S)}}function F(d,M,t){if(t.commonModel.warrantyVdData.hasData){t=d.useWarrantyVd;var z="",I="_blank",X="",V=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,P=["de"].includes(N)?!0:!1;"de"==N?z="https://www.samsung.com/de/offer/garantieverlaengerung":"mx"==N?V?(I="_self",X="hubbleCareinfoPopup"):z="https://www.samsung.com/mx/support/samsung-care-plus-da":"fr"==N?z="https://www.samsung.com/fr/shop-faq/extensions-de-garantie/":
"cn"==N?z="https://www.samsung.com.cn/offer/ce-extended-warranty/":"ph"==N?z="https://www.samsung.com/ph/offer/samsung-care-plus-consumer-electronics/":"id"==N?z="https://images.samsung.com/is/content/samsung/assets/id/offer/2026/5/tnc/Syarat-dan-Ketentuan-Program-Care-plus-mei-2026.pdf":"cz"==N?z="https://www.samsung.com/cz/support/warranty/":"sk"==N?z="https://www.samsung.com/sk/support/warranty/":"in"==N?z="https://www.samsung.com/in/support/warranty/":"lt"==N?z="https://www.samsung.com/lt/support/warranty/":
"lv"==N?z="https://www.samsung.com/lv/support/warranty/":"ee"==N?z="https://www.samsung.com/ee/support/warranty/":"pl"==N?z="https://www.scplus.samsung.pl/":"hr"==N?z="https://www.samsung.com/hr/support/warranty/":"si"==N&&(z="https://www.samsung.com/si/support/warranty/");V=d.view;var S=d.drawObj,Q=d.ceTradeUpPopup.productCategoryGroup,ha=Granite.I18n.get("Extended Warranty"),ka="",la={},ua={},ya={};t&&($(M.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),"ee"==N?la={learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),
learnMoreHref:z,learnMoreTarget:I,learnMoreTargetPopup:X}:P||(la={learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:z,learnMoreTarget:I,learnMoreTargetPopup:X}),ha=Granite.I18n.get("VD_Extended Warranty_Title"),ka=Granite.I18n.get("VD_Extended Warranty_Description"),"mx"==N&&"da"==Q&&(ha=Granite.I18n.get("DA_Extended Warranty_Title"),ka=Granite.I18n.get("DA_Extended Warranty_Description")),ua={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},ya={text:Granite.I18n.get("VD_Extended Warranty_NO")},
"mx"==N&&0<$.grep([{category:"04010000",name:"TVs"},{category:"04020000",name:"Lifestyle TVs"},{category:"04040000",name:"Business TVs"}],function(sa){return sa.category==d.categoryTypeCode}).length&&(ha=Granite.I18n.get("VD_Extended Warranty_Title {0}"," ").replace("  ",""),la.learnMoreHref="https://www.samsung.com/mx/support/samsung-care-plus-tv/"));S.warrantyVd={hasComponent:t,title:ha,learnMoreCta:la,description:ka,yesAttr:ua,noAttr:ya,subText:""};V.productAddOnWarrantyVd(S)}}function W(d,M,t,
z){t=M.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,P){return V.months>P.months?-1:V.months<P.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",$(".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=z.commonModel.price.salePrice.value?currencyCommaExcep(z.commonModel.price.salePrice.value,t).replace(".",""):currencyCommaExcep(z.commonModel.price.msrpPrice.value,t).replace(".","");z="";z='\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'+
X+'\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";
$("#rentalInstallmentFinancingTable").html(z);$("#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(),
M[0].totalCost&&(I=currencyCommaExcep(parseFloat(M[0].totalCost).toFixed(2),t).replace(".","")),X=z.commonModel.price.salePrice.value?currencyCommaExcep(z.commonModel.price.salePrice.value,t).replace(".",""):currencyCommaExcep(z.commonModel.price.msrpPrice.value,t).replace(".",""),z="",z='\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'+
X+'\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",
$("#rentalInstallmentFinancingTable").html(z),$("#rentalInstallmentFinancing").show())}function aa(d,M,t){var z=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,z.settingTradeInDraw({},d,M,X)):!d.tradeInFlag||"uk"===N&&"CE"===d.tradeInType||(M=$("#tempTitle").val(),(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()?((new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein"),
bc_common_tradeIn.init()):"ro"===N&&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"!==N||"rf"!==t&&"wm"!==t&&"ac"!==t||(M=t),(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("ce-tradeup."+M)),window.CeTradeUpPopup.init(d.modelCode)))}}
function x(d,M,t){var z=d.siteCode,I=d.drawObj,X=d.stockLevelStatus,V=I.delivery,P=d.deliveryYN,S=$.cookies.get("HA-Deeplink-Zipcode",{domain:".samsung.com"}),Q=d.util,ha=d.pdPackageYn,ka=d.drawObj.delivery;if("in"===N){var la=d.drawObj.delivery.time;t=t.apiData[d.modelCode];if(t.deliveryModes&&0<t.deliveryModes.length){var ua=t.deliveryModes,ya=0;t=[];for(var sa=[],Ma=0;Ma<ua.length;Ma++){var pa=ua[Ma];pa.deliveryStandard&&pa.longText&&("SDD"===pa.deliveryStandard||"NDD"===pa.deliveryStandard)&&
(ya++,"SDD"===pa.deliveryStandard&&t.push(pa),"NDD"===pa.deliveryStandard&&sa.push(pa))}0<ya&&null!==la&&(ua=la.split("GMT")[0].trim().slice(-8),la=Number(ua.split(":")[0])+5,ya=Number(ua.split(":")[1])+30,59<ya&&(ya-=30,la+=1),2>String(ya).length&&(ya="0"+String(ya)),2>String(la).length&&(la="0"+String(la)),ua={},la=Number(String(la)+String(ya)),la<Number(1E3)?0<t.length?ua=t[0]:0<sa.length&&(ua=sa[0]):la>=Number(1E3)&&0<sa.length&&(ua=sa[0]),ua&&(ka.priorityDeliveryText=ua.longText,ua.longDescription&&
(ka.priorityDeliveryTooltip=ua.longDescription.replaceAll("\n","\x3c/br\x3e")),ka.isPriorityDelivery=!0))}}if("in"===z&&!ha&&"10020000"!==d.categoryTypeCode||"us"===z&&P)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"===z?V.inputAttr.maxlength="5":"us"===z?(V.inputAttr.maxlength="5",S&&(V.inputAttr.value=S,d.view.deliveryDraw(I),Q.deliveryGetApiData(d,M))):
(V.ctaClass="cta--disabled",V.inputAttr.maxlength="6"),"NOORDER"===X||"OUTOFSTOCK"===X)V.labelClass="text-field--disabled",V.ctaClass="cta--disabled",V.inputAttr.disabled="true"}function T(d,M){var t,z;return $jscomp.asyncExecutePromiseGeneratorProgram(function(I){if(1==I.nextAddress)return t=d.stockLevelStatus,(z=$.cookies.get("deliveryPincode",{domain:".samsung.com"}))?I.jumpTo(2):I.yield(window.flutter_inappwebview.callHandler("getPinCode"),3);2!=I.nextAddress&&(z=I.yieldResult);z&&z.toString().replace(/[^0-9]/g,
"")&&(d.drawObj.delivery.inputAttr.value=z,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,z){d.drawObj.delivery.time=z.getResponseHeader("Date")}})}function w(d,M,t){var z="true"===$("#isEppPage").val()?d.apiDomain:$("#storeDomain").val(),I=d.siteCode,X=d.drawObj,V=!1,P="true"===$("#isEppPage").val()?{withCredentials:!0}:{},S=new Promise(function(ha,
ka){$.ajax({url:z+"/tokocommercewebservices/v2/"+I+"/countries/"+I+"/regions?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:P,crossDomain:!0,timeout:2E4,success:function(la){la&&void 0!=la.regions?ha(la):ha(null)},error:function(la){ha(null)}})}),Q=new Promise(function(ha,ka){$.ajax({url:z+"/tokocommercewebservices/v2/"+I+"/countries/"+I+"/regionsPinned?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:P,crossDomain:!0,timeout:2E4,success:function(la){la&&
void 0!=la.regions?ha(la):ha(null)},error:function(la){ha(null)}})});Promise.all([S,Q]).then(function(ha){var ka=ha[0],la=ha[1];if(null!=ka&&null!=ka.regions&&0<ka.regions.length){ka=ha[0].regions;if(null!=la){la=ha[1].regions;var ua=0;la.forEach(function(ya){var sa=ka.findIndex(function(pa){return ya.isocodeShort==pa.isocodeShort}),Ma=ka[sa];ka.splice(sa,1);ka.splice(ua,0,Ma);ua++})}V=!0;ha=Granite.I18n.get("Select city");X.checkDealerStock={hasComponent:V,selectCity:ha,dataList:ka};d.view.checkDealerStockDraw(d.drawObj);
h(d,M,t)}})}function 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 n(d,M,t){var z="true"===$("#isEppPage").val()?d.apiDomain:$("#storeWebDomain").val(),I="true"===$("#isEppPage").val()?d.siteCodeWithEpp:d.siteCode,X=d.modelCode;t.finishedAPIList.stocklevel=!1;$.ajax({url:z+"/tokocommercewebservices/v2/"+I+
"/products/stockinfo?productCodes\x3d"+X,type:"GET",cache:!0,crossDomain:!0,dataType:"json",timeout:2E4,success:function(V,P,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")))},error:function(V,P,S){},complete:function(){t.finishedAPIList.stocklevel=!0;h(d,M,t)}})}function k(d,M,t){$("#categorySubTypeCode").val();wa(d,M,t);var z=t.apiData[d.modelCode];if(z){z.stock&&(t.commonModel.stockLevelStatus=z.stock.stockLevelStatus,"lowStock"==z.stock.stockLevelStatus&&(t.commonModel.stockLevelStatus="INSTOCK"));z.price&&(t.commonModel.price.msrpPrice.value=z.price.value,t.commonModel.price.msrpPrice.formatted_value=
z.price.formattedValue,"bg"===N&&z.price.currencyIso&&$("#priceCurrency").val().toLowerCase()!==z.price.currencyIso.toLowerCase()&&(d.priceCurrency=z.price.currencyIso,$("#priceCurrency").val(z.price.currencyIso)));d.useHotDealBadge&&null!=z.merchFlags&&0<z.merchFlags.length&&z.merchFlags.forEach(function(ya,sa){ya.code&&(d.merchText=ya.code)});if(d.isNewElementLowestWasPrice&&z.lowestWasPrice){var I=z.lowestWasPrice?z.lowestWasPrice.value:0;if(z.promotionPrice){if(I<=z.price.value&&I>z.promotionPrice.value||
("si"==N||"hr"==N||"lv"==N||"lt"==N||"ee"==N)&&I>z.promotionPrice.value)t.commonModel.price.msrpPrice.value=z.lowestWasPrice.value,t.commonModel.price.msrpPrice.formatted_value=z.lowestWasPrice.formattedValue,d.isNewElementLowestWasPriceSetting=!0}else("pl"==N||"si"==N||"hr"==N||"lv"==N||"lt"==N||"ee"==N)&&I>z.price.value&&(t.commonModel.price.salePrice.value=z.price.value,t.commonModel.price.salePrice.formatted_value=z.price.formattedValue,t.commonModel.price.msrpPrice.value=z.lowestWasPrice.value,
t.commonModel.price.msrpPrice.formatted_value=z.lowestWasPrice.formattedValue,d.isNewElementLowestWasPriceSetting=!0),I<=z.price.value&&(t.commonModel.price.msrpPrice.value=z.lowestWasPrice.value,t.commonModel.price.msrpPrice.formatted_value=z.lowestWasPrice.formattedValue)}z.promotionPrice&&(t.commonModel.price.salePrice.value=z.promotionPrice.value,t.commonModel.price.salePrice.formatted_value=z.promotionPrice.formattedValue);z.frequentPrice&&"fr"==N&&(d.hasFrequentPrice=!0,t.commonModel.price.frequentPrice.value=
z.frequentPrice.value,t.commonModel.price.frequentPrice.formatted_value=z.frequentPrice.formattedValue);z.backOrderMessage&&(d.backOrderMessage=z.backOrderMessage);z.shippingETA&&(d.shippingMessage=z.shippingETA);if("nl"==N||"be"==N||"be_fr"==N)z.msrpPrice?(t.commonModel.price.listPrice.value=z.msrpPrice.value,t.commonModel.price.listPrice.formatted_value=z.msrpPrice.formattedValue):z.promotionPrice<z.price&&(t.commonModel.price.listPrice.value=z.price.value,t.commonModel.price.listPrice.formatted_value=
z.price.formattedValue);"true"===$("#isEppPage").val()&&"pl"===N&&z.msrpPrice&&(t.commonModel.price.listPrice.value=z.msrpPrice.value,t.commonModel.price.listPrice.formatted_value=z.msrpPrice.formattedValue);"co"==N&&(z.vatEligible&&!0===z.vatEligible?(d.vatEligible=!0,z.vatFreePrice&&(t.commonModel.price.vatFreePrice.value=z.vatFreePrice.value,t.commonModel.price.vatFreePrice.formatted_value=z.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=!1);"in"===N&&z.salesPitch&&(d.proudctPriceInfo.salesPitch=z.salesPitch);z.variablePrice&&(d.giftCard.maxPrice=z.variablePrice.priceRange.maxPrice.value,d.giftCard.maxPriceFormatted=z.variablePrice.priceRange.maxPrice.formattedValue,d.giftCard.minPrice=z.variablePrice.priceRange.minPrice.value,d.giftCard.minPriceFormatted=z.variablePrice.priceRange.minPrice.formattedValue,d.giftCard.priceIncrement=z.variablePrice.priceIncrement.value,d.giftCard.priceIncrementFormatted=
z.variablePrice.priceIncrement.formattedValue);d.blockEddDisplay=z.blockEddDisplay&&null!=z.blockEddDisplay?z.blockEddDisplay:"Y";if(z.name||d.displayName)t.commonModel.product_display_name=z.name?z.name:d.displayName;z.salesStatus&&(t.commonModel.emcomFlag="PURCHASABLE"===z.salesStatus.toUpperCase(),d.newHybrisSalesStatus=t.commonModel.emcomFlag);z.backOrderAdditionalText&&(t.commonModel.stockCustomMessage=z.backOrderAdditionalText);d.isLowestInstallmentAmount&&z.lowestInstallmentAmount&&z.lowestInstallmentAmountTenure&&
(t.commonModel.price.lowestInstallmentAmount=z.lowestInstallmentAmount,t.commonModel.price.lowestInstallmentAmountTenure=z.lowestInstallmentAmountTenure,d.isLowestInstallmentInterest&&z.lowestInstallmentInterest&&(t.commonModel.price.lowestInstallmentInterest=z.lowestInstallmentInterest));d.isSECZ&&0!=d.calculateInstallmentPeriodicValue&&0!=d.calculateInstallmentPeriod&&(t.commonModel.price.lowestInstallmentAmount=d.calculateInstallmentPeriod,t.commonModel.price.lowestInstallmentAmountTenure=d.calculateInstallmentPeriodicValue);
"de"===N&&ca(d,M,t);if(("ro"==N||"bg"==N)&&z.informativeTaxes&&0<z.informativeTaxes.length){I=$jscomp.makeIterator(z.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(z.supportedAvailableServices)for(var V=
$jscomp.makeIterator(z.supportedAvailableServices),P=V.next();!P.done;P=V.next())switch(P=P.value,P.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&&
!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:[]}}]}:
t.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:P.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);
window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(d.modelCode);break;case "RENTAL":d.hasRentalInstallment=!0;break;case "POSTAL_CODE":P=d.util;d.deliveryPickup.deliverySiteCode.includes(d.siteCode)&&($(".pd-select-option--delivery-pickup").show(),P.settingDeliveryPickup(d,M));break;case "ABB":b(d,M,t)}var S=z.aemAdditionalInfoTypes;if(S&&0<S.length){V=X=I=!1;P=[];var Q={};S=$jscomp.makeIterator(S);for(var ha=S.next();!ha.done;Q={$jscomp$loop$prop$util$234$355:Q.$jscomp$loop$prop$util$234$355},
ha=S.next()){ha=ha.value;var ka=ha.type?ha.type.toUpperCase():"";if("VOUCHER"===ka)d.voucherdataHybris=ha.aemAdditionalInfos,d.hasVoucher=!0,window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(d.modelCode);else if("GIFT"===ka)d.giftdataHybris=ha.aemAdditionalInfos,d.hasGift=!0,d.hasGiftPage=!0,window.sg.components.dynamic.freeGiftHybrisCommon.getRelatedProductsSimpleInfo(d.modelCode);else if("VDCOMBOMESSAGE"===ka)d.vdcombodataHybris=ha.aemAdditionalInfos;else if("BOGO"===ka&&
ha.aemAdditionalInfos&&0<ha.aemAdditionalInfos.length)for(var la=$jscomp.makeIterator(ha.aemAdditionalInfos),ua=la.next();!ua.done;ua=la.next())ua=ua.value,"skuPrice"===ua.key?t.commonModel.bogoData.bogoPrice=ua.value:"skuCode"===ua.key&&(t.commonModel.bogoData.bogoSku=ua.value);else if("UPGRADE_SKU"===ka&&ha.aemAdditionalInfos&&0<ha.aemAdditionalInfos.length)for(la=$jscomp.makeIterator(ha.aemAdditionalInfos),ua=la.next();!ua.done;ua=la.next())ua=ua.value,"upgradeSKU"===ua.key&&(t.commonModel.upgradeData.sku=
ua.value);else if("SPECIALPRICEVALIDITY"===ka){if("ee"===N||"lv"===N||"lt"===N)for(la=$jscomp.makeIterator(ha.aemAdditionalInfos),ua=la.next();!ua.done;ua=la.next())ua=ua.value,ua.key&&"SPECIALPRICEVALIDITYPERIOD"===ua.key.toUpperCase()&&(d.proudctPriceInfo.salesPitch=ua.value)}else if("PLANIDANDFREEGIFTPROMOTIONUNAVAILABLE"===ka)for(I=!0,la=$jscomp.makeIterator(ha.aemAdditionalInfos),ua=la.next();!ua.done;ua=la.next())ua=ua.value,ua.planIdList&&0<ua.planIdList.length&&P.push.apply(P,$jscomp.arrayFromIterable(ua.planIdList));
else"TRADEINFREEGIFTPROMOTION"===ka?X=!0:"SELLING_WITH_BEZEL"===ka&&(Q.$jscomp$loop$prop$util$234$355=d.util,d.sellingWithBazel="true"==ha.aemAdditionalInfos[0].value?!0:!1,d.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(d.modelCode,function(ya){return function(sa,Ma){var pa=[],a=[],c=[],m=[];Ma&&null!=sa.products&&0<sa.products.length&&$.each(sa.products,function(g,q){var ba,J,fa,qa,ia,Aa="true"===(null==(ba=q.aemAdditionalInfoTypes[0])?
void 0:null==(J=ba.aemAdditionalInfos[0])?void 0:J.value)?null==(fa=q.aemAdditionalInfoTypes[0])?void 0:null==(qa=fa.aemAdditionalInfos[0])?void 0:null==(ia=qa.key)?void 0:ia.toUpperCase():"";ba=""!=q.picture.url?!0:!1;J=""==q.picture.url?!0:!1;fa=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");
g={index:g,modelCode:q.modelcode,name:q.colorName,value:q.colorCode,hasImage:ba,hasNotImage:J,imageUrl:fa,disabledClass:ia};"BEZEL_COLOR"===Aa?pa.push(g):"BEZEL_MODERN"===Aa?a.push(g):"BEZEL_BEVELLED"===Aa?c.push(g):"FREESTYLE_COLOR"===Aa&&m.push(g)});d.noneTypeList=pa;d.modernTypeList=a;d.beveledTypeList=c;d.freestyleList=m;ya.$jscomp$loop$prop$util$234$355.settingBezelOptionDraw(d,M)}}(Q),null,{queryType:"ADD_COLOR_FOR_VD"}));if("true"===$("#isEppPage").val()&&"de"===N&&"TRADEINFREEGIFTPROMOTION"===
ka)for(X=!1,la=$jscomp.makeIterator(ha.aemAdditionalInfos),ua=la.next();!ua.done;ua=la.next())ua=ua.value,ua.key&&"tradeinandfreegiftpromotionunavailable"===ua.key.toLowerCase()&&(tradeinandfreegiftpromotionunavailable=JSON.parse(ua.value));if("de"===N&&"STACKABLETRADEINFREEGIFTPROMOTION"===ka)for(V=!1,ha=$jscomp.makeIterator(ha.aemAdditionalInfos),ua=ha.next();!ua.done;ua=ha.next())ka=ua.value,ka.key&&"stackabletradeinandfreegiftpromotionunavailable"===ka.key.toLowerCase()&&(V=JSON.parse(ka.value))}1==
d.hasGift&&I&&(d.hasPlanIDAndFreeGiftPromotion=!0,d.giftSelectionSkipPlanIdList=P);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,z.stock&&z.stock.warehouse&&null!=z.stock.warehouse&&z.stock.warehouse.forEach(function(ya,sa){ya.isOnline?d.homeDeliveryQty+=ya.stockLevel&&
null!=ya.stockLevel?ya.stockLevel:0:d.walkoutQty+=ya.stockLevel&&null!=ya.stockLevel?ya.stockLevel:0}))}}function A(d,M,t){var z=d.apiDomain,I=d.siteCode,X=d.modelCode,V=d.priceCurrency,P="";$("#shopParmLang").val()&&(P="\x26lang\x3d"+$("#shopParmLang").val());z=z+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+X+"/offers?fields\x3dSIMPLE_INFO"+P;t.finishedAPIList.offers=!1;var S;$.ajax({url:z,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,
success:function(Q,ha,ka){Q&&Q.benefits&&0<Q.benefits.length?(d.isSECZ&&0!==d.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+d.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+d.calculateInstallmentPeriod),ha={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(ha)),"Y"===
$("#typeux2025").val()?D(Q.benefits,d,M,t,"sku"):f(Q.benefits,d,M,t)):d.isSECZ&&0!==d.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+d.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+d.calculateInstallmentPeriod),Q.benefits=[{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}],"Y"===$("#typeux2025").val()?
D(Q.benefits,d,M,t,"sku"):f(Q.benefits,d,M,t));S=Q},error:function(Q,ha,ka){},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);h(d,M,t)}})}function ca(d,M,t){var z={code:"Finanace -Calculator",description:""+Granite.I18n.get("Calculate Finance"),
endDate:null,startDate:null,type:"INSTALLMENT",count:1};da(z,0,d,M,t);t.finishedAPIList.offers||(t.finishedAPIList.offers=!0,h(d,M,t))}function K(d,M,t){var z=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 P=0,S={},Q=0;Q<V;S={$jscomp$loop$prop$apiURL$357:S.$jscomp$loop$prop$apiURL$357,$jscomp$loop$prop$childSet$358:S.$jscomp$loop$prop$childSet$358},Q++){var ha=document.querySelector("#pdChidleModel0"+
(Q+1)),ka=ha.dataset.code;S.$jscomp$loop$prop$childSet$358={code:ka,name:ha.dataset.name,main:ha.dataset.main,displayName:ha.dataset.displayName};d.pdChildModelList.push(S.$jscomp$loop$prop$childSet$358);S.$jscomp$loop$prop$apiURL$357=I+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+ka+"/offers?fields\x3dSIMPLE_INFO"+X;(function(la){return function(ua){$.ajax({url:la.$jscomp$loop$prop$apiURL$357,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,
timeout:2E4,success:function(ya,sa,Ma){if(ya&&ya.benefits&&0<ya.benefits.length){0===P&&(z.childList=[]);z.childList.push({hasComponent:!0,childCode:la.$jscomp$loop$prop$childSet$358.code,displayName:la.$jscomp$loop$prop$childSet$358.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())D(ya.benefits,d,M,t,"child",P);else if(ya=ya.benefits,sa=P,t.comboCount=0,ya&&0<ya.length){Ma=0;for(var pa in ya){var a=ya[pa];d.commonApiModel.fetchNewOfferFormat(a);
var 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)}P=z.childList.length}},error:function(ya,sa,Ma){},complete:function(){ua===V-1&&(t.finishedAPIList.childOffers=!0);h(d,M,t)}})}})(S)(Q)}}function D(d,M,t,z,I,X){X=void 0===X?0:X;var V=$("#siteCode").val(),P=M.isSEBN,S=2;P&&(S=4);if(d&&0<d.length){var Q=0,ha;for(ha in d){var ka=d[ha],la=ka.type?
ka.type.toUpperCase():"",ua=$.trim(ka.offerText||""),ya=$.trim(ka.title||"");""!=ya||P||(ya=$.trim(ka.description||""));$.trim(ka.linkText||"");$.trim(ka.url||"");var sa=!1;"INSTALLMENT"!==la&&("uk"===V||"in"===V?""!==ya&&""!==ua&&(sa=!0,"in"===V&&"LIVE_DEMO"===la&&(sa=!1)):""!==ya&&(sa=!0));sa?(Q+=1,Q<=S&&("child"===I?y(ka,X+""+Q,M,t,z,"child",X):y(ka,ha,M,t,z))):"child"!=I&&"INSTALLMENT"===la&&da(ka,ha,M,t,z)}"child"===I&&0===Q&&M.drawObj.offer.childList.splice(X)}}function f(d,M,t,z){z.comboCount=
0;var I=M.drawObj.offer;if(d&&0<d.length){I.totalCnt=d.length;var X=0,V;for(V in d){var P=d[V];M.commonApiModel.fetchNewOfferFormat(P);var S=P.type?P.type.toUpperCase():"";if("COMBO"===S)X+=1,z.finishedAPIList.comboAPIFlag=!1,z.comboCount++,M.commonApiModel.callRelatedAndSearch(M.modelCode,E,{sharedObj:M,promotion:P,newbirsObj:z,selectorObj:t,index:V},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===S){X+=1;S=V;var Q=M,ha=Q.siteCode,ka=Q.drawObj.offer,la=Q.financingUrl,ua=U(P,Q).iconAlt,
ya="offer-emi emi-index-"+S,sa=[];Q.financingEligible=!0;la&&(Q.emiCalculatorUrl=la);P.description&&sa.push(P.description);if(0<sa.length){var Ma=la=null,pa=null;"id"!==ha&&"ee"!==ha&&"lt"!==ha&&"lv"!==ha&&"pl"!==ha||!P.description||(la=P.description);if("in"===ha||"uk"===ha||"lt"===ha||"id"===ha||"lv"===ha||"ee"===ha||"pl"===ha||"hu"===ha||"ro"===ha||"bg"===ha||"ua"===ha||"ph"===ha||"sg"===ha||"my"===ha||"nz"===ha||"sk"===ha||"cz"===ha||"cn"===ha||"co"===ha||"cl"===ha||"mx"===ha||"kz_kz"===ha||"kz_ru"===
ha)for(Q.promotionFinancingFlag=!0,Q=0;Q<sa.length;Q++){var a=sa[Q].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>a.indexOf("\x3ca")?"in"===ha?(Ma=a,pa={label:Granite.I18n.get("Learn more"),labelAnalytics:a.toLowerCase().replace(/"/g,"")}):(pa={labelAnalytics:a.toLowerCase().replace(/"/g,"")},pa.label="id"===ha||"ee"===ha||"lt"===ha||"lv"===ha||"pl"===ha?Granite.I18n.get("Learn more"):a):Ma=a}else Ma=sa.join("");ka.promotionFinance.push({offerIndex:S,title:"finance",hasItem:!0,item:{contentWrapperClass:ya,
iconAttr:{alt:ua},description:{text:la,hasDescription:null!=la},emiText:Ma,cta:pa,hasCta:null!=pa},newFormat:P.newFormat})}}else"BOGO"===S?(X+=1,C(P,V,M,t,z)):S||"cn"===N&&("cn"!==N||P.benefitGroup)||(X+=1,R(P,V,M,t,z))}3<X&&(I.isViewMore=!0)}}function C(d,M,t,z,I,X,V){z=t.drawObj.offer;"child"===(void 0===X?"product":X)&&(z=t.drawObj.offer.childList[void 0===V?0:V]);V=d.image&&d.image.url?d.image.url:"";X=t.priceCurrency;var P=t.pdTimeformatFront;t=t.util.getImgAttr(V,V,d.image&&d.image.altText?
d.image.altText:"",{classWapper:"image__main responsive-img"});V=[];var S="";d.description&&V.push({text:d.description});d.startDate&&d.endDate&&(S=P?dateFormat(d.startDate.split("T")[0],P)+" ~ "+dateFormat(d.endDate.split("T")[0],P):d.startDate.split("T")[0]+" ~ "+d.endDate.split("T")[0]);var Q=P="";if(I=I.commonModel.bogoData.bogoPrice)P=currencyComma(I,X),"nl"!==N&&"be"!==N&&"be_fr"!==N&&(Q=Granite.I18n.get("Save {0}",P));X=currencyComma(0,X);"true"===$("#isEppPage").val()&&"pl"===N&&(Q=P="");
d={offerIndex:M,title:"bogo",hasItem:!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:P,save:Q,now:X}},newFormat:d.newFormat};z.bogo=d}function E(d,M,t){var z=t.index;if(z){if(null==z||""==z)z=0}else z=0;M=t.sharedObj;var I=M.drawObj,X=M.comboFlag=!0,V=I.offer.combo,P=M.util,S=M.view,Q=t.promotion,ha=M.pdTimeformatFront,ka=U(Q,M),la=t.selectorObj;t=t.newbirsObj;var ua=
M.siteCode,ya="",sa="";X&&(ka.promoIconFlag&&(sa=ka.iconImgName),X=[],Q.description?X.push({text:Q.description}):X.push({text:Granite.I18n.get("Select combo bundle option")}),ka={layerTarget:"shopComboPopup"},ka.comboIdx=M.globalComboData.length,P=P.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",ka,""),Q.startDate&&Q.endDate&&(ya=ha?dateFormat(Q.startDate.split("T")[0],ha)+" ~ "+dateFormat(Q.endDate.split("T")[0],ha):Q.startDate.split("T")[0]+" ~ "+Q.endDate.split("T")[0],
"id"===ua&&(ya=Q.startDate.split("T")[0]+" ~ "+Q.endDate.split("T")[0])),z={offerIndex:z,title:"compoBundle",comboIndex:M.globalComboData.length,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:sa,description:{hasDescription:!0,main:X,date:ya},learnMoreCta:P},newFormat:Q.newFormat},V.push(z));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);h(M,la,t)}function U(d,M){var t=M.promotionImgType?M.promotionImgType.split(","):[];M="";var z=!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){z=!0;break}return{iconAlt:M,promoIconFlag:z,iconImgName:I}}function R(d,M,t,z,I,X,V){z=t.drawObj.offer;"child"===(void 0===X?"product":X)&&(z=t.drawObj.offer.childList[void 0===V?0:V]);X=U(d,t);t=X.iconAlt;var P=X.promoIconFlag,S=X.iconImgName;X="offer-promotion promotion-index-"+
M;V=[];I=null;d.description&&V.push(d.description);P&&(I="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+S+".svg");S=null;if(!d.newFormat){P="";for(S=0;S<V.length;S++)P+=V[S].replace("\x3ca","\x3ca target\x3d'_blank'");S=[];S.push({target:"."+X.replace(" ",".")+" .pd-offer__desc",text:P})}z.promotionMessage.push({offerIndex:M,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:X,isIcon:!0,iconAttr:{src:I,alt:t},description:{hasDescription:!0},
rowText:S},newFormat:d.newFormat})}function y(d,M,t,z,I,X,V){X=void 0===X?"product":X;V=void 0===V?0:V;z=t.drawObj.offer;var P=t.isSEBN;I=$("#siteCode").val();var S="offer-promotion promotion-index-"+M;"child"===X&&(z=t.drawObj.offer.childList[V]);t=$.trim(d.offerText||"");X=$.trim(d.title||"");V=$.trim(d.description||"");""!=X||P||(X=V);V=$.trim(d.linkText||"");var Q=$.trim(d.url||""),ha="in"===I&&-1<Q.indexOf(".pdf")?"_blank":"";"uk"!==I&&"in"!==I&&""!==Q&&(V=Granite.I18n.get("Learn more"));var ka=
!1;"uk"===I||"in"===I?""!==X&&""!==t&&(ka=!0):""!==X&&(ka=!0);if(ka){ka=62;""!==V&&""!==Q&&(ka=53);P&&(ka=100);if(X.length>ka){var la=X;X=ellipsize(X,ka)}X=X.replace(/</g,"\x26lt;");X=X.replace(/>/g,"\x26gt;");null!=la&&(la=la.replace(/</g,"\x26lt;"),la=la.replace(/>/g,"\x26gt;"));ka=P&&""!==t?!0:!1;var ua=$.trim(d.startDate||"");d=$.trim(d.endDate||"");P=P&&""!==ua&&""!==d?!0:!1;var ya;ka&&("nl"===I||"be"===I?ya='Bekijk \x3ca href\x3d"'+t+'" target\x3d"_blank"\x3ehier\x3c/a\x3e de actievoorwaarden':
"be_fr"===I&&(ya='Consultez \x3ca href\x3d"'+t+'" target\x3d"_blank"\x3eici\x3c/a\x3e les conditions de l\'offre promotionnelle'));var sa;P&&(sa=Granite.I18n.get("Promotion period: {0} to {1}",[ua,d]));z.promotionMessage.push({offerIndex:M,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:S,offerTitle:X,offerTooltip:la,linkEnabled:""!==V&&""!==Q,linkTarget:ha,linkText:V,linkUrl:Q,hasTCCTA:ka,tcCTAText:ya,hasPeriod:P,periodText:sa}})}}function da(d,M,t,z,I){var X=t.siteCode;z=t.drawObj.offer;
var V=t.financingUrl;I="offer-emi emi-index-"+M;var P=[];t.financingEligible=!0;V&&(t.emiCalculatorUrl=V);d=$.trim(d.description||"");""!==d&&P.push(d);if(0<P.length){V=null;var S=!1,Q=!1,ha=!1,ka=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||"kz_kz"===X||"kz_ru"===X)for(t.promotionFinancingFlag=!0,t=0;t<P.length;t++){var la=
P[t].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");ka=la;0>la.indexOf("\x3ca")&&("in"===X?(Q=!0,V={label:Granite.I18n.get("Learn more")}):"id"===X||"ee"===X||"lt"===X||"lv"===X||"pl"===X?(Q=!0,V={label:Granite.I18n.get("Learn more")}):S=!0)}else ha=!0,ka=P.join("");if(!ha){t=62;Q&&(t=53);if(ka.length>t){var ua=d;ka=ellipsize(ka,t)}null!=ka&&(ka=ka.replace(/</g,"\x26lt;"),ka=ka.replace(/>/g,"\x26gt;"));null!=ua&&(ua=ua.replace(/</g,"\x26lt;"),ua=ua.replace(/>/g,"\x26gt;"))}z.promotionFinance.push({offerIndex:M,
title:"finance",hasItem:!0,item:{contentWrapperClass:I,offerTooltip:ua,emiText:ka,cta:V,hasCta:Q,hasLink:S,hasDesc:ha}})}}function wa(d,M,t){t.commonModel.price={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 z=d.drawObj,I=t.commonModel,X=d.siteCode,V=z.price.priceWrapper,P=d.util,S="";I.stockLevelStatus&&(S=I.stockLevelStatus.toUpperCase(),d.stockLevelStatus=S,d.apiChangeStockStatus=S,z.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="OUTOFSTOCK",z.stockLevelStatus="OUTOFSTOCK"));"pl"===X&&"OUTOFSTOCK"===S||"NOORDER"===S||!I.emcomFlag?(P.disabledOptionElement(M.buyingToolOptTariff,d),P.disabledOptionElement(M.buyingToolOptUpgrade,d),P.disabledOptionElement(M.buyingToolOptOffer,d),P.disabledOptionElement(M.buyingToolOptTradeIn,d),d.accessoryDisabled=!0,V.hasPriceWrapper=!1):V.hasPriceWrapper=!0}
function oa(d,M,t){M=t.commonModel.price.lowestInstallmentAmount;var z=t.commonModel.price.lowestInstallmentAmountTenure;d.isSECZ&&(M=d.calculateInstallmentPeriodicValue,z=d.calculateInstallmentPeriod);var I=t.commonModel.price.lowestInstallmentInterest,X=t.commonModel.price.msrpPrice.value,V=t.commonModel.price.msrpPrice.formatted_value,P=t.commonModel.price.salePrice.value,S=t.commonModel.price.salePrice.formatted_value,Q=t.commonModel.price.leasingInfo,ha=t.commonModel.price.saveText,ka=t.commonModel.price.tradeInPriceText,
la=d.priceCurrency,ua=d.siteCode,ya=t.commonModel.price.vatFreePrice.value,sa=t.commonModel.price.vatFreePrice.formatted_value,Ma=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,la));d.proudctPriceInfo.salePrice=P?P:X;d.proudctPriceInfo.salePriceFormatted=S?S:P?currencyComma(P,la):d.proudctPriceInfo.orignalPriceFormatted;
d.vatEligible&&sa&&(d.proudctPriceInfo.vatFreePrice=ya,d.proudctPriceInfo.vatFreePriceFormatted=sa);Q&&Q.monthlyRate&&(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=Q.monthlyRate,d.proudctPriceInfo.monthlyPriceInfo.tenureVal=Q.tenureVal,d.proudctPriceInfo.monthlyPriceInfo.interest=Q.interest);Ma&&(d.proudctPriceInfo.frequentPrice=Ma,d.proudctPriceInfo.frequentPriceFormatted=pa);d.isLowestInstallmentAmount&&(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=M,d.proudctPriceInfo.monthlyPriceInfo.tenureVal=
z,d.isLowestInstallmentInterest&&(d.proudctPriceInfo.monthlyPriceInfo.interest=I));d.isSECZ&&(d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=M,d.proudctPriceInfo.monthlyPriceInfo.tenureVal=z);ha&&(d.proudctPriceInfo.rowCodeformattedPriceSave=ha);ka&&(d.proudctPriceInfo.salePriceFormatted=ka);if("nl"===ua||"be"===ua||"be_fr"===ua||"true"===$("#isEppPage").val()&&"pl"===ua)M=t.commonModel.price.listPrice.formatted_value,z=d.proudctPriceInfo.orignalPriceFormatted,I=d.proudctPriceInfo.salePriceFormatted,
X=d.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,M&&(d.proudctPriceInfo.listPriceFormatted=deleteCurrency(M,d.priceCurrency).trim(),d.proudctPriceInfo.listPrice=t.commonModel.price.listPrice.value),z&&(d.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(z,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 ea(d,M,t,z,I,X){var V=d.apiDomain,P=d.siteCode,S=z[0],Q=!1,ha="";$("#shopParmLang").val()&&(ha="\x26lang\x3d"+$("#shopParmLang").val());t.finishedAPIList[X]=!1;z=V+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+S+"/**?fields\x3dSIMPLE_INFO"+ha;"in"==d.siteCode&&(z=V+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products?productCodes\x3d"+S+"\x26fields\x3dSIMPLE_INFO"+ha,B(d));V="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&
shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};var ka;$.ajax({url:z,type:"GET",cache:!0,crossDomain:!0,xhrFields:V,dataType:"json",timeout:2E4,success:function(la,ua,ya){"in"==d.siteCode&&la&&(la=la[0]);la&&la.code&&(-1==$.inArray("BROADBAND_PLAN",la.supportedAvailableServices)&&isNotEmpty(tariffData)&&tariffData.BROADBAND_CACHE.returnObject&&tariffData.removeBroadbandCache(),Q=!0,t.apiData[la.code]=la,ka=la.aemAdditionalInfoTypes)},error:function(la,ua,ya){d.newHybrisSalesStatus=!1},complete:function(){t.finishedAPIList[X]=
!0;I(d,M,t,Q);if("in"===P){var la=ka;window.sg.components.productLivedemo.setLivedemoWrapEmpty();window.sg.components.productVideoCarousel.getFireworkApiData(la)}}})}function 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 z="";$("#shopParmLang").val()&&(z=
"\x26lang\x3d"+$("#shopParmLang").val());var I={withCredentials:!0};if(d.isSECZ){var X="";X=d.apiDomain+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+d.modelCode+"/calculateInstallment?fields\x3dDEFAULT"+z;$.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&&O(V,d,M,t)},error:function(V){}})}}function O(d,M,t,z){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<X.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,z.commonModel.price.lowestInstallmentAmount=d[0].periodicValue,z.commonModel.price.lowestInstallmentAmountTenure=d[0].period):1==
d.length&&(M.calculateInstallmentPeriodicValue=d[0].periodicValue,M.calculateInstallmentPeriod=d[0].period,z.commonModel.price.lowestInstallmentAmount=d[0].periodicValue,z.commonModel.price.lowestInstallmentAmountTenure=d[0].period);oa(M,t,z)}function b(d,M,t){var z,I,X,V,P,S,Q,ha,ka,la,ua,ya,sa,Ma;return $jscomp.asyncExecutePromiseGeneratorProgram(function(pa){if(1==pa.nextAddress)return z=d.newAssuredBuyBackList,pa.yield(r(d,M,t),2);I=pa.yieldResult;P=null==(X=I)?void 0:null==(V=X.serviceProductDataGroup)?
void 0:V.serviceProducts[0];if(I.serviceProductDataGroup&&P&&P.serviceProductVariants&&0<P.serviceProductVariants.length){S=P.serviceProductVariants;Q=$jscomp.makeIterator(S);for(ha=Q.next();!ha.done;ha=Q.next())if(ka=ha.value)la=ka.name,ua=ka.code,ya="",ka.priceData&&ka.priceData.value&&(ya=currencyComma(ka.priceData.value,d.priceCurrency)),sa=ka.stock&&ka.stock.stockLevelStatus&&"outofstock"==ka.stock.stockLevelStatus.toLowerCase()?"OOS":"",Ma={index:z.length+1,title:la,priceDisplay:ya,sku:ua,productItem:ka,
stockStatus:sa},z.push(Ma);var a=d.util,c=d.view,m=d.newAssuredBuyBackFlag,g=d.newAssuredBuyBackList,q=Granite.I18n.get("Learn more");a=a.getAttrCta(q,"javascript:;","","",{layerTarget:"assuredBuyBackInfoPopup"},"");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:g,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 z="true"===$("#isEppPage").val()?d.apiDomain:$("#storeDomain").val(),I="?categoryCode\x3dabb\x26provider\x3dABB";I=$("#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:z+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+
"/servicesv2/externalService/"+d.modelCode+I,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!0}).done(function(P){d.newAssuredBuyBackFlag=!0;X(P)}).fail(function(P){V(P)})})}var H=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),N=$("#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:"",tradeInPriceText:"",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,formatted_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 z="";var I=$.cookies.get("estoreSitecode",{domain:".samsung.com"});if("levant"===d.siteCode)z="jo";else if("levant_ar"===d.siteCode)z="jo_ar";else if("n_africa"===d.siteCode)z="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&&(z=I)}d.multistoreSiteCd=z?z:d.siteCode;ea(d,M,t,[d.modelCode],u,"firstNewBrisAPI");h(d,M,t);h(d,M,t)};Z.prototype.callAddToCartCta=function(d,M,t,z,I,X){var V="";if("uk"===N||"au"===N||"cn"===N||"tr"===N||d.useNewAddToCartApi)d.globalServiceInfo&&d.globalServiceInfo.gift&&d.globalServiceInfo.gift.modelCode?V=d.globalServiceInfo.gift:X&&(V={modelCode:X.modelCode});var P=new H.BuyingToolOpAjaxHybris,S=l(d,M,t,z,I),Q=d.isMiniCart,ha={clickDom:d.clickDom,isMiniCart:Q,isContinue:I},ka=d.modelCode,
la="",ua="";z&&(la=-1<d.cartUrl.indexOf("https://")||-1<d.cartUrl.indexOf("http://")?d.cartUrl:d.apiDomain+d.cartUrl,la=na(d),la="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":la,Q&&(ha.cartUrl=la,la="",ua=function(ya,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&&(ka="");I||z||(ua=function(ya,sa,Ma){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(Ma.clickDom)});
"uk"==N||"cn"==N||"tr"==N||d.useNewAddToCartApi?(V&&(S.gift=V),addToCartNewHybris(ka,la,ua,S,ha)):(P.callAddToCartCta(d,M,t,z,I,X),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(ha.clickDom))};Z.prototype.callCheckOutCta=function(d,M,t,z,I,X){var V=new H.BuyingToolOpAjaxHybris,P=l(d,M,t,z,I),S=d.isMiniCart,Q={clickDom:d.clickDom,isMiniCart:S,isContinue:I},ha=d.modelCode,ka="",la="";z||"id"===N&&(z=!0);z&&(ka=-1<d.cartUrl.indexOf("https://")||-1<d.cartUrl.indexOf("http://")?d.cartUrl:
d.apiDomain+d.cartUrl,ka=na(d),ka="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":ka,S&&(Q.cartUrl=ka,ka="",la=function(sa,Ma,pa){pa.isMiniCart&&window.sg.minicart&&!pa.isContinue?(window.sg.minicart.open(pa.cartUrl,d.clickTarget),d.btnClickFlagAddCartContinue=!0):location.href=pa.cartUrl}));I&&(ha="");I||z||(la=function(sa,Ma,pa){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(pa.clickDom)});S=$("#pd-leasing-1").prop("checked");
var ua="be"===N||"be_fr"===N||"nl"===N||"fr"===N,ya=new H.BuyingToolOpAjaxNewbris;ua&&S?ya.callAddToCartCta(d,M,t,z,I,X):"uk"==N||"cn"==N||"tr"==N||d.useNewAddToCartApi?addToCartNewHybris(ha,ka,la,P,Q):(V.callAddToCartCta(d,M,t,z,I,X),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(Q.clickDom))};H.BuyingToolOpAjaxNewbris=Z})();
(function(){function l(){var f="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/"+f+"/tnc?context\x3dSERVICE\x26value\x3dtradeinExcludedPaymentModes\x26lang\x3den_GB\x26curr\x3dGBP",type:"GET",dataType:"json",timeout:2E4,crossDomain:!0,xhrFields:{withCredentials:!0},
async:!0})}function h(f){var C="";$.each(f,function(E,U){U.preselected&&(C||(C=E),C<E&&(C=E))});return C}function G(f){var C={consents:[],product_type:""};C.discounted_sku=f.smcCode;C.modelCode=f.smcCode;C.product_display_name="";C.msrp_price={};C.msrp_price.value=f.price;C.msrp_price.formatted_value="";C.msrp_price.duration="";f.duration&&0<f.duration&&(C.msrp_price.duration=f.duration);C.msrp_price.paymentcycle="";f.paymentCycle&&"monthly"==f.paymentCycle.toLowerCase()&&(C.msrp_price.paymentcycle=
f.paymentCycle.toLowerCase());C.sale_price={};C.sale_price.value=f.promotionPrice?f.promotionPrice:f.price;C.sale_price.formatted_value="";C.sale_price.duration="";f.duration&&0<f.duration&&(C.sale_price.duration=f.duration);C.sale_price.paymentcycle="";f.paymentCycle&&"monthly"==f.paymentCycle.toLowerCase()&&(C.sale_price.paymentcycle=f.paymentCycle.toLowerCase());return C}function u(f,C,E,U){var R=C.siteCode,y=C.priceCurrency,da=$(C.buyingToolOptUpgradeResult).find(".result-price"),wa=C.drawObj,
ra=C.util,oa=C.openPromoTaxParam,ea=C.isHybrisSplitPD,na=C.isHybrisSplitPDTradeIn,L=C.splitPDTradeInSpecial,O=C.splitPDTradeInSpecialMsg,b=C.isMultiTradeIn&&wa.tradeInResult.list?wa.tradeInResult.list:[];$("#categorySubTypeCode").val();var r="hr"===R||"si"===R,H={},N="",Z=0,d=0,M="",t=0,z=0,I=0,X=0,V=!1,P=!1,S=!1,Q=null,ha=null,ka=null,la=null,ua=null,ya=null,sa=null,Ma="",pa=null,a=0,c=null,m=null,g=null,q=null,ba=null,J=0;if(f){S=f.discount&&f.value;var fa=W(f,C,S);V=fa.tradeinDiscountYn;N=fa.modelAndBrand;
M=fa.StrOrignalDisplayPrice;t=fa.orignalDisplayPrice;I=fa.orignalCashBackPrice;X=fa.orignalTotalPrice;d=fa.displayPrice;z=fa.cashBackPrice;Q=fa.priceText;a=fa.enhancedDiscountAmount;J=fa.eventAmountPrice;var qa=f.additionalDiscountFlag||!1;if("ca"===R||"ca_fr"===R){var ia=[];f.displayBrandName&&ia.push(f.displayBrandName);f.displayModelName&&ia.push(f.displayModelName);N=Granite.I18n.get("Your Trade-in")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+ia.join(" | ");d=X;Q=Granite.I18n.get("Total Trade-in")+
"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+currencyComma(X,y);0<t&&(ha=currencyComma(t,y)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")");0<a&&(ka=currencyComma(a,y)+" ("+Granite.I18n.get("Promotional Trade-in Credit")+")")}else if("ae"===R||"ae_ar"===R||"sa"===R||"sa_en"===R){var Aa=[];f.displayBrandName&&Aa.push(f.displayBrandName);f.displayModelName&&Aa.push(f.displayModelName);N=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+Aa.join(" | ");d=0;C.instantDiscount=
"Y"==f.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."),ha=currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")");if(C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(I,y);var Ia=[];f.displayBrandName&&Ia.push(f.displayBrandName);f.displayModelName&&Ia.push(f.displayModelName);var Fa="";f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice));
var Da={index:b.length,count:b.length+1,displayModelName:Ia.join(" | "),discountPriceText:currencyComma(I,y),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,specialInstantDiscountYn:f.specialInstantDiscountYn};-1<C.checkedIndex?(Da.index=C.checkedIndex,b.splice(C.checkedIndex,1,Da)):b.push(Da)}}else if("pk"===R){var Ga=[];f.displayBrandName&&Ga.push(f.displayBrandName);f.displayModelName&&
Ga.push(f.displayModelName);N=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+Ga.join(" | ");if(C.isMultiTradeIn){t=parseFloat(f.value.price);Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,y);Fa="";f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice));var Sa=[];f.displayBrandName&&Sa.push(f.displayBrandName);f.displayModelName&&Sa.push(f.displayModelName);var La={index:b.length,count:b.length+1,displayModelName:Sa.join(" | "),discountPriceText:currencyComma(I,
y),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,specialInstantDiscountYn:f.specialInstantDiscountYn};-1<C.checkedIndex?(La.index=C.checkedIndex,b.splice(C.checkedIndex,1,La)):b.push(La)}}else if("de"===R){f.openPromoTax?P=f.openPromoTax:oa&&(P=oa);C.tradeInSelectPrice=I+t;if(C.isMultiTradeIn){var ma=C.hasStackbleTradeInFreeGiftPromotion;wa.tradeInResult.hasComponent||(ma=!1);ma&&(C.hasGift=
!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,y)+" "+Granite.I18n.get("Upfront discount"),P&&0!==I&&(ha=Granite.I18n.get("Inkl. {0} Tauschpr\u00e4mie | Direktabzug im Warenkorb",
currencyComma(I,y))),ra.hasUpgradeResult&&(Z=parseFloat(da.attr("data-price"))-parseFloat(C.tradeInSelectPrice),da.attr("data-price",Z),$(da).find(".option-result__text").innerHTML=currencyComma(parseFloat(Z/24),y)+" / "+Granite.I18n.get("month")));if(C.isMultiTradeIn){var Oa=[];f.displayBrandName&&Oa.push(f.displayBrandName);f.displayModelName&&Oa.push(f.displayModelName);Fa="";if(f.tradeInSpecialPrice){var Ca=""+Granite.I18n.get("Total Discount");Fa=parseFloat(f.tradeInSpecialPrice);d+=Fa;var Ka=
f.priceInfos;if(0<Ka.length){var Qa="";$.each(Ka,function(xb,db){Qa+=db+"\x3cbr\x3e"});sa=Qa+="("+Granite.I18n.get("Upfront discount",null,null)+")"}}else sa="("+Granite.I18n.get("Upfront discount")+")";var Na={index:b.length,count:b.length+1,displayModelName:Oa.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,discountPriceTextTile:Ca,specialDiscountText:sa,discountPrice:parseFloat(t),specialPrice:Fa,priceinfodesc:Qa,
provider:f.provider,closedDiscountAmount:parseFloat(f.closedDiscountAmount?f.closedDiscountAmount:0)};-1<C.checkedIndex?(Na.index=C.checkedIndex,b.splice(C.checkedIndex,1,Na)):b.push(Na);if(ra.hasUpgradeResult){var Ua=b.reduce(function(xb,db){return xb+parseInt(db.dataPrice)},0);Z=parseFloat(da.attr("data-price"))-parseFloat(Ua);da.attr("data-price",Z);$(da).find(".option-result__text").innerHTML=currencyComma(parseFloat(Z/24),y)+" / "+Granite.I18n.get("month")}}}else if("pl"===R){if(V||(Q=Granite.I18n.get("Total Cashback")+
": "+currencyComma(X,y),Fa="",f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice),Q=Granite.I18n.get("Total Cashback")+": "+currencyComma(parseFloat(X)+parseFloat(f.tradeInSpecialPrice),y),ha="-"+currencyComma(X,y)+" ("+Granite.I18n.get("Old device value")+")",ka="-"+currencyComma(f.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional value")+")"),"instantDiscount"!=f.discountMode&&(d=0)),C.isMultiTradeIn){var Ra="",Va="";f.tradeInSpecialPrice?(Ra=""+currencyComma(parseFloat(X)+parseFloat(f.tradeInSpecialPrice),
y),Q=(f.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(X),y),Va=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(f.tradeInSpecialPrice),y)):(Ra=""+currencyComma(parseFloat(X),y),Q="");var Y=F(" | ",f.displayBrandName,f.displayModelName);f.isGuaranteedTradeIn&&f.tradeInSpecialPrice&&(d=f.tradeInSpecialPrice);var ja=""+Granite.I18n.get("Total Discount"),za={index:b.length,count:b.length+1,displayModelName:Y,
discountPriceText:Ra,discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:Va,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:ja,isGuaranteedTradeIn:f.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(za.index=C.checkedIndex,b.splice(C.checkedIndex,1,za)):b.push(za)}}else if("sk"===R||"cz"===R){if(V||(Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,y),Fa="",f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice),
Q=Granite.I18n.get("Total Discount")+": "+currencyComma(parseFloat(X)+parseFloat(f.tradeInSpecialPrice),y),ha="-"+currencyComma(X,y)+" ("+Granite.I18n.get("Old device value")+")",ka="-"+currencyComma(f.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional value")+")",d=parseFloat(X+f.tradeInSpecialPrice)),"instantDiscount"!=f.discountMode&&(d=0,Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,y))),C.isMultiTradeIn){var Ba="",Ha="";f.tradeInSpecialPrice?(Ba=""+currencyComma(parseFloat(X)+
parseFloat(f.tradeInSpecialPrice),y),Q=(f.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(X),y),Ha=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(f.tradeInSpecialPrice),y)):(Ba=""+currencyComma(parseFloat(X),y),Q="");var va=F(" | ",f.displayBrandName,f.displayModelName);f.isGuaranteedTradeIn&&f.tradeInSpecialPrice&&(d=f.tradeInSpecialPrice);var Ea=""+Granite.I18n.get("Total Discount"),Ja={index:b.length,
count:b.length+1,displayModelName:va,discountPriceText:Ba,discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:Ha,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:Ea,isGuaranteedTradeIn:f.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(Ja.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ja)):b.push(Ja)}}else if("lv"===R||"lt"===R||"ee"===R)f.tradeInSpecialPrice?(c=currencyComma(X,y)+" ("+Granite.I18n.get("Your device trade-in value")+
")",m=currencyComma(f.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional bonus")+")",Q=Granite.I18n.get("Total trade amount")+" : "+currencyComma(X+f.tradeInSpecialPrice,y),d=parseFloat(X+f.tradeInSpecialPrice)):(Q=currencyComma(X,y),d=X),"instantDiscount"!=f.discountMode&&(f.tradeInSpecialPrice?(d=f.tradeInSpecialPrice,Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X+f.tradeInSpecialPrice,y)):(d=0,Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,y))),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,y)+" ("+Granite.I18n.get("Regular exchange discount")+")"),0!==I&&(ha=currencyComma(I,y)+" ("+Granite.I18n.get("Additional exchange discount")+")")),C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,y);var ta=[];f.displayBrandName&&ta.push(f.displayBrandName);f.displayModelName&&ta.push(f.displayModelName);Fa="";f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice));var xa={index:b.length,count:b.length+
1,displayModelName:ta.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(xa.index=C.checkedIndex,b.splice(C.checkedIndex,1,xa)):b.push(xa)}}else if("uk"===R)V||(d=t+I,Q="- "+currencyComma(d,y)+" "+Granite.I18n.get("Upfront discount"));else if("fr"===R){V?(z=t+I,Q=currencyComma(z,y)+" "+Granite.I18n.get("Cashback")):(d=
t+I,Q="- "+currencyComma(d,y)+" "+Granite.I18n.get("Upfront discount"));0!==I&&(pa=Granite.I18n.get("* Includes {0} additional discount",currencyComma(I,y)));C.commonTradein=f.commonTradein;var Xa="";f.tradeInSpecialPrice&&(Xa=parseInt(f.tradeInSpecialPrice));if(C.isMultiTradeIn){var Ta=[];f.displayBrandName&&Ta.push(f.displayBrandName);f.displayModelName&&Ta.push(f.displayModelName);var Pa=""+Granite.I18n.get("Total de remise appliqu\u00e9e");Q=currencyComma(t,y)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil");
var Wa=f.abondementAmount,ab="",Ya=f.spotGuaranteeAmount,Za="";f.spotGuaranteeAmount||f.abondementAmount||f.tradeInSpecialPrice||(Q="");f.spotGuaranteeAmount&&(Za="+"+currencyComma(f.spotGuaranteeAmount,y)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (offre de reprise garantie)"));f.abondementAmount&&(ab="+"+currencyComma(f.abondementAmount,y)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (abondement)"));f.tradeInSpecialPrice&&(sa="+"+currencyComma(parseInt(f.tradeInSpecialPrice),
y)+" "+Granite.I18n.get("de bonus reprise"));var bb={index:b.length,count:b.length+1,displayModelName:Ta.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Xa,discountPriceTextTile:Pa,abondementAmount:Wa,abondementAmountText:ab,spotGuaranteeAmount:Ya,spotGuaranteeAmountText:Za};-1<C.checkedIndex?(bb.index=C.checkedIndex,b.splice(C.checkedIndex,
1,bb)):b.push(bb)}Xa&&(sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Xa,y),X=parseFloat(X)+parseFloat(Xa),d+=Xa)}else if("be"===R||"be_fr"===R||"nl"===R){f.tradeinId=f.tradeinInfo.id;Ca=""+Granite.I18n.get("Total Discount");Q=currencyComma(t,y)+" ("+Granite.I18n.get("Regular Exchange Value")+")";var ib="";f.tradeInSpecialPrice&&(ib=parseInt(f.tradeInSpecialPrice),sa=Granite.I18n.get("Special Discount")+" "+currencyComma(ib,y),d+=ib);if(C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+
" "+currencyComma(t,y);var $a=[];f.displayBrandName&&$a.push(f.displayBrandName);f.displayModelName&&$a.push(f.displayModelName);var pb={index:b.length,count:b.length+1,displayModelName:$a.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,discountPriceTextTile:Ca,specialDiscountText:sa,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,isGuaranteedTradeIn:f.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(pb.index=C.checkedIndex,b.splice(C.checkedIndex,1,pb)):
b.push(pb)}}else if("sk"===R||"cz"===R)f.tradeInSpecialPrice?(c=currencyComma(X,y)+" ("+Granite.I18n.get("Your device value")+")",m=currencyComma(f.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional bonus")+")",Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X+f.tradeInSpecialPrice,y)):Q=currencyComma(X,y),d=0;else if("pe"===R||"co"===R)Q=currencyComma(I,y)+" "+Granite.I18n.get("Cashback"),d=0;else if("mx"===R){var kb=0,gb=0,yb=0;0<f.tradeInAdditionalInfo.length&&($.each(f.tradeInAdditionalInfo,
function(xb,db){"discountAmount"===db.key&&(kb=parseFloat(db.value));"additionalDiscount"===db.key&&(gb=parseFloat(db.value))}),yb=kb+gb,Q=0<kb?currencyComma(kb,y):null,ha=0<gb?currencyComma(gb,y):null);Ma=currencyComma(yb,y)}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 Eb=[];f.displayBrandName&&Eb.push(f.displayBrandName);f.displayModelName&&Eb.push(f.displayModelName);var hb={index:b.length,
count:b.length+1,displayModelName:Eb.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,imeiKey:f.imeiKey,dataId:f.consents,services:f};-1<f.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 Kb=""+Granite.I18n.get("Regular Exchange Value");Q="";var sb=[];f.displayBrandName&&sb.push(f.displayBrandName);f.displayModelName&&
sb.push(f.displayModelName);Fa="";z=I;d=0;f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice),Kb=""+Granite.I18n.get("Total Discount"),Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(z,y),sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Fa,y),d+=Fa,z+=Fa);var qb={index:b.length,count:b.length+1,discountPriceTextTile:Kb,discountPriceText:currencyComma(z,y),displayModelName:sb.join(" | "),dataPrice:d,dataCashBack:I,dataQuoteId:f.tradeinId,dataId:f.consents,imeiKey:f.imeiKey,
services:f,specialDiscountText:sa,discountText1:Q,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(qb.index=C.checkedIndex,b.splice(C.checkedIndex,1,qb)):b.push(qb)}else if("ua"===R)z=f.discount.price.replace(/\u20b4/g,"").trim(),Q=Granite.I18n.get("Approximate estimated cost")+" : "+z+" "+Granite.I18n.get("\u0433\u0440\u043d"),yb=gb=kb=0,0<f.tradeInAdditionalInfo.length&&($.each(f.tradeInAdditionalInfo,function(xb,db){"discountAmount"===db.key&&(kb=parseFloat(db.value));"additionalDiscount"===
db.key&&(gb=parseFloat(db.value))}),0<gb?(yb=kb+gb,d=gb,Q=Granite.I18n.get("Approximate estimated cost ETI")+" : "+currencyComma(yb,y).replace(/\u20b4/g,"").trim()+" "+Granite.I18n.get("\u0433\u0440\u043d"),ha="("+Granite.I18n.get("Estimated value of old device")+": "+(0<kb?currencyComma(kb,y):null)+')\x3cp class\x3d"option-result__text option-result__text-blue"\x3e('+Granite.I18n.get("Instant benefit")+": "+(0<gb?currencyComma(gb,y):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,y),d=0;else if(r){if(Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,y),0<t&&(ha="-"+currencyComma(t,y)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")"),0<a?ka="-"+currencyComma(a,y)+" ("+Granite.I18n.get("Overtrade bonus")+")":f.tradeInSpecialPrice&&(void 0!=b&&(0==b.length||0<b.length&&"0"==C.checkedIndex)&&(X=parseFloat(X)+parseFloat(f.tradeInSpecialPrice)),Q=Granite.I18n.get("Total Discount")+" : "+
currencyComma(X,y),ka="-"+currencyComma(parseFloat(f.tradeInSpecialPrice),y)+" ("+Granite.I18n.get("Special Discount")+")"),pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),d=X,C.isMultiTradeIn){var Fb="",cb="";f.tradeInSpecialPrice?void 0==b||0<b.length&&"0"!=C.checkedIndex?(Fb=""+currencyComma(parseFloat(t),y),Q=""):(Fb=""+currencyComma(parseFloat(X),y),Q=(f.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+
" "+currencyComma(parseFloat(t),y),cb=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(f.tradeInSpecialPrice),y)):(Fb=""+currencyComma(parseFloat(X),y),Q="");var lb=F(" | ",f.displayBrandName,f.displayModelName);f.isGuaranteedTradeIn&&f.tradeInSpecialPrice&&(d=f.tradeInSpecialPrice);var eb=""+Granite.I18n.get("Estimated value of the old device (which is being bought back)"),nb={index:b.length,count:b.length+1,displayModelName:lb,discountPriceText:Fb,discountText1:Q,dataPrice:d,dataCashBack:z,
dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:cb,discountPrice:parseFloat(d),specialPrice:f.tradeInSpecialPrice,discountPriceTextTile:eb,isGuaranteedTradeIn:f.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(nb.index=C.checkedIndex,b.splice(C.checkedIndex,1,nb)):b.push(nb)}}else if("ro"===R||"bg"===R){if(0<a?(Q=currencyComma(parseFloat(X),y),d=X):Q=currencyComma(d,y),"bg"===R){var Zb="eur"===C.priceCurrency.toLowerCase()?v(d):p(d);Q+=" / "+Zb}}else if("jp"===R)f.tradeinId=f.tradeinInfo.id,
g=Granite.I18n.get("Total Cashback amount"),0<J?(q="\x3cdel\x3e"+Granite.I18n.get("Trade-in value")+" : "+currencyComma(I,y)+"\x3c/del\x3e",ba=Granite.I18n.get("Total trade-in value")+" : "+currencyComma(J,y)):ba=Granite.I18n.get("Trade-in value")+" : "+currencyComma(X,y),d=0;else if("cn"===R){var ob=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,y);$.each(f.tradeInAdditionalInfo,function(xb,
db){"vendorDiscount"===db.key&&(ob=db.value)});0!=ob&&(ha=Granite.I18n.get("Trade in discount from partner: Shans")+": "+currencyComma(ob,y),d+=parseFloat(ob));if(C.isMultiTradeIn){var gc=[];f.displayBrandName&&gc.push(f.displayBrandName);f.displayModelName&&gc.push(f.displayModelName);var bc={index:b.length,count:b.length+1,displayModelName:gc.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,discountText2:ha,dataPrice:d,dataTotalPrice:X,dataCashBack:z,dataQuoteId:f.tradeinId,imeiKey:f.imeiKey,
dataId:f.consents,provider:f.provider,services:f};-1<C.checkedIndex?(bc.index=C.checkedIndex,b.splice(C.checkedIndex,1,bc)):b.push(bc)}}else if("tr"==R){var Lb=Granite.I18n.get("Total Cashback"),Nb="",Ob="",Hb=!1,cc=!0;if(V){Nb=""+currencyComma(parseFloat(X),y);if(0==b.length||0==C.checkedIndex)Hb=!0,cc=!1;f.tradeInSpecialPrice?(Nb=""+currencyComma(parseFloat(X)+parseFloat(f.tradeInSpecialPrice),y),Q=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),y),Ob=Granite.I18n.get("Additional value")+
" "+currencyComma(parseFloat(f.tradeInSpecialPrice),y)):(Nb=""+currencyComma(parseFloat(X),y),Q=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),y),Ob=Granite.I18n.get("Additional value")+" "+currencyComma(0,y));ha=""+currencyComma(parseFloat(X),y);ka=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),y);z=X;if(C.isMultiTradeIn){var nc=[];f.displayBrandName&&nc.push(f.displayBrandName);f.displayModelName&&nc.push(f.displayModelName);var oc={index:b.length,count:b.length+
1,displayModelName:nc.join(" | "),discountPriceTextTile:Lb,discountPriceText:Nb,discountText1:Q,discountText2:ha,discountText3:ka,dataPrice:d,dataTotalPrice:X,dataCashBack:z,dataQuoteId:f.tradeinId,imeiKey:f.imeiKey,dataId:f.consents,provider:f.provider,services:f,firstcheck:Hb,othercheck:cc,specialDiscountText:Ob};-1<C.checkedIndex?(oc.index=C.checkedIndex,b.splice(C.checkedIndex,1,oc)):b.push(oc)}}}else if(ea&&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,ha=0<t?Granite.I18n.get("Value to")+" "+currencyComma(X,y)+" "+Granite.I18n.get("include promotion"):Granite.I18n.get("Up to")+" "+currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")","04000000"===$("#categoryGroupCode").val()&&(pa=Granite.I18n.get("Trade-In disclaimer(TV)"));else if("my"===R){yb=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");
ha=""+Granite.I18n.get("Special Discount");var pc=[];f.displayBrandName&&pc.push(f.displayBrandName);f.displayModelName&&pc.push(f.displayModelName);if(f.tradeInSpecialPrice){var rb=parseInt(f.tradeInSpecialPrice);X=parseFloat(X)+parseFloat(rb);0==I&&0<t?d+=rb:0<I&&0==t&&(d=0)}var jb={index:b.length,count:b.length+1,displayModelName:pc.join(" | "),discountPriceText:currencyComma(I,y)+"*",discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:f.tradeinId,dataId:f.consents,services:f};0<f.tradeInAdditionalInfo.length&&
$.each(f.tradeInAdditionalInfo,function(xb,db){"discountAmount"===db.key&&(kb=parseFloat(db.value));"additionalDiscount"===db.key&&(gb=parseFloat(db.value),jb.dataPrice=gb)});yb=kb+gb;jb.discountPriceText=currencyComma(kb,y)+"*";jb.discountText1=0<kb?Q:null;jb.discountPriceText2=gb?currencyComma(gb,y)+"*":null;jb.discountText2=0<gb?ha:null;-1<C.checkedIndex?(jb.index=C.checkedIndex,b.splice(C.checkedIndex,1,jb)):b.push(jb)}else if("vn"===R){pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");
Fa="";f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice));var Gb={index:b.length,count:b.length+1,displayModelName:f.displayModelName,dataPrice:d,dataCashBack:I,dataQuoteId:f.tradeinId,dataId:f.consents,imeiKey:f.imeiKey,services:f,specialDiscountText:sa,discountText1:Q,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(Gb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Gb)):b.push(Gb)}else if("hk"===R||"hk_en"===R){void 0!==f.tradeinTotalAmount&&(Q=" "+Granite.I18n.get("Trade-in discount")+
" : "+currencyComma(f.tradeinTotalAmount,y)+" ( "+Granite.I18n.get("Total Rebate")+" )",0<f.tradeinTotalAmount&&(0<f.tradeinValue&&(ha=currencyComma(f.tradeinValue,y)+" ( "+Granite.I18n.get("Rebate")+" )"),0<f.exclusiveTradeinUnitOffer&&(ka=currencyComma(f.exclusiveTradeinUnitOffer,y)+" ( "+Granite.I18n.get("Extra Trade-in Rebate")+" )"),0<f.extraTradeinOffer&&(la=currencyComma(f.extraTradeinOffer,y)+" ( "+Granite.I18n.get("Designated Used Device Trade-in Rebate")+" )"),0<f.exclusiveChannerTradeinOffer&&
(ua=currencyComma(f.exclusiveChannerTradeinOffer,y)+" ( "+Granite.I18n.get("Online Shop Trade-in Rebate")+" )"),0<f.extraTradeinVoucher&&(ya=currencyComma(f.extraTradeinVoucher,y)+" ( "+Granite.I18n.get("Promo code Trade-in Rebate")+" )")));if(C.isMultiTradeIn){var hc=[],tb=[];f.displayBrandName&&(hc.push(f.displayBrandName),tb.push(f.displayBrandName));f.displayModelName&&(hc.push(f.displayModelName),tb.push(f.displayModelName));var qc="",mb="",ub="",Ib=f.tradeinValue,fb="",zb="",Qb=f.exclusiveTradeinUnitOffer,
Xb="",rc=f.extraTradeinOffer,ic="",vb=f.exclusiveChannerTradeinOffer,wb="",Db=f.extraTradeinVoucher,Yb="",jc=Number(f.gtiPrice),Sb=f.hasGtiPrice,kc=!1;if(void 0!==f.tradeinTotalAmount){qc=""+Granite.I18n.get("Estimated Trade-in Value");mb=ub=Granite.I18n.get("Total Rebate")+" "+currencyComma(f.tradeinTotalAmount,y)+"*";0<f.tradeinTotalAmount&&0<f.tradeinValue&&(fb=zb=Granite.I18n.get("Rebate")+" "+currencyComma(f.tradeinValue,y));if(0<f.exclusiveTradeinUnitOffer||0==f.exclusiveTradeinUnitOffer&&0==
f.extraTradeinOffer)Xb=Granite.I18n.get("Extra Trade-in Rebate")+" "+currencyComma(f.exclusiveTradeinUnitOffer,y);0<f.tradeinTotalAmount&&(0<f.extraTradeinOffer&&(ic=Granite.I18n.get("Extra Trade-in Rebate")+" "+currencyComma(f.extraTradeinOffer,y)),0<f.exclusiveChannerTradeinOffer&&(wb=Granite.I18n.get("Online Shop Trade-in Rebate")+" "+currencyComma(f.exclusiveChannerTradeinOffer,y)),0<f.extraTradeinVoucher&&(Yb=Granite.I18n.get("Promo code Trade-in Rebate")+" "+currencyComma(f.extraTradeinVoucher,
y)));if(Sb&&0<jc){var dc=hc[1].split(", "),lc="("+Granite.I18n.get("Guaranteed Trade-In")+")";-1==dc[0].indexOf(lc)&&(dc[0]+=" "+lc,hc[1]=dc.join(", "));kc=!0;mb=Granite.I18n.get("Total Rebate")+" "+currencyComma(f.tradeinTotalAmount,y)+"*";ub=Granite.I18n.get("Total Rebate")+" "+currencyComma(f.tradeinValue,y)+"*";fb=Granite.I18n.get("Rebate")+" "+currencyComma(f.gtiPrice,y);zb=Granite.I18n.get("Rebate")+" "+currencyComma(f.tradeinValue,y)}}var Mb={index:b.length,count:b.length+1,displayModelName:hc.join(" | "),
displayModelName2:tb.join(" | "),discountPriceText:mb,discountPriceText2:ub,discountText1:"",dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,gtiPrice:jc,hasGtiPrice:Sb,services:f,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:qc,tradeinTotalAmount:f.tradeinTotalAmount,tradeinValue:Ib,tradeinValueText:fb,tradeinValueText2:zb,exclusiveTradeinUnitOffer:Qb,exclusiveTradeinUnitOfferText:Xb,extraTradeinOffer:rc,extraTradeinOfferText:ic,extraTradeinOfferTextShow:ic?
!0:!1,exclusiveChannerTradeinOffer:vb,exclusiveChannerTradeinOfferText:wb,exclusiveChannerTradeinOfferTextShow:wb?!0:!1,extraTradeinVoucher:Db,extraTradeinVoucherText:Yb,extraTradeinVoucherTextShow:Yb?!0:!1,useGtiPriceArea:kc};-1<C.checkedIndex?(Mb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Mb)):b.push(Mb);var Tb=!1;b.forEach(function(xb,db){Tb?xb.useGtiPriceArea=!1:!0===xb.useGtiPriceArea?Tb=!0:!xb.useGtiPriceArea&&xb.hasGtiPrice&&(Tb=xb.useGtiPriceArea=!0)})}d=0}else if(C.isMultiTradeIn){var ec=
[];f.displayBrandName&&ec.push(f.displayBrandName);f.displayModelName&&ec.push(f.displayModelName);Fa="";"sg"===R&&f.tradeInSpecialPrice&&(Fa=parseFloat(f.tradeInSpecialPrice));var Ub="";"au"===R&&(Q=""+Granite.I18n.get("Old device value"),ha=""+Granite.I18n.get("Additional value"),Ca=""+Granite.I18n.get("Total Discount"),f.tradeInSpecialPrice&&0<parseFloat(f.tradeInSpecialPrice)&&(Fa=parseFloat(f.tradeInSpecialPrice)),f.tradeInPrice&&(Ub=parseFloat(f.tradeInPrice)));var Ab={index:b.length,count:b.length+
1,displayModelName:ec.join(" | "),discountPriceTextTitle:Ca,discountPriceText:currencyComma(d,y),dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,services:f,specialDiscountText:sa,discountText1:Q,discountText2:ha,discountAmountPrice:d,discountAmountPriceText:currencyComma(d,y),specialPriceText:currencyComma(Fa,y),discountPrice:parseFloat(d),specialPrice:Fa,tradeInPrice:Ub};"it"==R&&(Ab.discountPriceTextTitle=""+Granite.I18n.get("Valore della prevalutazione"),Ab.discountPriceText=
currencyComma(t+I,y),Ab.dataPrice=t,Ab.dataCashBack=I,0<I?U.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Cashback Result Text"):U.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Discount Result Text"));-1<C.checkedIndex?(Ab.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ab)):b.push(Ab)}else"nz"===R?(N=Granite.I18n.getVar("Trade-in","ux2")+
" : "+N,Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,y),0<a&&(ha="-"+currencyComma(t,y)+" ("+Granite.I18n.get("Your old device value")+")",ka="-"+currencyComma(a,y)+" ("+Granite.I18n.get("Overtrade bonus")+")"),d=X):(0<t&&(ha="ch"===R||"ch_fr"===R?Granite.I18n.get("Up to")+" "+currencyComma(t,y):currencyComma(t,y),"ru"===R||"au"===R||"th"===R?" "!==Granite.I18n.get("Immediate Discount")&&(ha+=" ("+Granite.I18n.get("Immediate Discount")+")"):"vn"===R?(N=null,Q=currencyComma(t,y)+" ("+
Granite.I18n.get("Regular Exchange Value")+") ",ha=null):" "!==Granite.I18n.get("Regular Exchange Value")&&("za"===R&&(ha+="*"),ha+=" ("+Granite.I18n.get("Regular Exchange Value")+")")),0<I&&("th"===R&&0<t||(""!==ha?ka=currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")":ha=currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")")));""!==L&&0<Number(L)&&(sa=currencyComma(L,y),sa=""!==O?sa+(" ("+O+")"):sa+(" ("+Granite.I18n.get("Special Discount")+")"),X=parseFloat(X)+parseFloat(L),Pb=!0);if("sg"===
R&&f.tradeInSpecialPrice){var Vb=parseInt(f.tradeInSpecialPrice);sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Vb,y);X=parseFloat(X)+parseFloat(Vb);d+=Vb;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,y):Granite.I18n.get("Total Benefit")+" : "+currencyComma(X,y);else if("it"===R&&(0<t||0<I)&&(ha=Q=null,0<t)){var Jb=[];f.displayBrandName&&Jb.push(f.displayBrandName);f.displayModelName&&
Jb.push(f.displayModelName);N=Granite.I18n.get("Galaxy Now! Credito Immediato")+" : "+Jb.join(" | ")}}H={hasComponent:!0,displayModelName:N,discountText1:Q,discountText2:ha,discountText3:ka,discountText4:la,discountText5:ua,discountText6:ya,specialDiscountText:sa,description:pa,dataPrice:d,dataCashBack:z,dataQuoteId:f.tradeinId,dataId:f.consents,list:b,tradeinAmountText:c,dealBonusPriceText:m,additionalDiscountFlag:qa,priceAreaTitleText:g,totalCashBackPriceText:ba,imeiKey:f.imeiKey,deletedOriginalCashBackPriceText:q,
contentText:A};"dk"==R||"fi"==R||"se"==R||"no"==R?(H.discountPriceText=currencyComma(d,y),H.discountText2=Granite.I18n.get("Regular Exchange Value")+" "+H.discountPriceText):"mx"==R&&(H.discountPriceText=Ma);if(C.isMultiTradeIn&&0<b.length){("sg"===R||"vn"===R||"id"===R||qa)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(C,H);"tr"==R?(H.dataPrice=b.reduce(function(xb,db){return xb+parseInt(db.dataCashBack)},0),H.dataPrice+=b[0].services.tradeInSpecialPrice):H.dataPrice=b.reduce(function(xb,
db){return xb+parseInt(db.dataPrice)},0);if("cn"==R){var mc=0;$.each(b,function(xb,db){$.each(db.services.tradeInAdditionalInfo,function(sc,Bb){"ticketMoney"===Bb.key&&mc<Bb.value&&(mc=Bb.value)})});H.dataPrice=parseFloat(H.dataPrice)+parseFloat(mc);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Cb=0;$.each(H.list,function(xb,db){$.each(db.services.tradeInAdditionalInfo,function(sc,Bb){"o2oTicketMoney"===Bb.key&&Cb<Bb.value&&(Cb=Bb.value)})});H.dataPrice=parseFloat(H.dataPrice)+
parseFloat(Cb)}}if("kz_kz"===R||"kz_ru"===R)H.dataPrice=f.totalSumPrice;var Wb=Number(H.dataPrice)-Number(C.proudctPriceInfo.salePrice);C.minOrderEntryValue&&(Wb+=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(H.totalAmountText=currencyComma(H.dataPrice,y),0<Wb&&(H.priceOverFlag=!0,H.excessAmount=Wb,H.excessAmountText=currencyComma(Wb,y),H.tenText=currencyComma(C.minOrderEntryValue,
y),"kz_kz"===R||"kz_ru"===R))H.totalAmountText=currencyComma(Number(C.proudctPriceInfo.salePrice)-Number(C.minOrderEntryValue),y)}else H.dataPrice>C.proudctPriceInfo.salePrice&&(H.priceOverFlag=!0);"tr"==R&&(H.dataPrice=0);if("cn"==R){var Rb=0;$.each(H.list,function(xb,db){$.each(db.services.tradeInAdditionalInfo,function(sc,Bb){"ticketMoney"===Bb.key&&Rb<Bb.value&&(Rb=Bb.value)})});H.totalTicketMoney=0;0!=Rb&&(H.totalTicketMoney=Rb,H.totalTicketMoneyText=Granite.I18n.get("Additional Trade in discount from Samsung")+
": "+currencyComma(Rb,y));if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var $b=0;$.each(H.list,function(xb,db){$.each(db.services.tradeInAdditionalInfo,function(sc,Bb){"o2oTicketMoney"===Bb.key&&$b<Bb.value&&($b=Bb.value)})});H.totalO2oTicketMoney=0;0!=$b&&(H.totalO2oTicketMoney=$b,H.totalO2oTicketMoneyText=Granite.I18n.get("O2O special subsidy")+": "+currencyComma($b,y))}}}T.triggerChange(document.querySelector("#pd-trade-in-0"));wa.tradeInResult=H;U.tradeInResultDraw(wa);
ra.totalAfterFunction(C,E)}}function p(f){var C=Math.pow(10,2);f=Number(f)/1.95583;f=Math.round(f*C)/C;return currencyComma(f,"EUR")}function v(f){var C=Math.pow(10,2);f=1.95583*Number(f);f=Math.round(f*C)/C;return currencyComma(f,"BGN")}function F(f,C){for(var E=[],U=1;U<arguments.length;++U)E[U-1]=arguments[U];f=void 0===f?" | ":f;return E.filter(function(R){return R}).join(f)}function W(f,C,E){var U=C.priceCurrency;C=C.isHybrisSplitPD;var R=!1,y="",da="",wa="",ra=0,oa=0,ea=0,na=0,L=0,O="",b=0,
r=[],H=0;f.tradeinDiscountYn&&(R=f.tradeinDiscountYn);f.displayBrandName&&(y=f.displayBrandName,r.push(f.displayBrandName));f.displayModelName&&(da=f.displayModelName,r.push(f.displayModelName));var N=Granite.I18n.get("Your Trade-in")+" : "+r.join(" | ");if("pt"===siteCode)N=Granite.I18n.get("Your Trade-in")+" : "+da;else if("nz"===siteCode||"dk"===siteCode||"fi"===siteCode||"se"===siteCode||"no"===siteCode)N=r.join(" | ");E&&(wa=f.value.price,ra=parseFloat(f.value.price),oa=parseFloat(f.discount.price),
ea=parseFloat(f.discount.total),f.value.enhancedDiscountAmount&&(b=parseFloat(f.value.enhancedDiscountAmount)),f.discount&&f.discount.eventAmountPrice&&(H=parseFloat(f.discount.eventAmountPrice)));R?(L=ra,C||(O="tr"===siteCode?currencyComma(f.discount.price,U)+" "+Granite.I18n.get("Cashback"):"- "+currencyComma(L,U)+" "+Granite.I18n.get("Cashback"))):(na=ra,C||(O="- "+currencyComma(na,U)+" "+Granite.I18n.get("Upfront discount")));return{tradeinDiscountYn:R,displayBrandName:y,displayModelName:da,modelAndBrand:N,
StrOrignalDisplayPrice:wa,orignalDisplayPrice:ra,orignalCashBackPrice:oa,orignalTotalPrice:ea,displayPrice:na,cashBackPrice:L,priceText:O,enhancedDiscountAmount:b,eventAmountPrice:H}}function aa(f,C,E,U){var R=C.priceCurrency,y=0,da=0,wa=null,ra=0,oa=null;f&&(f.discounted_sku&&(f.msrp_price&&(f.msrp_price.value&&(y=parseFloat(f.msrp_price.value)),f.msrp_price.formatted_value||currencyComma(y,R),f.msrp_price.duration&&(ra=f.msrp_price.duration),f.msrp_price.paymentcycle&&(oa=f.msrp_price.paymentcycle)),
f.sale_price&&(da=f.sale_price.value?parseFloat(f.sale_price.value):y,wa=f.sale_price.formatted_value?f.sale_price.formatted_value:currencyComma(da,R),f.sale_price.duration&&(ra=f.sale_price.duration),f.sale_price.paymentcycle&&(oa=f.sale_price.paymentcycle)),0<y&&y!==da&&currencyComma(y-da,R)),C.drawObj.careResult={hasComponent:!0,dataPrice:y,dataSalePrice:da,dataModelName:f.modelName,dataModelCode:f.modelCode,dataId:f.consents,dataPromotionPrice:wa,dataDuration:ra,dataPaymentcycle:oa},C.popupReturnObj&&
setTimeout(function(){T.triggerChange(C.popupReturnObj.get(0))},50),U.careResultDraw(n),w.totalAfterFunction(C,E))}var x=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),T=x.ux2.PDPHeaderUI,B="",w="",e="",n="",k="",A="",ca=!0,K=!1,D=function(f,C){k=C;B=f;w=B.util;e=B.view;n=B.drawObj};D.prototype.setTradeInSuportSubsidy=function(f){K=f};D.prototype.getTradeInSupportSidiy=function(){return K};D.prototype.wishlistPopup=function(f,C,E){var U=n.wishList;f&&(U.contentWrapperClass=w.addClass(U.contentWrapperClass,
f),U.contentWrapperClass=w.removeClass(U.contentWrapperClass,"tg-add-wishlist"),U.contentWrapperClass=w.addClass(U.contentWrapperClass,"tg-remove-wishlist"));C&&(U.contentWrapperClass=w.removeClass(U.contentWrapperClass,C),U.contentWrapperClass=w.addClass(U.contentWrapperClass,"tg-add-wishlist"),U.contentWrapperClass=w.removeClass(U.contentWrapperClass,"tg-remove-wishlist"));E&&(U.labelText=E);e.productWishListDraw(n);w.settingWishlistTagging(B,k)};D.prototype.checkOutCta=function(f,C,E,U){f=void 0===
f?[]:f;C=void 0===C?!1:C;E=void 0===E?!1:E;B.useNewAddToCartApi?(new x.BuyingToolOpAjaxNewbris).callCheckOutCta(B,f,k,C,E,U):B.shopApiModel.callCheckOutCta(B,f,k,C,E,U)};D.prototype.addToCartCta=function(f,C,E,U){f=void 0===f?[]:f;C=void 0===C?!1:C;E=void 0===E?!1:E;B.useNewAddToCartApi?(new x.BuyingToolOpAjaxNewbris).callAddToCartCta(B,f,k,C,E,U):B.shopApiModel.callAddToCartCta(B,f,k,C,E,U)};D.prototype.offerAndAddonsDiscount=function(f,C){B.globalServiceInfo[C]=f;if("tradein"===C)u(f,B,k,e);else if("tariff"===
C){var E=B,U=k,R=e,y=E.drawObj,da=E.util,wa=E.priceCurrency,ra=E.siteCode,oa="";if(f){"uk"===ra?(oa=Granite.I18n.get("Monthly Price : ")+" "+currencyComma(f.price,wa)+"/month***",E.tariffPrice=f.upfrontAmount):("au"===ra&&(E.tariffPrice=f.discount),f.period?oa=Granite.I18n.get("You pay now")+" "+currencyComma(f.price,wa)+"/"+f.period:f.price&&(oa=Granite.I18n.get("You pay now")+" "+currencyComma(f.price,wa)));"au"===ra&&f.priceText&&(oa=f.priceText);if("se"==ra||"no"==ra||"dk"==ra)oa="";"fr"==ra&&
da.isNotEmpty(f.pricing.promotions)&&da.isNotEmpty(f.pricing.promotions[0].monthly_rate.value)&&(oa=Granite.I18n.get("Starting from")+" "+Granite.I18n.get("{0}/month",currencyComma(f.pricing.promotions[0].monthly_rate.value,wa)));y.tariffOptionResult={hasComponent:!0,displayModelName:f.serviceDescription,discountText1:oa,description1:"fr"==ra?"":Granite.I18n.get("Invoice will be issued by the network service company"),dataPrice:f.periodPrice,dataSimskuCode:f.simSkuCode,dataModelCode:f.modelCode,dataId:f.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 ea=!1;1==E.hasPlanIDAndFreeGiftPromotion&&((ea=E.giftSelectionSkipPlanIdList.includes(f.modelCode))?(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)));ea||window.sg.components.dynamic.freeGiftHybrisCommon.getTariffRelatedProductsSimpleInfo(E.modelCode)}T.triggerChange(document.querySelector("#pd-tariff-option-0"));R.tariffOpionResultDraw(y);da.totalAfterFunction(E,U)}}else if("combo"===C){var na=B,L=k,O=e,b=na.util,r=na.drawObj,
H=r.offer.combo,N=Number(na.checkedComboArea.attr("data-combo-index")),Z=b.hasTradeInResult(na,L),d=na.priceCurrency,M=null,t;for(t in H){var z=H[t];if(z.comboIndex===N){M=z;break}}if(M){M.item.hasBundle=!0;M.item.bundleList=[];for(var I in f){var X=f[I].thumbUrl,V=f[I].pviTypeName?f[I].pviTypeName.toLowerCase():"",P=f[I].pviSubtypeName?f[I].pviSubtypeName.toLowerCase():"",S=f[I].categorySubTypeEngName?f[I].categorySubTypeEngName.toLowerCase():"",Q="",ha="",ka="",la="",ua="";f[I].msrp_price&&!f[I].sale_price&&
(f[I].sale_price=f[I].msrp_price);if(f[I].sale_price&&f[I].msrp_price){var ya="",sa="";ya=f[I].sale_price.formatted_value?f[I].sale_price.formatted_value:currencyComma(f[I].sale_price.value,d);sa=f[I].msrp_price.formatted_value?f[I].msrp_price.formatted_value:currencyComma(f[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"));f[I].sale_price?(0!==parseFloat(f[I].msrp_price.value)-
parseFloat(f[I].sale_price.value)?(Q=Ma+pa+sa,la=f[I].msrp_price.value,f[I].saveText&&""===Ma&&(ha=f[I].saveText)):(Q=" ",la=f[I].msrp_price.value),ka=Granite.I18n.get(ya),ua=f[I].sale_price.value):(Q=" ",la=f[I].msrp_price.value,ka=Granite.I18n.get(sa),ua=f[I].msrp_price.value)}var a={title:f[I].displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+f[I].displayName,dataPrice:la,dataSalePrice:ua,dataEventType:"combo-"+N+"-"+I,dataModelName:f[I].modelName,dataDisplayName:f[I].displayName,
pviTypeName:V,pviSubtypeName:P,categorySubTypeEngName:S,dataSkuCode:f[I].shopSKU,dataModelCode:f[I].modelCode,dataIndex:f[I].idx,imgAttr:{classWapper:"image__main responsive-img",srcPc:X,alt:f[I].thumbUrlAlt},price:{original:Q,save:ha,now:ka}};M.item.bundleList.push(a)}"in"===siteCode&&Z&&b.exchangeResultDraw(na,L);O.productOfferDraw(r,!0);b.totalAfterFunction(na,L)}}else if("exchange"===C){var c=B,m=k,g=e;"CE"===c.tradeInType&&"in"===siteCode?c.commonApiModel.tradeInCeDataV1Api(c,m,f):f.notselected_offer_id?
c.commonApiModel.exchangeInDataV1Api(c,m,f):(f.dataQuoteId=f.id,c.util.settingExchangeAPIData(f,c,m,g))}else if("eup"===C){var q=B,ba=k,J=e,fa=q.drawObj,qa=q.util,ia=q.priceCurrency;f&&(fa.upgradeResult={hasComponent:!0,displayModelName:f.displayName,discountText1:Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(f.salePrice/24),ia)),dataId:f.consents,dataPrice:f.salePrice},q.isMigrationHybris&&f.monthlyPrice&&(fa.upgradeResult.discountText1=Granite.I18n.get("You pay now")+
" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(f.monthlyPrice),ia))),T.triggerChange(document.querySelector("#pd-samsung-upgrade-0")),J.upgradeResultDraw(fa),qa.totalAfterFunction(q,ba))}else if("care"===C)aa(f,B,k,e);else if("warranty"===C){var Aa=B,Ia=k,Fa=e,Da=Aa.siteCode,Ga=Aa.multiCareYn,Sa="",La=0,ma="",Oa=0,Ca="",Ka="",Qa="",Na="",Ua="",Ra="",Va=null;if(f){f.discounted_sku&&(ma=f.discounted_sku,"GPv2"===Aa.apiFlag?(La=f.msrp_price.value,f.sale_price.formatted_value?(Sa=f.msrp_price.formatted_value,
Oa=parseFloat(f.msrp_price.value)-parseFloat(f.sale_price.value)):f.msrp_price.formatted_value&&(Sa=f.msrp_price.formatted_value)):(Va=La=f.sale_price.value,Sa=currencyComma(f.sale_price.value,Aa.priceCurrency)));var Y="";if("nl"===Da||"be"===Da||"be_fr"===Da)Y=Granite.I18n.get("From");var ja="";"de"===Da&&(ja=Granite.I18n.get("From"));var za=Granite.I18n.get("Extended Warranty");"Y"!==Ga&&(Ca=za+" "+ma);0!==Oa?(Ka=La,Na=Y+ja+" "+Sa,""===Y&&(Ra=Granite.I18n.get("Save {0}",currencyComma(Oa,Aa.priceCurrency),
Da)),Qa=Va,("ee"===Da||"lt"===Da||"lv"===Da)&&f.sales_pitch&&(Ua=f.sales_pitch[0])):(Ka=La,Qa=Va,Na=Sa);Aa.drawObj.warrantyResult={hasComponent:!0,displayModelName:Ca,discountText1:Na,description1:Ua,dataPrice:Ka,dataSalePrice:Qa,dataModelName:f.modelName,dataModelCode:f.modelCode,dataId:f.consents,savedPrice:Ra};T.triggerChange(document.querySelector("#pd-samsung-warranty-0"));Fa.warrantyResultDraw(n);w.totalAfterFunction(Aa,Ia)}}else if("warrantyVd"===C){var Ba=B,Ha=k,va=e,Ea=["mx"].includes(Ba.siteCode)?
!0:!1,Ja="",ta="";ta=currencyComma(f.price,Ba.priceCurrency);Ea&&f.paymentCycle&&"MONTHLY"===f.paymentCycle.toUpperCase()&&(ta=Granite.I18n.get("{0}/month",currencyComma(f.price,Ba.priceCurrency)));f&&($(".option-result--extended-warranty-option").removeAttr("style"),Ba.drawObj.warrantyVdResult={hasComponent:!0,title:f.title,price:f.price,smcCode:f.smcCode,description:f.description,priceDisplay:ta},T.triggerChange(document.querySelector("#pd-extended-warranty-option-0")),va.warrantyVdResultDraw(n),
w.totalAfterFunction(Ba,Ha),Ja='\x3cstrong class\x3d"summary__product-name"\x3e'+f.title+'\x3c/strong\x3e\n\t\t\t\t\t\t   \x3cp class\x3d"summary__product-price" style\x3d""\x3e'+currencyComma(f.price,Ba.priceCurrency)+"\x3c/p\x3e",$(".summary__product-price").show(),$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").html(Ja))}else if("forever"===C){var xa=B,Xa=k,Ta=e,Pa=xa.util,Wa=Pa.hasTradeInResult(xa,Xa);f&&(xa.drawObj.galaxyForeverResult={hasComponent:!0,displayModelName:f.displayName,
discountText1:Granite.I18n.get("Monthly Cost")+":"+currencyComma(f.foreverPrice,xa.priceCurrency),description1:Granite.I18n.get("Tenure")+":"+f.tenureValue+" "+Granite.I18n.get("month"),dataId:f.consents,dataPrice:null,modelList:f.modelCodeArr,financePlanId:f.plan_id},T.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-0")),Ta.galaxyForeverResultDraw(n),Xa.buyingToolOptCare.hide(),Wa&&Pa.exchangeResultDraw(xa,Xa),Pa.totalAfterFunction(xa,Xa))}else if("gift"===C){var ab=B,Ya=k,Za=e,
bb=ab.util,ib=ab.drawObj,$a=ib.offer.gift,pb=ab.priceCurrency,kb=f.pviTypeName?f.pviTypeName.toLowerCase():"",gb=f.pviSubtypeName?f.pviSubtypeName.toLowerCase():"",yb=f.categorySubTypeEngName?f.categorySubTypeEngName.toLowerCase():"";$a.item.hasBundle=!0;$a.item.bundleList=[];var Eb=f.thumbUrl,hb="",Kb="",sb="",qb="",Fb="";if(f.sale_price&&f.msrp_price){var cb="",lb="";cb=f.sale_price.formatted_value?f.sale_price.formatted_value:currencyComma(f.sale_price.value,pb);lb=f.msrp_price.formatted_value?
f.msrp_price.formatted_value:currencyComma(f.msrp_price.value,pb);var eb="";if("nl"===siteCode||"be"===siteCode||"be_fr"===siteCode)eb=Granite.I18n.get("From");var nb="";"de"===siteCode&&(nb=Granite.I18n.get("From"));f.sale_price?(0!==parseFloat(f.msrp_price.value)-parseFloat(f.sale_price.value)?(hb=eb+nb+lb,qb=f.msrp_price.value,f.saveText&&""===eb&&(Kb=f.saveText)):(hb=" ",qb=f.msrp_price.value),sb=Granite.I18n.get(cb),Fb=f.sale_price.value):(hb=" ",qb=f.msrp_price.value,sb=Granite.I18n.get(lb),
Fb=f.msrp_price.value)}f.selectIdx&&($a.item.learnMoreCta.giftIdx=f.selectIdx);var Zb={title:f.displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+f.displayName,dataPrice:qb,dataSalePrice:Fb,dataEventType:0,dataModelName:f.modelName,dataDisplayName:f.displayName,dataSkuCode:f.shopSKU,dataModelCode:f.modelCode,dataIndex:f.selectIdx,pviTypeName:kb,pviSubtypeName:gb,categorySubTypeEngName:yb,imgAttr:{classWapper:"image__main responsive-img",srcPc:Eb,alt:f.thumbUrlAlt},price:{original:hb,
save:Kb,now:sb}};$a.item.bundleList.push(Zb);Za.productOfferDraw(ib,!0);bb.settingPriceDraw(ab,Ya)}else if("assured"===C){var ob=B,gc=k,bc=e,Lb=ob.util;f&&(ob.drawObj.assuredBuyBackResult={hasComponent:!0,dataSku:f.sku,dataPrice:f.msrp_price.value,dataSalePrice:f.sale_price.value,dataId:f.consents,displayModelName:f.displayModelName,dataModelName:f.dataModelName},T.triggerChange(document.querySelector("#pd-galaxy-assured-1")),bc.assuredBuyBackResultDraw(n),Lb.totalAfterFunction(ob,gc))}else if("newassured"===
C){var Nb=B,Ob=k,Hb=e,cc=Nb.util;f&&(Nb.drawObj.newAssuredBuyBackResult={hasComponent:!0,dataModelCode:f.modelCode,dataModelName:f.modelName,dataPrice:f.productPrice,dataDisplayPrice:f.productDisplayPrice,dataDisplayName:f.productDisplayName},Nb.popupReturnObj&&T.triggerChange(Nb.popupReturnObj.get(0)),Hb.newAssuredBuyBackResultDraw(n),cc.totalAfterFunction(Nb,Ob))}};D.prototype.drawTradeInWithPopup=function(f){var C="uk"===siteCode,E=!1;B.sgeSiteInstantChk=["ae","ae_ar"].includes(B.multistoreSiteCd);
C&&ca&&l().done(function(U){U&&isNotEmpty(U[0])&&isNotEmpty(U[0].content)&&(A=U[0].content)}).fail(function(U){}).always(function(U){ca=!1});if(f&&f.flag){E=B.tradeInFlag=!0;B.maxTradeInsAllowed=f.maxTradeInsAllowed;if("ae"===B.siteCode||"ae_ar"===B.siteCode||B.isSEBN)B.maxTradeInsAllowed=1;B.minOrderEntryValue=f.minOrderEntryValue}"fr"!==B.siteCode||f.withCeTradeUpPopup||(f={maxDiscount:0,directOutLink:!1});B.compareMaxTradeInWithCart=w.isNotEmpty(f)?f.compareMaxTradeInWithCart:!1;B.disableTradeIn=
B.compareMaxTradeInWithCart?f.disableTradeIn:!1;B.util.hasTradeIn(B,k)||(w.settingTradeInDraw(f,B,k,E),w.settingTradeInErrMsgDraw(B,k,E),window.sg.components.ProductDetailKvNew.reInit())};D.prototype.newHybrisDrawTariffOption=function(f,C,E){var U=$.extend({isBroadbandService:!1},E);E=B.view;var R=B.drawObj,y=B.siteCode,da=[];if(U.isBroadbandService)B.tariffFlag=!0,R.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options Broadband"),description:"",logoList:[],href:"",yesAttr:{text:Granite.I18n.get("YES")},
noAttr:{text:Granite.I18n.get("No, Thanks")}},E.tariffOpionDraw(R),window.sg.components.ProductDetailKvNew.reInit();else if(f&&0<f.length){B.tariffFlag=!0;f=$jscomp.makeIterator(f);for(U=f.next();!U.done;U=f.next()){var wa=U.value;U=wa.imgUrl;wa=wa.imgAlt;U&&("de"===y&&(-1<U.indexOf("Telekom")?(U="https://images.samsung.com/is/image/samsung/assets/de/tarife/logos/tarrif-sim-telekom_NEU.png",wa="Telekom"):-1<U.indexOf("Vodaphone")?(U="https://images.samsung.com/is/image/samsung/assets/de/icons/sim/250821_SIM_Icon_Vodafone.png",
wa="Vodaphone"):-1<U.indexOf("o2")&&(U="https://images.samsung.com/is/image/samsung/assets/de/icons/sim/250821_SIM_Icon_o2.png",wa="o2")),da.push({src:U,alt:wa}))}f=Granite.I18n.get("Choose your preferred tariff from various providers.");if("fr"==y&&C){var ra=0;$.each(C,function(oa,ea){for(oa=0;oa<ea.tariffPlans.length;oa++)!ea.tariffPlans[oa].recommended||0!=ra&&null!=ra&&void 0!=ra||(ra+=ea.tariffPlans[oa].discount)});0<ra&&(f=Granite.I18n.get("Choose a network and save up to {0}",'\x3cstrong style\x3d"color: #006bea;"\x3e'+
currencyComma(ra,B.priceCurrency)+"\x3c/strong\x3e"))}"de"==y&&B.categoryTypeCode.startsWith("01")&&(f=Granite.I18n.get("Choose the right plan for you."));R.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options"),description:f,logoList:da,href:"",yesAttr:{text:Granite.I18n.get("YES")},noAttr:{text:Granite.I18n.get("NO")}};"se"!==y&&"no"!==y&&"dk"!==y||B.simpleInfoSIM?(E.tariffOpionDraw(R),window.sg.components.ProductDetailKvNew.reInit()):R.tariffOption.hasComponent=!1}};D.prototype.hybrisDrawTariffOption=
function(f){var C=B.view,E=B.drawObj;B.isGPv2AndHyIntg&&f&&f.carriers&&0<f.carriers.length&&(B.tariffFlag=!0,B.hybrisApiData.tarriffOption=f,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()):
E.tariffOption.hasComponent=!1)};D.prototype.hybrisDrawGift=function(f){var C=B.view,E=B.drawObj,U=E.offer,R=B.util,y=B.giftdataHybris,da=null,wa=null;if(B.isGPv2AndHyIntg&&f){B.giftFlag=!0;f=R.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-gift-popup",{layerTarget:"freeGiftPopup",giftIdx:0},"");B.giftdataHybris;for(var ra in y)R=y[ra],R.key&&"mainTitle"===R.key&&(da=R.value),R.key&&"subTitle"===R.key&&(wa=R.value);y=[];wa&&y.push({text:wa});U.gift={title:"giftBundle",giftIndex:0,
hasItem:!0,item:{headline:da,description:{hasDescription:!0,main:y,date:null},learnMoreCta:f}};C.productOfferDraw(E)}};D.prototype.hybrisDrawCare=function(f,C){var E=B.isHybrisSplitPD,U=B.isHybrisSplitPDSamsungCarePlus;if((B.isGPv2AndHyIntg||E&&U)&&f.smcs&&0<f.smcs.length){E="se"===siteCode||"no"===siteCode||"fi"===siteCode||"dk"===siteCode;U="pl"===siteCode;U="uk fr es ch ch_fr ro at cz pt be be_fr nl de ae ae_ar it tr".split(" ").includes(siteCode)||E||U;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 tr".split(" ").includes(siteCode),
y="pt"===siteCode,da="uk de fr es pt it nl be be_fr at cz ro pl ch ch_fr se no fi dk".split(" ").includes(siteCode),wa="se dk no fi nl be be_fr".split(" ").includes(siteCode),ra=B.samsungCareFlag=!0,oa=B.priceCurrency,ea=B.util,na=B.careLearnMoreUrl;E=f.smcs;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,2);var L=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,O=2<$("#categorySubTypeCode").val().length&&"01"===
$("#categorySubTypeCode").val().substring(0,2)?!0:!1,b="",r="_self",H="",N="javascript:;",Z={};Z={};var d={},M={},t="";t=!1;b=[""].includes(siteCode);var z="";"ca"==siteCode?z="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/extended-warranty-img.jpg":"ca_fr"==siteCode?z="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/extended-warranty-img-FR.jpg":"it"==siteCode?z="https://images.samsung.com/is/image/samsung/common/bc/images/care/care-image-it.jpg":
"ae"==siteCode?z="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/care-image-ae.jpg":"ae_ar"==siteCode&&(z="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(!O&&("ca"===siteCode||"ca_fr"===siteCode)){var X=
$(".hubble-care-popup__image .image__preview.lazy-load.responsive-img"),V=$(".hubble-care-popup__image .image__main.lazy-load.responsive-img"),P=$(".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){O=E[Q];if(O.summary&&"WARRANTY"===O.summary.toUpperCase()){I=!0;break}if(0==I&&O.productShortDescription&&-1<O.productShortDescription.toUpperCase().indexOf("WARRANTY")){I=!0;break}}I&&
(t=Granite.I18n.get("VD_Add Samsung Care+"),setTimeout(function(){if("ca"==siteCode||"ca_fr"==siteCode)X.attr("data-desktop-src",z+"?$380_223_PNG$"),X.attr("data-mobile-src",z+"?$680_398_PNG$"),X.attr("data-src",z+"?$380_223_PNG$"),X.attr("src",z+"?$380_223_PNG$"),V.attr("data-desktop-src",z+"?$380_223_PNG$"),V.attr("data-mobile-src",z+"?$680_398_PNG$"),V.attr("data-src",z+"?$380_223_PNG$"),V.attr("src",z+"?$380_223_PNG$"),P.attr("data-desktop-src",z+"?$380_223_PNG$"),P.attr("data-mobile-src",z+"?$680_398_PNG$"),
P.attr("data-src",z+"?$380_223_PNG$"),P.attr("src",z+"?$380_223_PNG$"),S.attr("data-desktop-src",z+"?$380_223_PNG$"),S.attr("data-mobile-src",z+"?$680_398_PNG$"),S.attr("data-src",z+"?$380_223_PNG$"),S.attr("src",z+"?$380_223_PNG$")},1200))}else if("it"==siteCode||"ae"==siteCode||"ae_ar"==siteCode)O=$(".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"),
M=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),O.attr("data-desktop-src",z),O.attr("data-mobile-src",z),O.attr("data-src",z),O.attr("src",z),V.attr("data-desktop-src",z),V.attr("data-mobile-src",z),V.attr("data-src",z),V.attr("src",z),d.attr("data-desktop-src",z),d.attr("data-mobile-src",z),d.attr("data-src",z),d.attr("src",z),M.attr("data-desktop-src",z),M.attr("data-mobile-src",z),M.attr("data-src",z),M.attr("src",z);b?"uk"===siteCode?(N="javascript:;",H=Granite.I18n.get("Learn more"),
r="_self",Z.layerTarget="hubbleCareinfoPopup"):"es"===siteCode?(N="javascript:void(0);",H=Granite.I18n.get("Know the advantages"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"de"===siteCode&&(N="javascript:void(0);",H=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):!da&&na?(H=Granite.I18n.get("Learn more"),N=na,r="_blank"):"uk de fr es pt it at cz ro pl".split(" ").includes(siteCode)?(N="https://www.samsung.com/"+siteCode+"/offer/samsung-care-plus/",H=Granite.I18n.get("Learn more"),
"es"===siteCode&&(H=Granite.I18n.get("Know the advantages")),r="_blank"):"cn tr ae ae_ar se no dk fi nl be be_fr".split(" ").includes(siteCode)?(N="javascript:;",H=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):["au","hk","hk_en","sg","vn"].includes(siteCode)?(N="https://www.samsung.com/"+siteCode+"/offer/samsung-care-plus/",H=Granite.I18n.get("Learn more"),r="_blank"):["ch","ch_fr"].includes(siteCode)?(N="https://www.samsung.com/"+siteCode+"/mobile/samsung-care-plus/",
H=Granite.I18n.get("Learn more"),r="_blank"):"za"===siteCode?(N="javascript:;",H=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="scLearnMorePopup"):"ca_fr"===siteCode||"ca"===siteCode?I?("ca"===siteCode?N="https://support-ca.samsung.com/secaew/consumer/ca/category/categorymain":"ca_fr"===siteCode&&(N="https://support-ca.samsung.com/secaew/consumer/ca_fr/category/categorymain"),H=Granite.I18n.get("Learn more"),r="_blank"):(N="javascript:;",H=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget=
"scLearnMorePopup"):"my"===siteCode?"true"===$("#isEppPage").val()&&(N="/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-sc-plus/",H=Granite.I18n.get("Learn more"),r="_blank"):"pe"===siteCode?L&&(N="javascript:;",H=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"co"===siteCode?L&&(N="javascript:;",H=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"cl"===siteCode?L&&(N="javascript:;",H=Granite.I18n.get("Learn more"),r="_self",
Z.layerTarget="hubbleCareinfoPopup"):"mx"===siteCode&&L&&(N="javascript:;",H=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."));
if("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=ea.getAttrCta(H,
N,r,"",Z,"");wa&&(Z.isOutLink=null,Z.isNotOutLink=null);n.care={hasComponent:ra,title:t,learnMoreCta:Z,description:b,yesAttr:d,noAttr:M,subText:"",rowText:[],itemSet:[],items:[],isSmcType2:U,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,
oa),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,
oa),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:
"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:""};if(U){ea.isNotEmpty(C.otherParameters)||(C.otherParameters={theft:"false"});C.isTheft="true"===C.otherParameters.theft?!0:!1;if("TFT"===C.otherParameters.perks||("ae"===siteCode||"ae_ar"===siteCode||"tr"===siteCode)&&"SCR"===
C.otherParameters.perks)C.isTheft=!0;R.otherParameters=C.otherParameters;R.isTheft=C.isTheft;da=C.yearlySubscription;wa="";ea.isNotEmpty(C.paymentCycle)&&"MONTHLY"===C.paymentCycle.toUpperCase()?wa="mo":ea.isNotEmpty(da)&&Number(da)&&(wa="yr",1!==Number(da)&&(wa=da+"yrs"));R.cycle=wa}B.finalCareList.push(R)}B.hybrisCareData=f;B.hybrisCareData.isSmcType2=U?!0:!1;ea.settingAfterApiCareDraw(B,k);window.sg.components.ProductDetailKvNew.reInit();y&&(f=h(E),""!==f&&(B.popupReturnObj=$(".option-care li input[data-index\x3d"+
(f+1)+"]"),f=G(E[f]),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(f,"care")))}};D.prototype.hybrisDrawAccessory=function(f){var C=B.util;B.addonsFlag=f?!0:!1;C.settingPriceCta(B.hasPriceCta,B,k,B.currentUrl)};D.prototype.tradeInResultSpecialPrice=function(f,C){for(var E=!0,U=C.list,R=-1,y=0,da=0;da<U.length;da++){var wa=U[da];wa.specialPrice&&parseFloat(y)<parseFloat(wa.specialPrice)&&(y=wa.specialPrice,R=da)}C.specialInstantDiscountYn="N";y=C.additionalDiscountFlag;for(da=
0;da<U.length;da++){var ra=f.priceCurrency;wa=U[da];var oa="",ea=wa.discountPrice,na=wa.discountPrice,L="ae"===siteCode||"ae_ar"===siteCode||"sa"===siteCode||"sa_en"===siteCode,O=f.sgeSiteInstantChk,b=f.instantDiscount;L?(na=ea=wa.dataCashBack,O&&b&&(na=ea=wa.discountPrice)):"fr"==siteCode&&(wa.spotGuaranteeAmount&&(na+=parseFloat(wa.spotGuaranteeAmount)),wa.abondementAmount&&(na+=parseFloat(wa.abondementAmount)));var r="",H="",N=!1,Z="",d=wa.specialPrice;y&&"de"!=siteCode&&(d=wa.specialPrice&&da==
R);if(E&&d){E=parseInt(wa.specialPrice);H=Granite.I18n.get("Special Discount")+" "+currencyComma(E,ra);if("fr"===siteCode)H="+"+currencyComma(parseInt(E),ra)+" "+Granite.I18n.get("de bonus reprise");else if("de"===siteCode)wa.priceinfodesc&&(H=wa.priceinfodesc);else if("ae"===siteCode||"ae_ar"===siteCode)H="Y"==wa.specialInstantDiscountYn?"+"+Granite.I18n.get("Additional Trade-in discount")+" "+currencyComma(E,ra):"+"+Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(E,ra);O&&(H=
b?"":Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(E,ra));na+=E;oa=currencyComma(na,ra);N=!0;E=!1}if(N)if(L){Z=""+Granite.I18n.get("Total cashback amount");oa=""+currencyComma(na,ra);r=Granite.I18n.get("Old device value")+" : "+currencyComma(ea,ra);if("ae"===siteCode||"ae_ar"===siteCode)r=Granite.I18n.get("Old device value")+" "+currencyComma(ea,ra);O&&b&&(Z=""+Granite.I18n.get("Additional Trade-in discount"),r="")}else"fr"===siteCode?(Z=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),
r=currencyComma(ea,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(ea,ra)):r=Granite.I18n.get("Regular Exchange Value")+" : "+currencyComma(ea,ra);else L?(r="sa"===siteCode||"sa_en"===siteCode?""+Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Regular Exchange Value")+
" "+currencyComma(ea,ra),O&&(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(ea,ra)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),wa.spotGuaranteeAmount||wa.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")+
" "+currencyComma(ea,ra)):Z=""+Granite.I18n.get("Regular Exchange Value"),oa=""+currencyComma(na,ra);wa.discountPriceTextTile=Z;wa.discountPriceText=oa;wa.specialDiscountText=H;wa.discountText1=r;L?(wa.dataPrice=0,"ae"!==siteCode&&"ae_ar"!==siteCode||!N||"Y"!=wa.specialInstantDiscountYn||(wa.dataPrice=parseInt(wa.specialPrice),C.specialInstantDiscountYn="Y"),O&&b&&(wa.dataPrice=na,C.specialInstantDiscountYn="Y")):wa.dataPrice=na}};x.DetailAfterEventClass=D})();
(function(){function l(){var D=$("#apiChangeModelCode").val(),f=$("#apiChangeCategorySubSubTypeCode").val(),C=$("#apiChangeCategorySubTypeCode").val(),E=$("#apiChangeCategoryTypeCode").val(),U=$("#apiChangeCategoryGroupCode").val(),R=$("#apiChangeModelName").val(),y=$("#apiChangeShopSKU").val(),da=$("#apiChangePdpUrl").val(),wa=$("#apiChangeFamilyCode").val();D&&$("#modelCode").val(D);f&&$("#categorySubSubTypeCode").val(f);C&&$("#categorySubTypeCode").val(C);E&&$("#categoryTypeCode").val(E);U&&$("#categoryGroupCode").val(U);
R&&$("#modelName").val(R);y&&$("#shopSKU").val(y);da&&$("#pdpUrl").val(da);wa&&$("#familyCode").val(wa);n=$(".hdd02-pdp-header");D=n.find(".sg-pdh-product-info");f=n.find("#detail-input-hidden");C=n.find(".sg-pdh-buying-tool");E=C.find(".sg-pdh-buying-options");U=C.find(".sg-pdh-order-summary");R=$("#siteCode").val();y=$("#categoryGroupCode").val().substring(0,2);var ra=$("#apiChangeCategorySubTypeCode").val();da=ra.substring(0,4);ra=ra.substring(0,6);wa="ae"!==R&&"ae_ar"!==R||!["04","08"].includes(y)?
!1:!0;var oa="au"===R&&(["0401","0402"].includes(da)||["08"].includes(y))?!0:!1,ea="vn"===R&&["04","08","07"].includes(y)?!0:!1,na="in"===R&&["04","05","07","08"].includes(y)?!0:!1,L="my"===R&&["04","05","06","07","08"].includes(y)?!0:!1,O="Y"===$("#ceTradeUpEnabledYn").val()||("ch"===R||"ch_fr"===R)&&["08"].includes(y),b="sa"!==R&&"sa_en"!==R||!["04","08"].includes(y)?!1:!0,r=$("#tempTitle").val(),H=("ca_fr"===R||"ca"===R)&&"0701"==da||("ca_fr"===R||"ca"===R)&&"08"==y&&"true"!=$("#isEppPage").val()?
!0:!1,N="uk"!==R||"0807"!=da&&"0808"!=da&&"0809"!=da&&"0811"!=da&&"0701"!=da?!1:!0,Z="kz_kz"!==R&&"kz_ru"!==R||"08"!=y||"true"==$("#isEppPage").val()?!1:!0;"cz"===R&&["01","04","05","07","08"].includes(y)&&$("#isEppPage").val();"sk"===R&&["01","04","05","07","08"].includes(y)&&$("#isEppPage").val();var d="fr"===R&&["04","08"].includes(y)&&"true"!=$("#isEppPage").val()?!0:!1,M="pl"===R&&(["04"].includes(y)||["08"].includes(y))&&"true"!=$("#isEppPage").val()?!0:!1,t="es"===R&&(["04"].includes(y)||["08"].includes(y))&&
"true"!=$("#isEppPage").val()?!0:!1,z="levant"!==R&&"levant_ar"!==R||!["04"].includes(y)&&!["08"].includes(y)||"true"==$("#isEppPage").val()?!1:!0,I="it"===R&&(["0401","0701"].includes(da)||["08"].includes(y))&&"true"!=$("#isEppPage").val()?!0:!1,X="true"==$("#isEppPage").val()&&"pl"===R&&["08"].includes(y)?!0:!1;ra=N||H||"0401"==da||"0402"==da||"0803"==da||"080101"==ra||"080103"==ra?!0:!1;H="";$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(H=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src"),
H=H.substring(0,H.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===
$("#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(),
pdRemoveTagTxt:$("#pdRemoveTagTxt").val(),wtbSrc:$("#wtbSrc").val(),imgUrl:H,wtbSubTypeCode:$("#apiChangeCategorySubTypeCode").val(),pdProductType:$("#pdProductType").val(),tradeInFlag:!1,tradeinSaveValue:"",tradeinText:"",tradeInType:"in"===$("#siteCode").val()&&["04","05","07","08"].includes(y)?"CE":"",promotionSalesPitch:0,upgradeEligible:!1,pdUpgradeUseYn:$("#pdUpgradeUseYn").val(),upgradeFlag:!1,eupData:{},childCheckList:[],pdProductTypeCheckYn:$("#pdProductTypeCheckYn").val(),samsungCareList:[],
samsungCareBadgeList:[],samsungCareFlag:!1,samsungCarePackFlag:"in"===$("#siteCode").val()&&["04","05","07","08"].includes(y)?!0:!1,prePurchaseFlag:Z||d||M||X||t||z||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"===
$("#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:[],
pdBogoUseYn:$("#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(),
pdSmcType:$("#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",
disabledCtaClass:"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(),
proudctPriceInfo:{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:"",
frequentPrice:"",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:[],
openPromoTaxParam:"",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:$("#isPreqa").val(),emiUrl:$("#emiUrl").val(),accessToken:"",pdDisplayYn:$("#pdDisplayYn").val(),returnPolicyText:$("#returnPolicy").val(),warrantyText:$("#warranty").val(),
isLive:$("#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")||
-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,
downPayment: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,
vdcombodataHybris:[],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(),
currentPdpUrl:$("#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"===
$("#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(),
aplautYn:$("#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",
"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(" "),
productType:$("#productType").val(),checkValid:!0,useWarrantyVd:("04"==y||"08"==y)&&"de"===R||"01"!=y&&("fr"===R||"es"===R)||("04"==y||"08"==y)&&("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(y)&&("si"===R||"hr"===R)||["07"].includes(y)&&"at"===R||"mx"===R||"cn"===R||(["0401","0402"].includes(da)||["08"].includes(y))&&"ph"===R||["0801","0803","0805","0401"].includes(da)&&
"id"===R||(["0401","0402","0404","0501"].includes(da)||"08"==y)&&"nz"===R||["01","04","05","07","08"].includes(y)&&"n_africa"===R||wa||oa||b||ea||na||L||("08"==y||"01"==y)&&("levant"===R||"levant_ar"===R),isOldHybrisWishlist:"Y"===f.find("#isOldHybrisWishlist").val(),isBezel:!1,is2022Product:!1,sellingWithBazel:!1,bezelImageClass:"",noneTypeList:[],modernTypeList:[],beveledTypeList:[],freestyleList:[],useBezelOptionDraw:!1,bezelDummyCode:!0,isBezelClicked:!1,isPossibleBuy:!1,bezelColorArray:[],bezelModelCodeList:"",
bezelModelPatternCodeList:"",bezelModelCodeArrayList:[],bezelModelCodeArray:[],bezelColorIndex:0,selectedBezelColor:{},selectedBezelTotalPrice:{original:"",sale:"",saved:""},cartBezelCode:"",checkedIndex:-1,isMultiTradeIn:"Y"===f.find("#isMultiTradeIn").val(),isOldHybrisCheckService:"Hybris-intg"===$("#shopIntegrationFlag").val()||"Hybris"===$("#shopIntegrationFlag").val(),backOrderMessage:"",stockLevelStatusDisplay:"",addonGiftBundleRelatedData:[],addonBundleRelatedData:[],bundleCnt:0,vdAddonInitPriceHtml:"",
savingInformation:"",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,
4)?!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()||
"lt"===$("#siteCode").val()||"ee"===$("#siteCode").val()||"cz"===$("#siteCode").val()||"sk"===$("#siteCode").val()||"pt"===$("#siteCode").val()||"au"===$("#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()||"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"===$("#siteCode").val()||"fi"===$("#siteCode").val()||"no"===$("#siteCode").val(),walkoutQty:0,homeDeliveryQty:0,isStorePopup:!1,ceTradeUpPopup:{isEnabled:O,categoryGroup:y,productCategoryMainType:{"0401":"tv","0402":"tv","0801":"wm","0803":"rf","0807":"vc","0805":"ac","0701":"monitor"}[da],productCategoryGroup:{"03":"pc","04":"vd","05":"sb","07":"mon","08":"da"}[y]},isTradeUp:!1,showEmbedAddon:!1,
vdRelatedProducts:{},newEmbedVDCountry:"Hybris-new"===$("#shopIntegrationFlag").val()||"Hybris"===$("#shopIntegrationFlag").val()||"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"}[da],rewards:{config:{allowedSites:"fr de it au mx cl co pe za at be be_fr ch ch_fr cz dk es fi hk hk_en hr hu id my nl no nz ph pt se sg si sk th tw vn".split(" "),
useNumberFormatterByLocale:["de","cl","id"],rewardsMemeberCheckSite:"mx cl co pe za at be be_fr ch ch_fr cz dk es fi hr hu id my nl no nz ph pt se sg si sk th tw vn".split(" ")},pageContext:{siteCode:$("#siteCode").val(),searchDomain:$("#searchDomain").val(),apiStageInfo:$("#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:n,buyingTool:C,buyingToolGlallery:n.find(".sg-pdh-gallery-section"),buyingToolInfo:D,buyingToolInfoTitle:D.find(".pd-info__title"),buyingToolInfoSku:D.find(".pd-info__sku"),buyingToolInfoWishlist: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"),buyingToolOptGroup: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"),buyingToolOptStorageMemory: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"),buyingToolOptDeliveryPickupStore: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"):E.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"),buyingToolOptAssuredBuyBackResult: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"),buyingToolOptCare: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:U,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=ca.stockLevelStatus.toUpperCase());if("true"===$("#isEppPage").val()){ca.isNewElementLowestWasPrice="Y"===eppOmniPricingUseYn?
!0:!1;if("au"===R||ca.isSENA)ca.isNewElementLowestWasPrice=!0;"true"===window.sg.epp.common.quantityUse?$(".pd-select-option--quantity").css("display",""):$(".pd-select-option--quantity").remove()}D=ca;f=new k.BuyingToolOpView(K,D);C=new k.BuyingToolOpUtile(K);D.view=f;D.util=C;D.shopApiModel=D.isMigrationHybris?new k.BuyingToolOpAjaxNewbris:"GPv2"===D.apiFlag?new k.BuyingToolOpAjaxGPv2:new k.BuyingToolOpAjaxHybris;D.commonApiModel=new k.BuyingToolOpAjaxCommon;D.pdRemoveTagTxt=C.escapeHtml(D.pdRemoveTagTxt);
C=f.productModel();D.drawObj=C;C=new k.DetailAfterEventClass(D,K);D.afterEvent=C;k.DetailAfterEvent=C;k.detailSelectorObj=K;k.detailSharedObj=D;"true"===$("#isEppPage").val()&&(window.sg.components.dynamic&&window.sg.components.dynamic.bridgePageCommonHybris&&window.sg.components.dynamic.bridgePageCommonHybris.setSharedObj(D),window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&f.eanCodeDraw());f=k;C=f.RewardsCalculator;D.rewards.context=new f.RewardsPolicyContext({config:D.rewards.config,
pageContext:D.rewards.pageContext});D.rewards.calculator=new C;D=ca;f=K;C=D.util;U=D.pdStageInfo;R=D.pdDisplayYn;E=D.parentPath;-1<E.indexOf("/content/samsung")&&(E=E.split("/content/samsung")[1]);"admin"!==U&&"N"===R&&(U=!1,"true"===$("#isEppPage").val()&&(R=location.pathname.match(/[0-9]{13}/g),null!=R&&"undefined"!=typeof R&&""!=$.trim(R)&&(U=!0)),U||(U="/",-1<location.href.indexOf(".html")&&(U=".html"),E&&(location.href=E+U)));window.location.search&&-1<window.location.search.indexOf("accesstoken")&&
(D.accessToken=C.getQuerystring("accesstoken"),D.commonApiModel.externalAjax(D,f));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<window.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,f);h(D,f);C.validateQuantity("1",D,f,!0);D=ca;f=K;C=D.view;E=D.displayName;U=D.siteCode;R=D.modelCode;y=window.location.href.replace("/buy","");"in"===U&&-1<R.indexOf("SM-A920F")&&(y="https://www.samsung.com/in/microsite/galaxy-a9/");C.anchorDraw(E);D.currentUrl=y;C=D.siteCode;E=D.isCart;U=D.oldProductYn;R=D.abnormalcoloryn;y=D.shopApiModel;da=D.modelCode;wa=D.util;D.syndiProductData="";"in"===C&&-1<da.indexOf("SM-A920F")&&(D.currentUrl="https://www.samsung.com/in/microsite/galaxy-a9/");
D.isNotGpv2?y.productAjax(D,f):"Y"===E&&"Y"!==U&&"Y"!==R?y.productAjax(D,f):(wa.totalAfterFunction(D,f),D.util.clickEventListener(D,f),D.commonApiModel.settingWishList(D,f),wa.gpHybrisGlobalEndPoint(D,f));G(ca,K)}function h(D,f){f=$(".usp-text");for(var C=0;C<f.length;C++){var E=f.eq(C).text();E&&-1<E.indexOf("|_|")&&(E=E.trim().replace(/\|_\|([^\|_\|]*)\|_\|/g,function(U,R){return currencyComma(parseFloat(R),D.priceCurrency)}),f.eq(C).text(E))}}function G(D,f){D.optionId="";var C={sharedObj:D,selectorObj:f};
f.buyingToolOptBundle.on("click",".option-input",C,function(U){var R=$(this),y=U.data.sharedObj,da=U.data.selectorObj,wa=y.detailNodePath;-1<window.location.href.indexOf("author.samsung.com")&&-1==wa.indexOf("/content/samsung")&&(wa="/content/samsung"+wa);var ra=y.siteCode,oa=modelCodeToSelector(R.data("modelcode"));U=R.data("familycode");var ea=y.isClicked,na=R.closest(".pd-select-option").attr("id");y.isBuyingoptionApi=R.hasClass("buyingoption-api");y.focusId=na;if(ea||R.hasClass("checked"))return!1;
ea="/";-1<location.href.indexOf(".html")&&(ea=".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)}U=wa+".pd-g-product-detail-header-ux2."+oa+"."+y.siteCode+"."+U+na+ea;y.isClicked=!0;y.isOptClicked=!0;setTimeout(function(){y.isClicked=!1},1500);ea=y.disabledClass;na=da.buyingToolOptWarrantyVdResult;var O=function(r){var H=$("\x3cdiv\x3e\x3c/div\x3e").append(r);r=H.find(".sg-pdh-product-info");
var N=H.find(".sg-pdh-gallery-section"),Z=H.find(".sg-pdh-buying-tool"),d=H.find("#sg-pdh-dynamic-template-assembly"),M=H.find("#detail-input-hidden"),t=H.find("#betterTogether"),z=H.find("section.pd-banner"),I=H.find("#pdd16-step-buying");H=H.find("#front-api-rawcode-component");$("#detailNodePath").val(wa);n.find(".sg-pdh-product-info").replaceWith(r);n.find(".sg-pdh-gallery-section").replaceWith(N);n.find(".sg-pdh-buying-tool").replaceWith(Z);n.find("#sg-pdh-dynamic-template-assembly").replaceWith(d);
n.find("#detail-input-hidden").replaceWith(M);n.find("#betterTogether").replaceWith(t);n.find("section.pd-banner").replaceWith(z);n.find("#pdd16-step-buying").replaceWith(I);n.find("#front-api-rawcode-component").replaceWith(H);"nl"===ra&&($("#rentalInstallmentFinancing").hide(),$("#rentalInstallmentFinancingTable").html(""));window.sg.components.ProductDetailKvNew.reInit();$("#"+y.focusId).find('.option-input[checked\x3d"checked"]').focus();r=$("#currentPdpUrl").val();N=-1<location.href.indexOf("/buy");
r&&(-1<location.href.indexOf(".html")?("/"===r.substring(r.length-1)&&(r=r.substring(0,r.length-1)),r=N&&0>r.indexOf("/buy")?"/content/samsung"+r+"/buy.html":"/content/samsung"+r+".html"):N&&0>r.indexOf("/buy")&&(r="/"===r.substring(r.length-1)?r+"buy/":r+"/buy/"),"true"===$("#isEppPage").val()&&(N=$("#currentPdpUrl").val(),Z="buy",-1<location.href.indexOf("/pd.")&&(Z="pd"),-1<N.indexOf("/pd.")?r=$("#currentPdpUrl").val().replace("/pd.","/"+Z+"."):-1<N.indexOf("/feature.")?r=$("#currentPdpUrl").val().replace("/feature.",
"/"+Z+"."):-1<N.indexOf("/buy.")&&(r=$("#currentPdpUrl").val().replace("/buy.","/"+Z+".")),N=r.match(/[0-9]{13}/g),""===$.trim(N)&&(N=location.pathname.match(/[0-9]{13}/g),null!=N&&"undefined"!=typeof N&&""!=$.trim(N)&&(r=r.replace(oa,oa+"."+N))),-1<location.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";N="true"===$("#isEppPage").val()?".ep-cm-g-breadcrumb":".nv-g-breadcrumb";y.isBuyingoptionApi||w(u(".pd-g-feature-benefit-ux2",y,da),".pd-g-feature-benefit-ux2",y,da);T(u(".pd-g-product-detail-offer-banner",y,da),".pd-g-product-detail-offer-banner",y,da);x(u(".pd-g-product-specs-ux2",y,da),".pd-g-product-specs-ux2",y,da);W(u(".pd-g-product-review-highlight",y,da),".pd-g-product-review-highlight",y,da);F(u(".pd-g-product-recently-viewed-ux2",
y,da),".pd-g-product-recently-viewed-ux2",y,da);p(u(".pd-g-product-support-ux2",y,da),".pd-g-product-support-ux2",y,da);v(u(N,y,da),N,y,da);aa(u(".pd-g-manufacturer-info-popup",y,da),".pd-g-manufacturer-info-popup",y,da);B(u(r,y,da),r,y,da);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("#"+y.focusId));window.sg.components.stepbuying.init()},
b=function(r){$.ajax({type:"GET",url:r,dataType:"html",success:O,complete:function(){y.isClicked=!1}})};na.hasClass(y.hasComponentClass)&&!na.hasClass(ea)?(ea=Granite.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",U),confirmPopupV2(ea,"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(U)}});f.buyingToolOptBundle.on("click",".bezel-option-input",C,function(U){var R=$(this),y=U.data.sharedObj,da=U.data.selectorObj;U=y.detailNodePath;-1<window.location.href.indexOf("author.samsung.com")&&-1==U.indexOf("/content/samsung")&&(U="/content/samsung"+U);var wa=y.modelCode,ra=R.data("bezelmodelcode");R.data("bezelmodelpatterncode");var oa=R.data("familycode"),ea=y.isBezelClicked,na=R.closest(".pd-select-option").attr("id"),L=ra===wa,O="";
y.pmtURL="/"+y.siteCode+"/tvs/personalize-my-tv/?sku\x3d"+wa+"\x26type\x3dapps";y.pmtModelList=[];L||"dummyCode"==ra?(y.cartBezelCode="",y.bezelDummyCode=!0):(y.bezelDummyCode=!1,y.cartBezelCode=ra,y.pmtModelList.push(ra));y.soundbarCategoryData&&0<Object.keys(y.soundbarCategoryData).length&&y.embedAddonSelected.forEach(function(b,r){y.pmtModelList.push(b.modelCode)});if(0<$("#personalizeMyTv").length){if(!L||L&&0<y.pmtModelList.length)O+="\x26option\x3d";y.pmtModelList.forEach(function(b){O+=b+","});
$("#personalizeMyTv .cta").attr("href",y.pmtURL+O.slice(0,-1))}y.isBuyingoptionApi=R.hasClass("buyingoption-api");y.focusId=na;for(na=0;na<y.bezelColorArray.length;na++)L=R.attr("id"),y.bezelColorArray[na].id==L&&(y.bezelColorIndex=na);y.selectedBezelColor=y.bezelModelCodeArray[y.bezelColorIndex];y.isBezel&&(y.util.settingPriceDraw(y,da),y.isPossibleBuy?y.util.settingPriceCta(y.hasPriceCta,y,da,y.currentUrl):!y.isPossibleBuy&&y.sellingWithBazel&&y.util.settingPriceCta(y.hasPriceCta,y,da,y.currentUrl));
if(ea||R.hasClass("checked"))return!1;R="/";-1<location.href.indexOf(".html")&&(R=".html");wa&&(da="",da=-1<ra.indexOf("/")?ra.replace("/","_"):ra,ea="","true"===$("#isEppPage").val()&&(na=location.pathname.match(/[0-9]{13}/g),null!=na&&"undefined"!=typeof na&&""!=$.trim(na)&&(ea=".offerid-"+na)),da=ra?U+".pd-g-product-detail-header-ux2."+wa+"."+y.siteCode+"."+oa+"."+da+ea+R:U+".pd-g-product-detail-header-ux2."+wa+"."+y.siteCode+"."+oa+ea+R,y.isBezelClicked=!0,setTimeout(function(){y.isBezelClicked=
!1},1500),$.ajax({type:"GET",url:da,dataType:"html",success:function(b){b=$("\x3cdiv\x3e\x3c/div\x3e").append(b).find(".sg-pdh-gallery-section");n.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(){y.isBezelClicked=!1}}));n.find(".pd-select-option__info-link").click(function(){var b=$(this).data("target-popup"),r="";1<n.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]):r=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(U){var R=U.require("product_widget");U=U.require("multi_widget");var y=new R({name:"inline-rating",product_id:E,container:"#aplaut-inline-rating-container"}),da=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"});
U.render([y,da,R])})}$(document).on("click",".bv_stars_component_container, .sp-inline-rating-stars, .pd-info__rating",function(){document.querySelector("#reviewWrap \x3e a").click()});$("#isEppPage").val()&&n.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,f,C){C=f.detailNodePath;var E=modelCodeToSelector($("#modelCode").val());f=f.siteCode;var U="",R="/";-1<location.href.indexOf(".html")&&
(R=".html");var y="";if("true"===$("#isEppPage").val()){var da=location.pathname.match(/[0-9]{13}/g);null!=da&&"undefined"!=typeof da&&""!=$.trim(da)&&(y=".offerid-"+da)}D&&(U=C+D+"."+E+"."+f+y+R,-1<D.indexOf("pd-g-anchor-navigation-ux2")&&(U=$("#familyCode").val(),U=C+D+"."+E+"."+f+"."+U+y+R));return U}function p(D,f,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(U){$(f).html(U)}})}function v(D,f,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(U){U=$("\x3cdiv\x3e\x3c/div\x3e").append(U).find(".text-editor");
$(".nv-g-breadcrumb .text-editor").replaceWith(U)}})}function F(D,f,C,E){var U=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var y=window.sg.components.dynamic,da=window.sg.components.ProductRecentlyViewed||{};$(f).html(R);y.rencentlyViewUx2&&y.rencentlyViewUx2.rencentlyViewGrid&&U.nonCheckError(y,y.rencentlyViewUx2.rencentlyViewGrid);da&&U.nonCheckError(da,da.reInit)}})}function W(D,f,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/"),f="#review");$.ajax({type:"GET",url:D,dataType:"html",success:function(U){$(f).html(U);U=window.sg.components.dynamic;"cn"===C.siteCode&&U.cnReview&&U.cnReview.init()}})}function aa(D,f,C,E){var U=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){$(f).html(R);0<$(".manufacturer-info-popup").length&&(R=window.sg.components.manufacturerInfoPopup||{},U.nonCheckError(R,R.reInit))}})}function x(D,f,C,E){var U=C.util;
$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var y=window.sg.components.ProductSpecNew||{};$(f).html(R);U.nonCheckError(y,y.reInit)}})}function T(D,f,C,E){var U=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var y=window.sg.components.pdBanner||{};$(f).html(R);U.nonCheckError(y,y.reInit)}})}function B(D,f,C,E){var U=C.util,R=C.view;$.ajax({type:"GET",url:D,dataType:"html",success:function(y){var da=window.sg.aem.components.product.setAnchors,wa=window.sg.components.pdHeaderNavigationV2;
if("Y"===$("#typeux2025").val()){var ra=$(".pdd39-anchor-nav__header");y=$("\x3cdiv\x3e\x3c/div\x3e").append(y).find(".pdd39-anchor-nav__headline-wrap");ra.find(".pdd39-anchor-nav__headline-wrap").replaceWith(y)}else $(f).html(y);U.nonCheckError(da,da.init);U.nonCheckError(wa,wa.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,f,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(U){var R=C.util,y=$("\x3cdiv\x3e\x3c/div\x3e").append(U);$(f).html(U);0<y.find(".feature-benefit").length&&R.nonCheckError(window.sg.components.featureBenefit,window.sg.components.featureBenefit.reInit);0<y.find(".feature-benefit-banner").length&&R.nonCheckError(window.sg.components.featureBenefitBanner,window.sg.components.featureBenefitBanner.reInit);0<y.find(".feature-benefit-bundle").length&&
R.nonCheckError(window.sg.components.featureBenefitBundle,window.sg.components.featureBenefitBundle.reInit);0<y.find(".feature-benefit-full-bleed").length&&R.nonCheckError(window.sg.components.featureBenefitFullBleed,window.sg.components.featureBenefitFullBleed.reInit);0<y.find(".feature-benefit-gallery").length&&R.nonCheckError(window.sg.components.featureBenefitGallery,window.sg.components.featureBenefitGallery.reInit);0<y.find(".feature-benefit-half-text").length&&R.nonCheckError(window.sg.components.featureBenefitHalfText,
window.sg.components.featureBenefitHalfText.reInit);0<y.find(".feature-benefit-tab").length&&R.nonCheckError(window.sg.components.featureBenefitTab,window.sg.components.featureBenefitTab.reInit);0<y.find(".three-column-carousel").length&&R.nonCheckError(window.sg.components.featureBenefitThreeColumn,window.sg.components.featureBenefitThreeColumn.reInit);0<y.find(".two-column").length&&R.nonCheckError(window.sg.components.featureBenefitTwoColumn,window.sg.components.featureBenefitTwoColumn.reInit);
0<y.find(".feature-benefit-video-kv").length&&R.nonCheckError(window.sg.components.featureBenefitVideoKv,window.sg.components.featureBenefitVideoKv.reInit);window.sg.common.image.initAll()}})}function e(){var D=$(location).prop("pathname"),f=$("#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:f,productGroupCode:C},url:"/aemapi/v6/product/getNotification",
success:function(E){var U="undefined"!==typeof digitalData&&digitalData&&digitalData.page&&digitalData.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'+E.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-'+U+'-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':"_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'+
(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-'+U+'-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':
"_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-'+(U+'-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")+
"\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();window.sg.components.notificationBar.init();
window.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 n=$(".hdd02-pdp-header"),k=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),A=k.ux2.PDPHeaderUI,ca={},K={};if(0>=n.length)return!1;l()})();
(function(l,h){function G(ca){null!=ca.products&&0<ca.products.length&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),h.each(ca.products,function(K,D){K=D.modelcode;T[K]={};T[K].modelCode=K;T[K].name=D.name||"";T[K].imageUrl=D.imageUrl||"";T[K].imageUrlAlt=D.imageUrlAlt||"";T[K].stocklevel=D.stocklevel||"";T[K].price=D.price||"";T[K].priceValue=D.priceValue||"";T[K].promotionPrice="";T[K].promotionPriceValue="";T[K].promotionPrice=D.promotionPrice?D.promotionPrice:D.price;T[K].promotionPriceValue=
D.promotionPriceValue?D.promotionPriceValue:D.priceValue}))}var u=h("#siteCode").val(),p=h("#hybrisApiJson").val(),v=h("#storeDomain").val(),F=h("#searchDomain").val(),W=h("#apiStageInfo").val(),aa=h("#priceCurrency").val(),x="Hybris-intg"===h("#shopIntegrationFlag").val()?"hybris":"global",T={},B=[],w="ae"===u||"ae_ar"===u||"levant"===u||"levant_ar"===u||"n_africa"===u,e="ca"===u||"ca_fr"===u,n="";if("ae"===u||"ae_ar"===u){var k=l.cookies.getCookie("estoreSitecode");n=k?"ae"===k||"ae_ar"===k||"kw"===
k||"kw_ar"===k||"om"===k||"om_ar"===k||"bh"===k||"bh_ar"===k||"qa"===k||"qa_ar"===k?k:u:u}else n="levant"===u?"jo":"levant_ar"===u?"jo_ar":"n_africa"===u?"ma":u;n="true"===h("#isEppPage").val()?h("#eppCompanyCode").val():n;var A=v+"/"+n;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();
K+=D}ca="?productCode\x3d"+ca;B=[];D="true"===h("#isEppPage").val()?{withCredentials:!0}:{};"Y"===p?h.ajax({url:A+ca,type:"GET",dataType:"json",cache:!0,crossDomain:!0,xhrFields:D,timeout:1E4,success:G,error:function(){}}):e?h.ajax({url:A+ca+K,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:D,cache:!0,crossDomain:!0,timeout:1E4,success:G,error:function(){}}):h.ajax({url:A+ca,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:D,cache:!0,
crossDomain:!0,timeout:1E4,success:G,error:function(){}})},getSearchProductcard:function(ca){var K=[];h.each(T,function(E,U){K.push(U.modelCode)});var D=h.cookies.get("country_region")?h.cookies.get("country_region").toString():"",f={modelList:K.toString(),onlyRequestSkuYN:"Y",saleSkuYN:"N",siteCode:u};if("ca"===u||"ca_fr"===u)f.regionCode=null!=D&&""!=D?D:"CA-ON";w&&(f.shopSiteCode=n);var C=(D="true"===h("#isEppPage").val())?"epp/v2":"b2c";D&&(f.companyCode=h("#eppCompanyCode").val(),f.shopSkuYN=
"N",l.sg.epp.common.isUserGroupPricing&&(f.groupName=l.sg.epp.common.groupName),""!=l.sg.epp.common.userStoreId&&(f.o2oId=l.sg.epp.common.userStoreId));h.ajax({url:F+"/"+W+("/"+C+"/product/card/detail/")+x,type:"GET",data:f,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,h.each(E,function(U,R){var y=R.modelList,da=R.categorySubTypeEngName;null!=y&&h.each(y,
function(wa,ra){var oa=ra.modelCode,ea=T[oa].stocklevel;T[oa]&&(ra.displayName||(ra.displayName=T[oa].name),ra.thumbUrl||(ra.thumbUrl=T[oa].imageUrl),ra.thumbUrlAlt||(ra.thumbUrlAlt=T[oa].imageUrlAlt),ra.priceDisplay=T[oa].price,ra.promotionPriceDisplay=T[oa].promotionPrice,ra.price=T[oa].priceValue,ra.promotionPrice=T[oa].promotionPriceValue,ra.stocklevel=ea,ra.isStock=!(""===ea||"OUTOFSTOCK"===ea.toUpperCase()),ra.idx=String(U)+"-"+String(wa),ra.categorySubTypeEngName=da)})}),B=E)},error:function(){},
complete:function(){ca(B)}})},setPriceInfo:function(ca){var K=ca.price,D=ca.promotionPrice,f=Number((parseFloat(K)-parseFloat(D)).toFixed(2)),C=currencyComma(f,aa),E=ca.priceDisplay||(K?currencyComma(K,aa):"");ca=ca.promotionPriceDisplay||(D?currencyComma(D,aa):"");return{promotionPrice:D,productPrice:K,savePriceTemp:f,saveText:C,productPriceDisplay:E,promotionPriceDisplay:ca}}}})(window,window.jQuery);
(function(l,h){function G(v,F){v.push({fmyChipType:F.fmyChipType,optionList:[{optionCode:F.fmyChipCode,optionLocalName:F.fmyChipLocalName,optionName:F.fmyChipName}]})}var u=h("#priceCurrency").val();h=h("#siteCode").val();var p="nl"===h||"be"===h||"be_fr"===h;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 T=
{};T.modelList=W[aa];T.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=T.chipOptions;x=x.fmyChipList;for(var e=0;e<x.length;e++){var n=x[e];if(0<w.length){for(var k=!0,A=0;A<w.length;A++){var ca=w[A];if(ca.fmyChipType===n.fmyChipType){var K={optionCode:n.fmyChipCode,optionLocalName:n.fmyChipLocalName,
optionName:n.fmyChipName};k=!1;-1===JSON.stringify(ca.optionList).indexOf(JSON.stringify(K))&&ca.optionList.push(K)}}k&&G(w,n)}else G(w,n)}}v++;F.push(T)}return F},setPriceInfo:function(v){var F=0,W=0,aa=0,x="",T="",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)-parseFloat(F)).toFixed(2)),x=currencyComma(aa,u),T=v.price_info[0].msrp_price.formatted_value,B=v.price_info[0].sale_price.formatted_value,
null!=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),T=p||!T?currencyComma(W,u):T,B=p||!B?currencyComma(F,u):B);return{promotionPrice:F,productPrice:W,savePriceTemp:aa,saveText:x,productPriceDisplay:T,promotionPriceDisplay:B}}}})(window,window.jQuery);
(function(l,h){function G(){var O=h("#voucherTotal"),b=h("#voucherBalance"),r=h("#voucherCharge"),H=currencyComma(0,k),N=h(".better-together__headline-text"),Z=h(".better-together__desciption");O.html(H);b.html(H);r.html(H);if(R)O=e.detailSharedObj.voucherdata,Z="",O.formatted_sales_pitch?Z=O.formatted_sales_pitch:O.sales_pitch&&(Z=O.sales_pitch),N.html(Z),b.html(O.discount_description[0].formatted_value),b.attr("data-price",O.discount_description[0].value),b.attr("data-oriPrice",O.discount_description[0].value);
else for(O=e.detailSharedObj.voucherdataHybris,r=0;r<O.length;r++){H=O[r].key;var d=O[r].value;d&&("voucherPrice"===H&&(b.html(currencyComma(d,k)),b.attr("data-price",d),b.attr("data-oriPrice",d)),"mainTitle"===H&&N.html(d),"subTitle"===H&&(Z.html(d),Z.show()))}h(".better-together").addClass("better-together__selected");h(".better-together__selected-info").show()}function u(){var O=h("#voucherTotal"),b=h("#voucherBalance"),r=h("#voucherCharge"),H=b.attr("data-oriPrice"),N=h(".better-together__selected-title .number span");
O.attr("data-price",0);b.attr("data-price",H);r.attr("data-price",0);O.html(currencyComma(0,k));b.html(currencyComma(H,k));r.html(currencyComma(0,k));N.html(0);O=h(".better-together .better-together__cta .cta--on");O.find("span").html(ea);O.removeClass("cta--on")}function p(O){var b=h("#voucherBalance"),r=Number(b.attr("data-oriPrice"))||0;b=Number(b.attr("data-price"))||0;if(0===b){var H="allVoucher";var N=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
O="voucher"+O}else b===r?(H="redeem",N=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(b,k)),O="skip"+O):0<b&&(H="voucher",N=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(b,k)),O="voucher"+O);confirmPopup(N,H,O)}function v(O){A=O;null==A||0===Object.keys(A).length?setInterval(function(){e.DetailAfterEvent.addToCartCta([],!0,!0)},1E3):(T(A),e.detailSharedObj.hasVoucher&&
G(),l.sg.components.betterTogether.show(document.querySelector(".better-together"),h(".better-together").siblings().add(h(".better-together").parent().siblings()),U),l.sg.components.betterTogether.reInit(),0===h(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&h(".better-together__cta-more").hide())}function F(O,b){for(var r=0;r<O.length;r++)if(O[r]===b)return!0;return!1}function W(O,b,r){var H="",N=h("#scene7domain").val();O&&(b=-1<O.indexOf("?")?"":"?"+b,-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/")?H=O:(r&&(N=N.replace("/image/","/content/")),H=N+O),H+=b);return H}function aa(O){var b="",r=O.modelList[O.frontModelIdx],H=r.isStock,N=E.setPriceInfo(r),Z=N.promotionPrice,d=N.savePriceTemp,M=N.saveText,t=N.productPriceDisplay,z=N.promotionPriceDisplay;
N=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"'+
r.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=O.modelList[O.frontModelIdx];if(O.viewOptionObj&&
0<Object.keys(O.viewOptionObj).length){var X="",V=0,P=O.viewOptionObj,S=O.optionTypeList;for(Da in O.viewOptionObj){var Q=Da.toLowerCase().replace(/ /g,"-"),ha=O.viewOptionObj[Da].optionList,ka="",la=D?"evoucher":"add-on";O.viewOptionObj[Da].styleAttr&&(ka=O.viewOptionObj[Da].styleAttr);if("COLOR"===Da){var ua="",ya="",sa;for(sa in ha){var Ma=ha[sa];var pa=!1;var a=Ma.modelIdx.split(",");if(null!=Ma.modelIdx&&F(a,String(O.frontModelIdx))){pa=!0;ua=Ma.modelIdx;var c=""}else if(c=" is-disabled",0===
V)c="";else{var m=X.split(","),g;for(g in a)if(F(m,a[g])){c="";break}}m=a="";if(""===c){var q=Ma.modelIdx;var ba=[],J=!0,fa;for(fa in P)if(fa!==Da){var qa=P[fa].optionList,ia;for(ia in qa){var Aa=qa[ia];Aa=Aa.modelIdx;var Ia=Aa.split(",");-1<Ia.indexOf(String(O.frontModelIdx))&&ba.push(Aa)}}q=L(P,q,ba,J,S);O.modelList.length>q&&O.modelList[q]&&(a=O.modelList[q].modelCode,m=O.modelList[q].modelName)}ba="pdd10-"+Q+"-"+sa+"-"+I.idx;J="pdd10-"+Q+"-"+I.idx;ya+='\x3cspan class\x3d"option-selector__swiper-slide'+
c+'"\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"'+la+":"+Da.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"'+
ba+'"\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=ua;Q="";for(sa in ha)Ma=ha[sa],a=Ma.modelIdx.split(","),null!=Ma.modelIdx&&F(a,String(O.frontModelIdx))&&(Q=Ma.optionLocalName);Z+='\x3cdiv class\x3d"option-selector__color-name"\x3e'+Granite.I18n.get("Color")+' : \x3cspan class\x3d"color-name-text"\x3e'+
Q+'\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"'+ka+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+ya+'\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'+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-'+
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'+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"===Da||
"TV SIZE"===Da||"HOME APPLIANCE SIZE"===Da){ya=ua="";for(var Fa=0;Fa<ha.length;Fa++){Ma=ha[Fa];pa=!1;a=Ma.modelIdx.split(",");if(null!=Ma.modelIdx&&F(a,String(O.frontModelIdx)))pa=!0,ua=Ma.modelIdx,c="";else if(c=" is-disabled",0===V)c="";else for(g in m=X.split(","),a)if(F(m,a[g])){c="";break}m=a="";if(""===c){q=Ma.modelIdx;ba=[];J=!1;for(fa in P)if(fa!==Da)for(ia in qa=P[fa].optionList,qa)Aa=qa[ia],Aa=Aa.modelIdx,Ia=Aa.split(","),-1<Ia.indexOf(String(O.frontModelIdx))&&ba.push(Aa);q=L(P,q,ba,J,
S);O.modelList.length>q&&O.modelList[q]&&(a=O.modelList[q].modelCode,m=O.modelList[q].modelName)}ba="pdd10-"+Q+"-"+Fa+"-"+I.idx;J="pdd10-"+Q+"-"+I.idx;ya+='\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"'+
la+":"+Da.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=ua;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"'+
ka+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+ya+'\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'+
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-'+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'+
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'}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')+
((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"'+N+':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+
'"\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"!==n||H)b+='\x3cdiv class\x3d"better-together__price"\x3e'+z+'\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'+
Granite.I18n.get("Original Price")+": \x3c/span\x3e\n\t\t\t\t\t\t"+(f||"de"===n?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"+(f?"":'\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";O=ca.includes(r.idx);t=Granite.I18n.get("Out Of Stock");d=Granite.I18n.get("Item added");var Da=Granite.I18n.get("Add to cart");M=Granite.I18n.get("Add");t=H?O?d:D?M:Da:t;return b+='\x3cdiv class\x3d"better-together__cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--contained cta--black'+
(!H||O&&!D?" cta--disabled":"")+(O&&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"'+N+':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"}
function x(O,b){null==O.modelList[b].displayName&&(O.modelList[b].displayName="");var r={};for(d in O.modelList){var H=O.modelList[d].fmyChipList,N;for(N in H){var Z=H[N].fmyChipType+"+"+H[N].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+H[N].fmyChipLocalName.replace('"',"").replace("\x26quot;","");r[Z]=void 0==r[Z]?d:r[Z]+(","+d)}}var d=[];H={};if(O.chipOptions)for(N=0;N<O.chipOptions.length;N++){var M=O.chipOptions[N],t=M.fmyChipType,z=M.optionList,I;for(I in z)Z=M.fmyChipType+"+"+z[I].optionCode.replace('"',
"").replace("\x26quot;","")+"+"+z[I].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=r[Z]&&(z[I].modelIdx=r[Z]);H[t]={};H[t].optionList=z;d.push(t)}O.viewOptionObj=H;O.optionTypeList=d;O.frontModelIdx=b;return O}function T(O){var b="";ca=[];K=[];D=l.sg.components.dynamic.detailSharedObj.hasVoucher;if(null!=O){b="";for(var r=0;r<O.length;r++){var H=O[r];if(null!=H.modelList&&0<H.modelList.length){for(var N=0,Z=null,d=0;d<H.modelList.length;d++){var M=H.modelList[d],t=M.isStock;M.selected&&
"Y"===M.selected&&(N=d,t&&(Z=d))}if(null==Z)for(d=0;d<H.modelList.length;d++)if(M=H.modelList[d],M.isStock){Z=d;break}null==Z&&(Z=N);H=x(H,Z);b+=aa(H)}}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'+
Granite.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'}h(".better-together .scrollbar__contents").html(b);B()}function B(){h(".better-together").off("click",".option-selector__color input, .option-selector__size input");h(".better-together").on("click",".option-selector__color input, .option-selector__size input",
function(){var O=(h(this).closest(".better-together__item").attr("data-index")||"").split("-")[0],b=h(this).data("modeli");setTimeout(function(){if(null!=b){A[O].frontModelIdx=b;var r=x(A[O],b),H=h(".better-together__item.unbind-option").eq(O),N=h(".better-together__item.unbind-option").index(H);H.find(".option-selector__swiper-wrapper").each(function(Z){Z=A[O].optionTypeList[Z];var d=h(this).attr("style");A[O].viewOptionObj[Z].styleAttr=d});H.replaceWith(aa(r));H=h(document.querySelectorAll(".better-together__item.unbind-option")[N]);
H.addClass("is-item-visible");l.sg.components.betterTogether.reInitCard(H[0]);B()}},300)});h(".better-together").off("click",".better-together__cta .cta:not(.cta--disabled)");h(".better-together").on("click",".better-together__cta .cta:not(.cta--disabled)",function(){var O=h(this),b=Granite.I18n.get("Item added"),r=O.closest(".better-together__item").attr("data-index"),H=r.split("-");H=A[H[0]].modelList[H[1]];H=R?H.shopSKU:H.modelCode;D?(b=ca.indexOf(r),O=parseFloat(O.closest(".better-together__item").attr("data-price")),
-1<b?(w(O,!1),ca.splice(b,1),K.splice(b,1)):(w(O,!0),ca.push(r),K.push(H))):(O.text(b),O.addClass("cta--disabled"),ca.push(r),K.push(H),r=Granite.I18n.get("Product has been successfully added to cart"),"pl"!==n&&confirmPopup(r,"addToCart"));r=h("#primaryInfoGoCart");O=h("#primaryInfoCheckOut");b=h("#primaryInfoGoCart, #primaryInfoCheckOut");if(0<ca.length){for(var N=H="",Z="",d="",M="",t="",z="",I="",X="",V="",P=0;P<ca.length;P++){var S=ca[P],Q=S.split("-")[0];S=S.split("-")[1];Q=A[Q].modelList[S];
S=E.setPriceInfo(Q);var ha=S.productPrice,ka="",la="";0<P&&(ka=",",la=";");H+=ka+Q.modelCode;N+=ka+Q.modelName;Z+=la+Q.displayName;d+=ka+ha;M+=ka+S.promotionPrice;t+=ka+Q.pviTypeName;z+=ka+Q.pviSubtypeName;I+=ka+Q.categorySubTypeEngName;X+=ka+ha;V+=ka+1}t=t.toLowerCase();z=z.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"),O.attr("an-tr","pdd10_product bought together-"+
C+"-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"),O.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",H).attr("data-modelname",N).attr("data-modeldisplay",Z).attr("data-modelprice",
d).attr("data-discountprice",M).attr("data-pvitype",t).attr("data-pvisubtype",z).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"),O.attr("an-tr","pdd10_product bought together-"+C+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout")):
(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"),O.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")})}
function w(O,b){var r=h("#voucherTotal"),H=h("#voucherBalance"),N=h("#voucherCharge"),Z=parseFloat(r.attr("data-price")||0),d=parseFloat(H.attr("data-oriprice")||0);Z=b?Z+O:Number((parseFloat(Z)-parseFloat(O)).toFixed(2));O=Number((parseFloat(d)-parseFloat(Z)).toFixed(2));0>O?(b=-O,O=0):b=0;r.attr("data-price",Z);H.attr("data-price",O);N.attr("data-price",b);r.html(currencyComma(Z,k));H.html(currencyComma(O,k));N.html(currencyComma(b,k))}var e=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
n=h("#siteCode").val(),k=h("#priceCurrency").val(),A=[],ca=[],K=[],D=!1,f="nl"===n||"be"===n||"be_fr"===n,C=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),E={},U=null,R=!1,y=!1,da=Granite.I18n.get("From"),wa=Granite.I18n.get("or"),ra=Granite.I18n.get("Monthly Price:"),oa=Granite.I18n.get("Full Price:"),ea=Granite.I18n.get("Add"),na=Granite.I18n.get("Are you sure to remove this product?"),L=function(O,b,r,H,N){b=b.split(",");var Z=b[0];N=N.indexOf("MEMORY");if(!R&&!y&&H&&0<N){r=O.MEMORY.optionList;
var d=0,M=0,t;for(t in r){Z=r[t].modelIdx.split(",");for(var z in Z)if(F(b,Z[z])){O=r[t].optionCode.replace("TB","000").replace(/[^0-9]/g,"");M<O&&(M=O,d=Z[z]);break}}b=d}else{for(d in r)if(t=r[d]){z=t.split(",");t=[];for(M in b)-1<z.indexOf(String(b[M]))&&t.push(b[M]);0<t.length&&(b=t)}b=0<b.length?b[0]:Z}return b};h(document).on("click",".better-together__selected .better-together__selected-close",function(){0<h(".better-together .better-together__cta .cta--on").length&&confirmPopup(na,"voucherDelete",
"voucherClearAll")});h(document).on("click","#voucherClearAll",function(){ca=[];K=[];u()});h(document).on("click","#primaryInfoGoCart",function(){e.detailSharedObj.hasVoucher?p("GoCart"):e.DetailAfterEvent.addToCartCta(K,!0,!0)});h(document).on("click","#primaryInfoCheckOut",function(){e.detailSharedObj.hasVoucher?p("CheckOut"):e.DetailAfterEvent.checkOutCta(K,!0,!0)});h(document).on("click","#voucherGoCart",function(){e.DetailAfterEvent.addToCartCta(K,!0,!0)});h(document).on("click","#voucherCheckOut",
function(){e.DetailAfterEvent.checkOutCta(K,!0,!0)});h(document).on("click","#skipGoCart",function(){e.DetailAfterEvent.addToCartCta([],!0,!0)});h(document).on("click","#skipCheckOut",function(){e.DetailAfterEvent.checkOutCta([],!0,!0)});h(document).on("click",".better-together__cta-more",function(){l.sg.components.betterTogether.more();0===h(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&h(this).hide()});e.bridgePage={moveBridgePage:function(O){var b=e.detailSharedObj;
U=O;O=e.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||"";var r=O.split(" "+wa+" ");O=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'+da+"\x3c/span\x3e\n                    "+r[0].replace(da,"")+'\n                \x3c/div\x3e\n                \x3cdiv class\x3d"better-together__full-price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+
oa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__full-price-text"\x3e'+wa+"\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                    '+O+"\n                \x3c/div\x3e";h(".better-together .better-together__price-wrap").html(O);R="GPv2"===
b.apiFlag;y="Hybris-new"===b.apiFlag;R?(E=e.betterTogetherGPv2,v(E.setFamily(b.addOnInfoTemp))):y?(E=e.betterTogetherNewHybris,E.getSearchProductcard(v)):(E=e.betterTogetherHybris,E.getSearchProductcard(v),h("#primaryInfoCheckOut").remove());e.detailSharedObj.hasVoucher?(u(),h("#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"),h("#primaryInfoGoCart").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"),h(".better-together__back-cta").attr("an-la","evoucher:back"),h(".better-together__item-box .better-together__fiche a.cta-text").attr("an-la","evoucher:product fiche")):(h("#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"),h("#primaryInfoGoCart").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"));h("#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,
window.jQuery);
(function(l,h){function G(){var Y=h("#voucherTotal"),ja=h("#voucherBalance"),za=h("#voucherCharge"),Ba=currencyComma(0,ra),Ha=h(".pdd16-step-buying__headline"),va=h(".pdd16-step-buying__sub-headline"),Ea=h(".pdd16-step-buying__disclaimer");y.useAddonV2&&(Y=h("#voucherTotal2"),ja=h("#voucherBalance2"),za=h("#voucherCharge2"),Ha=h(".pdd16-step-buying-v2__headline"),va=h(".pdd16-step-buying-v2__sub-headline"),Ea=h(".pdd16-step-buying-v2__disclaimer"));Y.html(Ba);ja.html(Ba);za.html(Ba);if(ea)Y=U.detailSharedObj.voucherdata,
va="",Y.formatted_sales_pitch?va=Y.formatted_sales_pitch:Y.sales_pitch&&(va=Y.sales_pitch),Ha.html(va),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=U.detailSharedObj.voucherdataHybris,za=0;za<Y.length;za++){Ba=Y[za].key;var Ja=Y[za].value;Ja&&("voucherprice"===Ba.toLowerCase()&&(ja.html(currencyComma(Ja,ra)),ja.attr("data-price",Ja),ja.attr("data-oriPrice",Ja)),"maintitle"===
Ba.toLowerCase()&&Ha.html(Ja),"subtitle"===Ba.toLowerCase()&&(va.html(Ja),va.show()),"description"===Ba.toLowerCase()&&(Ea.find("p").html(Ja),Ea.show()))}}function u(){var Y=h("#voucherTotal"),ja=h("#voucherBalance"),za=h("#voucherCharge"),Ba=h("#selectedItem");y.useAddonV2&&(Y=h("#voucherTotal2"),ja=h("#voucherBalance2"),za=h("#voucherCharge2"),Ba=h("#selectedItem2"));var Ha=ja.attr("data-oriPrice"),va=h(".better-together__selected-title .number span");Y.attr("data-price",0);ja.attr("data-price",
Ha);za.attr("data-price",0);Ba.html("");Y.html(currencyComma(0,ra));ja.html(currencyComma(Ha,ra));za.html(currencyComma(0,ra));va.html(0);ua=la=0}function p(Y){var ja=h("#voucherBalance");y.useAddonV2&&(ja=h("#voucherBalance2"));var za=Number(ja.attr("data-oriPrice"))||0;ja=Number(ja.attr("data-price"))||0;if(0===ja){var Ba="allVoucher";var Ha=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
Y="voucher"+Y}else ja===za?(Ba="redeem",Ha=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&&(Ba="voucher",Ha=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(Ha,Ba,Y);Y=h(".confirm-popup");za=Y.find(".confirm-popup__title");Ha=Y.find(".cta--contained");ja=Y.find(".cta--outlined");if("hk"===
da||"hk_en"===da)"redeem"===Ba?(za.html(Granite.I18n.get("Are you sure? (redeem)")),Y.find(".cta--outlined.cta--black").attr("id","skipGoCartAddOn"),Ha.html(Granite.I18n.get("Use Your Galaxy Credit")),ja.html(Granite.I18n.get("Skip")),Y.find(".cta--contained.cta--emphasis").removeAttr("id")):"voucher"===Ba&&(za.html(Granite.I18n.get("Are you sure? (voucher)")),Y.find(".cta--outlined.cta--black").attr("id","voucherGoCartAddOn"),Ha.html(Granite.I18n.get("Use Your Galaxy Credit")),ja.html(Granite.I18n.get("Skip")),
Y.find(".cta--contained.cta--emphasis").removeAttr("id"))}function v(Y){if(r&&y.vdcombodataHybris&&0<y.vdcombodataHybris.length){var ja="";y.vdcombodataHybris.forEach(function(xa){"maintitle"===xa.key.toLowerCase()?ja+=xa.value:"subtitle"===xa.key.toLowerCase()&&(ja=ja?ja+("\x3cbr/\x3e"+xa.value):ja+xa.value)});h(".pdd16-step-buying__promotion-banner .pdd16-step-buying__promotion-banner-text").html(ja);h(".pdd16-step-buying__promotion-banner").show()}else h(".pdd16-step-buying__promotion-banner").remove();
if(y.hasGift&&y.giftdataHybris&&0<y.giftdataHybris.length){var za=h(".pdd16-step-buying .pdd16-step-buying__card-input");za&&(ba={modelCode:[za.find("input:checked").attr("data-modelcode")]})}else l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();if(ea){y.addOnCategoryList.forEach(function(xa,Xa){xa.category.productList.forEach(function(Ta,Pa){y.addOnSearchGPv2.forEach(function(Wa,ab){Wa.familyId===Ta.family_id&&(y.addOnInfoTemp.forEach(function(Ya){Wa.modelList.filter(function(Za,
bb){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(bb)}})}),y.addOnCategoryList[Xa].category.productList[Pa]=Wa,
y.addOnCategoryList[Xa].category.idx=String(Xa))})})});var Ba=[];y.addOnCategoryList.forEach(function(xa){xa.category.idx&&Ba.push(xa)});y.addOnCategoryList=Ba;y.addOnCategoryList.forEach(function(xa,Xa){var Ta=[];xa.category.productList.reduce(function(Pa,Wa){Pa.includes(Wa.familyId)||(Pa.push(Wa.familyId),Ta.push(Wa));return Pa},[]);xa.category.productList=Ta});I=y.addOnCategoryList}else I=Y;if(null==I||0===Object.keys(I).length)setInterval(function(){D()},1E3);else{if(y.useAddonV2){h(".pd-buying-price .pd-buying-price__cta .cta").attr("id",
"primaryInfoGoCartAddOn");var Ha={};Y=h("#primaryInfoGoCartAddOn")[0].attributes;h.each(Y,function(){Ha[this.name]=this.value});h(".pd-buying-price .pd-buying-price__cta .cta").attr("id","");h(".pdd16-step-buying-v2__bottom-price__cta a").attr(Ha);Y=Qa.find(".pdd16-step-buying-v2__bottom-price-inner");za=Qa.find(".pdd16-step-buying-v2__evoucher");var va=y.drawObj.price.priceWrapper.info,Ea=h(".pdd16-step-buying__header-price-text")[0].innerText.split(" "+qa+" "),Ja=Ea[0];Ea=1<Ea.length?Ea[1]:"";var ta=
"";"bg"==da&&(Ja=document.querySelector(".pdd16-step-buying__header-price-text"),Ja.querySelectorAll("sup").forEach(function(xa){return xa.replaceWith(","+xa.textContent)}),Ja=Ja.textContent.trim(),Ea=$jscomp.makeIterator(Ja.split(" "+qa+" ")),Ja=Ea.next().value,Ea=Ea.next().value,ta=function(xa){return xa.replace(/,(\d+)(?!\d)/g,"\x3csup\x3e$1\x3c/sup\x3e")},Ja=ta(Ja),Ea=Ea?ta(Ea):"");h(".pdd16-step-buying-v2__bottom-headline-text").text(y.displayName);h("#primaryInfoGoCartAddOn").text(Granite.I18n.get("Buy now"));
Ja&&Y.find(".final-text strong").html(Ja);Ea&&Y.find(".monthly-text").html(qa+" "+Ea);"in"==da?(ta=va.savePrice,Y.find(".pdd16-step-buying-v2__bottom-price-tax").text(""+va.orignalPriceAddText),ta&&(Y.find(".sale-text").text(ta),Y.find(".pdd16-step-buying-v2__bottom-price-tax").append('\x3cinput type\x3d"hidden" class\x3d"hiddenSavePrice" value\x3d"'+va.unformattedSavePrice+'"/\x3e'))):Y.find(".pdd16-step-buying-v2__bottom-price-save").remove();y.hasVoucher&&za.show();k(I)}else n(I);R.hide();l.scrollTo(0,
0);Ka.show();if(ea||na){Y=h("[class*\x3d'feature-benefit']");for(za=0;za<Y.length;za++)Y[za].remove();Y=h("[class*\x3d'three-column-carousel']");for(za=0;za<Y.length;za++)Y[za].remove();h(".video-wrapper").remove();Y=h(".root.responsivegrid \x3e div");for(va=0;va<Y.length;va++)za=Y[va].classList,za.value.includes("aem-Grid--12")||Y[va].remove();0<h(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&h(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(L)for(Y=
h(".root.responsivegrid \x3e div"),va=0;va<Y.length;va++)za=Y[va].classList,za.value.includes("aem-Grid--default--12")||Y[va].remove();Ka.siblings().add(Ka.parent().siblings()).hide();setTimeout(function(){y.useAddonV2?l.sg.components.stepbuyingV2.init():l.sg.components.stepbuying.init()},50);0===h(".scrollbar__contents .pdd16-step-buying__card").not(".is-item-visible").length&&h(".pdd16-step-buying__cta-more").hide();U.detailSharedObj.hasVoucher?(G(),_satellite.setVar("Add Page Name","evoucher")):
_satellite.setVar("Add Page Name","add on");_satellite.track("page view");Na.get("useStaticTitle")&&(h(".pdd16-step-buying__headline")[0].innerHTML=Na.get("staticTitle"));Na.get("useStaticSubTitle")&&h(".pdd16-step-buying__sub-headline").text(Na.get("staticSubTitle"))}}function F(Y,ja){for(var za=0;za<Y.length;za++)if(Y[za]===ja)return!0;return!1}function W(Y,ja,za){var Ba="",Ha=h("#scene7domain").val();Y&&(-1<Y.indexOf("?")&&(Y=Y.replace("medias",""),Y=Y.substring(0,Y.indexOf("?")),Y+="?"+ja),-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/")?Ba=Y:(za&&(Ha=Ha.replace("/image/","/content/")),Ba=Ha+Y));return Ba}function aa(Y,ja,za){ja="";var Ba=h("#scene7domain").val();Y&&(-1<Y.indexOf("?")&&(Y=Y.replace("medias",""),Y=Y.substring(2,Y.indexOf("?")),Y=Y.substring(0,
Y.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:(za&&(Ba=Ba.replace("/image/","/content/")),ja=Ba+Y));return ja}function x(){X=[];V=[];P=[];t={}}function T(Y){var ja="",za="",Ba=a[Y].priceValue,Ha=a[Y].promotionPriceValue?a[Y].promotionPriceValue:
Ba,va=Ha?Ba-Ha:0,Ea=a[Y].promotionPrice?a[Y].promotionPrice:a[Y].price;var Ja='\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';za+='\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'+
a[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 '+Ja+" \x3c/div\x3e ";if(Ja="outofstock"!==(a[Y].stocklevel?a[Y].stocklevel.toLowerCase():"outofstock")?!0:!1)if(y.addonBundleRelatedData&&0!=y.addonBundleRelatedData.length)for(var ta=$jscomp.makeIterator(y.addonBundleRelatedData),xa=ta.next();!xa.done;xa=ta.next()){if(xa=xa.value,
xa.bundleModelCode===a[Y].modelCode){var Xa=[];for(Pa in xa)"bundleModelCode"!==Pa&&xa[Pa]&&(Xa[xa[Pa].groupCode]||(Xa[xa[Pa].groupCode]=[]),"outOfStock"!==xa[Pa].stocklevel&&xa[Pa].colorCode&&Xa[xa[Pa].groupCode].push(xa[Pa]));for(var Ta in Xa)Ja&&0==Xa[Ta].length&&(Ja=!1)}}else Ja=!1;var Pa=Ja?Aa:ma;za+='\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'+
Ea+'\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"card-was '+(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eOriginal Price: '+Ba+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+Ha+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+(va&&!Ca?"\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";"cn"==da&&frontModel.isComingSoon&&1==frontModel.isComingSoon?za+='\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"'+
a[Y].modelcode+'" data-originPrice\x3d'+Ba+" data-savePrice\x3d"+va+" data-promotionPrice\x3d"+Ha+' 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"'+Aa+'" data-text-selected\x3d"'+La+'"\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 ':
("cn"!=da||Ja||(ja=' data-gs-flag\x3d"GetStock"'),za+='\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--icon cta--icon-leading bundleSelect cta--bundle '+(Ja?"cta--black":"js-cta-stock cta--outlined")+'" '+ja+' title\x3d"SELECT" id\x3d"bundleSelect" data-modelcode\x3d"'+a[Y].modelcode+'" data-originPrice\x3d'+Ba+" data-savePrice\x3d"+va+" data-promotionPrice\x3d"+Ha+' 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"'+
Aa+'" data-text-selected\x3d"'+La+'"\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 za}function B(Y,ja,za){var Ba="",Ha=r?Y.thirdPASeller:"",va=Y.modelList[Y.frontModelIdx],Ea=va.fmyChipList,Ja="";if(Ea&&0<Ea.length)for(var ta=
0;ta<Ea.length;ta++)if("COLOR"==Ea[ta].fmyChipType){Ja=""!==va.fmyChipList[ta].fmyChipLocalName?va.fmyChipList[ta].fmyChipLocalName:va.fmyChipList[ta].fmyChipName;break}Ea=va.isStock;var xa=z.setPriceInfo(va);ta=xa.promotionPrice;var Xa=S?"evoucher":"add-on",Ta="";Q=ja;var Pa=va.thumbUrl?va.thumbUrl:"",Wa=va.thumbUrlAlt?va.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');Wa=Pa="";if(va.commercialFlag)Pa=va.commercialFlag,Wa="badge-icon--bg-color-teal";else if(va.topFlags&&va.topFlags.iconTitle&&va.topFlags.iconTypeCd)switch(Pa=va.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=va.topFlags.iconTitle,Wa="badge-icon--bg-color-teal"}Ba=Ba+('\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 \ucd94\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'+
(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')+(va.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+va.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=ea?": "+Ja:"\x26nbsp;"+Ja;Ba+='\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'+
(Ha?'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'+(Ja?'\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"+Va(Y,!1,ja,za)+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";
Y=va.energyLabelGrade&&va.energyFileUrl;Ba+='\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'+(va.energyLabelGrade&&va.ficheFileUrl?'\x3ca href\x3d"'+va.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")+
"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Y?'\x3ca class\x3d"badge '+va.energyLabelClass2+'" href\x3d"'+va.energyFileUrl+'" target\x3d"_blank" title\x3d"'+va.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+va.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+va.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!==xa.promotionPrice&&""!==xa.promotionPrice&&"0"!==xa.promotionPrice&&
Number(parseFloat(xa.productPrice).toFixed(2))!==Number(parseFloat(xa.promotionPrice).toFixed(2))?!0:!1;Z&&(Y=!1);za="";M&&va.monthlyPriceInfo&&va.monthlyPriceInfo.leasingMonthly&&va.monthlyPriceInfo.leasingMonths&&(za=currencyComma(va.monthlyPriceInfo.leasingMonthly,ra),Ha=va.monthlyPriceInfo.leasingMonths,za='\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",
[za])+" "+Granite.I18n.get("for {0} mos",[Ha]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==da||Ea?"co"===da&&xa.vatPrice?Ba+='\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: '+xa.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+xa.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+
xa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+xa.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":Y?M?xa.lowestWasPrice?((Y=Math.round((parseFloat(xa.productPrice)-parseFloat(xa.lowestWasPrice))/parseFloat(xa.lowestWasPrice)*100))&&0<Y&&(Y="+"+Y),Ba+='\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'+
xa.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(xa.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'+xa.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'+
Granite.I18n.get("Save {0}",xa.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"+za+"\n\t\t\t\t\t\t\t\t \x3c/div\x3e"):Ba+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+xa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t                \x3cspan class\x3d"card-was '+(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+xa.productPriceDisplay+
'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+xa.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+xa.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==da?(Y="MRP: "+xa.productPriceDisplay+" (Incl. of all taxes)",za=xa.saveText?'\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",xa.saveText)+"\x3c/span\x3e":"",Ba+='\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'+
xa.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"+za+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t              \x3c/div\x3e"):Ba+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+xa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t                \x3cspan class\x3d"card-was '+
(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+xa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+xa.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!wa&&"tr"!==da||wa&&"pl"!==da?"\x3cdel\x3e"+xa.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":d&&xa.lowestWasPrice?(xa.savePriceTemp=0,0<xa.lowestWasPrice&&
("au"===da?xa.lowestWasPrice<xa.productPrice&&xa.lowestWasPrice>xa.promotionPrice&&(xa.productPrice=xa.lowestWasPrice,xa.savePriceTemp=xa.productPrice-xa.promotionPrice):xa.promotionPrice?(xa.lowestWasPrice<=xa.productPrice&&xa.lowestWasPrice>xa.promotionPrice&&(xa.productPrice=xa.lowestWasPrice),xa.savePriceTemp=xa.productPrice-xa.promotionPrice):xa.lowestWasPrice<=xa.productPrice&&(xa.productPrice=xa.lowestWasPrice)),xa.productPriceDisplay=currencyComma(xa.productPrice,ra),xa.saveText=0<xa.savePriceTemp?
currencyComma(xa.savePriceTemp,ra):"",Ba=xa.saveText?Ba+('\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'+xa.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-suggested '+(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+
(N?"\x3cdel\x3e"+xa.productPriceDisplay+"\x3c/del\x3e":""+xa.productPriceDisplay)+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",xa.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\x3c/div\x3e"):Ba+('\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'+(xa.promotionPrice&&xa.promotionPrice<=xa.productPrice?xa.promotionPriceDisplay:xa.productPriceDisplay)+
"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e")):"in"==da?Ba+='\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'+xa.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: '+(xa.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"):
"au"===da?(xa.savePriceTemp=0,xa.productPrice>xa.promotionPrice&&(xa.savePriceTemp=xa.productPrice-xa.promotionPrice),xa.productPriceDisplay=currencyComma(xa.productPrice,ra),xa.saveText=0<xa.savePriceTemp?currencyComma(xa.savePriceTemp,ra):"",Ba=xa.saveText?Ba+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\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'+xa.promotionPriceDisplay+'\x3c/div\x3e\n\t\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\t\x3cspan class\x3d"pdd16-step-buying__card-price-suggested '+
(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+(N?"\x3cdel\x3e"+xa.productPriceDisplay+"\x3c/del\x3e":""+xa.productPriceDisplay)+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",xa.saveText)+"\x3c/span\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"):Ba+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+
(xa.promotionPrice&&xa.promotionPrice<=xa.productPrice?xa.promotionPriceDisplay:xa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e")):Ba+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+(xa.promotionPrice&&xa.promotionPrice<=xa.productPrice?xa.promotionPriceDisplay:xa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e":Ba+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\x3c/div\x3e';za=X.includes(ja+
"-"+va.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Ta=Granite.I18n.get("COMING SOON");Ha=!1;Ja="";if("cn"==da&&va.isComingSoon&&1==va.isComingSoon)Y=Granite.I18n.get("Coming Soon Title"),Ja=' data-gs-flag\x3d"ComingSoon"';else if(Ea?Y=za?La:Aa:(Y=Granite.I18n.get("Get Stock Alert"),"cn"==da&&(Ja=' data-gs-flag\x3d"GetStock"')),null==Ea||void 0==Ea||null==xa||void 0==xa)Y=Ta,Ha=!0;Ta=null!==xa.promotionPrice&&""!==xa.promotionPrice&&"0"!==xa.promotionPrice?xa.promotionPrice:xa.productPrice;
Pa=xa.productPrice;xa=xa.savePriceTemp;Wa=r?"pdd16_step buying-"+oa+"-cta-button":"pdd16_product bought together-"+oa+"-popup-add";var ab=ea?va.shopSKU:va.modelCode;Ba+='\x3cdiv class\x3d"pdd16-step-buying__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Ha?"cta--disabled":"")+" cta cta--contained cta--icon cta--icon-leading  cta--2line-mo "+(Ea?"cta--black":"js-cta-stock cta--outlined")+"  "+(za?" cta--on":"")+'" '+Ja+' 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")+'" \n\t\t\t\t\t\tdata-modelcode\x3d"'+ab+'" data-modelname\x3d"'+va.modelName+'" data-shopsku\x3d"'+va.shopSKU+'" data-price\x3d'+Ta+" data-text\x3d"+Aa+' data-text-selected\x3d"'+La+'" data-oriprice\x3d"'+Pa+'" data-savePrice\x3d"'+xa+'"\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'+
(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"'+va.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"'+
ja+"-"+va.idx+'" data-price\x3d"'+ta+'"\x3e\n\t\t\t\t\t\t\t\t\t'+Ba+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e"}function w(Y,ja,za){var Ba="",Ha=r?Y.thirdPASeller:"",va=Y.modelList[Y.frontModelIdx],Ea=va.fmyChipList,Ja="";if(Ea&&0<Ea.length)for(var ta=0;ta<Ea.length;ta++)if("COLOR"==Ea[ta].fmyChipType){Ja=""!==va.fmyChipList[ta].fmyChipLocalName?va.fmyChipList[ta].fmyChipLocalName:va.fmyChipList[ta].fmyChipName;break}Ea=va.isStock;ta=z.setPriceInfo(va);var xa=ta.promotionPrice,Xa=S?"evoucher":"add-on",Ta="";
Q=ja;var Pa=va.thumbUrl?va.thumbUrl:"",Wa=va.thumbUrlAlt?va.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');
Wa=Pa="";if(va.commercialFlag)Pa=va.commercialFlag,Wa="badge-icon--bg-color-teal";else if(va.topFlags&&va.topFlags.iconTitle&&va.topFlags.iconTypeCd)switch(Pa=va.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=va.topFlags.iconTitle,Wa="badge-icon--bg-color-teal"}Ba=
Ba+('\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'+
(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'+va.displayName+"\x3c/strong\x3e\n\t            \x3c/div\x3e");Ta=ea?": "+Ja:"\x26nbsp;"+Ja;Ba+='\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'+
(Ha?'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 '+(Ja?"option-selector__color-text":"")+'"\x3e\n\t\t\t\t\t\t'+(Ja?'\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"+
Va(Y,!1,ja,za)+"\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e";Y=va.energyLabelGrade&&va.energyFileUrl;Ba+='\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'+(va.energyLabelGrade&&va.ficheFileUrl?'\x3ca href\x3d"'+va.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")+"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Y?'\x3ca class\x3d"badge '+va.energyLabelClass2+'" href\x3d"'+va.energyFileUrl+'" target\x3d"_blank" title\x3d"'+va.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+va.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+va.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!==ta.promotionPrice&&""!==ta.promotionPrice&&"0"!==ta.promotionPrice&&Number(parseFloat(ta.productPrice).toFixed(2))!==Number(parseFloat(ta.promotionPrice).toFixed(2))?!0:!1;Z&&(Y=!1);za="";M&&va.monthlyPriceInfo&&va.monthlyPriceInfo.leasingMonthly&&va.monthlyPriceInfo.leasingMonths&&(za=currencyComma(va.monthlyPriceInfo.leasingMonthly,ra),Ha=va.monthlyPriceInfo.leasingMonths,za='\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'+
(Granite.I18n.get("From {0}/mo",[za])+" "+Granite.I18n.get("for {0} mos",[Ha]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==da||Ea?"co"===da&&ta.vatPrice?Ba+='\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: '+ta.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+ta.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+
ta.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+ta.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":Y?M?ta.lowestWasPrice?((Y=Math.round((parseFloat(ta.productPrice)-parseFloat(ta.lowestWasPrice))/parseFloat(ta.lowestWasPrice)*100))&&0<Y&&(Y="+"+Y),Ba+='\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'+
ta.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(ta.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'+ta.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'+
Granite.I18n.get("Save {0}",ta.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"+za+"\n\t\t\t\t\t\t\t\t \x3c/div\x3e"):Ba+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+ta.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t                \x3cspan class\x3d"card-was '+(N?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\n\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+
ta.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+ta.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+ta.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==da?(Y="MRP: "+ta.productPriceDisplay+" (Incl. of all taxes)",za=ta.saveText?'\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+Granite.I18n.get("Save {0}",ta.saveText)+"\x3c/span\x3e":"",Ba+='\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'+
ta.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"+za+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t              \x3c/div\x3e"):Ba+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+ta.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t                \x3cspan class\x3d"card-was '+
(N?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\n\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+ta.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+ta.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!wa&&"tr"!==da||wa&&"pl"!==da?"\x3cdel\x3e"+ta.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":d&&ta.lowestWasPrice?(ta.savePriceTemp=0,0<ta.lowestWasPrice&&
("au"===da?ta.lowestWasPrice<ta.productPrice&&ta.lowestWasPrice>ta.promotionPrice&&(ta.productPrice=ta.lowestWasPrice,ta.savePriceTemp=ta.productPrice-ta.promotionPrice):ta.promotionPrice?(ta.lowestWasPrice<=ta.productPrice&&ta.lowestWasPrice>ta.promotionPrice&&(ta.productPrice=ta.lowestWasPrice),ta.savePriceTemp=ta.productPrice-ta.promotionPrice):ta.lowestWasPrice<=ta.productPrice&&(ta.productPrice=ta.lowestWasPrice)),ta.productPriceDisplay=currencyComma(ta.productPrice,ra),ta.saveText=0<ta.savePriceTemp?
currencyComma(ta.savePriceTemp,ra):"",Ba=ta.saveText?Ba+('\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'+ta.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-suggested '+(N?"":"pdd16-step-buying-v2--no-line-through")+
'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+(N?"\x3cdel\x3e"+ta.productPriceDisplay+"\x3c/del\x3e":""+ta.productPriceDisplay)+'\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'+Granite.I18n.get("Save {0}",ta.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\x3c/div\x3e"):Ba+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+(ta.promotionPrice&&
ta.promotionPrice<=ta.productPrice?ta.promotionPriceDisplay:ta.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e")):"in"==da?Ba+='\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'+ta.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: '+
(ta.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"):"au"===da?(ta.savePriceTemp=0,ta.productPrice>ta.promotionPrice&&(ta.savePriceTemp=ta.productPrice-ta.promotionPrice),ta.productPriceDisplay=currencyComma(ta.productPrice,ra),ta.saveText=0<ta.savePriceTemp?currencyComma(ta.savePriceTemp,ra):"",Ba=ta.saveText?Ba+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\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'+
ta.promotionPriceDisplay+'\x3c/div\x3e\n\t\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\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-suggested '+(N?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+(N?"\x3cdel\x3e"+ta.productPriceDisplay+"\x3c/del\x3e":""+ta.productPriceDisplay)+'\x3c/span\x3e\n\t\t\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}",ta.saveText)+"\x3c/span\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"):Ba+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+(ta.promotionPrice&&ta.promotionPrice<=ta.productPrice?ta.promotionPriceDisplay:ta.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e")):Ba+='\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'+
(ta.promotionPrice&&ta.promotionPrice<=ta.productPrice?ta.promotionPriceDisplay:ta.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e":Ba+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\x3c/div\x3e';za=X.includes(ja+"-"+va.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Ha=Granite.I18n.get("COMING SOON");Ja=!1;Ta="";if("cn"==da&&va.isComingSoon&&1==va.isComingSoon)Y=Granite.I18n.get("Coming Soon Title"),Ta=' data-gs-flag\x3d"ComingSoon"';else if(Ea?Y=za?La:
Aa:(Y=Granite.I18n.get("Get Stock Alert"),"cn"==da&&(Ta=' data-gs-flag\x3d"GetStock"')),null==Ea||void 0==Ea||null==ta||void 0==ta)Y=Ha,Ja=!0;Ba+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Ja?"cta--disabled":"")+" cta cta--black "+(Ea?"cta--contained":"js-cta-stock cta--outlined")+"  "+(za?" cta--on":"")+'" '+Ta+' title\x3d"'+Y+'" aria-selected\x3d""  \n\t\t\t\t\t\tan-tr\x3d"'+(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"'+(ea?va.shopSKU:"in"!==da?va.modelCode:va.shopSKU)+'" '+(va.childModelCode?'data-childmodelcode\x3d"'+va.childModelCode+'"':"")+' data-modelname\x3d"'+va.modelName+'" data-shopsku\x3d"'+va.shopSKU+'" data-price\x3d'+(null!==ta.promotionPrice&&""!==ta.promotionPrice&&"0"!==ta.promotionPrice?
ta.promotionPrice:ta.productPrice)+" data-text\x3d"+Aa+' data-text-selected\x3d"'+La+'" data-oriprice\x3d"'+ta.productPrice+'" data-savePrice\x3d"'+ta.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 '+(za?"is-selected":"")+'" role\x3d"listitem"\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-inner" data-index\x3d"'+ja+"-"+va.idx+'" data-price\x3d"'+xa+'"\x3e\n\t\t\t\t\t'+
Ba+"\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 za={};for(Ea in Y.modelList){var Ba=Y.modelList[Ea].fmyChipList,Ha;for(Ha in Ba){var va=Ba[Ha].fmyChipType+"+"+Ba[Ha].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+Ba[Ha].fmyChipLocalName.replace('"',"").replace("\x26quot;","");za[va]=void 0==za[va]?Ea:za[va]+(","+Ea)}}var Ea=[];Ba={};if(Y.chipOptions)for(Ha=0;Ha<Y.chipOptions.length;Ha++){var Ja=Y.chipOptions[Ha],
ta=Ja.fmyChipType,xa=Ja.optionList,Xa;for(Xa in xa)va=Ja.fmyChipType+"+"+xa[Xa].optionCode.replace('"',"").replace("\x26quot;","")+"+"+xa[Xa].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=za[va]&&(xa[Xa].modelIdx=za[va]);Ba[ta]={};Ba[ta].optionList=xa;Ea.push(ta)}Y.viewOptionObj=Ba;Y.optionTypeList=Ea;Y.frontModelIdx=ja;return Y}function n(Y){var ja="",za="";y.hasBundle&&(za=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());x();S=l.sg.components.dynamic.detailSharedObj.hasVoucher;
ya=h(".pdd16-step-buying__header-price-text")[0].innerHTML;Ma=Object.keys(Y).length;if(0<Object.keys(Y).length){var Ba="";h.each(Y,function(Ea,Ja){Ja=Y[Ea].category.productList;for(var ta=q=0;ta<Ja.length;ta++){var xa=Ja[ta];if(null!=xa.modelList&&0<xa.modelList.length){for(var Xa=0,Ta=null,Pa=0;Pa<xa.modelList.length;Pa++){var Wa=xa.modelList[Pa],ab=Wa.isStock;Wa.selected&&"Y"===Wa.selected&&(Xa=Pa,ab&&(Ta=Pa))}if(null==Ta)for(Pa=0;Pa<xa.modelList.length;Pa++)if(Wa=xa.modelList[Pa],Wa.isStock){Ta=
Pa;break}null==Ta&&(Ta=Xa);xa=e(xa,Ta);Ba+=B(xa,Ea)}q++}if(Y[Ea].category.display_name==za){Ja=Y[Ea];a=Ja.category.productList;for(var Ya in Y[Ea].category.productList)ta=Y[Ea].category.productList[Ya],Ba+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+Ja.category.key+"-"+Ya+'-0" data-price\x3d"'+(ta.promotionPriceValue?ta.promotionPriceValue:ta.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+T(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"'+
(Number(Ea)+1==Ma?Fa:Da)+'"\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'+
Ba+'\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';
Ba=""})}h(".pdd16-step-buying .pdd16-step-buying__card-wrap .swiper-wrapper").html(ja);var Ha="";if(r&&!ea){h("#pdd16-step-buying").addClass("pdd16-step-buying--default");Ha=1<h(".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'+Ga+"\x3c/strong\x3e"+(Na.get("useVATInclusiveArea")?Sa:"")+'\x3c/p\x3e\n\t\t\t                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+
ya+'\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'+Da+"\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'+
Fa+"\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 va=Granite.I18n.get("*Savings based on regular Samsung.com price. Discount applied automatically at checkout when two or more qualifying products in basket.");"cn"!=da&&(Ha+='\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__footer-disclaimer"\x3e'+va+"\x3c/p\x3e\n\t\t\t\t\t\t")}else Ha='\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'+
Ga+"\x3c/strong\x3e"+(Na.get("useVATInclusiveArea")?Sa:"")+'\x3c/p\x3e\n\t                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+ya+'\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'+
(Oa?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";h(".pdd16-step-buying__footer").html(Ha);A()}function k(Y){var ja="",za="";y.hasBundle&&(za=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());x();S=l.sg.components.dynamic.detailSharedObj.hasVoucher;ya=h(".pdd16-step-buying-v2__bottom-price-inner")[0].innerHTML;Ma=Object.keys(Y).length;if(0<Object.keys(Y).length){var Ba=
"";h.each(Y,function(Ha,va){va=Y[Ha].category.productList;for(var Ea=q=0;Ea<va.length;Ea++){var Ja=va[Ea];if(null!=Ja.modelList&&0<Ja.modelList.length){"cn"==da&&"01090100"==Ja.categorySubTypeCode&&Ja.modelList.forEach(function(ab,Ya){var Za=ab.idx.split("-");Za[1]=Ya;ab.idx=Za.join("-")});for(var ta=0,xa=null,Xa=0;Xa<Ja.modelList.length;Xa++){var Ta=Ja.modelList[Xa],Pa=Ta.isStock;Ta.selected&&"Y"===Ta.selected&&(ta=Xa,Pa&&(xa=Xa))}if(null==xa)for(Xa=0;Xa<Ja.modelList.length;Xa++)if(Ta=Ja.modelList[Xa],
Ta.isStock){xa=Xa;break}null==xa&&(xa=ta);Ja=e(Ja,xa);Ba+=w(Ja,Ha)}q++}if(Y[Ha].category.display_name==za){va=Y[Ha];a=va.category.productList;for(var Wa in Y[Ha].category.productList)Ea=Y[Ha].category.productList[Wa],Ba+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+va.category.key+"-"+Wa+'-0" data-price\x3d"'+(Ea.promotionPriceValue?Ea.promotionPriceValue:Ea.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+T(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'+
Y[Ha].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-'+
Ha+'",\n\t\t\t                "prevEl": ".pdd16-step-buying-v2__swiper-button.swiper-button-prev.prev-'+Ha+'"\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'+Ba+'\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-'+
Ha+'"\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-'+Ha+'"\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';
Ba=""})}h(".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=h(this),ja=Y.attr("data-modeli"),za=(y.useAddonV2?Y.closest(".pdd16-step-buying-v2__card").children():Y.closest(".pdd16-step-buying__card")).attr("data-index")||"",Ba=za.split("-")[1];za.split("-");var Ha=za.split("-")[0];setTimeout(function(){if(null!=ja){I[Ha].category.productList[Ba].frontModelIdx=
ja;var va=e(I[Ha].category.productList[Ba],ja);if(y.useAddonV2){var Ea=h(".pdd16-step-buying-v2__category").eq(Ha).find(".pdd16-step-buying-v2__card").eq(Ba),Ja=h(".pdd16-step-buying-v2__card").index(Ea);Ea.find(".option-selector__swiper-wrapper").each(function(ta){ta=I[Ha].category.productList[Ba].optionTypeList[ta];var xa=h(this).attr("style");I[Ha].category.productList[Ba].viewOptionObj[ta].styleAttr=xa});ya=h(".pdd16-step-buying__header-price-text")[0].innerHTML;Ea.replaceWith(w(va,Ha,Ba,Y));
l.sg.components.stepbuyingV2.cardReInit(document.getElementById(Y.attr("id")).closest(".pdd16-step-buying-v2__card"))}else Ea=h(".pdd16-step-buying__2column").eq(Ha).find(".pdd16-step-buying__card").eq(Ba),Ja=h(".pdd16-step-buying__card").index(Ea),Ea.find(".option-selector__swiper-wrapper").each(function(ta){ta=I[Ha].category.productList[Ba].optionTypeList[ta];var xa=h(this).attr("style");I[Ha].category.productList[Ba].viewOptionObj[ta].styleAttr=xa}),ya=h(".pdd16-step-buying__header-price-text")[0].innerHTML,
Ea.replaceWith(B(va,Ha,Ba,Y)),Ea=h(document.querySelectorAll(".pdd16-step-buying__card")[Ja]),Ea.addClass("is-show"),l.sg.components.stepbuying.init()}},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=h(this);g=Y;var ja="in"===da?Y.attr("data-shopsku"):Y.attr("data-modelcode"),
za=y.useAddonV2?Y.closest(".pdd16-step-buying-v2__card").children().attr("data-index"):Y.closest(".pdd16-step-buying__card").attr("data-index"),Ba=y.proudctPriceInfo.monthlyPriceInfo.tenureVal,Ha=y.useAddonV2?parseFloat(Y.closest(".pdd16-step-buying-v2__card").children().attr("data-price")):parseFloat(Y.closest(".pdd16-step-buying__card").attr("data-price")),va=Number(h(".hiddenPrice")[0].getAttribute("value")),Ea=Number(h(".hiddenSavePrice").val())||0,Ja="",ta="",xa="";ta=ta=ta="";if(h(this).hasClass("cta--bundle"))ha=
h(this).attr("data-promotionprice"),h(this).hasClass("js-cta-stock")||(h(this).hasClass("cta--on")?(za=a.filter(function(Pa){return Pa.modelcode===ja}),Ha=y.addonBundleRelatedData.filter(function(Pa){return Pa.bundleModelCode===ja}),l.sg.components.addonBundlePopup.callSearchAjax(za[0],Ha[0]),l.sg.components.notifyMePopup.showPopup(document.querySelector(".add-ons-evoucher-popup")),l.sg.components.notifyMePopup.reInit()):((y.useAddonV2?h(".pdd16-step-buying-v2__evoucher-title span"):h(".pdd16-step-buying__evoucher-title span")).html(--c),
S?(ta=Number(h("#voucherBalance").attr("data-price")),h("#voucherBalance").attr("data-oriprice"),ta=Number(h("#voucherCharge").attr("data-price")),y.useAddonV2&&(ta=Number(h("#voucherBalance2").attr("data-price")),h("#voucherBalance2").attr("data-oriprice"),ta=Number(h("#voucherCharge2").attr("data-price"))),la-=Number(h(this).attr("data-originprice")),ua-=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2)),f(Ha,!1),ta&&(va=ta>=Number(ha)?va-Number(ha):va-ta)):va-=Number(ha),t[ja]&&(t[ja]=
[])));else if(ha=h(this).attr("data-price"),ka=h(this).attr("data-saveprice"),za.split("-"),ta=X.indexOf(za),Y=Y.attr("data-childmodelcode"),h(this).hasClass("cta--on")&&!h(this).hasClass("js-cta-stock"))y.useAddonV2?(h(this).closest(".pdd16-step-buying-v2__card.swiper-slide").addClass("is-selected"),h(".pdd16-step-buying-v2__evoucher-title span").html(++c)):h(".pdd16-step-buying__evoucher-title span").html(++c),X.push(za),S?(ta=Number(h("#voucherBalance").attr("data-price")),y.useAddonV2&&(ta=Number(h("#voucherBalance2").attr("data-price"))),
0>ta-Number(ha)&&(va+=-(ta-Number(ha)),Ea+=Number(ka)),la+=Number(h(this).attr("data-oriprice")),ua+=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2)),f(Ha,!0)):(y.useAddonV2&&(la+=Number(h(this).attr("data-oriprice")),ua+=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2))),va+=Number(ha),Ea+=Number(ka)),V.push(ja),Y&&(y.productChildModelObject[ja]=Y),za=h(this).closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-title strong").html(),Ha=h(this).closest(".pdd16-step-buying__card").find(".image img"),
za={modelCode:ja,modelName:za,src:Ha.attr("data-img-src")},P.push(za);else if(!h(this).hasClass("cta--on")&&!h(this).hasClass("js-cta-stock")){y.useAddonV2?(h(this).closest(".pdd16-step-buying-v2__card.swiper-slide").removeClass("is-selected"),h(".pdd16-step-buying-v2__evoucher-title span").html(--c)):h(".pdd16-step-buying__evoucher-title span").html(--c);X.splice(ta,1);S?(ta=Number(h("#voucherBalance").attr("data-price")),h("#voucherBalance").attr("data-oriprice"),ta=Number(h("#voucherCharge").attr("data-price")),
y.useAddonV2&&(ta=Number(h("#voucherBalance2").attr("data-price")),h("#voucherBalance2").attr("data-oriprice"),ta=Number(h("#voucherCharge2").attr("data-price"))),la-=Number(h(this).attr("data-oriprice")),ua-=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2)),f(Ha,!1),ta&&(va=ta>=Number(ha)?va-Number(ha):va-ta,Ea-=Number(ka))):(y.useAddonV2&&(la-=Number(h(this).attr("data-oriprice")),ua-=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2))),va-=Number(ha),Ea-=Number(ka));for(za=
0;za<V.length;za++)if(V[za]==ja){V.splice(za,1);za--;break}Y&&delete y.productChildModelObject[ja];P=P.filter(function(Pa){return ja!==Pa.modelCode})}ta=Granite.I18n.get("From {0}/mo",currencyComma(va/Number(Ba),ra))+" "+Granite.I18n.get("for {0} mos",Ba)+" "+Granite.I18n.get("or")+" "+currencyComma(va,ra);Ja=ta.split(" "+qa+" ");if(r)if(xa||(xa=h(".pdd16-step-buying__header-price").html()),0<V.length){var Xa=("in"===da?h("#shopSKU").val():h("#modelCode").val())+",";V.forEach(function(Pa,Wa){Xa+=
Pa+(V.length-1===Wa?"":",")});var Ta="";P.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"'+
aa(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"});Ba=h(".pdd16-step-buying__header");Ba.addClass("pdd16-step-buying__header-add-on-product");Ba.find(".swiper-container").show();Ba.find(".swiper-wrapper").html(Ta);Ba.find(".pdd16-step-buying__quantity strong").html("+"+
V.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=U.detailSharedObj.drawObj.price.priceWrapper.info.unformattedSavePrice;var bb=Ya-(Za-Wa);ab=currencyComma(Pa.subTotal.value-ab.salePrice+Za+(Pa.totalDiscounts.value-(Za-Ya)),ra);Ya=currencyComma(Pa.totalDiscounts.value+(0<bb?bb:0),ra);bb=
currencyComma(Pa.totalPrice.value-(0<bb?bb:0),ra);m&&(bb=Pa.totalPrice.formattedValue);Pa=Pa.totalPrice.value;xa='\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';xa=m?xa+("\x3cstrong\x3e"+fa+" "+Ja[0].replace(fa,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+qa+" "+bb+"\x3c/strong\x3e"):xa+("\x3cstrong\x3e"+bb+"\x3c/strong\x3e");Ca||Z?xa+="\x3c/div\x3e":"in"==da?(bb="MRP: "+ab+" (Incl. of all taxes)",Wa=0<Wa?'\x3cspan class\x3d"sale-text" data-save-price\x3d'+Ya+"\x3e"+
Granite.I18n.get("Save {0}",Ya)+"\x3c/span\x3e":"",xa+='\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'+bb+"\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"):xa+='\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save '+
(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'+(N?'\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";xa+='\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
Pa+'"\x3e'}h(".pdd16-step-buying__header-price").html(xa);"bg"==da&&(Wa="eur"===ra.toLowerCase()?"\u043b\u0432":"\u20ac",-1==h(".pdd16-step-buying__header-wrap .pdd16-step-buying__header-price-text").text().indexOf(Wa)&&(Wa=h(".hiddenPrice").val(),Wa="eur"===ra.toLowerCase()?E(Wa):C(Wa),h(".pdd16-step-buying__header-wrap .pdd16-step-buying__header-price-text strong").append(" / "+Wa)))}})}else Ba=h(".pdd16-step-buying__header"),Ba.removeClass("pdd16-step-buying__header-add-on-product"),Ba.find(".swiper-container").hide(),
xa=y.vdAddonInitPriceHtml;else xa=y.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'+Ja[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t "+qa+" "+fa+" "+Ja[0].replace(fa,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+va+'"\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"!==da?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(H?fa:"")+" "+Ja[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+Ja[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+va+'"\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'+
fa+" "+Ja[0].replace(fa,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+qa+" "+Ja[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+va+'"\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"!==da?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(H?fa:"")+" "+Ja[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
Ja[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+va+'"\x3e';S&&(ta=!ua||0>ua?"in"==da?"MRP: "+currencyComma(la,ra)+" (Incl. of all taxes)":currencyComma(la,ra):"in"==da?"MRP: "+currencyComma(la,ra)+" (Incl. of all taxes) \x3cspan\x3e"+Granite.I18n.get("Save")+" "+currencyComma(ua,ra)+"\x3c/span\x3e "+currencyComma(la-ua,ra):currencyComma(la,ra)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ua,ra)+"\x3c/del\x3e "+currencyComma(la-
ua,ra),h("#selectedItem").html(ta),y.useAddonV2&&h("#selectedItem2").html(ta));h(".pdd16-step-buying__header-price").html(xa);h(".pdd16-step-buying__footer-sum").html(xa);void 0===h(".tab__list").attr("style")&&(h(document).off("click","#freeGiftPopup .layer-popup__close"),h(document).on("click","#freeGiftPopup .layer-popup__close",function(){l.sg.components.stepbuying.clearAll(h(".bundleSelect"));g.removeClass("cta--on")}));ca();y.useAddonV2?(Ba="",Ba=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'+
Ja[1]+'\x3c/strong\x3e\x3c/span\x3e\n            \t\t\t \t\x3cspan class\x3d"monthly-text"\x3e'+qa+" "+fa+" "+Ja[0].replace(fa,"")+"\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'+(H?fa:"")+" "+Ja[1]+"\x3c/strong\x3e\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e","in"==da&&(za=0<Ea?'\x3cspan class\x3d"sale-text"\x3eSave '+currencyComma(Ea,ra)+"\x3c/span\x3e":"",Ba+='\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"'+
Ea+'" /\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__bottom-price-tax"\x3eMRP: '+currencyComma(va+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"+za+"\n\t\t\t\t\t\t\x3c/div\x3e"),h(".pdd16-step-buying-v2__bottom-price-inner").html(Ba),"bg"==da&&(va="eur"===ra.toLowerCase()?"\u043b\u0432":"\u20ac",-1==h(".final-text strong").text().indexOf(va)&&(va=h(".hiddenPrice").val(),va="eur"===
ra.toLowerCase()?E(va):C(va),h(".final-text strong").append(" / "+va)))):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=h(this),ja=y.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]];
var za=I[ja[0]].category.productList[ja[1]].thirdPASeller,Ba=h(".pdd16-step-buying__footer-cta button").attr("data-category-name");ja=h(".pdd16-step-buying__layer-learn-more");ja.find(".layer-popup__title").html(Ba);Ba=Y.galleryImage&&0<Y.galleryImage.length?Y.galleryImage:[Y.thumbUrl];var Ha="";if(Ba)for(var va in Ba)Ha+='\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"'+
aa(Ba[va],"$290_240_PNG$")+'" data-mobile-src\x3d"'+aa(Ba[va],"$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(Ba[va],"$290_240_PNG$")+'" data-mobile-src\x3d"'+aa(Ba[va],"$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';va='\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":'+
(1<Ba.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'+
Ha+'\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';
ja.find(".pdd16-step-buying__learn-more-images").html(va);va="";Ba="Hybris-intg"===h("#shopIntegrationFlag").val();Ha=!ea&&!Ba&&!L;if(Ba){Ba=[{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 Ba)"Y"===Ba[Ea].key&&(va+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Ba[Ea].value+"\x3c/li\x3e")}else if(Ha&&
Y.vd3PAMarketingMessage&&0<Y.vd3PAMarketingMessage.length)for(Ea=$jscomp.makeIterator(Y.vd3PAMarketingMessage),Ba=Ea.next();!Ba.done;Ba=Ea.next())va+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Ba.value+"\x3c/li\x3e";if(Y.uspText&&0<Y.uspText.length)for(Ea=$jscomp.makeIterator(Y.uspText),Ba=Ea.next();!Ba.done;Ba=Ea.next())va+='\t\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Ba.value+"\x3c/li\x3e";Ea="";if(Y.keySummary&&
0<Y.keySummary.length)for(Ba=$jscomp.makeIterator(Y.keySummary),Ha=Ba.next();!Ha.done;Ha=Ba.next())Ha=Ha.value,"feature"===Ha.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(Ha.imgUrl,"$64_64_PNG$")+
'" data-mobile-src\x3d"'+aa(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"'+aa(Ha.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+aa(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"pdd16-step-buying__learn-more-feature-icon-text"\x3e'+Ha.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
za='\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"+(za?"\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){Ba=Y.ratings;Ha=Y.reviewCount;Ba||
(Ba=0);var Ja=Math.pow(10,1);Ba=Math.round(Ba*Ja)/Ja;var ta=parseFloat(Ba).toFixed(1);Ja=parseInt(Ba);var xa=parseInt(100*(ta-Ja));"0.0"!==ta&&(Ba=ta);ta='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Xa=0;Xa<Ja;Xa++)ta+='\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>Ja&&0<Ja)for(ta+='\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:'+
xa+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',xa=4;xa>Ja;xa--)ta+='\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===Ja)for(Ja=0;5>Ja;Ja++)ta+='\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';ta+='\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+
Granite.I18n.get("Product Ratings")+" : \x3c/span\x3e\x3cspan\x3e"+Ba+'\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";Ba='\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'+ta+"\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 Ba=
"";Y=za+Ba+'\n\t\t\t\t\x3cul class\x3d"pdd16-step-buying__learn-more-feature" role\x3d"list"\x3e\n\t\t\t\t\t'+va+"\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"'+
Y.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);
l.sg.components.stepbuying.activePopup(document.querySelector("#layerPopupLearnMore"))});ca()}function ca(){var Y=h("#primaryInfoGoCartAddOn"),ja=h("#primaryInfoCheckOutAddOn"),za=h("#nextBtn"),Ba=h("#primaryInfoGoCartAddOn, #primaryInfoCheckOutAddOn, #voucherGoCartAddOn, #skipGoCartAddOn"),Ha=[];if(ea||na)for(var va in I)Ha.push(I[va].category.display_name);if(L){va=[];for(var Ea in I)va.push(I[Ea]);va.sort(function($a,pb){return $a.category.order-pb.category.order});Ea=$jscomp.makeIterator(va);
for(va=Ea.next();!va.done;va=Ea.next())Ha.push(va.value.category.display_name)}Ha=0<h(".tab__item--active").length?Ha[h(".tab__item--active").index()]:Ha[0];if(0<X.length){var Ja=va=Ea="",ta="",xa="",Xa="",Ta="",Pa="",Wa="";pa="";for(var ab=0;ab<X.length;ab++){var Ya=X[ab],Za=Ya.split("-")[0],bb=Ya.split("-")[1];Ya=Ya.split("-")[2];Za=I[Za].category.productList[bb].modelList[Ya];bb=z.setPriceInfo(Za);Ya=bb.productPrice;var ib="";0<ab&&(ib=",");Ea+=ib+Za.modelCode;va+=ib+Za.modelName;pa+=ib+Za.displayName;
Ja+=ib+Ya;ta+=ib+bb.promotionPrice;xa+=ib+Za.pviTypeName;Xa+=ib+Za.pviSubtypeName;Ta+=ib+Za.pviSubtypeName+" "+Za.pviTypeName;Pa+=ib+Ya;Wa+=ib+1}xa=xa.toLowerCase();Xa=Xa.toLowerCase();Ta=Ta.toLowerCase();r?"nextBtn"===h(".cta--step").attr("id")?za.attr("an-tr","pdd16_step buying-"+oa+"-button-next").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ha.toLowerCase()+":next").attr("data-category-name",Ha):Y.attr("an-tr","pdd16_step buying-"+oa+"-cta-cart page").attr("an-ca",
"ecommerce").attr("an-ac","addToCart").attr("an-la","vd add-on:checkout").attr("data-category-name",Ha):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",
"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"));Ba.attr("data-modelcode",Ea).attr("data-modeldisplay",pa).attr("data-modelname",va).attr("data-modelrevenue",Pa).attr("data-modelprice",Ja).attr("data-pvitype",xa).attr("data-pvisubtype",Xa).attr("data-discountprice",ta).attr("data-pimsubtype",Ta).attr("data-modelqty",Wa)}else r?
"nextBtn"===h(".cta--step").attr("id")?za.attr("an-tr","pdd16_step buying-"+oa+"-button-next").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ha.toLowerCase()+":next").attr("data-category-name",Ha):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:"+Ha.toLowerCase()+":checkout").attr("data-category-name",Ha):S?(Y.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"),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",
"feature").attr("an-la","add-on:checkout")),Ba.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");za.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")}
function K(Y){Y=void 0===Y?!1:Y;for(var ja=[],za=$jscomp.makeIterator(V),Ba=za.next();!Ba.done;Ba=za.next())ja.push(Ba.value);ea&&y.giftFlag&&y.globalServiceInfo.gift&&y.globalServiceInfo.gift.modelCode&&ja.push(y.globalServiceInfo.gift.modelCode);for(var Ha in t)for(za=$jscomp.makeIterator(t[Ha]),Ba=za.next();!Ba.done;Ba=za.next())ja.push(Ba.value);Y?U.DetailAfterEvent.checkOutCta(ja,!0,!0,ba):U.DetailAfterEvent.addToCartCta(ja,!0,!0,ba)}function D(Y){(void 0===Y?0:Y)?U.DetailAfterEvent.checkOutCta([],
!0,!0,ba):U.DetailAfterEvent.addToCartCta([],!0,!0,ba)}function f(Y,ja){var za=h("#voucherTotal"),Ba=h("#voucherBalance"),Ha=h("#voucherCharge");y.useAddonV2&&(za=h("#voucherTotal2"),Ba=h("#voucherBalance2"),Ha=h("#voucherCharge2"));var va=parseFloat(za.attr("data-price")||0),Ea=parseFloat(Ba.attr("data-oriprice")||0);va=ja?va+Y:Number((parseFloat(va)-parseFloat(Y)).toFixed(2));Y=Number((parseFloat(Ea)-parseFloat(va)).toFixed(2));0>Y?(ja=-Y,Y=0):ja=0;za.attr("data-price",va);Ba.attr("data-price",
Y);Ha.attr("data-price",ja);za.html(currencyComma(va,ra));Ba.html(currencyComma(Y,ra));Ha.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 U=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),R=U.ux2.PriceBar,y=U.detailSharedObj,da=h("#siteCode").val(),wa="true"===h("#isEppPage").val(),ra=h("#priceCurrency").val(),
oa=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),ea="GPv2"===h("#shopIntegrationFlag").val()&&"in"===da,na="Hybris"===h("#shopIntegrationFlag").val()||"Hybris-intg"===h("#shopIntegrationFlag").val(),L="Hybris-new"===h("#shopIntegrationFlag").val(),O=h("#categorySubTypeCode").val(),b=h("#categoryTypeCode").val(),r=2<O.length&&"04"===O.substring(0,2)||4<O.length&&"0701"===O.substring(0,4),H="jp"!==da&&"n_africa"!==da&&"de"!==da,N="Y"==h("#isNotDelTagSites").val()?!0:!1,Z="pl"===da||"si"===
da||"gr"===da||"fi"===da||"it"===da||"se"===da||"no"===da||"dk"===da||"fr"===da||"de"===da||"cz"===da||"sk"===da||"pt"===da||"au"===da?!0:!1,d=!Z||"de"!==da&&"cz"!==da&&"sk"!==da&&"pt"!==da&&"au"!==da&&"se"!==da&&"no"!==da&&"dk"!==da&&"fi"!==da?!1:!0,M="hu"===da?!0:!1,t={},z={},I=[],X=[],V=[],P=[],S=!1,Q="",ha=0,ka=0,la=0,ua=0,ya,sa,Ma=0,pa="",a="",c=0,m=!1,g="",q=0,ba="",J=Granite.I18n.get("View more"),fa=Granite.I18n.get("From"),qa=Granite.I18n.get("or"),ia=Granite.I18n.get("Monthly Price")+":";
Granite.I18n.get("Full Price:");var Aa=Granite.I18n.get("Add"),Ia=Granite.I18n.get("Are you sure to remove this product?"),Fa=Granite.I18n.get("Checkout"),Da=Granite.I18n.get("Next"),Ga=Granite.I18n.get("Total"),Sa=Granite.I18n.get("VAT Inclusive"),La=Granite.I18n.get("Added"),ma=Granite.I18n.get("Out Of Stock"),Oa="fr"==da,Ca=wa&&"pl"===da;wa&&(Z="Y"===eppOmniPricingUseYn?!0:!1,"au"===da||y.isSENA)&&(Z=!0);if("fr"===da||"tr"===da)fa="";var Ka=y.useAddonV2?h(".pdd16-step-buying-v2"):h(".pdd16-step-buying"),
Qa=h(".pdd16-step-buying-v2__bottom");O={it:{useTncOnAddOn:!1},id:{useAddOnNextI18n:!0},ch:{useStaticTitle:r,staticTitle:Granite.I18n.get("Amazing additions")},ch_fr:{useStaticTitle:r,staticTitle:Granite.I18n.get("Amazing additions")},ee:{useStaticTitle:r,staticTitle:Granite.I18n.get("Amazing additions")},nl:{useStaticTitle:r,staticTitle:O.startsWith("0701")?Granite.I18n.get("addon title(monitor)"):Granite.I18n.get("Choose your TV set-up"),useStaticSubTitle:r,staticSubTitle:O.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"),useStaticSubTitle: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 Na=function(Y,ja){var za=ja[Y],Ba=ja["default"];return{get:function(Ha){return za&&
"undefined"!==typeof za[Ha]?za[Ha]:Ba&&"undefined"!==typeof Ba[Ha]?Ba[Ha]:!1}}}(da,O);Na.get("useAddOnNextI18n")&&(Da=Granite.I18n.get("Next (addon)"));var Ua=!0,Ra=function(Y,ja,za,Ba,Ha){ja=ja.split(",");var va=ja[0];Ha=Ha.indexOf("MEMORY");if(!ea&&!L&&!na&&Ba&&0<Ha){za=Y.MEMORY.optionList;var Ea=0,Ja=0,ta;for(ta in za){va=za[ta].modelIdx.split(",");for(var xa in va)if(F(ja,va[xa])){Y=za[ta].optionCode.replace("TB","000").replace(/[^0-9]/g,"");Ja<Y&&(Ja=Y,Ea=va[xa]);break}}ja=Ea}else{for(Ea in za)if(ta=
za[Ea]){xa=ta.split(",");ta=[];for(Ja in ja)-1<xa.indexOf(String(ja[Ja]))&&ta.push(ja[Ja]);0<ta.length&&(ja=ta)}ja=0<ja.length?ja[0]:va}return ja},Va=function(Y,ja,za,Ba){za="";var Ha=!1;if(Y.viewOptionObj&&0<Object.keys(Y.viewOptionObj).length){var va=0,Ea=Y.viewOptionObj,Ja=Y.optionTypeList;Y.viewOptionObj.hasOwnProperty("RING SIZE")&&(Ha=!0);Y.viewOptionObj=Object.keys(Y.viewOptionObj).sort(function(cb,lb){if("COLOR"==cb)return-1;if("COLOR"==lb)return 1}).reduce(function(cb,lb){cb[lb]=Y.viewOptionObj[lb];
return cb},{});for(var ta in Y.viewOptionObj){var xa=ta.toLowerCase().replace(/ /g,"-"),Xa=Y.viewOptionObj[ta].optionList,Ta=!1,Pa={},Wa="",ab=S?"evoucher":"add-on";Y.viewOptionObj[ta].styleAttr&&(Wa=Y.viewOptionObj[ta].styleAttr);if("COLOR"===ta){Wa="";for(var Ya in Xa){var Za=Xa.length;Pa=Xa[Ya];Ta=!1;var bb=Pa.modelIdx.split(",");null!=Pa.modelIdx&&F(bb,String(Y.frontModelIdx))&&(Ta=!0);var ib=bb="";var $a=Pa.modelIdx;var pb=[],kb=!0,gb;for(gb in Ea)if(gb!==ta){var yb=Ea[gb].optionList,Eb;for(Eb in yb){var hb=
yb[Eb];hb=hb.modelIdx;var Kb=hb.split(",");-1<Kb.indexOf(String(Y.frontModelIdx))&&pb.push(hb)}}$a=Ra(Ea,$a,pb,kb,Ja);Y.modelList.length>$a&&Y.modelList[$a]&&(bb=Y.modelList[$a].modelCode,ib=Y.modelList[$a].modelName);var sb=Y.modelList[$a].price,qb=Y.modelList[$a].promotionPrice;yb=sb-qb;ea&&Y.modelList[$a].idx&&(Y.modelList[$a].idx=q+"-"+$a);Ba&&(Y.modelList[$a].idx=Ba+"-"+$a);pb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx;kb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx;Ha&&(pb="pdd16-"+xa+"-"+Q+"-"+
Y.modelList[$a].idx.split("-")[0]+"-"+$a,kb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$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"'+pb+'" 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+":"+ta.toLowerCase()+":"+Pa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+bb+'" data-modelname\x3d"'+ib+'" data-price\x3d"'+sb+'" data-promotionPrice\x3d"'+qb+'" data-saveprice\x3d"'+yb+'" data-index\x3d"'+Y.modelList[$a].idx+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+pb+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+function(cb){var lb="";if("Y"!=cb)lb='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+Pa.optionCode+'"\x3e'+Pa.optionLocalName+
"\x3c/span\x3e";else if(cb=Pa.multiColorList){var eb=cb.optionCodeList,nb="";switch(cb.optionColorType){case "C1":nb='\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"'+
eb[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":nb='\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"'+
eb[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"'+eb[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';
break;case "C2_B":nb='\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"'+
eb[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"'+eb[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';
break;case "C3_A":nb='\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" viewBox\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"'+
eb[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"'+
eb[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"'+
eb[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":nb='\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"'+
eb[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"'+eb[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"'+eb[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';
break;case "C3_C":nb='\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"'+
eb[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"'+eb[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"'+eb[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';
break;case "C4_A":nb='\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"'+
eb[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"'+eb[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"'+eb[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"'+eb[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';
break;case "CP":nb='\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"'+
eb[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"'+eb[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"'+
eb[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"'+eb[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"'+
eb[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"'+eb[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,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'}lb+=
nb}return lb}(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"}za+='\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'+
Wa+'\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':
"")+'\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'+Da+"\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':
"")+"\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"===ta||"TV SIZE"===ta||"HOME APPLIANCE SIZE"===ta||"MONITOR SCREEN SIZE"===ta||"RING SIZE"===ta||"MEMORY MEMORY"===ta){sb="";for(qb=0;qb<Xa.length;qb++){var Fb=Xa.length;Pa=Xa[qb];Ta=!1;bb=Pa.modelIdx.split(",");null!=Pa.modelIdx&&F(bb,String(Y.frontModelIdx))&&(Ta=!0);ib=bb="";$a=Pa.modelIdx;pb=[];kb=!1;for(gb in Ea)if(gb!==ta)for(Eb in yb=Ea[gb].optionList,yb)hb=yb[Eb],
hb=hb.modelIdx,Kb=hb.split(","),-1<Kb.indexOf(String(Y.frontModelIdx))&&pb.push(hb);$a=Ra(Ea,$a,pb,kb,Ja);Y.modelList.length>$a&&Y.modelList[$a]&&(bb=Y.modelList[$a].modelCode,ib=Y.modelList[$a].modelName);pb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx;kb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx;Ha&&(Ta=!0,pb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a,kb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a);sb+='\x3cspan class\x3d"option-selector__swiper-slide'+(Ta?" is-active":
"")+'"\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"'+pb+'" 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+":"+ta.toLowerCase()+":"+Pa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+bb+'" data-modelname\x3d"'+
ib+'" 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"'+pb+'"\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"}za+='\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"'+
Wa+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+sb+'\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")+
"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Fb?'\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'+
Da+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Fb?'\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"}va++}}return za};h(document).off("click",".pdd16-step-buying__evoucher-cta .cta--clear-all, .pdd16-step-buying-v2__evoucher-cta .cta--clear-all");h(document).on("click",".pdd16-step-buying__evoucher-cta .cta--clear-all, .pdd16-step-buying-v2__evoucher-cta .cta--clear-all",
function(){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(Ia,"voucherDelete","voucherClearAll")});h(document).off("click","#voucherClearAll");h(document).on("click","#voucherClearAll",function(){for(var Y=y.useAddonV2?h(".pdd16-step-buying-v2__bottom-price-inner"):h(".pdd16-step-buying__header-price-text"),ja=0;ja<Y.length;ja++)Y[ja].innerHTML=ya,h(".hiddenPrice")[ja].setAttribute("value",sa);c=0;x();u();l.sg.components.stepbuying.clearAll(document.querySelector(".pdd16-step-buying"));
h(".pdd16-step-buying__evoucher-title span").html(0);y.useAddonV2&&(h(".pdd16-step-buying-v2__card.swiper-slide").removeClass("is-selected"),l.sg.components.stepbuyingV2.clearAll(document.querySelector(".pdd16-step-buying-v2")),h(".pdd16-step-buying-v2__evoucher-title span").html(0))});h(document).off("click","#primaryInfoGoCartAddOn");h(document).on("click","#primaryInfoGoCartAddOn",function(){y.hasVoucher?p("GoCartAddOn"):K()});h(document).off("click","#primaryInfoCheckOutAddOn");h(document).on("click",
"#primaryInfoCheckOutAddOn",function(){y.hasVoucher?p("CheckOutAddOn"):K()});h(document).off("click","#voucherGoCartAddOn");h(document).on("click","#voucherGoCartAddOn",function(){K()});h(document).off("click","#voucherCheckOutAddOn");h(document).on("click","#voucherCheckOutAddOn",function(){K(!0)});h(document).off("click","#skipGoCartAddOn");h(document).on("click","#skipGoCartAddOn",function(){D()});h(document).off("click","#skipCheckOutAddOn");h(document).on("click","#skipCheckOutAddOn",function(){D(!0)});
h(document).off("click",".pdd16-step-buying__cta-more");h(document).on("click",".pdd16-step-buying__cta-more",function(){l.sg.components.betterTogether.more();0===h(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&h(this).hide()});h(document).off("click",".pdd16-step-buying .addon.cta--skip, .pdd16-step-buying-v2 .addon.cta--skip");h(document).on("click",".pdd16-step-buying .addon.cta--skip, .pdd16-step-buying-v2 .addon.cta--skip",function(){if(y.hasVoucher){var Y=h(".confirm-popup"),
ja=Y.find(".confirm-popup__title"),za=Y.find(".confirm-popup__desc"),Ba=Y.find(".cta--contained");Y=Y.find(".cta--outlined");var Ha=h("#voucherBalance");y.useAddonV2&&(Ha=h("#voucherBalance2"));Ha=Number(Ha.attr("data-oriPrice"))||0;Ha=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(Ha,ra));Ba.attr("id","skipGoCartAddOn");za.html(Ha);ja.html(Granite.I18n.get("Are you sure?"));Y.attr("id","");Y.html(Granite.I18n.get("Redeem"));Y.show();
Ba.html(Granite.I18n.get("Skip"));l.sg.components.confirmPopup.showPopup()}else D()});h(document).off("click",".pdd16-step-buying .cta--step");h(document).on("click",".pdd16-step-buying .cta--step",function(){var Y=h(".pdd16-step-buying .tab__item--active").index()+1;h(".pdd16-step-buying .tab__item").length===Y?h(this).attr("id","primaryInfoGoCartAddOn"):h(this).attr("id","nextBtn")});h(document).off("click",".pdd16-step-buying .tab__item-title");h(document).on("click",".pdd16-step-buying .tab__item-title",
function(){var Y=h(".pdd16-step-buying__headline"),ja=h(".pdd16-step-buying .tab__item--active").index()+1,za=h(".pdd16-step-buying .tab__item").length,Ba="es"===da?"Choose yours {0}":"Choose your {0}";r&&(Na.get("useStaticTitle")?Y[0].innerHTML=Na.get("staticTitle"):y.hasVoucher||(Y[0].innerHTML=Granite.I18n.get(Ba,h(this)[0].innerText)),Y=h(this).parents(".pdd16-step-buying__tab-wrap").find(".cta--step"),za===ja?Y.attr("id","primaryInfoGoCartAddOn"):Y.attr("id","nextBtn"));ca()});h(document).off("click",
".pdd16-step-buying #nextBtn");h(document).on("click",".pdd16-step-buying #nextBtn",function(){var Y=h(".pdd16-step-buying__headline"),ja=h(".pdd16-step-buying .tab__item--active").find("button"),za=h(".pdd16-step-buying .tab__item--active").index()+1,Ba=h(".pdd16-step-buying .tab__item").length,Ha="es"===da?"Choose yours {0}":"Choose your {0}";r&&(Na.get("useStaticTitle")?Y[0].innerHTML=Na.get("staticTitle"):y.hasVoucher||(Y[0].innerHTML=Granite.I18n.get(Ha,ja[0].innerText)),Ba===za?h(this).attr("id",
"primaryInfoGoCartAddOn"):h(this).attr("id","nextBtn"));ca()});h(document).off("click",".add-ons-evoucher-popup #bundleAddOn");h(document).on("click",".add-ons-evoucher-popup #bundleAddOn",function(){var Y=0,ja=0,za=0,Ba=[],Ha=h(".add-ons-evoucher-popup__item .option-selector-v2__color-code");Ha&&Ha.each(function(){h(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&Ba.push(h(this))});(Ha=h(".add-ons-evoucher-popup__item .option-selector-v2__size-text"))&&Ha.each(function(){h(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&
Ba.push(h(this))});var va=h(this).attr("data-parent-modelcode");t[va]=[];h(this).attr("data-price")&&(Y+=Number(h(this).attr("data-price")));h(this).attr("data-promotionprice")&&(ja+=Number(h(this).attr("data-promotionprice")));h(this).attr("data-saveprice")&&(za+=Number(h(this).attr("data-saveprice")));h.each(Ba,function(ta,xa){t[va].push(Ba[ta].attr("data-modelcode"))});Ha=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;var Ea="",Ja="";Ja=Number(h(".hiddenPrice")[0].getAttribute("value"));
Ea=Ea="";h(".pdd16-step-buying__evoucher-title span").html(++c);S?(Ea=Number(h("#voucherBalance").attr("data-price")),0>Ea-Number(ja)&&(Ja+=-(Ea-Number(ja))),la+=Number(Y),ua+=Number(za),f(parseFloat(ja),!0)):Ja+=Number(ja);Ea=Granite.I18n.get("From {0}/mo",currencyComma(Ja/Number(Ha),ra))+" "+Granite.I18n.get("for {0} mos",Ha)+" "+Granite.I18n.get("or")+" "+currencyComma(Ja,ra);Y=Ea.split(" "+qa+" ");Ja=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'+
fa+" "+Y[0].replace(fa,"")+"\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"'+Ja+'"\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'+(H?fa:"")+" "+Y[1]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+Ja+'"\x3e';h(".pdd16-step-buying__header-price").html(Ja);
h(".pdd16-step-buying__footer-sum").html(Ja);S&&(Ea=ua?currencyComma(la,ra)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ua,ra)+"\x3c/del\x3e "+currencyComma(la-ua,ra):currencyComma(la,ra),h("#selectedItem").html(Ea),y.useAddonV2&&h("#selectedItem2").html(Ea));l.sg.components.notifyMePopup.closePopup()});h(document).off("click",".add-ons-evoucher-popup .layer-popup__close");h(document).on("click",".add-ons-evoucher-popup .layer-popup__close",function(){var Y=h(this).attr("data-attr-parent");
h.each(h(".pdd16-step-buying__tab .bundleSelect"),function(ja,za){h(this).attr("data-modelcode")===Y&&(h(this).find("span").text(Aa),h(this).removeClass("cta--on"))})});U.bridgePageCommonHybris={moveBridgePage:function(Y){S=l.sg.components.dynamic.detailSharedObj.hasVoucher;y=U.detailSharedObj;var ja=U.detailSharedObj.drawObj.price.priceWrapper.info;Y=ja.totalPrice||"";var za=ja.savePrice||"";ja=ja.unformattedSavePrice||"";var Ba=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.orignalPrice||
"",Ha=currencyComma(Ba,ra)||"",va=Y.split(" "+qa+" ");sa=y.totalPrice.sale;if(r){var Ea='\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';1<va.length?(m=!0,Ea+="\x3cstrong\x3e"+fa+" "+va[0].replace(fa,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+qa+" "+va[1]+"\x3c/strong\x3e"):Ea+="\x3cstrong\x3e"+Y+"\x3c/strong\x3e";Ha&&za?Ea=Ca?Ea+"\x3c/div\x3e":y.isNewElementLowestWasPrice&&!y.isNewElementLowestWasPriceSetting?Ea+"\x3c/div\x3e":"in"==da?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'+
Ba+'\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3eMRP: '+(Ha+' (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"+za+"\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 '+(N?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t'+(N?'\x3cdel class\x3d"was-text" data-orignal-price\x3d'+Ba+"\x3e"+
Ha+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+Ba+"\x3e"+Ha+"\x3c/span\x3e")+'\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d'+ja+"\x3e"+za+"\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"!=da||za||(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'+Ba+'\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3eMRP: '+
(Ha+" (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';y.vdAddonInitPriceHtml=Ea}else y.useAddonV2?1<va.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'+va[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t "+qa+" "+fa+" "+va[0].replace(fa,"")+'\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'+(H?fa:"")+" "+va[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<va.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'+
fa+" "+va[0].replace(fa,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t"+qa+" "+va[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'+(H?fa:"")+" "+va[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';h(".pdd16-step-buying__header-price").html(Ea);
h(".pdd16-step-buying__footer-sum").html(Ea);Y=na||ea?y.hasGift&&Ua&&!y.hasVoucher:L?y.hasGift&&Ua:!1;na&&y.hasVoucher&&Ua&&(Y=y.hasGift=!1);Y?(h(".pdd16-step-buying .tab").removeClass("bg-light-gray").removeAttr("data-use-arrow"),h(".pdd16-step-buying .tab__list").hide(),h(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")||h(".pdd16-step-buying").addClass("pdd16-step-buying--free-gift"),Ua=!1,l.sg.components.dynamic.bridgePagefreeGift.moveBridgePage()):(Y=r&&y.newEmbedVDCountry,za=y.soundbarCategoryData&&
0<Object.keys(y.soundbarCategoryData).length?!0:!1,Y=Y?y.hasAddOns&&!y.isEmbedAddOn:y.hasAddOns&&(!y.isEmbedAddOn||y.isEmbedAddOn&&za),za=y.useAddonV2?h(".pdd16-step-buying-v2__evoucher"):h(".pdd16-step-buying__evoucher"),Y?(h(".pdd16-step-buying .tab").addClass("bg-light-gray").attr("data-use-arrow"),h(".pdd16-step-buying .tab__list").show(),z=U.bridgePageCommon,Na.get("useStaticSubTitle")?(h(".pdd16-step-buying__sub-headline").css("display",""),S?za.css("display",""):za.remove()):S&&(h(".pdd16-step-buying__sub-headline").css("display",
""),za.css("display","")),h(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")&&h(".pdd16-step-buying").removeClass("pdd16-step-buying--free-gift"),y.isEmbedAddOn||(ea?(v(),z.categoryGridGPv2()):z.getSearchProductcard(v)),Ua=!0,Na.get("useTncOnAddOn")||(Y=h(".pdd16-step-buying__tnc"))&&0<Y.length&&Y.hide()):na&&y.hasVoucher&&(Y=-1<y.cartUrl.indexOf("https://")||-1<y.cartUrl.indexOf("http://")?y.cartUrl:y.apiDomain+y.cartUrl,Y=wa?h("#storeWebDomain").val()+"/"+h("#eppCompanyCode").val()+
"/cart":Y,location.href=Y));U.detailSharedObj.hasVoucher?(u(),h("#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"),h("#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")):(h("#primaryInfoCheckOutAddOn,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:checkout"),h("#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"));h("#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")},
setSharedObj:function(Y){y=Y}}})(window,window.jQuery);
(function(l,h){function G(O,b,r,H){var N=l.sg.components.dynamic.detailSharedObj,Z=N.drawObj,d=Z.embedAddon.itemSet;O&&(d=Z.embedAddon.itemSet=[]);N.soundbarCategoryData={};wa=modelCode;H&&b.every(function(V){var P=V.category&&V.category.order;if(""==P||null==P)return!1;P=Number(P);if(isNaN(P))return!1;V.category.order=P;return!0})&&b.sort(function(V,P){return V.category.order-P.category.order});if(ca){var M=0;Z=$jscomp.makeIterator(b);for(H=Z.next();!H.done;H=Z.next()){var t=$jscomp.makeIterator(H.value.products);
for(H=t.next();!H.done;H=t.next())M++}d.length>=M&&(d=[]);E={};y=b;var z=0;for(M={$jscomp$loop$prop$i$317$360:0};M.$jscomp$loop$prop$i$317$360<b.length;M={$jscomp$loop$prop$i$317$360:M.$jscomp$loop$prop$i$317$360},M.$jscomp$loop$prop$i$317$360++)r&&null!=b[M.$jscomp$loop$prop$i$317$360].products&&0<b[M.$jscomp$loop$prop$i$317$360].products.length&&(u(b[M.$jscomp$loop$prop$i$317$360].products),h.each(b[M.$jscomp$loop$prop$i$317$360].products,function(V){return function(P,S){P=S.modelcode;var Q=E[P]=
{};Q.modelCode=P;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);var ha;if(null==S?0:null==(ha=S.lowestWasPrice)?0:ha.value)Q.lowestWasPriceValue=
S.lowestWasPrice.value,Q.lowestWasPrice=S.lowestWasPrice.formattedValue;S.commercialFlag&&(Q.commercialFlag=S.commercialFlag);S.referenceColor&&(Q.referenceColor=S.referenceColor);"at"==k&&0<S.aemAdditionalInfoTypes.length&&(ha=S.aemAdditionalInfoTypes.filter(function(ka){return"CHILD_PRODUCT"==ka.type}),0<ha.length&&(Q.childModelCode=ha[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)&&(N.hasBundle=
!0,na=b[V.$jscomp$loop$prop$i$317$360].category.display_name,h.extend(S,Q),N.addonBundleIdx=V.$jscomp$loop$prop$i$317$360,N.addonBundleData=b[V.$jscomp$loop$prop$i$317$360],W(S.modelcode));O?(p(N,S,Q,P,d,z),z++):N.isEmbedAddOn&&N.embedAddon08&&(p(N,S,Q,P,d,z),z++)}}(M)));0<Object.keys(E).length&&!O&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);O?(N.vdRelatedProducts=E,0<Object.keys(N.vdRelatedProducts).length&&!N.showEmbedAddon&&
v(N,d,N.vdRelatedProducts,b,r)):N.isEmbedAddOn&&N.embedAddon08&&v(N,d,E,b,r)}else if(K){Z=0;t=$jscomp.makeIterator(b);for(H=t.next();!H.done;H=t.next()){var I=$jscomp.makeIterator(H.value.products);for(H=I.next();!H.done;H=I.next())Z++}d.length>=Z&&(d=[]);E={};y=b;var X=0;for(H={$jscomp$loop$prop$i$322$362:0};H.$jscomp$loop$prop$i$322$362<b.length;H={$jscomp$loop$prop$i$322$362:H.$jscomp$loop$prop$i$322$362},H.$jscomp$loop$prop$i$322$362++)r&&null!=b[H.$jscomp$loop$prop$i$322$362].products&&0<b[H.$jscomp$loop$prop$i$322$362].products.length&&
(u(b[H.$jscomp$loop$prop$i$322$362].products),h.each(b[H.$jscomp$loop$prop$i$322$362].products,function(V){return function(P,S){P="in"!==k?S.modelcode:S.aemSkuCode;var Q=E[P]={};Q.modelCode=P;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&&(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)&&(N.hasBundle=
!0,na=b[V.$jscomp$loop$prop$i$322$362].category.display_name,h.extend(S,Q),N.addonBundleIdx=V.$jscomp$loop$prop$i$322$362,N.addonBundleData=b[V.$jscomp$loop$prop$i$322$362],W(S.modelcode));Q.bundleCategoryName=b[V.$jscomp$loop$prop$i$322$362].category.display_name;O?(p(N,S,Q,P,d,X),X++):N.isEmbedAddOn&&N.embedAddon08&&(p(N,S,Q,P,d,X),X++)}}(H)));for(M in E)H=E[M],H.bundleCategoryName===na&&(F(H.modelCode)||delete E[M]);0<y.length&&y.forEach(function(V,P){if(V.category.display_name===na)for(var S in V.products)F(V.products[S].modelcode)||
y[P].products.splice(S,1)});0<Object.keys(E).length&&!O&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);O?(N.vdRelatedProducts=E,0<Object.keys(N.vdRelatedProducts).length&&!N.showEmbedAddon&&v(N,d,N.vdRelatedProducts,b,r)):N.isEmbedAddOn&&N.embedAddon08&&v(N,d,E,b,r)}}function u(O){O.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 p(O,b,r,H,N,
Z){var d=O.drawObj,M=ca?b.promotionPriceValue:b.promotionPrice?b.promotionPrice.value:"",t=ca?b.priceValue:b.price.value,z=""+(b.promotionPrice&&M?M:"");M=""+(z?t-M:"");z=""+(z?Granite.I18n.get("Save {0}",currencyComma(M,n)):"");if("bg"==k&&M){if("eur"===O.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");z+=" / "+t}var X=I=t=null;"outofstock"===r.stocklevel.toLowerCase()&&
(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=f?f:null;d.embedAddon.isNotVDSTEPBUYING=f?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=O.categoryTypeCode?O.categoryTypeCode.substring(0,2):"";"pe"==
k&&"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)"));N.push({index:Z,name:b.name,nameToLowerCase:b.name?b.name.toLowerCase():"",groupCode:b.groupCode.toLowerCase(),modelCode:H,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:z,savePriceValue:M&&
!t?M:null,isOOS:t,isStock:!t,oosClass:I,hideClass:X,revenue:b.price.value,isLearnMorePopup:f||O.embedAddon08})}function v(O,b,r,H,N){O.showEmbedAddon=!0;var Z=O.drawObj,d=O.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 z=M.response.resultData.productList;3<b.length&&Z.embedAddon.newComponent&&(Z.embedAddon.useMobileCTA=!0);h.each(b,
function(I,X){h.each(z,function(V,P){V=P.modelList;null!=V&&h.each(V,function(S,Q){if(X.modelCode===Q.modelCode){if(f||O.embedAddon08||O.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=P.thirdPASeller;b[I].tradeIn=Q.tradeIn;b[I].tradeInDesc=Q.tradeInDesc;b[I].premiumCare=Q.premiumCare;b[I].premiumCareDesc=
Q.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 ha="";switch(S.replace(/ /g,"").toUpperCase()){case "N":S=
Granite.I18n.get("new");ha="badge-icon--bg-color-blue";break;case "H":S=Granite.I18n.get("hot");ha="badge-icon--bg-color-red";break;case "B":S=Granite.I18n.get("best seller");ha="badge-icon--bg-color-orange";break;case "U":S=Q.topFlags.iconTitle,ha="badge-icon--bg-color-teal"}b[I].iconTitle=S;b[I].iconClass=ha}if(f){S="Hybris"===h("#shopIntegrationFlag").val();ha="Hybris-intg"===h("#shopIntegrationFlag").val();var ka="Hybris-new"===h("#shopIntegrationFlag").val();b[I].uspText&&0<b[I].uspText.length&&
(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]);(ha||ka)&&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=
P.categorySubTypeName?P.categorySubTypeName:P.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(O,Z),0<h(".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(O){return O?"F-"==O.substring(0,2):!1}function W(O){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(b,
O,function(r,H){U={};U.bundleModelCode=O;H&&null!=r.products&&0<r.products.length&&(h.each(r.products,function(N,Z){N=Z.modelcode;var d=U[N]={};d.modelCode=N;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,
d.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(U));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(O,function(r,H){U={};U.bundleModelCode=O;H&&null!=r.products&&0<r.products.length&&(h.each(r.products,function(N,Z){N=Z.modelcode;var d=U[N]={};d.modelCode=N;d.name=
Z.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,
d.groupId=Z.groupId;Z.colorCode&&(d.colorCode=Z.colorCode)}),R.push(U));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"})}function aa(O,b){h.each(b,function(r,H){h.each(O,function(N,Z){var d=Z.modelList;null!=d&&(x(d,Z.chipOptions,b),h.each(d,function(M,t){var z=t.modelCode,I=b[z].stocklevel||"";b[z]&&(t.displayName||(t.displayName=b[z].name||""),t.thumbUrlAlt=b[z].imageUrlAlt||"",t.priceDisplay=b[z].price||"",t.promotionPriceDisplay=b[z].promotionPrice||"",t.lowestWasPriceDisplay=
b[z].lowestWasPrice||"",t.price=b[z].priceValue||"",t.promotionPrice=b[z].promotionPriceValue||"",t.lowestWasPrice=b[z].lowestWasPriceValue||"",t.stocklevel=I,t.isStock=!(""===I||"OUTOFSTOCK"===I.toUpperCase()),t.idx=String(N)+"-"+String(M),t.commercialFlag=b[z].commercialFlag||"",t.referenceColor=b[z].referenceColor||"",t.childModelCode=b[z].childModelCode||"")}))})})}function x(O,b,r){h.each(O,function(H,N){H=N.modelCode;if(r[H]){var Z=r[H].priority||0;N.priority=Z;N.fmyChipList&&h.each(N.fmyChipList,
function(d,M){M.fmyChipType&&"color"==M.fmyChipType.toLowerCase()&&h.each(b,function(t,z){z.fmyChipType&&"color"==z.fmyChipType.toLowerCase()&&h.each(z.optionList,function(I,X){X.optionCode==M.fmyChipCode&&(X.priority=Z)})})})}});O.sort(function(H,N){return 0==N.priority?0==H.priority?0:-1:0==H.priority?1:H.priority-N.priority});h.each(b,function(H,N){"color"==N.fmyChipType.toLowerCase()&&N.optionList.sort(function(Z,d){return 0==d.priority?0==Z.priority?0:-1:0==Z.priority?1:Z.priority-d.priority})})}
function T(O){var b=l.sg.components.dynamic.detailSharedObj;da={};var r=0,H={},N=[],Z=[];if(f&&!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;f&&d&&M&&(y=y.filter(function(z){var I=z.category.id.replace(/_/g,"").replace(/ /g,"").toLowerCase();if(-1===I.indexOf("soundbar")&&-1===I.indexOf("sounddevice"))return z}))}h.each(y,function(z,I){h.each(y[z].products,function(X,
V){h.each(O,function(P,S){var Q=S.familyId;h.each(S.modelList,function(ha,ka){if(V.modelcode==("in"!==k?ka.modelCode:ka.shopSKU)){var la=B(S);if("cn"==k&&"01090100"==la.categorySubTypeCode){var ua=ka.fmyChipList.filter(function(ya){return"RING SIZE"==ya.fmyChipType})[0].fmyChipCode;-1==Z.indexOf(la.familyId+"_"+ua)&&(la.familyId=Q+"_"+ua,la.chipOptions=la.chipOptions.map(function(ya){if("RING SIZE"==ya.fmyChipType)return Object.assign({},ya,{optionList:ya.optionList.filter(function(Ma){return Ma.optionCode==
ua})});var sa=[];la.modelList.filter(function(Ma){return Ma.fmyChipList[0].fmyChipCode==ua}).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({},ya,{optionList:sa})}),la.modelList=la.modelList.filter(function(ya){return ya.fmyChipList[0].fmyChipCode==ua}),N.push(la),Z.push(la.familyId))}else-1==
Z.indexOf(la.familyId)&&(N.push(la),Z.push(la.familyId));H={category:{display_name:I.category.display_name,id:I.category.id,order:I.category.order,productList:N,key:r}};da[r]=H}})})});Z=[];N=[];r++});r=0;d=b.addonBundleIdx;!da[d]&&b.hasBundle&&(b=b.addonBundleData,da[d]={category:{display_name:b.category.display_name,id:b.category.id,key:d,order:b.category.order,productList:b.products}});b=Object.keys(da);b=$jscomp.makeIterator(b);for(d=b.next();!d.done;d=b.next())da[r]=da[d.value],da[r].category.id=
r,r++;b=[];for(var t in da)b.push(da[t]);b.sort(function(z,I){return z.category.order-I.category.order});h.each(b,function(z,I){h.each(I.category.productList,function(X,V){h.each(V.modelList,function(P,S){S.idx=X+"-"+S.idx.split("-")[1]})})});return b}function B(O){for(var b={},r=$jscomp.makeIterator(Object.entries(O)),H=r.next();!H.done;H=r.next()){var N=$jscomp.makeIterator(H.value);H=N.next().value;N=N.next().value;b[H]=N}r=[];for(H=0;H<O.modelList.length;H++){N={};for(var Z=$jscomp.makeIterator(Object.entries(O.modelList[H])),
d=Z.next();!d.done;d=Z.next()){var M=$jscomp.makeIterator(d.value);d=M.next().value;M=M.next().value;N[d]=M}r.push(N)}b.modelList=r;return b}function w(O){var b=l.sg.components.dynamic.detailSharedObj,r=[];ra=[];K&&(oa=[]);if(0<Object.keys(da).length){h.each(da,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,
M){return d.categoryOrder-M.categoryOrder});ra=[];for(O=0;O<oa.length;O++)ra.push(oa[O].categoryId);var H="",N=h(".pdd16-step-buying__headline"),Z=h(".pdd16-step-buying__sub-headline");b.useAddonV2&&(N=h(".pdd16-step-buying-v2__headline"),Z=h(".pdd16-step-buying-v2__sub-headline"));h.each(ra,function(d,M){M="es"===k?"Choose yours {0}":"Choose your {0}";0==d&&f?(N[0].innerHTML=Granite.I18n.get(M,oa[d].display_name),A?(Z.text(Granite.I18n.get("addon subtitle")),"nl"===k&&b.addonStepBuying0701&&(N.text(Granite.I18n.get("addon title(monitor)")),
Z.text(Granite.I18n.get("addon subtitle(monitor)")))):("ch"===k||"ch_fr"===k)&&b.addonStepBuying04&&N.text(Granite.I18n.get("addon title(tv)"))):f||b.hasVoucher||"se"===k||"no"===k||"dk"===k||"fi"===k||(N[0].innerHTML=Granite.I18n.get("Amazing additions"),Z.css("display","none"));H+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';H+='\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"'+
(f?"vd ":"")+"add-on:"+oa[d].display_name+':tab"\x3e'+oa[d].display_name;H+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';H+="\t\t\t\t\x3c/button\x3e";H+="\t\t\t\x3c/li\x3e"})}else H="",N=h(".pdd16-step-buying__headline"),H+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e',H+='\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"'+(f?"vd ":"")+"add-on:"+
na+':tab"\x3e'+na,H+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e',H+="\t\t\t\t\x3c/button\x3e",H+="\t\t\t\x3c/li\x3e";0<h(".tab__list").length&&h(".tab__list").html(H)}function e(O,b,r){b="";var H=h("#scene7domain").val();O&&(-1<O.indexOf("?")&&(O=O.replace("medias",""),O=O.substring(2,O.indexOf("?")),O=O.substring(0,O.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/")?b=O:(r&&(H=H.replace("/image/","/content/")),b=H+O));return b}l.sg.sdf.util.prepareNamespace("sg.components.dynamic");var n=h("#priceCurrency").val(),k=h("#siteCode").val(),A="nl"===k||"be"===k||"be_fr"===k,ca="Hybris"===h("#shopIntegrationFlag").val()||"Hybris-intg"===h("#shopIntegrationFlag").val(),K="Hybris-new"===h("#shopIntegrationFlag").val(),D=h("#categorySubTypeCode").val(),
f=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={},U={},R=[],y={},da={},wa="",ra=[],oa=[],ea="",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"===h("#isEppPage").val()&&"pl"===k?!0:!1;"true"===h("#isEppPage").val()&&
(C="Y"===eppOmniPricingUseYn?!0:!1);l.sg.components.dynamic.bridgePageCommon={getRelatedProductsSimpleInfo:function(O){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!1,b,O,function(r,H){r&&0<r.length&&G(!1,r,H,b.embedAddon08)},null,{queryType:"ACCESSORIES"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(O,function(r,H){r&&0<r.length&&G(!1,r,H,b.embedAddon08)},null,
{queryType:"ACCESSORIES"})},getRelatedProductsVdSimpleInfo:function(O){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!0,b,O,function(r,H){r&&0<r.length&&G(!0,r,H,!0)},null,{queryType:"DISPLAY_ON_PDP"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(O,function(r,H){r&&0<r.length&&G(!0,r,H,!0)},null,{queryType:"DISPLAY_ON_PDP"})},getSearchProductcard:function(O){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(E),
function(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=T(b),w(wa),O(b))},null,null)},setPriceInfo:function(O){var b=O.price,r=O.promotionPrice,H=Number((b-r).toFixed(2)),N=currencyComma(H,n),Z=A||!O.priceDisplay?currencyComma(b,n):O.priceDisplay,d=A||!O.promotionPriceDisplay?currencyComma(r,n):O.promotionPriceDisplay,M=O.lowestWasPrice?parseFloat(O.lowestWasPrice):0,t="co"===k&&"true"===O.vatEligible&&
O.vatFreePrice&&O.vatFreePriceDisplay;return{promotionPrice:r,productPrice:b,savePriceTemp:H,saveText:N,productPriceDisplay:Z,promotionPriceDisplay:d,lowestWasPrice:M,vatPrice:t?O.vatFreePriceDisplay:"",vatPriceValue:t?O.vatPriceValue:""}},getBundleCategoryName:function(){return na},getRelatedProductsSimpleBundle:W,getBundleSearchProductcard:function(O){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(U),function(b,r){if(r&&200===b.response.statusCode&&null!=b.response.resultData&&
null!=b.response.resultData.productList){var H=b.response.resultData.productList;h.each(U,function(N,Z){h.each(H,function(d,M){M=M.modelList;null!=M&&h.each(M,function(t,z){var I=z.modelCode,X=U[I].stocklevel||"";U[I]&&(z.displayName||(z.displayName=U[I].name||""),z.thumbUrlAlt=U[I].imageUrlAlt||"",z.priceDisplay=U[I].price||"",z.promotionPriceDisplay=U[I].promotionPrice||"",z.price=U[I].priceValue||"",z.promotionPrice=U[I].promotionPriceValue||"",z.stocklevel=X,z.isStock=!(""===X||"OUTOFSTOCK"===
X.toUpperCase()),z.idx=String(d)+"-"+String(t),z.commercialFlag=U[I].commercialFlag||"",z.referenceColor=U[I].referenceColor||"",z.childModelCode=U[I].childModelCode||"")})})});ea=H;O(ea)}},null,null)},categoryGridGPv2:function(){var O="";l.sg.components.dynamic.detailSharedObj.addOnCategoryList.forEach(function(b){O+='\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';O+='\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:'+
b.category.display_name+':tab"\x3e'+b.category.display_name;O+='\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';O+="\t\x3c/button\x3e";O+="\x3c/li\x3e"});h(".pdd16-step-buying .tab__list").html(O)}}})(window,window.jQuery);
(function(l,h){function G(P,S){l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();da=C?[].concat($jscomp.arrayFromIterable(new Set(A.addOnGift.products.map(function(ha){return ha.family_id})))).map(function(ha,ka){return function(la){la=void 0===la?{}:la;return{familyId:ha,chipOptions:la.chipOptions,modelList:(void 0===la.modelList?[]:la.modelList).filter(function(ua){var ya=ua.modelCode;return A.addOnGift.products.some(function(sa){var Ma=sa.modelCode;return sa.family_id===
ha&&Ma===ya})}).map(function(ua,ya){var sa=A.addOnGift.products[ya],Ma=!(""===sa.inventory.status||"OUTOFSTOCK"===sa.inventory.status.toUpperCase());return Object.assign({},ua,{idx:ka+"-"+ya,stocklevel:sa.inventory.status,isStock:Ma,displayName:sa.displayName})})}}(A.addOnSearchGPv2.find(function(la,ua){return la.familyId===ha}))}).filter(function(ha){return 0<ha.modelList.length}):P;if(S||null!=da&&0!==Object.keys(da).length){W(da);I.get("useTnc")&&I.get("useTncFromAPI")&&(z=w(),P=I.get("tncAPIContext")?
I.get("tncAPIContext"):"",z.render(P));l.scrollTo(0,0);h(".pdd16-step-buying__promotion-banner").hide();h(".pdd16-step-buying").show();k.hide();if(C||E){P=h("[class*\x3d'feature-benefit']");for(S=0;S<P.length;S++)P[S].remove();P=h("[class*\x3d'three-column-carousel']");for(S=0;S<P.length;S++)P[S].remove();h(".video-wrapper").remove();P=h(".root.responsivegrid \x3e div");for(var Q=0;Q<P.length;Q++)S=P[Q].classList,S.value.includes("aem-Grid--12")||P[Q].remove();0<h(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&
h(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(U)for(P=h(".root.responsivegrid \x3e div"),Q=0;Q<P.length;Q++)S=P[Q].classList,S.value.includes("aem-Grid--default--12")||P[Q].remove();h(".pdd16-step-buying").siblings().add(h(".pdd16-step-buying").parent().siblings()).hide();setTimeout(function(){l.sg.components.stepbuying.init()},10);0===h(".scrollbar__contents .pdd16-step-buying__card").not(".is-item-visible").length&&h(".pdd16-step-buying__cta-more").hide();
_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(){n.DetailAfterEvent.addToCartCta([],!0,!0)},1E3)}function u(P,S){for(var Q=0;Q<P.length;Q++)if(P[Q]===S)return!0;return!1}function p(P,S,Q){S="";var ha=h("#scene7domain").val();P&&(-1<P.indexOf("?")&&(P=P.replace("medias",""),P=P.substring(2,P.indexOf("?")),P=P.substring(0,
P.lastIndexOf("-"))),-1<P.indexOf("https:")||-1<P.indexOf("http:")||-1<P.indexOf("//stg-images.samsung.com/")||-1<P.indexOf("//images.samsung.com/")||-1<P.indexOf("image.samsung.com/")||-1<P.indexOf("//stg-images.samsung.com.cn/")||-1<P.indexOf("//images.samsung.com.cn/")||-1<P.indexOf("image.samsung.com.cn/")?S=P:(Q&&(ha=ha.replace("/image/","/content/")),S=ha+P));return S}function v(P){var S="",Q=P.modelList[P.frontModelIdx],ha=Q.idx==V,ka=Q.fmyChipList,la="";if(ka&&0<ka.length)for(var ua=0;ua<
ka.length;ua++)if("COLOR"==ka[ua].fmyChipType){la=""!==Q.fmyChipList[ua].fmyChipLocalName?Q.fmyChipList[ua].fmyChipLocalName:Q.fmyChipList[ua].fmyChipName;break}ka=Q.isStock;var ya=y.setPriceInfo(Q),sa="";ua=Q.idx.split("-")[0];Q.thumbUrl&&(sa='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+p(Q.thumbUrl,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+p(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"'+
p(Q.thumbUrl,"$240_240_PNG$")+'" data-mobile-src\x3d"'+p(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="";ka||(sa=
t);var Ma=C?": "+la:"\x26nbsp;"+la;la='\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'+(""!=la?'\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(P.viewOptionObj&&0<Object.keys(P.viewOptionObj).length){var pa=
"",a=0,c=P.viewOptionObj,m=P.optionTypeList,g;for(g in P.viewOptionObj){var q=g.toLowerCase().replace(/ /g,"-"),ba=P.viewOptionObj[g].optionList,J="";P.viewOptionObj[g].styleAttr&&(J=P.viewOptionObj[g].styleAttr);if("COLOR"===g){var fa="";J="";for(var qa in ba){var ia=ba.length;var Aa=ba[qa];var Ia=!1;var Fa=Aa.modelIdx.split(",");if(null!=Aa.modelIdx&&u(Fa,String(P.frontModelIdx))){Ia=!0;fa=Aa.modelIdx;var Da=""}else if(Da=" is-disabled",0===a)Da="";else{var Ga=pa.split(","),Sa;for(Sa in Fa)if(u(Ga,
Fa[Sa])){Da="";break}}Ga=Fa="";if(""===Da){var La=Aa.modelIdx;var ma=[],Oa=!0,Ca;for(Ca in c)if(Ca!==g){var Ka=c[Ca].optionList,Qa;for(Qa in Ka){var Na=Ka[Qa];Na=Na.modelIdx;var Ua=Na.split(",");-1<Ua.indexOf(String(P.frontModelIdx))&&ma.push(Na)}}La=X(c,La,ma,Oa,m);P.modelList.length>La&&P.modelList[La]&&(Fa=P.modelList[La].modelCode,Ga=P.modelList[La].modelName)}ma="pdd16-"+q+"-"+qa+"-"+P.modelList[La].idx;Oa="pdd16-"+q+"-"+qa+"-"+P.modelList[La].idx;var Ra=Aa.multiColorYN;Ia='\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"'+
ma+'" name\x3d"'+Oa+'" data-modeli\x3d"'+La+'" '+(Ia?" checked":"")+(""===Da?"":" 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:'+g.toLowerCase()+":"+Aa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Fa+'" data-modelname\x3d"'+Ga+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+ma+'"\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: '+
Aa.optionCode+'"\x3e'+Aa.optionLocalName+"\x3c/span\x3e";else if(Da=Aa.multiColorList){Ga=Da.optionCodeList;Ra="";switch(Da.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"'+
Ga[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"'+
Ga[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"'+Ga[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';
break;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"'+
Ga[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"'+Ga[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';
break;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" viewBox\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"'+
Ga[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"'+
Ga[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"'+
Ga[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"'+
Ga[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"'+Ga[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"'+Ga[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';
break;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"'+
Ga[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"'+Ga[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"'+Ga[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';
break;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"'+
Ga[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"'+Ga[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"'+Ga[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"'+Ga[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';
break;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"'+
Ga[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"'+Ga[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"'+
Ga[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"'+Ga[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"'+
Ga[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"'+Ga[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,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'}Fa+=
Ra}J+=Ia+Fa+'\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Aa.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=fa;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'+
J+'\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':
"")+'\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"===
g||"TV SIZE"===g||"HOME APPLIANCE SIZE"===g||"MONITOR SCREEN SIZE"===g){Ra=fa="";for(var Va=0;Va<ba.length;Va++){var Y=ba.length;Aa=ba[Va];Ia=!1;Fa=Aa.modelIdx.split(",");if(null!=Aa.modelIdx&&u(Fa,String(P.frontModelIdx)))Ia=!0,fa=Aa.modelIdx,Da="";else if(Da=" is-disabled",0===a)Da="";else for(Sa in Ga=pa.split(","),Fa)if(u(Ga,Fa[Sa])){Da="";break}Ga=Fa="";if(""===Da){La=Aa.modelIdx;ma=[];Oa=!1;for(Ca in c)if(Ca!==g)for(Qa in Ka=c[Ca].optionList,Ka)Na=Ka[Qa],Na=Na.modelIdx,Ua=Na.split(","),-1<Ua.indexOf(String(P.frontModelIdx))&&
ma.push(Na);La=X(c,La,ma,Oa,m);P.modelList.length>La&&P.modelList[La]&&(Fa=P.modelList[La].modelCode,Ga=P.modelList[La].modelName)}ma="pdd16-"+q+"-"+Va+"-"+P.modelList[La].idx;Oa="pdd16-"+q+"-"+P.modelList[La].idx;Ra+='\x3cspan class\x3d"option-selector__swiper-slide'+Da+'"\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"'+ma+'" name\x3d"'+Oa+'" data-modeli\x3d"'+La+'" '+(Ia?" checked":"")+(""===Da?"":" 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:'+g.toLowerCase()+":"+Aa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Fa+'" data-modelname\x3d"'+Ga+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+ma+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+Aa.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=
fa;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'+
Granite.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'+
Granite.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+=la+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";
f&&(S=null!=ya.promotionPrice&&""!==ya.promotionPrice&&"0"!=ya.promotionPrice?S+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t                \x3cstrong class\x3d"card-price"\x3e'+ya.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t                \x3cspan class\x3d"card-was"\x3e\n\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+ya.productPriceDisplay+'\x3c/span\x3e\n\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+ya.promotionPrice+'"\x3e\n\t\t                  \x3cdel\x3e'+
ya.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'+ya.productPriceDisplay+"\x3c/strong\x3e\n\t\t              \x3c/div\x3e"));P=C?Q.shopSKU:"in"!==ca?Q.modelCode:P=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-'+
ua+'" data-modelcode\x3d"'+P+'" data-modelname\x3d"'+Q.modelName+'" data-shopsku\x3d"'+Q.shopSKU+'" '+(ka?"":"disabled checked")+" "+(ha?" checked":"")+'\x3e\n                      \x3clabel class\x3d"radio-v2__label" for\x3d"radio-id-'+ua+'"\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';
return'\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+Q.idx+'" data-modelcode\x3d"'+P+'"\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(P,S){null==P.modelList[S].displayName&&(P.modelList[S].displayName="");var Q={};for(ua in P.modelList){var ha=P.modelList[ua].fmyChipList,ka;for(ka in ha){var la=ha[ka].fmyChipType+"+"+ha[ka].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+ha[ka].fmyChipLocalName.replace('"',"").replace("\x26quot;","");Q[la]=void 0==Q[la]?
ua:Q[la]+(","+ua)}}var ua=[];ha={};if(P.chipOptions)for(ka=0;ka<P.chipOptions.length;ka++){var ya=P.chipOptions[ka],sa=ya.fmyChipType,Ma=ya.optionList,pa;for(pa in Ma)la=ya.fmyChipType+"+"+Ma[pa].optionCode.replace('"',"").replace("\x26quot;","")+"+"+Ma[pa].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=Q[la]&&(Ma[pa].modelIdx=Q[la]);ha[sa]={};ha[sa].optionList=Ma;ua.push(sa)}P.viewOptionObj=ha;P.optionTypeList=ua;P.frontModelIdx=S;return P}function W(P){A.addonGiftBundleRelatedData=
A.addonGiftBundleRelatedData.filter(function(a,c,m){return c===m.findIndex(function(g){return g.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;h(".pdd16-step-buying__headline").html(Q)}else{var ha=l.sg.components.dynamic.detailSharedObj.giftdataHybris;h.each(ha,function(a,c){"maintitle"===ha[a].key.toLowerCase()&&h(".pdd16-step-buying__headline").html(ha[a].value);"subtitle"===ha[a].key.toLowerCase()&&
(h(".pdd16-step-buying__sub-headline").html(ha[a].value),h(".pdd16-step-buying__sub-headline").css("display",""));"description"===ha[a].key.toLowerCase()&&(h(".pdd16-step-buying__disclaimer p").html(ha[a].value),h(".pdd16-step-buying__disclaimer").css("display",""))})}oa=h(".pdd16-step-buying__header-price-text")[0].innerHTML;if(0<P.length){for(var ka="",la=0;la<P.length;la++)if(Q=P[la],null!=Q.modelList&&0<Q.modelList.length){na=0;for(var ua=null,ya=0;ya<Q.modelList.length;ya++){var sa=Q.modelList[ya],
Ma=sa.isStock;sa.selected&&"Y"===sa.selected&&(na=ya,Ma&&(ua=ya))}if(null==ua)for(ya=0;ya<Q.modelList.length;ya++)if(sa=Q.modelList[ya],sa.isStock){ua=ya;break}null==ua&&(ua=na);Q=F(Q,ua);ka+=v(Q)}l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(A.hasGiftBundle)for(var pa in A.addonGiftBundleRelatedData)ka+='\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";P=A.giftdataHybris;pa="";pa=!1;if(P.length)for(la=
0;la<P.length;la++)"freeSmc"==P[la].key&&"Y"==P[la].value&&(pa=!0);if(pa)for(P=A.hybrisCareData.smcs,pa=0;pa<P.length;pa++)if(null==P[pa].paymentCycle||"MONTHLY"!=P[pa].paymentCycle.toUpperCase()){P=P[pa];pa=T(P);ka+='\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'+
ka+'\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';
ka=""}else{S="";l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(A.hasGiftBundle)for(la in A.addonGiftBundleRelatedData)S+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+aa(la)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";P=A.giftdataHybris;pa="";pa=!1;if(P.length)for(la=0;la<P.length;la++)"freeSmc"==P[la].key&&"Y"==P[la].value&&(pa=!0);if(pa){P=A.hybrisCareData.smcs;for(pa=0;pa<P.length;pa++)if(null==P[pa].paymentCycle||"MONTHLY"!=P[pa].paymentCycle.toUpperCase()){ka=
P[pa];break}pa=T(ka);S+='\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'+
S+'\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'}h(".pdd16-step-buying .pdd16-step-buying__card-wrap .swiper-wrapper").html(S);
ka=h(".radio-v2 input");P=ka.closest(".pdd16-step-buying--free-gift").find(".pdd16-step-buying__card-state p");S=!1;for(pa=0;pa<P.length;pa++)if(la=ka[pa].getAttribute("id"),Q=ka[pa].getAttribute("class"),P[pa].innerText.toUpperCase()!=t.toUpperCase()&&"radio-id-99"!=la&&"radio-id-SC"!=la&&!Q.includes("cta--bundle")){ka[pa].setAttribute("checked",!0);ra.push(ka[pa].getAttribute("data-modelcode"));S=!0;break}P=0;pa="";pa=h(".pdd16-step-buying--free-gift .pdd16-step-buying__card-state p");for(la=0;la<
pa.length;la++)pa[la].innerText.toUpperCase()==t.toUpperCase()&&"radio-id-SC"!=ka[la].getAttribute("id")&&P++;P==pa.length?(O=!0,pa=Granite.I18n.get("Skip"),S=!0):(pa="",pa=Granite.I18n.get("CONTINUE"));I.get("useGiftContinueI18nForAllCTA")&&(pa=Granite.I18n.get("CONTINUE(GIFT)"));ka=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");(I.get("useTnc")?e(ka):1)||(S=!1);ka='\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'+
d+"\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&&(ka+='\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');ka+='\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 '+
(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";h(".pdd16-step-buying__footer").html(ka);I.get("useTnc")&&(S="gift tnc ("+ca+")",h(".pdd16-step-buying__tnc .checkbox-v2__label-text").html(Granite.I18n.get(S)),h(".pdd16-step-buying__tnc").show());B()}function aa(P){var S=
"",Q=A.relatedProductsBundle[A.addonGiftBundleRelatedData[P].bundleModelCode],ha=Q.modelcode;var ka='\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'+
Q.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'+ka+"\n\t\t\t\x3c/div\x3e\n\t\t\t";ka=!1;Q=t;for(var la in A.addonGiftBundleRelatedData[P]){var ua=A.addonGiftBundleRelatedData[P][la];if(ua.stocklevel&&"inStock"===ua.stocklevel&&ua.colorCode){ka=!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'+
Q+'\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')+((ka?ha:"")+' data-modelCode\x3d"'+ha+'" '+(ka?"":"disabled")+'\x3e\n\t\t\t\t\t  \x3clabel class\x3d"radio-v2__label" for\x3d"'+ha+'"\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')}
function x(P,S,Q){var ha="",ka=h("#scene7domain").val();P&&(-1<P.indexOf("?")&&(P=P.replace("medias",""),P=P.substring(0,P.indexOf("?")),P+="?"+S),-1<P.indexOf("https:")||-1<P.indexOf("http:")||-1<P.indexOf("//stg-images.samsung.com/")||-1<P.indexOf("//images.samsung.com/")||-1<P.indexOf("image.samsung.com/")||-1<P.indexOf("//stg-images.samsung.com.cn/")||-1<P.indexOf("//images.samsung.com.cn/")||-1<P.indexOf("image.samsung.com.cn/")?ha=P:(Q&&(ka=ka.replace("/image/","/content/")),ha=ka+P));return ha}
function T(P){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'+P.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'+P.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';
return 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"'+
(P.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')}
function B(){h(".pdd16-step-buying__card \x3e .pdd16-step-buying__card-option").off("click",".option-selector__color input, .option-selector__size input");h(".pdd16-step-buying__card \x3e .pdd16-step-buying__card-option").on("click",".option-selector__color input, .option-selector__size input",function(){var P=h(this);ra=[];h(".pdd16-step-buying__header-price-text").html(oa);h(".hiddenPrice").attr("value",ea);var S=(P.closest(".pdd16-step-buying__card").attr("data-index")||"").split("-")[0],Q=P.attr("data-modeli");
P=da[S].modelList[Q];ra.push(P.modelCode);P=P.isStock;V=h(this).attr("name");var ha=V.lastIndexOf("-");V=V.substring(V.lastIndexOf("-",ha-1)+1);setTimeout(function(){if(null!=Q){da[S].frontModelIdx=Q;var ka=F(da[S],Q),la=h(".pdd16-step-buying__card").eq(S),ua=h(".pdd16-step-buying__card").index(la);la.find(".option-selector__swiper-wrapper").each(function(ya){ya=da[S].optionTypeList[ya];var sa=h(this).attr("style");da[S].viewOptionObj[ya].styleAttr=sa});la.replaceWith(v(ka));la=h(document.querySelectorAll(".pdd16-step-buying__card")[ua]);
la.addClass("is-show");l.sg.components.stepbuying.init();B()}},300);P?(h("#giftContinue").hasClass("cta--disabled")&&h("#giftContinue").removeClass("cta--disabled").attr("disabled",!1),h("#giftContinue").attr("aria-disabled","")):(h("#giftContinue").addClass("cta--disabled").attr("disabled",!0),h("#giftContinue").attr("aria-disabled","true"))});h(".pdd16-step-buying.pdd16-step-buying--free-gift").off("click",".radio-v2__label");h(".pdd16-step-buying.pdd16-step-buying--free-gift").on("click",".radio-v2__label",
function(){var P=h(this);L=P;P.closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-state p");h(".pdd16-step-buying__header-price-text").html(oa);h(".hiddenPrice").attr("value",ea);ra=[];wa=[];var S=P.closest(".pdd16-step-buying__card").attr("data-index"),Q=P.closest(".radio-v2").find('input[type\x3d"radio"]');if("radio-id-SC"==P.closest(".radio-v2").find('input[type\x3d"radio"]').attr("id")){S=[];P=A.hybrisCareData;Q=P.smcs;for(var ha,ka=0;ka<Q.length;ka++)if(null==Q[ka].paymentCycle||
"MONTHLY"!=Q[ka].paymentCycle.toUpperCase()){ha=Q[ka];break}S.push(ha);P.smcs=S;configuratorCare.showPopup(P);h(".hubble-care-popup__smc-price").hide()}else if(Q.hasClass("cta--bundle")){var la=Q.attr("data-modelcode");ha=l.sg.components.dynamic.detailSharedObj.relatedProductsBundle[la];S=l.sg.components.dynamic.detailSharedObj.addonGiftBundleRelatedData.filter(function(ua){return ua.bundleModelCode===la});l.sg.components.addonBundlePopup.callSearchAjax(ha,S[0],!0);l.sg.components.notifyMePopup.showPopup(document.querySelector(".add-ons-evoucher-popup"));
l.sg.components.notifyMePopup.reInit()}else Q.hasClass("cta--bundle")||"radio-id-SC"==Q.attr("id")||(ha=S.split("-"),ha=da[ha[0]].modelList[ha[1]],P="",h("#priceCurrency").val(),h(".hiddenPrice")[0].getAttribute("value"),P=C?ha.shopSKU:ha.modelCode,P=C?ha.shopSKU:ha.modelCode,wa.push(S),ra.push(P));(E||U)&&h(".tab__list").attr("style")&&-1<h(".tab__list").attr("style").indexOf("none")&&(h(document).off("click","#freeGiftPopup .layer-popup__close, .hubble-care-popup__close"),h(document).on("click",
"#freeGiftPopup .layer-popup__close, .hubble-care-popup__close",function(){L.prev().prop("checked",!1)}),h(document).off("click",".hubble-care-popup__button-inner .hubble-care-popup__button-item"),h(document).on("click",".hubble-care-popup__button-inner .hubble-care-popup__button-item",function(){h(".hubble-care-popup__button-inner .hubble-care-popup__button-item")[0]==h(this)[0]?(L.prev().prop("checked",!1),h("#giftContinue").addClass("cta--disabled").attr("disabled",!0)):h("#giftContinue").removeClass("cta--disabled").attr("disabled",
!1)}));ha=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");ha=I.get("useTnc")?e(ha):!0;0<ra.length&&ha?h("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):h("#giftContinue").addClass("cta--disabled").attr("disabled",!0)})}function w(){var P=h(".pdd16-step-buying__tnc");h("#giftContinue");var S=function(Q){var ha="";Q&&0<Q.length&&(ha=Q.map(function(ka){return'\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tnc-checkbox '+(ka.required?"is-required":
"")+'"\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"'+ka.code+'"\x3e\n\t\t\t\t\t\t\t\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+ka.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'+
ka.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 ha};return{render:function(Q){h.when(n.freeGiftHybrisCommon.getTnc(Q)).done(function(ha){ha&&0<ha.length&&(P.html(S(ha)),ha=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']"),(I.get("useTnc")?e(ha):1)||h("#giftContinue").addClass("cta--disabled").attr("disabled",!0))})}}}function e(P){var S=!0;0<P.length&&P.each(function(){var Q=h(this);
Q.closest(".pdd16-step-buying__tnc-checkbox").hasClass("is-required")&&(S=S&&Q.is(":checked"))});return S}var n=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),k=n.ux2.PriceBar,A=n.detailSharedObj,ca=h("#siteCode").val(),K=h("#priceCurrency").val(),D=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),f="se"===ca||"dk"===ca||"fi"===ca||"no"===ca,C="GPv2"===h("#shopIntegrationFlag").val(),E="Hybris"===h("#shopIntegrationFlag").val()||"Hybris-intg"===h("#shopIntegrationFlag").val(),U="Hybris-new"===
h("#shopIntegrationFlag").val(),R="true"===h("#isEppPage").val(),y={},da=[],wa=[],ra=[],oa,ea,na,L,O=!1,b=!1,r=Granite.I18n.get("From"),H=Granite.I18n.get("or"),N=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"),z=null,I=function(P,S){var Q=S[P],ha=S["default"];return{get:function(ka){return Q&&"undefined"!==typeof Q[ka]?Q[ka]:ha&&"undefined"!==typeof ha[ka]?ha[ka]:!1}}}(ca,{it:{useGiftContinueI18nForAllCTA:!0,
useTnc:!0,useTncFromAPI:!0,tncAPIContext:"FOC"}}),X=function(P,S,Q,ha,ka){S=S.split(",");var la=S[0];ka=ka.indexOf("MEMORY");if(!C&&!U&&!E&&ha&&0<ka){Q=P.MEMORY.optionList;var ua=0,ya=0,sa;for(sa in Q){la=Q[sa].modelIdx.split(",");for(var Ma in la)if(u(S,la[Ma])){P=Q[sa].optionCode.replace("TB","000").replace(/[^0-9]/g,"");ya<P&&(ya=P,ua=la[Ma]);break}}S=ua}else{for(ua in Q)if(sa=Q[ua]){Ma=sa.split(",");sa=[];for(ya in S)-1<Ma.indexOf(String(S[ya]))&&sa.push(S[ya]);0<sa.length&&(S=sa)}S=0<S.length?
S[0]:la}return S},V="";h(document).off("click",".hubble-care-popup .hubble-care-popup__button-item a");h(document).on("click",".hubble-care-popup .hubble-care-popup__button-item a",function(P){P=h(this);if(void 0!=A.globalServiceInfo.care&&"Confirm"==P[0].innerText){P=A.globalServiceInfo.care;P=h(".hiddenPrice").val()-P.sale_price.value;var S=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;S=(Granite.I18n.get("From {0}/mo",currencyComma(P/Number(S),K))+" "+Granite.I18n.get("for {0} mos",
S)+" "+H+" "+currencyComma(P,K)).split(" "+H+" ");P=b?'\n                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+N+'\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"+H+" "+S[1]+'\x3c/p\x3e\n                    \x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+P+'"\x3e\n                ':'\n\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
N+'\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"'+P+'"\x3e\n\t\t\t\t';h(".pdd16-step-buying__header-price").html(P);h(".pdd16-step-buying__footer-sum").html(P)}P=h("#radio-id-SC").attr("data-modelCode");ra.push(P);0==ra.length?h("#giftContinue").addClass("cta--disabled").attr("disabled",!0):h("#giftContinue").removeClass("cta--disabled").attr("disabled",
!1)});h(document).off("click","#bundleAddOnGift");h(document).on("click","#bundleAddOnGift",function(){var P=[],S=h(".add-ons-evoucher-popup__item .option-selector-v2__swiper-slide.is-checked");h.each(S,function(ka,la){P.push(S.find(".option-selector-v2__color-code")[ka].getAttribute("data-modelcode"))});for(var Q=0;Q<P.length;Q++)ra.push(P[Q]);if(0==ra.length)h("#giftContinue").addClass("cta--disabled").attr("disabled",!0);else{h("#giftContinue").removeClass("cta--disabled").attr("disabled",!1);
var ha=h(this).attr("data-parent-modelcode");h(".pdd16-step-buying--free-gift .pdd16-step-buying__card-input .cta--bundle").each(function(ka){h(this).attr("data-modelcode")===ha&&h(this).prop("checked",!0)})}l.sg.components.notifyMePopup.closePopup()});h(document).off("click",".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");h(document).on("click",".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']",function(){var P=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");
e(P)?h("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):h("#giftContinue").addClass("cta--disabled").attr("disabled",!0)});h(document).off("click","#giftContinue, #giftSkip");h(document).on("click","#giftContinue, #giftSkip",function(){var P=A.soundbarCategoryData&&0<Object.keys(A.soundbarCategoryData).length?!0:!1;"giftSkip"===h(this).attr("id")&&(O=!0);O?A.hasAddOns&&!A.isEmbedAddOn||A.hasAddOns&&A.isEmbedAddOn&&P?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():
n.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&&P?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():n.DetailAfterEvent.addToCartCta(ra,!0,!0);A.globalServiceInfo.care&&delete A.globalServiceInfo.care},10))});n.bridgePagefreeGift={moveBridgePage:function(P){P=(n.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||
"").split(" "+H+" ");var S=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePrice;ea=A.globalServiceInfo.care?S+A.globalServiceInfo.care.sale_price.value:S;1<P.length?(b=!0,P="tr"===ca?'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+N+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+P[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+H+" "+P[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
ea+'"\x3e\n\t                ':'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+N+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+P[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+H+" "+P[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ea+'"\x3e\n\t                '):P="tr"===ca?'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
N+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+P[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ea+'"\x3e\n\t\t\t\t\t':'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+N+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+P[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
ea+'"\x3e\n\t\t\t\t\t';h(".pdd16-step-buying__header-price").html(P);h(".pdd16-step-buying__footer-sum").html(P);if(C||E||U)y=n.freeGiftHybrisCommon,C?(P=A.addOnApiList.gift)&&P.list&&0<P.list.length&&G(P.list):0===da.length&&0<A.addonGiftBundleRelatedData.length?G([],!0):y.getSearchProductcard(G)}}})(window,window.jQuery);
(function(l,h){function G(K,D,f){k={};h.each(K.products,function(C,E){C=E.modelcode;var U=k[C]={};U.modelCode=C;U.name=E.name;E.picture&&(U.imageUrl=E.picture.url,U.imageUrlAlt=E.picture.altText);E.stock&&(U.stocklevel=E.stock.stockLevelStatus);E.price&&E.price.value&&(U.priceValue=E.price.value,U.price=E.price.formattedValue,U.promotionPriceValue=E.price.value,U.promotionPrice=E.price.formattedValue);E.promotionPrice&&E.promotionPrice.value&&(U.promotionPriceValue=E.promotionPrice.value,U.promotionPrice=
E.promotionPrice.formattedValue);"F-"==E.modelcode.substring(0,2)&&(E.name&&(U.name=E.name),h.extend(E,U),f[E.modelcode]=E,u(E.modelcode),D.hasGiftBundle=!0)});D.relatedProductsBundle=f}function u(K){x?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(v,K,function(D,f){A={};A.bundleModelCode=K;f&&null!=D.products&&0<D.products.length&&(h.each(D.products,function(C,E){C=E.modelcode;var U=A[C]={};U.modelCode=C;U.name=E.name;E.imageUrl&&(U.imageUrl=E.imageUrl);E.imageUrlAlt&&
(U.imageUrlAlt=E.imageUrlAlt);E.stocklevel&&(U.stocklevel=E.stocklevel);E.price&&E.priceValue&&(U.priceValue=E.priceValue,U.price=E.price,U.promotionPriceValue=E.priceValue,U.promotionPrice=E.price);E.promotionPrice&&E.promotionPriceValue&&(U.promotionPriceValue=E.promotionPriceValue,U.promotionPrice=E.promotionPrice);E.colorCode&&(U.colorCode=E.colorCode)}),ca.push(A));v.addonGiftBundleRelatedData=ca},null,{queryType:"SELECTION_OF_BUNDLE"}):T&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,
function(D,f){A={};A.bundleModelCode=K;f&&null!=D.products&&0<D.products.length&&(h.each(D.products,function(C,E){C=E.modelcode;var U=A[C]={};U.modelCode=C;U.name=E.name;E.picture&&(U.imageUrl=E.picture.url,U.imageUrlAlt=E.picture.altText);E.stock&&(U.stocklevel=E.stock.stockLevelStatus);E.price&&E.price.value&&(U.priceValue=E.price.value,U.price=E.price.formattedValue,U.promotionPriceValue=E.price.value,U.promotionPrice=E.price.formattedValue);E.promotionPrice&&E.promotionPrice.value&&(U.promotionPriceValue=
E.promotionPrice.value,U.promotionPrice=E.promotionPrice.formattedValue);if(E.groupCode&&0==E.groupId||E.groupCode&&0!=E.groupId)U.groupCode=E.groupCode,U.groupId=E.groupId;E.colorCode&&(U.colorCode=E.colorCode)}),ca.push(A));v.addonGiftBundleRelatedData=ca},null,{queryType:"SELECTION_OF_BUNDLE"})}var p=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),v=p.detailSharedObj,F=h("#priceCurrency").val(),W=h("#siteCode").val(),aa="nl"===W||"be"===W||"be_fr"===W,x="Hybris"===h("#shopIntegrationFlag").val()||
"Hybris-intg"===h("#shopIntegrationFlag").val(),T="Hybris-new"===h("#shopIntegrationFlag").val(),B=h("#storeDomain").val(),w=h("#categoryGroupCode").val(),e=[],n=[],k={},A={},ca=[];h(document).on("bundlePopupEvent",function(K,D){h(".hubble-addon-page").hasClass("is-gift-type");"NewHybris"==h("#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");
Granite.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,f){f&&null!=D.products&&0<D.products.length?(k={},h.each(D.products,function(C,E){if(E.stocklevel){C=E.modelcode;var U=k[C]={};U.modelCode=C;U.name=E.name;E.imageUrl&&(U.imageUrl=E.imageUrl);E.imageUrlAlt&&(U.imageUrlAlt=E.imageUrlAlt);E.stocklevel&&
(U.stocklevel=E.stocklevel);E.price&&E.priceValue&&(U.priceValue=E.priceValue,U.price=E.price);E.promotionPrice&&E.promotionPriceValue&&(U.promotionPriceValue=E.promotionPriceValue,U.promotionPrice=E.promotionPrice,E.priceValue===E.promotionPriceValue&&(U.promotionPriceValue=null,U.promotionPrice=null));"F-"==E.modelcode.substring(0,2)&&(E.picture&&(U.imageUrl=E.picture.url),E.name&&(U.name=E.name),h.extend(E,U),A[E.modelcode]=E,u(E.modelcode),v.hasGiftBundle=!0)}}),v.relatedProductsBundle=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"}):T&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,function(D,f){l.sg.components.dynamic.detailSharedObj.relatedProductsObj={};f&&null!=D.products&&0<D.products.length?(l.sg.components.dynamic.detailSharedObj.relatedProductsObj=
D,G(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=
[];h.each(Object.keys(k),function(f,C){"F-"!=C.substr(0,2)&&D.push(C)});0<D.length?l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(D,function(f,C){C&&200===f.response.statusCode&&null!=f.response.resultData&&null!=f.response.resultData.productList&&(f=f.response.resultData.productList,h.each(f,function(E,U){U=U.modelList;null!=U&&h.each(U,function(R,y){var da="in"!==W?y.modelCode:y.shopSKU;if(k[da]){var wa=k[da].stocklevel;y.displayName||(y.displayName=k[da].name||"");y.thumbUrlAlt=
k[da].imageUrlAlt||"";y.priceDisplay=k[da].price||"";y.promotionPriceDisplay=k[da].promotionPrice||"";y.price=k[da].priceValue||"";y.promotionPrice=k[da].promotionPriceValue||"";y.stocklevel=wa;y.isStock=!(""===wa||"OUTOFSTOCK"===wa.toUpperCase());y.idx=String(E)+"-"+String(R)}})}),e=f,K(e))},null,null):K([])},setPriceInfo:function(K){var D=K.price,f=K.promotionPrice,C=Number((D-f).toFixed(2)),E=currencyComma(C,F),U=aa||!K.priceDisplay?currencyComma(D,F):K.priceDisplay;K=aa||!K.promotionPriceDisplay?
currencyComma(f,F):K.promotionPriceDisplay;return{promotionPrice:f,productPrice:D,savePriceTemp:C,saveText:E,productPriceDisplay:U,promotionPriceDisplay:K}},getBundleSearchProductcard:function(K){var D=[];h.each(k,function(f,C){"F-"!=C.modelcode.substr(0,2)&&D.push(C.modelcode)});l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(D,function(f,C){if(C&&200===f.response.statusCode&&null!=f.response.resultData&&null!=f.response.resultData.productList){var E=f.response.resultData.productList;
h.each(A,function(U,R){h.each(E,function(y,da){da=da.modelList;null!=da&&h.each(da,function(wa,ra){var oa=ra.modelCode,ea=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=ea,ra.isStock=!(""===ea||"OUTOFSTOCK"===ea.toUpperCase()),ra.idx=String(y)+"-"+String(wa))})})});
n=E;K(n)}},null,null)},getProductListData:function(){return n},getTariffRelatedProductsSimpleInfo:function(K){var D=p.detailSharedObj;A={};D.hasGiftBundle=!1;e=[];l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,function(f,C){C&&null!=f.products&&0<f.products.length?(l.sg.components.dynamic.detailSharedObj.hasTariffGift=!0,l.sg.components.dynamic.detailSharedObj.hasGift=!0,G(f,D,A),l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):l.sg.components.dynamic.detailSharedObj.hasTariffGift=
!1},null,{queryType:"SELECTION_OF_GIFT_FOR_SERVICETYPE",serviceId:D.tariffServiceId})},relatedProductsSimpleInfoSuccessCallBackFunc:G,relatedProductsBundle:A,getTnc:function(K){var D=checkEppSite()&&x?h("input#newHyvStoreDomain").val():B,f=checkEppSite()?l.sg.epp.common.companyCode:W,C=checkEppSite()?{withCredentials:!0}:{};return h.ajax({url:D+"/tokocommercewebservices/v2/"+f+"/tnc?context\x3d"+K+"\x26value\x3d"+w,type:"GET",dataType:"json",xhrFields:C})}}})(window,window.jQuery);
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,G=window.sg.common.lazyLoad,u=window.sg.common.scrollbar,p=window.sg.common.constants.BREAKPOINTS,v=window.sg.common.OptionSelector,F=null,W=function(T){this.selector={component:".accessories",cardFiche:".accessories__product-price-info",rating:".accessories__rating",optionWrap:".option-selector"};this.el={component:l(T)};this.handler={setHeight:this.setHeight.bind(this)};W.instances.set(T,this);this.init()};W.prototype.setElement=function(){this.el.cardSlide=
this.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].forEach(function(T){T.css({height:""})})};
W.prototype.setHeight=function(){var T=this,B=p.MOBILE>h.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 n=Math.max.apply(null,e);w.target.forEach(function(k){k=l(k);"none"!==k.css("display")&&k.css({height:n+"px"})})});setTimeout(function(){T.el.component.find(".scrollbar").target.forEach(function(w){u.resize(w)})},
30)};W.prototype.setCardInstances=function(){this.el.cardSlide.target.forEach(function(T){aa.instances.has(T)?aa.instances.get(T).reInit():new aa(T)})};W.prototype.bindEvents=function(){l(window).off("resize",this.handler.setHeight).on("resize",this.handler.setHeight)};var aa=function(T){this.selector={cardComponent:".accessories__item",optionSelector:".option-selector__wrap",mobileOptionWrap:".accessories__option-selector",mobileOptionColor:".accessories__color-chip",mobileOptionCapacity:".accessories__capacity"};
this.el={component:l(T)};this.handler={resize:this.resize.bind(this)};aa.instances.set(T,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=
function(){var T=this;this.el.mobileOptionWrap.target.forEach(function(B){B=l(B);var w=B.find(T.selector.mobileOptionColor),e=B.find(T.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(){p.MOBILE<h.getViewPort().width?
!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(T){W.instances.has(T)||new W(T)})};W.instances=new WeakMap;aa.instances=new WeakMap;l.ready(x);
window.sg.components.accessories={init:x,reInit:function(){G.setLazyLoad();l(".accessories").target.forEach(function(T){l(T).find(".scrollbar").target.forEach(function(B){u.reInit(B);u.resize(B)});l(T).find(".option-selector").target.forEach(function(B){v.reInit(l(B))});W.instances.has(T)?W.instances.get(T).reInit():new W(T)})},reInitItem:function(T){G.setLazyLoad();l(T).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():
new aa(B)})}}})();
(function(l,h){window.sg.components.dynamic=window.sg.components.dynamic||{};l=window.sg.components.dynamic;var G=function(){function u(oa,ea){var na=!0,L="",O="",b="",r="",H="";if("Y"===x||"pl"===e&&"OUTOFSTOCK"===ea)na=!1;else if("NOORDER"===ea||"LEARNMORE"===ea)na="nl"===e||"be"===e||"be_fr"===e?!0:!1;oa.price&&(L=oa.price);oa.listPrice&&(r=oa.listPrice);oa.listPriceDisplay?H=oa.listPriceDisplay:oa.listPrice&&(H=currencyComma(oa.listPrice,aa));oa.priceDisplay?O=oa.priceDisplay:oa.price&&(O=currencyComma(oa.price,
aa));ea=oa.promotionPrice?oa.promotionPrice:oa.price;var N=oa.promotionPriceDisplay?oa.promotionPriceDisplay:oa.promotionPrice?currencyComma(oa.promotionPrice,aa):O;var Z="Y"===h.cookies.get("isSMBRegisteredUserYN",{domain:".samsung.com"})&&commonLoginCheck();n&&Z&&(oa.tieredPrice&&k?(ea=oa.tieredPrice,N=currencyComma(oa.tieredPrice,aa),oa.tieredPriceDisplay&&(N=oa.tieredPriceDisplay)):oa.smbPromotionPrice&&(ea=oa.smbPromotionPrice,N=currencyComma(oa.smbPromotionPrice,aa)));L&&ea&&L!==ea?b=currencyComma(parseFloat(L)-
parseFloat(ea),aa):oa.formattedPriceSave?b=oa.formattedPriceSave:oa.saveText&&0<parseFloat(oa.saveText)&&(b=oa.saveText);var d="Y"===h.cookies.get("useTaxExPriceYN",{domain:".samsung.com"});n&&d&&(oa.taxExPrice&&(ea=oa.taxExPrice,N=currencyComma(oa.taxExPrice,aa),oa.taxExPriceDisplay&&(N=oa.taxExPriceDisplay)),Z&&oa.taxExTieredPrice&&k&&(ea=oa.taxExTieredPrice,N=currencyComma(oa.taxExTieredPrice,aa),oa.taxExTieredPriceDisplay&&(N=oa.taxExTieredPriceDisplay)));oa.tradeInPriceText&&-1<h("#shopIntegrationFlag").val().indexOf("Hybris-intg")&&
(N=oa.tradeInPriceText);if("be"===e||"be_fr"===e||"nl"===e)O=deleteCurrency(O,aa),N=deleteCurrency(N,aa),b=deleteCurrency(b,aa),H=deleteCurrency(H,aa);return{hasPrice:na,orignalPrice:L,salePrice:ea,listPrice:r,listPriceFormatted:H,orignalPriceFormatted:O,salePriceFormatted:N,savePriceFormatted:b}}var p=h("#searchDomain").val(),v=h("#shopIntegrationFlag").val(),F=h("#siteCode").val(),W=h("#apiStageInfo").val(),aa=h("#accPriceCurrency").val(),x=h("#oldProductYn").val(),T=h("#accModelList").val(),B=
h("#reviewUseYN").val(),w=h("#reevooUseYN").val(),e=h("#siteCode").val(),n=h("#shopIntegrationFlag")?"true"===h("#shopIntegrationFlag").val():!0,k=h("#tieredPriceUseYn")?"Y"===h("#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,f=h("#scene7domain").val(),C=[],E=0;Granite.I18n.setLocale(h("#language").val());var U=function(oa,ea,na){var L=f;fnIsNull(oa)||-1<oa.indexOf("http:")||""===oa||-1<oa.indexOf("//image-us.samsung.com/")||
-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"===ea?(oa=na,ea="?$LazyLoad_Home",na=na.toLowerCase(),ea=-1<na.indexOf(".jpg")?ea+"_JPG$":-1<na.indexOf(".jpeg")?ea+"_JPG$":-1<na.indexOf(".png")?ea+"_PNG$":
-1<na.indexOf(".gif")?ea+"_GIF$":ea+"_PNG$",na=oa+ea):"product-desktop"===ea?na+="?$240_240_PNG$":"product-mobile"===ea&&(na+="?$480_480_PNG$"));return na},R=function(oa,ea){for(var na=0;na<oa.length;na++)if(oa[na]===ea)return!0;return!1},y=function(oa,ea){if(!fnIsNull(ea)&&!fnIsNull(oa.modelList)&&!fnIsNull(oa.modelList[ea])){var na=oa.modelList[ea];fnIsNull(na.displayName)&&(oa.modelList[ea].displayName="");if(!fnIsNull(na.thumbUrl)){var L={};fnIsNull(na.thumbUrl)||(L={},L.imageUrlDesktop=U(na.thumbUrl,
"product-desktop"),L.imageUrlMobile=U(na.thumbUrl,"product-mobile"),L.lazyImageUrl=U(na.thumbUrl,"lazy"));oa.modelList[ea].thumbInfo=L}if("Y"===B||"Y"===w){L="";var O=na.ratings;fnIsNull(O)&&(O=0,oa.modelList[ea].ratings=0);var b=Math.pow(10,1);O=Math.round(O*b)/b;b=parseFloat(O).toFixed(1);O=parseInt(O);var r=parseInt(100*(b-O));var H="";"0.0"!==b?oa.modelList[ea].ratings=b:H="rating--empty";oa.modelList[ea].ratingEmptyText=H;for(b=0;b<O;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';
if(5>O&&0<O)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>O;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===O&&!fnIsNull(oa.modelList[ea].reviewUrl))for(O=0;5>O;O++)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';
oa.modelList[ea].ratingHtml=L;fnIsNull(na.reviewCount)&&(oa.modelList[ea].reviewCount="0");oa.modelList[ea].ratingsText=Granite.I18n.get("{0} out of {1} Stars",["\x3cspan\x3e"+na.ratings+"\x3c/span\x3e","5"],e)}fnIsNull(na.energyLabelGrade)&&(oa.modelList[ea].energyLabelGrade="");fnIsNull(na.ficheFileUrl)&&(oa.modelList[ea].ficheFileUrl="")}return oa},da=function(oa,ea,na,L,O){ea=ea.split(",");var b=ea[0];O=O.indexOf("MEMORY");if(!A&&!ca&&L&&0<O){na=oa.MEMORY.optionList;var r=0,H=0;for(Z in na){b=
na[Z].modelIdx.split(",");for(var N in b)if(R(ea,b[N])){oa=na[Z].optionCode.replace("TB","000").replace(/[^0-9]/g,"");H<oa&&(H=oa,r=b[N]);break}}ea=r}else{for(r in na){var Z=na[r];if(!fnIsNull(Z)){N=Z.split(",");Z=[];for(H in ea)-1<N.indexOf(String(ea[H]))&&Z.push(ea[H]);0<Z.length&&(ea=Z)}}ea=0<ea.length?ea[0]:b}return ea},wa=function(oa){var ea="",na="",L=oa.modelList[oa.frontModelIdx];fnIsNull(L.ctaType)||(na=L.ctaType.toUpperCase(),oa.modelList[oa.frontModelIdx].ctaTypeUpperCase=na);fnIsNull(oa.categorySubTypeCode)||
oa.categorySubTypeCode.substr(0,2);n&&L.b2bHybrisShopInfo&&(na=L.b2bHybrisShopInfo.ctaType.toUpperCase());var O="javascript:void(0)";fnIsNull(L.pdpUrl)||(O=L.pdpUrl);var b='\x3cdiv class\x3d"accessories__product-name"\x3e';!fnIsNull(L.displayName)&&(b+='\x3ca href\x3d"'+O+'" 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");
ea+=b+"\x3c/div\x3e";O='\x3cdiv class\x3d"accessories__image"\x3e';"true"===h("#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)||(O+='\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"'+
L.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');ea+=O+'\x3c/div\x3e\x3cdiv class\x3d"accessories__text"\x3e';
O="";b=oa.modelList[oa.frontModelIdx];if(!fnIsNull(oa.viewOptionObj)){O+='\x3cdiv class\x3d"option-selector"\x3e';if(!fnIsNull(oa.viewOptionObj)&&0<Object.keys(oa.viewOptionObj).length){var r="",H=0,N=oa.viewOptionObj,Z=oa.optionTypeList;for(q in oa.viewOptionObj){var d=q.toLowerCase().replace(/ /g,"-");var M=oa.viewOptionObj[q].optionList,t="",z,I="",X="";var V=z="";fnIsNull(oa.viewOptionObj[q].styleAttr)||(V=oa.viewOptionObj[q].styleAttr);var P="";for(var S in M){var Q=M[S];var ha=Q.modelIdx.split(",");
null!=Q.modelIdx&&R(ha,String(oa.frontModelIdx))&&(P=Q.optionLocalName)}if("COLOR"===q){O+='\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'+P+'\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"'+
V+'" role\x3d"list"\x3e';for(S in M){Q=M[S];V=!1;ha=Q.modelIdx.split(",");if(null!=Q.modelIdx&&R(ha,String(oa.frontModelIdx)))V=!0,t=Q.modelIdx,P="";else if(P=" js-fmyChip-is-disabled-acc",0===H)P="";else{var ka=r.split(",");for(var la in ha)if(R(ka,ha[la])){P="";break}}if(""===P){z=Q.modelIdx;ha=[];ka=!0;for(var ua in N)if(ua!==q){var ya=N[ua].optionList;for(var sa in ya){var Ma=ya[sa];Ma=Ma.modelIdx;var pa=Ma.split(",");-1<pa.indexOf(String(oa.frontModelIdx))&&ha.push(Ma)}}z=da(N,z,ha,ka,Z);oa.modelList.length>
z&&!fnIsNull(oa.modelList[z])&&(I=' data-modelcode\x3d"'+oa.modelList[z].modelCode+'"',X=' data-modelname\x3d"'+oa.modelList[z].modelName+'"')}ha="product-"+d+"-"+S+"-"+b.modelCode;ka="product-"+d+"-"+b.modelCode;O+='\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'+P+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+ha+'" data-optionName\x3d"'+Q.optionLocalName+'" name\x3d"'+ka+'" data-modeli\x3d"'+
z+'" 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"'+H+'" data-moidx\x3d"'+Q.modelIdx+'" \x3e\x3clabel for\x3d"'+ha+'"\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+
"\x3c/span\x3e\x3c/label\x3e\x3c/span\x3e\x3c/span\x3e"}r=t;O+='\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"'+
Granite.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{O+='\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"'+
V+'" role\x3d"list"\x3e';for(var a=0;a<M.length;a++){Q=M[a];V=!1;ha=Q.modelIdx.split(",");if(null!=Q.modelIdx&&R(ha,String(oa.frontModelIdx)))V=!0,t=Q.modelIdx,P="";else if(P=" js-fmyChip-is-disabled-acc",0===H)P="";else{ka=r.split(",");for(var c in ha)if(R(ka,ha[c])){P="";break}}if(""===P){z=Q.modelIdx;ha=[];ka=!1;for(var m in N)if(m!==q){ya=N[m].optionList;for(var g in ya)Ma=ya[g],Ma=Ma.modelIdx,pa=Ma.split(","),-1<pa.indexOf(String(oa.frontModelIdx))&&ha.push(Ma)}z=da(N,z,ha,ka,Z);oa.modelList.length>
z&&!fnIsNull(oa.modelList[z])&&(I=' data-modelcode\x3d"'+oa.modelList[z].modelCode+'"',X=' data-modelname\x3d"'+oa.modelList[z].modelName+'"')}ha="product-"+d+"-"+a+"-"+b.modelCode;ka="product-"+d+"-"+b.modelCode;O+='\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'+P+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+ha+'" data-optionName\x3d"'+Q.optionLocalName+'" name\x3d"'+ka+'" data-modeli\x3d"'+
z+'" 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"'+H+'" data-code\x3d"'+Q.optionCode+'"'+(V?" checked":"")+' data-moidx\x3d"'+Q.modelIdx+'"\x3e\x3clabel class\x3d"option-selector__size-label" for\x3d"'+ha+'"\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=
t;O+='\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"'+
Granite.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'}H++}}O+="\x3c/div\x3e"}var q=ea+O;S="";la="/"+e+"/common/review/"+L.modelCode+"/";fnIsNull(L.reviewUrl)||(la=L.reviewUrl);"Y"!==B&&"Y"!==w||fnIsNull(L.ratingHtml)||"cn"===e||(S+='\x3cdiv class\x3d"accessories__rating"\x3e\x3ca href\x3d"'+
la+'" 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")+
" : \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");la=n?u(L.b2bHybrisShopInfo,
na):u(L,na);q=la.hasPrice;na='\x3cdiv class\x3d"accessories__price"\x3e';q&&(q=la.salePriceFormatted,S=la.orignalPriceFormatted,ua=la.savePriceFormatted,sa=la.listPrice,m=la.listPriceFormatted,null!=L.listPrice&&(sa=parseFloat(L.listPrice)-parseFloat(L.price)),la=O=b=ea=g=c="",H=r=!1,A||ca||n?fnIsNull(L.leasingInfo)||"nl"!==e?fnIsNull(L.monthlyPriceInfo)||fnIsNull(L.monthlyPriceInfo.leasingMonthly)||fnIsNull(L.monthlyPriceInfo.leasingMonths)||fnIsNull(L.monthlyPriceInfo.interest)||(c=L.monthlyPriceInfo.leasingMonthly,
"be"!==e&&"be_fr"!==e&&(c=currencyComma(c,aa)),g=L.monthlyPriceInfo.leasingMonths,r=!0):(L=L.leasingInfo,O=deleteCurrency(L.monthlyRate,aa),g=L.tenureVal,ea=deleteCurrency(L.downPaymentFormatted,aa),b=L.tenureUnit,H=!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&&
"ru"!==e&&"ch"!==e&&"ch_fr"!==e||(L=L.monthlyPriceInfo,c=L.leasingMonthly,c=currencyComma(c,aa),g=L.leasingMonths,r=!0),A||ca||K||n?ua?(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",la='\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&&(la+='\x3cspan class\x3d"accessories__price-save"\x3e'+
Granite.I18n.get("Save {0}",ua)+"\x3c/span\x3e")):0<sa&&("nl"===e||"be"===e||"be_fr"===e)&&(la+='\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"):ua&&"nl"!==e&&"be"!==e&&"be_fr"!==e&&(la+='\x3cspan class\x3d"accessories__price-save"\x3e'+ua+"\x3c/span\x3e"),r?(L=Granite.I18n.get("From {0}/mo",[c])+" ",L+=Granite.I18n.get("for {0} mos",
[g])+" ",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",[g])+'\x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Current Price")+
': \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"):H?""!==ea&&""!==b&&""!==g&&""!==O&&(ua=" "+ea+" + "+g+" x "+O+"/"+Granite.I18n.get(b),L=S+" "+Granite.I18n.get("or")+" "+ua,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'+
q+'\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"+ua+"\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+
"\x3c/div\x3e\x3c/div\x3e",na+='\x3cdiv class\x3d"accessories__price-detail"\x3e',!fnIsNull(la)&&(na+=la),na+="\x3c/div\x3e");return oa+(na+"\x3c/div\x3e\x3c/div\x3e")},ra=function(){h(".js-fmyChip-is-disabled-acc").parent().addClass("is-disabled");h(".js-fmyChip-is-disabled-acc").removeClass("js-fmyChip-is-disabled-acc").find("input").prop("disabled",!0);var oa=h(".js-acc-product-fmychip").find("input");oa.off("click.finder");oa.on("click.finder",function(ea){ea=h(this);var na=ea.closest(".js-acc-product-card"),
L=na.data("productidx"),O=ea.data("modeli");setTimeout(function(){if(!fnIsNull(O)){C[L].frontModelIdx=O;var b=y(C[L],O);na.find(".option-selector__wrap").each(function(r){r=C[L].optionTypeList[r];var H=h(this).find(".option-selector__swiper-wrapper").attr("style");C[L].viewOptionObj[r].styleAttr=H});na.html(wa(b));ra();window.sg.components.accessories.reInitItem(document.querySelectorAll(".accessories__item")[L])}},300)})};v=function(){var oa={},ea="",na="",L="true"===h("#isEppPage").val();na=L?"epp/v2":
"b2c";L&&(oa.companyCode=h("#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&&""!=h.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":n?"b2b/product/card/detail":na+"/product/card/detail/global";
if(T){oa.siteCode=F;oa.modelList=T;oa.saleSkuYN="N";oa.onlyRequestSkuYN="N";oa.keySummaryYN="N";oa.specYN="N";L=h.cookies.get("estoreSitecode")?h.cookies.get("estoreSitecode").toString():"";var O=h.cookies.get("country_region")?h.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&&
(r="ma");if("ca"===e||"ca_fr"===e)b=fnIsNull(O)?"CA-ON":O,oa.regionCode=b;fnIsNull(r)||(oa.shopSiteCode=r);if(A||ca||n)oa.commonCodeYN="N";n&&(oa.shopType="b2bhybris");h.ajax({url:p+"/"+W+"/"+na,data:oa,async:!1,success:function(H){if(200===H.response.statusCode&&0<H.response.resultData.productList.length)for(var N=0;N<H.response.resultData.productList.length;N++){var Z=H.response.resultData.productList[N],d=0;if(!fnIsNull(Z.modelList)&&0<Z.modelList.length)for(var M=0;M<Z.modelList.length;M++){var t=
Z.modelList[M];void 0!==t.selected&&"Y"===t.selected&&(d=M)}Z.frontModelIdx=d;t=void 0;M={};for(t in Z.modelList){var z=Z.modelList[t].fmyChipList,I;for(I in z){var X=z[I].fmyChipType+"+"+z[I].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+z[I].fmyChipLocalName.replace('"',"").replace("\x26quot;","");M[X]=void 0===M[X]?t:M[X]+(","+t)}}t=[];z={};if(!fnIsNull(Z.chipOptions))for(X=0;X<Z.chipOptions.length;X++){var V=Z.chipOptions[X],P=V.fmyChipType,S=V.optionList,Q;for(Q in S){var ha=V.fmyChipType+
"+"+S[Q].optionCode.replace('"',"").replace("\x26quot;","")+"+"+S[Q].optionLocalName.replace('"',"").replace("\x26quot;","");void 0!==M[ha]&&(S[Q].modelIdx=M[ha])}z[P]={};z[P].optionList=S;t.push(P)}Z.viewOptionObj=z;Z.optionTypeList=t;C[E]=Z;d=y(Z,d);d=wa(d);ea+='\x3cdiv class\x3d"accessories__item js-acc-product-card" data-productidx\x3d'+E+"\x3e";ea+=d;ea+="\x3c/div\x3e";E++}}})}ea?(h("section.accessories").find("div.scrollbar__contents").html(ea),ra(),h("section.accessories").show()):h("section.accessories").remove()};
T&&v()};h(function(){G();window.sg.components.accessories.reInit()});l.accessoriesGrid=G})(window,window.jQuery);
(function(){var l=window.sg.common.$q,h=function(u){this.selector={tabButton:".ftd22-faq__tab .tab__item-title",panel:".ftd22-faq__panel",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={panelActive:"ftd22-faq__panel--active",accordionExpand:"ftd22-faq__accordion--expanded"};
this.el={section:l(u),window:l(window)};this.handler={handleResize:this.handleResize.bind(this),handleClickTab:this.handleClickTab.bind(this),handleClickAccordion:this.handleClickAccordion.bind(this),handleClickNumber:this.handleClickNumber.bind(this)};h.instances.set(u,this);this.init()};h.prototype.init=function(){this.setElements();this.bindEvents();this.toggleAccordion()};h.prototype.reInit=function(){this.init()};h.prototype.setElements=function(){this.el.tabButton=this.el.section.find(this.selector.tabButton);
this.el.panel=this.el.section.find(this.selector.panel);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)};h.prototype.bindEvents=function(){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);this.el.tabButton.off("click",this.handler.handleClickTab).on("click",this.handler.handleClickTab);this.el.accordionCta.off("click",this.handler.handleClickAccordion).on("click",this.handler.handleClickAccordion);this.el.disclaimerNumber.off("click",this.handler.handleClickNumber).on("click",this.handler.handleClickNumber)};h.prototype.handleResize=function(){this.toggleAccordion()};h.prototype.handleClickAccordion=function(u){u=
l(u.currentTarget).closest(this.selector.accordionEl);var p=u.find(this.selector.accordionContentWrap),v=u.find(this.selector.accordionCta);u.toggleClass(this.classes.accordionExpand);u.hasClass(this.classes.accordionExpand)?(p.removeAttr("inert"),v.attr("aria-expanded",!0)):(p.attr("inert",!0),v.attr("aria-expanded",!1));this.toggleAccordion()};h.prototype.handleClickTab=function(u){u=l(u.currentTarget).parent().index();this.el.panel.removeClass(this.classes.panelActive);this.el.panel.eq(u).addClass(this.classes.panelActive);
this.toggleAccordion()};h.prototype.handleClickNumber=function(u){u.stopPropagation()};h.prototype.toggleAccordion=function(){var u=this.el.section.find(".ftd22-faq__accordion.ftd22-faq__accordion--expanded").find(this.selector.accordionContent),p=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"})});p.css({"max-height":0})};var G=function(){l(".ftd22-faq").target.forEach(function(u){h.instances.has(u)||
new h(u)})};h.instances=new WeakMap;window.sg.components.Ftd22Faq={init:G,reInit:function(){l(".ftd22-faq").target.forEach(function(u){h.instances.has(u)?h.instances.get(u).reInit():new h(u)})}};l.load(G)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,G=window.sg.common.lazyLoad,u=window.sg.common.swiperManager,p=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=
null;this.handler={handleResize:this.handleResize.bind(this)};p.instances.set(F,this);this.init()};p.prototype.init=function(){this.setElements();this.bindEvents()};p.prototype.reInit=function(){this.init();G.forceLoad(this.section)};p.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);
this.el.screenIndicatorPrev=this.el.section.find(this.selector.screenIndicatorPrev);this.el.screenIndicatorNext=this.el.section.find(this.selector.screenIndicatorNext)};p.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",
this.handler.handleResize);window.dispatchEvent(new Event("resize"))};p.prototype.handleResize=function(){var F=this,W=h.getCurrentDevice();this.matchHeight();this.currentDevice!==W&&setTimeout(function(){F.initSwiper();F.updateTagging()},250);this.currentDevice=W};p.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"):
F.removeClass("is-empty")})};p.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))}};p.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=
F.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){p.instances.has(F)||new p(F)})};p.instances=new WeakMap;window.sg.components.PdReasonsToBuy={init:v,reInit:function(){l(".pdd28-reasons-to-buy").target.forEach(function(F){p.instances.has(F)?p.instances.get(F).reInit():new p(F)})}};l.load(v)})();
(function(l,h){function G(){var x=h("#siteCode").val(),T=h("#pfCategoryTypeCode").val(),B="GPv2"===F?!0:!1,w="Hybris-intg"===F?!0:!1;fnIsNull(F);var e="Hybris-new"===F?!0:!1,n=checkEppSite(),k=h("#searchDomain").val(),A=h("#apiStageInfo").val(),ca=n?"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:T,siteCode:x,start:1,num:12,sort:"newest",onlyFilterInfoYN:"N",
keySummaryYN:"Y",onlyReasonToBuyYN:"Y"};if(n){n=l.sg.epp.common.companyCode;T=h("#pfType").val();x.companyCode=n;x.pfType=T;if("F"==T||"R"==T)x.offerId=h("#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)}h.ajax({url:K,type:"GET",data:x,dataType:"json",cache:!0,timeout:2E4,success:function(D){if(200===D.response.statusCode){D=D.response.resultData.reasonsToBuyList;var f="",
C=!0,E=h("#pfCategoryGroupCode").val(),U=h("#pfCategoryTypeCode").val();if(D&&null!=D){for(var R in D){var y=D[R];if(null==y.iconType||""==y.iconType)C=!1}R=Granite.I18n.get("Learn more",null,"ux2");for(O in D){y=D[O];var da=null!=y.iconType&&""!=y.iconType?!0:!1,wa="",ra="",oa="";"NEW"==y.ctaLinkType&&(wa='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');
wa=null!=y.ctaURL&&""!=y.ctaURL?wa:"";var ea=aa[y.iconType];if("ca"===siteCode||"ca_fr"===siteCode)"cashback"!==y.iconType||"03000000"!==E&&"04000000"!==E&&"05000000"!==E&&"08000000"!==E&&"07010000"!==U||(ea="#price-guarantee-reguler");var na=da&&-1<ea.indexOf("#")?!0:!1,L="";if("#smart-care-regular"===ea||"#samsung-app"===ea||"#support-laptop"===ea)L="pdd28-reasons-to-buy__item--colored-icon-off";f+='\x3cdiv class\x3d"pdd28-reasons-to-buy__item swiper-slide '+L+'" 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&&(f+='\x3cdiv class\x3d"pdd28-reasons-to-buy__image"\x3e',da&&(f=na?f+('\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n                                                \x3cuse xlink:href\x3d"'+ea+'" href\x3d"'+ea+'"\x3e\x3c/use\x3e\n                                              \x3c/svg\x3e'):f+('\x3cdiv class\x3d"image"\x3e\n                                                    \x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+y.iconType+'" data-mobile-src\x3d"'+
y.iconType+'" \n                                                    alt\x3d"'+y.iconAltText+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n                                                \x3c/div\x3e')),f+="\x3c/div\x3e");da=ellipsize(y.title,67);f+='\x3cdiv class\x3d"pdd28-reasons-to-buy__name-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__name"\x3e'+da+"\x3c/p\x3e\n                                    \x3c/div\x3e";null!=y.description&&""!=y.description&&
"\x26nbsp;"!=y.description?(ea=ellipsize(y.description,413),f+='\x3cdiv class\x3d"pdd28-reasons-to-buy__desc-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__desc"\x3e'+ea+"\x3c/p\x3e\n                                    \x3c/div\x3e"):f+='\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!=y.ctaURL&&""!=
y.ctaURL&&"\x26nbsp;"!=y.ctaURL&&(ea=checkEppSite()?getEppMultiStorePath(y.ctaURL):y.ctaURL,f+='\x3cdiv class\x3d"pdd28-reasons-to-buy__cta"\x3e\n                                            \x3ca class\x3d"cta cta--underline-v2 cta--black'+ra+' cta--large" href\x3d"'+ea+'" aria-label\x3d"'+R+". "+da+'" '+wa+'\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:'+
y.title+':learn more"\x3e\n                                                '+R+"\n                                                "+oa+"\n                                            \x3c/a\x3e\n                                        \x3c/div\x3e");f+="\x3c/div\x3e\n                                \x3c/div\x3e"}}var O=f;D="";""!=O&&(D=""+O);""!==D?(h(".pdd28-reasons-to-buy__list-inner").html(D),h("section.pdd28-reasons-to-buy").show(),window.sg.components.PdReasonsToBuy.reInit()):(h("section.pdd28-reasons-to-buy").html(""),
h("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=h("#tempTitle").val(),p=h("#rtbListSize").val(),v=h("#pageTrack").val(),F=h("#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",coupon:"#coupon-regular",event:"#event-regular",bundle:"#bundle-regular",gift:"#gift-regular",payment:"#payment-regular",deal:"#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",cracked_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",point:"#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"};h(function(){var x=h("h2.pdd28-reasons-to-buy__headline"),T=x.text();x.text(ellipsize(T,72));W?(console.log("PF "+F+" : "+p),G()):(console.log("PD "+F+" : "+p),1>p?(h("section.pdd28-reasons-to-buy").html(""),h("section.pdd28-reasons-to-buy").hide()):h("section.pdd28-reasons-to-buy").show())})})(window,window.jQuery);
(function(){var l,h;function G(){var B=document.querySelector(".manufacturer-info-popup");B&&(l=B,h=B.querySelector(".layer-popup"),T=B.querySelector(".layer-popup__close"),W.init(h),T.addEventListener("click",v),B=document.querySelector(x.section+" "+x.close),B.removeEventListener("keydown",p),B.addEventListener("keydown",p),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===
B.keyCode&&B.target===document.querySelector(x.section+" "+x.layerPopup)&&(B.preventDefault(),document.querySelector(x.section+" "+x.close).focus())}function p(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():
document.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 T=h=l=void 0;window.sg.components.manufacturerInfoPopup={reInit:G,showPopup:function(){l.style.display="block";W.reInit(h);var B=document.querySelector(x.section+" "+x.layerPopup);B.setAttribute("tabindex",0);B.focus();
aa.popupControl.open(v);aa.hiddenScroll()}};F.ready(G)})();
(function(){function l(){h(G.section).target.forEach(function(p){new u(p)})}var h=window.sg.common.$q,G={section:".text-editor"},u=function(p){this.selector={section:G.section,columnBox:".text-editor__column-wrap",hiddenTextArea:".text-editor__column-hidden-text",viewCta:".text-editor__column-cta",activeClass:"is-show"};this.ele={window:h(window),section:h(p),viewCta:null};this.handler={charView:this.charView.bind(this)};u.instances.set(p,this);this.init()};u.prototype.init=function(){this.setProperty();
this.bindEvents()};u.prototype.reInit=function(){this.setProperty();this.bindEvents()};u.prototype.setProperty=function(){var p=this;this.ele.viewCta=this.ele.section.find(this.selector.viewCta);this.ele.section.find(this.selector.columnBox).target.forEach(function(v){var F=h(v);if(0<F.find(p.selector.hiddenTextArea).target.length){var W=F.find(p.selector.hiddenTextArea).target[0].previousElementSibling,aa=F.find(p.selector.hiddenTextArea).target[0].firstElementChild;"P"===aa.tagName.toUpperCase()&&
aa.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(p.selector.hiddenTextArea).target[0].children;[].concat($jscomp.arrayFromIterable(x)).forEach(function(T){if(""===T.style.textAlign&&!T.classList.contains("text-extend")){var B=window.getComputedStyle(T).textAlign,w=T.getAttribute("style");null!==w?T.setAttribute("style",w+" text-align:"+B):T.setAttribute("style","text-align:"+B)}});x=document.createElement("div");
x.classList.add("extend-area");x.setAttribute("style","text-align:"+aa);x.appendChild(W);x.appendChild(F.find(p.selector.hiddenTextArea).target[0]);x.appendChild(F.find(p.selector.viewCta).target[0]);h(v).find(".text-editor__column").target[0].appendChild(x)}}})};u.prototype.charView=function(p){p=h(p.currentTarget);var v=p.closest(this.selector.columnBox).find(this.selector.hiddenTextArea),F=JSON.parse(p.target[0].dataset.globalText);v.hasClass(this.selector.activeClass)?(p.innerHTML(F.Show),v.removeClass(this.selector.activeClass)):
(p.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(){h(G.section).target.forEach(function(p){u.instances.has(p)?u.instances.get(p).reInit():new u(p)})}};h.ready(l)})();
(function(l,h){window.sg.components.dynamic=window.sg.components.dynamic||{};h(document).on("click",".disclaimer_activeClass_dev",function(){var G=h(this).attr("href");h(G).addClass("feature-bottom-disclaimer__item--active")});h(document).on("click",".feature-bottom-disclaimer__cta-top",function(){h(this).parent().parent().removeClass("feature-bottom-disclaimer__item--active")})})(window,window.jQuery);
(function(){function l(){h(v.section).target.forEach(function(W){F.instances.has(W)||new F(W)})}var h=window.sg.common.$q,G=window.sg.common.utils,u=window.sg.common.lazyLoad,p=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",
priceWrap:".pdd36-recommendation-oos-new__price-wrap",progressIndicator:".progressbar-indicator",progressIndicatorShowClass:"progressbar-indicator--show",dataEmptyClass:"pdd36-recommendation-oos-new--data-empty"};this.el={window:h(window),section:h(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();
u.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=
p.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=G.getCurrentDevice();this.setHeight();this.currentDevice!==
aa&&setTimeout(function(){W.setSwiperStatus()},10);this.currentDevice=aa};F.prototype.setSwiperStatus=function(){(this.swiper=p.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()};
F.prototype.setHeight=function(){var W=this;[this.el.nameWrap,this.el.ratingWrap,this.el.ficheWrap,this.el.priceWrap].forEach(function(aa){var x=aa.target.reduce(function(T,B){B=B.children[0]?B.children[0].clientHeight:0;return T>B?T: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){p.slideReInit(aa);p.slideInitEnd(aa,function(){W.swiper=
p.getSwiper(aa);W.setSwiperStatus()})})};F.instances=new WeakMap;window.sg.components.Pdd36ProductRecommendationOOS={init:l,reInit:function(){h(v.section).target.forEach(function(W){F.instances.has(W)?F.instances.get(W).reInit():new F(W)})}};h.ready(l)})();var productRecommendationUx2PD={};
(function(l){function h(){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 G(v){v&&(v=v.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,
"\x26quot;").replace(/'/g,"\x26#039;"));return v}var u=siteCode+":"+Math.floor(new Date/1E3)+":"+Math.floor(1E5+9E5*Math.random()),p="true"===l("#isEppPage").val();productRecommendationUx2PD={getSearchProductCardForBDCApi:function(v){var F,W,aa,x,T,B,w,e,n,k,A,ca,K,D,f,C,E,U,R;return $jscomp.asyncExecutePromiseGeneratorProgram(function(y){if(1==y.nextAddress)return F="https://api-recommender.bigdata.samsung.com",W="/prodrec/recommendation",y.yield(h(),2);aa=y.yieldResult;B=T=x="";if(commonLoginCheck()){w=
".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),n=l.cookies.get("encGuid",{domain:w}),k=n.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(da){console.error("get guid fail:",da)}T=l.cookies.get("sa_id",{domain:w});B=l.cookies.get("s_ecid",
{domain:w})}K=l.cookies.get("cmapi_cookie_privacy",{domain:".samsung.com"});D=cookies.getCookie("recent_list");f=[];l.each(cookies.getCookies(),function(da,wa){-1!=da.indexOf("AMCV_")&&f.push(wa.toString())});C="b2c";E="";p&&(C="epp",E=window.sg.epp.common.companyCode);U={requestId:u,country:siteCode,num:6,siteType:C};R={pageType:"pdp_similar_product",guid:x,saId:T,visitorId:B,ecid:aa,visitorIdList:f,consent:K,recentList:D,targetModel:v,rewardPoint:"",eppStoreName:E};l.ajax({headers:U,url:F+W,type:"POST",
data:JSON.stringify(R),xhrFields:{withCredentials:!0},contentType:"application/json; charset\x3dutf-8",dataType:"json",async:!1,cache:!0,success:function(da,wa,ra){if(200==ra.status)if(da.recommendations&&0<da.recommendations.length){wa=da.recommendations;u=da.requestId;l(".pdd36-recommendation-oos-new .pdd36-recommendation-oos-new__list-inner").show();l(".pdd36-recommendation-oos-new .pd-offer__content").hide();da=l(".pdd36-recommendation-oos-new");var oa="";if(null!=wa){for(ra=0;ra<wa.length;ra++){var ea=
wa[ra].product,na=wa[ra].model;if(null!=ea.modelList&&0<ea.modelList.length){for(var L=0,O=0;O<ea.modelList.length;O++)ea.modelList[O].modelCode==na&&(L=O);ea.frontModelIdx=L;var b=ea;ea=ra;L=b.modelList[b.frontModelIdx];na="";G((L.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));O='data-modelcode\x3d"'+L.modelCode+'"';var r='data-modelname\x3d"'+L.modelName+'"',H='data-requested\x3d"'+u+'"';(b.categorySubTypeEngName||"").toLowerCase();(L.pviTypeName||"").toLowerCase();(L.pviSubtypeName||
"").toLowerCase();ea='{"an-tr":"pdd36_product  card case-product detail-index-indication","an-ca":"indication","an-ac":"carousel","an-la":"carousel:index:'+ea+'"}';var N=b.modelList[b.frontModelIdx],Z="";G((N.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"'+(N.modelName+'" data-modelcode\x3d"')+
(N.modelCode+'" data-requested\x3d"')+(u+'"');if(N.thumbUrl){b=N.thumbUrl;var M=N.thumbUrlAlt||"",t=N.pdpUrl;"Y"===N.simplePdYN&&p&&null!=N.originPdpUrl&&(t=N.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 z=t="",I="",X=!1;fnIsNull(N.topFlags)||fnIsNull(N.topFlags.iconTypeCd)||("N"===N.topFlags.iconTypeCd?(I=Granite.I18n.get("new"),z=
" badge-icon--bg-color-blue",X=!0):"H"===N.topFlags.iconTypeCd?(I=Granite.I18n.get("hot"),z=" badge-icon--bg-color-red",X=!0):"B"===N.topFlags.iconTypeCd&&(I=Granite.I18n.get("best seller"),z=" badge-icon--bg-color-orange",X=!0));X&&(t='\x3cspan class\x3d"badge-icon badge-icon--label-v2'+z+'"\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"')+
(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'}O='\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"'+
L.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+" "+O+" "+H+"\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);H='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"'+
(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"'+
b+'" class\x3d"pdd36-recommendation-oos-new__rating" '+H+'\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'+
L.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");
O=O+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();H=l("#priceCurrency").val();b=L.price;M=L.promotionPrice;Z="";b&&("bg"===siteCode&&(L.priceCurrency&&(r=L.priceCurrency),L.promotionPriceCurrency&&(H=L.promotionPriceCurrency)),L=b,Z=currencyComma(b,r),M&&parseFloat(b)>parseFloat(M)&&0<parseFloat(M)&&(Z=currencyComma(M,H),L=M),"bg"===
siteCode&&(H=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=H+(" / "+L)));na+=O+('\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\''+
ea+"'\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}}wa=da.html;ra=oa;oa='\x3cdiv class\x3d"pdd36-recommendation-oos-new__inner"\x3e\x3cdiv class\x3d"pdd36-recommendation-oos-new__content"\x3e';ea='\x3cp class\x3d"pdd36-recommendation-oos-new__headline"\x3e'+Granite.I18n.get("Looking for alternatives?")+"\x3c/p\x3e";wa.call(da,oa+ea+('\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'+
ra+'\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'));
window.sg.components.Pdd36ProductRecommendationOOS.reInit()}}else l(".pdd36-recommendation-oos-new .pdd36-recommendation-oos-new__list-inner").hide()},error:function(){},complete:function(da){}});y.jumpToEnd()})}}})(window.jQuery);
(function(){function l(){h(u.section).target.forEach(function(v){p.instances.has(v)||new p(v)})}var h=window.sg.common.$q,G=window.sg.common.tab,u={section:".pdd40-rtb-bar"},p=function(v){this.selector={wrap:".tab"};this.el={section:h(v),window:h(window)};this.init();p.instances.set(v,this)};p.prototype.init=function(){this.setElements();G.init(this.el.wrap.target[0])};p.prototype.reInit=function(){this.setElements();G.init(this.el.wrap.target[0])};p.prototype.setElements=function(){this.el.wrap=
this.el.section.find(this.selector.wrap)};p.instances=new WeakMap;window.sg.components.Pdd40RTBBar={init:l,reInit:function(){h(u.section).target.forEach(function(v){p.instances.has(v)?p.instances.get(v).reInit():new p(v)})}};h.ready(l)})();
(function(){var l,h,G,u;function p(){var n=document.querySelector(".siel-trade-in-popup");n&&(l=n,h=n.querySelector(".siel-trade-in-popup__close"),G=n.querySelector(".siel-trade-in-popup__btn-cancel"),u=n.querySelector(".siel-trade-in-popup--start"),w=n.querySelector(".siel-trade-in-popup--end"),e=0,v())}function v(){h.addEventListener("click",function(){W()});G.addEventListener("click",function(){W()});u.addEventListener("focus",function(){h.focus()});w.addEventListener("focus",function(){l.querySelector(".text-field-v2__input").focus()});
window.addEventListener("resize",function(){F()});F()}function F(){var n=window.innerHeight,k=l.querySelector(".siel-trade-in-popup__title").getBoundingClientRect().height,A=l.querySelector(".siel-trade-in-popup__btn-wrap").getBoundingClientRect().height,ca=n-k-A;"desktop"===B.getCurrentDevice()?640>ca?l.querySelector(".scrollbar__wrap").style.height=n-k-A+"px":l.querySelector(".scrollbar__wrap").style.height="640px":l.querySelector(".scrollbar__wrap").style.height=n-k-A+"px";T.resize(l.querySelector(".scrollbar"))}
function 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"))).forEach(function(n){n.addEventListener("change",function(){[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".radio-v2"))).forEach(function(k){k.classList.remove("active")});
n.parentElement.classList.add("active")})})}var x=window.sg.common.$q,T=window.sg.common.scrollbar,B=window.sg.common.utils;var w=u=G=h=l=void 0;var e=0;window.sg.components.sielTradeInPopup={init:p,showPopup:function(){l.style.display="block";B.popupControl.open(W);B.hiddenScroll();F()},showStep:function(n){l.querySelectorAll(".siel-trade-in-popup-option")[e].classList.add("show");"last"===n&&(aa(),l.querySelectorAll(".siel-trade-in-popup-option")[e+1].classList.add("show"),l.querySelector(".siel-trade-in-popup-option__headline-btn").addEventListener("click",
function(){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"),
A=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(n){n=l.querySelectorAll(".siel-trade-in-popup-option")[n].offsetTop;T.scrollTo(l.querySelector(".scrollbar"),
0,n,!0)}};x.ready(function(){return p()})})();