/*
 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,H=[];!(h=l.next()).done;)H.push(h.value);return H};$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 H=l[h];if(H&&H.Math==Math)return H}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(l,h,H){if(l==Array.prototype||l==Object.prototype)return l;l[h]=H.value;return l};$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};
$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(l,h){var H=$jscomp.propertyToPolyfillSymbol[h];if(null==H)return l[h];H=l[H];return void 0!==H?H:l[h]};$jscomp.polyfill=function(l,h,H,u){h&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(l,h,H,u):$jscomp.polyfillUnisolated(l,h,H,u))};
$jscomp.polyfillUnisolated=function(l,h,H,u){H=$jscomp.global;l=l.split(".");for(u=0;u<l.length-1;u++){var n=l[u];if(!(n in H))return;H=H[n]}l=l[l.length-1];u=H[l];h=h(u);h!=u&&null!=h&&$jscomp.defineProperty(H,l,{configurable:!0,writable:!0,value:h})};
$jscomp.polyfillIsolated=function(l,h,H,u){var n=l.split(".");l=1===n.length;u=n[0];u=!l&&u in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<n.length-1;v++){var F=n[v];if(!(F in u))return;u=u[F]}n=n[n.length-1];H=$jscomp.IS_SYMBOL_NATIVE&&"es6"===H?u[n]:null;h=h(H);null!=h&&(l?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:h}):h!==H&&(void 0===$jscomp.propertyToPolyfillSymbol[n]&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):
$jscomp.POLYFILL_PREFIX+n),n=$jscomp.propertyToPolyfillSymbol[n],$jscomp.defineProperty(u,n,{configurable:!0,writable:!0,value:h})))};$jscomp.underscoreProtoCanBeSet=function(){var l={a:!0},h={};try{return h.__proto__=l,h.a}catch(H){}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 H=l.next();$jscomp.generator.ensureIteratorResultIsObject_(H);if(H.done)this.yieldResult=H.value,this.nextAddress=h;else return this.yieldAllIterator_=l,this.yield(H.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,H){H?this.finallyContexts_[H]=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(H){return{value:H,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,H){try{var u=l.call(this.context_.yieldAllIterator_,h);$jscomp.generator.ensureIteratorResultIsObject_(u);if(!u.done)return this.context_.stop_(),u;var n=u.value}catch(v){return this.context_.yieldAllIterator_=null,this.context_.throw_(v),this.nextStep_()}this.context_.yieldAllIterator_=null;H.call(this.context_,n);return this.nextStep_()};
$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 H(u){return l.throw(u)}return new Promise(function(u,n){function v(F){F.done?u(F.value):Promise.resolve(F.value).then(h,H).then(v,n)}v(l.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(l){return $jscomp.asyncExecutePromiseGenerator(l())};$jscomp.asyncExecutePromiseGeneratorProgram=function(l){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(l)))};
(function(){function l(){W.$popup.find(".hubble-pd-popup__layer-inner").target.forEach(function(aa){var x=v(aa);aa=x.find(".hubble-pd-popup__foot");var U=x.find(".hubble-pd-popup__content-wrap");x=x.find(".hubble-pd-popup__content");var B=W.$popup.find(".hubble-pd-popup__wrap").height();x.css({maxHeight:""});B=0<aa.target.length?B-((parseFloat(U.css("padding-top"))||0)+(aa.offset().height||0)):B-((parseFloat(U.css("padding-top"))||0)+(parseFloat(U.css("padding-bottom"))||0));x.css({maxHeight:B+"px"})})}
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",H);W.$popup=aa;W.$openBtn=v(x);aa.hasClass("is-scroll-active")&&(0<aa.find(".hubble-pd-popup__foot").target.length&&aa.find(".hubble-pd-popup__content-wrap").css({paddingBottom:"0"}),
l(),v(window).off("resize",l).on("resize",l));window.sg.common.lazyLoad.setLazyLoad()}function H(){var aa=W.$popup;aa.hide();aa.offLayerFocus();document.documentElement.classList.remove("hive-layer-scroll-lock");v("head").removeAttr("aria-hidden");aa.find(".hubble-pd-popup__layer").attr("role","dialog");aa.find(F.close).off("click");v(window).off("resize",l);W.$openBtn.focus();W.$popup=null;W.$openBtn=null}function u(){W.$btns.off("click").on("click",function(aa){h(aa.currentTarget.dataset.layerTarget,
aa.currentTarget)})}function n(){W.$btns=v(F.section);u()}var v=window.sg.common.$q,F={section:"[data-layer-target]",close:".hubble-pd-popup-closer"},W={$btns:null,$popup:null,$openBtn:null};window.sg.components.hubblePdPopup={init:n,reinit:function(aa,x){aa=void 0===aa?null:aa;x=void 0===x?null:x;null===aa?n():h(aa,x)},openPopup:h,closePopup:H,resizeHeight:l};v.ready(n)})();
(function(){function l(){h(H.section).target.forEach(function(n){u.instances.has(n)||new u(n)})}var h=window.sg.common.$q,H={section:".notification-bar"},u=function(n){var v=this;this.selector={section:H.section,btn:".notification-bar__toggle-btn",hidden:".notification-bar__toggle-btn .hidden",content:".notification-bar__inner",nomarl:".notification-bar__column--collapsed",expend:".notification-bar__column--expanded"};this.timer=null;this.ele={window:h(window),section:h(n),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(n,this);this.init()};u.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.ele.hidden=this.ele.section.find(this.selector.hidden);this.ele.content=this.ele.section.find(this.selector.content);this.ele.pdBanner=this.ele.section.find(this.selector.pdBanner);this.ele.nomarl=this.ele.section.find(this.selector.nomarl);
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 n=this;this.ele.btn.off("click").on("click",function(){n.ele.section.hasClass("is-expanded")?n.closeBanner():n.openBanner()});this.ele.window.off("resize",this.handler.resize).on("resize",
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(H.section).target.forEach(function(n){u.instances.has(n)?u.instances.get(n).reInit():new u(n)})},closeBanner:function(n){n=void 0===n?!0:n;h(H.section).target.forEach(function(v){u.instances.has(v)&&u.instances.get(v).closeBanner(n)})}};h.ready(l)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.swiperManager,H=null,u=null,n=function(){H.find(".usp-banner__desc").target.forEach(function(aa){aa=l(aa);var x=aa.attr("data-an-page-track"),U=aa.attr("data-an-headline-text");aa.find("a").target.forEach(function(B){B.setAttribute("an-tr","ft17_usp banner-"+x+"-text-link");B.setAttribute("an-ca","content click");B.setAttribute("an-ac","feature");B.setAttribute("an-la","usp banner:"+U)})});H.target.forEach(function(aa){var x=l(aa);if(x.hasClass("usp-banner--bg-dynamic")){var U=
x.find(".swiper-container");aa=function(){U.find(".swiper-slide-active").hasClass("dynamic--bg-light-gray")?(x.addClass("dynamic--bg-light-gray"),x.removeClass("dynamic--bg-blue")):U.find(".swiper-slide-active").hasClass("dynamic--bg-blue")&&(x.addClass("dynamic--bg-blue"),x.removeClass("dynamic--bg-light-gray"))};h.getSwiper(U.target[0]).on("transitionEnd",aa);aa()}})},v=function(){H.target.forEach(function(aa){function x(k){var A=l(e.slides[e.activeIndex]),ca=A.find(".usp-banner__desc a"),K=A.find(".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":p.attr("an-as",K);ca.attr("an-as",K);break;case "mobile":p.attr("an-as",A),ca.attr("an-as",A)}}var U=window.sg.common.utils.getCurrentDevice(),B=l(window);aa=l(aa);var w=aa.find(".swiper-container"),e=h.getSwiper(w.target[0]),p=aa.find(".usp-banner__indicator button");x(U);e.on("slideChange",function(){x(U)});e.on("init",function(){x(U)});B.on("resize",function(){var k=window.sg.common.utils.getCurrentDevice();
U!==k&&(U=k,x(U))})})},F=function(){u.target.forEach(function(aa){aa=l(aa);1===aa.find(".usp-banner__icon").target.length&&("ltr"===window.sg.common.utils.getDirection()?aa.find(".usp-banner__desc").css({"text-align":"left"}):"rtl"===window.sg.common.utils.getDirection()&&aa.find(".usp-banner__desc").css({"text-align":"right"}))})},W=function(){window.sg.common.image.initAll();H=l(".usp-banner");u=l(".usp-banner__contents");H.target.length&&u.target.length&&(n(),v(),"mobile"===window.sg.common.utils.getCurrentDevice()&&
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)});n();v()}}})();
(function(){function l(){h(H.section).target.forEach(function(n){u.instances.has(n)||new u(n)})}var h=window.sg.common.$q,H={section:".pd-banner"},u=function(n){this.selector={section:H.section,btn:".pd-banner__toggle",hidden:".hidden",content:".pd-banner__inner",contentFade:".pd-banner__content-wrap",contentTitle:".pd-banner__title",timerText:".pd-banner__timer-text",timerCloseTxt:".offer-timer__timer-text",timerOpenDay:".pd-banner__timer .offer-timer__remain-day",timerOpenCount:".pd-banner__timer .offer-timer__counter",
timerOpenIndia:".s-timer \x3e span .text"};this.ele={window:h(window),section:h(n),btn:null,hidden:null,content:null,contentFade:null,contentTitle:null,timerCloseTxt:null,timerOpenDay:null,timerOpenCount:null};this.bannerType=this.isRu=this.isIndia=this.timeText=this.timeStart=this.timeEnd=this.isTimeStart=this.colorStyle=this.timer=null;this.usePreOfferBanner=this.ele.section.hasClass("pd-banner--pre-offer");this.setProperty();u.instances.set(n,this);this.init()};u.prototype.setProperty=function(){this.ele.btn=
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 n=u.counterData(this.isTimeStart?this.timeStart:this.timeEnd),v=this.isTimeStart?this.timeText.start:this.timeText.end,F=this.isIndia?":":this.isRu?" \u0434. ":" | ";if(0>=n.distance)if(!0===this.isTimeStart)this.isTimeStart=!1,n=u.counterData(this.timeEnd),this.ele.timerOpenDay=this.ele.section.find(this.selector.timerOpenDay),
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<n.day?""===this.timeText.day?(this.ele.timerCloseTxt.text(v+" "+n.day+F+n.hour+":"+n.minute+":"+n.second),"cn"==$("#siteCode").val()&&this.ele.timerCloseTxt.text(""+v+n.day+F+n.hour+":"+n.minute+":"+n.second)):this.ele.timerCloseTxt.text(v+
" "+n.day+" "+this.timeText.day+F+n.hour+":"+n.minute+":"+n.second):this.ele.timerCloseTxt.text(v+" "+n.hour+":"+n.minute+":"+n.second);this.isIndia?(v=this.ele.timerOpenCount.target[0].parentNode,0===n.day&&"none"!==v.style.display?v.style.display="none":0<n.day&&""!==v.style.display&&(v.style.display=""),this.ele.timerOpenCount.target.forEach(function(W,aa){var x=null;switch(aa){case 0:x=u.numFormat(n.day);break;case 1:x=n.hour;break;case 2:x=n.minute;break;case 3:x=n.second}W.textContent=x;aa=
W.nextElementSibling;aa.textContent=1>=parseInt(W.textContent)?aa.dataset.textSingular:aa.dataset.textPlural})):(0<n.day?"cn"==$("#siteCode").val()?(this.ele.section.find(".offer-timer__day").text(n.day),this.ele.section.find(".offer-timer__day").append('\x3cspan class\x3d"offer-timer__remain-day"\x3e'+Granite.I18n.get("Day in")+"\x3c/span\x3e")):this.ele.timerOpenDay.text(n.day):null!==this.ele.timerOpenDay&&(this.ele.section.find(".offer-timer__day").addClass("offer-timer__day--end"),this.ele.timerOpenDay=
null),this.isRu&&this.ele.remainText.text(""+v),this.ele.timerOpenCount.text(n.hour+":"+n.minute+":"+n.second))};u.counterData=function(n){n=new Date(n)-new Date;return{day:Math.floor(n/864E5),hour:u.numFormat(Math.floor(n%864E5/36E5)),minute:u.numFormat(Math.floor(n%36E5/6E4)),second:u.numFormat(Math.floor(n%6E4/1E3)),distance:n}};u.numFormat=function(n){n=Number(n).toString();10>Number(n)&&1===n.length&&(n="0"+n);return n};u.dateFormat=function(n){return null===n||""===n?0:n.substring(0,4)+"-"+
n.substring(4,6)+"-"+n.substring(6,8)+"T"+n.substring(8,10)+":"+n.substring(10)};u.prototype.setOfferStates=function(){this.usePreOfferBanner&&(this.isTimeStart?"preOfferbanner"!==this.bannerType&&(this.ele.section.addClass("pd-banner--pre-offer-show"),this.bannerType="preOfferbanner"):"offerBanner"!==this.bannerType&&(this.ele.section.removeClass("pd-banner--pre-offer-show"),window.sg.common.lazyLoad.setLazyLoad(),this.bannerType="offerBanner",this.setStyle(this.ele.section.hasClass("pd-banner--open"))))};
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 n=this;this.ele.btn.off("click").on("click",function(){n.ele.section.hasClass("pd-banner--open")?n.closeBanner():n.openBanner()})};u.prototype.setStyle=function(n){var v=this.usePreOfferBanner&&this.isTimeStart;
if(n){n=v?this.colorStyle.preFold.textColor:this.colorStyle.fold.textColor;var F=v?this.colorStyle.preUnfold.textColor:this.colorStyle.unfold.textColor;this.ele.section.css({background:v?this.colorStyle.preUnfold.bgColor:this.colorStyle.unfold.bgColor});this.ele.section.removeClass("pd-banner--text-"+n);this.ele.section.addClass("pd-banner--text-"+F)}else n=v?this.colorStyle.preFold.textColor:this.colorStyle.fold.textColor,F=v?this.colorStyle.preUnfold.textColor:this.colorStyle.unfold.textColor,this.ele.section.css({background:v?
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-"+n)};u.prototype.openBanner=function(){var n=this;if(!(0>this.timerDayInt)){this.ele.content.stop();this.ele.content.attr("style","");var v=this.ele.content.height();this.ele.section.addClass("pd-banner--open");var F=this.ele.content.height();this.ele.content.target[0].style.height=v+"px";this.ele.content.animate({height:F+
"px"},300,function(){n.ele.content.attr("style","")});this.ele.contentFade.target[0].style.opacity=1;this.ele.section.attr("aria-expanded",!0);window.sg.common.lazyLoad.setLazyLoad();this.setStyle(!0)}};u.prototype.closeBanner=function(n){var v=this;n=void 0===n?!0:n;if(!(0>this.timerDayInt)){this.ele.content.stop();if(n){this.ele.content.attr("style","");n=this.ele.content.height();this.ele.section.removeClass("pd-banner--open");var F=this.ele.content.height();this.ele.section.addClass("pd-banner--open");
this.ele.content.target[0].style.height=n+"px";this.ele.content.animate({height:F+"px"},300,function(){v.ele.section.removeClass("pd-banner--open");v.ele.content.attr("style","");v.ele.contentTitle.target[0].style.opacity=0;setTimeout(function(){v.ele.contentTitle.target[0].style.opacity=1},30)})}else this.ele.section.removeClass("pd-banner--open"),this.ele.content.attr("style",""),this.ele.contentTitle.target[0].style.opacity=1;this.ele.contentFade.target[0].style.opacity=0;this.ele.section.attr("aria-expanded",
!1);this.setStyle(!1)}};u.instances=new WeakMap;window.sg.components.pdBanner={init:l,reInit:function(){h(H.section).target.forEach(function(n){u.instances.has(n)?u.instances.get(n).reInit():new u(n)})},closeBanner:function(n){n=void 0===n?!0:n;h(H.section).target.forEach(function(v){u.instances.has(v)&&u.instances.get(v).closeBanner(n)})}};h.ready(l)})();
!function(l){var h=Date.now||function(){return+new Date},H={},u=1;l.core?core.effect||(core.effect={}):l.core={effect:{}};core.effect.Animate={requestAnimationFrame:function(){var n=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame,v=!!n;if(n&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(n.toString())&&(v=!1),v)return function(B,w){n(B,w)};var F={},W=0,aa=1,x=null,U=+new Date;return function(B,w){w=aa++;return F[w]=B,W++,
null===x&&(x=setInterval(function(){var e=+new Date,p=F;F={};W=0;for(var k in p)p.hasOwnProperty(k)&&(p[k](e),U=e);2500<e-U&&(clearInterval(x),x=null)},1E3/60)),w}}(),stop:function(n){var v=null!=H[n];return v&&(H[n]=null),v},isRunning:function(n){return null!=H[n]},start:function(n,v,F,W,aa,x){var U=h(),B=U,w=0,e=0,p=u++;if(x||(x=document.body),0==p%20){var k={},A;for(A in H)k[A]=!0;H=k}var ca=function(K){K=!0!==K;var D=h();if(!H[p]||v&&!v(p))return H[p]=null,void(F&&F(60-e/((D-U)/1E3),p,!1));if(K)for(var g=
Math.round((D-B)/(1E3/60))-1,C=0;C<Math.min(g,4);C++)ca(!0),e++;W&&1<(w=(D-U)/W)&&(w=1);g=aa?aa(w):w;!1!==n(g,D,K)&&1!==w||!K?K&&(B=D,core.effect.Animate.requestAnimationFrame(ca,x)):(H[p]=null,F&&F(60-e/((D-U)/1E3),p,1===w||null==W))};return H[p]=!0,core.effect.Animate.requestAnimationFrame(ca,x),p}}}(this);var Scroller;
!function(){Scroller=function(n,v){this.__callback=n;this.options={scrollingX:!0,scrollingY:!0,animating:!0,animationDuration:250,bouncing:!0,locking:!0,paging:!1,snapping:!1,zooming:!1,minZoom:.5,maxZoom:3};for(var F in v)this.options[F]=v[F]};var l=function(n){return Math.pow(n-1,3)+1},h=function(n){return 1>(n/=.5)?.5*Math.pow(n,3):.5*(Math.pow(n-2,3)+2)},H={__isSingleTouch:!1,__isTracking:!1,__isGesturing:!1,__isDragging:!1,__isDecelerating:!1,__isAnimating:!1,__clientLeft:0,__clientTop:0,__clientWidth:0,
__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(n,v,F,W){n&&(this.__clientWidth=n);v&&(this.__clientHeight=v);F&&(this.__contentWidth=F);W&&(this.__contentHeight=W);this.__computeScrollMax();this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(n,v){this.__clientLeft=n||0;this.__clientTop=v||0},setSnapSize:function(n,v){this.__snapWidth=n;this.__snapHeight=v},activatePullToRefresh:function(n,v,F,W){this.__refreshHeight=
n;this.__refreshActivate=v;this.__refreshDeactivate=F;this.__refreshStart=W},finishPullToRefresh:function(){this.__refreshActive=!1;this.__refreshDeactivate&&this.__refreshDeactivate();this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},getValues:function(){return{left:this.__scrollLeft,top:this.__scrollTop,zoom:this.__zoomLevel}},getScrollMax:function(){return{left:this.__maxScrollLeft,top:this.__maxScrollTop}},zoomTo:function(n,v,F,W){if(!this.options.zooming)throw Error("Zooming is not enabled!");
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);n=Math.max(Math.min(n,this.options.maxZoom),this.options.minZoom);this.__computeScrollMax(n);F=(F+this.__scrollLeft)*n/aa-F;W=(W+this.__scrollTop)*n/aa-W;F>this.__maxScrollLeft?F=this.__maxScrollLeft:0>F&&(F=0);W>this.__maxScrollTop?W=this.__maxScrollTop:0>W&&(W=0);this.__publish(F,W,n,v)},zoomBy:function(n,v,
F,W){this.zoomTo(this.__zoomLevel*n,v,F,W)},scrollTo:function(n,v,F,W){if(this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1),null!=W&&W!==this.__zoomLevel){if(!this.options.zooming)throw Error("Zooming is not enabled!");n*=W;v*=W;this.__computeScrollMax(W)}else W=this.__zoomLevel;this.options.scrollingX?this.options.paging?n=Math.round(n/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(n=Math.round(n/this.__snapWidth)*this.__snapWidth):
n=this.__scrollLeft;this.options.scrollingY?this.options.paging?v=Math.round(v/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(v=Math.round(v/this.__snapHeight)*this.__snapHeight):v=this.__scrollTop;n=Math.max(Math.min(this.__maxScrollLeft,n),0);v=Math.max(Math.min(this.__maxScrollTop,v),0);n===this.__scrollLeft&&v===this.__scrollTop&&(F=!1);this.__publish(n,v,W,F)},scrollBy:function(n,v,F){this.scrollTo((this.__isAnimating?this.__scheduledLeft:this.__scrollLeft)+(n||0),(this.__isAnimating?
this.__scheduledTop:this.__scrollTop)+(v||0),F)},doMouseZoom:function(n,v,F,W){return this.zoomTo(this.__zoomLevel*(0<n?.97:1.03),!1,F-this.__clientLeft,W-this.__clientTop)},doTouchStart:function(n,v){if(null==n.length)throw Error("Invalid touch list: "+n);if(v instanceof Date&&(v=v.valueOf()),"number"!=typeof v)throw Error("Invalid timestamp value: "+v);this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1);this.__isAnimating&&(core.effect.Animate.stop(this.__isAnimating),
this.__isAnimating=!1);var F,W,aa=1===n.length;aa?(F=n[0].pageX,W=n[0].pageY):(F=Math.abs(n[0].pageX+n[1].pageX)/2,W=Math.abs(n[0].pageY+n[1].pageY)/2);this.__initialTouchLeft=F;this.__initialTouchTop=W;this.__zoomLevelStart=this.__zoomLevel;this.__lastTouchLeft=F;this.__lastTouchTop=W;this.__lastTouchMove=v;this.__lastScale=1;this.__enableScrollX=!aa&&this.options.scrollingX;this.__enableScrollY=!aa&&this.options.scrollingY;this.__isTracking=!0;this.__isDragging=!aa;this.__isSingleTouch=aa;this.__positions=
[]},doTouchMove:function(n,v,F){if(null==n.length)throw Error("Invalid touch list: "+n);if(v instanceof Date&&(v=v.valueOf()),"number"!=typeof v)throw Error("Invalid timestamp value: "+v);if(this.__isTracking){var W,aa;2===n.length?(W=Math.abs(n[0].pageX+n[1].pageX)/2,aa=Math.abs(n[0].pageY+n[1].pageY)/2):(W=n[0].pageX,aa=n[0].pageY);n=this.__positions;if(this.__isDragging){var x=W-this.__lastTouchLeft,U=aa-this.__lastTouchTop,B=this.__scrollLeft,w=this.__scrollTop,e=this.__zoomLevel;if(null!=F&&
this.options.zooming){var p=e;if(e=e/this.__lastScale*F,e=Math.max(Math.min(e,this.options.maxZoom),this.options.minZoom),p!==e){var k=W-this.__clientLeft,A=aa-this.__clientTop;B=(k+B)*e/p-k;w=(A+w)*e/p-A;this.__computeScrollMax(e)}}this.__enableScrollX&&(B-=x,p=this.__maxScrollLeft,(B>p||0>B)&&(this.options.bouncing?B+=x/2:B=B>p?p:0));this.__enableScrollY&&(w-=U,x=this.__maxScrollTop,(w>x||0>w)&&(this.options.bouncing?(w+=U/2,this.__enableScrollX||null==this.__refreshHeight||(!this.__refreshActive&&
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<n.length&&n.splice(0,30);n.push(B,w,v);this.__publish(B,w,e)}else U=this.options.locking?3:0,B=Math.abs(W-this.__initialTouchLeft),w=Math.abs(aa-this.__initialTouchTop),this.__enableScrollX=this.options.scrollingX&&B>=U,this.__enableScrollY=this.options.scrollingY&&
w>=U,n.push(this.__scrollLeft,this.__scrollTop,v),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(5<=B||5<=w);this.__lastTouchLeft=W;this.__lastTouchTop=aa;this.__lastTouchMove=v;this.__lastScale=F}},doTouchEnd:function(n){if(n instanceof Date&&(n=n.valueOf()),"number"!=typeof n)throw Error("Invalid timestamp value: "+n);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging&&(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&100>=n-this.__lastTouchMove)){for(var v=
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(n)))}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(n,v,F,W){var aa=this,x=aa.__isAnimating;if(x&&(core.effect.Animate.stop(x),aa.__isAnimating=!1),W&&aa.options.animating){aa.__scheduledLeft=n;aa.__scheduledTop=v;aa.__scheduledZoom=F;var U=aa.__scrollLeft,
B=aa.__scrollTop,w=aa.__zoomLevel,e=n-U,p=v-B,k=F-w;aa.__isAnimating=core.effect.Animate.start(function(A,ca,K){K&&(aa.__scrollLeft=U+e*A,aa.__scrollTop=B+p*A,aa.__zoomLevel=w+k*A,aa.__callback&&aa.__callback(aa.__scrollLeft,aa.__scrollTop,aa.__zoomLevel))},function(A){return aa.__isAnimating===A},function(A,ca,K){ca===aa.__isAnimating&&(aa.__isAnimating=!1);aa.options.zooming&&aa.__computeScrollMax()},aa.options.animationDuration,x?l:h)}else aa.__scheduledLeft=aa.__scrollLeft=n,aa.__scheduledTop=
aa.__scrollTop=v,aa.__scheduledZoom=aa.__zoomLevel=F,aa.__callback&&aa.__callback(n,v,F),aa.options.zooming&&aa.__computeScrollMax()},__computeScrollMax:function(n){null==n&&(n=this.__zoomLevel);this.__maxScrollLeft=Math.max(this.__contentWidth*n-this.__clientWidth,0);this.__maxScrollTop=Math.max(this.__contentHeight*n-this.__clientHeight,0)},__startDeceleration:function(n){var v=this;if(v.options.paging){n=Math.max(Math.min(v.__scrollLeft,v.__maxScrollLeft),0);var F=Math.max(Math.min(v.__scrollTop,
v.__maxScrollTop),0),W=v.__clientWidth,aa=v.__clientHeight;v.__minDecelerationScrollLeft=Math.floor(n/W)*W;v.__minDecelerationScrollTop=Math.floor(F/aa)*aa;v.__maxDecelerationScrollLeft=Math.ceil(n/W)*W;v.__maxDecelerationScrollTop=Math.ceil(F/aa)*aa}else v.__minDecelerationScrollLeft=0,v.__minDecelerationScrollTop=0,v.__maxDecelerationScrollLeft=v.__maxScrollLeft,v.__maxDecelerationScrollTop=v.__maxScrollTop;var x=v.options.snapping?4:.1;v.__isDecelerating=core.effect.Animate.start(function(U,B,
w){v.__stepThroughDeceleration(w)},function(){return Math.abs(v.__decelerationVelocityX)>=x||Math.abs(v.__decelerationVelocityY)>=x},function(U,B,w){v.__isDecelerating=!1;v.scrollTo(v.__scrollLeft,v.__scrollTop,v.options.snapping)})},__stepThroughDeceleration:function(n){var v=this.__scrollLeft+this.__decelerationVelocityX,F=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var W=Math.max(Math.min(this.__maxDecelerationScrollLeft,v),this.__minDecelerationScrollLeft);W!==v&&
(v=W,this.__decelerationVelocityX=0);W=Math.max(Math.min(this.__maxDecelerationScrollTop,F),this.__minDecelerationScrollTop);W!==F&&(F=W,this.__decelerationVelocityY=0)}(n?this.__publish(v,F,this.__zoomLevel):(this.__scrollLeft=v,this.__scrollTop=F),this.options.paging)||(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95);this.options.bouncing&&(W=n=0,v<this.__minDecelerationScrollLeft?n=this.__minDecelerationScrollLeft-v:v>this.__maxDecelerationScrollLeft&&(n=this.__maxDecelerationScrollLeft-
v),F<this.__minDecelerationScrollTop?W=this.__minDecelerationScrollTop-F:F>this.__maxDecelerationScrollTop&&(W=this.__maxDecelerationScrollTop-F),0!==n&&(0>=n*this.__decelerationVelocityX?this.__decelerationVelocityX+=.03*n:this.__decelerationVelocityX=.08*n),0!==W&&(0>=W*this.__decelerationVelocityY?this.__decelerationVelocityY+=.03*W:this.__decelerationVelocityY=.08*W))}},u;for(u in H)Scroller.prototype[u]=H[u]}();
(function(l){"function"==typeof define&&define.amd?define(["shoestring"],l):"object"==typeof module&&module.exports?module.exports=l():l()})(function(){function l(e,p){var k,A=typeof e,ca=[];if(!e)return new W(ca);if(e.call)return l.ready(e);if(e.constructor===W&&!p)return e;if("string"===A&&0===e.indexOf("\x3c")){var K=F.createElement("div");return K.innerHTML=e,l(K).children().each(function(){K.removeChild(this)})}return"string"===A?p?l(p).find(e):(k=F.querySelectorAll(e),new W(k,e)):"[object Array]"===
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,p){var k=!1;return e.each(function(){for(var A=0;A<p.length;)this===p[A]&&(k=!0),A++}),k}function H(e,p){e.shoestringData||(e.shoestringData={});e.shoestringData.events||(e.shoestringData.events={});e.shoestringData.loop||(e.shoestringData.loop={});e.shoestringData.events[p]||(e.shoestringData.events[p]=[])}function u(e,p,k){var A={};A.isCustomEvent=k.isCustomEvent;
A.callback=k.callfunc;A.originalCallback=k.originalCallback;A.namespace=k.namespace;e.shoestringData.events[p].push(A);k.customEventLoop&&(e.shoestringData.loop[p]=k.customEventLoop)}function n(e,p,k){var A=this.shoestringData.events[e];if(A&&A.length){var ca,K=[];var D=0;for(ca=A.length;D<ca;D++)p&&p!==A[D].namespace||void 0!==k&&k!==A[D].originalCallback||(this.removeEventListener(e,A[D].callback,!1),K.push(D));D=0;for(ca=K.length;D<ca;D++)this.shoestringData.events[e].splice(D,1)}}var v="undefined"!=
typeof window?window:this,F=v.document,W=function(e,p){this.length=0;this.selector=p;l.merge(this,e)};W.prototype.reverse=[].reverse;l.fn=W.prototype;l.Shoestring=W;l.extend=function(e,p){for(var k in p)p.hasOwnProperty(k)&&(e[k]=p[k]);return e};l.merge=function(e,p){var k;var A=+p.length;var ca=0;for(k=e.length;ca<A;ca++)e[k++]=p[ca];return e.length=k,e};v.shoestring=l;l.ajax=function(e,p){var k,A,ca="",K=new XMLHttpRequest;if(k=l.extend({},l.ajax.settings),p&&l.extend(k,p),e||(e=k.url),K&&e){if(k.data)for(A in k.data)k.data.hasOwnProperty(A)&&
(""!==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,p){return l.ajax(e,{success:p})};l.fn.load=function(e,p){var k=this,A=arguments;return l.ajax(e,{success:function(ca){k.each(function(){l(this).html(ca)});
p&&p.apply(k,A)}}),this};l.post=function(e,p,k){return l.ajax(e,{data:p,method:"POST",success:k})};l.fn.each=function(e){return l.each(this,e)};l.each=function(e,p){for(var k=0,A=e.length;k<A&&!1!==p.call(e[k],k,e[k]);k++);return e};l.inArray=function(e,p){for(var k=-1,A=0,ca=p.length;A<ca;A++)p.hasOwnProperty(A)&&p[A]===e&&(k=A);return k};l.ready=function(e){return aa&&e?e.call(F):e?x.push(e):U(),[F]};l.fn.ready=function(e){return l.ready(e),this};var aa=!1,x=[],U=function(){if(!aa){for(;x.length;)x.shift().call(F);
aa=!0}};(F.attachEvent?"complete"===F.readyState:"loading"!==F.readyState)?U():(F.addEventListener("DOMContentLoaded",U,!1),F.addEventListener("readystatechange",U,!1),v.addEventListener("load",U,!1));l.fn.is=function(e){var p,k,A=!1,ca=this;return"string"!=typeof e?(k=e.length&&e[0]?e:[e],h(this,k)):(p=this.parent(),p.length||(p=l(F)),p.each(function(K,D){K=D.querySelectorAll(e);A=h(ca,K)}),A)};l.fn.data=function(e,p){return void 0===e?this[0]?this[0].shoestringData||{}:void 0:void 0!==p?this.each(function(){this.shoestringData||
(this.shoestringData={});this.shoestringData[e]=p}):this[0]&&this[0].shoestringData?this[0].shoestringData[e]:void 0};l.fn.removeData=function(e){return this.each(function(){void 0!==e&&this.shoestringData?(this.shoestringData[e]=void 0,delete this.shoestringData[e]):this[0].shoestringData={}})};void 0===v.$&&(v.$=l);l.fn.addClass=function(e){var p=e.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k=0,A=p.length;k<A;k++)void 0===this.className||""!==this.className&&this.className.match(new RegExp("(^|\\s)"+
p[k]+"($|\\s)"))||(this.className+=" "+p[k])})};l.fn.add=function(e){var p=[];return this.each(function(){p.push(this)}),l(e).each(function(){p.push(this)}),l(p)};l.fn.after=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),1<e.length&&(e=e.reverse()),this.each(function(p){for(var k=0,A=e.length;k<A;k++){var ca=0<p?e[k].cloneNode(!0):e[k];this.parentNode.insertBefore(ca,this.nextSibling)}})};l.fn.append=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(p){for(var k=
0,A=e.length;k<A;k++)this.appendChild(0<p?e[k].cloneNode(!0):e[k])})};l.fn.appendTo=function(e){return this.each(function(){l(e).append(this)})};l.fn.attr=function(e,p){var k="string"==typeof e;return void 0===p&&k?this[0]?this[0].getAttribute(e):void 0:this.each(function(){if(k)this.setAttribute(e,p);else for(var A in e)e.hasOwnProperty(A)&&this.setAttribute(A,e[A])})};l.fn.before=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(p){for(var k=0,A=e.length;k<A;k++)this.parentNode.insertBefore(0<
p?e[k].cloneNode(!0):e[k],this)})};l.fn.children=function(){var e,p,k=[];return this.each(function(){e=this.children;for(p=-1;p++<e.length-1;)-1===l.inArray(e[p],k)&&k.push(e[p])}),l(k)};l.fn.clone=function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),l(e)};l.fn.closest=function(e){var p=[];return e?(this.each(function(){var k;if(l(k=this).is(e))return void p.push(this);for(;k.parentElement;){if(l(k.parentElement).is(e)){p.push(k.parentElement);break}k=k.parentElement}}),l(p)):
l(p)};l.cssExceptions={float:["cssFloat"]};(function(){function e(ca){return ca.replace(/\-([A-Za-z])/g,function(K,D){return D.toUpperCase()})}function p(ca,K){return v.getComputedStyle(ca,null).getPropertyValue(K)}var k=l.cssExceptions,A=" -webkit- -ms- -moz- -o- -khtml-".split(" ");l._getStyle=function(ca,K){var D,g,C;if(k[K]){var E=0;for(C=k[K].length;E<C;E++)if(g=p(ca,k[K][E]))return g}E=0;for(C=A.length;E<C;E++)if(D=e(A[E]+K),g=p(ca,D),D!==K&&(g=g||p(ca,K)),A[E]&&(g=g||p(ca,A[E]+K)),g)return g}})();
(function(){function e(k){return k.replace(/\-([A-Za-z])/g,function(A,ca){return ca.toUpperCase()})}var p=l.cssExceptions;l._setStyle=function(k,A,ca){var K=e(A);if(k.style[A]=ca,K!==A&&(k.style[K]=ca),p[A]){K=0;for(var D=p[A].length;K<D;K++)k.style[p[A][K]]=ca}}})();l.fn.css=function(e,p){if(this[0])return"object"==typeof e?this.each(function(){for(var k in e)e.hasOwnProperty(k)&&l._setStyle(this,k,e[k])}):void 0!==p?this.each(function(){l._setStyle(this,e,p)}):l._getStyle(this[0],e)};l.fn.eq=function(e){return l(this[e]?
this[e]:[])};l.fn.filter=function(e){var p=[];return this.each(function(k){"function"==typeof e?!1!==e.call(this,k)&&p.push(this):9===this.nodeType?this===e&&p.push(this):(this.parentNode?k=l(e,this.parentNode):(k=l(F.createDocumentFragment()),k[0].appendChild(this),k=l(e,k)),-1<l.inArray(this,k)&&p.push(this))}),l(p)};l.fn.find=function(e){var p,k=[];return this.each(function(){p=this.querySelectorAll(e);for(var A=0,ca=p.length;A<ca;A++)k=k.concat(p[A])}),l(k)};l.fn.first=function(){return this.eq(0)};
l.fn.get=function(e){if(void 0===e){e=[];for(var p=0;p<this.length;p++)e.push(this[p]);return e}return this[e]};l._dimension=function(e,p,k){var A;return void 0===k?(A=p.replace(/^[a-z]/,function(ca){return ca.toUpperCase()}),e[0]["offset"+A]):(k="string"==typeof k?k:k+"px",e.each(function(){this.style[p]=k}))};l.fn.height=function(e){return l._dimension(this,"height",e)};var B=function(e){if("string"==typeof e||"number"==typeof e)return this.each(function(){this.innerHTML=""+e});var p="";if(void 0!==
e.length)for(var k=0,A=e.length;k<A;k++)p+=e[k].outerHTML;else p=e.outerHTML;return this.each(function(){this.innerHTML=p})};l.fn.html=function(e){if(void 0!==e)return B.call(this,e);var p="";return this.each(function(){p+=this.innerHTML}),p};(function(){function e(p,k){var A,ca,K;for(A=ca=0;A<p.length;A++){if(K=p.item?p.item(A):p[A],k(K))return ca;1===K.nodeType&&ca++}return-1}l.fn.index=function(p){var k,A;return k=this,void 0===p?(A=(this[0]&&this[0].parentNode||F.documentElement).childNodes,e(A,
function(ca){return k[0]===ca})):e(k,function(ca){return ca===l(p,ca.parentNode)[0]})}})();l.fn.insertAfter=function(e){return this.each(function(){l(e).after(this)})};l.fn.insertBefore=function(e){return this.each(function(){l(e).before(this)})};l.fn.last=function(){return this.eq(this.length-1)};l.fn.next=function(){var e=[];return this.each(function(){var p,k;var A=l(this.parentNode)[0].childNodes;for(var ca=0;ca<A.length;ca++){if(p=A.item(ca),k&&1===p.nodeType){e.push(p);break}p===this&&(k=!0)}}),
l(e)};l.fn.not=function(e){var p=[];return this.each(function(){var k=l(e,this.parentNode);-1===l.inArray(this,k)&&p.push(this)}),l(p)};l.fn.offset=function(){return{top:this[0].offsetTop,left:this[0].offsetLeft}};l.fn.parent=function(){var e,p=[];return this.each(function(){(e=this===F.documentElement?F:this.parentNode)&&11!==e.nodeType&&p.push(e)}),l(p)};l.fn.parents=function(e){var p=[];return this.each(function(){for(var k,A=this;A.parentElement&&!k;)A=A.parentElement,e?A===l(e)[0]&&(k=!0,-1===
l.inArray(A,p)&&p.push(A)):-1===l.inArray(A,p)&&p.push(A)}),l(p)};l.fn.prepend=function(e){return"string"!=typeof e&&void 0===e.nodeType||(e=l(e)),this.each(function(p){for(var k=0,A=e.length;k<A;k++){var ca=0<p?e[k].cloneNode(!0):e[k];this.firstChild?this.insertBefore(ca,this.firstChild):this.appendChild(ca)}})};l.fn.prependTo=function(e){return this.each(function(){l(e).prepend(this)})};l.fn.prev=function(){var e=[];return this.each(function(){var p,k;var A=l(this.parentNode)[0].childNodes;for(var ca=
A.length-1;0<=ca;ca--){if(p=A.item(ca),k&&1===p.nodeType){e.push(p);break}p===this&&(k=!0)}}),l(e)};l.fn.prevAll=function(){var e=[];return this.each(function(){for(var p=l(this).prev();p.length;)e.push(p[0]),p=p.prev()}),l(e)};l.propFix={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",tabindex:"tabIndex"};l.fn.prop=function(e,p){if(this[0])return e=l.propFix[e]||e,void 0!==p?this.each(function(){this[e]=p}):this[0][e]};l.fn.removeAttr=function(e){return this.each(function(){this.removeAttribute(e)})};
l.fn.removeClass=function(e){var p=e.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k,A,ca=0,K=p.length;ca<K;ca++)void 0!==this.className&&(A=new RegExp("(^|\\s)"+p[ca]+"($|\\s)","gmi"),k=this.className.replace(A," "),this.className=k.replace(/^\s+|\s+$/g,""))})};l.fn.remove=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})};l.fn.removeProp=function(e){var p=l.propFix[e]||e;return this.each(function(){this[p]=void 0;delete this[p]})};
l.fn.replaceWith=function(e){"string"==typeof e&&(e=l(e));var p=[];return 1<e.length&&(e=e.reverse()),this.each(function(k){var A=this.cloneNode(!0);if(p.push(A),this.parentNode)if(1===e.length)A=0<k?e[0].cloneNode(!0):e[0],this.parentNode.replaceChild(A,this);else{for(var ca=0,K=e.length;ca<K;ca++)A=0<k?e[ca].cloneNode(!0):e[ca],this.parentNode.insertBefore(A,this.nextSibling);this.parentNode.removeChild(this)}}),l(p)};l.inputTypes="text hidden password color date datetime email month number range search tel time url week".split(" ");
l.inputTypeTest=new RegExp(l.inputTypes.join("|"));l.fn.serialize=function(){var e={};return l("input, select",this).each(function(){var p=this.type,k=this.name,A=this.value;l.inputTypeTest.test(p)||("checkbox"===p||"radio"===p)&&this.checked?e[k]=A:"SELECT"===this.nodeName&&(e[k]=this.options[this.selectedIndex].nodeValue)}),e};l.fn.siblings=function(){if(!this.length)return l([]);var e=[],p=this[0].parentNode.firstChild;do 1===p.nodeType&&p!==this[0]&&e.push(p),p=p.nextSibling;while(p);return l(e)};
var w=function(e){var p,k="",A=0;if(p=e.nodeType)if(1===p||9===p||11===p){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)k+=w(e)}else{if(3===p||4===p)return e.nodeValue}else for(;p=e[A++];)k+=w(p);return k};return l.fn.text=function(){return w(this)},l.fn.val=function(e){var p;return void 0!==e?this.each(function(){if("SELECT"===this.tagName){var k,A,ca=this.options,K=[],D=ca.length;for(K[0]=e;D--;){var g=ca[D];(g.selected=0<=l.inArray(g.value,K))&&(k=
!0,A=D)}this.selectedIndex=k?A:-1}else this.value=e}):(p=this[0],"SELECT"===p.tagName?0>p.selectedIndex?"":p.options[p.selectedIndex].value:p.value)},l.fn.width=function(e){return l._dimension(this,"width",e)},l.fn.wrapInner=function(e){return this.each(function(){var p=this.innerHTML;this.innerHTML="";l(this).append(l(e).html(p))})},l.fn.bind=function(e,p,k){function A(K,D,g){var C;if(!K._namespace||K._namespace===D){K.data=p;K.namespace=K._namespace;var E=function(){return!0};K.isDefaultPrevented=
function(){return!1};var T=K.preventDefault;return K.target=g||K.target||K.srcElement,K.preventDefault=function(){return T?function(){K.isDefaultPrevented=E;T.call(K)}:function(){K.isDefaultPrevented=E;K.returnValue=!1}}(),K.stopPropagation=K.stopPropagation||function(){K.cancelBubble=!0},C=k.apply(this,[K].concat(K._args)),!1===C&&(K.preventDefault(),K.stopPropagation()),C}}"function"==typeof p&&(k=p,p=null);var ca=e.split(" ");return this.each(function(){for(var K,D=this,g=0,C=ca.length;g<C;g++){K=
ca[g].split(".");var E=K[0],T=0<K.length?K[1]:null;K=function(R){return D.ssEventTrigger&&(R._namespace=D.ssEventTrigger._namespace,R._args=D.ssEventTrigger._args,D.ssEventTrigger=null),A.call(D,R,T)};H(this,E);this.addEventListener(E,K,!1);u(this,E,{callfunc:K,isCustomEvent:!1,customEventLoop:null,originalCallback:k,namespace:T})}})},l.fn.on=l.fn.bind,l.fn.unbind=function(e,p){var k=e?e.split(" "):[];return this.each(function(){if(this.shoestringData&&this.shoestringData.events)if(k.length)for(var A,
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)n.call(this,ca,A,p);else{ca=void 0;var g=p;for(ca in this.shoestringData.events)n.call(this,ca,A,g)}else for(K in this.shoestringData.events)n.call(this,K,void 0,void 0)})},l.fn.off=l.fn.unbind,l.fn.one=function(e,p){var k=e.split(" ");return this.each(function(){for(var A,ca={},K=l(this),D=0,g=k.length;D<g;D++)A=k[D],ca[A]=function(C){var E=l(this),T;for(T in ca)E.unbind(T,ca[T]);return p.apply(this,[C].concat(C._args))},
K.bind(A,ca[A])})},l.fn.triggerHandler=function(e,p){var k,A=e.split(" ")[0],ca=this[0];if(F.createEvent&&ca.shoestringData&&ca.shoestringData.events&&ca.shoestringData.events[A]){ca=ca.shoestringData.events[A];for(var K in ca)ca.hasOwnProperty(K)&&(e=F.createEvent("Event"),e.initEvent(A,!0,!0),e._args=p,p.unshift(e),k=ca[K].originalCallback.apply(e.target,p))}return k},l.fn.trigger=function(e,p){var k=e.split(" ");return this.each(function(){for(var A,ca,K,D=0,g=k.length;D<g;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=p;C._namespace=K;this.dispatchEvent(C)}}})},l});window.jQuery||(window.jQuery=window.jQuery||window.shoestring);(function(l){l.Akamai=l.Akamai||{};window.componentNamespace="Akamai"})("undefined"==typeof exports?window:exports);
(function(l,h){h(l);var H=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 n=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)||n.autoRotateStartDelay;this.mouseMoveBinding=this.rotateEvent.bind(this);this.touchMoveBinding=this.rotateEvent.bind(this);this.path=new n.Path;this.$initial.first().addClass("focused");this.$element.addClass("tau-enhanced");this.$render=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()};n.autoRotateTraversalTime=4500;n.autoRotateStartDelay=100;n.verticalScrollRatio=4;n.maxVelocity=60;n.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)};n.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"};n.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)}};n.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()}};n.prototype.change=function(v){this.goto(this.options.reverse?this.index-v:this.index+v)};n.prototype.goto=function(v){var F,W,aa=this.$images.length;return v%=aa,W=(aa+v)%aa,F=this.$images.eq(W),F[0].tauImageLoaded?(this.$current?this.$current.removeClass("focused"):this.$images.removeClass("focused"),this.$current=F,this.index=W,this.canvasCtx?this.renderCanvas():
(this.$current.addClass("focused"),!0)):(this.showLoading(),!1)};n.prototype.renderCanvas=function(){var v=this.$current[0],F=v.width,W=v.height,aa=this.element.clientWidth,x=aa/F*W;return!!(F&&W&&v.complete)&&((this.canvas.width!==aa||this.canvas.height!==x||aa&&x)&&(this.canvas.width=aa,this.canvas.height=x),this.canvasCtx.drawImage(v,0,0,aa,x),!0)};n.prototype.createImages=function(){if(1>this.$initial.length)throw Error("At least one image required");if(this.loadedCount=0,1==this.$initial.length){this.markImageLoaded(this.$initial[0]);
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,U){U=h(U);U.bind("load error",function(B){this.imageLoaded(x,B.target,B)}.bind(this));this.$element.append(U);this.$render.append(U.html())}.bind(this));this.$current=this.$images=this.$element.children().filter("img");this.goto(0)}else this.$images=this.$element.children().filter("img"),
this.$images.each(function(x,U){0<h(U).height()?this.imageLoaded(x,U):h(U).bind("load error",function(B){this.imageLoaded(x,B.target,B)}.bind(this))}.bind(this))};n.prototype.imageLoaded=function(v,F,W){v=!1;this.markImageLoaded(F);this.$element.find("img")[0]!=F||W&&"error"===W.type||this.options.autoplay&&this.options.autoplay.enabled||(this.goto(0),this.$element.trigger("tau.init"),v=!0);++this.loadedCount>=this.frames-1&&(this.hideLoading(),v||(this.$element.trigger("tau.init"),this.initialized=
!0))};n.prototype.markImageLoaded=function(v){v.tauImageLoaded=!0};n.prototype.bind=function(){this.$element.bind("mousedown touchstart",this.track.bind(this))};n.prototype.autoRotate=function(v){this.autoInterval||(this.$element.addClass("spinning"),this.change(v?-1:1),this.autoInterval=setInterval(function(){this.change(v?-1:1)}.bind(this),this.autoRotateDelay()*this.stepSize),this.$element.trigger("tau.auto-rotate-start"))};n.prototype.autoRotateDelay=function(){return(this.options.interval||n.autoRotateTraversalTime)/
this.frames};n.prototype.stopAutoRotate=function(){clearInterval(this.autoInterval);clearInterval(this.autostartTimeout);this.$element.removeClass("spinning");this.autoInterval=void 0;this.$element.trigger("tau.auto-rotate-stop")};n.prototype.track=function(v){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)||(H.one("mouseup",
this.release.bind(this)),H.one("touchend",this.release.bind(this)),this.tracking=!0,this.path.reset(),this.cursorGrab(),this.rotateThreshold=this.$element[0].clientWidth/this.frames/(this.options.sensitivity||1),v=this.getPoint(v),this.downX=v.x,this.downY=v.y,this.downIndex=this.index,H.bind("mousemove",this.mouseMoveBinding),H.bind("touchmove",this.touchMoveBinding))};n.prototype.slow=function(){if(!this.path.isSufficient())return void this.clearSlowInterval();this.rotate({x:this.path.last().x+
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())};n.prototype.decelVal=function(){return this.decelTimeStep()/8};n.prototype.clearSlowInterval=function(){clearInterval(this.slowInterval);this.velocity=0;this.slowInterval=void 0};n.prototype.decel=function(){var v,F;this.path.isSufficient()&&(v=this.path.velocity(this.decelTimeStep()),F=0<v?1:0>
v?-1:0,Math.abs(v)>n.maxVelocity&&(v=F*n.maxVelocity),this.velocity=v,this.slowInterval=setInterval(this.slow.bind(this),this.decelTimeStep()))};n.prototype.decelTimeStep=function(){return this.autoRotateDelay()/2};n.prototype.release=function(v){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(),H.unbind("mousemove",this.mouseMoveBinding),
H.unbind("touchmove",this.touchMoveBinding),this.tracking=!1)};n.prototype.cursorGrab=function(){H.addClass("grabbing")};n.prototype.cursorRelease=function(){H.removeClass("grabbing")};n.prototype.showLoading=function(){this.$loading.attr("style","display: block")};n.prototype.hideLoading=function(){this.$loading.attr("style","display: none")};n.prototype.getPoint=function(v){var F=v.touches||v.originalEvent&&v.originalEvent.touches;return F?{x:F[0].pageX,y:F[0].pageY}:{x:v.pageX||v.clientX,y:v.pageY||
v.clientY}};n.prototype.rotateEvent=function(v){this.rotate(this.getPoint(v))&&v.preventDefault()};n.prototype.rotate=function(v){var F,W;if(F=v.x-this.downX,W=v.y-this.downY,Math.abs(W)/Math.abs(F)>=n.verticalScrollRatio)return!1;if(this.path.record(v),Math.abs(F)>=this.rotateThreshold){this.stopAutoRotate();var aa;return aa=this.options.reverse?this.downIndex+Math.round(F/this.rotateThreshold):this.downIndex-Math.round(F/this.rotateThreshold),this.goto(aa),!0}}})(this,jQuery);
(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(H){this.prevPrevTime=this.prevTime;this.prevPrevPoint=this.prevPoint;
this.prevTime=Date.now();this.prevPoint=H};l.prototype.velocity=function(H){var u,n;return u=this.distance(),n=this.duration(),u/(n/H)};l.prototype.reset=function(){this.prevPrevPoint=this.prevPrevTime=this.prevTime=this.prevPoint=void 0};l.prototype.last=function(){return this.prevPoint}})(this,jQuery);
(function(l,h){function H(F){return String(F).replace(/[&<>"'`=\/]/g,function(W){return v[W]})}l.Akamai=l.Akamai||{};var u=l.Akamai.Util={};u.preflight=function(F,W,aa,x){if(x=x||F.constructor.name,F._$el=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(U,B){var w=u.preflight(this,U,B,F);if(w)return this._trigger("init"),w;aa.apply(this,arguments);W||this._trigger("init")};return x.name=F,x._dataAttr="data-akamai-"+F.toLowerCase(),x.createMany=u.createMany(x),x.prototype._trigger=u.trigger(F),x};u.mapEvents=function(F){var W=F.constructor._componentEventMapping||{},aa;for(aa in W)if(W.hasOwnProperty(aa)){var x=W[aa].to||W[aa],U=W[aa].selector?F._$el.find(W[aa].selector):void 0;u.mapEvent(F,
aa,x,U)}};u.mapEvent=function(F,W,aa,x){(x||F._$el).bind(W,function(){F._trigger(aa)}.bind(F))};u.createMany=function(F,W){return W=W||"["+F._dataAttr+"]",function(aa,x){var U=[];return h(aa).find(W).each(function(B,w){U.push(new F(w,x))}),U}};u.propRequired=function(F,W,aa){return function(){var x=arguments;if(!this[F])throw Error(W);return aa.apply(this,x)}};u.trigger=function(F){return F=F.toLowerCase(),function(W){this._$el.trigger("akamai-"+F+"-"+W)}};u.camelToKabob=function(F){return F.replace(/([A-Z]+)/g,
function(W){return"-"+W.toLowerCase()})};u.options=function(F,W,aa,x){var U={},B=u.extend(!0,{},F);aa&&x&&(U=u.getDataAttrOptions(aa,F,"data-akamai-"+x.toLowerCase()));W=u.extend(!0,u.extend(!0,B,U),W);return aa&&x&&u.setDataAttrOptions(aa,F,W,x),W};u.getDataAttrOptions=function(F,W,aa){var x={},U;for(U in W)if(W.hasOwnProperty(U)){var B=u.camelToKabob(U);B=aa+"-"+B;!/object/.test(typeof W[U])||W[U]instanceof Array?(B=F.attr(B),B=u.coerceAttrVal(B),void 0!==B&&null!==B&&(x[U]=B)):(B=u.getDataAttrOptions(F,
W[U],B),x[U]=B)}return x};u.setDataAttrOptions=function(F,W,aa,x){u.setDataAttrOptionsPrefix(F,W,aa,"data-akamai-"+x.toLowerCase())};u.setDataAttrOptionsPrefix=function(F,W,aa,x){W=W||{};for(var U in aa)if(aa.hasOwnProperty(U)&&"breakpoints"!==U){var B=u.camelToKabob(U);B=x+"-"+B;/object/.test(typeof aa[U])?u.setDataAttrOptionsPrefix(F,W[U],aa[U],B):(F.attr(B)||void 0!==W[U])&&F.attr(B,aa[U])}};u.coerceAttrVal=function(F){return"true"===F||"false"!==F&&(/^[0-9]+$/.test(F)?parseInt(F,10):/^[0-9]+.[0-9]+$/.test(F)?
parseFloat(F,10):F)};u.extend=function(F,W,aa){var x,U;if(null!=aa)for(x in aa){var B=W[x];var w=aa[x];W!==w&&(F&&w&&u.isPlainObject(w)?(U=B&&u.isPlainObject(B)?B:{},W[x]=u.extend(F,U,w)):void 0!==w&&(W[x]=w))}return W};u.isPlainObject=function(F){return!(!F||"[object Object]"!==Object.prototype.toString.call(F))};var n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;u.trim=function(F){return null==F?"":(F+"").replace(n,"")};u.map=function(F,W){return u.reduce(F,function(aa,x,U){return aa.push(W(x,U)),aa},[])};
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 U in F)F.hasOwnProperty(U)&&(x[U]=u.mapJSONVals(F[U],W,U));return x};u.escapeJSONVals=function(F){return u.mapJSONVals(F,function(W){return"string"==typeof W?H(W):W})};var v={"\x26":"\x26amp;",
"\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(H){this.goto(this.getIndex()+1,function(){H&&H();this._trigger("next")}.bind(this))},previous:function(H){this.goto(this.getIndex()-1,function(){H&&H();this._trigger("previous")}.bind(this))}},extend:function(H){if(!H.prototype.goto||!H.prototype.getIndex)throw Error("Advanceable mixin requires `goto` and `getIndex` methods");h.extend(H.prototype,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){l.Akamai=l.Akamai||{};l.Akamai.Sourceable={extension:{_srcArray:function(H,u,n){var v=u.policy||u.thumbnail&&u.thumbnail.policy,F=u.widthParam;return u.widths.map(function(W){var aa=H+"?"+F+"\x3d"+W;return v&&(aa+="\x26impolicy\x3d"+v),n&&(aa+=" "+W+"w"),aa})},_srcset:function(H,u){return this._srcArray(H,u,!0).join(", ")},_fallbackSrc:function(H,u){return this._srcArray(H,u)[0]},_largestSrc:function(H,u){return this._srcArray(H,u).pop()}},extendStatic:function(H){Akamai.Util.extend(!1,
H,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var H=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(n){l.setTimeout(n,1E3/60)}}();l.toss=function(n,v){toss.tossing(n,!1);var F,W,aa=0,x=n.scrollLeft,U=n.scrollTop,B={top:"+0",left:"+0",duration:200,easing:toss.easing,finished:function(){}};if(v)for(var w in B)void 0!==v[w]&&(B[w]=v[w]);"string"==typeof B.left?(B.left=parseFloat(B.left),F=B.left+x):(F=B.left,B.left-=x);"string"==typeof B.top?(B.top=parseFloat(B.top),
W=B.top+U):(W=B.top,B.top-=U);toss.tossing(n,!0);var e=(new Date).getTime(),p=e+B.duration,k=function(){var A=(new Date).getTime();if(toss.tossing(n)){if(A<p)return aa=(A-e)/B.duration*B.duration,n.scrollLeft=B.easing(aa,x,B.left,B.duration),n.scrollTop=B.easing(aa,U,B.top,B.duration),H(k);n.scrollLeft=F;n.scrollTop=W;B.finished&&B.finished();toss.tossing(n,!1)}else B.finished&&B.finished()};return H(k),{top:W,left:F,duration:B.duration,easing:B.easing}};var u={};toss.tossing=function(n,v){return void 0!==
v&&(u[n]=v),u[n]};toss.easing=function(n,v,F,W){return F*((n=n/W-1)*n*n+1)+v};toss.toss=toss})(this);
(function(l,h){h.fn.snapper=function(H){function u(B,w){var e=h(B).find(".snapper_item"),p=h(B).width(),k=[];return e.each(function(A){this.offsetLeft>=w-5&&this.offsetLeft<w+p-5&&k.push(this)}),h(k)}function n(B){return B.width()+parseFloat(B.css("margin-left"))+parseFloat(B.css("margin-right"))}function v(B,w,e){e=e?e+"-":"";w=u(B,w);h(B).trigger("snapper."+e+"snap",{activeSlides:w})}function F(B,w,e,p){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)});p&&p();v(B,w,"after")};!l.toss&&l.overthrow&&(l.toss=l.overthrow.toss);void 0===l.toss||e?(B.scrollLeft=w,k()):l.toss(B,{left:w,finished:k})}var W,aa,x=arguments,U=l.CSS&&l.CSS.supports&&(l.CSS.supports("scroll-snap-type","mandatory")||l.CSS.supports("-webkit-scroll-snap-type","mandatory")||l.CSS.supports("-ms-scroll-snap-type","mandatory"));return W=this.each(function(){function B(){var t=E.attr("data-autoplay")||E.attr("data-snapper-autoplay"),
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=ea.eq(0).attr("style");ea.eq(0).attr("style","");var I=R.width(),X=ea.eq(0).width(),V=l.getComputedStyle(ea[0],null),O=parseFloat(V.getPropertyValue("margin-left")),S=parseFloat(V.getPropertyValue("margin-right"));V=X+O+S;ea.eq(0).attr("style",z);y.attr("style",t);t=X/I*100;z=S/I*100;O=O/I*100;X=t+O+
z;t/=X;z/=X;O/=X;y.css("width",va/Math.round(I/V)*100+"%");ea.css("width",100/va*t+"%");ea.css("margin-left",100/va*O+"%");ea.css("margin-right",100/va*z+"%")}function e(){if(d)return void(r=!0);var t=R[0].scrollLeft,z=y.width(),I=ea[1]?ea[1].offsetLeft:n(ea.eq(0));I*=Math.round(t/I);z-=R.width();I>z&&(I=z);t!==I&&(U?(v(R[0],I),v(R[0],I,"after")):F(R[0],I));r=!1}function p(){var t=R[0].scrollLeft,z=ea.length,I=y.width();void 0===N&&(N=Math.round(t/I*z));b&&clearTimeout(b);b=setTimeout(function(){w();
F(R[0],ea[N].offsetLeft,!0);N=b=void 0},50)}function k(t){var z=R[0].scrollLeft,I=y.width(),X=n(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()/va,!1,function(){R.trigger("snapper.after-next")})}function ca(){F(R[0],R[0].scrollLeft-y.width()/va,!1,function(){R.trigger("snapper.after-prev")})}function K(t){var z=(new Date).getTime();if(!(!t&&
G&&200>z-G)){G=z;var I=R[0].scrollLeft,X=n(y);t=n(ra);z=ra;z=z.height()+parseFloat(z.css("margin-bottom"))+parseFloat(z.css("margin-top"));I=Math.round(I/X*va)||0;X=ra.find("a").removeClass(oa).eq(I).addClass(oa);I=na[0];t=X[0].offsetLeft-t/2;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&&(g=setTimeout(function(){var z=B();z&&(k(!0),D(z))},t))}if(void 0===aa){var g,C=this,E=h(C),T=E.is("[data-snapper-nextprev]"),R=h(".snapper_pane",C),
y=R.find(".snapper_items"),ea=y.children();ea.addClass("snapper_item");var va=ea.length,ra=h(".snapper_nav",C),oa="snapper_nav_item-selected",da="false"!==E.attr("data-snapper-deeplinking");if("string"!=typeof H){var na=ra.find(".snapper_nav_inner");if(na.length||(na=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"),T){T=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));T.appendTo(L)}h("a",this).bind("click",function(t){clearTimeout(g);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),da&&"replaceState"in l.history&&l.history.replaceState({},document.title,z)))});h(this).bind("keydown",function(t){37!==
t.keyCode&&38!==t.keyCode||(clearTimeout(g),t.preventDefault(),t.stopImmediatePropagation(),k(!1));39!==t.keyCode&&40!==t.keyCode||(clearTimeout(g),t.preventDefault(),t.stopImmediatePropagation(),k(!0))});var N,b,r=!1;if(h(l).bind("resize",p),ra.length){var G;K();R.bind("scroll",K)}var P,Z=0;R.bind("scroll",function(t){Z=(new Date).getTime();P=!0});setInterval(function(){P&&Z<=(new Date).getTime()-150&&(e(),K&&K(!0),P=!1)},150);var d=!1;R.bind("touchstart",function(){clearTimeout(g);d=!0});R.bind("touchend",
function(){d=!1;r&&!P&&(e(),P=!1)});D(B())}else{var M=Array.prototype.slice.call(x,1);L=y.width()/va;switch(H){case "goto":T=M[0]%va;offset=L*T;F(R[0],offset,!1,function(){e();"function"==typeof M[1]&&M[1]()});break;case "getIndex":aa=Math.floor((R[0].scrollLeft+1)/L);break;case "updateWidths":w()}}}}),void 0!==aa?aa:W}})(this,jQuery);
(function(l){var h=function(){var H=l.jQuery;H.fn.enlarge=function(u){var n=arguments,v=H(this).data("options")||{button:!0,hoverZoomWithoutClick:!0,delay:300,flyout:{width:200,height:200},placement:"inline",magnification:3};"string"!=typeof u&&(v=H.extend(v,u),H(this).data("options",v));var F,W=this.each(function(){function aa(){"inline"===v.placement?(ea=y,G=r,g.data("zoomParent",G),b=N):(ea=X.find("img")[0],G=b=X,g.data("zoomParent",G))}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 U(){v.disabled?g.addClass("enlarge_disabled"):g.removeClass("enlarge_disabled")}function B(){P=!g.data("zoomed");g.data("zoomed",P)}function w(V){if(V=
V||function(){},P){if(v.disabled)return V(),!1;var O=new Image;O.className="enlarge_img-loading";O.onload=function(){ea.sizes=O.sizes;T&&ra||(ea.src=da);H(O).remove();V()};O.sizes=r[0].offsetWidth*v.magnification+"px";T&&ra?ra&&(O.srcset=ra):O.src=da;H(O).insertBefore(ea)}else ea.sizes=oa,T||(ea.src=va),V()}function e(){if(g.data("lockedZoom"))r.add(G).removeClass(Z),g.data("lockedZoom",lockedZoom=!1),b.removeAttr("tabindex");else{if(v.disabled)return!1;r.add(G).addClass(Z);g.data("lockedZoom",lockedZoom=
!0);b.attr("tabindex","0");b[0].focus()}}function p(){if(g.data("zoomed")){if(v.disabled)return!1;"inline"===v.placement&&N.add(r).css({width:r[0].offsetWidth+"px",height:parseFloat(getComputedStyle(r[0]).height)+"px"});G.addClass(na);H(ea).css("width",r[0].offsetWidth*v.magnification+"px");H(C).trigger("enlarge.after-zoom-in")}else G.removeClass(na),"inline"===v.placement&&N.add(r).css({width:"",height:""}),H(ea).css("width",""),H(C).trigger("enlarge.after-zoom-out")}function k(){function V(){v.placement=
O;aa();H(C).unbind("enlarge.after-zoom-out",V)}var O=v.placement;"inline"!==O&&(H(C).bind("enlarge.after-zoom-out",V),v.placement="inline",aa())}function A(){if(v.disabled&&!g.data("zoomed"))return!1;B();w(function(){e();p();var V=b.width(),O=b.height(),S=ea.offsetHeight;b[0].scrollLeft=ea.offsetWidth/2-V/2;b[0].scrollTop=S/2-O/2})}function ca(V){"touchstart"===V.type&&(z=!0);z&&"mouseenter"===V.type||"mouseenter"===V.type&&!z&&!I||g.data("lockedZoom")||t||(t=!0,N.addClass(L),M=setTimeout(function(){N.removeClass(L);
B();w(function(){p();d=!0;D(V)})},v.delay))}function K(V){N.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 O=V.touches?V.touches[0]:V;V.preventDefault();var S=O.clientX-V.target.getBoundingClientRect().left,Q=O.clientY-V.target.getBoundingClientRect().top;if(v.placement.match(/loupe/)){var fa=(V.touches?-v.flyout.width/1.3:-v.flyout.width/2)+"px",la=(V.touches?-v.flyout.height/1.3:-v.flyout.height/
2)+"px";requestAnimationFrame(function(){X.css({top:Q+"px",left:S+"px","margin-left":fa,"margin-top":la})})}O=V.target.offsetHeight;var ma=ea.offsetHeight,ta=b[0].offsetHeight;b[0].scrollLeft=S/V.target.offsetWidth*(ea.offsetWidth-b[0].offsetWidth);b[0].scrollTop=Q/O*(ma-ta)}}var g=H(this),C=this,E=l.document.createElement("img"),T="srcset"in E&&"sizes"in E,R=H(this).find("a");if(!R.length)throw Error("enlarge: requires an anchor element with `href` for the enlarged image source");var y=g.find("img")[0],
ea=y,va=ea.src,ra=H(ea).attr("srcset"),oa=H(ea).attr("sizes"),da=R[0].href,na=(R[0].innerText,"enlarge-zoomed"),L="enlarge-delay",N=H(ea).closest(".enlarge_contain"),b=N,r=H(ea).closest(".enlarge_pane")||g,G=H(this).data("zoomParent")||r;H(this).data("zoomParent",G);var P=g.data("zoomed")||!1;g.data("zoomed",P);g.data("lockedZoom",g.data("lockedZoom")||!1);var Z="enlarge-locked";if(!N.length)throw Error("enlarge: requires an element above the image marked with the class `enlarge_contain`");if("string"!=
typeof u){U();g.data("updateOptions",function(V){v=H.extend(v,V);H(this).data("options",v);aa();x();I=v.hoverZoomWithoutClick;v.image&&v.image.sizes&&(oa=v.image.sizes,w());U();v.disabled&&g.data("zoomed")&&A()});var d,M,t,z,I=v.hoverZoomWithoutClick,X=H('\x3cdiv class\x3d"enlarge_flyout"\x3e\x3c/div\x3e').append(N.clone());X.insertAfter(r);N.append('\x3ci class\x3d"enlarge_loader"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e');aa();x();R.bind("keydown",function(V){13!==V.keyCode&&32!==V.keyCode||k();32===V.keyCode&&
(V.preventDefault(),H(this).trigger("click"))}).bind("click",function(V){V.preventDefault();A()});H(l).bind("resize",function(V){g.data("lockedZoom")&&A()});H(l.document).bind("mouseup",function(V){g.data("lockedZoom")&&!H(V.target).closest(r).length&&A()});H(y).bind("mouseenter touchstart",ca).bind("mousemove touchmove",D).bind("mouseleave touchend",function(V){t=!1;P&&!g.data("lockedZoom")&&(B(),w(function(){p()}));K(V)}).bind("click",function(V){V.preventDefault();z&&"inline"===v.placement&&A();
!1!==v.hoverZoomWithoutClick||z||(I=!I,I?H(this).trigger("mouseenter"):H(this).trigger("mouseleave"))});H(this).bind("keydown keyup",function(V){37===V.keyCode||38===V.keyCode||39===V.keyCode||40===V.keyCode?(V.stopImmediatePropagation(),g.data("lockedZoom")||V.preventDefault()):"keyup"===V.type&&H(this).data("lockedZoom")&&27===V.keyCode&&(A(),R[0].focus(),V.stopImmediatePropagation())});r.bind("scroll",function(){g.data("zoomed")&&(B(),w(function(){g.data("lockedZoom")&&e();p()}))})}else switch(E=
Array.prototype.slice.call(n,1),u){case "in":g.data("zoomed")||A();break;case "out":g.data("zoomed")&&A();break;case "isZoomed":F=g.data("zoomed");break;case "updateOptions":g.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 H=Akamai.Util.component("Spin360",function(u,n){this._comp=new Akamai.Tau(u,this._options)});Akamai.Sourceable.extendStatic(H);H._componentEventMapping={"tau.auto-rotate-start":"play","tau.auto-rotate-stop":"pause"};H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,"Spin360")};H._renderImg=function(u,n){return'\n\t\t\t\x3cimg src\x3d"'+
H._fallbackSrc(u,n.images)+'"\n\t\t\t\tsrcset\x3d"'+H._srcset(u,n.images)+'"\n\t\t\t\tsizes\x3d"'+n.images.sizes+'" /\x3e\n\t\t'};H.render=function(u,n){var v=Akamai.Util.options(H.defaultOptions,n);return Akamai.Util.trim('\n\t\t\t\x3cdiv class\x3d"tau" data-akamai-spin360 title\x3d"'+u.alt+'"\x3e\n\t\t\t\t'+Akamai.Util.map(u.urls,function(F){return H._renderImg(F,v)}).join("\n")+"\n\t\t\t\x3c/div\x3e\n\t\t")};H.defaultOptions={autoplay:{enabled:!1,delay:1E3},controls:{arrows:!1,play:!1,text:{left:"Rotate Left",
right:"Rotate Right",play:"Spin Object"}},frames:72,images:Akamai.Image.defaultConfig,interval:3E3,reverse:!1,sensitivity:1,template:void 0};H.prototype.goto=function(u,n){this._comp.goto(u);this._trigger("goto");n&&n()};H.prototype.getIndex=function(){return this._comp.index};Akamai.Advanceable.extend(H);H.prototype.next;H.prototype.previous;H.prototype.play=function(){this._comp.autoRotate()};H.prototype.pause=function(){this._comp.stopAutoRotate()};H.prototype.getElement=function(){return this._$el[0]};
H.States={Playing:0,Paused:1};H.prototype.getState=function(){return this._comp.autoInterval?H.States.Playing:H.States.Paused};l.Akamai=l.Akamai||{};l.Akamai.Spin360=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(){function l(H,u){throw Error("Not allowed to instantiate MagnifierImpl");}l.prototype.updateOptions=function(H){throw Error("magnifier updateOptions not implemented");};l.prototype.zoomIn=function(){throw Error("magnifier zoomIn not implemented");};l.prototype.zoomOut=function(){throw Error("magnifier zoomOut not implemented");};l.prototype.isMagnified=function(){throw Error("magnifier isMagnified not implemented");};l.prototype.toggleZoom=function(){throw Error("magnifier toggleZoom not implemented");
};l.prototype.render=function(H,u,n,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(H,u){this._$el=$(H);this._$el.enlarge(u)}l.prototype=Object.create(Akamai.MagnifierImpl.prototype);l.prototype.constructor=l;l.prototype.updateOptions=function(H){this._$el.enlarge("updateOptions",H)};l.prototype.zoomIn=function(){this._$el.enlarge("in")};l.prototype.zoomOut=function(){this._$el.enlarge("out")};l.prototype.isMagnified=function(){return this._$el.enlarge("isZoomed")};l.prototype.toggleZoom=function(){this.isMagnified()?this.zoomOut():this.zoomIn()};l.render=
function(H,u,n,v,F){return"\n\t\t\t\x3cdiv "+u+'\x3e\n\t\t\t\t\x3cdiv class\x3d"enlarge_contain"\x3e\n\t\t\t\t\t\x3cimg src\x3d"'+n+'"\n\t\t\t\t\t\tsrcset\x3d"'+F+'"\n\t\t\t\t\t\tsizes\x3d"'+H.image.sizes+'"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3ca href\x3d"'+v+'"\n\t\t\t\t\tclass\x3d"enlarge_btn"\n\t\t\t\t\ttitle\x3d"'+H.buttonText+'"\x3e\n\t\t\t\t\t'+H.buttonText+"\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};var h="undefined"==typeof exports?window:exports;h.Akamai=h.Akamai||{};h.Akamai.MagnifierImplEnlarge=
l})();
(function(){function l(u,n){this.element=u;this.handler=n;this.reset()}function h(u,n){this._$el=$(u);this._options=n;this._container=this._$el.get(0);this._content=this._$el.children().get(0);this._imgCast=$(this._content).find("div").get(0);this._zoomInBtn=this._$el.find("a.scroller-zoom-in").get(0);this._zoomOutBtn=this._$el.find("a.scroller-zoom-out").get(0);this._magnification=1;var v=this;this.scroller=new Scroller(this._renderer(),{zooming:n.enabled,minZoom:1,maxZoom:n.magnification,animationDuration:n.animationDuration});
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,n){this.down={x:-1/0,y:-1/0,timestamp:new Date(0)};this.isMoved=this.isDown=!1;this.up={x:1/0,y:1/0,timestamp:new Date}};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,n,v,F,W){return"\n\t\t\t\x3cdiv "+n+'\x3e\n\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\x3cimg src\x3d"'+v+'"\n\t\t\t\t\tsrcset\x3d"'+W+'"\n\t\t\t\t\tsizes\x3d"'+u.image.sizes+'"\x3e\n\t\t\t\t\t\x3cdiv\x3e\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3ca href\x3d"'+F+'"\n\t\t\t\t\tclass\x3d"scroller-zoom-in"\n\t\t\t\t\ttitle\x3d"'+u.zoomInBtnText+'"\x3e\n\t\t\t\t\t'+u.zoomInBtnText+
'\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,n){var v=this;u=Number(u);void 0===n&&(n=this._options.animateZoom);1===u||1===this._magnification&&1>u||this._magnification===this._options.magnification&&1<u||(this.scroller.zoomTo(this._magnification*u,this._options.animateZoom),setTimeout(function(){v._onZoom()},
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,n=document.documentElement.style,v=this;window.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?u="presto":"MozAppearance"in
n?u="gecko":"WebkitAppearance"in n?u="webkit":"string"==typeof navigator.cpuClass&&(u="trident");u={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[u];n=document.createElement("div");var F=u+"Transform";return void 0!==n.style[u+"Perspective"]?function(W,aa,x){v._content.style[F]="translate3d("+-W+"px,"+-aa+"px,0) scale("+x+")"}:void 0!==n.style[F]?function(W,aa,x){v._content.style[F]="translate("+-W+"px,"+-aa+"px) scale("+x+")"}:function(W,aa,x){v._content.style.marginLeft=W?-W/x+"px":"";v._content.style.marginTop=
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,n=new l(this._imgCast,function(){u.cyclicZoom()});window.addEventListener("resize",function(v){u._onResize(v)},!1);this._zoomInBtn.addEventListener("click",function(v){v.preventDefault();u.zoomIn()},!1);this._zoomOutBtn.addEventListener("click",
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++)n.onDown(v.touches[F]);v.preventDefault()}},!1),document.addEventListener("touchmove",
function(v){u.scroller.doTouchMove(v.touches,v.timeStamp,v.scale);n.onMove()},!1),document.addEventListener("touchend",function(v){u.scroller.doTouchEnd(v.timeStamp);u._onZoom();for(var F=0;F<v.changedTouches.length;F++)n.onUp(v.changedTouches[F])},!1),document.addEventListener("touchcancel",function(v){u.scroller.doTouchEnd(v.timeStamp);u._onZoom();for(var F=0;F<v.changedTouches.length;F++)n.onUp(v.changedTouches[F])},!1)):(u._container.addEventListener("mousedown",function(v){v.target.tagName.match(/input|textarea|select/i)||
(u.scroller.doTouchStart([{pageX:v.pageX,pageY:v.pageY}],v.timeStamp),n.onDown(v))},!1),document.addEventListener("mousemove",function(v){n.isDown&&(u.scroller.doTouchMove([{pageX:v.pageX,pageY:v.pageY}],v.timeStamp),n.onMove())},!1),document.addEventListener("mouseup",function(v){n.isDown&&(u.scroller.doTouchEnd(v.timeStamp),n.onUp(v))},!1))};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 H="undefined"==typeof exports?window:exports;H.Akamai=H.Akamai||{};H.Akamai.MagnifierImplScroller=h})();
(function(l,h){var H=Akamai.Util.component("Magnifier",function(u,n){this._options.disabled=!this._options.enabled;this._options.mode===H.MODE_ANIMATED_ZOOM?this._impl=new Akamai.MagnifierImplScroller(u,n):this._impl=new Akamai.MagnifierImplEnlarge(u,n)});H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);this._options.disabled=!this._options.enabled;Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,
"Magnifier");this._impl.updateOptions(this._options)};H._componentEventMapping={"enlarge.after-zoom-in":"in","enlarge.after-zoom-out":"out","scroller.after-zoom-in":"in","scroller.after-zoom-out":"out"};H.MODE_HOVER_ZOOM="hoverzoom";H.MODE_ANIMATED_ZOOM="animatedzoom";H.defaultOptions={mode:H.MODE_HOVER_ZOOM,button:!0,enabled:!0,magnification:3,image:Akamai.Image.defaultConfig,delay:300,buttonText:"Toggle Image Magnification",flyout:{width:200,height:200},hoverZoomWithoutClick:!0,placement:"inline",
incrementalZoomFactor:3,animateZoom:!0,animationDuration:250,zoomInBtnText:"Zoom In",zoomOutBtnText:"Zoom Out"};Akamai.Sourceable.extendStatic(H);H.render=function(u,n){n=Akamai.Util.options(H.defaultOptions,n);var v=H._dataAttr,F=H._fallbackSrc(u.url,n.image),W=H._largestSrc(u.url,n.image);u=H._srcset(u.url,n.image);return(n.mode===H.MODE_ANIMATED_ZOOM?Akamai.MagnifierImplScroller:Akamai.MagnifierImplEnlarge).render(n,v,F,W,u,n.image.sizes)};H.prototype.in=function(){this._impl.zoomIn()};H.prototype.out=
function(){this._impl.zoomOut()};H.prototype.isMagnified=function(){return this._impl.isMagnified()};H.prototype.toggle=function(){this._impl.toggleZoom()};l.Akamai=l.Akamai||{};l.Akamai.Magnifier=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){h=Akamai.Util.component("VideoImpl",function(H,u){throw Error("Not allowed to instantiate VideoImpl");});h.render=function(H,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(H,u){});h.prototype=Object.create(Akamai.VideoImpl.prototype);h.prototype.constructor=h;h.render=function(H,u){u=Akamai.Util.options(Akamai.Video.defaultOptions,u);var n=H.url,v=H.poster||"";H=H.mime?'type\x3d"'+H.mime+'"':"";return Akamai.Util.trim("\n\t\t\t\x3cdiv "+Akamai.Video._dataAttr+"\x3e\n\t\t\t\t\x3cvideo "+[u.loop?"loop":"",u.autoplay?"autoplay":"",u.controls?"controls":"",u.muted?"muted":"","playsinline"].join(" ")+' poster\x3d"'+
v+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+'" '+H+" /\x3e\n\t\t\t\t\x3c/video\x3e\n\t\t\t\x3c/div\x3e\n\t\t")};l.Akamai=l.Akamai||{};l.Akamai.VideoImplPristine=h})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var H=Akamai.Util.component("VideoImplIm",function(u,n){u=Akamai.Util.options(Akamai.Video.defaultOptions,n);H._validateOptions(u)});H.prototype=Object.create(Akamai.VideoImpl.prototype);H.prototype.constructor=H;H._validateOptions=function(u){if(!Array.isArray(u.sizes)||3!==u.sizes.length)throw Error("Akamai.Video sizes must have three entries");if(u.sizes.some(function(n){return isNaN(n)}))throw Error("Akamai.VideoImplIm all sizes must be numbers");};H.render=function(u,n){var v=
Akamai.Util.options(Akamai.Video.defaultOptions,n);H._validateOptions(v);n=u.url;u=u.poster||"";var F=window.innerWidth;F=992>F?v.sizes[0]:1200>F?v.sizes[1]:v.sizes[2];v=[v.loop?"loop":"",v.autoplay?"autoplay":"",v.controls?"controls":"",v.muted?"muted":"","playsinline"];var W=-1===n.indexOf("?")?"?":"\x26";return Akamai.Util.trim("\n\t\t\t\x3cdiv "+Akamai.Video._dataAttr+"\x3e\n\t\t\t\t\x3cvideo "+v.join(" ")+' poster\x3d"'+u+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+W+"imformat\x3dvp9\x26imwidth\x3d"+
F+'" type\x3d"video/webm" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+W+"imformat\x3dh265\x26imwidth\x3d"+F+'" type\x3d"video/mp4; codecs\x3dhevc" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+n+W+"imformat\x3dh264\x26imwidth\x3d"+F+'" type\x3d"video/mp4" /\x3e\n\t\t\t\t\x3c/video\x3e\n\t\t\t\x3c/div\x3e\n\t\t')};l.Akamai=l.Akamai||{};l.Akamai.VideoImplIm=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var H=Akamai.Util.component("Video",function(u,n){if(this._comp=this._$el.length&&void 0,this._$videoElement=this._$el.find("video"),this._videoElement=this._$videoElement[0],!this._videoElement)throw Error("Akamai.Video requires a child HTML Video element");if(!this._videoElement.play||!this._videoElement.pause)return this._unsupportedAPI=!0,void this._unsupported();this._setState(this._videoElement.paused?H.States.Paused:H.States.Playing);this._$el.bind("akamai-video-play",function(){this._setState(H.States.Playing)}.bind(this)).bind("akamai-video-pause",
function(){this._setState(H.States.Paused)}.bind(this));this._createPlayButton()});H.MODE_IM="im";H.MODE_PRISTINE="pristine";H._componentEventMapping={play:{to:"play",selector:"video"},pause:{to:"pause",selector:"video"},seeked:{to:"seek",selector:"video"}};H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,"Video")};H.defaultOptions={autoplay:!1,
controls:!0,loop:!1,muted:!0,mode:H.MODE_PRISTINE,sizes:[854,1280,1920]};H.render=function(u,n){return(n&&n.mode===H.MODE_IM?Akamai.VideoImplIm:Akamai.VideoImplPristine).render(u,n)};H.States={Playing:0,Paused:1};H.prototype._unsupported=function(){return this._unsupportedAPI&&Akamai.Util.log("Video: video API not supported","error"),this._unsupportedAPI};H.prototype.play=function(){this._unsupported()||this._videoElement.play()};H.prototype.pause=function(){this._unsupported()||this._videoElement.pause()};
H.prototype.getState=function(){return this._state};H.prototype._setState=function(u){this._state=u};H.prototype.seek=function(u){if(0>u||100<u)throw Error("seek takes a an integer between 0 and 100");this._videoElement.currentTime=u/100*(this._videoElement.duration||1)};H.prototype.setLoop=function(u){this._videoElement.loop=u};H.prototype.getElement=function(){return this._$el[0]};H.prototype._createPlayButton=function(){var u,n=this._$el[0],v=this._videoElement;this._options.autoplay||(n.insertAdjacentHTML("beforeend",
'\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=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var H=Akamai.Util.component("Carousel",function(u,n){this._spins=Akamai.Spin360.createMany(this._$el[0],this._options.spin360);this._magnifiers=Akamai.Magnifier.createMany(this._$el[0],this._options.magnifier);this._videos=Akamai.Video.createMany(this._$el[0],this._options.video);this._$el.snapper(this._options);this._setAspectRatio();this._bindAspectAttributes();this._options.slideshow.autostart&&setTimeout(function(){this.startSlideshow()}.bind(this),this._options.slideshow.interval);
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))});H._stopSlideshowEvents=["akamai-magnifier-in","akamai-magnifier-out","akamai-spin360-goto","akamai-video-play","akamai-video-seek"];H.prototype._handleAutoplayables=function(){var u=function(n){return!!h(n.getElement()).closest("["+this.constructor.activeItemAttr+"]").length}.bind(this);this._videos.concat(this._spins).forEach(function(n){u(n)&&n._carouselWasPlaying?n.play():n.getState()==n.constructor.States.Playing?(n._carouselWasPlaying=!0,n.pause()):n._carouselWasPlaying=
!1}.bind(this))};H.counter=0;H.prototype._updateOptions=function(u){u||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,u);var n=function(v,F){v._updateOptions(this._options[F])}.bind(this);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,this._options,"Carousel");this._$el.snapper("updateOptions",u);this._spins.forEach(function(v){n(v,"spin360")});this._magnifiers.forEach(function(v){n(v,"magnifier")});this._videos.forEach(function(v){n(v,"video")});
this._setAspectRatio()};H._componentEventMapping={"snapper.after-snap":"goto","snapper.snap":"snap","snapper.after-next":"next","snapper.after-prev":"previous"};H.defaultOptions={arrows:!0,aspectratio:!1,slideshow:{interval:4E3,autostart:!1},thumbnail:{placement:"bottom",type:"images",policy:void 0,sizes:"300px"},images:Akamai.Image.defaultConfig};H.renderMapping={image:Akamai.Magnifier,spin360:Akamai.Spin360,video:Akamai.Video};H._typeMapping={image:"magnifier"};H._uniqueItemId=function(u,n){return"akamai-carousel-"+
H.counter+"-"+u.type+"-"+n};Akamai.Sourceable.extendStatic(H);H._renderItem=function(u,n,v){var F=H._typeMapping[u.type]||u.type;if(!H.renderMapping[u.type])throw Error("\n\t\t\t\titem type "+u.type+" at index "+n+" must be 'image', 'spin360', or 'video'\n\t\t\t");return'\n\t\t\t\x3cdiv class\x3d"snapper_item" id\x3d"'+H._uniqueItemId(u,n)+'"\x3e\n\t\t\t\t'+H.renderMapping[u.type].render(u,v[F])+"\n\t\t\t\x3c/div\x3e\n\t\t"};H._renderThumbnailAnchor=function(u,n,v,F){var W="",aa=u.alt||"";W="video"===
u.type?u.poster||n.reduce(function(U,B){return U||H._thumbUrl(B)},""):H._thumbUrl(u);F.images.policy=F.thumbnail.policy;n=H._fallbackSrc(W,F.images);W=H._srcset(W,F.images);var x=F.images.sizes;F.thumbnail.policy&&(x=F.thumbnail.sizes);F=[H._dataAttr+'-thumb-type\x3d"'+u.type+'"',"video"!=u.type||u.poster?"":"${Carousel._dataAttr}-thumb-noposter"];return'\n\t\t\t\x3ca href\x3d"#'+H._uniqueItemId(u,v)+'" '+F.join(" ")+'\x3e\n\t\t\t\t\x3cimg src\x3d"'+n+'" srcset\x3d"'+W+'" sizes\x3d"'+x+'" alt\x3d"'+
aa+'" title\x3d"Scroll to '+u.type+" "+v+'" /\x3e\n\t\t\t\x3c/a\x3e\n\t\t'};H._thumbUrl=function(u){return"video"===u.type?u.poster:u.url||u.urls&&u.urls[0]};H._renderThumbnails=function(u,n){return 1>=u.length?"":'\n\t\t\t\x3cdiv class\x3d"snapper_nav"\x3e\n\t\t\t\t\x3cdiv class\x3d"snapper_nav_inner"\x3e\n\t\t\t\t\t'+Akamai.Util.map(u,function(v,F){return H._renderThumbnailAnchor(v,u,F,n)}).join("\n")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};H.prototype._setAspectAttributes=function(u){var n=
H._dataAttr+"-aspectratio-orientation";u.height()>u.width()?u.attr(n,"portrait"):u.height()<u.width()?u.attr(n,"landscape"):u.parent().height()>=u.parent().width()?u.attr(n,"landscape"):u.attr(n,"portrait")};H.prototype._setAspectRatio=function(){var u=this._options.aspectratio||0,n=this._$el.find(".snapper_item");n.css("padding-top",u/n.length+"%")};H.prototype._bindAspectAttributes=function(){if(!1!==this._options.aspectratio){var u=(this._options.aspectratio,this),n=this._$el.find(".snapper_item");
n.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)});n.eq(0).find("img,video").eq(0).bind("load loadedmetadata",function(){u._trigger("first-media-load")})}};H.render=function(u,n){n=n||{};var v=Akamai.Util.options(H.defaultOptions,n);n=[""+H._dataAttr,H._dataAttr+'-item-count\x3d"'+
(u||[]).length+'"','data-snapper-deeplinking\x3d"false"',v.arrows?"data-snapper-nextprev":""];return H.counter++,Akamai.Util.trim("\n\t\t\t\x3cdiv "+n.join(" ")+' class\x3d"snapper"\x3e\n\t\t\t\t\x3cdiv class\x3d"snapper_nextprev_contain"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"snapper_pane_crop"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"snapper_pane enlarge_pane"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"snapper_items"\x3e\n\t\t\t\t\t\t\t\t'+Akamai.Util.map(u,function(F,W){return H._renderItem(F,W,v)}).join("\n")+
"\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\n\t\t\t\t"+H._renderThumbnails(u,v)+"\n\t\t\t\x3c/div\x3e\n\t\t")};H.prototype.getSpin360s=function(){return this._spins};H.prototype.getMagnifiers=function(){return this._magnifiers};H.prototype.getVideos=function(){return this._videos};H.prototype.goto=function(u,n){this._$el.snapper("goto",u,n)};H._itemAttr=H._dataAttr+"-item";H._activeItemAttr=H._itemAttr+"-active";H.prototype._activeItemAttributes=
function(){var u=this.constructor._itemAttr,n=this.constructor._activeItemAttr;this._$el.find(".snapper_item").attr(u,!0).removeAttr(n).eq(this.getIndex()).attr(n,!0)};H.prototype.getIndex=function(){return this._$el.snapper("getIndex")};Akamai.Advanceable.extend(H);H.prototype.next;H.prototype.previous;H.prototype.startSlideshow=function(){this._$el.one("mousedown touchstart",this.stopSlideshow.bind(this));this.next(function(){this._trigger("start-slideshow");this._slideshowTimer=setTimeout(function(){this.startSlideshow()}.bind(this),
this._options.slideshow.interval)}.bind(this))};H.prototype.stopSlideshow=function(){clearTimeout(this._slideshowTimer);this._slideshowTimer=void 0;this._trigger("stop-slideshow")};H.prototype.refresh=function(){this._$el.snapper("updateWidths")};l.Akamai=l.Akamai||{};l.Akamai.Carousel=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var H=Akamai.Util.component("Fullscreen",function(u,n){this._options.enabled&&this._init()});H.prototype._init=function(){this._$fullscreen=this._$el;this.addButton();this._fullscreenApiKeys=H._keys();this._options.native?this._useNativeApi=!!this._fullscreenApiKeys:this._useNativeApi=!1;this._fullscreenFallbackEnabled=!1;this._$placeholder=h("\x3cdiv\x3e");this._isFullscreen=!1;this.addEvents()};H.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"};H.attr={width:"data-akamai-fullscreen-width",enterBtn:"data-akamai-fullscreen-btn",exitBtn:"data-akamai-fullscreen-exit-btn"};H.defaultOptions={enabled:!1,native:!1};H.prototype.addButton=function(){this._$widthAdjust=this._$fullscreen.children().filter(".focused");this._$widthAdjust.length||(this._$widthAdjust=this._$fullscreen.children().eq(0));null===this._$widthAdjust.attr(H.attr.width)&&
this._$widthAdjust.attr(H.attr.width,"");this._$widthAdjust.find("["+H.attr.enterBtn+"]").length||(this._$buttonContainer=this._$widthAdjust,this._$buttonContainer.addClass(H.classes.btnContainer),this._$buttonContainer.append(this.render()))};H.prototype.addEvents=function(){this._$fullscreen.on("click",function(u){h(u.target).is("["+H.attr.enterBtn+"]")&&(this.enter(),u.preventDefault())}.bind(this));this._$fullscreen.on("click",function(u){h(u.target).is("["+H.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))};H.prototype.render=function(){return Akamai.Util.trim("\n\t\t\t\x3cbutton "+H.attr.enterBtn+' class\x3d"'+H.classes.btn+" "+H.classes.enterBtn+' icon-fullscreen"\x3eFull Screen\x3c/button\x3e\n\t\t\t\x3cbutton '+H.attr.exitBtn+' class\x3d"'+H.classes.btn+
" "+H.classes.exitBtn+' icon-close-light"\x3eExit Full Screen\x3c/button\x3e\n\t\t')};H._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"}];H._keys=function(u){var n=H._keyLookup;u=document.body;for(var v=0,F=n.length;v<F;v++)if(n[v].enter in u)return n[v]};H.prototype._maximizePlacement=function(){this._fullscreenFallbackEnabled=!0;this._$fullscreen.addClass(H.classes.fallback);this._$placeholder.insertAfter(this._$fullscreen);this._$fullscreen.appendTo(document.body)};
H.prototype._restorePlacement=function(){this._fullscreenFallbackEnabled&&(this._fullscreenFallbackEnabled=!1,this._$fullscreen.removeClass(H.classes.fallback),this._$fullscreen.insertAfter(this._$placeholder),this._$placeholder.remove())};H.prototype._adjustWidth=function(){this._$fullscreen.css("width","auto !important");var u=this._$fullscreen.width(),n=this._$fullscreen.height();u=u*(this._useNativeApi?window.screen.height:Math.max(document.documentElement.clientHeight,window.innerHeight||0))/
n;u>(this._useNativeApi?window.screen.width:Math.max(document.documentElement.clientWidth,window.innerWidth||0))&&(u="100%");this._$widthAdjust.width(u)};H.prototype._revertWidth=function(){this._$widthAdjust.css("width","")};H.prototype.enter=function(){this._$fullscreen.addClass(H.classes.active);this._useNativeApi?(this._$fullscreen[0][this._fullscreenApiKeys.enter](),this._adjustWidth()):(this._adjustWidth(),this._maximizePlacement());this._isFullscreen=!0;this._trigger("enter")};H.prototype._exit=
function(){this._$fullscreen.removeClass(H.classes.active);this._useNativeApi||this._restorePlacement();this._revertWidth();this._isFullscreen=!1;this._trigger("exit")};H.prototype.exit=function(){this._useNativeApi&&document[this._fullscreenApiKeys.exit]();this._exit()};H.prototype.isFullscreen=function(){return this._isFullscreen};l.Akamai=l.Akamai||{};l.Akamai.Fullscreen=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){var H=Akamai.Util.component("Viewer",!0,function(u,n){this._updateSizesOptions(!0);this._onResizeComplete(this._updateSizesOptions.bind(this));this._options.carousel=H._extendCarouselOptions(this._options);this._withData(function(v){v&&(this._checkJSONUrls(v),v=Akamai.Util.escapeJSONVals(v),this._options.items.data=v);this._tagMapping={};0==this._$el.children().length&&v&&(this._tagMapping=this.constructor._tagSplit(v,this._options.items),this._$el.append(this.constructor.render(v,
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);})});H.prototype._updateSizesOptions=function(u){var n=this._$el.width();n&&0<n&&(n+="px",this._options=Akamai.Util.extend(!0,
this._options,{carousel:{images:{sizes:n}}}));u||this._updateOptions(this._options)};H.prototype._withData=function(u,n){this._options.items.uri?void 0!==this._options.items.uri&&0<this._options.items.uri.length&&h.get(this._options.items.uri,function(v){v="string"==typeof v?JSON.parse(v):v;this._exceedsLimit(v.items,n)||u(v.items)}.bind(this)):this._exceedsLimit(this._options.items.data,n)||u(this._options.items.data)};H.prototype._exceedsLimit=function(u,n){return!!u&&4*JSON.stringify(u).length/
1024>this._options.items.limit&&(n=n||function(){},n("JSON data size exceeds "+this._options.items.limit+" KiB. Limit can be configured with items.limit Akamai.Viewer options."),!0)};H.prototype._setBreakpoints=function(){this._breakpoints=this._reduceBreakpoints(this._options.breakpoints||{});this._fullscreenBreakpoints=this._reduceBreakpoints(this._options.fullscreenBreakpoints||{});this._bindBreakpoints()};H.prototype._reduceBreakpoints=function(u){var n=[],v;for(v in u)if(u.hasOwnProperty(v))try{n.push(parseInt(v,
10))}catch(F){Akamai.Util.log(F,"error")}return n.sort(function(F,W){return W<F}),n};H.prototype._bindBreakpoints=function(){[this._breakpoints,this._fullscreenBreakpoints].forEach(function(u){if(u.length)for(var n=-1;n<u.length;n++)this._bindMatchMedia(u[n],u[n+1])}.bind(this))};H.prototype._onResizeComplete=function(u){var n;window.addEventListener("resize",function(){clearTimeout(n);n=setTimeout(u,500)})};H.prototype._bindMatchMedia=function(u,n){(u=u||0,n=n||1E9,window.matchMedia)&&(n=window.matchMedia("(min-width: "+
u+"px) and (max-width: "+n+"px)"))&&n.addListener&&(this._mediaMatch(n,u,!0),n.addListener(function(v){this._mediaMatch(v,u)}.bind(this)))};H.prototype._mediaMatch=function(u,n,v){u.matches&&(u=this._resolveBreakpointOptions(n),this._updateOptions(u))};H.prototype._getCurrentMinWidth=function(u){for(var n=-1;n<u.length;n++)if(minWidth=u[n]||0,maxWidth=u[n+1]||1E8,window.matchMedia){var v=window.matchMedia("(min-width: "+minWidth+"px) and (max-width: "+maxWidth+"px)");if(v&&v.matches)return minWidth}return!1};
H.prototype._resolveBreakpointOptions=function(u){var n,v;return this._fullscreen.isFullscreen()?(n=this._fullscreenBreakpoints,v=this._options.fullscreenBreakpoints):(n=this._breakpoints,v=this._options.breakpoints),u||(u=this._getCurrentMinWidth(n)),n.length?n.reduce(function(F,W){F=Akamai.Util.extend(!0,{},F);return W<=u&&(F=Akamai.Util.extend(!0,F,v[W])),F},Akamai.Util.extend(!0,{},this._originalOptions)):this._originalOptions};H._extendCarouselOptions=function(u){var n=Akamai.Util.extend(!0,
{},u.carousel||{});return Akamai.Util.extend(!0,n,{magnifier:u.magnifier,spin360:u.spin360,video:u.video,fullscreen:u.fullscreen})};H.prototype._updateOptions=function(u){this._options=Akamai.Util.extend(!0,this._options,u);var n=H._extendCarouselOptions(u);Akamai.Util.setDataAttrOptions(this._$el,H.defaultOptions,u,"Viewer");this._carousels.forEach(function(v){v._updateOptions(n)}.bind(this))};H.prototype._checkJSONUrls=function(u){var n=this._options.items.hostnames;return Akamai.Util.mapJSONVals(u,
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"+(n.length?n.join("\n"):"No hostnames")+"\n");return v}.bind(this))};H.prototype._urlHostnameMatch=function(u){var n=document.createElement("a");return n.href=u,n.hostname===window.location.hostname||0<=this._options.items.hostnames.indexOf(n.hostname)};H.defaultOptions={breakpoints:{},items:{data:void 0,
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};H._tagSplit=function(u,n){u=u.map(function(F){return F.tags=F.tags&&F.tags.length?F.tags:[n.defaultTag],F});n.tags&&(u=n.data.filter(function(F){return F.tags.reduce(function(W,aa){return W||0<=n.tags.indexOf(aa)},
!1)}));var v=u[0].tags[0];u=u.reduce(function(F,W){return(W.tags||[]).forEach(function(aa){F[aa]=F[aa]||[];F[aa].push(W)}),F},{});return u[H._firstRenderTag]=u[v],u};H._firstRenderTag="akamai-first-render";H._tagAttr=H._dataAttr+"-tag";H._renderTag=function(u,n){return Akamai.Util.trim("\n\t\t\t\x3cdiv "+H._tagAttr+'\x3d"'+u[0].tags[0]+'"\x3e\n\t\t\t\t'+Akamai.Carousel.render(u,n)+"\n\t\t\t\x3c/div\x3e\n\t\t")};H.render=function(u,n,v){u=H._tagSplit(u,n.items);var F=H._extendCarouselOptions(n);n=
n.items.renderAll?u.map(function(W,aa){return H._renderTag(aa,F)}).join(" "):H._renderTag(u[H._firstRenderTag],F);u="\n\t\t\t\x3cdiv "+H._dataAttr+"\x3e\n\t\t\t\t"+n+"\n\t\t\t\x3c/div\x3e\n\t\t";return v?n:u};H.prototype.getCarousels=function(){return this._carousels};H.prototype.switchTag=function(u){if(-1==this.getTags().indexOf(u))return void Akamai.Util.log("tag: "+u+" is not present in the data for this viewer","error");var n=this._$el.find("["+this.constructor._tagAttr+'\x3d"'+u+'"]');if(n.length)this._showViewer(n);
else{n=this._resolveBreakpointOptions();var v=H._extendCarouselOptions(n),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 U=Akamai.Carousel.createMany(F[0],v);U.forEach(function(B){B.goto(B.getIndex())});this._carousels=this._carousels.concat(U);this._showViewer(F,U)}}.bind(this));this._$el.append(F)}};H.prototype._showViewer=function(u,n){this._$el.find("["+this.constructor._tagAttr+
"]").css("display","none").removeClass("focused");u.css("display","block").addClass("focused");n&&n.map(function(v){v.refresh()});this._fullscreen.addButton();this._trigger("switch-tag")};H.prototype.getTags=function(){if(this._tags)return this._tags;var u=[],n;for(n in this._tagMapping)this._tagMapping.hasOwnProperty(n)&&n!==H._firstRenderTag&&u.push(n);return this._tags=u};l.Akamai=l.Akamai||{};l.Akamai.Viewer=H})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,h){h.fn.akamaiViewer=function(H){this.each(function(u,n){new Akamai.Viewer(n,H)})}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(){var l=window.sg.common.$q,h=new WeakMap,H=window.sg.common.utils.triggerEvent,u={init:function(n){n.hasAttribute("data-akamai-viewer")||(n=n.querySelector("[data-akamai-viewer]"));if(n){if(!h.has(n)){var v=new Akamai.Viewer(n,{carousel:{arrows:!1},spin360:{reverse:!0},items:{uri:n.getAttribute("data-spin-uri")}});h.set(n,v)}H(window,"resize")}},initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll("[data-akamai-viewer]"))).forEach(function(n){n.hasAttribute("data-init-on-loaded")&&
(u.init(n),n.removeAttribute("data-init-on-loaded"))})}};window.sg.common.image360=u;l.ready(u.initAll)})();"use strict";
function QRCode(l){var h,H,u,n,v=[],F=[],W=Math.max,aa=Math.min,x=Math.abs,U=Math.ceil,B=/^[0-9]*$/,w=/^[A-Z0-9 $%*+.\/:-]*$/,e=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],
[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],p=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,
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(da,na){for(var L=0,N=8;N--;)L=L<<1^285*(L>>>7)^(na>>>N&1)*da;return L},ca=function(da,na){for(var L=[],N=da.length,b=N;b;)for(var r=da[N-b--]^L.shift(),G=na.length;G--;)L[G]^=A(na[G],r);return L},K=function(da){da=[function(){return 0==(na+L)%2},function(){return 0==na%2},function(){return 0==L%3},function(){return 0==(na+L)%3},function(){return 0==((na/2|0)+(L/3|0))%2},function(){return 0==
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}][da];for(var na=n;na--;)for(var L=n;L--;)F[na][L]||(v[na][L]^=da())},D=function(){for(var da=function(V,O){O[6]||(V+=n);O.shift();O.push(V)},na=function(V,O,S){return V&&(da(O,S),O=0),da(O+n,S),L(S)},L=function(V){var O=V[5],S=0<O&&V[4]==O&&V[3]==3*O&&V[2]==O&&V[1]==O;return(S&&V[6]>=4*O&&V[0]>=O?1:0)+(S&&V[0]>=4*O&&V[6]>=O?1:0)},N=0,b=n*n,r=0,G=n;G--;){for(var P=[0,0,0,0,0,0,0],Z=[0,0,0,0,0,0,0],d=!1,
M=!1,t=0,z=0,I=n;I--;){v[G][I]==d?5==++t?N+=3:5<t&&N++:(da(t,P),N+=40*L(P),t=1,d=v[G][I]);v[I][G]==M?5==++z?N+=3:5<z&&N++:(da(z,Z),N+=40*L(Z),z=1,M=v[I][G]);var X=v[G][I];X&&r++;I&&G&&X==v[G][I-1]&&X==v[G-1][I]&&X==v[G-1][I-1]&&(N+=3)}N+=40*na(d,t,P)+40*na(M,z,Z)}return N+=10*(U(x(20*r-10*b)/b)-1)},g=function(da,na,L){for(;na--;)L.push(da>>>na&1)},C=function(da,na){return 0!=(da>>>na&1)},E=function(da){if(1>da||40<da)throw"Version number out of range";var na=(16*da+128)*da+64;if(2<=da){var L=da/7|
2;na-=(25*L-10)*L-55;7<=da&&(na-=36)}return na},T=function(da,na){for(var L=2;-2<=L;L--)for(var N=2;-2<=N;N--)ra(da+N,na+L,1!=W(x(N),x(L)))},R=function(da,na){for(var L=4;-4<=L;L--)for(var N=4;-4<=N;N--){var b=W(x(N),x(L)),r=da+N,G=na+L;0<=r&&r<n&&0<=G&&G<n&&ra(r,G,2!=b&&4!=b)}},y=function(da){var na=H[1]<<3|da,L=na;for(da=10;da--;)L=L<<1^1335*(L>>>9);na=21522^(na<<10|L);if(0!=na>>>15)throw"Assertion error";for(da=0;5>=da;da++)ra(8,da,C(na,da));ra(8,7,C(na,6));ra(8,8,C(na,7));ra(7,8,C(na,8));for(da=
9;15>da;da++)ra(14-da,8,C(na,da));for(da=0;8>da;da++)ra(n-1-da,8,C(na,da));for(da=8;15>da;da++)ra(8,n-15+da,C(na,da));ra(8,n-8,1)},ea=function(){for(var da=n;da--;)ra(6,da,0==da%2),ra(da,6,0==da%2);for(var na=function(){var b=[];if(1<h)for(var r=2+(h/7|0),G=32==h?26:2*U((n-13)/(2*r-2));r--;)b[r]=r*G+6;return b}(),L=da=na.length;L--;)for(var N=da;N--;)0==N&&0==L||0==N&&L==da-1||N==da-1&&0==L||T(na[N],na[L]);R(3,3);R(n-4,3);R(3,n-4);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 G=n-11+r%3,P=r/3|0,Z=C(b,r);ra(G,P,Z);ra(P,G,Z)}}})()},va=function(da,na){return(E(da)/8|0)-e[na[0]][da]*p[na[0]][da]},ra=function(da,na,L){v[na][da]=L?1:0;F[na][da]=1},oa=function(da,na,L,N){if(""==da)da=[];else if(B.test(da)){if(!B.test(da))throw"String contains non-numeric characters";for(var b=[],r=0;r<da.length;){var G=aa(da.length-r,3);g(parseInt(da.substr(r,G),10),3*G+1,b);r+=G}da=[{modeBits:1,numBitsCharCount:[10,12,14],
numChars:da.length,bitData:b}]}else if(w.test(da)){if(!w.test(da))throw"String contains unencodable characters in alphanumeric mode";r=[];for(b=0;b+2<=da.length;b+=2)G=45*"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(da.charAt(b)),G+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(da.charAt(b+1)),g(G,11,r);da=[(b<da.length&&g("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(da.charAt(b)),6,r),{modeBits:2,numBitsCharCount:[9,11,13],numChars:da.length,bitData:r})]}else{b=da;
da=[];for(r=(b=encodeURI(b),0);r<b.length;r++)"%"!=b.charAt(r)?da.push(b.charCodeAt(r)):(da.push(parseInt(b.substr(r+1,2),16)),r+=2);b=[];for(r=0;r<da.length;r++)g(da[r],8,b);da=[{modeBits:4,numBitsCharCount:[8,16,16],numChars:da.length,bitData:b}]}var P=L;L=N;var Z=G=void 0;if(void 0===G&&(G=1),void 0===Z&&(Z=40),void 0===L&&(L=-1),void 0===P&&(P=!0),!(1<=G&&G<=Z&&40>=Z)||-1>L||7<L)throw"Invalid value";b=[];r=236;for(N=[];;){a:{var d=da;for(var M=G,t=0,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*va(G,na))break;if(G>=Z)throw"Data too long";G++}if(P)for(Z=(P=[k.H,k.Q,k.M]).length;Z--;)d<=8*va(G,P[Z])&&(na=P[Z]);for(P=0;P<da.length;P++)for(M=da[P],g(M.modeBits,4,b),g(M.numChars,M.numBitsCharCount[(G+7)/17|0],b),Z=0,M=M.bitData;Z<M.length;Z++)b.push(M[Z]);if(b.length!=d)throw"Assertion error";da=8*va(G,na);if(b.length>da)throw"Assertion error";if(g(0,aa(4,da-b.length),b),g(0,(8-b.length%8)%8,b),0!=b.length%8)throw"Assertion error";
for(;b.length<da;)g(r,8,b),r^=253;for(Z=b.length;Z--;)N[Z>>>3]|=b[Z]<<7-(7&Z);H=na;u=L;for(da=n=4*(h=G)+17;da--;)v[da]=[],F[da]=[];ea();if(N.length!=va(h,H))throw"Invalid argument";r=p[H[0]][h];da=e[H[0]][h];L=E(h)/8|0;na=r-L%r;L=L/r|0;b=[];P=1;G=[];G[da-1]=1;for(Z=0;Z<da;Z++){for(d=0;d<da;d++)G[d]=A(G[d],P)^G[d+1];P=A(P,2)}for(Z=P=0;P<r;P++)d=N.slice(Z,Z+L-da+(P<na?0:1)),Z+=d.length,M=ca(d,G),P<na&&d.push(0),b.push(d.concat(M));N=[];for(P=0;P<b[0].length;P++)for(r=0;r<b.length;r++)(P!=L-da||r>=na)&&
N.push(b[r][P]);da=0;na=1;for(b=L=n-1;0<b;b-=2)for(6==b&&--b,r=0>(na=-na)?L:0,G=0;G<n;++G){for(P=b;P>b-2;--P)F[r][P]||(v[r][P]=C(N[da>>>3],7-(7&da)),++da);r+=na}if(0>u)for(N=1E9,da=8;da--;)K(da),y(da),na=D(),N>na&&(N=na,u=da),K(da);K(u);y(u);F=[]};return function(){function da(X){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(X)}function na(X,V){for(var O in X=document.createElementNS(b,X),V||{})X.setAttribute(O,V[O]);return X}var L,N,b="http://www.w3.org/2000/svg",r="";var G="string"==typeof l?{msg:l}:
l||{};var P=G.pal||["#000"],Z=x(G.dim)||256,d=[1,0,0,1,N=-1<(N=x(G.pad))?N:4,N],M=da(M=P[0])?M:"#000",t=da(t=P[1])?t:0;P=G.vrb?0:1;oa(G.msg||"",k[G.ecl]||k.M,0==G.ecb?0:1,G.mtx);var z=n+2*N;for(G=n;G--;){var I=0;for(N=n;N--;)v[G][N]&&(P?(I++,v[G][N-1]||(r+="M"+N+","+G+"h"+I+"v1h-"+I+"v-1z",I=0)):r+="M"+N+","+G+"h1v1h-1v-1z")}return L=na("svg",{viewBox:[0,0,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,H=window.sg.common.libs,u=h.addEventListener,n=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,U,B,w,e,p,k,A,ca,K={},D=null,g=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(N){return L.handler.handleHdd02TooltipOpen(N)});this.el.hdd02TooltipContainer.off("focus").on("focus",function(N){return L.handler.handleHdd02TooltipOpen(N)});this.el.hdd02TooltipContainer.off("click").on("click",function(N){return L.handler.handleHdd02TooltipOpen(N)})};E.prototype.handleHdd02TooltipOpen=function(L){L=l(L.currentTarget);
var N=L.closest(this.selector.hdd02TooltipContainer),b=N.find(this.selector.hdd02TooltipHide);this.focusTargetEl&&l(this.focusTargetEl).target[0].matches(this.selector.hdd02TooltipHide)?this.focusTargetEl=L.target[0]:(N.on("mouseleave",this.handler.handleHdd02TooltipClose),N.on("focusout",this.handler.handleHdd02TooltipClose),b.on("click",this.handler.handleHdd02TooltipClose),l(document).on("keydown",this.handler.handleHdd02TooltipClose),L.attr("aria-expanded",!0),N.attr("data-tooltip-show",!0))};
E.prototype.handleHdd02TooltipClose=function(L){var N=L.type,b=l(L.target),r=L.relatedTarget||document.avtiveElement,G=b.closest(this.selector.hdd02TooltipContainer),P=G.find(this.selector.hdd02TooltipShow),Z=G.find(this.selector.hdd02TooltipHide);if("focusout"!==N||!l(r).closest(this.selector.hdd02TooltipContainer).target.length)if("keydown"!==N||L.keyCode===W.ESC)G.off("mouseleave",this.handler.handleHdd02TooltipClose),G.off("focusout",this.handler.handleHdd02TooltipClose),Z.off("click",this.handler.handleHdd02TooltipClose),
l(document).off("keydown",this.handler.handleHdd02TooltipClose),"focusout"!==N&&b.target[0].matches(this.selector.hdd02TooltipHide)&&(this.focusTargetEl=Z.target[0],P.focus()),P.attr("aria-expanded",!1),G.attr("data-tooltip-show",!1)};E.prototype.resize=function(){this.stateColor&&this.sameHeight(this.el.sameColorTitle);this.sameHeight(this.el.same);null===this.showMessageEl||this.careMotion||(this.showMessageEl.finish(),this.el.offsetMessage.target.length&&this.el.offsetMessage.finish().css({paddingBottom:this.showMessageEl.height()+
parseFloat(this.showMessageEl.css("margin-top"))+"px"}))};E.prototype.sameHeight=function(L){var N=window.sg.components.ProductDetailKvNew;if(!(0>=L.target.length||this.stateWide)){var b=Math.round(L.target[0].getBoundingClientRect().top),r=0,G=0;L.css({height:""});L.target.forEach(function(P,Z){var d=P.getBoundingClientRect(),M=Math.round(d.top);l(P).eq(0).css({height:d.height+"px"});0!==Z&&M!==b&&(l(L.target.slice(Z-G,Z)).css({height:r+"px"}),b=M,G=r=0);d.height>r&&(r=d.height);G++});1<G&&l(L.target.slice(L.target.length-
G)).css({height:r+"px"});N&&N.callResize&&N.callResize()}};E.prototype.handleOptionBoxClick=function(L){this.el.section.hasClass("off-change")?this.changeBeforChecked=this.el.section.target[0].querySelector(this.selector.optionItem+" input: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,N,b){N=void 0===
N?!1:N;b=void 0===b?!1:b;var r=window.sg.components.ProductDetailKvNew;L=l(L);var G=L.find(this.selector.radio),P=this.el.section.find(this.selector.message),Z=L.closest(this.selector.optionWrap),d=L.find(this.selector.disclaimer);this.el.offsetMessage=Z;Z=0;l(".hdd02-buying-tool .pd-select-option .pd-select-option__alert-message, .hdd02-buying-tool .pd-select-option .pd-select-option__item-disclaimer, .hdd02-buying-tool .pd-select-option .pd-select-option__item-info").target.forEach(function(M){"block"===
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<P.target.length&&(G.target[0].disabled||"true"===G.attr("aria-disabled")||N)&&(this.showMessageEl=P,Z=this.showAlertMessage(P,G.attr("aria-label")));0===Z&&0<d.target.length&&(this.showMessageEl=d,Z=this.showDisclaimer(d));this.careMotion||this.el.offsetMessage.finish().animate({paddingBottom:Z+"px"},600,function(){r&&r.resize&&r.resize()});b||0<L.find("input.option-result-focus, button.option-result-focus").target.length&&
r&&r.optionClose&&r.optionClose(this.el.section.target[0].nextElementSibling.querySelector(".option-result__close"))};E.prototype.showAlertMessage=function(L,N){L.find("span").text(N);L.finish().css({display:"block",opacity:0});N=L.height();L.finish().css({height:N+"px"});L.animate({opacity:1},600,function(){L.css({opacity:1,height:"",top:""})});return N+parseFloat(L.css("margin-top"))};E.prototype.showDisclaimer=function(L){L.finish().css({display:"block",opacity:0});var N=L.height();this.careMotion?
(L.css({height:0}),L.animate({opacity:1,height:N+"px"},200,function(){L.css({opacity:1,height:""})})):(L.css({}),L.animate({height:N+"px",opacity:1},200,function(){L.css({opacity:1,height:"",top:""})}));return N+parseFloat(L.css("margin-top"))};E.prototype.hideMessage=function(){var L=this;0<this.el.offsetMessage.target.length&&""===this.el.offsetMessage.target[0].style.paddingBottom&&!this.careMotion||(this.el.section.find(this.selector.message+", "+this.selector.disclaimer).target.forEach(function(N){if("block"===
N.style.display){var b=l(N);L.careMotion?b.finish().animate({opacity:"0",height:"0"},600,function(){N.style.display="";N.style.height=""}):(b.finish().css({}),b.animate({opacity:"0"},600,function(){b.attr("style","")}));L.showMessageEl=null}}),this.careMotion||this.el.offsetMessage.finish().animate({paddingBottom:"0px"},600))};E.prototype.handlePdTooltipEvent=function(L){var N=L.currentTarget,b=N.closest(".pd-select-option__tooltip"),r=b.querySelector(".pd-select-option__tooltip__message"),G=b.querySelector(".pd-select-option__tooltip__close"),
P=function(){b.classList.remove("is-active");b.classList.remove("is-click");r.setAttribute("tabindex",-1);document.removeEventListener("click",Z);G.removeEventListener("click",Z)},Z=function(d){("click"===d.type&&!N.contains(d.target)&&!r.contains(d.target)||"click"===d.type&&G.contains(d.target))&&P()};b.classList.contains("is-active")?P():(b.classList.add("is-click"),b.classList.add("is-active"),r.setAttribute("tabindex",0),u(G,"click",Z),u(document,"click",Z));L.stopPropagation()};E.prototype.handleViewMoreToggle=
function(L){var N=this,b=l(L.currentTarget);L=b.find(".pd-select-option__view-more-text");var r=b.attr("data-text-open"),G=b.attr("data-text-close"),P=this.el.section.find(this.selector.viewMoreItem).target.slice(3),Z=function(){b.attr("data-is-animation")&&window.requestAnimationFrame(Z)};"true"===b.attr("aria-expanded")?("desktop"===h.getCurrentDevice()&&(l(P[0]).off("transitionstart").on("transitionstart",function(){b.attr("data-is-animation",!0);var d=document.querySelector("body").scrollLeft,
M=window.scrollY+N.el.section.target[0].getBoundingClientRect().top,t=l(".pdd01-anchor-nav-v2--fixed").height()||0;window.scrollTo(d,M-t+10,"smooth");window.requestAnimationFrame(Z)}),l(P[P.length-1]).off("transitionend").on("transitionend",function(){b.removeAttr("data-is-animation");window.dispatchEvent(new Event("resize"))})),P.forEach(function(d){var M=l(d);M.addClass("pd-select-option__view-more--show");M.slideUp(400,function(){M.removeClass("pd-select-option__view-more--show");d.style=""})}),
L.text(r),b.attr("aria-expanded",!1)):(l(P[0]).off("transitionstart"),l(P[P.length-1]).off("transitionend"),P.forEach(function(d){d=l(d);d.find(".image").target.forEach(function(M){v.forceLoad(M)});d.addClass("pd-select-option__view-more--show");d.slideDown(400,function(){})}),L.text(G),b.attr("aria-expanded",!0))};E.prototype.handleShowPdPopup=function(L){L=L.currentTarget;var N=l(L).attr(this.selector.dataTargetPopup),b=window.sg.components.ProductDetailKvNew;switch(N){case "mordernType":case "beveledType":b&&
b.openBezelPopup&&b.openBezelPopup(L)}};E.prototype.handleClickCounter=function(L){var N=l(L.currentTarget).closest(".pd-select-option__counter").find(".pd-select-option__counter--number"),b=parseInt(N.target[0].value);b=L.currentTarget.classList.contains("icon-minus")?1<b?--b:1:999>b?++b:999;N.attr("value",b);N.target[0].value=b};E.prototype.handleInputCounterNum=function(L){L.target.setAttribute("value",L.target.value)};E.prototype.handleComboOffer=function(L){var N=l(L.target),b=N.closest(this.selector.offerChild),
r=b.find(".hidden"),G=JSON.parse(r.target[0].dataset.globalText),P=N;"pdOfferToggle"!==L.target.getAttribute("data-js-action")&&(P=N.closest(this.selector.offerChildToogleButton));b.hasClass("open")?(b.removeClass("open"),P.attr("aria-expanded","false"),r.text(G.Expand)):(l(this.selector.offerChild).removeClass("open"),l(this.selector.offerChildToogleButton).attr("aria-expanded","false"),l(this.selector.offerChildToogleButton).find(".hidden").text(G.Expand),b.addClass("open"),P.attr("aria-expanded",
"true"),v.setLazyLoad(),r.text(G.Collapse))};E.prototype.bindPdTooltipEvent=function(){this.el.tooltipCTA=this.el.section.find(this.selector.tooltipCTA);if(0<this.el.tooltipCTA.target.length)this.el.tooltipCTA.off("click",this.handler.handlePdTooltipEvent).on("click",this.handler.handlePdTooltipEvent)};E.prototype.bindComboOfferEvent=function(){if(this.el.section.find(this.selector.offerChild).target.length)this.el.section.find(this.selector.offerChildToogleButton).off("click",this.handler.handleComboOffer).on("click",
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(N){N.addEventListener("change",function(){L.el.section.find(".pd-select-option__color-name span").target[0].innerText=N.closest(".pd-option-selector").querySelector(".pd-option-selector__label .hidden").innerText})})};E.prototype.bindAddOnProductEvent=function(){var L=this.el.section.find(this.selector.addonSummaryWrap);
if(L.target.length){var N=L.find(this.selector.addonSummaryCTA);N.off("click").on("click",function(){L.hasClass("open")?(L.removeClass("open"),N.attr("aria-expanded","false")):(L.addClass("open"),N.attr("aria-expanded","true"))})}};E.prototype.toggleVDAddOnViewMoreCTA=function(L){L=l(L);L.find(".add-on-product-list-wrap--vd").target.length&&L.find(this.selector.viewMoreCTA).eq(0).trigger("click")};E.prototype.viewMoreVDAddOn=function(){this.el.section.find(".add-on-product-list-wrap--vd").target.length&&
this.el.section.find(this.selector.viewMoreCTA).eq(0).trigger("click")};var T=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&&(U=L.querySelector('[data-target-popup\x3d"tradeInLearnMorePopup"]'),B=L.querySelector('[data-target-popup\x3d"hubbleCareinfoPopup"]'),w=L.querySelector('[data-target-popup\x3d"upgradeLearnMorePopup"]'),e=L.querySelector('[data-target-popup\x3d"manufacturerInfoPopup"]'),
p=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&&(n(U,"click"),K.tradeInLearnMorePopupBtnEl=!1);K.hubbleCareinfoPopupBtnEl&&(n(B,"click"),K.hubbleCareinfoPopupBtnEl=!1);K.upgradeLearnMorePopupBtnEl&&(n(w,"click"),
K.upgradeLearnMorePopupBtnEl=!1);K.manufacturerInfoPopupBtnEl&&(n(e,"click"),K.manufacturerInfoPopupBtnEl=!1);K.cancelReturnPolicyPopupBtnEl&&(n(p,"click"),K.cancelReturnPolicyPopupBtnEl=!1);K.warrantyPolicyPopupBtnEl&&(n(k,"click"),K.warrantyPolicyPopupBtnEl=!1);K.leasingLearnmorePopupBtnEl&&(n(A,"click"),K.leasingLearnmorePopupBtnEl=!1);R(document.querySelector(".hdd02-pdp-header__buying-tool"));U&&(u(U,"click",function(L){na(L.target.dataset.targetPopup)}),K.tradeInLearnMorePopupBtnEl=!0);B&&(u(B,
"click",function(L){na(L.target.dataset.targetPopup)}),K.hubbleCareinfoPopupBtnEl=!0);w&&(u(w,"click",function(L){na(L.target.dataset.targetPopup)}),K.upgradeLearnMorePopupBtnEl=!0);e&&(u(e,"click",function(L){na(L.target.dataset.targetPopup)}),K.manufacturerInfoPopupBtnEl=!0);p&&(u(p,"click",function(L){na(L.target.dataset.targetPopup)}),K.cancelReturnPolicyPopupBtnEl=!0);k&&(u(k,"click",function(L){na(L.target.dataset.targetPopup)}),K.warrantyPolicyPopupBtnEl=!0);A&&(u(A,"click",function(L){na(L.target.dataset.targetPopup)}),
K.leasingLearnmorePopupBtnEl=!0);ca&&ca.forEach(function(L){u(L,"click",function(N){0===l(N.currentTarget).closest(".pd-delivery-pickup__item").index()&&oa(document.querySelector(".pdd23-edd-popup"),N.currentTarget);N.preventDefault()})})},ea=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",va);L.find(".swiper-button-prev").removeAttr("tabindex");L.find(".swiper-button-next").removeAttr("tabindex");ra();l(window).off("resize",ra)},va=function(L){var N=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");if(L.keyCode===H.keyCode.TAB_KEY){var b=1<N.find(".swiper-slide").target.length?N.find(".swiper-button-prev").hasClass("swiper-button-disabled")?N.find(".swiper-button-next").target[0]:N.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0]:N.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];
if(!1===L.shiftKey&&N.find(".add-on-popup__close").target[0]===document.activeElement)L.preventDefault(),b.focus();else if(!0===L.shiftKey&&b===document.activeElement||!0===L.shiftKey&&N.target[0]===document.activeElement)L.preventDefault(),N.find(".add-on-popup__close").focus()}},ra=function(){var L=l(".hdd02-pdp-header").find(".add-on__layer-learn-more"),N=document.documentElement.clientHeight,b=L.find(".add-on-popup__inner"),r=L.find(".scrollbar"),G=L.find(".scrollbar__wrap");"block"===L.target[0].style.display?
(F.MOBILE>=h.getViewPort().width?(G=G.target[0].getBoundingClientRect(),N=parseInt(N-G.top),b.css({"min-height":""}),r.css({height:N+"px"})):N<=b.target[0].getBoundingClientRect().height?(b.css({"min-height":N+"px",height:N+"px"}),b=b.target[0].getBoundingClientRect(),N=G.target[0].getBoundingClientRect(),b=parseInt(b.height-N.top),r.css({height:b+"px"})):(b.css({"min-height":"",height:""}),r.css({height:""})),setTimeout(function(){x.resize(r.target[0])},300)):(b.css({"min-height":"",height:""}),
r.css({height:""}))},oa=function(L,N){N&&N.closest(".pd-delivery-pickup__item")&&(g=N.closest(".pd-delivery-pickup__item"));C=l(L);l(window).off("resize",da).on("resize",da)},da=function(){var L=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__wrap").clientHeight,N=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__contents").scrollHeight;L<N?document.querySelector(".pdd23-edd-popup").querySelector(".layer-popup__inner").classList.add("is-overflow"):document.querySelector(".pdd23-edd-popup").querySelector(".layer-popup__inner").classList.remove("is-overflow")},
na=function(L){window.sg.components[L].showPopup()};E.instances=new WeakMap;window.sg.components.PDbuyingToolNew={init:T,reInit:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)?E.instances.get(L).reInit():new E(L)})},showMessage:function(L){var N=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];E.instances.has(N)&&E.instances.get(N).showMessage(L,!0)},bindShowPdPopupEvent: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 N=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");L&&(D=L);h.hiddenScroll();N.show();v.setLazyLoad();N.on("keydown",va);N.find(".add-on-popup__close").off("click").on("click",ea);if(L=N.find(".basic-swiper").target[0])aa.slideUpdate(L),aa.slideReInit(L);
1<N.find(".swiper-slide").target.length?L=N.find(".swiper-button-next").target[0]:(N.find(".swiper-button-prev").attr("tabindex","-1"),N.find(".swiper-button-next").attr("tabindex","-1"),L=N.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);L.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&h.setMobileFocusLoop(N.target[0]);ra();l(window).off("resize",ra).on("resize",ra)},toggleVDAddOnViewMoreCTA:function(L){var N=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];
E.instances.has(N)&&E.instances.get(N).toggleVDAddOnViewMoreCTA(L)},viewMoreVDAddOn:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(L){E.instances.has(L)&&E.instances.get(L).viewMoreVDAddOn()})},triggerChange:function(L){var N=l(L).closest(".hdd02-buying-tool .pd-select-option").target[0];E.instances.has(N)&&E.instances.get(N).triggerChange(L)},openPopup:oa,closePopup:function(L){0<l(g).target.length&&(!1===L?(l(g).find(".pd-delivery-pickup__content").show(),l(g).find(".pd-delivery-pickup__content-summarized").hide(),
D=g.querySelector(".pd-delivery-pickup__button .cta")):(l(g).find(".pd-delivery-pickup__content").hide(),l(g).find(".pd-delivery-pickup__content-summarized").show(),D=g.querySelector(".pd-delivery-pickup__edit-button.cta")));l(D).focus();D=null;null!==C&&(C.hide(),C=null)}};l.ready(T)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,H=window.sg.components.PDbuyingToolNew,u={section:".hdd02-pdp-header",productGallery:".hdd02-gallery",PDbuyingToolNew:".hdd02-buying-tool .pd-select-option"},n=function(F){this.selector={galleryArea:".hdd02-pdp-header__gallery-area",gallery:".hdd02-pdp-header__gallery",info:".hdd02-product-info",buyingTool:".hdd02-pdp-header__buying-tool",option:".option-result",optionCloseBtn:".option-result .option-result__close"};this.el={section:l(F),
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)};n.instances.set(F,this);this.init()};n.prototype.init=function(){this.setElements();this.bindEvents();this.el.section.hasClass(this.class.headerKVUxV2Class)&&(this.pdType="uxv2");this.resize()};n.prototype.reInit=function(){this.init()};n.prototype.setElements=function(){this.el.galleryArea=this.el.section.find(this.selector.galleryArea);this.el.gallery=this.el.section.find(this.selector.gallery);this.el.buyingTool=this.el.section.find(this.selector.buyingTool);this.el.info=
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")};n.prototype.bindEvents=function(){this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("resize",this.handler.resize).on("resize",
this.handler.resize)};n.prototype.scroll=function(){var F=(new Date).getTime();F>this.scrollTimer&&(this.scrollTimer=F+500,this.galleryRect.mode=null,this.setGalleryRect());this.setGalleryTop()};n.prototype.resize=function(){var F=this;this.statePc="desktop"===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)};n.prototype.setGalleryRect=function(){var F=document.body.scrollTop||document.documentElement.scrollTop;this.galleryRect.height=this.el.gallery.height();this.statePc?this.el.buyingTool.css({minHeight:this.galleryRect.height+"px"}):this.el.buyingTool.css({minHeight:""});var W=0;F=this.el.section.offset().top+F;var aa=0,x=this.el.buyingTool.find(".hdd02-buying-tool");if(0<x.target.length){var U=x.target[0].lastElementChild;["paddingBottom","marginBottom"].forEach(function(e){aa+=parseInt(window.getComputedStyle(U)[e])})}x=
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};n.prototype.scrollGalleryOff=function(F){F?(this.setGalleryTop(0),this.scrollOffGallery=F):(this.scrollOffGallery=F,this.resize())};n.prototype.setGalleryTop=function(F){F=void 0===F?document.body.scrollTop||document.documentElement.scrollTop:F;if(!this.scrollOffGallery){var W=this.el.buyingTool.height()||0,aa=this.el.info.height()||0;W+=aa;this.el.galleryArea.height()>W||("default"===this.pdType?this.statePc?F>this.galleryRect.end?"end"!==this.galleryRect.mode&&(this.setGalleryRect(),
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")))}};n.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()})}};n.prototype.openBezelPopup=function(F){this.popupData={btn:F,popup:l("#"+F.dataset.targetPopup)};this.popupData.popup.css({display:"block"});this.popupData.popup.setLayerFocus(".layer-popup__close",
".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])};n.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}};n.callResize=function(){l(u.ProductDetailKvNew).target.forEach(function(F){n.instances.has(F)&&n.instances.get(F).resize()})};var v=function(){l(u.section).target.forEach(function(F){n.instances.has(F)||new n(F)})};n.instances=new WeakMap;window.sg.components.ProductDetailKvNew={init:v,reInit:function(){l(u.section).target.forEach(function(F){n.instances.has(F)?
n.instances.get(F).reInit():new n(F)});H&&H.reInit();l(u.section).find(".text-field").target.forEach(function(F){window.sg.common.textField.init(F)});l(u.section).find(".text-field-v2").target.forEach(function(F){window.sg.common.textFieldv2.reInit(F)})},resize:function(){l(u.ProductDetailKvNew).target.forEach(function(F){n.instances.has(F)&&n.instances.get(F).resize()})},showMessage:function(F){H&&H.showMessage(F,!0)},productFixed:function(){var F=l(u.section);n.addClass("product-detail-kv--fixed");
n.instances.get(F.target[0]).setGalleryTop();l(u.productGallery).css({position:"fixed",top:0})},scrollGalleryOff:function(F,W){n.instances.has(F)&&n.instances.get(F).scrollGalleryOff(W)},optionClose:function(F){var W=F&&l(F).closest(u.section).target[0];n.instances.has(W)&&n.instances.get(W).optionClose(F)},triggerChange:function(F){H&&H.triggerChange(F)},scrollGo:function(){},init360:function(){window.sg.common.image360.initAll()},openBezelPopup:function(F){var W=l(F).closest(u.section).target[0];
n.instances.has(W)&&n.instances.get(W).openBezelPopup(F)}};l.load(v)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,H=window.sg.common.swiperManager,u=l(window),n=window.sg.common.scrollbar,v=window.sg.common.lazyLoad,F=window.sg.common.video,W=window.sg.common.utils.triggerEvent,aa=window.sg.common.image360,x=function(K){var D=K;"undefined"!==typeof Granite&&(D=Granite.I18n.get(K));return D},U="undefined"!==typeof digitalData&&digitalData&&digitalData.page&&digitalData.page.pageInfo&&digitalData.page.pageInfo.pageTrack||"",B=function(K){this.el={popup:l(K),
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 g=(K=this.el.title.target[0])||h.getFirstFocusableEl(this.el.popup.target[0]);K&&K.setAttribute("tabindex","-1");setTimeout(function(){g&&g.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 g=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",
g);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",g),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){n.reInit(K)})};B.prototype.setCursorAndSnackBarState=function(){this.currentZoomStep!==this.minZoomStep&&(this.currentZoomStep===this.maxZoomStep?this.currentSnackBar.innerText=x("Click or tap to zoom out"):this.prevZoomStep<this.currentZoomStep?this.currentSnackBar.innerText=x("Click or tap to zoom in"):this.prevZoomStep>this.currentZoomStep&&(this.currentSnackBar.innerText=x("Click or tap to zoom out")))};B.prototype.setControllerState=
function(){function K(){D.classList.contains("control-hide")&&D.classList.remove(g)}var D=this.el.controlListContainer.target[1],g=this.classes.controlListContainerShow;D&&(this.currentZoomStep<=this.maxZoomStep&&this.currentZoomStep>this.minZoomStep?(D.classList.add(g),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 g=this.el.contentContainer.target[0].getBoundingClientRect(),
C=this.currentZoomImg.getBoundingClientRect(),E=Math.abs(parseInt(C.width-g.width));g=Math.abs(parseInt(C.height-g.height));0!==D&&(C=D+parseInt(this.currentZoomImg.style.marginTop||0,0),C=0>D?Math.max(-g,C):Math.min(g,C),C>-g&&C<g&&(this.el.moveUpBtn.removeAttr("disabled"),this.el.moveDownBtn.removeAttr("disabled")),C===g&&(this.el.moveUpBtn.attr("disabled",!0),!this.isDragging&&this.el.moveDownBtn.focus()),C===-g&&(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,g=K.clientY||K.touches[0].clientY;this.isDragging=!0;this.dragZoomXY=[D,g];this.clickZoomXY=[D,g];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 g=this.el.thumbnailImageItemList.target.findIndex(function(C){return C===D.target[0]});this.changeCurrentView(this.popupType.image,g)}K.hasClass("hdd02-gallery__popup-video-link")&&(g=this.el.thumbnailVideoItemList.target.findIndex(function(C){return C===
D.target[0]}),this.changeCurrentView(this.popupType.video,g))};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 p=function(K,D){this.el={popup:l(K),popupCta:D};this.isViewerInit=!1;K&&p.instances.set(K,this);this.init()};p.prototype.init=function(){this.setElements();this.bindEvents()};p.prototype.setElements=function(){this.el.image360=this.el.popup.find(".image-360")};p.prototype.bindEvents=function(){};p.prototype.open=function(){this.isViewerInit||(aa.init(this.el.image360.target[0]),this.isViewerInit=!0);this.el.popup.addClass("hdd02-popup-open");h.setFocusFirstFocusableEl(this.el.popup.target[0])};
p.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],g=document.createElement("link");g.type="text/css";g.rel="stylesheet";g.href="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/css/popup360.css";D.appendChild(g);g=document.createElement("script");g.dataset.js360=!0;D.appendChild(g);g.onload=function(){if(window.imgSeqViewer){var C=new imgSeqViewer("#seqContainer");C.init();var E=spinImageNewData[0],T=spinImageNewData[1],
R=[],y=[];if(null!=E&&null!=E.unfoldSpinImage)for(var ea=0;ea<E.unfoldSpinImage.length;ea++)R.push(E.unfoldSpinImage[ea].largeImgPath);if(null!=T&&null!=T.foldSpinImage)for(E=0;E<T.foldSpinImage.length;E++)y.push(T.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")};g.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){p.instances.has(D)?p.instances.get(D).init():K.popup360=new p(D,K.el.viewIn360Btn)});this.el.popup360New.target.forEach(function(D){k.instances.has(D)?k.instances.get(D).init():K.popup360New=new k(D,K.el.viewIn360Btn)})};A.prototype.bindEvents=function(){u.off("resize",this.handler.handleResize).on("resize",
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=H.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=H.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0])};A.prototype.setSwiperStatus=function(){this.swiper=H.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=H.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]);this.moVideoThumbnailSwiper||(this.el.moVideoThumbnailSwiperContainer.target.forEach(function(K){H.slideInit(K)}),
this.moVideoThumbnailSwiper=H.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]));this.setTagging();this.swiper?this.initSwiper():(this.initSwiper(),this.swiper=H.getSwiper(this.el.swiperContainer.target[0]));this.swiper&&(this.swiper.slides.length<=parseInt(this.swiper.params.slidesPerView)||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.progressIndicator.removeClass("progressbar-indicator--show")):(this.swiper.allowTouchMove=!0,this.el.progressIndicator.addClass("progressbar-indicator--show")))};
A.prototype.setTagging=function(){var K=this.el.hdd02PdpHeader.hasClass(this.classes.ux2)?"hdd02_gallery-"+U+"-swipe-indication":"hdd02_pdp header-"+U+"-swipe-indication";this.el.mobileArrow.attr("an-tr",K);this.el.mobileArrow.attr("an-ca","indication");this.el.mobileArrow.attr("an-ac","carousel");this.updateTagging()};A.prototype.updateTagging=function(){if(this.swiper){var K=this.swiper.activeIndex+1;this.el.mobileArrow.target.forEach(function(D){D=l(D);D.hasClass("screen-indicator--prev")&&D.attr("an-la",
"carousel:swipe:product gallery"+(K-1));D.hasClass("screen-indicator--next")&&D.attr("an-la","carousel:swipe:product gallery"+(K+1))})}};A.prototype.initSwiper=function(){var K=this;this.el.swiperContainer.target.forEach(function(D){H.slideReInit(D);H.slideInitEnd(D,function(){K.swiper=H.getSwiper(D);K.updateTagging();K.swiper.on("slideChangeTransitionEnd",function(){K.updateTagging()})})})};A.prototype.setImageItemList=function(K,D){var g=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(g.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),g=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,g=this.el.pcThumbnailItemList.target.findIndex(function(C){return C===D.parent().target[0]}),this.setImageItemList(!1,g));this.closeActivePopup();this.pcGalleryPopup.open(K,
g);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(g){return g===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(g){l(g).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;p.instances=new WeakMap;k.instances=new WeakMap;l.load(ca);window.sg.components.PDheaderGalleryNew={init:ca,reInit:function(){l(".hdd02-gallery").target.forEach(function(K){A.instances.has(K)?A.instances.get(K).reInit():
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,H=window.sg.common.swiperManager,u=window.sg.common.scrollbar,n=window.sg.common.lazyLoad,v=function(W){this.el={section:l(W),window:l(window)};this.selector={dimensionsPopup:".pd-sellout-option__dimensions-popup",dimensionsPopupTitle:".layer-popup__title",dimensionsPopupSwiper:".pd-sellout-option__dimensions-popup-swiper"};this.resizeTimer=this.resizeHandler=null;this.popupData={};this.swiper=null;this.handler={closePopup:this.closePopup.bind(this),
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");
n.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=H.getSwiper(W.target[0]))?this.initSwiper(W):(this.initSwiper(W),this.swiper=H.getSwiper(W.target[0]))};v.prototype.initSwiper=function(W){var aa=this;W.target.forEach(function(x){H.slideReInit(x);H.slideInitEnd(x,function(){aa.swiper=H.getSwiper(x)})})};v.prototype.setScrollbar=function(W){W.target.forEach(function(aa){u.reInit(aa)})};v.prototype.setDimensionsPopupHeight=function(){var W=this.el.dimensionsPopup.find(".layer-popup__inner").target[0].getBoundingClientRect().height,
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,H=window.sg.common.swiperManager,u=window.sg.common.constants.BREAKPOINTS,n=window.sg.common.utils,v=window.sg.common.scrollbar,F=window.sg.common.OptionSelector,W=window.sg.common.libs,aa=n.setMobileFocusLoop,x=n.removeMobileFocusLoop,U=function(w){var e=this;this.el={window:l(window),component:l(w)};this.activeCta=this.activeTarget=this.resizeTimer=this.downOptionScroll=this.winRect=null;this.handler={setFix:this.setFix.bind(this),resize:this.resize.bind(this),
resizeSwiper:this.resizeSwiper.bind(this),slideChange:this.slideChange.bind(this),clickViewIcon:this.clickViewIcon.bind(this),checkedCheckbox:this.checkedCheckbox.bind(this),clickSelect:function(p){e.clickSelect(p.currentTarget)},clickMoreBtn:this.clickMoreBtn.bind(this),clickTab:function(){var p=e.el.tabBtn.target.indexOf(event.currentTarget);e.el.swiper.swiper.slideTo(p)},clickFooterBtn:function(){e.el.swiper.swiper.slideNext()},swiperTouchStart:function(p){e.isPc?e.el.swiper.swiper.allowTouchMove=
!1:0===l(p.target).closest(".option-selector").target.length&&(e.el.swiper.swiper.allowTouchMove=!0)},optionTouchDown:function(){e.el.window.off("mousemove",e.handler.optionTouchMove).on("mousemove",e.handler.optionTouchMove);e.el.window.off("touchmove",e.handler.optionTouchMove).on("touchmove",e.handler.optionTouchMove);e.el.window.off("mouseup",e.handler.optionTouchUp).on("mouseup",e.handler.optionTouchUp);e.el.window.off("touchend",e.handler.optionTouchUp).on("touchend",e.handler.optionTouchUp);
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)};U.instances.set(w,this);this.init()};U.prototype.setElements=function(){this.el.tabBtn=this.el.component.find(".tab__item-title");this.el.swiper=this.el.component.find(".pdd16-step-buying__contents .pdd16-step-buying__card-wrap").target[0];
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(p){p.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};U.prototype.init=function(){this.setElements();void 0===this.el.swiper.swiper&&H.slideReInit(this.el.swiper);this.resize();this.bindEvents()};U.prototype.reInit=function(){this.setElements();window.sg.common.lazyLoad.setLazyLoad();void 0===this.el.swiper.swiper?H.slideReInit(this.el.swiper):H.slideUpdate(this.el.swiper);void 0===this.el.StepSwiper.swiper?H.slideReInit(this.el.StepSwiper):H.slideUpdate(this.el.StepSwiper);this.resize();this.bindEvents()};U.prototype.slideChangeTransitionStart=
function(){this.el.StepSwiperSlide.addClass("changing");this.el.StepSwiperSlide.removeClass("changed");u.MOBILE<n.getViewPort().width?this.el.StepSwiperSlide.eq(this.lastSlideIdx).hasClass("swiper-slide-active")&&(this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend")):this.el.StepSwiper.swiper.isEnd&&(this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlid32eIdx).removeClass("changedend"))};
U.prototype.slideChangeTransitionEnd=function(){u.MOBILE<n.getViewPort().width?this.el.StepSwiperSlide.eq(this.lastSlideIdx).hasClass("swiper-slide-active")&&(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changedend")):this.el.StepSwiper.swiper.isEnd?(this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changedend")):
(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"));this.setAccessbility()};U.prototype.slideResetTransitionStart=function(){u.MOBILE>=n.getViewPort().width&&(this.el.StepSwiper.swiper.isEnd?this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"):this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"))};
U.prototype.setSlideAria=function(w,e){w=l(w);!0===e?w.attr("aria-hidden",!0):w.attr("aria-hidden",!1)};U.prototype.setAccessbility=function(){var w=this;this.el.StepSwiperSlide.target.forEach(function(e){l(e).hasClass("swiper-slide-active")||l(e).hasClass("swiper-slide-next")?w.setSlideAria(e,!1):w.setSlideAria(e,!0)})};U.prototype.bindEvents=function(){var w=this;this.el.window.off("scroll",this.handler.setFix).on("scroll",this.handler.setFix);this.el.window.off("resize",this.handler.resize).on("resize",
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)};U.prototype.checkedCheckbox=function(){var w=this.el.checkbox.target.length,e=this.el.component.find('.pdd16-step-buying__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]:checked').target.length,p=this.el.component.find(".cta--step");w===e?(p.removeClass("cta--disabled"),p.removeAttr("disabled")):(p.addClass("cta--disabled"),
p.attr("disabled","true"))};U.prototype.clearAll=function(){this.el.component.find(".pdd16-step-buying__card \x3e .cta--contained.cta--on:not([disabled]), .pdd16-step-buying__card-cta .cta--contained.cta--on:not([disabled])").trigger("click")};U.prototype.clickMoreBtn=function(w){w=l(w.currentTarget).closest(".pdd16-step-buying__view-more");var e=w.closest(".swiper-slide"),p=e.find(".pdd16-step-buying__card");e=e.find(".pdd16-step-buying__card:not(.is-show)");w.css({display:"none"});p.addClass("is-show");
this.setMaxHeight();e.find(".option-selector").target.forEach(function(k){F.reInit(l(k))});this.resizeSwiper();p.eq(5).find(".pdd16-step-buying__tooltip").css({right:"",left:""});p.eq(p.target.length-1).find(".pdd16-step-buying__tooltip").css({right:0,left:"auto"})};U.prototype.clickSelect=function(w,e){w=void 0===w?null:w;e=void 0===e?null:e;null!==w&&(null===e&&(e=!w.classList.contains("cta--on")),e?(w.classList.add("cta--on"),l(w).find("span").innerHTML(w.dataset.textSelected)):(w.classList.remove("cta--on"),
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))};U.prototype.slideChange=function(){var w=this;this.tabActive();requestAnimationFrame(function(){w.setMaxHeight()})};U.prototype.clickViewIcon=function(w){var e=l(w.currentTarget),p=e.closest(".pdd16-step-buying__list-type").find("a"),k=e.closest(".swiper-slide");
p.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()};U.prototype.resizeSwiper=function(){l(this.el.swiper).find(".swiper-container, .swiper-wrapper, .swiper-slide").css({height:""});[].concat($jscomp.arrayFromIterable(this.el.component.find(".scrollbar").target)).forEach(function(w){v.resize(w)});this.el.swiper.swiper.emit("resize")};U.prototype.sameHeightPc=function(w,e,p){p=void 0===p?!1:p;var k=0;w=w.find(e);w.target.forEach(function(A){A=
A.getBoundingClientRect().height;k<A&&(k=A)});if(p)return k;w.css({height:k+"px"})};U.prototype.optionOneLinePC=function(w){var e=w.find(".pdd16-step-buying__card.is-show"),p=0;e.target.forEach(function(k){k=k.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;p<k&&(p=k)});2>p&&(0===e.find(".option-selector__wrap--color-chip").target.length?w.find(".scrollbar__contents").addClass("none-color-chip"):w.find(".scrollbar__contents").addClass("single-chip"))};
U.prototype.optionOneLineMo=function(w,e){e=void 0===e?null:e;if(null===e){var p=w.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;w=l(w)}else{p=w.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");var k=e.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");p=Math.max(p.length,k.length);w=l([w,e])}2>p&&(0===w.find(".option-selector__wrap--color-chip").target.length?w.find(".option-selector").addClass("none-color-chip"):
w.find(".option-selector").addClass("single-chip"))};U.prototype.setMaxHeight=function(){var w=this,e=l(this.el.swiper).find(".swiper-slide-active");0===e.target.length&&(e=this.el.component.find(".pdd16-step-buying__tab").eq(0));var p=l(this.el.swiper);e.find(".pdd16-step-buying__card, .pdd16-step-buying__card-badge, .pdd16-step-buying__card-option, .pdd16-step-buying__card-seller, .pdd16-step-buying__card-header-badge, .pdd16-step-buying__card-price, .pdd16-step-buying__card-cta, .pdd16-step-buying__view-more").css({height:""});
p.find(".none-color-chip").removeClass("none-color-chip");p.find(".single-chip").removeClass("single-chip");if(this.isPc)this.optionOneLinePC(e),this.sameHeightPc(e,".pdd16-step-buying__card-badge"),this.sameHeightPc(e,".pdd16-step-buying__card-option"),this.sameHeightPc(e,".pdd16-step-buying__card-seller"),this.sameHeightPc(e,".pdd16-step-buying__card-header-badge"),this.sameHeightPc(e,".pdd16-step-buying__card-price"),this.sameHeightPc(e,".pdd16-step-buying__card-cta"),p=this.sameHeightPc(e,".pdd16-step-buying__card",
!0),e.find(".pdd16-step-buying__view-more").css({height:p+"px"}),e.find(".pdd16-step-buying__card").css({height:p+"px"});else if(!1!==e.target[0].classList.contains("pdd16-step-buying__2column")){var k=e.find(".pdd16-step-buying__card.is-show");k.target.forEach(function(A,ca){if(0!==ca%2){var K=k.target[ca-1];w.optionOneLineMo(K,A);".pdd16-step-buying__card-option .pdd16-step-buying__card-badge .pdd16-step-buying__card-seller .pdd16-step-buying__card-header-badge .pdd16-step-buying__card-price .pdd16-step-buying__card .pdd16-step-buying__card-cta".split(" ").forEach(function(D){var g=
K.querySelector(D),C=A.querySelector(D);".pdd16-step-buying__card"===D&&(g=K,C=A);null!==g&&null!==C&&(D=Math.max(g.getBoundingClientRect().height,C.getBoundingClientRect().height),g.style.height=D+"px",C.style.height=D+"px")})}});0===(k.target.length-1)%2&&this.optionOneLineMo(k.target[k.target.length-1],null)}};U.prototype.tabActive=function(){var w=this.el.swiper.swiper,e=this.el.component.find(".pdd16-step-buying__tab").target;void 0===w?this.el.footerBtn.text(this.el.swiper.querySelector(".swiper-slide").dataset.buttonText):
this.el.footerBtn.text(e[w.activeIndex].dataset.buttonText);h.selectTab(this.el.tab.target[0],w.activeIndex)};U.prototype.resize=function(){var w=this;this.winRect=n.getViewPort();this.el.dummyHeaer.css({height:this.el.component.find(".pdd16-step-buying__header").offset().height+"px"});var e=u.MOBILE<n.getViewPort().width;e!==this.isPc?(this.isPc=e,this.setMaxHeight(),this.resizeSwiper()):this.setMaxHeight();this.isPc?this.el.swiper.swiper.allowTouchMove&&(this.el.swiper.swiper.allowTouchMove=!1,
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)};U.prototype.offFix=function(){this.el.footer.removeClass("pdd16-step-buying__footer--fixed");this.el.component.removeClass("pdd16-step-buying--floating")};U.prototype.setFix=function(){var w=this.el.component.offset();this.isPc||(0>w.top&&w.bottom>this.winRect.height?(this.el.component.hasClass("pdd16-step-buying--floating")||this.el.component.addClass("pdd16-step-buying--floating"),this.el.footer.hasClass("pdd16-step-buying__footer--fixed")||
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")))};U.prototype.focusLock=function(w){if(w.keyCode===W.keyCode.TAB_KEY){var e=1<this.activeTarget.find(".swiper-slide").target.length?this.activeTarget.find(".swiper-button-prev").hasClass("swiper-button-disabled")?
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())}};U.prototype.activePopup=function(w){w&&(this.activeCta=l(w));n.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();this.activeTarget.on("keydown",this.handler.focusLock);H.slideUpdate(this.activeTarget.find(".basic-swiper").target[0]);H.slideReInit(this.activeTarget.find(".basic-swiper").target[0]);1<this.activeTarget.find(".swiper-slide").target.length?w=this.activeTarget.find(".swiper-button-next").target[0]:
(this.activeTarget.find(".swiper-button-prev").attr("tabindex","-1"),this.activeTarget.find(".swiper-button-next").attr("tabindex","-1"),w=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);w.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&aa(this.activeTarget.target[0]);this.popupResize()};U.prototype.closePopup=function(){n.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&x();null!==this.activeCta&&
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};U.prototype.popupResize=function(w){w=void 0===w?!0:w;var e=document.documentElement.clientHeight,p=this.activeTarget.find(".layer-popup__inner"),k=this.activeTarget.find(".scrollbar"),
A=this.activeTarget.find(".scrollbar__wrap");!0===w?(this.isPc?e<=p.target[0].getBoundingClientRect().height?(p.css({"min-height":e+"px",height:e+"px"}),p=p.target[0].getBoundingClientRect(),e=A.target[0].getBoundingClientRect(),p=parseInt(p.height-e.top),k.css({height:p+"px"})):(p.css({"min-height":"",height:""}),k.css({height:""})):(A=A.target[0].getBoundingClientRect(),e=parseInt(e-A.top),p.css({"min-height":""}),k.css({height:e+"px"})),setTimeout(function(){v.resize(k.target[0])},300)):(p.css({"min-height":"",
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(p){h.init(p)});U.instances.has(e)?U.instances.get(e).reInit():new U(e);l(e).find(".scrollbar").target.forEach(function(p){v.reInit(p)})});w.visibleScrollTop&&(n.visibleScroll(),window.scrollTo(0,0))};U.instances=new WeakMap;l.ready(B);window.sg.components.stepbuying={init:B,clearAll:function(w){U.instances.has(w)&&U.instances.get(w).clearAll()},
cardSelect:function(w,e){e=void 0===e?null:e;var p=l(w).closest(".pdd16-step-buying").target[0];U.instances.has(p)&&U.instances.get(p).clickSelect(w,e)},activePopup:function(w){l(".pdd16-step-buying").target.forEach(function(e){U.instances.has(e)&&U.instances.get(e).activePopup(w)})},closePopup:function(){l(".pdd16-step-buying").target.forEach(function(w){U.instances.has(w)&&U.instances.get(w).closePopup()})}}})();
(function(){var l=window.sg.common.$q,h=window.sg.common.swiperManager,H=window.sg.common.utils,u=window.sg.common.scrollbar,n=window.sg.common.OptionSelector,v=window.sg.common.libs,F=H.setMobileFocusLoop,W=H.removeMobileFocusLoop,aa=function(U){var B=this;this.el={window:l(window),component:l(U),classes:{bottomExpandedClass:"pdd16-step-buying-v2__bottom--expanded",bottomTopClass:"pdd16-step-buying-v2__bottom--top",bottomFixedClass:"pdd16-step-buying-v2__bottom--fixed"}};this.bottomPriceTopRect=
this.activeCta=this.activeTarget=null;this.handler={scroll:this.scroll.bind(this),resize:this.resize.bind(this),checkedCheckbox:this.checkedCheckbox.bind(this),clickSelect:function(w){B.clickSelect(w.currentTarget)},focusLock:this.focusLock.bind(this),closePopup:this.closePopup.bind(this),handleTransitionEnd:this.handleTransitionEnd.bind(this),handleSwiperTouchStart:this.handleSwiperTouchStart.bind(this)};aa.instances.set(U,this);this.init()};aa.prototype.setElements=function(){this.el.categoryContents=
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(U){U=
l(U);window.sg.common.lazyLoad.setLazyLoad();U.find(".pdd16-step-buying-v2__card-inner \x3e button.cta:not(.js-cta-stock), .pdd16-step-buying-v2__card-cta button.cta:not(.js-cta-stock)").off("click",this.handler.clickSelect).on("click",this.handler.clickSelect);n.reInit(U);if(U.find(".option-selector__wrap--capacity").target){var B=U.find(".option-selector__wrap--capacity");1===B.find(".option-selector__swiper-slide").target.length&&B.addClass("option-selector__wrap--capacity-single")}this.setMaxHeight(U.closest(".pdd16-step-buying-v2__category-contents").target)};
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(U){n.reInit(l(U))});this.el.component.find(".option-selector__wrap--capacity").target.forEach(function(U){1===
l(U).find(".option-selector__swiper-slide").target.length&&l(U).addClass("option-selector__wrap--capacity-single")});this.el.closePopupCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.el.checkbox.off("change",this.handler.checkedCheckbox).on("change",this.handler.checkedCheckbox)};aa.prototype.checkedCheckbox=function(){var U=this.el.checkbox.target.length,B=this.el.component.find('.pdd16-step-buying-v2__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]:checked').target.length,
w=this.el.component.find(".pdd16-step-buying-v2__bottom-price__cta .cta");U===B?(w.removeClass("cta--disabled"),w.removeAttr("disabled")):(w.addClass("cta--disabled"),w.attr("disabled","true"))};aa.prototype.clearAll=function(){this.el.component.find(".pdd16-step-buying-v2__card \x3e .cta--contained.cta--on:not([disabled]), .pdd16-step-buying-v2__card-cta .cta--contained.cta--on:not([disabled])").trigger("click")};aa.prototype.clickSelect=function(U,B){U=void 0===U?null:U;B=void 0===B?null:B;null!==
U&&(null===B&&(B=!U.classList.contains("cta--on")),B?(U.classList.add("cta--on"),l(U).find("span").innerHTML(U.dataset.textSelected)):(U.classList.remove("cta--on"),l(U).find("span").innerHTML(U.dataset.text)));0<this.el.selectNum.target.length&&(U=this.el.component.find(".pdd16-step-buying-v2__card \x3e .cta--contained.cta--on, .pdd16-step-buying-v2__card-cta .cta--contained.cta--on").target.length,this.el.selectNum.text(U))};aa.prototype.handleSwiperTouchStart=function(U){l(U.currentTarget).find(".pdd16-step-buying-v2__card-list").addClass("swiper-duration--none")};
aa.prototype.handleTransitionEnd=function(U){l(U.wrapperEl).removeClass("swiper-duration--none")};aa.prototype.setMaxHeight=function(U){var B=l(U).target[0];U="pdd16-step-buying-v2__card-header-badge pdd16-step-buying-v2__card-text pdd16-step-buying-v2__card-option pdd16-step-buying-v2__card-badge pdd16-step-buying-v2__card-seller pdd16-step-buying-v2__card-price pdd16-step-buying-v2__card-cta pdd16-step-buying-v2__card-inner".split(" ");U.forEach(function(w){return l(B).find("."+w).css({height:""})});
U.forEach(function(w){w=l(B).find("."+w);var e=w.target.map(function(p){return l(p).outerHeight()}).reduce(function(p,k){return Math.max(p,k)});w.target.forEach(function(p){l(p).css({height:e+"px"})});0>=e&&w.addClass("no-data")})};aa.prototype.resize=function(){this.scroll();this.initSwiper();null!==this.activeTarget&&this.popupResize()};aa.prototype.initSwiper=function(){var U=this;this.el.categoryContents.target.forEach(function(B){h.slideReInit(B);void 0!==B.swiper&&null!==B.swiper&&(B.swiper.off("touchStart",
U.handler.handleSwiperTouchStart).on("touchStart",U.handler.handleSwiperTouchStart),B.swiper.off("transitionEnd",function(){return U.handleTransitionEnd(B.swiper)}).on("transitionEnd",function(){return U.handler.handleTransitionEnd(B.swiper)}));U.setMaxHeight(B)})};aa.prototype.scroll=function(){var U=window.pageYOffset||document.documentElement.scrollTop;if(this.el.bottomWrap.target[0])if(0<U?this.el.bottomWrap.removeClass(this.el.classes.bottomTopClass):this.el.bottomWrap.addClass(this.el.classes.bottomTopClass),
this.bottomPriceTopRect=this.el.bottomWrap.target[0].getBoundingClientRect().bottom,this.bottomPriceTopRect<window.innerHeight){if(U>this.scrollEnd||!this.el.bottomWrap.hasClass(this.el.classes.bottomFixedClass))this.el.bottomWrap.removeClass(this.el.classes.bottomFixedClass),this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass)}else U=window.pageYOffset||document.documentElement.scrollTop,U>this.scrollEnd?this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass):(this.el.bottomWrap.addClass(this.el.classes.bottomFixedClass),
this.el.bottomWrap.addClass(this.el.classes.bottomExpandedClass)),this.scrollEnd=U};aa.prototype.focusLock=function(U){if(U.keyCode===v.keyCode.TAB_KEY){var B=1<this.activeTarget.find(".swiper-slide").target.length?this.activeTarget.find(".swiper-button-prev").hasClass("swiper-button-disabled")?this.activeTarget.find(".swiper-button-next").target[0]:this.activeTarget.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0]:this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];
!1===U.shiftKey&&this.el.closePopupCta.target[0]===document.activeElement?(U.preventDefault(),B.focus()):!0===U.shiftKey&&B===document.activeElement?(U.preventDefault(),this.el.closePopupCta.focus()):!0===U.shiftKey&&this.activeTarget.target[0]===document.activeElement&&(U.preventDefault(),this.el.closePopupCta.focus())}};aa.prototype.activePopup=function(U){U&&(this.activeCta=l(U));H.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();this.activeTarget.on("keydown",this.handler.focusLock);
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?U=this.activeTarget.find(".swiper-button-next").target[0]:(this.activeTarget.find(".swiper-button-prev").attr("tabindex","-1"),this.activeTarget.find(".swiper-button-next").attr("tabindex","-1"),U=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);U.focus();
0>=document.querySelectorAll("[data-aria-hidden]").length&&F(this.activeTarget.target[0]);this.popupResize()};aa.prototype.closePopup=function(){H.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&W();null!==this.activeCta&&this.activeCta.focus();this.activeTarget.hide();this.activeTarget.off("keydown",this.handler.eventFocusLock);l(this.activeCta).focus();this.activeTarget.find(".swiper-button-prev").removeAttr("tabindex");this.activeTarget.find(".swiper-button-next").removeAttr("tabindex");
this.popupResize(!1);this.activeTarget=this.activeCta=null};aa.prototype.popupResize=function(U){U=void 0===U?!0:U;var B=document.documentElement.clientHeight,w=this.activeTarget.find(".layer-popup__inner"),e=this.activeTarget.find(".scrollbar"),p=this.activeTarget.find(".scrollbar__wrap");!0===U?(this.isPc?B<=w.target[0].getBoundingClientRect().height?(w.css({"min-height":B+"px",height:B+"px"}),w=w.target[0].getBoundingClientRect(),B=p.target[0].getBoundingClientRect(),w=parseInt(w.height-B.top),
e.css({height:w+"px"})):(w.css({"min-height":"",height:""}),e.css({height:""})):(p=p.target[0].getBoundingClientRect(),B=parseInt(B-p.top),w.css({"min-height":""}),e.css({height:B+"px"})),setTimeout(function(){u.resize(e.target[0])},300)):(w.css({"min-height":"",height:""}),e.css({height:""}))};var x=function(U){U=void 0===U?{visibleScrollTop:!0}:U;l(".pdd16-step-buying-v2").target.forEach(function(B){aa.instances.has(B)?aa.instances.get(B).reInit():new aa(B)});U.visibleScrollTop&&(H.visibleScroll(),
window.scrollTo(0,0))};aa.instances=new WeakMap;l.ready(x);window.sg.components.stepbuyingV2={init:x,cardReInit:function(U){var B=l(U).closest(".pdd16-step-buying-v2").target[0];aa.instances.has(B)&&aa.instances.get(B).cardReInit(U)},clearAll:function(U){aa.instances.has(U)&&aa.instances.get(U).clearAll()},cardSelect:function(U,B){B=void 0===B?null:B;var w=l(U).closest(".pdd16-step-buying-v2").target[0];aa.instances.has(w)&&aa.instances.get(w).clickSelect(U,B)},activePopup:function(U){l(".pdd16-step-buying-v2").target.forEach(function(B){aa.instances.has(B)&&
aa.instances.get(B).activePopup(U)})},closePopup:function(){l(".pdd16-step-buying-v2").target.forEach(function(U){aa.instances.has(U)&&aa.instances.get(U).closePopup()})}}})();
(function(){var l=window.sg.common.$q,h=window.sg.common.constants.KEY_CODE,H=function(n){var v=this;this.selector={discountTitle:".us-epp-discount__title",selectWrap:".us-epp-discount__select",selectCta:".us-epp-discount__select-cta",selectItem:'.us-epp-discount__select-item input[type\x3d"radio"]',learnMore:".us-epp-discount__select-link .cta",selectOpenCls:"us-epp-discout__select--open",fixedCls:"us-epp-discount--fiexd"};this.el={component:l(n),fixDummy:null};this.isFixOnce=!1;this.handler={toggleLayer:this.toggleLayer.bind(this),
setFocusLock:this.setFocusLock.bind(this),resizeFix:function(){0<v.el.fixDummy.target.length&&v.el.fixDummy.css({height:v.el.component.height()+"px"})}};H.instances.set(n,this);this.setElements();this.init()};H.prototype.setElements=function(){this.el.discountTitle=this.el.component.find(this.selector.discountTitle);this.el.selectWrap=this.el.component.find(this.selector.selectWrap);this.el.selectCta=this.el.component.find(this.selector.selectCta);this.el.hiddenText=this.el.selectCta.find(".hidden");
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};H.prototype.init=function(){this.bindEvents()};H.prototype.reInit=function(){this.setElements();this.bindEvents()};H.prototype.toggleLayer=function(){this.el.selectWrap.hasClass(this.selector.selectOpenCls)?
this.closeLayer():this.openLayer()};H.prototype.openLayer=function(){this.el.selectWrap.addClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Close)};H.prototype.closeLayer=function(){this.el.selectWrap.removeClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Open)};H.prototype.setFixed=function(n){!1===this.isFixOnce&&(this.isFixOnce=!0);n?this.el.component.target[0].classList.contains(this.selector.fixedCls)||this.el.component.addClass(this.selector.fixedCls):
this.el.component.target[0].classList.contains(this.selector.fixedCls)&&this.el.component.removeClass(this.selector.fixedCls)};H.prototype.setFocusLock=function(n){n.keyCode===h.TAB&&!1===n.shiftKey&&(this.el.selectCta.focus(),this.closeLayer(),n.preventDefault())};H.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(n){H.instances.has(n)||new H(n)})};H.instances=new WeakMap;l.ready(u);window.sg.components.usEppDiscount={init:u,reInit:function(){l(".us-epp-discount").target.forEach(function(n){H.instances.has(n)?H.instances.get(n).reInit():new H(n)})},closeLayer:function(){l(".us-epp-discount").target.forEach(function(n){H.instances.has(n)&&H.instances.get(n).closeLayer()})},
setFixed:function(n){l(".us-epp-discount").target.forEach(function(v){H.instances.has(v)&&H.instances.get(v).setFixed(n)})}}})();
(function(l,h){function H(){h("#spaceWidth, #spaceHeight, #spaceDepth").on("keyup",function(){var w=h("#spaceWidth").val(),e=h("#spaceHeight").val(),p=h("#spaceDepth").val();""==w&&""==e&&""==p?u():""!=w&&""!=e&&""!=p&&n()})}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 n(){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()),
p=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&&p<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(U+" "+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(U+" "+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(U+" "+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(U+
" "+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){n();w>=k?h("#spaceWidth").focus():e>=A?h("#spaceHeight").focus():p>=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."),U=Granite.I18n.get("Your dimensions:"),
B=Granite.I18n.get("It will not fit your space. Please measure again.");h(function(){H()});window.sg.components.dynamic.Dimension={init:H}})(window,window.jQuery);
(function(l){var h=window.sg.components.ProductDetailKvNew,H=window.sg.components.PDbuyingToolNew,u=window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2"),n=l(".hdd02-pdp-header"),v=n.find(".sg-pdh-gallery-section"),F=n.find(".sg-pdh-buying-tool");u.PDPHeaderUI={isDebug:!0,$ui:n,optionClose:h.optionClose,openBezelPopup:h.openBezelPopup,triggerChange:H.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:H.showMessage,bindPdTooltipEvent:H.bindPdTooltipEvent,bindComboOfferEvent:H.bindComboOfferEvent,openAddOnLearnMore:H.openAddOnLearnMore,viewMoreVDAddOn:H.viewMoreVDAddOn}}})(jQuery);
var bc_rewards=function(){var l=function(){var H;return{isNew:function(u){return H!==u},get modelCode(){return H},set modelCode(u){this.isNew(u)&&(H=u)}}}(),h=function(H,u){var n,v,F,W;return $jscomp.asyncExecutePromiseGeneratorProgram(function(aa){if(1==aa.nextAddress)return aa.setCatchFinallyBlocks(2),(n=l.isNew(u))?aa.yield(H.fetch(u),4):aa.return();if(2!=aa.nextAddress)return v=aa.yieldResult,F=v.rewardsPolicies,H.setContext(F),l.modelCode=u,aa.leaveTryBlock(0);W=aa.enterCatchBlock();console.error("[Rewards] Fetch error",
W);H.setContext(void 0);aa.jumpToEnd()})};return{calculate:function(H,u){var n;return function(v){for(var F=[],W=0;W<arguments.length;++W)F[W-0]=arguments[W];n&&clearTimeout(n);return new Promise(function(aa){n=setTimeout(function(){var x=$jscomp$this,U;return $jscomp.asyncExecutePromiseGeneratorProgram(function(B){if(1==B.nextAddress)return B.yield(H.apply(x,F),2);U=B.yieldResult;aa(U);B.jumpToEnd()})},u)})}}(function(H){var u,n,v,F,W,aa,x;return $jscomp.asyncExecutePromiseGeneratorProgram(function(U){return 1==
U.nextAddress?(u=H,n=u.modelCode,v=u.totalPrice,F=v.sale,W=u.rewards,aa=W.context,x=W.calculator,U.yield(h(aa,n),2)):aa.initialized?U.return(x.calculate({context:aa,totalPrice:F})):U.return(void 0)})},300),convertToDisplay:function(H,u){if(u){var n=H.rewards;H=n.pageContext;n=n.context;var v=u.totalPoint;H=n.isConfigEnabled("useNumberFormatterByLocale")?new Intl.NumberFormat(H.locale):new Intl.NumberFormat;return{result:u,visible:!!u,formatted:{totalPoint:[H.format(v),"P"].join(" ")},isGuest:n.isGuest,
rewardsMemeberCheckSite:n.rewardsMemeberCheckSite,isNonRewardsMember:n.isNonRewardsMember,isRewardsMember:n.isRewardsMember}}}}}();
(function(l){var h=function(H){var u=void 0===H.config?{}:H.config;H=void 0===H.pageContext?{}:H.pageContext;this.initialized=!1;this.config=u;this.pageContext=H};h.prototype.fetch=function(H){var u=this,n,v,F,W,aa,x,U;return $jscomp.asyncExecutePromiseGeneratorProgram(function(B){n=u.pageContext;v=n.searchDomain;F=n.apiStageInfo;W=n.siteCode;aa=n.channel;x=n.tierCode;U=new URLSearchParams;U.set("siteCode",W);U.set("channel",aa);U.set("modelCode",H);U.set("tierCode",x||"T001");return B.return(new Promise(function(w,
e){$.ajax({url:v+"/"+F+"/b2c/rewards-policy?"+U.toString(),type:"GET",dataType:"json",data:JSON,cache:!0,timeout:2E4,success:function(p){return w(p.response.resultData)},error:function(p){return e(p)}})}))})};h.prototype.setContext=function(H){this.initialized=!!H;this.rewardsPolicies=H||[]};h.prototype.summarizePolicies=function(){var H=this;return this.rewardsPolicies.map(function(u){return Object.assign({},{policyId:u.policyId,policyType:u.policyType,currencyConversionRate:u.currencyConversionRate},
H.sumPolicyItems(u.items))})};h.prototype.sumPolicyItems=function(H){return{fixed:H.filter(function(u){return"1"===u.pointType}).reduce(function(u,n){return u+n.point},0),ratio:H.filter(function(u){return"2"===u.pointType}).reduce(function(u,n){return u+n.point},0)}};h.prototype.isConfigEnabled=function(H){var u=this.pageContext.siteCode;return(H=this.config[H])?0<H.filter(function(n){return n===u}).length:!1};$jscomp.global.Object.defineProperties(h.prototype,{available:{configurable:!0,enumerable:!0,
get:function(){var H=this.pageContext,u=H.isEpp;return this.config.allowedSites.includes(H.siteCode)&&!u}},isGuest:{configurable:!0,enumerable:!0,get:function(){return!this.pageContext.isLogin}},rewardsMemeberCheckSite:{configurable:!0,enumerable:!0,get:function(){var H=this.pageContext,u=H.isEpp;return this.config.rewardsMemeberCheckSite.includes(H.siteCode)&&!u}},isNonRewardsMember:{configurable:!0,enumerable:!0,get:function(){var H=this.pageContext,u=H.tierCode;return!!H.isLogin&&!u}},isRewardsMember:{configurable:!0,
enumerable:!0,get:function(){var H=this.pageContext,u=H.tierCode;return!!H.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(H){var u=H.totalPrice;this.context=H.context;this.state={};this.rewards=void 0;this.modelContext={totalPrice:Number.isNaN(u)?0:Number(u)};this.beforeCalculate();this._calculate();return this.rewards};h.prototype.beforeCalculate=function(){this.state.rewardsPolicies=this.context.summarizePolicies()};h.prototype._calculate=function(){var H=this.modelContext.totalPrice,u=this.state.rewardsPolicies.reduce(function(n,
v){return n+(v.ratio/100*H/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 H(a,c){a=void 0===a?0:a;c=void 0===c?function(){}:c;var m=[],f="";"number"!==typeof a&&(a=0);for(var q=1;q<=a;q++)f="descListText"+q,m.push(f);"function"===typeof c&&c(m);return m}function u(a){var c=$("#priceCurrency").val(),m="se no dk fi fr ch ch_fr at pt cz ro be nl be_fr".split(" ").includes(siteCode),
f=["uk"].includes(siteCode),q="fr"===siteCode?"from":"From";$.each(a,function(ba,J){var ha=!1;ba=$.map(J.itemSet,function(La,Qa){Qa=La.cycle;var Ma="mo"===Qa?1:"yr"===Qa?2:3,Sa=La.oriPriceValue,Ra=La.paymentCycle,Va=currencyComma(Sa,c),Y=La.optionOriWasPrice,ja=currencyComma(Y,c),Aa=null!=La.freeMonths?La.freeMonths:"0";"monthly"==La.paymentCycle&&null!=La.freeMonths&&""!=La.freeMonths&&"0"!=La.freeMonths&&(ha=!0);return{flag:Qa,price:Sa,sortNo:Ma,formattedPrice:Va,paymentCycle:Ra,wasPrice:Y,formattedWasPrice:ja,
freeMonths:Aa}});if("at"==siteCode||"cz"==siteCode||"be"==siteCode||"nl"==siteCode||"be_fr"==siteCode){var qa="ro"==siteCode?"{0}/month SC+":"{0}/month",ia=0,za=0,Ha="",Fa="";$.each(ba,function(La,Qa){if(0==ia||ia>Qa.price)ia=Qa.price,Ha="mo"===Qa.flag?Granite.I18n.get(qa,currencyComma(ia,c)):currencyComma(ia,c);za<Qa.price&&(za=Qa.price,Fa=currencyComma(za,c))});var Ca="";1<ba.length?Ca=""+Granite.I18n.get("From {0} or {1}",[Ha,Fa]):1==ba.length&&(Ca=""+Ha);J.depthOnePrice=Ca}else{ba.sort(function(La,
Qa){return La.sortNo-Qa.sortNo});var Ia=0;if("es"===siteCode){var Ta=99999999;$.map(ba,function(La,Qa){"monthly"!=La.paymentCycle&&(La.price<Ta&&(Ia=La.formattedPrice),Ta=La.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 Oa=99999999;$.map(ba,function(La,Qa){"monthly"==La.paymentCycle&&(La.price<Oa&&(Ia=La.formattedPrice),Oa=La.price)})}var ka=!0,Ja=$.map(ba,
function(La,Qa){var Ma="";["uk","it","fr","ro"].includes(siteCode)?ha?"monthly"===La.paymentCycle&&ka&&null!=La.freeMonths&&"0"!=La.freeMonths&&(Ma=Granite.I18n.get("freeMonths {0}/month, from {1}",[La.freeMonths,Ia]),ka=!1):ka&&(Ma+=""+La.formattedPrice,"mo"===La.flag&&(Ma+=""+Granite.I18n.get("SC+ Popup Bundle mo price"))):["ae","ae_ar"].includes(siteCode)?ha?"monthly"===La.paymentCycle&&ka&&null!=La.freeMonths&&"0"!=La.freeMonths&&(Ma=Granite.I18n.get("freeMonths {0}/month, from {1}",[La.freeMonths,
Ia]),ka=!1):ka&&(Ma+=""+La.formattedPrice,"mo"===La.flag&&(Ma+="/"+Granite.I18n.get("month"))):"es"==siteCode?"monthly"===La.paymentCycle?Ma+=La.formattedPrice+"/mes":(ka&&(Ma+=Ia),isNotEmpty(La.flag)&&f&&(Ma+="/"+Granite.I18n.get(La.flag)),ka=!1):["se","dk","no","fi"].includes(siteCode)?"monthly"===La.paymentCycle&&ka&&(Ma=null!=La.freeMonths&&"0"!=La.freeMonths?Granite.I18n.get("freeMonths {0}/month, from {1}",[La.freeMonths,Ia]):Granite.I18n.get("freeMonths_null {0}/month",[Ia]),ka=!1):"de"==siteCode?
(0===Qa&&m&&(Ma=Granite.I18n.get(q)+" "),Ma+=""+La.formattedPrice,Ma="mo"===La.flag?Ma+(""+Granite.I18n.get("SC+ Popup Bundle mo price")):isNotEmpty(La.flag)&&f?Ma+("/"+Granite.I18n.get(La.flag)):Ma+(""+Granite.I18n.get("SC+ Popup Bundle upfront price"))):(0===Qa&&m&&(Ma=Granite.I18n.get(q)+" "),Ma+=""+La.formattedPrice,"mo"===La.flag?Ma+="/"+Granite.I18n.get(La.flag):isNotEmpty(La.flag)&&f&&(Ma+="/"+Granite.I18n.get(La.flag)));return Ma}).join(" "+Granite.I18n.get("or")+" ");ba=["se","no","fi","dk"];
Ca=" "+Granite.I18n.get("or")+" ";"uk ae ae_ar it fr ro".split(" ").includes(siteCode)&&(ka?(Ja=Ja.split(Ca),Ja.sort(function(La,Qa){return La.substring(0,La.indexOf(" "))-Qa.substring(0,Qa.indexOf(" "))}),["ae","ae_ar"].includes(siteCode)&&2<Ja.length&&Ja.splice(1,Ja.length-2),Ja=Ja.join(" "+Granite.I18n.get("or")+" ")):ba.push(siteCode));if("es"===siteCode){Ja=Ja.trim();for(var Da=0;3>Da;Da++)Ja.endsWith("o")&&(Ja=Ja.slice(0,-2))}ba.includes(siteCode)&&(Ja=Ja.replaceAll(Ca,""));J.depthOnePrice=
Ja}})}function n(a,c){a=Number(a)/Number(c)*Math.pow(10,2);a=Number(a).toFixed(2);return a=a.replace(".",",")}function v(a,c,m){a=(Number(c)-Number(m))/Number(m)*Math.pow(10,2);console.log(a);a=Math.round(a);console.log(a);return a}function F(a,c){digitalData.product.model_code=a.modelCode?a.modelCode.replace(/&/g," 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="",f=digitalData.page.pageInfo.siteCode;""!=digitalData.page.pathIndicator.depth_2&&(f+=":"+digitalData.page.pathIndicator.depth_2,
c=2,m=digitalData.page.pathIndicator.depth_2);""!=digitalData.page.pathIndicator.depth_3&&(f+=":"+digitalData.page.pathIndicator.depth_3,c=3,m=digitalData.page.pathIndicator.depth_3);""!=digitalData.page.pathIndicator.depth_4&&(f+=":"+digitalData.page.pathIndicator.depth_4,c=4,m=digitalData.page.pathIndicator.depth_4);""!=digitalData.page.pathIndicator.depth_5&&(f+=":"+digitalData.page.pathIndicator.depth_5,c=5,m=digitalData.page.pathIndicator.depth_5);var q=a.currentPdpUrl?a.currentPdpUrl.split("/"):
[];if(q&&0<q.length){a="";q=$jscomp.makeIterator(q);for(var ba=q.next();!ba.done;ba=q.next())(ba=ba.value)&&""!==ba&&(a=ba);a=a.replace(/&/g," and ").replace(/  /g," ");digitalData.page.pathIndicator["depth_"+c]=a;f.replace(m,a)}}function W(a,c){c=a.siteCode;if("pt"===c||"es"===c||"fr"===c)if(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(f){f.response&&f.response.resultData&&f.response.resultData.storeInfo&&"Y"===f.response.resultData.storeInfo.rewardsDisplayYN&&$("#pd-rewards-msg").show()}});a.isNotFirstReward=!0}}else $("#pd-rewards-msg").show()}function aa(a,c,m){m=m.buyingToolOptMemory;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 f=a.util,q=c.buyingToolOptOffer.find(".pd-offer__item.bogo"),ba=f.hasOffer(a,c);c=f.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 U(a,c,m){var f=a.disabledClass;c=c.buyingToolOptCareResult;f=c.hasClass(a.hasComponentClass)&&!c.hasClass(f);var q=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+
parseFloat(q),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function B(a,c,m){var f=a.disabledClass;c=c.buyingToolOptWarrantyResult;f=c.hasClass(a.hasComponentClass)&&!c.hasClass(f);var q=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+parseFloat(q),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function w(a,c,m){var f=a.disabledClass;c=c.buyingToolOptWarrantyVdResult;
f=c.hasClass(a.hasComponentClass)&&!c.hasClass(f);c=c.find(".option-result__text-wrap").attr("data-price");f&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function e(a,c,m){var f=a.util,q=$(c.buyingToolOptTradeInResult);c=f.hasTradeInResult(a,c);q="vn"==siteCode?q.find(".option-result__multiple").attr("data-price"):q.find(".result-price").attr("data-price");c&&q&&!a.drawObj.tradeInResult.priceOverFlag&&(m.sale=parseFloat(m.sale)-
parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function p(a,c,m){var f=a.util.hasAssuredBuyBackResultResult(a,c),q=c.buyingToolOptAssuredBuyBackResult;c=q.find(".result-price").attr("data-price");q=q.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function k(a,c,m){var f=a.util.hasNewAssuredBuyBackResult(a,c),q=c.buyingToolOptNewAssuredBuyBackResult;c=q.find(".result-price").attr("data-price");
q=q.find(".result-price").attr("data-sale-price");f&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(q),a.getOptoinPrice||(a.getOptoinPrice=!0))}function A(a,c,m){var f=a.hasComponentClass,q=a.disabledClass,ba=c.buyingToolOptOffer.find(".pd-offer__item.giftBundle");c=c.buyingToolOptOffer;if(c.hasClass(f)&&!c.hasClass(q))for(c=0;c<ba.length;c++){var J=$(ba.get(c));if(J.hasClass(f)&&!J.hasClass(q)){J=J.find(".pd-offer__selected-bundle");for(var ha=0;ha<J.length;ha++){var qa=
$(J.get(ha)).attr("data-price"),ia=$(J.get(ha)).attr("data-sale-price");qa&&(m.original=parseFloat(m.original)+parseFloat(qa),m.sale=parseFloat(m.sale)+parseFloat(ia),a.getOptoinPrice||(a.getOptoinPrice=!0))}}}}function ca(a,c,m){var f=a.hasComponentClass,q=a.disabledClass,ba=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=c.buyingToolOptOffer;if(c.hasClass(f)&&!c.hasClass(q))for(c=0;c<ba.length;c++){var J=$(ba.get(c));if(J.hasClass(f)&&!J.hasClass(q)){J=J.find(".pd-offer__selected-bundle");
for(var ha=0;ha<J.length;ha++){var qa=$(J.get(ha)).attr("data-price"),ia=$(J.get(ha)).attr("data-sale-price");qa&&(m.original=parseFloat(m.original)+parseFloat(qa),m.sale=parseFloat(m.sale)+parseFloat(ia),a.getOptoinPrice||(a.getOptoinPrice=!0))}}}}function K(a,c,m){var f=a.hasComponentClass,q=a.disabledClass;c=$(c.buyingToolOptTariffResult);f=c.hasClass(f)&&!c.hasClass(q);q=c.find(".result-price").attr("data-price");f&&q&&("fr"==a.siteCode?(m.original=parseFloat(m.original),m.sale=parseFloat(m.sale)+
parseFloat(q)):(m.original=parseFloat(m.original)-parseFloat(a.proudctPriceInfo.orignalPrice)+parseFloat(q),m.sale=parseFloat(m.sale)-parseFloat(a.proudctPriceInfo.salePrice)+parseFloat(q)),a.getOptoinPrice||(a.getOptoinPrice=!0))}function D(a,c,m){a.drawObj.tariffOptionResult.hasComponent&&("uk"===siteCode?(m.original=parseFloat(m.original)-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 g(a,c,m){var f=c.buyingToolOptEmbedAddon;c=f.hasClass(a.hasComponentClass);var q=0<$(".option-embed-addon .add-on-product-list-wrap--vd").length?".add-on-product-list-wrap--vd":".add-on-product-list-wrap",ba=parseFloat(f.find(q).attr("data-total-price"));f=parseFloat(f.find(q).attr("data-total-sale-price"));c&&ba&&(m.original=parseFloat(m.original)+
ba,m.sale=parseFloat(m.sale)+f,a.getOptoinPrice||(a.getOptoinPrice=!0))}function C(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptBetween.on("click","#pd-leasing-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util;"nl"===f.siteCode&&(!0===f.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").show(),$(".pd-select-option.pd-select-option--type-offer").show());q.hasBetween(f,m)&&(q.removeBetweenResult(f,m),q.totalAfterFunction(f,m))});c.buyingToolOptBetween.on("click",
"#pd-leasing-1",a,function(m){$(this).attr("data-payment-value");var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=q.hasBetween(f,m);q.hasTradeInResult(f,m);"nl"===f.siteCode&&(!0===f.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").hide(),$(".pd-select-option.pd-select-option--type-offer").hide());ba&&(q.addBetweenResult(f,m),q.totalAfterFunction(f,m))})}function E(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariffPlan.on("click","#pd-carrier-0",a,function(m){var f=
m.data.sharedObj;m=m.data.selectorObj;var q=f.util;q.removeTariffPlanResult(f,m);q.totalAfterFunction(f,m)});c.buyingToolOptTariffPlan.on("click",".option-input:not(#pd-carrier-0)",a,function(m){var f=$(this),q=m.data.sharedObj;m=m.data.selectorObj;var ba=q.util,J=q.tariffPlanSelectedClass;ba.hasTariffPlan(q,m)&&(ba.removeTariffPlanSelectedClass(q,m),f.addClass(J),ba.addTariffPlanResult(q,m),ba.totalAfterFunction(q,m))})}function T(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#pd-trade-in-0, .open-trade-popup",
a,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.util,ha=q.shopSkuCode,qa=J.hasTradeIn(q,ba),ia=J.hasOffer(q,ba),za=q.pdHrefLang,Ha=q.pdMultiLanguageYN,Fa=q.apiDomain,Ca=q.proudctPriceInfo.salePrice,Ia=J.hasForeverResult(q,ba),Ta=q.tradeInType,Oa=!1,ka=!1;f.preventDefault();if(!qa)return!1;if((new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()){if(q.isMultiTradeIn){Fa=$(f.currentTarget).attr("data-trade-index");q.checkedIndex=-1;if(!Fa&&q.drawObj.tradeInResult.list&&
q.drawObj.tradeInResult.list.length>=q.maxTradeInsAllowed)return!1;Fa&&(q.checkedIndex=Fa)}(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein");bc_common_tradeIn.init(q.modelCode)}else if("in"===siteCode)ia&&(Oa=J.hasBogo(q,ba),ka=J.hasComboResult(q,ba)),"CE"===Ta?("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&window.flutter_inappwebview.callHandler("getPinCode").then(function(Ja){sielTradeIn.prepopulatePinCode(Ja)}).catch(function(){}),
window.sg.components.sielTradeInPopup.showPopup()):(0==$(".bc-exchange-popup").length&&(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("instant-exchange"),setTimeout(function(){Oa||ka?configuratorExchange.setExchange(!0,Ca,Ia):configuratorExchange.setExchange(!1,Ca,Ia);window.sg.components.bcExchangePopup.showPopup()},200));else if("uk"===siteCode&&"CE"===Ta)-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),f=q.proudctPriceInfo.orignalPrice,tradeinData.setTradein(f,Fa?"LEASE":"PURCHASE"),tradeinData.showPopup()):(f={sku:ha},ya&&(f.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(f),xhrFields:{withCredentials:!0},beforeSend:function(Ja){"Y"===Ha&&Ja.setRequestHeader("x-ecom-locale",za)},success:function(Ja){if(Ja){var Da=q.util.hasBetweenResult(q,ba);tradeinData.setTradein(Ja,q.proudctPriceInfo.orignalPrice,Da?"LEASE":"PURCHASE");tradeinData.showPopup()}},error:function(Ja){var Da="";Ja.responseJSON&&Ja.responseJSON.message&&(Da=Ja.responseJSON.message);confirmPopup(Da)}}));
else{if(q.isMultiTradeIn){Fa=$(f.currentTarget).attr("data-trade-index");q.checkedIndex=-1;if(!Fa&&q.drawObj.tradeInResult.list&&q.drawObj.tradeInResult.list.length>=q.maxTradeInsAllowed)return!1;Fa&&(q.checkedIndex=Fa)}tradeinData.showPopup()}});var m=function(f,q){var ba=f.util,J=f.view,ha=f.drawObj,qa=ba.hasForever(f,q),ia=ba.hasUpgradeResult(f,q),za=$("#siteCode").val(),Ha=window.location.pathname.replace("/content/samsung","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(Ha)&&
sessionStorage.removeItem(Ha);null!==ha.deliveryResult.priorityText&&!0===ha.tradeInResult.isUpfront&&$(q.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(f.isMultiTradeIn){if(-1<f.checkedIndex){"kz_kz"===f.siteCode||"kz_ru"===f.siteCode?(ha.tradeInResult.list.forEach(function(Ta){bc_common_tradeIn.removeDevice(Ta.imeiKey)}),ha.tradeInResult.list.splice(0)):ha.tradeInResult.list.splice(f.checkedIndex,1);Ha=ha.tradeInResult.additionalDiscountFlag;("sg"===za||"vn"===za||"id"===za||
Ha)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(f,ha.tradeInResult);for(Ha=0;Ha<ha.tradeInResult.list.length;Ha++)ha.tradeInResult.list[Ha].index=Ha;"cn"==za&&(Ha=ha.tradeInResult.list,void 0!=ha.tradeInResult&&void 0!=Ha&&0<Ha.length&&(Ha=bc_common_tradeIn.directConditionCall(),Ha.done(function(Ta,Oa,ka){var Ja=ha.tradeInResult.list.length,Da=0,La=0;$.each(Ta.result.additionalParameters.entry,function(Qa,Ma){"ticketMoney"===Ma.key&&(Da=Ma.value);"o2oTicketMoney"===Ma.key&&
(La=Ma.value)});$.each(ha.tradeInResult.list[Ja-1].services.tradeInAdditionalInfo,function(Qa,Ma){"ticketMoney"===Ma.key&&(ha.tradeInResult.list[Ja-1].services.tradeInAdditionalInfo[Qa].value=Da);"o2oTicketMoney"===Ma.key&&(ha.tradeInResult.list[Ja-1].services.tradeInAdditionalInfo[Qa].value=La)})}),Ha.fail(function(Ta,Oa,ka){})))}else ha.tradeInResult.list=[];if(f.isMultiTradeIn&&ha.tradeInResult.list&&0<ha.tradeInResult.list.length){if(("hr"===za||"si"===za)&&"0"==f.checkedIndex){Ha=ha.tradeInResult.list[0];
var Fa=Ha.specialPrice;void 0!=Fa&&(Ha.discountPrice=parseFloat(Ha.dataPrice)+parseFloat(Fa),Ha.discountPriceText=""+currencyComma(Ha.discountPrice,f.priceCurrency),Ha.discountText1=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(Ha.dataPrice),f.priceCurrency),Ha.dataPrice=parseFloat(Ha.dataPrice)+parseFloat(Fa),Ha.specialDiscountText=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(Fa),f.priceCurrency))}"tr"==za?(ha.tradeInResult.dataPrice=ha.tradeInResult.list.reduce(function(Ta,
Oa){return Ta+parseInt(Oa.dataCashBack)},0),ha.tradeInResult.dataPrice+=ha.tradeInResult.list[0].services.tradeInSpecialPrice,ha.tradeInResult.list[0].firstcheck=!0,ha.tradeInResult.list[0].othercheck=!1):ha.tradeInResult.dataPrice=ha.tradeInResult.list.reduce(function(Ta,Oa){return Ta+Oa.dataPrice},0);if("cn"==za){var Ca=0;$.each(ha.tradeInResult.list,function(Ta,Oa){$.each(Oa.services.tradeInAdditionalInfo,function(ka,Ja){"ticketMoney"===Ja.key&&Ca<Ja.value&&(Ca=Ja.value)})});ha.tradeInResult.totalTicketMoney=
Ca;ha.tradeInResult.totalTicketMoneyText=0==Ca?"":Granite.I18n.get("Additional Trade in discount from Samsung")+": "+currencyComma(Ca,f.priceCurrency);ha.tradeInResult.dataPrice=parseFloat(ha.tradeInResult.dataPrice)+parseFloat(Ca);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Ia=0;$.each(ha.tradeInResult.list,function(Ta,Oa){$.each(Oa.services.tradeInAdditionalInfo,function(ka,Ja){"o2oTicketMoney"===Ja.key&&Ia<Ja.value&&(Ia=Ja.value)})});ha.tradeInResult.totalO2oTicketMoney=
Ia;ha.tradeInResult.totalO2oTicketMoneyText=0==Ia?"":Granite.I18n.get("O2O special subsidy")+": "+currencyComma(Ia,f.priceCurrency);ha.tradeInResult.dataPrice=parseFloat(ha.tradeInResult.dataPrice)+parseFloat(Ia)}}Ha=Number(ha.tradeInResult.dataPrice)-Number(f.proudctPriceInfo.salePrice);f.minOrderEntryValue&&(Ha+=Number(f.minOrderEntryValue));"be"===za||"be_fr"===za||"nl"===za||"sg"===za||"vn"===za||"my"===za||"id"===za||"fr"===za||"de"===za||"sa"===za||"sa_en"===za||"cl"===za?(ha.tradeInResult.totalAmountText=
currencyComma(ha.tradeInResult.dataPrice,f.priceCurrency),0<Ha?(ha.tradeInResult.priceOverFlag=!0,ha.tradeInResult.excessAmount=Ha,ha.tradeInResult.tenText=currencyComma(f.minOrderEntryValue,f.priceCurrency)):ha.tradeInResult.priceOverFlag=!1):ha.tradeInResult.priceOverFlag=ha.tradeInResult.dataPrice>f.proudctPriceInfo.salePrice?!0:!1;"tr"==za&&(ha.tradeInResult.dataPrice=0)}q.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").removeClass("cta--disabled").prop("disabled",!1);
("sg"==za||"my"==za)&&(Ha=q.buyingToolOptTradeInResult.find(".limit-count"))&&0<Ha.length&&!Ha.is(":visible")&&Ha.show()}f.isMultiTradeIn&&0!=ha.tradeInResult.list.length?1===ha.tradeInResult.list.length&&"de"===za&&f.isMultiTradeIn&&f.hasStackbleTradeInFreeGiftPromotion&&!f.hasTradeInFreeGiftPromotion&&(f.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(ha.tradeInResult={hasComponent:!1,description:"",dataPrice:"",dataCashBack:"",dataCash:"",price:"",disclaimer:"",
list:[]},ma.triggerChange(document.querySelector("#pd-trade-in-1")),"de"===za&&(f.hasTradeInFreeGiftPromotion||f.isMultiTradeIn&&f.hasStackbleTradeInFreeGiftPromotion)&&(f.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)));f.exchangeApiData={exchangeFlag:!1};J.tradeInResultDraw(ha);ia&&J.upgradeResultDraw(ha);qa&&ba.foreverDraw(f,q);ba.totalAfterFunction(f,q);f.isMultiTradeIn?ba.hasTradeInResult(f,q)||delete f.globalServiceInfo.tradein:f.globalServiceInfo.tradein&&
delete f.globalServiceInfo.tradein;(f=$(q.buyingToolOptTradeIn).find('input[data-target-popup\x3d"deleteTradeInPopUp"]'))&&f.focus();"se"===za&&0<$(".samsung-flex-options .pd-select-option__item").length&&(window.sg.components.SamsungFlexPopup.tradeUpEnabled=!1,window.sg.components.SamsungFlexPopup.updateText(),$(".samsung-flex-options .pd-select-option__item").each(function(Ta,Oa){$(".samsung-flex-options .pd-select-option__item").eq(Ta).find("#trade-up-default-0"+Ta).attr("disabled",!1)}),za=$(".samsung-flex-trade-in-notice.pd-select-option__notice.pd-select-option__notice--normal"),
0<za.length&&za.hasClass("is-show")&&za.removeClass("is-show"))};c.buyingToolOpt.on("click","#pd-trade-in-1, .remove-trade-in-result",a,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.util,ha=q.siteCode;$("#categorySubTypeCode").val();var qa="hr"===ha||"si"===ha,ia=J.hasTradeInResult(q,ba);q.isMultiTradeIn&&(f=$(f.currentTarget).attr("data-trade-index"),q.checkedIndex=-1,f&&(q.checkedIndex=f));if(ia)if(ia=!0,"ro"!==ha||q.isTradeUp||(ia=!1),q.ceTradeUpPopup.isEnabled&&ia)window.CeTradeUpPopup.showResetConfirmPopup(function(){m(q,
ba)});else{ia=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?");"ee"===ha||"lv"===ha||"lt"===ha||"pl"===ha||"at"===ha||"kz_kz"===ha||"kz_ru"===ha||"ro"===ha||"bg"===ha?ia=Granite.I18n.get("You're sure you want to delete this item?"):"pe"===ha||qa?ia=Granite.I18n.get("Do you want to proceed?"):"au"===ha||"jp"===ha?ia=" ":"be"===ha||"be_fr"===ha||"nl"===ha?ia=Granite.I18n.get("Are you sure you want to delete this option?"):"in"===ha?ia=Granite.I18n.get("Selected exchange will be removed.")+
"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"):"th"===ha&&(ia=Granite.I18n.get("Please check again."));$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-trade-in");confirmPopup(ia,"delete");"au"===ha?($(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Are you sure you want to remove this item?")),$(".confirm-popup").find(".cta--black").html(Granite.I18n.get("Cancel")),$(".confirm-popup").find(".cta--emphasis").html(Granite.I18n.get("Remove"))):
"kz_kz"===ha||"kz_ru"===ha||"nl"===ha?$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Remove")):"in"===ha?$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Remove Exchange")):$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Selected options will be reset."));"pl"===ha&&$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Delete"));"ro"!==ha&&"bg"!==ha&&"jp"!==ha&&"cn"!==ha||$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Selected options will be reset.(Trade-In)"));
if("sk"===ha||"cz"===ha)$(".confirm-popup").find(".confirm-popup__title").html(""),$(".confirm-popup").find(".cta--black").html(Granite.I18n.get("No")),$(".confirm-popup").find(".cta--emphasis").html(Granite.I18n.get("Yes"));J.settingCommonPopupTagging("tradeIn",q,ba);"CE"==q.tradeInType&&sielTradeIn.initializeStep("all");ma.triggerChange(document.querySelector("#pd-trade-in-0"))}else ma.triggerChange(document.querySelector("#pd-trade-in-1"))});c.buyingToolOptTradeIn.on("click",'.cta[data-target-popup\x3d"tradeInLearnMorePopup"]',
a,function(f){window.sg.components.tradeInLearnMorePopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-trade-in"]',a,function(f){m(f.data.sharedObj,f.data.selectorObj)});$(document).on("click",".trade-in-popup-v3__close, .trade-in-popup-v3__btn-close, .trade-in-popup__close, .trade-in-popup__btn-close, .cn-trade-in-popup__close, .cn-trade-in-popup__step1.cn-trade-in-popup__footer.cta--outlined, .trade-in-popup-v4__close, .trade-in-popup-v4__btn-close, .bc-exchange-popup__close, .vd-trade-in-popup__close, .sdf-comp-step-panel-product .sdf-comp-button-back",
a,function(f){f.data.sharedObj.drawObj.tradeInResult.hasComponent||ma.triggerChange(document.querySelector("#pd-trade-in-1"))})}function R(a,c){var m=ya?a.apiDomain:$("#storeDomain").val(),f=a.siteCode,q=ya?{withCredentials:!0}:{},ba={sharedObj:a,selectorObj:c};a={sku:[a.modelCode]};a=JSON.stringify(a);var J=null;"tr"==f&&$.ajax({url:m+"/tokocommercewebservices/v2/"+f+"/stocks/cities",type:"POST",dataType:"json",cache:!0,xhrFields:q,crossDomain:!0,timeout:2E4,data:a,headers:{"content-type":"application/json"},
success:function(ha){J=ha},error:function(ha){J=null}});c.buyingToolOptCheckDealerStock.on("click",".menu__list-wrap",ba,function(ha){var qa=ha.data.sharedObj,ia=qa.drawObj,za=$(ha.data.selectorObj.buyingToolOptCheckDealerStock),Ha=za.find("select[name\x3dcheck-dealer-stock]").val(),Fa=ia.checkDealerStock,Ca="",Ia="";ha.preventDefault();za.find(".pd-select-option__notice--normal").removeClass("is-show");za.find(".pd-select-option__check-message--success").removeClass("is-show");za.find(".pd-select-option__check-message--error").removeClass("is-show");
za.find(".pd-select-option__check-message--success").html(Ca);"select City"!=Ha?J&&void 0!=J.detailList?void 0!=J.detailList.stockWithCity&&0<J.detailList.stockWithCity.length?(ha=J.detailList.stockWithCity.find(function(Ta){return Ta.isocodeShort==Ha}),Ca=J.detailList.nerpStock,"OUTOFSTOCK"==qa.stockLevelStatus?0>=Ca&&(void 0!=ha?0<ha.quantity?(Ia=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ia=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ia=Granite.I18n.get("Get stock alert"),
$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Ca?void 0!=ha?0<ha.quantity?(Ca="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ca),za.find(".pd-select-option__check-message--success").addClass("is-show"),
Ia=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ia=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ia=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
ha?0<ha.quantity?(Ca="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ca),za.find(".pd-select-option__check-message--success").addClass("is-show")):za.find(".pd-select-option__check-message--error").addClass("is-show"):za.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==qa.stockLevelStatus?Ia=Granite.I18n.get("Get stock alert"):(za.find(".pd-select-option__check-message--error").addClass("is-show"),
Ia=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ia="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ia="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ia.checkDealerStock=
Fa});c.buyingToolOptCheckDealerStock.on("change",".menu__select",ba,function(ha){var qa=ha.data.sharedObj,ia=qa.drawObj,za=$(ha.data.selectorObj.buyingToolOptCheckDealerStock),Ha=za.find("select[name\x3dcheck-dealer-stock]").val(),Fa=ia.checkDealerStock,Ca="",Ia="";ha.preventDefault();za.find(".pd-select-option__notice--normal").removeClass("is-show");za.find(".pd-select-option__check-message--success").removeClass("is-show");za.find(".pd-select-option__check-message--error").removeClass("is-show");
za.find(".pd-select-option__check-message--success").html(Ca);"select City"!=Ha?J&&void 0!=J.detailList?void 0!=J.detailList.stockWithCity&&0<J.detailList.stockWithCity.length?(ha=J.detailList.stockWithCity.find(function(Ta){return Ta.isocodeShort==Ha}),Ca=J.detailList.nerpStock,"OUTOFSTOCK"==qa.stockLevelStatus?0>=Ca&&(void 0!=ha?0<ha.quantity?(Ia=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ia=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ia=Granite.I18n.get("Get stock alert"),
$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Ca?void 0!=ha?0<ha.quantity?(Ca="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ca),za.find(".pd-select-option__check-message--success").addClass("is-show"),
Ia=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ia=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(za.find(".pd-select-option__check-message--error").addClass("is-show"),Ia=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
ha?0<ha.quantity?(Ca="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ha.quantity)+"\x3c/span\x3e",za.find(".pd-select-option__check-message--success").html(Ca),za.find(".pd-select-option__check-message--success").addClass("is-show")):za.find(".pd-select-option__check-message--error").addClass("is-show"):za.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==qa.stockLevelStatus?Ia=Granite.I18n.get("Get stock alert"):(za.find(".pd-select-option__check-message--error").addClass("is-show"),
Ia=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ia="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ia),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ia="INSTOCK"==qa.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ia),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ia),$(".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 f=m.data.sharedObj,q=f.util.hasTariffOption(f,m.data.selectorObj);m.preventDefault();if(!q)return!1;f.isMigrationHybris?tariffData.showPopup():"GPv2"===f.apiFlag?tariffData.setTariff(f.syndiProductData):tariffData.showPopup(f.hybrisApiData.tarriffOption)});c.buyingToolOpt.on("click","#pd-tariff-option-1, .remove-tariff-option-result",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;
var q=f.util,ba=q.hasTariffOptionResult(f,m);ma.triggerChange(document.querySelector("#pd-tariff-option-1"));ba&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-tariff-option"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("tariffOption",f,m))});c.buyingToolOptTariff.on("click",'.cta[data-target-popup\x3d"tariffInfoPopup"]',
a,function(m){window.sg.components.tariffInfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-tariff-option"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;ma.triggerChange(document.querySelector("#pd-tariff-option-1"));J.tariffOptionResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataPrice:null,dataSimskuCode:null,dataModelCode:null,dataId:null};if("de"===f.siteCode){var ha=
window.sg.components.dynamic.detailSharedObj.relatedProductsObj;if(f.hasTariffGift)if(q.isNotEmpty(ha)){var qa={};f.hasGift=!0;f.hasGiftBundle=!1;window.sg.components.dynamic.freeGiftHybrisCommon.relatedProductsSimpleInfoSuccessCallBackFunc(ha,f,qa);window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)}else f.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1);f.hasPlanIDAndFreeGiftPromotion&&(f.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0))}(ha=
tariffData.BROADBAND_CACHE.returnObject)&&ha.isBroadbandService&&tariffData.removeBroadbandCache();ba.tariffOpionResultDraw(J);q.totalAfterFunction(f,m);f.globalServiceInfo.tariff&&delete f.globalServiceInfo.tariff})}function ea(a,c){var m=c.buyingToolOptOffer;c={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.giftBundle .s-btn-gift-popup",c,function(f){var q=$(this),ba=f.data.sharedObj;f=f.data.selectorObj;var J=ba.util;q=q.closest(".giftBundle");var ha=ba.disabledClass;f=J.hasOffer(ba,
f)&&!q.hasClass(ha);J=$(this).attr("data-gift-idx");"0"===J&&(J=null);ba.checkedGiftArea=q;f&&(ba.isGpv2?window.sg.components.dynamic.freeGiftGPv2.giftPopupGrid(J):ba.isMigrationHybris?window.sg.components.dynamic.freeGiftNewHybris.giftPopupGrid(J):window.sg.components.dynamic.freeGiftHybris.giftPopupGrid(J))});m.on("click",".pd-offer__item.giftBundle .pd-offer__selected-bundle-cancel",c,function(f){var q=$(this),ba=f.data.sharedObj;f=f.data.selectorObj;q=q.attr("data-event-index");var J=Granite.I18n.get("Selected options will be reset.")+
"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),ha=ba.util;$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-gift");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-index",q);confirmPopup(J,"delete");ha.settingCommonPopupTagging("combo",ba,f)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-gift"]',c,function(f){f=$(this).attr("data-event-index");var q=a.view,ba=a.drawObj,
J=ba.offer.gift.item.bundleList;J.splice(f,1);if(1>J.length)ba.offer.gift.item.hasBundle=!1,ba.offer.gift.item.learnMoreCta.giftIdx=0;else for(var ha in J)J[ha].dataEventType=ha;q.productOfferDraw(ba)})}function va(a,c){var m=c.buyingToolOptOffer,f={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.compoBundle .s-btn-combo-popup",f,function(q){var ba=$(this),J=q.data.sharedObj;q=q.data.selectorObj;var ha=J.util;ba=ba.closest(".compoBundle");var qa=J.disabledClass;q=ha.hasOffer(J,q)&&!ba.hasClass(qa);
ha=ba.attr("data-combo-index");var ia=[];J.checkedComboArea=ba;q&&(0<ba.find(".pd-offer__selected-bundle").length&&ba.find(".pd-offer__selected-bundle").each(function(){ia.push($(this).attr("data-index"))}),window.sg.components.dynamic.comboPopup.comboPopupGrid(J.globalComboData[ha],ia),window.sg.components.shopComboPopup.showPopup())});m.on("click",".pd-offer__item.compoBundle .pd-offer__selected-bundle-cancel",f,function(q){var ba=$(this),J=q.data.sharedObj;q=q.data.selectorObj;ba=ba.attr("data-event-index");
var ha=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),qa=J.util;$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-combo");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-index",ba);confirmPopup(ha,"delete");qa.settingCommonPopupTagging("combo",J,q)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-combo"]',f,function(q){var ba=
$(this).attr("data-event-index").split("-");q=Number(ba[1]);ba=Number(ba[2]);var J=a.view,ha=a.util,qa=a.drawObj,ia=qa.offer.combo,za=null;for(Fa in ia){var Ha=ia[Fa];if(Ha.comboIndex===q){za=Ha;break}}if(za){var Fa=za.item.bundleList;Fa.splice(ba,1);1>Fa.length&&(za.hasBundle=!1);for(var Ca in Fa)Fa[Ca].dataEventType="combo-"+q+"-"+Ca}J.productOfferDraw(qa,!0);J.tradeInResultDraw(qa);ha.totalAfterFunction(a,c);a.globalServiceInfo.combo&&delete a.globalServiceInfo.combo})}function ra(a,c){a={sharedObj:a,
selectorObj:c};c.buyingToolOptUpgrade.on("click","#pd-samsung-upgrade-0",a,function(m){var f=m.data.sharedObj,q=m.data.selectorObj,ba=f.util,J=$(this),ha=ba.hasTradeInResult(f,q),qa=ba.hasCareResult(f,q),ia=ba.hasUpgrade(f,q),za=f.eupData,Ha=f.drawObj,Fa=f.view;if(J.hasClass("hybris-es-yes"))$("#pd-samsung-upgrade-0").attr("checked","checked"),$("#pd-samsung-upgrade-1").prop("checked",!1),Ha.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(Ha),ma.triggerChange(document.querySelector("#pd-samsung-upgrade-0")),ba.totalAfterFunction(f,q),$(q.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(Granite.I18n.get("With Samsung Upgrade, Enjoy Free Insurance!")),$("#pd-rewards-msg").text(Granite.I18n.get("Financing for 24 months. Fixed Debtor Rate 0.00%, T.A.E. 0,00%*"));else{m.preventDefault();if(!ia)return!1;ha?0===f.tradeInSelectCnt&&
(za.salePrice-=f.tradeInSelectPrice,f.tradeInSelectCnt++):1===f.tradeInSelectCnt&&(za.salePrice+=f.tradeInSelectPrice,f.tradeInSelectCnt--);qa?0===f.smcSelectCnt&&(za.salePrice+=f.smcSelectPrice,f.smcSelectCnt++):1===f.smcSelectCnt&&(za.salePrice-=f.smcSelectPrice,f.smcSelectCnt--);buyingPdEup.eupPopupGrid(f.eupData)}});c.buyingToolOpt.on("click","#pd-samsung-upgrade-1, .remove-upgrade-result",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=$(this),J=q.hasUpgradeResult(f,
m),ha=f.drawObj,qa=f.view;ba.hasClass("hybris-es-no")?($("#pd-samsung-upgrade-1").attr("checked","checked"),$("#pd-samsung-upgrade-0").prop("checked",!1),ha.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!0,isGp:!1},qa.upgradeResultHybrisDraw(ha),ma.triggerChange(document.querySelector("#pd-samsung-upgrade-1")),q.totalAfterFunction(f,m),$(m.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(""),
ya&&"es"===f.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)"))):(ma.triggerChange(document.querySelector("#pd-samsung-upgrade-1")),J&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
"remove-upgrade"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("upgrade",f,m)))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-upgrade"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!1,isGp:!0};ma.triggerChange(document.querySelector("#pd-samsung-upgrade-1"));ba.upgradeResultDraw(J);
q.totalAfterFunction(f,m)});c.buyingToolOptUpgrade.on("click",'.cta[data-target-popup\x3d"upgradeLearnMorePopup"]',a,function(m){window.sg.components.upgradeLearnMorePopup.showPopup()})}function oa(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-1",a,function(m){var f=m.data.sharedObj,q=f.util.hasAssuredBuyBack(f,m.data.selectorObj);m.preventDefault();if(!q)return!1;m="";q=f.syndiProductData.product_display_name?f.syndiProductData.product_display_name:
"";f.proudctPriceInfo.salePrice?m=currencyComma(f.proudctPriceInfo.salePrice,f.priceCurrency):f.proudctPriceInfo.orignalPrice&&(m=currencyComma(f.proudctPriceInfo.orignalPrice,f.priceCurrency));assuredBuybackData.assuredBuybackGrid(q,m,f.totalSkuList[f.assuredSku])});c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=q.hasAssuredBuyBackResultResult(f,m);ma.triggerChange(document.querySelector("#pd-galaxy-assured-0"));
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",f,m))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-assured"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.assuredBuyBackResult={hasComponent:!1,
dataSku:null,dataPrice:null,dataSalePrice:null};ma.triggerChange(document.querySelector("#pd-galaxy-assured-0"));ba.assuredBuyBackResultDraw(J);q.totalAfterFunction(f,m)})}function da(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptNewAssuredBuyBack.on("click",".open-popup",a,function(m){var f=$(this),q=m.data.sharedObj,ba=q.util.hasNewAssuredBuyBack(q,m.data.selectorObj),J=[],ha=Number(f.attr("id").slice(-1))-1;m.preventDefault();if(!ba)return!1;m=$(".hdd02-buying-tool .pd-select-option__notice");
m.hasClass("is-show")&&m.removeClass("is-show");q.newAssuredBuyBackCheck=!0;q.popupReturnObj=f;J.push(q.newAssuredBuyBackList[ha].productItem);configuratorABB.setProductInfo(J)});c.buyingToolOptNewAssuredBuyBack.on("click","#pd-galaxy-new-assured-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=q.hasNewAssuredBuyBackResult(f,m);f.util.checkAddToCart(f,m);var J=$(".hdd02-buying-tool .pd-select-option__notice");J.hasClass("is-show")&&J.removeClass("is-show");f.newAssuredBuyBackCheck=
!0;ba&&(ba=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-new-assured"),confirmPopup(ba,"delete"),q.settingCommonPopupTagging("assured",f,m))});c.buyingToolOptNewAssuredBuyBack.on("click",'.cta[data-target-popup\x3d"assuredBuyBackInfoPopup"]',a,function(m){window.sg.components.AssuredBuyBackInfoPopup.showPopup()});$(".confirm-popup").on("click",
'.cta[data-event-type\x3d"remove-new-assured"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.newAssuredBuyBackResult={hasComponent:!1,dataModelCode:null,dataModelName:null,dataPrice:null,dataDisplayPrice:null,dataDisplayName:null};ba.newAssuredBuyBackResultDraw(J);ma.triggerChange(document.querySelector("#pd-galaxy-new-assured-0"));q.totalAfterFunction(f,m)})}function na(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptGalaxyForever.on("click",
"#pd-samsung-galaxy-forever-0",m,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.util,ha=J.hasForever(q,ba),qa=J.hasTradeInResult(q,ba),ia=q.exchangeApiData,za=q.priceCurrency,Ha=J.hasBogo(q,ba);ba=J.hasComboResult(q,ba);f.preventDefault();if(!ha)return!1;qa&&ia.addtionalPrice&&!Ha&&!ba?(f=Granite.I18n.get("Along with Galaxy Forever benefit, you will not be entitled for additional exchange bonus ({0}). However, you can avail the regular exchange benefit.",currencyComma(ia.addtionalPrice,
za)),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","open-forever-popup"),confirmPopup(f,"delete")):buyingPdForever.foreverPopupGrid(q.foreverFinanceInfo)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"open-forever-popup"]',m,function(f){buyingPdForever.foreverPopupGrid(a.foreverFinanceInfo)});c.buyingToolOpt.on("click","#pd-samsung-galaxy-forever-1, .remove-forever-result",m,function(f){var q=f.data.sharedObj;f=f.data.selectorObj;
var ba=q.util,J=ba.hasForeverResult(q,f);ma.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-1"));J&&(J=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-forever"),confirmPopup(J,"delete"),ba.settingCommonPopupTagging("forever",q,f))});c.buyingToolOptWarranty.on("click",'.cta[data-target-popup\x3d""]',m,function(f){});
$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-forever"]',m,function(f){var q=f.data.sharedObj;f=f.data.selectorObj;var ba=q.util,J=q.view,ha=q.drawObj,qa=ba.hasTradeInResult(q,f);ha.galaxyForeverResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};ma.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-1"));J.galaxyForeverResultDraw(ha);qa&&ba.exchangeResultDraw(q,f);ba.totalAfterFunction(q,f);
ba.hasCare(q,f)&&(f.buyingToolOptCare.show(),window.sg.components.ProductDetailKvNew.reInit())})}function L(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptWarranty.on("click","#pd-samsung-warranty-0",a,function(m){var f=m.data.sharedObj,q=m.data.selectorObj,ba=f.util;m.preventDefault();if(!ba.hasWarranty(f,q))return!1;configuratorWarranty.setProductInfo(f.finalWarrantyList)});c.buyingToolOptWarrantyVd.on("click","#pd-extended-warranty-option-0",a,function(m){var f=m.data.sharedObj,q=m.data.selectorObj,
ba=f.util;m.preventDefault();if(!ba.hasWarrantyVd(f,q))return!1;configuratorWarrantyVD.setProductInfo()});c.buyingToolOpt.on("click","#pd-samsung-warranty-1, .remove-warranty-result",a,function(m){var f=m.data.sharedObj;m=f.util.hasWarrantyResult(f,m.data.selectorObj);ma.triggerChange(document.querySelector("#pd-samsung-warranty-1"));m&&(m=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
"remove-warranty"),confirmPopup(m,"delete"))});c.buyingToolOpt.on("click","#pd-extended-warranty-option-1, .option-result--extended-warranty-option .option-result__close",a,function(m){var f=m.data.sharedObj;if(f.util.hasWarrantyVdResult(f,m.data.selectorObj))if(m=Granite.I18n.get("VD_Extended Warranty Popup_Delete Warranty"),"mx"==siteCode){$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("data-event-type","remove-warranty-vd");confirmPopup(m,"delete","",document.querySelector(".option-result--extended-warranty-option"));
var q=$(".confirm-popup");m=q.find(".confirm-popup__title");f=q.find(".cta--contained");q=q.find(".cta--outlined");m.html(Granite.I18n.get("Las opciones seleccionadas se eliminaran"));f.html(Granite.I18n.get("VD_Extended Warranty_YES"));q.html(Granite.I18n.get("VD_Extended Warranty_NO"))}else $(".confirm-popup-v2 .confirm-popup-v2__cta-wrap .cta.cta--contained").attr("data-event-type","remove-warranty-vd"),confirmPopupV2(m,"delete warranty","",document.querySelector(".option-result--extended-warranty-option"))});
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 f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};ma.triggerChange(document.querySelector("#pd-samsung-warranty-1"));ba.warrantyResultDraw(J);
q.totalAfterFunction(f,m)});$(".confirm-popup-v2,.confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty-vd"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;ma.triggerChange(document.querySelector("#pd-extended-warranty-option-1"));ma.optionClose(document.querySelector(".option-result--extended-warranty-option"));J.warrantyVdResult={hasComponent:!1,title:null,price:null,smcCode:null,description:null,priceDisplay:null};ba.warrantyVdResultDraw(J);
q.totalAfterFunction(f,m);"mx"==siteCode&&$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("data-event-type","");$(".summary__product-price").hide();$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").hide()})}function N(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptCare.on("click",".open-grid",a,function(m){m=$(this);var f=m.closest(".pd-option-selector").siblings();m.closest(".pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(q,
ba){$(ba).hasClass("hidden")||$(ba).addClass("hidden")});f.removeClass("hidden");window.dispatchEvent(new Event("resize"))});c.buyingToolOptCare.on("click",".open-popup",a,function(m){var f=$(this),q=m.data.sharedObj,ba=m.data.selectorObj,J=q.isNotGpv2,ha=q.util,qa=q.drawObj.care.isSmcType2?Number(f.attr("data-index")):Number(f.attr("data-index"))-1;ha=ha.hasCare(q,ba);ba=[];q.popupReturnObj=f;m.preventDefault();if(!ha)return!1;J||q.isMigrationHybris?(m=$.extend({},q.hybrisCareData),ba.push(m.smcs[qa]),
m.smcs=ba,"true"==f.attr("data-prePopup")?configuratorCare.showPrePopup(m,f):configuratorCare.showPopup(m,f)):(ba.push(q.finalCareList[qa]),configuratorCare.setProductInfo(ba))});c.buyingToolOptCare.on("click","#pd-samsung-care-0",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.drawObj,ba=q.care.isSmcType2,J=f.util,ha=f.siteCode,qa=J.hasCareResult(f,m);q.careResult.dataModelCode="none";f.util.checkAddToCart(f,m);qa?(ba?ma.triggerChange(f.popupReturnObj.closest("li").find(".open-grid").get(0)):
f.popupReturnObj&&ma.triggerChange(f.popupReturnObj.get(0)),"pt"===ha?(q=Granite.I18n.get("The selected option will be deleted.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(q,"delete")):"cn"===ha?(q=Granite.I18n.get("Are you sure you want to remove Samsung Butler service?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
"remove-care"),confirmPopup(q,"delete")):"ro"===ha||"it"===ha?(q=Granite.I18n.get("Remove Samsung Care+"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(q,"deleteSC+")):(q=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(q,"delete")),
J.settingCommonPopupTagging("care",f,m)):ba&&$(this).closest(".pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(ia,za){$(za).hasClass("hidden")||$(za).addClass("hidden")})});c.buyingToolOptCare.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});c.buyingToolOptCare.on("click",'.cta[data-target-popup\x3d"scLearnMorePopup"]',a,function(m){window.sg.components.scLearnMorePopup.showPopup()});
$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-care"]',a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.util,ba=f.view,J=f.drawObj;J.careResult={hasComponent:!1,description:"",dataPrice:"",dataSalePrice:"",dataModelName:"",dataModelCode:"none",dataId:"",price:"",disclaimer:""};"fr"===siteCode&&0<$(".pd-select-option.trade-in").length&&$(".pd-select-option.trade-in input").attr("disabled",!1);J.care.isSmcType2&&(f.popupReturnObj.get(0).checked=!1,$(".option-care ul.pd-select-option__list--samsung-care").find(".pd-select-option__payment").each(function(ha,
qa){$(qa).hasClass("hidden")||$(qa).addClass("hidden")}));ma.triggerChange(document.querySelector("#pd-samsung-care-0"));ba.careResultDraw(J);q.totalAfterFunction(f,m);f.globalServiceInfo.care&&delete f.globalServiceInfo.care})}function b(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptEmbedAddon.on("click","ul li input, .embed-addon-add",m,function(f){var q=$(this),ba=f.data.sharedObj,J=ba.globalServiceInfo;f=f.data.selectorObj;var ha=ba.util;$("#priceCurrency").val();var qa=0<$(".option-embed-addon .add-on-product-list-wrap--vd").length?
$(".option-embed-addon .add-on-product-list-wrap--vd"):$(".option-embed-addon .add-on-product-list-wrap"),ia=parseFloat(qa.attr("data-total-price")),za=parseFloat(qa.attr("data-total-sale-price")),Ha=q.closest("li").find(".add-on-product__final-price"),Fa=q.closest("li").find(".add-on-product__original-price"),Ca=q.closest("li").find(".add-on-product__saving-price");parseFloat(Ha.attr("data-price"));Fa=Ca.attr("data-save-price")?parseFloat(Fa.attr("data-original-price")):parseFloat(Ha.attr("data-price"));
Ha=parseFloat(Ha.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 Ia="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");Ca=ba.drawObj.embedAddon.itemSet;for(var Ta=[],Oa=$jscomp.makeIterator(Ca),ka=Oa.next();!ka.done;ka=Oa.next())Ta.push(ka.value.modelCode);var Ja="";Oa=!1;"checkbox"===
q.attr("type")?Oa=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")),Oa=!0):(q.addClass("cta--outlined"),q.removeClass("cta--contained"),q.attr("aria-label","Add"),q.text(Granite.I18n.get("Add")),Oa=!1);q.blur();ba.clickEmbedAddon=!0;Oa?(J.embedaddon&&0<J.embedaddon.length?J.embedaddon.push(Ia):J.embedaddon=[Ia],qa.attr("data-total-price",ia+Fa),qa.attr("data-total-sale-price",
za+Ha),Ca.filter(function(Da){Da.modelCode===Ia&&ba.embedAddonSelected.push(Da)})):(J.embedaddon=J.embedaddon.filter(function(Da){return Da!==Ia}),qa.attr("data-total-price",ia-Fa),qa.attr("data-total-sale-price",za-Ha),ba.embedAddonSelected=ba.embedAddonSelected.filter(function(Da){return Da.modelCode!==Ia}));ba.embedAddonSelected.forEach(function(Da){Da.summaryPrice=""+Da.finalPrice});ba.drawObj.price.summaryArea.embedAddonSelected=ba.embedAddonSelected;0<$("#personalizeMyTv").length&&(ba.pmtModelList=
ba.pmtModelList.filter(function(Da){return!Ta.includes(Da)}),J.embedaddon.forEach(function(Da){ba.pmtModelList.push(Da)}),ba.pmtModelList.forEach(function(Da){Ja.includes("\x26option\x3d")||ba.pmtURL.includes("\x26option\x3d")||(Ja+="\x26option\x3d");Ja+=Da+","}),ba.pmtURL||(ba.pmtURL=$("#personalizeMyTv .cta").attr("href")),$("#personalizeMyTv .cta").attr("href",ba.pmtURL+Ja.slice(0,-1)));ha.totalAfterFunction(ba,f)});c.buyingToolOptEmbedAddon.on("click",".cta-learn-more",m,function(f){f=$(this).attr("data-model-idx");
var q=a.drawObj.embedAddon.itemSet[f],ba=q.thirdPASeller,J=q.categorySubType;f=$("#addOnLayerPopupLearnMore");f.find(".add-on-popup__title").html(J);J=q.imgSrcList;var ha="";for(qa in J)ha+='\n\t\t\t\t\x3cdiv class\x3d"swiper-slide" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+P(J[qa],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+P(J[qa],"$N_400_PNG$",!1,!0)+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+
P(J[qa],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+P(J[qa],"$N_400_PNG$",!1,!0)+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\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'+ha+'\x3c/div\x3e\n\t\t\t\t\x3cbutton type\x3d"button" class\x3d"swiper-button-next"\x3e\n\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/button\x3e\n\t\t\t\x3c/div\x3e';
f.find(".add-on__learn-more-images").html(qa);J&&1===J.length&&f.find(".swiper-container").attr("");qa="";ha="GPv2"===$("#shopIntegrationFlag").val();var ia="Hybris-new"===$("#shopIntegrationFlag").val();J="Hybris-intg"===$("#shopIntegrationFlag").val();ha=!ha&&!J&&!ia;if(J){J=[{key:q.tradeIn,value:q.tradeInDesc},{key:q.premiumCare,value:q.premiumCareDesc},{key:q.financing,value:q.financingDesc},{key:q.upgrade,value:q.upgradeDesc},{key:q.storePromotions?"Y":"N",value:q.storePromotions}];for(var za in J)"Y"===
J[za].key&&(qa+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+J[za].value+"\x3c/li\x3e")}else if(ha&&q.vd3PAMarketingMessage&&0<q.vd3PAMarketingMessage.length)for(za=$jscomp.makeIterator(q.vd3PAMarketingMessage),J=za.next();!J.done;J=za.next())qa+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+J.value+"\x3c/li\x3e";if(q.uspText&&0<q.uspText.length)for(za=$jscomp.makeIterator(q.uspText),J=za.next();!J.done;J=za.next())qa+='\t\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+
J.value+"\x3c/li\x3e";za="";if(q.keySummary&&0<q.keySummary.length)for(J=$jscomp.makeIterator(q.keySummary),ha=J.next();!ha.done;ha=J.next())ha=ha.value,"feature"===ha.displayType.toLowerCase()&&(za+='\n\t\t\t\t\t\t\t\x3cli class\x3d"add-on__learn-more-feature-icon-item"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"add-on__learn-more-feature-icon-image"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+
P(ha.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+P(ha.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+ha.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+P(ha.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+P(ha.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+ha.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cp class\x3d"add-on__learn-more-feature-icon-text"\x3e'+ha.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
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;ha=q.reviewCount;J||(J=0);ia=Math.pow(10,1);J=Math.round(J*ia)/ia;var Ha=
parseFloat(J).toFixed(1);ia=parseInt(J);var Fa=parseInt(100*(Ha-ia));"0.0"!==Ha&&(J=Ha);Ha='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Ca=0;Ca<ia;Ca++)Ha+='\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(Ha+='\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--)Ha+='\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++)Ha+='\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';Ha+='\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"+(ha?ha:0)+"\x3c/span\x3e)\x3c/em\x3e";J='\x3cdiv class\x3d"add-on__learn-more-review"\x3e\n\t\t\t\t\t\x3cspan class\x3d"rating"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"rating__inner"\x3e\n\t\t\t\t\t\t\t'+Ha+"\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"+(za?'\x3cul class\x3d"add-on__learn-more-feature-icon"\x3e\n\t\t\t\t\t'+za+"\n\t\t\t\t\x3c/ul\x3e":"");f.find(".add-on__learn-more-content").html(q);ma.buyingTool.openAddOnLearnMore(document.querySelector("#addOnLayerPopupLearnMore"))});c.buyingToolOptEmbedAddon.on("click",".add-on-product__view-btns-wrap button",m,function(f){ma.buyingTool.viewMoreVDAddOn()})}function r(a,c){c.buyingToolOptSMBQuantity.on("click",".smb-count",{sharedObj:a,selectorObj:c},function(m){m=Number($("#counterText").val());
a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("propertychange change keyup paste","#counterText",function(m){m=$(this);var f=m.val().replace(/[^0-9].*/,"");m.val(f);m=Number(m.val());a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("focusout ","#counterText",function(m){m=$(this);m.val()&&"0"!=m.val()||m.val(1)})}function G(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#gift-card-amount-0, #gift-card-amount-1",a,function(m){var f=m.data.sharedObj;m=
m.data.selectorObj;f.giftCard.amountValid=!0;f.giftCard.selectedPrice=$(this).data("price");f.util.settingPriceDraw(f,m)});c.buyingToolOpt.on("click","#gift-card-amount-2",a,function(m){m.data.sharedObj.giftCard.amountValid=!1});c.buyingToolOpt.on("click",".pd-select-option--gift-card .cta",a,function(m){var f=m.data.sharedObj;m=m.data.selectorObj;var q=f.giftCard.inputAmount;q<f.giftCard.minPrice||q>f.giftCard.maxPrice||0<q%f.giftCard.priceIncrement?(f.giftCard.amountValid=!1,f=Granite.I18n.get("Please enter only numbers. {0} {1}",
[f.giftCard.minPriceFormatted,f.giftCard.maxPriceFormatted]),$(".pd-select-option--gift-card .text-field-v2__text").text(f),$(".pd-select-option--gift-card .text-field-v2__text.error").show()):(f.giftCard.amountValid=!0,$(".pd-select-option--gift-card .text-field-v2__text.error").hide(),$("#gift-card-amount-2").attr("data-price",f.giftCard.inputAmount),f.giftCard.selectedPrice=$("#gift-card-amount-2").attr("data-price"),f.util.settingPriceDraw(f,m))});$("#gift-card-amount-0").click()}function P(a,
c,m,f){var q="",ba=$("#scene7domain").val();a&&(-1<a.indexOf("?")?(a=a.replace("medias",""),a=a.substring(2,a.indexOf("?")),a=a.substring(0,a.lastIndexOf("-")),c=""):c="?"+c,-1<a.indexOf("https:")||-1<a.indexOf("http:")||-1<a.indexOf("//stg-images.samsung.com/")||-1<a.indexOf("//images.samsung.com/")||-1<a.indexOf("image.samsung.com/")||-1<a.indexOf("//stg-images.samsung.com.cn/")||-1<a.indexOf("//images.samsung.com.cn/")||-1<a.indexOf("image.samsung.com.cn/")?q=a:(m&&(ba=ba.replace("/image/","/content/")),
q=ba+a));f&&-1===a.indexOf("?")&&(q+=c);return q}function Z(a,c){c={sharedObj:a,selectorObj:c};var m=0;a.btnClickFlagAddCartContinue=!0;$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder continue"], .hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart continue"]');
$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder continue"], .hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart continue"]',c,function(f){if(a.btnClickFlagAddCartContinue&&
!fa(f.data.sharedObj)){var q=f.data.sharedObj;f=f.data.selectorObj;var ba=q.siteCode,J=q.util,ha=$("#shopIntegrationFlag").val();J.checkingDeliveryCode(q,f)&&m++;if(1===m&&J.checkingDeliveryCode(q,f)&&J.checkingNewAssuredBuyBack(q)&&J.checkingSamsungCare(q)&&J.checkWarrantyVd(q))q.afterEvent.addToCartCta(null,!1),q.isMigrationHybris?(q.clickDom=this,$("#hubble-care").addClass("gift-hubble-care")):"Hybris"===ha||"Hybris-intg"===ha||"in"===ba?q.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
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(f){if(!fa(f.data.sharedObj)){var q=f.data.sharedObj;f=f.data.selectorObj;var ba=q.util,J=$("#shopIntegrationFlag").val();ba.checkingDeliveryCode(q,f)&&m++;1===m&&ba.checkingDeliveryCode(q,f)&&ba.checkingNewAssuredBuyBack(q)&&ba.checkingSamsungCare(q)&&(q.afterEvent.checkOutCta(null,!1),q.isMigrationHybris?(q.clickDom=this,$("#hubble-care").addClass("gift-hubble-care")):"Hybris"===J||"Hybris-intg"===J||"in"===siteCode?q.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
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(f){a.clickTarget=$(this);fa(f.data.sharedObj)||(f=f.data.sharedObj,f.util.checkingSamsungCare(f)&&f.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(f){a.clickTarget=$(this);if(!fa(f.data.sharedObj)){var q=f.data.sharedObj,ba=q.util;if(ba.checkingDeliveryCode(q,f.data.selectorObj)){var J,ha;console.log("Is Extended warranty available? ",null==q?void 0:null==(J=q.drawObj)?void 0:null==(ha=J.warrantyVd)?void 0:ha.hasComponent);var qa,ia;"pl"===q.siteCode&&(null==q?0:null==(qa=q.drawObj)?0:null==(ia=qa.warrantyVd)?0:ia.hasComponent)?ba.checkWarrantyVd(q)&&q.afterEvent.addToCartCta(null,!0):ba.checkingSamsungCare(q)&&(q.giftCard.isGiftCard?
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&&(f=$(this).parent().attr("class"),"pd-buying-price__cta"==f?d(a,digitalData,".pd-buying-price__cta .cta","pdd01_anchor nav-product detail-cta-cart page"):"cost-box__cta"==f&&d(a,digitalData,".cost-box__cta .cta","header(pim)_price bar-product detail-button-cart"))});$(document).off("click",
'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder"]',c,function(f){a.clickTarget=$(this);fa(f.data.sharedObj)||(f=f.data.sharedObj,
f.util.checkingSamsungCare(f)&&f.afterEvent.addToCartCta(null,!0))});$(document).on("click",'.hdd02-buying-tool [data-cta-type\x3d"for-business"], #anchorNavigationPriceBar [data-cta-type\x3d"for-business"], #anchorNavigationPriceBarMobile [data-cta-type\x3d"for-business"]',c,function(f){mailformPopup.showPopup()})}function d(a,c,m,f){a={"class":"cta cta--contained cta--emphasis add-special-tagging js-buy-now tg-add-to-cart","data-cta-type":"add-cart","data-sku-code":c.product.model_code,"an-tr":f,
"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(f){f=f.data.sharedObj.siteCode;if("in"===f||"id"===f)f=$(this),f.val(f.val().replace(/[^0-9]/g,""))});c.buyingToolOptDelivery.on("keyup","#delivery-zipcode",m,function(f){var q=f.data.sharedObj,ba=f.data.selectorObj,J=q.siteCode,ha=q.util,qa=$(this),ia=$(ba.buyingToolOptDelivery).find("#delivery-zipcode").val()||"",za=$(ba.buyingToolOptDelivery).find(".check-zipcode");
"in"===J&&6===ia.length?za.removeClass("cta--disabled"):za.addClass("cta--disabled");13===f.which||"us"===J&&5===ia.length||"in"==J&&6===ia.length&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?ha.deliveryGetApiData(q,ba):"ae"!==J&&"ae_ar"!==J&&"us"!==J&&(qa.val(qa.val().replace(/[^\d].+/,"")),(48>f.which||57<f.which)&&f.preventDefault())});c.buyingToolOptDelivery.on("click",".check-zipcode",m,function(f){a.util.deliveryGetApiData(a,c)});c.buyingToolOptDelivery.on("keypress",
"#delivery-zipcode",m,function(f){var q=f.data.sharedObj.siteCode,ba=$(this);"ae"!==q&&"ae_ar"!==q&&"us"!==q&&(ba.val(ba.val().replace(/[^\d].+/,"")),(48>f.which||57<f.which)&&f.preventDefault())});c.buyingToolOptDelivery.on("click",".text-field-v2__input-icon.delete",m,function(f){var q=f.data.sharedObj.siteCode;f=$(f.data.selectorObj.buyingToolOptDelivery).find(".check-zipcode");"in"===q&&f.addClass("cta--disabled")});c.buyingToolOpt.on("click",".remove-delivery",m,function(f){var q=f.data.sharedObj;
f=f.data.selectorObj;var ba=q.util,J=q.drawObj,ha=q.view;"in"===q.siteCode&&(J.delivery.ctaClass="cta--disabled",$(f.buyingToolOptDelivery).find(".check-zipcode").addClass("cta--disabled"));ba.hasDeliveryResult(q,f)&&(J.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]},$.cookies.del("HA-Deeplink-Zipcode",{domain:".samsung.com"}),$("#delivery-zipcode").val(""),ha.deliveryResultDraw(J));J.delivery.priorityDeliveryText&&$(f.buyingToolOptDelivery).find(".pd-select-option__tooltip").show();
$(f.buyingToolOptDeliveryPickupStore).hide()});ma.buyingTool.bindPdTooltipEvent()}function t(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolCalculate.on("click",".js-install-calc:not(.eip-ee-cal)",m,function(f){f.preventDefault();f=$(this).attr("href");var q=$(".eip-popup");0<q.length&&(q.find("iframe").attr("src",f),window.sg.components.eipPopup.showPopup())});c.buyingToolCalculate.on("click",".js-install-calc.eip-ee-cal",m,function(f){f.preventDefault();installmentPlansData.getPaymentData(a.proudctPriceInfo.salePrice,
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(f){f.preventDefault();var q=$(this),ba=q.attr("href");f=$(".eip-popup");a.isMigrationHybris||"hu"===a.siteCode||"sg"===a.siteCode||"my"===a.siteCode||"nz"===a.siteCode||"vn"===a.siteCode||"th"===a.siteCode?"in"===a.siteCode?0<f.length&&(q=$("#storeWebDomain").val()+ba,f.find("iframe").attr("src",q),window.sg.components.eipPopup.showPopup()):
window.sg.components.financePopup.showEmiPopup(a.modelCode,q):0<f.length&&(f.find("iframe").attr("src",ba),window.sg.components.eipPopup.showPopup())});c.buyingToolOptOfferText.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(f){f.preventDefault();f=$(this);var q="in"!==a.siteCode?f.attr("href"):$("#storeWebDomain").val()+f.attr("href"),ba=$(".eip-popup");a.isMigrationHybris&&"de"!==a.siteCode&&"in"!==a.siteCode||"hu"===a.siteCode||"sg"===a.siteCode||"my"===a.siteCode||"nz"===a.siteCode||
"vn"===a.siteCode||"th"===a.siteCode?window.sg.components.financePopup.showEmiPopup(a.modelCode,f):0<ba.length&&(ba.find("iframe").attr("src",q),window.sg.components.eipPopup.showPopup())})}function I(a,c){c.buyingToolOptOffer.on("click",'a[data-target-popup\x3d"eipEEPopup"]',{sharedObj:a,selectorObj:c},function(m){m.preventDefault();m=$(m.currentTarget).attr("id");installmentPlansData.getPaymentData(a.proudctPriceInfo.salePrice,c.buyingToolOptOffer.find("#"+m).get(0),a.shopSkuCode)})}function X(a,
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(f){f=$(this).attr("data-store-id");callUsPrivateStore(f,{sharedObj:a,selectorObj:c},a.util.selectedUsEpp);window.sg.components.usEppDiscount.closeLayer()})}function O(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"manufacturerInfoPopup"]',
m,function(f){0<$(".manufacturer-info-popup").length&&window.sg.components.manufacturerInfoPopup.showPopup()});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"cancelReturnPolicyPopup"]',m,function(f){f=$(".cancel-return-policy-popup");if(0<f.length){var q=a.returnPolicyText;f.find(".cancel-return-policy-popup__text").html(q);window.sg.components.cancelReturnPolicyPopup.showPopup()}});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"warrantyPolicyPopup"]',m,function(f){f=$(".warranty-policy-popup");
if(0<f.length){var q=a.warrantyText;f.find(".warranty-policy-popup__text").html(q);window.sg.components.warrantyPolicyPopup.showPopup()}})}function S(a,c){var m=a.siteCode;c=a.apiDomain;var f=a.shopSkuCode,q=a.pdMultiLanguageYN,ba=a.pdHrefLang;a.tradeInFlag&&"fr"!==m&&"in"!==m&&(a={sku:f},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 f=c.stockLevelStatus,q=c.siteCode,ba=c.util,J=ba.hasBetweenResult(c,m),ha=ba.hasBetweenResult(c,m);m=ba.hasAcessory(c,m);ba=c.hasGift;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,2);var qa=[],ia="",za=!1;if("INSTOCK"==f||"BACKORDERED"==
f||"PREORDER"==f)if(J?(za=!0,ia=Granite.I18n.get("Checkout"),qa.push("checkout"),qa.push("between")):ha?"uk"!==q&&"de"!==q?(za=!0,ia=Granite.I18n.get("Checkout"),qa.push("checkout")):qa.push(a):qa.push(a),m||ba)if(!c.isEmbedAddOn||c.isEmbedAddOn&&c.hasGift)za=!0,ia="pl"===q?Granite.I18n.get("Add to cart"):Granite.I18n.get("Buy now"),"PREORDER"==f&&(ia=Granite.I18n.get("pre order")),qa.push("continue");return{title:ia,ctaType:qa.join(" "),isSpecial:za}}function fa(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 la=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),ma=la.ux2.PDPHeaderUI,ta=la.ux2.PriceBar,ya="true"===$("#isEppPage").val(),sa="Y"==$("#isNotDelTagSites").val()?"\x3cdel\x3e":"",Na="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 f=[];for(q in a.addOnApiList.care.list)a.addOnApiList.care.list[q].price_info&&f.push(a.addOnApiList.care.list[q]);a.finalCareList=f}else a.finalCareList=a.addOnApiList.care.list}else if(a.addOnApiList&&a.addOnApiList.careAndWarranty)for(f in a.addOnApiList.careAndWarranty.list){var q=
a.addOnApiList.careAndWarranty.list[f];var ba=q.product_type.toUpperCase();"WARRANTY"===ba?a.finalWarrantyList.push(q):"INSURANCE"===ba&&a.finalCareList.push(q)}this.settingAfterApiCareDraw(a,c);this.totalAfterFunction(a,c);f=a.financeFlag;q=a.siteCode;ba=a.promotionFinancingFlag;var J=a.totalPrice.sale,ha=a.util,qa=a.view,ia=Granite.I18n.get("Calculate Finance"),za=a.drawObj,Ha=ha.getEmiUrl(a,c),Fa=!1,Ca={};"Y"===f&&""!==financingUrl&&"in"!==q&&("uk"===q||"id"===q||"sk"===q||"cz"===q?ba&&(Fa=!0,
Ca=ha.getAttrCta(ia,Ha,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"pl"===q||"hu"===q||"ro"===q||"bg"===q||"ua"===q||"ph"===q||"sg"===q||"my"===q||"nz"===q||"cn"===q||"co"===q||"cl"===q||"mx"===q?J&&100<J&&(Fa=!0,Ca=ha.getAttrCta(ia,Ha,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"ee"===q||"lv"===q?(Fa=!0,Ca=ha.getAttrCta(ia,Ha,"_self","js-install-calc eip-ee-cal",{layerTarget:"eipEEPopup"},"")):(Fa=!0,Ca=ha.getAttrCta(ia,Ha,"_self","js-install-calc",{layerTarget:"eipPopup"},
"")));za.calculator={hasComponent:Fa,emiAttr:Ca};qa.emiDraw(za);ba=a.util;J=c.buyingToolOptOffer;f=$(c.buyingToolCalculate).find(".js-install-calc");q=J.find('a[data-target-popup\x3d"eipPopup"]');J=J.find('a[data-target-popup\x3d"eipEEPopup"]');ba=ba.getEmiUrl(a,c);q.attr("href",ba);J.attr("href",ba);f.attr("href",ba);a.upgradeFlag&&buyingPdEup.setTncUpgrade();this.totalReinit(a,c);m.gpHybrisGlobalEndPoint(a,c)}};pa.prototype.totalReinit=function(a,c){a=a.siteCode;window.sg.components.ProductDetailKvNew.reInit();
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();ma.gallery.init();ma.buyingTool.bindPdTooltipEvent()};pa.prototype.deliveryGetApiData=
function(a,c){var m=$(c.buyingToolOptDelivery),f=a.drawObj,q=m.find("#delivery-zipcode").val(),ba=a.view,J=a.siteCode,ha=a.shopSkuCode,qa=a.commonApiModel,ia="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();q?"in"===J&&6>q.length?(f.delivery.errorMessage="Please enter a valid Pincode",f.delivery.inputAttr.value=q,ba.deliveryDraw(f),ia||$(m).find("#delivery-zipcode").focus().val("").val(q),$(m).find(".text-field-v2__text.error").show(),$(m).find(".pd-select-option__tooltip").hide(),
$(m).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide()):(f.delivery.errorMessage=null,f.delivery.inputAttr.value=q,$(m).find(".text-field-v2__text.error").hide(),ba.deliveryDraw(f),a.isMigrationHybris?"in"===J?(ia&&$.cookies.set("deliveryPincode",q,{domain:".samsung.com",path:"/"+J}),qa.deliveryNewInAPI(a,c,q,null==a.fulfillmentSku?ha:a.fulfillmentSku)):qa.deliveryNewBybrisAPI(a,c,q,ha):"in"===J?$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(za,
Ha,Fa){f.delivery.time=Fa.getResponseHeader("Date");qa.deliveryInAPI(a,c,q,null==a.fulfillmentSku?ha:a.fulfillmentSku)}}):"us"===J?qa.deliveryUsAPI(a,c,q,ha):qa.deliveryAPI(a,c,q,ha)):(J=Granite.I18n.get("Enter your zipcode"),f.delivery.errorMessage=J,f.delivery.inputAttr.value=q,ba.deliveryDraw(f),ia||$(m).find("#delivery-zipcode").focus().val("").val(q),$(m).find(".text-field-v2__text.error").show(),$(m).find(".pd-select-option__tooltip").hide(),$(m).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide())};
pa.prototype.selectedUsEpp=function(a){var c=a.sharedObj;a=a.selectorObj;var m=$.cookies.get("tmktid",{domain:".samsung.com"}),f=$.cookies.get("tsgmt",{domain:".samsung.com"});m&&(c.drawObj.usEppData.title="with "+f+" Discounts",c.drawObj.usEppData.hasSelectBox=!1,c.view.usEppDraw(c.drawObj),c.commonApiModel.setUsEppPrice(c,a))};pa.prototype.settingAfterApiCareDraw=function(a,c){c=a.drawObj;var m=a.view,f=c.care.itemSet,q=a.finalCareList,ba=a.samsungCareBadgeList,J={},ha=c.care.items,qa=c.care.useOneDepthPrice,
ia=0,za=1;if(c.care.isSmcType2){var Ha=!1,Fa=!1,Ca={};for(ua in q){var Ia=q[ua],Ta=Ia.modelCode;if(!J[Ta]){Ca.$jscomp$loop$prop$isTheft$343=Ia.isTheft;var Oa={},ka=Granite.I18n.get("Samsung Care+"),Ja="",Da="",La="",Qa="",Ma="",Sa="",Ra="",Va="",Y="",ja=null,Aa=null,Ba="",Ga="";Ia.displayName&&(ka=Ia.displayName);Ia.price_info&&Ia.price_info[0]&&(Oa=Ia.price_info[0],ja=Oa.msrp_price,Aa=Oa.sale_price,La=Oa.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);Aa&&Aa.duration_value&&Aa.paymentcycle_value&&0<Aa.duration_value&&null!=Aa.paymentcycle_value&&"monthly"==Aa.paymentcycle_value.toLowerCase()&&(Va=Aa.duration_value,Y=Aa.paymentcycle_value.toLowerCase());null!=ja&&"undefined"!==typeof ja.wasValue?(ja&&null!=ja.value&&(Sa=ja.value,Ba=ja.wasValue,ja.formatted_value&&(Ja=ja.formatted_value),ja.formatted_wasValue&&
(Ga=ja.formatted_wasValue)),Aa&&Aa.value?(Aa.value&&(Ma=Aa.value),Aa.formatted_value&&(Da=Aa.formatted_value),Sa&&Sa===Ma&&(Ja="")):Da=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||"it"===a.siteCode)&&Va&&Y?Granite.I18n.get("{0}/month {1}",[Ja,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",Ja):Ja,Ia.flags&&
Ia.flags.is_subscription&&"ro"!=a.siteCode&&"cz"!=a.siteCode&&(Da=Granite.I18n.get("{0}/month",Da)),0!=parseFloat(Ba)&&null!=Ba&&(Da="\x3cdel\x3e"+Ga+"\x3c/del\x3e\x3cem\x3e"+Da+"\x3c/em\x3e")):(ja&&ja.value&&(Sa=ja.value,ja.formatted_value&&(Ja=ja.formatted_value)),Aa&&Aa.value?(Aa.value&&(Ma=Aa.value),Aa.formatted_value&&(Da=Aa.formatted_value),Sa&&Sa===Ma&&(Ja="")):Da=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||
"it"===a.siteCode)&&Va&&Y?Granite.I18n.get("{0}/month {1}",[Ja,Va]):Ja,Ia.flags&&Ia.flags.is_subscription&&(Da=Granite.I18n.get("{0}/month",Da)),Ma&&Sa&&Sa!==Ma&&(Qa="\x3cdel\x3e"+Ja+"\x3c/del\x3e"));Ma="";0<ba.length&&ba[ua].product_tags&&ba[ua].product_tags[0]&&(Ma=ba[ua].product_tags[0]);Ba=null!==Ba&&ja&&"undefined"!==typeof ja.wasValue?ja.wasValue:"";"es"==siteCode&&"monthly"==Y&&(Da=-1<Da.indexOf("\x3cem\x3e")?Da.replace(/<\/em>/g,"/mes\x3c/em\x3e"):Da+"/mes");"monthly"===Y&&null!=Ra&&"0"!=
Ra&&""!=Ra?"se"===siteCode?Da="0 kr/m\u00e5n i "+Ra+" m\u00e5n, d\u00e4refter "+Da:"no"===siteCode?Da="0 kr/mnd i "+Ra+" mnd, deretter "+Da:"dk"===siteCode?Da="0 kr./md. i "+Ra+" mdr., derefter "+Da:"fi"===siteCode?Da="0 \u20ac/kk "+Ra+" kk ajan, sen "+Da:"ae"===siteCode?Da="0 AED for "+Ra+" months then "+Da+"/mo":"ae_ar"===siteCode?Da="0.00 \u062f.\u0625 \u0644\u0645\u062f\u0629 "+Ra+" \u0645\u0646 \u0627\u0644\u0623\u0634\u0647\u0631 \u062b\u0645"+Da+"/\u0634\u0647\u0631\u064a\u0627\u064b":"uk"===
siteCode||"fr"===siteCode||"ro"===siteCode?(Da=Da.substring(0,Da.indexOf("/")),Da=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ra,Da])):"it"===siteCode&&(Da=Granite.I18n.get("freeMonths {0}/month, from {1}",[Ra,Da])):"monthly"!==Y||null!=Ra&&"0"!=Ra&&""!=Ra||("uk"===siteCode?(Da=Da.substring(0,Da.indexOf("/")),Da=Granite.I18n.get("freeMonths_null {0}/month",[Da])):"ae"===siteCode?Da+="/month":"ae_ar"===siteCode&&(Da+="/\u0641\u064a \u0627\u0644\u0634\u0647\u0631"));"de"==siteCode&&"monthly"!=
Y&&(Da+=Granite.I18n.get("SC+ Popup Bundle upfront price"));Ca.$jscomp$loop$prop$itemObj$344={index:ia,optionName:ka,optionSalePrice:Da,optionOriPrice:Qa,optionSavePrice:La,optionOriWasPrice:Ba,specialText:Ia.long_description,badge:Ma,paymentCycle:Y,oriPriceValue:Sa,summary:Ia.summary,cycle:Ia.cycle,freeMonths:Ra};f.push(Ca.$jscomp$loop$prop$itemObj$344);Ia.displayName=ka;Oa.formattedPrice=Da;Oa.formattedDelPrice=Ja;J[Ta]=Ta;ia++;!Ha&&Ca.$jscomp$loop$prop$isTheft$343?(Ca.$jscomp$loop$prop$descList$341=
[],"at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?Ca.$jscomp$loop$prop$descList$341=H(4,function(Ea){Ea.forEach(function(Ka,wa){Ea[wa]="theft-"+Ka})}):["ae","ae_ar"].includes(siteCode)?Ca.$jscomp$loop$prop$descList$341=H(5,function(Ea){Ea.forEach(function(Ka,wa){Ea[wa]="theft-"+Ka})}):["ro"].includes(siteCode)?Ca.$jscomp$loop$prop$descList$341=H(6,function(Ea){Ea.forEach(function(Ka,wa){Ea[wa]="theft-"+Ka})}):Ca.$jscomp$loop$prop$descList$341=H(5),Ca.$jscomp$loop$prop$descList$341.forEach(function(Ea){return function(Ka,
wa){Ea.$jscomp$loop$prop$descList$341[wa]=Granite.I18n.get(Ka);-1<Granite.I18n.get(Ka).indexOf("descListText")&&Ea.$jscomp$loop$prop$descList$341.splice(wa,1)}}(Ca)),ha.push({index:za,isTheft:Ca.$jscomp$loop$prop$isTheft$343,optionName:Granite.I18n.get("Accidental Damage \x26 Theft"),paymentCycle:Y,optionSalePrice:"",optionOriPrice:Qa,optionSavePrice:La,depthOneBtnTitle:Granite.I18n.get("Accidental Damage \x26 Theft CTA Button"),descList:Ca.$jscomp$loop$prop$descList$341}),Ha=!0,za++):Fa||Ca.$jscomp$loop$prop$isTheft$343||
(Ca.$jscomp$loop$prop$descList$62$342=[],"at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?Ca.$jscomp$loop$prop$descList$62$342=H(4,function(Ea){Ea.forEach(function(Ka,wa){Ea[wa]="damage-"+Ka})}):["ae","ae_ar"].includes(siteCode)?Ca.$jscomp$loop$prop$descList$62$342=H(5,function(Ea){Ea.forEach(function(Ka,wa){Ea[wa]="damage-"+Ka})}):["ro"].includes(siteCode)?Ca.$jscomp$loop$prop$descList$62$342=H(6,function(Ea){Ea.forEach(function(Ka,wa){Ea[wa]="damage-"+
Ka})}):Ca.$jscomp$loop$prop$descList$62$342=H(5),Ca.$jscomp$loop$prop$descList$62$342.forEach(function(Ea){return function(Ka,wa){Ea.$jscomp$loop$prop$descList$62$342[wa]=Granite.I18n.get(Ka);-1<Granite.I18n.get(Ka).indexOf("descListText")&&Ea.$jscomp$loop$prop$descList$62$342.splice(wa,1)}}(Ca)),ha.push({index:za,isTheft:Ca.$jscomp$loop$prop$isTheft$343,optionName:Granite.I18n.get("Accidental Damage"),paymentCycle:Y,optionSalePrice:"",optionOriPrice:Qa,optionSavePrice:La,depthOneBtnTitle:Granite.I18n.get("Accidental Damage CTA Button"),
descList:Ca.$jscomp$loop$prop$descList$62$342}),Fa=!0,za++);$.map($.grep(ha,function(Ea){return function(Ka,wa){return Ka.isTheft===Ea.$jscomp$loop$prop$isTheft$343}}(Ca)),function(Ea){return function(Ka,wa){Ka.itemSet||(Ka.itemSet=[]);Ka.itemSet.push(Ea.$jscomp$loop$prop$itemObj$344)}}(Ca))}Ca={$jscomp$loop$prop$descList$341:Ca.$jscomp$loop$prop$descList$341,$jscomp$loop$prop$descList$62$342:Ca.$jscomp$loop$prop$descList$62$342,$jscomp$loop$prop$isTheft$343:Ca.$jscomp$loop$prop$isTheft$343,$jscomp$loop$prop$itemObj$344:Ca.$jscomp$loop$prop$itemObj$344}}1!=
ha[0].isTheft&&ha.reverse();qa&&u(ha)}else for(Ha in q){var ua=q[Ha];ha=ua.modelCode;if(!J[ha]){qa={};za=Granite.I18n.get("Samsung Care+");La=Da=Ia=Ca=ka=Fa="";Ta=!1;Oa=Qa="";Sa=Ja=null;Y=Ra="";ua.displayName&&(za=ua.displayName);ua.price_info&&ua.price_info[0]&&(qa=ua.price_info[0],Ja=qa.msrp_price,Sa=qa.sale_price,Ca=qa.saveText);Ja&&Ja.duration_value&&Ja.paymentcycle_value&&0<Ja.duration_value&&null!=Ja.paymentcycle_value&&"monthly"==Ja.paymentcycle_value.toLowerCase()&&(Qa=Ja.duration_value,Oa=
Ja.paymentcycle_value.toLowerCase());Sa&&Sa.duration_value&&Sa.paymentcycle_value&&0<Sa.duration_value&&null!=Sa.paymentcycle_value&&"monthly"==Sa.paymentcycle_value.toLowerCase()&&(Qa=Sa.duration_value,Oa=Sa.paymentcycle_value.toLowerCase());"it"===a.siteCode&&Sa&&Sa.paymentcycle_value&&(Oa=Sa.paymentcycle_value.toLowerCase());if(null!=Ja&&"undefined"!==typeof Ja.wasValue){if(Ja&&Ja.value||("ch"===a.siteCode||"ch_fr"===a.siteCode||"sa"===a.siteCode||"sa_en"===a.siteCode)&&0==Ja.value)La=Ja.value,
Ra=Ja.wasValue,Ja.formatted_value&&(Fa=Ja.formatted_value),Ja.formatted_wasValue&&(Y=Ja.formatted_wasValue);"uk"!==a.siteCode&&"tr"!==a.siteCode||0!=parseFloat(Ja.value)?(Sa&&Sa.value?(Sa.value&&(Da=Sa.value),Sa.formatted_value&&(ka=Sa.formatted_value),La&&La===Da&&(Fa="")):ka=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Oa?Granite.I18n.get("{0}/month {1}",[Fa,Qa]):Fa,ua.flags&&ua.flags.is_subscription&&
(ka=Granite.I18n.get("{0}/month",ka)),Da&&La&&La!==Da&&("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Oa&&(ka=Granite.I18n.get("{0}/month {1}",[ka,Qa]))):ka=Granite.I18n.get("Free");"it"===a.siteCode&&0==parseFloat(Ja.value)?(ka=$("#priceCurrency").val(),Ta=!0,ka=currencyComma(parseFloat(Ja.value),ka).replace(",00","")):0==parseFloat(Ra)||null==Ra||!ya&&"tr"===a.siteCode||(ka="\x3cdel\x3e"+Y+"\x3c/del\x3e\x3cem\x3e"+
ka+"\x3c/em\x3e")}else Ja&&Ja.value&&(La=Ja.value,Ja.formatted_value&&(Fa=Ja.formatted_value)),Sa&&Sa.value?(Sa.value&&(Da=Sa.value),Sa.formatted_value&&(ka=Sa.formatted_value),La&&La===Da&&(Fa="")):ka=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Oa?Granite.I18n.get("{0}/month {1}",[Fa,Qa]):Fa,ua.flags&&ua.flags.is_subscription&&(ka=Granite.I18n.get("{0}/month",ka)),Da&&La&&La!==Da&&(("fi"===a.siteCode||
"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Qa&&Oa&&(ka=Granite.I18n.get("{0}/month {1}",[ka,Qa])),Ia="nl"===a.siteCode||"be"===a.siteCode||"be_fr"===a.siteCode||"de"===a.siteCode?Granite.I18n.get("From {0}","\x3cdel\x3e"+Fa+"\x3c/del\x3e"):"jp"===a.siteCode?"(\u5272\u5f15\u524d\u4fa1\u683c : "+Fa+")":"\x3cdel\x3e"+Fa+"\x3c/del\x3e");Ja="";0<ba.length&&ba[Ha].product_tags&&ba[Ha].product_tags[0]&&(Ja=ba[Ha].product_tags[0]);Da=
"";a.isGpv2?ua.inventory&&ua.inventory.status&&(Da=ua.inventory.status.toLowerCase()):ua.otherParameters&&isNotEmpty(ua.otherParameters.stockLevelStatus)&&(Da=ua.otherParameters.stockLevelStatus.toLowerCase());f.push({index:ia+1,prePopup:Ta,optionName:za,optionSalePrice:ka,optionOriPrice:Ia,optionSavePrice:Ca,specialText:ua.long_description,badge:Ja,isAlMese:ka&&"it"==a.siteCode&&"monthly"==Oa?!0:!1,isNoAlMese:!ka||"it"==a.siteCode&&"monthly"==Oa?!1:!0,paymentCycle:"fr"==a.siteCode?Oa:"",stockStatus:"in"==
a.siteCode&&"outofstock"==Da?"OOS":""});ua.displayName=za;qa.formattedPrice=ka;qa.formattedDelPrice=Fa;J[ha]=ha;ia++}}m.productAddOnCare(c)};pa.prototype.checkAddToCart=function(a,c){var m=a.util,f=a.drawObj;a.checkValid=!1;c="INSTOCK"==a.apiChangeStockStatus||"LOWSTOCK"==a.apiChangeStockStatus||"PREORDER"==a.apiChangeStockStatus||"BACKORDERED"==a.apiChangeStockStatus?m.checkingDeliveryCode(a,c)&&m.checkingNewAssuredBuyBack(a)&&(m.checkingSamsungCare(a)||"none"===f.careResult.dataModelCode)?!0:!1:
!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);T(a,c);R(a,c);y(a,c);va(a,c);ea(a,c);ra(a,c);N(a,c);L(a,c);na(a,c);Z(a,c);M(a,c);t(a,c);z(a,c);I(a,c);O(a,c);X(a,c);V(a,c);oa(a,c);da(a,c);b(a,c);G(a,c);r(a,c)};pa.prototype.getQuerystring=function(a){for(var c=
window.location.search.substring(1).split("\x26"),m=0;m<c.length;m++){var f=c[m].split("\x3d");if(f[0]===a)return f[1]}};pa.prototype.getBrowserName=function(){var a="Unknown";-1!==navigator.userAgent.indexOf("MSIE")?a="MSIE":-1!==navigator.userAgent.indexOf("Firefox")?a="Firefox":-1!==navigator.userAgent.indexOf("Opera")?a="Opera":-1!==navigator.userAgent.indexOf("Chrome")?a="Chrome":-1!==navigator.userAgent.indexOf("Safari")&&(a="Safari");return a};pa.prototype.removeClass=function(a,c){return a.replace(c,
"").replace("  "," ")};pa.prototype.addClass=function(a,c){return a+(" "+c)};pa.prototype.merge=function(a,c,m,f){f=void 0===f?"":f;if(m&&(a[c]?$.extend(a[c],m):(a[c]=m,a[c].apiType=""),a=a[c],f&&(a.apiType+=" "+f),a.price_info&&0<a.price_info.length)){f=$("#priceCurrency").val();c=$("#siteCode").val();for(var q in a.price_info){m=a.price_info[q];var ba="",J="";if(m.msrp_price&&m.msrp_price.value){ba=m.msrp_price.value;var ha=m.msrp_price.formatted_value;null===ha&&(ha=currencyComma(ba,f),m.msrp_price.formatted_value=
ha)}m.sale_price&&m.sale_price.value&&(ba!==m.sale_price.value&&(J=m.discount_description&&m.discount_description.type&&-1<"rebate,percentage".indexOf(m.discount_description.type.toLowerCase())&&m.discount_description.formatted_value?m.discount_description.formatted_value:currencyComma(ba-m.sale_price.value,f),J=Granite.I18n.get("Save {0}",J,c)),ba=m.sale_price.value,ha=m.sale_price.formatted_value,null===ha&&(ha=currencyComma(ba,f),m.sale_price.formatted_value=ha));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,f).trim()),m.msrp_price&&m.msrp_price.formatted_value&&(m.msrp_price.formatted_value=deleteCurrency(m.msrp_price.formatted_value,f).trim()),m.sale_price&&m.sale_price.formatted_value&&(m.sale_price.formatted_value=deleteCurrency(m.sale_price.formatted_value,f).trim())}}};pa.prototype.removeElement=function(a){for(var c in a){var m=a[c];m&&0<m.length&&($(a).html="",$(a).hide())}};
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,f=a.financingUrl,q=a.emiCalculatorUrl;return"uk"===m||"in"===m||"id"===m?a.emiUrl+"/?sku\x3d"+a.shopSkuCode+"\x26price\x3d"+c+"\x26page\x3dsimple buying tool:offer":"de"===m?f:"pl"===m||"hu"===m||"lt"===m||"ro"===m||"bg"===m||"ua"===m?q:"ee"===m||"lv"===m?"javascript:void(0);":f+"/?total\x3d"+c+"\x26page\x3dpdp"};
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,f){var q=c.util,ba=c.drawObj,J=c.siteCode,ha=q.hasForeverResult(c,m),qa=q.hasForever(c,m),ia="",za="",Ha="",Fa=0,Ca=0,Ia=0,Ta=0,Oa="",ka="",Ja="";if(a){a.device_info&&(a.device_info.name&&(za=a.device_info.name),a.device_info.brand&&(Ha=a.device_info.brand));"CE"==c.tradeInType&&(a.device_info&&(ka=a.device_info.product_condition,Ja=a.device_info.category),
a.partner&&(Oa=a.partner));var Da="";Ha&&(Da+=Ha);Da&&(Da+=" | ");za&&(Da+=za);a.estimated_discount&&(a.estimated_discount.exchange_discount&&(Ca=parseFloat(a.estimated_discount.exchange_discount.amount)),a.estimated_discount.exchange_value&&(Fa=parseFloat(a.estimated_discount.exchange_value.amount)),a.estimated_discount.total&&(Ia=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"),Ia=parseFloat(J)));a.estimated_discount&&a.estimated_discount.special_discount&&a.estimated_discount.special_discount.amount&&(Ta=parseFloat(a.estimated_discount.special_discount.amount));"CE"==c.tradeInType?c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Da,isUpfront:!a.delayed_gratification,specialDiscount:Ta,exchangePrice:Fa,addtionalPrice:Ca,totalPrice:Ia,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,partner:Oa,productCondition:ka,
productCategory:Ja,tradeupCurrency:ia}:(c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Da,isUpfront:!a.delayed_gratification,specialDiscount:Ta,exchangePrice:Fa,addtionalPrice:Ca,totalPrice:Ia,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,tradeupCurrency:ia},a.withCeTradeUpPopup&&(c.exchangeApiData.withCeTradeUpPopup=!0));q.exchangeResultDraw(c,m);qa&&q.foreverDraw(c,m);ha&&f.galaxyForeverResultDraw(ba);q.totalAfterFunction(c,m)}};pa.prototype.exchangeResultDraw=function(a,c){var m=a.view,f=a.util,
q=a.priceCurrency,ba=a.drawObj,J=a.siteCode,ha=f.hasOffer(a,c),qa=f.hasForeverResult(a,c),ia=a.exchangeApiData,za=ia.modelAndBrand,Ha=ia.exchangePrice,Fa=ia.addtionalPrice,Ca=ia.totalPrice,Ia=ia.isUpfront,Ta=ia.partner,Oa=ia.productCondition,ka=ia.productCategory,Ja=!1,Da=!1,La=0,Qa=ia.dataQuoteId;ha&&(Ja=f.hasBogo(a,c),Da=f.hasComboResult(a,c));if(ia.exchangeFlag){ha=Ha?Ja||Da||qa?Ca-Fa:Ca:Ca;f=currencyComma(ha,q);Ia?(La=ha,Ha=f+"("+Granite.I18n.get("Instant Discount")+")"):Ha=f+"("+Granite.I18n.get("Assured Value")+
")";qa&&"in"===J&&ia.foreverId&&(Qa=ia.foreverId);qa=".siel-trade-in-popup-option__condition-check-desc-"+Oa;Fa="";"CE"==a.tradeInType&&Oa&&(Fa="Television"!=ka&&"average"==Oa?"Average":Oa[0].toUpperCase()+Oa.slice(1,Oa.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"+Ca+" on your old product \x3cbr\x3e By: \x3cstrong\x3e"+Ta+"\x3cstrong\x3e",description:"Actual Exchange discount will depend upon Product Evaluation results",
tooltip:Fa+"(\u20b9"+Ca+")\x3cbr\x3e "+$(qa).text(),dataQuoteId:Qa,isUpfront:Ia,discountText1:Ha,dataPrice:La};else{if("uk"===J){J="Get "+currencyComma(Ca,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(Ca,q)+"\x3c/span\x3e for recycling your refrigerator\x3c/strong\x3e";break;case "08010000":J=
"Get "+currencyComma(Ca,q)+"\x3c/span\x3e for recycling your laundry device\x3c/strong\x3e";break;case "08070000":J="Get "+currencyComma(Ca,q)+"\x3c/span\x3e for recycling your vacuum\x3c/strong\x3e";break;case "07010000":J="Get "+currencyComma(Ca,q)+"\x3c/span\x3e for recycling your monitor\x3c/strong\x3e"}ba.tradeInResult={hasComponent:!0,discountText1:Ha,description:J,dataPrice:La,dataQuoteId:Qa,isUpfront:Ia}}}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,f=currencyComma(ha,a),a="eur"===a.toLowerCase()?h(ha):l(ha),f=f+" / "+a),Ha=CeTradeUpPopup.config.view.showDiscountAmount.inResultBanner?Granite.I18n.get(CeTradeUpPopup.config.shop.isCashbackSite?'"{0}" (Assured Value)':'"{0}" (Instant Discount)',[f],q):"",a="",CeTradeUpPopup.config.view.showDiscountAmount.inResultDescription&&(a=Granite.I18n.get("Get {0} off you order instantly for recycling your device",
[f],q)),ba.tradeInResult={hasComponent:!0,discountText1:Ha,description:a,dataPrice:La,dataQuoteId:Qa,isUpfront:Ia}):ba.tradeInResult={hasComponent:!0,displayModelName:Granite.I18n.get("Your Trade-in")+" : "+za,discountText1:Ha,description:Granite.I18n.get("*Actual trade-in discount might differ from estimated discount."),dataPrice:La,dataQuoteId:Qa,isUpfront:Ia};ma.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();ma.buyingTool.bindPdTooltipEvent()}};pa.prototype.foreverDraw=function(a,c){var m=a.foreverFinanceInfo,f=m.productPrice?parseFloat(m.productPrice):0,q=m.assuredBuyBack?parseFloat(m.assuredBuyBack):0,ba=m.tenureValue?parseFloat(m.tenureValue):0,J=m.carePrice?parseFloat(m.carePrice):0,ha=a.drawObj,
qa=a.priceCurrency,ia=a.view,za=a.util;c=za.hasTradeInResult(a,c);var Ha=a.drawObj.tradeInResult.dataPrice,Fa=0;a={};c&&(Fa=Ha,m.tradeinCheckFlag=!0,m.tradeinprice=Ha,m.tradeinDiscountYn=0==Ha?!0:!1);f=(f+J-Fa-q)/ba;m.foreverPrice=f;a.layerTarget="#hubble-forever-learnmore-layer";za=za.getAttrCta(Granite.I18n.get("Learn more"),"javascript:;","_self","",a,"");ba=Granite.I18n.get("Pay {0} per month and own the device for {1} months.",[currencyComma(f,qa),ba]);ha.galaxyForever={hasComponent:m.foreverFlag,
title:Granite.I18n.get("Galaxy Forever"),description:ba,learnMoreCta:za,yesAttr:{"class":"hubble-pd-popup-opener",text:Granite.I18n.get("YES"),subText:null,layerTarget:"#hubble-galaxy-forever-layer"},noAttr:{"class":"hubble-pd-popup-opener",text:Granite.I18n.get("NO"),layerTarget:null,eventType:"forever"}};ia.galaxyForeverDraw(ha)};pa.prototype.optionExposureRule=function(a,c){switch(a.siteCode){case "uk":if(a.categoryTypeCode.startsWith("01")){var m={tariffOption:["upgrade","warranty"],tradeIn:["upgrade"],
upgrade:["tariffOption","tradeIn","combo","accessory"],care:[],warranty:[],combo:["upgrade"]};var f={tariffOption:["upgrade","warranty","price"],tradeIn:["upgrade","price"],upgrade:["tariffOption","tradeIn","combo","price"],care:[],warranty:[],combo:["upgrade","price"],accessory:["upgrade","price"]}}else m={tariffOption:["tradeIn","upgrade","care","warranty"],tradeIn:["tariffOption","upgrade"],upgrade:["tariffOption","tradeIn","combo","accessory"],care:["tariffOption"],warranty:["tariffOption"],combo:["upgrade"]},
f={tariffOption:["tradeIn","upgrade","care","warranty","price"],tradeIn:["tariffOption","upgrade","price"],upgrade:["tariffOption","tradeIn","combo","price"],care:["tariffOption"],warranty:["tariffOption"],combo:["upgrade","price"],accessory:["upgrade","price"]};this.checkingDiabledEnabled(a,c,m,f);break;case "de":m={tariffOption:["tradeIn","upgrade","care","warranty","calculate"],tradeIn:["tariffOption","warranty"],upgrade:["tariffOption","warranty"],care:["tariffOption","warranty"],warranty:["tariffOption",
"tradeIn","upgrade","care"]};f={tariffOption:["tradeIn","upgrade","care","warranty","price"],tradeIn:["tariffOption","warranty","price"],upgrade:["tariffOption","warranty","price"],care:["tariffOption","warranty"],warranty:["tariffOption","tradeIn","upgrade","care"],calculate:["tariffOption"]};this.checkingDiabledEnabled(a,c,m,f);break;case "fr":m={tariffOption:["tradeIn","between"],tradeIn:["financing","tariffOption"],between:"care warranty bogo combo financing accessory tariffOption".split(" "),
care:["between","warranty"],warranty:["between","care"]};f={tariffOption:["tradeIn","between"],between:["care","warranty","tariffOption"],care:["between","warranty"],warranty:["between","care"],bogo:["between","price"],combo:["between","price"],financing:["tradeIn","between"],accessory:["between","price"]};this.checkingDiabledEnabled(a,c,m,f);break;case "nl":case "be":case "be_fr":m={tariffPlan:"tradeIn between care warranty bogo combo accessory".split(" "),tradeIn:["tariffPlan","between"],between:"tariffPlan tradeIn care warranty bogo combo accessory".split(" "),
care:["tariffPlan","between"],warranty:["tariffPlan","between"],combo:["tariffPlan","between"]};f={tariffPlan:"tradeIn between care warranty combo price".split(" "),tradeIn:["tariffPlan","between","price"],between:["tariffPlan","tradeIn","care","warranty","combo"],care:["tariffPlan","between"],warranty:["tariffPlan","between"],bogo:["tariffPlan","between","price"],combo:["tariffPlan","between","price"],accessory:["tariffPlan","between","price"]};this.checkingDiabledEnabled(a,c,m,f);break;case "in":m=
{forever:["accessory"]};f={};this.checkingDiabledEnabled(a,c,m,f);break;case "it":m={between:["accessory","care","tradeIn"]};f={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,f);break;case "ru":m={between:["accessory","care","tradeIn"]};f={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,f);break;case "es":m={upgrade:["accessory","care","tradeIn"]};f={accessory:["upgrade"],care:["upgrade"],tradeIn:["upgrade"]};
this.checkingDiabledEnabled(a,c,m,f);break;case "au":m={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},f={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},this.checkingDiabledEnabled(a,c,m,f)}};pa.prototype.checkingDiabledEnabled=function(a,c,m,f){var q=a.drawObj,ba={tariffOption:this.disabledTariffOption,tradeIn:this.disabledTradeIn,
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 ha in m)if(q[ha])for(var qa=$jscomp.makeIterator(m[ha]),ia=qa.next();!ia.done;ia=qa.next()){ia=ia.value;ma.isDebug&&console.log("[HDD02] Disable component: "+ia);var za=ba[ia];za?za.call(this,a,c):console.warn("[HDD02] Disable handler not exists: "+ia)}else for(qa=$jscomp.makeIterator(m[ha]),ia=qa.next();!ia.done;ia=qa.next()){ia=ia.value;za=f[ia];var Ha=!1,Fa;for(Fa in za){if(Ha)break;q[za[Fa]]&&(Ha=!0)}Ha||(ma.isDebug&&console.log("[HDD02] Enable component: "+
ia),(za=J[ia])?za.call(this,a,c):console.warn("[HDD02] Enable handler not exists: "+ia))}};pa.prototype.disabledAccessory=function(a,c){a.accessoryDisabled=!0};pa.prototype.enabledAccessory=function(a,c){a.accessoryDisabled=!1};pa.prototype.disabledFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));a.hide();a.addClass("removed")};pa.prototype.enabledFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));a.show();a.removeClass("removed")};pa.prototype.disabledCalculate=
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,f=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=$(c.buyingToolOptOffer.find(".pd-offer__selected-bundle-wrap"));this.disabledOptionElement(f,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,f=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(f))for(f=0;f<a.length;f++)if(0<$(a.get(f)).find(".pd-offer__selected-bundle").length){m=!0;break}return m};pa.prototype.disabledBogo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");this.disabledOptionElement(c,a)};pa.prototype.enabledBogo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");this.removeDisabledElement(c,a)};pa.prototype.hasBogo=function(a,c){var m=
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,f=a.selectedClass;c=c.buyingToolOptTariffPlan;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)&&c.hasClass(f)};pa.prototype.addTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.addClass(a.selectedClass)};pa.prototype.removeTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.removeClass(a.selectedClass);
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,f=a.selectedClass;a=a.disabledClass;c=$(c.buyingToolOptBetween);return c.hasClass(m)&&!c.hasClass(a)&&c.hasClass(f)};pa.prototype.addBetweenResult=function(a,c){$(c.buyingToolOptBetween).addClass(a.selectedClass)};pa.prototype.removeBetweenResult=function(a,c){$(c.buyingToolOptBetween).removeClass(a.selectedClass)};
pa.prototype.disabledWarranty=function(a,c){var m=a.view,f=a.drawObj;c=c.buyingToolOptWarranty;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);f.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};m.warrantyResultDraw(f)};pa.prototype.enabledWarranty=function(a,c){c=c.buyingToolOptWarranty;this.removeDisabledAllElement(c,
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,f=a.drawObj;c=c.buyingToolOptCare;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);f.careResult={hasComponent:!1,description:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,price:null,disclaimer:null,savedPrice:null};m.careResultDraw(f)};pa.prototype.enabledCare=
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,f=a.drawObj;c=c.buyingToolOptUpgrade;this.disabledOptionElement(c,
a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);f.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};m.upgradeResultDraw(f)};pa.prototype.enabledUpgrade=function(a,c){c=c.buyingToolOptUpgrade;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasUpgrade=function(a,c){var m=a.disabledClass;c=c.buyingToolOptUpgrade;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};pa.prototype.hasUpgradeResult=
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,f=a.drawObj;c=c.buyingToolOptTradeIn;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);f.tradeInResult={hasComponent:!1,displayModelName:null,discountText1:null,discountText2:null,discountText3:null,description:null,dataPrice:null,dataCashBack:null,dataQuoteId:null,dataId:[]};m.tradeInResultDraw(f)};
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,f=a.drawObj;
c=c.buyingToolOptTariff;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);f.tariffOptionResult={hasComponent:!1,description:null,dataPrice:null,price:null,disclaimer:null,dataSimskuCode:null,dataModelCode:null,dataId:null};m.tariffOpionResultDraw(f)};pa.prototype.enabledTariffOption=function(a,c){c=c.buyingToolOptTariff;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};pa.prototype.hasTariffOption=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTariff;
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,f){f=void 0===f?{}:f;var q=window.sg.sdf.util;a=this.imgDomain(a);c=this.imgDomain(c);var ba=q.previewImageSrc(a,m);q=q.previewImageSrc(c,m);m={srcPc:a,srcMo:c,lazySrcPc:ba,lazySrcMo:q,alt:m};for(var J in f)m[J]=f[J];return m};pa.prototype.getAttrCta=
function(a,c,m,f,q,ba){q=void 0===q?{}:q;ba=void 0===ba?"new-window":ba;var J={};f=[f];a||(a=null);J.text=a;c&&(J.href=c);"_blank"===m?(a=Granite.I18n.get("Open in a new window"),J.target="_blank",J.isOutLink=!0,J.isNotOutLink=null,f.push(ba),J.title=a):(J.isOutLink=null,J.isNotOutLink=!0);J.class=f.join(" ");for(var ha in q)"anla"==ha?J["an-la"]=q[ha]:J[ha]=q[ha];return J};pa.prototype.nonCheckError=function(a,c){try{c&&c.apply(a)}catch(m){console.log(m)}};pa.prototype.escapeHtml=function(a){var c=
{"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#039;"};return a.replace(/[&<>"']/g,function(m){return c[m]})};pa.prototype.imgDomain=function(a,c){var m="",f=$("#scene7domain").val();a&&(-1<a.indexOf("http:")||-1<a.indexOf("//stg-images.samsung.com/")||-1<a.indexOf("//images.samsung.com/")||-1<a.indexOf("image.samsung.com/")||-1<a.indexOf("//stg-images.samsung.com.cn/")||-1<a.indexOf("//images.samsung.com.cn/")||-1<a.indexOf("image.samsung.com.cn/")?m=a:(c&&(f=f.replace("/image/",
"/content/")),m=f+a));return m};pa.prototype.isNotEmptyArray=function(a){return a&&0<a.length&&a[0]};pa.prototype.isNotEmpty=function(a){return"number"!==typeof a&&""===a||null===a||void 0===a||null!==a&&"object"===typeof a&&!Object.keys(a).length?!1:!0};pa.prototype.formattingPrice=function(a){0>parseFloat(a)?a=0:-1<String(a).indexOf(".")&&(a=a.toFixed(2));return a};pa.prototype.hasComponent=function(a,c){var m=c.hasComponentClass;c=c.disabledClass;a=$(a);var f=!1;0<a.length&&(f=a.hasClass(m)&&!a.hasClass(c));
return f};pa.prototype.settingPriceDraw=function(a,c){function m(Xb){var Dc='\x3cp role\x3d"listitem" class\x3d"battery-tax-disclaimer-html"\x3e*'+Xb.batteryInformativeTaxes+"\x3c/p\x3e",xc='\x3cp role\x3d"listitem" class\x3d"green-tax-disclaimer-html"\x3e*'+Xb.greenInformativeTaxes+"\x3c/p\x3e",yc=$("#disclaimer.text-editor--feature-bottom-disclaimer").find("div").last();yc.length&&Xb.batteryTaxShowSpecificationArea&&yc.not(":has(.battery-tax-disclaimer-html)").append(Dc);yc.length&&Xb.greenTaxShowSpecificationArea&&
yc.not(":has(.green-tax-disclaimer-html)").append(xc)}var f=a.siteCode,q=a.util,ba=a.view,J=a.drawObj,ha=J.between.hasComponent,qa=a.proudctPriceInfo,ia=a.priceCurrency,za=$("#shopIntegrationFlag").val(),Ha=q.hasBetweenResult(a,c),Fa=q.hasFinancing(a,c),Ca=a.paymentMethods,Ia=c.buyingToolPriceBar.find(".cost-box__badge"),Ta=c.buyingToolPriceBar.find(".cost-box__new-badge"),Oa=q.hasUpgradeResult(a,c),ka=J.price.priceWrapper,Ja=a.proudctPriceInfo.orignalPriceFormatted,Da=a.proudctPriceInfo.salePriceFormatted,
La=a.proudctPriceInfo.rowCodeformattedPriceSave,Qa=ka.info.summaryPrice,Ma=a.drawObj.careResult.dataPaymentcycle,Sa=parseFloat(qa.orignalPrice),Ra=parseFloat(qa.salePrice),Va=qa.salePriceFormatted,Y=Sa-Ra;a.getOptoinPrice=!1;1<qa.productCartCount&&(Sa=parseFloat(qa.orignalPrice)*qa.productCartCount,Ra=parseFloat(qa.salePrice)*qa.productCartCount,Va=currencyComma(Ra,ia),Y=Sa-Ra,a.getOptoinPrice=!0);var ja={original:Sa,sale:Ra,saved:Y};J.priceAnchor.priceWrapper.info={};J.price.priceWrapper.info={};
ka.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 Aa=a.selectedBezelColor,Ba=0,Ga=0;if("Hybris-new"===za)Aa&&(Aa.hasOwnProperty("price")&&(Ba=Aa.price.value),Ga=Aa.hasOwnProperty("promotionPrice")?0<Aa.promotionPrice.value&&Aa.promotionPrice.value<Ba?Aa.promotionPrice.value:Ba:Ba);else if("Hybris"===za||"Hybris-intg"===
za)Aa.hasOwnProperty("price")&&null!=Aa.price&&(Ba=Aa.price),Ga=Aa.hasOwnProperty("promotionPrice")&&null!=Aa.promotionPrice?0<Aa.promotionPrice&&Aa.promotionPrice<Ba?Aa.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(Ga));ja.saved=parseFloat(ja.original)-parseFloat(ja.sale)}if(0<Ia.length){ka.hasEnergyLabel=!0;var ua=Ia.find(".cost-box__pf-link"),Ea=
Ia.find(".badge"),Ka=Ia.find(".badge-repairability a"),wa=Ta.find(".badge-repairability img"),xa={};0<ua.length&&(ua=$(ua.get(0)),ka.ficheAttr=this.getAttrCta(ua.text(),ua.attr("href"),ua.attr("target")));0<Ea.length&&(Ea=$(Ea.get(0)),ka.hasEnergyLabel=!0,ka.labelAttr=this.getAttrCta(Ea.find(".hidden").text(),Ea.attr("href"),Ea.attr("target"),Ea.attr("class")),ka.labelAttr.spanClass=Ea.find(".badge__grade--with-text").attr("class"));0<Ka.length&&(Ka=$(Ka.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=Ka.attr("an-la"),ka.repairAttr=this.getAttrCta(Ka.text(),Ka.attr("href"),Ka.attr("target"),"",xa))}if(0<Ta.length){ka.hasNewEnergyLabel=!0;var Xa=Ta.find(".badge-energy-label__text"),Ua=Ta.find(".badge-energy-label__badge"),Pa=Ta.find(".badge-repairability a"),
Wa=Ta.find(".badge-repairability img");xa={};0<Xa.length&&(Xa=$(Xa.get(0)),ka.ficheAttr=this.getAttrCta(Xa.text(),Xa.attr("href"),Xa.attr("target")));0<Ua.length&&(Ua=$(Ua.get(0)),ka.hasNewEnergyLabel=!0,ka.labelAttr=this.getAttrCta(Ua.text(),Ua.attr("href"),Ua.attr("target"),Ua.attr("class")),ka.labelAttr.spanClass=Ua.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"),ka.repairAttr=this.getAttrCta(Pa.text(),Pa.attr("href"),Pa.attr("target"),"",xa))}if(ka.hasPriceWrapper){"ae"!==f&&"ae_ar"!==f&&aa(Va,ha,c);var bb="",Ya="";if("nl"===f||"be"===f||"be_fr"===f)bb="From",ka.info.fromText=bb;"de"===f&&(Ya="From",ka.info.fromText=Ya);qa.usEppPrice&&(ja.sale=parseFloat(ja.sale)-parseFloat(qa.usEppPrice));
x(a,c,ja);U(a,c,ja);B(a,c,ja);w(a,c,ja);e(a,c,ja);"au"!==f&&"se"!==f&&"no"!==f&&"fi"!==f&&"dk"!==f&&"uk"!==f&&K(a,c,ja);ca(a,c,ja);A(a,c,ja);p(a,c,ja);k(a,c,ja);g(a,c,ja);"uk"!==f&&"au"!==f||D(a,c,ja);ja.saved=parseFloat(ja.original)-parseFloat(ja.sale);ja.original=this.formattingPrice(ja.original);ja.saved=this.formattingPrice(ja.saved);ja.sale=this.formattingPrice(ja.sale);J.tradeIn.hasComponent&&ka.info.useTooltip&&(ja.monthly=4,ja.monthlyPrice=this.formattingPrice(ja.sale/ja.monthly));if(qa.monthlyPriceInfo&&
qa.monthlyPriceInfo.monthlyPrice&&"tr"===f){var Za=$("#categoryTypeCode").val();Za&&4<=Za.length&&(Za=Za.substring(0,4));"0101"===Za&&(qa.monthlyPriceInfo.monthlyPrice="",qa.monthlyPriceInfo.interest="",qa.monthlyPriceInfo.tenureVal="")}a.totalPrice=ja;var cb="be"===f||"be_fr"===f||"nl"===f||"fr"===f;if("ro"==f||"bg"==f){if(qa.batteryInformativeTaxes){J.price.priceWrapper.info.batteryInformativeTaxes=Granite.I18n.get("Battery recycling cost, borne by Samsung: {0} (Included in the final price)",qa.batteryInformativeTaxes);
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(Ha&&!cb){var gb=c.buyingToolOptBetween.find("#pd-leasing-1"),zb=gb.attr("data-tenure-unit"),Cb=parseFloat(gb.attr("data-tenure-value")),hb=parseFloat(gb.attr("data-monthly-value")),Kb=parseFloat(gb.attr("data-payment-value"));ka.info.totalPrice="it"===f?Granite.I18n.get("Advance")+" "+currencyComma(Kb,
ia)+" "+Granite.I18n.get("Monthly fee of")+" "+currencyComma(hb,ia)+" "+Granite.I18n.get("for")+" "+zb+" "+Granite.I18n.get("months"):"ru"===f?Granite.I18n.get("{0}/month",currencyComma(hb,ia)):currencyComma(Kb,ia)+" + "+Cb+" x "+currencyComma(hb,ia)+"/"+Granite.I18n.get(zb)}else if(Oa){if("es"===f)if(Ra&&0!=Ra){var ub=24,qb=((Ra-.1*Ra)/ub).toFixed(2),Db=.1*Ra+((Ra-.1*Ra)/ub-qb)*ub;ka.info.totalPrice=currencyComma(Db,ia)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(qb,ia))}else Sa&&0!=Sa&&
(ub=24,qb=((Sa-.1*Sa)/ub).toFixed(2),Db=.1*Sa+((Sa-.1*Sa)/ub-qb)*ub,ka.info.totalPrice=currencyComma(Db,ia)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(qb,ia)))}else{bb&&(ka.info.vatText="( "+Granite.I18n.get("VAT Included")+" )");Ya&&(ka.info.vatText=Granite.I18n.get("VAT Included"));if(0<ja.saved){if(a.getOptoinPrice)ka.info.totalPrice=currencyComma(ja.sale,ia),"se"==f&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(window.sg.components.SamsungFlexPopup.tradeUpEnabled&&
(window.sg.components.SamsungFlexPopup.priceNavigationBarPostTradeUp=ka.info.totalPrice,window.sg.components.SamsungFlexPopup.priceSummaryPostTradeUp=ka.info.totalPrice),ka.info.totalPrice=window.sg.components.SamsungFlexPopup.summaryPriceWithTradeUp),"fi"!==f&&"se"!==f&&"dk"!==f&&"no"!==f&&"ee"!==f&&"lv"!==f&&"lt"!==f||!Ma||(ka.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your Samsung Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));else if(qa.monthlyPriceInfo&&
qa.monthlyPriceInfo.monthlyPrice){var db=qa.monthlyPriceInfo.monthlyPrice,lb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,eb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==f?ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(db,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isLowestInstallmentInterest?(ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(db,
ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===f&&(ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb]),ka.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb]))):"ro"===
f||"bg"===f?ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isMonthlySENA?ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos",[lb]):a.isSECZ?(ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(db,ia)),ka.info.totalPriceAnchor=
Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)):ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+
Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if("id"==f)ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(db,ia))+" "+Granite.I18n.get("for {0} mos",[lb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isLowestInstallmentInterest)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,eb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,
ia);else if("hk"===f||"hk_en"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(db,ia)]),ka.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=ka.info.totalPriceMonthly;else if("hu"===f){var nb=parseInt(db).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),
Ub=1>parseFloat(eb)?(100*parseFloat(eb)).toString().slice(0,eb.length-1):eb;ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",nb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[lb,Ub])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia)}else if("my"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isMonthlySENA)ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",
currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos",[lb]);else if("it"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("for {0} mos",[lb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("ch"===f||"ch_fr"===f){var ob=Granite.I18n.get("{0}/mo at",currencyComma(db,ia)),cc=Granite.I18n.get("{0} Monthly installments",lb),Yb=Granite.I18n.get("total (installment)"),
Lb=currencyComma(ja.sale,ia);ka.info.totalPrice=ob+" "+cc+", "+Yb+" "+Lb}else ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?Granite.I18n.get("From {0}/mo",currencyComma(db,ia))+". "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):Granite.I18n.get("From {0}/mo",currencyComma(db,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",ka.info.totalPrice);a.isLeasingPrice=ka.info.totalPrice}else"hr"!=f?ka.info.totalPrice=currencyComma(ja.sale,ia):"hr"==f&&(ka.info.totalPrice=Da.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==f&&(a.savingInformation?(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,ka.info.savePrice=
a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext=
"",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==f&&a.taxPriceDisplay&&(ka.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a);if(bb||Ya)bb&&null!=qa.listPrice&&0<qa.listPrice?(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia),null!=qa.orignalPrice&&0<qa.orignalPrice&&null!=qa.salePrice&&0<qa.salePrice&&(ka.info.orignalPrice=
Granite.I18n.get("From {0}",currencyComma(ja.original,ia)),J.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("From {0}",sa+currencyComma(ja.original,ia)+Na))):"de"==f&&1==a.isNewElementLowestWasPriceSetting?(ka.info.orignalPrice=currencyComma(ja.original,ia),J.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(ja.original,ia),ka.info.hasLowestWasPrice=!0):(ka.info.orignalPrice=Granite.I18n.get("From {0}",currencyComma(ja.original,ia)),J.priceAnchor.priceWrapper.info.orignalPrice=
Granite.I18n.get("From {0}",sa+currencyComma(ja.original,ia)+Na)),"de"==f&&!0!==a.isNewElementLowestWasPriceSetting&&(J.priceAnchor.priceWrapper.info.orignalPrice="");else if("pe"!==f&&"cl"!==f&&"mx"!==f&&"co"!==f||!qa.monthlyPriceInfo.monthlyPrice||(J.priceAnchor.priceWrapper.info.disclaimer="*Aplican condiciones"),"ca"===f||"ca_fr"===f)"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(J.priceAnchor.priceWrapper.info.savingInformation='\x3cp class\x3d"pd-buying-price__text-saving-info"\x3e'+
a.savingInformation+"\x3c/p\x3e");else{if("ro"!=f&&"bg"!=f)if("jp"==f)ka.info.orignalPrice="(\u5272\u5f15\u524d\u4fa1\u683c : "+currencyComma(ja.original,ia)+")",J.priceAnchor.priceWrapper.info.orignalPrice="(\u5272\u5f15\u524d\u4fa1\u683c : "+currencyComma(ja.original,ia)+")";else{if(!ya||"pl"!==f||a.isNewElementLowestWasPrice)!0!==a.isNewElementLowestWasPrice||!1!==a.isNewElementLowestWasPriceSetting||"at"===f||a.hasFrequentPrice?(ka.info.orignalPrice=currencyComma(ja.original,ia),"at"==f?(ka.info.orignalPrice=
Ja,J.priceAnchor.priceWrapper.info.orignalPrice=Ja):"hr"==f||"si"==f||"lv"==f||"lt"==f||"ee"==f||"pt"==f?J.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(ja.original,ia):"ua"==f?(ka.info.orignalPrice="\x3cdel\x3e"+currencyComma(ja.original,ia)+"\x3c/del\x3e",J.priceAnchor.priceWrapper.info.orignalPrice="\x3cdel\x3e"+currencyComma(ja.original,ia)+"\x3c/del\x3e"):J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,ka.info.hasNoLowestWasPrice=!1,ka.info.hasLowestWasPrice=
!0,"pl"==f&&!0===a.isNewElementLowestWasPriceSetting?(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):"it"==f&&!0===a.isNewElementLowestWasPriceSetting||"at"!=f||!0!==a.isNewElementLowestWasPriceSetting||(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"))):
(ka.info.orignalPrice="",J.priceAnchor.priceWrapper.info.orignalPrice="")}else if("ro"==f||"bg"==f){ka.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(ja.original,ia));J.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(ja.original,ia));if("bg"==f){var 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="",ka.info.orignalPrice="")}"br"==f&&(a.savingInformation?(ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,ka.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=
a.savingValue+" "+Granite.I18n.get("off")):(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText));"ar"==f&&a.taxPriceDisplay&&(ka.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay);this.setSamcolVatFreePrice(a)}if(""===bb&&!this.hasComponent(c.buyingToolOptTariffResult,
a))if("in"===f&&(ka.info.orignalPriceAddText="MRP: "+ka.info.orignalPrice+" (Incl. of all taxes)"),"hu"===f&&!0===a.isNewElementLowestWasPriceHuType&&!0===a.isNewElementLowestWasPriceSettingHuType&&(ka.info.orignalPriceAddText=Granite.I18n.get("Best price in the past 30 days:")+" "+a.proudctPriceInfo.wasPriceFormatted+"("+v(ja.original,ja.sale,a.proudctPriceInfo.wasPrice)+"%)",J.priceAnchor.priceWrapper.info.orignalPriceAddText="",J.priceAnchor.priceWrapper.info.ceExchangePrice=Granite.I18n.get("Best price in the past 30 days:")+
" "+a.proudctPriceInfo.wasPriceFormatted+"("+v(ja.original,ja.sale,a.proudctPriceInfo.wasPrice)+"%)"),"ca"===f||"ca_fr"===f)"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(J.priceAnchor.priceWrapper.info.savingInformation='\x3cp class\x3d"pd-buying-price__text-saving-info"\x3e'+a.savingInformation+"\x3c/p\x3e");else if("ro"!==f&&"bg"!==f){"br"===f?a.savingInformation?(ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,ka.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=
a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=
"",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText):"co"===f&&!0===a.vatEligible?(ka.info.savePrice="",J.priceAnchor.priceWrapper.info.savePrice=""):!0===a.isNewElementLowestWasPrice&&!1===a.isNewElementLowestWasPriceSetting?(J.priceAnchor.priceWrapper.info.savePrice="",ka.info.savePrice=""):(ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)),"pl"==f&&!0===a.isNewElementLowestWasPriceSetting?(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),
J.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):"it"==f&&!0===a.isNewElementLowestWasPriceSetting?(ka.info.savePrice=Granite.I18n.get("Save the {0}%",n(ja.saved,ja.original)),J.priceAnchor.priceWrapper.info.savePrice=Granite.I18n.get("Save the {0}%",n(ja.saved,ja.original))):"at"==f&&!0===a.isNewElementLowestWasPriceSetting&&(ka.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),J.priceAnchor.priceWrapper.info.lowestWasPricetext=
Granite.I18n.get("Lowest price 30 days before the discount:")));if(ya&&"pl"===f){var Gb="";0<qa.listPrice&&(Gb=" "+currencyComma(qa.listPrice,ia),J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+Gb)}this.setSamcolVatFreePrice(a)}if("it"===f&&ya){var Zb=window.sg.epp.common.eppDiscountRate(qa.b2cPrice,qa.salePrice),gc=Granite.I18n.get("Price at Samsung.it: {0}",[currencyComma(qa.b2cPrice,ia)]),hc=Granite.I18n.get("You save {0}%",[Zb]);0!=Zb&&(ka.info.eppDiscountText=gc,ka.info.eppDiscountRateText=
hc,J.priceAnchor.priceWrapper.info.eppDiscountText=gc,J.priceAnchor.priceWrapper.info.eppDiscountRateText=hc)}"au"!==f&&"fi"!==f&&"se"!==f&&"dk"!==f&&"no"!==f&&"ee"!==f&&"lv"!==f&&"lt"!==f||!a.isHybrisSplitPDTariff||(ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)));"fr"==f&&a.drawObj.tariffOptionResult.hasComponent&&(ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)));var Pb=q.hasTradeInResult(a,c);"fr"==f&&Pb&&a.commonTradein&&(J.price.priceWrapper.info.hasLowestWasPrice=
!0,J.price.priceWrapper.info.hasNoLowestWasPrice=!1,ka.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(ja.saved,ia)),ka.info.orignalPrice=currencyComma(ja.original,ia),J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na);"fr"===f&&(J.tradeIn.hasComponent&&ka.info.useTooltip?(ka.info.useTooltip=!0,ka.info.monthly=ja.monthly,ka.info.monthlyPrice=currencyComma(ja.monthlyPrice,ia),ka.info.monthlyPriceText=Granite.I18n.get("from")+" "+ka.info.monthly+" x "+ka.info.monthlyPrice+
" "+Granite.I18n.get("free of charge or")):ka.info.nonTooltip=!0);-1!==$.inArray(f,["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"));ka.info.unformattedSavePrice=ja.saved}else{if("nl"===f||"be"===f||"be_fr"===f)a.isMigrationHybris?0<qa.listPrice&&(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia)):qa.orignalPrice<
qa.listPrice&&(J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(qa.listPrice,ia));"in"===f&&(ka.info.orignalPriceAddText="MRP: "+currencyComma(ja.original,ia)+" (Incl. of all taxes)");if(ya&&"pl"===f){var ic="";0<qa.listPrice&&(ic=" "+currencyComma(qa.listPrice,ia),J.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+ic)}"pe"!==f&&"cl"!==f&&"mx"!==f&&"co"!==f||!qa.monthlyPriceInfo.monthlyPrice||(J.priceAnchor.priceWrapper.info.disclaimer=
"*Aplican condiciones");if(ja.original){!a.getOptoinPrice&&Da?a.isBezel||a.giftCard.isGiftCard?(ka.info.totalPrice=currencyComma(ja.sale,ia),"hr"==f&&a.isBezel&&(ka.info.totalPrice=ka.info.totalPrice.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e"))):("hr"!=f?ka.info.totalPrice=Da:"hr"==f&&(ka.info.totalPrice=Da.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==f&&(a.savingInformation?(J.price.priceWrapper.info.hasLowestWasPrice=
!0,ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,ka.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,ka.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice=sa+currencyComma(ja.original,ia)+Na,J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,J.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):
(ka.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",ka.info.orignalPrice="",ka.info.lowestWasPricetext=a.storeText,J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==f&&a.taxPriceDisplay&&(ka.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a)):ka.info.totalPrice=currencyComma(ja.original,ia);if(!a.getOptoinPrice&&qa.monthlyPriceInfo&&
qa.monthlyPriceInfo.monthlyPrice){var rb=qa.monthlyPriceInfo.monthlyPrice,jb=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,Eb=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==f?ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+" "+Da:a.isLowestInstallmentInterest?(ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
[jb,Eb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===f&&(ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Eb]),ka.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,Eb]))):"ro"===f||"bg"===f?ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,
ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia):a.isMonthlySENA?ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]):a.isSECZ?(ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(rb,ia)),ka.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb])+" "+Granite.I18n.get("or")+
" "+Da):ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?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")+" "+Da;else if("id"==f)ka.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)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,Eb])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if("hk"===f||"hk_en"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(rb,
ia)]),ka.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[jb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("hu"===f)nb=parseInt(rb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),Ub=1>parseFloat(Eb)?(100*parseFloat(Eb)).toString().slice(0,Eb.length-1):Eb,ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",nb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[jb,
Ub])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia);else if("my"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia);else if(a.isMonthlySENA)ka.info.totalPrice=currencyComma(ja.sale,ia)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]);else if("it"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",
currencyComma(rb,ia))+" "+Granite.I18n.get("for {0} mos",[jb]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("ch"===f||"ch_fr"===f){var nc=Granite.I18n.get("{0}/mo at",currencyComma(rb,ia)),vb=Granite.I18n.get("{0} Monthly installments",jb),jc=Granite.I18n.get("total (installment)"),mb=currencyComma(ja.sale,ia);ka.info.totalPrice=nc+" "+vb+", "+jc+" "+mb}else ka.info.totalPrice="tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(rb,ia))+" "+Granite.I18n.get("or")+
" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?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 xb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&xb.attr("data-leasing-price",ka.info.totalPrice);a.isLeasingPrice=ka.info.totalPrice}"fi"!==f&&"se"!==f&&"dk"!==f&&"no"!==
f&&"ee"!==f&&"lv"!==f&&"lt"!==f||!Ma||(ka.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your Samsung Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));"fr"===f&&(J.tradeIn.hasComponent&&ka.info.useTooltip?(ka.info.useTooltip=!0,ka.info.monthly=ja.monthly,ka.info.monthlyPrice=currencyComma(ja.monthlyPrice,ia),ka.info.monthlyPriceText=Granite.I18n.get("from")+" "+ka.info.monthly+" x "+ka.info.monthlyPrice+" "+Granite.I18n.get("free of charge or")):
ka.info.nonTooltip=!0)}else"uk"!==f&&"au"!==f||!a.drawObj.tariffOptionResult.hasComponent||0!==ja.sale||(J.price.priceWrapper.info.summaryPrice=J.price.priceWrapper.info.totalPrice=currencyComma(ja.sale,ia))}if("in"==f&&a.promotionSalesPitch){var Hb=parseFloat(ja.sale)-parseFloat(a.promotionSalesPitch);ka.info.ceExchangePrice="From "+currencyComma(Hb,ia)+" with exchange*"}if(!ja.sale&&!ja.original&&a.proudctPriceInfo.orignalPriceFormatted&&("uk"!==f&&"au"!==f||!a.drawObj.tariffOptionResult.hasComponent||
0!==ja.sale))if(Da!==Ja&&(ka.info.orignalPrice=Ja),La&&(ka.info.savePrice=La),qa.monthlyPriceInfo&&qa.monthlyPriceInfo.monthlyPrice){var fb=qa.monthlyPriceInfo.monthlyPrice,Ab=qa.monthlyPriceInfo.tenureVal?qa.monthlyPriceInfo.tenureVal:0,Ib=qa.monthlyPriceInfo.interest?qa.monthlyPriceInfo.interest:0;if("id"==f)ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(fb,ia))+" "+Granite.I18n.get("for {0} mos",[Ab])+" "+Granite.I18n.get("or")+" "+Da;else if(a.isLowestInstallmentInterest)ka.info.totalPrice=
Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[Ab,Ib])+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia),"pl"===f&&(ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[Ab,Ib]),ka.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
[Ab,Ib]));else if("hk"===f||"hk_en"===f)ka.info.totalPrice=currencyComma(ja.sale,ia),ka.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(fb,ia)]),ka.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[Ab]),J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("hu"===f)nb=parseInt(fb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),
Ub=1>parseFloat(Ib)?(100*parseFloat(Ib)).toString().slice(0,Ib.length-1):Ib,ka.info.totalPrice=Granite.I18n.get("pd From {0}/mo",nb)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[Ab,Ub])+" "+Granite.I18n.get("pd or")+" "+currencyComma(ja.sale,ia);else if("ro"===f||"bg"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("or")+" "+Da;else if("my"===f)ka.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("or")+
" "+Da;else if(a.isMonthlySENA)ka.info.totalPrice=Da+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[Ab]);else if(a.isSECZ)ka.info.totalPrice=Da,ka.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(fb,ia)),ka.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[Ab])+" "+Granite.I18n.get("or")+" "+Da;else if("it"===f)ka.info.totalPrice=Da,
ka.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("for {0} mos",[Ab])+" "+Granite.I18n.get("or")+" "+Da,J.priceAnchor.priceWrapper.info.totalPriceMonthly=ka.info.totalPriceMonthly;else if("ch"===f||"ch_fr"===f){var Vb=Granite.I18n.get("{0}/mo at",currencyComma(fb,ia)),dc=Granite.I18n.get("{0} Monthly installments",Ab),oc=Granite.I18n.get("total (installment)"),sb=currencyComma(ja.sale,ia);ka.info.totalPrice=Vb+" "+dc+", "+oc+" "+sb}else ka.info.totalPrice=
"tr"==f?Granite.I18n.get("From {0}/mo",currencyComma(fb,ia))+" "+Granite.I18n.get("or")+" "+currencyComma(ja.sale,ia)+" "+Granite.I18n.get("in advance"):"in"===f?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",[Ab])+" "+Granite.I18n.get("or")+" "+Da;var wb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&wb.attr("data-leasing-price",ka.info.totalPrice);a.isLeasingPrice=
ka.info.totalPrice}else ka.info.totalPrice=Da}J.price.priceWrapper.info.extraRewards=!1;if(a.extraRewardsSites){var Bb=$jscomp.makeIterator(a.extraRewardsDate[f].split("-")),Wb=Bb.next().value,Qb=Bb.next().value,Rb=function(Xb){var Dc=parseInt(Xb.substring(0,4)),xc=parseInt(Xb.substring(4,6))-1;Xb=parseInt(Xb.substring(6,8));return(new Date(Dc,xc,Xb)).setHours(0,0,0,0)},$b=new Date,ec=Rb(Wb),ac=Rb(Qb),Jb=(new Date($b.getUTCFullYear(),$b.getUTCMonth(),$b.getUTCDate())).setHours(0,0,0,0);Jb>=ec&&Jb<=
ac&&(J.price.priceWrapper.info.extraRewards=!0)}if(a.hasFrequentPrice){var Mb=a.proudctPriceInfo.frequentPrice,Tb=a.proudctPriceInfo.frequentPriceFormatted?a.proudctPriceInfo.frequentPriceFormatted:currencyComma(Mb,ia);J.priceAnchor.priceWrapper.info.hasFrequentPrice=!0;J.priceAnchor.priceWrapper.info.orignalPrice=sa+Tb+Na}if("fr"===f&&Fa&&Ca){var yb=Ca.simulation_plans,ab="";if(yb)for(var Sb in yb){var tb=Object.keys(yb[Sb]);ab=currencyComma(yb[Sb][tb].installment_amount.value,ia);ka.info.text?ka.info.text2=
Granite.I18n.get("{0} sans frais par Carte bancaire :**",tb)+" "+ab:ka.info.text=Granite.I18n.get("{0} sans frais par Carte bancaire :**",tb)+" "+ab}}"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(ka.info.savingInformation=a.savingInformation);a.useShippingOrBack&&a.shippingOrBack&&(ka.info.shippingOrBack=a.shippingOrBack);var sc="Hybris"===a.apiFlag||"Hybris-intg"===a.apiFlag;if(sc){a.stockLevelStatusDisplay&&""!=a.stockLevelStatusDisplay&&(ka.info.text2=a.stockLevelStatusDisplay);var Fb=
("Y"===globalShopInfo.shopServiceYN&&"Y"===a.isCart||"Hybris-intg"===a.apiFlag)&&"Y"!==a.oldProductYn,kc=!0;sc&&("N"!==globalShopInfo.shopServiceYN&&a.oldHybrisSalesStatus||(kc=!1));Fb&&globalShopInfo.reservedMsg&&"undefined"!=typeof globalShopInfo.reservedMsg&&null!=globalShopInfo.reservedMsg&&""!=globalShopInfo.reservedMsg&&(ka.info.text3=globalShopInfo.reservedMsg);Fb&&hybrisShopInfo.reservedMsg&&kc&&"undefined"!=typeof hybrisShopInfo.reservedMsg&&null!=hybrisShopInfo.reservedMsg&&""!=hybrisShopInfo.reservedMsg&&
(ka.info.text3=hybrisShopInfo.reservedMsg);"tw"===f&&"PREORDER"===a.stockLevelStatus&&(ka.info.text3="");-1!==$.inArray(f,["no","dk","fi","se"])&&!0===kc?"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"!==f&&"mx"!==f||!a.stockLevelStatusDisplay||""==a.stockLevelStatusDisplay||(ka.info.text3=a.stockLevelStatusDisplay);ka.info.summaryPrice=Qa;ka.info.salePriceFormatted=Da?Da:Ja;ka.info.orignalPrice!==ka.info.summaryPrice&&(ka.info.summaryPrice=ka.info.totalPrice);a.proudctPriceInfo.salesPitch&&
(ka.info.salesPitch=a.proudctPriceInfo.salesPitch);if(a.drawObj.tradeInResult.priceOverFlag&&("nl"===f||"be"===f||"be_fr"===f||"sg"===f||"vn"===f||"id"===f||"fr"===f||"de"===f||"sa"===f||"sa_en"===f||"kz_kz"===f||"kz_ru"===f||"cl"===f||"cn"===f)&&(J.price.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia),J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia),"fr"==f&&(J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ia)),"cn"==
f)){var lc=a.hasComponentClass,tc=a.disabledClass,zc=c.buyingToolOptCareResult,fc=zc.hasClass(lc)&&!zc.hasClass(tc),Ec=zc.find(".result-price").attr("data-price"),mc=c.buyingToolOptWarrantyVdResult,pc=mc.hasClass(lc)&&!mc.hasClass(tc),uc=mc.find(".option-result__text-wrap").attr("data-price"),qc=a.minOrderEntryValue;fc&&(qc+=parseFloat(Ec));pc&&(qc+=parseFloat(uc));J.price.priceWrapper.info.totalPrice=currencyComma(qc,ia);J.priceAnchor.priceWrapper.info.totalPrice=currencyComma(qc,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"===
f)&&ka.info.totalPriceAnchor&&(J.priceAnchor.priceWrapper.info.totalPrice=ka.info.totalPriceAnchor);if(ka.info.totalPrice){var rc=currencyComma(ja.sale,ia);"gr"===f&&(rc=ka.info.salePriceFormatted);J.priceAnchor.priceWrapper.info.totalPrice=ka.info.totalPrice.replace(rc,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+rc+"\x3c/span\x3e")}a.isSENA&&qa&&qa.promotionPriceValidTo&&($(".cost-box__description.promotionPriceValidTo").show(),ka.info.promotionPriceValidTo=qa.promotionPriceValidTo);
if("at"==f)if(qa&&!1===(null==qa?void 0:qa.isFreeDeliveryCost)){ka.info.shippingCostPopup={};ka.info.isFreeDeliveryCost=!0;var vc;ka.info.shippingCostPopup.deliveryModes=null==qa?void 0:null==(vc=qa.shippingCostPopup)?void 0:vc.deliveryModes;var Ac;ka.info.shippingCostPopup.deliveryServices=null==qa?void 0:null==(Ac=qa.shippingCostPopup)?void 0:Ac.deliveryServices}else if(null==qa?0:qa.itsFreeDelivery)ka.info.itsFreeDelivery=!0;ya||"tr"!==f||(ka.info.hasLowestWasPrice=!1,ka.info.lowestWasPricetext=
"",ka.info.orignalPrice="",ka.info.savePrice="",J.priceAnchor.priceWrapper.info.lowestWasPricetext="",J.priceAnchor.priceWrapper.info.orignalPrice="",J.priceAnchor.priceWrapper.info.savePrice="");"cn"===f&&window.sg.components.dynamic.productInstallmentWithGiftPD.setInstallmentPrice(a,c);if(ka.info.useTooltip){$("#disclaimer").find(".text-editor__inner").empty();var Fc='\x3cdiv class\x3d"text-editor__column-wrap"\x3e\n                                          \x3cdiv class\x3d"text-editor__column description-text-size--small"\x3e\n                                              '+
Granite.I18n.get("disclaimerText")+"\n                                          \x3c/div\x3e\n                                      \x3c/div\x3e";$("#disclaimer").find(".text-editor__inner").html(Fc)}if("bg"==f)if("eur"===a.priceCurrency.toLowerCase()){if(-1==J.price.priceWrapper.info.totalPrice.indexOf("\u043b\u0432")){var bc=ja.sale,wc=h(bc);J.price.priceWrapper.info.totalPrice+=" / "+wc;J.priceAnchor.priceWrapper.info.totalPrice+=" / "+wc}}else-1==J.price.priceWrapper.info.totalPrice.indexOf("\u20ac")&&
(wc=ja.sale,bc=l(wc),J.price.priceWrapper.info.totalPrice+=" / "+bc,J.priceAnchor.priceWrapper.info.totalPrice+=" / "+bc);ba.productPriceTotalDraw(J,a.isOptClicked);var Bc;"at"==f&&(null==(Bc=J.price.priceWrapper.info)?0:Bc.shippingCostPopup)&&ba.shippingCostPopupDraw(J.price.priceWrapper.info.shippingCostPopup)}else a.isSENA&&(a.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description.howToReceiveTheProduct").remove()),ba.productPriceTotalDraw(J,a.isOptClicked)};pa.prototype.setSamcolVatFreePriceOld=
function(a,c,m){"co"==a.siteCode&&!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,f=a.modelName,q=a.displayName,ba=a.pvitype.toLowerCase(),J=a.pvisubtype.toLowerCase(),ha=a.pimsubtype.toLowerCase(),qa=a.proudctPriceInfo.orignalPrice,ia=a.proudctPriceInfo.salePrice,za=a.imgUrl,Ha=a.skuId;$(document).find(".add-special-tagging").each(function(Fa,Ca){!$(Ca).attr("data-modelcode")&&
m&&$(Ca).attr("data-modelcode",m);za&&$(Ca).hasClass("tg-add-to-cart")&&$(Ca).attr("data-imageurl",za);!$(Ca).attr("data-modelname")&&f&&$(Ca).attr("data-modelcode")&&-1<$(Ca).attr("data-modelcode").indexOf(m)&&$(Ca).attr("data-modelname",f.toLowerCase());!$(Ca).attr("data-modelprice")&&ia&&$(Ca).attr("data-modelcode")&&-1<$(Ca).attr("data-modelcode").indexOf(m)&&$(Ca).attr("data-modelprice",qa);!$(Ca).attr("data-modelrevenue")&&ia&&$(Ca).attr("data-modelcode")&&-1<$(Ca).attr("data-modelcode").indexOf(m)&&
$(Ca).attr("data-modelrevenue",qa);!$(Ca).attr("data-discountprice")&&ia&&$(Ca).attr("data-modelcode")&&-1<$(Ca).attr("data-modelcode").indexOf(m)&&$(Ca).attr("data-discountprice",ia);!$(Ca).attr("data-modeldisplay")&&q&&$(Ca).attr("data-modelcode")&&-1<$(Ca).attr("data-modelcode").indexOf(m)&&$(Ca).attr("data-modeldisplay",q.toLowerCase());!$(Ca).attr("data-pvitype")&&ba&&$(Ca).attr("data-pvitype",ba);!$(Ca).attr("data-pvisubtype")&&J&&$(Ca).attr("data-pvisubtype",J);!$(Ca).attr("data-pimsubtype")&&
ha&&$(Ca).attr("data-pimsubtype",ha);$(Ca).attr("data-modelqty")||$(Ca).attr("data-modelqty","1");!$(Ca).attr("data-skuid")&&Ha&&$(Ca).attr("data-skuid",Ha)});this.thirdPartyTagging(a,c,c.buyingToolOptTariff.find(".option-input"))};pa.prototype.settingPriceCta=function(a,c,m,f){var q=c.drawObj,ba=c.view,J=c.apiChangeStockStatus,ha=c.priceCurrency;if("Y"!==c.wtbCtaBtnYn){var qa=a,ia=c.util,za=c.drawObj,Ha=c.isSimplePDP,Fa=c.siteCode,Ca=c.modelName,Ia=m.buyingToolOptTariffPlan.find("ul li"),Ta=c.modelCode,
Oa=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",ka=c.wtbSrc,Ja=c.imgUrl,Da=c.wtbSubTypeCode,La=c.shopSkuCode,Qa=$(m.buyingToolOptTariffPlan),Ma=ia.hasTariffPlanResult(c,m),Sa=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,Aa=c.wtbUseYn,Ba=c.wtbDispFuncUseYN,Ga=za.price,ua="_self",Ea="",Ka="",wa={},xa=c.stockLevelStatus,Xa=xa,Ua="";"cn"==Fa&&(Ua="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 bb="_self",Ya="",Za="",cb={},ib="",$a="",pb={},kb="pd-buying-price--cta3",gb="javascript:;",zb="javascript:;",Cb={modelName:Ca,dataTtile:Oa,imgSrc:ka,iaCode:Da,dataModelCode:Ta};"in"===Fa&&(Cb.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 ub=!1;"Y"===Aa?(ub="Y"===Ba&&(Y||ja||Va||Kb)?hb?!1:!0:!0,Ra||(ub=!0)):ub=!1;"mx"===Fa&&(ub=!1);if(qa)if(ub?"NOORDER"===xa?(Ka=Za=Granite.I18n.get("Where to buy"),Ea=Ya="js-cta-buy tg-wtb",wa=cb=Cb):"id"!==Fa&&($a=Granite.I18n.get("Where to buy"),ib="js-cta-buy tg-wtb",pb=Cb):"NOORDER"===xa&&(Za=Ka=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=Ka=Granite.I18n.get("Get stock alert"),cb=wa={moCode:La});else{if("OUTOFSTOCK"===xa)Ya=Ea="js-cta-stock tg-out-stock",Za=Ka=Granite.I18n.get("Get stock alert"),cb=wa={moCode:La,gsFlag:Ua};else if("PREORDER"===xa){var qb=Q("preorder",c,m),Db={};Ya=Ea="js-buy-now";Db.moCode=La;qb.isSpecial?(Za=Ka=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=Ka=Granite.I18n.get("pre order"),Ya+=" tg-pre-order",Ea+=" tg-pre-order");Db.ctaType=qb.ctaType;cb=wa=Db}else{var db=Q("add-cart",c,m),lb={moCode:La};Ya=Ea="js-buy-now";db.isSpecial?(Za=Ka=db.title,db.ctaType&&(-1<db.ctaType.indexOf("continue")?(Ya+=" tg-continue",Ea+=" tg-continue"):-1<db.ctaType.indexOf("checkout")&&(Ya+=" tg-checkout",
Ea+=" tg-checkout",-1<db.ctaType.indexOf("between")&&(Ya+=" tg-between",Ea+=" tg-between")))):(Za=Ka=Granite.I18n.get("Add to cart"),Ya+=" tg-add-to-cart",Ea+=" tg-add-to-cart",lb.imgUrl=Ja);lb.ctaType=db.ctaType;cb=wa=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=Ka=Granite.I18n.get("Buy now"));["th","lv","lt","ee"].includes(Fa)&&"INSTOCK"===
xa&&(Za=Ka=Granite.I18n.get("Buy"))}W(c,m)}else kb="pd-buying-price--cta2",ub?(Ka=Za=Granite.I18n.get("Where to buy"),Ea=Ya="js-cta-buy tg-wtb",wa=cb=Cb,!Ha&&("nl"===Fa||"be"===Fa||"be_fr"===Fa)&&0<Ia.length&&(Ka=Granite.I18n.get("BUY WITH SUBSCRIPTION"),Ea="s-cta-item js-tariff-cta tg-subscription",wa.style="display:none;")):(Za=Ka=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=Ka=Granite.I18n.get("Get stock alert"),cb=wa=
{moCode:La});c.sellingWithBazel&&"OUTOFSTOCK"==xa&&(Ya=Ea="cta--disabled js-cta-stock tg-out-stock",Za=Ka=Granite.I18n.get("Out Of Stock"),cb=wa={moCode:La});Ma&&(Ya=Ea="js-buy-now is-checked tg-subscription",Za=Ka=Granite.I18n.get("BUY WITH SUBSCRIPTION"),zb=gb=Sa);c.hasBespokeCta&&("PREORDER"!==xa&&(Ya=Ea="tg-bespoke",Za=Ka=Granite.I18n.get("Customize yours"),zb=gb=$("#bespokeCtaLink").val(),bb=ua="_self"),"Y"===Aa&&($a=Granite.I18n.get("Where to buy"),ib="js-cta-buy tg-wtb",pb=Cb));"cn"==Fa&&c.isComingSoon&&
(Ua="ComingSoon",Za=Ka=Granite.I18n.get("Coming Soon Title"),cb.gsFlag=Ua,wa.gsFlag=Ua);xa=Xa;Ga.classType=kb;Ga.isNotForSale=!Ga.configuratorEnabled&&Za===Granite.I18n.get("not for sale");Ga.wtbAttr=ia.getAttrCta($a,"javascript:;","_self",ib,pb);Ga.containedAttr=ia.getAttrCta(Ka,gb,ua,Ea,wa);Ga.anchorNaviAttr=ia.getAttrCta(Za,zb,bb,Ya,cb)}else{var eb=a,nb=c.util,Ub=c.drawObj,ob=c.siteCode,cc=c.modelName,Yb=c.modelCode,Lb=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",Nb=c.wtbSrc,Ob=
c.wtbSubTypeCode,Gb=c.shopSkuCode,Zb=$(m.buyingToolOptTariffPlan),gc=nb.hasTariffPlanResult(c,m),hc=Zb.find(".option-input.this-checked").attr("data-url"),Pb=$("#shopIntegrationFlag").val(),ic="GPv2"===Pb,rb="Hybris"===Pb||"Hybris-intg"===Pb,jb="Hybris-new"===Pb,Eb=c.wtbUseYn,nc=c.wtbDispFuncUseYN,vb=Ub.price,jc="_self",mb="",xb="",Hb={},fb=c.stockLevelStatus,Ab=fb,Ib="";"cn"==ob&&(Ib="GetStock");c.isPossibleBuy="INSTOCK"==fb||"BACKORDERED"==fb||"PREORDER"==fb||"LOWSTOCK"==fb?!0:!1;if(c.isBezel&&
c.isPossibleBuy)if("Hybris-new"===Pb){var Vb=c.selectedBezelColor;if(Vb){var dc=Vb.hasOwnProperty("stock")?Vb.stock.stockLevelStatus.toUpperCase():"";fb=dc}""==fb&&(eb=!1)}else{if("Hybris"===Pb||"Hybris-intg"===Pb)Vb=c.selectedBezelColor,dc="",Vb&&Vb.hasOwnProperty("stockLevelStatus")&&null!=Vb.stockLevelStatus&&(dc=Vb.stockLevelStatus.toUpperCase()),fb=dc,""==fb&&(eb=!1)}else c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel&&(fb="OUTOFSTOCK");var oc="_self",sb="",wb="",Bb={},Wb="",Qb="",Rb={},$b=
"javascript:;",ec="javascript:;",ac="pd-buying-price--cta2",Jb={modelName:cc,dataTtile:Lb,imgSrc:Nb,iaCode:Ob,dataModelCode:Yb};"in"===ob&&(Jb.dataModelCode=$("#modelCode").val());var Mb=!0,Tb="br"===ob||"ar"===ob||"latin"===ob?!0:!1;rb?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(Mb=!1):jb?c.newHybrisSalesStatus||(Mb=!1):ic?c.accessoryDisabled&&(Mb=!1):Tb&&(c.hybrisApiData.shopAPI?"br"!==ob||c.hybrisApiData.shopAPI.salesStatus?"ar"===ob&&"ON_SALES"!==c.hybrisApiData.shopAPI.salesStatus?
Mb=!1:"latin"===ob&&"ON_SALE"!==c.hybrisApiData.shopAPI.salesStatus&&(Mb=!1):Mb=!1:Tb=!1);var yb=!1;"Y"===Eb?(yb="Y"===nc&&(rb||jb||ic||Tb)?Mb?!1:!0:!0,Pb||(yb=!0)):yb=!1;"mx"===ob&&(yb=!1);if(eb){yb?("NOORDER"===fb?(sb=mb="js-cta-buy tg-wtb",wb=xb=Granite.I18n.get("Where to buy"),Bb=Hb=Jb):(Wb="js-cta-buy tg-wtb ",Qb=Granite.I18n.get("Where to buy"),Rb=Jb,ac="pd-buying-price--cta3"),"in"===ob&&(sb=mb="js-cta-stock tg-out-stock",wb=xb=Granite.I18n.get("Get stock alert"),Bb=Hb={moCode:Gb})):"NOORDER"===
fb&&(sb=mb="cta--disabled no-for-sale tg-not-for-sale",wb=xb=Granite.I18n.get("not for sale"),"in"===ob&&(sb=mb="js-cta-stock tg-out-stock",wb=xb=Granite.I18n.get("Get stock alert"),Bb=Hb={moCode:Gb}));if("OUTOFSTOCK"===fb)sb=mb="js-cta-stock tg-out-stock",wb=xb=Granite.I18n.get("Get stock alert"),Bb=Hb={moCode:Gb,gsFlag:Ib};else if("PREORDER"===fb){var ab=Q("preorder",c,m),Sb={};sb=mb="js-buy-now pre-order";Sb.moCode=Gb;ab.isSpecial?(wb=xb=ab.title,ab.ctaType&&(-1<ab.ctaType.indexOf("continue")?
(sb+=" tg-continue",mb+=" tg-continue"):-1<ab.ctaType.indexOf("checkout")&&(sb+=" tg-checkout",mb+=" tg-checkout",-1<ab.ctaType.indexOf("between")&&(sb+=" tg-between",mb+=" tg-between")))):(wb=xb=Granite.I18n.get("pre order"),sb+=" tg-pre-order",mb+=" tg-pre-order");Sb.ctaType=ab.ctaType;Rb.moCode=Gb;Bb=Hb=Sb}else{var tb=Q("add-cart",c,m);sb=mb="js-buy-now";"Y"===Eb&&("in"===ob?(sb=mb="js-cta-stock tg-out-stock",wb=xb=Granite.I18n.get("Get stock alert"),Bb=Hb={moCode:Gb}):(ac="pd-buying-price--cta3",
Wb="js-cta-buy tg-wtb ",Qb=Granite.I18n.get("Where to buy"),Rb=Jb));var sc={moCode:Gb};tb.isSpecial?(wb=xb=tb.title,tb.ctaType&&(-1<tb.ctaType.indexOf("continue")?(sb+=" tg-continue",mb+=" tg-continue"):-1<tb.ctaType.indexOf("checkout")&&(sb+=" tg-checkout",mb+=" tg-checkout",-1<tb.ctaType.indexOf("between")&&(sb+=" tg-between",mb+=" tg-between")))):(wb=xb=Granite.I18n.get("Add to cart"),sb+=" tg-add-to-cart",mb+=" tg-add-to-cart");sc.ctaType=tb.ctaType;Bb=Hb=sc;Rb.moCode=Gb;"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=xb=Granite.I18n.get("Buy"))}W(c,m)}else"Y"===Eb?(sb=mb="js-cta-buy tg-wtb",wb=xb=Granite.I18n.get("Where to buy"),Bb=Hb=Jb):(sb=mb="cta--disabled tg-not-for-sale",wb=xb=Granite.I18n.get("not for sale")),"in"===ob&&(sb=mb="js-cta-stock tg-out-stock",wb=xb=Granite.I18n.get("Get stock alert"),Bb=Hb=
{moCode:Gb}),ac="pd-buying-price--cta1";c.sellingWithBazel&&"OUTOFSTOCK"==fb&&(sb=mb="cta--disabled js-cta-stock tg-out-stock",wb=xb=Granite.I18n.get("Out Of Stock"),Bb=Hb={moCode:Gb});gc&&(sb=mb="js-buy-now is-checked tg-subscription",wb=xb=Granite.I18n.get("BUY WITH SUBSCRIPTION"),$b=ec=hc);c.hasBespokeCta&&("PREORDER"!==fb&&(sb=mb="tg-bespoke",wb=xb=Granite.I18n.get("Customize yours"),$b=ec=$("#bespokeCtaLink").val(),oc=jc="_self"),"Y"===Eb&&(Qb=Granite.I18n.get("Where to buy"),Wb="js-cta-buy tg-wtb",
Rb=Jb));"cn"==ob&&c.isComingSoon&&(Ib="ComingSoon",wb=xb=Granite.I18n.get("Coming Soon Title"),Bb.gsFlag=Ib,Hb.gsFlag=Ib);fb=Ab;vb.classType=ac;vb.isNotForSale=!vb.configuratorEnabled&&wb===Granite.I18n.get("not for sale");vb.wtbAttr=nb.getAttrCta(Qb,"javascript:;","_self",Wb,Rb);vb.containedAttr=nb.getAttrCta(xb,ec,jc,mb,Hb);vb.anchorNaviAttr=nb.getAttrCta(wb,$b,oc,sb,Bb)}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 Fb=q.price,kc=c.modelCode,lc=c.ctaLocalText,tc=c.configuratorUseYn,zc=$("#tempTitle").val(),fc=c.configuratorUrl;"Y"===tc&&"page-standard-pd"===zc&&(""!==fc&&null!==fc?(fc=fc+"?modelCode\x3d"+kc,Fb.anchorNaviAttr.href=fc,Fb.containedAttr.href=fc,Fb.anchorNaviAttr.class=Fb.containedAttr.class="configuratorUse-y"):Fb.anchorNaviAttr.class=Fb.containedAttr.class="cta--disabled configuratorUse-y",
""!==lc&&null!==lc&&(Fb.anchorNaviAttr.text=Fb.containedAttr.text=lc),Fb.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());var Ec=c.soundbarCategoryData;(c.addonStepBuying04||c.addonStepBuying0701)&&!c.newEmbedVDCountry&&Ec&&1===Ec.categoryTotalCount&&!c.hasGift&&c.embedAddonSelected&&0<c.embedAddonSelected.length&&(Fb.anchorNaviAttr.class=Fb.containedAttr.class=Fb.anchorNaviAttr.class.replace(" tg-continue",""),Fb.anchorNaviAttr.ctaType=Fb.containedAttr.ctaType=Fb.anchorNaviAttr.ctaType.replace(" continue",
""));ba.productCtaDraw(q);this.settingCtaTagging(c,m);this.specialTagging(c,m);var mc=m.buyingToolPriceBar.find(".summary__product-price");if(c.embedAddonSelected&&0<c.embedAddonSelected.length)mc.show();else{var pc=m.buyingToolOptEmbedAddon.attr("data-leasing-price");pc&&mc.html()===q.price.priceWrapper.info.totalPrice&&($(".pd-buying-price .pd-buying-price__wrap .pd-buying-price__new-price").html(pc),$(".hdd02-buying-tool__cost-box .cost-box__price .cost-box__price-now").html(pc));mc.hide()}if("uk"===
siteCode||"au"===siteCode){var uc=!1,qc=$(".pd-buying-price__save"),rc=$(".cost-box__price-save"),vc=$(".pd-buying-price__new-price"),Ac=$(".cost-box__price-now"),Fc=vc.html();"uk"===siteCode&&q.tariffOptionResult.hasComponent&&(vc.html("Upfront Cost : "+Fc),Ac.html("Upfront Cost : "+Fc));q.tariffOptionResult.hasComponent&&q.tradeInResult.hasComponent&&(q.careResult.hasComponent?0>parseInt(c.tariffPrice)+q.careResult.dataSalePrice-q.tradeInResult.dataPrice&&(uc=!0):0>parseInt(c.tariffPrice)-q.tradeInResult.dataPrice&&
(uc=!0));var bc=$(".hdd02-buying-tool__cost-box");uc?(0<bc.find(".cost-box__error-message").length?bc.find(".cost-box__error-message").html('\x3cp class\x3d"cost-box__error-message"\x3eSorry, we are unable to proceed due to the current product combination. Please select another device to trade-in or change your Sim Plan selection.\x3c/p\x3e'):bc.find(".cost-box__cta-wrap").after('\x3cp class\x3d"cost-box__error-message"\x3eSorry, we are unable to proceed due to the current product combination. Please select another device to trade-in or change your Sim Plan selection.\x3c/p\x3e'),
$(".cost-box__cta a").addClass("cta--disabled"),$(".pd-buying-price__cta a").addClass("cta--disabled")):bc.find(".cost-box__error-message").remove();if("uk"===siteCode&&q.tradeInResult.hasComponent)if(0<qc.length)qc.html("Save "+currencyComma(q.tradeInResult.dataPrice,ha)),rc.html("Save "+currencyComma(q.tradeInResult.dataPrice,ha));else{var wc='\x3cdiv class\x3d"pd-buying-price__save"\x3eSave '+currencyComma(q.tradeInResult.dataPrice,ha)+"\x3c/div\x3e",Bc='\x3cstrong class\x3d"cost-box__price-save"\x3e\x3cspan class\x3d"hidden"\x3ePrice \x3c/span\x3eSave '+
currencyComma(q.tradeInResult.dataPrice,ha)+"\x3c/strong\x3e";$(".pd-buying-price .pd-buying-price__was").after(wc);$(".hdd02-buying-tool__cost-box .cost-box__price-original").after(Bc)}q.tariffOptionResult.hasComponent&&($(".pd-buying-price .pd-buying-price__was").hide(),$(".pd-buying-price .pd-buying-price__save").hide(),$(".hdd02-buying-tool__cost-box .cost-box__price-original").hide(),$(".hdd02-buying-tool__cost-box .cost-box__price-save").hide())}m.buyingTool.find("#apiChangeStockStatus").val(J);
this.settingRewardsDraw(c)};pa.prototype.settingBezelInfo=function(a,c){var m=a.modelCode,f=$(".option-bezelcolor .pd-option-selector");if(0<f.length)for(var q=0;q<f.length;q++){var ba=f.eq(q).attr("data-disabled");f.eq(q).parent().addClass(ba)}a.sellingWithBazel&&0==$("#option-bezelcolor .pd-select-option__wrap").length&&this.settingPriceCta(a.hasPriceCta,a,c,a.currentUrl);if(0<$("#option-bezelcolor .pd-select-option__wrap").length&&!a.isBezel){a.isBezel=!0;c=$("input[id^\x3d'pd-color-multi']");
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(Ha,Fa){var Ca=$("#shopIntegrationFlag").val(),Ia=Ha.bezelModelCodeArray;if("Hybris-new"===Ca)for(Ca=
0;Ca<Fa.length;Ca++)Ha.bezelModelCodeArray.push(Fa[Ca]);else if("Hybris"===Ca||"Hybris-intg"===Ca)for(Fa=Fa.productDatas,Ca=0;Ca<Ha.bezelModelCodeArrayList.length;Ca++)for(var Ta=0;Ta<Fa.length;Ta++)Ha.bezelModelCodeArrayList[Ca]==Fa[Ta].productCode&&Ha.bezelModelCodeArray.push(Fa[Ta]);Ha.selectedBezelColor=Ia[Ha.bezelColorIndex]}var m=$("#storeDomain").val(),f=a.multistoreSiteCd,q=a.bezelModelCodeList,ba=$("#shopIntegrationFlag").val(),J=q.split(","),ha="ca"===f||"ca_fr"===f;a.bezelModelCodeArrayList=
J;J="";J=ya?$("#eppCompanyCode").val():f;var qa="";$("#shopParmLang").val()&&(qa="\x26lang\x3d"+$("#shopParmLang").val());var ia=ya||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};f="\x26country_region\x3d";var za="";ha&&(za=getSECACountryRegion(),f+=za);if("Hybris-new"===ba)$.ajax({url:m+"/tokocommercewebservices/v2/"+J+"/products?productCodes\x3d"+q+"\x26fields\x3dSIMPLE_INFO"+qa,type:"GET",cache:!0,crossDomain:!0,xhrFields:ia,dataType:"json",timeout:2E4,
success:function(Ha,Fa,Ca){200==Ca.status&&c(a,Ha)},error:function(Ha,Fa,Ca){},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(Ha,Fa,Ca){200==Ca.status&&c(a,Ha)},error:function(){},complete:function(){0<
$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}}):ha?$.ajax({url:J+f,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ha,Fa,Ca){200==Ca.status&&c(a,Ha)},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(Ha,Fa,Ca){200==Ca.status&&c(a,Ha)},error:function(){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}})};pa.prototype.settingDeliveryMessage=function(a,c){c=a.drawObj;var m=a.view,f=a.useDeliveryMessage,q=a.deliveryMessage;c.deliveryMessage={hasComponent:!1,deliveryMessage:""};f&&""!==q&&(c.deliveryMessage.hasComponent=!0,c.deliveryMessage.deliveryMessage=
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 f=$.cookies.get("guid",{domain:".samsung.com"});"cn"===m&&(f=$.cookies.get("guid",{domain:".samsung.com.cn"}));c=$.cookies.get("flpe",{domain:".samsung.com"});"cn"===m&&(c=$.cookies.get("flpe",{domain:".samsung.com.cn"}));m={};if(c&&f){m=$("#cck").val();var q=CryptoJS.enc.Utf8.parse(m);m=(CryptoJS.AES.encrypt(""+f,q,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+m).substring(0,32);m=CryptoJS.enc.Utf8.parse(m);
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,ha=m.emailAddr;a.giftCard.isGiftCard=!0;a.giftCard.cartGiftCardCode=a.modelCode;a.giftCard.selectedPrice=a.giftCard.minPrice;c=Granite.I18n.get("minPrice{0} maxPrice{1} priceIncrement{2}",[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted,a.giftCard.priceIncrementFormatted]);m=Granite.I18n.get("Please enter only numbers. {0} {1}",
[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted]);$(".pd-select-option--gift-card .text-field-v2__hint").text(c);$(".pd-select-option--gift-card .text-field-v2__text").text(m);null!=f&&""!=f||$(".checkbox-v2").hide();$(document).on("click","#email-checkbox",function(){null!=f&&""!=f&&($("#email-checkbox").is(":checked")?(null!=ha&&ha&&(a.giftCard.emailValid=!0,$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(0).hide(),$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(1).hide(),
$(".pd-select-option--delivery-details .text-field-v2__text.error").eq(2).hide()),a.giftCard.email=ha,a.giftCard.firstName=ba,a.giftCard.lastName=J,$("#email-address-input").val(ha),$("#first-name-input").val(ba),$("#last-name-input").val(J),$("#email-address-input").parent().parent().addClass("active"),$("#first-name-input").parent().parent().addClass("active"),$("#last-name-input").parent().parent().addClass("active")):(a.giftCard.emailValid=!1,a.giftCard.email="",a.giftCard.firstName="",a.giftCard.lastName=
"",$("#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 f=$("#gmapLatitude").val(),q=$("#gmapLongitude").val();0<$("#pickup-map-canvas").length&&pickupOptionPD.initMap(f,q,"N");window.sg.components.pickupOptionsPopup.showPopup($(this))})}};pa.prototype.settingRecommendation=
function(a,c){c=a.modelCode;var m=a.siteCode,f=a.notUseRecommendation,q=a.notEppUseRecommendation;!a.useRecommendation||f.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,f=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);f.attr("href",a);c.attr("href",q)};
pa.prototype.displayStockStatus=function(a,c){c=c.buyingTool;var m=a.stockLevelStatus.toLowerCase(),f="";f+='\x3cspan class\x3d"pd-in-stock-icon"\x3e';f+='  \x3cspan class\x3d"s-stock-icon"\x3e';f+='    \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e';f+='      \x3cuse xlink:href\x3d"#confirmation-result-bold" href\x3d"#confirmation-result-bold"\x3e\x3c/use\x3e';f+="    \x3c/svg\x3e";f+="  \x3c/span\x3e";f+=Granite.I18n.get("IN STOCK");f+="\x3c/span\x3e";var q="";q+='\x3cspan class\x3d"pd-out-stock-icon"\x3e';
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 ha=$(this).find(".option-input"),qa=ha.attr("name");if(("pd-size"===qa||"pd-color"===qa)&&ha.is(":checked"))return $(this).siblings().find(".pd-in-stock-icon,.pd-out-stock-icon,.pd-instock,.pd-outofstock").remove(),"instock"==m?(ha="pd-size"===qa?f:ba)&&0===$(this).find(".pd-instock, .pd-in-stock-icon").length&&$(this).append(ha):("outofstock"==m||"noorder"==m)&&(ha="pd-size"===qa?q:J)&&0===$(this).find(".pd-outofstock, .pd-out-stock-icon").length&&
$(this).append(ha),!1})};pa.prototype.changeUsCta=function(a,c){c=a.util;var m=a.pfAllUrl,f=a.drawObj,q=f.price;"us"===a.siteCode&&f.delivery.errorMessage&&(q.containedAttr=c.getAttrCta(Granite.I18n.get("SEE SIMILAR PRODUCTS IN STOCK"),m,"_self","",{}),q.anchorNaviAttr=c.getAttrCta(Granite.I18n.get("SEE SIMILAR PRODUCTS IN STOCK"),m,"_self","",{}))};pa.prototype.settingReserveInStore=function(a,c){c=a.drawObj.price;a.hasReserveInStore&&(c.reserveInStoreAttr={text:Granite.I18n.get("Reserve In Store").toUpperCase(),
"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,f=a.siteCode;a.hasEbtButtonUse&&(c.outlinedAttr=m.getAttrCta(Granite.I18n.get("For Business"),"javascript:;","_self","tg-for-business",{ctaType:"for-business"}),c.containedAttr.class&&-1<c.containedAttr.class.indexOf("js-cta-buy")&&("br"===f?c.anchorNaviAttr={}:c.wtbAttr=$.extend({},
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(f){"Available"==f?$.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(f,q,ba){}})}};pa.prototype.checkingCtaCount=function(a,c){c=a.drawObj.price;var m=0;c.outlinedAttr.text&&m++;c.containedAttr.text&&m++;c.reserveInStoreAttr.text&&m++;c.bespokeAttr.text&&m++;2<=m&&!a.hasBespokeCta?c.ctaWrapperClass="cost-box__cta-wrap--business":2<=m&&a.hasBespokeCta&&(c.ctaWrapperClass="cost-box__cta-wrap--bespoke")};
pa.prototype.checkingDeliveryCode=function(a,c){var m=a.util,f=a.view,q=a.drawObj,ba=a.siteCode,J=a.pdProductType,ha=c.buyingToolOptDelivery,qa=$(ha.find("#delivery-zipcode")).val();c=m.hasDeliveryResult(a,c);m=a.pdPackageYn;var ia=!0;"in"!==ba||"PHONE"===J||m||(c?a.checkValid&&(q.delivery.errorMessage=null,$(ha).find(".text-field-v2__text.error").hide(),f.deliveryDraw(q)):(isNotEmpty(qa)||(ba=Granite.I18n.get("Enter your zipcode"),a.checkValid&&(q.delivery.errorMessage=ba,q.delivery.inputAttr.value=
qa,f.deliveryDraw(q))),a.checkValid&&($(ha).find(".text-field-v2__text.error").show(),$(ha).find("#delivery-zipcode").focus().val("").val(qa),$(ha).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide()),ia=!1));return ia};pa.prototype.checkWarrantyVd=function(a){if("pl"!==a.siteCode)return!0;var c=$("#tempTitle").val(),m,f;if(!(null==a?0:null==(m=a.drawObj)?0:null==(f=m.warrantyVd)?0:f.hasComponent)||"page-standard-pd"!==c)return!0;var q,ba;if(null==a?0:null==(q=a.drawObj)?
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 f=m="";"combo"===a?(m="header(pim)_offer option:bundle offer-"+c.pageTrackPd+"-delete-confirm",f="bundle offer:delete option:"):"tradeIn"===a?(m="header(pim)_trade in-"+c.pageTrackPd+"-delete-confirm",f="trade in:delete option:",
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",f="samsung care:delete option:"):"upgrade"===a?(m="header(pim)_service option selector-"+c.pageTrackPd+"}-cta-link",f="upgrade program:delete option:"):"tariffOption"===a?(m="header(pim)_service option selector tariff-"+c.pageTrackPd+"}-popup-button",f="tariff:delete option:"):"forever"===
a?(m="header(pim)_service option selector galaxy forever-"+c.pageTrackPd+"}-popup-button",f="galaxy forever:delete option:"):"assured"===a&&(m="header(pim)_service option selector assured buy back-"+c.pageTrackPd+"}-popup-button",f="assured buy back:delete option:");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--outlined").attr("an-tr",m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",f+"no");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("an-tr",
m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",f+"yes")};pa.prototype.settingWishlistTagging=function(a,c){a=a.pageTrackPd;c=$(c.buyingToolInfoWishlist.find(".pd-wishlist-cta"));var m=$(".pd-header-gallery").find(".pd-info__wishlist .pd-wishlist-cta"),f=!1;navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i)&&(f=!0);if(c&&0<c.length){var q="hdd02_pdp header-"+a+"-wishlist add/ remove-account3",ba="",J=c.attr("class")?c.attr("class"):"";
"Y"===$("#typeux2025").val()&&(q="",-1<J.indexOf("tg-add-wishlist")?q="add":-1<J.indexOf("tg-remove-wishlist")&&(q="remove"),q=f?"hdd02_gallery-"+a+"-wishlist "+q+"-account3":"hdd02_product info.-"+a+"-wishlist "+q+"-account3");-1<J.indexOf("tg-add-wishlist")?ba="add to wishlist":-1<J.indexOf("tg-remove-wishlist")&&(ba="remove from wishlist");c.attr("an-tr",q).attr("an-ca","account").attr("an-ac","wishlist").attr("an-la",ba);m.attr("an-tr",q).attr("an-ca","account").attr("an-ac","wishlist").attr("an-la",
ba)}};pa.prototype.settingCtaTagging=function(a,c){var m="Y"===$("#typeux2025").val()?!0:!1,f="anchorNavigationPriceBar .pd-buying-price__cta .cta";m&&(f="anchorNavigationPriceBar .pdd39-anchor-nav__cta .cta");var q=$("#"+f);f=c.buyingToolPriceBar.find(".cta");var ba=a.pageTrackPd,J=[a.modelCode],ha=[a.modelName],qa=[a.displayName],ia=[a.proudctPriceInfo.orignalPrice],za=[a.proudctPriceInfo.salePrice],Ha=[a.pvitype.toLowerCase()],Fa=[a.pvisubtype.toLowerCase()],Ca=[a.pimsubtype.toLowerCase()],Ia=
["1"],Ta=c.buyingToolGlallery.find("li img").attr("src");if(a.util.hasTradeInResult(a,c)){var Oa=a.ceTradeUpPopup.isEnabled?"trade-up":"trade-in";J.push(Oa);ha.push(Oa);qa.push(Oa);Ha.push("shop program");Fa.push(Oa);Ca.push(Oa);ia.push("0");za.push("0");Ia.push("0")}a.util.hasUpgradeResult(a,c)&&(J.push("upgrade"),ha.push("upgrade"),qa.push("upgrade"),Ha.push("shop program"),Fa.push("upgrade"),Ca.push("upgrade"),ia.push("0"),za.push("0"),Ia.push("0"));a.util.hasCareResult(a,c)&&(J.push(a.drawObj.careResult.dataModelCode),
ha.push(a.drawObj.careResult.dataModelCode),qa.push(a.drawObj.careResult.dataModelCode),ia.push(a.drawObj.careResult.dataPrice),za.push(a.drawObj.careResult.dataSalePrice),Ha.push("shop program"),Fa.push("samsung care"),Ca.push("insurance"),Ia.push("1"));a.util.hasWarrantyResult(a,c)&&(J.push(a.drawObj.warrantyResult.dataModelCode),ha.push(a.drawObj.warrantyResult.dataModelCode),qa.push(a.drawObj.warrantyResult.dataModelCode),ia.push(a.drawObj.warrantyResult.dataPrice),za.push(a.drawObj.warrantyResult.dataSalePrice),
Ha.push("shop program"),Fa.push("samsung care"),Ca.push("warranty"),Ia.push("1"));a.util.hasTariffOptionResult(a,c)&&(J.push(a.drawObj.tariffOptionResult.dataModelCode),ha.push(a.drawObj.tariffOptionResult.dataModelCode),qa.push(a.drawObj.tariffOptionResult.dataModelCode),Ha.push("shop program"),Fa.push("tariff"),Ca.push("tariff"),ia.push("0"),za.push("0"),Ia.push("0"));a.util.hasForeverResult(a,c)&&(J.push("forever"),ha.push("forever"),qa.push("forever"),Ha.push("shop program"),Fa.push("forever"),
Ca.push("forever"),ia.push(a.drawObj.galaxyForeverResult.dataPrice),za.push(a.drawObj.galaxyForeverResult.dataPrice),Ia.push("1"));a.util.hasBogo(a,c)&&(J.push(a.drawObj.offer.bogo.item.modelCode),ha.push(a.drawObj.offer.bogo.item.modelName),qa.push(a.drawObj.offer.bogo.item.displayName),a.drawObj.offer.bogo.item.price.price&&(ia.push(1*Number(a.drawObj.offer.bogo.item.price.price)),za.push("0")),Ha.push(a.drawObj.offer.bogo.item.pviTypeName),Fa.push(a.drawObj.offer.bogo.item.pviSubtypeName),Ca.push(a.drawObj.offer.bogo.item.categorySubTypeEngName),
Ia.push("1"));if(a.util.hasGiftResult(a,c)&&(Oa=a.drawObj.offer.gift.item.bundleList)&&0<Oa.length)for(var ka in Oa){var Ja=Oa[ka];J.push(Ja.dataModelCode);ha.push(Ja.dataModelName);qa.push(Ja.dataDisplayName);ia.push(Ja.dataPrice);za.push(Ja.dataSalePrice);Ha.push(Ja.pviTypeName);Fa.push(Ja.pviSubtypeName);Ca.push(Ja.categorySubTypeEngName);Ia.push("1")}if(a.util.hasComboResult(a,c)&&a.drawObj.offer.combo&&0<a.drawObj.offer.combo.length)for(var Da in a.drawObj.offer.combo)if((ka=a.drawObj.offer.combo[Da].item.bundleList)&&
0<ka.length)for(var La in ka)Oa=ka[La],J.push(Oa.dataModelCode),ha.push(Oa.dataModelName),qa.push(Oa.dataDisplayName),ia.push(Oa.dataPrice),za.push(Oa.dataSalePrice),Ha.push(Oa.pviTypeName),Fa.push(Oa.pviSubtypeName),Ca.push(Oa.categorySubTypeEngName),Ia.push("1");a.util.hasAssuredBuyBackResultResult(a,c)&&(J.push(a.drawObj.assuredBuyBackResult.dataSku),ha.push(a.drawObj.assuredBuyBackResult.dataModelName),qa.push(a.drawObj.assuredBuyBackResult.displayModelName),Ha.push("shop program"),Fa.push("galaxy assured"),
Ca.push("galaxy assured"),ia.push(a.drawObj.assuredBuyBackResult.dataPrice),za.push(a.drawObj.assuredBuyBackResult.dataSalePrice),Ia.push("1"));a.util.hasNewAssuredBuyBackResult(a,c)&&(J.push(a.drawObj.newAssuredBuyBackResult.dataModelCode),ha.push(a.drawObj.newAssuredBuyBackResult.dataModelName),qa.push(a.drawObj.newAssuredBuyBackResult.dataDisplayName),Ha.push("shop program"),Fa.push("galaxy assured"),Ca.push("galaxy assured"),ia.push(a.drawObj.newAssuredBuyBackResult.dataPrice),za.push(a.drawObj.newAssuredBuyBackResult.dataPrice),
Ia.push("1"));if((Da=a.embedAddonSelected)&&0<Da.length)for(Da=$jscomp.makeIterator(Da),La=Da.next();!La.done;La=Da.next())La=La.value,J.push(La.modelCode),ha.push(La.modelName),qa.push(La.name),Ha.push(La.pviType),Fa.push(La.pviSubtype),Ca.push(La.categorySubType?La.categorySubType.toLowerCase():""),ia.push(La.revenue),za.push(La.finalPriceValue),Ia.push("1");J=J.join(",");qa=qa.join(";");ha=ha.join(",");ia=ia.join(",");Ha=Ha.join(",");Fa=Fa.join(",");Ca=Ca.join(",");za=za.join(",");Ia=Ia.join(",");
Da=$("section.tariff-popup .tariff-popup__btn-submit");"uk"===a.siteCode&&0<Da.length&&(Da.attr("data-modelcode",J),Da.attr("data-modeldisplay",qa),Da.attr("data-modelname",ha),Da.attr("data-modelrevenue",ia),Da.attr("data-modelprice",ia),Da.attr("data-pvitype",Ha),Da.attr("data-pvisubtype",Fa),Da.attr("data-pimsubtype",Ca),Da.attr("data-discountprice",za),Da.attr("data-modelqty",Ia),a.util.hasTariffOptionResult(a,c)||(Da.attr("data-modelrevenue",Da.attr("data-modelrevenue")+",0"),Da.attr("data-modelprice",
Da.attr("data-modelprice")+",0"),Da.attr("data-discountprice",Da.attr("data-discountprice")+",0"),Da.attr("data-pvitype",Da.attr("data-pvitype")+",shop program"),Da.attr("data-pvisubtype",Da.attr("data-pvisubtype")+",tariff"),Da.attr("data-pimsubtype",Da.attr("data-pimsubtype")+",tariff"),Da.attr("data-modelqty",Da.attr("data-modelqty")+",0")));if(q&&0<q.length){var Qa=Oa=ka=La="";Da="";Ja=!1;var Ma=q.attr("class")?q.attr("class"):"",Sa="pdd01_anchor nav";m?(Sa="pdd39_anchor nav v3",-1<Ma.indexOf("configuratorUse-y")?
""!==a.ctaEngText&&null!==a.ctaEngText&&(La=Sa+"-"+ba+"-cta-buy page",ka="buy cta",Qa=Oa=a.ctaEngText):-1<Ma.indexOf("tg-continue")?(La=Sa+"-"+ba+"-cta to cart-ecommerce2",ka="ecommerce",Oa="addToCart",Qa="anchor navi:buy now",Ja=!0):-1<Ma.indexOf("tg-wtb")?(La=Sa+"-"+ba+"-where to buy-buy_cta2",ka="buy cta",Oa="where to buy",Qa="anchor navi:where to buy"):-1<Ma.indexOf("tg-add-to-cart")||-1<Ma.indexOf("tg-checkout")?(La=Sa+"-"+ba+"-cta to cart-ecommerce1",ka="ecommerce",Oa="addToCart",Da=Granite.I18n.get("Add to cart")+
":"+a.displayName,-1<Ma.indexOf("tg-add-to-cart")?"br"===a.siteCode?(ka="buy cta",Qa=Oa="buy now"):Qa="anchor navi:add to cart":-1<Ma.indexOf("tg-checkout")&&(Qa="anchor navi:checkout",-1<Ma.indexOf("tg-between")&&(Qa="anchor navi:lease")),Ja=!0):-1<Ma.indexOf("tg-pre-order")?(La=Sa+"-"+ba+"-cta to cart-ecommerce1",ka="ecommerce",Oa="addToCart",Qa="anchor navi:pre-order",Ja=!0):-1<Ma.indexOf("tg-out-stock")?(La=Sa+"-"+ba+"-notify me-buy_cta2",ka="buy cta",Oa="stock alert",Qa="anchor navi:notify me",
q.attr("data-antr",Sa+"-"+ba+"-cta-stock alert popup")):-1<Ma.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():"",La=Sa+"-"+ba+"-cta-subscription",ka="buy cta",Oa="buy with subscription:carrier:"+Qa,Qa="buy with subscription:carrier:"+Qa):-1<Ma.indexOf("tg-buy-now")?(La=Sa+"-"+ba+"-cta to cart-ecommerce1",ka="ecommerce",Oa="addToCart",Qa=
"anchor navi:buy now"):-1<Ma.indexOf("tg-learn-more")&&(La=Sa+"-"+ba+"-cta-learn more",ka="product click",Oa="pd buying tool",Qa="learn more click")):-1<Ma.indexOf("configuratorUse-y")?""!==a.ctaEngText&&null!==a.ctaEngText&&(La=Sa+"-"+ba+"-cta-buy page",ka="buy cta",Qa=Oa=a.ctaEngText):-1<Ma.indexOf("tg-continue")?(La=Sa+"-"+ba+"-cta-cart",ka="ecommerce",Oa="addToCart",Qa="secondary navi:add to cart",Ja=!0):-1<Ma.indexOf("tg-wtb")?(La=Sa+"-"+ba+"-where to buy-buy_cta2",ka="buy cta",Oa="where to buy",
Qa="anchor navi:where to buy"):-1<Ma.indexOf("tg-add-to-cart")||-1<Ma.indexOf("tg-checkout")?(La=Sa+"-"+ba+"-cta-cart page",ka="ecommerce",Oa="addToCart",Da=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Ma.indexOf("tg-add-to-cart")?("br"===a.siteCode?(ka="buy cta",Qa=Oa="buy now"):Qa="secondary navi:add to cart",Ja="",$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(Ja=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")),Ja=Ja.substring(0,
Ja.indexOf("?",0)),q.attr("data-imageurl",Ja)):-1<Ma.indexOf("tg-checkout")&&(Qa="secondary navi:checkout",-1<Ma.indexOf("tg-between")&&(Qa="secondary navi:lease")),Ja=!0):-1<Ma.indexOf("tg-pre-order")?(La=Sa+"-"+ba+"-cta-cart page",ka="ecommerce",Oa="addToCart",Qa="secondary navi:pre order",Ja=!0):-1<Ma.indexOf("tg-out-stock")?(La=Sa+"-"+ba+"-notify me-buy_cta2",ka="buy cta",Oa="stock alert",Qa="anchor navi:notify me",q.attr("data-antr",Sa+"-"+ba+"-cta-stock alert popup")):-1<Ma.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():"",La=Sa+"-"+ba+"-cta-subscription",ka="buy cta",Oa="buy with subscription:carrier:"+Qa,Qa="buy with subscription:carrier:"+Qa):-1<Ma.indexOf("tg-buy-now")?(La=Sa+"-"+ba+"-cta-buy page",ka="buy cta",Qa=Oa="buy now"):-1<Ma.indexOf("tg-learn-more")&&(La=Sa+"-"+ba+"-cta-learn more",ka="product click",Oa="pd buying tool",
Qa="learn more click");q.attr("an-tr",La).attr("an-ca",ka).attr("an-ac",Oa).attr("an-la",Qa);La={anTr:La,anCa:ka,anAc:Oa,anLa:Qa};"Y"===$("#thirdPartyPrdYN").val()&&(digitalData.product.iot_sid&&q.attr("data-iot-sid",digitalData.product.iot_sid),digitalData.product.iot_shgroup&&q.attr("data-iot-shgroup",digitalData.product.iot_shgroup),digitalData.product.iot_brandname&&q.attr("data-iot-brandname",digitalData.product.iot_brandname));Da&&q.attr("aria-label",Da);za&&(q.attr("data-discountprice",za),
digitalData.product.model_price=za);Ja&&(J&&q.attr("data-modelcode",J),qa&&q.attr("data-modeldisplay",qa),ha&&q.attr("data-modelname",ha),ia&&q.attr("data-modelrevenue",ia),ia&&(q.attr("data-modelprice",ia),digitalData.product.list_price=ia),Ha&&q.attr("data-pvitype",Ha),Fa&&q.attr("data-pvisubtype",Fa),Ca&&q.attr("data-pimsubtype",Ca),Ia&&q.attr("data-modelqty",Ia),Ta&&(q.attr("data-imageurl",Ta),f.attr("data-imageurl",Ta)));a.drawObj.price.anchorNaviAttr=$.extend(a.drawObj.price.anchorNaviAttr,
La)}if(f&&0<f.length)for(q="header(pim)_price bar",(Ta="Y"===$("#typeux2025").val()?!0:!1)&&(q="hdd02_summary, get stock alert pop_up"),Da=0;Da<f.length;Da++){La=$(f.get(Da));Ma=La.attr("class")?La.attr("class"):"";var Ra=Ja=Oa=ka="";Sa="";Qa=!1;Ta?-1<Ma.indexOf("tg-continue")?(ka=q+"-"+ba+"-cta to cart-ecommerce2",Oa="ecommerce",Ja="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Ma.indexOf("tg-wtb")?(ka=q+"-"+ba+"-where to buy-buy_cta3",Oa="buy cta",Ja="where to buy",Ra="pd buying tool:where to buy"):
-1<Ma.indexOf("tg-add-to-cart")||-1<Ma.indexOf("tg-checkout")?(ka=q+"-"+ba+"-cta to cart-ecommerce1",Oa="ecommerce",Ja="addToCart",Sa=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Ma.indexOf("tg-add-to-cart")?"br"===a.siteCode?(Oa="buy cta",Ra=Ja="buy now"):Ra="pd buying tool:add to cart":-1<Ma.indexOf("tg-checkout")&&(Ra="buying tool:checkout",-1<Ma.indexOf("tg-between")&&(Ra="buying tool:lease")),Qa=!0):-1<Ma.indexOf("tg-pre-order")?(ka=q+"-"+ba+"-cta to cart-ecommerce1",Oa="ecommerce",Ja=
"addToCart",Ra="pd buying tool:pre order",Qa=!0):-1<Ma.indexOf("tg-out-stock")?(ka=q+"-"+ba+"-button-alert",Oa="buy cta",Ja="stock alert",Ra="pd buying tool:stock alert",La.attr("data-antr",q+"-"+ba+"-text-alert")):-1<Ma.indexOf("tg-subscription")?(Ma=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",ka=q+"-"+ba+"-button-subscription",Oa="buy cta",Ja="buy with subscription:carrier:"+
Ma,Ra="pd buying tool:"+Ma):-1<Ma.indexOf("tg-buy-now")?(ka=q+"-"+ba+"-cta to cart-ecommerce1",Oa="ecommerce",Ja="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Ma.indexOf("tg-learn-more")?(ka=q+"-"+ba+"-cta-learn more",Oa="product click",Ja="pd buying tool",Ra="learn more click"):-1<Ma.indexOf("tg-for-business")?(ka=q+"-"+ba+"-cta-forbusiness",Oa="buy cta",Ja="for business",Ra="pd buying tool:for business"):-1<Ma.indexOf("tg-bespoke")&&(ka=q+"-"+ba+"-cta-bespoke",Oa="content click",Ja="feature",
Ra="pd buying tool:customize yours"):-1<Ma.indexOf("tg-continue")?(ka=q+"-"+ba+"-button-text",Oa="ecommerce",Ja="addToCart",Ra="pd buying tool:add to cart",Qa=!0):-1<Ma.indexOf("tg-wtb")?(ka=q+"-"+ba+"-button-where to buy",Oa="buy cta",Ja="where to buy",Ra="pd buying tool:where to buy"):-1<Ma.indexOf("tg-add-to-cart")||-1<Ma.indexOf("tg-checkout")?(ka=q+"-"+ba+"-button-cart",Oa="ecommerce",Ja="addToCart",Sa=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Ma.indexOf("tg-add-to-cart")?"br"===a.siteCode?
(Oa="buy cta",Ra=Ja="buy now"):Ra="pd buying tool:add to cart":-1<Ma.indexOf("tg-checkout")&&(Ra="buying tool:checkout",-1<Ma.indexOf("tg-between")&&(Ra="buying tool:lease")),Qa=!0):-1<Ma.indexOf("tg-pre-order")?(ka=q+"-"+ba+"-buy-cart",Oa="ecommerce",Ja="addToCart",Ra="pd buying tool:pre order",Qa=!0):-1<Ma.indexOf("tg-out-stock")?(ka=q+"-"+ba+"-button-alert",Oa="buy cta",Ja="stock alert",Ra="pd buying tool:stock alert",La.attr("data-antr",q+"-"+ba+"-text-alert")):-1<Ma.indexOf("tg-subscription")?
(Ma=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",ka=q+"-"+ba+"-button-subscription",Oa="buy cta",Ja="buy with subscription:carrier:"+Ma,Ra="pd buying tool:"+Ma):-1<Ma.indexOf("tg-buy-now")?(ka=q+"-"+ba+"-buy-cart",Oa="ecommerce",Ja="addToCart",Ra="pd buying tool:buy now",Qa=!0):-1<Ma.indexOf("tg-learn-more")?(ka=q+"-"+ba+"-cta-learn more",Oa="product click",Ja=
"pd buying tool",Ra="learn more click"):-1<Ma.indexOf("tg-for-business")?(ka=q+"-"+ba+"-cta-forbusiness",Oa="buy cta",Ja="for business",Ra="pd buying tool:for business"):-1<Ma.indexOf("tg-bespoke")&&(ka=q+"-"+ba+"-cta-bespoke",Oa="content click",Ja="feature",Ra="pd buying tool:customize yours");La.attr("an-tr",ka).attr("an-ca",Oa).attr("an-ac",Ja).attr("an-la",Ra);Sa&&La.attr("aria-label",Sa);za&&La.attr("data-discountprice",za);Qa&&(J&&La.attr("data-modelcode",J),qa&&La.attr("data-modeldisplay",
qa),ha&&La.attr("data-modelname",ha),ia&&La.attr("data-modelrevenue",ia),ia&&La.attr("data-modelprice",ia),Ha&&La.attr("data-pvitype",Ha),Fa&&La.attr("data-pvisubtype",Fa),Ca&&La.attr("data-pimsubtype",Ca),Ia&&La.attr("data-modelqty",Ia));this.thirdPartyTagging(a,c,La)}ta.isEnabled()&&(ta.$ui.find(".pd-buying-price .pd-buying-price__badge.mobile").hide(),1<ta.$ui.find(".pd-buying-price__badge.mobile").length&&ta.$ui.find(".pd-buying-price__badge.mobile").eq(1).remove(),m&&ta.$mo&&0<ta.$mo.length&&
ta.$mo.priceSection&&0<ta.$mo.priceSection.length&&ta.resetMobilePriceSection())};pa.prototype.thirdPartyTagging=function(a,c,m){a=$("#thirdPartyPrdYN").val();var f=digitalData.product.iot_sid,q=digitalData.product.iot_shgroup,ba=digitalData.product.iot_brandname;"Y"===a&&(a=[],m?a.push(m):(a.push(c.buyingToolInfoRating.find("a")),a.push($("#personalizeMyTv a")),"Y"===$("#typeux2025").val()?a.push(c.buyingToolOptOfferText.find('a[data-target-popup!\x3d"eipPopup"]')):a.push(c.buyingToolOptOffer.find('a[data-target-popup!\x3d"eipPopup"]'))),
a.forEach(function(J){0<J.length&&(f&&J.attr("data-iot-sid",f),q&&J.attr("data-iot-shgroup",q),ba&&J.attr("data-iot-brandname",ba))}))};pa.prototype.settingBezelOptionDraw=function(a,c){if(a.useBezelOptionDraw&&(a.categoryTypeCode.startsWith("04")||a.categoryTypeCode.startsWith("07"))){var m=a.drawObj,f=a.view;m.bezelOption={hasComponent:0<a.noneTypeList.length||0<a.modernTypeList.length||0<a.beveledTypeList.length||0<a.freestyleList.length,sellingWithBazel:a.sellingWithBazel,noneSellingWithBazel:!a.sellingWithBazel,
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};f.bezelOptionDraw(m);this.settingBezelInfo(a,
c)}};pa.prototype.settingTradeInDraw=function(a,c,m,f){var q=c.util,ba=c.tradeInUrl,J=c.siteCode,ha=c.tradeinText,qa=c.drawObj,ia=c.apiFlag,za=c.view,Ha=c.priceCurrency,Fa=c.isGPv2AndHyIntg,Ca=c.isHybrisSplitPD,Ia=c.isHybrisSplitPDTradeIn,Ta=c.tradeInType,Oa=c.promotionSalesPitch,ka=2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,Ja=!1,Da="",La=!1,Qa=0;a&&(void 0!==a.maxDiscount&&(Qa=a.maxDiscount),!0===a.directOutLink?(Ja=!0,La=!1):La=!0);var Ma=
"",Sa=!1,Ra=!0,Va="",Y="_self",ja="",Aa="javascript:;",Ba={};Ba={};Da={};var Ga={},ua="";Ga="";$("#categorySubTypeCode").val();var Ea="hr"===J||"si"===J;if("in"===J||"fr"===J)Qa=c.tradeinSaveValue;if(f&&(Fa||Ca&&Ia)){Va=ha;if("pt"===J||"es"===J||"th"===J||"se"===J||"no"===J||"dk"===J||"fi"===J||"sk"===J||"cz"===J)Qa=0;if("th"==J||"at"==J)Va=Granite.I18n.get("TRADE-IN Description");if(Qa&&0<Qa){var Ka="be"==J||"be_fr"==J||"nl"==J?currencyCommaExcep(Qa,Ha):"jp"==J?currencyComma(parseFloat(Qa),Ha):currencyComma(Qa,
Ha);ua=Granite.I18n.get("Save up to")+" "+Ka;if("co"===J)ua=Granite.I18n.get("Save up to");else if("hu"===J||"at"===J||"it"===J||"my"===J)ua="";Ga=null;Ma=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Qa,Ha));"co"===J&&ya&&(Da="epp_"+c.categoryTypeCode,Ma=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",null,"01010000"===c.categoryTypeCode||"01020000"===c.categoryTypeCode?Da:"epp"))}else Ma=Granite.I18n.get("TRADE-IN");ba&&(Y="_blank",
Aa=ba,ja=Granite.I18n.get("Learn more"));Da={text:Granite.I18n.get("YES"),eventType:"tradein",layerTarget:"tradeInPopup",subText:ua,isDirectLink:Ja,isPopup:La};Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",subText:Ga,eventType:"tradein"};if(a.withCeTradeUpPopup)Qa=a.maxDiscount||0,Ja=currencyComma(Qa,Ha),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,Ja=currencyComma(Qa,Va),Qa="eur"===Va.toLowerCase()?h(Qa):l(Qa),Ja=Ja+" / "+Qa),Ma=Granite.I18n.get('Want up to "{0}" off? Recycle your old device for an instant discount',[Ja],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",[Ja],ba))),Da.subText="",CeTradeUpPopup.config.view.showDiscountAmount.inYesCta&&
(Da.subText=Granite.I18n.get('(Save up to "{0}")',[Ja],ba)),Da.text=Granite.I18n.getVar("Yes",ba),Ga.text=Granite.I18n.getVar("No",ba),a.learnMoreOutlink?(Aa=a.learnMoreOutlink,Y="_blank"):(Aa="javascript:;",Y="_self"),ja=Granite.I18n.get("Learn more");else if(-1<ia.indexOf("GPv2"))if("in"===J&&"CE"!==Ta)Ma=Granite.I18n.get("Exchange your device"),Oa&&(Va="Exchange any product and get benefits up to "+currencyComma(Oa,Ha)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Oa,Ha)),Da={"class":"trade-in-exchange",
eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,layerTarget:"instantExchangePopupHubble",isDirectLink:Ja,isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=Aa=Y="";else if("in"===J&&"CE"===Ta)Ma="Exchange",Va="",Oa&&(Va="Exchange any product and get benefits up to "+currencyComma(Oa,Ha)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Oa,Ha)),Da={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,
layerTarget:"sielTradeInPopup",isDirectLink:Ja,isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=Aa=Y="",Sa=!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=Aa=Y="";else{if("ae"===J||"ae_ar"===J)Aa="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(Ia&&"SplitPD TradeIn Description"!==Granite.I18n.get("SplitPD TradeIn Description")&&(Va=Granite.I18n.get("SplitPD TradeIn Description")),"ru"===J||"za"===J)Aa="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup","za"===J&&(Da.text=Granite.I18n.get("Yes, please"),Ga.text=Granite.I18n.get("No, thanks"));else if("nz"===J)Aa="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("se"===J||"dk"===J||"fi"===J||"no"===J||"ee"===J||"ee"===J||"lv"===J||"lt"===J)Aa="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks");else if("es"===J||"pt"===J)Aa=
"javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Da.text=Granite.I18n.get("Yes, please"),Ga.text=Granite.I18n.get("No, thanks"),"04000000"===$("#categoryGroupCode").val()&&("es"===J&&(ja=Granite.I18n.get("Learn more(TV)")),Ma=Granite.I18n.get("TRADE-IN(TV)"),Va=Granite.I18n.get("SplitPD TradeIn Description(TV)"),Da.text=Granite.I18n.get("YES"),Ga.text=Granite.I18n.get("NO"),"es"===J&&$(".trade-in-learn-more-popup .trade-in-learn-more-popup__title").html(Granite.I18n.get("How trade-in works(TV)")),
[{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(wa,xa){wa.title&&wa.desc&&($(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-title").eq(xa).html(wa.title),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-desc").eq(xa).html(wa.desc))}),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__disclaimer").html(Granite.I18n.get("Trade-In disclaimer(TV)")));
else if("sg"===J)Aa="https://www.samsung.com/sg/shop-faq/trade-in/",ja=Granite.I18n.get("Learn more"),Y="_blank",Ma=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in."),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks");else if("it"===J)Aa="https://www.samsung.com/it/offer/mobile-trade-in/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("ca"===J||"ca_fr"===J)Aa="https://www.samsung.com/"+J+"/trade-in-program/",
ja=Granite.I18n.get("Learn more"),Y="_blank";else if("au"===J)Ma=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."),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Aa="https://www.samsung.com/au/tradeup/",ja=Granite.I18n.get("Learn more"),Y="_blank";else if("my"===J)Aa=ya?"/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-trade-in/":"https://www.samsung.com/my/trade-in/",
Ma=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)Ma=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."),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Da.subText="",c.categoryTypeCode.startsWith("01")&&(Ma=Granite.I18n.get("Trade-in up to 3 old devices and get cashback"),
c.sgeSiteInstantChk&&(Ma=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/",Ma=Granite.I18n.get("Trade-in your old device and get guaranteed cashback")):a="mobile-trade-in/","ae"===J?Aa="https://www.samsung.com/ae/offer/"+a:"ae_ar"===J&&(Aa="https://www.samsung.com/ae_ar/offer/"+
a),Ja&&(Da="https://samsungtradein.ae/",Da={"class":"noname",eventType:"directLink",text:Granite.I18n.get("Yes please"),subText:ua,layerTarget:"none",isDirectLink:Ja,href:Da,isPopup:!1},Ga={text:Granite.I18n.get("No thanks"),layerTarget:"none",eventType:"tradein"},ja=Aa=Y="");else if("sa"===J||"sa_en"===J)c.categoryTypeCode.startsWith("04")&&(Ma=Granite.I18n.get("Want up to {0} off? Try trading in your old device!",currencyComma(Qa,Ha)));else if("ch"===J||"ch_fr"===J)Aa="javascript:;",ja=Granite.I18n.get("Learn more"),
Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Ma=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)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Ma=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)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),
Aa="https://www.samsung.com/vn/offer/len-doi-sieu-pham/",ja=Granite.I18n.get("Learn more"),Y="_blank",Ma=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)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Ma=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)Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Ma=Granite.I18n.get("Samsung Trade-in"),Aa="javascript:;",ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup";else if("at"===J)"04000000"===$("#categoryGroupCode").val()?(Ma=Granite.I18n.getVar("Trade-Up","ux2"),Aa="https://www.samsung.com/at/tvs/trade-up/"):"01000000"===$("#categoryGroupCode").val()?(Aa="javascript:;",Y="_self",Ba.layerTarget="tradeInLearnMorePopup"):"08000000"===
$("#categoryGroupCode").val()&&(Ma=Granite.I18n.getVar("Trade-Up","ux2"),Aa="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"===Ta){Da.layerTarget="sielTradeInPopup";Aa="https://www.samsung.com/uk/tvs/trade-up/";
if(ka||"08030000"===c.categoryTypeCode||"08010000"===c.categoryTypeCode||"08070000"===c.categoryTypeCode||"07010000"===c.categoryTypeCode)Aa="https://www.samsung.com/uk/tv-and-home-appliances-trade-up/";c.ceHeadlineText&&(Ma=c.ceHeadlineText,Da.subText=c.ceSubText)}else"cl"===J?(Ma=Granite.I18n.get("TRADE-IN"),Da.text=Granite.I18n.get("Yes"),Va=Granite.I18n.get("Trade in actualmente es solo para Regi\u00f3n Metropolitana.")):"pe"===J?(Aa="https://www.samsung.com/pe/plan-canje-galaxy/",ja=Granite.I18n.get("Learn more"),
Y="_blank"):"de"===J?(Ma=Granite.I18n.get("Trade-In"),Va=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Qa,Ha))):"pl"===J?Aa="https://www.samsung.com/pl/trade-in/":Ea?(Ma=Granite.I18n.get("TRADE-IN (mx)"),Va=Granite.I18n.get("TRADE-IN description (mx)",currencyComma(Qa,Ha)),Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),ua=Granite.I18n.get("Save up to")+" "+Ka):"ro"===J?(Ma=Granite.I18n.get("TRADE-IN"),Va=Granite.I18n.get("TRADE-IN description"),
Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),ua=Granite.I18n.get("Save up to (Trade-in)")+" "+Ka,ja=Granite.I18n.get("Learn More (Trade-in)"),Aa="https://www.samsung.com/ro/trade-in/"):"bg"===J?(ua=Granite.I18n.get("Save up to")+" "+Ka,ja=Granite.I18n.get("Learn More"),Aa="https://www.samsung.com/bg/trade-in/"):"jp"===J?(Da.text=Granite.I18n.get("Yes please"),Ga.text=Granite.I18n.get("No thanks"),Ma=Granite.I18n.get("Samsung Trade-in"),Va=Granite.I18n.get("TRADE-IN description"),
ja=Granite.I18n.get("Learn More (Trade-in)"),Aa="https://www.samsung.com/jp/trade-in/",Y="_blank"):"cn"===J||"tr"===J?(Aa="javascript:;",Da.text=Granite.I18n.get("Yes Please"),Ga.text=Granite.I18n.get("No Thanks"),ja=Granite.I18n.get("Learn more"),Y="_self",Ba.layerTarget="tradeInLearnMorePopup",Ma=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?(Ma=Granite.I18n.get("Return your old device to us and save!"),Da.text=
Granite.I18n.get("Yes Please"),Ga.text=Granite.I18n.get("No Thanks"),Aa="https://www.samsung.com/"+J+"/trade-in/"):"ua"===J?(Ma=Granite.I18n.get("Samsung Trade-in Title"),Va=Granite.I18n.get("Samsung Trade-in subTitle")):"in"===J&&"CE"!==Ta?(Ma=Granite.I18n.get("Exchange your device"),Oa&&(Va="Exchange any product and get benefits up to "+currencyComma(Oa,Ha)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Oa,Ha)),Da={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),
subText:ua,layerTarget:"instantExchangePopupHubble",isDirectLink:Ja,isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=Aa=Y=""):"in"===J&&"CE"===Ta&&(Ma="Exchange",Va="",Oa&&(Va="Exchange any product and get benefits up to "+currencyComma(Oa,Ha)+"*",ua=Granite.I18n.get("Save up to")+" "+currencyComma(Oa,Ha)),Da={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:ua,layerTarget:"sielTradeInPopup",isDirectLink:Ja,
isPopup:!0},Ga={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},ja=Aa=Y="",Sa=!0,Ra=!1);Ba=q.getAttrCta(ja,Aa,Y,"",Ba,"");qa.tradeIn={hasComponent:f,hasCeTradein:Sa,hasExchange:Ra,title:Ma,learnMoreCta:Ba,description:Va,yesAttr:Da,noAttr:Ga};c.ceTradeUpPopup.isEnabled&&"undefined"!==typeof CeTradeUpPopup&&!CeTradeUpPopup.config.view.useLearnMoreCta&&(Ba.isOutLink=null,Ba.isNotOutLink=null);f&&qa.priceAnchor.priceWrapper.info.useTooltip&&(qa.tradeIn.hasTooltipClass=
" pd-buying-price__tooltip");za.tradeInDraw(qa);f=window.location.pathname.replace("/content/samsung","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(f)&&(f=JSON.parse(sessionStorage.getItem(f)),f=f.tradein.list?f.tradein.list[0]:f.tradein,qa=f.tradeinInfo,za=qa.device_info.brand,"jp"===J&&(za=qa.device_info.category),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount({provider:f.provider,displayBrandName:za,displayModelName:f.model,tradeinId:f.id,serviceType:"trade-in",
serviceCode:f.id,imeiKey:f.imeiKey,price:f.price,discount:{gratification:"",price:f.displayPrice,total:f.displayPrice+f.cashbackPrice},value:{gratification:"",price:f.discountPrice},tradeInType:f.tradeInType,promotion:f.promotion,tradeinDiscountYn:qa.delayed_gratification,open_promo_tax:"",additionalDiscountFlag:f.additionalDiscountFlag,tradeInSpecialPrice:f.specialPrice,commonTradein:c.commonTradein,tradeinInfo:qa},"tradein"));q.totalAfterFunction(c,m)}};pa.prototype.settingTradeInErrMsgDraw=function(a,
c,m){if(a.compareMaxTradeInWithCart){c=a.drawObj;var f=a.view;a=!!a.disableTradeIn;var q="";a&&(q="disabled");c.tradeInErrMsg={hasComponent:m&&a,disableTradeIn:a,disableText:q};f.tradeInErrMsgDraw(c)}};pa.prototype.gpHybrisGlobalEndPoint=function(a,c){F(a,c);this.settingCtaTagging(a,c);this.specialTagging(a,c);if(0<$(".pd-select-option__color-name").length){var m=$(".pd-select-option__list--color-chip .option-input.checked").data("colorname");null!=m&&""!=m&&"undefined"!=typeof m&&(m=m.replace(/&/g,
", "),$("#multiColorText").text(m))}window.onload=function(){-1<window.location.href.indexOf("#trade-in")&&(a.drawObj.tradeIn.hasComponent&&a.ceTradeUpPopup.isEnabled&&!a.categoryTypeCode.startsWith("01")||a.drawObj.tradeIn.hasComponent&&a.categoryTypeCode.startsWith("01"))&&$("#pd-trade-in-0").click();a.isSENA&&("OUTOFSTOCK"==a.apiChangeStockStatus||"INSTOCK"!=a.apiChangeStockStatus&&"LOWSTOCK"!=a.apiChangeStockStatus&&"PREORDER"!=a.apiChangeStockStatus&&"BACKORDERED"!=a.apiChangeStockStatus||$(".cost-box__description.howToReceiveTheProduct").show());
var f;a.isSENA&&(null==a?0:null==(f=a.proudctPriceInfo)?0:f.promotionPriceValidTo)&&$(".cost-box__description.promotionPriceValidTo").show();a.util.checkAddToCart(a,c);0<document.querySelectorAll(".pdd01-anchor-nav-v2__combo-package-wrap").length&&window.sg.common.icon.redrawSvgs(document.querySelector(".pdd01-anchor-nav-v2__combo-package-wrap"));0<document.querySelectorAll(".combo-package").length&&window.sg.common.icon.redrawSvgs(document.querySelector(".combo-package"));window.sg.components.pdHeaderNavigationV2.reInit()}};
pa.prototype.initGlobalVal=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 f=m.price,q=m.priceDisplay,ba=m.promotionPrice,J=m.promotionPriceDisplay,ha=m.leasingInfo,qa=m.saveText;m=m.tradeInPriceText;
var ia=a.priceCurrency,za=a.siteCode;f&&(a.proudctPriceInfo.orignalPrice=f);q?a.proudctPriceInfo.orignalPriceFormatted=q:f&&(a.proudctPriceInfo.orignalPriceFormatted=currencyComma(f,ia));a.proudctPriceInfo.salePrice=ba?ba:f;a.proudctPriceInfo.salePriceFormatted=J?J:ba?currencyComma(ba,ia):a.proudctPriceInfo.orignalPriceFormatted;c&&ha&&ha.monthlyRate&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=ha.monthlyRate,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=ha.tenureVal);!c&&monthlyPriceInfo&&
monthlyPriceInfo.leasingMonthly&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=monthlyPriceInfo.leasingMonthly,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=monthlyPriceInfo.leasingMonths);qa&&(a.proudctPriceInfo.rowCodeformattedPriceSave=qa);m&&(a.proudctPriceInfo.salePriceFormatted=m);if("nl"===za||"be"===za||"be_fr"===za)c=a.proudctPriceInfo.listPriceFormatted,f=a.proudctPriceInfo.orignalPriceFormatted,q=a.proudctPriceInfo.salePriceFormatted,ba=a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,
c&&(a.proudctPriceInfo.listPriceFormatted=deleteCurrency(c,a.priceCurrency).trim()),f&&(a.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(f,a.priceCurrency).trim()),q&&(a.proudctPriceInfo.salePriceFormatted=deleteCurrency(q,a.priceCurrency).trim()),ba&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=deleteCurrency(ba,a.priceCurrency).trim())};pa.prototype.loadComponent=function(a){var c=location.pathname;-1!=c.indexOf(".html")?c=c.replace(".html",""):"/"==c[c.length-1]&&(c=c.slice(0,-1));
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(f){if(-1<f.indexOf("\x3clink")&&-1<f.indexOf('"text/css"\x3e')){var q=f.substring(f.indexOf("\x3clink"),f.indexOf('"text/css"\x3e')+12);f=f.replace(q,"");$("#wrap").append(q)}for(q=Date.now()+100;Date.now()<q;);$("#wrap").append(f)},
error:function(f){},complete:function(){}});"commontradein"==a&&window.sg.common.textFieldv2.initAll()};pa.prototype.isCommonTradeinCheck=function(){var a=window.sg.components.dynamic?window.sg.components.dynamic.detailSharedObj:null,c=$("#categoryGroupCode").val(),m=$("#categoryTypeCode").val(),f=$("#categorySubTypeCode").val(),q=!1;if("01000000"==c)q=!0;else if("03010100"==f&&("fr"===siteCode||"it"===siteCode))q=!0;else if("03010000"==m&&-1!==$.inArray(siteCode,"se no dk fi ee lt lv de hk hk_en es".split(" ")))q=
!0;else if(-1!==$.inArray(siteCode,["ae","ae_ar"]))-1!==$.inArray(m,["04010000","04050000","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,f){f=void 0===f?!1:f;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)f||(q.text(Granite.I18n.get("Please input range between {0} to {1}",[c.proudctPriceInfo.smbMinQty,c.proudctPriceInfo.smbMaxQty])),q.show()),a=a<c.proudctPriceInfo.smbMinQty?c.proudctPriceInfo.smbMinQty:c.proudctPriceInfo.smbMaxQty,m.buyingToolOptSMBQuantity.find("#counterText").val(a);c.proudctPriceInfo.productCartCount=
parseInt(a);c.util.settingPriceDraw(c,m)}}};pa.prototype.tradeInResultReset=function(a,c){var m=a.util,f=a.view,q=a.drawObj,ba=m.hasForever(a,c),J=m.hasUpgradeResult(a,c);null!==q.deliveryResult.priorityText&&!0===q.tradeInResult.isUpfront&&$(c.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(a.isMultiTradeIn&&q.tradeInResult.list&&0<q.tradeInResult.list.length){for(var ha=q.tradeInResult.list.length;0<ha;ha--)q.tradeInResult.list.splice(a.checkedIndex,1);q.tradeInResult.list=[];
q.tradeInResult.dataPrice=0;q.tradeInResult.priceOverFlag=q.tradeInResult.dataPrice>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};f.tradeInResultDraw(q);J&&f.upgradeResultDraw(q);ba&&m.foreverDraw(a,c);m.totalAfterFunction(a,c);a.isMultiTradeIn?m.hasTradeInResult(a,c)||delete a.globalServiceInfo.tradein:
a.globalServiceInfo.tradein&&delete a.globalServiceInfo.tradein;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,
f=a.rewards.context;m.rewards=void 0;f.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)})};la.BuyingToolOpUtile=pa})();
(function(){function l(w,e,p){"Y"===$("#typeux2025").val()?(p=p.buyingToolOptOfferText.empty(),w.invokeTemplate("offerText",e,p.get(0))):(p=p.buyingToolOptOffer.empty(),w.invokeTemplate("offer",e,p.get(0)),e.offer.isViewMore&&p.find("#sgOfferListPanel").children("li[data-view-more-item\x3dtrue]").each(function(k,A){2<k&&$(A).addClass("pd-select-option__view-more--hidden")}))}function h(w,e){if(e&&0<e.length)for(var p in e){var k=e[p];$(w).find(k.target).html(k.text)}}function H(w,e){w=w.offer.childList;
for(var p in w)u(w[p],e)}function u(w,e){w=[w.promotionMessage,w.promotionFinance,w.promotionSmartclub];for(var p in w){var k=w[p],A;for(A in k){var ca=k[A].item;if(ca&&(ca=ca.rowText))for(var K in ca){var D=ca[K],g="Y"===$("#typeux2025").val()?!0:!1,C=e.buyingToolOptOffer.find(D.target);g&&(C=e.buyingToolOptOfferText.find(D.target));C.html(D.text)}}}}function n(w){var e=w.buyingToolPriceBar.get(0),p=w.buyingToolOptOffer.get(0);"Y"===$("#typeux2025").val()&&(p=w.buyingToolOptOfferText.get(0));var k=
w.buyingToolOptCare.get(0),A=w.buyingToolOptWarranty.get(0),ca=w.buyingToolOptUpgrade.get(0),K=w.buyingToolOptDelivery.get(0),D=w.buyingToolOptTariff.get(0),g=w.buyingToolOptTariffResult.get(0);w.buyingToolOptBezelOption.get(0);var C=w.buyingToolOptTradeIn.get(0),E=w.buyingToolOptCheckDealerStock.get(0),T=w.buyingToolCalculate.get(0),R=w.buyingToolOptGalaxyForever.get(0),y=w.buyingToolOptAssuredBuyBack.get(0),ea=w.buyingToolOptNewAssuredBuyBack.get(0),va=w.buyingToolOptOfferFinance.get(0),ra=w.buyingToolOptEmbedAddon.get(0);
w=$(w.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);p.innerHTML="";e.innerHTML="";x.resetPriceSection();C&&(C.innerHTML="");E&&(E.innerHTML="");k&&(k.innerHTML="");A&&(A.innerHTML="");ca&&(ca.innerHTML="");K&&(K.innerHTML="");D&&(D.innerHTML="");g&&(g.innerHTML="");T&&(T.innerHTML="");R&&(R.innerHTML="");y&&(y.innerHTML="");ea&&(ea.innerHTML="");va&&(va.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 p={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 p){var A=e[p[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,U=window.sg.sdf.comp,
B=function(w,e){this.sharedObj=e;this.selectorObj=w;this.$ui=w.componentWrapper;this.component=U.dispatch(w.buyingTool)};B.prototype.usEppDraw=function(w){var e=this.$ui.find(".us-epp-discount-keep");this.component.invokeTemplate("usEpp",w,e.empty().get(0));w.usEppData.hasComponent?(e.addClass("has-component"),e.show()):(e.removeClass("has-component"),e.hide());window.sg.components.usEppDiscount.reInit();window.sg.common.icon.update(document.querySelector(".us-epp-discount-keep"))};B.prototype.emiDraw=
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,p=this.selectorObj,k=this.selectorObj.buyingToolInfoWishlist.get(0);k&&(k.innerHTML="",this.component.invokeTemplate("wishlist",w,k));e.util.thirdPartyTagging(e,p,p.buyingToolInfoWishlist.find(".pd-wishlist-cta"));
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"),p=$(".shipping-cost-popup_delivery_methods");if(null==w?0:w.deliveryServices){e.show();var k=null==w?void 0:w.deliveryServices.map(function(A){return'\n\t\t\t\t  \x3cli class\x3d"shipping-cost-popup__options-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-name"\x3e'+
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)p.show(),w=null==w?void 0:w.deliveryModes.map(function(A){return'\n\t\t\t\t  \x3cli class\x3d"shipping-cost-popup__options-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-name"\x3e'+A.name+'\x3c/span\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-cost"\x3e'+
A.price+"\x3c/span\x3e\n\t\t\t\t  \x3c/li\x3e\n\t\t\t"}).join(""),p.find("ul.shipping-cost-popup__options").html(w)};B.prototype.productPriceTotalDraw=function(w,e){var p=this.sharedObj,k=this.selectorObj,A=k.buyingToolPriceBar.get(0);e?this.$ui.find(".sg-pdh-order-summary").replaceWith(k.buyingToolPriceBar.get(0)):A.innerHTML="";x.drawPriceSection(w);this.component.invokeTemplate("buyingPrice",w,A);"se"===$("#siteCode").val()&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.tradeUpEnabled&&
!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());p.util.thirdPartyTagging(p,k,k.buyingToolPriceBar.find("a.cta"));p.util.settingCtaTagging(p,k);p.util.specialTagging(p,k);window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.smg.wtb&&window.smg.wtb.common.reInit();if("fr"===$("#siteCode").val()||"be_fr"===$("#siteCode").val()||"be"===$("#siteCode").val())window.sg.common.image.initAll(),
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,p=e.buyingToolOptBetween.get(0);if(e=$(e.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0))e.innerHTML="";this.component.invokeTemplate("between",w,e);w.between.hasComponent?($(p).addClass("has-component"),$(p).show()):
($(p).removeClass("has-component"),$(p).hide())};B.prototype.deliveryDraw=function(w){var e=this.selectorObj.buyingToolOptDelivery.get(0);e.innerHTML="";this.component.invokeTemplate("delivery",w,e);w.delivery.hasComponent?($(e).addClass("has-component"),$(e).show()):($(e).removeClass("has-component"),$(e).hide());v()};B.prototype.deliveryMessageDraw=function(w){var e=this.selectorObj.buyingToolOptDeliveryMessage.get(0);e.innerHTML="";this.component.invokeTemplate("deliveryMessage",w,e);w.deliveryMessage.hasComponent?
($(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,p=e.buyingToolOptNewAssuredBuyBack.get(0);p.innerHTML="";this.component.invokeTemplate("newAssuredBuyBack",w,p);w.newAssuredBuyBack.hasComponent?($(p).addClass("has-component"),$(p).show()):($(p).removeClass("has-component"),$(p).hide());$(e.buyingToolOptNewAssuredBuyBack).find(".pd-select-option__item").each(function(k,A){k=$(A).find('input[name\x3d"pd-galaxy-new-assured"]');"OOS"==k.data("stockstatus")&&k.attr("disabled",!0)})};B.prototype.newAssuredBuyBackResultDraw=
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,p=this.selectorObj,k=p.buyingToolOptTariff.get(0);k.innerHTML="";this.component.invokeTemplate("tariffOption",w,k);w.tariffOption.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptTariff.find(".option-input")),$(k).addClass("has-component"),$(k).show()):($(k).removeClass("has-component"),$(k).hide())};B.prototype.tariffOpionResultDraw=function(w){var e=this.selectorObj.buyingToolOptTariffResult.get(0);e.innerHTML="";this.component.invokeTemplate("tariffOptionResult",
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,p=this.sharedObj,k=e.buyingToolOptTradeIn.get(0);
k.innerHTML="";this.component.invokeTemplate("tradeIn",w,k);w.tradeIn.hasComponent?(p.util.thirdPartyTagging(p,e,e.buyingToolOptTradeIn.find(".option-input")),$(k).addClass("has-component"),$(k).show()):($(k).removeClass("has-component"),$(k).hide())};B.prototype.tradeInErrMsgDraw=function(w){var e=this.selectorObj,p=e.buyingToolOptTradeInErrMsg.get(0);p.innerHTML="";this.component.invokeTemplate("tradeInErrMsg",w,p);w.tradeInErrMsg.hasComponent?(e.buyingToolOptTradeIn.find(".pd-option-selector").each(function(k,
A){k=$(A);k.addClass("cta--disabled");k.find(".option-input").prop("disabled",!0)}),$(p).addClass("has-component"),$(p).show(),window.sg.common.icon.update(document.querySelector("#tradeInErrMsg span.option-result__message-inner"))):($(p).removeClass("has-component"),$(p).hide())};B.prototype.tradeInResultDraw=function(w){var e=this.selectorObj,p=e.buyingToolOptTradeInResult.get(0),k=this.sharedObj.siteCode;p.innerHTML="";this.component.invokeTemplate("tradeInResult",w,p);"vn"===k&&$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").hide();
"vn"!==k||w.tradeInResult.list&&0!=w.tradeInResult.list.length||$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").show();if(w.tradeInResult.hasComponent){$(p).addClass("has-component");$(p).show();p=!1;!this.sharedObj.isMultiTradeIn||"si"!==k&&"hr"!==k?this.sharedObj.isMultiTradeIn&&(p=w.tradeInResult.list&&w.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||w.tradeInResult.priceOverFlag):p=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&&p){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)&&(p=e.buyingToolOptTradeInResult.find(".limit-count"))&&0<p.length&&p.is(":visible")&&p.hide();w.tradeInResult.priceOverFlag?("au"===k&&e.buyingToolOptTradeInResult.find(".option-result__multiple-price").text(currencyComma(0,this.sharedObj.priceCurrency)),"tr"!==k&&e.buyingToolOptTradeInResult.find(".over-price-alert").show(),
"sg"===k||"cl"===k?e.buyingToolOptTradeInResult.find(".desc-target").show():e.buyingToolOptTradeInResult.find(".desc-target").hide(),("sg"===k||"my"===k)&&(p=e.buyingToolOptTradeInResult.find(".limit-count"))&&0<p.length&&p.is(":visible")&&p.hide(),"tr"!==k&&(e.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0),e.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",!0))):(e.buyingToolOptTradeInResult.find(".over-price-alert").hide(),
e.buyingToolOptTradeInResult.find(".desc-target").show())}else e.buyingToolOptTradeInResult.find(".over-price-alert").hide();if("ae"===k||"ae_ar"===k)"Y"===w.tradeInResult.specialInstantDiscountYn?e.buyingToolOptTradeInResult.find(".desc-type2").show():e.buyingToolOptTradeInResult.find(".desc-type2").hide()}else $(p).removeClass("has-component"),$(p).hide();v()};B.prototype.checkDealerStockDraw=function(w){var e=this.selectorObj,p=e.buyingToolOptCheckDealerStock.get(0);e=$(e.buyingToolOptCheckDealerStock);
p.innerHTML="";this.component.invokeTemplate("checkDealerStock",w,p);e.find(".menu__list-wrap.scrollbar").remove();w.checkDealerStock.hasComponent?($(p).addClass("has-component"),$(p).show()):($(p).removeClass("has-component"),$(p).hide());window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);0===e.find(".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,p=this.selectorObj;if(x.isEnabled()){x.drawPriceSection(w);var k=p.buyingToolPriceBar.empty().get(0);this.component.invokeTemplate("buyingPrice",w,k);e.util.thirdPartyTagging(e,p,p.buyingToolPriceBar.find("a.cta"));window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.smg.wtb&&window.smg.wtb.common.reInit();if("fr"===$("#siteCode").val()||"be_fr"===
$("#siteCode").val()||"be"===$("#siteCode").val())window.sg.common.image.initAll(),window.sg.common.icon.redrawSvgs();setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100)}};B.prototype.productAddOnCare=function(w){var e=this.sharedObj,p=this.selectorObj,k=p.buyingToolOptCare.get(0);k.innerHTML="";this.component.invokeTemplate("care",w,k);w.care.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptCare.find(".option-input")),$(p.buyingToolOptCare.get(0)).addClass("has-component"),
h(p.buyingToolOptCare,w.care.rowText),$(p.buyingToolOptCare.get(0)).show()):$(p.buyingToolOptCare.get(0)).hide();w.careResult.hasComponent?($(p.buyingToolOptCare.get(0)).addClass("has-component"),$(p.buyingToolOptCareResult.get(0)).show()):$(p.buyingToolOptCareResult.get(0)).hide();$(p.buyingToolOptCare).find(".pd-select-option__item").each(function(A,ca){A=$(ca).find('input[name\x3d"pd-samsung-care"]');"OOS"==A.data("stockstatus")&&A.attr("disabled",!0)})};B.prototype.productAddOnWarranty=function(w){var e=
this.selectorObj,p=e.buyingToolOptWarranty.get(0);p.innerHTML="";this.component.invokeTemplate("warranty",w,p);w.warranty.hasComponent?$(e.buyingToolOptWarranty.get(0)).show():$(e.buyingToolOptWarranty.get(0)).hide();w.warrantyResult.hasComponent?$(e.buyingToolOptWarrantyResult.get(0)).show():$(e.buyingToolOptWarrantyResult.get(0)).hide()};B.prototype.productAddOnWarrantyVd=function(w){var e=this.sharedObj,p=this.selectorObj,k=p.buyingToolOptWarrantyVd.get(0);k.innerHTML="";this.component.invokeTemplate("warrantyVd",
w,k);w.warrantyVd.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptWarrantyVd.find("input")),$(p.buyingToolOptWarrantyVd.get(0)).show()):$(p.buyingToolOptWarrantyVd.get(0)).hide();w.warrantyVdResult.hasComponent?$(p.buyingToolOptWarrantyVdResult.get(0)).show():$(p.buyingToolOptWarrantyVdResult.get(0)).hide()};B.prototype.productOfferDraw=function(w,e){e=this.sharedObj;var p=this.selectorObj;F(w,p);l(this.component,w,p);u(w.offer,p);w.offer.hasComponent&&w.offer.hasPackage&&H(w,p);$("#siteCode").val();
"Y"===$("#typeux2025").val()?w.offer.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptOfferText.find('a[data-target-popup!\x3d"eipPopup"]')),$(p.buyingToolOptOfferText.get(0)).addClass("has-component"),$(p.buyingToolOptOfferText.get(0)).show()):$(p.buyingToolOptOfferText.get(0)).hide():w.offer.hasComponent?(e.util.thirdPartyTagging(e,p,p.buyingToolOptOffer.find('a[data-target-popup!\x3d"eipPopup"]')),$(p.buyingToolOptOffer.get(0)).addClass("has-component"),$(p.buyingToolOptOffer.get(0)).show()):
$(p.buyingToolOptOffer.get(0)).hide();window.sg.components.PDbuyingToolNew.reInit();window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"));window.sg.common.lazyLoad.setLazyLoad()};B.prototype.embedAddonDraw=function(w,e){var p=this.selectorObj,k=p.buyingToolOptEmbedAddon.get(0);k.innerHTML="";this.component.invokeTemplate("embedAddon",e,k);e.embedAddon.hasComponent?($(".pd-g-product-detail-header-ux2 .option-embed-addon").replaceWith(k),w.isLeasingPrice&&
$(".option-embed-addon").attr("data-leasing-price",w.isLeasingPrice),$(".option-embed-addon .add-on-product").each(function(){$(this).hasClass("add-on-product--out-of-stock")&&$(this).find("input").attr("disabled","disabled")}),w.util.thirdPartyTagging(w,p,p.buyingToolOptEmbedAddon.find(".add-on-product-list-wrap button")),$(p.buyingToolOptEmbedAddon.get(0)).addClass("has-component"),$(p.buyingToolOptEmbedAddon.get(0)).show(),w.isOptClicked&&w.util.clickEventListener(w,p)):($(p.buyingToolOptEmbedAddon.get(0)).removeClass("has-component"),
$(p.buyingToolOptEmbedAddon.get(0)).hide())};B.prototype.productDraw=function(w){var e=this.selectorObj,p=this.component;F(w,e);n(e);x.drawPriceSection(w);var k=e.buyingToolPriceBar.get(0);p.invokeTemplate("buyingPrice",w,k);setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100);p.invokeTemplate("delivery",w,e.buyingToolOptDelivery.get(0));p.invokeTemplate("deliveryResult",w,e.buyingToolOptDeliveryResult.get(0));p.invokeTemplate("deliveryPickupStore",w,e.buyingToolOptDeliveryPickupStore.get(0));
p.invokeTemplate("tariffOption",w,e.buyingToolOptTariff.get(0));p.invokeTemplate("tariffOptionResult",w,e.buyingToolOptTariffResult.get(0));p.invokeTemplate("prePurchase",w,e.buyingToolOptPrePurchase.get(0));l(p,w,e);p.invokeTemplate("offerFinance",w,e.buyingToolOptOfferFinance.get(0));p.invokeTemplate("care",w,e.buyingToolOptCare.get(0));p.invokeTemplate("careResult",w,e.buyingToolOptCareResult.get(0));p.invokeTemplate("warranty",w,e.buyingToolOptWarranty.get(0));p.invokeTemplate("warrantyResult",
w,e.buyingToolOptWarrantyResult.get(0));p.invokeTemplate("bezelOption",w,e.buyingToolOptBezelOption.get(0));p.invokeTemplate("tradeIn",w,e.buyingToolOptTradeIn.get(0));p.invokeTemplate("tradeInResult",w,e.buyingToolOptTradeInResult.get(0));p.invokeTemplate("checkDealerStock",w,e.buyingToolOptCheckDealerStock.get(0));$(e.buyingToolOptCheckDealerStock).find(".menu__list-wrap.scrollbar").remove();p.invokeTemplate("upgrade",w,e.buyingToolOptUpgrade.get(0));p.invokeTemplate("upgradeResult",w,e.buyingToolOptUpgradeResult.get(0));
p.invokeTemplate("galaxyForever",w,e.buyingToolOptGalaxyForever.get(0));p.invokeTemplate("galaxyForeverResult",w,e.buyingToolOptGalaxyForeverResult.get(0));p.invokeTemplate("assuredBuyBack",w,e.buyingToolOptAssuredBuyBack.get(0));p.invokeTemplate("assuredBuyBackResult",w,e.buyingToolOptAssuredBuyBackResult.get(0));p.invokeTemplate("newAssuredBuyBack",w,e.buyingToolOptNewAssuredBuyBack.get(0));p.invokeTemplate("newAssuredBuyBackResult",w,e.buyingToolOptNewAssuredBuyBackResult.get(0));p.invokeTemplate("embedAddon",
w,e.buyingToolOptEmbedAddon.get(0));p.invokeTemplate("calculator",w,e.buyingToolCalculate.get(0));k=$(e.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);p.invokeTemplate("between",w,k);$(".pd-select-option--check-dealer-stock .menu").length&&window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);$(e.buyingToolOptCare).find(".pd-select-option__item").each(function(A,ca){A=$(ca).find('input[name\x3d"pd-samsung-care"]');"OOS"==A.data("stockstatus")&&
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&&H(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 U=x.util,B=x.comboSearchList,w=x.noComboSearchList,e=x.realComboSearchList,p=!1;if(U.isNotEmptyArray(B)){var k=x.pdSoftBundleUseYn,A;for(A in B){var ca=B[A],K=e[A],D=w[A],g=[],C;for(C in ca)for(var E in K){var T=ca[C],R=K[E];if(R.ctaType&&"NOORDER"!==R.ctaType.toUpperCase()&&T.msrp_price&&T.msrp_price.value)if(p=!0,T.sku===R.shopSKU)R.thumbUrl=U.imgDomain(R.thumbUrl),R.msrp_price=T.msrp_price,R.sale_price=T.sale_price,R.formatted_value=T.formatted_value,R.sales_pitch=
T.sales_pitch,R.type=T.type,g.push(R);else if("Y"===k&&"ecom"===T.sku_source)for(var y in D)T.sku===D[y].sku&&g.push(searchComboData[kdx])}U.isNotEmptyArray(g)&&x.globalComboData.push(g)}}p||(x.drawObj.offer.combo=[],x.view.productOfferDraw(x.drawObj))}function h(x,U,B){U=x.util;var w=x.priceCurrency,e=x.view;x=x.drawObj;for(var p in B){var k=B[p],A=k.thumbUrl,ca=k.thumbUrlAlt,K=x.offer,D=k.pviTypeName?k.pviTypeName.toLowerCase():"",g=k.pviSubtypeName?k.pviSubtypeName.toLowerCase():"",C=k.categorySubTypeEngName?
k.categorySubTypeEngName.toLowerCase():"";A=U.getImgAttr(A,A,ca,{classWapper:"image__main responsive-img"});ca=[];var E=B[p];E.bogo_sales_pitch&&ca.push({text:E.bogo_sales_pitch});var T="",R="",y="";k.price_info&&0<k.price_info.length&&(T=k.price_info[0],y=T.msrp_price.value,T=T.msrp_price.formatted_value,"nl"!==siteCode&&"be"!==siteCode&&"be_fr"!==siteCode&&(R=Granite.I18n.get("Save {0}",T)));var ea=currencyComma(0,w);"true"===$("#isEppPage").val()&&"pl"===siteCode&&(R=T="");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:g,categorySubTypeEngName:C,description:{hasDescription:!0,main:ca,date:E.bogo_date},imgAttr:A,price:{hasPrice:!0,price:y,original:T,save:R,now:ea}}};K.bogo=k}e.productOfferDraw(x)}function H(x){var U=x.getFullYear(),B=String(x.getMonth()+1).padStart(2,"0");x=String(x.getDate()).padStart(2,"0");return U+"-"+B+"-"+x}function u(x){var U=
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"}}(U);x="January February March April May June July August September October November December".split(" ")[x.getMonth()];return""+U+B+" "+x}function n(x,U){x=new Date(x);return"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")[x.getDay()]+", "+"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[x.getMonth()]+" "+x.getDate()}var v=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
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,U){var B=$.cookies.get("tmktid",{domain:".samsung.com"}),w=x.modelCode;B&&$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.samsung.com/us/shop/price.us",type:"POST",dataType:"json",timeout:2E4,
data:JSON.stringify({marketId:B,modelCodes:w}),xhrFields:{withCredentials:!0},success:function(e){if(e&&0<e.length)for(var p in e){var k=e[p];x.modelCode===k.prdMdlCd&&k.prdSavePriceInf&&(k=k.prdSavePriceInf.trim(),k=deleteCurrency(k,x.priceCurrency),x.drawObj.usEppData.hasComponent=!0,x.proudctPriceInfo.usEppPrice=k,x.drawObj.usEppData.upText="Save an extra",x.drawObj.usEppData.saveText=currencyComma(k,x.priceCurrency),x.view.usEppDraw(x.drawObj),x.util.settingPriceDraw(x,U))}}})};W.prototype.setUsProductJson=
function(x,U){$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.samsung.com/us/consumer/shop/productJson.json",type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},success:function(B){B&&B[x.modelCode]&&(B=parseFloat(B[x.modelCode].eppMaxSavingPercentage),x.drawObj.usEppData.hasComponent=!0,x.drawObj.usEppData.upText="Save up to an extra",x.drawObj.usEppData.saveText=currencyComma(x.proudctPriceInfo.salePrice*
B,x.priceCurrency),x.drawObj.usEppData.title="with Samsung Discount Program",x.view.usEppDraw(x.drawObj))}})};W.prototype.setEppDiscount=function(x,U){$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.samsung.com/us/smg/content/samsung/content-library/prepurchase/eppdiscount/epp-discount.json",type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},success:function(B){if(B&&B.eppDiscounts){x.drawObj.usEppData.hasSelectBox=
!0;for(var w in B.eppDiscounts){var e=B.eppDiscounts[w];x.drawObj.usEppData.selectList.push({title:e.label,storeId:e.storeId,index:w})}x.view.usEppDraw(x.drawObj)}}})};W.prototype.callRelatedAndSearch=function(x,U,B,w,e){var p=this;B=void 0===B?{}:B;var k={},A={};this.callRelatedProductAjax(x,function(ca,K,D){if(K){A.relatedAPI=ca;if(null!=ca.products&&0<ca.products.length){ca=$jscomp.makeIterator(ca.products);for(var g=ca.next();!g.done;g=ca.next())g=g.value,k[g.modelcode]={relatedAPI:g}}0<Object.keys(k).length?
p.callSearchApiAjax(Object.keys(k),function(C,E,T){if(E&&(A.searchAPI=C,200===C.response.statusCode&&C.response.resultData&&C.response.resultData.productList)){C=$jscomp.makeIterator(C.response.resultData.productList);for(var R=C.next();!R.done;R=C.next()){R=R.value;for(var y=$jscomp.makeIterator(R.modelList),ea=y.next();!ea.done;ea=y.next())ea=ea.value,k["in"!==siteCode?ea.modelCode:ea.shopSKU].searchAPI={categoryData:R,modelData:ea}}}A.totalResult=k;U(A,E,T)},D,e):U(A,K,D)}else U(A,K,D)},B,w)};
W.prototype.callSearchApiAjax=function(x,U,B,w){x=void 0===x?[]:x;B=void 0===B?{}:B;var e=$("#searchDomain").val(),p=$("#siteCode").val(),k=$("#apiStageInfo").val(),A=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("GPv2"):!0,ca=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg"):!0,K=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new"):!0,D=2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,
2)?!0:!1,g=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||g||C;g=$.cookies.get("country_region")?$.cookies.get("country_region").toString():"";"levant"===p||"levant_ar"===p||"n_africa"===p||"ae"!==p&&"ae_ar"!==p||$.cookies.get("estoreSitecode",
{domain:".samsung.com"});C="";C=A?"gpv2":ca?"hybris":K?"newhybris":"global";A="true"===$("#isEppPage").val();e=e+"/"+k+"/"+(A?"epp/v2":"b2c")+"/product/model/list/"+C+"/front";x={siteCode:p,modelList:x.join(","),saleSkuYN:"N",onlyRequestSkuYN:"Y"};A&&(x.companyCode=$("#eppCompanyCode").val(),x.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(x.groupName=window.sg.epp.common.groupName),k=location.pathname.match(/[0-9]{13}/g),null!=k&&"undefined"!=typeof k&&""!=$.trim(k)&&(x.offerId=k[0]),""!=
window.sg.epp.common.userStoreId&&(x.o2oId=window.sg.epp.common.userStoreId));D&&(x.vd3PACardYN="Y");x.commonCodeYN="in"!=p?"N":"Y";if("ca"===p||"ca_fr"===p)x.regionCode=null!=g&&""!=g?g:"CA-ON";var E="",T=!1;w&&(x=w);$.ajax({url:e,type:"GET",data:x,dataType:"json",cache:!0,crossDomain:!0,timeout:2E4,success:function(R){E=R;T=!0},complete:function(){U(E,T,B)}})};W.prototype.callRelatedProductAjax=function(x,U,B,w){B=void 0===B?{}:B;var e="",p="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
$("#siteCode").val();e="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();x=e+"/tokocommercewebservices/v2/"+p+"/products/"+x+"/relatedProducts?fields\x3dSIMPLE_INFO";e={queryType:"ACCESSORIES"};var k="",A=!1;w&&(e=w);$("#shopParmLang").val()&&(e.lang=$("#shopParmLang").val());w="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?
{withCredentials:!0}:{};$.ajax({url:x,type:"GET",data:e,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:w,success:function(ca){k=ca;A=!0},complete:function(){U(k,A,B)}})};W.prototype.callRelatedProductAjaxOldHybris=function(x,U,B,w,e){w=void 0===w?{}:w;var p=$("#storeDomain").val(),k=x.multistoreSiteCd,A="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():k;k="ca"===k||"ca_fr"===k;U=p+"/"+A+"/servicesv2/getRelatedProductsSimpleInfo?productCode\x3d"+U;p="\x26country_region\x3d";
k&&(A=getSECACountryRegion(),p+=A);A={queryType:"ACCESSORIES"};var ca="",K=!1;e&&(A=e);var D="Query1910499421933433041_151";if("SELECTION_OF_GIFT"==e.queryType||x.hasGift&&!x.hasBundle)D="Query1910499421933433041_152";else if("SELECTION_OF_BUNDLE"==e.queryType||x.hasGift&&x.hasBundle)x.bundleCnt++,D="Query1910499421933433041_153"+x.bundleCnt;"Y"===x.hybrisJsonYn?$.ajax({url:U,type:"GET",data:A,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(g){ca=
g;K=!0},complete:function(){B(ca,K,w)}}):k?$.ajax({url:U+p,type:"GET",data:A,dataType:"jsonp",jsonpCallback:D,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(g){ca=g;K=!0},complete:function(){B(ca,K,w)}}):$.ajax({url:U,type:"GET",data:A,dataType:"jsonp",jsonpCallback:D,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(g){ca=g;K=!0},complete:function(){B(ca,K,w)}})};W.prototype.callRelatedProductAjaxAddOns=function(x,U,B,w){B=void 0===
B?{}:B;var e=$("#storeDomain").val(),p="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();$("#shopParmLang").val()&&$("#shopParmLang").val();var k="",A=!1,ca="";w&&(ca=w,ca.categoryPrefix="AEM_");$.ajax({url:e+"/tokocommercewebservices/v2/"+p+"/products/"+x+"/relatedCategorizedProducts?fields\x3dSIMPLE_INFO",type:"GET",data:ca,dataType:"json",cache:!0,crossDomain:!0,xhrFields:{withCredentials:!0},timeout:1E4,success:function(K){k=K;A=!0},complete:function(){U(k,A,B)}})};
W.prototype.callRelatedProductAjaxAddOnsOldHybris=function(x,U,B,w,e,p){e=void 0===e?{}:e;var k=$("#storeDomain").val(),A=U.multistoreSiteCd,ca="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():A;A="ca"===A||"ca_fr"===A;B=k+"/"+ca+"/servicesv2/getRelatedCategorizedProductsSimpleInfo?productCode\x3d"+B;k="\x26country_region\x3d";A&&(ca=getSECACountryRegion(),k+=ca);var K="",D=!1;ca="";p&&(ca=p);x&&(ca.categoryPrefix="AEM_");p="Query1910499421933433041_161";x&&(p="Query1910499421933433041_162");
"Y"===U.hybrisJsonYn?$.ajax({url:B,type:"GET",data:ca,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(g){K=g;D=!0},complete:function(){w(K,D,e)}}):A?$.ajax({url:B+k,type:"GET",data:ca,dataType:"jsonp",jsonpCallback:p,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(g){K=g;D=!0},complete:function(){w(K,D,e)}}):$.ajax({url:B,type:"GET",data:ca,dataType:"jsonp",jsonpCallback:p,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
success:function(g){K=g;D=!0},complete:function(){w(K,D,e)}})};W.prototype.callSimulatecartAjax=function(x,U,B){B=void 0===B?{}:B;var w="",e="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();w="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();var p=e;"true"!==$("#isEppPage").val()&&("levant"===e?p="jo":"levant_ar"===e?p="jo_ar":"n_africa"===e&&
(p="ma"));w=w+"/tokocommercewebservices/v2/"+p+"/userData/anonymous/simulatecart";x={productCodes:x};e="true"===$("#isEppPage").val()?{withCredentials:!0}:{};var k="",A=!1;$.ajax({url:w,type:"GET",data:x,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:e,success:function(ca){k=ca;A=!0},complete:function(){U(k,A,B)}})};W.prototype.deliveryUsAPI=function(x,U,B,w){var e=x.apiDomain+"/v4/fulfillment/earliest-available-delivery-dates";x.drawObj.deliveryResult={hasComponent:!1,mainText:null,
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(p){var k=x.drawObj,A=k.delivery,ca=k.deliveryResult;k.delivery.errorMessage=null;if(null!==p&&0<p.length){var K=!1,D;for(D in p){var g=p[D];if(g.sku&&g.sku===w&&g.earliest_available_delivery_date){K=
!0;x.cartPinCode=B;ca.hasComponent=!0;A.inputAttr.value=B;var C=new Date(g.earliest_available_delivery_date);g=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+", "+g)});$.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(p){p=x.drawObj;p.delivery.errorMessage="This product is currently not available in your area.";p.delivery.inputAttr.value=B},complete:function(){var p=x.view,k=x.drawObj,A=$(U.buyingToolOptDelivery),ca=x.util;p.deliveryResultDraw(k);p.deliveryDraw(k);k.delivery.errorMessage?($(A).find(".text-field-v2__text.error").show(),
$(A).find("#delivery-zipcode").focus().val("").val(B)):($(A).find(".text-field-v2__text.error").hide(),k.delivery.errorMessage=null);ca.settingPriceCta(x.hasPriceCta,x,U,x.currentUrl)}})};W.prototype.deliveryAPI=function(x,U,B,w){var e=x.apiDomain,p=x.pdHrefLang,k=x.pdMultiLanguageYN,A=x.isOldHybrisCheckService,ca=x.siteCode;x.drawObj.delivery.errorMessage=null;x.drawObj.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};var K={postal_code:B,skus:[w]},D=
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(g){"Y"===k&&g.setRequestHeader("x-ecom-locale",p)},success:function(g){var C=x.drawObj,
E=C.delivery,T=C.deliveryResult,R=x.siteCode,y="";null!==g?g.valid?(x.cartPinCode=B,T.hasComponent=!0,E.inputAttr.value=B,T.mainText=null!==g.deliveryTurnAroundTime?g.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(g){var C=x.drawObj;g.responseJSON?(g=g.responseJSON,g=
g.message?Granite.I18n.get(g.message):Granite.I18n.get("We're sorry, an error occurred.")):g=Granite.I18n.get("We're sorry, an error occurred.");C.delivery.errorMessage=g},complete:function(){var g=x.view,C=x.drawObj;g.deliveryResultDraw(C);g.deliveryDraw(C);C.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B))}})):$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json",
"Access-Control-Allow-Origin":"*"},url:D,type:"POST",dataType:"json",timeout:2E4,data:JSON.stringify(K),xhrFields:{withCredentials:!0},beforeSend:function(g){"Y"===k&&g.setRequestHeader("x-ecom-locale",p)},success:function(g){var C=x.drawObj,E=C.delivery,T=C.deliveryResult,R=x.siteCode,y="";null!==g&&0<g.length?g[0].is_op_available?(g=g[0],x.cartPinCode=B,T.hasComponent=!0,E.inputAttr.value=B,T.mainText=Granite.I18n.get("Delivery available. Get it in {0}",null!==g.turn_around_time?g.turn_around_time:
""),g.local_dealers&&0<g.local_dealers.length&&(E=g.local_dealers[0],T.decText=E.store_name,E.address&&T.disclaimerList.push({disclaimer:E.address}),E.contact_number&&T.disclaimerList.push({disclaimer:E.contact_number})),$.cookies.set("deliveryPincode",B,{domain:".samsung.com",path:"/"+R})):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(g){var C=x.drawObj;g.responseJSON?
(g=g.responseJSON,g=g.message?Granite.I18n.get(g.message):Granite.I18n.get("We're sorry, an error occurred.")):g=Granite.I18n.get("We're sorry, an error occurred.");C.delivery.errorMessage=g},complete:function(){var g=x.view,C=x.drawObj;g.deliveryResultDraw(C);g.deliveryDraw(C);C.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B))}})};W.prototype.deliveryNewBybrisAPI=function(x,U,
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(p){var k=p.deliveryTurnAroundTime;p.valid?(x.drawObj.delivery.inputAttr.value=B,x.drawObj.deliveryResult={hasComponent:p.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(p){var k=x.drawObj;p.responseJSON?(p=p.responseJSON,p=p.message?Granite.I18n.get(p.message):Granite.I18n.get("We're sorry, an error occurred.")):p=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=p},complete:function(){var p=x.view,k=x.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);
p.deliveryResultDraw(k);p.deliveryDraw(k);k.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));k.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();F.buyingTool.bindPdTooltipEvent()}})):(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(p){var k=p.deliveryTurnAroundTime;p.valid&&"oos"===k&&"id"===siteCode?x.drawObj.delivery.errorMessage=Granite.I18n.get("Delivery Out Of Stock Message"):p.valid?(x.drawObj.delivery.inputAttr.value=B,x.drawObj.deliveryResult={hasComponent:p.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(p){var k=x.drawObj;p.responseJSON?(p=p.responseJSON,p=p.message?Granite.I18n.get(p.message):Granite.I18n.get("We're sorry, an error occurred.")):p=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=p},complete:function(){var p=
x.view,k=x.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);p.deliveryResultDraw(k);p.deliveryDraw(k);k.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));k.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();F.buyingTool.bindPdTooltipEvent()}}))};W.prototype.deliveryInAPI=function(x,U,B,w){var e=x.apiDomain,
p="";"true"===$("#isEppPage").val()&&(p="\x26store_id\x3d"+$("#eppCompanyCode").val());w=e+"/v4/configurator/serviceability?postal_code\x3d"+B+"\x26skus\x3d"+[w]+p;x.drawObj.delivery.errorMessage=null;e="true"===$("#isEppPage").val()?{withCredentials:!0}:{};x.drawObj.deliveryResult={hasComponent:!1,priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};x.drawObj.deliveryPickupStore={hasComponent:!1,deliveryPickupStore:!1,deliveryPickupStoreName:""};$.ajax({url:w,type:"GET",
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,g=A.deliveryPickupStore,C=null;if(200==ca.status)if(ca=k[0].external_attributes,ca.is_op_available)if(ca.local_dealers[0]&&ca.local_dealers[0].serviceable){if(k[0].delivery_modes&&0<k[0].delivery_modes.length){var E=null,T=null,R;for(R in k[0].delivery_modes){var 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 ea=y.custom_properties.delivery_mode_type,va="standard"===ea.replace(/ /g,"").toLowerCase(),ra="prioritydelivery"===ea.replace(/ /g,"").toLowerCase(),oa=y.estimated_delivery_date,da=Number(oa.split("-")[2]);ea="";y.short_description&&(ea=y.short_description);var na=y.flags.is_installation_available,L=y.earliest_installation_date;na&&L&&ra&&(E="Schedule installation \x26 Demo : By "+n(L,"priority"));na&&L&&va&&(T="Schedule installation \x26 Demo : By "+
n(L,"standard"));ra?y.estimated_delivery_time&&(D.priorityCost=y.cost.value,y=y.estimated_delivery_time,va="",y&&(y=Number(y.split(":")[0]),12>y?va="AM":(12<y&&(y-=12),va="PM")),ra=Number(K.time.split(",")[1].trim().substring(0,2)),na=Number(K.time.split("GMT")[0].trim().slice(-8).split(":")[0])+5,59<Number(K.time.split("GMT")[0].trim().slice(-8).split(":")[1])+30&&(na+=1),23<na&&(ra+=1),oa=ra===da?"Today":ra+1===da?"Tomorrow":n(oa).split(",")[0],D.priorityText=ea+": "+oa+" by "+y+" "+va):va&&(D.mainText=
"Delivery by "+n(oa,"standard"))}}E?(D.subText=E,D.mainText=null):T&&(D.subText=T,D.priorityText=null)}else C=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");ca.local_dealers[0].store_name&&(D.decText="Fullfillment by : "+ca.local_dealers[0].store_name);ca.is_cod_available&&0>JSON.stringify(D.disclaimerList).indexOf("Cash on delivery is available.")&&D.disclaimerList.push({disclaimer:Granite.I18n.get("Cash on delivery is available.")});0<ca.pickup_stores.length&&""!==ca.pickup_stores[0].store_name&&
(g.hasComponent=!0,g.deliveryPickupStore=!0,g.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&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));
A.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==A.deliveryResult.priorityText&&!0===A.tradeInResult.isUpfront?$(U.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==A.deliveryResult.priorityText&&!1===A.tradeInResult.isUpfront&&$(U.buyingToolOptDeliveryResult).find(".delivery-priority").show();F.buyingTool.bindPdTooltipEvent()}})};W.prototype.deliveryNewInAPI=function(x,U,B,w){var e=x.apiDomain;"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(p,k,A){k=x.drawObj;var ca=k.delivery,K=k.deliveryResult,D=k.deliveryPickupStore,g=null;k.delivery.ctaClass="cta--disabled";if(200==A.status)if((A=p.pdpDeliveryInfo.external_attributes)&&A.is_op_available)if(A.local_dealers&&A.local_dealers[0]&&A.local_dealers[0].serviceable){k.delivery.ctaClass="";x.cartPinCode=B;K.hasComponent=!0;ca.inputAttr.value=B;
K.mainText=null;K.priorityText=null;A.local_dealers[0].estimated_delivery_date&&(K.mainText="Delivery : By "+n(A.local_dealers[0].estimated_delivery_date));if(A.local_dealers[0].shipping_methods&&0<A.local_dealers[0].shipping_methods.length){ca=A.local_dealers[0].shipping_methods;var C=ca.find(function(ea){return ea.model_code.includes("SDD")})||ca.find(function(ea){return ea.model_code.includes("NDD")})||ca[0];if(C){ca=C.model_code.includes("SDD")||C.model_code.includes("NDD");var E=H(new Date),
T=C.estimated_delivery_date;E=Math.round((new Date(T)-new Date(E))/864E5);C=C.model_code.includes("EXPRESS");ca?(0==E?(K.priorityText="Priority Delivery : By Today",C&&(K.priorityText="Delivery available in 4-6hrs.")):K.priorityText=1==E?"Priority Delivery : By Tomorrow":"Priority Delivery : By "+u(new Date(T)),K.mainText=null):K.mainText="Delivery : By "+u(new Date(T))}}p.deliveryTurnAroundTime&&(K.mainText?K.mainText=p.deliveryTurnAroundTime:K.priorityText&&(K.priorityText=p.deliveryTurnAroundTime));
p.pdpDeliveryInfo.earliest_installation_date&&(K.subText="Schedule installation \x26 Demo : By "+n(p.pdpDeliveryInfo.earliest_installation_date,""));A.local_dealers[0].store_name&&(K.decText="Fulfillment by : "+A.local_dealers[0].store_name);A.is_cod_available&&0>JSON.stringify(K.disclaimerList).indexOf("Cash on delivery is available.")&&K.disclaimerList.push({disclaimer:Granite.I18n.get("Cash on delivery is available.")});for(var R in A.local_dealers)if(A.local_dealers[R].click_and_collect&&""!==
A.local_dealers[R].store_name)if(D.hasComponent=!0,D.deliveryPickupStore=!0,D.deliveryPickupStoreName=A.local_dealers[R].store_name,p.pdpDeliveryInfo.bopisDescription&&0<p.pdpDeliveryInfo.bopisDescription.length)for(var y in p.pdpDeliveryInfo.bopisDescription)D.disclaimerList.push(p.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 g=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else g=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else g=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");k.delivery.errorMessage=g},error:function(p){var k=x.drawObj;p.responseJSON?(p=p.responseJSON,
p=p.message?Granite.I18n.get(p.message):Granite.I18n.get("We're sorry, an error occurred.")):p=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=p},complete:function(){var p=x.view,k=x.drawObj,A="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();p.deliveryResultDraw(k);p.deliveryDraw(k);p.deliveryPickupStoreDraw(k);k.delivery.errorMessage&&($(U.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),A||$(U.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(B));
k.delivery.priorityDeliveryText&&$(U.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==k.deliveryResult.priorityText&&!0===k.tradeInResult.isUpfront?$(U.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==k.deliveryResult.priorityText&&!1===k.tradeInResult.isUpfront&&$(U.buyingToolOptDeliveryResult).find(".delivery-priority").show();x.util.checkAddToCart(x,U);F.buyingTool.bindPdTooltipEvent()}})};W.prototype.externalAjax=function(x,U){U=x.apiDomain;var B=x.pdMultiLanguageYN,
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:U+"/v1/exchange/external",type:"POST",dataType:"json",data:JSON.stringify(e),timeout:1E4,xhrFields:{withCredentials:!0},beforeSend:function(p){"Y"===B&&p.setRequestHeader("x-ecom-locale",w)},success:function(p){null!==p&&0<p.length&&x.afterEvent.offerAndAddonsDiscount(p,
"galaxyapp")},error:function(p){var k="";p.responseJSON&&p.responseJSON.message&&(k=p.responseJSON.message);confirmPopup(k)},complete:function(){history.replaceState({},null,location.pathname)}})};W.prototype.exchangeInDataV1Api=function(x,U,B){var w={device_info:{imei:B.IMEI},offer_id:B.notselected_offer_id,device_id:B.device_id,postal_code:B.postal_code,sku:x.shopSkuCode};"true"===$("#isEppPage").val()&&(w.store_id=$("#eppCompanyCode").val());B.dataQuoteId=B.id;B.foreverId=null;var e=x.apiDomain,
p="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(e=$("#gpvStoreDomain").val(),p="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:e+p,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},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,U,x.view)}})};W.prototype.tradeInCeDataV1Api=function(x,U,B){var w={device_id:B.device_id,device_info:{product_condition:$(".radio-v2.active").children("input").val().toLowerCase()},
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,p="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(e=$("#gpvStoreDomain").val(),p="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:e+p,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},
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,U,x.view)}})};W.prototype.calcularAPI=function(x){$.ajax({type:"GET",url:"apiDomain/br/ng/p4v1/calcShippingCost",data:{productCode:"modelCode",zipCode:x},dataType:"jsonp",jsonp:"callback",timeout:5E3,success:function(U){},error:function(U){}})};W.prototype.waitSearchAPI=function(x,U){x.checkingBogoSearchFlag&&x.checkingComboSearchFlag&&x.checkingAddOnSearchFlag&&x.checkingGiftSearchFlag&&
this.callSearchApi(x,U)};W.prototype.historyBackEvent=function(){-1!=navigator.userAgent.indexOf("Android 4.")&&navigator.userAgent.indexOf("AppleWebKit");var x="add-on",U="add on",B="-option-select";$(".hubble-addon-page").is(":visible")&&($(".hubble-addon-page").hasClass("is-gift-type")?(x="freegift",U="free gift",B="-cta-option alert popup"):v.detailSharedObj.isVoucher&&(U=x="evoucher"));var w=!1;window.addEventListener("popstate",function(e){e&&(w=!0,$("body").css("display","none"),window.location.reload())});
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(p){w||($("#content").is(":visible")?history.back():(p={htmlText:Granite.I18n.get("Your selections will not be saved if you exit. Exit window?",null,i18n_hint),btnPrimaryText:Granite.I18n.get("Yes",null,i18n_hint),btnGhostText:Granite.I18n.get("No",null,i18n_hint),
btnPrimaryAttrs:{"an-tr":"bridge_"+U+"-"+bcPageTrack()+B,"an-ca":"option click","an-ac":"bridge","an-la":x+":reset option:yes","data-modelcode":v.detailSharedObj.modelCode,"data-modeldisplay":v.detailSharedObj.displayName,"data-modelname":v.detailSharedObj.modelName,"data-modelrevenue":v.detailSharedObj.proudctPriceInfo.salePrice,"data-modelprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pvitype":v.detailSharedObj.pvitype.toLowerCase(),"data-pvisubtype":v.detailSharedObj.pvisubtype.toLowerCase(),
"data-discountprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":v.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"},btnGhostyAttrs:{"an-tr":"bridge_"+U+"-"+bcPageTrack()+B,"an-ca":"option click","an-ac":"bridge","an-la":x+":reset option:no","data-modelcode":v.detailSharedObj.modelCode,"data-modeldisplay":v.detailSharedObj.displayName,"data-modelname":v.detailSharedObj.modelName,"data-modelrevenue":v.detailSharedObj.proudctPriceInfo.salePrice,"data-modelprice":v.detailSharedObj.proudctPriceInfo.salePrice,
"data-pvitype":v.detailSharedObj.pvitype.toLowerCase(),"data-pvisubtype":v.detailSharedObj.pvisubtype.toLowerCase(),"data-discountprice":v.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":v.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"}},bc_confirm.notify(p,"history-back"),$(".confirm-popup").off("click",'.cta[data-event-type\x3d"history-back"]'),$(".confirm-popup").on("click",'.cta[data-event-type\x3d"history-back"]',function(k){if($(this).hasClass("cta--contained"))$("#wrap").removeClass("hubble-content__addon"),
$(".confirm-popup").hide(),location.reload();else return history.pushState(null,document.title,location.href),$(".confirm-popup").hide(),!1})))})},500)};W.prototype.callSearchApi=function(x,U){var B=x.siteCode,w=x.pdStageInfo,e=x.pdSearchDomain+"/",p=[],k="",A=x.careAndWarrantySearchList,ca=x.careSearchList,K=x.addOnSearchList,D=x.giftSearchList,g=x.bogoSearchList,C=x.comboSearchList;k=x.noComboSearchList=[];var E=x.realComboSearchList=[];for(ra in A)p.push(A[ra]);for(var T in ca)p.push(ca[T]);for(var R in K)p.push(K[R]);
for(var y in D)p.push(D[y]);for(var ea in g)p.push(g[ea].sku);for(var va in C){var ra=C[va];T=[];R=[];for(var oa in ra)y=ra[oa],"ecom"!==y.sku_source?(p.push(y.sku),R.push({sku:y.sku})):T.push(y);0===R.length&&x.globalComboData.push(T);k.push(T);E.push(R)}if(k=p.join(","))x.finishedSearch=!1;else return!1;B={commonCodeYN:"Y",siteCode:B,modelList:k,saleSkuYN:"N",onlyRequestSkuYN:"Y"};va=(p="true"===$("#isEppPage").val())?"epp/v2":"b2c";p&&(B.companyCode=$("#eppCompanyCode").val(),window.sg.epp.common.isUserGroupPricing&&
(B.groupName=window.sg.epp.common.groupName));$.ajax({url:e+w+"/"+va+"/product/card/detail/gpv2",type:"GET",data:B,dataType:"json",cache:!0,success:function(da,na,L){na=da.response;da=x.util;if(200===na.statusCode){var N=na.resultData.productList;for(G in N){na=N[G];L=na.modelList;for(var b in L){var r=L[b];da.merge(x.totalSkuList,r.shopSKU,r,"searchProductCard");x.totalSkuList[r.shopSKU]&&(x.totalSkuList[r.shopSKU].categorySubTypeEngName=na.categorySubTypeEngName,x.totalSkuList[r.shopSKU].categorySubTypeCode=
na.categorySubTypeCode,x.totalSkuList[r.shopSKU].familyIndex=G)}}x.addOnGift&&x.addOnGift.products&&0<x.addOnGift.products.length&&x.addOnGift.products.filter(function(Z){for(var d in N){var M=N[d];if(M.modelList&&0<M.modelList.length){M=M.modelList;for(var t in M)if(Z.modelCode===M[t].modelCode)return N[d]}}});var G=[];if(x.addOnApiList&&x.addOnApiList.addOn&&x.addOnApiList.addOn.list&&0<x.addOnApiList.addOn.list.length){var P=x.addOnApiList.addOn.list;G=N.filter(function(Z){for(var d in P)for(var M in N){var t=
N[M];if(t.modelList&&0<t.modelList.length){t=t.modelList;for(var z in t)if(P[d].discounted_sku===t[z].shopSKU)return Z}}});x.addOnSearchGPv2=G}}},error:function(da,na,L){},complete:function(){var da=x.util,na=x.bogoSearchList,L=x.addOnApiList,N=x.realComboSearchList;if(L.careAndWarranty&&da.isNotEmptyArray(L.careAndWarranty.list))for(var b in L.careAndWarranty.list){var r=L.careAndWarranty.list[b],G=r.sku;x.totalSkuList[G]&&$.extend(r,x.totalSkuList[G])}if(L.care&&da.isNotEmptyArray(L.care.list))for(var P in L.care.list)b=
L.care.list[P],r=b.discounted_sku,x.totalSkuList[r]&&$.extend(b,x.totalSkuList[r]);if(L.addOn&&da.isNotEmptyArray(L.addOn.list)){for(var Z in L.addOn.list)P=L.addOn.list[Z],b=P.discounted_sku,x.totalSkuList[b]&&$.extend(P,x.totalSkuList[b]);x.addOnCategoryList=x.addOnCategoryList.filter(function(X){if(0<X.category.productList.length)return X})}if(L.addOn&&da.isNotEmptyArray(L.gift.list)){Z=!1;for(P=0;P<L.gift.list.length;P++){b=L.gift.list[P];r=b.discounted_sku;G=x.totalSkuList[r];var d=G.inventory,
M=!1;d&&d.status&&(M="NOORDER"===d.status.toUpperCase()||"OUTOFSTOCK"===d.status.toUpperCase());M?L.gift.list.splice(P--,1):G&&-1<G.apiType.indexOf("searchProductCard")&&($.extend(b,x.totalSkuList[r]),Z=!0)}Z||(x.drawObj.offer.gift.hasItem=!1,x.view.productOfferDraw(x.drawObj));0===L.gift.list.length&&(x.hasAddOns?window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():setInterval(function(){v.DetailAfterEvent.addToCartCta([],!0,!0)},1E3))}if(da.isNotEmptyArray(na)){for(var t in na)L=
na[t],Z=L.sku,x.totalSkuList[Z]&&$.extend(L,x.totalSkuList[Z]);h(x,U,na)}if(da.isNotEmptyArray(C)){for(var z in N){da=N[z];for(var I in da)na=da[I],t=na.sku,x.totalSkuList[t]&&$.extend(na,x.totalSkuList[t])}l(x)}x.finishedSearch=!0;x.util.afterTotalAPI(x,U)}})};W.prototype.callAddOnApi=function(x,U){var B=x.shopSkuCode,w=x.apiDomain.replace("/v6/","")+"/v4/configurator/add-ons-linear";B="sku\x3d"+B+"\x26expand_details\x3dtrue";"true"===$("#isEppPage").val()&&(B+="\x26store_id\x3d"+$("#eppCompanyCode").val());
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 p=0;for(C in e.expanded.product_tags){p++;var k=e.expanded.product_tags[C];x.addOnCategoryList.push({category:{display_name:!x.useAddonV2&&k.formatted_sales_pitch[0]?k.formatted_sales_pitch[0]:k.sales_pitch[0],id:k.id,product_tag:k.product_tag_name,
key:p,order:p,productList:[]}})}p=[];for(var A in e.products)for(var ca in x.addOnInfoTemp)e.products[A].sku===x.addOnInfoTemp[ca].discounted_sku&&p.push(e.products[A]);for(var K in x.addOnCategoryList)for(var D in p)for(var g in p[D].product_tags)x.addOnCategoryList[K].category.product_tag===p[D].product_tags[g]&&x.addOnCategoryList[K].category.productList.push(p[D]);p=x.careAndWarrantySearchList=[];g=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 T in E)"ecom"!==E[T].sku_source&&p.push(E[T].discounted_sku)}if(K.isNotEmptyArray(ca.care.list)){T=ca.care.list;for(var R in T)"ecom"!==T[R].sku_source&&g.push(T[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 ea in e)e[ea].discounted_sku&&A.push(e[ea].discounted_sku)}},error:function(e){e.responseJSON&&e.responseJSON.message&&(e=e.responseJSON.message,confirmPopup(e))},complete:function(){var e=x.commonApiModel,p=x.addOnApiList,k=x.util;x.checkingAddOnSearchFlag=
!0;x.finishedAddOn=!0;x.checkingGiftSearchFlag=!0;if(p.careAndWarranty&&k.isNotEmptyArray(p.careAndWarranty.list))for(var A in p.careAndWarranty.list){var ca=p.careAndWarranty.list[A],K=ca.sku;x.totalSkuList[K]&&$.extend(ca,x.totalSkuList[K])}if(p.care&&k.isNotEmptyArray(p.care.list))for(var D in p.care.list)A=p.care.list[D],ca=A.discounted_sku,x.totalSkuList[ca]&&$.extend(A,x.totalSkuList[ca]);if(p.addOn&&k.isNotEmptyArray(p.addOn.list))for(var g in p.addOn.list)D=p.addOn.list[g],A=D.discounted_sku,
x.totalSkuList[A]&&$.extend(D,x.totalSkuList[A]);if(p.addOn&&k.isNotEmptyArray(p.gift.list))for(var C in p.gift.list)k=p.gift.list[C],g=k.discounted_sku,x.totalSkuList[g]&&$.extend(k,x.totalSkuList[g]);e.waitSearchAPI(x,U);x.util.afterTotalAPI(x,U)}})};W.prototype.settingWishList=function(x,U){var B=x.drawObj,w=B.wishList,e=$.cookies.get("jwt_"+x.countryIsoCode,{domain:".samsung.com"}),p=x.stockLevelStatus,k=x.proudctPriceInfo.salePrice,A=commonLoginCheck(),ca=x.apiDomain,K=x.pdMultiLanguageYN,D=
x.pdHrefLang,g=x.view,C=-1<$("#shopIntegrationFlag").val().indexOf("GPv2"),E=x.util;w.stockLevelStatus=p;w.price=k;w.moCode=x.shopSkuCode?x.shopSkuCode:x.modelCode;w.moName=x.modelName;w.labelText=Granite.I18n.get("add wishlist")+" : "+x.modelName;w.targetId="#wishlist-popup";w.contentWrapperClass="NOORDER"===p||"LEARNMORE"===p?"js-btn-wishlist js-not-for-sale-wishlist tg-add-wishlist js-learnmore":k?A?"s-btn-wishlist js-select-wishlist tg-add-wishlist":"s-btn-wishlist js-create-wishlist tg-add-wishlist":
"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(T){"Y"===K&&T.setRequestHeader("x-ecom-locale",D)},
success:function(T,R,y){R=x.drawObj.wishList;y=R.moCode;if(T)for(var ea=0;ea<T.length;ea++){var va=T[ea];if(!1===va.deleted&&va.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(T,R,y){},complete:function(){var T=x.util;x.view.productWishListDraw(x.drawObj);T.settingWishlistTagging(x,U)}})):(g.productWishListDraw(B),E.settingWishlistTagging(x,
U)):-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg")?A?this.settingWishListOldHybris(x,U):(g.productWishListDraw(B),E.settingWishlistTagging(x,U)):"Hybris"==$("#shopIntegrationFlag").val()&&x.isOldHybrisWishlist&&(A?this.settingWishListOldHybris(x,U):(g.productWishListDraw(B),E.settingWishlistTagging(x,U)));if(null===e||""===e)return!1};W.prototype.settingWishListOldHybris=function(x,U){var B="",w=""==x.multistoreSiteCd||"ae"!=x.siteCodeWithEpp&&"ae_ar"!=x.siteCodeWithEpp?!1:!0;$("#shopParmLang").val()&&
(B="\x26lang\x3d"+$("#shopParmLang").val());var e=$("#newHyvStoreDomain").val(),p=e+"/tokocommercewebservices/v2/"+x.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productCode\x3d"+x.modelCode+B;w&&(p=e+"/tokocommercewebservices/v2/"+x.multistoreSiteCd+"/users/current/wishlist/default/product/exist?productCode\x3d"+x.modelCode+B);$.ajax({url:p,type:"GET",timeout:2E4,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(k){var A=x.drawObj.wishList;k&&-1<k.toLowerCase().indexOf("my wishlist")&&
(A.labelText=Granite.I18n.get("Remove wishlist")+" : "+x.modelName,A.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",A.isSelected="true")},error:function(k){},complete:function(){var k=x.util;x.view.productWishListDraw(x.drawObj);k.settingWishlistTagging(x,U)}})};W.prototype.settinsUpgradeTncData=function(x,U){U=[x.shopSkuCode];var B=x.apiDomain,w="";isEPP&&(w="\x26store_id\x3d"+$("#eppCompanyCode").val());var e="true"===$("#isEppPage").val()?
{withCredentials:!0}:{};$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:B+"/v1/tnc?display\x3dupgrade\x26tags\x3d"+U+w,type:"GET",dataType:"json",xhrFields:e,timeout:2E4,success:function(p,k,A){if(p){k=[];A=x.view;for(var ca=x.drawObj,K=0;K<p.length;K++){var D=p[K].data;!0===D.is_active&&k.push({index:K,dataId:D.id,text:D.content,isReadOnly:!0===D.read_only,is_required:!0===D.is_required})}ca.upgrade.embedData.tncData=k;A.upgradeDraw(ca)}}})};
W.prototype.offlineStockAjax=function(x){if("true"===$("#isEppPage").val()&&"true"==window.sg.epp.common.offlineFlag&&"OUTOFSTOCK"!=x.stockLevelStatus.toUpperCase()){var U=!1;"INSTOCK"===x.stockLevelStatus.toUpperCase()&&(U=!0);var B=!1;$.ajax({url:x.apiDomain+"/tokocommercewebservices/v2/"+$("#eppCompanyCode").val()+"/users/current/agentStockInfo?productcodes\x3d"+x.shopSkuCode,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(w){w=w.inventory_info;
null!=w&0<w.length&&1<=w[0].quantity_available&&(B=!0)},error:function(w,e,p){},complete:function(){if(U||B)$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-teal"),$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-orange");U&&B?($("#offlineBadgeSpan").html(Granite.I18n.get("Available In-Store")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-orange"),x.isStorePopup=!0):U&&!B&&($("#offlineBadgeSpan").html(Granite.I18n.get("Doorstep Delivery")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-teal"))}})}};
W.prototype.fetchNewOfferFormat=function(x){var U=$.trim(x.offerText||"");if(""!==U){var B=$.trim(x.linkText||""),w=$.trim(x.url||"");x.newFormat={title:$.trim(x.title),offerText:U,linkEnabled:""!==B&&""!==w,linkText:B,linkUrl:w,imageUrl:$.trim(x.imageURL)};F.isDebug&&console.log(x)}};v.BuyingToolOpAjaxCommon=W;var aa=null;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 G=$.cookies.get("estoreSitecode",{domain:".samsung.com"});if("levant"===b.siteCode)r="jo";else if("levant_ar"===b.siteCode)r="jo_ar";else if("n_africa"===b.siteCode)r="ma";else{if(b=("ae"===b.siteCode||"ae_ar"===b.siteCode)&&G)b=(new Set("ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" "))).has(G);b&&(r=G)}return r}function h(b,r,G,P){G=b.multistoreSiteCd;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():siteCode;G=b.apiDomain+"/"+G+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+
b.modelCode;"py"===b.siteCode&&(G=b.apiDomain+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+b.modelCode);"Y"===b.hybrisJsonYn?$.ajax({url:G,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Z,d,M){u(Z,b,r,P)},error:function(){F(b,r,P)},complete:function(){k(b,r)}}):$.ajax({url:G,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584_0",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
success:function(Z,d,M){u(Z,b,r,P)},error:function(){F(b,r,P)},complete:function(){k(b,r)}})}function H(b,r,G,P){G=b.multistoreSiteCd;var Z="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G,d="ca"===G||"ca_fr"===G,M=b.apiDomain+"/"+Z+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+b.modelCode,t="";d&&(t=getSECACountryRegion(),M=M+"\x26country_region\x3d"+t);"tr"===G?(G=b.apiDomain+"/"+Z+"/dotcom/v2/products?sku\x3d"+b.modelCode,Z="true"===$("#isEppPage").val()?{withCredentials:!0}:
{},$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:G,xhrFields:Z,type:"GET",dataType:"xml",timeout:1E4,success:function(z){$(z).find("product").each(function(){var I=$(this).find("modelName").text(),X=$(this).find("url").text(),V=$(this).find("stockLevelStatus").text(),O=$(this).find("salesStatus").text(),S=$(this).find("price").text(),Q=$(this).find("priceDisplay").text();b.modelCode==I?"inStock"==V&&"true"==O&&(V=V.toUpperCase(),
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,P)):F(b,r,P)})},error:function(){F(b,r,P)},complete:function(){k(b,r)}})):"Y"===b.hybrisJsonYn?$.ajax({url:M,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(z,I,X){n(z,b,r,P)},error:function(){F(b,
r,P)},complete:function(){k(b,r)}}):$.ajax({url:M,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(z,I,X){n(z,b,r,P)},error:function(){F(b,r,P)},complete:function(){k(b,r)}})}function u(b,r,G,P){"0000"===b.resultCode&&r.modelCode===b.code?(r.hybrisApiData.shopAPI=b,b.apiType="realtime",W(b,r,G,P)):F(r,G,P)}function n(b,r,G,P){var Z=!1;"0000"===b.resultCode&&0<b.productDatas.length&&$.each(b.productDatas,
function(d,M){if(r.modelCode===M.productCode){r.hybrisApiData.shopAPI=M;r.blockEddDisplay=M.blockEddDisplay&&null!=M.blockEddDisplay?M.blockEddDisplay:"Y";r.blockPickupDisplay=0==M.blockPickupDisplay&&null!=M.blockPickupDisplay?"N":"Y";M.apiType="simple";v(M,r,G,P);W(M,r,G,P);if(r.useDeliveryMessage&&(d=M.aemAdditionalInfoTypes))for(var t=0;t<d.length;t++){var 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,G,P),r.oldHybrisSalesStatus=!1,r.isSENA&&(r.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null));"0000"===b.resultCode&&"0000"===b.productDatas[0].resultCode&&"ON_SALE"===b.productDatas[0].salesStatus?r.oldHybrisSalesStatus=!0:(r.oldHybrisSalesStatus=!1,r.isSENA&&(r.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null))}function v(b,r,G,P){if(b=b.aemAdditionalInfoTypes)for(P=0;P<b.length;P++){var Z=
b[P];if(Z){var d=Z.type.toLowerCase();"voucher"===d?(r.voucherdataHybris=Z.aemAdditionalInfos,r.hasVoucher=!0):"gift"===d?(r.giftdataHybris=Z.aemAdditionalInfos,r.hasGift=!0):"vdcombomessage"===d&&(r.vdcombodataHybris=Z.aemAdditionalInfos);d={};for(var M=0;M<Z.aemAdditionalInfos.length;d={$jscomp$loop$prop$util$346:d.$jscomp$loop$prop$util$346},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$346=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=[],O=[],S=[],Q=[];X&&null!=I.products&&0<I.products.length&&$.each(I.products,function(fa,la){var ma,ta,ya,sa,Na,pa="true"===(null==(ma=la.aemAdditionalInfoTypes[0])?void 0:null==(ta=ma.aemAdditionalInfos[0])?void 0:
ta.value)?null==(ya=la.aemAdditionalInfoTypes[0])?void 0:null==(sa=ya.aemAdditionalInfos[0])?void 0:null==(Na=sa.key)?void 0:Na.toUpperCase():"";ma=""!=la.imageUrl?!0:!1;ta=""==la.imageUrl?!0:!1;ya=la.imageUrl.replace("$ORIGIN_PNG$","");sa=la.stocklevel.toUpperCase();Na=" is-disabled";if("INSTOCK"==sa||"BACKORDERED"==sa||"PREORDER"==sa||"LOWSTOCK"==sa)Na="";""==r.bezelImageClass&&ma&&(r.bezelImageClass="pd-select-option__list--image-button");fa={index:fa,modelCode:la.modelcode,name:la.colorName,value:la.colorCode,
hasImage:ma,hasNotImage:ta,imageUrl:ya,disabledClass:Na};"BEZEL_COLOR"===pa?V.push(fa):"BEZEL_MODERN"===pa?O.push(fa):"BEZEL_BEVELLED"===pa?S.push(fa):"FREESTYLE_COLOR"===pa&&Q.push(fa)});r.noneTypeList=V;r.modernTypeList=O;r.beveledTypeList=S;r.freestyleList=Q;z.$jscomp$loop$prop$util$346.settingBezelOptionDraw(r,G)}}(d),null,{queryType:"ADD_COLOR_FOR_VD"})))}}}}function F(b,r,G){b.util.settingPriceCta(!1,b,r,G)}function W(b,r,G,P){var Z=r.util,d=r.drawObj.price.priceWrapper,M=r.priceCurrency;"true"===
$("#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,O;null==(V=r.view)||null==(O=V.hotDealBadgeDraw)||
O.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():"";O=null!=b.stockLevelStatusDisplay?b.stockLevelStatusDisplay:"";var S=null!=b.savingInformation?b.savingInformation:
"",Q="";Q=I="";"ca"===r.siteCode||"ca_fr"===r.siteCode?r.savingInformation=S:"br"===r.siteCode?(S="",S=null!=b.SavingInformation?b.SavingInformation:"",r.savingInformation=S,Q=null!=b.TaxPriceDisplay?b.TaxPriceDisplay:"",S=null!=b.price?b.price:"",r.taxPriceDisplay=Q,"OUTOFSTOCK"==V&&(r.taxPriceDisplay=S,r.savingInformation=""),Q=null!=b.savingValue?b.savingValue:"",r.savingValue=Q,b.installmentPlan&&b.installmentPlan.storeText&&(I=null!=b.installmentPlan.storeText?b.installmentPlan.storeText:""),
r.storeText=I):"ar"===r.siteCode&&(r.taxPriceDisplay=null!=b.TaxPriceDisplay?currencyComma(b.TaxPriceDisplay,"ars").replaceAll(" ARS",""):"");"LOWSTOCK"==V&&(r.stockLevelStatusDisplay=O);"INSTOCK"==V||"LOWSTOCK"==V?(V=b.flagPreOrder&&"Y"===b.flagPreOrder?"PREORDER":"INSTOCK","ca"!==r.siteCode&&"ca_fr"!==r.siteCode||"Y"!==b.reserveNowBtnYn||(r.hasReserveInStore=!0)):"OUTOFSTOCK"==V?(r.isOutOfStock=!0,"realtime"!==b.apiType||r.useStockAlert?(r.useStockAlert&&(r.skuId=b.skuId),V="OUTOFSTOCK"):V="NOORDER"):
""==V&&(V="NOORDER");r.stockLevelStatus=V;r.apiChangeStockStatus=V;r.hasPriceCta=!0;Z.settingPriceCta(r.hasPriceCta,r,G,P);"realtime"===b.apiType&&(t=deleteCurrency(b.price,M).trim(),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 fa;r.proudctPriceInfo.shippingCostPopup.deliveryModes=null==b?void 0:null==(fa=b.deliveryModes)?void 0:
fa.deliveryMode;var la;r.proudctPriceInfo.shippingCostPopup.deliveryServices=null==b?void 0:null==(la=b.deliveryServices)?void 0:la.deliveryService}else if(null==b?0:b.isFreeDeliveryCost)r.proudctPriceInfo.itsFreeDelivery=!0;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){P=b.aemAdditionalInfoTypes;for(var ma in P)if(Z=P[ma],"TRADEIN"===Z.type&&Z.aemAdditionalInfos&&0<Z.aemAdditionalInfos.length)for(var ta in Z.aemAdditionalInfos)M=Z.aemAdditionalInfos[ta],"TRADEIN_TEXT"===M.key&&M.value&&(r.proudctPriceInfo.salePriceFormatted=
M.value)}"simple"===b.apiType&&aa(r,G);d.info.summaryPrice=r.proudctPriceInfo.salePriceFormatted}function aa(b,r){var G=b.multistoreSiteCd,P="ae ae_ar jo jo_ar sa sa_en za ma eg".split(" "),Z="";"true"===$("#isEppPage").val()&&P.includes(G)&&(Z="/nocache");P="ca"===G||"ca_fr"===G;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G;G=b.apiDomain+"/"+G+"/servicesv2"+Z+"/leasingInfo?productCode\x3d"+b.modelCode;Z="";P&&(Z=getSECACountryRegion(),G=G+"\x26country_region\x3d"+Z);Z="true"===$("#isEppPage").val()?
{withCredentials:!0}:{};"Y"===b.hybrisJsonYn?$.ajax({url:G,type:"GET",cache:!0,crossDomain:!0,xhrFields:Z,dataType:"json",timeout:2E4,success:function(d){x(d,b,r)}}):$.ajax({url:G,type:"GET",cache:!0,crossDomain:!0,xhrFields:Z,dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_171",timeout:2E4,success:function(d){x(d,b,r)}})}function x(b,r,G){if(b&&0<b.length){var P="";if("se"==siteCode){var Z=$("\x3cdiv\x3e"),d=0;$.each(b,function(M,t){if("se-fairownPaymentMode"===t.paymentModeCode){var z=
t.months/12,I=t.months,X=Granite.I18n.get("Years"),V=Granite.I18n.get("months");X=z+" "+X+" ("+I+" "+V+")";var O=parseFloat(t.monthly);0===M&&(d=O);O<=d&&(d=O);t=$("\x3cdiv\x3e").addClass("checkbox-radio");X=$("\x3cinput\x3e").attr({type:"radio",name:"model","data-monthly":O,"data-renewalPeriod":X,"data-service-code":"SE-FAIROWN-TV-"+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");O=$("\x3cstrong\x3e").addClass("samsung-flex-popup__smc-monthly").text(" "+O+" kr/m\u00e5n");I=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");
S=$("\x3cspan\x3e").addClass("samsung-flex-popup__smc-price").text("");z.append(O,I,S);M.append(V,z);t.append(X,M);Z.append(t)}else P=t});console.log("## [SAMS UPGRADE] ## Msg: Renewal plans data from the Leasing API is: ",Z);0<$(".samsung-flex-popup__smc-renewal-plans-wrapper").length&&$(".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 P=b[0];r.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=P.monthly;r.proudctPriceInfo.monthlyPriceInfo.tenureVal=P.months;"hu"==siteCode&&(r.proudctPriceInfo.monthlyPriceInfo.interest=
P.interest);null!==P.monthly&&""!==P.monthly&&void 0!==P.monthly&&(r.drawObj.price.priceWrapper.isLeasingInfo=!0);r.util.totalAfterFunction(r,G)}b&&0<b.length&&($.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:""}),ea(r,G))}function U(b,
r,G,P){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,O=$("#tempTitle").val(),S=$("#shopIntegrationFlag").val(),Q=b.wtbUseYn,fa=b.wtbDispFuncUseYN,la=Z.price,ma="",ta={},ya="javascript:;",sa="",Na={},pa="javascript:;",a={};a.modelName=b.modelName;a.dataTtile=b.pdRemoveTagTxt;a.imgSrc=b.wtbSrc;a.iaCode=b.wtbSubTypeCode;a.dataModelCode=b.modelCode;ma=!0;"Hybris"===S||"Hybris-intg"===S?"N"!==globalShopInfo.shopServiceYN&&
b.oldHybrisSalesStatus||(ma=!1):"Hybris-new"===S?b.newHybrisSalesStatus||(ma=!1):"GPv2"===S&&b.accessoryDisabled&&(ma=!1);"mx"===siteCode&&(Q="N");M?t?(sa=ma="js-buy-now tg-buy-now",S=M=Granite.I18n.get("buy now"),pa=ya=t):(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Na.modelName=b.modelName,Na.dataTtile=b.pdRemoveTagTxt,Na.imgSrc=b.wtbSrc,Na.iaCode=b.wtbSubTypeCode,Na.dataModelCode=b.modelCode,ta=Na,"mx"===siteCode&&(S=M=Granite.I18n.get("not for sale"),sa=ma="cta--disabled tg-not-for-sale")):
S?"Y"===Q?"Y"===fa&&"3rd"!==S?ma?(ta.moCode=b.shopSkuCode,ta.ctaType="add-cart",Na=ta,S=M=Granite.I18n.get("Add to cart"),sa=ma="js-buy-now tg-add-to-cart"):(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Na=ta=a):(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Na=ta=a):(S=M=Granite.I18n.get("not for sale"),sa=ma="cta--disabled tg-not-for-sale"):"Y"===Q?(sa=ma="js-cta-buy tg-wtb",S=M=Granite.I18n.get("Where to buy"),Na=ta=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(),f=$(this).find("url").text(),q=$(this).find("stockLevelStatus").text(),ba=$(this).find("salesStatus").text(),J=$(this).find("price").text(),ha=$(this).find("priceDisplay").text();
b.modelCode==m?"inStock"==q&&"true"==ba&&(q=q.toUpperCase(),b.stockLevelStatus=q,b.apiChangeStockStatus=q,b.hasPriceCta=!0,b.buyNowUrl=f,b.proudctPriceInfo.orignalPrice=J,b.proudctPriceInfo.orignalPriceFormatted=ha,b.drawObj.price.priceWrapper.hasPriceWrapper=!0,b.util.settingPriceCta(b.hasPriceCta,b,r,P)):F(b,r,P)})},error:function(){F(b,r,P)},complete:function(){k(b,r)}})):(S=M=Granite.I18n.get("not for sale"),sa=ma="cta--disabled tg-not-for-sale");"Y"===V&&"page-standard-pd"===O&&(""!==I&&null!==
I?(pa=ya=I,ta.ctaType="",Na=ta,sa=ma="configuratorUse-y"):sa=ma="cta--disabled configuratorUse-y",""!==X&&null!==X&&(S=M=X),la.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());la.isNotForSale=!la.configuratorEnabled&&S===Granite.I18n.get("not for sale");la.wtbAttr=d.getAttrCta(void 0,"javascript:;","_self","",{});la.containedAttr=d.getAttrCta(M,ya,"_self",ma,ta);la.anchorNaviAttr=d.getAttrCta(S,pa,"_self",sa,Na);d.settingForBusiness(b,r);G.productDraw(Z);d.settingPriceDraw(b,r);
b.commonApiModel.settingWishList(b,r);d.clickEventListener(b,r)}function B(b,r,G,P,Z,d){if(!L){L=!0;var M="br"===b.siteCode||"latin"===b.siteCode||"ar"===b.siteCode||"py"===b.siteCode;"true"===$("#isEppPage").val()&&(M="br"===b.siteCode||"latin"===b.siteCode||"ar"===b.siteCode||"py"===b.siteCode);M?e(b,P,Z):w(b,r,G,P,Z,d)}}function w(b,r,G,P,Z,d){var M="Hybris-new"===$("#shopIntegrationFlag").val(),t="",z=0,I=!0,X=!1,V="",O=!1,S={products:[]};if("id"==b.siteCode||"my"==b.siteCode)V=$("#delivery-zipcode").val();
if(b.modelCode){if(b.exchangeApiData&&b.exchangeApiData.exchangeFlag&&b.ceTradeUpPopup.isEnabled)if(CeTradeUpPopup.context.modelPackage)for(var Q=$jscomp.makeIterator(CeTradeUpPopup.context.modelPackage.models),fa=Q.next();!fa.done;fa=Q.next()){var la=fa.value;fa={productCode:la.modelCode,quantity:1};var ma="products["+z+"]";t+=ma+".productCode\x3d"+la.modelCode+"\x26"+ma+".quantity\x3d1";la.modelCode===CeTradeUpPopup.context.modelCode&&(fa.services=[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}],
la="\x26"+ma+".services[0]",t+=la+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+la+".provider\x3dEXCHANGE");S.products.push(fa);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,fa="\x26products["+z+"].services[0]",t+=fa+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+fa+".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 ta=0;V=b.globalServiceInfo;if(b.isMultiTradeIn){if(!b.drawObj.tradeInResult.priceOverFlag||"nl"!==siteCode&&"be"!==siteCode&&"be_fr"!==siteCode&&"sg"!==siteCode&&"vn"!==siteCode&&"my"!==siteCode&&"id"!==siteCode&&"fr"!==siteCode&&"de"!==siteCode&&"sa"!==siteCode&&"sa_en"!==siteCode&&"kz_kz"!==siteCode&&"kz_ru"!==siteCode&&
"cl"!==siteCode||(b.drawObj.tradeInResult.priceOverFlag=!1),b.drawObj.tradeInResult.list&&0<b.drawObj.tradeInResult.list.length&&!b.drawObj.tradeInResult.priceOverFlag){var ya=b.drawObj.tradeInResult.list;ta=ya.length;$.each(ya,function(m,f){var q=f.services;if(null==q.tradeInType||void 0==q.tradeInType)q.tradeInType="IMEI";$.each(q.tradeInAdditionalInfo,function(ha,qa){"sg"!=siteCode||"compasia.imei"!=qa.key||isNotEmpty(qa.value)||(qa.value=q.imeiKey);isNotEmpty(q.imeiKey)||qa.key!=q.tradeInType||
(q.imeiKey=qa.value)});t+="\x26products[0].services["+m+"].serviceCode\x3d"+encodeURIComponent(q.tradeinId);t+="\x26products[0].services["+m+"].additionalInfos[0].key\x3d"+q.tradeInType;t+="\x26products[0].services["+m+"].additionalInfos[0].value\x3d"+q.imeiKey;f={serviceCode:q.tradeinId,additionalInfos:[{key:q.tradeInType,value:q.imeiKey}]};var ba=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&ba&&(f.serviceCode=q.tradeinId,f.provider=q.provider,f.additionalInfos.push({key:"deviceSku",
value:q.tradeinId}));"fr"==siteCode&&q.serviceType&&null!=q.serviceType&&void 0!=q.serviceType&&(f.serviceType=q.serviceTypeCode);oa(S,f);"au"==siteCode&&""!=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(ha,qa){t+="\x26products[0].services["+m+"].assessmentCriteria["+ha+"].name\x3d"+qa.name;t+="\x26products[0].services["+
m+"].assessmentCriteria["+ha+"].value\x3d"+qa.value;S.products[0].services[m].assessmentCriteria||(S.products[0].services[m].assessmentCriteria=[]);S.products[0].services[m].assessmentCriteria.push({name:qa.name,value:qa.value})}));null!=q.tradeInAdditionalInfo&&void 0!=q.tradeInAdditionalInfo&&$.each(q.tradeInAdditionalInfo,function(ha,qa){t+="\x26products[0].services["+m+"].additionalInfos["+J+"].key\x3d"+qa.key;t+="\x26products[0].services["+m+"].additionalInfos["+J+"].value\x3d"+encodeURIComponent(qa.value);
S.products[0].services[m].additionalInfos.push({key:qa.key,value:qa.value});J++})})}}else if(V.tradein&&V.tradein.tradeinId&&!b.ceTradeUpPopup.isEnabled){ta=1;V.tradein.tradeInType||(V.tradein.tradeInType="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}]};fa=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&fa&&(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,f){t+="\x26products[0].services[0].assessmentCriteria["+
m+"].name\x3d"+f.name;t+="\x26products[0].services[0].assessmentCriteria["+m+"].value\x3d"+f.value;S.products[0].services[0].assessmentCriteria||(S.products[0].services[0].assessmentCriteria=[]);S.products[0].services[0].assessmentCriteria.push({name:f.name,value:f.value})}));V.tradein.tradeInAdditionalInfo&&$.each(V.tradein.tradeInAdditionalInfo,function(m,f){t+="\x26products[0].services[0].additionalInfos["+sa+"].key\x3d"+f.key;t=M?t+("\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+
f.value):t+("\x26products[0].services[0].additionalInfos["+sa+"].value\x3d"+encodeURIComponent(f.value));S.products[0].services[0].additionalInfos.push({key:f.key,value:f.value});sa++});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"my"===b.siteCode||"de"===b.siteCode&&!fa)X=!0,S.clearCart=!0;if("lt"===siteCode||"lv"===siteCode||"ee"===siteCode)V.tradein.cartAdditionalInfos&&0<V.tradein.cartAdditionalInfos.length&&(fa={key:"IMEI",value:V.tradein.imeiKey?V.tradein.imeiKey:""},Q.additionalInfos=
V.tradein.cartAdditionalInfos,Q.additionalInfos.unshift(fa)),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["+ta+"].serviceCode\x3d"+encodeURIComponent(V.care.discounted_sku),oa(S,{serviceCode:"true"===$("#isEppPage").val()?V.care.discounted_sku:-1<V.care.discounted_sku.indexOf("+")?V.care.discounted_sku:encodeURIComponent(V.care.discounted_sku)}),ta++);if(V.tariff&&V.tariff.tariffId){if(M){if("fr"===b.siteCode){var Na={};Na.planId=V.tariff.tariffId;Na.serviceType="SIM_PLAN";oa(S,Na)}else if(V.tariff&&V.tariff.modelCode&&V.tariff.simSkuCode)if(t+="\x26products[0].services["+
ta+"].planId\x3d"+V.tariff.modelCode,t+="\x26products[0].services["+ta+"].serviceCode\x3d"+V.tariff.simSkuCode,V.tariff.isBroadbandService){t+="\x26products[0].services["+ta+"].serviceType\x3dBROADBAND_PLAN";var pa=0<(V.tariff.tariffArr||[]).length?V.tariff.tariffArr[0]:{};t+=function(){var m=[],f;for(f in pa)m.push("\x26products[0].services["+ta+"].serviceAddress."+f+"\x3d"+encodeURIComponent(pa[f]));return m.join("")}();oa(S,{planId:V.tariff.modelCode,serviceCode:V.tariff.simSkuCode,serviceType:"BROADBAND_PLAN",
serviceAddress:pa})}else oa(S,{planId:V.tariff.modelCode,serviceCode:V.tariff.simSkuCode});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)X=!0}else Na={},"se"===b.siteCode||"no"===b.siteCode||"dk"===b.siteCode||"au"===b.siteCode?(Na.planId=V.tariff.tariffId,Na.serviceType="SIM_PLAN",S.clearCart=!0):Na.serviceCode=V.tariff.tariffId,t+="\x26products[0].services["+ta+"].serviceCode\x3d"+V.tariff.tariffId,$.each(V.tariff.tariffArr,function(m,f){t+=
"\x26products[0].services["+ta+"].additionalInfos["+m+"].key\x3d"+f.key;t+="\x26products[0].services["+ta+"].additionalInfos["+m+"].value\x3d"+f.value;Na.additionalInfos||(Na.additionalInfos=[]);Na.additionalInfos.push({key:f.key,value:f.value})}),oa(S,Na);ta++}V.combo&&0<V.combo.length&&$.each(V.combo,function(m,f){t+="\x26products["+z+"].productCode\x3d"+f.modelCode;t+="\x26products["+z+"].quantity\x3d1";S.products.push({productCode:f.modelCode,quantity:1});z++;("nl"===b.siteCode||"be"===b.siteCode||
"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)&&null!=f&&-1<f.modelCode.indexOf("SIM")&&(X=!0)});V.embedaddon&&0<V.embedaddon.length&&$.each(V.embedaddon,function(m,f){t+="\x26products["+z+"].productCode\x3d"+f;t+="\x26products["+z+"].quantity\x3d1";S.products.push({productCode:f,quantity:1});z++});var a=!1;V=!1;if(Z){if(z=0,t="",S.products=[],$.each(r,function(m,f){t+=(""===t?"":"\x26")+"products["+z+"].productCode\x3d"+f;t+="\x26products["+z+"].quantity\x3d1";S.products.push({productCode:f,
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 P||(I=!1);r=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl;void 0!==r&&("ae"===siteCode?r=r.replace("/ae/","/"+b.multistoreSiteCd+"/"):"ae_ar"===
siteCode&&(r=r.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")));var c=$("#storeWebDomain").val();r="";0==S.products.length&&(S={});d="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd;M?(t=encodeURI(t),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?(O=!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 f="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,q="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode||"fr"===siteCode,ba=$("#pd-leasing-1").prop("checked"),J=b.drawObj.between.nonPurchase.paymentModeCode;location.href=q&&ba&&null!==J?
c+"/"+f+"/cart/payment/"+J:m}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,p(m),"ca"!=siteCode&&"ca_fr"!=siteCode||P||Z||(window.scrollTo(0,0),$(".pdd16-step-buying").hide(),$(".pdd16-step-buying").html(N),$(".pdd16-step-buying").siblings().add($(".pdd16-step-buying").parent().siblings()).show(),$(".add-ons-evoucher-popup").hide(),b.util.clickEventListener(b,G))},error:function(m){$(".cm-loader").hide();L=!1;p(m)},complete:function(){}})):0==O&&("Y"===b.hybrisJsonYn?$.ajax({url:r,
type:"GET",data:{},dataType:"json",xhrFields:{withCredentials:!0},timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(m){if("0000"===m.resultCode||"0002"===m.resultCode)if(updateTotalCartCount(m.cartCount),I){var f=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl: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;f="true"===
$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":f;q&&ba&&null!==m?(q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+q+"/cart/payment/"+m):location.href=f}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,p(m)},error:function(m){$(".cm-loader").hide();L=!1;p(m)}}):(O="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:r,type:"GET",data:{},dataType:"jsonp",xhrFields:O,jsonp:"callback",
timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(m){if("0000"===m.resultCode||"0002"===m.resultCode)if(updateTotalCartCount(m.cartCount),I){var f=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,q="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode||"fr"===siteCode,ba=$("#pd-leasing-1").prop("checked");m=b.drawObj.between.nonPurchase.paymentModeCode;f="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+
"/cart":f;q&&ba&&null!==m?(q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+q+"/cart/payment/"+m):location.href=f}else $(".cm-loader").hide(),L=!1;else $(".cm-loader").hide(),L=!1,p(m)},error:function(m){$(".cm-loader").hide();L=!1;p(m)}}))):"ae"===siteCode||"ae_ar"===siteCode?("ae"===siteCode?b.cartUrl=b.cartUrl.replace("/ae/","/"+b.multistoreSiteCd+"/"):"ae_ar"===siteCode&&(b.cartUrl=b.cartUrl.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")),O=-1<
b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,O="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":O,location.href=O):(O=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,O="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":O,location.href=O)}function e(b,r,G){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"));G=b.multistoreSiteCd;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G;r=b.apiDomain+"/"+G+"/ng/p4v1/addCart?"+r;"ar"===b.siteCode||"br"===b.siteCode?location.href=b.apiDomain+"/"+b.siteCodeWithEpp+"/getServicesProduct?productCode\x3d"+b.modelCode:"py"===b.siteCode?location.href=
b.apiDomain+"/getServicesProduct?productCode\x3d"+b.modelCode:(G="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:r,type:"GET",data:{},dataType:"jsonp",xhrFields:G,jsonp:"callback",async:!1,timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(P){$(".cm-loader").hide();"0000"===P.resultCode?(updateTotalCartCount(P.cartCount),P=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,P="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+
"/"+$("#eppCompanyCode").val()+"/cart":P,location.href=P):(L=!1,p(P))},error:function(P){$(".cm-loader").hide();L=!1;p(P)}}))}function p(b){var r=Granite.I18n.get("We're sorry, an error occurred.");"ae"===$("#siteCode").val()||"ae_ar"===$("#siteCode").val()?b&&b.products&&0<b.products.length&&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 G=b.drawObj,P=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 O=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 fa=Granite.I18n.get("Learn more");S.layerTarget="upgradeLearnMorePopup";M=Granite.I18n.get("Samsung Upgrade");if("es"==V){if("INSTOCK"==O||"LOWSTOCK"==O)Q=!0}else Q=!0;Q&&(V={"class":"hybris-es-yes",text:Granite.I18n.get("Samsung Upgrade")},
O={"class":"hybris-es-no",text:Granite.I18n.get("No, thanks"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"},d=d.getAttrCta(fa,"javascript:;","_self","",S,""),G.upgrade={hasComponent:t,isEmbededType:!1,isNotEmbededType:!0,title:M,learnMoreCta:d,description:z,yesAttr:V,noAttr:O,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";fa="";"it"==I||"my"==I?(M="javascript:;",S="",fa="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");O="";Q={};var la={},ma={};Z&&($(r.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),Q="ch"==I||"ch_fr"==I?{learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),
learnMoreHref:M,learnMoreTarget:S,learnMoreTargetPopup:fa}:{learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:M,learnMoreTarget:S,learnMoreTargetPopup:fa},V=Granite.I18n.get("VD_Extended Warranty_Title"),O=Granite.I18n.get("VD_Extended Warranty_Description"),"nz"!=I||"vd"!=d&&"da"!=d||(V=Granite.I18n.get("VD_Extended Warranty_Title",null,"b2c_"+d),O=Granite.I18n.get("VD_Extended Warranty_Description",null,"b2c_"+d)),la={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},
ma={text:Granite.I18n.get("VD_Extended Warranty_NO")});t.warrantyVd={hasComponent:Z,title:V,learnMoreCta:Q,description:O,yesAttr:la,noAttr:ma,subText:""};z.productAddOnWarrantyVd(t)}I=b.util;b.useDeliveryMessage&&I.settingDeliveryMessage(b,r);b.commonApiModel.settingWishList(b,r);P.productDraw(G);X.totalReinit(b,r);X.gpHybrisGlobalEndPoint(b,r)}function A(b,r){var G=b.multistoreSiteCd;G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():G;var P="";P=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():
$("#storeDomain").val();var Z="";$("#shopParmLang").val()&&(Z="\x26lang\x3d"+$("#shopParmLang").val());$.ajax({url:P+"/tokocommercewebservices/v2/"+G+"/products/"+b.modelCode+"/offers?fields\x3dSIMPLE_INFO"+Z,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},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,O=V.siteCode,S=V.drawObj.offer,Q=V.financingUrl,fa=R(I,V).iconAlt,la="offer-emi emi-index-"+X,ma=[];V.financingEligible=!0;Q&&(V.emiCalculatorUrl=Q);I.description&&ma.push(I.description);if(0<ma.length){var ta=Q=null,ya=null;"id"!==O&&"ee"!==O&&"lt"!==O&&"lv"!==O&&"pl"!==
O||!I.description||(Q=I.description);if("hu"===O||"sg"===O||"my"===O||"nz"===O||"vn"===O||"th"===O)for(V.promotionFinancingFlag=!0,V=0;V<ma.length;V++){var sa=ma[V].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>sa.indexOf("\x3ca")?"in"===O?(ta=sa,ya={label:Granite.I18n.get("Learn more"),labelAnalytics:sa.toLowerCase().replace(/"/g,"")}):(ya={labelAnalytics:sa.toLowerCase().replace(/"/g,"")},ya.label="id"===O||"ee"===O||"lt"===O||"lv"===O||"pl"===O?Granite.I18n.get("Learn more"):sa):ta=sa}else ta=
ma.join("");S.promotionFinance.push({offerIndex:X,title:"finance",hasItem:!0,item:{contentWrapperClass:la,iconAttr:{alt:fa},description:{text:Q,hasDescription:null!=Q},emiText:ta,cta:ya,hasCta:null!=ya},newFormat:I.newFormat})}}else"BOGO"===X?(d+=1,g(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 G=b.multistoreSiteCd,P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
G,Z="";Z=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():$("#storeDomain").val();var d="";$("#shopParmLang").val()&&(d="\x26lang\x3d"+$("#shopParmLang").val());G=b.pdChildModelCnt;var M=b.drawObj.offer;if(0<G)for(var t=0,z={},I=0;I<G;z={$jscomp$loop$prop$childCode$348:z.$jscomp$loop$prop$childCode$348,$jscomp$loop$prop$childSet$349:z.$jscomp$loop$prop$childSet$349},I++){var X=I+1+"";10>I+1&&(X="0"+(I+1));X=document.querySelector("#pdChidleModel"+X);z.$jscomp$loop$prop$childCode$348=X.dataset.code;
z.$jscomp$loop$prop$childSet$349={code:z.$jscomp$loop$prop$childCode$348,name:X.dataset.name,main:X.dataset.main,displayName:X.dataset.displayName};b.pdChildModelList.push(z.$jscomp$loop$prop$childSet$349);(function(V){return function(O){$.ajax({url:Z+"/tokocommercewebservices/v2/"+P+"/products/"+V.$jscomp$loop$prop$childCode$348+"/offers?fields\x3dSIMPLE_INFO"+d,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,success:function(S,Q,fa){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$349.code,displayName:V.$jscomp$loop$prop$childSet$349.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())K(S.benefits,b,r,"child",t);else{S=0;for(var la in Q){fa=Q[la];b.commonApiModel.fetchNewOfferFormat(fa);var ma=fa.type?fa.type.toUpperCase():"";"INSTALLMENT"!==ma&&"COMBO"!==ma&&(S+=1);
if(4>S){var ta=t+""+S;"BOGO"===ma?g(fa,ta,b,r,"child",t):ma||E(fa,ta,b,r,"child",t)}}la=b.drawObj.offer.childList;0===S&&la.splice(ord)}t=M.childList.length}},error:function(S,Q,fa){},complete:function(){D(b,r,O+1)}})}})(z)(I)}}function K(b,r,G,P,Z){Z=void 0===Z?0:Z;if(b&&0<b.length){var d=0,M;for(M in b){var t=b[M],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"===P?T(t,Z+""+d,r,G,"child",Z):T(t,M,r,G));else if("child"!=P&&"INSTALLMENT"===z){z=void 0;I=M;var X=r,V=X.siteCode,O=X.drawObj.offer,S=X.financingUrl,Q="offer-emi emi-index-"+I,fa=[];X.financingEligible=!0;S&&(X.emiCalculatorUrl=S);t=$.trim(t.description||"");""!==t&&fa.push(t);if(0<fa.length){S=null;var la=!1,ma=!1,ta=!1,ya=null;if("hu"===V||"sg"===V||"my"===V||"nz"===V||"vn"===V||"th"===V)for(X.promotionFinancingFlag=!0,X=0;X<fa.length;X++){var sa=fa[X].replace("\x3cu\x3e",
"").replace("\x3c/u\x3e","");ya=sa;0>sa.indexOf("\x3ca")&&("in"===V?(ma=!0,S={label:Granite.I18n.get("Learn more")}):"id"===V||"ee"===V||"lt"===V||"lv"===V||"pl"===V?(ma=!0,S={label:Granite.I18n.get("Learn more")}):la=!0)}else ta=!0,ya=fa.join("");ta||(V=62,ma&&(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;")));O.promotionFinance.push({offerIndex:I,title:"finance",
hasItem:!0,item:{contentWrapperClass:Q,offerTooltip:z,emiText:ya,cta:S,hasCta:ma,hasLink:la,hasDesc:ta}})}}}"child"===P&&0===d&&r.drawObj.offer.childList.splice(Z)}}function D(b,r,G){r=b.pdChildModelCnt;var P=!1;b.pdPackageYn?r==G&&(P=!0):P=!0;P&&(b.drawObj.offer.headline=Granite.I18n.getVar("Offer","ux2"),b.view.productOfferDraw(b.drawObj),window.sg.components.PDbuyingToolNew.reInit())}function g(b,r,G,P,Z,d){P=G.drawObj.offer;"child"===(void 0===Z?"product":Z)&&(P=G.drawObj.offer.childList[void 0===
d?0:d]);var M=b.image&&b.image.url?b.image.url:"";Z=G.priceCurrency;d=G.pdTimeformatFront;M=G.util.getImgAttr(M,M,b.image&&b.image.altText?b.image.altText:"",{classWapper:"image__main responsive-img"});var t=[],z="";b.description&&t.push({text:b.description});b.startDate&&b.endDate&&!G.isSENA&&"hu"!=G.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]);G=currencyComma(0,Z);b={offerIndex:r,title:"bogo",
hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),description:{hasDescription:!0,main:t,date:z},imgAttr:M,price:{hasPrice:!0,price:0,original:"",save:"",now:G}},newFormat:b.newFormat};P.bogo=b}function C(b,r,G){var P=G.index;if(P){if(null==P||""==P)P=0}else P=0;r=G.sharedObj;var Z=r.drawObj,d=Z.offer.combo,M=r.util,t=r.view;G=G.promotion;var z=r.pdTimeformatFront,I=R(G,r),X="",V="";I.promoIconFlag&&(V=I.iconImgName);I=[];G.description?I.push({text:G.description}):
I.push({text:Granite.I18n.get("Select combo bundle option")});var O={layerTarget:"shopComboPopup"};O.comboIdx=r.globalComboData.length;M=M.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",O,"");G.startDate&&G.endDate&&!r.isSENA&&"hu"!=r.siteCode&&(X=z?dateFormat(G.startDate.split("T")[0],z)+" ~ "+dateFormat(G.endDate.split("T")[0],z):G.startDate.split("T")[0]+" ~ "+G.endDate.split("T")[0]);P={offerIndex:P,title:"compoBundle",comboIndex:r.globalComboData.length,
hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:V,description:{hasDescription:!0,main:I,date:X},learnMoreCta:M},newFormat:G.newFormat};d.push(P);t.productOfferDraw(Z,!0);b=window.sg.components.dynamic.comboPopup.setComboData(b.totalResult);r.globalComboData.push(b)}function E(b,r,G,P,Z,d){P=G.drawObj.offer;"child"===(void 0===Z?"product":Z)&&(P=G.drawObj.offer.childList[void 0===d?0:d]);G=R(b,G);Z="offer-promotion promotion-index-"+r;d=[];var M=null;b.description&&d.push(b.description);
G.promoIconFlag&&(M="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+G.iconImgName+".svg");var t=null;if(!b.newFormat){var 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})}P.promotionMessage.push({offerIndex:r,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:Z,isIcon:!0,iconAttr:{src:M,alt:G.iconAlt},description:{hasDescription:!0},rowText:t},
newFormat:b.newFormat})}function T(b,r,G,P,Z,d){P=G.drawObj.offer;var M="offer-promotion promotion-index-"+r;"child"===(void 0===Z?"product":Z)&&(P=G.drawObj.offer.childList[void 0===d?0:d]);$.trim(b.offerText||"");G=$.trim(b.title||"");""==G&&(G=$.trim(b.description||""));Z=$.trim(b.linkText||"");b=$.trim(b.url||"");"tw"!==siteCode&&""!==b&&(Z=Granite.I18n.get("Learn more"));if(""!==G){d=62;""!==Z&&""!==b&&(d=53);if(G.length>d){var t=G;G=ellipsize(G,d)}G=G.replace(/</g,"\x26lt;");G=G.replace(/>/g,
"\x26gt;");null!=t&&(t=t.replace(/</g,"\x26lt;"),t=t.replace(/>/g,"\x26gt;"));P.promotionMessage.push({offerIndex:r,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:M,offerTitle:G,offerTooltip:t,linkEnabled:""!==b,linkText:Z,linkUrl:b}})}}function R(b,r){var G=r.promotionImgType?r.promotionImgType.split(","):[];r="";var P=!1,Z="";if(b.image&&(r=b.image.altText,Z=b.image.url))for(b=$jscomp.makeIterator(G),G=b.next();!G.done;G=b.next())if(G.value===Z){P=!0;break}return{iconAlt:r,promoIconFlag:P,
iconImgName:Z}}function y(b,r){if(b.hybrisApiData.shopAPI&&b.hybrisApiData.shopAPI.supportedAvailableServices){b=$jscomp.makeIterator(b.hybrisApiData.shopAPI.supportedAvailableServices);for(var G=b.next();!G.done;G=b.next())if(G.value.toUpperCase()===r.toUpperCase())return!0}return!1}function ea(b,r){r=b.siteCode;var G=b.drawObj,P=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"));G.between={hasComponent:z,purchase:{text:M},nonPurchase:{text:d,dataLeaseing:"",tenureUnit:t,tenureValue:0,monthlyValue:b,paymentValue:Z}};P.betweenDraw(G)}}function va(b,r,G){var P=b.pdSearchDomain+"/",Z="Hybris-intg"===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:P+M+("/"+z+"/product/card/detail/")+X,type:"GET",data:Z,dataType:"json",cache:!0,async:!0}).done(function(O,S,Q){S=b.modelCode;Q=b.priceCurrency;V=!0;if(O&&O.response&&O.response&&O.response.resultData&&O.response.resultData.productList){O=O.response.resultData.productList;var fa=b.siteCode,la;for(la in O){var ma=O[la].modelList;if(ma)for(var ta in ma){var ya=ma[ta],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"===fa||"nz"===fa||"ae"===
fa||"my"===fa||"sg"===fa||"ca"===fa||"ca_fr"===fa||"it"===fa||"se"===fa||"dk"===fa||"fi"===fa||"no"===fa||"es"===fa||"pt"===fa||"th"===fa||"tw"===fa||"ru"===fa||"ch"===fa||"ch_fr"===fa)&&(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),O[la].productGroupId&&(sa=r.buyingTool.find("reevoo-reviewable-badge"),0<sa.length&&sa.attr("sku","series:"+O[la].productGroupId)),ya.configuratorUrl&&(b.buyNowUrl=ya.configuratorUrl))}}}}).fail(function(O){console.log(O)}).always(function(O){G(b,r,V)})}function ra(b,r,G){G=b.view;var P=b.currentUrl,Z=b.siteCode,d=("Y"===
b.isCart||"Hybris-intg"===b.apiFlag)&&"Y"!==b.oldProductYn;Z="br"===Z||"latin"===Z||"ar"===Z||"py"===Z;var M=b.util;$(r.buyingToolOptCheckDealerStock).remove();d?Z?h(b,r,G,P):H(b,r,G,P):(U(b,r,G,P),M.totalReinit(b,r),M.gpHybrisGlobalEndPoint(b,r))}function oa(b,r){b.products[0].services||(b.products[0].services=[]);b.products[0].services.push(r)}var da=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),na=function(){};na.prototype.productAjax=function(b,r){var G=l(b,r),P=b.siteCode;G&&(P=
G);b.multistoreSiteCd=P;va(b,r,ra)};na.prototype.callAddToCartCta=function(b,r,G,P,Z,d){B(b,r,G,P,Z,d)};na.prototype.callCheckOutCta=function(b,r,G,P,Z,d){B(b,r,G,P,Z,d)};var L=!1,N=$(".pdd16-step-buying").html();da.BuyingToolOpAjaxHybris=na})();
(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,g=k.pdHrefLang,C=k.pdMultiLanguageYN,E=k.siteCode,T=$.cookies.get("jwt_"+k.countryIsoCode,{domain:".samsung.com"}),R=[],y=k.priceCurrency,ea=[],va=0,ra=0,oa=!1,da="";l(k);for(da=0;da<ca.length;da++){var na=ca[da];50<=va&&(va=0,R.push(ea),ea=[]);ea.push(na);va++;da==ca.length-1&&R.push(ea)}for(ca=0;ca<
R.length;ca++){ea="";if("uk"==E||"de"==E)ea=",carrier_attributes";"fr"===E&&(ea+=",payment_methods");"in"===E&&(ea+=",delivery_modes");da="skus\x3d"+R[ca].join(",")+"\x26component\x3doffers,promotion,promotion_price"+ea+"\x26count\x3d0";"true"===$("#isEppPage").val()&&(da+="\x26store_id\x3d"+$("#eppCompanyCode").val());$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:D+"/v4/configurator/syndicated-product-linear",data:da,type:"GET",
dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(L){T&&L.setRequestHeader("x-ecom-jwt",T);"Y"===C&&L.setRequestHeader("x-ecom-locale",g)},success:function(L,N,b){if(L&&0!==L.total_number_of_products){N=k.syndiApiData;oa=!0;for(var r in L.products){var G=L.products[r];G.price_info&&G.price_info[0]&&(b=G.price_info[0].msrp_price,G=G.price_info[0].sale_price,b&&(b.formatted_value=currencyComma(b.value,y)),G&&(G.formatted_value=currencyComma(G.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(N.products,L.products);$.extend(N.expanded,L.expanded)}},error:function(L,N,b){},complete:function(){ra++;R.length==ra&&K(k,A,oa)}})}}function H(k,A,ca){var K=k.setComboPopupData,D=ca.offer.combo,g=k.util,C=k.view,E=0;if(k.comboFlag){for(var T=0;T<K.length;T++){var R=
K[T];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 ea={layerTarget:"shopComboPopup"};ea.comboIdx=E;ea=g.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",ea,"");R={title:"compoBundle",comboIndex:T,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:R.iconImgName,description:{hasDescription:!0,main:y,date:R.comboDate},learnMoreCta:ea}};D.push(R);
E++}C.productOfferDraw(ca,!0)}K=k.samsungCareFlag;D=k.warrantyFlag;g=k.addonsFlag;C=k.giftFlag;E=k.newAssuredBuyBackFlag;T=k.pdProductTypeCheckYn;R=k.util;y=k.commonApiModel;ea=k.addOnInfoTemp;var va=k.addOnGift.products,ra=k.samsungCareList,oa=k.newAssuredBuyBackList,da=k.addOnInfo,na=k.afterEvent,L=k.bogoFlag,N=k.pdSoftBundleUseYn,b=k.bogoModelList,r=k.pdBogoUseYn,G={},P={},Z={},d={},M={};k.checkingBogoSearchFlag=!0;k.checkingComboSearchFlag=!0;L&&"N"!==r&&"Y"!==N&&0<b.length&&(k.bogoSearchList=
k.bogoModelList);if(K||D)"Y"===T?R.isNotEmptyArray(da)?G={title:"careAndWarranty",list:da}:na.setMainCallBack("careAndWarranty",null):R.isNotEmptyArray(ra)?P={title:"care",list:ra}:na.setMainCallBack("care",null);g&&(Z={title:"addOn",list:ea},k.hasAddOns=!0);C&&(d={title:"addOnGift",list:va});E&&(M={title:"newAssuredBuyBack",list:oa});K||D||g||C||E?(k.addOnApiList={careAndWarranty:G,care:P,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;ea=k.pdSmcType;C=k.util;D=k.view;va=k.careLearnMoreUrl;na=k.samsungCareSubText;da=k.samsungCarePackFlag;E="_self";T="";R="javascript:;";y={};g=[];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||da)"type2"===ea?k.warrantyFlag=!0:(ea=da?Granite.I18n.get("Samsung CarePack"):
Granite.I18n.get("Samsung Care+"),"fr"!==siteCode?va&&(T=Granite.I18n.get("Learn more"),R=va,E="_blank"):(T=Granite.I18n.get("Learn more"),y.layerTarget="hubbleCareinfoPopup"),k.samsungCareSubText?(va="temp","de"===siteCode?"Y"!==ra?g.push({target:".pd-select-option__desc",text:k.samsungCareSubText}):g.push({target:".pd-select-option__desc",text:oa}):"in"===siteCode?(ra=k.samsungCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,""),g.push({target:".pd-select-option__discount-text",text:ra})):(ra=
"\x3cp\x3e"+k.samsungCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,"")+"\x3c/p\x3e",g.push({target:".pd-select-option__desc",text:ra}))):va=da?Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever. (Samsung CarePack)"):Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever."),ra={text:Granite.I18n.get("YES"),layerTarget:"hubbleCarePopup"},oa={text:Granite.I18n.get("NO"),eventType:"care"},C=C.getAttrCta(T,R,E,"",y,""),ca.care={hasComponent:K,
title:ea,learnMoreCta:C,description:va,yesAttr:ra,noAttr:oa,subText:"",rowText:g,itemSet:[]});D.productAddOnCare(ca);K=k.warrantyFlag;D=k.pdProductType;g=k.warrantyLearnMoreUrl;C=k.util;E=k.view;T=Granite.I18n.get("Extended Warranty");R="";y="_self";ea="";va="javascript:;";ra={};oa={};da={};na={};K&&($(A.buyingToolOptWarranty.get(0)).addClass("has-component"),g&&(ea=Granite.I18n.get("Learn more"),va=g,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."):
(T=Granite.I18n.get("Garantieverl\u00e4ngerung"),R="Verl\u00e4ngere die Standard-Herstellergarantie deines Samsung Ger\u00e4ts von 2 auf 5 Jahre"),da={"class":"js-extended-layer cm-s-popup-opener is-async js-warranty-pop",text:Granite.I18n.get("YES"),layerTarget:"extendedWarrantyPopup"},na={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"warranty"},ra=C.getAttrCta(ea,va,y,"",oa,""));ca.warranty={hasComponent:K,title:T,learnMoreCta:ra,description:R,yesAttr:da,noAttr:na,subText:""};
E.productAddOnWarranty(ca);g=k.util;A=k.view;K=k.newAssuredBuyBackFlag;D=k.newAssuredBuyBackList;C=Granite.I18n.get("Learn more");g=g.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:g,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 g=[];if(k.carrier_attributes){var C=k.carrier_attributes.carrier_plans?k.carrier_attributes.carrier_plans.skus:[],E=D.carrier_attributes&&D.carrier_attributes.carrier_plans?D.carrier_attributes.carrier_plans:{};D=D.carrier_attributes&&D.carrier_attributes.carriers?D.carrier_attributes.carriers:[];for(var T=[],R=0;R<C.length;R++){var 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 ea=0;ea<D.length;ea++){var va=y.carrier;y.carrier_id&&(va=y.carrier_id);if(va.toUpperCase()==D[ea].id.toUpperCase()){y.carrier=D[ea];break}}T.push(y);k.carrier_attributes.carrier_plans=T}if(null!=y&&null!=y.carrier&&null!=y.carrier.images.url&&""!==y.carrier.images.url){ea=!0;for(va=0;va<g.length;va++)y.carrier.images.url===g[va].images.url&&(ea=!1);
ea&&g.push(y.carrier)}}g.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<g.length)for(A=0;A<g.length;A++)C={src:"",alt:""},"de"===K?-1<g[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<g[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<g[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=g[A].images.url,C.alt=""):"uk"===K&&(C.src=g[A].images.url,C.alt=""),C.src&&k.push(C);ca.logoList=k}}}function n(k,A,ca,K){var D=A.siteCode,
g=A.pdProductType,C=A.stockLevelStatus,E=ca.delivery,T=A.deliveryYN,R=$.cookies.get("HA-Deeplink-Zipcode",{domain:".samsung.com"}),y=A.util,ea="",va="",ra=A.syndiApiData.expanded;if("in"===D&&k.delivery_modes&&0<k.delivery_modes.length){k=k.delivery_modes;for(var oa=[],da=0;da<k.length;da++){var na=ra.delivery_modes[k[da]];if(na.custom_properties&&na.custom_properties.delivery_mode_type&&"priority delivery"===na.custom_properties.delivery_mode_type&&na.time_slot_attributes&&na.time_slot_attributes.slot_code&&
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 N=na.cut_off_minutes;2>N.length&&(N="0"+N);var b={};b.idx=da;na.slot_code.includes("SAME")?b.time=Number(L+N):b.time=Number(String(Number(L)+24)+N);oa.push(b)}}if(0<oa.length&&null!==E.time){na=E.time.split("GMT")[0].trim().slice(-8);da=Number(na.split(":")[0])+5;na=Number(na.split(":")[1])+30;59<na&&(na-=30,da+=1);2>String(na).length&&(na="0"+String(na));
2>String(da).length&&(da="0"+String(da));na=Number(String(da)+String(na));oa.sort(function(G,P){return G.time-P.time});da="";for(var r in oa)if(na<oa[r].time){da=oa[r].idx;break}""!==da&&(ea=ra.delivery_modes[k[da]].time_slot_attributes,r=Number(ea.cut_off_hour),oa="",12>r?oa="AM":(oa="PM",12<r&&(r-=12)),na="",ea.slot_code.includes("NEXT")?na="Next day":ea.slot_code.includes("SAME")&&(na="Same day"),ea="Order by "+r+" "+oa+" and get "+na+" delivery.*",ra.delivery_modes[k[da]].images.large_image.desc&&
(va=ra.delivery_modes[k[da]].images.large_image.desc.replaceAll("\n","\x3c/br\x3e")),E.isPriorityDelivery=!0)}}if("in"===D||"id"===D&&"PHONE"===g||"us"===D&&T)if(E.hasComponent=!0,E.headline=Granite.I18n.get("Delivery Detail"),E.label=Granite.I18n.get("Enter Zipcode"),E.cancelText=Granite.I18n.get("Delete"),E.enterText=Granite.I18n.get("Search"),"id"===D?E.inputAttr.maxlength="5":"us"===D?(E.inputAttr.maxlength="5",R&&(E.inputAttr.value=R,A.view.deliveryDraw(ca),y.deliveryGetApiData(A,K))):(E.inputAttr.maxlength=
"6",""!==ea&&(E.priorityDeliveryText=ea),""!==va&&(E.priorityDeliveryTooltip=va)),"NOORDER"===C||"OUTOFSTOCK"===C)E.labelClass="text-field--disabled",E.ctaClass="cta--disabled",E.inputAttr.disabled="true"}function v(k,A,ca,K){ca=A.samsungCareBadgeList;K=A.samsungCareList;var D=A.reCallSyndi,g=A.multiCareYn,C=A.util;if("Y"!==A.pdProductTypeCheckYn){var E=k.discount_description;if(null!==E&&0<E.length)for(var T=0;T<E.length;T++)for(var R=0;R<E[T].discounted_skus.length;R++){var y={},ea=E[T].discounted_skus[R],
va=ea.sku;C.merge(A.totalSkuList,va,ea);y.discounted_sku=va;K.push(y);A.samsungCareFlag=!0;"Y"===g&&D.push({sku:va})}A.samsungCareFlag&&k.formatted_sales_pitch&&0<k.formatted_sales_pitch.length&&(A.samsungCareSubText=k.formatted_sales_pitch);for(var ra in k.product_tag_order)ca.push(k.product_tag_order[ra]);ca.sort(function(oa,da){return oa.product_rank-da.product_rank})}}function F(k,A,ca,K,D){var g=A.pdTimeformatFront;ca=A.pdProductTypeCheckYn;K=A.util;D=k.product_tag_order;var C=A.addOnInfoTemp,
E=A.reCallSyndi,T="";k.start_date&&k.end_date&&(T=""!==g?dateFormat(k.start_date.split("T")[0],g)+" ~ "+dateFormat(k.end_date.split("T")[0],g):k.start_date.split("T")[0]+" ~ "+k.end_date.split("T")[0]);A.addonDate=T;g=k.discount_description;if(null!==g&&0<g.length)for(var R=0;R<g.length;R++)for(var y=g[R],ea=0;ea<y.discounted_skus.length;ea++){var va={},ra=y.discounted_skus[ea],oa=!1,da=ra.sku;va.discounted_sku=da;ra.offer_type=A.hasVoucher?"CONFIGURATORADDONVOUCHER":"CONFIGURATORADDON";ra.addonDate=
T;ra.product_formatted_sales_pitch=k.formatted_sales_pitch;K.merge(A.totalSkuList,da,ra);if(!A.hasVoucher&&D&&D[da]&&D[da].product_tags&&0<D[da].product_tags.length)for(var na=0;na<D[da].product_tags.length;na++)"GIFT"===D[da].product_tags[na].toUpperCase()&&(A.giftDrawData.date=T,A.giftDrawData.dec=k.formatted_sales_pitch,!k.formatted_sales_pitch&&k.sales_pitch&&(A.giftDrawData.dec=k.sales_pitch),A.addOnGift.products.push(va),oa=A.giftFlag=!0);"Y"!==ca?oa||(A.addOnInfoTempCache[va.discounted_sku]||
(C.push(va),A.addOnInfoTempCache[va.discounted_sku]=va.discounted_sku),A.addonsFlag=!0):oa||E.push(ra)}}function W(k,A){A=(A=A.promotionImgType)?A.split(","):[];var ca=!1;k=k.images&&0<k.images.length?k.images[0]:"";if(0<A.length&&k)for(var K in A)if(A[K]===k){ca=!0;break}return{promoIconFlag:ca,iconImgName:k}}function aa(k,A,ca){var K=k.reCallSyndi,D=k.util,g=k.syndiApiData.products,C=k.drawObj;if(ca){for(ca=0;ca<K.length;ca++){var E=K[ca],T=g[E.sku];if(T){D.merge(k.totalSkuList,E.sku,T,"syndi");
var R=k,y=R.siteCode,ea=R.util,va=R.drawObj.offer;if("Y"===R.pdSoftBundleUseYn)if(T.sku_source)if(E.sku_source=T.sku_source,"ecom"===T.sku_source)if("COMBO"===E.offer_type)null!==T.inventory&&(E.ctaType=T.inventory.status),null!==T.images&&null!==T.images.small_image&&(E.thumbUrl=T.images.small_image.url,E.thumbUrlAlt=T.images.small_image.desc),E.displayName=T.product_display_name,E.modelName=T.model_name,E.modelCode=T.model_code;else{if("BOGO"===E.offer_type_b){var ra=T.images.small_image.url;ra=
ea.getImgAttr(ra,ra,T.images.small_image.desc,{classWapper:"image__main responsive-img"});var oa=R.priceCurrency;ea=R.view;var da=T.taxonomy&&T.taxonomy.product_category?T.taxonomy.product_category.toLowerCase():"",na=T.taxonomy&&T.taxonomy.name?T.taxonomy.name.toLowerCase():"",L=T.taxonomy&&T.taxonomy.name?T.taxonomy.name.toLowerCase():"",N=T.model_code,b=T.model_name,r=T.product_display_name,G=[];G.push({text:E.bogo_sales_pitch});var P="",Z="",d="",M="";null!==T.price_info&&0<T.price_info.length&&
(M=T.price_info[0].msrp_price.value,P=T.price_info[0].msrp_price.formatted_value,"nl"!==y&&"be"!==y&&"be_fr"!==y&&(Z=Granite.I18n.get("Save {0}",currencyComma(T.price_info[0].sale_price.value,oa),y)),d=currencyComma(0,oa));"true"===$("#isEppPage").val()&&"pl"===y&&(Z=P="");y={title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),modelCode:N,modelName:b,displayName:r,pviTypeName:da,pviSubtypeName:na,categorySubTypeEngName:L,description:{hasDescription:!0,
main:G,date:E.bogo_date},imgAttr:ra,price:{hasPrice:!0,price:M,original:P,save:Z,now:d}}};va.bogo=y;ea.productOfferDraw(R.drawObj)}}else"BOGO"===E.offer_type_b&&R.bogoSearchList.push(E);else"BOGO"===E.offer_type_b&&R.bogoSearchList.push(E);R=void 0;va=k;y=va.multiCareYn;"Y"===va.pdProductTypeCheckYn&&"CONFIGURATORADDON"===E.offer_type&&T.product_type&&(ea=T.product_type.toUpperCase(),"PHYSICAL"===ea?(ea={},ea.discounted_sku=T.sku,va.addOnInfoTempCache[ea.discounted_sku]||(va.addOnInfoTemp.push(ea),
va.addonsFlag=!0,va.addOnInfoTempCache[ea.discounted_sku]=ea.discounted_sku)):"INSURANCE"!==ea&&"WARRANTY"!==ea||!T.sku_source||("ecom"===T.sku_source?(T.discounted_sku=T.sku,null!=T.images&&null!=T.images.small_image&&(T.thumbUrl=T.images.small_image.url,T.thumbUrlAlt=T.images.small_image.desc),T.ctaType=T.inventory.status,T.displayName=T.product_display_name,T.modelName=T.model_name,T.modelCode=T.model_code):T.discounted_sku=T.sku,va.addOnInfo.push(T),"INSURANCE"===ea?(va.samsungCareFlag=!0,E.product_formatted_sales_pitch&&
(va.samsungCareSubText=E.product_formatted_sales_pitch)):"WARRANTY"===ea&&(va.warrantyFlag=!0)));if("Y"===y&&(va=va.samsungCareList,null!==va&&0<va.length))for(R in va)T.sku===va[R].discounted_sku&&(va[R].custom_properties=T.custom_properties,va[R].images=T.images,va[R].long_description=T.long_description,va[R].short_description=T.short_description,va[R].product_display_name=T.product_display_name,va[R].displayName=T.product_display_name,va[R].modelName=T.model_name,va[R].modelCode=T.model_code,va[R].sku_source=
T.sku_source,va[R].sale_price=T.sale_price,va[R].msrp_price=T.msrp_price,va[R].product_type=T.product_type);R=k;va=A;y=R.util;E.checkingType&&"forever"===E.checkingType&&(ea=T.product_type.toUpperCase(),ra=T.price_info,oa=R.foreverFinanceInfo,da=0,"INSURANCE"===ea&&ra&&0<ra.length&&(ra[0].msrp_price&&ra[0].msrp_price.value&&(da=ra[0].msrp_price.value),ra[0].sale_price&&ra[0].sale_price.value&&(da=ra[0].sale_price.value)),oa.carePrice=da,y.foreverDraw(R,va));R=k;va=R.newAssuredBuyBackList;E.checkingType&&
"newAssuredBuyBack"===E.checkingType&&T&&"BUYBACK"===T.product_type.toUpperCase()&&(E=T.product_display_name,y=T.sku,ea="",T.price_info&&T.price_info[0].sale_price&&T.price_info[0].sale_price.value?ea=currencyComma(T.price_info[0].sale_price.value,R.priceCurrency):T.price_info&&T.price_info[0].msrp_price&&T.price_info[0].msrp_price.value&&(ea=currencyComma(T.price_info[0].msrp_price.value,R.priceCurrency)),va.push({index:va.length+1,title:E,priceDisplay:ea,sku:y,productItem:T}))}}H(k,A,C)}k.finishedSecondSyndi=
!0;k.util.afterTotalAPI(k,A)}function x(k,A,ca,K,D,g){var C=k.util,E=k.drawObj,T=k.siteCode,R=E.offer.combo,y=E.offer.gift,ea=E.tariffOptionResult,va=E.careResult,ra=E.warrantyResult,oa=E.upgradeResult,da=E.tradeInResult,na=E.between.nonPurchase,L=k.drawObj.galaxyForeverResult,N=k.drawObj.assuredBuyBackResult,b=k.drawObj.newAssuredBuyBackResult,r=$(A.buyingToolOptDelivery.find("#delivery-zipcode")).val(),G=C.hasTariffOptionResult(k,A),P=C.hasCareResult(k,A),Z=C.hasWarrantyResult(k,A),d=C.hasUpgradeResult(k,
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),O=C.hasNewAssuredBuyBackResult(k,A),S={},Q=k.childCheckList,fa=k.pdAppId,la=k.shopSkuCode;E={line_items:[]};var ma={line_items:[]},ta={},ya={is_accepted:!0},sa="",Na="",pa="",a="",c="",m="",f="",q="",ba="",J="",ha="",qa="",ia="",za="",Ha="",Fa="";if(C.checkingDeliveryCode(k,A)){g||(ma.sku_id=la,ma.quantity="1",k.proudctPriceInfo.productCartCount&&
1<k.proudctPriceInfo.productCartCount&&(ma.quantity=""+k.proudctPriceInfo.productCartCount));if(G){A=ea.dataModelCode;var Ca=ea.dataSimskuCode;ea=ea.dataId;C.isNotEmptyArray(ea)&&(sa=","+ea.join("|"),$.each(ea,function(Va,Y){ta[Y]=ya}));A&&(S[A]=A,ma.line_items.push({sku_id:A,quantity:"1"}));Ca&&(S[Ca]=Ca,ma.line_items.push({sku_id:Ca,quantity:"1"}))}M&&(ea=da.dataId,da=da.dataQuoteId,C.isNotEmptyArray(ea)&&(Na=","+ea.join("|"),$.each(ea,function(Va,Y){ta[Y]=ya})),da&&(pa="\x26exchange_id\x3d"+da),
ma.exchange_id=da);if(P){da=va.dataId;va=va.dataModelCode;var Ia={};C.isNotEmptyArray(da)&&(a=","+da.join("|"),$.each(da,function(Va,Y){Ia[Y]=ya}));va&&(J="\x26addChildItem[]\x3d"+va+",1",ma.line_items.push({sku_id:va,quantity:"1",consents:Ia}))}if(Z){va=ra.dataId;ra=ra.dataModelCode;var Ta={};C.isNotEmptyArray(va)&&(a=","+va.join("|"),$.each(va,function(Va,Y){Ta[Y]=ya}));ra&&(J="\x26addChildItem[]\x3d"+ra+",1",ma.line_items.push({sku_id:ra,quantity:"1",consents:Ta}))}if(d){za=oa.dataId;var Oa={};
C.isNotEmptyArray(za)&&(c=","+za.join("|"),$.each(za,function(Va,Y){Oa[Y]=ya}));for(var ka in Q)ha=c?ha+("\x26addChildItem[]\x3d"+Q[ka]+",1"+c):ha+("\x26addChildItem[]\x3d"+Q[ka]+",1"),ma.line_items.push({sku_id:Q[ka],quantity:"1",consents:Oa});za="\x26flush\x3dtrue";E.flush=!0}k.pdUpgrade&&(k.pdUpgrade="fr"===T?"":"\x26upgrade\x3dtrue",m=k.pdUpgrade);t&&(ia="\x26finance_plan_id\x3d"+na.dataLeaseing,za="\x26flush\x3dtrue",E.flush=!0,ma.finance_plan_id=na.dataLeaseing);if(z)for(var Ja in R){ka=R[Ja].item;
for(var Da in ka.bundleList)if(oa=ka.bundleList[Da].dataModelCode)S[oa]=oa,ma.line_items.push({sku_id:oa,quantity:"1"})}if(X){R=y.item;for(var La in R.bundleList)if(y=R.bundleList[La].dataModelCode)S[y]=y,ma.line_items.push({sku_id:y,quantity:"1"})}if(V){La=N.dataSku;var Qa={};N=N.dataId;V="";C.isNotEmptyArray(N)&&(V=","+N.join("|"),$.each(N,function(Va,Y){Qa[Y]=ya}));La&&(Fa="\x26addChildItem[]\x3d"+La+V,ma.line_items.push({sku_id:La,quantity:"1",consents:Qa}))}O&&(b=b.dataModelCode)&&(Fa="\x26addChildItem[]\x3d"+
b,ma.line_items.push({sku_id:b,quantity:"1"}));if(I){I=L.modelList;b=L.dataId;L=L.financePlanId;C.isNotEmptyArray(b)&&(f=","+b.join("|"));for(var Ma in I)Ha+="\x26addChildItem[]\x3d"+I[Ma]+",1";Ha+=f;L&&(Ha+="\x26finance_plan_id\x3d"+L)}for(var Sa in S)q+="\x26addChildItem[]\x3d"+S[Sa]+",1";for(var Ra in ca)ba="id"===T?ba+("\x26addChildItem[]\x3d"+ca[Ra]+",1"):ba+("\x26addItem[]\x3d"+ca[Ra]+",1"),k.hasVoucher&&k.voucherdata.coupons&&k.voucherdata.coupons[0]&&(ba+="\x26promoCode\x3d"+k.voucherdata.coupons[0]),
ma.line_items.push({sku_id:ca[Ra],quantity:"1"});r&&(qa="\x26postal_code\x3d"+r,E.postal_code=r);"de"!==T&&"uk"!==T||!G&&!M||(za="\x26flush\x3dtrue",E.flush=!0);fa&&(K+="?appId\x3d"+k.pdAppId);0<Object.keys(ta).length&&(ma.consents=ta);0<Object.keys(ma).length&&E.line_items.push(ma);"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(la=$("#originShopSku").val());if("id"===T)window.location.href=K+("?addItem[]\x3d"+la+",1"+sa+Na+q+J+a+ha+ia+pa+qa+m+za+ba+Ha);else{C=",1";if(g){g=
"";for(T=0;T<ca.length;T++)la="\x26",0==T&&(la="?"),g+=la+"addItem[]\x3d"+ca[T]+C;K+=g}else k.proudctPriceInfo.productCartCount&&1<k.proudctPriceInfo.productCartCount&&(C=","+k.proudctPriceInfo.productCartCount),K+="?addItem[]\x3d"+la+C+sa+Na+q+J+a+ha+ia+pa+qa+m+za+Ha+Fa;"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(K=K.replace("addItem[]","flash_skus"),K=K.replace(C,""));D?window.location.href=K:U(k,E,ca)}}}function U(k,A,ca){var K=k.siteCode,D=$.cookies.get("jwt_"+k.countryIsoCode,
{domain:".samsung.com"});k=k.apiDomain+"/v4/shopping-carts/";var g="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:g,dataType:"json",cache:!0,beforeSend:function(E){null!=D&&""!=D&&E.setRequestHeader("x-ecom-jwt",D)},timeout:2E4,success:function(E,T,R){ca&&0<ca.length&&(E=Granite.I18n.get("The item is added to your cart"),confirmPopup(E,"addtocart"))},error:function(E){console.log("fail add to cart")}})}function B(k,A,ca){var K=k.util,D=k.drawObj,g=k.view,C=k.currentUrl,
E=k.shopSkuCode,T=k.syndiApiData,R=k.siteCode;gpv2ShopInfo&&"nl"===R&&(k.util.setPriceProudctPriceInfo(k,A,{price:gpv2ShopInfo.price,priceDisplay:gpv2ShopInfo.priceDisplay,promotionPrice:gpv2ShopInfo.promotionPrice,promotionPriceDisplay:gpv2ShopInfo.promotionPriceDisplay,leasingInfo:gpv2ShopInfo.leasingInfo,listPrice:gpv2ShopInfo.listPrice,listPriceDisplay:gpv2ShopInfo.listPriceDisplay,saveText:gpv2ShopInfo.saveText,tradeInPriceText:gpv2ShopInfo.tradeInPriceText}),k.proudctPriceInfo.salePriceFormatted&&
(k.drawObj.price.priceWrapper.hasPriceWrapper=!0));if(ca)if(T.products[E]){var y=T.products[E];k.syndiProductData=y;var ea=k.siteCode,va=k.proudctPriceInfo,ra=D.price.priceWrapper,oa=k.util,da="";if(y.inventory){da=y.inventory.status.toUpperCase();var na=y.inventory.custom_stock_message;k.stockLevelStatus=da;k.apiChangeStockStatus=da;k.stockCustomMessage=na;D.stockLevelStatus=da;va.netavailable=y.inventory.net_available&&0<Number(y.inventory.net_available)?Number(y.inventory.net_available):1;"true"===
$("#isEppPage").val()&&0<A.buyingToolOptSMBQuantity.length&&va.netavailable<va.smbMinQty&&(da="OUTOFSTOCK",k.stockLevelStatus="OUTOFSTOCK",D.stockLevelStatus="OUTOFSTOCK")}"pl"===ea&&"OUTOFSTOCK"===da||"NOORDER"===da||!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,N=y.preferred_finance_plan,b=0;b<L.length;b++){var r=L[b],G="",P="",Z="",d="",M="";r.msrp_price&&(G=r.msrp_price.value,P=r.msrp_price.formatted_value);r.list_price&&(Z=r.list_price.value,d=r.list_price.formatted_value);if(r.sale_price){var t=r.sale_price.value;var z=r.sale_price.formatted_value}else t=G,z=P;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)&&(va.salesPitch=M);va.orignalPrice=G;va.orignalPriceFormatted=P;va.salePrice=t;va.salePriceFormatted=z;va.listPrice=Z;va.listPriceFormatted=d}N&&N.installment_amount&&"NaN"!==N.installment_amount&&N.tenure.unit&&(va.monthlyPriceInfo.monthlyPrice=N.installment_amount,va.monthlyPriceInfo.tenureVal=N.tenure.unit)}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){n(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,O=[];O.push({text:Granite.I18n.get("1. Free express delivery from your local Samsung plaza")});O.push({text:Granite.I18n.get("2. Delivery by appointment")});O.push({text:Granite.I18n.get("3. Hassle free installation")});var S="/"+I+"/smart-utsav-delight-delivery/O2O/terms/";
var Q=V.getAttrCta(Granite.I18n.get("Learn more"),S,"_self","",{},"");var fa={title:"delightDelivery",hasItem:!0,item:{headline:Granite.I18n.get("Delight delivery"),description:{hasDescription:!0,main:O},learnMoreCta:Q,imgAttr:{srcPc:"/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/product-offer-delight-delivery.jpg",alt:"delight delivery"}}};X.delightDelivery=fa}var la=k.syndiApiData.expanded;if(y.promotions&&0<y.promotions.length){for(var ma=y.promotions,ta=
{},ya=0;ya<ma.length;ya++){var sa=la.promotions[ma[ya]],Na=sa.type?sa.type.toUpperCase():"",pa=la.offers[sa.offer_id],a=pa&&pa.type?pa.type.toUpperCase():"",c=sa.trade_in_type?sa.trade_in_type.toUpperCase():"",m=0<sa.sales_pitch.length?sa.sales_pitch[0]:"";if(Na)if("CONFIGURATOROFFER"===Na&&"TRADEIN"===a){k.tradeInType=c;m&&/^[0-9\\.]*$/.test(m.trim())&&(k.promotionSalesPitch=m);var f=void 0,q=k,ba=q.siteCode,J=q.util,ha="";q.tradeInFlag=!0;if(J.isNotEmptyArray(pa.formatted_sales_pitch)){var qa=pa.sales_pitch;
0<qa.length&&(ha=qa[0]);"pl"===ba&&(ha=ha.replace(/<(\/p|p)([^>]*)>/gi,"").replace(/<(\/em|em)([^>]*)>/gi,""))}else ha="in"===ba?Granite.I18n.get("Buy with exchange"):"ae"===ba||"ae_ar"===ba?Granite.I18n.get("Generate Trade in code"):Granite.I18n.get("Trade in your old device");if(pa.discount_description&&0<pa.discount_description.length){var ia=0;for(f in pa.discount_description){var za=pa.discount_description[f],Ha=za.value;"Rebate"===za.type&&Ha&&(ia=Math.max(ia,Ha))}q.tradeinSaveValue=ia}q.tradeinText=
ha}else if("CONFIGURATORUPGRADE"===Na){var Fa=k,Ca=y,Ia=Fa.childCheckList,Ta=Fa.eupData,Oa=Fa.pdUpgradeUseYn,ka=Fa.util;Fa.upgradeEligible=!0;if("Y"===Oa){var Ja=sa.discount_description;if(null!==Ja&&0<Ja.length)for(var Da=0;Da<Ja.length;Da++)for(var La=0;La<Ja[Da].discounted_skus.length;La++){var Qa=Ja[Da].discounted_skus[La],Ma=Qa.sku;ka.merge(Fa.totalSkuList,Ma,Qa);Ia.push(Ma);Fa.upgradeFlag=!0;Ta.displayName=Ca.product_display_name;Ta.sku=Ma;Ta.salePrice=Ca.price_info?Ca.price_info[Da].sale_price.value:
""}}}else if("CONFIGURATORADDONSAMSUNGCARE"===Na)v(sa,k,D,A);else if("CONFIGURATORADDON"===Na)F(sa,k,D,A,ya);else if("CONFIGURATOROFFER"===Na&&"COMBO"===a){if(!ta[sa.offer_id]){var Sa=void 0,Ra=k,Va=Ra.pdTimeformatFront,Y=Ra.siteCode,ja=Ra.reCallSyndi,Aa=Ra.setComboPopupData,Ba=Ra.util,Ga=Ra.priceCurrency,ua={},Ea=sa.images&&0<sa.images.length?sa.images[0]:null;ua.comboInfo=[];ua.iconImgName=Ea;sa.start_date&&sa.end_date&&(ua.comboDate=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&&(ua.comboPitch=sa.formatted_sales_pitch);if(pa.discount_description&&0<pa.discount_description.length){var Ka=pa.expanded;for(Sa in pa.discount_description){var wa=pa.discount_description[Sa];if(wa.skus&&0<wa.skus.length)for(var xa=wa.skus,Xa=0;Xa<xa.length;Xa++){var Ua={};Ua.sku=xa[Xa];if(Ka&&Ka.discounted_skus&&Ka.discounted_skus[xa[Xa]]){var Pa=Ka.discounted_skus[xa[Xa]],Wa=0;Pa.msrp_price?(Ua.msrp_price=
Pa.msrp_price,Wa=Pa.msrp_price.value):Ua.msrp_price={};Ua.sale_price=Pa.sale_price?Pa.sale_price:{};"percentage"===wa.type.toLowerCase()?Ua.formatted_value=wa.value+"%":Ua.formatted_value=currencyComma(wa.value,Ga);"fr"===Y&&wa.value&&-1<"rebate".indexOf(wa.type.toLowerCase())&&0>=Number(Wa)-Number(wa.value)&&(Ua.formatted_value="0");Ua.type=wa.type;Ua.offer_type=pa.type="COMBO";Ua.sales_pitch=pa.sales_pitch&&0<pa.sales_pitch.length?pa.sales_pitch[0]:"";ua.comboInfo.push(Ua);ja.push(Ua);Ra.comboFlag=
!0;Ba.merge(Ra.totalSkuList,Ua.sku,Ua)}}}Aa.push(ua)}ta[sa.offer_id]=sa.offer_id}}else if("CONFIGURATOROFFER"===Na&&"BOGO"===a){if(!ta[sa.offer_id]){var bb=void 0,Ya=k,Za=Ya.pdTimeformatFront,cb=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(bb in pa.discount_description)if(pa.discount_description[bb].skus&&0<pa.discount_description[bb].skus.length)for(var zb=pa.discount_description[bb].skus,Cb=0;Cb<zb.length;Cb++){var hb={};hb.sku=zb[Cb];hb.bogo_date=gb;hb.bogo_sales_pitch=kb;"Y"===$a?(hb.offer_type_b="BOGO",cb.push(hb)):ib.push(hb);pb.merge(Ya.totalSkuList,hb.sku,hb);Ya.bogoFlag=!0}ta[sa.offer_id]=sa.offer_id}}else if("PRODUCTDETAILSPROMOMESSAGE"===
Na){var Kb=ya,ub=D.offer,qb=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",Db=W(sa,k),db=Db.promoIconFlag,lb=Db.iconImgName,eb="offer-promotion promotion-index-"+Kb,nb=[],Ub=null,ob=[],cc="";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);db&&(Ub="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+lb+".svg");for(var Yb=
0;Yb<nb.length;Yb++)cc+=nb[Yb].replace("\x3ca","\x3ca target\x3d'_blank'");ob.push({target:"."+eb.replace(" ",".")+" .pd-offer__desc",text:cc});ub.promotionMessage.push({title:"promoMessage",hasItem:!0,item:{contentWrapperClass:eb,isIcon:!0,iconAttr:{src:Ub,alt:qb},description:{hasDescription:!0},rowText:ob}})}else if("PRODUCTDETAILSFINANCEPLANPROMO"===Na){var Lb=k,Nb=ya,Ob=Lb.siteCode,Gb=D.offer,Zb=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",gc=sa.emi_calculator_url?sa.emi_calculator_url:
Lb.financingUrl,hc=W(sa,Lb),Pb=hc.promoIconFlag,ic=hc.iconImgName,rb="offer-emi emi-index-"+Nb,jb="",Eb="",nc=[],vb="";Lb.financingEligible=!0;gc&&(Lb.emiCalculatorUrl=gc);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&&(Eb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+ic+".svg",vb=vb+'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+
(Eb+'?$LazyLoad_Home_PNG$" alt\x3d"'+Zb+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Eb+'?$48_48_PNG$" alt\x3d"'+Zb+'"\x3e\x3c/div\x3e'),vb+="\x3c/div\x3e");vb+='\x3cdiv class\x3d"pd-offer-desc"\x3e';vb+='\x3cdiv class\x3d"pd-offer__cta"\x3e';if("in"===Ob||"uk"===Ob||"lt"===Ob||"id"===Ob){Lb.promotionFinancingFlag=!0;for(var jc=0;jc<jb.length;jc++){var mb=jb[jc].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>mb.indexOf("\x3ca")&&("in"===Ob?(vb+='\x3cstrong class\x3d"pd-offer__title-text"\x3e',
vb+=mb+" \x3cbr/\x3e",vb+='\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",vb+="\x3c/strong\x3e"):vb+='\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 xb=0;xb<jb.length;xb++){var Hb=jb[xb].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>Hb.indexOf("\x3ca")&&(vb+='\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:'+Hb.toLowerCase()+':learn more"\x3e'+Hb+"\x3c/a\x3e")}}else{vb+='\x3cstrong class\x3d"pd-offer__title-text"\x3e';for(var fb=0;fb<jb.length;fb++)vb+=jb[fb];vb+="\x3c/strong\x3e"}vb+="\x3c/div\x3e";vb+="\x3c/div\x3e";nc.push({target:"."+rb.replace(" ","."),text:vb});Gb.promotionFinance.push({title:"finance",hasItem:!0,item:{contentWrapperClass:rb,iconAttr:{src:Eb,alt:Zb},
description:{hasDescription:!0},rowText:nc}})}}else if("PRODUCTDETAILSSMARTCLUBPROMO"===Na){var Ab=void 0,Ib=ya,Vb=k.siteCode,dc=D.offer,oc=sa.sales_pitch&&0<sa.sales_pitch.length?sa.sales_pitch[0]:"",sb=W(sa,k).iconImgName,wb="offer-smart-club smart-club-index-"+Ib,Bb="",Wb="",Qb=[];sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length&&(Bb=sa.formatted_sales_pitch);if(Bb){Wb="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+sb+".svg";Ab=
'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+(Wb+'?$LazyLoad_Home_PNG$" alt\x3d"'+oc+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Wb+'?$48_48_PNG$" alt\x3d"'+oc+'"\x3e\x3c/div\x3e');Ab+="\x3c/div\x3e";Ab+='\x3cdiv class\x3d"pd-offer-desc"\x3e\x3cdiv\x3e';Ab+="\t\t\x3ch3\x3e\x3cstrong\x3eSmart Club\x3c/strong\x3e\x3c/h3\x3e";Ab+="\x3cp\x3e";for(var Rb=0;Rb<Bb.length;Rb++)0>Bb[Rb].replace("\x3cu\x3e",
"").replace("\x3c/u\x3e","").indexOf("\x3ca")&&"in"===Vb&&(Ab+=Bb+"");Ab+="\x3c/p\x3e";Ab+="\x3c/div\x3e";Qb.push({target:"."+wb.replace(" ","."),text:Ab});dc.promotionSmartclub.push({title:"smartclub",hasItem:!0,item:{contentWrapperClass:wb,iconAttr:{src:Wb,alt:oc},description:{hasDescription:!0},rowText:Qb}})}}else if("PRODUCTDETAILSSAMSUNGFINANCEPLANPROMO"===Na){var $b=D,ec=k.financeplusUrl+"?family_id\x3d"+k.familyCode+"\x26sku\x3d"+k.shopSkuCode,ac=null;"in"===k.siteCode&&(ec="https://www.samsung.com/in/offer/online/finance-plus/",
ac="blank");var Jb="",Mb=null;k.financingEligible=!0;null!==sa.formatted_sales_pitch&&0<sa.formatted_sales_pitch.length?Jb=sa.formatted_sales_pitch:null!==sa.sales_pitch&&0<sa.sales_pitch.length&&(Jb=sa.sales_pitch);for(var Tb=0;Tb<Jb.length;Tb++)Mb=Jb[Tb].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");$b.offerFinance={title:Granite.I18n.get("Samsung Finance+"),hasComponent:!0,description:Mb,learnMoreCta:{"class":null,title:null,href:ec,target:ac,text:Granite.I18n.get("Learn more")}}}else if("CONFIGURATORBUYBACK"!==
Na)if("CONFIGURATORADDONVOUCHER"===Na){var yb=k,ab={},Sb=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(Sb&&0<Sb.length){ab.discount_description=Sb;for(var tb=0;tb<Sb.length;tb++){var sc=Sb[tb];ab.price=sc.value;ab.coupons=sc.coupons}}sa.terms_and_condition_ids&&0<sa.terms_and_condition_ids.length&&(ab.terms_and_condition_ids=sa.terms_and_condition_ids);
yb.voucherdata=ab;yb.hasVoucher=!0;F(sa,k,D,A,ya)}else if("CONFIGURATORASSUREDBUYBACK"===Na){if("in"===k.siteCode){var Fb=k,kc=sa.discount_description;if(null!==kc&&0<kc.length)for(var lc=0;lc<kc.length;lc++)for(var tc=0;tc<kc[lc].discounted_skus.length;tc++){var zc=kc[lc].discounted_skus[tc].sku;Fb.newAssuredBuyBackFlag=!0;Fb.reCallSyndi.push({sku:zc,checkingType:"newAssuredBuyBack"})}}}else"CONFIGURATORADDONCAREPACK"===Na&&w(sa,y,k,A)}var fc=k.reCallSyndi,Ec=k.syndiApiData.products;if(0<fc.length){for(var mc=
[],pc=0;pc<fc.length;pc++){var uc=fc[pc].sku;Ec[uc]||mc.push(uc)}0<mc.length?(k.finishedSecondSyndi=!1,h(k,A,mc,aa)):aa(k,A,!0)}else H(k,A,D)}var qc=k.util,rc=!1;k.tradeInFlag&&("in"===siteCode?rc=!0:"fr"===siteCode&&(rc=!0));qc.settingTradeInDraw({},k,A,rc);var vc=k.upgradeFlag,Ac=k.pdUpgradeLearnMoreUrl,Fc=k.util,bc=k.siteCode,wc=k.pdProductType,Bc="",Xb="",Dc="_self",xc="",yc="javascript:;",Ic={},Jc={},Kc={};vc&&("uk"===bc?Ac&&(xc=Granite.I18n.get("Learn more"),yc=Ac,Dc="_blank"):"de"===bc&&(xc=
Granite.I18n.get("Learn more"),Ic.layerTarget="upgradeLearnMorePopup"),Bc=Granite.I18n.get("Add Samsung Upgrade Program"),Xb="uk"===bc?"PHONE"!==wc?Granite.I18n.get("Pay for your new TV in monthly installments and be invited to upgrade to the latest TV after months."):Granite.I18n.get("Pay for your new smartphone in monthly instalments and be invited to upgrade to the new smartphone as soon as it launches."):Granite.I18n.get("Pay for your new Galaxy phone in monthly instalments and be invited to upgrade to the new Galaxy as soon as it launches."),
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(xc,yc,Dc,"",Ic,"");D.upgrade={hasComponent:vc,isEmbededType:!1,isNotEmbededType:!0,title:Bc,learnMoreCta:Pc,description:Xb,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,Cc=null,Nc;for(Nc in Mc)Cc=Mc[Nc];if(Cc){var Rc=Cc.tenure.unit,Sc=Cc.tenure.value,Tc=Cc.monthly_rate.value,Uc=Cc.down_payment.value;var Vc=k.pdUpgrade?Granite.I18n.get("Upgrade"):Granite.I18n.get("Lease");D.between={hasComponent:!0,purchase:{text:Granite.I18n.get("Purchase")},nonPurchase:{text:Vc,dataLeaseing:Cc.plan_id,
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;g.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,g=ca.multiCareYn,C=ca.util,E=ca.samsungCarePackFlag;if("Y"!==ca.pdProductTypeCheckYn&&E){E=k.discount_description;if(null!==E&&0<E.length)for(var T=0;T<E.length;T++)for(var R=0;R<E[T].discounted_skus.length;R++){var y={},ea=E[T].discounted_skus[R],
va=ea.sku;C.merge(ca.totalSkuList,va,ea);y.discounted_sku=va;K.push(y);ca.samsungCareFlag=!0;"Y"===g&&D.push({sku:va})}ca.samsungCareFlag&&k.formatted_sales_pitch&&0<k.formatted_sales_pitch.length&&(ca.samsungCareSubText=k.formatted_sales_pitch);for(var ra in k.product_tag_order)A.push(k.product_tag_order[ra]);A.sort(function(oa,da){return oa.product_rank-da.product_rank})}}var e=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),p=function(){};p.prototype.productAjax=function(k,A){var ca=
[k.shopSkuCode];k.finishedFirstSyndi=!1;h(k,A,ca,B)};p.prototype.callCheckOutCta=function(k,A,ca,K,D){var g=k.checkOutLink;g="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":g;x(k,ca,A,g,K,D)};p.prototype.callAddToCartCta=function(k,A,ca,K,D){var g=k.cartUrl;g="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":g;x(k,ca,A,g,K,D)};e.BuyingToolOpAjaxGPv2=p})();
(function(){function l(d,M,t,z,I){var X=d.util,V=d.drawObj,O=$(t.buyingToolOptDelivery.find("#delivery-zipcode")).val(),S=X.hasTariffOptionResult(d,t),Q=X.hasCareResult(d,t),fa=X.hasWarrantyResult(d,t),la=X.hasWarrantyVdResult(d,t),ma=X.hasUpgradeResult(d,t),ta=X.hasTradeInResult(d,t),ya=X.hasBetweenResult(d,t),sa=X.hasComboResult(d,t),Na=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=O,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});ta&&"in"!==P&&(ta=V.tradeInResult,"cn"===P||"tr"===P?z.tradeIn={plan_id:ta.dataQuoteId,tradeInResultList:d.isMultiTradeIn&&ta.list?ta.list:[]}:
d.useNewAddToCartApi?(S=d.isMultiTradeIn&&ta.list?ta.list:[],d.isMultiTradeIn||!d.globalServiceInfo||d.ceTradeUpPopup.isEnabled||(d.globalServiceInfo.tradein.services={},d.globalServiceInfo.tradein.services.tradeInAdditionalInfo=d.globalServiceInfo.tradein.tradeInAdditionalInfo,d.globalServiceInfo.tradein.services.questionAndAnswer=d.globalServiceInfo.tradein.questionAndAnswer,d.globalServiceInfo.tradein.services.tradeInType=d.globalServiceInfo.tradein.tradeInType,d.globalServiceInfo.tradein.services.imeiKey=
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:ta.dataQuoteId,tradeInResultList:S}):z.tradeIn={plan_id:ta.dataQuoteId},ta.dataId&&0<ta.dataId.length&&(z.tradeIn.tnc=[].concat($jscomp.arrayFromIterable(ta.dataId))));
if(d.exchangeApiData&&d.exchangeApiData.exchangeFlag&&d.ceTradeUpPopup.isEnabled||"in"===P)z.exchange="in"==P?{exchangeId:d.exchangeApiData.dataQuoteId,tradeInType:d.tradeInType}:{exchangeId:d.exchangeApiData.dataQuoteId};"se"==P&&window.sg.components.SamsungFlexPopup&&window.sg.components.SamsungFlexPopup.hasSamsungFlex&&(z.samsungUpgrade={serviceCode:window.sg.components.SamsungFlexPopup.samsungFlexServiceCode});if(Q){Q=V.careResult;var f;"es"!==P&&"fr"!==P&&"cz"!==P||"monthly"!==(null==(f=V.careResult.dataPaymentcycle)?
void 0:f.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))}}fa&&(f=V.warrantyResult,z.warranty={modelCode:f.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(f.dataId))});la&&(z.warrantyVd={modelCode:V.warrantyVdResult.smcCode});ma&&(z.upgrade={modelCode:d.childCheckList[0],tnc:[].concat($jscomp.arrayFromIterable(V.upgradeResult.dataId))});
ya&&(z.between={plan_id:V.between.nonPurchase.dataLeaseing});if(sa){la=V.offer.combo;z.combo={modelCodeList:[]};for(var q in la){ma=la[q].item;for(var ba in ma.bundleList)z.combo.modelCodeList.push(ma.bundleList[ba].dataModelCode)}}if(pa)for(m in q=V.offer.gift.item,q.bundleList)if(ba=q.bundleList[m].dataModelCode)z.gift={modelCode:ba};a&&(m=d.drawObj.assuredBuyBackResult,z.assuredBuyBack={modelCode:m.dataSku,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});Na&&(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"===P&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&d.drawObj.delivery.hasComponent&&U(d,M);d.util.totalAfterFunction(d,M);if("10030000"!=d.categoryTypeCode){t=d.financeFlag;z=d.financingUrl;var I=d.siteCode;var X=d.promotionFinancingFlag,V=d.util,O=d.view,S=Granite.I18n.get("Calculate Finance"),Q=d.drawObj,fa=V.getEmiUrl(d,M),la=!1,ma={};"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?X&&(la=!0,ma=V.getAttrCta(S,fa,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):(la=!0,ma=V.getAttrCta(S,fa,"_self","js-install-calc",{layerTarget:"eipPopup"},"")));Q.calculator={hasComponent:la,emiAttr:ma};O.emiDraw(Q)}I=d.util;X=M.buyingToolOptOffer;"Y"===$("#typeux2025").val()&&(X=M.buyingToolOptOfferText);t=$(M.buyingToolCalculate).find(".js-install-calc");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);H(d,M);d.util.clickEventListener(d,M);window.sg.components.PDbuyingToolNew.reInit()}}}function H(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,O=commonLoginCheck(),S=d.apiDomain,Q=d.view,fa=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?O?"s-btn-wishlist js-select-wishlist tg-add-wishlist":"s-btn-wishlist js-create-wishlist tg-add-wishlist":"js-btn-wishlist js-not-for-sale-wishlist js-learnmore tg-add-wishlist";z="";$("#shopParmLang").val()&&
(z="\x26lang\x3d"+$("#shopParmLang").val());O?$.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(la){var ma=d.drawObj.wishList;la&&"My Wishlist"===la&&(ma.labelText=Granite.I18n.get("Remove wishlist")+" : "+d.modelName,ma.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",
ma.isSelected="true")},error:function(la){},complete:function(){var la=d.util;d.view.productWishListDraw(d.drawObj);la.settingWishlistTagging(d,M)}}):(Q.productWishListDraw(t),fa.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||p(d,M,t);("fr"==X&&d.hasRentalInstallment||"fr"!=X)&&n(d,M,t);"cn"==X&&t.apiData[d.modelCode].isComingSoon&&(d.isComingSoon=t.apiData[d.modelCode].isComingSoon);ra(d,M,t);e(d,M,t);d.util.settingShippingOrBack(d);
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,O="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/"+
O+"/users/current/coupons?couponCodes\x3d"+S,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(Q,fa,la){if(200==la.status&&null!=Q&&Q&&Q.data.coupons){Q=Q.data.coupons;var ma=(new Date).toISOString();Q=Q.filter(function(ta){return ta.endDate>=ma});fa=[];Q&&2<=Q.length?(fa=Q.sort(function(ta,ya){return new Date(ya.startDate)-new Date(ta.startDate)}),product_coupon.init(fa),pd_hybris_coupon_popup.init(fa)):Q&&1==Q.length&&(fa=Q,product_coupon.init(fa),
pd_hybris_coupon_popup.init(fa))}},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 n(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(O){if(O&&0<O.length){var S=!1,Q=-1,fa=-1;!0===d.hasRentalInstallment&&"nl"==I&&"nl"===d.siteCode&&O&&0<O.length&&O[0]&&O[0].months&&W(O,d,M,t);O=$jscomp.makeIterator(O);for(var la=O.next();!la.done;la=O.next())if(la=la.value,"UPGRADE"!==la.paymentModeType.toUpperCase()||S)"LEASING"===la.paymentModeType.toUpperCase()&&(la.monthly&&-1===Q&&(Q=parseFloat(la.monthly)),"nl"==
I?(la.months&&-1===fa&&(fa=parseInt(la.months)),"nl-evollisPaymentMode"===la.paymentModeCode&&la.months&&la.monthly&&la.interest&&parseInt(la.months)>=fa&&(t.commonModel.price.leasingInfo.monthlyRate=la.monthly,t.commonModel.price.leasingInfo.tenureVal=la.months,t.commonModel.price.leasingInfo.interest=la.interest,t.commonModel.price.leasingInfo.upfront=la.upfront,t.commonModel.price.leasingInfo.paymentModeCode=la.paymentModeCode,fa=parseInt(la.months))):la.months&&la.monthly&&0===parseFloat(la.interest)&&
parseFloat(la.monthly)<=Q&&(t.commonModel.price.leasingInfo.monthlyRate=la.monthly,t.commonModel.price.leasingInfo.tenureVal=la.months,t.commonModel.price.leasingInfo.interest=la.interest,t.commonModel.price.leasingInfo.upfront=la.upfront,t.commonModel.price.leasingInfo.paymentModeCode=la.paymentModeCode,Q=parseFloat(la.monthly)),oa(d,M,t));else{d.eupData.salePrice=la.totalCost;d.eupData.monthlyPrice=la.monthly;d.eupData.months=la.months;S=d;var ma=t,ta=S.childCheckList,ya=S.eupData,sa=ma.commonModel.upgradeData,
Na=S.pdUpgradeUseYn;la=S.util;var pa=S.pdUpgradeLearnMoreUrl,a=S.pdProductType;sa.hasData&&(S.upgradeEligible=!0,"Y"===Na&&sa.sku&&(sa=sa.sku,ta.push(sa),S.upgradeFlag=!0,ya.displayName=ma.commonModel.product_display_name,ya.sku=sa));ta=ma="";Na="_self";var c="",m="javascript:;",f={};ya={};sa={};S.upgradeFlag&&("uk"===P?pa&&(c=Granite.I18n.get("Learn more"),m=pa,Na="_blank"):"de"===P&&(c=Granite.I18n.get("Learn more"),f.layerTarget="upgradeLearnMorePopup"),ma=Granite.I18n.get("Add Samsung Upgrade Program"),
ta="uk"===P?"PHONE"!==a?Granite.I18n.get("Pay for your new TV in monthly installments and be invited to upgrade to the latest TV after months."):Granite.I18n.get("Pay for your new smartphone in monthly instalments and be invited to upgrade to the new smartphone as soon as it launches."):Granite.I18n.get("Pay for your new Galaxy phone in monthly instalments and be invited to upgrade to the new Galaxy as soon as it launches."),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"});la=la.getAttrCta(c,m,Na,"",f,"");S.drawObj.upgrade={hasComponent:S.upgradeFlag,isEmbededType:!1,isNotEmbededType:!0,title:ma,learnMoreCta:la,description:ta,yesAttr:ya,noAttr:sa,embedData:{}};S.upgradeFlag&&buyingPdEup.setTncUpgrade();S=!0}O=d.siteCode;Q=d.drawObj;fa=d.view;la="be"===O||"be_fr"===O||"nl"===O||"fr"===O;O=Granite.I18n.get("Lease");S=Granite.I18n.get("Purchase");la&&(la=
t.commonModel.price.leasingInfo.upfront,pa=t.commonModel.price.leasingInfo.tenureVal,a=t.commonModel.price.leasingInfo.monthlyRate,ma=t.commonModel.price.leasingInfo.paymentModeCode,ta=!1,""!==la&&""!==pa&&""!==a&&(ta=!0),Q.between={hasComponent:ta,purchase:{text:S},nonPurchase:{text:O,tenureUnit:pa,tenureValue:0,monthlyValue:a,paymentValue:la,paymentModeCode:ma}},fa.betweenDraw(Q))}},error:function(O){},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,O=d.view,S=d.drawObj,Q=Granite.I18n.get("Extended Warranty"),fa="",la="_self",ma="",ta="javascript:;",ya={},sa={},Na={},pa={};z&&($(M.buyingToolOptWarranty.get(0)).addClass("has-component"),X&&(ma=Granite.I18n.get("Learn more"),ta=X,la="_blank"),"de"!==P||"TV"!=I&&"ETC"!=I?fa=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"),fa="Verl\u00e4ngere die Standard-Herstellergarantie deines Samsung Ger\u00e4ts von 2 auf 5 Jahre"),Na={"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(ma,ta,la,"",sa,""));S.warranty={hasComponent:z,title:Q,learnMoreCta:ya,description:fa,yesAttr:Na,noAttr:pa,subText:""};
d.finalWarrantyList=t.commonModel.warrantyData.skuData;O.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;"de"==P?z="https://www.samsung.com/de/offer/garantieverlaengerung":"mx"==P?V?(I="_self",X="hubbleCareinfoPopup"):z="https://www.samsung.com/mx/support/samsung-care-plus-da":"fr"==P?z="https://www.samsung.com/fr/shop-faq/extensions-de-garantie/":
"cn"==P?z="https://www.samsung.com.cn/offer/ce-extended-warranty/":"ph"==P?z="https://www.samsung.com/ph/offer/samsung-care-plus-consumer-electronics/":"id"==P?z="https://images.samsung.com/is/content/samsung/assets/id/offer/2025/5/tnc/terms_and_condition_program_care_plus.pdf":"cz"==P?z="https://www.samsung.com/cz/support/warranty/":"sk"==P?z="https://www.samsung.com/sk/support/warranty/":"in"==P?z="https://www.samsung.com/in/support/warranty/":"lt"==P?z="https://www.samsung.com/lt/support/warranty/":
"lv"==P?z="https://www.samsung.com/lv/support/warranty/":"ee"==P?z="https://www.samsung.com/ee/support/warranty/":"pl"==P?z="https://www.scplus.samsung.pl/":"hr"==P?z="https://www.samsung.com/hr/support/warranty/":"si"==P&&(z="https://www.samsung.com/si/support/warranty/");V=d.view;var O=d.drawObj,S=d.ceTradeUpPopup.productCategoryGroup,Q=Granite.I18n.get("Extended Warranty"),fa="",la={},ma={},ta={};t&&($(M.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),la="ee"==P?{learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),
learnMoreHref:z,learnMoreTarget:I,learnMoreTargetPopup:X}:{learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:z,learnMoreTarget:I,learnMoreTargetPopup:X},Q=Granite.I18n.get("VD_Extended Warranty_Title"),fa=Granite.I18n.get("VD_Extended Warranty_Description"),"mx"==P&&"da"==S&&(Q=Granite.I18n.get("DA_Extended Warranty_Title"),fa=Granite.I18n.get("DA_Extended Warranty_Description")),ma={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},ta={text:Granite.I18n.get("VD_Extended Warranty_NO")},
"mx"==P&&0<$.grep([{category:"04010000",name:"TVs"},{category:"04020000",name:"Lifestyle TVs"},{category:"04040000",name:"Business TVs"}],function(ya){return ya.category==d.categoryTypeCode}).length&&(Q=Granite.I18n.get("VD_Extended Warranty_Title {0}"," ").replace("  ",""),la.learnMoreHref="https://www.samsung.com/mx/support/samsung-care-plus-tv/"));O.warrantyVd={hasComponent:t,title:Q,learnMoreCta:la,description:fa,yesAttr:ma,noAttr:ta,subText:""};V.productAddOnWarrantyVd(O)}}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,O){return V.months>O.months?-1:V.months<O.months?1:0});var X=I=d="";X="";M[0].interest&&M[0].months&&(X=M[0].interest+"% Financiering: In "+M[0].months+" termijnen*");""!==X&&$(".financing-info-box__contents-info-text").text(X);M[0].monthly?(d=currencyCommaExcep(parseFloat(M[0].monthly).toFixed(2),t).replace(".",""),X=d+" p/m",
$(".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"===P&&"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"===P&&d.categoryTypeCode.startsWith("08")&&!t.commonModel.tradeInData.isTradeUp?tradeinData.setTradein():!d.ceTradeUpPopup.isEnabled||"page-buying-pd"!=M&&"page-standard-pd"!=M?tradeinData.setTradein():(0===$("#ce-trade-up-popup-section").length&&(M=d.ceTradeUpPopup.productCategoryGroup,t=d.ceTradeUpPopup.productCategoryMainType,"ph"!==P||"rf"!==t&&"wm"!==t&&"ac"!==t||(M=t),(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("ce-tradeup."+M)),window.CeTradeUpPopup.init(d.modelCode)))}}
function x(d,M,t){var z=d.siteCode,I=d.drawObj,X=d.stockLevelStatus,V=I.delivery,O=d.deliveryYN,S=$.cookies.get("HA-Deeplink-Zipcode",{domain:".samsung.com"}),Q=d.util,fa=d.pdPackageYn,la=d.drawObj.delivery;if("in"===P){var ma=d.drawObj.delivery.time;t=t.apiData[d.modelCode];if(t.deliveryModes&&0<t.deliveryModes.length){var ta=t.deliveryModes,ya=0;t=[];for(var sa=[],Na=0;Na<ta.length;Na++){var pa=ta[Na];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!==ma&&(ta=ma.split("GMT")[0].trim().slice(-8),ma=Number(ta.split(":")[0])+5,ya=Number(ta.split(":")[1])+30,59<ya&&(ya-=30,ma+=1),2>String(ya).length&&(ya="0"+String(ya)),2>String(ma).length&&(ma="0"+String(ma)),ta={},ma=Number(String(ma)+String(ya)),ma<Number(1E3)?0<t.length?ta=t[0]:0<sa.length&&(ta=sa[0]):ma>=Number(1E3)&&0<sa.length&&(ta=sa[0]),ta&&(la.priorityDeliveryText=ta.longText,ta.longDescription&&
(la.priorityDeliveryTooltip=ta.longDescription.replaceAll("\n","\x3c/br\x3e")),la.isPriorityDelivery=!0))}}if("in"===z&&!fa||"us"===z&&O)if(V.hasComponent=!0,V.headline=Granite.I18n.get("Delivery Detail"),V.label=Granite.I18n.get("Enter Zipcode"),V.cancelText=Granite.I18n.get("Delete"),V.enterText=Granite.I18n.get("Search"),"id"===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 U(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,O="true"===$("#isEppPage").val()?{withCredentials:!0}:{},S=new Promise(function(fa,la){$.ajax({url:z+"/tokocommercewebservices/v2/"+
I+"/countries/"+I+"/regions?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:O,crossDomain:!0,timeout:2E4,success:function(ma){ma&&void 0!=ma.regions?fa(ma):fa(null)},error:function(ma){fa(null)}})}),Q=new Promise(function(fa,la){$.ajax({url:z+"/tokocommercewebservices/v2/"+I+"/countries/"+I+"/regionsPinned?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:O,crossDomain:!0,timeout:2E4,success:function(ma){ma&&void 0!=ma.regions?fa(ma):fa(null)},
error:function(ma){fa(null)}})});Promise.all([S,Q]).then(function(fa){var la=fa[0],ma=fa[1];if(null!=la&&null!=la.regions&&0<la.regions.length){la=fa[0].regions;if(null!=ma){ma=fa[1].regions;var ta=0;ma.forEach(function(ya){var sa=la.findIndex(function(pa){return ya.isocodeShort==pa.isocodeShort}),Na=la[sa];la.splice(sa,1);la.splice(ta,0,Na);ta++})}V=!0;fa=Granite.I18n.get("Select city");X.checkDealerStock={hasComponent:V,selectCity:fa,dataList:la};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 p(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,O,S){200==S.status&&V&&0<V.length&&V[0].code==X&&"INSTOCK"==V[0].stock.stockLevelStatus.toUpperCase()&&(1==V[0].stock.stockLevel?d.stockLevelStatusDisplay=Granite.I18n.get("There is 1 unit available"):2<=V[0].stock.stockLevel&&9>=V[0].stock.stockLevel?d.stockLevelStatusDisplay=Granite.I18n.get("There are {0} units available",V[0].stock.stockLevel):10<=V[0].stock.stockLevel&&"pe"==I&&(d.stockLevelStatusDisplay=Granite.I18n.get("More than 10 units available")))},
error:function(V,O,S){},complete:function(){t.finishedAPIList.stocklevel=!0;h(d,M,t)}})}function k(d,M,t){$("#categorySubTypeCode").val();va(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"===P&&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"==P||"hr"==P||"lv"==P||"lt"==P||"ee"==P)&&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"==P||"si"==P||"hr"==P||"lv"==P||"lt"==P||"ee"==P)&&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"==P&&(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"==P||"be"==P||"be_fr"==P)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"===P&&z.msrpPrice&&(t.commonModel.price.listPrice.value=
z.msrpPrice.value,t.commonModel.price.listPrice.formatted_value=z.msrpPrice.formattedValue);"co"==P&&(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"===P&&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"===P&&ca(d,
M,t);if(("ro"==P||"bg"==P)&&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),O=V.next();!O.done;O=V.next())switch(O=O.value,O.toUpperCase()){case "TRADE_IN":t.commonModel.tradeInData={hasData:!0,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:X};break;case "TRADE_UP":X||(X=!0,d.isTradeUp=X);t.commonModel.tradeInData={hasData:!0,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:X};break;case "INSURANCE":"in"===d.siteCode?d.samsungCarePackFlag||!typeof configuratorCare||I||(configuratorCare.setProductInfo(),I=!0):typeof configuratorCare&&
!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:O.toUpperCase()});break;case "BENEFIT":A(d,M,t);break;case "ACCESSORIES":(d.addonStepBuying04||d.addonStepBuying0701)&&d.newEmbedVDCountry&&window.sg.components.dynamic.bridgePageCommon.getRelatedProductsVdSimpleInfo(d.modelCode);
window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(d.modelCode);break;case "RENTAL":d.hasRentalInstallment=!0;break;case "POSTAL_CODE":O=d.util;d.deliveryPickup.deliverySiteCode.includes(d.siteCode)&&($(".pd-select-option--delivery-pickup").show(),O.settingDeliveryPickup(d,M));break;case "ABB":b(d,M,t)}var S=z.aemAdditionalInfoTypes;if(S&&0<S.length){V=X=I=!1;O=[];var Q={};S=$jscomp.makeIterator(S);for(var fa=S.next();!fa.done;Q={$jscomp$loop$prop$util$232$351:Q.$jscomp$loop$prop$util$232$351},
fa=S.next()){fa=fa.value;var la=fa.type?fa.type.toUpperCase():"";if("VOUCHER"===la)d.voucherdataHybris=fa.aemAdditionalInfos,d.hasVoucher=!0,window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(d.modelCode);else if("GIFT"===la)d.giftdataHybris=fa.aemAdditionalInfos,d.hasGift=!0,d.hasGiftPage=!0,window.sg.components.dynamic.freeGiftHybrisCommon.getRelatedProductsSimpleInfo(d.modelCode);else if("VDCOMBOMESSAGE"===la)d.vdcombodataHybris=fa.aemAdditionalInfos;else if("BOGO"===la&&
fa.aemAdditionalInfos&&0<fa.aemAdditionalInfos.length)for(var ma=$jscomp.makeIterator(fa.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,"skuPrice"===ta.key?t.commonModel.bogoData.bogoPrice=ta.value:"skuCode"===ta.key&&(t.commonModel.bogoData.bogoSku=ta.value);else if("UPGRADE_SKU"===la&&fa.aemAdditionalInfos&&0<fa.aemAdditionalInfos.length)for(ma=$jscomp.makeIterator(fa.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,"upgradeSKU"===ta.key&&(t.commonModel.upgradeData.sku=
ta.value);else if("SPECIALPRICEVALIDITY"===la){if("ee"===P||"lv"===P||"lt"===P)for(ma=$jscomp.makeIterator(fa.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,ta.key&&"SPECIALPRICEVALIDITYPERIOD"===ta.key.toUpperCase()&&(d.proudctPriceInfo.salesPitch=ta.value)}else if("PLANIDANDFREEGIFTPROMOTIONUNAVAILABLE"===la)for(I=!0,ma=$jscomp.makeIterator(fa.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,ta.planIdList&&0<ta.planIdList.length&&O.push.apply(O,$jscomp.arrayFromIterable(ta.planIdList));
else"TRADEINFREEGIFTPROMOTION"===la?X=!0:"SELLING_WITH_BEZEL"===la&&(Q.$jscomp$loop$prop$util$232$351=d.util,d.sellingWithBazel="true"==fa.aemAdditionalInfos[0].value?!0:!1,d.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(d.modelCode,function(ya){return function(sa,Na){var pa=[],a=[],c=[],m=[];Na&&null!=sa.products&&0<sa.products.length&&$.each(sa.products,function(f,q){var ba,J,ha,qa,ia,za="true"===(null==(ba=q.aemAdditionalInfoTypes[0])?
void 0:null==(J=ba.aemAdditionalInfos[0])?void 0:J.value)?null==(ha=q.aemAdditionalInfoTypes[0])?void 0:null==(qa=ha.aemAdditionalInfos[0])?void 0:null==(ia=qa.key)?void 0:ia.toUpperCase():"";ba=""!=q.picture.url?!0:!1;J=""==q.picture.url?!0:!1;ha=q.picture.url.replace("$ORIGIN_PNG$","");qa=q.stock.stockLevelStatus.toUpperCase();ia=" is-disabled";if("INSTOCK"==qa||"BACKORDERED"==qa||"PREORDER"==qa||"LOWSTOCK"==qa)ia="";""==d.bezelImageClass&&ba&&(d.bezelImageClass="pd-select-option__list--image-button");
f={index:f,modelCode:q.modelcode,name:q.colorName,value:q.colorCode,hasImage:ba,hasNotImage:J,imageUrl:ha,disabledClass:ia};"BEZEL_COLOR"===za?pa.push(f):"BEZEL_MODERN"===za?a.push(f):"BEZEL_BEVELLED"===za?c.push(f):"FREESTYLE_COLOR"===za&&m.push(f)});d.noneTypeList=pa;d.modernTypeList=a;d.beveledTypeList=c;d.freestyleList=m;ya.$jscomp$loop$prop$util$232$351.settingBezelOptionDraw(d,M)}}(Q),null,{queryType:"ADD_COLOR_FOR_VD"}));if("true"===$("#isEppPage").val()&&"de"===P&&"TRADEINFREEGIFTPROMOTION"===
la)for(X=!1,ma=$jscomp.makeIterator(fa.aemAdditionalInfos),ta=ma.next();!ta.done;ta=ma.next())ta=ta.value,ta.key&&"tradeinandfreegiftpromotionunavailable"===ta.key.toLowerCase()&&(tradeinandfreegiftpromotionunavailable=JSON.parse(ta.value));if("de"===P&&"STACKABLETRADEINFREEGIFTPROMOTION"===la)for(V=!1,fa=$jscomp.makeIterator(fa.aemAdditionalInfos),ta=fa.next();!ta.done;ta=fa.next())la=ta.value,la.key&&"stackabletradeinandfreegiftpromotionunavailable"===la.key.toLowerCase()&&(V=JSON.parse(la.value))}1==
d.hasGift&&I&&(d.hasPlanIDAndFreeGiftPromotion=!0,d.giftSelectionSkipPlanIdList=O);1==d.hasGift&&X&&(d.hasTradeInFreeGiftPromotion=!0);1==d.hasGift&&V&&(d.hasStackbleTradeInFreeGiftPromotion=!0)}"true"===$("#isEppPage").val()&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&window.sg.epp.common.usePosQty&&(d.walkoutQty=0,d.homeDeliveryQty=0,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,O="";$("#shopParmLang").val()&&(O="\x26lang\x3d"+$("#shopParmLang").val());z=z+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+X+"/offers?fields\x3dSIMPLE_INFO"+O;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,fa,la){Q&&Q.benefits&&0<Q.benefits.length?(d.isSECZ&&0!==d.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+d.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+d.calculateInstallmentPeriod),fa={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(fa)),"Y"===
$("#typeux2025").val()?D(Q.benefits,d,M,t,"sku"):g(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"):g(Q.benefits,d,M,t));S=Q},error:function(Q,fa,la){},complete:function(){t.finishedAPIList.offers=!0;var Q=d.pdChildModelCnt;d.pdPackageYn&&0<Q?K(d,M,t):t.finishedAPIList.childOffers=!0;"cn"===I&&window.sg.components.dynamic.productInstallmentWithGiftPD.getInstallmentWithGiftAPI(S,d,M);"in"===I&&window.sg.components.productLivedemo.getOfferBenefitsApiData(S.benefits);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};ea(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 O=0,S={},Q=0;Q<V;S={$jscomp$loop$prop$apiURL$353:S.$jscomp$loop$prop$apiURL$353,$jscomp$loop$prop$childSet$354:S.$jscomp$loop$prop$childSet$354},Q++){var fa=document.querySelector("#pdChidleModel0"+
(Q+1)),la=fa.dataset.code;S.$jscomp$loop$prop$childSet$354={code:la,name:fa.dataset.name,main:fa.dataset.main,displayName:fa.dataset.displayName};d.pdChildModelList.push(S.$jscomp$loop$prop$childSet$354);S.$jscomp$loop$prop$apiURL$353=I+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+la+"/offers?fields\x3dSIMPLE_INFO"+X;(function(ma){return function(ta){$.ajax({url:ma.$jscomp$loop$prop$apiURL$353,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,
timeout:2E4,success:function(ya,sa,Na){if(ya&&ya.benefits&&0<ya.benefits.length){0===O&&(z.childList=[]);z.childList.push({hasComponent:!0,childCode:ma.$jscomp$loop$prop$childSet$354.code,displayName:ma.$jscomp$loop$prop$childSet$354.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())D(ya.benefits,d,M,t,"child",O);else if(ya=ya.benefits,sa=O,t.comboCount=0,ya&&0<ya.length){Na=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&&(Na+=1);if(4>Na){var m=sa+""+Na;"BOGO"===c?C(a,m,d,M,t,"child",sa):c||R(a,m,d,M,t,"child",sa)}}0===Na&&d.drawObj.offer.childList.splice(sa)}O=z.childList.length}},error:function(ya,sa,Na){},complete:function(){ta===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(),O=M.isSEBN,S=2;O&&(S=4);if(d&&0<d.length){var Q=0,fa;for(fa in d){var la=d[fa],ma=la.type?
la.type.toUpperCase():"",ta=$.trim(la.offerText||""),ya=$.trim(la.title||"");""!=ya||O||(ya=$.trim(la.description||""));$.trim(la.linkText||"");$.trim(la.url||"");var sa=!1;"INSTALLMENT"!==ma&&("uk"===V||"in"===V?""!==ya&&""!==ta&&(sa=!0,"in"===V&&"LIVE_DEMO"===ma&&(sa=!1)):""!==ya&&(sa=!0));sa?(Q+=1,Q<=S&&("child"===I?y(la,X+""+Q,M,t,z,"child",X):y(la,fa,M,t,z))):"child"!=I&&"INSTALLMENT"===ma&&ea(la,fa,M,t,z)}"child"===I&&0===Q&&M.drawObj.offer.childList.splice(X)}}function g(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 O=d[V];M.commonApiModel.fetchNewOfferFormat(O);var S=O.type?O.type.toUpperCase():"";if("COMBO"===S)X+=1,z.finishedAPIList.comboAPIFlag=!1,z.comboCount++,M.commonApiModel.callRelatedAndSearch(M.modelCode,E,{sharedObj:M,promotion:O,newbirsObj:z,selectorObj:t,index:V},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===S){X+=1;S=V;var Q=M,fa=Q.siteCode,la=Q.drawObj.offer,ma=Q.financingUrl,ta=T(O,Q).iconAlt,
ya="offer-emi emi-index-"+S,sa=[];Q.financingEligible=!0;ma&&(Q.emiCalculatorUrl=ma);O.description&&sa.push(O.description);if(0<sa.length){var Na=ma=null,pa=null;"id"!==fa&&"ee"!==fa&&"lt"!==fa&&"lv"!==fa&&"pl"!==fa||!O.description||(ma=O.description);if("in"===fa||"uk"===fa||"lt"===fa||"id"===fa||"lv"===fa||"ee"===fa||"pl"===fa||"hu"===fa||"ro"===fa||"bg"===fa||"ua"===fa||"ph"===fa||"sg"===fa||"my"===fa||"nz"===fa||"sk"===fa||"cz"===fa||"cn"===fa||"co"===fa||"cl"===fa||"mx"===fa)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"===fa?(Na=a,pa={label:Granite.I18n.get("Learn more"),labelAnalytics:a.toLowerCase().replace(/"/g,"")}):(pa={labelAnalytics:a.toLowerCase().replace(/"/g,"")},pa.label="id"===fa||"ee"===fa||"lt"===fa||"lv"===fa||"pl"===fa?Granite.I18n.get("Learn more"):a):Na=a}else Na=sa.join("");la.promotionFinance.push({offerIndex:S,title:"finance",hasItem:!0,item:{contentWrapperClass:ya,iconAttr:{alt:ta},
description:{text:ma,hasDescription:null!=ma},emiText:Na,cta:pa,hasCta:null!=pa},newFormat:O.newFormat})}}else"BOGO"===S?(X+=1,C(O,V,M,t,z)):S||"cn"===P&&("cn"!==P||O.benefitGroup)||(X+=1,R(O,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 O=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=O?dateFormat(d.startDate.split("T")[0],O)+" ~ "+dateFormat(d.endDate.split("T")[0],O):d.startDate.split("T")[0]+" ~ "+d.endDate.split("T")[0]);var Q=O="";if(I=I.commonModel.bogoData.bogoPrice)O=currencyComma(I,X),"nl"!==P&&"be"!==P&&"be_fr"!==P&&(Q=Granite.I18n.get("Save {0}",O));X=currencyComma(0,X);"true"===$("#isEppPage").val()&&"pl"===P&&(Q=O="");d={offerIndex:M,title:"bogo",
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:O,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,O=M.util,S=M.view,Q=t.promotion,fa=M.pdTimeformatFront,la=T(Q,M),ma=t.selectorObj;t=t.newbirsObj;var ta=M.siteCode,ya="",sa="";X&&(la.promoIconFlag&&
(sa=la.iconImgName),X=[],Q.description?X.push({text:Q.description}):X.push({text:Granite.I18n.get("Select combo bundle option")}),la={layerTarget:"shopComboPopup"},la.comboIdx=M.globalComboData.length,O=O.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",la,""),Q.startDate&&Q.endDate&&(ya=fa?dateFormat(Q.startDate.split("T")[0],fa)+" ~ "+dateFormat(Q.endDate.split("T")[0],fa):Q.startDate.split("T")[0]+" ~ "+Q.endDate.split("T")[0],"id"===ta&&(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:O},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,ma,t)}function T(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=T(d,t);t=X.iconAlt;var O=X.promoIconFlag,S=X.iconImgName;X="offer-promotion promotion-index-"+M;V=[];I=null;d.description&&
V.push(d.description);O&&(I="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+S+".svg");S=null;if(!d.newFormat){O="";for(S=0;S<V.length;S++)O+=V[S].replace("\x3ca","\x3ca target\x3d'_blank'");S=[];S.push({target:"."+X.replace(" ",".")+" .pd-offer__desc",text:O})}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 O=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||O||(X=V);V=$.trim(d.linkText||"");var Q=$.trim(d.url||"");"uk"!==I&&"in"!==I&&""!==Q&&(V=Granite.I18n.get("Learn more"));var fa=!1;"uk"===I||"in"===I?""!==X&&""!==t&&(fa=!0):""!==X&&(fa=!0);if(fa){fa=62;""!==
V&&""!==Q&&(fa=53);O&&(fa=100);if(X.length>fa){var la=X;X=ellipsize(X,fa)}X=X.replace(/</g,"\x26lt;");X=X.replace(/>/g,"\x26gt;");null!=la&&(la=la.replace(/</g,"\x26lt;"),la=la.replace(/>/g,"\x26gt;"));fa=O&&""!==t?!0:!1;var ma=$.trim(d.startDate||"");d=$.trim(d.endDate||"");O=O&&""!==ma&&""!==d?!0:!1;var ta;fa&&("nl"===I||"be"===I?ta='Bekijk \x3ca href\x3d"'+t+'" target\x3d"_blank"\x3ehier\x3c/a\x3e de actievoorwaarden':"be_fr"===I&&(ta='Consultez \x3ca href\x3d"'+t+'" target\x3d"_blank"\x3eici\x3c/a\x3e les conditions de l\'offre promotionnelle'));
var ya;O&&(ya=Granite.I18n.get("Promotion period: {0} to {1}",[ma,d]));z.promotionMessage.push({offerIndex:M,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:S,offerTitle:X,offerTooltip:la,linkEnabled:""!==V&&""!==Q,linkText:V,linkUrl:Q,hasTCCTA:fa,tcCTAText:ta,hasPeriod:O,periodText:ya}})}}function ea(d,M,t,z,I){var X=t.siteCode;z=t.drawObj.offer;var V=t.financingUrl;I="offer-emi emi-index-"+M;var O=[];t.financingEligible=!0;V&&(t.emiCalculatorUrl=V);d=$.trim(d.description||"");""!==d&&
O.push(d);if(0<O.length){V=null;var S=!1,Q=!1,fa=!1,la=null;if("de"===X||"in"===X||"uk"===X||"lt"===X||"id"===X||"lv"===X||"ee"===X||"pl"===X||"hu"===X||"ro"===X||"bg"===X||"ua"===X||"ph"===X||"sg"===X||"my"===X||"nz"===X||"sk"===X||"cz"===X||"cn"===X||"co"===X||"cl"===X||"mx"===X)for(t.promotionFinancingFlag=!0,t=0;t<O.length;t++){var ma=O[t].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");la=ma;0>ma.indexOf("\x3ca")&&("in"===X?(Q=!0,V={label:Granite.I18n.get("Learn more")}):"id"===X||"ee"===X||
"lt"===X||"lv"===X||"pl"===X?(Q=!0,V={label:Granite.I18n.get("Learn more")}):S=!0)}else fa=!0,la=O.join("");if(!fa){t=62;Q&&(t=53);if(la.length>t){var ta=d;la=ellipsize(la,t)}null!=la&&(la=la.replace(/</g,"\x26lt;"),la=la.replace(/>/g,"\x26gt;"));null!=ta&&(ta=ta.replace(/</g,"\x26lt;"),ta=ta.replace(/>/g,"\x26gt;"))}z.promotionFinance.push({offerIndex:M,title:"finance",hasItem:!0,item:{contentWrapperClass:I,offerTooltip:ta,emiText:la,cta:V,hasCta:Q,hasLink:S,hasDesc:fa}})}}function va(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,O=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?(O.disabledOptionElement(M.buyingToolOptTariff,d),O.disabledOptionElement(M.buyingToolOptUpgrade,d),O.disabledOptionElement(M.buyingToolOptOffer,d),O.disabledOptionElement(M.buyingToolOptTradeIn,d),d.accessoryDisabled=!0,V.hasPriceWrapper=!1):V.hasPriceWrapper=!0}function oa(d,M,t){M=t.commonModel.price.lowestInstallmentAmount;var 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,O=t.commonModel.price.salePrice.value,S=t.commonModel.price.salePrice.formatted_value,Q=t.commonModel.price.leasingInfo,fa=t.commonModel.price.saveText,la=t.commonModel.price.tradeInPriceText,ma=d.priceCurrency,ta=d.siteCode,ya=t.commonModel.price.vatFreePrice.value,sa=t.commonModel.price.vatFreePrice.formatted_value,
Na=t.commonModel.price.frequentPrice.value,pa=t.commonModel.price.frequentPrice.formatted_value;X&&(d.proudctPriceInfo.orignalPrice=X);V?d.proudctPriceInfo.orignalPriceFormatted=V:X&&(d.proudctPriceInfo.orignalPriceFormatted=currencyComma(X,ma));d.proudctPriceInfo.salePrice=O?O:X;d.proudctPriceInfo.salePriceFormatted=S?S:O?currencyComma(O,ma):d.proudctPriceInfo.orignalPriceFormatted;d.vatEligible&&sa&&(d.proudctPriceInfo.vatFreePrice=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);Na&&(d.proudctPriceInfo.frequentPrice=Na,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);fa&&(d.proudctPriceInfo.rowCodeformattedPriceSave=fa);la&&(d.proudctPriceInfo.salePriceFormatted=la);if("nl"===ta||"be"===ta||"be_fr"===ta||"true"===$("#isEppPage").val()&&"pl"===ta)M=t.commonModel.price.listPrice.formatted_value,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 da(d,M,t,z,I,X){var V=d.apiDomain,O=d.siteCode,S=z[0],Q=!1,fa="";$("#shopParmLang").val()&&(fa="\x26lang\x3d"+
$("#shopParmLang").val());t.finishedAPIList[X]=!1;z=V+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products/"+S+"/**?fields\x3dSIMPLE_INFO"+fa;"in"==d.siteCode&&(z=V+"/tokocommercewebservices/v2/"+d.siteCodeWithEpp+"/products?productCodes\x3d"+S+"\x26fields\x3dSIMPLE_INFO"+fa,B(d));V="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};var la;$.ajax({url:z,type:"GET",cache:!0,crossDomain:!0,xhrFields:V,dataType:"json",
timeout:2E4,success:function(ma,ta,ya){"in"==d.siteCode&&ma&&(ma=ma[0]);ma&&ma.code&&(-1==$.inArray("BROADBAND_PLAN",ma.supportedAvailableServices)&&isNotEmpty(tariffData)&&tariffData.BROADBAND_CACHE.returnObject&&tariffData.removeBroadbandCache(),Q=!0,t.apiData[ma.code]=ma,la=ma.aemAdditionalInfoTypes)},error:function(ma,ta,ya){d.newHybrisSalesStatus=!1},complete:function(){t.finishedAPIList[X]=!0;I(d,M,t,Q);if("in"===O){var ma=la;window.sg.components.productLivedemo.setLivedemoWrapEmpty();window.sg.components.productVideoCarousel.getFireworkApiData(ma)}}})}
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&&N(V,d,M,t)},error:function(V){}})}}function N(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,O,S,Q,fa,la,ma,ta,ya,sa,Na;return $jscomp.asyncExecutePromiseGeneratorProgram(function(pa){if(1==pa.nextAddress)return z=d.newAssuredBuyBackList,pa.yield(r(d,M,t),2);I=pa.yieldResult;O=null==(X=I)?void 0:null==(V=X.serviceProductDataGroup)?void 0:V.serviceProducts[0];if(I.serviceProductDataGroup&&O&&O.serviceProductVariants&&0<O.serviceProductVariants.length){S=O.serviceProductVariants;Q=$jscomp.makeIterator(S);for(fa=Q.next();!fa.done;fa=Q.next())if(la=
fa.value)ma=la.name,ta=la.code,ya="",la.priceData&&la.priceData.value&&(ya=currencyComma(la.priceData.value,d.priceCurrency)),sa=la.stock&&la.stock.stockLevelStatus&&"outofstock"==la.stock.stockLevelStatus.toLowerCase()?"OOS":"",Na={index:z.length+1,title:ma,priceDisplay:ya,sku:ta,productItem:la,stockStatus:sa},z.push(Na);var a=d.util,c=d.view,m=d.newAssuredBuyBackFlag,f=d.newAssuredBuyBackList,q=Granite.I18n.get("Learn more");a=a.getAttrCta(q,"javascript:;","","",{layerTarget:"assuredBuyBackInfoPopup"},
"");m&&(d.drawObj.newAssuredBuyBack={hasComponent:m,title:Granite.I18n.get("Samsung Assured Buyback"),description:Granite.I18n.get("Get up to 70% resale value with Assured Buyback"),itemSet:f,learnMoreCta:a,yesAttr:{"class":null,text:null,subText:"",layerTarget:""},noAttr:{"class":null,text:"None",layerTarget:"",eventType:"newAssuredBuyBack"}},c.newAssuredBuyBackDraw(d.drawObj))}pa.jumpToEnd()})}function r(d,M,t){var 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(O){d.newAssuredBuyBackFlag=!0;X(O)}).fail(function(O){V(O)})})}var G=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
P=$("#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;da(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"===P||"au"===P||"cn"===P||"tr"===P||d.useNewAddToCartApi)d.globalServiceInfo&&
d.globalServiceInfo.gift&&d.globalServiceInfo.gift.modelCode?V=d.globalServiceInfo.gift:X&&(V={modelCode:X.modelCode});var O=new G.BuyingToolOpAjaxHybris,S=l(d,M,t,z,I),Q=d.isMiniCart,fa={clickDom:d.clickDom,isMiniCart:Q,isContinue:I},la=d.modelCode,ma="",ta="";z&&(ma=-1<d.cartUrl.indexOf("https://")||-1<d.cartUrl.indexOf("http://")?d.cartUrl:d.apiDomain+d.cartUrl,ma=na(d),ma="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":ma,Q&&(fa.cartUrl=ma,ma="",
ta=function(ya,sa,Na){Na.isMiniCart&&window.sg.minicart&&!Na.isContinue?(window.sg.minicart.open(Na.cartUrl,d.clickTarget),d.btnClickFlagAddCartContinue=!0):location.href=Na.cartUrl}));I&&(la="");I||z||(ta=function(ya,sa,Na){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(Na.clickDom)});"uk"==P||"cn"==P||"tr"==P||d.useNewAddToCartApi?(V&&(S.gift=V),addToCartNewHybris(la,ma,ta,S,fa)):(O.callAddToCartCta(d,M,t,z,I,X),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(fa.clickDom))};
Z.prototype.callCheckOutCta=function(d,M,t,z,I,X){var V=new G.BuyingToolOpAjaxHybris,O=l(d,M,t,z,I),S=d.isMiniCart,Q={clickDom:d.clickDom,isMiniCart:S,isContinue:I},fa=d.modelCode,la="",ma="";z||"id"===P&&(z=!0);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,S&&(Q.cartUrl=la,la="",ma=function(sa,Na,pa){pa.isMiniCart&&window.sg.minicart&&
!pa.isContinue?(window.sg.minicart.open(pa.cartUrl,d.clickTarget),d.btnClickFlagAddCartContinue=!0):location.href=pa.cartUrl}));I&&(fa="");I||z||(ma=function(sa,Na,pa){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(pa.clickDom)});S=$("#pd-leasing-1").prop("checked");var ta="be"===P||"be_fr"===P||"nl"===P||"fr"===P,ya=new G.BuyingToolOpAjaxNewbris;ta&&S?ya.callAddToCartCta(d,M,t,z,I,X):"uk"==P||"cn"==P||"tr"==P||d.useNewAddToCartApi?addToCartNewHybris(fa,la,ma,O,Q):(V.callAddToCartCta(d,
M,t,z,I,X),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(Q.clickDom))};G.BuyingToolOpAjaxNewbris=Z})();
(function(){function l(){var g="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/"+g+"/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(g){var C="";$.each(g,function(E,T){T.preselected&&(C||(C=E),C<E&&(C=E))});return C}function H(g){var C={consents:[],product_type:""};C.discounted_sku=g.smcCode;C.modelCode=g.smcCode;C.product_display_name="";C.msrp_price={};C.msrp_price.value=g.price;C.msrp_price.formatted_value="";C.msrp_price.duration="";g.duration&&0<g.duration&&(C.msrp_price.duration=g.duration);C.msrp_price.paymentcycle="";g.paymentCycle&&"monthly"==g.paymentCycle.toLowerCase()&&(C.msrp_price.paymentcycle=
g.paymentCycle.toLowerCase());C.sale_price={};C.sale_price.value=g.promotionPrice?g.promotionPrice:g.price;C.sale_price.formatted_value="";C.sale_price.duration="";g.duration&&0<g.duration&&(C.sale_price.duration=g.duration);C.sale_price.paymentcycle="";g.paymentCycle&&"monthly"==g.paymentCycle.toLowerCase()&&(C.sale_price.paymentcycle=g.paymentCycle.toLowerCase());return C}function u(g,C,E,T){var R=C.siteCode,y=C.priceCurrency,ea=$(C.buyingToolOptUpgradeResult).find(".result-price"),va=C.drawObj,
ra=C.util,oa=C.openPromoTaxParam,da=C.isHybrisSplitPD,na=C.isHybrisSplitPDTradeIn,L=C.splitPDTradeInSpecial,N=C.splitPDTradeInSpecialMsg,b=C.isMultiTradeIn&&va.tradeInResult.list?va.tradeInResult.list:[];$("#categorySubTypeCode").val();var r="hr"===R||"si"===R,G={},P="",Z=0,d=0,M="",t=0,z=0,I=0,X=0,V=!1,O=!1,S=!1,Q=null,fa=null,la=null,ma=null,ta=null,ya=null,sa=null,Na="",pa=null,a=0,c=null,m=null,f=null,q=null,ba=null,J=0;if(g){S=g.discount&&g.value;var ha=W(g,C,S);V=ha.tradeinDiscountYn;P=ha.modelAndBrand;
M=ha.StrOrignalDisplayPrice;t=ha.orignalDisplayPrice;I=ha.orignalCashBackPrice;X=ha.orignalTotalPrice;d=ha.displayPrice;z=ha.cashBackPrice;Q=ha.priceText;a=ha.enhancedDiscountAmount;J=ha.eventAmountPrice;var qa=g.additionalDiscountFlag||!1;if("ca"===R||"ca_fr"===R){var ia=[];g.displayBrandName&&ia.push(g.displayBrandName);g.displayModelName&&ia.push(g.displayModelName);P=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&&(fa=currencyComma(t,y)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")");0<a&&(la=currencyComma(a,y)+" ("+Granite.I18n.get("Promotional Trade-in Credit")+")")}else if("ae"===R||"ae_ar"===R||"sa"===R||"sa_en"===R){var za=[];g.displayBrandName&&za.push(g.displayBrandName);g.displayModelName&&za.push(g.displayModelName);P=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+za.join(" | ");d=0;C.instantDiscount=
"Y"==g.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."),fa=currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")");if(C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(I,y);var Ha=[];g.displayBrandName&&Ha.push(g.displayBrandName);g.displayModelName&&Ha.push(g.displayModelName);var Fa="";g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice));
var Ca={index:b.length,count:b.length+1,displayModelName:Ha.join(" | "),discountPriceText:currencyComma(I,y),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,specialInstantDiscountYn:g.specialInstantDiscountYn};-1<C.checkedIndex?(Ca.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ca)):b.push(Ca)}}else if("pk"===R){var Ia=[];g.displayBrandName&&Ia.push(g.displayBrandName);g.displayModelName&&
Ia.push(g.displayModelName);P=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+Ia.join(" | ");if(C.isMultiTradeIn){t=parseFloat(g.value.price);Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,y);Fa="";g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice));var Ta=[];g.displayBrandName&&Ta.push(g.displayBrandName);g.displayModelName&&Ta.push(g.displayModelName);var Oa={index:b.length,count:b.length+1,displayModelName:Ta.join(" | "),discountPriceText:currencyComma(I,
y),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,specialInstantDiscountYn:g.specialInstantDiscountYn};-1<C.checkedIndex?(Oa.index=C.checkedIndex,b.splice(C.checkedIndex,1,Oa)):b.push(Oa)}}else if("de"===R){g.openPromoTax?O=g.openPromoTax:oa&&(O=oa);C.tradeInSelectPrice=I+t;if(C.isMultiTradeIn){var ka=C.hasStackbleTradeInFreeGiftPromotion;va.tradeInResult.hasComponent||(ka=!1);ka&&(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"),O&&0!==I&&(fa=Granite.I18n.get("Inkl. {0} Tauschpr\u00e4mie | Direktabzug im Warenkorb",
currencyComma(I,y))),ra.hasUpgradeResult&&(Z=parseFloat(ea.attr("data-price"))-parseFloat(C.tradeInSelectPrice),ea.attr("data-price",Z),$(ea).find(".option-result__text").innerHTML=currencyComma(parseFloat(Z/24),y)+" / "+Granite.I18n.get("month")));if(C.isMultiTradeIn){var Ja=[];g.displayBrandName&&Ja.push(g.displayBrandName);g.displayModelName&&Ja.push(g.displayModelName);Fa="";if(g.tradeInSpecialPrice){var Da=""+Granite.I18n.get("Total Discount");Fa=parseFloat(g.tradeInSpecialPrice);d+=Fa;var La=
g.priceInfos;if(0<La.length){var Qa="";$.each(La,function(yb,ab){Qa+=ab+"\x3cbr\x3e"});sa=Qa+="("+Granite.I18n.get("Upfront discount",null,null)+")"}}else sa="("+Granite.I18n.get("Upfront discount")+")";var Ma={index:b.length,count:b.length+1,displayModelName:Ja.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,discountPriceTextTile:Da,specialDiscountText:sa,discountPrice:parseFloat(t),specialPrice:Fa,priceinfodesc:Qa,
provider:g.provider,closedDiscountAmount:parseFloat(g.closedDiscountAmount?g.closedDiscountAmount:0)};-1<C.checkedIndex?(Ma.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ma)):b.push(Ma);if(ra.hasUpgradeResult){var Sa=b.reduce(function(yb,ab){return yb+parseInt(ab.dataPrice)},0);Z=parseFloat(ea.attr("data-price"))-parseFloat(Sa);ea.attr("data-price",Z);$(ea).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="",g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice),Q=Granite.I18n.get("Total Cashback")+": "+currencyComma(parseFloat(X)+parseFloat(g.tradeInSpecialPrice),y),fa="-"+currencyComma(X,y)+" ("+Granite.I18n.get("Old device value")+")",la="-"+currencyComma(g.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional value")+")"),"instantDiscount"!=g.discountMode&&(d=0)),C.isMultiTradeIn){var Ra="",Va="";g.tradeInSpecialPrice?(Ra=""+currencyComma(parseFloat(X)+parseFloat(g.tradeInSpecialPrice),
y),Q=(g.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(g.tradeInSpecialPrice),y)):(Ra=""+currencyComma(parseFloat(X),y),Q="");var Y=F(" | ",g.displayBrandName,g.displayModelName);g.isGuaranteedTradeIn&&g.tradeInSpecialPrice&&(d=g.tradeInSpecialPrice);var ja=""+Granite.I18n.get("Total Discount"),Aa={index:b.length,count:b.length+1,displayModelName:Y,
discountPriceText:Ra,discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:Va,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:ja,isGuaranteedTradeIn:g.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(Aa.index=C.checkedIndex,b.splice(C.checkedIndex,1,Aa)):b.push(Aa)}}else if("sk"===R){if(V||(Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,y),Fa="",g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice),Q=Granite.I18n.get("Total Discount")+
": "+currencyComma(parseFloat(X)+parseFloat(g.tradeInSpecialPrice),y),fa="-"+currencyComma(X,y)+" ("+Granite.I18n.get("Old device value")+")",la="-"+currencyComma(g.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional value")+")",d=parseFloat(X+g.tradeInSpecialPrice)),"instantDiscount"!=g.discountMode&&(d=0,Q=Granite.I18n.get("Total Discount")+": "+currencyComma(X,y))),C.isMultiTradeIn){var Ba="",Ga="";g.tradeInSpecialPrice?(Ba=""+currencyComma(parseFloat(X)+parseFloat(g.tradeInSpecialPrice),
y),Q=(g.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(X),y),Ga=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(g.tradeInSpecialPrice),y)):(Ba=""+currencyComma(parseFloat(X),y),Q="");var ua=F(" | ",g.displayBrandName,g.displayModelName);g.isGuaranteedTradeIn&&g.tradeInSpecialPrice&&(d=g.tradeInSpecialPrice);var Ea=""+Granite.I18n.get("Total Discount"),Ka={index:b.length,count:b.length+1,displayModelName:ua,
discountPriceText:Ba,discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:Ga,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:Ea,isGuaranteedTradeIn:g.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(Ka.index=C.checkedIndex,b.splice(C.checkedIndex,1,Ka)):b.push(Ka)}}else if("lv"===R||"lt"===R||"ee"===R)g.tradeInSpecialPrice?(c=currencyComma(X,y)+" ("+Granite.I18n.get("Your device trade-in value")+")",m=currencyComma(g.tradeInSpecialPrice,
y)+" ("+Granite.I18n.get("Additional bonus")+")",Q=Granite.I18n.get("Total trade amount")+" : "+currencyComma(X+g.tradeInSpecialPrice,y),d=parseFloat(X+g.tradeInSpecialPrice)):(Q=currencyComma(X,y),d=X),"instantDiscount"!=g.discountMode&&(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&&(fa=currencyComma(I,y)+" ("+Granite.I18n.get("Additional exchange discount")+")")),C.isMultiTradeIn){Q=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(t,y);var wa=[];g.displayBrandName&&wa.push(g.displayBrandName);g.displayModelName&&wa.push(g.displayModelName);Fa="";g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice));var xa={index:b.length,count:b.length+1,displayModelName:wa.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:z,
dataQuoteId:g.tradeinId,dataId:g.consents,services:g,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=g.commonTradein;var Xa="";g.tradeInSpecialPrice&&(Xa=parseInt(g.tradeInSpecialPrice));if(C.isMultiTradeIn){var Ua=[];g.displayBrandName&&Ua.push(g.displayBrandName);g.displayModelName&&Ua.push(g.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=g.abondementAmount,bb="",Ya=g.spotGuaranteeAmount,Za="";g.spotGuaranteeAmount||g.abondementAmount||
g.tradeInSpecialPrice||(Q="");g.spotGuaranteeAmount&&(Za="+"+currencyComma(g.spotGuaranteeAmount,y)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (offre de reprise garantie)"));g.abondementAmount&&(bb="+"+currencyComma(g.abondementAmount,y)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (abondement)"));g.tradeInSpecialPrice&&(sa="+"+currencyComma(parseInt(g.tradeInSpecialPrice),y)+" "+Granite.I18n.get("de bonus reprise"));var cb={index:b.length,count:b.length+1,displayModelName:Ua.join(" | "),
discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Xa,discountPriceTextTile:Pa,abondementAmount:Wa,abondementAmountText:bb,spotGuaranteeAmount:Ya,spotGuaranteeAmountText:Za};-1<C.checkedIndex?(cb.index=C.checkedIndex,b.splice(C.checkedIndex,1,cb)):b.push(cb)}Xa&&(sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Xa,y),X=parseFloat(X)+parseFloat(Xa),
d+=Xa)}else if("be"===R||"be_fr"===R||"nl"===R){g.tradeinId=g.tradeinInfo.id;Da=""+Granite.I18n.get("Total Discount");Q=currencyComma(t,y)+" ("+Granite.I18n.get("Regular Exchange Value")+")";var ib="";g.tradeInSpecialPrice&&(ib=parseInt(g.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=[];g.displayBrandName&&$a.push(g.displayBrandName);g.displayModelName&&$a.push(g.displayModelName);
var pb={index:b.length,count:b.length+1,displayModelName:$a.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,discountPriceTextTile:Da,specialDiscountText:sa,dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,isGuaranteedTradeIn:g.isGuaranteedTradeIn||!1};-1<C.checkedIndex?(pb.index=C.checkedIndex,b.splice(C.checkedIndex,1,pb)):b.push(pb)}}else if("sk"===R||"cz"===R)g.tradeInSpecialPrice?(c=currencyComma(X,y)+" ("+Granite.I18n.get("Your device value")+")",
m=currencyComma(g.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional bonus")+")",Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X+g.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,zb=0;0<g.tradeInAdditionalInfo.length&&($.each(g.tradeInAdditionalInfo,function(yb,ab){"discountAmount"===ab.key&&(kb=parseFloat(ab.value));"additionalDiscount"===ab.key&&(gb=parseFloat(ab.value))}),
zb=kb+gb,Q=0<kb?currencyComma(kb,y):null,fa=0<gb?currencyComma(gb,y):null);Na=currencyComma(zb,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 Cb=[];g.displayBrandName&&Cb.push(g.displayBrandName);g.displayModelName&&Cb.push(g.displayModelName);var hb={index:b.length,count:b.length+1,displayModelName:Cb.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,dataPrice:d,dataCashBack:z,
dataQuoteId:g.tradeinId,imeiKey:g.imeiKey,dataId:g.consents,services:g};-1<g.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 ub=[];g.displayBrandName&&ub.push(g.displayBrandName);g.displayModelName&&ub.push(g.displayModelName);Fa="";z=I;d=0;g.tradeInSpecialPrice&&(Fa=parseFloat(g.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:ub.join(" | "),dataPrice:d,dataCashBack:I,dataQuoteId:g.tradeinId,dataId:g.consents,imeiKey:g.imeiKey,services:g,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=g.discount.price.replace(/\u20b4/g,"").trim(),Q=Granite.I18n.get("Approximate estimated cost")+" : "+z+" "+Granite.I18n.get("\u0433\u0440\u043d"),zb=gb=kb=0,0<g.tradeInAdditionalInfo.length&&($.each(g.tradeInAdditionalInfo,function(yb,ab){"discountAmount"===ab.key&&(kb=parseFloat(ab.value));"additionalDiscount"===ab.key&&(gb=parseFloat(ab.value))}),0<gb?(zb=kb+gb,d=gb,Q=Granite.I18n.get("Approximate estimated cost ETI")+" : "+currencyComma(zb,
y).replace(/\u20b4/g,"").trim()+" "+Granite.I18n.get("\u0433\u0440\u043d"),fa="("+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&&(fa="-"+currencyComma(t,y)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")"),0<a?la="-"+currencyComma(a,y)+" ("+Granite.I18n.get("Overtrade bonus")+")":g.tradeInSpecialPrice&&(void 0!=b&&(0==b.length||0<b.length&&"0"==C.checkedIndex)&&(X=parseFloat(X)+parseFloat(g.tradeInSpecialPrice)),Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,y),la="-"+currencyComma(parseFloat(g.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 Db="",db="";g.tradeInSpecialPrice?void 0==b||0<b.length&&"0"!=C.checkedIndex?(Db=""+currencyComma(parseFloat(t),y),Q=""):(Db=""+currencyComma(parseFloat(X),y),Q=(g.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(t),y),db=Granite.I18n.get("Additional value")+
" "+currencyComma(parseFloat(g.tradeInSpecialPrice),y)):(Db=""+currencyComma(parseFloat(X),y),Q="");var lb=F(" | ",g.displayBrandName,g.displayModelName);g.isGuaranteedTradeIn&&g.tradeInSpecialPrice&&(d=g.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:Db,discountText1:Q,dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:db,
discountPrice:parseFloat(d),specialPrice:g.tradeInSpecialPrice,discountPriceTextTile:eb,isGuaranteedTradeIn:g.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 Ub="eur"===C.priceCurrency.toLowerCase()?v(d):n(d);Q+=" / "+Ub}}else if("jp"===R)g.tradeinId=g.tradeinInfo.id,f=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(g.tradeInAdditionalInfo,function(yb,ab){"vendorDiscount"===ab.key&&(ob=ab.value)});0!=ob&&(fa=
Granite.I18n.get("Trade in discount from partner: Shans")+": "+currencyComma(ob,y),d+=parseFloat(ob));if(C.isMultiTradeIn){var cc=[];g.displayBrandName&&cc.push(g.displayBrandName);g.displayModelName&&cc.push(g.displayModelName);var Yb={index:b.length,count:b.length+1,displayModelName:cc.join(" | "),discountPriceText:currencyComma(d,y),discountText1:Q,discountText2:fa,dataPrice:d,dataTotalPrice:X,dataCashBack:z,dataQuoteId:g.tradeinId,imeiKey:g.imeiKey,dataId:g.consents,provider:g.provider,services:g};
-1<C.checkedIndex?(Yb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Yb)):b.push(Yb)}}else if("tr"==R){var Lb=Granite.I18n.get("Total Cashback"),Nb="",Ob="",Gb=!1,Zb=!0;if(V){Nb=""+currencyComma(parseFloat(X),y);if(0==b.length||0==C.checkedIndex)Gb=!0,Zb=!1;g.tradeInSpecialPrice?(Nb=""+currencyComma(parseFloat(X)+parseFloat(g.tradeInSpecialPrice),y),Q=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),y),Ob=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(g.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));fa=""+currencyComma(parseFloat(X),y);la=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(X),y);z=X;if(C.isMultiTradeIn){var gc=[];g.displayBrandName&&gc.push(g.displayBrandName);g.displayModelName&&gc.push(g.displayModelName);var hc={index:b.length,count:b.length+1,displayModelName:gc.join(" | "),discountPriceTextTile:Lb,
discountPriceText:Nb,discountText1:Q,discountText2:fa,discountText3:la,dataPrice:d,dataTotalPrice:X,dataCashBack:z,dataQuoteId:g.tradeinId,imeiKey:g.imeiKey,dataId:g.consents,provider:g.provider,services:g,firstcheck:Gb,othercheck:Zb,specialDiscountText:Ob};-1<C.checkedIndex?(hc.index=C.checkedIndex,b.splice(C.checkedIndex,1,hc)):b.push(hc)}}}else if(da&&na){"se"==R&&void 0!==M&&""!==M&&null!==M&&(t=M);var Pb=!1;pa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");
if("es"===R)X=void 0!=X&&X?parseFloat(X):0,I=void 0!=I&&I?parseFloat(I):0,fa=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){zb=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");
fa=""+Granite.I18n.get("Special Discount");var ic=[];g.displayBrandName&&ic.push(g.displayBrandName);g.displayModelName&&ic.push(g.displayModelName);if(g.tradeInSpecialPrice){var rb=parseInt(g.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:ic.join(" | "),discountPriceText:currencyComma(I,y)+"*",discountText1:Q,dataPrice:d,dataCashBack:I,dataQuoteId:g.tradeinId,dataId:g.consents,services:g};0<g.tradeInAdditionalInfo.length&&
$.each(g.tradeInAdditionalInfo,function(yb,ab){"discountAmount"===ab.key&&(kb=parseFloat(ab.value));"additionalDiscount"===ab.key&&(gb=parseFloat(ab.value),jb.dataPrice=gb)});zb=kb+gb;jb.discountPriceText=currencyComma(kb,y)+"*";jb.discountText1=0<kb?Q:null;jb.discountPriceText2=gb?currencyComma(gb,y)+"*":null;jb.discountText2=0<gb?fa: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="";g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice));var Eb={index:b.length,count:b.length+1,displayModelName:g.displayModelName,dataPrice:d,dataCashBack:I,dataQuoteId:g.tradeinId,dataId:g.consents,imeiKey:g.imeiKey,services:g,specialDiscountText:sa,discountText1:Q,discountPrice:parseFloat(d),specialPrice:Fa};-1<C.checkedIndex?(Eb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Eb)):b.push(Eb)}else if("hk"===R||"hk_en"===R){void 0!==g.tradeinTotalAmount&&(Q=" "+Granite.I18n.get("Trade-in discount")+
" : "+currencyComma(g.tradeinTotalAmount,y)+" ( "+Granite.I18n.get("Total Rebate")+" )",0<g.tradeinTotalAmount&&(0<g.tradeinValue&&(fa=currencyComma(g.tradeinValue,y)+" ( "+Granite.I18n.get("Rebate")+" )"),0<g.exclusiveTradeinUnitOffer&&(la=currencyComma(g.exclusiveTradeinUnitOffer,y)+" ( "+Granite.I18n.get("Extra Trade-in Rebate")+" )"),0<g.extraTradeinOffer&&(ma=currencyComma(g.extraTradeinOffer,y)+" ( "+Granite.I18n.get("Designated Used Device Trade-in Rebate")+" )"),0<g.exclusiveChannerTradeinOffer&&
(ta=currencyComma(g.exclusiveChannerTradeinOffer,y)+" ( "+Granite.I18n.get("Online Shop Trade-in Rebate")+" )"),0<g.extraTradeinVoucher&&(ya=currencyComma(g.extraTradeinVoucher,y)+" ( "+Granite.I18n.get("Promo code Trade-in Rebate")+" )")));if(C.isMultiTradeIn){var nc=[];g.displayBrandName&&nc.push(g.displayBrandName);g.displayModelName&&nc.push(g.displayModelName);var vb="",jc="",mb=g.tradeinValue,xb="",Hb=g.exclusiveTradeinUnitOffer,fb="",Ab=g.extraTradeinOffer,Ib="",Vb=g.exclusiveChannerTradeinOffer,
dc="",oc=g.extraTradeinVoucher,sb="";if(void 0!==g.tradeinTotalAmount){vb=""+Granite.I18n.get("Estimated Trade-in Value");jc=Granite.I18n.get("Total Rebate")+" "+currencyComma(g.tradeinTotalAmount,y)+"*";0<g.tradeinTotalAmount&&0<g.tradeinValue&&(xb=Granite.I18n.get("Rebate")+" "+currencyComma(g.tradeinValue,y));if(0<g.exclusiveTradeinUnitOffer||0==g.exclusiveTradeinUnitOffer&&0==g.extraTradeinOffer)fb=Granite.I18n.get("Extra Trade-in Rebate")+" "+currencyComma(g.exclusiveTradeinUnitOffer,y);0<g.tradeinTotalAmount&&
(0<g.extraTradeinOffer&&(Ib=Granite.I18n.get("Designated Used Device Trade-in Rebate")+" "+currencyComma(g.extraTradeinOffer,y)),0<g.exclusiveChannerTradeinOffer&&(dc=Granite.I18n.get("Online Shop Trade-in Rebate")+" "+currencyComma(g.exclusiveChannerTradeinOffer,y)),0<g.extraTradeinVoucher&&(sb=Granite.I18n.get("Promo code Trade-in Rebate")+" "+currencyComma(g.extraTradeinVoucher,y)))}var wb={index:b.length,count:b.length+1,displayModelName:nc.join(" | "),discountPriceText:jc,discountText1:"",dataPrice:d,
dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:sa,discountPrice:parseFloat(d),specialPrice:Fa,discountPriceTextTile:vb,tradeinTotalAmount:g.tradeinTotalAmount,tradeinValue:mb,tradeinValueText:xb,exclusiveTradeinUnitOffer:Hb,exclusiveTradeinUnitOfferText:fb,extraTradeinOffer:Ab,extraTradeinOfferText:Ib,extraTradeinOfferTextShow:Ib?!0:!1,exclusiveChannerTradeinOffer:Vb,exclusiveChannerTradeinOfferText:dc,exclusiveChannerTradeinOfferTextShow:dc?!0:!1,extraTradeinVoucher:oc,
extraTradeinVoucherText:sb,extraTradeinVoucherTextShow:sb?!0:!1};-1<C.checkedIndex?(wb.index=C.checkedIndex,b.splice(C.checkedIndex,1,wb)):b.push(wb)}d=0}else if(C.isMultiTradeIn){var Bb=[];g.displayBrandName&&Bb.push(g.displayBrandName);g.displayModelName&&Bb.push(g.displayModelName);Fa="";"sg"===R&&g.tradeInSpecialPrice&&(Fa=parseFloat(g.tradeInSpecialPrice));var Wb="";"au"===R&&(Q=""+Granite.I18n.get("Old device value"),fa=""+Granite.I18n.get("Additional value"),Da=""+Granite.I18n.get("Total Discount"),
g.tradeInSpecialPrice&&0<parseFloat(g.tradeInSpecialPrice)&&(Fa=parseFloat(g.tradeInSpecialPrice)),g.tradeInPrice&&(Wb=parseFloat(g.tradeInPrice)));var Qb={index:b.length,count:b.length+1,displayModelName:Bb.join(" | "),discountPriceTextTitle:Da,discountPriceText:currencyComma(d,y),dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,services:g,specialDiscountText:sa,discountText1:Q,discountText2:fa,discountAmountPrice:d,discountAmountPriceText:currencyComma(d,y),specialPriceText:currencyComma(Fa,
y),discountPrice:parseFloat(d),specialPrice:Fa,tradeInPrice:Wb};"it"==R&&(Qb.discountPriceTextTitle=""+Granite.I18n.get("Valore della prevalutazione"),Qb.discountPriceText=currencyComma(t+I,y),Qb.dataPrice=t,Qb.dataCashBack=I,0<I?T.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Cashback Result Text"):T.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Discount Result Text"));
-1<C.checkedIndex?(Qb.index=C.checkedIndex,b.splice(C.checkedIndex,1,Qb)):b.push(Qb)}else"nz"===R?(P=Granite.I18n.getVar("Trade-in","ux2")+" : "+P,Q=Granite.I18n.get("Total Discount")+" : "+currencyComma(X,y),0<a&&(fa="-"+currencyComma(t,y)+" ("+Granite.I18n.get("Your old device value")+")",la="-"+currencyComma(a,y)+" ("+Granite.I18n.get("Overtrade bonus")+")"),d=X):(0<t&&(fa="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")&&(fa+=" ("+Granite.I18n.get("Immediate Discount")+")"):"vn"===R?(P=null,Q=currencyComma(t,y)+" ("+Granite.I18n.get("Regular Exchange Value")+") ",fa=null):" "!==Granite.I18n.get("Regular Exchange Value")&&("za"===R&&(fa+="*"),fa+=" ("+Granite.I18n.get("Regular Exchange Value")+")")),0<I&&("th"===R&&0<t||(""!==fa?la=currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")":fa=currencyComma(I,y)+" ("+Granite.I18n.get("Cashback")+")")));""!==L&&0<Number(L)&&(sa=
currencyComma(L,y),sa=""!==N?sa+(" ("+N+")"):sa+(" ("+Granite.I18n.get("Special Discount")+")"),X=parseFloat(X)+parseFloat(L),Pb=!0);if("sg"===R&&g.tradeInSpecialPrice){var Rb=parseInt(g.tradeInSpecialPrice);sa=Granite.I18n.get("Special Discount")+" "+currencyComma(Rb,y);X=parseFloat(X)+parseFloat(Rb);d+=Rb;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)&&(fa=Q=null,0<t)){var $b=[];g.displayBrandName&&$b.push(g.displayBrandName);g.displayModelName&&$b.push(g.displayModelName);P=Granite.I18n.get("Galaxy Now! Credito Immediato")+" : "+$b.join(" | ")}}G={hasComponent:!0,displayModelName:P,discountText1:Q,discountText2:fa,discountText3:la,discountText4:ma,discountText5:ta,discountText6:ya,specialDiscountText:sa,description:pa,dataPrice:d,dataCashBack:z,dataQuoteId:g.tradeinId,dataId:g.consents,list:b,
tradeinAmountText:c,dealBonusPriceText:m,additionalDiscountFlag:qa,priceAreaTitleText:f,totalCashBackPriceText:ba,imeiKey:g.imeiKey,deletedOriginalCashBackPriceText:q,contentText:A};"dk"==R||"fi"==R||"se"==R||"no"==R?(G.discountPriceText=currencyComma(d,y),G.discountText2=Granite.I18n.get("Regular Exchange Value")+" "+G.discountPriceText):"mx"==R&&(G.discountPriceText=Na);if(C.isMultiTradeIn&&0<b.length){("sg"===R||"vn"===R||"id"===R||qa)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(C,
G);"tr"==R?(G.dataPrice=b.reduce(function(yb,ab){return yb+parseInt(ab.dataCashBack)},0),G.dataPrice+=b[0].services.tradeInSpecialPrice):G.dataPrice=b.reduce(function(yb,ab){return yb+parseInt(ab.dataPrice)},0);if("cn"==R){var ec=0;$.each(b,function(yb,ab){$.each(ab.services.tradeInAdditionalInfo,function(Sb,tb){"ticketMoney"===tb.key&&ec<tb.value&&(ec=tb.value)})});G.dataPrice=parseFloat(G.dataPrice)+parseFloat(ec);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var ac=0;
$.each(G.list,function(yb,ab){$.each(ab.services.tradeInAdditionalInfo,function(Sb,tb){"o2oTicketMoney"===tb.key&&ac<tb.value&&(ac=tb.value)})});G.dataPrice=parseFloat(G.dataPrice)+parseFloat(ac)}}if("kz_kz"===R||"kz_ru"===R)G.dataPrice=g.totalSumPrice;var Jb=Number(G.dataPrice)-Number(C.proudctPriceInfo.salePrice);C.minOrderEntryValue&&(Jb+=Number(C.minOrderEntryValue));if("be"===R||"be_fr"===R||"nl"===R||"sg"===R||"vn"===R||"my"===R||"id"===R||"fr"===R||"kz_kz"===R||"kz_ru"===R||"de"===R||"sa"===
R||"sa_en"===R||"cl"===R){if(G.totalAmountText=currencyComma(G.dataPrice,y),0<Jb&&(G.priceOverFlag=!0,G.excessAmount=Jb,G.excessAmountText=currencyComma(Jb,y),G.tenText=currencyComma(C.minOrderEntryValue,y),"kz_kz"===R||"kz_ru"===R))G.totalAmountText=currencyComma(Number(C.proudctPriceInfo.salePrice)-Number(C.minOrderEntryValue),y)}else G.dataPrice>C.proudctPriceInfo.salePrice&&(G.priceOverFlag=!0);"tr"==R&&(G.dataPrice=0);if("cn"==R){var Mb=0;$.each(G.list,function(yb,ab){$.each(ab.services.tradeInAdditionalInfo,
function(Sb,tb){"ticketMoney"===tb.key&&Mb<tb.value&&(Mb=tb.value)})});G.totalTicketMoney=0;0!=Mb&&(G.totalTicketMoney=Mb,G.totalTicketMoneyText=Granite.I18n.get("Additional Trade in discount from Samsung")+": "+currencyComma(Mb,y));if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Tb=0;$.each(G.list,function(yb,ab){$.each(ab.services.tradeInAdditionalInfo,function(Sb,tb){"o2oTicketMoney"===tb.key&&Tb<tb.value&&(Tb=tb.value)})});G.totalO2oTicketMoney=0;0!=Tb&&(G.totalO2oTicketMoney=
Tb,G.totalO2oTicketMoneyText=Granite.I18n.get("O2O special subsidy")+": "+currencyComma(Tb,y))}}}U.triggerChange(document.querySelector("#pd-trade-in-0"));va.tradeInResult=G;T.tradeInResultDraw(va);ra.totalAfterFunction(C,E)}}function n(g){var C=Math.pow(10,2);g=Number(g)/1.95583;g=Math.round(g*C)/C;return currencyComma(g,"EUR")}function v(g){var C=Math.pow(10,2);g=1.95583*Number(g);g=Math.round(g*C)/C;return currencyComma(g,"BGN")}function F(g,C){for(var E=[],T=1;T<arguments.length;++T)E[T-1]=arguments[T];
g=void 0===g?" | ":g;return E.filter(function(R){return R}).join(g)}function W(g,C,E){var T=C.priceCurrency;C=C.isHybrisSplitPD;var R=!1,y="",ea="",va="",ra=0,oa=0,da=0,na=0,L=0,N="",b=0,r=[],G=0;g.tradeinDiscountYn&&(R=g.tradeinDiscountYn);g.displayBrandName&&(y=g.displayBrandName,r.push(g.displayBrandName));g.displayModelName&&(ea=g.displayModelName,r.push(g.displayModelName));var P=Granite.I18n.get("Your Trade-in")+" : "+r.join(" | ");if("pt"===siteCode)P=Granite.I18n.get("Your Trade-in")+" : "+
ea;else if("nz"===siteCode||"dk"===siteCode||"fi"===siteCode||"se"===siteCode||"no"===siteCode)P=r.join(" | ");E&&(va=g.value.price,ra=parseFloat(g.value.price),oa=parseFloat(g.discount.price),da=parseFloat(g.discount.total),g.value.enhancedDiscountAmount&&(b=parseFloat(g.value.enhancedDiscountAmount)),g.discount&&g.discount.eventAmountPrice&&(G=parseFloat(g.discount.eventAmountPrice)));R?(L=ra,C||(N="tr"===siteCode?currencyComma(g.discount.price,T)+" "+Granite.I18n.get("Cashback"):"- "+currencyComma(L,
T)+" "+Granite.I18n.get("Cashback"))):(na=ra,C||(N="- "+currencyComma(na,T)+" "+Granite.I18n.get("Upfront discount")));return{tradeinDiscountYn:R,displayBrandName:y,displayModelName:ea,modelAndBrand:P,StrOrignalDisplayPrice:va,orignalDisplayPrice:ra,orignalCashBackPrice:oa,orignalTotalPrice:da,displayPrice:na,cashBackPrice:L,priceText:N,enhancedDiscountAmount:b,eventAmountPrice:G}}function aa(g,C,E,T){var R=C.priceCurrency,y=0,ea=0,va=null,ra=0,oa=null;g&&(g.discounted_sku&&(g.msrp_price&&(g.msrp_price.value&&
(y=parseFloat(g.msrp_price.value)),g.msrp_price.formatted_value||currencyComma(y,R),g.msrp_price.duration&&(ra=g.msrp_price.duration),g.msrp_price.paymentcycle&&(oa=g.msrp_price.paymentcycle)),g.sale_price&&(ea=g.sale_price.value?parseFloat(g.sale_price.value):y,va=g.sale_price.formatted_value?g.sale_price.formatted_value:currencyComma(ea,R),g.sale_price.duration&&(ra=g.sale_price.duration),g.sale_price.paymentcycle&&(oa=g.sale_price.paymentcycle)),0<y&&y!==ea&&currencyComma(y-ea,R)),C.drawObj.careResult=
{hasComponent:!0,dataPrice:y,dataSalePrice:ea,dataModelName:g.modelName,dataModelCode:g.modelCode,dataId:g.consents,dataPromotionPrice:va,dataDuration:ra,dataPaymentcycle:oa},C.popupReturnObj&&setTimeout(function(){U.triggerChange(C.popupReturnObj.get(0))},50),T.careResultDraw(p),w.totalAfterFunction(C,E))}var x=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),U=x.ux2.PDPHeaderUI,B="",w="",e="",p="",k="",A="",ca=!0,K=!1,D=function(g,C){k=C;B=g;w=B.util;e=B.view;p=B.drawObj};D.prototype.setTradeInSuportSubsidy=
function(g){K=g};D.prototype.getTradeInSupportSidiy=function(){return K};D.prototype.wishlistPopup=function(g,C,E){var T=p.wishList;g&&(T.contentWrapperClass=w.addClass(T.contentWrapperClass,g),T.contentWrapperClass=w.removeClass(T.contentWrapperClass,"tg-add-wishlist"),T.contentWrapperClass=w.addClass(T.contentWrapperClass,"tg-remove-wishlist"));C&&(T.contentWrapperClass=w.removeClass(T.contentWrapperClass,C),T.contentWrapperClass=w.addClass(T.contentWrapperClass,"tg-add-wishlist"),T.contentWrapperClass=
w.removeClass(T.contentWrapperClass,"tg-remove-wishlist"));E&&(T.labelText=E);e.productWishListDraw(p);w.settingWishlistTagging(B,k)};D.prototype.checkOutCta=function(g,C,E,T){g=void 0===g?[]:g;C=void 0===C?!1:C;E=void 0===E?!1:E;B.useNewAddToCartApi?(new x.BuyingToolOpAjaxNewbris).callCheckOutCta(B,g,k,C,E,T):B.shopApiModel.callCheckOutCta(B,g,k,C,E,T)};D.prototype.addToCartCta=function(g,C,E,T){g=void 0===g?[]:g;C=void 0===C?!1:C;E=void 0===E?!1:E;B.useNewAddToCartApi?(new x.BuyingToolOpAjaxNewbris).callAddToCartCta(B,
g,k,C,E,T):B.shopApiModel.callAddToCartCta(B,g,k,C,E,T)};D.prototype.offerAndAddonsDiscount=function(g,C){B.globalServiceInfo[C]=g;if("tradein"===C)u(g,B,k,e);else if("tariff"===C){var E=B,T=k,R=e,y=E.drawObj,ea=E.util,va=E.priceCurrency,ra=E.siteCode,oa="";if(g){"uk"===ra?(oa=Granite.I18n.get("Monthly Price : ")+" "+currencyComma(g.price,va)+"/month***",E.tariffPrice=g.upfrontAmount):("au"===ra&&(E.tariffPrice=g.discount),g.period?oa=Granite.I18n.get("You pay now")+" "+currencyComma(g.price,va)+
"/"+g.period:g.price&&(oa=Granite.I18n.get("You pay now")+" "+currencyComma(g.price,va)));"au"===ra&&g.priceText&&(oa=g.priceText);if("se"==ra||"no"==ra||"dk"==ra)oa="";"fr"==ra&&ea.isNotEmpty(g.pricing.promotions)&&ea.isNotEmpty(g.pricing.promotions[0].monthly_rate.value)&&(oa=Granite.I18n.get("Starting from")+" "+Granite.I18n.get("{0}/month",currencyComma(g.pricing.promotions[0].monthly_rate.value,va)));y.tariffOptionResult={hasComponent:!0,displayModelName:g.serviceDescription,discountText1:oa,
description1:"fr"==ra?"":Granite.I18n.get("Invoice will be issued by the network service company"),dataPrice:g.periodPrice,dataSimskuCode:g.simSkuCode,dataModelCode:g.modelCode,dataId:g.consents};if("de"===ra){E.hasGiftPage?(E.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(E.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1),E.hasVoucher||E.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1));
var da=!1;1==E.hasPlanIDAndFreeGiftPromotion&&((da=E.giftSelectionSkipPlanIdList.includes(g.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)));da||window.sg.components.dynamic.freeGiftHybrisCommon.getTariffRelatedProductsSimpleInfo(E.modelCode)}U.triggerChange(document.querySelector("#pd-tariff-option-0"));
R.tariffOpionResultDraw(y);ea.totalAfterFunction(E,T)}}else if("combo"===C){var na=B,L=k,N=e,b=na.util,r=na.drawObj,G=r.offer.combo,P=Number(na.checkedComboArea.attr("data-combo-index")),Z=b.hasTradeInResult(na,L),d=na.priceCurrency,M=null,t;for(t in G){var z=G[t];if(z.comboIndex===P){M=z;break}}if(M){M.item.hasBundle=!0;M.item.bundleList=[];for(var I in g){var X=g[I].thumbUrl,V=g[I].pviTypeName?g[I].pviTypeName.toLowerCase():"",O=g[I].pviSubtypeName?g[I].pviSubtypeName.toLowerCase():"",S=g[I].categorySubTypeEngName?
g[I].categorySubTypeEngName.toLowerCase():"",Q="",fa="",la="",ma="",ta="";g[I].msrp_price&&!g[I].sale_price&&(g[I].sale_price=g[I].msrp_price);if(g[I].sale_price&&g[I].msrp_price){var ya="",sa="";ya=g[I].sale_price.formatted_value?g[I].sale_price.formatted_value:currencyComma(g[I].sale_price.value,d);sa=g[I].msrp_price.formatted_value?g[I].msrp_price.formatted_value:currencyComma(g[I].msrp_price.value,d);var Na="";if("nl"===siteCode||"be"===siteCode||"be_fr"===siteCode)Na=Granite.I18n.get("From");
var pa="";"de"===siteCode&&(pa=Granite.I18n.get("From"));g[I].sale_price?(0!==parseFloat(g[I].msrp_price.value)-parseFloat(g[I].sale_price.value)?(Q=Na+pa+sa,ma=g[I].msrp_price.value,g[I].saveText&&""===Na&&(fa=g[I].saveText)):(Q=" ",ma=g[I].msrp_price.value),la=Granite.I18n.get(ya),ta=g[I].sale_price.value):(Q=" ",ma=g[I].msrp_price.value,la=Granite.I18n.get(sa),ta=g[I].msrp_price.value)}var a={title:g[I].displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+g[I].displayName,dataPrice:ma,
dataSalePrice:ta,dataEventType:"combo-"+P+"-"+I,dataModelName:g[I].modelName,dataDisplayName:g[I].displayName,pviTypeName:V,pviSubtypeName:O,categorySubTypeEngName:S,dataSkuCode:g[I].shopSKU,dataModelCode:g[I].modelCode,dataIndex:g[I].idx,imgAttr:{classWapper:"image__main responsive-img",srcPc:X,alt:g[I].thumbUrlAlt},price:{original:Q,save:fa,now:la}};M.item.bundleList.push(a)}"in"===siteCode&&Z&&b.exchangeResultDraw(na,L);N.productOfferDraw(r,!0);b.totalAfterFunction(na,L)}}else if("exchange"===
C){var c=B,m=k,f=e;"CE"===c.tradeInType&&"in"===siteCode?c.commonApiModel.tradeInCeDataV1Api(c,m,g):g.notselected_offer_id?c.commonApiModel.exchangeInDataV1Api(c,m,g):(g.dataQuoteId=g.id,c.util.settingExchangeAPIData(g,c,m,f))}else if("eup"===C){var q=B,ba=k,J=e,ha=q.drawObj,qa=q.util,ia=q.priceCurrency;g&&(ha.upgradeResult={hasComponent:!0,displayModelName:g.displayName,discountText1:Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(g.salePrice/24),ia)),dataId:g.consents,
dataPrice:g.salePrice},q.isMigrationHybris&&g.monthlyPrice&&(ha.upgradeResult.discountText1=Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(g.monthlyPrice),ia))),U.triggerChange(document.querySelector("#pd-samsung-upgrade-0")),J.upgradeResultDraw(ha),qa.totalAfterFunction(q,ba))}else if("care"===C)aa(g,B,k,e);else if("warranty"===C){var za=B,Ha=k,Fa=e,Ca=za.siteCode,Ia=za.multiCareYn,Ta="",Oa=0,ka="",Ja=0,Da="",La="",Qa="",Ma="",Sa="",Ra="",Va=null;if(g){g.discounted_sku&&
(ka=g.discounted_sku,"GPv2"===za.apiFlag?(Oa=g.msrp_price.value,g.sale_price.formatted_value?(Ta=g.msrp_price.formatted_value,Ja=parseFloat(g.msrp_price.value)-parseFloat(g.sale_price.value)):g.msrp_price.formatted_value&&(Ta=g.msrp_price.formatted_value)):(Va=Oa=g.sale_price.value,Ta=currencyComma(g.sale_price.value,za.priceCurrency)));var Y="";if("nl"===Ca||"be"===Ca||"be_fr"===Ca)Y=Granite.I18n.get("From");var ja="";"de"===Ca&&(ja=Granite.I18n.get("From"));var Aa=Granite.I18n.get("Extended Warranty");
"Y"!==Ia&&(Da=Aa+" "+ka);0!==Ja?(La=Oa,Ma=Y+ja+" "+Ta,""===Y&&(Ra=Granite.I18n.get("Save {0}",currencyComma(Ja,za.priceCurrency),Ca)),Qa=Va,("ee"===Ca||"lt"===Ca||"lv"===Ca)&&g.sales_pitch&&(Sa=g.sales_pitch[0])):(La=Oa,Qa=Va,Ma=Ta);za.drawObj.warrantyResult={hasComponent:!0,displayModelName:Da,discountText1:Ma,description1:Sa,dataPrice:La,dataSalePrice:Qa,dataModelName:g.modelName,dataModelCode:g.modelCode,dataId:g.consents,savedPrice:Ra};U.triggerChange(document.querySelector("#pd-samsung-warranty-0"));
Fa.warrantyResultDraw(p);w.totalAfterFunction(za,Ha)}}else if("warrantyVd"===C){var Ba=B,Ga=k,ua=e,Ea=["mx"].includes(Ba.siteCode)?!0:!1,Ka="",wa="";wa=currencyComma(g.price,Ba.priceCurrency);Ea&&g.paymentCycle&&"MONTHLY"===g.paymentCycle.toUpperCase()&&(wa=Granite.I18n.get("{0}/month",currencyComma(g.price,Ba.priceCurrency)));g&&($(".option-result--extended-warranty-option").removeAttr("style"),Ba.drawObj.warrantyVdResult={hasComponent:!0,title:g.title,price:g.price,smcCode:g.smcCode,description:g.description,
priceDisplay:wa},U.triggerChange(document.querySelector("#pd-extended-warranty-option-0")),ua.warrantyVdResultDraw(p),w.totalAfterFunction(Ba,Ga),Ka='\x3cstrong class\x3d"summary__product-name"\x3e'+g.title+'\x3c/strong\x3e\n\t\t\t\t\t\t   \x3cp class\x3d"summary__product-price" style\x3d""\x3e'+currencyComma(g.price,Ba.priceCurrency)+"\x3c/p\x3e",$(".summary__product-price").show(),$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").html(Ka))}else if("forever"===C){var xa=B,Xa=k,Ua=e,Pa=xa.util,
Wa=Pa.hasTradeInResult(xa,Xa);g&&(xa.drawObj.galaxyForeverResult={hasComponent:!0,displayModelName:g.displayName,discountText1:Granite.I18n.get("Monthly Cost")+":"+currencyComma(g.foreverPrice,xa.priceCurrency),description1:Granite.I18n.get("Tenure")+":"+g.tenureValue+" "+Granite.I18n.get("month"),dataId:g.consents,dataPrice:null,modelList:g.modelCodeArr,financePlanId:g.plan_id},U.triggerChange(document.querySelector("#pd-samsung-galaxy-forever-0")),Ua.galaxyForeverResultDraw(p),Xa.buyingToolOptCare.hide(),
Wa&&Pa.exchangeResultDraw(xa,Xa),Pa.totalAfterFunction(xa,Xa))}else if("gift"===C){var bb=B,Ya=k,Za=e,cb=bb.util,ib=bb.drawObj,$a=ib.offer.gift,pb=bb.priceCurrency,kb=g.pviTypeName?g.pviTypeName.toLowerCase():"",gb=g.pviSubtypeName?g.pviSubtypeName.toLowerCase():"",zb=g.categorySubTypeEngName?g.categorySubTypeEngName.toLowerCase():"";$a.item.hasBundle=!0;$a.item.bundleList=[];var Cb=g.thumbUrl,hb="",Kb="",ub="",qb="",Db="";if(g.sale_price&&g.msrp_price){var db="",lb="";db=g.sale_price.formatted_value?
g.sale_price.formatted_value:currencyComma(g.sale_price.value,pb);lb=g.msrp_price.formatted_value?g.msrp_price.formatted_value:currencyComma(g.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"));g.sale_price?(0!==parseFloat(g.msrp_price.value)-parseFloat(g.sale_price.value)?(hb=eb+nb+lb,qb=g.msrp_price.value,g.saveText&&""===eb&&(Kb=g.saveText)):(hb=" ",qb=g.msrp_price.value),ub=
Granite.I18n.get(db),Db=g.sale_price.value):(hb=" ",qb=g.msrp_price.value,ub=Granite.I18n.get(lb),Db=g.msrp_price.value)}g.selectIdx&&($a.item.learnMoreCta.giftIdx=g.selectIdx);var Ub={title:g.displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+g.displayName,dataPrice:qb,dataSalePrice:Db,dataEventType:0,dataModelName:g.modelName,dataDisplayName:g.displayName,dataSkuCode:g.shopSKU,dataModelCode:g.modelCode,dataIndex:g.selectIdx,pviTypeName:kb,pviSubtypeName:gb,categorySubTypeEngName:zb,
imgAttr:{classWapper:"image__main responsive-img",srcPc:Cb,alt:g.thumbUrlAlt},price:{original:hb,save:Kb,now:ub}};$a.item.bundleList.push(Ub);Za.productOfferDraw(ib,!0);cb.settingPriceDraw(bb,Ya)}else if("assured"===C){var ob=B,cc=k,Yb=e,Lb=ob.util;g&&(ob.drawObj.assuredBuyBackResult={hasComponent:!0,dataSku:g.sku,dataPrice:g.msrp_price.value,dataSalePrice:g.sale_price.value,dataId:g.consents,displayModelName:g.displayModelName,dataModelName:g.dataModelName},U.triggerChange(document.querySelector("#pd-galaxy-assured-1")),
Yb.assuredBuyBackResultDraw(p),Lb.totalAfterFunction(ob,cc))}else if("newassured"===C){var Nb=B,Ob=k,Gb=e,Zb=Nb.util;g&&(Nb.drawObj.newAssuredBuyBackResult={hasComponent:!0,dataModelCode:g.modelCode,dataModelName:g.modelName,dataPrice:g.productPrice,dataDisplayPrice:g.productDisplayPrice,dataDisplayName:g.productDisplayName},Nb.popupReturnObj&&U.triggerChange(Nb.popupReturnObj.get(0)),Gb.newAssuredBuyBackResultDraw(p),Zb.totalAfterFunction(Nb,Ob))}};D.prototype.drawTradeInWithPopup=function(g){var C=
"uk"===siteCode,E=!1;B.sgeSiteInstantChk=["ae","ae_ar"].includes(B.multistoreSiteCd);C&&ca&&l().done(function(T){T&&isNotEmpty(T[0])&&isNotEmpty(T[0].content)&&(A=T[0].content)}).fail(function(T){}).always(function(T){ca=!1});if(g&&g.flag){E=B.tradeInFlag=!0;B.maxTradeInsAllowed=g.maxTradeInsAllowed;if("ae"===B.siteCode||"ae_ar"===B.siteCode||B.isSEBN)B.maxTradeInsAllowed=1;B.minOrderEntryValue=g.minOrderEntryValue}"fr"!==B.siteCode||g.withCeTradeUpPopup||(g={maxDiscount:0,directOutLink:!1});B.compareMaxTradeInWithCart=
w.isNotEmpty(g)?g.compareMaxTradeInWithCart:!1;B.disableTradeIn=B.compareMaxTradeInWithCart?g.disableTradeIn:!1;B.util.hasTradeIn(B,k)||(w.settingTradeInDraw(g,B,k,E),w.settingTradeInErrMsgDraw(B,k,E),window.sg.components.ProductDetailKvNew.reInit())};D.prototype.newHybrisDrawTariffOption=function(g,C,E){var T=$.extend({isBroadbandService:!1},E);E=B.view;var R=B.drawObj,y=B.siteCode,ea=[];if(T.isBroadbandService)B.tariffFlag=!0,R.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options Broadband"),
description:"",logoList:[],href:"",yesAttr:{text:Granite.I18n.get("YES")},noAttr:{text:Granite.I18n.get("No, Thanks")}},E.tariffOpionDraw(R),window.sg.components.ProductDetailKvNew.reInit();else if(g&&0<g.length){B.tariffFlag=!0;g=$jscomp.makeIterator(g);for(T=g.next();!T.done;T=g.next()){var va=T.value;T=va.imgUrl;va=va.imgAlt;T&&("de"===y&&(-1<T.indexOf("Telekom")?(T="https://images.samsung.com/is/image/samsung/assets/de/tarife/logos/tarrif-sim-telekom_NEU.png",va="Telekom"):-1<T.indexOf("Vodaphone")?
(T="https://images.samsung.com/is/image/samsung/assets/de/icons/sim/250821_SIM_Icon_Vodafone.png",va="Vodaphone"):-1<T.indexOf("o2")&&(T="https://images.samsung.com/is/image/samsung/assets/de/icons/sim/250821_SIM_Icon_o2.png",va="o2")),ea.push({src:T,alt:va}))}g=Granite.I18n.get("Choose your preferred tariff from various providers.");if("fr"==y&&C){var ra=0;$.each(C,function(oa,da){for(oa=0;oa<da.tariffPlans.length;oa++)!da.tariffPlans[oa].recommended||0!=ra&&null!=ra&&void 0!=ra||(ra+=da.tariffPlans[oa].discount)});
0<ra&&(g=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")&&(g=Granite.I18n.get("Choose the right plan for you."));R.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options"),description:g,logoList:ea,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(g){var C=B.view,E=B.drawObj;B.isGPv2AndHyIntg&&g&&g.carriers&&0<g.carriers.length&&(B.tariffFlag=!0,B.hybrisApiData.tarriffOption=g,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(g){var C=B.view,E=B.drawObj,T=E.offer,R=B.util,y=B.giftdataHybris,ea=null,va=null;if(B.isGPv2AndHyIntg&&g){B.giftFlag=!0;g=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&&(ea=R.value),R.key&&"subTitle"===R.key&&(va=R.value);y=[];va&&y.push({text:va});T.gift={title:"giftBundle",giftIndex:0,hasItem:!0,item:{headline:ea,description:{hasDescription:!0,main:y,date:null},learnMoreCta:g}};C.productOfferDraw(E)}};D.prototype.hybrisDrawCare=function(g,C){var E=B.isHybrisSplitPD,T=B.isHybrisSplitPDSamsungCarePlus;if((B.isGPv2AndHyIntg||E&&T)&&g.smcs&&0<g.smcs.length){E="se"===siteCode||"no"===siteCode||"fi"===siteCode||"dk"===siteCode;T="pl"===siteCode;
T="uk fr es ch ch_fr ro at cz pt be be_fr nl de ae ae_ar it".split(" ").includes(siteCode)||E||T;var R="se no dk fi uk fr es ch ch_fr at pt cz ro be be_fr nl de ae ae_ar it".split(" ").includes(siteCode),y="pt"===siteCode,ea="uk de fr es pt it nl be be_fr at cz ro pl ch ch_fr se no fi dk".split(" ").includes(siteCode),va="se dk no fi nl be be_fr".split(" ").includes(siteCode),ra=B.samsungCareFlag=!0,oa=B.priceCurrency,da=B.util,na=B.careLearnMoreUrl;E=g.smcs;2<$("#categorySubTypeCode").val().length&&
$("#categorySubTypeCode").val().substring(0,2);var L=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,N=2<$("#categorySubTypeCode").val().length&&"01"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,b="",r="_self",G="",P="javascript:;",Z={};Z={};var d={},M={},t="";t=!1;b=[""].includes(siteCode);var 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(!N&&("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"),O=$(".hubble-care-popup__image .image__preview.responsive-img.image--loaded image--hide"),S=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),
Q;for(Q in E){N=E[Q];if(N.summary&&"WARRANTY"===N.summary.toUpperCase()){I=!0;break}if(0==I&&N.productShortDescription&&-1<N.productShortDescription.toUpperCase().indexOf("WARRANTY")){I=!0;break}}I&&(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$"),O.attr("data-desktop-src",z+"?$380_223_PNG$"),O.attr("data-mobile-src",z+"?$680_398_PNG$"),O.attr("data-src",z+"?$380_223_PNG$"),O.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)N=
$(".hubble-care-popup__image .image__preview.lazy-load.responsive-img"),V=$(".hubble-care-popup__image .image__main.lazy-load.responsive-img"),d=$(".hubble-care-popup__image .image__preview.responsive-img.image--loaded image--hide"),M=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),N.attr("data-desktop-src",z),N.attr("data-mobile-src",z),N.attr("data-src",z),N.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?(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"es"===siteCode?(P="javascript:void(0);",G=Granite.I18n.get("Know the advantages"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"de"===siteCode&&(P="javascript:void(0);",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget=
"hubbleCareinfoPopup"):!ea&&na?(G=Granite.I18n.get("Learn more"),P=na,r="_blank"):(siteCode=$("#siteCode").val(),"uk de fr es pt it at cz ro pl".split(" ").includes(siteCode)?(P="https://www.samsung.com/"+siteCode+"/offer/samsung-care-plus/",G=Granite.I18n.get("Learn more"),"es"===siteCode&&(G=Granite.I18n.get("Know the advantages")),r="_blank"):"cn tr ae ae_ar se no dk fi nl be be_fr".split(" ").includes(siteCode)?(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):
["au","hk","hk_en","sg","vn"].includes(siteCode)?(P="https://www.samsung.com/"+siteCode+"/offer/samsung-care-plus/",G=Granite.I18n.get("Learn more"),r="_blank"):["ch","ch_fr"].includes(siteCode)?(P="https://www.samsung.com/"+siteCode+"/mobile/samsung-care-plus/",G=Granite.I18n.get("Learn more"),r="_blank"):"za"===siteCode?(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="scLearnMorePopup"):"ca_fr"===siteCode||"ca"===siteCode?I?("ca"===siteCode?P="https://support-ca.samsung.com/secaew/consumer/ca/category/categorymain":
"ca_fr"===siteCode&&(P="https://support-ca.samsung.com/secaew/consumer/ca_fr/category/categorymain"),G=Granite.I18n.get("Learn more"),r="_blank"):(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="scLearnMorePopup"):"my"===siteCode?"true"===$("#isEppPage").val()&&(P="/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-sc-plus/",G=Granite.I18n.get("Learn more"),r="_blank"):"pe"===siteCode?L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget=
"hubbleCareinfoPopup"):"co"===siteCode?L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"cl"===siteCode?L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"):"mx"===siteCode&&L&&(P="javascript:;",G=Granite.I18n.get("Learn more"),r="_self",Z.layerTarget="hubbleCareinfoPopup"));b=Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever.");I&&(b=Granite.I18n.get("VD_Insurance that protects and cares for your phone wherever, whenever."));
C&&(b=Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever. (Samsung CarePack)"));"fr"===siteCode&&(b=Granite.I18n.get("Gold standard insurance direct from Samsung."));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=da.getAttrCta(G,P,r,"",Z,"");va&&(Z.isOutLink=null,Z.isNotOutLink=null);p.care={hasComponent:ra,title:t,learnMoreCta:Z,description:b,yesAttr:d,noAttr:M,subText:"",rowText:[],itemSet:[],items:[],isSmcType2:T,useOneDepthPrice:R};B.finalCareList=[];for(Q in E)C=E[Q],t=!1,B.isMigrationHybris&&C.paymentCycle&&"MONTHLY"===
C.paymentCycle.toUpperCase()&&(t=!0),R={},R="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode?{flags:{is_subscription:t},displayName:C.title,price_info:[{msrp_price:{value:C.price,formatted_value:currencyCommaExcep(C.price,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:""},T&&(da.isNotEmpty(C.otherParameters)||
(C.otherParameters={theft:"false"}),C.isTheft="true"===C.otherParameters.theft?!0:!1,"ae"!==siteCode&&"ae_ar"!==siteCode||"SCR"!==C.otherParameters.perks?["ae","ae_ar"].includes(siteCode)||"TFT"!==C.otherParameters.perks||(C.isTheft=!0):C.isTheft=!0,R.otherParameters=C.otherParameters,R.isTheft=C.isTheft,ea=C.yearlySubscription,va="",da.isNotEmpty(C.paymentCycle)&&"MONTHLY"===C.paymentCycle.toUpperCase()?va="mo":da.isNotEmpty(ea)&&Number(ea)&&(va="yr",1!==Number(ea)&&(va=ea+"yrs")),R.cycle=va),B.finalCareList.push(R);
B.hybrisCareData=g;B.hybrisCareData.isSmcType2=T?!0:!1;da.settingAfterApiCareDraw(B,k);window.sg.components.ProductDetailKvNew.reInit();y&&(g=h(E),""!==g&&(B.popupReturnObj=$(".option-care li input[data-index\x3d"+(g+1)+"]"),g=H(E[g]),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(g,"care")))}};D.prototype.hybrisDrawAccessory=function(g){var C=B.util;B.addonsFlag=g?!0:!1;C.settingPriceCta(B.hasPriceCta,B,k,B.currentUrl)};D.prototype.tradeInResultSpecialPrice=function(g,C){for(var E=
!0,T=C.list,R=-1,y=0,ea=0;ea<T.length;ea++){var va=T[ea];va.specialPrice&&parseFloat(y)<parseFloat(va.specialPrice)&&(y=va.specialPrice,R=ea)}C.specialInstantDiscountYn="N";y=C.additionalDiscountFlag;for(ea=0;ea<T.length;ea++){var ra=g.priceCurrency;va=T[ea];var oa="",da=va.discountPrice,na=va.discountPrice,L="ae"===siteCode||"ae_ar"===siteCode||"sa"===siteCode||"sa_en"===siteCode,N=g.sgeSiteInstantChk,b=g.instantDiscount;L?(na=da=va.dataCashBack,N&&b&&(na=da=va.discountPrice)):"fr"==siteCode&&(va.spotGuaranteeAmount&&
(na+=parseFloat(va.spotGuaranteeAmount)),va.abondementAmount&&(na+=parseFloat(va.abondementAmount)));var r="",G="",P=!1,Z="",d=va.specialPrice;y&&"de"!=siteCode&&(d=va.specialPrice&&ea==R);if(E&&d){E=parseInt(va.specialPrice);G=Granite.I18n.get("Special Discount")+" "+currencyComma(E,ra);if("fr"===siteCode)G="+"+currencyComma(parseInt(E),ra)+" "+Granite.I18n.get("de bonus reprise");else if("de"===siteCode)va.priceinfodesc&&(G=va.priceinfodesc);else if("ae"===siteCode||"ae_ar"===siteCode)G="Y"==va.specialInstantDiscountYn?
"+"+Granite.I18n.get("Additional Trade-in discount")+" "+currencyComma(E,ra):"+"+Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(E,ra);N&&(G=b?"":Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(E,ra));na+=E;oa=currencyComma(na,ra);P=!0;E=!1}if(P)if(L){Z=""+Granite.I18n.get("Total cashback amount");oa=""+currencyComma(na,ra);r=Granite.I18n.get("Old device value")+" : "+currencyComma(da,ra);if("ae"===siteCode||"ae_ar"===siteCode)r=Granite.I18n.get("Old device value")+
" "+currencyComma(da,ra);N&&b&&(Z=""+Granite.I18n.get("Additional Trade-in discount"),r="")}else"fr"===siteCode?(Z=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),r=currencyComma(da,ra)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),oa=""+currencyComma(na,ra)):"de"===siteCode?Z=""+Granite.I18n.get("Total Discount"):"pk"===siteCode?(Z=""+Granite.I18n.get("Total Discount"),r=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(da,ra)):r=Granite.I18n.get("Regular Exchange Value")+
" : "+currencyComma(da,ra);else L?(r="sa"===siteCode||"sa_en"===siteCode?""+Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(da,ra),N&&(r="",Z=b?""+Granite.I18n.get("Additional Trade-in discount"):""+Granite.I18n.get("Regular Exchange Value"))):"fr"===siteCode?(Z=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),r=currencyComma(da,ra)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),va.spotGuaranteeAmount||va.abondementAmount||
(r="")):"de"===siteCode?r="("+Granite.I18n.get("Upfront discount")+")":"pk"===siteCode?(Z=""+Granite.I18n.get("Total Discount"),r=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(da,ra)):Z=""+Granite.I18n.get("Regular Exchange Value"),oa=""+currencyComma(na,ra);va.discountPriceTextTile=Z;va.discountPriceText=oa;va.specialDiscountText=G;va.discountText1=r;L?(va.dataPrice=0,"ae"!==siteCode&&"ae_ar"!==siteCode||!P||"Y"!=va.specialInstantDiscountYn||(va.dataPrice=parseInt(va.specialPrice),
C.specialInstantDiscountYn="Y"),N&&b&&(va.dataPrice=na,C.specialInstantDiscountYn="Y")):va.dataPrice=na}};x.DetailAfterEventClass=D})();
(function(){function l(){var D=$("#apiChangeModelCode").val(),g=$("#apiChangeCategorySubSubTypeCode").val(),C=$("#apiChangeCategorySubTypeCode").val(),E=$("#apiChangeCategoryTypeCode").val(),T=$("#apiChangeCategoryGroupCode").val(),R=$("#apiChangeModelName").val(),y=$("#apiChangeShopSKU").val(),ea=$("#apiChangePdpUrl").val(),va=$("#apiChangeFamilyCode").val();D&&$("#modelCode").val(D);g&&$("#categorySubSubTypeCode").val(g);C&&$("#categorySubTypeCode").val(C);E&&$("#categoryTypeCode").val(E);T&&$("#categoryGroupCode").val(T);
R&&$("#modelName").val(R);y&&$("#shopSKU").val(y);ea&&$("#pdpUrl").val(ea);va&&$("#familyCode").val(va);p=$(".hdd02-pdp-header");D=p.find(".sg-pdh-product-info");g=p.find("#detail-input-hidden");C=p.find(".sg-pdh-buying-tool");E=C.find(".sg-pdh-buying-options");T=C.find(".sg-pdh-order-summary");R=$("#siteCode").val();y=$("#categoryGroupCode").val().substring(0,2);var ra=$("#apiChangeCategorySubTypeCode").val();ea=ra.substring(0,4);ra=ra.substring(0,6);va="ae"!==R&&"ae_ar"!==R||!["04","08"].includes(y)?
!1:!0;var oa="au"===R&&(["0401","0402"].includes(ea)||["08"].includes(y))?!0:!1,da="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,N="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(),G=("ca_fr"===R||"ca"===R)&&"0701"==ea||("ca_fr"===R||"ca"===R)&&"08"==y&&"true"!=$("#isEppPage").val()?
!0:!1,P="uk"!==R||"0807"!=ea&&"0808"!=ea&&"0809"!=ea&&"0811"!=ea&&"0701"!=ea?!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(ea)||["08"].includes(y))&&"true"!=$("#isEppPage").val()?!0:!1,X="true"==$("#isEppPage").val()&&"pl"===R&&["08"].includes(y)?!0:!1;ra=P||G||"0401"==ea||"0402"==ea||"0803"==ea||"080101"==ra||"080103"==ra?!0:!1;G="";$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(G=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src"),
G=G.substring(0,G.indexOf("?",0)));ca={drawObj:{},apiDomain:$("#storeDomain").val(),apiFlag:$("#shopIntegrationFlag").val(),modelCode:"in"===$("#siteCode").val()?$("#apiChangeShopSKU").val():$("#apiChangeModelCode").val(),siteCode:$("#siteCode").val(),siteCodeWithEpp:"true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val(),shopApiModel:null,commonApiModel:null,afterEvent:null,util:null,view:null,isCart:$("#useStore").val(),oldProductYn:$("#oldProductYn").val(),abnormalcoloryn:1===
$("#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:G,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(ea)||["08"].includes(y))&&"ph"===R||["0801","0803","0805","0401"].includes(ea)&&
"id"===R||(["0401","0402","0404","0501"].includes(ea)||"08"==y)&&"nz"===R||["01","04","05","07","08"].includes(y)&&"n_africa"===R||va||oa||b||da||na||L||("08"==y||"01"==y)&&("levant"===R||"levant_ar"===R),isOldHybrisWishlist:"Y"===g.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"===g.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()||"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:N,categoryGroup:y,productCategoryMainType:{"0401":"tv","0402":"tv","0801":"wm","0803":"rf","0807":"vc","0805":"ac","0701":"monitor"}[ea],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"}[ea],rewards:{config:{allowedSites:["au","de","fr","it","mx"],useNumberFormatterByLocale:["de"],rewardsMemeberCheckSite:["mx"]},
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:p,buyingTool:C,buyingToolGlallery:p.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:T,buyingToolCalculate:E.find(".pd-buying-tool__emi-calculator"),buyingToolCalculateDivider:E.find(".option-divider.emi-links"),buyingToolLinks:E.find(".pd-buying-tool__links")};ca.stockLevelStatus&&(ca.stockLevelStatus=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;g=new k.BuyingToolOpView(K,D);C=new k.BuyingToolOpUtile(K);D.view=g;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=g.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&&g.eanCodeDraw());g=k;C=g.RewardsCalculator;D.rewards.context=new g.RewardsPolicyContext({config:D.rewards.config,pageContext:D.rewards.pageContext});D.rewards.calculator=new C;D=ca;g=K;C=D.util;T=D.pdStageInfo;R=D.pdDisplayYn;E=D.parentPath;-1<E.indexOf("/content/samsung")&&
(E=E.split("/content/samsung")[1]);"admin"!==T&&"N"===R&&(T=!1,"true"===$("#isEppPage").val()&&(R=location.pathname.match(/[0-9]{13}/g),null!=R&&"undefined"!=typeof R&&""!=$.trim(R)&&(T=!0)),T||(T="/",-1<location.href.indexOf(".html")&&(T=".html"),E&&(location.href=E+T)));window.location.search&&-1<window.location.search.indexOf("accesstoken")&&(D.accessToken=C.getQuerystring("accesstoken"),D.commonApiModel.externalAjax(D,g));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,g);h(D,g);C.validateQuantity("1",D,g,!0);D=ca;g=K;C=D.view;E=D.displayName;T=D.siteCode;R=D.modelCode;
y=window.location.href.replace("/buy","");"in"===T&&-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;T=D.oldProductYn;R=D.abnormalcoloryn;y=D.shopApiModel;ea=D.modelCode;va=D.util;D.syndiProductData="";"in"===C&&-1<ea.indexOf("SM-A920F")&&(D.currentUrl="https://www.samsung.com/in/microsite/galaxy-a9/");D.isNotGpv2?y.productAjax(D,g):"Y"===E&&"Y"!==T&&"Y"!==R?y.productAjax(D,g):(va.totalAfterFunction(D,g),D.util.clickEventListener(D,
g),D.commonApiModel.settingWishList(D,g),va.gpHybrisGlobalEndPoint(D,g));H(ca,K)}function h(D,g){g=$(".usp-text");for(var C=0;C<g.length;C++){var E=g.eq(C).text();E&&-1<E.indexOf("|_|")&&(E=E.trim().replace(/\|_\|([^\|_\|]*)\|_\|/g,function(T,R){return currencyComma(parseFloat(R),D.priceCurrency)}),g.eq(C).text(E))}}function H(D,g){D.optionId="";var C={sharedObj:D,selectorObj:g};g.buyingToolOptBundle.on("click",".option-input",C,function(T){var R=$(this),y=T.data.sharedObj,ea=T.data.selectorObj,va=
y.detailNodePath;-1<window.location.href.indexOf("author.samsung.com")&&-1==va.indexOf("/content/samsung")&&(va="/content/samsung"+va);var ra=y.siteCode,oa=modelCodeToSelector(R.data("modelcode"));T=R.data("familycode");var da=y.isClicked,na=R.closest(".pd-select-option").attr("id");y.isBuyingoptionApi=R.hasClass("buyingoption-api");y.focusId=na;if(da||R.hasClass("checked"))return!1;da="/";-1<location.href.indexOf(".html")&&(da=".html");if(oa){na="";if("true"===$("#isEppPage").val()){var L=location.pathname.match(/[0-9]{13}/g);
null!=L&&"undefined"!=typeof L&&""!=$.trim(L)&&(na=".offerid-"+L)}T=va+".pd-g-product-detail-header-ux2."+oa+"."+y.siteCode+"."+T+na+da;y.isClicked=!0;y.isOptClicked=!0;setTimeout(function(){y.isClicked=!1},1500);da=y.disabledClass;na=ea.buyingToolOptWarrantyVdResult;var N=function(r){var G=$("\x3cdiv\x3e\x3c/div\x3e").append(r);r=G.find(".sg-pdh-product-info");var P=G.find(".sg-pdh-gallery-section"),Z=G.find(".sg-pdh-buying-tool"),d=G.find("#sg-pdh-dynamic-template-assembly"),M=G.find("#detail-input-hidden"),
t=G.find("#betterTogether"),z=G.find("section.pd-banner"),I=G.find("#pdd16-step-buying");G=G.find("#front-api-rawcode-component");$("#detailNodePath").val(va);p.find(".sg-pdh-product-info").replaceWith(r);p.find(".sg-pdh-gallery-section").replaceWith(P);p.find(".sg-pdh-buying-tool").replaceWith(Z);p.find("#sg-pdh-dynamic-template-assembly").replaceWith(d);p.find("#detail-input-hidden").replaceWith(M);p.find("#betterTogether").replaceWith(t);p.find("section.pd-banner").replaceWith(z);p.find("#pdd16-step-buying").replaceWith(I);
p.find("#front-api-rawcode-component").replaceWith(G);"nl"===ra&&($("#rentalInstallmentFinancing").hide(),$("#rentalInstallmentFinancingTable").html(""));window.sg.components.ProductDetailKvNew.reInit();$("#"+y.focusId).find('.option-input[checked\x3d"checked"]').focus();r=$("#currentPdpUrl").val();P=-1<location.href.indexOf("/buy");r&&(-1<location.href.indexOf(".html")?("/"===r.substring(r.length-1)&&(r=r.substring(0,r.length-1)),r=P&&0>r.indexOf("/buy")?"/content/samsung"+r+"/buy.html":"/content/samsung"+
r+".html"):P&&0>r.indexOf("/buy")&&(r="/"===r.substring(r.length-1)?r+"buy/":r+"/buy/"),"true"===$("#isEppPage").val()&&(P=$("#currentPdpUrl").val(),Z="buy",-1<location.href.indexOf("/pd.")&&(Z="pd"),-1<P.indexOf("/pd.")?r=$("#currentPdpUrl").val().replace("/pd.","/"+Z+"."):-1<P.indexOf("/feature.")?r=$("#currentPdpUrl").val().replace("/feature.","/"+Z+"."):-1<P.indexOf("/buy.")&&(r=$("#currentPdpUrl").val().replace("/buy.","/"+Z+".")),P=r.match(/[0-9]{13}/g),""===$.trim(P)&&(P=location.pathname.match(/[0-9]{13}/g),
null!=P&&"undefined"!=typeof P&&""!=$.trim(P)&&(r=r.replace(oa,oa+"."+P))),-1<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";P="true"===$("#isEppPage").val()?".ep-cm-g-breadcrumb":
".nv-g-breadcrumb";y.isBuyingoptionApi||w(u(".pd-g-feature-benefit-ux2",y,ea),".pd-g-feature-benefit-ux2",y,ea);U(u(".pd-g-product-detail-offer-banner",y,ea),".pd-g-product-detail-offer-banner",y,ea);x(u(".pd-g-product-specs-ux2",y,ea),".pd-g-product-specs-ux2",y,ea);W(u(".pd-g-product-review-highlight",y,ea),".pd-g-product-review-highlight",y,ea);F(u(".pd-g-product-recently-viewed-ux2",y,ea),".pd-g-product-recently-viewed-ux2",y,ea);n(u(".pd-g-product-support-ux2",y,ea),".pd-g-product-support-ux2",
y,ea);v(u(P,y,ea),P,y,ea);aa(u(".pd-g-manufacturer-info-popup",y,ea),".pd-g-manufacturer-info-popup",y,ea);B(u(r,y,ea),r,y,ea);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:N,complete:function(){y.isClicked=
!1}})};na.hasClass(y.hasComponentClass)&&!na.hasClass(da)?(da=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",T),confirmPopupV2(da,"change option","",R),$(".confirm-popup-v2").on("click",'.cta[data-event-type\x3d"change-option"]',C,function(r){r=$(this).data("nodeurl");b(r)})):b(T)}});
g.buyingToolOptBundle.on("click",".bezel-option-input",C,function(T){var R=$(this),y=T.data.sharedObj,ea=T.data.selectorObj;T=y.detailNodePath;-1<window.location.href.indexOf("author.samsung.com")&&-1==T.indexOf("/content/samsung")&&(T="/content/samsung"+T);var va=y.modelCode,ra=R.data("bezelmodelcode");R.data("bezelmodelpatterncode");var oa=R.data("familycode"),da=y.isBezelClicked,na=R.closest(".pd-select-option").attr("id"),L=ra===va,N="";y.pmtURL="/"+y.siteCode+"/tvs/personalize-my-tv/?sku\x3d"+
va+"\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)N+="\x26option\x3d";y.pmtModelList.forEach(function(b){N+=b+","});$("#personalizeMyTv .cta").attr("href",y.pmtURL+N.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,ea),y.isPossibleBuy?y.util.settingPriceCta(y.hasPriceCta,y,ea,y.currentUrl):!y.isPossibleBuy&&y.sellingWithBazel&&y.util.settingPriceCta(y.hasPriceCta,y,ea,y.currentUrl));if(da||R.hasClass("checked"))return!1;R="/";-1<location.href.indexOf(".html")&&
(R=".html");va&&(ea="",ea=-1<ra.indexOf("/")?ra.replace("/","_"):ra,da="","true"===$("#isEppPage").val()&&(na=location.pathname.match(/[0-9]{13}/g),null!=na&&"undefined"!=typeof na&&""!=$.trim(na)&&(da=".offerid-"+na)),ea=ra?T+".pd-g-product-detail-header-ux2."+va+"."+y.siteCode+"."+oa+"."+ea+da+R:T+".pd-g-product-detail-header-ux2."+va+"."+y.siteCode+"."+oa+da+R,y.isBezelClicked=!0,setTimeout(function(){y.isBezelClicked=!1},1500),$.ajax({type:"GET",url:ea,dataType:"html",success:function(b){b=$("\x3cdiv\x3e\x3c/div\x3e").append(b).find(".sg-pdh-gallery-section");
p.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}}));p.find(".pd-select-option__info-link").click(function(){var b=$(this).data("target-popup"),r="";1<p.find(".pd-select-option__info-link").length?"mordernType"===b?r=document.querySelectorAll(".pd-select-option__info-link")[0]:"beveledType"===b&&(r=document.querySelectorAll(".pd-select-option__info-link")[1]):
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(T){var R=
T.require("product_widget");T=T.require("multi_widget");var y=new R({name:"inline-rating",product_id:E,container:"#aplaut-inline-rating-container"}),ea=new R({name:"product-reviews",product_id:E,container:"#aplaut-reviews-container"});R=new R({name:"product-questions",product_id:E,container:"#aplaut-questions-container"});T.render([y,ea,R])})}$(document).on("click",".bv_stars_component_container, .sp-inline-rating-stars, .pd-info__rating",function(){document.querySelector("#reviewWrap \x3e a").click()});
$("#isEppPage").val()&&p.find(".hdd02-pdp-header__cta-epromotor").hide();$(document).on("click",".hdd02-pdp-header .hdd02-pdp-header__cta-epromotor .cta",function(){window.sprChat("open")})}function u(D,g,C){C=g.detailNodePath;var E=modelCodeToSelector($("#modelCode").val());g=g.siteCode;var T="",R="/";-1<location.href.indexOf(".html")&&(R=".html");var y="";if("true"===$("#isEppPage").val()){var ea=location.pathname.match(/[0-9]{13}/g);null!=ea&&"undefined"!=typeof ea&&""!=$.trim(ea)&&(y=".offerid-"+
ea)}D&&(T=C+D+"."+E+"."+g+y+R,-1<D.indexOf("pd-g-anchor-navigation-ux2")&&(T=$("#familyCode").val(),T=C+D+"."+E+"."+g+"."+T+y+R));return T}function n(D,g,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(T){$(g).html(T)}})}function v(D,g,C,E){$.ajax({type:"GET",url:D,dataType:"html",success:function(T){T=$("\x3cdiv\x3e\x3c/div\x3e").append(T).find(".text-editor");$(".nv-g-breadcrumb .text-editor").replaceWith(T)}})}function F(D,g,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",
success:function(R){var y=window.sg.components.dynamic,ea=window.sg.components.ProductRecentlyViewed||{};$(g).html(R);y.rencentlyViewUx2&&y.rencentlyViewUx2.rencentlyViewGrid&&T.nonCheckError(y,y.rencentlyViewUx2.rencentlyViewGrid);ea&&T.nonCheckError(ea,ea.reInit)}})}function W(D,g,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/"),g="#review");$.ajax({type:"GET",
url:D,dataType:"html",success:function(T){$(g).html(T);T=window.sg.components.dynamic;"cn"===C.siteCode&&T.cnReview&&T.cnReview.init()}})}function aa(D,g,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){$(g).html(R);0<$(".manufacturer-info-popup").length&&(R=window.sg.components.manufacturerInfoPopup||{},T.nonCheckError(R,R.reInit))}})}function x(D,g,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var y=window.sg.components.ProductSpecNew||
{};$(g).html(R);T.nonCheckError(y,y.reInit)}})}function U(D,g,C,E){var T=C.util;$.ajax({type:"GET",url:D,dataType:"html",success:function(R){var y=window.sg.components.pdBanner||{};$(g).html(R);T.nonCheckError(y,y.reInit)}})}function B(D,g,C,E){var T=C.util,R=C.view;$.ajax({type:"GET",url:D,dataType:"html",success:function(y){var ea=window.sg.aem.components.product.setAnchors,va=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 $(g).html(y);T.nonCheckError(ea,ea.init);T.nonCheckError(va,va.reInit);R.productPriceTotalDraw(window.sg.components.dynamic.detailSharedObj.drawObj,window.sg.components.dynamic.detailSharedObj.isOptClicked);R.productDraw(window.sg.components.dynamic.detailSharedObj.drawObj);R.anchorDraw(k.detailSelectorObj.buyingToolInfoTitle.text());window.sg.components.pdHeaderNavigationV2.reInit()}})}function w(D,g,C,E){$.ajax({type:"GET",url:D,dataType:"html",
success:function(T){var R=C.util,y=$("\x3cdiv\x3e\x3c/div\x3e").append(T);$(g).html(T);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"),g=$("#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:g,productGroupCode:C},url:"/aemapi/v6/product/getNotification",success:function(E){var T="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-'+T+'-text-link" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:'+E.closePcHeadline+":"+E.ctaEngText+'"\x3e'+E.ctaText+'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e';"_self"==E.windowStyle?
R+='              \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e':"_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-'+T+'-text-link" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:'+E.closePcHeadline+":"+E.ctaEngText+'"\x3e'+E.ctaText+'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e';"_self"==E.windowStyle?R+='              \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e':
"_blank"==E.windowStyle&&(R+='              \x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e');R=R+'            \x3c/svg\x3e          \x3c/a\x3e        \x3c/div\x3e      \x3c/div\x3e    \x3c/div\x3e    \x3cbutton type\x3d"button" class\x3d"notification-bar__toggle-btn" an-tr\x3d"cod02_promotion bar-'+(T+'-view more-indication" an-ca\x3d"indication" an-ac\x3d"view more" an-la\x3d"promotion banner:view more"\x3e      \x3cspan class\x3d"hidden"\x3e')+(Granite.I18n.get("Click to Expand")+
"\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 p=$(".hdd02-pdp-header"),k=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),A=k.ux2.PDPHeaderUI,ca={},K={};if(0>=p.length)return!1;l()})();
(function(l,h){function H(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;U[K]={};U[K].modelCode=K;U[K].name=D.name||"";U[K].imageUrl=D.imageUrl||"";U[K].imageUrlAlt=D.imageUrlAlt||"";U[K].stocklevel=D.stocklevel||"";U[K].price=D.price||"";U[K].priceValue=D.priceValue||"";U[K].promotionPrice="";U[K].promotionPriceValue="";U[K].promotionPrice=D.promotionPrice?D.promotionPrice:D.price;U[K].promotionPriceValue=
D.promotionPriceValue?D.promotionPriceValue:D.priceValue}))}var u=h("#siteCode").val(),n=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",U={},B=[],w="ae"===u||"ae_ar"===u||"levant"===u||"levant_ar"===u||"n_africa"===u,e="ca"===u||"ca_fr"===u,p="";if("ae"===u||"ae_ar"===u){var k=l.cookies.getCookie("estoreSitecode");p=k?"ae"===k||"ae_ar"===k||"kw"===
k||"kw_ar"===k||"om"===k||"om_ar"===k||"bh"===k||"bh_ar"===k||"qa"===k||"qa_ar"===k?k:u:u}else p="levant"===u?"jo":"levant_ar"===u?"jo_ar":"n_africa"===u?"ma":u;p="true"===h("#isEppPage").val()?h("#eppCompanyCode").val():p;var A=v+"/"+p;if("cl"===u||"mx"===u||"py"===u)A=v;A+="/servicesv2/getRelatedProductsSimpleInfo";l.sg.sdf.util.prepareNamespace("sg.components.dynamic").betterTogetherHybris={getRelatedProductsSimpleInfo:function(ca){var K="\x26country_region\x3d";if(e){var D=getSECACountryRegion();
K+=D}ca="?productCode\x3d"+ca;B=[];D="true"===h("#isEppPage").val()?{withCredentials:!0}:{};"Y"===n?h.ajax({url:A+ca,type:"GET",dataType:"json",cache:!0,crossDomain:!0,xhrFields:D,timeout:1E4,success:H,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:H,error:function(){}}):h.ajax({url:A+ca,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:D,cache:!0,
crossDomain:!0,timeout:1E4,success:H,error:function(){}})},getSearchProductcard:function(ca){var K=[];h.each(U,function(E,T){K.push(T.modelCode)});var D=h.cookies.get("country_region")?h.cookies.get("country_region").toString():"",g={modelList:K.toString(),onlyRequestSkuYN:"Y",saleSkuYN:"N",siteCode:u};if("ca"===u||"ca_fr"===u)g.regionCode=null!=D&&""!=D?D:"CA-ON";w&&(g.shopSiteCode=p);var C=(D="true"===h("#isEppPage").val())?"epp/v2":"b2c";D&&(g.companyCode=h("#eppCompanyCode").val(),g.shopSkuYN=
"N",l.sg.epp.common.isUserGroupPricing&&(g.groupName=l.sg.epp.common.groupName),""!=l.sg.epp.common.userStoreId&&(g.o2oId=l.sg.epp.common.userStoreId));h.ajax({url:F+"/"+W+("/"+C+"/product/card/detail/")+x,type:"GET",data:g,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(T,R){var y=R.modelList,ea=R.categorySubTypeEngName;null!=y&&h.each(y,
function(va,ra){var oa=ra.modelCode,da=U[oa].stocklevel;U[oa]&&(ra.displayName||(ra.displayName=U[oa].name),ra.thumbUrl||(ra.thumbUrl=U[oa].imageUrl),ra.thumbUrlAlt||(ra.thumbUrlAlt=U[oa].imageUrlAlt),ra.priceDisplay=U[oa].price,ra.promotionPriceDisplay=U[oa].promotionPrice,ra.price=U[oa].priceValue,ra.promotionPrice=U[oa].promotionPriceValue,ra.stocklevel=da,ra.isStock=!(""===da||"OUTOFSTOCK"===da.toUpperCase()),ra.idx=String(T)+"-"+String(va),ra.categorySubTypeEngName=ea)})}),B=E)},error:function(){},
complete:function(){ca(B)}})},setPriceInfo:function(ca){var K=ca.price,D=ca.promotionPrice,g=Number((parseFloat(K)-parseFloat(D)).toFixed(2)),C=currencyComma(g,aa),E=ca.priceDisplay||(K?currencyComma(K,aa):"");ca=ca.promotionPriceDisplay||(D?currencyComma(D,aa):"");return{promotionPrice:D,productPrice:K,savePriceTemp:g,saveText:C,productPriceDisplay:E,promotionPriceDisplay:ca}}}})(window,window.jQuery);
(function(l,h){function H(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 n="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 U=
{};U.modelList=W[aa];U.chipOptions=[];for(var B=0;B<W[aa].length;B++){x=W[aa][B];var w=x.ctaType;x.idx=String(v)+"-"+String(B);x.inventory&&x.inventory.status&&(w=x.inventory.status,x.ctaType=w);x.isStock=!(""===w||"NOORDER"===w.toUpperCase()||"OUTOFSTOCK"===w.toUpperCase());w=U.chipOptions;x=x.fmyChipList;for(var e=0;e<x.length;e++){var p=x[e];if(0<w.length){for(var k=!0,A=0;A<w.length;A++){var ca=w[A];if(ca.fmyChipType===p.fmyChipType){var K={optionCode:p.fmyChipCode,optionLocalName:p.fmyChipLocalName,
optionName:p.fmyChipName};k=!1;-1===JSON.stringify(ca.optionList).indexOf(JSON.stringify(K))&&ca.optionList.push(K)}}k&&H(w,p)}else H(w,p)}}v++;F.push(U)}return F},setPriceInfo:function(v){var F=0,W=0,aa=0,x="",U="",B="";null!=v.price_info&&0<v.price_info.length&&v.price_info[0].msrp_price&&(W=v.price_info[0].msrp_price.value,F=v.price_info[0].sale_price.value,aa=Number((parseFloat(W)-parseFloat(F)).toFixed(2)),x=currencyComma(aa,u),U=v.price_info[0].msrp_price.formatted_value,B=v.price_info[0].sale_price.formatted_value,
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),U=n||!U?currencyComma(W,u):U,B=n||!B?currencyComma(F,u):B);return{promotionPrice:F,productPrice:W,savePriceTemp:aa,saveText:x,productPriceDisplay:U,promotionPriceDisplay:B}}}})(window,window.jQuery);
(function(l,h){function H(){var N=h("#voucherTotal"),b=h("#voucherBalance"),r=h("#voucherCharge"),G=currencyComma(0,k),P=h(".better-together__headline-text"),Z=h(".better-together__desciption");N.html(G);b.html(G);r.html(G);if(R)N=e.detailSharedObj.voucherdata,Z="",N.formatted_sales_pitch?Z=N.formatted_sales_pitch:N.sales_pitch&&(Z=N.sales_pitch),P.html(Z),b.html(N.discount_description[0].formatted_value),b.attr("data-price",N.discount_description[0].value),b.attr("data-oriPrice",N.discount_description[0].value);
else for(N=e.detailSharedObj.voucherdataHybris,r=0;r<N.length;r++){G=N[r].key;var d=N[r].value;d&&("voucherPrice"===G&&(b.html(currencyComma(d,k)),b.attr("data-price",d),b.attr("data-oriPrice",d)),"mainTitle"===G&&P.html(d),"subTitle"===G&&(Z.html(d),Z.show()))}h(".better-together").addClass("better-together__selected");h(".better-together__selected-info").show()}function u(){var N=h("#voucherTotal"),b=h("#voucherBalance"),r=h("#voucherCharge"),G=b.attr("data-oriPrice"),P=h(".better-together__selected-title .number span");
N.attr("data-price",0);b.attr("data-price",G);r.attr("data-price",0);N.html(currencyComma(0,k));b.html(currencyComma(G,k));r.html(currencyComma(0,k));P.html(0);N=h(".better-together .better-together__cta .cta--on");N.find("span").html(da);N.removeClass("cta--on")}function n(N){var b=h("#voucherBalance"),r=Number(b.attr("data-oriPrice"))||0;b=Number(b.attr("data-price"))||0;if(0===b){var G="allVoucher";var P=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
N="voucher"+N}else b===r?(G="redeem",P=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(b,k)),N="skip"+N):0<b&&(G="voucher",P=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(b,k)),N="voucher"+N);confirmPopup(P,G,N)}function v(N){A=N;null==A||0===Object.keys(A).length?setInterval(function(){e.DetailAfterEvent.addToCartCta([],!0,!0)},1E3):(U(A),e.detailSharedObj.hasVoucher&&
H(),l.sg.components.betterTogether.show(document.querySelector(".better-together"),h(".better-together").siblings().add(h(".better-together").parent().siblings()),T),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(N,b){for(var r=0;r<N.length;r++)if(N[r]===b)return!0;return!1}function W(N,b,r){var G="",P=h("#scene7domain").val();N&&(b=-1<N.indexOf("?")?"":"?"+b,-1<N.indexOf("https:")||
-1<N.indexOf("http:")||-1<N.indexOf("//stg-images.samsung.com/")||-1<N.indexOf("//images.samsung.com/")||-1<N.indexOf("image.samsung.com/")||-1<N.indexOf("//stg-images.samsung.com.cn/")||-1<N.indexOf("//images.samsung.com.cn/")||-1<N.indexOf("image.samsung.com.cn/")?G=N:(r&&(P=P.replace("/image/","/content/")),G=P+N),G+=b);return G}function aa(N){var b="",r=N.modelList[N.frontModelIdx],G=r.isStock,P=E.setPriceInfo(r),Z=P.promotionPrice,d=P.savePriceTemp,M=P.saveText,t=P.productPriceDisplay,z=P.promotionPriceDisplay;
P=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=N.modelList[N.frontModelIdx];if(N.viewOptionObj&&
0<Object.keys(N.viewOptionObj).length){var X="",V=0,O=N.viewOptionObj,S=N.optionTypeList;for(Ca in N.viewOptionObj){var Q=Ca.toLowerCase().replace(/ /g,"-"),fa=N.viewOptionObj[Ca].optionList,la="",ma=D?"evoucher":"add-on";N.viewOptionObj[Ca].styleAttr&&(la=N.viewOptionObj[Ca].styleAttr);if("COLOR"===Ca){var ta="",ya="",sa;for(sa in fa){var Na=fa[sa];var pa=!1;var a=Na.modelIdx.split(",");if(null!=Na.modelIdx&&F(a,String(N.frontModelIdx))){pa=!0;ta=Na.modelIdx;var c=""}else if(c=" is-disabled",0===
V)c="";else{var m=X.split(","),f;for(f in a)if(F(m,a[f])){c="";break}}m=a="";if(""===c){var q=Na.modelIdx;var ba=[],J=!0,ha;for(ha in O)if(ha!==Ca){var qa=O[ha].optionList,ia;for(ia in qa){var za=qa[ia];za=za.modelIdx;var Ha=za.split(",");-1<Ha.indexOf(String(N.frontModelIdx))&&ba.push(za)}}q=L(O,q,ba,J,S);N.modelList.length>q&&N.modelList[q]&&(a=N.modelList[q].modelCode,m=N.modelList[q].modelName)}ba="pdd10-"+Q+"-"+sa+"-"+I.idx;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"'+ma+":"+Ca.toLowerCase()+":"+Na.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: '+Na.optionCode+'"\x3e'+Na.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}X=ta;Q="";for(sa in fa)Na=fa[sa],a=Na.modelIdx.split(","),null!=Na.modelIdx&&F(a,String(N.frontModelIdx))&&(Q=Na.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"'+la+'"\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"===Ca||
"TV SIZE"===Ca||"HOME APPLIANCE SIZE"===Ca){ya=ta="";for(var Fa=0;Fa<fa.length;Fa++){Na=fa[Fa];pa=!1;a=Na.modelIdx.split(",");if(null!=Na.modelIdx&&F(a,String(N.frontModelIdx)))pa=!0,ta=Na.modelIdx,c="";else if(c=" is-disabled",0===V)c="";else for(f in m=X.split(","),a)if(F(m,a[f])){c="";break}m=a="";if(""===c){q=Na.modelIdx;ba=[];J=!1;for(ha in O)if(ha!==Ca)for(ia in qa=O[ha].optionList,qa)za=qa[ia],za=za.modelIdx,Ha=za.split(","),-1<Ha.indexOf(String(N.frontModelIdx))&&ba.push(za);q=L(O,q,ba,J,
S);N.modelList.length>q&&N.modelList[q]&&(a=N.modelList[q].modelCode,m=N.modelList[q].modelName)}ba="pdd10-"+Q+"-"+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"'+
ma+":"+Ca.toLowerCase()+":"+Na.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'+Na.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}X=ta;Z+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity" data-desktop-view\x3d"3" data-mobile-view\x3d"3"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
la+'"\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"'+P+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t"+(null!=r.energyLabelGrade?'\x3ca class\x3d"badge '+r.energyLabelClass2+'" href\x3d"'+r.energyFileUrl+'" target\x3d"_blank" title\x3d"'+r.energyLabelGrade+
'"\x3e\n\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+r.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+r.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\x3c/div\x3e");if("pl"!==p||G)b+='\x3cdiv class\x3d"better-together__price"\x3e'+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"+(g||"de"===p?Granite.I18n.get("From")+" ":"")+"\x3cdel\x3e"+t+"\x3c/del\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t"+(g?"":'\x3cspan class\x3d"better-together__price-save"\x3e'+Granite.I18n.get("Save {0}",M)+"\x3c/span\x3e"):"")+"\n\t\t\t\t\x3c/div\x3e";N=ca.includes(r.idx);t=Granite.I18n.get("Out Of Stock");d=Granite.I18n.get("Item added");var Ca=Granite.I18n.get("Add to cart");M=Granite.I18n.get("Add");t=G?N?d:D?M:Ca:t;return b+='\x3cdiv class\x3d"better-together__cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--contained cta--black'+
(!G||N&&!D?" cta--disabled":"")+(N&&D?" cta--on":"")+'" href\x3d"javascript:void(0)" title\x3d"'+t+'" \n\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+C+"-"+(D?"button":"popup")+'-add" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+P+':add item" \n\t\t\t\t\t\tdata-modelcode\x3d"'+r.modelCode+'" data-modelname\x3d"'+r.modelName+'"\x3e\n\t\t\t\t\t\t'+(D?'\x3cspan data-global-text\x3d\'{"selected" : "'+d+'", "unSelected" : "'+M+"\"}'\x3e"+t+"\x3c/span\x3e":t)+"\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e"}
function x(N,b){null==N.modelList[b].displayName&&(N.modelList[b].displayName="");var r={};for(d in N.modelList){var G=N.modelList[d].fmyChipList,P;for(P in G){var Z=G[P].fmyChipType+"+"+G[P].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+G[P].fmyChipLocalName.replace('"',"").replace("\x26quot;","");r[Z]=void 0==r[Z]?d:r[Z]+(","+d)}}var d=[];G={};if(N.chipOptions)for(P=0;P<N.chipOptions.length;P++){var M=N.chipOptions[P],t=M.fmyChipType,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]);G[t]={};G[t].optionList=z;d.push(t)}N.viewOptionObj=G;N.optionTypeList=d;N.frontModelIdx=b;return N}function U(N){var b="";ca=[];K=[];D=l.sg.components.dynamic.detailSharedObj.hasVoucher;if(null!=N){b="";for(var r=0;r<N.length;r++){var G=N[r];if(null!=G.modelList&&0<G.modelList.length){for(var P=0,Z=null,d=0;d<G.modelList.length;d++){var M=G.modelList[d],t=M.isStock;M.selected&&
"Y"===M.selected&&(P=d,t&&(Z=d))}if(null==Z)for(d=0;d<G.modelList.length;d++)if(M=G.modelList[d],M.isStock){Z=d;break}null==Z&&(Z=P);G=x(G,Z);b+=aa(G)}}b+='\x3cdiv class\x3d"better-together__cta-more"\x3e\n\t\t\t\t\x3ca href\x3d"javascript:void(0);" class\x3d"cta" an-tr\x3d"pdd10_product bought together-'+C+'-image-view more" an-ca\x3d"indication" an-ac\x3d"view more" an-la\x3d"view more"\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon next" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\x3cspan class\x3d"cta-text"\x3e'+
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 N=(h(this).closest(".better-together__item").attr("data-index")||"").split("-")[0],b=h(this).data("modeli");setTimeout(function(){if(null!=b){A[N].frontModelIdx=b;var r=x(A[N],b),G=h(".better-together__item.unbind-option").eq(N),P=h(".better-together__item.unbind-option").index(G);G.find(".option-selector__swiper-wrapper").each(function(Z){Z=A[N].optionTypeList[Z];var d=h(this).attr("style");A[N].viewOptionObj[Z].styleAttr=d});G.replaceWith(aa(r));G=h(document.querySelectorAll(".better-together__item.unbind-option")[P]);
G.addClass("is-item-visible");l.sg.components.betterTogether.reInitCard(G[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 N=h(this),b=Granite.I18n.get("Item added"),r=N.closest(".better-together__item").attr("data-index"),G=r.split("-");G=A[G[0]].modelList[G[1]];G=R?G.shopSKU:G.modelCode;D?(b=ca.indexOf(r),N=parseFloat(N.closest(".better-together__item").attr("data-price")),
-1<b?(w(N,!1),ca.splice(b,1),K.splice(b,1)):(w(N,!0),ca.push(r),K.push(G))):(N.text(b),N.addClass("cta--disabled"),ca.push(r),K.push(G),r=Granite.I18n.get("Product has been successfully added to cart"),"pl"!==p&&confirmPopup(r,"addToCart"));r=h("#primaryInfoGoCart");N=h("#primaryInfoCheckOut");b=h("#primaryInfoGoCart, #primaryInfoCheckOut");if(0<ca.length){for(var P=G="",Z="",d="",M="",t="",z="",I="",X="",V="",O=0;O<ca.length;O++){var S=ca[O],Q=S.split("-")[0];S=S.split("-")[1];Q=A[Q].modelList[S];
S=E.setPriceInfo(Q);var fa=S.productPrice,la="",ma="";0<O&&(la=",",ma=";");G+=la+Q.modelCode;P+=la+Q.modelName;Z+=ma+Q.displayName;d+=la+fa;M+=la+S.promotionPrice;t+=la+Q.pviTypeName;z+=la+Q.pviSubtypeName;I+=la+Q.categorySubTypeEngName;X+=la+fa;V+=la+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"),N.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"),N.attr("an-tr","pdd10_product bought together-"+C+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:checkout"));b.attr("data-modelcode",G).attr("data-modelname",P).attr("data-modeldisplay",Z).attr("data-modelprice",
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"),N.attr("an-tr","pdd10_product bought together-"+C+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout")):
(r.attr("an-tr","pdd10_product bought together-"+C+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"),N.attr("an-tr","pdd10_product bought together-"+C+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout")),b.removeAttr("data-modelcode").removeAttr("data-modelname").removeAttr("data-modeldisplay").removeAttr("data-modelprice").removeAttr("data-discountprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-pimsubtype").removeAttr("data-modelrevenue").removeAttr("data-modelqty").removeAttr("data-modelcurrency")})}
function w(N,b){var r=h("#voucherTotal"),G=h("#voucherBalance"),P=h("#voucherCharge"),Z=parseFloat(r.attr("data-price")||0),d=parseFloat(G.attr("data-oriprice")||0);Z=b?Z+N:Number((parseFloat(Z)-parseFloat(N)).toFixed(2));N=Number((parseFloat(d)-parseFloat(Z)).toFixed(2));0>N?(b=-N,N=0):b=0;r.attr("data-price",Z);G.attr("data-price",N);P.attr("data-price",b);r.html(currencyComma(Z,k));G.html(currencyComma(N,k));P.html(currencyComma(b,k))}var e=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
p=h("#siteCode").val(),k=h("#priceCurrency").val(),A=[],ca=[],K=[],D=!1,g="nl"===p||"be"===p||"be_fr"===p,C=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),E={},T=null,R=!1,y=!1,ea=Granite.I18n.get("From"),va=Granite.I18n.get("or"),ra=Granite.I18n.get("Monthly Price:"),oa=Granite.I18n.get("Full Price:"),da=Granite.I18n.get("Add"),na=Granite.I18n.get("Are you sure to remove this product?"),L=function(N,b,r,G,P){b=b.split(",");var Z=b[0];P=P.indexOf("MEMORY");if(!R&&!y&&G&&0<P){r=N.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])){N=r[t].optionCode.replace("TB","000").replace(/[^0-9]/g,"");M<N&&(M=N,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?n("GoCart"):e.DetailAfterEvent.addToCartCta(K,!0,!0)});h(document).on("click","#primaryInfoCheckOut",function(){e.detailSharedObj.hasVoucher?n("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(N){var b=e.detailSharedObj;
T=N;N=e.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||"";var r=N.split(" "+va+" ");N=1<r.length?'\x3cdiv class\x3d"better-together__price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+ra+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__price-text"\x3e'+ea+"\x3c/span\x3e\n                    "+r[0].replace(ea,"")+'\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'+va+"\x3c/span\x3e\n                    "+r[1]+"\n                \x3c/div\x3e":'\x3cdiv class\x3d"better-together__price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+oa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__price-text"\x3e\x3c/span\x3e\n                    '+N+"\n                \x3c/div\x3e";h(".better-together .better-together__price-wrap").html(N);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 H(){var Y=h("#voucherTotal"),ja=h("#voucherBalance"),Aa=h("#voucherCharge"),Ba=currencyComma(0,ra),Ga=h(".pdd16-step-buying__headline"),ua=h(".pdd16-step-buying__sub-headline"),Ea=h(".pdd16-step-buying__disclaimer");y.useAddonV2&&(Y=h("#voucherTotal2"),ja=h("#voucherBalance2"),Aa=h("#voucherCharge2"),Ga=h(".pdd16-step-buying-v2__headline"),ua=h(".pdd16-step-buying-v2__sub-headline"),Ea=h(".pdd16-step-buying-v2__disclaimer"));Y.html(Ba);ja.html(Ba);Aa.html(Ba);if(da)Y=T.detailSharedObj.voucherdata,
ua="",Y.formatted_sales_pitch?ua=Y.formatted_sales_pitch:Y.sales_pitch&&(ua=Y.sales_pitch),Ga.html(ua),ja.html(Y.discount_description[0].formatted_value),ja.attr("data-price",Y.discount_description[0].value),ja.attr("data-oriPrice",Y.discount_description[0].value);else for(Y=T.detailSharedObj.voucherdataHybris,Aa=0;Aa<Y.length;Aa++){Ba=Y[Aa].key;var Ka=Y[Aa].value;Ka&&("voucherprice"===Ba.toLowerCase()&&(ja.html(currencyComma(Ka,ra)),ja.attr("data-price",Ka),ja.attr("data-oriPrice",Ka)),"maintitle"===
Ba.toLowerCase()&&Ga.html(Ka),"subtitle"===Ba.toLowerCase()&&(ua.html(Ka),ua.show()),"description"===Ba.toLowerCase()&&(Ea.find("p").html(Ka),Ea.show()))}}function u(){var Y=h("#voucherTotal"),ja=h("#voucherBalance"),Aa=h("#voucherCharge"),Ba=h("#selectedItem");y.useAddonV2&&(Y=h("#voucherTotal2"),ja=h("#voucherBalance2"),Aa=h("#voucherCharge2"),Ba=h("#selectedItem2"));var Ga=ja.attr("data-oriPrice"),ua=h(".better-together__selected-title .number span");Y.attr("data-price",0);ja.attr("data-price",
Ga);Aa.attr("data-price",0);Ba.html("");Y.html(currencyComma(0,ra));ja.html(currencyComma(Ga,ra));Aa.html(currencyComma(0,ra));ua.html(0);ta=ma=0}function n(Y){var ja=h("#voucherBalance");y.useAddonV2&&(ja=h("#voucherBalance2"));var Aa=Number(ja.attr("data-oriPrice"))||0;ja=Number(ja.attr("data-price"))||0;if(0===ja){var Ba="allVoucher";var Ga=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
Y="voucher"+Y}else ja===Aa?(Ba="redeem",Ga=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(ja,ra)),Y="skip"+Y):0<ja&&(Ba="voucher",Ga=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(ja,ra)),Y="voucher"+Y);confirmPopup(Ga,Ba,Y);Y=h(".confirm-popup");Aa=Y.find(".confirm-popup__title");Ga=Y.find(".cta--contained");ja=Y.find(".cta--outlined");if("hk"===
ea||"hk_en"===ea)"redeem"===Ba?(Aa.html(Granite.I18n.get("Are you sure? (redeem)")),Y.find(".cta--outlined.cta--black").attr("id","skipGoCartAddOn"),Ga.html(Granite.I18n.get("Use Your Galaxy Credit")),ja.html(Granite.I18n.get("Skip")),Y.find(".cta--contained.cta--emphasis").removeAttr("id")):"voucher"===Ba&&(Aa.html(Granite.I18n.get("Are you sure? (voucher)")),Y.find(".cta--outlined.cta--black").attr("id","voucherGoCartAddOn"),Ga.html(Granite.I18n.get("Use Your Galaxy Credit")),ja.html(Granite.I18n.get("Skip")),
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 Aa=h(".pdd16-step-buying .pdd16-step-buying__card-input");Aa&&(ba={modelCode:[Aa.find("input:checked").attr("data-modelcode")]})}else l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();if(da){y.addOnCategoryList.forEach(function(xa,Xa){xa.category.productList.forEach(function(Ua,Pa){y.addOnSearchGPv2.forEach(function(Wa,bb){Wa.familyId===Ua.family_id&&(y.addOnInfoTemp.forEach(function(Ya){Wa.modelList.filter(function(Za,
cb){if(Ya.model_code===Za.modelCode){var ib=Ya.price_info[0],$a=Ya.inventory.status||"";Za.displayName=Ya.displayName||"";Za.thumbUrlAlt=Ya.imageUrlAlt||"";Za.priceDisplay=ib.list_price.formatted_value||"";Za.promotionPriceDisplay=ib.sale_price.formatted_value||"";Za.price=ib.list_price.value||"";Za.promotionPrice=ib.sale_price.value||"";Za.stocklevel=$a;Za.isStock=!(""===$a||"OUTOFSTOCK"===$a.toUpperCase());Za.idx=String(Pa)+"-"+String(cb)}})}),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 Ua=[];xa.category.productList.reduce(function(Pa,Wa){Pa.includes(Wa.familyId)||(Pa.push(Wa.familyId),Ua.push(Wa));return Pa},[]);xa.category.productList=Ua});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 Ga={};Y=h("#primaryInfoGoCartAddOn")[0].attributes;h.each(Y,function(){Ga[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(Ga);Y=Qa.find(".pdd16-step-buying-v2__bottom-price-inner");Aa=Qa.find(".pdd16-step-buying-v2__evoucher");var ua=y.drawObj.price.priceWrapper.info,Ea=h(".pdd16-step-buying__header-price-text")[0].innerText.split(" "+qa+" "),Ka=Ea[0];Ea=1<Ea.length?Ea[1]:"";var wa=
"";"bg"==ea&&(Ka=document.querySelector(".pdd16-step-buying__header-price-text"),Ka.querySelectorAll("sup").forEach(function(xa){return xa.replaceWith(","+xa.textContent)}),Ka=Ka.textContent.trim(),Ea=$jscomp.makeIterator(Ka.split(" "+qa+" ")),Ka=Ea.next().value,Ea=Ea.next().value,wa=function(xa){return xa.replace(/,(\d+)(?!\d)/g,"\x3csup\x3e$1\x3c/sup\x3e")},Ka=wa(Ka),Ea=Ea?wa(Ea):"");h(".pdd16-step-buying-v2__bottom-headline-text").text(y.displayName);h("#primaryInfoGoCartAddOn").text(Granite.I18n.get("Buy now"));
Ka&&Y.find(".final-text strong").html(Ka);Ea&&Y.find(".monthly-text").html(qa+" "+Ea);"in"==ea?(wa=ua.savePrice,Y.find(".pdd16-step-buying-v2__bottom-price-tax").text(""+ua.orignalPriceAddText),wa&&(Y.find(".sale-text").text(wa),Y.find(".pdd16-step-buying-v2__bottom-price-tax").append('\x3cinput type\x3d"hidden" class\x3d"hiddenSavePrice" value\x3d"'+ua.unformattedSavePrice+'"/\x3e'))):Y.find(".pdd16-step-buying-v2__bottom-price-save").remove();y.hasVoucher&&Aa.show();k(I)}else p(I);R.hide();l.scrollTo(0,
0);La.show();if(da||na){Y=h("[class*\x3d'feature-benefit']");for(Aa=0;Aa<Y.length;Aa++)Y[Aa].remove();Y=h("[class*\x3d'three-column-carousel']");for(Aa=0;Aa<Y.length;Aa++)Y[Aa].remove();h(".video-wrapper").remove();Y=h(".root.responsivegrid \x3e div");for(ua=0;ua<Y.length;ua++)Aa=Y[ua].classList,Aa.value.includes("aem-Grid--12")||Y[ua].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"),ua=0;ua<Y.length;ua++)Aa=Y[ua].classList,Aa.value.includes("aem-Grid--default--12")||Y[ua].remove();La.siblings().add(La.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();T.detailSharedObj.hasVoucher?(H(),_satellite.setVar("Add Page Name","evoucher")):
_satellite.setVar("Add Page Name","add on");_satellite.track("page view");Ma.get("useStaticTitle")&&(h(".pdd16-step-buying__headline")[0].innerHTML=Ma.get("staticTitle"));Ma.get("useStaticSubTitle")&&h(".pdd16-step-buying__sub-headline").text(Ma.get("staticSubTitle"))}}function F(Y,ja){for(var Aa=0;Aa<Y.length;Aa++)if(Y[Aa]===ja)return!0;return!1}function W(Y,ja,Aa){var Ba="",Ga=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:(Aa&&(Ga=Ga.replace("/image/","/content/")),Ba=Ga+Y));return Ba}function aa(Y,ja,Aa){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:(Aa&&(Ba=Ba.replace("/image/","/content/")),ja=Ba+Y));return ja}function x(){X=[];V=[];O=[];t={}}function U(Y){var ja="",Aa="",Ba=a[Y].priceValue,Ga=a[Y].promotionPriceValue?a[Y].promotionPriceValue:
Ba,ua=Ga?Ba-Ga:0,Ea=a[Y].promotionPrice?a[Y].promotionPrice:a[Y].price;var Ka='\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';Aa+='\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 '+Ka+" \x3c/div\x3e ";if(Ka="outofstock"!==(a[Y].stocklevel?a[Y].stocklevel.toLowerCase():"outofstock")?!0:!1)if(y.addonBundleRelatedData&&0!=y.addonBundleRelatedData.length)for(var wa=$jscomp.makeIterator(y.addonBundleRelatedData),xa=wa.next();!xa.done;xa=wa.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 Ua in Xa)Ka&&0==Xa[Ua].length&&(Ka=!1)}}else Ka=!1;var Pa=Ka?za:ka;Aa+='\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 '+(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eOriginal Price: '+Ba+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+Ga+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+(ua&&!Da?"\x3cdel\x3e"+a[Y].price+"\x3c/del\x3e":"")+"\n\t\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e";"cn"==ea&&frontModel.isComingSoon&&1==frontModel.isComingSoon?Aa+='\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"+ua+" data-promotionPrice\x3d"+Ga+' aria-selected\n\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-product detail-popup-add" an-ca\x3d"option click" data-text\x3d"'+za+'" data-text-selected\x3d"'+Oa+'"\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"!=ea||Ka||(ja=' data-gs-flag\x3d"GetStock"'),Aa+='\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--icon cta--icon-leading bundleSelect cta--bundle '+(Ka?"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"+ua+" data-promotionPrice\x3d"+Ga+' aria-selected\n\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-product detail-popup-add" an-ca\x3d"option click" data-text\x3d"'+
za+'" data-text-selected\x3d"'+Oa+'"\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 Aa}function B(Y,ja,Aa){var Ba="",Ga=r?Y.thirdPASeller:"",ua=Y.modelList[Y.frontModelIdx],Ea=ua.fmyChipList,Ka="";if(Ea&&0<Ea.length)for(var wa=
0;wa<Ea.length;wa++)if("COLOR"==Ea[wa].fmyChipType){Ka=""!==ua.fmyChipList[wa].fmyChipLocalName?ua.fmyChipList[wa].fmyChipLocalName:ua.fmyChipList[wa].fmyChipName;break}Ea=ua.isStock;var xa=z.setPriceInfo(ua);wa=xa.promotionPrice;var Xa=S?"evoucher":"add-on",Ua="";Q=ja;var Pa=ua.thumbUrl?ua.thumbUrl:"",Wa=ua.thumbUrlAlt?ua.thumbUrlAlt:"";Pa&&(Ua='\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(ua.commercialFlag)Pa=ua.commercialFlag,Wa="badge-icon--bg-color-teal";else if(ua.topFlags&&ua.topFlags.iconTitle&&ua.topFlags.iconTypeCd)switch(Pa=ua.topFlags.iconTypeCd,Pa.replace(/ /g,"").toUpperCase()){case "N":Pa=Granite.I18n.get("new");
Wa="badge-icon--bg-color-blue";break;case "H":Pa=Granite.I18n.get("hot");Wa="badge-icon--bg-color-red";break;case "B":Pa=Granite.I18n.get("best seller");Wa="badge-icon--bg-color-orange";break;case "U":Pa=ua.topFlags.iconTitle,Wa="badge-icon--bg-color-teal"}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')+(ua.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+ua.displayName+'\x3c/div\x3e\n            \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+Ua+"\n\t\t\t\x3c/div\x3e\n\t\t\t\t");Ua=da?": "+Ka:"\x26nbsp;"+Ka;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'+
(Ga?'Granite.I18n.get("Seller") : thirdPASeller':"")+'\n\t\t\t\t\x3c/p\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-option"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\t'+(Ka?'\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'+Ua+"\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t"+Va(Y,!1,ja,Aa)+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";
Y=ua.energyLabelGrade&&ua.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'+(ua.energyLabelGrade&&ua.ficheFileUrl?'\x3ca href\x3d"'+ua.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+Granite.I18n.get("Open in a new window")+'" class\x3d"cta-text" an-tr\x3d"pdd16_product bought together-'+oa+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+Xa+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+
"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Y?'\x3ca class\x3d"badge '+ua.energyLabelClass2+'" href\x3d"'+ua.energyFileUrl+'" target\x3d"_blank" title\x3d"'+ua.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+ua.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+ua.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";Y=null!==xa.promotionPrice&&""!==xa.promotionPrice&&"0"!==xa.promotionPrice&&
Number(parseFloat(xa.productPrice).toFixed(2))!==Number(parseFloat(xa.promotionPrice).toFixed(2))?!0:!1;Z&&(Y=!1);Aa="";M&&ua.monthlyPriceInfo&&ua.monthlyPriceInfo.leasingMonthly&&ua.monthlyPriceInfo.leasingMonths&&(Aa=currencyComma(ua.monthlyPriceInfo.leasingMonthly,ra),Ga=ua.monthlyPriceInfo.leasingMonths,Aa='\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",
[Aa])+" "+Granite.I18n.get("for {0} mos",[Ga]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==ea||Ea?"co"===ea&&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"+Aa+"\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 '+(P?"":"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"==ea?(Y="MRP: "+xa.productPriceDisplay+" (Incl. of all taxes)",Aa=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"+Aa+"\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 '+
(P?"":"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                  '+(!va&&"tr"!==ea||va&&"pl"!==ea?"\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"===ea?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 '+(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+
(P?"\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")):Ba="in"==ea?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")):
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';Aa=X.includes(ja+"-"+ua.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Ua=Granite.I18n.get("COMING SOON");Ga=!1;Ka="";if("cn"==ea&&ua.isComingSoon&&1==
ua.isComingSoon)Y=Granite.I18n.get("Coming Soon Title"),Ka=' data-gs-flag\x3d"ComingSoon"';else if(Ea?Y=Aa?Oa:za:(Y=Granite.I18n.get("Get Stock Alert"),"cn"==ea&&(Ka=' data-gs-flag\x3d"GetStock"')),null==Ea||void 0==Ea||null==xa||void 0==xa)Y=Ua,Ga=!0;Ua=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 bb=
da?ua.shopSKU:ua.modelCode;Ba+='\x3cdiv class\x3d"pdd16-step-buying__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Ga?"cta--disabled":"")+" cta cta--contained cta--icon cta--icon-leading  cta--2line-mo "+(Ea?"cta--black":"js-cta-stock cta--outlined")+"  "+(Aa?" cta--on":"")+'" '+Ka+' 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"'+bb+'" data-modelname\x3d"'+ua.modelName+'" data-shopsku\x3d"'+ua.shopSKU+'" data-price\x3d'+Ua+" data-text\x3d"+za+' data-text-selected\x3d"'+Oa+'" 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"'+bb+'" data-modelname\x3d"'+ua.modelName+'"\x3e\n\t\t\t\t\t\t\t'+Granite.I18n.get("Learn more")+"\n\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\x3c/div\x3e";return'\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+
ja+"-"+ua.idx+'" data-price\x3d"'+wa+'"\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,Aa){var Ba="",Ga=r?Y.thirdPASeller:"",ua=Y.modelList[Y.frontModelIdx],Ea=ua.fmyChipList,Ka="";if(Ea&&0<Ea.length)for(var wa=0;wa<Ea.length;wa++)if("COLOR"==Ea[wa].fmyChipType){Ka=""!==ua.fmyChipList[wa].fmyChipLocalName?ua.fmyChipList[wa].fmyChipLocalName:ua.fmyChipList[wa].fmyChipName;break}Ea=ua.isStock;wa=z.setPriceInfo(ua);var xa=wa.promotionPrice,Xa=S?"evoucher":"add-on",Ua="";
Q=ja;var Pa=ua.thumbUrl?ua.thumbUrl:"",Wa=ua.thumbUrlAlt?ua.thumbUrlAlt:"";Pa&&(Ua='\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(ua.commercialFlag)Pa=ua.commercialFlag,Wa="badge-icon--bg-color-teal";else if(ua.topFlags&&ua.topFlags.iconTitle&&ua.topFlags.iconTypeCd)switch(Pa=ua.topFlags.iconTypeCd,Pa.replace(/ /g,"").toUpperCase()){case "N":Pa=Granite.I18n.get("new");Wa="badge-icon--bg-color-blue";break;case "H":Pa=Granite.I18n.get("hot");Wa="badge-icon--bg-color-red";break;case "B":Pa=Granite.I18n.get("best seller");Wa="badge-icon--bg-color-orange";break;case "U":Pa=ua.topFlags.iconTitle,Wa="badge-icon--bg-color-teal"}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')+(Ua+'\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-title"\x3e\n\t\t\t\t\t\x3cstrong class\x3d"pdd16-step-buying-v2__card-title-text"\x3e'+ua.displayName+"\x3c/strong\x3e\n\t            \x3c/div\x3e");Ua=da?": "+Ka:"\x26nbsp;"+Ka;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'+
(Ga?'Granite.I18n.get("Seller") : thirdPASeller':"")+'\n\t\t\t\t\t\x3c/p\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-option"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"option-selector '+(Ka?"option-selector__color-text":"")+'"\x3e\n\t\t\t\t\t\t'+(Ka?'\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'+Ua+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t\t"+
Va(Y,!1,ja,Aa)+"\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e";Y=ua.energyLabelGrade&&ua.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'+(ua.energyLabelGrade&&ua.ficheFileUrl?'\x3ca href\x3d"'+ua.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+Granite.I18n.get("Open in a new window")+'" class\x3d"cta-text" an-tr\x3d"pdd16_product bought together-'+oa+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+
Xa+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Y?'\x3ca class\x3d"badge '+ua.energyLabelClass2+'" href\x3d"'+ua.energyFileUrl+'" target\x3d"_blank" title\x3d"'+ua.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+ua.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+ua.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";Y=
null!==wa.promotionPrice&&""!==wa.promotionPrice&&"0"!==wa.promotionPrice&&Number(parseFloat(wa.productPrice).toFixed(2))!==Number(parseFloat(wa.promotionPrice).toFixed(2))?!0:!1;Z&&(Y=!1);Aa="";M&&ua.monthlyPriceInfo&&ua.monthlyPriceInfo.leasingMonthly&&ua.monthlyPriceInfo.leasingMonths&&(Aa=currencyComma(ua.monthlyPriceInfo.leasingMonthly,ra),Ga=ua.monthlyPriceInfo.leasingMonths,Aa='\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",[Aa])+" "+Granite.I18n.get("for {0} mos",[Ga]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==ea||Ea?"co"===ea&&wa.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: '+wa.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+wa.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+
wa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+wa.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":Y?M?wa.lowestWasPrice?((Y=Math.round((parseFloat(wa.productPrice)-parseFloat(wa.lowestWasPrice))/parseFloat(wa.lowestWasPrice)*100))&&0<Y&&(Y="+"+Y),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'+
wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-text"\x3e'+Granite.I18n.get("Best price in the past 30 days:")+" "+currencyComma(wa.lowestWasPrice,ra)+" ("+Y+'%)\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-suggested"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e\x3cdel\x3e'+wa.productPriceDisplay+'\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+
Granite.I18n.get("Save {0}",wa.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t"+Aa+"\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'+wa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t                \x3cspan class\x3d"card-was '+(P?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\n\t\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+
wa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+wa.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+wa.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==ea?(Y="MRP: "+wa.productPriceDisplay+" (Incl. of all taxes)",Aa=wa.saveText?'\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+Granite.I18n.get("Save {0}",wa.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'+
wa.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"+Aa+"\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'+wa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t                \x3cspan class\x3d"card-was '+
(P?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\n\t\t\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+wa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+wa.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!va&&"tr"!==ea||va&&"pl"!==ea?"\x3cdel\x3e"+wa.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":d&&wa.lowestWasPrice?(wa.savePriceTemp=0,0<wa.lowestWasPrice&&
("au"===ea?wa.lowestWasPrice<wa.productPrice&&wa.lowestWasPrice>wa.promotionPrice&&(wa.productPrice=wa.lowestWasPrice,wa.savePriceTemp=wa.productPrice-wa.promotionPrice):wa.promotionPrice?(wa.lowestWasPrice<=wa.productPrice&&wa.lowestWasPrice>wa.promotionPrice&&(wa.productPrice=wa.lowestWasPrice),wa.savePriceTemp=wa.productPrice-wa.promotionPrice):wa.lowestWasPrice<=wa.productPrice&&(wa.productPrice=wa.lowestWasPrice)),wa.productPriceDisplay=currencyComma(wa.productPrice,ra),wa.saveText=0<wa.savePriceTemp?
currencyComma(wa.savePriceTemp,ra):"",Ba=wa.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'+wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-suggested '+(P?"":"pdd16-step-buying-v2--no-line-through")+
'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+(P?"\x3cdel\x3e"+wa.productPriceDisplay+"\x3c/del\x3e":""+wa.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}",wa.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\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'+(wa.promotionPrice&&
wa.promotionPrice<=wa.productPrice?wa.promotionPriceDisplay:wa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e")):Ba="in"==ea?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'+wa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-tax"\x3eMRP: '+
(wa.productPriceDisplay+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t              \x3c/div\x3e")):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'+(wa.promotionPrice&&wa.promotionPrice<=wa.productPrice?wa.promotionPriceDisplay:wa.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';Aa=X.includes(ja+"-"+ua.idx);
Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Ga=Granite.I18n.get("COMING SOON");Ka=!1;Ua="";if("cn"==ea&&ua.isComingSoon&&1==ua.isComingSoon)Y=Granite.I18n.get("Coming Soon Title"),Ua=' data-gs-flag\x3d"ComingSoon"';else if(Ea?Y=Aa?Oa:za:(Y=Granite.I18n.get("Get Stock Alert"),"cn"==ea&&(Ua=' data-gs-flag\x3d"GetStock"')),null==Ea||void 0==Ea||null==wa||void 0==wa)Y=Ga,Ka=!0;Ba+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Ka?"cta--disabled":
"")+" cta cta--black "+(Ea?"cta--contained":"js-cta-stock cta--outlined")+"  "+(Aa?" cta--on":"")+'" '+Ua+' 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"'+(da?ua.shopSKU:"in"!==ea?ua.modelCode:ua.shopSKU)+
'" '+(ua.childModelCode?'data-childmodelcode\x3d"'+ua.childModelCode+'"':"")+' data-modelname\x3d"'+ua.modelName+'" data-shopsku\x3d"'+ua.shopSKU+'" data-price\x3d'+(null!==wa.promotionPrice&&""!==wa.promotionPrice&&"0"!==wa.promotionPrice?wa.promotionPrice:wa.productPrice)+" data-text\x3d"+za+' data-text-selected\x3d"'+Oa+'" data-oriprice\x3d"'+wa.productPrice+'" data-savePrice\x3d"'+wa.savePriceTemp+'"\x3e\n\t\t\t\t\t\t\t\x3cspan\x3e'+Y+"\x3c/span\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e";
return'\x3cdiv class\x3d"pdd16-step-buying-v2__card swiper-slide '+(Aa?"is-selected":"")+'" role\x3d"listitem"\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-inner" data-index\x3d"'+ja+"-"+ua.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 Aa={};for(Ea in Y.modelList){var Ba=Y.modelList[Ea].fmyChipList,Ga;for(Ga in Ba){var ua=Ba[Ga].fmyChipType+"+"+Ba[Ga].fmyChipCode.replace('"',
"").replace("\x26quot;","")+"+"+Ba[Ga].fmyChipLocalName.replace('"',"").replace("\x26quot;","");Aa[ua]=void 0==Aa[ua]?Ea:Aa[ua]+(","+Ea)}}var Ea=[];Ba={};if(Y.chipOptions)for(Ga=0;Ga<Y.chipOptions.length;Ga++){var Ka=Y.chipOptions[Ga],wa=Ka.fmyChipType,xa=Ka.optionList,Xa;for(Xa in xa)ua=Ka.fmyChipType+"+"+xa[Xa].optionCode.replace('"',"").replace("\x26quot;","")+"+"+xa[Xa].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=Aa[ua]&&(xa[Xa].modelIdx=Aa[ua]);Ba[wa]={};Ba[wa].optionList=
xa;Ea.push(wa)}Y.viewOptionObj=Ba;Y.optionTypeList=Ea;Y.frontModelIdx=ja;return Y}function p(Y){var ja="",Aa="";y.hasBundle&&(Aa=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());x();S=l.sg.components.dynamic.detailSharedObj.hasVoucher;ya=h(".pdd16-step-buying__header-price-text")[0].innerHTML;Na=Object.keys(Y).length;if(0<Object.keys(Y).length){var Ba="";h.each(Y,function(Ea,Ka){Ka=Y[Ea].category.productList;for(var wa=q=0;wa<Ka.length;wa++){var xa=Ka[wa];if(null!=xa.modelList&&0<
xa.modelList.length){for(var Xa=0,Ua=null,Pa=0;Pa<xa.modelList.length;Pa++){var Wa=xa.modelList[Pa],bb=Wa.isStock;Wa.selected&&"Y"===Wa.selected&&(Xa=Pa,bb&&(Ua=Pa))}if(null==Ua)for(Pa=0;Pa<xa.modelList.length;Pa++)if(Wa=xa.modelList[Pa],Wa.isStock){Ua=Pa;break}null==Ua&&(Ua=Xa);xa=e(xa,Ua);Ba+=B(xa,Ea)}q++}if(Y[Ea].category.display_name==Aa){Ka=Y[Ea];a=Ka.category.productList;for(var Ya in Y[Ea].category.productList)wa=Y[Ea].category.productList[Ya],Ba+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+
Ka.category.key+"-"+Ya+'-0" data-price\x3d"'+(wa.promotionPriceValue?wa.promotionPriceValue:wa.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+U(Ya)+"\n\t\t\t\t\t\t\t\x3c/div\x3e"}ja+='  \x3cdiv class\x3d"pdd16-step-buying__tab pdd16-step-buying__2column swiper-slide" data-button-text\x3d"'+(Number(Ea)+1==Na?Fa:Ca)+'"\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 Ga="";if(r&&!da){h("#pdd16-step-buying").addClass("pdd16-step-buying--default");Ga=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'+Ia+"\x3c/strong\x3e"+(Ma.get("useVATInclusiveArea")?Ta:"")+'\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'+Ca+"\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 ua=Granite.I18n.get("*Savings based on regular Samsung.com price. Discount applied automatically at checkout when two or more qualifying products in basket.");"cn"!=ea&&(Ga+='\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__footer-disclaimer"\x3e'+ua+"\x3c/p\x3e\n\t\t\t\t\t\t")}else Ga='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-price"\x3e\n\t                \x3cp class\x3d"pdd16-step-buying__footer-text"\x3e\x3cstrong\x3e'+
Ia+"\x3c/strong\x3e"+(Ma.get("useVATInclusiveArea")?Ta:"")+'\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'+
(Ja?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(Ga);A()}function k(Y){var ja="",Aa="";y.hasBundle&&(Aa=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;Na=Object.keys(Y).length;if(0<Object.keys(Y).length){var Ba=
"";h.each(Y,function(Ga,ua){ua=Y[Ga].category.productList;for(var Ea=q=0;Ea<ua.length;Ea++){var Ka=ua[Ea];if(null!=Ka.modelList&&0<Ka.modelList.length){"cn"==ea&&"01090100"==Ka.categorySubTypeCode&&Ka.modelList.forEach(function(bb,Ya){var Za=bb.idx.split("-");Za[1]=Ya;bb.idx=Za.join("-")});for(var wa=0,xa=null,Xa=0;Xa<Ka.modelList.length;Xa++){var Ua=Ka.modelList[Xa],Pa=Ua.isStock;Ua.selected&&"Y"===Ua.selected&&(wa=Xa,Pa&&(xa=Xa))}if(null==xa)for(Xa=0;Xa<Ka.modelList.length;Xa++)if(Ua=Ka.modelList[Xa],
Ua.isStock){xa=Xa;break}null==xa&&(xa=wa);Ka=e(Ka,xa);Ba+=w(Ka,Ga)}q++}if(Y[Ga].category.display_name==Aa){ua=Y[Ga];a=ua.category.productList;for(var Wa in Y[Ga].category.productList)Ea=Y[Ga].category.productList[Wa],Ba+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+ua.category.key+"-"+Wa+'-0" data-price\x3d"'+(Ea.promotionPriceValue?Ea.promotionPriceValue:Ea.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+U(Wa)+"\n\t\t\t\t\t\t\t\x3c/div\x3e"}ja+='\x3cdiv class\x3d"pdd16-step-buying-v2__category"\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying-v2__category-title"\x3e'+
Y[Ga].category.display_name+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__category-contents swiper-container basic-swiper" data-swiper-option\x3d\'{\n\t\t\t              "breakpoints": {\n\t\t\t                "1": {\n\t\t\t                  "slidesPerView": "auto",\n\t\t\t                  "centeredSlides": false,\n\t\t\t                  "freeMode": true\n\t\t\t                },\n\t\t\t                "768": {\n\t\t\t                  "slidesPerView": 4,\n\t\t\t                  "centeredSlides": false,\n\t\t\t                  "freeMode": true\n\t\t\t                }\n\t\t\t              },\n\t\t\t              "keepWrapper": true,\n\t\t\t              "offTxtAccesibility": true,\n\t\t\t              "watchOverflow": true,\n\t\t\t              "componentEl": ".pdd16-step-buying-v2__category",\n\t\t\t              "scrollbar": {\n\t\t\t                "el": ".swiper-scrollbar",\n\t\t\t                "draggable": true\n\t\t\t              },\n\t\t\t              "navigation": {\n\t\t\t                "nextEl": ".pdd16-step-buying-v2__swiper-button.swiper-button-next.next-'+
Ga+'",\n\t\t\t                "prevEl": ".pdd16-step-buying-v2__swiper-button.swiper-button-prev.prev-'+Ga+'"\n\t\t\t              }\n\t\t\t            }\'\x3e\n\t\t\t            \t\x3cdiv class\x3d"pdd16-step-buying-v2__card-list swiper-wrapper" role\x3d"list"\x3e\n\t\t\t            \t\t'+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-'+
Ga+'"\x3e\n\t\t\t\t          \t\x3cspan class\x3d"hidden"\x3ePrevious\x3c/span\x3e\n\t\t\t\t          \t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t          \t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t          \t\x3c/svg\x3e\n\t\t\t          \t\x3c/button\x3e\n\t\t\t          \t\x3cbutton type\x3d"button" class\x3d"pdd16-step-buying-v2__swiper-button  swiper-button-next next-'+Ga+'"\x3e\n\t\t\t\t          \t\x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t          \t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t          \t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t          \t\x3c/svg\x3e\n\t\t\t          \t\x3c/button\x3e\n\t\t\t\t\t\x3c/div\x3e';
Ba=""})}h(".pdd16-step-buying-v2__category-list").html(ja);A()}function A(){La.off("click",".option-selector__color input, .option-selector__size input");La.on("click",".option-selector__color input, .option-selector__size input",function(){var Y=h(this),ja=Y.attr("data-modeli"),Aa=(y.useAddonV2?Y.closest(".pdd16-step-buying-v2__card").children():Y.closest(".pdd16-step-buying__card")).attr("data-index")||"",Ba=Aa.split("-")[1];Aa.split("-");var Ga=Aa.split("-")[0];setTimeout(function(){if(null!=ja){I[Ga].category.productList[Ba].frontModelIdx=
ja;var ua=e(I[Ga].category.productList[Ba],ja);if(y.useAddonV2){var Ea=h(".pdd16-step-buying-v2__category").eq(Ga).find(".pdd16-step-buying-v2__card").eq(Ba),Ka=h(".pdd16-step-buying-v2__card").index(Ea);Ea.find(".option-selector__swiper-wrapper").each(function(wa){wa=I[Ga].category.productList[Ba].optionTypeList[wa];var xa=h(this).attr("style");I[Ga].category.productList[Ba].viewOptionObj[wa].styleAttr=xa});ya=h(".pdd16-step-buying__header-price-text")[0].innerHTML;Ea.replaceWith(w(ua,Ga,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(Ga).find(".pdd16-step-buying__card").eq(Ba),Ka=h(".pdd16-step-buying__card").index(Ea),Ea.find(".option-selector__swiper-wrapper").each(function(wa){wa=I[Ga].category.productList[Ba].optionTypeList[wa];var xa=h(this).attr("style");I[Ga].category.productList[Ba].viewOptionObj[wa].styleAttr=xa}),ya=h(".pdd16-step-buying__header-price-text")[0].innerHTML,
Ea.replaceWith(B(ua,Ga,Ba,Y)),Ea=h(document.querySelectorAll(".pdd16-step-buying__card")[Ka]),Ea.addClass("is-show"),l.sg.components.stepbuying.init()}},100);A()});La.off("click",".pdd16-step-buying__card .cta:not(.learn-more-btn), .pdd16-step-buying-v2__card .cta:not(.learn-more-btn)");La.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);f=Y;var ja="in"===ea?Y.attr("data-shopsku"):Y.attr("data-modelcode"),
Aa=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,Ga=y.useAddonV2?parseFloat(Y.closest(".pdd16-step-buying-v2__card").children().attr("data-price")):parseFloat(Y.closest(".pdd16-step-buying__card").attr("data-price")),ua=Number(h(".hiddenPrice")[0].getAttribute("value")),Ea=Number(h(".hiddenSavePrice").val())||0,Ka="",wa="",xa="";wa=wa=wa="";if(h(this).hasClass("cta--bundle"))fa=
h(this).attr("data-promotionprice"),h(this).hasClass("js-cta-stock")||(h(this).hasClass("cta--on")?(Aa=a.filter(function(Pa){return Pa.modelcode===ja}),Ga=y.addonBundleRelatedData.filter(function(Pa){return Pa.bundleModelCode===ja}),l.sg.components.addonBundlePopup.callSearchAjax(Aa[0],Ga[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?(wa=Number(h("#voucherBalance").attr("data-price")),h("#voucherBalance").attr("data-oriprice"),wa=Number(h("#voucherCharge").attr("data-price")),y.useAddonV2&&(wa=Number(h("#voucherBalance2").attr("data-price")),h("#voucherBalance2").attr("data-oriprice"),wa=Number(h("#voucherCharge2").attr("data-price"))),ma-=Number(h(this).attr("data-originprice")),ta-=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2)),g(Ga,!1),wa&&(ua=wa>=Number(fa)?ua-Number(fa):ua-wa)):ua-=Number(fa),t[ja]&&(t[ja]=
[])));else if(fa=h(this).attr("data-price"),la=h(this).attr("data-saveprice"),Aa.split("-"),wa=X.indexOf(Aa),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(Aa),S?(wa=Number(h("#voucherBalance").attr("data-price")),y.useAddonV2&&(wa=Number(h("#voucherBalance2").attr("data-price"))),
0>wa-Number(fa)&&(ua+=-(wa-Number(fa)),Ea+=Number(la)),ma+=Number(h(this).attr("data-oriprice")),ta+=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2)),g(Ga,!0)):(y.useAddonV2&&(ma+=Number(h(this).attr("data-oriprice")),ta+=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2))),ua+=Number(fa),Ea+=Number(la)),V.push(ja),Y&&(y.productChildModelObject[ja]=Y),Aa=h(this).closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-title strong").html(),Ga=h(this).closest(".pdd16-step-buying__card").find(".image img"),
Aa={modelCode:ja,modelName:Aa,src:Ga.attr("data-img-src")},O.push(Aa);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(wa,1);S?(wa=Number(h("#voucherBalance").attr("data-price")),h("#voucherBalance").attr("data-oriprice"),wa=Number(h("#voucherCharge").attr("data-price")),
y.useAddonV2&&(wa=Number(h("#voucherBalance2").attr("data-price")),h("#voucherBalance2").attr("data-oriprice"),wa=Number(h("#voucherCharge2").attr("data-price"))),ma-=Number(h(this).attr("data-oriprice")),ta-=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2)),g(Ga,!1),wa&&(ua=wa>=Number(fa)?ua-Number(fa):ua-wa,Ea-=Number(la))):(y.useAddonV2&&(ma-=Number(h(this).attr("data-oriprice")),ta-=Number(parseFloat(h(this).attr("data-saveprice")).toFixed(2))),ua-=Number(fa),Ea-=Number(la));for(Aa=
0;Aa<V.length;Aa++)if(V[Aa]==ja){V.splice(Aa,1);Aa--;break}Y&&delete y.productChildModelObject[ja];O=O.filter(function(Pa){return ja!==Pa.modelCode})}wa=Granite.I18n.get("From {0}/mo",currencyComma(ua/Number(Ba),ra))+" "+Granite.I18n.get("for {0} mos",Ba)+" "+Granite.I18n.get("or")+" "+currencyComma(ua,ra);Ka=wa.split(" "+qa+" ");if(r)if(xa||(xa=h(".pdd16-step-buying__header-price").html()),0<V.length){var Xa=("in"===ea?h("#shopSKU").val():h("#modelCode").val())+",";V.forEach(function(Pa,Wa){Xa+=
Pa+(V.length-1===Wa?"":",")});var Ua="";O.forEach(function(Pa){Ua+='\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(Ua);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 bb=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo,Ya=bb.salePrice,Za=bb.orignalPrice;Wa=T.detailSharedObj.drawObj.price.priceWrapper.info.unformattedSavePrice;var cb=Ya-(Za-Wa);bb=currencyComma(Pa.subTotal.value-bb.salePrice+Za+(Pa.totalDiscounts.value-(Za-Ya)),ra);Ya=currencyComma(Pa.totalDiscounts.value+(0<cb?cb:0),ra);cb=
currencyComma(Pa.totalPrice.value-(0<cb?cb:0),ra);m&&(cb=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"+ha+" "+Ka[0].replace(ha,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+qa+" "+cb+"\x3c/strong\x3e"):xa+("\x3cstrong\x3e"+cb+"\x3c/strong\x3e");Da||Z?xa+="\x3c/div\x3e":"in"==ea?(cb="MRP: "+bb+" (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'+bb+'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3e'+cb+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+Wa+"\n\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e"):xa+='\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save '+
(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'+(P?'\x3cdel class\x3d"was-text" data-orignal-price\x3d'+bb+"\x3e"+bb+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+bb+"\x3e"+bb+"\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"==ea&&(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'+Ka[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t "+qa+" "+ha+" "+Ka[0].replace(ha,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e':'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+"\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t"+
("mx"!==ea?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Ka[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+Ka[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e':m?'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
ha+" "+Ka[0].replace(ha,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+qa+" "+Ka[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e':'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+"\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t"+("mx"!==ea?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Ka[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
Ka[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ua+'"\x3e';S&&(wa=!ta||0>ta?"in"==ea?"MRP: "+currencyComma(ma,ra)+" (Incl. of all taxes)":currencyComma(ma,ra):"in"==ea?"MRP: "+currencyComma(ma,ra)+" (Incl. of all taxes) \x3cspan\x3e"+Granite.I18n.get("Save")+" "+currencyComma(ta,ra)+"\x3c/span\x3e "+currencyComma(ma-ta,ra):currencyComma(ma,ra)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ta,ra)+"\x3c/del\x3e "+currencyComma(ma-
ta,ra),h("#selectedItem").html(wa),y.useAddonV2&&h("#selectedItem2").html(wa));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"));f.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'+
Ka[1]+'\x3c/strong\x3e\x3c/span\x3e\n            \t\t\t \t\x3cspan class\x3d"monthly-text"\x3e'+qa+" "+ha+" "+Ka[0].replace(ha,"")+"\x3c/span\x3e\n \t\t\t\t\t\t\x3c/div\x3e":'\x3cdiv class\x3d"pdd16-step-buying-v2__bottom-price-text"\x3e\n\t         \t\t\t \t\x3cspan class\x3d"final-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Ka[1]+"\x3c/strong\x3e\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e","in"==ea&&(Aa=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(ua+Ea,ra)+' (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text"\x3eSave '+currencyComma(Ea,ra)+"\x3c/span\x3e\n\t\t\t\t\t\t\t"+Aa+"\n\t\t\t\t\t\t\x3c/div\x3e"),h(".pdd16-step-buying-v2__bottom-price-inner").html(Ba),"bg"==ea&&(ua="eur"===ra.toLowerCase()?"\u043b\u0432":"\u20ac",-1==h(".final-text strong").text().indexOf(ua)&&(ua=h(".hiddenPrice").val(),ua="eur"===
ra.toLowerCase()?E(ua):C(ua),h(".final-text strong").append(" / "+ua)))):l.sg.components.stepbuying.init()});La.off("click",".pdd16-step-buying__card .pdd16-step-buying__card-cta-learn-more button");La.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 Aa=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 Ga="";if(Ba)for(var ua in Ba)Ga+='\n\t\t\t\t\t\x3cdiv class\x3d"swiper-slide" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+
aa(Ba[ua],"$290_240_PNG$")+'" data-mobile-src\x3d"'+aa(Ba[ua],"$520_400_PNG$")+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+aa(Ba[ua],"$290_240_PNG$")+'" data-mobile-src\x3d"'+aa(Ba[ua],"$520_400_PNG$")+'" alt\x3d"imageAlt[idx]" role\x3d"img"\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e';ua='\n\t\t\t\t\x3cdiv class\x3d"swiper-container basic-swiper" data-swiper-option\x3d\'{\n\t\t\t\t\t"slidesPerView":"1","keepWrapper":true,"loop":false,"pagination":false,"componentEl":".pdd16-step-buying__learn-more-images","offTxtAccesibility":"true","centeredSlides": true,"centeredSlidesBounds": true,"followFinger":'+
(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'+
Ga+'\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(ua);ua="";Ba="Hybris-intg"===h("#shopIntegrationFlag").val();Ga=!da&&!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&&(ua+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+Ba[Ea].value+"\x3c/li\x3e")}else if(Ga&&
Y.vd3PAMarketingMessage&&0<Y.vd3PAMarketingMessage.length)for(Ea=$jscomp.makeIterator(Y.vd3PAMarketingMessage),Ba=Ea.next();!Ba.done;Ba=Ea.next())ua+='\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())ua+='\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),Ga=Ba.next();!Ga.done;Ga=Ba.next())Ga=Ga.value,"feature"===Ga.displayType.toLowerCase()&&(Ea+='\n\t\t\t\t\t\t\t\x3cli class\x3d"pdd16-step-buying__learn-more-feature-icon-item"\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__learn-more-feature-icon-image"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+aa(Ga.imgUrl,"$64_64_PNG$")+
'" data-mobile-src\x3d"'+aa(Ga.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+Ga.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+aa(Ga.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+aa(Ga.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+Ga.imgAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__learn-more-feature-icon-text"\x3e'+Ga.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
Aa='\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"+(Aa?"\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;Ga=Y.reviewCount;Ba||
(Ba=0);var Ka=Math.pow(10,1);Ba=Math.round(Ba*Ka)/Ka;var wa=parseFloat(Ba).toFixed(1);Ka=parseInt(Ba);var xa=parseInt(100*(wa-Ka));"0.0"!==wa&&(Ba=wa);wa='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Xa=0;Xa<Ka;Xa++)wa+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 100%;"\x3e\x3c/span\x3e\x3c/span\x3e';if(5>Ka&&0<Ka)for(wa+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width:'+
xa+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',xa=4;xa>Ka;xa--)wa+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';else if(0===Ka)for(Ka=0;5>Ka;Ka++)wa+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';wa+='\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+
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"+(Ga?Ga: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'+wa+"\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\x3c/div\x3e"}else Ba=
"";Y=Aa+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'+ua+"\n\t\t\t\t\x3c/ul\x3e\n\t\t\t\t"+(Y.pdpUrl?'\x3cdiv class\x3d"pdd16-step-buying__learn-more-cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--underline cta--black cta--icon" href\x3d"'+Y.pdpUrl+'" aria-label\x3d"Link Title" target\x3d"_blank" \n\t\t\t\t\t\tan-tr\x3d"pdd16_step buying-product detail-cta-button" an-ca\x3d"product click" an-ac\x3d"bridge" an-la\x3d"vd add-on:learn more popup:learn more" data-modelcode\x3d"'+
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"),Aa=h("#nextBtn"),Ba=h("#primaryInfoGoCartAddOn, #primaryInfoCheckOutAddOn, #voucherGoCartAddOn, #skipGoCartAddOn"),Ga=[];if(da||na)for(var ua in I)Ga.push(I[ua].category.display_name);if(L){ua=[];for(var Ea in I)ua.push(I[Ea]);ua.sort(function($a,pb){return $a.category.order-pb.category.order});Ea=$jscomp.makeIterator(ua);
for(ua=Ea.next();!ua.done;ua=Ea.next())Ga.push(ua.value.category.display_name)}Ga=0<h(".tab__item--active").length?Ga[h(".tab__item--active").index()]:Ga[0];if(0<X.length){var Ka=ua=Ea="",wa="",xa="",Xa="",Ua="",Pa="",Wa="";pa="";for(var bb=0;bb<X.length;bb++){var Ya=X[bb],Za=Ya.split("-")[0],cb=Ya.split("-")[1];Ya=Ya.split("-")[2];Za=I[Za].category.productList[cb].modelList[Ya];cb=z.setPriceInfo(Za);Ya=cb.productPrice;var ib="";0<bb&&(ib=",");Ea+=ib+Za.modelCode;ua+=ib+Za.modelName;pa+=ib+Za.displayName;
Ka+=ib+Ya;wa+=ib+cb.promotionPrice;xa+=ib+Za.pviTypeName;Xa+=ib+Za.pviSubtypeName;Ua+=ib+Za.pviSubtypeName+" "+Za.pviTypeName;Pa+=ib+Ya;Wa+=ib+1}xa=xa.toLowerCase();Xa=Xa.toLowerCase();Ua=Ua.toLowerCase();r?"nextBtn"===h(".cta--step").attr("id")?Aa.attr("an-tr","pdd16_step buying-"+oa+"-button-next").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ga.toLowerCase()+":next").attr("data-category-name",Ga):Y.attr("an-tr","pdd16_step buying-"+oa+"-cta-cart page").attr("an-ca",
"ecommerce").attr("an-ac","addToCart").attr("an-la","vd add-on:checkout").attr("data-category-name",Ga):S?(Y.attr("an-tr","pdd16_product bought together-"+oa+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:go to cart"),ja.attr("an-tr","pdd16_product bought together-"+oa+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:checkout")):(Y.attr("an-tr","pdd16_product bought together-"+oa+"-text-addedcart").attr("an-ca",
"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",ua).attr("data-modelrevenue",Pa).attr("data-modelprice",Ka).attr("data-pvitype",xa).attr("data-pvisubtype",Xa).attr("data-discountprice",wa).attr("data-pimsubtype",Ua).attr("data-modelqty",Wa)}else r?
"nextBtn"===h(".cta--step").attr("id")?Aa.attr("an-tr","pdd16_step buying-"+oa+"-button-next").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ga.toLowerCase()+":next").attr("data-category-name",Ga):Y.attr("an-tr","pdd16_step buying-"+oa+"-button-checkout").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","vd add-on:"+Ga.toLowerCase()+":checkout").attr("data-category-name",Ga):S?(Y.attr("an-tr","pdd16_product bought together-"+oa+"-popup-cart").attr("an-ca",
"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");Aa.removeAttr("data-modelcode").removeAttr("data-modeldisplay").removeAttr("data-modelname").removeAttr("data-modelrevenue").removeAttr("data-modelprice").removeAttr("data-pvitype").removeAttr("data-pvisubtype").removeAttr("data-discountprice").removeAttr("data-pimsubtype").removeAttr("data-modelqty")}
function K(Y){Y=void 0===Y?!1:Y;for(var ja=[],Aa=$jscomp.makeIterator(V),Ba=Aa.next();!Ba.done;Ba=Aa.next())ja.push(Ba.value);da&&y.giftFlag&&y.globalServiceInfo.gift&&y.globalServiceInfo.gift.modelCode&&ja.push(y.globalServiceInfo.gift.modelCode);for(var Ga in t)for(Aa=$jscomp.makeIterator(t[Ga]),Ba=Aa.next();!Ba.done;Ba=Aa.next())ja.push(Ba.value);Y?T.DetailAfterEvent.checkOutCta(ja,!0,!0,ba):T.DetailAfterEvent.addToCartCta(ja,!0,!0,ba)}function D(Y){(void 0===Y?0:Y)?T.DetailAfterEvent.checkOutCta([],
!0,!0,ba):T.DetailAfterEvent.addToCartCta([],!0,!0,ba)}function g(Y,ja){var Aa=h("#voucherTotal"),Ba=h("#voucherBalance"),Ga=h("#voucherCharge");y.useAddonV2&&(Aa=h("#voucherTotal2"),Ba=h("#voucherBalance2"),Ga=h("#voucherCharge2"));var ua=parseFloat(Aa.attr("data-price")||0),Ea=parseFloat(Ba.attr("data-oriprice")||0);ua=ja?ua+Y:Number((parseFloat(ua)-parseFloat(Y)).toFixed(2));Y=Number((parseFloat(Ea)-parseFloat(ua)).toFixed(2));0>Y?(ja=-Y,Y=0):ja=0;Aa.attr("data-price",ua);Ba.attr("data-price",
Y);Ga.attr("data-price",ja);Aa.html(currencyComma(ua,ra));Ba.html(currencyComma(Y,ra));Ga.html(currencyComma(ja,ra))}function C(Y){var ja=Math.pow(10,2);Y=Number(Y)/1.95583;Y=Math.round(Y*ja)/ja;return currencyComma(Y,"EUR")}function E(Y){var ja=Math.pow(10,2);Y=1.95583*Number(Y);Y=Math.round(Y*ja)/ja;return currencyComma(Y,"BGN")}var T=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),R=T.ux2.PriceBar,y=T.detailSharedObj,ea=h("#siteCode").val(),va="true"===h("#isEppPage").val(),ra=h("#priceCurrency").val(),
oa=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),da="GPv2"===h("#shopIntegrationFlag").val()&&"in"===ea,na="Hybris"===h("#shopIntegrationFlag").val()||"Hybris-intg"===h("#shopIntegrationFlag").val(),L="Hybris-new"===h("#shopIntegrationFlag").val(),N=h("#categorySubTypeCode").val(),b=h("#categoryTypeCode").val(),r=2<N.length&&"04"===N.substring(0,2)||4<N.length&&"0701"===N.substring(0,4),G="jp"!==ea&&"n_africa"!==ea&&"de"!==ea,P="Y"==h("#isNotDelTagSites").val()?!0:!1,Z="pl"===ea||"si"===
ea||"gr"===ea||"fi"===ea||"it"===ea||"se"===ea||"no"===ea||"dk"===ea||"fr"===ea||"de"===ea||"pt"===ea||"au"===ea?!0:!1,d=!Z||"de"!==ea&&"pt"!==ea&&"au"!==ea&&"se"!==ea&&"no"!==ea&&"dk"!==ea&&"fi"!==ea?!1:!0,M="hu"===ea?!0:!1,t={},z={},I=[],X=[],V=[],O=[],S=!1,Q="",fa=0,la=0,ma=0,ta=0,ya,sa,Na=0,pa="",a="",c=0,m=!1,f="",q=0,ba="",J=Granite.I18n.get("View more"),ha=Granite.I18n.get("From"),qa=Granite.I18n.get("or"),ia=Granite.I18n.get("Monthly Price")+":";Granite.I18n.get("Full Price:");var za=Granite.I18n.get("Add"),
Ha=Granite.I18n.get("Are you sure to remove this product?"),Fa=Granite.I18n.get("Checkout"),Ca=Granite.I18n.get("Next"),Ia=Granite.I18n.get("Total"),Ta=Granite.I18n.get("VAT Inclusive"),Oa=Granite.I18n.get("Added"),ka=Granite.I18n.get("Out Of Stock"),Ja="fr"==ea,Da=va&&"pl"===ea;va&&(Z="Y"===eppOmniPricingUseYn?!0:!1,"au"===ea||y.isSENA)&&(Z=!0);if("fr"===ea||"tr"===ea)ha="";var La=y.useAddonV2?h(".pdd16-step-buying-v2"):h(".pdd16-step-buying"),Qa=h(".pdd16-step-buying-v2__bottom");N={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:N.startsWith("0701")?Granite.I18n.get("addon title(monitor)"):Granite.I18n.get("Choose your TV set-up"),useStaticSubTitle:r,staticSubTitle:N.startsWith("0701")?Granite.I18n.get("addon subtitle(monitor)"):Granite.I18n.get("addon subtitle")},
be:{useStaticTitle:r&&"04010000"==b,staticTitle:Granite.I18n.get("Choose your TV set-up"),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 Ma=function(Y,ja){var Aa=ja[Y],Ba=ja["default"];return{get:function(Ga){return Aa&&"undefined"!==typeof Aa[Ga]?
Aa[Ga]:Ba&&"undefined"!==typeof Ba[Ga]?Ba[Ga]:!1}}}(ea,N);Ma.get("useAddOnNextI18n")&&(Ca=Granite.I18n.get("Next (addon)"));var Sa=!0,Ra=function(Y,ja,Aa,Ba,Ga){ja=ja.split(",");var ua=ja[0];Ga=Ga.indexOf("MEMORY");if(!da&&!L&&!na&&Ba&&0<Ga){Aa=Y.MEMORY.optionList;var Ea=0,Ka=0,wa;for(wa in Aa){ua=Aa[wa].modelIdx.split(",");for(var xa in ua)if(F(ja,ua[xa])){Y=Aa[wa].optionCode.replace("TB","000").replace(/[^0-9]/g,"");Ka<Y&&(Ka=Y,Ea=ua[xa]);break}}ja=Ea}else{for(Ea in Aa)if(wa=Aa[Ea]){xa=wa.split(",");
wa=[];for(Ka in ja)-1<xa.indexOf(String(ja[Ka]))&&wa.push(ja[Ka]);0<wa.length&&(ja=wa)}ja=0<ja.length?ja[0]:ua}return ja},Va=function(Y,ja,Aa,Ba){Aa="";var Ga=!1;if(Y.viewOptionObj&&0<Object.keys(Y.viewOptionObj).length){var ua=0,Ea=Y.viewOptionObj,Ka=Y.optionTypeList;Y.viewOptionObj.hasOwnProperty("RING SIZE")&&(Ga=!0);Y.viewOptionObj=Object.keys(Y.viewOptionObj).sort(function(db,lb){if("COLOR"==db)return-1;if("COLOR"==lb)return 1}).reduce(function(db,lb){db[lb]=Y.viewOptionObj[lb];return db},{});
for(var wa in Y.viewOptionObj){var xa=wa.toLowerCase().replace(/ /g,"-"),Xa=Y.viewOptionObj[wa].optionList,Ua=!1,Pa={},Wa="",bb=S?"evoucher":"add-on";Y.viewOptionObj[wa].styleAttr&&(Wa=Y.viewOptionObj[wa].styleAttr);if("COLOR"===wa){Wa="";for(var Ya in Xa){var Za=Xa.length;Pa=Xa[Ya];Ua=!1;var cb=Pa.modelIdx.split(",");null!=Pa.modelIdx&&F(cb,String(Y.frontModelIdx))&&(Ua=!0);var ib=cb="";var $a=Pa.modelIdx;var pb=[],kb=!0,gb;for(gb in Ea)if(gb!==wa){var zb=Ea[gb].optionList,Cb;for(Cb in zb){var hb=
zb[Cb];hb=hb.modelIdx;var Kb=hb.split(",");-1<Kb.indexOf(String(Y.frontModelIdx))&&pb.push(hb)}}$a=Ra(Ea,$a,pb,kb,Ka);Y.modelList.length>$a&&Y.modelList[$a]&&(cb=Y.modelList[$a].modelCode,ib=Y.modelList[$a].modelName);var ub=Y.modelList[$a].price,qb=Y.modelList[$a].promotionPrice;zb=ub-qb;da&&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;Ga&&(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+'" '+(Ua?" 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 ":"")+bb+":"+wa.toLowerCase()+":"+Pa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+cb+'" data-modelname\x3d"'+ib+'" data-price\x3d"'+ub+'" data-promotionPrice\x3d"'+qb+'" data-saveprice\x3d"'+zb+'" 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(db){var lb="";if("Y"!=db)lb='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+Pa.optionCode+'"\x3e'+Pa.optionLocalName+
"\x3c/span\x3e";else if(db=Pa.multiColorList){var eb=db.optionCodeList,nb="";switch(db.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"}Aa+='\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'+Ca+"\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"===wa||"TV SIZE"===wa||"HOME APPLIANCE SIZE"===wa||"MONITOR SCREEN SIZE"===wa||"RING SIZE"===wa||"MEMORY MEMORY"===wa){ub="";for(qb=0;qb<Xa.length;qb++){var Db=Xa.length;Pa=Xa[qb];Ua=!1;cb=Pa.modelIdx.split(",");null!=Pa.modelIdx&&F(cb,String(Y.frontModelIdx))&&(Ua=!0);ib=cb="";$a=Pa.modelIdx;pb=[];kb=!1;for(gb in Ea)if(gb!==wa)for(Cb in zb=Ea[gb].optionList,zb)hb=zb[Cb],
hb=hb.modelIdx,Kb=hb.split(","),-1<Kb.indexOf(String(Y.frontModelIdx))&&pb.push(hb);$a=Ra(Ea,$a,pb,kb,Ka);Y.modelList.length>$a&&Y.modelList[$a]&&(cb=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;Ga&&(Ua=!0,pb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a,kb="pdd16-"+xa+"-"+Q+"-"+Y.modelList[$a].idx.split("-")[0]+"-"+$a);ub+='\x3cspan class\x3d"option-selector__swiper-slide'+(Ua?" 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+'"'+(Ua?" 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 ":"")+bb+":"+wa.toLowerCase()+":"+Pa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+cb+'" 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"}Aa+='\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'+ub+'\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<Db?'\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'+
Ca+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Db?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+"\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e"}ua++}}return Aa};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(Ha,"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?n("GoCartAddOn"):K()});h(document).off("click","#primaryInfoCheckOutAddOn");h(document).on("click",
"#primaryInfoCheckOutAddOn",function(){y.hasVoucher?n("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"),Aa=Y.find(".confirm-popup__desc"),Ba=Y.find(".cta--contained");Y=Y.find(".cta--outlined");var Ga=h("#voucherBalance");y.useAddonV2&&(Ga=h("#voucherBalance2"));Ga=Number(Ga.attr("data-oriPrice"))||0;Ga=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(Ga,ra));Ba.attr("id","skipGoCartAddOn");Aa.html(Ga);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,Aa=h(".pdd16-step-buying .tab__item").length,Ba="es"===ea?"Choose yours {0}":"Choose your {0}";r&&(Ma.get("useStaticTitle")?Y[0].innerHTML=Ma.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"),Aa===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"),Aa=h(".pdd16-step-buying .tab__item--active").index()+1,Ba=h(".pdd16-step-buying .tab__item").length,Ga="es"===ea?"Choose yours {0}":"Choose your {0}";r&&(Ma.get("useStaticTitle")?Y[0].innerHTML=Ma.get("staticTitle"):y.hasVoucher||(Y[0].innerHTML=Granite.I18n.get(Ga,ja[0].innerText)),Ba===Aa?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,Aa=0,Ba=[],Ga=h(".add-ons-evoucher-popup__item .option-selector-v2__color-code");Ga&&Ga.each(function(){h(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&Ba.push(h(this))});(Ga=h(".add-ons-evoucher-popup__item .option-selector-v2__size-text"))&&Ga.each(function(){h(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&
Ba.push(h(this))});var ua=h(this).attr("data-parent-modelcode");t[ua]=[];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")&&(Aa+=Number(h(this).attr("data-saveprice")));h.each(Ba,function(wa,xa){t[ua].push(Ba[wa].attr("data-modelcode"))});Ga=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;var Ea="",Ka="";Ka=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)&&(Ka+=-(Ea-Number(ja))),ma+=Number(Y),ta+=Number(Aa),g(parseFloat(ja),!0)):Ka+=Number(ja);Ea=Granite.I18n.get("From {0}/mo",currencyComma(Ka/Number(Ga),ra))+" "+Granite.I18n.get("for {0} mos",Ga)+" "+Granite.I18n.get("or")+" "+currencyComma(Ka,ra);Y=Ea.split(" "+qa+" ");Ka=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'+
ha+" "+Y[0].replace(ha,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t"+qa+" "+Y[1]+'\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+Ka+'"\x3e':'\n\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+Y[1]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+Ka+'"\x3e';h(".pdd16-step-buying__header-price").html(Ka);
h(".pdd16-step-buying__footer-sum").html(Ka);S&&(Ea=ta?currencyComma(ma,ra)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ta,ra)+"\x3c/del\x3e "+currencyComma(ma-ta,ra):currencyComma(ma,ra),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,Aa){h(this).attr("data-modelcode")===Y&&(h(this).find("span").text(za),h(this).removeClass("cta--on"))})});T.bridgePageCommonHybris={moveBridgePage:function(Y){S=l.sg.components.dynamic.detailSharedObj.hasVoucher;y=T.detailSharedObj;var ja=T.detailSharedObj.drawObj.price.priceWrapper.info;Y=ja.totalPrice||"";var Aa=ja.savePrice||"";ja=ja.unformattedSavePrice||"";var Ba=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.orignalPrice||
"",Ga=currencyComma(Ba,ra)||"",ua=Y.split(" "+qa+" ");sa=y.totalPrice.sale;if(r){var Ea='\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';1<ua.length?(m=!0,Ea+="\x3cstrong\x3e"+ha+" "+ua[0].replace(ha,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+qa+" "+ua[1]+"\x3c/strong\x3e"):Ea+="\x3cstrong\x3e"+Y+"\x3c/strong\x3e";Ga&&Aa?Ea=Da?Ea+"\x3c/div\x3e":y.isNewElementLowestWasPrice&&!y.isNewElementLowestWasPriceSetting?Ea+"\x3c/div\x3e":"in"==ea?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: '+(Ga+' (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d')+(ja+"\x3e"+Aa+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e")):Ea+('\n\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-save '+(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\n\t\t\t\t\t\t\t\t'+(P?'\x3cdel class\x3d"was-text" data-orignal-price\x3d'+Ba+"\x3e"+
Ga+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+Ba+"\x3e"+Ga+"\x3c/span\x3e")+'\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d'+ja+"\x3e"+Aa+"\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"!=ea||Aa||(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: '+
(Ga+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e"));Ea+='\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e';y.vdAddonInitPriceHtml=Ea}else y.useAddonV2?1<ua.length?(m=!0,Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+ua[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t "+qa+" "+ha+" "+ua[0].replace(ha,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
sa+'"\x3e'):Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+ua[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e':1<ua.length?(m=!0,Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
ha+" "+ua[0].replace(ha,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t"+qa+" "+ua[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e'):Ea='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ia+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(G?ha:"")+" "+ua[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+sa+'"\x3e';h(".pdd16-step-buying__header-price").html(Ea);
h(".pdd16-step-buying__footer-sum").html(Ea);Y=na||da?y.hasGift&&Sa&&!y.hasVoucher:L?y.hasGift&&Sa:!1;na&&y.hasVoucher&&Sa&&(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"),Sa=!1,l.sg.components.dynamic.bridgePagefreeGift.moveBridgePage()):(Y=r&&y.newEmbedVDCountry,Aa=y.soundbarCategoryData&&
0<Object.keys(y.soundbarCategoryData).length?!0:!1,Y=Y?y.hasAddOns&&!y.isEmbedAddOn:y.hasAddOns&&(!y.isEmbedAddOn||y.isEmbedAddOn&&Aa),Aa=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=T.bridgePageCommon,Ma.get("useStaticSubTitle")?(h(".pdd16-step-buying__sub-headline").css("display",""),S?Aa.css("display",""):Aa.remove()):S&&(h(".pdd16-step-buying__sub-headline").css("display",
""),Aa.css("display","")),h(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")&&h(".pdd16-step-buying").removeClass("pdd16-step-buying--free-gift"),y.isEmbedAddOn||(da?(v(),z.categoryGridGPv2()):z.getSearchProductcard(v)),Sa=!0,Ma.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=va?h("#storeWebDomain").val()+"/"+h("#eppCompanyCode").val()+
"/cart":Y,location.href=Y));T.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 H(N,b,r,G){var P=l.sg.components.dynamic.detailSharedObj,Z=P.drawObj,d=Z.embedAddon.itemSet;N&&(d=Z.embedAddon.itemSet=[]);P.soundbarCategoryData={};va=modelCode;G&&b.every(function(V){var O=V.category&&V.category.order;if(""==O||null==O)return!1;O=Number(O);if(isNaN(O))return!1;V.category.order=O;return!0})&&b.sort(function(V,O){return V.category.order-O.category.order});if(ca){var M=0;Z=$jscomp.makeIterator(b);for(G=Z.next();!G.done;G=Z.next()){var t=$jscomp.makeIterator(G.value.products);
for(G=t.next();!G.done;G=t.next())M++}d.length>=M&&(d=[]);E={};y=b;var z=0;for(M={$jscomp$loop$prop$i$315$356:0};M.$jscomp$loop$prop$i$315$356<b.length;M={$jscomp$loop$prop$i$315$356:M.$jscomp$loop$prop$i$315$356},M.$jscomp$loop$prop$i$315$356++)r&&null!=b[M.$jscomp$loop$prop$i$315$356].products&&0<b[M.$jscomp$loop$prop$i$315$356].products.length&&(u(b[M.$jscomp$loop$prop$i$315$356].products),h.each(b[M.$jscomp$loop$prop$i$315$356].products,function(V){return function(O,S){O=S.modelcode;var Q=E[O]=
{};Q.modelCode=O;Q.name=S.name;S.priority&&(Q.priority=S.priority);S.imageUrl&&(Q.imageUrl=S.imageUrl);S.imageUrlAlt&&(Q.imageUrlAlt=S.imageUrlAlt);S.stocklevel&&(Q.stocklevel=S.stocklevel);S.price&&S.priceValue&&(Q.priceValue=S.priceValue,Q.price=S.price,Q.promotionPriceValue=S.priceValue,Q.promotionPrice=S.price);S.promotionPrice&&S.promotionPriceValue&&(Q.promotionPriceValue=S.promotionPriceValue,Q.promotionPrice=S.promotionPrice);var fa;if(null==S?0:null==(fa=S.lowestWasPrice)?0:fa.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&&(fa=S.aemAdditionalInfoTypes.filter(function(la){return"CHILD_PRODUCT"==la.type}),0<fa.length&&(Q.childModelCode=fa[0].aemAdditionalInfos[0].value));if(S.groupCode&&0==S.groupId||S.groupCode&&0!=S.groupId)Q.groupCode=S.groupCode,Q.groupId=S.groupId;F(S.modelcode)&&(P.hasBundle=
!0,na=b[V.$jscomp$loop$prop$i$315$356].category.display_name,h.extend(S,Q),P.addonBundleIdx=V.$jscomp$loop$prop$i$315$356,P.addonBundleData=b[V.$jscomp$loop$prop$i$315$356],W(S.modelcode));N?(n(P,S,Q,O,d,z),z++):P.isEmbedAddOn&&P.embedAddon08&&(n(P,S,Q,O,d,z),z++)}}(M)));0<Object.keys(E).length&&!N&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);N?(P.vdRelatedProducts=E,0<Object.keys(P.vdRelatedProducts).length&&!P.showEmbedAddon&&
v(P,d,P.vdRelatedProducts,b,r)):P.isEmbedAddOn&&P.embedAddon08&&v(P,d,E,b,r)}else if(K){Z=0;t=$jscomp.makeIterator(b);for(G=t.next();!G.done;G=t.next()){var I=$jscomp.makeIterator(G.value.products);for(G=I.next();!G.done;G=I.next())Z++}d.length>=Z&&(d=[]);E={};y=b;var X=0;for(G={$jscomp$loop$prop$i$320$358:0};G.$jscomp$loop$prop$i$320$358<b.length;G={$jscomp$loop$prop$i$320$358:G.$jscomp$loop$prop$i$320$358},G.$jscomp$loop$prop$i$320$358++)r&&null!=b[G.$jscomp$loop$prop$i$320$358].products&&0<b[G.$jscomp$loop$prop$i$320$358].products.length&&
(u(b[G.$jscomp$loop$prop$i$320$358].products),h.each(b[G.$jscomp$loop$prop$i$320$358].products,function(V){return function(O,S){O="in"!==k?S.modelcode:S.aemSkuCode;var Q=E[O]={};Q.modelCode=O;Q.name=S.name;S.priority&&(Q.priority=S.priority);S.picture&&(Q.imageUrl=S.picture.url,Q.imageUrlAlt=S.picture.altText);S.stock&&(Q.stocklevel=S.stock.stockLevelStatus);S.price&&S.price.value&&(Q.priceValue=S.price.value,Q.price=S.price.formattedValue,Q.promotionPriceValue=S.price.value,Q.promotionPrice=S.price.formattedValue);
S.promotionPrice&&S.promotionPrice.value&&(Q.promotionPriceValue=S.promotionPrice.value,Q.promotionPrice=S.promotionPrice.formattedValue);S.lowestWasPrice&&S.lowestWasPrice.value&&(Q.lowestWasPriceValue=S.lowestWasPrice.value,Q.lowestWasPrice=S.lowestWasPrice.formattedValue);S.commercialFlag&&(Q.commercialFlag=S.commercialFlag);S.referenceColor&&(Q.referenceColor=S.referenceColor);if(S.groupCode&&0==S.groupId||S.groupCode&&0!=S.groupId)Q.groupCode=S.groupCode,Q.groupId=S.groupId;F(S.modelcode)&&(P.hasBundle=
!0,na=b[V.$jscomp$loop$prop$i$320$358].category.display_name,h.extend(S,Q),P.addonBundleIdx=V.$jscomp$loop$prop$i$320$358,P.addonBundleData=b[V.$jscomp$loop$prop$i$320$358],W(S.modelcode));Q.bundleCategoryName=b[V.$jscomp$loop$prop$i$320$358].category.display_name;N?(n(P,S,Q,O,d,X),X++):P.isEmbedAddOn&&P.embedAddon08&&(n(P,S,Q,O,d,X),X++)}}(G)));for(M in E)G=E[M],G.bundleCategoryName===na&&(F(G.modelCode)||delete E[M]);0<y.length&&y.forEach(function(V,O){if(V.category.display_name===na)for(var S in V.products)F(V.products[S].modelcode)||
y[O].products.splice(S,1)});0<Object.keys(E).length&&!N&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);N?(P.vdRelatedProducts=E,0<Object.keys(P.vdRelatedProducts).length&&!P.showEmbedAddon&&v(P,d,P.vdRelatedProducts,b,r)):P.isEmbedAddOn&&P.embedAddon08&&v(P,d,E,b,r)}}function u(N){N.sort(function(b,r){return r.priority&&0!=r.priority?0==b.priority?1:b.priority-r.priority:b.priority&&0!=b.priority?-1:0})}function n(N,b,r,G,P,
Z){var d=N.drawObj,M=ca?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,p)):"");if("bg"==k&&M){if("eur"===N.priceCurrency.toLowerCase()){t=Math.pow(10,2);var I=1.95583*Number(M);I=Math.round(I*t)/t;t=currencyComma(I,"BGN")}else t=Math.pow(10,2),I=Number(M)/1.95583,I=Math.round(I*t)/t,t=currencyComma(I,"EUR");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=g?g:null;d.embedAddon.isNotVDSTEPBUYING=g?null:!0;d.embedAddon.newComponent=!0;d.embedAddon.useMobileCTA=!1;2<Z&&d.embedAddon.newComponent&&(X=" pd-select-option__view-more--hidden");"cl"!==k&&(d.embedAddon.description=Granite.I18n.get("Additional items to complement your purchase"));var V=N.categoryTypeCode?N.categoryTypeCode.substring(0,2):"";"pe"==
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)"));P.push({index:Z,name:b.name,nameToLowerCase:b.name?b.name.toLowerCase():"",groupCode:b.groupCode.toLowerCase(),modelCode:G,shopSku:b.modelcode,finalPrice:r.promotionPrice,finalPriceValue:r.promotionPriceValue,originalPrice:!M||t||L?null:r.price,originalPriceValue:M&&!t?K?b.price.value:b.priceValue:null,savePrice:!M||t||L?null:z,savePriceValue:M&&
!t?M:null,isOOS:t,isStock:!t,oosClass:I,hideClass:X,revenue:b.price.value,isLearnMorePopup:g||N.embedAddon08})}function v(N,b,r,G,P){N.showEmbedAddon=!0;var Z=N.drawObj,d=N.view;l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(r),function(M,t){if(t&&200===M.response.statusCode&&null!=M.response.resultData&&null!=M.response.resultData.productList){var 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,O){V=O.modelList;null!=V&&h.each(V,function(S,Q){if(X.modelCode===Q.modelCode){if(g||N.embedAddon08||N.isEmbedAddOn){!Q.galleryImage&&Q.thumbUrl&&(Q.galleryImage=[Q.thumbUrl],Q.galleryImageAlt=[Q.thumbUrlAlt]);b[I].imgSrc=e(Q.thumbUrl);b[I].imgSrcList=Q.galleryImage;b[I].imgAlt=Q.thumbUrlAlt;b[I].imgAltList=Q.galleryImageAlt;b[I].thirdPASeller=O.thirdPASeller;b[I].tradeIn=Q.tradeIn;b[I].tradeInDesc=Q.tradeInDesc;b[I].premiumCare=Q.premiumCare;b[I].premiumCareDesc=
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 fa="";switch(S.replace(/ /g,"").toUpperCase()){case "N":S=
Granite.I18n.get("new");fa="badge-icon--bg-color-blue";break;case "H":S=Granite.I18n.get("hot");fa="badge-icon--bg-color-red";break;case "B":S=Granite.I18n.get("best seller");fa="badge-icon--bg-color-orange";break;case "U":S=Q.topFlags.iconTitle,fa="badge-icon--bg-color-teal"}b[I].iconTitle=S;b[I].iconClass=fa}if(g){S="Hybris"===h("#shopIntegrationFlag").val();fa="Hybris-intg"===h("#shopIntegrationFlag").val();var la="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]);(fa||la)&&b[I].storePromotions&&0<b[I].storePromotions.length&&(b[I].dotList3=b[I].storePromotions[0])}}else b[I].imgSrc=e(Q.thumbUrl),b[I].imgAlt=Q.thumbUrlAlt;b[I].modelName=Q.modelName;b[I].pviType=Q.pviTypeName?Q.pviTypeName.toLowerCase():"";b[I].pviSubtype=Q.pviSubtypeName?Q.pviSubtypeName.toLowerCase():"";b[I].categorySubType=
O.categorySubTypeName?O.categorySubTypeName:O.categorySubTypeEngName;Q=!0;C&&(Q=!1);Q||(b[I].originalPrice=b[I].originalPriceValue=b[I].savePrice=b[I].savePriceValue=null)}})})});0<b.length&&(d.embedAddonDraw(N,Z),0<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(N){return N?"F-"==N.substring(0,2):!1}function W(N){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(b,
N,function(r,G){T={};T.bundleModelCode=N;G&&null!=r.products&&0<r.products.length&&(h.each(r.products,function(P,Z){P=Z.modelcode;var d=T[P]={};d.modelCode=P;d.name=Z.name;Z.imageUrl&&(d.imageUrl=Z.imageUrl);Z.imageUrlAlt&&(d.imageUrlAlt=Z.imageUrlAlt);Z.stocklevel&&(d.stocklevel=Z.stocklevel);Z.price&&Z.priceValue&&(d.priceValue=Z.priceValue,d.price=Z.price,d.promotionPriceValue=Z.priceValue,d.promotionPrice=Z.price);Z.promotionPrice&&Z.promotionPriceValue&&(d.promotionPriceValue=Z.promotionPriceValue,
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(T));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(N,function(r,G){T={};T.bundleModelCode=N;G&&null!=r.products&&0<r.products.length&&(h.each(r.products,function(P,Z){P=Z.modelcode;var d=T[P]={};d.modelCode=P;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(T));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"})}function aa(N,b){h.each(b,function(r,G){h.each(N,function(P,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(P)+"-"+String(M),t.commercialFlag=b[z].commercialFlag||"",t.referenceColor=b[z].referenceColor||"",t.childModelCode=b[z].childModelCode||"")}))})})}function x(N,b,r){h.each(N,function(G,P){G=P.modelCode;if(r[G]){var Z=r[G].priority||0;P.priority=Z;P.fmyChipList&&h.each(P.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)})})})}});N.sort(function(G,P){return 0==P.priority?0==G.priority?0:-1:0==G.priority?1:G.priority-P.priority});h.each(b,function(G,P){"color"==P.fmyChipType.toLowerCase()&&P.optionList.sort(function(Z,d){return 0==d.priority?0==Z.priority?0:-1:0==Z.priority?1:Z.priority-d.priority})})}
function U(N){var b=l.sg.components.dynamic.detailSharedObj;ea={};var r=0,G={},P=[],Z=[];if(g&&!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;g&&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(N,function(O,S){var Q=S.familyId;h.each(S.modelList,function(fa,la){if(V.modelcode==("in"!==k?la.modelCode:la.shopSKU)){var ma=B(S);if("cn"==k&&"01090100"==ma.categorySubTypeCode){var ta=la.fmyChipList.filter(function(ya){return"RING SIZE"==ya.fmyChipType})[0].fmyChipCode;-1==Z.indexOf(ma.familyId+"_"+ta)&&(ma.familyId=Q+"_"+ta,ma.chipOptions=ma.chipOptions.map(function(ya){if("RING SIZE"==ya.fmyChipType)return Object.assign({},ya,{optionList:ya.optionList.filter(function(Na){return Na.optionCode==
ta})});var sa=[];ma.modelList.filter(function(Na){return Na.fmyChipList[0].fmyChipCode==ta}).forEach(function(Na){Na.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})}),ma.modelList=ma.modelList.filter(function(ya){return ya.fmyChipList[0].fmyChipCode==ta}),P.push(ma),Z.push(ma.familyId))}else-1==
Z.indexOf(ma.familyId)&&(P.push(ma),Z.push(ma.familyId));G={category:{display_name:I.category.display_name,id:I.category.id,order:I.category.order,productList:P,key:r}};ea[r]=G}})})});Z=[];P=[];r++});r=0;d=b.addonBundleIdx;!ea[d]&&b.hasBundle&&(b=b.addonBundleData,ea[d]={category:{display_name:b.category.display_name,id:b.category.id,key:d,order:b.category.order,productList:b.products}});b=Object.keys(ea);b=$jscomp.makeIterator(b);for(d=b.next();!d.done;d=b.next())ea[r]=ea[d.value],ea[r].category.id=
r,r++;b=[];for(var t in ea)b.push(ea[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(O,S){S.idx=X+"-"+S.idx.split("-")[1]})})});return b}function B(N){for(var b={},r=$jscomp.makeIterator(Object.entries(N)),G=r.next();!G.done;G=r.next()){var P=$jscomp.makeIterator(G.value);G=P.next().value;P=P.next().value;b[G]=P}r=[];for(G=0;G<N.modelList.length;G++){P={};for(var Z=$jscomp.makeIterator(Object.entries(N.modelList[G])),
d=Z.next();!d.done;d=Z.next()){var M=$jscomp.makeIterator(d.value);d=M.next().value;M=M.next().value;P[d]=M}r.push(P)}b.modelList=r;return b}function w(N){var b=l.sg.components.dynamic.detailSharedObj,r=[];ra=[];K&&(oa=[]);if(0<Object.keys(ea).length){h.each(ea,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(N=0;N<oa.length;N++)ra.push(oa[N].categoryId);var G="",P=h(".pdd16-step-buying__headline"),Z=h(".pdd16-step-buying__sub-headline");b.useAddonV2&&(P=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&&g?(P[0].innerHTML=Granite.I18n.get(M,oa[d].display_name),A?(Z.text(Granite.I18n.get("addon subtitle")),"nl"===k&&b.addonStepBuying0701&&(P.text(Granite.I18n.get("addon title(monitor)")),
Z.text(Granite.I18n.get("addon subtitle(monitor)")))):("ch"===k||"ch_fr"===k)&&b.addonStepBuying04&&P.text(Granite.I18n.get("addon title(tv)"))):g||b.hasVoucher||"se"===k||"no"===k||"dk"===k||"fi"===k||(P[0].innerHTML=Granite.I18n.get("Amazing additions"),Z.css("display","none"));G+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';G+='\t\t\t\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-select-tab" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+
(g?"vd ":"")+"add-on:"+oa[d].display_name+':tab"\x3e'+oa[d].display_name;G+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';G+="\t\t\t\t\x3c/button\x3e";G+="\t\t\t\x3c/li\x3e"})}else G="",P=h(".pdd16-step-buying__headline"),G+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e',G+='\t\t\t\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-select-tab" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+(g?"vd ":"")+"add-on:"+
na+':tab"\x3e'+na,G+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e',G+="\t\t\t\t\x3c/button\x3e",G+="\t\t\t\x3c/li\x3e";0<h(".tab__list").length&&h(".tab__list").html(G)}function e(N,b,r){b="";var G=h("#scene7domain").val();N&&(-1<N.indexOf("?")&&(N=N.replace("medias",""),N=N.substring(2,N.indexOf("?")),N=N.substring(0,N.lastIndexOf("-"))),-1<N.indexOf("https:")||-1<N.indexOf("http:")||-1<N.indexOf("//stg-images.samsung.com/")||-1<N.indexOf("//images.samsung.com/")||-1<N.indexOf("image.samsung.com/")||
-1<N.indexOf("//stg-images.samsung.com.cn/")||-1<N.indexOf("//images.samsung.com.cn/")||-1<N.indexOf("image.samsung.com.cn/")?b=N:(r&&(G=G.replace("/image/","/content/")),b=G+N));return b}l.sg.sdf.util.prepareNamespace("sg.components.dynamic");var p=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(),
g=2<D.length&&"04"===D.substring(0,2)||4<D.length&&"0701"===D.substring(0,4),C="pl"===k||"si"===k||"gr"===k||"fi"===k||"it"===k||"se"===k||"no"===k||"dk"===k||"fr"===k?!0:!1,E={},T={},R=[],y={},ea={},va="",ra=[],oa=[],da="",na="";Granite.I18n.get("From");Granite.I18n.get("or");Granite.I18n.get("Monthly Price:");Granite.I18n.get("Full Price:");Granite.I18n.get("Add");Granite.I18n.get("Are you sure to remove this product?");var L="true"===h("#isEppPage").val()&&"pl"===k?!0:!1;"true"===h("#isEppPage").val()&&
(C="Y"===eppOmniPricingUseYn?!0:!1);l.sg.components.dynamic.bridgePageCommon={getRelatedProductsSimpleInfo:function(N){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!1,b,N,function(r,G){r&&0<r.length&&H(!1,r,G,b.embedAddon08)},null,{queryType:"ACCESSORIES"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(N,function(r,G){r&&0<r.length&&H(!1,r,G,b.embedAddon08)},null,
{queryType:"ACCESSORIES"})},getRelatedProductsVdSimpleInfo:function(N){var b=l.sg.components.dynamic.detailSharedObj;ca?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!0,b,N,function(r,G){r&&0<r.length&&H(!0,r,G,!0)},null,{queryType:"DISPLAY_ON_PDP"}):K&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(N,function(r,G){r&&0<r.length&&H(!0,r,G,!0)},null,{queryType:"DISPLAY_ON_PDP"})},getSearchProductcard:function(N){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(E),
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=U(b),w(va),N(b))},null,null)},setPriceInfo:function(N){var b=N.price,r=N.promotionPrice,G=Number((b-r).toFixed(2)),P=currencyComma(G,p),Z=A||!N.priceDisplay?currencyComma(b,p):N.priceDisplay,d=A||!N.promotionPriceDisplay?currencyComma(r,p):N.promotionPriceDisplay,M=N.lowestWasPrice?parseFloat(N.lowestWasPrice):0,t="co"===k&&"true"===N.vatEligible&&
N.vatFreePrice&&N.vatFreePriceDisplay;return{promotionPrice:r,productPrice:b,savePriceTemp:G,saveText:P,productPriceDisplay:Z,promotionPriceDisplay:d,lowestWasPrice:M,vatPrice:t?N.vatFreePriceDisplay:"",vatPriceValue:t?N.vatPriceValue:""}},getBundleCategoryName:function(){return na},getRelatedProductsSimpleBundle:W,getBundleSearchProductcard:function(N){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(T),function(b,r){if(r&&200===b.response.statusCode&&null!=b.response.resultData&&
null!=b.response.resultData.productList){var G=b.response.resultData.productList;h.each(T,function(P,Z){h.each(G,function(d,M){M=M.modelList;null!=M&&h.each(M,function(t,z){var I=z.modelCode,X=T[I].stocklevel||"";T[I]&&(z.displayName||(z.displayName=T[I].name||""),z.thumbUrlAlt=T[I].imageUrlAlt||"",z.priceDisplay=T[I].price||"",z.promotionPriceDisplay=T[I].promotionPrice||"",z.price=T[I].priceValue||"",z.promotionPrice=T[I].promotionPriceValue||"",z.stocklevel=X,z.isStock=!(""===X||"OUTOFSTOCK"===
X.toUpperCase()),z.idx=String(d)+"-"+String(t),z.commercialFlag=T[I].commercialFlag||"",z.referenceColor=T[I].referenceColor||"",z.childModelCode=T[I].childModelCode||"")})})});da=G;N(da)}},null,null)},categoryGridGPv2:function(){var N="";l.sg.components.dynamic.detailSharedObj.addOnCategoryList.forEach(function(b){N+='\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';N+='\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-select-tab" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+
b.category.display_name+':tab"\x3e'+b.category.display_name;N+='\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';N+="\t\x3c/button\x3e";N+="\x3c/li\x3e"});h(".pdd16-step-buying .tab__list").html(N)}}})(window,window.jQuery);
(function(l,h){function H(O,S){l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();ea=C?[].concat($jscomp.arrayFromIterable(new Set(A.addOnGift.products.map(function(fa){return fa.family_id})))).map(function(fa,la){return function(ma){ma=void 0===ma?{}:ma;return{familyId:fa,chipOptions:ma.chipOptions,modelList:(void 0===ma.modelList?[]:ma.modelList).filter(function(ta){var ya=ta.modelCode;return A.addOnGift.products.some(function(sa){var Na=sa.modelCode;return sa.family_id===
fa&&Na===ya})}).map(function(ta,ya){var sa=A.addOnGift.products[ya],Na=!(""===sa.inventory.status||"OUTOFSTOCK"===sa.inventory.status.toUpperCase());return Object.assign({},ta,{idx:la+"-"+ya,stocklevel:sa.inventory.status,isStock:Na,displayName:sa.displayName})})}}(A.addOnSearchGPv2.find(function(ma,ta){return ma.familyId===fa}))}).filter(function(fa){return 0<fa.modelList.length}):O;if(S||null!=ea&&0!==Object.keys(ea).length){W(ea);I.get("useTnc")&&I.get("useTncFromAPI")&&(z=w(),O=I.get("tncAPIContext")?
I.get("tncAPIContext"):"",z.render(O));l.scrollTo(0,0);h(".pdd16-step-buying__promotion-banner").hide();h(".pdd16-step-buying").show();k.hide();if(C||E){O=h("[class*\x3d'feature-benefit']");for(S=0;S<O.length;S++)O[S].remove();O=h("[class*\x3d'three-column-carousel']");for(S=0;S<O.length;S++)O[S].remove();h(".video-wrapper").remove();O=h(".root.responsivegrid \x3e div");for(var Q=0;Q<O.length;Q++)S=O[Q].classList,S.value.includes("aem-Grid--12")||O[Q].remove();0<h(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&
h(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(T)for(O=h(".root.responsivegrid \x3e div"),Q=0;Q<O.length;Q++)S=O[Q].classList,S.value.includes("aem-Grid--default--12")||O[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(){p.DetailAfterEvent.addToCartCta([],!0,!0)},1E3)}function u(O,S){for(var Q=0;Q<O.length;Q++)if(O[Q]===S)return!0;return!1}function n(O,S,Q){S="";var fa=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/")?S=O:(Q&&(fa=fa.replace("/image/","/content/")),S=fa+O));return S}function v(O){var S="",Q=O.modelList[O.frontModelIdx],fa=Q.idx==V,la=Q.fmyChipList,ma="";if(la&&0<la.length)for(var ta=0;ta<
la.length;ta++)if("COLOR"==la[ta].fmyChipType){ma=""!==Q.fmyChipList[ta].fmyChipLocalName?Q.fmyChipList[ta].fmyChipLocalName:Q.fmyChipList[ta].fmyChipName;break}la=Q.isStock;var ya=y.setPriceInfo(Q),sa="";ta=Q.idx.split("-")[0];Q.thumbUrl&&(sa='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+n(Q.thumbUrl,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+n(Q.thumbUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+Q.thumbUrlAlt+'" role\x3d"img"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+
n(Q.thumbUrl,"$240_240_PNG$")+'" data-mobile-src\x3d"'+n(Q.thumbUrl,"$480_480_PNG$")+'" alt\x3d"'+Q.thumbUrlAlt+'" role\x3d"img"\x3e');S+='\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+Q.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+Q.displayName+'\x3c/div\x3e\n            \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+sa+"\n\t\t\t\x3c/div\x3e\n\t\t\t\t";sa="";la||(sa=
t);var Na=C?": "+ma:"\x26nbsp;"+ma;ma='\x3cdiv class\x3d"pdd16-step-buying__card-option" style\x3d"height:84.4375px"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\t'+(""!=ma?'\x3cdiv class\x3d"option-selector__color-name"\x3e\n\t\t\t\t\t\t\t\t\t'+Granite.I18n.get("Color")+'\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"color-name-text"\x3e'+Na+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t";Na="";if(O.viewOptionObj&&0<Object.keys(O.viewOptionObj).length){var pa=
"",a=0,c=O.viewOptionObj,m=O.optionTypeList,f;for(f in O.viewOptionObj){var q=f.toLowerCase().replace(/ /g,"-"),ba=O.viewOptionObj[f].optionList,J="";O.viewOptionObj[f].styleAttr&&(J=O.viewOptionObj[f].styleAttr);if("COLOR"===f){var ha="";J="";for(var qa in ba){var ia=ba.length;var za=ba[qa];var Ha=!1;var Fa=za.modelIdx.split(",");if(null!=za.modelIdx&&u(Fa,String(O.frontModelIdx))){Ha=!0;ha=za.modelIdx;var Ca=""}else if(Ca=" is-disabled",0===a)Ca="";else{var Ia=pa.split(","),Ta;for(Ta in Fa)if(u(Ia,
Fa[Ta])){Ca="";break}}Ia=Fa="";if(""===Ca){var Oa=za.modelIdx;var ka=[],Ja=!0,Da;for(Da in c)if(Da!==f){var La=c[Da].optionList,Qa;for(Qa in La){var Ma=La[Qa];Ma=Ma.modelIdx;var Sa=Ma.split(",");-1<Sa.indexOf(String(O.frontModelIdx))&&ka.push(Ma)}}Oa=X(c,Oa,ka,Ja,m);O.modelList.length>Oa&&O.modelList[Oa]&&(Fa=O.modelList[Oa].modelCode,Ia=O.modelList[Oa].modelName)}ka="pdd16-"+q+"-"+qa+"-"+O.modelList[Oa].idx;Ja="pdd16-"+q+"-"+qa+"-"+O.modelList[Oa].idx;var Ra=za.multiColorYN;Ha='\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"'+
ka+'" name\x3d"'+Ja+'" data-modeli\x3d"'+Oa+'" '+(Ha?" checked":"")+(""===Ca?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-'+D+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+f.toLowerCase()+":"+za.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Fa+'" data-modelname\x3d"'+Ia+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+ka+'"\x3e\n\t\t\t\t\t\t\t\t\t\t';Fa="";if("Y"!=Ra)Fa='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+
za.optionCode+'"\x3e'+za.optionLocalName+"\x3c/span\x3e";else if(Ca=za.multiColorList){Ia=Ca.optionCodeList;Ra="";switch(Ca.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"'+
Ia[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"'+
Ia[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"'+Ia[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"'+
Ia[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"'+Ia[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"'+
Ia[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"'+
Ia[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"'+
Ia[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"'+
Ia[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"'+Ia[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"'+Ia[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"'+
Ia[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"'+Ia[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"'+Ia[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"'+
Ia[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"'+Ia[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"'+Ia[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"'+Ia[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"'+
Ia[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"'+Ia[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"'+
Ia[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"'+Ia[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"'+
Ia[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"'+Ia[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+=Ha+Fa+'\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+za.optionName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}pa=ha;Na+='\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"===
f||"TV SIZE"===f||"HOME APPLIANCE SIZE"===f||"MONITOR SCREEN SIZE"===f){Ra=ha="";for(var Va=0;Va<ba.length;Va++){var Y=ba.length;za=ba[Va];Ha=!1;Fa=za.modelIdx.split(",");if(null!=za.modelIdx&&u(Fa,String(O.frontModelIdx)))Ha=!0,ha=za.modelIdx,Ca="";else if(Ca=" is-disabled",0===a)Ca="";else for(Ta in Ia=pa.split(","),Fa)if(u(Ia,Fa[Ta])){Ca="";break}Ia=Fa="";if(""===Ca){Oa=za.modelIdx;ka=[];Ja=!1;for(Da in c)if(Da!==f)for(Qa in La=c[Da].optionList,La)Ma=La[Qa],Ma=Ma.modelIdx,Sa=Ma.split(","),-1<Sa.indexOf(String(O.frontModelIdx))&&
ka.push(Ma);Oa=X(c,Oa,ka,Ja,m);O.modelList.length>Oa&&O.modelList[Oa]&&(Fa=O.modelList[Oa].modelCode,Ia=O.modelList[Oa].modelName)}ka="pdd16-"+q+"-"+Va+"-"+O.modelList[Oa].idx;Ja="pdd16-"+q+"-"+O.modelList[Oa].idx;Ra+='\x3cspan class\x3d"option-selector__swiper-slide'+Ca+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+ka+'" name\x3d"'+Ja+'" data-modeli\x3d"'+Oa+'" '+(Ha?" checked":"")+(""===Ca?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-'+
D+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+f.toLowerCase()+":"+za.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Fa+'" data-modelname\x3d"'+Ia+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+ka+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+za.optionLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e"}pa=
ha;Na+='\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+=ma+Na+' \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";
g&&(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"));O=C?Q.shopSKU:"in"!==ca?Q.modelCode:O=Q.shopSKU;S+='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-input"\x3e\n                    \x3cdiv class\x3d"radio-v2"\x3e\n                      \x3cinput type\x3d"radio" name\x3d"radio" class\x3d"hidden" id\x3d"radio-id-'+
ta+'" data-modelcode\x3d"'+O+'" data-modelname\x3d"'+Q.modelName+'" data-shopsku\x3d"'+Q.shopSKU+'" '+(la?"":"disabled checked")+" "+(fa?" checked":"")+'\x3e\n                      \x3clabel class\x3d"radio-v2__label" for\x3d"radio-id-'+ta+'"\x3e\n                        \x3cspan class\x3d"radio-v2__label-box-wrap"\x3e\n                          \x3cspan class\x3d"radio-v2__label-box"\x3e\n                            \x3cspan class\x3d"radio-v2__label-box-circle"\x3e\x3c/span\x3e\n                          \x3c/span\x3e\n                        \x3c/span\x3e\n                        \x3cspan class\x3d"radio-v2__label-text"\x3eSelecting item\x3c/span\x3e\n                      \x3c/label\x3e\n                    \x3c/div\x3e\n                  \x3c/div\x3e\n\t\t\t';
return'\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+Q.idx+'" data-modelcode\x3d"'+O+'"\x3e\n\t\t\t\t\t\t\t\t\t'+S+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e"}function F(O,S){null==O.modelList[S].displayName&&(O.modelList[S].displayName="");var Q={};for(ta in O.modelList){var fa=O.modelList[ta].fmyChipList,la;for(la in fa){var ma=fa[la].fmyChipType+"+"+fa[la].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+fa[la].fmyChipLocalName.replace('"',"").replace("\x26quot;","");Q[ma]=void 0==Q[ma]?
ta:Q[ma]+(","+ta)}}var ta=[];fa={};if(O.chipOptions)for(la=0;la<O.chipOptions.length;la++){var ya=O.chipOptions[la],sa=ya.fmyChipType,Na=ya.optionList,pa;for(pa in Na)ma=ya.fmyChipType+"+"+Na[pa].optionCode.replace('"',"").replace("\x26quot;","")+"+"+Na[pa].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=Q[ma]&&(Na[pa].modelIdx=Q[ma]);fa[sa]={};fa[sa].optionList=Na;ta.push(sa)}O.viewOptionObj=fa;O.optionTypeList=ta;O.frontModelIdx=S;return O}function W(O){A.addonGiftBundleRelatedData=
A.addonGiftBundleRelatedData.filter(function(a,c,m){return c===m.findIndex(function(f){return f.bundleModelCode===a.bundleModelCode})});var S="";if(C){var Q=A.addOnGift.expanded.product_tags.GIFT;Q=Q.formatted_sales_pitch?Q.formatted_sales_pitch:Q.sales_pitch;h(".pdd16-step-buying__headline").html(Q)}else{var fa=l.sg.components.dynamic.detailSharedObj.giftdataHybris;h.each(fa,function(a,c){"maintitle"===fa[a].key.toLowerCase()&&h(".pdd16-step-buying__headline").html(fa[a].value);"subtitle"===fa[a].key.toLowerCase()&&
(h(".pdd16-step-buying__sub-headline").html(fa[a].value),h(".pdd16-step-buying__sub-headline").css("display",""));"description"===fa[a].key.toLowerCase()&&(h(".pdd16-step-buying__disclaimer p").html(fa[a].value),h(".pdd16-step-buying__disclaimer").css("display",""))})}oa=h(".pdd16-step-buying__header-price-text")[0].innerHTML;if(0<O.length){for(var la="",ma=0;ma<O.length;ma++)if(Q=O[ma],null!=Q.modelList&&0<Q.modelList.length){na=0;for(var ta=null,ya=0;ya<Q.modelList.length;ya++){var sa=Q.modelList[ya],
Na=sa.isStock;sa.selected&&"Y"===sa.selected&&(na=ya,Na&&(ta=ya))}if(null==ta)for(ya=0;ya<Q.modelList.length;ya++)if(sa=Q.modelList[ya],sa.isStock){ta=ya;break}null==ta&&(ta=na);Q=F(Q,ta);la+=v(Q)}l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(A.hasGiftBundle)for(var pa in A.addonGiftBundleRelatedData)la+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+aa(pa)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";O=A.giftdataHybris;pa="";pa=!1;if(O.length)for(ma=
0;ma<O.length;ma++)"freeSmc"==O[ma].key&&"Y"==O[ma].value&&(pa=!0);if(pa)for(O=A.hybrisCareData.smcs,pa=0;pa<O.length;pa++)if(null==O[pa].paymentCycle||"MONTHLY"!=O[pa].paymentCycle.toUpperCase()){O=O[pa];pa=U(O);la+='\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"SC"\x3e\n\t\t\t\t\t\t\t\t\t'+pa+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e";break}S+='\x3cdiv class\x3d"pdd16-step-buying__tab pdd16-step-buying__ swiper-slide"\x3e\n\t\t            \x3cdiv class\x3d"pdd16-step-buying__list-type"\x3e\n\t\t            \x3ca class\x3d"btn-type on" aria-label\x3d""\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(-344 -388) translate(344 388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 388)" /\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(344 394.649)" /\x3e\n                    \t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 388)" /\x3e\n                    \t\t\x3cpath d\x3d"M.764 0h3.822a.764.764 0 0 1 .764.764v3.822a.764.764 0 0 1-.764.764H.764A.764.764 0 0 1 0 4.586V.764A.764.764 0 0 1 .764 0z" transform\x3d"translate(-344 -388) translate(2 2) translate(350.65 394.649)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t            \x3ca class\x3d"btn-type" aria-label\x3d""\x3e\n\t\t              \x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" focusable\x3d"false"\x3e\n\t\t                \x3cpath fill\x3d"none" d\x3d"M0 0H16V16H0z" transform\x3d"translate(349 388) translate(-349 -388)" /\x3e\n\t\t                \x3cg\x3e\n\t\t\t\t\t\t\t\x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 388.732) translate(7 1.268) translate(-349 -388)" /\x3e\n                    \t\t\x3cpath d\x3d"M.652 0h10.7A.681.681 0 0 1 12 .764v3.822a.681.681 0 0 1-.652.764H.652A.681.681 0 0 1 0 4.586V.764A.681.681 0 0 1 .652 0z" class\x3d"cls-2" transform\x3d"translate(344 395.732) translate(7 1.268) translate(-349 -388)" /\x3e\n\t\t                \x3c/g\x3e\n\t\t              \x3c/svg\x3e\n\t\t            \x3c/a\x3e\n\t\t          \x3c/div\x3e\n\t\t          \x3cdiv class\x3d"scrollbar"\x3e\n\t\t            \x3cdiv class\x3d"scrollbar__contents"\x3e\n\t\t            \t'+
la+'\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';
la=""}else{S="";l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(A.hasGiftBundle)for(ma in A.addonGiftBundleRelatedData)S+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+aa(ma)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";O=A.giftdataHybris;pa="";pa=!1;if(O.length)for(ma=0;ma<O.length;ma++)"freeSmc"==O[ma].key&&"Y"==O[ma].value&&(pa=!0);if(pa){O=A.hybrisCareData.smcs;for(pa=0;pa<O.length;pa++)if(null==O[pa].paymentCycle||"MONTHLY"!=O[pa].paymentCycle.toUpperCase()){la=
O[pa];break}pa=U(la);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);
la=h(".radio-v2 input");O=la.closest(".pdd16-step-buying--free-gift").find(".pdd16-step-buying__card-state p");S=!1;for(pa=0;pa<O.length;pa++)if(ma=la[pa].getAttribute("id"),Q=la[pa].getAttribute("class"),O[pa].innerText.toUpperCase()!=t.toUpperCase()&&"radio-id-99"!=ma&&"radio-id-SC"!=ma&&!Q.includes("cta--bundle")){la[pa].setAttribute("checked",!0);ra.push(la[pa].getAttribute("data-modelcode"));S=!0;break}O=0;pa="";pa=h(".pdd16-step-buying--free-gift .pdd16-step-buying__card-state p");for(ma=0;ma<
pa.length;ma++)pa[ma].innerText.toUpperCase()==t.toUpperCase()&&"radio-id-SC"!=la[ma].getAttribute("id")&&O++;O==pa.length?(N=!0,pa=Granite.I18n.get("Skip"),S=!0):(pa="",pa=Granite.I18n.get("CONTINUE"));I.get("useGiftContinueI18nForAllCTA")&&(pa=Granite.I18n.get("CONTINUE(GIFT)"));la=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");(I.get("useTnc")?e(la):1)||(S=!1);la='\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-price"\x3e\n                \x3cp class\x3d"pdd16-step-buying__footer-text"\x3e\x3cstrong\x3e'+
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&&(la+='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d"cta cta--underline cta--emphasis gift cta--skip" id\x3d"giftSkip"\x3e\n\t\t\t\t\t\tNon mi interessa\n\t\t             \x3c/button\x3e\n\t\t        \x3c/div\x3e');la+='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta"\x3e\n\t            \t\x3cbutton \n\t\t\t\t\t\tclass\x3d"cta cta--contained cta--emphasis '+
(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(la);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(O){var S=
"",Q=A.relatedProductsBundle[A.addonGiftBundleRelatedData[O].bundleModelCode],fa=Q.modelcode;var la='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\''+x(Q.imageUrl,"$LazyLoad_Home_PNG$")+"' data-mobile-src\x3d\""+x(Q.imageUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"" role\x3d"img"\x3e\n\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d\''+x(Q.imageUrl)+"' data-mobile-src\x3d\""+x(Q.imageUrl)+'" alt\x3d"" role\x3d"img"\x3e';S+='\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+
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'+la+"\n\t\t\t\x3c/div\x3e\n\t\t\t";la=!1;Q=t;for(var ma in A.addonGiftBundleRelatedData[O]){var ta=A.addonGiftBundleRelatedData[O][ma];if(ta.stocklevel&&"inStock"===ta.stocklevel&&ta.colorCode){la=!0;Q="";break}}return S+('\x3cdiv class\x3d"pdd16-step-buying__card-option" style\x3d"height:84.4375px"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector option-selector__color-text"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-state"\x3e\n\t\t\t\t\x3cp\x3e'+
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')+((la?fa:"")+' data-modelCode\x3d"'+fa+'" '+(la?"":"disabled")+'\x3e\n\t\t\t\t\t  \x3clabel class\x3d"radio-v2__label" for\x3d"'+fa+'"\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(O,S,Q){var fa="",la=h("#scene7domain").val();O&&(-1<O.indexOf("?")&&(O=O.replace("medias",""),O=O.substring(0,O.indexOf("?")),O+="?"+S),-1<O.indexOf("https:")||-1<O.indexOf("http:")||-1<O.indexOf("//stg-images.samsung.com/")||-1<O.indexOf("//images.samsung.com/")||-1<O.indexOf("image.samsung.com/")||-1<O.indexOf("//stg-images.samsung.com.cn/")||-1<O.indexOf("//images.samsung.com.cn/")||-1<O.indexOf("image.samsung.com.cn/")?fa=O:(Q&&(la=la.replace("/image/","/content/")),fa=la+O));return fa}
function U(O){var S='\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\n\t\t\t\t\t\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e\n\t\t\t\t\t\t'+O.title+'\n\t\t\t\t\t\x3c/strong\x3e\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e\n\t\t\t\t\t\t'+O.title+'\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' data-mobile-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' alt\x3d""\x3e\n\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' data-mobile-src\x3d\'/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' alt\x3d""\x3e\n\t\t\t\t\x3c/div\x3e';
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"'+
(O.smcCode+'"\x3e\n\t                      \x3clabel class\x3d"radio-v2__label" for\x3d"radio-id-SC"\x3e\n\t                        \x3cspan class\x3d"radio-v2__label-box-wrap"\x3e\n\t                          \x3cspan class\x3d"radio-v2__label-box"\x3e\n\t                            \x3cspan class\x3d"radio-v2__label-box-circle"\x3e\x3c/span\x3e\n\t                          \x3c/span\x3e\n\t                        \x3c/span\x3e\n\t                        \x3cspan class\x3d"radio-v2__label-text"\x3e\x3c/span\x3e\n\t                      \x3c/label\x3e\n\t                    \x3c/div\x3e\n\t                  \x3c/div\x3e\n\t\t\t\t')}
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 O=h(this);ra=[];h(".pdd16-step-buying__header-price-text").html(oa);h(".hiddenPrice").attr("value",da);var S=(O.closest(".pdd16-step-buying__card").attr("data-index")||"").split("-")[0],Q=O.attr("data-modeli");
O=ea[S].modelList[Q];ra.push(O.modelCode);O=O.isStock;V=h(this).attr("name");var fa=V.lastIndexOf("-");V=V.substring(V.lastIndexOf("-",fa-1)+1);setTimeout(function(){if(null!=Q){ea[S].frontModelIdx=Q;var la=F(ea[S],Q),ma=h(".pdd16-step-buying__card").eq(S),ta=h(".pdd16-step-buying__card").index(ma);ma.find(".option-selector__swiper-wrapper").each(function(ya){ya=ea[S].optionTypeList[ya];var sa=h(this).attr("style");ea[S].viewOptionObj[ya].styleAttr=sa});ma.replaceWith(v(la));ma=h(document.querySelectorAll(".pdd16-step-buying__card")[ta]);
ma.addClass("is-show");l.sg.components.stepbuying.init();B()}},300);O?(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 O=h(this);L=O;O.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",da);ra=[];va=[];var S=O.closest(".pdd16-step-buying__card").attr("data-index"),Q=O.closest(".radio-v2").find('input[type\x3d"radio"]');if("radio-id-SC"==O.closest(".radio-v2").find('input[type\x3d"radio"]').attr("id")){S=[];O=A.hybrisCareData;Q=O.smcs;for(var fa,la=0;la<Q.length;la++)if(null==Q[la].paymentCycle||
"MONTHLY"!=Q[la].paymentCycle.toUpperCase()){fa=Q[la];break}S.push(fa);O.smcs=S;configuratorCare.showPopup(O);h(".hubble-care-popup__smc-price").hide()}else if(Q.hasClass("cta--bundle")){var ma=Q.attr("data-modelcode");fa=l.sg.components.dynamic.detailSharedObj.relatedProductsBundle[ma];S=l.sg.components.dynamic.detailSharedObj.addonGiftBundleRelatedData.filter(function(ta){return ta.bundleModelCode===ma});l.sg.components.addonBundlePopup.callSearchAjax(fa,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")||(fa=S.split("-"),fa=ea[fa[0]].modelList[fa[1]],O="",h("#priceCurrency").val(),h(".hiddenPrice")[0].getAttribute("value"),O=C?fa.shopSKU:fa.modelCode,O=C?fa.shopSKU:fa.modelCode,va.push(S),ra.push(O));(E||T)&&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)}));fa=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");fa=I.get("useTnc")?e(fa):!0;0<ra.length&&fa?h("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):h("#giftContinue").addClass("cta--disabled").attr("disabled",!0)})}function w(){var O=h(".pdd16-step-buying__tnc");h("#giftContinue");var S=function(Q){var fa="";Q&&0<Q.length&&(fa=Q.map(function(la){return'\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tnc-checkbox '+(la.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"'+la.code+'"\x3e\n\t\t\t\t\t\t\t\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+la.code+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-box-wrap"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-box"\x3e\n\t\t\t\t\t\t\t\t\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-text"\x3e'+
la.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 fa};return{render:function(Q){h.when(p.freeGiftHybrisCommon.getTnc(Q)).done(function(fa){fa&&0<fa.length&&(O.html(S(fa)),fa=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']"),(I.get("useTnc")?e(fa):1)||h("#giftContinue").addClass("cta--disabled").attr("disabled",!0))})}}}function e(O){var S=!0;0<O.length&&O.each(function(){var Q=h(this);
Q.closest(".pdd16-step-buying__tnc-checkbox").hasClass("is-required")&&(S=S&&Q.is(":checked"))});return S}var p=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),k=p.ux2.PriceBar,A=p.detailSharedObj,ca=h("#siteCode").val(),K=h("#priceCurrency").val(),D=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),g="se"===ca||"dk"===ca||"fi"===ca||"no"===ca,C="GPv2"===h("#shopIntegrationFlag").val(),E="Hybris"===h("#shopIntegrationFlag").val()||"Hybris-intg"===h("#shopIntegrationFlag").val(),T="Hybris-new"===
h("#shopIntegrationFlag").val(),R="true"===h("#isEppPage").val(),y={},ea=[],va=[],ra=[],oa,da,na,L,N=!1,b=!1,r=Granite.I18n.get("From"),G=Granite.I18n.get("or"),P=Granite.I18n.get("Monthly Price:"),Z=Granite.I18n.get("View more"),d=Granite.I18n.get("Total"),M=Granite.I18n.get("VAT Inclusive"),t=Granite.I18n.get("Out Of Stock"),z=null,I=function(O,S){var Q=S[O],fa=S["default"];return{get:function(la){return Q&&"undefined"!==typeof Q[la]?Q[la]:fa&&"undefined"!==typeof fa[la]?fa[la]:!1}}}(ca,{it:{useGiftContinueI18nForAllCTA:!0,
useTnc:!0,useTncFromAPI:!0,tncAPIContext:"FOC"}}),X=function(O,S,Q,fa,la){S=S.split(",");var ma=S[0];la=la.indexOf("MEMORY");if(!C&&!T&&!E&&fa&&0<la){Q=O.MEMORY.optionList;var ta=0,ya=0,sa;for(sa in Q){ma=Q[sa].modelIdx.split(",");for(var Na in ma)if(u(S,ma[Na])){O=Q[sa].optionCode.replace("TB","000").replace(/[^0-9]/g,"");ya<O&&(ya=O,ta=ma[Na]);break}}S=ta}else{for(ta in Q)if(sa=Q[ta]){Na=sa.split(",");sa=[];for(ya in S)-1<Na.indexOf(String(S[ya]))&&sa.push(S[ya]);0<sa.length&&(S=sa)}S=0<S.length?
S[0]:ma}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(O){O=h(this);if(void 0!=A.globalServiceInfo.care&&"Confirm"==O[0].innerText){O=A.globalServiceInfo.care;O=h(".hiddenPrice").val()-O.sale_price.value;var S=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;S=(Granite.I18n.get("From {0}/mo",currencyComma(O/Number(S),K))+" "+Granite.I18n.get("for {0} mos",
S)+" "+G+" "+currencyComma(O,K)).split(" "+G+" ");O=b?'\n                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+S[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n                    \t"+G+" "+S[1]+'\x3c/p\x3e\n                    \x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+O+'"\x3e\n                ':'\n\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
P+'\x3c/strong\x3e\x3c/p\x3e\n                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+S[1]+'\x3c/strong\x3e\x3c/p\x3e\n                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+O+'"\x3e\n\t\t\t\t';h(".pdd16-step-buying__header-price").html(O);h(".pdd16-step-buying__footer-sum").html(O)}O=h("#radio-id-SC").attr("data-modelCode");ra.push(O);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 O=[],S=h(".add-ons-evoucher-popup__item .option-selector-v2__swiper-slide.is-checked");h.each(S,function(la,ma){O.push(S.find(".option-selector-v2__color-code")[la].getAttribute("data-modelcode"))});for(var Q=0;Q<O.length;Q++)ra.push(O[Q]);if(0==ra.length)h("#giftContinue").addClass("cta--disabled").attr("disabled",!0);else{h("#giftContinue").removeClass("cta--disabled").attr("disabled",!1);
var fa=h(this).attr("data-parent-modelcode");h(".pdd16-step-buying--free-gift .pdd16-step-buying__card-input .cta--bundle").each(function(la){h(this).attr("data-modelcode")===fa&&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 O=h(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");
e(O)?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 O=A.soundbarCategoryData&&0<Object.keys(A.soundbarCategoryData).length?!0:!1;"giftSkip"===h(this).attr("id")&&(N=!0);N?A.hasAddOns&&!A.isEmbedAddOn||A.hasAddOns&&A.isEmbedAddOn&&O?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():
p.DetailAfterEvent.addToCartCta([],!0,!0):(ra=ra.filter(function(S){return S}),0<ra.length&&-1<ra[0].indexOf(",")&&(ra=ra[0].split(",")),setTimeout(function(){l.sg.components.stepbuying.init();A.hasAddOns&&!A.isEmbedAddOn||A.hasAddOns&&A.isEmbedAddOn&&O?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():p.DetailAfterEvent.addToCartCta(ra,!0,!0);A.globalServiceInfo.care&&delete A.globalServiceInfo.care},10))});p.bridgePagefreeGift={moveBridgePage:function(O){O=(p.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||
"").split(" "+G+" ");var S=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePrice;da=A.globalServiceInfo.care?S+A.globalServiceInfo.care.sale_price.value:S;1<O.length?(b=!0,O="tr"===ca?'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+O[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+G+" "+O[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
da+'"\x3e\n\t                ':'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+O[0].replace(r,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+G+" "+O[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+da+'"\x3e\n\t                '):O="tr"===ca?'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
P+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+O[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+da+'"\x3e\n\t\t\t\t\t':'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+P+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+r+" "+O[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
da+'"\x3e\n\t\t\t\t\t';h(".pdd16-step-buying__header-price").html(O);h(".pdd16-step-buying__footer-sum").html(O);if(C||E||T)y=p.freeGiftHybrisCommon,C?(O=A.addOnApiList.gift)&&O.list&&0<O.list.length&&H(O.list):0===ea.length&&0<A.addonGiftBundleRelatedData.length?H([],!0):y.getSearchProductcard(H)}}})(window,window.jQuery);
(function(l,h){function H(K,D,g){k={};h.each(K.products,function(C,E){C=E.modelcode;var T=k[C]={};T.modelCode=C;T.name=E.name;E.picture&&(T.imageUrl=E.picture.url,T.imageUrlAlt=E.picture.altText);E.stock&&(T.stocklevel=E.stock.stockLevelStatus);E.price&&E.price.value&&(T.priceValue=E.price.value,T.price=E.price.formattedValue,T.promotionPriceValue=E.price.value,T.promotionPrice=E.price.formattedValue);E.promotionPrice&&E.promotionPrice.value&&(T.promotionPriceValue=E.promotionPrice.value,T.promotionPrice=
E.promotionPrice.formattedValue);"F-"==E.modelcode.substring(0,2)&&(E.name&&(T.name=E.name),h.extend(E,T),g[E.modelcode]=E,u(E.modelcode),D.hasGiftBundle=!0)});D.relatedProductsBundle=g}function u(K){x?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(v,K,function(D,g){A={};A.bundleModelCode=K;g&&null!=D.products&&0<D.products.length&&(h.each(D.products,function(C,E){C=E.modelcode;var T=A[C]={};T.modelCode=C;T.name=E.name;E.imageUrl&&(T.imageUrl=E.imageUrl);E.imageUrlAlt&&
(T.imageUrlAlt=E.imageUrlAlt);E.stocklevel&&(T.stocklevel=E.stocklevel);E.price&&E.priceValue&&(T.priceValue=E.priceValue,T.price=E.price,T.promotionPriceValue=E.priceValue,T.promotionPrice=E.price);E.promotionPrice&&E.promotionPriceValue&&(T.promotionPriceValue=E.promotionPriceValue,T.promotionPrice=E.promotionPrice);E.colorCode&&(T.colorCode=E.colorCode)}),ca.push(A));v.addonGiftBundleRelatedData=ca},null,{queryType:"SELECTION_OF_BUNDLE"}):U&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,
function(D,g){A={};A.bundleModelCode=K;g&&null!=D.products&&0<D.products.length&&(h.each(D.products,function(C,E){C=E.modelcode;var T=A[C]={};T.modelCode=C;T.name=E.name;E.picture&&(T.imageUrl=E.picture.url,T.imageUrlAlt=E.picture.altText);E.stock&&(T.stocklevel=E.stock.stockLevelStatus);E.price&&E.price.value&&(T.priceValue=E.price.value,T.price=E.price.formattedValue,T.promotionPriceValue=E.price.value,T.promotionPrice=E.price.formattedValue);E.promotionPrice&&E.promotionPrice.value&&(T.promotionPriceValue=
E.promotionPrice.value,T.promotionPrice=E.promotionPrice.formattedValue);if(E.groupCode&&0==E.groupId||E.groupCode&&0!=E.groupId)T.groupCode=E.groupCode,T.groupId=E.groupId;E.colorCode&&(T.colorCode=E.colorCode)}),ca.push(A));v.addonGiftBundleRelatedData=ca},null,{queryType:"SELECTION_OF_BUNDLE"})}var n=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),v=n.detailSharedObj,F=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(),U="Hybris-new"===h("#shopIntegrationFlag").val(),B=h("#storeDomain").val(),w=h("#categoryGroupCode").val(),e=[],p=[],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,g){g&&null!=D.products&&0<D.products.length?(k={},h.each(D.products,function(C,E){if(E.stocklevel){C=E.modelcode;var T=k[C]={};T.modelCode=C;T.name=E.name;E.imageUrl&&(T.imageUrl=E.imageUrl);E.imageUrlAlt&&(T.imageUrlAlt=E.imageUrlAlt);E.stocklevel&&
(T.stocklevel=E.stocklevel);E.price&&E.priceValue&&(T.priceValue=E.priceValue,T.price=E.price);E.promotionPrice&&E.promotionPriceValue&&(T.promotionPriceValue=E.promotionPriceValue,T.promotionPrice=E.promotionPrice,E.priceValue===E.promotionPriceValue&&(T.promotionPriceValue=null,T.promotionPrice=null));"F-"==E.modelcode.substring(0,2)&&(E.picture&&(T.imageUrl=E.picture.url),E.name&&(T.name=E.name),h.extend(E,T),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"}):U&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,function(D,g){l.sg.components.dynamic.detailSharedObj.relatedProductsObj={};g&&null!=D.products&&0<D.products.length?(l.sg.components.dynamic.detailSharedObj.relatedProductsObj=
D,H(D,v,A),l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(l.sg.components.dynamic.detailSharedObj.hasGift=!1,l.sg.components.dynamic.detailSharedObj.hasGiftPage=!1,l.sg.components.dynamic.detailSharedObj.hasAddOns||l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1))},null,{queryType:"SELECTION_OF_GIFT"})},getRelatedProductsSimpleBundle:u,getAddOnGift:function(){return e},giftPopupGrid:function(K){l.sg.components.dynamic.freeGift.giftPopupGrid(K)},getSearchProductcard:function(K){var D=
[];h.each(Object.keys(k),function(g,C){"F-"!=C.substr(0,2)&&D.push(C)});0<D.length?l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(D,function(g,C){C&&200===g.response.statusCode&&null!=g.response.resultData&&null!=g.response.resultData.productList&&(g=g.response.resultData.productList,h.each(g,function(E,T){T=T.modelList;null!=T&&h.each(T,function(R,y){var ea="in"!==W?y.modelCode:y.shopSKU;if(k[ea]){var va=k[ea].stocklevel;y.displayName||(y.displayName=k[ea].name||"");y.thumbUrlAlt=
k[ea].imageUrlAlt||"";y.priceDisplay=k[ea].price||"";y.promotionPriceDisplay=k[ea].promotionPrice||"";y.price=k[ea].priceValue||"";y.promotionPrice=k[ea].promotionPriceValue||"";y.stocklevel=va;y.isStock=!(""===va||"OUTOFSTOCK"===va.toUpperCase());y.idx=String(E)+"-"+String(R)}})}),e=g,K(e))},null,null):K([])},setPriceInfo:function(K){var D=K.price,g=K.promotionPrice,C=Number((D-g).toFixed(2)),E=currencyComma(C,F),T=aa||!K.priceDisplay?currencyComma(D,F):K.priceDisplay;K=aa||!K.promotionPriceDisplay?
currencyComma(g,F):K.promotionPriceDisplay;return{promotionPrice:g,productPrice:D,savePriceTemp:C,saveText:E,productPriceDisplay:T,promotionPriceDisplay:K}},getBundleSearchProductcard:function(K){var D=[];h.each(k,function(g,C){"F-"!=C.modelcode.substr(0,2)&&D.push(C.modelcode)});l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(D,function(g,C){if(C&&200===g.response.statusCode&&null!=g.response.resultData&&null!=g.response.resultData.productList){var E=g.response.resultData.productList;
h.each(A,function(T,R){h.each(E,function(y,ea){ea=ea.modelList;null!=ea&&h.each(ea,function(va,ra){var oa=ra.modelCode,da=A[oa].stocklevel||"";A[oa]&&(ra.displayName||(ra.displayName=A[oa].name||""),ra.thumbUrlAlt=A[oa].imageUrlAlt||"",ra.priceDisplay=A[oa].price||"",ra.promotionPriceDisplay=A[oa].promotionPrice||"",ra.price=A[oa].priceValue||"",ra.promotionPrice=A[oa].promotionPriceValue||"",ra.stocklevel=da,ra.isStock=!(""===da||"OUTOFSTOCK"===da.toUpperCase()),ra.idx=String(y)+"-"+String(va))})})});
p=E;K(p)}},null,null)},getProductListData:function(){return p},getTariffRelatedProductsSimpleInfo:function(K){var D=n.detailSharedObj;A={};D.hasGiftBundle=!1;e=[];l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(K,function(g,C){C&&null!=g.products&&0<g.products.length?(l.sg.components.dynamic.detailSharedObj.hasTariffGift=!0,l.sg.components.dynamic.detailSharedObj.hasGift=!0,H(g,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:H,relatedProductsBundle:A,getTnc:function(K){var D=checkEppSite()&&x?h("input#newHyvStoreDomain").val():B,g=checkEppSite()?l.sg.epp.common.companyCode:W,C=checkEppSite()?{withCredentials:!0}:{};return h.ajax({url:D+"/tokocommercewebservices/v2/"+g+"/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,H=window.sg.common.lazyLoad,u=window.sg.common.scrollbar,n=window.sg.common.constants.BREAKPOINTS,v=window.sg.common.OptionSelector,F=null,W=function(U){this.selector={component:".accessories",cardFiche:".accessories__product-price-info",rating:".accessories__rating",optionWrap:".option-selector"};this.el={component:l(U)};this.handler={setHeight:this.setHeight.bind(this)};W.instances.set(U,this);this.init()};W.prototype.setElement=function(){this.el.cardSlide=
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(U){U.css({height:""})})};
W.prototype.setHeight=function(){var U=this,B=n.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 p=Math.max.apply(null,e);w.target.forEach(function(k){k=l(k);"none"!==k.css("display")&&k.css({height:p+"px"})})});setTimeout(function(){U.el.component.find(".scrollbar").target.forEach(function(w){u.resize(w)})},
30)};W.prototype.setCardInstances=function(){this.el.cardSlide.target.forEach(function(U){aa.instances.has(U)?aa.instances.get(U).reInit():new aa(U)})};W.prototype.bindEvents=function(){l(window).off("resize",this.handler.setHeight).on("resize",this.handler.setHeight)};var aa=function(U){this.selector={cardComponent:".accessories__item",optionSelector:".option-selector__wrap",mobileOptionWrap:".accessories__option-selector",mobileOptionColor:".accessories__color-chip",mobileOptionCapacity:".accessories__capacity"};
this.el={component:l(U)};this.handler={resize:this.resize.bind(this)};aa.instances.set(U,this);this.init()};aa.prototype.setElement=function(){this.el.optionSelector=this.el.component.find(this.selector.optionSelector);this.el.mobileOptionWrap=this.el.component.find(this.selector.mobileOptionWrap);this.resizeFlag=this.mobileFlag=this.desktopFlag=!1};aa.prototype.init=function(){this.setElement();this.resize();this.bindEvents()};aa.prototype.reInit=function(){this.init()};aa.prototype.setMobileOption=
function(){var U=this;this.el.mobileOptionWrap.target.forEach(function(B){B=l(B);var w=B.find(U.selector.mobileOptionColor),e=B.find(U.selector.mobileOptionCapacity);w.target.length&&(5<w.find(".accessories__color").target.length?w.addClass("accessories__color-chip--over"):w.removeClass("accessories__color-chip--over"));e.target.length&&(e.width()>B.width()?e.addClass("accessories__capacity--over"):e.removeClass("accessories__capacity--over"))})};aa.prototype.resize=function(){n.MOBILE<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(U){W.instances.has(U)||new W(U)})};W.instances=new WeakMap;aa.instances=new WeakMap;l.ready(x);
window.sg.components.accessories={init:x,reInit:function(){H.setLazyLoad();l(".accessories").target.forEach(function(U){l(U).find(".scrollbar").target.forEach(function(B){u.reInit(B);u.resize(B)});l(U).find(".option-selector").target.forEach(function(B){v.reInit(l(B))});W.instances.has(U)?W.instances.get(U).reInit():new W(U)})},reInitItem:function(U){H.setLazyLoad();l(U).target.forEach(function(B){l(B).find(".option-selector").target.forEach(function(w){v.reInit(l(w))});aa.instances.has(B)?aa.instances.get(B).reInit():
new aa(B)})}}})();
(function(l,h){window.sg.components.dynamic=window.sg.components.dynamic||{};l=window.sg.components.dynamic;var H=function(){function u(oa,da){var na=!0,L="",N="",b="",r="",G="";if("Y"===x||"pl"===e&&"OUTOFSTOCK"===da)na=!1;else if("NOORDER"===da||"LEARNMORE"===da)na="nl"===e||"be"===e||"be_fr"===e?!0:!1;oa.price&&(L=oa.price);oa.listPrice&&(r=oa.listPrice);oa.listPriceDisplay?G=oa.listPriceDisplay:oa.listPrice&&(G=currencyComma(oa.listPrice,aa));oa.priceDisplay?N=oa.priceDisplay:oa.price&&(N=currencyComma(oa.price,
aa));da=oa.promotionPrice?oa.promotionPrice:oa.price;var P=oa.promotionPriceDisplay?oa.promotionPriceDisplay:oa.promotionPrice?currencyComma(oa.promotionPrice,aa):N;var Z="Y"===h.cookies.get("isSMBRegisteredUserYN",{domain:".samsung.com"})&&commonLoginCheck();p&&Z&&(oa.tieredPrice&&k?(da=oa.tieredPrice,P=currencyComma(oa.tieredPrice,aa),oa.tieredPriceDisplay&&(P=oa.tieredPriceDisplay)):oa.smbPromotionPrice&&(da=oa.smbPromotionPrice,P=currencyComma(oa.smbPromotionPrice,aa)));L&&da&&L!==da?b=currencyComma(parseFloat(L)-
parseFloat(da),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"});p&&d&&(oa.taxExPrice&&(da=oa.taxExPrice,P=currencyComma(oa.taxExPrice,aa),oa.taxExPriceDisplay&&(P=oa.taxExPriceDisplay)),Z&&oa.taxExTieredPrice&&k&&(da=oa.taxExTieredPrice,P=currencyComma(oa.taxExTieredPrice,aa),oa.taxExTieredPriceDisplay&&(P=oa.taxExTieredPriceDisplay)));oa.tradeInPriceText&&-1<h("#shopIntegrationFlag").val().indexOf("Hybris-intg")&&
(P=oa.tradeInPriceText);if("be"===e||"be_fr"===e||"nl"===e)N=deleteCurrency(N,aa),P=deleteCurrency(P,aa),b=deleteCurrency(b,aa),G=deleteCurrency(G,aa);return{hasPrice:na,orignalPrice:L,salePrice:da,listPrice:r,listPriceFormatted:G,orignalPriceFormatted:N,salePriceFormatted:P,savePriceFormatted:b}}var n=h("#searchDomain").val(),v=h("#shopIntegrationFlag").val(),F=h("#siteCode").val(),W=h("#apiStageInfo").val(),aa=h("#accPriceCurrency").val(),x=h("#oldProductYn").val(),U=h("#accModelList").val(),B=
h("#reviewUseYN").val(),w=h("#reevooUseYN").val(),e=h("#siteCode").val(),p=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,g=h("#scene7domain").val(),C=[],E=0;Granite.I18n.setLocale(h("#language").val());var T=function(oa,da,na){var L=g;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"===da?(oa=na,da="?$LazyLoad_Home",na=na.toLowerCase(),da=-1<na.indexOf(".jpg")?da+"_JPG$":-1<na.indexOf(".jpeg")?da+"_JPG$":-1<na.indexOf(".png")?da+"_PNG$":
-1<na.indexOf(".gif")?da+"_GIF$":da+"_PNG$",na=oa+da):"product-desktop"===da?na+="?$240_240_PNG$":"product-mobile"===da&&(na+="?$480_480_PNG$"));return na},R=function(oa,da){for(var na=0;na<oa.length;na++)if(oa[na]===da)return!0;return!1},y=function(oa,da){if(!fnIsNull(da)&&!fnIsNull(oa.modelList)&&!fnIsNull(oa.modelList[da])){var na=oa.modelList[da];fnIsNull(na.displayName)&&(oa.modelList[da].displayName="");if(!fnIsNull(na.thumbUrl)){var L={};fnIsNull(na.thumbUrl)||(L={},L.imageUrlDesktop=T(na.thumbUrl,
"product-desktop"),L.imageUrlMobile=T(na.thumbUrl,"product-mobile"),L.lazyImageUrl=T(na.thumbUrl,"lazy"));oa.modelList[da].thumbInfo=L}if("Y"===B||"Y"===w){L="";var N=na.ratings;fnIsNull(N)&&(N=0,oa.modelList[da].ratings=0);var b=Math.pow(10,1);N=Math.round(N*b)/b;b=parseFloat(N).toFixed(1);N=parseInt(N);var r=parseInt(100*(b-N));var G="";"0.0"!==b?oa.modelList[da].ratings=b:G="rating--empty";oa.modelList[da].ratingEmptyText=G;for(b=0;b<N;b++)L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 100%;"\x3e\x3c/span\x3e\x3c/span\x3e';
if(5>N&&0<N)for(L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: '+r+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',b=4;b>N;b--)L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';else if(0===N&&!fnIsNull(oa.modelList[da].reviewUrl))for(N=0;5>N;N++)L+='\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';
oa.modelList[da].ratingHtml=L;fnIsNull(na.reviewCount)&&(oa.modelList[da].reviewCount="0");oa.modelList[da].ratingsText=Granite.I18n.get("{0} out of {1} Stars",["\x3cspan\x3e"+na.ratings+"\x3c/span\x3e","5"],e)}fnIsNull(na.energyLabelGrade)&&(oa.modelList[da].energyLabelGrade="");fnIsNull(na.ficheFileUrl)&&(oa.modelList[da].ficheFileUrl="")}return oa},ea=function(oa,da,na,L,N){da=da.split(",");var b=da[0];N=N.indexOf("MEMORY");if(!A&&!ca&&L&&0<N){na=oa.MEMORY.optionList;var r=0,G=0;for(Z in na){b=
na[Z].modelIdx.split(",");for(var P in b)if(R(da,b[P])){oa=na[Z].optionCode.replace("TB","000").replace(/[^0-9]/g,"");G<oa&&(G=oa,r=b[P]);break}}da=r}else{for(r in na){var Z=na[r];if(!fnIsNull(Z)){P=Z.split(",");Z=[];for(G in da)-1<P.indexOf(String(da[G]))&&Z.push(da[G]);0<Z.length&&(da=Z)}}da=0<da.length?da[0]:b}return da},va=function(oa){var da="",na="",L=oa.modelList[oa.frontModelIdx];fnIsNull(L.ctaType)||(na=L.ctaType.toUpperCase(),oa.modelList[oa.frontModelIdx].ctaTypeUpperCase=na);fnIsNull(oa.categorySubTypeCode)||
oa.categorySubTypeCode.substr(0,2);p&&L.b2bHybrisShopInfo&&(na=L.b2bHybrisShopInfo.ctaType.toUpperCase());var N="javascript:void(0)";fnIsNull(L.pdpUrl)||(N=L.pdpUrl);var b='\x3cdiv class\x3d"accessories__product-name"\x3e';!fnIsNull(L.displayName)&&(b+='\x3ca href\x3d"'+N+'" an-tr\x3d"pd_accessories-'+D+'-product-link" an-ca\x3d"product click" an-ac\x3d"accessories" an-la\x3d"product click" data-modelcode\x3d"'+L.modelCode+'" data-modelname\x3d"'+L.modelName+'"\x3e'+L.displayName+"\x3c/p\x3e\x3c/a\x3e");
da+=b+"\x3c/div\x3e";N='\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)||(N+='\x3ca href\x3d"'+L.pdpUrl+'" an-tr\x3d"pd_accessories-'+D+'-product-link" an-ca\x3d"product click" an-ac\x3d"accessories" an-la\x3d"product click" data-modelcode\x3d"'+
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');da+=N+'\x3c/div\x3e\x3cdiv class\x3d"accessories__text"\x3e';
N="";b=oa.modelList[oa.frontModelIdx];if(!fnIsNull(oa.viewOptionObj)){N+='\x3cdiv class\x3d"option-selector"\x3e';if(!fnIsNull(oa.viewOptionObj)&&0<Object.keys(oa.viewOptionObj).length){var r="",G=0,P=oa.viewOptionObj,Z=oa.optionTypeList;for(q in oa.viewOptionObj){var d=q.toLowerCase().replace(/ /g,"-");var M=oa.viewOptionObj[q].optionList,t="",z,I="",X="";var V=z="";fnIsNull(oa.viewOptionObj[q].styleAttr)||(V=oa.viewOptionObj[q].styleAttr);var O="";for(var S in M){var Q=M[S];var fa=Q.modelIdx.split(",");
null!=Q.modelIdx&&R(fa,String(oa.frontModelIdx))&&(O=Q.optionLocalName)}if("COLOR"===q){N+='\x3cdiv class\x3d"option-selector__color-name"\x3e\x3cdiv class\x3d"option-selector__color-name-inner"\x3e\x3cspan class\x3d"color-name-title"\x3e'+Granite.I18n.get("Color")+' : \x3c/span\x3e\x3cspan class\x3d"color-name-text"\x3e'+O+'\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip" data-desktop-view\x3d"5" data-mobile-view\x3d"3"\x3e\x3cdiv class\x3d"option-selector__swiper"\x3e\x3cdiv class\x3d"option-selector__swiper-container"\x3e\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
V+'" role\x3d"list"\x3e';for(S in M){Q=M[S];V=!1;fa=Q.modelIdx.split(",");if(null!=Q.modelIdx&&R(fa,String(oa.frontModelIdx)))V=!0,t=Q.modelIdx,O="";else if(O=" js-fmyChip-is-disabled-acc",0===G)O="";else{var la=r.split(",");for(var ma in fa)if(R(la,fa[ma])){O="";break}}if(""===O){z=Q.modelIdx;fa=[];la=!0;for(var ta in P)if(ta!==q){var ya=P[ta].optionList;for(var sa in ya){var Na=ya[sa];Na=Na.modelIdx;var pa=Na.split(",");-1<pa.indexOf(String(oa.frontModelIdx))&&fa.push(Na)}}z=ea(P,z,fa,la,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+'"')}fa="product-"+d+"-"+S+"-"+b.modelCode;la="product-"+d+"-"+b.modelCode;N+='\x3cspan class\x3d"option-selector__swiper-slide'+(V?" swiper-slide-active":"")+'" role\x3d"listitem"\x3e\x3cspan class\x3d"option-selector__color js-acc-product-fmychip'+O+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+fa+'" data-optionName\x3d"'+Q.optionLocalName+'" name\x3d"'+la+'" 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"'+G+'" data-moidx\x3d"'+Q.modelIdx+'" \x3e\x3clabel for\x3d"'+fa+'"\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;N+='\x3c/div\x3e\x3c/div\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"'+Granite.I18n.get("Previous")+'" role\x3d"button" aria-disabled\x3d"true"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+'\x3c/span\x3e\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"'+
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{N+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity" data-desktop-view\x3d"3" data-mobile-view\x3d"2"\x3e\x3cdiv class\x3d"option-selector__swiper"\x3e\x3cdiv class\x3d"option-selector__swiper-container"\x3e\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
V+'" role\x3d"list"\x3e';for(var a=0;a<M.length;a++){Q=M[a];V=!1;fa=Q.modelIdx.split(",");if(null!=Q.modelIdx&&R(fa,String(oa.frontModelIdx)))V=!0,t=Q.modelIdx,O="";else if(O=" js-fmyChip-is-disabled-acc",0===G)O="";else{la=r.split(",");for(var c in fa)if(R(la,fa[c])){O="";break}}if(""===O){z=Q.modelIdx;fa=[];la=!1;for(var m in P)if(m!==q){ya=P[m].optionList;for(var f in ya)Na=ya[f],Na=Na.modelIdx,pa=Na.split(","),-1<pa.indexOf(String(oa.frontModelIdx))&&fa.push(Na)}z=ea(P,z,fa,la,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+'"')}fa="product-"+d+"-"+a+"-"+b.modelCode;la="product-"+d+"-"+b.modelCode;N+='\x3cspan class\x3d"option-selector__swiper-slide'+(V?" swiper-slide-active":"")+'" role\x3d"listitem"\x3e\x3cspan class\x3d"option-selector__size js-acc-product-fmychip'+O+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+fa+'" data-optionName\x3d"'+Q.optionLocalName+'" name\x3d"'+la+'" 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"'+G+'" data-code\x3d"'+Q.optionCode+'"'+(V?" checked":"")+' data-moidx\x3d"'+Q.modelIdx+'"\x3e\x3clabel class\x3d"option-selector__size-label" for\x3d"'+fa+'"\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;N+='\x3cdiv class\x3d"option-selector__floating-bar" style\x3d"display: none;"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-prev" aria-label\x3d"'+Granite.I18n.get("Previous")+'" role\x3d"button" aria-disabled\x3d"true"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+'\x3c/span\x3e\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3cbutton type\x3d"button" class\x3d"option-selector__button-next" aria-label\x3d"'+
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'}G++}}N+="\x3c/div\x3e"}var q=da+N;S="";ma="/"+e+"/common/review/"+L.modelCode+"/";fnIsNull(L.reviewUrl)||(ma=L.reviewUrl);"Y"!==B&&"Y"!==w||fnIsNull(L.ratingHtml)||"cn"===e||(S+='\x3cdiv class\x3d"accessories__rating"\x3e\x3ca href\x3d"'+
ma+'" 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");ma=p?u(L.b2bHybrisShopInfo,
na):u(L,na);q=ma.hasPrice;na='\x3cdiv class\x3d"accessories__price"\x3e';q&&(q=ma.salePriceFormatted,S=ma.orignalPriceFormatted,ta=ma.savePriceFormatted,sa=ma.listPrice,m=ma.listPriceFormatted,null!=L.listPrice&&(sa=parseFloat(L.listPrice)-parseFloat(L.price)),ma=N=b=da=f=c="",G=r=!1,A||ca||p?fnIsNull(L.leasingInfo)||"nl"!==e?fnIsNull(L.monthlyPriceInfo)||fnIsNull(L.monthlyPriceInfo.leasingMonthly)||fnIsNull(L.monthlyPriceInfo.leasingMonths)||fnIsNull(L.monthlyPriceInfo.interest)||(c=L.monthlyPriceInfo.leasingMonthly,
"be"!==e&&"be_fr"!==e&&(c=currencyComma(c,aa)),f=L.monthlyPriceInfo.leasingMonths,r=!0):(L=L.leasingInfo,N=deleteCurrency(L.monthlyRate,aa),f=L.tenureVal,da=deleteCurrency(L.downPaymentFormatted,aa),b=L.tenureUnit,G=!0):fnIsNull(L.monthlyPriceInfo)||fnIsNull(L.monthlyPriceInfo.leasingMonthly)||fnIsNull(L.monthlyPriceInfo.leasingMonths)||"au"!==e&&"nz"!==e&&"ae"!==e&&"my"!==e&&"sg"!==e&&"ca"!==e&&"ca_fr"!==e&&"it"!==e&&"se"!==e&&"dk"!==e&&"fi"!==e&&"no"!==e&&"es"!==e&&"pt"!==e&&"th"!==e&&"tw"!==e&&
"ru"!==e&&"ch"!==e&&"ch_fr"!==e||(L=L.monthlyPriceInfo,c=L.leasingMonthly,c=currencyComma(c,aa),f=L.leasingMonths,r=!0),A||ca||K||p?ta?(S="nl"===e||"be"===e||"be_fr"===e||"de"===e?Granite.I18n.get("From {0}",["\x3cdel\x3e"+S+"\x3c/del\x3e"]):"\x3cdel\x3e"+S+"\x3c/del\x3e",ma='\x3cspan class\x3d"accessories__price-original"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e"+S+"\x3c/span\x3e","nl"!==e&&"be"!==e&&"be_fr"!==e&&(ma+='\x3cspan class\x3d"accessories__price-save"\x3e'+
Granite.I18n.get("Save {0}",ta)+"\x3c/span\x3e")):0<sa&&("nl"===e||"be"===e||"be_fr"===e)&&(ma+='\x3cspan class\x3d"accessories__price-original"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e\x3cspan\x3e"+Granite.I18n.get("Listprice")+" "+m+"\x3c/span\x3e\x3c/span\x3e"):ta&&"nl"!==e&&"be"!==e&&"be_fr"!==e&&(ma+='\x3cspan class\x3d"accessories__price-save"\x3e'+ta+"\x3c/span\x3e"),r?(L=Granite.I18n.get("From {0}/mo",[c])+" ",L+=Granite.I18n.get("for {0} mos",
[f])+" ",L+=Granite.I18n.get("or")+q,na+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cspan class\x3d"accessories__price-current" data-pricetext\x3d"'+L+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Monthly Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-current-text"\x3e'+Granite.I18n.get("From {0}/mo",[c])+"\x3c/span\x3e "+Granite.I18n.get("for {0} mos",[f])+'\x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Current Price")+
': \x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly-text"\x3e '+Granite.I18n.get("or")+" \x3c/span\x3e"+q+"\x3c/span\x3e\x3c/div\x3e"):G?""!==da&&""!==b&&""!==f&&""!==N&&(ta=" "+da+" + "+f+" x "+N+"/"+Granite.I18n.get(b),L=S+" "+Granite.I18n.get("or")+" "+ta,na+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cdiv class\x3d"product-card__price-current" data-pricetext\x3d"'+(L+'"\x3e\x3cspan class\x3d"hidden"\x3e')+Granite.I18n.get("Current Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-current-text"\x3e'+
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"+ta+"\x3c/div\x3e\x3c/div\x3e"):na+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cdiv class\x3d"accessories__price-current" data-pricetext\x3d"'+q+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Current Price")+": \x3c/span\x3e"+q+
"\x3c/div\x3e\x3c/div\x3e",na+='\x3cdiv class\x3d"accessories__price-detail"\x3e',!fnIsNull(ma)&&(na+=ma),na+="\x3c/div\x3e");return oa+(na+"\x3c/div\x3e\x3c/div\x3e")},ra=function(){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(da){da=h(this);var na=da.closest(".js-acc-product-card"),
L=na.data("productidx"),N=da.data("modeli");setTimeout(function(){if(!fnIsNull(N)){C[L].frontModelIdx=N;var b=y(C[L],N);na.find(".option-selector__wrap").each(function(r){r=C[L].optionTypeList[r];var G=h(this).find(".option-selector__swiper-wrapper").attr("style");C[L].viewOptionObj[r].styleAttr=G});na.html(va(b));ra();window.sg.components.accessories.reInitItem(document.querySelectorAll(".accessories__item")[L])}},300)})};v=function(){var oa={},da="",na="",L="true"===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":p?"b2b/product/card/detail":na+"/product/card/detail/global";
if(U){oa.siteCode=F;oa.modelList=U;oa.saleSkuYN="N";oa.onlyRequestSkuYN="N";oa.keySummaryYN="N";oa.specYN="N";L=h.cookies.get("estoreSitecode")?h.cookies.get("estoreSitecode").toString():"";var N=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(N)?"CA-ON":N,oa.regionCode=b;fnIsNull(r)||(oa.shopSiteCode=r);if(A||ca||p)oa.commonCodeYN="N";p&&(oa.shopType="b2bhybris");h.ajax({url:n+"/"+W+"/"+na,data:oa,async:!1,success:function(G){if(200===G.response.statusCode&&0<G.response.resultData.productList.length)for(var P=0;P<G.response.resultData.productList.length;P++){var Z=G.response.resultData.productList[P],d=0;if(!fnIsNull(Z.modelList)&&0<Z.modelList.length)for(var M=0;M<Z.modelList.length;M++){var t=
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],O=V.fmyChipType,S=V.optionList,Q;for(Q in S){var fa=V.fmyChipType+
"+"+S[Q].optionCode.replace('"',"").replace("\x26quot;","")+"+"+S[Q].optionLocalName.replace('"',"").replace("\x26quot;","");void 0!==M[fa]&&(S[Q].modelIdx=M[fa])}z[O]={};z[O].optionList=S;t.push(O)}Z.viewOptionObj=z;Z.optionTypeList=t;C[E]=Z;d=y(Z,d);d=va(d);da+='\x3cdiv class\x3d"accessories__item js-acc-product-card" data-productidx\x3d'+E+"\x3e";da+=d;da+="\x3c/div\x3e";E++}}})}da?(h("section.accessories").find("div.scrollbar__contents").html(da),ra(),h("section.accessories").show()):h("section.accessories").remove()};
U&&v()};h(function(){H();window.sg.components.accessories.reInit()});l.accessoriesGrid=H})(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 n=u.find(this.selector.accordionContentWrap),v=u.find(this.selector.accordionCta);u.toggleClass(this.classes.accordionExpand);u.hasClass(this.classes.accordionExpand)?(n.removeAttr("inert"),v.attr("aria-expanded",!0)):(n.attr("inert",!0),v.attr("aria-expanded",!1));this.toggleAccordion()};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),n=this.el.section.find(".ftd22-faq__accordion:not(.ftd22-faq__accordion--expanded)").find(this.selector.accordionContentWrap);u.target.forEach(function(v){l(v).parent().css({"max-height":l(v).outerHeight()+"px"})});n.css({"max-height":0})};var H=function(){l(".ftd22-faq").target.forEach(function(u){h.instances.has(u)||
new h(u)})};h.instances=new WeakMap;window.sg.components.Ftd22Faq={init:H,reInit:function(){l(".ftd22-faq").target.forEach(function(u){h.instances.has(u)?h.instances.get(u).reInit():new h(u)})}};l.load(H)})();
(function(){var l=window.sg.common.$q,h=window.sg.common.utils,H=window.sg.common.lazyLoad,u=window.sg.common.swiperManager,n=function(F){this.selector={swiperContainer:".pdd28-reasons-to-buy__list",imageWrap:".pdd28-reasons-to-buy__image",nameWrap:".pdd28-reasons-to-buy__name-wrap",descWrap:".pdd28-reasons-to-buy__desc-wrap",screenIndicatorPrev:".screen-indicator--prev",screenIndicatorNext:".screen-indicator--next"};this.el={window:l(window),section:l(F)};this.swiperIndex=this.swiper=this.currentDevice=
null;this.handler={handleResize:this.handleResize.bind(this)};n.instances.set(F,this);this.init()};n.prototype.init=function(){this.setElements();this.bindEvents()};n.prototype.reInit=function(){this.init();H.forceLoad(this.section)};n.prototype.setElements=function(){this.el.swiperContainer=this.el.section.find(this.selector.swiperContainer);this.el.imageWrap=this.el.section.find(this.selector.imageWrap);this.el.nameWrap=this.el.section.find(this.selector.nameWrap);this.el.descWrap=this.el.section.find(this.selector.descWrap);
this.el.screenIndicatorPrev=this.el.section.find(this.selector.screenIndicatorPrev);this.el.screenIndicatorNext=this.el.section.find(this.selector.screenIndicatorNext)};n.prototype.bindEvents=function(){this.swiper=u.getSwiper(this.el.swiperContainer.target[0]);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize);this.el.window.off("change",this.handler.handleResize).on("change",this.handler.handleResize);this.el.window.off("deviceorientation",this.handler.handleResize).on("deviceorientation",
this.handler.handleResize);window.dispatchEvent(new Event("resize"))};n.prototype.handleResize=function(){var F=this,W=h.getCurrentDevice();this.matchHeight();this.currentDevice!==W&&setTimeout(function(){F.initSwiper();F.updateTagging()},250);this.currentDevice=W};n.prototype.matchHeight=function(){[this.el.nameWrap,this.el.descWrap].forEach(function(F){var W=F.target.reduce(function(aa,x){x=x.children[0]?x.children[0].clientHeight:0;return aa>x?aa:x},0);F.css({height:W+"px"});0===W?F.addClass("is-empty"):
F.removeClass("is-empty")})};n.prototype.updateTagging=function(){if(this.swiper){var F=this.swiperIndex+1;this.el.screenIndicatorPrev.attr("an-la","carousel:swipe:buy direct get more"+(F-1));this.el.screenIndicatorNext.attr("an-la","carousel:swipe:buy direct get more"+(F+1))}};n.prototype.initSwiper=function(){var F=this;this.el.swiperContainer.target.forEach(function(W){u.slideReInit(W);u.slideInitEnd(W,function(){F.swiper=u.getSwiper(W);F.updateTagging();F.swiper.on("reachEnd",function(){F.swiperIndex=
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){n.instances.has(F)||new n(F)})};n.instances=new WeakMap;window.sg.components.PdReasonsToBuy={init:v,reInit:function(){l(".pdd28-reasons-to-buy").target.forEach(function(F){n.instances.has(F)?n.instances.get(F).reInit():new n(F)})}};l.load(v)})();
(function(l,h){function H(){var x=h("#siteCode").val(),U=h("#pfCategoryTypeCode").val(),B="GPv2"===F?!0:!1,w="Hybris-intg"===F?!0:!1;fnIsNull(F);var e="Hybris-new"===F?!0:!1,p=checkEppSite(),k=h("#searchDomain").val(),A=h("#apiStageInfo").val(),ca=p?"epp/v2":"b2c",K=k+"/"+A+"/"+ca+"/product/finder/global";B?K=k+"/"+A+"/"+ca+"/product/finder/gpv2":w?K=k+"/"+A+"/"+ca+"/product/finder/hybris":e&&(K=k+"/"+A+"/"+ca+"/product/finder/newhybris");x={type:U,siteCode:x,start:1,num:12,sort:"newest",onlyFilterInfoYN:"N",
keySummaryYN:"Y",onlyReasonToBuyYN:"Y"};if(p){p=l.sg.epp.common.companyCode;U=h("#pfType").val();x.companyCode=p;x.pfType=U;if("F"==U||"R"==U)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 g="",
C=!0,E=h("#pfCategoryGroupCode").val(),T=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(N in D){y=D[N];var ea=null!=y.iconType&&""!=y.iconType?!0:!1,va="",ra="",oa="";"NEW"==y.ctaLinkType&&(va='target\x3d"_blank"',ra=" cta--icon",oa='\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n                                    \x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e\n                               \x3c/svg\x3e');
va=null!=y.ctaURL&&""!=y.ctaURL?va:"";var da=aa[y.iconType];if("ca"===siteCode||"ca_fr"===siteCode)"smart_care"===y.iconType?da="#samsung-care-plus-bold":"cashback"!==y.iconType||"03000000"!==E&&"04000000"!==E&&"05000000"!==E&&"08000000"!==E&&"07010000"!==T||(da="#price-guarantee-reguler");var na=ea&&-1<da.indexOf("#")?!0:!1,L="";if("#smart-care-regular"===da||"#samsung-app"===da||"#support-laptop"===da)L="pdd28-reasons-to-buy__item--colored-icon-off";g+='\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&&(g+='\x3cdiv class\x3d"pdd28-reasons-to-buy__image"\x3e',ea&&(g=na?g+('\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n                                                \x3cuse xlink:href\x3d"'+
da+'" href\x3d"'+da+'"\x3e\x3c/use\x3e\n                                              \x3c/svg\x3e'):g+('\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')),
g+="\x3c/div\x3e");ea=ellipsize(y.title,67);g+='\x3cdiv class\x3d"pdd28-reasons-to-buy__name-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__name"\x3e'+ea+"\x3c/p\x3e\n                                    \x3c/div\x3e";null!=y.description&&""!=y.description&&"\x26nbsp;"!=y.description?(da=ellipsize(y.description,413),g+='\x3cdiv class\x3d"pdd28-reasons-to-buy__desc-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__desc"\x3e'+
da+"\x3c/p\x3e\n                                    \x3c/div\x3e"):g+='\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&&(da=checkEppSite()?getEppMultiStorePath(y.ctaURL):y.ctaURL,g+='\x3cdiv class\x3d"pdd28-reasons-to-buy__cta"\x3e\n                                            \x3ca class\x3d"cta cta--underline-v2 cta--black'+
ra+' cta--large" href\x3d"'+da+'" aria-label\x3d"'+R+". "+ea+'" '+va+'\n                                               an-tr\x3d"pdd28_reasons to buy-'+v+'-learn more-content_click" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"reasons to buy:buy direct get more:'+y.title+':learn more"\x3e\n                                                '+R+"\n                                                "+oa+"\n                                            \x3c/a\x3e\n                                        \x3c/div\x3e");
g+="\x3c/div\x3e\n                                \x3c/div\x3e"}}var N=g;D="";""!=N&&(D=""+N);""!==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(),n=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"),U=x.text();x.text(ellipsize(U,72));W?(console.log("PF "+F+" : "+n),H()):(console.log("PD "+F+" : "+n),1>n?(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 H(){var B=document.querySelector(".manufacturer-info-popup");B&&(l=B,h=B.querySelector(".layer-popup"),U=B.querySelector(".layer-popup__close"),W.init(h),U.addEventListener("click",v),B=document.querySelector(x.section+" "+x.close),B.removeEventListener("keydown",n),B.addEventListener("keydown",n),B=document.querySelector(x.section+" "+x.layerPopup),B.removeEventListener("keydown",u),B.addEventListener("keydown",u))}function u(B){B.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===
B.keyCode&&B.target===document.querySelector(x.section+" "+x.layerPopup)&&(B.preventDefault(),document.querySelector(x.section+" "+x.close).focus())}function n(B){B.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==B.keyCode||(B.preventDefault(),document.querySelector(x.section+" "+x.layerPopup).focus())}function v(){l.removeAttribute("style");aa.popupControl.close();aa.visibleScroll();document.querySelector(".pdd-buying-tool")?document.querySelector('.pdd-buying-tool [data-target-popup\x3d"manufacturerInfoPopup"]').focus():
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 U=h=l=void 0;window.sg.components.manufacturerInfoPopup={reInit:H,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(H)})();
(function(){function l(){h(H.section).target.forEach(function(n){new u(n)})}var h=window.sg.common.$q,H={section:".text-editor"},u=function(n){this.selector={section:H.section,columnBox:".text-editor__column-wrap",hiddenTextArea:".text-editor__column-hidden-text",viewCta:".text-editor__column-cta",activeClass:"is-show"};this.ele={window:h(window),section:h(n),viewCta:null};this.handler={charView:this.charView.bind(this)};u.instances.set(n,this);this.init()};u.prototype.init=function(){this.setProperty();
this.bindEvents()};u.prototype.reInit=function(){this.setProperty();this.bindEvents()};u.prototype.setProperty=function(){var n=this;this.ele.viewCta=this.ele.section.find(this.selector.viewCta);this.ele.section.find(this.selector.columnBox).target.forEach(function(v){var F=h(v);if(0<F.find(n.selector.hiddenTextArea).target.length){var W=F.find(n.selector.hiddenTextArea).target[0].previousElementSibling,aa=F.find(n.selector.hiddenTextArea).target[0].firstElementChild;"P"===aa.tagName.toUpperCase()&&
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(n.selector.hiddenTextArea).target[0].children;[].concat($jscomp.arrayFromIterable(x)).forEach(function(U){if(""===U.style.textAlign&&!U.classList.contains("text-extend")){var B=window.getComputedStyle(U).textAlign,w=U.getAttribute("style");null!==w?U.setAttribute("style",w+" text-align:"+B):U.setAttribute("style","text-align:"+B)}});x=document.createElement("div");
x.classList.add("extend-area");x.setAttribute("style","text-align:"+aa);x.appendChild(W);x.appendChild(F.find(n.selector.hiddenTextArea).target[0]);x.appendChild(F.find(n.selector.viewCta).target[0]);h(v).find(".text-editor__column").target[0].appendChild(x)}}})};u.prototype.charView=function(n){n=h(n.currentTarget);var v=n.closest(this.selector.columnBox).find(this.selector.hiddenTextArea),F=JSON.parse(n.target[0].dataset.globalText);v.hasClass(this.selector.activeClass)?(n.innerHTML(F.Show),v.removeClass(this.selector.activeClass)):
(n.innerHTML(F.Hidden),v.addClass(this.selector.activeClass))};u.prototype.bindEvents=function(){this.ele.viewCta.off("click",this.handler.charView).on("click",this.handler.charView)};u.instances=new WeakMap;window.sg.components.textEditor={init:l,reInit:function(){h(H.section).target.forEach(function(n){u.instances.has(n)?u.instances.get(n).reInit():new u(n)})}};h.ready(l)})();
(function(l,h){window.sg.components.dynamic=window.sg.components.dynamic||{};h(document).on("click",".disclaimer_activeClass_dev",function(){var H=h(this).attr("href");h(H).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,H=window.sg.common.utils,u=window.sg.common.lazyLoad,n=window.sg.common.swiperManager,v={section:".pdd36-recommendation-oos-new"},F=function(W){this.selector={content:".pdd36-recommendation-oos-new__content",swiperContainer:".pdd36-recommendation-oos-new__list",nameWrap:".pdd36-recommendation-oos-new__name-wrap",ratingWrap:".pdd36-recommendation-oos-new__rating-wrap",ficheWrap:".pdd36-recommendation-oos-new__fiche-wrap",
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=
n.getSwiper(this.el.swiperContainer.target[0]);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize);this.el.window.off("change",this.handler.handleResize).on("change",this.handler.handleResize);this.el.window.off("deviceorientation",this.handler.handleResize).on("deviceorientation",this.handler.handleResize);window.dispatchEvent(new Event("resize"))};F.prototype.handleResize=function(){var W=this,aa=H.getCurrentDevice();this.setHeight();this.currentDevice!==
aa&&setTimeout(function(){W.setSwiperStatus()},10);this.currentDevice=aa};F.prototype.setSwiperStatus=function(){(this.swiper=n.getSwiper(this.el.swiperContainer.target[0]))?this.swiper.slides.length<=parseInt(this.swiper.params.slidesPerView)||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.progressIndicator.removeClass(this.selector.progressIndicatorShowClass)):(this.swiper.allowTouchMove=!0,this.el.progressIndicator.addClass(this.selector.progressIndicatorShowClass)):this.initSwiper()};
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(U,B){B=B.children[0]?B.children[0].clientHeight:0;return U>B?U:B},0);aa.css({height:x+"px"});0===x?aa.addClass(W.selector.dataEmptyClass):aa.removeClass(W.selector.dataEmptyClass)})};F.prototype.initSwiper=function(){var W=this;this.el.swiperContainer.target.forEach(function(aa){n.slideReInit(aa);n.slideInitEnd(aa,function(){W.swiper=
n.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 H(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()),n="true"===l("#isEppPage").val();productRecommendationUx2PD={getSearchProductCardForBDCApi:function(v){var F,W,aa,x,U,B,w,e,p,k,A,ca,K,D,g,C,E,T,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=U=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),p=l.cookies.get("encGuid",{domain:w}),k=p.substring(4,36).toLowerCase(),A=CryptoJS.enc.Utf8.parse(k),ca=CryptoJS.AES.decrypt(e,A,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),x=CryptoJS.enc.Utf8.stringify(ca)}catch(ea){console.error("get guid fail:",ea)}U=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");g=[];l.each(cookies.getCookies(),function(ea,va){-1!=ea.indexOf("AMCV_")&&g.push(va.toString())});C="b2c";E="";n&&(C="epp",E=window.sg.epp.common.companyCode);T={requestId:u,country:siteCode,num:6,siteType:C};R={pageType:"pdp_similar_product",guid:x,saId:U,visitorId:B,ecid:aa,visitorIdList:g,consent:K,recentList:D,targetModel:v,rewardPoint:"",eppStoreName:E};l.ajax({headers:T,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(ea,va,ra){if(200==ra.status)if(ea.recommendations&&0<ea.recommendations.length){va=ea.recommendations;u=ea.requestId;l(".pdd36-recommendation-oos-new .pdd36-recommendation-oos-new__list-inner").show();l(".pdd36-recommendation-oos-new .pd-offer__content").hide();ea=l(".pdd36-recommendation-oos-new");var oa="";if(null!=va){for(ra=0;ra<va.length;ra++){var da=
va[ra].product,na=va[ra].model;if(null!=da.modelList&&0<da.modelList.length){for(var L=0,N=0;N<da.modelList.length;N++)da.modelList[N].modelCode==na&&(L=N);da.frontModelIdx=L;var b=da;da=ra;L=b.modelList[b.frontModelIdx];na="";H((L.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));N='data-modelcode\x3d"'+L.modelCode+'"';var r='data-modelname\x3d"'+L.modelName+'"',G='data-requested\x3d"'+u+'"';(b.categorySubTypeEngName||"").toLowerCase();(L.pviTypeName||"").toLowerCase();(L.pviSubtypeName||
"").toLowerCase();da='{"an-tr":"pdd36_product  card case-product detail-index-indication","an-ca":"indication","an-ac":"carousel","an-la":"carousel:index:'+da+'"}';var P=b.modelList[b.frontModelIdx],Z="";H((P.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));var d='an-ca\x3d"product click" an-ac\x3d"recommended product" an-la\x3d"image click" an-tr\x3d"pdd36_product recommendation-product detail-product click-product_click2" data-modelname\x3d"'+(P.modelName+'" data-modelcode\x3d"')+
(P.modelCode+'" data-requested\x3d"')+(u+'"');if(P.thumbUrl){b=P.thumbUrl;var M=P.thumbUrlAlt||"",t=P.pdpUrl;"Y"===P.simplePdYN&&n&&null!=P.originPdpUrl&&(t=P.originPdpUrl.replace("feature.","buy."));d='\x3c!--/* Preset desktop: 180_180, mobile: 200_200 */--\x3e\n\t\t\t\t\x3ca href\x3d"'+t+'" class\x3d"pdd36-recommendation-oos-new__image-link" '+d+"\x3e\n\t\t\t\t";var z=t="",I="",X=!1;fnIsNull(P.topFlags)||fnIsNull(P.topFlags.iconTypeCd)||("N"===P.topFlags.iconTypeCd?(I=Granite.I18n.get("new"),z=
" badge-icon--bg-color-blue",X=!0):"H"===P.topFlags.iconTypeCd?(I=Granite.I18n.get("hot"),z=" badge-icon--bg-color-red",X=!0):"B"===P.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'}N='\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__image"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t'+Z+'\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__name-wrap"\x3e\n\t\t\t\t\t\t\t\t                  \x3ca href\x3d"'+
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+" "+N+" "+G+"\x3e"+L.displayName+'\x3c/a\x3e\n\t\t\t\t\t\t\t\t                \x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__rating-wrap"\x3e\n\t\t\t\t\t\t\t\t                  ';r="";b=L.ratings;fnIsNull(b)&&(b=0,L.ratings=0);G='an-ca\x3d"review" an-ac\x3d"recommended product" an-la\x3d"read review" an-tr\x3d"pdd36_product recommendation-product detail-review-review1" data-modelname\x3d"'+
(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" '+G+'\x3e\n            \t\x3cdiv class\x3d"rating-v2"\x3e\n                    \x3cdiv class\x3d"rating-v2__wrap"\x3e\n                      \x3cspan class\x3d"rating-v2__star"\x3e\n                        \x3csvg class\x3d"rating-v2__star-icon"\x3e\n                        \x3cuse xlink:href\x3d"#star-rating-full-bold" href\x3d"#star-rating-full-bold"\x3e\x3c/use\x3e\n                        \x3c/svg\x3e\n                      \x3c/span\x3e\n                      \x3cdiv class\x3d"rating-v2__text-box"\x3e\n                        \x3cstrong class\x3d"rating-v2__point"\x3e\n                          \x3cspan class\x3d"hidden"\x3eProduct Ratings : \x3c/span\x3e\n                          \x3cspan class\x3d"rating-v2__point-text"\x3e'+
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");
N=N+r+'\n\t\t\t\t\t\t\t\t                \x3c/div\x3e\n\t\t\t\t\t\t\t\t                \x3cdiv class\x3d"pdd36-recommendation-oos-new__price-wrap"\x3e\n\t\t\t\t\t\t\t\t                  ';r=l("#priceCurrency").val();G=l("#priceCurrency").val();b=L.price;M=L.promotionPrice;Z="";b&&("bg"===siteCode&&(L.priceCurrency&&(r=L.priceCurrency),L.promotionPriceCurrency&&(G=L.promotionPriceCurrency)),L=b,Z=currencyComma(b,r),M&&parseFloat(b)>parseFloat(M)&&0<parseFloat(M)&&(Z=currencyComma(M,G),L=M),"bg"===
siteCode&&(G=Z,b=Math.pow(10,2),L=Number(L.toString()),"BGN"===r?(L/=1.95583,r="EUR"):"EUR"===r?(L*=1.95583,r="BGN"):r=l("#priceCurrency").val(),L=Math.round(L*b)/b,L=currencyComma(L,r),Z=G+(" / "+L)));na+=N+('\n\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__price"\x3e\n\t\t\t\x3cp class\x3d"pdd36-recommendation-oos-new__price-current"\x3e\n\t\t\t\t'+Z+"\n\t\t\t\x3c/p\x3e\n        \x3c/div\x3e\n\t\t\t\t\t\t\t\t                \x3c/div\x3e");na='\x3cdiv class\x3d"pdd36-recommendation-oos-new__item swiper-slide" role\x3d"listitem" data-tagging\x3d\''+
da+"'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+na+"\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e";oa+=na}}va=ea.html;ra=oa;oa='\x3cdiv class\x3d"pdd36-recommendation-oos-new__inner"\x3e\x3cdiv class\x3d"pdd36-recommendation-oos-new__content"\x3e';da='\x3cp class\x3d"pdd36-recommendation-oos-new__headline"\x3e'+Granite.I18n.get("Looking for alternatives?")+"\x3c/p\x3e";va.call(ea,oa+da+('\x3cdiv class\x3d"pdd36-recommendation-oos-new__list swiper-container basic-swiper"data-swiper-option\x3d\'{\n\t\t\t\t\t\t\t\t\t            "breakpoints": {\n\t\t\t\t\t\t\t\t\t              "1": {\n\t\t\t\t\t\t\t\t\t                "slidesPerView": "auto",\n\t\t\t\t\t\t\t\t\t                "centeredSlides": false,\n\t\t\t\t\t\t\t\t\t                "freeMode": true\n\t\t\t\t\t\t\t\t\t              },\n\t\t\t\t\t\t\t\t\t              "768": {\n\t\t\t\t\t\t\t\t\t                "slidesPerView": 3,\n\t\t\t\t\t\t\t\t\t                "centeredSlides": false\n\t\t\t\t\t\t\t\t\t              }\n\t\t\t\t\t\t\t\t\t            },\n\t\t\t\t\t\t\t\t\t            "pagination": true,\n\t\t\t\t\t\t\t\t\t            "keepWrapper": true,\n\t\t\t\t\t\t\t\t\t            "offTxtAccesibility": true,\n\t\t\t\t\t\t\t\t\t            "componentEl": ".pdd36-recommendation-oos-new"\n\t\t\t\t\t\t\t\t\t          }\'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd36-recommendation-oos-new__list-inner swiper-wrapper" role\x3d"list"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'+
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(ea){}});y.jumpToEnd()})}}})(window.jQuery);
(function(){function l(){h(u.section).target.forEach(function(v){n.instances.has(v)||new n(v)})}var h=window.sg.common.$q,H=window.sg.common.tab,u={section:".pdd40-rtb-bar"},n=function(v){this.selector={wrap:".tab"};this.el={section:h(v),window:h(window)};this.init();n.instances.set(v,this)};n.prototype.init=function(){this.setElements();H.init(this.el.wrap.target[0])};n.prototype.reInit=function(){this.setElements();H.init(this.el.wrap.target[0])};n.prototype.setElements=function(){this.el.wrap=
this.el.section.find(this.selector.wrap)};n.instances=new WeakMap;window.sg.components.Pdd40RTBBar={init:l,reInit:function(){h(u.section).target.forEach(function(v){n.instances.has(v)?n.instances.get(v).reInit():new n(v)})}};h.ready(l)})();
(function(){var l,h,H,u;function n(){var p=document.querySelector(".siel-trade-in-popup");p&&(l=p,h=p.querySelector(".siel-trade-in-popup__close"),H=p.querySelector(".siel-trade-in-popup__btn-cancel"),u=p.querySelector(".siel-trade-in-popup--start"),w=p.querySelector(".siel-trade-in-popup--end"),e=0,v())}function v(){h.addEventListener("click",function(){W()});H.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 p=window.innerHeight,k=l.querySelector(".siel-trade-in-popup__title").getBoundingClientRect().height,A=l.querySelector(".siel-trade-in-popup__btn-wrap").getBoundingClientRect().height,ca=p-k-A;"desktop"===B.getCurrentDevice()?640>ca?l.querySelector(".scrollbar__wrap").style.height=p-k-A+"px":l.querySelector(".scrollbar__wrap").style.height="640px":l.querySelector(".scrollbar__wrap").style.height=p-k-A+"px";U.resize(l.querySelector(".scrollbar"))}
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(p){p.addEventListener("change",function(){[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".radio-v2"))).forEach(function(k){k.classList.remove("active")});
p.parentElement.classList.add("active")})})}var x=window.sg.common.$q,U=window.sg.common.scrollbar,B=window.sg.common.utils;var w=u=H=h=l=void 0;var e=0;window.sg.components.sielTradeInPopup={init:n,showPopup:function(){l.style.display="block";B.popupControl.open(W);B.hiddenScroll();F()},showStep:function(p){l.querySelectorAll(".siel-trade-in-popup-option")[e].classList.add("show");"last"===p&&(aa(),l.querySelectorAll(".siel-trade-in-popup-option")[e+1].classList.add("show"),l.querySelector(".siel-trade-in-popup-option__headline-btn").addEventListener("click",
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(p){p=l.querySelectorAll(".siel-trade-in-popup-option")[p].offsetTop;U.scrollTo(l.querySelector(".scrollbar"),
0,p,!0)}};x.ready(function(){return n()})})();