PageSourceSearch

https://pueblopotterypots.com/files/js/compactComps.min.e9338bc9fb7a92c8450bbafc4e49902f_76e0f74b.js

js pueblopotterypots.com collected 2026-10-08 05:52:26 UTC 286,040 bytes, 573 lines download raw bytes

1/*
2 iFrame Resizer (jquery.iframeSizer.min.js )
3  Desc: Force cross domain iframes to size to content.
4  Requires: iframeSizer.contentWindow.min.js to be loaded into the target frame.
5  Copyright: (c) 2013 David J. Bradshaw - [email protected]
6  License: MIT and GPL
7*/
8var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(e){return e.raw=e};$jscomp.createTemplateTagFirstArgWithRaw=function(e,b){e.raw=b;return e};$jscomp.arrayIteratorImpl=function(e){var b=0;return function(){return b<e.length?{done:!1,value:e[b++]}:{done:!0}}};$jscomp.arrayIterator=function(e){return{next:$jscomp.arrayIteratorImpl(e)}};$jscomp.makeIterator=function(e){var b="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return b?b.call(e):$jscomp.arrayIterator(e)};
9$jscomp.arrayFromIterator=function(e){for(var b,x=[];!(b=e.next()).done;)x.push(b.value);return x};$jscomp.arrayFromIterable=function(e){return e instanceof Array?e:$jscomp.arrayFromIterator($jscomp.makeIterator(e))};
10(function(){var e=window.sg.common.$q,b=window.sg.common.constants.BREAKPOINTS,x=window.sg.common.utils,u=window.sg.common.lazyLoad,t=window.sg.common.constants.KEY_CODE,n=null,k=function(a){var g=this;this.el={window:e(window),component:e(a),container:null,tabItem:null,tabPanelOnline:null,tabPanelOffline:null,showMore:null,onlineListWrap:null,onlineListItem:null,distanceBtn:null,resultList:null,storeDetail:null,storeHeader:null,backStoreList:null,storeListArea:null,storeListInner:null,layerCloseBtn:null,
11layerDim:null,isMoving:null,activeList:null,moveStartY:null,curPosition:null,closeFocus:null,nearbyPop:null,nearbyPopClose:null};this.handler={resize:this.resize.bind(this),slideMoveStart:this.slideMoveStart.bind(this),slideMoving:this.slideMoving.bind(this),slideMoveEnd:this.slideMoveEnd.bind(this),showPopup:this.showPopup.bind(this),closePopup:this.closePopup.bind(this),focusInnerPopup:function(c){c.keyCode===t.TAB&&(g.matches(document.activeElement,".layer-popup__inner")&&c.shiftKey?e(document.activeElement).find(".layer-popup__close").focus():
12g.matches(document.activeElement,".layer-popup__close")&&!1===c.shiftKey&&e(document.activeElement).closest(".layer-popup__inner").focus())},focusShopDetail:function(c){c.keyCode===t.TAB&&requestAnimationFrame(function(){if(0===e(document.activeElement).closest(".where-to-buy__detail").target.length){var h=g.el.container.find(".where-to-buy__detail");c.shiftKey?(h=h.find("a, button"),h.eq(h.target.length-1).focus()):h.focus()}})}};k.instances.set(a,this);this.setElement();this.init()};k.prototype.init=
13function(){this.bindEvents();this.resize()};k.prototype.reInit=function(){this.setElement();this.bindEvents();this.resize()};k.prototype.setElement=function(){this.el.container=this.el.component.find(".where-to-buy__container.layer-popup");this.el.tabItem=this.el.component.find(".where-to-buy__tab-item button");this.el.tabPanelOnline=this.el.component.find(".where-to-buy__online");this.el.tabPanelOffline=this.el.component.find(".where-to-buy__locator");this.el.tabPanels=this.el.component.find('.where-to-buy__tabpanels div[role\x3d"tabpanel"]');
14this.el.showMore=this.el.component.find(".where-to-buy__store-more-cta");this.el.onlineListWrap=this.el.component.find(".where-to-buy__store-list");this.el.onlineListItem=this.el.component.find(".where-to-buy__store-item");this.el.distanceBtn=this.el.component.find(".where-to-buy__distance-button");this.el.resultList=this.el.component.find(".where-to-buy__result-content:not(.where-to-buy__result-content--disabled)");this.el.storeDetail=this.el.component.find(".where-to-buy__detail");this.el.storeHeader=
15this.el.component.find(".where-to-buy__result-top");this.el.backStoreList=this.el.component.find(".where-to-buy__detail-close");this.el.storeListArea=this.el.component.find(".where-to-buy__result");this.el.storeListInner=this.el.component.find(".where-to-buy__result-list");this.el.layerCloseBtn=this.el.component.find(".where-to-buy__content \x3e .layer-popup__close");this.el.layerDim=this.el.component.find(".layer-popup-dim");this.el.nearbyPop=this.el.component.find(".where-to-buy__layer--nearby");
16this.el.nearbyPopClose=this.el.component.find(".where-to-buy__layer--nearby .layer-popup__close, .where-to-buy__layer--nearby .cta--cancel");
16this.mobileFlag=this.desktopFlag=this.el.isMoving=!1;this.closeFocus=this.closeFocus||null};k.prototype.activeTab=function(a){this.el.tabItem.removeClass("is-selected");this.el.tabItem.eq(a).addClass("is-selected");this.el.tabPanels.removeClass("is-active");this.el.tabPanels.eq(a).addClass("is-active")};k.prototype.showMoreItem=function(){var a=[],g=6;this.el.onlineListItem.target.forEach(function(h){h=
17e(h);"none"===h.css("display")&&a.push(h)});a.length<g&&(g=a.length);for(var c=0;c<g;c++)a[c].addClass("display-item");this.el.onlineListItem.eq(this.el.onlineListItem.target.length-1).hasClass("display-item")&&this.el.showMore.hide();g=this.el.component.find(".where-to-buy__store").target[0].scrollHeight-this.el.component.find(".where-to-buy__online-contents").height();this.el.component.find(".where-to-buy__online-contents").moveScroll(g,200)};k.prototype.activeDistance=function(a){this.el.distanceBtn.removeClass("is-selected");
18a.addClass("is-selected");this.el.distanceBtn.find(".hidden").remove();a.append('\x3cspan class\x3d"hidden"\x3eselected\x3c/span\x3e')};k.prototype.activeStoreList=function(a){var g=this;this.el.storeDetail.show();this.el.storeDetail.attr("tabindex",0);this.el.storeDetail.focus();setTimeout(function(){g.resetClass(g.el.storeListArea);g.el.storeListArea.addClass("where-to-buy__result--middle")},200);this.el.activeList=a};k.prototype.backStoreList=function(){this.el.storeDetail.removeAttr("tabindex");
19this.el.storeDetail.hide();this.el.activeList.focus()};k.prototype.slideMoveStart=function(a){this.el.moveStartY=a.clientY?a.clientY:a.changedTouches[0].pageY;this.el.curPosition=parseInt(this.el.storeListArea.css("top").replace("px",""))||this.el.storeListArea.target[0].getBoundingClientRect().top-this.el.tabPanelOffline.target[0].getBoundingClientRect().top;this.el.isMoving=!0;window.addEventListener("mousemove",this.handler.slideMoving,{passive:!1});this.el.window.on("mouseup",this.handler.slideMoveEnd);
20window.addEventListener("touchmove",this.handler.slideMoving,{passive:!1});this.el.window.on("touchend",this.handler.slideMoveEnd)};k.prototype.slideMoving=function(a){if(this.el.isMoving){var g=(a.clientY?a.clientY:a.changedTouches[0].pageY)-this.el.moveStartY;this.el.curPosition+=g;this.resetClass(this.el.storeListArea);this.el.storeListInner.show();this.el.storeListArea.css({top:this.el.curPosition+"px"});this.el.storeListArea.addClass("where-to-buy__result--active");this.el.moveStartY+=g}a.preventDefault()};
21k.prototype.slideMoveEnd=function(){var a=this,g=this.el.component.find(".where-to-buy__locator").height(),c=g/3;g-=c;this.el.isMoving=null;this.el.moveStartY=0;this.el.curPosition=parseInt(this.el.storeListArea.css("top").replace("px",""))||null;null!==this.el.curPosition&&(this.el.storeListArea.css({top:""}),this.el.storeListArea.removeClass("where-to-buy__result--active"),this.el.curPosition<c?c="where-to-buy__result--top":this.el.curPosition>g?(c="where-to-buy__result--bottom",setTimeout(function(){a.el.storeListInner.hide()},
22200)):c="where-to-buy__result--middle",this.el.storeListArea.addClass(c),window.removeEventListener("mousemove",this.handler.slideMoving),this.el.window.off("mouseup",this.handler.slideMoveEnd),window.removeEventListener("touchmove",this.handler.slideMoving),this.el.window.off("touchend",this.handler.slideMoveEnd))};k.prototype.resetClass=function(a){["where-to-buy__result--top","where-to-buy__result--middle","where-to-buy__result--bottom"].forEach(function(g){a.removeClass(g)})};k.prototype.closeLayer=
23function(){this.el.layerDim.hide();this.el.container.hide()};k.prototype.showPopup=function(a){this.el.container.show();this.el.layerDim.show();x.hiddenScroll();this.el.component.setLayerFocus(".where-to-buy__container.layer-popup",".where-to-buy__content \x3e .layer-popup__close");null===this.moveFocusInnerPopup()&&window.sg.common.utils.setMobileFocusLoop(this.el.component.target[0]);this.closeFocus=a};k.prototype.moveFocusInnerPopup=function(){var a=null;this.el.container.find(".where-to-buy__locator.is-active").find(".where-to-buy__layer--gbs, .where-to-buy__layer--nearby").target.forEach(function(g){"block"===
24g.style.display&&(a=e(g).find(".layer-popup__inner"),a.focus())});return null!==a&&0<a.target.length?(window.sg.common.utils.removeMobileFocusLoop(),window.sg.common.utils.setMobileFocusLoop(a.target[0]),a.target[0]):null};k.prototype.closePopup=function(a){a=void 0===a?null:a;a=null===a?this.closeFocus:a;x.visibleScroll();this.el.component.offLayerFocus();window.sg.common.utils.removeMobileFocusLoop();this.closeLayer();this.originFocus(a)};k.prototype.originFocus=function(a){a=void 0===a?null:a;
25null!==a&&a.focus()};k.prototype.resize=function(){var a=this;b.MOBILE>x.getViewPort().width?(x.getViewPort().width>x.getViewPort().height?this.el.component.addClass("mode--landscape"):this.el.component.removeClass("mode--landscape"),!1===this.mobileFlag&&(this.mobileFlag=!0,this.desktopFlag=!1,this.el.storeHeader.target.forEach(function(g){g=e(g);g.on("mousedown",a.handler.slideMoveStart);g.on("touchstart",a.handler.slideMoveStart)}),this.resetClass(this.el.storeListArea))):(this.el.component.removeClass("mode--landscape"),
26!1===this.desktopFlag&&(this.desktopFlag=!0,this.mobileFlag=!1,this.el.storeHeader.target.forEach(function(g){g=e(g);g.off("mousedown",a.handler.slideMoveStart);g.off("touchstart",a.handler.slideMoveStart)}),this.el.storeListInner.show(),this.resetClass(this.el.storeListArea)))};k.prototype.matches=function(a,g){return a.matches?a.matches(g):a.msMatchesSelector(g)};k.prototype.bindEvents=function(){var a=this;e(window).off("resize",this.handler.resize).on("resize",this.handler.resize);this.el.tabItem.target.forEach(function(g,
27c){e(g).off("click").on("click",function(){a.activeTab(c);a.moveFocusInnerPopup()})});this.el.showMore.target.forEach(function(g){e(g).off("click").on("click",function(){a.showMoreItem()})});this.el.distanceBtn.target.forEach(function(g){var c=e(g);c.off("click").on("click",function(){a.activeDistance(c)})});this.el.resultList.target.forEach(function(g){var c=e(g);c.off("click").on("click",function(){c.hasClass("new-window")||a.activeStoreList(c)})});this.el.backStoreList.target.forEach(function(g){e(g).off("click").on("click",
28function(){a.backStoreList()})});this.el.nearbyPopClose.off("click").on("click",function(){a.el.nearbyPop.hide();window.sg.common.utils.removeMobileFocusLoop();window.sg.common.utils.setMobileFocusLoop(a.el.component.target[0]);a.el.distanceBtn.target.forEach(function(g){g=e(g);g.hasClass("is-selected")&&g.focus()})});this.el.layerCloseBtn.on("click",function(){a.closePopup()});this.el.container.find(".where-to-buy__locator").find(".where-to-buy__layer--gbs, .where-to-buy__layer--nearby").find(".layer-popup__inner").attr("tabindex",
290).off("keydown",this.handler.focusInnerPopup).on("keydown",this.handler.focusInnerPopup);this.el.container.find(".where-to-buy__detail").off("keydown",this.handler.focusShopDetail).on("keydown",this.handler.focusShopDetail)};var f=function(){e(window);n=e(".where-to-buy");n.target.length&&(u.setLazyLoad(),e(".where-to-buy").target.forEach(function(a){k.instances.has(a)||new k(a)}))};k.instances=new WeakMap;e.ready(f);window.sg.components.whereToBuy={init:f,reInit:function(){u.setLazyLoad();e(".where-to-buy").target.forEach(function(a){k.instances.has(a)?
30k.instances.get(a).reInit():new k(a)})},showPopup:function(a){e(".where-to-buy").target.forEach(function(g){k.instances.has(g)?k.instances.get(g).showPopup(a):(new k(g)).showPopup(a)})},closePopup:function(a){e(".where-to-buy").target.forEach(function(g){k.instances.has(g)?k.instances.get(g).closePopup(a):(new k(g)).closePopup(a)})}}})();
31(function(e,b){function x(){var t=b("#siteCode").val();b(".js-cta-buy, .js-cta-buy-etc").each(function(){if("ca"===t||"ca_fr"===t)b(this).addClass("ps-widget"),b(this).attr("ps-sku",b(this).data("modelcode")),PriceSpider.rebind();"de"===t&&(b(this).addClass("cci-trigger-overlay"),b(this).attr("data-sku",b(this).data("modelcode")),b(this).attr("data-productcode",b(this).data("modelcode")))})}"undefined"===typeof e.smg&&(e.smg={});var u=e.smg.wtb=e.smg.wtb||{};u.initData={nodePath:b("#current_node_path").val(),
32d_modelCode:b("#current_model_code").val(),d_categorySubTypeCode:b("#wtb-categorySubTypeCode").val(),buyinstoreRedirectYN:b("#buyinstoreRedirectYN").val(),bvConversationFlag:b("#bvConversationFlag").val(),bvConversationRTLFlag:b("#bvConversationRTLFlag").val(),channelCampaignTag:"N",placedWtbResources:!1,useNewWtbFlag:b("#useNewWtb").val(),distanceUnitValue:"",modelCodeValue:"",rtlValue:b("#rtlValue").val(),apiChangeStockStatus:"",useWtbStockFunction:""};u.common=function(){return{reInit:function(){x()}}}();
33b(function(){x();u.bak.init()})})(window,window.jQuery);
34(function(e,b){function x(){function a(l,y,r){var C=new Date;C.setTime(C.getTime()+864E5*(r||0));document.cookie=l+"\x3d"+y+"; expires\x3d"+C.toUTCString()}function g(l){l+="\x3d";for(var y=document.cookie.split(";"),r,C=0,F=y.length;C<F;C++){for(r=y[C];" "===r.charAt(0);)r=r.substring(1);if(-1!==r.indexOf(l))return r.substring(l.length,r.length)}return""}var c=e.smg.wtb.initData,h=function(l){b("#store-list").html("");var y=l.common.storesCount,r=l.stores;l=l.geoInfo;b(".where-to-buy__container .where-to-buy__result-count").text(y);
35if(0!==y){for(var C=0;C<y;C++){var F="";F+='\x3cli class\x3d"where-to-buy__result-item" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:;" class\x3d"where-to-buy__result-content ';var I="",L="",J=r[C].name;null!=r[C].cityName&&(J+=" "+r[C].cityName);"E"===r[C].brandTypeCode?(I="type--experience",L="E"):"B"===r[C].brandTypeCode?(I="type--brand",L="B"):"O"===r[C].brandTypeCode&&(I="type--other",L="O");F+=I+'" role\x3d"button"an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-detail view" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+
36J+'"\x3e\x3cdiv class\x3d"where-to-buy__result-info" data-store-id\x3d"'+r[C].id+'"\x3e\x3cp class\x3d"where-to-buy__result-type"\x3e';F+='\x3csvg class\x3d"icon icon--store-experience" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#pin-experience-i" href\x3d"#pin-experience-i"\x3e\x3c/use\x3e\x3c/svg\x3e\x3csvg class\x3d"icon icon--store-brand" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#pin-brand-i" href\x3d"#pin-brand-i"\x3e\x3c/use\x3e\x3c/svg\x3e\x3csvg class\x3d"icon icon--store" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#pin-other-i" href\x3d"#pin-other-i"\x3e\x3c/use\x3e\x3c/svg\x3e';
37"E"===L?F+=Granite.I18n.get("Samsung Experience Stores"):"B"===L?F+=Granite.I18n.get("Samsung Brand Store"):"O"===L&&(F+=Granite.I18n.get("Other Store"));F+='\x3csvg class\x3d"icon icon--next" 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';F+="\x3c/p\x3e";F+='\x3cp class\x3d"where-to-buy__result-name"\x3e'+r[C].name;null!=r[C].cityName&&(F+='\x3cspan class\x3d"where-to-buy__locator__store-city"\x3e '+r[C].cityName+
38"\x3c/span\x3e\x3c/p\x3e");F+='\x3cp class\x3d"where-to-buy__result-distance"\x3e'+r[C].distance+c.distanceUnitValue+'\x3c/p\x3e\x3cinput type\x3d"hidden" class\x3d"lat" value\x3d"'+r[C].latitude+'"\x3e\x3cinput type\x3d"hidden" class\x3d"long" value\x3d"'+r[C].longitude+'"\x3e\x3cinput type\x3d"hidden" class\x3d"storeId" value\x3d"'+r[C].id+'"\x3e\x3cinput type\x3d"hidden" class\x3d"storeindex" value\x3d"'+(C+1)+'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerlatitude_'+(C+1)+'" value\x3d"'+r[C].latitude+
39'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerlongitude_'+(C+1)+'" value\x3d"'+r[C].longitude+'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerlongitude_'+(C+1)+'" value\x3d"'+r[C].longitude+'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerbrandtype_'+(C+1)+'" value\x3d"'+L+'"\x3e\x3c/div\x3e\x3c/a\x3e\x3c/li\x3e';b("#store-list").append(F)}l&&(b("#maxLat").val(l.maxLatitude),b("#minLat").val(l.minLatitude),b("#maxLong").val(l.maxLongitude),b("#minLong").val(l.minLongitude),b("#store-list li:eq(0)\x3ea").addClass("is-active"))}0===
40y?(b("#store_list_nullYn").val("Y"),b("#stroelength").val("0")):(b("#store_list_nullYn").val("N"),b("#stroelength").val(y))},v=function(l){b("#store-list").html("");var y=l.locations.length;l=l.locations;b(".where-to-buy__container .where-to-buy__result-count").text(y);if(0!==y)for(var r=0;r<y;r++){var C="";"Km"==c.distanceUnitValue?C=(parseFloat(l[r].distance)/1E3).toFixed(2):"Mile"==c.distanceUnitValue&&(C=(parseFloat(l[r].distance)/1609.344).toFixed(2));var F="";F+='\x3cli class\x3d"where-to-buy__result-item" role\x3d"listitem"\x3e\x3ca href\x3d"javascript:;" class\x3d"where-to-buy__result-content ';
41var I="",L="",J="";null!=l[r].name&&""!=l[r].name&&(J=l[r].name);if("1_ses"==l[r].storeTypes)I="type--experience",L="E";else if("2_sbs"==l[r].storeTypes)I="type--brand",L="B";else if("3_retailer_store"==l[r].storeTypes||null==l[r].storeTypes)I="type--other",L="O";F+=I+'" role\x3d"button"an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-detail view" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+J+'"\x3e\x3cdiv class\x3d"where-to-buy__result-info" data-store-id\x3d"'+
42l[r].searchableId+'"\x3e\x3cp class\x3d"where-to-buy__result-type"\x3e';F+='\x3csvg class\x3d"icon icon--store-experience" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#pin-experience-i" href\x3d"#pin-experience-i"\x3e\x3c/use\x3e\x3c/svg\x3e\x3csvg class\x3d"icon icon--store-brand" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#pin-brand-i" href\x3d"#pin-brand-i"\x3e\x3c/use\x3e\x3c/svg\x3e\x3csvg class\x3d"icon icon--store" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#pin-other-i" href\x3d"#pin-other-i"\x3e\x3c/use\x3e\x3c/svg\x3e';
43"E"===L?F+=Granite.I18n.get("Samsung Experience Stores"):"B"===L?F+=Granite.I18n.get("Samsung Brand Store"):"O"===L&&(F+=Granite.I18n.get("Other Store"));F+='\x3csvg class\x3d"icon icon--next" 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';F+="\x3c/p\x3e";F+='\x3cp class\x3d"where-to-buy__result-name"\x3e'+J;null!=l[r].locality&&""!=l[r].locality&&(F+='\x3cspan class\x3d"where-to-buy__locator__store-city"\x3e '+l[r].locality+
44"\x3c/span\x3e\x3c/p\x3e");F+='\x3cp class\x3d"where-to-buy__result-distance"\x3e'+C+c.distanceUnitValue+'\x3c/p\x3e\x3cinput type\x3d"hidden" class\x3d"lat" value\x3d"'+l[r].coordinates.latitude+'"\x3e\x3cinput type\x3d"hidden" class\x3d"long" value\x3d"'+l[r].coordinates.longitude+'"\x3e\x3cinput type\x3d"hidden" class\x3d"storeId" value\x3d"'+l[r].searchableId+'"\x3e\x3cinput type\x3d"hidden" class\x3d"storeindex" value\x3d"'+(r+1)+'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerlatitude_'+(r+1)+
45'" value\x3d"'+l[r].coordinates.latitude+'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerlongitude_'+(r+1)+'" value\x3d"'+l[r].coordinates.longitude+'"\x3e\x3cinput type\x3d"hidden" id\x3d"markerbrandtype_'+(r+1)+'" value\x3d"'+L+'"\x3e\x3c/div\x3e\x3c/a\x3e\x3c/li\x3e';b("#store-list").append(F)}0===y?(b("#store_list_nullYn").val("Y"),b("#stroelength").val("0")):(b("#store_list_nullYn").val("N"),b("#stroelength").val(y))},z=function(l,y,r,C){var F=b("#hatchOffstoreUse").val(),I=y.attr("labelContent"),
46L=b("#store-list li:eq("+(I-1)+") .storeId").val(),J=b("#searchApiDomain").val()+"/"+b("#apiStageInfo").val()+"/b2c/storelocator/detail",P
46=b("#siteCode").val(),G=b("#offstoreDistanceUnit").val();y=b("#offstoreLatitude").val();var T=b("#offstoreLongitude").val();P={siteCode:P,latitude:y,longitude:T,distanceUnit:G,storeId:L};if("Y"!=F)b.ajax({type:"GET",url:J,data:P,async:!1,success:function(O){O=O.response.resultData.storeDetail;var W=O.name;null!=O.cityName&&(W+=" "+O.cityName);var V='\x3cdiv class\x3d"where-to-buy__map-tooltip"\x3e\x3cp class\x3d"where-to-buy__map-store-name"\x3e\x3cbutton type\x3d"button" class\x3d"store-arr2" an-tr\x3d"where to buy popup-'+
47digitalData.page.pageInfo.pageTrack+'-text-detail view" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+'"\x3e'+W;V+="\x3c/button\x3e\x3c/p\x3e";if(null!=O.phone&&""!==O.phone||null!=O.email&&""!==O.email)V+='\x3cul class\x3d"where-to-buy__map-info-list"\x3e',null!=O.phone&&""!==O.phone&&(V+='\x3cli class\x3d"where-to-buy__map-info-item"\x3e\x3ca href\x3d"tel:'+O.phone+'" class\x3d"where-to-buy__map-info-link icon-tel" title\x3d"Call '+O.phone+'"an-tr\x3d"where to buy popup-'+
48digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':call"\x3e'+O.phone+'\x3csvg class\x3d"icon icon--tel" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#call-bold" href\x3d"#call-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e\x3c/li\x3e'),null!=O.email&&""!==O.email&&(V+='\x3cli class\x3d"where-to-buy__map-info-item"\x3e\x3ca href\x3d"mailto:'+O.email+'" class\x3d"where-to-buy__map-info-link icon-mail" title\x3d"Mail to '+
49O.email+'"an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':email"\x3e'+O.email+"\x3c/a\x3e\x3c/li\x3e"),V+="\x3c/ul\x3e";V+='\x3cinput class\x3d"ly_brandType" value\x3d"'+O.brandType+'" type\x3d"hidden"\x3e\x3cinput class\x3d"lat" type\x3d"hidden" value\x3d"'+O.latitude+'"/\x3e\x3cinput class\x3d"long" type\x3d"hidden" value\x3d"'+O.longitude+'"/\x3e\x3cinput id\x3d"detail-index" type\x3d"hidden" value\x3d"'+
50I+'"\x3e\x3cinput id\x3d"currentStoreId" type\x3d"hidden" value\x3d"'+L+'"\x3e\x3c/div\x3e';b("#tv-experience-layer").html(V);l.setContent(""+V);l.open(r,C);b(".where-to-buy__result-content").removeClass("is-active");b("#store-list li:eq("+(I-1)+") .where-to-buy__result-content").addClass("is-active");b(".where-to-buy__result-content").eq(I-1).focus()},error:function(O,W,V){}});else{P=b("#hatchOffstoreUrl").val();G=b("#hatchOffstoreBrandID").val();F=b("#hatchOffstoreRegion").val();J=b("#hatchOffstoreLang").val();
51P=P+G+"/geo/list";G=b("button.where-to-buy__distance-button.is-selected").attr("data-value");G="Mile"==c.distanceUnitValue?1609.344*G:1E3*G;var X="";X=null==b("#selectModelCode").val()||void 0===b("#selectModelCode").val()||""===b("#selectModelCode").val()?b("#current_model_code").val():b("#selectModelCode").val();var Y="";Y=""!=J&&null!=J?{countryCode:F,geoCenterArea:{center:{latitude:y,longitude:T},distance:G},product:X,segment:J,filters:[{columnName:"searchableId",operation:"equal",value:[L]}]}:
52{countryCode:F,geoCenterArea:{center:{latitude:y,longitude:T},distance:G},product:X,filters:[{columnName:"searchableId",operation:"equal",value:[L]}]};b.ajax({headers:{"Content-Type":"application/json"},type:"POST",url:P,data:JSON.stringify(Y),cache:!0,timeout:2E4,success:function(O){O=O.locations[0];var W="";null!=O.name&&""!=O.name&&(W=O.name);null!=O.locality&&""!=O.locality&&(W+=" "+O.locality);var V="1_ses"==O.storeTypes?"E":"2_sbs"==O.storeTypes?"B":"O";var A='\x3cdiv class\x3d"where-to-buy__map-tooltip"\x3e\x3cp class\x3d"where-to-buy__map-store-name"\x3e\x3cbutton type\x3d"button" class\x3d"store-arr2" an-tr\x3d"where to buy popup-'+
53digitalData.page.pageInfo.pageTrack+'-text-detail view" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+'"\x3e'+W;A+="\x3c/button\x3e\x3c/p\x3e";if(null!=O.telephone&&""!==O.telephone||null!=O.email&&""!==O.email)A+='\x3cul class\x3d"where-to-buy__map-info-list"\x3e',null!=O.telephone&&""!==O.telephone&&(A+='\x3cli class\x3d"where-to-buy__map-info-item"\x3e\x3ca href\x3d"tel:'+O.telephone+'" 
53class\x3d"where-to-buy__map-info-link icon-tel" title\x3d"Call '+O.telephone+
54'"an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':call"\x3e'+O.telephone+'\x3csvg class\x3d"icon icon--tel" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#call-bold" href\x3d"#call-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e\x3c/li\x3e'),null!=O.email&&""!==O.email&&(A+='\x3cli class\x3d"where-to-buy__map-info-item"\x3e\x3ca href\x3d"mailto:'+O.email+'" class\x3d"where-to-buy__map-info-link icon-mail" title\x3d"Mail to '+
55O.email+'"an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':email"\x3e'+O.email+"\x3c/a\x3e\x3c/li\x3e"),A+="\x3c/ul\x3e";A+='\x3cinput class\x3d"ly_brandType" value\x3d"'+V+'" type\x3d"hidden"\x3e\x3cinput class\x3d"lat" type\x3d"hidden" value\x3d"'+O.coordinates.latitude+'"/\x3e\x3cinput class\x3d"long" type\x3d"hidden" value\x3d"'+O.coordinates.longitude+'"/\x3e\x3cinput id\x3d"detail-index" type\x3d"hidden" value\x3d"'+
56I+'"\x3e\x3cinput id\x3d"currentStoreId" type\x3d"hidden" value\x3d"'+L+'"\x3e\x3c/div\x3e';b("#tv-experience-layer").html(A);l.setContent(""+A);l.open(r,C);b(".where-to-buy__result-content").removeClass("is-active");b("#store-list li:eq("+(I-1)+") .where-to-buy__result-content").addClass("is-active");b(".where-to-buy__result-content").eq(I-1).focus()},error:function(O,W,V){}})}},H=[],w=function(l,y,r){l=new google.maps.LatLng(l,y);y=(y=b("button.where-to-buy__distance-button.is-selected").attr("data-value"))?
57y:"Y"===r?5:10;r=15;1>=parseInt(y)?r=15:1<parseInt(y)&&2>=parseInt(y)?r=14:2<parseInt(y)&&5>=parseInt(y)?r=13:5<parseInt(y)&&10>=parseInt(y)?r=12:10<parseInt(y)&&25>=parseInt(y)?r=11:25<parseInt(y)&&50>=parseInt(y)?r=10:50<parseInt(y)&&(r=9);y="Y"===rtlValue?google.maps.ControlPosition.LEFT_TOP:google.maps.ControlPosition.RIGHT_TOP;r={scaleControl:!0,scaleControlOptions:{position:google.maps.ControlPosition.BOTTOM_CENTER},mapTypeControl:!1,panControl:!0,panControlOptions:{position:y},zoomControl:!0,
58zoomControlOptions:{style:google.maps.ZoomControlStyle.SMALL,position:y},streetViewControl:!0,streetViewControlOptions:{position:y},center:l,zoom:r,mapTypeId:google.maps.MapTypeId.ROADMAP};var C=new google.maps.Map(document.getElementById("map-canvas"),r);"true"==g("newwtb_offstore")&&(new google.maps.Marker({position:l,map:C,icon:{scaledSize:new google.maps.Size(50,50),origin:new google.maps.Point(0,0),anchor:new google.maps.Point(0,0)}}),new google.maps.Circle({map:null}),new google.maps.Circle({map:C,
59center:l,radius:5E3,fillColor:"#AA0000",strokeColor:"#AA0000",strokeOpacity:0}));var F=new google.maps.InfoWindow;b("#store-list").children("li").each(function(I){I+=1;var L=Number(b("#markerlatitude_"+I).val()),J=Number(b("#markerlongitude_"+I).val());L=new google.maps.LatLng(L,J);J=0+I;var P="";I=b("#markerbrandtype_"+I).val();"E"===I?P="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/icon-pin-experience.svg":"B"===I?P="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/icon-pin-brand.svg":
60"O"===I&&(P="/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/icon-pin-other.svg");var G=new google.maps.Marker({position:L,labelContent:""+J,map:C,icon:{url:P,origin:new google.maps.Point(0,0),anchor:new google.maps.Point(0,0),scaledSize:new google.maps.Size(60,60)}});H[J]=G;G.addListener("click",function(){C.setCenter(G.getPosition())});google.maps.event.clearListeners(G,"click");google.maps.event.addListener(G,"click",function(){F&&F.close();z(F,b(this),C,G)})});
61b(".where-to-buy__container .where-to-buy__result-content").on("click",function(){var I=b(this).find(".storeindex").val();google.maps.event.trigger(H[I],"click")})},B=function(){var l=b("#hatchOffstoreUse").val(),y=b("#searchApiDomain").val()+"/"+b("#apiStageInfo").val()+"/b2c/storelocator/list",r=b("#offstoreLatitude").val(),C=b("#offstoreLongitude").val(),F=b("#siteCode").val(),I=b("#offstoreDistanceUnit").val(),L="";L=b(".where-to-buy__container button.where-to-buy__distance-button.is-selected").attr("data-value");
62var J="";J="";null==L&&("ae"==F||"ae_ar"==F?(L=1,b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'1']").addClass("is-selected"),J=b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'1']").text(),J+='\x3cspan class\x3d"hidden"\x3eselected\x3c/span\x3e',b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'1']").html(J)):(L=10,b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'10']").addClass("is-selected"),
63J=b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'10']").text(),J+='\x3cspan class\x3d"hidden"\x3eselected\x3c/span\x3e',b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'10']").html(J)));J="";J=null==b("#selectModelCode").val()||void 0===b("#selectModelCode").val()||""===b("#selectModelCode").val()?b("#current_model_code").val():b("#selectModelCode").val();var P=b("#categoryInfo").val();F={siteCode:F,latitude:r,longitude:C,distanceUnit:I,
64nRadius:L,modelCode:J,iaCode:P};if("Y"==l){F=b("#hatchOffstoreUrl").val();I=b("#hatchOffstoreBrandID").val();l=b("#hatchOffstoreRegion").val();y=b("#hatchOffstoreLang").val();F=F+I+"/geo/list";var G="";I=[];G=P.substr(0,2)+"000000";P=P.substr(0,4)+"0000";I.push(G);I.push(P);G="Mile"==c.distanceUnitValue?1609.344*L:1E3*L;L="";L=""!=y&&null!=y?{countryCode:l,geoCenterArea:{center:{latitude:r,longitude:C},distance:G},product:J,segment:y,filters:[{columnName:"productTags",operation:"equal",value:I}]}:
65{countryCode:l,geoCenterArea:{center:{latitude:r,longitude:C},distance:G},product:J,filters:[{columnName:"productTags",operation:"equal",value:I}]};b.ajax({headers:{"Content-Type":"application/json"},type:"POST",url:F,data:JSON.stringify(L),cache:!0,timeout:2E4,success:function(T){v(T);w(r,C,"N")},error:function(T,X,Y){},complete:function(){f.bak.reInit()}})}else b.ajax({type:"GET",url:y,data:F,async:!1,success:function(T){h(T.response.resultData);w(r,C,"N")},error:function(T,X,Y){},complete:function(){f.bak.reInit()}})},
66m=function(l,y,r){var C=b("#hatchOffstoreUse").val(),F=b("#searchApiDomain").val()+"/"+b("#apiStageInfo").val()+"/b2c/storelocator/list",I=b("#siteCode").val(),L=b("#offstoreDistanceUnit").val(),J="";J=b("button.where-to-buy__distance-button.is-selected").attr("data-value");var P="";P="";J||("Y"===r&&"ae"!=I?(J=5,b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'5']").addClass("is-selected"),P=b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'5']").text(),
67P+='\x3cspan class\x3d"hidden"\x3eselected\x3c/span\x3e',b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'5']").html(P)):"ae"==I||"ae_ar"==I?(J=1,b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'1']").addClass("is-selected"),P=b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'1']").text(),P+='\x3cspan class\x3d"hidden"\x3eselected\x3c/span\x3e',b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'1']").html(P)):
68(J=10,b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'10']").addClass("is-selected"),P=b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'10']").text(),P+='\x3cspan class\x3d"hidden"\x3eselected\x3c/span\x3e',b(".where-to-buy__container button.where-to-buy__distance-button[data-value\x3d'10']").html(P)));P="";P=null==b("#selectModelCode").val()||void 0===b("#selectModelCode").val()||""===b("#selectModelCode").val()?b("#current_model_code").val():
69b("#selectModelCode").val();var G=b("#categoryInfo").val();I={siteCode:I,latitude:l,longitude:y,distanceUnit:L,nRadius:J,modelCode:P,iaCode:G};if("Y"==C){I=b("#hatchOffstoreUrl").val();L=b("#hatchOffstoreBrandID").val();C=b("#hatchOffstoreRegion").val();F=b("#hatchOffstoreLang").val();I=I+L+"/geo/list";L=[];var T=G.substr(0,2)+"000000",X=G.substr(0,4)+"0000";G=1E3*J;G="";G="Mile"==c.distanceUnitValue?1609.344*J:1E3*J;L.push(T);L.push(X);J="";J=""!=F&&null!=F?{countryCode:C,geoCenterArea:{center:{latitude:l,
70longitude:y},distance:G},product:P,segment:F,filters:[{columnName:"productTags",operation:"equal",value:L}]}:{countryCode:C,geoCenterArea:{center:{latitude:l,longitude:y},distance:G},product:P,filters:[{columnName:"productTags",operation:"equal",value:L}]};b.ajax({headers:{"Content-Type":"application/json"},type:"POST",url:I,data:JSON.stringify(J),cache:!0,timeout:2E4,success:function(Y){v(Y);w(l,y,r)},error:function(Y,O,W){},complete:function(){f.bak.reInit()}})}else b.ajax({type:"GET",url:F,data:I,
71async:!1,success:function(Y){h(Y.response.resultData);w(l,y,r)},error:function(Y,O,W){},complete:function(){f.bak.reInit()}})},E=function(l){function y(){console.warn("ERROR")}function r(F){a("newwtb_offstore","false",5);B()}function C(F){var I="undefined"!==typeof F.coords?F.coords.latitude:F.latitude;F="undefined"!==typeof F.coords?F.coords.longitude:F.longitude;!I||!F||isNaN(I)||isNaN(F)?(I=b("#offstoreLatitude").val(),F=b("#offstoreLongitude").val(),m(I,F,"N")):(b("#offstoreLatitude").val(I),
72b("#offstoreLongitude").val(F),m(I,F,"Y"))}navigator.geolocation?navigator.geolocation.getCurrentPosition(C,r):b.getJSON("http://freegeoip.net/json/?callback\x3d?").then(C,y)},d=function(){if(null!=g("newwtb_offstore")&&""!==g("newwtb_offstore")){var l=g("newwtb_offstore");if("true"===l)E();else{l=b("#offstoreLatitude").val();var y=b("#offstoreLongitude").val();m(l,y,"N")}}else B(),u(".where-to-buy__container .where-to-buy__layer--gbs")},p=function(l){var y=b("#siteCode").val(),r=function(){var F=
73b(".where-to-buy__store"),I=b(".where-to-buy__store-list a.where-to-buy__store-link").length;F.hasClass("where-to-buy__column--4")?12<I&&b(".where-to-buy__container .where-to-buy__store-more-cta").show():6<I&&b(".where-to-buy__container .where-to-buy__store-more-cta").show()},C=function(){if("Y"===b("#bvFlag").val()||"Y"===b("#bvRTLFlag").val()||"Y"===b("#aplautYn").val()){var F=0,I=0,L=0;b("#ratingsValue").val()&&(F=parseFloat(b("#ratingsValue").val()).toFixed(1));b("#reviewCountValue").val()&&(I=
74parseFloat(b("#reviewCountValue").val()||"0"));b("#useReviewYNValue").val()&&(L=b("#useReviewYNValue").val()||"N");var J="",P="",G="",T=Math.floor(F),X=parseInt(100*(F-T));if("Y"==L){for(var Y=0;Y<T;Y++)J+='\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';5>T&&(J+='\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: '+
75X+'%;"\x3e\x3c/span\x3e\x3c/span\x3e');for(X=4;X>T;X--)J+='\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';P+='\x3cspan class\x3d"hidden"\x3eProduct Ratings : \x3c/span\x3e\x3cspan\x3e'+F+"\x3c/span\x3e";G+='(\x3cspan class\x3d"hidden"\x3eNumber of Ratings :\x3c/span\x3e\x3cspan\x3e'+I+"\x3c/span\x3e)";b(".where-to-buy__container .where-to-buy__product-rating .rating__star-list").html(J);
76b(".where-to-buy__container .where-to-buy__product-rating .rating__point").html(P);b(".where-to-buy__container .where-to-buy__product-rating .rating__review-count").html(G)}
76(0===F&&0===I||"N"==L)&&b(".where-to-buy__container .where-to-buy__product-info .where-to-buy__product-rating .rating").addClass("rating--empty")}};b.ajax({type:"GET",url:l,async:!1,success:function(F){b(".where-to-buy").html(F);b(".where-to-buy__container.layer-popup [an-tr]").each(function(){b(this).attr("an-tr",b(this).attr("an-tr").replace("{{pageTrack}}",
77digitalData.page.pageInfo.pageTrack))});c.modelCodeValue=b("#wtbModelCode").val();"3959"===b("#offstoreDistanceUnit").val()?c.distanceUnitValue="Mile":c.distanceUnitValue="Km";F=b("#etailinUrlYn").val();var I=b("#onlineUse").val(),L=b("#inStoreUse").val(),J=b("#instoreIAFlag").val(),P=b("#wtbOnlineRetailorsSize").val(),G=b("#wtbOnlineStoreDisplayYn").val(),T=c.apiChangeStockStatus,X="N",Y="Y";null!=T&&"null"!=T&&(T=T.replace(/\s/gi,"").toUpperCase(),"INSTOCK"==T||"LOWSTOCK"==T||"PREORDER"==T)&&(X=
78"Y");"Y"==c.useWtbStockFunction&&"Y"==X&&(Y="N");if("cz"===y||"sk"===y)b("#whereToBuyLocator").addClass("is-selected"),b("#whereToBuyLocator").attr("aria-selected",!0),b(".where-to-buy__locator").addClass("is-active"),("N"!==I&&P&&"0"!==P||"Y"===F)&&"N"!==G&&"N"!==Y||(b("#whereToBuyOnline").parent().remove(),b("#whereToBuyOnline").attr("aria-selected",!1),b(".where-to-buy__online").remove(),b("#whereToBuyOnline").removeClass("is-selected")),d();else if("Y"===L&&"Y"===J)("N"!==I&&P&&"0"!==P||"Y"===
79F)&&"N"!==G&&"N"!==Y||(b("#whereToBuyOnline").parent().remove(),b("#whereToBuyLocator").addClass("is-selected"),b("#whereToBuyLocator").attr("aria-selected",!0),b(".where-to-buy__online").remove(),b(".where-to-buy__locator").addClass("is-active")),"cn"!==y&&d();else if("Y"!==L||"N"===J)b("#whereToBuyLocator").parent().remove(),"N"===Y&&(F="\x3cp\x3e"+Granite.I18n.get("We are sorry, but this product is currently not available from any of our retail partners.")+"\x3c/p\x3e",b(".where-to-buy__store").html(F));
80F=b("#wtbDisplayName").val();b(".where-to-buy__container .where-to-buy__product-name").html(F);"uk"!==y&&"it"!==y&&"fr"!==y&&"za"!==y&&"in"!==y&&"tr"!==y||b(".where-to-buy__container .where-to-buy__search").show();r();C()},error:function(F,I,L){},complete:function(){var F=b(".where-to-buy__container .where-to-buy__product-name").text();F=ellipsize(F,60);b(".where-to-buy__container .where-to-buy__product-name").html(F);f.bak.reInit()}})},q=function(l,y,r){var C=b("#hatchOffstoreUse").val(),F=b("#searchApiDomain").val()+
81"/"+b("#apiStageInfo").val()+"/b2c/storelocator/detail",I=b("#siteCode").val(),L=b("#offstoreDistanceUnit").val();I={siteCode:I,latitude:y,longitude:r,distanceUnit:L,storeId:l};if("Y"!=C)b.ajax({type:"GET",url:F,data:I,async:!1,success:function(G){G=G.response.resultData.storeDetail;var T="",X="",Y="",O="https://www.google.com/maps/search/?api\x3d1\x26query\x3d"+G.latitude+","+G.longitude;var W=""+G.name;null!=G.cityName&&(W+=" "+G.cityName);b(".where-to-buy__container .where-to-buy__detail-headline").text(W);
82"E"===G.brandTypeCode?Y=Granite.I18n.get("Samsung Experience Stores"):"B"===G.brandTypeCode?Y=Granite.I18n.get("Samsung Brand Store"):"O"===G.brandTypeCode&&(Y=Granite.I18n.get("Other Store"));T+=Y+'\x3cspan class\x3d"where-to-buy__detail-distance"\x3e'+(G.distance+c.distanceUnitValue)+"\x3c/span\x3e";b(".where-to-buy__container .where-to-buy__detail-type").html(T);X+='\x3cli class\x3d"where-to-buy__detail-info-item" role\x3d"listitem"\x3e\x3ca href\x3d"'+O+'" class\x3d"where-to-buy__detail-info-link icon-location" an-tr\x3d"where to buy popup-'+
83digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':address" aria-label\x3d"'+G.address+' Google map : Open in a new window" target\x3d"_blank"\x3e'+G.address+'\x3csvg class\x3d"icon icon--location" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#location-bold" href\x3d"#location-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e\x3c/li\x3e';null!=G.phone&&""!==G.phone&&(X+='\x3cli class\x3d"where-to-buy__detail-info-item" role\x3d"listitem"\x3e\x3ca href\x3d"tel:'+
84G.phone+'" class\x3d"where-to-buy__detail-info-link icon-tel" title\x3d"Call '+G.phone+'" an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':call"\x3e'+G.phone+'\x3csvg class\x3d"icon icon--tel" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#call-bold" href\x3d"#call-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e\x3c/li\x3e');null!=G.email&&""!==G.email&&(X+=
85'\x3cli class\x3d"where-to-buy__detail-info-item" role\x3d"listitem"\x3e\x3ca href\x3d"mailto:'+G.email+'" class\x3d"where-to-buy__detail-info-link icon-mail" title\x3d"Mail to "'+G.email+' an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+W+':email"\x3e'+G.email+"\x3c/a\x3e\x3c/li\x3e");b(".where-to-buy__container .where-to-buy__detail-info-list").html(X)},error:function(G,T,X){}});
86else{I=b("#hatchOffstoreUrl").val();L=b("#hatchOffstoreBrandID").val();C=b("#hatchOffstoreRegion").val();F=b("#hatchOffstoreLang").val();I=I+L+"/geo/list";L=b("button.where-to-buy__distance-button.is-selected").attr("data-value");L="Mile"==c.distanceUnitValue?1609.344*L:1E3*L;var J="";J=null==b("#selectModelCode").val()||void 0===b("#selectModelCode").val()||""===b("#selectModelCode").val()?b("#current_model_code").val():b("#selectModelCode").val();var P="";P=""!=F&&null!=F?{countryCode:C,geoCenterArea:{center:{latitude:y,
87longitude:r},distance:L},product:J,segment:F,filters:[{columnName:"searchableId",operation:"equal",value:[l]}]}:{countryCode:C,geoCenterArea:{center:{latitude:y,longitude:r},distance:L},product:J,filters:[{columnName:"searchableId",operation:"equal",value:[l]}]};b.ajax({headers:{"Content-Type":"application/json"},type:"POST",url:I,data:JSON.stringify(P),cache:!0,timeout:2E4,success:function(G){G=G.locations[0];var T="",X="",Y="",O="https://www.google.com/maps/search/?api\x3d1\x26query\x3d"+G.coordinates.latitude+
88","+G.coordinates.longitude;null!=G.name&&""!=G.name&&(T+=G.name);null!=G.locality&&""!=G.locality&&(T+=" "+G.locality);b(".where-to-buy__container .where-to-buy__detail-headline").text(T);var W="1_ses"==G.storeTypes?Granite.I18n.get("Samsung Experience Stores"):"2_sbs"==G.storeTypes?Granite.I18n.get("Samsung Brand Store"):Granite.I18n.get("Other Store");var V="";"Km"==c.distanceUnitValue?V=(parseFloat(G.distance)/1E3).toFixed(2):"Mile"==c.distanceUnitValue&&(V=(parseFloat(G.distance)/1609.344).toFixed(2));
89X+=W+'\x3cspan class\x3d"where-to-buy__detail-distance"\x3e'+(V+c.distanceUnitValue)+"\x3c/span\x3e";b(".where-to-buy__container .where-to-buy__detail-type").html(X);null!=G.address.street&&""!==G.address.street&&(Y+='\x3cli class\x3d"where-to-buy__detail-info-item" role\x3d"listitem"\x3e\x3ca href\x3d"'+O+'" class\x3d"where-to-buy__detail-info-link icon-location" an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+
90T+':address" aria-label\x3d"'+G.address.street+' Google map : Open in a new window" target\x3d"_blank"\x3e'+G.address.street+'\x3csvg class\x3d"icon icon--location" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#location-bold" href\x3d"#location-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e\x3c/li\x3e');null!=G.telephone&&""!==G.telephone&&(Y+='\x3cli class\x3d"where-to-buy__detail-info-item" role\x3d"listitem"\x3e\x3ca href\x3d"tel:'+G.phone+'" 
90class\x3d"where-to-buy__detail-info-link icon-tel" title\x3d"Call '+
91G.phone+'" an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+T+':call"\x3e'+G.telephone+'\x3csvg class\x3d"icon icon--tel" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#call-bold" href\x3d"#call-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/a\x3e\x3c/li\x3e');null!=G.email&&""!==G.email&&(Y+='\x3cli class\x3d"where-to-buy__detail-info-item" role\x3d"listitem"\x3e\x3ca href\x3d"mailto:'+
92G.email+'" class\x3d"where-to-buy__detail-info-link icon-mail" title\x3d"Mail to "'+G.email+' an-tr\x3d"where to buy popup-'+digitalData.page.pageInfo.pageTrack+'-text-contact" an-ca\x3d"store locator" an-ac\x3d"store detail view" an-la\x3d"store detail view:'+T+':email"\x3e'+G.email+"\x3c/a\x3e\x3c/li\x3e");b(".where-to-buy__container .where-to-buy__detail-info-list").html(Y)}})}};b(document).on("click",".where-to-buy__container .where-to-buy__search",function(l){l="/"+b
92("#siteCode").val()+"/storelocator";
93window.open("about:blank").location.href=l});b(document).on("click",".where-to-buy__container .where-to-buy__distance-button",function(l){b(".where-to-buy__distance-list li button").removeClass("is-selected");b(this).addClass("is-selected");d()});b(document).on("click",".where-to-buy__container .where-to-buy__result-content",function(l){l=b(this).find(".where-to-buy__result-info").attr("data-store-id");var y=b("#offstoreLatitude").val(),r=b("#offstoreLongitude").val();b(".where-to-buy__result-content").removeClass("is-active");
94b(this).addClass("is-active");q(l,y,r)});b(document).on("click",".where-to-buy__container .where-to-buy__layer--gbs .cta--contained.cta--emphasis",function(l){a("newwtb_offstore","true",5);d();t(".where-to-buy__layer--gbs",!1)});b(document).on("click",".where-to-buy__container .where-to-buy__layer--gbs .cta--outlined.cta--black",function(l){a("newwtb_offstore","false",5);B();t(".where-to-buy__layer--gbs",!1)});b(document).on("click",".where-to-buy__container .where-to-buy__layer--gbs .layer-popup__close",
95function(l){a("newwtb_offstore","false",5);B();t(".where-to-buy__layer--gbs",!1)});b(document).on("click",".where-to-buy__container .store-arr2",function(l){l=b("#currentStoreId").val();var y=b("#offstoreLatitude").val(),r=b("#offstoreLongitude").val();q(l,y,r);b(".where-to-buy__detail").show();b("#store-Detail-Layer").attr("data-store-detail-id",l)});b(document).on("click",".where-to-buy__container .gm-ui-hover-effect",function(l){b(".where-to-buy__detail").hide();b(".where-to-buy__result-content").removeClass("is-active")});
96b(document).on("click",".where-to-buy__container .where-to-buy__content \x3e .layer-popup__close",function(l){t(".where-to-buy__container",!0)});b(document).on("click",".where-to-buy__container .where-to-buy__store-link",function(l){window.open(b(this).data("deeplink"),"_blank")});b(document).on("click",".js-cta-buy, .js-cta-buy-etc",function(l){var y=b(this).attr("data-iaCode"),r=b("#siteCode").val();l=b(this).attr("data-modelcode");var C=l.replace("/","+"),F=b(this).attr("data-modelname"),I=""!==
97g("country_codes")?g("country_codes"):"kr",L=b("#language").val().replace("-","_");I="/samsung/common/wheretobuy.cm-g-where-to-buy-bak."+y+"."+r+"."+C+".Y."+I+"."+L+".html";-1>=location.href.indexOf(".html")&&(I=I.replace(".html","/"));b("#current_model_code").val(l);b("#wtb-categorySubTypeCode").val(y);switch(r){case "ru":case "ge":case "test":if(!b(this).hasClass("wtb-init")){var J=new WtbWidget;J.init({});document.addEventListener("click",function(G){G.target&&G.target.className&&-1!==G.target.className.indexOf("js-cta-buy")&&
98J.callPopup(G.target)});b(this).get(0).click()}break;case "az":if(!b(this).hasClass("wtb-init")){J=new WtbWidget;J.initOnline({skuOnline:l,buttonSelector:".js-cta-buy"});J.initOffline({skuOffline:l,el:".wtb-container"});var P=b(this);setTimeout(function(){P.get(0).click()},1E3)}break;case "be":case "be_fr":case "nl":null===document.querySelector("#wtb-id-span")?(y=document.createElement("span"),y.dataset.mpn=l,y.id="wtb-id-span",b("body").append(y)):document.querySelector("#wtb-id-span").dataset.mpn=
99l;k(c);break;case "de":break;default:if("product finder"==digitalData.page.pageInfo.pageTrack?(c.apiChangeStockStatus=b(this).parent().find(".wtbStockStatusText").val(),c.useWtbStockFunction=b(this).parent().find(".useWtbStockFunction").val()):(c.apiChangeStockStatus=b("#apiChangeStockStatus").val(),c.useWtbStockFunction=b("#useWtbStockFunction").val()),p(I),b("#selectModelName").val(F),b("#selectModelCode").val(l),"ca"===r||"ca_fr"===r)"undefined"!==typeof b("#cnWtbUrlPath").val()&&""!==b("#cnWtbUrlPath").val()&&
100pswtb.sandbox.openWTB(this,b("#cnWtbUrlPath").val());else{if("cn"===r&&1===b(".where-to-buy__tab li").length&&"whereToBuyLocator"===b(".where-to-buy__tab li a").attr("id")){location.href=b("#cnWtbUrlPath").val();return}b(".where-to-buy__container .where-to-buy__store-link").attr("data-modelcode",l);b(".where-to-buy__container .where-to-buy__store-link").attr("data-modelname",F);u(".where-to-buy__container");window.sg.common.icon.update();window.sg.common.lazyLoad.setLazyLoad()}}if("Y"===c.bvConversationFlag||
101"Y"===c.bvConversationRTLFlag)window.bvCallback=function(G){G.pixel.trackConversion({type:"WhereToBuy",label:"ProductPage",value:C})}})}function u(a){b(".where-to-buy .layer-popup-dim").show();b(".where-to-buy "+a).show()}function t(a,g){g&&b(".where-to-buy .layer-popup-dim").hide();b(".where-to-buy "+a).hide()}function n(a){var g=document.createElement("div");g.innerHTML="\x3cdiv id\x3d'wtb-modal-container' class\x3d'modal-container'\x3e\x3cdiv class\x3d'modal-overlay'\x3e\x3c/div\x3e\x3cdiv class\x3d'modal-window default settings'\x3e\x3cdiv class\x3d'internal-container'\x3e\x3cdiv class\x3d'modal-top-bar'\x3e\x3cdiv class\x3d'close-button'\x3e\x3cimg src\x3d'https://image.samsung.com/uk/smartphones/galaxy-note9/buy/shop_popup_close_btn_mo.png'/\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv id\x3d'where-to-buy-local'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";
102b("body").append(g);b(".close-button").on("click",function(c){k(a)});b(".modal-overlay").on("click",function(c){k(a)})}function k(a){null===document.querySelector("#wtb-modal-container")&&n(a);if(!a.placedWtbResources){var g=document.createElement("script");-1<location.host.indexOf("www")?g.src="https://sebn.ams3.cdn.digitaloceanspaces.com/src/wtb/latest/js/app.js":g.src="https://sebn.ams3.digitaloceanspaces.com/src/wtb/latest/staging/js/app.js";g.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(g);
103a.placedWtbResources=!0}b("body").toggleClass("modal-open")}e.smg=e.smg||{};var f=e.smg.wtb=e.smg.wtb||{};f.bak=function(){return{init:function(){x()},reInit:function(){window.sg.components.whereToBuy.reInit()}}}()})(window,window.jQuery);
104(function(e){function b(f){n.log&&window.console&&console.log(x+" "+f)}var x="[iFrameSizer]",u=x.length,t=0,n,k={log:!1,contentWindowBodyMargin:8,doHeight:!0,doWidth:!1,interval:0,callback:function(){}};e(window).on("message",function(f){(function(a){function g(){function v(z){h.iframe.style[z]=h[z]+"px";b(h.iframe.id+" "+z+" set to "+h[z]+"px")}n.doHeight&&v("height");n.doWidth&&v("width")}function c(){var v=a.substr(u).split(":");h={iframe:document.getElementById(v[0]),height:v[1],width:v[2]}}var h=
105{};x===a&&a.substr(0,u)&&(c(),g(),n.callback(h))})(f.originalEvent.data)});e.fn.iFrameSizer=function(f){return n=e.extend({},k,f),this.each(function(){function a(){c.style.overflow="hidden";c.scrolling="no";e(c).on("load",function(){g(c)});g(c)}function g(){""===c.id&&(c.id="iFrameSizer"+t++,b("Added missing iframe ID: "+c.id));var h=c.id+":"+n.contentWindowBodyMargin+":"+n.doWidth+":"+n.log+":"+n.interval;b("Sending init msg to iframe ("+h+")");c.contentWindow.postMessage(x+h,"*")}var c=this;c.contentWindow&&
106a()})}})(window.jQuery);
107(function(){function e(){b(x.section).target.forEach(function(t){u.instances.has(t)||new u(t)})}var b=window.sg.common.$q,x={section:".notification-bar"},u=function(t){var n=this;this.selector={section:x.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:b(window),section:b(t),btn:null,content:null,nomarl:null,
108expand:null};this.handler={resize:function(){n.ele.section.css({height:""});n.timer&&clearTimeout(n.timer);setTimeout(function(){n.setHeight()},400)}};this.setProperty();u.instances.set(t,this);this.init()};u.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.ele.hidden=this.ele.section.find(this.selector.hidden);this.ele.content=this.ele.section.find(this.selector.content);this.ele.pdBanner=this.ele.section.find(this.selector.pdBanner);this.ele.nomarl=this.ele.section.find(this.selector.nomarl);
109this.ele.expand=this.ele.section.find(this.selector.expend)};u.prototype.init=function(){this.bindEvents()};u.prototype.reInit=function(){this.setProperty();this.bindEvents()};u.prototype.setHeight=function(){this.ele.section.css({height:this.ele.content.outerHeight()+"px"})};u.prototype.bindEvents=function(){var t=this;this.ele.btn.off("click").on("click",function(){t.ele.section.hasClass("is-expanded")?t.closeBanner():t.openBanner()});this.ele.window.off("resize",this.handler.resize).on("resize",
110this.handler.resize);this.setHeight()};u.prototype.openBanner=function(){this.ele.section.addClass("is-expanded");this.ele.section.attr("aria-expanded",!0);this.ele.nomarl.hide();this.ele.expand.show();this.ele.hidden.innerHTML("Click to Collapse");this.setHeight()};u.prototype.closeBanner=function(){this.ele.section.removeClass("is-expanded");this.ele.section.attr("aria-expanded",!1);this.ele.nomarl.show();this.ele.expand.hide();this.ele.hidden.innerHTML("Click to Expand");this.setHeight()};u.instances=
111new WeakMap;window.sg.components.notificationBar={init:e,reInit:function(){b(x.section).target.forEach(function(t){u.instances.has(t)?u.instances.get(t).reInit():new u(t)})},closeBanner:function(t){t=void 0===t?!0:t;b(x.section).target.forEach(function(n){u.instances.has(n)&&u.instances.get(n).closeBanner(t)})}};b.ready(e)})();
112(function(){function e(){b(t.section).target.forEach(function(k){n.instances.has(k)||new n(k)})}var b=window.sg.common.$q,x=window.sg.common.utils,u=window.sg.common.layerPopupMaxHeight,t={section:".icon-description-column"},n=function(k){this.selector={section:t.section,layerPopupBtn:"a.cta[data-layer-target]"};this.ele={section:b(k),layerPopupBtn:null};this.popupData={btn:null,popup:null};this.prevDevice=null;this.setProperty();n.instances.set(k,this);this.init()};n.prototype.openLayerPopup=function(k){var f=
113this;this.popupData.btn=k;this.popupData.popup=b("#"+this.popupData.btn.dataset.layerTarget);this.popupData.popup.show();x.hiddenScroll();this.popupData.popup.setLayerFocus(".layer-popup__inner",".layer-popup__close");this.popupData.popup.find(".layer-popup__close").off("click").on("click",function(){f.closeLayerPopup()});null===u.reInit(this.popupData.popup.find(".layer-popup").target[0])&&u.init(this.popupData.popup.find(".layer-popup").target[0]);u.setMax(this.popupData.popup.find(".layer-popup").target[0])};
114n.prototype.closeLayerPopup=function(){this.popupData.popup.hide();this.popupData.btn.focus();x.visibleScroll();this.popupData.popup.offLayerFocus();this.popupData.btn=null;this.popupData.popup=null};n.prototype.init=function(){this.bindEvents();this.setContentIdDamTagging()};n.prototype.reInit=function(){this.setProperty();this.bindEvents();this.setContentIdDamTagging()};n.prototype.setProperty=function(){this.ele.layerPopupBtn=this.ele.section.find(this.selector.layerPopupBtn)};n.prototype.bindEvents=
115function(){var k=this;this.ele.layerPopupBtn.off("click").on("click",function(f){k.openLayerPopup(f.currentTarget)})};n.prototype.setContentIdDamTagging=function(){var k=this;this.prevDevice=x.getCurrentDevice();var f=b(window),a=this.ele.section,g=a.find(".icon-description-column__column"),c=function(z,H,w){z=b(z);var B=b(H);H=B.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(m){return b(m).attr("data-desktop-aem-asset-id")||
116b(m).attr("data-aem-asset-id")}).filter(function(m){return null!==m&&""!==m}).join(",");B=B.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(m){return b(m).attr("data-mobile-aem-asset-id")||
117b(m).attr("data-aem-asset-id")}).filter(function(m){return null!==m&&""!==m}).join(",");switch(w){case "desktop":z.attr("an-as",H);break;case "mobile":z.attr("an-as",B)}},h=function(){var z=k.ele.section.find(".icon-description-column__cta-wrap .cta");c(z.target,a.target,k.prevDevice)},v=function(){g.target.forEach(function(z){var H=b(z).find(".icon-description-column__cta .cta");c(H.target,z,k.prevDevice)})};v();h();f.on("resize",function(){var z=x.getCurrentDevice();k.prevDevice!==z&&(k.prevDevice=
118z,v(),h())})};n.instances=new WeakMap;window.sg.components.iconDescriptionColumn={init:e,reInit:function(){b(t.section).target.forEach(function(k){n.instances.has(k)?n.instances.get(k).reInit():new n(k)})}};b.ready(e)})();
119(function(){function e(){b(k.section).target.forEach(function(a){f.instances.has(a)?f.instances.get(a).reInit():new f(a)})}var b=window.sg.common.$q,x=window.sg.common.libs,u=window.sg.common.utils.setMobileFocusLoop,t=window.sg.common.utils.removeMobileFocusLoop,n=window.sg.common.utils,k={section:".contact-mail-form-popup",setFocus:null},f=function(a){this.selector={section:k.section,closeCta:".layer-popup__close",mailForm:".contact-mail-form-popup__form",multiField:".field--multi-text"};this.ele=
120{section:b(a),window:b(window),closeCta:null,mailForm:null,multiField:null};this.handler={focusLock:this.focusLock.bind(this),activePopup:this.activePopup.bind(this),closePopup:this.closePopup.bind(this),textLengCheck:this.textLengCheck.bind(this),formEnterPrevent:this.formEnterPrevent.bind(this),reCaptchaMate:this.reCaptchaMate.bind(this),mateCheckStop:this.mateCheckStop.bind(this)};f.instances.set(a,this);this.init()};f.prototype.init=function(){this.setProperty();this.bindEvents()};f.prototype.reInit=
121function(){this.setProperty();this.bindEvents()};f.prototype.setProperty=function(){this.ele.closeCta=this.ele.section.find(this.selector.closeCta);this.ele.mailForm=this.ele.section.find(this.selector.mailForm);this.ele.multiField=this.ele.mailForm.find(this.selector.multiField).find(".text-field-v2__input-multi-line");this.ele.formEl=this.ele.section.find(".contact-mail-form-popup__form-field input");this.activeCta=null};
121f.prototype.bindEvents=function(){this.ele.closeCta.off("click",this.handler.closePopup).on("click",
122this.handler.closePopup);this.ele.multiField.off("input",this.handler.textLengCheck).on("input",this.handler.textLengCheck);this.ele.formEl.off("keypress",this.handler.formEnterPrevent).on("keypress",this.handler.formEnterPrevent);this.handler.textLengCheck();setTimeout(function(){n.removeReCaptchaFrameBorder()},200)};f.prototype.focusLock=function(a){if(a.keyCode===x.keyCode.TAB_KEY){var g=this.activeTarget.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0];!1===a.shiftKey&&this.activeTarget.find(this.selector.closeCta).target[0]===
123document.activeElement?(a.preventDefault(),g.focus()):!0===a.shiftKey&&g===document.activeElement?(a.preventDefault(),this.activeTarget.find(this.selector.closeCta).focus()):!0===a.shiftKey&&this.activeTarget.target[0]===document.activeElement&&(a.preventDefault(),this.activeTarget.find(this.selector.closeCta).focus())}};f.prototype.activePopup=function(a){a&&(this.activeCta=b(a),k.setFocus=a);n.hiddenScroll();this.activeTarget=this.ele.section;this.activeTarget.css({display:"block"});this.ele.window.off("keydown",
124this.handler.focusLock).on("keydown",this.handler.focusLock);this.activeTarget.find('a, button, input:not([type\x3d"hidden"]), textarea').target[0].focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&u(this.ele.section.target[0]);window.sg.components.fn06ContactMailForm.reCaptchaHidden();var g=window.addEventListener("blur",function(){"IFRAME"===document.activeElement.nodeName&&window.sg.components.fn06ContactMailForm.reCaptchaMate();window.removeEventListener("blur",g)})};f.prototype.closePopup=
125function(){n.visibleScroll();0<document.querySelectorAll(".recaptcha-challenge-popup").length&&b(".recaptcha-challenge-popup").removeClass("recaptcha-challenge-popup");0<document.querySelectorAll("[data-aria-hidden]").length&&t();n.changeInActiveReCaptchaProperty();this.requiredReset();null!==this.activeCta&&this.activeCta.focus();this.ele.section.css({display:"none"});this.ele.window.off("keydown",this.handler.focusLock);this.activeCta=this.activeTarget=null};f.prototype.formEnterPrevent=function(a){a.keyCode===
126x.keyCode.ENTER&&a.preventDefault()};f.prototype.textLengCheck=function(a){if(void 0===a)this.ele.mailForm.find(".text-field-v2.multi-line").target.forEach(function(z){var H=b(z).find(".text-field-v2__input-multi-line"),w=b(z).find(".assistive"),B=b(z).find(".error"),m=b(z).target[0].offsetWidth;H.target[0].value&&!b(z).hasClass("error")?(w.css({display:"block"}),H.attr("aria-describedby",w.attr("id")),B.css({width:""})):0<b(z).closest(".error").target.length?(w.css({display:"block"}),H.attr("aria-describedby",
127B.attr("id")+" "+w.attr("id")),B.css({width:m-w.target[0].offsetWidth+"px"})):(w.css({display:"none"}),H.removeAttr("aria-describedby"),B.css({width:""}));w.text(H.target[0].value.length+"/2000")});else{var g=a.target.value,c=b(a.target).closest(".multi-line").find(".assistive"),h=b(a.target).closest(".multi-line").find(".error"),v=a.target.offsetWidth;g&&0===b(a.target).closest(".error").target.length?(c.css({display:"block"}),b(a.target).attr("aria-describedby",c.attr("id")),h.css({width:""})):
1280<b(a.target).closest(".error").target.length?(c.css({display:"block"}),b(a.target).attr("aria-describedby",h.attr("id")+" "+c.attr("id")),h.css({width:v-c.target[0].offsetWidth+"px"})):(c.css({display:"none"}),b(a.target).removeAttr("aria-describedby"),h.css({width:""}));c.text(g.length+"/2000")}};f.prototype.reCaptchaMate=function(){var a=this,g=b("html").css("direction");if("block"===b(".contact-mail-form-popup").css("display")){var c=b(".contact-mail-form-popup__iframe-inner iframe[title]").attr("src"),
129h=c.substring(52,c.indexOf("\x26co\x3d"));this.targetIframe=[];[].concat($jscomp.arrayFromIterable(document.querySelectorAll("iframe[sandbox]"))).forEach(function(v){0<=v.getAttribute("src").indexOf(h)&&1>b(v).closest(".contact-mail-form-popup").target.length&&1>b(v).closest(".ready-to-buy__iframe").target.length&&1>b(v).closest(".contact-mail-form__iframe").target.length&&(a.targetIframe.push(v),v.parentNode.parentNode.classList.add("recaptcha-challenge-popup"),"rtl"===g&&v.parentNode.parentNode.classList.add("recaptcha-popup-resizing"))})}};
130f.prototype.mateCheckStop=function(){null!==this.addMate&&(clearInterval(this.addMate),this.addMate=null)};f.prototype.requiredCheck=function(){this.ele.section.find(".field--checkbox.is-required").target.forEach(function(a){var g=a.querySelectorAll(".checkbox-v2__input
130:checked").length,c=b(a).find(".checkbox--required-text"),h=b(a).find(".checkbox--error-text");0>=b(a).find(".field--checkbox-list-wrap").target.length&&(0>=g?(h.attr("aria-hidden",!0),c.attr("aria-hidden",!1),b(a).find(".checkbox-v2__input").attr("aria-describedby",
131h.attr("id"))):(h.attr("aria-hidden",!1),c.attr("aria-hidden",!0),b(a).find(".checkbox-v2__input").attr("aria-describedby",c.attr("id"))))})};f.prototype.requiredReset=function(){this.ele.section.find(".field--checkbox.is-required").target.forEach(function(a){var g=b(a).find(".checkbox-v2__input"),c=b(a).find(".checkbox--required-text"),h=b(a).find(".checkbox--error-text");0>=b(a).find(".field--checkbox-list-wrap").target.length&&(g.attr("aria-describedby",c.attr("id")),c.attr("aria-hidden",!0),h.removeAttr("aria-hidden"))});
132this.ele.mailForm.find(".text-field-v2.multi-line").target.forEach(function(a){b(a).find(".text-field-v2__input-multi-line").removeAttr("aria-describedby")})};f.instances=new WeakMap;window.sg.components.fn06ContactMailForm={selector:k,init:e,reInit:function(){b(k.section).target.forEach(function(a){f.instances.has(a)?f.instances.get(a).reInit():new f(a)})},activePopup:function(a){b(k.section).target.forEach(function(g){f.instances.has(g)&&f.instances.get(g).activePopup(a)})},closePopup:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&
133f.instances.get(a).closePopup()})},textLengCheck:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&f.instances.get(a).textLengCheck()})},reCaptchaHidden:function(){n.changeActiveReCaptchaProperty();b(k.section).target.forEach(function(a){b(a).find('[title\x3d"reCAPTCHA"]').removeAttr("aria-hidden");/Android/i.test(navigator.userAgent)&&b(a).find('[title\x3d"reCAPTCHA"]').attr("role","presentation")})},recatchaHiddenProperty:function(){n.removeReCaptchaFrameBorder()},reCaptchaMate:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&
134f.instances.get(a).reCaptchaMate()})},mateCheckStop:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&f.instances.get(a).mateCheckStop()})},requiredCheck:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&f.instances.get(a).requiredCheck()})}};b.ready(e)})();var mailformPopup={};
135(function(e,b){function x(){var B=e('input[type\x3d"checkbox"][data-form-name\x3d"ProductSolution"]');B.on("change",function(){e(this).prop("checked")&&B.not(this).prop("checked",!1)})}function u(){var B=!0;z.find(".contact-mail-form-popup__form-field.is-required").find("select,textarea,input[data-form-name]:not(.checkbox-v2__input, .radio-v2__input)").each(function(){var d=e(this);null==d.val()||""===d.val()?(B=!1,d.closest(".text-field-v2, .menu--text-field").addClass("error"),d.hasClass("text-field-v2__input")||
136d.hasClass("text-field-v2__input-multi-line")?(d.attr("aria-describedby",d.attr("id")+"_err"),d.closest(".text-field-v2").find(".text-field-v2__text.error").attr("id",d.attr("id")+"_err")):d.hasClass("menu__select")&&(d.closest(".menu--text-field").find(".menu__select-field").attr("aria-describedby",d.closest(".menu--text-field").find(".menu--text-field__hint").attr("id")+"_err"),d.closest(".menu--text-field").find(".menu--text-field__error").attr("id",d.closest(".menu--text-field").find(".menu--text-field__hint").attr("id")+
137"_err").attr("aria-hidden","true"),d.closest(".menu--text-field").find(".menu__select").attr("aria-labelledby",d.closest(".menu--text-field").find("p").attr("id")+" "+d.closest(".menu--text-field").find(".menu--text-field__hint").attr("id")+"_err"),d.closest(".menu--text-field").find(".text-field--required-text").attr("aria-hidden","true"))):(d.closest(".text-field-v2, .menu--text-field").removeClass("error"),d.hasClass("text-field-v2__input")||d.hasClass("text-field-v2__input-multi-line")?(d.removeAttr("aria-describedby"),
138d.closest(".text-field-v2").find(".text-field-v2__text.error").removeAttr("id")):d.hasClass("menu__select")&&(d.closest(".menu--text-field").find(".menu__select-field").removeAttr("aria-describedby"),d.closest(".menu--text-field").find(".menu--text-field__error").removeAttr("id").removeAttr("aria-hidden"),d.closest(".menu--text-field").find(".menu__select").attr("aria-labelledby",d.closest(".menu--text-field").find("p").attr("id")),d.closest(".menu--text-field").find(".text-field--required-text").removeAttr("aria-hidden")))});
139var m="";z.find(".contact-mail-form-popup__form-field.checkbox--list.is-required").find("input[data-form-name].checkbox-v2__input").each(function(){var d=e(this);m!==d.attr("data-form-name")&&(m=d.attr("data-form-name"),d.closest(".contact-mail-form-popup__form-field").find("input[data-form-name]").is(":checked")?(d.closest(".field--checkbox-list-wrap").removeClass("error"),d.closest(".contact-mail-form-popup__form-field").find("fieldset legend span").text("* "+Granite.I18n.get("Required"))):(B=!1,
140d.closest(".field--checkbox-list-wrap").addClass("error"),d.closest(".contact-mail-form-popup__form-field").find("fieldset legend span").text("* "+Granite.I18n.get("This checkbox is required"))))});z.find(".contact-mail-form-popup__form-field.field--checkbox.is-required:not(.checkbox--list)").find("input[data-form-name].checkbox-v2__input").each(function(){var d=e(this);m!==d.attr("data-form-name")&&(m=d.attr("data-form-name"),d.closest(".contact-mail-form-popup__form-field").find("input[data-form-name]").is(":checked")?
141d.closest(".field--checkbox-wrap").removeClass("error"):(B=!1,d.closest(".field--checkbox-wrap").addClass("error")))});z.find(".contact-mail-form-popup__form-field.radio--list.is-required").find("input[data-form-name].radio-v2__input").each(function(){var d=e(this);m!==d.attr("data-form-name")&&(m=d.attr("data-form-name"),d.closest(".contact-mail-form-popup__form-field").find("input[data-form-name]").is(":checked")?(d.closest(".field--radio-list-wrap").removeClass("error"),d.closest(".contact-mail-form-popup__form-field").find("fieldset legend span").text("* "+
142Granite.I18n.get("Required"))):(B=!1,d.closest(".field--radio-list-wrap").addClass("error"),d.closest(".contact-mail-form-popup__form-field").find("fieldset legend span").text("* "+Granite.I18n.get("This field is required"))))});if(z.find("input[data-form-name\x3d'Telephone']")){var E=z.find("input[data-form-name\x3d'Telephone']").val();z.find("input[data-form-name\x3d'Telephone']").attr("aria-describedby",z.find("input[data-form-name\x3d'Telephone']").attr("id")+"_err");z.find("input[data-form-name\x3d'Telephone']").closest(".text-field-v2").find(".text-field-v2__text.error").attr("id",
143z.find("input[data-form-name\x3d'Telephone']").attr("id")+"_err");!z.find("input[data-form-name\x3d'Telephone']").closest(".contact-mail-form-popup__form-field").hasClass("is-required")||null!=E&&""!==E?null==E||""===E||t(E)?(z.find("input[data-form-name\x3d'Telephone']").closest(".text-field-v2").removeClass("error"),z.find("input[data-form-name\x3d'Telephone']").removeAttr("aria-describedby"),z.find("input[data-form-name\x3d'Telephone']").closest(".text-field-v2").find(".text-field-v2__text.error").removeAttr("id")):
144(B=!1,z.find("input[data-form-name\x3d'Telephone']").closest(".contact-mail-form-popup__form-field").find(".text-field-v2__text").text(Granite.I18n.get("Please enter a valid telephone number")),z.find("input[data-form-name\x3d'Telephone']").closest(".text-field-v2").addClass("error")):(B=!1,z.find("input[data-form-name\x3d'Telephone']").closest(".contact-mail-form-popup__form-field").find(".text-field-v2__text").text("* "+Granite.I18n.get("This field is required")),z.find("input[data-form-name\x3d'Telephone']").closest(".text-field-v2").addClass("error"))}z.find("input[data-form-name\x3d'EmailAddress']")&&
145(E=z.find("input[data-form-name\x3d'EmailAddress']").val(),z.find("input[data-form-name\x3d'EmailAddress']").attr("aria-describedby",z.find("input[data-form-name\x3d'EmailAddress']").attr("id")+"_err"),z.find("input[data-form-name\x3d'EmailAddress']").closest(".text-field-v2").find(".text-field-v2__text.error").attr("id",z.find("input[data-form-name\x3d'EmailAddress']").attr("id")+"_err"),!z.find("input[data-form-name\x3d'EmailAddress']").closest(".contact-mail-form-popup__form-field").hasClass("is-required")||
146null!=E&&""!==E?null==E||""===E||n(E)?"fr"!==H&&-1<E.indexOf("@samsung.com")?(B=!1,z.find("input[data-form-name\x3d'EmailAddress']").closest(".contact-mail-form-popup__form-field").find(".text-field-v2__text").text(Granite.I18n.get("Samsung.com email address is not allowed. Please input other email address.")),z.find("input[data-form-name\x3d'EmailAddress']").closest(".text-field-v2").addClass("error")):(z.find("input[data-form-name\x3d'EmailAddress']").closest(".text-field-v2").removeClass("error"),
147z.find("input[data-form-name\x3d'EmailAddress']").removeAttr("aria-describedby"),z.find("input[data-form-name\x3d'EmailAddress']").closest(".text-field-v2").find(".text-field-v2__text.error").removeAttr("id")):(B=!1,z.find("input[data-form-name\x3d'EmailAddress']").closest(".contact-mail-form-popup__form-field").find(".text-field-v2__text").text(Granite.I18n.get("Please enter a valid E-mail address")),z.find("input[data-form-name\x3d'EmailAddress']").closest(".text-field-v2").addClass("error")):(B=
148!1,z.find("input[data-form-name\x3d'EmailAddress']").closest(".contact-mail-form-popup__form-field").find(".text-field-v2__text").text("* "+Granite.I18n.get("This field is required")),z.find("input[data-form-name\x3d'EmailAddress']").closest(".text-field-v2").addClass("error")));e.each([{selector:"input[data-form-name\x3d'CustomerName']",regex:/[<>"#;\[\]:\|\^*~\\{}]/},{selector:"input[data-form-name\x3d'ContactFirstName']",regex:/[<>&"#;\[\]:\|\^*%$~{}\/(\\)]/},{selector:"input[data-form-name\x3d'ContactName']",
149regex:/[<>&"#;\[\]:\|\^*%$~{}\/(\\)]/},{selector:"input[data-form-name\x3d'CompanyAddress']",regex:/[<>"\[\]:\|\^*%$~{}\/\\]/},{selector:"input[data-form-name\x3d'CompanyInterest']",regex:/[<>"';#;\[\]:\|\^*%$~{}\/(\\)]/},{selector:"input[data-form-name\x3d'JobTitle']",regex:/[<>"#;\[\]:\|\^*%$~{}\/(\\)]/},{selector:"input[data-form-name\x3d'City']",regex:/[<>&"#;\[\]:\|\^*%$~{}\/(\\)]/},{selector:"input[data-form-name\x3d'Zipcode']",regex:/[<>&"';#;\[\]:\|\^*%$~{}\/(\\)]/},{selector:"textarea[data-form-name\x3d'Message']",
150regex:/[<>]/}],function(d,p){d=z.find(p.selector);if(d.length){var q=d.val(),l=d.closest(".text-field-v2"),y=d.closest(".contact-mail-form-popup__form-field"),r=d.attr("id")+"_err";!y.hasClass("is-required")||null!=q&&""!==q?null!=q&&""!==q&&p.regex.test(q)?(B=!1,d.attr("aria-describedby",r),l.find(".text-field-v2__text.error").attr("id",r),e("#"+r).text(Granite.I18n.get("Special characters are not allowed.")),l.find(".text-field-v2__text.assistive").text(""),l.addClass("error")):(l.removeClass("error"),
151d.removeAttr("aria-describedby"),l.find(".text-field-v2__text.error").removeAttr("id").text(""),l.find(".text-field-v2__text.assistive").text("")):(B=!1,d.attr("aria-describedby",r),l.find(".text-field-v2__text.error").attr("id",r),e("#"+r).text("* "+Granite.I18n.get("This field is required")),l.find(".text-field-v2__text.assistive").text(""),l.addClass("error"))}});"undefined"!==typeof conRecaptcha&&null!=conRecaptcha&&"Y"!==e("#captchaOptionFlag").val()&&(""===grecaptcha.getResponse(conRecaptcha)?
152(B=!1,grecaptcha.reset(conRecaptcha),window.sg.components.fn06ContactMailForm.recatchaHiddenProperty(),z.find(".
152invalid-notice").show(),v()):z.find(".invalid-notice").hide());return B}function t(B){B=B.replace(/\+/g,"").replace(/-/g,"");return/^[-0-9]*$/.test(B)?!0:!1}function n(B){return/^([\w\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.test(B)&&!/\s/g.test(B)}function k(){var B={};z.find(".contact-mail-form-popup__form-field").find("select,textarea,input[data-form-name]").each(function(){var E=
153!0,d=e(this),p=d.val();if("checkbox"===d.prop("type")||"radio"===d.prop("type"))"PrivacyPolicy"===d.attr("data-form-name")||"OptIn"===d.attr("data-form-name")?p=d.prop("checked")?"Y":"N":d.prop("checked")||(E=!1);E&&(null==B[d.attr("data-form-name")]?B[d.attr("data-form-name")]=p:B[d.attr("data-form-name")]=B[d.attr("data-form-name")]+";"+p)});B.DivisionId=f();B.PageURL=window.location.href;B.Breadcrumb=a();if("Y"===e("#eloquaYn").val())B.InquiryType=e("#inquiryType").val();else{var m=e("#inquiryType").val();
154"SalesInquiry"===m||"ContentInquiry"===m?B.InquiryType="Inquiry":"Subscription"===m?B.InquiryType="Subscription":"EBC"===m?B.InquiryType="EBC SignUp":-1<m.indexOf("ConfigurationRequest")?B.InquiryType=m.replace("ConfigurationRequest","DemoRequest"):B.InquiryType=e("#inquiryType").val()}B.Subsidiary=e("#Subsidiary").val();null!=B.OptIn&&(B.Optin=B.OptIn,delete B.OptIn);"undefined"!==typeof conRecaptcha&&null!=conRecaptcha&&(m=grecaptcha.getResponse(conRecaptcha),B["g-recaptcha-response"]=m);return B}
155function f(){var B={},m={Mobile:"IM",Computing:"IM",Displays:"VD EBT","Home Appliance":"DA",Climate:"SEACE",Memory:"Memory",Healthcare:"Healthcare",Networks:"NW",Compressor:"Compressor"};z.find('input[data-form-name\x3d"ProductSolution"]:checked').each(function(){var E=e(this);B[m[E.attr("data-orignal")]]=m[E.attr("data-orignal")]});return Object.keys(B).join(";")}function a(){var B=[];e(".nv-g-breadcrumb .breadcrumb__text-desktop").each(function(m,E){B.push(e(E).text())});return B.join("\x3e")}function g(){var B=
156"/aemapi/v6/business/common/contactus",m=k();m.grecaptcha="grecaptcha";"Y"===e("#eloquaYn").val()?m.LeadSource="Eloqua_Web Sales Inquiry":m.LeadSource="";m.CountryCode=H;if("undefined"===typeof conRecaptcha||null==conRecaptcha||"Y"===e("#captchaOptionFlag").val())B="/aemapi/v6/business/common/directcontactus";_satellite.setVar("common_value","contact mail popup:request a call back:submit");_satellite.track("common_dc");e.ajax({type:"post",url:B,data:m,dataType:"json",success:function(E){if("200"==
157E.response.statusCode){z.find(".invalid-notice").hide();var d=e("#fn06_headlineText").val();E=e("#fn06_description").val();e("#fn06_headlineHeadingLevel").val();if(null==d||""===d)d=Granite.I18n.get("Thank you!");if(null==E||""===E)E=Granite.I18n.get("Your enquiry has been successfully submitted. We will get back to you shortly.");d='\x3cp class\x3d"layer-popup__title"\x3e'+d+"\x3c/p\x3e";e(".thank-you-popup .layer-popup__title").replaceWith(d);e(".thank-you-popup .thank-you-popup__description").text(E);
158E=window.sg.components.fn06ContactMailForm.selector.setFocus;window.sg.components.fn06ContactMailForm.closePopup();window.sg.components.thankYouPopup.activePopup(E)}else"undefined"!==typeof conRecaptcha&&null!=conRecaptcha&&(grecaptcha.reset(conRecaptcha),window.sg.components.fn06ContactMailForm.recatchaHiddenProperty(),z.find(".invalid-notice").show(),v())},erorr:function(E){console.log(E)}})}function c(){z.find('input[type\x3d"text"]').each(function(B,m){e(m).val("");e(m).closest(".text-field-v2").removeClass("active").removeClass("delete").removeClass("error");
159e(m).removeAttr("aria-describedby");e(m).closest(".text-field-v2").find(".text-field-v2__text.error").removeAttr("id")});z.find("select").each(function(B,m){B=e(m).closest(".menu--text-field");0<B.length&&(e(m).val(""),B.removeClass("selected"),B.find(".menu__list-option-wrap.active").removeClass("active"),B.find(".menu__select-field").removeAttr("aria-describedby"),B.find(".menu--text-field__error").removeAttr("id").removeAttr("aria-hidden"),B.find(".menu__select").attr("aria-labelledby",B.closest(".menu--text-field").find("p").attr("id")),
160B.find(".text-field--required-text").removeAttr("aria-hidden"))});z.find(".menu__select-field-text").text("");z.find("textarea").each(function(B,m){e(m).val("");e(m).closest(".text-field-v2").removeClass("active").removeClass("delete").removeClass("error")});
160z.find("fieldset legend span").text("* "+Granite.I18n.get("Required"));z.find('input[type\x3d"checkbox"]:checked').each(function(B,m){e(m).prop("checked",!1)});z.find('input[type\x3d"checkbox"]:checked, input[type\x3d"radio"]:checked').each(function(B,
161m){e(m).prop("checked",!1)});z.find(".field--checkbox-list-wrap, .field--radio-list-wrap, .menu--text-field, .field--checkbox-wrap, .field--radio-wrap").removeClass("active").removeClass("delete").removeClass("error");z.find(".invalid-notice").hide()}function h(){var B=z.find(".append-from-data");B.html("");for(var m=k(),E=$jscomp.makeIterator(Object.keys(m)),d=E.next();!d.done;d=E.next())d=d.value,B.append(e("\x3cinput/\x3e",{type:"hidden",name:d,value:m[d]}));_satellite.setVar("common_value","contact mail popup:request a call back:submit");
162_satellite.track("common_dc");B=z.find("form[name\x3dcontact-mail-form-popup__form]").serialize();e.ajax({type:"post",url:e("#eloquaPostUrl").val(),data:B,success:function(p){z.find(".invalid-notice").hide();var q=e("#fn06_headlineText").val();p=e("#fn06_description").val();e("#fn06_headlineHeadingLevel").val();if(null==q||""===q)q=Granite.I18n.get("Thank you!");if(null==p||""===p)p=Granite.I18n.get("Your enquiry has been successfully submitted. We will get back to you shortly.");q='\x3cp class\x3d"layer-popup__title"\x3e'+
163q+"\x3c/p\x3e";e(".thank-you-popup .layer-popup__title").replaceWith(q);e(".thank-you-popup .thank-you-popup__description").text(p);p=window.sg.components.fn06ContactMailForm.selector.setFocus;window.sg.components.fn06ContactMailForm.closePopup();window.sg.components.thankYouPopup.activePopup(p)}})}function v(){window.sg.components.fn06ContactMailForm.reCaptchaMate()}var z=e(".contact-mail-form-popup .contact-mail-form-popup__contents"),H=e("#siteCode").val(),w="";"de"===H&&x();e(".contact-mail-form-popup .contact-mail-form-popup__contents .cta--contained").on("click",
164function(){u()?"Y"===e("#eloquaYn").val()&&""!==e("#eloquaPostUrl").val()?h():g():(window.sg.components.fn06ContactMailForm.requiredCheck(),z.find(".text-field-v2.error, .checkbox--list .field--checkbox-list-wrap.error, .field--radio .field--radio-list-wrap.error, .field--checkbox .field--checkbox-wrap.error, .menu--text-field.error").eq(0).find("input, textarea, button").eq(0).focus())});mailformPopup={showPopup:function(B,m){if(!(1>e(".contact-mail-form-popup .layer-popup").length)){c();if(-1<window.location.href.indexOf("/business/watches/")||
165-1<window.location.href.indexOf("/business/tablets/")||-1<window.location.href.indexOf("/business/smartphones/")||-1<window.location.href.indexOf("/business/rugged/")||-1<window.location.href.indexOf("/business/rings/")||-1<window.location.href.indexOf("/business/mobile-solutions/")||-1<window.location.href.indexOf("/business/mobile-accessories/")||-1<window.location.href.indexOf("/business/mobile/")||-1<window.location.href.indexOf("/business/enterprise-edition/")||-1<window.location.href.indexOf("/business/audio-sound/"))w=
166"Mobile";else if(-1<window.location.href.indexOf("/business/memory-storage/"))w="Memory";else if(-1<window.location.href.indexOf("/business/washers-and-dryers/")||-1<window.location.href.indexOf("/business/vacuum-cleaners/")||-1<window.location.href.indexOf("/business/refrigerators/")||-1<window.location.href.indexOf("/business/microwave-ovens/")||-1<window.location.href.indexOf("/business/laundry/")||-1<window.location.href.indexOf("/business/home-appliances/")||-1<window.location.href.indexOf("/business/home-appliance-accessories/")||
167-1<window.location.href.indexOf("/business/dishwashers/")||-1<window.location.href.indexOf("/business/cooking-appliances/")||-1<window.location.href.indexOf("/business/bespoke/")||-1<window.location.href.indexOf("/business/air-purifiers/")||-1<window.location.href.indexOf("/business/air-conditioner-solutions/")||-1<window.location.href.indexOf("/business/air-care/"))w="Home Appliance";else if(-1<window.location.href.indexOf("/business/tvs/")||-1<window.location.href.indexOf("/business/tv-accessories/")||
168-1<window.location.href.indexOf("/business/television/")||-1<window.location.href.indexOf("/business/smart-signage/")||-1<window.location.href.indexOf("/business/projectors/")||-1<window.location.href.indexOf("/business/projector-accessories/")||-1<window.location.href.indexOf("/business/projector-accessories/")||-1<window.location.href.indexOf("/business/monitors/")||-1<window.location.href.indexOf("/business/lifestyle-tvs/")||-1<window.location.href.indexOf("/business/led-signage/")||-1<window.location.href.indexOf("/business/flip-displays/")||
169-1<window.location.href.indexOf("/business/display-solutions/")||-1<window.location.href.indexOf("/business/displays/")||-1<window.location.href.indexOf("/business/display-accessories/")||-1<window.location.href.indexOf("/business/display/")||-1<window.location.href.indexOf("/business/commercial-tvs/")||-1<window.location.href.indexOf("/business/business-tvs/")||-1<window.location.href.indexOf("/business/audio-devices/")||-1<window.location.href.indexOf("/business/audio-accessories/")||-1<window.location.href.indexOf("/business/smart-led-signage/"))w=
170"Displays";else if(-1<window.location.href.indexOf("/business/pc-accessories/")||-1<window.location.href.indexOf("/business/pc/")||-1<window.location.href.indexOf("/business/computers/")||-1<window.location.href.indexOf("/business/computer-accessories/"))w="Computing";else if(-1<window.location.href.indexOf("/business/system-air-conditioner-solutions/")||-1<window.location.href.indexOf("/business/system-air-conditioners/")||-1<window.location.href.indexOf("/business/climate/")||-1<window.location.href.indexOf("/business/air-conditioners/"))w=
171"Climate";e(".contact-mail-form-popup .contact-mail-form-popup__contents").find(".contact-mail-form-popup__form-field.is-required").find("input[data-form-name\x3d'ProductSolution']").each(function(){e(this);console.log(e(this).attr("data-orignal")+"\x3d"+e(this).val());w==e(this).val()&&(e(this).prop("checked",!0),console.log("productInterests equals!!!"))});null==B?window.sg.components.fn06ContactMailForm.activePopup(e(":focus")):window.sg.components.fn06ContactMailForm.activePopup(B);"PD"===m&&
172(z.find(".cta--contained").attr("an-tr","contact mail form_popup type|cta"),z.find(".cta--contained").attr("an-la","make a request:send"));"undefined"!==typeof conRecaptcha&&null!=conRecaptcha&&(grecaptcha.reset(conRecaptcha),window.sg.components.fn06ContactMailForm.recatchaHiddenProperty(),v())}}}})(window.jQuery,window.document);
173(function(){function e(){b(k.section).target.forEach(function(a){new f(a)})}var b=window.sg.common.$q,x=window.sg.common.libs,u=window.sg.common.utils,t=window.sg.common.utils.setMobileFocusLoop,n=window.sg.common.utils.removeMobileFocusLoop,k={section:".thank-you-popup"},f=function(a){this.selector={section:k.section,closeCta:".layer-popup__close",cancelCta:".cta--closed"};this.ele={section:b(a),window:b(window)};this.handler={focusLock:this.focusLock.bind(this),activePopup:this.activePopup.bind(this),
174closePopup:this.closePopup.bind(this)};f.instances.set(a,this);this.init()};f.prototype.init=function(){this.setProperty();this.bindEvents()};f.prototype.reInit=function(){this.setProperty();this.bindEvents()};f.prototype.setProperty=function(){this.ele.closeCta=this.ele.section.find(this.selector.closeCta);this.ele.cancelCta=this.ele.section.find(this.selector.cancelCta);this.activeCta=null};f.prototype.bindEvents=function(){this.ele.closeCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);
175this.ele.cancelCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup)};f.prototype.focusLock=function(a){if(a.keyCode===x.keyCode.TAB_KEY){var g=this.ele.section.find("a, button").target[0];!1===a.shiftKey&&this.ele.section.find(this.selector.closeCta).target[0]===document.activeElement?(a.preventDefault(),g.focus()):!0===a.shiftKey&&g===document.activeElement?(a.preventDefault(),this.ele.section.find(this.selector.closeCta).focus()):!0===a.shiftKey&&this.ele.section.target[0]===
176document.activeElement&&(a.preventDefault(),this.ele.section.find(this.selector.closeCta).focus())}};f.prototype.activePopup=function(a){a&&(this.activeCta=b(a));u.hiddenScroll();this.ele.section.css({display:"block"});this.ele.window.off("keydown",this.handler.focusLock).on("keydown",this.handler.focusLock);this.ele.section.find("a, button").target[0].focus();0>=document.querySelectorAll("[data-aria-hidden]").length&&t(this.ele.section.target[0]);u.changeActiveReCaptchaProperty()};f.prototype.closePopup=
177function(a){void 0!==a&&a.preventDefault();0<document.querySelectorAll("[data-aria-hidden]").length&&n();u.changeInActiveReCaptchaProperty();null!==this.activeCta&&this.activeCta.focus();u.visibleScroll();this.ele.section.css({display:"none"});this.ele.window.off("keydown",this.handler.focusLock);this.activeCta=null};f.instances=new WeakMap;window.sg.components.thankYouPopup={init:e,reInit:function(){b(k.section).target.forEach(function(a){f.instances.has(a)?f.instances.get(a).reInit():new f(a)})},
178activePopup:function(a){b(k.section).target.forEach(function(g){f.instances.has(g)&&f.instances.get(g).activePopup(a)})},closePopup:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&f.instances.get(a).closePopup()})},reCaptchaHidden:function(){u.changeActiveReCaptchaProperty()}};b.ready(e)})();
179(function(){var e,b;function x(){c(w.section+" "+w.layerPopup).target.forEach(function(m){h.init(m);e=c(m);b=e.find(w.checkRequired);B=e.find(w.checkCareList);t()})}function u(){var m=e.find(w.checkRequired+":checked").target.length;m+=e.find('.hubble-care-popup__smc-inner .checkbox-radio input[type\x3d"radio"]:checked').target.length;var E=b.target.length+(0<B.target.length?1:0),d=e.find(".cta--contained");m===E?(d.removeClass("cta--disabled"),d.attr("aria-disabled",!1),d.attr("aria-hidden",!1),
180d.attr("href","javascript:void(0)")):(d.addClass("cta--disabled"),d.attr("aria-disabled",!0),d.attr("aria-hidden",!0),d.removeAttr("href"))}function t(){var m=e.find(w.close),E=e.find(".hubble-care-popup__button-item:first-of-type");b.off("change").on("change",function(){u()});B.off("change").on("change",function(d){d=B.target.indexOf(d.currentTarget);var p=e.find(".hubble-care-popup__info");p.hide();p.eq(d).show();u()});m.off("click").on("click",n);E.off("click").on("click",n);m=document.querySelector(w.section+
181" "+w.close);m.removeEventListener("keydown",f);m.addEventListener("keydown",f);m=document.querySelector(w.section+" "+w.layerPopup);m.removeEventListener("keydown",k);m.addEventListener("keydown",k)}function n(m){m=void 0===m?null:m;document.querySelector(w.section).removeAttribute("style");var E=document.querySelector('.pd-buying-tool [data-target-popup\x3d"hubbleCarePopup"]');!0===m?E.checked=!0:!1===m&&(E.checked=!1);v.popupControl.close(!0);v.visibleScroll();0<document.querySelectorAll("[data-aria-hidden]").length&&
182v.removeMobileFocusLoop();"ios"===v.getMobileOS()?setTimeout(function(){return a()},200):a()}function k(m){if(m.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===m.keyCode){var E=z.querySelectorAll('a, button, input
182:not([type\x3d"hidden"]), textarea')[0];E&&m.target===E&&(m.preventDefault(),document.querySelector(w.section+" "+w.close).focus());var d=E.getAttribute("type");E=E.getAttribute("name");"radio"===d&&E===m.target.getAttribute("name")&&(m.preventDefault(),document.querySelector(w.section+
183" "+w.close).focus())}}function f(m){m.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==m.keyCode||(m.preventDefault(),(m=z.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&m.focus())}function a(){H&&H instanceof Element?H.focus():v.buyingFocus("hubbleCarePopup")}function g(){v.hiddenScroll();v.popupControl.open(n);0===document.querySelectorAll("[data-aria-hidden]").length&&v.setMobileFocusLoop(z)}var c=window.sg.common.$q,h=window.sg.common.layerPopupMaxHeight,v=window.sg.common.utils,
184z=null,H=null,w={section:".hubble-care-popup",layerPopup:".layer-popup",close:".hubble-care-popup__close",checkRequired:'.is-check-required input[type\x3d"checkbox"]',checkCareList:'.hubble-care-popup__smc-inner .checkbox-radio input[type\x3d"radio"]'};var B=b=e=null;c.ready(x);window.sg.components.hubbleCarePopup={init:x,showPopup:function(m){H=void 0===m?null:m;z=document.querySelector(w.section);z.style.display="block";g();(m=z.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&
185m.focus();h.reInit(document.querySelector(w.section+" "+w.layerPopup));c('.hubble-care-popup__check-list-wrap input[type\x3d"checkbox"]:checked').target.forEach(function(E){E.checked=!1});u()},openAlert:function(m){c(m).show();c(m).focus();g()},closePopup:n}})();
186(function(){function e(c){c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode&&c.target===document.querySelector(k.section+" "+k.layerPopup)&&(c.preventDefault(),document.querySelector(k.section+" "+k.close).focus())}function b(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),document.querySelector(k.section+" "+k.layerPopup).focus())}function x(){n.popupControl.close();n.visibleScroll();f.section.hide()}var u=window.sg.common.$q,t=window.sg.common.layerPopupMaxHeight,
187n=window.sg.common.utils,k={section:".add-ons-evoucher-popup",layerPopup:".layer-popup",scrollPopup:".add-ons-evoucher-popup .layer-popup",close:".layer-popup__close",closeCta:".add-ons-evoucher-popup__button-item .cta"},f={window:null,section:null},a=function(){f.section=u(k.section);f.section.find(k.close).off("click").on("click",x);f.section.find(k.closeCta).off("click").on("click",x);var c=document.querySelector(k.section+" "+k.close);c.removeEventListener("keydown",b);c.addEventListener("keydown",
188b);c=document.querySelector(k.section+" "+k.layerPopup);c.removeEventListener("keydown",e);c.addEventListener("keydown",e)},g=function(){f.window=u(window);f.section=u(k.section);f.section.target.length&&(u(k.scrollPopup).target.forEach(function(c){t.init(u(c).target[0])}),a())};u.ready(g);window.sg.components.notifyMePopup={init:g,reInit:function(){u(k.scrollPopup).target.forEach(function(c){t.reInit(u(c).target[0])});a()},showPopup:function(){var c=document.querySelector(k.section+" "+k.layerPopup);
189c.setAttribute("tabindex",0);c.focus();n.popupControl.open(x);n.hiddenScroll();f.section.show();t.reInit(f.section.target[0])},closePopup:x}})();
190(function(){function e(){b(t.section).target.forEach(function(k){n.instances.has(k)||new n(k)})}var b=window.sg.common.$q,x=window.sg.common.layerPopupMaxHeight,u=window.sg.common.utils,t={section:".assured-buyback-popup"},n=function(k){var f=this;this.selector={section:t.section,showBtn:".assured-buyback-popup__more-btn",moreBox:".assured-buyback-popup__more-box",moreContent:".assured-buyback-popup__more-content",layerPopup:".layer-popup",close:".assured-buyback-popup__close",icon:".assured-buyback-popup__more-btn .icon"};
191this.ele={section:b(k),showBtn:null,moreBox:null,moreContent:null,close:null};this.handler={clickHandler:function(){f.ele.section.find(f.selector.moreContent).finish();f.ele.moreBox.hasClass("is-opened")?f.lessMore():f.showMore()},keydownLayer:function(a){a.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===a.keyCode&&a.target===document.querySelector(f.selector.section+" "+f.selector.layerPopup)&&(a.preventDefault(),document.querySelector(f.selector.section+" "+f.selector.close).focus())},keydownCloseBtn:function(a){a.shiftKey||
192window.sg.common.constants.KEY_CODE.TAB!==a.keyCode||(a.preventDefault(),document.querySelector(f.selector.section+" "+f.selector.layerPopup).focus())},originFocus:function(){document.querySelector('.pd-buying-tool [data-target-popup\x3d"assuredBuybackPopup"]').focus()},utilsShow:function(){var a=document.querySelector(f.selector.section+" "+f.selector.layerPopup);a.setAttribute("tabindex",0);a.focus();u.popupControl.open(f.handler.closePopup);u.hiddenScroll()},utilsHide:function(){u.popupControl.close();
193u.visibleScroll()},showPopup:function(){f.ele.section.show();f.handler.utilsShow();x.reInit(f.ele.layerPopup.target[0])},closePopup:function(){f.handler.utilsHide();f.ele.section.hide();f.handler.originFocus()}};n.instances.set(k,this);this.init()};n.prototype.init=function(){this.setProperty();this.bindEvents()};n.prototype.reInit=function(){this.setProperty();this.bindEvents()};n.prototype.setProperty=function(){this.ele.showBtn=this.ele.section.find(this.selector.showBtn);this.ele.moreBox=this.ele.section.find(this.selector.moreBox);
194this.ele.layerPopup=this.ele.section.find(this.selector.layerPopup);this.ele.close=this.ele.section.find(this.selector.close);x.init(this.ele.layerPopup.target[0])};n.prototype.showMore=function(){var k=this.ele.section.find(".layer-popup__contents"),f=this.ele.section.find(this.selector.moreContent);f.show();this.ele.section.find(this.selector.moreBox).addClass("is-opened");this.ele.showBtn.find("span").text(JSON.parse(this.ele.section.target[0].dataset.globalText).less);x.setMax(this.ele.layerPopup.target[0]);
195this.ele.section.find(this.selector.moreBox).find(this.selector.icon).css({transform:"rotate(180deg)"});f.slideDown(300);window.sg.common.scrollbar.scrollTo(k.target[0],0,1E4)};n.prototype.lessMore=function(){var k=this,f=this.ele.section.find(this.selector.moreContent);this.ele.section.find(this.selector.moreBox).removeClass("is-opened");this.ele.showBtn.find("span").text(JSON.parse(this.ele.section.target[0].dataset.globalText).show);this.ele.section.find(this.selector.moreBox).find(this.selector.icon).css({transform:"rotate(0deg)"});
196f.slideUp(300,function(){f.hide();x.setMax(k.ele.layerPopup.target[0])})};n.prototype.bindEvents=function(){this.ele.showBtn.off("click").on("click",this.handler.clickHandler);this.ele.close.off();this.ele.close.on("click",this.handler.closePopup);
196this.ele.close.on("keydown",this.handler.keydownCloseBtn);this.ele.layerPopup.on("keydown",this.handler.keydownLayer)};n.prototype.showPopup=function(){this.handler.showPopup()};n.prototype.closePopup=function(){this.handler.closePopup()};n.instances=new WeakMap;
197window.sg.components.assuredBuybackPopup={init:e,reInit:function(){b(t.section).target.forEach(function(k){n.instances.has(k)?n.instances.get(k).reInit():new n(k)})},showPopup:function(){b(t.section).target.forEach(function(k){n.instances.has(k)?n.instances.get(k).showPopup():(new n(k)).showPopup()})},closePopup:function(){b(t.section).target.forEach(function(k){n.instances.has(k)?n.instances.get(k).closePopup():(new n(k)).closePopup()})}};b.ready(e)})();
198(function(){function e(a){a.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===a.keyCode&&a.target===document.querySelector(f.section+" "+f.layerPopup)&&(a.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}function b(a){a.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==a.keyCode||(a.preventDefault(),document.querySelector(f.section+" "+f.layerPopup).focus())}function x(){n.popupControl.close();n.visibleScroll();k.el.removeAttribute("style");document.querySelector(".pdd-buying-tool")?
199document.querySelector('.pdd-buying-tool [data-target-popup\x3d"cancelReturnPolicyPopup"]').focus():document.querySelector('.pd-buying-tool [data-target-popup\x3d"cancelReturnPolicyPopup"]').focus()}var u=window.sg.common.$q,t=window.sg.common.layerPopupMaxHeight,n=window.sg.common.utils,k={},f={section:".cancel-return-policy-popup",layerPopup:".layer-popup",close:".layer-popup__close"};window.sg.components.cancelReturnPolicyPopup={showPopup:function(){k.el.style.display="block";var a=document.querySelector(f.section+
200" "+f.layerPopup);a.setAttribute("tabindex",0);a.focus();n.popupControl.open(x);n.hiddenScroll();t.reInit(k.layerEl)}};u.ready(function(){var a=document.querySelector(".cancel-return-policy-popup");a&&(k={el:a,layerEl:a.querySelector(".layer-popup"),closeEl:a.querySelector(".layer-popup__close")},t.init(k.layerEl),k.closeEl.addEventListener("click",x),a=document.querySelector(f.section+" "+f.close),a.removeEventListener("keydown",b),a.addEventListener("keydown",b),a=document.querySelector(f.section+
201" "+f.layerPopup),a.removeEventListener("keydown",e),a.addEventListener("keydown",e))})})();
202(function(){function e(h){if(h.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===h.keyCode){var v=a.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];v&&h.target===v&&(h.preventDefault(),document.querySelector(g.section+" "+g.close).focus())}}function b(h){h.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==h.keyCode||(h.preventDefault(),(h=a.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&h.focus())}function x(){c.instances.get(document.querySelector(".shop-combo-popup")).close()}
203var u=window.sg.common.$q,t=window.sg.common.constants.BREAKPOINTS,n=window.sg.common.utils,k=window.sg.common.layerPopupMaxHeight,f=null,a=null,g={section:".shop-combo-popup",layerPopup:".layer-popup",close:".layer-popup__close"},c=function(h){this.selector={section:g.section,addBtn:".shop-combo-popup__list-btn",itemWrap:".shop-combo-popup__list-item-wrap",sameHeightCont:".shop-combo-popup__list-cont",sameHeightTitle:".shop-combo-popup__list-title",sameHeightEnergy:".shop-combo-popup__list-energy",
204sameHeightInfo:".shop-combo-popup__list-info-wrap",shopListIn:".shop-combo-popup__list-in \x3e ul \x3e li",layerFixedWrap:".layer__fixed-wrap",optionCount:".s-bundle-option-count",closeCta:".shop-combo-popup__btn-close",confirmCta:".shop-combo-popup__btn-confirm",resetBtn:".cta-reset",closeBtn:".layer-popup__close"};this.ele={window:u(window),section:u(h)};this.setProperty();this.handler={resize:this.resize.bind(this)};c.instances.set(h,this);this.init()};c.prototype.setProperty=function(){this.ele.addBtn=
205this.ele.section.find(this.selector.addBtn);this.ele.itemWrap=this.ele.section.find(this.selector.itemWrap);this.ele.sameHeightCont=this.ele.section.find(this.selector.sameHeightCont);this.ele.sameHeightTitle=this.ele.section.find(this.selector.sameHeightTitle);this.ele.sameHeightEnergy=this.ele.section.find(this.selector.sameHeightEnergy);this.ele.sameHeightInfo=this.ele.section.find(this.selector.sameHeightInfo);this.ele.shopListIn=this.ele.section.find(this.selector.shopListIn);this.ele.layerFixedWrap=
206this.ele.section.find(this.selector.layerFixedWrap);this.ele.optionCount=this.ele.section.find(this.selector.optionCount);this.ele.closeCta=this.ele.section.find(this.selector.closeCta);this.ele.confirmCta=this.ele.section.find(this.selector.confirmCta);this.ele.resetBtn=this.ele.section.find(this.selector.resetBtn);this.ele.closeBtn=this.ele.section.find(this.selector.closeBtn)};c.prototype.init=function(){this.bindEvents();this.setSameHeight()};c.prototype.reInit=function(){this.setProperty();this.bindEvents();
207this.setSameHeight()};c.prototype.resize=function(){this.setSameHeight()};c.prototype.bindEvents=function(){this.ele.addBtn.off("click").on("click",this.toggleSelect.bind(this));this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.ele.closeCta.on("click",this.close.bind(this));this.ele.closeBtn.on("click",this.close.bind(this));var h=document.querySelector(g.section+" "+g.close);h.removeEventListener("keydown",b);h.addEventListener("keydown",b);h=document.querySelector(g.section+
208" "+g.layerPopup);h.removeEventListener("keydown",e);h.addEventListener("keydown",e)};c.prototype.setSameHeight=function(){function h(H){H=u(H);[H.find(v.sameHeightTitle),H.find(v.sameHeightEnergy),H.find(v.sameHeightCont),H.find(v.sameHeightInfo)].forEac
208h(function(w){var B=0;w.target.forEach(function(m){m=m.getBoundingClientRect().height;B<m&&(B=m)});w.css({height:B+"px"})})}this.ele.section.find(this.selector.sameHeightTitle+", "+this.selector.sameHeightEnergy+", "+this.selector.sameHeightCont+
209", "+this.selector.sameHeightInfo).css({height:""});if(!(t.MOBILE>=n.getViewPort().width)){var v=this.selector,z=[];this.ele.itemWrap.target.forEach(function(H,w){z.push(H);2===w%3&&(h(z),z=[])});1<z.length&&h(z);k.setMax(this.ele.section.find(".layer-popup").target[0])}};c.prototype.toggleSelect=function(h){h=u(h.currentTarget).closest(this.selector.itemWrap).parent();var v=h.find(".shop-combo-popup__list-btn .cta"),z=v.find("span"),H=JSON.parse(z.target[0].dataset.globalText);h.hasClass("is-selected")?
210(h.removeClass("is-selected"),v.removeClass("cta--contained"),v.removeClass("cta--emphasis"),v.addClass("cta--outlined"),v.addClass("cta--black"),z.text(H.unSelected),v.attr("title",H.unSelected)):(h.addClass("is-selected"),v.removeClass("cta--outlined"),v.removeClass("cta--black"),v.addClass("cta--contained"),v.addClass("cta--emphasis"),z.text(H.selected),v.attr("title",H.selected));this.activeInfoArea()};c.prototype.activeInfoArea=function(){var h=this.ele.shopListIn.target.filter(function(v){return u(v).hasClass("is-selected")});
2110<h.length?(this.ele.layerFixedWrap.show(),this.ele.confirmCta.removeClass("cta--disabled")):(this.ele.layerFixedWrap.hide(),this.ele.confirmCta.addClass("cta--disabled"));this.ele.optionCount.text(h.length);this.setScrollMax()};c.prototype.resetItemInfo=function(){var h=this;this.ele.optionCount.text(0);this.ele.layerFixedWrap.hide();this.ele.confirmCta.addClass("cta--disabled");this.ele.shopListIn.target.forEach(function(v){v=u(v);if(v.hasClass("is-selected")){var z=v.find(h.selector.addBtn+" .cta"),
212H=z.find("span"),w=JSON.parse(H.target[0].dataset.globalText);v.removeClass("is-selected");z.removeClass("cta--contained");z.removeClass("cta--emphasis");z.addClass("cta--outlined");z.addClass("cta--black");z.attr("title",w.unSelected);H.text(w.unSelected)}});this.setScrollMax()};c.prototype.setScrollMax=function(){k.setMax(this.ele.section.find(".layer-popup").target[0])};c.prototype.close=function(){this.ele.section.target[0].removeAttribute("style");n.popupControl.close();n.visibleScroll();n.removeMobileFocusLoop();
213f&&f instanceof Element?f.focus():n.buyingFocus("shopComboPopup")};c.instances=new WeakMap;window.sg.components.shopComboPopup={reInit:function(){u(g.section).target.forEach(function(h){c.instances.has(h)&&c.instances.get(h).reInit();k.reInit(h.querySelector(".layer-popup"))})},showPopup:function(h){f=void 0===h?null:h;a=document.querySelector(".shop-combo-popup");a.style.display="block";c.instances.get(document.querySelector(".shop-combo-popup")).resize();k.reInit(document.querySelector(".shop-combo-popup .layer-popup"));
214n.popupControl.open(x);n.hiddenScroll();n.setMobileFocusLoop(a);(h=a.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&h.focus()},closePopup:x,resetItemInfo:function(){u(g.section).target.forEach(function(h){c.instances.has(h)&&c.instances.get(h).resetItemInfo()})}};u.ready(function(){u(g.section).target.forEach(function(h){c.instances.has(h)||new c(h);k.init(h.querySelector(".layer-popup"))})})})();
215(function(e,b){function x(q){return-1<q.indexOf("http:")||""===q||-1<q.indexOf("//stg-images.samsung.com/")||-1<q.indexOf("//images.samsung.com/")||-1<q.indexOf("//image.samsung.com/")?q:g+q}function u(){var q=[];e(".shop-combo-popup .shop-combo-popup__list-in .is-selected").each(function(){var l=e(this).attr("data-index");p[l].idx=l;q.push(p[l])});return q}function t(){var q=e(".shop-combo-popup"),l=q.find(".shop-combo-popup__list-in .is-selected");q=q.find(".shop-combo-popup__summary-option-total");
216var y=e(".shop-combo-popup__summary-save-original del"),r=e(".shop-combo-popup__summary-save-price"),C=e(".shop-combo-popup__summary-save-original"),F=0,I=0,L=0;l.each(function(){var J=e(this).attr("data-index");null!=p[J].sale_price?F+=Number(p[J].sale_price.value):null!=p[J].msrp_price&&(F+=Number(p[J].msrp_price.value));null!=p[J].msrp_price&&(I+=Number(p[J].msrp_price.value))});L=I-F;0<L?(y.html(currencyComma(I,a)),r.html(Granite.I18n.get("Save {0}",currencyComma(L,a))),C.show()):(y.html(""),
217r.html(""),C.hide());q.find("strong").html(currencyComma(F,a))}
217function n(){var q=e(".shop-combo-popup"),l=q.find(".is-selected"),y=l.find(".cta");q.find(".s-bundle-option-count").html(0);q.find(".layer__fixed-wrap").hide();window.sg.common.layerPopupMaxHeight.setMax(b.querySelector(".shop-combo-popup .layer-popup"));q.find(".shop-combo-popup__btn-confirm").addClass("cta--disabled");y.removeClass("cta--contained");y.removeClass("cta--emphasis");y.addClass("cta--outlined");y.addClass("cta--black");
218y.attr("title",m);y.find("span").text(m);l.removeClass("is-selected")}window.sg.components.dynamic=window.sg.components.dynamic||{};window.sg.components.dynamic.comboPopup=window.sg.components.dynamic.comboPopup||{};var k=window.sg.components.dynamic,f=e("#siteCode").val(),a=e("#priceCurrency").val(),g=e("#scene7domain").val(),c=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),h=Granite.I18n.get("Out Of Stock"),v=Granite.I18n.get("Open in a new window"),z=Granite.I18n.get("Product Fiche"),
219H=Granite.I18n.get("From"),w=Granite.I18n.get("Original Price"),B=Granite.I18n.get("Item added"),m=Granite.I18n.get("Add Item"),E=Granite.I18n.get("You're sure you want to delete this item?"),d="nl"===f||"be"===f||"be_fr"===f,p=[];e(b).on("click",".shop-combo-popup .shop-combo-popup__list-btn a",function(){t()});e(b).on("click",".shop-combo-popup .cta-reset",function(){confirmPopup(E,"combo","shopComboPopupReset")});e(b).on("click","#shopComboPopupReset",function(){n()});e(b).on("click",".shop-combo-popup .shop-combo-popup__btn-confirm:not(.cta--disabled)",
220function(){k.DetailAfterEvent.offerAndAddonsDiscount(u(),"combo");window.sg.components.shopComboPopup.closePopup()});k.comboPopup.comboPopupGrid=function(q,l){var y="";null==l&&(l=[]);for(var r in q)if(null!=q[r].ctaType&&"noorder"!==q[r].ctaType.toLowerCase()){var C=q[r];var F="",I="",L="",J=null;null!=C.msrp_price&&null!=C.msrp_price.value&&(J=C.msrp_price.value,I=C.msrp_price.formatted_value,d||!I)&&(I=currencyComma(J,a));null!=C.sale_price&&null!=C.sale_price.value&&(J!==C.sale_price.value&&(L=
221I,F=("ae"===f||"ae_ar"===f||null!=C.type&&-1<"rebate,percentage".indexOf(C.type.toLowerCase()))&&null!=C.formatted_value?C.formatted_value:currencyComma(J-C.sale_price.value,a),F=Granite.I18n.get("Save {0}",F)),J=C.sale_price.value,I=C.sale_price.formatted_value,d||!I)&&(I=currencyComma(J,a));C={saveText:F,formattedPrice:I,formattedDelPrice:L,price:J};if(null!=C.price){L="outofstock"===q[r].ctaType.toLowerCase();I=(F=-1<l.indexOf(r))?B:m;"pl"===f&&L?C=null:q[r].saveText=C.saveText||"";null==q[r].displayName&&
222(q[r].displayName="");L="\x3cli "+(L?' class\x3d"is-disabled"':F?' class\x3d"is-selected"':"")+' data-index\x3d"'+r+'"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-item-wrap"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"shop-combo-popup__list-item-disabled"\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-head"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-image"\x3e\n\t\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\t';J=
223q[r].thumbUrl;var P=q[r].thumbUrlAlt,G="";null!=J&&(G=-1<J.indexOf("shop.samsung.com")?'\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+J+'" data-mobile-src\x3d"'+J+'" alt\x3d"'+P+'"\x3e\n\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+J+'" data-mobile-src\x3d"'+J+'" alt\x3d"'+P+'"\x3e':'\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+(x(J)+'?$LazyLoad_Home_PNG$" data-mobile-src\x3d"')+(x(J)+
224'?$LazyLoad_Home_PNG$" alt\x3d"')+P+'"\x3e\n\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+(x(J)+'?$120_120_PNG$" data-mobile-src\x3d"')+(x(J)+'?$200_200_PNG$" alt\x3d"')+P+'"\x3e');L=L+G+';\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"shop-combo-popup__list-cont"\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-title"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cstrong\x3e'+
225q[r].displayName+"\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t";J=q[r].fmyChipList;P="";null!=J&&0<J.length&&"COLOR"===J[0].fmyChipType&&(P='\x3cdiv class\x3d"shop-combo-popup__list-color"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"shop-combo-popup__color-chip" style\x3d"background-color: '+J[0].fmyChipCode+'"\x3e'+J[0].fmyChipName+"\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e");L=L+P+"\n\t\t\t\t\t\t\t\t\t";J=q[r];P="";J.energyLabelGrade&&(P='\x3cdiv class\x3d"shop-combo-popup__list-energy"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-energy-text"\x3e\n\t\t\t\t\t\t'+
226(J.ficheFileUrl?'\x3ca href\x3d"'+J.ficheFileUrl+'" target\x3d"_blank" title\x3d"'+v+'" class\x3d"cta-text" an-tr\x3d"header(pim)_offer option:bundle offer:add-on -'+c+'-text-product fiche" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"product fiche"\x3e'+z+"\x3c/a\x3e":"")+"\n\t\t\t\t\t\t"+(J.energyFileUrl?'\x3ca class\x3d"badge '+J.energyLabelClass2+'" href\x3d"'+J.energyFileUrl+'" target\x3d"_blank" title\x3d"'+J.energyLabelGrade+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"badge__grade--with-text '+
227J.energyLabelClass1+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+J.energyLabelGrade+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\x3c/a\x3e":"")+"\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e");L=L+P+'\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-info-wrap"\x3e\n\t\t\t\t\t\t\t\t\t\t';J="";null!=C&&(J="",C.formattedDelPrice&&(J='\x3cspan class\x3d"shop-combo-popup__list-save-original"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+w+": \x3c/span\x3e\n\t\t\t\t\t\t"+
228(d||"de"===f?H+" ":"")+"\n\t\t\t\t\t\t\x3cdel\x3e"+C.formattedDelPrice+"\x3c/del\x3e\n\t\t\t\t\t\x3c/span\x3e"),P="",!d&&C.saveText&&(P='\x3cspan class\x3d"shop-combo-popup__list-save-price"\x3e'+C.saveText+"\x3c/span\x3e"),J='\x3cdiv class\x3d"shop-combo-popup__list-save"\x3e\n\t\t\t\t\t'+J+"\n\t\t\t\t\t"+P+'\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-price"\x3e\n\t\t\t\t\t\x3cem\x3e'+C.formattedPrice+"\x3c/em\x3e\n\t\t\t\t\x3c/div\x3e");y+=L+J+'\n\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"shop-combo-popup__list-btn"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3ca class\x3d"cta '+
229(F?"cta--contained cta--emphasis":"cta--outlined cta--black")+'" href\x3d"javascript:void(0)" title\x3d"'+
229I+'" data-modelcode\x3d"'+q[r].modelCode+'" data-modelname\x3d"'+q[r].modelName+'" \n\t\t\t\t\t\t\t\t\t\t an-tr\x3d"header(pim)_offer option:bundle offer:add-on -'+c+'-button-link" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"bundle offer:add-on:add item"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan data-global-text\x3d\'{\n\t\t\t\t\t\t\t\t\t\t\t\t"selected" : "'+B+'",\n\t\t\t\t\t\t\t\t\t\t\t\t"unSelected" : "'+
230m+"\"}'\x3e"+I+'\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\x3c/a\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\x3cspan class\x3d"shop-combo-popup__cta-disabled"\x3e\x3cspan\x3e'+h+'\x3c/span\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\n\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\x3c/svg\x3e\n\t\t\t\t\t\t\x3c/li\x3e'}}e(".shop-combo-popup .shop-combo-popup__list-in ul").html(y);
231p=q;window.sg.components.shopComboPopup.reInit();0<l.length?(t(),e(".shop-combo-popup .layer__fixed-wrap").show(),window.sg.common.layerPopupMaxHeight.setMax(b.querySelector(".shop-combo-popup .layer-popup")),e(".shop-combo-popup .shop-combo-popup__btn-confirm").removeClass("cta--disabled")):n()}})(window.jQuery,window.document);
232(function(){function e(c){c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode&&c.target===u(f.section).find(f.focusEl).target[0]&&(c.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}function b(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),u(f.section).find(f.focusEl).target[0].focus())}function x(){a.instances.get(document.querySelector(".confirm-popup")).close()}var u=window.sg.common.$q,t=window.sg.common.utils,n=window.sg.common.utils.setMobileFocusLoop,
233k=window.sg.common.utils.removeMobileFocusLoop,f={section:".confirm-popup",close:".confirm-popup__close",focusEl:'a:not([style*\x3d"display: none"]):not([style*\x3d"display:none"]), button:not([style*\x3d"display: none"]):not([style*\x3d"display:none"]), input'},a=function(c){this.els={el:c,popupConfirmCloseBtn:c.querySelector(".confirm-popup__close"),popupConfirmNoBtn:c.querySelector(".confirm-popup .confirm-popup__cta-wrap Button:first-of-type"),popupConfirmYesBtn:c.querySelector(".confirm-popup .confirm-popup__cta-wrap Button:last-of-type")};
234this.init()};a.prototype.init=function(){a.instances.get(this.els.el)||(a.instances.set(this.els.el,this),this.bindEvents())};a.prototype.bindEvents=function(){var c=this;this.els.popupConfirmCloseBtn.addEventListener("click",function(){c.close()});this.els.popupConfirmNoBtn.addEventListener("click",function(){c.close()});this.els.popupConfirmYesBtn.addEventListener("click",function(){c.close()});var h=document.querySelector(f.section+" "+f.close);h.removeEventListener("keydown",b);h.addEventListener("keydown",
235b);h=u(f.section).find(f.focusEl).target[0];h.removeEventListener("keydown",e);h.addEventListener("keydown",e)};a.prototype.close=function(){var c=u(".pd13-offers-product-card-list"),h=u(".pd12-product-finder");0<c.target.length||0<h.target.length?(c=u(".confirm-popup"),c.attr("data-aria-hidden")?(c.attr("aria-hidden","true"),[".pd-get-stock-alert-popup",".compare-popup"].forEach(function(v){"block"===u(v).css("display")&&(u(v).removeAttr("data-aria-hidden"),u(v).removeAttr("aria-hidden"))})):k()):
2360<document.querySelectorAll("[data-aria-hidden]").length&&k();this.els.el.style.display="none";t.popupControl.close();t.visibleScroll();c=window.navigator.userAgent.match(/(iPhone\sOS|iOS)\s([\d_]+)/);16.1<=(c?parseFloat(c[2].replace("_",".")):0)?setTimeout(function(){null!==window.sg.components.confirmPopup.popupCallCta&&(window.sg.components.confirmPopup.popupCallCta.focus(),window.sg.components.confirmPopup.popupCallCta=null)},200):null!==window.sg.components.confirmPopup.popupCallCta&&(window.sg.components.confirmPopup.popupCallCta.focus(),
237window.sg.components.confirmPopup.popupCallCta=null)};a.instances=new WeakMap;var g={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".confirm-popup"))).forEac
237h(function(c){a.instances.has(c)||new a(c)})},showPopup:function(c){c=void 0===c?null:c;document.querySelector(".confirm-popup").style.display="block";var h=window.navigator.userAgent.match(/(iPhone\sOS|iOS)\s([\d_]+)/);h=h?parseFloat(h[2].replace("_",".")):0;var v=u(".confirm-popup").find(f.focusEl).target[0];
23816.1<=h?(v.blur(),setTimeout(function(){v.focus()},200)):v.focus();h=u(f.section).find(f.focusEl).target[0];h.removeEventListener("keydown",e);h.addEventListener("keydown",e);t.popupControl.open(x);t.hiddenScroll();h=u(".pd13-offers-product-card-list");var z=u(".pd12-product-finder"),H=u(".confirm-popup");null!==window.sg.components.confirmPopup.popupCallCta&&(window.sg.components.confirmPopup.popupCallCta=null);null!==c&&(c instanceof Element?window.sg.components.confirmPopup.popupCallCta=c:c instanceof
239Object&&(window.sg.components.confirmPopup.popupCallCta=c[0]instanceof Element?c[0]:c.target[0]));0<h.target.length||0<z.target.length?H.attr("data-aria-hidden")?(H.attr("aria-hidden","false"),[".pd-get-stock-alert-popup",".compare-popup"].forEach(function(w){"block"===u(w).css("display")&&(u(w).attr("data-aria-hidden",null),u(w).attr("aria-hidden","true"))})):n(H.target[0]):0===document.querySelectorAll("[data-aria-hidden]").length&&n(H.target[0])}};window.sg.components.confirmPopup=g;u.ready(g.initAll)})();
240function confirmPopup(e,b,x,u){if($(".confirm-popup").is(":visible"))return!1;var t=$("#siteCode").val(),n=$(".confirm-popup"),k=n.find(".confirm-popup__title"),f=n.find(".confirm-popup__disclaimer"),a=n.find(".confirm-popup__desc"),g=n.find(".confirm-popup__close"),c=n.find(".cta--contained"),h=n.find(".cta--outlined"),v=digitalData.page.pageInfo.pageTrack;n.removeClass("error-popup-style");k.html("");initCta(g);initCta(c);initCta(h);c.attr("id",x||null);null!=e&&""!==e?a.html(e):a.html(Granite.I18n.get("We're sorry, an error occurred."));
241null==b||"error"===b?("Olet jo lis\u00e4nnyt t\u00e4m\u00e4n tuotteen ostoskoriin. Poista ostoskorissa oleva tuote ja lis\u00e4\u00e4 se uudelleen vasta rekister\u00f6ity\u00e4si vanhan laitteesi, jotta saat siit\u00e4 hyvityksen."==e&&"fi"===t?c.html("OK"):c.html(Granite.I18n.get("Close")),h.hide(),c.attr("an-tr","error popup-"+v+"-cta-button").attr("an-ca","other interaction").attr("an-ac","error popup:close").attr("an-la","error popup:close"),g.attr("an-tr","error popup-"+v+"-cta-button").attr("an-ca",
242"other interaction").attr("an-ac","error popup:close").attr("an-la","error popup:close")):"tnc"===b?(c.html(Granite.I18n.get("Confirm")),h.hide()):"delete"===b?(k.html(Granite.I18n.get("Delete")),c.html(Granite.I18n.get("YES")),h.html(Granite.I18n.get("NO")),h.show()):"deleteSC+"===b?(k.html(Granite.I18n.get("Remove From Cart SC+")),c.html(Granite.I18n.get("YES")),h.html(Granite.I18n.get("NO")),h.show()):"voucherDelete"===b?(k.html(Granite.I18n.get("Delete options")),c.html(Granite.I18n.get("YES")),
243h.html(Granite.I18n.get("NO")),h.show(),c.attr("an-tr","pdd10_product bought together-"+v+"-button-delete").attr("an-ca","option click").attr("an-ac","bridge").attr("an-la","evoucher:delete option:yes"),h.attr("an-tr","pdd10_product bought together-"+v+"-button-delete").attr("an-ca","option click").attr("an-ac","bridge").attr("an-la","evoucher:delete option:no")):"addToCart"===b?(c.html(Granite.I18n.get("Continue shopping")),c.attr("an-tr","pdd10_product bought together-"+v+"-popup-add").attr("an-ca",
244"option click").attr("an-ac","bridge").attr("an-la","add on:add item popup:continue shopping"),h.hide()):"redeem"===b?(k.html(Granite.I18n.get("Are you sure?")),h.html(Granite.I18n.get("Redeem")),h.show(),c.html(Granite.I18n.get("Skip")),"voucherGoCart"===x?(c.attr("an-tr","pdd10_product bought together-"+v+"-popup-text").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:no addition:skip"),setVoucherYes(c)):"voucherGoCartAddOn"===x?(c.attr("an-tr","pdd10_product bought together-"+
245v+"-popup-text").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:no addition:skip"),setVoucherYes(c)):"skipGoCart"===x?c.attr("an-tr","pdd10_product bought together-"+v+"-popup-notadded").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:no addition:skip"):"skipGoCartAddOn"===x&&c.attr("an-tr","pdd10_product bought together-"+v+"-popup-notadded").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:no addition:skip"),h.attr("an-tr",
246"pdd10_product bought together-"+v+"-button-text").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:no addition:redeem"),g.attr("an-tr","pdd10_product bought together-"+v+"-button-text").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:no addition:close")):"voucher"===b?(k.html(Granite.I18n.get("Are you sure?")),h.html(Granite.I18n.get("Back")),h.show(),c.html(Granite.I18n.get("Continue")),"voucherGoCart"===x?(c.attr("an-tr","pdd10_product bought together-"+
247v+"-popup-text").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:below evoucher:continue"),setVoucherYes(c)):"voucherGoCartAddOn"===x?(c.attr("an-tr","pdd10_product bought together-"+v+"-popup-text").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:below evoucher:continue"),h.attr("id",""),setVoucherYes(c)):"skipGoCart"===x?c.attr("an-tr","pdd10_product bought together-"+v+"-popup-notadded").attr("an-ca","content click").attr("an-ac","feature").attr("an-la",
248"evoucher:below evoucher:continue"):"skipGoCartAddOn"===x&&c.attr("an-tr","pdd10_product bought together-"+v+"-popup-notadded").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:below evoucher:continue"),h.attr("an-tr","pdd10_product bought together-"+v+"-button-text").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:below evoucher:back"),g.attr("an-tr","pdd10_product bought together-"+v+"-button-text").attr("an-ca","content click").attr("an-ac",
249"feature").attr("an-la","evoucher:below evoucher:close")):"allVoucher"===b?(k.html(Granite.I18n.get("Great!")),h.html(Granite.I18n.get("Select again")),h.show(),c.html(Granite.I18n.get("Continue")),"voucherGoCart"===x?(c.attr("an-tr","pdd10_product bought together-"+v+"-popup-text").attr("an-ca","ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:over evoucher:continue"),setVoucherYes(c)):"voucherGoCartAddOn"===x?(c.attr("an-tr","pdd10_product bought together-"+v+"-popup-text").attr("an-ca",
250"ecommerce").attr("an-ac","addToCart").attr("an-la","evoucher:over evoucher:continue"),h.attr("id",""),setVoucherYes(c)):"skipGoCart"===x?c.attr("an-tr","pdd10_product bought together-"+v+"-popup-notadded").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:over evoucher:continue"):"skipGoCartAddOn"===x&&c.attr("an-tr","pdd10_product bought together-"+v+"-popup-notadded").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:over evoucher:continue"),
251h.attr("an-tr","pdd10_product bought together-"+v+"-button-text").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:over evoucher:back"),g.attr("an-tr","pdd10_product bought together-"+v+"-button-text").attr("an-ca","content click").attr("an-ac","feature").attr("an-la","evoucher:over evoucher:close")):"freeGift"===b?(c.html(Granite.I18n.get("YES")),h.html(Granite.I18n.get("NO")),h.show(),c.attr("an-tr","header(pim)_offer option:bundle offer:free gift-"+v+"-alert-link").attr("an-ca",
252"option click").attr("an-ac","pd buying tool").attr("an-la","bundle offer:free gift:reset option:yes"),h.attr("an-tr","header(pim)_offer option:bundle offer:free gift-"+v+"-alert-link").attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la","bundle offer:free gift:reset option:no")):"combo"===b?(k.html(Granite.I18n.get("Delete")),c.html(Granite.I18n.get("YES")),h.html(Granite.I18n.get("NO")),h.show(),c.attr("an-tr","header(pim)_offer option:bundle offer:add-on -"+v+"-delete-confirm").attr("an-ca",
253"option click").attr("an-ac","pd buying tool").attr("an-la","bundle offer:add-on:delete option:yes"),h.attr("an-tr","header(pim)_offer option:bundle offer:add-on -"+v+"-delete-confirm").attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la","bundle offer:add-on:delete option:no")):"ebt"===b?(k.html($("#successTitle").val()),a.html($("#successMessageDesc").val()),c.html(Granite.I18n.get("Close Layer"))):"continue"===b?(c.html(Granite.I18n.get("Continue")),h.html(Granite.I18n.get("CANCEL")),
254h.show()):"OverPrice"===b?(c.html(Granite.I18n.get("OK")),a.html(""),a.hide(),h.hide(),f.html(e),n.addClass("error-popup-style")):"tradeInClose"
254===b&&(c.html(Granite.I18n.get("Yes")),h.html(Granite.I18n.get("No")),h.show(),c.attr("data-event-type",b),h.attr("data-event-type",b),g.attr("data-event-type",b));window.sg.components.confirmPopup.showPopup(u)}
255function errLayerPop(e){var b="";null!=e.responseJSON&&(e=e.responseJSON,null!=e.message&&""!==e.message&&(b=e.message));""===b&&(b=Granite.I18n.get("We're sorry, an error occurred."));confirmPopup(b,"error")}
256function setVoucherYes(e){var b=$("#primaryInfoGoCart");e.attr("data-modelname",b.attr("data-modelname")).attr("data-modeldisplay",b.attr("data-modeldisplay")).attr("data-modelprice",b.attr("data-modelprice")).attr("data-discountprice",b.attr("data-discountprice")).attr("data-pvitype",b.attr("data-pvitype")).attr("data-pvisubtype",b.attr("data-pvisubtype")).attr("data-pimsubtype",b.attr("data-pimsubtype")).attr("data-modelrevenue",b.attr("data-modelrevenue")).attr("data-modelqty",b.attr("data-modelqty")).attr("data-modelcurrency",
257b.attr("data-modelcurrency"))}function initCta(e){e.removeAttr("an-tr").removeAttr("an-ca").removeAttr("an-ac").removeAttr("an-la").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")}
258(function(){function e(c){c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode&&c.target===u(f.section).find(f.focusEl).target[0]&&(c.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}function b(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),u(f.section).find(f.focusEl).target[0].focus())}function x(){a.instances.get(document.querySelector(".confirm-popup-v2")).close()}var u=window.sg.common.$q,t=window.sg.common.utils,n=window.sg.common.utils.setMobileFocusLoop,
259k=window.sg.common.utils.removeMobileFocusLoop,f={section:".confirm-popup-v2",close:".confirm-popup-v2__close",focusEl:'a:not([style*\x3d"display: none"]):not([style*\x3d"display:none"]), button:not([style*\x3d"display: none"]):not([style*\x3d"display:none"]), input'},a=function(c){this.els={el:c,popupConfirmV2CloseBtn:c.querySelector(".confirm-popup-v2__close"),popupConfirmV2NoBtn:c.querySelector(".confirm-popup-v2 .confirm-popup-v2__cta-wrap Button:first-of-type"),popupConfirmV2YesBtn:c.querySelector(".confirm-popup-v2 .confirm-popup-v2__cta-wrap Button:last-of-type")};
260this.init()};a.prototype.init=function(){a.instances.get(this.els.el)||(a.instances.set(this.els.el,this),this.bindEvents())};a.prototype.bindEvents=function(){var c=this;this.els.popupConfirmV2CloseBtn.addEventListener("click",function(){c.close()});this.els.popupConfirmV2NoBtn&&this.els.popupConfirmV2NoBtn.addEventListener("click",function(){c.close()});this.els.popupConfirmV2YesBtn&&this.els.popupConfirmV2YesBtn.addEventListener("click",function(){c.close()});var h=document.querySelector(f.section+
261" "+f.close);h.removeEventListener("keydown",b);h.addEventListener("keydown",b);h=u(f.section).find(f.focusEl).target[0];h.removeEventListener("keydown",e);h.addEventListener("keydown",e)};a.prototype.close=function(){var c=u(".pd13-offers-product-card-list"),h=u(".pd12-product-finder");0<c.target.length||0<h.target.length?(c=u(".confirm-popup-v2"),c.attr("data-aria-hidden")?(c.attr("aria-hidden","true"),[".pd-get-stock-alert-popup",".compare-popup"].forEach(function(v){"block"===u(v).css("display")&&
262(u(v).removeAttr("data-aria-hidden"),u(v).removeAttr("aria-hidden"))})):k()):0<document.querySelectorAll("[data-aria-hidden]").length&&k();this.els.el.style.display="none";t.popupControl.close();t.visibleScroll();c=window.navigator.userAgent.match(/(iPhone\sOS|iOS)\s([\d_]+)/);16.1<=(c?parseFloat(c[2].replace("_",".")):0)?setTimeout(function(){null!==window.sg.components.confirmPopupV2.popupCallCta&&(window.sg.components.confirmPopupV2.popupCallCta.focus(),window.sg.components.confirmPopupV2.popupCallCta=
263null)},200):null!==window.sg.components.confirmPopupV2.popupCallCta&&(window.sg.components.c
263onfirmPopupV2.popupCallCta.focus(),window.sg.components.confirmPopupV2.popupCallCta=null)};a.instances=new WeakMap;var g={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".confirm-popup-v2"))).forEach(function(c){a.instances.has(c)||new a(c)})},showPopup:function(c){c=void 0===c?null:c;document.querySelector(".confirm-popup-v2").style.display="block";var h=window.navigator.userAgent.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
264h=h?parseFloat(h[2].replace("_",".")):0;var v=u(".confirm-popup-v2").find(f.focusEl).target[0];16.1<=h?(v.blur(),setTimeout(function(){v.focus()},200)):v.focus();h=u(f.section).find(f.focusEl).target[0];h.removeEventListener("keydown",e);h.addEventListener("keydown",e);t.popupControl.open(x);t.hiddenScroll();h=u(".pd13-offers-product-card-list");var z=u(".pd12-product-finder"),H=u(".confirm-popup-v2");null!==window.sg.components.confirmPopupV2.popupCallCta&&(window.sg.components.confirmPopupV2.popupCallCta=
265null);null!==c&&(c instanceof Element?window.sg.components.confirmPopupV2.popupCallCta=c:c instanceof Object&&(window.sg.components.confirmPopupV2.popupCallCta=c[0]instanceof Element?c[0]:c.target[0]));0<h.target.length||0<z.target.length?H.attr("data-aria-hidden")?(H.attr("aria-hidden","false"),[".pd-get-stock-alert-popup",".compare-popup"].forEach(function(w){"block"===u(w).css("display")&&(u(w).attr("data-aria-hidden",null),u(w).attr("aria-hidden","true"))})):n(H.target[0]):0===document.querySelectorAll("[data-aria-hidden]").length&&
266n(H.target[0])}};window.sg.components.confirmPopupV2=g;u.ready(g.initAll)})();
267function confirmPopupV2(e,b,x,u){if($(".confirm-popup-v2").is(":visible"))return!1;var t=$("#siteCode").val(),n=$(".confirm-popup-v2"),k=$(".confirm-popup-v2__title"),f=n.find(".confirm-popup-v2__desc"),a=n.find(".confirm-popup-v2__close"),g=n.find(".cta--contained");n=n.find(".cta--outlined");var c=digitalData.page.pageInfo.pageTrack;g.attr("id",x||null);k.html("");f.html("");f.removeClass("confirm-popup-v2__desc--align-left");g.show();n.show();null!=e&&""!==e?f.html(e):f.html(Granite.I18n.get("We're sorry, an error occurred."));
268null==b||"error"===b?(g.html(Granite.I18n.get("Close")),n.hide(),g.attr("an-tr","error popup-"+c+"-cta-button").attr("an-ca","other interaction").attr("an-ac","error popup:close").attr("an-la","error popup:close"),a.attr("an-tr","error popup-"+c+"-cta-button").attr("an-ca","other interaction").attr("an-ac","error popup:close").attr("an-la","error popup:close")):"change option"===b?(k.remove(),g.html(Granite.I18n.get("Confirm")),g.attr("an-tr","header(pim)_service option selector-"+c+"-reset alert-option_click1").attr("an-ca",
269"option click").attr("an-ac","pd buying tool").attr("an-la","extended warranty:confirm"),n.hide()):"delete warranty"===b?(k.remove(),"sg"===t||"levant"===t||"levant_ar"===t||"n_africa"===t||"sa"===t||"sa_en"===t||"vn"===t||"ca"===t||"ca_fr"===t?(g.html(Granite.I18n.get("Yes, Remove it")),n.html(Granite.I18n.get("No, Keep it"))):(g.html(Granite.I18n.get("YES")),n.html(Granite.I18n.get("NO"))),g.attr("an-tr","header(pim)_service option selector-"+c+"-delete confirm alert-option_click1").attr("an-ca",
270"option click").attr("an-ac","pd buying tool").attr("an-la","extended warranty:delete option:yes"),n.attr("an-tr","header(pim)_service option selector-"+c+"-delete confirm alert-option_click1").attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la","extended warranty:delete option:no"),n.show()):"warranty learn more"===b&&(k.html(Granite.I18n.get("VD_Extended Warranty Popup_LearnMorePopup Title")),f.html(Granite.I18n.get("VD_Extended Warranty Popup_LearnMorePopup Description")),
271f.addClass("confirm-popup-v2__desc--align-left"),g.hide(),n.hide());window.sg.components.confirmPopupV2.showPopup(u)}
272(function(){function e(c){a.textAreaLength.textContent="("+c.target.value.length+"/2000)"}function b(c){c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode&&c.target===document.querySelector(g.section+" "+g.layerPopup)&&(c.preventDefault(),document.querySelector(g.section+" "+g.close).focus())}function x(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),document.querySelector(g.section+" "+g.layerPopup).focus())}function u(){var c=document.querySelector(g.section+
273" "+g.layerPopup);c.setAttribute("tabindex",0);c.focus();f.popupControl.open(t);document.body.style.overflow="hidden"}function t(){a.el.removeAttribute("style");f.popupControl.close();document.body.style.overflow="";
273null!==a.parentEl?(a.parentEl.focus(),a.parentEl=null):null!==document.querySelector('.pd-buying-tool [data-target-popup\x3d"ebtPopup"]')&&document.querySelector('.pd-buying-tool [data-target-popup\x3d"ebtPopup"]').focus()}var n=window.sg.common.$q,k=window.sg.common.layerPopupMaxHeight,
274f=window.sg.common.utils,a={},g={section:".ebt-popup",layerPopup:".layer-popup",close:".layer-popup__close",textArea:".textarea",textAreaLength:".text-length"};window.sg.components.ebtPopup={showPopup:function(c){n(".g-recaptcha-bubble-arrow").parent().addClass("g-recaptcha-wrap");[].concat($jscomp.arrayFromIterable(document.querySelector(".ebt-popup").querySelectorAll(".form-wrap input, .form-wrap textarea"))).forEach(function(h){h.value=""});[].concat($jscomp.arrayFromIterable(document.querySelector(".ebt-popup").querySelectorAll(".checkbox-wrap .checkbox-radio input"))).forEach(function(h){h.checked&&
275(h.checked=!1)});[].concat($jscomp.arrayFromIterable(document.querySelector(".ebt-popup").querySelectorAll(".form-wrap .menu"))).forEach(function(h){window.sg.common.menu.reInit(h,-1)});a.el.style.display="block";a.el.focus();document.querySelector(".ebt-popup .invalid-notice").style.display="none";k.reInit(a.layerEl);u();void 0!==c&&(a.parentEl=c)},closePopup:t};n.ready(function(){var c=document.querySelector(".ebt-popup");c&&(a={el:c,layerEl:c.querySelector(".layer-popup"),closeEl:c.querySelector(".layer-popup__close"),
276textAreaEl:c.querySelector(g.textArea),textAreaLength:c.querySelector(g.textAreaLength),parentEl:null},k.init(a.layerEl),a.closeEl.addEventListener("click",t),c=document.querySelector(g.section+" "+g.close),c.removeEventListener("keydown",x),c.addEventListener("keydown",x),c=document.querySelector(g.section+" "+g.layerPopup),c.removeEventListener("keydown",b),c.addEventListener("keydown",b),a.textAreaEl&&(a.textAreaEl.removeEventListener("keydown",e),a.textAreaEl.removeEventListener("focusout",e),
277a.textAreaEl.addEventListener("keydown",e),a.textAreaEl.addEventListener("focusout",e)))})})();
278(function(e,b){function x(k){var f=/^[a-zA-Z0-9\-\._]+@[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,5})$/;!/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/.test(k)&&f.test(k)?(f="emailCheckTrue",-1<k.indexOf("samsung.com")&&(f="samsungMailFalse")):f="emailCheckFalse";return f}function u(){var k,f=!0,a=[];n.find("input, select, textarea").not("input[type\x3d'hidden']").each(function(g){k=e(this).attr("data-id");if("undefined"!=typeof k){if(g="TS02"===k){g=e(this);var c=g.attr("data-required"),h=g.closest(".checkbox-radio").find(".checkbox-wrap__check-error");
279"undefined"==typeof c||"Y"!=c||g.is(":checked")?(h.hide(),g=!0):(h.show(),g=!1);g=!g}if(g)f=!1,e(this).focus();else{if(g="TT03"===k)g=e(this),g.parent().find(".error-message"),c=g.attr("data-required"),"undefined"!=typeof c&&"Y"==c&&0==g.val().length?(g.closest(".textarea").addClass("text-field--error"),g=!1):(g.closest(".textarea").removeClass("text-field--error"),g=!0),g=!g;if(g)f=!1,e(this).focus();else{if(g="TS02"!==k&&"TT03"!==k){var v=e(this);g=!0;var z=v.val(),H=v.attr("data-required");c=v.closest(".text-field,.menu.filled");
280h=c.find(".error-message");null==H||"Y"!=H||null!=z&&0!=z.length?"TT05"!=v.attr("data-id")||"emailCheckFalse"!=x(z)&&"samsungMailFalse"!=x(z)?((v="TT06"!=v.attr("data-id"))||(z=z.replace(/\+/g,"").replace(/-/g,""),v=/^[-0-9]*$/.test(z)?!0:!1),v?c.removeClass("text-field--error"):(h.text(Granite.I18n.get("Please enter a valid telephone number")),c.addClass("text-field--error"),g=!1)):("emailCheckFalse"==x(z)?h.text(Granite.I18n.get("Please enter a valid E-mail address")):"samsungMailFalse"==x(z)&&
281h.text(Granite.I18n.get("Samsung.com email address is not allowed. Please input other email address.")),c.addClass("text-field--error"),g=!1):(h.text(Granite.I18n.get("* This field is required")),c.addClass("text-field--error"),g=!1);g=!g}g&&(f=!1,a.push(e(this).attr("id")))}}}});e("#"+a[0]).focus();return f}function t(){if(u()){var k=grecaptcha.getResponse(conRecaptcha),f={};n.find("select, textarea, input[name]").not("[disabled]").each(function(){f[e(this).attr("name")]=e(this).val();"checkbox"==
282this.type&&("checked"==e(this).attr("checked")?f[e(this).attr("name")]="on":f[e(this).attr("name")]="off")});f["g-recaptcha-response"]=k;f.grecaptcha="grecaptcha";e.ajax({type:"post",url:"/aemapi/business/common/recaptchacheck",data:f,dataType:"json",success:function(a){"200"==a.response.statusCode?(window.sg.components.ebtPopup.closePopup(),confirmPopup(Granite.I18n.get("Thank y
282ou for your interest, we will get back to you soon.")),grecaptcha.reset(conRecaptcha)):(grecaptcha.reset(conRecaptcha),
283e(".ebt-popup .ebt-popup__iframe .invalid-notice").show())},erorr:function(a){console.log(a)}})}}var n=e(".ebt-popup .layer-popup__contents");e(".ebt-popup .menu.filled select").on("change",function(){var k=e(this).attr("name"),f=e(this).find("option:selected"),a=e(this).parent().find("[name\x3d"+k+"_T]"),g=e(this).closest(".menu.filled").next().find("input[type\x3dtext]");"Y"==f.attr("data-textboxyn")?(a.attr("disabled","disabled"),g.attr("name")==k+"_T"&&(g.removeAttr("disabled"),g.attr("data-required",
284"Y"),g.removeAttr("hidden"),g.closest(".text-field").show())):(a.removeAttr("disabled"),g.attr("name")==k+"_T"&&(g.attr("disabled","disabled"),g.attr("hidden",!0),g.removeAttr("data-required"),g.closest(".text-field").hide()),a.val(e(this).val()))});e(".ebt-popup .cta--outlined").on("click",function(){var k=e("#elqYn").val(),f="";null==k?k="N":f=e("#elqPostUrl").val();"Y"===k&&u()?e(".ebt-popup").find("form[name\x3debt-popup__form]").attr("action",f).attr("method","POST").submit():t()})})(window.jQuery,
285window.document);
286(function(){function e(){h=f(c.section);h.target.forEach(function(v){a.init(v);b(v)})}function b(v){var z=f(v),H=z.find('.is-check-required input[type\x3d"checkbox"]'),w=z.find('.extended-warranty-popup__smc-inner .checkbox-radio input[type\x3d"radio"]');v=z.find(".extended-warranty-popup__close");var B=z.find(".extended-warranty-popup__button-item:first-of-type"),m=function(){var E=z.find('.is-check-required input[type\x3d"checkbox"]:checked').target.length;E+=z.find('.extended-warranty-popup__smc-inner .checkbox-radio input[type\x3d"radio"]:checked').target.length;E===
287H.target.length+(0<w.target.length?1:0)?z.find(".cta--contained").removeClass("cta--disabled"):z.find(".cta--contained").addClass("cta--disabled")};H.off("change").on("change",function(){m()});w.off("change").on("change",function(E){E=w.target.indexOf(E.currentTarget);var d=z.find(".extended-warranty-popup__info");d.hide();d.eq(E).show();m()});v.off("click").on("click",t);B.off("click").on("click",t);v=f(c.section+","+c.alert);B=v.find(c.close+","+c.alertClose);v.off("keydown").on("keydown",x);B.off("keydown").on("keydown",
288u)}function x(v){v.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===v.keyCode&&f(v.target).find(c.close+","+c.alertClose).target.length&&(v.preventDefault(),f(v.target).find(c.close+","+c.alertClose).focus())}function u(v){v.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==v.keyCode||(v.preventDefault(),f(v.target).closest(c.section+","+c.alert).focus())}function t(v){v=void 0===v?null:v;document.querySelector(".extended-warranty-popup").removeAttribute("style");var z=document.querySelector('.pd-buying-tool [data-target-popup\x3d"extendedWarrantyPopup"]');
289!0===v?z.checked=!0:!1===v&&(z.checked=!1);g.popupControl.close();g.visibleScroll();k()}function n(){f(c.alert).hide();g.popupControl.close();g.visibleScroll();k()}function k(){document.querySelector('.pd-buying-tool [data-target-popup\x3d"extendedWarrantyPopup"]').focus()}var f=window.sg.common.$q,a=window.sg.common.layerPopupMaxHeight,g=window.sg.common.utils,c={section:".extended-warranty-popup",alert:".extended-warranty-popup__alert",layerPopup:".layer-popup",close:".extended-warranty-popup__close",
290alertClose:".extended-warranty-popup__alert-close"};var h=null;f.ready(e);window.sg.components.extendedWarrantyPopup={init:e,showPopup:function(){document.querySelector(".extended-warranty-popup").style.display="block";document.querySelector(".extended-warranty-popup").focus();a.reInit(document.querySelector(".extended-warranty-popup .layer-popup"));g.popupControl.open(t.bind(document.querySelector(".extended-warranty-popup")));g.hiddenScroll()},openAlert:function(v){f(v).show();f(v).focus();g.popupControl.open(n);
291g.hiddenScroll()},closePopup:t,closeAlert:n}})();
292(function(){var e=window.sg.common.$q,b=window.sg.common.layerPopupMaxHeight,x=window.sg.common.utils,u=window.sg.common.constants.KEY_CODE.TAB,t=function(n){this.ele={section:e(n),window:e(window),focusEl:null};this.handler={activeConfirm:this.activeConfirm.bind(this),closePopup:this.closePopup.bind(this),keydownCloseBtn:this.keydownCloseBtn.bind(this),keydownLayer:this.keydownLayer.bind(this)};t.instances.set(n,this);this.init()};t.prototype.init=function(){b.init(this.ele.section.find(".layer-popup").target[0]);
293this.setElement();this.bindEvents()};t.prototype.setElement=function(){this.ele.closePopupBtn=this.ele.section.find(".extended-warranty-popup-vd__close");this.ele.closePopupCta=this.ele.section.find(".extended-warranty-popup-vd__button-item:first-of-type .cta");this.ele.checkRequired=this.ele.section.find('.is-check-required input[type\x3d"checkbox"]');this.ele.checkCareList=this.ele.section.find('.extended-warranty-popup-vd__option .pd-option-selector input[type\x3d"radio"]');this.ele.confirmCta=
294this.ele.section.find(".cta--contained")};
294t.prototype.bindEvents=function(){this.ele.checkRequired.off("change",this.handler.activeConfirm).on("change",this.handler.activeConfirm);this.ele.checkCareList.off("change",this.handler.activeConfirm).on("change",this.handler.activeConfirm);this.ele.closePopupBtn.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.ele.closePopupCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.ele.closePopupBtn.off("keydown",
295this.handler.keydownCloseBtn).on("keydown",this.handler.keydownCloseBtn);this.ele.section.off("keydown",this.handler.keydownLayer).on("keydown",this.handler.keydownLayer)};t.prototype.activeConfirm=function(){var n=this.ele.checkRequired.target.length+(0<this.ele.checkCareList.target.length?1:0),k=this.ele.checkRequired.target.filter(function(f){return f.checked}).length;k+=this.ele.checkCareList.target.filter(function(f){return f.checked}).length;k===n?this.ele.confirmCta.removeClass("cta--disabled"):
296this.ele.confirmCta.addClass("cta--disabled")};t.prototype.showPopup=function(n){n=void 0===n?null:n;x.hiddenScroll();this.ele.section.show();this.ele.section.focus();b.reInit(this.ele.section.find(".layer-popup").target[0]);x.popupControl.open(this.handler.closePopup);this.ele.focusEl=n?n:document.querySelector('[data-target-popup\x3d"ExtendedWarrantyVdPopup"]')};t.prototype.closePopup=function(){this.ele.section.hide();x.popupControl.close();x.visibleScroll();null!==this.ele.focusEl&&this.ele.focusEl.focus()};
297t.prototype.keydownLayer=function(n){console.log(n);n.shiftKey&&u===n.keyCode&&e(n.target).hasClass(".extended-warranty-popup-vd".replace(".",""))&&(n.preventDefault(),console.log("keydownLayer"),this.ele.closePopupBtn.focus())};t.prototype.keydownCloseBtn=function(n){n.shiftKey||u!==n.keyCode||(n.preventDefault(),console.log("keydownCloseBtn"),this.ele.section.focus())};t.instances=new WeakMap;window.sg.components.ExtendedWarrantyVdPopup={reInit:function(){e(".extended-warranty-popup-vd").target.forEach(function(n){t.instances.has(n)?
298t.instances.get(n).init():new t(n)})},showPopup:function(n){e(".extended-warranty-popup-vd").target.forEach(function(k){t.instances.has(k)&&t.instances.get(k).showPopup(n)})},closePopup:function(){e(".extended-warranty-popup-vd").target.forEach(function(n){t.instances.has(n)&&t.instances.get(n).closePopup()})}};e.ready(function(){e(".extended-warranty-popup-vd").target.forEach(function(n){new t(n)})})})();
299(function(){function e(){b(n.section+" .menu").target.forEach(function(f){u.init(f)});b(n.section+" .layer-popup").target.forEach(function(f){null===x.reInit(f)&&x.init(f)});b(n.section).target.forEach(function(f){k.instances.has(f)||new k(f)})}var b=window.sg.common.$q,x=window.sg.common.layerPopupMaxHeight,u=window.sg.common.menu,t=window.sg.common.scrollbar,n={section:".finance-ee-popup"},k=function(f){var a=this;this.selector={section:n.section,layerScroll:".layer-popup",focusStart:".layer-popup__inner",
300focusLast:".layer-popup__close",popupClose:".layer-popup__close",menuSelect:".menu select",menuBar:".menu__select-field",menuTitle:".menu__select-field-text"};this.ele={window:b(window),section:b(f),layerScroll:null,closeFocus:null};this.setProperty();this.handler={resize:this.resize.bind(this),menuChange:function(g){setTimeout(function(){a.resizeMenu(b(g.target).closest(".menu").target[0])},100)}};k.instances.set(f,this);this.init()};k.prototype.setProperty=function(){this.ele.layerScroll=this.ele.section.find(this.selector.layerScroll);
301"none"!==this.ele.section.css("display")&&(window.sg.common.utils.hiddenScroll(),this.ele.section.setLayerFocus(this.selector.focusStart,this.selector.focusLast))};k.prototype.showPopup=function(f){f=void 0===f?null:f;null!==f&&(this.ele.closeFocus=f);this.ele.section.show();window.sg.common.utils.hiddenScroll();this.ele.section.setLayerFocus(this.selector.focusStart,this.selector.focusLast)};k.prototype.hidePopup=function(){window.sg.common.utils.visibleScroll();this.ele.section.offLayerFocus();
302this.ele.section.hide();null!==this.ele.closeFocus&&this.ele.closeFocus.focus()};k.prototype.init=function(){this.bindEvents();this.resize()};k.prototype.reInit=function(){this.setProperty();this.bindEvents();this.resize()};k.prototype.bindEvents=function(){this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize);
302this.ele.section.find(this.selector.menuSelect).off("change",this.handler.menuChange).on("change",this.handler.menuChange)};k.prototype.resize=function(){var f=
303this;this.ele.section.find(".menu").target.forEach(function(a){f.resizeMenu(a)})};k.prototype.resizeMenu=function(f){var a=f.querySelector(this.selector.menuTitle).getBoundingClientRect().height;f.style.height="";f.querySelector(this.selector.menuBar).style.height="";f.getBoundingClientRect().height<a&&(f.querySelector(this.selector.menuBar).style.height=a+"px",f.style.height=a+"px");this.ele.section.find(".scrollbar").target.forEach(function(g){t.resize(g)})};k.instances=new WeakMap;window.sg.components.financeEePopup=
304{init:e,reInit:function(){b(n.section+" .menu").target.forEach(function(f){u.reInit(f)});b(n.section+" .layer-popup").target.forEach(function(f){null===x.reInit(f)&&x.init(f)});b(n.section).target.forEach(function(f){k.instances.has(f)?k.instances.get(f).reInit():new k(f)})},show:function(f){f=void 0===f?null:f;b(n.section).target.forEach(function(a){k.instances.has(a)&&k.instances.get(a).showPopup(f)})},hide:function(){b(n.section).target.forEach(function(f){k.instances.has(f)&&k.instances.get(f).hidePopup()})}};
305b.ready(e)})();var installmentPlansData={};
306(function(e,b){function x(B){var m=h[B],E="";if(null!==m&&0!==m.length)for(var d=0;d<m.length;d++)E+='\x3coption value\x3d"'+m[d].tenure.value+'"\x3e'+m[d].tenure.value+"\x3c/option\x3e";e(".finance-ee-popup #selectmonths").html(E);window.sg.components.financeEePopup.reInit();u(B,e(".finance-ee-popup #selectmonths option").first().val())}function u(B,m){var E=e.cookies.get("jwt_"+n,{domain:".samsung.com"}),d={total_price:Number(c),payment_option:B,tenure:{unit:"M",value:m}};H&&(d.store_id=w);e(".finance-ee-popup #interestrate").text("");
307e(".finance-ee-popup #monthlypayment").text("");v[String(c)+B+m]?(d=v[String(c)+B+m],null!=d&&""!=d&&(v[String(c)+B+m]=d,d.interest_rate&&e(".finance-ee-popup #interestrate").html(d.interest_rate+"%"),d.installment_amount&&(d=Granite.I18n.get("{0}/month",currencyComma(Number(d.installment_amount),k)),e(".finance-ee-popup #monthlypayment").html(d)))):e.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:t+"/v1/payment/LS/emi_calculator",
308data:JSON.stringify(d),type:"POST",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},async:!0,beforeSend:function(p){null!=E&&""!=E&&p.setRequestHeader("x-ecom-jwt",E)},success:function(p){null!=p&&""!=p&&(v[String(c)+B+m]=p,p.interest_rate&&e(".finance-ee-popup #interestrate").html(p.interest_rate+"%"),p.installment_amount&&(p=Granite.I18n.get("{0}/month",currencyComma(Number(p.installment_amount),k)),e(".finance-ee-popup #monthlypayment").html(p)))}})}e("#siteCode").val();var t=e("#storeDomain").val(),
309n=e("#countryIsoCode").val(),k=e("#priceCurrency").val();b=e("#multiLanguageYn").val();var f=e("#localLang").val(),a={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"};"Y"===b&&(a["x-ecom-locale"]=f);var g="",c="",h=[],v={},z,H=checkEppSite();H&&null==window.sg.epp&&(window.sg.epp={},window.sg.epp.common={});var w=H?window.sg.epp.common.companyCode:"";e(".finance-ee-popup .layer-popup__close").on("click",function(){window.sg.components.financeEePopup.hide(z)});
310e(".finance-ee-popup #selectplan").on("change",function(){x(e("#selectplan option:selected").val())});e(".finance-ee-popup #selectmonths").on("change",function(){u(e("#selectplan option:selected").val(),e("#selectmonths option:selected").val())});installmentPlansData={getPaymentData:function(B,m,E){z=m;c=B;g=E;var d=e.cookies.get("jwt_"+n,{domain:".samsung.com"});B={cart:{skus:[g],total_price:c}};H&&(B.store_id=w);e.ajax({headers:a,url:t+"/v4/configurator/payment-options",type:"POST",dataType:"json",
311xhrFields:{withCredentials:!0},crossDomain:!0,async:!0,data:JSON.stringify(B),beforeSend:function(p){null!=d&&""!=d&&p.setRequestHeader("x-ecom-jwt",d)},success:function(p){if(null!=p&&""!=p&&(e(".finance-ee-popup #productprice").html(currencyComma(c,k)),p.payment_methods.LS&&p.payment_methods.LS.finance_plans&&p.payment_methods.LS.finance_plans)){h=p.payment_methods.LS.finance_plans;if(null!==h&&""!==h){p="";for(var q in h)0!==h[q].length&&(p+='\x3coption value\x3d"'+q+'"\x3e'+q+"\x3c/option\x3e");
312e(".finance-ee-popup #selectplan").html(p);0<e(".finance-ee-popup #selectplan option").length&&x(e(".finance-ee-popup #selectplan option").first().val())}window.sg.components.financeEePopup.show(z)}}})}}})(window.jQuery,window.document);
313(function(){function e(){n(a.section).target.length&&(n(".fold-alert-popup .layer-popup").target.forEach(function(c){k.init(c)}),b())}function b(){var c=n(a.section);g=c.find(a.layerPopup);c.find(a.close).off("click").on("click",t);c.find(a.closeCta).off("click").on("click",t);c=document.querySelector(a.section+" .layer-popup__close");c.removeEventListener("keydown",u);c.addEventListener("keydown",u);c=document.querySelector(a.section+" .layer-popup");c.removeEventListener("keydown",x);c.addEventListener("keydown",
314x)}function x(c){c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode&&c.target===document.querySelector(a.section+" .layer-popup")&&(c.preventDefault(),document.querySelector(a.section+" .layer-popup__close").focus())}function u(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),document.querySelector(a.section+" .layer-popup").focus())}function t(){g.hide();f.popupControl.close();f.visibleScroll();document.querySelector('.pd-buying-tool [data-target-popup\x3d"foldAlertPopup"]').focus()}
315var n=window.sg.common.$q,k=window.sg.common.layerPopupMaxHeight,f=window.sg.common.utils,a={section:".fold-alert-popup",layerPopup:".layer-popup",close:".layer-popup__close",closeCta:".fold-alert-popup__cta"};var g=null;window.sg.components.foldAlertPopup={init:e,showPopup:function(){g.show();var c=document.querySelector(a.section+" .layer-popup");c.setAttribute("tabindex",0);c.focus();f.popupControl.open(t);f.hiddenScroll()}};n.ready(e)})();
316(function(){function e(){"block"===a.el.style.display&&a.$el.setLayerFocus(".layer-popup__inner",".layer-popup__close");a.$radio.off("change").on("change",function(){a.$confirm.removeClass("cta--disabled")});a.$window.off("resize",b).on("resize",b)}function b(){k.MOBILE<n.getViewPort().width?a.$optionSelector.find(".option-selector__wrap--align").removeClass("option-selector__wrap--align"):a.$optionSelector.target.forEach(function(g){3>g.querySelectorAll(".option-selector__swiper-slide").length?g.classList.add("option-selector__wrap--align"):
317g.classList.remove("option-selector__wrap--align")})}function x(){a.el.removeAttribute("style");n.popupControl.close();n.visibleScroll();
317null!==a.parentEl?(a.parentEl.focus(),a.parentEl=null):null!==document.querySelector('.pd-buying-tool [data-target-popup\x3d"freeGiftPopup"]')&&document.querySelector('.pd-buying-tool [data-target-popup\x3d"freeGiftPopup"]').focus();a.$el.offLayerFocus()}var u=window.sg.common.$q,t=window.sg.common.layerPopupMaxHeight,n=window.sg.common.utils,k=window.sg.common.constants.BREAKPOINTS,
318f=window.sg.common.OptionSelector,a={};window.sg.components.freeGiftPopup={showPopup:function(g){a.el.style.display="block";a.el.focus();t.reInit(a.layerEl);var c=document.querySelector(".free-gift-popup .layer-popup");c.setAttribute("tabindex",0);c.focus();n.popupControl.open(x);n.hiddenScroll();void 0!==g&&(a.parentEl=g);a.$el.setLayerFocus(".layer-popup__inner",".layer-popup__close");window.sg.common.lazyLoad.setLazyLoad()},closePopup:x,reInitCard:function(){a.$el.find(".option-selector").target.forEach(function(g){f.reInit(u(g))});
319window.sg.common.lazyLoad.setLazyLoad();0===u('.free-gift-popup__item \x3e input[type\x3d"radio"]:checked').target.length&&a.$confirm.addClass("cta--disabled");a.$radio=a.$el.find('.free-gift-popup__item \x3e input[type\x3d"radio"]');e()}};u.ready(function(){var g=document.querySelector(".free-gift-popup");g&&(a={el:g,$el:u(g),$window:u(window),layerEl:g.querySelector(".layer-popup"),parentEl:null,$radio:null,$confirm:null,$optionSelector:null,$openPopupBtn:null},a.$radio=a.$el.find('.free-gift-popup__item \x3e input[type\x3d"radio"]'),
320a.$confirm=a.$el.find(".layer-popup__button-item .cta--disabled"),a.$optionSelector=a.$el.find(".option-selector__wrap"),t.init(a.layerEl),e())})})();
321(function(e,b){function x(m,E){for(var d=0;d<m.length;d++)if(m[d]===E)return!0;return!1}function u(m,E,d){var p="",q=b("#scene7domain").val();m&&(E=-1<m.indexOf("?")?"":"?"+E,-1<m.indexOf("https:")||-1<m.indexOf("http:")||-1<m.indexOf("//stg-images.samsung.com/")||-1<m.indexOf("//images.samsung.com/")||-1<m.indexOf("image.samsung.com/")?p=m:(d&&(q=q.replace("/image/","/content/")),p=q+m),p+=E);return p}function t(m){var E=m.modelList[m.frontModelIdx],d=E.thumbUrl;if(d){var p=u(d,"$LazyLoad_Home_PNG$");
322var q=u(d,"$240_240_PNG$");d=u(d,"$480_480_PNG$");q='\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+p+'" data-mobile-src\x3d"'+p+'" alt\x3d"'+E.thumbUrlAlt+'"\x3e\n\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+q+'" data-mobile-src\x3d"'+d+'" alt\x3d"'+E.thumbUrlAlt+'"\x3e\n\t\t\t\t\x3c/div\x3e'}else q='\x3cdiv class\x3d"no-image"\x3e\n\t\t\t\t\t\x3csvg class\x3d"icon"\x3e\n\t\t\t\t\t\t\x3cuse xlink:href\x3d"#no-image" href\x3d"#no-image"\x3e\x3c/use\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/div\x3e';
323p="";if(!z&&!H){var l=E.price,y=E.promotionPrice;d=Number((parseFloat(l)-parseFloat(y)).toFixed(2));var r=Granite.I18n.get("Save",currencyComma(d,h));l=E.priceDisplay||(l?currencyComma(l,h):"");y=E.promotionPriceDisplay||(y?currencyComma(y,h):"");"se"===c||"dk"===c||"no"===c||"fi"===c?p='\x3cdiv class\x3d"free-gift-popup__price-wrap"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price"\x3e'+y+'\x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price-box"\x3e\n\t\t\t\t\t\t'+(0<d?'\x3cdiv class\x3d"free-gift-popup__price-was"\x3e\x3cdel\x3e'+
324l+'\x3c/del\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price-save"\x3e'+r+"\x3c/div\x3e":"")+"\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e":"za"===c&&4E3<=d&&(p='\x3cdiv class\x3d"free-gift-popup__price-wrap"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price"\x3e'+y+'\x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price-box"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price-was"\x3e\x3cdel\x3e'+l+'\x3c/del\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__price-save"\x3e'+
325r+"\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e")}E='\x3cdiv class\x3d"free-gift-popup__item radio-v2" data-index\x3d"'+E.idx+'"\x3e\n\t\t\t\t\x3cinput type\x3d"radio" name\x3d"free-gift-radio" class\x3d"hidden" id\x3d"free-gift-radio-'+E.idx+'" an-tr\x3d"header(pim)_offer option:bundle offer:free gift-'+w+'-image-link" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"bundle offer:free gift:add item"\x3e\n\t\t\t\t\x3clabel class\x3d"radio-v2__label" for\x3d"free-gift-radio-'+
326E.idx+'"\x3e\n\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\x3c/span\x3e\n\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__product-name"\x3e\x3cstrong\x3e'+E.displayName+'\x3c/strong\x3e\x3c/div\x3e\n\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__image"\x3e\n\t\t\t\t\t\t'+q+'\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cdiv class\x3d"free-gift-popup__text"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector"\x3e\n\t\t\t\t\t\t\t';
327l=y=r=d=q="";var C=m.modelList[m.frontModelIdx];if(m.viewOptionObj&&0<Object.keys(m.viewOptionObj).length){var F="",I=0,L=m.viewOptionObj,J=m.optionTypeList,P;for(P in m.viewOptionObj){var G=P.toLowerCase().replace(/ /g,"-"),T=m.viewOptionObj[P].optionList;if("COLOR"===P){var X="";y=m.viewOptionObj[P].styleAttr||"";for(var Y in T){var O=T[Y];var W=!1;var V=O.modelIdx.split(",");
327if(null!=O.modelIdx&&x(V,String(m.frontModelIdx))){W=!0;X=O.modelIdx;var A=""}else if(A=" is-disabled",0===I)A="";else{var K=
328F.split(","),N;for(N in V)if(x(K,V[N])){A="";break}}K=V="";if(""===A){var R=O.modelIdx;var Z=[],ca=!0,aa;for(aa in L)if(aa!==P){var U=L[aa].optionList,ba;for(ba in U){var D=U[ba];D=D.modelIdx;var M=D.split(",");-1<M.indexOf(String(m.frontModelIdx))&&Z.push(D)}}R=B(L,R,Z,ca,J);m.modelList.length>R&&m.modelList[R]&&(V=m.modelList[R].modelCode,K=m.modelList[R].modelName)}Z="gift-"+G+"-"+Y+"-"+C.idx;ca="gift-"+G+"-"+C.idx;d+='\x3cspan class\x3d"option-selector__swiper-slide'+A+'"\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"'+
329Z+'" name\x3d"'+ca+'" data-modeli\x3d"'+R+'"'+(W?" checked":"")+(""===A?"":" disabled")+' an-tr\x3d"header(pim)_offer option:bundle offer:free gift-'+w+'-select-option" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"bundle offer:free gift:'+P.toLowerCase()+":"+O.optionName.toLowerCase()+'" \n\t\t\t\t\t\t\t\t\t data-modelcode\x3d"'+V+'" data-modelname\x3d"'+K+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel for\x3d"'+Z+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__color-code" style\x3d"background-color: '+
330O.optionCode+'"\x3e'+O.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"}}else{X="";l=m.viewOptionObj[P].styleAttr||"";for(var S=0;S<T.length;S++){O=T[S];W=!1;V=O.modelIdx.split(",");if(null!=O.modelIdx&&x(V,String(m.frontModelIdx)))W=!0,X=O.modelIdx,A="";else if(A=" is-disabled",0===I)A="";else for(N in K=F.split(","),V)if(x(K,V[N])){A="";break}K=V="";if(""===A){R=O.modelIdx;Z=[];ca=!1;for(aa in L)if(aa!==P)for(ba in U=L[aa].optionList,
331U)D=U[ba],D=D.modelIdx,M=D.split(","),-1<M.indexOf(String(m.frontModelIdx))&&Z.push(D);R=B(L,R,Z,ca,J);m.modelList.length>R&&m.modelList[R]&&(V=m.modelList[R].modelCode,K=m.modelList[R].modelName)}Z="gift-"+G+"-"+S+"-"+C.idx;ca="gift-"+G+"-"+C.idx;r+='\x3cspan class\x3d"option-selector__swiper-slide'+A+'"\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"'+Z+'" name\x3d"'+ca+'" data-modeli\x3d"'+R+'"'+(W?" checked":"")+(""===A?"":
332" disabled")+' an-tr\x3d"header(pim)_offer option:bundle offer:free gift-'+w+'-select-option" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"bundle offer:free gift:'+P.toLowerCase()+":"+O.optionName.toLowerCase()+'" \n\t\t\t\t\t\t\t\t\t data-modelcode\x3d"'+V+'" data-modelname\x3d"'+K+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3clabel class\x3d"option-selector__size-label" for\x3d"'+Z+'"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector__size-label-text"\x3e'+O.optionLocalName+"\x3cspan\x3e\x3c/span\x3e\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"}}F=
333X;I++}}q+='\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--color-chip" data-desktop-view\x3d"2" data-mobile-view\x3d"2"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+y+'"\x3e\n\t\t\t\t\t\t\t'+d+'\n\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\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\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"header(pim)_offer option:bundle offer:free gift-'+
334w+'-image-arrow" 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"\x3e\n\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\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e\n\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"header(pim)_offer option:bundle offer:free gift-'+
335w+'-image-arrow" 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"\x3e\n\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\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t\t\x3cdiv class\x3d"option-selector__wrap option-selector__wrap--capacity" data-desktop-view\x3d"2" data-mobile-view\x3d"2"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector__swiper"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector__swiper-wrapper" style\x3d"'+
336l+'"\x3e\n\t\t\t\t\t\t\t'+r+'\n\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\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\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"header(pim)_offer option:bundle offer:free gift-'+w+'-image-arrow" 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'+
337Granite.I18n.get("Previous")+'\x3c/span\x3e\n\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\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\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e\n\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"header(pim)_offer option:bundle offer:free gift-'+w+'-image-arrow" 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'+
338Granite.I18n.get("Next")+'\x3c/span\x3e\n\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\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\x3c/svg\x3e\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e';return E+q+"\n\t\t\t\t\t\t\x3c/div\x3e\n                    \x3c/div\x3e\n                    "+(p?p:"")+"\n\t\t\t\t\x3c/label\x3e\n  \t\t\t\x3c/div\x3e"}function n(m,E){null==m.modelList[E].displayName&&(m.modelList[E].displayName=
339"");var d={};for(y in m.modelList){var p=m.modelList[y].fmyChipList,q;for(q in p){var l=p[q].fmyChipType+"+"+p[q].fmyChipCode.replace('"',"").replace("\x26quot;","")+"+"+p[q].fmyChipLocalName.replace('"',"").replace("\x26quot;","");d[l]=void 0==d[l]?y:d[l]+(","+y)}}var y=[];p={};if(m.chipOptions)for(q=0;q<m.chipOptions.length;q++){var r=m.chipOptions[q],C=r.fmyChipType,F=r.optionList,I;for(I in F)l=r.fmyChipType+"+"+F[I].optionCode.replace('"',"").replace("\x26quot;","")+"+"+F[I].optionLocalName.replace('"',
340"").replace("\x26quot;",""),void 0!=d[l]&&(F[I].modelIdx=d[l]);p[C]={};p[C].optionList=F;y.push(C)}m.viewOptionObj=p;m.optionTypeList=y;m.frontModelIdx=E;return m}
340function k(m,E){if(null!=E&&0<E.length){E=E.split("-");var d=E[0],p=E[1];setTimeout(function(){if(null!=p){v[d].frontModelIdx=p;var q=n(v[d],p);m.find(".option-selector__swiper-wrapper").each(function(l){if(l=v[d].optionTypeList[l]){var y=b(this).attr("style");v[d].viewOptionObj[l].styleAttr=y}});m.replaceWith(t(q));q=m.children("input");
341q.prop("checked")&&q.prop("checked",!0);e.sg.components.freeGiftPopup.reInitCard();f();b('.free-gift-popup__item[data-index^\x3d"'+d+'-"]').children("input").trigger("click")}},300)}}function f(){b(".free-gift-popup").off("click",".option-selector__wrap--color-chip input, .option-selector__wrap--capacity input");b(".free-gift-popup").on("click",".option-selector__wrap--color-chip input, .option-selector__wrap--capacity input",function(){var m=b(this),E=m.closest(".free-gift-popup__item"),d=E.attr("data-index")||
342"";m=m.attr("data-modeli")||"";d=d.split("-")[0]+"-"+m;k(E,d)})}function a(){var m=b(".free-gift-popup__item\x3einput:checked").parent().attr("data-index"),E=null;if(m){var d=m.split("-");d=v[d[0]].modelList[d[1]];if(z){E=d.sale_price;var p=d.msrp_price}else E={formatted_value:d.promotionPriceDisplay,value:d.promotionPrice},p={formatted_value:d.priceDisplay,value:d.price};E={thumbUrl:d.thumbUrl,thumbUrlAlt:d.thumbUrlAlt,sale_price:E,msrp_price:p,displayName:d.displayName,modelName:d.modelName,modelCode:d.modelCode,
343selectIdx:m};z&&(E.shopSKU=d.shopSKU)}return E}e.sg.components.dynamic=e.sg.components.dynamic||{};var g=e.sg.components.dynamic||{},c=b("#siteCode").val(),h=b("#priceCurrency").val(),v=[],z=!1,H=!1,w=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),B=function(m,E,d,p,q){E=E.split(",");var l=E[0];q=q.indexOf("MEMORY");if(!z&&!H&&p&&0<q){d=m.MEMORY.optionList;var y=0,r=0,C;for(C in d){l=d[C].modelIdx.split(",");for(var F in l)if(x(E,l[F])){m=d[C].optionCode.replace("TB","000").replace(/[^0-9]/g,
344"");r<m&&(r=m,y=l[F]);break}}E=y}else{for(y in d)if(C=d[y]){F=C.split(",");C=[];for(r in E)-1<F.indexOf(String(E[r]))&&C.push(E[r]);0<C.length&&(E=C)}E=0<E.length?E[0]:l}return E};b(document).on("click",".free-gift-popup .layer-popup__button-item .cta--contained:not(.cta--disabled)",function(){g.DetailAfterEvent.offerAndAddonsDiscount(a(),"gift");e.sg.components.freeGiftPopup.closePopup()});b(document).on("click",".free-gift-popup .layer-popup__close, .free-gift-popup .layer-popup__button-item .cta--outlined",
345function(){if(a()){var m=Granite.I18n.get("Selected product will be reset.\x3cbr/\x3eDo you want to proceed?");confirmPopup(m,"freeGift","freeGift")}else e.sg.components.freeGiftPopup.closePopup()});b(document).on("click","#freeGift",function(){e.sg.components.freeGiftPopup.closePopup()});b(document).on("change",'[name\x3d"free-gift-radio"]',function(){b(".free-gift-popup .layer-popup__button-item .cta--contained").removeClass("cta--disabled")});g.freeGift={giftPopupGrid:function(m){var E=e.sg.components.dynamic.detailSharedObj.apiFlag;
346z="GPv2"===E;H="Hybris-new"===E;v=[];z?(v=e.sg.components.dynamic.detailSharedObj.addOnGift.products,v=e.sg.components.dynamic.freeGiftGPv2.setFamily(v)):v=H?e.sg.components.dynamic.freeGiftNewHybris.getAddOnGift():e.sg.components.dynamic.freeGiftHybris.getAddOnGift();E="";if(null!=v){E="";for(var d=0;d<v.length;d++){var p=v[d];if(null!=p.modelList&&0<p.modelList.length){for(var q=0,l=null,y=0;y<p.modelList.length;y++){var r=p.modelList[y],C=r.isStock;r.selected&&"Y"===r.selected&&(q=y,C&&(l=y))}if(null==
347l)for(y=0;y<p.modelList.length;y++)if(r=p.modelList[y],r.isStock){l=y;break}null==l&&(l=q);p=n(p,l);E+=t(p)}}}b(".free-gift-popup__wrap").html(E);f();e.sg.components.freeGiftPopup.showPopup();e.sg.components.freeGiftPopup.reInitCard();m?(E=m.split("-"),E=b('.free-gift-popup__item[data-index^\x3d"'+E[0]+'-"]'),k(E,m)):b(".free-gift-popup .layer-popup__button-item .cta--contained").addClass("cta--disabled")}}})(window,window.jQuery);
348(function(){var e,b,x,u,t,n,k,f,a,g,c,h,v,z,H,w,B,m;function E(){e=document.querySelector(".pd-get-stock-alert-popup");b=document.querySelector(".pd-get-stock-alert-popup__dimmed");x=document.querySelector(".pd-get-stock-alert-popup__contents");u=document.querySelector(".pd-get-stock-alert-popup__inner-wrap");t=document.querySelector(".pd-get-stock-alert-popup__text-field-wrap .text-field-v2");n=document.querySelectorAll(".pd-get-stock-alert-popup__text-field-wrap input");k=document.querySelectorAll(".pd-get-stock-alert-popup__text-field-wrap .text-field-v2__input-icon.delete");
349f=document.querySelectorAll(".pd-get-stock-alert-popup__checkbox-wrap .checkbox-v2__input");a=document.querySelectorAll(".pd-get-stock-alert-popup__checkbox-wrap.is-required .checkbox-v2__input");g=document.querySelector(".pd-get-stock-alert-popup__btn-wrap");c=document.querySelector(".pd-get-stock-alert-popup__btn-close");h=document.querySelector(".pd-get-stock-alert-popup__btn-submit");v=document.querySelectorAll(".pd-get-stock-alert-popup__close");z=document.querySelector(".pd-get-stock-alert-popup__final-wrap");
350H=document.querySelector(".pd-get-stock-alert-popup__final-desc");w=document.querySelector(".pd-get-stock-alert-popup__final-btn-wrap");B=document.querySelector(".pd-get-stock-alert-popup__final-btn-close");m=document.querySelector(".pd-get-stock-alert-popup .scrollbar");O=document.querySelector(".pd-get-stock-alert-popup .scrollbar__wrap")}function d(){document.querySelector(".pd-get-stock-alert-popup .scrollbar")&&window.sg.common.scrollbar.init(document.querySelector(".pd-get-stock-alert-popup .scrollbar"));
351E();e&&(p(),r())}
351function p(){n.forEach(function(K){K.addEventListener("input",q)});k.forEach(function(K){K.addEventListener("click",l)});a.forEach(function(K){K.addEventListener("click",q)});c&&c.addEventListener("click",function(){y()});B.addEventListener("click",function(){y()});for(var A=0;A<v.length;A++)v[A].addEventListener("click",function(){y()});window.addEventListener("resize",function(){r()});A=document.querySelector(V.section+" "+V.close);A.removeEventListener("keydown",I);A.addEventListener("keydown",
352I);A=document.querySelector(""+V.section);A.removeEventListener("keydown",F);A.addEventListener("keydown",F);A=G(e).find("a, button, input").target[0];A.removeEventListener("keydown",L);A.addEventListener("keydown",L);A=document.querySelector(".pd-get-stock-alert-popup__final-wrap .pd-get-stock-alert-popup__close");A.removeEventListener("keydown",J);A.addEventListener("keydown",J);A=G(z).find("a, button, input").target[0];A.removeEventListener("keydown",P);A.addEventListener("keydown",P)}function q(){var A=
353!1,K=!1;A=Array.from(n).every(function(N){return""!==N.value});K=Array.from(a).every(function(N){return!1!==N.checked});A&&K?(h.classList.remove("cta--disabled"),h.removeAttribute("disabled")):(h.classList.add("cta--disabled"),h.setAttribute("disabled",""))}function l(){h.classList.contains("cta--disabled")||(h.classList.add("cta--disabled"),h.setAttribute("disabled",""))}function y(){var A=G(".pd13-offers-product-card-list"),K=G(".pd12-product-finder");0<A.target.length||0<K.target.length?(A=G(".pd-get-stock-alert-popup"),
354A.attr("data-aria-hidden")?(A.attr("aria-hidden","true"),[".compare-popup"].forEach(function(N){"block"===G(N).css("display")&&(G(N).removeAttr("data-aria-hidden"),G(N).removeAttr("aria-hidden"))})):Y()):0<document.querySelectorAll("[data-aria-hidden]").length&&Y();n.value="";t.className="text-field-v2";for(A=0;A<f.length;A++)f[A].checked=!1;h.classList.add("cta--disabled");x.style.display="block";b.removeAttribute("style");z.style.display="none";e.style.display="none";T.popupControl.close();T.visibleScroll();
355W instanceof Element&&W.focus()}function r(){O.style.maxHeight=window.innerHeight-2*(u.getBoundingClientRect().top-x.getBoundingClientRect().top)-g.getBoundingClientRect().height+"px";window.sg.common.scrollbar.resize(m)}function C(){O.style.maxHeight=window.innerHeight-2*(H.getBoundingClientRect().top-z.getBoundingClientRect().top)-w.getBoundingClientRect().height+"px";window.sg.common.scrollbar.resize(m)}function F(A){A.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===A.keyCode&&A.target===document.querySelector(""+
356V.section)&&(A.preventDefault(),document.querySelector(V.section+" "+V.close).focus())}function I(A){A.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==A.keyCode||(A.preventDefault(),G(e).find("a, button, input").target[0].focus())}function L(A){A.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===A.keyCode&&A.target===G(e).find("a, button, input").target[0]&&(A.preventDefault(),document.querySelector(V.section+" "+V.close).focus())}function J(A){A.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==
357A.keyCode||(A.preventDefault(),G(z).find("a, button, input").target[0].focus())}function P(A){A.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===A.keyCode&&A.target===G(z).find("a, button, input").target[0]&&(A.preventDefault(),document.querySelector(".pd-get-stock-alert-popup__final-wrap .pd-get-stock-alert-popup__close").focus())}var G=window.sg.common.$q,T=window.sg.common.utils,X=window.sg.common.utils.setMobileFocusLoop,Y=window.sg.common.utils.removeMobileFocusLoop;var O=m=B=w=H=z=v=h=c=
358g=a=f=k=n=t=u=x=b=e=void 0;var W={},V={section:".pd-get-stock-alert-popup",close:".pd-get-stock-alert-popup__close"};window.sg.components.pdGetStockAlertPopup={init:d,reInit:function(){n.forEach(function(A){A.removeEventListener("input",q)});k.forEach(function(A){A.removeEventListener("click",l)});a.forEach(function(A){A.removeEventListener("click",q)});E();n.forEach(function(A){A.addEventListener("input",q)});k.forEach(function(A){A.addEventListener("click",l)});a.forEach(function(A){A.addEventListener("click",
359q)})},showPopup:function(A){A instanceof Element?W=A:A instanceof Object&&A.target[0]instanceof Element&&(W=A.target[0]);e.style.display="block";G(e).find("a, button, input").target[0].focus();T.popupControl.open(y);T.hiddenScroll();r();A=G(".pd13-offers-product-card-list");var K=G(".pd12-product-finder");0<A.target.length||0<K.target.length?(A=G(".pd-get-stock-alert-popup"),A.attr("data-aria-hidden")?(A.attr("aria-hidden","false"),[".compare-popup"].forEach(function(N){"block"===G(N).css("display")&&
360(G(N).attr("data-aria-hidden",null),G(N).attr("aria-hidden","true"))})):X(A.target[0])):0>=document.querySelectorAll("[data-aria-hidden]").length&&X(e);("iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document)&&"mobile"===T.getCurrentDevice()&&setTimeout(function(){window.scrollTo(0,0)},100)},closePopup:y,showFinalPopup:function(){x.style.display="none";b.style.display="block";z.style.display=
361"block";C();window.addEventListener("resize",function(){C()});G(z).find("a, button, input").target[0].focus()},setFirstFocus:function(){G(e).find(".text-field-v2__input").focus()}};G.ready(function(){return d()})})();
362(function(e){var b=e("#storeDomain").val(),x=e("#localLang").val(),u=e("#multiLanguageYn").val(),t=e("#isGpv2Flag").val(),n="Hybris-new"===e("#shopIntegrationFlag").val()?!0:!1,k="Y"===e("#b2bFlag").val()?!0:!1,f=e("#store_sitecode").val(),a=e("#siteCode").val(),g=e("#countryIsoCode").val(),c="uk fr be be_fr nl de pl id ph tr us".split(" "),h=e(".pd-get-stock-alert-popup"),v=h.find(".text-field-v2"),z=h.find(".js-name"),H="",w="",B="",m="",E=!0;Granite.I18n.setLocale(e("#language").val());var d="GetStock",
363p="br"===a,q=sessionStorage.getItem("isInAppWebViewSessionStorage");console.log("[pd-g-getstock-popup.op.js] isInAppWebViewSessionStorageValue \x3d["+q+"]");var l=checkEppSite();l&&null==window.sg.epp&&(window.sg.epp={},window.sg.epp.common={});var y=l?window.sg.epp.common.companyCode:"";f=l?window.sg.epp.common.companyCode:f;var r=function(){e("#getStockAlertEmailInput").removeAttr("aria-describedby");v.removeClass("error")},C=function(){e("#getStockAlertEmailInput").attr("aria-describedby","getstock-popup-error-txt");
364v.addClass("error");p&&z.removeClass("error");window.sg.components.pdGetStockAlertPopup.setFirstFocus()},F=function(){h.find(".pd-get-stock-alert-popup__close").trigger("click")},I=function(A){h.find(".pd-get-stock-alert-popup__final-desc").html(A);window.sg.components.pdGetStockAlertPopup.showFinalPopup()},L=function(){if("cn"===a)var A="ComingSoon"===d?Granite.I18n.get("comingSoonPopup.requestText"):Granite.I18n.get("oosPopup.requestText");else p?A=Granite.I18n.get("We will notify you when inventory is added. Thank y
364ou."):
365(A=Granite.I18n.get("We will email you when inventory is added."),A+="\x3cbr\x3e"+Granite.I18n.get("Thank you."));I(A)},J=function(A){if(p){if(/^(?=[^@\s]+@[^@\s]+\.[^@\s]+$).+$/.test(A))return w=A,!0;if(/^[0-9]+$/.test(A)&&11==A.length)return B=A,!0}else{if(/^(?=[^@\s]+@[^@\s]+\.[^@\s]+$).+$/.test(A))return w=A,!0;if(/^[0-9]+$/.test(A)&&10==A.length)return B=A,!0}return!1},P=function(A){return/^[0-9]+$/.test(A)&&11==A.length?(B=A,!0):!1},G=function(A){if(null!=A&&A.hasOwnProperty("resultCode")&&
366A.hasOwnProperty("resultMessage")){var K=A.resultCode;var N=A.resultMessage}null!=A?"0000"===K&&"SUCCESS"===N||n||k||p?(r(),L()):C():C()},T=function(A){var K=b+"/"+(l?window.sg.epp.common.companyCode:a)+"/ng/p4v1/stockNotification/register",N={};"in"===a?(N="",N="ComingSoon"===d?"COMING_SOON":"OUT_OF_STOCK",N={productCode:H,stockAlertSubscriptionType:N},N.emailAddress=""!=w?w:"",N.phoneNo=""!=B?B:""):"cn"===a?(N="",N="ComingSoon"===d?"COMING_SOON":"OUT_OF_STOCK",N={phoneNo:A,productCode:H,stockAlertSubscriptionType:N}):
367N={emailAddress:A,productCode:H};e("#shopParmLang").val()&&(N.lang=e("#shopParmLang").val());n||k?(K=b+"/tokocommercewebservices/v2/"+f+"/notifications/stockAlert",e.ajax({headers:{"Content-Type":"application/json"},url:K,type:"POST",dataType:"json",data:JSON.stringify(N),crossDomain:!0,xhrFields:{withCredentials:!0},timeout:2E4,cache:!0,success:function(R){G(R)},error:function(){r();F()}})):e.ajax({url:K,type:"POST",contentType:"application/x-www-form-urlencoded",data:N,xhrFields:{withCredentials:!0},
368crossDomain:!0,dataType:"json",timeout:1E4,success:function(R){G(R)},error:function(){r();F()}})},X=function(A,K,N){e.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store-global"},url:b+"/v4/identity/notification/preferences/in-stock",type:"PUT",data:N,dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(R){A&&R.setRequestHeader("x-ecom-jwt",K);"Y"===u&&R.setRequestHeader("x-ecom-locale",
369x)},success:function(R){null!=R?null!=R.notification&&(R.notification["in-stock"].is_active?(A&&"in"==a?(e(".pd-get-stock-alert-popup__contents").hide(),h.show(),e(".pd-get-stock-alert-popup__final-wrap").show()):(r(),L()),B=w=""):C()):C()},error:function(R){r();var Z=Granite.I18n.get("ERROR");null!=R.responseJSON?(R=R.responseJSON,null!=R.message&&""!==R.message?(window.sg.components.pdGetStockAlertPopup.showPopup(),I(R.message)):I(Z)):I(Z)}})},Y=function(A,K){var N={};N=(new Date).toISOString();
370N={skuId:H,name:K,email:A,createdAt:N,notificationSend:!1};e("#shopParmLang").val()&&(N.lang=e("#shopParmLang").val());e.ajax({url:"/aemapi/v6/product/vtexcall",type:"GET",data:N,xhrFields:{withCredentials:!0},crossDomain:!0,dataType:"json",timeout:1E4,success:function(R){G(R)},error:function(){r();F()}})},O=function(A){validJwtTkn=!0;e.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:b+"/v1/sso/jwt/details",type:"POST",dataType:"json",
371data:JSON.stringify({jwt:A}),xhrFields:{withCredentials:!0},beforeSend:function(K){"Y"===u&&K.setRequestHeader("x-ecom-locale",x)},success:function(K){null!=K&&""!==K&&("otp"==K.login_type?null!=K.user_info.email_address&&""!=K.user_info.email_address&&null!=K.user_info.phone_number&&""!=K.user_info.phone_number?(w=K.user_info.email_address,B=K.user_info.phone_number,m="You will be notified on registered email \x3cb\x3e"+K.user_info.email_address+"\x3c/b\x3e \x26 registered mobile number\u00a0\x3cb\x3e+91 "+
372K.user_info.phone_number+"\x3c/b\x3e"):null==K.user_info.email_address||""===K.user_info.email_address||null!=K.user_info.phone_number&&""!=K.user_info.phone_number?null==K.user_info.phone_number||""===K.user_info.phone_number||null!=K.user_info.email_address&&""!=K.user_info.email_address?null!=K.user_info.email_address&&""!=K.user_info.email_address||null!=K.user_info.phone_number&&""!=K.user_info.phone_number||(J(K.user_identity.user_id),w&&(m="You will be notified on registered email \x3cb\x3e"+
373K.user_identity.user_id+"\x3c/b\x3e"),B&&(m="You will be notified on registered mobile number \x3cb\x3e+91 "+K.user_identity.user_id+"\x3c/b\x3e")):(B=K.user_info.phone_number,m="You will be notified on registered mobile number\u00a0\x3cb\x3e+91 "+K.user_info.phone_number+"\x3c/b\x3e"):(w=K.user_info.email_address,m="You will be notified on registered email \x3cb\x3e"+K.user_info.email_address+"\x3c/b\x3e"):null!=K.user_info.email_address&&""!=K.user_info.email_address&&null!=K.user_info.otp_verified_phone_number&&
374""!=K.user_info.otp_verified_phone_number?(w=K.user_info.email_address,B=K.user_info.otp_verified_phone_number,m="You will be notified on registered email \x3cb\x3e"+K.user_info.email_address+"\x3c/b\x3e \x26 registered mobile number\u00a0\x3cb\x3e+91 "+K.user_info.otp_verified_phone_number+"\x3c/b\x3e"):null==K.user_info.email_address||""===K.user_info.email_address||null!=K.user_info.otp_verified_phone_number&&""!=K.user_info.otp_verified_phone_number?null==K.user_info.otp_verified_phone_number||
375""===K.user_info.otp_verified_phone_number||null!=K.user_info.email_address&&""!=K.user_info.email_address||(B=K.user_info.otp_verified_phone_number,m="You will be notified on registered mobile number\u00a0\x3cb\x3e+91 "+K.user_info.otp_verified_phone_number+"\x3c/b\x3e"):(w=K.user_info.email_address,m="You will be notified on registered email \x3cb\x3e"+K.user_info.email_address+"\x3c/b\x3e"),m+=" once the stock 
375is available.\x3cbr\x3e\x3cbr\x3eBy providing your email/mobile number you agree to marketing communications \x26 inventory alerts from Samsung on Email, SMS \x26 WhatsApp.\x3cbr\x3eBy clicking submit you are agreeing to the above Terms and Conditions.");
376K="{}";""!=w&&""!=B?K='{"notification":{"in-stock":{"is_active": true,"skus":{"'+H+'":{}}}},"email" : "'+w+'","mobile" : "'+B+'"}':""!=w&&""==B?K='{"notification":{"in-stock":{"is_active": true,"skus":{"'+H+'":{}}}},"email" : "'+w+'"}':""==w&&""!=B&&(K='{"notification":{"in-stock":{"is_active": true,"skus":{"'+H+'":{}}}},"mobile" : "'+B+'"}');K=JSON.parse(K);K=JSON.stringify(K);var N=e.cookies.get("jwt_"+g,{domain:".samsung.com"});X(validJwtTkn,N,K);e(".pd-get-stock-alert-popup__final-desc").html(m)}})},
377W=function(){e(".pd-get-stock-alert-popup .pd-get-stock-alert-popup__checkbox-container").html("");var A=b+"/v1/tnc",K={display:"in_stock"};l&&(K.store_id=y);e.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},type:"GET",url:A,data:K,dataType:"json",cache:!0,timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(N){"Y"===u&&N.setRequestHeader("x-ecom-locale",x)},success:function(N){if(null!=N&&0<N.length){for(var R="",Z=0,ca=!1,
378aa=0;aa<N.length;aa++){var U=N[aa].data;if(null!=U&&!0===U.is_active){var ba=N[aa].id;U.read_only?R+='\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-desc"\x3e\x3cp\x3e'+U.content+"\x3c/p\x3e\x3c/div\x3e":(!0===U.is_required&&(ca=!0),R+='\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-wrap'+(U.is_required?" is-required":"")+'"\x3e\x3cdiv class\x3d"checkbox-v2"\x3e\x3cinput class\x3d"checkbox-v2__input js-pd-get-stock-alert-popup__checkbox" type\x3d"checkbox" name\x3d"checkbox" id\x3d"'+
379ba+'" name\x3d"receive notification checkbox'+Z+'"'+(U.is_required?' aria-required\x3d"true"':"")+'\x3e\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+ba+'"\x3e\x3cspan class\x3d"checkbox-v2__label-box-wrap"\x3e\x3cspan class\x3d"checkbox-v2__label-box"\x3e\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"checkbox-v2__label-text"\x3e'+
380U.content+'\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-desc"\x3e\x3c/div\x3e',Z++)}}R+='\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-desc is-required" style\x3d"display:'+(ca?"block":"none")+'"\x3e'+Granite.I18n.get("* Required field")+"\x3c/div\x3e";e(".pd-get-stock-alert-popup .pd-get-stock-alert-popup__checkbox-container").html(R);window.sg.components.pdGetStockAlertPopup.reInit()}},error:function(N){var R="";N&&N.responseJSON&&
381null!==N.responseJSON.message&&""!==N.responseJSON.message&&(R=N.responseJSON.message);Granite&&Granite.author||-1<document.URL.indexOf("/container")?console.error("[pd-g-getstock-popup] "+R):confirmPopup(R)}})},V=function(){e(".pd-get-stock-alert-popup .pd-get-stock-alert-popup__checkbox-container").html("");var A='\x3cp class\x3d"pd-get-stock-alert-popup__disclaimer-text"\x3e'+Granite.I18n.get("By providing your email you agree to marketing communications \x26 inventory alerts from Samsung.")+"\x3c/p\x3e";
382IS_B2B&&"mx"==a&&(A="");var K=b+"/tokocommercewebservices/v2/"+f+"/tnc";b||"us"!==a||(K=(-1!=window.location.host.indexOf("www")?"https://p1-smu-api-cdn.shop.samsung.com":"https://s2-smu-api-cdn.ecom-stg.samsung.com")+"/tokocommercewebservices/v2/"+f+"/tnc");var N={context:"PRODUCT",value:"stock_alert_tc"};e("#shopParmLang").val()&&(N.lang=e("#shopParmLang").val());e.ajax({type:"GET",url:K,data:N,dataType:"json",cache:!0,timeout:2E4,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(R){if(null!=
383R&&0<R.length){for(var Z="",ca=0,aa=!1,U=0;U<R.length;U++){var ba=R[U];if(null!=ba){var D=ba.code;"DISCLAIMER"===ba.type?(ba=ba.content,k&&"true"===e("#shopIntegrationFlag").val()&&null==ba&&(ba=""),A='\x3cp class\x3d"pd-get-stock-alert-popup__disclaimer-text"\x3e'+ba+"\x3c/p\x3e"):(aa||!0!==ba.required||(aa=!0),Z+='\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-wrap'+(ba.required?" is-required":"")+'"\x3e\x3cdiv class\x3d"checkbox-v2"\x3e\x3cinput class\x3d"checkbox-v2__input js-pd-get-stock-alert-popup__checkbox" type\x3d"checkbox" name\x3d"checkbox" id\x3d"'+
384D+'" name\x3d"receive notification checkbox'+ca+'"'+(ba.required?' aria-required\x3d"true"':"")+'\x3e\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+D+'"\x3e\x3cspan class\x3d"checkbox-v2__label-box-wrap"\x3e\x3cspan class\x3d"checkbox-v2__label-box"\x3e\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"checkbox-v2__label-text"\x3e'+
385ba.content+'\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-desc"\x3e\x3c/div\x3e',ca++)}}Z+='\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-desc is-required" style\x3d"display:'+(aa?"block":"none")+'"\x3e'+Granite.I18n.get("* Required field")+"\x3c/div\x3e";e(".pd-get-stock-alert-popup .pd-get-stock-alert-popup__checkbox-container").html(Z)}},error:function(R){},complete:function(){e(".pd-get-stock-alert-popup .pd-get-stock-alert-popup__disclaimer").html(A);
386window.sg.components.pdGetStockAlertPopup.reInit()}})};e(document).on("click",".js-cta-stock",function(){H=e(this).attr("data-modelcode");"in"===a?H=e(this).attr("data-sku-code"):p&&(H=e(this).attr("data-skuid"));null!=e(this).attr("data-virtual-modelcode")&&(H=e(this).attr("data-virtual-modelcode"));h.find(".pd-get-stock-alert-popup__btn-submit").attr("data-modelcode",e(this).attr("data-modelcode"));h.find(".pd-get-stock-alert-popup__btn-submit").attr("data-modelname",e(this).attr("data-modelname"));
387h.find(".pd-get-stock-alert-popup__btn-close").attr("data-modelcode",e(this).attr("data-modelcode"));h.find(".pd-get-stock-alert-popup__btn-close").attr("data-modelname",e(this).attr("data-modelname"));h.find(".pd-get-stock-alert-popup__btn-submit").attr("an-tr",e(this).attr("data-antr")?e(this).attr("data-antr"):"pd03_product finder:stock alert-"+digitalData.page.pageInfo.pageTrack+"-cta-popup");h.find(".pd-get-stock-alert-popup__btn-close").attr("an-tr",e(this).attr("data-antr")?e(this).attr("data-antr"):
388"pd03_product finder:stock alert-"+digitalData.page.pageInfo.pageTrack+"-cta-popup");h.find(".pd-get-stock-alert-popup__close").attr("an-tr",e(this).attr("data-antr")?e(this).attr("data-antr"):"pd03_product finder:stock alert-"+digitalData.page.pageInfo.pageTrack+"-cta-popup");if("Y"===t){var A=e.cookies.get("jwt_"+g,{domain:".samsung.com"});if(null!=A){var K={jwt:A};l&&(K.store_id=y);e.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},
389url:b+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(K),timeout:1E4,xhrFields:{withCredentials:!0},beforeSend:function(N){"Y"===u&&N.setRequestHeader("x-ecom-locale",x)},success:function(N){O(A)},error:function(N,R,Z){console.log(N.responseText)}})}else window.sg.components.pdGetStockAlertPopup.showPopup(e(this)[0])}else"us"===a&&(h.find(".pd-get-stock-alert-popup__close").attr("data-modelcode",e(this).attr("data-modelcode")).attr("data-modelname",e(this).attr("data-modelname")),
390h.find(".pd-get-stock-alert-popup__final-btn-close").attr("data-modelcode",e(this).attr("data-modelcode")).attr("data-modelname",e(this).attr("data-modelname")),h.find(".pd-get-stock-alert-popup__close").attr("an-tr",e(this).attr("data-antr")?e(this).attr("data-antr"):"pd21_product finder / cards-"+digitalData.page.pageInfo.pageTrack+"-stock alert popup-buy_cta")),"cn"===a&&(d=e(this).attr("data-gs-flag"),K='\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-wrap is-required"\x3e\x3cdiv class\x3d"checkbox-v2"\x3e\x3cinput class\x3d"checkbox-v2__input js-pd-get-stock-alert-popup__checkbox" type\x3d"checkbox" name\x3d"checkbox" id\x3d"cn_StockAlert_TC_1" aria-required\x3d"true"\x3e\x3clabel class\x3d"checkbox-v2__label" for\x3d"cn_StockAlert_TC_1"\x3e\x3cspan class\x3d"checkbox-v2__label-box-wrap"\x3e\x3cspan class\x3d"checkbox-v2__label-box"\x3e\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"checkbox-v2__label-text"\x3e'+
391Granite.I18n.get("stockAlert T\x26C Policy")+'\x3c/span\x3e\x3c/label\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"pd-get-stock-alert-popup__checkbox-desc is-required" style\x3d"display:block"\x3e'+Granite.I18n.get("stockAlert required Text")+"\x3c/div\x3e",h.find(".pd-get-stock-alert-popup__checkbox-container").html(K),h.find("div.pd-get-stock-alert-popup__disclaimer").html(Granite.I18n.get("stockAlert Disclaimer")),h.find(".pd-get-stock-alert-popup__btn-submit").attr("data-gs-flag",d),"ComingSoon"===
392d&&(h.find(".pd-get-stock-alert-popup__header h2.text-title").html(Granite.I18n.get("comingSoonPopup.mainTitle")),h.find(".pd-get-stock-alert-popup__header p.pd-get-stock-alert-popup__desc").html(Granite.I18n.get("comingSoonPopup.subtitle"))),window.sg.components.pdGetStockAlertPopup.reInit()),"in"===a&&(B=w=""),IS_B2B&&"cn"!==a&&E&&(E=!1,V()),window.sg.components.pdGetStockAlertPopup.showPopup(e(this)[0])});e(document).on("click",".pd-get-stock-alert-popup .pd-get-stock-alert-popup__btn-submit",
393function(){var A=e("#getStockAlertEmailInput").val();if("in"===a){var K=e("#getStockAlertEmailInput").val();if(J(K))r();else return C(),!1}else if("cn"===a){var N=e("#getStockAlertEmailInput").val();if(P(N))r();else return C(),!1}else if(p){K=e("#getStockAlertNameInput").val();K=K&&0!==K.trim().length?!0:!1;if(K)r();else return e("#getStockAlertNameInput").attr("aria-describedby","getstock-popup-error-txt"),z.addClass("error"),window.sg.components.pdGetStockAlertPopup.setFirstFocus(),!1;if(J(A))r();
394else return C(),!1}else if(K=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(A)?!0:!1,K)r();else return C(),!1;if("Y"===t){N="";if(c.includes(a)){K=h.find(".js-pd-get-stock-alert-popup__checkbox");var R="";N=',"consents": {';K.each(function(){var U=e(this);0<R.length&&(R+=",");R+='"'+U.attr("id")+'": {"is_accepted": '+U.is(":checked")+"}"});N=N+R+"}";""===R&&(N="")}A='{"notification":{"in-stock":{"is_active": true,"skus":{"'+H+'":{}}}},"email" : "'+A+'"'+N+"}";"in"==a&&(""!=w&&""!=B?A='{"notification":{"in-stock":{"is_active": true,"skus":{"'+
395H+'":{}}}},"email" : "'+w+'","mobile" : "'+B+'"'+N+"}":""!=w&&""==B?A='{"notification":{"in-stock":{"is_active": true,"skus":{"'+H+'":{}}}},"email" : "'+w+'"'+N+"}":""==w&&""!=B&&(A='{"notification":{"in-stock":{"is_active": true,"skus":{"'+H+'":{}}}},"mobile" : "'+B+'"'+N+"}"));A=JSON.parse(A);var Z=JSON.stringify(A),ca=e.cookies.get("jwt_"+g,{domain:".samsung.com"}),aa=!1;null!=ca?(A={jwt:ca},l&&(A.store_id=y),e.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},
396url:b+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(A),timeout:1E4,xhrFields:{withCredentials:!0},beforeSend:function(U){"Y"===u&&U.setRequestHeader("x-ecom-locale",x)}
396,success:function(U){if(200===U.statusCode||"200"===U.statusCode)aa=!0;X(aa,ca,Z)},error:function(U,ba,D){X(aa,ca,Z)}})):X(aa,ca,Z)}else"cn"===a?T(N):p?(N=e("#getStockAlertNameInput").val(),Y(A,N)):T(A);return!0});e(function(){var A=!1;l&&null!=e("#wtbCurrentPagePath").val()&&-1<e("#wtbCurrentPagePath").val().indexOf("/common/error")&&
397(A=!0);0<h.length&&!A&&(k||!c.includes(a)||"Y"!==t&&!n||(n?V():W()))})})(window.jQuery);
398(function(){function e(a){a.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===a.keyCode&&a.target===document.querySelector(f.section+" "+f.layerPopup)&&(a.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}function b(a){a.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==a.keyCode||(a.preventDefault(),document.querySelector(f.section+" "+f.layerPopup).focus())}function x(){k.el.removeAttribute("style");n.popupControl.close();n.visibleScroll();document.querySelector(".pdd-buying-tool")?
399document.querySelector('.pdd-buying-tool [data-target-popup\x3d"leasingLearnmorePopup"]').focus():document.querySelector('.pd-buying-tool [data-target-popup\x3d"leasingLearnmorePopup"]').focus()}var u=window.sg.common.$q,t=window.sg.common.layerPopupMaxHeight,n=window.sg.common.utils,k={},f={section:".leasing-learnmore-popup",layerPopup:".layer-popup",close:".layer-popup__close"};window.sg.components.leasingLearnmorePopup={showPopup:function(){k.el.style.display="block";t.reInit(k.layerEl);var a=
400document.querySelector(f.section+" "+f.layerPopup);a.setAttribute("tabindex",0);a.focus();n.popupControl.open(x);n.hiddenScroll()}};u.ready(function(){var a=document.querySelector(".leasing-learnmore-popup");a&&(k={el:a,layerEl:a.querySelector(".layer-popup"),closeEl:a.querySelector(".layer-popup__close")},t.init(k.layerEl),k.closeEl.addEventListener("click",x),a=document.querySelector(f.section+" "+f.close),a.removeEventListener("keydown",b),a.addEventListener("keydown",b),a=document.querySelector(f.section+
401" "+f.layerPopup),a.removeEventListener("keydown",e),a.addEventListener("keydown",e))})})();
402(function(){var e,b;function x(){var h=document.querySelector(".manufacturer-info-popup");h&&(e=h,b=h.querySelector(".layer-popup"),c=h.querySelector(".layer-popup__close"),f.init(b),c.addEventListener("click",n),h=document.querySelector(g.section+" "+g.close),h.removeEventListener("keydown",t),h.addEventListener("keydown",t),h=document.querySelector(g.section+" "+g.layerPopup),h.removeEventListener("keydown",u),h.addEventListener("keydown",u))}function u(h){h.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===
403h.keyCode&&h.target===document.querySelector(g.section+" "+g.layerPopup)&&(h.preventDefault(),document.querySelector(g.section+" "+g.close).focus())}function t(h){h.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==h.keyCode||(h.preventDefault(),document.querySelector(g.section+" "+g.layerPopup).focus())}function n(){e.removeAttribute("style");a.popupControl.close();a.visibleScroll();document.querySelector(".pdd-buying-tool")?document.querySelector('.pdd-buying-tool [data-target-popup\x3d"manufacturerInfoPopup"]').focus():
404document.querySelector('.pd-buying-tool [data-target-popup\x3d"manufacturerInfoPopup"]').focus()}var k=window.sg.common.$q,f=window.sg.common.layerPopupMaxHeight,a=window.sg.common.utils,g={section:".manufacturer-info-popup",layerPopup:".layer-popup",close:".layer-popup__close"};var c=b=e=void 0;window.sg.components.manufacturerInfoPopup={reInit:x,showPopup:function(){e.style.display="block";f.reInit(b);var h=document.querySelector(g.section+" "+g.layerPopup);h.setAttribute("tabindex",0);h.focus();
405a.popupControl.open(n);a.hiddenScroll()}};k.ready(x)})();
406(function(){function e(g){if(g.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===g.keyCode){var c=k.layerEl.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];c&&g.target===c&&(g.preventDefault(),document.querySelector(a.section+" "+a.close).focus())}}function b(g){g.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==g.keyCode||(g.preventDefault(),(g=k.layerEl.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&g.focus())}function x(){k.layerEl.classList.remove("sc-learn-more-popup--show");
407k.el.removeAttribute("style");n.popupControl.close();n.visibleScroll();n.removeMobileFocusLoop();f?f.focus():n.buyingFocus("hubbleCareinfoPopup")}var u=window.sg.common.$q,t=window.sg.common.layerPopupMaxHeight,n=window.sg.common.utils,k={},f=!1,a={section:".sc-learn-more-popup",layerPopup:".layer-popup",close:".sc-learn-more-popup__close"};window.sg.components.scLearnMorePopup={showPopup:function(g){f=void 0===g?!1:g;k.el.style.display="block";k.layerEl.classList.add("sc-learn-more-popup--show");
408k.layerEl.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0].focus();n.popupControl.open(x);n.hiddenScroll();n.setMobileFocusLoop(k.el);t.reInit(k.layerEl)}};u.ready(function(){var g=document.querySelector(".sc-learn-more-popup");g&&(k={el:g,layerEl:g.querySelector(".layer-popup"),closeEl:g.querySelector(".sc-learn-more-popup__close")},t.init(k.layerEl),k.closeEl.addEventListener("click",x),g=document.querySelector(a.section+" "+a.close),g.removeEventListener("keydown",b),g.addEventListener("keydown",
409b),g=document.querySelector(a.section+" "+a.layerPopup),g.removeEventListener("keydown",e),g.addEventListener("keydown",e))})})();
410(function(){function e(c){if(c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode){var h=f.el.querySelectorAll('a, button:not(.disabled button), input:not([type\x3d"hidden"]), textarea')[0];h&&c.target===h&&(c.preventDefault(),document.querySelector(g.section+" "+g.close).focus())}}function b(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),(c=f.el.querySelectorAll('a, button:not(.disabled button), input:not([type\x3d"hidden"]), textarea')[0])&&c.focus())}
411function x(){f.tab=f.el.querySelector(g.tab);f.panel=f.el.querySelectorAll(g.panel);f.tab&&(window.sg.common.tab.reInit(f.tab),f.tab.addEventListener("tabSelect",function(c){f.panel.forEach(function(h,v){v===c.detail?h.classList.add(g.activeCls):h.classList.remove(g.activeCls)});n.setMax(f.layerEl)}))}function u(){f.el.removeAttribute("style");k.popupControl.close();k.visibleScroll();k.removeMobileFocusLoop();a&&a instanceof Element?a.focus():k.buyingFocus("hubbleCareinfoPopup")}var t=window.sg.common.$q,
412n=window.sg.common.layerPopupMaxHeight,k=window.sg.common.utils,f={},a=null,g={section:".hubble-careinfo-popup",layerPopup:".layer-popup",close:".hubble-care-popup__close",tab:".tab",panel:".hubble-careinfo-popup__panel",activeCls:"is-active"};window.sg.components.hubbleCareinfoPopup={showPopup:function(c){a=void 0===c?null:c;k.popupControl.open(u);k.hiddenScroll();k.setMobileFocusLoop(f.el);f.el.style.display="block";x();n.reInit(f.layerEl);(c=f.el.querySelectorAll('a, button:not(.tab__left-arrow, .tab__right-arrow), input:not([type\x3d"hidden"]), textarea')[0])&&
413c.focus()},closePopup:u};t.ready(function(){var c=document.querySelector(".hubble-careinfo-popup");c&&(f={el:c,layerEl:c.querySelector(".layer-popup"),closeEl:c.querySelector(".hubble-care-popup__close"),tab:c.querySelector(g.tab),panel:c.querySelectorAll(g.panel)},n.init(f.layerEl),f.closeEl.addEventListener("click",u),c=document.querySelector(g.section+" "+g.close),c.removeEventListener("keydown",b),c.addEventListener("keydown",b),c=document.querySelector(g.section+" "+g.layerPopup),c.removeEventListener("keydown",
414e),c.addEventListener("keydown",e))})})();
415(function(){function e(){n(c.section).target.length&&(n(".tariff-info-popup .layer-popup").target.forEach(function(h){k.init(h)}),a=n(c.section).target[0],b())}function b(){var h=n(c.section);h.find(c.layerPopup);h.find(c.close).off("click").on("click",t);h.find(c.closeCta).off("click").on("click",t);h=document.querySelector(c.section+" .layer-popup__close");h.removeEventListener("keydown",u);h.addEventListener("keydown",u);h=document.querySelector(c.section+" .layer-popup");h.removeEventListener("keydown",
416x);h.addEventListener("keydown",x)}function x(h){if(h.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===h.keyCode){var v=a.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];v&&h.target===v&&(h.preventDefault(),document.querySelector(c.section+" "+c.close).focus())}}function u(h){h.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==h.keyCode||(h.preventDefault(),(h=a.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&h.focus())}function t(){n(c.section).hide();
417f.popupControl.close();f.visibleScroll();f.removeMobileFocusLoop();g&&g instanceof Element?g.focus():f.buyingFocus("tariffInfoPopup")}var n=window.sg.common.$q,k=window.sg.common.layerPopupMaxHeight,f=window.sg.common.utils,a=null,g=null,c={section:".tariff-info-popup",layerPopup:".layer-popup",close:".layer-popup__close",closeCta:".tariff-info-popup__cta .cta"};window.sg.components.tariffInfoPopup={init:e,reInit:e,showPopup:function(h){g=void 0===h?null:h;n(c.section).show();n(".tariff-info-popup .layer-popup").target.forEach(function(v){k.reInit(v)}
417);
418(h=a.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&h.focus();f.popupControl.open(t);f.hiddenScroll();f.setMobileFocusLoop(a)},closePopup:t};n.ready(e)})();var tariffInfoData={};(function(e,b){b("#storeDomain").val();b(document).off("click","#tariff-info-popup .tariff-info-popup__cta \x3e a").on("click","#tariff-info-popup .tariff-info-popup__cta \x3e a",function(){b("#pd-tariff-option-0").trigger("click")})})(window,$);
419(function(){var e,b,x;function u(){var w=document.querySelector(".trade-in-learn-more-popup");w&&(e=w,b=w.querySelector(".trade-in-learn-more-popup__contents"),x=w.querySelector(".trade-in-learn-more-popup__inner-wrap"),v=w.querySelector(".trade-in-learn-more-popup__close"),t())}function t(){v.addEventListener("click",a);window.addEventListener("resize",function(){n()});var w=document.querySelector(H.section+" "+H.close);w.removeEventListener("keydown",f);w.addEventListener("keydown",f);w=document.querySelector(""+
420H.section);w.removeEventListener("keydown",k);w.addEventListener("keydown",k)}function n(){if(window.innerHeight<=(1440<=window.innerWidth?860:1440>window.innerWidth&&769<=window.innerWidth?860/1440*window.innerWidth:768>=window.innerWidth&&360<window.innerWidth?740/360*window.innerWidth:740)){var w=Math.round(2*(x.getBoundingClientRect().top-b.getBoundingClientRect().top));b.querySelector(".scrollbar__wrap").style.maxHeight=window.innerHeight-w+"px"}else b.querySelector(".scrollbar__wrap").removeAttribute("style");
421c.resize(b.querySelector(".scrollbar"))}function k(w){if(w.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===w.keyCode){var B=b.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];B&&w.target===B&&(w.preventDefault(),document.querySelector(H.section+" "+H.close).focus())}}function f(w){w.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==w.keyCode||(w.preventDefault(),(w=b.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&w.focus())}function a(){b.classList.remove("trade-in-popup__step--show");
422e.removeAttribute("style");h.popupControl.close();h.visibleScroll();h.removeMobileFocusLoop();z?z.focus():h.buyingFocus("tradeInLearnMorePopup")}var g=window.sg.common.$q,c=window.sg.common.scrollbar,h=window.sg.common.utils;var v=x=b=e=void 0;var z=!1,H={section:".trade-in-learn-more-popup",close:".trade-in-learn-more-popup__close"};window.sg.components.tradeInLearnMorePopup={init:u,showPopup:function(w){z=void 0===w?!1:w;e.style.display="block";b.classList.add("trade-in-learn-more-popup--show");
423b.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0].focus();h.popupControl.open(a);h.hiddenScroll();h.setMobileFocusLoop(e);n()}};g.ready(function(){return u()})})();
424(function(){function e(c){if(c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode){var h=document.querySelector(""+f.section).querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];h&&c.target===h&&(c.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}}function b(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),document.querySelector(""+f.section).querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0].focus())}
425function x(){a.instances.get(document.querySelector(".upgrade-learn-more-popup")).close()}var u=window.sg.common.$q,t=window.sg.common.utils,n=window.sg.common.constants.BREAKPOINTS,k=window.sg.common.scrollbar,f={section:".upgrade-learn-more-popup",close:".upgrade-learn-more-popup__close"},a=function(c){this.els={el:c,upgradeLearnMoreCloseBtn:c.querySelector(".upgrade-learn-more-popup__close"),upgradeLearnMorePopupContent:c.querySelector(".upgrade-learn-more-popup__content"),upgradeLearnMorePopupContentWrap:c.querySelector(".upgrade-learn-more-popup__content-wrap")};
426this.init()};a.prototype.init=function(){a.instances.get(this.els.el)||(a.instances.set(this.els.el,this),this.bindEvents(),this.resize())};a.prototype.bindEvents=function(){var c=this;this.els.upgradeLearnMoreCloseBtn.addEventListener("click",this.close.bind(this));u(window).on("resize",function(){c.resize()});var h=document.querySelector(f.section+" "+f.close);h.removeEventListener("keydown",b);h.addEventListener("keydown",b);h=document.querySelector(""+f.section);h.removeEventListener("keydown",
427e);h.addEventListener("keydown",e)};a.prototype.close=function(){this.els.el.removeAttribute("style");t.popupControl.close();t.visibleScroll();t.removeMobileFocusLoop();var c=this.focusTargetEl;c&&c instanceof Element?c.focus():t.buyingFocus("upgradeLearnMorePopup")};a.prototype.show=function(c){this.focusTargetEl=c;this.els.el.style.display="block";
427(c=this.els.el.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&c.focus();c=this.els.el;t.popupControl.open(x);t.hiddenScroll();
428t.setMobileFocusLoop(c);this.resize()};a.prototype.resize=function(){var c=t.getViewPort().width,h=t.getViewPort().height,v=h-30*c/1440*2;if(c>=n.DESKTOP){if(!this.els.upgradeLearnMorePopupContentWrap)return;this.els.upgradeLearnMorePopupContentWrap.style.maxHeight=906>=h?v+"px":"782px";this.els.upgradeLearnMorePopupContent.style.maxHeight="786px"}else if(c<=n.DESKTOP&&c>=n.MOBILE){if(!this.els.upgradeLearnMorePopupContentWrap)return;this.els.upgradeLearnMorePopupContentWrap.style.maxHeight=906>h?
429v+"px":"782px"}else{c=h-10*c/360*2;this.els.upgradeLearnMorePopupContent.style.maxHeight=c+"px";if(!this.els.upgradeLearnMorePopupContentWrap)return;this.els.upgradeLearnMorePopupContentWrap.style.maxHeight=c+"px"}k.resize(this.els.upgradeLearnMorePopupContent.querySelector(".scrollbar"))};a.instances=new WeakMap;var g={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".upgrade-learn-more-popup"))).forEach(function(c){a.instances.has(c)||new a(c)})},showPopup:function(c){c=
430void 0===c?null:c;a.instances.get(document.querySelector(".upgrade-learn-more-popup")).show(c)}};window.sg.components.upgradeLearnMorePopup=g;u.ready(g.initAll)})();
431(function(){function e(c){if(c.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===c.keyCode){var h=document.querySelector(""+f.section).querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];h&&c.target===h&&(c.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}}function b(c){c.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==c.keyCode||(c.preventDefault(),document.querySelector(""+f.section).querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0].focus())}
432function x(){a.instances.get(document.querySelector(".upgrade-popup")).close()}var u=window.sg.common.$q,t=window.sg.common.utils,n=window.sg.common.constants.BREAKPOINTS,k=window.sg.common.scrollbar,f={section:".upgrade-popup",close:".upgrade-popup__close"},a=function(c){this.els={el:c,upgradePopupCloseBtn:c.querySelector(".upgrade-popup__close"),upgradePopupContent:c.querySelector(".upgrade-popup__content"),upgradePopupContentWrap:c.querySelector(".upgrade-popup__content-wrap"),upgradePopupFooter:c.querySelector(".upgrade-popup__footer"),
433upgradePopupCloseCta:c.querySelector(".upgrade-popup__footer .upgrade-popup__cta--close"),upgradePopupSubmitCta:c.querySelector(".upgrade-popup__footer .upgrade-popup__cta--submit"),upgradePopupRequiredBtn:c.querySelectorAll(".upgrade-popup__check-list--is-required .upgrade-popup__check-box"),upgradePopupRequiredInfo:c.querySelector(".upgrade-popup__check-error"),requiredFieldCount:0};this.init()};a.prototype.init=function(){a.instances.get(this.els.el)||(a.instances.set(this.els.el,this),this.bindEvents(),
434this.els.upgradePopupRequiredBtn&&1<=this.els.upgradePopupRequiredBtn.length&&this.setSubmitBtnDisabled())};a.prototype.setResetElement=function(){this.els.upgradePopupContentWrap=this.els.el.querySelector(".upgrade-popup__content-wrap");[].concat($jscomp.arrayFromIterable(this.els.upgradePopupContentWrap.querySelectorAll(".checkbox-radio input"))).forEach(function(c){c.checked=!1});this.els.upgradePopupRequiredBtn=this.els.el.querySelectorAll(".upgrade-popup .upgrade-popup__check-list--is-required .upgrade-popup__check-box");
435this.els.upgradePopupRequiredInfo=this.els.el.querySelector(".upgrade-popup .upgrade-popup__check-error")};a.prototype.reInit=function(){this.setResetElement();this.bindCheckBoxEvent();this.checkRequiredInfo();this.els.upgradePopupRequiredBtn&&1<=this.els.upgradePopupRequiredBtn.length?this.setSubmitBtnDisabled():this.setSubmitBtnActive()};a.prototype.bindEvents=function(){var c=this;this.els.upgradePopupCloseBtn.addEventListener("click",this.close.bind(this));this.els.upgradePopupCloseCta.addEventListener("click",
436this.close.bind(this));u(window).on("resize",function(){c.resize()});this.bindCheckBoxEvent();this.checkRequiredInfo();var h=document.querySelector(f.section+" "+f.close);h.removeEventListener("keydown",b);h.addEventListener("keydown",b);h=document.querySelector(""+f.section);h.removeEventListener("keydown",e);h.addEventListener("keydown",e)};a.prototype.bindCheckBoxEvent=function(){var c=this;if(this.els.upgradePopupRequiredBtn&&0!==this.els.upgradePopupRequiredBtn.length)for(var h={$jscomp$loop$prop$i$7:0};h.$jscomp$loop$prop$i$7<
437this.els.upgradePopupRequiredBtn.length;
437h={$jscomp$loop$prop$i$7:h.$jscomp$loop$prop$i$7},h.$jscomp$loop$prop$i$7++)this.els.upgradePopupRequiredBtn[h.$jscomp$loop$prop$i$7].addEventListener("click",function(v){return function(){c.bindCheckBoxBtn(v.$jscomp$loop$prop$i$7)}}(h))};a.prototype.checkRequiredInfo=function(){this.els.upgradePopupRequiredBtn?1<=this.els.upgradePopupRequiredBtn.length?this.els.upgradePopupRequiredInfo.style.display="block":this.els.upgradePopupRequiredInfo&&0!==this.els.upgradePopupRequiredInfo.length&&
438(this.els.upgradePopupRequiredInfo.style.display="none"):this.els.upgradePopupRequiredInfo.style.display="none"};a.prototype.setSubmitBtnDisabled=function(){this.els.upgradePopupSubmitCta.classList.add("cta--disabled")};a.prototype.setSubmitBtnActive=function(){this.els.upgradePopupSubmitCta.classList.remove("cta--disabled")};a.prototype.close=function(){this.setSubmitBtnDisabled();this.els.el.removeAttribute("style");t.popupControl.close();t.visibleScroll();t.removeMobileFocusLoop();var c=this.focusTargetEl;
439c&&c instanceof Element?c.focus():t.buyingFocus("upgradePopup")};a.prototype.show=function(c){this.focusTargetEl=c;this.els.el.style.display="block";(c=this.els.el.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0])&&c.focus();c=this.els.el;t.popupControl.open(x);t.hiddenScroll();t.setMobileFocusLoop(c);this.resize();window.sg.common.lazyLoad.setLazyLoad()};a.prototype.resize=function(){var c=t.getViewPort().width,h=t.getViewPort().height,v=this.els.upgradePopupFooter.offsetHeight;
440var z=h-30*c/1440*2-v;this.els.upgradePopupContentWrap&&this.els.upgradePopupContent&&(c>=n.MOBILE?this.els.upgradePopupContentWrap.style.maxHeight=h<(1440<=c?799:739+30*c/1440*2)?z+"px":"639px":(z=10*c/360*2,832>h?this.els.upgradePopupContentWrap.style.maxHeight=h-z-v+"px":434<c&&(this.els.upgradePopupContent.style.maxHeight=h-z+"px",this.els.upgradePopupContentWrap.style.maxHeight=h-z-v+"px")),k.resize(this.els.upgradePopupContent.querySelector(".scrollbar")))};a.prototype.bindCheckBoxBtn=function(){for(var c=
441this.els.requiredFieldCount=0;c<this.els.upgradePopupRequiredBtn.length;c++)this.els.upgradePopupRequiredBtn[c].checked&&this.els.requiredFieldCount++;this.els.upgradePopupRequiredBtn.length===this.els.requiredFieldCount?this.setSubmitBtnActive():this.setSubmitBtnDisabled()};a.instances=new WeakMap;var g={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".upgrade-popup"))).forEach(function(c){a.instances.has(c)||new a(c)})},reInit:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".upgrade-popup"))).forEach(function(c){a.instances.has(c)&&
442a.instances.get(c).reInit()})},showPopup:function(c){c=void 0===c?null:c;a.instances.get(document.querySelector(".upgrade-popup")).show(c)},closePopup:x};window.sg.components.upgradePopup=g;u.ready(g.initAll)})();
443(function(){function e(){a.close=a.layerPopup.find(f.close);a.close.off("click").on("click",u);var g=document.querySelector(f.section+" "+f.close);g.removeEventListener("keydown",x);g.addEventListener("keydown",x);g=document.querySelector(f.section+" "+f.layerPopup);g.removeEventListener("keydown",b);g.addEventListener("keydown",b)}function b(g){g.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===g.keyCode&&g.target===document.querySelector(f.section+" "+f.layerPopup)&&(g.preventDefault(),document.querySelector(f.section+
444" "+f.close).focus())}function x(g){g.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==g.keyCode||(g.preventDefault(),document.querySelector(f.section+" "+f.layerPopup).focus())}function u(){a.layerPopup.hide();k.popupControl.close();k.visibleScroll();document.querySelector('.pd-buying-tool [data-target-popup\x3d"warrantyInfoPopup"]').focus()}var t=window.sg.common.$q,n=window.sg.common.layerPopupMaxHeight,k=window.sg.common.utils,f={section:".warranty-info-popup",layerPopup:".layer-popup",close:".layer-popup__close"},
445a={layerPopup:null,close:null};window.sg.components.warrantyInfoPopup={showPopup:function(){var g=document.querySelector(f.section+" "+f.layerPopup);g.setAttribute("tabindex",0);g.focus();k.popupControl.open(u);k.hiddenScroll();a.layerPopup.show();n.reInit(a.layerPopup.target[0])}};
445t.ready(function(){a.layerPopup=t(f.section+" "+f.layerPopup);a.layerPopup.target.length&&(a.layerPopup.target.forEach(function(g){n.init(g)}),e())})})();
446(function(){function e(a){a.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===a.keyCode&&a.target===document.querySelector(f.section+" "+f.layerPopup)&&(a.preventDefault(),document.querySelector(f.section+" "+f.close).focus())}function b(a){a.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==a.keyCode||(a.preventDefault(),document.querySelector(f.section+" "+f.layerPopup).focus())}function x(){k.el.removeAttribute("style");n.popupControl.close();n.visibleScroll();document.querySelector(".pdd-buying-tool")?
447document.querySelector('.pdd-buying-tool [data-target-popup\x3d"warrantyPolicyPopup"]').focus():document.querySelector('.pd-buying-tool [data-target-popup\x3d"warrantyPolicyPopup"]').focus()}var u=window.sg.common.$q,t=window.sg.common.layerPopupMaxHeight,n=window.sg.common.utils,k={},f={section:".warranty-policy-popup",layerPopup:".layer-popup",close:".layer-popup__close"};window.sg.components.warrantyPolicyPopup={showPopup:function(){var a=document.querySelector(f.section+" "+f.layerPopup);a.setAttribute("tabindex",
4480);a.focus();n.popupControl.open(x);n.hiddenScroll();k.el.style.display="block";t.reInit(k.layerEl)}};u.ready(function(){var a=document.querySelector(".warranty-policy-popup");a&&(k={el:a,layerEl:a.querySelector(".layer-popup"),closeEl:a.querySelector(".layer-popup__close")},t.init(k.layerEl),k.closeEl.addEventListener("click",x),a=document.querySelector(f.section+" "+f.close),a.removeEventListener("keydown",b),a.addEventListener("keydown",b),a=document.querySelector(f.section+" "+f.layerPopup),a.removeEventListener("keydown",
449e),a.addEventListener("keydown",e))})})();
450(function(){function e(){b(k.section).target.forEach(function(a){new f(a)})}var b=window.sg.common.$q,x=window.sg.common.libs,u=window.sg.common.utils,t=window.sg.common.utils.setMobileFocusLoop,n=window.sg.common.utils.removeMobileFocusLoop,k={section:".pdd23-edd-popup",setFocus:null},f=function(a){this.selector={section:k.section,closeCta:".layer-popup__close"};this.ele={section:b(a),window:b(window)};this.handler={focusLock:this.focusLock.bind(this),activePopup:this.activePopup.bind(this),closePopup:this.closePopup.bind(this),
451focusActive:this.focusActive.bind(this)};f.instances.set(a,this);this.init()};f.prototype.init=function(){this.setProperty();this.bindEvents()};f.prototype.reInit=function(){this.setProperty();this.bindEvents()};f.prototype.setProperty=function(){this.ele.closeCta=this.ele.section.find(this.selector.closeCta);this.pddHeader=this.activeCta=null};f.prototype.bindEvents=function(){this.ele.closeCta.off("click",this.handler.closePopup).on("click",this.handler.closePopup);this.ele.closeCta.off("click",
452this.handler.focusActive).on("click",this.handler.focusActive)};f.prototype.focusActive=function(){0>=this.pddHeader.target.length&&(this.ele.section.css({display:"none"}),null!==this.activeCta&&this.activeCta.focus());this.activeCta=null};f.prototype.focusLock=function(a){if(a.keyCode===x.keyCode.TAB_KEY){var g=this.ele.section.find("a, button, input").target[0];!1===a.shiftKey&&this.ele.closeCta.target[0]===document.activeElement?(a.preventDefault(),g.focus()):!0===a.shiftKey&&g===document.activeElement?
453(a.preventDefault(),this.ele.closeCta.focus()):!0===a.shiftKey&&this.ele.section.target[0]===document.activeElement&&(a.preventDefault(),this.ele.closeCta.focus())}};f.prototype.activePopup=function(a){a&&(this.activeCta=b(a),k.setFocus=a,this.pddHeader=this.activeCta.closest(".pd-delivery-pickup__item"));u.hiddenScroll();this.ele.section.css({display:"block"});this.ele.window.off("keydown",this.handler.focusLock).on("keydown",this.handler.focusLock);this.ele.section.find("a, button, input").target[0].focus();
4540>=document.querySelectorAll("[data-aria-hidden]").length&&t(this.ele.section.target[0]);u.changeActiveReCaptchaProperty()};f.prototype.closePopup=function(a){void 0!==a&&a.preventDefault();0<document.querySelectorAll("[data-aria-hidden]").length&&n();u.changeInActiveReCaptchaProperty();u.visibleScroll();this.ele.window.off("keydown",this.handler.focusLock)};f.instances=new WeakMap;window.sg.components.eddPopup={selector:k,init:e,reInit:function(){b(k.section).target.forEach(function(a){f.instances.has(a)?
455f.instances.get(a).reInit():new f(a)})},activePopup:function(a){b(k.section).target.forEach(function(g){f.instances.has(g)&&f.instances.get(g).activePopup(a)})},closePopup:function(){b(k.section).target.forEach(function(a){f.instances.has(a)&&f.instances.get(a).closePopup()})}};b.ready(e)})();
456(function(e){var b=e("#storeDomain").val(),x=e("#siteCode").val(),u=e("#modelCode").val(),t=e("#priceCurrency").val(),n="Hybris"===e("#shopIntegrationFlag").val()||"Hybris-intg"===e("#shopIntegrationFlag").val();e("#shopIntegrationFlag").val();var k="my"==x||"ph"==x,f="",a=!0;e(document).on("change keyup paste","#zipcode",function(g){f=e("#zipcode").val();13===g.keyCode&&e(".pdd23-edd-popup .cta").click();4<=f.length?(e(".pdd23-edd-popup .cta").removeClass("cta--disabled"),e(".pdd23-edd-popup .cta").attr("disabled",
457!1)):(e(".pdd23-edd-popup .cta").addClass("cta--disabled"),e(".pdd23-edd-popup .cta").attr("disabled",!0));if("uk"==x)var c=/^[a-zA-Z0-9\s]{7,8}$/;else"it"==x||"se"==x||"fr"==x||"de"==x||"fi"==x?c=/^[0-9]{5}$/:"au"==x||"dk"==x||"no"==x?c=/^[0-9]{4}$/:k&&(c=/^[0-9]{4,6}$/);"uk"!=x&&(f=f.replace(" ",""));a=c.test(f)?!0:!1;e("#zipcode").val(f)}
457);e(document).on("click",".pdd23-edd-popup .cta",function(){function g(w){var B="",m="",E=!1;var d="Europe/London";"it"==x?d="Europe/Brussels":"au"==x?d="Australia/Sydney":
458"fr"==x?d="Europe/Paris":"de"==x?d="Europe/Berlin":"dk"==x?d="Europe/Copenhagen":"fi"==x?d="Europe/Helsinki":"no"==x?d="Europe/Oslo":"se"==x&&(d="Europe/Stockholm");d=(new Date).toLocaleString(e("#localLang").val(),{timeZone:d});d=d.slice(0,10);var p=d.replace(/\//gi,"");d=p.slice(0,2);var q=p.slice(2,4);p=p.slice(-4);d=parseInt(p+q+d);if(k)for(d=w.deliveryModes,w=0;w<d.length;w++)q=0==d[w].cost?Granite.I18n.get("Delivery_Free"):currencyComma(d[w].cost,t),d[w].name&&(B+='\x3ctr\x3e\x3cth class\x3d"delivery-title"\x3e'+
459d[w].name+'\x3c/th\x3e\x3ctd class\x3d"delivery-date"\x3e\x3c/td\x3e\x3ctd class\x3d"delivery-price"\x3e'+q+"\x3c/td\x3e\x3c/tr\x3e",E||(m+='\x3cp class\x3d"pd-delivery-pickup__info-text"\x3e\x3cstrong\x3e'+d[w].name+"\x3c/strong\x3e : "+q+"\x3c/p\x3e",E=!0));else for(p=w.eddDeliveryGroups,w=0;w<p.length;w++)if(q=0==p[w].deliveryCost.value?Granite.I18n.get("Delivery_Free"):p[w].deliveryCost.formattedValue,p[w].deliveryName&&p[w].deliveryMinDate){var l=parseInt(p[w].deliveryMinDate.replaceAll("-",
460""));l=l==d?Granite.I18n.get("Today"):1==l-d?Granite.I18n.get("Tomorrow"):p[w].deliveryMinDate.split("-").reverse().join("-");B+='\x3ctr\x3e\x3cth class\x3d"delivery-title"\x3e'+p[w].deliveryName+'\x3c/th\x3e\x3ctd class\x3d"delivery-date"\x3e'+l+'\x3c/td\x3e\x3ctd class\x3d"delivery-price"\x3e'+q+"\x3c/td\x3e\x3c/tr\x3e";E||(m+='\x3cp class\x3d"pd-delivery-pickup__info-text"\x3e\x3cstrong\x3e'+p[w].deliveryName+"\x3c/strong\x3e : \x3cstrong\x3e"+l+"\x3c/strong\x3e, "+q+"\x3c/p\x3e",E=!0)}e(".pdd23-edd-popup__table tbody").html(B);
461e(".pd-delivery-pickup__item-wrap.delivery .pd-delivery-pickup__title-text").text(f.toUpperCase());e(".pd-delivery-pickup__item-wrap.delivery .pd-delivery-pickup__info").html(m)}var c=b;n&&(c=e("#newHyvStoreDomain").val());var h="true"===e("#isEppPage").val()?e("#eppCompanyCode").val():x,v=c+"/tokocommercewebservices/v2/"+h+"/products/"+u+"/eddDeliveryModes";"uk"==x&&(v=c+"/tokocommercewebservices/v2/"+h+"/products/"+u+"/eddUKDeliveryModes");var z=Granite.I18n.get("Please check your postal code and try again."),
462H=Granite.I18n.get("Delivery is not available in the area. Please try another postal code.");c={postCode:f.toUpperCase()};k?(c="https://shop.samsung.com","true"===e("#isEppPage").val()&&(c=e("#storeWebDomain").val()),v=c+"/"+h+"/servicesv2/postal-code-check/getDeliveryTat",c={postCode:f.toUpperCase(),sku:u},a?e.ajax({url:v,type:"GET",data:c,cache:!0,crossDomain:!0,xhrFields:{withCredentials:!0},dataType:"json",success:function(w,B,m){200==m.status&&(null!=w&&w?w.deliveryModes?0<w.deliveryModes.length?
463(g(w),e(".pdd23-edd-popup__input-wrap .text-field-v2").removeClass("error"),e(".pdd23-edd-popup__contents-wrap").addClass("is-show")):(a=!1,e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(H)):(a=!1,e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(w.deliveryTurnAroundTime)):(a=!1,e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(w.deliveryTurnAroundTime)))},
464error:function(w,B,m){e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error");e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(H)},complete:function(){}}):(e(".pdd23-edd-popup__table tbody").empty(),e(".pd-delivery-pickup__title-text").empty(),e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(z))):a?e.ajax({url:v,type:"GET",data:c,cache:!0,crossDomain:!0,xhrFields:{withCredentials:!0},dataType:"json",success:function(w,
465B,m){200==m.status&&(null!=w&&w?w.eddDeliveryGroups&&(0<w.eddDeliveryGroups.length?(g(w),e(".pdd23-edd-popup__input-wrap .text-field-v2").removeClass("error"),e(".pdd23-edd-popup__contents-wrap").addClass("is-show")):(a=!1,e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(H))):(a=!1,e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(H)))},error:function(w,
466B,m){e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error");e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(H)},complete:function(){}}):(e(".pdd23-edd-popup__table tbody").empty(),e(".pd-delivery-pickup__title-text").empty(),e(".pdd23-edd-popup__input-wrap .text-field-v2").addClass("error"),e(".pdd23-edd-popup__input-wrap .text-field-v2 p").text(z))});e(document).on("click",".pdd23-edd-popup .layer-popup__close",function(){"undefined"!==typeof window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2").PDPHeaderUI?
467null!=f&&""!=f&&a?window.sg.components.PDbuyingToolNew.closePopup():window.sg.components.PDbuyingToolNew.closePopup(!1):null!=f&&""!=f&&a?window.sg.components.pdBuyingTool.closePopup():window.sg.components.pdBuyingTool.closePopup(!1)})})(window.jQuery);
468(function(){function e(){m.instances.get(document.querySelector(".tariff-popup")).close()}var b=window.sg.common.$q,x=window.sg.common.utils.getCurrentDevice,u=window.sg.common.utils.getCurrentMediaType,t=window.sg.common.scrollbar,n=window.sg.common.utils.triggerEvent,k=window.sg.common.utils.extend,f=window.sg.common.utils.addEventListener,a=window.sg.common.utils.removeAllEventListeners,g=window.sg.common.utils,c=window.BezierEasing,h=window.sg.common.utils.isRtl,v=window.sg.common.utils.closest,
469z=window.sg.common.utils.detectTransitionEndEvent,H=window.sg.common.utils.getNormalizedScrollLeft,w=window.sg.common.utils.setNormalizedScrollLeft,B=window.sg.common.utils.detectScrollType,m=function(d){this.els={el:d,contentsEl:null,contentsPlanEl:null,contentsPlanDetailsEl:null,contentsPlanSelectedEl:null,contentsFormEl:null,popupCloseBtnEl:null};this.step=0;this.chooseTabs=[];this.prevBtnWidth=this.tabXMove=this.chooseTabIndex=0;this.isInTransition=!1;this.device="";this.isSeeMoreInfoOpend=!1;
470this.planDetailsDescHeights=[];this.init()};m.prototype.open=function(d){this.focusTargetEl=d;this.els.el.style.display="block";this.updateElements();this.resize();this.setFocusFirstFocusableEl();g.popupControl.open(e);g.hiddenScroll();g.setMobileFocusLoop(this.els.el)};m.prototype.close=function(){this.els.contentsPlanEl&&(this.els.contentsPlanEl.style.display="block");this.els.contentsPlanSelectedEl&&(this.els.contentsPlanSelectedEl.style.display="none");this.els.contentsFormEl&&(this.els.contentsFormEl.style.display=
471"none");this.step=0;this.els.checkboxEls&&[].concat($jscomp.arrayFromIterable(this.els.checkboxEls)).forEac
471h(function(d){d.querySelector("input").checked=!1;d.classList.remove("tariff-popup__checkbox--checked")});this.els.filterCheckboxEls&&[].concat($jscomp.arrayFromIterable(this.els.filterCheckboxEls)).forEach(function(d){d.classList.contains("is-active")||d.classList.add("is-active");d.querySelectorAll("input").forEach(function(p){p.checked=!1});d.querySelectorAll("input")[0].checked=!0});this.els.disclaimerCtaEl&&
472this.els.disclaimerCtaEl.classList.remove("tariff-popup__table-disclaimer-cta--open");this.els.submitBtnEl&&(this.els.submitBtnEl.disabled=!0,this.els.submitBtnEl.classList.remove("tariff-popup__btn-submit--active"));this.els.radioEls&&[].concat($jscomp.arrayFromIterable(this.els.radioEls)).forEach(function(d){d.querySelector("input").checked=!1;d.classList.remove("tariff-popup__radio--checked")});this.els.planDetailItemEls&&[].concat($jscomp.arrayFromIterable(this.els.planDetailItemEls)).forEach(function(d){"block"===
473d.style.display&&(d.style.display="none")});this.els.planDetailViewMoreBtnEls&&[].concat($jscomp.arrayFromIterable(this.els.planDetailViewMoreBtnEls)).forEach(function(d){d.style.display="inline-block"});this.els.nextBtnEl&&(this.els.nextBtnEl.disabled=!0,this.els.nextBtnEl.classList.add("cta--disabled"));this.isBc&&window.sg.components.hubblePdPopup.closePopup();this.els.el.style.display="none";g.popupControl.close();g.visibleScroll();g.removeMobileFocusLoop();this.setOriginFocus()};m.prototype.getCurrentContentsEl=
474function(){return 0===this.step?this.isSeeMoreInfoOpend?this.els.contentsPlanDetailsEl:this.els.contentsPlanEl:1===this.step?this.els.contentsPlanSelectedEl:2===this.step?this.els.contentsFormEl:null};m.prototype.getFirstFocusableEl=function(){var d=this.getCurrentContentsEl();if(d)return d.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0]};m.prototype.setFocusFirstFocusableEl=function(){var d=this.getFirstFocusableEl();d&&d.focus()};m.prototype.init=function(){this.els.el&&
475!m.instances.has(this.els.el)&&(m.instances.set(this.els.el,this),this.device=u(),this.isRtl=h(),this.isBc=this.els.el.classList.contains("bc-tariff-popup"),this.getElements(this.step),this.bindEvents(),this.show(this.step),this.selectChoose(this.chooseTabIndex),this.updateElements())};m.prototype.reInit=function(d,p){0!==this.step&&0===d&&p&&this.reInit(0);this.getElements(d,p);this.show(d,p);this.unBindEvents();this.bindEvents();0!==d||p||(this.selectChoose(this.chooseTabIndex),this.updateElements());
476window.sg.common.lazyLoad.setLazyLoad()};m.prototype.getElements=function(d,p){this.els.contentsEl=this.els.el.querySelector(".tariff-popup__contents");this.els.contentsPlanEl=this.els.el.querySelector(".tariff-popup__contents-plan");this.els.contentsPlanDetailsEl=this.els.el.querySelector(".tariff-popup__contents-plan-details");this.els.contentsPlanSelectedEl=this.els.el.querySelector(".tariff-popup__contents-plan-selected");this.els.contentsFormEl=this.els.el.querySelector(".tariff-popup__contents-form");
477this.els.popupCloseBtnEl=this.els.el.querySelector(".tariff-popup__close");var q=!!document.querySelector(".wearable-bc");if(this.isBc||q)t.reInit(this.els.contentsPlanEl.querySelector(".scrollbar")),t.reInit(this.els.contentsPlanDetailsEl.querySelector(".scrollbar")),t.reInit(this.els.contentsPlanSelectedEl.querySelector(".scrollbar")),t.reInit(this.els.contentsFormEl.querySelector(".scrollbar"));var l={};if(0===d){if(p)l={planDetailsInnerWrapEl:this.els.el.querySelector(".tariff-popup__contents-plan-details .tariff-popup__inner-wrap"),
478planDetailsInnerWrapScrollEl:this.els.el.querySelector(".tariff-popup__contents-plan-details .tariff-popup__inner-wrap \x3e .scrollbar__wrap"),planDetailsBtnWrapEl:this.els.el.querySelector(".tariff-popup__contents-plan-details .tariff-popup__btn-wrap"),planDetailsTitleEls:this.els.el.querySelectorAll(".tariff-popup__plan-details-title"),planSeeMoreInfoBtnEls:this.els.el.querySelectorAll(".tariff-popup__plan-see-more-info"),planDetailsBackBtnEl:this.els.el.querySelector(".tariff-popup__btn-back")};
479else for(l={planInnerWrapEl:this.els.el.querySelector(".tariff-popup__contents-plan .tariff-popup__inner-wrap"),planInnerWrapScrollEl:this.els.el.querySelector(".tariff-popup__contents-plan .tariff-popup__inner-wrap \x3e .scrollbar__wrap"),planBtnWra
479pEl:this.els.el.querySelector(".tariff-popup__contents-plan .tariff-popup__btn-wrap"),nextBtnEl:this.els.el.querySelector(".tariff-popup__btn-next"),prevBtnEl:this.els.el.querySelector(".tariff-popup__btn-prev"),closeBtnEls:this.els.el.querySelectorAll(".tariff-popup__btn-close"),
480choosePanelEls:this.els.el.querySelectorAll(".tariff-popup__choose-panel"),tabWrapEls:this.els.el.querySelectorAll(".tariff-popup__tab-wrap"),radioEls:this.els.el.querySelectorAll(".tariff-popup__radio"),planDetailItemEls:this.els.el.querySelectorAll(".tariff-popup__plan-detail-item"),planDetailViewMoreBtnEls:this.els.el.querySelectorAll(".tariff-popup__plan-detail-view-more"),chooseTabEls:[],filterCheckboxEls:this.els.el.querySelectorAll(".tariff-popup__filter"),filterCheckboxBtn:this.els.el.querySelectorAll(".tariff-popup__filter-btn"),
481filterCheckbox:this.els.el.querySelectorAll(".tariff-popup__filter .checkbox-v2")},[].concat($jscomp.arrayFromIterable(this.els.el.querySelectorAll(".tariff-popup__choose-item"))).forEach(function(y,r){l.chooseTabEls.push({chooseItemBtnEl:y.querySelector(".tariff-popup__choose-item-btn"),chooseTooltipEl:y.querySelector(".tariff-popup__choose-tooltip"),chooseTooltipBtnEl:y.querySelector(".tariff-popup__choose-tooltip__btn"),choosePanelEl:l.choosePanelEls[r],tabWrapEl:l.tabWrapEls[r],tabListEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list"),
482tabListWrapEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list-wrap"),tabListAreaEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list-area"),tabListPrevBtnEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list-prev"),tabListNextBtnEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list-next"),tabListGlLeftEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list-gl-left"),tabListGlRightEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-list-gl-right"),tabItemEls:l.tabWrapEls[r].querySelectorAll(".tariff-popup__tab-item"),
483tabPanelWrapEl:l.tabWrapEls[r].querySelector(".tariff-popup__tab-panel-wrap"),tabPanelItemEls:l.tabWrapEls[r].querySelectorAll(".tariff-popup__tab-panel-item")})}),this.chooseTabs=[],p=0;p<l.chooseTabEls.length;p++)this.chooseTabs.push({tabIndex:0,tabXPosition:0,tabListIndex:0,tabListMaxIndex:0});this.isSeeMoreInfoOpend=!1}else 1===d?l={planSelectedInnerWrapEl:this.els.el.querySelector(".tariff-popup__contents-plan-selected .tariff-popup__inner-wrap"),planSelectedInnerWrapScrollEl:this.els.el.querySelector(".tariff-popup__contents-plan-selected .tariff-popup__inner-wrap \x3e .scrollbar__wrap"),
484planSelectedBtnWrapEl:this.els.el.querySelector(".tariff-popup__contents-plan-selected .tariff-popup__btn-wrap"),prevBtnEl:this.els.el.querySelector(".tariff-popup__btn-prev"),submitBtnEl:this.els.el.querySelector(".tariff-popup__btn-submit"),checkboxEls:this.els.el.querySelectorAll(".tariff-popup__checkbox"),disclaimerEl:this.els.el.querySelector(".tariff-popup__table-disclaimer"),disclaimerCtaEl:this.els.el.querySelector(".tariff-popup__table-disclaimer-cta")}:2===d&&(l={formInnerWrapEl:this.els.el.querySelector(".tariff-popup__contents-form .tariff-popup__inner-wrap"),
485formInnerWrapScrollEl:this.els.el.querySelector(".tariff-popup__contents-form .tariff-popup__inner-wrap \x3e .scrollbar__wrap"),formBtnWrapEl:this.els.el.querySelector(".tariff-popup__contents-form .tariff-popup__btn-wrap"),nextBtnEl:this.els.el.querySelector(".tariff-popup__btn-next"),closeBtnEls:this.els.el.querySelectorAll(".tariff-popup__btn-close"),disclaimerEl:this.els.el.querySelector(".tariff-popup__disclaimer")});k(this.els,l);this.step=d};m.prototype.normalizeScrollLeft=function(d,p){if(this.isRtl)switch(B()){case "negative":return-(d.clientWidth-
486d.scrollWidth+p);case "reverse":return d.scrollWidth-d.clientWidth-p}return p};m.prototype.getVw=function(){return Math.max(document.documentElement.clientWidth,window.innerWidth||0)};m.prototype.updateElements=function(){var d=this,p=this.getVw();this.els.chooseTabEls[this.chooseTabIndex].tabItemEls[0]&&("desktop-over"===u()?(this.tabXMove=4*this.els.chooseTabEls[this.chooseTabIndex].tabItemEls[0].parentElement.offsetWidth,this.prevBtnWidth=30):(this.tabXMove=4*this.els.chooseTabEls[this.chooseTabIndex].tabItemEls[0].parentElement.offsetWidth/
487(p/100),this.prevBtnWidth=30*p/1440/(p/100)));
487this.els.chooseTabEls.forEach(function(q,l){if(0===d.step&&0<q.tabItemEls.length)if(-1<u().indexOf("desktop")){for(var y=0;q.tabItemEls.length-5>4*y;)y++;d.chooseTabs[l].tabListIndex=0;d.chooseTabs[l].tabListMaxIndex=y;d.chooseTabs[l].tabXPosition=0;for(var r=1;r<=y+1;r++)if(d.chooseTabs[l].tabIndex<=4*r){d.chooseTabs[l].tabListIndex=r-1;d.chooseTabs[l].tabIndex===4*r&&d.chooseTabs[l].tabListIndex<d.chooseTabs[l].tabListMaxIndex&&d.chooseTabs[l].tabListIndex++;
488break}[].concat($jscomp.arrayFromIterable(q.tabItemEls)).forEach(function(C,F){C.setAttribute("aria-hidden","true");C.setAttribute("tabIndex",-1);F>=4*d.chooseTabs[l].tabListIndex&&F<=4*d.chooseTabs[l].tabListIndex+3&&(q.tabItemEls[F].setAttribute("aria-hidden","false"),q.tabItemEls[F].removeAttribute("tabindex"));C.parentElement.classList.remove("hide-divider")});q.tabItemEls[4*d.chooseTabs[l].tabListIndex].parentElement.classList.add("hide-divider");q.tabItemEls[4*d.chooseTabs[l].tabListIndex+5]&&
489q.tabItemEls[4*d.chooseTabs[l].tabListIndex+5].parentElement.classList.add("hide-divider");q.tabListPrevBtnEl.style.display=0<d.chooseTabs[l].tabListIndex?"":"none";q.tabListNextBtnEl.style.display=0<d.chooseTabs[l].tabListMaxIndex&&d.chooseTabs[l].tabListIndex<d.chooseTabs[l].tabListMaxIndex?"":"none";d.chooseTabs[l].tabXPosition=-(d.tabXMove*d.chooseTabs[l].tabListIndex);0<d.chooseTabs[l].tabListIndex&&(d.chooseTabs[l].tabXPosition+=d.prevBtnWidth);w(q.tabListAreaEl,d.normalizeScrollLeft(q.tabListAreaEl,
4900));d.isRtl&&(d.chooseTabs[l].tabXPosition=-d.chooseTabs[l].tabXPosition);"desktop-over"===u()?q.tabListEl.style.transform="translate3d("+d.chooseTabs[l].tabXPosition+"px, 0, 0)":q.tabListEl.style.transform="translate3d("+d.chooseTabs[l].tabXPosition+"vw, 0, 0)"}else"mobile"===x()&&(q.tabListEl.style.removeProperty("transform"),[].concat($jscomp.arrayFromIterable(q.tabItemEls)).forEach(function(C){C.setAttribute("aria-hidden","false");C.removeAttribute("tabindex")}),y=q.tabItemEls[0].parentElement.getBoundingClientRect().width*
491d.chooseTabs[l].tabIndex,w(q.tabListAreaEl,d.normalizeScrollLeft(q.tabListAreaEl,y)),d.updateMobileTabList(q))})};m.prototype.updateMobileTabList=function(d){if("mobile"===x()){d||(d=this.els.chooseTabEls[this.chooseTabIndex]);var p=4*this.getVw()/360;H(d.tabListAreaEl)>=p?(d.tabListGlLeftEl.classList.add("tariff-popup__tab-list-gl--active"),this.isRtl?d.tabListNextBtnEl.style.display="":d.tabListPrevBtnEl.style.display=""):(d.tabListGlLeftEl.classList.remove("tariff-popup__tab-list-gl--active"),
492this.isRtl?d.tabListNextBtnEl.style.display="none":d.tabListPrevBtnEl.style.display="none");d.tabListAreaEl.scrollWidth-d.tabListAreaEl.offsetWidth<=H(d.tabListAreaEl)+p?(d.tabListGlRightEl.classList.remove("tariff-popup__tab-list-gl--active"),this.isRtl?d.tabListPrevBtnEl.style.display="none":d.tabListNextBtnEl.style.display="none"):(d.tabListGlRightEl.classList.add("tariff-popup__tab-list-gl--active"),this.isRtl?d.tabListPrevBtnEl.style.display="":d.tabListNextBtnEl.style.display="")}};m.prototype.resize=
493function(){this.device!==u()&&(this.updateElements(),this.device=u());this.updateMobileTabList();this.setMaxHeight()};m.prototype.setMaxHeight=function(){var d=this.els.contentsEl;if(0===this.step){var p=this.els.planInnerWrapEl;var q=this.els.planInnerWrapScrollEl;var l=this.els.planBtnWrapEl;this.isSeeMoreInfoOpend&&(q.style.maxHeight=window.innerHeight-2*(p.getBoundingClientRect().top-d.getBoundingClientRect().top)-l.getBoundingClientRect().height+"px",p=this.els.planDetailsInnerWrapEl,q=this.els.planDetailsInnerWrapScrollEl,
494l=this.els.planDetailsBtnWrapEl,q.style.height=this.els.planInnerWrapScrollEl.getBoundingClientRect().height+"px")}else 1===this.step?(p=this.els.planSelectedInnerWrapEl,q=this.els.planSelectedInnerWrapScrollEl,l=this.els.planSelectedBtnWrapEl):2===this.step&&(p=this.els.formInnerWrapEl,q=this.els.formInnerWrapScrollEl,l=this.els.formBtnWrapEl);q&&p&&(q.style.maxHeight=window.innerHeight-2*(p.getBoundingClientRect().top-d.getBoundingClientRect().top)-l.getBoundingClientRect().height+"px",t.resize(p))};
495m.prototype.selectChoose=function(d){0>d||!this.els.chooseTabEls[d].chooseItemBtnEl||!this.els.chooseTabEls[d].choosePanelEl||([].concat($jscomp.arrayFromIterable(this.els.chooseTabEls)).forEach(function(p){p.chooseItemBtnEl&&p.chooseItemBtnEl.parentElement&&p.chooseItemBtnEl.parentElement.classList.remove("active");p.choosePanelEl&&p.choosePanelEl.classList.remove("active");p.chooseItemBtnEl&&p.chooseItemBtnEl.setAttribute("aria-selected","false");p.choosePanelEl&&p.choosePanelEl.setAttribute("aria-hidden",
496"true")}),this.els.chooseTabEls[d].chooseItemBtnEl.parentElement.classList.add("active"),this.els.chooseTabEls[d].chooseItemBtnEl.setAttribute("aria-selected","trues"),this.els.chooseTabEls[d].choosePanelEl.classList.add("active"),this.els.chooseTabEls[d].choosePanelEl.setAttribute("aria-hidden","false"),this.chooseTabIndex=d,this.selectTab(this.chooseTabs[d].tabIndex))};m.prototype.selectTab=function(d){if(!(0>d)&&this.els.chooseTabEls[this.chooseTabIndex].tabItemEls[d]&&this.els.chooseTabEls[this.chooseTabIndex].tabPanelItemEls[d]){this.els.chooseTabEls.forEach(function(r){[].concat($jscomp.arrayFromIterable(r.tabItemEls)).forEach(function(C){C.parentElement.classList.remove("tariff-popup__tab-item-wrap--active");
497C.setAttribute("aria-selected","false")})});var p=this.els.chooseTabEls[this.chooseTabIndex];[].concat($jscomp.arrayFromIterable(this.els.radioEls)).forEach(function(r){r.querySelector("input").checked=!1;r.classList.remove("tariff-popup__radio--checked")});this.els.nextBtnEl.disabled=!0;this.els.nextBtnEl.classList.add("cta--disabled");if("mobile"===x()){var q=p.tabListAreaEl.getBoundingClientRect(),l=p.tabItemEls[d].getBoundingClientRect(),y=56*this.getVw()/360;l.right+y>q.right?this.scrollTo(p.tabListAreaEl,
498l.right-q.right+y):l.left-y<q.left&&this.scrollTo(p.tabListAreaEl,-(q.left-l.left+y))}p.tabItemEls[d].parentElement.classList.add("tariff-popup__tab-item-wrap--active");p.tabItemEls[d].setAttribute("aria-selected","true");[].concat($jscomp.arrayFromIterable(p.tabPanelItemEls)).forEach(function(r){r.classList.remove("tariff-popup__tab-panel-item--active");r.setAttribute("aria-hidden","true")});this.chooseTabs[this.chooseTabIndex].tabIndex!==d&&([].concat($jscomp.arrayFromIterable(this.els.planDetailItemEls)).forEach(function(r){"block"===
499r.style.display&&(r.style.display="none")}),[].concat($jscomp.arrayFromIterable(this.els.planDetailViewMoreBtnEls)).forEach(function(r){r.style.display="inline-block"}));p.tabPanelItemEls[d].classList.add("tariff-popup__tab-panel-item--active");p.tabPanelItemEls[d].setAttribute("aria-hidden","false");this.chooseTabs[this.chooseTabIndex].tabIndex=d;this.setMaxHeight()}};m.prototype.scrollTo=function(d,p,q,l){q=void 0===q?300:q;l=void 0===l?c(.4,0,.2,1):l;var y=H(d),r=d.scrollWidth-d.getBoundingClientRect().width;
500y+p>r&&(p=r-y);0>y+p&&(p=-y);r=function(C){w(d,y+p*C)};0<q?this.isAnim||this.animate(r,q,l):r(1)};m.prototype.animate=function(d,p,q){var l=this,y=Date.now();this.isAnim=!0;this.isContentsDragging=!1;var r=function(){var C=(Date.now()-y)/p;1<C?(d(1),l.isAnim=!1):(requestAnimationFrame(r),d(q(C)))};requestAnimationFrame(r)};m.prototype.unBindEvents=function(){0===this.step?this.isSeeMoreInfoOpend?([].concat($jscomp.arrayFromIterable(this.els.planDetailsTitleEls)).forEach(function(d){a(d,"click")}),
501a(this.els.planDetailsBackBtnEl,"click")):([].concat($jscomp.arrayFromIterable(this.els.chooseTabEls)).forEach(function(d){a(d.chooseItemBtnEl,"click");a(d.tabListPrevBtnEl,"click");a(d.tabListNextBtnEl,"click");[].concat($jscomp.arrayFromIterable(d.tabItemEls)).forEach(function(p){a(p,"click")});a(d.tabListAreaEl,"scroll");d.chooseTooltipBtnEl&&a(d.chooseTooltipBtnEl,"click")}),[].concat($jscomp.arrayFromIterable(this.els.radioEls)).forEach(function(d){a(d,"click")}),[].concat($jscomp.arrayFromIterable(this.els.planDetailViewMoreBtnEls)).forEach(function(d){a(d,
502"click")}),[].concat($jscomp.arrayFromIterable(this.els.filterCheckboxBtn)).forEach(function(d){a(d,"click")}),[].concat($jscomp.arrayFromIterable(this.els.closeBtnEls)).forEach(function(d){a(d,"click")})):1===this.step?([].concat($jscomp.arrayFromIterable(this.els.checkboxEls)).forEac
502h(function(d){a(d,"click")}),a(this.els.disclaimerCtaEl,"click")):2===this.step&&[].concat($jscomp.arrayFromIterable(this.els.closeBtnEls)).forEach(function(d){a(d,"click")});a(this.els.popupCloseBtnEl,"click");a(this.els.popupCloseBtnEl,
503"keydown");a(this.els.el,"keydown");window.removeEventListener("resize",this.resize)};m.prototype.bindEvents=function(){var d=this;this.close=this.close.bind(this);this.handleCloseButtonKeyDown=this.handleCloseButtonKeyDown.bind(this);this.handleContentsKeyDown=this.handleContentsKeyDown.bind(this);this.resize=this.resize.bind(this);0===this.step?this.isSeeMoreInfoOpend?([].concat($jscomp.arrayFromIterable(this.els.planDetailsTitleEls)).forEach(function(p,q){f(p,"click",function(){var l=p.parentElement.querySelector(".tariff-popup__plan-details-desc");
504p.parentElement.classList.contains("expand")?(p.parentElement.classList.remove("expand"),l.style.maxHeight="0"):(p.parentElement.classList.add("expand"),l.style.display="block",l.style.maxHeight=d.planDetailsDescHeights[q]+"px");var y=z(l);if(y){var r=function(){d.setMaxHeight();l.removeEventListener(y,r)};l.addEventListener(y,r)}else setTimeout(d.setMaxHeight.bind(d),200)})}),f(this.els.planDetailsBackBtnEl,"click",function(){d.els.contentsPlanEl.style.visibility="";d.els.contentsPlanEl.setAttribute("aria-hidden",
505"false");d.els.contentsPlanDetailsEl.style.display="none";d.isSeeMoreInfoOpend=!1;d.setFocusFirstFocusableEl()})):([].concat($jscomp.arrayFromIterable(this.els.chooseTabEls)).forEach(function(p,q){f(p.chooseItemBtnEl,"click",function(){d.selectChoose(q);d.updateMobileTabList(p)});f(p.tabListPrevBtnEl,"click",function(){if("desktop"===x())!d.isAnim&&0<d.chooseTabs[q].tabListIndex&&(d.chooseTabs[q].tabListIndex--,d.isRtl?(d.chooseTabs[q].tabXPosition-=+d.tabXMove,0===d.chooseTabs[q].tabListIndex&&(d.chooseTabs[q].tabXPosition+=
506d.prevBtnWidth)):(d.chooseTabs[q].tabXPosition+=+d.tabXMove,0===d.chooseTabs[q].tabListIndex&&(d.chooseTabs[q].tabXPosition-=d.prevBtnWidth)),p.tabListEl.style.transitionDuration=".3s","desktop-over"===u()?p.tabListEl.style.transform="translate3d("+d.chooseTabs[q].tabXPosition+"px, 0, 0)":p.tabListEl.style.transform="translate3d("+d.chooseTabs[q].tabXPosition+"vw, 0, 0)",d.isAnim=!0,0===d.chooseTabs[q].tabListIndex&&(p.tabListPrevBtnEl.style.display="none"),d.chooseTabs[q].tabListIndex<d.chooseTabs[q].tabListMaxIndex&&
507(p.tabListNextBtnEl.style.display=""),[].concat($jscomp.arrayFromIterable(p.tabItemEls)).forEach(function(L,J){L.setAttribute("aria-hidden","true");L.setAttribute("tabindex",-1);J>=4*d.chooseTabs[q].tabListIndex&&J<=4*d.chooseTabs[q].tabListIndex+3&&(L.setAttribute("aria-hidden","false"),L.removeAttribute("tabindex"));L.parentElement.classList.remove("hide-divider")}),p.tabItemEls[4*d.chooseTabs[q].tabListIndex].parentElement.classList.add("hide-divider"),p.tabItemEls[4*d.chooseTabs[q].tabListIndex+
5085]&&p.tabItemEls[4*d.chooseTabs[q].tabListIndex+5].parentElement.classList.add("hide-divider"),setTimeout(function(){d.chooseTabs[q].tabIndex=4*d.chooseTabs[q].tabListIndex;d.selectTab(d.chooseTabs[q].tabIndex);p.tabListEl.style.transitionDuration="0s";d.isAnim=!1;p.tabItemEls[d.chooseTabs[q].tabIndex].focus()},300));else for(var l=d.els.chooseTabEls[d.chooseTabIndex],y=l.tabListAreaEl.getBoundingClientRect(),r=l.tabItemEls,C=r.length-1;0<=C;C--){var F=r[C].getBoundingClientRect(),I=4*d.getVw()/360;
509if(!d.isRtl){if(F.left-I<=y.left-I){d.scrollTo(l.tabListAreaEl,-(y.left-F.left+I));break}}else if(F.right+I>=y.right+I){d.scrollTo(l.tabListAreaEl,F.right-y.right+I);break}}});f(p.tabListNextBtnEl,"click",function(){if("desktop"===x())!d.isAnim&&d.chooseTabs[q].tabListIndex<d.chooseTabs[q].tabListMaxIndex&&(d.chooseTabs[q].tabListIndex++,d.isRtl?(d.chooseTabs[q].tabXPosition+=d.tabXMove,0===d.chooseTabs[q].tabListIndex-1&&(d.chooseTabs[q].tabXPosition-=d.prevBtnWidth)):(d.chooseTabs[q].tabXPosition-=
510d.tabXMove,0===d.chooseTabs[q].tabListIndex-1&&(d.chooseTabs[q].tabXPosition+=d.prevBtnWidth)),p.tabListEl.style.transitionDuration=".3s","desktop-over"===u()?p.tabListEl.style.transform="translate3d("+d.chooseTabs[q].tabXPosition+"px, 0, 0)":p.tabListEl.style.transform="translate3d("+d.chooseTabs[q].tabXPosition+"vw, 0, 0)",d.isAnim=!0,"none"===p.tabListPrevBtnEl.style.display&&(p.tabListPrevBtnEl.style.display=""),d.chooseTabs[q].tabListIndex===d.chooseTabs[q].tabListMaxIndex&&(p.tabListNextBtnEl.style.display=
511"none"),[].concat($jscomp.arrayFromIterable(p.tabItemEls)).forEac
511h(function(L,J){L.setAttribute("aria-hidden","true");L.setAttribute("tabindex",-1);J>=4*d.chooseTabs[q].tabListIndex&&J<=4*d.chooseTabs[q].tabListIndex+3&&(L.setAttribute("aria-hidden","false"),L.removeAttribute("tabindex"));L.parentElement.classList.remove("hide-divider")}),p.tabItemEls[4*d.chooseTabs[q].tabListIndex].parentElement.classList.add("hide-divider"),p.tabItemEls[4*d.chooseTabs[q].tabListIndex+5]&&p.tabItemEls[4*d.chooseTabs[q].tabListIndex+
5125].parentElement.classList.add("hide-divider"),setTimeout(function(){d.chooseTabs[q].tabIndex=4*d.chooseTabs[q].tabListIndex;d.selectTab(d.chooseTabs[q].tabIndex);p.tabListEl.style.transitionDuration="0s";d.isAnim=!1;p.tabItemEls[d.chooseTabs[q].tabIndex].focus()},300));else for(var l=d.els.chooseTabEls[d.chooseTabIndex],y=l.tabListAreaEl.getBoundingClientRect(),r=l.tabItemEls,C=0;C<r.length;C++){var F=r[C].getBoundingClientRect(),I=4*d.getVw()/360;if(!d.isRtl){if(F.right+I>=y.right+I){d.scrollTo(l.tabListAreaEl,
513F.right-y.right+I);break}}else if(F.left-I<=y.left-I){d.scrollTo(l.tabListAreaEl,-(y.left-F.left+I));break}}});[].concat($jscomp.arrayFromIterable(p.tabItemEls)).forEach(function(l,y){f(l,"click",function(r){r.preventDefault();0===d.step&&-1<u().indexOf("desktop")&&0!==y&&0===y%4&&d.chooseTabs[q].tabListIndex<d.chooseTabs[q].tabListMaxIndex?n(p.tabListNextBtnEl,"click"):d.selectTab(y)})});f(p.tabListAreaEl,"scroll",function(){d.updateMobileTabList(p)});p.chooseTooltipBtnEl&&f(p.chooseTooltipBtnEl,
514"click",function(){p.chooseTooltipEl.classList.contains("tooltip--active")?(p.chooseTooltipEl.classList.remove("tooltip--active"),p.chooseTooltipBtnEl.setAttribute("aria-expanded","false")):(p.chooseTooltipEl.classList.add("tooltip--active"),p.chooseTooltipBtnEl.setAttribute("aria-expanded","true"))})}),[].concat($jscomp.arrayFromIterable(this.els.radioEls)).forEach(function(p){f(p,"click",function(q){q.target.tagName&&"INPUT"===q.target.tagName.toUpperCase()&&([].concat($jscomp.arrayFromIterable(d.els.radioEls)).forEach(function(l){l.classList.remove("tariff-popup__radio--checked")}),
515p.classList.add("tariff-popup__radio--checked"),d.els.nextBtnEl.disabled=!1,d.els.nextBtnEl.classList.remove("cta--disabled"))})}),[].concat($jscomp.arrayFromIterable(this.els.planDetailViewMoreBtnEls)).forEach(function(p){f(p,"click",function(){var q=p.parentElement.querySelectorAll(".tariff-popup__plan-detail-item");if(p.classList.contains("less")){for(var l=6;l<q.length;l++)q[l].style.display="none";p.classList.remove("less")}else{for(l=6;l<q.length;l++)q[l].style.display="block";p.classList.add("less")}q=
516v(p,".tariff-popup__radio");t.resize(d.els.planInnerWrapEl);t.scrollTo(d.els.planInnerWrapEl,0,d.els.chooseTabEls[d.chooseTabIndex].tabWrapEl.offsetTop+q.offsetTop,!0)})}),[].concat($jscomp.arrayFromIterable(this.els.closeBtnEls)).forEach(function(p){f(p,"click",d.close)}),[].concat($jscomp.arrayFromIterable(this.els.filterCheckboxBtn)).forEach(function(p){f(p,"click",function(){var q=p.closest(".tariff-popup__filter");q.classList.contains("is-active")?q.classList.remove("is-active"):q.classList.add("is-active");
517setTimeout(d.setMaxHeight.bind(d),200)})}),[].concat($jscomp.arrayFromIterable(this.els.filterCheckbox)).forEach(function(p){f(p,"click",function(){t.resize(d.els.planInnerWrapEl)})}),f(this.els.disclaimerCtaEl,"click",function(){d.els.disclaimerCtaEl.classList.contains("tariff-popup__table-disclaimer-cta--open")?d.els.disclaimerCtaEl.classList.remove("tariff-popup__table-disclaimer-cta--open"):d.els.disclaimerCtaEl.classList.add("tariff-popup__table-disclaimer-cta--open");t.resize(d.els.planSelectedInnerWrapEl)})):
5181===this.step?([].concat($jscomp.arrayFromIterable(this.els.checkboxEls)).forEach(function(p){f(p,"click",function(q){q.target.tagName&&"INPUT"===q.target.tagName.toUpperCase()&&(p.classList.contains("tariff-popup__checkbox--checked")?p.classList.remove("tariff-popup__checkbox--checked"):p.classList.add("tariff-popup__checkbox--checked"))})}),f(this.els.disclaimerCtaEl,"click",function(){d.els.disclaimerCtaEl.classList.contains("tariff-popup__table-disclaimer-cta--open")?d.els.disclaimerCtaEl.classList.remove("tariff-popup__table-disclaimer-cta--open"):
519d.els.disclaimerCtaEl.classList.add("tariff-popup__table-disclaimer-cta--open");t.resize(d.els.planSelectedInnerWrapEl)})):2===this.step&&[].concat($jscomp.arrayFromIterable(this.els.closeBtnEls)).forEac
519h(function(p){f(p,"click",d.close)});f(this.els.popupCloseBtnEl,"click",this.close);f(this.els.popupCloseBtnEl,"keydown",this.handleCloseButtonKeyDown);f(this.els.el,"keydown",this.handleContentsKeyDown);window.addEventListener("resize",this.resize)};m.prototype.show=function(d,p){var q=this;if(0===
520d){if(p)this.els.contentsPlanEl.style.visibility="hidden",this.els.contentsPlanEl.setAttribute("aria-hidden","true"),this.els.contentsPlanDetailsEl.style.display="block",this.isSeeMoreInfoOpend=!0,d=this.els.el.querySelectorAll(".tariff-popup__plan-details-desc"),this.planDetailsDescHeights=[],[].concat($jscomp.arrayFromIterable(d)).forEach(function(l,y){l.style.maxHeight="";q.planDetailsDescHeights[y]=l.getBoundingClientRect().height;l.style.position="relative";l.style.visibility="visible";l.parentElement.classList.contains("expand")?
521l.style.maxHeight=q.planDetailsDescHeights[y]+"px":l.style.maxHeight=0});else{[].concat($jscomp.arrayFromIterable(this.els.planDetailItemEls)).forEach(function(l){"block"===l.style.display&&(l.style.display="none")});[].concat($jscomp.arrayFromIterable(this.els.planDetailViewMoreBtnEls)).forEach(function(l){l.classList.remove("less")});this.els.nextBtnEl.disabled=!0;this.els.nextBtnEl.classList.add("cta--disabled");for(d=0;d<this.els.radioEls.length;d++)if(this.els.radioEls[d].classList.contains("tariff-popup__radio--checked")){this.els.nextBtnEl.disabled=
522!1;this.els.nextBtnEl.classList.remove("cta--disabled");break}this.els.contentsPlanDetailsEl&&(this.els.contentsPlanDetailsEl.style.display="none");this.els.contentsPlanSelectedEl&&(this.els.contentsPlanSelectedEl.style.display="none");this.els.contentsFormEl&&(this.els.contentsFormEl.style.display="none");this.els.contentsPlanEl.style.visibility="";this.els.contentsPlanEl.setAttribute("aria-hidden","false");this.els.contentsPlanEl.style.display="block";this.step=0}this.setMaxHeight();this.setFocusFirstFocusableEl()}else 1===
523d?([].concat($jscomp.arrayFromIterable(this.els.checkboxEls)).forEach(function(l){l.querySelector("input").checked=!1;l.classList.remove("tariff-popup__checkbox--checked")}),this.els.disclaimerCtaEl&&this.els.disclaimerCtaEl.classList.remove("tariff-popup__table-disclaimer-cta--open"),this.isBc||(this.els.submitBtnEl.disabled=!0,this.els.submitBtnEl.classList.remove("tariff-popup__btn-submit--active")),this.els.contentsPlanEl&&(this.els.contentsPlanEl.style.display="none"),this.els.contentsPlanDetailsEl&&
524(this.els.contentsPlanDetailsEl.style.display="none"),this.els.contentsFormEl&&(this.els.contentsFormEl.style.display="none"),this.els.contentsPlanSelectedEl.style.display="block",this.step=1,this.setMaxHeight(),this.setFocusFirstFocusableEl()):2===d&&(this.els.contentsPlanEl&&(this.els.contentsPlanEl.style.display="none"),this.els.contentsPlanDetailsEl&&(this.els.contentsPlanDetailsEl.style.display="none"),this.els.contentsPlanSelectedEl&&(this.els.contentsPlanSelectedEl.style.display="none"),this.els.contentsFormEl.style.display=
525"block",this.step=2,this.setMaxHeight(),this.setFocusFirstFocusableEl());window.sg.common.lazyLoad.setLazyLoad()};m.prototype.handleContentsKeyDown=function(d){if(d.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===d.keyCode){var p=this.getFirstFocusableEl();p&&d.target===p&&(d.preventDefault(),this.els.popupCloseBtnEl.focus())}};m.prototype.handleCloseButtonKeyDown=function(d){d.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==d.keyCode||(d.preventDefault(),this.setFocusFirstFocusableEl())};
526m.prototype.setOriginFocus=function(){this.focusTargetEl&&this.focusTargetEl instanceof Element?this.focusTargetEl.focus():this.isBc?document.querySelector('.pd-buying-tool [data-target-popup\x3d"tariffPopup"]').focus():g.buyingFocus("tariffPopup")};m.instances=new WeakMap;var E={init:function(){var d=document.querySelector(".tariff-popup");m.instances.has(d)||new m(d)},reInit:function(d,p){d=void 0===d?0:d;p=void 0===p?!1:p;var q=document.querySelector(".tariff-popup");m.instances.has(q)?m.instances.get(q).reInit(d,
527p):(new m(q)).reInit(d,p)},show:function(d,p){d=void 0===d?0:d;p=void 0===p?!1:p;var q=document.querySelector(".tariff-popup");m.instances.has(q)&&m.instances.get(q).show(d,p)},showPopup:function(d){d=void 0===d?null:d;m.instances.get(document.querySelector(".tariff-popup")).open(d);window.sg.common.lazyLoad.setLazyLoad()},closePopup:e};window.sg.components.tariffPopup=E;b.ready(E.init)})();
528(function(){var e,b,x,u,t,n,k,f,a,g,c,h,v,z,H,w;function B(){var D=document.querySelector(".trade-in-popup");D&&(m(D),p(),d())}function m(D){e=D;b=A(D);x=D.querySelector(".trade-in-popup__contents");u=D.querySelectorAll(".trade-in-popup__contents \x3e div");t=D.querySelector(".trade-in-popup__contents \x3e div:first-of-type");n=D.querySelector(".trade-in-popup__step--show \x3e div:first-of-type");k=D.querySelector(".trade-in-popup__btn-close");f=D.querySelectorAll(".trade-in-popup__condition-list-item-tooltip");
529a=D.querySelector(".trade-in-popup__close");g=D.querySelector(".trade-in-popup__sehk-condition-wrap");c=D.querySelector(".trade-in-popup__promo");D.querySelectorAll(".trade-in-select__options");h=D.querySelector(".trade-in-select .text-field-v2__input");v=D.querySelector(".trade-in-select.is-input-txt");Z=w=H=z=void 0;z=b.find(".trade-in-select__placeholder");H=b.find(".trade-in-select__options");b.find(".trade-in-popup__tradeIn-select__choose-wrap");b.find(".text-field-v2__input-icon");w=b.find(".trade-in-popup__tradeIn-category-swiper");
530[].concat($jscomp.arrayFromIterable(x.querySelectorAll(".scrollbar"))).forEac
530h(function(M){K.init(M)});d()}function E(){var D=function(){var M=t.querySelector(".trade-in-popup__recaptcha-iframe-wrap iframe"),S=/[?&]k=(.+?)&/gi;S=M.getAttribute("src").match(S)[0].replace(S,"$1");for(var Q=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('iframe[title*\x3d"reCAPTCHA"]'))),da=window.sg.common.utils.closest,ea=0;ea<Q.length;ea++)if(-1<Q[ea].getAttribute("src").indexOf(S)&&Q[ea]!==M&&!da(Q[ea],
531".trade-in-popup")){M=Q[ea].parentElement.parentElement;M.classList.add("recaptcha-challenge-popup");M.removeAttribute("data-aria-hidden");M.removeAttribute("aria-hidden");window.removeEventListener("blur",D);break}};t.querySelector(".trade-in-popup__recaptcha-iframe-wrap")&&(window.removeEventListener("blur",D),window.addEventListener("blur",D))}function d(){if(w.find(".swiper-slide").target.length&&0<w.width()){void 0===aa||null===aa||!1===aa?R.slideReInit(w.find(".swiper-container").target[0]):
532R.update(w.find(".swiper-container").target[0]);aa=R.getSwiper(w.find(".swiper-container").target[0]);var D=w.find(".swiper-slide").target.length;"desktop"===N.getCurrentDevice()&&3>=D||"mobile"===N.getCurrentDevice()&&3>=D?w.closest(".trade-in-popup__tradeIn-category").addClass("s-layout-initial"):w.closest(".trade-in-popup__tradeIn-category").removeClass("s-layout-initial");D=w.find(".trade-in-radio__label");V(D.target);w.find(".swiper-button-prev").css({display:""});w.find(".s-bg-left").css({display:""});
533w.find(".swiper-button-next").css({display:""});w.find(".s-bg-right").css({display:""})}else aa=null}function p(){r();[].concat($jscomp.arrayFromIterable(f)).forEach(function(Q){Q.removeEventListener("click",y);Q.addEventListener("click",y);Q.addEventListener("focusout",function(){Q.classList.remove("trade-in-popup__condition-list-item-tooltip--show")})});e.querySelector(".trade-in-popup__new-dropdown-wrap")&&[].concat($jscomp.arrayFromIterable(e.querySelectorAll(".trade-in-popup__new-dropdown"))).forEach(function(){ba.push(!1)});
534k.removeEventListener("click",l);k.addEventListener("click",l);a.removeEventListener("click",l);a.addEventListener("click",l);var D=document.querySelector(U.section+" "+U.close);D.removeEventListener("keydown",O);D.addEventListener("keydown",O);D=document.querySelector(""+U.section);D.removeEventListener("keydown",T);D.addEventListener("keydown",T);var M=function(Q){Q=Q.target;var da=A(Q).closest(".trade-in-popup__issue-list-item"),ea=da.find(".checkbox-v2__input");ea.target[0]===Q?da.find(".checkbox-v2__input:checked").target.forEach(function(fa){fa!==
535ea.target[0]&&(fa.checked=!1)}):ea.target[0].checked=!1},S=function(Q){Q=Q.currentTarget.classList.contains("trade-in-popup__btn-back")?g.querySelectorAll(".is-opened, .is-closed").length-2:A(Q.currentTarget).closest(".trade-in-popup__issue-list-item").index();0>Q&&(Q=0);W(Q)};g&&(g.querySelectorAll(".checkbox-v2__input").forEach(function(Q){Q.removeEventListener("change",M);Q.addEventListener("change",M)}),g.querySelectorAll(".trade-in-popup__btn-back, .trade-in-popup__issue-list-item-button-wrap button").forEach(function(Q){Q.removeEventListener("click",
536S);Q.addEventListener("click",S)}));window.addEventListener("resize",function(){q()});n&&(n.querySelector(".trade-in-select .text-field-v2__input").removeEventListener("input",X),n.querySelector(".trade-in-select .text-field-v2__input").addEventListener("input",X),n.querySelector(".text-field-v2__input-icon").removeEventListener("click",Y),n.querySelector(".text-field-v2__input-icon").addEventListener("click",Y))}function q(){var D=Math.round(2*(t.getBoundingClientRect().top-x.getBoundingClientRect().top)+
537t.querySelector(".trade-in-popup__btn-wrap").getBoundingClientRect().height);t.querySelector(".scrollbar__wrap").style.maxHeight=window.innerHeight-D+"px";[].concat($jscomp.arrayFromIterable(t.querySelectorAll(".scrollbar"))).forEach(function(M){K.resize(M)});d()}function l(){t.classList.remove("trade-in-popup__step--show");e.removeAttribute("style");N.popupControl.close(!0);N.visibleScroll();N.removeMobileFocusLoop();ca?ca.focus():N.buyingFocus("tradeInPopup")}function y(D){D.target.parentElement.classList.toggle("trade-in-popup__condition-list-item-tooltip--show")}
538function r(){z=b.find(".trade-in-select__placeholder");H=b.find(".trade-in-select__options");z.off("click",L).on("click",L);
538H.off("click",G).on("click",G)}function C(){var D=e.querySelector(".trade-in-popup__model-dropdown-wrap .trade-in-popup__dropdown .trade-in-popup__dropdown--select-field"),M=e.querySelectorAll(".trade-in-popup__model-dropdown-wrap .trade-in-popup__dropdown .trade-in-popup__dropdown--select-item"),S=-1;e.querySelector(".trade-in-popup__model-dropdown-wrap .trade-in-popup__dropdown .trade-in-popup__dropdown--search-input").value=
539"";e.querySelector(".trade-in-popup__model-dropdown-wrap .trade-in-popup__dropdown .trade-in-popup__dropdown--search-wrap").classList.remove("active");[].concat($jscomp.arrayFromIterable(M)).forEach(function(Q,da){Q.addEventListener("click",function(){0<=S&&M[S].classList.remove("trade-in-popup__dropdown--select-item-selected");D.querySelector(".trade-in-popup__dropdown--select-field-name").textContent=Q.querySelector(".trade-in-popup__dropdown--select-item-name").textContent;D.querySelector(".trade-in-popup__dropdown--select-field-price").textContent=
540Q.querySelector(".trade-in-popup__dropdown--select-item-price").textContent;Q.classList.add("trade-in-popup__dropdown--select-item-selected");S=da;D.classList.remove("trade-in-popup__dropdown--select-field-open")})})}function F(D){[].concat($jscomp.arrayFromIterable(e.querySelectorAll(".trade-in-popup__dropdown"))).forEach(function(M){N.closest(D.target,".trade-in-popup__dropdown")!==M&&M.querySelector(".trade-in-popup__dropdown--select-field").classList.remove("trade-in-popup__dropdown--select-field-open")});
541I()}function I(){var D=!1;[].concat($jscomp.arrayFromIterable(e.querySelectorAll(".trade-in-popup__dropdown"))).forEach(function(M){M.querySelector(".trade-in-popup__dropdown--select-field").classList.contains("trade-in-popup__dropdown--select-field-open")&&(D=!0)});D||document.removeEventListener("click",F)}function L(D){var M=A(D.target).closest(U.placeholder);D=A(D.target).closest(".text-field-v2");var S=M.closest(U.tradeinSelect);S.hasClass("is-opened")?0===D.target.length&&P(M):(S.closest(U.chooseSelect).siblings().target.forEach(function(Q){Q=
542A(Q);Q.find(U.tradeinSelect).hasClass("is-opened")&&P(Q.find(U.placeholder))}),J(M))}function J(D){var M=D.closest(U.tradeinSelect),S=M.find(U.tradeinSelectOptions),Q=JSON.parse(M.target[0].dataset.globalText),da=M.find(".text-field-v2__input");D.attr("aria-expanded",!0);D.find(".hidden").text(Q.Collapse);M.addClass("is-opened");S.attr("aria-hidden",!1);window.sg.common.textFieldv2.initAll();setTimeout(function(){H=b.find(".trade-in-select__options");H.off("click",G).on("click",G);da.focus()},300)}
543function P(D){var M=D.closest(U.tradeinSelect),S=M.find(U.tradeinSelectOptions),Q=JSON.parse(M.target[0].dataset.globalText);D.attr("aria-expanded",!1);D.find(".hidden").text(Q.Expand);M.removeClass("is-opened");S.attr("aria-hidden",!0)}function G(D){b.find(".trade-in-popup__tradeIn-select__choose-wrap");D=A(D.target).closest(U.tradeinSelectOptions+" li");var M=D.closest(U.tradeinSelect);M.find(U.tradeinSelectOptions+" li").removeClass("is-selected");D.addClass("is-selected");M.hasClass("is-selected")||
544M.addClass("is-selected");M.find(".trade-in-select__placeholder-name span").text(D.find(".trade-in-popup__tradeIn-select__choose-name").target[0].textContent);L(D.closest(U.tradeinSelect).find(U.placeholder))}function T(D){if(D.shiftKey&&window.sg.common.constants.KEY_CODE.TAB===D.keyCode){var M=document.querySelector(""+U.section).querySelector(".trade-in-popup__step--show").querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0];D.target===M&&(D.preventDefault(),document.querySelector(U.section+
545" "+U.close).focus());var S=M.getAttribute("type");M=M.getAttribute("name");"radio"===S&&M===D.target.getAttribute("name")&&(D.preventDefault(),document.querySelector(U.section+" "+U.close).focus())}}function X(){var D=h.value.replace(/^\s+$/,"").toLowerCase();v.querySelectorAll(".trade-in-select__options li").forEach(function(M){var S=null!==M.querySelector(".trade-in-popup__tradeIn-select__choose-name")?M.querySelector(".trade-in-popup__tradeIn-select__choose-name").textContent.toLowerCase().includes(D):
546!1,Q=null!==M.querySelector(".trade-in-popup__tradeIn-select__choose-price")?M.querySelector(".trade-in-popup__tradeIn-select__choose-price").textContent.toLowerCase().includes(D):!1;S||Q?M.classList.remove("hide"):M.classList.add("hide")})}function Y(){v.querySelectorAll(".trade-in-select__options li").forEach(function(D){D.classList.remove("hide")})}function O(D){D.shiftKey||window.sg.common.constants.KEY_CODE.TAB!==D.keyCode||(D.preventDefault(),document.querySelector(""+U.section).querySelector(".trade-in-popup__step--show").querySelectorAll('a, button, input
546:not([type\x3d"hidden"]), textarea')[0].focus())}
547function W(D){A(".trade-in-popup__sehk-condition-wrap .trade-in-popup__issue-list-item").target.forEach(function(M,S){S===D?(M.classList.remove("is-closed"),M.classList.add("is-opened")):S<D?(M.classList.add("is-closed"),M.classList.remove("is-opened")):(M.classList.remove("is-opened"),M.classList.remove("is-closed"))})}function V(D){var M=[];D.forEach(function(Q){Q=A(Q);Q.css({height:""});M.push(Q.outerHeight())});var S=Math.max.apply(null,M);D.forEach(function(Q){A(Q).css({height:S+"px"})})}var A=
548window.sg.common.$q,K=window.sg.common.scrollbar,N=window.sg.common.utils,R=window.sg.common.swiperManager;var Z=w=H=z=v=h=c=g=a=f=k=n=t=u=x=b=e=void 0;var ca=!1,aa=null,U={section:".trade-in-popup",close:".trade-in-popup__close",tradeinSelect:".trade-in-select",placeholder:".trade-in-select__placeholder",tradeinSelectOptions:".trade-in-select__options",chooseSelect:".trade-in-popup__tradeIn-select__choose-wrap",focusEl:'a:not([style*\x3d"display: none"]):not([style*\x3d"display:none"]), button:not([style*\x3d"display: none"]):not([style*\x3d"display:none"]), button:not(.swiper-button-disabled), input'},
549ba=[];window.sg.components.tradeInPopup={init:B,reInit:function(){B()},showStep:function(D){u.forEach(function(M){M.classList.remove("trade-in-popup__step--show")});t=e.querySelector(D);t.classList.add("trade-in-popup__step--show");t.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0].focus();q();E();window.sg.common.lazyLoad.setLazyLoad()},resizePopup:q,showPopup:function(D){ca=void 0===D?!1:D;e.style.display="block";t.classList.add("trade-in-popup__step--show");t.querySelectorAll('a, button, input:not([type\x3d"hidden"]), textarea')[0].focus();
550N.popupControl.open(l);N.hiddenScroll();N.setMobileFocusLoop(e);q();E()},closePopup:l,bindTooltipEvent:function(){Z=e.querySelectorAll(".trade-in-popup__condition-list");f=e.querySelectorAll(".trade-in-popup__condition-list-item-tooltip");[].concat($jscomp.arrayFromIterable(f)).forEach(function(D){D.removeEventListener("click",y);D.addEventListener("click",y);D.addEventListener("focusout",function(){D.classList.remove("trade-in-popup__condition-list-item-tooltip--show")})});[].concat($jscomp.arrayFromIterable(Z)).forEach(function(D){D.querySelector(".trade-in-popup__condition-list-item-tooltip")&&
551D.querySelectorAll(".trade-in-popup__condition-list-item-check-wrap").forEach(function(M){M.querySelector(".trade-in-popup__condition-list-item-tooltip")||M.classList.add("s-tooltip-none")})})},bindTradeInSelectEvent:r,bindDropdownEvent:function(){var D=e.querySelector(".trade-in-popup__brand-dropdown-wrap .trade-in-popup__dropdown"),M=D.querySelector(".trade-in-popup__dropdown--select-field"),S=D.querySelector(".trade-in-popup__dropdown--select-list"),Q=D.querySelectorAll(".trade-in-popup__dropdown--select-item"),
552da=-1;M.addEventListener("click",function(){M.classList.contains("trade-in-popup__dropdown--select-field-open")?M.classList.remove("trade-in-popup__dropdown--select-field-open"):(M.classList.add("trade-in-popup__dropdown--select-field-open"),K.resize(S),document.addEventListener("click",F))});[].concat($jscomp.arrayFromIterable(Q)).forEach(function(ha,ia){ha.addEventListener("click",function(){0<=da&&Q[da].classList.remove("trade-in-popup__dropdown--select-item-selected");M.querySelector(".trade-in-popup__dropdown--select-field-name").textContent=
553ha.querySelector(".trade-in-popup__dropdown--select-item-name").textContent;ha.classList.add("trade-in-popup__dropdown--select-item-selected");da=ia;M.classList.remove("trade-in-popup__dropdown--select-field-open")})});D=e.querySelector(".trade-in-popup__model-dropdown-wrap .trade-in-popup__dropdown");var ea=D.querySelector(".trade-in-popup__dropdown--select-field"),fa=D.querySelector(".trade-in-popup__dropdown--select-list"),ja=fa.querySelector(".trade-in-popup__dropdown--search-wrap"),ka=fa.querySelector(".trade-in-popup__dropdown--search-input");
554ea.addEventListener("click",function(){ea.classList.contains("trade-in-popup__dropdown--select-field-open")?ea.classList.remove("trade-in-popup__dropdown--select-field-open"):(ea.classList.add("trade-in-popup__dropdown--select-field-open"),K.resize(fa),document.addEventListener("click",F))});ka.addEventListener("focus",function(){ja.classList.add("focus")});ka.addEventListener("blur",function(){ja.classList.remove("focus")});ka.addEventListener("input",function(){var ha=ka.value.replace(/^\s+$/,"").toLowerCase();
555""!==ha?ja.classList.add("active"):ja.classList.remove("active");[].concat($jscomp.arrayFromIterable(fa.querySelectorAll(".trade-in-popup__dropdown--select-item"))).forEac
555h(function(ia){ia.querySelector(".trade-in-popup__dropdown--select-item-name").textContent.toLowerCase().includes(ha)||ia.querySelector(".trade-in-popup__dropdown--select-item-price").textContent.toLowerCase().includes(ha)?ia.classList.remove("hide"):ia.classList.add("hide")});K.resize(fa)});C()},bindModelDropdownItemEvent:C,bindNewDropdownEvent:function(D){var M=
556e.querySelectorAll(".trade-in-popup__new-dropdown")[D],S=M.querySelector(".trade-in-popup__new-dropdown--select-field");ba[D]||(ba[D]=!0,M.classList.remove("hide"),S.classList.add("open"),S.setAttribute("aria-expanded","true"),S.focus(),K.resize(M.querySelector(".scrollbar")),M.querySelector(".trade-in-popup__new-dropdown--select-field").addEventListener("click",function(){S.classList.contains("open")?(S.classList.remove("open"),S.setAttribute("aria-expanded","false")):(S.classList.add("open"),S.setAttribute("aria-expanded",
557"true"));K.resize(M.querySelector(".scrollbar"));[].concat($jscomp.arrayFromIterable(e.querySelectorAll(".trade-in-popup__new-dropdown"))).forEach(function(Q){Q!==M&&Q.querySelector(".trade-in-popup__new-dropdown--select-field").classList.remove("open")})}));[].concat($jscomp.arrayFromIterable(M.querySelectorAll(".trade-in-popup__new-dropdown--select-item-wrap"))).forEach(function(Q){Q.addEventListener("click",function(){S.innerText=Q.querySelector(".trade-in-popup__new-dropdown--select-item-name").innerText;
558S.classList.remove("open");S.focus()})})},showWarningMessage:function(){e.querySelector(".trade-in-popup__seca-imei-wrap .trade-in-popup__seca-imei--warning-message-wrap").classList.add("show");q()},showDeviceList:function(){e.querySelector(".trade-in-popup__seca-imei-wrap .trade-in-popup__brand-list-wrap").classList.add("show");q()},bindSecaSelectDropdownEvent:function(D){q();var M=e.querySelector(".trade-in-popup__seca-select-wrap .trade-in-popup__seca-select--dropdown-container"),S=M.querySelectorAll(".trade-in-popup__seca-select--dropdown")[D],
559Q=S.querySelector(".trade-in-popup__seca-select--dropdown-select-field");Q.addEventListener("click",function(){Q.classList.contains("open")?(Q.classList.remove("open"),Q.setAttribute("aria-expanded","false")):([].concat($jscomp.arrayFromIterable(M.querySelectorAll(".trade-in-popup__seca-select--dropdown .trade-in-popup__seca-select--dropdown-select-field"))).forEach(function(da){da.classList.remove("open")}),Q.classList.add("open"),Q.setAttribute("aria-expanded","true"),K.resize(S.querySelector(".scrollbar")))});
560D=S.querySelectorAll(".trade-in-popup__seca-select--dropdown-select-item-name");[].concat($jscomp.arrayFromIterable(D)).forEach(function(da){da.addEventListener("click",function(){S.classList.add("selected");Q.classList.remove("open");Q.setAttribute("aria-expanded","false");Q.innerText=da.innerText;Q.focus()})})},goToStep:W,showPromoCode:function(){c.classList.add("show")},hidePromoCode:function(){c.classList.remove("show")},setSearchDropdown:function(D){K.init(D.querySelector(".scrollbar"));var M=
561D.querySelector(".trade-in-popup__search-dropdown-input");D.classList.add("open");M.addEventListener("focus",function(){D.classList.add("open");D.querySelector(".trade-in-popup__search-dropdown-search-field").classList.remove("active");[].concat($jscomp.arrayFromIterable(D.querySelectorAll(".trade-in-popup__search-dropdown-item"))).forEach(function(S){S.classList.remove("hide")});M.value="";D.parentElement.nextElementSibling.classList.remove("show")});M.focus();M.addEventListener("input",function(){var S=
562M.value.replace(/^\s+$/,"").toLowerCase();""!==S?D.querySelector(".trade-in-popup__search-dropdown-search-field").classList.add("active"):D.querySelector(".trade-in-popup__search-dropdown-search-field").classList.remove("active");[].concat($jscomp.arrayFromIterable(D.querySelectorAll(".trade-in-popup__search-dropdown-item"))).forEach(function(Q){Q.querySelector(".trade-in-popup__search-dropdown-item-btn").textContent.toLowerCase().includes(S)?Q.classList.remove("hide"):Q.classList.add("hide")});K.resize(D.querySelector(".scrollbar"))});
563[].concat($jscomp.arrayFromIterable(D.querySelectorAll(".trade-in-popup__search-dropdown-item-btn"))).forEac
563h(function(S){S.addEventListener("click",function(){M.value=S.innerText;D.classList.remove("open");console.log("el.parentElement: ",D.parentElement);D.parentElement.nextElementSibling.classList.add("show")})})},scrollTo:function(D,M,S,Q,da){D="string"===typeof D?document.querySelector(D):-1<Object.prototype.toString.call(D).indexOf("HTML")?D:D.target[0];window.sg.components.getClass("scrollbar").instances.has(D)&&
564window.sg.components.getClass("scrollbar").instances.get(D).scrollTo(M,S,Q,da)}};A.ready(function(){return B()})})();
565(function(){var e=null,b=function(){this.templateHtml='\x3cdiv class\x3d"pd-page-loading"\x3e\n        \x3cdiv class\x3d"circular-progress circular-progress--light-bg"\x3e\n          \x3cdiv class\x3d"circular-progress__a"\x3e\x3c/div\x3e\n          \x3cdiv class\x3d"circular-progress__b"\x3e\x3c/div\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n      ';document.body.insertAdjacentHTML("beforeend",this.templateHtml);e=document.querySelector(".pd-page-loading")};b.instance=null;window.sg.components.pdPageLoading=
566{show:function(){b.instance?e.style.display="block":b.instance=new b},hide:function(){b.instance&&(e.style.display="none")}}})();
567(function(){var e,b,x,u;function t(){var H=document.querySelector(".siel-trade-in-popup");H&&(e=H,b=H.querySelector(".siel-trade-in-popup__close"),x=H.querySelector(".siel-trade-in-popup__btn-cancel"),u=H.querySelector(".siel-trade-in-popup--start"),v=H.querySelector(".siel-trade-in-popup--end"),z=0,n())}function n(){b.addEventListener("click",function(){f()});x.addEventListener("click",function(){f()});u.addEventListener("focus",function(){b.focus()});v.addEventListener("focus",function(){e.querySelector(".text-field-v2__input").focus()});
568window.addEventListener("resize",function(){k()});k()}function k(){var H=window.innerHeight,w=e.querySelector(".siel-trade-in-popup__title").getBoundingClientRect().height,B=e.querySelector(".siel-trade-in-popup__btn-wrap").getBoundingClientRect().height,m=H-w-B;"desktop"===h.getCurrentDevice()?640>m?e.querySelector(".scrollbar__wrap").style.height=H-w-B+"px":e.querySelector(".scrollbar__wrap").style.height="640px":e.querySelector(".scrollbar__wrap").style.height=H-w-B+"px";c.resize(e.querySelector(".scrollbar"))}
569function f(){e.removeAttribute("style");h.popupControl.close();h.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 a(){[].concat($jscomp.arrayFromIterable(e.querySelectorAll(".radio-v2__input"))).forEach(function(H){H.addEventListener("change",function(){[].concat($jscomp.arrayFromIterable(e.querySelectorAll(".radio-v2"))).forEach(function(w){w.classList.remove("active")});
570H.parentElement.classList.add("active")})})}var g=window.sg.common.$q,c=window.sg.common.scrollbar,h=window.sg.common.utils;var v=u=x=b=e=void 0;var z=0;window.sg.components.sielTradeInPopup={init:t,showPopup:function(){e.style.display="block";h.popupControl.open(f);h.hiddenScroll();k()},showStep:function(H){e.querySelectorAll(".siel-trade-in-popup-option")[z].classList.add("show");"last"===H&&(a(),e.querySelectorAll(".siel-trade-in-popup-option")[z+1].classList.add("show"),e.querySelector(".siel-trade-in-popup-option__headline-btn").addEventListener("click",
571function(){if(e.querySelector(".siel-trade-in-popup-option__type-guide-wrap").classList.contains("show")){var w=e.querySelector(".siel-trade-in-popup-option__type-guide-wrap"),B=e.querySelector("#guide-btn");w.classList.remove("show");w.classList.add("hide");B.setAttribute("xlink:href","#open-down-regular");B.setAttribute("href","#open-down-regular")}else e.querySelector(".siel-trade-in-popup-option__type-guide-wrap").classList.contains("hide")?(w=e.querySelector(".siel-trade-in-popup-option__type-guide-wrap"),
572B=e.querySelector("#guide-btn"),w.classList.remove("hide"),w.classList.add("show"),B.setAttribute("xlink:href","#close-up-regular"),B.setAttribute("href","#close-up-regular")):e.querySelector(".siel-trade-in-popup-option__type-guide-wrap").classList.add("show")}),e.querySelector(".siel-trade-in-popup__disclaimer-wrap").classList.add("show"));z+=1},closePopup:f,resizePopup:k,goScroll:function(H){H=e.querySelectorAll(".siel-trade-in-popup-option")[H].offsetTop;c.scrollTo(e.querySelector(".scrollbar"),
5730,H,!0)}};g.ready(function(){return t()})})();

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