/*
 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,d){l.raw=d;return l};$jscomp.arrayIteratorImpl=function(l){var d=0;return function(){return d<l.length?{done:!1,value:l[d++]}:{done:!0}}};$jscomp.arrayIterator=function(l){return{next:$jscomp.arrayIteratorImpl(l)}};
$jscomp.makeIterator=function(l){var d="undefined"!=typeof Symbol&&Symbol.iterator&&l[Symbol.iterator];return d?d.call(l):$jscomp.arrayIterator(l)};$jscomp.arrayFromIterator=function(l){for(var d,K=[];!(d=l.next()).done;)K.push(d.value);return K};$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 d=0;d<l.length;++d){var K=l[d];if(K&&K.Math==Math)return K}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,d,K){if(l==Array.prototype||l==Object.prototype)return l;l[d]=K.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,d){var K=$jscomp.propertyToPolyfillSymbol[d];if(null==K)return l[d];K=l[K];return void 0!==K?K:l[d]};$jscomp.polyfill=function(l,d,K,D){d&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(l,d,K,D):$jscomp.polyfillUnisolated(l,d,K,D))};
$jscomp.polyfillUnisolated=function(l,d,K,D){K=$jscomp.global;l=l.split(".");for(D=0;D<l.length-1;D++){var r=l[D];if(!(r in K))return;K=K[r]}l=l[l.length-1];D=K[l];d=d(D);d!=D&&null!=d&&$jscomp.defineProperty(K,l,{configurable:!0,writable:!0,value:d})};
$jscomp.polyfillIsolated=function(l,d,K,D){var r=l.split(".");l=1===r.length;D=r[0];D=!l&&D in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var B=0;B<r.length-1;B++){var J=r[B];if(!(J in D))return;D=D[J]}r=r[r.length-1];K=$jscomp.IS_SYMBOL_NATIVE&&"es6"===K?D[r]:null;d=d(K);null!=d&&(l?$jscomp.defineProperty($jscomp.polyfills,r,{configurable:!0,writable:!0,value:d}):d!==K&&(void 0===$jscomp.propertyToPolyfillSymbol[r]&&($jscomp.propertyToPolyfillSymbol[r]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(r):
$jscomp.POLYFILL_PREFIX+r),r=$jscomp.propertyToPolyfillSymbol[r],$jscomp.defineProperty(D,r,{configurable:!0,writable:!0,value:d})))};$jscomp.underscoreProtoCanBeSet=function(){var l={a:!0},d={};try{return d.__proto__=l,d.a}catch(K){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(l,d){l.__proto__=d;if(l.__proto__!==d)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,d){this.nextAddress=d;return{value:l}};
$jscomp.generator.Context.prototype.yieldAll=function(l,d){l=$jscomp.makeIterator(l);var K=l.next();$jscomp.generator.ensureIteratorResultIsObject_(K);if(K.done)this.yieldResult=K.value,this.nextAddress=d;else return this.yieldAllIterator_=l,this.yield(K.value,d)};$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,d){this.catchAddress_=l;void 0!=d&&(this.finallyAddress_=d)};$jscomp.generator.Context.prototype.setFinallyBlock=function(l){this.catchAddress_=0;this.finallyAddress_=l||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(l,d){this.nextAddress=l;this.catchAddress_=d||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,d,K){K?this.finallyContexts_[K]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=l||0;this.finallyAddress_=d||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(l,d){d=this.finallyContexts_.splice(d||0)[0];if(d=this.abruptCompletion_=this.abruptCompletion_||d){if(d.isException)return this.jumpToErrorHandler_();void 0!=d.jumpTo&&this.finallyAddress_<d.jumpTo?(this.nextAddress=d.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 d in l)this.properties_.push(d);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 d=this.context_.yieldAllIterator_;if(d)return this.yieldAllStep_("return"in d?d["return"]:function(K){return{value:K,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,d,K){try{var D=l.call(this.context_.yieldAllIterator_,d);$jscomp.generator.ensureIteratorResultIsObject_(D);if(!D.done)return this.context_.stop_(),D;var r=D.value}catch(B){return this.context_.yieldAllIterator_=null,this.context_.throw_(B),this.nextStep_()}this.context_.yieldAllIterator_=null;K.call(this.context_,r);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(d){this.context_.yieldResult=void 0,this.context_.throw_(d)}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(d){return l.next_(d)};this.throw=function(d){return l.throw_(d)};this.return=function(d){return l.return_(d)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(l,d){d=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(d));$jscomp.setPrototypeOf&&l.prototype&&$jscomp.setPrototypeOf(d,l.prototype);return d};
$jscomp.asyncExecutePromiseGenerator=function(l){function d(D){return l.next(D)}function K(D){return l.throw(D)}return new Promise(function(D,r){function B(J){J.done?D(J.value):Promise.resolve(J.value).then(d,K).then(B,r)}B(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(){U.$popup.find(".hubble-pd-popup__layer-inner").target.forEach(function(O){var w=B(O);O=w.find(".hubble-pd-popup__foot");var t=w.find(".hubble-pd-popup__content-wrap");w=w.find(".hubble-pd-popup__content");var C=U.$popup.find(".hubble-pd-popup__wrap").height();w.css({maxHeight:""});C=0<O.target.length?C-((parseFloat(t.css("padding-top"))||0)+(O.offset().height||0)):C-((parseFloat(t.css("padding-top"))||0)+(parseFloat(t.css("padding-bottom"))||0));w.css({maxHeight:C+"px"})})}
function d(O,w){w=void 0===w?null:w;O=B(O);O.show();O.setLayerFocus(".hubble-pd-popup__layer",J.close);O.trigger("openPopup");document.documentElement.classList.add("hive-layer-scroll-lock");B("head").attr("aria-hidden","true");O.find(".hubble-pd-popup__layer").removeAttr("role");O.find(J.close).off("click").on("click",K);U.$popup=O;U.$openBtn=B(w);O.hasClass("is-scroll-active")&&(0<O.find(".hubble-pd-popup__foot").target.length&&O.find(".hubble-pd-popup__content-wrap").css({paddingBottom:"0"}),l(),
B(window).off("resize",l).on("resize",l));window.sg.common.lazyLoad.setLazyLoad()}function K(){var O=U.$popup;O.hide();O.offLayerFocus();document.documentElement.classList.remove("hive-layer-scroll-lock");B("head").removeAttr("aria-hidden");O.find(".hubble-pd-popup__layer").attr("role","dialog");O.find(J.close).off("click");B(window).off("resize",l);U.$openBtn.focus();U.$popup=null;U.$openBtn=null}function D(){U.$btns.off("click").on("click",function(O){d(O.currentTarget.dataset.layerTarget,O.currentTarget)})}
function r(){U.$btns=B(J.section);D()}var B=window.sg.common.$q,J={section:"[data-layer-target]",close:".hubble-pd-popup-closer"},U={$btns:null,$popup:null,$openBtn:null};window.sg.components.hubblePdPopup={init:r,reinit:function(O,w){O=void 0===O?null:O;w=void 0===w?null:w;null===O?r():d(O,w)},openPopup:d,closePopup:K,resizeHeight:l};B.ready(r)})();
(function(){function l(){d(K.section).target.forEach(function(r){D.instances.has(r)||new D(r)})}var d=window.sg.common.$q,K={section:".notification-bar"},D=function(r){var B=this;this.selector={section:K.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:d(window),section:d(r),btn:null,content:null,nomarl:null,
expand:null};this.handler={resize:function(){B.ele.section.css({height:""});B.timer&&clearTimeout(B.timer);setTimeout(function(){B.setHeight()},400)}};this.setProperty();D.instances.set(r,this);this.init()};D.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)};D.prototype.init=function(){this.bindEvents()};D.prototype.reInit=function(){this.setProperty();this.bindEvents()};D.prototype.setHeight=function(){this.ele.section.css({height:this.ele.content.outerHeight()+"px"})};D.prototype.bindEvents=function(){var r=this;this.ele.btn.off("click").on("click",function(){r.ele.section.hasClass("is-expanded")?r.closeBanner():r.openBanner()});this.ele.window.off("resize",this.handler.resize).on("resize",
this.handler.resize);this.setHeight()};D.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()};D.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()};D.instances=
new WeakMap;window.sg.components.notificationBar={init:l,reInit:function(){d(K.section).target.forEach(function(r){D.instances.has(r)?D.instances.get(r).reInit():new D(r)})},closeBanner:function(r){r=void 0===r?!0:r;d(K.section).target.forEach(function(B){D.instances.has(B)&&D.instances.get(B).closeBanner(r)})}};d.ready(l)})();
(function(){var l=window.sg.common.$q,d=window.sg.common.swiperManager,K=null,D=null,r=function(){K.find(".usp-banner__desc").target.forEach(function(O){O=l(O);var w=O.attr("data-an-page-track"),t=O.attr("data-an-headline-text");O.find("a").target.forEach(function(C){C.setAttribute("an-tr","ft17_usp banner-"+w+"-text-link");C.setAttribute("an-ca","content click");C.setAttribute("an-ac","feature");C.setAttribute("an-la","usp banner:"+t)})});K.target.forEach(function(O){var w=l(O);if(w.hasClass("usp-banner--bg-dynamic")){var t=
w.find(".swiper-container");O=function(){t.find(".swiper-slide-active").hasClass("dynamic--bg-light-gray")?(w.addClass("dynamic--bg-light-gray"),w.removeClass("dynamic--bg-blue")):t.find(".swiper-slide-active").hasClass("dynamic--bg-blue")&&(w.addClass("dynamic--bg-blue"),w.removeClass("dynamic--bg-light-gray"))};d.getSwiper(t.target[0]).on("transitionEnd",O);O()}})},B=function(){K.target.forEach(function(O){function w(k){var F=l(f.slides[f.activeIndex]),ea=F.find(".usp-banner__desc a"),e=F.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(n){return l(n).attr("data-desktop-aem-asset-id")||
l(n).attr("data-aem-asset-id")}).filter(function(n){return null!==n&&""!==n}).join(",");F=F.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(n){return l(n).attr("data-mobile-aem-asset-id")||
l(n).attr("data-aem-asset-id")}).filter(function(n){return null!==n&&""!==n}).join(",");switch(k){case "desktop":q.attr("an-as",e);ea.attr("an-as",e);break;case "mobile":q.attr("an-as",F),ea.attr("an-as",F)}}var t=window.sg.common.utils.getCurrentDevice(),C=l(window);O=l(O);var v=O.find(".swiper-container"),f=d.getSwiper(v.target[0]),q=O.find(".usp-banner__indicator button");w(t);f.on("slideChange",function(){w(t)});f.on("init",function(){w(t)});C.on("resize",function(){var k=window.sg.common.utils.getCurrentDevice();
t!==k&&(t=k,w(t))})})},J=function(){D.target.forEach(function(O){O=l(O);1===O.find(".usp-banner__icon").target.length&&("ltr"===window.sg.common.utils.getDirection()?O.find(".usp-banner__desc").css({"text-align":"left"}):"rtl"===window.sg.common.utils.getDirection()&&O.find(".usp-banner__desc").css({"text-align":"right"}))})},U=function(){window.sg.common.image.initAll();K=l(".usp-banner");D=l(".usp-banner__contents");K.target.length&&D.target.length&&(r(),B(),"mobile"===window.sg.common.utils.getCurrentDevice()&&
J())};l.ready(U);window.sg.components.uspBanner={init:U,reInit:function(){l(".usp-banner").find(".basic-swiper").target.forEach(function(O){d.getSwiper(O)?d.slideReInit(O):d.slideInit(O)});r();B()}}})();
(function(){function l(){d(K.section).target.forEach(function(r){D.instances.has(r)||new D(r)})}var d=window.sg.common.$q,K={section:".pd-banner"},D=function(r){this.selector={section:K.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:d(window),section:d(r),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();D.instances.set(r,this);this.init()};D.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")};D.prototype.init=function(){this.bindEvents();this.setCounter();
this.setStyle(this.ele.section.hasClass("pd-banner--open"))};D.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=D.dateFormat(this.ele.content.attr("data-start-time"));this.timeEnd=D.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)};D.prototype.viewTime=function(){var r=D.counterData(this.isTimeStart?this.timeStart:this.timeEnd),B=this.isTimeStart?this.timeText.start:this.timeText.end,J=this.isIndia?":":this.isRu?" \u0434. ":" | ";if(0>=r.distance)if(!0===this.isTimeStart)this.isTimeStart=!1,r=D.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(""+B),this.setOfferStates();0<r.day?""===this.timeText.day?(this.ele.timerCloseTxt.text(B+" "+r.day+J+r.hour+":"+r.minute+":"+r.second),"cn"==$("#siteCode").val()&&this.ele.timerCloseTxt.text(""+B+r.day+J+r.hour+":"+r.minute+":"+r.second)):this.ele.timerCloseTxt.text(B+
" "+r.day+" "+this.timeText.day+J+r.hour+":"+r.minute+":"+r.second):this.ele.timerCloseTxt.text(B+" "+r.hour+":"+r.minute+":"+r.second);this.isIndia?(B=this.ele.timerOpenCount.target[0].parentNode,0===r.day&&"none"!==B.style.display?B.style.display="none":0<r.day&&""!==B.style.display&&(B.style.display=""),this.ele.timerOpenCount.target.forEach(function(U,O){var w=null;switch(O){case 0:w=D.numFormat(r.day);break;case 1:w=r.hour;break;case 2:w=r.minute;break;case 3:w=r.second}U.textContent=w;O=U.nextElementSibling;
O.textContent=1>=parseInt(U.textContent)?O.dataset.textSingular:O.dataset.textPlural})):(0<r.day?"cn"==$("#siteCode").val()?(this.ele.section.find(".offer-timer__day").text(r.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(r.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(""+B),this.ele.timerOpenCount.text(r.hour+":"+r.minute+":"+r.second))};D.counterData=function(r){r=new Date(r)-new Date;return{day:Math.floor(r/864E5),hour:D.numFormat(Math.floor(r%864E5/36E5)),minute:D.numFormat(Math.floor(r%36E5/6E4)),second:D.numFormat(Math.floor(r%6E4/1E3)),distance:r}};D.numFormat=function(r){r=Number(r).toString();10>Number(r)&&1===r.length&&(r="0"+r);return r};D.dateFormat=function(r){return null===r||""===r?0:r.substring(0,4)+"-"+r.substring(4,6)+
"-"+r.substring(6,8)+"T"+r.substring(8,10)+":"+r.substring(10)};D.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"))))};D.prototype.hideBanner=
function(){this.ele.section.hide();clearInterval(this.timer);this.isTimeStart=this.timer=null;this.ele.window.trigger("resize")};D.prototype.reInit=function(){this.setProperty();this.bindEvents();clearInterval(this.timer);this.setCounter()};D.prototype.bindEvents=function(){var r=this;this.ele.btn.off("click").on("click",function(){r.ele.section.hasClass("pd-banner--open")?r.closeBanner():r.openBanner()})};D.prototype.setStyle=function(r){var B=this.usePreOfferBanner&&this.isTimeStart;if(r){r=B?this.colorStyle.preFold.textColor:
this.colorStyle.fold.textColor;var J=B?this.colorStyle.preUnfold.textColor:this.colorStyle.unfold.textColor;this.ele.section.css({background:B?this.colorStyle.preUnfold.bgColor:this.colorStyle.unfold.bgColor});this.ele.section.removeClass("pd-banner--text-"+r);this.ele.section.addClass("pd-banner--text-"+J)}else r=B?this.colorStyle.preFold.textColor:this.colorStyle.fold.textColor,J=B?this.colorStyle.preUnfold.textColor:this.colorStyle.unfold.textColor,this.ele.section.css({background:B?this.colorStyle.preFold.bgColor:
this.colorStyle.fold.bgColor}),this.ele.section.removeClass("pd-banner--text-"+J),"black"!==this.colorStyle.fold.textColor&&this.ele.section.addClass("pd-banner--text-"+r)};D.prototype.openBanner=function(){var r=this;if(!(0>this.timerDayInt)){this.ele.content.stop();this.ele.content.attr("style","");var B=this.ele.content.height();this.ele.section.addClass("pd-banner--open");var J=this.ele.content.height();this.ele.content.target[0].style.height=B+"px";this.ele.content.animate({height:J+"px"},300,
function(){r.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)}};D.prototype.closeBanner=function(r){var B=this;r=void 0===r?!0:r;if(!(0>this.timerDayInt)){this.ele.content.stop();if(r){this.ele.content.attr("style","");r=this.ele.content.height();this.ele.section.removeClass("pd-banner--open");var J=this.ele.content.height();this.ele.section.addClass("pd-banner--open");
this.ele.content.target[0].style.height=r+"px";this.ele.content.animate({height:J+"px"},300,function(){B.ele.section.removeClass("pd-banner--open");B.ele.content.attr("style","");B.ele.contentTitle.target[0].style.opacity=0;setTimeout(function(){B.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)}};D.instances=new WeakMap;window.sg.components.pdBanner={init:l,reInit:function(){d(K.section).target.forEach(function(r){D.instances.has(r)?D.instances.get(r).reInit():new D(r)})},closeBanner:function(r){r=void 0===r?!0:r;d(K.section).target.forEach(function(B){D.instances.has(B)&&D.instances.get(B).closeBanner(r)})}};d.ready(l)})();
!function(l){var d=Date.now||function(){return+new Date},K={},D=1;l.core?core.effect||(core.effect={}):l.core={effect:{}};core.effect.Animate={requestAnimationFrame:function(){var r=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||l.oRequestAnimationFrame,B=!!r;if(r&&!/requestAnimationFrame\(\)\s*\{\s*\[native code\]\s*\}/i.test(r.toString())&&(B=!1),B)return function(C,v){r(C,v)};var J={},U=0,O=1,w=null,t=+new Date;return function(C,v){v=O++;return J[v]=C,U++,null===
w&&(w=setInterval(function(){var f=+new Date,q=J;J={};U=0;for(var k in q)q.hasOwnProperty(k)&&(q[k](f),t=f);2500<f-t&&(clearInterval(w),w=null)},1E3/60)),v}}(),stop:function(r){var B=null!=K[r];return B&&(K[r]=null),B},isRunning:function(r){return null!=K[r]},start:function(r,B,J,U,O,w){var t=d(),C=t,v=0,f=0,q=D++;if(w||(w=document.body),0==q%20){var k={},F;for(F in K)k[F]=!0;K=k}var ea=function(e){e=!0!==e;var n=d();if(!K[q]||B&&!B(q))return K[q]=null,void(J&&J(60-f/((n-t)/1E3),q,!1));if(e)for(var Q=
Math.round((n-C)/(1E3/60))-1,Y=0;Y<Math.min(Q,4);Y++)ea(!0),f++;U&&1<(v=(n-t)/U)&&(v=1);Q=O?O(v):v;!1!==r(Q,n,e)&&1!==v||!e?e&&(C=n,core.effect.Animate.requestAnimationFrame(ea,w)):(K[q]=null,J&&J(60-f/((n-t)/1E3),q,1===v||null==U))};return K[q]=!0,core.effect.Animate.requestAnimationFrame(ea,w),q}}}(this);var Scroller;
!function(){Scroller=function(r,B){this.__callback=r;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 J in B)this.options[J]=B[J]};var l=function(r){return Math.pow(r-1,3)+1},d=function(r){return 1>(r/=.5)?.5*Math.pow(r,3):.5*(Math.pow(r-2,3)+2)},K={__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(r,B,J,U){r&&(this.__clientWidth=r);B&&(this.__clientHeight=B);J&&(this.__contentWidth=J);U&&(this.__contentHeight=U);this.__computeScrollMax();this.scrollTo(this.__scrollLeft,this.__scrollTop,!0)},setPosition:function(r,B){this.__clientLeft=r||0;this.__clientTop=B||0},setSnapSize:function(r,B){this.__snapWidth=r;this.__snapHeight=B},activatePullToRefresh:function(r,B,J,U){this.__refreshHeight=
r;this.__refreshActivate=B;this.__refreshDeactivate=J;this.__refreshStart=U},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(r,B,J,U){if(!this.options.zooming)throw Error("Zooming is not enabled!");
this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1);var O=this.__zoomLevel;null==J&&(J=this.__clientWidth/2);null==U&&(U=this.__clientHeight/2);r=Math.max(Math.min(r,this.options.maxZoom),this.options.minZoom);this.__computeScrollMax(r);J=(J+this.__scrollLeft)*r/O-J;U=(U+this.__scrollTop)*r/O-U;J>this.__maxScrollLeft?J=this.__maxScrollLeft:0>J&&(J=0);U>this.__maxScrollTop?U=this.__maxScrollTop:0>U&&(U=0);this.__publish(J,U,r,B)},zoomBy:function(r,B,J,
U){this.zoomTo(this.__zoomLevel*r,B,J,U)},scrollTo:function(r,B,J,U){if(this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1),null!=U&&U!==this.__zoomLevel){if(!this.options.zooming)throw Error("Zooming is not enabled!");r*=U;B*=U;this.__computeScrollMax(U)}else U=this.__zoomLevel;this.options.scrollingX?this.options.paging?r=Math.round(r/this.__clientWidth)*this.__clientWidth:this.options.snapping&&(r=Math.round(r/this.__snapWidth)*this.__snapWidth):r=
this.__scrollLeft;this.options.scrollingY?this.options.paging?B=Math.round(B/this.__clientHeight)*this.__clientHeight:this.options.snapping&&(B=Math.round(B/this.__snapHeight)*this.__snapHeight):B=this.__scrollTop;r=Math.max(Math.min(this.__maxScrollLeft,r),0);B=Math.max(Math.min(this.__maxScrollTop,B),0);r===this.__scrollLeft&&B===this.__scrollTop&&(J=!1);this.__publish(r,B,U,J)},scrollBy:function(r,B,J){this.scrollTo((this.__isAnimating?this.__scheduledLeft:this.__scrollLeft)+(r||0),(this.__isAnimating?
this.__scheduledTop:this.__scrollTop)+(B||0),J)},doMouseZoom:function(r,B,J,U){return this.zoomTo(this.__zoomLevel*(0<r?.97:1.03),!1,J-this.__clientLeft,U-this.__clientTop)},doTouchStart:function(r,B){if(null==r.length)throw Error("Invalid touch list: "+r);if(B instanceof Date&&(B=B.valueOf()),"number"!=typeof B)throw Error("Invalid timestamp value: "+B);this.__isDecelerating&&(core.effect.Animate.stop(this.__isDecelerating),this.__isDecelerating=!1);this.__isAnimating&&(core.effect.Animate.stop(this.__isAnimating),
this.__isAnimating=!1);var J,U,O=1===r.length;O?(J=r[0].pageX,U=r[0].pageY):(J=Math.abs(r[0].pageX+r[1].pageX)/2,U=Math.abs(r[0].pageY+r[1].pageY)/2);this.__initialTouchLeft=J;this.__initialTouchTop=U;this.__zoomLevelStart=this.__zoomLevel;this.__lastTouchLeft=J;this.__lastTouchTop=U;this.__lastTouchMove=B;this.__lastScale=1;this.__enableScrollX=!O&&this.options.scrollingX;this.__enableScrollY=!O&&this.options.scrollingY;this.__isTracking=!0;this.__isDragging=!O;this.__isSingleTouch=O;this.__positions=
[]},doTouchMove:function(r,B,J){if(null==r.length)throw Error("Invalid touch list: "+r);if(B instanceof Date&&(B=B.valueOf()),"number"!=typeof B)throw Error("Invalid timestamp value: "+B);if(this.__isTracking){var U,O;2===r.length?(U=Math.abs(r[0].pageX+r[1].pageX)/2,O=Math.abs(r[0].pageY+r[1].pageY)/2):(U=r[0].pageX,O=r[0].pageY);r=this.__positions;if(this.__isDragging){var w=U-this.__lastTouchLeft,t=O-this.__lastTouchTop,C=this.__scrollLeft,v=this.__scrollTop,f=this.__zoomLevel;if(null!=J&&this.options.zooming){var q=
f;if(f=f/this.__lastScale*J,f=Math.max(Math.min(f,this.options.maxZoom),this.options.minZoom),q!==f){var k=U-this.__clientLeft,F=O-this.__clientTop;C=(k+C)*f/q-k;v=(F+v)*f/q-F;this.__computeScrollMax(f)}}this.__enableScrollX&&(C-=w,q=this.__maxScrollLeft,(C>q||0>C)&&(this.options.bouncing?C+=w/2:C=C>q?q:0));this.__enableScrollY&&(v-=t,w=this.__maxScrollTop,(v>w||0>v)&&(this.options.bouncing?(v+=t/2,this.__enableScrollX||null==this.__refreshHeight||(!this.__refreshActive&&v<=-this.__refreshHeight?
(this.__refreshActive=!0,this.__refreshActivate&&this.__refreshActivate()):this.__refreshActive&&v>-this.__refreshHeight&&(this.__refreshActive=!1,this.__refreshDeactivate&&this.__refreshDeactivate()))):v=v>w?w:0));60<r.length&&r.splice(0,30);r.push(C,v,B);this.__publish(C,v,f)}else t=this.options.locking?3:0,C=Math.abs(U-this.__initialTouchLeft),v=Math.abs(O-this.__initialTouchTop),this.__enableScrollX=this.options.scrollingX&&C>=t,this.__enableScrollY=this.options.scrollingY&&v>=t,r.push(this.__scrollLeft,
this.__scrollTop,B),this.__isDragging=(this.__enableScrollX||this.__enableScrollY)&&(5<=C||5<=v);this.__lastTouchLeft=U;this.__lastTouchTop=O;this.__lastTouchMove=B;this.__lastScale=J}},doTouchEnd:function(r){if(r instanceof Date&&(r=r.valueOf()),"number"!=typeof r)throw Error("Invalid timestamp value: "+r);if(this.__isTracking){if(this.__isTracking=!1,this.__isDragging&&(this.__isDragging=!1,this.__isSingleTouch&&this.options.animating&&100>=r-this.__lastTouchMove)){for(var B=this.__positions,J=
B.length-1,U=J,O=J;0<O&&B[O]>this.__lastTouchMove-100;O-=3)U=O;U!==J&&(J=B[J]-B[U],O=this.__scrollTop-B[U-1],this.__decelerationVelocityX=(this.__scrollLeft-B[U-2])/J*(1E3/60),this.__decelerationVelocityY=O/J*(1E3/60),B=this.options.paging||this.options.snapping?4:1,(Math.abs(this.__decelerationVelocityX)>B||Math.abs(this.__decelerationVelocityY)>B)&&(this.__refreshActive||this.__startDeceleration(r)))}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(r,B,J,U){var O=this,w=O.__isAnimating;if(w&&(core.effect.Animate.stop(w),O.__isAnimating=!1),U&&O.options.animating){O.__scheduledLeft=r;O.__scheduledTop=B;O.__scheduledZoom=J;var t=O.__scrollLeft,
C=O.__scrollTop,v=O.__zoomLevel,f=r-t,q=B-C,k=J-v;O.__isAnimating=core.effect.Animate.start(function(F,ea,e){e&&(O.__scrollLeft=t+f*F,O.__scrollTop=C+q*F,O.__zoomLevel=v+k*F,O.__callback&&O.__callback(O.__scrollLeft,O.__scrollTop,O.__zoomLevel))},function(F){return O.__isAnimating===F},function(F,ea,e){ea===O.__isAnimating&&(O.__isAnimating=!1);O.options.zooming&&O.__computeScrollMax()},O.options.animationDuration,w?l:d)}else O.__scheduledLeft=O.__scrollLeft=r,O.__scheduledTop=O.__scrollTop=B,O.__scheduledZoom=
O.__zoomLevel=J,O.__callback&&O.__callback(r,B,J),O.options.zooming&&O.__computeScrollMax()},__computeScrollMax:function(r){null==r&&(r=this.__zoomLevel);this.__maxScrollLeft=Math.max(this.__contentWidth*r-this.__clientWidth,0);this.__maxScrollTop=Math.max(this.__contentHeight*r-this.__clientHeight,0)},__startDeceleration:function(r){var B=this;if(B.options.paging){r=Math.max(Math.min(B.__scrollLeft,B.__maxScrollLeft),0);var J=Math.max(Math.min(B.__scrollTop,B.__maxScrollTop),0),U=B.__clientWidth,
O=B.__clientHeight;B.__minDecelerationScrollLeft=Math.floor(r/U)*U;B.__minDecelerationScrollTop=Math.floor(J/O)*O;B.__maxDecelerationScrollLeft=Math.ceil(r/U)*U;B.__maxDecelerationScrollTop=Math.ceil(J/O)*O}else B.__minDecelerationScrollLeft=0,B.__minDecelerationScrollTop=0,B.__maxDecelerationScrollLeft=B.__maxScrollLeft,B.__maxDecelerationScrollTop=B.__maxScrollTop;var w=B.options.snapping?4:.1;B.__isDecelerating=core.effect.Animate.start(function(t,C,v){B.__stepThroughDeceleration(v)},function(){return Math.abs(B.__decelerationVelocityX)>=
w||Math.abs(B.__decelerationVelocityY)>=w},function(t,C,v){B.__isDecelerating=!1;B.scrollTo(B.__scrollLeft,B.__scrollTop,B.options.snapping)})},__stepThroughDeceleration:function(r){var B=this.__scrollLeft+this.__decelerationVelocityX,J=this.__scrollTop+this.__decelerationVelocityY;if(!this.options.bouncing){var U=Math.max(Math.min(this.__maxDecelerationScrollLeft,B),this.__minDecelerationScrollLeft);U!==B&&(B=U,this.__decelerationVelocityX=0);U=Math.max(Math.min(this.__maxDecelerationScrollTop,J),
this.__minDecelerationScrollTop);U!==J&&(J=U,this.__decelerationVelocityY=0)}(r?this.__publish(B,J,this.__zoomLevel):(this.__scrollLeft=B,this.__scrollTop=J),this.options.paging)||(this.__decelerationVelocityX*=.95,this.__decelerationVelocityY*=.95);this.options.bouncing&&(U=r=0,B<this.__minDecelerationScrollLeft?r=this.__minDecelerationScrollLeft-B:B>this.__maxDecelerationScrollLeft&&(r=this.__maxDecelerationScrollLeft-B),J<this.__minDecelerationScrollTop?U=this.__minDecelerationScrollTop-J:J>this.__maxDecelerationScrollTop&&
(U=this.__maxDecelerationScrollTop-J),0!==r&&(0>=r*this.__decelerationVelocityX?this.__decelerationVelocityX+=.03*r:this.__decelerationVelocityX=.08*r),0!==U&&(0>=U*this.__decelerationVelocityY?this.__decelerationVelocityY+=.03*U:this.__decelerationVelocityY=.08*U))}},D;for(D in K)Scroller.prototype[D]=K[D]}();
(function(l){"function"==typeof define&&define.amd?define(["shoestring"],l):"object"==typeof module&&module.exports?module.exports=l():l()})(function(){function l(f,q){var k,F=typeof f,ea=[];if(!f)return new U(ea);if(f.call)return l.ready(f);if(f.constructor===U&&!q)return f;if("string"===F&&0===f.indexOf("\x3c")){var e=J.createElement("div");return e.innerHTML=f,l(e).children().each(function(){e.removeChild(this)})}return"string"===F?q?l(q).find(f):(k=J.querySelectorAll(f),new U(k,f)):"[object Array]"===
Object.prototype.toString.call(F)||B.NodeList&&f instanceof B.NodeList?new U(f,f):f.constructor===Array?new U(f,f):new U([f],f)}function d(f,q){var k=!1;return f.each(function(){for(var F=0;F<q.length;)this===q[F]&&(k=!0),F++}),k}function K(f,q){f.shoestringData||(f.shoestringData={});f.shoestringData.events||(f.shoestringData.events={});f.shoestringData.loop||(f.shoestringData.loop={});f.shoestringData.events[q]||(f.shoestringData.events[q]=[])}function D(f,q,k){var F={};F.isCustomEvent=k.isCustomEvent;
F.callback=k.callfunc;F.originalCallback=k.originalCallback;F.namespace=k.namespace;f.shoestringData.events[q].push(F);k.customEventLoop&&(f.shoestringData.loop[q]=k.customEventLoop)}function r(f,q,k){var F=this.shoestringData.events[f];if(F&&F.length){var ea,e=[];var n=0;for(ea=F.length;n<ea;n++)q&&q!==F[n].namespace||void 0!==k&&k!==F[n].originalCallback||(this.removeEventListener(f,F[n].callback,!1),e.push(n));n=0;for(ea=e.length;n<ea;n++)this.shoestringData.events[f].splice(n,1)}}var B="undefined"!=
typeof window?window:this,J=B.document,U=function(f,q){this.length=0;this.selector=q;l.merge(this,f)};U.prototype.reverse=[].reverse;l.fn=U.prototype;l.Shoestring=U;l.extend=function(f,q){for(var k in q)q.hasOwnProperty(k)&&(f[k]=q[k]);return f};l.merge=function(f,q){var k;var F=+q.length;var ea=0;for(k=f.length;ea<F;ea++)f[k++]=q[ea];return f.length=k,f};B.shoestring=l;l.ajax=function(f,q){var k,F,ea="",e=new XMLHttpRequest;if(k=l.extend({},l.ajax.settings),q&&l.extend(k,q),f||(f=k.url),e&&f){if(k.data)for(F in k.data)k.data.hasOwnProperty(F)&&
(""!==ea&&(ea+="\x26"),ea+=encodeURIComponent(F)+"\x3d"+encodeURIComponent(k.data[F]));if("GET"===k.method&&ea&&(f+="?"+ea),e.open(k.method,f,k.async),e.setRequestHeader)for(F in e.setRequestHeader("X-Requested-With","XMLHttpRequest"),"POST"===k.method&&ea&&e.setRequestHeader("Content-type","application/x-www-form-urlencoded"),k.headers)k.headers.hasOwnProperty(F)&&e.setRequestHeader(F,k.headers[F]);return e.onreadystatechange=function(){if(4===e.readyState){var n=(e.responseText||"").replace(/^\s+|\s+$/g,
"");if(0===e.status.toString().indexOf("0"))return k.cancel(n,e.status,e);if(e.status.toString().match(/^(4|5)/)&&RegExp.$1)return k.error(n,e.status,e);if(k.success)return k.success(n,e.status,e)}},4===e.readyState?e:("POST"===k.method&&ea?e.send(ea):e.send(),e)}};l.ajax.settings={success:function(){},error:function(){},cancel:function(){},method:"GET",async:!0,data:null,headers:{}};l.get=function(f,q){return l.ajax(f,{success:q})};l.fn.load=function(f,q){var k=this,F=arguments;return l.ajax(f,{success:function(ea){k.each(function(){l(this).html(ea)});
q&&q.apply(k,F)}}),this};l.post=function(f,q,k){return l.ajax(f,{data:q,method:"POST",success:k})};l.fn.each=function(f){return l.each(this,f)};l.each=function(f,q){for(var k=0,F=f.length;k<F&&!1!==q.call(f[k],k,f[k]);k++);return f};l.inArray=function(f,q){for(var k=-1,F=0,ea=q.length;F<ea;F++)q.hasOwnProperty(F)&&q[F]===f&&(k=F);return k};l.ready=function(f){return O&&f?f.call(J):f?w.push(f):t(),[J]};l.fn.ready=function(f){return l.ready(f),this};var O=!1,w=[],t=function(){if(!O){for(;w.length;)w.shift().call(J);
O=!0}};(J.attachEvent?"complete"===J.readyState:"loading"!==J.readyState)?t():(J.addEventListener("DOMContentLoaded",t,!1),J.addEventListener("readystatechange",t,!1),B.addEventListener("load",t,!1));l.fn.is=function(f){var q,k,F=!1,ea=this;return"string"!=typeof f?(k=f.length&&f[0]?f:[f],d(this,k)):(q=this.parent(),q.length||(q=l(J)),q.each(function(e,n){e=n.querySelectorAll(f);F=d(ea,e)}),F)};l.fn.data=function(f,q){return void 0===f?this[0]?this[0].shoestringData||{}:void 0:void 0!==q?this.each(function(){this.shoestringData||
(this.shoestringData={});this.shoestringData[f]=q}):this[0]&&this[0].shoestringData?this[0].shoestringData[f]:void 0};l.fn.removeData=function(f){return this.each(function(){void 0!==f&&this.shoestringData?(this.shoestringData[f]=void 0,delete this.shoestringData[f]):this[0].shoestringData={}})};void 0===B.$&&(B.$=l);l.fn.addClass=function(f){var q=f.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k=0,F=q.length;k<F;k++)void 0===this.className||""!==this.className&&this.className.match(new RegExp("(^|\\s)"+
q[k]+"($|\\s)"))||(this.className+=" "+q[k])})};l.fn.add=function(f){var q=[];return this.each(function(){q.push(this)}),l(f).each(function(){q.push(this)}),l(q)};l.fn.after=function(f){return"string"!=typeof f&&void 0===f.nodeType||(f=l(f)),1<f.length&&(f=f.reverse()),this.each(function(q){for(var k=0,F=f.length;k<F;k++){var ea=0<q?f[k].cloneNode(!0):f[k];this.parentNode.insertBefore(ea,this.nextSibling)}})};l.fn.append=function(f){return"string"!=typeof f&&void 0===f.nodeType||(f=l(f)),this.each(function(q){for(var k=
0,F=f.length;k<F;k++)this.appendChild(0<q?f[k].cloneNode(!0):f[k])})};l.fn.appendTo=function(f){return this.each(function(){l(f).append(this)})};l.fn.attr=function(f,q){var k="string"==typeof f;return void 0===q&&k?this[0]?this[0].getAttribute(f):void 0:this.each(function(){if(k)this.setAttribute(f,q);else for(var F in f)f.hasOwnProperty(F)&&this.setAttribute(F,f[F])})};l.fn.before=function(f){return"string"!=typeof f&&void 0===f.nodeType||(f=l(f)),this.each(function(q){for(var k=0,F=f.length;k<F;k++)this.parentNode.insertBefore(0<
q?f[k].cloneNode(!0):f[k],this)})};l.fn.children=function(){var f,q,k=[];return this.each(function(){f=this.children;for(q=-1;q++<f.length-1;)-1===l.inArray(f[q],k)&&k.push(f[q])}),l(k)};l.fn.clone=function(){var f=[];return this.each(function(){f.push(this.cloneNode(!0))}),l(f)};l.fn.closest=function(f){var q=[];return f?(this.each(function(){var k;if(l(k=this).is(f))return void q.push(this);for(;k.parentElement;){if(l(k.parentElement).is(f)){q.push(k.parentElement);break}k=k.parentElement}}),l(q)):
l(q)};l.cssExceptions={float:["cssFloat"]};(function(){function f(ea){return ea.replace(/\-([A-Za-z])/g,function(e,n){return n.toUpperCase()})}function q(ea,e){return B.getComputedStyle(ea,null).getPropertyValue(e)}var k=l.cssExceptions,F=" -webkit- -ms- -moz- -o- -khtml-".split(" ");l._getStyle=function(ea,e){var n,Q,Y;if(k[e]){var N=0;for(Y=k[e].length;N<Y;N++)if(Q=q(ea,k[e][N]))return Q}N=0;for(Y=F.length;N<Y;N++)if(n=f(F[N]+e),Q=q(ea,n),n!==e&&(Q=Q||q(ea,e)),F[N]&&(Q=Q||q(ea,F[N]+e)),Q)return Q}})();
(function(){function f(k){return k.replace(/\-([A-Za-z])/g,function(F,ea){return ea.toUpperCase()})}var q=l.cssExceptions;l._setStyle=function(k,F,ea){var e=f(F);if(k.style[F]=ea,e!==F&&(k.style[e]=ea),q[F]){e=0;for(var n=q[F].length;e<n;e++)k.style[q[F][e]]=ea}}})();l.fn.css=function(f,q){if(this[0])return"object"==typeof f?this.each(function(){for(var k in f)f.hasOwnProperty(k)&&l._setStyle(this,k,f[k])}):void 0!==q?this.each(function(){l._setStyle(this,f,q)}):l._getStyle(this[0],f)};l.fn.eq=function(f){return l(this[f]?
this[f]:[])};l.fn.filter=function(f){var q=[];return this.each(function(k){"function"==typeof f?!1!==f.call(this,k)&&q.push(this):9===this.nodeType?this===f&&q.push(this):(this.parentNode?k=l(f,this.parentNode):(k=l(J.createDocumentFragment()),k[0].appendChild(this),k=l(f,k)),-1<l.inArray(this,k)&&q.push(this))}),l(q)};l.fn.find=function(f){var q,k=[];return this.each(function(){q=this.querySelectorAll(f);for(var F=0,ea=q.length;F<ea;F++)k=k.concat(q[F])}),l(k)};l.fn.first=function(){return this.eq(0)};
l.fn.get=function(f){if(void 0===f){f=[];for(var q=0;q<this.length;q++)f.push(this[q]);return f}return this[f]};l._dimension=function(f,q,k){var F;return void 0===k?(F=q.replace(/^[a-z]/,function(ea){return ea.toUpperCase()}),f[0]["offset"+F]):(k="string"==typeof k?k:k+"px",f.each(function(){this.style[q]=k}))};l.fn.height=function(f){return l._dimension(this,"height",f)};var C=function(f){if("string"==typeof f||"number"==typeof f)return this.each(function(){this.innerHTML=""+f});var q="";if(void 0!==
f.length)for(var k=0,F=f.length;k<F;k++)q+=f[k].outerHTML;else q=f.outerHTML;return this.each(function(){this.innerHTML=q})};l.fn.html=function(f){if(void 0!==f)return C.call(this,f);var q="";return this.each(function(){q+=this.innerHTML}),q};(function(){function f(q,k){var F,ea,e;for(F=ea=0;F<q.length;F++){if(e=q.item?q.item(F):q[F],k(e))return ea;1===e.nodeType&&ea++}return-1}l.fn.index=function(q){var k,F;return k=this,void 0===q?(F=(this[0]&&this[0].parentNode||J.documentElement).childNodes,f(F,
function(ea){return k[0]===ea})):f(k,function(ea){return ea===l(q,ea.parentNode)[0]})}})();l.fn.insertAfter=function(f){return this.each(function(){l(f).after(this)})};l.fn.insertBefore=function(f){return this.each(function(){l(f).before(this)})};l.fn.last=function(){return this.eq(this.length-1)};l.fn.next=function(){var f=[];return this.each(function(){var q,k;var F=l(this.parentNode)[0].childNodes;for(var ea=0;ea<F.length;ea++){if(q=F.item(ea),k&&1===q.nodeType){f.push(q);break}q===this&&(k=!0)}}),
l(f)};l.fn.not=function(f){var q=[];return this.each(function(){var k=l(f,this.parentNode);-1===l.inArray(this,k)&&q.push(this)}),l(q)};l.fn.offset=function(){return{top:this[0].offsetTop,left:this[0].offsetLeft}};l.fn.parent=function(){var f,q=[];return this.each(function(){(f=this===J.documentElement?J:this.parentNode)&&11!==f.nodeType&&q.push(f)}),l(q)};l.fn.parents=function(f){var q=[];return this.each(function(){for(var k,F=this;F.parentElement&&!k;)F=F.parentElement,f?F===l(f)[0]&&(k=!0,-1===
l.inArray(F,q)&&q.push(F)):-1===l.inArray(F,q)&&q.push(F)}),l(q)};l.fn.prepend=function(f){return"string"!=typeof f&&void 0===f.nodeType||(f=l(f)),this.each(function(q){for(var k=0,F=f.length;k<F;k++){var ea=0<q?f[k].cloneNode(!0):f[k];this.firstChild?this.insertBefore(ea,this.firstChild):this.appendChild(ea)}})};l.fn.prependTo=function(f){return this.each(function(){l(f).prepend(this)})};l.fn.prev=function(){var f=[];return this.each(function(){var q,k;var F=l(this.parentNode)[0].childNodes;for(var ea=
F.length-1;0<=ea;ea--){if(q=F.item(ea),k&&1===q.nodeType){f.push(q);break}q===this&&(k=!0)}}),l(f)};l.fn.prevAll=function(){var f=[];return this.each(function(){for(var q=l(this).prev();q.length;)f.push(q[0]),q=q.prev()}),l(f)};l.propFix={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",tabindex:"tabIndex"};l.fn.prop=function(f,q){if(this[0])return f=l.propFix[f]||f,void 0!==q?this.each(function(){this[f]=q}):this[0][f]};l.fn.removeAttr=function(f){return this.each(function(){this.removeAttribute(f)})};
l.fn.removeClass=function(f){var q=f.replace(/^\s+|\s+$/g,"").split(" ");return this.each(function(){for(var k,F,ea=0,e=q.length;ea<e;ea++)void 0!==this.className&&(F=new RegExp("(^|\\s)"+q[ea]+"($|\\s)","gmi"),k=this.className.replace(F," "),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(f){var q=l.propFix[f]||f;return this.each(function(){this[q]=void 0;delete this[q]})};
l.fn.replaceWith=function(f){"string"==typeof f&&(f=l(f));var q=[];return 1<f.length&&(f=f.reverse()),this.each(function(k){var F=this.cloneNode(!0);if(q.push(F),this.parentNode)if(1===f.length)F=0<k?f[0].cloneNode(!0):f[0],this.parentNode.replaceChild(F,this);else{for(var ea=0,e=f.length;ea<e;ea++)F=0<k?f[ea].cloneNode(!0):f[ea],this.parentNode.insertBefore(F,this.nextSibling);this.parentNode.removeChild(this)}}),l(q)};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 f={};return l("input, select",this).each(function(){var q=this.type,k=this.name,F=this.value;l.inputTypeTest.test(q)||("checkbox"===q||"radio"===q)&&this.checked?f[k]=F:"SELECT"===this.nodeName&&(f[k]=this.options[this.selectedIndex].nodeValue)}),f};l.fn.siblings=function(){if(!this.length)return l([]);var f=[],q=this[0].parentNode.firstChild;do 1===q.nodeType&&q!==this[0]&&f.push(q),q=q.nextSibling;while(q);return l(f)};
var v=function(f){var q,k="",F=0;if(q=f.nodeType)if(1===q||9===q||11===q){if("string"==typeof f.textContent)return f.textContent;for(f=f.firstChild;f;f=f.nextSibling)k+=v(f)}else{if(3===q||4===q)return f.nodeValue}else for(;q=f[F++];)k+=v(q);return k};return l.fn.text=function(){return v(this)},l.fn.val=function(f){var q;return void 0!==f?this.each(function(){if("SELECT"===this.tagName){var k,F,ea=this.options,e=[],n=ea.length;for(e[0]=f;n--;){var Q=ea[n];(Q.selected=0<=l.inArray(Q.value,e))&&(k=
!0,F=n)}this.selectedIndex=k?F:-1}else this.value=f}):(q=this[0],"SELECT"===q.tagName?0>q.selectedIndex?"":q.options[q.selectedIndex].value:q.value)},l.fn.width=function(f){return l._dimension(this,"width",f)},l.fn.wrapInner=function(f){return this.each(function(){var q=this.innerHTML;this.innerHTML="";l(this).append(l(f).html(q))})},l.fn.bind=function(f,q,k){function F(e,n,Q){var Y;if(!e._namespace||e._namespace===n){e.data=q;e.namespace=e._namespace;var N=function(){return!0};e.isDefaultPrevented=
function(){return!1};var y=e.preventDefault;return e.target=Q||e.target||e.srcElement,e.preventDefault=function(){return y?function(){e.isDefaultPrevented=N;y.call(e)}:function(){e.isDefaultPrevented=N;e.returnValue=!1}}(),e.stopPropagation=e.stopPropagation||function(){e.cancelBubble=!0},Y=k.apply(this,[e].concat(e._args)),!1===Y&&(e.preventDefault(),e.stopPropagation()),Y}}"function"==typeof q&&(k=q,q=null);var ea=f.split(" ");return this.each(function(){for(var e,n=this,Q=0,Y=ea.length;Q<Y;Q++){e=
ea[Q].split(".");var N=e[0],y=0<e.length?e[1]:null;e=function(R){return n.ssEventTrigger&&(R._namespace=n.ssEventTrigger._namespace,R._args=n.ssEventTrigger._args,n.ssEventTrigger=null),F.call(n,R,y)};K(this,N);this.addEventListener(N,e,!1);D(this,N,{callfunc:e,isCustomEvent:!1,customEventLoop:null,originalCallback:k,namespace:y})}})},l.fn.on=l.fn.bind,l.fn.unbind=function(f,q){var k=f?f.split(" "):[];return this.each(function(){if(this.shoestringData&&this.shoestringData.events)if(k.length)for(var F,
ea,e=0,n=k.length;e<n;e++)if(F=k[e].split("."),ea=F[0],F=0<F.length?F[1]:null,ea)r.call(this,ea,F,q);else{ea=void 0;var Q=q;for(ea in this.shoestringData.events)r.call(this,ea,F,Q)}else for(e in this.shoestringData.events)r.call(this,e,void 0,void 0)})},l.fn.off=l.fn.unbind,l.fn.one=function(f,q){var k=f.split(" ");return this.each(function(){for(var F,ea={},e=l(this),n=0,Q=k.length;n<Q;n++)F=k[n],ea[F]=function(Y){var N=l(this),y;for(y in ea)N.unbind(y,ea[y]);return q.apply(this,[Y].concat(Y._args))},
e.bind(F,ea[F])})},l.fn.triggerHandler=function(f,q){var k,F=f.split(" ")[0],ea=this[0];if(J.createEvent&&ea.shoestringData&&ea.shoestringData.events&&ea.shoestringData.events[F]){ea=ea.shoestringData.events[F];for(var e in ea)ea.hasOwnProperty(e)&&(f=J.createEvent("Event"),f.initEvent(F,!0,!0),f._args=q,q.unshift(f),k=ea[e].originalCallback.apply(f.target,q))}return k},l.fn.trigger=function(f,q){var k=f.split(" ");return this.each(function(){for(var F,ea,e,n=0,Q=k.length;n<Q;n++){if(F=k[n].split("."),
ea=F[0],e=0<F.length?F[1]:null,"click"===ea&&"INPUT"===this.tagName&&"checkbox"===this.type&&this.click)return this.click(),!1;if(J.createEvent){var Y=J.createEvent("Event");Y.initEvent(ea,!0,!0);Y._args=q;Y._namespace=e;this.dispatchEvent(Y)}}})},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,d){d(l);var K=d(document.documentElement);var D=l.componentNamespace=l.componentNamespace||"FG";l[D]=l[D]||{};Function.prototype.bind=Function.prototype.bind||function(B){var J=this;return function(){J.apply(B,arguments)}};var r=l[D].Tau=function(B,J){this.element=B;this.options=J||{};this.$element=d(B);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;B=parseInt(this.$initial.attr("data-reduced-step-size"),10)||4;this.stepSize=l.requestAnimationFrame?1:B;this.autoRotateStartDelay=(this.options.autoplay||{}).delay||parseInt(this.$initial.attr("data-auto-rotate-delay"),10)||r.autoRotateStartDelay;this.mouseMoveBinding=this.rotateEvent.bind(this);this.touchMoveBinding=this.rotateEvent.bind(this);this.path=new r.Path;this.$initial.first().addClass("focused");this.$element.addClass("tau-enhanced");this.$render=d('\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=d("\x3ccanvas/\x3e").prependTo(this.element)[0],this.canvas.getContext&&(this.canvasCtx=this.canvas.getContext("2d"),this.$element.addClass("tau-canvas"),d(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()};r.autoRotateTraversalTime=4500;r.autoRotateStartDelay=100;r.verticalScrollRatio=4;r.maxVelocity=60;r.prototype.createControls=function(){this.$controls=d("\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(B){d(B.target).is("a")&&B.preventDefault()});this.$element.append(this.$controls)};r.prototype.controlAnchorMarkup=function(B){var J=this.options.controls.text[B];return"\x3ca href\x3d'#' data-tau-controls\x3d'"+
B+"' title\x3d'"+J+"'\x3e"+J+"\x3c/a\x3e"};r.prototype.onControlDown=function(B){switch(d(B.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)}};r.prototype.onControlUp=function(B){switch(d(B.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()}};r.prototype.change=function(B){this.goto(this.options.reverse?this.index-B:this.index+B)};r.prototype.goto=function(B){var J,U,O=this.$images.length;return B%=O,U=(O+B)%O,J=this.$images.eq(U),J[0].tauImageLoaded?(this.$current?this.$current.removeClass("focused"):this.$images.removeClass("focused"),this.$current=J,this.index=U,this.canvasCtx?this.renderCanvas():
(this.$current.addClass("focused"),!0)):(this.showLoading(),!1)};r.prototype.renderCanvas=function(){var B=this.$current[0],J=B.width,U=B.height,O=this.element.clientWidth,w=O/J*U;return!!(J&&U&&B.complete)&&((this.canvas.width!==O||this.canvas.height!==w||O&&w)&&(this.canvas.width=O,this.canvas.height=w),this.canvasCtx.drawImage(B,0,0,O,w),!0)};r.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 B=this.options.template||this.$initial.attr("data-src-template");for(var J=[],U=this.stepSize+1;U<=this.frames;U+=this.stepSize){var O="\x3cimg src\x3d"+B.replace("$FRAME",U)+"\x3e\x3c/img\x3e";O=d(O);J.push(O)}d.each(J,function(w,t){t=d(t);t.bind("load error",function(C){this.imageLoaded(w,C.target,C)}.bind(this));this.$element.append(t);this.$render.append(t.html())}.bind(this));this.$current=this.$images=this.$element.children().filter("img");this.goto(0)}else this.$images=this.$element.children().filter("img"),
this.$images.each(function(w,t){0<d(t).height()?this.imageLoaded(w,t):d(t).bind("load error",function(C){this.imageLoaded(w,C.target,C)}.bind(this))}.bind(this))};r.prototype.imageLoaded=function(B,J,U){B=!1;this.markImageLoaded(J);this.$element.find("img")[0]!=J||U&&"error"===U.type||this.options.autoplay&&this.options.autoplay.enabled||(this.goto(0),this.$element.trigger("tau.init"),B=!0);++this.loadedCount>=this.frames-1&&(this.hideLoading(),B||(this.$element.trigger("tau.init"),this.initialized=
!0))};r.prototype.markImageLoaded=function(B){B.tauImageLoaded=!0};r.prototype.bind=function(){this.$element.bind("mousedown touchstart",this.track.bind(this))};r.prototype.autoRotate=function(B){this.autoInterval||(this.$element.addClass("spinning"),this.change(B?-1:1),this.autoInterval=setInterval(function(){this.change(B?-1:1)}.bind(this),this.autoRotateDelay()*this.stepSize),this.$element.trigger("tau.auto-rotate-start"))};r.prototype.autoRotateDelay=function(){return(this.options.interval||r.autoRotateTraversalTime)/
this.frames};r.prototype.stopAutoRotate=function(){clearInterval(this.autoInterval);clearInterval(this.autostartTimeout);this.$element.removeClass("spinning");this.autoInterval=void 0;this.$element.trigger("tau.auto-rotate-stop")};r.prototype.track=function(B){d(B.target).closest(".tau-controls").length||("mousedown"===B.type&&B.preventDefault(),"touchstart"===B.type?this.$element.trigger("tau.touch-tracking-start"):this.$element.trigger("tau.mouse-tracking-start"),this.tracking)||(K.one("mouseup",
this.release.bind(this)),K.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),B=this.getPoint(B),this.downX=B.x,this.downY=B.y,this.downIndex=this.index,K.bind("mousemove",this.mouseMoveBinding),K.bind("touchmove",this.touchMoveBinding))};r.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())};r.prototype.decelVal=function(){return this.decelTimeStep()/8};r.prototype.clearSlowInterval=function(){clearInterval(this.slowInterval);this.velocity=0;this.slowInterval=void 0};r.prototype.decel=function(){var B,J;this.path.isSufficient()&&(B=this.path.velocity(this.decelTimeStep()),J=0<B?1:0>
B?-1:0,Math.abs(B)>r.maxVelocity&&(B=J*r.maxVelocity),this.velocity=B,this.slowInterval=setInterval(this.slow.bind(this),this.decelTimeStep()))};r.prototype.decelTimeStep=function(){return this.autoRotateDelay()/2};r.prototype.release=function(B){d(B.target).closest(".tau-controls").length||this.tracking&&("touchend"===B.type?this.$element.trigger("tau.touch-tracking-stop"):this.$element.trigger("tau.mouse-tracking-stop"),this.decel(),this.cursorRelease(),K.unbind("mousemove",this.mouseMoveBinding),
K.unbind("touchmove",this.touchMoveBinding),this.tracking=!1)};r.prototype.cursorGrab=function(){K.addClass("grabbing")};r.prototype.cursorRelease=function(){K.removeClass("grabbing")};r.prototype.showLoading=function(){this.$loading.attr("style","display: block")};r.prototype.hideLoading=function(){this.$loading.attr("style","display: none")};r.prototype.getPoint=function(B){var J=B.touches||B.originalEvent&&B.originalEvent.touches;return J?{x:J[0].pageX,y:J[0].pageY}:{x:B.pageX||B.clientX,y:B.pageY||
B.clientY}};r.prototype.rotateEvent=function(B){this.rotate(this.getPoint(B))&&B.preventDefault()};r.prototype.rotate=function(B){var J,U;if(J=B.x-this.downX,U=B.y-this.downY,Math.abs(U)/Math.abs(J)>=r.verticalScrollRatio)return!1;if(this.path.record(B),Math.abs(J)>=this.rotateThreshold){this.stopAutoRotate();var O;return O=this.options.reverse?this.downIndex+Math.round(J/this.rotateThreshold):this.downIndex-Math.round(J/this.rotateThreshold),this.goto(O),!0}}})(this,jQuery);
(function(l,d){d=l.componentNamespace=l.componentNamespace||"FG";l[d]=l[d]||{};Date.now=Date.now||function(){return(new Date).getTime()};l=l[d].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(K){this.prevPrevTime=this.prevTime;this.prevPrevPoint=this.prevPoint;
this.prevTime=Date.now();this.prevPoint=K};l.prototype.velocity=function(K){var D,r;return D=this.distance(),r=this.duration(),D/(r/K)};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,d){function K(J){return String(J).replace(/[&<>"'`=\/]/g,function(U){return B[U]})}l.Akamai=l.Akamai||{};var D=l.Akamai.Util={};D.preflight=function(J,U,O,w){if(w=w||J.constructor.name,J._$el=d(U),!J._$el.length)throw Error(w+" component requires element");return J._$el.data(w)?J._$el.data(w):(J._$el.data(w,J),J._$el.attr(J.constructor._dataAttr,!0),J._options=D.options(J.constructor.defaultOptions||{},O||{},J._$el,w),J._originalOptions=D.extend(!0,{},J._options),D.mapEvents(J),!1)};D.component=
function(J,U,O){O||(O=U,U=!1);var w=function(t,C){var v=D.preflight(this,t,C,J);if(v)return this._trigger("init"),v;O.apply(this,arguments);U||this._trigger("init")};return w.name=J,w._dataAttr="data-akamai-"+J.toLowerCase(),w.createMany=D.createMany(w),w.prototype._trigger=D.trigger(J),w};D.mapEvents=function(J){var U=J.constructor._componentEventMapping||{},O;for(O in U)if(U.hasOwnProperty(O)){var w=U[O].to||U[O],t=U[O].selector?J._$el.find(U[O].selector):void 0;D.mapEvent(J,O,w,t)}};D.mapEvent=
function(J,U,O,w){(w||J._$el).bind(U,function(){J._trigger(O)}.bind(J))};D.createMany=function(J,U){return U=U||"["+J._dataAttr+"]",function(O,w){var t=[];return d(O).find(U).each(function(C,v){t.push(new J(v,w))}),t}};D.propRequired=function(J,U,O){return function(){var w=arguments;if(!this[J])throw Error(U);return O.apply(this,w)}};D.trigger=function(J){return J=J.toLowerCase(),function(U){this._$el.trigger("akamai-"+J+"-"+U)}};D.camelToKabob=function(J){return J.replace(/([A-Z]+)/g,function(U){return"-"+
U.toLowerCase()})};D.options=function(J,U,O,w){var t={},C=D.extend(!0,{},J);O&&w&&(t=D.getDataAttrOptions(O,J,"data-akamai-"+w.toLowerCase()));U=D.extend(!0,D.extend(!0,C,t),U);return O&&w&&D.setDataAttrOptions(O,J,U,w),U};D.getDataAttrOptions=function(J,U,O){var w={},t;for(t in U)if(U.hasOwnProperty(t)){var C=D.camelToKabob(t);C=O+"-"+C;!/object/.test(typeof U[t])||U[t]instanceof Array?(C=J.attr(C),C=D.coerceAttrVal(C),void 0!==C&&null!==C&&(w[t]=C)):(C=D.getDataAttrOptions(J,U[t],C),w[t]=C)}return w};
D.setDataAttrOptions=function(J,U,O,w){D.setDataAttrOptionsPrefix(J,U,O,"data-akamai-"+w.toLowerCase())};D.setDataAttrOptionsPrefix=function(J,U,O,w){U=U||{};for(var t in O)if(O.hasOwnProperty(t)&&"breakpoints"!==t){var C=D.camelToKabob(t);C=w+"-"+C;/object/.test(typeof O[t])?D.setDataAttrOptionsPrefix(J,U[t],O[t],C):(J.attr(C)||void 0!==U[t])&&J.attr(C,O[t])}};D.coerceAttrVal=function(J){return"true"===J||"false"!==J&&(/^[0-9]+$/.test(J)?parseInt(J,10):/^[0-9]+.[0-9]+$/.test(J)?parseFloat(J,10):
J)};D.extend=function(J,U,O){var w,t;if(null!=O)for(w in O){var C=U[w];var v=O[w];U!==v&&(J&&v&&D.isPlainObject(v)?(t=C&&D.isPlainObject(C)?C:{},U[w]=D.extend(J,t,v)):void 0!==v&&(U[w]=v))}return U};D.isPlainObject=function(J){return!(!J||"[object Object]"!==Object.prototype.toString.call(J))};var r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;D.trim=function(J){return null==J?"":(J+"").replace(r,"")};D.map=function(J,U){return D.reduce(J,function(O,w,t){return O.push(U(w,t)),O},[])};D.reduce=function(J,
U,O){for(var w=0;w<J.length;w++)O=U(O,J[w],w);return O};D.log=function(J,U){console&&console[U||"log"](J)};D.mapJSONVals=function(J,U,O){var w={};if(J.map)return J.map(function(C){return D.mapJSONVals(C,U)});if(0<=["string","number","boolean"].indexOf(typeof J))return U(J,O);for(var t in J)J.hasOwnProperty(t)&&(w[t]=D.mapJSONVals(J[t],U,t));return w};D.escapeJSONVals=function(J){return D.mapJSONVals(J,function(U){return"string"==typeof U?K(U):U})};var B={"\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,d){l.Akamai=l.Akamai||{};l.Akamai.Advanceable={extension:{next:function(K){this.goto(this.getIndex()+1,function(){K&&K();this._trigger("next")}.bind(this))},previous:function(K){this.goto(this.getIndex()-1,function(){K&&K();this._trigger("previous")}.bind(this))}},extend:function(K){if(!K.prototype.goto||!K.prototype.getIndex)throw Error("Advanceable mixin requires `goto` and `getIndex` methods");d.extend(K.prototype,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){l.Akamai=l.Akamai||{};l.Akamai.Sourceable={extension:{_srcArray:function(K,D,r){var B=D.policy||D.thumbnail&&D.thumbnail.policy,J=D.widthParam;return D.widths.map(function(U){var O=K+"?"+J+"\x3d"+U;return B&&(O+="\x26impolicy\x3d"+B),r&&(O+=" "+U+"w"),O})},_srcset:function(K,D){return this._srcArray(K,D,!0).join(", ")},_fallbackSrc:function(K,D){return this._srcArray(K,D)[0]},_largestSrc:function(K,D){return this._srcArray(K,D).pop()}},extendStatic:function(K){Akamai.Util.extend(!1,
K,this.extension)}}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){var K=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(r){l.setTimeout(r,1E3/60)}}();l.toss=function(r,B){toss.tossing(r,!1);var J,U,O=0,w=r.scrollLeft,t=r.scrollTop,C={top:"+0",left:"+0",duration:200,easing:toss.easing,finished:function(){}};if(B)for(var v in C)void 0!==B[v]&&(C[v]=B[v]);"string"==typeof C.left?(C.left=parseFloat(C.left),J=C.left+w):(J=C.left,C.left-=w);"string"==typeof C.top?(C.top=parseFloat(C.top),
U=C.top+t):(U=C.top,C.top-=t);toss.tossing(r,!0);var f=(new Date).getTime(),q=f+C.duration,k=function(){var F=(new Date).getTime();if(toss.tossing(r)){if(F<q)return O=(F-f)/C.duration*C.duration,r.scrollLeft=C.easing(O,w,C.left,C.duration),r.scrollTop=C.easing(O,t,C.top,C.duration),K(k);r.scrollLeft=J;r.scrollTop=U;C.finished&&C.finished();toss.tossing(r,!1)}else C.finished&&C.finished()};return K(k),{top:U,left:J,duration:C.duration,easing:C.easing}};var D={};toss.tossing=function(r,B){return void 0!==
B&&(D[r]=B),D[r]};toss.easing=function(r,B,J,U){return J*((r=r/U-1)*r*r+1)+B};toss.toss=toss})(this);
(function(l,d){d.fn.snapper=function(K){function D(C,v){var f=d(C).find(".snapper_item"),q=d(C).width(),k=[];return f.each(function(F){this.offsetLeft>=v-5&&this.offsetLeft<v+q-5&&k.push(this)}),d(k)}function r(C){return C.width()+parseFloat(C.css("margin-left"))+parseFloat(C.css("margin-right"))}function B(C,v,f){f=f?f+"-":"";v=D(C,v);d(C).trigger("snapper."+f+"snap",{activeSlides:v})}function J(C,v,f,q){B(C,v);var k=function(){C.scrollLeft=v;d(C).closest(".snapper").removeClass("snapper-looping");
d(C).trigger("snapper.after-goto",{activeSlides:D(C,v)});q&&q();B(C,v,"after")};!l.toss&&l.overthrow&&(l.toss=l.overthrow.toss);void 0===l.toss||f?(C.scrollLeft=v,k()):l.toss(C,{left:v,finished:k})}var U,O,w=arguments,t=l.CSS&&l.CSS.supports&&(l.CSS.supports("scroll-snap-type","mandatory")||l.CSS.supports("-webkit-scroll-snap-type","mandatory")||l.CSS.supports("-ms-scroll-snap-type","mandatory"));return U=this.each(function(){function C(){var u=N.attr("data-autoplay")||N.attr("data-snapper-autoplay"),
A=!1;if(u){try{u=parseInt(u,10)}catch(T){A=!0}if(!u||A)throw Error("Snapper: `data-autoplay` must have an natural number value.");}return u}function v(){var u=V.attr("style");V.attr("style","");var A=ka.eq(0).attr("style");ka.eq(0).attr("style","");var T=R.width(),fa=ka.eq(0).width(),X=l.getComputedStyle(ka[0],null),G=parseFloat(X.getPropertyValue("margin-left")),z=parseFloat(X.getPropertyValue("margin-right"));X=fa+G+z;ka.eq(0).attr("style",A);V.attr("style",u);u=fa/T*100;A=z/T*100;G=G/T*100;fa=
u+G+A;u/=fa;A/=fa;G/=fa;V.css("width",va/Math.round(T/X)*100+"%");ka.css("width",100/va*u+"%");ka.css("margin-left",100/va*G+"%");ka.css("margin-right",100/va*A+"%")}function f(){if(h)return void(x=!0);var u=R[0].scrollLeft,A=V.width(),T=ka[1]?ka[1].offsetLeft:r(ka.eq(0));T*=Math.round(u/T);A-=R.width();T>A&&(T=A);u!==T&&(t?(B(R[0],T),B(R[0],T,"after")):J(R[0],T));x=!1}function q(){var u=R[0].scrollLeft,A=ka.length,T=V.width();void 0===E&&(E=Math.round(u/T*A));b&&clearTimeout(b);b=setTimeout(function(){v();
J(R[0],ka[E].offsetLeft,!0);E=b=void 0},50)}function k(u){var A=R[0].scrollLeft,T=V.width(),fa=r(R);u?A>=T-fa-5?(N.addClass("snapper-looping"),J(R[0],0),u=void 0):u=F():0===A?(N.addClass("snapper-looping"),J(R[0],V.width()-R.width()),u=void 0):u=ea();return u}function F(){J(R[0],R[0].scrollLeft+V.width()/va,!1,function(){R.trigger("snapper.after-next")})}function ea(){J(R[0],R[0].scrollLeft-V.width()/va,!1,function(){R.trigger("snapper.after-prev")})}function e(u){var A=(new Date).getTime();if(!(!u&&
P&&200>A-P)){P=A;var T=R[0].scrollLeft,fa=r(V);u=r(Aa);A=Aa;A=A.height()+parseFloat(A.css("margin-bottom"))+parseFloat(A.css("margin-top"));T=Math.round(T/fa*va)||0;fa=Aa.find("a").removeClass(sa).eq(T).addClass(sa);T=ra[0];u=fa[0].offsetLeft-u/2;A=fa[0].offsetTop-A/2;void 0!==l.toss?l.toss(T,{left:u,top:A}):(T.scrollLeft=u,T.scrollTop=A)}}function n(u){u&&(Q=setTimeout(function(){var A=C();A&&(k(!0),n(A))},u))}if(void 0===O){var Q,Y=this,N=d(Y),y=N.is("[data-snapper-nextprev]"),R=d(".snapper_pane",
Y),V=R.find(".snapper_items"),ka=V.children();ka.addClass("snapper_item");var va=ka.length,Aa=d(".snapper_nav",Y),sa="snapper_nav_item-selected",ha="false"!==N.attr("data-snapper-deeplinking");if("string"!=typeof K){var ra=Aa.find(".snapper_nav_inner");if(ra.length||(ra=d('\x3cdiv class\x3d"snapper_nav_inner"\x3e\x3c/div\x3e').append(Aa.children()).appendTo(Aa)),R.attr("tabindex","0"),v(),d(Y).addClass("snapper-enhanced"),y){y=d('\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 da=d(".snapper_nextprev_contain",Y);da.length||(da=d(Y));y.appendTo(da)}d("a",this).bind("click",function(u){clearTimeout(Q);var A=d(this).attr("href");if(d(this).is(".snapper_nextprev_next"))return u.preventDefault(),k(!0);if(d(this).is(".snapper_nextprev_prev"))return u.preventDefault(),k(!1);0===A.indexOf("#")&&1<A.length&&(u.preventDefault(),u=d(A,Y),u.length&&(J(R[0],u[0].offsetLeft),ha&&"replaceState"in l.history&&l.history.replaceState({},document.title,A)))});d(this).bind("keydown",function(u){37!==
u.keyCode&&38!==u.keyCode||(clearTimeout(Q),u.preventDefault(),u.stopImmediatePropagation(),k(!1));39!==u.keyCode&&40!==u.keyCode||(clearTimeout(Q),u.preventDefault(),u.stopImmediatePropagation(),k(!0))});var E,b,x=!1;if(d(l).bind("resize",q),Aa.length){var P;e();R.bind("scroll",e)}var H,ca=0;R.bind("scroll",function(u){ca=(new Date).getTime();H=!0});setInterval(function(){H&&ca<=(new Date).getTime()-150&&(f(),e&&e(!0),H=!1)},150);var h=!1;R.bind("touchstart",function(){clearTimeout(Q);h=!0});R.bind("touchend",
function(){h=!1;x&&!H&&(f(),H=!1)});n(C())}else{var I=Array.prototype.slice.call(w,1);da=V.width()/va;switch(K){case "goto":y=I[0]%va;offset=da*y;J(R[0],offset,!1,function(){f();"function"==typeof I[1]&&I[1]()});break;case "getIndex":O=Math.floor((R[0].scrollLeft+1)/da);break;case "updateWidths":v()}}}}),void 0!==O?O:U}})(this,jQuery);
(function(l){var d=function(){var K=l.jQuery;K.fn.enlarge=function(D){var r=arguments,B=K(this).data("options")||{button:!0,hoverZoomWithoutClick:!0,delay:300,flyout:{width:200,height:200},placement:"inline",magnification:3};"string"!=typeof D&&(B=K.extend(B,D),K(this).data("options",B));var J,U=this.each(function(){function O(){"inline"===B.placement?(ka=V,P=x,Q.data("zoomParent",P),b=E):(ka=fa.find("img")[0],P=b=fa,Q.data("zoomParent",P))}function w(){fa.css({width:B.flyout.width+"px",height:B.flyout.height+
"px",top:"",left:"","margin-left":"","margin-top":""});var X=B.placement.match(/left|right/);X&&fa.css(X[0],-B.flyout.width+"px");B.placement.match(/loupe/)&&fa.css({"margin-left":-B.flyout.width/2+"px","margin-top":-B.flyout.height/2+"px"});fa[0].className=fa[0].className.replace(/enlarge_flyout\-[^$\s]+/," ");fa.addClass("enlarge_flyout-"+B.placement)}function t(){B.disabled?Q.addClass("enlarge_disabled"):Q.removeClass("enlarge_disabled")}function C(){H=!Q.data("zoomed");Q.data("zoomed",H)}function v(X){if(X=
X||function(){},H){if(B.disabled)return X(),!1;var G=new Image;G.className="enlarge_img-loading";G.onload=function(){ka.sizes=G.sizes;y&&Aa||(ka.src=ha);K(G).remove();X()};G.sizes=x[0].offsetWidth*B.magnification+"px";y&&Aa?Aa&&(G.srcset=Aa):G.src=ha;K(G).insertBefore(ka)}else ka.sizes=sa,y||(ka.src=va),X()}function f(){if(Q.data("lockedZoom"))x.add(P).removeClass(ca),Q.data("lockedZoom",lockedZoom=!1),b.removeAttr("tabindex");else{if(B.disabled)return!1;x.add(P).addClass(ca);Q.data("lockedZoom",
lockedZoom=!0);b.attr("tabindex","0");b[0].focus()}}function q(){if(Q.data("zoomed")){if(B.disabled)return!1;"inline"===B.placement&&E.add(x).css({width:x[0].offsetWidth+"px",height:parseFloat(getComputedStyle(x[0]).height)+"px"});P.addClass(ra);K(ka).css("width",x[0].offsetWidth*B.magnification+"px");K(Y).trigger("enlarge.after-zoom-in")}else P.removeClass(ra),"inline"===B.placement&&E.add(x).css({width:"",height:""}),K(ka).css("width",""),K(Y).trigger("enlarge.after-zoom-out")}function k(){function X(){B.placement=
G;O();K(Y).unbind("enlarge.after-zoom-out",X)}var G=B.placement;"inline"!==G&&(K(Y).bind("enlarge.after-zoom-out",X),B.placement="inline",O())}function F(){if(B.disabled&&!Q.data("zoomed"))return!1;C();v(function(){f();q();var X=b.width(),G=b.height(),z=ka.offsetHeight;b[0].scrollLeft=ka.offsetWidth/2-X/2;b[0].scrollTop=z/2-G/2})}function ea(X){"touchstart"===X.type&&(A=!0);A&&"mouseenter"===X.type||"mouseenter"===X.type&&!A&&!T||Q.data("lockedZoom")||u||(u=!0,E.addClass(da),I=setTimeout(function(){E.removeClass(da);
C();v(function(){q();h=!0;n(X)})},B.delay))}function e(X){E.removeClass(da);clearTimeout(I);h=!1;!1!==B.hoverZoomWithoutClick||A||(T=!1);A&&"mouseleave"===X.type&&(A=!1)}function n(X){if(h&&(!A||"mousemove"!==X.type)){var G=X.touches?X.touches[0]:X;X.preventDefault();var z=G.clientX-X.target.getBoundingClientRect().left,M=G.clientY-X.target.getBoundingClientRect().top;if(B.placement.match(/loupe/)){var S=(X.touches?-B.flyout.width/1.3:-B.flyout.width/2)+"px",W=(X.touches?-B.flyout.height/1.3:-B.flyout.height/
2)+"px";requestAnimationFrame(function(){fa.css({top:M+"px",left:z+"px","margin-left":S,"margin-top":W})})}G=X.target.offsetHeight;var ba=ka.offsetHeight,ia=b[0].offsetHeight;b[0].scrollLeft=z/X.target.offsetWidth*(ka.offsetWidth-b[0].offsetWidth);b[0].scrollTop=M/G*(ba-ia)}}var Q=K(this),Y=this,N=l.document.createElement("img"),y="srcset"in N&&"sizes"in N,R=K(this).find("a");if(!R.length)throw Error("enlarge: requires an anchor element with `href` for the enlarged image source");var V=Q.find("img")[0],
ka=V,va=ka.src,Aa=K(ka).attr("srcset"),sa=K(ka).attr("sizes"),ha=R[0].href,ra=(R[0].innerText,"enlarge-zoomed"),da="enlarge-delay",E=K(ka).closest(".enlarge_contain"),b=E,x=K(ka).closest(".enlarge_pane")||Q,P=K(this).data("zoomParent")||x;K(this).data("zoomParent",P);var H=Q.data("zoomed")||!1;Q.data("zoomed",H);Q.data("lockedZoom",Q.data("lockedZoom")||!1);var ca="enlarge-locked";if(!E.length)throw Error("enlarge: requires an element above the image marked with the class `enlarge_contain`");if("string"!=
typeof D){t();Q.data("updateOptions",function(X){B=K.extend(B,X);K(this).data("options",B);O();w();T=B.hoverZoomWithoutClick;B.image&&B.image.sizes&&(sa=B.image.sizes,v());t();B.disabled&&Q.data("zoomed")&&F()});var h,I,u,A,T=B.hoverZoomWithoutClick,fa=K('\x3cdiv class\x3d"enlarge_flyout"\x3e\x3c/div\x3e').append(E.clone());fa.insertAfter(x);E.append('\x3ci class\x3d"enlarge_loader"\x3e\x3ci\x3e\x3c/i\x3e\x3c/i\x3e');O();w();R.bind("keydown",function(X){13!==X.keyCode&&32!==X.keyCode||k();32===X.keyCode&&
(X.preventDefault(),K(this).trigger("click"))}).bind("click",function(X){X.preventDefault();F()});K(l).bind("resize",function(X){Q.data("lockedZoom")&&F()});K(l.document).bind("mouseup",function(X){Q.data("lockedZoom")&&!K(X.target).closest(x).length&&F()});K(V).bind("mouseenter touchstart",ea).bind("mousemove touchmove",n).bind("mouseleave touchend",function(X){u=!1;H&&!Q.data("lockedZoom")&&(C(),v(function(){q()}));e(X)}).bind("click",function(X){X.preventDefault();A&&"inline"===B.placement&&F();
!1!==B.hoverZoomWithoutClick||A||(T=!T,T?K(this).trigger("mouseenter"):K(this).trigger("mouseleave"))});K(this).bind("keydown keyup",function(X){37===X.keyCode||38===X.keyCode||39===X.keyCode||40===X.keyCode?(X.stopImmediatePropagation(),Q.data("lockedZoom")||X.preventDefault()):"keyup"===X.type&&K(this).data("lockedZoom")&&27===X.keyCode&&(F(),R[0].focus(),X.stopImmediatePropagation())});x.bind("scroll",function(){Q.data("zoomed")&&(C(),v(function(){Q.data("lockedZoom")&&f();q()}))})}else switch(N=
Array.prototype.slice.call(r,1),D){case "in":Q.data("zoomed")||F();break;case "out":Q.data("zoomed")&&F();break;case "isZoomed":J=Q.data("zoomed");break;case "updateOptions":Q.data("updateOptions")(N[0])}});return void 0!==J?J:U}};"undefined"!=typeof module?module.exports=d:d()})("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,d){var K=Akamai.Util.component("Spin360",function(D,r){this._comp=new Akamai.Tau(D,this._options)});Akamai.Sourceable.extendStatic(K);K._componentEventMapping={"tau.auto-rotate-start":"play","tau.auto-rotate-stop":"pause"};K.prototype._updateOptions=function(D){D||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,D);Akamai.Util.setDataAttrOptions(this._$el,K.defaultOptions,this._options,"Spin360")};K._renderImg=function(D,r){return'\n\t\t\t\x3cimg src\x3d"'+
K._fallbackSrc(D,r.images)+'"\n\t\t\t\tsrcset\x3d"'+K._srcset(D,r.images)+'"\n\t\t\t\tsizes\x3d"'+r.images.sizes+'" /\x3e\n\t\t'};K.render=function(D,r){var B=Akamai.Util.options(K.defaultOptions,r);return Akamai.Util.trim('\n\t\t\t\x3cdiv class\x3d"tau" data-akamai-spin360 title\x3d"'+D.alt+'"\x3e\n\t\t\t\t'+Akamai.Util.map(D.urls,function(J){return K._renderImg(J,B)}).join("\n")+"\n\t\t\t\x3c/div\x3e\n\t\t")};K.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};K.prototype.goto=function(D,r){this._comp.goto(D);this._trigger("goto");r&&r()};K.prototype.getIndex=function(){return this._comp.index};Akamai.Advanceable.extend(K);K.prototype.next;K.prototype.previous;K.prototype.play=function(){this._comp.autoRotate()};K.prototype.pause=function(){this._comp.stopAutoRotate()};K.prototype.getElement=function(){return this._$el[0]};
K.States={Playing:0,Paused:1};K.prototype.getState=function(){return this._comp.autoInterval?K.States.Playing:K.States.Paused};l.Akamai=l.Akamai||{};l.Akamai.Spin360=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(){function l(K,D){throw Error("Not allowed to instantiate MagnifierImpl");}l.prototype.updateOptions=function(K){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(K,D,r,B,J){throw Error("magnifier render not implemented");};var d="undefined"==typeof exports?window:exports;d.Akamai=d.Akamai||{};d.Akamai.MagnifierImpl=l})();
(function(){function l(K,D){this._$el=$(K);this._$el.enlarge(D)}l.prototype=Object.create(Akamai.MagnifierImpl.prototype);l.prototype.constructor=l;l.prototype.updateOptions=function(K){this._$el.enlarge("updateOptions",K)};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(K,D,r,B,J){return"\n\t\t\t\x3cdiv "+D+'\x3e\n\t\t\t\t\x3cdiv class\x3d"enlarge_contain"\x3e\n\t\t\t\t\t\x3cimg src\x3d"'+r+'"\n\t\t\t\t\t\tsrcset\x3d"'+J+'"\n\t\t\t\t\t\tsizes\x3d"'+K.image.sizes+'"\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3ca href\x3d"'+B+'"\n\t\t\t\t\tclass\x3d"enlarge_btn"\n\t\t\t\t\ttitle\x3d"'+K.buttonText+'"\x3e\n\t\t\t\t\t'+K.buttonText+"\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};var d="undefined"==typeof exports?window:exports;d.Akamai=d.Akamai||{};d.Akamai.MagnifierImplEnlarge=
l})();
(function(){function l(D,r){this.element=D;this.handler=r;this.reset()}function d(D,r){this._$el=$(D);this._options=r;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 B=this;this.scroller=new Scroller(this._renderer(),{zooming:r.enabled,minZoom:1,maxZoom:r.magnification,animationDuration:r.animationDuration});
D=this._container.getBoundingClientRect();this.scroller.setPosition(D.left+this._container.clientLeft,D.top+this._container.clientTop);this._installEventHandlers();this._updateButtonStates();setTimeout(function(){B._onResize()})}l.prototype.onDown=function(D){D.target==this.element&&(this.isDown?this.reset():(this.down.x=D.clientX,this.down.y=D.clientY,this.down.timestamp=new Date,this.isDown=!0))};l.prototype.onMove=function(){this.isMoved=!0};l.prototype.onUp=function(D){this.isDown&&(this.up.x=
D.clientX,this.up.y=D.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(D,r){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}};d.prototype=Object.create(Akamai.MagnifierImpl.prototype);d.prototype.constructor=d;d.prototype.updateOptions=function(D){D=this._container.getBoundingClientRect();
this.scroller.setPosition(D.left+this._container.clientLeft,D.top+this._container.clientTop);this._onResize();this._zoomBy(1/this._options.magnification,!1)};d.prototype.zoomIn=function(){this._zoomBy(this._options.incrementalZoomFactor)};d.prototype.cyclicZoom=function(){this._magnification>=this._options.magnification?this._zoomBy(1/this._options.magnification):this.zoomIn()};d.prototype.zoomOut=function(){this._zoomBy(1/this._options.incrementalZoomFactor)};d.prototype.isMagnified=function(){return 1<
this._magnification};d.prototype.toggleZoom=function(){throw Error("zoom toggle behavior is undefined in scroller mode");};d.render=function(D,r,B,J,U){return"\n\t\t\t\x3cdiv "+r+'\x3e\n\t\t\t\t\x3cdiv\x3e\n\t\t\t\t\t\x3cimg src\x3d"'+B+'"\n\t\t\t\t\tsrcset\x3d"'+U+'"\n\t\t\t\t\tsizes\x3d"'+D.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"'+J+'"\n\t\t\t\t\tclass\x3d"scroller-zoom-in"\n\t\t\t\t\ttitle\x3d"'+D.zoomInBtnText+'"\x3e\n\t\t\t\t\t'+D.zoomInBtnText+
'\n\t\t\t\t\x3c/a\x3e\n\t\t\t\t\x3ca href\x3d"'+J+'"\n\t\t\t\t\tclass\x3d"scroller-zoom-out"\n\t\t\t\t\ttitle\x3d"'+D.zoomOutBtnText+'"\x3e\n\t\t\t\t\t'+D.zoomOutBtnText+"\n\t\t\t\t\x3c/a\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};d.prototype._zoomBy=function(D,r){var B=this;D=Number(D);void 0===r&&(r=this._options.animateZoom);1===D||1===this._magnification&&1>D||this._magnification===this._options.magnification&&1<D||(this.scroller.zoomTo(this._magnification*D,this._options.animateZoom),setTimeout(function(){B._onZoom()},
this._options.animationDuration))};d.prototype._onZoom=function(){var D=this._magnification;this._magnification=Number(this.scroller.getValues().zoom.toFixed(2));this._updateButtonStates();D>this._magnification?this._$el.trigger("scroller.after-zoom-out"):D<this._magnification&&this._$el.trigger("scroller.after-zoom-in")};d.prototype._renderer=function(){var D,r=document.documentElement.style,B=this;window.opera&&"[object Opera]"===Object.prototype.toString.call(opera)?D="presto":"MozAppearance"in
r?D="gecko":"WebkitAppearance"in r?D="webkit":"string"==typeof navigator.cpuClass&&(D="trident");D={trident:"ms",gecko:"Moz",webkit:"Webkit",presto:"O"}[D];r=document.createElement("div");var J=D+"Transform";return void 0!==r.style[D+"Perspective"]?function(U,O,w){B._content.style[J]="translate3d("+-U+"px,"+-O+"px,0) scale("+w+")"}:void 0!==r.style[J]?function(U,O,w){B._content.style[J]="translate("+-U+"px,"+-O+"px) scale("+w+")"}:function(U,O,w){B._content.style.marginLeft=U?-U/w+"px":"";B._content.style.marginTop=
O?-O/w+"px":"";B._content.style.zoom=w||""}};d.prototype._onResize=function(){this.scroller.setDimensions(this._container.clientWidth,this._container.clientHeight,this._container.clientWidth,this._container.clientHeight)};d.prototype._installEventHandlers=function(){var D=this,r=new l(this._imgCast,function(){D.cyclicZoom()});window.addEventListener("resize",function(B){D._onResize(B)},!1);this._zoomInBtn.addEventListener("click",function(B){B.preventDefault();D.zoomIn()},!1);this._zoomOutBtn.addEventListener("click",
function(B){B.preventDefault();D.zoomOut()},!1);"ontouchstart"in window?(D._container.addEventListener("touchstart",function(B){if(B.touches[0].target!=D._$el.find("a.scroller-zoom-in").get(0)&&B.touches[0].target!=D._$el.find("a.scroller-zoom-out").get(0)&&!(B.touches[0]&&B.touches[0].target&&B.touches[0].target.tagName.match(/input|textarea|select/i))){D.scroller.doTouchStart(B.touches,B.timeStamp);for(var J=0;J<B.touches.length;J++)r.onDown(B.touches[J]);B.preventDefault()}},!1),document.addEventListener("touchmove",
function(B){D.scroller.doTouchMove(B.touches,B.timeStamp,B.scale);r.onMove()},!1),document.addEventListener("touchend",function(B){D.scroller.doTouchEnd(B.timeStamp);D._onZoom();for(var J=0;J<B.changedTouches.length;J++)r.onUp(B.changedTouches[J])},!1),document.addEventListener("touchcancel",function(B){D.scroller.doTouchEnd(B.timeStamp);D._onZoom();for(var J=0;J<B.changedTouches.length;J++)r.onUp(B.changedTouches[J])},!1)):(D._container.addEventListener("mousedown",function(B){B.target.tagName.match(/input|textarea|select/i)||
(D.scroller.doTouchStart([{pageX:B.pageX,pageY:B.pageY}],B.timeStamp),r.onDown(B))},!1),document.addEventListener("mousemove",function(B){r.isDown&&(D.scroller.doTouchMove([{pageX:B.pageX,pageY:B.pageY}],B.timeStamp),r.onMove())},!1),document.addEventListener("mouseup",function(B){r.isDown&&(D.scroller.doTouchEnd(B.timeStamp),r.onUp(B))},!1))};d.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 K="undefined"==typeof exports?window:exports;K.Akamai=K.Akamai||{};K.Akamai.MagnifierImplScroller=d})();
(function(l,d){var K=Akamai.Util.component("Magnifier",function(D,r){this._options.disabled=!this._options.enabled;this._options.mode===K.MODE_ANIMATED_ZOOM?this._impl=new Akamai.MagnifierImplScroller(D,r):this._impl=new Akamai.MagnifierImplEnlarge(D,r)});K.prototype._updateOptions=function(D){D||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,D);this._options.disabled=!this._options.enabled;Akamai.Util.setDataAttrOptions(this._$el,K.defaultOptions,this._options,
"Magnifier");this._impl.updateOptions(this._options)};K._componentEventMapping={"enlarge.after-zoom-in":"in","enlarge.after-zoom-out":"out","scroller.after-zoom-in":"in","scroller.after-zoom-out":"out"};K.MODE_HOVER_ZOOM="hoverzoom";K.MODE_ANIMATED_ZOOM="animatedzoom";K.defaultOptions={mode:K.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(K);K.render=function(D,r){r=Akamai.Util.options(K.defaultOptions,r);var B=K._dataAttr,J=K._fallbackSrc(D.url,r.image),U=K._largestSrc(D.url,r.image);D=K._srcset(D.url,r.image);return(r.mode===K.MODE_ANIMATED_ZOOM?Akamai.MagnifierImplScroller:Akamai.MagnifierImplEnlarge).render(r,B,J,U,D,r.image.sizes)};K.prototype.in=function(){this._impl.zoomIn()};K.prototype.out=
function(){this._impl.zoomOut()};K.prototype.isMagnified=function(){return this._impl.isMagnified()};K.prototype.toggle=function(){this._impl.toggleZoom()};l.Akamai=l.Akamai||{};l.Akamai.Magnifier=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){d=Akamai.Util.component("VideoImpl",function(K,D){throw Error("Not allowed to instantiate VideoImpl");});d.render=function(K,D){throw Error("VideoImpl.render not implemented");};l.Akamai=l.Akamai||{};l.Akamai.VideoImpl=d})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){d=Akamai.Util.component("VideoImplPristine",function(K,D){});d.prototype=Object.create(Akamai.VideoImpl.prototype);d.prototype.constructor=d;d.render=function(K,D){D=Akamai.Util.options(Akamai.Video.defaultOptions,D);var r=K.url,B=K.poster||"";K=K.mime?'type\x3d"'+K.mime+'"':"";return Akamai.Util.trim("\n\t\t\t\x3cdiv "+Akamai.Video._dataAttr+"\x3e\n\t\t\t\t\x3cvideo "+[D.loop?"loop":"",D.autoplay?"autoplay":"",D.controls?"controls":"",D.muted?"muted":"","playsinline"].join(" ")+' poster\x3d"'+
B+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+r+'" '+K+" /\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=d})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){var K=Akamai.Util.component("VideoImplIm",function(D,r){D=Akamai.Util.options(Akamai.Video.defaultOptions,r);K._validateOptions(D)});K.prototype=Object.create(Akamai.VideoImpl.prototype);K.prototype.constructor=K;K._validateOptions=function(D){if(!Array.isArray(D.sizes)||3!==D.sizes.length)throw Error("Akamai.Video sizes must have three entries");if(D.sizes.some(function(r){return isNaN(r)}))throw Error("Akamai.VideoImplIm all sizes must be numbers");};K.render=function(D,r){var B=
Akamai.Util.options(Akamai.Video.defaultOptions,r);K._validateOptions(B);r=D.url;D=D.poster||"";var J=window.innerWidth;J=992>J?B.sizes[0]:1200>J?B.sizes[1]:B.sizes[2];B=[B.loop?"loop":"",B.autoplay?"autoplay":"",B.controls?"controls":"",B.muted?"muted":"","playsinline"];var U=-1===r.indexOf("?")?"?":"\x26";return Akamai.Util.trim("\n\t\t\t\x3cdiv "+Akamai.Video._dataAttr+"\x3e\n\t\t\t\t\x3cvideo "+B.join(" ")+' poster\x3d"'+D+'" preload\x3d"metadata"\x3e\n\t\t\t\t\t\x3csource src\x3d"'+r+U+"imformat\x3dvp9\x26imwidth\x3d"+
J+'" type\x3d"video/webm" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+r+U+"imformat\x3dh265\x26imwidth\x3d"+J+'" type\x3d"video/mp4; codecs\x3dhevc" /\x3e\n\t\t\t\t\t\x3csource src\x3d"'+r+U+"imformat\x3dh264\x26imwidth\x3d"+J+'" 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=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){var K=Akamai.Util.component("Video",function(D,r){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?K.States.Paused:K.States.Playing);this._$el.bind("akamai-video-play",function(){this._setState(K.States.Playing)}.bind(this)).bind("akamai-video-pause",
function(){this._setState(K.States.Paused)}.bind(this));this._createPlayButton()});K.MODE_IM="im";K.MODE_PRISTINE="pristine";K._componentEventMapping={play:{to:"play",selector:"video"},pause:{to:"pause",selector:"video"},seeked:{to:"seek",selector:"video"}};K.prototype._updateOptions=function(D){D||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,D);Akamai.Util.setDataAttrOptions(this._$el,K.defaultOptions,this._options,"Video")};K.defaultOptions={autoplay:!1,
controls:!0,loop:!1,muted:!0,mode:K.MODE_PRISTINE,sizes:[854,1280,1920]};K.render=function(D,r){return(r&&r.mode===K.MODE_IM?Akamai.VideoImplIm:Akamai.VideoImplPristine).render(D,r)};K.States={Playing:0,Paused:1};K.prototype._unsupported=function(){return this._unsupportedAPI&&Akamai.Util.log("Video: video API not supported","error"),this._unsupportedAPI};K.prototype.play=function(){this._unsupported()||this._videoElement.play()};K.prototype.pause=function(){this._unsupported()||this._videoElement.pause()};
K.prototype.getState=function(){return this._state};K.prototype._setState=function(D){this._state=D};K.prototype.seek=function(D){if(0>D||100<D)throw Error("seek takes a an integer between 0 and 100");this._videoElement.currentTime=D/100*(this._videoElement.duration||1)};K.prototype.setLoop=function(D){this._videoElement.loop=D};K.prototype.getElement=function(){return this._$el[0]};K.prototype._createPlayButton=function(){var D,r=this._$el[0],B=this._videoElement;this._options.autoplay||(r.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'),B.removeAttribute("controls"),D=this._$el.find("svg")[0],D.addEventListener("click",function(){B.play();D.classList.add("is-hidden");this._options.controls&&B.setAttribute("controls","controls")}.bind(this)))};l.Akamai=
l.Akamai||{};l.Akamai.Video=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){var K=Akamai.Util.component("Carousel",function(D,r){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))});K._stopSlideshowEvents=["akamai-magnifier-in","akamai-magnifier-out","akamai-spin360-goto","akamai-video-play","akamai-video-seek"];K.prototype._handleAutoplayables=function(){var D=function(r){return!!d(r.getElement()).closest("["+this.constructor.activeItemAttr+"]").length}.bind(this);this._videos.concat(this._spins).forEach(function(r){D(r)&&r._carouselWasPlaying?r.play():r.getState()==r.constructor.States.Playing?(r._carouselWasPlaying=!0,r.pause()):r._carouselWasPlaying=
!1}.bind(this))};K.counter=0;K.prototype._updateOptions=function(D){D||(this._options=this._originalOptions);this._options=Akamai.Util.extend(!0,this._options,D);var r=function(B,J){B._updateOptions(this._options[J])}.bind(this);Akamai.Util.setDataAttrOptions(this._$el,K.defaultOptions,this._options,"Carousel");this._$el.snapper("updateOptions",D);this._spins.forEach(function(B){r(B,"spin360")});this._magnifiers.forEach(function(B){r(B,"magnifier")});this._videos.forEach(function(B){r(B,"video")});
this._setAspectRatio()};K._componentEventMapping={"snapper.after-snap":"goto","snapper.snap":"snap","snapper.after-next":"next","snapper.after-prev":"previous"};K.defaultOptions={arrows:!0,aspectratio:!1,slideshow:{interval:4E3,autostart:!1},thumbnail:{placement:"bottom",type:"images",policy:void 0,sizes:"300px"},images:Akamai.Image.defaultConfig};K.renderMapping={image:Akamai.Magnifier,spin360:Akamai.Spin360,video:Akamai.Video};K._typeMapping={image:"magnifier"};K._uniqueItemId=function(D,r){return"akamai-carousel-"+
K.counter+"-"+D.type+"-"+r};Akamai.Sourceable.extendStatic(K);K._renderItem=function(D,r,B){var J=K._typeMapping[D.type]||D.type;if(!K.renderMapping[D.type])throw Error("\n\t\t\t\titem type "+D.type+" at index "+r+" must be 'image', 'spin360', or 'video'\n\t\t\t");return'\n\t\t\t\x3cdiv class\x3d"snapper_item" id\x3d"'+K._uniqueItemId(D,r)+'"\x3e\n\t\t\t\t'+K.renderMapping[D.type].render(D,B[J])+"\n\t\t\t\x3c/div\x3e\n\t\t"};K._renderThumbnailAnchor=function(D,r,B,J){var U="",O=D.alt||"";U="video"===
D.type?D.poster||r.reduce(function(t,C){return t||K._thumbUrl(C)},""):K._thumbUrl(D);J.images.policy=J.thumbnail.policy;r=K._fallbackSrc(U,J.images);U=K._srcset(U,J.images);var w=J.images.sizes;J.thumbnail.policy&&(w=J.thumbnail.sizes);J=[K._dataAttr+'-thumb-type\x3d"'+D.type+'"',"video"!=D.type||D.poster?"":"${Carousel._dataAttr}-thumb-noposter"];return'\n\t\t\t\x3ca href\x3d"#'+K._uniqueItemId(D,B)+'" '+J.join(" ")+'\x3e\n\t\t\t\t\x3cimg src\x3d"'+r+'" srcset\x3d"'+U+'" sizes\x3d"'+w+'" alt\x3d"'+
O+'" title\x3d"Scroll to '+D.type+" "+B+'" /\x3e\n\t\t\t\x3c/a\x3e\n\t\t'};K._thumbUrl=function(D){return"video"===D.type?D.poster:D.url||D.urls&&D.urls[0]};K._renderThumbnails=function(D,r){return 1>=D.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(D,function(B,J){return K._renderThumbnailAnchor(B,D,J,r)}).join("\n")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t"};K.prototype._setAspectAttributes=function(D){var r=
K._dataAttr+"-aspectratio-orientation";D.height()>D.width()?D.attr(r,"portrait"):D.height()<D.width()?D.attr(r,"landscape"):D.parent().height()>=D.parent().width()?D.attr(r,"landscape"):D.attr(r,"portrait")};K.prototype._setAspectRatio=function(){var D=this._options.aspectratio||0,r=this._$el.find(".snapper_item");r.css("padding-top",D/r.length+"%")};K.prototype._bindAspectAttributes=function(){if(!1!==this._options.aspectratio){var D=(this._options.aspectratio,this),r=this._$el.find(".snapper_item");
r.each(function(){var B=d(this),J=B.find("img, video").eq(0);J.bind("load loadedmetadata",loadBinding=function(){clearTimeout(U);B.is("["+Akamai.Spin360._dataAttr+"]")?D._setAspectAttributes(B.find("canvas")):D._setAspectAttributes(J)});var U=setTimeout(loadBinding,5E3)});r.eq(0).find("img,video").eq(0).bind("load loadedmetadata",function(){D._trigger("first-media-load")})}};K.render=function(D,r){r=r||{};var B=Akamai.Util.options(K.defaultOptions,r);r=[""+K._dataAttr,K._dataAttr+'-item-count\x3d"'+
(D||[]).length+'"','data-snapper-deeplinking\x3d"false"',B.arrows?"data-snapper-nextprev":""];return K.counter++,Akamai.Util.trim("\n\t\t\t\x3cdiv "+r.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(D,function(J,U){return K._renderItem(J,U,B)}).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"+K._renderThumbnails(D,B)+"\n\t\t\t\x3c/div\x3e\n\t\t")};K.prototype.getSpin360s=function(){return this._spins};K.prototype.getMagnifiers=function(){return this._magnifiers};K.prototype.getVideos=function(){return this._videos};K.prototype.goto=function(D,r){this._$el.snapper("goto",D,r)};K._itemAttr=K._dataAttr+"-item";K._activeItemAttr=K._itemAttr+"-active";K.prototype._activeItemAttributes=
function(){var D=this.constructor._itemAttr,r=this.constructor._activeItemAttr;this._$el.find(".snapper_item").attr(D,!0).removeAttr(r).eq(this.getIndex()).attr(r,!0)};K.prototype.getIndex=function(){return this._$el.snapper("getIndex")};Akamai.Advanceable.extend(K);K.prototype.next;K.prototype.previous;K.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))};K.prototype.stopSlideshow=function(){clearTimeout(this._slideshowTimer);this._slideshowTimer=void 0;this._trigger("stop-slideshow")};K.prototype.refresh=function(){this._$el.snapper("updateWidths")};l.Akamai=l.Akamai||{};l.Akamai.Carousel=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){var K=Akamai.Util.component("Fullscreen",function(D,r){this._options.enabled&&this._init()});K.prototype._init=function(){this._$fullscreen=this._$el;this.addButton();this._fullscreenApiKeys=K._keys();this._options.native?this._useNativeApi=!!this._fullscreenApiKeys:this._useNativeApi=!1;this._fullscreenFallbackEnabled=!1;this._$placeholder=d("\x3cdiv\x3e");this._isFullscreen=!1;this.addEvents()};K.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"};K.attr={width:"data-akamai-fullscreen-width",enterBtn:"data-akamai-fullscreen-btn",exitBtn:"data-akamai-fullscreen-exit-btn"};K.defaultOptions={enabled:!1,native:!1};K.prototype.addButton=function(){this._$widthAdjust=this._$fullscreen.children().filter(".focused");this._$widthAdjust.length||(this._$widthAdjust=this._$fullscreen.children().eq(0));null===this._$widthAdjust.attr(K.attr.width)&&
this._$widthAdjust.attr(K.attr.width,"");this._$widthAdjust.find("["+K.attr.enterBtn+"]").length||(this._$buttonContainer=this._$widthAdjust,this._$buttonContainer.addClass(K.classes.btnContainer),this._$buttonContainer.append(this.render()))};K.prototype.addEvents=function(){this._$fullscreen.on("click",function(D){d(D.target).is("["+K.attr.enterBtn+"]")&&(this.enter(),D.preventDefault())}.bind(this));this._$fullscreen.on("click",function(D){d(D.target).is("["+K.attr.exitBtn+"]")&&(this.exit(),D.preventDefault())}.bind(this));
this._useNativeApi&&document.addEventListener(this._fullscreenApiKeys.onchange,function(){document[this._fullscreenApiKeys.element]||this._exit()}.bind(this),!1);d(document).on("keydown",function(D){27===(D.keyCode||D.which)&&this._exit()}.bind(this))};K.prototype.render=function(){return Akamai.Util.trim("\n\t\t\t\x3cbutton "+K.attr.enterBtn+' class\x3d"'+K.classes.btn+" "+K.classes.enterBtn+' icon-fullscreen"\x3eFull Screen\x3c/button\x3e\n\t\t\t\x3cbutton '+K.attr.exitBtn+' class\x3d"'+K.classes.btn+
" "+K.classes.exitBtn+' icon-close-light"\x3eExit Full Screen\x3c/button\x3e\n\t\t')};K._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"}];K._keys=function(D){var r=K._keyLookup;D=document.body;for(var B=0,J=r.length;B<J;B++)if(r[B].enter in D)return r[B]};K.prototype._maximizePlacement=function(){this._fullscreenFallbackEnabled=!0;this._$fullscreen.addClass(K.classes.fallback);this._$placeholder.insertAfter(this._$fullscreen);this._$fullscreen.appendTo(document.body)};
K.prototype._restorePlacement=function(){this._fullscreenFallbackEnabled&&(this._fullscreenFallbackEnabled=!1,this._$fullscreen.removeClass(K.classes.fallback),this._$fullscreen.insertAfter(this._$placeholder),this._$placeholder.remove())};K.prototype._adjustWidth=function(){this._$fullscreen.css("width","auto !important");var D=this._$fullscreen.width(),r=this._$fullscreen.height();D=D*(this._useNativeApi?window.screen.height:Math.max(document.documentElement.clientHeight,window.innerHeight||0))/
r;D>(this._useNativeApi?window.screen.width:Math.max(document.documentElement.clientWidth,window.innerWidth||0))&&(D="100%");this._$widthAdjust.width(D)};K.prototype._revertWidth=function(){this._$widthAdjust.css("width","")};K.prototype.enter=function(){this._$fullscreen.addClass(K.classes.active);this._useNativeApi?(this._$fullscreen[0][this._fullscreenApiKeys.enter](),this._adjustWidth()):(this._adjustWidth(),this._maximizePlacement());this._isFullscreen=!0;this._trigger("enter")};K.prototype._exit=
function(){this._$fullscreen.removeClass(K.classes.active);this._useNativeApi||this._restorePlacement();this._revertWidth();this._isFullscreen=!1;this._trigger("exit")};K.prototype.exit=function(){this._useNativeApi&&document[this._fullscreenApiKeys.exit]();this._exit()};K.prototype.isFullscreen=function(){return this._isFullscreen};l.Akamai=l.Akamai||{};l.Akamai.Fullscreen=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){var K=Akamai.Util.component("Viewer",!0,function(D,r){this._updateSizesOptions(!0);this._onResizeComplete(this._updateSizesOptions.bind(this));this._options.carousel=K._extendCarouselOptions(this._options);this._withData(function(B){B&&(this._checkJSONUrls(B),B=Akamai.Util.escapeJSONVals(B),this._options.items.data=B);this._tagMapping={};0==this._$el.children().length&&B&&(this._tagMapping=this.constructor._tagSplit(B,this._options.items),this._$el.append(this.constructor.render(B,
this._options,!0)));this._carousels=Akamai.Carousel.createMany(D,this._options.carousel);this._fullscreen=new Akamai.Fullscreen(D,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(B){throw Error(B);})});K.prototype._updateSizesOptions=function(D){var r=this._$el.width();r&&0<r&&(r+="px",this._options=Akamai.Util.extend(!0,
this._options,{carousel:{images:{sizes:r}}}));D||this._updateOptions(this._options)};K.prototype._withData=function(D,r){this._options.items.uri?void 0!==this._options.items.uri&&0<this._options.items.uri.length&&d.get(this._options.items.uri,function(B){B="string"==typeof B?JSON.parse(B):B;this._exceedsLimit(B.items,r)||D(B.items)}.bind(this)):this._exceedsLimit(this._options.items.data,r)||D(this._options.items.data)};K.prototype._exceedsLimit=function(D,r){return!!D&&4*JSON.stringify(D).length/
1024>this._options.items.limit&&(r=r||function(){},r("JSON data size exceeds "+this._options.items.limit+" KiB. Limit can be configured with items.limit Akamai.Viewer options."),!0)};K.prototype._setBreakpoints=function(){this._breakpoints=this._reduceBreakpoints(this._options.breakpoints||{});this._fullscreenBreakpoints=this._reduceBreakpoints(this._options.fullscreenBreakpoints||{});this._bindBreakpoints()};K.prototype._reduceBreakpoints=function(D){var r=[],B;for(B in D)if(D.hasOwnProperty(B))try{r.push(parseInt(B,
10))}catch(J){Akamai.Util.log(J,"error")}return r.sort(function(J,U){return U<J}),r};K.prototype._bindBreakpoints=function(){[this._breakpoints,this._fullscreenBreakpoints].forEach(function(D){if(D.length)for(var r=-1;r<D.length;r++)this._bindMatchMedia(D[r],D[r+1])}.bind(this))};K.prototype._onResizeComplete=function(D){var r;window.addEventListener("resize",function(){clearTimeout(r);r=setTimeout(D,500)})};K.prototype._bindMatchMedia=function(D,r){(D=D||0,r=r||1E9,window.matchMedia)&&(r=window.matchMedia("(min-width: "+
D+"px) and (max-width: "+r+"px)"))&&r.addListener&&(this._mediaMatch(r,D,!0),r.addListener(function(B){this._mediaMatch(B,D)}.bind(this)))};K.prototype._mediaMatch=function(D,r,B){D.matches&&(D=this._resolveBreakpointOptions(r),this._updateOptions(D))};K.prototype._getCurrentMinWidth=function(D){for(var r=-1;r<D.length;r++)if(minWidth=D[r]||0,maxWidth=D[r+1]||1E8,window.matchMedia){var B=window.matchMedia("(min-width: "+minWidth+"px) and (max-width: "+maxWidth+"px)");if(B&&B.matches)return minWidth}return!1};
K.prototype._resolveBreakpointOptions=function(D){var r,B;return this._fullscreen.isFullscreen()?(r=this._fullscreenBreakpoints,B=this._options.fullscreenBreakpoints):(r=this._breakpoints,B=this._options.breakpoints),D||(D=this._getCurrentMinWidth(r)),r.length?r.reduce(function(J,U){J=Akamai.Util.extend(!0,{},J);return U<=D&&(J=Akamai.Util.extend(!0,J,B[U])),J},Akamai.Util.extend(!0,{},this._originalOptions)):this._originalOptions};K._extendCarouselOptions=function(D){var r=Akamai.Util.extend(!0,
{},D.carousel||{});return Akamai.Util.extend(!0,r,{magnifier:D.magnifier,spin360:D.spin360,video:D.video,fullscreen:D.fullscreen})};K.prototype._updateOptions=function(D){this._options=Akamai.Util.extend(!0,this._options,D);var r=K._extendCarouselOptions(D);Akamai.Util.setDataAttrOptions(this._$el,K.defaultOptions,D,"Viewer");this._carousels.forEach(function(B){B._updateOptions(r)}.bind(this))};K.prototype._checkJSONUrls=function(D){var r=this._options.items.hostnames;return Akamai.Util.mapJSONVals(D,
function(B,J){if("url"===J&&!this._urlHostnameMatch(B))throw Error("The URL `"+B+"` does not match this page's hostname or the whitelist defined in Akamai.Viewer option `hostnames` which is:\n\n"+(r.length?r.join("\n"):"No hostnames")+"\n");return B}.bind(this))};K.prototype._urlHostnameMatch=function(D){var r=document.createElement("a");return r.href=D,r.hostname===window.location.hostname||0<=this._options.items.hostnames.indexOf(r.hostname)};K.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};K._tagSplit=function(D,r){D=D.map(function(J){return J.tags=J.tags&&J.tags.length?J.tags:[r.defaultTag],J});r.tags&&(D=r.data.filter(function(J){return J.tags.reduce(function(U,O){return U||0<=r.tags.indexOf(O)},!1)}));
var B=D[0].tags[0];D=D.reduce(function(J,U){return(U.tags||[]).forEach(function(O){J[O]=J[O]||[];J[O].push(U)}),J},{});return D[K._firstRenderTag]=D[B],D};K._firstRenderTag="akamai-first-render";K._tagAttr=K._dataAttr+"-tag";K._renderTag=function(D,r){return Akamai.Util.trim("\n\t\t\t\x3cdiv "+K._tagAttr+'\x3d"'+D[0].tags[0]+'"\x3e\n\t\t\t\t'+Akamai.Carousel.render(D,r)+"\n\t\t\t\x3c/div\x3e\n\t\t")};K.render=function(D,r,B){D=K._tagSplit(D,r.items);var J=K._extendCarouselOptions(r);r=r.items.renderAll?
D.map(function(U,O){return K._renderTag(O,J)}).join(" "):K._renderTag(D[K._firstRenderTag],J);D="\n\t\t\t\x3cdiv "+K._dataAttr+"\x3e\n\t\t\t\t"+r+"\n\t\t\t\x3c/div\x3e\n\t\t";return B?r:D};K.prototype.getCarousels=function(){return this._carousels};K.prototype.switchTag=function(D){if(-1==this.getTags().indexOf(D))return void Akamai.Util.log("tag: "+D+" is not present in the data for this viewer","error");var r=this._$el.find("["+this.constructor._tagAttr+'\x3d"'+D+'"]');if(r.length)this._showViewer(r);
else{r=this._resolveBreakpointOptions();var B=K._extendCarouselOptions(r),J=d(this.constructor._renderTag(this._tagMapping[D],B,!0)),U=J.find("img"),O=U.length,w=0;J.css("display","none");U.bind("load",function(){if(++w===O){U.unbind("load");var t=Akamai.Carousel.createMany(J[0],B);t.forEach(function(C){C.goto(C.getIndex())});this._carousels=this._carousels.concat(t);this._showViewer(J,t)}}.bind(this));this._$el.append(J)}};K.prototype._showViewer=function(D,r){this._$el.find("["+this.constructor._tagAttr+
"]").css("display","none").removeClass("focused");D.css("display","block").addClass("focused");r&&r.map(function(B){B.refresh()});this._fullscreen.addButton();this._trigger("switch-tag")};K.prototype.getTags=function(){if(this._tags)return this._tags;var D=[],r;for(r in this._tagMapping)this._tagMapping.hasOwnProperty(r)&&r!==K._firstRenderTag&&D.push(r);return this._tags=D};l.Akamai=l.Akamai||{};l.Akamai.Viewer=K})("undefined"==typeof exports?window:exports,this.jQuery);
(function(l,d){d.fn.akamaiViewer=function(K){this.each(function(D,r){new Akamai.Viewer(r,K)})}})("undefined"==typeof exports?window:exports,this.jQuery);
(function(){var l=window.sg.common.$q,d=new WeakMap,K=window.sg.common.utils.triggerEvent,D={init:function(r){r.hasAttribute("data-akamai-viewer")||(r=r.querySelector("[data-akamai-viewer]"));if(r){if(!d.has(r)){var B=new Akamai.Viewer(r,{carousel:{arrows:!1},spin360:{reverse:!0},items:{uri:r.getAttribute("data-spin-uri")}});d.set(r,B)}K(window,"resize")}},initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll("[data-akamai-viewer]"))).forEach(function(r){r.hasAttribute("data-init-on-loaded")&&
(D.init(r),r.removeAttribute("data-init-on-loaded"))})}};window.sg.common.image360=D;l.ready(D.initAll)})();"use strict";
function QRCode(l){var d,K,D,r,B=[],J=[],U=Math.max,O=Math.min,w=Math.abs,t=Math.ceil,C=/^[0-9]*$/,v=/^[A-Z0-9 $%*+.\/:-]*$/,f=[[-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]],q=[[-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]},F=function(ha,ra){for(var da=0,E=8;E--;)da=da<<1^285*(da>>>7)^(ra>>>E&1)*ha;return da},ea=function(ha,ra){for(var da=[],E=ha.length,b=E;b;)for(var x=ha[E-b--]^da.shift(),P=ra.length;P--;)da[P]^=F(ra[P],x);return da},e=function(ha){ha=[function(){return 0==(ra+da)%2},function(){return 0==ra%2},function(){return 0==da%3},function(){return 0==(ra+da)%3},function(){return 0==((ra/2|0)+(da/3|0))%
2},function(){return 0==ra*da%2+ra*da%3},function(){return 0==(ra*da%2+ra*da%3)%2},function(){return 0==((ra+da)%2+ra*da%3)%2}][ha];for(var ra=r;ra--;)for(var da=r;da--;)J[ra][da]||(B[ra][da]^=ha())},n=function(){for(var ha=function(X,G){G[6]||(X+=r);G.shift();G.push(X)},ra=function(X,G,z){return X&&(ha(G,z),G=0),ha(G+r,z),da(z)},da=function(X){var G=X[5],z=0<G&&X[4]==G&&X[3]==3*G&&X[2]==G&&X[1]==G;return(z&&X[6]>=4*G&&X[0]>=G?1:0)+(z&&X[0]>=4*G&&X[6]>=G?1:0)},E=0,b=r*r,x=0,P=r;P--;){for(var H=[0,
0,0,0,0,0,0],ca=[0,0,0,0,0,0,0],h=!1,I=!1,u=0,A=0,T=r;T--;){B[P][T]==h?5==++u?E+=3:5<u&&E++:(ha(u,H),E+=40*da(H),u=1,h=B[P][T]);B[T][P]==I?5==++A?E+=3:5<A&&E++:(ha(A,ca),E+=40*da(ca),A=1,I=B[T][P]);var fa=B[P][T];fa&&x++;T&&P&&fa==B[P][T-1]&&fa==B[P-1][T]&&fa==B[P-1][T-1]&&(E+=3)}E+=40*ra(h,u,H)+40*ra(I,A,ca)}return E+=10*(t(w(20*x-10*b)/b)-1)},Q=function(ha,ra,da){for(;ra--;)da.push(ha>>>ra&1)},Y=function(ha,ra){return 0!=(ha>>>ra&1)},N=function(ha){if(1>ha||40<ha)throw"Version number out of range";
var ra=(16*ha+128)*ha+64;if(2<=ha){var da=ha/7|2;ra-=(25*da-10)*da-55;7<=ha&&(ra-=36)}return ra},y=function(ha,ra){for(var da=2;-2<=da;da--)for(var E=2;-2<=E;E--)Aa(ha+E,ra+da,1!=U(w(E),w(da)))},R=function(ha,ra){for(var da=4;-4<=da;da--)for(var E=4;-4<=E;E--){var b=U(w(E),w(da)),x=ha+E,P=ra+da;0<=x&&x<r&&0<=P&&P<r&&Aa(x,P,2!=b&&4!=b)}},V=function(ha){var ra=K[1]<<3|ha,da=ra;for(ha=10;ha--;)da=da<<1^1335*(da>>>9);ra=21522^(ra<<10|da);if(0!=ra>>>15)throw"Assertion error";for(ha=0;5>=ha;ha++)Aa(8,ha,
Y(ra,ha));Aa(8,7,Y(ra,6));Aa(8,8,Y(ra,7));Aa(7,8,Y(ra,8));for(ha=9;15>ha;ha++)Aa(14-ha,8,Y(ra,ha));for(ha=0;8>ha;ha++)Aa(r-1-ha,8,Y(ra,ha));for(ha=8;15>ha;ha++)Aa(8,r-15+ha,Y(ra,ha));Aa(8,r-8,1)},ka=function(){for(var ha=r;ha--;)Aa(6,ha,0==ha%2),Aa(ha,6,0==ha%2);for(var ra=function(){var b=[];if(1<d)for(var x=2+(d/7|0),P=32==d?26:2*t((r-13)/(2*x-2));x--;)b[x]=x*P+6;return b}(),da=ha=ra.length;da--;)for(var E=ha;E--;)0==E&&0==da||0==E&&da==ha-1||E==ha-1&&0==da||y(ra[E],ra[da]);R(3,3);R(r-4,3);R(3,
r-4);V(0);(function(){if(!(7>d)){for(var b=d,x=12;x--;)b=b<<1^7973*(b>>>11);b|=d<<12;if(x=18,0!=b>>>18)throw"Assertion error";for(;x--;){var P=r-11+x%3,H=x/3|0,ca=Y(b,x);Aa(P,H,ca);Aa(H,P,ca)}}})()},va=function(ha,ra){return(N(ha)/8|0)-f[ra[0]][ha]*q[ra[0]][ha]},Aa=function(ha,ra,da){B[ra][ha]=da?1:0;J[ra][ha]=1},sa=function(ha,ra,da,E){if(""==ha)ha=[];else if(C.test(ha)){if(!C.test(ha))throw"String contains non-numeric characters";for(var b=[],x=0;x<ha.length;){var P=O(ha.length-x,3);Q(parseInt(ha.substr(x,
P),10),3*P+1,b);x+=P}ha=[{modeBits:1,numBitsCharCount:[10,12,14],numChars:ha.length,bitData:b}]}else if(v.test(ha)){if(!v.test(ha))throw"String contains unencodable characters in alphanumeric mode";x=[];for(b=0;b+2<=ha.length;b+=2)P=45*"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(ha.charAt(b)),P+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(ha.charAt(b+1)),Q(P,11,x);ha=[(b<ha.length&&Q("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(ha.charAt(b)),6,x),{modeBits:2,numBitsCharCount:[9,
11,13],numChars:ha.length,bitData:x})]}else{b=ha;ha=[];for(x=(b=encodeURI(b),0);x<b.length;x++)"%"!=b.charAt(x)?ha.push(b.charCodeAt(x)):(ha.push(parseInt(b.substr(x+1,2),16)),x+=2);b=[];for(x=0;x<ha.length;x++)Q(ha[x],8,b);ha=[{modeBits:4,numBitsCharCount:[8,16,16],numChars:ha.length,bitData:b}]}var H=da;da=E;var ca=P=void 0;if(void 0===P&&(P=1),void 0===ca&&(ca=40),void 0===da&&(da=-1),void 0===H&&(H=!0),!(1<=P&&P<=ca&&40>=ca)||-1>da||7<da)throw"Invalid value";b=[];x=236;for(E=[];;){a:{var h=ha;
for(var I=P,u=0,A=h.length;A--;){var T=h[A],fa=T.numBitsCharCount[(I+7)/17|0];if(1<<fa<=T.numChars){h=1/0;break a}u+=4+fa+T.bitData.length}h=u}if(h<=8*va(P,ra))break;if(P>=ca)throw"Data too long";P++}if(H)for(ca=(H=[k.H,k.Q,k.M]).length;ca--;)h<=8*va(P,H[ca])&&(ra=H[ca]);for(H=0;H<ha.length;H++)for(I=ha[H],Q(I.modeBits,4,b),Q(I.numChars,I.numBitsCharCount[(P+7)/17|0],b),ca=0,I=I.bitData;ca<I.length;ca++)b.push(I[ca]);if(b.length!=h)throw"Assertion error";ha=8*va(P,ra);if(b.length>ha)throw"Assertion error";
if(Q(0,O(4,ha-b.length),b),Q(0,(8-b.length%8)%8,b),0!=b.length%8)throw"Assertion error";for(;b.length<ha;)Q(x,8,b),x^=253;for(ca=b.length;ca--;)E[ca>>>3]|=b[ca]<<7-(7&ca);K=ra;D=da;for(ha=r=4*(d=P)+17;ha--;)B[ha]=[],J[ha]=[];ka();if(E.length!=va(d,K))throw"Invalid argument";x=q[K[0]][d];ha=f[K[0]][d];da=N(d)/8|0;ra=x-da%x;da=da/x|0;b=[];H=1;P=[];P[ha-1]=1;for(ca=0;ca<ha;ca++){for(h=0;h<ha;h++)P[h]=F(P[h],H)^P[h+1];H=F(H,2)}for(ca=H=0;H<x;H++)h=E.slice(ca,ca+da-ha+(H<ra?0:1)),ca+=h.length,I=ea(h,P),
H<ra&&h.push(0),b.push(h.concat(I));E=[];for(H=0;H<b[0].length;H++)for(x=0;x<b.length;x++)(H!=da-ha||x>=ra)&&E.push(b[x][H]);ha=0;ra=1;for(b=da=r-1;0<b;b-=2)for(6==b&&--b,x=0>(ra=-ra)?da:0,P=0;P<r;++P){for(H=b;H>b-2;--H)J[x][H]||(B[x][H]=Y(E[ha>>>3],7-(7&ha)),++ha);x+=ra}if(0>D)for(E=1E9,ha=8;ha--;)e(ha),V(ha),ra=n(),E>ra&&(E=ra,D=ha),e(ha);e(D);V(D);J=[]};return function(){function ha(fa){return/^#[0-9a-f]{3}(?:[0-9a-f]{3})?$/i.test(fa)}function ra(fa,X){for(var G in fa=document.createElementNS(b,
fa),X||{})fa.setAttribute(G,X[G]);return fa}var da,E,b="http://www.w3.org/2000/svg",x="";var P="string"==typeof l?{msg:l}:l||{};var H=P.pal||["#000"],ca=w(P.dim)||256,h=[1,0,0,1,E=-1<(E=w(P.pad))?E:4,E],I=ha(I=H[0])?I:"#000",u=ha(u=H[1])?u:0;H=P.vrb?0:1;sa(P.msg||"",k[P.ecl]||k.M,0==P.ecb?0:1,P.mtx);var A=r+2*E;for(P=r;P--;){var T=0;for(E=r;E--;)B[P][E]&&(H?(T++,B[P][E-1]||(x+="M"+E+","+P+"h"+T+"v1h-"+T+"v-1z",T=0)):x+="M"+E+","+P+"h1v1h-1v-1z")}return da=ra("svg",{viewBox:[0,0,A,A].join(" "),width:ca,
height:ca,fill:I,"shape-rendering":"crispEdges",xmlns:b,version:"1.1"}),u&&da.appendChild(ra("path",{fill:u,d:"M0,0V"+A+"H"+A+"V0H0Z"})),da.appendChild(ra("path",{transform:"matrix("+h+")",d:x})),da}()}
(function(){var l=window.sg.common.$q,d=window.sg.common.utils,K=window.sg.common.libs,D=d.addEventListener,r=d.removeAllEventListeners,B=window.sg.common.lazyLoad,J=window.sg.common.constants.BREAKPOINTS,U=window.sg.common.constants.KEY_CODE,O=window.sg.common.swiperManager,w=window.sg.common.scrollbar,t=window.sg.components.Tooltip,C,v,f,q,k,F,ea,e,n={},Q=null,Y=null,N=null,y=function(E){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--belo4d-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(E),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)};y.instances.set(E,this);this.init()};y.prototype.init=function(){this.setElements();this.bindEvents();this.resize()};y.prototype.reInit=function(){this.init()};y.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};y.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()};y.prototype.reInitDotListTooltip=
function(){var E=this;this.el.hdd02TooltipContainer=this.el.section.find(this.selector.hdd02TooltipShow);this.el.hdd02TooltipContainer.off("mouseenter").on("mouseenter",function(b){return E.handler.handleHdd02TooltipOpen(b)});this.el.hdd02TooltipContainer.off("focus").on("focus",function(b){return E.handler.handleHdd02TooltipOpen(b)});this.el.hdd02TooltipContainer.off("click").on("click",function(b){return E.handler.handleHdd02TooltipOpen(b)})};y.prototype.handleHdd02TooltipOpen=function(E){E=l(E.currentTarget);
var b=E.closest(this.selector.hdd02TooltipContainer),x=b.find(this.selector.hdd02TooltipHide);this.focusTargetEl&&l(this.focusTargetEl).target[0].matches(this.selector.hdd02TooltipHide)?this.focusTargetEl=E.target[0]:(b.on("mouseleave",this.handler.handleHdd02TooltipClose),b.on("focusout",this.handler.handleHdd02TooltipClose),x.on("click",this.handler.handleHdd02TooltipClose),l(document).on("keydown",this.handler.handleHdd02TooltipClose),E.attr("aria-expanded",!0),b.attr("data-tooltip-show",!0))};
y.prototype.handleHdd02TooltipClose=function(E){var b=E.type,x=l(E.target),P=E.relatedTarget||document.avtiveElement,H=x.closest(this.selector.hdd02TooltipContainer),ca=H.find(this.selector.hdd02TooltipShow),h=H.find(this.selector.hdd02TooltipHide);if("focusout"!==b||!l(P).closest(this.selector.hdd02TooltipContainer).target.length)if("keydown"!==b||E.keyCode===U.ESC)H.off("mouseleave",this.handler.handleHdd02TooltipClose),H.off("focusout",this.handler.handleHdd02TooltipClose),h.off("click",this.handler.handleHdd02TooltipClose),
l(document).off("keydown",this.handler.handleHdd02TooltipClose),"focusout"!==b&&x.target[0].matches(this.selector.hdd02TooltipHide)&&(this.focusTargetEl=h.target[0],ca.focus()),ca.attr("aria-expanded",!1),H.attr("data-tooltip-show",!1)};y.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"}))};y.prototype.sameHeight=function(E){var b=window.sg.components.ProductDetailKvNew;if(!(0>=E.target.length||this.stateWide)){var x=Math.round(E.target[0].getBoundingClientRect().top),P=0,H=0;E.css({height:""});E.target.forEach(function(ca,h){var I=ca.getBoundingClientRect(),u=Math.round(I.top);l(ca).eq(0).css({height:I.height+"px"});0!==h&&u!==x&&(l(E.target.slice(h-H,h)).css({height:P+"px"}),x=u,H=P=0);I.height>P&&(P=I.height);H++});1<H&&l(E.target.slice(E.target.length-
H)).css({height:P+"px"});b&&b.callResize&&b.callResize()}};y.prototype.handleOptionBoxClick=function(E){this.el.section.hasClass("off-change")?this.changeBeforChecked=this.el.section.target[0].querySelector(this.selector.optionItem+" input:checked"):(E=l(E.currentTarget).closest(this.selector.optionItem).target[0],this.showMessage(E))};y.prototype.handleOptionChange=function(E){null!==this.changeBeforChecked?(this.changeBeforChecked.checked=!0,this.changeBeforChecked=null):this.changeSelect(E.target)};
y.prototype.handleOptionButtonClick=function(E){this.changeSelect(E.target)};y.prototype.triggerChange=function(E){this.changeBeforChecked=null;E.checked=!0;this.showMessage(l(E).closest(".pd-select-option__item").target[0],!1,!0);this.changeSelect(E)};y.prototype.changeSelect=function(E){E=l(E).closest(".pd-select-option__item");E.hasClass("is-disabled")||(this.el.section.find(".pd-select-option__item").removeClass("selected"),E.addClass("selected"))};y.prototype.showMessage=function(E,b,x){b=void 0===
b?!1:b;x=void 0===x?!1:x;var P=window.sg.components.ProductDetailKvNew;E=l(E);var H=E.find(this.selector.radio),ca=this.el.section.find(this.selector.message),h=E.closest(this.selector.optionWrap),I=E.find(this.selector.disclaimer);this.el.offsetMessage=h;h=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(u){"block"===
u.style.display&&(u=l(u).closest(".hdd02-buying-tool .pd-select-option").target[0],y.instances.has(u)&&y.instances.get(u).hideMessage())});0<ca.target.length&&(H.target[0].disabled||"true"===H.attr("aria-disabled")||b)&&(this.showMessageEl=ca,h=this.showAlertMessage(ca,H.attr("aria-label")));0===h&&0<I.target.length&&(this.showMessageEl=I,h=this.showDisclaimer(I));this.careMotion||this.el.offsetMessage.finish().animate({paddingBottom:h+"px"},600,function(){P&&P.resize&&P.resize()});x||0<E.find("input.option-result-focus, button.option-result-focus").target.length&&
P&&P.optionClose&&P.optionClose(this.el.section.target[0].nextElementSibling.querySelector(".option-result__close"))};y.prototype.showAlertMessage=function(E,b){E.find("span").text(b);E.finish().css({display:"block",opacity:0});b=E.height();E.finish().css({height:b+"px"});E.animate({opacity:1},600,function(){E.css({opacity:1,height:"",top:""})});return b+parseFloat(E.css("margin-top"))};y.prototype.showDisclaimer=function(E){E.finish().css({display:"block",opacity:0});var b=E.height();this.careMotion?
(E.css({height:0}),E.animate({opacity:1,height:b+"px"},200,function(){E.css({opacity:1,height:""})})):(E.css({}),E.animate({height:b+"px",opacity:1},200,function(){E.css({opacity:1,height:"",top:""})}));return b+parseFloat(E.css("margin-top"))};y.prototype.hideMessage=function(){var E=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(b){if("block"===
b.style.display){var x=l(b);E.careMotion?x.finish().animate({opacity:"0",height:"0"},600,function(){b.style.display="";b.style.height=""}):(x.finish().css({}),x.animate({opacity:"0"},600,function(){x.attr("style","")}));E.showMessageEl=null}}),this.careMotion||this.el.offsetMessage.finish().animate({paddingBottom:"0px"},600))};y.prototype.handlePdTooltipEvent=function(E){var b=E.currentTarget,x=b.closest(".pd-select-option__tooltip"),P=x.querySelector(".pd-select-option__tooltip__message"),H=x.querySelector(".pd-select-option__tooltip__close"),
ca=function(){x.classList.remove("is-active");x.classList.remove("is-click");P.setAttribute("tabindex",-1);document.removeEventListener("click",h);H.removeEventListener("click",h)},h=function(I){("click"===I.type&&!b.contains(I.target)&&!P.contains(I.target)||"click"===I.type&&H.contains(I.target))&&ca()};x.classList.contains("is-active")?ca():(x.classList.add("is-click"),x.classList.add("is-active"),P.setAttribute("tabindex",0),D(H,"click",h),D(document,"click",h));E.stopPropagation()};y.prototype.handleViewMoreToggle=
function(E){var b=this,x=l(E.currentTarget);E=x.find(".pd-select-option__view-more-text");var P=x.attr("data-text-open"),H=x.attr("data-text-close"),ca=this.el.section.find(this.selector.viewMoreItem).target.slice(3),h=function(){x.attr("data-is-animation")&&window.requestAnimationFrame(h)};"true"===x.attr("aria-expanded")?("desktop"===d.getCurrentDevice()&&(l(ca[0]).off("transitionstart").on("transitionstart",function(){x.attr("data-is-animation",!0);var I=document.querySelector("body").scrollLeft,
u=window.scrollY+b.el.section.target[0].getBoundingClientRect().top,A=l(".pdd01-anchor-nav-v2--fixed").height()||0;window.scrollTo(I,u-A+10,"smooth");window.requestAnimationFrame(h)}),l(ca[ca.length-1]).off("transitionend").on("transitionend",function(){x.removeAttr("data-is-animation");window.dispatchEvent(new Event("resize"))})),ca.forEach(function(I){var u=l(I);u.addClass("pd-select-option__view-more--show");u.slideUp(400,function(){u.removeClass("pd-select-option__view-more--show");I.style=""})}),
E.text(P),x.attr("aria-expanded",!1)):(l(ca[0]).off("transitionstart"),l(ca[ca.length-1]).off("transitionend"),ca.forEach(function(I){I=l(I);I.find(".image").target.forEach(function(u){B.forceLoad(u)});I.addClass("pd-select-option__view-more--show");I.slideDown(400,function(){})}),E.text(H),x.attr("aria-expanded",!0))};y.prototype.handleShowPdPopup=function(E){E=E.currentTarget;var b=l(E).attr(this.selector.dataTargetPopup),x=window.sg.components.ProductDetailKvNew;switch(b){case "mordernType":case "beveledType":x&&
x.openBezelPopup&&x.openBezelPopup(E)}};y.prototype.handleClickCounter=function(E){var b=l(E.currentTarget).closest(".pd-select-option__counter").find(".pd-select-option__counter--number"),x=parseInt(b.target[0].value);x=E.currentTarget.classList.contains("icon-minus")?1<x?--x:1:999>x?++x:999;b.attr("value",x);b.target[0].value=x};y.prototype.handleInputCounterNum=function(E){E.target.setAttribute("value",E.target.value)};y.prototype.handleComboOffer=function(E){var b=l(E.target),x=b.closest(this.selector.offerChild),
P=x.find(".hidden"),H=JSON.parse(P.target[0].dataset.globalText),ca=b;"pdOfferToggle"!==E.target.getAttribute("data-js-action")&&(ca=b.closest(this.selector.offerChildToogleButton));x.hasClass("open")?(x.removeClass("open"),ca.attr("aria-expanded","false"),P.text(H.Expand)):(l(this.selector.offerChild).removeClass("open"),l(this.selector.offerChildToogleButton).attr("aria-expanded","false"),l(this.selector.offerChildToogleButton).find(".hidden").text(H.Expand),x.addClass("open"),ca.attr("aria-expanded",
"true"),B.setLazyLoad(),P.text(H.Collapse))};y.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);t.reInit()};y.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)};y.prototype.bindChipSelectEvent=function(){var E=this;this.el.section.find(".pd-select-option__list--color-chip .pd-option-selector input").target.forEach(function(b){b.addEventListener("change",function(){E.el.section.find(".pd-select-option__color-name span").target[0].innerText=b.closest(".pd-option-selector").querySelector(".pd-option-selector__label .hidden").innerText})})};y.prototype.bindAddOnProductEvent=function(){var E=this.el.section.find(this.selector.addonSummaryWrap);
if(E.target.length){var b=E.find(this.selector.addonSummaryCTA);b.off("click").on("click",function(){E.hasClass("open")?(E.removeClass("open"),b.attr("aria-expanded","false")):(E.addClass("open"),b.attr("aria-expanded","true"))})}};y.prototype.toggleVDAddOnViewMoreCTA=function(E){E=l(E);E.find(".add-on-product-list-wrap--vd").target.length&&E.find(this.selector.viewMoreCTA).eq(0).trigger("click")};y.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 R=function(){V(document.querySelector(".hdd02-pdp-header__buying-tool"));ka();l(".hdd02-buying-tool .pd-select-option").target.forEach(function(E){y.instances.has(E)||new y(E)})},V=function(E){E instanceof HTMLElement&&(C=E.querySelector('[data-target-popup\x3d"tradeInLearnMorePopup"]'),v=E.querySelector('[data-target-popup\x3d"hubbleCareinfoPopup"]'),f=E.querySelector('[data-target-popup\x3d"upgradeLearnMorePopup"]'),q=E.querySelector('[data-target-popup\x3d"manufacturerInfoPopup"]'),
k=E.querySelector('[data-target-popup\x3d"cancelReturnPolicyPopup"]'),F=E.querySelector('[data-target-popup\x3d"warrantyPolicyPopup"]'),ea=E.querySelector('[data-target-popup\x3d"leasingLearnmorePopup"]'),e=E.querySelectorAll(".pd-delivery-pickup__button .cta, .pd-delivery-pickup__edit-button.cta"))},ka=function(){n.tradeInLearnMorePopupBtnEl&&(r(C,"click"),n.tradeInLearnMorePopupBtnEl=!1);n.hubbleCareinfoPopupBtnEl&&(r(v,"click"),n.hubbleCareinfoPopupBtnEl=!1);n.upgradeLearnMorePopupBtnEl&&(r(f,
"click"),n.upgradeLearnMorePopupBtnEl=!1);n.manufacturerInfoPopupBtnEl&&(r(q,"click"),n.manufacturerInfoPopupBtnEl=!1);n.cancelReturnPolicyPopupBtnEl&&(r(k,"click"),n.cancelReturnPolicyPopupBtnEl=!1);n.warrantyPolicyPopupBtnEl&&(r(F,"click"),n.warrantyPolicyPopupBtnEl=!1);n.leasingLearnmorePopupBtnEl&&(r(ea,"click"),n.leasingLearnmorePopupBtnEl=!1);V(document.querySelector(".hdd02-pdp-header__buying-tool"));C&&(D(C,"click",function(E){da(E.target.dataset.targetPopup)}),n.tradeInLearnMorePopupBtnEl=
!0);v&&(D(v,"click",function(E){da(E.target.dataset.targetPopup)}),n.hubbleCareinfoPopupBtnEl=!0);f&&(D(f,"click",function(E){da(E.target.dataset.targetPopup)}),n.upgradeLearnMorePopupBtnEl=!0);q&&(D(q,"click",function(E){da(E.target.dataset.targetPopup)}),n.manufacturerInfoPopupBtnEl=!0);k&&(D(k,"click",function(E){da(E.target.dataset.targetPopup)}),n.cancelReturnPolicyPopupBtnEl=!0);F&&(D(F,"click",function(E){da(E.target.dataset.targetPopup)}),n.warrantyPolicyPopupBtnEl=!0);ea&&(D(ea,"click",function(E){da(E.target.dataset.targetPopup)}),
n.leasingLearnmorePopupBtnEl=!0);e&&e.forEach(function(E){D(E,"click",function(b){0===l(b.currentTarget).closest(".pd-delivery-pickup__item").index()&&ha(document.querySelector(".pdd23-edd-popup"),b.currentTarget);b.preventDefault()})})},va=function(){var E=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");d.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&d.removeMobileFocusLoop();null!==Q&&(l(Q).focus(),Q=null);E.hide();E.find(".add-on-popup__close").off("click");
E.off("keydown",Aa);E.find(".swiper-button-prev").removeAttr("tabindex");E.find(".swiper-button-next").removeAttr("tabindex");sa();l(window).off("resize",sa)},Aa=function(E){var b=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");if(E.keyCode===K.keyCode.TAB_KEY){var x=1<b.find(".swiper-slide").target.length?b.find(".swiper-button-prev").hasClass("swiper-button-disabled")?b.find(".swiper-button-next").target[0]:b.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0]:b.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0];
if(!1===E.shiftKey&&b.find(".add-on-popup__close").target[0]===document.activeElement)E.preventDefault(),x.focus();else if(!0===E.shiftKey&&x===document.activeElement||!0===E.shiftKey&&b.target[0]===document.activeElement)E.preventDefault(),b.find(".add-on-popup__close").focus()}},sa=function(){var E=l(".hdd02-pdp-header").find(".add-on__layer-learn-more"),b=document.documentElement.clientHeight,x=E.find(".add-on-popup__inner"),P=E.find(".scrollbar"),H=E.find(".scrollbar__wrap");"block"===E.target[0].style.display?
(J.MOBILE>=d.getViewPort().width?(H=H.target[0].getBoundingClientRect(),b=parseInt(b-H.top),x.css({"min-height":""}),P.css({height:b+"px"})):b<=x.target[0].getBoundingClientRect().height?(x.css({"min-height":b+"px",height:b+"px"}),x=x.target[0].getBoundingClientRect(),b=H.target[0].getBoundingClientRect(),x=parseInt(x.height-b.top),P.css({height:x+"px"})):(x.css({"min-height":"",height:""}),P.css({height:""})),setTimeout(function(){w.resize(P.target[0])},300)):(x.css({"min-height":"",height:""}),
P.css({height:""}))},ha=function(E,b){b&&b.closest(".pd-delivery-pickup__item")&&(Y=b.closest(".pd-delivery-pickup__item"));N=l(E);l(window).off("resize",ra).on("resize",ra)},ra=function(){var E=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__wrap").clientHeight,b=document.querySelector(".pdd23-edd-popup").querySelector(".scrollbar__contents").scrollHeight;E<b?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")},
da=function(E){window.sg.components[E].showPopup()};y.instances=new WeakMap;window.sg.components.PDbuyingToolNew={init:R,reInit:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(E){y.instances.has(E)?y.instances.get(E).reInit():new y(E)})},showMessage:function(E){var b=l(E).closest(".hdd02-buying-tool .pd-select-option").target[0];y.instances.has(b)&&y.instances.get(b).showMessage(E,!0)},bindShowPdPopupEvent:ka,bindPdTooltipEvent:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(E){y.instances.has(E)&&
y.instances.get(E).bindPdTooltipEvent()})},bindComboOfferEvent:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(E){y.instances.has(E)&&y.instances.get(E).bindComboOfferEvent()})},openAddOnLearnMore:function(E){var b=l(".hdd02-pdp-header").find(".add-on__layer-learn-more");E&&(Q=E);d.hiddenScroll();b.show();B.setLazyLoad();b.on("keydown",Aa);b.find(".add-on-popup__close").off("click").on("click",va);if(E=b.find(".basic-swiper").target[0])O.slideUpdate(E),O.slideReInit(E);
1<b.find(".swiper-slide").target.length?E=b.find(".swiper-button-next").target[0]:(b.find(".swiper-button-prev").attr("tabindex","-1"),b.find(".swiper-button-next").attr("tabindex","-1"),E=b.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);E.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&d.setMobileFocusLoop(b.target[0]);sa();l(window).off("resize",sa).on("resize",sa)},toggleVDAddOnViewMoreCTA:function(E){var b=l(E).closest(".hdd02-buying-tool .pd-select-option").target[0];
y.instances.has(b)&&y.instances.get(b).toggleVDAddOnViewMoreCTA(E)},viewMoreVDAddOn:function(){l(".hdd02-buying-tool .pd-select-option").target.forEach(function(E){y.instances.has(E)&&y.instances.get(E).viewMoreVDAddOn()})},triggerChange:function(E){var b=l(E).closest(".hdd02-buying-tool .pd-select-option").target[0];y.instances.has(b)&&y.instances.get(b).triggerChange(E)},openPopup:ha,closePopup:function(E){0<l(Y).target.length&&(!1===E?(l(Y).find(".pd-delivery-pickup__content").show(),l(Y).find(".pd-delivery-pickup__content-summarized").hide(),
Q=Y.querySelector(".pd-delivery-pickup__button .cta")):(l(Y).find(".pd-delivery-pickup__content").hide(),l(Y).find(".pd-delivery-pickup__content-summarized").show(),Q=Y.querySelector(".pd-delivery-pickup__edit-button.cta")));l(Q).focus();Q=null;null!==N&&(N.hide(),N=null)}};l.ready(R)})();
(function(){var l=window.sg.common.$q,d=window.sg.common.utils,K=window.sg.components.PDbuyingToolNew,D={section:".hdd02-pdp-header",productGallery:".hdd02-gallery",PDbuyingToolNew:".hdd02-buying-tool .pd-select-option"},r=function(J){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(J),
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"===d.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)};r.instances.set(J,this);this.init()};r.prototype.init=function(){this.setElements();this.bindEvents();this.el.section.hasClass(this.class.headerKVUxV2Class)&&(this.pdType="uxv2");this.resize()};r.prototype.reInit=function(){this.init()};r.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("belo4d-mobile-app"))&&!this.el.section.hasClass("hdd02-pdp-header--is-shopapp")&&this.el.section.addClass("hdd02-pdp-header--is-shopapp")};r.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)};r.prototype.scroll=function(){var J=(new Date).getTime();J>this.scrollTimer&&(this.scrollTimer=J+500,this.galleryRect.mode=null,this.setGalleryRect());this.setGalleryTop()};r.prototype.resize=function(){var J=this;this.statePc="desktop"===d.getCurrentDevice();this.galleryRect.mode=null;this.setGalleryRect();this.setGalleryTop();clearTimeout(this.resizeTimer);this.resizeTimer=null;this.resizeTimer=setTimeout(function(){J.galleryRect.mode=null;J.setGalleryRect();J.setGalleryTop()},
400)};r.prototype.setGalleryRect=function(){var J=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 U=0;J=this.el.section.offset().top+J;var O=0,w=this.el.buyingTool.find(".hdd02-buying-tool");if(0<w.target.length){var t=w.target[0].lastElementChild;["paddingBottom","marginBottom"].forEach(function(f){O+=parseInt(window.getComputedStyle(t)[f])})}w=
l(".pdd01-anchor-nav-v2__menu-inner");var C=l(".pdd39-anchor-nav"),v=0;window.sg.components.pdHeaderNavigationV2&&0<w.target.length?v=w.offset().height:window.sg.components.Pdd39AnchorNav&&0<C.target.length?v=parseFloat(getComputedStyle(C.target[0]).getPropertyValue("--pdd39-fixed-header-height").trim()):this.galleryRect.padding=0;U+=v;this.galleryRect.padding=v;this.galleryRect.start=J-U;this.galleryRect.attach=this.el.section.offset().height-this.el.galleryArea.offset().height-O;this.galleryRect.end=
J+this.galleryRect.attach-U};r.prototype.scrollGalleryOff=function(J){J?(this.setGalleryTop(0),this.scrollOffGallery=J):(this.scrollOffGallery=J,this.resize())};r.prototype.setGalleryTop=function(J){J=void 0===J?document.body.scrollTop||document.documentElement.scrollTop:J;if(!this.scrollOffGallery){var U=this.el.buyingTool.height()||0,O=this.el.info.height()||0;U+=O;this.el.galleryArea.height()>U||("default"===this.pdType?this.statePc?J>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"):J>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"),J>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")))}};r.prototype.optionClose=function(J){var U=this,O=l(J).closest(this.selector.option);if("none"!==O.target[0].style.display){J=
l(O.target[0].previousElementSibling);if(J.hasClass("pd-select-option")){J=J.find('input.option-result-focus, .text-field input[type\x3d"text"]');var w=J.attr("type");"radio"===w?!0!==J.target[0].checked&&(J.target[0].checked=!0,J.trigger("change")):"text"===w&&(J.target[0].value="",J.focus())}O.stop().slideUp(600,function(){O.hide();U.resize()})}};r.prototype.openBezelPopup=function(J){this.popupData={btn:J,popup:l("#"+J.dataset.targetPopup)};this.popupData.popup.css({display:"block"});this.popupData.popup.setLayerFocus(".layer-popup__close",
".layer-popup__close",!1);d.setMobileFocusLoop(this.popupData.popup.target[0]);d.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])};r.prototype.closeBezelPopup=function(){this.popupData.popup.css({display:""});
this.popupData.popup.offLayerFocus();d.removeMobileFocusLoop();d.visibleScroll();this.popupData.btn.focus();this.popupData={btn:null,popup:null}};r.callResize=function(){l(D.ProductDetailKvNew).target.forEach(function(J){r.instances.has(J)&&r.instances.get(J).resize()})};var B=function(){l(D.section).target.forEach(function(J){r.instances.has(J)||new r(J)})};r.instances=new WeakMap;window.sg.components.ProductDetailKvNew={init:B,reInit:function(){l(D.section).target.forEach(function(J){r.instances.has(J)?
r.instances.get(J).reInit():new r(J)});K&&K.reInit();l(D.section).find(".text-field").target.forEach(function(J){window.sg.common.textField.init(J)});l(D.section).find(".text-field-v2").target.forEach(function(J){window.sg.common.textFieldv2.reInit(J)})},resize:function(){l(D.ProductDetailKvNew).target.forEach(function(J){r.instances.has(J)&&r.instances.get(J).resize()})},showMessage:function(J){K&&K.showMessage(J,!0)},productFixed:function(){var J=l(D.section);r.addClass("product-detail-kv--fixed");
r.instances.get(J.target[0]).setGalleryTop();l(D.productGallery).css({position:"fixed",top:0})},scrollGalleryOff:function(J,U){r.instances.has(J)&&r.instances.get(J).scrollGalleryOff(U)},optionClose:function(J){var U=J&&l(J).closest(D.section).target[0];r.instances.has(U)&&r.instances.get(U).optionClose(J)},triggerChange:function(J){K&&K.triggerChange(J)},scrollGo:function(){},init360:function(){window.sg.common.image360.initAll()},openBezelPopup:function(J){var U=l(J).closest(D.section).target[0];
r.instances.has(U)&&r.instances.get(U).openBezelPopup(J)}};l.load(B)})();
(function(){var l=window.sg.common.$q,d=window.sg.common.utils,K=window.sg.common.swiperManager,D=l(window),r=window.sg.common.scrollbar,B=window.sg.common.lazyLoad,J=window.sg.common.video,U=window.sg.common.utils.triggerEvent,O=window.sg.common.image360,w=function(e){var n=e;"undefined"!==typeof Granite&&(n=Granite.I18n.get(e));return n},t="undefined"!==typeof digitalData&&digitalData&&digitalData.page&&digitalData.page.pageInfo&&digitalData.page.pageInfo.pageTrack||"",C=function(e){this.el={popup:l(e),
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=d.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;e&&C.instances.set(e,this);this.init()};C.prototype.init=function(){this.setElements();this.bindEvents()};C.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)};C.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)};
C.prototype.open=function(e,n){this.el.popup.setLayerFocus(".layer-popup",".hdd02-gallery__popup-close");this.setScrollbar();this.changeCurrentView(e,n);this.el.popup.addClass("hdd02-popup-open");d.setMobileFocusLoop(this.el.popup.target[0]);var Q=(e=this.el.title.target[0])||d.getFirstFocusableEl(this.el.popup.target[0]);e&&e.setAttribute("tabindex","-1");setTimeout(function(){Q&&Q.focus()},20)};C.prototype.close=function(){this.isDragging||(this.el.popup.offLayerFocus(),this.stopVideo(),this.el.popup.removeClass("hdd02-popup-open"),
d.removeMobileFocusLoop())};C.prototype.playVideo=function(){J.init(this.currentVideoEl)};C.prototype.stopVideo=function(){this.currentVideoEl&&J.dispose(this.currentVideoEl)};C.prototype.changeCurrentView=function(e,n){e=void 0===e?this.popupType.image:e;n=void 0===n?0:n;var Q=this.el.thumbnailWrap.attr("data-text-selected")||"";this.stopVideo();switch(e){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(n);this.activeImageContent=this.el.imageContentList.eq(n);this.activeImageThumbnail.addClass("hdd02-gallery__popup-image-item--on");this.activeImageThumbnail.find("a, button").attr("title",
Q);this.activeImageContent.addClass("image-content--show");this.currentImageEl=this.activeImageContent.find(".default-image").target[0];this.currentZoomImgContainer=this.el.zoomImageContentList.target[n];this.currentZoomImg=l(this.currentZoomImgContainer).find(".image img.image__main").target[0];this.currentSnackBar=this.el.snackbarList.target[n];B.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(n),
this.activeVideoContent=this.el.videoContentList.eq(n),this.activeVideoThumbnail.addClass("hdd02-gallery__popup-video-item--on"),this.activeVideoThumbnail.find("a, button").attr("title",Q),this.activeVideoContent.addClass("video-content--show"),this.currentVideoEl=this.activeVideoContent.find(".video").target[0],B.setLazyLoadManually(this.currentVideoEl),this.playVideo(),this.el.controlBtnContainer.addClass("hdd02-gallery__popup-control--hide"),this.el.imageContainer.hide(),this.el.videoContainer.show()}};
C.prototype.setScrollbar=function(){this.el.scrollbar.target.forEach(function(e){r.reInit(e)})};C.prototype.setCursorAndSnackBarState=function(){this.currentZoomStep!==this.minZoomStep&&(this.currentZoomStep===this.maxZoomStep?this.currentSnackBar.innerText=w("Click or tap to zoom out"):this.prevZoomStep<this.currentZoomStep?this.currentSnackBar.innerText=w("Click or tap to zoom in"):this.prevZoomStep>this.currentZoomStep&&(this.currentSnackBar.innerText=w("Click or tap to zoom out")))};C.prototype.setControllerState=
function(){function e(){n.classList.contains("control-hide")&&n.classList.remove(Q)}var n=this.el.controlListContainer.target[1],Q=this.classes.controlListContainerShow;n&&(this.currentZoomStep<=this.maxZoomStep&&this.currentZoomStep>this.minZoomStep?(n.classList.add(Q),requestAnimationFrame(function(){n.classList.remove("control-hide")})):(n.addEventListener("transitionend",e,{once:!0}),n.classList.add("control-hide")))};C.prototype.setZoomControlBtnState=function(e){this.currentZoomStep===this.minZoomStep?
(this.el.zoomInBtn.removeAttr("disabled"),this.el.zoomOutBtn.attr("disabled",""),e&&this.el.zoomInBtn.focus()):this.currentZoomStep===this.maxZoomStep?(this.el.zoomInBtn.attr("disabled",""),this.el.zoomOutBtn.removeAttr("disabled"),e&&this.el.zoomOutBtn.focus()):(this.el.zoomInBtn.removeAttr("disabled"),this.el.zoomOutBtn.removeAttr("disabled"))};C.prototype.resetZoom=function(){this.currentZoomStep=this.prevZoomStep=this.minZoomStep;this.currentZoomImgContainer.style.display="";this.currentImageEl.style.display=
""};C.prototype.zoomIn=function(){this.prevZoomStep=this.currentZoomStep;this.currentZoomStep++;B.setLazyLoadManually(this.currentZoomImgContainer);this.currentZoomStep>this.minZoomStep&&(this.currentZoomImgContainer.style.display="block",this.currentImageEl.style.display="none")};C.prototype.zoomOut=function(){this.prevZoomStep=this.currentZoomStep;this.currentZoomStep--;this.currentZoomStep===this.minZoomStep&&this.resetZoom()};C.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"))};C.prototype.moveZoomImg=function(e,n){var Q=this.el.contentContainer.target[0].getBoundingClientRect(),
Y=this.currentZoomImg.getBoundingClientRect(),N=Math.abs(parseInt(Y.width-Q.width));Q=Math.abs(parseInt(Y.height-Q.height));0!==n&&(Y=n+parseInt(this.currentZoomImg.style.marginTop||0,0),Y=0>n?Math.max(-Q,Y):Math.min(Q,Y),Y>-Q&&Y<Q&&(this.el.moveUpBtn.removeAttr("disabled"),this.el.moveDownBtn.removeAttr("disabled")),Y===Q&&(this.el.moveUpBtn.attr("disabled",!0),!this.isDragging&&this.el.moveDownBtn.focus()),Y===-Q&&(this.el.moveDownBtn.attr("disabled",!0),!this.isDragging&&this.el.moveUpBtn.focus()),
this.currentZoomImg.style.marginTop=Y+"px");0!==e&&(this.isRtl?(n=e+parseInt(this.currentZoomImg.style.marginRight||0,0),n=0>e?Math.max(-N,n):Math.min(N,n),n>-N&&n<N&&(this.el.moveRightBtn.removeAttr("disabled"),this.el.moveLeftBtn.removeAttr("disabled")),n===N&&(this.el.moveRightBtn.attr("disabled",!0),!this.isDragging&&this.el.moveLeftBtn.focus()),n===-N&&(this.el.moveLeftBtn.attr("disabled",!0),!this.isDragging&&this.el.moveRightBtn.focus()),this.currentZoomImg.style.marginRight=n+"px"):(n=e+parseInt(this.currentZoomImg.style.marginLeft||
0,0),n=0>e?Math.max(-N,n):Math.min(N,n),n>-N&&n<N&&(this.el.moveLeftBtn.removeAttr("disabled"),this.el.moveRightBtn.removeAttr("disabled")),n===N&&(this.el.moveLeftBtn.attr("disabled",!0),!this.isDragging&&this.el.moveRightBtn.focus()),n===-N&&(this.el.moveRightBtn.attr("disabled",!0),!this.isDragging&&this.el.moveLeftBtn.focus()),this.currentZoomImg.style.marginLeft=n+"px"))};C.prototype.handleImageControlBtnClick=function(e){e=e.currentTarget.getAttribute("data-image-control");switch(e){case "zoomIn":case "zoomOut":this.handleZoomState(e);
break;case "up":case "down":case "left":case "right":this.handleImageMove(e)}};C.prototype.handleGalleryImagePointerDown=function(e){var n=e.clientX||e.touches[0].clientX,Q=e.clientY||e.touches[0].clientY;this.isDragging=!0;this.dragZoomXY=[n,Q];this.clickZoomXY=[n,Q];e.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)};C.prototype.handleGalleryImagePointerMove=function(e){var n=e.clientX||e.touches&&e.touches[0].clientX;e=e.clientY||e.touches&&e.touches[0].clientY;null!==this.dragZoomXY&&null!==this.currentZoomImgContainer&&
"block"===this.currentZoomImgContainer.style.display&&this.moveZoomImg(this.isRtl?this.dragZoomXY[0]-n:n-this.dragZoomXY[0],e-this.dragZoomXY[1]);this.dragZoomXY=[n,e]};C.prototype.handleGalleryImagePointerUp=function(){var e=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(){e.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(){e.isDragging=!1})};C.prototype.handleZoomState=function(e){var n=this;"reset"===e?this.resetZoom():"zoomIn"===e?this.zoomIn():"zoomOut"===e?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"!==e);this.currentZoomImg.classList.contains("image--loaded")?this.showZoomXY():this.currentZoomImg.addEventListener("load",function(){n.showZoomXY()})};C.prototype.handleImageMove=function(e){switch(e){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)}};C.prototype.handleChangeViewTargetClick=function(e){e=l(e.currentTarget);var n=e.parent();if(e.hasClass("hdd02-gallery__popup-image-link")){var Q=this.el.thumbnailImageItemList.target.findIndex(function(Y){return Y===n.target[0]});this.changeCurrentView(this.popupType.image,Q)}e.hasClass("hdd02-gallery__popup-video-link")&&(Q=this.el.thumbnailVideoItemList.target.findIndex(function(Y){return Y===
n.target[0]}),this.changeCurrentView(this.popupType.video,Q))};C.prototype.handleViewMoreClick=function(){var e=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 n=e.el.popup.find(e.selector.thumbnailImageItemList).eq(10).find(e.selector.thumbnailImageItemLink).target[0];n&&n.focus()},
50)):this.el.popupImageMoreCta.find("span").text(this.el.popupImageMoreCta.attr("data-more-text"));this.setScrollbar()};var v=function(e){this.el={popup:l(e)};this.selector={videoContentList:".video-content"};e&&v.instances.set(e,this);this.init()};v.prototype.init=function(){this.setElements();this.bindEvents()};v.prototype.setElements=function(){this.el.videoContentList=this.el.popup.find(this.selector.videoContentList)};v.prototype.bindEvents=function(){};v.prototype.playVideo=function(){J.init(this.currentVideoEl)};
v.prototype.stopVideo=function(){this.currentVideoEl&&J.dispose(this.currentVideoEl)};v.prototype.open=function(e){this.activeVideoContent&&this.activeVideoContent.removeClass("video-content--show");this.activeVideoContent=l(this.el.videoContentList.target[e]);this.activeVideoContent.addClass("video-content--show");this.currentVideoEl=this.activeVideoContent.find(".video").target[0];B.setLazyLoadManually(this.currentVideoEl);this.playVideo();this.el.popup.addClass("hdd02-popup-open");d.setFocusFirstFocusableEl(this.el.popup.target[0])};
v.prototype.close=function(){this.activeVideoContent&&(this.activeVideoContent.removeClass("video-content--show"),this.activeVideoContent=null);this.stopVideo();this.el.popup.removeClass("hdd02-popup-open")};var f=function(e,n){this.el={popup:l(e),popupCta:n};this.selector={qrCode:".qr-code"};e&&f.instances.set(e,this);this.init()};f.prototype.init=function(){this.setElements();this.bindEvents();this.setAr()};f.prototype.setElements=function(){this.el.arQrCode=this.el.popup.find(this.selector.qrCode)};
f.prototype.bindEvents=function(){};f.prototype.open=function(){this.isQRtype&&(this.el.popup.addClass("hdd02-popup-open"),d.setFocusFirstFocusableEl(this.el.popup.target[0]))};f.prototype.close=function(){this.el.popup.removeClass("hdd02-popup-open")};f.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())};f.prototype.buildAr=function(e){var n="https:"+
this.el.popupCta.attr("data-araos-href");"ios"===e?(n="https:"+this.el.popupCta.attr("data-arios-href"),this.el.popupCta.attr("rel","ar"),n+=".usdz"):n="intent://arvr.google.com/scene-viewer/1.0?file\x3d"+n+".glb#Intent;scheme\x3dhttps;package\x3dcom.google.android.googlequicksearchbox;action\x3dandroid.intent.action.VIEW;S.browser_fallback_url\x3dhttps://www.quick3d.org;end;";this.el.popupCta.attr("href",n)};f.prototype.setQrCode=function(){var e=window.location.href+"?ar";this.el.arQrCode.find("svg").target.length||
this.el.arQrCode.append(QRCode({msg:e}))};var q=function(e,n){this.el={popup:l(e),popupCta:n};this.isViewerInit=!1;e&&q.instances.set(e,this);this.init()};q.prototype.init=function(){this.setElements();this.bindEvents()};q.prototype.setElements=function(){this.el.image360=this.el.popup.find(".image-360")};q.prototype.bindEvents=function(){};q.prototype.open=function(){this.isViewerInit||(O.init(this.el.image360.target[0]),this.isViewerInit=!0);this.el.popup.addClass("hdd02-popup-open");d.setFocusFirstFocusableEl(this.el.popup.target[0])};
q.prototype.close=function(){this.el.popup.removeClass("hdd02-popup-open")};var k=function(e,n){this.el={popup:l(e),popupCta:n};e&&k.instances.set(e,this);this.init()};k.prototype.init=function(){this.setElements();this.bindEvents()};k.prototype.setElements=function(){};k.prototype.bindEvents=function(){};k.prototype.open=function(){var e=this;this.el.popup.setLayerFocus(".layer-popup",".hdd02-gallery__popup-close");this.el.popup.addClass("hdd02-popup-open");d.setFocusFirstFocusableEl(this.el.popup.target[0]);
if(null===document.querySelector("script[data-js360]")){var n=document.getElementsByTagName("head")[0],Q=document.createElement("link");Q.type="text/css";Q.rel="stylesheet";Q.href="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/css/popup360.css";n.appendChild(Q);Q=document.createElement("script");Q.dataset.js360=!0;n.appendChild(Q);Q.onload=function(){if(window.imgSeqViewer){var Y=new imgSeqViewer("#seqContainer");Y.init();var N=spinImageNewData[0],y=spinImageNewData[1],
R=[],V=[];if(null!=N&&null!=N.unfoldSpinImage)for(var ka=0;ka<N.unfoldSpinImage.length;ka++)R.push(N.unfoldSpinImage[ka].largeImgPath);if(null!=y&&null!=y.foldSpinImage)for(N=0;N<y.foldSpinImage.length;N++)V.push(y.foldSpinImage[N].largeImgPath);0!==R.length&&0!==V.length||l(".btn-changetype").hide();0===R.length?window.componentsGallery360(Y,V):window.componentsGallery360(Y,R,V)}else e.el.popup.find(".hdd02-gallery__popup-close").trigger("click")};Q.src="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/js/popupnew360.js"}else window.imgSeqViewer?
U(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 F=function(e){this.el={section:l(e),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=d.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)};F.instances.set(e,this);this.init()};F.prototype.init=function(){this.setElements();this.bindEvents();this.setSwiperStatus();this.handler.handleResize();"desktop"===this.deviceSize&&this.setImageItemList(!1,0)};F.prototype.reInit=function(){this.setElements();this.bindEvents();this.setSwiperStatus();window.sg.common.image.initAll();this.handler.handleResize();"desktop"===this.deviceSize&&
this.setImageItemList(!1,0)};F.prototype.setElements=function(){var e=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(n){C.instances.has(n)?C.instances.get(n).init():e.pcGalleryPopup=new C(n)});this.el.moVideoLayerPopup.target.forEach(function(n){v.instances.has(n)?v.instances.get(n).init():
e.moVideoPopup=new v(n)});this.el.arPopup.target.forEach(function(n){f.instances.has(n)?f.instances.get(n).init():e.arPopup=new f(n,e.el.viewInArBtn)});this.el.popup360.target.forEach(function(n){q.instances.has(n)?q.instances.get(n).init():e.popup360=new q(n,e.el.viewIn360Btn)});this.el.popup360New.target.forEach(function(n){k.instances.has(n)?k.instances.get(n).init():e.popup360New=new k(n,e.el.viewIn360Btn)})};F.prototype.bindEvents=function(){D.off("resize",this.handler.handleResize).on("resize",
this.handler.handleResize);D.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=K.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=K.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0])};F.prototype.setSwiperStatus=function(){this.swiper=K.getSwiper(this.el.swiperContainer.target[0]);this.moVideoThumbnailSwiper=K.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]);this.moVideoThumbnailSwiper||(this.el.moVideoThumbnailSwiperContainer.target.forEach(function(e){K.slideInit(e)}),
this.moVideoThumbnailSwiper=K.getSwiper(this.el.moVideoThumbnailSwiperContainer.target[0]));this.setTagging();this.swiper?this.initSwiper():(this.initSwiper(),this.swiper=K.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")))};
F.prototype.setTagging=function(){var e=this.el.hdd02PdpHeader.hasClass(this.classes.ux2)?"hdd02_gallery-"+t+"-swipe-indication":"hdd02_pdp header-"+t+"-swipe-indication";this.el.mobileArrow.attr("an-tr",e);this.el.mobileArrow.attr("an-ca","indication");this.el.mobileArrow.attr("an-ac","carousel");this.updateTagging()};F.prototype.updateTagging=function(){if(this.swiper){var e=this.swiper.activeIndex+1;this.el.mobileArrow.target.forEach(function(n){n=l(n);n.hasClass("screen-indicator--prev")&&n.attr("an-la",
"carousel:swipe:product gallery"+(e-1));n.hasClass("screen-indicator--next")&&n.attr("an-la","carousel:swipe:product gallery"+(e+1))})}};F.prototype.initSwiper=function(){var e=this;this.el.swiperContainer.target.forEach(function(n){K.slideReInit(n);K.slideInitEnd(n,function(){e.swiper=K.getSwiper(n);e.updateTagging();e.swiper.on("slideChangeTransitionEnd",function(){e.updateTagging()})})})};F.prototype.setImageItemList=function(e,n){var Q=this;this.el.pcThumbnailItemList.removeClass("hdd02-gallery__thumbnail-item--on");
this.el.imageItemList.target.forEach(function(Y,N){Y=l(Y);e||N===n?(Y.show(),l(Q.el.pcThumbnailItemList.target[n]).addClass("hdd02-gallery__thumbnail-item--on")):Y.hide()})};F.prototype.closeActivePopup=function(){this.currentActivePopup&&(this.currentActivePopup.close(),this.setOriginFocus(),this.currentActivePopup=null)};F.prototype.setOriginFocus=function(){this.focusTargetEl&&this.focusTargetEl instanceof Element&&(this.focusTargetEl.focus(),this.focusTargetEl=null)};F.prototype.openPcGalleryPopup=
function(e){if("mobile"!==this.deviceSize){var n=l(e),Q=0;n.hasClass("hdd02-gallery__thumbnail-item-video")?e=this.pcGalleryPopup.popupType.video:n.hasClass("hdd02-gallery__thumbnail-item-text")?e=this.pcGalleryPopup.popupType.image:n.hasClass("hdd02-gallery__image")?e=this.pcGalleryPopup.popupType.image:(e=this.pcGalleryPopup.popupType.image,Q=this.el.pcThumbnailItemList.target.findIndex(function(Y){return Y===n.parent().target[0]}),this.setImageItemList(!1,Q));this.closeActivePopup();this.pcGalleryPopup.open(e,
Q);this.currentActivePopup=this.pcGalleryPopup;this.el.hdd02PdpHeader.addClass("hdd02-pdp-header--gallery-popup-active");d.hiddenScroll()}};F.prototype.closeGalleryPopup=function(){this.closeActivePopup();this.el.hdd02PdpHeader.removeClass("hdd02-pdp-header--gallery-popup-active");d.visibleScroll()};F.prototype.openMoVideoPopupTarget=function(e){var n=l(e);e=this.el.moVideoThumbnailItemList.target.findIndex(function(Q){return Q===n.parent().target[0]});this.el.MoVideoLink.removeClass("hdd02-gallery__video-link--on");
n.eq(0).addClass("hdd02-gallery__video-link--on");this.closeActivePopup();this.moVideoPopup.open(e);this.currentActivePopup=this.moVideoPopup};F.prototype.closeLayerPopupTarget=function(){this.el.MoVideoLink.removeClass("hdd02-gallery__video-link--on");this.closeActivePopup()};F.prototype.handleViewInArClick=function(e){this.closeActivePopup();this.focusTargetEl=e.currentTarget;this.arPopup.open();this.currentActivePopup=this.arPopup};F.prototype.handleViewIn360Click=function(e){this.closeActivePopup();
this.focusTargetEl=e.currentTarget;this.popup360.open();this.currentActivePopup=this.popup360};F.prototype.handleViewIn360NewClick=function(e){this.closeActivePopup();this.focusTargetEl=e&&e.currentTarget;this.popup360New.open();this.currentActivePopup=this.popup360New;this.el.hdd02PdpHeader.addClass("hdd02-pdp-header--gallery-popup-active");d.hiddenScroll()};F.prototype.handleMoVideoPopupOpenClick=function(e){this.focusTargetEl=e=e.currentTarget;this.openMoVideoPopupTarget(e)};F.prototype.handleLayerPopupCloseClick=
function(){this.closeLayerPopupTarget()};F.prototype.handlePcGalleryPopupOpenClick=function(e){this.focusTargetEl=e=e.currentTarget;this.openPcGalleryPopup(e)};F.prototype.handlePcGalleryPopupCloseClick=function(e){this.closeGalleryPopup(e.currentTarget)};F.prototype.handleBgGalleryPopupCloseClick=function(e){this.currentActivePopup&&this.currentActivePopup.isDragging||e.target.classList.contains("layer-popup")&&this.closeGalleryPopup(e.currentTarget)};F.prototype.handleResize=function(){var e=this,
n=d.getCurrentDevice();this.deviceSize!==n&&(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"===n?(this.closeGalleryPopup(),this.setImageItemList(!0),this.el.swiperContainer.find(".swiper-slide").target.forEach(function(Q){l(Q).find(".hdd02-gallery__image").attr("tabindex",-1)})):setTimeout(function(){e.setImageItemList(!1,
0)},10)),setTimeout(function(){e.setSwiperStatus()},10));this.deviceSize=n};var ea=function(){l(".hdd02-gallery").target.forEach(function(e){F.instances.has(e)?F.instances.get(e).reInit(!0):new F(e)})};F.instances=new WeakMap;C.instances=new WeakMap;v.instances=new WeakMap;f.instances=new WeakMap;q.instances=new WeakMap;k.instances=new WeakMap;l.load(ea);window.sg.components.PDheaderGalleryNew={init:ea,reInit:function(){l(".hdd02-gallery").target.forEach(function(e){F.instances.has(e)?F.instances.get(e).reInit():
new F(e)})},openNew360Popup:function(){l(".hdd02-gallery").target.forEach(function(e){F.instances.has(e)&&F.instances.get(e).handleViewIn360NewClick()})}}})();
(function(){var l=window.sg.common.$q,d=window.sg.common.utils,K=window.sg.common.swiperManager,D=window.sg.common.scrollbar,r=window.sg.common.lazyLoad,B=function(U){this.el={section:l(U),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)};B.instances.set(U,this);this.init()};B.prototype.init=function(){this.setElements()};B.prototype.reInit=function(){this.init()};B.prototype.setElements=function(){this.el.dimensionsPopup=this.el.section.find(this.selector.dimensionsPopup);this.el.dimensionsPopupSwiper=this.el.dimensionsPopup.find(this.selector.dimensionsPopupSwiper)};B.prototype.openPopup=function(U,O){O=void 0===O?{}:O;this.popupData={btn:U,popup:l("#"+U.dataset.targetPopup)};this.popupData.popup.addClass("popup--open");
r.setLazyLoadManually(this.el.section.target[0]);this.popupData.popup.setLayerFocus(".layer-popup__inner",".layer-popup__close");d.setMobileFocusLoop(this.popupData.popup.target[0]);d.hiddenScroll();this.popupData.popup.find(".layer-popup__close").off("click",this.handler.closePopup).on("click",this.handler.closePopup);O.resizeHandler&&(this.resizeHandler=O.resizeHandler.bind(this),window.addEventListener("resize",this.resizeHandler));var w=(U=this.popupData.popup.find(this.selector.dimensionsPopupTitle).target[0])||
d.getFirstFocusableEl(this.popupData.popup.target[0]);U&&U.setAttribute("tabindex","-1");setTimeout(function(){w&&w.focus()},500)};B.prototype.closePopup=function(){var U=this;this.popupData.popup.removeClass("popup--open");this.popupData.popup.offLayerFocus();d.removeMobileFocusLoop();d.visibleScroll();this.el.window.off("click",this.handler.handleClickDim);this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null);setTimeout(function(){U.popupData.btn.focus();
U.popupData={btn:null,popup:null}},20)};B.prototype.setSwiperStatus=function(U){(this.swiper=K.getSwiper(U.target[0]))?this.initSwiper(U):(this.initSwiper(U),this.swiper=K.getSwiper(U.target[0]))};B.prototype.initSwiper=function(U){var O=this;U.target.forEach(function(w){K.slideReInit(w);K.slideInitEnd(w,function(){O.swiper=K.getSwiper(w)})})};B.prototype.setScrollbar=function(U){U.target.forEach(function(O){D.reInit(O)})};B.prototype.setDimensionsPopupHeight=function(){var U=this.el.dimensionsPopup.find(".layer-popup__inner").target[0].getBoundingClientRect().height,
O=this.el.dimensionsPopup.find(".layer-popup__title").target[0].getBoundingClientRect().height,w=this.el.dimensionsPopup.find(".pd-sellout-option__dimensions-popup-cta").target[0].getBoundingClientRect().height;O=Math.round(O+w);(w=this.el.dimensionsPopup.find(".scrollbar__wrap").target[0])&&(w.style.height=U-O+"px")};B.prototype.resizeDimensionsPopup=function(){var U=this,O=d.getCurrentDevice();clearTimeout(this.resizeTimer);this.resizeTimer=null;this.resizeTimer=setTimeout(function(){U.setScrollbar(U.el.dimensionsPopup.find(".scrollbar"));
U.setDimensionsPopupHeight();U.currentDevice!==O&&U.setSwiperStatus(U.el.dimensionsPopupSwiper);U.currentDevice=O},10)};B.prototype.openDimensionsPopup=function(U){this.openPopup(U,{resizeHandler:this.resizeDimensionsPopup});this.resizeDimensionsPopup();this.el.window.off("click",this.handler.handleClickDim).on("click",this.handler.handleClickDim)};B.prototype.handleClickDim=function(U){U&&!U.target.closest(".pd-sellout-option__dimensions-popup .layer-popup__inner")&&this.closePopup()};var J=function(){l(".pd-sellout-option").target.forEach(function(U){B.instances.has(U)?
B.instances.get(U).reInit(!0):new B(U)})};B.instances=new WeakMap;window.sg.components.SelloutOption={init:J,reInit:function(){l(".pd-sellout-option").target.forEach(function(U){B.instances.has(U)?B.instances.get(U).reInit():new B(U)})},openDimensionsPopup:function(U){var O=l(U).closest(".pd-sellout-option").target[0];B.instances.has(O)&&B.instances.get(O).openDimensionsPopup(U)},closePopup:function(){l(".pd-sellout-option").target.forEach(function(U){B.instances.has(U)&&B.instances.get(U).closePopup()})}};
l.load(J)})();
(function(){var l=window.sg.common.$q,d=window.sg.common.tab,K=window.sg.common.swiperManager,D=window.sg.common.constants.BREAKPOINTS,r=window.sg.common.utils,B=window.sg.common.scrollbar,J=window.sg.common.OptionSelector,U=window.sg.common.libs,O=r.setMobileFocusLoop,w=r.removeMobileFocusLoop,t=function(v){var f=this;this.el={window:l(window),component:l(v)};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(q){f.clickSelect(q.currentTarget)},clickMoreBtn:this.clickMoreBtn.bind(this),clickTab:function(){var q=f.el.tabBtn.target.indexOf(event.currentTarget);f.el.swiper.swiper.slideTo(q)},clickFooterBtn:function(){f.el.swiper.swiper.slideNext()},swiperTouchStart:function(q){f.isPc?f.el.swiper.swiper.allowTouchMove=
!1:0===l(q.target).closest(".option-selector").target.length&&(f.el.swiper.swiper.allowTouchMove=!0)},optionTouchDown:function(){f.el.window.off("mousemove",f.handler.optionTouchMove).on("mousemove",f.handler.optionTouchMove);f.el.window.off("touchmove",f.handler.optionTouchMove).on("touchmove",f.handler.optionTouchMove);f.el.window.off("mouseup",f.handler.optionTouchUp).on("mouseup",f.handler.optionTouchUp);f.el.window.off("touchend",f.handler.optionTouchUp).on("touchend",f.handler.optionTouchUp);
f.downOptionScroll=f.el.swiper.querySelector(".swiper-slide-active .scrollbar__wrap").scrollLeft},optionTouchMove:function(){B.scrollTo(f.el.swiper.querySelector(".swiper-slide-active \x3e .scrollbar"),0);null!==f.downOptionScroll&&f.el.swiper.swiper.allowTouchMove&&(f.el.swiper.swiper.allowTouchMove=!1)},optionTouchUp:function(){f.downOptionScroll=null;f.el.window.off("mousemove",f.handler.optionTouchMove);f.el.window.off("touchmove",f.handler.optionTouchMove);f.el.window.off("mouseup",f.handler.optionTouchUp);
f.el.window.off("touchend",f.handler.optionTouchUp)},focusLock:this.focusLock.bind(this),closePopup:this.closePopup.bind(this),slideChangeTransitionEnd:this.slideChangeTransitionEnd.bind(this),slideChangeTransitionStart:this.slideChangeTransitionStart.bind(this),slideResetTransitionStart:this.slideResetTransitionStart.bind(this)};t.instances.set(v,this);this.init()};t.prototype.setElements=function(){this.el.tabBtn=this.el.component.find(".tab__item-title");this.el.swiper=this.el.component.find(".pdd16-step-buying__contents .pdd16-step-buying__card-wrap").target[0];
this.el.StepSwiper=this.el.component.find(".pdd16-step-buying__add-on-list").target[0];this.el.StepSwiperSlide=this.el.component.find(".pdd16-step-buying__add-on-list").find(".swiper-slide");this.el.footer=this.el.component.find(".pdd16-step-buying__footer");this.el.dummyHeaer=this.el.component.find(".pdd16-step-buying__header__dummy");this.el.dummyFooter=this.el.component.find(".pdd16-step-buying__footer__dummy");this.el.viewIcon=this.el.component.find(".pdd16-step-buying__list-type \x3e a");this.el.selectBtn=
this.el.component.find(".pdd16-step-buying__card \x3e button.cta:not(.js-cta-stock), .pdd16-step-buying__card-cta button.cta:not(.js-cta-stock)");this.el.selectNum=this.el.component.find(".pdd16-step-buying__evoucher-list li:first-child .pdd16-step-buying__evoucher-title \x3e span");this.el.selectClearAll=this.el.component.find(".cta--clear-all");this.el.moreBtn=this.el.component.find(".pdd16-step-buying__view-more");this.el.tab=this.el.component.find(".tab");this.el.checkbox=this.el.component.find('.pdd16-step-buying__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]');
this.el.component.hasClass("pdd16-step-buying--default")?this.el.footerBtn=this.el.component.find(".pdd16-step-buying__footer .cta--step"):this.el.footerBtn=l([]);this.el.popup=this.el.component.find(".pdd16-step-buying__layer-learn-more");this.el.closePopupCta=this.el.popup.find(".layer-popup__close");this.downOptionScroll=null;this.el.component.find(".pdd16-step-buying__card-wrap .swiper-slide").target.forEach(function(v){var f=v.querySelectorAll(".pdd16-step-buying__card:nth-child(-n+6)");[].concat($jscomp.arrayFromIterable(f)).forEach(function(q){q.classList.add("is-show")});
l(f[f.length-1]).find(".pdd16-step-buying__tooltip").css({right:0,left:"auto"});6>=v.querySelectorAll(".pdd16-step-buying__card").length&&(v.querySelector(".pdd16-step-buying__view-more").style.display="none");f=v.querySelectorAll(".pdd16-step-buying__list-type \x3e a");v.classList.contains("pdd16-step-buying__2column")?(f[0].classList.add("on"),f[1].classList.remove("on")):(f[0].classList.remove("on"),f[1].classList.add("on"))});this.lastSlideIdx=0<this.el.StepSwiperSlide.target.length?this.el.StepSwiperSlide.target.length-
2:null};t.prototype.init=function(){this.setElements();void 0===this.el.swiper.swiper&&K.slideReInit(this.el.swiper);this.resize();this.bindEvents()};t.prototype.reInit=function(){this.setElements();window.sg.common.lazyLoad.setLazyLoad();void 0===this.el.swiper.swiper?K.slideReInit(this.el.swiper):K.slideUpdate(this.el.swiper);void 0===this.el.StepSwiper.swiper?K.slideReInit(this.el.StepSwiper):K.slideUpdate(this.el.StepSwiper);this.resize();this.bindEvents()};t.prototype.slideChangeTransitionStart=
function(){this.el.StepSwiperSlide.addClass("changing");this.el.StepSwiperSlide.removeClass("changed");D.MOBILE<r.getViewPort().width?this.el.StepSwiperSlide.eq(this.lastSlideIdx).hasClass("swiper-slide-active")&&(this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend")):this.el.StepSwiper.swiper.isEnd&&(this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlid32eIdx).removeClass("changedend"))};
t.prototype.slideChangeTransitionEnd=function(){D.MOBILE<r.getViewPort().width?this.el.StepSwiperSlide.eq(this.lastSlideIdx).hasClass("swiper-slide-active")&&(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changedend")):this.el.StepSwiper.swiper.isEnd?(this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changedend")):
(this.el.StepSwiperSlide.removeClass("changing"),this.el.StepSwiperSlide.addClass("changed"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"));this.setAccessbility()};t.prototype.slideResetTransitionStart=function(){D.MOBILE>=r.getViewPort().width&&(this.el.StepSwiper.swiper.isEnd?this.el.StepSwiperSlide.eq(this.lastSlideIdx).addClass("changingend"):this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changingend"),this.el.StepSwiperSlide.eq(this.lastSlideIdx).removeClass("changedend"))};
t.prototype.setSlideAria=function(v,f){v=l(v);!0===f?v.attr("aria-hidden",!0):v.attr("aria-hidden",!1)};t.prototype.setAccessbility=function(){var v=this;this.el.StepSwiperSlide.target.forEach(function(f){l(f).hasClass("swiper-slide-active")||l(f).hasClass("swiper-slide-next")?v.setSlideAria(f,!1):v.setSlideAria(f,!0)})};t.prototype.bindEvents=function(){var v=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(){v.setMaxHeight()});this.el.component.find(".option-selector").target.forEach(function(f){J.reInit(l(f))});this.el.component.find(".option-selector__wrap--capacity").target.forEach(function(f){1===
l(f).find(".option-selector__swiper-slide").target.length&&l(f).addClass("option-selector__wrap--capacity-single")});this.el.component.find(".pdd16-step-buying__card-option").target.forEach(function(f){f=l(f);f.off("mousedown").on("mousedown",v.handler.optionTouchDown);f.off("touchstart").on("touchstart",v.handler.optionTouchDown)});this.el.closePopupCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.el.StepSwiper&&void 0!==this.el.StepSwiper.swiper&&(this.el.StepSwiper.swiper.off("slideChangeTransitionEnd",
this.handler.slideChangeTransitionEnd).on("slideChangeTransitionEnd",this.handler.slideChangeTransitionEnd),this.el.StepSwiper.swiper.off("transitionEnd",this.handler.slideChangeTransitionEnd).on("transitionEnd",this.handler.slideChangeTransitionEnd),this.el.StepSwiper.swiper.off("slideChangeTransitionStart",this.handler.slideChangeTransitionStart).on("slideChangeTransitionStart",this.handler.slideChangeTransitionStart),this.el.StepSwiper.swiper.off("slideResetTransitionStart",this.handler.slideResetTransitionStart).on("slideResetTransitionStart",
this.handler.slideResetTransitionStart),this.setAccessbility());this.el.checkbox.off("change",this.handler.checkedCheckbox).on("change",this.handler.checkedCheckbox)};t.prototype.checkedCheckbox=function(){var v=this.el.checkbox.target.length,f=this.el.component.find('.pdd16-step-buying__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]:checked').target.length,q=this.el.component.find(".cta--step");v===f?(q.removeClass("cta--disabled"),q.removeAttr("disabled")):(q.addClass("cta--disabled"),
q.attr("disabled","true"))};t.prototype.clearAll=function(){this.el.component.find(".pdd16-step-buying__card \x3e .cta--contained.cta--on:not([disabled]), .pdd16-step-buying__card-cta .cta--contained.cta--on:not([disabled])").trigger("click")};t.prototype.clickMoreBtn=function(v){v=l(v.currentTarget).closest(".pdd16-step-buying__view-more");var f=v.closest(".swiper-slide"),q=f.find(".pdd16-step-buying__card");f=f.find(".pdd16-step-buying__card:not(.is-show)");v.css({display:"none"});q.addClass("is-show");
this.setMaxHeight();f.find(".option-selector").target.forEach(function(k){J.reInit(l(k))});this.resizeSwiper();q.eq(5).find(".pdd16-step-buying__tooltip").css({right:"",left:""});q.eq(q.target.length-1).find(".pdd16-step-buying__tooltip").css({right:0,left:"auto"})};t.prototype.clickSelect=function(v,f){v=void 0===v?null:v;f=void 0===f?null:f;null!==v&&(null===f&&(f=!v.classList.contains("cta--on")),f?(v.classList.add("cta--on"),l(v).find("span").innerHTML(v.dataset.textSelected)):(v.classList.remove("cta--on"),
l(v).find("span").innerHTML(v.dataset.text)));0<this.el.selectNum.target.length&&(v=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(v))};t.prototype.slideChange=function(){var v=this;this.tabActive();requestAnimationFrame(function(){v.setMaxHeight()})};t.prototype.clickViewIcon=function(v){var f=l(v.currentTarget),q=f.closest(".pdd16-step-buying__list-type").find("a"),k=f.closest(".swiper-slide");
q.removeClass("on");f.addClass("on");"1column"===v.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(F){J.reInit(l(F))});this.setMaxHeight();this.resizeSwiper()};t.prototype.resizeSwiper=function(){l(this.el.swiper).find(".swiper-container, .swiper-wrapper, .swiper-slide").css({height:""});[].concat($jscomp.arrayFromIterable(this.el.component.find(".scrollbar").target)).forEach(function(v){B.resize(v)});this.el.swiper.swiper.emit("resize")};t.prototype.sameHeightPc=function(v,f,q){q=void 0===q?!1:q;var k=0;v=v.find(f);v.target.forEach(function(F){F=
F.getBoundingClientRect().height;k<F&&(k=F)});if(q)return k;v.css({height:k+"px"})};t.prototype.optionOneLinePC=function(v){var f=v.find(".pdd16-step-buying__card.is-show"),q=0;f.target.forEach(function(k){k=k.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;q<k&&(q=k)});2>q&&(0===f.find(".option-selector__wrap--color-chip").target.length?v.find(".scrollbar__contents").addClass("none-color-chip"):v.find(".scrollbar__contents").addClass("single-chip"))};
t.prototype.optionOneLineMo=function(v,f){f=void 0===f?null:f;if(null===f){var q=v.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity").length;v=l(v)}else{q=v.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");var k=f.querySelectorAll(".option-selector__wrap--color-chip, .option-selector__wrap--capacity");q=Math.max(q.length,k.length);v=l([v,f])}2>q&&(0===v.find(".option-selector__wrap--color-chip").target.length?v.find(".option-selector").addClass("none-color-chip"):
v.find(".option-selector").addClass("single-chip"))};t.prototype.setMaxHeight=function(){var v=this,f=l(this.el.swiper).find(".swiper-slide-active");0===f.target.length&&(f=this.el.component.find(".pdd16-step-buying__tab").eq(0));var q=l(this.el.swiper);f.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:""});
q.find(".none-color-chip").removeClass("none-color-chip");q.find(".single-chip").removeClass("single-chip");if(this.isPc)this.optionOneLinePC(f),this.sameHeightPc(f,".pdd16-step-buying__card-badge"),this.sameHeightPc(f,".pdd16-step-buying__card-option"),this.sameHeightPc(f,".pdd16-step-buying__card-seller"),this.sameHeightPc(f,".pdd16-step-buying__card-header-badge"),this.sameHeightPc(f,".pdd16-step-buying__card-price"),this.sameHeightPc(f,".pdd16-step-buying__card-cta"),q=this.sameHeightPc(f,".pdd16-step-buying__card",
!0),f.find(".pdd16-step-buying__view-more").css({height:q+"px"}),f.find(".pdd16-step-buying__card").css({height:q+"px"});else if(!1!==f.target[0].classList.contains("pdd16-step-buying__2column")){var k=f.find(".pdd16-step-buying__card.is-show");k.target.forEach(function(F,ea){if(0!==ea%2){var e=k.target[ea-1];v.optionOneLineMo(e,F);".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(n){var Q=
e.querySelector(n),Y=F.querySelector(n);".pdd16-step-buying__card"===n&&(Q=e,Y=F);null!==Q&&null!==Y&&(n=Math.max(Q.getBoundingClientRect().height,Y.getBoundingClientRect().height),Q.style.height=n+"px",Y.style.height=n+"px")})}});0===(k.target.length-1)%2&&this.optionOneLineMo(k.target[k.target.length-1],null)}};t.prototype.tabActive=function(){var v=this.el.swiper.swiper,f=this.el.component.find(".pdd16-step-buying__tab").target;void 0===v?this.el.footerBtn.text(this.el.swiper.querySelector(".swiper-slide").dataset.buttonText):
this.el.footerBtn.text(f[v.activeIndex].dataset.buttonText);d.selectTab(this.el.tab.target[0],v.activeIndex)};t.prototype.resize=function(){var v=this;this.winRect=r.getViewPort();this.el.dummyHeaer.css({height:this.el.component.find(".pdd16-step-buying__header").offset().height+"px"});var f=D.MOBILE<r.getViewPort().width;f!==this.isPc?(this.isPc=f,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"));f=this.el.component.find(".pdd16-step-buying__footer");this.el.dummyFooter.css({height:f.offset().height+parseInt(window.getComputedStyle(f.target[0]).marginTop)+"px"});null!==this.activeTarget&&this.popupResize();clearTimeout(this.resizeTimer);
this.resizeTimer=null;this.resizeTimer=setTimeout(function(){v.resizeSwiper()},200)};t.prototype.offFix=function(){this.el.footer.removeClass("pdd16-step-buying__footer--fixed");this.el.component.removeClass("pdd16-step-buying--floating")};t.prototype.setFix=function(){var v=this.el.component.offset();this.isPc||(0>v.top&&v.bottom>this.winRect.height?(this.el.component.hasClass("pdd16-step-buying--floating")||this.el.component.addClass("pdd16-step-buying--floating"),this.el.footer.hasClass("pdd16-step-buying__footer--fixed")||
this.el.footer.addClass("pdd16-step-buying__footer--fixed")):(this.el.component.hasClass("pdd16-step-buying--floating")&&this.el.component.removeClass("pdd16-step-buying--floating"),this.el.footer.hasClass("pdd16-step-buying__footer--fixed")&&this.el.footer.removeClass("pdd16-step-buying__footer--fixed")))};t.prototype.focusLock=function(v){if(v.keyCode===U.keyCode.TAB_KEY){var f=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===v.shiftKey&&this.el.closePopupCta.target[0]===document.activeElement?(v.preventDefault(),f.focus()):!0===v.shiftKey&&f===document.activeElement?(v.preventDefault(),this.el.closePopupCta.focus()):!0===v.shiftKey&&this.activeTarget.target[0]===
document.activeElement&&(v.preventDefault(),this.el.closePopupCta.focus())}};t.prototype.activePopup=function(v){v&&(this.activeCta=l(v));r.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();this.activeTarget.on("keydown",this.handler.focusLock);K.slideUpdate(this.activeTarget.find(".basic-swiper").target[0]);K.slideReInit(this.activeTarget.find(".basic-swiper").target[0]);1<this.activeTarget.find(".swiper-slide").target.length?v=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"),v=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);v.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&O(this.activeTarget.target[0]);this.popupResize()};t.prototype.closePopup=function(){r.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};t.prototype.popupResize=function(v){v=void 0===v?!0:v;var f=document.documentElement.clientHeight,q=this.activeTarget.find(".layer-popup__inner"),k=this.activeTarget.find(".scrollbar"),
F=this.activeTarget.find(".scrollbar__wrap");!0===v?(this.isPc?f<=q.target[0].getBoundingClientRect().height?(q.css({"min-height":f+"px",height:f+"px"}),q=q.target[0].getBoundingClientRect(),f=F.target[0].getBoundingClientRect(),q=parseInt(q.height-f.top),k.css({height:q+"px"})):(q.css({"min-height":"",height:""}),k.css({height:""})):(F=F.target[0].getBoundingClientRect(),f=parseInt(f-F.top),q.css({"min-height":""}),k.css({height:f+"px"})),setTimeout(function(){B.resize(k.target[0])},300)):(q.css({"min-height":"",
height:""}),k.css({height:""}))};var C=function(v){v=void 0===v?{visibleScrollTop:!0}:v;l(".pdd16-step-buying").target.forEach(function(f){l(f).find(".tab").target.forEach(function(q){d.init(q)});t.instances.has(f)?t.instances.get(f).reInit():new t(f);l(f).find(".scrollbar").target.forEach(function(q){B.reInit(q)})});v.visibleScrollTop&&(r.visibleScroll(),window.scrollTo(0,0))};t.instances=new WeakMap;l.ready(C);window.sg.components.stepbuying={init:C,clearAll:function(v){t.instances.has(v)&&t.instances.get(v).clearAll()},
cardSelect:function(v,f){f=void 0===f?null:f;var q=l(v).closest(".pdd16-step-buying").target[0];t.instances.has(q)&&t.instances.get(q).clickSelect(v,f)},activePopup:function(v){l(".pdd16-step-buying").target.forEach(function(f){t.instances.has(f)&&t.instances.get(f).activePopup(v)})},closePopup:function(){l(".pdd16-step-buying").target.forEach(function(v){t.instances.has(v)&&t.instances.get(v).closePopup()})}}})();
(function(){var l=window.sg.common.$q,d=window.sg.common.swiperManager,K=window.sg.common.utils,D=window.sg.common.scrollbar,r=window.sg.common.OptionSelector,B=window.sg.common.libs,J=K.setMobileFocusLoop,U=K.removeMobileFocusLoop,O=function(t){var C=this;this.el={window:l(window),component:l(t),classes:{bottomExpandedClass:"pdd16-step-buying-v2__bottom--expanded",bottomTopClass:"pdd16-step-buying-v2__bottom--top",bottomFixedClass:"pdd16-step-buying-v2__bottom--fixed"},selector:{categoryContents:".pdd16-step-buying-v2__category-contents",
cardDescViewMoreContainer:'[data-js-action\x3d"cardDescViewMoreContainer"]',cardDescViewMoreText:'[data-js-action\x3d"cardDescViewMoreText"]',cardDescViewMoreButton:'[data-js-action\x3d"cardDescViewMoreButton"]',cardDescViewMoreButtonText:'[data-js-action\x3d"cardDescViewMoreButtonText"]',cardDescExpanded:"data-card-desc-expanded"}};this.bottomPriceTopRect=this.activeCta=this.activeTarget=this.currentDevice=null;this.handler={scroll:this.scroll.bind(this),resize:this.resize.bind(this),checkedCheckbox:this.checkedCheckbox.bind(this),
clickSelect:function(v){C.clickSelect(v.currentTarget)},focusLock:this.focusLock.bind(this),closePopup:this.closePopup.bind(this),handleTransitionEnd:this.handleTransitionEnd.bind(this),handleSwiperTouchStart:this.handleSwiperTouchStart.bind(this),handleCardDescViewMoreToggle:this.handleCardDescViewMoreToggle.bind(this)};O.instances.set(t,this);this.init()};O.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")};O.prototype.init=function(){this.setElements();this.initSwiper();this.resize();this.bindEvents()};O.prototype.reInit=function(){this.setElements();window.sg.common.lazyLoad.setLazyLoad();this.initSwiper();this.resize();this.bindEvents()};O.prototype.cardReInit=function(t){t=l(t);window.sg.common.lazyLoad.setLazyLoad();t.find(".pdd16-step-buying-v2__card-inner \x3e button.cta:not(.js-cta-stock), .pdd16-step-buying-v2__card-cta button.cta:not(.js-cta-stock)").off("click",
this.handler.clickSelect).on("click",this.handler.clickSelect);r.reInit(t);if(t.find(".option-selector__wrap--capacity").target){var C=t.find(".option-selector__wrap--capacity");1===C.find(".option-selector__swiper-slide").target.length&&C.addClass("option-selector__wrap--capacity-single")}this.setCardDescViewMore();this.setMaxHeight(t.closest(".pdd16-step-buying-v2__category-contents").target)};O.prototype.bindEvents=function(){this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);
this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.el.selectBtn.off("click",this.handler.clickSelect).on("click",this.handler.clickSelect);this.scroll();this.clickSelect();this.el.component.find(".option-selector").target.forEach(function(t){r.reInit(l(t))});this.el.component.find(".option-selector__wrap--capacity").target.forEach(function(t){1===l(t).find(".option-selector__swiper-slide").target.length&&l(t).addClass("option-selector__wrap--capacity-single")});
this.el.closePopupCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.el.checkbox.off("change",this.handler.checkedCheckbox).on("change",this.handler.checkedCheckbox);this.setCardDescViewMore()};O.prototype.checkedCheckbox=function(){var t=this.el.checkbox.target.length,C=this.el.component.find('.pdd16-step-buying-v2__tnc-checkbox.is-required .checkbox-v2 input[type\x3d"checkbox"]:checked').target.length,v=this.el.component.find(".pdd16-step-buying-v2__bottom-price__cta .cta");
t===C?(v.removeClass("cta--disabled"),v.removeAttr("disabled")):(v.addClass("cta--disabled"),v.attr("disabled","true"))};O.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")};O.prototype.clickSelect=function(t,C){t=void 0===t?null:t;C=void 0===C?null:C;null!==t&&(null===C&&(C=!t.classList.contains("cta--on")),C?(t.classList.add("cta--on"),
l(t).find("span").innerHTML(t.dataset.textSelected)):(t.classList.remove("cta--on"),l(t).find("span").innerHTML(t.dataset.text)));0<this.el.selectNum.target.length&&(t=this.el.component.find(".pdd16-step-buying-v2__card \x3e .cta--contained.cta--on, .pdd16-step-buying-v2__card-cta .cta--contained.cta--on").target.length,this.el.selectNum.text(t))};O.prototype.handleSwiperTouchStart=function(t){l(t.currentTarget).find(".pdd16-step-buying-v2__card-list").addClass("swiper-duration--none")};O.prototype.handleTransitionEnd=
function(t){l(t.wrapperEl).removeClass("swiper-duration--none")};O.prototype.setMaxHeight=function(t){var C=l(t).target[0];t="pdd16-step-buying-v2__card-header-badge pdd16-step-buying-v2__card-text pdd16-step-buying-v2__card-desc pdd16-step-buying-v2__card-option pdd16-step-buying-v2__card-badge pdd16-step-buying-v2__card-seller pdd16-step-buying-v2__card-price pdd16-step-buying-v2__card-cta pdd16-step-buying-v2__card-inner".split(" ");t.forEach(function(v){return l(C).find("."+v).css({height:""})});
t.forEach(function(v){v=l(C).find("."+v);var f=v.target.map(function(q){return l(q).outerHeight()}).reduce(function(q,k){return Math.max(q,k)},0);v.target.forEach(function(q){l(q).css({height:f+"px"})});0>=f&&v.addClass("no-data")})};O.prototype.resize=function(){this.scroll();this.currentDevice!==K.getCurrentDevice()&&this.setCardDescViewMore();this.initSwiper();null!==this.activeTarget&&this.popupResize();this.currentDevice=K.getCurrentDevice()};O.prototype.initSwiper=function(){var t=this;this.el.categoryContents.target.forEach(function(C){d.slideReInit(C);
void 0!==C.swiper&&null!==C.swiper&&(C.swiper.off("touchStart",t.handler.handleSwiperTouchStart).on("touchStart",t.handler.handleSwiperTouchStart),C.swiper.off("transitionEnd",function(){return t.handleTransitionEnd(C.swiper)}).on("transitionEnd",function(){return t.handler.handleTransitionEnd(C.swiper)}));t.setMaxHeight(C)})};O.prototype.scroll=function(){var t=window.pageYOffset||document.documentElement.scrollTop;if(this.el.bottomWrap.target[0])if(0<t?this.el.bottomWrap.removeClass(this.el.classes.bottomTopClass):
this.el.bottomWrap.addClass(this.el.classes.bottomTopClass),this.bottomPriceTopRect=this.el.bottomWrap.target[0].getBoundingClientRect().bottom,this.bottomPriceTopRect<window.innerHeight){if(t>this.scrollEnd||!this.el.bottomWrap.hasClass(this.el.classes.bottomFixedClass))this.el.bottomWrap.removeClass(this.el.classes.bottomFixedClass),this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass)}else t=window.pageYOffset||document.documentElement.scrollTop,t>this.scrollEnd?this.el.bottomWrap.removeClass(this.el.classes.bottomExpandedClass):
(this.el.bottomWrap.addClass(this.el.classes.bottomFixedClass),this.el.bottomWrap.addClass(this.el.classes.bottomExpandedClass)),this.scrollEnd=t};O.prototype.focusLock=function(t){if(t.keyCode===B.keyCode.TAB_KEY){var C=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];var v=document.activeElement===C||document.activeElement===this.activeTarget.target[0];!1===t.shiftKey&&this.el.closePopupCta.target[0]===document.activeElement?(t.preventDefault(),C.focus()):t.shiftKey&&v&&(t.preventDefault(),this.el.closePopupCta.focus())}};O.prototype.activePopup=function(t){t&&(this.activeCta=l(t));K.hiddenScroll();this.activeTarget=this.el.popup;this.activeTarget.show();
this.activeTarget.on("keydown",this.handler.focusLock);d.slideUpdate(this.activeTarget.find(".basic-swiper").target[0]);d.slideReInit(this.activeTarget.find(".basic-swiper").target[0]);1<this.activeTarget.find(".swiper-slide").target.length?t=this.activeTarget.find(".swiper-button-next").target[0]:(this.activeTarget.find(".swiper-button-prev").attr("tabindex","-1"),this.activeTarget.find(".swiper-button-next").attr("tabindex","-1"),t=this.activeTarget.find('a, button:not([tabindex\x3d"-1"]), input:not([type\x3d"hidden"]), textarea').target[0]);
t.focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&J(this.activeTarget.target[0]);this.popupResize()};O.prototype.closePopup=function(){K.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&U();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};O.prototype.popupResize=function(t){t=void 0===t?!0:t;var C=document.documentElement.clientHeight,v=this.activeTarget.find(".layer-popup__inner"),f=this.activeTarget.find(".scrollbar"),q=this.activeTarget.find(".scrollbar__wrap");!0===t?(this.isPc?C<=v.target[0].getBoundingClientRect().height?(v.css({"min-height":C+"px",height:C+"px"}),v=v.target[0].getBoundingClientRect(),C=q.target[0].getBoundingClientRect(),v=parseInt(v.height-C.top),
f.css({height:v+"px"})):(v.css({"min-height":"",height:""}),f.css({height:""})):(q=q.target[0].getBoundingClientRect(),C=parseInt(C-q.top),v.css({"min-height":""}),f.css({height:C+"px"})),setTimeout(function(){D.resize(f.target[0])},300)):(v.css({"min-height":"",height:""}),f.css({height:""}))};O.prototype.setCardDescViewMore=function(){var t=this;this.el.cardDescViewMoreContainer=this.el.component.find(this.el.selector.cardDescViewMoreContainer);this.el.cardDescViewMoreText=this.el.component.find(this.el.selector.cardDescViewMoreText);
this.el.cardDescViewMoreButton=this.el.component.find(this.el.selector.cardDescViewMoreButton);this.el.cardDescViewMoreContainer.target.forEach(function(C){C=l(C);var v=C.find(t.el.selector.cardDescViewMoreText),f=C.find(t.el.selector.cardDescViewMoreButton),q=C.find(t.el.selector.cardDescViewMoreButtonText);C.attr("data-card-desc-expanded",!1);f.attr("aria-expanded",!1);q.text(f.attr("data-text-open"));v.target.length&&v.target[0].scrollHeight>v.target[0].clientHeight?f.show():f.hide()});this.el.cardDescViewMoreButton.off("click",
this.handler.handleCardDescViewMoreToggle).on("click",this.handler.handleCardDescViewMoreToggle)};O.prototype.handleCardDescViewMoreToggle=function(t){t=l(t.currentTarget);var C="true"===t.closest(this.el.selector.cardDescViewMoreContainer).attr(this.el.selector.cardDescExpanded),v=t.closest(this.el.selector.categoryContents),f=v.find(this.el.selector.cardDescViewMoreContainer),q=v.find(this.el.selector.cardDescViewMoreButton),k=v.find(this.el.selector.cardDescViewMoreButtonText);C?(f.attr(this.el.selector.cardDescExpanded,
!1),q.attr("aria-expanded",!1),k.text(t.attr("data-text-open"))):(f.attr(this.el.selector.cardDescExpanded,!0),q.attr("aria-expanded",!0),k.text(t.attr("data-text-close")));this.setMaxHeight(v.target[0])};var w=function(t){t=void 0===t?{visibleScrollTop:!0}:t;l(".pdd16-step-buying-v2").target.forEach(function(C){O.instances.has(C)?O.instances.get(C).reInit():new O(C)});t.visibleScrollTop&&(K.visibleScroll(),window.scrollTo(0,0))};O.instances=new WeakMap;l.ready(w);window.sg.components.stepbuyingV2=
{init:w,cardReInit:function(t){var C=l(t).closest(".pdd16-step-buying-v2").target[0];O.instances.has(C)&&O.instances.get(C).cardReInit(t)},clearAll:function(t){O.instances.has(t)&&O.instances.get(t).clearAll()},cardSelect:function(t,C){C=void 0===C?null:C;var v=l(t).closest(".pdd16-step-buying-v2").target[0];O.instances.has(v)&&O.instances.get(v).clickSelect(t,C)},activePopup:function(t){l(".pdd16-step-buying-v2").target.forEach(function(C){O.instances.has(C)&&O.instances.get(C).activePopup(t)})},
closePopup:function(){l(".pdd16-step-buying-v2").target.forEach(function(t){O.instances.has(t)&&O.instances.get(t).closePopup()})}}})();
(function(){var l=window.sg.common.$q,d=window.sg.common.constants.KEY_CODE,K=function(r){var B=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(r),fixDummy:null};this.isFixOnce=!1;this.handler={toggleLayer:this.toggleLayer.bind(this),
setFocusLock:this.setFocusLock.bind(this),resizeFix:function(){0<B.el.fixDummy.target.length&&B.el.fixDummy.css({height:B.el.component.height()+"px"})}};K.instances.set(r,this);this.setElements();this.init()};K.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};K.prototype.init=function(){this.bindEvents()};K.prototype.reInit=function(){this.setElements();this.bindEvents()};K.prototype.toggleLayer=function(){this.el.selectWrap.hasClass(this.selector.selectOpenCls)?
this.closeLayer():this.openLayer()};K.prototype.openLayer=function(){this.el.selectWrap.addClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Close)};K.prototype.closeLayer=function(){this.el.selectWrap.removeClass(this.selector.selectOpenCls);this.el.hiddenText.text(this.globalText.Open)};K.prototype.setFixed=function(r){!1===this.isFixOnce&&(this.isFixOnce=!0);r?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)};K.prototype.setFocusLock=function(r){r.keyCode===d.TAB&&!1===r.shiftKey&&(this.el.selectCta.focus(),this.closeLayer(),r.preventDefault())};K.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 D=function(){l(".us-epp-discount").target.forEach(function(r){K.instances.has(r)||new K(r)})};K.instances=new WeakMap;l.ready(D);window.sg.components.usEppDiscount={init:D,reInit:function(){l(".us-epp-discount").target.forEach(function(r){K.instances.has(r)?K.instances.get(r).reInit():new K(r)})},closeLayer:function(){l(".us-epp-discount").target.forEach(function(r){K.instances.has(r)&&K.instances.get(r).closeLayer()})},
setFixed:function(r){l(".us-epp-discount").target.forEach(function(B){K.instances.has(B)&&K.instances.get(B).setFixed(r)})}}})();
(function(l,d){function K(){d("#spaceWidth, #spaceHeight, #spaceDepth").on("keyup",function(){var v=d("#spaceWidth").val(),f=d("#spaceHeight").val(),q=d("#spaceDepth").val();""==v&&""==f&&""==q?D():""!=v&&""!=f&&""!=q&&r()})}function D(){d(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("is-show");d(".pd-sellout-option__dimensions-popup-cta button").addClass("cta--disabled");d(".pd-sellout-option__dimensions-popup-cta button").html(J);d(".pd-sellout-option__dimensions-popup-cta button").attr("an-la",
"dimension popup:lets measure your space:check fit");d("#spaceWidth").val("");d("#spaceHeight").val("");d("#spaceDepth").val("");d("#spaceWidth").parent().parent().removeClass("delete").removeClass("active");d("#spaceHeight").parent().parent().removeClass("delete").removeClass("active");d("#spaceDepth").parent().parent().removeClass("delete").removeClass("active");d(".pd-sellout-option__dimensions-popup-cta button").off("click").on("click",function(v){})}function r(){d(".pd-sellout-option__dimensions-popup-cta button").removeClass("cta--disabled");
d(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("is-show");d(".pd-sellout-option__dimensions-popup-cta button").html(J);d(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:check fit");d(".pd-sellout-option__dimensions-popup-cta button").off("click").on("click",function(v){});d(".pd-sellout-option__dimensions-popup-cta button").on("click",function(v){B()})}function B(){var v=Number(d("#packageWidth").val()),f=Number(d("#packageHeight").val()),
q=Number(d("#packageDepth").val()),k=Number(d("#spaceWidth").val()),F=Number(d("#spaceHeight").val()),ea=Number(d("#spaceDepth").val()),e=d("#packageUnit").val();v<k&&f<F&&q<ea?(d(".pd-sellout-option__dimensions-popup-result-wrap").addClass("is-show"),d(".pd-sellout-option__dimensions-popup-result-wrap").removeClass("error"),d(".pd-sellout-option__dimensions-popup-cta button").html(U),d(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:done"),
d(".pd-sellout-option__dimensions-popup-result-title").html(w),"th"==siteCode?d(".pd-sellout-option__dimensions-popup-result-text").html(t+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k+" "+e,F+" "+e,ea+" "+e])):d(".pd-sellout-option__dimensions-popup-result-text").html(t+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k,F,ea])),d(".pd-sellout-option__dimensions-popup-cta button").on("click",function(n){window.sg.components.SelloutOption.closePopup();D()})):(d(".pd-sellout-option__dimensions-popup-result-wrap").addClass("is-show"),
d(".pd-sellout-option__dimensions-popup-result-wrap").addClass("error"),d(".pd-sellout-option__dimensions-popup-cta button").html(O),d(".pd-sellout-option__dimensions-popup-cta button").attr("an-la","dimension popup:lets measure your space:measure again"),d(".pd-sellout-option__dimensions-popup-result-title").html(C),"th"==siteCode?d(".pd-sellout-option__dimensions-popup-result-text").html(t+" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k+" "+e,F+" "+e,ea+" "+e])):d(".pd-sellout-option__dimensions-popup-result-text").html(t+
" "+Granite.I18n.get("W{0} X H{1} X D{2}",[k,F,ea])),d(".pd-sellout-option__dimensions-popup-cta button").on("click",function(n){r();v>=k?d("#spaceWidth").focus():f>=F?d("#spaceHeight").focus():q>=ea&&d("#spaceDepth").focus()}))}Granite.I18n.get("Width");Granite.I18n.get("Height");Granite.I18n.get("Depth");Granite.I18n.get("Ex.");var J=Granite.I18n.get("Check fit"),U=Granite.I18n.get("Done",null,"ux25"),O=Granite.I18n.get("Measure again"),w=Granite.I18n.get("It will be a perfect fit."),t=Granite.I18n.get("Your dimensions:"),
C=Granite.I18n.get("It will not fit your space. Please measure again.");d(function(){K()});window.sg.components.dynamic.Dimension={init:K}})(window,window.jQuery);
(function(l){var d=window.sg.components.ProductDetailKvNew,K=window.sg.components.PDbuyingToolNew,D=window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2"),r=l(".hdd02-pdp-header"),B=r.find(".sg-pdh-gallery-section"),J=r.find(".sg-pdh-buying-tool");D.PDPHeaderUI={isDebug:!0,$ui:r,optionClose:d.optionClose,openBezelPopup:d.openBezelPopup,triggerChange:K.triggerChange,gallery:{init:function(){B.find("#galleryPopupViewMoreButton").off("click.tagging").on("click.tagging",function(){var U=l(this),
O=U.children("span.text").text();U.attr("data-more-text")===O?U.attr("an-la","gallery popup:view less"):U.attr("an-la","gallery popup:view more")})}},buyingTool:{$wrapper:J,$ui:J.children("section.hdd02-buying-tool"),$options:J.find(".sg-pdh-buying-options"),showMessage:K.showMessage,bindPdTooltipEvent:K.bindPdTooltipEvent,bindComboOfferEvent:K.bindComboOfferEvent,openAddOnLearnMore:K.openAddOnLearnMore,viewMoreVDAddOn:K.viewMoreVDAddOn}}})(jQuery);
var bc_rewards=function(){var l=function(){var K;return{isNew:function(D){return K!==D},get modelCode(){return K},set modelCode(D){this.isNew(D)&&(K=D)}}}(),d=function(K,D){var r,B,J,U;return $jscomp.asyncExecutePromiseGeneratorProgram(function(O){if(1==O.nextAddress)return O.setCatchFinallyBlocks(2),(r=l.isNew(D))?O.yield(K.fetch(D),4):O.return();if(2!=O.nextAddress)return B=O.yieldResult,J=B.rewardsPolicies,K.setContext(J),l.modelCode=D,O.leaveTryBlock(0);U=O.enterCatchBlock();console.error("[Rewards] Fetch error",
U);K.setContext(void 0);O.jumpToEnd()})};return{calculate:function(K,D){var r;return function(B){for(var J=[],U=0;U<arguments.length;++U)J[U-0]=arguments[U];r&&clearTimeout(r);return new Promise(function(O){r=setTimeout(function(){var w=$jscomp$this,t;return $jscomp.asyncExecutePromiseGeneratorProgram(function(C){if(1==C.nextAddress)return C.yield(K.apply(w,J),2);t=C.yieldResult;O(t);C.jumpToEnd()})},D)})}}(function(K){var D,r,B,J,U,O,w,t;return $jscomp.asyncExecutePromiseGeneratorProgram(function(C){return 1==
C.nextAddress?(D=K,r=D.modelCode,B=D.totalPrice,J=B.sale,U=D.rewards,O=U.context,w=U.calculator,"fr"===K.siteCode&&K.drawObj.careResult.hasComponent&&(t=$(".result-care input").attr("data-sale-price"),J-=Number(t)),C.yield(d(O,r),2)):O.initialized?C.return(w.calculate({context:O,totalPrice:J})):C.return(void 0)})},300),convertToDisplay:function(K,D){if(D){var r=K.rewards,B=r.pageContext;r=r.context;var J=D.totalPoint,U="p";B=(r.isConfigEnabled("useNumberFormatterByLocale")?new Intl.NumberFormat(B.locale):
new Intl.NumberFormat).format(J);J=Granite.I18n.get("* Actual belo4d Rewards points earned may differ from the estimate provided.");if("pt"===K.siteCode)B=B.replace(",",".");else if("cz"===K.siteCode)U="b";else if("hk"===K.siteCode||"hk_en"===K.siteCode)J=Granite.I18n.get("* Actual belo4d Rewards points earned may differ from the estimate provided. {0}",B),K.oldHybrisSalesStatus||(J="");return{result:D,visible:!!D,formatted:{totalPoint:[B,U].join(" ")},isGuest:r.isGuest,rewardsMemeberCheckSite:r.rewardsMemeberCheckSite,
isNonRewardsMember:r.isNonRewardsMember,isRewardsMember:r.isRewardsMember,rewardsDescription:J}}}}}();
(function(l){var d=function(K){var D=void 0===K.config?{}:K.config;K=void 0===K.pageContext?{}:K.pageContext;this.initialized=!1;this.config=D;this.pageContext=K};d.prototype.fetch=function(K){var D=this,r,B,J,U,O,w,t;return $jscomp.asyncExecutePromiseGeneratorProgram(function(C){r=D.pageContext;B=r.searchDomain;J=r.apiStageInfo;U=r.siteCode;O=r.channel;w=r.tierCode;t=new URLSearchParams;t.set("siteCode",U);t.set("channel",O);t.set("modelCode",K);t.set("tierCode",w||"T001");return C.return(new Promise(function(v,
f){$.ajax({url:B+"/"+J+"/b2c/rewards-policy?"+t.toString(),type:"GET",dataType:"json",data:JSON,cache:!0,timeout:2E4,success:function(q){return v(q.response.resultData)},error:function(q){return f(q)}})}))})};d.prototype.setContext=function(K){this.initialized=!!K;this.rewardsPolicies=K||[]};d.prototype.summarizePolicies=function(){var K=this;return this.rewardsPolicies.map(function(D){return Object.assign({},{policyId:D.policyId,policyType:D.policyType,currencyConversionRate:D.currencyConversionRate},
K.sumPolicyItems(D.items))})};d.prototype.sumPolicyItems=function(K){return{fixed:K.filter(function(D){return"1"===D.pointType}).reduce(function(D,r){return D+r.point},0),ratio:K.filter(function(D){return"2"===D.pointType}).reduce(function(D,r){return D+r.point},0)}};d.prototype.isConfigEnabled=function(K){var D=this.pageContext.siteCode;return(K=this.config[K])?0<K.filter(function(r){return r===D}).length:!1};$jscomp.global.Object.defineProperties(d.prototype,{available:{configurable:!0,enumerable:!0,
get:function(){var K=this.pageContext,D=K.isEpp;return this.config.allowedSites.includes(K.siteCode)&&!D}},isGuest:{configurable:!0,enumerable:!0,get:function(){return!this.pageContext.isLogin}},rewardsMemeberCheckSite:{configurable:!0,enumerable:!0,get:function(){var K=this.pageContext,D=K.isEpp;return this.config.rewardsMemeberCheckSite.includes(K.siteCode)&&!D}},isNonRewardsMember:{configurable:!0,enumerable:!0,get:function(){var K=this.pageContext,D=K.tierCode;return!!K.isLogin&&!D}},isRewardsMember:{configurable:!0,
enumerable:!0,get:function(){var K=this.pageContext,D=K.tierCode;return!!K.isLogin&&!!D}}});l.dynamic=l.dynamic||{};l.dynamic.RewardsPolicyContext=d})(window.sg.components);
(function(l){var d=function(){this.modelContext=this.context=null;this.state={}};d.prototype.calculate=function(K){var D=K.totalPrice;this.context=K.context;this.state={};this.rewards=void 0;this.modelContext={totalPrice:Number.isNaN(D)?0:Number(D)};this.beforeCalculate();this._calculate();return this.rewards};d.prototype.beforeCalculate=function(){this.state.rewardsPolicies=this.context.summarizePolicies()};d.prototype._calculate=function(){var K=this.modelContext.totalPrice,D=this.state.rewardsPolicies.reduce(function(r,
B){return r+(B.ratio/100*K/B.currencyConversionRate+B.fixed)},0);this.rewards={totalPoint:Math.round(D)}};l.dynamic=l.dynamic||{};l.dynamic.RewardsCalculator=d})(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 d(a){var c=Math.pow(10,2);a=1.95583*Number(a);a=Math.round(a*c)/c;return currencyComma(a,"BGN")}function K(a,c){a=void 0===a?0:a;c=void 0===c?function(){}:c;var m=[],g="";"number"!==typeof a&&(a=0);for(var p=1;p<=a;p++)g="descListText"+p,m.push(g);"function"===typeof c&&c(m);return m}function D(a){var c=$("#priceCurrency").val(),m="se no dk fi fr ch ch_fr at pt cz ro be nl be_fr".split(" ").includes(siteCode),
g=["uk"].includes(siteCode),p="fr"===siteCode?"from":"From",aa=["tr"].includes(siteCode)?!0:!1;$.each(a,function(L,ma){var ua=!1;L=$.map(ma.itemSet,function(Fa,Na){Na=Fa.cycle;var Ta="mo"===Na?1:"yr"===Na?2:3,Ua=Fa.oriPriceValue,Z=Fa.paymentCycle,Ba=currencyComma(Ua,c),la=Fa.optionOriWasPrice,wa=currencyComma(la,c),Da=null!=Fa.freeMonths?Fa.freeMonths:"0";"monthly"==Fa.paymentCycle&&null!=Fa.freeMonths&&""!=Fa.freeMonths&&"0"!=Fa.freeMonths&&(ua=!0);return{flag:Na,price:Ua,sortNo:Ta,formattedPrice:Ba,
paymentCycle:Z,wasPrice:la,formattedWasPrice:wa,freeMonths:Da}});if("cz"==siteCode||"be"==siteCode||"nl"==siteCode||"be_fr"==siteCode){var ja="ro"==siteCode?"{0}/month SC+":"{0}/month",xa=0,Ia=0,Ka="",Ea="";$.each(L,function(Fa,Na){if(0==xa||xa>Na.price)xa=Na.price,Ka="mo"===Na.flag?Granite.I18n.get(ja,currencyComma(xa,c)):currencyComma(xa,c);Ia<Na.price&&(Ia=Na.price,Ea=currencyComma(Ia,c))});var Ha="";1<L.length?Ha=""+Granite.I18n.get("From {0} or {1}",[Ka,Ea]):1==L.length&&(Ha=""+Ka);ma.depthOnePrice=
Ha}else{L.sort(function(Fa,Na){return Fa.sortNo-Na.sortNo});var Sa=0;if("es"===siteCode){var Ga=99999999;$.map(L,function(Fa,Na){"monthly"!=Fa.paymentCycle&&(Fa.price<Ga&&(Sa=Fa.formattedPrice),Ga=Fa.price)})}else if("se"===siteCode||"no"===siteCode||"dk"===siteCode||"fi"===siteCode||"ae"===siteCode||"ae_ar"===siteCode||"uk"===siteCode||"it"===siteCode||"fr"===siteCode||"ro"===siteCode||"at"===siteCode){var pa=99999999;$.map(L,function(Fa,Na){"monthly"==Fa.paymentCycle&&(Fa.price<pa&&(Sa=Fa.formattedPrice),
pa=Fa.price)})}var Oa=!0,Ca=$.map(L,function(Fa,Na){var Ta="";["uk","it","fr","ro","at"].includes(siteCode)?ua?"monthly"===Fa.paymentCycle&&Oa&&null!=Fa.freeMonths&&"0"!=Fa.freeMonths&&(Ta=Granite.I18n.get("freeMonths {0}/month, from {1}",[Fa.freeMonths,Sa]),Oa=!1):Oa&&(Ta+=""+Fa.formattedPrice,"mo"===Fa.flag&&(Ta+=""+Granite.I18n.get("SC+ Popup Bundle mo price"))):["ae","ae_ar"].includes(siteCode)?ua?"monthly"===Fa.paymentCycle&&Oa&&null!=Fa.freeMonths&&"0"!=Fa.freeMonths&&(Ta=Granite.I18n.get("freeMonths {0}/month, from {1}",
[Fa.freeMonths,Sa]),Oa=!1):Oa&&(Ta+=""+Fa.formattedPrice,"mo"===Fa.flag&&(Ta+="/"+Granite.I18n.get("month"))):"es"==siteCode?"monthly"===Fa.paymentCycle?Ta+=Fa.formattedPrice+"/mes":(Oa&&(Ta+=Sa),isNotEmpty(Fa.flag)&&g&&(Ta+="/"+Granite.I18n.get(Fa.flag)),Oa=!1):["se","dk","no","fi"].includes(siteCode)?"monthly"===Fa.paymentCycle&&Oa&&(Ta=null!=Fa.freeMonths&&"0"!=Fa.freeMonths?Granite.I18n.get("freeMonths {0}/month, from {1}",[Fa.freeMonths,Sa]):Granite.I18n.get("freeMonths_null {0}/month",[Sa]),
Oa=!1):"de"==siteCode?(0===Na&&m&&(Ta=Granite.I18n.get(p)+" "),Ta+=""+Fa.formattedPrice,Ta="mo"===Fa.flag?Ta+(""+Granite.I18n.get("SC+ Popup Bundle mo price")):isNotEmpty(Fa.flag)&&g?Ta+("/"+Granite.I18n.get(Fa.flag)):Ta+(""+Granite.I18n.get("SC+ Popup Bundle upfront price"))):(0===Na&&m&&(Ta=Granite.I18n.get(p)+" "),Ta+=""+Fa.formattedPrice,"mo"===Fa.flag?Ta=aa?Ta+(""+Granite.I18n.get("SC+ Popup Bundle mo price")):Ta+("/"+Granite.I18n.get(Fa.flag)):isNotEmpty(Fa.flag)&&g&&(Ta+="/"+Granite.I18n.get(Fa.flag)));
return Ta}).join(" "+Granite.I18n.get("or")+" ");L=["se","no","fi","dk"];Ha=" "+Granite.I18n.get("or")+" ";"uk ae ae_ar it fr ro at".split(" ").includes(siteCode)&&(Oa?(Ca=Ca.split(Ha),Ca.sort(function(Fa,Na){return Fa.substring(0,Fa.indexOf(" "))-Na.substring(0,Na.indexOf(" "))}),["ae","ae_ar"].includes(siteCode)&&2<Ca.length&&Ca.splice(1,Ca.length-2),Ca=Ca.join(" "+Granite.I18n.get("or")+" ")):L.push(siteCode));if("es"===siteCode){Ca=Ca.trim();for(var Pa=0;3>Pa;Pa++)Ca.endsWith("o")&&(Ca=Ca.slice(0,
-2))}L.includes(siteCode)&&(Ca=Ca.replaceAll(Ha,""));ma.depthOnePrice=Ca}})}function r(a,c){a=Number(a)/Number(c)*Math.pow(10,2);a=Number(a).toFixed(2);return a=a.replace(".",",")}function B(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 J(a,c){digitalData.product.model_code=a.modelCode?a.modelCode.replace(/&/g," and ").replace(/  /g," "):"";digitalData.product.model_name=a.modelName?a.modelName.replace(/&/g," and ").replace(/  /g,
" "):"";digitalData.product.model_price=parseFloat(a.totalPrice.sale).toFixed(2);digitalData.product.list_price=a.proudctPriceInfo.orignalPrice;digitalData.product.displayName=a.displayName?a.displayName.replace(/&/g," and ").replace(/  /g," "):"";digitalData.product.pd_type=a.stockLevelStatus&&"NOORDER"!==a.stockLevelStatus?"sale":"no sale";digitalData.product.products=a.modelName?a.modelName.replace(/&/g," and ").replace(/  /g," "):"";c=0;var m="",g=digitalData.page.pageInfo.siteCode;""!=digitalData.page.pathIndicator.depth_2&&
(g+=":"+digitalData.page.pathIndicator.depth_2,c=2,m=digitalData.page.pathIndicator.depth_2);""!=digitalData.page.pathIndicator.depth_3&&(g+=":"+digitalData.page.pathIndicator.depth_3,c=3,m=digitalData.page.pathIndicator.depth_3);""!=digitalData.page.pathIndicator.depth_4&&(g+=":"+digitalData.page.pathIndicator.depth_4,c=4,m=digitalData.page.pathIndicator.depth_4);""!=digitalData.page.pathIndicator.depth_5&&(g+=":"+digitalData.page.pathIndicator.depth_5,c=5,m=digitalData.page.pathIndicator.depth_5);
var p=a.currentPdpUrl?a.currentPdpUrl.split("/"):[];if(p&&0<p.length){a="";p=$jscomp.makeIterator(p);for(var aa=p.next();!aa.done;aa=p.next())(aa=aa.value)&&""!==aa&&(a=aa);a=a.replace(/&/g," and ").replace(/  /g," ");digitalData.page.pathIndicator["depth_"+c]=a;g.replace(m,a)}}function U(a,c){c=a.siteCode;if("pt"===c||"es"===c||"fr"===c)if(ta){if(!a.isNotFirstReward){c=$("#searchDomain").val();var m=$("#apiStageInfo").val();c=c+"/"+m+"/epp/v2/cms/storeinfo";m={siteCode:$("#siteCode").val(),companyCode:$("#eppCompanyCode").val()};
$.ajax({url:c,type:"GET",data:m,dataType:"json",cache:!0,crossDomain:!0,timeout:2E4,success:function(g){g.response&&g.response.resultData&&g.response.resultData.storeInfo&&"Y"===g.response.resultData.storeInfo.rewardsDisplayYN&&$("#pd-rewards-msg").show()}});a.isNotFirstReward=!0}}else $("#pd-rewards-msg").show()}function O(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 w(a,c,m){var g=a.util,p=c.buyingToolOptOffer.find(".pd-offer__item.bogo"),aa=g.hasOffer(a,c);c=g.hasBogo(a,c);aa&&c&&(p=p.find(".pd-price").attr("data-price"))&&(m.original=parseFloat(m.original)+parseFloat(p),a.getOptoinPrice||(a.getOptoinPrice=!0))}function t(a,c,m){var g=a.disabledClass;c=c.buyingToolOptCareResult;g=c.hasClass(a.hasComponentClass)&&!c.hasClass(g);var p=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");g&&(m.original=parseFloat(m.original)+
parseFloat(p),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function C(a,c,m){var g=a.disabledClass;c=c.buyingToolOptWarrantyResult;g=c.hasClass(a.hasComponentClass)&&!c.hasClass(g);var p=c.find(".result-price").attr("data-price");c=c.find(".result-price").attr("data-sale-price");g&&(m.original=parseFloat(m.original)+parseFloat(p),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function v(a,c,m){var g=a.disabledClass;c=c.buyingToolOptWarrantyVdResult;
g=c.hasClass(a.hasComponentClass)&&!c.hasClass(g);c=c.find(".option-result__text-wrap").attr("data-price");g&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(c),a.getOptoinPrice||(a.getOptoinPrice=!0))}function f(a,c,m){var g=a.util,p=$(c.buyingToolOptTradeInResult);c=g.hasTradeInResult(a,c);p="vn"==siteCode?p.find(".option-result__multiple").attr("data-price"):p.find(".result-price").attr("data-price");c&&p&&!a.drawObj.tradeInResult.priceOverFlag&&(m.sale=parseFloat(m.sale)-
parseFloat(p),a.getOptoinPrice||(a.getOptoinPrice=!0))}function q(a,c,m){var g=a.util.hasAssuredBuyBackResultResult(a,c),p=c.buyingToolOptAssuredBuyBackResult;c=p.find(".result-price").attr("data-price");p=p.find(".result-price").attr("data-sale-price");g&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(p),a.getOptoinPrice||(a.getOptoinPrice=!0))}function k(a,c,m){var g=a.util.hasNewAssuredBuyBackResult(a,c),p=c.buyingToolOptNewAssuredBuyBackResult;c=p.find(".result-price").attr("data-price");
p=p.find(".result-price").attr("data-sale-price");g&&(m.original=parseFloat(m.original)+parseFloat(c),m.sale=parseFloat(m.sale)+parseFloat(p),a.getOptoinPrice||(a.getOptoinPrice=!0))}function F(a,c,m){var g=a.hasComponentClass,p=a.disabledClass,aa=c.buyingToolOptOffer.find(".pd-offer__item.giftBundle");c=c.buyingToolOptOffer;if(c.hasClass(g)&&!c.hasClass(p))for(c=0;c<aa.length;c++){var L=$(aa.get(c));if(L.hasClass(g)&&!L.hasClass(p)){L=L.find(".pd-offer__selected-bundle");for(var ma=0;ma<L.length;ma++){var ua=
$(L.get(ma)).attr("data-price"),ja=$(L.get(ma)).attr("data-sale-price");ua&&(m.original=parseFloat(m.original)+parseFloat(ua),m.sale=parseFloat(m.sale)+parseFloat(ja),a.getOptoinPrice||(a.getOptoinPrice=!0))}}}}function ea(a,c,m){var g=a.hasComponentClass,p=a.disabledClass,aa=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=c.buyingToolOptOffer;if(c.hasClass(g)&&!c.hasClass(p))for(c=0;c<aa.length;c++){var L=$(aa.get(c));if(L.hasClass(g)&&!L.hasClass(p)){L=L.find(".pd-offer__selected-bundle");
for(var ma=0;ma<L.length;ma++){var ua=$(L.get(ma)).attr("data-price"),ja=$(L.get(ma)).attr("data-sale-price");ua&&(m.original=parseFloat(m.original)+parseFloat(ua),m.sale=parseFloat(m.sale)+parseFloat(ja),a.getOptoinPrice||(a.getOptoinPrice=!0))}}}}function e(a,c,m){var g=a.hasComponentClass,p=a.disabledClass;c=$(c.buyingToolOptTariffResult);g=c.hasClass(g)&&!c.hasClass(p);p=c.find(".result-price").attr("data-price");g&&p&&("fr"==a.siteCode?(m.original=parseFloat(m.original),m.sale=parseFloat(m.sale)+
parseFloat(p)):(m.original=parseFloat(m.original)-parseFloat(a.proudctPriceInfo.orignalPrice)+parseFloat(p),m.sale=parseFloat(m.sale)-parseFloat(a.proudctPriceInfo.salePrice)+parseFloat(p)),a.getOptoinPrice||(a.getOptoinPrice=!0))}function n(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 Q(a,c,m){var g=c.buyingToolOptEmbedAddon;c=g.hasClass(a.hasComponentClass);var p=0<$(".option-embed-addon .add-on-product-list-wrap--vd").length?".add-on-product-list-wrap--vd":".add-on-product-list-wrap",aa=parseFloat(g.find(p).attr("data-total-price"));g=parseFloat(g.find(p).attr("data-total-sale-price"));c&&aa&&(m.original=parseFloat(m.original)+
aa,m.sale=parseFloat(m.sale)+g,a.getOptoinPrice||(a.getOptoinPrice=!0))}function Y(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptBetween.on("click","#pd-leasing-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util;"nl"===g.siteCode&&(!0===g.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").show(),$(".pd-select-option.pd-select-option--type-offer").show());p.hasBetween(g,m)&&(p.removeBetweenResult(g,m),p.totalAfterFunction(g,m))});c.buyingToolOptBetween.on("click",
"#pd-leasing-1",a,function(m){$(this).attr("data-payment-value");var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=p.hasBetween(g,m);p.hasTradeInResult(g,m);"nl"===g.siteCode&&(!0===g.hasRentalInstallment&&$(".pd-select-option.financing-info-box-area").hide(),$(".pd-select-option.pd-select-option--type-offer").hide());aa&&(p.addBetweenResult(g,m),p.totalAfterFunction(g,m))})}function N(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariffPlan.on("click","#pd-carrier-0",a,function(m){var g=
m.data.sharedObj;m=m.data.selectorObj;var p=g.util;p.removeTariffPlanResult(g,m);p.totalAfterFunction(g,m)});c.buyingToolOptTariffPlan.on("click",".option-input:not(#pd-carrier-0)",a,function(m){var g=$(this),p=m.data.sharedObj;m=m.data.selectorObj;var aa=p.util,L=p.tariffPlanSelectedClass;aa.hasTariffPlan(p,m)&&(aa.removeTariffPlanSelectedClass(p,m),g.addClass(L),aa.addTariffPlanResult(p,m),aa.totalAfterFunction(p,m))})}function y(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#pd-trade-in-0, .open-trade-popup",
a,function(g){var p=g.data.sharedObj,aa=g.data.selectorObj,L=p.util,ma=p.shopSkuCode,ua=L.hasTradeIn(p,aa),ja=L.hasOffer(p,aa),xa=p.pdHrefLang,Ia=p.pdMultiLanguageYN,Ka=p.apiDomain,Ea=p.proudctPriceInfo.salePrice,Ha=L.hasForeverResult(p,aa),Sa=p.tradeInType,Ga=!1,pa=!1;g.preventDefault();if(!ua)return!1;if((new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()){if(p.isMultiTradeIn){Ka=$(g.currentTarget).attr("data-trade-index");p.checkedIndex=-1;if(!Ka&&p.drawObj.tradeInResult.list&&
p.drawObj.tradeInResult.list.length>=p.maxTradeInsAllowed)return!1;Ka&&(p.checkedIndex=Ka)}(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein");bc_common_tradeIn.init(p.modelCode)}else if("in"===siteCode)ja&&(Ga=L.hasBogo(p,aa),pa=L.hasComboResult(p,aa)),"CE"===Sa?("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&window.flutter_inappwebview.callHandler("getPinCode").then(function(Oa){sielTradeIn.prepopulatePinCode(Oa)}).catch(function(){}),
window.sg.components.sielTradeInPopup.showPopup()):(0==$(".bc-exchange-popup").length&&(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("instant-exchange"),setTimeout(function(){Ga||pa?configuratorExchange.setExchange(!0,Ea,Ha):configuratorExchange.setExchange(!1,Ea,Ha);window.sg.components.bcExchangePopup.showPopup()},200));else if("uk"===siteCode&&"CE"===Sa)-1<window.location.host.indexOf("p6-pre-qa3.")&&(aa.buyingToolOptTradeIn.find("#pd-trade-in-0").attr("data-total-price")||
sielTradeIn.callSkuDevicesAjax(p),window.sg.components.sielTradeInPopup.showPopup());else if(p.ceTradeUpPopup.isEnabled)"ro"!==siteCode||p.isTradeUp?window.CeTradeUpPopup.openPopup():tradeinData.showPopup();else if("fr"===siteCode)p.isMigrationHybris?(Ka=p.util.hasBetweenResult(p,aa),g=p.proudctPriceInfo.orignalPrice,tradeinData.setTradein(g,Ka?"LEASE":"PURCHASE"),tradeinData.showPopup()):(g={sku:ma},ta&&(g.store_id=$("#eppCompanyCode").val()),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json",
"Access-Control-Allow-Origin":"*"},url:Ka+"/v1/exchange/offers",type:"POST",dataType:"json",data:JSON.stringify(g),xhrFields:{withCredentials:!0},beforeSend:function(Oa){"Y"===Ia&&Oa.setRequestHeader("x-ecom-locale",xa)},success:function(Oa){if(Oa){var Ca=p.util.hasBetweenResult(p,aa);tradeinData.setTradein(Oa,p.proudctPriceInfo.orignalPrice,Ca?"LEASE":"PURCHASE");tradeinData.showPopup()}},error:function(Oa){var Ca="";Oa.responseJSON&&Oa.responseJSON.message&&(Ca=Oa.responseJSON.message);confirmPopup(Ca)}}));
else{if(p.isMultiTradeIn){Ka=$(g.currentTarget).attr("data-trade-index");p.checkedIndex=-1;if(!Ka&&p.drawObj.tradeInResult.list&&p.drawObj.tradeInResult.list.length>=p.maxTradeInsAllowed)return!1;Ka&&(p.checkedIndex=Ka)}tradeinData.showPopup()}});var m=function(g,p){var aa=g.util,L=g.view,ma=g.drawObj,ua=aa.hasForever(g,p),ja=aa.hasUpgradeResult(g,p),xa=$("#siteCode").val(),Ia=window.location.pathname.replace("/content/belo4d","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(Ia)&&
sessionStorage.removeItem(Ia);null!==ma.deliveryResult.priorityText&&!0===ma.tradeInResult.isUpfront&&$(p.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(g.isMultiTradeIn){if(-1<g.checkedIndex){"kz_kz"===g.siteCode||"kz_ru"===g.siteCode?(ma.tradeInResult.list.forEach(function(Ga){bc_common_tradeIn.removeDevice(Ga.imeiKey)}),ma.tradeInResult.list.splice(0)):ma.tradeInResult.list.splice(g.checkedIndex,1);Ia=ma.tradeInResult.additionalDiscountFlag;("sg"===xa||"vn"===xa||"id"===xa||
Ia)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(g,ma.tradeInResult);for(Ia=0;Ia<ma.tradeInResult.list.length;Ia++)ma.tradeInResult.list[Ia].index=Ia;"cn"==xa&&(Ia=ma.tradeInResult.list,void 0!=ma.tradeInResult&&void 0!=Ia&&0<Ia.length&&(Ia=bc_common_tradeIn.directConditionCall(),Ia.done(function(Ga,pa,Oa){var Ca=ma.tradeInResult.list.length,Pa=0,Fa=0;$.each(Ga.result.additionalParameters.entry,function(Na,Ta){"ticketMoney"===Ta.key&&(Pa=Ta.value);"o2oTicketMoney"===Ta.key&&
(Fa=Ta.value)});$.each(ma.tradeInResult.list[Ca-1].services.tradeInAdditionalInfo,function(Na,Ta){"ticketMoney"===Ta.key&&(ma.tradeInResult.list[Ca-1].services.tradeInAdditionalInfo[Na].value=Pa);"o2oTicketMoney"===Ta.key&&(ma.tradeInResult.list[Ca-1].services.tradeInAdditionalInfo[Na].value=Fa)})}),Ia.fail(function(Ga,pa,Oa){})))}else ma.tradeInResult.list=[];if(g.isMultiTradeIn&&ma.tradeInResult.list&&0<ma.tradeInResult.list.length){if(("hr"===xa||"si"===xa)&&"0"==g.checkedIndex){Ia=ma.tradeInResult.list[0];
var Ka=Ia.specialPrice;void 0!=Ka&&(Ia.discountPrice=parseFloat(Ia.dataPrice)+parseFloat(Ka),Ia.discountPriceText=""+currencyComma(Ia.discountPrice,g.priceCurrency),Ia.discountText1=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(Ia.dataPrice),g.priceCurrency),Ia.dataPrice=parseFloat(Ia.dataPrice)+parseFloat(Ka),Ia.specialDiscountText=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(Ka),g.priceCurrency))}if("hk"===xa||"hk_en"===xa){var Ea=!1;ma.tradeInResult.list.forEach(function(Ga,
pa){Ea?Ga.useGtiPriceArea=!1:!Ga.useGtiPriceArea&&Ga.hasGtiPrice&&(Ea=Ga.useGtiPriceArea=!0)})}"tr"==xa?(ma.tradeInResult.dataPrice=ma.tradeInResult.list.reduce(function(Ga,pa){return Ga+parseInt(pa.dataCashBack)},0),ma.tradeInResult.dataPrice+=ma.tradeInResult.list[0].services.tradeInSpecialPrice,ma.tradeInResult.list[0].firstcheck=!0,ma.tradeInResult.list[0].othercheck=!1):ma.tradeInResult.dataPrice=ma.tradeInResult.list.reduce(function(Ga,pa){return Ga+pa.dataPrice},0);if("cn"==xa){var Ha=0;$.each(ma.tradeInResult.list,
function(Ga,pa){$.each(pa.services.tradeInAdditionalInfo,function(Oa,Ca){"ticketMoney"===Ca.key&&Ha<Ca.value&&(Ha=Ca.value)})});ma.tradeInResult.totalTicketMoney=Ha;ma.tradeInResult.totalTicketMoneyText=0==Ha?"":Granite.I18n.get("Additional Trade in discount from belo4d")+": "+currencyComma(Ha,g.priceCurrency);ma.tradeInResult.dataPrice=parseFloat(ma.tradeInResult.dataPrice)+parseFloat(Ha);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Sa=0;$.each(ma.tradeInResult.list,
function(Ga,pa){$.each(pa.services.tradeInAdditionalInfo,function(Oa,Ca){"o2oTicketMoney"===Ca.key&&Sa<Ca.value&&(Sa=Ca.value)})});ma.tradeInResult.totalO2oTicketMoney=Sa;ma.tradeInResult.totalO2oTicketMoneyText=0==Sa?"":Granite.I18n.get("O2O special subsidy")+": "+currencyComma(Sa,g.priceCurrency);ma.tradeInResult.dataPrice=parseFloat(ma.tradeInResult.dataPrice)+parseFloat(Sa)}}Ia=Number(ma.tradeInResult.dataPrice)-Number(g.proudctPriceInfo.salePrice);g.minOrderEntryValue&&(Ia+=Number(g.minOrderEntryValue));
"be"===xa||"be_fr"===xa||"nl"===xa||"sg"===xa||"vn"===xa||"my"===xa||"id"===xa||"fr"===xa||"de"===xa||"sa"===xa||"sa_en"===xa||"cl"===xa?(ma.tradeInResult.totalAmountText=currencyComma(ma.tradeInResult.dataPrice,g.priceCurrency),0<Ia?(ma.tradeInResult.priceOverFlag=!0,ma.tradeInResult.excessAmount=Ia,ma.tradeInResult.tenText=currencyComma(g.minOrderEntryValue,g.priceCurrency)):ma.tradeInResult.priceOverFlag=!1):ma.tradeInResult.priceOverFlag=ma.tradeInResult.dataPrice>g.proudctPriceInfo.salePrice?
!0:!1;"tr"==xa&&(ma.tradeInResult.dataPrice=0)}p.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").removeClass("cta--disabled").prop("disabled",!1);("sg"==xa||"my"==xa)&&(Ia=p.buyingToolOptTradeInResult.find(".limit-count"))&&0<Ia.length&&!Ia.is(":visible")&&Ia.show()}g.isMultiTradeIn&&0!=ma.tradeInResult.list.length?1===ma.tradeInResult.list.length&&"de"===xa&&g.isMultiTradeIn&&g.hasStackbleTradeInFreeGiftPromotion&&!g.hasTradeInFreeGiftPromotion&&(g.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):
(ma.tradeInResult={hasComponent:!1,description:"",dataPrice:"",dataCashBack:"",dataCash:"",price:"",disclaimer:"",list:[]},ba.triggerChange(document.querySelector("#pd-trade-in-1")),"de"===xa&&(g.hasTradeInFreeGiftPromotion||g.isMultiTradeIn&&g.hasStackbleTradeInFreeGiftPromotion)&&(g.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)));g.exchangeApiData={exchangeFlag:!1};L.tradeInResultDraw(ma);ja&&L.upgradeResultDraw(ma);ua&&aa.foreverDraw(g,p);aa.totalAfterFunction(g,
p);g.isMultiTradeIn?aa.hasTradeInResult(g,p)||delete g.globalServiceInfo.tradein:g.globalServiceInfo.tradein&&delete g.globalServiceInfo.tradein;(g=$(p.buyingToolOptTradeIn).find('input[data-target-popup\x3d"deleteTradeInPopUp"]'))&&g.focus();"se"===xa&&0<$(".belo4d-flex-options .pd-select-option__item").length&&(window.sg.components.belo4dFlexPopup.tradeUpEnabled=!1,window.sg.components.belo4dFlexPopup.updateText(),$(".belo4d-flex-options .pd-select-option__item").each(function(Ga,pa){$(".belo4d-flex-options .pd-select-option__item").eq(Ga).find("#trade-up-default-0"+
Ga).attr("disabled",!1)}),xa=$(".belo4d-flex-trade-in-notice.pd-select-option__notice.pd-select-option__notice--normal"),0<xa.length&&xa.hasClass("is-show")&&xa.removeClass("is-show"))};c.buyingToolOpt.on("click","#pd-trade-in-1, .remove-trade-in-result",a,function(g){var p=g.data.sharedObj,aa=g.data.selectorObj,L=p.util,ma=p.siteCode;$("#categorySubTypeCode").val();var ua="hr"===ma||"si"===ma,ja=L.hasTradeInResult(p,aa);p.isMultiTradeIn&&(g=$(g.currentTarget).attr("data-trade-index"),p.checkedIndex=
-1,g&&(p.checkedIndex=g));if(ja)if(ja=!0,"ro"!==ma||p.isTradeUp||(ja=!1),p.ceTradeUpPopup.isEnabled&&ja)window.CeTradeUpPopup.showResetConfirmPopup(function(){m(p,aa)});else{ja=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?");"ee"===ma||"lv"===ma||"lt"===ma||"pl"===ma||"at"===ma||"kz_kz"===ma||"kz_ru"===ma||"ro"===ma||"bg"===ma?ja=Granite.I18n.get("You're sure you want to delete this item?"):"pe"===ma||ua?ja=Granite.I18n.get("Do you want to proceed?"):
"au"===ma||"jp"===ma?ja=" ":"be"===ma||"be_fr"===ma||"nl"===ma?ja=Granite.I18n.get("Are you sure you want to delete this option?"):"in"===ma?ja=Granite.I18n.get("Selected exchange will be removed.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"):"th"===ma&&(ja=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(ja,"delete");"au"===ma?($(".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"===ma||"kz_ru"===ma||"nl"===ma?$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Remove")):"in"===ma?$(".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"===ma&&$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Delete"));
"ro"!==ma&&"bg"!==ma&&"jp"!==ma&&"cn"!==ma||$(".confirm-popup").find(".confirm-popup__title").html(Granite.I18n.get("Selected options will be reset.(Trade-In)"));if("sk"===ma||"cz"===ma)$(".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"));L.settingCommonPopupTagging("tradeIn",p,aa);"CE"==p.tradeInType&&sielTradeIn.initializeStep("all");ba.triggerChange(document.querySelector("#pd-trade-in-0"))}else ba.triggerChange(document.querySelector("#pd-trade-in-1"))});
c.buyingToolOptTradeIn.on("click",'.cta[data-target-popup\x3d"tradeInLearnMorePopup"]',a,function(g){window.sg.components.tradeInLearnMorePopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-trade-in"]',a,function(g){m(g.data.sharedObj,g.data.selectorObj)});$(document).on("click",".trade-in-popup-v3__close, .trade-in-popup-v3__btn-close, .trade-in-popup__close, .trade-in-popup__btn-close, .cn-trade-in-popup__close, .cn-trade-in-popup__step1.cn-trade-in-popup__footer.cta--outlined, .trade-in-popup-v4__close, .trade-in-popup-v4__btn-close, .bc-exchange-popup__close, .vd-trade-in-popup__close, .sdf-comp-step-panel-product .sdf-comp-button-back",
a,function(g){g.data.sharedObj.drawObj.tradeInResult.hasComponent||ba.triggerChange(document.querySelector("#pd-trade-in-1"))})}function R(a,c){var m=ta?a.apiDomain:$("#storeDomain").val(),g=a.siteCode,p=ta?{withCredentials:!0}:{},aa={sharedObj:a,selectorObj:c};a={sku:[a.modelCode]};a=JSON.stringify(a);var L=null;"tr"==g&&$.ajax({url:m+"/tokocommercewebservices/v2/"+g+"/stocks/cities",type:"POST",dataType:"json",cache:!0,xhrFields:p,crossDomain:!0,timeout:2E4,data:a,headers:{"content-type":"application/json"},
success:function(ma){L=ma},error:function(ma){L=null}});c.buyingToolOptCheckDealerStock.on("click",".menu__list-wrap",aa,function(ma){var ua=ma.data.sharedObj,ja=ua.drawObj,xa=$(ma.data.selectorObj.buyingToolOptCheckDealerStock),Ia=xa.find("select[name\x3dcheck-dealer-stock]").val(),Ka=ja.checkDealerStock,Ea="",Ha="";ma.preventDefault();xa.find(".pd-select-option__notice--normal").removeClass("is-show");xa.find(".pd-select-option__check-message--success").removeClass("is-show");xa.find(".pd-select-option__check-message--error").removeClass("is-show");
xa.find(".pd-select-option__check-message--success").html(Ea);"select City"!=Ia?L&&void 0!=L.detailList?void 0!=L.detailList.stockWithCity&&0<L.detailList.stockWithCity.length?(ma=L.detailList.stockWithCity.find(function(Sa){return Sa.isocodeShort==Ia}),Ea=L.detailList.nerpStock,"OUTOFSTOCK"==ua.stockLevelStatus?0>=Ea&&(void 0!=ma?0<ma.quantity?(Ha=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ha=Granite.I18n.get("Get stock alert"),
$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Ea?void 0!=ma?0<ma.quantity?(Ea="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ma.quantity)+"\x3c/span\x3e",xa.find(".pd-select-option__check-message--success").html(Ea),xa.find(".pd-select-option__check-message--success").addClass("is-show"),
Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
ma?0<ma.quantity?(Ea="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ma.quantity)+"\x3c/span\x3e",xa.find(".pd-select-option__check-message--success").html(Ea),xa.find(".pd-select-option__check-message--success").addClass("is-show")):xa.find(".pd-select-option__check-message--error").addClass("is-show"):xa.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==ua.stockLevelStatus?Ha=Granite.I18n.get("Get stock alert"):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),
Ha=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==ua.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==ua.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ja.checkDealerStock=
Ka});c.buyingToolOptCheckDealerStock.on("change",".menu__select",aa,function(ma){var ua=ma.data.sharedObj,ja=ua.drawObj,xa=$(ma.data.selectorObj.buyingToolOptCheckDealerStock),Ia=xa.find("select[name\x3dcheck-dealer-stock]").val(),Ka=ja.checkDealerStock,Ea="",Ha="";ma.preventDefault();xa.find(".pd-select-option__notice--normal").removeClass("is-show");xa.find(".pd-select-option__check-message--success").removeClass("is-show");xa.find(".pd-select-option__check-message--error").removeClass("is-show");
xa.find(".pd-select-option__check-message--success").html(Ea);"select City"!=Ia?L&&void 0!=L.detailList?void 0!=L.detailList.stockWithCity&&0<L.detailList.stockWithCity.length?(ma=L.detailList.stockWithCity.find(function(Sa){return Sa.isocodeShort==Ia}),Ea=L.detailList.nerpStock,"OUTOFSTOCK"==ua.stockLevelStatus?0>=Ea&&(void 0!=ma?0<ma.quantity?(Ha=Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(Ha=Granite.I18n.get("Get stock alert"),
$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"))):0>=Ea?void 0!=ma?0<ma.quantity?(Ea="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ma.quantity)+"\x3c/span\x3e",xa.find(".pd-select-option__check-message--success").html(Ea),xa.find(".pd-select-option__check-message--success").addClass("is-show"),
Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("Out Of Stock"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").addClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").addClass("cta--disabled")):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),Ha=Granite.I18n.get("buy now"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):void 0!=
ma?0<ma.quantity?(Ea="\x3cspan\x3e"+Granite.I18n.get("Only {0} left in stock.",ma.quantity)+"\x3c/span\x3e",xa.find(".pd-select-option__check-message--success").html(Ea),xa.find(".pd-select-option__check-message--success").addClass("is-show")):xa.find(".pd-select-option__check-message--error").addClass("is-show"):xa.find(".pd-select-option__check-message--error").addClass("is-show")):("OUTOFSTOCK"==ua.stockLevelStatus?Ha=Granite.I18n.get("Get stock alert"):(xa.find(".pd-select-option__check-message--error").addClass("is-show"),
Ha=Granite.I18n.get("buy now")),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==ua.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),
$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled")):(Ha="INSTOCK"==ua.stockLevelStatus?Granite.I18n.get("buy now"):Granite.I18n.get("Get stock alert"),$(".pd-buying-price__cta").find(".cta--contained").text(Ha),$(".pd-buying-price__cta").find(".cta--contained").removeClass("cta--disabled"),$(".cost-box__cta").find(".cta--contained").text(Ha),$(".cost-box__cta").find(".cta--contained").removeClass("cta--disabled"));ja.checkDealerStock=
Ka})}function V(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptTariff.on("click","#pd-tariff-option-0",a,function(m){var g=m.data.sharedObj,p=g.util.hasTariffOption(g,m.data.selectorObj);m.preventDefault();if(!p)return!1;g.isMigrationHybris?tariffData.showPopup():"GPv2"===g.apiFlag?tariffData.setTariff(g.syndiProductData):tariffData.showPopup(g.hybrisApiData.tarriffOption)});c.buyingToolOpt.on("click","#pd-tariff-option-1, .remove-tariff-option-result",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;
var p=g.util,aa=p.hasTariffOptionResult(g,m);ba.triggerChange(document.querySelector("#pd-tariff-option-1"));aa&&(aa=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(aa,"delete"),p.settingCommonPopupTagging("tariffOption",g,m))});c.buyingToolOptTariff.on("click",'.cta[data-target-popup\x3d"tariffInfoPopup"]',
a,function(m){window.sg.components.tariffInfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-tariff-option"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;ba.triggerChange(document.querySelector("#pd-tariff-option-1"));L.tariffOptionResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataPrice:null,dataSimskuCode:null,dataModelCode:null,dataId:null};if("de"===g.siteCode){var ma=
window.sg.components.dynamic.detailSharedObj.relatedProductsObj;if(g.hasTariffGift)if(p.isNotEmpty(ma)){var ua={};g.hasGift=!0;g.hasGiftBundle=!1;window.sg.components.dynamic.freeGiftHybrisCommon.relatedProductsSimpleInfoSuccessCallBackFunc(ma,g,ua);window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)}else g.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1);g.hasPlanIDAndFreeGiftPromotion&&(g.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0))}(ma=
tariffData.BROADBAND_CACHE.returnObject)&&ma.isBroadbandService&&tariffData.removeBroadbandCache();aa.tariffOpionResultDraw(L);p.totalAfterFunction(g,m);g.globalServiceInfo.tariff&&delete g.globalServiceInfo.tariff})}function ka(a,c){var m=c.buyingToolOptOffer;c={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.giftBundle .s-btn-gift-popup",c,function(g){var p=$(this),aa=g.data.sharedObj;g=g.data.selectorObj;var L=aa.util;p=p.closest(".giftBundle");var ma=aa.disabledClass;g=L.hasOffer(aa,
g)&&!p.hasClass(ma);L=$(this).attr("data-gift-idx");"0"===L&&(L=null);aa.checkedGiftArea=p;g&&(aa.isGpv2?window.sg.components.dynamic.freeGiftGPv2.giftPopupGrid(L):aa.isMigrationHybris?window.sg.components.dynamic.freeGiftNewHybris.giftPopupGrid(L):window.sg.components.dynamic.freeGiftHybris.giftPopupGrid(L))});m.on("click",".pd-offer__item.giftBundle .pd-offer__selected-bundle-cancel",c,function(g){var p=$(this),aa=g.data.sharedObj;g=g.data.selectorObj;p=p.attr("data-event-index");var L=Granite.I18n.get("Selected options will be reset.")+
"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),ma=aa.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",p);confirmPopup(L,"delete");ma.settingCommonPopupTagging("combo",aa,g)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-gift"]',c,function(g){g=$(this).attr("data-event-index");var p=a.view,aa=a.drawObj,
L=aa.offer.gift.item.bundleList;L.splice(g,1);if(1>L.length)aa.offer.gift.item.hasBundle=!1,aa.offer.gift.item.learnMoreCta.giftIdx=0;else for(var ma in L)L[ma].dataEventType=ma;p.productOfferDraw(aa)})}function va(a,c){var m=c.buyingToolOptOffer,g={sharedObj:a,selectorObj:c};m.on("click",".pd-offer__item.compoBundle .s-btn-combo-popup",g,function(p){var aa=$(this),L=p.data.sharedObj;p=p.data.selectorObj;var ma=L.util;aa=aa.closest(".compoBundle");var ua=L.disabledClass;p=ma.hasOffer(L,p)&&!aa.hasClass(ua);
ma=aa.attr("data-combo-index");var ja=[];L.checkedComboArea=aa;p&&(0<aa.find(".pd-offer__selected-bundle").length&&aa.find(".pd-offer__selected-bundle").each(function(){ja.push($(this).attr("data-index"))}),window.sg.components.dynamic.comboPopup.comboPopupGrid(L.globalComboData[ma],ja),window.sg.components.shopComboPopup.showPopup())});m.on("click",".pd-offer__item.compoBundle .pd-offer__selected-bundle-cancel",g,function(p){var aa=$(this),L=p.data.sharedObj;p=p.data.selectorObj;aa=aa.attr("data-event-index");
var ma=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),ua=L.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",aa);confirmPopup(ma,"delete");ua.settingCommonPopupTagging("combo",L,p)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-combo"]',g,function(p){var aa=
$(this).attr("data-event-index").split("-");p=Number(aa[1]);aa=Number(aa[2]);var L=a.view,ma=a.util,ua=a.drawObj,ja=ua.offer.combo,xa=null;for(Ka in ja){var Ia=ja[Ka];if(Ia.comboIndex===p){xa=Ia;break}}if(xa){var Ka=xa.item.bundleList;Ka.splice(aa,1);1>Ka.length&&(xa.hasBundle=!1);for(var Ea in Ka)Ka[Ea].dataEventType="combo-"+p+"-"+Ea}L.productOfferDraw(ua,!0);L.tradeInResultDraw(ua);ma.totalAfterFunction(a,c);a.globalServiceInfo.combo&&delete a.globalServiceInfo.combo})}function Aa(a,c){a={sharedObj:a,
selectorObj:c};c.buyingToolOptUpgrade.on("click","#pd-belo4d-upgrade-0",a,function(m){var g=m.data.sharedObj,p=m.data.selectorObj,aa=g.util,L=$(this),ma=aa.hasTradeInResult(g,p),ua=aa.hasCareResult(g,p),ja=aa.hasUpgrade(g,p),xa=g.eupData,Ia=g.drawObj,Ka=g.view;if(L.hasClass("hybris-es-yes"))$("#pd-belo4d-upgrade-0").attr("checked","checked"),$("#pd-belo4d-upgrade-1").prop("checked",!1),Ia.upgradeResult={hasComponent:!0,displayModelName:null,discountText1:null,description1:"Con belo4d Upgrade, \u00a1Disfruta de seguro Gratis! **",
description2:null,dataId:["0"],dataPrice:0,isHybris:!0,isGp:!1},Ka.upgradeResultHybrisDraw(Ia),ba.triggerChange(document.querySelector("#pd-belo4d-upgrade-0")),aa.totalAfterFunction(g,p),$(p.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(Granite.I18n.get("With belo4d 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(!ja)return!1;ma?0===g.tradeInSelectCnt&&
(xa.salePrice-=g.tradeInSelectPrice,g.tradeInSelectCnt++):1===g.tradeInSelectCnt&&(xa.salePrice+=g.tradeInSelectPrice,g.tradeInSelectCnt--);ua?0===g.smcSelectCnt&&(xa.salePrice+=g.smcSelectPrice,g.smcSelectCnt++):1===g.smcSelectCnt&&(xa.salePrice-=g.smcSelectPrice,g.smcSelectCnt--);buyingPdEup.eupPopupGrid(g.eupData)}});c.buyingToolOpt.on("click","#pd-belo4d-upgrade-1, .remove-upgrade-result",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=$(this),L=p.hasUpgradeResult(g,
m),ma=g.drawObj,ua=g.view;aa.hasClass("hybris-es-no")?($("#pd-belo4d-upgrade-1").attr("checked","checked"),$("#pd-belo4d-upgrade-0").prop("checked",!1),ma.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!0,isGp:!1},ua.upgradeResultHybrisDraw(ma),ba.triggerChange(document.querySelector("#pd-belo4d-upgrade-1")),p.totalAfterFunction(g,m),$(m.buyingToolOptUpgrade).find(".pd-select-option__desc.selected-disclaimer").text(""),
ta&&"es"===g.siteCode?$("#pd-rewards-msg").text(Granite.I18n.get("Earn 1% back in rewards (for Rewards members only)_epp")):$("#pd-rewards-msg").text(Granite.I18n.get("Earn 1% back in rewards (for Rewards members only)"))):(ba.triggerChange(document.querySelector("#pd-belo4d-upgrade-1")),L&&(aa=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(aa,"delete"),p.settingCommonPopupTagging("upgrade",g,m)))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-upgrade"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;L.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null,isHybris:!1,isGp:!0};ba.triggerChange(document.querySelector("#pd-belo4d-upgrade-1"));aa.upgradeResultDraw(L);
p.totalAfterFunction(g,m)});c.buyingToolOptUpgrade.on("click",'.cta[data-target-popup\x3d"upgradeLearnMorePopup"]',a,function(m){window.sg.components.upgradeLearnMorePopup.showPopup()})}function sa(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-1",a,function(m){var g=m.data.sharedObj,p=g.util.hasAssuredBuyBack(g,m.data.selectorObj);m.preventDefault();if(!p)return!1;m="";p=g.syndiProductData.product_display_name?g.syndiProductData.product_display_name:
"";g.proudctPriceInfo.salePrice?m=currencyComma(g.proudctPriceInfo.salePrice,g.priceCurrency):g.proudctPriceInfo.orignalPrice&&(m=currencyComma(g.proudctPriceInfo.orignalPrice,g.priceCurrency));assuredBuybackData.assuredBuybackGrid(p,m,g.totalSkuList[g.assuredSku])});c.buyingToolOptAssuredBuyBack.on("click","#pd-galaxy-assured-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=p.hasAssuredBuyBackResultResult(g,m);ba.triggerChange(document.querySelector("#pd-galaxy-assured-0"));
aa&&(aa=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(aa,"delete"),p.settingCommonPopupTagging("assured",g,m))});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-assured"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;L.assuredBuyBackResult={hasComponent:!1,
dataSku:null,dataPrice:null,dataSalePrice:null};ba.triggerChange(document.querySelector("#pd-galaxy-assured-0"));aa.assuredBuyBackResultDraw(L);p.totalAfterFunction(g,m)})}function ha(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptNewAssuredBuyBack.on("click",".open-popup",a,function(m){var g=$(this),p=m.data.sharedObj,aa=p.util.hasNewAssuredBuyBack(p,m.data.selectorObj),L=[],ma=Number(g.attr("id").slice(-1))-1;m.preventDefault();if(!aa)return!1;m=$(".hdd02-buying-tool .pd-select-option__notice");
m.hasClass("is-show")&&m.removeClass("is-show");p.newAssuredBuyBackCheck=!0;p.popupReturnObj=g;L.push(p.newAssuredBuyBackList[ma].productItem);configuratorABB.setProductInfo(L)});c.buyingToolOptNewAssuredBuyBack.on("click","#pd-galaxy-new-assured-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=p.hasNewAssuredBuyBackResult(g,m);g.util.checkAddToCart(g,m);var L=$(".hdd02-buying-tool .pd-select-option__notice");L.hasClass("is-show")&&L.removeClass("is-show");g.newAssuredBuyBackCheck=
!0;aa&&(aa=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(aa,"delete"),p.settingCommonPopupTagging("assured",g,m))});c.buyingToolOptNewAssuredBuyBack.on("click",'.cta[data-target-popup\x3d"assuredBuyBackInfoPopup"]',a,function(m){window.sg.components.AssuredBuyBackInfoPopup.showPopup()});$(".confirm-popup").on("click",
'.cta[data-event-type\x3d"remove-new-assured"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;L.newAssuredBuyBackResult={hasComponent:!1,dataModelCode:null,dataModelName:null,dataPrice:null,dataDisplayPrice:null,dataDisplayName:null};aa.newAssuredBuyBackResultDraw(L);ba.triggerChange(document.querySelector("#pd-galaxy-new-assured-0"));p.totalAfterFunction(g,m)})}function ra(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptGalaxyForever.on("click",
"#pd-belo4d-galaxy-forever-0",m,function(g){var p=g.data.sharedObj,aa=g.data.selectorObj,L=p.util,ma=L.hasForever(p,aa),ua=L.hasTradeInResult(p,aa),ja=p.exchangeApiData,xa=p.priceCurrency,Ia=L.hasBogo(p,aa);aa=L.hasComboResult(p,aa);g.preventDefault();if(!ma)return!1;ua&&ja.addtionalPrice&&!Ia&&!aa?(g=Granite.I18n.get("Along with Galaxy Forever benefit, you will not be entitled for additional exchange bonus ({0}). However, you can avail the regular exchange benefit.",currencyComma(ja.addtionalPrice,
xa)),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","open-forever-popup"),confirmPopup(g,"delete")):buyingPdForever.foreverPopupGrid(p.foreverFinanceInfo)});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"open-forever-popup"]',m,function(g){buyingPdForever.foreverPopupGrid(a.foreverFinanceInfo)});c.buyingToolOpt.on("click","#pd-belo4d-galaxy-forever-1, .remove-forever-result",m,function(g){var p=g.data.sharedObj;g=g.data.selectorObj;
var aa=p.util,L=aa.hasForeverResult(p,g);ba.triggerChange(document.querySelector("#pd-belo4d-galaxy-forever-1"));L&&(L=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(L,"delete"),aa.settingCommonPopupTagging("forever",p,g))});c.buyingToolOptWarranty.on("click",'.cta[data-target-popup\x3d""]',m,function(g){});
$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-forever"]',m,function(g){var p=g.data.sharedObj;g=g.data.selectorObj;var aa=p.util,L=p.view,ma=p.drawObj,ua=aa.hasTradeInResult(p,g);ma.galaxyForeverResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,description2:null,dataId:[],dataPrice:null};ba.triggerChange(document.querySelector("#pd-belo4d-galaxy-forever-1"));L.galaxyForeverResultDraw(ma);ua&&aa.exchangeResultDraw(p,g);aa.totalAfterFunction(p,g);
aa.hasCare(p,g)&&(g.buyingToolOptCare.show(),window.sg.components.ProductDetailKvNew.reInit())})}function da(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptWarranty.on("click","#pd-belo4d-warranty-0",a,function(m){var g=m.data.sharedObj,p=m.data.selectorObj,aa=g.util;m.preventDefault();if(!aa.hasWarranty(g,p))return!1;configuratorWarranty.setProductInfo(g.finalWarrantyList)});c.buyingToolOptWarrantyVd.on("click","#pd-extended-warranty-option-0",a,function(m){var g=m.data.sharedObj,p=m.data.selectorObj,
aa=g.util;m.preventDefault();if(!aa.hasWarrantyVd(g,p))return!1;configuratorWarrantyVD.setProductInfo()});c.buyingToolOpt.on("click","#pd-belo4d-warranty-1, .remove-warranty-result",a,function(m){var g=m.data.sharedObj;m=g.util.hasWarrantyResult(g,m.data.selectorObj);ba.triggerChange(document.querySelector("#pd-belo4d-warranty-1"));m&&(m=Granite.I18n.get("Selected options will be reset.")+"\x3cbr\x3e"+Granite.I18n.get("Do you want to proceed?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
"remove-warranty"),confirmPopup(m,"delete"))});c.buyingToolOpt.on("click","#pd-extended-warranty-option-1, .option-result--extended-warranty-option .option-result__close",a,function(m){var g=m.data.sharedObj;if(g.util.hasWarrantyVdResult(g,m.data.selectorObj))if(m=Granite.I18n.get("VD_Extended Warranty Popup_Delete Warranty"),"mx"==siteCode){$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("data-event-type","remove-warranty-vd");confirmPopup(m,"delete","",document.querySelector(".option-result--extended-warranty-option"));
var p=$(".confirm-popup");m=p.find(".confirm-popup__title");g=p.find(".cta--contained");p=p.find(".cta--outlined");m.html(Granite.I18n.get("Las opciones seleccionadas se eliminaran"));g.html(Granite.I18n.get("VD_Extended Warranty_YES"));p.html(Granite.I18n.get("VD_Extended Warranty_NO"))}else $(".confirm-popup-v2 .confirm-popup-v2__cta-wrap .cta.cta--contained").attr("data-event-type","remove-warranty-vd"),confirmPopupV2(m,"delete warranty","",document.querySelector(".option-result--extended-warranty-option"))});
c.buyingToolOptWarrantyVd.on("click",'.cta[data-target-popup\x3d"ExtendedWarrantyLearnMorePopup"]',a,function(m){m=Granite.I18n.get("VD_Extended Warranty Popup_Delete Warranty");confirmPopupV2(m,"warranty learn more","",document.querySelector(".option-warranty-vd .cta"))});c.buyingToolOptWarrantyVd.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});c.buyingToolOptWarranty.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',
a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;L.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};ba.triggerChange(document.querySelector("#pd-belo4d-warranty-1"));aa.warrantyResultDraw(L);
p.totalAfterFunction(g,m)});$(".confirm-popup-v2,.confirm-popup").on("click",'.cta[data-event-type\x3d"remove-warranty-vd"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;ba.triggerChange(document.querySelector("#pd-extended-warranty-option-1"));ba.optionClose(document.querySelector(".option-result--extended-warranty-option"));L.warrantyVdResult={hasComponent:!1,title:null,price:null,smcCode:null,description:null,priceDisplay:null};aa.warrantyVdResultDraw(L);
p.totalAfterFunction(g,m);"mx"==siteCode&&$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("data-event-type","");$(".summary__product-price").hide();$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").hide()})}function E(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOptCare.on("click",".open-grid",a,function(m){m=$(this);var g=m.closest(".pd-option-selector").siblings();m.closest(".pd-select-option__list--belo4d-care").find(".pd-select-option__payment").each(function(p,
aa){$(aa).hasClass("hidden")||$(aa).addClass("hidden")});g.removeClass("hidden");window.dispatchEvent(new Event("resize"))});c.buyingToolOptCare.on("click",".open-popup",a,function(m){var g=$(this),p=m.data.sharedObj,aa=m.data.selectorObj,L=p.isNotGpv2,ma=p.util,ua=p.drawObj.care.isSmcType2?Number(g.attr("data-index")):Number(g.attr("data-index"))-1;ma=ma.hasCare(p,aa);aa=[];p.popupReturnObj=g;m.preventDefault();if(!ma)return!1;L||p.isMigrationHybris?(m=$.extend({},p.hybrisCareData),aa.push(m.smcs[ua]),
m.smcs=aa,"true"==g.attr("data-prePopup")?configuratorCare.showPrePopup(m,g):configuratorCare.showPopup(m,g)):(aa.push(p.finalCareList[ua]),configuratorCare.setProductInfo(aa))});c.buyingToolOptCare.on("click","#pd-belo4d-care-0",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.drawObj,aa=p.care.isSmcType2,L=g.util,ma=g.siteCode,ua=L.hasCareResult(g,m);p.careResult.dataModelCode="none";g.util.checkAddToCart(g,m);ua?(aa?ba.triggerChange(g.popupReturnObj.closest("li").find(".open-grid").get(0)):
g.popupReturnObj&&ba.triggerChange(g.popupReturnObj.get(0)),"pt"===ma?(p=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(p,"delete")):"cn"===ma?(p=Granite.I18n.get("Are you sure you want to remove belo4d Butler service?"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type",
"remove-care"),confirmPopup(p,"delete")):"ro"===ma||"it"===ma?(p=Granite.I18n.get("Remove belo4d Care+"),$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained.cta--emphasis").attr("data-event-type","remove-care"),confirmPopup(p,"deleteSC+")):(p=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(p,"delete")),
L.settingCommonPopupTagging("care",g,m)):aa&&$(this).closest(".pd-select-option__list--belo4d-care").find(".pd-select-option__payment").each(function(ja,xa){$(xa).hasClass("hidden")||$(xa).addClass("hidden")})});c.buyingToolOptCare.on("click",'.cta[data-target-popup\x3d"hubbleCareinfoPopup"]',a,function(m){window.sg.components.hubbleCareinfoPopup.showPopup()});c.buyingToolOptCare.on("click",'.cta[data-target-popup\x3d"scLearnMorePopup"]',a,function(m){window.sg.components.scLearnMorePopup.showPopup()});
$(".confirm-popup").on("click",'.cta[data-event-type\x3d"remove-care"]',a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.util,aa=g.view,L=g.drawObj;L.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);L.care.isSmcType2&&(g.popupReturnObj.get(0).checked=!1,$(".option-care ul.pd-select-option__list--belo4d-care").find(".pd-select-option__payment").each(function(ma,
ua){$(ua).hasClass("hidden")||$(ua).addClass("hidden")}));ba.triggerChange(document.querySelector("#pd-belo4d-care-0"));aa.careResultDraw(L);p.totalAfterFunction(g,m);g.globalServiceInfo.care&&delete g.globalServiceInfo.care})}function b(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptEmbedAddon.on("click","ul li input, .embed-addon-add",m,function(g){var p=$(this),aa=g.data.sharedObj,L=aa.globalServiceInfo;g=g.data.selectorObj;var ma=aa.util;$("#priceCurrency").val();var ua=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"),ja=parseFloat(ua.attr("data-total-price")),xa=parseFloat(ua.attr("data-total-sale-price")),Ia=p.closest("li").find(".add-on-product__final-price"),Ka=p.closest("li").find(".add-on-product__original-price"),Ea=p.closest("li").find(".add-on-product__saving-price");parseFloat(Ia.attr("data-price"));Ka=Ea.attr("data-save-price")?parseFloat(Ka.attr("data-original-price")):parseFloat(Ia.attr("data-price"));
Ia=parseFloat(Ia.attr("data-price"));"checkbox"===p.attr("type")?p.attr("id"):p.attr("data-id");p.closest("li").find(".add-on-product__title").attr("data-model-name");var Ha="checkbox"===p.attr("type")?p.closest("li").find(".add-on-product__serial-number").attr("data-model-code"):"in"!==siteCode?p.attr("data-mode-code"):p.attr("data-shopsku");Ea=aa.drawObj.embedAddon.itemSet;for(var Sa=[],Ga=$jscomp.makeIterator(Ea),pa=Ga.next();!pa.done;pa=Ga.next())Sa.push(pa.value.modelCode);var Oa="";Ga=!1;"checkbox"===
p.attr("type")?Ga=p.is(":checked")?!0:!1:p.hasClass("cta--outlined")?(p.removeClass("cta--outlined"),p.addClass("cta--contained"),p.attr("aria-label","Added"),p.text(Granite.I18n.get("Added")),Ga=!0):(p.addClass("cta--outlined"),p.removeClass("cta--contained"),p.attr("aria-label","Add"),p.text(Granite.I18n.get("Add")),Ga=!1);p.blur();aa.clickEmbedAddon=!0;Ga?(L.embedaddon&&0<L.embedaddon.length?L.embedaddon.push(Ha):L.embedaddon=[Ha],ua.attr("data-total-price",ja+Ka),ua.attr("data-total-sale-price",
xa+Ia),Ea.filter(function(Ca){Ca.modelCode===Ha&&aa.embedAddonSelected.push(Ca)})):(L.embedaddon=L.embedaddon.filter(function(Ca){return Ca!==Ha}),ua.attr("data-total-price",ja-Ka),ua.attr("data-total-sale-price",xa-Ia),aa.embedAddonSelected=aa.embedAddonSelected.filter(function(Ca){return Ca.modelCode!==Ha}));aa.embedAddonSelected.forEach(function(Ca){Ca.summaryPrice=""+Ca.finalPrice});aa.drawObj.price.summaryArea.embedAddonSelected=aa.embedAddonSelected;0<$("#personalizeMyTv").length&&(aa.pmtModelList=
aa.pmtModelList.filter(function(Ca){return!Sa.includes(Ca)}),L.embedaddon.forEach(function(Ca){aa.pmtModelList.push(Ca)}),aa.pmtModelList.forEach(function(Ca){Oa.includes("\x26option\x3d")||aa.pmtURL.includes("\x26option\x3d")||(Oa+="\x26option\x3d");Oa+=Ca+","}),aa.pmtURL||(aa.pmtURL=$("#personalizeMyTv .cta").attr("href")),$("#personalizeMyTv .cta").attr("href",aa.pmtURL+Oa.slice(0,-1)));ma.totalAfterFunction(aa,g)});c.buyingToolOptEmbedAddon.on("click",".cta-learn-more",m,function(g){g=$(this).attr("data-model-idx");
var p=a.drawObj.embedAddon.itemSet[g],aa=p.thirdPASeller,L=p.categorySubType;g=$("#addOnLayerPopupLearnMore");g.find(".add-on-popup__title").html(L);L=p.imgSrcList;var ma="";for(ua in L)ma+='\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"'+H(L[ua],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+H(L[ua],"$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"'+
H(L[ua],"$N_240_PNG$",!1,!0)+'" data-mobile-src\x3d"'+H(L[ua],"$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 ua='\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": '+
(L&&1===L.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'+ma+'\x3c/div\x3e\n\t\t\t\t\x3cbutton type\x3d"button" class\x3d"swiper-button-next"\x3e\n\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eNext\x3c/span\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/button\x3e\n\t\t\t\x3c/div\x3e';
g.find(".add-on__learn-more-images").html(ua);L&&1===L.length&&g.find(".swiper-container").attr("");ua="";ma="GPv2"===$("#shopIntegrationFlag").val();var ja="Hybris-new"===$("#shopIntegrationFlag").val();L="Hybris-intg"===$("#shopIntegrationFlag").val();ma=!ma&&!L&&!ja;if(L){L=[{key:p.tradeIn,value:p.tradeInDesc},{key:p.premiumCare,value:p.premiumCareDesc},{key:p.financing,value:p.financingDesc},{key:p.upgrade,value:p.upgradeDesc},{key:p.storePromotions?"Y":"N",value:p.storePromotions}];for(var xa in L)"Y"===
L[xa].key&&(ua+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+L[xa].value+"\x3c/li\x3e")}else if(ma&&p.vd3PAMarketingMessage&&0<p.vd3PAMarketingMessage.length)for(xa=$jscomp.makeIterator(p.vd3PAMarketingMessage),L=xa.next();!L.done;L=xa.next())ua+='\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+L.value+"\x3c/li\x3e";if(p.uspText&&0<p.uspText.length)for(xa=$jscomp.makeIterator(p.uspText),L=xa.next();!L.done;L=xa.next())ua+='\t\x3cli class\x3d"add-on__learn-more-feature-item" role\x3d"listitem"\x3e'+
L.value+"\x3c/li\x3e";xa="";if(p.keySummary&&0<p.keySummary.length)for(L=$jscomp.makeIterator(p.keySummary),ma=L.next();!ma.done;ma=L.next())ma=ma.value,"feature"===ma.displayType.toLowerCase()&&(xa+='\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"'+
H(ma.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+H(ma.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+ma.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"'+H(ma.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+H(ma.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+ma.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'+ma.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
aa='\n\t\t\t\t\x3ch3 class\x3d"add-on__learn-more-title"\x3e'+p.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'+p.modelCode+"\x3c/p\x3e\n\t\t\t\t\t"+(aa?"\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(p.ratings&&p.reviewCount){L=p.ratings;ma=p.reviewCount;L||(L=0);ja=Math.pow(10,1);L=Math.round(L*ja)/ja;var Ia=
parseFloat(L).toFixed(1);ja=parseInt(L);var Ka=parseInt(100*(Ia-ja));"0.0"!==Ia&&(L=Ia);Ia='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Ea=0;Ea<ja;Ea++)Ia+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 100%;"\x3e\x3c/span\x3e\x3c/span\x3e';if(5>ja&&0<ja)for(Ia+='\t\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width:'+
Ka+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',Ka=4;Ka>ja;Ka--)Ia+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';else if(0===ja)for(ja=0;5>ja;ja++)Ia+='\t\x3cspan class\x3d"rating__star-item"\x3e\x3cspan class\x3d"rating__star-empty"\x3e\x3c/span\x3e\x3cspan class\x3d"rating__star-filled" style\x3d"width: 0%;"\x3e\x3c/span\x3e\x3c/span\x3e';Ia+='\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3e'+
Granite.I18n.get("Product Ratings")+" : \x3c/span\x3e\x3cspan\x3e"+L+'\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"+(ma?ma:0)+"\x3c/span\x3e)\x3c/em\x3e";L='\x3cdiv class\x3d"add-on__learn-more-review"\x3e\n\t\t\t\t\t\x3cspan class\x3d"rating"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"rating__inner"\x3e\n\t\t\t\t\t\t\t'+Ia+"\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\x3c/div\x3e"}else L=
"";p=aa+L+'\n\t\t\t\t\x3cul class\x3d"add-on__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"+(p.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"'+p.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"+(xa?'\x3cul class\x3d"add-on__learn-more-feature-icon"\x3e\n\t\t\t\t\t'+xa+"\n\t\t\t\t\x3c/ul\x3e":"");g.find(".add-on__learn-more-content").html(p);ba.buyingTool.openAddOnLearnMore(document.querySelector("#addOnLayerPopupLearnMore"))});c.buyingToolOptEmbedAddon.on("click",".add-on-product__view-btns-wrap button",m,function(g){ba.buyingTool.viewMoreVDAddOn()})}function x(a,c){c.buyingToolOptSMBQuantity.on("click",".smb-count",{sharedObj:a,selectorObj:c},function(m){m=Number($("#counterText").val());
a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("propertychange change keyup paste","#counterText",function(m){m=$(this);var g=m.val().replace(/[^0-9].*/,"");m.val(g);m=Number(m.val());a.util.validateQuantity(m,a,c)});c.buyingToolOptSMBQuantity.on("focusout ","#counterText",function(m){m=$(this);m.val()&&"0"!=m.val()||m.val(1)})}function P(a,c){a={sharedObj:a,selectorObj:c};c.buyingToolOpt.on("click","#gift-card-amount-0, #gift-card-amount-1",a,function(m){var g=m.data.sharedObj;m=
m.data.selectorObj;g.giftCard.amountValid=!0;g.giftCard.selectedPrice=$(this).data("price");g.util.settingPriceDraw(g,m)});c.buyingToolOpt.on("click","#gift-card-amount-2",a,function(m){m.data.sharedObj.giftCard.amountValid=!1});c.buyingToolOpt.on("click",".pd-select-option--gift-card .cta",a,function(m){var g=m.data.sharedObj;m=m.data.selectorObj;var p=g.giftCard.inputAmount;p<g.giftCard.minPrice||p>g.giftCard.maxPrice||0<p%g.giftCard.priceIncrement?(g.giftCard.amountValid=!1,g=Granite.I18n.get("Please enter only numbers. {0} {1}",
[g.giftCard.minPriceFormatted,g.giftCard.maxPriceFormatted]),$(".pd-select-option--gift-card .text-field-v2__text").text(g),$(".pd-select-option--gift-card .text-field-v2__text.error").show()):(g.giftCard.amountValid=!0,$(".pd-select-option--gift-card .text-field-v2__text.error").hide(),$("#gift-card-amount-2").attr("data-price",g.giftCard.inputAmount),g.giftCard.selectedPrice=$("#gift-card-amount-2").attr("data-price"),g.util.settingPriceDraw(g,m))});$("#gift-card-amount-0").click()}function H(a,
c,m,g){var p="",aa=$("#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.quick3d.org/")||-1<a.indexOf("//images.quick3d.org/")||-1<a.indexOf("image.quick3d.org/")||-1<a.indexOf("//stg-images.quick3d.org.cn/")||-1<a.indexOf("//images.quick3d.org.cn/")||-1<a.indexOf("image.quick3d.org.cn/")?p=a:(m&&(aa=aa.replace("/image/","/content/")),
p=aa+a));g&&-1===a.indexOf("?")&&(p+=c);return p}function ca(a,c){c={sharedObj:a,selectorObj:c};var m=0;a.btnClickFlagAddCartContinue=!0;$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder continue"], .hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart continue"]');
$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder continue"], .hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart continue"]',c,function(g){if(a.btnClickFlagAddCartContinue&&
!S(g.data.sharedObj)){var p=g.data.sharedObj;g=g.data.selectorObj;var aa=p.siteCode,L=p.util,ma=$("#shopIntegrationFlag").val();L.checkingDeliveryCode(p,g)&&m++;if(1===m&&L.checkingDeliveryCode(p,g)&&L.checkingNewAssuredBuyBack(p)&&L.checkingbelo4dCare(p)&&L.checkWarrantyVd(p))p.afterEvent.addToCartCta(null,!1),p.isMigrationHybris?(p.clickDom=this,$("#hubble-care").addClass("gift-hubble-care")):"Hybris"===ma||"Hybris-intg"===ma||"in"===aa?p.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
window.sg.components.dynamic.bridgePage.moveBridgePage(this);else{m=0;return}}a.btnClickFlagAddCartContinue=!1});$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout continue"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout continue"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout continue"]',
c,function(g){if(!S(g.data.sharedObj)){var p=g.data.sharedObj;g=g.data.selectorObj;var aa=p.util,L=$("#shopIntegrationFlag").val();aa.checkingDeliveryCode(p,g)&&m++;1===m&&aa.checkingDeliveryCode(p,g)&&aa.checkingNewAssuredBuyBack(p)&&aa.checkingbelo4dCare(p)&&(p.afterEvent.checkOutCta(null,!1),p.isMigrationHybris?(p.clickDom=this,$("#hubble-care").addClass("gift-hubble-care")):"Hybris"===L||"Hybris-intg"===L||"in"===siteCode?p.useNewAddToCartApi||window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(this):
window.sg.components.dynamic.bridgePage.moveBridgePage(this))}});$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout"],.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"checkout between"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"checkout between"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"checkout between"]',
c,function(g){a.clickTarget=$(this);S(g.data.sharedObj)||(g=g.data.sharedObj,g.util.checkingbelo4dCare(g)&&g.afterEvent.checkOutCta(null,!0))});$(document).off("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"add-cart"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"add-cart"]',
c,function(g){a.clickTarget=$(this);if(!S(g.data.sharedObj)){var p=g.data.sharedObj,aa=p.util;if(aa.checkingDeliveryCode(p,g.data.selectorObj)){var L,ma;console.log("Is Extended warranty available? ",null==p?void 0:null==(L=p.drawObj)?void 0:null==(ma=L.warrantyVd)?void 0:ma.hasComponent);var ua,ja;"pl"===p.siteCode&&(null==p?0:null==(ua=p.drawObj)?0:null==(ja=ua.warrantyVd)?0:ja.hasComponent)?aa.checkWarrantyVd(p)&&p.afterEvent.addToCartCta(null,!0):aa.checkingbelo4dCare(p)&&(p.giftCard.isGiftCard?
aa.checkingRecipientInfo(p)&&p.afterEvent.addToCartCta(null,!0):p.newAssuredBuyBackFlag?aa.checkingNewAssuredBuyBack(p)&&p.afterEvent.addToCartCta(null,!0):p.afterEvent.addToCartCta(null,!0))}}"br"===a.siteCode&&(g=$(this).parent().attr("class"),"pd-buying-price__cta"==g?h(a,digitalData,".pd-buying-price__cta .cta","pdd01_anchor nav-product detail-cta-cart page"):"cost-box__cta"==g&&h(a,digitalData,".cost-box__cta .cta","header(pim)_price bar-product detail-button-cart"))});$(document).off("click",
'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder"]');$(document).on("click",'.hdd02-buying-tool .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBar .js-buy-now[data-cta-type\x3d"preorder"], #anchorNavigationPriceBarMobile .js-buy-now[data-cta-type\x3d"preorder"]',c,function(g){a.clickTarget=$(this);S(g.data.sharedObj)||(g=g.data.sharedObj,
g.util.checkingbelo4dCare(g)&&g.afterEvent.addToCartCta(null,!0))});$(document).on("click",'.hdd02-buying-tool [data-cta-type\x3d"for-business"], #anchorNavigationPriceBar [data-cta-type\x3d"for-business"], #anchorNavigationPriceBarMobile [data-cta-type\x3d"for-business"]',c,function(g){mailformPopup.showPopup()})}function h(a,c,m,g){a={"class":"cta cta--contained cta--emphasis add-special-tagging js-buy-now tg-add-to-cart","data-cta-type":"add-cart","data-sku-code":c.product.model_code,"an-tr":g,
"an-ca":"buy cta","an-ac":"buy now","an-la":"buy now","aria-label":$(m).text()+":"+c.product.displayName,"data-discountprice":parseFloat(a.totalPrice.sale).toFixed(2),"data-modelcode":c.product.model_code,"data-modeldisplay":c.product.displayName,"data-modelname":c.product.model_name,"data-modelrevenue":c.product.list_price,"data-modelprice":c.product.list_price,"data-pvitype":c.page.pathIndicator.depth_2,"data-pvisubtype":c.page.pathIndicator.depth_3,"data-pimsubtype":c.page.pathIndicator.depth_4,
"data-modelqty":"1"};_satellite.track("buy_cta_dc",a)}function I(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptDelivery.on("input","#delivery-zipcode",m,function(g){g=g.data.sharedObj.siteCode;if("in"===g||"id"===g)g=$(this),g.val(g.val().replace(/[^0-9]/g,""))});c.buyingToolOptDelivery.on("keyup","#delivery-zipcode",m,function(g){var p=g.data.sharedObj,aa=g.data.selectorObj,L=p.siteCode,ma=p.util,ua=$(this),ja=$(aa.buyingToolOptDelivery).find("#delivery-zipcode").val()||"",xa=$(aa.buyingToolOptDelivery).find(".check-zipcode");
"in"===L&&6===ja.length?xa.removeClass("cta--disabled"):xa.addClass("cta--disabled");13===g.which||"us"===L&&5===ja.length||"in"==L&&6===ja.length&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?ma.deliveryGetApiData(p,aa):"ae"!==L&&"ae_ar"!==L&&"us"!==L&&(ua.val(ua.val().replace(/[^\d].+/,"")),(48>g.which||57<g.which)&&g.preventDefault())});c.buyingToolOptDelivery.on("click",".check-zipcode",m,function(g){a.util.deliveryGetApiData(a,c)});c.buyingToolOptDelivery.on("keypress",
"#delivery-zipcode",m,function(g){var p=g.data.sharedObj.siteCode,aa=$(this);"ae"!==p&&"ae_ar"!==p&&"us"!==p&&(aa.val(aa.val().replace(/[^\d].+/,"")),(48>g.which||57<g.which)&&g.preventDefault())});c.buyingToolOptDelivery.on("click",".text-field-v2__input-icon.delete",m,function(g){var p=g.data.sharedObj.siteCode;g=$(g.data.selectorObj.buyingToolOptDelivery).find(".check-zipcode");"in"===p&&g.addClass("cta--disabled")});c.buyingToolOpt.on("click",".remove-delivery",m,function(g){var p=g.data.sharedObj;
g=g.data.selectorObj;var aa=p.util,L=p.drawObj,ma=p.view;"in"===p.siteCode&&(L.delivery.ctaClass="cta--disabled",$(g.buyingToolOptDelivery).find(".check-zipcode").addClass("cta--disabled"));aa.hasDeliveryResult(p,g)&&(L.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]},$.cookies.del("HA-Deeplink-Zipcode",{domain:".quick3d.org"}),$("#delivery-zipcode").val(""),ma.deliveryResultDraw(L));L.delivery.priorityDeliveryText&&$(g.buyingToolOptDelivery).find(".pd-select-option__tooltip").show();
$(g.buyingToolOptDeliveryPickupStore).hide()});ba.buyingTool.bindPdTooltipEvent()}function u(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolCalculate.on("click",".js-install-calc:not(.eip-ee-cal)",m,function(g){g.preventDefault();g=$(this).attr("href");var p=$(".eip-popup");0<p.length&&(p.find("iframe").attr("src",g),window.sg.components.eipPopup.showPopup())});c.buyingToolCalculate.on("click",".js-install-calc.eip-ee-cal",m,function(g){g.preventDefault();installmentPlansData.getPaymentData(a.proudctPriceInfo.salePrice,
c.buyingToolCalculate.find(".js-install-calc.eip-ee-cal").get(0))})}function A(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolOptOffer.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(g){g.preventDefault();var p=$(this),aa=p.attr("href");g=$(".eip-popup");a.isMigrationHybris||"hu"===a.siteCode||"sg"===a.siteCode||"my"===a.siteCode||"nz"===a.siteCode||"vn"===a.siteCode||"th"===a.siteCode||"za"===a.siteCode?"in"===a.siteCode?0<g.length&&(p=$("#storeWebDomain").val()+aa,g.find("iframe").attr("src",
p),window.sg.components.eipPopup.showPopup()):window.sg.components.financePopup.showEmiPopup(a.modelCode,p):0<g.length&&(g.find("iframe").attr("src",aa),window.sg.components.eipPopup.showPopup())});c.buyingToolOptOfferText.on("click",'a[data-target-popup\x3d"eipPopup"]',m,function(g){g.preventDefault();g=$(this);var p="in"!==a.siteCode?g.attr("href"):$("#storeWebDomain").val()+g.attr("href"),aa=$(".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||"za"===a.siteCode?window.sg.components.financePopup.showEmiPopup(a.modelCode,g):0<aa.length&&(aa.find("iframe").attr("src",p),window.sg.components.eipPopup.showPopup())})}function T(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 fa(a,c){c.buyingToolGlallery.on("click",".btn-360",{sharedObj:a,selectorObj:c},function(m){window.sg.common.image360.initAll()})}function X(a,c){var m={sharedObj:a,selectorObj:c};$(".us-epp-discount-keep").on("click",".epp-discount",m,function(g){g=$(this).attr("data-store-id");callUsPrivateStore(g,{sharedObj:a,selectorObj:c},a.util.selectedUsEpp);window.sg.components.usEppDiscount.closeLayer()})}function G(a,c){var m={sharedObj:a,selectorObj:c};c.buyingToolLinks.on("click",
'.cta[data-target-popup\x3d"manufacturerInfoPopup"]',m,function(g){0<$(".manufacturer-info-popup").length&&window.sg.components.manufacturerInfoPopup.showPopup()});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"cancelReturnPolicyPopup"]',m,function(g){g=$(".cancel-return-policy-popup");if(0<g.length){var p=a.returnPolicyText;g.find(".cancel-return-policy-popup__text").html(p);window.sg.components.cancelReturnPolicyPopup.showPopup()}});c.buyingToolLinks.on("click",'.cta[data-target-popup\x3d"warrantyPolicyPopup"]',
m,function(g){g=$(".warranty-policy-popup");if(0<g.length){var p=a.warrantyText;g.find(".warranty-policy-popup__text").html(p);window.sg.components.warrantyPolicyPopup.showPopup()}})}function z(a,c){var m=a.siteCode;c=a.apiDomain;var g=a.shopSkuCode,p=a.pdMultiLanguageYN,aa=a.pdHrefLang;a.tradeInFlag&&"fr"!==m&&"in"!==m&&(a={sku:g},ta&&(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(L){"Y"===p&&L.setRequestHeader("x-ecom-locale",aa)},success:function(L){L&&tradeinData.setTradein(L,"","")},error:function(L){}}))}function M(a,c,m){var g=c.stockLevelStatus,p=c.siteCode,aa=c.util,L=aa.hasBetweenResult(c,m),ma=aa.hasBetweenResult(c,m);m=aa.hasAcessory(c,m);aa=c.hasGift;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,2);var ua=[],ja="",xa=!1;if("INSTOCK"==
g||"BACKORDERED"==g||"PREORDER"==g)if(L?(xa=!0,ja=Granite.I18n.get("Checkout"),ua.push("checkout"),ua.push("between")):ma?"uk"!==p&&"de"!==p?(xa=!0,ja=Granite.I18n.get("Checkout"),ua.push("checkout")):ua.push(a):ua.push(a),m||aa)if(!c.isEmbedAddOn||c.isEmbedAddOn&&c.hasGift)xa=!0,ja="pl"===p?Granite.I18n.get("Add to cart"):Granite.I18n.get("Buy now"),"PREORDER"==g&&(ja=Granite.I18n.get("pre order")),ua.push("continue");return{title:ja,ctaType:ua.join(" "),isSpecial:xa}}function S(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 W=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),ba=W.ux2.PDPHeaderUI,ia=W.ux2.PriceBar,ta="true"===$("#isEppPage").val(),qa="Y"==$("#isNotDelTagSites").val()?"\x3cdel\x3e":"",za="Y"==$("#isNotDelTagSites").val()?"\x3c/del\x3e":"",na=function(a){this.parent=a};na.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());z(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(ta){var g=[];for(p in a.addOnApiList.care.list)a.addOnApiList.care.list[p].price_info&&g.push(a.addOnApiList.care.list[p]);
a.finalCareList=g}else a.finalCareList=a.addOnApiList.care.list}else if(a.addOnApiList&&a.addOnApiList.careAndWarranty)for(g in a.addOnApiList.careAndWarranty.list){var p=a.addOnApiList.careAndWarranty.list[g];var aa=p.product_type.toUpperCase();"WARRANTY"===aa?a.finalWarrantyList.push(p):"INSURANCE"===aa&&a.finalCareList.push(p)}this.settingAfterApiCareDraw(a,c);this.totalAfterFunction(a,c);g=a.financeFlag;p=a.siteCode;aa=a.promotionFinancingFlag;var L=a.totalPrice.sale,ma=a.util,ua=a.view,ja=Granite.I18n.get("Calculate Finance"),
xa=a.drawObj,Ia=ma.getEmiUrl(a,c),Ka=!1,Ea={};"Y"===g&&""!==financingUrl&&"in"!==p&&("uk"===p||"id"===p||"sk"===p||"cz"===p?aa&&(Ka=!0,Ea=ma.getAttrCta(ja,Ia,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"pl"===p||"hu"===p||"ro"===p||"bg"===p||"ua"===p||"ph"===p||"sg"===p||"my"===p||"nz"===p||"cn"===p||"co"===p||"cl"===p||"mx"===p||"kz_kz"===p||"kz_ru"===p?L&&100<L&&(Ka=!0,Ea=ma.getAttrCta(ja,Ia,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):"ee"===p||"lv"===p?(Ka=!0,Ea=ma.getAttrCta(ja,
Ia,"_self","js-install-calc eip-ee-cal",{layerTarget:"eipEEPopup"},"")):(Ka=!0,Ea=ma.getAttrCta(ja,Ia,"_self","js-install-calc",{layerTarget:"eipPopup"},"")));xa.calculator={hasComponent:Ka,emiAttr:Ea};ua.emiDraw(xa);aa=a.util;L=c.buyingToolOptOffer;g=$(c.buyingToolCalculate).find(".js-install-calc");p=L.find('a[data-target-popup\x3d"eipPopup"]');L=L.find('a[data-target-popup\x3d"eipEEPopup"]');aa=aa.getEmiUrl(a,c);p.attr("href",aa);L.attr("href",aa);g.attr("href",aa);a.upgradeFlag&&buyingPdEup.setTncUpgrade();
this.totalReinit(a,c);m.gpHybrisGlobalEndPoint(a,c)}};na.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();ba.gallery.init();ba.buyingTool.bindPdTooltipEvent()};na.prototype.deliveryGetApiData=function(a,c){var m=$(c.buyingToolOptDelivery),g=a.drawObj,p=m.find("#delivery-zipcode").val(),aa=a.view,L=a.siteCode,ma=a.shopSkuCode,ua=a.commonApiModel,ja="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();p?"in"===L&&6>p.length?(g.delivery.errorMessage="Please enter a valid Pincode",g.delivery.inputAttr.value=
p,aa.deliveryDraw(g),ja||$(m).find("#delivery-zipcode").focus().val("").val(p),$(m).find(".text-field-v2__text.error").show(),$(m).find(".pd-select-option__tooltip").hide(),$(m).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide()):(g.delivery.errorMessage=null,g.delivery.inputAttr.value=p,$(m).find(".text-field-v2__text.error").hide(),aa.deliveryDraw(g),a.isMigrationHybris?"in"===L?(ja&&$.cookies.set("deliveryPincode",p,{domain:".quick3d.org",path:"/"+L}),ua.deliveryNewInAPI(a,
c,p,null==a.fulfillmentSku?ma:a.fulfillmentSku)):ua.deliveryNewBybrisAPI(a,c,p,ma):"in"===L?$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(xa,Ia,Ka){g.delivery.time=Ka.getResponseHeader("Date");ua.deliveryInAPI(a,c,p,null==a.fulfillmentSku?ma:a.fulfillmentSku)}}):"us"===L?ua.deliveryUsAPI(a,c,p,ma):ua.deliveryAPI(a,c,p,ma)):(L=Granite.I18n.get("Enter your zipcode"),g.delivery.errorMessage=L,g.delivery.inputAttr.value=p,aa.deliveryDraw(g),ja||$(m).find("#delivery-zipcode").focus().val("").val(p),
$(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())};na.prototype.selectedUsEpp=function(a){var c=a.sharedObj;a=a.selectorObj;var m=$.cookies.get("tmktid",{domain:".quick3d.org"}),g=$.cookies.get("tsgmt",{domain:".quick3d.org"});m&&(c.drawObj.usEppData.title="with "+g+" Discounts",c.drawObj.usEppData.hasSelectBox=!1,c.view.usEppDraw(c.drawObj),c.commonApiModel.setUsEppPrice(c,
a))};na.prototype.settingAfterApiCareDraw=function(a,c){c=a.drawObj;var m=a.view,g=c.care.itemSet,p=a.finalCareList,aa=a.belo4dCareBadgeList,L={},ma=c.care.isSmcType2,ua=c.care.items,ja=c.care.useOneDepthPrice,xa=["tr"].includes(siteCode)?!0:!1,Ia=0,Ka=1;if(ma){var Ea=!1,Ha=!1,Sa={};for(La in p){var Ga=p[La],pa=Ga.modelCode;if(!L[pa]){Sa.$jscomp$loop$prop$isTheft$370=Ga.isTheft;var Oa={},Ca=Granite.I18n.get("belo4d Care+"),Pa="",Fa="",Na=ma="",Ta="",Ua="",Z="",Ba="",la="",wa=null,Da=null,ya="",
Ja="";Ga.displayName&&(Ca=Ga.displayName);Ga.price_info&&Ga.price_info[0]&&(Oa=Ga.price_info[0],wa=Oa.msrp_price,Da=Oa.sale_price,ma=Oa.saveText);wa&&wa.duration_value&&wa.paymentcycle_value&&0<wa.duration_value&&null!=wa.paymentcycle_value&&"monthly"==wa.paymentcycle_value.toLowerCase()&&(Ba=wa.duration_value,la=wa.paymentcycle_value.toLowerCase());wa&&wa.freeMonths_value&&(Z=wa.freeMonths_value);Da&&Da.duration_value&&Da.paymentcycle_value&&0<Da.duration_value&&null!=Da.paymentcycle_value&&"monthly"==
Da.paymentcycle_value.toLowerCase()&&(Ba=Da.duration_value,la=Da.paymentcycle_value.toLowerCase());null!=wa&&"undefined"!==typeof wa.wasValue?(wa&&null!=wa.value&&(Ua=wa.value,ya=wa.wasValue,wa.formatted_value&&(Pa=wa.formatted_value),wa.formatted_wasValue&&(Ja=wa.formatted_wasValue)),Da&&Da.value?(Da.value&&(Ta=Da.value),Da.formatted_value&&(Fa=Da.formatted_value),Ua&&Ua===Ta&&(Pa="")):Fa=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||
"lt"===a.siteCode||"it"===a.siteCode)&&Ba&&la?Granite.I18n.get("{0}/month {1}",[Pa,Ba]):("ch"===a.siteCode||"ch_fr"===a.siteCode||"ro"===a.siteCode||"at"===a.siteCode||"cz"===a.siteCode||"pt"===a.siteCode)&&Ba&&la?Granite.I18n.get("{0}/Mon",Pa):Pa,Ga.flags&&Ga.flags.is_subscription&&"ro"!=a.siteCode&&"cz"!=a.siteCode&&(Fa=Granite.I18n.get("{0}/month",Fa)),0!=parseFloat(ya)&&null!=ya&&(Fa="\x3cdel\x3e"+Ja+"\x3c/del\x3e\x3cem\x3e"+Fa+"\x3c/em\x3e")):(wa&&wa.value&&(Ua=wa.value,wa.formatted_value&&(Pa=
wa.formatted_value)),Da&&Da.value?(Da.value&&(Ta=Da.value),Da.formatted_value&&(Fa=Da.formatted_value),Ua&&Ua===Ta&&(Pa="")):Fa=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode||"it"===a.siteCode)&&Ba&&la?Granite.I18n.get("{0}/month {1}",[Pa,Ba]):Pa,Ga.flags&&Ga.flags.is_subscription&&(Fa=Granite.I18n.get("{0}/month",Fa)),Ta&&Ua&&Ua!==Ta&&(Na="\x3cdel\x3e"+Pa+"\x3c/del\x3e"));Ta="";0<aa.length&&aa[La].product_tags&&
aa[La].product_tags[0]&&(Ta=aa[La].product_tags[0]);ya=null!==ya&&wa&&"undefined"!==typeof wa.wasValue?wa.wasValue:"";"es"==siteCode&&"monthly"==la&&(Fa=-1<Fa.indexOf("\x3cem\x3e")?Fa.replace(/<\/em>/g,"/mes\x3c/em\x3e"):Fa+"/mes");"monthly"===la&&null!=Z&&"0"!=Z&&""!=Z?"se"===siteCode?Fa="0 kr/m\u00e5n i "+Z+" m\u00e5n, d\u00e4refter "+Fa:"no"===siteCode?Fa="0 kr/mnd i "+Z+" mnd, deretter "+Fa:"dk"===siteCode?Fa="0 kr./md. i "+Z+" mdr., derefter "+Fa:"fi"===siteCode?Fa="0 \u20ac/kk "+Z+" kk ajan, sen "+
Fa:"ae"===siteCode?Fa="0 AED for "+Z+" months then "+Fa+"/mo":"ae_ar"===siteCode?Fa="0.00 \u062f.\u0625 \u0644\u0645\u062f\u0629 "+Z+" \u0645\u0646 \u0627\u0644\u0623\u0634\u0647\u0631 \u062b\u0645"+Fa+"/\u0634\u0647\u0631\u064a\u0627\u064b":"uk"===siteCode||"fr"===siteCode||"ro"===siteCode||"at"===siteCode?(Fa=Fa.substring(0,Fa.indexOf("/")),Fa=Granite.I18n.get("freeMonths {0}/month, from {1}",[Z,Fa])):"it"===siteCode&&(Fa=Granite.I18n.get("freeMonths {0}/month, from {1}",[Z,Fa])):"monthly"!==la||
null!=Z&&"0"!=Z&&""!=Z||("uk"===siteCode||xa?(Fa=Fa.substring(0,Fa.indexOf("/")),Fa=Granite.I18n.get("freeMonths_null {0}/month",[Fa])):"ae"===siteCode?Fa+="/month":"ae_ar"===siteCode&&(Fa+="/\u0641\u064a \u0627\u0644\u0634\u0647\u0631"));"de"==siteCode&&"monthly"!=la&&(Fa+=Granite.I18n.get("SC+ Popup Bundle upfront price"));Sa.$jscomp$loop$prop$itemObj$371={index:Ia,optionName:Ca,optionSalePrice:Fa,optionOriPrice:Na,optionSavePrice:ma,optionOriWasPrice:ya,specialText:Ga.long_description,badge:Ta,
paymentCycle:la,oriPriceValue:Ua,summary:Ga.summary,cycle:Ga.cycle,freeMonths:Z};g.push(Sa.$jscomp$loop$prop$itemObj$371);Ga.displayName=Ca;Oa.formattedPrice=Fa;Oa.formattedDelPrice=Pa;L[pa]=pa;Ia++;!Ea&&Sa.$jscomp$loop$prop$isTheft$370?(Ea=[],Ea="at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?K(4,function(Ma){Ma.forEach(function(oa,Ra){Ma[Ra]="theft-"+oa})}):["ro","tr","ae","ae_ar"].includes(siteCode)?K(6,function(Ma){Ma.forEach(function(oa,Ra){Ma[Ra]=
"theft-"+oa})}):K(5),Sa.$jscomp$loop$prop$tempDescList$366=[],Sa.$jscomp$loop$prop$tempDescListIdex$367=0,Ea.forEach(function(Ma){return function(oa,Ra){0>Granite.I18n.get(oa).indexOf("descListText")&&(Ma.$jscomp$loop$prop$tempDescList$366[Ma.$jscomp$loop$prop$tempDescListIdex$367]=Granite.I18n.get(oa),Ma.$jscomp$loop$prop$tempDescListIdex$367++)}}(Sa)),Ea=Sa.$jscomp$loop$prop$tempDescList$366,ua.push({index:Ka,isTheft:Sa.$jscomp$loop$prop$isTheft$370,optionName:Granite.I18n.get("Accidental Damage \x26 Theft"),
paymentCycle:la,optionSalePrice:"",optionOriPrice:Na,optionSavePrice:ma,depthOneBtnTitle:Granite.I18n.get("Accidental Damage \x26 Theft CTA Button"),descList:Ea}),Ea=!0,Ka++):Ha||Sa.$jscomp$loop$prop$isTheft$370||(Ha=[],Ha="at be be_fr ch ch_fr cz de dk es fi fr it no nl pt pl se uk".split(" ").includes(siteCode)?K(4,function(Ma){Ma.forEach(function(oa,Ra){Ma[Ra]="damage-"+oa})}):["ro","tr","ae","ae_ar"].includes(siteCode)?K(6,function(Ma){Ma.forEach(function(oa,Ra){Ma[Ra]="damage-"+oa})}):K(5),Sa.$jscomp$loop$prop$tempDescList$67$368=
[],Sa.$jscomp$loop$prop$tempDescListIdex$68$369=0,Ha.forEach(function(Ma){return function(oa,Ra){0>Granite.I18n.get(oa).indexOf("descListText")&&(Ma.$jscomp$loop$prop$tempDescList$67$368[Ma.$jscomp$loop$prop$tempDescListIdex$68$369]=Granite.I18n.get(oa),Ma.$jscomp$loop$prop$tempDescListIdex$68$369++)}}(Sa)),Ha=Sa.$jscomp$loop$prop$tempDescList$67$368,ua.push({index:Ka,isTheft:Sa.$jscomp$loop$prop$isTheft$370,optionName:Granite.I18n.get("Accidental Damage"),paymentCycle:la,optionSalePrice:"",optionOriPrice:Na,
optionSavePrice:ma,depthOneBtnTitle:Granite.I18n.get("Accidental Damage CTA Button"),descList:Ha}),Ha=!0,Ka++);$.map($.grep(ua,function(Ma){return function(oa,Ra){return oa.isTheft===Ma.$jscomp$loop$prop$isTheft$370}}(Sa)),function(Ma){return function(oa,Ra){oa.itemSet||(oa.itemSet=[]);oa.itemSet.push(Ma.$jscomp$loop$prop$itemObj$371)}}(Sa))}Sa={$jscomp$loop$prop$tempDescList$366:Sa.$jscomp$loop$prop$tempDescList$366,$jscomp$loop$prop$tempDescListIdex$367:Sa.$jscomp$loop$prop$tempDescListIdex$367,
$jscomp$loop$prop$tempDescList$67$368:Sa.$jscomp$loop$prop$tempDescList$67$368,$jscomp$loop$prop$tempDescListIdex$68$369:Sa.$jscomp$loop$prop$tempDescListIdex$68$369,$jscomp$loop$prop$isTheft$370:Sa.$jscomp$loop$prop$isTheft$370,$jscomp$loop$prop$itemObj$371:Sa.$jscomp$loop$prop$itemObj$371}}1!=ua[0].isTheft&&ua.reverse();ja&&D(ua)}else for(Sa in p){var La=p[Sa];ua=La.modelCode;if(!L[ua]){ja={};xa=Granite.I18n.get("belo4d Care+");Oa=pa=Na=ma=Ha=Ka="";la=!1;Ea=Ca="";Pa=Ga=null;Ua=Fa="";La.displayName&&
(xa=La.displayName);La.price_info&&La.price_info[0]&&(ja=La.price_info[0],Ga=ja.msrp_price,Pa=ja.sale_price,ma=ja.saveText);Ga&&Ga.duration_value&&Ga.paymentcycle_value&&0<Ga.duration_value&&null!=Ga.paymentcycle_value&&"monthly"==Ga.paymentcycle_value.toLowerCase()&&(Ca=Ga.duration_value,Ea=Ga.paymentcycle_value.toLowerCase());Pa&&Pa.duration_value&&Pa.paymentcycle_value&&0<Pa.duration_value&&null!=Pa.paymentcycle_value&&"monthly"==Pa.paymentcycle_value.toLowerCase()&&(Ca=Pa.duration_value,Ea=Pa.paymentcycle_value.toLowerCase());
"it"===a.siteCode&&Pa&&Pa.paymentcycle_value&&(Ea=Pa.paymentcycle_value.toLowerCase());if(null!=Ga&&"undefined"!==typeof Ga.wasValue){if(Ga&&Ga.value||("ch"===a.siteCode||"ch_fr"===a.siteCode||"sa"===a.siteCode||"sa_en"===a.siteCode)&&0==Ga.value)Oa=Ga.value,Fa=Ga.wasValue,Ga.formatted_value&&(Ka=Ga.formatted_value),Ga.formatted_wasValue&&(Ua=Ga.formatted_wasValue);"uk"!==a.siteCode&&"tr"!==a.siteCode||0!=parseFloat(Ga.value)?(Pa&&Pa.value?(Pa.value&&(pa=Pa.value),Pa.formatted_value&&(Ha=Pa.formatted_value),
Oa&&Oa===pa&&(Ka="")):Ha=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Ca&&Ea?Granite.I18n.get("{0}/month {1}",[Ka,Ca]):Ka,La.flags&&La.flags.is_subscription&&(Ha=Granite.I18n.get("{0}/month",Ha)),pa&&Oa&&Oa!==pa&&("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Ca&&Ea&&(Ha=Granite.I18n.get("{0}/month {1}",[Ha,Ca]))):Ha=Granite.I18n.get("Free");
"it"===a.siteCode&&0==parseFloat(Ga.value)?(Ha=$("#priceCurrency").val(),la=!0,Ha=currencyComma(parseFloat(Ga.value),Ha).replace(",00","")):0==parseFloat(Fa)||null==Fa||!ta&&"tr"===a.siteCode||(Ha="\x3cdel\x3e"+Ua+"\x3c/del\x3e\x3cem\x3e"+Ha+"\x3c/em\x3e")}else Ga&&Ga.value&&(Oa=Ga.value,Ga.formatted_value&&(Ka=Ga.formatted_value)),Pa&&Pa.value?(Pa.value&&(pa=Pa.value),Pa.formatted_value&&(Ha=Pa.formatted_value),Oa&&Oa===pa&&(Ka="")):Ha=("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===
a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Ca&&Ea?Granite.I18n.get("{0}/month {1}",[Ka,Ca]):Ka,La.flags&&La.flags.is_subscription&&(Ha=Granite.I18n.get("{0}/month",Ha)),pa&&Oa&&Oa!==pa&&(("fi"===a.siteCode||"se"===a.siteCode||"dk"===a.siteCode||"no"===a.siteCode||"ee"===a.siteCode||"lv"===a.siteCode||"lt"===a.siteCode)&&Ca&&Ea&&(Ha=Granite.I18n.get("{0}/month {1}",[Ha,Ca])),Na="nl"===a.siteCode||"be"===a.siteCode||"be_fr"===a.siteCode||"de"===a.siteCode?Granite.I18n.get("From {0}",
"\x3cdel\x3e"+Ka+"\x3c/del\x3e"):"jp"===a.siteCode?"(\u5272\u5f15\u524d\u4fa1\u683c : "+Ka+")":"\x3cdel\x3e"+Ka+"\x3c/del\x3e");Ga="";0<aa.length&&aa[Sa].product_tags&&aa[Sa].product_tags[0]&&(Ga=aa[Sa].product_tags[0]);pa="";a.isGpv2?La.inventory&&La.inventory.status&&(pa=La.inventory.status.toLowerCase()):La.otherParameters&&isNotEmpty(La.otherParameters.stockLevelStatus)&&(pa=La.otherParameters.stockLevelStatus.toLowerCase());g.push({index:Ia+1,prePopup:la,optionName:xa,optionSalePrice:Ha,optionOriPrice:Na,
optionSavePrice:ma,specialText:La.long_description,badge:Ga,isAlMese:Ha&&"it"==a.siteCode&&"monthly"==Ea?!0:!1,isNoAlMese:!Ha||"it"==a.siteCode&&"monthly"==Ea?!1:!0,paymentCycle:"fr"==a.siteCode?Ea:"",stockStatus:"in"==a.siteCode&&"outofstock"==pa?"OOS":""});La.displayName=xa;ja.formattedPrice=Ha;ja.formattedDelPrice=Ka;L[ua]=ua;Ia++}}m.productAddOnCare(c)};na.prototype.checkAddToCart=function(a,c){var m=a.util,g=a.drawObj;a.checkValid=!1;c="INSTOCK"==a.apiChangeStockStatus||"LOWSTOCK"==a.apiChangeStockStatus||
"PREORDER"==a.apiChangeStockStatus||"BACKORDERED"==a.apiChangeStockStatus?m.checkingDeliveryCode(a,c)&&m.checkingNewAssuredBuyBack(a)&&(m.checkingbelo4dCare(a)||"none"===g.careResult.dataModelCode)?!0:!1:!1;a.checkValid=!0;$(".hdd02-buying-tool .cost-box__cta .cta:not(.cta--icon)").attr("canAddToCart",c);$(".pd-buying-price .pd-buying-price__cta .cta").attr("canAddToCart",c);$(".pd-g-anchor-navigation-ux25 .pdd39-anchor-nav__cta .cta").attr("canAddToCart",c)};na.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)};na.prototype.clickEventListener=function(a,c){Y(a,c);N(a,c);y(a,
c);R(a,c);V(a,c);va(a,c);ka(a,c);Aa(a,c);E(a,c);da(a,c);ra(a,c);ca(a,c);I(a,c);u(a,c);A(a,c);T(a,c);G(a,c);fa(a,c);X(a,c);sa(a,c);ha(a,c);b(a,c);P(a,c);x(a,c)};na.prototype.getQuerystring=function(a){for(var c=window.location.search.substring(1).split("\x26"),m=0;m<c.length;m++){var g=c[m].split("\x3d");if(g[0]===a)return g[1]}};na.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};na.prototype.removeClass=function(a,c){return a.replace(c,"").replace("  "," ")};na.prototype.addClass=function(a,c){return a+(" "+c)};na.prototype.merge=function(a,c,m,g){g=void 0===g?"":g;if(m&&(a[c]?$.extend(a[c],m):(a[c]=m,a[c].apiType=""),a=a[c],g&&(a.apiType+=" "+g),a.price_info&&0<a.price_info.length)){g=$("#priceCurrency").val();c=$("#siteCode").val();for(var p in a.price_info){m=
a.price_info[p];var aa="",L="";if(m.msrp_price&&m.msrp_price.value){aa=m.msrp_price.value;var ma=m.msrp_price.formatted_value;null===ma&&(ma=currencyComma(aa,g),m.msrp_price.formatted_value=ma)}m.sale_price&&m.sale_price.value&&(aa!==m.sale_price.value&&(L=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(aa-m.sale_price.value,g),
L=Granite.I18n.get("Save {0}",L,c)),aa=m.sale_price.value,ma=m.sale_price.formatted_value,null===ma&&(ma=currencyComma(aa,g),m.sale_price.formatted_value=ma));m.saveText=L;if("nl"===c||"be"===c||"be_fr"===c)m.list_price&&m.list_price.formatted_value&&(m.list_price.formatted_value=deleteCurrency(m.list_price.formatted_value,g).trim()),m.msrp_price&&m.msrp_price.formatted_value&&(m.msrp_price.formatted_value=deleteCurrency(m.msrp_price.formatted_value,g).trim()),m.sale_price&&m.sale_price.formatted_value&&
(m.sale_price.formatted_value=deleteCurrency(m.sale_price.formatted_value,g).trim())}}};na.prototype.removeElement=function(a){for(var c in a){var m=a[c];m&&0<m.length&&($(a).html="",$(a).hide())}};na.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))};na.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)}};na.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)}};na.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))};na.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")))};na.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")))};na.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")))};
na.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))};na.prototype.removeSelectedOptionElement=function(a,c){a=$(a);c=c.selectedClass;a&&0<a.length&&a.hasClass(c)&&a.removeClass(c)};na.prototype.getEmiUrl=function(a,c){c=a.totalPrice.sale;var m=a.siteCode,g=a.financingUrl,p=a.emiCalculatorUrl;return"uk"===m||"in"===m||"id"===m?a.emiUrl+"/?sku\x3d"+a.shopSkuCode+"\x26price\x3d"+
c+"\x26page\x3dsimple buying tool:offer":"de"===m?g:"pl"===m||"hu"===m||"lt"===m||"ro"===m||"bg"===m||"ua"===m?p:"ee"===m||"lv"===m?"javascript:void(0);":g+"/?total\x3d"+c+"\x26page\x3dpdp"};na.prototype.removeDisabledElement=function(a,c){a=$(a);c=c.disabledClass;a&&0<a.length&&a.removeClass(c)};na.prototype.settingExchangeAPIData=function(a,c,m,g){var p=c.util,aa=c.drawObj,L=c.siteCode,ma=p.hasForeverResult(c,m),ua=p.hasForever(c,m),ja="",xa="",Ia="",Ka=0,Ea=0,Ha=0,Sa=0,Ga="",pa="",Oa="";if(a){a.device_info&&
(a.device_info.name&&(xa=a.device_info.name),a.device_info.brand&&(Ia=a.device_info.brand));"CE"==c.tradeInType&&(a.device_info&&(pa=a.device_info.product_condition,Oa=a.device_info.category),a.partner&&(Ga=a.partner));var Ca="";Ia&&(Ca+=Ia);Ca&&(Ca+=" | ");xa&&(Ca+=xa);a.estimated_discount&&(a.estimated_discount.exchange_discount&&(Ea=parseFloat(a.estimated_discount.exchange_discount.amount)),a.estimated_discount.exchange_value&&(Ka=parseFloat(a.estimated_discount.exchange_value.amount)),a.estimated_discount.total&&
(Ha=parseFloat(a.estimated_discount.total.amount),ja=a.estimated_discount.total.currency),"CE"===c.tradeInType&&"uk"===L&&-1<window.location.host.indexOf("p6-pre-qa3.")&&(L=m.buyingToolOptTradeIn.find("#pd-trade-in-0").attr("data-total-price"),Ha=parseFloat(L)));a.estimated_discount&&a.estimated_discount.special_discount&&a.estimated_discount.special_discount.amount&&(Sa=parseFloat(a.estimated_discount.special_discount.amount));"CE"==c.tradeInType?c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Ca,
isUpfront:!a.delayed_gratification,specialDiscount:Sa,exchangePrice:Ka,addtionalPrice:Ea,totalPrice:Ha,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,partner:Ga,productCondition:pa,productCategory:Oa,tradeupCurrency:ja}:(c.exchangeApiData={exchangeFlag:!0,modelAndBrand:Ca,isUpfront:!a.delayed_gratification,specialDiscount:Sa,exchangePrice:Ka,addtionalPrice:Ea,totalPrice:Ha,dataQuoteId:a.dataQuoteId,foreverId:a.foreverId,tradeupCurrency:ja},a.withCeTradeUpPopup&&(c.exchangeApiData.withCeTradeUpPopup=
!0));p.exchangeResultDraw(c,m);ua&&p.foreverDraw(c,m);ma&&g.galaxyForeverResultDraw(aa);p.totalAfterFunction(c,m)}};na.prototype.exchangeResultDraw=function(a,c){var m=a.view,g=a.util,p=a.priceCurrency,aa=a.drawObj,L=a.siteCode,ma=g.hasOffer(a,c),ua=g.hasForeverResult(a,c),ja=a.exchangeApiData,xa=ja.modelAndBrand,Ia=ja.exchangePrice,Ka=ja.addtionalPrice,Ea=ja.totalPrice,Ha=ja.isUpfront,Sa=ja.partner,Ga=ja.productCondition,pa=ja.productCategory,Oa=!1,Ca=!1,Pa=0,Fa=ja.dataQuoteId;ma&&(Oa=g.hasBogo(a,
c),Ca=g.hasComboResult(a,c));if(ja.exchangeFlag){ma=Ia?Oa||Ca||ua?Ea-Ka:Ea:Ea;g=currencyComma(ma,p);Ha?(Pa=ma,Ia=g+"("+Granite.I18n.get("Instant Discount")+")"):Ia=g+"("+Granite.I18n.get("Assured Value")+")";ua&&"in"===L&&ja.foreverId&&(Fa=ja.foreverId);ua=".siel-trade-in-popup-option__condition-check-desc-"+Ga;Ka="";"CE"==a.tradeInType&&Ga&&(Ka="Television"!=pa&&"average"==Ga?"Average":Ga[0].toUpperCase()+Ga.slice(1,Ga.length));if("CE"==a.tradeInType)if("in"===L)aa.tradeInResult={hasComponent:!0,
textTitleCe:"Congratulations your exchange has been applied",textCe:"Get exchange value of up to \u20b9"+Ea+" on your old product \x3cbr\x3e By: \x3cstrong\x3e"+Sa+"\x3cstrong\x3e",description:"Actual Exchange discount will depend upon Product Evaluation results",tooltip:Ka+"(\u20b9"+Ea+")\x3cbr\x3e "+$(ua).text(),dataQuoteId:Fa,isUpfront:Ha,discountText1:Ia,dataPrice:Pa};else{if("uk"===L){L="Get "+currencyComma(Ea,p)+" 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":L="Get "+currencyComma(Ea,p)+"\x3c/span\x3e for recycling your refrigerator\x3c/strong\x3e";break;case "08010000":L="Get "+currencyComma(Ea,p)+"\x3c/span\x3e for recycling your laundry device\x3c/strong\x3e";break;case "08070000":L="Get "+currencyComma(Ea,p)+"\x3c/span\x3e for recycling your vacuum\x3c/strong\x3e";break;case "07010000":L="Get "+currencyComma(Ea,
p)+"\x3c/span\x3e for recycling your monitor\x3c/strong\x3e"}aa.tradeInResult={hasComponent:!0,discountText1:Ia,description:L,dataPrice:Pa,dataQuoteId:Fa,isUpfront:Ha}}}else ja.withCeTradeUpPopup?(p="b2c_"+a.ceTradeUpPopup.productCategoryGroup,a=a.ceTradeUpPopup.productCategoryMainType,"ph"!==L||"rf"!==a&&"wm"!==a&&"ac"!==a||(p="b2c_"+a),"at"!==L||"rf"!==a&&"wm"!==a&&"vc"!==a||(p="b2c_"+a),"bg"===L&&(a=ja.tradeupCurrency,g=currencyComma(ma,a),a="eur"===a.toLowerCase()?d(ma):l(ma),g=g+" / "+a),Ia=
CeTradeUpPopup.config.view.showDiscountAmount.inResultBanner?Granite.I18n.get(CeTradeUpPopup.config.shop.isCashbackSite?'"{0}" (Assured Value)':'"{0}" (Instant Discount)',[g],p):"",a="",CeTradeUpPopup.config.view.showDiscountAmount.inResultDescription&&(a=Granite.I18n.get("Get {0} off you order instantly for recycling your device",[g],p)),aa.tradeInResult={hasComponent:!0,discountText1:Ia,description:a,dataPrice:Pa,dataQuoteId:Fa,isUpfront:Ha}):aa.tradeInResult={hasComponent:!0,displayModelName:Granite.I18n.get("Your Trade-in")+
" : "+xa,discountText1:Ia,description:Granite.I18n.get("*Actual trade-in discount might differ from estimated discount."),dataPrice:Pa,dataQuoteId:Fa,isUpfront:Ha};ba.triggerChange(document.querySelector("#pd-trade-in-0"));m.tradeInResultDraw(aa);null!==aa.deliveryResult.priorityText&&!0===aa.tradeInResult.isUpfront?$(c.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==aa.deliveryResult.priorityText&&!1===aa.tradeInResult.isUpfront&&$(c.buyingToolOptDeliveryResult).find(".delivery-priority").show();
ba.buyingTool.bindPdTooltipEvent()}};na.prototype.foreverDraw=function(a,c){var m=a.foreverFinanceInfo,g=m.productPrice?parseFloat(m.productPrice):0,p=m.assuredBuyBack?parseFloat(m.assuredBuyBack):0,aa=m.tenureValue?parseFloat(m.tenureValue):0,L=m.carePrice?parseFloat(m.carePrice):0,ma=a.drawObj,ua=a.priceCurrency,ja=a.view,xa=a.util;c=xa.hasTradeInResult(a,c);var Ia=a.drawObj.tradeInResult.dataPrice,Ka=0;a={};c&&(Ka=Ia,m.tradeinCheckFlag=!0,m.tradeinprice=Ia,m.tradeinDiscountYn=0==Ia?!0:!1);g=(g+
L-Ka-p)/aa;m.foreverPrice=g;a.layerTarget="#hubble-forever-learnmore-layer";xa=xa.getAttrCta(Granite.I18n.get("Learn more"),"javascript:;","_self","",a,"");aa=Granite.I18n.get("Pay {0} per month and own the device for {1} months.",[currencyComma(g,ua),aa]);ma.galaxyForever={hasComponent:m.foreverFlag,title:Granite.I18n.get("Galaxy Forever"),description:aa,learnMoreCta:xa,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"}};ja.galaxyForeverDraw(ma)};na.prototype.optionExposureRule=function(a,c){switch(a.siteCode){case "uk":if(a.categoryTypeCode.startsWith("01")){var m={tariffOption:["upgrade","warranty"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","combo","accessory"],care:[],warranty:[],combo:["upgrade"]};var g={tariffOption:["upgrade","warranty","price"],tradeIn:["upgrade","price"],upgrade:["tariffOption",
"tradeIn","combo","price"],care:[],warranty:[],combo:["upgrade","price"],accessory:["upgrade","price"]}}else m={tariffOption:["tradeIn","upgrade","care","warranty"],tradeIn:["tariffOption","upgrade"],upgrade:["tariffOption","tradeIn","combo","accessory"],care:["tariffOption"],warranty:["tariffOption"],combo:["upgrade"]},g={tariffOption:["tradeIn","upgrade","care","warranty","price"],tradeIn:["tariffOption","upgrade","price"],upgrade:["tariffOption","tradeIn","combo","price"],care:["tariffOption"],
warranty:["tariffOption"],combo:["upgrade","price"],accessory:["upgrade","price"]};this.checkingDiabledEnabled(a,c,m,g);break;case "de":m={tariffOption:["tradeIn","upgrade","care","warranty","calculate"],tradeIn:["tariffOption","warranty"],upgrade:["tariffOption","warranty"],care:["tariffOption","warranty"],warranty:["tariffOption","tradeIn","upgrade","care"]};g={tariffOption:["tradeIn","upgrade","care","warranty","price"],tradeIn:["tariffOption","warranty","price"],upgrade:["tariffOption","warranty",
"price"],care:["tariffOption","warranty"],warranty:["tariffOption","tradeIn","upgrade","care"],calculate:["tariffOption"]};this.checkingDiabledEnabled(a,c,m,g);break;case "fr":m={tariffOption:["tradeIn","between"],tradeIn:["financing","tariffOption"],between:"care warranty bogo combo financing accessory tariffOption".split(" "),care:["between","warranty"],warranty:["between","care"]};g={tariffOption:["tradeIn","between"],between:["care","warranty","tariffOption"],care:["between","warranty"],warranty:["between",
"care"],bogo:["between","price"],combo:["between","price"],financing:["tradeIn","between"],accessory:["between","price"]};this.checkingDiabledEnabled(a,c,m,g);break;case "nl":case "be":case "be_fr":m={tariffPlan:"tradeIn between care warranty bogo combo accessory".split(" "),tradeIn:["tariffPlan","between"],between:"tariffPlan tradeIn care warranty bogo combo accessory".split(" "),care:["tariffPlan","between"],warranty:["tariffPlan","between"],combo:["tariffPlan","between"]};g={tariffPlan:"tradeIn between care warranty combo price".split(" "),
tradeIn:["tariffPlan","between","price"],between:["tariffPlan","tradeIn","care","warranty","combo"],care:["tariffPlan","between"],warranty:["tariffPlan","between"],bogo:["tariffPlan","between","price"],combo:["tariffPlan","between","price"],accessory:["tariffPlan","between","price"]};this.checkingDiabledEnabled(a,c,m,g);break;case "in":m={forever:["accessory"]};g={};this.checkingDiabledEnabled(a,c,m,g);break;case "it":m={between:["accessory","care","tradeIn"]};g={accessory:["between"],care:["between"],
tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,g);break;case "ru":m={between:["accessory","care","tradeIn"]};g={accessory:["between"],care:["between"],tradeIn:["between"]};this.checkingDiabledEnabled(a,c,m,g);break;case "es":m={upgrade:["accessory","care","tradeIn"]};g={accessory:["upgrade"],care:["upgrade"],tradeIn:["upgrade"]};this.checkingDiabledEnabled(a,c,m,g);break;case "au":m={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],
accessory:["upgrade"]},g={tariffOption:["upgrade"],tradeIn:["upgrade"],upgrade:["tariffOption","tradeIn","care","accessory"],care:["upgrade"],accessory:["upgrade"]},this.checkingDiabledEnabled(a,c,m,g)}};na.prototype.checkingDiabledEnabled=function(a,c,m,g){var p=a.drawObj,aa={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},L={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};p={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:!p.price.priceWrapper.hasPriceWrapper,forever:this.hasForeverResult(a,c)};for(var ma in m)if(p[ma])for(var ua=$jscomp.makeIterator(m[ma]),ja=ua.next();!ja.done;ja=ua.next()){ja=ja.value;ba.isDebug&&console.log("[HDD02] Disable component: "+
ja);var xa=aa[ja];xa?xa.call(this,a,c):console.warn("[HDD02] Disable handler not exists: "+ja)}else for(ua=$jscomp.makeIterator(m[ma]),ja=ua.next();!ja.done;ja=ua.next()){ja=ja.value;xa=g[ja];var Ia=!1,Ka;for(Ka in xa){if(Ia)break;p[xa[Ka]]&&(Ia=!0)}Ia||(ba.isDebug&&console.log("[HDD02] Enable component: "+ja),(xa=L[ja])?xa.call(this,a,c):console.warn("[HDD02] Enable handler not exists: "+ja))}};na.prototype.disabledAccessory=function(a,c){a.accessoryDisabled=!0};na.prototype.enabledAccessory=function(a,
c){a.accessoryDisabled=!1};na.prototype.disabledFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));a.hide();a.addClass("removed")};na.prototype.enabledFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));a.show();a.removeClass("removed")};na.prototype.disabledCalculate=function(a,c){$(c.buyingToolCalculate).hide()};na.prototype.enabledCalculate=function(a,c){$(c.buyingToolCalculate).show()};na.prototype.disabledCombo=function(a,c){var m=a.drawObj.offer.combo,
g=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");c=$(c.buyingToolOptOffer.find(".pd-offer__selected-bundle-wrap"));this.disabledOptionElement(g,a);for(var p in m)a=m[p],a.item.bundleList&&(a.item.bundleList=[]);c.remove()};na.prototype.enabledCombo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.compoBundle");this.removeDisabledElement(c,a)};na.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};na.prototype.hasGiftResult=function(a,c){var m=!1,g=a.disabledClass;if("Hybris-new"==$("#shopIntegrationFlag").val())void 0!=a.drawObj.offer.gift.item&&a.drawObj.offer.gift.item.bundleList&&(m=!0);else if(a=$(c.buyingToolOptOffer.find(".pd-offer__item.giftBundle")),0<a.length&&!$(a.get(0)).hasClass(g))for(g=0;g<a.length;g++)if(0<$(a.get(g)).find(".pd-offer__selected-bundle").length){m=
!0;break}return m};na.prototype.disabledBogo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");this.disabledOptionElement(c,a)};na.prototype.enabledBogo=function(a,c){c=c.buyingToolOptOffer.find(".pd-offer__item.bogo");this.removeDisabledElement(c,a)};na.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)};na.prototype.disabledTariffPlan=function(a,c){c=c.buyingToolOptTariffPlan;
this.disabledOptionElement(c,a);this.removeSelectedOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a)};na.prototype.enabledTariffPlan=function(a,c){c=c.buyingToolOptTariffPlan;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};na.prototype.hasTariffPlan=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTariffPlan;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasTariffPlanResult=function(a,c){var m=a.disabledClass,g=a.selectedClass;
c=c.buyingToolOptTariffPlan;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)&&c.hasClass(g)};na.prototype.addTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.addClass(a.selectedClass)};na.prototype.removeTariffPlanResult=function(a,c){c.buyingToolOptTariffPlan.removeClass(a.selectedClass);this.removeTariffPlanSelectedClass(a,c)};na.prototype.removeTariffPlanSelectedClass=function(a,c){a=a.tariffPlanSelectedClass;$(c.buyingToolOptTariffPlan).find(".option-input").removeClass(a)};na.prototype.disabledBetween=
function(a,c){c=c.buyingToolOptBetween;this.removeSelectedOptionElement(c,a);this.removeCheckedElement(c);this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a)};na.prototype.enabledBetween=function(a,c){c=c.buyingToolOptBetween;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};na.prototype.hasBetween=function(a,c){var m=a.disabledClass;c=c.buyingToolOptBetween;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasBetweenResult=function(a,c){var m=a.hasComponentClass,
g=a.selectedClass;a=a.disabledClass;c=$(c.buyingToolOptBetween);return c.hasClass(m)&&!c.hasClass(a)&&c.hasClass(g)};na.prototype.addBetweenResult=function(a,c){$(c.buyingToolOptBetween).addClass(a.selectedClass)};na.prototype.removeBetweenResult=function(a,c){$(c.buyingToolOptBetween).removeClass(a.selectedClass)};na.prototype.disabledWarranty=function(a,c){var m=a.view,g=a.drawObj;c=c.buyingToolOptWarranty;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,
a);g.warrantyResult={hasComponent:!1,displayModelName:null,discountText1:null,description1:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,savedPrice:null};m.warrantyResultDraw(g)};na.prototype.enabledWarranty=function(a,c){c=c.buyingToolOptWarranty;this.removeDisabledAllElement(c,a);this.removeDisabledElement(c,a)};na.prototype.hasWarranty=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarranty;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};
na.prototype.hasWarrantyResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarrantyResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.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)};na.prototype.enabledWarrantyVd=function(a,c){c=c.buyingToolOptWarrantyVd;this.removeDisabledAllElement(c,a);this.removeDisabledElement(c,a)};na.prototype.hasWarrantyVd=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarrantyVd;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasWarrantyVdResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptWarrantyVdResult;return c.hasClass(a.hasComponentClass)&&
!c.hasClass(m)};na.prototype.hasForever=function(a,c){var m=a.disabledClass;c=c.buyingToolOptGalaxyForever;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasForeverResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptGalaxyForeverResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasAssuredBuyBack=function(a,c){var m=a.disabledClass;c=c.buyingToolOptAssuredBuyBack;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasAssuredBuyBackResultResult=
function(a,c){var m=a.disabledClass;c=c.buyingToolOptAssuredBuyBackResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasNewAssuredBuyBack=function(a,c){var m=a.disabledClass;c=c.buyingToolOptNewAssuredBuyBack;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasNewAssuredBuyBackResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptNewAssuredBuyBackResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.disabledCare=function(a,
c){var m=a.view,g=a.drawObj;c=c.buyingToolOptCare;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);g.careResult={hasComponent:!1,description:null,dataPrice:null,dataSalePrice:null,dataModelName:null,dataModelCode:null,dataId:null,price:null,disclaimer:null,savedPrice:null};m.careResultDraw(g)};na.prototype.enabledCare=function(a,c){c=c.buyingToolOptCare;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};na.prototype.hasCare=function(a,c){var m=
a.disabledClass;c=c.buyingToolOptCare;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasCareResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptCareResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.disabledUpgrade=function(a,c){var m=a.view,g=a.drawObj;c=c.buyingToolOptUpgrade;this.disabledOptionElement(c,a);this.removeCheckedElement(c);this.addDisabledAllElement(c,a);g.upgradeResult={hasComponent:!1,displayModelName:null,discountText1:null,
description1:null,description2:null,dataId:[],dataPrice:null};m.upgradeResultDraw(g)};na.prototype.enabledUpgrade=function(a,c){c=c.buyingToolOptUpgrade;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};na.prototype.hasUpgrade=function(a,c){var m=a.disabledClass;c=c.buyingToolOptUpgrade;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasUpgradeResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptUpgradeResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};
na.prototype.disabledTradeIn=function(a,c){var m=a.view,g=a.drawObj;c=c.buyingToolOptTradeIn;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);g.tradeInResult={hasComponent:!1,displayModelName:null,discountText1:null,discountText2:null,discountText3:null,description:null,dataPrice:null,dataCashBack:null,dataQuoteId:null,dataId:[]};m.tradeInResultDraw(g)};na.prototype.enabledTradeIn=function(a,c){c=c.buyingToolOptTradeIn;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,
a)};na.prototype.hasTradeIn=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTradeIn;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasTradeInResult=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTradeInResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.disabledTariffOption=function(a,c){var m=a.view,g=a.drawObj;c=c.buyingToolOptTariff;this.disabledOptionElement(c,a);this.addDisabledAllElement(c,a);this.removeCheckedElement(c);g.tariffOptionResult=
{hasComponent:!1,description:null,dataPrice:null,price:null,disclaimer:null,dataSimskuCode:null,dataModelCode:null,dataId:null};m.tariffOpionResultDraw(g)};na.prototype.enabledTariffOption=function(a,c){c=c.buyingToolOptTariff;this.removeDisabledElement(c,a);this.removeDisabledAllElement(c,a)};na.prototype.hasTariffOption=function(a,c){var m=a.disabledClass;c=c.buyingToolOptTariff;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasTariffOptionResult=function(a,c){var m=a.disabledClass;
c=c.buyingToolOptTariffResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasFinancing=function(a,c){a=$(c.buyingToolPriceBar.find(".cost-box__description"));return 0<a.length&&!a.hasClass("removed")};na.prototype.hasOffer=function(a,c){var m=a.disabledClass;c=c.buyingToolOptOffer;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.hasAcessory=function(a,c){return a.addonsFlag&&!a.accessoryDisabled};na.prototype.hasDeliveryResult=function(a,c){var m=a.disabledClass;
c=c.buyingToolOptDeliveryResult;return c.hasClass(a.hasComponentClass)&&!c.hasClass(m)};na.prototype.getImgAttr=function(a,c,m,g){g=void 0===g?{}:g;var p=window.sg.sdf.util;a=this.imgDomain(a);c=this.imgDomain(c);var aa=p.previewImageSrc(a,m);p=p.previewImageSrc(c,m);m={srcPc:a,srcMo:c,lazySrcPc:aa,lazySrcMo:p,alt:m};for(var L in g)m[L]=g[L];return m};na.prototype.getAttrCta=function(a,c,m,g,p,aa){p=void 0===p?{}:p;aa=void 0===aa?"new-window":aa;var L={};g=[g];a||(a=null);L.text=a;c&&(L.href=c);"_blank"===
m?(a=Granite.I18n.get("Open in a new window"),L.target="_blank",L.isOutLink=!0,L.isNotOutLink=null,g.push(aa),L.title=a):(L.isOutLink=null,L.isNotOutLink=!0);L.class=g.join(" ");for(var ma in p)"anla"==ma?L["an-la"]=p[ma]:L[ma]=p[ma];return L};na.prototype.nonCheckError=function(a,c){try{c&&c.apply(a)}catch(m){console.log(m)}};na.prototype.escapeHtml=function(a){var c={"\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#039;"};return a.replace(/[&<>"']/g,function(m){return c[m]})};
na.prototype.imgDomain=function(a,c){var m="",g=$("#scene7domain").val();a&&(-1<a.indexOf("http:")||-1<a.indexOf("//stg-images.quick3d.org/")||-1<a.indexOf("//images.quick3d.org/")||-1<a.indexOf("image.quick3d.org/")||-1<a.indexOf("//stg-images.quick3d.org.cn/")||-1<a.indexOf("//images.quick3d.org.cn/")||-1<a.indexOf("image.quick3d.org.cn/")?m=a:(c&&(g=g.replace("/image/","/content/")),m=g+a));return m};na.prototype.isNotEmptyArray=function(a){return a&&0<a.length&&a[0]};na.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};na.prototype.formattingPrice=function(a){0>parseFloat(a)?a=0:-1<String(a).indexOf(".")&&(a=a.toFixed(2));return a};na.prototype.hasComponent=function(a,c){var m=c.hasComponentClass;c=c.disabledClass;a=$(a);var g=!1;0<a.length&&(g=a.hasClass(m)&&!a.hasClass(c));return g};na.prototype.settingPriceDraw=function(a,c){function m(Lb){var yc='\x3cp role\x3d"listitem" class\x3d"battery-tax-disclaimer-html"\x3e*'+
Lb.batteryInformativeTaxes+"\x3c/p\x3e",tc='\x3cp role\x3d"listitem" class\x3d"green-tax-disclaimer-html"\x3e*'+Lb.greenInformativeTaxes+"\x3c/p\x3e",zc=$("#disclaimer.text-editor--feature-bottom-disclaimer").find("div").last();zc.length&&Lb.batteryTaxShowSpecificationArea&&zc.not(":has(.battery-tax-disclaimer-html)").append(yc);zc.length&&Lb.greenTaxShowSpecificationArea&&zc.not(":has(.green-tax-disclaimer-html)").append(tc)}var g=a.siteCode,p=a.util,aa=a.view,L=a.drawObj,ma=L.between.hasComponent,
ua=a.proudctPriceInfo,ja=a.priceCurrency,xa=$("#shopIntegrationFlag").val(),Ia=p.hasBetweenResult(a,c),Ka=p.hasFinancing(a,c),Ea=a.paymentMethods,Ha=c.buyingToolPriceBar.find(".cost-box__badge"),Sa=c.buyingToolPriceBar.find(".cost-box__new-badge"),Ga=p.hasUpgradeResult(a,c),pa=L.price.priceWrapper,Oa=a.proudctPriceInfo.orignalPriceFormatted,Ca=a.proudctPriceInfo.salePriceFormatted,Pa=a.proudctPriceInfo.rowCodeformattedPriceSave,Fa=pa.info.summaryPrice,Na=a.drawObj.careResult.dataPaymentcycle,Ta=parseFloat(ua.orignalPrice),
Ua=parseFloat(ua.salePrice),Z=ua.salePriceFormatted,Ba=Ta-Ua;a.getOptoinPrice=!1;1<ua.productCartCount&&(Ta=parseFloat(ua.orignalPrice)*ua.productCartCount,Ua=parseFloat(ua.salePrice)*ua.productCartCount,Z=currencyComma(Ua,ja),Ba=Ta-Ua,a.getOptoinPrice=!0);var la={original:Ta,sale:Ua,saved:Ba};L.priceAnchor.priceWrapper.info={};L.price.priceWrapper.info={};pa.info.useTooltip=!1;a.giftCard.isGiftCard&&(la.original=parseFloat(a.giftCard.selectedPrice),la.sale=parseFloat(a.giftCard.selectedPrice),la.saved=
parseFloat(la.original)-parseFloat(la.sale));if(a.isBezel&&!a.bezelDummyCode){var wa=a.selectedBezelColor,Da=0,ya=0;if("Hybris-new"===xa)wa&&(wa.hasOwnProperty("price")&&(Da=wa.price.value),ya=wa.hasOwnProperty("promotionPrice")?0<wa.promotionPrice.value&&wa.promotionPrice.value<Da?wa.promotionPrice.value:Da:Da);else if("Hybris"===xa||"Hybris-intg"===xa)wa.hasOwnProperty("price")&&null!=wa.price&&(Da=wa.price),ya=wa.hasOwnProperty("promotionPrice")&&null!=wa.promotionPrice?0<wa.promotionPrice&&wa.promotionPrice<
Da?wa.promotionPrice:Da:Da;a.sellingWithBazel?(la.original=parseFloat(la.original),la.sale=parseFloat(la.sale)):(la.original=parseFloat(la.original)+parseFloat(Da),la.sale=parseFloat(la.sale)+parseFloat(ya));la.saved=parseFloat(la.original)-parseFloat(la.sale)}if(0<Ha.length){pa.hasEnergyLabel=!0;var Ja=Ha.find(".cost-box__pf-link"),La=Ha.find(".badge"),Ma=Ha.find(".badge-repairability a"),oa=Sa.find(".badge-repairability img"),Ra={};0<Ja.length&&(Ja=$(Ja.get(0)),pa.ficheAttr=this.getAttrCta(Ja.text(),
Ja.attr("href"),Ja.attr("target")));0<La.length&&(La=$(La.get(0)),pa.hasEnergyLabel=!0,pa.labelAttr=this.getAttrCta(La.find(".hidden").text(),La.attr("href"),La.attr("target"),La.attr("class")),pa.labelAttr.spanClass=La.find(".badge__grade--with-text").attr("class"));0<Ma.length&&(Ma=$(Ma.get(0)),oa=$(oa.get(0)),Ra.desktopSrc=oa.attr("data-desktop-src"),Ra.mobileSrc=oa.attr("data-mobile-src"),$("#anchorContainer").hasClass("bg-black")&&(Ra.desktopSrc=Ra.desktopSrc.replace("Light_83x50","Dark_60x36"),
Ra.mobileSrc=Ra.desktopSrc.replace("Light_130x78","Dark_88x52")),Ra.alt=oa.attr("alt"),Ra.anla=Ma.attr("an-la"),pa.repairAttr=this.getAttrCta(Ma.text(),Ma.attr("href"),Ma.attr("target"),"",Ra))}if(0<Sa.length){pa.hasNewEnergyLabel=!0;var Wa=Sa.find(".badge-energy-label__text"),Qa=Sa.find(".badge-energy-label__badge"),Va=Sa.find(".badge-repairability a"),cb=Sa.find(".badge-repairability img");Ra={};0<Wa.length&&(Wa=$(Wa.get(0)),pa.ficheAttr=this.getAttrCta(Wa.text(),Wa.attr("href"),Wa.attr("target")));
0<Qa.length&&(Qa=$(Qa.get(0)),pa.hasNewEnergyLabel=!0,pa.labelAttr=this.getAttrCta(Qa.text(),Qa.attr("href"),Qa.attr("target"),Qa.attr("class")),pa.labelAttr.spanClass=Qa.attr("class"));0<Va.length&&(Va=$(Va.get(0)),cb=$(cb.get(0)),Ra.desktopSrc=cb.attr("data-desktop-src"),Ra.mobileSrc=cb.attr("data-mobile-src"),$("#anchorContainer").hasClass("bg-black")&&(Ra.desktopSrc=Ra.desktopSrc.replace("Light_83x50","Dark_60x36"),Ra.mobileSrc=Ra.desktopSrc.replace("Light_130x78","Dark_88x52")),Ra.alt=cb.attr("alt"),
Ra.anla=Va.attr("an-la"),pa.repairAttr=this.getAttrCta(Va.text(),Va.attr("href"),Va.attr("target"),"",Ra))}if(pa.hasPriceWrapper){"ae"!==g&&"ae_ar"!==g&&O(Z,ma,c);var bb="",Xa="";if("nl"===g||"be"===g||"be_fr"===g)bb="From",pa.info.fromText=bb;"de"===g&&(Xa="From",pa.info.fromText=Xa);ua.usEppPrice&&(la.sale=parseFloat(la.sale)-parseFloat(ua.usEppPrice));w(a,c,la);t(a,c,la);C(a,c,la);v(a,c,la);f(a,c,la);"au"!==g&&"se"!==g&&"no"!==g&&"fi"!==g&&"dk"!==g&&"uk"!==g&&e(a,c,la);ea(a,c,la);F(a,c,la);q(a,
c,la);k(a,c,la);Q(a,c,la);"uk"!==g&&"au"!==g||n(a,c,la);la.saved=parseFloat(la.original)-parseFloat(la.sale);la.original=this.formattingPrice(la.original);la.saved=this.formattingPrice(la.saved);la.sale=this.formattingPrice(la.sale);L.tradeIn.hasComponent&&pa.info.useTooltip&&(la.monthly=4,la.monthlyPrice=this.formattingPrice(la.sale/la.monthly));if(ua.monthlyPriceInfo&&ua.monthlyPriceInfo.monthlyPrice&&"tr"===g){var Ya=$("#categoryTypeCode").val();Ya&&4<=Ya.length&&(Ya=Ya.substring(0,4));"0101"===
Ya&&(ua.monthlyPriceInfo.monthlyPrice="",ua.monthlyPriceInfo.interest="",ua.monthlyPriceInfo.tenureVal="")}a.totalPrice=la;var ib="be"===g||"be_fr"===g||"nl"===g||"fr"===g;if("ro"==g||"bg"==g){if(ua.batteryInformativeTaxes){L.price.priceWrapper.info.batteryInformativeTaxes=Granite.I18n.get("Battery recycling cost, borne by belo4d: {0} (Included in the final price)",ua.batteryInformativeTaxes);var Za,gb=null!=(Za=null==ua?void 0:ua.batteryInformativeTaxesAreaToShow)?Za:[];gb.includes("priceArea")&&
(L.price.priceWrapper.info.batteryTaxShowPriceArea=!0);gb.includes("specification")&&(L.price.priceWrapper.info.batteryTaxShowSpecificationArea=!0)}if(ua.greenInformativeTaxes){L.price.priceWrapper.info.greenInformativeTaxes=Granite.I18n.get("Green tax cost, borne by belo4d: {0} (Included in the final price)",ua.greenInformativeTaxes);var fb,sb=null!=(fb=null==ua?void 0:ua.greenInformativeTaxesAreaToShow)?fb:[];sb.includes("priceArea")&&(L.price.priceWrapper.info.greenTaxShowPriceArea=!0);sb.includes("specification")&&
(L.price.priceWrapper.info.greenTaxShowSpecificationArea=!0)}m(L.price.priceWrapper.info)}if(Ia&&!ib){var yb=c.buyingToolOptBetween.find("#pd-leasing-1"),Ob=yb.attr("data-tenure-unit"),vb=parseFloat(yb.attr("data-tenure-value")),qb=parseFloat(yb.attr("data-monthly-value")),Jb=parseFloat(yb.attr("data-payment-value"));pa.info.totalPrice="it"===g?Granite.I18n.get("Advance")+" "+currencyComma(Jb,ja)+" "+Granite.I18n.get("Monthly fee of")+" "+currencyComma(qb,ja)+" "+Granite.I18n.get("for")+" "+Ob+" "+
Granite.I18n.get("months"):"ru"===g?Granite.I18n.get("{0}/month",currencyComma(qb,ja)):currencyComma(Jb,ja)+" + "+vb+" x "+currencyComma(qb,ja)+"/"+Granite.I18n.get(Ob)}else if(Ga){if("es"===g)if(Ua&&0!=Ua){var mb=24,Cb=((Ua-.1*Ua)/mb).toFixed(2),zb=.1*Ua+((Ua-.1*Ua)/mb-Cb)*mb;pa.info.totalPrice=currencyComma(zb,ja)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(Cb,ja))}else Ta&&0!=Ta&&(mb=24,Cb=((Ta-.1*Ta)/mb).toFixed(2),zb=.1*Ta+((Ta-.1*Ta)/mb-Cb)*mb,pa.info.totalPrice=currencyComma(zb,
ja)+" ahora + "+Granite.I18n.get("{0}/month",currencyComma(Cb,ja)))}else{bb&&(pa.info.vatText="( "+Granite.I18n.get("VAT Included")+" )");Xa&&(pa.info.vatText=Granite.I18n.get("VAT Included"));if(0<la.saved){if(a.getOptoinPrice)pa.info.totalPrice=currencyComma(la.sale,ja),"se"==g&&window.sg.components.belo4dFlexPopup&&window.sg.components.belo4dFlexPopup.hasbelo4dFlex&&(window.sg.components.belo4dFlexPopup.tradeUpEnabled&&(window.sg.components.belo4dFlexPopup.priceNavigationBarPostTradeUp=pa.info.totalPrice,
window.sg.components.belo4dFlexPopup.priceSummaryPostTradeUp=pa.info.totalPrice),pa.info.totalPrice=window.sg.components.belo4dFlexPopup.summaryPriceWithTradeUp),"fi"!==g&&"se"!==g&&"dk"!==g&&"no"!==g&&"ee"!==g&&"lv"!==g&&"lt"!==g||!Na||(pa.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your belo4d Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));else if(ua.monthlyPriceInfo&&ua.monthlyPriceInfo.monthlyPrice){var ab=ua.monthlyPriceInfo.monthlyPrice,
$a=ua.monthlyPriceInfo.tenureVal?ua.monthlyPriceInfo.tenureVal:0,lb=ua.monthlyPriceInfo.interest?ua.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==g?pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):a.isLowestInstallmentInterest?(pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[$a,lb])+" "+Granite.I18n.get("or")+
" "+currencyComma(la.sale,ja),"pl"===g&&(pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[$a,lb]),pa.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[$a,lb]))):"ro"===g||"bg"===g?pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+
" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):a.isMonthlySENA?pa.info.totalPrice=currencyComma(la.sale,ja)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a]):a.isSECZ?(pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(ab,ja)),pa.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",
[$a])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja)):pa.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+". "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):"de"===g?Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):"cn"===g?Granite.I18n.get("From {0}/mo PF",
currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos PF",[$a])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if("id"==g)pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if(a.isLowestInstallmentInterest)pa.info.totalPrice=
Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[$a,lb])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if("hk"===g||"hk_en"===g)pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(ab,ja)]),pa.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[$a]),
L.priceAnchor.priceWrapper.info.totalPriceMonthly=pa.info.totalPriceMonthly;else if("hu"===g){var Db=parseInt(ab).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),Pb=1>parseFloat(lb)?(100*parseFloat(lb)).toString().slice(0,lb.length-1):lb;pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",Db)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[$a,Pb])+" "+Granite.I18n.get("pd or")+" "+currencyComma(la.sale,ja)}else if("my"===g)pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+
" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if(a.isMonthlySENA)pa.info.totalPrice=currencyComma(la.sale,ja)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a]);else if("it"===g)pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a]),L.priceAnchor.priceWrapper.info.totalPriceMonthly=pa.info.totalPriceMonthly;
else if("ch"===g||"ch_fr"===g){var wb=Granite.I18n.get("{0}/mo at",currencyComma(ab,ja)),dc=Granite.I18n.get("{0} Monthly installments",$a),Wb=Granite.I18n.get("total (installment)"),Mb=currencyComma(la.sale,ja);pa.info.totalPrice=wb+" "+dc+", "+Wb+" "+Mb}else pa.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+". "+Granite.I18n.get("or")+
" "+currencyComma(la.sale,ja):"sa"===g||"sa_en"===g?Granite.I18n.get("From {0}",currencyComma(la.sale,ja))+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("{0}/mo PD",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[$a,lb]):"levant"===g||"levant_ar"===g?Granite.I18n.get("From {0}",currencyComma(la.sale,ja))+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("{0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a]):"jp"===g?Granite.I18n.get("From {0}",currencyComma(la.sale,
ja))+"\u3001"+Granite.I18n.get("or")+Granite.I18n.get("{0}/mo",currencyComma(ab,ja))+Granite.I18n.get("for {0} mos",[$a]):Granite.I18n.get("From {0}/mo",currencyComma(ab,ja))+" "+Granite.I18n.get("for {0} mos",[$a])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);var lc=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&lc.attr("data-leasing-price",pa.info.totalPrice);a.isLeasingPrice=pa.info.totalPrice}else"hr"!=g?pa.info.totalPrice=currencyComma(la.sale,ja):"hr"==g&&(pa.info.totalPrice=Ca.replace("(",
'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==g&&(a.savingInformation?(pa.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,pa.info.orignalPrice=qa+currencyComma(la.original,ja)+za,pa.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice=qa+currencyComma(la.original,ja)+za,L.priceAnchor.priceWrapper.info.ceExchangePrice=
a.storeText,L.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(pa.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",pa.info.orignalPrice="",pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice="",L.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==g&&a.taxPriceDisplay&&(pa.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a);
if(bb||Xa)bb&&null!=ua.listPrice&&0<ua.listPrice?(L.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(ua.listPrice,ja),null!=ua.orignalPrice&&0<ua.orignalPrice&&null!=ua.salePrice&&0<ua.salePrice&&(pa.info.orignalPrice=Granite.I18n.get("From {0}",currencyComma(la.original,ja)),L.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("From {0}",qa+currencyComma(la.original,ja)+za))):"de"==g&&1==a.isNewElementLowestWasPriceSetting?(pa.info.orignalPrice=
currencyComma(la.original,ja),L.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(la.original,ja),pa.info.hasLowestWasPrice=!0):(pa.info.orignalPrice=Granite.I18n.get("From {0}",currencyComma(la.original,ja)),L.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("From {0}",qa+currencyComma(la.original,ja)+za)),"de"==g&&!0!==a.isNewElementLowestWasPriceSetting&&(L.priceAnchor.priceWrapper.info.orignalPrice="");else if("pe"!==g&&"cl"!==g&&"mx"!==g&&"co"!==g||!ua.monthlyPriceInfo.monthlyPrice||
(L.priceAnchor.priceWrapper.info.disclaimer="*Aplican condiciones"),"ca"===g||"ca_fr"===g)"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(L.priceAnchor.priceWrapper.info.savingInformation='\x3cp class\x3d"pd-buying-price__text-saving-info"\x3e'+a.savingInformation+"\x3c/p\x3e");else{if("ro"!=g&&"bg"!=g)if("jp"==g)pa.info.orignalPrice="(\u5272\u5f15\u524d\u4fa1\u683c : "+currencyComma(la.original,ja)+")",L.priceAnchor.priceWrapper.info.orignalPrice="(\u5272\u5f15\u524d\u4fa1\u683c : "+
currencyComma(la.original,ja)+")";else{if(!ta||"pl"!==g||a.isNewElementLowestWasPrice)!0!==a.isNewElementLowestWasPrice||!1!==a.isNewElementLowestWasPriceSetting||"at"===g||a.hasFrequentPrice?(pa.info.orignalPrice=currencyComma(la.original,ja),"at"==g?(pa.info.orignalPrice=Oa,L.priceAnchor.priceWrapper.info.orignalPrice=Oa):"hr"==g||"si"==g||"lv"==g||"lt"==g||"ee"==g||"pt"==g?L.priceAnchor.priceWrapper.info.orignalPrice=currencyComma(la.original,ja):"ua"==g?(pa.info.orignalPrice="\x3cdel\x3e"+currencyComma(la.original,
ja)+"\x3c/del\x3e",L.priceAnchor.priceWrapper.info.orignalPrice="\x3cdel\x3e"+currencyComma(la.original,ja)+"\x3c/del\x3e"):L.priceAnchor.priceWrapper.info.orignalPrice="cz"==g||"sk"==g?1==a.isNewElementLowestWasPriceSetting?currencyComma(la.original,ja):"":qa+currencyComma(la.original,ja)+za,pa.info.hasNoLowestWasPrice=!1,pa.info.hasLowestWasPrice=!0,"pl"==g&&!0===a.isNewElementLowestWasPriceSetting)?(pa.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),L.priceAnchor.priceWrapper.info.lowestWasPricetext=
Granite.I18n.get("Lowest price 30 days before the discount:")):"cz"!==g&&"sk"!==g||!0!==a.isNewElementLowestWasPriceSetting?"it"==g&&!0===a.isNewElementLowestWasPriceSetting||"at"!=g||!0!==a.isNewElementLowestWasPriceSetting||(pa.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),L.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):L.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price in last 30 days"):
(pa.info.orignalPrice="",L.priceAnchor.priceWrapper.info.orignalPrice="")}else if("ro"==g||"bg"==g)pa.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(la.original,ja)),L.priceAnchor.priceWrapper.info.orignalPrice=Granite.I18n.get("RRP {0}",currencyComma(la.original,ja)),p.hasTradeInResult(a,c)&&(L.priceAnchor.priceWrapper.info.orignalPrice="",pa.info.orignalPrice="");"br"==g&&(a.savingInformation?(pa.info.orignalPrice=qa+currencyComma(la.original,ja)+za,pa.info.savePrice=a.savingValue+" "+
Granite.I18n.get("off"),pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice=qa+currencyComma(la.original,ja)+za,L.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,L.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(pa.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",pa.info.orignalPrice="",pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext=
"",L.priceAnchor.priceWrapper.info.orignalPrice="",L.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText));"ar"==g&&a.taxPriceDisplay&&(pa.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay);this.setSamcolVatFreePrice(a)}if(""===bb&&!this.hasComponent(c.buyingToolOptTariffResult,a))if("in"===g&&(pa.info.orignalPriceAddText="MRP: "+pa.info.orignalPrice+" (Incl. of all taxes)"),"hu"===g&&!0===a.isNewElementLowestWasPriceHuType&&!0===a.isNewElementLowestWasPriceSettingHuType&&
(pa.info.orignalPriceAddText=Granite.I18n.get("Best price in the past 30 days:")+" "+a.proudctPriceInfo.wasPriceFormatted+"("+B(la.original,la.sale,a.proudctPriceInfo.wasPrice)+"%)",L.priceAnchor.priceWrapper.info.orignalPriceAddText="",L.priceAnchor.priceWrapper.info.ceExchangePrice=Granite.I18n.get("Best price in the past 30 days:")+" "+a.proudctPriceInfo.wasPriceFormatted+"("+B(la.original,la.sale,a.proudctPriceInfo.wasPrice)+"%)"),"ca"===g||"ca_fr"===g)"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&
(L.priceAnchor.priceWrapper.info.savingInformation='\x3cp class\x3d"pd-buying-price__text-saving-info"\x3e'+a.savingInformation+"\x3c/p\x3e");else if("ro"!==g&&"bg"!==g){"br"===g?a.savingInformation?(pa.info.orignalPrice=qa+currencyComma(la.original,ja)+za,pa.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice=qa+currencyComma(la.original,ja)+za,L.priceAnchor.priceWrapper.info.ceExchangePrice=
a.storeText,L.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):(pa.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",pa.info.orignalPrice="",pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice="",L.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText):"co"===g&&!0===a.vatEligible?(pa.info.savePrice="",L.priceAnchor.priceWrapper.info.savePrice=""):!0===a.isNewElementLowestWasPrice&&
!1===a.isNewElementLowestWasPriceSetting?(L.priceAnchor.priceWrapper.info.savePrice="",pa.info.savePrice=""):(pa.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(la.saved,ja)),"pl"==g&&!0===a.isNewElementLowestWasPriceSetting)?(pa.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),L.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):"cz"!==g&&"sk"!==g||!0!==a.isNewElementLowestWasPriceSetting?"it"==
g&&!0===a.isNewElementLowestWasPriceSetting?(pa.info.savePrice=Granite.I18n.get("Save the {0}%",r(la.saved,la.original)),L.priceAnchor.priceWrapper.info.savePrice=Granite.I18n.get("Save the {0}%",r(la.saved,la.original))):"at"==g&&!0===a.isNewElementLowestWasPriceSetting&&(pa.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:"),L.priceAnchor.priceWrapper.info.lowestWasPricetext=Granite.I18n.get("Lowest price 30 days before the discount:")):L.priceAnchor.priceWrapper.info.lowestWasPricetext=
Granite.I18n.get("Lowest price in last 30 days");if(ta&&"pl"===g){var Qb="";0<ua.listPrice&&(Qb=" "+currencyComma(ua.listPrice,ja),L.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+Qb)}this.setSamcolVatFreePrice(a)}if("it"===g&&ta){var Bb=window.sg.epp.common.eppDiscountRate(ua.b2cPrice,ua.salePrice),Yb=Granite.I18n.get("Price at belo4d.it: {0}",[currencyComma(ua.b2cPrice,ja)]),ec=Granite.I18n.get("You save {0}%",[Bb]);0!=Bb&&(pa.info.eppDiscountText=Yb,pa.info.eppDiscountRateText=
ec,L.priceAnchor.priceWrapper.info.eppDiscountText=Yb,L.priceAnchor.priceWrapper.info.eppDiscountRateText=ec)}"au"!==g&&"fi"!==g&&"se"!==g&&"dk"!==g&&"no"!==g&&"ee"!==g&&"lv"!==g&&"lt"!==g||!a.isHybrisSplitPDTariff||(pa.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(la.saved,ja)));"fr"==g&&a.drawObj.tariffOptionResult.hasComponent&&(pa.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(la.saved,ja)));var hc=p.hasTradeInResult(a,c);"fr"==g&&hc&&a.commonTradein&&(L.price.priceWrapper.info.hasLowestWasPrice=
!0,L.price.priceWrapper.info.hasNoLowestWasPrice=!1,pa.info.savePrice=Granite.I18n.get("Save {0}",currencyComma(la.saved,ja)),pa.info.orignalPrice=currencyComma(la.original,ja),L.priceAnchor.priceWrapper.info.orignalPrice=qa+currencyComma(la.original,ja)+za);"fr"===g&&(L.tradeIn.hasComponent&&pa.info.useTooltip?(pa.info.useTooltip=!0,pa.info.monthly=la.monthly,pa.info.monthlyPrice=currencyComma(la.monthlyPrice,ja),pa.info.monthlyPriceText=Granite.I18n.get("from")+" "+pa.info.monthly+" x "+pa.info.monthlyPrice+
" "+Granite.I18n.get("free of charge or")):pa.info.nonTooltip=!0);-1!==$.inArray(g,["dk","fi","se","no","ee"])&&hc&&(L.price.priceWrapper.info.withTradeIn=""+Granite.I18n.get("with trade-in"),L.priceAnchor.priceWrapper.info.disclaimer=""+Granite.I18n.get("with trade-in"));pa.info.unformattedSavePrice=la.saved}else{if("nl"===g||"be"===g||"be_fr"===g)a.isMigrationHybris?0<ua.listPrice&&(L.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(ua.listPrice,ja)):ua.orignalPrice<
ua.listPrice&&(L.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+" "+currencyComma(ua.listPrice,ja));"in"===g&&(pa.info.orignalPriceAddText="MRP: "+currencyComma(la.original,ja)+" (Incl. of all taxes)");if(ta&&"pl"===g){var Fb="";0<ua.listPrice&&(Fb=" "+currencyComma(ua.listPrice,ja),L.priceAnchor.priceWrapper.info.noLineOrignal=Granite.I18n.get("Listprice")+Fb)}"pe"!==g&&"cl"!==g&&"mx"!==g&&"co"!==g||!ua.monthlyPriceInfo.monthlyPrice||(L.priceAnchor.priceWrapper.info.disclaimer=
"*Aplican condiciones");if(la.original){!a.getOptoinPrice&&Ca?a.isBezel||a.giftCard.isGiftCard?(pa.info.totalPrice=currencyComma(la.sale,ja),"hr"==g&&a.isBezel&&(pa.info.totalPrice=pa.info.totalPrice.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e"))):("hr"!=g?pa.info.totalPrice=Ca:"hr"==g&&(pa.info.totalPrice=Ca.replace("(",'\x3cspan class\x3d"pd-buying-price__new-price-eur"\x3e (').replace(")",")\x3c/span\x3e")),"br"==g&&(a.savingInformation?(L.price.priceWrapper.info.hasLowestWasPrice=
!0,pa.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista "+a.savingInformation,pa.info.orignalPrice=qa+currencyComma(la.original,ja)+za,pa.info.savePrice=a.savingValue+" "+Granite.I18n.get("off"),pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice=qa+currencyComma(la.original,ja)+za,L.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText,L.priceAnchor.priceWrapper.info.savePrice=a.savingValue+" "+Granite.I18n.get("off")):
(pa.info.totalPrice=a.taxPriceDisplay+" \u00e0 vista ",pa.info.orignalPrice="",pa.info.lowestWasPricetext=a.storeText,L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice="",L.priceAnchor.priceWrapper.info.ceExchangePrice=a.storeText)),"ar"==g&&a.taxPriceDisplay&&(pa.info.taxPriceDisplay="Precio sin impuestos nacionales "+a.taxPriceDisplay),this.setSamcolVatFreePrice(a)):pa.info.totalPrice=currencyComma(la.original,ja);if(!a.getOptoinPrice&&ua.monthlyPriceInfo&&
ua.monthlyPriceInfo.monthlyPrice){var jb=ua.monthlyPriceInfo.monthlyPrice,nb=ua.monthlyPriceInfo.tenureVal?ua.monthlyPriceInfo.tenureVal:0,Ab=ua.monthlyPriceInfo.interest?ua.monthlyPriceInfo.interest:0;if(a.isMigrationHybris)"id"==g?pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb])+" "+Granite.I18n.get("or")+" "+Ca:a.isLowestInstallmentInterest?(pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
[nb,Ab])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja),"pl"===g&&(pa.info.totalPrice=Ca,pa.info.totalPriceMonthly=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[nb,Ab]),pa.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[nb,Ab]))):"ro"===g||"bg"===g?pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(jb,
ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):a.isMonthlySENA?pa.info.totalPrice=currencyComma(la.sale,ja)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb]):a.isSECZ?(pa.info.totalPrice=Ca,pa.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(jb,ja)),pa.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb])+" "+Granite.I18n.get("or")+
" "+Ca):pa.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+". "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):"de"===g?Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):"cn"===g?Granite.I18n.get("From {0}/mo PF",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos PF",
[nb])+" "+Granite.I18n.get("or")+" "+Ca:Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb])+" "+Granite.I18n.get("or")+" "+Ca;else if("id"==g)pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if(a.isLowestInstallmentInterest)pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",
[nb,Ab])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if("hk"===g||"hk_en"===g)pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(jb,ja)]),pa.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",[nb]),L.priceAnchor.priceWrapper.info.totalPriceMonthly=pa.info.totalPriceMonthly;else if("hu"===g)Db=parseInt(jb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,
"."),Pb=1>parseFloat(Ab)?(100*parseFloat(Ab)).toString().slice(0,Ab.length-1):Ab,pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",Db)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[nb,Pb])+" "+Granite.I18n.get("pd or")+" "+currencyComma(la.sale,ja);else if("my"===g)pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);else if(a.isMonthlySENA)pa.info.totalPrice=currencyComma(la.sale,ja)+" "+Granite.I18n.get("or")+
" "+Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb]);else if("it"===g)pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb]),L.priceAnchor.priceWrapper.info.totalPriceMonthly=pa.info.totalPriceMonthly;else if("ch"===g||"ch_fr"===g){var Zb=Granite.I18n.get("{0}/mo at",currencyComma(jb,ja)),oc=Granite.I18n.get("{0} Monthly installments",nb),rb=Granite.I18n.get("total (installment)"),
pc=currencyComma(la.sale,ja);pa.info.totalPrice=Zb+" "+oc+", "+rb+" "+pc}else pa.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(jb,ja))+". "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):"sa"===g||"sa_en"===g?Granite.I18n.get("From {0}",currencyComma(la.sale,ja))+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("{0}/mo PD",
currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[nb,Ab]):"levant"===g||"levant_ar"===g?Granite.I18n.get("From {0}",currencyComma(la.sale,ja))+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("{0}/mo",currencyComma(jb,ja))+" "+Granite.I18n.get("for {0} mos",[nb]):"jp"===g?Granite.I18n.get("From {0}",currencyComma(la.sale,ja))+"\u3001"+Granite.I18n.get("or")+Granite.I18n.get("{0}/mo",currencyComma(jb,ja))+Granite.I18n.get("for {0} mos",[nb]):Granite.I18n.get("From {0}/mo",currencyComma(jb,
ja))+" "+Granite.I18n.get("for {0} mos",[nb])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja);var kb=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&kb.attr("data-leasing-price",pa.info.totalPrice);a.isLeasingPrice=pa.info.totalPrice}"fi"!==g&&"se"!==g&&"dk"!==g&&"no"!==g&&"ee"!==g&&"lv"!==g&&"lt"!==g||!Na||(pa.info.description=Granite.I18n.get("Amount to pay immediately today then {0}\x3cbr/\x3efor your belo4d Care+ insurance.",a.drawObj.careResult.dataPromotionPrice));"fr"===g&&(L.tradeIn.hasComponent&&
pa.info.useTooltip?(pa.info.useTooltip=!0,pa.info.monthly=la.monthly,pa.info.monthlyPrice=currencyComma(la.monthlyPrice,ja),pa.info.monthlyPriceText=Granite.I18n.get("from")+" "+pa.info.monthly+" x "+pa.info.monthlyPrice+" "+Granite.I18n.get("free of charge or")):pa.info.nonTooltip=!0)}else"uk"!==g&&"au"!==g||!a.drawObj.tariffOptionResult.hasComponent||0!==la.sale||(L.price.priceWrapper.info.summaryPrice=L.price.priceWrapper.info.totalPrice=currencyComma(la.sale,ja))}if("in"==g&&a.promotionSalesPitch){var tb=
parseFloat(la.sale)-parseFloat(a.promotionSalesPitch);pa.info.ceExchangePrice="From "+currencyComma(tb,ja)+" with exchange*"}if(!la.sale&&!la.original&&a.proudctPriceInfo.orignalPriceFormatted&&("uk"!==g&&"au"!==g||!a.drawObj.tariffOptionResult.hasComponent||0!==la.sale))if(Ca!==Oa&&(pa.info.orignalPrice=Oa),Pa&&(pa.info.savePrice=Pa),ua.monthlyPriceInfo&&ua.monthlyPriceInfo.monthlyPrice){var hb=ua.monthlyPriceInfo.monthlyPrice,eb=ua.monthlyPriceInfo.tenureVal?ua.monthlyPriceInfo.tenureVal:0,Gb=ua.monthlyPriceInfo.interest?
ua.monthlyPriceInfo.interest:0;if("id"==g)pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",currencyCommaExcep(hb,ja))+" "+Granite.I18n.get("for {0} mos",[eb])+" "+Granite.I18n.get("or")+" "+Ca;else if(a.isLowestInstallmentInterest)pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[eb,Gb])+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja),"pl"===g&&(pa.info.totalPrice=Ca,pa.info.totalPriceMonthly=Granite.I18n.get("or")+
" "+Granite.I18n.get("from {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[eb,Gb]),pa.info.totalPriceAnchor=Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[eb,Gb]));else if("hk"===g||"hk_en"===g)pa.info.totalPrice=currencyComma(la.sale,ja),pa.info.totalPriceMonthly=Granite.I18n.get("or interest-free instalments from {0} /mo*",[currencyComma(hb,ja)]),pa.info.disclaimerText=Granite.I18n.get("*Based on {0}-month instalments, rounded to the nearest cents. Other repayment periods are available",
[eb]),L.priceAnchor.priceWrapper.info.totalPriceMonthly=pa.info.totalPriceMonthly;else if("hu"===g)Db=parseInt(hb).toString().replace(/\B(?=(\d{3})+(?!\d))/g,"."),Pb=1>parseFloat(Gb)?(100*parseFloat(Gb)).toString().slice(0,Gb.length-1):Gb,pa.info.totalPrice=Granite.I18n.get("pd From {0}/mo",Db)+" Ft / "+Granite.I18n.get("for {0} mos at {1}% APR",[eb,Pb])+" "+Granite.I18n.get("pd or")+" "+currencyComma(la.sale,ja);else if("ro"===g||"bg"===g)pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(hb,
ja))+" "+Granite.I18n.get("or")+" "+Ca;else if("my"===g)pa.info.totalPrice=Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("or")+" "+Ca;else if(a.isMonthlySENA)pa.info.totalPrice=Ca+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos",[eb]);else if(a.isSECZ)pa.info.totalPrice=Ca,pa.info.totalPriceMonthly=Granite.I18n.get("product detail From {0}/mo",currencyComma(hb,ja)),pa.info.totalPriceAnchor=Granite.I18n.get("From {0}/mo",
currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos",[eb])+" "+Granite.I18n.get("or")+" "+Ca;else if("it"===g)pa.info.totalPrice=Ca,pa.info.totalPriceMonthly=Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos",[eb])+" "+Granite.I18n.get("or")+" "+Ca,L.priceAnchor.priceWrapper.info.totalPriceMonthly=pa.info.totalPriceMonthly;else if("ch"===g||"ch_fr"===g){var fc=Granite.I18n.get("{0}/mo at",currencyComma(hb,ja)),$b=Granite.I18n.get("{0} Monthly installments",
eb),ic=Granite.I18n.get("total (installment)"),qc=currencyComma(la.sale,ja);pa.info.totalPrice=fc+" "+$b+", "+ic+" "+qc}else pa.info.totalPrice="tr"==g?Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja)+" "+Granite.I18n.get("in advance"):"in"===g?Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+". "+Granite.I18n.get("or")+" "+currencyComma(la.sale,ja):"de"===g?Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("or")+
" "+currencyComma(la.sale,ja):"cn"===g?Granite.I18n.get("From {0}/mo PF",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos PF",[eb])+" "+Granite.I18n.get("or")+" "+Ca:"sa"===g||"sa_en"===g?Granite.I18n.get("From {0}",Ca)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("{0}/mo PD",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos at {1}% APR",[eb,Gb]):"levant"===g||"levant_ar"===g?Granite.I18n.get("From {0}",Ca)+" "+Granite.I18n.get("or")+" "+Granite.I18n.get("{0}/mo",currencyComma(hb,
ja))+" "+Granite.I18n.get("for {0} mos",[eb]):"jp"===g?Granite.I18n.get("From {0}",Ca)+"\u3001"+Granite.I18n.get("or")+Granite.I18n.get("{0}/mo",currencyComma(hb,ja))+Granite.I18n.get("for {0} mos",[eb]):Granite.I18n.get("From {0}/mo",currencyComma(hb,ja))+" "+Granite.I18n.get("for {0} mos",[eb])+" "+Granite.I18n.get("or")+" "+Ca;var ob=c.buyingToolOptEmbedAddon;a.isEmbedAddOn&&ob.attr("data-leasing-price",pa.info.totalPrice);a.isLeasingPrice=pa.info.totalPrice}else pa.info.totalPrice=Ca}L.price.priceWrapper.info.extraRewards=
!1;if(a.extraRewardsSites){var ub=$jscomp.makeIterator(a.extraRewardsDate[g].split("-")),Eb=ub.next().value,ac=ub.next().value,Xb=function(Lb){var yc=parseInt(Lb.substring(0,4)),tc=parseInt(Lb.substring(4,6))-1;Lb=parseInt(Lb.substring(6,8));return(new Date(yc,tc,Lb)).setHours(0,0,0,0)},Rb=new Date,mc=Xb(Eb),jc=Xb(ac),bc=(new Date(Rb.getUTCFullYear(),Rb.getUTCMonth(),Rb.getUTCDate())).setHours(0,0,0,0);bc>=mc&&bc<=jc&&(L.price.priceWrapper.info.extraRewards=!0)}if(a.hasFrequentPrice){var Tb=a.proudctPriceInfo.frequentPrice,
Kb=a.proudctPriceInfo.frequentPriceFormatted?a.proudctPriceInfo.frequentPriceFormatted:currencyComma(Tb,ja);L.priceAnchor.priceWrapper.info.hasFrequentPrice=!0;L.priceAnchor.priceWrapper.info.orignalPrice=qa+Kb+za}if("fr"===g&&Ka&&Ea){var Ub=Ea.simulation_plans,Vb="";if(Ub)for(var Hb in Ub){var Sb=Object.keys(Ub[Hb]);Vb=currencyComma(Ub[Hb][Sb].installment_amount.value,ja);pa.info.text?pa.info.text2=Granite.I18n.get("{0} sans frais par Carte bancaire :**",Sb)+" "+Vb:pa.info.text=Granite.I18n.get("{0} sans frais par Carte bancaire :**",
Sb)+" "+Vb}}"08"!==a.categoryTypeCode.slice(0,2)&&a.savingInformation&&(pa.info.savingInformation=a.savingInformation);a.useShippingOrBack&&a.shippingOrBack&&(pa.info.shippingOrBack=a.shippingOrBack);var Nb="Hybris"===a.apiFlag||"Hybris-intg"===a.apiFlag;if(Nb){a.stockLevelStatusDisplay&&""!=a.stockLevelStatusDisplay&&(pa.info.text2=a.stockLevelStatusDisplay);var cc=("Y"===globalShopInfo.shopServiceYN&&"Y"===a.isCart||"Hybris-intg"===a.apiFlag)&&"Y"!==a.oldProductYn,xb=!0;Nb&&("N"!==globalShopInfo.shopServiceYN&&
a.oldHybrisSalesStatus||(xb=!1));cc&&globalShopInfo.reservedMsg&&"undefined"!=typeof globalShopInfo.reservedMsg&&null!=globalShopInfo.reservedMsg&&""!=globalShopInfo.reservedMsg&&(pa.info.text3=globalShopInfo.reservedMsg);cc&&hybrisShopInfo.reservedMsg&&xb&&"undefined"!=typeof hybrisShopInfo.reservedMsg&&null!=hybrisShopInfo.reservedMsg&&""!=hybrisShopInfo.reservedMsg&&(pa.info.text3=hybrisShopInfo.reservedMsg);"tw"!==g&&"hk"!==g&&"hk_en"!==g||"PREORDER"!==a.stockLevelStatus||(pa.info.text3="");-1!==
$.inArray(g,["no","dk","fi","se"])&&!0===xb?"OUTOFSTOCK"==a.apiChangeStockStatus||"INSTOCK"!=a.apiChangeStockStatus&&"LOWSTOCK"!=a.apiChangeStockStatus&&"PREORDER"!=a.apiChangeStockStatus&&"BACKORDERED"!=a.apiChangeStockStatus?"OUTOFSTOCK"==a.apiChangeStockStatus&&(L.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description").remove()):($(".cost-box__description.howToReceiveTheProduct").show(),L.price.priceWrapper.info.howToReceiveTheProduct=""+Granite.I18n.get("Choose home delivery or pick up in store in 1-2 hours")):
(L.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description").remove())}else"pe"!==g&&"mx"!==g||!a.stockLevelStatusDisplay||""==a.stockLevelStatusDisplay||(pa.info.text3=a.stockLevelStatusDisplay);pa.info.summaryPrice=Fa;pa.info.salePriceFormatted=Ca?Ca:Oa;pa.info.orignalPrice!==pa.info.summaryPrice&&(pa.info.summaryPrice=pa.info.totalPrice);a.proudctPriceInfo.salesPitch&&(pa.info.salesPitch=a.proudctPriceInfo.salesPitch);if(a.drawObj.tradeInResult.priceOverFlag&&("nl"===g||"be"===
g||"be_fr"===g||"sg"===g||"vn"===g||"id"===g||"fr"===g||"de"===g||"sa"===g||"sa_en"===g||"kz_kz"===g||"kz_ru"===g||"cl"===g||"cn"===g||"tr"===g)&&(L.price.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ja),L.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ja),"fr"==g&&(L.priceAnchor.priceWrapper.info.totalPrice=currencyComma(a.minOrderEntryValue,ja)),"cn"==g)){var pb=a.hasComponentClass,db=a.disabledClass,gc=c.buyingToolOptCareResult,Ib=gc.hasClass(pb)&&
!gc.hasClass(db),kc=gc.find(".result-price").attr("data-price"),uc=c.buyingToolOptWarrantyVdResult,rc=uc.hasClass(pb)&&!uc.hasClass(db),sc=uc.find(".option-result__text-wrap").attr("data-price"),nc=a.minOrderEntryValue;Ib&&(nc+=parseFloat(kc));rc&&(nc+=parseFloat(sc));L.price.priceWrapper.info.totalPrice=currencyComma(nc,ja);L.priceAnchor.priceWrapper.info.totalPrice=currencyComma(nc,ja)}ta&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&window.sg.epp.common.usePosQty&&(L.price.priceWrapper.info.walkoutQtyText=
Granite.I18n.get("Walk Out")+" ("+Granite.I18n.get("Qty")+" : "+a.walkoutQty.toLocaleString()+")",L.price.priceWrapper.info.homeDeliveryQtyText=Granite.I18n.get("Home Delivery")+" ("+Granite.I18n.get("Qty")+" : "+a.homeDeliveryQty.toLocaleString()+")");L.priceAnchor.priceWrapper.info=$.extend({},L.price.priceWrapper.info,L.priceAnchor.priceWrapper.info);(a.isSECZ||"pl"===g)&&pa.info.totalPriceAnchor&&(L.priceAnchor.priceWrapper.info.totalPrice=pa.info.totalPriceAnchor);if(pa.info.totalPrice){var vc=
currencyComma(la.sale,ja);"gr"===g&&(vc=pa.info.salePriceFormatted);L.priceAnchor.priceWrapper.info.totalPrice=pa.info.totalPrice.replace(vc,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+vc+"\x3c/span\x3e")}a.isSENA&&ua&&ua.promotionPriceValidTo&&($(".cost-box__description.promotionPriceValidTo").show(),pa.info.promotionPriceValidTo=ua.promotionPriceValidTo);if("at"==g)if(ua&&!1===(null==ua?void 0:ua.isFreeDeliveryCost)){pa.info.shippingCostPopup={};pa.info.isFreeDeliveryCost=!0;var wc;
pa.info.shippingCostPopup.deliveryModes=null==ua?void 0:null==(wc=ua.shippingCostPopup)?void 0:wc.deliveryModes;var xc;pa.info.shippingCostPopup.deliveryServices=null==ua?void 0:null==(xc=ua.shippingCostPopup)?void 0:xc.deliveryServices}else if(null==ua?0:ua.itsFreeDelivery)pa.info.itsFreeDelivery=!0;ta||"tr"!==g||(pa.info.hasLowestWasPrice=!1,pa.info.lowestWasPricetext="",pa.info.orignalPrice="",pa.info.savePrice="",L.priceAnchor.priceWrapper.info.lowestWasPricetext="",L.priceAnchor.priceWrapper.info.orignalPrice=
"",L.priceAnchor.priceWrapper.info.savePrice="");"cn"===g&&window.sg.components.dynamic.productInstallmentWithGiftPD.setInstallmentPrice(a,c);if(pa.info.useTooltip){$("#disclaimer").find(".text-editor__inner").empty();var Cc='\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(Cc)}aa.productPriceTotalDraw(L,a.isOptClicked);var Ac;"at"==g&&(null==(Ac=L.price.priceWrapper.info)?0:Ac.shippingCostPopup)&&aa.shippingCostPopupDraw(L.price.priceWrapper.info.shippingCostPopup)}else a.isSENA&&(a.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null,$(".cost-box__description.howToReceiveTheProduct").remove()),aa.productPriceTotalDraw(L,a.isOptClicked)};na.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))};na.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)};na.prototype.specialTagging=function(a,c){var m=a.modelCode,g=a.modelName,p=a.displayName,aa=a.pvitype.toLowerCase(),L=a.pvisubtype.toLowerCase(),ma=a.pimsubtype.toLowerCase(),ua=a.proudctPriceInfo.orignalPrice,ja=a.proudctPriceInfo.salePrice,xa=a.imgUrl,Ia=a.skuId;$(document).find(".add-special-tagging").each(function(Ka,Ea){!$(Ea).attr("data-modelcode")&&
m&&$(Ea).attr("data-modelcode",m);xa&&$(Ea).hasClass("tg-add-to-cart")&&$(Ea).attr("data-imageurl",xa);!$(Ea).attr("data-modelname")&&g&&$(Ea).attr("data-modelcode")&&-1<$(Ea).attr("data-modelcode").indexOf(m)&&$(Ea).attr("data-modelname",g.toLowerCase());!$(Ea).attr("data-modelprice")&&ja&&$(Ea).attr("data-modelcode")&&-1<$(Ea).attr("data-modelcode").indexOf(m)&&$(Ea).attr("data-modelprice",ua);!$(Ea).attr("data-modelrevenue")&&ja&&$(Ea).attr("data-modelcode")&&-1<$(Ea).attr("data-modelcode").indexOf(m)&&
$(Ea).attr("data-modelrevenue",ua);!$(Ea).attr("data-discountprice")&&ja&&$(Ea).attr("data-modelcode")&&-1<$(Ea).attr("data-modelcode").indexOf(m)&&$(Ea).attr("data-discountprice",ja);!$(Ea).attr("data-modeldisplay")&&p&&$(Ea).attr("data-modelcode")&&-1<$(Ea).attr("data-modelcode").indexOf(m)&&$(Ea).attr("data-modeldisplay",p.toLowerCase());!$(Ea).attr("data-pvitype")&&aa&&$(Ea).attr("data-pvitype",aa);!$(Ea).attr("data-pvisubtype")&&L&&$(Ea).attr("data-pvisubtype",L);!$(Ea).attr("data-pimsubtype")&&
ma&&$(Ea).attr("data-pimsubtype",ma);$(Ea).attr("data-modelqty")||$(Ea).attr("data-modelqty","1");!$(Ea).attr("data-skuid")&&Ia&&$(Ea).attr("data-skuid",Ia)});this.thirdPartyTagging(a,c,c.buyingToolOptTariff.find(".option-input"))};na.prototype.settingPriceCta=function(a,c,m,g){var p=c.drawObj,aa=c.view,L=c.apiChangeStockStatus,ma=c.priceCurrency;if("Y"!==c.wtbCtaBtnYn){var ua=a,ja=c.util,xa=c.drawObj,Ia=c.isSimplePDP,Ka=c.siteCode,Ea=c.modelName,Ha=m.buyingToolOptTariffPlan.find("ul li"),Sa=c.modelCode,
Ga=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",pa=c.wtbSrc,Oa=c.imgUrl,Ca=c.wtbSubTypeCode,Pa=c.shopSkuCode,Fa=$(m.buyingToolOptTariffPlan),Na=ja.hasTariffPlanResult(c,m),Ta=Fa.find(".option-input.this-checked").attr("data-url"),Ua=$("#shopIntegrationFlag").val(),Z="GPv2"===Ua,Ba="Hybris"===Ua||"Hybris-intg"===Ua,la="Hybris-new"===Ua,wa=c.wtbUseYn,Da=c.wtbDispFuncUseYN,ya=xa.price,Ja="_self",La="",Ma="",oa={},Ra=c.stockLevelStatus,Wa=Ra,Qa="";"cn"==Ka&&(Qa="GetStock");c.isPossibleBuy=
"INSTOCK"==Ra||"BACKORDERED"==Ra||"PREORDER"==Ra||"LOWSTOCK"==Ra?!0:!1;if(c.isBezel&&c.isPossibleBuy)if("Hybris-new"===Ua){var Va=c.selectedBezelColor;if(Va){var cb=Va.hasOwnProperty("stock")?Va.stock.stockLevelStatus.toUpperCase():"";Ra=cb}""==Ra&&(ua=!1)}else{if("Hybris"===Ua||"Hybris-intg"===Ua)Va=c.selectedBezelColor,cb="",Va&&Va.hasOwnProperty("stockLevelStatus")&&null!=Va.stockLevelStatus&&(cb=Va.stockLevelStatus.toUpperCase()),Ra=cb,""==Ra&&(ua=!1)}else if(c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel||
!c.isBezel&&c.sellingWithBazel)Ra="OUTOFSTOCK";var bb="_self",Xa="",Ya="",ib={},Za="",gb="",fb={},sb="pd-buying-price--cta3",yb="javascript:;",Ob="javascript:;",vb={modelName:Ea,dataTtile:Ga,imgSrc:pa,iaCode:Ca,dataModelCode:Sa};"in"===Ka&&(vb.dataModelCode=$("#modelCode").val());var qb=!0,Jb="br"===Ka||"ar"===Ka||"latin"===Ka?!0:!1;Ba?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(qb=!1):la?c.newHybrisSalesStatus||(qb=!1):Z?c.accessoryDisabled&&(qb=!1):Jb&&(c.hybrisApiData.shopAPI?
"br"!==Ka||c.hybrisApiData.shopAPI.salesStatus?"ar"===Ka&&"ON_SALES"!==c.hybrisApiData.shopAPI.salesStatus?qb=!1:"latin"===Ka&&"ON_SALE"!==c.hybrisApiData.shopAPI.salesStatus&&(qb=!1):qb=!1:Jb=!1);var mb=!1;"Y"===wa?(mb="Y"===Da&&(Ba||la||Z||Jb)?qb?!1:!0:!0,Ua||(mb=!0)):mb=!1;"mx"===Ka&&(mb=!1);if(ua)if(mb?"NOORDER"===Ra?(Ma=Ya=Granite.I18n.get("Where to buy"),La=Xa="js-cta-buy tg-wtb",oa=ib=vb):"id"!==Ka&&(gb=Granite.I18n.get("Where to buy"),Za="js-cta-buy tg-wtb",fb=vb):"NOORDER"===Ra&&(Ya=Ma=Granite.I18n.get("not for sale"),
Xa=La="cta--disabled tg-not-for-sale"),"NOORDER"===Ra)sb="pd-buying-price--cta2","in"===Ka&&(Xa=La="js-cta-stock tg-out-stock",Ya=Ma=Granite.I18n.get("Get stock alert"),ib=oa={moCode:Pa});else{if("OUTOFSTOCK"===Ra)Xa=La="js-cta-stock tg-out-stock",Ya=Ma=Granite.I18n.get("Get stock alert"),ib=oa={moCode:Pa,gsFlag:Qa};else if("PREORDER"===Ra){var Cb=M("preorder",c,m),zb={};Xa=La="js-buy-now";zb.moCode=Pa;Cb.isSpecial?(Ya=Ma=Cb.title,Cb.ctaType&&(-1<Cb.ctaType.indexOf("continue")?(Xa+=" tg-continue",
La+=" tg-continue"):-1<Cb.ctaType.indexOf("checkout")&&(Xa+=" tg-checkout",La+=" tg-checkout",-1<Cb.ctaType.indexOf("between")&&(Xa+=" tg-between",La+=" tg-between")))):(Ya=Ma=Granite.I18n.get("pre order"),Xa+=" tg-pre-order",La+=" tg-pre-order");zb.ctaType=Cb.ctaType;ib=oa=zb}else{var ab=M("add-cart",c,m),$a={moCode:Pa};Xa=La="js-buy-now";ab.isSpecial?(Ya=Ma=ab.title,ab.ctaType&&(-1<ab.ctaType.indexOf("continue")?(Xa+=" tg-continue",La+=" tg-continue"):-1<ab.ctaType.indexOf("checkout")&&(Xa+=" tg-checkout",
La+=" tg-checkout",-1<ab.ctaType.indexOf("between")&&(Xa+=" tg-between",La+=" tg-between")))):(Ya=Ma=Granite.I18n.get("Add to cart"),Xa+=" tg-add-to-cart",La+=" tg-add-to-cart",$a.imgUrl=Oa);$a.ctaType=ab.ctaType;ib=oa=$a;"lt"!==Ka&&"lv"!==Ka&&"ee"!==Ka||"INSTOCK"!==Ra&&"BACKORDERED"!==Ra||!c.stockCustomMessage||($("#pd-delivery-msg").html(c.stockCustomMessage),$("#pd-delivery-msg").show());"tr"===Ka&&"INSTOCK"===Ra&&(Ya=Ma=Granite.I18n.get("Buy now"));["th","lv","lt","ee"].includes(Ka)&&"INSTOCK"===
Ra&&(Ya=Ma=Granite.I18n.get("Buy"))}U(c,m)}else sb="pd-buying-price--cta2",mb?(Ma=Ya=Granite.I18n.get("Where to buy"),La=Xa="js-cta-buy tg-wtb",oa=ib=vb,!Ia&&("nl"===Ka||"be"===Ka||"be_fr"===Ka)&&0<Ha.length&&(Ma=Granite.I18n.get("BUY WITH SUBSCRIPTION"),La="s-cta-item js-tariff-cta tg-subscription",oa.style="display:none;")):(Ya=Ma=Granite.I18n.get("not for sale"),Xa=La="cta--disabled tg-not-for-sale"),"in"===Ka&&(Xa=La="js-cta-stock tg-out-stock",Ya=Ma=Granite.I18n.get("Get stock alert"),ib=oa=
{moCode:Pa});c.sellingWithBazel&&"OUTOFSTOCK"==Ra&&(Xa=La="cta--disabled js-cta-stock tg-out-stock",Ya=Ma=Granite.I18n.get("Out Of Stock"),ib=oa={moCode:Pa});Na&&(Xa=La="js-buy-now is-checked tg-subscription",Ya=Ma=Granite.I18n.get("BUY WITH SUBSCRIPTION"),Ob=yb=Ta);c.hasBespokeCta&&("PREORDER"!==Ra&&(Xa=La="tg-bespoke",Ya=Ma=Granite.I18n.get("Customize yours"),Ob=yb=$("#bespokeCtaLink").val(),bb=Ja="_self"),"Y"===wa&&(gb=Granite.I18n.get("Where to buy"),Za="js-cta-buy tg-wtb",fb=vb));"cn"==Ka&&c.isComingSoon&&
(Qa="ComingSoon",Ya=Ma=Granite.I18n.get("Coming Soon Title"),ib.gsFlag=Qa,oa.gsFlag=Qa);Ra=Wa;ya.classType=sb;ya.isNotForSale=!ya.configuratorEnabled&&Ya===Granite.I18n.get("not for sale");ya.wtbAttr=ja.getAttrCta(gb,"javascript:;","_self",Za,fb);ya.containedAttr=ja.getAttrCta(Ma,yb,Ja,La,oa);ya.anchorNaviAttr=ja.getAttrCta(Ya,Ob,bb,Xa,ib)}else{var lb=a,Db=c.util,Pb=c.drawObj,wb=c.siteCode,dc=c.modelName,Wb=c.modelCode,Mb=c.pdRemoveTagTxt?c.pdRemoveTagTxt.replace("\x26quot;",'"'):"",lc=c.wtbSrc,Qb=
c.wtbSubTypeCode,Bb=c.shopSkuCode,Yb=$(m.buyingToolOptTariffPlan),ec=Db.hasTariffPlanResult(c,m),hc=Yb.find(".option-input.this-checked").attr("data-url"),Fb=$("#shopIntegrationFlag").val(),jb="GPv2"===Fb,nb="Hybris"===Fb||"Hybris-intg"===Fb,Ab="Hybris-new"===Fb,Zb=c.wtbUseYn,oc=c.wtbDispFuncUseYN,rb=Pb.price,pc="_self",kb="",tb="",hb={},eb=c.stockLevelStatus,Gb=eb,fc="";"cn"==wb&&(fc="GetStock");c.isPossibleBuy="INSTOCK"==eb||"BACKORDERED"==eb||"PREORDER"==eb||"LOWSTOCK"==eb?!0:!1;if(c.isBezel&&
c.isPossibleBuy)if("Hybris-new"===Fb){var $b=c.selectedBezelColor;if($b){var ic=$b.hasOwnProperty("stock")?$b.stock.stockLevelStatus.toUpperCase():"";eb=ic}""==eb&&(lb=!1)}else{if("Hybris"===Fb||"Hybris-intg"===Fb)$b=c.selectedBezelColor,ic="",$b&&$b.hasOwnProperty("stockLevelStatus")&&null!=$b.stockLevelStatus&&(ic=$b.stockLevelStatus.toUpperCase()),eb=ic,""==eb&&(lb=!1)}else c.isBezel&&!c.isPossibleBuy&&c.sellingWithBazel&&(eb="OUTOFSTOCK");var qc="_self",ob="",ub="",Eb={},ac="",Xb="",Rb={},mc=
"javascript:;",jc="javascript:;",bc="pd-buying-price--cta2",Tb={modelName:dc,dataTtile:Mb,imgSrc:lc,iaCode:Qb,dataModelCode:Wb};"in"===wb&&(Tb.dataModelCode=$("#modelCode").val());var Kb=!0,Ub="br"===wb||"ar"===wb||"latin"===wb?!0:!1;nb?"N"!==globalShopInfo.shopServiceYN&&c.oldHybrisSalesStatus||(Kb=!1):Ab?c.newHybrisSalesStatus||(Kb=!1):jb?c.accessoryDisabled&&(Kb=!1):Ub&&(c.hybrisApiData.shopAPI?"br"!==wb||c.hybrisApiData.shopAPI.salesStatus?"ar"===wb&&"ON_SALES"!==c.hybrisApiData.shopAPI.salesStatus?
Kb=!1:"latin"===wb&&"ON_SALE"!==c.hybrisApiData.shopAPI.salesStatus&&(Kb=!1):Kb=!1:Ub=!1);var Vb=!1;"Y"===Zb?(Vb="Y"===oc&&(nb||Ab||jb||Ub)?Kb?!1:!0:!0,Fb||(Vb=!0)):Vb=!1;"mx"===wb&&(Vb=!1);if(lb){Vb?("NOORDER"===eb?(ob=kb="js-cta-buy tg-wtb",ub=tb=Granite.I18n.get("Where to buy"),Eb=hb=Tb):(ac="js-cta-buy tg-wtb ",Xb=Granite.I18n.get("Where to buy"),Rb=Tb,bc="pd-buying-price--cta3"),"in"===wb&&(ob=kb="js-cta-stock tg-out-stock",ub=tb=Granite.I18n.get("Get stock alert"),Eb=hb={moCode:Bb})):"NOORDER"===
eb&&(ob=kb="cta--disabled no-for-sale tg-not-for-sale",ub=tb=Granite.I18n.get("not for sale"),"in"===wb&&(ob=kb="js-cta-stock tg-out-stock",ub=tb=Granite.I18n.get("Get stock alert"),Eb=hb={moCode:Bb}));if("OUTOFSTOCK"===eb)ob=kb="js-cta-stock tg-out-stock",ub=tb=Granite.I18n.get("Get stock alert"),Eb=hb={moCode:Bb,gsFlag:fc};else if("PREORDER"===eb){var Hb=M("preorder",c,m),Sb={};ob=kb="js-buy-now pre-order";Sb.moCode=Bb;Hb.isSpecial?(ub=tb=Hb.title,Hb.ctaType&&(-1<Hb.ctaType.indexOf("continue")?
(ob+=" tg-continue",kb+=" tg-continue"):-1<Hb.ctaType.indexOf("checkout")&&(ob+=" tg-checkout",kb+=" tg-checkout",-1<Hb.ctaType.indexOf("between")&&(ob+=" tg-between",kb+=" tg-between")))):(ub=tb=Granite.I18n.get("pre order"),ob+=" tg-pre-order",kb+=" tg-pre-order");Sb.ctaType=Hb.ctaType;Rb.moCode=Bb;Eb=hb=Sb}else{var Nb=M("add-cart",c,m);ob=kb="js-buy-now";"Y"===Zb&&("in"===wb?(ob=kb="js-cta-stock tg-out-stock",ub=tb=Granite.I18n.get("Get stock alert"),Eb=hb={moCode:Bb}):(bc="pd-buying-price--cta3",
ac="js-cta-buy tg-wtb ",Xb=Granite.I18n.get("Where to buy"),Rb=Tb));var cc={moCode:Bb};Nb.isSpecial?(ub=tb=Nb.title,Nb.ctaType&&(-1<Nb.ctaType.indexOf("continue")?(ob+=" tg-continue",kb+=" tg-continue"):-1<Nb.ctaType.indexOf("checkout")&&(ob+=" tg-checkout",kb+=" tg-checkout",-1<Nb.ctaType.indexOf("between")&&(ob+=" tg-between",kb+=" tg-between")))):(ub=tb=Granite.I18n.get("Add to cart"),ob+=" tg-add-to-cart",kb+=" tg-add-to-cart");cc.ctaType=Nb.ctaType;Eb=hb=cc;Rb.moCode=Bb;"lt"!==wb&&"lv"!==wb&&
"ee"!==wb||"INSTOCK"!==eb&&"BACKORDERED"!==eb||!c.stockCustomMessage||($("#pd-delivery-msg").html(c.stockCustomMessage),$("#pd-delivery-msg").show());["th","lv","lt","ee"].includes(wb)&&"INSTOCK"===eb&&(ub=tb=Granite.I18n.get("Buy"))}U(c,m)}else"Y"===Zb?(ob=kb="js-cta-buy tg-wtb",ub=tb=Granite.I18n.get("Where to buy"),Eb=hb=Tb):(ob=kb="cta--disabled tg-not-for-sale",ub=tb=Granite.I18n.get("not for sale")),"in"===wb&&(ob=kb="js-cta-stock tg-out-stock",ub=tb=Granite.I18n.get("Get stock alert"),Eb=hb=
{moCode:Bb}),bc="pd-buying-price--cta1";c.sellingWithBazel&&"OUTOFSTOCK"==eb&&(ob=kb="cta--disabled js-cta-stock tg-out-stock",ub=tb=Granite.I18n.get("Out Of Stock"),Eb=hb={moCode:Bb});ec&&(ob=kb="js-buy-now is-checked tg-subscription",ub=tb=Granite.I18n.get("BUY WITH SUBSCRIPTION"),mc=jc=hc);c.hasBespokeCta&&("PREORDER"!==eb&&(ob=kb="tg-bespoke",ub=tb=Granite.I18n.get("Customize yours"),mc=jc=$("#bespokeCtaLink").val(),qc=pc="_self"),"Y"===Zb&&(Xb=Granite.I18n.get("Where to buy"),ac="js-cta-buy tg-wtb",
Rb=Tb));"cn"==wb&&c.isComingSoon&&(fc="ComingSoon",ub=tb=Granite.I18n.get("Coming Soon Title"),Eb.gsFlag=fc,hb.gsFlag=fc);eb=Gb;rb.classType=bc;rb.isNotForSale=!rb.configuratorEnabled&&ub===Granite.I18n.get("not for sale");rb.wtbAttr=Db.getAttrCta(Xb,"javascript:;","_self",ac,Rb);rb.containedAttr=Db.getAttrCta(tb,jc,pc,kb,hb);rb.anchorNaviAttr=Db.getAttrCta(ub,mc,qc,ob,Eb)}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 xb=p.price,pb=c.modelCode,db=c.ctaLocalText,gc=c.configuratorUseYn,Ib=$("#tempTitle").val(),kc=c.configuratorUrl;"Y"===gc&&"page-standard-pd"===Ib&&(""!==kc&&null!==kc?(kc=kc+"?modelCode\x3d"+pb,xb.anchorNaviAttr.href=kc,xb.containedAttr.href=kc,xb.anchorNaviAttr.class=xb.containedAttr.class="configuratorUse-y"):xb.anchorNaviAttr.class=xb.containedAttr.class="cta--disabled configuratorUse-y",
""!==db&&null!==db&&(xb.anchorNaviAttr.text=xb.containedAttr.text=db),xb.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());var uc=c.soundbarCategoryData;(c.addonStepBuying04||c.addonStepBuying0701)&&!c.newEmbedVDCountry&&uc&&1===uc.categoryTotalCount&&!c.hasGift&&c.embedAddonSelected&&0<c.embedAddonSelected.length&&(xb.anchorNaviAttr.class=xb.containedAttr.class=xb.anchorNaviAttr.class.replace(" tg-continue",""),xb.anchorNaviAttr.ctaType=xb.containedAttr.ctaType=xb.anchorNaviAttr.ctaType.replace(" continue",
""));aa.productCtaDraw(p);this.settingCtaTagging(c,m);this.specialTagging(c,m);var rc=m.buyingToolPriceBar.find(".summary__product-price");if(c.embedAddonSelected&&0<c.embedAddonSelected.length)rc.show();else{var sc=m.buyingToolOptEmbedAddon.attr("data-leasing-price");sc&&rc.html()===p.price.priceWrapper.info.totalPrice&&($(".pd-buying-price .pd-buying-price__wrap .pd-buying-price__new-price").html(sc),$(".hdd02-buying-tool__cost-box .cost-box__price .cost-box__price-now").html(sc));rc.hide()}if("uk"===
siteCode||"au"===siteCode){var nc=!1,vc=$(".pd-buying-price__save"),wc=$(".cost-box__price-save"),xc=$(".pd-buying-price__new-price"),Cc=$(".cost-box__price-now"),Ac=xc.html();"uk"===siteCode&&p.tariffOptionResult.hasComponent&&(xc.html("Upfront Cost : "+Ac),Cc.html("Upfront Cost : "+Ac));p.tariffOptionResult.hasComponent&&p.tradeInResult.hasComponent&&(p.careResult.hasComponent?0>parseInt(c.tariffPrice)+p.careResult.dataSalePrice-p.tradeInResult.dataPrice&&(nc=!0):0>parseInt(c.tariffPrice)-p.tradeInResult.dataPrice&&
(nc=!0));var Lb=$(".hdd02-buying-tool__cost-box");nc?(0<Lb.find(".cost-box__error-message").length?Lb.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'):Lb.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")):Lb.find(".cost-box__error-message").remove();if("uk"===siteCode&&p.tradeInResult.hasComponent)if(0<vc.length)vc.html("Save "+currencyComma(p.tradeInResult.dataPrice,ma)),wc.html("Save "+currencyComma(p.tradeInResult.dataPrice,ma));else{var yc='\x3cdiv class\x3d"pd-buying-price__save"\x3eSave '+currencyComma(p.tradeInResult.dataPrice,ma)+"\x3c/div\x3e",tc='\x3cstrong class\x3d"cost-box__price-save"\x3e\x3cspan class\x3d"hidden"\x3ePrice \x3c/span\x3eSave '+
currencyComma(p.tradeInResult.dataPrice,ma)+"\x3c/strong\x3e";$(".pd-buying-price .pd-buying-price__was").after(yc);$(".hdd02-buying-tool__cost-box .cost-box__price-original").after(tc)}p.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(L);
this.settingRewardsDraw(c)};na.prototype.settingBezelInfo=function(a,c){var m=a.modelCode,g=$(".option-bezelcolor .pd-option-selector");if(0<g.length)for(var p=0;p<g.length;p++){var aa=g.eq(p).attr("data-disabled");g.eq(p).parent().addClass(aa)}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(p=0;p<c.length;p++)a.bezelColorArray.push(c[p]),"dummyCode"==c[0].dataset.bezelmodelcode&&(c[0].dataset.bezelmodelcode=m),a.bezelModelCodeList+=c[p].dataset.bezelmodelcode,a.bezelModelPatternCodeList+=c[p].dataset.bezelmodelpatterncode,p<c.length-1&&(a.bezelModelCodeList+=",",a.bezelModelPatternCodeList+=",");this.bezelModelCodeApiCall(a)}};na.prototype.bezelModelCodeApiCall=function(a){function c(Ia,Ka){var Ea=$("#shopIntegrationFlag").val(),Ha=Ia.bezelModelCodeArray;if("Hybris-new"===Ea)for(Ea=
0;Ea<Ka.length;Ea++)Ia.bezelModelCodeArray.push(Ka[Ea]);else if("Hybris"===Ea||"Hybris-intg"===Ea)for(Ka=Ka.productDatas,Ea=0;Ea<Ia.bezelModelCodeArrayList.length;Ea++)for(var Sa=0;Sa<Ka.length;Sa++)Ia.bezelModelCodeArrayList[Ea]==Ka[Sa].productCode&&Ia.bezelModelCodeArray.push(Ka[Sa]);Ia.selectedBezelColor=Ha[Ia.bezelColorIndex]}var m=$("#storeDomain").val(),g=a.multistoreSiteCd,p=a.bezelModelCodeList,aa=$("#shopIntegrationFlag").val(),L=p.split(","),ma="ca"===g||"ca_fr"===g;a.bezelModelCodeArrayList=
L;L="";L=ta?$("#eppCompanyCode").val():g;var ua="";$("#shopParmLang").val()&&(ua="\x26lang\x3d"+$("#shopParmLang").val());var ja=ta||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};g="\x26country_region\x3d";var xa="";ma&&(xa=getSECACountryRegion(),g+=xa);if("Hybris-new"===aa)$.ajax({url:m+"/tokocommercewebservices/v2/"+L+"/products?productCodes\x3d"+p+"\x26fields\x3dSIMPLE_INFO"+ua,type:"GET",cache:!0,crossDomain:!0,xhrFields:ja,dataType:"json",timeout:2E4,
success:function(Ia,Ka,Ea){200==Ea.status&&c(a,Ia)},error:function(Ia,Ka,Ea){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}});else if("Hybris"===aa||"Hybris-intg"===aa)L=m+"/"+L+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+p,"Y"===a.hybrisJsonYn?$.ajax({url:L,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ia,Ka,Ea){200==Ea.status&&c(a,Ia)},error:function(){},complete:function(){0<
$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}}):ma?$.ajax({url:L+g,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ia,Ka,Ea){200==Ea.status&&c(a,Ia)},error:function(){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}}):$.ajax({url:L,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",
cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Ia,Ka,Ea){200==Ea.status&&c(a,Ia)},error:function(){},complete:function(){0<$("input[id^\x3dpd-color-multi]").length&&$("input[id^\x3dpd-color-multi]")[0].click()}})};na.prototype.settingDeliveryMessage=function(a,c){c=a.drawObj;var m=a.view,g=a.useDeliveryMessage,p=a.deliveryMessage;c.deliveryMessage={hasComponent:!1,deliveryMessage:""};g&&""!==p&&(c.deliveryMessage.hasComponent=!0,c.deliveryMessage.deliveryMessage=
a.deliveryMessage);m.deliveryMessageDraw(c)};na.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)}};na.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:".quick3d.org"});var g=$.cookies.get("guid",{domain:".quick3d.org"});"cn"===m&&(g=$.cookies.get("guid",{domain:".quick3d.org.cn"}));c=$.cookies.get("flpe",{domain:".quick3d.org"});"cn"===m&&(c=$.cookies.get("flpe",{domain:".quick3d.org.cn"}));m={};if(c&&g){m=$("#cck").val();var p=CryptoJS.enc.Utf8.parse(m);m=(CryptoJS.AES.encrypt(""+g,p,{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 aa=m.firstName,L=m.lastName,ma=m.emailAddr;a.giftCard.isGiftCard=!0;a.giftCard.cartGiftCardCode=a.modelCode;a.giftCard.selectedPrice=a.giftCard.minPrice;c=Granite.I18n.get("minPrice{0} maxPrice{1} priceIncrement{2}",[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted,a.giftCard.priceIncrementFormatted]);m=Granite.I18n.get("Please enter only numbers. {0} {1}",
[a.giftCard.minPriceFormatted,a.giftCard.maxPriceFormatted]);$(".pd-select-option--gift-card .text-field-v2__hint").text(c);$(".pd-select-option--gift-card .text-field-v2__text").text(m);null!=g&&""!=g||$(".checkbox-v2").hide();$(document).on("click","#email-checkbox",function(){null!=g&&""!=g&&($("#email-checkbox").is(":checked")?(null!=ma&&ma&&(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=ma,a.giftCard.firstName=aa,a.giftCard.lastName=L,$("#email-address-input").val(ma),$("#first-name-input").val(aa),$("#last-name-input").val(L),$("#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(ja){ja=$("#gift-card-amount-input").val();a.giftCard.inputAmount=ja.replace(/[^0-9]/g,"");$("#gift-card-amount-input").val(a.giftCard.inputAmount)});
$(document).on("focusout","#personalized-message-input",function(ja){a.giftCard.personalizedMessage=$("#personalized-message-input").val()});var ua;$(document).on("focusout","#email-address-input",function(ja){ua=$("#email-address-input").val();/^([0-9a-zA-Z_\.-]+)@([0-9a-zA-Z_-]+)(\.[0-9a-zA-Z_-]+){1,2}$/.test(ua)?(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(ja){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(ja){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()})}};na.prototype.settingDeliveryPickup=function(a,c){if(0<$(".pd-select-option--delivery-pickup").length&&!a.deliveryPickup.isDeliveryPickup){a.deliveryPickup.isDeliveryPickup=!0;var m=a.siteCode;checkEppSite()&&a.isSENA&&(a.blockPickupDisplay="Y");0<$(".pd-select-option--delivery-pickup").length&&((a.categoryTypeCode.startsWith("01")||a.categoryTypeCode.startsWith("08")||a.categoryTypeCode.startsWith("04"))&&"N"==a.blockEddDisplay||
"N"==a.blockPickupDisplay)&&($(".pd-select-option--delivery-pickup").show(),"N"!=a.blockEddDisplay&&$(".pd-select-option--delivery-pickup .pd-delivery-pickup__list .pd-delivery-pickup__item").eq(0).hide(),"N"!=a.blockPickupDisplay&&$(".pd-select-option--delivery-pickup .pd-delivery-pickup__list .pd-delivery-pickup__item").eq(1).hide());$(document).on("click",".pd-delivery-pickup__item-wrap.delivery .pd-delivery-pickup__button .cta, .pd-delivery-pickup__item-wrap.delivery .pd-delivery-pickup__edit-button",
function(){"cn"===m?window.sg.components.pdRddPopup.callRddPopupGrid($(this)):window.sg.components.eddPopup.activePopup($(this))});$(document).on("click",".pd-delivery-pickup__item-wrap.pickup .pd-delivery-pickup__button .cta, .pd-delivery-pickup__item-wrap.pickup .pd-delivery-pickup__edit-button",function(){var g=$("#gmapLatitude").val(),p=$("#gmapLongitude").val();0<$("#pickup-map-canvas").length&&pickupOptionPD.initMap(g,p,"N");window.sg.components.pickupOptionsPopup.showPopup($(this))})}};na.prototype.settingRecommendation=
function(a,c){c=a.modelCode;var m=a.siteCode,g=a.notUseRecommendation,p=a.notEppUseRecommendation;!a.useRecommendation||g.includes(m)||ta&&p.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())};na.prototype.settingPrePurchase=
function(a,c){var m=a.siteCode,g=c.buyingToolOptPrePurchase.find(".block1_learnMore");c=c.buyingToolOptPrePurchase.find(".block2_learnMore");var p="b2c_"+a.prePurchaseMainCateCode;ta||"ca"!=m&&"ca_fr"!=m||"08"!==a.categoryTypeCode.slice(0,2)?ta||"uk"!=m||(a=a.categoryTypeCode.slice(0,4),"0807"===a?p="b2c_vc":"0808"===a?p="b2c_ck":"0809"===a?p="b2c_dw":"0811"===a&&(p="b2c_mc")):p="b2c_da";a=Granite.I18n.getVar("Block1 Link",p);p=Granite.I18n.getVar("Block2 Link",p);g.attr("href",a);c.attr("href",p)};
na.prototype.displayStockStatus=function(a,c){c=c.buyingTool;var m=a.stockLevelStatus.toLowerCase(),g="";g+='\x3cspan class\x3d"pd-in-stock-icon"\x3e';g+='  \x3cspan class\x3d"s-stock-icon"\x3e';g+='    \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e';g+='      \x3cuse xlink:href\x3d"#confirmation-result-bold" href\x3d"#confirmation-result-bold"\x3e\x3c/use\x3e';g+="    \x3c/svg\x3e";g+="  \x3c/span\x3e";g+=Granite.I18n.get("IN STOCK");g+="\x3c/span\x3e";var p="";p+='\x3cspan class\x3d"pd-out-stock-icon"\x3e';
p+='  \x3cspan class\x3d"s-stock-icon"\x3e';p+='    \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e';p+='      \x3cuse xlink:href\x3d"#cancel-bold" href\x3d"#cancel-bold"\x3e\x3c/use\x3e';p+="    \x3c/svg\x3e";p+="  \x3c/span\x3e";p+=Granite.I18n.get("Out Of Stock");p+="\x3c/span\x3e";var aa="";aa+='  \x3cspan class\x3d"pd-instock"\x3e';aa+=Granite.I18n.get("IN STOCK");aa+="\x3c/span\x3e";var L="";L+='  \x3cspan class\x3d"pd-outofstock"\x3e';L+=Granite.I18n.get("Out Of Stock");
L+="\x3c/span\x3e";$(c).find(".pd-select-option__item").each(function(){var ma=$(this).find(".option-input"),ua=ma.attr("name");if(("pd-size"===ua||"pd-color"===ua)&&ma.is(":checked"))return $(this).siblings().find(".pd-in-stock-icon,.pd-out-stock-icon,.pd-instock,.pd-outofstock").remove(),"instock"==m?(ma="pd-size"===ua?g:aa)&&0===$(this).find(".pd-instock, .pd-in-stock-icon").length&&$(this).append(ma):("outofstock"==m||"noorder"==m)&&(ma="pd-size"===ua?p:L)&&0===$(this).find(".pd-outofstock, .pd-out-stock-icon").length&&
$(this).append(ma),!1})};na.prototype.changeUsCta=function(a,c){c=a.util;var m=a.pfAllUrl,g=a.drawObj,p=g.price;"us"===a.siteCode&&g.delivery.errorMessage&&(p.containedAttr=c.getAttrCta(Granite.I18n.get("SEE SIMILAR PRODUCTS IN STOCK"),m,"_self","",{}),p.anchorNaviAttr=c.getAttrCta(Granite.I18n.get("SEE SIMILAR PRODUCTS IN STOCK"),m,"_self","",{}))};na.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"})};na.prototype.settingForBusiness=function(a,c){c=a.drawObj.price;var m=a.util,g=a.siteCode;a.hasEbtButtonUse&&(c.outlinedAttr=m.getAttrCta(Granite.I18n.get("For Business"),"javascript:;","_self","tg-for-business",{ctaType:"for-business"}),c.containedAttr.class&&-1<c.containedAttr.class.indexOf("js-cta-buy")&&("br"===g?c.anchorNaviAttr={}:c.wtbAttr=$.extend({},
c.wtbAtt,c.containedAttr),c.containedAttr={}))};na.prototype.settingPersonalizeTvCta=function(a,c){if(!a.setPersonalizeTv&&a.hasPersonalizeTv){a.setPersonalizeTv=!0;var m=a.modelCode;$.ajax({url:"https://vdapi.quick3d.org/tvs/tvpersonalize/api/tvapps/appserver/ispersonalizetv",type:"GET",dataType:"text",data:{modelCode:m},async:!1,xhrFields:ta?{withCredentials:!0}:{},contentType:"application/json",success:function(g){"Available"==g?$.ajax({url:"/"+a.siteCode+"/tvs/personalize-my-tv/",type:"GET",datatype:"json",
data:{sku:m,type:"apps"},success:function(p,aa,L){"200"==L.status&&$("#personalizeMyTv").show()},error:function(p,aa,L){}}):$("#personalizeMyTv").hide()},error:function(g,p,aa){}})}};na.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")};
na.prototype.checkingDeliveryCode=function(a,c){var m=a.util,g=a.view,p=a.drawObj,aa=a.siteCode,L=a.pdProductType,ma=c.buyingToolOptDelivery,ua=$(ma.find("#delivery-zipcode")).val();c=m.hasDeliveryResult(a,c);m=a.pdPackageYn;var ja=!0;"in"!==aa||"PHONE"===L||"10020000"===a.categoryTypeCode||m||(c?a.checkValid&&(p.delivery.errorMessage=null,$(ma).find(".text-field-v2__text.error").hide(),g.deliveryDraw(p)):(isNotEmpty(ua)||(aa=Granite.I18n.get("Enter your zipcode"),a.checkValid&&(p.delivery.errorMessage=
aa,p.delivery.inputAttr.value=ua,g.deliveryDraw(p))),a.checkValid&&($(ma).find(".text-field-v2__text.error").show(),$(ma).find("#delivery-zipcode").focus().val("").val(ua),$(ma).find(".pd-select-option__tooltip").hide(),$(".option-result.result-delivery").hide()),ja=!1));return ja};na.prototype.checkWarrantyVd=function(a){if("pl"!==a.siteCode)return!0;var c=$("#tempTitle").val(),m,g;if(!(null==a?0:null==(m=a.drawObj)?0:null==(g=m.warrantyVd)?0:g.hasComponent)||"page-standard-pd"!==c)return!0;var p,
aa;if(null==a?0:null==(p=a.drawObj)?0:null==(aa=p.warrantyVdResult)?0:aa.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};na.prototype.checkingbelo4dCare=function(a){var c=$("#tempTitle").val(),m=!0;a.belo4dCareFlag&&"page-buying-pd"==c&&(null!=a.drawObj.careResult.dataModelCode&&""!=a.drawObj.careResult.dataModelCode?a.checkValid&&$(".option-care").find(".checkingbelo4dCare").hasClass("is-show")&&$(".option-care").find(".checkingbelo4dCare").removeClass("is-show"):(m=!1,a.checkValid&&($(".option-care").find(".checkingbelo4dCare").addClass("is-show"),document.querySelector(".option-care").scrollIntoView({block:"center"}))));
return m};na.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};na.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};na.prototype.settingCommonPopupTagging=function(a,c,m){var g=m="";"combo"===a?(m="header(pim)_offer option:bundle offer-"+
c.pageTrackPd+"-delete-confirm",g="bundle offer:delete option:"):"tradeIn"===a?(m="header(pim)_trade in-"+c.pageTrackPd+"-delete-confirm",g="trade in:delete option:",c.isMultiTradeIn&&(m="header(pim)_trade in-"+c.pageTrackPd+"-option_click"+Number(c.checkedIndex)+1)):"care"===a?(m="header(pim)_service option selector:belo4d care-"+c.pageTrackPd+"-delete confirm alert-option click1",g="belo4d care:delete option:"):"upgrade"===a?(m="header(pim)_service option selector-"+c.pageTrackPd+"}-cta-link",
g="upgrade program:delete option:"):"tariffOption"===a?(m="header(pim)_service option selector tariff-"+c.pageTrackPd+"}-popup-button",g="tariff:delete option:"):"forever"===a?(m="header(pim)_service option selector galaxy forever-"+c.pageTrackPd+"}-popup-button",g="galaxy forever:delete option:"):"assured"===a&&(m="header(pim)_service option selector assured buy back-"+c.pageTrackPd+"}-popup-button",g="assured buy back:delete option:");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--outlined").attr("an-tr",
m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",g+"no");$(".confirm-popup .confirm-popup__cta-wrap .cta.cta--contained").attr("an-tr",m).attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la",g+"yes")};na.prototype.settingWishlistTagging=function(a,c){a=a.pageTrackPd;c=$(c.buyingToolInfoWishlist.find(".pd-wishlist-cta"));var m=$(".pd-header-gallery").find(".pd-info__wishlist .pd-wishlist-cta"),g=!1;navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i)&&
(g=!0);if(c&&0<c.length){var p="hdd02_pdp header-"+a+"-wishlist add/ remove-account3",aa="",L=c.attr("class")?c.attr("class"):"";"Y"===$("#typeux2025").val()&&(p="",-1<L.indexOf("tg-add-wishlist")?p="add":-1<L.indexOf("tg-remove-wishlist")&&(p="remove"),p=g?"hdd02_gallery-"+a+"-wishlist "+p+"-account3":"hdd02_product info.-"+a+"-wishlist "+p+"-account3");-1<L.indexOf("tg-add-wishlist")?aa="add to wishlist":-1<L.indexOf("tg-remove-wishlist")&&(aa="remove from wishlist");c.attr("an-tr",p).attr("an-ca",
"account").attr("an-ac","wishlist").attr("an-la",aa);m.attr("an-tr",p).attr("an-ca","account").attr("an-ac","wishlist").attr("an-la",aa)}};na.prototype.settingCtaTagging=function(a,c){var m="Y"===$("#typeux2025").val()?!0:!1,g="anchorNavigationPriceBar .pd-buying-price__cta .cta";m&&(g="anchorNavigationPriceBar .pdd39-anchor-nav__cta .cta");var p=$("#"+g);g=c.buyingToolPriceBar.find(".cta");var aa=a.pageTrackPd,L=[a.modelCode],ma=[a.modelName],ua=[a.displayName],ja=[a.proudctPriceInfo.orignalPrice],
xa=[a.proudctPriceInfo.salePrice],Ia=[a.pvitype.toLowerCase()],Ka=[a.pvisubtype.toLowerCase()],Ea=[a.pimsubtype.toLowerCase()],Ha=["1"],Sa=c.buyingToolGlallery.find("li img").attr("src");if(a.util.hasTradeInResult(a,c)){var Ga=a.ceTradeUpPopup.isEnabled?"trade-up":"trade-in";L.push(Ga);ma.push(Ga);ua.push(Ga);Ia.push("shop program");Ka.push(Ga);Ea.push(Ga);ja.push("0");xa.push("0");Ha.push("0")}a.util.hasUpgradeResult(a,c)&&(L.push("upgrade"),ma.push("upgrade"),ua.push("upgrade"),Ia.push("shop program"),
Ka.push("upgrade"),Ea.push("upgrade"),ja.push("0"),xa.push("0"),Ha.push("0"));a.util.hasCareResult(a,c)&&(L.push(a.drawObj.careResult.dataModelCode),ma.push(a.drawObj.careResult.dataModelCode),ua.push(a.drawObj.careResult.dataModelCode),ja.push(a.drawObj.careResult.dataPrice),xa.push(a.drawObj.careResult.dataSalePrice),Ia.push("shop program"),Ka.push("belo4d care"),Ea.push("insurance"),Ha.push("1"));a.util.hasWarrantyResult(a,c)&&(L.push(a.drawObj.warrantyResult.dataModelCode),ma.push(a.drawObj.warrantyResult.dataModelCode),
ua.push(a.drawObj.warrantyResult.dataModelCode),ja.push(a.drawObj.warrantyResult.dataPrice),xa.push(a.drawObj.warrantyResult.dataSalePrice),Ia.push("shop program"),Ka.push("belo4d care"),Ea.push("warranty"),Ha.push("1"));a.util.hasTariffOptionResult(a,c)&&(L.push(a.drawObj.tariffOptionResult.dataModelCode),ma.push(a.drawObj.tariffOptionResult.dataModelCode),ua.push(a.drawObj.tariffOptionResult.dataModelCode),Ia.push("shop program"),Ka.push("tariff"),Ea.push("tariff"),ja.push("0"),xa.push("0"),Ha.push("0"));
a.util.hasForeverResult(a,c)&&(L.push("forever"),ma.push("forever"),ua.push("forever"),Ia.push("shop program"),Ka.push("forever"),Ea.push("forever"),ja.push(a.drawObj.galaxyForeverResult.dataPrice),xa.push(a.drawObj.galaxyForeverResult.dataPrice),Ha.push("1"));a.util.hasBogo(a,c)&&(L.push(a.drawObj.offer.bogo.item.modelCode),ma.push(a.drawObj.offer.bogo.item.modelName),ua.push(a.drawObj.offer.bogo.item.displayName),a.drawObj.offer.bogo.item.price.price&&(ja.push(1*Number(a.drawObj.offer.bogo.item.price.price)),
xa.push("0")),Ia.push(a.drawObj.offer.bogo.item.pviTypeName),Ka.push(a.drawObj.offer.bogo.item.pviSubtypeName),Ea.push(a.drawObj.offer.bogo.item.categorySubTypeEngName),Ha.push("1"));if(a.util.hasGiftResult(a,c)&&(Ga=a.drawObj.offer.gift.item.bundleList)&&0<Ga.length)for(var pa in Ga){var Oa=Ga[pa];L.push(Oa.dataModelCode);ma.push(Oa.dataModelName);ua.push(Oa.dataDisplayName);ja.push(Oa.dataPrice);xa.push(Oa.dataSalePrice);Ia.push(Oa.pviTypeName);Ka.push(Oa.pviSubtypeName);Ea.push(Oa.categorySubTypeEngName);
Ha.push("1")}if(a.util.hasComboResult(a,c)&&a.drawObj.offer.combo&&0<a.drawObj.offer.combo.length)for(var Ca in a.drawObj.offer.combo)if((pa=a.drawObj.offer.combo[Ca].item.bundleList)&&0<pa.length)for(var Pa in pa)Ga=pa[Pa],L.push(Ga.dataModelCode),ma.push(Ga.dataModelName),ua.push(Ga.dataDisplayName),ja.push(Ga.dataPrice),xa.push(Ga.dataSalePrice),Ia.push(Ga.pviTypeName),Ka.push(Ga.pviSubtypeName),Ea.push(Ga.categorySubTypeEngName),Ha.push("1");a.util.hasAssuredBuyBackResultResult(a,c)&&(L.push(a.drawObj.assuredBuyBackResult.dataSku),
ma.push(a.drawObj.assuredBuyBackResult.dataModelName),ua.push(a.drawObj.assuredBuyBackResult.displayModelName),Ia.push("shop program"),Ka.push("galaxy assured"),Ea.push("galaxy assured"),ja.push(a.drawObj.assuredBuyBackResult.dataPrice),xa.push(a.drawObj.assuredBuyBackResult.dataSalePrice),Ha.push("1"));a.util.hasNewAssuredBuyBackResult(a,c)&&(L.push(a.drawObj.newAssuredBuyBackResult.dataModelCode),ma.push(a.drawObj.newAssuredBuyBackResult.dataModelName),ua.push(a.drawObj.newAssuredBuyBackResult.dataDisplayName),
Ia.push("shop program"),Ka.push("galaxy assured"),Ea.push("galaxy assured"),ja.push(a.drawObj.newAssuredBuyBackResult.dataPrice),xa.push(a.drawObj.newAssuredBuyBackResult.dataPrice),Ha.push("1"));if((Ca=a.embedAddonSelected)&&0<Ca.length)for(Ca=$jscomp.makeIterator(Ca),Pa=Ca.next();!Pa.done;Pa=Ca.next())Pa=Pa.value,L.push(Pa.modelCode),ma.push(Pa.modelName),ua.push(Pa.name),Ia.push(Pa.pviType),Ka.push(Pa.pviSubtype),Ea.push(Pa.categorySubType?Pa.categorySubType.toLowerCase():""),ja.push(Pa.revenue),
xa.push(Pa.finalPriceValue),Ha.push("1");L=L.join(",");ua=ua.join(";");ma=ma.join(",");ja=ja.join(",");Ia=Ia.join(",");Ka=Ka.join(",");Ea=Ea.join(",");xa=xa.join(",");Ha=Ha.join(",");Ca=$("section.tariff-popup .tariff-popup__btn-submit");"uk"===a.siteCode&&0<Ca.length&&(Ca.attr("data-modelcode",L),Ca.attr("data-modeldisplay",ua),Ca.attr("data-modelname",ma),Ca.attr("data-modelrevenue",ja),Ca.attr("data-modelprice",ja),Ca.attr("data-pvitype",Ia),Ca.attr("data-pvisubtype",Ka),Ca.attr("data-pimsubtype",
Ea),Ca.attr("data-discountprice",xa),Ca.attr("data-modelqty",Ha),a.util.hasTariffOptionResult(a,c)||(Ca.attr("data-modelrevenue",Ca.attr("data-modelrevenue")+",0"),Ca.attr("data-modelprice",Ca.attr("data-modelprice")+",0"),Ca.attr("data-discountprice",Ca.attr("data-discountprice")+",0"),Ca.attr("data-pvitype",Ca.attr("data-pvitype")+",shop program"),Ca.attr("data-pvisubtype",Ca.attr("data-pvisubtype")+",tariff"),Ca.attr("data-pimsubtype",Ca.attr("data-pimsubtype")+",tariff"),Ca.attr("data-modelqty",
Ca.attr("data-modelqty")+",0")));if(p&&0<p.length){var Fa=Ga=pa=Pa="";Ca="";Oa=!1;var Na=p.attr("class")?p.attr("class"):"",Ta="pdd01_anchor nav";m?(Ta="pdd39_anchor nav v3",-1<Na.indexOf("configuratorUse-y")?""!==a.ctaEngText&&null!==a.ctaEngText&&(Pa=Ta+"-"+aa+"-cta-buy page",pa="buy cta",Fa=Ga=a.ctaEngText):-1<Na.indexOf("tg-continue")?(Pa=Ta+"-"+aa+"-cta to cart-ecommerce2",pa="ecommerce",Ga="addToCart",Fa="anchor navi:buy now",Oa=!0):-1<Na.indexOf("tg-wtb")?(Pa=Ta+"-"+aa+"-where to buy-buy_cta2",
pa="buy cta",Ga="where to buy",Fa="anchor navi:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(Pa=Ta+"-"+aa+"-cta to cart-ecommerce1",pa="ecommerce",Ga="addToCart",Ca=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?"br"===a.siteCode?(pa="buy cta",Fa=Ga="buy now"):Fa="anchor navi:add to cart":-1<Na.indexOf("tg-checkout")&&(Fa="anchor navi:checkout",-1<Na.indexOf("tg-between")&&(Fa="anchor navi:lease")),Oa=!0):-1<Na.indexOf("tg-pre-order")?
(Pa=Ta+"-"+aa+"-cta to cart-ecommerce1",pa="ecommerce",Ga="addToCart",Fa="anchor navi:pre-order",Oa=!0):-1<Na.indexOf("tg-out-stock")?(Pa=Ta+"-"+aa+"-notify me-buy_cta2",pa="buy cta",Ga="stock alert",Fa="anchor navi:notify me",p.attr("data-antr",Ta+"-"+aa+"-cta-stock alert popup")):-1<Na.indexOf("tg-subscription")?(Fa=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",
Pa=Ta+"-"+aa+"-cta-subscription",pa="buy cta",Ga="buy with subscription:carrier:"+Fa,Fa="buy with subscription:carrier:"+Fa):-1<Na.indexOf("tg-buy-now")?(Pa=Ta+"-"+aa+"-cta to cart-ecommerce1",pa="ecommerce",Ga="addToCart",Fa="anchor navi:buy now"):-1<Na.indexOf("tg-learn-more")&&(Pa=Ta+"-"+aa+"-cta-learn more",pa="product click",Ga="pd buying tool",Fa="learn more click")):-1<Na.indexOf("configuratorUse-y")?""!==a.ctaEngText&&null!==a.ctaEngText&&(Pa=Ta+"-"+aa+"-cta-buy page",pa="buy cta",Fa=Ga=a.ctaEngText):
-1<Na.indexOf("tg-continue")?(Pa=Ta+"-"+aa+"-cta-cart",pa="ecommerce",Ga="addToCart",Fa="secondary navi:add to cart",Oa=!0):-1<Na.indexOf("tg-wtb")?(Pa=Ta+"-"+aa+"-where to buy-buy_cta2",pa="buy cta",Ga="where to buy",Fa="anchor navi:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(Pa=Ta+"-"+aa+"-cta-cart page",pa="ecommerce",Ga="addToCart",Ca=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?("br"===a.siteCode?(pa="buy cta",Fa=Ga="buy now"):
Fa="secondary navi:add to cart",Oa="",$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(Oa=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")),Oa=Oa.substring(0,Oa.indexOf("?",0)),p.attr("data-imageurl",Oa)):-1<Na.indexOf("tg-checkout")&&(Fa="secondary navi:checkout",-1<Na.indexOf("tg-between")&&(Fa="secondary navi:lease")),Oa=!0):-1<Na.indexOf("tg-pre-order")?(Pa=Ta+"-"+aa+"-cta-cart page",pa="ecommerce",Ga="addToCart",Fa="secondary navi:pre order",
Oa=!0):-1<Na.indexOf("tg-out-stock")?(Pa=Ta+"-"+aa+"-notify me-buy_cta2",pa="buy cta",Ga="stock alert",Fa="anchor navi:notify me",p.attr("data-antr",Ta+"-"+aa+"-cta-stock alert popup")):-1<Na.indexOf("tg-subscription")?(Fa=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",Pa=Ta+"-"+aa+"-cta-subscription",pa="buy cta",Ga="buy with subscription:carrier:"+Fa,Fa="buy with subscription:carrier:"+
Fa):-1<Na.indexOf("tg-buy-now")?(Pa=Ta+"-"+aa+"-cta-buy page",pa="buy cta",Fa=Ga="buy now"):-1<Na.indexOf("tg-learn-more")&&(Pa=Ta+"-"+aa+"-cta-learn more",pa="product click",Ga="pd buying tool",Fa="learn more click");p.attr("an-tr",Pa).attr("an-ca",pa).attr("an-ac",Ga).attr("an-la",Fa);Pa={anTr:Pa,anCa:pa,anAc:Ga,anLa:Fa};"Y"===$("#thirdPartyPrdYN").val()&&(digitalData.product.iot_sid&&p.attr("data-iot-sid",digitalData.product.iot_sid),digitalData.product.iot_shgroup&&p.attr("data-iot-shgroup",digitalData.product.iot_shgroup),
digitalData.product.iot_brandname&&p.attr("data-iot-brandname",digitalData.product.iot_brandname));Ca&&p.attr("aria-label",Ca);xa&&(p.attr("data-discountprice",xa),digitalData.product.model_price=xa);Oa&&(L&&p.attr("data-modelcode",L),ua&&p.attr("data-modeldisplay",ua),ma&&p.attr("data-modelname",ma),ja&&p.attr("data-modelrevenue",ja),ja&&(p.attr("data-modelprice",ja),digitalData.product.list_price=ja),Ia&&p.attr("data-pvitype",Ia),Ka&&p.attr("data-pvisubtype",Ka),Ea&&p.attr("data-pimsubtype",Ea),
Ha&&p.attr("data-modelqty",Ha),Sa&&(p.attr("data-imageurl",Sa),g.attr("data-imageurl",Sa)));a.drawObj.price.anchorNaviAttr=$.extend(a.drawObj.price.anchorNaviAttr,Pa)}if(g&&0<g.length)for(p="header(pim)_price bar",(Sa="Y"===$("#typeux2025").val()?!0:!1)&&(p="hdd02_summary, get stock alert pop_up"),Ca=0;Ca<g.length;Ca++){Pa=$(g.get(Ca));Na=Pa.attr("class")?Pa.attr("class"):"";var Ua=Oa=Ga=pa="";Ta="";Fa=!1;Sa?-1<Na.indexOf("tg-continue")?(pa=p+"-"+aa+"-cta to cart-ecommerce2",Ga="ecommerce",Oa="addToCart",
Ua="pd buying tool:buy now",Fa=!0):-1<Na.indexOf("tg-wtb")?(pa=p+"-"+aa+"-where to buy-buy_cta3",Ga="buy cta",Oa="where to buy",Ua="pd buying tool:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(pa=p+"-"+aa+"-cta to cart-ecommerce1",Ga="ecommerce",Oa="addToCart",Ta=Granite.I18n.get("Add to cart")+":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?"br"===a.siteCode?(Ga="buy cta",Ua=Oa="buy now"):Ua="pd buying tool:add to cart":-1<Na.indexOf("tg-checkout")&&(Ua="buying tool:checkout",
-1<Na.indexOf("tg-between")&&(Ua="buying tool:lease")),Fa=!0):-1<Na.indexOf("tg-pre-order")?(pa=p+"-"+aa+"-cta to cart-ecommerce1",Ga="ecommerce",Oa="addToCart",Ua="pd buying tool:pre order",Fa=!0):-1<Na.indexOf("tg-out-stock")?(pa=p+"-"+aa+"-button-alert",Ga="buy cta",Oa="stock alert",Ua="pd buying tool:stock alert",Pa.attr("data-antr",p+"-"+aa+"-text-alert")):-1<Na.indexOf("tg-subscription")?(Na=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():
"",pa=p+"-"+aa+"-button-subscription",Ga="buy cta",Oa="buy with subscription:carrier:"+Na,Ua="pd buying tool:"+Na):-1<Na.indexOf("tg-buy-now")?(pa=p+"-"+aa+"-cta to cart-ecommerce1",Ga="ecommerce",Oa="addToCart",Ua="pd buying tool:buy now",Fa=!0):-1<Na.indexOf("tg-learn-more")?(pa=p+"-"+aa+"-cta-learn more",Ga="product click",Oa="pd buying tool",Ua="learn more click"):-1<Na.indexOf("tg-for-business")?(pa=p+"-"+aa+"-cta-forbusiness",Ga="buy cta",Oa="for business",Ua="pd buying tool:for business"):
-1<Na.indexOf("tg-bespoke")&&(pa=p+"-"+aa+"-cta-bespoke",Ga="content click",Oa="feature",Ua="pd buying tool:customize yours"):-1<Na.indexOf("tg-continue")?(pa=p+"-"+aa+"-button-text",Ga="ecommerce",Oa="addToCart",Ua="pd buying tool:add to cart",Fa=!0):-1<Na.indexOf("tg-wtb")?(pa=p+"-"+aa+"-button-where to buy",Ga="buy cta",Oa="where to buy",Ua="pd buying tool:where to buy"):-1<Na.indexOf("tg-add-to-cart")||-1<Na.indexOf("tg-checkout")?(pa=p+"-"+aa+"-button-cart",Ga="ecommerce",Oa="addToCart",Ta=Granite.I18n.get("Add to cart")+
":"+a.displayName,-1<Na.indexOf("tg-add-to-cart")?"br"===a.siteCode?(Ga="buy cta",Ua=Oa="buy now"):Ua="pd buying tool:add to cart":-1<Na.indexOf("tg-checkout")&&(Ua="buying tool:checkout",-1<Na.indexOf("tg-between")&&(Ua="buying tool:lease")),Fa=!0):-1<Na.indexOf("tg-pre-order")?(pa=p+"-"+aa+"-buy-cart",Ga="ecommerce",Oa="addToCart",Ua="pd buying tool:pre order",Fa=!0):-1<Na.indexOf("tg-out-stock")?(pa=p+"-"+aa+"-button-alert",Ga="buy cta",Oa="stock alert",Ua="pd buying tool:stock alert",Pa.attr("data-antr",
p+"-"+aa+"-text-alert")):-1<Na.indexOf("tg-subscription")?(Na=c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name")?c.buyingToolOptTariffPlan.find(".option-input.this-checked").attr("data-eng-name").toLowerCase():"",pa=p+"-"+aa+"-button-subscription",Ga="buy cta",Oa="buy with subscription:carrier:"+Na,Ua="pd buying tool:"+Na):-1<Na.indexOf("tg-buy-now")?(pa=p+"-"+aa+"-buy-cart",Ga="ecommerce",Oa="addToCart",Ua="pd buying tool:buy now",Fa=!0):-1<Na.indexOf("tg-learn-more")?
(pa=p+"-"+aa+"-cta-learn more",Ga="product click",Oa="pd buying tool",Ua="learn more click"):-1<Na.indexOf("tg-for-business")?(pa=p+"-"+aa+"-cta-forbusiness",Ga="buy cta",Oa="for business",Ua="pd buying tool:for business"):-1<Na.indexOf("tg-bespoke")&&(pa=p+"-"+aa+"-cta-bespoke",Ga="content click",Oa="feature",Ua="pd buying tool:customize yours");Pa.attr("an-tr",pa).attr("an-ca",Ga).attr("an-ac",Oa).attr("an-la",Ua);Ta&&Pa.attr("aria-label",Ta);xa&&Pa.attr("data-discountprice",xa);Fa&&(L&&Pa.attr("data-modelcode",
L),ua&&Pa.attr("data-modeldisplay",ua),ma&&Pa.attr("data-modelname",ma),ja&&Pa.attr("data-modelrevenue",ja),ja&&Pa.attr("data-modelprice",ja),Ia&&Pa.attr("data-pvitype",Ia),Ka&&Pa.attr("data-pvisubtype",Ka),Ea&&Pa.attr("data-pimsubtype",Ea),Ha&&Pa.attr("data-modelqty",Ha));this.thirdPartyTagging(a,c,Pa)}ia.isEnabled()&&(ia.$ui.find(".pd-buying-price .pd-buying-price__badge.mobile").hide(),1<ia.$ui.find(".pd-buying-price__badge.mobile").length&&ia.$ui.find(".pd-buying-price__badge.mobile").eq(1).remove(),
m&&ia.$mo&&0<ia.$mo.length&&ia.$mo.priceSection&&0<ia.$mo.priceSection.length&&ia.resetMobilePriceSection())};na.prototype.thirdPartyTagging=function(a,c,m){a=$("#thirdPartyPrdYN").val();var g=digitalData.product.iot_sid,p=digitalData.product.iot_shgroup,aa=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(L){0<L.length&&(g&&L.attr("data-iot-sid",g),p&&L.attr("data-iot-shgroup",p),aa&&L.attr("data-iot-brandname",aa))}))};na.prototype.settingBezelOptionDraw=function(a,c){if(a.useBezelOptionDraw&&(a.categoryTypeCode.startsWith("04")||a.categoryTypeCode.startsWith("07"))){var m=a.drawObj,g=a.view;m.bezelOption={hasComponent:0<a.noneTypeList.length||0<a.modernTypeList.length||0<a.beveledTypeList.length||0<a.freestyleList.length,sellingWithBazel:a.sellingWithBazel,noneSellingWithBazel:!a.sellingWithBazel,
bezelImageClass:a.bezelImageClass,title:null,description:null,noneType:0<a.noneTypeList.length&&0==a.modernTypeList.length&&0==a.beveledTypeList.length,modernType:0<a.modernTypeList.length,beveledType:0<a.beveledTypeList.length,bezel:0<a.noneTypeList.length||0<a.modernTypeList.length||0<a.beveledTypeList.length,freestyle:0<a.freestyleList.length,noneTypeList:a.noneTypeList,modernTypeList:a.modernTypeList,beveledTypeList:a.beveledTypeList,freestyleList:a.freestyleList};g.bezelOptionDraw(m);this.settingBezelInfo(a,
c)}};na.prototype.settingTradeInDraw=function(a,c,m,g){var p=c.util,aa=c.tradeInUrl,L=c.siteCode,ma=c.tradeinText,ua=c.drawObj,ja=c.apiFlag,xa=c.view,Ia=c.priceCurrency,Ka=c.isGPv2AndHyIntg,Ea=c.isHybrisSplitPD,Ha=c.isHybrisSplitPDTradeIn,Sa=c.tradeInType,Ga=c.promotionSalesPitch,pa=2<$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,Oa=!1,Ca="",Pa=!1,Fa=0;a&&(void 0!==a.maxDiscount&&(Fa=a.maxDiscount),!0===a.directOutLink?(Oa=!0,Pa=!1):Pa=!0);var Na=
"",Ta=!1,Ua=!0,Z="",Ba="_self",la="",wa="javascript:;",Da={};Da={};Ca={};var ya={},Ja="";ya="";$("#categorySubTypeCode").val();var La="hr"===L||"si"===L;if("in"===L||"fr"===L)Fa=c.tradeinSaveValue;if(g&&(Ka||Ea&&Ha)){Z=ma;if("pt"===L||"es"===L||"th"===L||"se"===L||"no"===L||"dk"===L||"fi"===L||"sk"===L||"cz"===L)Fa=0;if("th"==L||"at"==L)Z=Granite.I18n.get("TRADE-IN Description");if(Fa&&0<Fa){var Ma="be"==L||"be_fr"==L||"nl"==L?currencyCommaExcep(Fa,Ia):"jp"==L?currencyComma(parseFloat(Fa),Ia):currencyComma(Fa,
Ia);Ja=Granite.I18n.get("Save up to")+" "+Ma;if("co"===L)Ja=Granite.I18n.get("Save up to");else if("hu"===L||"at"===L||"it"===L||"my"===L)Ja="";ya=null;Na=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Fa,Ia));"co"===L&&ta&&(Ca="epp_"+c.categoryTypeCode,Na=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",null,"01010000"===c.categoryTypeCode||"01020000"===c.categoryTypeCode?Ca:"epp"))}else Na=Granite.I18n.get("TRADE-IN");aa&&(Ba="_blank",
wa=aa,la=Granite.I18n.get("Learn more"));Ca={text:Granite.I18n.get("YES"),eventType:"tradein",layerTarget:"tradeInPopup",subText:Ja,isDirectLink:Oa,isPopup:Pa};ya={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",subText:ya,eventType:"tradein"};if(a.withCeTradeUpPopup)Fa=a.maxDiscount||0,Oa=currencyComma(Fa,Ia),aa="b2c_"+c.ceTradeUpPopup.productCategoryGroup,Z=c.ceTradeUpPopup.productCategoryMainType,"ph"!==L||"rf"!==Z&&"wm"!==Z&&"ac"!==Z||(aa="b2c_"+Z),"at"!==L||"rf"!==Z&&"wm"!==Z&&"vc"!==
Z||(aa="b2c_"+Z),"bg"===L&&(Z=a.tradeupCurrency,Oa=currencyComma(Fa,Z),Fa="eur"===Z.toLowerCase()?d(Fa):l(Fa),Oa=Oa+" / "+Fa),Na=Granite.I18n.get('Want up to "{0}" off? Recycle your old device for an instant discount',[Oa],aa),Z="",CeTradeUpPopup.config.view.useServiceDescription&&(Z=Granite.I18n.getVar("Trade-up service description",aa),"th"!==L||"b2c_vd"!==aa&&"b2c_mon"!==aa||(Z=Granite.I18n.get("Trade-up service description",[Oa],aa))),Ca.subText="",CeTradeUpPopup.config.view.showDiscountAmount.inYesCta&&
(Ca.subText=Granite.I18n.get('(Save up to "{0}")',[Oa],aa)),Ca.text=Granite.I18n.getVar("Yes",aa),ya.text=Granite.I18n.getVar("No",aa),a.learnMoreOutlink?(wa=a.learnMoreOutlink,Ba="_blank"):(wa="javascript:;",Ba="_self"),la=Granite.I18n.get("Learn more");else if(-1<ja.indexOf("GPv2"))if("in"===L&&"CE"!==Sa)Na=Granite.I18n.get("Exchange your device"),Ga&&(Z="Exchange any product and get benefits up to "+currencyComma(Ga,Ia)+"*",Ja=Granite.I18n.get("Save up to")+" "+currencyComma(Ga,Ia)),Ca={"class":"trade-in-exchange",
eventType:"exchange",text:Granite.I18n.get("YES"),subText:Ja,layerTarget:"instantExchangePopupHubble",isDirectLink:Oa,isPopup:!0},ya={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},la=wa=Ba="";else if("in"===L&&"CE"===Sa)Na="Exchange",Z="",Ga&&(Z="Exchange any product and get benefits up to "+currencyComma(Ga,Ia)+"*",Ja=Granite.I18n.get("Save up to")+" "+currencyComma(Ga,Ia)),Ca={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:Ja,
layerTarget:"sielTradeInPopup",isDirectLink:Oa,isPopup:!0},ya={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},la=wa=Ba="",Ta=!0,Ua=!1;else if("id"===L)Z=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."),la=wa=Ba="";else{if("ae"===L||"ae_ar"===L)wa="javascript:;",la=Granite.I18n.get("Learn more"),Da.layerTarget="tradeInLearnMorePopup",
Z=Granite.I18n.get("Go to belo4dtradein.ae, evaluate the old device and receive the Trade in code.")}else if(Ha&&"SplitPD TradeIn Description"!==Granite.I18n.get("SplitPD TradeIn Description")&&(Z=Granite.I18n.get("SplitPD TradeIn Description")),"ru"===L||"za"===L)wa="javascript:;",la=Granite.I18n.get("Learn more"),Ba="_self",Da.layerTarget="tradeInLearnMorePopup","za"===L&&(Ca.text=Granite.I18n.get("Yes, please"),ya.text=Granite.I18n.get("No, thanks"));else if("nz"===L)wa="https://www.quick3d.org/nz/galaxytradein",
la=Granite.I18n.get("Learn more"),Ba="_blank",Z=Granite.I18n.get("Only devices with a quoted trade-in price that is less than the price of the device that you intend to buy are available for instant trade-in");else if("ee"===L)wa="https://www.quick3d.org/ee/tagasiost/",la=Granite.I18n.get("Learn more"),Ba="_self";else if("lv"===L)wa="https://www.quick3d.org/lv/atpirkums/",la=Granite.I18n.get("Learn more"),Ba="_self";else if("lt"===L)wa="https://www.quick3d.org/lt/grazinimas/",la=Granite.I18n.get("Learn more"),
Ba="_self";else if("se"===L||"dk"===L||"fi"===L||"no"===L)wa="javascript:;",la=Granite.I18n.get("Learn more"),Ba="_self",Da.layerTarget="tradeInLearnMorePopup",Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks");else if("es"===L||"pt"===L)wa="javascript:;",la=Granite.I18n.get("Learn more"),Ba="_self",Da.layerTarget="tradeInLearnMorePopup",Ca.text=Granite.I18n.get("Yes, please"),ya.text=Granite.I18n.get("No, thanks"),"04000000"===$("#categoryGroupCode").val()&&("es"===L&&(la=
Granite.I18n.get("Learn more(TV)")),Na=Granite.I18n.get("TRADE-IN(TV)"),Z=Granite.I18n.get("SplitPD TradeIn Description(TV)"),Ca.text=Granite.I18n.get("YES"),ya.text=Granite.I18n.get("NO"),"es"===L&&$(".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(oa,
Ra){oa.title&&oa.desc&&($(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-title").eq(Ra).html(oa.title),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__list .trade-in-learn-more-popup__list-item-text-desc").eq(Ra).html(oa.desc))}),$(".trade-in-learn-more-popup .trade-in-learn-more-popup__disclaimer").html(Granite.I18n.get("Trade-In disclaimer(TV)")));else if("sg"===L)wa="https://www.quick3d.org/sg/shop-faq/trade-in/",la=Granite.I18n.get("Learn more"),
Ba="_blank",Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in."),Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks");else if("it"===L)wa="https://www.quick3d.org/it/offer/mobile-trade-in/",la=Granite.I18n.get("Learn more"),Ba="_blank";else if("ca"===L||"ca_fr"===L)wa="https://www.quick3d.org/"+L+"/trade-in-program/",la=Granite.I18n.get("Learn more"),Ba="_blank";else if("au"===L)Na=Granite.I18n.get("belo4d Trade-in"),
Z=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy."),Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),wa="https://www.quick3d.org/au/tradeup/",la=Granite.I18n.get("Learn more"),Ba="_blank";else if("my"===L)wa=ta?"/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-trade-in/":"https://www.quick3d.org/my/trade-in/",Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in."),
la=Granite.I18n.get("Learn more"),Ba="_blank";else if("ae"===L||"ae_ar"===L)Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy."),Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Ca.subText="",c.categoryTypeCode.startsWith("01")&&(Na=Granite.I18n.get("Trade-in up to 3 old devices and get cashback"),c.sgeSiteInstantChk&&(Na=Granite.I18n.get("belo4d Trade-in Title"),Z=Granite.I18n.get("belo4d Trade-in subTitle"))),
la=Granite.I18n.get("Learn more"),Ba="_blank",a="",["04010000","04050000","04020000","05010000","07010000"].includes(c.categoryTypeCode)?(a="07010000"===c.categoryTypeCode?"monitor-trade-in/":"tv-trade-in/",Na=Granite.I18n.get("Trade-in your old device and get guaranteed cashback")):a="mobile-trade-in/","ae"===L?wa="https://www.quick3d.org/ae/offer/"+a:"ae_ar"===L&&(wa="https://www.quick3d.org/ae_ar/offer/"+a),Oa&&(Ca="https://belo4dtradein.ae/",Ca={"class":"noname",eventType:"directLink",text:Granite.I18n.get("Yes please"),
subText:Ja,layerTarget:"none",isDirectLink:Oa,href:Ca,isPopup:!1},ya={text:Granite.I18n.get("No thanks"),layerTarget:"none",eventType:"tradein"},la=wa=Ba="");else if("sa"===L||"sa_en"===L)c.categoryTypeCode.startsWith("04")&&(Na=Granite.I18n.get("Want up to {0} off? Try trading in your old device!",currencyComma(Fa,Ia)));else if("ch"===L||"ch_fr"===L)wa="javascript:;",la=Granite.I18n.get("Learn more"),Ba="_self",Da.layerTarget="tradeInLearnMorePopup",Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");
else if("hu"===L)Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");else if("vn"===L)Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),wa="https://www.quick3d.org/vn/offer/len-doi-sieu-pham/",la=Granite.I18n.get("Learn more"),Ba="_blank",Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Try trading in your current phone and get an instant discount on your new Galaxy.");
else if("nl"===L||"be"===L||"be_fr"===L)Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Get more discount on your new Galaxy when you trade-in.");else if("hk"===L||"hk_en"===L)Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("belo4d Trade-in"),wa="javascript:;",la=Granite.I18n.get("Learn more"),Ba="_self",Da.layerTarget="tradeInLearnMorePopup";else if("at"===L)"04000000"===
$("#categoryGroupCode").val()?(Na=Granite.I18n.getVar("Trade-Up","ux2"),wa="https://www.quick3d.org/at/tvs/trade-up/"):"01000000"===$("#categoryGroupCode").val()?(wa="javascript:;",Ba="_self",Da.layerTarget="tradeInLearnMorePopup"):"08000000"===$("#categoryGroupCode").val()&&(Na=Granite.I18n.getVar("Trade-Up","ux2"),wa="https://www.quick3d.org/at/offer/trade-up-bonus/"),Z=Granite.I18n.get("TRADE-IN Description");else if("fr"===L)Z=ta?"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"===L&&"CE"===Sa){Ca.layerTarget="sielTradeInPopup";wa="https://www.quick3d.org/uk/tvs/trade-up/";if(pa||"08030000"===c.categoryTypeCode||"08010000"===c.categoryTypeCode||"08070000"===c.categoryTypeCode||"07010000"===c.categoryTypeCode)wa="https://www.quick3d.org/uk/tv-and-home-appliances-trade-up/";c.ceHeadlineText&&(Na=c.ceHeadlineText,Ca.subText=c.ceSubText)}else"cl"===L?(Na=Granite.I18n.get("TRADE-IN"),
Ca.text=Granite.I18n.get("Yes"),Z=Granite.I18n.get("Trade in actualmente es solo para Regi\u00f3n Metropolitana.")):"pe"===L?(wa="https://www.quick3d.org/pe/plan-canje-galaxy/",la=Granite.I18n.get("Learn more"),Ba="_blank"):"de"===L?(Na=Granite.I18n.get("Trade-In"),Z=Granite.I18n.get("Want up to {0} off? Try trading in your current phone!",currencyComma(Fa,Ia))):"pl"===L?wa="https://www.quick3d.org/pl/trade-in/":La?(Na=Granite.I18n.get("TRADE-IN (mx)"),Z=Granite.I18n.get("TRADE-IN description (mx)",
currencyComma(Fa,Ia)),Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Ja=Granite.I18n.get("Save up to")+" "+Ma):"ro"===L?(Na=Granite.I18n.get("TRADE-IN"),Z=Granite.I18n.get("TRADE-IN description"),Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Ja=Granite.I18n.get("Save up to (Trade-in)")+" "+Ma,la=Granite.I18n.get("Learn More (Trade-in)"),wa="https://www.quick3d.org/ro/trade-in/"):"bg"===L?(Ja=Granite.I18n.get("Save up to")+" "+Ma,la=Granite.I18n.get("Learn More"),
wa="https://www.quick3d.org/bg/trade-in/"):"jp"===L?(Ca.text=Granite.I18n.get("Yes please"),ya.text=Granite.I18n.get("No thanks"),Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("TRADE-IN description"),la=Granite.I18n.get("Learn More (Trade-in)"),wa="https://www.quick3d.org/jp/trade-in/",Ba="_blank"):"cn"===L||"tr"===L?(wa="javascript:;",Ca.text=Granite.I18n.get("Yes Please"),ya.text=Granite.I18n.get("No Thanks"),la=Granite.I18n.get("Learn more"),Ba="_self",Da.layerTarget="tradeInLearnMorePopup",
Na=Granite.I18n.get("belo4d Trade-in"),Z=Granite.I18n.get("Get more discount on your new Galxy when you trade-in.")):"sk"===L||"cz"===L?(Na=Granite.I18n.get("Return your old device to us and save!"),Ca.text=Granite.I18n.get("Yes Please"),ya.text=Granite.I18n.get("No Thanks"),wa="https://www.quick3d.org/"+L+"/trade-in/"):"ua"===L?(Na=Granite.I18n.get("belo4d Trade-in Title"),Z=Granite.I18n.get("belo4d Trade-in subTitle")):"in"===L&&"CE"!==Sa?(Na=Granite.I18n.get("Exchange your device"),Ga&&(Z="Exchange any product and get benefits up to "+
currencyComma(Ga,Ia)+"*",Ja=Granite.I18n.get("Save up to")+" "+currencyComma(Ga,Ia)),Ca={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:Ja,layerTarget:"instantExchangePopupHubble",isDirectLink:Oa,isPopup:!0},ya={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},la=wa=Ba=""):"in"===L&&"CE"===Sa&&(Na="Exchange",Z="",Ga&&(Z="Exchange any product and get benefits up to "+currencyComma(Ga,Ia)+"*",Ja=Granite.I18n.get("Save up to")+
" "+currencyComma(Ga,Ia)),Ca={"class":"trade-in-exchange",eventType:"exchange",text:Granite.I18n.get("YES"),subText:Ja,layerTarget:"sielTradeInPopup",isDirectLink:Oa,isPopup:!0},ya={text:Granite.I18n.get("NO"),layerTarget:"deleteTradeInPopUp",eventType:"exchange"},la=wa=Ba="",Ta=!0,Ua=!1);Da=p.getAttrCta(la,wa,Ba,"",Da,"");ua.tradeIn={hasComponent:g,hasCeTradein:Ta,hasExchange:Ua,title:Na,learnMoreCta:Da,description:Z,yesAttr:Ca,noAttr:ya};c.ceTradeUpPopup.isEnabled&&"undefined"!==typeof CeTradeUpPopup&&
!CeTradeUpPopup.config.view.useLearnMoreCta&&(Da.isOutLink=null,Da.isNotOutLink=null);c.ceTradeUpPopup.isEnabled||"ee"!==L&&"lv"!==L&&"lt"!==L||(Da.isOutLink=!0,Da.isNotOutLink=null);g&&ua.priceAnchor.priceWrapper.info.useTooltip&&(ua.tradeIn.hasTooltipClass=" pd-buying-price__tooltip");xa.tradeInDraw(ua);g=window.location.pathname.replace("/content/belo4d","").replace(".html","/")+"--service--gpv";sessionStorage.getItem(g)&&(g=JSON.parse(sessionStorage.getItem(g)),g=g.tradein.list?g.tradein.list[0]:
g.tradein,ua=g.tradeinInfo,xa=ua.device_info.brand,"jp"===L&&(xa=ua.device_info.category),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount({provider:g.provider,displayBrandName:xa,displayModelName:g.model,tradeinId:g.id,serviceType:"trade-in",serviceCode:g.id,imeiKey:g.imeiKey,price:g.price,discount:{gratification:"",price:g.displayPrice,total:g.displayPrice+g.cashbackPrice},value:{gratification:"",price:g.discountPrice},tradeInType:g.tradeInType,promotion:g.promotion,tradeinDiscountYn:ua.delayed_gratification,
open_promo_tax:"",additionalDiscountFlag:g.additionalDiscountFlag,tradeInSpecialPrice:g.specialPrice,commonTradein:c.commonTradein,tradeinInfo:ua},"tradein"));p.totalAfterFunction(c,m)}};na.prototype.settingTradeInErrMsgDraw=function(a,c,m){if(a.compareMaxTradeInWithCart){c=a.drawObj;var g=a.view;a=!!a.disableTradeIn;var p="";a&&(p="disabled");c.tradeInErrMsg={hasComponent:m&&a,disableTradeIn:a,disableText:p};g.tradeInErrMsgDraw(c)}};na.prototype.gpHybrisGlobalEndPoint=function(a,c){J(a,c);this.settingCtaTagging(a,
c);this.specialTagging(a,c);if(0<$(".pd-select-option__color-name").length){var m=$(".pd-select-option__list--color-chip .option-input.checked").data("colorname");null!=m&&""!=m&&"undefined"!=typeof m&&(m=m.replace(/&/g,", "),$("#multiColorText").text(m))}window.onload=function(){-1<window.location.href.indexOf("#trade-in")&&(a.drawObj.tradeIn.hasComponent&&a.ceTradeUpPopup.isEnabled&&!a.categoryTypeCode.startsWith("01")||a.drawObj.tradeIn.hasComponent&&a.categoryTypeCode.startsWith("01"))&&$("#pd-trade-in-0").click();
a.isSENA&&("OUTOFSTOCK"==a.apiChangeStockStatus||"INSTOCK"!=a.apiChangeStockStatus&&"LOWSTOCK"!=a.apiChangeStockStatus&&"PREORDER"!=a.apiChangeStockStatus&&"BACKORDERED"!=a.apiChangeStockStatus||$(".cost-box__description.howToReceiveTheProduct").show());var g;a.isSENA&&(null==a?0:null==(g=a.proudctPriceInfo)?0:g.promotionPriceValidTo)&&$(".cost-box__description.promotionPriceValidTo").show();a.util.checkAddToCart(a,c);0<document.querySelectorAll(".pdd01-anchor-nav-v2__combo-package-wrap").length&&
window.sg.common.icon.redrawSvgs(document.querySelector(".pdd01-anchor-nav-v2__combo-package-wrap"));0<document.querySelectorAll(".combo-package").length&&window.sg.common.icon.redrawSvgs(document.querySelector(".combo-package"));window.sg.components.pdHeaderNavigationV2.reInit()}};na.prototype.initGlobalVal=function(a,c){c=a.drawObj;a.childCheckList=[];a.belo4dCareList=[];a.belo4dCareBadgeList=[];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.belo4dCareFlag=
!1;a.warrantyFlag=!1;a.checkingComboSearchFlag=!1;a.checkingBogoSearchFlag=!1;a.hasAddonApiData=!1};na.prototype.setPriceProudctPriceInfo=function(a,c,m){c=a.isGpv2;var g=m.price,p=m.priceDisplay,aa=m.promotionPrice,L=m.promotionPriceDisplay,ma=m.leasingInfo,ua=m.saveText;m=m.tradeInPriceText;var ja=a.priceCurrency,xa=a.siteCode;g&&(a.proudctPriceInfo.orignalPrice=g);p?a.proudctPriceInfo.orignalPriceFormatted=p:g&&(a.proudctPriceInfo.orignalPriceFormatted=currencyComma(g,ja));a.proudctPriceInfo.salePrice=
aa?aa:g;a.proudctPriceInfo.salePriceFormatted=L?L:aa?currencyComma(aa,ja):a.proudctPriceInfo.orignalPriceFormatted;c&&ma&&ma.monthlyRate&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=ma.monthlyRate,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=ma.tenureVal);!c&&monthlyPriceInfo&&monthlyPriceInfo.leasingMonthly&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=monthlyPriceInfo.leasingMonthly,a.proudctPriceInfo.monthlyPriceInfo.tenureVal=monthlyPriceInfo.leasingMonths);ua&&(a.proudctPriceInfo.rowCodeformattedPriceSave=
ua);m&&(a.proudctPriceInfo.salePriceFormatted=m);if("nl"===xa||"be"===xa||"be_fr"===xa)c=a.proudctPriceInfo.listPriceFormatted,g=a.proudctPriceInfo.orignalPriceFormatted,p=a.proudctPriceInfo.salePriceFormatted,aa=a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,c&&(a.proudctPriceInfo.listPriceFormatted=deleteCurrency(c,a.priceCurrency).trim()),g&&(a.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(g,a.priceCurrency).trim()),p&&(a.proudctPriceInfo.salePriceFormatted=deleteCurrency(p,a.priceCurrency).trim()),
aa&&(a.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=deleteCurrency(aa,a.priceCurrency).trim())};na.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));ta&&(c=window.sg.components.dynamic.detailSharedObj.detailNodePath.replace(".dynamic",""));var m=c+".async."+a+"/";0<location.pathname.indexOf(".html")&&(m=c+".async."+a+".html");0>=$("#hubble-"+a+"-layer").length&&$.ajax({type:"GET",url:m,dataType:"html",
async:!1,success:function(g){if(-1<g.indexOf("\x3clink")&&-1<g.indexOf('"text/css"\x3e')){var p=g.substring(g.indexOf("\x3clink"),g.indexOf('"text/css"\x3e')+12);g=g.replace(p,"");$("#wrap").append(p)}for(p=Date.now()+100;Date.now()<p;);$("#wrap").append(g)},error:function(g){},complete:function(){}});"commontradein"==a&&window.sg.common.textFieldv2.initAll()};na.prototype.isCommonTradeinCheck=function(){var a=window.sg.components.dynamic?window.sg.components.dynamic.detailSharedObj:null,c=$("#categoryGroupCode").val(),
m=$("#categoryTypeCode").val(),g=$("#categorySubTypeCode").val(),p=!1;if("01000000"==c)p=!0;else if("03010100"==g&&("fr"===siteCode||"it"===siteCode))p=!0;else if("03010000"==m&&-1!==$.inArray(siteCode,"se no dk fi ee lt lv de hk hk_en es".split(" ")))p=!0;else if(-1!==$.inArray(siteCode,["ae","ae_ar"]))-1!==$.inArray(m,["04010000","04050000","04020000","05010000","07010000"])&&(p=!0);else if(-1!==$.inArray(siteCode,["sa","sa_en"]))m.startsWith("04")&&(p=!0);else if("vn"==siteCode)m.startsWith("0805")||
(p=!0);else if(-1!==$.inArray(siteCode,["be","be_fr","nl"]))a&&(a.ceTradeUpPopup&&a.ceTradeUpPopup.isEnabled||(p=!0));else if("cn"==$("#siteCode").val()||"tr"==$("#siteCode").val()||"hr"==$("#siteCode").val()||"si"==$("#siteCode").val())p=!0;a=$("#tempTitle").val();c=!1;"Y"!=$("#isCommonTradein").val()||!p||"page-buying-pd"!=a&&"page-standard-pd"!=a||(c=!0);return c};na.prototype.validateQuantity=function(a,c,m,g){g=void 0===g?!1:g;var p=m.buyingToolOptSMBQuantity.find(".pd-select-option__error");
if(0!=p.length){var aa=1,L=999;"true"==window.sg.epp.common.offlineFlag&&(aa=1,L=99);c.proudctPriceInfo.smbMinQty=aa;c.proudctPriceInfo.smbMaxQty=L;p.hide();if(a){a>c.proudctPriceInfo.netavailable&&(p.text(Granite.I18n.get("There is only {0} Stock available. (Final Stock available at check out)",[c.proudctPriceInfo.netavailable])),p.show(),a=c.proudctPriceInfo.netavailable,m.buyingToolOptSMBQuantity.find("#counterText").val(a));if(a<c.proudctPriceInfo.smbMinQty||a>c.proudctPriceInfo.smbMaxQty)g||
(p.text(Granite.I18n.get("Please input range between {0} to {1}",[c.proudctPriceInfo.smbMinQty,c.proudctPriceInfo.smbMaxQty])),p.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)}}};na.prototype.tradeInResultReset=function(a,c){var m=a.util,g=a.view,p=a.drawObj,aa=m.hasForever(a,c),L=m.hasUpgradeResult(a,c);null!==p.deliveryResult.priorityText&&
!0===p.tradeInResult.isUpfront&&$(c.buyingToolOptDeliveryResult).find(".delivery-priority").show();if(a.isMultiTradeIn&&p.tradeInResult.list&&0<p.tradeInResult.list.length){for(var ma=p.tradeInResult.list.length;0<ma;ma--)p.tradeInResult.list.splice(a.checkedIndex,1);p.tradeInResult.list=[];p.tradeInResult.dataPrice=0;p.tradeInResult.priceOverFlag=p.tradeInResult.dataPrice>a.proudctPriceInfo.salePrice?!0:!1}if(!a.isMultiTradeIn||p.tradeInResult&&p.tradeInResult.list&&0==p.tradeInResult.list.length)p.tradeInResult=
{hasComponent:!1,description:"",dataPrice:"",dataCashBack:"",dataCash:"",price:"",disclaimer:""};a.exchangeApiData={exchangeFlag:!1};g.tradeInResultDraw(p);L&&g.upgradeResultDraw(p);aa&&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())};na.prototype.settingRewardsDraw=function(a){var c=a.view,m=a.drawObj,g=a.rewards.context;m.rewards=void 0;g.available&&bc_rewards&&bc_rewards.calculate(a).then(function(p){p&&(m.rewards=bc_rewards.convertToDisplay(a,p))}).then(function(){return!!m.rewards&&c.rewardsDraw(a,
m)})};W.BuyingToolOpUtile=na})();
(function(){function l(v,f,q){"Y"===$("#typeux2025").val()?(q=q.buyingToolOptOfferText.empty(),v.invokeTemplate("offerText",f,q.get(0))):(q=q.buyingToolOptOffer.empty(),v.invokeTemplate("offer",f,q.get(0)),f.offer.isViewMore&&q.find("#sgOfferListPanel").children("li[data-view-more-item\x3dtrue]").each(function(k,F){2<k&&$(F).addClass("pd-select-option__view-more--hidden")}))}function d(v,f){if(f&&0<f.length)for(var q in f){var k=f[q];$(v).find(k.target).html(k.text)}}function K(v,f){v=v.offer.childList;
for(var q in v)D(v[q],f)}function D(v,f){v=[v.promotionMessage,v.promotionFinance,v.promotionSmartclub];for(var q in v){var k=v[q],F;for(F in k){var ea=k[F].item;if(ea&&(ea=ea.rowText))for(var e in ea){var n=ea[e],Q="Y"===$("#typeux2025").val()?!0:!1,Y=f.buyingToolOptOffer.find(n.target);Q&&(Y=f.buyingToolOptOfferText.find(n.target));Y.html(n.text)}}}}function r(v){var f=v.buyingToolPriceBar.get(0),q=v.buyingToolOptOffer.get(0);"Y"===$("#typeux2025").val()&&(q=v.buyingToolOptOfferText.get(0));var k=
v.buyingToolOptCare.get(0),F=v.buyingToolOptWarranty.get(0),ea=v.buyingToolOptUpgrade.get(0),e=v.buyingToolOptDelivery.get(0),n=v.buyingToolOptTariff.get(0),Q=v.buyingToolOptTariffResult.get(0);v.buyingToolOptBezelOption.get(0);var Y=v.buyingToolOptTradeIn.get(0),N=v.buyingToolOptCheckDealerStock.get(0),y=v.buyingToolCalculate.get(0),R=v.buyingToolOptGalaxyForever.get(0),V=v.buyingToolOptAssuredBuyBack.get(0),ka=v.buyingToolOptNewAssuredBuyBack.get(0),va=v.buyingToolOptOfferFinance.get(0),Aa=v.buyingToolOptEmbedAddon.get(0);
v=$(v.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);q.innerHTML="";f.innerHTML="";w.resetPriceSection();Y&&(Y.innerHTML="");N&&(N.innerHTML="");k&&(k.innerHTML="");F&&(F.innerHTML="");ea&&(ea.innerHTML="");e&&(e.innerHTML="");n&&(n.innerHTML="");Q&&(Q.innerHTML="");y&&(y.innerHTML="");R&&(R.innerHTML="");V&&(V.innerHTML="");ka&&(ka.innerHTML="");va&&(va.innerHTML="");Aa&&(Aa.innerHTML="");v&&(v.innerHTML="")}function B(){window.sg.components.ProductDetailKvNew.reInit();window.sg.common.icon.update(document.querySelector(".pd-g-product-detail-header-ux2 .hdd02-pdp-header"))}
function J(v,f){f=!1;v.offer.delightDelivery.hasItem?f=!0:0<v.offer.combo.length?f=!0:v.offer.gift.hasItem?f=!0:v.offer.bogo.hasItem?f=!0:0<v.offer.promotionMessage.length?f=!0:0<v.offer.promotionFinance.length?f=!0:0<v.offer.promotionSmartclub.length?f=!0:0<v.offer.childList.length&&(f=!0);v.offer.hasComponent=f;if(0<v.offer.promotionMessage.length||0<v.offer.promotionFinance.length)v.offer.hasSkuData=!0}function U(v,f){var q={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 q){var F=f[q[k]].get(0);if(v[k].hasComponent){var ea="Y"===$("#typeux2025").val()?
!0:!1;ea&&"offer"===k&&(F=f.buyingToolOptOfferText.get(0));$(F).show().addClass("has-component");ea&&"offer"===k&&$(F).find(".pd-select-option__headline-wrap").hide()}else $(F).hide().removeClass("has-component"),"prePurchase"===k&&$(F).remove()}0!==f.buyingToolLinks.length||v.calculator.hasComponent?$(f.buyingToolCalculateDivider.get(0)).show():$(f.buyingToolCalculateDivider.get(0)).hide()}var O=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),w=O.ux2.PriceBar,t=window.sg.sdf.comp,C=
function(v,f){this.sharedObj=f;this.selectorObj=v;this.$ui=v.componentWrapper;this.component=t.dispatch(v.buyingTool)};C.prototype.usEppDraw=function(v){var f=this.$ui.find(".us-epp-discount-keep");this.component.invokeTemplate("usEpp",v,f.empty().get(0));v.usEppData.hasComponent?(f.addClass("has-component"),f.show()):(f.removeClass("has-component"),f.hide());window.sg.components.usEppDiscount.reInit();window.sg.common.icon.update(document.querySelector(".us-epp-discount-keep"))};C.prototype.emiDraw=
function(v){var f=this.selectorObj.buyingToolCalculate.get(0);f.innerHTML="";this.component.invokeTemplate("calculator",v,f);v.calculator.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide())};C.prototype.productWishListDraw=function(v){var f=this.sharedObj,q=this.selectorObj,k=this.selectorObj.buyingToolInfoWishlist.get(0);k&&(k.innerHTML="",this.component.invokeTemplate("wishlist",v,k));f.util.thirdPartyTagging(f,q,q.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"))};C.prototype.shippingCostPopupDraw=function(v){var f=$(".shipping-cost-popup_delivery_services"),q=$(".shipping-cost-popup_delivery_methods");if(null==v?0:v.deliveryServices){f.show();var k=null==v?void 0:v.deliveryServices.map(function(F){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'+
F.name+'\x3c/span\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-cost"\x3e'+F.price+"\x3c/span\x3e\n\t\t\t\t  \x3c/li\x3e\n\t\t\t"}).join("");f.find("ul.shipping-cost-popup__options").html(k)}if(null==v?0:v.deliveryModes)q.show(),v=null==v?void 0:v.deliveryModes.map(function(F){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'+F.name+'\x3c/span\x3e\n\t\t\t\t\t\x3cspan class\x3d"shipping-cost-popup__options-cost"\x3e'+
F.price+"\x3c/span\x3e\n\t\t\t\t  \x3c/li\x3e\n\t\t\t"}).join(""),q.find("ul.shipping-cost-popup__options").html(v)};C.prototype.productPriceTotalDraw=function(v,f){var q=this.sharedObj,k=this.selectorObj,F=k.buyingToolPriceBar.get(0);f?this.$ui.find(".sg-pdh-order-summary").replaceWith(k.buyingToolPriceBar.get(0)):F.innerHTML="";w.drawPriceSection(v);this.component.invokeTemplate("buyingPrice",v,F);"se"===$("#siteCode").val()&&window.sg.components.belo4dFlexPopup&&window.sg.components.belo4dFlexPopup.tradeUpEnabled&&
!window.sg.components.belo4dFlexPopup.hasbelo4dFlex&&(v=$(".hdd02-buying-tool__cost-box .cost-box__price"),f=$(".pd-buying-price__wrap"),window.sg.components.belo4dFlexPopup.priceSummaryPostTradeUp=v.find(".cost-box__price-now").text(),window.sg.components.belo4dFlexPopup.priceSummaryavingsPostTradeUp=0<v.find(".cost-box__price-sub").length?v.find(".cost-box__price-sub").html():"",window.sg.components.belo4dFlexPopup.priceNavigationBarPostTradeUp=f.find(".pd-buying-price__new-price .pd-buying-price__new-price-inner").html(),
window.sg.components.belo4dFlexPopup.priceNavigationBarSavingsPostTradeUp=f.find(".pd-buying-price__inner .pd-buying-price__box").html());q.util.thirdPartyTagging(q,k,k.buyingToolPriceBar.find("a.cta"));q.util.settingCtaTagging(q,k);q.util.specialTagging(q,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)};C.prototype.deliveryResultDraw=function(v){var f=this.selectorObj.buyingToolOptDeliveryResult.get(0);f.innerHTML="";this.component.invokeTemplate("deliveryResult",v,f);v.deliveryResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.deliveryPickupStoreDraw=function(v){var f=this.selectorObj.buyingToolOptDeliveryPickupStore.get(0);
f.innerHTML="";this.component.invokeTemplate("deliveryPickupStore",v,f);v.deliveryPickupStore.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.betweenDraw=function(v){var f=this.selectorObj,q=f.buyingToolOptBetween.get(0);if(f=$(f.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0))f.innerHTML="";this.component.invokeTemplate("between",v,f);v.between.hasComponent?($(q).addClass("has-component"),$(q).show()):
($(q).removeClass("has-component"),$(q).hide())};C.prototype.deliveryDraw=function(v){var f=this.selectorObj.buyingToolOptDelivery.get(0);f.innerHTML="";this.component.invokeTemplate("delivery",v,f);v.delivery.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.deliveryMessageDraw=function(v){var f=this.selectorObj.buyingToolOptDeliveryMessage.get(0);f.innerHTML="";this.component.invokeTemplate("deliveryMessage",v,f);v.deliveryMessage.hasComponent?
($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.shippingOrBackDraw=function(v){var f=this.selectorObj.buyingToolOptShippingOrBack.get(0);f.innerHTML="";this.component.invokeTemplate("shippingOrBack",v,f);v.shippingOrBack.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.assuredBuyBackDraw=function(v){var f=this.selectorObj.buyingToolOptAssuredBuyBack.get(0);f.innerHTML=
"";this.component.invokeTemplate("assuredBuyBack",v,f);v.assuredBuyBack.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide())};C.prototype.assuredBuyBackResultDraw=function(v){var f=this.selectorObj.buyingToolOptAssuredBuyBackResult.get(0);f.innerHTML="";this.component.invokeTemplate("assuredBuyBackResult",v,f);v.assuredBuyBackResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.newAssuredBuyBackDraw=
function(v){var f=this.selectorObj,q=f.buyingToolOptNewAssuredBuyBack.get(0);q.innerHTML="";this.component.invokeTemplate("newAssuredBuyBack",v,q);v.newAssuredBuyBack.hasComponent?($(q).addClass("has-component"),$(q).show()):($(q).removeClass("has-component"),$(q).hide());$(f.buyingToolOptNewAssuredBuyBack).find(".pd-select-option__item").each(function(k,F){k=$(F).find('input[name\x3d"pd-galaxy-new-assured"]');"OOS"==k.data("stockstatus")&&k.attr("disabled",!0)})};C.prototype.newAssuredBuyBackResultDraw=
function(v){var f=this.selectorObj.buyingToolOptNewAssuredBuyBackResult.get(0);f.innerHTML="";this.component.invokeTemplate("newAssuredBuyBackResult",v,f);v.newAssuredBuyBackResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.galaxyForeverDraw=function(v){var f=this.selectorObj.buyingToolOptGalaxyForever.get(0);f.innerHTML="";this.component.invokeTemplate("galaxyForever",v,f);v.galaxyForever.hasComponent?($(f).addClass("has-component"),
$(f).show()):($(f).removeClass("has-component"),$(f).hide())};C.prototype.galaxyForeverResultDraw=function(v){var f=this.selectorObj.buyingToolOptGalaxyForeverResult.get(0);f.innerHTML="";this.component.invokeTemplate("galaxyForeverResult",v,f);v.galaxyForeverResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.upgradeDraw=function(v){var f=this.selectorObj.buyingToolOptUpgrade.get(0);f&&(f.innerHTML="");this.component.invokeTemplate("upgrade",
v,f);v.upgrade.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide())};C.prototype.warrantyResultDraw=function(v){var f=this.selectorObj.buyingToolOptWarrantyResult.get(0);f.innerHTML="";this.component.invokeTemplate("warrantyResult",v,f);v.warrantyResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.warrantyVdResultDraw=function(v){var f=this.selectorObj.buyingToolOptWarrantyVdResult.get(0);
f.innerHTML="";this.component.invokeTemplate("warrantyVdResult",v,f);v.warrantyVdResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.careResultDraw=function(v){var f=this.selectorObj.buyingToolOptCareResult.get(0);f.innerHTML="";this.component.invokeTemplate("careResult",v,f);v.careResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide())};C.prototype.tariffOpionDraw=
function(v){var f=this.sharedObj,q=this.selectorObj,k=q.buyingToolOptTariff.get(0);k.innerHTML="";this.component.invokeTemplate("tariffOption",v,k);v.tariffOption.hasComponent?(f.util.thirdPartyTagging(f,q,q.buyingToolOptTariff.find(".option-input")),$(k).addClass("has-component"),$(k).show()):($(k).removeClass("has-component"),$(k).hide())};C.prototype.tariffOpionResultDraw=function(v){var f=this.selectorObj.buyingToolOptTariffResult.get(0);f.innerHTML="";this.component.invokeTemplate("tariffOptionResult",
v,f);v.tariffOptionResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide());B()};C.prototype.bezelOptionDraw=function(v){var f=this.selectorObj.buyingToolOptBezelOption.get(0);f.innerHTML="";this.component.invokeTemplate("bezelOption",v,f);v.bezelOption.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).removeClass("has-component"),$(f).hide())};C.prototype.tradeInDraw=function(v){var f=this.selectorObj,q=this.sharedObj,k=f.buyingToolOptTradeIn.get(0);
k.innerHTML="";this.component.invokeTemplate("tradeIn",v,k);v.tradeIn.hasComponent?(q.util.thirdPartyTagging(q,f,f.buyingToolOptTradeIn.find(".option-input")),$(k).addClass("has-component"),$(k).show()):($(k).removeClass("has-component"),$(k).hide())};C.prototype.tradeInErrMsgDraw=function(v){var f=this.selectorObj,q=f.buyingToolOptTradeInErrMsg.get(0);q.innerHTML="";this.component.invokeTemplate("tradeInErrMsg",v,q);v.tradeInErrMsg.hasComponent?(f.buyingToolOptTradeIn.find(".pd-option-selector").each(function(k,
F){k=$(F);k.addClass("cta--disabled");k.find(".option-input").prop("disabled",!0)}),$(q).addClass("has-component"),$(q).show(),window.sg.common.icon.update(document.querySelector("#tradeInErrMsg span.option-result__message-inner"))):($(q).removeClass("has-component"),$(q).hide())};C.prototype.tradeInResultDraw=function(v){var f=this.selectorObj,q=f.buyingToolOptTradeInResult.get(0),k=this.sharedObj.siteCode;q.innerHTML="";this.component.invokeTemplate("tradeInResult",v,q);"vn"===k&&$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").hide();
"vn"!==k||v.tradeInResult.list&&0!=v.tradeInResult.list.length||$(".hdd02-pdp-header__buying-tool .hdd02-buying-tool .pd-select-option.trade-in .pd-select-option__wrap").show();if(v.tradeInResult.hasComponent){$(q).addClass("has-component");$(q).show();q=!1;!this.sharedObj.isMultiTradeIn||"si"!==k&&"hr"!==k?this.sharedObj.isMultiTradeIn&&(q=v.tradeInResult.list&&v.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||v.tradeInResult.priceOverFlag):q=v.tradeInResult.list&&3<=v.tradeInResult.list.length||
v.tradeInResult.priceOverFlag;if("pl"===k&&isNotEmpty(v.priceAnchor.priceWrapper.info.summaryPrice)&&isNotEmpty(v.tradeInResult.dataPrice)&&1>=Number(v.priceAnchor.priceWrapper.info.summaryPrice.split(",")[0])-Number(v.tradeInResult.dataPrice)){f.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0);var F=this.$ui.find("#isCommonTradein").val();"Y"===F&&f.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",
!0)}if(this.sharedObj.isMultiTradeIn&&v.tradeInResult.list&&q){if("si"===k||"hr"===k)f.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0),F=this.$ui.find("#isCommonTradein").val(),"Y"===F&&f.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",!0);if(v.tradeInResult.list.length>=this.sharedObj.maxTradeInsAllowed||"vn"===k)f.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",
!0),F=this.$ui.find("#isCommonTradein").val(),"Y"===F&&f.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",!0),("sg"===k||"my"===k)&&(q=f.buyingToolOptTradeInResult.find(".limit-count"))&&0<q.length&&q.is(":visible")&&q.hide();v.tradeInResult.priceOverFlag?("au"===k&&f.buyingToolOptTradeInResult.find(".option-result__multiple-price").text(currencyComma(0,this.sharedObj.priceCurrency)),"tr"!==k&&f.buyingToolOptTradeInResult.find(".over-price-alert").show(),
"sg"===k||"cl"===k||"tr"===k?f.buyingToolOptTradeInResult.find(".desc-target").show():f.buyingToolOptTradeInResult.find(".desc-target").hide(),("sg"===k||"my"===k)&&(q=f.buyingToolOptTradeInResult.find(".limit-count"))&&0<q.length&&q.is(":visible")&&q.hide(),"tr"!==k&&(f.buyingToolOptTradeInResult.find(".limit-count").addClass("cta--disabled").prop("disabled",!0),f.buyingToolOptTradeIn.find("#pd-trade-in-0").closest(".pd-option-selector").addClass("cta--disabled").prop("disabled",!0))):(f.buyingToolOptTradeInResult.find(".over-price-alert").hide(),
f.buyingToolOptTradeInResult.find(".desc-target").show())}else f.buyingToolOptTradeInResult.find(".over-price-alert").hide();if("ae"===k||"ae_ar"===k)"Y"===v.tradeInResult.specialInstantDiscountYn?f.buyingToolOptTradeInResult.find(".desc-type2").show():f.buyingToolOptTradeInResult.find(".desc-type2").hide()}else $(q).removeClass("has-component"),$(q).hide();B()};C.prototype.checkDealerStockDraw=function(v){var f=this.selectorObj,q=f.buyingToolOptCheckDealerStock.get(0);f=$(f.buyingToolOptCheckDealerStock);
q.innerHTML="";this.component.invokeTemplate("checkDealerStock",v,q);f.find(".menu__list-wrap.scrollbar").remove();v.checkDealerStock.hasComponent?($(q).addClass("has-component"),$(q).show()):($(q).removeClass("has-component"),$(q).hide());window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);0===f.find(".menu__list-wrap.scrollbar").length&&window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0])};
C.prototype.upgradeResultDraw=function(v){var f=this.selectorObj.buyingToolOptUpgradeResult.get(0);f.innerHTML="";this.component.invokeTemplate("upgradeResult",v,f);v.upgradeResult.hasComponent?($(f).addClass("has-component"),$(f).show()):($(f).hide(),$(f).removeClass("has-component"));B()};C.prototype.upgradeResultHybrisDraw=function(v){var f=this.selectorObj.buyingToolOptUpgradeResult.get(0);f.innerHTML="";this.component.invokeTemplate("upgradeResultHybris",v,f);v.upgradeResult.hasComponent?$(f).addClass("has-component"):
$(f).removeClass("has-component");B()};C.prototype.productCtaDraw=function(v){var f=this.sharedObj,q=this.selectorObj;if(w.isEnabled()){w.drawPriceSection(v);var k=q.buyingToolPriceBar.empty().get(0);this.component.invokeTemplate("buyingPrice",v,k);f.util.thirdPartyTagging(f,q,q.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)}};C.prototype.productAddOnCare=function(v){var f=this.sharedObj,q=this.selectorObj,k=q.buyingToolOptCare.get(0);k.innerHTML="";this.component.invokeTemplate("care",v,k);v.care.hasComponent?(f.util.thirdPartyTagging(f,q,q.buyingToolOptCare.find(".option-input")),$(q.buyingToolOptCare.get(0)).addClass("has-component"),
d(q.buyingToolOptCare,v.care.rowText),$(q.buyingToolOptCare.get(0)).show()):$(q.buyingToolOptCare.get(0)).hide();v.careResult.hasComponent?($(q.buyingToolOptCare.get(0)).addClass("has-component"),$(q.buyingToolOptCareResult.get(0)).show()):$(q.buyingToolOptCareResult.get(0)).hide();$(q.buyingToolOptCare).find(".pd-select-option__item").each(function(F,ea){F=$(ea).find('input[name\x3d"pd-belo4d-care"]');"OOS"==F.data("stockstatus")&&F.attr("disabled",!0)})};C.prototype.productAddOnWarranty=function(v){var f=
this.selectorObj,q=f.buyingToolOptWarranty.get(0);q.innerHTML="";this.component.invokeTemplate("warranty",v,q);v.warranty.hasComponent?$(f.buyingToolOptWarranty.get(0)).show():$(f.buyingToolOptWarranty.get(0)).hide();v.warrantyResult.hasComponent?$(f.buyingToolOptWarrantyResult.get(0)).show():$(f.buyingToolOptWarrantyResult.get(0)).hide()};C.prototype.productAddOnWarrantyVd=function(v){var f=this.sharedObj,q=this.selectorObj,k=q.buyingToolOptWarrantyVd.get(0);k.innerHTML="";this.component.invokeTemplate("warrantyVd",
v,k);v.warrantyVd.hasComponent?(f.util.thirdPartyTagging(f,q,q.buyingToolOptWarrantyVd.find("input")),$(q.buyingToolOptWarrantyVd.get(0)).show()):$(q.buyingToolOptWarrantyVd.get(0)).hide();v.warrantyVdResult.hasComponent?$(q.buyingToolOptWarrantyVdResult.get(0)).show():$(q.buyingToolOptWarrantyVdResult.get(0)).hide()};C.prototype.productOfferDraw=function(v,f){f=this.sharedObj;var q=this.selectorObj;J(v,q);l(this.component,v,q);D(v.offer,q);v.offer.hasComponent&&v.offer.hasPackage&&K(v,q);$("#siteCode").val();
"Y"===$("#typeux2025").val()?v.offer.hasComponent?(f.util.thirdPartyTagging(f,q,q.buyingToolOptOfferText.find('a[data-target-popup!\x3d"eipPopup"]')),$(q.buyingToolOptOfferText.get(0)).addClass("has-component"),$(q.buyingToolOptOfferText.get(0)).show()):$(q.buyingToolOptOfferText.get(0)).hide():v.offer.hasComponent?(f.util.thirdPartyTagging(f,q,q.buyingToolOptOffer.find('a[data-target-popup!\x3d"eipPopup"]')),$(q.buyingToolOptOffer.get(0)).addClass("has-component"),$(q.buyingToolOptOffer.get(0)).show()):
$(q.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()};C.prototype.embedAddonDraw=function(v,f){var q=this.selectorObj,k=q.buyingToolOptEmbedAddon.get(0);k.innerHTML="";this.component.invokeTemplate("embedAddon",f,k);f.embedAddon.hasComponent?($(".pd-g-product-detail-header-ux2 .option-embed-addon").replaceWith(k),v.isLeasingPrice&&
$(".option-embed-addon").attr("data-leasing-price",v.isLeasingPrice),$(".option-embed-addon .add-on-product").each(function(){$(this).hasClass("add-on-product--out-of-stock")&&$(this).find("input").attr("disabled","disabled")}),v.util.thirdPartyTagging(v,q,q.buyingToolOptEmbedAddon.find(".add-on-product-list-wrap button")),$(q.buyingToolOptEmbedAddon.get(0)).addClass("has-component"),$(q.buyingToolOptEmbedAddon.get(0)).show(),v.isOptClicked&&v.util.clickEventListener(v,q)):($(q.buyingToolOptEmbedAddon.get(0)).removeClass("has-component"),
$(q.buyingToolOptEmbedAddon.get(0)).hide())};C.prototype.productDraw=function(v){var f=this.selectorObj,q=this.component;J(v,f);r(f);w.drawPriceSection(v);var k=f.buyingToolPriceBar.get(0);q.invokeTemplate("buyingPrice",v,k);setTimeout(function(){window.sg.components.pdHeaderNavigationV2.reInit()},100);q.invokeTemplate("delivery",v,f.buyingToolOptDelivery.get(0));q.invokeTemplate("deliveryResult",v,f.buyingToolOptDeliveryResult.get(0));q.invokeTemplate("deliveryPickupStore",v,f.buyingToolOptDeliveryPickupStore.get(0));
q.invokeTemplate("tariffOption",v,f.buyingToolOptTariff.get(0));q.invokeTemplate("tariffOptionResult",v,f.buyingToolOptTariffResult.get(0));q.invokeTemplate("prePurchase",v,f.buyingToolOptPrePurchase.get(0));l(q,v,f);q.invokeTemplate("offerFinance",v,f.buyingToolOptOfferFinance.get(0));q.invokeTemplate("care",v,f.buyingToolOptCare.get(0));q.invokeTemplate("careResult",v,f.buyingToolOptCareResult.get(0));q.invokeTemplate("warranty",v,f.buyingToolOptWarranty.get(0));q.invokeTemplate("warrantyResult",
v,f.buyingToolOptWarrantyResult.get(0));q.invokeTemplate("bezelOption",v,f.buyingToolOptBezelOption.get(0));q.invokeTemplate("tradeIn",v,f.buyingToolOptTradeIn.get(0));q.invokeTemplate("tradeInResult",v,f.buyingToolOptTradeInResult.get(0));q.invokeTemplate("checkDealerStock",v,f.buyingToolOptCheckDealerStock.get(0));$(f.buyingToolOptCheckDealerStock).find(".menu__list-wrap.scrollbar").remove();q.invokeTemplate("upgrade",v,f.buyingToolOptUpgrade.get(0));q.invokeTemplate("upgradeResult",v,f.buyingToolOptUpgradeResult.get(0));
q.invokeTemplate("galaxyForever",v,f.buyingToolOptGalaxyForever.get(0));q.invokeTemplate("galaxyForeverResult",v,f.buyingToolOptGalaxyForeverResult.get(0));q.invokeTemplate("assuredBuyBack",v,f.buyingToolOptAssuredBuyBack.get(0));q.invokeTemplate("assuredBuyBackResult",v,f.buyingToolOptAssuredBuyBackResult.get(0));q.invokeTemplate("newAssuredBuyBack",v,f.buyingToolOptNewAssuredBuyBack.get(0));q.invokeTemplate("newAssuredBuyBackResult",v,f.buyingToolOptNewAssuredBuyBackResult.get(0));q.invokeTemplate("embedAddon",
v,f.buyingToolOptEmbedAddon.get(0));q.invokeTemplate("calculator",v,f.buyingToolCalculate.get(0));k=$(f.buyingToolOptBetween.get(0)).find(".pd-select-option__wrap").get(0);q.invokeTemplate("between",v,k);$(".pd-select-option--check-dealer-stock .menu").length&&window.sg.common.menu.reInit(document.querySelectorAll(".pd-select-option--check-dealer-stock .menu")[0]);$(f.buyingToolOptCare).find(".pd-select-option__item").each(function(F,ea){F=$(ea).find('input[name\x3d"pd-belo4d-care"]');"OOS"==F.data("stockstatus")&&
F.attr("disabled",!0)});if("fr"===$("#siteCode").val()||"be_fr"===$("#siteCode").val()||"be"===$("#siteCode").val())window.sg.common.image.initAll(),window.sg.common.icon.redrawSvgs();U(v,f);D(v.offer,f);v.offer.hasPackage&&K(v,f);d(f.buyingToolOptCare,v.care.rowText)};C.prototype.anchorDraw=function(v){v&&w.setProductTitle(v)};C.prototype.banerDraw=function(v){if(v){var f=$(".product-offer-banner .product-offer-banner__simple .product-offer-banner__simple-txt-area");f.addClass("is-active");f.attr("data-start-time",
v)}};C.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}}}};C.prototype.eanCodeDraw=function(){var v=
$("#eanCode").val();"Y"!==$("#typeux2025").val()?0<$("p.pd-info__ean").length?$("p.pd-info__ean").innerHTML="EAN : "+v:$("p.pd-info__sku").after('\x3cp class\x3d"pd-info__ean"\x3eEAN : '+v+"\x3c/p\x3e"):0<$("span.pdd39-anchor-nav__info-ean").length?$("span.pdd39-anchor-nav__info-ean").innerHTML="EAN : "+v:$("span.pdd39-anchor-nav__info-sku").after('\x3cspan class\x3d"pdd39-anchor-nav__info-ean"\x3eEAN : '+v+"\x3c/span\x3e")};C.prototype.hotDealBadgeDraw=function(v){var f='\x3cspan class\x3d"badge-icon badge-icon--label-v2 badge-icon--bg-color-teal"\x3e'+
v+"\x3c/span\x3e";"ch"===siteCode||"ch_fr"===siteCode?$("div.pdd39-anchor-nav__headline-wrap").prepend(f):"Y"===$("#typeux2025").val()?0<$("span.badge-icon").length?$("span.badge-icon")[0].innerHTML=v:$("div.pdd39-anchor-nav__headline-wrap").prepend(f):0<$("strong.pd-info__badge-icon").length?($("strong.pd-info__badge-icon").innerHTML="",$("strong.pd-info__badge-icon").append(f)):$("div.pd-info").prepend('\x3cstrong class\x3d"pd-info__badge-icon"\x3e'+f+"\x3c/strong\x3e")};C.prototype.rewardsDraw=
function(v,f){this.productPriceTotalDraw(f,v.isOptClicked);B()};O.BuyingToolOpView=C})();
(function(){function l(w){var t=w.util,C=w.comboSearchList,v=w.noComboSearchList,f=w.realComboSearchList,q=!1;if(t.isNotEmptyArray(C)){var k=w.pdSoftBundleUseYn,F;for(F in C){var ea=C[F],e=f[F],n=v[F],Q=[],Y;for(Y in ea)for(var N in e){var y=ea[Y],R=e[N];if(R.ctaType&&"NOORDER"!==R.ctaType.toUpperCase()&&y.msrp_price&&y.msrp_price.value)if(q=!0,y.sku===R.shopSKU)R.thumbUrl=t.imgDomain(R.thumbUrl),R.msrp_price=y.msrp_price,R.sale_price=y.sale_price,R.formatted_value=y.formatted_value,R.sales_pitch=
y.sales_pitch,R.type=y.type,Q.push(R);else if("Y"===k&&"ecom"===y.sku_source)for(var V in n)y.sku===n[V].sku&&Q.push(searchComboData[kdx])}t.isNotEmptyArray(Q)&&w.globalComboData.push(Q)}}q||(w.drawObj.offer.combo=[],w.view.productOfferDraw(w.drawObj))}function d(w,t,C){t=w.util;var v=w.priceCurrency,f=w.view;w=w.drawObj;for(var q in C){var k=C[q],F=k.thumbUrl,ea=k.thumbUrlAlt,e=w.offer,n=k.pviTypeName?k.pviTypeName.toLowerCase():"",Q=k.pviSubtypeName?k.pviSubtypeName.toLowerCase():"",Y=k.categorySubTypeEngName?
k.categorySubTypeEngName.toLowerCase():"";F=t.getImgAttr(F,F,ea,{classWapper:"image__main responsive-img"});ea=[];var N=C[q];N.bogo_sales_pitch&&ea.push({text:N.bogo_sales_pitch});var y="",R="",V="";k.price_info&&0<k.price_info.length&&(y=k.price_info[0],V=y.msrp_price.value,y=y.msrp_price.formatted_value,"nl"!==siteCode&&"be"!==siteCode&&"be_fr"!==siteCode&&(R=Granite.I18n.get("Save {0}",y)));var ka=currencyComma(0,v);"true"===$("#isEppPage").val()&&"pl"===siteCode&&(R=y="");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:n,pviSubtypeName:Q,categorySubTypeEngName:Y,description:{hasDescription:!0,main:ea,date:N.bogo_date},imgAttr:F,price:{hasPrice:!0,price:V,original:y,save:R,now:ka}}};e.bogo=k}f.productOfferDraw(w)}function K(w){var t=w.getFullYear(),C=String(w.getMonth()+1).padStart(2,"0");w=String(w.getDate()).padStart(2,"0");return t+"-"+C+"-"+w}function D(w){var t=
w.getDate(),C=function(v){if(11<=v&&13>=v)return"th";switch(v%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(t);w="January February March April May June July August September October November December".split(" ")[w.getMonth()];return""+t+C+" "+w}function r(w,t){w=new Date(w);return"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")[w.getDay()]+", "+"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[w.getMonth()]+" "+w.getDate()}var B=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
J=B.ux2.PDPHeaderUI,U=new URL(location.href);U.searchParams.has("addon")&&(U.searchParams.delete("addon"),history.replaceState(null,document.title,U.toString()),history.back());U=function(){};U.prototype.setUsEppPrice=function(w,t){var C=$.cookies.get("tmktid",{domain:".quick3d.org"}),v=w.modelCode;C&&$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.quick3d.org/us/shop/price.us",type:"POST",dataType:"json",timeout:2E4,
data:JSON.stringify({marketId:C,modelCodes:v}),xhrFields:{withCredentials:!0},success:function(f){if(f&&0<f.length)for(var q in f){var k=f[q];w.modelCode===k.prdMdlCd&&k.prdSavePriceInf&&(k=k.prdSavePriceInf.trim(),k=deleteCurrency(k,w.priceCurrency),w.drawObj.usEppData.hasComponent=!0,w.proudctPriceInfo.usEppPrice=k,w.drawObj.usEppData.upText="Save an extra",w.drawObj.usEppData.saveText=currencyComma(k,w.priceCurrency),w.view.usEppDraw(w.drawObj),w.util.settingPriceDraw(w,t))}}})};U.prototype.setUsProductJson=
function(w,t){$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.quick3d.org/us/consumer/shop/productJson.json",type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},success:function(C){C&&C[w.modelCode]&&(C=parseFloat(C[w.modelCode].eppMaxSavingPercentage),w.drawObj.usEppData.hasComponent=!0,w.drawObj.usEppData.upText="Save up to an extra",w.drawObj.usEppData.saveText=currencyComma(w.proudctPriceInfo.salePrice*
C,w.priceCurrency),w.drawObj.usEppData.title="with belo4d Discount Program",w.view.usEppDraw(w.drawObj))}})};U.prototype.setEppDiscount=function(w,t){$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://www.quick3d.org/us/smg/content/belo4d/content-library/prepurchase/eppdiscount/epp-discount.json",type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},success:function(C){if(C&&C.eppDiscounts){w.drawObj.usEppData.hasSelectBox=
!0;for(var v in C.eppDiscounts){var f=C.eppDiscounts[v];w.drawObj.usEppData.selectList.push({title:f.label,storeId:f.storeId,index:v})}w.view.usEppDraw(w.drawObj)}}})};U.prototype.callRelatedAndSearch=function(w,t,C,v,f){var q=this;C=void 0===C?{}:C;var k={},F={};this.callRelatedProductAjax(w,function(ea,e,n){if(e){F.relatedAPI=ea;if(null!=ea.products&&0<ea.products.length){ea=$jscomp.makeIterator(ea.products);for(var Q=ea.next();!Q.done;Q=ea.next())Q=Q.value,k[Q.modelcode]={relatedAPI:Q}}0<Object.keys(k).length?
q.callSearchApiAjax(Object.keys(k),function(Y,N,y){if(N&&(F.searchAPI=Y,200===Y.response.statusCode&&Y.response.resultData&&Y.response.resultData.productList)){Y=$jscomp.makeIterator(Y.response.resultData.productList);for(var R=Y.next();!R.done;R=Y.next()){R=R.value;for(var V=$jscomp.makeIterator(R.modelList),ka=V.next();!ka.done;ka=V.next())ka=ka.value,k["in"!==siteCode?ka.modelCode:ka.shopSKU].searchAPI={categoryData:R,modelData:ka}}}F.totalResult=k;t(F,N,y)},n,f):t(F,e,n)}else t(F,e,n)},C,v)};
U.prototype.callSearchApiAjax=function(w,t,C,v){w=void 0===w?[]:w;C=void 0===C?{}:C;var f=$("#searchDomain").val(),q=$("#siteCode").val(),k=$("#apiStageInfo").val(),F=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("GPv2"):!0,ea=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg"):!0,e=$("#shopIntegrationFlag")?-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new"):!0;2<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,
2);4<$("#categorySubTypeCode").val().length&&$("#categorySubTypeCode").val().substring(0,4);"Hybris-new"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()&&"Hybris-intg"!==$("#shopIntegrationFlag").val()||$("#apiChangeCategoryGroupCode").val();var n=$.cookies.get("country_region")?$.cookies.get("country_region").toString():"";"levant"===q||"levant_ar"===q||"n_africa"===q||"ae"!==q&&"ae_ar"!==q||$.cookies.get("estoreSitecode",{domain:".quick3d.org"});var Q="";Q=F?"gpv2":
ea?"hybris":e?"newhybris":"global";F="true"===$("#isEppPage").val();f=f+"/"+k+"/"+(F?"epp/v2":"b2c")+"/product/model/list/"+Q+"/front";w={siteCode:q,modelList:w.join(","),saleSkuYN:"N",onlyRequestSkuYN:"Y"};F&&(w.companyCode=$("#eppCompanyCode").val(),w.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(w.groupName=window.sg.epp.common.groupName),k=location.pathname.match(/[0-9]{13}/g),null!=k&&"undefined"!=typeof k&&""!=$.trim(k)&&(w.offerId=k[0]),""!=window.sg.epp.common.userStoreId&&(w.o2oId=
window.sg.epp.common.userStoreId));w.vd3PACardYN="Y";w.commonCodeYN="in"!=q?"N":"Y";if("ca"===q||"ca_fr"===q)w.regionCode=null!=n&&""!=n?n:"CA-ON";var Y="",N=!1;v&&(w=v);$.ajax({url:f,type:"GET",data:w,dataType:"json",cache:!0,crossDomain:!0,timeout:2E4,success:function(y){Y=y;N=!0},complete:function(){t(Y,N,C)}})};U.prototype.callRelatedProductAjax=function(w,t,C,v){C=void 0===C?{}:C;var f="",q="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();f="Hybris-intg"!==$("#shopIntegrationFlag").val()&&
"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();w=f+"/tokocommercewebservices/v2/"+q+"/products/"+w+"/relatedProducts?fields\x3dSIMPLE_INFO";f={queryType:"ACCESSORIES"};var k="",F=!1;v&&(f=v);$("#shopParmLang").val()&&(f.lang=$("#shopParmLang").val());v="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};$.ajax({url:w,type:"GET",data:f,dataType:"json",
cache:!0,crossDomain:!0,timeout:1E4,xhrFields:v,success:function(ea){k=ea;F=!0},complete:function(){t(k,F,C)}})};U.prototype.callRelatedProductAjaxOldHybris=function(w,t,C,v,f){v=void 0===v?{}:v;var q=$("#storeDomain").val(),k=w.multistoreSiteCd,F="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():k;k="ca"===k||"ca_fr"===k;t=q+"/"+F+"/servicesv2/getRelatedProductsSimpleInfo?productCode\x3d"+t;q="\x26country_region\x3d";k&&(F=getSECACountryRegion(),q+=F);F={queryType:"ACCESSORIES"};var ea="",
e=!1;f&&(F=f);var n="Query1910499421933433041_151";if("SELECTION_OF_GIFT"==f.queryType||w.hasGift&&!w.hasBundle)n="Query1910499421933433041_152";else if("SELECTION_OF_BUNDLE"==f.queryType||w.hasGift&&w.hasBundle)w.bundleCnt++,n="Query1910499421933433041_153"+w.bundleCnt;"Y"===w.hybrisJsonYn?$.ajax({url:t,type:"GET",data:F,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Q){ea=Q;e=!0},complete:function(){C(ea,e,v)}}):k?$.ajax({url:t+q,type:"GET",data:F,
dataType:"jsonp",jsonpCallback:n,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Q){ea=Q;e=!0},complete:function(){C(ea,e,v)}}):$.ajax({url:t,type:"GET",data:F,dataType:"jsonp",jsonpCallback:n,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Q){ea=Q;e=!0},complete:function(){C(ea,e,v)}})};U.prototype.callRelatedProductAjaxAddOns=function(w,t,C,v){C=void 0===C?{}:C;var f=$("#storeDomain").val(),q="true"===$("#isEppPage").val()?
$("#eppCompanyCode").val():$("#siteCode").val();$("#shopParmLang").val()&&$("#shopParmLang").val();var k="",F=!1,ea="";v&&(ea=v,ea.categoryPrefix="AEM_");$.ajax({url:f+"/tokocommercewebservices/v2/"+q+"/products/"+w+"/relatedCategorizedProducts?fields\x3dSIMPLE_INFO",type:"GET",data:ea,dataType:"json",cache:!0,crossDomain:!0,xhrFields:{withCredentials:!0},timeout:1E4,success:function(e){k=e;F=!0},complete:function(){t(k,F,C)}})};U.prototype.callRelatedProductAjaxAddOnsOldHybris=function(w,t,C,v,f,
q){f=void 0===f?{}:f;var k=$("#storeDomain").val(),F=t.multistoreSiteCd,ea="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():F;F="ca"===F||"ca_fr"===F;C=k+"/"+ea+"/servicesv2/getRelatedCategorizedProductsSimpleInfo?productCode\x3d"+C;k="\x26country_region\x3d";F&&(ea=getSECACountryRegion(),k+=ea);var e="",n=!1;ea="";q&&(ea=q);w&&(ea.categoryPrefix="AEM_");q="Query1910499421933433041_161";w&&(q="Query1910499421933433041_162");"Y"===t.hybrisJsonYn?$.ajax({url:C,type:"GET",data:ea,dataType:"json",
cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Q){e=Q;n=!0},complete:function(){v(e,n,f)}}):F?$.ajax({url:C+k,type:"GET",data:ea,dataType:"jsonp",jsonpCallback:q,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Q){e=Q;n=!0},complete:function(){v(e,n,f)}}):$.ajax({url:C,type:"GET",data:ea,dataType:"jsonp",jsonpCallback:q,cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(Q){e=Q;n=!0},complete:function(){v(e,
n,f)}})};U.prototype.callSimulatecartAjax=function(w,t,C){C=void 0===C?{}:C;var v="",f="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();v="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();var q=f;"true"!==$("#isEppPage").val()&&("levant"===f?q="jo":"levant_ar"===f?q="jo_ar":"n_africa"===f&&(q="ma"));v=v+"/tokocommercewebservices/v2/"+q+"/userData/anonymous/simulatecart";
w={productCodes:w};f="true"===$("#isEppPage").val()?{withCredentials:!0}:{};var k="",F=!1;$.ajax({url:v,type:"GET",data:w,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:f,success:function(ea){k=ea;F=!0},complete:function(){t(k,F,C)}})};U.prototype.deliveryUsAPI=function(w,t,C,v){var f=w.apiDomain+"/v4/fulfillment/earliest-available-delivery-dates";w.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:f,data:"sku\x3d"+v+"\x26postal_code\x3d"+C,dataType:"json",timeout:1E4,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(q){var k=w.drawObj,F=k.delivery,ea=k.deliveryResult;k.delivery.errorMessage=null;if(null!==q&&0<q.length){var e=!1,n;for(n in q){var Q=q[n];if(Q.sku&&Q.sku===v&&Q.earliest_available_delivery_date){e=!0;w.cartPinCode=C;ea.hasComponent=!0;F.inputAttr.value=C;var Y=new Date(Q.earliest_available_delivery_date);
Q=Y.getUTCFullYear();var N=Y.getUTCMonth();Y=Y.getUTCDate();ea.mainText=Granite.I18n.get("This product is available for delivery in your area");ea.disclaimerList=[];ea.disclaimerList.push({disclaimer:Granite.I18n.get("Earliest delivery : {0}","Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[N]+" "+Y+", "+Q)});$.cookies.set("HA-Deeplink-Zipcode",C,{domain:".quick3d.org"})}}e||(k.delivery.errorMessage="This product is currently not available in your area.",k.delivery.inputAttr.value=C)}else k.delivery.errorMessage=
"This product is currently not available in your area.",k.delivery.inputAttr.value=C},error:function(q){q=w.drawObj;q.delivery.errorMessage="This product is currently not available in your area.";q.delivery.inputAttr.value=C},complete:function(){var q=w.view,k=w.drawObj,F=$(t.buyingToolOptDelivery),ea=w.util;q.deliveryResultDraw(k);q.deliveryDraw(k);k.delivery.errorMessage?($(F).find(".text-field-v2__text.error").show(),$(F).find("#delivery-zipcode").focus().val("").val(C)):($(F).find(".text-field-v2__text.error").hide(),
k.delivery.errorMessage=null);ea.settingPriceCta(w.hasPriceCta,w,t,w.currentUrl)}})};U.prototype.deliveryAPI=function(w,t,C,v){var f=w.apiDomain,q=w.pdHrefLang,k=w.pdMultiLanguageYN,F=w.isOldHybrisCheckService,ea=w.siteCode;w.drawObj.delivery.errorMessage=null;w.drawObj.deliveryResult={hasComponent:!1,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};var e={postal_code:C,skus:[v]},n=f+"/v4/configurator/postal-code-check";"true"===$("#isEppPage").val()&&(e.store_id=$("#eppCompanyCode").val());
F?("my"==ea&&(e={postCode:C,sku:v},n=f+"/"+ea+"/servicesv2/postal-code-check/getDeliveryTat"),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:n,type:"GET",dataType:"json",timeout:2E4,data:e,xhrFields:{withCredentials:!0},beforeSend:function(Q){"Y"===k&&Q.setRequestHeader("x-ecom-locale",q)},success:function(Q){var Y=w.drawObj,N=Y.delivery,y=Y.deliveryResult,R=w.siteCode,V="";null!==Q?Q.valid?(w.cartPinCode=C,y.hasComponent=!0,N.inputAttr.value=
C,y.mainText=null!==Q.deliveryTurnAroundTime?Q.deliveryTurnAroundTime:"",$.cookies.set("deliveryPincode",C,{domain:".quick3d.org",path:"/"+R})):V=Granite.I18n.get("Sorry, we do not ship to your zipcode currently."):V=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");Y.delivery.errorMessage=V},error:function(Q){var Y=w.drawObj;Q.responseJSON?(Q=Q.responseJSON,Q=Q.message?Granite.I18n.get(Q.message):Granite.I18n.get("We're sorry, an error occurred.")):Q=Granite.I18n.get("We're sorry, an error occurred.");
Y.delivery.errorMessage=Q},complete:function(){var Q=w.view,Y=w.drawObj;Q.deliveryResultDraw(Y);Q.deliveryDraw(Y);Y.delivery.errorMessage&&($(t.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(t.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(C))}})):$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:n,type:"POST",dataType:"json",timeout:2E4,data:JSON.stringify(e),xhrFields:{withCredentials:!0},
beforeSend:function(Q){"Y"===k&&Q.setRequestHeader("x-ecom-locale",q)},success:function(Q){var Y=w.drawObj,N=Y.delivery,y=Y.deliveryResult,R=w.siteCode,V="";null!==Q&&0<Q.length?Q[0].is_op_available?(Q=Q[0],w.cartPinCode=C,y.hasComponent=!0,N.inputAttr.value=C,y.mainText=Granite.I18n.get("Delivery available. Get it in {0}",null!==Q.turn_around_time?Q.turn_around_time:""),Q.local_dealers&&0<Q.local_dealers.length&&(N=Q.local_dealers[0],y.decText=N.store_name,N.address&&y.disclaimerList.push({disclaimer:N.address}),
N.contact_number&&y.disclaimerList.push({disclaimer:N.contact_number})),$.cookies.set("deliveryPincode",C,{domain:".quick3d.org",path:"/"+R})):V=Granite.I18n.get("Sorry, we do not ship to your zipcode currently."):V=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");Y.delivery.errorMessage=V},error:function(Q){var Y=w.drawObj;Q.responseJSON?(Q=Q.responseJSON,Q=Q.message?Granite.I18n.get(Q.message):Granite.I18n.get("We're sorry, an error occurred.")):Q=Granite.I18n.get("We're sorry, an error occurred.");
Y.delivery.errorMessage=Q},complete:function(){var Q=w.view,Y=w.drawObj;Q.deliveryResultDraw(Y);Q.deliveryDraw(Y);Y.delivery.errorMessage&&($(t.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(t.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(C))}})};U.prototype.deliveryNewBybrisAPI=function(w,t,C,v){var f="";$("#shopParmLang").val()&&(f="?lang\x3d"+$("#shopParmLang").val());v="true"===$("#isEppPage").val()?{withCredentials:!0}:{};"id"!=siteCode?(f=w.apiDomain+
"/tokocommercewebservices/v2/"+w.siteCodeWithEpp+"/products/"+w.modelCode+"/deliveryModes?fields\x3dSIMPLE_INFO\x26postCode\x3d"+C+f,w.drawObj.delivery.errorMessage=null,w.drawObj.deliveryResult={hasComponent:!1,priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]},$.ajax({url:f,type:"GET",dataType:"json",timeout:3E4,xhrFields:v,crossDomain:!0,contentType:"application/json",success:function(q){var k=q.deliveryTurnAroundTime;q.valid?(w.drawObj.delivery.inputAttr.value=C,
w.drawObj.deliveryResult={hasComponent:q.valid,priorityText:null,mainText:Granite.I18n.get("Delivery available. Get it in {0}",k),decText:"storeName",disclaimerList:[]},w.drawObj.deliveryResult.disclaimerList.push({disclaimer:"address"}),w.drawObj.deliveryResult.disclaimerList.push({disclaimer:"number"}),$.cookies.set("deliveryPincode",C,{domain:".quick3d.org",path:"/"+w.siteCode})):w.drawObj.delivery.errorMessage=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.")},error:function(q){var k=
w.drawObj;q.responseJSON?(q=q.responseJSON,q=q.message?Granite.I18n.get(q.message):Granite.I18n.get("We're sorry, an error occurred.")):q=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=q},complete:function(){var q=w.view,k=w.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);q.deliveryResultDraw(k);q.deliveryDraw(k);k.delivery.errorMessage&&($(t.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(t.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(C));
k.delivery.priorityDeliveryText&&$(t.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();J.buyingTool.bindPdTooltipEvent()}})):(f=$("#storeWebDomain").val()+"/"+w.siteCodeWithEpp+"/servicesv2/postal-code-check/getDeliveryTat?postCode\x3d"+C+"\x26sku\x3d"+w.modelCode,v="true"===$("#isEppPage").val()?{withCredentials:!0}:{},w.drawObj.delivery.errorMessage=null,w.drawObj.deliveryResult={hasComponent:!1,mainText:null},$.ajax({url:f,type:"GET",dataType:"json",timeout:3E4,xhrFields:v,crossDomain:!0,
contentType:"application/json",success:function(q){var k=q.deliveryTurnAroundTime;q.valid&&"oos"===k&&"id"===siteCode?w.drawObj.delivery.errorMessage=Granite.I18n.get("Delivery Out Of Stock Message"):q.valid?(w.drawObj.delivery.inputAttr.value=C,w.drawObj.deliveryResult={hasComponent:q.valid,mainText:Granite.I18n.get("Delivery available. Get it in {0}",k)},$.cookies.set("deliveryPincode",C,{domain:".quick3d.org",path:"/"+w.siteCode})):w.drawObj.delivery.errorMessage=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.")},
error:function(q){var k=w.drawObj;q.responseJSON?(q=q.responseJSON,q=q.message?Granite.I18n.get(q.message):Granite.I18n.get("We're sorry, an error occurred.")):q=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=q},complete:function(){var q=w.view,k=w.drawObj;0===k.deliveryResult.priorityCost&&(k.deliveryResult.mainText=null);q.deliveryResultDraw(k);q.deliveryDraw(k);k.delivery.errorMessage&&($(t.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),$(t.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(C));
k.delivery.priorityDeliveryText&&$(t.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();J.buyingTool.bindPdTooltipEvent()}}))};U.prototype.deliveryInAPI=function(w,t,C,v){var f=w.apiDomain,q="";"true"===$("#isEppPage").val()&&(q="\x26store_id\x3d"+$("#eppCompanyCode").val());v=f+"/v4/configurator/serviceability?postal_code\x3d"+C+"\x26skus\x3d"+[v]+q;w.drawObj.delivery.errorMessage=null;f="true"===$("#isEppPage").val()?{withCredentials:!0}:{};w.drawObj.deliveryResult={hasComponent:!1,
priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};w.drawObj.deliveryPickupStore={hasComponent:!1,deliveryPickupStore:!1,deliveryPickupStoreName:""};$.ajax({url:v,type:"GET",dataType:"json",timeout:3E4,crossDomain:!0,xhrFields:f,contentType:"application/json",success:function(k,F,ea){F=w.drawObj;var e=F.delivery,n=F.deliveryResult,Q=F.deliveryPickupStore,Y=null;if(200==ea.status)if(ea=k[0].external_attributes,ea.is_op_available)if(ea.local_dealers[0]&&ea.local_dealers[0].serviceable){if(k[0].delivery_modes&&
0<k[0].delivery_modes.length){var N=null,y=null,R;for(R in k[0].delivery_modes){var V=k[0].delivery_modes[R];w.cartPinCode=C;n.hasComponent=!0;e.inputAttr.value=C;if(V.custom_properties.delivery_mode_type&&V.estimated_delivery_date){var ka=V.custom_properties.delivery_mode_type,va="standard"===ka.replace(/ /g,"").toLowerCase(),Aa="prioritydelivery"===ka.replace(/ /g,"").toLowerCase(),sa=V.estimated_delivery_date,ha=Number(sa.split("-")[2]);ka="";V.short_description&&(ka=V.short_description);var ra=
V.flags.is_installation_available,da=V.earliest_installation_date;ra&&da&&Aa&&(N="Schedule installation \x26 Demo : By "+r(da,"priority"));ra&&da&&va&&(y="Schedule installation \x26 Demo : By "+r(da,"standard"));Aa?V.estimated_delivery_time&&(n.priorityCost=V.cost.value,V=V.estimated_delivery_time,va="",V&&(V=Number(V.split(":")[0]),12>V?va="AM":(12<V&&(V-=12),va="PM")),Aa=Number(e.time.split(",")[1].trim().substring(0,2)),ra=Number(e.time.split("GMT")[0].trim().slice(-8).split(":")[0])+5,59<Number(e.time.split("GMT")[0].trim().slice(-8).split(":")[1])+
30&&(ra+=1),23<ra&&(Aa+=1),sa=Aa===ha?"Today":Aa+1===ha?"Tomorrow":r(sa).split(",")[0],n.priorityText=ka+": "+sa+" by "+V+" "+va):va&&(n.mainText="Delivery by "+r(sa,"standard"))}}N?(n.subText=N,n.mainText=null):y&&(n.subText=y,n.priorityText=null)}else Y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");ea.local_dealers[0].store_name&&(n.decText="Fullfillment by : "+ea.local_dealers[0].store_name);ea.is_cod_available&&0>JSON.stringify(n.disclaimerList).indexOf("Cash on delivery is available.")&&
n.disclaimerList.push({disclaimer:Granite.I18n.get("Cash on delivery is available.")});0<ea.pickup_stores.length&&""!==ea.pickup_stores[0].store_name&&(Q.hasComponent=!0,Q.deliveryPickupStore=!0,Q.deliveryPickupStoreName=ea.pickup_stores[0].store_name);$.cookies.set("deliveryPincode",C,{domain:".quick3d.org",path:"/"+siteCode})}else Y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else Y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else Y=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");
F.delivery.errorMessage=Y},error:function(k){var F=w.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.");F.delivery.errorMessage=k},complete:function(){var k=w.view,F=w.drawObj;0===F.deliveryResult.priorityCost&&(F.deliveryResult.mainText=null);k.deliveryResultDraw(F);k.deliveryDraw(F);k.deliveryPickupStoreDraw(F);F.delivery.errorMessage&&($(t.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),
$(t.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(C));F.delivery.priorityDeliveryText&&$(t.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==F.deliveryResult.priorityText&&!0===F.tradeInResult.isUpfront?$(t.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==F.deliveryResult.priorityText&&!1===F.tradeInResult.isUpfront&&$(t.buyingToolOptDeliveryResult).find(".delivery-priority").show();J.buyingTool.bindPdTooltipEvent()}})};U.prototype.deliveryNewInAPI=
function(w,t,C,v){var f=w.apiDomain;"true"===$("#isEppPage").val()&&$("#eppCompanyCode").val();v=f+"/tokocommercewebservices/v2/"+w.siteCodeWithEpp+"/servicesv2/postal-code-check/getDeliveryTat?postCode\x3d"+C+"\x26sku\x3d"+v+"\x26field\x3dPDP_DELIVERY_INFO";w.drawObj.delivery.errorMessage=null;f="true"===$("#isEppPage").val()?{withCredentials:!0}:{};w.drawObj.deliveryResult={hasComponent:!1,priorityText:null,mainText:null,decText:null,disclaimerList:[{disclaimer:null}]};w.drawObj.deliveryPickupStore=
{hasComponent:!1,deliveryPickupStore:!1,deliveryPickupStoreName:"",disclaimerList:[]};$.ajax({url:v,type:"GET",dataType:"json",timeout:3E4,crossDomain:!0,xhrFields:f,contentType:"application/json",success:function(q,k,F){k=w.drawObj;var ea=k.delivery,e=k.deliveryResult,n=k.deliveryPickupStore,Q=null;k.delivery.ctaClass="cta--disabled";if(200==F.status)if((F=q.pdpDeliveryInfo.external_attributes)&&F.is_op_available)if(F.local_dealers&&F.local_dealers[0]&&F.local_dealers[0].serviceable){k.delivery.ctaClass=
"";w.cartPinCode=C;e.hasComponent=!0;ea.inputAttr.value=C;e.mainText=null;e.priorityText=null;F.local_dealers[0].estimated_delivery_date&&(e.mainText="Delivery : By "+r(F.local_dealers[0].estimated_delivery_date));if(F.local_dealers[0].shipping_methods&&0<F.local_dealers[0].shipping_methods.length){ea=F.local_dealers[0].shipping_methods;var Y=ea.find(function(ka){return ka.model_code.includes("SDD")})||ea.find(function(ka){return ka.model_code.includes("NDD")})||ea[0];if(Y){ea=Y.model_code.includes("SDD")||
Y.model_code.includes("NDD");var N=K(new Date),y=Y.estimated_delivery_date;N=Math.round((new Date(y)-new Date(N))/864E5);Y=Y.model_code.includes("EXPRESS");ea?(0==N?(e.priorityText="Priority Delivery : By Today",Y&&(e.priorityText="Delivery available in 4-6hrs.")):e.priorityText=1==N?"Priority Delivery : By Tomorrow":"Priority Delivery : By "+D(new Date(y)),e.mainText=null):e.mainText="Delivery : By "+D(new Date(y))}}q.deliveryTurnAroundTime&&(e.mainText?e.mainText=q.deliveryTurnAroundTime:e.priorityText&&
(e.priorityText=q.deliveryTurnAroundTime));q.pdpDeliveryInfo.earliest_installation_date&&(e.subText="Schedule installation \x26 Demo : By "+r(q.pdpDeliveryInfo.earliest_installation_date,""));F.local_dealers[0].store_name&&(e.decText="Fulfillment by : "+F.local_dealers[0].store_name);F.is_cod_available&&0>JSON.stringify(e.disclaimerList).indexOf("Cash on delivery is available.")&&e.disclaimerList.push({disclaimer:Granite.I18n.get("Cash on delivery is available.")});for(var R in F.local_dealers)if(F.local_dealers[R].click_and_collect&&
""!==F.local_dealers[R].store_name)if(n.hasComponent=!0,n.deliveryPickupStore=!0,n.deliveryPickupStoreName=F.local_dealers[R].store_name,q.pdpDeliveryInfo.bopisDescription&&0<q.pdpDeliveryInfo.bopisDescription.length)for(var V in q.pdpDeliveryInfo.bopisDescription)n.disclaimerList.push(q.pdpDeliveryInfo.bopisDescription[V]);else n.disclaimerList.push(Granite.I18n.get("Travel charger at \u20b91")),n.disclaimerList.push(Granite.I18n.get("Free travel charger will be automatically added to the cart, and the offer is valid until stocks last.")),
n.disclaimerList.push(Granite.I18n.get("Free customization on your Galaxy device")),n.disclaimerList.push(Granite.I18n.get("Free device set up")),n.disclaimerList.push(Granite.I18n.get("Call us at 7788997706 to know more (11:00 AM - 10:00 PM all days)"));$.cookies.set("deliveryPincode",C,{domain:".quick3d.org",path:"/"+siteCode})}else Q=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else Q=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");else Q=Granite.I18n.get("Sorry, we do not ship to your zipcode currently.");
k.delivery.errorMessage=Q},error:function(q){var k=w.drawObj;q.responseJSON?(q=q.responseJSON,q=q.message?Granite.I18n.get(q.message):Granite.I18n.get("We're sorry, an error occurred.")):q=Granite.I18n.get("We're sorry, an error occurred.");k.delivery.errorMessage=q},complete:function(){var q=w.view,k=w.drawObj,F="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView();q.deliveryResultDraw(k);q.deliveryDraw(k);q.deliveryPickupStoreDraw(k);k.delivery.errorMessage&&($(t.buyingToolOptDelivery).find(".text-field-v2__text.error").show(),
F||$(t.buyingToolOptDelivery).find("#delivery-zipcode").focus().val("").val(C));k.delivery.priorityDeliveryText&&$(t.buyingToolOptDelivery).find(".pd-select-option__tooltip").hide();null!==k.deliveryResult.priorityText&&!0===k.tradeInResult.isUpfront?$(t.buyingToolOptDeliveryResult).find(".delivery-priority").hide():null!==k.deliveryResult.priorityText&&!1===k.tradeInResult.isUpfront&&$(t.buyingToolOptDeliveryResult).find(".delivery-priority").show();w.util.checkAddToCart(w,t);J.buyingTool.bindPdTooltipEvent()}})};
U.prototype.externalAjax=function(w,t){t=w.apiDomain;var C=w.pdMultiLanguageYN,v=w.pdHrefLang,f={access_token:w.accessToken,skus:[w.shopSkuCode]};"true"===$("#isEppPage").val()&&(f.store_id=$("#eppCompanyCode").val());$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:t+"/v1/exchange/external",type:"POST",dataType:"json",data:JSON.stringify(f),timeout:1E4,xhrFields:{withCredentials:!0},beforeSend:function(q){"Y"===C&&q.setRequestHeader("x-ecom-locale",
v)},success:function(q){null!==q&&0<q.length&&w.afterEvent.offerAndAddonsDiscount(q,"galaxyapp")},error:function(q){var k="";q.responseJSON&&q.responseJSON.message&&(k=q.responseJSON.message);confirmPopup(k)},complete:function(){history.replaceState({},null,location.pathname)}})};U.prototype.exchangeInDataV1Api=function(w,t,C){var v={device_info:{imei:C.IMEI},offer_id:C.notselected_offer_id,device_id:C.device_id,postal_code:C.postal_code,sku:w.shopSkuCode};"true"===$("#isEppPage").val()&&(v.store_id=
$("#eppCompanyCode").val());C.dataQuoteId=C.id;C.foreverId=null;var f=w.apiDomain,q="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(f=$("#gpvStoreDomain").val(),q="/v1/exchange/api/ind/trade-in");$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:f+q,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,data:JSON.stringify(v),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)?(C.estimated_discount.exchange_discount.amount=k.estimated_discount.exchange_discount.amount,C.estimated_discount.total.amount=k.estimated_discount.total.amount,null!=k.estimated_discount.total.currency&&(C.estimated_discount.total.currency=k.estimated_discount.total.currency),C.dataQuoteId=k.id,C.foreverId=C.id):(C.dataQuoteId=C.id,C.foreverId=k.id))},complete:function(){w.util.settingExchangeAPIData(C,
w,t,w.view)}})};U.prototype.tradeInCeDataV1Api=function(w,t,C){var v={device_id:C.device_id,device_info:{product_condition:$(".radio-v2.active").children("input").val().toLowerCase()},offer_id:C.offer_id,postal_code:C.postal_code,sku:C.sku};"true"===$("#isEppPage").val()&&(v.store_id=$("#eppCompanyCode").val());C.dataQuoteId=C.id;C.foreverId=null;var f=w.apiDomain,q="/v1/exchange";-1<$("#shopIntegrationFlag").val().indexOf("Hybris-new")&&(f=$("#gpvStoreDomain").val(),q="/v1/exchange/api/ind/trade-in");
$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:f+q,type:"POST",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,data:JSON.stringify(v),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)?(C.estimated_discount.exchange_discount.amount=k.estimated_discount.exchange_discount.amount,C.estimated_discount.total.amount=
k.estimated_discount.total.amount,null!=k.estimated_discount.total.currency&&(C.estimated_discount.total.currency=k.estimated_discount.total.currency),C.dataQuoteId=k.id,C.foreverId=C.id):(C.dataQuoteId=C.id,C.foreverId=k.id))},complete:function(){w.util.settingExchangeAPIData(C,w,t,w.view)}})};U.prototype.calcularAPI=function(w){$.ajax({type:"GET",url:"apiDomain/br/ng/p4v1/calcShippingCost",data:{productCode:"modelCode",zipCode:w},dataType:"jsonp",jsonp:"callback",timeout:5E3,success:function(t){},
error:function(t){}})};U.prototype.waitSearchAPI=function(w,t){w.checkingBogoSearchFlag&&w.checkingComboSearchFlag&&w.checkingAddOnSearchFlag&&w.checkingGiftSearchFlag&&this.callSearchApi(w,t)};U.prototype.historyBackEvent=function(){-1!=navigator.userAgent.indexOf("Android 4.")&&navigator.userAgent.indexOf("AppleWebKit");var w="add-on",t="add on",C="-option-select";$(".hubble-addon-page").is(":visible")&&($(".hubble-addon-page").hasClass("is-gift-type")?(w="freegift",t="free gift",C="-cta-option alert popup"):
B.detailSharedObj.isVoucher&&(t=w="evoucher"));var v=!1;window.addEventListener("popstate",function(f){f&&(v=!0,$("body").css("display","none"),window.location.reload())});v||$("body").css("display","");setTimeout(function(){var f=new URL(location.href);f.searchParams.has("addon")||f.searchParams.set("addon",!0);history.pushState(null,document.title,f.toString());window.addEventListener("popstate",function(q){v||($("#content").is(":visible")?history.back():(q={htmlText:Granite.I18n.get("Your selections will not be saved if you exit. Exit window?",
null,i18n_hint),btnPrimaryText:Granite.I18n.get("Yes",null,i18n_hint),btnGhostText:Granite.I18n.get("No",null,i18n_hint),btnPrimaryAttrs:{"an-tr":"bridge_"+t+"-"+bcPageTrack()+C,"an-ca":"option click","an-ac":"bridge","an-la":w+":reset option:yes","data-modelcode":B.detailSharedObj.modelCode,"data-modeldisplay":B.detailSharedObj.displayName,"data-modelname":B.detailSharedObj.modelName,"data-modelrevenue":B.detailSharedObj.proudctPriceInfo.salePrice,"data-modelprice":B.detailSharedObj.proudctPriceInfo.salePrice,
"data-pvitype":B.detailSharedObj.pvitype.toLowerCase(),"data-pvisubtype":B.detailSharedObj.pvisubtype.toLowerCase(),"data-discountprice":B.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":B.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"},btnGhostyAttrs:{"an-tr":"bridge_"+t+"-"+bcPageTrack()+C,"an-ca":"option click","an-ac":"bridge","an-la":w+":reset option:no","data-modelcode":B.detailSharedObj.modelCode,"data-modeldisplay":B.detailSharedObj.displayName,"data-modelname":B.detailSharedObj.modelName,
"data-modelrevenue":B.detailSharedObj.proudctPriceInfo.salePrice,"data-modelprice":B.detailSharedObj.proudctPriceInfo.salePrice,"data-pvitype":B.detailSharedObj.pvitype.toLowerCase(),"data-pvisubtype":B.detailSharedObj.pvisubtype.toLowerCase(),"data-discountprice":B.detailSharedObj.proudctPriceInfo.salePrice,"data-pimsubtype":B.detailSharedObj.pimsubtype.toLowerCase(),"data-modelqty":"1"}},bc_confirm.notify(q,"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)};U.prototype.callSearchApi=function(w,t){var C=w.siteCode,v=w.pdStageInfo,f=w.pdSearchDomain+"/",q=[],k="",F=w.careAndWarrantySearchList,ea=w.careSearchList,e=w.addOnSearchList,n=
w.giftSearchList,Q=w.bogoSearchList,Y=w.comboSearchList;k=w.noComboSearchList=[];var N=w.realComboSearchList=[];for(Aa in F)q.push(F[Aa]);for(var y in ea)q.push(ea[y]);for(var R in e)q.push(e[R]);for(var V in n)q.push(n[V]);for(var ka in Q)q.push(Q[ka].sku);for(var va in Y){var Aa=Y[va];y=[];R=[];for(var sa in Aa)V=Aa[sa],"ecom"!==V.sku_source?(q.push(V.sku),R.push({sku:V.sku})):y.push(V);0===R.length&&w.globalComboData.push(y);k.push(y);N.push(R)}if(k=q.join(","))w.finishedSearch=!1;else return!1;
C={commonCodeYN:"Y",siteCode:C,modelList:k,saleSkuYN:"N",onlyRequestSkuYN:"Y"};va=(q="true"===$("#isEppPage").val())?"epp/v2":"b2c";q&&(C.companyCode=$("#eppCompanyCode").val(),window.sg.epp.common.isUserGroupPricing&&(C.groupName=window.sg.epp.common.groupName));$.ajax({url:f+v+"/"+va+"/product/card/detail/gpv2",type:"GET",data:C,dataType:"json",cache:!0,success:function(ha,ra,da){ra=ha.response;ha=w.util;if(200===ra.statusCode){var E=ra.resultData.productList;for(P in E){ra=E[P];da=ra.modelList;
for(var b in da){var x=da[b];ha.merge(w.totalSkuList,x.shopSKU,x,"searchProductCard");w.totalSkuList[x.shopSKU]&&(w.totalSkuList[x.shopSKU].categorySubTypeEngName=ra.categorySubTypeEngName,w.totalSkuList[x.shopSKU].categorySubTypeCode=ra.categorySubTypeCode,w.totalSkuList[x.shopSKU].familyIndex=P)}}w.addOnGift&&w.addOnGift.products&&0<w.addOnGift.products.length&&w.addOnGift.products.filter(function(ca){for(var h in E){var I=E[h];if(I.modelList&&0<I.modelList.length){I=I.modelList;for(var u in I)if(ca.modelCode===
I[u].modelCode)return E[h]}}});var P=[];if(w.addOnApiList&&w.addOnApiList.addOn&&w.addOnApiList.addOn.list&&0<w.addOnApiList.addOn.list.length){var H=w.addOnApiList.addOn.list;P=E.filter(function(ca){for(var h in H)for(var I in E){var u=E[I];if(u.modelList&&0<u.modelList.length){u=u.modelList;for(var A in u)if(H[h].discounted_sku===u[A].shopSKU)return ca}}});w.addOnSearchGPv2=P}}},error:function(ha,ra,da){},complete:function(){var ha=w.util,ra=w.bogoSearchList,da=w.addOnApiList,E=w.realComboSearchList;
if(da.careAndWarranty&&ha.isNotEmptyArray(da.careAndWarranty.list))for(var b in da.careAndWarranty.list){var x=da.careAndWarranty.list[b],P=x.sku;w.totalSkuList[P]&&$.extend(x,w.totalSkuList[P])}if(da.care&&ha.isNotEmptyArray(da.care.list))for(var H in da.care.list)b=da.care.list[H],x=b.discounted_sku,w.totalSkuList[x]&&$.extend(b,w.totalSkuList[x]);if(da.addOn&&ha.isNotEmptyArray(da.addOn.list)){for(var ca in da.addOn.list)H=da.addOn.list[ca],b=H.discounted_sku,w.totalSkuList[b]&&$.extend(H,w.totalSkuList[b]);
w.addOnCategoryList=w.addOnCategoryList.filter(function(fa){if(0<fa.category.productList.length)return fa})}if(da.addOn&&ha.isNotEmptyArray(da.gift.list)){ca=!1;for(H=0;H<da.gift.list.length;H++){b=da.gift.list[H];x=b.discounted_sku;P=w.totalSkuList[x];var h=P.inventory,I=!1;h&&h.status&&(I="NOORDER"===h.status.toUpperCase()||"OUTOFSTOCK"===h.status.toUpperCase());I?da.gift.list.splice(H--,1):P&&-1<P.apiType.indexOf("searchProductCard")&&($.extend(b,w.totalSkuList[x]),ca=!0)}ca||(w.drawObj.offer.gift.hasItem=
!1,w.view.productOfferDraw(w.drawObj));0===da.gift.list.length&&(w.hasAddOns?window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():setInterval(function(){B.DetailAfterEvent.addToCartCta([],!0,!0)},1E3))}if(ha.isNotEmptyArray(ra)){for(var u in ra)da=ra[u],ca=da.sku,w.totalSkuList[ca]&&$.extend(da,w.totalSkuList[ca]);d(w,t,ra)}if(ha.isNotEmptyArray(Y)){for(var A in E){ha=E[A];for(var T in ha)ra=ha[T],u=ra.sku,w.totalSkuList[u]&&$.extend(ra,w.totalSkuList[u])}l(w)}w.finishedSearch=!0;
w.util.afterTotalAPI(w,t)}})};U.prototype.callAddOnApi=function(w,t){var C=w.shopSkuCode,v=w.apiDomain.replace("/v6/","")+"/v4/configurator/add-ons-linear";C="sku\x3d"+C+"\x26expand_details\x3dtrue";"true"===$("#isEppPage").val()&&(C+="\x26store_id\x3d"+$("#eppCompanyCode").val());w.finishedAddOn=!1;$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},type:"GET",url:v,data:C,dataType:"json",timeout:1E4,async:!0,crossDomain:!0,xhrFields:{withCredentials:!0},
success:function(f){var q=0;for(Y in f.expanded.product_tags){q++;var k=f.expanded.product_tags[Y];w.addOnCategoryList.push({category:{display_name:!w.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:q,order:q,productList:[]}})}q=[];for(var F in f.products)for(var ea in w.addOnInfoTemp)f.products[F].sku===w.addOnInfoTemp[ea].discounted_sku&&q.push(f.products[F]);for(var e in w.addOnCategoryList)for(var n in q)for(var Q in q[n].product_tags)w.addOnCategoryList[e].category.product_tag===
q[n].product_tags[Q]&&w.addOnCategoryList[e].category.productList.push(q[n]);q=w.careAndWarrantySearchList=[];Q=w.careSearchList=[];F=w.addOnSearchList=[];n=w.giftSearchList=[];ea=w.addOnApiList;e=w.util;var Y="type2"!==w.pdSmcType;f&&f.products&&(w.hasAddonApiData=!0);for(var N in f.products)e.merge(w.totalSkuList,N,f.products[N],"addOn");if(Y){if(e.isNotEmptyArray(ea.careAndWarranty.list)){N=ea.careAndWarranty.list;for(var y in N)"ecom"!==N[y].sku_source&&q.push(N[y].discounted_sku)}if(e.isNotEmptyArray(ea.care.list)){y=
ea.care.list;for(var R in y)"ecom"!==y[R].sku_source&&Q.push(y[R].discounted_sku)}}if(e.isNotEmptyArray(ea.gift.list)){R=ea.gift.list;for(var V in R)R[V].discounted_sku&&n.push(R[V].discounted_sku);$.extend(w.addOnGift.expanded,f.expanded);f=w.addOnGift;w.giftFlag&&(f=f.expanded.product_tags||"",w.hasGift=f&&f.GIFT&&"addon_group"===f.GIFT.category&&"GIFT"===f.GIFT.product_tag_name?!0:!1)}if(e.isNotEmptyArray(ea.addOn.list)){f=ea.addOn.list;for(var ka in f)f[ka].discounted_sku&&F.push(f[ka].discounted_sku)}},
error:function(f){f.responseJSON&&f.responseJSON.message&&(f=f.responseJSON.message,confirmPopup(f))},complete:function(){var f=w.commonApiModel,q=w.addOnApiList,k=w.util;w.checkingAddOnSearchFlag=!0;w.finishedAddOn=!0;w.checkingGiftSearchFlag=!0;if(q.careAndWarranty&&k.isNotEmptyArray(q.careAndWarranty.list))for(var F in q.careAndWarranty.list){var ea=q.careAndWarranty.list[F],e=ea.sku;w.totalSkuList[e]&&$.extend(ea,w.totalSkuList[e])}if(q.care&&k.isNotEmptyArray(q.care.list))for(var n in q.care.list)F=
q.care.list[n],ea=F.discounted_sku,w.totalSkuList[ea]&&$.extend(F,w.totalSkuList[ea]);if(q.addOn&&k.isNotEmptyArray(q.addOn.list))for(var Q in q.addOn.list)n=q.addOn.list[Q],F=n.discounted_sku,w.totalSkuList[F]&&$.extend(n,w.totalSkuList[F]);if(q.addOn&&k.isNotEmptyArray(q.gift.list))for(var Y in q.gift.list)k=q.gift.list[Y],Q=k.discounted_sku,w.totalSkuList[Q]&&$.extend(k,w.totalSkuList[Q]);f.waitSearchAPI(w,t);w.util.afterTotalAPI(w,t)}})};U.prototype.settingWishList=function(w,t){var C=w.drawObj,
v=C.wishList,f=$.cookies.get("jwt_"+w.countryIsoCode,{domain:".quick3d.org"}),q=w.stockLevelStatus,k=w.proudctPriceInfo.salePrice,F=commonLoginCheck(),ea=w.apiDomain,e=w.pdMultiLanguageYN,n=w.pdHrefLang,Q=w.view,Y=-1<$("#shopIntegrationFlag").val().indexOf("GPv2"),N=w.util;v.stockLevelStatus=q;v.price=k;v.moCode=w.shopSkuCode?w.shopSkuCode:w.modelCode;v.moName=w.modelName;v.labelText=Granite.I18n.get("add wishlist")+" : "+w.modelName;v.targetId="#wishlist-popup";v.contentWrapperClass="NOORDER"===
q||"LEARNMORE"===q?"js-btn-wishlist js-not-for-sale-wishlist tg-add-wishlist js-learnmore":k?F?"s-btn-wishlist js-select-wishlist tg-add-wishlist":"s-btn-wishlist js-create-wishlist tg-add-wishlist":"js-btn-wishlist js-not-for-sale-wishlist js-learnmore tg-add-wishlist";Y?F?(C="","true"===$("#isEppPage").val()&&(C="?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":f},url:ea+"/v4/identity/wishlist"+C,type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(y){"Y"===e&&y.setRequestHeader("x-ecom-locale",n)},success:function(y,R,V){R=w.drawObj.wishList;V=R.moCode;if(y)for(var ka=0;ka<y.length;ka++){var va=y[ka];if(!1===va.deleted&&va.sku===V){R.labelText=Granite.I18n.get("Remove wishlist")+" : "+w.modelName;R.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist";R.isSelected=
"true";break}}},error:function(y,R,V){},complete:function(){var y=w.util;w.view.productWishListDraw(w.drawObj);y.settingWishlistTagging(w,t)}})):(Q.productWishListDraw(C),N.settingWishlistTagging(w,t)):-1<$("#shopIntegrationFlag").val().indexOf("Hybris-intg")?F?this.settingWishListOldHybris(w,t):(Q.productWishListDraw(C),N.settingWishlistTagging(w,t)):"Hybris"==$("#shopIntegrationFlag").val()&&w.isOldHybrisWishlist&&(F?this.settingWishListOldHybris(w,t):(Q.productWishListDraw(C),N.settingWishlistTagging(w,
t)));if(null===f||""===f)return!1};U.prototype.settingWishListOldHybris=function(w,t){var C="",v=""==w.multistoreSiteCd||"ae"!=w.siteCodeWithEpp&&"ae_ar"!=w.siteCodeWithEpp?!1:!0;$("#shopParmLang").val()&&(C="\x26lang\x3d"+$("#shopParmLang").val());var f=$("#newHyvStoreDomain").val(),q=f+"/tokocommercewebservices/v2/"+w.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productCode\x3d"+w.modelCode+C;v&&(q=f+"/tokocommercewebservices/v2/"+w.multistoreSiteCd+"/users/current/wishlist/default/product/exist?productCode\x3d"+
w.modelCode+C);$.ajax({url:q,type:"GET",timeout:2E4,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(k){var F=w.drawObj.wishList;k&&-1<k.toLowerCase().indexOf("my wishlist")&&(F.labelText=Granite.I18n.get("Remove wishlist")+" : "+w.modelName,F.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",F.isSelected="true")},error:function(k){},complete:function(){var k=w.util;w.view.productWishListDraw(w.drawObj);k.settingWishlistTagging(w,
t)}})};U.prototype.settinsUpgradeTncData=function(w,t){t=[w.shopSkuCode];var C=w.apiDomain,v="";isEPP&&(v="\x26store_id\x3d"+$("#eppCompanyCode").val());var f="true"===$("#isEppPage").val()?{withCredentials:!0}:{};$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:C+"/v1/tnc?display\x3dupgrade\x26tags\x3d"+t+v,type:"GET",dataType:"json",xhrFields:f,timeout:2E4,success:function(q,k,F){if(q){k=[];F=w.view;for(var ea=w.drawObj,e=0;e<q.length;e++){var n=
q[e].data;!0===n.is_active&&k.push({index:e,dataId:n.id,text:n.content,isReadOnly:!0===n.read_only,is_required:!0===n.is_required})}ea.upgrade.embedData.tncData=k;F.upgradeDraw(ea)}}})};U.prototype.offlineStockAjax=function(w){if("true"===$("#isEppPage").val()&&"true"==window.sg.epp.common.offlineFlag&&"OUTOFSTOCK"!=w.stockLevelStatus.toUpperCase()){var t=!1;"INSTOCK"===w.stockLevelStatus.toUpperCase()&&(t=!0);var C=!1;$.ajax({url:w.apiDomain+"/tokocommercewebservices/v2/"+$("#eppCompanyCode").val()+
"/users/current/agentStockInfo?productcodes\x3d"+w.shopSkuCode,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(v){v=v.inventory_info;null!=v&0<v.length&&1<=v[0].quantity_available&&(C=!0)},error:function(v,f,q){},complete:function(){if(t||C)$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-teal"),$("#offlineBadgeSpan").removeClass("badge-icon--bg-color-orange");t&&C?($("#offlineBadgeSpan").html(Granite.I18n.get("Available In-Store")),
$("#offlineBadgeSpan").addClass("badge-icon--bg-color-orange"),w.isStorePopup=!0):t&&!C&&($("#offlineBadgeSpan").html(Granite.I18n.get("Doorstep Delivery")),$("#offlineBadgeSpan").addClass("badge-icon--bg-color-teal"))}})}};U.prototype.fetchNewOfferFormat=function(w){var t=$.trim(w.offerText||"");if(""!==t){var C=$.trim(w.linkText||""),v=$.trim(w.url||"");w.newFormat={title:$.trim(w.title),offerText:t,linkEnabled:""!==C&&""!==v,linkText:C,linkUrl:v,imageUrl:$.trim(w.imageURL)};J.isDebug&&console.log(w)}};
B.BuyingToolOpAjaxCommon=U;var O=null;window.visualViewport.addEventListener("resize",function(){var w=document.activeElement;"input"===w.tagName.toLowerCase()&&"text"===w.type.toLowerCase()&&(clearTimeout(O),O=setTimeout(function(){w.scrollIntoView({behavior:"smooth",block:"center"})},200))})})();
(function(){function l(b,x){x="";var P=$.cookies.get("estoreSitecode",{domain:".quick3d.org"});if("levant"===b.siteCode)x="jo";else if("levant_ar"===b.siteCode)x="jo_ar";else if("n_africa"===b.siteCode)x="ma";else{if(b=("ae"===b.siteCode||"ae_ar"===b.siteCode)&&P)b=(new Set("ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" "))).has(P);b&&(x=P)}return x}function d(b,x,P,H){P=b.multistoreSiteCd;P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():siteCode;P=b.apiDomain+"/"+P+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+
b.modelCode;"py"===b.siteCode&&(P=b.apiDomain+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+b.modelCode);"Y"===b.hybrisJsonYn?$.ajax({url:P,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(ca,h,I){D(ca,b,x,H)},error:function(){J(b,x,H)},complete:function(){k(b,x)}}):$.ajax({url:P,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584_0",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},
success:function(ca,h,I){D(ca,b,x,H)},error:function(){J(b,x,H)},complete:function(){k(b,x)}})}function K(b,x,P,H){P=b.multistoreSiteCd;var ca="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():P,h="ca"===P||"ca_fr"===P,I=b.apiDomain+"/"+ca+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+b.modelCode,u="";h&&(u=getSECACountryRegion(),I=I+"\x26country_region\x3d"+u);"tr"===P?(P=b.apiDomain+"/"+ca+"/dotcom/v2/products?sku\x3d"+b.modelCode,ca="true"===$("#isEppPage").val()?{withCredentials:!0}:
{},$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:P,xhrFields:ca,type:"GET",dataType:"xml",timeout:1E4,success:function(A){$(A).find("product").each(function(){var T=$(this).find("modelName").text(),fa=$(this).find("url").text(),X=$(this).find("stockLevelStatus").text(),G=$(this).find("salesStatus").text(),z=$(this).find("price").text(),M=$(this).find("priceDisplay").text();b.modelCode==T?"inStock"==X&&"true"==G&&(X=X.toUpperCase(),
b.stockLevelStatus=X,b.apiChangeStockStatus=X,b.hasPriceCta=!0,b.buyNowUrl=fa,b.proudctPriceInfo.orignalPrice=z,b.proudctPriceInfo.orignalPriceFormatted=M,b.drawObj.price.priceWrapper.hasPriceWrapper=!0,b.util.settingPriceCta(b.hasPriceCta,b,x,H)):J(b,x,H)})},error:function(){J(b,x,H)},complete:function(){k(b,x)}})):"Y"===b.hybrisJsonYn?$.ajax({url:I,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(A,T,fa){r(A,b,x,H)},error:function(){J(b,
x,H)},complete:function(){k(b,x)}}):$.ajax({url:I,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(A,T,fa){r(A,b,x,H)},error:function(){J(b,x,H)},complete:function(){k(b,x)}})}function D(b,x,P,H){"0000"===b.resultCode&&x.modelCode===b.code?(x.hybrisApiData.shopAPI=b,b.apiType="realtime",U(b,x,P,H)):J(x,P,H)}function r(b,x,P,H){var ca=!1;"0000"===b.resultCode&&0<b.productDatas.length&&$.each(b.productDatas,
function(h,I){if(x.modelCode===I.productCode){x.hybrisApiData.shopAPI=I;x.blockEddDisplay=I.blockEddDisplay&&null!=I.blockEddDisplay?I.blockEddDisplay:"Y";x.blockPickupDisplay=x.isSENA&&0==I.blockPickupDisplay&&null!=I.blockPickupDisplay?"N":"Y";I.apiType="simple";B(I,x,P,H);U(I,x,P,H);if(x.useDeliveryMessage&&(h=I.aemAdditionalInfoTypes))for(var u=0;u<h.length;u++){var A=h[u];A&&"delivery_message"===A.type.toLowerCase()&&(x.deliveryMessage=A.aemAdditionalInfos[0].value)}I.backOrderMessage&&(x.backOrderMessage=
I.backOrderMessage);I.shippingETA&&(x.shippingMessage=I.shippingETA);ca=!0;return!1}});ca||(J(x,P,H),x.oldHybrisSalesStatus=!1,x.isSENA&&(x.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null));"0000"===b.resultCode&&"0000"===b.productDatas[0].resultCode&&"ON_SALE"===b.productDatas[0].salesStatus?x.oldHybrisSalesStatus=!0:(x.oldHybrisSalesStatus=!1,x.isSENA&&(x.drawObj.price.priceWrapper.info.howToReceiveTheProduct=null))}function B(b,x,P,H){if(b=b.aemAdditionalInfoTypes)for(H=0;H<b.length;H++){var ca=
b[H];if(ca){var h=ca.type.toLowerCase();"voucher"===h?(x.voucherdataHybris=ca.aemAdditionalInfos,x.hasVoucher=!0):"gift"===h?(x.giftdataHybris=ca.aemAdditionalInfos,x.hasGift=!0):"vdcombomessage"===h&&(x.vdcombodataHybris=ca.aemAdditionalInfos);h={};for(var I=0;I<ca.aemAdditionalInfos.length;h={$jscomp$loop$prop$util$373:h.$jscomp$loop$prop$util$373},I++){var u=ca.aemAdditionalInfos[I];u&&u.key&&u.value&&("discountValue"===u.key&&(x.splitPDTradeInSpecial=u.value),"discountmessage"===u.key&&(x.splitPDTradeInSpecialMsg=
u.value),"SELLING_WITH_BEZEL"===u.key&&(h.$jscomp$loop$prop$util$373=x.util,x.sellingWithBazel="true"==u.value?!0:!1,x.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(x,x.modelCode,function(A){return function(T,fa){var X=[],G=[],z=[],M=[];fa&&null!=T.products&&0<T.products.length&&$.each(T.products,function(S,W){var ba,ia,ta,qa,za,na="true"===(null==(ba=W.aemAdditionalInfoTypes[0])?void 0:null==(ia=ba.aemAdditionalInfos[0])?void 0:
ia.value)?null==(ta=W.aemAdditionalInfoTypes[0])?void 0:null==(qa=ta.aemAdditionalInfos[0])?void 0:null==(za=qa.key)?void 0:za.toUpperCase():"";ba=""!=W.imageUrl?!0:!1;ia=""==W.imageUrl?!0:!1;ta=W.imageUrl.replace("$ORIGIN_PNG$","");qa=W.stocklevel.toUpperCase();za=" is-disabled";if("INSTOCK"==qa||"BACKORDERED"==qa||"PREORDER"==qa||"LOWSTOCK"==qa)za="";""==x.bezelImageClass&&ba&&(x.bezelImageClass="pd-select-option__list--image-button");S={index:S,modelCode:W.modelcode,name:W.colorName,value:W.colorCode,
hasImage:ba,hasNotImage:ia,imageUrl:ta,disabledClass:za};"BEZEL_COLOR"===na?X.push(S):"BEZEL_MODERN"===na?G.push(S):"BEZEL_BEVELLED"===na?z.push(S):"FREESTYLE_COLOR"===na&&M.push(S)});x.noneTypeList=X;x.modernTypeList=G;x.beveledTypeList=z;x.freestyleList=M;A.$jscomp$loop$prop$util$373.settingBezelOptionDraw(x,P)}}(h),null,{queryType:"ADD_COLOR_FOR_VD"})))}}}}function J(b,x,P){b.util.settingPriceCta(!1,b,x,P)}function U(b,x,P,H){var ca=x.util,h=x.drawObj.price.priceWrapper,I=x.priceCurrency;"true"===
$("#isEppPage").val()&&"it"===x.siteCode&&((null===b.price||0===b.price)&&null!=b.promotionPrice&&0<b.promotionPrice&&(b.price=b.promotionPrice),x.proudctPriceInfo.b2cPrice=b.price);var u=b.price,A=b.promotionPrice,T;if((null==b?0:null==(T=b.merchFlags)?0:T.length)&&x.useHotDealBadge){var fa;if(T=b.merchFlags.find(function(ta){return"true"===(null==(fa=ta.attributes)?void 0:fa.isHotDealMerchFlag)&&"string"===typeof ta.code})){x.merchText=T.code;var X,G;null==(X=x.view)||null==(G=X.hotDealBadgeDraw)||
G.call(X,x.merchText)}}if(x.isNewElementLowestWasPrice)if(X=0,b.lowestWasPrice&&(X=b.lowestWasPrice.value?b.lowestWasPrice.value:0),"au"==siteCode)X<b.price&&X>b.promotionPrice?(u=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,x.isNewElementLowestWasPriceSetting=!0):x.isNewElementLowestWasPrice=!1;else if(b.lowestWasPrice&&b.lowestWasPrice.value)if(b.promotionPrice){if(X<=b.price&&X>b.promotionPrice||(x.isSENA||"pt"==siteCode)&&X>b.promotionPrice)u=b.lowestWasPrice.value?b.lowestWasPrice.value:
b.price,x.isNewElementLowestWasPriceSetting=!0;"true"===$("#isEppPage").val()&&"it"===x.siteCode&&(u=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,x.isNewElementLowestWasPriceSetting=!0)}else(x.isSENA||"pt"==siteCode)&&X>b.price&&(u=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price,A=b.price,x.isNewElementLowestWasPriceSetting=!0),X<=b.price&&(u=b.lowestWasPrice.value?b.lowestWasPrice.value:b.price);else"true"===$("#isEppPage").val()&&x.isSENA&&b.promotionPrice&&(x.isNewElementLowestWasPriceSetting=
!0);x.isNewElementLowestWasPriceHuType&&(X=0,b.lowestWasPrice&&(X=b.lowestWasPrice.value?b.lowestWasPrice.value:0),A&&0!==Number(A)&&u!==A&&0<X&&(x.isNewElementLowestWasPriceSettingHuType=!0),!0===x.isNewElementLowestWasPriceSettingHuType&&(x.proudctPriceInfo.wasPrice=X,x.proudctPriceInfo.wasPriceFormatted=currencyComma(X,I)));X=null!=b.stockLevelStatus?b.stockLevelStatus.toUpperCase():"";G=null!=b.stockLevelStatusDisplay?b.stockLevelStatusDisplay:"";var z=null!=b.savingInformation?b.savingInformation:
"",M="";M=T="";"ca"===x.siteCode||"ca_fr"===x.siteCode?x.savingInformation=z:"br"===x.siteCode?(z="",z=null!=b.SavingInformation?b.SavingInformation:"",x.savingInformation=z,M=null!=b.TaxPriceDisplay?b.TaxPriceDisplay:"",z=null!=b.price?b.price:"",x.taxPriceDisplay=M,"OUTOFSTOCK"==X&&(x.taxPriceDisplay=z,x.savingInformation=""),M=null!=b.savingValue?b.savingValue:"",x.savingValue=M,b.installmentPlan&&b.installmentPlan.storeText&&(T=null!=b.installmentPlan.storeText?b.installmentPlan.storeText:""),
x.storeText=T):"ar"===x.siteCode&&(x.taxPriceDisplay=null!=b.TaxPriceDisplay?currencyComma(b.TaxPriceDisplay,"ars").replaceAll(" ARS",""):"");"LOWSTOCK"==X&&(x.stockLevelStatusDisplay=G);"INSTOCK"==X||"LOWSTOCK"==X?(X=b.flagPreOrder&&"Y"===b.flagPreOrder?"PREORDER":"INSTOCK","ca"!==x.siteCode&&"ca_fr"!==x.siteCode||"Y"!==b.reserveNowBtnYn||(x.hasReserveInStore=!0)):"OUTOFSTOCK"==X?(x.isOutOfStock=!0,"realtime"!==b.apiType||x.useStockAlert?(x.useStockAlert&&(x.skuId=b.skuId),X="OUTOFSTOCK"):X="NOORDER"):
""==X&&(X="NOORDER");x.stockLevelStatus=X;x.apiChangeStockStatus=X;x.hasPriceCta=!0;ca.settingPriceCta(x.hasPriceCta,x,P,H);"realtime"===b.apiType&&(u=deleteCurrency(b.price,I).trim(),A=deleteCurrency(b.promotionPrice,I).trim());if("at"===x.siteCode)if(!1===(null==b?void 0:b.isFreeDeliveryCost)){x.proudctPriceInfo.shippingCostPopup={};x.proudctPriceInfo.isFreeDeliveryCost=b.isFreeDeliveryCost;var S;x.proudctPriceInfo.shippingCostPopup.deliveryModes=null==b?void 0:null==(S=b.deliveryModes)?void 0:
S.deliveryMode;var W;x.proudctPriceInfo.shippingCostPopup.deliveryServices=null==b?void 0:null==(W=b.deliveryServices)?void 0:W.deliveryService}else if(null==b?0:b.isFreeDeliveryCost)x.proudctPriceInfo.itsFreeDelivery=!0;A||(A=u);A&&0!==Number(A)&&(h.hasPriceWrapper="NOORDER"!==X?!0:!1,x.proudctPriceInfo.orignalPrice=u,x.proudctPriceInfo.orignalPriceFormatted=b.priceFormatted?b.priceFormatted:currencyComma(u,I),x.proudctPriceInfo.salePrice=A,x.proudctPriceInfo.salePriceFormatted=b.promotionPriceFormatted?
b.promotionPriceFormatted:A===u?x.proudctPriceInfo.orignalPriceFormatted:currencyComma(A,I),b.promotionPriceValidTo&&(x.proudctPriceInfo.promotionPriceValidTo=b.promotionPriceValidTo));if(x.isHyIntg&&b.aemAdditionalInfoTypes&&0<b.aemAdditionalInfoTypes.length){H=b.aemAdditionalInfoTypes;for(var ba in H)if(ca=H[ba],"TRADEIN"===ca.type&&ca.aemAdditionalInfos&&0<ca.aemAdditionalInfos.length)for(var ia in ca.aemAdditionalInfos)I=ca.aemAdditionalInfos[ia],"TRADEIN_TEXT"===I.key&&I.value&&(x.proudctPriceInfo.salePriceFormatted=
I.value)}"simple"===b.apiType&&O(x,P);h.info.summaryPrice=x.proudctPriceInfo.salePriceFormatted}function O(b,x){var P=b.multistoreSiteCd,H="ae ae_ar jo jo_ar sa sa_en za ma eg".split(" "),ca="";"true"===$("#isEppPage").val()&&H.includes(P)&&(ca="/nocache");H="ca"===P||"ca_fr"===P;P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():P;P=b.apiDomain+"/"+P+"/servicesv2"+ca+"/leasingInfo?productCode\x3d"+b.modelCode;ca="";H&&(ca=getSECACountryRegion(),P=P+"\x26country_region\x3d"+ca);ca="true"===
$("#isEppPage").val()?{withCredentials:!0}:{};"Y"===b.hybrisJsonYn?$.ajax({url:P,type:"GET",cache:!0,crossDomain:!0,xhrFields:ca,dataType:"json",timeout:2E4,success:function(h){w(h,b,x)}}):$.ajax({url:P,type:"GET",cache:!0,crossDomain:!0,xhrFields:ca,dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_171",timeout:2E4,success:function(h){w(h,b,x)}})}function w(b,x,P){if(b&&0<b.length){var H="";if("se"==siteCode){var ca=$("\x3cdiv\x3e"),h=0;$.each(b,function(I,u){if("se-fairownPaymentMode"===
u.paymentModeCode){var A=u.months/12,T=u.months,fa=Granite.I18n.get("Years"),X=Granite.I18n.get("months");fa=A+" "+fa+" ("+T+" "+X+")";var G=parseFloat(u.monthly);0===I&&(h=G);G<=h&&(h=G);u=$("\x3cdiv\x3e").addClass("checkbox-radio");fa=$("\x3cinput\x3e").attr({type:"radio",name:"model","data-monthly":G,"data-renewalPeriod":fa,"data-service-code":"SE-FAIROWN-TV-"+T,class:"belo4d-flex-popup__radio-item-input hidden",id:"radio-item-"+(I+1)});0===I&&fa.attr("checked","");I=$("\x3clabel\x3e").attr("for",
"radio-item-"+(I+1)).addClass("belo4d-flex-popup__smc-inner");X=$("\x3cspan\x3e").addClass("belo4d-flex-popup__smc-name");A=$("\x3cstrong\x3e").addClass("belo4d-flex-popup__smc-monthly").text(A+" \u00e5r ( "+T+" m\u00e5nader)");T=$("\x3cspan\x3e").addClass("belo4d-flex-popup__smc-price").text("");var z=$("\x3cspan\x3e").addClass("belo4d-flex-popup__smc-price").text("");X.append(A,T,z);A=$("\x3cspan\x3e").addClass("belo4d-flex-popup__smc-content");G=$("\x3cstrong\x3e").addClass("belo4d-flex-popup__smc-monthly").text(" "+
G+" kr/m\u00e5n");T=$("\x3cspan\x3e").addClass("belo4d-flex-popup__smc-price").text("");z=$("\x3cspan\x3e").addClass("belo4d-flex-popup__smc-price").text("");A.append(G,T,z);I.append(X,A);u.append(fa,I);ca.append(u)}else H=u});console.log("## [SAMS UPGRADE] ## Msg: Renewal plans data from the Leasing API is: ",ca);0<$(".belo4d-flex-popup__smc-renewal-plans-wrapper").length&&$(".belo4d-flex-popup__smc-renewal-plans-wrapper").html(ca);0<$("#trade-up-default-00").length&&(window.sg.components.belo4dFlexPopup.originalUptoDisplayPrice=
"Fr\u00e5n "+h+" kr/m\u00e5n",$("#trade-up-default-00").siblings(".pd-option-selector__label").find(".pd-option-selector__sub-text").text(window.sg.components.belo4dFlexPopup.originalUptoDisplayPrice));window.sg.components.belo4dFlexPopup&&(window.sg.components.belo4dFlexPopup.originalContentPriceSummaryPageLoad=window.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePriceFormatted,window.sg.components.belo4dFlexPopup.originalContentPriceNavigationPageLoad=window.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePriceFormatted)}else H=
b[0];x.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=H.monthly;x.proudctPriceInfo.monthlyPriceInfo.tenureVal=H.months;"hu"==siteCode&&(x.proudctPriceInfo.monthlyPriceInfo.interest=H.interest);null!==H.monthly&&""!==H.monthly&&void 0!==H.monthly&&(x.drawObj.price.priceWrapper.isLeasingInfo=!0);x.util.totalAfterFunction(x,P)}b&&0<b.length&&($.each(b,function(I,u){if("ru"!=siteCode&&"24"==u.months||"ru"==siteCode&&"12"==u.months)x.proudctPriceInfo.leaseInfo.upfront=null!=u.upfront&&""!=u.upfront?u.upfront:
0,x.proudctPriceInfo.leaseInfo.monthly=null!=u.monthly&&""!=u.monthly?u.monthly:"",x.proudctPriceInfo.leaseInfo.month=null!=u.months&&""!=u.months?u.months:""}),ka(x,P))}function t(b,x,P,H){var ca=b.drawObj,h=b.util,I=b.buyNowUrlYn,u=b.buyNowUrl,A=b.multistoreSiteCd,T=b.configuratorUrl,fa=b.ctaLocalText,X=b.configuratorUseYn,G=$("#tempTitle").val(),z=$("#shopIntegrationFlag").val(),M=b.wtbUseYn,S=b.wtbDispFuncUseYN,W=ca.price,ba="",ia={},ta="javascript:;",qa="",za={},na="javascript:;",a={};a.modelName=
b.modelName;a.dataTtile=b.pdRemoveTagTxt;a.imgSrc=b.wtbSrc;a.iaCode=b.wtbSubTypeCode;a.dataModelCode=b.modelCode;ba=!0;"Hybris"===z||"Hybris-intg"===z?"N"!==globalShopInfo.shopServiceYN&&b.oldHybrisSalesStatus||(ba=!1):"Hybris-new"===z?b.newHybrisSalesStatus||(ba=!1):"GPv2"===z&&b.accessoryDisabled&&(ba=!1);"mx"===siteCode&&(M="N");I?u?(qa=ba="js-buy-now tg-buy-now",z=I=Granite.I18n.get("buy now"),na=ta=u):(qa=ba="js-cta-buy tg-wtb",z=I=Granite.I18n.get("Where to buy"),za.modelName=b.modelName,za.dataTtile=
b.pdRemoveTagTxt,za.imgSrc=b.wtbSrc,za.iaCode=b.wtbSubTypeCode,za.dataModelCode=b.modelCode,ia=za,"mx"===siteCode&&(z=I=Granite.I18n.get("not for sale"),qa=ba="cta--disabled tg-not-for-sale")):z?"Y"===M?"Y"===S&&"3rd"!==z?ba?(ia.moCode=b.shopSkuCode,ia.ctaType="add-cart",za=ia,z=I=Granite.I18n.get("Add to cart"),qa=ba="js-buy-now tg-add-to-cart"):(qa=ba="js-cta-buy tg-wtb",z=I=Granite.I18n.get("Where to buy"),za=ia=a):(qa=ba="js-cta-buy tg-wtb",z=I=Granite.I18n.get("Where to buy"),za=ia=a):(z=I=Granite.I18n.get("not for sale"),
qa=ba="cta--disabled tg-not-for-sale"):"Y"===M?(qa=ba="js-cta-buy tg-wtb",z=I=Granite.I18n.get("Where to buy"),za=ia=a,u="true"===$("#isEppPage").val()?{withCredentials:!0}:{},"tr"===A&&$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:b.apiDomain+"/"+A+"/dotcom/v2/products?sku\x3d"+b.modelCode,type:"GET",dataType:"xml",xhrFields:u,timeout:1E4,success:function(c){$(c).find("product").each(function(){var m=$(this).find("modelName").text(),
g=$(this).find("url").text(),p=$(this).find("stockLevelStatus").text(),aa=$(this).find("salesStatus").text(),L=$(this).find("price").text(),ma=$(this).find("priceDisplay").text();b.modelCode==m?"inStock"==p&&"true"==aa&&(p=p.toUpperCase(),b.stockLevelStatus=p,b.apiChangeStockStatus=p,b.hasPriceCta=!0,b.buyNowUrl=g,b.proudctPriceInfo.orignalPrice=L,b.proudctPriceInfo.orignalPriceFormatted=ma,b.drawObj.price.priceWrapper.hasPriceWrapper=!0,b.util.settingPriceCta(b.hasPriceCta,b,x,H)):J(b,x,H)})},error:function(){J(b,
x,H)},complete:function(){k(b,x)}})):(z=I=Granite.I18n.get("not for sale"),qa=ba="cta--disabled tg-not-for-sale");"Y"===X&&"page-standard-pd"===G&&(""!==T&&null!==T?(na=ta=T,ia.ctaType="",za=ia,qa=ba="configuratorUse-y"):qa=ba="cta--disabled configuratorUse-y",""!==fa&&null!==fa&&(z=I=fa),W.configuratorEnabled=!0,$(".pd-g-product-detail-header-ux2").hide());W.isNotForSale=!W.configuratorEnabled&&z===Granite.I18n.get("not for sale");W.wtbAttr=h.getAttrCta(void 0,"javascript:;","_self","",{});W.containedAttr=
h.getAttrCta(I,ta,"_self",ba,ia);W.anchorNaviAttr=h.getAttrCta(z,na,"_self",qa,za);h.settingForBusiness(b,x);P.productDraw(ca);h.settingPriceDraw(b,x);b.commonApiModel.settingWishList(b,x);h.clickEventListener(b,x)}function C(b,x,P,H,ca,h){if(!da){da=!0;var I="br"===b.siteCode||"latin"===b.siteCode||"ar"===b.siteCode||"py"===b.siteCode;"true"===$("#isEppPage").val()&&(I="br"===b.siteCode||"latin"===b.siteCode||"ar"===b.siteCode||"py"===b.siteCode);I?f(b,H,ca):v(b,x,P,H,ca,h)}}function v(b,x,P,H,ca,
h){var I="Hybris-new"===$("#shopIntegrationFlag").val(),u="",A=0,T=!0,fa=!1,X="",G=!1,z={products:[]};if("id"==b.siteCode||"my"==b.siteCode)X=$("#delivery-zipcode").val();if(b.modelCode){if(b.exchangeApiData&&b.exchangeApiData.exchangeFlag&&b.ceTradeUpPopup.isEnabled)if(CeTradeUpPopup.context.modelPackage)for(var M=$jscomp.makeIterator(CeTradeUpPopup.context.modelPackage.models),S=M.next();!S.done;S=M.next()){var W=S.value;S={productCode:W.modelCode,quantity:1};var ba="products["+A+"]";u+=ba+".productCode\x3d"+
W.modelCode+"\x26"+ba+".quantity\x3d1";W.modelCode===CeTradeUpPopup.context.modelCode&&(S.services=[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}],W="\x26"+ba+".services[0]",u+=W+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+W+".provider\x3dEXCHANGE");z.products.push(S);A++}else M=b.proudctPriceInfo.productCartCount&&1<b.proudctPriceInfo.productCartCount?b.proudctPriceInfo.productCartCount:1,u+="products["+A+"].productCode\x3d"+b.modelCode,u+="\x26products["+A+"].quantity\x3d"+
M,S="\x26products["+A+"].services[0]",u+=S+".exchangeId\x3d"+b.exchangeApiData.dataQuoteId+S+".provider\x3dEXCHANGE",z.products.push({productCode:b.modelCode,quantity:M,services:[{exchangeId:b.exchangeApiData.dataQuoteId,provider:"EXCHANGE"}]}),A++;else M=b.proudctPriceInfo.productCartCount&&1<b.proudctPriceInfo.productCartCount?b.proudctPriceInfo.productCartCount:1,u+="products["+A+"].productCode\x3d"+b.modelCode,u+="\x26products["+A+"].quantity\x3d"+M,z.products.push({productCode:b.modelCode,quantity:M}),
A++;("id"==b.siteCode&&I||"my"==b.siteCode)&&null!=X&&void 0!=X&&""!=X&&(u+="\x26products[0].postalCode\x3d"+X,z.products[0].postalCode=X);b.giftCard.isGiftCard&&b.giftCard.cartGiftCardCode&&(X={key:"giftcard_personalized_message",value:b.giftCard.personalizedMessage},M=[{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&&M.push(X),u+="\x26products[0].productCode\x3d"+b.giftCard.cartGiftCardCode,u+="\x26products[0].quantity\x3d1",z.products[0].additionalInfos=M)}b.cartBezelCode&&(u+="\x26products["+A+"].productCode\x3d"+b.cartBezelCode,u+="\x26products["+A+"].quantity\x3d1",z.products.push({productCode:b.cartBezelCode,quantity:1}),A++);var ia=0;X=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 ta=b.drawObj.tradeInResult.list;ia=ta.length;$.each(ta,function(m,g){var p=g.services;if(null==p.tradeInType||void 0==p.tradeInType)p.tradeInType="IMEI";
$.each(p.tradeInAdditionalInfo,function(ma,ua){"sg"!=siteCode||"compasia.imei"!=ua.key||isNotEmpty(ua.value)||(ua.value=p.imeiKey);isNotEmpty(p.imeiKey)||ua.key!=p.tradeInType||(p.imeiKey=ua.value)});u+="\x26products[0].services["+m+"].serviceCode\x3d"+encodeURIComponent(p.tradeinId);u+="\x26products[0].services["+m+"].additionalInfos[0].key\x3d"+p.tradeInType;u+="\x26products[0].services["+m+"].additionalInfos[0].value\x3d"+p.imeiKey;g={serviceCode:p.tradeinId,additionalInfos:[{key:p.tradeInType,
value:p.imeiKey}]};var aa=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&aa&&(g.serviceCode=p.tradeinId,g.provider=p.provider,g.additionalInfos.push({key:"deviceSku",value:p.tradeinId}));"fr"==siteCode&&p.serviceType&&null!=p.serviceType&&void 0!=p.serviceType&&(g.serviceType=p.serviceTypeCode);sa(z,g);"au"==siteCode&&""!=p.tradeInPrice&&void 0!=p.tradeInPrice&&z.products[0].services[m].additionalInfos.push({key:"discountAmount",value:p.tradeInPrice});
if("de"!=siteCode&&1<ta.length||"de"==siteCode&&1<b.maxTradeInsAllowed)u+="\x26products[0].services["+m+"].addToCartType\x3dAPPEND",z.products[0].services[m].addToCartType="APPEND";var L=1;""!=p.questionAndAnswer&&void 0!=p.questionAndAnswer&&(u+="\x26products[0].services["+m+"].additionalInfos["+L+"].key\x3dquestionAndAnswer",u+="\x26products[0].services["+m+"].additionalInfos["+L+"].value\x3d"+encodeURIComponent(JSON.stringify(p.questionAndAnswer)),z.products[0].services[m].additionalInfos.push({key:"questionAndAnswer",
value:JSON.stringify(p.questionAndAnswer)}),L++,$.each(p.questionAndAnswer,function(ma,ua){u+="\x26products[0].services["+m+"].assessmentCriteria["+ma+"].name\x3d"+ua.name;u+="\x26products[0].services["+m+"].assessmentCriteria["+ma+"].value\x3d"+ua.value;z.products[0].services[m].assessmentCriteria||(z.products[0].services[m].assessmentCriteria=[]);z.products[0].services[m].assessmentCriteria.push({name:ua.name,value:ua.value})}));null!=p.tradeInAdditionalInfo&&void 0!=p.tradeInAdditionalInfo&&$.each(p.tradeInAdditionalInfo,
function(ma,ua){u+="\x26products[0].services["+m+"].additionalInfos["+L+"].key\x3d"+ua.key;u+="\x26products[0].services["+m+"].additionalInfos["+L+"].value\x3d"+encodeURIComponent(ua.value);z.products[0].services[m].additionalInfos.push({key:ua.key,value:ua.value});L++})})}}else if(X.tradein&&X.tradein.tradeinId&&!b.ceTradeUpPopup.isEnabled){ia=1;X.tradein.tradeInType||(X.tradein.tradeInType="IMEI");u+="\x26products[0].services[0].serviceCode\x3d"+X.tradein.tradeinId;u+="\x26products[0].services[0].additionalInfos[0].key\x3d"+
X.tradein.tradeInType;u+="\x26products[0].services[0].additionalInfos[0].value\x3d"+X.tradein.imeiKey;M={serviceCode:X.tradein.tradeinId,additionalInfos:[{key:X.tradein.tradeInType,value:X.tradein.imeiKey}]};S=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck();"de"==siteCode&&S&&(M.serviceCode=X.tradein.tradeinId,M.provider=X.tradein.provider,M.additionalInfos.push({key:"deviceSku",value:X.tradein.tradeinId}));"fr"==siteCode&&X.tradein.serviceType&&null!=X.tradein.serviceType&&
void 0!=X.tradein.serviceType&&(M.serviceType=X.tradein.serviceTypeCode);sa(z,M);var qa=1;"ca"!==b.siteCode&&"ca_fr"!==b.siteCode&&X.tradein.questionAndAnswer&&(u+="\x26products[0].services[0].additionalInfos["+qa+"].key\x3dquestionAndAnswer",u+="\x26products[0].services[0].additionalInfos["+qa+"].value\x3d"+JSON.stringify(X.tradein.questionAndAnswer),I?z.products[0].services[0].additionalInfos.push({key:"questionAndAnswer",value:encodeURIComponent(JSON.stringify(X.tradein.questionAndAnswer))}):z.products[0].services[0].additionalInfos.push({key:"questionAndAnswer",
value:JSON.stringify(X.tradein.questionAndAnswer)}),qa++,$.each(X.tradein.questionAndAnswer,function(m,g){u+="\x26products[0].services[0].assessmentCriteria["+m+"].name\x3d"+g.name;u+="\x26products[0].services[0].assessmentCriteria["+m+"].value\x3d"+g.value;z.products[0].services[0].assessmentCriteria||(z.products[0].services[0].assessmentCriteria=[]);z.products[0].services[0].assessmentCriteria.push({name:g.name,value:g.value})}));X.tradein.tradeInAdditionalInfo&&$.each(X.tradein.tradeInAdditionalInfo,
function(m,g){u+="\x26products[0].services[0].additionalInfos["+qa+"].key\x3d"+g.key;u=I?u+("\x26products[0].services[0].additionalInfos["+qa+"].value\x3d"+g.value):u+("\x26products[0].services[0].additionalInfos["+qa+"].value\x3d"+encodeURIComponent(g.value));z.products[0].services[0].additionalInfos.push({key:g.key,value:g.value});qa++});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"my"===b.siteCode||"de"===b.siteCode&&!S)fa=!0,z.clearCart=!0;if("lt"===siteCode||"lv"===siteCode||
"ee"===siteCode)X.tradein.cartAdditionalInfos&&0<X.tradein.cartAdditionalInfos.length&&(S={key:"IMEI",value:X.tradein.imeiKey?X.tradein.imeiKey:""},M.additionalInfos=X.tradein.cartAdditionalInfos,M.additionalInfos.unshift(S)),M.targetProductCode=b.modelCode}b.useWarrantyVd&&$(".option-result--extended-warranty-option .option-result__text-wrap").data("model-code")&&(u+="\x26products[0].services[0].serviceCode\x3d"+encodeURIComponent($(".option-result--extended-warranty-option .option-result__text-wrap").data("model-code")),
sa(z,{serviceCode:encodeURIComponent($(".option-result--extended-warranty-option .option-result__text-wrap").data("model-code"))}),b.drawObj.warrantyResult.isMonthlyYn&&sa(z,{additionalInfos:[{key:"paymentCycle",value:"MONTHLY"}]}));X.care&&X.care.discounted_sku&&(u+="\x26products[0].services["+ia+"].serviceCode\x3d"+encodeURIComponent(X.care.discounted_sku),sa(z,{serviceCode:"true"===$("#isEppPage").val()?X.care.discounted_sku:-1<X.care.discounted_sku.indexOf("+")?X.care.discounted_sku:encodeURIComponent(X.care.discounted_sku)}),
ia++);if(X.tariff&&X.tariff.tariffId){if(I){if("fr"===b.siteCode){var za={};za.planId=X.tariff.tariffId;za.serviceType="SIM_PLAN";sa(z,za)}else if(X.tariff&&X.tariff.modelCode&&X.tariff.simSkuCode)if(u+="\x26products[0].services["+ia+"].planId\x3d"+X.tariff.modelCode,u+="\x26products[0].services["+ia+"].serviceCode\x3d"+X.tariff.simSkuCode,X.tariff.isBroadbandService){u+="\x26products[0].services["+ia+"].serviceType\x3dBROADBAND_PLAN";var na=0<(X.tariff.tariffArr||[]).length?X.tariff.tariffArr[0]:
{};u+=function(){var m=[],g;for(g in na)m.push("\x26products[0].services["+ia+"].serviceAddress."+g+"\x3d"+encodeURIComponent(na[g]));return m.join("")}();sa(z,{planId:X.tariff.modelCode,serviceCode:X.tariff.simSkuCode,serviceType:"BROADBAND_PLAN",serviceAddress:na})}else sa(z,{planId:X.tariff.modelCode,serviceCode:X.tariff.simSkuCode});if("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)fa=!0}else za={},"se"===b.siteCode||"no"===b.siteCode||"dk"===
b.siteCode||"au"===b.siteCode?(za.planId=X.tariff.tariffId,za.serviceType="SIM_PLAN",z.clearCart=!0):za.serviceCode=X.tariff.tariffId,u+="\x26products[0].services["+ia+"].serviceCode\x3d"+X.tariff.tariffId,$.each(X.tariff.tariffArr,function(m,g){u+="\x26products[0].services["+ia+"].additionalInfos["+m+"].key\x3d"+g.key;u+="\x26products[0].services["+ia+"].additionalInfos["+m+"].value\x3d"+g.value;za.additionalInfos||(za.additionalInfos=[]);za.additionalInfos.push({key:g.key,value:g.value})}),sa(z,
za);ia++}X.combo&&0<X.combo.length&&$.each(X.combo,function(m,g){u+="\x26products["+A+"].productCode\x3d"+g.modelCode;u+="\x26products["+A+"].quantity\x3d1";z.products.push({productCode:g.modelCode,quantity:1});A++;("nl"===b.siteCode||"be"===b.siteCode||"be_fr"===b.siteCode||"de"===b.siteCode||"fr"===b.siteCode)&&null!=g&&-1<g.modelCode.indexOf("SIM")&&(fa=!0)});X.embedaddon&&0<X.embedaddon.length&&$.each(X.embedaddon,function(m,g){u+="\x26products["+A+"].productCode\x3d"+g;u+="\x26products["+A+"].quantity\x3d1";
z.products.push({productCode:g,quantity:1});A++});var a=!1;X=!1;if(ca){if(A=0,u="",z.products=[],$.each(x,function(m,g){u+=(""===u?"":"\x26")+"products["+A+"].productCode\x3d"+g;u+="\x26products["+A+"].quantity\x3d1";z.products.push({productCode:g,quantity:1});A++;a=!0}),h&&0<Object.keys(h).length)for(x=$jscomp.makeIterator(h.modelCode),h=x.next();!h.done;h=x.next())if(modelCode=h.value)u+=(""===u?"":"\x26")+"products["+A+"].productCode\x3d"+modelCode,u+="\x26products["+A+"].quantity\x3d1",A++,z.products.push({productCode:modelCode,
quantity:1}),X=!0}else H||(T=!1);x=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl;void 0!==x&&("ae"===siteCode?x=x.replace("/ae/","/"+b.multistoreSiteCd+"/"):"ae_ar"===siteCode&&(x=x.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")));var c=$("#storeWebDomain").val();x="";0==z.products.length&&(z={});h="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd;I?(u=encodeURI(u),x=c+"/"+h+"/ng/p4v1/addToCart?"+u):x=b.apiDomain+"/"+h+
"/ng/p4v1/addToCart?"+u;if(a||X)fa=!1,x+="\x26clearCart\x3dfalse",z.clearCart=!1;fa&&(I||"my"===b.siteCode)&&(x+="\x26clearCart\x3dtrue",z.clearCart=!0);"Y"==b.addToCartPostYn&&(x=I?c+"/"+h+"/servicesv2/addToCart":b.apiDomain+"/"+h+"/servicesv2/addToCart");$(".cm-loader").show();!ca||a||X?"Y"==b.addToCartPostYn?(G=!0,$.ajax({url:x,type:"POST",data:JSON.stringify(z),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),T){m=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl;void 0!==m&&("ae"===siteCode?m=m.replace("/ae/","/"+b.multistoreSiteCd+"/"):"ae_ar"===siteCode&&(m=m.replace("/ae_ar/","/"+b.multistoreSiteCd+"/")));m="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":m;var g="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
b.multistoreSiteCd,p="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode||"fr"===siteCode,aa=$("#pd-leasing-1").prop("checked"),L=b.drawObj.between.nonPurchase.paymentModeCode;location.href=p&&aa&&null!==L?c+"/"+g+"/cart/payment/"+L:m}else $(".cm-loader").hide(),da=!1;else $(".cm-loader").hide(),da=!1,q(m),"ca"!=siteCode&&"ca_fr"!=siteCode||H||ca||(window.scrollTo(0,0),$(".pdd16-step-buying").hide(),$(".pdd16-step-buying").html(E),$(".pdd16-step-buying").siblings().add($(".pdd16-step-buying").parent().siblings()).show(),
$(".add-ons-evoucher-popup").hide(),b.util.clickEventListener(b,P))},error:function(m){$(".cm-loader").hide();da=!1;q(m)},complete:function(){}})):0==G&&("Y"===b.hybrisJsonYn?$.ajax({url:x,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),T){var g=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:
b.apiDomain+b.cartUrl,p="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode||"fr"===siteCode,aa=$("#pd-leasing-1").prop("checked");m=b.drawObj.between.nonPurchase.paymentModeCode;g="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":g;p&&aa&&null!==m?(p="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+p+"/cart/payment/"+m):location.href=g}else $(".cm-loader").hide(),da=!1;else $(".cm-loader").hide(),da=!1,
q(m)},error:function(m){$(".cm-loader").hide();da=!1;q(m)}}):(G="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:x,type:"GET",data:{},dataType:"jsonp",xhrFields:G,jsonp:"callback",timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(m){if("0000"===m.resultCode||"0002"===m.resultCode)if(updateTotalCartCount(m.cartCount),T){var g=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,p="be"===siteCode||"be_fr"===siteCode||
"nl"===siteCode||"fr"===siteCode,aa=$("#pd-leasing-1").prop("checked");m=b.drawObj.between.nonPurchase.paymentModeCode;g="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":g;p&&aa&&null!==m?(p="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():b.multistoreSiteCd,location.href=c+"/"+p+"/cart/payment/"+m):location.href=g}else $(".cm-loader").hide(),da=!1;else $(".cm-loader").hide(),da=!1,q(m)},error:function(m){$(".cm-loader").hide();da=!1;q(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+"/")),G=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,G="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":G,location.href=G):(G=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:
b.apiDomain+b.cartUrl,G="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":G,location.href=G)}function f(b,x,P){x="";b.modelCode&&(x+="productCode\x3d"+b.modelCode,x+="\x26quantity\x3d1",b.exchangeApiData&&b.exchangeApiData.exchangeFlag&&b.ceTradeUpPopup.isEnabled&&(x+="\x26services[0].exchangeId\x3d"+b.exchangeApiData.dataQuoteId+"\x26services[0].provider\x3dEXCHANGE"));P=b.multistoreSiteCd;P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
P;x=b.apiDomain+"/"+P+"/ng/p4v1/addCart?"+x;"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:(P="true"===$("#isEppPage").val()?{withCredentials:!0}:{},$.ajax({url:x,type:"GET",data:{},dataType:"jsonp",xhrFields:P,jsonp:"callback",async:!1,timeout:1E4,beforeSend:function(){$(".cm-loader").show()},success:function(H){$(".cm-loader").hide();
"0000"===H.resultCode?(updateTotalCartCount(H.cartCount),H=-1<b.cartUrl.indexOf("https://")||-1<b.cartUrl.indexOf("http://")?b.cartUrl:b.apiDomain+b.cartUrl,H="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":H,location.href=H):(da=!1,q(H))},error:function(H){$(".cm-loader").hide();da=!1;q(H)}}))}function q(b){var x=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&&(x=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?x=b.products[0].resultMessage:b.resultMessage?x=b.resultMessage:b.responseJSON&&b.responseJSON.message&&(x=b.responseJSON.message):b.resultMessage?x=b.resultMessage:b.responseJSON&&b.responseJSON.message&&(x=b.responseJSON.message)):b.resultMessage?
x=b.resultMessage:b.responseJSON&&b.responseJSON.message&&(x=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&&(x="Please remove belo4d Flex or belo4d Upgrade to order multiple items, or place a separate order.");confirmPopup(x,"error")}function k(b,x){var P=b.drawObj,H=b.view,ca=b.isGPv2AndHyIntg,h=b.isHybrisSplitPD,I=b.isHybrisSplitPDTradeIn,
u=b.isHybrisSplitPDbelo4dCarePlus,A=b.isHybrisSplitPDUpgrade,T=b.isHybrisSplitPDTariff,fa=b.util;$("#categoryGroupCode").val();"au"===siteCode&&b.categoryTypeCode.startsWith("01")&&tariffData.setTariff();fa.settingShippingOrBack(b);fa.totalAfterFunction(b,x);fa.clickEventListener(b,x);if(ca||h){I&&(ca=$("#tempTitle").val(),h=(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck(),I="jp"===siteCode?V(b,"TRADE_IN"):!0,h?I&&((new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein"),
bc_common_tradeIn.init()):!b.ceTradeUpPopup.isEnabled||"page-buying-pd"!=ca&&"page-standard-pd"!=ca?(ca=$("#categoryTypeCode").val(),"levant"==siteCode||"levant_ar"==siteCode||"tw"==siteCode||"vn"==siteCode&&ca.startsWith("0805")||"undefined"!==typeof tradeinData&&tradeinData.setTradein()):(0===$("#ce-trade-up-popup-section").length&&(ca=b.ceTradeUpPopup.productCategoryGroup,h=b.ceTradeUpPopup.productCategoryMainType,"at"!==siteCode||"rf"!==h&&"wm"!==h&&"vc"!==h||(ca=h),(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("ce-tradeup."+
ca)),window.CeTradeUpPopup.init(b.modelCode)));u&&("ca"===siteCode||"ca_fr"===siteCode?b.useWarrantyVd||configuratorCare.setProductInfo():configuratorCare.setProductInfo());if(A){var X=b.siteCode;h=b.util;I=b.isHybrisSplitPDUpgrade;var G=b.stockLevelStatus;I&&(b.upgradeFlag=!0);u=b.upgradeFlag;var z={};ca={};A=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 M=!1;if(I){var S=Granite.I18n.get("Learn more");
z.layerTarget="upgradeLearnMorePopup";I=Granite.I18n.get("belo4d Upgrade");if("es"==X){if("INSTOCK"==G||"LOWSTOCK"==G)M=!0}else M=!0;M&&(X={"class":"hybris-es-yes",text:Granite.I18n.get("belo4d Upgrade")},G={"class":"hybris-es-no",text:Granite.I18n.get("No, thanks"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"},h=h.getAttrCta(S,"javascript:;","_self","",z,""),P.upgrade={hasComponent:u,isEmbededType:!1,isNotEmbededType:!0,title:I,learnMoreCta:h,description:A,yesAttr:X,noAttr:G,embedData:ca})}}T&&
configuratorTariff.setProductInfo()}V(b,"FAIROWN_FLEX")&&(console.log("## [SAMS UPGRADE] ## Msg: FAIROWN_FLEX is available for this product, hence displaying the view."),0<$(".pd-belo4d-upgrade-wrapper").length&&$(".pd-belo4d-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&&(V(b,"BENEFIT")&&F(b,x),V(b,"SIM")&&(b.simpleInfoSIM=!0));T=b.util;u=b.siteCode;A=b.deliveryPickup.deliverySiteCode;
b.isOldHybrisCheckService&&V(b,"POSTAL_CODE")&&(ca=b.siteCode,h=b.stockLevelStatus,I=b.drawObj.delivery,"my"===ca&&(I.hasComponent=!0,I.headline=Granite.I18n.get("Delivery Detail"),I.label=Granite.I18n.get("Enter Zipcode"),I.cancelText=Granite.I18n.get("Delete"),I.enterText=Granite.I18n.get("Search"),"my"===ca&&(I.inputAttr.maxlength="5"),"NOORDER"===h||"OUTOFSTOCK"===h)&&(I.labelClass="text-field--disabled",I.ctaClass="cta--disabled",I.inputAttr.disabled="true"),A.includes(u)&&($(".pd-select-option--delivery-pickup").show(),
T.settingDeliveryPickup(b,x)));if(b.isOldHybrisCheckService&&V(b,"warranty")&&b.useWarrantyVd){T=b.siteCode;u=b.drawObj;A=b.view;ca=b.useWarrantyVd;h=b.ceTradeUpPopup.productCategoryGroup;I=["nz","sa","sa_en"].includes(T)?!0:!1;z="";S="_blank";X="";"au id my nz ph sg vn".split(" ").includes(T)?(z="javascript:;",S="",X="hubbleCareinfoPopup"):"it"==T?(z="javascript:;",S="",X="ExtendedWarrantyLearnMorePopup"):"ae"==T?z="https://www.quick3d.org/ae/support-s-care/":"ae_ar"==T?z="https://www.quick3d.org/ae_ar/support-s-care/":
"es"!=T||"vd"!=h&&"da"!=h?"n_africa"==T?z="https://www.quick3d.org/n_africa/offer/extended-warranty/":"ch"==T?z="https://www.quick3d.org/ch/support/warranty/":"ch_fr"==T?z="https://www.quick3d.org/ch_fr/support/warranty/":"at"==T&&(z="https://www.quick3d.org/at/support/warranty/"):z="https://www.quick3d.org/es/extensiones-garantia-tv/";G=Granite.I18n.get("Extended Warranty");M="";var W={},ba={},ia={};ca&&($(x.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),W="ch"==T||"ch_fr"==T?{learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),
learnMoreHref:z,learnMoreTarget:S,learnMoreTargetPopup:X}:{learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:z,learnMoreTarget:S,learnMoreTargetPopup:X},G=Granite.I18n.get("VD_Extended Warranty_Title"),M=Granite.I18n.get("VD_Extended Warranty_Description"),!I||"vd"!=h&&"da"!=h||(G=Granite.I18n.get("VD_Extended Warranty_Title",null,"b2c_"+h),M=Granite.I18n.get("VD_Extended Warranty_Description",null,"b2c_"+h)),ba={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},
ia={text:Granite.I18n.get("VD_Extended Warranty_NO")});u.warrantyVd={hasComponent:ca,title:G,learnMoreCta:W,description:M,yesAttr:ba,noAttr:ia,subText:""};A.productAddOnWarrantyVd(u)}T=b.util;b.useDeliveryMessage&&T.settingDeliveryMessage(b,x);b.commonApiModel.settingWishList(b,x);H.productDraw(P);fa.totalReinit(b,x);fa.gpHybrisGlobalEndPoint(b,x)}function F(b,x){var P=b.multistoreSiteCd;P="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():P;var H="";H=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():
$("#storeDomain").val();var ca="";$("#shopParmLang").val()&&(ca="\x26lang\x3d"+$("#shopParmLang").val());$.ajax({url:H+"/tokocommercewebservices/v2/"+P+"/products/"+b.modelCode+"/offers?fields\x3dSIMPLE_INFO"+ca,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,success:function(h,I,u){if(h&&h.benefits&&0<h.benefits.length)if(I=h.benefits,u=b.drawObj.offer,"Y"===$("#typeux2025").val())e(h.benefits,b,x,"sku");else{h=0;for(var A in I){var T=I[A];b.commonApiModel.fetchNewOfferFormat(T);
var fa=T.type?T.type.toUpperCase():"";if("COMBO"===fa)h+=1,b.commonApiModel.callRelatedAndSearch(b.modelCode,Y,{sharedObj:b,promotion:T,selectorObj:x,index:A},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===fa){fa=A;var X=b,G=X.siteCode,z=X.drawObj.offer,M=X.financingUrl,S=R(T,X).iconAlt,W="offer-emi emi-index-"+fa,ba=[];X.financingEligible=!0;M&&(X.emiCalculatorUrl=M);T.description&&ba.push(T.description);if(0<ba.length){var ia=M=null,ta=null;"id"!==G&&"ee"!==G&&"lt"!==G&&"lv"!==G&&"pl"!==
G||!T.description||(M=T.description);if("hu"===G||"sg"===G||"my"===G||"nz"===G||"vn"===G||"th"===G||"za"===G)for(X.promotionFinancingFlag=!0,X=0;X<ba.length;X++){var qa=ba[X].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>qa.indexOf("\x3ca")?"in"===G?(ia=qa,ta={label:Granite.I18n.get("Learn more"),labelAnalytics:qa.toLowerCase().replace(/"/g,"")}):(ta={labelAnalytics:qa.toLowerCase().replace(/"/g,"")},ta.label="id"===G||"ee"===G||"lt"===G||"lv"===G||"pl"===G?Granite.I18n.get("Learn more"):qa):
ia=qa}else ia=ba.join("");z.promotionFinance.push({offerIndex:fa,title:"finance",hasItem:!0,item:{contentWrapperClass:W,iconAttr:{alt:S},description:{text:M,hasDescription:null!=M},emiText:ia,cta:ta,hasCta:null!=ta},newFormat:T.newFormat})}}else"BOGO"===fa?(h+=1,Q(T,A,b,x)):fa||(h+=1,N(T,A,b,x));3<h&&(u.isViewMore=!0)}}},error:function(h,I,u){},complete:function(){n(b,x,0);var h=b.pdChildModelCnt;b.pdPackageYn&&0<h&&ea(b,x)}})}function ea(b,x){var P=b.multistoreSiteCd,H="true"===$("#isEppPage").val()?
$("#eppCompanyCode").val():P,ca="";ca=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val():$("#storeDomain").val();var h="";$("#shopParmLang").val()&&(h="\x26lang\x3d"+$("#shopParmLang").val());P=b.pdChildModelCnt;var I=b.drawObj.offer;if(0<P)for(var u=0,A={},T=0;T<P;A={$jscomp$loop$prop$childCode$375:A.$jscomp$loop$prop$childCode$375,$jscomp$loop$prop$childSet$376:A.$jscomp$loop$prop$childSet$376},T++){var fa=T+1+"";10>T+1&&(fa="0"+(T+1));fa=document.querySelector("#pdChidleModel"+fa);A.$jscomp$loop$prop$childCode$375=
fa.dataset.code;A.$jscomp$loop$prop$childSet$376={code:A.$jscomp$loop$prop$childCode$375,name:fa.dataset.name,main:fa.dataset.main,displayName:fa.dataset.displayName};b.pdChildModelList.push(A.$jscomp$loop$prop$childSet$376);(function(X){return function(G){$.ajax({url:ca+"/tokocommercewebservices/v2/"+H+"/products/"+X.$jscomp$loop$prop$childCode$375+"/offers?fields\x3dSIMPLE_INFO"+h,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,success:function(z,
M,S){if(z&&z.benefits&&0<z.benefits.length){M=z.benefits;0===u&&(I.childList=[]);I.childList.push({hasComponent:!0,childCode:X.$jscomp$loop$prop$childSet$376.code,displayName:X.$jscomp$loop$prop$childSet$376.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())e(z.benefits,b,x,"child",u);else{z=0;for(var W in M){S=M[W];b.commonApiModel.fetchNewOfferFormat(S);var ba=S.type?S.type.toUpperCase():"";"INSTALLMENT"!==ba&&"COMBO"!==
ba&&(z+=1);if(4>z){var ia=u+""+z;"BOGO"===ba?Q(S,ia,b,x,"child",u):ba||N(S,ia,b,x,"child",u)}}W=b.drawObj.offer.childList;0===z&&W.splice(ord)}u=I.childList.length}},error:function(z,M,S){},complete:function(){n(b,x,G+1)}})}})(A)(T)}}function e(b,x,P,H,ca){ca=void 0===ca?0:ca;var h=2;"it"===x.siteCode&&(h=4);if(b&&0<b.length){var I=0,u;for(u in b){var A=b[u],T=A.type?A.type.toUpperCase():"";$.trim(A.offerText||"");var fa=$.trim(A.title||"");""==fa&&(fa=$.trim(A.description||""));$.trim(A.linkText||
"");$.trim(A.url||"");if(""!==fa)if("INSTALLMENT"!==T)I+=1,I<=h&&("child"===H?y(A,ca+""+I,x,P,"child",ca):y(A,u,x,P));else if("child"!=H&&"INSTALLMENT"===T){T=void 0;fa=u;var X=x,G=X.siteCode,z=X.drawObj.offer,M=X.financingUrl,S="offer-emi emi-index-"+fa,W=[];X.financingEligible=!0;M&&(X.emiCalculatorUrl=M);A=$.trim(A.description||"");""!==A&&W.push(A);if(0<W.length){M=null;var ba=!1,ia=!1,ta=!1,qa=null;if("hu"===G||"sg"===G||"my"===G||"nz"===G||"vn"===G||"th"===G||"za"===G)for(X.promotionFinancingFlag=
!0,X=0;X<W.length;X++){var za=W[X].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");qa=za;0>za.indexOf("\x3ca")&&("in"===G?(ia=!0,M={label:Granite.I18n.get("Learn more")}):"id"===G||"ee"===G||"lt"===G||"lv"===G||"pl"===G?(ia=!0,M={label:Granite.I18n.get("Learn more")}):ba=!0)}else ta=!0,qa=W.join("");ta||(G=62,ia&&(G=53),qa.length>G&&(T=A,qa=ellipsize(qa,G)),null!=qa&&(qa=qa.replace(/</g,"\x26lt;"),qa=qa.replace(/>/g,"\x26gt;")),null!=T&&(T=T.replace(/</g,"\x26lt;"),T=T.replace(/>/g,"\x26gt;")));
z.promotionFinance.push({offerIndex:fa,title:"finance",hasItem:!0,item:{contentWrapperClass:S,offerTooltip:T,emiText:qa,cta:M,hasCta:ia,hasLink:ba,hasDesc:ta}})}}}"child"===H&&0===I&&x.drawObj.offer.childList.splice(ca)}}function n(b,x,P){x=b.pdChildModelCnt;var H=!1;b.pdPackageYn?x==P&&(H=!0):H=!0;H&&(b.drawObj.offer.headline=Granite.I18n.getVar("Offer","ux2"),b.view.productOfferDraw(b.drawObj),window.sg.components.PDbuyingToolNew.reInit())}function Q(b,x,P,H,ca,h){H=P.drawObj.offer;"child"===(void 0===
ca?"product":ca)&&(H=P.drawObj.offer.childList[void 0===h?0:h]);var I=b.image&&b.image.url?b.image.url:"";ca=P.priceCurrency;h=P.pdTimeformatFront;I=P.util.getImgAttr(I,I,b.image&&b.image.altText?b.image.altText:"",{classWapper:"image__main responsive-img"});var u=[],A="";b.description&&u.push({text:b.description});b.startDate&&b.endDate&&!P.isSENA&&"hu"!=P.siteCode&&(A=h?dateFormat(b.startDate.split("T")[0],h)+" ~ "+dateFormat(b.endDate.split("T")[0],h):b.startDate.split("T")[0]+" ~ "+b.endDate.split("T")[0]);
P=currencyComma(0,ca);b={offerIndex:x,title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),description:{hasDescription:!0,main:u,date:A},imgAttr:I,price:{hasPrice:!0,price:0,original:"",save:"",now:P}},newFormat:b.newFormat};H.bogo=b}function Y(b,x,P){var H=P.index;if(H){if(null==H||""==H)H=0}else H=0;x=P.sharedObj;var ca=x.drawObj,h=ca.offer.combo,I=x.util,u=x.view;P=P.promotion;var A=x.pdTimeformatFront,T=R(P,x),fa="",X="";T.promoIconFlag&&
(X=T.iconImgName);T=[];P.description?T.push({text:P.description}):T.push({text:Granite.I18n.get("Select combo bundle option")});var G={layerTarget:"shopComboPopup"};G.comboIdx=x.globalComboData.length;I=I.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",G,"");P.startDate&&P.endDate&&!x.isSENA&&"hu"!=x.siteCode&&(fa=A?dateFormat(P.startDate.split("T")[0],A)+" ~ "+dateFormat(P.endDate.split("T")[0],A):P.startDate.split("T")[0]+" ~ "+P.endDate.split("T")[0]);H={offerIndex:H,
title:"compoBundle",comboIndex:x.globalComboData.length,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:X,description:{hasDescription:!0,main:T,date:fa},learnMoreCta:I},newFormat:P.newFormat};h.push(H);u.productOfferDraw(ca,!0);b=window.sg.components.dynamic.comboPopup.setComboData(b.totalResult);x.globalComboData.push(b)}function N(b,x,P,H,ca,h){H=P.drawObj.offer;"child"===(void 0===ca?"product":ca)&&(H=P.drawObj.offer.childList[void 0===h?0:h]);P=R(b,P);ca="offer-promotion promotion-index-"+
x;h=[];var I=null;b.description&&h.push(b.description);P.promoIconFlag&&(I="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+P.iconImgName+".svg");var u=null;if(!b.newFormat){var A="";for(u=0;u<h.length;u++)A+=h[u].replace("\x3ca","\x3ca target\x3d'_blank'");u=[];u.push({target:"."+ca.replace(" ",".")+" .pd-offer__desc",text:A})}H.promotionMessage.push({offerIndex:x,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:ca,isIcon:!0,iconAttr:{src:I,
alt:P.iconAlt},description:{hasDescription:!0},rowText:u},newFormat:b.newFormat})}function y(b,x,P,H,ca,h){H=P.drawObj.offer;var I="offer-promotion promotion-index-"+x;"child"===(void 0===ca?"product":ca)&&(H=P.drawObj.offer.childList[void 0===h?0:h]);$.trim(b.offerText||"");P=$.trim(b.title||"");""==P&&(P=$.trim(b.description||""));ca=$.trim(b.linkText||"");b=$.trim(b.url||"");"tw"!==siteCode&&""!==b&&(ca=Granite.I18n.get("Learn more"));if(""!==P){h=62;""!==ca&&""!==b&&(h=53);if(P.length>h){var u=
P;P=ellipsize(P,h)}P=P.replace(/</g,"\x26lt;");P=P.replace(/>/g,"\x26gt;");null!=u&&(u=u.replace(/</g,"\x26lt;"),u=u.replace(/>/g,"\x26gt;"));H.promotionMessage.push({offerIndex:x,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:I,offerTitle:P,offerTooltip:u,linkEnabled:""!==b,linkText:ca,linkUrl:b}})}}function R(b,x){var P=x.promotionImgType?x.promotionImgType.split(","):[];x="";var H=!1,ca="";if(b.image&&(x=b.image.altText,ca=b.image.url))for(b=$jscomp.makeIterator(P),P=b.next();!P.done;P=
b.next())if(P.value===ca){H=!0;break}return{iconAlt:x,promoIconFlag:H,iconImgName:ca}}function V(b,x){if(b.hybrisApiData.shopAPI&&b.hybrisApiData.shopAPI.supportedAvailableServices){b=$jscomp.makeIterator(b.hybrisApiData.shopAPI.supportedAvailableServices);for(var P=b.next();!P.done;P=b.next())if(P.value.toUpperCase()===x.toUpperCase())return!0}return!1}function ka(b,x){x=b.siteCode;var P=b.drawObj,H=b.view,ca=b.isHybrisSplitPDLease,h=Granite.I18n.get("Up2You Rental"),I=Granite.I18n.get("Purchase");
if(ca){ca=b.proudctPriceInfo.leaseInfo.upfront;var u=b.proudctPriceInfo.leaseInfo.month;b=b.proudctPriceInfo.leaseInfo.monthly;var A=!1;""!==ca&&""!==u&&""!==b&&(A=!0);"ru"===x&&(h=Granite.I18n.get("Buy with belo4d Upgrade"),I=Granite.I18n.get("Buy Now"));P.between={hasComponent:A,purchase:{text:I},nonPurchase:{text:h,dataLeaseing:"",tenureUnit:u,tenureValue:0,monthlyValue:b,paymentValue:ca}};H.betweenDraw(P)}}function va(b,x,P){var H=b.pdSearchDomain+"/",ca="Hybris-intg"===b.apiFlag,h=b.modelCode,
I=b.pdStageInfo,u=l(b,x),A=b.siteCode,T=$.cookies.get("country_region")?$.cookies.get("country_region").toString():"",fa="global",X=!1;ca&&(fa="hybris");ca={commonCodeYN:"N",siteCode:b.siteCode,modelList:h,saleSkuYN:"N",onlyRequestSkuYN:"Y"};"global"===fa&&u&&(ca.shopSiteCode=u);if("ca"===A||"ca_fr"===A)ca.regionCode=null!=T&&""!=T?T:"CA-ON";A=(u="true"===$("#isEppPage").val())?"epp/v2":"b2c";u&&(ca.companyCode=$("#eppCompanyCode").val(),ca.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(ca.groupName=
window.sg.epp.common.groupName),""!=window.sg.epp.common.userStoreId&&(ca.o2oId=window.sg.epp.common.userStoreId));$.ajax({url:H+I+("/"+A+"/product/card/detail/")+fa,type:"GET",data:ca,dataType:"json",cache:!0,async:!0}).done(function(G,z,M){z=b.modelCode;M=b.priceCurrency;X=!0;if(G&&G.response&&G.response&&G.response.resultData&&G.response.resultData.productList){G=G.response.resultData.productList;var S=b.siteCode,W;for(W in G){var ba=G[W].modelList;if(ba)for(var ia in ba){var ta=ba[ia],qa=ta.ctaType?
ta.ctaType.toUpperCase():"";b.stockLevelStatus=qa;z===ta.modelCode&&("trr"!=b.siteCode&&(ta.price&&(b.proudctPriceInfo.orignalPrice=ta.price),ta.priceDisplay?b.proudctPriceInfo.orignalPriceFormatted=ta.priceDisplay:ta.price&&(b.proudctPriceInfo.orignalPriceFormatted=currencyComma(ta.price,M)),b.proudctPriceInfo.salePrice=ta.promotionPrice?ta.promotionPrice:ta.price,b.proudctPriceInfo.salePriceFormatted=ta.promotionPriceDisplay?ta.promotionPriceDisplay:ta.promotionPrice?currencyComma(ta.promotionPrice,
M):b.proudctPriceInfo.orignalPriceFormatted),ta.monthlyPriceInfo&&ta.monthlyPriceInfo.leasingMonthly&&("au"===S||"nz"===S||"ae"===S||"my"===S||"sg"===S||"ca"===S||"ca_fr"===S||"it"===S||"se"===S||"dk"===S||"fi"===S||"no"===S||"es"===S||"pt"===S||"th"===S||"tw"===S||"ru"===S||"ch"===S||"ch_fr"===S)&&(b.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=ta.monthlyPriceInfo.leasingMonthly,b.proudctPriceInfo.monthlyPriceInfo.tenureVal=ta.monthlyPriceInfo.leasingMonths),ta.formattedPriceSave&&(b.proudctPriceInfo.rowCodeformattedPriceSave=
ta.formattedPriceSave),b.proudctPriceInfo.salePriceFormatted&&"LEARNMORE"!==qa&&"NOORDER"!==qa&&"Y"!==b.oldProductYn&&(b.drawObj.price.priceWrapper.hasPriceWrapper=!0),ta.tradeInPriceText&&b.isHyIntg&&(b.proudctPriceInfo.salePriceFormatted=ta.tradeInPriceText),G[W].productGroupId&&(qa=x.buyingTool.find("reevoo-reviewable-badge"),0<qa.length&&qa.attr("sku","series:"+G[W].productGroupId)),ta.configuratorUrl&&(b.buyNowUrl=ta.configuratorUrl))}}}}).fail(function(G){console.log(G)}).always(function(G){P(b,
x,X)})}function Aa(b,x,P){P=b.view;var H=b.currentUrl,ca=b.siteCode,h=("Y"===b.isCart||"Hybris-intg"===b.apiFlag)&&"Y"!==b.oldProductYn;ca="br"===ca||"latin"===ca||"ar"===ca||"py"===ca;var I=b.util;$(x.buyingToolOptCheckDealerStock).remove();h?ca?d(b,x,P,H):K(b,x,P,H):(t(b,x,P,H),I.totalReinit(b,x),I.gpHybrisGlobalEndPoint(b,x))}function sa(b,x){b.products[0].services||(b.products[0].services=[]);b.products[0].services.push(x)}var ha=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),ra=
function(){};ra.prototype.productAjax=function(b,x){var P=l(b,x),H=b.siteCode;P&&(H=P);b.multistoreSiteCd=H;va(b,x,Aa)};ra.prototype.callAddToCartCta=function(b,x,P,H,ca,h){C(b,x,P,H,ca,h)};ra.prototype.callCheckOutCta=function(b,x,P,H,ca,h){C(b,x,P,H,ca,h)};var da=!1,E=$(".pdd16-step-buying").html();ha.BuyingToolOpAjaxHybris=ra})();
(function(){function l(k){$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(F,ea,e){k.drawObj.delivery.time=e.getResponseHeader("Date")}})}function d(k,F,ea,e){var n=k.apiDomain,Q=k.pdHrefLang,Y=k.pdMultiLanguageYN,N=k.siteCode,y=$.cookies.get("jwt_"+k.countryIsoCode,{domain:".quick3d.org"}),R=[],V=k.priceCurrency,ka=[],va=0,Aa=0,sa=!1,ha="";l(k);for(ha=0;ha<ea.length;ha++){var ra=ea[ha];50<=va&&(va=0,R.push(ka),ka=[]);ka.push(ra);va++;ha==ea.length-1&&R.push(ka)}for(ea=0;ea<
R.length;ea++){ka="";if("uk"==N||"de"==N)ka=",carrier_attributes";"fr"===N&&(ka+=",payment_methods");"in"===N&&(ka+=",delivery_modes");ha="skus\x3d"+R[ea].join(",")+"\x26component\x3doffers,promotion,promotion_price"+ka+"\x26count\x3d0";"true"===$("#isEppPage").val()&&(ha+="\x26store_id\x3d"+$("#eppCompanyCode").val());$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:n+"/v4/configurator/syndicated-product-linear",data:ha,type:"GET",
dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(da){y&&da.setRequestHeader("x-ecom-jwt",y);"Y"===Y&&da.setRequestHeader("x-ecom-locale",Q)},success:function(da,E,b){if(da&&0!==da.total_number_of_products){E=k.syndiApiData;sa=!0;for(var x in da.products){var P=da.products[x];P.price_info&&P.price_info[0]&&(b=P.price_info[0].msrp_price,P=P.price_info[0].sale_price,b&&(b.formatted_value=currencyComma(b.value,V)),P&&(P.formatted_value=currencyComma(P.value,V)))}"true"===
$("#isEppPage").val()&&window.sg.epp&&window.sg.epp.common&&"D2R"===window.sg.epp.common.ecomStoreType&&(x=Object.keys(da.products),x=da.products[x].fulfillment_sku,null!=x&&R[0]!=x&&(da.products[R[0]]=da.products[x],da.products[x]=null,k.fulfillmentSku=x));$.extend(E.products,da.products);$.extend(E.expanded,da.expanded)}},error:function(da,E,b){},complete:function(){Aa++;R.length==Aa&&e(k,F,sa)}})}}function K(k,F,ea){var e=k.setComboPopupData,n=ea.offer.combo,Q=k.util,Y=k.view,N=0;if(k.comboFlag){for(var y=
0;y<e.length;y++){var R=e[y];k.comboSearchList.push(R.comboInfo);var V=[];R.comboPitch?V.push({text:R.comboPitch}):V.push({text:Granite.I18n.get("Select combo bundle option")});var ka={layerTarget:"shopComboPopup"};ka.comboIdx=N;ka=Q.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",ka,"");R={title:"compoBundle",comboIndex:y,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:R.iconImgName,description:{hasDescription:!0,main:V,date:R.comboDate},
learnMoreCta:ka}};n.push(R);N++}Y.productOfferDraw(ea,!0)}e=k.belo4dCareFlag;n=k.warrantyFlag;Q=k.addonsFlag;Y=k.giftFlag;N=k.newAssuredBuyBackFlag;y=k.pdProductTypeCheckYn;R=k.util;V=k.commonApiModel;ka=k.addOnInfoTemp;var va=k.addOnGift.products,Aa=k.belo4dCareList,sa=k.newAssuredBuyBackList,ha=k.addOnInfo,ra=k.afterEvent,da=k.bogoFlag,E=k.pdSoftBundleUseYn,b=k.bogoModelList,x=k.pdBogoUseYn,P={},H={},ca={},h={},I={};k.checkingBogoSearchFlag=!0;k.checkingComboSearchFlag=!0;da&&"N"!==x&&"Y"!==E&&
0<b.length&&(k.bogoSearchList=k.bogoModelList);if(e||n)"Y"===y?R.isNotEmptyArray(ha)?P={title:"careAndWarranty",list:ha}:ra.setMainCallBack("careAndWarranty",null):R.isNotEmptyArray(Aa)?H={title:"care",list:Aa}:ra.setMainCallBack("care",null);Q&&(ca={title:"addOn",list:ka},k.hasAddOns=!0);Y&&(h={title:"addOnGift",list:va});N&&(I={title:"newAssuredBuyBack",list:sa});e||n||Q||Y||N?(k.addOnApiList={careAndWarranty:P,care:H,addOn:ca,gift:h,newAssuredBuyBack:I},V.callAddOnApi(k,F)):(k.checkingAddOnSearchFlag=
!0,k.checkingGiftSearchFlag=!0);V.waitSearchAPI(k,F);e=k.belo4dCareFlag;Aa=k.pdProductTypeCheckYn;ka=k.pdSmcType;Y=k.util;n=k.view;va=k.careLearnMoreUrl;ra=k.belo4dCareSubText;ha=k.belo4dCarePackFlag;N="_self";y="";R="javascript:;";V={};Q=[];sa="";ra&&(-1<ra.indexOf("\x3c/strong\x3e\x3c/p\x3e")?sa=ra.substring(ra.indexOf("\x3c/strong\x3e\x3c/p\x3e")+13,ra.length):-1<ra.indexOf("\x3c/strong\x3e\x3c/h2\x3e")?sa=ra.substring(ra.indexOf("\x3c/strong\x3e\x3c/h2\x3e")+14,ra.length):-1<ra.indexOf("\x3c/strong\x3e\x3c/h3\x3e")?
sa=ra.substring(ra.indexOf("\x3c/strong\x3e\x3c/h3\x3e")+14,ra.length):-1<ra.indexOf("\x3c/strong\x3e\x3c/h4\x3e")?sa=ra.substring(ra.indexOf("\x3c/strong\x3e\x3c/h4\x3e")+14,ra.length):-1<ra.indexOf("\x3c/strong\x3e\x3c/h5\x3e")?sa=ra.substring(ra.indexOf("\x3c/strong\x3e\x3c/h5\x3e")+14,ra.length):-1<ra.indexOf("\x3c/strong\x3e\x3c/h1\x3e")&&(sa=ra.substring(ra.indexOf("\x3c/strong\x3e\x3c/h1\x3e")+14,ra.length)));if(e||ha)"type2"===ka?k.warrantyFlag=!0:(ka=ha?Granite.I18n.get("belo4d CarePack"):
Granite.I18n.get("belo4d Care+"),"fr"!==siteCode?va&&(y=Granite.I18n.get("Learn more"),R=va,N="_blank"):(y=Granite.I18n.get("Learn more"),V.layerTarget="hubbleCareinfoPopup"),k.belo4dCareSubText?(va="temp","de"===siteCode?"Y"!==Aa?Q.push({target:".pd-select-option__desc",text:k.belo4dCareSubText}):Q.push({target:".pd-select-option__desc",text:sa}):"in"===siteCode?(Aa=k.belo4dCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,""),Q.push({target:".pd-select-option__discount-text",text:Aa})):(Aa=
"\x3cp\x3e"+k.belo4dCareSubText.toString().replace(/<(\/p|p)([^>]*)>/gi,"")+"\x3c/p\x3e",Q.push({target:".pd-select-option__desc",text:Aa}))):va=ha?Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever. (belo4d CarePack)"):Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever."),Aa={text:Granite.I18n.get("YES"),layerTarget:"hubbleCarePopup"},sa={text:Granite.I18n.get("NO"),eventType:"care"},Y=Y.getAttrCta(y,R,N,"",V,""),ea.care={hasComponent:e,
title:ka,learnMoreCta:Y,description:va,yesAttr:Aa,noAttr:sa,subText:"",rowText:Q,itemSet:[]});n.productAddOnCare(ea);e=k.warrantyFlag;n=k.pdProductType;Q=k.warrantyLearnMoreUrl;Y=k.util;N=k.view;y=Granite.I18n.get("Extended Warranty");R="";V="_self";ka="";va="javascript:;";Aa={};sa={};ha={};ra={};e&&($(F.buyingToolOptWarranty.get(0)).addClass("has-component"),Q&&(ka=Granite.I18n.get("Learn more"),va=Q,V="_blank"),"de"!==siteCode||"TV"!=n&&"ETC"!=n?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."):
(y=Granite.I18n.get("Garantieverl\u00e4ngerung"),R="Verl\u00e4ngere die Standard-Herstellergarantie deines belo4d Ger\u00e4ts von 2 auf 5 Jahre"),ha={"class":"js-extended-layer cm-s-popup-opener is-async js-warranty-pop",text:Granite.I18n.get("YES"),layerTarget:"extendedWarrantyPopup"},ra={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"warranty"},Aa=Y.getAttrCta(ka,va,V,"",sa,""));ea.warranty={hasComponent:e,title:y,learnMoreCta:Aa,description:R,yesAttr:ha,noAttr:ra,subText:""};
N.productAddOnWarranty(ea);Q=k.util;F=k.view;e=k.newAssuredBuyBackFlag;n=k.newAssuredBuyBackList;Y=Granite.I18n.get("Learn more");Q=Q.getAttrCta(Y,"javascript:;","","",{layerTarget:"assuredBuyBackInfoPopup"},"");e&&(k.drawObj.newAssuredBuyBack={hasComponent:e,title:Granite.I18n.get("belo4d Assured Buyback"),description:Granite.I18n.get("Get up to 70% resale value with Assured Buyback"),itemSet:n,learnMoreCta:Q,yesAttr:{"class":null,text:null,subText:"",layerTarget:""},noAttr:{"class":null,text:"None",
layerTarget:"",eventType:"newAssuredBuyBack"}},F.newAssuredBuyBackDraw(ea))}function D(k,F,ea,e){e=F.siteCode;var n=F.syndiApiData.expanded;ea=ea.tariffOption;var Q=[];if(k.carrier_attributes){var Y=k.carrier_attributes.carrier_plans?k.carrier_attributes.carrier_plans.skus:[],N=n.carrier_attributes&&n.carrier_attributes.carrier_plans?n.carrier_attributes.carrier_plans:{};n=n.carrier_attributes&&n.carrier_attributes.carriers?n.carrier_attributes.carriers:[];for(var y=[],R=0;R<Y.length;R++){var V=N[Y[R]];
if(V){if("de"===e||"uk"===e)F.tariffFlag=!0;null!=V.child_item_groups&&0<V.child_item_groups.length&&(V.child_skus=V.child_item_groups[0].skus);for(var ka=0;ka<n.length;ka++){var va=V.carrier;V.carrier_id&&(va=V.carrier_id);if(va.toUpperCase()==n[ka].id.toUpperCase()){V.carrier=n[ka];break}}y.push(V);k.carrier_attributes.carrier_plans=y}if(null!=V&&null!=V.carrier&&null!=V.carrier.images.url&&""!==V.carrier.images.url){ka=!0;for(va=0;va<Q.length;va++)V.carrier.images.url===Q[va].images.url&&(ka=!1);
ka&&Q.push(V.carrier)}}Q.sort(function(Aa,sa){return Aa.sort_order<sa.sort_order?-1:Aa.sort_order>sa.sort_order?1:0});if(F.tariffFlag){ea.hasComponent=!0;ea.headline=Granite.I18n.get("Tariff Option");ea.description=Granite.I18n.get("Choose your preferred tariff from various providers.");k=[];if(0<Q.length)for(F=0;F<Q.length;F++)Y={src:"",alt:""},"de"===e?-1<Q[F].images.url.indexOf("Telekom")?(Y.src="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-1.png",
Y.alt="Telekom"):-1<Q[F].images.url.indexOf("Vodaphone")?(Y.src="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-3.png",Y.alt="Vodaphone"):-1<Q[F].images.url.indexOf("o2")?(Y.src="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/img-carrier-logo-2.png",Y.alt="o2"):(Y.src=Q[F].images.url,Y.alt=""):"uk"===e&&(Y.src=Q[F].images.url,Y.alt=""),Y.src&&k.push(Y);ea.logoList=k}}}function r(k,F,ea,e){var n=F.siteCode,
Q=F.pdProductType,Y=F.stockLevelStatus,N=ea.delivery,y=F.deliveryYN,R=$.cookies.get("HA-Deeplink-Zipcode",{domain:".quick3d.org"}),V=F.util,ka="",va="",Aa=F.syndiApiData.expanded;if("in"===n&&k.delivery_modes&&0<k.delivery_modes.length){k=k.delivery_modes;for(var sa=[],ha=0;ha<k.length;ha++){var ra=Aa.delivery_modes[k[ha]];if(ra.custom_properties&&ra.custom_properties.delivery_mode_type&&"priority delivery"===ra.custom_properties.delivery_mode_type&&ra.time_slot_attributes&&ra.time_slot_attributes.slot_code&&
ra.time_slot_attributes.cut_off_hour&&ra.time_slot_attributes.cut_off_minutes){ra=ra.time_slot_attributes;var da=ra.cut_off_hour;2>da.length&&(da="0"+da);var E=ra.cut_off_minutes;2>E.length&&(E="0"+E);var b={};b.idx=ha;ra.slot_code.includes("SAME")?b.time=Number(da+E):b.time=Number(String(Number(da)+24)+E);sa.push(b)}}if(0<sa.length&&null!==N.time){ra=N.time.split("GMT")[0].trim().slice(-8);ha=Number(ra.split(":")[0])+5;ra=Number(ra.split(":")[1])+30;59<ra&&(ra-=30,ha+=1);2>String(ra).length&&(ra=
"0"+String(ra));2>String(ha).length&&(ha="0"+String(ha));ra=Number(String(ha)+String(ra));sa.sort(function(P,H){return P.time-H.time});ha="";for(var x in sa)if(ra<sa[x].time){ha=sa[x].idx;break}""!==ha&&(ka=Aa.delivery_modes[k[ha]].time_slot_attributes,x=Number(ka.cut_off_hour),sa="",12>x?sa="AM":(sa="PM",12<x&&(x-=12)),ra="",ka.slot_code.includes("NEXT")?ra="Next day":ka.slot_code.includes("SAME")&&(ra="Same day"),ka="Order by "+x+" "+sa+" and get "+ra+" delivery.*",Aa.delivery_modes[k[ha]].images.large_image.desc&&
(va=Aa.delivery_modes[k[ha]].images.large_image.desc.replaceAll("\n","\x3c/br\x3e")),N.isPriorityDelivery=!0)}}if("in"===n||"id"===n&&"PHONE"===Q||"us"===n&&y)if(N.hasComponent=!0,N.headline=Granite.I18n.get("Delivery Detail"),N.label=Granite.I18n.get("Enter Zipcode"),N.cancelText=Granite.I18n.get("Delete"),N.enterText=Granite.I18n.get("Search"),"id"===n?N.inputAttr.maxlength="5":"us"===n?(N.inputAttr.maxlength="5",R&&(N.inputAttr.value=R,F.view.deliveryDraw(ea),V.deliveryGetApiData(F,e))):(N.inputAttr.maxlength=
"6",""!==ka&&(N.priorityDeliveryText=ka),""!==va&&(N.priorityDeliveryTooltip=va)),"NOORDER"===Y||"OUTOFSTOCK"===Y)N.labelClass="text-field--disabled",N.ctaClass="cta--disabled",N.inputAttr.disabled="true"}function B(k,F,ea,e){ea=F.belo4dCareBadgeList;e=F.belo4dCareList;var n=F.reCallSyndi,Q=F.multiCareYn,Y=F.util;if("Y"!==F.pdProductTypeCheckYn){var N=k.discount_description;if(null!==N&&0<N.length)for(var y=0;y<N.length;y++)for(var R=0;R<N[y].discounted_skus.length;R++){var V={},ka=N[y].discounted_skus[R],
va=ka.sku;Y.merge(F.totalSkuList,va,ka);V.discounted_sku=va;e.push(V);F.belo4dCareFlag=!0;"Y"===Q&&n.push({sku:va})}F.belo4dCareFlag&&k.formatted_sales_pitch&&0<k.formatted_sales_pitch.length&&(F.belo4dCareSubText=k.formatted_sales_pitch);for(var Aa in k.product_tag_order)ea.push(k.product_tag_order[Aa]);ea.sort(function(sa,ha){return sa.product_rank-ha.product_rank})}}function J(k,F,ea,e,n){var Q=F.pdTimeformatFront;ea=F.pdProductTypeCheckYn;e=F.util;n=k.product_tag_order;var Y=F.addOnInfoTemp,
N=F.reCallSyndi,y="";k.start_date&&k.end_date&&(y=""!==Q?dateFormat(k.start_date.split("T")[0],Q)+" ~ "+dateFormat(k.end_date.split("T")[0],Q):k.start_date.split("T")[0]+" ~ "+k.end_date.split("T")[0]);F.addonDate=y;Q=k.discount_description;if(null!==Q&&0<Q.length)for(var R=0;R<Q.length;R++)for(var V=Q[R],ka=0;ka<V.discounted_skus.length;ka++){var va={},Aa=V.discounted_skus[ka],sa=!1,ha=Aa.sku;va.discounted_sku=ha;Aa.offer_type=F.hasVoucher?"CONFIGURATORADDONVOUCHER":"CONFIGURATORADDON";Aa.addonDate=
y;Aa.product_formatted_sales_pitch=k.formatted_sales_pitch;e.merge(F.totalSkuList,ha,Aa);if(!F.hasVoucher&&n&&n[ha]&&n[ha].product_tags&&0<n[ha].product_tags.length)for(var ra=0;ra<n[ha].product_tags.length;ra++)"GIFT"===n[ha].product_tags[ra].toUpperCase()&&(F.giftDrawData.date=y,F.giftDrawData.dec=k.formatted_sales_pitch,!k.formatted_sales_pitch&&k.sales_pitch&&(F.giftDrawData.dec=k.sales_pitch),F.addOnGift.products.push(va),sa=F.giftFlag=!0);"Y"!==ea?sa||(F.addOnInfoTempCache[va.discounted_sku]||
(Y.push(va),F.addOnInfoTempCache[va.discounted_sku]=va.discounted_sku),F.addonsFlag=!0):sa||N.push(Aa)}}function U(k,F){F=(F=F.promotionImgType)?F.split(","):[];var ea=!1;k=k.images&&0<k.images.length?k.images[0]:"";if(0<F.length&&k)for(var e in F)if(F[e]===k){ea=!0;break}return{promoIconFlag:ea,iconImgName:k}}function O(k,F,ea){var e=k.reCallSyndi,n=k.util,Q=k.syndiApiData.products,Y=k.drawObj;if(ea){for(ea=0;ea<e.length;ea++){var N=e[ea],y=Q[N.sku];if(y){n.merge(k.totalSkuList,N.sku,y,"syndi");
var R=k,V=R.siteCode,ka=R.util,va=R.drawObj.offer;if("Y"===R.pdSoftBundleUseYn)if(y.sku_source)if(N.sku_source=y.sku_source,"ecom"===y.sku_source)if("COMBO"===N.offer_type)null!==y.inventory&&(N.ctaType=y.inventory.status),null!==y.images&&null!==y.images.small_image&&(N.thumbUrl=y.images.small_image.url,N.thumbUrlAlt=y.images.small_image.desc),N.displayName=y.product_display_name,N.modelName=y.model_name,N.modelCode=y.model_code;else{if("BOGO"===N.offer_type_b){var Aa=y.images.small_image.url;Aa=
ka.getImgAttr(Aa,Aa,y.images.small_image.desc,{classWapper:"image__main responsive-img"});var sa=R.priceCurrency;ka=R.view;var ha=y.taxonomy&&y.taxonomy.product_category?y.taxonomy.product_category.toLowerCase():"",ra=y.taxonomy&&y.taxonomy.name?y.taxonomy.name.toLowerCase():"",da=y.taxonomy&&y.taxonomy.name?y.taxonomy.name.toLowerCase():"",E=y.model_code,b=y.model_name,x=y.product_display_name,P=[];P.push({text:N.bogo_sales_pitch});var H="",ca="",h="",I="";null!==y.price_info&&0<y.price_info.length&&
(I=y.price_info[0].msrp_price.value,H=y.price_info[0].msrp_price.formatted_value,"nl"!==V&&"be"!==V&&"be_fr"!==V&&(ca=Granite.I18n.get("Save {0}",currencyComma(y.price_info[0].sale_price.value,sa),V)),h=currencyComma(0,sa));"true"===$("#isEppPage").val()&&"pl"===V&&(ca=H="");V={title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",headline:Granite.I18n.get("Buy 1 Get 1 Free"),modelCode:E,modelName:b,displayName:x,pviTypeName:ha,pviSubtypeName:ra,categorySubTypeEngName:da,description:{hasDescription:!0,
main:P,date:N.bogo_date},imgAttr:Aa,price:{hasPrice:!0,price:I,original:H,save:ca,now:h}}};va.bogo=V;ka.productOfferDraw(R.drawObj)}}else"BOGO"===N.offer_type_b&&R.bogoSearchList.push(N);else"BOGO"===N.offer_type_b&&R.bogoSearchList.push(N);R=void 0;va=k;V=va.multiCareYn;"Y"===va.pdProductTypeCheckYn&&"CONFIGURATORADDON"===N.offer_type&&y.product_type&&(ka=y.product_type.toUpperCase(),"PHYSICAL"===ka?(ka={},ka.discounted_sku=y.sku,va.addOnInfoTempCache[ka.discounted_sku]||(va.addOnInfoTemp.push(ka),
va.addonsFlag=!0,va.addOnInfoTempCache[ka.discounted_sku]=ka.discounted_sku)):"INSURANCE"!==ka&&"WARRANTY"!==ka||!y.sku_source||("ecom"===y.sku_source?(y.discounted_sku=y.sku,null!=y.images&&null!=y.images.small_image&&(y.thumbUrl=y.images.small_image.url,y.thumbUrlAlt=y.images.small_image.desc),y.ctaType=y.inventory.status,y.displayName=y.product_display_name,y.modelName=y.model_name,y.modelCode=y.model_code):y.discounted_sku=y.sku,va.addOnInfo.push(y),"INSURANCE"===ka?(va.belo4dCareFlag=!0,N.product_formatted_sales_pitch&&
(va.belo4dCareSubText=N.product_formatted_sales_pitch)):"WARRANTY"===ka&&(va.warrantyFlag=!0)));if("Y"===V&&(va=va.belo4dCareList,null!==va&&0<va.length))for(R in va)y.sku===va[R].discounted_sku&&(va[R].custom_properties=y.custom_properties,va[R].images=y.images,va[R].long_description=y.long_description,va[R].short_description=y.short_description,va[R].product_display_name=y.product_display_name,va[R].displayName=y.product_display_name,va[R].modelName=y.model_name,va[R].modelCode=y.model_code,va[R].sku_source=
y.sku_source,va[R].sale_price=y.sale_price,va[R].msrp_price=y.msrp_price,va[R].product_type=y.product_type);R=k;va=F;V=R.util;N.checkingType&&"forever"===N.checkingType&&(ka=y.product_type.toUpperCase(),Aa=y.price_info,sa=R.foreverFinanceInfo,ha=0,"INSURANCE"===ka&&Aa&&0<Aa.length&&(Aa[0].msrp_price&&Aa[0].msrp_price.value&&(ha=Aa[0].msrp_price.value),Aa[0].sale_price&&Aa[0].sale_price.value&&(ha=Aa[0].sale_price.value)),sa.carePrice=ha,V.foreverDraw(R,va));R=k;va=R.newAssuredBuyBackList;N.checkingType&&
"newAssuredBuyBack"===N.checkingType&&y&&"BUYBACK"===y.product_type.toUpperCase()&&(N=y.product_display_name,V=y.sku,ka="",y.price_info&&y.price_info[0].sale_price&&y.price_info[0].sale_price.value?ka=currencyComma(y.price_info[0].sale_price.value,R.priceCurrency):y.price_info&&y.price_info[0].msrp_price&&y.price_info[0].msrp_price.value&&(ka=currencyComma(y.price_info[0].msrp_price.value,R.priceCurrency)),va.push({index:va.length+1,title:N,priceDisplay:ka,sku:V,productItem:y}))}}K(k,F,Y)}k.finishedSecondSyndi=
!0;k.util.afterTotalAPI(k,F)}function w(k,F,ea,e,n,Q){var Y=k.util,N=k.drawObj,y=k.siteCode,R=N.offer.combo,V=N.offer.gift,ka=N.tariffOptionResult,va=N.careResult,Aa=N.warrantyResult,sa=N.upgradeResult,ha=N.tradeInResult,ra=N.between.nonPurchase,da=k.drawObj.galaxyForeverResult,E=k.drawObj.assuredBuyBackResult,b=k.drawObj.newAssuredBuyBackResult,x=$(F.buyingToolOptDelivery.find("#delivery-zipcode")).val(),P=Y.hasTariffOptionResult(k,F),H=Y.hasCareResult(k,F),ca=Y.hasWarrantyResult(k,F),h=Y.hasUpgradeResult(k,
F),I=Y.hasTradeInResult(k,F),u=Y.hasBetweenResult(k,F),A=Y.hasComboResult(k,F),T=Y.hasForeverResult(k,F),fa=Y.hasGiftResult(k,F),X=Y.hasAssuredBuyBackResultResult(k,F),G=Y.hasNewAssuredBuyBackResult(k,F),z={},M=k.childCheckList,S=k.pdAppId,W=k.shopSkuCode;N={line_items:[]};var ba={line_items:[]},ia={},ta={is_accepted:!0},qa="",za="",na="",a="",c="",m="",g="",p="",aa="",L="",ma="",ua="",ja="",xa="",Ia="",Ka="";if(Y.checkingDeliveryCode(k,F)){Q||(ba.sku_id=W,ba.quantity="1",k.proudctPriceInfo.productCartCount&&
1<k.proudctPriceInfo.productCartCount&&(ba.quantity=""+k.proudctPriceInfo.productCartCount));if(P){F=ka.dataModelCode;var Ea=ka.dataSimskuCode;ka=ka.dataId;Y.isNotEmptyArray(ka)&&(qa=","+ka.join("|"),$.each(ka,function(Z,Ba){ia[Ba]=ta}));F&&(z[F]=F,ba.line_items.push({sku_id:F,quantity:"1"}));Ea&&(z[Ea]=Ea,ba.line_items.push({sku_id:Ea,quantity:"1"}))}I&&(ka=ha.dataId,ha=ha.dataQuoteId,Y.isNotEmptyArray(ka)&&(za=","+ka.join("|"),$.each(ka,function(Z,Ba){ia[Ba]=ta})),ha&&(na="\x26exchange_id\x3d"+
ha),ba.exchange_id=ha);if(H){ha=va.dataId;va=va.dataModelCode;var Ha={};Y.isNotEmptyArray(ha)&&(a=","+ha.join("|"),$.each(ha,function(Z,Ba){Ha[Ba]=ta}));va&&(L="\x26addChildItem[]\x3d"+va+",1",ba.line_items.push({sku_id:va,quantity:"1",consents:Ha}))}if(ca){va=Aa.dataId;Aa=Aa.dataModelCode;var Sa={};Y.isNotEmptyArray(va)&&(a=","+va.join("|"),$.each(va,function(Z,Ba){Sa[Ba]=ta}));Aa&&(L="\x26addChildItem[]\x3d"+Aa+",1",ba.line_items.push({sku_id:Aa,quantity:"1",consents:Sa}))}if(h){xa=sa.dataId;var Ga=
{};Y.isNotEmptyArray(xa)&&(c=","+xa.join("|"),$.each(xa,function(Z,Ba){Ga[Ba]=ta}));for(var pa in M)ma=c?ma+("\x26addChildItem[]\x3d"+M[pa]+",1"+c):ma+("\x26addChildItem[]\x3d"+M[pa]+",1"),ba.line_items.push({sku_id:M[pa],quantity:"1",consents:Ga});xa="\x26flush\x3dtrue";N.flush=!0}k.pdUpgrade&&(k.pdUpgrade="fr"===y?"":"\x26upgrade\x3dtrue",m=k.pdUpgrade);u&&(ja="\x26finance_plan_id\x3d"+ra.dataLeaseing,xa="\x26flush\x3dtrue",N.flush=!0,ba.finance_plan_id=ra.dataLeaseing);if(A)for(var Oa in R){pa=
R[Oa].item;for(var Ca in pa.bundleList)if(sa=pa.bundleList[Ca].dataModelCode)z[sa]=sa,ba.line_items.push({sku_id:sa,quantity:"1"})}if(fa){R=V.item;for(var Pa in R.bundleList)if(V=R.bundleList[Pa].dataModelCode)z[V]=V,ba.line_items.push({sku_id:V,quantity:"1"})}if(X){Pa=E.dataSku;var Fa={};E=E.dataId;X="";Y.isNotEmptyArray(E)&&(X=","+E.join("|"),$.each(E,function(Z,Ba){Fa[Ba]=ta}));Pa&&(Ka="\x26addChildItem[]\x3d"+Pa+X,ba.line_items.push({sku_id:Pa,quantity:"1",consents:Fa}))}G&&(b=b.dataModelCode)&&
(Ka="\x26addChildItem[]\x3d"+b,ba.line_items.push({sku_id:b,quantity:"1"}));if(T){T=da.modelList;b=da.dataId;da=da.financePlanId;Y.isNotEmptyArray(b)&&(g=","+b.join("|"));for(var Na in T)Ia+="\x26addChildItem[]\x3d"+T[Na]+",1";Ia+=g;da&&(Ia+="\x26finance_plan_id\x3d"+da)}for(var Ta in z)p+="\x26addChildItem[]\x3d"+z[Ta]+",1";for(var Ua in ea)aa="id"===y?aa+("\x26addChildItem[]\x3d"+ea[Ua]+",1"):aa+("\x26addItem[]\x3d"+ea[Ua]+",1"),k.hasVoucher&&k.voucherdata.coupons&&k.voucherdata.coupons[0]&&(aa+=
"\x26promoCode\x3d"+k.voucherdata.coupons[0]),ba.line_items.push({sku_id:ea[Ua],quantity:"1"});x&&(ua="\x26postal_code\x3d"+x,N.postal_code=x);"de"!==y&&"uk"!==y||!P&&!I||(xa="\x26flush\x3dtrue",N.flush=!0);S&&(e+="?appId\x3d"+k.pdAppId);0<Object.keys(ia).length&&(ba.consents=ia);0<Object.keys(ba).length&&N.line_items.push(ba);"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(W=$("#originShopSku").val());if("id"===y)window.location.href=e+("?addItem[]\x3d"+W+",1"+qa+za+p+
L+a+ma+ja+na+ua+m+xa+aa+Ia);else{Y=",1";if(Q){Q="";for(y=0;y<ea.length;y++)W="\x26",0==y&&(W="?"),Q+=W+"addItem[]\x3d"+ea[y]+Y;e+=Q}else k.proudctPriceInfo.productCartCount&&1<k.proudctPriceInfo.productCartCount&&(Y=","+k.proudctPriceInfo.productCartCount),e+="?addItem[]\x3d"+W+Y+qa+za+p+L+a+ma+ja+na+ua+m+xa+Ia+Ka;"true"===$("#isEppPage").val()&&""!=$.trim($("#virtualModelCode").val())&&(e=e.replace("addItem[]","flash_skus"),e=e.replace(Y,""));n?window.location.href=e:t(k,N,ea)}}}function t(k,F,ea){var e=
k.siteCode,n=$.cookies.get("jwt_"+k.countryIsoCode,{domain:".quick3d.org"});k=k.apiDomain+"/v4/shopping-carts/";var Q="true"===$("#isEppPage").val()?{withCredentials:!0}:{},Y={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"};"in"===e&&(window&&window.EcommAndroidClient&&(Y["x-ecom-app-id"]="belo4d-mobile-app"),e="undefined"!==typeof window?!(!window.EcommAndroidClient&&!window.flutter_inappwebview):!1,e&&(e=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?
"belo4d-mobile-app":"belo4d-mobile-app-ios",Y["x-ecom-app-id"]=e),Y["x-ecom-source"]="AEM.PDP");$.ajax({headers:Y,url:k,type:"POST",data:JSON.stringify(F),xhrFields:Q,dataType:"json",cache:!0,beforeSend:function(N){null!=n&&""!=n&&N.setRequestHeader("x-ecom-jwt",n)},timeout:2E4,success:function(N,y,R){ea&&0<ea.length&&(N=Granite.I18n.get("The item is added to your cart"),confirmPopup(N,"addtocart"))},error:function(N){console.log("fail add to cart")}})}function C(k,F,ea){var e=k.util,n=k.drawObj,
Q=k.view,Y=k.currentUrl,N=k.shopSkuCode,y=k.syndiApiData,R=k.siteCode;gpv2ShopInfo&&"nl"===R&&(k.util.setPriceProudctPriceInfo(k,F,{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(ea)if(y.products[N]){var V=y.products[N];k.syndiProductData=V;var ka=k.siteCode,va=k.proudctPriceInfo,Aa=n.price.priceWrapper,sa=k.util,ha="";if(V.inventory){ha=V.inventory.status.toUpperCase();var ra=V.inventory.custom_stock_message;k.stockLevelStatus=ha;k.apiChangeStockStatus=ha;k.stockCustomMessage=ra;n.stockLevelStatus=ha;va.netavailable=V.inventory.net_available&&0<Number(V.inventory.net_available)?Number(V.inventory.net_available):1;"true"===
$("#isEppPage").val()&&0<F.buyingToolOptSMBQuantity.length&&va.netavailable<va.smbMinQty&&(ha="OUTOFSTOCK",k.stockLevelStatus="OUTOFSTOCK",n.stockLevelStatus="OUTOFSTOCK")}"pl"===ka&&"OUTOFSTOCK"===ha||"NOORDER"===ha||!0!==V.flags.ecom_flag?(sa.disabledOptionElement(F.buyingToolOptTariff,k),sa.disabledOptionElement(F.buyingToolOptUpgrade,k),sa.disabledOptionElement(F.buyingToolOptOffer,k),sa.disabledOptionElement(F.buyingToolOptTradeIn,k),k.accessoryDisabled=!0,Aa.hasPriceWrapper=!1):Aa.hasPriceWrapper=
!0;if(V.price_info&&0<V.price_info.length){V.flags.ecom_flag&&(k.hasPriceCta=!0);for(var da=V.price_info,E=V.preferred_finance_plan,b=0;b<da.length;b++){var x=da[b],P="",H="",ca="",h="",I="";x.msrp_price&&(P=x.msrp_price.value,H=x.msrp_price.formatted_value);x.list_price&&(ca=x.list_price.value,h=x.list_price.formatted_value);if(x.sale_price){var u=x.sale_price.value;var A=x.sale_price.formatted_value}else u=P,A=H;x.sales_pitch&&(1==x.sales_pitch.length?I=x.sales_pitch[0]:2<=x.sales_pitch.length&&
(""!=x.sales_pitch[0]&&null!=x.sales_pitch[0]&&void 0!=x.sales_pitch[0]&&""!=x.sales_pitch[1]&&null!=x.sales_pitch[1]&&void 0!=x.sales_pitch[1]?I=x.sales_pitch[0]+"\x3cbr /\x3e"+x.sales_pitch[1]:""==x.sales_pitch[0]||null==x.sales_pitch[0]||void 0==x.sales_pitch[0]||""!=x.sales_pitch[1]&&null!=x.sales_pitch[1]&&void 0!=x.sales_pitch[1]?""==x.sales_pitch[1]||null==x.sales_pitch[1]||void 0==x.sales_pitch[1]||""!=x.sales_pitch[0]&&null!=x.sales_pitch[0]&&void 0!=x.sales_pitch[0]||(I=x.sales_pitch[1]):
I=x.sales_pitch[0]),"true"!==$("#isEppPage").val()||"in"!==k.siteCode)&&(va.salesPitch=I);va.orignalPrice=P;va.orignalPriceFormatted=H;va.salePrice=u;va.salePriceFormatted=A;va.listPrice=ca;va.listPriceFormatted=h}E&&E.installment_amount&&"NaN"!==E.installment_amount&&E.tenure.unit&&(va.monthlyPriceInfo.monthlyPrice=E.installment_amount,va.monthlyPriceInfo.tenureVal=E.tenure.unit)}V.payment_methods&&(k.paymentMethods=V.payment_methods);V.flags&&V.flags.ecom_flag&&(k.proudctEcomFlag=V.flags.ecom_flag);
e.settingPriceCta(k.hasPriceCta,k,F,Y);if(n.price.priceWrapper.hasPriceWrapper){r(V,k,n,F);D(V,k,n,F);n.offer.headline="fr"===k.siteCode?Granite.I18n.get("Offer_PD"):Granite.I18n.getVar("Offer","ux2");var T=k.siteCode;if("in"===T&&!0===V.flags.online_to_offline){var fa=n.offer,X=k.util,G=[];G.push({text:Granite.I18n.get("1. Free express delivery from your local belo4d plaza")});G.push({text:Granite.I18n.get("2. Delivery by appointment")});G.push({text:Granite.I18n.get("3. Hassle free installation")});
var z="/"+T+"/smart-utsav-delight-delivery/O2O/terms/";var M=X.getAttrCta(Granite.I18n.get("Learn more"),z,"_self","",{},"");var S={title:"delightDelivery",hasItem:!0,item:{headline:Granite.I18n.get("Delight delivery"),description:{hasDescription:!0,main:G},learnMoreCta:M,imgAttr:{srcPc:"/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/product-offer-delight-delivery.jpg",alt:"delight delivery"}}};fa.delightDelivery=S}var W=k.syndiApiData.expanded;if(V.promotions&&
0<V.promotions.length){for(var ba=V.promotions,ia={},ta=0;ta<ba.length;ta++){var qa=W.promotions[ba[ta]],za=qa.type?qa.type.toUpperCase():"",na=W.offers[qa.offer_id],a=na&&na.type?na.type.toUpperCase():"",c=qa.trade_in_type?qa.trade_in_type.toUpperCase():"",m=0<qa.sales_pitch.length?qa.sales_pitch[0]:"";if(za)if("CONFIGURATOROFFER"===za&&"TRADEIN"===a){k.tradeInType=c;m&&/^[0-9\\.]*$/.test(m.trim())&&(k.promotionSalesPitch=m);var g=void 0,p=k,aa=p.siteCode,L=p.util,ma="";p.tradeInFlag=!0;if(L.isNotEmptyArray(na.formatted_sales_pitch)){var ua=
na.sales_pitch;0<ua.length&&(ma=ua[0]);"pl"===aa&&(ma=ma.replace(/<(\/p|p)([^>]*)>/gi,"").replace(/<(\/em|em)([^>]*)>/gi,""))}else ma="in"===aa?Granite.I18n.get("Buy with exchange"):"ae"===aa||"ae_ar"===aa?Granite.I18n.get("Generate Trade in code"):Granite.I18n.get("Trade in your old device");if(na.discount_description&&0<na.discount_description.length){var ja=0;for(g in na.discount_description){var xa=na.discount_description[g],Ia=xa.value;"Rebate"===xa.type&&Ia&&(ja=Math.max(ja,Ia))}p.tradeinSaveValue=
ja}p.tradeinText=ma}else if("CONFIGURATORUPGRADE"===za){var Ka=k,Ea=V,Ha=Ka.childCheckList,Sa=Ka.eupData,Ga=Ka.pdUpgradeUseYn,pa=Ka.util;Ka.upgradeEligible=!0;if("Y"===Ga){var Oa=qa.discount_description;if(null!==Oa&&0<Oa.length)for(var Ca=0;Ca<Oa.length;Ca++)for(var Pa=0;Pa<Oa[Ca].discounted_skus.length;Pa++){var Fa=Oa[Ca].discounted_skus[Pa],Na=Fa.sku;pa.merge(Ka.totalSkuList,Na,Fa);Ha.push(Na);Ka.upgradeFlag=!0;Sa.displayName=Ea.product_display_name;Sa.sku=Na;Sa.salePrice=Ea.price_info?Ea.price_info[Ca].sale_price.value:
""}}}else if("CONFIGURATORADDONbelo4dCARE"===za)B(qa,k,n,F);else if("CONFIGURATORADDON"===za)J(qa,k,n,F,ta);else if("CONFIGURATOROFFER"===za&&"COMBO"===a){if(!ia[qa.offer_id]){var Ta=void 0,Ua=k,Z=Ua.pdTimeformatFront,Ba=Ua.siteCode,la=Ua.reCallSyndi,wa=Ua.setComboPopupData,Da=Ua.util,ya=Ua.priceCurrency,Ja={},La=qa.images&&0<qa.images.length?qa.images[0]:null;Ja.comboInfo=[];Ja.iconImgName=La;qa.start_date&&qa.end_date&&(Ja.comboDate=Z?dateFormat(qa.start_date.split("T")[0],Z)+" ~ "+dateFormat(qa.end_date.split("T")[0],
Z):qa.start_date.split("T")[0]+" ~ "+qa.end_date.split("T")[0]);qa.formatted_sales_pitch&&(Ja.comboPitch=qa.formatted_sales_pitch);if(na.discount_description&&0<na.discount_description.length){var Ma=na.expanded;for(Ta in na.discount_description){var oa=na.discount_description[Ta];if(oa.skus&&0<oa.skus.length)for(var Ra=oa.skus,Wa=0;Wa<Ra.length;Wa++){var Qa={};Qa.sku=Ra[Wa];if(Ma&&Ma.discounted_skus&&Ma.discounted_skus[Ra[Wa]]){var Va=Ma.discounted_skus[Ra[Wa]],cb=0;Va.msrp_price?(Qa.msrp_price=
Va.msrp_price,cb=Va.msrp_price.value):Qa.msrp_price={};Qa.sale_price=Va.sale_price?Va.sale_price:{};"percentage"===oa.type.toLowerCase()?Qa.formatted_value=oa.value+"%":Qa.formatted_value=currencyComma(oa.value,ya);"fr"===Ba&&oa.value&&-1<"rebate".indexOf(oa.type.toLowerCase())&&0>=Number(cb)-Number(oa.value)&&(Qa.formatted_value="0");Qa.type=oa.type;Qa.offer_type=na.type="COMBO";Qa.sales_pitch=na.sales_pitch&&0<na.sales_pitch.length?na.sales_pitch[0]:"";Ja.comboInfo.push(Qa);la.push(Qa);Ua.comboFlag=
!0;Da.merge(Ua.totalSkuList,Qa.sku,Qa)}}}wa.push(Ja)}ia[qa.offer_id]=qa.offer_id}}else if("CONFIGURATOROFFER"===za&&"BOGO"===a){if(!ia[qa.offer_id]){var bb=void 0,Xa=k,Ya=Xa.pdTimeformatFront,ib=Xa.reCallSyndi,Za=Xa.bogoModelList,gb=Xa.pdSoftBundleUseYn,fb=Xa.util,sb="",yb="";if("N"!==Xa.pdBogoUseYn&&(qa.start_date&&qa.end_date&&(yb=Ya?dateFormat(qa.start_date.split("T")[0],Ya)+" ~ "+dateFormat(qa.end_date.split("T")[0],Ya):qa.start_date.split("T")[0]+" ~ "+qa.end_date.split("T")[0]),qa.sales_pitch&&
(sb=qa.sales_pitch[0]),na.discount_description&&0<na.discount_description.length))for(bb in na.discount_description)if(na.discount_description[bb].skus&&0<na.discount_description[bb].skus.length)for(var Ob=na.discount_description[bb].skus,vb=0;vb<Ob.length;vb++){var qb={};qb.sku=Ob[vb];qb.bogo_date=yb;qb.bogo_sales_pitch=sb;"Y"===gb?(qb.offer_type_b="BOGO",ib.push(qb)):Za.push(qb);fb.merge(Xa.totalSkuList,qb.sku,qb);Xa.bogoFlag=!0}ia[qa.offer_id]=qa.offer_id}}else if("PRODUCTDETAILSPROMOMESSAGE"===
za){var Jb=ta,mb=n.offer,Cb=qa.sales_pitch&&0<qa.sales_pitch.length?qa.sales_pitch[0]:"",zb=U(qa,k),ab=zb.promoIconFlag,$a=zb.iconImgName,lb="offer-promotion promotion-index-"+Jb,Db=[],Pb=null,wb=[],dc="";null!==qa.formatted_sales_pitch&&0<qa.formatted_sales_pitch.length?Db=qa.formatted_sales_pitch:null!==qa.sales_pitch&&0<qa.sales_pitch.length&&(Db=qa.sales_pitch);ab&&(Pb="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+$a+".svg");for(var Wb=
0;Wb<Db.length;Wb++)dc+=Db[Wb].replace("\x3ca","\x3ca target\x3d'_blank'");wb.push({target:"."+lb.replace(" ",".")+" .pd-offer__desc",text:dc});mb.promotionMessage.push({title:"promoMessage",hasItem:!0,item:{contentWrapperClass:lb,isIcon:!0,iconAttr:{src:Pb,alt:Cb},description:{hasDescription:!0},rowText:wb}})}else if("PRODUCTDETAILSFINANCEPLANPROMO"===za){var Mb=k,lc=ta,Qb=Mb.siteCode,Bb=n.offer,Yb=qa.sales_pitch&&0<qa.sales_pitch.length?qa.sales_pitch[0]:"",ec=qa.emi_calculator_url?qa.emi_calculator_url:
Mb.financingUrl,hc=U(qa,Mb),Fb=hc.promoIconFlag,jb=hc.iconImgName,nb="offer-emi emi-index-"+lc,Ab="",Zb="",oc=[],rb="";Mb.financingEligible=!0;ec&&(Mb.emiCalculatorUrl=ec);qa.formatted_sales_pitch&&0<qa.formatted_sales_pitch.length?Ab=qa.formatted_sales_pitch:qa.sales_pitch&&0<qa.sales_pitch.length&&(Ab=qa.sales_pitch);if(Ab){Fb&&(Zb="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+jb+".svg",rb=rb+'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+
(Zb+'?$LazyLoad_Home_PNG$" alt\x3d"'+Yb+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(Zb+'?$48_48_PNG$" alt\x3d"'+Yb+'"\x3e\x3c/div\x3e'),rb+="\x3c/div\x3e");rb+='\x3cdiv class\x3d"pd-offer-desc"\x3e';rb+='\x3cdiv class\x3d"pd-offer__cta"\x3e';if("in"===Qb||"uk"===Qb||"lt"===Qb||"id"===Qb){Mb.promotionFinancingFlag=!0;for(var pc=0;pc<Ab.length;pc++){var kb=Ab[pc].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>kb.indexOf("\x3ca")&&("in"===Qb?(rb+='\x3cstrong class\x3d"pd-offer__title-text"\x3e',
rb+=kb+" \x3cbr/\x3e",rb+='\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-'+Mb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+kb.toLowerCase()+':learn more"\x3e'+Granite.I18n.get("Learn more")+"\x3c/a\x3e",rb+="\x3c/strong\x3e"):rb+='\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-'+
Mb.pageTrackPd+'-cta-title"an-ca\x3d"option click"an-ac\x3d"pd buying tool"an-la\x3d"offer:'+kb.toLowerCase()+':learn more"\x3e'+kb+"\x3c/a\x3e")}}else if("ee"===Qb||"lv"===Qb){Mb.promotionFinancingFlag=!0;for(var tb=0;tb<Ab.length;tb++){var hb=Ab[tb].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>hb.indexOf("\x3ca")&&(rb+='\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-'+
lc+'"an-tr\x3d"header(pim)_offer option-'+Mb.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{rb+='\x3cstrong class\x3d"pd-offer__title-text"\x3e';for(var eb=0;eb<Ab.length;eb++)rb+=Ab[eb];rb+="\x3c/strong\x3e"}rb+="\x3c/div\x3e";rb+="\x3c/div\x3e";oc.push({target:"."+nb.replace(" ","."),text:rb});Bb.promotionFinance.push({title:"finance",hasItem:!0,item:{contentWrapperClass:nb,iconAttr:{src:Zb,alt:Yb},
description:{hasDescription:!0},rowText:oc}})}}else if("PRODUCTDETAILSSMARTCLUBPROMO"===za){var Gb=void 0,fc=ta,$b=k.siteCode,ic=n.offer,qc=qa.sales_pitch&&0<qa.sales_pitch.length?qa.sales_pitch[0]:"",ob=U(qa,k).iconImgName,ub="offer-smart-club smart-club-index-"+fc,Eb="",ac="",Xb=[];qa.formatted_sales_pitch&&0<qa.formatted_sales_pitch.length&&(Eb=qa.formatted_sales_pitch);if(Eb){ac="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+ob+".svg";Gb=
'\x3cdiv class\x3d"pd-offer__image-icon"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load" data-src\x3d"'+(ac+'?$LazyLoad_Home_PNG$" alt\x3d"'+qc+'"\x3e\x3cimg class\x3d"image__main lazy-load" data-src\x3d"')+(ac+'?$48_48_PNG$" alt\x3d"'+qc+'"\x3e\x3c/div\x3e');Gb+="\x3c/div\x3e";Gb+='\x3cdiv class\x3d"pd-offer-desc"\x3e\x3cdiv\x3e';Gb+="\t\t\x3ch3\x3e\x3cstrong\x3eSmart Club\x3c/strong\x3e\x3c/h3\x3e";Gb+="\x3cp\x3e";for(var Rb=0;Rb<Eb.length;Rb++)0>Eb[Rb].replace("\x3cu\x3e",
"").replace("\x3c/u\x3e","").indexOf("\x3ca")&&"in"===$b&&(Gb+=Eb+"");Gb+="\x3c/p\x3e";Gb+="\x3c/div\x3e";Xb.push({target:"."+ub.replace(" ","."),text:Gb});ic.promotionSmartclub.push({title:"smartclub",hasItem:!0,item:{contentWrapperClass:ub,iconAttr:{src:ac,alt:qc},description:{hasDescription:!0},rowText:Xb}})}}else if("PRODUCTDETAILSbelo4dFINANCEPLANPROMO"===za){var mc=n,jc=k.financeplusUrl+"?family_id\x3d"+k.familyCode+"\x26sku\x3d"+k.shopSkuCode,bc=null;"in"===k.siteCode&&(jc="https://www.quick3d.org/in/offer/online/finance-plus/",
bc="blank");var Tb="",Kb=null;k.financingEligible=!0;null!==qa.formatted_sales_pitch&&0<qa.formatted_sales_pitch.length?Tb=qa.formatted_sales_pitch:null!==qa.sales_pitch&&0<qa.sales_pitch.length&&(Tb=qa.sales_pitch);for(var Ub=0;Ub<Tb.length;Ub++)Kb=Tb[Ub].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");mc.offerFinance={title:Granite.I18n.get("belo4d Finance+"),hasComponent:!0,description:Kb,learnMoreCta:{"class":null,title:null,href:jc,target:bc,text:Granite.I18n.get("Learn more")}}}else if("CONFIGURATORBUYBACK"!==
za)if("CONFIGURATORADDONVOUCHER"===za){var Vb=k,Hb={},Sb=qa.discount_description;qa.sales_pitch&&0<qa.sales_pitch.length&&(Hb.sales_pitch=qa.sales_pitch[0]);qa.formatted_sales_pitch&&0<qa.formatted_sales_pitch.length&&(Hb.formatted_sales_pitch=qa.formatted_sales_pitch[0]);if(Sb&&0<Sb.length){Hb.discount_description=Sb;for(var Nb=0;Nb<Sb.length;Nb++){var cc=Sb[Nb];Hb.price=cc.value;Hb.coupons=cc.coupons}}qa.terms_and_condition_ids&&0<qa.terms_and_condition_ids.length&&(Hb.terms_and_condition_ids=qa.terms_and_condition_ids);
Vb.voucherdata=Hb;Vb.hasVoucher=!0;J(qa,k,n,F,ta)}else if("CONFIGURATORASSUREDBUYBACK"===za){if("in"===k.siteCode){var xb=k,pb=qa.discount_description;if(null!==pb&&0<pb.length)for(var db=0;db<pb.length;db++)for(var gc=0;gc<pb[db].discounted_skus.length;gc++){var Ib=pb[db].discounted_skus[gc].sku;xb.newAssuredBuyBackFlag=!0;xb.reCallSyndi.push({sku:Ib,checkingType:"newAssuredBuyBack"})}}}else"CONFIGURATORADDONCAREPACK"===za&&v(qa,V,k,F)}var kc=k.reCallSyndi,uc=k.syndiApiData.products;if(0<kc.length){for(var rc=
[],sc=0;sc<kc.length;sc++){var nc=kc[sc].sku;uc[nc]||rc.push(nc)}0<rc.length?(k.finishedSecondSyndi=!1,d(k,F,rc,O)):O(k,F,!0)}else K(k,F,n)}var vc=k.util,wc=!1;k.tradeInFlag&&("in"===siteCode?wc=!0:"fr"===siteCode&&(wc=!0));vc.settingTradeInDraw({},k,F,wc);var xc=k.upgradeFlag,Cc=k.pdUpgradeLearnMoreUrl,Ac=k.util,Lb=k.siteCode,yc=k.pdProductType,tc="",zc="",Gc="_self",Ec="",Hc="javascript:;",Ic={},Jc={},Kc={};xc&&("uk"===Lb?Cc&&(Ec=Granite.I18n.get("Learn more"),Hc=Cc,Gc="_blank"):"de"===Lb&&(Ec=
Granite.I18n.get("Learn more"),Ic.layerTarget="upgradeLearnMorePopup"),tc=Granite.I18n.get("Add belo4d Upgrade Program"),zc="uk"===Lb?"PHONE"!==yc?Granite.I18n.get("Pay for your new TV in monthly installments and be invited to upgrade to the latest TV after months."):Granite.I18n.get("Pay for your new smartphone in monthly instalments and be invited to upgrade to the new smartphone as soon as it launches."):Granite.I18n.get("Pay for your new Galaxy phone in monthly instalments and be invited to upgrade to the new Galaxy as soon as it launches."),
Jc={"class":"cm-s-popup-opener",text:Granite.I18n.get("YES"),layerTarget:"upgradePopup"},Kc={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"});var Pc=Ac.getAttrCta(Ec,Hc,Gc,"",Ic,"");n.upgrade={hasComponent:xc,isEmbededType:!1,isNotEmbededType:!0,title:tc,learnMoreCta:Pc,description:zc,yesAttr:Jc,noAttr:Kc,embedData:{}};var Lc=k.stockLevelStatus,Qc=k.proudctEcomFlag;if(("pl"!==k.siteCode||"OUTOFSTOCK"!==Lc)&&"NOORDER"!==Lc&&!0===Qc&&
null!==V.price_info&&0<V.price_info.length)for(var Fc=V.price_info,Dc=0;Dc<Fc.length;Dc++)if(!0===V.flags.is_upgrade_eligible&&Fc[Dc].leasing_details){var Mc=Fc[Dc].leasing_details,Bc=null,Nc;for(Nc in Mc)Bc=Mc[Nc];if(Bc){var Rc=Bc.tenure.unit,Sc=Bc.tenure.value,Tc=Bc.monthly_rate.value,Uc=Bc.down_payment.value;var Vc=k.pdUpgrade?Granite.I18n.get("Upgrade"):Granite.I18n.get("Lease");n.between={hasComponent:!0,purchase:{text:Granite.I18n.get("Purchase")},nonPurchase:{text:Vc,dataLeaseing:Bc.plan_id,
tenureUnit:Rc,tenureValue:Sc,monthlyValue:Tc,paymentValue:Uc}}}}var Wc=k.siteCode,Oc=$.cookies.get("epp_verified",{domain:".quick3d.org"}),Xc="PHONE"===k.pdProductType,Yc=$.cookies.get("tmktid",{domain:".quick3d.org"});"us"===Wc&&(Oc&&!0===Oc?k.util.selectedUsEpp({sharedObj:k,selectorObj:F}):Xc&&(Yc?k.util.selectedUsEpp({sharedObj:k,selectorObj:F}):(k.commonApiModel.setUsProductJson(k,F),k.commonApiModel.setEppDiscount(k,F))))}}else e.settingPriceCta(k.hasPriceCta,k,F,Y);else e.settingPriceCta(k.hasPriceCta,
k,F,Y);k.commonApiModel.offlineStockAjax(k);k.finishedFirstSyndi=!0;Q.productDraw(n);e.afterTotalAPI(k,F);k.commonApiModel.settingWishList(k,F);e.clickEventListener(k,F)}function v(k,F,ea,e){F=ea.belo4dCareBadgeList;e=ea.belo4dCareList;var n=ea.reCallSyndi,Q=ea.multiCareYn,Y=ea.util,N=ea.belo4dCarePackFlag;if("Y"!==ea.pdProductTypeCheckYn&&N){N=k.discount_description;if(null!==N&&0<N.length)for(var y=0;y<N.length;y++)for(var R=0;R<N[y].discounted_skus.length;R++){var V={},ka=N[y].discounted_skus[R],
va=ka.sku;Y.merge(ea.totalSkuList,va,ka);V.discounted_sku=va;e.push(V);ea.belo4dCareFlag=!0;"Y"===Q&&n.push({sku:va})}ea.belo4dCareFlag&&k.formatted_sales_pitch&&0<k.formatted_sales_pitch.length&&(ea.belo4dCareSubText=k.formatted_sales_pitch);for(var Aa in k.product_tag_order)F.push(k.product_tag_order[Aa]);F.sort(function(sa,ha){return sa.product_rank-ha.product_rank})}}var f=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),q=function(){};q.prototype.productAjax=function(k,F){var ea=
[k.shopSkuCode];k.finishedFirstSyndi=!1;d(k,F,ea,C)};q.prototype.callCheckOutCta=function(k,F,ea,e,n){var Q=k.checkOutLink;Q="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":Q;w(k,ea,F,Q,e,n)};q.prototype.callAddToCartCta=function(k,F,ea,e,n){var Q=k.cartUrl;Q="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":Q;w(k,ea,F,Q,e,n)};f.BuyingToolOpAjaxGPv2=q})();
(function(){function l(h,I,u,A,T){var fa=h.util,X=h.drawObj,G=$(u.buyingToolOptDelivery.find("#delivery-zipcode")).val(),z=fa.hasTariffOptionResult(h,u),M=fa.hasCareResult(h,u),S=fa.hasWarrantyResult(h,u),W=fa.hasWarrantyVdResult(h,u),ba=fa.hasUpgradeResult(h,u),ia=fa.hasTradeInResult(h,u),ta=fa.hasBetweenResult(h,u),qa=fa.hasComboResult(h,u),za=fa.hasForeverResult(h,u),na=fa.hasGiftResult(h,u),a=fa.hasAssuredBuyBackResultResult(h,u),c=fa.hasNewAssuredBuyBackResult(h,u);A={};if(fa.checkingDeliveryCode(h,
u))if(h.cartBezelCode&&(A.bezelCode=h.cartBezelCode,A.isContinue=T),h.giftCard.cartGiftCardCode&&(A.giftCardCode=h.giftCard.cartGiftCardCode,A.isContinue=T),A.postalCode=G,T){if(I&&0<I.length&&(A.addon={modelCodeList:[].concat($jscomp.arrayFromIterable(I)),childModelObject:h.productChildModelObject}),na){h=X.offer.gift.item;for(var m in h.bundleList)A.gift={modelCode:h.bundleList[m]}}}else{"true"===$("#isEppPage").val()&&"in"===h.siteCode&&h.proudctPriceInfo.productCartCount&&1<h.proudctPriceInfo.productCartCount&&
(A.orignalQuantity={},A.orignalQuantity.quantity=""+h.proudctPriceInfo.productCartCount);"cn"===h.siteCode&&(I=h.installmentGift)&&I.selectedOffers&&(A.installment=I);(I=h.globalServiceInfo.embedaddon)&&0<I.length&&(A.embedaddon=I);z&&(z=X.tariffOptionResult,A.tariff={modelCode:z.dataModelCode,simSkuCode:z.dataSimskuCode,tnc:[z.dataId],tariffResult:h.globalServiceInfo.tariff});ia&&"in"!==H&&(ia=X.tradeInResult,"cn"===H||"tr"===H?A.tradeIn={plan_id:ia.dataQuoteId,tradeInResultList:h.isMultiTradeIn&&
ia.list?ia.list:[]}:h.useNewAddToCartApi?(z=h.isMultiTradeIn&&ia.list?ia.list:[],h.isMultiTradeIn||!h.globalServiceInfo||h.ceTradeUpPopup.isEnabled||(h.globalServiceInfo.tradein.services={},h.globalServiceInfo.tradein.services.tradeInAdditionalInfo=h.globalServiceInfo.tradein.tradeInAdditionalInfo,h.globalServiceInfo.tradein.services.questionAndAnswer=h.globalServiceInfo.tradein.questionAndAnswer,h.globalServiceInfo.tradein.services.tradeInType=h.globalServiceInfo.tradein.tradeInType,h.globalServiceInfo.tradein.services.imeiKey=
h.globalServiceInfo.tradein.imeiKey,h.globalServiceInfo.tradein.services.serviceCode=h.globalServiceInfo.tradein.serviceCode?h.globalServiceInfo.tradein.serviceCode:h.globalServiceInfo.tradein.tradeinId,h.globalServiceInfo.tradein.services.serviceType=h.globalServiceInfo.tradein.serviceType,z.push(h.globalServiceInfo.tradein)),A.tradeIn={plan_id:ia.dataQuoteId,tradeInResultList:z}):A.tradeIn={plan_id:ia.dataQuoteId},ia.dataId&&0<ia.dataId.length&&(A.tradeIn.tnc=[].concat($jscomp.arrayFromIterable(ia.dataId))));
if(h.exchangeApiData&&h.exchangeApiData.exchangeFlag&&h.ceTradeUpPopup.isEnabled||"in"===H)A.exchange="in"==H?{exchangeId:h.exchangeApiData.dataQuoteId,tradeInType:h.tradeInType}:{exchangeId:h.exchangeApiData.dataQuoteId};"se"==H&&window.sg.components.belo4dFlexPopup&&window.sg.components.belo4dFlexPopup.hasbelo4dFlex&&(A.belo4dUpgrade={serviceCode:window.sg.components.belo4dFlexPopup.belo4dFlexServiceCode});if(M){M=X.careResult;var g;"es"!==H&&"fr"!==H&&"cz"!==H||"monthly"!==(null==(g=X.careResult.dataPaymentcycle)?
void 0:g.toLowerCase())?A.care={modelCode:M.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(M.dataId))}:A.care={modelCode:M.dataModelCode,isMonltly:!0,paymentCycle:X.careResult.dataPaymentcycle.toUpperCase(),tnc:[].concat($jscomp.arrayFromIterable(M.dataId))}}S&&(g=X.warrantyResult,A.warranty={modelCode:g.dataModelCode,tnc:[].concat($jscomp.arrayFromIterable(g.dataId))});W&&(W=X.warrantyVdResult,A.warrantyVd={modelCode:W.smcCode,isMonthlyYn:W.isMonthlyYn});ba&&(A.upgrade={modelCode:h.childCheckList[0],
tnc:[].concat($jscomp.arrayFromIterable(X.upgradeResult.dataId))});ta&&(A.between={plan_id:X.between.nonPurchase.dataLeaseing});if(qa){ba=X.offer.combo;A.combo={modelCodeList:[]};for(var p in ba){ta=ba[p].item;for(var aa in ta.bundleList)A.combo.modelCodeList.push(ta.bundleList[aa].dataModelCode)}}if(na)for(m in p=X.offer.gift.item,p.bundleList)if(aa=p.bundleList[m].dataModelCode)A.gift={modelCode:aa};a&&(m=h.drawObj.assuredBuyBackResult,A.assuredBuyBack={modelCode:m.dataSku,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});
za&&(m=h.drawObj.galaxyForeverResult,A.forever={modelCodeList:[].concat($jscomp.arrayFromIterable(m.modelList)),planId:m.financePlanId,tnc:[].concat($jscomp.arrayFromIterable(m.dataId))});c&&(h=h.drawObj.newAssuredBuyBackResult,A.newAssuredBuyBack={modelCode:h.dataModelCode,dataDisplayName:h.dataDisplayName,dataDisplayPrice:h.dataDisplayPrice,dataPrice:h.dataPrice,hasComponent:h.hasComponent})}return A}function d(h,I,u){if(!u.isExecuted){var A=!0;for(T in u.finishedAPIList)if(!u.finishedAPIList[T]){A=
!1;break}if(A){u.isExecuted=!0;h.view.productDraw(h.drawObj);"in"===H&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&h.drawObj.delivery.hasComponent&&t(h,I);h.util.totalAfterFunction(h,I);if("10030000"!=h.categoryTypeCode){u=h.financeFlag;A=h.financingUrl;var T=h.siteCode;var fa=h.promotionFinancingFlag,X=h.util,G=h.view,z=Granite.I18n.get("Calculate Finance"),M=h.drawObj,S=X.getEmiUrl(h,I),W=!1,ba={};"Y"===u&&""!==A&&"in"!==T&&("uk"===T||"id"===T||"lt"===T||"lv"===T||
"ee"===T||"pl"===T||"hu"===T||"ro"===T||"bg"===T||"ua"===T||"ph"===T||"sg"===T||"my"===T||"nz"===T||"sk"===T||"cz"===T||"cn"===T||"co"===T||"cl"===T||"mx"===T||"kz_kz"===T||"kz_ru"===T?fa&&(W=!0,ba=X.getAttrCta(z,S,"_self","js-install-calc",{layerTarget:"eipPopup"},"")):(W=!0,ba=X.getAttrCta(z,S,"_self","js-install-calc",{layerTarget:"eipPopup"},"")));M.calculator={hasComponent:W,emiAttr:ba};G.emiDraw(M)}T=h.util;fa=I.buyingToolOptOffer;"Y"===$("#typeux2025").val()&&(fa=I.buyingToolOptOfferText);
u=$(I.buyingToolCalculate).find(".js-install-calc");A=fa.find('a[data-target-popup\x3d"eipPopup"]');fa=fa.find('a[data-target-popup\x3d"eipEEPopup"]');T=T.getEmiUrl(h,I);A.attr("href",T);fa.attr("href",T);u.attr("href",T);h.util.totalReinit(h,I);h.util.gpHybrisGlobalEndPoint(h,I);K(h,I);h.util.clickEventListener(h,I);window.sg.components.PDbuyingToolNew.reInit()}}}function K(h,I){var u=h.drawObj,A=u.wishList,T=$.cookies.get("jwt_"+h.countryIsoCode,{domain:".quick3d.org"}),fa=h.stockLevelStatus,X=
h.proudctPriceInfo.salePrice,G=commonLoginCheck(),z=h.apiDomain,M=h.view,S=h.util;A.stockLevelStatus=fa;A.price=X;A.moCode=h.shopSkuCode?h.shopSkuCode:h.modelCode;A.moName=h.modelName;A.labelText=Granite.I18n.get("add wishlist")+" : "+h.modelName;A.targetId="#wishlist-popup";A.contentWrapperClass="NOORDER"===fa||"LEARNMORE"===fa?"js-btn-wishlist js-not-for-sale-wishlist tg-add-wishlist js-learnmore":X?G?"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";A="";$("#shopParmLang").val()&&(A="\x26lang\x3d"+$("#shopParmLang").val());G?$.ajax({url:z+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/users/current/wishlist/default/product/exist?productCode\x3d"+h.modelCode+A,type:"GET",dataType:"json",timeout:2E4,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(W){var ba=h.drawObj.wishList;W&&"My Wishlist"===W&&(ba.labelText=Granite.I18n.get("Remove wishlist")+
" : "+h.modelName,ba.contentWrapperClass="pd-wishlist-cta--on s-btn-wishlist js-select-wishlist is-async tg-remove-wishlist",ba.isSelected="true")},error:function(W){},complete:function(){var W=h.util;h.view.productWishListDraw(h.drawObj);W.settingWishlistTagging(h,I)}}):(M.productWishListDraw(u),S.settingWishlistTagging(h,I));if(null===T||""===T)return!1}function D(h,I,u,A){var T=h.drawObj,fa=h.siteCode;if(A){k(h,I,u);"pe"!=fa&&"mx"!=fa||q(h,I,u);("fr"==fa&&h.hasRentalInstallment||"fr"!=fa)&&r(h,
I,u);"cn"==fa&&u.apiData[h.modelCode].isComingSoon&&(h.isComingSoon=u.apiData[h.modelCode].isComingSoon);Aa(h,I,u);f(h,I,u);h.util.settingShippingOrBack(h);h.util.settingPriceCta(h.hasPriceCta,h,I,h.currentUrl);"tr"==fa?(A=u.apiData[h.modelCode],void 0!=A.omniChannelFlag&&A.omniChannelFlag?v(h,I,u):$(I.buyingToolOptCheckDealerStock).remove()):$(I.buyingToolOptCheckDealerStock).remove();if("cn"==fa){A=u.apiData[h.modelCode];var X=h.apiDomain,G="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():
fa,z=[];A.availableCoupons&&null!=A.availableCoupons&&0<A.availableCoupons.length&&(A.availableCoupons.forEach(function(M){z.push(M.code)}),$.ajax({url:X+"/tokocommercewebservices/v2/"+G+"/users/current/coupons?couponCodes\x3d"+z,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},cache:!0,timeout:2E4,success:function(M,S,W){if(200==W.status&&null!=M&&M&&M.data.coupons){M=M.data.coupons;var ba=(new Date).toISOString();M=M.filter(function(ia){return ia.endDate>=ba});S=[];M&&2<=
M.length?(S=M.sort(function(ia,ta){return new Date(ta.startDate)-new Date(ia.startDate)}),product_coupon.init(S),pd_hybris_coupon_popup.init(S)):M&&1==M.length&&(S=M,product_coupon.init(S),pd_hybris_coupon_popup.init(S))}},error:function(){console.log("coupon ajax err")}}))}T.price.priceWrapper.hasPriceWrapper&&(h.drawObj.offer.headline="fr"===fa?Granite.I18n.get("Offer_PD"):Granite.I18n.getVar("Offer","ux2"),w(h,I,u),O(h,I,u),B(h,I,u),J(h,I,u));h.commonApiModel.offlineStockAjax(h);h.useHotDealBadge&&
h.merchText&&h.view.hotDealBadgeDraw(h.merchText);h.util.settingPriceDraw(h,I);h.view.productDraw(h.drawObj)}else $(I.buyingToolOptCheckDealerStock).remove();d(h,I,u)}function r(h,I,u){var A=h.apiDomain,T=h.siteCode,fa=h.modelCode,X="";$("#shopParmLang").val()&&(X="\x26lang\x3d"+$("#shopParmLang").val());A=A+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/servicesv2/leasingInfoV2?productCode\x3d"+fa+X;"true"!==$("#isEppPage").val()||"pe"!==T&&"cl"!==T||(A=$("#storeWebDomain").val()+"/"+h.siteCodeWithEpp+
"/servicesv2/nocache/leasingInfo?productCode\x3d"+fa);u.finishedAPIList.leasing=!1;fa="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};$.ajax({url:A,type:"GET",dataType:"json",cache:!0,xhrFields:fa,crossDomain:!0,timeout:2E4,success:function(G){if(G&&0<G.length){var z=!1,M=-1,S=-1;!0===h.hasRentalInstallment&&"nl"==T&&"nl"===h.siteCode&&G&&0<G.length&&G[0]&&G[0].months&&U(G,h,I,u);G=$jscomp.makeIterator(G);for(var W=
G.next();!W.done;W=G.next())if(W=W.value,"UPGRADE"!==W.paymentModeType.toUpperCase()||z)"LEASING"===W.paymentModeType.toUpperCase()&&(W.monthly&&-1===M&&(M=parseFloat(W.monthly)),"nl"==T?(W.months&&-1===S&&(S=parseInt(W.months)),"nl-evollisPaymentMode"===W.paymentModeCode&&W.months&&W.monthly&&W.interest&&parseInt(W.months)>=S&&(u.commonModel.price.leasingInfo.monthlyRate=W.monthly,u.commonModel.price.leasingInfo.tenureVal=W.months,u.commonModel.price.leasingInfo.interest=W.interest,u.commonModel.price.leasingInfo.upfront=
W.upfront,u.commonModel.price.leasingInfo.paymentModeCode=W.paymentModeCode,S=parseInt(W.months))):W.months&&W.monthly&&0===parseFloat(W.interest)&&parseFloat(W.monthly)<=M&&(u.commonModel.price.leasingInfo.monthlyRate=W.monthly,u.commonModel.price.leasingInfo.tenureVal=W.months,u.commonModel.price.leasingInfo.interest=W.interest,u.commonModel.price.leasingInfo.upfront=W.upfront,u.commonModel.price.leasingInfo.paymentModeCode=W.paymentModeCode,M=parseFloat(W.monthly)),sa(h,I,u));else{h.eupData.salePrice=
W.totalCost;h.eupData.monthlyPrice=W.monthly;h.eupData.months=W.months;z=h;var ba=u,ia=z.childCheckList,ta=z.eupData,qa=ba.commonModel.upgradeData,za=z.pdUpgradeUseYn;W=z.util;var na=z.pdUpgradeLearnMoreUrl,a=z.pdProductType;qa.hasData&&(z.upgradeEligible=!0,"Y"===za&&qa.sku&&(qa=qa.sku,ia.push(qa),z.upgradeFlag=!0,ta.displayName=ba.commonModel.product_display_name,ta.sku=qa));ia=ba="";za="_self";var c="",m="javascript:;",g={};ta={};qa={};z.upgradeFlag&&("uk"===H?na&&(c=Granite.I18n.get("Learn more"),
m=na,za="_blank"):"de"===H&&(c=Granite.I18n.get("Learn more"),g.layerTarget="upgradeLearnMorePopup"),ba=Granite.I18n.get("Add belo4d Upgrade Program"),ia="uk"===H?"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."),
ta={"class":"cm-s-popup-opener",text:Granite.I18n.get("YES"),layerTarget:"upgradePopup"},qa={"class":"cm-s-popup-opener",text:Granite.I18n.get("NO"),eventType:"eup",modelCode:"upgrade",modelName:"upgrade"});W=W.getAttrCta(c,m,za,"",g,"");z.drawObj.upgrade={hasComponent:z.upgradeFlag,isEmbededType:!1,isNotEmbededType:!0,title:ba,learnMoreCta:W,description:ia,yesAttr:ta,noAttr:qa,embedData:{}};z.upgradeFlag&&buyingPdEup.setTncUpgrade();z=!0}G=h.siteCode;M=h.drawObj;S=h.view;W="be"===G||"be_fr"===G||
"nl"===G||"fr"===G;G=Granite.I18n.get("Lease");z=Granite.I18n.get("Purchase");W&&(W=u.commonModel.price.leasingInfo.upfront,na=u.commonModel.price.leasingInfo.tenureVal,a=u.commonModel.price.leasingInfo.monthlyRate,ba=u.commonModel.price.leasingInfo.paymentModeCode,ia=!1,""!==W&&""!==na&&""!==a&&(ia=!0),M.between={hasComponent:ia,purchase:{text:z},nonPurchase:{text:G,tenureUnit:na,tenureValue:0,monthlyValue:a,paymentValue:W,paymentModeCode:ba}},S.betweenDraw(M))}},error:function(G){},complete:function(){u.finishedAPIList.leasing=
!0;d(h,I,u)}})}function B(h,I,u){if(u.commonModel.warrantyData.hasData){var A=h.warrantyFlag=!0,T=h.pdProductType,fa=h.warrantyLearnMoreUrl,X=h.util,G=h.view,z=h.drawObj,M=Granite.I18n.get("Extended Warranty"),S="",W="_self",ba="",ia="javascript:;",ta={},qa={},za={},na={};A&&($(I.buyingToolOptWarranty.get(0)).addClass("has-component"),fa&&(ba=Granite.I18n.get("Learn more"),ia=fa,W="_blank"),"de"!==H||"TV"!=T&&"ETC"!=T?S=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."):
(M=Granite.I18n.get("Garantieverl\u00e4ngerung"),S="Verl\u00e4ngere die Standard-Herstellergarantie deines belo4d Ger\u00e4ts von 2 auf 5 Jahre"),za={"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"},ta=X.getAttrCta(ba,ia,W,"",qa,""));z.warranty={hasComponent:A,title:M,learnMoreCta:ta,description:S,yesAttr:za,noAttr:na,subText:""};
h.finalWarrantyList=u.commonModel.warrantyData.skuData;G.productAddOnWarranty(z)}}function J(h,I,u){if(u.commonModel.warrantyVdData.hasData){u=h.useWarrantyVd;var A="",T="_blank",fa="",X=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,G=["de"].includes(H)?!0:!1;"au id my nz ph sg vn".split(" ").includes(H)?(T="_self",A="javascript:;",fa="hubbleCareinfoPopup"):"de"==H?A="https://www.quick3d.org/de/offer/garantieverlaengerung":"mx"==H?X?(T="_self",
fa="hubbleCareinfoPopup"):A="https://www.quick3d.org/mx/support/belo4d-care-plus-da":"fr"==H?A="https://www.quick3d.org/fr/shop-faq/extensions-de-garantie/":"cn"==H?A="https://www.quick3d.org.cn/offer/ce-extended-warranty/":"cz"==H?A="https://www.quick3d.org/cz/support/warranty/":"sk"==H?A="https://www.quick3d.org/sk/support/warranty/":"in"==H?A="https://www.quick3d.org/in/support/warranty/":"lt"==H?A="https://www.quick3d.org/lt/support/warranty/":"lv"==H?A="https://www.quick3d.org/lv/support/warranty/":
"ee"==H?A="https://www.quick3d.org/ee/support/warranty/":"pl"==H?A="https://www.scplus.belo4d.pl/":"hr"==H?A="https://www.quick3d.org/hr/support/warranty/":"si"==H&&(A="https://www.quick3d.org/si/support/warranty/");X=h.view;var z=h.drawObj,M=h.ceTradeUpPopup.productCategoryGroup,S=Granite.I18n.get("Extended Warranty"),W="",ba={},ia={},ta={};u&&($(I.buyingToolOptWarrantyVd.get(0)).addClass("has-component"),"ee"==H?ba={learnMoreText:Granite.I18n.get("VD_Extended Warranty Learn more"),learnMoreHref:A,
learnMoreTarget:T,learnMoreTargetPopup:fa}:G||(ba={learnMoreText:Granite.I18n.get("Learn more"),learnMoreHref:A,learnMoreTarget:T,learnMoreTargetPopup:fa}),S=Granite.I18n.get("VD_Extended Warranty_Title"),W=Granite.I18n.get("VD_Extended Warranty_Description"),"mx"==H&&"da"==M&&(S=Granite.I18n.get("DA_Extended Warranty_Title"),W=Granite.I18n.get("DA_Extended Warranty_Description")),ia={text:Granite.I18n.get("VD_Extended Warranty_YES"),layerTarget:"ExtendedWarrantyVdPopup"},ta={text:Granite.I18n.get("VD_Extended Warranty_NO")},
"mx"==H&&0<$.grep([{category:"04010000",name:"TVs"},{category:"04020000",name:"Lifestyle TVs"},{category:"04040000",name:"Business TVs"}],function(qa){return qa.category==h.categoryTypeCode}).length&&(S=Granite.I18n.get("VD_Extended Warranty_Title {0}"," ").replace("  ",""),ba.learnMoreHref="https://www.quick3d.org/mx/support/belo4d-care-plus-tv/"));z.warrantyVd={hasComponent:u,title:S,learnMoreCta:ba,description:W,yesAttr:ia,noAttr:ta,subText:""};X.productAddOnWarrantyVd(z)}}function U(h,I,u,A){u=
I.priceCurrency;I=[];for(var T in h)"LEASING"===h[T].paymentModeType.toUpperCase()&&"nl-santanderPayment"===h[T].paymentModeCode&&I.push(h[T]);if(1<I.length){I.sort(function(X,G){return X.months>G.months?-1:X.months<G.months?1:0});var fa=T=h="";fa="";I[0].interest&&I[0].months&&(fa=I[0].interest+"% Financiering: In "+I[0].months+" termijnen*");""!==fa&&$(".financing-info-box__contents-info-text").text(fa);I[0].monthly?(h=currencyCommaExcep(parseFloat(I[0].monthly).toFixed(2),u).replace(".",""),fa=
h+" p/m",$(".financing-info-box__contents-info-price").text(fa)):$(".financing-info-box__contents-info-price").remove();$(".pd-select-option.financing-info-box-area").show();I[0].totalCost&&(T=currencyCommaExcep(parseFloat(I[0].totalCost).toFixed(2),u).replace(".",""));fa=A.commonModel.price.salePrice.value?currencyCommaExcep(A.commonModel.price.salePrice.value,u).replace(".",""):currencyCommaExcep(A.commonModel.price.msrpPrice.value,u).replace(".","");A="";A='\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'+
fa+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+h+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I[0].months+' Maanden\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+T+"\x3c/div\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e";
$("#rentalInstallmentFinancingTable").html(A);$("#rentalInstallmentFinancing").show()}else 1==I.length&&(fa=fa=T=h="",I[0].interest&&I[0].months&&(fa=I[0].interest+"% Financiering: In "+I[0].months+" termijnen*"),""!==fa&&$(".financing-info-box__contents-info-text").text(fa),I[0].monthly?(h=currencyCommaExcep(parseFloat(I[0].monthly).toFixed(2),u).replace(".",""),fa=h+" p/m",$(".financing-info-box__contents-info-price").text(fa)):$(".financing-info-box__contents-info-price").remove(),$(".pd-select-option.financing-info-box-area").show(),
I[0].totalCost&&(T=currencyCommaExcep(parseFloat(I[0].totalCost).toFixed(2),u).replace(".","")),fa=A.commonModel.price.salePrice.value?currencyCommaExcep(A.commonModel.price.salePrice.value,u).replace(".",""):currencyCommaExcep(A.commonModel.price.msrpPrice.value,u).replace(".",""),A="",A='\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'+
fa+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I[0].interest+'%\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+h+'\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+I[0].months+' Maanden\x3c/div\x3e\n\t\t                \x3cdiv class\x3d"pd-financing-table__td"\x3e'+T+"\x3c/div\x3e\n\t\t              \x3c/div\x3e\n\t\t            \x3c/div\x3e\n\t\t          \x3c/div\x3e",
$("#rentalInstallmentFinancingTable").html(A),$("#rentalInstallmentFinancing").show())}function O(h,I,u){var A=h.util,T=h.siteCode;if(u.commonModel.tradeInData.hasData){var fa=!1;h.tradeInFlag=!0;h.tradeInFlag&&"in"===T&&(fa=!0);"in"==T?(u=Granite.I18n.get("Buy with exchange"),h.tradeinText=u,A.settingTradeInDraw({},h,I,fa)):!h.tradeInFlag||"uk"===H&&"CE"===h.tradeInType||(I=$("#tempTitle").val(),(new window.sg.components.dynamic.BuyingToolOpUtile).isCommonTradeinCheck()?((new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("commontradein"),
bc_common_tradeIn.init()):"ro"===H&&h.categoryTypeCode.startsWith("08")&&!u.commonModel.tradeInData.isTradeUp?tradeinData.setTradein():!h.ceTradeUpPopup.isEnabled||"page-buying-pd"!=I&&"page-standard-pd"!=I?tradeinData.setTradein():(0===$("#ce-trade-up-popup-section").length&&(I=h.ceTradeUpPopup.productCategoryGroup,u=h.ceTradeUpPopup.productCategoryMainType,"ph"!==H||"rf"!==u&&"wm"!==u&&"ac"!==u||(I=u),(new window.sg.components.dynamic.BuyingToolOpUtile).loadComponent("ce-tradeup."+I)),window.CeTradeUpPopup.init(h.modelCode)))}}
function w(h,I,u){var A=h.siteCode,T=h.drawObj,fa=h.stockLevelStatus,X=T.delivery,G=h.deliveryYN,z=$.cookies.get("HA-Deeplink-Zipcode",{domain:".quick3d.org"}),M=h.util,S=h.pdPackageYn,W=h.drawObj.delivery;if("in"===H){var ba=h.drawObj.delivery.time;u=u.apiData[h.modelCode];if(u.deliveryModes&&0<u.deliveryModes.length){var ia=u.deliveryModes,ta=0;u=[];for(var qa=[],za=0;za<ia.length;za++){var na=ia[za];na.deliveryStandard&&na.longText&&("SDD"===na.deliveryStandard||"NDD"===na.deliveryStandard)&&(ta++,
"SDD"===na.deliveryStandard&&u.push(na),"NDD"===na.deliveryStandard&&qa.push(na))}0<ta&&null!==ba&&(ia=ba.split("GMT")[0].trim().slice(-8),ba=Number(ia.split(":")[0])+5,ta=Number(ia.split(":")[1])+30,59<ta&&(ta-=30,ba+=1),2>String(ta).length&&(ta="0"+String(ta)),2>String(ba).length&&(ba="0"+String(ba)),ia={},ba=Number(String(ba)+String(ta)),ba<Number(1E3)?0<u.length?ia=u[0]:0<qa.length&&(ia=qa[0]):ba>=Number(1E3)&&0<qa.length&&(ia=qa[0]),ia&&(W.priorityDeliveryText=ia.longText,ia.longDescription&&
(W.priorityDeliveryTooltip=ia.longDescription.replaceAll("\n","\x3c/br\x3e")),W.isPriorityDelivery=!0))}}if("in"===A&&!S&&"10020000"!==h.categoryTypeCode||"us"===A&&G)if(X.hasComponent=!0,X.headline=Granite.I18n.get("Delivery Detail"),X.label=Granite.I18n.get("Enter Zipcode"),X.cancelText=Granite.I18n.get("Delete"),X.enterText=Granite.I18n.get("Search"),"id"===A?X.inputAttr.maxlength="5":"us"===A?(X.inputAttr.maxlength="5",z&&(X.inputAttr.value=z,h.view.deliveryDraw(T),M.deliveryGetApiData(h,I))):
(X.ctaClass="cta--disabled",X.inputAttr.maxlength="6"),"NOORDER"===fa||"OUTOFSTOCK"===fa)X.labelClass="text-field--disabled",X.ctaClass="cta--disabled",X.inputAttr.disabled="true"}function t(h,I){var u,A;return $jscomp.asyncExecutePromiseGeneratorProgram(function(T){if(1==T.nextAddress)return u=h.stockLevelStatus,(A=$.cookies.get("deliveryPincode",{domain:".quick3d.org"}))?T.jumpTo(2):T.yield(window.flutter_inappwebview.callHandler("getPinCode"),3);2!=T.nextAddress&&(A=T.yieldResult);A&&A.toString().replace(/[^0-9]/g,
"")&&(h.drawObj.delivery.inputAttr.value=A,h.view.deliveryDraw(h.drawObj),"NOORDER"!==u&&"OUTOFSTOCK"!==u&&h.util.deliveryGetApiData(h,I));T.jumpToEnd()})}function C(h){$.ajax({type:"GET",url:"/aemapi/v6/product/serverUTC",success:function(I,u,A){h.drawObj.delivery.time=A.getResponseHeader("Date")}})}function v(h,I,u){var A="true"===$("#isEppPage").val()?h.apiDomain:$("#storeDomain").val(),T=h.siteCode,fa=h.drawObj,X=!1,G="true"===$("#isEppPage").val()?{withCredentials:!0}:{},z=new Promise(function(S,
W){$.ajax({url:A+"/tokocommercewebservices/v2/"+T+"/countries/"+T+"/regions?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:G,crossDomain:!0,timeout:2E4,success:function(ba){ba&&void 0!=ba.regions?S(ba):S(null)},error:function(ba){S(null)}})}),M=new Promise(function(S,W){$.ajax({url:A+"/tokocommercewebservices/v2/"+T+"/countries/"+T+"/regionsPinned?format\x3djson\x26fields\x3dFULL",type:"GET",dataType:"json",cache:!0,xhrFields:G,crossDomain:!0,timeout:2E4,success:function(ba){ba&&
void 0!=ba.regions?S(ba):S(null)},error:function(ba){S(null)}})});Promise.all([z,M]).then(function(S){var W=S[0],ba=S[1];if(null!=W&&null!=W.regions&&0<W.regions.length){W=S[0].regions;if(null!=ba){ba=S[1].regions;var ia=0;ba.forEach(function(ta){var qa=W.findIndex(function(na){return ta.isocodeShort==na.isocodeShort}),za=W[qa];W.splice(qa,1);W.splice(ia,0,za);ia++})}X=!0;S=Granite.I18n.get("Select city");fa.checkDealerStock={hasComponent:X,selectCity:S,dataList:W};h.view.checkDealerStockDraw(h.drawObj);
d(h,I,u)}})}function f(h,I,u){u.commonModel.emcomFlag&&(u.commonModel.price.msrpPrice.value&&(h.hasPriceCta=!0),0==u.commonModel.price.msrpPrice.value&&"10030000"==h.categoryTypeCode&&"de"==h.siteCode&&(h.hasPriceCta=!0),h.proudctEcomFlag=!0);sa(h,I,u)}function q(h,I,u){var A="true"===$("#isEppPage").val()?h.apiDomain:$("#storeWebDomain").val(),T="true"===$("#isEppPage").val()?h.siteCodeWithEpp:h.siteCode,fa=h.modelCode;u.finishedAPIList.stocklevel=!1;$.ajax({url:A+"/tokocommercewebservices/v2/"+
T+"/products/stockinfo?productCodes\x3d"+fa,type:"GET",cache:!0,crossDomain:!0,dataType:"json",timeout:2E4,success:function(X,G,z){200==z.status&&X&&0<X.length&&X[0].code==fa&&"INSTOCK"==X[0].stock.stockLevelStatus.toUpperCase()&&(1==X[0].stock.stockLevel?h.stockLevelStatusDisplay=Granite.I18n.get("There is 1 unit available"):2<=X[0].stock.stockLevel&&9>=X[0].stock.stockLevel?h.stockLevelStatusDisplay=Granite.I18n.get("There are {0} units available",X[0].stock.stockLevel):10<=X[0].stock.stockLevel&&
"pe"==T&&(h.stockLevelStatusDisplay=Granite.I18n.get("More than 10 units available")))},error:function(X,G,z){},complete:function(){u.finishedAPIList.stocklevel=!0;d(h,I,u)}})}function k(h,I,u){$("#categorySubTypeCode").val();va(h,I,u);var A=u.apiData[h.modelCode];if(A){A.stock&&(u.commonModel.stockLevelStatus=A.stock.stockLevelStatus,"lowStock"==A.stock.stockLevelStatus&&(u.commonModel.stockLevelStatus="INSTOCK"));A.price&&(u.commonModel.price.msrpPrice.value=A.price.value,u.commonModel.price.msrpPrice.formatted_value=
A.price.formattedValue,"bg"===H&&A.price.currencyIso&&$("#priceCurrency").val().toLowerCase()!==A.price.currencyIso.toLowerCase()&&(h.priceCurrency=A.price.currencyIso,$("#priceCurrency").val(A.price.currencyIso)));h.useHotDealBadge&&null!=A.merchFlags&&0<A.merchFlags.length&&A.merchFlags.forEach(function(ta,qa){ta.code&&(h.merchText=ta.code)});if(h.isNewElementLowestWasPrice&&A.lowestWasPrice){var T=A.lowestWasPrice?A.lowestWasPrice.value:0;if(A.promotionPrice){if(T<=A.price.value&&T>A.promotionPrice.value||
("si"==H||"hr"==H||"lv"==H||"lt"==H||"ee"==H)&&T>A.promotionPrice.value)u.commonModel.price.msrpPrice.value=A.lowestWasPrice.value,u.commonModel.price.msrpPrice.formatted_value=A.lowestWasPrice.formattedValue,h.isNewElementLowestWasPriceSetting=!0}else("pl"==H||"si"==H||"hr"==H||"lv"==H||"lt"==H||"ee"==H)&&T>A.price.value&&(u.commonModel.price.salePrice.value=A.price.value,u.commonModel.price.salePrice.formatted_value=A.price.formattedValue,u.commonModel.price.msrpPrice.value=A.lowestWasPrice.value,
u.commonModel.price.msrpPrice.formatted_value=A.lowestWasPrice.formattedValue,h.isNewElementLowestWasPriceSetting=!0),T<=A.price.value&&(u.commonModel.price.msrpPrice.value=A.lowestWasPrice.value,u.commonModel.price.msrpPrice.formatted_value=A.lowestWasPrice.formattedValue)}A.promotionPrice&&(u.commonModel.price.salePrice.value=A.promotionPrice.value,u.commonModel.price.salePrice.formatted_value=A.promotionPrice.formattedValue);A.frequentPrice&&"fr"==H&&(h.hasFrequentPrice=!0,u.commonModel.price.frequentPrice.value=
A.frequentPrice.value,u.commonModel.price.frequentPrice.formatted_value=A.frequentPrice.formattedValue);A.backOrderMessage&&(h.backOrderMessage=A.backOrderMessage);A.shippingETA&&(h.shippingMessage=A.shippingETA);if("nl"==H||"be"==H||"be_fr"==H)A.msrpPrice?(u.commonModel.price.listPrice.value=A.msrpPrice.value,u.commonModel.price.listPrice.formatted_value=A.msrpPrice.formattedValue):A.promotionPrice<A.price&&(u.commonModel.price.listPrice.value=A.price.value,u.commonModel.price.listPrice.formatted_value=
A.price.formattedValue);"true"===$("#isEppPage").val()&&"pl"===H&&A.msrpPrice&&(u.commonModel.price.listPrice.value=A.msrpPrice.value,u.commonModel.price.listPrice.formatted_value=A.msrpPrice.formattedValue);"co"==H&&(A.vatEligible&&!0===A.vatEligible?(h.vatEligible=!0,A.vatFreePrice&&(u.commonModel.price.vatFreePrice.value=A.vatFreePrice.value,u.commonModel.price.vatFreePrice.formatted_value=A.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"))):h.vatEligible=!1);"in"===H&&A.salesPitch&&(h.proudctPriceInfo.salesPitch=A.salesPitch);A.variablePrice&&(h.giftCard.maxPrice=A.variablePrice.priceRange.maxPrice.value,h.giftCard.maxPriceFormatted=A.variablePrice.priceRange.maxPrice.formattedValue,h.giftCard.minPrice=A.variablePrice.priceRange.minPrice.value,h.giftCard.minPriceFormatted=A.variablePrice.priceRange.minPrice.formattedValue,h.giftCard.priceIncrement=A.variablePrice.priceIncrement.value,h.giftCard.priceIncrementFormatted=
A.variablePrice.priceIncrement.formattedValue);h.blockEddDisplay=A.blockEddDisplay&&null!=A.blockEddDisplay?A.blockEddDisplay:"Y";if(A.name||h.displayName)u.commonModel.product_display_name=A.name?A.name:h.displayName;A.salesStatus&&(u.commonModel.emcomFlag="PURCHASABLE"===A.salesStatus.toUpperCase(),h.newHybrisSalesStatus=u.commonModel.emcomFlag);A.backOrderAdditionalText&&(u.commonModel.stockCustomMessage=A.backOrderAdditionalText);h.isLowestInstallmentAmount&&A.lowestInstallmentAmount&&A.lowestInstallmentAmountTenure&&
(u.commonModel.price.lowestInstallmentAmount=A.lowestInstallmentAmount,u.commonModel.price.lowestInstallmentAmountTenure=A.lowestInstallmentAmountTenure,h.isLowestInstallmentInterest&&A.lowestInstallmentInterest&&(u.commonModel.price.lowestInstallmentInterest=A.lowestInstallmentInterest));h.isSECZ&&0!=h.calculateInstallmentPeriodicValue&&0!=h.calculateInstallmentPeriod&&(u.commonModel.price.lowestInstallmentAmount=h.calculateInstallmentPeriod,u.commonModel.price.lowestInstallmentAmountTenure=h.calculateInstallmentPeriodicValue);
"de"===H&&ea(h,I,u);if(("ro"==H||"bg"==H)&&A.informativeTaxes&&0<A.informativeTaxes.length){T=$jscomp.makeIterator(A.informativeTaxes);for(var fa=T.next();!fa.done;fa=T.next())fa=fa.value,"BATTERY_TAX_INFORMATIVE"===fa.code?(h.proudctPriceInfo.batteryInformativeTaxes=fa.value,h.proudctPriceInfo.batteryInformativeTaxesAreaToShow=fa.areaToShow):"GREEN_TAX_INFORMATIVE"===fa.code&&(h.proudctPriceInfo.greenInformativeTaxes=fa.value,h.proudctPriceInfo.greenInformativeTaxesAreaToShow=fa.areaToShow)}fa=T=
!1;if(A.supportedAvailableServices)for(var X=$jscomp.makeIterator(A.supportedAvailableServices),G=X.next();!G.done;G=X.next())switch(G=G.value,G.toUpperCase()){case "TRADE_IN":u.commonModel.tradeInData={hasData:!0,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:fa};break;case "TRADE_UP":fa||(fa=!0,h.isTradeUp=fa);u.commonModel.tradeInData={hasData:!0,formatted_sales_pitch:"",sales_pitch:"",isTradeUp:fa};break;case "INSURANCE":"in"===h.siteCode?h.belo4dCarePackFlag||!typeof configuratorCare||T||
(configuratorCare.setProductInfo(),T=!0):typeof configuratorCare&&!T&&(configuratorCare.setProductInfo(),T=!0);break;case "UPGRADE_ENROLLMENT":u.commonModel.upgradeData.hasData=!0;break;case "WARRANTY":"in"===h.siteCode?h.belo4dCarePackFlag&&typeof configuratorCare&&!T&&(configuratorCare.setProductInfo(!0),T=!0):h.useWarrantyVd?u.commonModel.warrantyVdData={hasData:h.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:[]}}]}:u.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:G.toUpperCase()});break;case "BENEFIT":F(h,I,u);break;case "ACCESSORIES":(h.addonStepBuying04||
h.addonStepBuying0701||h.mxCategoryEmbedAddon)&&h.newEmbedVDCountry&&window.sg.components.dynamic.bridgePageCommon.getRelatedProductsVdSimpleInfo(h.modelCode);window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(h.modelCode);break;case "RENTAL":h.hasRentalInstallment=!0;break;case "POSTAL_CODE":G=h.util;h.deliveryPickup.deliverySiteCode.includes(h.siteCode)&&($(".pd-select-option--delivery-pickup").show(),G.settingDeliveryPickup(h,I));break;case "ABB":b(h,I,u)}var z=A.aemAdditionalInfoTypes;
if(z&&0<z.length){X=fa=T=!1;G=[];var M={};z=$jscomp.makeIterator(z);for(var S=z.next();!S.done;M={$jscomp$loop$prop$util$238$378:M.$jscomp$loop$prop$util$238$378},S=z.next()){S=S.value;var W=S.type?S.type.toUpperCase():"";if("VOUCHER"===W)h.voucherdataHybris=S.aemAdditionalInfos,h.hasVoucher=!0,window.sg.components.dynamic.bridgePageCommon.getRelatedProductsSimpleInfo(h.modelCode);else if("GIFT"===W)h.giftdataHybris=S.aemAdditionalInfos,h.hasGift=!0,h.hasGiftPage=!0,window.sg.components.dynamic.freeGiftHybrisCommon.getRelatedProductsSimpleInfo(h.modelCode);
else if("VDCOMBOMESSAGE"===W)h.vdcombodataHybris=S.aemAdditionalInfos;else if("BOGO"===W&&S.aemAdditionalInfos&&0<S.aemAdditionalInfos.length)for(var ba=$jscomp.makeIterator(S.aemAdditionalInfos),ia=ba.next();!ia.done;ia=ba.next())ia=ia.value,"skuPrice"===ia.key?u.commonModel.bogoData.bogoPrice=ia.value:"skuCode"===ia.key&&(u.commonModel.bogoData.bogoSku=ia.value);else if("UPGRADE_SKU"===W&&S.aemAdditionalInfos&&0<S.aemAdditionalInfos.length)for(ba=$jscomp.makeIterator(S.aemAdditionalInfos),ia=ba.next();!ia.done;ia=
ba.next())ia=ia.value,"upgradeSKU"===ia.key&&(u.commonModel.upgradeData.sku=ia.value);else if("SPECIALPRICEVALIDITY"===W){if("ee"===H||"lv"===H||"lt"===H)for(ba=$jscomp.makeIterator(S.aemAdditionalInfos),ia=ba.next();!ia.done;ia=ba.next())ia=ia.value,ia.key&&"SPECIALPRICEVALIDITYPERIOD"===ia.key.toUpperCase()&&(h.proudctPriceInfo.salesPitch=ia.value)}else if("PLANIDANDFREEGIFTPROMOTIONUNAVAILABLE"===W)for(T=!0,ba=$jscomp.makeIterator(S.aemAdditionalInfos),ia=ba.next();!ia.done;ia=ba.next())ia=ia.value,
ia.planIdList&&0<ia.planIdList.length&&G.push.apply(G,$jscomp.arrayFromIterable(ia.planIdList));else"TRADEINFREEGIFTPROMOTION"===W?fa=!0:"SELLING_WITH_BEZEL"===W&&(M.$jscomp$loop$prop$util$238$378=h.util,h.sellingWithBazel="true"==S.aemAdditionalInfos[0].value?!0:!1,h.useBezelOptionDraw=!0,window.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(h.modelCode,function(ta){return function(qa,za){var na=[],a=[],c=[],m=[];za&&null!=qa.products&&0<qa.products.length&&$.each(qa.products,
function(g,p){var aa,L,ma,ua,ja,xa="true"===(null==(aa=p.aemAdditionalInfoTypes[0])?void 0:null==(L=aa.aemAdditionalInfos[0])?void 0:L.value)?null==(ma=p.aemAdditionalInfoTypes[0])?void 0:null==(ua=ma.aemAdditionalInfos[0])?void 0:null==(ja=ua.key)?void 0:ja.toUpperCase():"";aa=""!=p.picture.url?!0:!1;L=""==p.picture.url?!0:!1;ma=p.picture.url.replace("$ORIGIN_PNG$","");ua=p.stock.stockLevelStatus.toUpperCase();ja=" is-disabled";if("INSTOCK"==ua||"BACKORDERED"==ua||"PREORDER"==ua||"LOWSTOCK"==ua)ja=
"";""==h.bezelImageClass&&aa&&(h.bezelImageClass="pd-select-option__list--image-button");g={index:g,modelCode:p.modelcode,name:p.colorName,value:p.colorCode,hasImage:aa,hasNotImage:L,imageUrl:ma,disabledClass:ja};"BEZEL_COLOR"===xa?na.push(g):"BEZEL_MODERN"===xa?a.push(g):"BEZEL_BEVELLED"===xa?c.push(g):"FREESTYLE_COLOR"===xa&&m.push(g)});h.noneTypeList=na;h.modernTypeList=a;h.beveledTypeList=c;h.freestyleList=m;ta.$jscomp$loop$prop$util$238$378.settingBezelOptionDraw(h,I)}}(M),null,{queryType:"ADD_COLOR_FOR_VD"}));
if("true"===$("#isEppPage").val()&&"de"===H&&"TRADEINFREEGIFTPROMOTION"===W)for(fa=!1,ba=$jscomp.makeIterator(S.aemAdditionalInfos),ia=ba.next();!ia.done;ia=ba.next())ia=ia.value,ia.key&&"tradeinandfreegiftpromotionunavailable"===ia.key.toLowerCase()&&(tradeinandfreegiftpromotionunavailable=JSON.parse(ia.value));if("de"===H&&"STACKABLETRADEINFREEGIFTPROMOTION"===W)for(X=!1,S=$jscomp.makeIterator(S.aemAdditionalInfos),ia=S.next();!ia.done;ia=S.next())W=ia.value,W.key&&"stackabletradeinandfreegiftpromotionunavailable"===
W.key.toLowerCase()&&(X=JSON.parse(W.value))}1==h.hasGift&&T&&(h.hasPlanIDAndFreeGiftPromotion=!0,h.giftSelectionSkipPlanIdList=G);1==h.hasGift&&fa&&(h.hasTradeInFreeGiftPromotion=!0);1==h.hasGift&&X&&(h.hasStackbleTradeInFreeGiftPromotion=!0)}"true"===$("#isEppPage").val()&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&window.sg.epp.common.usePosQty&&(h.walkoutQty=0,h.homeDeliveryQty=0,A.stock&&A.stock.warehouse&&null!=A.stock.warehouse&&A.stock.warehouse.forEach(function(ta,
qa){ta.isOnline?h.homeDeliveryQty+=ta.stockLevel&&null!=ta.stockLevel?ta.stockLevel:0:h.walkoutQty+=ta.stockLevel&&null!=ta.stockLevel?ta.stockLevel:0}))}}function F(h,I,u){var A=h.apiDomain,T=h.siteCode,fa=h.modelCode,X=h.priceCurrency,G="";$("#shopParmLang").val()&&(G="\x26lang\x3d"+$("#shopParmLang").val());A=A+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/products/"+fa+"/offers?fields\x3dSIMPLE_INFO"+G;u.finishedAPIList.offers=!1;var z;$.ajax({url:A,type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},
crossDomain:!0,timeout:2E4,success:function(M,S,W){M&&M.benefits&&0<M.benefits.length?(h.isSECZ&&0!==h.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+h.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+h.calculateInstallmentPeriod),S={code:"Finanace -Calculator",description:""+Granite.I18n.get("product detail offer emi From {0}/mo",currencyComma(h.calculateInstallmentPeriodicValue,X)),endDate:null,startDate:null,type:"INSTALLMENT",count:1},M.benefits.unshift(S)),
"Y"===$("#typeux2025").val()?n(M.benefits,h,I,u,"sku"):Q(M.benefits,h,I,u)):h.isSECZ&&0!==h.calculateInstallmentPeriod&&(console.log("ajaxNewBrisOffer periodicValue: "+h.calculateInstallmentPeriodicValue),console.log("ajaxNewBrisOffer period: "+h.calculateInstallmentPeriod),M.benefits=[{code:"Finanace -Calculator",description:""+Granite.I18n.get("product detail offer emi From {0}/mo",currencyComma(h.calculateInstallmentPeriodicValue,X)),endDate:null,startDate:null,type:"INSTALLMENT",count:1}],"Y"===
$("#typeux2025").val()?n(M.benefits,h,I,u,"sku"):Q(M.benefits,h,I,u));z=M},error:function(M,S,W){},complete:function(){u.finishedAPIList.offers=!0;var M=h.pdChildModelCnt;h.pdPackageYn&&0<M?e(h,I,u):u.finishedAPIList.childOffers=!0;"cn"===T&&window.sg.components.dynamic.productInstallmentWithGiftPD.getInstallmentWithGiftAPI(z,h,I);"in"===T&&window.sg.components.productLivedemo.getOfferBenefitsApiData(z.benefits);d(h,I,u)}})}function ea(h,I,u){var A={code:"Finanace -Calculator",description:""+Granite.I18n.get("Calculate Finance"),
endDate:null,startDate:null,type:"INSTALLMENT",count:1};ka(A,0,h,I,u);u.finishedAPIList.offers||(u.finishedAPIList.offers=!0,d(h,I,u))}function e(h,I,u){var A=h.drawObj.offer,T=h.apiDomain,fa="";$("#shopParmLang").val()&&(fa="\x26lang\x3d"+$("#shopParmLang").val());var X=h.pdChildModelCnt;u.finishedAPIList.childOffers=!1;if(0<X)for(var G=0,z={},M=0;M<X;z={$jscomp$loop$prop$apiURL$380:z.$jscomp$loop$prop$apiURL$380,$jscomp$loop$prop$childSet$381:z.$jscomp$loop$prop$childSet$381},M++){var S=document.querySelector("#pdChidleModel0"+
(M+1)),W=S.dataset.code;z.$jscomp$loop$prop$childSet$381={code:W,name:S.dataset.name,main:S.dataset.main,displayName:S.dataset.displayName};h.pdChildModelList.push(z.$jscomp$loop$prop$childSet$381);z.$jscomp$loop$prop$apiURL$380=T+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/products/"+W+"/offers?fields\x3dSIMPLE_INFO"+fa;(function(ba){return function(ia){$.ajax({url:ba.$jscomp$loop$prop$apiURL$380,type:"GET",dataType:"json",cache:!0,async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,timeout:2E4,
success:function(ta,qa,za){if(ta&&ta.benefits&&0<ta.benefits.length){0===G&&(A.childList=[]);A.childList.push({hasComponent:!0,childCode:ba.$jscomp$loop$prop$childSet$381.code,displayName:ba.$jscomp$loop$prop$childSet$381.displayName,combo:[],gift:{},bogo:{},promotionMessage:[],promotionFinance:[],promotionSmartclub:[]});if("Y"===$("#typeux2025").val())n(ta.benefits,h,I,u,"child",G);else if(ta=ta.benefits,qa=G,u.comboCount=0,ta&&0<ta.length){za=0;for(var na in ta){var a=ta[na];h.commonApiModel.fetchNewOfferFormat(a);
var c=a.type?a.type.toUpperCase():"";"INSTALLMENT"!==c&&"COMBO"!==c&&(za+=1);if(4>za){var m=qa+""+za;"BOGO"===c?Y(a,m,h,I,u,"child",qa):c||R(a,m,h,I,u,"child",qa)}}0===za&&h.drawObj.offer.childList.splice(qa)}G=A.childList.length}},error:function(ta,qa,za){},complete:function(){ia===X-1&&(u.finishedAPIList.childOffers=!0);d(h,I,u)}})}})(z)(M)}}function n(h,I,u,A,T,fa){fa=void 0===fa?0:fa;var X=$("#siteCode").val(),G=I.isSEBN,z=2;G&&(z=4);if(h&&0<h.length){var M=0,S;for(S in h){var W=h[S],ba=W.type?
W.type.toUpperCase():"",ia=$.trim(W.offerText||""),ta=$.trim(W.title||"");""!=ta||G||(ta=$.trim(W.description||""));$.trim(W.linkText||"");$.trim(W.url||"");var qa=!1;"INSTALLMENT"!==ba&&("uk"===X||"in"===X?""!==ta&&""!==ia&&(qa=!0,"in"===X&&"LIVE_DEMO"===ba&&(qa=!1)):""!==ta&&(qa=!0));qa?(M+=1,M<=z&&("child"===T?V(W,fa+""+M,I,u,A,"child",fa):V(W,S,I,u,A))):"child"!=T&&"INSTALLMENT"===ba&&ka(W,S,I,u,A)}"child"===T&&0===M&&I.drawObj.offer.childList.splice(fa)}}function Q(h,I,u,A){A.comboCount=0;var T=
I.drawObj.offer;if(h&&0<h.length){T.totalCnt=h.length;var fa=0,X;for(X in h){var G=h[X];I.commonApiModel.fetchNewOfferFormat(G);var z=G.type?G.type.toUpperCase():"";if("COMBO"===z)fa+=1,A.finishedAPIList.comboAPIFlag=!1,A.comboCount++,I.commonApiModel.callRelatedAndSearch(I.modelCode,N,{sharedObj:I,promotion:G,newbirsObj:A,selectorObj:u,index:X},{queryType:"SELECTION_OF_BUNDLE"});else if("INSTALLMENT"===z){fa+=1;z=X;var M=I,S=M.siteCode,W=M.drawObj.offer,ba=M.financingUrl,ia=y(G,M).iconAlt,ta="offer-emi emi-index-"+
z,qa=[];M.financingEligible=!0;ba&&(M.emiCalculatorUrl=ba);G.description&&qa.push(G.description);if(0<qa.length){var za=ba=null,na=null;"id"!==S&&"ee"!==S&&"lt"!==S&&"lv"!==S&&"pl"!==S||!G.description||(ba=G.description);if("in"===S||"uk"===S||"lt"===S||"id"===S||"lv"===S||"ee"===S||"pl"===S||"hu"===S||"ro"===S||"bg"===S||"ua"===S||"ph"===S||"sg"===S||"my"===S||"nz"===S||"sk"===S||"cz"===S||"cn"===S||"co"===S||"cl"===S||"mx"===S||"kz_kz"===S||"kz_ru"===S)for(M.promotionFinancingFlag=!0,M=0;M<qa.length;M++){var a=
qa[M].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");0>a.indexOf("\x3ca")?"in"===S?(za=a,na={label:Granite.I18n.get("Learn more"),labelAnalytics:a.toLowerCase().replace(/"/g,"")}):(na={labelAnalytics:a.toLowerCase().replace(/"/g,"")},na.label="id"===S||"ee"===S||"lt"===S||"lv"===S||"pl"===S?Granite.I18n.get("Learn more"):a):za=a}else za=qa.join("");W.promotionFinance.push({offerIndex:z,title:"finance",hasItem:!0,item:{contentWrapperClass:ta,iconAttr:{alt:ia},description:{text:ba,hasDescription:null!=
ba},emiText:za,cta:na,hasCta:null!=na},newFormat:G.newFormat})}}else"BOGO"===z?(fa+=1,Y(G,X,I,u,A)):z||"cn"===H&&("cn"!==H||G.benefitGroup)||(fa+=1,R(G,X,I,u,A))}3<fa&&(T.isViewMore=!0)}}function Y(h,I,u,A,T,fa,X){A=u.drawObj.offer;"child"===(void 0===fa?"product":fa)&&(A=u.drawObj.offer.childList[void 0===X?0:X]);X=h.image&&h.image.url?h.image.url:"";fa=u.priceCurrency;var G=u.pdTimeformatFront;u=u.util.getImgAttr(X,X,h.image&&h.image.altText?h.image.altText:"",{classWapper:"image__main responsive-img"});
X=[];var z="";h.description&&X.push({text:h.description});h.startDate&&h.endDate&&(z=G?dateFormat(h.startDate.split("T")[0],G)+" ~ "+dateFormat(h.endDate.split("T")[0],G):h.startDate.split("T")[0]+" ~ "+h.endDate.split("T")[0]);var M=G="";if(T=T.commonModel.bogoData.bogoPrice)G=currencyComma(T,fa),"nl"!==H&&"be"!==H&&"be_fr"!==H&&(M=Granite.I18n.get("Save {0}",G));fa=currencyComma(0,fa);"true"===$("#isEppPage").val()&&"pl"===H&&(M=G="");h={offerIndex:I,title:"bogo",hasItem:!0,item:{contentWrapperClass:"bogo-item",
headline:Granite.I18n.get("Buy 1 Get 1 Free"),description:{hasDescription:!0,main:X,date:z},imgAttr:u,price:{hasPrice:!0,price:T,original:G,save:M,now:fa}},newFormat:h.newFormat};A.bogo=h}function N(h,I,u){var A=u.index;if(A){if(null==A||""==A)A=0}else A=0;I=u.sharedObj;var T=I.drawObj,fa=I.comboFlag=!0,X=T.offer.combo,G=I.util,z=I.view,M=u.promotion,S=I.pdTimeformatFront,W=y(M,I),ba=u.selectorObj;u=u.newbirsObj;var ia=I.siteCode,ta="",qa="";fa&&(W.promoIconFlag&&(qa=W.iconImgName),fa=[],M.description?
fa.push({text:M.description}):fa.push({text:Granite.I18n.get("Select combo bundle option")}),W={layerTarget:"shopComboPopup"},W.comboIdx=I.globalComboData.length,G=G.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-combo-popup",W,""),M.startDate&&M.endDate&&(ta=S?dateFormat(M.startDate.split("T")[0],S)+" ~ "+dateFormat(M.endDate.split("T")[0],S):M.startDate.split("T")[0]+" ~ "+M.endDate.split("T")[0],"id"===ia&&(ta=M.startDate.split("T")[0]+" ~ "+M.endDate.split("T")[0])),
A={offerIndex:A,title:"compoBundle",comboIndex:I.globalComboData.length,hasItem:!0,item:{headline:Granite.I18n.get("Bundle options"),iconName:qa,description:{hasDescription:!0,main:fa,date:ta},learnMoreCta:G},newFormat:M.newFormat},X.push(A));z.productOfferDraw(T,!0);h=window.sg.components.dynamic.comboPopup.setComboData(h.totalResult);I.globalComboData.push(h);u.comboCount===I.globalComboData.length&&(u.finishedAPIList.comboAPIFlag=!0);d(I,ba,u)}function y(h,I){var u=I.promotionImgType?I.promotionImgType.split(","):
[];I="";var A=!1,T="";if(h.image&&(I=h.image.altText,T=h.image.url))for(h=$jscomp.makeIterator(u),u=h.next();!u.done;u=h.next())if(u.value===T){A=!0;break}return{iconAlt:I,promoIconFlag:A,iconImgName:T}}function R(h,I,u,A,T,fa,X){A=u.drawObj.offer;"child"===(void 0===fa?"product":fa)&&(A=u.drawObj.offer.childList[void 0===X?0:X]);fa=y(h,u);u=fa.iconAlt;var G=fa.promoIconFlag,z=fa.iconImgName;fa="offer-promotion promotion-index-"+I;X=[];T=null;h.description&&X.push(h.description);G&&(T="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/promotion_icon/"+
z+".svg");z=null;if(!h.newFormat){G="";for(z=0;z<X.length;z++)G+=X[z].replace("\x3ca","\x3ca target\x3d'_blank'");z=[];z.push({target:"."+fa.replace(" ",".")+" .pd-offer__desc",text:G})}A.promotionMessage.push({offerIndex:I,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:fa,isIcon:!0,iconAttr:{src:T,alt:u},description:{hasDescription:!0},rowText:z},newFormat:h.newFormat})}function V(h,I,u,A,T,fa,X){fa=void 0===fa?"product":fa;X=void 0===X?0:X;A=u.drawObj.offer;var G=u.isSEBN;T=$("#siteCode").val();
var z="offer-promotion promotion-index-"+I;"child"===fa&&(A=u.drawObj.offer.childList[X]);u=$.trim(h.offerText||"");fa=$.trim(h.title||"");X=$.trim(h.description||"");""!=fa||G||(fa=X);X=$.trim(h.linkText||"");var M=$.trim(h.url||""),S="in"===T&&-1<M.indexOf(".pdf")?"_blank":"";"uk"!==T&&"in"!==T&&""!==M&&(X=Granite.I18n.get("Learn more"));var W=!1;"uk"===T||"in"===T?""!==fa&&""!==u&&(W=!0):""!==fa&&(W=!0);if(W){W=62;""!==X&&""!==M&&(W=53);G&&(W=100);if(fa.length>W){var ba=fa;fa=ellipsize(fa,W)}fa=
fa.replace(/</g,"\x26lt;");fa=fa.replace(/>/g,"\x26gt;");null!=ba&&(ba=ba.replace(/</g,"\x26lt;"),ba=ba.replace(/>/g,"\x26gt;"));W=G&&""!==u?!0:!1;var ia=$.trim(h.startDate||"");h=$.trim(h.endDate||"");G=G&&""!==ia&&""!==h?!0:!1;var ta;W&&("nl"===T||"be"===T?ta='Bekijk \x3ca href\x3d"'+u+'" target\x3d"_blank"\x3ehier\x3c/a\x3e de actievoorwaarden':"be_fr"===T&&(ta='Consultez \x3ca href\x3d"'+u+'" target\x3d"_blank"\x3eici\x3c/a\x3e les conditions de l\'offre promotionnelle'));var qa;G&&(qa=Granite.I18n.get("Promotion period: {0} to {1}",
[ia,h]));A.promotionMessage.push({offerIndex:I,title:"promoMessage",hasItem:!0,item:{contentWrapperClass:z,offerTitle:fa,offerTooltip:ba,linkEnabled:""!==X&&""!==M,linkTarget:S,linkText:X,linkUrl:M,hasTCCTA:W,tcCTAText:ta,hasPeriod:G,periodText:qa}})}}function ka(h,I,u,A,T){var fa=u.siteCode;A=u.drawObj.offer;var X=u.financingUrl;T="offer-emi emi-index-"+I;var G=[];u.financingEligible=!0;X&&(u.emiCalculatorUrl=X);h=$.trim(h.description||"");""!==h&&G.push(h);if(0<G.length){X=null;var z=!1,M=!1,S=
!1,W=null;if("de"===fa||"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||"kz_kz"===fa||"kz_ru"===fa)for(u.promotionFinancingFlag=!0,u=0;u<G.length;u++){var ba=G[u].replace("\x3cu\x3e","").replace("\x3c/u\x3e","");W=ba;0>ba.indexOf("\x3ca")&&("in"===fa?(M=!0,X={label:Granite.I18n.get("Learn more")}):"id"===fa||"ee"===fa||
"lt"===fa||"lv"===fa||"pl"===fa?(M=!0,X={label:Granite.I18n.get("Learn more")}):z=!0)}else S=!0,W=G.join("");if(!S){u=62;M&&(u=53);if(W.length>u){var ia=h;W=ellipsize(W,u)}null!=W&&(W=W.replace(/</g,"\x26lt;"),W=W.replace(/>/g,"\x26gt;"));null!=ia&&(ia=ia.replace(/</g,"\x26lt;"),ia=ia.replace(/>/g,"\x26gt;"))}A.promotionFinance.push({offerIndex:I,title:"finance",hasItem:!0,item:{contentWrapperClass:T,offerTooltip:ia,emiText:W,cta:X,hasCta:M,hasLink:z,hasDesc:S}})}}function va(h,I,u){u.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:""};u.commonModel.tariffData=[];u.commonModel.promotionsMsg=[]}function Aa(h,I,u){var A=h.drawObj,T=u.commonModel,fa=h.siteCode,X=A.price.priceWrapper,G=h.util,z="";T.stockLevelStatus&&(z=T.stockLevelStatus.toUpperCase(),h.stockLevelStatus=
z,h.apiChangeStockStatus=z,A.stockLevelStatus=z);T.stockCustomMessage&&(h.stockCustomMessage=T.stockCustomMessage);checkEppSite()&&"in"===fa&&(h.proudctPriceInfo.netavailable=u.apiData[h.modelCode]&&u.apiData[h.modelCode].stock&&u.apiData[h.modelCode].stock.stockLevel&&0<Number(u.apiData[h.modelCode].stock.stockLevel)?Number(u.apiData[h.modelCode].stock.stockLevel):1,0<I.buyingToolOptSMBQuantity.length&&h.proudctPriceInfo.netavailable<h.proudctPriceInfo.smbMinQty&&(z="OUTOFSTOCK",h.stockLevelStatus=
"OUTOFSTOCK",A.stockLevelStatus="OUTOFSTOCK"));"pl"===fa&&"OUTOFSTOCK"===z||"NOORDER"===z||!T.emcomFlag?(G.disabledOptionElement(I.buyingToolOptTariff,h),G.disabledOptionElement(I.buyingToolOptUpgrade,h),G.disabledOptionElement(I.buyingToolOptOffer,h),G.disabledOptionElement(I.buyingToolOptTradeIn,h),h.accessoryDisabled=!0,X.hasPriceWrapper=!1):X.hasPriceWrapper=!0}function sa(h,I,u){I=u.commonModel.price.lowestInstallmentAmount;var A=u.commonModel.price.lowestInstallmentAmountTenure;h.isSECZ&&(I=
h.calculateInstallmentPeriodicValue,A=h.calculateInstallmentPeriod);var T=u.commonModel.price.lowestInstallmentInterest,fa=u.commonModel.price.msrpPrice.value,X=u.commonModel.price.msrpPrice.formatted_value,G=u.commonModel.price.salePrice.value,z=u.commonModel.price.salePrice.formatted_value,M=u.commonModel.price.leasingInfo,S=u.commonModel.price.saveText,W=u.commonModel.price.tradeInPriceText,ba=h.priceCurrency,ia=h.siteCode,ta=u.commonModel.price.vatFreePrice.value,qa=u.commonModel.price.vatFreePrice.formatted_value,
za=u.commonModel.price.frequentPrice.value,na=u.commonModel.price.frequentPrice.formatted_value;fa&&(h.proudctPriceInfo.orignalPrice=fa);X?h.proudctPriceInfo.orignalPriceFormatted=X:fa&&(h.proudctPriceInfo.orignalPriceFormatted=currencyComma(fa,ba));h.proudctPriceInfo.salePrice=G?G:fa;h.proudctPriceInfo.salePriceFormatted=z?z:G?currencyComma(G,ba):h.proudctPriceInfo.orignalPriceFormatted;h.vatEligible&&qa&&(h.proudctPriceInfo.vatFreePrice=ta,h.proudctPriceInfo.vatFreePriceFormatted=qa);M&&M.monthlyRate&&
(h.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=M.monthlyRate,h.proudctPriceInfo.monthlyPriceInfo.tenureVal=M.tenureVal,h.proudctPriceInfo.monthlyPriceInfo.interest=M.interest);za&&(h.proudctPriceInfo.frequentPrice=za,h.proudctPriceInfo.frequentPriceFormatted=na);h.isLowestInstallmentAmount&&(h.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=I,h.proudctPriceInfo.monthlyPriceInfo.tenureVal=A,h.isLowestInstallmentInterest&&(h.proudctPriceInfo.monthlyPriceInfo.interest=T));h.isSECZ&&(h.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=
I,h.proudctPriceInfo.monthlyPriceInfo.tenureVal=A);S&&(h.proudctPriceInfo.rowCodeformattedPriceSave=S);W&&(h.proudctPriceInfo.salePriceFormatted=W);if("nl"===ia||"be"===ia||"be_fr"===ia||"true"===$("#isEppPage").val()&&"pl"===ia)I=u.commonModel.price.listPrice.formatted_value,A=h.proudctPriceInfo.orignalPriceFormatted,T=h.proudctPriceInfo.salePriceFormatted,fa=h.proudctPriceInfo.monthlyPriceInfo.monthlyPrice,I&&(h.proudctPriceInfo.listPriceFormatted=deleteCurrency(I,h.priceCurrency).trim(),h.proudctPriceInfo.listPrice=
u.commonModel.price.listPrice.value),A&&(h.proudctPriceInfo.orignalPriceFormatted=deleteCurrency(A,h.priceCurrency).trim()),T&&(h.proudctPriceInfo.salePriceFormatted=deleteCurrency(T,h.priceCurrency).trim()),fa&&(h.proudctPriceInfo.monthlyPriceInfo.monthlyPrice=deleteCurrency(fa,h.priceCurrency).trim());h.drawObj.price.priceWrapper.info.summaryPrice=h.proudctPriceInfo.salePriceFormatted}function ha(h,I,u,A,T,fa){var X=h.apiDomain,G=h.siteCode,z=A[0],M=!1,S="";$("#shopParmLang").val()&&(S="\x26lang\x3d"+
$("#shopParmLang").val());u.finishedAPIList[fa]=!1;A=X+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/products/"+z+"/**?fields\x3dSIMPLE_INFO"+S;"in"==h.siteCode&&(A=X+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/products?productCodes\x3d"+z+"\x26fields\x3dSIMPLE_INFO"+S,C(h));X="true"===$("#isEppPage").val()||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{};var W;$.ajax({url:A,type:"GET",cache:!0,crossDomain:!0,xhrFields:X,dataType:"json",
timeout:2E4,success:function(ba,ia,ta){"in"==h.siteCode&&ba&&(ba=ba[0]);ba&&ba.code&&(-1==$.inArray("BROADBAND_PLAN",ba.supportedAvailableServices)&&isNotEmpty(tariffData)&&tariffData.BROADBAND_CACHE.returnObject&&tariffData.removeBroadbandCache(),M=!0,u.apiData[ba.code]=ba,W=ba.aemAdditionalInfoTypes)},error:function(ba,ia,ta){h.newHybrisSalesStatus=!1},complete:function(){u.finishedAPIList[fa]=!0;T(h,I,u,M);if("in"===G){var ba=W;window.sg.components.productLivedemo.setLivedemoWrapEmpty();window.sg.components.productVideoCarousel.getFireworkApiData(ba)}}})}
function ra(h){var I=-1<h.cartUrl.indexOf("https://")||-1<h.cartUrl.indexOf("http://")?h.cartUrl:h.apiDomain+h.cartUrl;void 0!==I&&("ae"===h.siteCode?I=I.replace("/ae/","/"+h.multistoreSiteCd+"/"):"ae_ar"===h.siteCode&&(I=I.replace("/ae_ar/","/"+h.multistoreSiteCd+"/")));return I}function da(h,I,u){var A="";$("#shopParmLang").val()&&(A="\x26lang\x3d"+$("#shopParmLang").val());var T={withCredentials:!0};if(h.isSECZ){var fa="";fa=h.apiDomain+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/products/"+
h.modelCode+"/calculateInstallment?fields\x3dDEFAULT"+A;$.ajax({url:fa,type:"GET",dataType:"json",xhrFields:T,crossDomain:!0,async:!1,timeout:1E4,success:function(X){X&&X.values&&0<X.values.length&&X.values[0]&&X.values[0].values&&E(X,h,I,u)},error:function(X){}})}}function E(h,I,u,A){h=h.values[0].values;1<h.length?(h.sort(function(T,fa){"string"===typeof T.periodicValue&&(T.periodicValue=Number(T.periodicValue));"string"===typeof fa.periodicValue&&(fa.periodicValue=Number(fa.periodicValue));return T.periodicValue<
fa.periodicValue?-1:T.periodicValue>fa.periodicValue?1:T.period<fa.period?-1:T.period>fa.period?1:0}),I.calculateInstallmentPeriodicValue=h[0].periodicValue,I.calculateInstallmentPeriod=h[0].period,A.commonModel.price.lowestInstallmentAmount=h[0].periodicValue,A.commonModel.price.lowestInstallmentAmountTenure=h[0].period):1==h.length&&(I.calculateInstallmentPeriodicValue=h[0].periodicValue,I.calculateInstallmentPeriod=h[0].period,A.commonModel.price.lowestInstallmentAmount=h[0].periodicValue,A.commonModel.price.lowestInstallmentAmountTenure=
h[0].period);sa(I,u,A)}function b(h,I,u){var A,T,fa,X,G,z,M,S,W,ba,ia,ta,qa,za;return $jscomp.asyncExecutePromiseGeneratorProgram(function(na){if(1==na.nextAddress)return A=h.newAssuredBuyBackList,na.yield(x(h,I,u),2);T=na.yieldResult;G=null==(fa=T)?void 0:null==(X=fa.serviceProductDataGroup)?void 0:X.serviceProducts[0];if(T.serviceProductDataGroup&&G&&G.serviceProductVariants&&0<G.serviceProductVariants.length){z=G.serviceProductVariants;M=$jscomp.makeIterator(z);for(S=M.next();!S.done;S=M.next())if(W=
S.value)ba=W.name,ia=W.code,ta="",W.priceData&&W.priceData.value&&(ta=currencyComma(W.priceData.value,h.priceCurrency)),qa=W.stock&&W.stock.stockLevelStatus&&"outofstock"==W.stock.stockLevelStatus.toLowerCase()?"OOS":"",za={index:A.length+1,title:ba,priceDisplay:ta,sku:ia,productItem:W,stockStatus:qa},A.push(za);var a=h.util,c=h.view,m=h.newAssuredBuyBackFlag,g=h.newAssuredBuyBackList,p=Granite.I18n.get("Learn more");a=a.getAttrCta(p,"javascript:;","","",{layerTarget:"assuredBuyBackInfoPopup"},"");
m&&(h.drawObj.newAssuredBuyBack={hasComponent:m,title:Granite.I18n.get("belo4d Assured Buyback"),description:Granite.I18n.get("Get up to 70% resale value with Assured Buyback"),itemSet:g,learnMoreCta:a,yesAttr:{"class":null,text:null,subText:"",layerTarget:""},noAttr:{"class":null,text:"None",layerTarget:"",eventType:"newAssuredBuyBack"}},c.newAssuredBuyBackDraw(h.drawObj))}na.jumpToEnd()})}function x(h,I,u){var A="true"===$("#isEppPage").val()?h.apiDomain:$("#storeDomain").val(),T="?categoryCode\x3dabb\x26provider\x3dABB";
T=$("#shopParmLang").val()?T+("\x26lang\x3d"+$("#shopParmLang").val()):T+"\x26lang\x3den_IN";$("#priceCurrency").val()&&(T+="\x26curr\x3d"+$("#priceCurrency").val().toUpperCase());return new Promise(function(fa,X){$.ajax({url:A+"/tokocommercewebservices/v2/"+h.siteCodeWithEpp+"/servicesv2/externalService/"+h.modelCode+T,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!0}).done(function(G){h.newAssuredBuyBackFlag=!0;fa(G)}).fail(function(G){X(G)})})}var P=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
H=$("#siteCode").val(),ca=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:""}],belo4dPomoFinanceData:{hasData:!1,formatted_sales_pitch:"",sales_pitch:""},pomoFinanceData:{hasData:!1,formatted_sales_pitch:"",sales_pitch:""}},isExecuted:!1,apiData:{},comboCount:0}};ca.prototype.productAjax=function(h,I){var u=this.newbirsObj;h.isSECZ&&da(h,I,u);var A="";var T=$.cookies.get("estoreSitecode",
{domain:".quick3d.org"});if("levant"===h.siteCode)A="jo";else if("levant_ar"===h.siteCode)A="jo_ar";else if("n_africa"===h.siteCode)A="ma";else{var fa;if(fa=("ae"===h.siteCode||"ae_ar"===h.siteCode)&&T)fa=(new Set("ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" "))).has(T);fa&&(A=T)}h.multistoreSiteCd=A?A:h.siteCode;ha(h,I,u,[h.modelCode],D,"firstNewBrisAPI");d(h,I,u);d(h,I,u)};ca.prototype.callAddToCartCta=function(h,I,u,A,T,fa){var X="";if("uk"===H||"au"===H||"cn"===H||"tr"===H||h.useNewAddToCartApi)h.globalServiceInfo&&
h.globalServiceInfo.gift&&h.globalServiceInfo.gift.modelCode?X=h.globalServiceInfo.gift:fa&&(X={modelCode:fa.modelCode});var G=new P.BuyingToolOpAjaxHybris,z=l(h,I,u,A,T),M=h.isMiniCart,S={clickDom:h.clickDom,isMiniCart:M,isContinue:T},W=h.modelCode,ba="",ia="";A&&(ba=-1<h.cartUrl.indexOf("https://")||-1<h.cartUrl.indexOf("http://")?h.cartUrl:h.apiDomain+h.cartUrl,ba=ra(h),ba="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":ba,M&&(S.cartUrl=ba,ba="",
ia=function(ta,qa,za){za.isMiniCart&&window.sg.minicart&&!za.isContinue?(window.sg.minicart.open(za.cartUrl,h.clickTarget),h.btnClickFlagAddCartContinue=!0):location.href=za.cartUrl}));T&&(W="");T||A||(ia=function(ta,qa,za){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(za.clickDom)});"uk"==H||"cn"==H||"tr"==H||h.useNewAddToCartApi?(X&&(z.gift=X),addToCartNewHybris(W,ba,ia,z,S)):(G.callAddToCartCta(h,I,u,A,T,fa),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(S.clickDom))};
ca.prototype.callCheckOutCta=function(h,I,u,A,T,fa){var X=new P.BuyingToolOpAjaxHybris,G=l(h,I,u,A,T),z=h.isMiniCart,M={clickDom:h.clickDom,isMiniCart:z,isContinue:T},S=h.modelCode,W="",ba="";A||"id"===H&&(A=!0);A&&(W=-1<h.cartUrl.indexOf("https://")||-1<h.cartUrl.indexOf("http://")?h.cartUrl:h.apiDomain+h.cartUrl,W=ra(h),W="true"===$("#isEppPage").val()?$("#storeWebDomain").val()+"/"+$("#eppCompanyCode").val()+"/cart":W,z&&(M.cartUrl=W,W="",ba=function(qa,za,na){na.isMiniCart&&window.sg.minicart&&
!na.isContinue?(window.sg.minicart.open(na.cartUrl,h.clickTarget),h.btnClickFlagAddCartContinue=!0):location.href=na.cartUrl}));T&&(S="");T||A||(ba=function(qa,za,na){window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(na.clickDom)});z=$("#pd-leasing-1").prop("checked");var ia="be"===H||"be_fr"===H||"nl"===H||"fr"===H,ta=new P.BuyingToolOpAjaxNewbris;ia&&z?ta.callAddToCartCta(h,I,u,A,T,fa):"uk"==H||"cn"==H||"tr"==H||h.useNewAddToCartApi?addToCartNewHybris(S,W,ba,G,M):(X.callAddToCartCta(h,
I,u,A,T,fa),window.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage(M.clickDom))};P.BuyingToolOpAjaxNewbris=ca})();
(function(){function l(){var e="true"===$("#isEppPage").val()?$("#eppCompanyCode").val():$("#siteCode").val();var n="Hybris-intg"!==$("#shopIntegrationFlag").val()&&"Hybris"!==$("#shopIntegrationFlag").val()||!$("#newHyvStoreDomain").val()?$("#storeDomain").val():$("#newHyvStoreDomain").val();return $.ajax({url:n+"/tokocommercewebservices/v2/"+e+"/tnc?context\x3dSERVICE\x26value\x3dtradeinExcludedPaymentModes\x26lang\x3den_GB\x26curr\x3dGBP",type:"GET",dataType:"json",timeout:2E4,crossDomain:!0,xhrFields:{withCredentials:!0},
async:!0})}function d(e){var n="";$.each(e,function(Q,Y){Y.preselected&&(n||(n=Q),n<Q&&(n=Q))});return n}function K(e){var n={consents:[],product_type:""};n.discounted_sku=e.smcCode;n.modelCode=e.smcCode;n.product_display_name="";n.msrp_price={};n.msrp_price.value=e.price;n.msrp_price.formatted_value="";n.msrp_price.duration="";e.duration&&0<e.duration&&(n.msrp_price.duration=e.duration);n.msrp_price.paymentcycle="";e.paymentCycle&&"monthly"==e.paymentCycle.toLowerCase()&&(n.msrp_price.paymentcycle=
e.paymentCycle.toLowerCase());n.sale_price={};n.sale_price.value=e.promotionPrice?e.promotionPrice:e.price;n.sale_price.formatted_value="";n.sale_price.duration="";e.duration&&0<e.duration&&(n.sale_price.duration=e.duration);n.sale_price.paymentcycle="";e.paymentCycle&&"monthly"==e.paymentCycle.toLowerCase()&&(n.sale_price.paymentcycle=e.paymentCycle.toLowerCase());return n}function D(e,n,Q,Y){var N=n.siteCode,y=n.priceCurrency,R=$(n.buyingToolOptUpgradeResult).find(".result-price"),V=n.drawObj,ka=
n.util,va=n.openPromoTaxParam,Aa=n.isHybrisSplitPD,sa=n.isHybrisSplitPDTradeIn,ha=n.splitPDTradeInSpecial,ra=n.splitPDTradeInSpecialMsg,da=n.isMultiTradeIn&&V.tradeInResult.list?V.tradeInResult.list:[];$("#categorySubTypeCode").val();var E="hr"===N||"si"===N,b={},x="",P=0,H=0,ca="",h=0,I=0,u=0,A=0,T=!1,fa=!1,X=!1,G=null,z=null,M=null,S=null,W=null,ba=null,ia=null,ta="",qa=null,za=0,na=null,a=null,c=null,m=null,g=null,p=0;if(e){X=e.discount&&e.value;var aa=B(e,n,X);T=aa.tradeinDiscountYn;x=aa.modelAndBrand;
ca=aa.StrOrignalDisplayPrice;h=aa.orignalDisplayPrice;u=aa.orignalCashBackPrice;A=aa.orignalTotalPrice;H=aa.displayPrice;I=aa.cashBackPrice;G=aa.priceText;za=aa.enhancedDiscountAmount;p=aa.eventAmountPrice;var L=e.additionalDiscountFlag||!1;if("ca"===N||"ca_fr"===N){var ma=[];e.displayBrandName&&ma.push(e.displayBrandName);e.displayModelName&&ma.push(e.displayModelName);x=Granite.I18n.get("Your Trade-in")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+ma.join(" | ");H=A;G=Granite.I18n.get("Total Trade-in")+
"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+currencyComma(A,y);0<h&&(z=currencyComma(h,y)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")");0<za&&(M=currencyComma(za,y)+" ("+Granite.I18n.get("Promotional Trade-in Credit")+")")}else if("ae"===N||"ae_ar"===N||"sa"===N||"sa_en"===N){var ua=[];e.displayBrandName&&ua.push(e.displayBrandName);e.displayModelName&&ua.push(e.displayModelName);x=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+ua.join(" | ");H=0;n.instantDiscount=
"Y"==e.specialInstantDiscountYn?!0:!1;n.sgeSiteInstantChk&&n.instantDiscount&&(H=A);u&&(qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),z=currencyComma(u,y)+" ("+Granite.I18n.get("Cashback")+")");if(n.isMultiTradeIn){G=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(u,y);var ja=[];e.displayBrandName&&ja.push(e.displayBrandName);e.displayModelName&&ja.push(e.displayModelName);var xa="";e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice));
var Ia={index:da.length,count:da.length+1,displayModelName:ja.join(" | "),discountPriceText:currencyComma(u,y),discountText1:G,dataPrice:H,dataCashBack:u,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:ia,discountPrice:parseFloat(H),specialPrice:xa,specialInstantDiscountYn:e.specialInstantDiscountYn};-1<n.checkedIndex?(Ia.index=n.checkedIndex,da.splice(n.checkedIndex,1,Ia)):da.push(Ia)}}else if("pk"===N){var Ka=[];e.displayBrandName&&Ka.push(e.displayBrandName);e.displayModelName&&
Ka.push(e.displayModelName);x=Granite.I18n.getVar("Trade-in","ux2")+"\x26nbsp;\x26nbsp; : \x26nbsp;\x26nbsp;"+Ka.join(" | ");if(n.isMultiTradeIn){h=parseFloat(e.value.price);G=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(h,y);xa="";e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice));var Ea=[];e.displayBrandName&&Ea.push(e.displayBrandName);e.displayModelName&&Ea.push(e.displayModelName);var Ha={index:da.length,count:da.length+1,displayModelName:Ea.join(" | "),discountPriceText:currencyComma(u,
y),discountText1:G,dataPrice:H,dataCashBack:u,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:ia,discountPrice:parseFloat(H),specialPrice:xa,specialInstantDiscountYn:e.specialInstantDiscountYn};-1<n.checkedIndex?(Ha.index=n.checkedIndex,da.splice(n.checkedIndex,1,Ha)):da.push(Ha)}}else if("de"===N){e.openPromoTax?fa=e.openPromoTax:va&&(fa=va);n.tradeInSelectPrice=u+h;if(n.isMultiTradeIn){var Sa=n.hasStackbleTradeInFreeGiftPromotion;V.tradeInResult.hasComponent||(Sa=!1);Sa&&
(n.hasGift=!1,n.hasVoucher||n.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1))}n.hasTradeInFreeGiftPromotion&&(n.hasGift=!1,n.hasVoucher||n.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1));T||(H=h+u,G="- "+currencyComma(H,y)+" "+Granite.I18n.get("Upfront discount"),fa&&0!==u&&(z=Granite.I18n.get("Inkl. {0} Tauschpr\u00e4mie | Direktabzug im Warenkorb",
currencyComma(u,y))),ka.hasUpgradeResult&&(P=parseFloat(R.attr("data-price"))-parseFloat(n.tradeInSelectPrice),R.attr("data-price",P),$(R).find(".option-result__text").innerHTML=currencyComma(parseFloat(P/24),y)+" / "+Granite.I18n.get("month")));if(n.isMultiTradeIn){var Ga=[];e.displayBrandName&&Ga.push(e.displayBrandName);e.displayModelName&&Ga.push(e.displayModelName);xa="";if(e.tradeInSpecialPrice){var pa=""+Granite.I18n.get("Total Discount");xa=parseFloat(e.tradeInSpecialPrice);H+=xa;var Oa=e.priceInfos;
if(0<Oa.length){var Ca="";$.each(Oa,function(pb,db){Ca+=db+"\x3cbr\x3e"});ia=Ca+="("+Granite.I18n.get("Upfront discount",null,null)+")"}}else ia="("+Granite.I18n.get("Upfront discount")+")";var Pa={index:da.length,count:da.length+1,displayModelName:Ga.join(" | "),discountPriceText:currencyComma(H,y),discountText1:G,dataPrice:H,dataCashBack:u,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,discountPriceTextTile:pa,specialDiscountText:ia,discountPrice:parseFloat(h),specialPrice:xa,priceinfodesc:Ca,
provider:e.provider,closedDiscountAmount:parseFloat(e.closedDiscountAmount?e.closedDiscountAmount:0)};-1<n.checkedIndex?(Pa.index=n.checkedIndex,da.splice(n.checkedIndex,1,Pa)):da.push(Pa);if(ka.hasUpgradeResult){var Fa=da.reduce(function(pb,db){return pb+parseInt(db.dataPrice)},0);P=parseFloat(R.attr("data-price"))-parseFloat(Fa);R.attr("data-price",P);$(R).find(".option-result__text").innerHTML=currencyComma(parseFloat(P/24),y)+" / "+Granite.I18n.get("month")}}}else if("pl"===N){if(T||(G=Granite.I18n.get("Total Cashback")+
": "+currencyComma(A,y),xa="",e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice),G=Granite.I18n.get("Total Cashback")+": "+currencyComma(parseFloat(A)+parseFloat(e.tradeInSpecialPrice),y),z="-"+currencyComma(A,y)+" ("+Granite.I18n.get("Old device value")+")",M="-"+currencyComma(e.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional value")+")"),"instantDiscount"!=e.discountMode&&(H=0)),n.isMultiTradeIn){var Na="",Ta="";e.tradeInSpecialPrice?(Na=""+currencyComma(parseFloat(A)+parseFloat(e.tradeInSpecialPrice),
y),G=(e.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(A),y),Ta=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(e.tradeInSpecialPrice),y)):(Na=""+currencyComma(parseFloat(A),y),G="");var Ua=r(" | ",e.displayBrandName,e.displayModelName);e.isGuaranteedTradeIn&&e.tradeInSpecialPrice&&(H=e.tradeInSpecialPrice);var Z=""+Granite.I18n.get("Total Discount"),Ba={index:da.length,count:da.length+1,displayModelName:Ua,
discountPriceText:Na,discountText1:G,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:Ta,discountPrice:parseFloat(H),specialPrice:xa,discountPriceTextTile:Z,isGuaranteedTradeIn:e.isGuaranteedTradeIn||!1};-1<n.checkedIndex?(Ba.index=n.checkedIndex,da.splice(n.checkedIndex,1,Ba)):da.push(Ba)}}else if("sk"===N||"cz"===N){if(T||(G=Granite.I18n.get("Total Discount")+": "+currencyComma(A,y),xa="",e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice),
G=Granite.I18n.get("Total Discount")+": "+currencyComma(parseFloat(A)+parseFloat(e.tradeInSpecialPrice),y),z="-"+currencyComma(A,y)+" ("+Granite.I18n.get("Old device value")+")",M="-"+currencyComma(e.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional value")+")",H=parseFloat(A+e.tradeInSpecialPrice)),"instantDiscount"!=e.discountMode&&(H=0,G=Granite.I18n.get("Total Discount")+": "+currencyComma(A,y))),n.isMultiTradeIn){var la="",wa="";e.tradeInSpecialPrice?(la=""+currencyComma(parseFloat(A)+
parseFloat(e.tradeInSpecialPrice),y),G=(e.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+" "+currencyComma(parseFloat(A),y),wa=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(e.tradeInSpecialPrice),y)):(la=""+currencyComma(parseFloat(A),y),G="");var Da=r(" | ",e.displayBrandName,e.displayModelName);e.isGuaranteedTradeIn&&e.tradeInSpecialPrice&&(H=e.tradeInSpecialPrice);var ya=""+Granite.I18n.get("Total Discount"),Ja={index:da.length,
count:da.length+1,displayModelName:Da,discountPriceText:la,discountText1:G,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:wa,discountPrice:parseFloat(H),specialPrice:xa,discountPriceTextTile:ya,isGuaranteedTradeIn:e.isGuaranteedTradeIn||!1};-1<n.checkedIndex?(Ja.index=n.checkedIndex,da.splice(n.checkedIndex,1,Ja)):da.push(Ja)}}else if("lv"===N||"lt"===N||"ee"===N)e.tradeInSpecialPrice?(na=currencyComma(A,y)+" ("+Granite.I18n.get("Your device trade-in value")+
")",a=currencyComma(e.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional bonus")+")",G=Granite.I18n.get("Total trade amount")+" : "+currencyComma(A+e.tradeInSpecialPrice,y),H=parseFloat(A+e.tradeInSpecialPrice)):(G=currencyComma(A,y),H=A),"instantDiscount"!=e.discountMode&&(e.tradeInSpecialPrice?(H=e.tradeInSpecialPrice,G=Granite.I18n.get("Total Discount")+": "+currencyComma(A+e.tradeInSpecialPrice,y)):(H=0,G=Granite.I18n.get("Total Discount")+": "+currencyComma(A,y))),qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");
else if("id"===N||"ph"===N){if(T||(H=h+u,0!==h&&(G=currencyComma(h,y)+" ("+Granite.I18n.get("Regular exchange discount")+")"),0!==u&&(z=currencyComma(u,y)+" ("+Granite.I18n.get("Additional exchange discount")+")")),n.isMultiTradeIn){G=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(h,y);var La=[];e.displayBrandName&&La.push(e.displayBrandName);e.displayModelName&&La.push(e.displayModelName);xa="";e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice));var Ma={index:da.length,count:da.length+
1,displayModelName:La.join(" | "),discountPriceText:currencyComma(H,y),discountText1:G,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:ia,discountPrice:parseFloat(H),specialPrice:xa};-1<n.checkedIndex?(Ma.index=n.checkedIndex,da.splice(n.checkedIndex,1,Ma)):da.push(Ma)}}else if("uk"===N)T||(H=h+u,G="- "+currencyComma(H,y)+" "+Granite.I18n.get("Upfront discount"));else if("fr"===N){T?(I=h+u,G=currencyComma(I,y)+" "+Granite.I18n.get("Cashback")):(H=
h+u,G="- "+currencyComma(H,y)+" "+Granite.I18n.get("Upfront discount"));0!==u&&(qa=Granite.I18n.get("* Includes {0} additional discount",currencyComma(u,y)));n.commonTradein=e.commonTradein;var oa="";e.tradeInSpecialPrice&&(oa=parseInt(e.tradeInSpecialPrice));if(n.isMultiTradeIn){var Ra=[];e.displayBrandName&&Ra.push(e.displayBrandName);e.displayModelName&&Ra.push(e.displayModelName);var Wa=""+Granite.I18n.get("Total de remise appliqu\u00e9e");G=currencyComma(h,y)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil");
var Qa=e.abondementAmount,Va="",cb=e.spotGuaranteeAmount,bb="";e.spotGuaranteeAmount||e.abondementAmount||e.tradeInSpecialPrice||(G="");e.spotGuaranteeAmount&&(bb="+"+currencyComma(e.spotGuaranteeAmount,y)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (offre de reprise garantie)"));e.abondementAmount&&(Va="+"+currencyComma(e.abondementAmount,y)+" "+Granite.I18n.get("ajout\u00e9 \u00e0 votre valeur initiale (abondement)"));e.tradeInSpecialPrice&&(ia="+"+currencyComma(parseInt(e.tradeInSpecialPrice),
y)+" "+Granite.I18n.get("de bonus reprise"));var Xa={index:da.length,count:da.length+1,displayModelName:Ra.join(" | "),discountPriceText:currencyComma(H,y),discountText1:G,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:ia,discountPrice:parseFloat(H),specialPrice:oa,discountPriceTextTile:Wa,abondementAmount:Qa,abondementAmountText:Va,spotGuaranteeAmount:cb,spotGuaranteeAmountText:bb};-1<n.checkedIndex?(Xa.index=n.checkedIndex,da.splice(n.checkedIndex,
1,Xa)):da.push(Xa)}oa&&(ia=Granite.I18n.get("Special Discount")+" "+currencyComma(oa,y),A=parseFloat(A)+parseFloat(oa),H+=oa)}else if("be"===N||"be_fr"===N||"nl"===N){e.tradeinId=e.tradeinInfo.id;pa=""+Granite.I18n.get("Total Discount");G=currencyComma(h,y)+" ("+Granite.I18n.get("Regular Exchange Value")+")";var Ya="";e.tradeInSpecialPrice&&(Ya=parseInt(e.tradeInSpecialPrice),ia=Granite.I18n.get("Special Discount")+" "+currencyComma(Ya,y),H+=Ya);if(n.isMultiTradeIn){G=Granite.I18n.get("Regular Exchange Value")+
" "+currencyComma(h,y);var ib=[];e.displayBrandName&&ib.push(e.displayBrandName);e.displayModelName&&ib.push(e.displayModelName);var Za={index:da.length,count:da.length+1,displayModelName:ib.join(" | "),discountPriceText:currencyComma(H,y),discountText1:G,discountPriceTextTile:pa,specialDiscountText:ia,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,isGuaranteedTradeIn:e.isGuaranteedTradeIn||!1};-1<n.checkedIndex?(Za.index=n.checkedIndex,da.splice(n.checkedIndex,1,
Za)):da.push(Za)}}else if("sk"===N||"cz"===N)e.tradeInSpecialPrice?(na=currencyComma(A,y)+" ("+Granite.I18n.get("Your device value")+")",a=currencyComma(e.tradeInSpecialPrice,y)+" ("+Granite.I18n.get("Additional bonus")+")",G=Granite.I18n.get("Total Discount")+" : "+currencyComma(A+e.tradeInSpecialPrice,y)):G=currencyComma(A,y),H=0;else if("pe"===N||"co"===N)G=currencyComma(u,y)+" "+Granite.I18n.get("Cashback"),H=0;else if("mx"===N){var gb=0,fb=0,sb=0;0<e.tradeInAdditionalInfo.length&&($.each(e.tradeInAdditionalInfo,
function(pb,db){"discountAmount"===db.key&&(gb=parseFloat(db.value));"additionalDiscount"===db.key&&(fb=parseFloat(db.value))}),sb=gb+fb,G=0<gb?currencyComma(gb,y):null,z=0<fb?currencyComma(fb,y):null);ta=currencyComma(sb,y)}else if("kz_kz"===N||"kz_ru"===N){if(qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),n.isMultiTradeIn){var yb=[];e.displayBrandName&&yb.push(e.displayBrandName);e.displayModelName&&yb.push(e.displayModelName);var Ob={index:da.length,
count:da.length+1,displayModelName:yb.join(" | "),discountPriceText:currencyComma(H,y),discountText1:G,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,imeiKey:e.imeiKey,dataId:e.consents,services:e};-1<e.checkedIndex&&da.splice(0);da.push(Ob)}}else if("cl"===N&&n.isMultiTradeIn){qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");var vb=""+Granite.I18n.get("Regular Exchange Value");G="";var qb=[];e.displayBrandName&&qb.push(e.displayBrandName);e.displayModelName&&
qb.push(e.displayModelName);xa="";I=u;H=0;e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice),vb=""+Granite.I18n.get("Total Discount"),G=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(I,y),ia=Granite.I18n.get("Special Discount")+" "+currencyComma(xa,y),H+=xa,I+=xa);var Jb={index:da.length,count:da.length+1,discountPriceTextTile:vb,discountPriceText:currencyComma(I,y),displayModelName:qb.join(" | "),dataPrice:H,dataCashBack:u,dataQuoteId:e.tradeinId,dataId:e.consents,imeiKey:e.imeiKey,
services:e,specialDiscountText:ia,discountText1:G,discountPrice:parseFloat(H),specialPrice:xa};-1<n.checkedIndex?(Jb.index=n.checkedIndex,da.splice(n.checkedIndex,1,Jb)):da.push(Jb)}else if("ua"===N)I=e.discount.price.replace(/\u20b4/g,"").trim(),G=Granite.I18n.get("Approximate estimated cost")+" : "+I+" "+Granite.I18n.get("\u0433\u0440\u043d"),sb=fb=gb=0,0<e.tradeInAdditionalInfo.length&&($.each(e.tradeInAdditionalInfo,function(pb,db){"discountAmount"===db.key&&(gb=parseFloat(db.value));"additionalDiscount"===
db.key&&(fb=parseFloat(db.value))}),0<fb?(sb=gb+fb,H=fb,G=Granite.I18n.get("Approximate estimated cost ETI")+" : "+currencyComma(sb,y).replace(/\u20b4/g,"").trim()+" "+Granite.I18n.get("\u0433\u0440\u043d"),z="("+Granite.I18n.get("Estimated value of old device")+": "+(0<gb?currencyComma(gb,y):null)+')\x3cp class\x3d"option-result__text option-result__text-blue"\x3e('+Granite.I18n.get("Instant benefit")+": "+(0<fb?currencyComma(fb,y):null)+")"):H=0),qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");
else if("at"===N&&"01000000"===$("#categoryGroupCode").val())H=A,G=currencyComma(H,y),H=0;else if(E){if(G=Granite.I18n.get("Total Discount")+" : "+currencyComma(A,y),0<h&&(z="-"+currencyComma(h,y)+" ("+Granite.I18n.get("Estimated Trade-in Value")+")"),0<za?M="-"+currencyComma(za,y)+" ("+Granite.I18n.get("Overtrade bonus")+")":e.tradeInSpecialPrice&&(void 0!=da&&(0==da.length||0<da.length&&"0"==n.checkedIndex)&&(A=parseFloat(A)+parseFloat(e.tradeInSpecialPrice)),G=Granite.I18n.get("Total Discount")+
" : "+currencyComma(A,y),M="-"+currencyComma(parseFloat(e.tradeInSpecialPrice),y)+" ("+Granite.I18n.get("Special Discount")+")"),qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply."),H=A,n.isMultiTradeIn){var mb="",Cb="";e.tradeInSpecialPrice?void 0==da||0<da.length&&"0"!=n.checkedIndex?(mb=""+currencyComma(parseFloat(h),y),G=""):(mb=""+currencyComma(parseFloat(A),y),G=(e.isGuaranteedTradeIn?Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Old device value"))+
" "+currencyComma(parseFloat(h),y),Cb=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(e.tradeInSpecialPrice),y)):(mb=""+currencyComma(parseFloat(A),y),G="");var zb=r(" | ",e.displayBrandName,e.displayModelName);e.isGuaranteedTradeIn&&e.tradeInSpecialPrice&&(H=e.tradeInSpecialPrice);var ab=""+Granite.I18n.get("Estimated value of the old device (which is being bought back)"),$a={index:da.length,count:da.length+1,displayModelName:zb,discountPriceText:mb,discountText1:G,dataPrice:H,
dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:Cb,discountPrice:parseFloat(H),specialPrice:e.tradeInSpecialPrice,discountPriceTextTile:ab,isGuaranteedTradeIn:e.isGuaranteedTradeIn||!1};-1<n.checkedIndex?($a.index=n.checkedIndex,da.splice(n.checkedIndex,1,$a)):da.push($a)}}else if("ro"===N||"bg"===N)0<za?(G=currencyComma(parseFloat(A),y),H=A):G=currencyComma(H,y);else if("jp"===N)e.tradeinId=e.tradeinInfo.id,c=Granite.I18n.get("Total Cashback amount"),0<p?(m=
"\x3cdel\x3e"+Granite.I18n.get("Trade-in value")+" : "+currencyComma(u,y)+"\x3c/del\x3e",g=Granite.I18n.get("Total trade-in value")+" : "+currencyComma(p,y)):g=Granite.I18n.get("Trade-in value")+" : "+currencyComma(A,y),H=0;else if("cn"===N){var lb=0;qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in.")+" T\x26Cs apply.";G=Granite.I18n.get("Trade in amount")+": "+currencyComma(h,y);$.each(e.tradeInAdditionalInfo,function(pb,db){"vendorDiscount"===db.key&&(lb=db.value)});
0!=lb&&(z=Granite.I18n.get("Trade in discount from partner: Shans")+": "+currencyComma(lb,y),H+=parseFloat(lb));if(n.isMultiTradeIn){var Db=[];e.displayBrandName&&Db.push(e.displayBrandName);e.displayModelName&&Db.push(e.displayModelName);var Pb={index:da.length,count:da.length+1,displayModelName:Db.join(" | "),discountPriceText:currencyComma(H,y),discountText1:G,discountText2:z,dataPrice:H,dataTotalPrice:A,dataCashBack:I,dataQuoteId:e.tradeinId,imeiKey:e.imeiKey,dataId:e.consents,provider:e.provider,
services:e};-1<n.checkedIndex?(Pb.index=n.checkedIndex,da.splice(n.checkedIndex,1,Pb)):da.push(Pb)}}else if("tr"==N){var wb=Granite.I18n.get("Total Cashback"),dc="",Wb="",Mb=!1,lc=!0;if(T){dc=""+currencyComma(parseFloat(A),y);if(0==da.length||0==n.checkedIndex)Mb=!0,lc=!1;e.tradeInSpecialPrice?(dc=""+currencyComma(parseFloat(A)+parseFloat(e.tradeInSpecialPrice),y),G=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(A),y),Wb=Granite.I18n.get("Additional value")+" "+currencyComma(parseFloat(e.tradeInSpecialPrice),
y)):(dc=""+currencyComma(parseFloat(A),y),G=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(A),y),Wb=Granite.I18n.get("Additional value")+" "+currencyComma(0,y));z=""+currencyComma(parseFloat(A),y);M=Granite.I18n.get("Old device value")+" "+currencyComma(parseFloat(A),y);H=A;if(n.isMultiTradeIn){var Qb=[];e.displayBrandName&&Qb.push(e.displayBrandName);e.displayModelName&&Qb.push(e.displayModelName);var Bb={index:da.length,count:da.length+1,displayModelName:Qb.join(" | "),discountPriceTextTile:wb,
discountPriceText:dc,discountText1:G,discountText2:z,discountText3:M,dataPrice:H,dataTotalPrice:A,dataCashBack:I,dataQuoteId:e.tradeinId,imeiKey:e.imeiKey,dataId:e.consents,provider:e.provider,services:e,firstcheck:Mb,othercheck:lc,specialDiscountText:Wb};-1<n.checkedIndex?(Bb.index=n.checkedIndex,da.splice(n.checkedIndex,1,Bb)):da.push(Bb)}}}else if(Aa&&sa){"se"==N&&void 0!==ca&&""!==ca&&null!==ca&&(h=ca);var Yb=!1;qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");
if("es"===N)A=void 0!=A&&A?parseFloat(A):0,u=void 0!=u&&u?parseFloat(u):0,z=0<h?Granite.I18n.get("Value to")+" "+currencyComma(A,y)+" "+Granite.I18n.get("include promotion"):Granite.I18n.get("Up to")+" "+currencyComma(u,y)+" ("+Granite.I18n.get("Cashback")+")","04000000"===$("#categoryGroupCode").val()&&(qa=Granite.I18n.get("Trade-In disclaimer(TV)"));else if("my"===N){sb=fb=gb=0;qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");G=""+Granite.I18n.get("Regular Exchange Value");
z=""+Granite.I18n.get("Special Discount");var ec=[];e.displayBrandName&&ec.push(e.displayBrandName);e.displayModelName&&ec.push(e.displayModelName);if(e.tradeInSpecialPrice){var hc=parseInt(e.tradeInSpecialPrice);A=parseFloat(A)+parseFloat(hc);0==u&&0<h?H+=hc:0<u&&0==h&&(H=0)}var Fb={index:da.length,count:da.length+1,displayModelName:ec.join(" | "),discountPriceText:currencyComma(u,y)+"*",discountText1:G,dataPrice:H,dataCashBack:u,dataQuoteId:e.tradeinId,dataId:e.consents,services:e};0<e.tradeInAdditionalInfo.length&&
$.each(e.tradeInAdditionalInfo,function(pb,db){"discountAmount"===db.key&&(gb=parseFloat(db.value));"additionalDiscount"===db.key&&(fb=parseFloat(db.value),Fb.dataPrice=fb)});sb=gb+fb;Fb.discountPriceText=currencyComma(gb,y)+"*";Fb.discountText1=0<gb?G:null;Fb.discountPriceText2=fb?currencyComma(fb,y)+"*":null;Fb.discountText2=0<fb?z:null;-1<n.checkedIndex?(Fb.index=n.checkedIndex,da.splice(n.checkedIndex,1,Fb)):da.push(Fb)}else if("vn"===N){qa=Granite.I18n.get("* Values will vary based on model and condition of trade-in. T\x26Cs apply.");
xa="";e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice));var jb={index:da.length,count:da.length+1,displayModelName:e.displayModelName,dataPrice:H,dataCashBack:u,dataQuoteId:e.tradeinId,dataId:e.consents,imeiKey:e.imeiKey,services:e,specialDiscountText:ia,discountText1:G,discountPrice:parseFloat(H),specialPrice:xa};-1<n.checkedIndex?(jb.index=n.checkedIndex,da.splice(n.checkedIndex,1,jb)):da.push(jb)}else if("hk"===N||"hk_en"===N){void 0!==e.tradeinTotalAmount&&(G=" "+Granite.I18n.get("Trade-in discount")+
" : "+currencyComma(e.tradeinTotalAmount,y)+" ( "+Granite.I18n.get("Total Rebate")+" )",0<e.tradeinTotalAmount&&(0<e.tradeinValue&&(z=currencyComma(e.tradeinValue,y)+" ( "+Granite.I18n.get("Rebate")+" )"),0<e.exclusiveTradeinUnitOffer&&(M=currencyComma(e.exclusiveTradeinUnitOffer,y)+" ( "+Granite.I18n.get("Extra Trade-in Rebate")+" )"),0<e.extraTradeinOffer&&(S=currencyComma(e.extraTradeinOffer,y)+" ( "+Granite.I18n.get("Designated Used Device Trade-in Rebate")+" )"),0<e.exclusiveChannerTradeinOffer&&
(W=currencyComma(e.exclusiveChannerTradeinOffer,y)+" ( "+Granite.I18n.get("Online Shop Trade-in Rebate")+" )"),0<e.extraTradeinVoucher&&(ba=currencyComma(e.extraTradeinVoucher,y)+" ( "+Granite.I18n.get("Promo code Trade-in Rebate")+" )")));if(n.isMultiTradeIn){var nb=[],Ab=[];e.displayBrandName&&(nb.push(e.displayBrandName),Ab.push(e.displayBrandName));e.displayModelName&&(nb.push(e.displayModelName),Ab.push(e.displayModelName));var Zb="",oc="",rb="",pc=e.tradeinValue,kb="",tb="",hb=e.exclusiveTradeinUnitOffer,
eb="",Gb=e.extraTradeinOffer,fc="",$b=e.exclusiveChannerTradeinOffer,ic="",qc=e.extraTradeinVoucher,ob="",ub=Number(e.gtiPrice),Eb=e.hasGtiPrice,ac=!1;if(void 0!==e.tradeinTotalAmount){Zb=""+Granite.I18n.get("Estimated Trade-in Value");oc=rb=Granite.I18n.get("Total Rebate")+" "+currencyComma(e.tradeinTotalAmount,y)+"*";0<e.tradeinTotalAmount&&0<e.tradeinValue&&(kb=tb=Granite.I18n.get("Rebate")+" "+currencyComma(e.tradeinValue,y));if(0<e.exclusiveTradeinUnitOffer||0==e.exclusiveTradeinUnitOffer&&0==
e.extraTradeinOffer)eb=Granite.I18n.get("Extra Trade-in Rebate")+" "+currencyComma(e.exclusiveTradeinUnitOffer,y);0<e.tradeinTotalAmount&&(0<e.extraTradeinOffer&&(fc=Granite.I18n.get("Extra Trade-in Rebate")+" "+currencyComma(e.extraTradeinOffer,y)),0<e.exclusiveChannerTradeinOffer&&(ic=Granite.I18n.get("Online Shop Trade-in Rebate")+" "+currencyComma(e.exclusiveChannerTradeinOffer,y)),0<e.extraTradeinVoucher&&(ob=Granite.I18n.get("Promo code Trade-in Rebate")+" "+currencyComma(e.extraTradeinVoucher,
y)));if(Eb&&0<ub){var Xb=nb[1].split(", "),Rb="("+Granite.I18n.get("Guaranteed Trade-In")+")";-1==Xb[0].indexOf(Rb)&&(Xb[0]+=" "+Rb,nb[1]=Xb.join(", "));ac=!0;oc=Granite.I18n.get("Total Rebate")+" "+currencyComma(e.tradeinTotalAmount,y)+"*";rb=Granite.I18n.get("Total Rebate")+" "+currencyComma(e.tradeinValue,y)+"*";kb=Granite.I18n.get("Rebate")+" "+currencyComma(e.gtiPrice,y);tb=Granite.I18n.get("Rebate")+" "+currencyComma(e.tradeinValue,y)}}var mc={index:da.length,count:da.length+1,displayModelName:nb.join(" | "),
displayModelName2:Ab.join(" | "),discountPriceText:oc,discountPriceText2:rb,discountText1:"",dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,gtiPrice:ub,hasGtiPrice:Eb,services:e,specialDiscountText:ia,discountPrice:parseFloat(H),specialPrice:xa,discountPriceTextTile:Zb,tradeinTotalAmount:e.tradeinTotalAmount,tradeinValue:pc,tradeinValueText:kb,tradeinValueText2:tb,exclusiveTradeinUnitOffer:hb,exclusiveTradeinUnitOfferText:eb,extraTradeinOffer:Gb,extraTradeinOfferText:fc,extraTradeinOfferTextShow:fc?
!0:!1,exclusiveChannerTradeinOffer:$b,exclusiveChannerTradeinOfferText:ic,exclusiveChannerTradeinOfferTextShow:ic?!0:!1,extraTradeinVoucher:qc,extraTradeinVoucherText:ob,extraTradeinVoucherTextShow:ob?!0:!1,useGtiPriceArea:ac};-1<n.checkedIndex?(mc.index=n.checkedIndex,da.splice(n.checkedIndex,1,mc)):da.push(mc);var jc=!1;da.forEach(function(pb,db){jc?pb.useGtiPriceArea=!1:!0===pb.useGtiPriceArea?jc=!0:!pb.useGtiPriceArea&&pb.hasGtiPrice&&(jc=pb.useGtiPriceArea=!0)})}H=0}else if(n.isMultiTradeIn){var bc=
[];e.displayBrandName&&bc.push(e.displayBrandName);e.displayModelName&&bc.push(e.displayModelName);xa="";"sg"===N&&e.tradeInSpecialPrice&&(xa=parseFloat(e.tradeInSpecialPrice));var Tb="";"au"===N&&(G=""+Granite.I18n.get("Old device value"),z=""+Granite.I18n.get("Additional value"),pa=""+Granite.I18n.get("Total Discount"),e.tradeInSpecialPrice&&0<parseFloat(e.tradeInSpecialPrice)&&(xa=parseFloat(e.tradeInSpecialPrice)),e.tradeInPrice&&(Tb=parseFloat(e.tradeInPrice)));var Kb={index:da.length,count:da.length+
1,displayModelName:bc.join(" | "),discountPriceTextTitle:pa,discountPriceText:currencyComma(H,y),dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,services:e,specialDiscountText:ia,discountText1:G,discountText2:z,discountAmountPrice:H,discountAmountPriceText:currencyComma(H,y),specialPriceText:currencyComma(xa,y),discountPrice:parseFloat(H),specialPrice:xa,tradeInPrice:Tb};"it"==N&&(Kb.discountPriceTextTitle=""+Granite.I18n.get("Valore della prevalutazione"),Kb.discountPriceText=
currencyComma(h+u,y),Kb.dataPrice=h,Kb.dataCashBack=u,0<u?Y.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Cashback Result Text"):Y.component.templates.get("tradeInResult").element.querySelector(".option-result__multiple-result").innerHTML=""+Granite.I18n.get("Discount Result Text"));-1<n.checkedIndex?(Kb.index=n.checkedIndex,da.splice(n.checkedIndex,1,Kb)):da.push(Kb)}else"nz"===N?(x=Granite.I18n.getVar("Trade-in",
"ux2")+" : "+x,G=Granite.I18n.get("Total Discount")+" : "+currencyComma(A,y),0<za&&(z="-"+currencyComma(h,y)+" ("+Granite.I18n.get("Your old device value")+")",M="-"+currencyComma(za,y)+" ("+Granite.I18n.get("Overtrade bonus")+")"),H=A):(0<h&&(z="ch"===N||"ch_fr"===N?Granite.I18n.get("Up to")+" "+currencyComma(h,y):currencyComma(h,y),"ru"===N||"au"===N||"th"===N?" "!==Granite.I18n.get("Immediate Discount")&&(z+=" ("+Granite.I18n.get("Immediate Discount")+")"):"vn"===N?(x=null,G=currencyComma(h,y)+
" ("+Granite.I18n.get("Regular Exchange Value")+") ",z=null):" "!==Granite.I18n.get("Regular Exchange Value")&&("za"===N&&(z+="*"),z+=" ("+Granite.I18n.get("Regular Exchange Value")+")")),0<u&&("th"===N&&0<h||(""!==z?M=currencyComma(u,y)+" ("+Granite.I18n.get("Cashback")+")":z=currencyComma(u,y)+" ("+Granite.I18n.get("Cashback")+")")));""!==ha&&0<Number(ha)&&(ia=currencyComma(ha,y),ia=""!==ra?ia+(" ("+ra+")"):ia+(" ("+Granite.I18n.get("Special Discount")+")"),A=parseFloat(A)+parseFloat(ha),Yb=!0);
if("sg"===N&&e.tradeInSpecialPrice){var Ub=parseInt(e.tradeInSpecialPrice);ia=Granite.I18n.get("Special Discount")+" "+currencyComma(Ub,y);A=parseFloat(A)+parseFloat(Ub);H+=Ub;Yb=!0}if(Yb)G="it"!==N&&"ru"!==N&&"au"!==N&&"nz"!==N&&"za"!==N&&"th"!==N&&"ca"!==N&&"ca_fr"!==N&&0<h?Granite.I18n.get("Total Discount")+" : "+currencyComma(A,y):Granite.I18n.get("Total Benefit")+" : "+currencyComma(A,y);else if("it"===N&&(0<h||0<u)&&(z=G=null,0<h)){var Vb=[];e.displayBrandName&&Vb.push(e.displayBrandName);e.displayModelName&&
Vb.push(e.displayModelName);x=Granite.I18n.get("Galaxy Now! Credito Immediato")+" : "+Vb.join(" | ")}}b={hasComponent:!0,displayModelName:x,discountText1:G,discountText2:z,discountText3:M,discountText4:S,discountText5:W,discountText6:ba,specialDiscountText:ia,description:qa,dataPrice:H,dataCashBack:I,dataQuoteId:e.tradeinId,dataId:e.consents,list:da,tradeinAmountText:na,dealBonusPriceText:a,additionalDiscountFlag:L,priceAreaTitleText:c,totalCashBackPriceText:g,imeiKey:e.imeiKey,deletedOriginalCashBackPriceText:m,
contentText:q};"dk"==N||"fi"==N||"se"==N||"no"==N?(b.discountPriceText=currencyComma(H,y),b.discountText2=Granite.I18n.get("Regular Exchange Value")+" "+b.discountPriceText):"mx"==N&&(b.discountPriceText=ta);if(n.isMultiTradeIn&&0<da.length){("sg"===N||"vn"===N||"id"===N||L)&&window.sg.components.dynamic.DetailAfterEvent.tradeInResultSpecialPrice(n,b);"tr"==N?(b.dataPrice=da.reduce(function(pb,db){return pb+parseInt(db.dataCashBack)},0),b.dataPrice+=da[0].services.tradeInSpecialPrice):b.dataPrice=
da.reduce(function(pb,db){return pb+parseInt(db.dataPrice)},0);if("cn"==N){var Hb=0;$.each(da,function(pb,db){$.each(db.services.tradeInAdditionalInfo,function(gc,Ib){"ticketMoney"===Ib.key&&Hb<Ib.value&&(Hb=Ib.value)})});b.dataPrice=parseFloat(b.dataPrice)+parseFloat(Hb);if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var Sb=0;$.each(b.list,function(pb,db){$.each(db.services.tradeInAdditionalInfo,function(gc,Ib){"o2oTicketMoney"===Ib.key&&Sb<Ib.value&&(Sb=Ib.value)})});b.dataPrice=
parseFloat(b.dataPrice)+parseFloat(Sb)}}if("kz_kz"===N||"kz_ru"===N)b.dataPrice=e.totalSumPrice;var Nb=Number(b.dataPrice)-Number(n.proudctPriceInfo.salePrice);n.minOrderEntryValue&&(Nb+=Number(n.minOrderEntryValue));if("be"===N||"be_fr"===N||"nl"===N||"sg"===N||"vn"===N||"my"===N||"id"===N||"fr"===N||"kz_kz"===N||"kz_ru"===N||"de"===N||"sa"===N||"sa_en"===N||"cl"===N){if(b.totalAmountText=currencyComma(b.dataPrice,y),0<Nb&&(b.priceOverFlag=!0,b.excessAmount=Nb,b.excessAmountText=currencyComma(Nb,
y),b.tenText=currencyComma(n.minOrderEntryValue,y),"kz_kz"===N||"kz_ru"===N))b.totalAmountText=currencyComma(Number(n.proudctPriceInfo.salePrice)-Number(n.minOrderEntryValue),y)}else b.dataPrice>n.proudctPriceInfo.salePrice&&(b.priceOverFlag=!0);if("cn"==N){var cc=0;$.each(b.list,function(pb,db){$.each(db.services.tradeInAdditionalInfo,function(gc,Ib){"ticketMoney"===Ib.key&&cc<Ib.value&&(cc=Ib.value)})});b.totalTicketMoney=0;0!=cc&&(b.totalTicketMoney=cc,b.totalTicketMoneyText=Granite.I18n.get("Additional Trade in discount from belo4d")+
": "+currencyComma(cc,y));if(window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore){var xb=0;$.each(b.list,function(pb,db){$.each(db.services.tradeInAdditionalInfo,function(gc,Ib){"o2oTicketMoney"===Ib.key&&xb<Ib.value&&(xb=Ib.value)})});b.totalO2oTicketMoney=0;0!=xb&&(b.totalO2oTicketMoney=xb,b.totalO2oTicketMoneyText=Granite.I18n.get("O2O special subsidy")+": "+currencyComma(xb,y))}}}O.triggerChange(document.querySelector("#pd-trade-in-0"));V.tradeInResult=b;Y.tradeInResultDraw(V);
ka.totalAfterFunction(n,Q)}}function r(e,n){for(var Q=[],Y=1;Y<arguments.length;++Y)Q[Y-1]=arguments[Y];e=void 0===e?" | ":e;return Q.filter(function(N){return N}).join(e)}function B(e,n,Q){var Y=n.priceCurrency;n=n.isHybrisSplitPD;var N=!1,y="",R="",V="",ka=0,va=0,Aa=0,sa=0,ha=0,ra="",da=0,E=[],b=0;e.tradeinDiscountYn&&(N=e.tradeinDiscountYn);e.displayBrandName&&(y=e.displayBrandName,E.push(e.displayBrandName));e.displayModelName&&(R=e.displayModelName,E.push(e.displayModelName));var x=Granite.I18n.get("Your Trade-in")+
" : "+E.join(" | ");if("pt"===siteCode)x=Granite.I18n.get("Your Trade-in")+" : "+R;else if("nz"===siteCode||"dk"===siteCode||"fi"===siteCode||"se"===siteCode||"no"===siteCode)x=E.join(" | ");Q&&(V=e.value.price,ka=parseFloat(e.value.price),va=parseFloat(e.discount.price),Aa=parseFloat(e.discount.total),e.value.enhancedDiscountAmount&&(da=parseFloat(e.value.enhancedDiscountAmount)),e.discount&&e.discount.eventAmountPrice&&(b=parseFloat(e.discount.eventAmountPrice)));N?(ha=ka,n||(ra="tr"===siteCode?
currencyComma(e.discount.price,Y)+" "+Granite.I18n.get("Cashback"):"- "+currencyComma(ha,Y)+" "+Granite.I18n.get("Cashback"))):(sa=ka,n||(ra="- "+currencyComma(sa,Y)+" "+Granite.I18n.get("Upfront discount")));return{tradeinDiscountYn:N,displayBrandName:y,displayModelName:R,modelAndBrand:x,StrOrignalDisplayPrice:V,orignalDisplayPrice:ka,orignalCashBackPrice:va,orignalTotalPrice:Aa,displayPrice:sa,cashBackPrice:ha,priceText:ra,enhancedDiscountAmount:da,eventAmountPrice:b}}function J(e,n,Q,Y){var N=
n.priceCurrency,y=0,R=0,V=null,ka=0,va=null;e&&(e.discounted_sku&&(e.msrp_price&&(e.msrp_price.value&&(y=parseFloat(e.msrp_price.value)),e.msrp_price.formatted_value||currencyComma(y,N),e.msrp_price.duration&&(ka=e.msrp_price.duration),e.msrp_price.paymentcycle&&(va=e.msrp_price.paymentcycle)),e.sale_price&&(R=e.sale_price.value?parseFloat(e.sale_price.value):y,V=e.sale_price.formatted_value?e.sale_price.formatted_value:currencyComma(R,N),e.sale_price.duration&&(ka=e.sale_price.duration),e.sale_price.paymentcycle&&
(va=e.sale_price.paymentcycle)),0<y&&y!==R&&currencyComma(y-R,N)),n.drawObj.careResult={hasComponent:!0,dataPrice:y,dataSalePrice:R,dataModelName:e.modelName,dataModelCode:e.modelCode,dataId:e.consents,dataPromotionPrice:V,dataDuration:ka,dataPaymentcycle:va},n.popupReturnObj&&setTimeout(function(){O.triggerChange(n.popupReturnObj.get(0))},50),Y.careResultDraw(v),t.totalAfterFunction(n,Q))}var U=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),O=U.ux2.PDPHeaderUI,w="",t="",C="",v="",f=
"",q="",k=!0,F=!1,ea=function(e,n){f=n;w=e;t=w.util;C=w.view;v=w.drawObj};ea.prototype.setTradeInSuportSubsidy=function(e){F=e};ea.prototype.getTradeInSupportSidiy=function(){return F};ea.prototype.wishlistPopup=function(e,n,Q){var Y=v.wishList;e&&(Y.contentWrapperClass=t.addClass(Y.contentWrapperClass,e),Y.contentWrapperClass=t.removeClass(Y.contentWrapperClass,"tg-add-wishlist"),Y.contentWrapperClass=t.addClass(Y.contentWrapperClass,"tg-remove-wishlist"));n&&(Y.contentWrapperClass=t.removeClass(Y.contentWrapperClass,
n),Y.contentWrapperClass=t.addClass(Y.contentWrapperClass,"tg-add-wishlist"),Y.contentWrapperClass=t.removeClass(Y.contentWrapperClass,"tg-remove-wishlist"));Q&&(Y.labelText=Q);C.productWishListDraw(v);t.settingWishlistTagging(w,f)};ea.prototype.checkOutCta=function(e,n,Q,Y){e=void 0===e?[]:e;n=void 0===n?!1:n;Q=void 0===Q?!1:Q;w.useNewAddToCartApi?(new U.BuyingToolOpAjaxNewbris).callCheckOutCta(w,e,f,n,Q,Y):w.shopApiModel.callCheckOutCta(w,e,f,n,Q,Y)};ea.prototype.addToCartCta=function(e,n,Q,Y){e=
void 0===e?[]:e;n=void 0===n?!1:n;Q=void 0===Q?!1:Q;w.useNewAddToCartApi?(new U.BuyingToolOpAjaxNewbris).callAddToCartCta(w,e,f,n,Q,Y):w.shopApiModel.callAddToCartCta(w,e,f,n,Q,Y)};ea.prototype.offerAndAddonsDiscount=function(e,n){w.globalServiceInfo[n]=e;if("tradein"===n)D(e,w,f,C);else if("tariff"===n){var Q=w,Y=f,N=C,y=Q.drawObj,R=Q.util,V=Q.priceCurrency,ka=Q.siteCode,va="";if(e){"uk"===ka?(va=Granite.I18n.get("Monthly Price : ")+" "+currencyComma(e.price,V)+"/month***",Q.tariffPrice=e.upfrontAmount):
("au"===ka&&(Q.tariffPrice=e.discount),e.period?va=Granite.I18n.get("You pay now")+" "+currencyComma(e.price,V)+"/"+e.period:e.price&&(va=Granite.I18n.get("You pay now")+" "+currencyComma(e.price,V)));"au"===ka&&e.priceText&&(va=e.priceText);if("se"==ka||"no"==ka||"dk"==ka)va="";"fr"==ka&&R.isNotEmpty(e.pricing.promotions)&&R.isNotEmpty(e.pricing.promotions[0].monthly_rate.value)&&(va=Granite.I18n.get("Starting from")+" "+Granite.I18n.get("{0}/month",currencyComma(e.pricing.promotions[0].monthly_rate.value,
V)));y.tariffOptionResult={hasComponent:!0,displayModelName:e.serviceDescription,discountText1:va,description1:"fr"==ka?"":Granite.I18n.get("Invoice will be issued by the network service company"),dataPrice:e.periodPrice,dataSimskuCode:e.simSkuCode,dataModelCode:e.modelCode,dataId:e.consents};if("de"===ka){Q.hasGiftPage?(Q.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):(Q.hasGift=!1,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1),Q.hasVoucher||
Q.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1));var Aa=!1;1==Q.hasPlanIDAndFreeGiftPromotion&&((Aa=Q.giftSelectionSkipPlanIdList.includes(e.modelCode))?(Q.hasGift=!1,Q.hasVoucher||Q.hasAddOns?window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0):window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1)):(Q.hasGift=!0,window.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)));
Aa||window.sg.components.dynamic.freeGiftHybrisCommon.getTariffRelatedProductsSimpleInfo(Q.modelCode)}O.triggerChange(document.querySelector("#pd-tariff-option-0"));N.tariffOpionResultDraw(y);R.totalAfterFunction(Q,Y)}}else if("combo"===n){var sa=w,ha=f,ra=C,da=sa.util,E=sa.drawObj,b=E.offer.combo,x=Number(sa.checkedComboArea.attr("data-combo-index")),P=da.hasTradeInResult(sa,ha),H=sa.priceCurrency,ca=null,h;for(h in b){var I=b[h];if(I.comboIndex===x){ca=I;break}}if(ca){ca.item.hasBundle=!0;ca.item.bundleList=
[];for(var u in e){var A=e[u].thumbUrl,T=e[u].pviTypeName?e[u].pviTypeName.toLowerCase():"",fa=e[u].pviSubtypeName?e[u].pviSubtypeName.toLowerCase():"",X=e[u].categorySubTypeEngName?e[u].categorySubTypeEngName.toLowerCase():"",G="",z="",M="",S="",W="";e[u].msrp_price&&!e[u].sale_price&&(e[u].sale_price=e[u].msrp_price);if(e[u].sale_price&&e[u].msrp_price){var ba="",ia="";ba=e[u].sale_price.formatted_value?e[u].sale_price.formatted_value:currencyComma(e[u].sale_price.value,H);ia=e[u].msrp_price.formatted_value?
e[u].msrp_price.formatted_value:currencyComma(e[u].msrp_price.value,H);var ta="";if("nl"===siteCode||"be"===siteCode||"be_fr"===siteCode)ta=Granite.I18n.get("From");var qa="";"de"===siteCode&&(qa=Granite.I18n.get("From"));e[u].sale_price?(0!==parseFloat(e[u].msrp_price.value)-parseFloat(e[u].sale_price.value)?(G=ta+qa+ia,S=e[u].msrp_price.value,e[u].saveText&&""===ta&&(z=e[u].saveText)):(G=" ",S=e[u].msrp_price.value),M=Granite.I18n.get(ba),W=e[u].sale_price.value):(G=" ",S=e[u].msrp_price.value,
M=Granite.I18n.get(ia),W=e[u].msrp_price.value)}var za={title:e[u].displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+e[u].displayName,dataPrice:S,dataSalePrice:W,dataEventType:"combo-"+x+"-"+u,dataModelName:e[u].modelName,dataDisplayName:e[u].displayName,pviTypeName:T,pviSubtypeName:fa,categorySubTypeEngName:X,dataSkuCode:e[u].shopSKU,dataModelCode:e[u].modelCode,dataIndex:e[u].idx,imgAttr:{classWapper:"image__main responsive-img",srcPc:A,alt:e[u].thumbUrlAlt},price:{original:G,save:z,
now:M}};ca.item.bundleList.push(za)}"in"===siteCode&&P&&da.exchangeResultDraw(sa,ha);ra.productOfferDraw(E,!0);da.totalAfterFunction(sa,ha)}}else if("exchange"===n){var na=w,a=f,c=C;"CE"===na.tradeInType&&"in"===siteCode?na.commonApiModel.tradeInCeDataV1Api(na,a,e):e.notselected_offer_id?na.commonApiModel.exchangeInDataV1Api(na,a,e):(e.dataQuoteId=e.id,na.util.settingExchangeAPIData(e,na,a,c))}else if("eup"===n){var m=w,g=f,p=C,aa=m.drawObj,L=m.util,ma=m.priceCurrency;e&&(aa.upgradeResult={hasComponent:!0,
displayModelName:e.displayName,discountText1:Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(e.salePrice/24),ma)),dataId:e.consents,dataPrice:e.salePrice},m.isMigrationHybris&&e.monthlyPrice&&(aa.upgradeResult.discountText1=Granite.I18n.get("You pay now")+" "+Granite.I18n.get("{0}/month",currencyComma(parseFloat(e.monthlyPrice),ma))),O.triggerChange(document.querySelector("#pd-belo4d-upgrade-0")),p.upgradeResultDraw(aa),L.totalAfterFunction(m,g))}else if("care"===
n)J(e,w,f,C);else if("warranty"===n){var ua=w,ja=f,xa=C,Ia=ua.siteCode,Ka=ua.multiCareYn,Ea="",Ha=0,Sa="",Ga=0,pa="",Oa="",Ca="",Pa="",Fa="",Na="",Ta=null;if(e){e.discounted_sku&&(Sa=e.discounted_sku,"GPv2"===ua.apiFlag?(Ha=e.msrp_price.value,e.sale_price.formatted_value?(Ea=e.msrp_price.formatted_value,Ga=parseFloat(e.msrp_price.value)-parseFloat(e.sale_price.value)):e.msrp_price.formatted_value&&(Ea=e.msrp_price.formatted_value)):(Ta=Ha=e.sale_price.value,Ea=currencyComma(e.sale_price.value,ua.priceCurrency)));
var Ua="";if("nl"===Ia||"be"===Ia||"be_fr"===Ia)Ua=Granite.I18n.get("From");var Z="";"de"===Ia&&(Z=Granite.I18n.get("From"));var Ba=Granite.I18n.get("Extended Warranty");"Y"!==Ka&&(pa=Ba+" "+Sa);0!==Ga?(Oa=Ha,Pa=Ua+Z+" "+Ea,""===Ua&&(Na=Granite.I18n.get("Save {0}",currencyComma(Ga,ua.priceCurrency),Ia)),Ca=Ta,("ee"===Ia||"lt"===Ia||"lv"===Ia)&&e.sales_pitch&&(Fa=e.sales_pitch[0])):(Oa=Ha,Ca=Ta,Pa=Ea);ua.drawObj.warrantyResult={hasComponent:!0,displayModelName:pa,discountText1:Pa,description1:Fa,dataPrice:Oa,
dataSalePrice:Ca,dataModelName:e.modelName,dataModelCode:e.modelCode,dataId:e.consents,savedPrice:Na};O.triggerChange(document.querySelector("#pd-belo4d-warranty-0"));xa.warrantyResultDraw(v);t.totalAfterFunction(ua,ja)}}else if("warrantyVd"===n){var la=w,wa=f,Da=C,ya=la.siteCode,Ja=["mx","ph","my","sg"].includes(ya)?!0:!1,La=["ph","my","sg"].includes(ya)?!0:!1,Ma=["my"].includes(ya)?!0:!1,oa=!1,Ra="",Wa="";Wa=currencyComma(e.price,la.priceCurrency);Ja&&e.paymentCycle&&"MONTHLY"===e.paymentCycle.toUpperCase()&&
(Wa=Granite.I18n.get("{0}/month",currencyComma(e.price,la.priceCurrency)),Ma&&(Wa=Granite.I18n.get("freeMonths_null {0}/month",currencyComma(e.price,la.priceCurrency))),La&&(oa=!0,e.freeMonths&&null!=e.freeMonths&&"0"!=e.freeMonths&&(Wa=Granite.I18n.get("freeMonths {0}/month, from {1}",[e.freeMonths,currencyComma(e.price,la.priceCurrency)]))));e&&($(".option-result--extended-warranty-option").removeAttr("style"),la.drawObj.warrantyVdResult={hasComponent:!0,title:e.title,price:e.price,smcCode:e.smcCode,
description:e.description,priceDisplay:Wa,isMonthlyYn:oa},O.triggerChange(document.querySelector("#pd-extended-warranty-option-0")),Da.warrantyVdResultDraw(v),t.totalAfterFunction(la,wa),Ra='\x3cstrong class\x3d"summary__product-name"\x3e'+e.title+'\x3c/strong\x3e\n\t\t\t\t\t\t   \x3cp class\x3d"summary__product-price" style\x3d""\x3e'+currencyComma(e.price,la.priceCurrency)+"\x3c/p\x3e",$(".summary__product-price").show(),$(".hdd02-buying-tool__cost-box .summary .warranty-wrap").html(Ra))}else if("forever"===
n){var Qa=w,Va=f,cb=C,bb=Qa.util,Xa=bb.hasTradeInResult(Qa,Va);e&&(Qa.drawObj.galaxyForeverResult={hasComponent:!0,displayModelName:e.displayName,discountText1:Granite.I18n.get("Monthly Cost")+":"+currencyComma(e.foreverPrice,Qa.priceCurrency),description1:Granite.I18n.get("Tenure")+":"+e.tenureValue+" "+Granite.I18n.get("month"),dataId:e.consents,dataPrice:null,modelList:e.modelCodeArr,financePlanId:e.plan_id},O.triggerChange(document.querySelector("#pd-belo4d-galaxy-forever-0")),cb.galaxyForeverResultDraw(v),
Va.buyingToolOptCare.hide(),Xa&&bb.exchangeResultDraw(Qa,Va),bb.totalAfterFunction(Qa,Va))}else if("gift"===n){var Ya=w,ib=f,Za=C,gb=Ya.util,fb=Ya.drawObj,sb=fb.offer.gift,yb=Ya.priceCurrency,Ob=e.pviTypeName?e.pviTypeName.toLowerCase():"",vb=e.pviSubtypeName?e.pviSubtypeName.toLowerCase():"",qb=e.categorySubTypeEngName?e.categorySubTypeEngName.toLowerCase():"";sb.item.hasBundle=!0;sb.item.bundleList=[];var Jb=e.thumbUrl,mb="",Cb="",zb="",ab="",$a="";if(e.sale_price&&e.msrp_price){var lb="",Db="";
lb=e.sale_price.formatted_value?e.sale_price.formatted_value:currencyComma(e.sale_price.value,yb);Db=e.msrp_price.formatted_value?e.msrp_price.formatted_value:currencyComma(e.msrp_price.value,yb);var Pb="";if("nl"===siteCode||"be"===siteCode||"be_fr"===siteCode)Pb=Granite.I18n.get("From");var wb="";"de"===siteCode&&(wb=Granite.I18n.get("From"));e.sale_price?(0!==parseFloat(e.msrp_price.value)-parseFloat(e.sale_price.value)?(mb=Pb+wb+Db,ab=e.msrp_price.value,e.saveText&&""===Pb&&(Cb=e.saveText)):(mb=
" ",ab=e.msrp_price.value),zb=Granite.I18n.get(lb),$a=e.sale_price.value):(mb=" ",ab=e.msrp_price.value,zb=Granite.I18n.get(Db),$a=e.msrp_price.value)}e.selectIdx&&(sb.item.learnMoreCta.giftIdx=e.selectIdx);var dc={title:e.displayName,deleteTitle:Granite.I18n.get("Delete option")+" : "+e.displayName,dataPrice:ab,dataSalePrice:$a,dataEventType:0,dataModelName:e.modelName,dataDisplayName:e.displayName,dataSkuCode:e.shopSKU,dataModelCode:e.modelCode,dataIndex:e.selectIdx,pviTypeName:Ob,pviSubtypeName:vb,
categorySubTypeEngName:qb,imgAttr:{classWapper:"image__main responsive-img",srcPc:Jb,alt:e.thumbUrlAlt},price:{original:mb,save:Cb,now:zb}};sb.item.bundleList.push(dc);Za.productOfferDraw(fb,!0);gb.settingPriceDraw(Ya,ib)}else if("assured"===n){var Wb=w,Mb=f,lc=C,Qb=Wb.util;e&&(Wb.drawObj.assuredBuyBackResult={hasComponent:!0,dataSku:e.sku,dataPrice:e.msrp_price.value,dataSalePrice:e.sale_price.value,dataId:e.consents,displayModelName:e.displayModelName,dataModelName:e.dataModelName},O.triggerChange(document.querySelector("#pd-galaxy-assured-1")),
lc.assuredBuyBackResultDraw(v),Qb.totalAfterFunction(Wb,Mb))}else if("newassured"===n){var Bb=w,Yb=f,ec=C,hc=Bb.util;e&&(Bb.drawObj.newAssuredBuyBackResult={hasComponent:!0,dataModelCode:e.modelCode,dataModelName:e.modelName,dataPrice:e.productPrice,dataDisplayPrice:e.productDisplayPrice,dataDisplayName:e.productDisplayName},Bb.popupReturnObj&&O.triggerChange(Bb.popupReturnObj.get(0)),ec.newAssuredBuyBackResultDraw(v),hc.totalAfterFunction(Bb,Yb))}};ea.prototype.drawTradeInWithPopup=function(e){var n=
"uk"===siteCode,Q=!1;w.sgeSiteInstantChk=["ae","ae_ar"].includes(w.multistoreSiteCd);n&&k&&l().done(function(Y){Y&&isNotEmpty(Y[0])&&isNotEmpty(Y[0].content)&&(q=Y[0].content)}).fail(function(Y){}).always(function(Y){k=!1});if(e&&e.flag){Q=w.tradeInFlag=!0;w.maxTradeInsAllowed=e.maxTradeInsAllowed;if("ae"===w.siteCode||"ae_ar"===w.siteCode||w.isSEBN)w.maxTradeInsAllowed=1;w.minOrderEntryValue=e.minOrderEntryValue}"fr"!==w.siteCode||e.withCeTradeUpPopup||(e={maxDiscount:0,directOutLink:!1});w.compareMaxTradeInWithCart=
t.isNotEmpty(e)?e.compareMaxTradeInWithCart:!1;w.disableTradeIn=w.compareMaxTradeInWithCart?e.disableTradeIn:!1;w.util.hasTradeIn(w,f)||(t.settingTradeInDraw(e,w,f,Q),t.settingTradeInErrMsgDraw(w,f,Q),window.sg.components.ProductDetailKvNew.reInit())};ea.prototype.newHybrisDrawTariffOption=function(e,n,Q){var Y=$.extend({isBroadbandService:!1},Q);Q=w.view;var N=w.drawObj,y=w.siteCode,R=[];if(Y.isBroadbandService)w.tariffFlag=!0,N.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")}},Q.tariffOpionDraw(N),window.sg.components.ProductDetailKvNew.reInit();else if(e&&0<e.length){w.tariffFlag=!0;e=$jscomp.makeIterator(e);for(Y=e.next();!Y.done;Y=e.next()){var V=Y.value;Y=V.imgUrl;V=V.imgAlt;Y&&("de"===y&&(-1<Y.indexOf("Telekom")?(Y="https://images.quick3d.org/is/image/belo4d/assets/de/tarife/logos/tarrif-sim-telekom_NEU.png",V="Telekom"):-1<Y.indexOf("Vodaphone")?
(Y="https://images.quick3d.org/is/image/belo4d/assets/de/icons/sim/250821_SIM_Icon_Vodafone.png",V="Vodaphone"):-1<Y.indexOf("o2")&&(Y="https://images.quick3d.org/is/image/belo4d/assets/de/icons/sim/250821_SIM_Icon_o2.png",V="o2")),R.push({src:Y,alt:V}))}e=Granite.I18n.get("Choose your preferred tariff from various providers.");if("fr"==y&&n){var ka=0;$.each(n,function(va,Aa){for(va=0;va<Aa.tariffPlans.length;va++)!Aa.tariffPlans[va].recommended||0!=ka&&null!=ka&&void 0!=ka||(ka+=Aa.tariffPlans[va].discount)});
0<ka&&(e=Granite.I18n.get("Choose a network and save up to {0}",'\x3cstrong style\x3d"color: #006bea;"\x3e'+currencyComma(ka,w.priceCurrency)+"\x3c/strong\x3e"))}"de"==y&&w.categoryTypeCode.startsWith("01")&&(e=Granite.I18n.get("Choose the right plan for you."));N.tariffOption={hasComponent:!0,headline:Granite.I18n.get("Tariff Options"),description:e,logoList:R,href:"",yesAttr:{text:Granite.I18n.get("YES")},noAttr:{text:Granite.I18n.get("NO")}};"se"!==y&&"no"!==y&&"dk"!==y||w.simpleInfoSIM?(Q.tariffOpionDraw(N),
window.sg.components.ProductDetailKvNew.reInit()):N.tariffOption.hasComponent=!1}};ea.prototype.hybrisDrawTariffOption=function(e){var n=w.view,Q=w.drawObj;w.isGPv2AndHyIntg&&e&&e.carriers&&0<e.carriers.length&&(w.tariffFlag=!0,w.hybrisApiData.tarriffOption=e,Q.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||w.simpleInfoSIM?(n.tariffOpionDraw(Q),window.sg.components.ProductDetailKvNew.reInit()):Q.tariffOption.hasComponent=!1)};ea.prototype.hybrisDrawGift=function(e){var n=w.view,Q=w.drawObj,Y=Q.offer,N=w.util,y=w.giftdataHybris,R=null,V=null;if(w.isGPv2AndHyIntg&&e){w.giftFlag=!0;e=N.getAttrCta(Granite.I18n.get("ADD TO ORDER"),"javascript:;","_self","s-btn-gift-popup",{layerTarget:"freeGiftPopup",giftIdx:0},"");w.giftdataHybris;for(var ka in y)N=y[ka],
N.key&&"mainTitle"===N.key&&(R=N.value),N.key&&"subTitle"===N.key&&(V=N.value);y=[];V&&y.push({text:V});Y.gift={title:"giftBundle",giftIndex:0,hasItem:!0,item:{headline:R,description:{hasDescription:!0,main:y,date:null},learnMoreCta:e}};n.productOfferDraw(Q)}};ea.prototype.hybrisDrawCare=function(e,n){var Q=w.isHybrisSplitPD,Y=w.isHybrisSplitPDbelo4dCarePlus;if((w.isGPv2AndHyIntg||Q&&Y)&&e.smcs&&0<e.smcs.length){Q="se"===siteCode||"no"===siteCode||"fi"===siteCode||"dk"===siteCode;Y="pl"===siteCode;
Y="uk fr es ch ch_fr ro at cz pt be be_fr nl de ae ae_ar it tr".split(" ").includes(siteCode)||Q||Y;var N="se no dk fi uk fr es ch ch_fr at pt cz ro be be_fr nl de ae ae_ar it tr".split(" ").includes(siteCode),y="pt"===siteCode,R="uk de fr es pt it nl be be_fr at cz ro pl ch ch_fr se no fi dk".split(" ").includes(siteCode),V="se dk no fi nl be be_fr".split(" ").includes(siteCode),ka=w.belo4dCareFlag=!0,va=w.priceCurrency,Aa=w.util,sa=w.careLearnMoreUrl;Q=e.smcs;2<$("#categorySubTypeCode").val().length&&
$("#categorySubTypeCode").val().substring(0,2);var ha=2<$("#categorySubTypeCode").val().length&&"08"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,ra=2<$("#categorySubTypeCode").val().length&&"01"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,da="",E="_self",b="",x="javascript:;",P={};P={};var H={},ca={},h="";h=!1;da=[""].includes(siteCode);var I="";"ca"==siteCode?I="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/extended-warranty-img.jpg":"ca_fr"==
siteCode?I="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/extended-warranty-img-FR.jpg":"it"==siteCode?I="https://images.quick3d.org/is/image/belo4d/common/bc/images/care/care-image-it.jpg":"ae"==siteCode?I="/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/care-image-ae.jpg":"ae_ar"==siteCode&&(I="https://images.quick3d.org/is/image/belo4d/assets/ae_ar/smartphones/socialimage/care-image-ae.jpg");var u=!1;h=Granite.I18n.get("Add belo4d Care+");
n&&(h=Granite.I18n.get("belo4d CarePack"));!ha||"cl"!==siteCode&&"pe"!==siteCode&&"co"!==siteCode&&"mx"!==siteCode||(h=Granite.I18n.get("DA_Add belo4d Care+"));if(!ra&&("ca"===siteCode||"ca_fr"===siteCode)){var A=$(".hubble-care-popup__image .image__preview.lazy-load.responsive-img"),T=$(".hubble-care-popup__image .image__main.lazy-load.responsive-img"),fa=$(".hubble-care-popup__image .image__preview.responsive-img.image--loaded image--hide"),X=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),
G;for(G in Q){ra=Q[G];if(ra.summary&&"WARRANTY"===ra.summary.toUpperCase()){u=!0;break}if(0==u&&ra.productShortDescription&&-1<ra.productShortDescription.toUpperCase().indexOf("WARRANTY")){u=!0;break}}u&&(h=Granite.I18n.get("VD_Add belo4d Care+"),setTimeout(function(){if("ca"==siteCode||"ca_fr"==siteCode)A.attr("data-desktop-src",I+"?$380_223_PNG$"),A.attr("data-mobile-src",I+"?$680_398_PNG$"),A.attr("data-src",I+"?$380_223_PNG$"),A.attr("src",I+"?$380_223_PNG$"),T.attr("data-desktop-src",I+"?$380_223_PNG$"),
T.attr("data-mobile-src",I+"?$680_398_PNG$"),T.attr("data-src",I+"?$380_223_PNG$"),T.attr("src",I+"?$380_223_PNG$"),fa.attr("data-desktop-src",I+"?$380_223_PNG$"),fa.attr("data-mobile-src",I+"?$680_398_PNG$"),fa.attr("data-src",I+"?$380_223_PNG$"),fa.attr("src",I+"?$380_223_PNG$"),X.attr("data-desktop-src",I+"?$380_223_PNG$"),X.attr("data-mobile-src",I+"?$680_398_PNG$"),X.attr("data-src",I+"?$380_223_PNG$"),X.attr("src",I+"?$380_223_PNG$")},1200))}else if("it"==siteCode||"ae"==siteCode||"ae_ar"==
siteCode)ra=$(".hubble-care-popup__image .image__preview.lazy-load.responsive-img"),T=$(".hubble-care-popup__image .image__main.lazy-load.responsive-img"),H=$(".hubble-care-popup__image .image__preview.responsive-img.image--loaded image--hide"),ca=$(".hubble-care-popup__image .image__main.responsive-img.image--loaded"),ra.attr("data-desktop-src",I),ra.attr("data-mobile-src",I),ra.attr("data-src",I),ra.attr("src",I),T.attr("data-desktop-src",I),T.attr("data-mobile-src",I),T.attr("data-src",I),T.attr("src",
I),H.attr("data-desktop-src",I),H.attr("data-mobile-src",I),H.attr("data-src",I),H.attr("src",I),ca.attr("data-desktop-src",I),ca.attr("data-mobile-src",I),ca.attr("data-src",I),ca.attr("src",I);da?"uk"===siteCode?(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="hubbleCareinfoPopup"):"es"===siteCode?(x="javascript:void(0);",b=Granite.I18n.get("Know the advantages"),E="_self",P.layerTarget="hubbleCareinfoPopup"):"de"===siteCode&&(x="javascript:void(0);",b=Granite.I18n.get("Learn more"),
E="_self",P.layerTarget="hubbleCareinfoPopup"):!R&&sa?(b=Granite.I18n.get("Learn more"),x=sa,E="_blank"):"uk de fr es pt it at cz ro pl".split(" ").includes(siteCode)?(x="https://www.quick3d.org/"+siteCode+"/offer/belo4d-care-plus/",b=Granite.I18n.get("Learn more"),"es"===siteCode&&(b=Granite.I18n.get("Know the advantages")),E="_blank"):"cn tr ae ae_ar se no dk fi nl be be_fr".split(" ").includes(siteCode)?(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="hubbleCareinfoPopup"):
["au","hk","hk_en","sg","vn"].includes(siteCode)?(x="https://www.quick3d.org/"+siteCode+"/offer/belo4d-care-plus/",b=Granite.I18n.get("Learn more"),E="_blank"):["ch","ch_fr"].includes(siteCode)?(x="https://www.quick3d.org/"+siteCode+"/mobile/belo4d-care-plus/",b=Granite.I18n.get("Learn more"),E="_blank"):"za"===siteCode?(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="scLearnMorePopup"):"ca_fr"===siteCode||"ca"===siteCode?u?("ca"===siteCode?x="https://support-ca.quick3d.org/secaew/consumer/ca/category/categorymain":
"ca_fr"===siteCode&&(x="https://support-ca.quick3d.org/secaew/consumer/ca_fr/category/categorymain"),b=Granite.I18n.get("Learn more"),E="_blank"):(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="scLearnMorePopup"):"my"===siteCode?"true"===$("#isEppPage").val()&&(x="/my/multistore/"+$("#eppCompanyCode").val()+"/offers_epp/epp-sc-plus/",b=Granite.I18n.get("Learn more"),E="_blank"):"pe"===siteCode?ha&&(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget=
"hubbleCareinfoPopup"):"co"===siteCode?ha&&(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="hubbleCareinfoPopup"):"cl"===siteCode?ha&&(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="hubbleCareinfoPopup"):"mx"===siteCode&&ha&&(x="javascript:;",b=Granite.I18n.get("Learn more"),E="_self",P.layerTarget="hubbleCareinfoPopup");da=Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever.");u&&(da=Granite.I18n.get("VD_Insurance that protects and cares for your phone wherever, whenever."));
n&&(da=Granite.I18n.get("Insurance that protects and cares for your phone wherever, whenever. (belo4d CarePack)"));"fr"===siteCode&&(da=Granite.I18n.get("Gold standard insurance direct from belo4d."));if("ch"===siteCode||"ch_fr"===siteCode||"at"===siteCode)da=Granite.I18n.get("Protect your device with our insurance");!ha||"cl"!==siteCode&&"pe"!==siteCode&&"co"!==siteCode&&"mx"!==siteCode||(da=Granite.I18n.get("DA_Insurance that protects and cares for your phone wherever, whenever."));"vn"===siteCode&&
(da=Granite.I18n.get("Insurance that protects and cares for your phone for VN"));H={text:Granite.I18n.get("YES"),layerTarget:"hubbleCarePopup"};ca={text:Granite.I18n.get("NO"),eventType:"care"};P=Aa.getAttrCta(b,x,E,"",P,"");V&&(P.isOutLink=null,P.isNotOutLink=null);v.care={hasComponent:ka,title:h,learnMoreCta:P,description:da,yesAttr:H,noAttr:ca,subText:"",rowText:[],itemSet:[],items:[],isSmcType2:Y,useOneDepthPrice:N};w.finalCareList=[];for(G in Q){n=Q[G];h=!1;w.isMigrationHybris&&n.paymentCycle&&
"MONTHLY"===n.paymentCycle.toUpperCase()&&(h=!0);N={};N="be"===siteCode||"be_fr"===siteCode||"nl"===siteCode?{flags:{is_subscription:h},displayName:n.title,price_info:[{msrp_price:{value:n.price,formatted_value:currencyCommaExcep(n.price,va),duration_value:n.duration,paymentcycle_value:n.paymentCycle},sale_price:{value:n.promotionPrice,formatted_value:currencyCommaExcep(n.promotionPrice,va),duration_value:n.duration,paymentcycle_value:n.paymentCycle}}],long_description:n.summary,summary:n.summary}:
u?{flags:{is_subscription:h},displayName:n.title,price_info:[{msrp_price:{value:n.price,formatted_value:currencyComma(n.price,va),duration_value:n.duration,paymentcycle_value:n.paymentCycle},sale_price:{value:n.promotionPrice,formatted_value:currencyComma(n.promotionPrice,va),duration_value:n.duration,paymentcycle_value:n.paymentCycle}}],long_description:"",isWarranty:u,otherParameters:isNotEmpty(n.otherParameters)?n.otherParameters:""}:{flags:{is_subscription:h},displayName:n.title,price_info:[{msrp_price:{value:n.price,
formatted_value:currencyComma(n.price,va),duration_value:n.duration,paymentcycle_value:n.paymentCycle,wasValue:n.wasPrice,formatted_wasValue:currencyComma(n.wasPrice,va),freeMonths_value:"undefined"!=typeof n.freeMonths&&null!=n.freeMonths?n.freeMonths:"0"},sale_price:{value:n.promotionPrice,formatted_value:currencyComma(n.promotionPrice,va),duration_value:n.duration,paymentcycle_value:n.paymentCycle}}],long_description:n.summary,isWarranty:u,summary:n.summary,otherParameters:isNotEmpty(n.otherParameters)?
n.otherParameters:""};if(Y){Aa.isNotEmpty(n.otherParameters)||(n.otherParameters={theft:"false"});n.isTheft="true"===n.otherParameters.theft?!0:!1;if("TFT"===n.otherParameters.perks||("ae"===siteCode||"ae_ar"===siteCode||"tr"===siteCode)&&"SCR"===n.otherParameters.perks)n.isTheft=!0;N.otherParameters=n.otherParameters;N.isTheft=n.isTheft;R=n.yearlySubscription;V="";Aa.isNotEmpty(n.paymentCycle)&&"MONTHLY"===n.paymentCycle.toUpperCase()?V="mo":Aa.isNotEmpty(R)&&Number(R)&&(V="yr",1!==Number(R)&&(V=
R+"yrs"));N.cycle=V}w.finalCareList.push(N)}w.hybrisCareData=e;w.hybrisCareData.isSmcType2=Y?!0:!1;Aa.settingAfterApiCareDraw(w,f);window.sg.components.ProductDetailKvNew.reInit();y&&(e=d(Q),""!==e&&(w.popupReturnObj=$(".option-care li input[data-index\x3d"+(e+1)+"]"),e=K(Q[e]),window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(e,"care")))}};ea.prototype.hybrisDrawAccessory=function(e){var n=w.util;w.addonsFlag=e?!0:!1;n.settingPriceCta(w.hasPriceCta,w,f,w.currentUrl)};ea.prototype.tradeInResultSpecialPrice=
function(e,n){for(var Q=!0,Y=n.list,N=-1,y=0,R=0;R<Y.length;R++){var V=Y[R];V.specialPrice&&parseFloat(y)<parseFloat(V.specialPrice)&&(y=V.specialPrice,N=R)}n.specialInstantDiscountYn="N";y=n.additionalDiscountFlag;for(R=0;R<Y.length;R++){var ka=e.priceCurrency;V=Y[R];var va="",Aa=V.discountPrice,sa=V.discountPrice,ha="ae"===siteCode||"ae_ar"===siteCode||"sa"===siteCode||"sa_en"===siteCode,ra=e.sgeSiteInstantChk,da=e.instantDiscount;ha?(sa=Aa=V.dataCashBack,ra&&da&&(sa=Aa=V.discountPrice)):"fr"==
siteCode&&(V.spotGuaranteeAmount&&(sa+=parseFloat(V.spotGuaranteeAmount)),V.abondementAmount&&(sa+=parseFloat(V.abondementAmount)));var E="",b="",x=!1,P="",H=V.specialPrice;y&&"de"!=siteCode&&(H=V.specialPrice&&R==N);if(Q&&H){Q=parseInt(V.specialPrice);b=Granite.I18n.get("Special Discount")+" "+currencyComma(Q,ka);if("fr"===siteCode)b="+"+currencyComma(parseInt(Q),ka)+" "+Granite.I18n.get("de bonus reprise");else if("de"===siteCode)V.priceinfodesc&&(b=V.priceinfodesc);else if("ae"===siteCode||"ae_ar"===
siteCode)b="Y"==V.specialInstantDiscountYn?"+"+Granite.I18n.get("Additional Trade-in discount")+" "+currencyComma(Q,ka):"+"+Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(Q,ka);ra&&(b=da?"":Granite.I18n.get("Additional trade-in cashback")+" "+currencyComma(Q,ka));sa+=Q;va=currencyComma(sa,ka);x=!0;Q=!1}if(x)if(ha){P=""+Granite.I18n.get("Total cashback amount");va=""+currencyComma(sa,ka);E=Granite.I18n.get("Old device value")+" : "+currencyComma(Aa,ka);if("ae"===siteCode||"ae_ar"===
siteCode)E=Granite.I18n.get("Old device value")+" "+currencyComma(Aa,ka);ra&&da&&(P=""+Granite.I18n.get("Additional Trade-in discount"),E="")}else"fr"===siteCode?(P=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),E=currencyComma(Aa,ka)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),va=""+currencyComma(sa,ka)):"de"===siteCode?P=""+Granite.I18n.get("Total Discount"):"pk"===siteCode?(P=""+Granite.I18n.get("Total Discount"),E=Granite.I18n.get("Regular Exchange Value")+" "+
currencyComma(Aa,ka)):E=Granite.I18n.get("Regular Exchange Value")+" : "+currencyComma(Aa,ka);else ha?(E="sa"===siteCode||"sa_en"===siteCode?""+Granite.I18n.get("Regular Exchange Value"):Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(Aa,ka),ra&&(E="",P=da?""+Granite.I18n.get("Additional Trade-in discount"):""+Granite.I18n.get("Regular Exchange Value"))):"fr"===siteCode?(P=""+Granite.I18n.get("Total de remise appliqu\u00e9e"),E=currencyComma(Aa,ka)+" "+Granite.I18n.get("de valeur de reprise de votre ancien appareil"),
V.spotGuaranteeAmount||V.abondementAmount||(E="")):"de"===siteCode?E="("+Granite.I18n.get("Upfront discount")+")":"pk"===siteCode?(P=""+Granite.I18n.get("Total Discount"),E=Granite.I18n.get("Regular Exchange Value")+" "+currencyComma(Aa,ka)):P=""+Granite.I18n.get("Regular Exchange Value"),va=""+currencyComma(sa,ka);V.discountPriceTextTile=P;V.discountPriceText=va;V.specialDiscountText=b;V.discountText1=E;ha?(V.dataPrice=0,"ae"!==siteCode&&"ae_ar"!==siteCode||!x||"Y"!=V.specialInstantDiscountYn||(V.dataPrice=
parseInt(V.specialPrice),n.specialInstantDiscountYn="Y"),ra&&da&&(V.dataPrice=sa,n.specialInstantDiscountYn="Y")):V.dataPrice=sa}};U.DetailAfterEventClass=ea})();
(function(){function l(){var n=$("#apiChangeModelCode").val(),Q=$("#apiChangeCategorySubSubTypeCode").val(),Y=$("#apiChangeCategorySubTypeCode").val(),N=$("#apiChangeCategoryTypeCode").val(),y=$("#apiChangeCategoryGroupCode").val(),R=$("#apiChangeModelName").val(),V=$("#apiChangeShopSKU").val(),ka=$("#apiChangePdpUrl").val(),va=$("#apiChangeFamilyCode").val();n&&$("#modelCode").val(n);Q&&$("#categorySubSubTypeCode").val(Q);Y&&$("#categorySubTypeCode").val(Y);N&&$("#categoryTypeCode").val(N);y&&$("#categoryGroupCode").val(y);
R&&$("#modelName").val(R);V&&$("#shopSKU").val(V);ka&&$("#pdpUrl").val(ka);va&&$("#familyCode").val(va);q=$(".hdd02-pdp-header");n=q.find(".sg-pdh-product-info");Q=q.find("#detail-input-hidden");Y=q.find(".sg-pdh-buying-tool");N=Y.find(".sg-pdh-buying-options");y=Y.find(".sg-pdh-order-summary");R=$("#siteCode").val();V=$("#categoryGroupCode").val().substring(0,2);var Aa=$("#apiChangeCategorySubTypeCode").val();ka=Aa.substring(0,4);Aa=Aa.substring(0,6);va="ae"!==R&&"ae_ar"!==R||!["04","08"].includes(V)?
!1:!0;var sa="au"===R&&(["0401","0402"].includes(ka)||["08"].includes(V))?!0:!1,ha="vn"===R&&["04","08","07"].includes(V)?!0:!1,ra="in"===R&&["04","05","07","08"].includes(V)?!0:!1,da="my"===R&&["04","05","06","07","08"].includes(V)?!0:!1,E="Y"===$("#ceTradeUpEnabledYn").val()||("ch"===R||"ch_fr"===R)&&["08"].includes(V),b="sa"!==R&&"sa_en"!==R||!["04","08"].includes(V)?!1:!0,x=$("#tempTitle").val(),P=("ca_fr"===R||"ca"===R)&&"0701"==ka||("ca_fr"===R||"ca"===R)&&"08"==V&&"true"!=$("#isEppPage").val()?
!0:!1,H="uk"!==R||"0807"!=ka&&"0808"!=ka&&"0809"!=ka&&"0811"!=ka&&"0701"!=ka?!1:!0,ca="kz_kz"!==R&&"kz_ru"!==R||"08"!=V||"true"==$("#isEppPage").val()?!1:!0,h="cz"===R&&["04","08"].includes(V)&&"true"!=$("#isEppPage").val()?!0:!1,I="sk"===R&&["04","08"].includes(V)&&"true"!=$("#isEppPage").val()?!0:!1,u="fr"===R&&["04","08"].includes(V)&&"true"!=$("#isEppPage").val()?!0:!1,A="pl"===R&&(["04"].includes(V)||["08"].includes(V))&&"true"!=$("#isEppPage").val()?!0:!1,T="es"===R&&(["04"].includes(V)||["08"].includes(V)||
["05"].includes(V)||["07"].includes(V))&&"true"!=$("#isEppPage").val()?!0:!1,fa="levant"!==R&&"levant_ar"!==R||!["04"].includes(V)&&!["08"].includes(V)||"true"==$("#isEppPage").val()?!1:!0,X="it"===R&&(["0401","0701"].includes(ka)||["08"].includes(V))&&"true"!=$("#isEppPage").val()?!0:!1;"true"===$("#isEppPage").val()&&(T="es"===R&&(["0501","0701"].includes(ka)||["04"].includes(V)||["08"].includes(V))?!0:!1,A="pl"===R&&["08"].includes(V)?!0:!1);Aa=H||P||"0401"==ka||"0402"==ka||"0803"==ka||"080101"==
Aa||"080103"==Aa?!0:!1;P="";$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src")&&(P=""+$(".hdd02-gallery__item:first\x3ea\x3ediv\x3eimg").attr("data-desktop-src"),P=P.substring(0,P.indexOf("?",0)));ea={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:P,wtbSubTypeCode:$("#apiChangeCategorySubTypeCode").val(),pdProductType:$("#pdProductType").val(),tradeInFlag:!1,tradeinSaveValue:"",tradeinText:"",tradeInType:"in"===$("#siteCode").val()&&["04","05","07","08"].includes(V)?"CE":"",promotionSalesPitch:0,
upgradeEligible:!1,pdUpgradeUseYn:$("#pdUpgradeUseYn").val(),upgradeFlag:!1,eupData:{},childCheckList:[],pdProductTypeCheckYn:$("#pdProductTypeCheckYn").val(),belo4dCareList:[],belo4dCareBadgeList:[],belo4dCareFlag:!1,belo4dCarePackFlag:"in"===$("#siteCode").val()&&["04","05","07","08"].includes(V)?!0:!1,prePurchaseFlag:ca||u||A||T||fa||X||h||I||Aa&&"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:[],mxCategoryEmbedAddon:$("#apiChangeCategoryTypeCode").val().startsWith("01")&&["kz_kz","kz_ru"].includes(R),embedAddon08:"08000000"===$("#apiChangeCategoryGroupCode").val()?!0:!1,isEmbedAddOn:"08000000"!==$("#apiChangeCategoryGroupCode").val()||["uk"].includes(R)?!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(),belo4dCareSubText:"",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(),isHybrisSplitPDbelo4dCarePlus:"Y"===$("#splitPdbelo4dCarePlusYn").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"===x||"page-buying-pd"===x),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"==V||"08"==V)&&"de"===R||"01"!=V&&("fr"===R||"es"===R)||("04"==V||"08"==V)&&("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(V)&&("si"===R||"hr"===R)||["07"].includes(V)&&("at"===R||"pl"===R)||"mx"===R||"cn"===R||(["0401","0402"].includes(ka)||["08"].includes(V))&&"ph"===R||["0801","0803","0805","0401"].includes(ka)&&"id"===R||(["0401","0402","0404","0501"].includes(ka)||"08"==V)&&"nz"===R||["01","04","05","07","08"].includes(V)&&"n_africa"===R||va||sa||b||ha||ra||da||("08"==V||"01"==V)&&("levant"===R||"levant_ar"===R),isOldHybrisWishlist:"Y"===Q.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"===Q.find("#isMultiTradeIn").val(),isOldHybrisCheckService:"Hybris-intg"===
$("#shopIntegrationFlag").val()||"Hybris"===$("#shopIntegrationFlag").val(),backOrderMessage:"",stockLevelStatusDisplay:"",addonGiftBundleRelatedData:[],addonBundleRelatedData:[],bundleCnt:0,vdAddonInitPriceHtml:"",savingInformation:"",extraRewardsSites:"Y"===$("#isExposeExtraRewardsSites").val()?!0:!1,extraRewardsDate:{kz_kz:"20260201-20260228",kz_ru:"20260201-20260228",pt:"20251006-20251019",vn:"20251006-20251012",za:"20250929-20251019"},blockEddDisplay:"",blockPickupDisplay:"",addonStepBuying04:2<
$("#categorySubTypeCode").val().length&&"04"===$("#categorySubTypeCode").val().substring(0,2)?!0:!1,addonStepBuying0701:4<$("#categorySubTypeCode").val().length&&"0701"===$("#categorySubTypeCode").val().substring(0,4)?!0:!1,isOutOfStock:!1,taxPriceDisplay:"",storeText:"",savingValue:"",shippingMessage:"",vatEligible:"",isNewElementLowestWasPrice:"pl"===$("#siteCode").val()||"si"===$("#siteCode").val()||"hr"===$("#siteCode").val()||"gr"===$("#siteCode").val()||"fi"===$("#siteCode").val()||"it"===$("#siteCode").val()||
"se"===$("#siteCode").val()||"no"===$("#siteCode").val()||"dk"===$("#siteCode").val()||"fr"===$("#siteCode").val()||"at"===$("#siteCode").val()||"de"===$("#siteCode").val()||"lv"===$("#siteCode").val()||"lt"===$("#siteCode").val()||"ee"===$("#siteCode").val()||"cz"===$("#siteCode").val()||"sk"===$("#siteCode").val()||"pt"===$("#siteCode").val()||"au"===$("#siteCode").val(),isNewElementLowestWasPriceSetting:!1,isNewElementLowestWasPriceHuType:"hu"===$("#siteCode").val(),isNewElementLowestWasPriceSettingHuType:!1,
isLowestInstallmentAmount:"id"===$("#siteCode").val()||"ee"===$("#siteCode").val()||"lv"===$("#siteCode").val()||"lt"===$("#siteCode").val()||"pl"===$("#siteCode").val()||"pe"===$("#siteCode").val()||"cl"===$("#siteCode").val()||"ro"===$("#siteCode").val()||"bg"===$("#siteCode").val()||"mx"===$("#siteCode").val()||"co"===$("#siteCode").val()||"sk"===$("#siteCode").val()||"cz"===$("#siteCode").val()||"gr"===$("#siteCode").val()||"in"===$("#siteCode").val(),isLowestInstallmentInterest:"ee"===$("#siteCode").val()||
"lv"===$("#siteCode").val()||"lt"===$("#siteCode").val()||"pl"===$("#siteCode").val(),hasFrequentPrice:!1,isSENA:0<=["dk","fi","no","se"].indexOf(R),isSECZ:0<=["sk","cz"].indexOf(R),isSEBN:0<=["nl","be","be_fr"].indexOf(R),calculateInstallmentPeriodicValue:0,calculateInstallmentPeriod:0,isMonthlySENA:"se"===$("#siteCode").val()||"fi"===$("#siteCode").val()||"no"===$("#siteCode").val(),walkoutQty:0,homeDeliveryQty:0,isStorePopup:!1,ceTradeUpPopup:{isEnabled:E,categoryGroup:V,productCategoryMainType:{"0401":"tv",
"0402":"tv","0801":"wm","0803":"rf","0807":"vc","0805":"ac","0701":"monitor"}[ka],productCategoryGroup:{"03":"pc","04":"vd","05":"sb","07":"mon","08":"da"}[V]},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"}[ka],rewards:{config:{allowedSites:"fr de it au mx cl co pe za at be be_fr ch ch_fr cz dk es fi hk hk_en hr hu id my nl no nz ph pt se sg si sk th tw vn".split(" "),useNumberFormatterByLocale:["de","cl","id"],rewardsMemeberCheckSite:"mx cl co pe za at be be_fr ch ch_fr cz dk es fi hr hu id my nl no nz ph pt se sg si sk th tw vn".split(" ")},pageContext:{siteCode:$("#siteCode").val(),searchDomain:$("#searchDomain").val(),
apiStageInfo:$("#apiStageInfo").val(),channel:"true"!==$("#isEppPage").val()?"ESTORE":void 0,isEpp:"true"===$("#isEppPage").val(),tierName:window.localStorage.getItem("TierName"),tierCode:window.localStorage.getItem("TierCode"),isLogin:commonLoginCheck(),locale:$("#localLang").val()},context:null,calculator:null}};e={componentWrapper:q,buyingTool:Y,buyingToolGlallery:q.find(".sg-pdh-gallery-section"),buyingToolInfo:n,buyingToolInfoTitle:n.find(".pd-info__title"),buyingToolInfoSku:n.find(".pd-info__sku"),
buyingToolInfoWishlist:n.find(".pd-info__wishlist"),buyingToolInfoRating:n.find(".pd-info__rating"),buyingToolInfoUsp:n.find(".pd-info__usp-list"),buyingToolOpt:N,buyingToolOptBundle:N.find(".pd-select-option.bundle-group"),buyingToolOptBezelOption:N.find(".pd-select-option.option-bezelcolor"),buyingToolOptTradeIn:N.find(".pd-select-option.trade-in"),buyingToolOptTradeInErrMsg:N.find("#tradeInErrMsg"),buyingToolOptTradeInResult:N.find(".option-result.result-trade-in"),buyingToolOptCheckDealerStock:N.find(".pd-select-option.pd-select-option--check-dealer-stock"),
buyingToolOptGroup:N.find(".pd-select-option.option-group"),buyingToolOptDevice:N.find(".pd-select-option.option-device"),buyingToolOptColor:N.find(".pd-select-option.option-color"),buyingToolOptCarrier:N.find(".pd-select-option.option-carrier"),buyingToolOptMemory:N.find(".pd-select-option.option-device-memory"),buyingToolOptSize:N.find(".pd-select-option.option-size"),buyingToolOptCapacity:N.find(".pd-select-option.option-capacity"),buyingToolOptContract:N.find(".pd-select-option.option-contract"),
buyingToolOptStorageMemory:N.find(".pd-select-option.option-storage-memory"),buyingToolOptOthers:N.find(".pd-select-option.option-others"),buyingToolOptBetween:N.find(".pd-select-option.option-between"),buyingToolOptDelivery:N.find(".pd-select-option.pd-select-option--delivery-detail"),buyingToolOptDeliveryResult:N.find(".option-result.result-delivery"),buyingToolOptShippingOrBack:N.find(".pd-select-option__eta-text.js-shippingOrBack"),buyingToolOptDeliveryMessage:N.find(".pd-select-option__eta-text.js-deliveryMessage"),
buyingToolOptDeliveryPickupStore:N.find(".pd-select-option__extra-benefit"),buyingToolOptTariffPlan:N.find(".pd-select-option.option-tariff-plan"),buyingToolOptTariff:N.find(".pd-select-option.option-tariff"),buyingToolOptTariffResult:N.find(".option-result.result-tariff-option"),buyingToolOptOffer:"Y"===$("#pdPackageYn").val()?N.find(".pd-select-option.pd-select-option--type-offer-combo"):N.find(".pd-select-option.option-offer"),buyingToolOptOfferText:"Y"===$("#pdPackageYn").val()?N.find(".pd-select-option.pd-select-option--type-offer-text.pd-select-option--type-offer-text-combo"):
N.find(".pd-select-option.pd-select-option--type-offer-text"),buyingToolOptPrePurchase:N.find(".pd-select-option.pre-purchase-check"),buyingToolOptOfferFinance:N.find(".pd-select-option.option-offer-finance"),buyingToolOptUpgrade:N.find(".pd-select-option.option-upgrade"),buyingToolOptUpgradeResult:N.find(".option-result.result-upgrade"),buyingToolOptGalaxyForever:N.find(".pd-select-option.option-galaxy-forever"),buyingToolOptGalaxyForeverResult:N.find(".option-result.result-galaxy-forever"),buyingToolOptAssuredBuyBack:N.find(".pd-select-option.option-assured-buy-back"),
buyingToolOptAssuredBuyBackResult:N.find(".option-result-dev.result-option-assured-buy-back"),buyingToolOptNewAssuredBuyBack:N.find(".pd-select-option.option-new-assured-buy-back"),buyingToolOptNewAssuredBuyBackResult:N.find(".option-result-dev.result-option-new-assured-buy-back"),buyingToolOptWarranty:N.find(".pd-select-option.option-warranty"),buyingToolOptWarrantyResult:N.find(".option-result.result-warranty"),buyingToolOptWarrantyVd:N.find(".pd-select-option.option-warranty-vd"),buyingToolOptWarrantyVdResult:N.find(".option-result.option-result--extended-warranty-option"),
buyingToolOptCare:N.find(".pd-select-option.option-care"),buyingToolOptCareResult:N.find(".option-result-dev.result-care"),buyingToolOptEmbedAddon:N.find(".pd-select-option.option-embed-addon"),buyingToolOptSMBQuantity:N.find(".pd-select-option.pd-select-option--quantity"),buyingToolPriceBar:y,buyingToolCalculate:N.find(".pd-buying-tool__emi-calculator"),buyingToolCalculateDivider:N.find(".option-divider.emi-links"),buyingToolLinks:N.find(".pd-buying-tool__links")};ea.stockLevelStatus&&(ea.stockLevelStatus=
ea.stockLevelStatus.toUpperCase());if("true"===$("#isEppPage").val()){ea.isNewElementLowestWasPrice="Y"===eppOmniPricingUseYn?!0:!1;if("au"===R||ea.isSENA)ea.isNewElementLowestWasPrice=!0;"true"===window.sg.epp.common.quantityUse?$(".pd-select-option--quantity").css("display",""):$(".pd-select-option--quantity").remove()}n=ea;Q=new k.BuyingToolOpView(e,n);Y=new k.BuyingToolOpUtile(e);n.view=Q;n.util=Y;n.shopApiModel=n.isMigrationHybris?new k.BuyingToolOpAjaxNewbris:"GPv2"===n.apiFlag?new k.BuyingToolOpAjaxGPv2:
new k.BuyingToolOpAjaxHybris;n.commonApiModel=new k.BuyingToolOpAjaxCommon;n.pdRemoveTagTxt=Y.escapeHtml(n.pdRemoveTagTxt);Y=Q.productModel();n.drawObj=Y;Y=new k.DetailAfterEventClass(n,e);n.afterEvent=Y;k.DetailAfterEvent=Y;k.detailSelectorObj=e;k.detailSharedObj=n;"true"===$("#isEppPage").val()&&(window.sg.components.dynamic&&window.sg.components.dynamic.bridgePageCommonHybris&&window.sg.components.dynamic.bridgePageCommonHybris.setSharedObj(n),window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&
Q.eanCodeDraw());Q=k;Y=Q.RewardsCalculator;n.rewards.context=new Q.RewardsPolicyContext({config:n.rewards.config,pageContext:n.rewards.pageContext});n.rewards.calculator=new Y;n=ea;Q=e;Y=n.util;y=n.pdStageInfo;R=n.pdDisplayYn;N=n.parentPath;-1<N.indexOf("/content/belo4d")&&(N=N.split("/content/belo4d")[1]);"admin"!==y&&"N"===R&&(y=!1,"true"===$("#isEppPage").val()&&(R=location.pathname.match(/[0-9]{13}/g),null!=R&&"undefined"!=typeof R&&""!=$.trim(R)&&(y=!0)),y||(y="/",-1<location.href.indexOf(".html")&&
(y=".html"),N&&(location.href=N+y)));window.location.search&&-1<window.location.search.indexOf("accesstoken")&&(n.accessToken=Y.getQuerystring("accesstoken"),n.commonApiModel.externalAjax(n,Q));window.location.search&&-1<window.location.search.indexOf("appId")&&(n.pdAppId=Y.getQuerystring("appId"));window.location.search&&-1<window.location.search.indexOf("upgrade")&&(n.pdUpgrade=Y.getQuerystring("upgrade"));window.location.search&&-1<window.location.search.indexOf("exchangeid")&&-1<window.location.search.indexOf("open_promo_tax")&&
(n.openPromoTaxParam=Y.getQuerystring("open_promo_tax"));n.apiChangePdJcrTitle&&(document.title=n.apiChangePdJcrTitle);Y.initGlobalVal(n,Q);d(n,Q);Y.validateQuantity("1",n,Q,!0);n=ea;Q=e;Y=n.view;N=n.displayName;y=n.siteCode;R=n.modelCode;V=window.location.href.replace("/buy","");"in"===y&&-1<R.indexOf("SM-A920F")&&(V="https://www.quick3d.org/in/microsite/galaxy-a9/");Y.anchorDraw(N);n.currentUrl=V;Y=n.siteCode;N=n.isCart;y=n.oldProductYn;R=n.abnormalcoloryn;V=n.shopApiModel;ka=n.modelCode;va=n.util;
n.syndiProductData="";"in"===Y&&-1<ka.indexOf("SM-A920F")&&(n.currentUrl="https://www.quick3d.org/in/microsite/galaxy-a9/");n.isNotGpv2?V.productAjax(n,Q):"Y"===N&&"Y"!==y&&"Y"!==R?V.productAjax(n,Q):(va.totalAfterFunction(n,Q),n.util.clickEventListener(n,Q),n.commonApiModel.settingWishList(n,Q),va.gpHybrisGlobalEndPoint(n,Q));K(ea,e)}function d(n,Q){Q=$(".usp-text");for(var Y=0;Y<Q.length;Y++){var N=Q.eq(Y).text();N&&-1<N.indexOf("|_|")&&(N=N.trim().replace(/\|_\|([^\|_\|]*)\|_\|/g,function(y,R){return currencyComma(parseFloat(R),
n.priceCurrency)}),Q.eq(Y).text(N))}}function K(n,Q){n.optionId="";var Y={sharedObj:n,selectorObj:Q};Q.buyingToolOptBundle.on("click",".option-input",Y,function(y){var R=$(this),V=y.data.sharedObj,ka=y.data.selectorObj,va=V.detailNodePath;-1<window.location.href.indexOf("author.quick3d.org")&&-1==va.indexOf("/content/belo4d")&&(va="/content/belo4d"+va);var Aa=V.siteCode,sa=modelCodeToSelector(R.data("modelcode")),ha=R.data("familycode"),ra=V.isClicked,da=R.closest(".pd-select-option").attr("id");
y=$("#tempTitle").val();V.isBuyingoptionApi=R.hasClass("buyingoption-api");V.focusId=da;if(ra||R.hasClass("checked"))return!1;ra="/";-1<location.href.indexOf(".html")&&(ra=".html");if(sa){da="";if("true"===$("#isEppPage").val()){var E=location.pathname.match(/[0-9]{13}/g);null!=E&&"undefined"!=typeof E&&""!=$.trim(E)&&(da=".offerid-"+E)}ha=va+".pd-g-product-detail-header-ux2."+sa+"."+V.siteCode+"."+ha+da+ra;y=va+".pd-g-json-ld."+sa+"."+V.siteCode+"."+y+da+ra;V.isClicked=!0;V.isOptClicked=!0;setTimeout(function(){V.isClicked=
!1},1500);ra=V.disabledClass;da=ka.buyingToolOptWarrantyVdResult;var b=function(H){var ca=$("\x3cdiv\x3e\x3c/div\x3e").append(H);H=ca.find(".sg-pdh-product-info");var h=ca.find(".sg-pdh-gallery-section"),I=ca.find(".sg-pdh-buying-tool"),u=ca.find("#sg-pdh-dynamic-template-assembly"),A=ca.find("#detail-input-hidden"),T=ca.find("#betterTogether"),fa=ca.find("section.pd-banner"),X=ca.find("#pdd16-step-buying");ca=ca.find("#front-api-rawcode-component");$("#detailNodePath").val(va);q.find(".sg-pdh-product-info").replaceWith(H);
q.find(".sg-pdh-gallery-section").replaceWith(h);q.find(".sg-pdh-buying-tool").replaceWith(I);q.find("#sg-pdh-dynamic-template-assembly").replaceWith(u);q.find("#detail-input-hidden").replaceWith(A);q.find("#betterTogether").replaceWith(T);q.find("section.pd-banner").replaceWith(fa);q.find("#pdd16-step-buying").replaceWith(X);q.find("#front-api-rawcode-component").replaceWith(ca);"nl"===Aa&&($("#rentalInstallmentFinancing").hide(),$("#rentalInstallmentFinancingTable").html(""));window.sg.components.ProductDetailKvNew.reInit();
$("#"+V.focusId).find('.option-input[checked\x3d"checked"]').focus();H=$("#currentPdpUrl").val();h=-1<location.href.indexOf("/buy");H&&(-1<location.href.indexOf(".html")?("/"===H.substring(H.length-1)&&(H=H.substring(0,H.length-1)),H=h&&0>H.indexOf("/buy")?"/content/belo4d"+H+"/buy.html":"/content/belo4d"+H+".html"):h&&0>H.indexOf("/buy")&&(H="/"===H.substring(H.length-1)?H+"buy/":H+"/buy/"),"true"===$("#isEppPage").val()&&(h=$("#currentPdpUrl").val(),I="buy",-1<location.href.indexOf("/pd.")&&(I=
"pd"),-1<h.indexOf("/pd.")?H=$("#currentPdpUrl").val().replace("/pd.","/"+I+"."):-1<h.indexOf("/feature.")?H=$("#currentPdpUrl").val().replace("/feature.","/"+I+"."):-1<h.indexOf("/buy.")&&(H=$("#currentPdpUrl").val().replace("/buy.","/"+I+".")),h=H.match(/[0-9]{13}/g),""===$.trim(h)&&(h=location.pathname.match(/[0-9]{13}/g),null!=h&&"undefined"!=typeof h&&""!=$.trim(h)&&(H=H.replace(sa,sa+"."+h))),-1<location.href.indexOf(".html")&&("/"===H.substring(H.length-1)&&(H=H.substring(0,H.length-1)),-1==
H.indexOf("/content/belo4d")&&(H="/content/belo4d"+H),H+=".html")),history.pushState(null,null,H));0<$(".pd-g-product-promotion-bar").length&&f();l();window.sg.components.pdBanner.reInit();H="Y"===$("#typeux2025").val()?".pd-g-anchor-navigation-ux25":".pd-g-anchor-navigation-ux2";h="true"===$("#isEppPage").val()?".ep-cm-g-breadcrumb":".nv-g-breadcrumb";V.isBuyingoptionApi||v(D(".pd-g-feature-benefit-ux2",V,ka),".pd-g-feature-benefit-ux2",V,ka);t(D(".pd-g-product-detail-offer-banner",V,ka),".pd-g-product-detail-offer-banner",
V,ka);w(D(".pd-g-product-specs-ux2",V,ka),".pd-g-product-specs-ux2",V,ka);U(D(".pd-g-product-review-highlight",V,ka),".pd-g-product-review-highlight",V,ka);J(D(".pd-g-product-recently-viewed-ux2",V,ka),".pd-g-product-recently-viewed-ux2",V,ka);r(D(".pd-g-product-support-ux2",V,ka),".pd-g-product-support-ux2",V,ka);B(D(h,V,ka),h,V,ka);O(D(".pd-g-manufacturer-info-popup",V,ka),".pd-g-manufacturer-info-popup",V,ka);C(D(H,V,ka),H,V,ka);window.sg.components.SelloutOption.reInit();window.sg.components.dynamic.Dimension.init();
window.sg.components.PDheaderGalleryNew.reInit();F.gallery.init();window.sg.components.ProductDetailKvNew.scrollGo(document.querySelector("#"+V.focusId));window.sg.components.stepbuying.init()},x=function(H){$.ajax({type:"GET",url:H,dataType:"html",success:b,complete:function(){V.isClicked=!1}})},P=function(H){$.ajax({type:"GET",url:H,dataType:"html",success:function(ca){var h=$("\x3cobject/\x3e");ca=$(ca.replace(/\x3c!--[\s\S]*?--\x3e/g,"").trim());h.append(ca);h=$("#head-jsonld-script",h);$("#head-jsonld-script").replaceWith(h)}})};
da.hasClass(V.hasComponentClass)&&!da.hasClass(ra)?(ra=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",ha),$(".confirm-popup-v2 .confirm-popup-v2__cta-wrap .cta.cta--contained").attr("data-jsonld-url",y),confirmPopupV2(ra,"change option","",R),$(".confirm-popup-v2").on("click",'.cta[data-event-type\x3d"change-option"]',
Y,function(H){H=$(this).data("nodeurl");x(H);H=$(this).data("jsonld-url");P(H)})):(x(ha),P(y))}});Q.buyingToolOptBundle.on("click",".bezel-option-input",Y,function(y){var R=$(this),V=y.data.sharedObj,ka=y.data.selectorObj;y=V.detailNodePath;-1<window.location.href.indexOf("author.quick3d.org")&&-1==y.indexOf("/content/belo4d")&&(y="/content/belo4d"+y);var va=V.modelCode,Aa=R.data("bezelmodelcode");R.data("bezelmodelpatterncode");var sa=R.data("familycode"),ha=V.isBezelClicked,ra=R.closest(".pd-select-option").attr("id"),
da=Aa===va,E="";V.pmtURL="/"+V.siteCode+"/tvs/personalize-my-tv/?sku\x3d"+va+"\x26type\x3dapps";V.pmtModelList=[];da||"dummyCode"==Aa?(V.cartBezelCode="",V.bezelDummyCode=!0):(V.bezelDummyCode=!1,V.cartBezelCode=Aa,V.pmtModelList.push(Aa));V.soundbarCategoryData&&0<Object.keys(V.soundbarCategoryData).length&&V.embedAddonSelected.forEach(function(b,x){V.pmtModelList.push(b.modelCode)});if(0<$("#personalizeMyTv").length){if(!da||da&&0<V.pmtModelList.length)E+="\x26option\x3d";V.pmtModelList.forEach(function(b){E+=
b+","});$("#personalizeMyTv .cta").attr("href",V.pmtURL+E.slice(0,-1))}V.isBuyingoptionApi=R.hasClass("buyingoption-api");V.focusId=ra;for(ra=0;ra<V.bezelColorArray.length;ra++)da=R.attr("id"),V.bezelColorArray[ra].id==da&&(V.bezelColorIndex=ra);V.selectedBezelColor=V.bezelModelCodeArray[V.bezelColorIndex];V.isBezel&&(V.util.settingPriceDraw(V,ka),V.isPossibleBuy?V.util.settingPriceCta(V.hasPriceCta,V,ka,V.currentUrl):!V.isPossibleBuy&&V.sellingWithBazel&&V.util.settingPriceCta(V.hasPriceCta,V,ka,
V.currentUrl));if(ha||R.hasClass("checked"))return!1;R="/";-1<location.href.indexOf(".html")&&(R=".html");va&&(ka="",ka=-1<Aa.indexOf("/")?Aa.replace("/","_"):Aa,ha="","true"===$("#isEppPage").val()&&(ra=location.pathname.match(/[0-9]{13}/g),null!=ra&&"undefined"!=typeof ra&&""!=$.trim(ra)&&(ha=".offerid-"+ra)),ka=Aa?y+".pd-g-product-detail-header-ux2."+va+"."+V.siteCode+"."+sa+"."+ka+ha+R:y+".pd-g-product-detail-header-ux2."+va+"."+V.siteCode+"."+sa+ha+R,V.isBezelClicked=!0,setTimeout(function(){V.isBezelClicked=
!1},1500),$.ajax({type:"GET",url:ka,dataType:"html",success:function(b){b=$("\x3cdiv\x3e\x3c/div\x3e").append(b).find(".sg-pdh-gallery-section");q.find(".sg-pdh-gallery-section").replaceWith(b);window.sg.components.ProductDetailKvNew.reInit();window.sg.components.PDheaderGalleryNew.reInit();F.gallery.init();window.sg.common.lazyLoad.reInit()},complete:function(){V.isBezelClicked=!1}}));q.find(".pd-select-option__info-link").click(function(){var b=$(this).data("target-popup"),x="";1<q.find(".pd-select-option__info-link").length?
"mordernType"===b?x=document.querySelectorAll(".pd-select-option__info-link")[0]:"beveledType"===b&&(x=document.querySelectorAll(".pd-select-option__info-link")[1]):x=document.querySelectorAll(".pd-select-option__info-link")[0];F.openBezelPopup(x)})});if("Y"==n.aplautYn){var N=n.modelCode.replace("/","_");Q="ru"==siteCode?"scrollTarget":"scrollTargetId";n.aplautVerTwoYn?(aplaut.createWidget({container_id:"ap-reviews-container",type:"reviews",context_id:N}),n={},aplaut.createWidget({container_id:"ap-inlineInformer-container",
type:"inlineInformer",context_id:N,params:(n[Q]="ap-reviews-container",n)}),aplaut.createWidget({container_id:"ap-questionsAnswers-container",type:"questionsAnswers",context_id:N})):ShoppilotAPI.then(function(y){var R=y.require("product_widget");y=y.require("multi_widget");var V=new R({name:"inline-rating",product_id:N,container:"#aplaut-inline-rating-container"}),ka=new R({name:"product-reviews",product_id:N,container:"#aplaut-reviews-container"});R=new R({name:"product-questions",product_id:N,container:"#aplaut-questions-container"});
y.render([V,ka,R])})}$(document).on("click",".bv_stars_component_container, .sp-inline-rating-stars, .pd-info__rating",function(){document.querySelector("#reviewWrap \x3e a").click()});$("#isEppPage").val()&&q.find(".hdd02-pdp-header__cta-epromotor").hide();$(document).on("click",".hdd02-pdp-header .hdd02-pdp-header__cta-epromotor .cta",function(){window.sprChat("open")})}function D(n,Q,Y){Y=Q.detailNodePath;var N=modelCodeToSelector($("#modelCode").val());Q=Q.siteCode;var y="",R="/";-1<location.href.indexOf(".html")&&
(R=".html");var V="";if("true"===$("#isEppPage").val()){var ka=location.pathname.match(/[0-9]{13}/g);null!=ka&&"undefined"!=typeof ka&&""!=$.trim(ka)&&(V=".offerid-"+ka)}n&&(y=Y+n+"."+N+"."+Q+V+R,-1<n.indexOf("pd-g-anchor-navigation-ux2")&&(y=$("#familyCode").val(),y=Y+n+"."+N+"."+Q+"."+y+V+R));return y}function r(n,Q,Y,N){$.ajax({type:"GET",url:n,dataType:"html",success:function(y){$(Q).html(y)}})}function B(n,Q,Y,N){$.ajax({type:"GET",url:n,dataType:"html",success:function(y){y=$("\x3cdiv\x3e\x3c/div\x3e").append(y).find(".text-editor");
$(".nv-g-breadcrumb .text-editor").replaceWith(y)}})}function J(n,Q,Y,N){var y=Y.util;$.ajax({type:"GET",url:n,dataType:"html",success:function(R){var V=window.sg.components.dynamic,ka=window.sg.components.ProductRecentlyViewed||{};$(Q).html(R);V.rencentlyViewUx2&&V.rencentlyViewUx2.rencentlyViewGrid&&y.nonCheckError(V,V.rencentlyViewUx2.rencentlyViewGrid);ka&&y.nonCheckError(ka,ka.reInit)}})}function U(n,Q,Y,N){"Y"===$("#bvFlag").val()&&(-1<n.indexOf(".html")?(n=n.substring(0,n.length-5),n+=".pd-g-product-review-highlight-tab1.html"):
(n=n.substring(0,n.length-1),n+=".pd-g-product-review-highlight-tab1/"),Q="#review");$.ajax({type:"GET",url:n,dataType:"html",success:function(y){$(Q).html(y);y=window.sg.components.dynamic;"cn"===Y.siteCode&&y.cnReview&&y.cnReview.init()}})}function O(n,Q,Y,N){var y=Y.util;$.ajax({type:"GET",url:n,dataType:"html",success:function(R){$(Q).html(R);0<$(".manufacturer-info-popup").length&&(R=window.sg.components.manufacturerInfoPopup||{},y.nonCheckError(R,R.reInit))}})}function w(n,Q,Y,N){var y=Y.util;
$.ajax({type:"GET",url:n,dataType:"html",success:function(R){var V=window.sg.components.ProductSpecNew||{};$(Q).html(R);y.nonCheckError(V,V.reInit)}})}function t(n,Q,Y,N){var y=Y.util;$.ajax({type:"GET",url:n,dataType:"html",success:function(R){var V=window.sg.components.pdBanner||{};$(Q).html(R);y.nonCheckError(V,V.reInit)}})}function C(n,Q,Y,N){var y=Y.util,R=Y.view;$.ajax({type:"GET",url:n,dataType:"html",success:function(V){var ka=window.sg.aem.components.product.setAnchors,va=window.sg.components.pdHeaderNavigationV2;
if("Y"===$("#typeux2025").val()){var Aa=$(".pdd39-anchor-nav__header");V=$("\x3cdiv\x3e\x3c/div\x3e").append(V).find(".pdd39-anchor-nav__headline-wrap");Aa.find(".pdd39-anchor-nav__headline-wrap").replaceWith(V)}else $(Q).html(V);y.nonCheckError(ka,ka.init);y.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();window.sg.components.Pdd44Review.updateRating();window.sg.common.menu.reInit(document.querySelector(".pdd39-anchor-nav__headline-dropdown .menu"))}})}function v(n,Q,Y,N){$.ajax({type:"GET",url:n,dataType:"html",success:function(y){var R=Y.util,V=$("\x3cdiv\x3e\x3c/div\x3e").append(y);$(Q).html(y);0<V.find(".feature-benefit").length&&R.nonCheckError(window.sg.components.featureBenefit,window.sg.components.featureBenefit.reInit);0<V.find(".feature-benefit-banner").length&&
R.nonCheckError(window.sg.components.featureBenefitBanner,window.sg.components.featureBenefitBanner.reInit);0<V.find(".feature-benefit-bundle").length&&R.nonCheckError(window.sg.components.featureBenefitBundle,window.sg.components.featureBenefitBundle.reInit);0<V.find(".feature-benefit-full-bleed").length&&R.nonCheckError(window.sg.components.featureBenefitFullBleed,window.sg.components.featureBenefitFullBleed.reInit);0<V.find(".feature-benefit-gallery").length&&R.nonCheckError(window.sg.components.featureBenefitGallery,
window.sg.components.featureBenefitGallery.reInit);0<V.find(".feature-benefit-half-text").length&&R.nonCheckError(window.sg.components.featureBenefitHalfText,window.sg.components.featureBenefitHalfText.reInit);0<V.find(".feature-benefit-tab").length&&R.nonCheckError(window.sg.components.featureBenefitTab,window.sg.components.featureBenefitTab.reInit);0<V.find(".three-column-carousel").length&&R.nonCheckError(window.sg.components.featureBenefitThreeColumn,window.sg.components.featureBenefitThreeColumn.reInit);
0<V.find(".two-column").length&&R.nonCheckError(window.sg.components.featureBenefitTwoColumn,window.sg.components.featureBenefitTwoColumn.reInit);0<V.find(".feature-benefit-video-kv").length&&R.nonCheckError(window.sg.components.featureBenefitVideoKv,window.sg.components.featureBenefitVideoKv.reInit);window.sg.common.image.initAll()}})}function f(){var n=$(location).prop("pathname"),Q=$("#siteCode").val(),Y="";0<$("#categoryGroupCode").length&&(Y=$("#categoryGroupCode").val());"/"!=n.charAt(n.length-
1)||checkEppSite()||(n=n.substr(0,n.length-1));$.ajax({type:"GET",data:{resourcePath:n,siteCode:Q,productGroupCode:Y},url:"/aemapi/v6/product/getNotification",success:function(N){var y="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'+
(N.closePcHeadline+"\x3c/span\x3e\x3c/div\x3e");R+='        \x3cdiv class\x3d"notification-bar__text notification-bar__text-mo"\x3e\x3cspan\x3e'+N.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"'+(N.ctaUrl+'" title\x3d"'+N.ctaTitle+'" target\x3d"'+N.windowStyle+'"');R+='          \t an-tr\x3d"cod02_promotion bar-'+y+'-text-link" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:'+
N.closePcHeadline+":"+N.ctaEngText+'"\x3e'+N.ctaText+'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e';"_self"==N.windowStyle?R+='              \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e':"_blank"==N.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'+
(N.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"'+(N.ctaUrl+'" title\x3d"'+N.ctaTitle+'" target\x3d"'+N.windowStyle+'"');R+='          \t an-tr\x3d"cod02_promotion bar-'+y+'-text-link" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:'+N.closePcHeadline+":"+N.ctaEngText+'"\x3e'+N.ctaText+'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e';"_self"==N.windowStyle?R+='              \x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e':
"_blank"==N.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-'+(y+'-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(N){$(".pd-g-product-promotion-bar").html("");$(".pd-g-product-promotion-bar").hide()},complete:function(){}})}var q=$(".hdd02-pdp-header"),k=window.sg.sdf.util.prepareNamespace("sg.components.dynamic"),F=k.ux2.PDPHeaderUI,ea={},e={};if(0>=q.length)return!1;l()})();
(function(l,d){function K(ea){null!=ea.products&&0<ea.products.length&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),d.each(ea.products,function(e,n){e=n.modelcode;t[e]={};t[e].modelCode=e;t[e].name=n.name||"";t[e].imageUrl=n.imageUrl||"";t[e].imageUrlAlt=n.imageUrlAlt||"";t[e].stocklevel=n.stocklevel||"";t[e].price=n.price||"";t[e].priceValue=n.priceValue||"";t[e].promotionPrice="";t[e].promotionPriceValue="";t[e].promotionPrice=n.promotionPrice?n.promotionPrice:n.price;t[e].promotionPriceValue=
n.promotionPriceValue?n.promotionPriceValue:n.priceValue}))}var D=d("#siteCode").val(),r=d("#hybrisApiJson").val(),B=d("#storeDomain").val(),J=d("#searchDomain").val(),U=d("#apiStageInfo").val(),O=d("#priceCurrency").val(),w="Hybris-intg"===d("#shopIntegrationFlag").val()?"hybris":"global",t={},C=[],v="ae"===D||"ae_ar"===D||"levant"===D||"levant_ar"===D||"n_africa"===D,f="ca"===D||"ca_fr"===D,q="";if("ae"===D||"ae_ar"===D){var k=l.cookies.getCookie("estoreSitecode");q=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:D:D}else q="levant"===D?"jo":"levant_ar"===D?"jo_ar":"n_africa"===D?"ma":D;q="true"===d("#isEppPage").val()?d("#eppCompanyCode").val():q;var F=B+"/"+q;if("cl"===D||"mx"===D||"py"===D)F=B;F+="/servicesv2/getRelatedProductsSimpleInfo";l.sg.sdf.util.prepareNamespace("sg.components.dynamic").betterTogetherHybris={getRelatedProductsSimpleInfo:function(ea){var e="\x26country_region\x3d";if(f){var n=getSECACountryRegion();
e+=n}ea="?productCode\x3d"+ea;C=[];n="true"===d("#isEppPage").val()?{withCredentials:!0}:{};"Y"===r?d.ajax({url:F+ea,type:"GET",dataType:"json",cache:!0,crossDomain:!0,xhrFields:n,timeout:1E4,success:K,error:function(){}}):f?d.ajax({url:F+ea+e,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:n,cache:!0,crossDomain:!0,timeout:1E4,success:K,error:function(){}}):d.ajax({url:F+ea,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_151",xhrFields:n,cache:!0,
crossDomain:!0,timeout:1E4,success:K,error:function(){}})},getSearchProductcard:function(ea){var e=[];d.each(t,function(N,y){e.push(y.modelCode)});var n=d.cookies.get("country_region")?d.cookies.get("country_region").toString():"",Q={modelList:e.toString(),onlyRequestSkuYN:"Y",saleSkuYN:"N",siteCode:D};if("ca"===D||"ca_fr"===D)Q.regionCode=null!=n&&""!=n?n:"CA-ON";v&&(Q.shopSiteCode=q);var Y=(n="true"===d("#isEppPage").val())?"epp/v2":"b2c";n&&(Q.companyCode=d("#eppCompanyCode").val(),Q.shopSkuYN=
"N",l.sg.epp.common.isUserGroupPricing&&(Q.groupName=l.sg.epp.common.groupName),""!=l.sg.epp.common.userStoreId&&(Q.o2oId=l.sg.epp.common.userStoreId));d.ajax({url:J+"/"+U+("/"+Y+"/product/card/detail/")+w,type:"GET",data:Q,dataType:"json",cache:!0,timeout:1E4,success:function(N){200===N.response.statusCode&&null!=N.response.resultData&&null!=N.response.resultData.productList&&(N=N.response.resultData.productList,d.each(N,function(y,R){var V=R.modelList,ka=R.categorySubTypeEngName;null!=V&&d.each(V,
function(va,Aa){var sa=Aa.modelCode,ha=t[sa].stocklevel;t[sa]&&(Aa.displayName||(Aa.displayName=t[sa].name),Aa.thumbUrl||(Aa.thumbUrl=t[sa].imageUrl),Aa.thumbUrlAlt||(Aa.thumbUrlAlt=t[sa].imageUrlAlt),Aa.priceDisplay=t[sa].price,Aa.promotionPriceDisplay=t[sa].promotionPrice,Aa.price=t[sa].priceValue,Aa.promotionPrice=t[sa].promotionPriceValue,Aa.stocklevel=ha,Aa.isStock=!(""===ha||"OUTOFSTOCK"===ha.toUpperCase()),Aa.idx=String(y)+"-"+String(va),Aa.categorySubTypeEngName=ka)})}),C=N)},error:function(){},
complete:function(){ea(C)}})},setPriceInfo:function(ea){var e=ea.price,n=ea.promotionPrice,Q=Number((parseFloat(e)-parseFloat(n)).toFixed(2)),Y=currencyComma(Q,O),N=ea.priceDisplay||(e?currencyComma(e,O):"");ea=ea.promotionPriceDisplay||(n?currencyComma(n,O):"");return{promotionPrice:n,productPrice:e,savePriceTemp:Q,saveText:Y,productPriceDisplay:N,promotionPriceDisplay:ea}}}})(window,window.jQuery);
(function(l,d){function K(B,J){B.push({fmyChipType:J.fmyChipType,optionList:[{optionCode:J.fmyChipCode,optionLocalName:J.fmyChipLocalName,optionName:J.fmyChipName}]})}var D=d("#priceCurrency").val();d=d("#siteCode").val();var r="nl"===d||"be"===d||"be_fr"===d;l.sg.sdf.util.prepareNamespace("sg.components.dynamic").betterTogetherGPv2={setFamily:function(B){var J=[],U={},O;for(O in B){var w=B[O];null!=w.familyIndex&&(null==U[w.familyIndex]&&(U[w.familyIndex]=[]),U[w.familyIndex].push(w))}B=0;for(O in U){var t=
{};t.modelList=U[O];t.chipOptions=[];for(var C=0;C<U[O].length;C++){w=U[O][C];var v=w.ctaType;w.idx=String(B)+"-"+String(C);w.inventory&&w.inventory.status&&(v=w.inventory.status,w.ctaType=v);w.isStock=!(""===v||"NOORDER"===v.toUpperCase()||"OUTOFSTOCK"===v.toUpperCase());v=t.chipOptions;w=w.fmyChipList;for(var f=0;f<w.length;f++){var q=w[f];if(0<v.length){for(var k=!0,F=0;F<v.length;F++){var ea=v[F];if(ea.fmyChipType===q.fmyChipType){var e={optionCode:q.fmyChipCode,optionLocalName:q.fmyChipLocalName,
optionName:q.fmyChipName};k=!1;-1===JSON.stringify(ea.optionList).indexOf(JSON.stringify(e))&&ea.optionList.push(e)}}k&&K(v,q)}else K(v,q)}}B++;J.push(t)}return J},setPriceInfo:function(B){var J=0,U=0,O=0,w="",t="",C="";null!=B.price_info&&0<B.price_info.length&&B.price_info[0].msrp_price&&(U=B.price_info[0].msrp_price.value,J=B.price_info[0].sale_price.value,O=Number((parseFloat(U)-parseFloat(J)).toFixed(2)),w=currencyComma(O,D),t=B.price_info[0].msrp_price.formatted_value,C=B.price_info[0].sale_price.formatted_value,
null!=B.price_info[0].discount_description&&null!=B.price_info[0].discount_description.type&&"rebate,percentage".indexOf(B.price_info[0].discount_description.type.toLowerCase())&&null!=B.price_info[0].discount_description.formatted_value&&(w=B.price_info[0].discount_description.formatted_value),t=r||!t?currencyComma(U,D):t,C=r||!C?currencyComma(J,D):C);return{promotionPrice:J,productPrice:U,savePriceTemp:O,saveText:w,productPriceDisplay:t,promotionPriceDisplay:C}}}})(window,window.jQuery);
(function(l,d){function K(){var E=d("#voucherTotal"),b=d("#voucherBalance"),x=d("#voucherCharge"),P=currencyComma(0,k),H=d(".better-together__headline-text"),ca=d(".better-together__desciption");E.html(P);b.html(P);x.html(P);if(R)E=f.detailSharedObj.voucherdata,ca="",E.formatted_sales_pitch?ca=E.formatted_sales_pitch:E.sales_pitch&&(ca=E.sales_pitch),H.html(ca),b.html(E.discount_description[0].formatted_value),b.attr("data-price",E.discount_description[0].value),b.attr("data-oriPrice",E.discount_description[0].value);
else for(E=f.detailSharedObj.voucherdataHybris,x=0;x<E.length;x++){P=E[x].key;var h=E[x].value;h&&("voucherPrice"===P&&(b.html(currencyComma(h,k)),b.attr("data-price",h),b.attr("data-oriPrice",h)),"mainTitle"===P&&H.html(h),"subTitle"===P&&(ca.html(h),ca.show()))}d(".better-together").addClass("better-together__selected");d(".better-together__selected-info").show()}function D(){var E=d("#voucherTotal"),b=d("#voucherBalance"),x=d("#voucherCharge"),P=b.attr("data-oriPrice"),H=d(".better-together__selected-title .number span");
E.attr("data-price",0);b.attr("data-price",P);x.attr("data-price",0);E.html(currencyComma(0,k));b.html(currencyComma(P,k));x.html(currencyComma(0,k));H.html(0);E=d(".better-together .better-together__cta .cta--on");E.find("span").html(ha);E.removeClass("cta--on")}function r(E){var b=d("#voucherBalance"),x=Number(b.attr("data-oriPrice"))||0;b=Number(b.attr("data-price"))||0;if(0===b){var P="allVoucher";var H=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
E="voucher"+E}else b===x?(P="redeem",H=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(b,k)),E="skip"+E):0<b&&(P="voucher",H=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(b,k)),E="voucher"+E);confirmPopup(H,P,E)}function B(E){F=E;null==F||0===Object.keys(F).length?setInterval(function(){f.DetailAfterEvent.addToCartCta([],!0,!0)},1E3):(t(F),f.detailSharedObj.hasVoucher&&
K(),l.sg.components.betterTogether.show(document.querySelector(".better-together"),d(".better-together").siblings().add(d(".better-together").parent().siblings()),y),l.sg.components.betterTogether.reInit(),0===d(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&d(".better-together__cta-more").hide())}function J(E,b){for(var x=0;x<E.length;x++)if(E[x]===b)return!0;return!1}function U(E,b,x){var P="",H=d("#scene7domain").val();E&&(b=-1<E.indexOf("?")?"":"?"+b,-1<E.indexOf("https:")||
-1<E.indexOf("http:")||-1<E.indexOf("//stg-images.quick3d.org/")||-1<E.indexOf("//images.quick3d.org/")||-1<E.indexOf("image.quick3d.org/")||-1<E.indexOf("//stg-images.quick3d.org.cn/")||-1<E.indexOf("//images.quick3d.org.cn/")||-1<E.indexOf("image.quick3d.org.cn/")?P=E:(x&&(H=H.replace("/image/","/content/")),P=H+E),P+=b);return P}function O(E){var b="",x=E.modelList[E.frontModelIdx],P=x.isStock,H=N.setPriceInfo(x),ca=H.promotionPrice,h=H.savePriceTemp,I=H.saveText,u=H.productPriceDisplay,A=H.promotionPriceDisplay;
H=n?"evoucher":"add-on";var T="";x.thumbUrl&&(T='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+U(x.thumbUrl,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+U(x.thumbUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+x.thumbUrlAlt+'"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+U(x.thumbUrl,"$240_240_PNG$")+'" data-mobile-src\x3d"'+U(x.thumbUrl,"$480_480_PNG$")+'" alt\x3d"'+x.thumbUrlAlt+'"\x3e');b+='\x3cdiv class\x3d"better-together__item unbind-option" data-index\x3d"'+
x.idx+'" data-price\x3d"'+ca+'"\x3e\n\t\t\t\t\x3cdiv class\x3d"better-together__product-name"\x3e\x3cspan class\x3d"better-together__product-name-inner"\x3e'+x.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'+T+"\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";ca="";T=E.modelList[E.frontModelIdx];if(E.viewOptionObj&&
0<Object.keys(E.viewOptionObj).length){var fa="",X=0,G=E.viewOptionObj,z=E.optionTypeList;for(Ea in E.viewOptionObj){var M=Ea.toLowerCase().replace(/ /g,"-"),S=E.viewOptionObj[Ea].optionList,W="",ba=n?"evoucher":"add-on";E.viewOptionObj[Ea].styleAttr&&(W=E.viewOptionObj[Ea].styleAttr);if("COLOR"===Ea){var ia="",ta="",qa;for(qa in S){var za=S[qa];var na=!1;var a=za.modelIdx.split(",");if(null!=za.modelIdx&&J(a,String(E.frontModelIdx))){na=!0;ia=za.modelIdx;var c=""}else if(c=" is-disabled",0===X)c=
"";else{var m=fa.split(","),g;for(g in a)if(J(m,a[g])){c="";break}}m=a="";if(""===c){var p=za.modelIdx;var aa=[],L=!0,ma;for(ma in G)if(ma!==Ea){var ua=G[ma].optionList,ja;for(ja in ua){var xa=ua[ja];xa=xa.modelIdx;var Ia=xa.split(",");-1<Ia.indexOf(String(E.frontModelIdx))&&aa.push(xa)}}p=da(G,p,aa,L,z);E.modelList.length>p&&E.modelList[p]&&(a=E.modelList[p].modelCode,m=E.modelList[p].modelName)}aa="pdd10-"+M+"-"+qa+"-"+T.idx;L="pdd10-"+M+"-"+T.idx;ta+='\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"'+aa+'" name\x3d"'+L+'" data-modeli\x3d"'+p+'"'+(na?" checked":"")+(""===c?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+Y+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+ba+":"+Ea.toLowerCase()+":"+za.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"'+
aa+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+za.optionCode+'"\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"}fa=ia;M="";for(qa in S)za=S[qa],a=za.modelIdx.split(","),null!=za.modelIdx&&J(a,String(E.frontModelIdx))&&(M=za.optionLocalName);ca+='\x3cdiv class\x3d"option-selector__color-name"\x3e'+Granite.I18n.get("Color")+' : \x3cspan class\x3d"color-name-text"\x3e'+
M+'\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"'+W+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+ta+'\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-'+
Y+'-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-'+
Y+'-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"===Ea||
"TV SIZE"===Ea||"HOME APPLIANCE SIZE"===Ea){ta=ia="";for(var Ka=0;Ka<S.length;Ka++){za=S[Ka];na=!1;a=za.modelIdx.split(",");if(null!=za.modelIdx&&J(a,String(E.frontModelIdx)))na=!0,ia=za.modelIdx,c="";else if(c=" is-disabled",0===X)c="";else for(g in m=fa.split(","),a)if(J(m,a[g])){c="";break}m=a="";if(""===c){p=za.modelIdx;aa=[];L=!1;for(ma in G)if(ma!==Ea)for(ja in ua=G[ma].optionList,ua)xa=ua[ja],xa=xa.modelIdx,Ia=xa.split(","),-1<Ia.indexOf(String(E.frontModelIdx))&&aa.push(xa);p=da(G,p,aa,L,
z);E.modelList.length>p&&E.modelList[p]&&(a=E.modelList[p].modelCode,m=E.modelList[p].modelName)}aa="pdd10-"+M+"-"+Ka+"-"+T.idx;L="pdd10-"+M+"-"+T.idx;ta+='\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"'+aa+'" name\x3d"'+L+'" data-modeli\x3d"'+p+'"'+(na?" checked":"")+(""===c?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+Y+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+
ba+":"+Ea.toLowerCase()+":"+za.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"'+aa+'"\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"}fa=ia;ca+='\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"'+
W+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+ta+'\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-'+Y+'-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-'+Y+'-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'}X++}}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'+ca+'\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!=x.ficheFileUrl?'\x3ca href\x3d"'+x.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-'+Y+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+H+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t"+(null!=x.energyLabelGrade?'\x3ca class\x3d"badge '+x.energyLabelClass2+'" href\x3d"'+x.energyFileUrl+'" target\x3d"_blank" title\x3d"'+x.energyLabelGrade+
'"\x3e\n\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+x.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+x.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"!==q||P)b+='\x3cdiv class\x3d"better-together__price"\x3e'+A+'\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"better-together__price-sub"\x3e\n\t\t\t\t'+(0<h?'\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"+(Q||"de"===q?Granite.I18n.get("From")+" ":"")+"\x3cdel\x3e"+u+"\x3c/del\x3e\n\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t"+(Q?"":'\x3cspan class\x3d"better-together__price-save"\x3e'+Granite.I18n.get("Save {0}",I)+"\x3c/span\x3e"):"")+"\n\t\t\t\t\x3c/div\x3e";E=ea.includes(x.idx);u=Granite.I18n.get("Out Of Stock");h=Granite.I18n.get("Item added");var Ea=Granite.I18n.get("Add to cart");I=Granite.I18n.get("Add");u=P?E?h:n?I:Ea:u;return b+='\x3cdiv class\x3d"better-together__cta"\x3e\n\t\t\t\t\t\x3ca class\x3d"cta cta--contained cta--black'+
(!P||E&&!n?" cta--disabled":"")+(E&&n?" cta--on":"")+'" href\x3d"javascript:void(0)" title\x3d"'+u+'" \n\t\t\t\t\t\tan-tr\x3d"pdd10_product bought together-'+Y+"-"+(n?"button":"popup")+'-add" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+H+':add item" \n\t\t\t\t\t\tdata-modelcode\x3d"'+x.modelCode+'" data-modelname\x3d"'+x.modelName+'"\x3e\n\t\t\t\t\t\t'+(n?'\x3cspan data-global-text\x3d\'{"selected" : "'+h+'", "unSelected" : "'+I+"\"}'\x3e"+u+"\x3c/span\x3e":u)+"\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 w(E,b){null==E.modelList[b].displayName&&(E.modelList[b].displayName="");var x={};for(h in E.modelList){var P=E.modelList[h].fmyChipList,H;for(H in P){var ca=P[H].fmyChipType+"+"+P[H].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+P[H].fmyChipLocalName.replace('"',"").replace("\x26quot;","");x[ca]=void 0==x[ca]?h:x[ca]+(","+h)}}var h=[];P={};if(E.chipOptions)for(H=0;H<E.chipOptions.length;H++){var I=E.chipOptions[H],u=I.fmyChipType,A=I.optionList,T;for(T in A)ca=I.fmyChipType+"+"+
A[T].optionCode.replace('"',"").replace("\x26quot;","")+"+"+A[T].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=x[ca]&&(A[T].modelIdx=x[ca]);P[u]={};P[u].optionList=A;h.push(u)}E.viewOptionObj=P;E.optionTypeList=h;E.frontModelIdx=b;return E}function t(E){var b="";ea=[];e=[];n=l.sg.components.dynamic.detailSharedObj.hasVoucher;if(null!=E){b="";for(var x=0;x<E.length;x++){var P=E[x];if(null!=P.modelList&&0<P.modelList.length){for(var H=0,ca=null,h=0;h<P.modelList.length;h++){var I=
P.modelList[h],u=I.isStock;I.selected&&"Y"===I.selected&&(H=h,u&&(ca=h))}if(null==ca)for(h=0;h<P.modelList.length;h++)if(I=P.modelList[h],I.isStock){ca=h;break}null==ca&&(ca=H);P=w(P,ca);b+=O(P)}}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-'+Y+'-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'}d(".better-together .scrollbar__contents").html(b);C()}function C(){d(".better-together").off("click",".option-selector__color input, .option-selector__size input");d(".better-together").on("click",".option-selector__color input, .option-selector__size input",
function(){var E=(d(this).closest(".better-together__item").attr("data-index")||"").split("-")[0],b=d(this).data("modeli");setTimeout(function(){if(null!=b){F[E].frontModelIdx=b;var x=w(F[E],b),P=d(".better-together__item.unbind-option").eq(E),H=d(".better-together__item.unbind-option").index(P);P.find(".option-selector__swiper-wrapper").each(function(ca){ca=F[E].optionTypeList[ca];var h=d(this).attr("style");F[E].viewOptionObj[ca].styleAttr=h});P.replaceWith(O(x));P=d(document.querySelectorAll(".better-together__item.unbind-option")[H]);
P.addClass("is-item-visible");l.sg.components.betterTogether.reInitCard(P[0]);C()}},300)});d(".better-together").off("click",".better-together__cta .cta:not(.cta--disabled)");d(".better-together").on("click",".better-together__cta .cta:not(.cta--disabled)",function(){var E=d(this),b=Granite.I18n.get("Item added"),x=E.closest(".better-together__item").attr("data-index"),P=x.split("-");P=F[P[0]].modelList[P[1]];P=R?P.shopSKU:P.modelCode;n?(b=ea.indexOf(x),E=parseFloat(E.closest(".better-together__item").attr("data-price")),
-1<b?(v(E,!1),ea.splice(b,1),e.splice(b,1)):(v(E,!0),ea.push(x),e.push(P))):(E.text(b),E.addClass("cta--disabled"),ea.push(x),e.push(P),x=Granite.I18n.get("Product has been successfully added to cart"),"pl"!==q&&confirmPopup(x,"addToCart"));x=d("#primaryInfoGoCart");E=d("#primaryInfoCheckOut");b=d("#primaryInfoGoCart, #primaryInfoCheckOut");if(0<ea.length){for(var H=P="",ca="",h="",I="",u="",A="",T="",fa="",X="",G=0;G<ea.length;G++){var z=ea[G],M=z.split("-")[0];z=z.split("-")[1];M=F[M].modelList[z];
z=N.setPriceInfo(M);var S=z.productPrice,W="",ba="";0<G&&(W=",",ba=";");P+=W+M.modelCode;H+=W+M.modelName;ca+=ba+M.displayName;h+=W+S;I+=W+z.promotionPrice;u+=W+M.pviTypeName;A+=W+M.pviSubtypeName;T+=W+M.categorySubTypeEngName;fa+=W+S;X+=W+1}u=u.toLowerCase();A=A.toLowerCase();T=T.toLowerCase();n?(x.attr("an-tr","pdd10_product bought together-"+Y+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:go to cart"),E.attr("an-tr","pdd10_product bought together-"+
Y+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:checkout")):(x.attr("an-tr","pdd10_product bought together-"+Y+"-text-addedcart").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:go to cart"),E.attr("an-tr","pdd10_product bought together-"+Y+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:checkout"));b.attr("data-modelcode",P).attr("data-modelname",H).attr("data-modeldisplay",ca).attr("data-modelprice",
h).attr("data-discountprice",I).attr("data-pvitype",u).attr("data-pvisubtype",A).attr("data-pimsubtype",T).attr("data-modelrevenue",fa).attr("data-modelqty",X).attr("data-modelcurrency",k)}else n?(x.attr("an-tr","pdd10_product bought together-"+Y+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart"),E.attr("an-tr","pdd10_product bought together-"+Y+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout")):
(x.attr("an-tr","pdd10_product bought together-"+Y+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"),E.attr("an-tr","pdd10_product bought together-"+Y+"-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 v(E,b){var x=d("#voucherTotal"),P=d("#voucherBalance"),H=d("#voucherCharge"),ca=parseFloat(x.attr("data-price")||0),h=parseFloat(P.attr("data-oriprice")||0);ca=b?ca+E:Number((parseFloat(ca)-parseFloat(E)).toFixed(2));E=Number((parseFloat(h)-parseFloat(ca)).toFixed(2));0>E?(b=-E,E=0):b=0;x.attr("data-price",ca);P.attr("data-price",E);H.attr("data-price",b);x.html(currencyComma(ca,k));P.html(currencyComma(E,k));H.html(currencyComma(b,k))}var f=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),
q=d("#siteCode").val(),k=d("#priceCurrency").val(),F=[],ea=[],e=[],n=!1,Q="nl"===q||"be"===q||"be_fr"===q,Y=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),N={},y=null,R=!1,V=!1,ka=Granite.I18n.get("From"),va=Granite.I18n.get("or"),Aa=Granite.I18n.get("Monthly Price:"),sa=Granite.I18n.get("Full Price:"),ha=Granite.I18n.get("Add"),ra=Granite.I18n.get("Are you sure to remove this product?"),da=function(E,b,x,P,H){b=b.split(",");var ca=b[0];H=H.indexOf("MEMORY");if(!R&&!V&&P&&0<H){x=E.MEMORY.optionList;
var h=0,I=0,u;for(u in x){ca=x[u].modelIdx.split(",");for(var A in ca)if(J(b,ca[A])){E=x[u].optionCode.replace("TB","000").replace(/[^0-9]/g,"");I<E&&(I=E,h=ca[A]);break}}b=h}else{for(h in x)if(u=x[h]){A=u.split(",");u=[];for(I in b)-1<A.indexOf(String(b[I]))&&u.push(b[I]);0<u.length&&(b=u)}b=0<b.length?b[0]:ca}return b};d(document).on("click",".better-together__selected .better-together__selected-close",function(){0<d(".better-together .better-together__cta .cta--on").length&&confirmPopup(ra,"voucherDelete",
"voucherClearAll")});d(document).on("click","#voucherClearAll",function(){ea=[];e=[];D()});d(document).on("click","#primaryInfoGoCart",function(){f.detailSharedObj.hasVoucher?r("GoCart"):f.DetailAfterEvent.addToCartCta(e,!0,!0)});d(document).on("click","#primaryInfoCheckOut",function(){f.detailSharedObj.hasVoucher?r("CheckOut"):f.DetailAfterEvent.checkOutCta(e,!0,!0)});d(document).on("click","#voucherGoCart",function(){f.DetailAfterEvent.addToCartCta(e,!0,!0)});d(document).on("click","#voucherCheckOut",
function(){f.DetailAfterEvent.checkOutCta(e,!0,!0)});d(document).on("click","#skipGoCart",function(){f.DetailAfterEvent.addToCartCta([],!0,!0)});d(document).on("click","#skipCheckOut",function(){f.DetailAfterEvent.checkOutCta([],!0,!0)});d(document).on("click",".better-together__cta-more",function(){l.sg.components.betterTogether.more();0===d(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&d(this).hide()});f.bridgePage={moveBridgePage:function(E){var b=f.detailSharedObj;
y=E;E=f.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||"";var x=E.split(" "+va+" ");E=1<x.length?'\x3cdiv class\x3d"better-together__price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+Aa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__price-text"\x3e'+ka+"\x3c/span\x3e\n                    "+x[0].replace(ka,"")+'\n                \x3c/div\x3e\n                \x3cdiv class\x3d"better-together__full-price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+
sa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__full-price-text"\x3e'+va+"\x3c/span\x3e\n                    "+x[1]+"\n                \x3c/div\x3e":'\x3cdiv class\x3d"better-together__price"\x3e\n                    \x3cspan class\x3d"hidden"\x3e'+sa+'\x3c/span\x3e\n                    \x3cspan class\x3d"better-together__price-text"\x3e\x3c/span\x3e\n                    '+E+"\n                \x3c/div\x3e";d(".better-together .better-together__price-wrap").html(E);R="GPv2"===
b.apiFlag;V="Hybris-new"===b.apiFlag;R?(N=f.betterTogetherGPv2,B(N.setFamily(b.addOnInfoTemp))):V?(N=f.betterTogetherNewHybris,N.getSearchProductcard(B)):(N=f.betterTogetherHybris,N.getSearchProductcard(B),d("#primaryInfoCheckOut").remove());f.detailSharedObj.hasVoucher?(D(),d("#primaryInfoCheckOut").attr("an-tr","pdd10_product bought together-"+Y+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout"),d("#primaryInfoGoCart").attr("an-tr","pdd10_product bought together-"+
Y+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart"),d(".better-together__back-cta").attr("an-la","evoucher:back"),d(".better-together__item-box .better-together__fiche a.cta-text").attr("an-la","evoucher:product fiche")):(d("#primaryInfoCheckOut").attr("an-tr","pdd10_product bought together-"+Y+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout"),d("#primaryInfoGoCart").attr("an-tr","pdd10_product bought together-"+
Y+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"));d("#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,d){function K(){var Z=d("#voucherTotal"),Ba=d("#voucherBalance"),la=d("#voucherCharge"),wa=currencyComma(0,ka),Da=d(".pdd16-step-buying__headline"),ya=d(".pdd16-step-buying__sub-headline"),Ja=d(".pdd16-step-buying__disclaimer");y.useAddonV2&&(Z=d("#voucherTotal2"),Ba=d("#voucherBalance2"),la=d("#voucherCharge2"),Da=d(".pdd16-step-buying-v2__headline"),ya=d(".pdd16-step-buying-v2__sub-headline"),Ja=d(".pdd16-step-buying-v2__disclaimer"));Z.html(wa);Ba.html(wa);la.html(wa);if(Aa)Z=Y.detailSharedObj.voucherdata,
ya="",Z.formatted_sales_pitch?ya=Z.formatted_sales_pitch:Z.sales_pitch&&(ya=Z.sales_pitch),Da.html(ya),Ba.html(Z.discount_description[0].formatted_value),Ba.attr("data-price",Z.discount_description[0].value),Ba.attr("data-oriPrice",Z.discount_description[0].value);else for(Z=Y.detailSharedObj.voucherdataHybris,la=0;la<Z.length;la++){wa=Z[la].key;var La=Z[la].value;La&&("voucherprice"===wa.toLowerCase()&&(Ba.html(currencyComma(La,ka)),Ba.attr("data-price",La),Ba.attr("data-oriPrice",La)),"maintitle"===
wa.toLowerCase()&&Da.html(La),"subtitle"===wa.toLowerCase()&&(ya.html(La),ya.show()),"description"===wa.toLowerCase()&&(Ja.find("p").html(La),Ja.show()))}}function D(){var Z=d("#voucherTotal"),Ba=d("#voucherBalance"),la=d("#voucherCharge"),wa=d("#selectedItem");y.useAddonV2&&(Z=d("#voucherTotal2"),Ba=d("#voucherBalance2"),la=d("#voucherCharge2"),wa=d("#selectedItem2"));var Da=Ba.attr("data-oriPrice"),ya=d(".better-together__selected-title .number span");Z.attr("data-price",0);Ba.attr("data-price",
Da);la.attr("data-price",0);wa.html("");Z.html(currencyComma(0,ka));Ba.html(currencyComma(Da,ka));la.html(currencyComma(0,ka));ya.html(0);ba=W=0}function r(Z){var Ba=d("#voucherBalance");y.useAddonV2&&(Ba=d("#voucherBalance2"));var la=Number(Ba.attr("data-oriPrice"))||0;Ba=Number(Ba.attr("data-price"))||0;if(0===Ba){var wa="allVoucher";var Da=Granite.I18n.get("You redeeemed at your credits!\x3cbr\x3ePress 'continue' to proceed.\x3cbr/\x3eYou cannot change your selection once you press 'continue'.");
Z="voucher"+Z}else Ba===la?(wa="redeem",Da=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(Ba,ka)),Z="skip"+Z):0<Ba&&(wa="voucher",Da=Granite.I18n.get("You still have credit to redeem ({0})\x3cbr/\x3eYour credit will be gone once you press 'continue'.",currencyComma(Ba,ka)),Z="voucher"+Z);confirmPopup(Da,wa,Z);Z=d(".confirm-popup");la=Z.find(".confirm-popup__title");Da=Z.find(".cta--contained");Ba=Z.find(".cta--outlined");if("hk"===
R||"hk_en"===R)"redeem"===wa?(la.html(Granite.I18n.get("Are you sure? (redeem)")),Z.find(".cta--outlined.cta--black").attr("id","skipGoCartAddOn"),Da.html(Granite.I18n.get("Use Your Galaxy Credit")),Ba.html(Granite.I18n.get("Skip")),Z.find(".cta--contained.cta--emphasis").removeAttr("id")):"voucher"===wa&&(la.html(Granite.I18n.get("Are you sure? (voucher)")),Z.find(".cta--outlined.cta--black").attr("id","voucherGoCartAddOn"),Da.html(Granite.I18n.get("Use Your Galaxy Credit")),Ba.html(Granite.I18n.get("Skip")),
Z.find(".cta--contained.cta--emphasis").removeAttr("id"))}function B(Z){if(E&&y.vdcombodataHybris&&0<y.vdcombodataHybris.length){var Ba="";y.vdcombodataHybris.forEach(function(oa){"maintitle"===oa.key.toLowerCase()?Ba+=oa.value:"subtitle"===oa.key.toLowerCase()&&(Ba=Ba?Ba+("\x3cbr/\x3e"+oa.value):Ba+oa.value)});d(".pdd16-step-buying__promotion-banner .pdd16-step-buying__promotion-banner-text").html(Ba);d(".pdd16-step-buying__promotion-banner").show()}else d(".pdd16-step-buying__promotion-banner").remove();
if(y.hasGift&&y.giftdataHybris&&0<y.giftdataHybris.length){var la=d(".pdd16-step-buying .pdd16-step-buying__card-input");la&&(p={modelCode:[la.find("input:checked").attr("data-modelcode")]})}else l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();if(Aa){y.addOnCategoryList.forEach(function(oa,Ra){oa.category.productList.forEach(function(Wa,Qa){y.addOnSearchGPv2.forEach(function(Va,cb){Va.familyId===Wa.family_id&&(y.addOnInfoTemp.forEach(function(bb){Va.modelList.filter(function(Xa,
Ya){if(bb.model_code===Xa.modelCode){var ib=bb.price_info[0],Za=bb.inventory.status||"";Xa.displayName=bb.displayName||"";Xa.thumbUrlAlt=bb.imageUrlAlt||"";Xa.priceDisplay=ib.list_price.formatted_value||"";Xa.promotionPriceDisplay=ib.sale_price.formatted_value||"";Xa.price=ib.list_price.value||"";Xa.promotionPrice=ib.sale_price.value||"";Xa.stocklevel=Za;Xa.isStock=!(""===Za||"OUTOFSTOCK"===Za.toUpperCase());Xa.idx=String(Qa)+"-"+String(Ya)}})}),y.addOnCategoryList[Ra].category.productList[Qa]=Va,
y.addOnCategoryList[Ra].category.idx=String(Ra))})})});var wa=[];y.addOnCategoryList.forEach(function(oa){oa.category.idx&&wa.push(oa)});y.addOnCategoryList=wa;y.addOnCategoryList.forEach(function(oa,Ra){var Wa=[];oa.category.productList.reduce(function(Qa,Va){Qa.includes(Va.familyId)||(Qa.push(Va.familyId),Wa.push(Va));return Qa},[]);oa.category.productList=Wa});A=y.addOnCategoryList}else A=Z;if(null==A||0===Object.keys(A).length)setInterval(function(){n()},1E3);else{if(y.useAddonV2){d(".pd-buying-price .pd-buying-price__cta .cta").attr("id",
"primaryInfoGoCartAddOn");var Da={};Z=d("#primaryInfoGoCartAddOn")[0].attributes;d.each(Z,function(){Da[this.name]=this.value});d(".pd-buying-price .pd-buying-price__cta .cta").attr("id","");d(".pdd16-step-buying-v2__bottom-price__cta a").attr(Da);Z=Pa.find(".pdd16-step-buying-v2__bottom-price-inner");la=Pa.find(".pdd16-step-buying-v2__evoucher");var ya=y.drawObj.price.priceWrapper.info,Ja=d(".pdd16-step-buying__header-price-text")[0].innerText.split(" "+ma+" ");"sa"!=R&&"sa_en"!=R&&"levant"!=R&&
"levant_ar"!=R&&"jp"!=R||Ja.reverse();var La=Ja[0];Ja=1<Ja.length?Ja[1]:"";var Ma="";d(".pdd16-step-buying-v2__bottom-headline-text").text(y.displayName);d("#primaryInfoGoCartAddOn").text(Granite.I18n.get("Buy now"));La&&Z.find(".final-text strong").html(La);Ja&&Z.find(".monthly-text").html(ma+" "+Ja);"in"==R?(Ma=ya.savePrice,Z.find(".pdd16-step-buying-v2__bottom-price-tax").text(""+ya.orignalPriceAddText),Ma&&(Z.find(".sale-text").text(Ma),Z.find(".pdd16-step-buying-v2__bottom-price-tax").append('\x3cinput type\x3d"hidden" class\x3d"hiddenSavePrice" value\x3d"'+
ya.unformattedSavePrice+'"/\x3e'))):Z.find(".pdd16-step-buying-v2__bottom-price-save").remove();y.hasVoucher&&la.show();k(A)}else q(A);N.hide();l.scrollTo(0,0);Ca.show();if(Aa||sa){Z=d("[class*\x3d'feature-benefit']");for(la=0;la<Z.length;la++)Z[la].remove();Z=d("[class*\x3d'three-column-carousel']");for(la=0;la<Z.length;la++)Z[la].remove();d(".video-wrapper").remove();Z=d(".root.responsivegrid \x3e div");for(ya=0;ya<Z.length;ya++)la=Z[ya].classList,la.value.includes("aem-Grid--12")||Z[ya].remove();
0<d(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&d(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(ha)for(Z=d(".root.responsivegrid \x3e div"),ya=0;ya<Z.length;ya++)la=Z[ya].classList,la.value.includes("aem-Grid--default--12")||Z[ya].remove();Ca.siblings().add(Ca.parent().siblings()).hide();setTimeout(function(){y.useAddonV2?l.sg.components.stepbuyingV2.init():l.sg.components.stepbuying.init()},50);0===d(".scrollbar__contents .pdd16-step-buying__card").not(".is-item-visible").length&&
d(".pdd16-step-buying__cta-more").hide();Y.detailSharedObj.hasVoucher?(K(),_satellite.setVar("Add Page Name","evoucher")):_satellite.setVar("Add Page Name","add on");_satellite.track("page view");Fa.get("useStaticTitle")&&(d(".pdd16-step-buying__headline")[0].innerHTML=Fa.get("staticTitle"));Fa.get("useStaticSubTitle")&&d(".pdd16-step-buying__sub-headline").text(Fa.get("staticSubTitle"))}}function J(Z,Ba){for(var la=0;la<Z.length;la++)if(Z[la]===Ba)return!0;return!1}function U(Z,Ba,la){var wa="",
Da=d("#scene7domain").val();Z&&(-1<Z.indexOf("?")&&(Z=Z.replace("medias",""),Z=Z.substring(0,Z.indexOf("?")),Z+="?"+Ba),-1<Z.indexOf("https:")||-1<Z.indexOf("http:")||-1<Z.indexOf("//stg-images.quick3d.org/")||-1<Z.indexOf("//images.quick3d.org/")||-1<Z.indexOf("image.quick3d.org/")||-1<Z.indexOf("//stg-images.quick3d.org.cn/")||-1<Z.indexOf("//images.quick3d.org.cn/")||-1<Z.indexOf("image.quick3d.org.cn/")?wa=Z:(la&&(Da=Da.replace("/image/","/content/")),wa=Da+Z));return wa}function O(Z,Ba,la){Ba=
"";var wa=d("#scene7domain").val();Z&&(-1<Z.indexOf("?")&&(Z=Z.replace("medias",""),Z=Z.substring(2,Z.indexOf("?")),Z=Z.substring(0,Z.lastIndexOf("-"))),-1<Z.indexOf("https:")||-1<Z.indexOf("http:")||-1<Z.indexOf("//stg-images.quick3d.org/")||-1<Z.indexOf("//images.quick3d.org/")||-1<Z.indexOf("image.quick3d.org/")||-1<Z.indexOf("//stg-images.quick3d.org.cn/")||-1<Z.indexOf("//images.quick3d.org.cn/")||-1<Z.indexOf("image.quick3d.org.cn/")?Ba=Z:(la&&(wa=wa.replace("/image/","/content/")),Ba=wa+Z));
return Ba}function w(){T=[];fa=[];X=[];I={}}function t(Z){var Ba="",la="",wa=na[Z].priceValue,Da=na[Z].promotionPriceValue?na[Z].promotionPriceValue:wa,ya=Da?wa-Da:0,Ja=na[Z].promotionPrice?na[Z].promotionPrice:na[Z].price;var La='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\''+U(na[Z].imageUrl,"$LazyLoad_Home_PNG$")+"' data-mobile-src\x3d\""+U(na[Z].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\''+
U(na[Z].imageUrl)+"' data-mobile-src\x3d\""+U(na[Z].imageUrl)+'" alt\x3d""  role\x3d"img"\x3e';la+='\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'+na[Z].name+'\x3c/strong\x3e \n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+na[Z].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 '+La+" \x3c/div\x3e ";if(La=
"outofstock"!==(na[Z].stocklevel?na[Z].stocklevel.toLowerCase():"outofstock")?!0:!1)if(y.addonBundleRelatedData&&0!=y.addonBundleRelatedData.length)for(var Ma=$jscomp.makeIterator(y.addonBundleRelatedData),oa=Ma.next();!oa.done;oa=Ma.next()){if(oa=oa.value,oa.bundleModelCode===na[Z].modelCode){var Ra=[];for(Qa in oa)"bundleModelCode"!==Qa&&oa[Qa]&&(Ra[oa[Qa].groupCode]||(Ra[oa[Qa].groupCode]=[]),"outOfStock"!==oa[Qa].stocklevel&&oa[Qa].colorCode&&Ra[oa[Qa].groupCode].push(oa[Qa]));for(var Wa in Ra)La&&
0==Ra[Wa].length&&(La=!1)}}else La=!1;var Qa=La?ja:Ga;la+='\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'+
Ja+'\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: '+wa+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+Da+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+(ya&&!Oa?"\x3cdel\x3e"+na[Z].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"==R&&frontModel.isComingSoon&&1==frontModel.isComingSoon?la+='\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"'+
na[Z].modelcode+'" data-originPrice\x3d'+wa+" data-savePrice\x3d"+ya+" data-promotionPrice\x3d"+Da+' 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"'+ja+'" data-text-selected\x3d"'+Sa+'"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cspan\x3e'+Qa+'\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"!=R||La||(Ba=' data-gs-flag\x3d"GetStock"'),la+='\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--icon cta--icon-leading bundleSelect cta--bundle '+(La?"cta--black":"js-cta-stock cta--outlined")+'" '+Ba+' title\x3d"SELECT" id\x3d"bundleSelect" data-modelcode\x3d"'+na[Z].modelcode+'" data-originPrice\x3d'+wa+" data-savePrice\x3d"+ya+" data-promotionPrice\x3d"+Da+' 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"'+
ja+'" data-text-selected\x3d"'+Sa+'"\x3e \n\t\t\t\t\t\t\t\t\t\t\x3cspan\x3e'+Qa+'\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 la}function C(Z,Ba,la){var wa="",Da=E?Z.thirdPASeller:"",ya=Z.modelList[Z.frontModelIdx],Ja=ya.fmyChipList,La="";if(Ja&&0<Ja.length)for(var Ma=
0;Ma<Ja.length;Ma++)if("COLOR"==Ja[Ma].fmyChipType){La=""!==ya.fmyChipList[Ma].fmyChipLocalName?ya.fmyChipList[Ma].fmyChipLocalName:ya.fmyChipList[Ma].fmyChipName;break}Ja=ya.isStock;var oa=u.setPriceInfo(ya);Ma=oa.promotionPrice;var Ra="";z=Ba;var Wa=ya.thumbUrl?ya.thumbUrl:"",Qa=ya.thumbUrlAlt?ya.thumbUrlAlt:"";Wa&&(Ra='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+O(Wa,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+O(Wa,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+Qa+
'" role\x3d"img" data-img-src\x3d"'+Wa+'"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+O(Wa,"$240_240_PNG$")+'" data-mobile-src\x3d"'+O(Wa,"$480_480_PNG$")+'" alt\x3d"'+Qa+'" role\x3d"img"\x3e');Qa=Wa="";if(ya.commercialFlag)Wa=ya.commercialFlag,Qa="badge-icon--bg-color-teal";else if(ya.topFlags&&ya.topFlags.iconTitle&&ya.topFlags.iconTypeCd)switch(Wa=ya.topFlags.iconTypeCd,Wa.replace(/ /g,"").toUpperCase()){case "N":Wa=Granite.I18n.get("new");Qa="badge-icon--bg-color-blue";
break;case "H":Wa=Granite.I18n.get("hot");Qa="badge-icon--bg-color-red";break;case "B":Wa=Granite.I18n.get("best seller");Qa="badge-icon--bg-color-orange";break;case "U":Wa=ya.topFlags.iconTitle,Qa="badge-icon--bg-color-teal"}wa=wa+('\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'+
(Qa?'\x3cspan class\x3d"badge-icon badge-icon--label '+Qa+'"\x3e'+Wa+"\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')+(ya.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+ya.displayName+'\x3c/div\x3e\n            \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+Ra+"\n\t\t\t\x3c/div\x3e\n\t\t\t\t");Ra=Aa?": "+La:"\x26nbsp;"+La;wa+='\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'+
(Da?'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'+(La?'\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'+Ra+"\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t"+Ua(Z,!1,Ba,la)+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";
la=ya.energyLabelGrade&&ya.energyFileUrl;wa+='\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'+(ya.energyLabelGrade&&ya.ficheFileUrl?'\x3ca href\x3d"'+ya.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+Granite.I18n.get("Open in a new window")+'" class\x3d"cta-text" an-tr\x3d"pdd16_step buying-'+va+'-product fiche-option_click1" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+Z.categoryDisplayName+':product fiche"\x3e'+
Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(la?'\x3ca class\x3d"badge '+ya.energyLabelClass2+'" href\x3d"'+ya.energyFileUrl+'" target\x3d"_blank" title\x3d"'+ya.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+ya.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+ya.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";la=null!==oa.promotionPrice&&
""!==oa.promotionPrice&&"0"!==oa.promotionPrice&&Number(parseFloat(oa.productPrice).toFixed(2))!==Number(parseFloat(oa.promotionPrice).toFixed(2))?!0:!1;H&&(la=!1);Da="";h&&ya.monthlyPriceInfo&&ya.monthlyPriceInfo.leasingMonthly&&ya.monthlyPriceInfo.leasingMonths&&(Da=currencyComma(ya.monthlyPriceInfo.leasingMonthly,ka),La=ya.monthlyPriceInfo.leasingMonths,Da='\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",[Da])+" "+Granite.I18n.get("for {0} mos",[La]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==R||Ja?"co"===R&&oa.vatPrice?wa+='\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: '+oa.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+oa.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+
oa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+oa.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":la?h?oa.lowestWasPrice?((la=Math.round((parseFloat(oa.productPrice)-parseFloat(oa.lowestWasPrice))/parseFloat(oa.lowestWasPrice)*100))&&0<la&&(la="+"+la),wa+='\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'+
oa.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(oa.lowestWasPrice,ka)+" ("+la+'%)\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'+oa.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}",oa.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"+Da+"\n\t\t\t\t\t\t\t\t \x3c/div\x3e"):wa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+oa.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: '+oa.productPriceDisplay+
'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+oa.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+oa.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==R?(la="MRP: "+oa.productPriceDisplay+" (Incl. of all taxes)",Da=oa.saveText?'\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",oa.saveText)+"\x3c/span\x3e":"",wa+='\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'+
oa.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'+la+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+Da+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t              \x3c/div\x3e"):wa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+oa.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: '+oa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+oa.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!V&&"tr"!==R||V&&"pl"!==R?"\x3cdel\x3e"+oa.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":ca&&oa.lowestWasPrice?(oa.savePriceTemp=0,0<oa.lowestWasPrice&&
("au"===R?oa.lowestWasPrice<oa.productPrice&&oa.lowestWasPrice>oa.promotionPrice&&(oa.productPrice=oa.lowestWasPrice,oa.savePriceTemp=oa.productPrice-oa.promotionPrice):oa.promotionPrice?(oa.lowestWasPrice<=oa.productPrice&&oa.lowestWasPrice>oa.promotionPrice&&(oa.productPrice=oa.lowestWasPrice),oa.savePriceTemp=oa.productPrice-oa.promotionPrice):oa.lowestWasPrice<=oa.productPrice&&(oa.productPrice=oa.lowestWasPrice)),oa.productPriceDisplay=currencyComma(oa.productPrice,ka),oa.saveText=0<oa.savePriceTemp?
currencyComma(oa.savePriceTemp,ka):"",wa=oa.saveText?wa+('\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'+oa.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"+oa.productPriceDisplay+"\x3c/del\x3e":""+oa.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}",oa.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"):wa+('\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'+(oa.promotionPrice&&oa.promotionPrice<=oa.productPrice?oa.promotionPriceDisplay:oa.productPriceDisplay)+
"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e")):"in"==R?wa+='\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'+oa.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: '+(oa.productPriceDisplay+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t              \x3c/div\x3e"):
"au"===R?(oa.savePriceTemp=0,oa.productPrice>oa.promotionPrice&&(oa.savePriceTemp=oa.productPrice-oa.promotionPrice),oa.productPriceDisplay=currencyComma(oa.productPrice,ka),oa.saveText=0<oa.savePriceTemp?currencyComma(oa.savePriceTemp,ka):"",wa=oa.saveText?wa+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+oa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-suggested '+
(P?"":"pdd16-step-buying--no-line-through")+'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+(P?"\x3cdel\x3e"+oa.productPriceDisplay+"\x3c/del\x3e":""+oa.productPriceDisplay)+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__card-price-save"\x3e'+Granite.I18n.get("Save {0}",oa.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e"):wa+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+
(oa.promotionPrice&&oa.promotionPrice<=oa.productPrice?oa.promotionPriceDisplay:oa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e")):wa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+(oa.promotionPrice&&oa.promotionPrice<=oa.productPrice?oa.promotionPriceDisplay:oa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e":wa+='\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\x3c/div\x3e';Da=T.includes(Ba+
"-"+ya.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Wa=Granite.I18n.get("COMING SOON");La=!1;Ra="";if("cn"==R&&ya.isComingSoon&&1==ya.isComingSoon)la=Granite.I18n.get("Coming Soon Title"),Ra=' data-gs-flag\x3d"ComingSoon"';else if(Ja?la=Da?Sa:ja:(la=Granite.I18n.get("Get Stock Alert"),"cn"==R&&(Ra=' data-gs-flag\x3d"GetStock"')),null==Ja||void 0==Ja||null==oa||void 0==oa)la=Wa,La=!0;Wa=null!==oa.promotionPrice&&""!==oa.promotionPrice&&"0"!==oa.promotionPrice?oa.promotionPrice:oa.productPrice;
Qa=oa.productPrice;oa=oa.savePriceTemp;var Va=Aa?ya.shopSKU:ya.modelCode;wa+='\x3cdiv class\x3d"pdd16-step-buying__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(La?"cta--disabled":"")+" cta cta--contained cta--icon cta--icon-leading  cta--2line-mo "+(Ja?"cta--black":"js-cta-stock cta--outlined")+"  "+(Da?" cta--on":"")+'" '+Ra+' title\x3d"'+la+'" aria-selected\x3d""  \n\t\t\t\t\t\tan-tr\x3d"pdd16_step buying-'+va+"-"+(Ja?"add item-option_click":"stock alert-buy_cta2")+'" an-ca\x3d"'+(Ja?"option click":
"buy cta")+'" an-ac\x3d"'+(Ja?"bridge":"stock alert")+'" an-la\x3d"'+(Ja?"add-on:"+Z.categoryDisplayName+":add item":"add-on:get stock alert")+'"  \n\t\t\t\t\t\tdata-modelcode\x3d"'+Va+'" data-modelname\x3d"'+ya.modelName+'" data-shopsku\x3d"'+ya.shopSKU+'" data-price\x3d'+Wa+" data-text\x3d"+ja+' data-text-selected\x3d"'+Sa+'" data-oriprice\x3d"'+Qa+'" data-savePrice\x3d"'+oa+'"\x3e\n\t\t\t\t\t\t\t\x3cspan\x3e'+la+'\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'+
(E?'\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-'+va+'-learn more-option_click" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+Z.categoryDisplayName+':learn more" data-modelcode\x3d"'+Va+'" data-modelname\x3d"'+ya.modelName+'"\x3e\n\t\t\t\t\t\t\t\t'+Granite.I18n.get("Learn more")+"\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\x3c/div\x3e";
return'\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+Ba+"-"+ya.idx+'" data-price\x3d"'+Ma+'"\x3e\n\t\t\t\t\t\t\t\t\t'+wa+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e"}function v(Z,Ba,la){var wa="";wa="";var Da=E?Z.thirdPASeller:"",ya=Z.modelList[Z.frontModelIdx],Ja=ya.fmyChipList,La="";if(Ja&&0<Ja.length)for(var Ma=0;Ma<Ja.length;Ma++)if("COLOR"==Ja[Ma].fmyChipType){La=""!==ya.fmyChipList[Ma].fmyChipLocalName?ya.fmyChipList[Ma].fmyChipLocalName:ya.fmyChipList[Ma].fmyChipName;break}Ja=ya.isStock;
var oa=u.setPriceInfo(ya);Ma=oa.promotionPrice;var Ra=G?"evoucher":"add-on",Wa="";z=Ba;var Qa=ya.thumbUrl?ya.thumbUrl:"",Va=ya.thumbUrlAlt?ya.thumbUrlAlt:"";Qa&&(Wa='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+O(Qa,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+O(Qa,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+Va+'" role\x3d"img" data-img-src\x3d"'+Qa+'"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+O(Qa,"$240_240_PNG$")+
'" data-mobile-src\x3d"'+O(Qa,"$480_480_PNG$")+'" alt\x3d"'+Va+'" role\x3d"img"\x3e');Va=Qa="";if(ya.commercialFlag)Qa=ya.commercialFlag,Va="badge-icon--bg-color-teal";else if(ya.topFlags&&ya.topFlags.iconTitle&&ya.topFlags.iconTypeCd)switch(Qa=ya.topFlags.iconTypeCd,Qa.replace(/ /g,"").toUpperCase()){case "N":Qa=Granite.I18n.get("new");Va="badge-icon--bg-color-blue";break;case "H":Qa=Granite.I18n.get("hot");Va="badge-icon--bg-color-red";break;case "B":Qa=Granite.I18n.get("best seller");Va="badge-icon--bg-color-orange";
break;case "U":Qa=ya.topFlags.iconTitle,Va="badge-icon--bg-color-teal"}wa=wa+('\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'+
(Va?'\x3cspan class\x3d"badge-icon badge-icon--label '+Va+'"\x3e'+Qa+"\x3c/span\x3e":"")+'\n\t\t\t\t\x3c/div\x3e\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t')+(Wa+'\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'+ya.displayName+'\x3c/strong\x3e\n\t            \x3c/div\x3e\n\t            \x3cdiv class\x3d"pdd16-step-buying-v2__card-desc" data-card-desc-expanded\x3d"false" data-js-action\x3d"cardDescViewMoreContainer"\x3e\n\t\t            '+
(ya.uspText?'\x3cul class\x3d"pdd16-step-buying-v2__card-desc-list" data-js-action\x3d"cardDescViewMoreText" role\x3d"list"\x3e\n\t\t\t\t        \t'+ya.uspText.map(function(bb){return'\x3cli class\x3d"pdd16-step-buying-v2__card-desc-item" role\x3d"listitem"\x3e'+bb+"\x3c/li\x3e"}).join("")+'\n\t\t\t\t\t\t\x3c/ul\x3e\n\t\t\t            \x3cbutton class\x3d"cta cta--icon pdd16-step-buying-v2__view-more" type\x3d"button" data-js-action\x3d"cardDescViewMoreButton" data-text-open\x3d"'+Granite.I18n.get("View more")+
'" data-text-close\x3d"'+Granite.I18n.get("View less")+'" aria-expanded\x3d"false"\x3e\n\t\t\t\t            \x3cspan class\x3d"pdd16-step-buying-v2__view-more-text" data-js-action\x3d"cardDescViewMoreButtonText"\x3e'+Granite.I18n.get("View more")+'\x3c/span\x3e\n\t\t\t\t            \x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t            \t\x3cuse xlink:href\x3d"#open-down-regular" href\x3d"#open-down-regular"\x3e\x3c/use\x3e\n\t\t\t\t            \x3c/svg\x3e\n\t\t\t            \x3c/button\x3e':
"")+"\n\t            \x3c/div\x3e");Wa=Aa?": "+La:"\x26nbsp;"+La;wa+='\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'+(Da?'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 '+(La?
"option-selector__color-text":"")+'"\x3e\n\t\t\t\t\t\t'+(La?'\x3cdiv class\x3d"option-selector__color-name"\x3e\n\t\t\t\t\t\t\t\t\t'+Granite.I18n.get("Color")+' \n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"color-name-text"\x3e'+Wa+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t\t"+Ua(Z,!1,Ba,la)+"\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e";Z=ya.energyLabelGrade&&ya.energyFileUrl;wa+='\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'+
(ya.energyLabelGrade&&ya.ficheFileUrl?'\x3ca href\x3d"'+ya.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-'+va+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+Ra+':product fiche"\x3e'+Granite.I18n.get("Product Fiche")+"\x3c/a\x3e":"")+"\n\t\t\t\t\t"+(Z?'\x3ca class\x3d"badge '+ya.energyLabelClass2+'" href\x3d"'+ya.energyFileUrl+'" target\x3d"_blank" title\x3d"'+ya.energyLabelGrade+
'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+ya.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+ya.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";Z=null!==oa.promotionPrice&&""!==oa.promotionPrice&&"0"!==oa.promotionPrice&&Number(parseFloat(oa.productPrice).toFixed(2))!==Number(parseFloat(oa.promotionPrice).toFixed(2))?!0:!1;H&&(Z=!1);la="";h&&ya.monthlyPriceInfo&&ya.monthlyPriceInfo.leasingMonthly&&
ya.monthlyPriceInfo.leasingMonths&&(la=currencyComma(ya.monthlyPriceInfo.leasingMonthly,ka),Da=ya.monthlyPriceInfo.leasingMonths,la='\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",[la])+" "+Granite.I18n.get("for {0} mos",[Da]))+"\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e");"pl"!==R||Ja?"co"===R&&oa.vatPrice?wa+='\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: '+
oa.vatPrice+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" value\x3d"'+oa.vatPriceValue+'"\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"card-price-special"\x3ePrecio con descuento: '+oa.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"card-price-rrp"\x3ePrecio antes: \x3cdel\x3e'+oa.productPriceDisplay+"\x3c/del\x3e\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e":Z?h?oa.lowestWasPrice?((Z=Math.round((parseFloat(oa.productPrice)-parseFloat(oa.lowestWasPrice))/parseFloat(oa.lowestWasPrice)*
100))&&0<Z&&(Z="+"+Z),wa+='\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'+oa.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(oa.lowestWasPrice,ka)+" ("+Z+'%)\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'+
oa.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}",oa.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"+la+"\n\t\t\t\t\t\t\t\t \x3c/div\x3e"):wa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+oa.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: '+oa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+oa.promotionPrice+'"\x3e\n\t\t\t\t\t                  \x3cdel\x3e'+oa.productPriceDisplay+"\x3c/del\x3e\n\t\t\t\t\t                \x3c/span\x3e\n\t\t\t\t\t              \x3c/div\x3e":"in"==R?(Z="MRP: "+oa.productPriceDisplay+" (Incl. of all taxes)",la=oa.saveText?
'\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+Granite.I18n.get("Save {0}",oa.saveText)+"\x3c/span\x3e":"",wa+='\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'+oa.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'+
Z+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+la+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t              \x3c/div\x3e"):wa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t                \x3cstrong class\x3d"card-price"\x3e'+oa.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: '+oa.productPriceDisplay+'\x3c/span\x3e\n\t\t\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+
oa.promotionPrice+'"\x3e\n\t\t\t\t                  '+(!V&&"tr"!==R||V&&"pl"!==R?"\x3cdel\x3e"+oa.productPriceDisplay+"\x3c/del\x3e":"")+"\n\t\t\t\t                \x3c/span\x3e\n\t\t\t\t              \x3c/div\x3e":ca&&oa.lowestWasPrice?(oa.savePriceTemp=0,0<oa.lowestWasPrice&&("au"===R?oa.lowestWasPrice<oa.productPrice&&oa.lowestWasPrice>oa.promotionPrice&&(oa.productPrice=oa.lowestWasPrice,oa.savePriceTemp=oa.productPrice-oa.promotionPrice):oa.promotionPrice?(oa.lowestWasPrice<=oa.productPrice&&
oa.lowestWasPrice>oa.promotionPrice&&(oa.productPrice=oa.lowestWasPrice),oa.savePriceTemp=oa.productPrice-oa.promotionPrice):oa.lowestWasPrice<=oa.productPrice&&(oa.productPrice=oa.lowestWasPrice)),oa.productPriceDisplay=currencyComma(oa.productPrice,ka),oa.saveText=0<oa.savePriceTemp?currencyComma(oa.savePriceTemp,ka):"",wa=oa.saveText?wa+('\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'+
oa.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"+oa.productPriceDisplay+"\x3c/del\x3e":""+oa.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}",
oa.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"):wa+('\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'+(oa.promotionPrice&&oa.promotionPrice<=oa.productPrice?oa.promotionPriceDisplay:oa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e")):"in"==R?wa+='\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'+
oa.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: '+(oa.productPriceDisplay+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t              \x3c/div\x3e"):"au"===R?(oa.savePriceTemp=0,oa.productPrice>oa.promotionPrice&&(oa.savePriceTemp=oa.productPrice-oa.promotionPrice),oa.productPriceDisplay=currencyComma(oa.productPrice,
ka),oa.saveText=0<oa.savePriceTemp?currencyComma(oa.savePriceTemp,ka):"",wa=oa.saveText?wa+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-current"\x3e\x3cspan class\x3d"hidden"\x3eCurrent Price: \x3c/span\x3e'+oa.promotionPriceDisplay+'\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-price-next"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-suggested '+
(P?"":"pdd16-step-buying-v2--no-line-through")+'"\x3e\x3cspan class\x3d"hidden"\x3eOriginal Price: \x3c/span\x3e'+(P?"\x3cdel\x3e"+oa.productPriceDisplay+"\x3c/del\x3e":""+oa.productPriceDisplay)+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__card-price-save"\x3e'+Granite.I18n.get("Save {0}",oa.saveText)+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e"):wa+('\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"card-price"\x3e'+
(oa.promotionPrice&&oa.promotionPrice<=oa.productPrice?oa.promotionPriceDisplay:oa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e")):wa+='\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'+(oa.promotionPrice&&oa.promotionPrice<=oa.productPrice?oa.promotionPriceDisplay:oa.productPriceDisplay)+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e":wa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-price"\x3e\x3c/div\x3e';la=T.includes(Ba+
"-"+ya.idx);Granite.I18n.get("Add to cart");Granite.I18n.get("Select");Wa=Granite.I18n.get("COMING SOON");Da=!1;La="";if("cn"==R&&ya.isComingSoon&&1==ya.isComingSoon)Z=Granite.I18n.get("Coming Soon Title"),La=' data-gs-flag\x3d"ComingSoon"';else if(Ja?Z=la?Sa:ja:(Z=Granite.I18n.get("Get Stock Alert"),"cn"==R&&(La=' data-gs-flag\x3d"GetStock"')),null==Ja||void 0==Ja||null==oa||void 0==oa)Z=Wa,Da=!0;Wa="";Wa=null!==oa.promotionPrice&&""!==oa.promotionPrice&&"0"!==oa.promotionPrice?oa.promotionPrice:
oa.productPrice;Qa=oa.productPrice;oa=oa.savePriceTemp;Va=E?"pdd16_step buying-"+va+"-cta-button":"pdd16_product bought together-"+va+"-popup-add";var cb="";cb=Aa?ya.shopSKU:"in"!==R?ya.modelCode:ya.shopSKU;wa+='\x3cdiv class\x3d"pdd16-step-buying-v2__card-cta"\x3e\n\t\t\t\t\t\x3cbutton class\x3d " '+(Da?"cta--disabled":"")+" cta cta--black "+(Ja?"cta--contained":"js-cta-stock cta--outlined")+"  "+(la?" cta--on":"")+'" '+La+' title\x3d"'+Z+'" aria-selected\x3d""  \n\t\t\t\t\t\tan-tr\x3d"'+Va+'" an-ca\x3d"'+
(Ja?"option click":"buy cta")+'" an-ac\x3d"'+(Ja?"bridge":"stock alert")+'" an-la\x3d"'+(E?"vd add-on":Ra)+":"+(Ja?"add item":"get stock alert")+'" \n\t\t\t\t\t\tdata-modelcode\x3d"'+cb+'" '+(ya.childModelCode?'data-childmodelcode\x3d"'+ya.childModelCode+'"':"")+' data-modelname\x3d"'+ya.modelName+'" data-shopsku\x3d"'+ya.shopSKU+'" data-price\x3d'+Wa+" data-text\x3d"+ja+' data-text-selected\x3d"'+Sa+'" data-oriprice\x3d"'+Qa+'" data-savePrice\x3d"'+oa+'"\x3e\n\t\t\t\t\t\t\t\x3cspan\x3e'+Z+"\x3c/span\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e";
return wa='\x3cdiv class\x3d"pdd16-step-buying-v2__card swiper-slide '+(la?"is-selected":"")+'" role\x3d"listitem"\x3e\n\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying-v2__card-inner" data-index\x3d"'+Ba+"-"+ya.idx+'" data-price\x3d"'+Ma+'"\x3e\n\t\t\t\t\t'+wa+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e"}function f(Z,Ba){null==Z.modelList[Ba].displayName&&(Z.modelList[Ba].displayName="");var la={};for(Ja in Z.modelList){var wa=Z.modelList[Ja].fmyChipList,Da;for(Da in wa){var ya=wa[Da].fmyChipType+"+"+
wa[Da].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+wa[Da].fmyChipLocalName.replace('"',"").replace("\x26quot;","");la[ya]=void 0==la[ya]?Ja:la[ya]+(","+Ja)}}var Ja=[];wa={};if(Z.chipOptions)for(Da=0;Da<Z.chipOptions.length;Da++){var La=Z.chipOptions[Da],Ma=La.fmyChipType,oa=La.optionList,Ra;for(Ra in oa)ya=La.fmyChipType+"+"+oa[Ra].optionCode.replace('"',"").replace("\x26quot;","")+"+"+oa[Ra].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=la[ya]&&(oa[Ra].modelIdx=la[ya]);
wa[Ma]={};wa[Ma].optionList=oa;Ja.push(Ma)}Z.viewOptionObj=wa;Z.optionTypeList=Ja;Z.frontModelIdx=Ba;return Z}function q(Z){var Ba="",la="";y.hasBundle&&(la=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());w();G=l.sg.components.dynamic.detailSharedObj.hasVoucher;ia=d(".pdd16-step-buying__header-price-text")[0].innerHTML;qa=Object.keys(Z).length;if(0<Object.keys(Z).length){var wa="";d.each(Z,function(Ja,La){La=Z[Ja].category.productList;for(var Ma=Z[Ja].category.display_name,oa=g=
0;oa<La.length;oa++){var Ra=La[oa];if(null!=Ra.modelList&&0<Ra.modelList.length){for(var Wa=0,Qa=null,Va=0;Va<Ra.modelList.length;Va++){var cb=Ra.modelList[Va],bb=cb.isStock;cb.selected&&"Y"===cb.selected&&(Wa=Va,bb&&(Qa=Va))}if(null==Qa)for(Va=0;Va<Ra.modelList.length;Va++)if(cb=Ra.modelList[Va],cb.isStock){Qa=Va;break}null==Qa&&(Qa=Wa);Ra.categoryDisplayName=Ma.toLowerCase();Ra=f(Ra,Qa);wa+=C(Ra,Ja)}g++}if(Z[Ja].category.display_name==la){La=Z[Ja];na=La.category.productList;for(var Xa in Z[Ja].category.productList)Ma=
Z[Ja].category.productList[Xa],wa+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+La.category.key+"-"+Xa+'-0" data-price\x3d"'+(Ma.promotionPriceValue?Ma.promotionPriceValue:Ma.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+t(Xa)+"\n\t\t\t\t\t\t\t\x3c/div\x3e"}Ba+='  \x3cdiv class\x3d"pdd16-step-buying__tab pdd16-step-buying__2column swiper-slide" data-button-text\x3d"'+(Number(Ja)+1==qa?Ia:Ka)+'"\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'+
wa+'\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"'+aa+'"\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'+aa+'\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';
wa=""})}d(".pdd16-step-buying .pdd16-step-buying__card-wrap .swiper-wrapper").html(Ba);var Da="";if(E&&!Aa){d("#pdd16-step-buying").addClass("pdd16-step-buying--default");Da=1<d(".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'+Ea+"\x3c/strong\x3e"+(Fa.get("useVATInclusiveArea")?Ha:"")+'\x3c/p\x3e\n\t\t\t                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+
ia+'\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'+Ka+"\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'+
Ia+"\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 ya=Granite.I18n.get("*Savings based on regular quick3d.org price. Discount applied automatically at checkout when two or more qualifying products in basket.");"cn"!=R&&(Da+='\n\t\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying__footer-disclaimer"\x3e'+ya+"\x3c/p\x3e\n\t\t\t\t\t\t")}else Da='\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'+
Ea+"\x3c/strong\x3e"+(Fa.get("useVATInclusiveArea")?Ha:"")+'\x3c/p\x3e\n\t                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+ia+'\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'+
(pa?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";d(".pdd16-step-buying__footer").html(Da);F()}function k(Z){var Ba="",la="";y.hasBundle&&(la=l.sg.components.dynamic.bridgePageCommon.getBundleCategoryName());w();G=l.sg.components.dynamic.detailSharedObj.hasVoucher;ia=d(".pdd16-step-buying-v2__bottom-price-inner")[0].innerHTML;qa=Object.keys(Z).length;if(0<Object.keys(Z).length){var wa=
"";d.each(Z,function(Da,ya){ya=Z[Da].category.productList;for(var Ja=g=0;Ja<ya.length;Ja++){var La=ya[Ja];if(null!=La.modelList&&0<La.modelList.length){"cn"==R&&"01090100"==La.categorySubTypeCode&&La.modelList.forEach(function(cb,bb){var Xa=cb.idx.split("-");Xa[1]=bb;cb.idx=Xa.join("-")});for(var Ma=0,oa=null,Ra=0;Ra<La.modelList.length;Ra++){var Wa=La.modelList[Ra],Qa=Wa.isStock;Wa.selected&&"Y"===Wa.selected&&(Ma=Ra,Qa&&(oa=Ra))}if(null==oa)for(Ra=0;Ra<La.modelList.length;Ra++)if(Wa=La.modelList[Ra],
Wa.isStock){oa=Ra;break}null==oa&&(oa=Ma);La=f(La,oa);wa+=v(La,Da)}g++}if(Z[Da].category.display_name==la){ya=Z[Da];na=ya.category.productList;for(var Va in Z[Da].category.productList)Ja=Z[Da].category.productList[Va],wa+='\x3cdiv class\x3d"pdd16-step-buying__card" data-index\x3d"'+ya.category.key+"-"+Va+'-0" data-price\x3d"'+(Ja.promotionPriceValue?Ja.promotionPriceValue:Ja.priceValue)+'"\x3e\n\t\t\t\t\t\t\t\t'+t(Va)+"\n\t\t\t\t\t\t\t\x3c/div\x3e"}Ba+='\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'+
Z[Da].category.display_name+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cp class\x3d"pdd16-step-buying-v2__category-desc"\x3e'+Z[Da].category.cxpCategoryDescription+'\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-'+
Da+'",\n\t\t\t                "prevEl": ".pdd16-step-buying-v2__swiper-button.swiper-button-prev.prev-'+Da+'"\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'+wa+'\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-'+
Da+'"\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-'+Da+'"\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';
wa=""})}d(".pdd16-step-buying-v2__category-list").html(Ba);F()}function F(){Ca.off("click",".option-selector__color input, .option-selector__size input");Ca.on("click",".option-selector__color input, .option-selector__size input",function(){var Z=d(this),Ba=Z.attr("data-modeli"),la=(y.useAddonV2?Z.closest(".pdd16-step-buying-v2__card").children():Z.closest(".pdd16-step-buying__card")).attr("data-index")||"",wa=la.split("-")[1];la.split("-");var Da=la.split("-")[0];setTimeout(function(){if(null!=Ba){A[Da].category.productList[wa].frontModelIdx=
Ba;var ya=f(A[Da].category.productList[wa],Ba);if(y.useAddonV2){var Ja=d(".pdd16-step-buying-v2__category").eq(Da).find(".pdd16-step-buying-v2__card").eq(wa),La=d(".pdd16-step-buying-v2__card").index(Ja);Ja.find(".option-selector__swiper-wrapper").each(function(Ma){Ma=A[Da].category.productList[wa].optionTypeList[Ma];var oa=d(this).attr("style");A[Da].category.productList[wa].viewOptionObj[Ma].styleAttr=oa});ia=d(".pdd16-step-buying__header-price-text")[0].innerHTML;Ja.replaceWith(v(ya,Da,wa,Z));
l.sg.components.stepbuyingV2.cardReInit(document.getElementById(Z.attr("id")).closest(".pdd16-step-buying-v2__card"))}else Ja=d(".pdd16-step-buying__2column").eq(Da).find(".pdd16-step-buying__card").eq(wa),La=d(".pdd16-step-buying__card").index(Ja),Ja.find(".option-selector__swiper-wrapper").each(function(Ma){Ma=A[Da].category.productList[wa].optionTypeList[Ma];var oa=d(this).attr("style");A[Da].category.productList[wa].viewOptionObj[Ma].styleAttr=oa}),ia=d(".pdd16-step-buying__header-price-text")[0].innerHTML,
Ja.replaceWith(C(ya,Da,wa,Z)),Ja=d(document.querySelectorAll(".pdd16-step-buying__card")[La]),Ja.addClass("is-show"),l.sg.components.stepbuying.init()}},100);F()});Ca.off("click",".pdd16-step-buying__card .cta:not(.learn-more-btn), .pdd16-step-buying-v2__card .cta:not(.learn-more-btn, .pdd16-step-buying-v2__view-more)");Ca.on("click",".pdd16-step-buying__card .cta:not(.learn-more-btn), .pdd16-step-buying-v2__card .cta:not(.learn-more-btn, .pdd16-step-buying-v2__view-more)",function(){var Z=d(this);
m=Z;var Ba="in"===R?Z.attr("data-shopsku"):Z.attr("data-modelcode"),la=y.useAddonV2?Z.closest(".pdd16-step-buying-v2__card").children().attr("data-index"):Z.closest(".pdd16-step-buying__card").attr("data-index"),wa=y.proudctPriceInfo.monthlyPriceInfo.tenureVal,Da=y.useAddonV2?parseFloat(Z.closest(".pdd16-step-buying-v2__card").children().attr("data-price")):parseFloat(Z.closest(".pdd16-step-buying__card").attr("data-price")),ya=Number(d(".hiddenPrice")[0].getAttribute("value")),Ja=Number(d(".hiddenSavePrice").val())||
0,La="",Ma="",oa="";Ma=Ma=Ma="";if(d(this).hasClass("cta--bundle"))M=d(this).attr("data-promotionprice"),d(this).hasClass("js-cta-stock")||(d(this).hasClass("cta--on")?(la=na.filter(function(Qa){return Qa.modelcode===Ba}),Da=y.addonBundleRelatedData.filter(function(Qa){return Qa.bundleModelCode===Ba}),l.sg.components.addonBundlePopup.callSearchAjax(la[0],Da[0]),l.sg.components.notifyMePopup.showPopup(document.querySelector(".add-ons-evoucher-popup")),l.sg.components.notifyMePopup.reInit()):((y.useAddonV2?
d(".pdd16-step-buying-v2__evoucher-title span"):d(".pdd16-step-buying__evoucher-title span")).html(--a),G?(Ma=Number(d("#voucherBalance").attr("data-price")),d("#voucherBalance").attr("data-oriprice"),Ma=Number(d("#voucherCharge").attr("data-price")),y.useAddonV2&&(Ma=Number(d("#voucherBalance2").attr("data-price")),d("#voucherBalance2").attr("data-oriprice"),Ma=Number(d("#voucherCharge2").attr("data-price"))),W-=Number(d(this).attr("data-originprice")),ba-=Number(parseFloat(d(this).attr("data-saveprice")).toFixed(2)),
Q(Da,!1),Ma&&(ya=Ma>=Number(M)?ya-Number(M):ya-Ma)):ya-=Number(M),I[Ba]&&(I[Ba]=[])));else if(M=d(this).attr("data-price"),S=d(this).attr("data-saveprice"),la.split("-"),Ma=T.indexOf(la),Z=Z.attr("data-childmodelcode"),d(this).hasClass("cta--on")&&!d(this).hasClass("js-cta-stock"))y.useAddonV2?(d(this).closest(".pdd16-step-buying-v2__card.swiper-slide").addClass("is-selected"),d(".pdd16-step-buying-v2__evoucher-title span").html(++a)):d(".pdd16-step-buying__evoucher-title span").html(++a),T.push(la),
G?(Ma=Number(d("#voucherBalance").attr("data-price")),y.useAddonV2&&(Ma=Number(d("#voucherBalance2").attr("data-price"))),0>Ma-Number(M)&&(ya+=-(Ma-Number(M)),Ja+=Number(S)),W+=Number(d(this).attr("data-oriprice")),ba+=Number(parseFloat(d(this).attr("data-saveprice")).toFixed(2)),Q(Da,!0)):(y.useAddonV2&&(W+=Number(d(this).attr("data-oriprice")),ba+=Number(parseFloat(d(this).attr("data-saveprice")).toFixed(2))),ya+=Number(M),Ja+=Number(S)),fa.push(Ba),Z&&(y.productChildModelObject[Ba]=Z),la=d(this).closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-title strong").html(),
Da=d(this).closest(".pdd16-step-buying__card").find(".image img"),la={modelCode:Ba,modelName:la,src:Da.attr("data-img-src")},X.push(la);else if(!d(this).hasClass("cta--on")&&!d(this).hasClass("js-cta-stock")){y.useAddonV2?(d(this).closest(".pdd16-step-buying-v2__card.swiper-slide").removeClass("is-selected"),d(".pdd16-step-buying-v2__evoucher-title span").html(--a)):d(".pdd16-step-buying__evoucher-title span").html(--a);T.splice(Ma,1);G?(Ma=Number(d("#voucherBalance").attr("data-price")),d("#voucherBalance").attr("data-oriprice"),
Ma=Number(d("#voucherCharge").attr("data-price")),y.useAddonV2&&(Ma=Number(d("#voucherBalance2").attr("data-price")),d("#voucherBalance2").attr("data-oriprice"),Ma=Number(d("#voucherCharge2").attr("data-price"))),W-=Number(d(this).attr("data-oriprice")),ba-=Number(parseFloat(d(this).attr("data-saveprice")).toFixed(2)),Q(Da,!1),Ma&&(ya=Ma>=Number(M)?ya-Number(M):ya-Ma,Ja-=Number(S))):(y.useAddonV2&&(W-=Number(d(this).attr("data-oriprice")),ba-=Number(parseFloat(d(this).attr("data-saveprice")).toFixed(2))),
ya-=Number(M),Ja-=Number(S));for(la=0;la<fa.length;la++)if(fa[la]==Ba){fa.splice(la,1);la--;break}Z&&delete y.productChildModelObject[Ba];X=X.filter(function(Qa){return Ba!==Qa.modelCode})}Ma=Granite.I18n.get("From {0}/mo",currencyComma(ya/Number(wa),ka))+" "+Granite.I18n.get("for {0} mos",wa)+" "+Granite.I18n.get("or")+" "+currencyComma(ya,ka);La=Ma.split(" "+ma+" ");if(E)if(oa||(oa=d(".pdd16-step-buying__header-price").html()),0<fa.length){var Ra=("in"===R?d("#shopSKU").val():d("#modelCode").val())+
",";fa.forEach(function(Qa,Va){Ra+=Qa+(fa.length-1===Va?"":",")});var Wa="";X.forEach(function(Qa){Wa+='\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"'+
O(Qa.src,"$48_48_PNG$")+'" data-mobile-src\x3d"'+O(Qa.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'+Qa.modelName+"\x3c/div\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e"});wa=d(".pdd16-step-buying__header");wa.addClass("pdd16-step-buying__header-add-on-product");wa.find(".swiper-container").show();wa.find(".swiper-wrapper").html(Wa);wa.find(".pdd16-step-buying__quantity strong").html("+"+
fa.length);l.sg.components.dynamic.detailSharedObj.commonApiModel.callSimulatecartAjax(Ra,function(Qa,Va){if(Qa){if(Qa.subTotal&&Qa.totalDiscounts&&Qa.totalPrice){var cb=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo,bb=cb.salePrice,Xa=cb.orignalPrice;Va=Y.detailSharedObj.drawObj.price.priceWrapper.info.unformattedSavePrice;var Ya=bb-(Xa-Va);cb=currencyComma(Qa.subTotal.value-cb.salePrice+Xa+(Qa.totalDiscounts.value-(Xa-bb)),ka);bb=currencyComma(Qa.totalDiscounts.value+(0<Ya?Ya:0),ka);Ya=
currencyComma(Qa.totalPrice.value-(0<Ya?Ya:0),ka);c&&(Ya=Qa.totalPrice.formattedValue);Qa=Qa.totalPrice.value;oa='\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';oa=c?oa+("\x3cstrong\x3e"+L+" "+La[0].replace(L,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+ma+" "+Ya+"\x3c/strong\x3e"):oa+("\x3cstrong\x3e"+Ya+"\x3c/strong\x3e");Oa||H?oa+="\x3c/div\x3e":"in"==R?(Ya="MRP: "+cb+" (Incl. of all taxes)",Va=0<Va?'\x3cspan class\x3d"sale-text" data-save-price\x3d'+bb+"\x3e"+Granite.I18n.get("Save {0}",
bb)+"\x3c/span\x3e":"",oa+='\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'+cb+'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3e'+Ya+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t"+Va+"\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"):oa+='\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'+cb+"\x3e"+cb+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+cb+"\x3e"+cb+"\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'+bb+"\x3e"+Granite.I18n.get("Save {0}",bb)+"\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";oa+='\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+Qa+'"\x3e'}d(".pdd16-step-buying__header-price").html(oa)}})}else wa=
d(".pdd16-step-buying__header"),wa.removeClass("pdd16-step-buying__header-add-on-product"),wa.find(".swiper-container").hide(),oa=y.vdAddonInitPriceHtml;else oa=y.useAddonV2?c?'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\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'+La[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t "+ma+" "+L+" "+La[0].replace(L,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
ya+'"\x3e':'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+"\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t"+("mx"!==R?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(x?L:"")+" "+La[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+La[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ya+'"\x3e':c?'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
ua+'\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'+L+" "+La[0].replace(L,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+ma+" "+La[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ya+'"\x3e':'\n\t\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+"\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t"+("mx"!==R?'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(x?L:"")+
" "+La[1]+"\x3c/strong\x3e\x3c/p\x3e":'\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+La[1]+"\x3c/strong\x3e\x3c/p\x3e")+'\n\t\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ya+'"\x3e';G&&(Ma=!ba||0>ba?"in"==R?"MRP: "+currencyComma(W,ka)+" (Incl. of all taxes)":currencyComma(W,ka):"in"==R?"MRP: "+currencyComma(W,ka)+" (Incl. of all taxes) \x3cspan\x3e"+Granite.I18n.get("Save")+" "+currencyComma(ba,ka)+"\x3c/span\x3e "+currencyComma(W-ba,ka):currencyComma(W,
ka)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ba,ka)+"\x3c/del\x3e "+currencyComma(W-ba,ka),d("#selectedItem").html(Ma),y.useAddonV2&&d("#selectedItem2").html(Ma));d(".pdd16-step-buying__header-price").html(oa);d(".pdd16-step-buying__footer-sum").html(oa);void 0===d(".tab__list").attr("style")&&(d(document).off("click","#freeGiftPopup .layer-popup__close"),d(document).on("click","#freeGiftPopup .layer-popup__close",function(){l.sg.components.stepbuying.clearAll(d(".bundleSelect"));
m.removeClass("cta--on")}));ea();y.useAddonV2?(wa="",wa=c?'\x3cdiv class\x3d"pdd16-step-buying-v2__bottom-price-text"\x3e\n            \t\t\t \t\x3cspan class\x3d"final-text"\x3e\x3cstrong\x3e'+La[1]+'\x3c/strong\x3e\x3c/span\x3e\n            \t\t\t \t\x3cspan class\x3d"monthly-text"\x3e'+ma+" "+L+" "+La[0].replace(L,"")+"\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'+
(x?L:"")+" "+La[1]+"\x3c/strong\x3e\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e","in"==R&&(la=0<Ja?'\x3cspan class\x3d"sale-text"\x3eSave '+currencyComma(Ja,ka)+"\x3c/span\x3e":"",wa+='\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"'+Ja+'" /\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying-v2__bottom-price-tax"\x3eMRP: '+currencyComma(ya+Ja,ka)+' (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text"\x3eSave '+
currencyComma(Ja,ka)+"\x3c/span\x3e\n\t\t\t\t\t\t\t"+la+"\n\t\t\t\t\t\t\x3c/div\x3e"),d(".pdd16-step-buying-v2__bottom-price-inner").html(wa)):l.sg.components.stepbuying.init()});Ca.off("click",".pdd16-step-buying__card .pdd16-step-buying__card-cta-learn-more button");Ca.on("click",".pdd16-step-buying__card .pdd16-step-buying__card-cta-learn-more button",function(){var Z=d(this),Ba=y.useAddonV2?Z.closest(".pdd16-step-buying-v2__card").children().attr("data-index").split("-"):Z.closest(".pdd16-step-buying__card").attr("data-index").split("-");
Z=A[Ba[0]].category.productList[Ba[1]].modelList[Ba[2]];var la=A[Ba[0]].category.productList[Ba[1]].thirdPASeller,wa=d(".pdd16-step-buying__footer-cta button").attr("data-category-name");Ba=d(".pdd16-step-buying__layer-learn-more");Ba.find(".layer-popup__title").html(wa);wa=Z.galleryImage&&0<Z.galleryImage.length?Z.galleryImage:[Z.thumbUrl];var Da="";if(wa)for(var ya in wa)Da+='\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"'+
O(wa[ya],"$290_240_PNG$")+'" data-mobile-src\x3d"'+O(wa[ya],"$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"'+O(wa[ya],"$290_240_PNG$")+'" data-mobile-src\x3d"'+O(wa[ya],"$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';ya='\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<wa.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-arrow-option_click1" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow: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'+
Da+'\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-arrow-option_click1" an-ca\x3d"indication" an-ac\x3d"carousel" an-la\x3d"carousel:arrow: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';
Ba.find(".pdd16-step-buying__learn-more-images").html(ya);ya="";wa="Hybris-intg"===d("#shopIntegrationFlag").val();Da=!Aa&&!wa&&!ha;if(wa){wa=[{key:Z.tradeIn,value:Z.tradeInDesc},{key:Z.premiumCare,value:Z.premiumCareDesc},{key:Z.financing,value:Z.financingDesc},{key:Z.upgrade,value:Z.upgradeDesc},{key:Z.storePromotions?"Y":"N",value:Z.storePromotions}];for(var Ja in wa)"Y"===wa[Ja].key&&(ya+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+wa[Ja].value+"\x3c/li\x3e")}else if(Da&&
Z.vd3PAMarketingMessage&&0<Z.vd3PAMarketingMessage.length)for(Ja=$jscomp.makeIterator(Z.vd3PAMarketingMessage),wa=Ja.next();!wa.done;wa=Ja.next())ya+='\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+wa.value+"\x3c/li\x3e";if(Z.uspText&&0<Z.uspText.length)for(Ja=$jscomp.makeIterator(Z.uspText),wa=Ja.next();!wa.done;wa=Ja.next())ya+='\t\x3cli class\x3d"pdd16-step-buying__learn-more-feature-item" role\x3d"listitem"\x3e'+wa.value+"\x3c/li\x3e";Ja="";if(Z.keySummary&&
0<Z.keySummary.length)for(wa=$jscomp.makeIterator(Z.keySummary),Da=wa.next();!Da.done;Da=wa.next())Da=Da.value,"feature"===Da.displayType.toLowerCase()&&(Ja+='\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"'+O(Da.imgUrl,"$64_64_PNG$")+
'" data-mobile-src\x3d"'+O(Da.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+Da.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"'+O(Da.imgUrl,"$64_64_PNG$")+'" data-mobile-src\x3d"'+O(Da.imgUrl,"$96_96_PNG$")+'" alt\x3d"'+Da.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'+Da.title+"\x3c/p\x3e\n\t\t\t\t\t\t\t\x3c/li\x3e");
la='\n\t\t\t\t\x3ch3 class\x3d"pdd16-step-buying__learn-more-title"\x3e'+Z.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'+Z.modelCode+"\x3c/p\x3e\n\t\t\t\t\t"+(la?"\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(Z.ratings&&Z.reviewCount){wa=Z.ratings;Da=Z.reviewCount;wa||
(wa=0);var La=Math.pow(10,1);wa=Math.round(wa*La)/La;var Ma=parseFloat(wa).toFixed(1);La=parseInt(wa);var oa=parseInt(100*(Ma-La));"0.0"!==Ma&&(wa=Ma);Ma='\t\x3cspan class\x3d"rating__star-list"\x3e';for(var Ra=0;Ra<La;Ra++)Ma+='\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>La&&0<La)for(Ma+='\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:'+
oa+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',oa=4;oa>La;oa--)Ma+='\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===La)for(La=0;5>La;La++)Ma+='\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';Ma+='\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"+wa+'\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"+(Da?Da:0)+"\x3c/span\x3e)\x3c/em\x3e";wa='\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'+Ma+"\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 wa=
"";Z=la+wa+'\n\t\t\t\t\x3cul class\x3d"pdd16-step-buying__learn-more-feature" role\x3d"list"\x3e\n\t\t\t\t\t'+ya+"\n\t\t\t\t\x3c/ul\x3e\n\t\t\t\t"+(Z.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"'+Z.pdpUrl+'" aria-label\x3d"Link Title" target\x3d"_blank" \n\t\t\t\t\t\tan-tr\x3d"pdd16_step buying-product detail-learn more popup-product_click" an-ca\x3d"product click" an-ac\x3d"bridge" an-la\x3d"add-on:learn more popup:learn more" data-modelcode\x3d"'+
Z.modelCode+'" data-modelname\x3d"'+Z.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"+(Ja?'\x3cul class\x3d"pdd16-step-buying__learn-more-feature-icon"\x3e\n\t\t\t\t\t'+Ja+"\n\t\t\t\t\x3c/ul\x3e":"");Ba.find(".pdd16-step-buying__learn-more-content").html(Z);
l.sg.components.stepbuying.activePopup(document.querySelector("#layerPopupLearnMore"))});ea()}function ea(){var Z=d("#primaryInfoGoCartAddOn"),Ba=d("#primaryInfoCheckOutAddOn"),la=d("#nextBtn"),wa=d(".addon.cta--skip"),Da=d("#primaryInfoGoCartAddOn, #primaryInfoCheckOutAddOn, #voucherGoCartAddOn, #skipGoCartAddOn"),ya=[];if(Aa||sa)for(var Ja in A)ya.push(A[Ja].category.display_name);if(ha){Ja=[];for(var La in A)Ja.push(A[La]);Ja.sort(function(gb,fb){return gb.category.order-fb.category.order});La=
$jscomp.makeIterator(Ja);for(Ja=La.next();!Ja.done;Ja=La.next())ya.push(Ja.value.category.display_name)}ya=0<d(".tab__item--active").length?ya[d(".tab__item--active").index()]:ya[0];if(0<T.length){var Ma=Ja=La="",oa="",Ra="",Wa="",Qa="",Va="",cb="";za="";for(var bb=0;bb<T.length;bb++){var Xa=T[bb],Ya=Xa.split("-")[0],ib=Xa.split("-")[1];Xa=Xa.split("-")[2];Ya=A[Ya].category.productList[ib].modelList[Xa];ib=u.setPriceInfo(Ya);Xa=ib.productPrice;var Za="";0<bb&&(Za=",");La+=Za+Ya.modelCode;Ja+=Za+Ya.modelName;
za+=Za+Ya.displayName;Ma+=Za+Xa;oa+=Za+ib.promotionPrice;Ra+=Za+Ya.pviTypeName;Wa+=Za+Ya.pviSubtypeName;Qa+=Za+Ya.pviSubtypeName+" "+Ya.pviTypeName;Va+=Za+Xa;cb+=Za+1}Ra=Ra.toLowerCase();Wa=Wa.toLowerCase();Qa=Qa.toLowerCase();E?"nextBtn"===d(".cta--step").attr("id")?la.attr("an-tr","pdd16_step buying-"+va+"-cta-content_click").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:"+ya.toLowerCase()+":next").attr("data-category-name",ya):Z.attr("an-tr","pdd16_step buying-"+va+
"-checkout-ecommerce1").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:"+ya.toLowerCase()+":checkout").attr("data-category-name",ya):G?(Z.attr("an-tr","pdd16_product bought together-"+va+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:go to cart"),Ba.attr("an-tr","pdd16_product bought together-"+va+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:checkout")):b?(wa.attr("an-tr","pdd16_step buying-"+
va+"-cta-content_click3").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:"+ya.toLowerCase()+":skip"),Z.attr("an-tr","pdd16_step buying-"+va+"-checkout-ecommerce1").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:"+ya.toLowerCase()+":continue")):(Z.attr("an-tr","pdd16_product bought together-"+va+"-text-addedcart").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:go to cart"),Ba.attr("an-tr","pdd16_product bought together-"+
va+"-text-button").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","add-on:checkout"));Da.attr("data-modelcode",La).attr("data-modeldisplay",za).attr("data-modelname",Ja).attr("data-modelrevenue",Va).attr("data-modelprice",Ma).attr("data-pvitype",Ra).attr("data-pvisubtype",Wa).attr("data-discountprice",oa).attr("data-pimsubtype",Qa).attr("data-modelqty",cb)}else E?"nextBtn"===d(".cta--step").attr("id")?la.attr("an-tr","pdd16_step buying-"+va+"-cta-content_click").attr("an-ca","content click").attr("an-ac",
"feature").attr("an-la","add-on:"+ya.toLowerCase()+":next").attr("data-category-name",ya):Z.attr("an-tr","pdd16_step buying-"+va+"-cta-content_click3").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:"+ya.toLowerCase()+":checkout").attr("data-category-name",ya):G?(Z.attr("an-tr","pdd16_product bought together-"+va+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:go to cart"),Ba.attr("an-tr","pdd16_product bought together-"+va+"-popup-cart").attr("an-ca",
"content click").attr("an-ac","feature").attr("an-la","evoucher:checkout")):b?(wa.attr("an-tr","pdd16_step buying-"+va+"-cta-content_click3").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:"+ya.toLowerCase()+":skip"),Z.attr("an-tr","pdd16_step buying-"+va+"-cta-content_click3").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:"+ya.toLowerCase()+":continue")):(Z.attr("an-tr","pdd16_product bought together-"+va+"-text-notaddedcart").attr("an-ca",
"content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"),Ba.attr("an-tr","pdd16_product bought together-"+va+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout")),Da.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");
la.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 e(Z){Z=void 0===Z?!1:Z;for(var Ba=[],la=$jscomp.makeIterator(fa),wa=la.next();!wa.done;wa=la.next())Ba.push(wa.value);Aa&&y.giftFlag&&y.globalServiceInfo.gift&&y.globalServiceInfo.gift.modelCode&&
Ba.push(y.globalServiceInfo.gift.modelCode);for(var Da in I)for(la=$jscomp.makeIterator(I[Da]),wa=la.next();!wa.done;wa=la.next())Ba.push(wa.value);Z?Y.DetailAfterEvent.checkOutCta(Ba,!0,!0,p):Y.DetailAfterEvent.addToCartCta(Ba,!0,!0,p)}function n(Z){(void 0===Z?0:Z)?Y.DetailAfterEvent.checkOutCta([],!0,!0,p):Y.DetailAfterEvent.addToCartCta([],!0,!0,p)}function Q(Z,Ba){var la=d("#voucherTotal"),wa=d("#voucherBalance"),Da=d("#voucherCharge");y.useAddonV2&&(la=d("#voucherTotal2"),wa=d("#voucherBalance2"),
Da=d("#voucherCharge2"));var ya=parseFloat(la.attr("data-price")||0),Ja=parseFloat(wa.attr("data-oriprice")||0);ya=Ba?ya+Z:Number((parseFloat(ya)-parseFloat(Z)).toFixed(2));Z=Number((parseFloat(Ja)-parseFloat(ya)).toFixed(2));0>Z?(Ba=-Z,Z=0):Ba=0;la.attr("data-price",ya);wa.attr("data-price",Z);Da.attr("data-price",Ba);la.html(currencyComma(ya,ka));wa.html(currencyComma(Z,ka));Da.html(currencyComma(Ba,ka))}var Y=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),N=Y.ux2.PriceBar,y=Y.detailSharedObj,
R=d("#siteCode").val(),V="true"===d("#isEppPage").val(),ka=d("#priceCurrency").val(),va=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),Aa="GPv2"===d("#shopIntegrationFlag").val()&&"in"===R,sa="Hybris"===d("#shopIntegrationFlag").val()||"Hybris-intg"===d("#shopIntegrationFlag").val(),ha="Hybris-new"===d("#shopIntegrationFlag").val(),ra=d("#categorySubTypeCode").val(),da=d("#categoryTypeCode").val(),E=2<ra.length&&"04"===ra.substring(0,2)||4<ra.length&&"0701"===ra.substring(0,4),b=da.startsWith("08"),
x="jp"!==R&&"n_africa"!==R&&"de"!==R,P="Y"==d("#isNotDelTagSites").val()?!0:!1,H="pl"===R||"si"===R||"gr"===R||"fi"===R||"it"===R||"se"===R||"no"===R||"dk"===R||"fr"===R||"de"===R||"cz"===R||"sk"===R||"pt"===R||"au"===R?!0:!1,ca=!H||"de"!==R&&"cz"!==R&&"sk"!==R&&"pt"!==R&&"au"!==R&&"se"!==R&&"no"!==R&&"dk"!==R&&"fi"!==R?!1:!0,h="hu"===R?!0:!1,I={},u={},A=[],T=[],fa=[],X=[],G=!1,z="",M=0,S=0,W=0,ba=0,ia,ta,qa=0,za="",na="",a=0,c=!1,m="",g=0,p="",aa=Granite.I18n.get("View more"),L=Granite.I18n.get("From"),
ma=Granite.I18n.get("or"),ua=Granite.I18n.get("Monthly Price")+":";Granite.I18n.get("Full Price:");var ja=Granite.I18n.get("Add"),xa=Granite.I18n.get("Are you sure to remove this product?"),Ia=Granite.I18n.get("Checkout"),Ka=Granite.I18n.get("Next"),Ea=Granite.I18n.get("Total"),Ha=Granite.I18n.get("VAT Inclusive"),Sa=Granite.I18n.get("Added"),Ga=Granite.I18n.get("Out Of Stock"),pa="fr"==R,Oa=V&&"pl"===R;V&&(H="Y"===eppOmniPricingUseYn?!0:!1,"au"===R||y.isSENA)&&(H=!0);if("fr"===R||"tr"===R)L="";var Ca=
y.useAddonV2?d(".pdd16-step-buying-v2"):d(".pdd16-step-buying"),Pa=d(".pdd16-step-buying-v2__bottom");ra={it:{useTncOnAddOn:!1},id:{useAddOnNextI18n:!0},ch:{useStaticTitle:E,staticTitle:Granite.I18n.get("Amazing additions")},ch_fr:{useStaticTitle:E,staticTitle:Granite.I18n.get("Amazing additions")},ee:{useStaticTitle:E,staticTitle:Granite.I18n.get("Amazing additions")},nl:{useStaticTitle:E,staticTitle:ra.startsWith("0701")?Granite.I18n.get("addon title(monitor)"):Granite.I18n.get("Choose your TV set-up"),
useStaticSubTitle:E,staticSubTitle:ra.startsWith("0701")?Granite.I18n.get("addon subtitle(monitor)"):Granite.I18n.get("addon subtitle")},be:{useStaticTitle:E&&"04010000"==da,staticTitle:Granite.I18n.get("Choose your TV set-up"),useStaticSubTitle:E&&"04010000"==da,staticSubTitle:Granite.I18n.get("addon subtitle")},be_fr:{useStaticTitle:E&&"04010000"==da,staticTitle:Granite.I18n.get("Choose your TV set-up"),useStaticSubTitle:E&&"04010000"==da,staticSubTitle:Granite.I18n.get("addon subtitle")},default:{useVATInclusiveArea:!1}};
var Fa=function(Z,Ba){var la=Ba[Z],wa=Ba["default"];return{get:function(Da){return la&&"undefined"!==typeof la[Da]?la[Da]:wa&&"undefined"!==typeof wa[Da]?wa[Da]:!1}}}(R,ra);Fa.get("useAddOnNextI18n")&&(Ka=Granite.I18n.get("Next (addon)"));var Na=!0,Ta=function(Z,Ba,la,wa,Da){Ba=Ba.split(",");var ya=Ba[0];Da=Da.indexOf("MEMORY");if(!Aa&&!ha&&!sa&&wa&&0<Da){la=Z.MEMORY.optionList;var Ja=0,La=0,Ma;for(Ma in la){ya=la[Ma].modelIdx.split(",");for(var oa in ya)if(J(Ba,ya[oa])){Z=la[Ma].optionCode.replace("TB",
"000").replace(/[^0-9]/g,"");La<Z&&(La=Z,Ja=ya[oa]);break}}Ba=Ja}else{for(Ja in la)if(Ma=la[Ja]){oa=Ma.split(",");Ma=[];for(La in Ba)-1<oa.indexOf(String(Ba[La]))&&Ma.push(Ba[La]);0<Ma.length&&(Ba=Ma)}Ba=0<Ba.length?Ba[0]:ya}return Ba},Ua=function(Z,Ba,la,wa){la="";var Da=!1;if(Z.viewOptionObj&&0<Object.keys(Z.viewOptionObj).length){var ya=0,Ja=Z.viewOptionObj,La=Z.optionTypeList;Z.viewOptionObj.hasOwnProperty("RING SIZE")&&(Da=!0);Z.viewOptionObj=Object.keys(Z.viewOptionObj).sort(function(zb,ab){if("COLOR"==
zb)return-1;if("COLOR"==ab)return 1}).reduce(function(zb,ab){zb[ab]=Z.viewOptionObj[ab];return zb},{});for(var Ma in Z.viewOptionObj){var oa=Ma.toLowerCase().replace(/ /g,"-"),Ra=Z.viewOptionObj[Ma].optionList,Wa=!1,Qa={},Va="",cb=G?"evoucher":"add-on";Z.viewOptionObj[Ma].styleAttr&&(Va=Z.viewOptionObj[Ma].styleAttr);if("COLOR"===Ma){Va="";for(var bb in Ra){var Xa=Ra.length;Qa=Ra[bb];Wa=!1;var Ya=Qa.modelIdx.split(",");null!=Qa.modelIdx&&J(Ya,String(Z.frontModelIdx))&&(Wa=!0);var ib=Ya="";var Za=
Qa.modelIdx;var gb=[],fb=!0,sb;for(sb in Ja)if(sb!==Ma){var yb=Ja[sb].optionList,Ob;for(Ob in yb){var vb=yb[Ob];vb=vb.modelIdx;var qb=vb.split(",");-1<qb.indexOf(String(Z.frontModelIdx))&&gb.push(vb)}}Za=Ta(Ja,Za,gb,fb,La);Z.modelList.length>Za&&Z.modelList[Za]&&(Ya=Z.modelList[Za].modelCode,ib=Z.modelList[Za].modelName);var Jb=Z.modelList[Za].price,mb=Z.modelList[Za].promotionPrice;yb=Jb-mb;Aa&&Z.modelList[Za].idx&&(Z.modelList[Za].idx=g+"-"+Za);wa&&(Z.modelList[Za].idx=wa+"-"+Za);gb="pdd16-"+oa+
"-"+z+"-"+Z.modelList[Za].idx;fb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx;Da&&(gb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx.split("-")[0]+"-"+Za,fb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx.split("-")[0]+"-"+Za);vb=Qa.multiColorYN;Va+='\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"'+gb+'" name\x3d"'+fb+'" data-modeli\x3d"'+Za+'" '+(Wa?" checked":"")+' \n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"'+
(E||b?"pdd16_step buying-"+va+"-option click-option_click":"pdd16_product bought together-"+va+"-select-option")+'" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+(E||b?"add-on:"+Z.categoryDisplayName+":"+Ma.toLowerCase():cb+":"+Ma.toLowerCase())+":"+Qa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Ya+'" data-modelname\x3d"'+ib+'" data-price\x3d"'+Jb+'" data-promotionPrice\x3d"'+mb+'" data-saveprice\x3d"'+yb+'" data-index\x3d"'+Z.modelList[Za].idx+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+
gb+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+function(zb){var ab="";if("Y"!=zb)ab='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+Qa.optionCode+'"\x3e'+Qa.optionLocalName+"\x3c/span\x3e";else if(zb=Qa.multiColorList){var $a=zb.optionCodeList,lb="";switch(zb.optionColorType){case "C1":lb='\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"'+
$a[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":lb='\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"'+
$a[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"'+$a[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":lb='\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"'+
$a[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"'+$a[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":lb='\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"'+
$a[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"'+
$a[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"'+
$a[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":lb='\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"'+
$a[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"'+$a[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"'+$a[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":lb='\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"'+
$a[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"'+$a[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"'+$a[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":lb='\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"'+
$a[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"'+$a[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"'+$a[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"'+$a[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":lb='\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"'+
$a[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"'+$a[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"'+
$a[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"'+$a[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"'+
$a[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"'+$a[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'}ab+=
lb}return ab}(vb)+'\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Qa.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"}la+='\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip swiper-mode '+(1==Ba?"":"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'+
Va+'\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<Xa?'\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'+Ka+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(5<Xa?'\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"===Ma||"TV SIZE"===Ma||"HOME APPLIANCE SIZE"===Ma||"MONITOR SCREEN SIZE"===Ma||"RING SIZE"===Ma||"MEMORY MEMORY"===Ma){Jb="";for(mb=0;mb<Ra.length;mb++){var Cb=Ra.length;Qa=Ra[mb];Wa=!1;Ya=Qa.modelIdx.split(",");null!=Qa.modelIdx&&J(Ya,String(Z.frontModelIdx))&&(Wa=!0);ib=Ya="";Za=Qa.modelIdx;gb=[];fb=!1;for(sb in Ja)if(sb!==Ma)for(Ob in yb=Ja[sb].optionList,yb)vb=yb[Ob],
vb=vb.modelIdx,qb=vb.split(","),-1<qb.indexOf(String(Z.frontModelIdx))&&gb.push(vb);Za=Ta(Ja,Za,gb,fb,La);Z.modelList.length>Za&&Z.modelList[Za]&&(Ya=Z.modelList[Za].modelCode,ib=Z.modelList[Za].modelName);gb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx;fb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx;Da&&(Wa=!0,gb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx.split("-")[0]+"-"+Za,fb="pdd16-"+oa+"-"+z+"-"+Z.modelList[Za].idx.split("-")[0]+"-"+Za);Jb+='\x3cspan class\x3d"option-selector__swiper-slide'+(Wa?" 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"'+gb+'" name\x3d"'+fb+'" data-modeli\x3d"'+Za+'"'+(Wa?" checked":"")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"'+(E||b?"pdd16_step buying-"+va+"-option click-option_click":"pdd16_product bought together-"+va+"-select-option")+'" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"'+(E||b?"add-on:"+Z.categoryDisplayName+":"+Ma.toLowerCase():cb+":"+Ma.toLowerCase())+":"+Qa.optionName.toLowerCase()+
'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Ya+'" data-modelname\x3d"'+ib+'" data-index\x3d"'+Z.modelList[Za].idx+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+gb+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+Qa.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"}la+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity swiper-mode '+
(1==Ba?"":"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"'+Va+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+Jb+'\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<Cb?'\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'+
Ka+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t"+(2<Cb?'\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"}ya++}}return la};d(document).off("click",".pdd16-step-buying__evoucher-cta .cta--clear-all, .pdd16-step-buying-v2__evoucher-cta .cta--clear-all");d(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(I).length)for(Z in I)if(0<I[Z].length){var Z=!0;break a}Z=!1}(0<fa.length||Z)&&confirmPopup(xa,"voucherDelete","voucherClearAll")});d(document).off("click","#voucherClearAll");d(document).on("click","#voucherClearAll",function(){for(var Z=y.useAddonV2?d(".pdd16-step-buying-v2__bottom-price-inner"):d(".pdd16-step-buying__header-price-text"),Ba=0;Ba<Z.length;Ba++)Z[Ba].innerHTML=ia,d(".hiddenPrice")[Ba].setAttribute("value",ta);a=0;w();D();l.sg.components.stepbuying.clearAll(document.querySelector(".pdd16-step-buying"));
d(".pdd16-step-buying__evoucher-title span").html(0);y.useAddonV2&&(d(".pdd16-step-buying-v2__card.swiper-slide").removeClass("is-selected"),l.sg.components.stepbuyingV2.clearAll(document.querySelector(".pdd16-step-buying-v2")),d(".pdd16-step-buying-v2__evoucher-title span").html(0))});d(document).off("click","#primaryInfoGoCartAddOn");d(document).on("click","#primaryInfoGoCartAddOn",function(){y.hasVoucher?r("GoCartAddOn"):e()});d(document).off("click","#primaryInfoCheckOutAddOn");d(document).on("click",
"#primaryInfoCheckOutAddOn",function(){y.hasVoucher?r("CheckOutAddOn"):e()});d(document).off("click","#voucherGoCartAddOn");d(document).on("click","#voucherGoCartAddOn",function(){e()});d(document).off("click","#voucherCheckOutAddOn");d(document).on("click","#voucherCheckOutAddOn",function(){e(!0)});d(document).off("click","#skipGoCartAddOn");d(document).on("click","#skipGoCartAddOn",function(){n()});d(document).off("click","#skipCheckOutAddOn");d(document).on("click","#skipCheckOutAddOn",function(){n(!0)});
d(document).off("click",".pdd16-step-buying__cta-more");d(document).on("click",".pdd16-step-buying__cta-more",function(){l.sg.components.betterTogether.more();0===d(".scrollbar__contents .better-together__item").not(".is-item-visible").length&&d(this).hide()});d(document).off("click",".pdd16-step-buying .addon.cta--skip, .pdd16-step-buying-v2 .addon.cta--skip");d(document).on("click",".pdd16-step-buying .addon.cta--skip, .pdd16-step-buying-v2 .addon.cta--skip",function(){if(y.hasVoucher){var Z=d(".confirm-popup"),
Ba=Z.find(".confirm-popup__title"),la=Z.find(".confirm-popup__desc"),wa=Z.find(".cta--contained");Z=Z.find(".cta--outlined");var Da=d("#voucherBalance");y.useAddonV2&&(Da=d("#voucherBalance2"));Da=Number(Da.attr("data-oriPrice"))||0;Da=Granite.I18n.get("You didn't redeem your {0} credit.\x3cbr/\x3eit will be gone once you press 'skip'.",currencyComma(Da,ka));wa.attr("id","skipGoCartAddOn");la.html(Da);Ba.html(Granite.I18n.get("Are you sure?"));Z.attr("id","");Z.html(Granite.I18n.get("Redeem"));Z.show();
wa.html(Granite.I18n.get("Skip"));l.sg.components.confirmPopup.showPopup()}else n()});d(document).off("click",".pdd16-step-buying .cta--step");d(document).on("click",".pdd16-step-buying .cta--step",function(){var Z=d(".pdd16-step-buying .tab__item--active").index()+1;d(".pdd16-step-buying .tab__item").length===Z?d(this).attr("id","primaryInfoGoCartAddOn"):d(this).attr("id","nextBtn")});d(document).off("click",".pdd16-step-buying .tab__item-title");d(document).on("click",".pdd16-step-buying .tab__item-title",
function(){var Z=d(".pdd16-step-buying__headline"),Ba=d(".pdd16-step-buying .tab__item--active").index()+1,la=d(".pdd16-step-buying .tab__item").length,wa="es"===R?"Choose yours {0}":"Choose your {0}";E&&(Fa.get("useStaticTitle")?Z[0].innerHTML=Fa.get("staticTitle"):y.hasVoucher||(Z[0].innerHTML=Granite.I18n.get(wa,d(this)[0].innerText)),Z=d(this).parents(".pdd16-step-buying__tab-wrap").find(".cta--step"),la===Ba?Z.attr("id","primaryInfoGoCartAddOn"):Z.attr("id","nextBtn"));ea()});d(document).off("click",
".pdd16-step-buying #nextBtn");d(document).on("click",".pdd16-step-buying #nextBtn",function(){var Z=d(".pdd16-step-buying__headline"),Ba=d(".pdd16-step-buying .tab__item--active").find("button"),la=d(".pdd16-step-buying .tab__item--active").index()+1,wa=d(".pdd16-step-buying .tab__item").length,Da="es"===R?"Choose yours {0}":"Choose your {0}";E&&(Fa.get("useStaticTitle")?Z[0].innerHTML=Fa.get("staticTitle"):y.hasVoucher||(Z[0].innerHTML=Granite.I18n.get(Da,Ba[0].innerText)),wa===la?d(this).attr("id",
"primaryInfoGoCartAddOn"):d(this).attr("id","nextBtn"));ea()});d(document).off("click",".add-ons-evoucher-popup #bundleAddOn");d(document).on("click",".add-ons-evoucher-popup #bundleAddOn",function(){var Z=0,Ba=0,la=0,wa=[],Da=d(".add-ons-evoucher-popup__item .option-selector-v2__color-code");Da&&Da.each(function(){d(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&wa.push(d(this))});(Da=d(".add-ons-evoucher-popup__item .option-selector-v2__size-text"))&&Da.each(function(){d(this).closest(".option-selector-v2__swiper-slide").hasClass("is-checked")&&
wa.push(d(this))});var ya=d(this).attr("data-parent-modelcode");I[ya]=[];d(this).attr("data-price")&&(Z+=Number(d(this).attr("data-price")));d(this).attr("data-promotionprice")&&(Ba+=Number(d(this).attr("data-promotionprice")));d(this).attr("data-saveprice")&&(la+=Number(d(this).attr("data-saveprice")));d.each(wa,function(Ma,oa){I[ya].push(wa[Ma].attr("data-modelcode"))});Da=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;var Ja="",La="";La=Number(d(".hiddenPrice")[0].getAttribute("value"));
Ja=Ja="";d(".pdd16-step-buying__evoucher-title span").html(++a);G?(Ja=Number(d("#voucherBalance").attr("data-price")),0>Ja-Number(Ba)&&(La+=-(Ja-Number(Ba))),W+=Number(Z),ba+=Number(la),Q(parseFloat(Ba),!0)):La+=Number(Ba);Ja=Granite.I18n.get("From {0}/mo",currencyComma(La/Number(Da),ka))+" "+Granite.I18n.get("for {0} mos",Da)+" "+Granite.I18n.get("or")+" "+currencyComma(La,ka);Z=Ja.split(" "+ma+" ");La=c?'\n\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
L+" "+Z[0].replace(L,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t"+ma+" "+Z[1]+'\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+La+'"\x3e':'\n\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+(x?L:"")+" "+Z[1]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+La+'"\x3e';d(".pdd16-step-buying__header-price").html(La);
d(".pdd16-step-buying__footer-sum").html(La);G&&(Ja=ba?currencyComma(W,ka)+" "+Granite.I18n.get("Save")+" \x3cdel\x3e"+currencyComma(ba,ka)+"\x3c/del\x3e "+currencyComma(W-ba,ka):currencyComma(W,ka),d("#selectedItem").html(Ja),y.useAddonV2&&d("#selectedItem2").html(Ja));l.sg.components.notifyMePopup.closePopup()});d(document).off("click",".add-ons-evoucher-popup .layer-popup__close");d(document).on("click",".add-ons-evoucher-popup .layer-popup__close",function(){var Z=d(this).attr("data-attr-parent");
d.each(d(".pdd16-step-buying__tab .bundleSelect"),function(Ba,la){d(this).attr("data-modelcode")===Z&&(d(this).find("span").text(ja),d(this).removeClass("cta--on"))})});Y.bridgePageCommonHybris={moveBridgePage:function(Z){G=l.sg.components.dynamic.detailSharedObj.hasVoucher;y=Y.detailSharedObj;var Ba=Y.detailSharedObj.drawObj.price.priceWrapper.info;Z=Ba.totalPrice||"";var la=Ba.savePrice||"";Ba=Ba.unformattedSavePrice||"";var wa=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.orignalPrice||
"",Da=currencyComma(wa,ka)||"",ya=Z.split(" "+ma+" ");ta=y.totalPrice.sale;if(E){var Ja='\x3cdiv class\x3d"pdd16-step-buying__header-price-text"\x3e';1<ya.length?(c=!0,Ja+="\x3cstrong\x3e"+L+" "+ya[0].replace(L,"")+"\x3cbr\x3e\n\t\t\t\t\t\t\t\t"+ma+" "+ya[1]+"\x3c/strong\x3e"):Ja+="\x3cstrong\x3e"+Z+"\x3c/strong\x3e";Da&&la?Ja=Oa?Ja+"\x3c/div\x3e":y.isNewElementLowestWasPrice&&!y.isNewElementLowestWasPriceSetting?Ja+"\x3c/div\x3e":"in"==R?Ja+('\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'+
wa+'\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3eMRP: '+(Da+' (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')+(Ba+"\x3e"+la+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e")):Ja+('\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'+wa+"\x3e"+
Da+"\x3c/del\x3e":'\x3cspan class\x3d"was-text" data-orignal-price\x3d'+wa+"\x3e"+Da+"\x3c/span\x3e")+'\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"sale-text" data-save-price\x3d'+Ba+"\x3e"+la+"\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"!=R||la||(Ja+='\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'+wa+'\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"pdd16-step-buying__header-price-tax"\x3eMRP: '+
(Da+" (Incl. of all taxes)\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e"));Ja+='\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ta+'"\x3e';y.vdAddonInitPriceHtml=Ja}else y.useAddonV2?1<ya.length?(c=!0,Ja='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\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'+ya[1]+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t "+ma+" "+L+" "+ya[0].replace(L,"")+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+
ta+'"\x3e'):Ja='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\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'+(x?L:"")+" "+ya[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ta+'"\x3e':1<ya.length?(c=!0,Ja='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\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'+
L+" "+ya[0].replace(L,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t\t\t\t\t\t\t"+ma+" "+ya[1]+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ta+'"\x3e'):Ja='\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+ua+'\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'+(x?L:"")+" "+ya[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ta+'"\x3e';d(".pdd16-step-buying__header-price").html(Ja);
d(".pdd16-step-buying__footer-sum").html(Ja);Z=sa||Aa?y.hasGift&&Na&&!y.hasVoucher:ha?y.hasGift&&Na:!1;sa&&y.hasVoucher&&Na&&(Z=y.hasGift=!1);Z?(d(".pdd16-step-buying .tab").removeClass("bg-light-gray").removeAttr("data-use-arrow"),d(".pdd16-step-buying .tab__list").hide(),d(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")||d(".pdd16-step-buying").addClass("pdd16-step-buying--free-gift"),Na=!1,l.sg.components.dynamic.bridgePagefreeGift.moveBridgePage()):(Z=E&&y.newEmbedVDCountry,la=
y.soundbarCategoryData&&0<Object.keys(y.soundbarCategoryData).length?!0:!1,Z=Z?y.hasAddOns&&!y.isEmbedAddOn:y.hasAddOns&&(!y.isEmbedAddOn||y.isEmbedAddOn&&la),la=y.useAddonV2?d(".pdd16-step-buying-v2__evoucher"):d(".pdd16-step-buying__evoucher"),Z?(d(".pdd16-step-buying .tab").addClass("bg-light-gray").attr("data-use-arrow"),d(".pdd16-step-buying .tab__list").show(),u=Y.bridgePageCommon,Fa.get("useStaticSubTitle")?(d(".pdd16-step-buying__sub-headline").css("display",""),G?la.css("display",""):la.remove()):
G&&(d(".pdd16-step-buying__sub-headline").css("display",""),la.css("display","")),d(".pdd16-step-buying").hasClass("pdd16-step-buying--free-gift")&&d(".pdd16-step-buying").removeClass("pdd16-step-buying--free-gift"),y.isEmbedAddOn||(Aa?(B(),u.categoryGridGPv2()):u.getSearchProductcard(B)),Na=!0,Fa.get("useTncOnAddOn")||(Z=d(".pdd16-step-buying__tnc"))&&0<Z.length&&Z.hide()):sa&&y.hasVoucher&&(Z=-1<y.cartUrl.indexOf("https://")||-1<y.cartUrl.indexOf("http://")?y.cartUrl:y.apiDomain+y.cartUrl,Z=V?d("#storeWebDomain").val()+
"/"+d("#eppCompanyCode").val()+"/cart":Z,location.href=Z));Y.detailSharedObj.hasVoucher?(D(),d("#primaryInfoCheckOutAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+va+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:checkout"),d("#primaryInfoGoCartAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+va+"-popup-cart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la",
"evoucher:go to cart")):(d("#primaryInfoCheckOutAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+va+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:checkout"),d("#primaryInfoGoCartAddOn,skipGoCartAddOn,voucherGoCartAddOn").attr("an-tr","pdd16_product bought together-"+va+"-text-notaddedcart").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","add-on:go to cart"));d("#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(Z){y=Z}}})(window,window.jQuery);
(function(l,d){function K(E,b,x,P){var H=l.sg.components.dynamic.detailSharedObj,ca=H.drawObj,h=ca.embedAddon.itemSet;E&&(h=ca.embedAddon.itemSet=[]);H.soundbarCategoryData={};va=modelCode;P&&b.every(function(X){var G=X.category&&X.category.order;if(""==G||null==G)return!1;G=Number(G);if(isNaN(G))return!1;X.category.order=G;return!0})&&b.sort(function(X,G){return X.category.order-G.category.order});if(ea){var I=0;ca=$jscomp.makeIterator(b);for(P=ca.next();!P.done;P=ca.next()){var u=$jscomp.makeIterator(P.value.products);
for(P=u.next();!P.done;P=u.next())I++}h.length>=I&&(h=[]);N={};V=b;var A=0;for(I={$jscomp$loop$prop$i$321$383:0};I.$jscomp$loop$prop$i$321$383<b.length;I={$jscomp$loop$prop$i$321$383:I.$jscomp$loop$prop$i$321$383},I.$jscomp$loop$prop$i$321$383++)x&&null!=b[I.$jscomp$loop$prop$i$321$383].products&&0<b[I.$jscomp$loop$prop$i$321$383].products.length&&(D(b[I.$jscomp$loop$prop$i$321$383].products),d.each(b[I.$jscomp$loop$prop$i$321$383].products,function(X){return function(G,z){G=z.modelcode;var M=N[G]=
{};M.modelCode=G;M.name=z.name;z.priority&&(M.priority=z.priority);z.imageUrl&&(M.imageUrl=z.imageUrl);z.imageUrlAlt&&(M.imageUrlAlt=z.imageUrlAlt);z.stocklevel&&(M.stocklevel=z.stocklevel);z.price&&z.priceValue&&(M.priceValue=z.priceValue,M.price=z.price,M.promotionPriceValue=z.priceValue,M.promotionPrice=z.price);z.promotionPrice&&z.promotionPriceValue&&(M.promotionPriceValue=z.promotionPriceValue,M.promotionPrice=z.promotionPrice);var S;if(null==z?0:null==(S=z.lowestWasPrice)?0:S.value)M.lowestWasPriceValue=
z.lowestWasPrice.value,M.lowestWasPrice=z.lowestWasPrice.formattedValue;z.commercialFlag&&(M.commercialFlag=z.commercialFlag);z.referenceColor&&(M.referenceColor=z.referenceColor);"at"==k&&0<z.aemAdditionalInfoTypes.length&&(S=z.aemAdditionalInfoTypes.filter(function(W){return"CHILD_PRODUCT"==W.type}),0<S.length&&(M.childModelCode=S[0].aemAdditionalInfos[0].value));if(z.groupCode&&0==z.groupId||z.groupCode&&0!=z.groupId)M.groupCode=z.groupCode,M.groupId=z.groupId;J(z.modelcode)&&(H.hasBundle=!0,ra=
b[X.$jscomp$loop$prop$i$321$383].category.display_name,d.extend(z,M),H.addonBundleIdx=X.$jscomp$loop$prop$i$321$383,H.addonBundleData=b[X.$jscomp$loop$prop$i$321$383],U(z.modelcode));E?(r(H,z,M,G,h,A),A++):H.isEmbedAddOn&&H.embedAddon08&&(r(H,z,M,G,h,A),A++)}}(I)));0<Object.keys(N).length&&!E&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);E?(H.vdRelatedProducts=N,0<Object.keys(H.vdRelatedProducts).length&&!H.showEmbedAddon&&
B(H,h,H.vdRelatedProducts,b,x)):H.isEmbedAddOn&&H.embedAddon08&&B(H,h,N,b,x)}else if(e){ca=0;u=$jscomp.makeIterator(b);for(P=u.next();!P.done;P=u.next()){var T=$jscomp.makeIterator(P.value.products);for(P=T.next();!P.done;P=T.next())ca++}h.length>=ca&&(h=[]);N={};V=b;var fa=0;for(P={$jscomp$loop$prop$i$326$385:0};P.$jscomp$loop$prop$i$326$385<b.length;P={$jscomp$loop$prop$i$326$385:P.$jscomp$loop$prop$i$326$385},P.$jscomp$loop$prop$i$326$385++)x&&null!=b[P.$jscomp$loop$prop$i$326$385].products&&0<
b[P.$jscomp$loop$prop$i$326$385].products.length&&(D(b[P.$jscomp$loop$prop$i$326$385].products),d.each(b[P.$jscomp$loop$prop$i$326$385].products,function(X){return function(G,z){G="in"!==k?z.modelcode:z.aemSkuCode;var M=N[G]={};M.modelCode=G;M.name=z.name;z.priority&&(M.priority=z.priority);z.picture&&(M.imageUrl=z.picture.url,M.imageUrlAlt=z.picture.altText);z.stock&&(M.stocklevel=z.stock.stockLevelStatus);z.price&&z.price.value&&(M.priceValue=z.price.value,M.price=z.price.formattedValue,M.promotionPriceValue=
z.price.value,M.promotionPrice=z.price.formattedValue);z.promotionPrice&&z.promotionPrice.value&&(M.promotionPriceValue=z.promotionPrice.value,M.promotionPrice=z.promotionPrice.formattedValue);z.lowestWasPrice&&z.lowestWasPrice.value&&(M.lowestWasPriceValue=z.lowestWasPrice.value,M.lowestWasPrice=z.lowestWasPrice.formattedValue);z.commercialFlag&&(M.commercialFlag=z.commercialFlag);z.referenceColor&&(M.referenceColor=z.referenceColor);if(z.groupCode&&0==z.groupId||z.groupCode&&0!=z.groupId)M.groupCode=
z.groupCode,M.groupId=z.groupId;J(z.modelcode)&&(H.hasBundle=!0,ra=b[X.$jscomp$loop$prop$i$326$385].category.display_name,d.extend(z,M),H.addonBundleIdx=X.$jscomp$loop$prop$i$326$385,H.addonBundleData=b[X.$jscomp$loop$prop$i$326$385],U(z.modelcode));M.bundleCategoryName=b[X.$jscomp$loop$prop$i$326$385].category.display_name;E?(r(H,z,M,G,h,fa),fa++):H.isEmbedAddOn&&H.embedAddon08&&(r(H,z,M,G,h,fa),fa++)}}(P)));for(I in N)P=N[I],P.bundleCategoryName===ra&&(J(P.modelCode)||delete N[I]);0<V.length&&V.forEach(function(X,
G){if(X.category.display_name===ra)for(var z in X.products)J(X.products[z].modelcode)||V[G].products.splice(z,1)});0<Object.keys(N).length&&!E&&(l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0),l.sg.components.dynamic.detailSharedObj.hasAddOns=!0);E?(H.vdRelatedProducts=N,0<Object.keys(H.vdRelatedProducts).length&&!H.showEmbedAddon&&B(H,h,H.vdRelatedProducts,b,x)):H.isEmbedAddOn&&H.embedAddon08&&B(H,h,N,b,x)}}function D(E){E.sort(function(b,x){return x.priority&&0!=x.priority?0==b.priority?
1:b.priority-x.priority:b.priority&&0!=b.priority?-1:0})}function r(E,b,x,P,H,ca){var h=E.drawObj,I=ea?b.promotionPriceValue:b.promotionPrice?b.promotionPrice.value:"",u=ea?b.priceValue:b.price.value,A=""+(b.promotionPrice&&I?I:"");I=""+(A?u-I:"");A=""+(A?Granite.I18n.get("Save {0}",currencyComma(I,q)):"");var T=u=null,fa=null;"outofstock"===x.stocklevel.toLowerCase()&&(u=!0,T=" add-on-product--out-of-stock");h.embedAddon.hasComponent=!0;h.embedAddon.title=Granite.I18n.get("Add-on Items");h.embedAddon.isVDSTEPBUYING=
Q||E.mxCategoryEmbedAddon?!0:null;h.embedAddon.newComponent=!0;h.embedAddon.useMobileCTA=!1;2<ca&&h.embedAddon.newComponent&&(fa=" pd-select-option__view-more--hidden");"cl"!==k&&(h.embedAddon.description=Granite.I18n.get("Additional items to complement your purchase"));var X=E.categoryTypeCode?E.categoryTypeCode.substring(0,2):"";"pe"==k&&"08"===X&&(h.embedAddon.title=Granite.I18n.get("Add-on Items(08)"),h.embedAddon.description=Granite.I18n.get("Additional items to complement your purchase(08)"));
H.push({index:ca,name:b.name,nameToLowerCase:b.name?b.name.toLowerCase():"",groupCode:b.groupCode.toLowerCase(),modelCode:P,shopSku:b.modelcode,finalPrice:x.promotionPrice,finalPriceValue:x.promotionPriceValue,originalPrice:!I||u||da?null:x.price,originalPriceValue:I&&!u?e?b.price.value:b.priceValue:null,savePrice:!I||u||da?null:A,savePriceValue:I&&!u?I:null,isOOS:u,isStock:!u,oosClass:T,hideClass:fa,revenue:b.price.value,isLearnMorePopup:Q||E.embedAddon08})}function B(E,b,x,P,H){E.showEmbedAddon=
!0;var ca=E.drawObj,h=E.view;l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(x),function(I,u){if(u&&200===I.response.statusCode&&null!=I.response.resultData&&null!=I.response.resultData.productList){var A=I.response.resultData.productList;3<b.length&&ca.embedAddon.newComponent&&(ca.embedAddon.useMobileCTA=!0);d.each(b,function(T,fa){d.each(A,function(X,G){X=G.modelList;null!=X&&d.each(X,function(z,M){if(fa.modelCode===M.modelCode){if(Q||E.embedAddon08||E.isEmbedAddOn){!M.galleryImage&&
M.thumbUrl&&(M.galleryImage=[M.thumbUrl],M.galleryImageAlt=[M.thumbUrlAlt]);b[T].imgSrc=f(M.thumbUrl);b[T].imgSrcList=M.galleryImage;b[T].imgAlt=M.thumbUrlAlt;b[T].imgAltList=M.galleryImageAlt;b[T].thirdPASeller=G.thirdPASeller;b[T].tradeIn=M.tradeIn;b[T].tradeInDesc=M.tradeInDesc;b[T].premiumCare=M.premiumCare;b[T].premiumCareDesc=M.premiumCareDesc;b[T].financing=M.financing;b[T].financingDesc=M.financingDesc;b[T].upgrade=M.upgrade;b[T].upgradeDesc=M.upgradeDesc;b[T].financingDesc=M.financingDesc;
b[T].storePromotions=M.storePromotions;b[T].vd3PAMarketingMessage=M.vd3PAMarketingMessage;b[T].uspText=M.uspText;b[T].keySummary=M.keySummary;b[T].ratings=M.ratings;b[T].pdpUrl=M.pdpUrl;if(M.topFlags&&M.topFlags.iconTitle&&M.topFlags.iconTypeCd){z=M.topFlags.iconTypeCd;var S="";switch(z.replace(/ /g,"").toUpperCase()){case "N":z=Granite.I18n.get("new");S="badge-icon--bg-color-blue";break;case "H":z=Granite.I18n.get("hot");S="badge-icon--bg-color-red";break;case "B":z=Granite.I18n.get("best seller");
S="badge-icon--bg-color-orange";break;case "U":z=M.topFlags.iconTitle,S="badge-icon--bg-color-teal"}b[T].iconTitle=z;b[T].iconClass=S}if(Q){z="Hybris"===d("#shopIntegrationFlag").val();S="Hybris-intg"===d("#shopIntegrationFlag").val();var W="Hybris-new"===d("#shopIntegrationFlag").val();b[T].uspText&&0<b[T].uspText.length&&(b[T].dotList1=b[T].uspText[0],b[T].dotList2=b[T].uspText[1]?b[T].uspText[1]:"");z&&b[T].marketingMessage&&0<b[T].marketingMessage.length&&(b[T].dotList3=b[T].marketingMessage[0]);
(S||W)&&b[T].storePromotions&&0<b[T].storePromotions.length&&(b[T].dotList3=b[T].storePromotions[0])}}else b[T].imgSrc=f(M.thumbUrl),b[T].imgAlt=M.thumbUrlAlt;b[T].modelName=M.modelName;b[T].pviType=M.pviTypeName?M.pviTypeName.toLowerCase():"";b[T].pviSubtype=M.pviSubtypeName?M.pviSubtypeName.toLowerCase():"";b[T].categorySubType=G.categorySubTypeName?G.categorySubTypeName:G.categorySubTypeEngName;M=!0;Y&&(M=!1);M||(b[T].originalPrice=b[T].originalPriceValue=b[T].savePrice=b[T].savePriceValue=null)}})})});
0<b.length&&(h.embedAddonDraw(E,ca),0<d(".pd-select-option__view-more").length&&l.sg.common.icon.redrawSvgs(document.querySelector(".pd-select-option__view-more")),l.sg.components.PDbuyingToolNew.reInit())}})}function J(E){return E?"F-"==E.substring(0,2):!1}function U(E){var b=l.sg.components.dynamic.detailSharedObj;ea?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(b,E,function(x,P){y={};y.bundleModelCode=E;P&&null!=x.products&&0<x.products.length&&(d.each(x.products,
function(H,ca){H=ca.modelcode;var h=y[H]={};h.modelCode=H;h.name=ca.name;ca.imageUrl&&(h.imageUrl=ca.imageUrl);ca.imageUrlAlt&&(h.imageUrlAlt=ca.imageUrlAlt);ca.stocklevel&&(h.stocklevel=ca.stocklevel);ca.price&&ca.priceValue&&(h.priceValue=ca.priceValue,h.price=ca.price,h.promotionPriceValue=ca.priceValue,h.promotionPrice=ca.price);ca.promotionPrice&&ca.promotionPriceValue&&(h.promotionPriceValue=ca.promotionPriceValue,h.promotionPrice=ca.promotionPrice);if(ca.groupCode&&0==ca.groupId||ca.groupCode&&
0!=ca.groupId)h.groupCode=ca.groupCode,h.groupId=ca.groupId;ca.colorCode&&(h.colorCode=ca.colorCode)}),R.push(y));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"}):e&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(E,function(x,P){y={};y.bundleModelCode=E;P&&null!=x.products&&0<x.products.length&&(d.each(x.products,function(H,ca){H=ca.modelcode;var h=y[H]={};h.modelCode=H;h.name=ca.name;ca.picture&&(h.imageUrl=ca.picture.url,h.imageUrlAlt=ca.picture.altText);
ca.stock&&(h.stocklevel=ca.stock.stockLevelStatus);ca.price&&ca.price.value&&(h.priceValue=ca.price.value,h.price=ca.price.formattedValue,h.promotionPriceValue=ca.price.value,h.promotionPrice=ca.price.formattedValue);ca.promotionPrice&&ca.promotionPrice.value&&(h.promotionPriceValue=ca.promotionPrice.value,h.promotionPrice=ca.promotionPrice.formattedValue);if(ca.groupCode&&0==ca.groupId||ca.groupCode&&0!=ca.groupId)h.groupCode=ca.groupCode,h.groupId=ca.groupId;ca.colorCode&&(h.colorCode=ca.colorCode)}),
R.push(y));b.addonBundleRelatedData=R},null,{queryType:"SELECTION_OF_BUNDLE"})}function O(E,b){d.each(b,function(x,P){d.each(E,function(H,ca){var h=ca.modelList;null!=h&&(w(h,ca.chipOptions,b),d.each(h,function(I,u){var A=u.modelCode,T=b[A].stocklevel||"";b[A]&&(u.displayName||(u.displayName=b[A].name||""),u.thumbUrlAlt=b[A].imageUrlAlt||"",u.priceDisplay=b[A].price||"",u.promotionPriceDisplay=b[A].promotionPrice||"",u.lowestWasPriceDisplay=b[A].lowestWasPrice||"",u.price=b[A].priceValue||"",u.promotionPrice=
b[A].promotionPriceValue||"",u.lowestWasPrice=b[A].lowestWasPriceValue||"",u.stocklevel=T,u.isStock=!(""===T||"OUTOFSTOCK"===T.toUpperCase()),u.idx=String(H)+"-"+String(I),u.commercialFlag=b[A].commercialFlag||"",u.referenceColor=b[A].referenceColor||"",u.childModelCode=b[A].childModelCode||"")}))})})}function w(E,b,x){d.each(E,function(P,H){P=H.modelCode;if(x[P]){var ca=x[P].priority||0;H.priority=ca;H.fmyChipList&&d.each(H.fmyChipList,function(h,I){I.fmyChipType&&"color"==I.fmyChipType.toLowerCase()&&
d.each(b,function(u,A){A.fmyChipType&&"color"==A.fmyChipType.toLowerCase()&&d.each(A.optionList,function(T,fa){fa.optionCode==I.fmyChipCode&&(fa.priority=ca)})})})}});E.sort(function(P,H){return 0==H.priority?0==P.priority?0:-1:0==P.priority?1:P.priority-H.priority});d.each(b,function(P,H){"color"==H.fmyChipType.toLowerCase()&&H.optionList.sort(function(ca,h){return 0==h.priority?0==ca.priority?0:-1:0==ca.priority?1:ca.priority-h.priority})})}function t(E){var b=l.sg.components.dynamic.detailSharedObj;
ka={};var x=0,P={},H=[],ca=[];if(Q&&!b.newEmbedVDCountry){var h=b.soundbarCategoryData&&0<Object.keys(b.soundbarCategoryData).length?!0:!1,I=b.globalServiceInfo.embedaddon&&0<b.globalServiceInfo.embedaddon.length?!0:!1;Q&&h&&I&&(V=V.filter(function(u){var A=u.category.id.replace(/_/g,"").replace(/ /g,"").toLowerCase();if(-1===A.indexOf("soundbar")&&-1===A.indexOf("sounddevice"))return u}))}d.each(V,function(u,A){d.each(V[u].products,function(T,fa){d.each(E,function(X,G){var z=G.familyId;d.each(G.modelList,
function(M,S){if(fa.modelcode==("in"!==k?S.modelCode:S.shopSKU)){var W=C(G);if("cn"==k&&"01090100"==W.categorySubTypeCode){var ba=S.fmyChipList.filter(function(ia){return"RING SIZE"==ia.fmyChipType})[0].fmyChipCode;-1==ca.indexOf(W.familyId+"_"+ba)&&(W.familyId=z+"_"+ba,W.chipOptions=W.chipOptions.map(function(ia){if("RING SIZE"==ia.fmyChipType)return Object.assign({},ia,{optionList:ia.optionList.filter(function(qa){return qa.optionCode==ba})});var ta=[];W.modelList.filter(function(qa){return qa.fmyChipList[0].fmyChipCode==
ba}).forEach(function(qa){qa.fmyChipList.forEach(function(za){"COLOR"==za.fmyChipType&&ta.push({multiColorList:za.multiColorList,multiColorYN:za.multiColorYN,optionCode:za.fmyChipCode,optionLocalName:za.fmyChipLocalName,optionName:za.fmyChipName,priority:0})})});return Object.assign({},ia,{optionList:ta})}),W.modelList=W.modelList.filter(function(ia){return ia.fmyChipList[0].fmyChipCode==ba}),H.push(W),ca.push(W.familyId))}else-1==ca.indexOf(W.familyId)&&(H.push(W),ca.push(W.familyId));P={category:{display_name:A.category.display_name,
cxpCategoryDescription:A.category.cxpCategoryDescription||"",id:A.category.id,order:A.category.order,productList:H,key:x}};ka[x]=P}})})});ca=[];H=[];x++});x=0;h=b.addonBundleIdx;!ka[h]&&b.hasBundle&&(b=b.addonBundleData,ka[h]={category:{display_name:b.category.display_name,id:b.category.id,key:h,order:b.category.order,productList:b.products}});h=Object.keys(ka);b=[];h=$jscomp.makeIterator(h);for(I=h.next();!I.done;I=h.next())b[x]=ka[I.value],b[x].category.id=x++;b.sort(function(u,A){return u.category.order-
A.category.order});d.each(b,function(u,A){d.each(A.category.productList,function(T,fa){d.each(fa.modelList,function(X,G){G.idx=T+"-"+G.idx.split("-")[1]})})});return b}function C(E){for(var b={},x=$jscomp.makeIterator(Object.entries(E)),P=x.next();!P.done;P=x.next()){var H=$jscomp.makeIterator(P.value);P=H.next().value;H=H.next().value;b[P]=H}x=[];for(P=0;P<E.modelList.length;P++){H={};for(var ca=$jscomp.makeIterator(Object.entries(E.modelList[P])),h=ca.next();!h.done;h=ca.next()){var I=$jscomp.makeIterator(h.value);
h=I.next().value;I=I.next().value;H[h]=I}x.push(H)}b.modelList=x;return b}function v(E){var b=l.sg.components.dynamic.detailSharedObj,x=[];Aa=[];e&&(sa=[]);if(0<Object.keys(ka).length){d.each(ka,function(h,I){null!=I.category.id&&void 0!=I.category.id&&0>Aa.indexOf(I.category.id)&&(x={categoryId:I.category.id,categoryOrder:I.category.order,display_name:I.category.display_name,cxpCategoryDescription:I.category.cxpCategoryDescription},Aa.push(I.category.id),sa.push(x))});sa.sort(function(h,I){return h.categoryOrder-
I.categoryOrder});Aa=[];for(E=0;E<sa.length;E++)Aa.push(sa[E].categoryId);var P="",H=d(".pdd16-step-buying__headline"),ca=d(".pdd16-step-buying__sub-headline");b.useAddonV2&&(H=d(".pdd16-step-buying-v2__headline"),ca=d(".pdd16-step-buying-v2__sub-headline"));d.each(Aa,function(h,I){I="es"===k?"Choose yours {0}":"Choose your {0}";0==h&&Q?(H[0].innerHTML=Granite.I18n.get(I,sa[h].display_name),F?(ca.text(Granite.I18n.get("addon subtitle")),"nl"===k&&b.addonStepBuying0701&&(H.text(Granite.I18n.get("addon title(monitor)")),
ca.text(Granite.I18n.get("addon subtitle(monitor)")))):("ch"===k||"ch_fr"===k)&&b.addonStepBuying04&&H.text(Granite.I18n.get("addon title(tv)"))):Q||b.hasVoucher||"se"===k||"no"===k||"dk"===k||"fi"===k||(H[0].innerHTML=Granite.I18n.get("Amazing additions"),ca.css("display","none"));P+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';P+='\t\t\t\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-tab-option_click1" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+
sa[h].display_name+':tab"\x3e'+sa[h].display_name;P+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';P+="\t\t\t\t\x3c/button\x3e";P+="\t\t\t\x3c/li\x3e"})}else P="",H=d(".pdd16-step-buying__headline"),P+='\t\t\t\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e',P+='\t\t\t\t\x3cbutton class\x3d"tab__item-title" role\x3d"tab" an-tr\x3d"pdd16_step buying-product detail-tab-option_click1" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+ra+':tab"\x3e'+ra,P+='\t\t\t\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e',
P+="\t\t\t\t\x3c/button\x3e",P+="\t\t\t\x3c/li\x3e";0<d(".tab__list").length&&d(".tab__list").html(P)}function f(E,b,x){b="";var P=d("#scene7domain").val();E&&(-1<E.indexOf("?")&&(E=E.replace("medias",""),E=E.substring(2,E.indexOf("?")),E=E.substring(0,E.lastIndexOf("-"))),-1<E.indexOf("https:")||-1<E.indexOf("http:")||-1<E.indexOf("//stg-images.quick3d.org/")||-1<E.indexOf("//images.quick3d.org/")||-1<E.indexOf("image.quick3d.org/")||-1<E.indexOf("//stg-images.quick3d.org.cn/")||-1<E.indexOf("//images.quick3d.org.cn/")||
-1<E.indexOf("image.quick3d.org.cn/")?b=E:(x&&(P=P.replace("/image/","/content/")),b=P+E));return b}l.sg.sdf.util.prepareNamespace("sg.components.dynamic");var q=d("#priceCurrency").val(),k=d("#siteCode").val(),F="nl"===k||"be"===k||"be_fr"===k,ea="Hybris"===d("#shopIntegrationFlag").val()||"Hybris-intg"===d("#shopIntegrationFlag").val(),e="Hybris-new"===d("#shopIntegrationFlag").val(),n=d("#categorySubTypeCode").val(),Q=2<n.length&&"04"===n.substring(0,2)||4<n.length&&"0701"===n.substring(0,4),Y=
"pl"===k||"si"===k||"gr"===k||"fi"===k||"it"===k||"se"===k||"no"===k||"dk"===k||"fr"===k?!0:!1,N={},y={},R=[],V={},ka={},va="",Aa=[],sa=[],ha="",ra="";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 da="true"===d("#isEppPage").val()&&"pl"===k?!0:!1;"true"===d("#isEppPage").val()&&(Y="Y"===eppOmniPricingUseYn?!0:!1);l.sg.components.dynamic.bridgePageCommon=
{getRelatedProductsSimpleInfo:function(E){var b=l.sg.components.dynamic.detailSharedObj;ea?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!1,b,E,function(x,P){x&&0<x.length&&K(!1,x,P,b.embedAddon08)},null,{queryType:"ACCESSORIES"}):e&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(E,function(x,P){x&&0<x.length&&K(!1,x,P,b.embedAddon08)},null,{queryType:"ACCESSORIES"})},getRelatedProductsVdSimpleInfo:function(E){var b=
l.sg.components.dynamic.detailSharedObj;ea?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOnsOldHybris(!0,b,E,function(x,P){x&&0<x.length&&K(!0,x,P,!0)},null,{queryType:"DISPLAY_ON_PDP"}):e&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxAddOns(E,function(x,P){x&&0<x.length&&K(!0,x,P,!0)},null,{queryType:"DISPLAY_ON_PDP"})},getSearchProductcard:function(E){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(N),
function(b,x){x&&200===b.response.statusCode&&null!=b.response.resultData&&null!=b.response.resultData.productList&&(b=b.response.resultData.productList,O(b,N),b=t(b),v(va),E(b))},null,null)},setPriceInfo:function(E){var b=E.price,x=E.promotionPrice,P=Number((b-x).toFixed(2)),H=currencyComma(P,q),ca=F||!E.priceDisplay?currencyComma(b,q):E.priceDisplay,h=F||!E.promotionPriceDisplay?currencyComma(x,q):E.promotionPriceDisplay,I=E.lowestWasPrice?parseFloat(E.lowestWasPrice):0,u="co"===k&&"true"===E.vatEligible&&
E.vatFreePrice&&E.vatFreePriceDisplay;return{promotionPrice:x,productPrice:b,savePriceTemp:P,saveText:H,productPriceDisplay:ca,promotionPriceDisplay:h,lowestWasPrice:I,vatPrice:u?E.vatFreePriceDisplay:"",vatPriceValue:u?E.vatPriceValue:""}},getBundleCategoryName:function(){return ra},getRelatedProductsSimpleBundle:U,getBundleSearchProductcard:function(E){l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(y),function(b,x){if(x&&200===b.response.statusCode&&null!=b.response.resultData&&
null!=b.response.resultData.productList){var P=b.response.resultData.productList;d.each(y,function(H,ca){d.each(P,function(h,I){I=I.modelList;null!=I&&d.each(I,function(u,A){var T=A.modelCode,fa=y[T].stocklevel||"";y[T]&&(A.displayName||(A.displayName=y[T].name||""),A.thumbUrlAlt=y[T].imageUrlAlt||"",A.priceDisplay=y[T].price||"",A.promotionPriceDisplay=y[T].promotionPrice||"",A.price=y[T].priceValue||"",A.promotionPrice=y[T].promotionPriceValue||"",A.stocklevel=fa,A.isStock=!(""===fa||"OUTOFSTOCK"===
fa.toUpperCase()),A.idx=String(h)+"-"+String(u),A.commercialFlag=y[T].commercialFlag||"",A.referenceColor=y[T].referenceColor||"",A.childModelCode=y[T].childModelCode||"")})})});ha=P;E(ha)}},null,null)},categoryGridGPv2:function(){var E="";l.sg.components.dynamic.detailSharedObj.addOnCategoryList.forEach(function(b){E+='\x3cli class\x3d"tab__item" role\x3d"presentation"\x3e';E+='\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;E+='\t\t\x3cspan class\x3d"tab__item-line"\x3e\x3c/span\x3e';E+="\t\x3c/button\x3e";E+="\x3c/li\x3e"});d(".pdd16-step-buying .tab__list").html(E)}}})(window,window.jQuery);
(function(l,d){function K(G,z){l.sg.components.dynamic.detailSharedObj.commonApiModel.historyBackEvent();ka=Y?[].concat($jscomp.arrayFromIterable(new Set(F.addOnGift.products.map(function(S){return S.family_id})))).map(function(S,W){return function(ba){ba=void 0===ba?{}:ba;return{familyId:S,chipOptions:ba.chipOptions,modelList:(void 0===ba.modelList?[]:ba.modelList).filter(function(ia){var ta=ia.modelCode;return F.addOnGift.products.some(function(qa){var za=qa.modelCode;return qa.family_id===S&&za===
ta})}).map(function(ia,ta){var qa=F.addOnGift.products[ta],za=!(""===qa.inventory.status||"OUTOFSTOCK"===qa.inventory.status.toUpperCase());return Object.assign({},ia,{idx:W+"-"+ta,stocklevel:qa.inventory.status,isStock:za,displayName:qa.displayName})})}}(F.addOnSearchGPv2.find(function(ba,ia){return ba.familyId===S}))}).filter(function(S){return 0<S.modelList.length}):G;if(z||null!=ka&&0!==Object.keys(ka).length){U(ka);T.get("useTnc")&&T.get("useTncFromAPI")&&(A=v(),G=T.get("tncAPIContext")?T.get("tncAPIContext"):
"",A.render(G));l.scrollTo(0,0);d(".pdd16-step-buying__promotion-banner").hide();d(".pdd16-step-buying").show();k.hide();if(Y||N){G=d("[class*\x3d'feature-benefit']");for(z=0;z<G.length;z++)G[z].remove();G=d("[class*\x3d'three-column-carousel']");for(z=0;z<G.length;z++)G[z].remove();d(".video-wrapper").remove();G=d(".root.responsivegrid \x3e div");for(var M=0;M<G.length;M++)z=G[M].classList,z.value.includes("aem-Grid--12")||G[M].remove();0<d(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").length&&
d(".root.responsivegrid").siblings(".aem-GridColumn.aem-GridColumn--default--12").hide()}if(y)for(G=d(".root.responsivegrid \x3e div"),M=0;M<G.length;M++)z=G[M].classList,z.value.includes("aem-Grid--default--12")||G[M].remove();d(".pdd16-step-buying").siblings().add(d(".pdd16-step-buying").parent().siblings()).hide();setTimeout(function(){l.sg.components.stepbuying.init()},10);0===d(".scrollbar__contents .pdd16-step-buying__card").not(".is-item-visible").length&&d(".pdd16-step-buying__cta-more").hide();
_satellite.setVar("Add Page Name","free gift");_satellite.track("page view")}else(!R||R&&"in"===ea)&&F.addonsFlag&&(F.hasAddOns=!0),F.hasAddOns?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():setInterval(function(){q.DetailAfterEvent.addToCartCta([],!0,!0)},1E3)}function D(G,z){for(var M=0;M<G.length;M++)if(G[M]===z)return!0;return!1}function r(G,z,M){z="";var S=d("#scene7domain").val();G&&(-1<G.indexOf("?")&&(G=G.replace("medias",""),G=G.substring(2,G.indexOf("?")),G=G.substring(0,
G.lastIndexOf("-"))),-1<G.indexOf("https:")||-1<G.indexOf("http:")||-1<G.indexOf("//stg-images.quick3d.org/")||-1<G.indexOf("//images.quick3d.org/")||-1<G.indexOf("image.quick3d.org/")||-1<G.indexOf("//stg-images.quick3d.org.cn/")||-1<G.indexOf("//images.quick3d.org.cn/")||-1<G.indexOf("image.quick3d.org.cn/")?z=G:(M&&(S=S.replace("/image/","/content/")),z=S+G));return z}function B(G){var z="",M=G.modelList[G.frontModelIdx],S=M.idx==X,W=M.fmyChipList,ba="";if(W&&0<W.length)for(var ia=0;ia<W.length;ia++)if("COLOR"==
W[ia].fmyChipType){ba=""!==M.fmyChipList[ia].fmyChipLocalName?M.fmyChipList[ia].fmyChipLocalName:M.fmyChipList[ia].fmyChipName;break}W=M.isStock;var ta=V.setPriceInfo(M),qa="";ia=M.idx.split("-")[0];M.thumbUrl&&(qa='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+r(M.thumbUrl,"$LazyLoad_Home_PNG$")+'" data-mobile-src\x3d"'+r(M.thumbUrl,"$LazyLoad_Home_PNG$")+'" alt\x3d"'+M.thumbUrlAlt+'" role\x3d"img"\x3e\n\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+
r(M.thumbUrl,"$240_240_PNG$")+'" data-mobile-src\x3d"'+r(M.thumbUrl,"$480_480_PNG$")+'" alt\x3d"'+M.thumbUrlAlt+'" role\x3d"img"\x3e');z+='\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+M.displayName+'\x3c/strong\x3e\n                \x3cdiv class\x3d"pdd16-step-buying__tooltip"\x3e'+M.displayName+'\x3c/div\x3e\n            \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t'+qa+"\n\t\t\t\x3c/div\x3e\n\t\t\t\t";qa="";W||(qa=
u);var za=Y?": "+ba:"\x26nbsp;"+ba;ba='\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'+(""!=ba?'\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'+za+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e":"")+"\n\t\t\t\t\t";za="";if(G.viewOptionObj&&0<Object.keys(G.viewOptionObj).length){var na=
"",a=0,c=G.viewOptionObj,m=G.optionTypeList,g;for(g in G.viewOptionObj){var p=g.toLowerCase().replace(/ /g,"-"),aa=G.viewOptionObj[g].optionList,L="";G.viewOptionObj[g].styleAttr&&(L=G.viewOptionObj[g].styleAttr);if("COLOR"===g){var ma="";L="";for(var ua in aa){var ja=aa.length;var xa=aa[ua];var Ia=!1;var Ka=xa.modelIdx.split(",");if(null!=xa.modelIdx&&D(Ka,String(G.frontModelIdx))){Ia=!0;ma=xa.modelIdx;var Ea=""}else if(Ea=" is-disabled",0===a)Ea="";else{var Ha=na.split(","),Sa;for(Sa in Ka)if(D(Ha,
Ka[Sa])){Ea="";break}}Ha=Ka="";if(""===Ea){var Ga=xa.modelIdx;var pa=[],Oa=!0,Ca;for(Ca in c)if(Ca!==g){var Pa=c[Ca].optionList,Fa;for(Fa in Pa){var Na=Pa[Fa];Na=Na.modelIdx;var Ta=Na.split(",");-1<Ta.indexOf(String(G.frontModelIdx))&&pa.push(Na)}}Ga=fa(c,Ga,pa,Oa,m);G.modelList.length>Ga&&G.modelList[Ga]&&(Ka=G.modelList[Ga].modelCode,Ha=G.modelList[Ga].modelName)}pa="pdd16-"+p+"-"+ua+"-"+G.modelList[Ga].idx;Oa="pdd16-"+p+"-"+ua+"-"+G.modelList[Ga].idx;var Ua=xa.multiColorYN;Ia='\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color"\x3e\n\t\t\t\t\t\t\t\t\t\x3cinput type\x3d"radio" id\x3d"'+
pa+'" name\x3d"'+Oa+'" data-modeli\x3d"'+Ga+'" '+(Ia?" checked":"")+(""===Ea?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-'+n+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+g.toLowerCase()+":"+xa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Ka+'" data-modelname\x3d"'+Ha+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+pa+'"\x3e\n\t\t\t\t\t\t\t\t\t\t';Ka="";if("Y"!=Ua)Ka='\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+
xa.optionCode+'"\x3e'+xa.optionLocalName+"\x3c/span\x3e";else if(Ea=xa.multiColorList){Ha=Ea.optionCodeList;Ua="";switch(Ea.optionColorType){case "C1":Ua='\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"'+
Ha[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":Ua='\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"'+
Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7232a18,18,0,0,1,18,18,18,18,0,0,1-18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
break;case "C2_B":Ua='\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"'+
Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250h36a18,18,0,0,1-18,18A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
break;case "C3_A":Ua='\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"'+
Ha[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"'+
Ha[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"'+
Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,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":Ua='\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"'+
Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,34.974V1.024a18.086,18.086,0,0,1,12,0v33.95a18.085,18.085,0,0,1-12,0Z" transform\x3d"translate(12 0)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,16.975A18.007,18.007,0,0,0,12,33.95V0A18.007,18.007,0,0,0,0,16.975Z" transform\x3d"translate(36 34.975) rotate(180)" fill\x3d"'+Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,35A17,17,0,0,0,30.02,5.979,17,17,0,1,0,5.979,30.019,16.889,16.889,0,0,0,18,35m0,1A18,18,0,1,1,36,18,18,18,0,0,1,18,36Z" transform\x3d"translate(0)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
break;case "C3_C":Ua='\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"'+
Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,34.974V1.024a18.086,18.086,0,0,1,12,0v33.95a18.085,18.085,0,0,1-12,0Z" transform\x3d"translate(12 0)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,16.975A18.007,18.007,0,0,0,12,33.95V0A18.007,18.007,0,0,0,0,16.975Z" transform\x3d"translate(36 34.975) rotate(180)" fill\x3d"'+Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,35A17,17,0,0,0,30.02,5.979,17,17,0,1,0,5.979,30.019,16.889,16.889,0,0,0,18,35m0,1A18,18,0,1,1,36,18,18,18,0,0,1,18,36Z" transform\x3d"translate(0)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
break;case "C4_A":Ua='\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"'+
Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7250v-18a18,18,0,0,1,18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3377,7250h18a18,18,0,0,1-18,18Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M-3395,7250h18v18h0A18,18,0,0,1-3395,7250Z" transform\x3d"translate(3413 -7241)" fill\x3d"'+Ha[3]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.019,17,17,0,1,0,30.02,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(17.999 -9)" fill\x3d"rgba(0,0,0,0.5)" /\x3e\n\t\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/span\x3e';
break;case "CP":Ua='\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"'+
Ha[0]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,9A17.9,17.9,0,0,1,6.584,2.41,18.351,18.351,0,0,1,9.257,1.145a18.061,18.061,0,0,1,3.667-.95l.132-.019.019,0A18.137,18.137,0,0,1,15.582,0V18Z" transform\x3d"translate(-27.587 0)" fill\x3d"'+Ha[1]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,18V0A18.223,18.223,0,0,1,2.05.115,18.011,18.011,0,0,1,7.021,1.427l.068.026a.028.028,0,0,0,.015.008,17.506,17.506,0,0,1,1.89.949,18.328,18.328,0,0,1,2.047,1.376l.046.035.052.041A18.106,18.106,0,0,1,15.585,9Z" transform\x3d"translate(-12.003 0)" fill\x3d"'+
Ha[2]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,9,15.583,0a18.31,18.31,0,0,1,.9,1.785l.045.1v0A18.087,18.087,0,0,1,18,8.808c0,.023,0,.048,0,.072s0,.064,0,.1a18.082,18.082,0,0,1-1.621,7.483l-.033.073-.027.058q-.332.71-.731,1.4Z" transform\x3d"translate(-12.004 8.997)" fill\x3d"'+Ha[3]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M0,0,15.585,9a18.082,18.082,0,0,1-2.041,2.858l-.014.016-.078.089a18.166,18.166,0,0,1-2.672,2.457l-.027.02-.1.075A18.057,18.057,0,0,1,.86,17.979L.7,17.986H.688C.46,18,.23,18,0,18Z" transform\x3d"translate(-12.005 17.994)" fill\x3d"'+
Ha[4]+'" /\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M14.717,17.98a18.082,18.082,0,0,1-9.094-2.987l-.054-.036-.062-.042A18.087,18.087,0,0,1,1.3,10.942h0l-.1-.127A18.134,18.134,0,0,1,0,9L15.589,0V18C15.3,18,15.006,17.994,14.717,17.98Z" transform\x3d"translate(-27.593 17.993)" fill\x3d"'+Ha[5]+'" /\x3e\n\t\t\t\t\t\t\x3c!--/* [D] \uc81c\uc77c \ub9c8\uc9c0\ub9c9 path\uc758 fill \uc18d\uc131 \uac12\uc740 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c */--\x3e\n\t\t\t\t\t\t\x3cpath d\x3d"M18,1A17,17,0,0,0,5.979,30.021,17,17,0,1,0,30.021,5.979,16.889,16.889,0,0,0,18,1m0-1A18,18,0,1,1,0,18,18,18,0,0,1,18,0Z" transform\x3d"translate(-30.004 0)" fill\x3d"rgba(29,29,27,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'}Ka+=
Ua}L+=Ia+Ka+'\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+xa.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"}na=ma;za+='\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'+
L+'\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<ja?'\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<ja?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e':"")+"\n\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t"}else if("MOBILE MEMORY"===
g||"TV SIZE"===g||"HOME APPLIANCE SIZE"===g||"MONITOR SCREEN SIZE"===g){Ua=ma="";for(var Z=0;Z<aa.length;Z++){var Ba=aa.length;xa=aa[Z];Ia=!1;Ka=xa.modelIdx.split(",");if(null!=xa.modelIdx&&D(Ka,String(G.frontModelIdx)))Ia=!0,ma=xa.modelIdx,Ea="";else if(Ea=" is-disabled",0===a)Ea="";else for(Sa in Ha=na.split(","),Ka)if(D(Ha,Ka[Sa])){Ea="";break}Ha=Ka="";if(""===Ea){Ga=xa.modelIdx;pa=[];Oa=!1;for(Ca in c)if(Ca!==g)for(Fa in Pa=c[Ca].optionList,Pa)Na=Pa[Fa],Na=Na.modelIdx,Ta=Na.split(","),-1<Ta.indexOf(String(G.frontModelIdx))&&
pa.push(Na);Ga=fa(c,Ga,pa,Oa,m);G.modelList.length>Ga&&G.modelList[Ga]&&(Ka=G.modelList[Ga].modelCode,Ha=G.modelList[Ga].modelName)}pa="pdd16-"+p+"-"+Z+"-"+G.modelList[Ga].idx;Oa="pdd16-"+p+"-"+G.modelList[Ga].idx;Ua+='\x3cspan class\x3d"option-selector__swiper-slide'+Ea+'"\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"'+pa+'" name\x3d"'+Oa+'" data-modeli\x3d"'+Ga+'" '+(Ia?" checked":"")+(""===Ea?"":" disabled")+'\n\t\t\t\t\t\t\t\t\t\tan-tr\x3d"pdd16_product bought together-'+
n+'-select-option" an-ca\x3d"option click" an-ac\x3d"bridge" an-la\x3d"add-on:'+g.toLowerCase()+":"+xa.optionName.toLowerCase()+'"\n\t\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+Ka+'" data-modelname\x3d"'+Ha+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+pa+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+xa.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"}na=
ma;za+='\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"'+L+'"\x3e\n\t\t\t\t\t\t\t\t\t\t'+Ua+'\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<Ba?'\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<Ba?'\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++}}z+=ba+za+' \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'+qa+"\x3c/p\x3e\n\t\t\t\x3c/div\x3e";
Q&&(z=null!=ta.promotionPrice&&""!==ta.promotionPrice&&"0"!=ta.promotionPrice?z+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t                \x3cstrong class\x3d"card-price"\x3e'+ta.promotionPriceDisplay+'\x3c/strong\x3e\n\t\t                \x3cspan class\x3d"card-was"\x3e\n\t\t                  \x3cspan class\x3d"hidden"\x3eOriginal Price: '+ta.productPriceDisplay+'\x3c/span\x3e\n\t\t                  \x3cinput type\x3d"hidden" value\x3d"'+ta.promotionPrice+'"\x3e\n\t\t                  \x3cdel\x3e'+
ta.productPriceDisplay+"\x3c/del\x3e\n\t\t                \x3c/span\x3e\n\t\t              \x3c/div\x3e"):z+('\x3cdiv class\x3d"pdd16-step-buying__card-price"\x3e\n\t\t                \x3cstrong class\x3d"card-price"\x3e'+ta.productPriceDisplay+"\x3c/strong\x3e\n\t\t              \x3c/div\x3e"));G=Y?M.shopSKU:"in"!==ea?M.modelCode:G=M.shopSKU;z+='\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-'+
ia+'" data-modelcode\x3d"'+G+'" data-modelname\x3d"'+M.modelName+'" data-shopsku\x3d"'+M.shopSKU+'" '+(W?"":"disabled checked")+" "+(S?" checked":"")+'\x3e\n                      \x3clabel class\x3d"radio-v2__label" for\x3d"radio-id-'+ia+'"\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"'+M.idx+'" data-modelcode\x3d"'+G+'"\x3e\n\t\t\t\t\t\t\t\t\t'+z+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e"}function J(G,z){null==G.modelList[z].displayName&&(G.modelList[z].displayName="");var M={};for(ia in G.modelList){var S=G.modelList[ia].fmyChipList,W;for(W in S){var ba=S[W].fmyChipType+"+"+S[W].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+S[W].fmyChipLocalName.replace('"',"").replace("\x26quot;","");M[ba]=void 0==M[ba]?ia:M[ba]+
(","+ia)}}var ia=[];S={};if(G.chipOptions)for(W=0;W<G.chipOptions.length;W++){var ta=G.chipOptions[W],qa=ta.fmyChipType,za=ta.optionList,na;for(na in za)ba=ta.fmyChipType+"+"+za[na].optionCode.replace('"',"").replace("\x26quot;","")+"+"+za[na].optionLocalName.replace('"',"").replace("\x26quot;",""),void 0!=M[ba]&&(za[na].modelIdx=M[ba]);S[qa]={};S[qa].optionList=za;ia.push(qa)}G.viewOptionObj=S;G.optionTypeList=ia;G.frontModelIdx=z;return G}function U(G){F.addonGiftBundleRelatedData=F.addonGiftBundleRelatedData.filter(function(a,
c,m){return c===m.findIndex(function(g){return g.bundleModelCode===a.bundleModelCode})});var z="";if(Y){var M=F.addOnGift.expanded.product_tags.GIFT;M=M.formatted_sales_pitch?M.formatted_sales_pitch:M.sales_pitch;d(".pdd16-step-buying__headline").html(M)}else{var S=l.sg.components.dynamic.detailSharedObj.giftdataHybris;d.each(S,function(a,c){"maintitle"===S[a].key.toLowerCase()&&d(".pdd16-step-buying__headline").html(S[a].value);"subtitle"===S[a].key.toLowerCase()&&(d(".pdd16-step-buying__sub-headline").html(S[a].value),
d(".pdd16-step-buying__sub-headline").css("display",""));"description"===S[a].key.toLowerCase()&&(d(".pdd16-step-buying__disclaimer p").html(S[a].value),d(".pdd16-step-buying__disclaimer").css("display",""))})}sa=d(".pdd16-step-buying__header-price-text")[0].innerHTML;if(0<G.length){for(var W="",ba=0;ba<G.length;ba++)if(M=G[ba],null!=M.modelList&&0<M.modelList.length){ra=0;for(var ia=null,ta=0;ta<M.modelList.length;ta++){var qa=M.modelList[ta],za=qa.isStock;qa.selected&&"Y"===qa.selected&&(ra=ta,
za&&(ia=ta))}if(null==ia)for(ta=0;ta<M.modelList.length;ta++)if(qa=M.modelList[ta],qa.isStock){ia=ta;break}null==ia&&(ia=ra);M=J(M,ia);W+=B(M)}l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(F.hasGiftBundle)for(var na in F.addonGiftBundleRelatedData)W+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+O(na)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";G=F.giftdataHybris;na="";na=!1;if(G.length)for(ba=0;ba<G.length;ba++)"freeSmc"==G[ba].key&&"Y"==G[ba].value&&
(na=!0);if(na)for(G=F.hybrisCareData.smcs,na=0;na<G.length;na++)if(null==G[na].paymentCycle||"MONTHLY"!=G[na].paymentCycle.toUpperCase()){G=G[na];na=t(G);W+='\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'+na+"\n\t\t\t\t\t\t\t\t\x3c/div\x3e";break}z+='\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'+
W+'\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"'+ca+'"\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'+ca+'\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';
W=""}else{z="";l.sg.components.dynamic.detailSharedObj.drawObj.care||configuratorCare.setProductInfo();if(F.hasGiftBundle)for(ba in F.addonGiftBundleRelatedData)z+='\x3cdiv class\x3d"pdd16-step-buying__card"\x3e\n\t\t\t\t\t\t\t\t'+O(ba)+"\n\t\t\t\t\t\t\t\x3c/div\x3e";G=F.giftdataHybris;na="";na=!1;if(G.length)for(ba=0;ba<G.length;ba++)"freeSmc"==G[ba].key&&"Y"==G[ba].value&&(na=!0);if(na){G=F.hybrisCareData.smcs;for(na=0;na<G.length;na++)if(null==G[na].paymentCycle||"MONTHLY"!=G[na].paymentCycle.toUpperCase()){W=
G[na];break}na=t(W);z+='\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'+na+"\n\t\t\t\t\t\t\x3c/div\x3e"}z='\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'+
z+'\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"'+ca+'"\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'+ca+'\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'}d(".pdd16-step-buying .pdd16-step-buying__card-wrap .swiper-wrapper").html(z);
W=d(".radio-v2 input");G=W.closest(".pdd16-step-buying--free-gift").find(".pdd16-step-buying__card-state p");z=!1;for(na=0;na<G.length;na++)if(ba=W[na].getAttribute("id"),M=W[na].getAttribute("class"),G[na].innerText.toUpperCase()!=u.toUpperCase()&&"radio-id-99"!=ba&&"radio-id-SC"!=ba&&!M.includes("cta--bundle")){W[na].setAttribute("checked",!0);Aa.push(W[na].getAttribute("data-modelcode"));z=!0;break}G=0;na="";na=d(".pdd16-step-buying--free-gift .pdd16-step-buying__card-state p");for(ba=0;ba<na.length;ba++)na[ba].innerText.toUpperCase()==
u.toUpperCase()&&"radio-id-SC"!=W[ba].getAttribute("id")&&G++;G==na.length?(E=!0,na=Granite.I18n.get("Skip"),z=!0):(na="",na=Granite.I18n.get("CONTINUE"));T.get("useGiftContinueI18nForAllCTA")&&(na=Granite.I18n.get("CONTINUE(GIFT)"));W=d(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");(T.get("useTnc")?f(W):1)||(z=!1);W='\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'+
h+"\x3c/strong\x3e"+I+'\x3c/p\x3e\n                \x3cp class\x3d"pdd16-step-buying__footer-sum"\x3e'+sa+'\x3c/p\x3e\n              \x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"pdd16-step-buying__footer-cta-wrap"\x3e';"it"===ea&&(W+='\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');W+='\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 '+
(z?"":"cta--disabled")+" "+(T.get("useTnc")?"cta--step":"")+'" \n\t\t\t\t\t\tid\x3d"giftContinue" \n\t\t\t\t\t\t'+(z?"":"disabled")+"\x3e\n\t                \t"+na+"\n\t              \t\x3c/button\x3e\n\t            \x3c/div\x3e\n            \x3c/div\x3e\n          \x3c/div\x3e";d(".pdd16-step-buying__footer").html(W);T.get("useTnc")&&(z="gift tnc ("+ea+")",d(".pdd16-step-buying__tnc .checkbox-v2__label-text").html(Granite.I18n.get(z)),d(".pdd16-step-buying__tnc").show());C()}function O(G){var z=
"",M=F.relatedProductsBundle[F.addonGiftBundleRelatedData[G].bundleModelCode],S=M.modelcode;var W='\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d\''+w(M.imageUrl,"$LazyLoad_Home_PNG$")+"' data-mobile-src\x3d\""+w(M.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\''+w(M.imageUrl)+"' data-mobile-src\x3d\""+w(M.imageUrl)+'" alt\x3d"" role\x3d"img"\x3e';z+='\x3cdiv class\x3d"pdd16-step-buying__card-title"\x3e\x3cstrong class\x3d"pdd16-step-buying__card-title-text"\x3e'+
M.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'+W+"\n\t\t\t\x3c/div\x3e\n\t\t\t";W=!1;M=u;for(var ba in F.addonGiftBundleRelatedData[G]){var ia=F.addonGiftBundleRelatedData[G][ba];if(ia.stocklevel&&"inStock"===ia.stocklevel&&ia.colorCode){W=!0;M="";break}}return z+('\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'+
M+'\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')+((W?S:"")+' data-modelCode\x3d"'+S+'" '+(W?"":"disabled")+'\x3e\n\t\t\t\t\t  \x3clabel class\x3d"radio-v2__label" for\x3d"'+S+'"\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 w(G,z,M){var S="",W=d("#scene7domain").val();G&&(-1<G.indexOf("?")&&(G=G.replace("medias",""),G=G.substring(0,G.indexOf("?")),G+="?"+z),-1<G.indexOf("https:")||-1<G.indexOf("http:")||-1<G.indexOf("//stg-images.quick3d.org/")||-1<G.indexOf("//images.quick3d.org/")||-1<G.indexOf("image.quick3d.org/")||-1<G.indexOf("//stg-images.quick3d.org.cn/")||-1<G.indexOf("//images.quick3d.org.cn/")||-1<G.indexOf("image.quick3d.org.cn/")?S=G:(M&&(W=W.replace("/image/","/content/")),S=W+G));return S}function t(G){var z=
'\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'+G.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'+G.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/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' data-mobile-src\x3d\'/etc.clientlibs/belo4d/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/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' data-mobile-src\x3d\'/etc.clientlibs/belo4d/clientlibs/consumer/global/clientlib-common/resources/images/insurance-ico.svg\' alt\x3d""\x3e\n\t\t\t\t\x3c/div\x3e';
return z=z+'\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"'+
(G.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 C(){d(".pdd16-step-buying__card \x3e .pdd16-step-buying__card-option").off("click",".option-selector__color input, .option-selector__size input");d(".pdd16-step-buying__card \x3e .pdd16-step-buying__card-option").on("click",".option-selector__color input, .option-selector__size input",function(){var G=d(this);Aa=[];d(".pdd16-step-buying__header-price-text").html(sa);d(".hiddenPrice").attr("value",ha);var z=(G.closest(".pdd16-step-buying__card").attr("data-index")||"").split("-")[0],M=G.attr("data-modeli");
G=ka[z].modelList[M];Aa.push(G.modelCode);G=G.isStock;X=d(this).attr("name");var S=X.lastIndexOf("-");X=X.substring(X.lastIndexOf("-",S-1)+1);setTimeout(function(){if(null!=M){ka[z].frontModelIdx=M;var W=J(ka[z],M),ba=d(".pdd16-step-buying__card").eq(z),ia=d(".pdd16-step-buying__card").index(ba);ba.find(".option-selector__swiper-wrapper").each(function(ta){ta=ka[z].optionTypeList[ta];var qa=d(this).attr("style");ka[z].viewOptionObj[ta].styleAttr=qa});ba.replaceWith(B(W));ba=d(document.querySelectorAll(".pdd16-step-buying__card")[ia]);
ba.addClass("is-show");l.sg.components.stepbuying.init();C()}},300);G?(d("#giftContinue").hasClass("cta--disabled")&&d("#giftContinue").removeClass("cta--disabled").attr("disabled",!1),d("#giftContinue").attr("aria-disabled","")):(d("#giftContinue").addClass("cta--disabled").attr("disabled",!0),d("#giftContinue").attr("aria-disabled","true"))});d(".pdd16-step-buying.pdd16-step-buying--free-gift").off("click",".radio-v2__label");d(".pdd16-step-buying.pdd16-step-buying--free-gift").on("click",".radio-v2__label",
function(){var G=d(this);da=G;G.closest(".pdd16-step-buying__card").find(".pdd16-step-buying__card-state p");d(".pdd16-step-buying__header-price-text").html(sa);d(".hiddenPrice").attr("value",ha);Aa=[];va=[];var z=G.closest(".pdd16-step-buying__card").attr("data-index"),M=G.closest(".radio-v2").find('input[type\x3d"radio"]');if("radio-id-SC"==G.closest(".radio-v2").find('input[type\x3d"radio"]').attr("id")){z=[];G=F.hybrisCareData;M=G.smcs;for(var S,W=0;W<M.length;W++)if(null==M[W].paymentCycle||
"MONTHLY"!=M[W].paymentCycle.toUpperCase()){S=M[W];break}z.push(S);G.smcs=z;configuratorCare.showPopup(G);d(".hubble-care-popup__smc-price").hide()}else if(M.hasClass("cta--bundle")){var ba=M.attr("data-modelcode");S=l.sg.components.dynamic.detailSharedObj.relatedProductsBundle[ba];z=l.sg.components.dynamic.detailSharedObj.addonGiftBundleRelatedData.filter(function(ia){return ia.bundleModelCode===ba});l.sg.components.addonBundlePopup.callSearchAjax(S,z[0],!0);l.sg.components.notifyMePopup.showPopup(document.querySelector(".add-ons-evoucher-popup"));
l.sg.components.notifyMePopup.reInit()}else M.hasClass("cta--bundle")||"radio-id-SC"==M.attr("id")||(S=z.split("-"),S=ka[S[0]].modelList[S[1]],G="",d("#priceCurrency").val(),d(".hiddenPrice")[0].getAttribute("value"),G=Y?S.shopSKU:S.modelCode,G=Y?S.shopSKU:S.modelCode,va.push(z),Aa.push(G));(N||y)&&d(".tab__list").attr("style")&&-1<d(".tab__list").attr("style").indexOf("none")&&(d(document).off("click","#freeGiftPopup .layer-popup__close, .hubble-care-popup__close"),d(document).on("click","#freeGiftPopup .layer-popup__close, .hubble-care-popup__close",
function(){da.prev().prop("checked",!1)}),d(document).off("click",".hubble-care-popup__button-inner .hubble-care-popup__button-item"),d(document).on("click",".hubble-care-popup__button-inner .hubble-care-popup__button-item",function(){d(".hubble-care-popup__button-inner .hubble-care-popup__button-item")[0]==d(this)[0]?(da.prev().prop("checked",!1),d("#giftContinue").addClass("cta--disabled").attr("disabled",!0)):d("#giftContinue").removeClass("cta--disabled").attr("disabled",!1)}));S=d(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");
S=T.get("useTnc")?f(S):!0;0<Aa.length&&S?d("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):d("#giftContinue").addClass("cta--disabled").attr("disabled",!0)})}function v(){var G=d(".pdd16-step-buying__tnc");d("#giftContinue");var z=function(M){var S="";M&&0<M.length&&(S=M.map(function(W){return'\n\t\t\t\t\t\x3cdiv class\x3d"pdd16-step-buying__tnc-checkbox '+(W.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"'+
W.code+'"\x3e\n\t\t\t\t\t\t\t\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+W.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'+
W.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 S};return{render:function(M){d.when(q.freeGiftHybrisCommon.getTnc(M)).done(function(S){S&&0<S.length&&(G.html(z(S)),S=d(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']"),(T.get("useTnc")?f(S):1)||d("#giftContinue").addClass("cta--disabled").attr("disabled",!0))})}}}function f(G){var z=!0;0<G.length&&G.each(function(){var M=d(this);M.closest(".pdd16-step-buying__tnc-checkbox").hasClass("is-required")&&
(z=z&&M.is(":checked"))});return z}var q=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),k=q.ux2.PriceBar,F=q.detailSharedObj,ea=d("#siteCode").val(),e=d("#priceCurrency").val(),n=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),Q="se"===ea||"dk"===ea||"fi"===ea||"no"===ea,Y="GPv2"===d("#shopIntegrationFlag").val(),N="Hybris"===d("#shopIntegrationFlag").val()||"Hybris-intg"===d("#shopIntegrationFlag").val(),y="Hybris-new"===d("#shopIntegrationFlag").val(),R="true"===d("#isEppPage").val(),
V={},ka=[],va=[],Aa=[],sa,ha,ra,da,E=!1,b=!1,x=Granite.I18n.get("From"),P=Granite.I18n.get("or"),H=Granite.I18n.get("Monthly Price:"),ca=Granite.I18n.get("View more"),h=Granite.I18n.get("Total"),I=Granite.I18n.get("VAT Inclusive"),u=Granite.I18n.get("Out Of Stock"),A=null,T=function(G,z){var M=z[G],S=z["default"];return{get:function(W){return M&&"undefined"!==typeof M[W]?M[W]:S&&"undefined"!==typeof S[W]?S[W]:!1}}}(ea,{it:{useGiftContinueI18nForAllCTA:!0,useTnc:!0,useTncFromAPI:!0,tncAPIContext:"FOC"}}),
fa=function(G,z,M,S,W){z=z.split(",");var ba=z[0];W=W.indexOf("MEMORY");if(!Y&&!y&&!N&&S&&0<W){M=G.MEMORY.optionList;var ia=0,ta=0,qa;for(qa in M){ba=M[qa].modelIdx.split(",");for(var za in ba)if(D(z,ba[za])){G=M[qa].optionCode.replace("TB","000").replace(/[^0-9]/g,"");ta<G&&(ta=G,ia=ba[za]);break}}z=ia}else{for(ia in M)if(qa=M[ia]){za=qa.split(",");qa=[];for(ta in z)-1<za.indexOf(String(z[ta]))&&qa.push(z[ta]);0<qa.length&&(z=qa)}z=0<z.length?z[0]:ba}return z},X="";d(document).off("click",".hubble-care-popup .hubble-care-popup__button-item a");
d(document).on("click",".hubble-care-popup .hubble-care-popup__button-item a",function(G){G=d(this);if(void 0!=F.globalServiceInfo.care&&"Confirm"==G[0].innerText){G=F.globalServiceInfo.care;G=d(".hiddenPrice").val()-G.sale_price.value;var z=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.monthlyPriceInfo.tenureVal;z=(Granite.I18n.get("From {0}/mo",currencyComma(G/Number(z),e))+" "+Granite.I18n.get("for {0} mos",z)+" "+P+" "+currencyComma(G,e)).split(" "+P+" ");G=b?'\n                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
H+'\x3c/strong\x3e\x3c/p\x3e\n                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+x+" "+z[0].replace(x,"")+"\x3c/strong\x3e\x3cbr\x3e\n                    \t"+P+" "+z[1]+'\x3c/p\x3e\n                    \x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+G+'"\x3e\n                ':'\n\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+H+'\x3c/strong\x3e\x3c/p\x3e\n                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
x+" "+z[1]+'\x3c/strong\x3e\x3c/p\x3e\n                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+G+'"\x3e\n\t\t\t\t';d(".pdd16-step-buying__header-price").html(G);d(".pdd16-step-buying__footer-sum").html(G)}G=d("#radio-id-SC").attr("data-modelCode");Aa.push(G);0==Aa.length?d("#giftContinue").addClass("cta--disabled").attr("disabled",!0):d("#giftContinue").removeClass("cta--disabled").attr("disabled",!1)});d(document).off("click","#bundleAddOnGift");d(document).on("click","#bundleAddOnGift",
function(){var G=[],z=d(".add-ons-evoucher-popup__item .option-selector-v2__swiper-slide.is-checked");d.each(z,function(W,ba){G.push(z.find(".option-selector-v2__color-code")[W].getAttribute("data-modelcode"))});for(var M=0;M<G.length;M++)Aa.push(G[M]);if(0==Aa.length)d("#giftContinue").addClass("cta--disabled").attr("disabled",!0);else{d("#giftContinue").removeClass("cta--disabled").attr("disabled",!1);var S=d(this).attr("data-parent-modelcode");d(".pdd16-step-buying--free-gift .pdd16-step-buying__card-input .cta--bundle").each(function(W){d(this).attr("data-modelcode")===
S&&d(this).prop("checked",!0)})}l.sg.components.notifyMePopup.closePopup()});d(document).off("click",".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");d(document).on("click",".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']",function(){var G=d(".pdd16-step-buying__tnc .pdd16-step-buying__tnc-checkbox input[name\x3d'checkbox']");f(G)?d("#giftContinue").removeClass("cta--disabled").attr("disabled",!1):d("#giftContinue").addClass("cta--disabled").attr("disabled",
!0)});d(document).off("click","#giftContinue, #giftSkip");d(document).on("click","#giftContinue, #giftSkip",function(){var G=F.soundbarCategoryData&&0<Object.keys(F.soundbarCategoryData).length?!0:!1;"giftSkip"===d(this).attr("id")&&(E=!0);E?F.hasAddOns&&!F.isEmbedAddOn||F.hasAddOns&&F.isEmbedAddOn&&G?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():q.DetailAfterEvent.addToCartCta([],!0,!0):(Aa=Aa.filter(function(z){return z}),0<Aa.length&&-1<Aa[0].indexOf(",")&&(Aa=Aa[0].split(",")),
setTimeout(function(){l.sg.components.stepbuying.init();F.hasAddOns&&!F.isEmbedAddOn||F.hasAddOns&&F.isEmbedAddOn&&G?l.sg.components.dynamic.bridgePageCommonHybris.moveBridgePage():q.DetailAfterEvent.addToCartCta(Aa,!0,!0);F.globalServiceInfo.care&&delete F.globalServiceInfo.care},10))});q.bridgePagefreeGift={moveBridgePage:function(G){G=(q.detailSharedObj.drawObj.price.priceWrapper.info.totalPrice||"").split(" "+P+" ");var z=l.sg.components.dynamic.detailSharedObj.proudctPriceInfo.salePrice;ha=F.globalServiceInfo.care?
z+F.globalServiceInfo.care.sale_price.value:z;1<G.length?(b=!0,G="tr"===ea?'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+H+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+G[0].replace(x,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+P+" "+G[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ha+'"\x3e\n\t                ':'\n\t                    \x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+
H+'\x3c/strong\x3e\x3c/p\x3e\n\t                    \x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+x+" "+G[0].replace(x,"")+"\x3c/strong\x3e\x3cbr\x3e\n\t                    \t"+P+" "+G[1]+'\x3c/p\x3e\n\t                    \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ha+'"\x3e\n\t                '):G="tr"===ea?'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+H+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+
G[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ha+'"\x3e\n\t\t\t\t\t':'\n\t\t\t\t\t\t\x3cp class\x3d"hidden"\x3e\x3cstrong\x3e'+H+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cp class\x3d"pdd16-step-buying__header-price-text"\x3e\x3cstrong\x3e'+x+" "+G[0]+'\x3c/strong\x3e\x3c/p\x3e\n\t                \t\x3cinput type\x3d"hidden" class\x3d"hiddenPrice" value\x3d"'+ha+'"\x3e\n\t\t\t\t\t';d(".pdd16-step-buying__header-price").html(G);
d(".pdd16-step-buying__footer-sum").html(G);if(Y||N||y)V=q.freeGiftHybrisCommon,Y?(G=F.addOnApiList.gift)&&G.list&&0<G.list.length&&K(G.list):0===ka.length&&0<F.addonGiftBundleRelatedData.length?K([],!0):V.getSearchProductcard(K)}}})(window,window.jQuery);
(function(l,d){function K(e,n,Q){k={};d.each(e.products,function(Y,N){Y=N.modelcode;var y=k[Y]={};y.modelCode=Y;y.name=N.name;N.picture&&(y.imageUrl=N.picture.url,y.imageUrlAlt=N.picture.altText);N.stock&&(y.stocklevel=N.stock.stockLevelStatus);N.price&&N.price.value&&(y.priceValue=N.price.value,y.price=N.price.formattedValue,y.promotionPriceValue=N.price.value,y.promotionPrice=N.price.formattedValue);N.promotionPrice&&N.promotionPrice.value&&(y.promotionPriceValue=N.promotionPrice.value,y.promotionPrice=
N.promotionPrice.formattedValue);"F-"==N.modelcode.substring(0,2)&&(N.name&&(y.name=N.name),d.extend(N,y),Q[N.modelcode]=N,D(N.modelcode),n.hasGiftBundle=!0)});n.relatedProductsBundle=Q}function D(e){w?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(B,e,function(n,Q){F={};F.bundleModelCode=e;Q&&null!=n.products&&0<n.products.length&&(d.each(n.products,function(Y,N){Y=N.modelcode;var y=F[Y]={};y.modelCode=Y;y.name=N.name;N.imageUrl&&(y.imageUrl=N.imageUrl);N.imageUrlAlt&&
(y.imageUrlAlt=N.imageUrlAlt);N.stocklevel&&(y.stocklevel=N.stocklevel);N.price&&N.priceValue&&(y.priceValue=N.priceValue,y.price=N.price,y.promotionPriceValue=N.priceValue,y.promotionPrice=N.price);N.promotionPrice&&N.promotionPriceValue&&(y.promotionPriceValue=N.promotionPriceValue,y.promotionPrice=N.promotionPrice);N.colorCode&&(y.colorCode=N.colorCode)}),ea.push(F));B.addonGiftBundleRelatedData=ea},null,{queryType:"SELECTION_OF_BUNDLE"}):t&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(e,
function(n,Q){F={};F.bundleModelCode=e;Q&&null!=n.products&&0<n.products.length&&(d.each(n.products,function(Y,N){Y=N.modelcode;var y=F[Y]={};y.modelCode=Y;y.name=N.name;N.picture&&(y.imageUrl=N.picture.url,y.imageUrlAlt=N.picture.altText);N.stock&&(y.stocklevel=N.stock.stockLevelStatus);N.price&&N.price.value&&(y.priceValue=N.price.value,y.price=N.price.formattedValue,y.promotionPriceValue=N.price.value,y.promotionPrice=N.price.formattedValue);N.promotionPrice&&N.promotionPrice.value&&(y.promotionPriceValue=
N.promotionPrice.value,y.promotionPrice=N.promotionPrice.formattedValue);if(N.groupCode&&0==N.groupId||N.groupCode&&0!=N.groupId)y.groupCode=N.groupCode,y.groupId=N.groupId;N.colorCode&&(y.colorCode=N.colorCode)}),ea.push(F));B.addonGiftBundleRelatedData=ea},null,{queryType:"SELECTION_OF_BUNDLE"})}var r=l.sg.sdf.util.prepareNamespace("sg.components.dynamic"),B=r.detailSharedObj,J=d("#priceCurrency").val(),U=d("#siteCode").val(),O="nl"===U||"be"===U||"be_fr"===U,w="Hybris"===d("#shopIntegrationFlag").val()||
"Hybris-intg"===d("#shopIntegrationFlag").val(),t="Hybris-new"===d("#shopIntegrationFlag").val(),C=d("#storeDomain").val(),v=d("#categoryGroupCode").val(),f=[],q=[],k={},F={},ea=[];d(document).on("bundlePopupEvent",function(e,n){d(".hubble-addon-page").hasClass("is-gift-type");"NewHybris"==d("#storeType").val()?getNewRelatedProductsBundleInfo(n):getRelatedProductsBundleInfo(n)});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(e){F={};f=[];w?l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjaxOldHybris(B,e,function(n,Q){Q&&null!=n.products&&0<n.products.length?(k={},d.each(n.products,function(Y,N){if(N.stocklevel){Y=N.modelcode;var y=k[Y]={};y.modelCode=Y;y.name=N.name;N.imageUrl&&(y.imageUrl=N.imageUrl);N.imageUrlAlt&&(y.imageUrlAlt=N.imageUrlAlt);N.stocklevel&&
(y.stocklevel=N.stocklevel);N.price&&N.priceValue&&(y.priceValue=N.priceValue,y.price=N.price);N.promotionPrice&&N.promotionPriceValue&&(y.promotionPriceValue=N.promotionPriceValue,y.promotionPrice=N.promotionPrice,N.priceValue===N.promotionPriceValue&&(y.promotionPriceValue=null,y.promotionPrice=null));"F-"==N.modelcode.substring(0,2)&&(N.picture&&(y.imageUrl=N.picture.url),N.name&&(y.name=N.name),d.extend(N,y),F[N.modelcode]=N,D(N.modelcode),B.hasGiftBundle=!0)}}),B.relatedProductsBundle=F,l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):
(l.sg.components.dynamic.detailSharedObj.hasGift=!1,l.sg.components.dynamic.detailSharedObj.hasGiftPage=!1,l.sg.components.dynamic.detailSharedObj.hasAddOns||l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!1))},null,{queryType:"SELECTION_OF_GIFT"}):t&&l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(e,function(n,Q){l.sg.components.dynamic.detailSharedObj.relatedProductsObj={};Q&&null!=n.products&&0<n.products.length?(l.sg.components.dynamic.detailSharedObj.relatedProductsObj=
n,K(n,B,F),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:D,getAddOnGift:function(){return f},giftPopupGrid:function(e){l.sg.components.dynamic.freeGift.giftPopupGrid(e)},getSearchProductcard:function(e){var n=
[];d.each(Object.keys(k),function(Q,Y){"F-"!=Y.substr(0,2)&&n.push(Y)});0<n.length?l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(n,function(Q,Y){Y&&200===Q.response.statusCode&&null!=Q.response.resultData&&null!=Q.response.resultData.productList&&(Q=Q.response.resultData.productList,d.each(Q,function(N,y){y=y.modelList;null!=y&&d.each(y,function(R,V){var ka="in"!==U?V.modelCode:V.shopSKU;if(k[ka]){var va=k[ka].stocklevel;V.displayName||(V.displayName=k[ka].name||"");V.thumbUrlAlt=
k[ka].imageUrlAlt||"";V.priceDisplay=k[ka].price||"";V.promotionPriceDisplay=k[ka].promotionPrice||"";V.price=k[ka].priceValue||"";V.promotionPrice=k[ka].promotionPriceValue||"";V.stocklevel=va;V.isStock=!(""===va||"OUTOFSTOCK"===va.toUpperCase());V.idx=String(N)+"-"+String(R)}})}),f=Q,e(f))},null,null):e([])},setPriceInfo:function(e){var n=e.price,Q=e.promotionPrice,Y=Number((n-Q).toFixed(2)),N=currencyComma(Y,J),y=O||!e.priceDisplay?currencyComma(n,J):e.priceDisplay;e=O||!e.promotionPriceDisplay?
currencyComma(Q,J):e.promotionPriceDisplay;return{promotionPrice:Q,productPrice:n,savePriceTemp:Y,saveText:N,productPriceDisplay:y,promotionPriceDisplay:e}},getBundleSearchProductcard:function(e){var n=[];d.each(k,function(Q,Y){"F-"!=Y.modelcode.substr(0,2)&&n.push(Y.modelcode)});l.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(n,function(Q,Y){if(Y&&200===Q.response.statusCode&&null!=Q.response.resultData&&null!=Q.response.resultData.productList){var N=Q.response.resultData.productList;
d.each(F,function(y,R){d.each(N,function(V,ka){ka=ka.modelList;null!=ka&&d.each(ka,function(va,Aa){var sa=Aa.modelCode,ha=F[sa].stocklevel||"";F[sa]&&(Aa.displayName||(Aa.displayName=F[sa].name||""),Aa.thumbUrlAlt=F[sa].imageUrlAlt||"",Aa.priceDisplay=F[sa].price||"",Aa.promotionPriceDisplay=F[sa].promotionPrice||"",Aa.price=F[sa].priceValue||"",Aa.promotionPrice=F[sa].promotionPriceValue||"",Aa.stocklevel=ha,Aa.isStock=!(""===ha||"OUTOFSTOCK"===ha.toUpperCase()),Aa.idx=String(V)+"-"+String(va))})})});
q=N;e(q)}},null,null)},getProductListData:function(){return q},getTariffRelatedProductsSimpleInfo:function(e){var n=r.detailSharedObj;F={};n.hasGiftBundle=!1;f=[];l.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(e,function(Q,Y){Y&&null!=Q.products&&0<Q.products.length?(l.sg.components.dynamic.detailSharedObj.hasTariffGift=!0,l.sg.components.dynamic.detailSharedObj.hasGift=!0,K(Q,n,F),l.sg.components.dynamic.DetailAfterEvent.hybrisDrawAccessory(!0)):l.sg.components.dynamic.detailSharedObj.hasTariffGift=
!1},null,{queryType:"SELECTION_OF_GIFT_FOR_SERVICETYPE",serviceId:n.tariffServiceId})},relatedProductsSimpleInfoSuccessCallBackFunc:K,relatedProductsBundle:F,getTnc:function(e){var n=checkEppSite()&&w?d("input#newHyvStoreDomain").val():C,Q=checkEppSite()?l.sg.epp.common.companyCode:U,Y=checkEppSite()?{withCredentials:!0}:{};return d.ajax({url:n+"/tokocommercewebservices/v2/"+Q+"/tnc?context\x3d"+e+"\x26value\x3d"+v,type:"GET",dataType:"json",xhrFields:Y})}}})(window,window.jQuery);
(function(){var l=window.sg.common.$q,d=window.sg.common.utils,K=window.sg.common.lazyLoad,D=window.sg.common.scrollbar,r=window.sg.common.constants.BREAKPOINTS,B=window.sg.common.OptionSelector,J=null,U=function(t){this.selector={component:".accessories",cardFiche:".accessories__product-price-info",rating:".accessories__rating",optionWrap:".option-selector"};this.el={component:l(t)};this.handler={setHeight:this.setHeight.bind(this)};U.instances.set(t,this);this.init()};U.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)};U.prototype.init=function(){this.setElement();this.setCardInstances();this.setHeight();this.bindEvents()};U.prototype.reInit=function(){this.init()};U.prototype.setDefault=function(){[this.el.rating,this.el.cardSlide,this.el.cardFiche,this.el.optionWrap].forEach(function(t){t.css({height:""})})};
U.prototype.setHeight=function(){var t=this,C=r.MOBILE>d.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();C.forEach(function(v){var f=[];v.target.forEach(function(k){k=l(k);"none"!==k.css("display")&&f.push(k.outerHeight())});var q=Math.max.apply(null,f);v.target.forEach(function(k){k=l(k);"none"!==k.css("display")&&k.css({height:q+"px"})})});setTimeout(function(){t.el.component.find(".scrollbar").target.forEach(function(v){D.resize(v)})},
30)};U.prototype.setCardInstances=function(){this.el.cardSlide.target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInit():new O(t)})};U.prototype.bindEvents=function(){l(window).off("resize",this.handler.setHeight).on("resize",this.handler.setHeight)};var O=function(t){this.selector={cardComponent:".accessories__item",optionSelector:".option-selector__wrap",mobileOptionWrap:".accessories__option-selector",mobileOptionColor:".accessories__color-chip",mobileOptionCapacity:".accessories__capacity"};
this.el={component:l(t)};this.handler={resize:this.resize.bind(this)};O.instances.set(t,this);this.init()};O.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};O.prototype.init=function(){this.setElement();this.resize();this.bindEvents()};O.prototype.reInit=function(){this.init()};O.prototype.setMobileOption=function(){var t=
this;this.el.mobileOptionWrap.target.forEach(function(C){C=l(C);var v=C.find(t.selector.mobileOptionColor),f=C.find(t.selector.mobileOptionCapacity);v.target.length&&(5<v.find(".accessories__color").target.length?v.addClass("accessories__color-chip--over"):v.removeClass("accessories__color-chip--over"));f.target.length&&(f.width()>C.width()?f.addClass("accessories__capacity--over"):f.removeClass("accessories__capacity--over"))})};O.prototype.resize=function(){r.MOBILE<d.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))};O.prototype.bindEvents=function(){l(window).off("resize",this.handler.resize).on("resize",this.handler.resize)};var w=function(){l(window);J=l(".accessories");J.target.length&&l(".accessories").target.forEach(function(t){U.instances.has(t)||new U(t)})};U.instances=new WeakMap;O.instances=new WeakMap;l.ready(w);window.sg.components.accessories=
{init:w,reInit:function(){K.setLazyLoad();l(".accessories").target.forEach(function(t){l(t).find(".scrollbar").target.forEach(function(C){D.reInit(C);D.resize(C)});l(t).find(".option-selector").target.forEach(function(C){B.reInit(l(C))});U.instances.has(t)?U.instances.get(t).reInit():new U(t)})},reInitItem:function(t){K.setLazyLoad();l(t).target.forEach(function(C){l(C).find(".option-selector").target.forEach(function(v){B.reInit(l(v))});O.instances.has(C)?O.instances.get(C).reInit():new O(C)})}}})();
(function(l,d){window.sg.components.dynamic=window.sg.components.dynamic||{};l=window.sg.components.dynamic;var K=function(){function D(sa,ha){var ra=!0,da="",E="",b="",x="",P="";if("Y"===w||"pl"===f&&"OUTOFSTOCK"===ha)ra=!1;else if("NOORDER"===ha||"LEARNMORE"===ha)ra="nl"===f||"be"===f||"be_fr"===f?!0:!1;sa.price&&(da=sa.price);sa.listPrice&&(x=sa.listPrice);sa.listPriceDisplay?P=sa.listPriceDisplay:sa.listPrice&&(P=currencyComma(sa.listPrice,O));sa.priceDisplay?E=sa.priceDisplay:sa.price&&(E=currencyComma(sa.price,
O));ha=sa.promotionPrice?sa.promotionPrice:sa.price;var H=sa.promotionPriceDisplay?sa.promotionPriceDisplay:sa.promotionPrice?currencyComma(sa.promotionPrice,O):E;var ca="Y"===d.cookies.get("isSMBRegisteredUserYN",{domain:".quick3d.org"})&&commonLoginCheck();q&&ca&&(sa.tieredPrice&&k?(ha=sa.tieredPrice,H=currencyComma(sa.tieredPrice,O),sa.tieredPriceDisplay&&(H=sa.tieredPriceDisplay)):sa.smbPromotionPrice&&(ha=sa.smbPromotionPrice,H=currencyComma(sa.smbPromotionPrice,O)));da&&ha&&da!==ha?b=currencyComma(parseFloat(da)-
parseFloat(ha),O):sa.formattedPriceSave?b=sa.formattedPriceSave:sa.saveText&&0<parseFloat(sa.saveText)&&(b=sa.saveText);var h="Y"===d.cookies.get("useTaxExPriceYN",{domain:".quick3d.org"});q&&h&&(sa.taxExPrice&&(ha=sa.taxExPrice,H=currencyComma(sa.taxExPrice,O),sa.taxExPriceDisplay&&(H=sa.taxExPriceDisplay)),ca&&sa.taxExTieredPrice&&k&&(ha=sa.taxExTieredPrice,H=currencyComma(sa.taxExTieredPrice,O),sa.taxExTieredPriceDisplay&&(H=sa.taxExTieredPriceDisplay)));sa.tradeInPriceText&&-1<d("#shopIntegrationFlag").val().indexOf("Hybris-intg")&&
(H=sa.tradeInPriceText);if("be"===f||"be_fr"===f||"nl"===f)E=deleteCurrency(E,O),H=deleteCurrency(H,O),b=deleteCurrency(b,O),P=deleteCurrency(P,O);return{hasPrice:ra,orignalPrice:da,salePrice:ha,listPrice:x,listPriceFormatted:P,orignalPriceFormatted:E,salePriceFormatted:H,savePriceFormatted:b}}var r=d("#searchDomain").val(),B=d("#shopIntegrationFlag").val(),J=d("#siteCode").val(),U=d("#apiStageInfo").val(),O=d("#accPriceCurrency").val(),w=d("#oldProductYn").val(),t=d("#accModelList").val(),C=d("#reviewUseYN").val(),
v=d("#reevooUseYN").val(),f=d("#siteCode").val(),q=d("#shopIntegrationFlag")?"true"===d("#shopIntegrationFlag").val():!0,k=d("#tieredPriceUseYn")?"Y"===d("#tieredPriceUseYn").val():!0,F="GPv2"===B?!0:!1,ea="Hybris-new"===B?!0:!1,e="Hybris-intg"===B?!0:!1,n=digitalData.page.pageInfo.pageTrack,Q=d("#scene7domain").val(),Y=[],N=0;Granite.I18n.setLocale(d("#language").val());var y=function(sa,ha,ra){var da=Q;fnIsNull(sa)||-1<sa.indexOf("http:")||""===sa||-1<sa.indexOf("//image-us.quick3d.org/")||-1<sa.indexOf("//stg-images.quick3d.org.cn/")||
-1<sa.indexOf("//images.quick3d.org.cn/")||-1<sa.indexOf("image.quick3d.org.cn/")||-1<sa.indexOf("//stg-images.quick3d.org/")||-1<sa.indexOf("//images.quick3d.org/")||-1<sa.indexOf("image.quick3d.org/")?ra=sa:(ra&&(da=da.replace("/image/","/content/")),ra=da+sa);0>ra.indexOf("?$")&&!fnIsNull(sa)&&("lazy"===ha?(sa=ra,ha="?$LazyLoad_Home",ra=ra.toLowerCase(),ha=-1<ra.indexOf(".jpg")?ha+"_JPG$":-1<ra.indexOf(".jpeg")?ha+"_JPG$":-1<ra.indexOf(".png")?ha+"_PNG$":-1<ra.indexOf(".gif")?ha+"_GIF$":ha+"_PNG$",
ra=sa+ha):"product-desktop"===ha?ra+="?$240_240_PNG$":"product-mobile"===ha&&(ra+="?$480_480_PNG$"));return ra},R=function(sa,ha){for(var ra=0;ra<sa.length;ra++)if(sa[ra]===ha)return!0;return!1},V=function(sa,ha){if(!fnIsNull(ha)&&!fnIsNull(sa.modelList)&&!fnIsNull(sa.modelList[ha])){var ra=sa.modelList[ha];fnIsNull(ra.displayName)&&(sa.modelList[ha].displayName="");if(!fnIsNull(ra.thumbUrl)){var da={};fnIsNull(ra.thumbUrl)||(da={},da.imageUrlDesktop=y(ra.thumbUrl,"product-desktop"),da.imageUrlMobile=
y(ra.thumbUrl,"product-mobile"),da.lazyImageUrl=y(ra.thumbUrl,"lazy"));sa.modelList[ha].thumbInfo=da}if("Y"===C||"Y"===v){da="";var E=ra.ratings;fnIsNull(E)&&(E=0,sa.modelList[ha].ratings=0);var b=Math.pow(10,1);E=Math.round(E*b)/b;b=parseFloat(E).toFixed(1);E=parseInt(E);var x=parseInt(100*(b-E));var P="";"0.0"!==b?sa.modelList[ha].ratings=b:P="rating--empty";sa.modelList[ha].ratingEmptyText=P;for(b=0;b<E;b++)da+='\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>E&&0<E)for(da+='\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: '+x+'%;"\x3e\x3c/span\x3e\x3c/span\x3e',b=4;b>E;b--)da+='\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===E&&!fnIsNull(sa.modelList[ha].reviewUrl))for(E=0;5>E;E++)da+='\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';
sa.modelList[ha].ratingHtml=da;fnIsNull(ra.reviewCount)&&(sa.modelList[ha].reviewCount="0");sa.modelList[ha].ratingsText=Granite.I18n.get("{0} out of {1} Stars",["\x3cspan\x3e"+ra.ratings+"\x3c/span\x3e","5"],f)}fnIsNull(ra.energyLabelGrade)&&(sa.modelList[ha].energyLabelGrade="");fnIsNull(ra.ficheFileUrl)&&(sa.modelList[ha].ficheFileUrl="")}return sa},ka=function(sa,ha,ra,da,E){ha=ha.split(",");var b=ha[0];E=E.indexOf("MEMORY");if(!F&&!ea&&da&&0<E){ra=sa.MEMORY.optionList;var x=0,P=0;for(ca in ra){b=
ra[ca].modelIdx.split(",");for(var H in b)if(R(ha,b[H])){sa=ra[ca].optionCode.replace("TB","000").replace(/[^0-9]/g,"");P<sa&&(P=sa,x=b[H]);break}}ha=x}else{for(x in ra){var ca=ra[x];if(!fnIsNull(ca)){H=ca.split(",");ca=[];for(P in ha)-1<H.indexOf(String(ha[P]))&&ca.push(ha[P]);0<ca.length&&(ha=ca)}}ha=0<ha.length?ha[0]:b}return ha},va=function(sa){var ha="",ra="",da=sa.modelList[sa.frontModelIdx];fnIsNull(da.ctaType)||(ra=da.ctaType.toUpperCase(),sa.modelList[sa.frontModelIdx].ctaTypeUpperCase=ra);
fnIsNull(sa.categorySubTypeCode)||sa.categorySubTypeCode.substr(0,2);q&&da.b2bHybrisShopInfo&&(ra=da.b2bHybrisShopInfo.ctaType.toUpperCase());var E="javascript:void(0)";fnIsNull(da.pdpUrl)||(E=da.pdpUrl);var b='\x3cdiv class\x3d"accessories__product-name"\x3e';!fnIsNull(da.displayName)&&(b+='\x3ca href\x3d"'+E+'" an-tr\x3d"pd_accessories-'+n+'-product-link" an-ca\x3d"product click" an-ac\x3d"accessories" an-la\x3d"product click" data-modelcode\x3d"'+da.modelCode+'" data-modelname\x3d"'+da.modelName+
'"\x3e'+da.displayName+"\x3c/p\x3e\x3c/a\x3e");ha+=b+"\x3c/div\x3e";E='\x3cdiv class\x3d"accessories__image"\x3e';"true"===d("#isEppPage").val()&&(b="N"===sa.simplePdYN?"pd":"feature",-1<da.pdpUrl.indexOf("/pd.")?da.pdpUrl=da.pdpUrl.replace(/\/pd./ig,"/"+b+"."):-1<da.pdpUrl.indexOf("/feature.")&&(da.pdpUrl=da.pdpUrl.replace(/\/feature./ig,"/"+b+".")));fnIsNull(da.pdpUrl)||fnIsNull(da.thumbUrl)||(E+='\x3ca href\x3d"'+da.pdpUrl+'" an-tr\x3d"pd_accessories-'+n+'-product-link" an-ca\x3d"product click" an-ac\x3d"accessories" an-la\x3d"product click" data-modelcode\x3d"'+
da.modelCode+'" data-modelname\x3d"'+da.modelName+'"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+da.thumbInfo.lazyImageUrl+'" data-mobile-src\x3d"'+da.thumbInfo.lazyImageUrl+'" alt\x3d"'+da.thumbUrlAlt+'"\x3e\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+da.thumbInfo.imageUrlDesktop+'" data-mobile-src\x3d"'+da.thumbInfo.imageUrlMobile+'" alt\x3d"'+da.thumbUrlAlt+'"\x3e\x3c/div\x3e\x3c/a\x3e');ha+=
E+'\x3c/div\x3e\x3cdiv class\x3d"accessories__text"\x3e';E="";b=sa.modelList[sa.frontModelIdx];if(!fnIsNull(sa.viewOptionObj)){E+='\x3cdiv class\x3d"option-selector"\x3e';if(!fnIsNull(sa.viewOptionObj)&&0<Object.keys(sa.viewOptionObj).length){var x="",P=0,H=sa.viewOptionObj,ca=sa.optionTypeList;for(p in sa.viewOptionObj){var h=p.toLowerCase().replace(/ /g,"-");var I=sa.viewOptionObj[p].optionList,u="",A,T="",fa="";var X=A="";fnIsNull(sa.viewOptionObj[p].styleAttr)||(X=sa.viewOptionObj[p].styleAttr);
var G="";for(var z in I){var M=I[z];var S=M.modelIdx.split(",");null!=M.modelIdx&&R(S,String(sa.frontModelIdx))&&(G=M.optionLocalName)}if("COLOR"===p){E+='\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'+G+'\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"'+
X+'" role\x3d"list"\x3e';for(z in I){M=I[z];X=!1;S=M.modelIdx.split(",");if(null!=M.modelIdx&&R(S,String(sa.frontModelIdx)))X=!0,u=M.modelIdx,G="";else if(G=" js-fmyChip-is-disabled-acc",0===P)G="";else{var W=x.split(",");for(var ba in S)if(R(W,S[ba])){G="";break}}if(""===G){A=M.modelIdx;S=[];W=!0;for(var ia in H)if(ia!==p){var ta=H[ia].optionList;for(var qa in ta){var za=ta[qa];za=za.modelIdx;var na=za.split(",");-1<na.indexOf(String(sa.frontModelIdx))&&S.push(za)}}A=ka(H,A,S,W,ca);sa.modelList.length>
A&&!fnIsNull(sa.modelList[A])&&(T=' data-modelcode\x3d"'+sa.modelList[A].modelCode+'"',fa=' data-modelname\x3d"'+sa.modelList[A].modelName+'"')}S="product-"+h+"-"+z+"-"+b.modelCode;W="product-"+h+"-"+b.modelCode;E+='\x3cspan class\x3d"option-selector__swiper-slide'+(X?" swiper-slide-active":"")+'" role\x3d"listitem"\x3e\x3cspan class\x3d"option-selector__color js-acc-product-fmychip'+G+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+S+'" data-optionName\x3d"'+M.optionLocalName+'" name\x3d"'+W+'" data-modeli\x3d"'+
A+'" data-code\x3d"'+M.optionCode+'"'+(X?" checked":"")+' an-tr\x3d"pd_accessories-'+n+'-text-option" an-ca\x3d"option click" an-ac\x3d"accessories" an-la\x3d"'+p.toLowerCase()+":"+M.optionName.replace('"',"\x26quot;").toLowerCase()+'"'+T+fa+' data-typeidx\x3d"'+P+'" data-moidx\x3d"'+M.modelIdx+'" \x3e\x3clabel for\x3d"'+S+'"\x3e\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+M.optionCode+'"\x3e'+M.optionLocalName+'\x3c/span\x3e\x3cspan class\x3d"hidden"\x3e'+M.optionLocalName+
"\x3c/span\x3e\x3c/label\x3e\x3c/span\x3e\x3c/span\x3e"}x=u;E+='\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{E+='\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"'+
X+'" role\x3d"list"\x3e';for(var a=0;a<I.length;a++){M=I[a];X=!1;S=M.modelIdx.split(",");if(null!=M.modelIdx&&R(S,String(sa.frontModelIdx)))X=!0,u=M.modelIdx,G="";else if(G=" js-fmyChip-is-disabled-acc",0===P)G="";else{W=x.split(",");for(var c in S)if(R(W,S[c])){G="";break}}if(""===G){A=M.modelIdx;S=[];W=!1;for(var m in H)if(m!==p){ta=H[m].optionList;for(var g in ta)za=ta[g],za=za.modelIdx,na=za.split(","),-1<na.indexOf(String(sa.frontModelIdx))&&S.push(za)}A=ka(H,A,S,W,ca);sa.modelList.length>A&&
!fnIsNull(sa.modelList[A])&&(T=' data-modelcode\x3d"'+sa.modelList[A].modelCode+'"',fa=' data-modelname\x3d"'+sa.modelList[A].modelName+'"')}S="product-"+h+"-"+a+"-"+b.modelCode;W="product-"+h+"-"+b.modelCode;E+='\x3cspan class\x3d"option-selector__swiper-slide'+(X?" swiper-slide-active":"")+'" role\x3d"listitem"\x3e\x3cspan class\x3d"option-selector__size js-acc-product-fmychip'+G+'"\x3e\x3cinput type\x3d"radio" id\x3d"'+S+'" data-optionName\x3d"'+M.optionLocalName+'" name\x3d"'+W+'" data-modeli\x3d"'+
A+'" an-tr\x3d"pd_accessories-'+n+'-text-option" an-ca\x3d"option click" an-ac\x3d"accessories" an-la\x3d"'+p.toLowerCase()+":"+M.optionName.replace('"',"\x26quot;").toLowerCase()+'"'+T+fa+' data-typeidx\x3d"'+P+'" data-code\x3d"'+M.optionCode+'"'+(X?" checked":"")+' data-moidx\x3d"'+M.modelIdx+'"\x3e\x3clabel class\x3d"option-selector__size-label" for\x3d"'+S+'"\x3e\x3cspan class\x3d"option-selector__size-label-text"\x3e'+M.optionLocalName+"\x3c/span\x3e\x3c/label\x3e\x3c/span\x3e\x3c/span\x3e"}x=
u;E+='\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'}P++}}E+="\x3c/div\x3e"}var p=ha+E;z="";ba="/"+f+"/common/review/"+da.modelCode+"/";fnIsNull(da.reviewUrl)||(ba=da.reviewUrl);"Y"!==C&&"Y"!==v||fnIsNull(da.ratingHtml)||"cn"===f||(z+=
'\x3cdiv class\x3d"accessories__rating"\x3e\x3ca href\x3d"'+ba+'" data-modelcode\x3d"'+da.modelCode+'" data-modelname\x3d"'+da.modelName+'" an-tr\x3d"pd_accessories-'+n+'-image-review" an-ca\x3d"review" an-ac\x3d"accessories" an-la\x3d"read review"\x3e\x3cspan class\x3d"rating '+da.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'+da.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"+da.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"+da.reviewCount+"\x3c/span\x3e)\x3c/em\x3e\x3c/span\x3e\x3c/span\x3e\x3ca\x3e\x3c/div\x3e");p+=z;sa=sa.thirdPASeller;z='\x3cdiv class\x3d"accessories__seller"\x3e';!fnIsNull(sa)&&(z+='\x3cp class\x3d"accessories__seller-inner"\x3e'+sa+"\x3c/p\x3e");sa=
p+(z+"\x3c/div\x3e");ba=q?D(da.b2bHybrisShopInfo,ra):D(da,ra);p=ba.hasPrice;ra='\x3cdiv class\x3d"accessories__price"\x3e';p&&(p=ba.salePriceFormatted,z=ba.orignalPriceFormatted,ia=ba.savePriceFormatted,qa=ba.listPrice,m=ba.listPriceFormatted,null!=da.listPrice&&(qa=parseFloat(da.listPrice)-parseFloat(da.price)),ba=E=b=ha=g=c="",P=x=!1,F||ea||q?fnIsNull(da.leasingInfo)||"nl"!==f?fnIsNull(da.monthlyPriceInfo)||fnIsNull(da.monthlyPriceInfo.leasingMonthly)||fnIsNull(da.monthlyPriceInfo.leasingMonths)||
fnIsNull(da.monthlyPriceInfo.interest)||(c=da.monthlyPriceInfo.leasingMonthly,"be"!==f&&"be_fr"!==f&&(c=currencyComma(c,O)),g=da.monthlyPriceInfo.leasingMonths,x=!0):(da=da.leasingInfo,E=deleteCurrency(da.monthlyRate,O),g=da.tenureVal,ha=deleteCurrency(da.downPaymentFormatted,O),b=da.tenureUnit,P=!0):fnIsNull(da.monthlyPriceInfo)||fnIsNull(da.monthlyPriceInfo.leasingMonthly)||fnIsNull(da.monthlyPriceInfo.leasingMonths)||"au"!==f&&"nz"!==f&&"ae"!==f&&"my"!==f&&"sg"!==f&&"ca"!==f&&"ca_fr"!==f&&"it"!==
f&&"se"!==f&&"dk"!==f&&"fi"!==f&&"no"!==f&&"es"!==f&&"pt"!==f&&"th"!==f&&"tw"!==f&&"ru"!==f&&"ch"!==f&&"ch_fr"!==f||(da=da.monthlyPriceInfo,c=da.leasingMonthly,c=currencyComma(c,O),g=da.leasingMonths,x=!0),F||ea||e||q?ia?(z="nl"===f||"be"===f||"be_fr"===f||"de"===f?Granite.I18n.get("From {0}",["\x3cdel\x3e"+z+"\x3c/del\x3e"]):"\x3cdel\x3e"+z+"\x3c/del\x3e",ba='\x3cspan class\x3d"accessories__price-original"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e"+z+
"\x3c/span\x3e","nl"!==f&&"be"!==f&&"be_fr"!==f&&(ba+='\x3cspan class\x3d"accessories__price-save"\x3e'+Granite.I18n.get("Save {0}",ia)+"\x3c/span\x3e")):0<qa&&("nl"===f||"be"===f||"be_fr"===f)&&(ba+='\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"):ia&&"nl"!==f&&"be"!==f&&"be_fr"!==f&&(ba+='\x3cspan class\x3d"accessories__price-save"\x3e'+
ia+"\x3c/span\x3e"),x?(da=Granite.I18n.get("From {0}/mo",[c])+" ",da+=Granite.I18n.get("for {0} mos",[g])+" ",da+=Granite.I18n.get("or")+p,ra+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cspan class\x3d"accessories__price-current" data-pricetext\x3d"'+da+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Monthly Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-current-text"\x3e'+Granite.I18n.get("From {0}/mo",[c])+"\x3c/span\x3e "+Granite.I18n.get("for {0} mos",[g])+'\x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly"\x3e\x3cspan class\x3d"hidden"\x3e'+
Granite.I18n.get("Current Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-monthly-text"\x3e '+Granite.I18n.get("or")+" \x3c/span\x3e"+p+"\x3c/span\x3e\x3c/div\x3e"):P?""!==ha&&""!==b&&""!==g&&""!==E&&(ia=" "+ha+" + "+g+" x "+E+"/"+Granite.I18n.get(b),da=z+" "+Granite.I18n.get("or")+" "+ia,ra+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cdiv class\x3d"product-card__price-current" data-pricetext\x3d"'+(da+'"\x3e\x3cspan class\x3d"hidden"\x3e')+Granite.I18n.get("Current Price")+': \x3c/span\x3e\x3cspan class\x3d"accessories__price-current-text"\x3e'+
p+'\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"+ia+"\x3c/div\x3e\x3c/div\x3e"):ra+='\x3cdiv class\x3d"accessories__price-info"\x3e\x3cdiv class\x3d"accessories__price-current" data-pricetext\x3d"'+p+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Current Price")+": \x3c/span\x3e"+p+
"\x3c/div\x3e\x3c/div\x3e",ra+='\x3cdiv class\x3d"accessories__price-detail"\x3e',!fnIsNull(ba)&&(ra+=ba),ra+="\x3c/div\x3e");return sa+(ra+"\x3c/div\x3e\x3c/div\x3e")},Aa=function(){d(".js-fmyChip-is-disabled-acc").parent().addClass("is-disabled");d(".js-fmyChip-is-disabled-acc").removeClass("js-fmyChip-is-disabled-acc").find("input").prop("disabled",!0);var sa=d(".js-acc-product-fmychip").find("input");sa.off("click.finder");sa.on("click.finder",function(ha){ha=d(this);var ra=ha.closest(".js-acc-product-card"),
da=ra.data("productidx"),E=ha.data("modeli");setTimeout(function(){if(!fnIsNull(E)){Y[da].frontModelIdx=E;var b=V(Y[da],E);ra.find(".option-selector__wrap").each(function(x){x=Y[da].optionTypeList[x];var P=d(this).find(".option-selector__swiper-wrapper").attr("style");Y[da].viewOptionObj[x].styleAttr=P});ra.html(va(b));Aa();window.sg.components.accessories.reInitItem(document.querySelectorAll(".accessories__item")[da])}},300)})};B=function(){var sa={},ha="",ra="",da="true"===d("#isEppPage").val();
ra=da?"epp/v2":"b2c";da&&(sa.companyCode=d("#eppCompanyCode").val(),sa.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(sa.groupName=window.sg.epp.common.groupName),da=location.pathname.match(/[0-9]{13}/g),null!=da&&"undefined"!=typeof da&&""!=d.trim(da)&&(sa.offerId=da[0]),""!=window.sg.epp.common.userStoreId&&(sa.o2oId=window.sg.epp.common.userStoreId));ra=F?ra+"/product/card/detail/gpv2":ea?ra+"/product/card/detail/newhybris":e?ra+"/product/card/detail/hybris":q?"b2b/product/card/detail":
ra+"/product/card/detail/global";if(t){sa.siteCode=J;sa.modelList=t;sa.saleSkuYN="N";sa.onlyRequestSkuYN="N";sa.keySummaryYN="N";sa.specYN="N";da=d.cookies.get("estoreSitecode")?d.cookies.get("estoreSitecode").toString():"";var E=d.cookies.get("country_region")?d.cookies.get("country_region").toString():"",b="",x="";"ae"===f||"ae_ar"===f?x=fnIsNull(da)?f:"ae"===da||"ae_ar"===da||"kw"===da||"kw_ar"===da||"om"===da||"om_ar"===da||"bh"===da||"bh_ar"===da||"qa"===da||"qa_ar"===da?da:f:"levant"===f?x=
"jo":"levant_ar"===f?x="jo_ar":"n_africa"===f&&(x="ma");if("ca"===f||"ca_fr"===f)b=fnIsNull(E)?"CA-ON":E,sa.regionCode=b;fnIsNull(x)||(sa.shopSiteCode=x);if(F||ea||q)sa.commonCodeYN="N";q&&(sa.shopType="b2bhybris");d.ajax({url:r+"/"+U+"/"+ra,data:sa,async:!1,success:function(P){if(200===P.response.statusCode&&0<P.response.resultData.productList.length)for(var H=0;H<P.response.resultData.productList.length;H++){var ca=P.response.resultData.productList[H],h=0;if(!fnIsNull(ca.modelList)&&0<ca.modelList.length)for(var I=
0;I<ca.modelList.length;I++){var u=ca.modelList[I];void 0!==u.selected&&"Y"===u.selected&&(h=I)}ca.frontModelIdx=h;u=void 0;I={};for(u in ca.modelList){var A=ca.modelList[u].fmyChipList,T;for(T in A){var fa=A[T].fmyChipType+"+"+A[T].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+A[T].fmyChipLocalName.replace('"',"").replace("\x26quot;","");I[fa]=void 0===I[fa]?u:I[fa]+(","+u)}}u=[];A={};if(!fnIsNull(ca.chipOptions))for(fa=0;fa<ca.chipOptions.length;fa++){var X=ca.chipOptions[fa],G=X.fmyChipType,
z=X.optionList,M;for(M in z){var S=X.fmyChipType+"+"+z[M].optionCode.replace('"',"").replace("\x26quot;","")+"+"+z[M].optionLocalName.replace('"',"").replace("\x26quot;","");void 0!==I[S]&&(z[M].modelIdx=I[S])}A[G]={};A[G].optionList=z;u.push(G)}ca.viewOptionObj=A;ca.optionTypeList=u;Y[N]=ca;h=V(ca,h);h=va(h);ha+='\x3cdiv class\x3d"accessories__item js-acc-product-card" data-productidx\x3d'+N+"\x3e";ha+=h;ha+="\x3c/div\x3e";N++}}})}ha?(d("section.accessories").find("div.scrollbar__contents").html(ha),
Aa(),d("section.accessories").show()):d("section.accessories").remove()};t&&B()};d(function(){K();window.sg.components.accessories.reInit()});l.accessoriesGrid=K})(window,window.jQuery);
(function(){var l=window.sg.common.$q,d=function(D){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(D),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)};d.instances.set(D,this);this.init()};d.prototype.init=function(){this.setElements();this.bindEvents();this.toggleAccordion()};d.prototype.reInit=function(){this.init()};d.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)};d.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)};d.prototype.handleResize=function(){this.toggleAccordion()};d.prototype.handleClickAccordion=function(D){D=
l(D.currentTarget).closest(this.selector.accordionEl);var r=D.find(this.selector.accordionContentWrap),B=D.find(this.selector.accordionCta);D.toggleClass(this.classes.accordionExpand);D.hasClass(this.classes.accordionExpand)?(r.removeAttr("inert"),B.attr("aria-expanded",!0)):(r.attr("inert",!0),B.attr("aria-expanded",!1));this.toggleAccordion()};d.prototype.handleClickTab=function(D){D=l(D.currentTarget).parent().index();this.el.panel.removeClass(this.classes.panelActive);this.el.panel.eq(D).addClass(this.classes.panelActive);
this.toggleAccordion()};d.prototype.handleClickNumber=function(D){D.stopPropagation()};d.prototype.toggleAccordion=function(){var D=this.el.section.find(".ftd22-faq__accordion.ftd22-faq__accordion--expanded").find(this.selector.accordionContent),r=this.el.section.find(".ftd22-faq__accordion:not(.ftd22-faq__accordion--expanded)").find(this.selector.accordionContentWrap);D.target.forEach(function(B){l(B).parent().css({"max-height":l(B).outerHeight()+"px"})});r.css({"max-height":0})};var K=function(){l(".ftd22-faq").target.forEach(function(D){d.instances.has(D)||
new d(D)})};d.instances=new WeakMap;window.sg.components.Ftd22Faq={init:K,reInit:function(){l(".ftd22-faq").target.forEach(function(D){d.instances.has(D)?d.instances.get(D).reInit():new d(D)})}};l.load(K)})();
(function(){var l=window.sg.common.$q,d=window.sg.common.utils,K=window.sg.common.lazyLoad,D=window.sg.common.swiperManager,r=function(J){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(J)};this.swiperIndex=this.swiper=this.currentDevice=
null;this.handler={handleResize:this.handleResize.bind(this)};r.instances.set(J,this);this.init()};r.prototype.init=function(){this.setElements();this.bindEvents()};r.prototype.reInit=function(){this.init();K.forceLoad(this.section)};r.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)};r.prototype.bindEvents=function(){this.swiper=D.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"))};r.prototype.handleResize=function(){var J=this,U=d.getCurrentDevice();this.matchHeight();this.currentDevice!==U&&setTimeout(function(){J.initSwiper();J.updateTagging()},250);this.currentDevice=U};r.prototype.matchHeight=function(){[this.el.nameWrap,this.el.descWrap].forEach(function(J){var U=J.target.reduce(function(O,w){w=w.children[0]?w.children[0].clientHeight:0;return O>w?O:w},0);J.css({height:U+"px"});0===U?J.addClass("is-empty"):
J.removeClass("is-empty")})};r.prototype.updateTagging=function(){if(this.swiper){var J=this.swiperIndex+1;this.el.screenIndicatorPrev.attr("an-la","carousel:swipe:buy direct get more"+(J-1));this.el.screenIndicatorNext.attr("an-la","carousel:swipe:buy direct get more"+(J+1))}};r.prototype.initSwiper=function(){var J=this;this.el.swiperContainer.target.forEach(function(U){D.slideReInit(U);D.slideInitEnd(U,function(){J.swiper=D.getSwiper(U);J.updateTagging();J.swiper.on("reachEnd",function(){J.swiperIndex=
J.swiper.slides.length-1;J.updateTagging()});J.swiper.on("transitionEnd",function(){J.swiper.isEnd||(J.swiperIndex=J.swiper.activeIndex,J.updateTagging())})})})};var B=function(){l(".pdd28-reasons-to-buy").target.forEach(function(J){r.instances.has(J)||new r(J)})};r.instances=new WeakMap;window.sg.components.PdReasonsToBuy={init:B,reInit:function(){l(".pdd28-reasons-to-buy").target.forEach(function(J){r.instances.has(J)?r.instances.get(J).reInit():new r(J)})}};l.load(B)})();
(function(l,d){function K(){var w=d("#siteCode").val(),t=d("#pfCategoryTypeCode").val(),C="GPv2"===J?!0:!1,v="Hybris-intg"===J?!0:!1;fnIsNull(J);var f="Hybris-new"===J?!0:!1,q=checkEppSite(),k=d("#searchDomain").val(),F=d("#apiStageInfo").val(),ea=q?"epp/v2":"b2c",e=k+"/"+F+"/"+ea+"/product/finder/global";C?e=k+"/"+F+"/"+ea+"/product/finder/gpv2":v?e=k+"/"+F+"/"+ea+"/product/finder/hybris":f&&(e=k+"/"+F+"/"+ea+"/product/finder/newhybris");w={type:t,siteCode:w,start:1,num:12,sort:"newest",onlyFilterInfoYN:"N",
keySummaryYN:"Y",onlyReasonToBuyYN:"Y"};if(q){q=l.sg.epp.common.companyCode;t=d("#pfType").val();w.companyCode=q;w.pfType=t;if("F"==t||"R"==t)w.offerId=d("#pfOfferId").val();l.sg.epp.common.isUserGroupPricing&&(w.groupName=l.sg.epp.common.groupName);""!=window.sg.epp.common.userStoreId&&(w.o2oId=window.sg.epp.common.userStoreId)}d.ajax({url:e,type:"GET",data:w,dataType:"json",cache:!0,timeout:2E4,success:function(n){if(200===n.response.statusCode){n=n.response.resultData.reasonsToBuyList;var Q="",
Y=!0,N=d("#pfCategoryGroupCode").val(),y=d("#pfCategoryTypeCode").val();if(n&&null!=n){for(var R in n){var V=n[R];if(null==V.iconType||""==V.iconType)Y=!1}R=Granite.I18n.get("Learn more",null,"ux2");for(E in n){V=n[E];var ka=null!=V.iconType&&""!=V.iconType?!0:!1,va="",Aa="",sa="";"NEW"==V.ctaLinkType&&(va='target\x3d"_blank"',Aa=" cta--icon",sa='\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!=V.ctaURL&&""!=V.ctaURL?va:"";var ha=O[V.iconType];if("ca"===siteCode||"ca_fr"===siteCode)"cashback"!==V.iconType||"03000000"!==N&&"04000000"!==N&&"05000000"!==N&&"08000000"!==N&&"07010000"!==y||(ha="#price-guarantee-reguler");var ra=ka&&-1<ha.indexOf("#")?!0:!1,da="";if("#smart-care-regular"===ha||"#belo4d-app"===ha||"#support-laptop"===ha)da="pdd28-reasons-to-buy__item--colored-icon-off";Q+='\x3cdiv class\x3d"pdd28-reasons-to-buy__item swiper-slide '+da+'" 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                                    ';
Y&&(Q+='\x3cdiv class\x3d"pdd28-reasons-to-buy__image"\x3e',ka&&(Q=ra?Q+('\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n                                                \x3cuse xlink:href\x3d"'+ha+'" href\x3d"'+ha+'"\x3e\x3c/use\x3e\n                                              \x3c/svg\x3e'):Q+('\x3cdiv class\x3d"image"\x3e\n                                                    \x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+V.iconType+'" data-mobile-src\x3d"'+
V.iconType+'" \n                                                    alt\x3d"'+V.iconAltText+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n                                                \x3c/div\x3e')),Q+="\x3c/div\x3e");ka=ellipsize(V.title,67);Q+='\x3cdiv class\x3d"pdd28-reasons-to-buy__name-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__name"\x3e'+ka+"\x3c/p\x3e\n                                    \x3c/div\x3e";null!=V.description&&""!=V.description&&
"\x26nbsp;"!=V.description?(ha=ellipsize(V.description,413),Q+='\x3cdiv class\x3d"pdd28-reasons-to-buy__desc-wrap"\x3e\n                                    \t\x3cp class\x3d"pdd28-reasons-to-buy__desc"\x3e'+ha+"\x3c/p\x3e\n                                    \x3c/div\x3e"):Q+='\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!=V.ctaURL&&""!=
V.ctaURL&&"\x26nbsp;"!=V.ctaURL&&(ha=checkEppSite()?getEppMultiStorePath(V.ctaURL):V.ctaURL,Q+='\x3cdiv class\x3d"pdd28-reasons-to-buy__cta"\x3e\n                                            \x3ca class\x3d"cta cta--underline-v2 cta--black'+Aa+' cta--large" href\x3d"'+ha+'" aria-label\x3d"'+R+". "+ka+'" '+va+'\n                                               an-tr\x3d"pdd28_reasons to buy-'+B+'-learn more-content_click" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"reasons to buy:buy direct get more:'+
V.title+':learn more"\x3e\n                                                '+R+"\n                                                "+sa+"\n                                            \x3c/a\x3e\n                                        \x3c/div\x3e");Q+="\x3c/div\x3e\n                                \x3c/div\x3e"}}var E=Q;n="";""!=E&&(n=""+E);""!==n?(d(".pdd28-reasons-to-buy__list-inner").html(n),d("section.pdd28-reasons-to-buy").show(),window.sg.components.PdReasonsToBuy.reInit()):(d("section.pdd28-reasons-to-buy").html(""),
d("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(n){}})}var D=d("#tempTitle").val(),r=d("#rtbListSize").val(),B=d("#pageTrack").val(),J=d("#shopIntegrationFlag").val(),U=-1<D.indexOf("page-pf-ux2")||checkEppSite()&&-1<D.indexOf("page-pf")?!0:!1,O={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",belo4d_Shop_App_icon_Android_96x96:"#belo4d-app",shipping_trade:"#shipping-trade-up",show:"#show-regular",smartthings:"#smartthings-reguler",windfree:"#windfree-reguler",
"belo4d-club":"#belo4d-club-regular"};d(function(){var w=d("h2.pdd28-reasons-to-buy__headline"),t=w.text();w.text(ellipsize(t,72));U?(console.log("PF "+J+" : "+r),K()):(console.log("PD "+J+" : "+r),1>r?(d("section.pdd28-reasons-to-buy").html(""),d("section.pdd28-reasons-to-buy").hide()):d("section.pdd28-reasons-to-buy").show())})})(window,window.jQuery);
(function(){var l,d;function K(){var C=document.querySelector(".manufacturer-info-popup");C&&(l=C,d=C.querySelector(".layer-popup"),t=C.querySelector(".layer-popup__close"),U.init(d),t.addEventListener("click",B),C=document.querySelector(w.section+" "+w.close),C.removeEventListener("keydown",r),C.addEventListener("keydown",r),C=document.querySelector(w.section+" "+w.layerPopup),C.removeEventListener("keydown",D),C.addEventListener("keydown",D))}function D(C){C.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===
C.keyCode&&C.target===document.querySelector(w.section+" "+w.layerPopup)&&(C.preventDefault(),document.querySelector(w.section+" "+w.close).focus())}function r(C){C.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==C.keyCode||(C.preventDefault(),document.querySelector(w.section+" "+w.layerPopup).focus())}function B(){l.removeAttribute("style");O.popupControl.close();O.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 J=window.sg.common.$q,U=window.sg.common.layerPopupMaxHeight,O=window.sg.common.utils,w={section:".manufacturer-info-popup",layerPopup:".layer-popup",close:".layer-popup__close"};var t=d=l=void 0;window.sg.components.manufacturerInfoPopup={reInit:K,showPopup:function(){l.style.display="block";U.reInit(d);var C=document.querySelector(w.section+" "+w.layerPopup);C.setAttribute("tabindex",0);C.focus();
O.popupControl.open(B);O.hiddenScroll()}};J.ready(K)})();
(function(){function l(){d(K.section).target.forEach(function(r){new D(r)})}var d=window.sg.common.$q,K={section:".text-editor"},D=function(r){this.selector={section:K.section,columnBox:".text-editor__column-wrap",hiddenTextArea:".text-editor__column-hidden-text",viewCta:".text-editor__column-cta",activeClass:"is-show"};this.ele={window:d(window),section:d(r),viewCta:null};this.handler={charView:this.charView.bind(this)};D.instances.set(r,this);this.init()};D.prototype.init=function(){this.setProperty();
this.bindEvents()};D.prototype.reInit=function(){this.setProperty();this.bindEvents()};D.prototype.setProperty=function(){var r=this;this.ele.viewCta=this.ele.section.find(this.selector.viewCta);this.ele.section.find(this.selector.columnBox).target.forEach(function(B){var J=d(B);if(0<J.find(r.selector.hiddenTextArea).target.length){var U=J.find(r.selector.hiddenTextArea).target[0].previousElementSibling,O=J.find(r.selector.hiddenTextArea).target[0].firstElementChild;"P"===O.tagName.toUpperCase()&&
O.classList.add("text-extend");if("P"===U.tagName.toUpperCase()&&(U.classList.add("text-extend"),""!==U.style.textAlign)){O=U.style.textAlign;var w=J.find(r.selector.hiddenTextArea).target[0].children;[].concat($jscomp.arrayFromIterable(w)).forEach(function(t){if(""===t.style.textAlign&&!t.classList.contains("text-extend")){var C=window.getComputedStyle(t).textAlign,v=t.getAttribute("style");null!==v?t.setAttribute("style",v+" text-align:"+C):t.setAttribute("style","text-align:"+C)}});w=document.createElement("div");
w.classList.add("extend-area");w.setAttribute("style","text-align:"+O);w.appendChild(U);w.appendChild(J.find(r.selector.hiddenTextArea).target[0]);w.appendChild(J.find(r.selector.viewCta).target[0]);d(B).find(".text-editor__column").target[0].appendChild(w)}}})};D.prototype.charView=function(r){r=d(r.currentTarget);var B=r.closest(this.selector.columnBox).find(this.selector.hiddenTextArea),J=JSON.parse(r.target[0].dataset.globalText);B.hasClass(this.selector.activeClass)?(r.innerHTML(J.Show),B.removeClass(this.selector.activeClass)):
(r.innerHTML(J.Hidden),B.addClass(this.selector.activeClass))};D.prototype.bindEvents=function(){this.ele.viewCta.off("click",this.handler.charView).on("click",this.handler.charView)};D.instances=new WeakMap;window.sg.components.textEditor={init:l,reInit:function(){d(K.section).target.forEach(function(r){D.instances.has(r)?D.instances.get(r).reInit():new D(r)})}};d.ready(l)})();
(function(l,d){window.sg.components.dynamic=window.sg.components.dynamic||{};d(document).on("click",".disclaimer_activeClass_dev",function(){var K=d(this).attr("href");d(K).addClass("feature-bottom-disclaimer__item--active")});d(document).on("click",".feature-bottom-disclaimer__cta-top",function(){d(this).parent().parent().removeClass("feature-bottom-disclaimer__item--active")})})(window,window.jQuery);
(function(){function l(){d(B.section).target.forEach(function(U){J.instances.has(U)||new J(U)})}var d=window.sg.common.$q,K=window.sg.common.utils,D=window.sg.common.lazyLoad,r=window.sg.common.swiperManager,B={section:".pdd36-recommendation-oos-new"},J=function(U){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:d(window),section:d(U)};this.swiper=this.currentDevice=null;this.handler={handleResize:this.handleResize.bind(this)};J.instances.set(U,this);this.init()};J.prototype.init=function(){this.setElements();this.initSwiper();this.bindEvents()};J.prototype.reInit=function(){this.init();
D.forceLoad(this.section)};J.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)};J.prototype.bindEvents=function(){this.swiper=
r.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"))};J.prototype.handleResize=function(){var U=this,O=K.getCurrentDevice();this.setHeight();this.currentDevice!==
O&&setTimeout(function(){U.setSwiperStatus()},10);this.currentDevice=O};J.prototype.setSwiperStatus=function(){(this.swiper=r.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()};
J.prototype.setHeight=function(){var U=this;[this.el.nameWrap,this.el.ratingWrap,this.el.ficheWrap,this.el.priceWrap].forEach(function(O){var w=O.target.reduce(function(t,C){C=C.children[0]?C.children[0].clientHeight:0;return t>C?t:C},0);O.css({height:w+"px"});0===w?O.addClass(U.selector.dataEmptyClass):O.removeClass(U.selector.dataEmptyClass)})};J.prototype.initSwiper=function(){var U=this;this.el.swiperContainer.target.forEach(function(O){r.slideReInit(O);r.slideInitEnd(O,function(){U.swiper=r.getSwiper(O);
U.setSwiperStatus()})})};J.instances=new WeakMap;window.sg.components.Pdd36ProductRecommendationOOS={init:l,reInit:function(){d(B.section).target.forEach(function(U){J.instances.has(U)?J.instances.get(U).reInit():new J(U)})}};d.ready(l)})();var productRecommendationUx2PD={};
(function(l){function d(){var B,J;return $jscomp.asyncExecutePromiseGeneratorProgram(function(U){if(1==U.nextAddress)return U.setCatchFinallyBlocks(2),U.yield(alloy("getIdentity"),4);if(2!=U.nextAddress){B=U.yieldResult;if(!B||!B.identity||!B.identity.ECID)throw Error("ECID not found");return U.return(B.identity.ECID)}J=U.enterCatchBlock();console.error("Error retrieving ECID:",J.message);return U.return(null)})}function K(B){B&&(B=B.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,
"\x26quot;").replace(/'/g,"\x26#039;"));return B}var D=siteCode+":"+Math.floor(new Date/1E3)+":"+Math.floor(1E5+9E5*Math.random()),r="true"===l("#isEppPage").val();productRecommendationUx2PD={getSearchProductCardForBDCApi:function(B){var J,U,O,w,t,C,v,f,q,k,F,ea,e,n,Q,Y,N,y,R;return $jscomp.asyncExecutePromiseGeneratorProgram(function(V){if(1==V.nextAddress)return J="https://api-recommender.bigdata.quick3d.org",U="/prodrec/recommendation",V.yield(d(),2);O=V.yieldResult;C=t=w="";if(commonLoginCheck()){v=
".quick3d.org";"cn"===siteCode&&(v=".quick3d.org.cn");try{if(f=l.cookies.get("dcgue",{domain:v})?l.cookies.get("dcgue",{domain:v}):window.localStorage.getItem("dcgue"))f=decodeURIComponent(f),q=l.cookies.get("encGuid",{domain:v}),k=q.substring(4,36).toLowerCase(),F=CryptoJS.enc.Utf8.parse(k),ea=CryptoJS.AES.decrypt(f,F,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),w=CryptoJS.enc.Utf8.stringify(ea)}catch(ka){console.error("get guid fail:",ka)}t=l.cookies.get("sa_id",{domain:v});C=l.cookies.get("s_ecid",
{domain:v})}e=l.cookies.get("cmapi_cookie_privacy",{domain:".quick3d.org"});n=cookies.getCookie("recent_list");Q=[];l.each(cookies.getCookies(),function(ka,va){-1!=ka.indexOf("AMCV_")&&Q.push(va.toString())});Y="b2c";N="";r&&(Y="epp",N=window.sg.epp.common.companyCode);y={requestId:D,country:siteCode,num:6,siteType:Y};R={pageType:"pdp_similar_product",guid:w,saId:t,visitorId:C,ecid:O,visitorIdList:Q,consent:e,recentList:n,targetModel:B,rewardPoint:"",eppStoreName:N};l.ajax({headers:y,url:J+U,type:"POST",
data:JSON.stringify(R),xhrFields:{withCredentials:!0},contentType:"application/json; charset\x3dutf-8",dataType:"json",async:!1,cache:!0,success:function(ka,va,Aa){if(200==Aa.status)if(ka.recommendations&&0<ka.recommendations.length){va=ka.recommendations;D=ka.requestId;l(".pdd36-recommendation-oos-new .pdd36-recommendation-oos-new__list-inner").show();l(".pdd36-recommendation-oos-new .pd-offer__content").hide();ka=l(".pdd36-recommendation-oos-new");var sa="";if(null!=va){for(Aa=0;Aa<va.length;Aa++){var ha=
va[Aa].product,ra=va[Aa].model;if(null!=ha.modelList&&0<ha.modelList.length){for(var da=0,E=0;E<ha.modelList.length;E++)ha.modelList[E].modelCode==ra&&(da=E);ha.frontModelIdx=da;E=ha;ra=Aa;ha=E.modelList[E.frontModelIdx];da="";K((ha.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));var b='data-modelcode\x3d"'+ha.modelCode+'"',x='data-modelname\x3d"'+ha.modelName+'"',P='data-requested\x3d"'+D+'"';(E.categorySubTypeEngName||"").toLowerCase();(ha.pviTypeName||"").toLowerCase();(ha.pviSubtypeName||
"").toLowerCase();ra='{"an-tr":"pdd36_product  card case-product detail-index-indication","an-ca":"indication","an-ac":"carousel","an-la":"carousel:index:'+ra+'"}';var H=E.modelList[E.frontModelIdx],ca="";K((H.displayName||"").replace(/<br>/ig," ").replace(/<sup>/ig," "));var h='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"'+(H.modelName+'" data-modelcode\x3d"')+
(H.modelCode+'" data-requested\x3d"')+(D+'"');if(H.thumbUrl){var I=H.thumbUrl,u=H.thumbUrlAlt||"",A=H.pdpUrl;"Y"===H.simplePdYN&&r&&null!=H.originPdpUrl&&(A=H.originPdpUrl.replace("feature.","buy."));h='\x3c!--/* Preset desktop: 180_180, mobile: 200_200 */--\x3e\n\t\t\t\t\x3ca href\x3d"'+A+'" class\x3d"pdd36-recommendation-oos-new__image-link" '+h+"\x3e\n\t\t\t\t";var T=A="",fa="",X=!1;fnIsNull(H.topFlags)||fnIsNull(H.topFlags.iconTypeCd)||("N"===H.topFlags.iconTypeCd?(fa=Granite.I18n.get("new"),
T=" badge-icon--bg-color-blue",X=!0):"H"===H.topFlags.iconTypeCd?(fa=Granite.I18n.get("hot"),T=" badge-icon--bg-color-red",X=!0):"B"===H.topFlags.iconTypeCd&&(fa=Granite.I18n.get("best seller"),T=" badge-icon--bg-color-orange",X=!0));X&&(A='\x3cspan class\x3d"badge-icon badge-icon--label-v2'+T+'"\x3e'+fa+"\x3c/span\x3e");ca+=h+A+'\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"'+(I+'?$144_144_PNG$" data-mobile-src\x3d"')+
(I+'?$UX_EXT1_PNG$" alt\x3d"')+u+'" 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"'+(I+'?$144_144_PNG$" data-mobile-src\x3d"')+(I+'?$UX_EXT1_PNG$" alt\x3d"')+u+'" 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'}b='\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'+ca+'\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"'+
ha.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" '+x+" "+b+" "+P+"\x3e"+ha.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                  ';x="";"Y"===E.useReviewYN&&(P=ha.ratings,fnIsNull(P)&&
(P=0,ha.ratings=0),E='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"'+(ha.modelName+'" data-modelcode\x3d"')+(ha.modelCode+'"'),I=Math.pow(10,1),P=Math.round(P*I)/I,I=parseFloat(P).toFixed(1),P=parseInt(P),parseInt(100*(I-P)),"0.0"!==I&&(ha.ratings=I),null!=ha.ratings&&""!=ha.ratings&&"cn"!==siteCode&&"0"!==ha.ratings&&(P="/"+siteCode+"/common/review/"+ha.modelCode+"/",null!=ha.reviewUrl&&
""!=ha.reviewUrl&&(P=ha.reviewUrl),x+='\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"'+P+'" class\x3d"pdd36-recommendation-oos-new__rating" '+E+'\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'+
ha.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'+ha.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"));
E=x;E=b+E+'\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                  ';b=l("#priceCurrency").val();x=l("#priceCurrency").val();P=ha.price;I=ha.promotionPrice;u="";P&&("bg"===siteCode&&(ha.priceCurrency&&(b=ha.priceCurrency),ha.promotionPriceCurrency&&(x=ha.promotionPriceCurrency)),u=currencyComma(P,b),I&&parseFloat(P)>parseFloat(I)&&0<parseFloat(I)&&(u=currencyComma(I,x)));da+=
E+('\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'+u+"\n\t\t\t\x3c/p\x3e\n        \x3c/div\x3e\n\t\t\t\t\t\t\t\t                \x3c/div\x3e");da='\x3cdiv class\x3d"pdd36-recommendation-oos-new__item swiper-slide" role\x3d"listitem" data-tagging\x3d\''+ra+"'\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t"+da+"\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e";sa+=da}}va=ka.html;Aa=sa;sa='\x3cdiv class\x3d"pdd36-recommendation-oos-new__inner"\x3e\x3cdiv class\x3d"pdd36-recommendation-oos-new__content"\x3e';
ha='\x3cp class\x3d"pdd36-recommendation-oos-new__headline"\x3e'+Granite.I18n.get("Looking for alternatives?")+"\x3c/p\x3e";va.call(ka,sa+ha+('\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'+
Aa+'\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(ka){}});V.jumpToEnd()})}}})(window.jQuery);
(function(){function l(){d(D.section).target.forEach(function(B){r.instances.has(B)||new r(B)})}var d=window.sg.common.$q,K=window.sg.common.tab,D={section:".pdd40-rtb-bar"},r=function(B){this.selector={wrap:".tab"};this.el={section:d(B),window:d(window)};this.init();r.instances.set(B,this)};r.prototype.init=function(){this.setElements();K.init(this.el.wrap.target[0])};r.prototype.reInit=function(){this.setElements();K.init(this.el.wrap.target[0])};r.prototype.setElements=function(){this.el.wrap=
this.el.section.find(this.selector.wrap)};r.instances=new WeakMap;window.sg.components.Pdd40RTBBar={init:l,reInit:function(){d(D.section).target.forEach(function(B){r.instances.has(B)?r.instances.get(B).reInit():new r(B)})}};d.ready(l)})();
(function(){var l,d,K,D;function r(){var q=document.querySelector(".siel-trade-in-popup");q&&(l=q,d=q.querySelector(".siel-trade-in-popup__close"),K=q.querySelector(".siel-trade-in-popup__btn-cancel"),D=q.querySelector(".siel-trade-in-popup--start"),v=q.querySelector(".siel-trade-in-popup--end"),f=0,B())}function B(){d.addEventListener("click",function(){U()});K.addEventListener("click",function(){U()});D.addEventListener("focus",function(){d.focus()});v.addEventListener("focus",function(){l.querySelector(".text-field-v2__input").focus()});
window.addEventListener("resize",function(){J()});J()}function J(){var q=window.innerHeight,k=l.querySelector(".siel-trade-in-popup__title").getBoundingClientRect().height,F=l.querySelector(".siel-trade-in-popup__btn-wrap").getBoundingClientRect().height,ea=q-k-F;"desktop"===C.getCurrentDevice()?640>ea?l.querySelector(".scrollbar__wrap").style.height=q-k-F+"px":l.querySelector(".scrollbar__wrap").style.height="640px":l.querySelector(".scrollbar__wrap").style.height=q-k-F+"px";t.resize(l.querySelector(".scrollbar"))}
function U(){l.removeAttribute("style");C.popupControl.close();C.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 O(){[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".radio-v2__input"))).forEach(function(q){q.addEventListener("change",function(){[].concat($jscomp.arrayFromIterable(l.querySelectorAll(".radio-v2"))).forEach(function(k){k.classList.remove("active")});
q.parentElement.classList.add("active")})})}var w=window.sg.common.$q,t=window.sg.common.scrollbar,C=window.sg.common.utils;var v=D=K=d=l=void 0;var f=0;window.sg.components.sielTradeInPopup={init:r,showPopup:function(){l.style.display="block";C.popupControl.open(U);C.hiddenScroll();J()},showStep:function(q){l.querySelectorAll(".siel-trade-in-popup-option")[f].classList.add("show");"last"===q&&(O(),l.querySelectorAll(".siel-trade-in-popup-option")[f+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"),F=l.querySelector("#guide-btn");k.classList.remove("show");k.classList.add("hide");F.setAttribute("xlink:href","#open-down-regular");F.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"),
F=l.querySelector("#guide-btn"),k.classList.remove("hide"),k.classList.add("show"),F.setAttribute("xlink:href","#close-up-regular"),F.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"));f+=1},closePopup:U,resizePopup:J,goScroll:function(q){q=l.querySelectorAll(".siel-trade-in-popup-option")[q].offsetTop;t.scrollTo(l.querySelector(".scrollbar"),
0,q,!0)}};w.ready(function(){return r()})})();
(function(){var l=window.sg.common.$q,d=window.sg.common.constants.KEY_CODE,K=window.sg.common.utils,D=window.sg.common.tab,r=window.sg.common.swiperManager,B=window.sg.common.video,J=window.sg.common.lazyLoad,U=window.sg.common.scrollbar,O=function(t){this.selector={tooltip:'[data-js-action\x3d"pdd44TooltipContainer"]',tooltipLayer:'[data-js-action\x3d"pdd44TooltipLayer"]',tooltipShow:'[data-js-action\x3d"pdd44TooltipShow"]',tooltipHide:'[data-js-action\x3d"pdd44TooltipHide"]',tooltipHover:"data-tooltip-hover",
ratingDetail:".pdd44-review__detail",ratingDetailInner:".pdd44-review__detail-inner",ratingDetailCta:".pdd44-review__detail-view-cta",filterWrap:".pdd44-review__filter",filterTop:".pdd44-top",filter:".pdd44-filter",filterScrollArea:".pdd44-filter__filter",filterInner:".pdd44-filter__filter-inner",filterMoCTA:".pdd44-filter__mo-cta",filterSelectorList:".pdd44-filter__selector-list",filterSelectorItem:".pdd44-filter__selector-item",filterSelectorItemMenu:".pdd44-filter__selector-item--menu",filterSelectorShow:".pdd44-filter__selector-item--show",
filterOption:".pdd44-filter__option",filterOptionList:".pdd44-filter__option-list",filterOptionViewMoreCTA:".pdd44-filter__selector-view-more",filterSelectorItemButton:"button.pdd44-filter__selector-item-cta",filterChipList:".pdd44-filter__selected-list",filterChipItem:".pdd44-filter__selected-item",filterChipItemWrap:".pdd44-filter__selected-item-wrap",filterChipViewCTA:".pdd44-filter__selected-view-more",filterResult:".pdd44-top__result",mobileFilterOpenCTA:'[data-js-action\x3d"pdd44MoFilterOpen"]',
mobileFilterCloseCTA:'[data-js-action\x3d"pdd44MoFilterClose"]',filterTooltipWrap:".pdd44-filter__tooltip",filterTooltipContent:".pdd44-filter__tooltip-content",filterTooltipContentClone:".pdd44-filter \x3e .pdd44-filter__tooltip-content",filterTooltipText:".pdd44-filter__tooltip-text",filterTooltipOpen:'[data-js-action\x3d"pdd44TooltipOpen"]',filterTooltipClose:'[data-js-action\x3d"pdd44TooltipClose"]',filterTextfieldCta:'[data-js-action\x3d"pdd44ToggleOptions"]',filterTextField:".pdd44-filter__text-field",
sort:".pdd44-sort",sortOpen:'[js-data-action\x3d"pdd44SortToggle"]',sortClose:'[js-data-action\x3d"pdd44SortClose"]',sortText:".pdd44-sort__text",sortContents:".pdd44-sort__contents",sortContentsWrap:".pdd44-sort__contents-wrap",sortHeadName:".pdd44-sort__contents-head-name",sortItemInput:".radio-v3__input",sortSelectedItem:".radio-v3:has(.radio-v3__input:checked)",sortSelectedName:".pdd44-sort__opener-name",mobileSortCloseButton:'[js-data-action\x3d"pdd44SortClose"]',sortApply:".pdd44-sort__contents-bottom .cta",
gallery:".pdd44-review__gallery",galleryTab:".pdd44-review__gallery-tab",galleryTabItem:".pdd44-review__gallery-tab .tab__item",galleryTabBtn:".pdd44-review__gallery-tab .tab__item-title",galleryPanel:".pdd44-review__gallery-panel",gallerySlide:".pdd44-review__gallery-swiper",galleryItem:".pdd44-review__gallery-item",reviewList:".pdd44-review__list",reviewListItem:".pdd44-review__list-item",reviewListDetail:".pdd44-review__contents-detail",reviewListDetailInner:".pdd44-review__contents-detail-text-inner",
reviewListDetailText:".pdd44-review__contents-detail-text",reviewListViewMoreBtn:".pdd44-review__contents-detail-view-more",reviewListThumbsUpCta:".pdd44-review__contents-recommended-cta--thumbs",galleryPopup:".pdd44-review__gallery-popup",galleryPopupDimmed:".pdd44-review__gallery-popup-dimmed",galleryPopupWrapper:".pdd44-review__gallery-popup-wrapper",galleryPopupPcScrollbarEl:".pdd44-review__gallery-popup-side",galleryPopupVideoWrapper:".pdd44-review__gallery-popup-carousel-video",galleryPopupVideoPlayBtn:".pdd44-review__gallery-popup-carousel-play-btn",
galleryPopupVideoCloseBtn:".pdd44-review__gallery-popup-carousel-video-close",galleryPopupSwiper:".pdd44-review__gallery-popup-carousel",galleryPopupThumbsUpCta:".pdd44-review__gallery-popup-recommended-cta--thumbs",sharePopup:".pdd44-review__share-popup",sharePopupDimmed:".pdd44-review__share-popup .popup__dimmed",supportedLangsPopup:".pdd44-review__supported-langs-popup",supportedLangsPopupDimmed:".pdd44-review__supported-langs-popup .popup__dimmed"};this.classes={filter:"pdd44-filter",filterHide:"pdd44-filter--hide",
filterClose:"pdd44-filter--close",mobileFilterShowClass:"pdd44-filter--show",mobileFilterOpenClass:"pdd44-filter--open",filterSelectorShowClassPC:"pdd44-filter__selector-item--show-pc",filterSelectorShowClass:"pdd44-filter__selector-item--show",filterSelectorOpenClassPC:"pdd44-filter__selector-item--open-pc",filterSelectorOpenClass:"pdd44-filter__selector-item--open",filterOptionViewMoreClass:"pdd44-filter__selector-item--view-more",filterChipViewMoreClass:"pdd44-filter__selected-list--view-more",
filterChipViewCTAHide:"pdd44-filter__selected-view-more--hide",filterOptionOffScreen:"pdd44-filter__selector-item--off-screen",filterTooltipShow:"pdd44-filter__tooltip-content--show",filterTooltipMouseEnter:"pdd44-filter__tooltip-content--mouse-enter",sortContents:"pdd44-sort__contents",sortShowClass:"pdd44-sort__contents--show",sortOpenClass:"pdd44-sort__contents--open",tooltipLayerRight:"pdd44-tooltip__layer--right",galleryTabActive:"tab__item--active",galleryPanelActive:"is-active",reviewListDetailShow:"expanded",
thumbsUpActive:"is-active",galleryPopupVideoOpen:"video--open"};this.el={section:l(t),window:l(window),document:l(document)};this.handler={handleResize:this.handleResize.bind(this),handleClickWindow:this.handleClickWindow.bind(this),handleTooltipOpen:this.handleTooltipOpen.bind(this),handleTooltipClose:this.handleTooltipClose.bind(this),handleClickRatingAccordion:this.handleClickRatingAccordion.bind(this),handleClickFilterSelectorItem:this.handleClickFilterSelectorItem.bind(this),handleFocusOutTarget:this.handleFocusOutTarget.bind(this),
handleClickMobileFilterShow:this.handleClickMobileFilterShow.bind(this),handleClickMobileFilterHide:this.handleClickMobileFilterHide.bind(this),handleClickOptionViewMore:this.handleClickFilterOptionViewMore.bind(this),handleClickFilterChipViewMore:this.handleClickFilterChipViewMore.bind(this),handleTransitionEndFilterOption:this.handleTransitionEndFilterOption.bind(this),handleFilterResultClick:this.handleFilterResultClick.bind(this),handleClickSortOpen:this.handleClickSortOpen.bind(this),handleClickSortClose:this.handleClickSortClose.bind(this),
handleChangeSortItem:this.handleChangeSortItem.bind(this),handleClickSortApply:this.handleClickSortApply.bind(this),handleKeyDownSortItem:this.handleKeyDownSortItem.bind(this),handleClickReviewViewMore:this.handleClickReviewViewMore.bind(this),handleClickThumbsUp:this.handleClickThumbsUp.bind(this),closeGalleryPopup:this.closeGalleryPopup.bind(this),handleGalleryPopupChangeSlide:this.handleGalleryPopupChangeSlide.bind(this),handleClickGalleryPopupVideoPlay:this.handleClickGalleryPopupVideoPlay.bind(this),
resetGalleryPopupVideo:this.resetGalleryPopupVideo.bind(this),closeSharePopup:this.closeSharePopup.bind(this),openSupportedLangsPopup:this.openSupportedLangsPopup.bind(this),closeSupportedLangsPopup:this.closeSupportedLangsPopup.bind(this)};O.instances.set(t,this);this.swiperInstance=null;this.currentDevice=K.getCurrentDevice();this.directionFlag=K.getDirection();this.sharePopup=this.galleryPopupSwiper=this.galleryPopup=this.resizeTimer=null;this.init()};O.prototype.init=function(){this.setElements();
this.reInitRating();this.reInitGallery();this.reInitSort();this.reInitFilter();this.reInitReview();this.bindEvents()};O.prototype.reInit=function(){this.init()};O.prototype.setElements=function(){this.el.filterWrap=this.el.section.find(this.selector.filterWrap);this.el.filterTop=this.el.section.find(this.selector.filterTop);this.el.filterChipList=this.el.section.find(this.selector.filterChipList);this.el.filterOption=this.el.section.find(this.selector.filterOption);this.el.reviewList=this.el.section.find(this.selector.reviewList);
this.el.galleryPopup=this.el.section.find(this.selector.galleryPopup);this.el.galleryPopupDimmed=this.el.section.find(this.selector.galleryPopupDimmed);this.el.galleryPopupPcScrollbarEl=this.el.section.find(this.selector.galleryPopupPcScrollbarEl);this.galleryPopupSwiper=r.getSwiper(this.el.galleryPopup.find(".swiper-container").target[0]);this.el.sharePopup=this.el.section.find(this.selector.sharePopup);this.el.sharePopupOpenCta=this.el.section.find(this.selector.sharePopupOpenCta);this.el.sharePopupDimmed=
this.el.section.find(this.selector.sharePopupDimmed);this.el.supportedLangsPopup=this.el.section.find(this.selector.supportedLangsPopup);this.el.supportedLangsPopupDimmed=this.el.section.find(this.selector.supportedLangsPopupDimmed)};O.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize);this.el.window.off("deviceorientation",this.handler.handleResize).on("deviceorientation",this.handler.handleResize);this.el.sharePopupDimmed.off("click",
this.handler.closeSharePopup).on("click",this.handler.closeSharePopup);this.el.galleryPopupDimmed.off("click",this.handler.closeGalleryPopup).on("click",this.handler.closeGalleryPopup);this.el.supportedLangsPopupDimmed.off("click",this.handler.closeSupportedLangsPopup).on("click",this.handler.closeSupportedLangsPopup);window.dispatchEvent(new Event("resize"))};O.prototype.handleResize=function(){var t=this;this.resizeTimer&&clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){t.el.filter.target.length&&
(t.handleTopSticky(),t.setFilterItemHeight());t.currentDevice!==K.getCurrentDevice()?(t.resetRatingAccordion(),t.el.filter.target.length&&(t.setFilterResponsive(),t.hideMobileFilter(),t.hideSortContents(),t.checkActiveSort(),K.removeMobileFocusLoop(),t.el.filter.offLayerFocus()),t.el.galleryPopup.hasClass("popup--open")&&t.setGalleryScroll(),t.currentDevice=K.getCurrentDevice()):"mobile"===K.getCurrentDevice()&&t.setDetailHeight()},100)};O.prototype.reInitRating=function(){this.reInitTooltip();this.reInitRatingAccordion()};
O.prototype.reInitRatingAccordion=function(){this.el.ratingDetail=this.el.section.find(this.selector.ratingDetail);this.el.ratingDetailInner=this.el.section.find(this.selector.ratingDetailInner);this.el.ratingDetailCta=this.el.section.find(this.selector.ratingDetailCta);this.resetRatingAccordion();this.el.ratingDetailCta.off("click",this.handler.handleClickRatingAccordion).on("click",this.handler.handleClickRatingAccordion)};O.prototype.resetRatingAccordion=function(){"desktop"===K.getCurrentDevice()?
(this.el.ratingDetail.removeClass("expanded"),this.el.ratingDetailInner.removeAttr("aria-hidden"),this.el.ratingDetailCta.removeAttr("aria-expanded"),this.el.ratingDetail.css({"max-height":""})):(this.el.ratingDetailCta.find("span").text(this.el.ratingDetailCta.attr("data-text-more")),this.el.ratingDetail.removeClass("expanded"),this.el.ratingDetailInner.attr("aria-hidden",!0),this.el.ratingDetailCta.attr("aria-expanded",!1),this.el.ratingDetail.css({"max-height":0}))};O.prototype.handleClickRatingAccordion=
function(){this.el.ratingDetail.hasClass("expanded")?(this.el.ratingDetail.addClass("expanded"),this.closeRatingAccordion()):(this.el.ratingDetail.addClass("expanded"),this.openRatingAccordion());this.setDetailHeight()};O.prototype.setDetailHeight=function(){var t=this.el.ratingDetail.hasClass("expanded")?this.el.ratingDetailInner.offset().height:0;this.el.ratingDetail.css({"max-height":t+"px"})};O.prototype.openRatingAccordion=function(){this.el.ratingDetailCta.find("span").text(this.el.ratingDetailCta.attr("data-text-less"));
this.el.ratingDetail.addClass("expanded");this.el.ratingDetailInner.removeAttr("aria-hidden");this.el.ratingDetailCta.attr("aria-expanded",!0)};O.prototype.closeRatingAccordion=function(){this.el.ratingDetailCta.find("span").text(this.el.ratingDetailCta.attr("data-text-more"));this.el.ratingDetail.removeClass("expanded");this.el.ratingDetailInner.attr("aria-hidden",!0);this.el.ratingDetailCta.attr("aria-expanded",!1)};O.prototype.reInitGallery=function(){this.el.gallery=this.el.section.find(this.selector.gallery);
this.el.gallery.target.length&&(this.reInitGalleryTab(),this.reInitGallerySwiper(),J.setLazyLoad())};O.prototype.reInitGalleryTab=function(){this.el.galleryTab=this.el.section.find(this.selector.galleryTab);this.el.galleryTabItem=this.el.section.find(this.selector.galleryTabItem);this.el.galleryTabBtn=this.el.section.find(this.selector.galleryTabBtn);this.el.galleryTab.target.length&&(this.activeTabIndex=this.getActiveTabIndex(),D.init(this.el.galleryTab.target[0],this.activeTabIndex))};O.prototype.getActiveTabIndex=
function(){var t=this.el.galleryTab.find("."+this.classes.galleryTabActive).target[0];return t?Array.from(this.el.galleryTabItem.target).indexOf(t):0};O.prototype.reInitGallerySwiper=function(t){var C=l(this.selector.gallerySlide).target[0];if(C){var v=l(C).find(this.selector.galleryItem),f="desktop"===this.currentDevice?7:3;v.target.length<=f?C.swiper&&r.destroy(C):setTimeout(function(){void 0===C.swiper?r.slideInit(C):r.slideReInit(C);r.slideInitEnd(C,function(){void 0!==t&&C.swiper&&C.swiper.slideTo(t+
1,0)});r.slideUpdate(C,{realSlidesPerView:Math.round(f)})},100)}};O.prototype.handleClickWindow=function(t){if("mobile"===this.currentDevice){if(t=l(t.target),t.hasClass(this.classes.filter)||t.hasClass(this.classes.sortContents))this.hideMobileFilter(),this.hideSortContents()}else if(t.target.closest(".radio-v3")||!(t.target.closest("."+this.classes.filterSelectorOpenClassPC)||t.target.closest(this.selector.sortOpen)||t.target.closest("."+this.classes.sortOpenClass)))this.closeExpandedFilter(),this.hideSortContents()};
O.prototype.handleFocusOutTarget=function(t){"desktop"!==this.currentDevice||t.target.closest("."+this.classes.filterSelectorOpenClassPC)||t.target.closest(this.selector.sortOpen)||t.target.closest("."+this.classes.sortOpenClass)||(this.closeExpandedFilter(),this.hideSortContents())};O.prototype.reInitTooltip=function(){var t=this;this.el.tooltipOpen=this.el.section.find(this.selector.tooltipShow);this.el.tooltipOpen.target.forEach(function(C){C=l(C);"false"!==C.closest(t.selector.tooltip).attr(t.selector.tooltipHover)&&
(C.off("mouseenter").on("mouseenter",function(v){return t.handler.handleTooltipOpen(v,t.isTooltipOverflow.bind(t))}),C.off("focus").on("focus",function(v){return t.handler.handleTooltipOpen(v,t.isTooltipOverflow.bind(t))}));C.off("click").on("click",function(v){return t.handler.handleTooltipOpen(v,t.isTooltipOverflow.bind(t))})})};O.prototype.handleTooltipOpen=function(t,C){var v=this;if(!t.currentTarget.disabled){var f=l(t.currentTarget),q=f.closest(this.selector.tooltip),k=t.relatedTarget||document.activeElement,
F=q.find(this.selector.tooltipHide),ea=q.attr(this.selector.tooltipHover);"false"===ea&&"click"===t.type&&"true"===q.attr("data-tooltip-show")?this.tooltipClose(q):"focus"===t.type&&q.target[0].contains(k)||(this.focusTargetEl=t&&t.currentTarget,this.tooltipClose(),"false"!==ea&&(q.off("mouseleave",this.handler.handleTooltipClose).on("mouseleave",this.handler.handleTooltipClose),q.off("focusout",this.handler.handleTooltipClose).on("focusout",this.handler.handleTooltipClose)),F.off("click",this.handler.handleTooltipClose).on("click",
this.handler.handleTooltipClose),setTimeout(function(){l(document).off("click",v.handler.handleTooltipClose).on("click",v.handler.handleTooltipClose);l(document).off("keydown",v.handler.handleTooltipClose).on("keydown",v.handler.handleTooltipClose)},10),f.attr("aria-expanded",!0),q.attr("data-tooltip-show",!0),this.resetCallback=C(q.target[0]))}};O.prototype.handleTooltipClose=function(t){var C=t.type,v=l(t.target),f=t.relatedTarget||document.activeElement,q=v.closest(this.selector.tooltip);if("focusout"!==
C||!q.target[0].contains(f))if("keydown"!==C||t.keyCode===d.ESC)if("click"!==C||v.closest(this.selector.tooltipHide).target.length||!v.closest(this.selector.tooltip).target.length)this.tooltipClose(),this.resetCallback&&this.resetCallback(),this.resetCallback=null,this.focusTargetEl&&this.focusTargetEl!==v.target[0]&&"mouseleave"!==C&&this.focusTargetEl.focus(),this.focusTargetEl=null};O.prototype.tooltipClose=function(t){t=t?t.target?t:l(t):this.el.section.find(this.selector.tooltip);var C=t.find(this.selector.tooltipShow),
v=t.find(this.selector.tooltipHide);t.off("mouseleave",this.handler.handleTooltipClose);t.off("focusout",this.handler.handleTooltipClose);v.off("click",this.handler.handleTooltipClose);l(document).off("click",this.handler.handleTooltipClose);l(document).off("keydown",this.handler.handleTooltipClose);C.attr("aria-expanded",!1);t.attr("data-tooltip-show",!1);t.attr("data-tooltip-overflow",!1)};O.prototype.isTooltipOverflow=function(t){var C=l(t),v=C.find(this.selector.tooltipLayer).target[0];t=v.getBoundingClientRect();
var f=C.closest(".pdd44-review__gallery-popup-info").target[0];f=f?f.getBoundingClientRect():{left:0,right:window.innerWidth};var q=t.right>f.right;C.attr("data-tooltip-overflow",t.left<f.left||q);q&&v.classList.add(this.classes.tooltipLayerRight);return function(){C.attr("data-tooltip-overflow",!1);v.classList.remove(this.classes.tooltipLayerRight)}};O.prototype.reInitSort=function(){var t=this;this.el.sort=this.el.section.find(this.selector.sort);this.el.sort.target.length&&(this.el.sortOpen=this.el.sort.find(this.selector.sortOpen),
this.el.sortClose=this.el.sort.find(this.selector.sortClose),this.el.sortText=this.el.sort.find(this.selector.sortText),this.el.sortContents=this.el.sort.find(this.selector.sortContents),this.el.sortHeadName=this.el.sort.find(this.selector.sortHeadName),this.el.sortItemInput=this.el.sort.find(this.selector.sortItemInput),this.el.sortSelectName=this.el.sort.find(this.selector.sortSelectedName),this.el.mobileSortCloseButton=this.el.sort.find(this.selector.mobileSortCloseButton),this.el.sortApply=this.el.sort.find(this.selector.sortApply),
this.el.sortOpen.off("click",this.handler.handleClickSortOpen).on("click",this.handler.handleClickSortOpen),this.el.sortText.off("click").on("click",function(){return t.el.sortOpen.trigger("click")}),this.el.sortItemInput.off("click",this.handler.handleChangeSortItem).on("click",this.handler.handleChangeSortItem),this.el.mobileSortCloseButton.off("click",this.handler.handleClickSortClose).on("click",this.handler.handleClickSortClose),this.el.sortApply.off("click",this.handler.handleClickSortApply).on("click",
this.handler.handleClickSortApply),this.el.sortItemInput.off("keydown",this.handler.handleKeyDownSortItem).on("keydown",this.handler.handleKeyDownSortItem),this.setSelectedItem(),this.checkActiveSort(),this.reInitTooltip())};O.prototype.handleKeyDownSortItem=function(t){var C=l(t.target).closest(".radio-v3").index(),v=this.el.sortItemInput.target;if(["ArrowRight","ArrowDown"].includes(t.key)){t.preventDefault();var f=(C+1)%v.length;v[f].focus()}["ArrowLeft","ArrowUp"].includes(t.key)&&(t.preventDefault(),
f=(C-1+v.length)%v.length,v[f].focus())};O.prototype.setSelectedItem=function(){this.el.sort.target.length&&(this.prevSortedItem=this.el.sortContents.find(this.selector.sortSelectedItem),this.el.sortSelectName.text(this.prevSortedItem.find(".radio-v3__label-text").target[0].textContent))};O.prototype.handleClickSortClose=function(){this.hideSortContents()};O.prototype.handleClickSortOpen=function(){this.el.sortContents.hasClass(this.classes.sortShowClass)?this.hideSortContents():this.showSortContents()};
O.prototype.handleChangeSortItem=function(){this.checkActiveSort()};O.prototype.showSortContents=function(){var t=this;this.el.sortContents.off("transitionend");this.el.sortContents.addClass(this.classes.sortShowClass);this.el.sortContents.addClass(this.classes.sortOpenClass);this.el.window.off("click",this.handler.handleClickWindow).on("click",this.handler.handleClickWindow);this.el.window.off("focusin",this.handler.handleFocusOutTarget).on("focusin",this.handler.handleFocusOutTarget);this.el.sortOpen.attr("aria-expanded",
!0);"mobile"===this.currentDevice&&(this.el.sortContents.find(this.selector.sortContentsWrap).target.length?this.el.sortContents.setLayerFocus(this.selector.sortItemInput,this.selector.sortClose,!1):this.el.sortContents.setLayerFocus(this.selector.sortClose,this.selector.sortApply,!1),K.setMobileFocusLoop(this.el.sortContents.target[0]),K.hiddenScroll());setTimeout(function(){t.el.sort.find(t.selector.sortItemInput+":checked").target[0].focus()},500)};O.prototype.hideSortContents=function(){var t=
this;this.el.sortContents.hasClass(this.classes.sortShowClass)&&(this.el.sortContents.removeClass(this.classes.sortOpenClass),this.el.sortContents.on("transitionend",function(){return t.el.sortContents.removeClass(t.classes.sortShowClass)}),setTimeout(function(){t.el.section.hasClass("is-active")||t.el.sortContents.removeClass(t.classes.sortShowClass)}),this.el.window.off("click",this.handler.handleClickWindow),this.el.window.off("focusin",this.handler.handleFocusOutTarget),this.el.sortOpen.attr("aria-expanded",
!1),"mobile"===this.currentDevice&&(K.removeMobileFocusLoop(),this.el.sortContents.offLayerFocus(),this.prevSortedItem.find("input").target[0].checked=!0,this.el.sortSelectName.text(this.prevSortedItem.find(".radio-v3__label-text").target[0].textContent),K.visibleScroll()),document.activeElement.closest(this.selector.sortContents)&&this.el.sortOpen.target[0].focus())};O.prototype.checkActiveSort=function(){var t=this.el.sortContents.find(this.selector.sortSelectedItem);if(t.target.length){var C=t.find(".radio-v3__label-text").target[0].textContent;
"desktop"===this.currentDevice&&(this.prevSortedItem=t,this.el.sortSelectName.text(C),this.hideSortContents());this.el.sortHeadName.text(C)}};O.prototype.handleClickSortApply=function(){this.prevSortedItem=this.el.sortContents.find(this.selector.sortSelectedItem);this.hideSortContents()};O.prototype.reInitFilter=function(){this.el.filter=this.el.section.find(this.selector.filter);this.el.filter.target.length&&(this.el.filterScrollArea=this.el.section.find(this.selector.filterScrollArea),this.el.filterInner=
this.el.section.find(this.selector.filterInner),this.el.filterSelectorList=this.el.filter.find(this.selector.filterSelectorList),this.el.filterSelectorItem=this.el.filter.find(this.selector.filterSelectorItem),this.el.filterSelectorItemMenu=this.el.filter.find(this.selector.filterSelectorItemMenu),this.el.filterSelectorItemButton=this.el.filter.find(this.selector.filterSelectorItemButton),this.el.filterOption=this.el.section.find(this.selector.filterOption),this.el.filterOptionList=this.el.section.find(this.selector.filterOptionList),
this.el.filterOptionViewMoreCTA=this.el.section.find(this.selector.filterOptionViewMoreCTA),this.el.filterChipList=this.el.section.find(this.selector.filterChipList),this.el.filterChipViewCTA=this.el.section.find(this.selector.filterChipViewCTA),this.el.mobileFilterOpenCTA=this.el.section.find(this.selector.mobileFilterOpenCTA),this.el.mobileFilterCloseCTA=this.el.section.find(this.selector.mobileFilterCloseCTA),this.el.filterTooltipText=this.el.section.find(this.selector.filterTooltipText),this.el.filterTooltipOpen=
this.el.section.find(this.selector.filterTooltipOpen),this.el.filterTooltipClose=this.el.section.find(this.selector.filterTooltipClose),this.el.filterTextfieldCta=this.el.section.find(this.selector.filterTextfieldCta),this.el.filterTextField=this.el.section.find(this.selector.filterTextField),this.el.filterResult=this.el.section.find(this.selector.filterResult),this.el.filterSelectorItemButton.off("click",this.handler.handleClickFilterSelectorItem).on("click",this.handler.handleClickFilterSelectorItem),
this.el.mobileFilterOpenCTA.off("click",this.handler.handleClickMobileFilterShow).on("click",this.handler.handleClickMobileFilterShow),this.el.mobileFilterCloseCTA.off("click",this.handler.handleClickMobileFilterHide).on("click",this.handler.handleClickMobileFilterHide),this.el.filterOptionViewMoreCTA.off("click",this.handler.handleClickOptionViewMore).on("click",this.handler.handleClickOptionViewMore),this.el.filterChipViewCTA.off("click",this.handler.handleClickFilterChipViewMore).on("click",this.handler.handleClickFilterChipViewMore),
this.el.filterTextfieldCta.off("click",this.handler.handleClickFilterSelectorItem).on("click",this.handler.handleClickFilterSelectorItem),this.el.filter.find(this.selector.filterSelectorShow+" "+this.selector.filterOption).off("transitionend",this.handler.handleTransitionEndFilterOption).on("transitionend",this.handler.handleTransitionEndFilterOption),this.el.filterResult.off("click",this.handler.handleFilterResultClick).on("click",this.handler.handleFilterResultClick),this.setFilterResponsive(),
this.setExpandFilter(),this.setFilterDropdownScroll())};O.prototype.setFilterFirstFocus=function(){var t=K.getFirstFocusableEl(this.el.filterSelectorList.target[0]);t&&t.focus()};O.prototype.setFilterDropdownScroll=function(){this.el.filterOption.target.forEach(function(t){U.reInit(t)})};O.prototype.checkFilterOptionListCroped=function(t){if(t){var C="rtl"===this.directionFlag,v=K.getCurrentDevice();t=l(t.currentTarget).closest(this.selector.filterSelectorItem);var f=t.find(this.selector.filterOption);
"desktop"===v&&t.target.length?f.target.length&&(C?f.offset().left<this.el.filterWrap.offset().left:this.el.filterWrap.offset().left+this.el.filterWrap.offset().width<f.offset().left+f.offset().width)&&t.addClass(this.classes.filterOptionOffScreen):this.el.filterSelectorItem.removeClass(this.classes.filterOptionOffScreen)}else this.el.filterSelectorItem.removeClass(this.classes.filterOptionOffScreen)};O.prototype.setFilterStatus=function(){"mobile"===this.currentDevice&&(this.setFilterChipViewMoreCTA(),
this.handleTopSticky())};O.prototype.handleClickFilterChipViewMore=function(){"desktop"!==this.currentDevice&&(this.el.filterChipList.toggleClass(this.classes.filterChipViewMoreClass),this.el.filterChipList.hasClass(this.classes.filterChipViewMoreClass)?this.el.filterChipViewCTA.find("span").text(this.el.filterChipViewCTA.attr("data-text-less")):this.el.filterChipViewCTA.find("span").text(this.el.filterChipViewCTA.attr("data-text-more")),this.handleTopSticky())};O.prototype.handleTopSticky=function(){var t=
this;requestAnimationFrame(function(){var C=!1,v=0;t.el.filterChipList.target.length&&("desktop"===t.currentDevice||t.el.filterChipViewCTA.hasClass(t.classes.filterChipViewCTAHide)?(t.el.filterChipList.css({"max-height":"none"}),t.setAccessibility(t.getFilterChips(),!0)):(t.el.filterChipList.hasClass(t.classes.filterChipViewMoreClass)&&(C=!0),t.getFilterChips().target.forEach(function(f,q){setTimeout(function(){f.getBoundingClientRect().bottom<t.el.filterChipViewCTA.offset().top?t.setAccessibility(l(f),
!0):t.setAccessibility(l(f),!1)},600);2<q&&!C||(q=l(f),v+=q.offset().height,v+=parseFloat(q.css("margin-top")),v+=parseFloat(q.css("margin-bottom")))}),v+=t.el.filterChipViewCTA.offset().height,t.el.filterChipList.css({"max-height":v+"px"})))})};O.prototype.setAccessibility=function(t,C){void 0===C||C?(t.removeAttr("tabindex"),t.removeAttr("aria-hidden")):(t.attr("tabindex",-1),t.attr("aria-hidden",!0))};O.prototype.getFilterChips=function(){var t=this.el.filterChipList.find(this.selector.filterChipItem),
C=this.el.filterChipList.find(this.selector.filterChipItemWrap);return t.target.length?C.target.length?C:t:t};O.prototype.setFilterChipViewMoreCTA=function(){var t=[];this.getFilterChips().target.forEach(function(C){C=Math.round(C.getBoundingClientRect().top);t.push(C)});3<[].concat($jscomp.arrayFromIterable(new Set(t))).length?this.el.filterChipViewCTA.removeClass(this.classes.filterChipViewCTAHide):this.el.filterChipViewCTA.addClass(this.classes.filterChipViewCTAHide);this.handleTopSticky()};O.prototype.setExpandFilter=
function(){"desktop"===this.currentDevice?(this.el.filterSelectorItemMenu.removeClass(this.classes.filterSelectorOpenClass),this.el.filterSelectorItemMenu.removeClass(this.classes.filterSelectorShowClass)):(this.el.filterSelectorItemMenu.removeClass(this.classes.filterSelectorOpenClassPC),this.el.filterSelectorItemMenu.removeClass(this.classes.filterSelectorShowClassPC),this.el.filterOptionList.removeAttr("style"))};O.prototype.handleClickMobileFilterShow=function(){this.setExpandFilter();this.showMobileFilter()};
O.prototype.handleClickMobileFilterHide=function(){this.hideMobileFilter()};O.prototype.handleClickFilterSelectorItem=function(t){var C=l(t.currentTarget).closest(this.selector.filterSelectorItem),v=K.getCurrentDevice(),f="desktop"===v?this.classes.filterSelectorOpenClassPC:this.classes.filterSelectorOpenClass,q="desktop"===v?this.classes.filterSelectorShowClassPC:this.classes.filterSelectorShowClass;C.hasClass(f)?(this.closeExpandedFilter(C),this.setFilterItemHeight(),this.el.window.off("click",
this.handler.handleClickWindow),this.el.window.off("focusin",this.handler.handleFocusOutTarget)):("desktop"===v&&this.closeExpandedFilter(),C.target.length&&(C.find(this.selector.filterOption).off("transitionend",this.handler.handleTransitionEndFilterOption).on("transitionend",this.handler.handleTransitionEndFilterOption),C.addClass(q),C.find(this.selector.filterSelectorItemButton).attr("aria-expanded",!0),this.checkFilterOptionListCroped(t),requestAnimationFrame(function(){C.addClass(f)})),this.setFilterItemHeight(),
this.el.window.off("click",this.handler.handleClickWindow).on("click",this.handler.handleClickWindow),this.el.window.off("focusin",this.handler.handleFocusOutTarget).on("focusin",this.handler.handleFocusOutTarget))};O.prototype.handleTransitionEndFilterOption=function(t){t=l(t.currentTarget);var C=t.closest(this.selector.filterSelectorItem),v="desktop"===K.getCurrentDevice()?this.classes.filterSelectorOpenClassPC:this.classes.filterSelectorOpenClass;C.hasClass(v)||(C.find(this.selector.filterSelectorItemButton).attr("aria-expanded",
!1),C.removeClass(this.classes.filterSelectorShowClass),C.removeClass(this.classes.filterSelectorShowClassPC),t.off("transitionend"),this.checkFilterOptionListCroped())};O.prototype.closeExpandedFilter=function(t){"mobile"===this.currentDevice?t&&t.removeClass(this.classes.filterSelectorOpenClass):this.el.filterSelectorItem.removeClass(this.classes.filterSelectorOpenClassPC)};O.prototype.setFilterItemHeight=function(){var t=this;requestAnimationFrame(function(){if("mobile"===t.currentDevice)t.el.filterOption.target.forEach(function(k){k=
l(k);if(k.closest("."+t.classes.filterSelectorOpenClass).target.length){var F=t.getFilterOptionListHeight(k);k.css({"max-height":F+"px"})}else k.css({"max-height":0})});else{var C=t.el.filterOption.closest("."+t.classes.filterSelectorOpenClassPC).find(t.selector.filterOption);t.el.filterOption.css({"max-height":"none"});t.el.filterOptionList.removeAttr("style");if(C.target.length){var v=window.getComputedStyle(C.target[0]);v=C.offset().top-(new DOMMatrixReadOnly(v.transform)).m42;var f=C.outerHeight(),
q=C.find(t.selector.filterOptionList);f=document.documentElement.clientHeight<window.scrollY+v+f+12;q&&(f||472<q.target[0].scrollHeight)&&(q.css({"max-height":Math.min(document.documentElement.clientHeight-v-12,472)+"px"}),U.reInit(C.target[0]))}t.el.filterOptionList.find("input:not([disabled])").removeAttr("tabindex");t.el.filterOptionList.find("input:not([disabled])").removeAttr("aria-hidden")}})};O.prototype.getFilterOptionListHeight=function(t){var C=this,v=0;9<t.find(".checkbox-v3, .radio-v3").target.length?
t.closest(this.selector.filterSelectorItem).hasClass(this.classes.filterOptionViewMoreClass)?(v=t.find(this.selector.filterOptionList).offset().height,this.setAccessibility(t.find("input:not([disabled])"),!0),t.find(".checkbox-v3").removeClass("checkbox-v3--hide"),t.find(".radio-v3").removeClass("radio-v3--hide")):(t.find(".checkbox-v3, .radio-v3").target.forEach(function(f,q){if(8>=q)v+=f.getBoundingClientRect().height;else{q=l(f).find("input:not([disabled])");var k=l(f).hasClass("checkbox-v3");
l(f).addClass(k?"checkbox-v3--hide":"radio-v3--hide");C.setAccessibility(q,!1)}}),t=t.find(this.selector.filterOptionViewMoreCTA),t.target.length&&(v+=t.offset().height)):v=t.find(this.selector.filterOptionList).offset().height;return v};O.prototype.handleClickFilterOptionViewMore=function(t){t=l(t.currentTarget);var C=t.closest(this.selector.filterSelectorItem);C.toggleClass(this.classes.filterOptionViewMoreClass);C.hasClass(this.classes.filterOptionViewMoreClass)?t.find("span").text(t.attr("data-text-less")):
t.find("span").text(t.attr("data-text-more"));this.setFilterItemHeight()};O.prototype.showMobileFilter=function(){var t=this;this.el.filter.off("transitionend");this.el.filter.addClass(this.classes.mobileFilterShowClass);this.el.window.off("click",this.handler.handleClickWindow).on("click",this.handler.handleClickWindow);this.el.window.off("focusin",this.handler.handleFocusOutTarget).on("focusin",this.handler.handleFocusOutTarget);this.setFilterChipViewMoreCTA();this.setFilterItemHeight();this.handleTopSticky();
K.setMobileFocusLoop(this.el.filter.target[0]);this.el.filter.find(".pdd44-filter__wrap").target.length?this.el.filter.setLayerFocus(this.selector.filterChipItem+", "+this.selector.filterSelectorItemButton+", .pdd44-filter__selector-item--checkbox input",this.selector.mobileFilterCloseCTA,!1):this.el.filter.setLayerFocus(this.selector.mobileFilterCloseCTA,this.selector.filterMoCTA+" .cta:last-child");K.hiddenScroll();setTimeout(function(){t.el.filter.addClass(t.classes.mobileFilterOpenClass)},10)};
O.prototype.hideMobileFilter=function(){var t=this;this.el.filter.removeClass(this.classes.mobileFilterOpenClass);this.el.filter.off("transitionend").on("transitionend",function(){return t.el.filter.removeClass(t.classes.mobileFilterShowClass)});this.el.window.off("click",this.handler.handleClickWindow);this.el.window.off("focusin",this.handler.handleFocusOutTarget);K.removeMobileFocusLoop();this.el.section.offLayerFocus();K.visibleScroll();requestAnimationFrame(function(){return t.el.filterTop.removeClass(t.classes.topHeaderHide)});
this.el.mobileFilterOpenCTA.target[0].focus()};O.prototype.setFilterResponsive=function(){var t=this.el.section.find(this.selector.filterChipList);this.el.filterSelectorItemButton.attr("aria-expanded",!1);t.target.length&&("desktop"===this.currentDevice?(this.el.filterSelectorList.target[0].insertAdjacentElement("afterend",t.target[0]),this.el.filter.find("."+this.classes.filterSelectorShowClassPC+" "+this.selector.filterSelectorItemButton).attr("aria-expanded",!0)):(this.el.filterSelectorList.target[0].insertAdjacentElement("beforebegin",
t.target[0]),this.el.filter.find("."+this.classes.filterSelectorShowClass+" "+this.selector.filterSelectorItemButton).attr("aria-expanded",!0)))};O.prototype.setFilterClearAll=function(){this.getFilterChips().remove();this.setFilterFirstFocus()};O.prototype.handleFilterResultClick=function(){this.scrollTo(this.el.reviewList.target[0])};O.prototype.scrollTo=function(t){t&&(t=t.offsetTop-this.getNavHeight(),K.scrollTo(t))};O.prototype.getNavHeight=function(){var t=0,C=this.el.document.find(".pdd39-anchor-nav");
C.target.length&&(t=parseInt(getComputedStyle(this.el.document.find(".pdd39-anchor-nav").target[0]).getPropertyValue("--pdd39-fixed-header-height").trim()),t=C.hasClass("pdd39-anchor-nav--fixed")?t:(C.hasClass("pdd39-anchor-nav--fixed")?0:C.height())-t+t);return t};O.prototype.reInitReview=function(){var t=this;this.el.reviewList=this.el.section.find(this.selector.reviewList);this.el.reviewListItem=this.el.reviewList.find(this.selector.reviewListItem);this.el.reviewListDetailText=this.el.reviewList.find(this.selector.reviewListDetailText);
this.el.reviewListViewMoreBtn=this.el.reviewList.find(this.selector.reviewListViewMoreBtn);this.el.reviewListThumbsUpCta=this.el.reviewList.find(this.selector.reviewListThumbsUpCta);J.setLazyLoad();this.el.reviewListItem.target.forEach(function(C){C=l(C).find(t.selector.reviewListDetail).hasClass(t.classes.reviewListDetailShow);t.el.reviewListViewMoreBtn.attr("aria-expanded",C)});this.el.reviewListDetailText.target.forEach(function(C){var v=l(C).closest(t.selector.reviewListDetailInner);l(C).closest(t.selector.reviewListDetail).removeClass("is-overflow");
v.css({"max-height":""});v.target[0].clientHeight+5<C.clientHeight?l(C).closest(t.selector.reviewListDetail).addClass("is-overflow"):v.css({"max-height":"none"})});this.el.reviewListViewMoreBtn.off("click",this.handler.handleClickReviewViewMore).on("click",this.handler.handleClickReviewViewMore);this.el.reviewListThumbsUpCta.off("click",this.handler.handleClickThumbsUp).on("click",this.handler.handleClickThumbsUp);this.reInitTooltip()};O.prototype.handleClickReviewViewMore=function(t){var C=l(t.target).closest(this.selector.reviewListDetail);
t=C.find(this.selector.reviewListDetailInner);var v=C.find(this.selector.reviewListViewMoreBtn);C.toggleClass(this.classes.reviewListDetailShow);C.addClass("is-animating");var f=C.hasClass(this.classes.reviewListDetailShow),q=C.find(this.selector.reviewListDetailText).height();t.css({"max-height":f?q+"px":""});v.find("span").text(v.attr(f?"data-text-less":"data-text-more"));v.attr("aria-expanded",f);setTimeout(function(){C.removeClass("is-animating")},500)};O.prototype.handleClickThumbsUp=function(t){l(t.target).closest('[class*\x3d"-recommended-cta--thumbs"]').toggleClass(this.classes.thumbsUpActive)};
O.prototype.reInitGalleryPopup=function(){var t=this;this.el.galleryPopupThumbsUpCta=this.el.section.find(this.selector.galleryPopupThumbsUpCta);this.el.galleryPopupVideoPlayBtn=this.el.section.find(this.selector.galleryPopupVideoPlayBtn);this.el.galleryPopupVideoCloseBtn=this.el.section.find(this.selector.galleryPopupVideoCloseBtn);this.el.galleryPopupThumbsUpCta.off("click",this.handler.handleClickThumbsUp).on("click",this.handler.handleClickThumbsUp);this.el.galleryPopupVideoPlayBtn.off("click",
this.handler.handleClickGalleryPopupVideoPlay).on("click",this.handler.handleClickGalleryPopupVideoPlay);this.el.galleryPopupVideoCloseBtn.off("click",this.handler.resetGalleryPopupVideo).on("click",this.handler.resetGalleryPopupVideo);var C=this.el.galleryPopup.find(".swiper-container").target[0];r.destroy(C);setTimeout(function(){r.slideInit(C);r.slideInitEnd(C,function(){J.setLazyLoad();t.galleryPopupSwiper=r.getSwiper(C);t.galleryPopupSwiper.on("slideChangeTransitionEnd",function(){t.handleGalleryPopupChangeSlide()})})},
300)};O.prototype.setGalleryScroll=function(){var t=this.el.section.find(this.selector.galleryPopupPcScrollbarEl),C=this.el.section.find(this.selector.galleryPopupWrapper);if("desktop"===this.currentDevice)var v=C;else v=t,t=C;v.target.forEach(function(f){l(f).hasClass("scrollbar")&&l(f).find(":scope \x3e.scrollbar-horizontal__track")&&(U.destroy(f),l(f).removeClass("scrollbar"),l(f).find(":scope \x3e.scrollbar-horizontal__track").remove(),l(f).find(":scope \x3e.scrollbar-vertical__track").remove())});
t.target.forEach(function(f){l(f).hasClass("scrollbar")&&l(f).find(":scope \x3e.scrollbar-horizontal__track")?U.resize(f):(l(f).addClass("scrollbar"),setTimeout(function(){U.reInit(f)},300))})};O.prototype.openGalleryPopup=function(t){this.galleryPopup||(this.galleryPopup=window.sg.components.getClass("popup").create(document.querySelector(this.selector.galleryPopup)));this.galleryPopup.open(t);this.setGalleryScroll();this.reInitGalleryPopup();this.reInitTooltip()};O.prototype.closeGalleryPopup=function(){this.galleryPopup.close()};
O.prototype.handleGalleryPopupChangeSlide=function(){var t=this.galleryPopupSwiper;if(t=t.previousIndex?t.slides[t.previousIndex].querySelector(".video-player"):null)l(t).closest(this.selector.galleryPopupVideoWrapper).removeClass(this.classes.galleryPopupVideoOpen),B.dispose(t.closest(".video"))};O.prototype.handleClickGalleryPopupVideoPlay=function(t){t=l(t.target).closest(this.selector.galleryPopupVideoWrapper);var C=t.find(this.selector.galleryPopupVideoPlayBtn),v=t.find(".video").target[0];B.init(v);
C.attr("aria-selected","true");t.addClass(this.classes.galleryPopupVideoOpen)};O.prototype.resetGalleryPopupVideo=function(t){t=l(t.target).closest(this.selector.galleryPopupVideoWrapper);var C=t.find(this.selector.galleryPopupVideoPlayBtn),v=t.find(".video").target[0];B.dispose(v);C.attr("aria-selected","false");t.removeClass(this.classes.galleryPopupVideoOpen)};O.prototype.openSharePopup=function(t){this.sharePopup||(this.sharePopup=window.sg.components.getClass("popup").create(document.querySelector(this.selector.sharePopup)));
this.el.galleryPopup.hasClass("popup--open")&&this.closeGalleryPopup();this.sharePopup.open(t)};O.prototype.closeSharePopup=function(){this.sharePopup.close()};O.prototype.openSupportedLangsPopup=function(){this.supportedLangsPopup||(this.supportedLangsPopup=window.sg.components.getClass("popup").create(document.querySelector(this.selector.supportedLangsPopup)));this.supportedLangsPopup.open()};O.prototype.closeSupportedLangsPopup=function(){this.supportedLangsPopup.close()};var w=function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)||
new O(t)})};O.instances=new WeakMap;window.sg.components.Pdd44Review={init:w,reInit:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInit():new O(t)})},reInitRating:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInitRating():new O(t)})},reInitGallery:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInitGallery():new O(t)})},reInitGallerySwiper:function(t){l(".pdd44-review").target.forEach(function(C){O.instances.has(C)?
O.instances.get(C).reInitGallerySwiper(t):new O(C)})},reInitSort:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInitSort():new O(t)})},reInitFilter:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInitFilter():new O(t)})},reInitReview:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).reInitReview():new O(t)})},setFilterStatus:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?
O.instances.get(t).setFilterStatus():new O(t)})},setFilterClearAll:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).setFilterClearAll():new O(t)})},setFilterFirstFocus:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).setFilterFirstFocus():new O(t)})},openGalleryPopup:function(t){l(".pdd44-review").target.forEach(function(C){O.instances.has(C)?O.instances.get(C).openGalleryPopup(t):new O(C)})},closeGalleryPopup:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?
O.instances.get(t).closeGalleryPopup():new O(t)})},openSharePopup:function(t){l(".pdd44-review").target.forEach(function(C){O.instances.has(C)?O.instances.get(C).openSharePopup(t):new O(C)})},closeSharePopup:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).closeSharePopup():new O(t)})},openSupportedLangsPopup:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?O.instances.get(t).openSupportedLangsPopup():new O(t)})},closeSupportedLangsPopup:function(){l(".pdd44-review").target.forEach(function(t){O.instances.has(t)?
O.instances.get(t).closeSupportedLangsPopup():new O(t)})}};l.load(w)})();
(function(l,d){function K(z,M){z=z?sa.find(".pdd44-review__gallery-popup-recommended .pdd44-review__gallery-popup-recommended-cta--thumbs"):isNotEmpty(M)?M.find(".pdd44-review__contents .pdd44-review__contents-recommended .pdd44-review__contents-recommended-cta--thumbs"):[];var S=(M=window.localStorage.getItem("bv_thumbsUp"))?JSON.parse(M):[];z.each(function(){var W=d(this).attr("data-js-reviewid");if(S[W]){d(this).addClass("is-active");d(this).addClass("cta--disabled");var ba=d(this).find("span");
if(isNotEmpty(ba)&&2===ba.length){ba=ba.eq(1);var ia=d(ba).text();W=S[W].c;var ta=parseInt(ia.replace(/[^0-9]/g,""),10);W>ta&&(ia=ia.replace(ta,W),999<W?ba.text("(999+)"):ba.text(ia))}else d(this).append("\x3cspan\x3e(1)\x3c/span\x3e")}})}function D(z){var M=location.pathname;-1!==M.indexOf(".html")?M=M.replace(".html",""):"/"===M[M.length-1]&&(M=M.slice(0,-1));checkEppSite()&&(M=M.split(".")[0]);var S=M+".commonasync.inittype-"+z+".modelcode-"+H+"/";0<location.pathname.indexOf(".html")&&(S=M+".commonasync.inittype-"+
z+".modelcode-"+H+".html");return S}function r(z){var M,S,W,ba,ia,ta;return $jscomp.asyncExecutePromiseGeneratorProgram(function(qa){switch(qa.nextAddress){case 1:if(!z)return qa.return("");M=new DOMParser;S=M.parseFromString(z,"text/html");W=S.querySelectorAll("script");ba={};ia=$jscomp.makeIterator(W);ta=ia.next();case 2:if(ta.done){qa.jumpTo(4);break}ba.$jscomp$loop$prop$oldScript$387=ta.value;return qa.yield(new Promise(function(za){return function(na){var a=document.createElement("script");Array.from(za.$jscomp$loop$prop$oldScript$387.attributes).forEach(function(c){a.setAttribute(c.name,
c.value)});za.$jscomp$loop$prop$oldScript$387.src||(a.textContent=za.$jscomp$loop$prop$oldScript$387.textContent);za.$jscomp$loop$prop$oldScript$387.src?(a.onload=function(){return na()},a.onerror=function(){console.error("\uc2a4\ud06c\ub9bd\ud2b8 \ub85c\ub4dc \uc2e4\ud328: "+za.$jscomp$loop$prop$oldScript$387.src);na()}):setTimeout(na,0);document.body.appendChild(a);a.parentNode.removeChild(a)}}(ba)),5);case 5:ba.$jscomp$loop$prop$oldScript$387.parentNode.removeChild(ba.$jscomp$loop$prop$oldScript$387);
ba={$jscomp$loop$prop$oldScript$387:ba.$jscomp$loop$prop$oldScript$387};ta=ia.next();qa.jumpTo(2);break;case 4:return qa.return(S)}})}function B(z,M,S){var W,ba,ia,ta,qa,za,na,a,c,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){if(1==g.nextAddress)return ba=null==(W=T[z])?void 0:W.count,ia=M?M:0,ta={mediaType:z,currentPageNumber:ba,lastIndex:ia,isTabClicked:S},q(),fa.mediaType=z,fa.pagingNumber=ba,fa.limit=50,(qa=document.getElementById("BV-reviewMediaTotalResult"))&&qa.remove(),
za="reviewmedia",na=D(za),a=d.param(fa),c=(new URL(na+"?"+a,window.location.origin)).href,g.yield(ea(c,za),2);(m=g.yieldResult)?t(m,ta):d.ajax({type:"GET",url:na,dataType:"html",data:fa,timeout:8E3,success:function(p){return $jscomp.asyncExecutePromiseGeneratorProgram(function(aa){t(p,ta);return aa.yield(F(c,p,za),0)})},error:function(p,aa){console.error("reviewmedia error",aa)}});g.jumpToEnd()})}function J(z){var M,S,W,ba,ia,ta;return $jscomp.asyncExecutePromiseGeneratorProgram(function(qa){if(1==
qa.nextAddress)return z||Aa.find(".pdd44-review__loading").addClass("is-active"),q(),fa.limit=100,(M=document.getElementById("BV-reviewTotalResult"))&&M.remove(),S="reviewlist",W=D(S),ba=d.param(fa),ia=(new URL(W+"?"+ba,window.location.origin)).href,qa.yield(ea(ia,S),2);(ta=qa.yieldResult)?U(ta,z):d.ajax({type:"GET",url:W,dataType:"html",data:fa,timeout:8E3,success:function(za){return $jscomp.asyncExecutePromiseGeneratorProgram(function(na){U(za,z);return na.yield(F(ia,za,S),0)})},error:function(za,
na){console.error("reviewlist error",na)}});qa.jumpToEnd()})}function U(z,M){r(z).then(function(S){var W,ba,ia,ta;return $jscomp.asyncExecutePromiseGeneratorProgram(function(qa){M||Aa.find(".pdd44-review__list-item").remove();W=S.querySelectorAll(".pdd44-review__list-item");ia=(ba=S.querySelector("#BV-reviewTotalResult"))?ba.value:0;W.forEach(function(za){var na=za.getAttribute("data-js-productid");na=P[na];var a=za.querySelector(".pdd44-review__side-option-item"),c="";!na||null!=a&&""!==a.textContent.trim()||
(Object.entries(na).forEach(function(m){var g=$jscomp.makeIterator(m);m=g.next().value;g=g.next().value;isNotEmpty(c)&&(c+=" | ");c+=m+" : "+g}),na='\n\t\t\t\t\t\x3cdiv class\x3d"pdd44-review__side-option"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"pdd44-review__side-option-item"\x3e\n\t\t\t\t\t\t\t'+c+"\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e",za.querySelector(".pdd44-review__side").insertAdjacentHTML("beforeend",na))});K(!1,d(W));ta=document.getElementById("BV-viewMore");ta.insertAdjacentHTML("beforebegin",
S.body.innerHTML);M||(va.find(".pdd44-top").find(".pdd44-top__result-count").text(Number(ia).toLocaleString()),va.find(".pdd44-filter").find(".pdd44-filter__mo-header-result-count").text(Number(ia).toLocaleString()),ca=Number(ia));k();window.sg.components.Pdd44Review.reInitReview();M||Aa.find(".pdd44-review__loading").removeClass("is-active");qa.jumpToEnd()})})}function O(){var z,M,S,W,ba,ia;return $jscomp.asyncExecutePromiseGeneratorProgram(function(ta){if(1==ta.nextAddress)return q(),fa.limit=1,
z=0,M="reviewlist",S=D(M),W=d.param(fa),ba=(new URL(S+"?"+W,window.location.origin)).href,ta.yield(ea(ba,M+"_count"),2);(ia=ta.yieldResult)?va.find(".pdd44-filter").find(".pdd44-filter__mo-header-result-count").text(Number(ia).toLocaleString()):d.ajax({type:"GET",url:S,dataType:"html",data:fa,timeout:8E3,success:function(qa){var za,na,a;return $jscomp.asyncExecutePromiseGeneratorProgram(function(c){za=new DOMParser;na=za.parseFromString(qa,"text/html");z=(a=na.querySelector("#BV-reviewTotalResult"))?
a.value:0;return c.yield(F(ba,z,M+"_count"),0)})},complete:function(){va.find(".pdd44-filter").find(".pdd44-filter__mo-header-result-count").text(Number(z).toLocaleString())},error:function(qa,za){console.error("reviewlisttotalcount error",za)}});ta.jumpToEnd()})}function w(z,M,S){var W,ba,ia,ta,qa,za;return $jscomp.asyncExecutePromiseGeneratorProgram(function(na){switch(na.nextAddress){case 1:return na.setCatchFinallyBlocks(2),ba=W="","tabMedia"===z||"galleryPopupArrow"===z?(W="bv-review-media-cache-"+
H,ba="/bv_mediaData_"+M+"_"+S):"reviewList"===z&&(W="bv-review-cache-"+H,ba="/bv_listData_"+S),na.yield(caches.open(W),4);case 4:return ia=na.yieldResult,na.yield(ia.match(ba),5);case 5:return ta=na.yieldResult,ta?na.yield(ta.json(),7):(console.log("#bv_review# - There is no cached data."),na.return(null));case 7:return qa=na.yieldResult,na.return(qa);case 6:na.leaveTryBlock(0);break;case 2:za=na.enterCatchBlock(),console.error("#bv_review# - Cache read failure",za),na.jumpToEnd()}})}function t(z,
M){var S=d(".pdd44-review__gallery-panel[id\x3d'"+M.mediaType+"']").find(".pdd44-review__gallery-swiper.swiper-container");r(z).then(function(W){var ba="";if(/\S/.test(W.body.innerHTML)){var ia=(ba=W.querySelector("#BV-reviewMediaTotalResult"))?ba.value:0;W.querySelectorAll("li.pdd44-review__gallery-item button.pdd44-review__gallery-item-inner").forEach(function(ta){ta.setAttribute("data-js-pagingnumber",M.currentPageNumber)});0===M.currentPageNumber?(ba=W.body.innerHTML,S.html(ba),window.sg.components.Pdd44Review.reInitGallerySwiper(),
setTimeout(function(){window.sg.components.Pdd44Review.reInitGallery()},200),f(ia)):(ba=W.querySelector("ul").innerHTML.trim(),d(".pdd44-review__gallery-panel[id\x3d'"+M.mediaType+"']").find("ul.pdd44-review__gallery-list").append(ba),window.sg.components.Pdd44Review.reInitGallerySwiper(M.lastIndex));ka.show()}else S.html(ba),"all"===M.mediaType?ka.hide():M.isTabClicked||d("#BV-galleryTab button.tab__item-title[aria-controls\x3d'all']").trigger("click"),window.sg.components.Pdd44Review.reInitGallery()})}
function C(z,M,S){var W,ba,ia,ta,qa,za,na,a,c,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){switch(g.nextAddress){case 1:W=d(".pdd44-review__gallery-panel").attr("id"),ia=null==(ba=T[W])?void 0:ba.count,ta=sa.find(".pdd44-review__gallery-popup-carousel-inner"),c=a=na=za=qa="","tabMedia"===z?c=ia:"reviewList"===z&&(c=S),m={$jscomp$loop$prop$num$389:0};case 2:if(!(m.$jscomp$loop$prop$num$389<=c)){g.jumpTo(4);break}return g.yield(w(z,W,m.$jscomp$loop$prop$num$389),5);case 5:qa=g.yieldResult;
"tabMedia"===z?za=qa:"reviewList"===z&&(za=qa.filter(function(p){return p.Id===M}));isNotEmpty(za)&&za.forEach(function(p){return function(aa){0<aa.Photos.length&&aa.Photos.forEach(function(L,ma){ma=aa.Id+"_P_"+ma;"tabMedia"===z&&(a=ma===M?"swiper-slide-active":"");na+='\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-item swiper-slide '+a+'" role\x3d"listitem" data-js-pagingnumber\x3d"'+p.$jscomp$loop$prop$num$389+'" data-js-mediatype\x3d"'+W+'" data-js-mediaid\x3d"'+ma+'"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-figure"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+
L.Sizes.thumbnail.Url+'" data-mobile-src\x3d"'+L.Sizes.thumbnail.Url+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\x3cimg class\x3d"image__main responsive-img lazy-load" data-desktop-src\x3d"'+L.Sizes.normal.Url+'" data-mobile-src\x3d"'+L.Sizes.normal.Url+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'});0<aa.Videos.length&&aa.Videos.forEach(function(L,ma){ma=aa.Id+"_V_"+ma;"tabMedia"===z&&(a=ma===M?"swiper-slide-active":"");
na+='\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-item swiper-slide '+a+' role\x3d"listitem" data-js-pagingnumber\x3d"'+p.$jscomp$loop$prop$num$389+'" data-js-mediatype\x3d"'+W+'" data-js-mediaid\x3d"'+ma+'"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-figure"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-video"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-thumbnail"\x3e\x3cdiv class\x3d"image"\x3e\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+
L.VideoThumbnailUrl+'" data-mobile-src\x3d"'+L.VideoThumbnailUrl+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\x3cimg class\x3d"image__main responsive-img lazy-load" data-desktop-src\x3d"'+L.VideoThumbnailUrl+'" data-mobile-src\x3d"'+L.VideoThumbnailUrl+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\x3c/div\x3e\x3c/div\x3e\x3cbutton type\x3d"button" class\x3d"pdd44-review__gallery-popup-carousel-play-btn" aria-label\x3d"play" an-tr\x3d"review list_review gallery popup-'+
R+'-video play icon-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"review detail:review gallery popup:video play"\x3e\x3cspan class\x3d"hidden"\x3ePlay video\x3c/span\x3e\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#show-regular" href\x3d"#show-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-carousel-video-area"\x3e';na="Y"===L.VideoTypeCode?na+('\x3cdiv class\x3d"video" data-image-default\x3d"false" data-video-embed\x3d"false" data-video-type\x3d"'+
L.VideoType+'" data-video-data\x3d\'{"id": "'+L.VideoId+'","title": "Alternative Text","caption": "'+L.Caption+'","autoplay": true}\'\x3e\x3c/div\x3e'):na+('\x3cdiv class\x3d"video lazy-load" data-image-default\x3d"false" data-video-embed\x3d"true" data-video-type\x3d"'+L.VideoType+'" data-video-data\x3d\'{"src": "'+L.VideoUrl+'","title": "Video Title","caption": "'+L.Caption+'","muted": true,"autoplay": true,"loop": false,"controls": true}\' data-comp-name\x3d"video"\x3e\x3c/div\x3e');na+='\x3cbutton class\x3d"pdd44-review__gallery-popup-carousel-video-close" an-tr\x3d"review list_review gallery popup-'+
R+'-video play icon-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"review detail:review gallery popup:video stop"\x3e\x3cspan class\x3d"hidden"\x3eVideo Close\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e'})}}(m));m={$jscomp$loop$prop$num$389:m.$jscomp$loop$prop$num$389};m.$jscomp$loop$prop$num$389++;g.jumpTo(2);break;case 4:ta.html(na),sa.find(".pdd44-review__gallery-popup-carousel .swiper-button-prev").show(),sa.find(".pdd44-review__gallery-popup-carousel .swiper-button-next").show(),
g.jumpToEnd()}})}function v(z,M,S){var W,ba,ia,ta,qa,za,na,a;return $jscomp.asyncExecutePromiseGeneratorProgram(function(c){if(1==c.nextAddress)return W=d(".pdd44-review__gallery-panel").attr("id"),za=qa=ta=ia=ba="",c.yield(w(z,W,S),2);ba=c.yieldResult;"tabMedia"===z||"galleryPopupArrow"===z?qa=M.split("_")[0]:"reviewList"===z&&(qa=M);ia=ba.filter(function(m){return m.Id===qa});ta=ia[0].ClientResponses[0];za+='\x3cspan class\x3d"rating"\x3e\x3cspan class\x3d"rating__inner"\x3e\x3cspan class\x3d"rating__star-list"\x3e';
for(na=1;5>=na;na++)za=na<=ia[0].Rating?za+'\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':za+'\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';za+='\x3c/span\x3e\x3cstrong class\x3d"rating__point"\x3e\x3cspan class\x3d"hidden"\x3eProduct Ratings : \x3c/span\x3e\x3cspan\x3e'+
ia[0].Rating+'\x3c/span\x3e\x3c/strong\x3e\x3cem class\x3d"rating__review-count"\x3e(\x3cspan class\x3d"hidden"\x3eNumber of Ratings :\x3c/span\x3e\x3cspan\x3e9,999\x3c/span\x3e)\x3c/em\x3e\x3c/span\x3e\x3c/span\x3e\x3cp class\x3d"pdd44-review__gallery-popup-user-name"\x3e';isNotEmpty(ia[0].UserNickname)&&(za+=ia[0].UserNickname);za+='\x3c/p\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-info"\x3e';a=ia[0].BadgesOrder;a.forEach(function(m){m=ia[0].Badges[m];isNotEmpty(m)&&("verifiedpurchaser"===
m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--purchaser"\x3e'+m.Label+"\x3c/p\x3e":"incentivizedreview"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--incentivised"\x3e'+m.Label+'\n\t\t\t\t\t\t\t\x3cspan class\x3d"pdd44-review__gallery-popup-info-tooltip-container pdd44-tooltip__container" data-js-action\x3d"pdd44TooltipContainer" data-tooltip-hover\x3d"false" data-tooltip-show\x3d"false" data-tooltip-overflow\x3d"false"\x3e\n                            \x3cbutton class\x3d"pdd44-tooltip__button" data-js-action\x3d"pdd44TooltipShow" aria-expanded\x3d"true"\x3e\n                              \x3cspan class\x3d"hidden"\x3eOpen Tooltip Layer\x3c/span\x3e\n                            \x3c/button\x3e\n                            \x3cspan class\x3d"pdd44-review__gallery-popup-info-tooltip-layer pdd44-tooltip__layer" tabindex\x3d"-1" data-js-action\x3d"pdd44TooltipLayer"\x3e\n                              \x3cspan class\x3d"pdd44-tooltip__text"\x3e'+
Granite.I18n.get("Rewarded for feedback, but gave honest \x26 objective review.",null,"bv")+'\x3c/span\x3e\n                              \x3cbutton class\x3d"pdd44-tooltip__close" data-js-action\x3d"pdd44TooltipHide"\x3e\x3cspan class\x3d"hidden"\x3eClose Tooltip Layer\x3c/span\x3e\x3c/button\x3e\n                            \x3c/span\x3e\n                          \x3c/span\x3e\n\t\t\t\t\t\t\x3c/p\x3e':"instoretester"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--instore"\x3e'+
m.Label+"\x3c/p\x3e":"expeerlytrue"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--expeerly"\x3e'+m.Label+"\x3c/p\x3e":m.Id.toLowerCase().includes("contributor")?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--contributor"\x3e'+m.Label+"\x3c/p\x3e":"featured"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--vorgestellt"\x3e'+m.Label+"\x3c/p\x3e":"bestanswer"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text"\x3e'+
m.Label+"\x3c/p\x3e":"expert"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--expertise"\x3e'+m.Label+"\x3c/p\x3e":"staff"===m.Id.toLowerCase()?za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text"\x3e'+m.Label+"\x3c/p\x3e":"new to belo4d"===m.Id.toLowerCase()&&(za+='\x3cp class\x3d"pdd44-review__gallery-popup-info-text icon--new-to"\x3e'+m.Label+'\n\t\t\t\t\t\t  \x3cspan class\x3d"pdd44-review__gallery-popup-info-tooltip-container pdd44-tooltip__container" data-js-action\x3d"pdd44TooltipContainer" data-tooltip-hover\x3d"false" data-tooltip-show\x3d"false" data-tooltip-overflow\x3d"false"\x3e\n\t\t\t\t\t\t    \x3cbutton class\x3d"pdd44-tooltip__button" data-js-action\x3d"pdd44TooltipShow" aria-expanded\x3d"true"\x3e\n\t\t\t\t\t\t\t  \x3cspan class\x3d"hidden"\x3eOpen Tooltip Layer\x3c/span\x3e\n\t\t\t\t\t\t    \x3c/button\x3e\n\t\t\t\t\t\t    \x3cspan class\x3d"pdd44-review__gallery-popup-info-tooltip-layer pdd44-tooltip__layer" tabindex\x3d"-1" data-js-action\x3d"pdd44TooltipLayer"\x3e\n\t\t\t\t\t\t\t  \x3cspan class\x3d"pdd44-tooltip__text"\x3e'+
Granite.I18n.get("This review was submitted by a customer who has switched to a belo4d smartphone for the first time.",null,"bv")+'\x3c/span\x3e\n\t\t\t\t\t\t\t  \x3cbutton class\x3d"pdd44-tooltip__close" data-js-action\x3d"pdd44TooltipHide"\x3e\x3cspan class\x3d"hidden"\x3eClose Tooltip Layer\x3c/span\x3e\x3c/button\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\x3c/p\x3e'))});za+='\x3c/div\x3e\x3cp class\x3d"pdd44-review__gallery-popup-date"\x3e'+ia[0].SubmissionTime+
"\x3c/p\x3e";isNotEmpty(ia[0].ReviewText)&&(za+='\x3cp class\x3d"pdd44-review__gallery-popup-detail-text"\x3e'+ia[0].ReviewText+"\x3c/p\x3e");"Y"===ia[0].IsTranslateYN&&(za+='\x3cbutton class\x3d"cta cta--underline-v2 cta--black pdd44-review__gallery-popup-detail-translate" data-js-reviewid\x3d"'+ia[0].Id+'" data-js-pagingnumber\x3d"'+S+'" data-text-translate\x3d"'+Granite.I18n.get("Translate",null,"bv")+'" data-text-original\x3d"'+Granite.I18n.get("See original",null,"bv")+'"\x3e'+Granite.I18n.get("Translate",
null,"bv")+"\x3c/button\x3e");za+='\x3cdiv class\x3d"pdd44-review__gallery-popup-recommended"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-recommended-text-wrap"\x3e\x3csvg class\x3d"icon pdd44-review__gallery-popup-recommended-text-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#confirmation-result-bold" href\x3d"#confirmation-result-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"pdd44-review__gallery-popup-recommended-text"\x3e'+Granite.I18n.get("I recommended this product.",
null,"bv")+'\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-recommended-cta-wrap"\x3e';ia[0].IsSyndicated||(za="jp"!=da?za+('\x3cspan class\x3d"pdd44-review__gallery-popup-recommended-cta-text"\x3e'+Granite.I18n.get("Helpful",null,"bv")+"?\x3c/span\x3e"):za+('\x3cspan class\x3d"pdd44-review__gallery-popup-recommended-cta-text"\x3e'+Granite.I18n.get("Helpful",null,"bv")+"\x3c/span\x3e"),za+='\x3cbutton class\x3d"pdd44-review__gallery-popup-recommended-cta pdd44-review__gallery-popup-recommended-cta--thumbs" data-js-reviewid\x3d"'+
ia[0].Id+'" an-tr\x3d"review list_review gallery popup-'+R+'-thumbs up button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"review detail:review gallery popup:helpful:yes"\x3e\x3cspan class\x3d"hidden"\x3ethumb up\x3c/span\x3e',999<ia[0].TotalPositiveFeedbackCount?za+="\x3cspan\x3e(999+)\x3c/span\x3e":0<ia[0].TotalPositiveFeedbackCount&&(za+="\x3cspan\x3e("+ia[0].TotalPositiveFeedbackCount+")\x3c/span\x3e"));za+='\x3c/button\x3e\x3cbutton class\x3d"pdd44-review__gallery-popup-recommended-cta pdd44-review__gallery-popup-recommended-cta--share" data-js-reviewurl\x3d"'+
ia[0].ProductPageUrl+'" an-tr\x3d"review list_review gallery popup-'+R+'-sns transmission button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"review detail:review gallery popup:sns share"\x3e\x3cspan class\x3d"hidden"\x3eshare\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e\x3c/div\x3e';ia[0].IsSyndicated&&ia[0].SyndicationSource&&ia[0].SyndicationSource.ContentLink&&ia[0].SyndicationSource.Name?za+='\x3cdiv class\x3d"pdd44-review__gallery-popup-link-wrap"\x3e\x3cspan class\x3d"pdd44-review__gallery-popup-link-text"\x3e'+
Granite.I18n.get("Originally posted on",null,"bv")+" "+ia[0].SyndicationSource.Name+"\x3c/span\x3e\x3c/div\x3e":ia[0].IsSyndicated||ia[0].ProductId===H||(za+='\x3cdiv class\x3d"pdd44-review__gallery-popup-link-wrap"\x3e\x3cspan class\x3d"pdd44-review__gallery-popup-link-text"\x3e'+Granite.I18n.get("Originally posted on",null,"bv")+' \x3c/span\x3e\x3ca href\x3d"'+ia[0].ProductPageUrl+'" class\x3d"pdd44-review__gallery-popup-product-link" an-tr\x3d"review list_review gallery popup-'+R+'-syndication link-review1" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"review detail:review gallery popup:product click"\x3e'+
ia[0].ProductPageName+"\x3c/a\x3e\x3c/div\x3e");isNotEmpty(ta)&&(za+='\x3cdiv class\x3d"pdd44-review__gallery-popup-response-container"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-response-header"\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-response-header-inner"\x3e\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#message-regular" href\x3d"#message-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\x3cspan class\x3d"pdd44-review__gallery-popup-response-header-text"\x3e'+
Granite.I18n.get("Response from belo4d:",null,"bv")+'\x3c/span\x3e\x3c/div\x3e\x3cspan class\x3d"pdd44-review__gallery-popup-response-header-date"\x3e'+ta.Date+'\x3c/span\x3e\x3c/div\x3e\x3cdiv class\x3d"pdd44-review__gallery-popup-response-body"\x3e\x3cstrong class\x3d"pdd44-review__gallery-popup-response-body-title"\x3e'+ta.Department+'\x3c/strong\x3e\x3cp class\x3d"pdd44-review__gallery-popup-response-body-text"\x3e'+ta.Response+"\x3c/p\x3e\x3c/div\x3e\x3c/div\x3e");sa.find(".pdd44-review__gallery-popup-side .scrollbar__contents").html(za);
K(!0);c.jumpToEnd()})}function f(z){setTimeout(function(){var M=d(".pdd44-review__gallery-panel").find(".pdd44-review__gallery-swiper")[0];window.sg.common.swiperManager.slideChangeTransitionEnd(M,function(S,W){var ba=d(".pdd44-review__gallery-panel").attr("id"),ia,ta=null==(ia=T[ba])?void 0:ia.count;S=S.isEnd;z>50*(ta+1)&&S&&(T[ba].count++,B(ba,W))})},300)}function q(){var z={};d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .checkbox-v3 input[name\x3d'checkbox']:checked, .pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3 input[name\x3d'filter1Radio']:checked").each(function(){var ia=
d(this).attr("id").split("-")[1],ta=d(this).val();z[ia]||(z[ia]=[]);z[ia].push(ta)});var M="",S="",W="",ba="";d.each(z,function(ia,ta){"rating"===ia?M="\x26filter\x3drating:eq:"+ta:"reviewerType"===ia?S="\x26filter\x3d"+ta:"keyword"===ia?W="\x26Search\x3d"+ta:"locale"===ia&&(ba="\x26Filter\x3dcontentlocale:eq:"+ta)});fa.filters=M+S+W+ba;fa.sort=d(".pdd44-review .pdd44-review__filter .pdd44-sort__list input[name\x3d'panel1Radio']:checked").val();fa.pagingNumber=I;fa.search="";d(".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__input").each(function(){var ia=
d(this).val().trim();if(isNotEmpty(ia))return fa.search=ia,!1});fa=Object.fromEntries(Object.entries(fa).filter(function(ia){ia=$jscomp.makeIterator(ia);ia.next();ia=ia.next().value;return""!==ia&&null!==ia&&void 0!==ia}))}function k(){var z=Aa.find(".pdd44-review__list-item"),M=Aa.find(".pdd44-review__list-item.pdd44-review__list-item--hide");z.length===Number(ca)&&0===M.length?d("#BV-viewMore").addClass("pdd44-review__list-more-cta--hide"):d("#BV-viewMore").removeClass("pdd44-review__list-more-cta--hide")}
function F(z,M,S){var W,ba,ia;return $jscomp.asyncExecutePromiseGeneratorProgram(function(ta){switch(ta.nextAddress){case 1:return ta.setCatchFinallyBlocks(2),W="bvNewFetchCache_"+S,ta.yield(caches.open(W),4);case 4:return ba=ta.yieldResult,ia=new Response(M,{status:200,headers:{"Content-Type":"text/html; charset\x3dutf-8","X-Cache-Timestamp":Date.now().toString()}}),ta.yield(ba.put(z,ia),5);case 5:return ta.yield(n(W,50),6);case 6:ta.leaveTryBlock(0);break;case 2:ta.enterCatchBlock(),ta.jumpToEnd()}})}
function ea(z,M){var S,W,ba,ia,ta;return $jscomp.asyncExecutePromiseGeneratorProgram(function(qa){switch(qa.nextAddress){case 1:return qa.setCatchFinallyBlocks(2),S="bvNewFetchCache_"+M,W=z,qa.yield(caches.open(S),4);case 4:return ba=qa.yieldResult,qa.yield(ba.match(W),5);case 5:return(ia=qa.yieldResult)?qa.yield(ia.text(),7):qa.return(!1);case 7:return ta=qa.yieldResult,qa.return(ta);case 6:qa.leaveTryBlock(0);break;case 2:qa.enterCatchBlock(),qa.jumpToEnd()}})}function e(){var z,M,S,W,ba,ia,ta,
qa,za,na,a,c,m,g;return $jscomp.asyncExecutePromiseGeneratorProgram(function(p){switch(p.nextAddress){case 1:return z=Date.now(),p.setCatchFinallyBlocks(2),p.yield(caches.keys(),4);case 4:M=p.yieldResult;S=M.filter(function(aa){return X.some(function(L){return aa.startsWith(L)})});if(0===S.length)return p.return();W=$jscomp.makeIterator(S);ba=W.next();case 5:if(ba.done){p.leaveTryBlock(0);break}ia=ba.value;return p.yield(caches.open(ia),8);case 8:return ta=p.yieldResult,p.yield(ta.keys(),9);case 9:qa=
p.yieldResult,za=$jscomp.makeIterator(qa),na=za.next();case 10:if(na.done)return p.yield(ta.keys(),18);a=na.value;return p.yield(ta.match(a),13);case 13:c=p.yieldResult;if(!c){p.jumpTo(11);break}if(m=c.headers.get("X-Cache-Timestamp")){p.jumpTo(14);break}return p.yield(ta.delete(a),15);case 15:p.jumpTo(11);break;case 14:g=parseInt(m,10);if(!(864E5<z-g)){p.jumpTo(11);break}return p.yield(ta.delete(a),11);case 11:na=za.next();p.jumpTo(10);break;case 18:qa=p.yieldResult;if(0!==qa.length){p.jumpTo(6);
break}return p.yield(caches.delete(ia),6);case 6:ba=W.next();p.jumpTo(5);break;case 2:p.enterCatchBlock(),p.jumpToEnd()}})}function n(z,M){var S,W;return $jscomp.asyncExecutePromiseGeneratorProgram(function(ba){if(1==ba.nextAddress)return ba.yield(caches.open(z),2);if(3!=ba.nextAddress)return S=ba.yieldResult,ba.yield(S.keys(),3);W=ba.yieldResult;return W.length>M?ba.yield(S.delete(W[0]),0):ba.jumpTo(0)})}function Q(z,M,S,W,ba){z=z.split(/\s?_X_\s?/);M.text(z[0]);Y(z[1],ba);z[2]&&S.text(z[2]);z[3]&&
W.text(z[3])}function Y(z,M){z&&(z=z.split(",").map(function(S){return'\x3cspan class\x3d"pdd44-review__contents-chips-item"\x3e'+S.trim()+"\x3c/span\x3e"}).join(""),M.html(z))}var N=window.sg.common.$q,y=window.sg.components.Pdd44Review,R=digitalData.page.pageInfo.pageTrack,V=d(".pdd44-review");V.find(".pdd44-review__rating");var ka=V.find(".pdd44-review__gallery"),va=V.find(".pdd44-review__filter"),Aa=V.find(".pdd44-review__list"),sa=V.find(".pdd44-review__gallery-popup"),ha=V.find(".pdd44-review__share-popup"),
ra=window.matchMedia("(max-width: 768px)").matches?!0:!1,da=d("#siteCode").val(),E=d("#language").val();d("#searchDomain").val();var b=d("#BV-bvApiUrl").val(),x=d("#BV-bvPassKey").val(),P=JSON.parse(d("#BV-buyingOptionData").val()||"{}"),H=d("#resourceModelCode").val(),ca=d("#BV-reviewTotalResult").val(),h=d("#BV-reviewMediaTotalResult").val(),I=0,u="",A=0,T={all:{count:0},image:{count:0},video:{count:0}},fa={mediaType:"all",pagingNumber:"0",sort:d(".pdd44-review .pdd44-review__filter .pdd44-sort__list input[name\x3d'panel1Radio']:checked").val(),
search:"",filters:""};(function(){var z=va.find(".pdd44-top"),M=va.find(".pdd44-filter");if("de"===da){var S=va.find('.pdd44-filter__selector-item .checkbox-v3 [type\x3d"checkbox"][value\x3d"de*"]');if(0<S.length){A++;S.prop("checked",!0);S=S.attr("id");var W=va.find('label[for\x3d"'+S+'"]').find(".checkbox-v3__label-text").text().trim();M.find(".pdd44-filter__selected-view-more-wrap")[0].insertAdjacentHTML("beforebegin",'\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+
S+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+W+':delete"\x3e\n\t\t\t\t\t\t\t\t\t\t'+W+'\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e');u=S;z.find(".pdd44-top__title").find(".pdd44-top__title-count").text("("+A+")");
z.find(".pdd44-top__mo-filter-title").find(".pdd44-top__count").text("("+A+")");va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("("+A+")");M.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").removeClass("hidden")}}"uk"===da&&(S=va.find('.pdd44-filter__selector-item .radio-v3 [type\x3d"radio"][value\x3d"ContextDataValue_IncentivizedReview:neq:true"]'),0<S.length&&(A++,S.prop("checked",!0),S=S.attr("id"),W=va.find('label[for\x3d"'+S+'"]').find(".radio-v3__label-text").text().trim(),
M.find(".pdd44-filter__selected-view-more-wrap")[0].insertAdjacentHTML("beforebegin",'\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+S+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+W+':delete"\x3e\n\t\t\t\t\t\t\t\t\t\t'+W+'\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e'),
u=S,z.find(".pdd44-top__title").find(".pdd44-top__title-count").text("("+A+")"),z.find(".pdd44-top__mo-filter-title").find(".pdd44-top__count").text("("+A+")"),va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("("+A+")"),M.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").removeClass("hidden")));K(!1,Aa.find(".pdd44-review__list-item"))})();var X=["bvNewFetchCache","bv-review-media-cache","bv-review-cache"];d(document).off("click",".pdd44-review__overall-write-cta");
d(document).on("click",".pdd44-review__overall-write-cta",function(z){z.preventDefault();BV.ui("rr","submit_review",{productId:H,campaignId:"belo4d-"+E.toLowerCase()})});d(document).off("click",".pdd44-review .pdd44-review__rating .pdd44-review__detail-inner .pdd44-review__detail-info .pdd44-review__detail-count");d(document).on("click",".pdd44-review .pdd44-review__rating .pdd44-review__detail-inner .pdd44-review__detail-info .pdd44-review__detail-count",function(z){z=va.find(".pdd44-top");var M=
va.find(".pdd44-filter"),S=d(this).attr("data-js-rating");S=va.find('.pdd44-filter__selector-item .checkbox-v3 [type\x3d"checkbox"][value\x3d"'+S+'"]');if(0<S.length&&!S.is(":checked")){S.prop("checked",!0);A++;S=S.attr("id");var W=va.find('label[for\x3d"'+S+'"]').find(".checkbox-v3__label-text").text().trim();M.find(".pdd44-filter__selected-view-more-wrap")[0].insertAdjacentHTML("beforebegin",'\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+
S+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+W+':delete"\x3e\n\t\t\t\t\t\t\t\t\t\t'+W+'\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e');u=S;z.find(".pdd44-top__title").find(".pdd44-top__title-count").text("("+A+")");
z.find(".pdd44-top__mo-filter-title").find(".pdd44-top__count").text("("+A+")");va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("("+A+")");M.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").removeClass("hidden");I=0;z=d(".pdd44-review__gallery-panel").attr("id");B(z,"");J()}});d(document).off("click",".pdd44-review__ai-summary-disclaimer-btn");d(document).on("click",".pdd44-review__ai-summary-disclaimer-btn",function(z){window.sg.components.Pdd44Review.openSupportedLangsPopup()});
d(document).off("click","button.pdd44-review__langs-close");d(document).on("click","button.pdd44-review__langs-close",function(){window.sg.components.Pdd44Review.closeSupportedLangsPopup()});d(document).off("click",".pdd44-review__contents-detail-asset-more-cta");d(document).on("click",".pdd44-review__contents-detail-asset-more-cta",function(z){var M=this,S,W,ba,ia;return $jscomp.asyncExecutePromiseGeneratorProgram(function(ta){switch(ta.nextAddress){case 1:return ta.setCatchFinallyBlocks(2),S=d(M),
W=S.attr("data-js-mediaid"),ba=S.attr("data-js-pagingnumber"),ta.yield(C("reviewList",W,ba),4);case 4:return ta.yield(v("reviewList",W,ba),5);case 5:window.sg.components.Pdd44Review.openGalleryPopup(S);ta.leaveTryBlock(0);break;case 2:ia=ta.enterCatchBlock(),console.error("#bv_review# - reviewList \uc601\uc5ed imageItem \uc601\uc5ed \ud074\ub9ad : ",ia),ta.jumpToEnd()}})});d(document).off("click",".pdd44-review__gallery-popup-carousel button.swiper-button-prev, .pdd44-review__gallery-popup-carousel button.swiper-button-next");
d(document).on("click",".pdd44-review__gallery-popup-carousel button.swiper-button-prev, .pdd44-review__gallery-popup-carousel button.swiper-button-next",function(){var z=this,M,S,W,ba;return $jscomp.asyncExecutePromiseGeneratorProgram(function(ia){if(1==ia.nextAddress)return ia.setCatchFinallyBlocks(2),M=d(z).parent().find(".pdd44-review__gallery-popup-carousel-item.swiper-slide-active"),S=M.attr("data-js-mediaid"),W=M.attr("data-js-pagingnumber"),ia.yield(v("galleryPopupArrow",S,W),4);if(2!=ia.nextAddress)return ia.leaveTryBlock(0);
ba=ia.enterCatchBlock();console.error("#bv_review# - gallery popup\uc601\uc5ed arrow \ubc84\ud2bc \ud074\ub9ad : ",ba);ia.jumpToEnd()})});d(document).off("click","button.pdd44-review__gallery-popup-close");d(document).on("click","button.pdd44-review__gallery-popup-close",function(){window.sg.components.Pdd44Review.closeGalleryPopup()});d(document).off("click","button.pdd44-review__gallery-item-inner");d(document).on("click","button.pdd44-review__gallery-item-inner",function(){var z=this,M,S,W,ba;
return $jscomp.asyncExecutePromiseGeneratorProgram(function(ia){switch(ia.nextAddress){case 1:return ia.setCatchFinallyBlocks(2),M=d(z),S=M.attr("data-js-mediaid"),W=M.attr("data-js-pagingnumber"),ia.yield(C("tabMedia",S,W),4);case 4:return ia.yield(v("tabMedia",S,W),5);case 5:window.sg.components.Pdd44Review.openGalleryPopup(M);ia.leaveTryBlock(0);break;case 2:ba=ia.enterCatchBlock(),console.error("#bv_review# - galleryTab\uc601\uc5ed ImageItem \ud074\ub9ad : ",ba),ia.jumpToEnd()}})});d(document).off("click",
"#BV-galleryTab button.tab__item-title");d(document).on("click","#BV-galleryTab button.tab__item-title",function(){var z=d(this).attr("aria-controls"),M=d(".pdd44-review__gallery-panel[id\x3d'"+z+"']").find(".pdd44-review__gallery-swiper.swiper-container");T={all:{count:0},image:{count:0},video:{count:0}};M.html("");sa.find(".pdd44-review__gallery-popup-carousel-inner").html("");d(".pdd44-review__gallery-panel").attr("id",z);B(z,"",!0)});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .checkbox-v3 input[name\x3d'checkbox'], .pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3 input[name\x3d'filter1Radio']");
d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .checkbox-v3 input[name\x3d'checkbox'], .pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3 input[name\x3d'filter1Radio']",function(z){var M=va.find(".pdd44-top"),S=va.find(".pdd44-filter");z=z.currentTarget;var W=z.id;if(z.classList.contains("radio-v3__input")){var ba=d(".pdd44-filter__selected-list").find('[data-linked-id\x3d"'+W+'"]');0<ba.length?(A--,ba.parent().remove(),document.querySelector('.pdd44-filter [id\x3d"'+
W+'"]').checked=!1,N("input#"+W).attr("checked",!1)):(d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3 input[name\x3d'filter1Radio']:not(:checked)").each(function(){var ia=d(this).attr("id"),ta=d(".pdd44-filter__selected-list").find('[data-linked-id\x3d"'+ia+'"]');0<ta.length&&(A--,ta.parent().remove(),document.querySelector('.pdd44-filter [id\x3d"'+ia+'"]').checked=!1,N("input#"+ia).attr("checked",!1))}),A++,ba=S.find(".pdd44-filter__selected-view-more-wrap"),z='\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+
W+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+z.nextElementSibling.textContent.trim()+':delete"\x3e\n\t\t\t\t\t\t\t\t\t'+z.nextElementSibling.textContent.trim()+'\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\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',ba[0].insertAdjacentHTML("beforebegin",
z))}else z.checked?(A++,ba=S.find(".pdd44-filter__selected-view-more-wrap"),z='\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+W+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+z.nextElementSibling.textContent.trim()+':delete"\x3e\n\t\t\t\t\t\t\t\t\t'+z.nextElementSibling.textContent.trim()+
'\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\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',ba[0].insertAdjacentHTML("beforebegin",z)):(A--,S.find('button[data-linked-id\x3d"'+W+'"]').remove());y.setFilterStatus();1<=A?(M.find(".pdd44-top__title").find(".pdd44-top__title-count").text("("+A+")"),va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("("+
A+")"),S.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").removeClass("hidden")):(M.find(".pdd44-top__title").find(".pdd44-top__title-count").text(""),va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text(""),S.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").addClass("hidden"));ra?O():(I=0,M=d(".pdd44-review__gallery-panel").attr("id"),B(M,""),J())});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-filter__selected-list .pdd44-filter__selected-item-wrap");
d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-filter__selected-list .pdd44-filter__selected-item-wrap",function(z){var M=va.find(".pdd44-top"),S=va.find(".pdd44-filter");z=N(z.target).closest(".pdd44-filter__selected-item-wrap");var W=z.find(".pdd44-filter__selected-item").attr("data-linked-id");z.remove();A--;1<=A?(M.find(".pdd44-top__title").find(".pdd44-top__title-count").text("("+A+")"),va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("("+
A+")"),S.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").removeClass("hidden")):(M.find(".pdd44-top__title").find(".pdd44-top__title-count").text(""),va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text(""),S.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").addClass("hidden"));document.querySelector('.pdd44-filter [id\x3d"'+W+'"]').checked=!1;N("input#"+W).attr("checked",!1);ra?O():(I=0,M=d(".pdd44-review__gallery-panel").attr("id"),
B(M,""),J())});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-filter__clear--pc , .pdd44-review .pdd44-review__filter .pdd44-filter__clear--mo");d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-filter__clear--pc , .pdd44-review .pdd44-review__filter .pdd44-filter__clear--mo",function(z){z=va.find(".pdd44-top");var M=va.find(".pdd44-filter");N(".pdd44-review .pdd44-review__filter .pdd44-filter__option-list .checkbox-v3 input, .pdd44-review .pdd44-review__filter .pdd44-filter__option-list .radio-v3 input").target.forEach(function(S){S.checked&&
(A--,S.checked=!1)});A=0;z.find(".pdd44-top__title").find(".pdd44-top__title-count").text("");va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("");M.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").addClass("hidden");y.setFilterClearAll();ra?O():(I=0,z=d(".pdd44-review__gallery-panel").attr("id"),B(z,""),J())});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-top .pdd44-top__mo-filter-opener");d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-top .pdd44-top__mo-filter-opener",
function(z){va.find(".pdd44-filter").find(".pdd44-filter__mo-header-result-count").text(Number(ca).toLocaleString());va.find(".pdd44-top");var M=va.find(".pdd44-filter");A=0;y.setFilterClearAll();va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("");d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .checkbox-v3 input[name\x3d'checkbox']").prop("checked",!1);d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3 input[name\x3d'filter1Radio']").prop("checked",
!1);isNotEmpty(u)&&(u.split(",").forEach(function(S){A++;if("radio"===S.split("-")[0]){d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3").find("#"+S.trim()).prop("checked",!0);var W=va.find('label[for\x3d"'+S+'"]').find(".radio-v3__label-text").text().trim();M.find(".pdd44-filter__selected-view-more-wrap")[0].insertAdjacentHTML("beforebegin",'\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+
S+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+W+':delete"\x3e\n\t\t\t\t\t\t\t\t\t\t'+W+'\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e')}else d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .checkbox-v3").find("#"+
S.trim()).prop("checked",!0),W=va.find('label[for\x3d"'+S+'"]').find(".checkbox-v3__label-text").text().trim(),M.find(".pdd44-filter__selected-view-more-wrap")[0].insertAdjacentHTML("beforebegin",'\x3cdiv class\x3d"pdd44-filter__selected-item-wrap" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\t\t\x3cbutton class\x3d"pdd44-filter__selected-item" data-linked-id\x3d"'+S+'" an-tr\x3d"filter/ sort bar-'+R+'-selected option chip remove button-review" an-ca\x3d"review" an-ac\x3d"customer review" an-la\x3d"select option chip:'+
W+':delete"\x3e\n\t\t\t\t\t\t\t\t\t\t'+W+'\n\t\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\x3cuse xlink:href\x3d"#cancel-close-regular" href\x3d"#cancel-close-regular"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e')}),M.find(".pdd44-filter__mo-cta").find(".pdd44-filter__clear--mo").removeClass("hidden"),va.find(".pdd44-filter__mo-header-title").find(".pdd44-filter__mo-header-title-count").text("("+A+")"))});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-filter__mo-cta .cta--contained");
d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-filter__mo-cta .cta--contained",function(z){z=va.find(".pdd44-top");u="";ra&&(1<=A?z.find(".pdd44-top__mo-filter-title").find(".pdd44-top__count").text("("+A+")"):z.find(".pdd44-top__mo-filter-title").find(".pdd44-top__count").text(""),d(".pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .checkbox-v3 input[name\x3d'checkbox']:checked, .pdd44-review .pdd44-review__filter .pdd44-filter__selector-item .radio-v3 input[name\x3d'filter1Radio']:checked").each(function(){isNotEmpty(u)&&
(u+=",");u+=d(this).attr("id")}),I=0,z=d(".pdd44-review__gallery-panel").attr("id"),B(z,""),J())});d(document).off("change",".pdd44-review .pdd44-review__filter .pdd44-sort__list .radio-v3 input[name\x3d'panel1Radio']");d(document).on("change",".pdd44-review .pdd44-review__filter .pdd44-sort__list .radio-v3 input[name\x3d'panel1Radio']",function(){var z=va.find(".pdd44-sort");d("input[name\x3d'panel1Radio']").removeAttr("checked");d("input[name\x3d'panel1Radio']:checked").attr("checked",!0);var M=
d("input[name\x3d'panel1Radio']:checked").val();"relevancy:a1"===M?(z.find(".pdd44-sort__tooltip-container").addClass("pdd44-sort__tooltip-container--show"),z.find(".pdd44-sort__tooltip-container").find(".pdd44-tooltip__text").text(Granite.I18n.get("Relevancy sort puts the best reviews at the top. We look at things like helpfulness votes, latest review, pictures and other traits that readers look for in their reviews.",null,"bv"))):"AI recommendation"===M?(z.find(".pdd44-sort__tooltip-container").addClass("pdd44-sort__tooltip-container--show"),
z.find(".pdd44-sort__tooltip-container").find(".pdd44-tooltip__text").text(Granite.I18n.get("AI recommendation",null,"bv"))):z.find(".pdd44-sort__tooltip-container").removeClass("pdd44-sort__tooltip-container--show");ra||(I=0,z=d(".pdd44-review__gallery-panel").attr("id"),B(z,""),J())});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-sort .pdd44-sort__contents-wrap .cta--contained");d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-sort .pdd44-sort__contents-wrap .cta--contained",
function(z){ra&&(I=0,z=d(".pdd44-review__gallery-panel").attr("id"),B(z,""),J())});d(document).off("input",".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__input");d(document).on("input",".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__input",function(z){var M=va.find(".pdd44-sort"),S=d(this).siblings("button");z=z.target.value;isNotEmpty(z)?(S.attr("an-la","search:"+z),M.addClass("pdd44-sort--disabled"),M.find(".pdd44-tooltip__button").attr("disabled",
!0),M.find(".pdd44-sort__opener").attr("disabled",!0)):(S.attr("an-la","search:"),M.removeClass("pdd44-sort--disabled"),M.find(".pdd44-tooltip__button").attr("disabled",!1),M.find(".pdd44-sort__opener").attr("disabled",!1))});d(document).off("click",".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__icon-btn");d(document).on("click",".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__icon-btn",function(z){z.preventDefault();clearTimeout(G);z=d(".pdd44-review__gallery-panel").attr("id");
I=0;B(z,"");J()});var G;d(document).off("keydown",".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__input");d(document).on("keydown",".pdd44-review .pdd44-review__filter .pdd44-search__inner .pdd44-search__input",function(z){clearTimeout(G);var M=d(this).siblings("button"),S=d(".pdd44-review__gallery-panel").attr("id");"Enter"===z.key?M.click():G=setTimeout(function(){I=0;B(S,"");J()},1500)});d(document).off("click",".pdd44-review .pdd44-review__list .pdd44-review__contents .pdd44-review__contents-detail-text-wrap .pdd44-review__contents-detail-translate, .pdd44-review .pdd44-review__gallery-popup .pdd44-review__gallery-popup-inner .pdd44-review__gallery-popup-detail-translate");
d(document).on("click",".pdd44-review .pdd44-review__list .pdd44-review__contents .pdd44-review__contents-detail-text-wrap .pdd44-review__contents-detail-translate, .pdd44-review .pdd44-review__gallery-popup .pdd44-review__gallery-popup-inner .pdd44-review__gallery-popup-detail-translate",function(z){var M=this,S,W,ba,ia,ta,qa,za,na,a,c,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(g){S=d(M);W=S.siblings(".pdd44-review__contents-detail-text-inner").length?S.siblings(".pdd44-review__contents-detail-text-inner").find(".pdd44-review__contents-detail-text"):
S.siblings(".pdd44-review__gallery-popup-detail-text");ba=S.closest(".pdd44-review__contents").find(".pdd44-review__contents-chips");ia=ba.length?ba.find(".pdd44-review__contents-chips-item").map(function(p,aa){return d(aa).text()}).get().join(","):"";qa=(ta=0<S.closest(".pdd44-review__contents").find(".pdd44-review__contents-response-body").length)?S.closest(".pdd44-review__contents").find(".pdd44-review__contents-response-body .pdd44-review__contents-response-body-title"):S.closest(".pdd44-review__gallery-popup-side").find(".pdd44-review__gallery-popup-response-container .pdd44-review__gallery-popup-response-body-title");
za=ta?S.closest(".pdd44-review__contents").find(".pdd44-review__contents-response-body .pdd44-review__contents-response-body-text"):S.closest(".pdd44-review__gallery-popup-side").find(".pdd44-review__gallery-popup-response-container .pdd44-review__gallery-popup-response-body-text");na=W.text()+" _X_ "+ia+" _X_ "+qa.text()+" _X_ "+za.text();if(d(M).hasClass("is-active")){if(a=S.attr("data-originaled-text"))Q(a,W,qa,za,ba),S.removeClass("is-active"),S.text(S.attr("data-text-translate"))}else isNotEmpty(E)&&
E.split("_"),S.attr("data-originaled-text",na),c="https://searchapi.quick3d.org/v6/translate?siteCode\x3d"+encodeURIComponent(da)+"\x26sourceText\x3d"+encodeURIComponent(na),(m=S.attr("data-translated-text"))?(S.addClass("is-active"),S.text(S.attr("data-text-original")),Q(m,W,qa,za,ba)):d.ajax({type:"GET",url:c,contentType:"application/x-www-form-urlencoded",timeout:8E3,success:function(p){200===p.response.statusCode&&(S.addClass("is-active"),Q(p.response.resultData.translatedText,W,qa,za,ba),S.text(S.attr("data-text-original")),
S.attr("data-translated-text",p.response.resultData.translatedText))},error:function(p,aa){console.error("translate error",aa)}});g.jumpToEnd()})});d(document).off("click",".pdd44-review .pdd44-review__list .pdd44-review__contents .pdd44-review__contents-recommended .pdd44-review__contents-recommended-cta--thumbs, .pdd44-review .pdd44-review__gallery-popup .pdd44-review__gallery-popup-recommended .pdd44-review__gallery-popup-recommended-cta--thumbs");d(document).on("click",".pdd44-review .pdd44-review__list .pdd44-review__contents .pdd44-review__contents-recommended .pdd44-review__contents-recommended-cta--thumbs, .pdd44-review .pdd44-review__gallery-popup .pdd44-review__gallery-popup-recommended .pdd44-review__gallery-popup-recommended-cta--thumbs",
function(z){z=d(this).find("span");var M=d(this).attr("data-js-reviewid"),S=window.localStorage.getItem("bv_thumbsUp"),W=S?JSON.parse(S):{},ba=0;if(!W[M]){d(this).addClass("is-active");d(this).addClass("cta--disabled");if(isNotEmpty(z)&&2===z.length)if(S=z.eq(1),z=d(S).text(),ba=parseInt(z.replace(/[^0-9]/g,""),10),z=z.replace(ba,ba+1),999<ba+1)S.text("(999+)"),d(this).hasClass("pdd44-review__gallery-popup-recommended-cta--thumbs")&&(z=Aa.find(".pdd44-review__contents-recommended-cta--thumbs[data-js-reviewid\x3d"+
M+"]"),S=z.find("span").eq(1),z.addClass("is-active"),z.addClass("cta--disabled"),S.text("(999+)"));else{if(S.text(z),d(this).hasClass("pdd44-review__gallery-popup-recommended-cta--thumbs")){S=Aa.find(".pdd44-review__contents-recommended-cta--thumbs[data-js-reviewid\x3d"+M+"]");var ia=S.find("span").eq(1);S.addClass("is-active");S.addClass("cta--disabled");ia.text(z)}}else d(this).append("\x3cspan\x3e(1)\x3c/span\x3e"),d(this).hasClass("pdd44-review__gallery-popup-recommended-cta--thumbs")&&(z=Aa.find(".pdd44-review__contents-recommended-cta--thumbs[data-js-reviewid\x3d"+
M+"]"),z.addClass("is-active"),z.addClass("cta--disabled"),z.append("\x3cspan\x3e(1)\x3c/span\x3e"));d.ajax({type:"POST",url:b+"/submitfeedback.json",contentType:"application/x-www-form-urlencoded",data:{ApiVersion:"5.4",PassKey:x,ContentType:"review",FeedbackType:"helpfulness",Vote:"positive",ContentId:M},timeout:8E3,success:function(ta){isNotEmpty(ta.Feedback)&&(W[String(M)]={c:ba+1},window.localStorage.setItem("bv_thumbsUp",JSON.stringify(W)))},error:function(ta,qa){console.error("submitfeedback error",
qa)}})}});d(document).off("click",".pdd44-review .pdd44-review__list .pdd44-review__contents-recommended .pdd44-review__contents-recommended-cta--share, button.pdd44-review__gallery-popup-recommended-cta--share");d(document).on("click",".pdd44-review .pdd44-review__list .pdd44-review__contents-recommended .pdd44-review__contents-recommended-cta--share, button.pdd44-review__gallery-popup-recommended-cta--share",function(z){z=d(this).attr("data-js-reviewurl");ha.attr("data-review-url",z);window.sg.components.Pdd44Review.openSharePopup(d(this))});
d(document).off("click",".pdd44-review .pdd44-review__share-popup .pdd44-review__share-popup-content .pdd44-review__share-popup-item");d(document).on("click",".pdd44-review .pdd44-review__share-popup .pdd44-review__share-popup-content .pdd44-review__share-popup-item",function(z){z=ha.attr("data-review-url");var M=Granite.I18n.get("Reviews {0}",V.find(".pdd44-review__header").find(".pdd44-review__header-text").text(),"bv");d(this).hasClass("btn-facebook")?(z="https://www.facebook.com/sharer/sharer.php?u\x3d"+
encodeURIComponent(z),window.open(z,"Facebook-Share")):d(this).hasClass("btn-twitter")?(z="https://twitter.com/intent/tweet?text\x3d"+encodeURIComponent(M)+"\x26url\x3d"+encodeURIComponent(z),window.open(z,"X-Share")):d(this).hasClass("btn-linked-in")?(z="https://www.linkedin.com/sharing/share-offsite/?url\x3d"+encodeURIComponent(z),window.open(z,"LinkedIn-Share")):d(this).hasClass("btn-whatsapp")?(z="https://api.whatsapp.com/send?text\x3d"+encodeURIComponent(M+"\n\n"+z),window.open(z,"WhatsApp-Share")):
d(this).hasClass("btn-snapchat")?(z="https://www.snapchat.com/share?link\x3d"+encodeURIComponent(z),window.open(z,"SnapChat-Share")):d(this).hasClass("btn-line")?(z="https://line.me/R/msg/text/"+encodeURIComponent(M+"\n\n"+z),window.open(z,"Line-Share")):d(this).hasClass("btn-copy-link")&&navigator.clipboard.writeText(z).then(function(){window.sg.common.snackBar.show(document.querySelector(".pdd44-review .pdd44-review__share-popup .snack-bar"))})});d(document).off("click","#BV-viewMore");d(document).on("click",
"#BV-viewMore",function(z){var M=Aa.find(".pdd44-review__list-item");z=Aa.find(".pdd44-review__list-item.pdd44-review__list-item--hide");var S=Math.min(z.length,30);M.length!=Number(ca)&&60>z.length&&(I++,J(!0));for(M=0;M<S;M++)z[M].classList.remove("pdd44-review__list-item--hide");k();window.sg.components.Pdd44Review.reInitReview()});window.addEventListener("load",function(){f(h)});window.bvCallback=function(z){z.configure("global",{events:{submissionClose:function(M){document.body.style.overflow=
""}}})};y.updateRating=function(){d("#averageoverallrating").val()&&(d("#bv_ratingpoint").text(d("#averageoverallrating").val()),d("#bv_reviewcount").text(d("#totalreviewcount").val()));d("#bv_rating").css("display","")};y.updateRating();window.addEventListener("DOMContentLoaded",function(){e()})})(window,$);