var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(G){return G.raw=G};$jscomp.createTemplateTagFirstArgWithRaw=function(G,a){G.raw=a;return G};
(function(){function G(){a(K.Pdd39AnchorNav).target.forEach(function(b){q.instances.has(b)||new q(b)})}var a=window.sg.common.$q,U=window.sg.common.utils,K={Pdd39AnchorNav:".pdd39-anchor-nav"},P=window.sg.common.utils.getCurrentDevice,D=window.sg.common.tab,q=function(b){this.selector={html:"html",section:K.Pdd39AnchorNav,header:".pdd39-anchor-nav__header",navTop:".pdd39-anchor-nav__top",headerInfo:".pdd39-anchor-nav__info",headerDummny:".pdd39-anchor-nav__header-dummy",headlineWrap:".pdd39-anchor-nav__headline-wrap",
badge:".badge-icon",headline:".pdd39-anchor-nav__headline",price:".pdd39-anchor-nav__price",menu:".pdd39-anchor-nav__menu",menuTab:".pdd39-anchor-nav__menu .tab",menuItem:".pdd39-anchor-nav__menu .tab__item",menuBtn:".pdd39-anchor-nav__menu .tab__item a",bottomWrap:".pdd39-anchor-nav__bottom-wrap",bottom:".pdd39-anchor-nav__bottom",tooltip:".pdd39-anchor-nav__tooltip",priceTooltip:".pd-buying-price__tooltip",tooltipOpenBtn:".pdd39-anchor-nav__tooltip-btn, .pd-buying-price__tooltip-btn",tooltipCloseBtn:".pdd39-anchor-nav__tooltip-close-btn, .pd-buying-price__tooltip-close-btn"};
this.classes={headerFixed:"pdd39-anchor-nav--fixed",headerCollapsed:"pdd39-anchor-nav--collapsed",bottomFixed:"pdd39-anchor-nav__bottom--fixed",bottomExpanded:"pdd39-anchor-nav__bottom--expanded",scrollSmooth:"is-scroll--smooth",tooltipShow:"pdd39-anchor-nav__tooltip--show"};this.el={window:a(window),html:a("html"),section:a(b),header:null};this.scrollRect={headerStart:null,headerHeight:null,fixedHeaderHeight:null,headerInfoHeight:null,headlineWrapHeight:null,scrollActiveTarget:null,bottomEnd:null};
this.scrollEnd=0;this.currentDevice=P();this.isScrollEnd=null;this.isResizeObserving=!1;this.prevUrl=this.resizeObserver=this.prevScrollToPx=null;this.isScrollChange=!1;this.timer=0;this.activeTabIndex=null;this.isDummyExpanded=!1;this.resizeTimeout=this.bottomWrapHeight=null;this.setProperty();this.setScrollActiveTarget();this.handler={resize:this.resize.bind(this),scroll:this.scroll.bind(this),headerMenuClick:this.headerMenuClick.bind(this),goHash:this.goHash.bind(this),bannerClose:this.bannerClose.bind(this),
handleToggleTooltip:this.handleToggleTooltip.bind(this),disconnectResizeObserver:this.disconnectResizeObserver.bind(this)};q.instances.set(b,this);this.init()};q.prototype.setProperty=function(){var b=this;this.el.header=this.el.section.find(this.selector.header);this.el.navTop=this.el.section.find(this.selector.navTop);this.el.headerInfo=this.el.section.find(this.selector.headerInfo);this.el.headlineWrap=this.el.section.find(this.selector.headlineWrap);this.el.badge=this.el.section.find(this.selector.badge);
this.el.headerDummny=this.el.section.find(this.selector.headerDummny);this.el.menu=this.el.section.find(this.selector.menu);this.el.menuTab=this.el.section.find(this.selector.menuTab);this.el.menuItem=this.el.section.find(this.selector.menuItem);this.el.menuBtn=this.el.section.find(this.selector.menuBtn);this.el.tooltip=this.el.section.find(this.selector.tooltip);this.el.tooltipCloseBtn=this.el.section.find(this.selector.tooltipCloseBtn);this.el.tooltipOpenBtn=this.el.section.find(this.selector.tooltipOpenBtn);
this.el.priceCurrent=this.el.section.find(this.selector.priceCurrent);this.el.priceBox=this.el.section.find(this.selector.priceBox);this.el.priceOmnibus=this.el.section.find(this.selector.priceOmnibus);this.el.gnb=a(".nv00-gnb-v3").target[0]?a(".nv00-gnb-v3"):a(".nv00-gnb-v4");this.el.nv16=a(".nv16-country-selector");this.el.appBanner=a(".cod05-app-banner");this.el.selectArea=a(".select-area");this.el.bottomWrap=a(this.selector.bottomWrap);this.el.bottom=this.el.bottomWrap.find(this.selector.bottom);
this.el.bottomTooltipOpenBtn=this.el.bottomWrap.find(this.selector.tooltipOpenBtn);this.el.bottomTooltipCloseBtn=this.el.bottomWrap.find(this.selector.tooltipCloseBtn);this.el.bottomTooltipOpenBtn.target[0]&&(this.el.tooltipOpenBtn.target.push(this.el.bottomTooltipOpenBtn.target[0]),this.el.tooltipCloseBtn.target.push(this.el.bottomTooltipCloseBtn.target[0]));this.isRtl=U.isRtl();setTimeout(function(){b.getheaderStart()},500);this.scrollRect.headerHeight=this.el.header.offset().height;this.scrollRect.scrollActiveTarget=
[];this.el.menuItem.target.forEach(function(p){var C=a(p).find("a").attr("href");b.isIdSelector(C)&&b.scrollRect.scrollActiveTarget.push({el:p})})};q.prototype.init=function(){this.tabInit();this.bindEvents();this.goHash()};q.prototype.reInit=function(){this.setProperty();this.tabInit();this.setScrollActiveTarget();this.bindEvents()};q.prototype.tabInit=function(){D.init(this.el.menuTab.target[0],-1)};q.prototype.bindEvents=function(){this.el.menuBtn.off("click",this.handler.headerMenuClick).on("click",
this.handler.headerMenuClick);this.el.tooltipOpenBtn.off("click",this.handler.handleToggleTooltip).on("click",this.handler.handleToggleTooltip);this.el.tooltipCloseBtn.off("click",this.handler.handleToggleTooltip).on("click",this.handler.handleToggleTooltip);a(window).off("hashchange",this.handler.goHash).on("hashchange",this.handler.goHash);if(0<this.el.nv16.target.length)this.el.nv16.find("[data-action\x3dcountrySelectorClose]").off("click",this.handler.bannerClose).on("click",this.handler.bannerClose);
if(0<this.el.appBanner.target.length)this.el.nv16.find(".cod05-app-banner__close").off("click",this.handler.bannerClose).on("click",this.handler.bannerClose);this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("mousewheel",this.handler.disconnectResizeObserver).on("mousewheel",this.handler.disconnectResizeObserver);this.el.window.off("mousedown",this.handler.disconnectResizeObserver).on("mousedown",
this.handler.disconnectResizeObserver);this.el.window.off("keydown",this.handler.disconnectResizeObserver).on("keydown",this.handler.disconnectResizeObserver);this.el.window.off("touchstart",this.handler.disconnectResizeObserver).on("touchstart",this.handler.disconnectResizeObserver);this.resize();this.scroll()};q.prototype.getheaderStart=function(){this.scrollRect.headerStart=0;this.scrollRect.headerStart=Math.max(this.el.section.offset().top+window.scrollY-1,0)};q.prototype.setHeaderHeight=function(){var b=
this.el.headerInfo.offset().height,p=this.el.badge.target[0]?this.el.badge.offset().height+parseFloat(window.getComputedStyle(this.el.header.find(this.selector.badge).target[0]).marginBottom):0,C=this.el.section.find(this.selector.headline).offset().height;b=p+C+b;p=this.el.header.find(this.selector.price).offset().height;C=Math.max(C,p);var H=Math.max(b,p);p=this.el.menu.offset().height;if("desktop"===this.currentDevice){b=parseFloat(window.getComputedStyle(this.el.navTop.target[0]).paddingTop)+
parseFloat(window.getComputedStyle(this.el.navTop.target[0]).paddingBottom);var k=1440>=Math.max(document.documentElement.clientWidth,window.innerWidth||0)?2.22222222*Math.max(document.documentElement.clientWidth,window.innerWidth||0)/100:32;this.scrollRect.headerHeight=b+H+p;this.scrollRect.fixedHeaderHeight=k+C+p}else C=parseFloat(window.getComputedStyle(this.el.headlineWrap.target[0]).paddingTop)+parseFloat(window.getComputedStyle(this.el.headlineWrap.target[0]).paddingBottom),this.scrollRect.headerHeight=
C+b+p,this.scrollRect.fixedHeaderHeight=this.el.menu.offset().height;this.el.section.target[0].style.setProperty("--pdd39-header-height",this.scrollRect.headerHeight+"px");this.el.section.target[0].style.setProperty("--pdd39-fixed-header-height",this.scrollRect.fixedHeaderHeight+"px")};q.prototype.setScrollPaddingTop=function(){U.setScrollPaddingTop("pdd39",this.scrollRect.fixedHeaderHeight)};q.prototype.bannerClose=function(){var b=this;setTimeout(function(){b.getheaderStart();b.scroll()},500)};
q.prototype.goHash=function(){var b=window.location.hash.trim();""!==b&&document.querySelector(b)&&this.scrollHash(b)};q.prototype.resize=function(){var b=this;this.scroll();this.setScrollActiveTarget();this.currentDevice=P();this.setHeaderHeight();this.scrollRect.headerInfoHeight=this.el.headerInfo.offset().height;this.scrollRect.headlineWrapHeight=this.el.headlineWrap.offset().height;this.el.section.target[0].style.setProperty("--pdd39-info-height",this.scrollRect.headerInfoHeight+"px");this.el.section.target[0].style.setProperty("--pdd39-headline-wrap-height",
this.scrollRect.headlineWrapHeight+"px");this.setScrollPaddingTop();this.el.bottomWrap.target[0]&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){b.bottomWrapHeight=null},100),this.el.bottomWrap.css({minHeight:Math.floor(this.el.bottom.offset().height)+"px"}))};q.prototype.scroll=function(){var b=this;clearTimeout(this.isScrollEnd);this.getheaderStart();this.setScrollActiveTarget();this.activeScrollMenu();var p=window.scrollY;this.handleHeaderScrollDown();if("desktop"!==
this.currentDevice&&this.el.bottomWrap.target[0]){this.scrollRect.bottomEnd=Math.floor(this.el.bottomWrap.target[0].getBoundingClientRect().bottom);var C=p>this.scrollEnd?"down":"up";this.scrollRect.bottomEnd>window.innerHeight?(this.el.bottomWrap.addClass(this.classes.bottomFixed),"down"===C?(this.el.bottomWrap.removeClass(this.classes.bottomExpanded),this.bottomWrapHeight||setTimeout(function(){b.el.bottomWrap.hasClass(b.classes.bottomExpanded)||(b.bottomWrapHeight=Math.floor(b.el.bottom.offset().height),
b.el.bottomWrap.css({minHeight:b.bottomWrapHeight+"px"}))},300)):this.isDummyExpanded&&this.el.bottomWrap.addClass(this.classes.bottomExpanded)):(this.el.bottomWrap.removeClass(this.classes.bottomFixed),this.el.bottomWrap.removeClass(this.classes.bottomExpanded))}this.scrollEnd=p;this.prevUrl&&!this.isResizeObserving&&(this.isResizeObserving=!0,this.setResizeObserver(this.prevUrl));this.isScrollEnd=setTimeout(function(){b.el.html.removeClass(b.classes.scrollSmooth);var H=b.prevUrl?document.querySelector(b.prevUrl):
null;b.prevUrl&&b.isScrollChange?b.scrollHash(b.prevUrl):(H&&U.setFocusFirstFocusableEl(H),b.disconnectResizeObserver())},600)};q.prototype.handleHeaderScrollDown=function(){var b=this,p=window.scrollY,C=parseFloat(document.body.style.top);!("fixed"===document.body.style.position?0>C&&-C>this.scrollRect.headerStart:p>=Math.round(this.scrollRect.headerStart))||0===p&&!this.isResizeObserving?(this.el.section.removeClass(this.classes.headerFixed),this.el.section.removeClass(this.classes.headerCollapsed),
this.isDummyExpanded=!1):this.el.section.hasClass(this.classes.headerFixed)||(this.el.section.addClass(this.classes.headerFixed),setTimeout(function(){b.el.section.addClass(b.classes.headerCollapsed)}),this.isDummyExpanded||setTimeout(function(){b.isDummyExpanded=!0},300),this.el.tooltip.removeClass(this.classes.tooltipShow))};q.prototype.setResizeObserver=function(b){var p=this;this.resizeObserver=new ResizeObserver(function(){if(p.isResizeObserving&&!p.isScrollChange&&p.prevUrl===b){var C=a(b).eq(0),
H=p.scrollRect.fixedHeaderHeight;(document.body.scrollTop||document.documentElement.scrollTop)+(Math.round(C.offset().top)-H)!==p.prevScrollToPx&&(p.isScrollChange=!0)}});this.resizeObserver.observe(document.documentElement)};q.prototype.disconnectResizeObserver=function(){this.isResizeObserving&&(this.isScrollChange=this.isResizeObserving=!1,this.prevUrl=null,null!==this.resizeObserver&&this.resizeObserver.disconnect())};q.prototype.headerMenuClick=function(b){this.disconnectResizeObserver();var p=
b.currentTarget.getAttribute("href").trim();this.isIdSelector(p)&&(b.preventDefault(),b.stopPropagation(),p=a(b.currentTarget).closest(this.selector.menuItem).target[0],this.setActiveMenu(p),this.scrollHash(b.currentTarget.getAttribute("href")))};q.prototype.isIdSelector=function(b){if("string"!==typeof b)return!1;b=b.trim();return"#"!==b&&0===b.indexOf("#")&&(b=document.querySelector(b),null!==b&&void 0!==b)?!0:!1};q.prototype.setActiveMenu=function(b){this.activeTabIndex=Array.from(b.parentElement.children).indexOf(b);
D.selectTab(this.el.menuTab.target[0],this.activeTabIndex);this.moveMenuBar(this.el.menuItem.target[this.activeTabIndex])};q.prototype.moveMenuBar=function(b){if(0>=b.length||null===b)this.el.section.target[0].style.setProperty("--pdd39-header-menubar-left","auto"),this.el.section.target[0].style.setProperty("--pdd39-header-menubar-width","auto");else{var p=a(b).offset().width;this.el.section.target[0].style.setProperty("--pdd39-header-menubar-left",b.offsetLeft+"px");this.el.section.target[0].style.setProperty("--pdd39-header-menubar-width",
p+"px")}};q.prototype.scrollHash=function(b){var p=this;if(this.isIdSelector(b)){this.el.html.addClass(this.classes.scrollSmooth);var C=a(b).eq(0);this.prevUrl=b;0!==C.target.length&&requestAnimationFrame(function(){var H=p.scrollRect.fixedHeaderHeight,k=(document.body.scrollTop||document.documentElement.scrollTop)+(Math.round(C.offset().top)-H);p.prevScrollToPx=k;window.sg.common.lazyLoad.ignoreLazyLoadOnceUnder(document,k+H);0===C.outerHeight()?(2<=k-p.scrollRect.headerStart?window.scrollTo({top:Math.max(k-
1,1)}):window.scrollTo({top:Math.max(k,1)}),p.isScrollChange=!0):(window.scrollTo({top:k}),p.isScrollChange=!1);p.handleHeaderScrollDown()})}};q.prototype.setScrollActiveTarget=function(){var b=this,p=document.body.scrollTop||document.documentElement.scrollTop;this.scrollRect.scrollActiveTarget.forEach(function(C){var H=C.el.querySelector("a").getAttribute("href");b.isIdSelector(H)?(H=a(H).offset(),C.top=0!==H.top&&0!==H.bottom?H.top+p:null):C.top=null});this.scrollRect.scrollActiveTarget.sort(function(C,
H){return C.top-H.top})};q.prototype.activeScrollMenu=function(){if(!(0>=this.scrollRect.scrollActiveTarget.length)){var b=this.scrollRect.fixedHeaderHeight+(document.body.scrollTop||document.documentElement.scrollTop)+(this.currentDevice?1:0);if(null!==this.scrollRect.scrollActiveTarget[0].top&&b<this.scrollRect.scrollActiveTarget[0].top)D.selectTab(this.el.menuTab.target[0],-1),this.el.section.target[0].style.setProperty("--pdd39-header-menubar-left","auto"),this.el.section.target[0].style.setProperty("--pdd39-header-menubar-width",
"auto");else{var p;for(p=1;p<this.scrollRect.scrollActiveTarget.length&&!(b<this.scrollRect.scrollActiveTarget[p].top&&null!==this.scrollRect.scrollActiveTarget[p].top);p++);--p;null!==this.scrollRect.scrollActiveTarget[p].top&&b>=this.scrollRect.scrollActiveTarget[p].top&&(b=a(this.scrollRect.scrollActiveTarget[p].el),b.hasClass("active")||this.setActiveMenu(b.target[0]))}}};q.prototype.getRect=function(){return this.scrollRect};q.prototype.handleToggleTooltip=function(b){b=a(b.currentTarget);b=
b.hasClass("pd-buying-price__tooltip-btn")||b.hasClass("pd-buying-price__tooltip-close-btn")?b.closest(this.selector.priceTooltip):b.closest(this.selector.tooltip);if(b.hasClass(this.classes.tooltipShow)){var p=b.find(this.selector.tooltipOpenBtn);b.removeClass(this.classes.tooltipShow)}else p=b.find(this.selector.tooltipCloseBtn),b.addClass(this.classes.tooltipShow);p.focus()};q.instances=new WeakMap;a.load(G);window.sg.components.Pdd39AnchorNav={init:G,reInit:function(){a(K.Pdd39AnchorNav).target.forEach(function(b){q.instances.has(b)?
q.instances.get(b).reInit():new q(b)})},getRect:function(b){b=void 0===b?null:b;null===b&&(b=a(K.Pdd39AnchorNav).target[0]);return q.instances.has(b)?q.instances.get(b).getRect():{}},scrollToAnchor:function(b){b=b.trim();var p=a(K.Pdd39AnchorNav).target[0];q.instances.has(p)&&q.instances.get(p).scrollHash(b)}}})();
(function(G,a,U){function K(){var q=a("#anchorNavigationPriceBar"),b=a("#anchorNavigationPriceBarMobile");q&&1===q.length&&(q.productTitle=q.find(".sg-product-display-name"),q.priceSection=q.find("#sgDevPriceAreaBase"),D.$ui=q,D.component=P.dispatch(q),D.saleable="true"===q.attr("data-saleable"));b&&1===b.length&&(b.priceSection=b.find("#sgDevPriceAreaBaseMobile"),D.$mo=b)}G=window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2");var P=window.sg.sdf.comp,D=G.PriceBar={$ui:null,$mo:null,uiSelector:"#anchorNavigationPriceBar",
component:null,saleable:!1,refresh:K,setProductTitle:function(q){this.$ui&&this.$ui.productTitle.html(q)},resetPriceSection:function(q){this.$ui&&(this.$ui.priceSection.empty(),q&&this.$ui.priceSection.append(q),this.$mo&&(this.$mo.priceSection.empty(),q&&this.$mo.priceSection.append(q)))},drawPriceSection:function(q){if(this.$ui){var b=this.$ui.priceSection.empty().get(0);this.component.invokeTemplate("priceBox",q,b);this.$mo&&(this.$mo.priceSection.empty().get(0),this.$mo.priceSection.append(this.$ui.priceSection.html()))}},
resetMobilePriceSection:function(){this.$ui&&this.$mo&&(this.$mo.priceSection.empty().get(0),this.$mo.priceSection.append(this.$ui.priceSection.html()))},isEnabled:function(){return this.$ui&&1===this.$ui.length},isSaleable:function(){return this.saleable},show:function(){this.$ui&&this.$ui.show()},hide:function(){this.$ui&&this.$ui.hide();this.$mo&&this.$mo.hide()}};K()})(window,jQuery,window.sg.sdf.util);
(function(G,a){"undefined"===typeof G.smg&&(G.smg={});"undefined"===typeof G.smg.aem&&(G.smg.aem={});"undefined"===typeof G.smg.aem.components&&(G.smg.aem.components={});"undefined"===typeof G.smg.aem.components.product&&(G.smg.aem.components.product={});var U=G.smg.aem.components.product;U.setRecent=function(){var K={familyCode:a("#familyCode").val(),modelCode:a("#modelCode").val(),tellsomeYn:a("#tellsomeYn").val(),updated:function(k){var A=k.getUTCFullYear(),t=("0"+(k.getUTCMonth()+1)).slice(-2),
O=("0"+k.getUTCDate()).slice(-2),M=("0"+k.getUTCHours()).slice(-2),N=("0"+k.getUTCMinutes()).slice(-2);k=("0"+k.getUTCSeconds()).slice(-2);return A+"-"+t+"-"+O+" "+M+":"+N+":"+k}(new Date)},P=(a("#categoryGroupCode").val()||"").substring(0,2),D=(a("#categoryTypeCode").val()||"").substring(0,4),q=a("#categorySubTypeCode").val()||"",b="",p={"01":"Mobile","03":"Computing","04":"TV \x26 AV","05":"TV \x26 AV","08":"Home Appliances","09":"Computing"},C={"0701":"Monitors","0703":"TV \x26 AV","0705":"TV \x26 AV"},
H={11010400:"Home Appliances",11010500:"Home Appliances",11010600:"Home Appliances",11010700:"Laptops"};b=p[P]?p[P]:"07"===P?C[D]||"":"11"===P?H[q]||"":"";console.log("homePnzCookieValue\x3d["+b+"]");return{init:function(){void 0!==K.familyCode&&""!==K.familyCode&&void 0!==K.modelCode&&""!==K.modelCode&&"Y"!==K.tellsomeYn&&this.setRecentCode(K,30);this.setHomePnzCookie(b,30)},getCookie:function(k){k+="\x3d";for(var A=document.cookie.split(";"),t,O=0,M=A.length;O<M;O++){for(t=A[O];" "===t.charAt(0);)t=
t.substring(1);if(-1!==t.indexOf(k))return t.substring(k.length,t.length)}return""},getCookiePath:function(){var k=location.pathname;k=k.split("/");var A="true"===a("#isEppPage").val();return"content"===k[1]?A?"cn"===a("#siteCode").val()?k[1]+"/"+k[2]+"/"+k[3]+"/"+k[4]:k[1]+"/"+k[2]+"/"+k[3]+"/"+k[4]+"/"+k[5]:k[1]+"/"+k[2]+"/"+k[3]:A?"cn"===a("#siteCode").val()?k[1]+"/"+k[2]:k[1]+"/"+k[2]+"/"+k[3]:k[1]},getCookieEppPath:function(){var k="";null!=window.sg&&null!=window.sg.epp&&null!=window.sg.epp.common&&
(k=window.sg.epp.common.channelName);var A=location.pathname.split("/"),t=a("#siteCode").val();"levant"==t?t="jo":"levant_ar"==t?t="jo_ar":"n_africa"==t&&(t="ma");return"content"===A[1]?"cn"===a("#siteCode").val()?A[0]+"/"+A[1]+"/"+t+"/"+A[3]+"/"+k+"/"+A[4]:A[1]+"/"+A[2]+"/"+t+"/"+A[4]+"/"+k+"/"+A[5]:"cn"===a("#siteCode").val()?t+"/"+A[1]+"/"+k+"/"+A[2]:t+"/"+A[2]+"/"+k+"/"+A[3]},setCookie:function(k,A,t,O){var M=new Date,N=".samsung.com";"cn"===a("#siteCode").val()&&(N=".samsung.com.cn");M.setTime(M.getTime()+
864E5*(t||0));document.cookie=k+"\x3d"+A+"; expires\x3d"+M.toUTCString()+"; path\x3d"+O+"; domain\x3d"+N},setCookieHomePnz:function(k,A,t,O){var M=new Date,N=".samsung.com";"cn"===a("#siteCode").val()&&(N=".samsung.com.cn");M.setTime(M.getTime()+864E5*(t||0));document.cookie=k+"\x3d"+A+"; expires\x3d"+M.toUTCString()+"; path\x3d"+O+"; domain\x3d"+N},setRecentCode:function(k,A){var t=this.getCookie("recent_list"),O=this.getCookiePath();if(""===t||"undefined"===t)t=[k];else{t=JSON.parse(t);for(var M=
!1,N=0;N<t.length;N++)if(t[N].familyCode===k.familyCode){t.splice(N,1);"Y"!==k.tellsomeYn&&t.push(k);M=!0;break}M||(6<=t.length&&t.splice(0,1),t.push(k))}t=JSON.stringify(t);this.setCookie("recent_list",t,A,"/"+O+"/");"true"===a("#isEppPage").val()&&this.setCookie("recent_list",t,A,"/"+this.getCookieEppPath()+"/")},setHomePnzCookie:function(k,A){console.log("setHomePnzCookie homePnzCookieValue\x3d["+k+"]");var t=this.getCookie("home_pnz");this.getCookiePath();a("#siteCode").val();""!=k?(console.log("setHomePnzCookie homePnzCookieValue\x3d["+
k+"]"),""===t||"undefined"===t?(console.log("setHomePnzCookie homePnzCookieValue\x3d1"),t=k,console.log("setHomePnzCookie homePnzCookieValue\x3d11")):(console.log("setHomePnzCookie homePnzCookieValue\x3d2"),t=k,console.log("setHomePnzCookie homePnzCookieValue\x3d22"),console.log("setHomePnzCookie homePnzCookieValue\x3d3")),this.setCookieHomePnz("home_pnz",t,A,"/")):(k=new Date,k.setDate(k.getDate()-1),document.cookie="home_pnz\x3d ; expires\x3d"+k.toGMTString()+";")}}}();a(function(){U.setRecent.init()})})(window,
window.jQuery);
(function(G,a,U){function K(d){d.featureSyn&&d.specSyn&&d.supportSyn&&window.sg.components.pdHeaderNavigationV2.reInit()}function P(d){fnIsNull(d)||(d=d.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#039;"));return d}function D(d){if(!fnIsNull(d))return"de"===c&&-1!==a.inArray(Q,N)?I.hide():I.show(),J&&"BUY NOW_FEATURE"===d&&("ru"===c?d="\u041a\u0443\u043f\u0438\u0442\u044c":"true"==window.sg.epp.common.offlineFlag&&(d="BUY ONLINE")),
"iq_ar"!==c&&"iq_ku"!==c||"BUY NOW_FEATURE"!==d||(d="Buy"),I.html(Granite.I18n.get(d))}function q(d,l){if(J){var f=l.match(/[0-9]{13}/g);""===a.trim(f)&&(f=location.pathname.match(/[0-9]{13}/g),null!=f&&"undefined"!=typeof f&&""!==a.trim(f)&&(l=l.replace(d,d+"."+f)));return l.replace("/buy","").replace(/\/feature./ig,"/buy.")}return l}function b(d,l){var f=d.modelList[0];var e=q(Q,(null===f.originPdpUrl?"":f.originPdpUrl)+"buy/");var h="",m="";fnIsNull(f.price)||(h=f.price);fnIsNull(f.promotionPrice)||
(m=f.promotionPrice);!0===l?I.attr({href:fnIsNull(f.ctaLink)?e:f.ctaLink,"data-pimsubtype":fnIsNull(d.categorySubTypeEngName)?"":d.categorySubTypeEngName.toLowerCase(),"data-pvitype":fnIsNull(f.pviTypeName)?"":f.pviTypeName.toLowerCase(),"data-pvisubtype":fnIsNull(f.pviSubtypeName)?"":f.pviSubtypeName.toLowerCase(),"data-modelrevenue":h,"data-modelprice":h,"data-modelqty":"1","data-modelcurrency":z,"data-modelcode":f.modelCode,"data-modelname":f.modelName,"data-modeldisplay":P(f.displayName.replace(/<br>/ig,
" ").replace(/<sup>/ig," ")),"data-discountprice":m}):I.attr({"config-url":f.configuratorUrl,"data-pimsubtype":fnIsNull(d.categorySubTypeEngName)?"":d.categorySubTypeEngName.toLowerCase(),"data-pvitype":fnIsNull(f.pviTypeName)?"":f.pviTypeName.toLowerCase(),"data-pvisubtype":fnIsNull(f.pviSubtypeName)?"":f.pviSubtypeName.toLowerCase(),"data-modelrevenue":h,"data-modelprice":h,"data-modelqty":"1","data-modelcurrency":z,"data-modelcode":f.modelCode,"data-modelname":f.modelName,"data-modeldisplay":P(f.displayName.replace(/<br>/ig,
" ").replace(/<sup>/ig," ")),"data-discountprice":m});""===f.ctaTypeUpperCase?I.attr({"an-tr":"pdd39_anchor nav v3-"+pa+"-buy now-buy_cta2","an-ca":"buy cta","an-ac":"buy now","an-la":"anchor navi:buy now"}):"PREORDER"===f.ctaTypeUpperCase?I.attr({"an-tr":"pdd39_anchor nav v3-"+pa+"-pre order-buy_cta2","an-ca":"buy cta","an-ac":"pre-order","an-la":"anchor navi:pre-order"}):I.attr({"an-tr":"pdd39_anchor nav v3-"+pa+"-buy now-buy_cta2","an-ca":"buy cta","an-ac":"buy now","an-la":"anchor navi:buy now"})}
function p(d,l){var f="";if(d&&0<d.length){d=d[0];var e=d.monthly,h=d.months,m=!fnIsNull(e)&&!fnIsNull(h),g=l.salePrice;d=a(".pd-buying-price__new-price",ca);var u=a(".pd-buying-price__box",ca);m&&(m=currencyComma(g,z),e=currencyComma(e,z),f="hk"===c?f+(Granite.I18n.get("From {0}/mo",[e])+" "+m+" "+Granite.I18n.get("for {0} mos",[h])):"my"===c||"ro"===c||"bg"===c?f+(Granite.I18n.get("From {0}/mo",[e])+" "+Granite.I18n.get("or")+" "):!0===qa?f+(" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",
[e])+" "+Granite.I18n.get("for {0} mos",[h])+" "):"it"===c?f+(Granite.I18n.get("From {0}/mo",[e])+" "+Granite.I18n.get("for {0} mos",[h])):"in"===c?f+(Granite.I18n.get("From {0}/mo.",[e])+". "+Granite.I18n.get("or")+" "):f+(Granite.I18n.get("From {0}/mo",[e])+" "+Granite.I18n.get("for {0} mos",[h])+" "+Granite.I18n.get("or")+" "),l=l.showSavePrice?"hk"===c?f:!0===qa?'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+m+"\x3c/span\x3e"+f:"it"===c?'\x3cp class\x3d"pd-buying-price__monthly-price"\x3e'+
f+"\x3c/p\x3e":f+'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+m+"\x3c/span\x3e":"hk"===c?f:!0===qa?m+f:f+m,"it"===c?u.append(l):d.html(l))}}function C(d){var l=fnIsNull(d.price)?"":d.price,f=fnIsNull(d.promotionPrice)?"":d.promotionPrice,e=fnIsNull(d.priceFormatted)?"":d.priceFormatted,h=fnIsNull(d.promotionPriceFormatted)?"":d.promotionPriceFormatted,m=fnIsNull(d.stockLevelStatus)?"":d.stockLevelStatus.toUpperCase(),g=fnIsNull(d.lowestWasPrice)?"":d.lowestWasPrice.value,u="",F="",
v="",x="",y="",w="";"br"===c&&(F=fnIsNull(d.SavingInformation)?"":d.SavingInformation,v=fnIsNull(d.savingValue)?"":d.savingValue,x=fnIsNull(d.TaxPriceDisplay)?"":d.TaxPriceDisplay,d.installmentPlan&&d.installmentPlan.storeText&&(w=d.installmentPlan.storeText||""),y=w,"OUTOFSTOCK"===m&&(F="",x=l));w=!0;if(Y&&(w=!1,!fnIsNull(d.lowestWasPrice))){var r=d.lowestWasPrice.value;!fnIsNull(d.promotionPrice)&&d.promotionPrice<r&&ra?(l=r,e=currencyComma(l,z),w=!0):!fnIsNull(d.promotionPrice)&&r<=d.price&&d.promotionPrice<
r&&!ra&&(l=r,e=currencyComma(l,z),w=!0);J&&"it"===c&&!fnIsNull(d.promotionPrice)&&(l=r,e=currencyComma(l,z))}sa&&(fnIsNull(d.lowestWasPrice)||fnIsNull(d.promotionPrice)||d.price===d.promotionPrice||(ta=!0));"au"!==c||fnIsNull(d.lowestWasPrice)||(r=d.lowestWasPrice.value,!fnIsNull(d.promotionPrice)&&d.promotionPrice<r<d.price&&(l=r,e=currencyComma(l,z)));r=!1;if("NOORDER"!==m){r=!0;var B=m="";fnIsNull(d.price)||(m=d.price);fnIsNull(d.promotionPrice)||(B=d.promotionPrice);I.attr({"data-modelrevenue":m,
"data-modelprice":m,"data-discountprice":B})}"realtime"===d.apiType&&(l=deleteCurrency(d.price,z).trim(),f=deleteCurrency(d.promotionPrice,z).trim());if(da&&!fnIsNull(d.aemAdditionalInfoTypes)&&0<d.aemAdditionalInfoTypes.length){m=d.aemAdditionalInfoTypes;for(var n in m)if(B=m[n],"TRADEIN"===B.type&&!fnIsNull(B.aemAdditionalInfos)&&0<B.aemAdditionalInfos.length)for(var R in B.aemAdditionalInfos){var Z=B.aemAdditionalInfos[R];"TRADEIN_TEXT"!==Z.key||fnIsNull(Z.value)||(u=Z.value)}}""===f&&(f=l);""!==
u&&(f=u);d.showSavePrice=w;d.salePrice=f;n="";if(r)if(u=parseFloat(l)-parseFloat(f),0!==u&&w){n="ru"===c?n+('\x3cdiv class\x3d"pd-buying-price__new-price no-max-width" data-promotionprice\x3d"'+f+'"\x3e'+(""!==h?h:currencyComma(f,z))+"\x3c/div\x3e"):n+('\x3cdiv class\x3d"pd-buying-price__new-price" data-promotionprice\x3d"'+f+'"\x3e'+(""!==h?h:currencyComma(f,z))+"\x3c/div\x3e");n+='\x3cdiv class\x3d"pd-buying-price__box"\x3e';!0===sa&&!0===ta&&(h=n,F='\x3cp class\x3d"pd-buying-price__trade-in"\x3e'+
Granite.I18n.get("Best price in the past 30 days:")+" "+currencyComma(g,z)+"(",f=(Number(f)-Number(g))/Number(g)*Math.pow(10,2),f=Math.round(f),0<f&&(f="+"+f),n=h+(F+f+"%)\x3c/p\x3e"));"in"===c&&(n+='\x3cdiv class\x3d"pd-buying-price__was"\x3eMRP: '+aa+(""!==e?e:currencyComma(l,z))+ba+" ("+Granite.I18n.get("Incl. of all taxes")+")\x3c/div\x3e");"jp"===c?(n+='\x3cdiv class\x3d"pd-buying-price__save"\x3e'+Granite.I18n.get("Save {0}",[currencyComma(u,z)])+"\x3c/div\x3e",n+='\x3cdiv class\x3d"pd-buying-price__was" data-price\x3d"'+
d.price+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e",n+="(\u5272\u5f15\u524d\u4fa1\u683c : "+(""!==e?e:currencyComma(l,z))+")",n+="\x3c/div\x3e"):"it"===c?g&&(g=n,e='\x3cdiv class\x3d"pd-buying-price__was" data-price\x3d"'+l+'"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e"+aa+(""!==e?e:currencyComma(l,z))+ba+'\x3c/div\x3e\x3cdiv class\x3d"pd-buying-price__save"\x3e',f=Granite.I18n,h=f.get,l=Number(u)/Number(l)*
Math.pow(10,2),l=Number(l).toFixed(2),l=l.replace(".",","),n=g+(e+h.call(f,"Save the {0}%",l)+"\x3c/div\x3e")):"in"===c?n+='\x3cdiv class\x3d"pd-buying-price__save"\x3e'+Granite.I18n.get("Save {0}",[currencyComma(u,z)])+"\x3c/div\x3e":(n+='\x3cdiv class\x3d"pd-buying-price__was" data-price\x3d"'+l+'"\x3e\x3c!--892 --\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e",n+=aa+(""!==e?e:currencyComma(l,z))+ba,n+='\x3c/div\x3e\x3cdiv class\x3d"pd-buying-price__save"\x3e'+
Granite.I18n.get("Save {0}",[currencyComma(u,z)])+"\x3c/div\x3e");if("pe"===c||"cl"===c||"mx"===c||"co"===c)n+='\x3cdiv class\x3d"pd-buying-price__disclaimer"\x3e*Aplican condiciones\x3c/div\x3e';n+="\x3c/div\x3e";!J||"it"!==c||fnIsNull(d.price)||fnIsNull(d.promotionPrice)||(l=window.sg.epp.common.eppDiscountRate(d.price,d.promotionPrice),0!=l&&(n=n+'\x3cdiv class\x3d"pd-buying-price__box"\x3e\t\x3cstrong class\x3d"pd-buying-price__was"\x3e'+(Granite.I18n.get("Price at Samsung.it: {0}",[currencyComma(d.price,
z)])+"\x3c/strong\x3e"),n+='\t\x3cdiv class\x3d"pd-buying-price__save"\x3e'+Granite.I18n.get("You save {0}%",[l])+"\x3c/div\x3e",n+="\x3c/div\x3e"))}else"ru"===c?n+='\x3cdiv class\x3d"pd-buying-price__new-price no-max-width" data-promotionprice\x3d"'+f+'"\x3e'+(""!==h?h:currencyComma(f,z))+"\x3c/div\x3e":"br"===c?null!=F&&""!==F?(n+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+x+" \u00e0 vista "+F+'\x3c/div\x3e\x3cdiv class\x3d"pd-buying-price__box"\x3e',null!=y&&""!==y&&(n+='    \x3cp class\x3d"pd-buying-price__trade-in"\x3e'+
y+"\x3c/p\x3e"),n+='    \x3cdiv class\x3d"pd-buying-price__was"\x3e\x3cspan class\x3d"hidden"\x3ePre\u00e7o original:\x3c/span\x3e'+aa+currencyComma(l,z)+ba+"\x3c/div\x3e",n+='    \x3cdiv class\x3d"pd-buying-price__save"\x3e'+v+" off\x3c/div\x3e\x3c/div\x3e"):(n+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+x+" \u00e0 vista\x3c/div\x3e",null!=y&&""!==y&&(n+='\x3cdiv class\x3d"pd-buying-price__box"\x3e\x3cp class\x3d"pd-buying-price__trade-in"\x3e'+y+"\x3c/p\x3e\x3c/div\x3e")):n+='\x3cdiv class\x3d"pd-buying-price__new-price" data-promotionprice\x3d"'+
f+'"\x3e'+(""!==h?h:currencyComma(f,z))+"\x3c/div\x3e";""!==n&&ca.append(n)}function H(){var d=window.location.origin+window.location.pathname.replace(".html","/"),l=Q,f=xa,e=E.find("#navDisplayName").val(),h=E.find("#wtbUseYn").val();d=q(l,d+"buy/");var m=a("#tempTitle").val(),g=E.find("#navConfiguratorUrl").val(),u=E.find("#navCtaLocalText").val();E.find("#navCtaEngText").val();var F=E.find("#navConfiguratorUseYn").val();"Y"===F&&""!==g&&null!==g&&(d=g);"Y"===h&&"pl"!==c&&L.find("#anchorWtb").show().css("margin-left",
"");I.attr({href:d,"data-pimsubtype":"","data-pvitype":"","data-pvisubtype":"","data-modelrevenue":"","data-modelprice":"","data-modelqty":"1","data-modelcurrency":z,"data-modelcode":l,"data-modelname":f,"data-modeldisplay":P(e.replace(/<br>/ig," ").replace(/<sup>/ig," ")),"data-discountprice":""});"Y"===F?"page-feature-pd"===m&&(""!==g&&null!==g||I.addClass("cta--disabled"),""!==u&&null!==u&&D(u)):D("BUY NOW_FEATURE");"page-feature-pd"===m&&a("#sgDevPriceAreaBaseMobile")&&(a("#sgDevPriceAreaBaseMobile").empty(),
a("#sgDevPriceAreaBaseMobile").append(a("#sgDevPriceAreaBase").html()),a("#sgDevPriceAreaBaseMobile").find("#sgDevPriceArea").attr("id","sgDevPriceAreaMobile"),a("#sgDevPriceAreaBaseMobile").find(".pdd39-anchor-nav__cta").before('\x3cdiv id\x3d"sgDevPriceAreaMobile"\x3e\x3c/div\x3e'),window.sg.components.pdHeaderNavigationV2.reInit())}function k(){""!==V&&(c=V);var d=la+"/"+(J?ma:c)+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+Q;"py"===c&&(d=la+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+
Q);"Y"===ua?a.ajax({url:d,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(l,f,e){t(l)}}):a.ajax({url:d,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584_0",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(l,f,e){t(l)}})}function A(){""!==V&&(c=V);var d=la+"/"+(J?ma:c)+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+Q;if("ca"===c||"ca_fr"===c){var l=getSECACountryRegion();
d+="\x26country_region\x3d"+l}"Y"===ua?a.ajax({url:d,type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f,e,h){O(f)}}):a.ajax({url:d,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(f,e,h){O(f)}})}function t(d){"0000"===d.resultCode&&Q===d.code&&(d.apiType="realtime",C(d),a("#sgDevPriceAreaBaseMobile")&&(a("#sgDevPriceAreaBaseMobile").empty(),
a("#sgDevPriceAreaBaseMobile").append(a("#sgDevPriceAreaBase").html()),a("#sgDevPriceAreaBaseMobile").find("#sgDevPriceArea").attr("id","sgDevPriceAreaMobile")),window.sg.components.pdHeaderNavigationV2.reInit())}function O(d){"0000"===d.resultCode&&0<d.productDatas.length&&a.each(d.productDatas,function(l,f){if(Q===f.productCode&&(J&&"it"===c&&null===f.price&&!fnIsNull(f.promotionPrice)&&(f.price=0),!fnIsNull(f.price)))return f.apiType="simple",C(f),M(f),window.sg.components.pdHeaderNavigationV2.reInit(),
!1});a("#sgDevPriceAreaBaseMobile")&&(a("#sgDevPriceAreaBaseMobile").empty(),a("#sgDevPriceAreaBaseMobile").append(a("#sgDevPriceAreaBase").html()),a("#sgDevPriceAreaBaseMobile").find("#sgDevPriceArea").attr("id","sgDevPriceAreaMobile"));window.sg.components.pdHeaderNavigationV2.reInit()}function M(d){var l=J?ma:c,f="ca"===c||"ca_fr"===c,e=J||"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?{withCredentials:!0}:{},h="ae ae_ar jo jo_ar sa sa_en za ma eg".split(" "),m="";J&&
h.includes(c)&&(m="/nocache");l=la+"/"+l+"/servicesv2"+m+"/leasingInfo?productCode\x3d"+Q;f&&(f=getSECACountryRegion(),l+="\x26country_region\x3d"+f);"Y"===ua?a.ajax({url:l,type:"GET",cache:!0,crossDomain:!0,xhrFields:e,dataType:"json",timeout:2E4,success:function(g){p(g,d)}}):a.ajax({url:l,type:"GET",cache:!0,crossDomain:!0,xhrFields:e,dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_171",timeout:2E4,success:function(g){p(g,d)}})}window.sg.components.pdHeaderNavigationV2=window.sg.components.Pdd39AnchorNav;
var N="NP955XED-KA1DE NP950QED-KA1DE NP950QED-KA2DE NP950XED-KA1DE NP930XED-KA1DE NP930QED-KH1DE NP930QED-KA1DE NP930QED-KA2DE NP750XED-KC2DE NP750XED-KC1DE NP750XED-KB2DE NP750XED-KB1DE NP750XED-KB4DE NP750XED-KB3DE NP750XED-KB5DE NP730QED-KA1DE NP750XEE-XA2DE NP750XED-KC5DE NP750XED-KC4DE NP750XED-KC3DE NP750XED-KB7DE NP750XED-KB6DE NP950QED-KA4DE NP950QED-KA3DE NP950QED-KJ1DE NP930QED-KA3DE".split(" ");G="ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" ");var ya=window.sg.sdf.util.prepareNamespace("sg.components.dynamic.ux2").PriceBar,
ea=a("#anchorContainer.sg-component"),L=ea.find("#anchor-menu-list"),E=a("#navProperties.sg-component"),S=a("#anchorNavigationPriceBar"),ca=S.find("#sgDevPriceArea"),I=S.find(".pdd39-anchor-nav__cta a.cta.anchorBtn");U=U.prepareNamespace("sg.aem.components.product");var Q=a("#modelCode").val(),xa=a("#modelName").val(),z=a("#priceCurrency").val();S=a("#apiStageInfo").val();var W=a("#shopIntegrationFlag").val(),ua=a("#hybrisApiJson").val(),fa=a("#useStore").val();a("#categoryGroupCode").val();var na=
a("#searchDomain").val(),la=a("#storeDomain").val(),ha=E.find("#navOldProductYn").val(),ia="GPv2"===W,ja="Hybris-new"===W,da="Hybris-intg"===W,za=fnIsNull(W),Aa=E.find("#navPriceDisplayYn").val(),Ba=E.find("#navShopServiceYn").val(),Ca=E.find("#navPackageYn").val(),pa=E.find("#navPageTrack").val(),c=a("#siteCode").val(),Da=("Y"===Ba&&"Y"===fa||"Hybris-intg"===W)&&"Y"!==ha,Ea=["br","latin","ar","uy"].includes(c),Y="pl si gr fi it se no dk fr de cz sk lv lt ee pt".split(" ").includes(c),X=!1,sa="hu"===
c,ta=!1,qa=["se","fi","no"].includes(c),ra=["se","fi","no","dk","pt"].includes(c),aa="Y"==a("#isNotDelTagSites").val()?"\x3cdel\x3e":"",ba="Y"==a("#isNotDelTagSites").val()?"\x3c/del\x3e":"",T={siteCode:c,modelList:Q,onlyRequestSkuYN:"Y",keySummaryYN:"N",specYN:"N"},J="true"===a("#isEppPage").val(),ma=a("#eppCompanyCode").val();fa=J?"epp/v2":"b2c";J&&(T.companyCode=ma,T.shopSkuYN="N",window.sg.epp.common.isUserGroupPricing&&(T.groupName=window.sg.epp.common.groupName),ha=location.pathname.match(/[0-9]{13}/g),
null!=ha&&"undefined"!=typeof ha&&""!=a.trim(ha)&&(T.offerId=ha[0]),Y="Y"===eppOmniPricingUseYn?!0:!1,ra&&(Y=!0),""!==window.sg.epp.common.userStoreId&&(T.o2oId=window.sg.epp.common.userStoreId));S=na+"/"+S+"/"+fa;var oa=S+"/product/card/detail/global";ia?(T.commonCodeYN="N",T.saleSkuYN="N",oa=S+"/product/card/detail/gpv2"):ja?(T.commonCodeYN="N",T.saleSkuYN="N",oa=S+"/product/card/detail/newhybris"):da&&(T.saleSkuYN="N",oa=S+"/product/card/detail/hybris");S=a.cookies.get("estoreSitecode")||"";na=
a.cookies.get("country_region")||"";var V=fa="";"ae"===c||"ae_ar"===c?V=""!==S?G.includes(S)?S:c:c:"levant"===c?V="jo":"levant_ar"===c?V="jo_ar":"n_africa"===c&&(V="ma");if("ca"===c||"ca_fr"===c)fa=fnIsNull(na)?"CA-ON":na,T.regionCode=fa;""!==V&&(T.shopSiteCode=V);U.setAnchors=function(){var d=function(e){var h="N";"A"===e&&(h="Y");return h},l=function(e){var h=!0;0<e.length?e.each(function(){"N"===a(this).val()&&(h=!1)}):h=!1;return h},f=function(e){var h=!0;e.each(function(){"N"===a(this).val()&&
(h=!1)});return h};return{setAnchor:function(){var e=ea,h=a("#summaryEmptyYn").val(),m=a("#supportEmptyYn").val(),g=a("#specEmptyYn").val();"Y"===Ca&&(g="N");var u=a("input[name\x3dfeatureEmptyYn]"),F=a("#featureBundleEmptyYn").val(),v=a("input[name\x3dfeatureGalleryEmptyYn]"),x=["Y","N",v.val(),h,m,g,F],y="highlights features gallery summary support specs feature-benefit-bundle".split(" "),w=l(u);f(v);h=ea.find(".tab__list \x3e li:not(#anchor_pd-g-product-compare)");m=a("#summaryProductType").val();
d(m);e.hide();h.each(function(){var r=a(this).attr("id");if(void 0!==r){r=r.replace("anchor_","");var B=!1;if("reviewWrap"===r){var n=L.find("#reviewWrap");n.show();n.removeAttr("style")}else if("anchorWtb"===r)L.find("#anchorWtb \x3e a").attr("href","javascript:;");else{if((!isNaN(r)||-1<r.indexOf("feature"))&&w)a(this).hide(),a(this).css("margin-left","0px"),B=!0;else for(n=0;n<y.length;n++)if(0<=r.indexOf(y[n])){r=a(this);"N"===x[n]?(a(r).show(),a(r).css("margin-left","")):(a(r).hide(),a(r).css("margin-left",
"0px"));B=!0;break}B||(n=a(this),n.show(),n.removeAttr("style"))}}});h=a("#tempTitle").val();m=E.find("#navConfiguratorUrl").val();g=E.find("#navCtaLocalText").val();E.find("#navCtaEngText").val();"Y"===E.find("#navConfiguratorUseYn").val()&&("page-feature-pd"===h?""!==m&&null!==m?I.attr("href",m):I.addClass("cta--disabled"):"page-standard-pd"===h&&(""!==m&&null!==m?I.attr("href",m+"?modelCode\x3d"+Q):I.addClass("cta--disabled")),""!==g&&null!==g&&I.html(g));e.show()},setApi:function(){a.ajax({url:oa,
data:T,success:function(e){var h=a("#tempTitle").val(),m=E.find("#navConfiguratorUrl").val(),g=E.find("#navCtaLocalText").val();E.find("#navCtaEngText").val();var u=E.find("#navConfiguratorUseYn").val();if(200===e.response.statusCode&&null!==e.response.resultData){e=e.response.resultData.productList[0];var F="";if(fnIsNull(e))return H(),!1;fnIsNull(e)||fnIsNull(e.modelList[0].ctaType)||(F=e.modelList[0].ctaType.toUpperCase(),e.modelList[0].ctaTypeUpperCase=F);if(!fnIsNull(e)&&"Y"===e.iaCtaDisplay)if(ia||
ja){var v=e.modelList[0],x=!1;!fnIsNull(v.configuratorUrl)&&(x=!0);"us"===c&&fnIsNull(v.buyingConfigLink)&&(x=!0,v.configuratorUrl=v.buyingConfigLink);var y=!1;fnIsNull(v.priceDisplay)&&fnIsNull(v.promotionPriceDisplay)&&(y=!0);"Y"===v.wtbUseFlag&&"pl"!==c&&L.find("#anchorWtb").show().css("margin-left","");y?(b(e,!0),D("BUY NOW_FEATURE")):"INSTOCK"!==v.ctaTypeUpperCase&&"BACKORDERED"!==v.ctaTypeUpperCase&&"PREORDER"!==v.ctaTypeUpperCase||!x?"INSTOCK"!==v.ctaTypeUpperCase&&"BACKORDERED"!==v.ctaTypeUpperCase&&
"PREORDER"!==v.ctaTypeUpperCase||x?("OUTOFSTOCK"===v.ctaTypeUpperCase&&x?b(e,!1):b(e,!0),D("BUY NOW_FEATURE")):(b(e,!0),"PREORDER"===v.ctaTypeUpperCase?D("pre order"):D("BUY NOW_FEATURE")):(b(e,!1),"PREORDER"===v.ctaTypeUpperCase?D("pre order"):D("BUY NOW_FEATURE"))}else da?(v=e.modelList[0],x=!1,!fnIsNull(v.configuratorUrl)&&(x=!0),"WHERETOBUY"===v.ctaTypeUpperCase?(x?b(e,!1):b(e,!0),D("BUY NOW_FEATURE")):"BUYNOWLINK"===v.ctaTypeUpperCase?(b(e,!0),D(v.ctaTitle)):"PREORDER"===v.ctaTypeUpperCase?(x?
b(e,!1):b(e,!0),D("pre order")):("OUTOFSTOCK"===v.ctaTypeUpperCase?x?b(e,!1):b(e,!0):b(e,!0),D("BUY NOW_FEATURE"))):(v=e.modelList[0],x=!1,!fnIsNull(v.configuratorUrl)&&(x=!0),za?(b(e,!0),D("BUY NOW_FEATURE")):"WHERETOBUY"===v.ctaTypeUpperCase?(x?b(e,!1):b(e,!0),D("BUY NOW_FEATURE")):"BUYNOWLINK"===v.ctaTypeUpperCase?(b(e,!0),D(v.ctaTitle)):"PREORDER"===v.ctaTypeUpperCase?(x?b(e,!1):b(e,!0),D("pre order")):("OUTOFSTOCK"===v.ctaTypeUpperCase?x?b(e,!1):b(e,!0):b(e,!0),D("BUY NOW_FEATURE")));"Y"===u&&
"page-feature-pd"===h&&(""!==m&&null!==m?(e.modelList[0].ctaLink=m,b(e,!0)):I.addClass("cta--disabled"),""!==g&&null!==g&&D(g));if(ya.isSaleable())if(Da)Ea?k():A();else{m=F;h="";g=e.modelList[0];u=g.priceDisplay;"nl"!==c&&"be"!==c&&"be_fr"!==c||fnIsNull(u)||(u=deleteCurrency(u,z));e=!1;"Y"!==Aa||fnIsNull(u)||"mx"===c||"pl"===c&&"OUTOFSTOCK"===m||(e=!0);F=!1;v="";da&&!fnIsNull(g.tradeInPriceText)&&(v=g.tradeInPriceText,F=!0);if(e){var w="";e=u;var r="",B="",n=x="",R=y="",Z="",ka=!1,wa=!1;if(ia||ja){if(!fnIsNull(g.leasingInfo)&&
"nl"===c&&"Y"===g.upgrade)R=g.leasingInfo,Z=deleteCurrency(R.monthlyRate,z),B=R.tenureVal,y=deleteCurrency(R.downPaymentFormatted,z),R=R.tenureUnit,wa=!0;else if(!(fnIsNull(g.monthlyPriceInfo)||fnIsNull(g.monthlyPriceInfo.leasingMonthly)||fnIsNull(g.monthlyPriceInfo.leasingMonths)||fnIsNull(g.monthlyPriceInfo.interest))){n=g.monthlyPriceInfo;"bg"===c?("eur"===z.toLowerCase()?(r=Math.pow(10,2),B=1.95583*Number(n.leasingMonthly),B=Math.round(B*r)/r,r=currencyComma(B,"BGN")):(r=Math.pow(10,2),B=Number(n.leasingMonthly)/
1.95583,B=Math.round(B*r)/r,r=currencyComma(B,"EUR")),r=currencyComma(n.leasingMonthly,z)+" / "+r):r=currencyComma(n.leasingMonthly,z);B=n.leasingMonths;n=n.interest;if("pe"===c||"cl"===c||"mx"===c||"co"===c||"ro"===c||"bg"===c||"gr"===c)n="";"uk"!==c&&(ka=!0)}w=g.promotionPriceDisplay;if("be"===c||"be_fr"===c||"nl"===c)w=g.promotionPrice,w=currencyComma(w,z)}else fnIsNull(g.monthlyPriceInfo)||fnIsNull(g.monthlyPriceInfo.leasingMonthly)||fnIsNull(g.monthlyPriceInfo.leasingMonths)||!"au nz ae my sg ca ca_fr it se dk fi no es pt th tw ru ch ch_fr".split(" ").includes(c)||
(ka=g.monthlyPriceInfo,r=currencyComma(ka.leasingMonthly,z),B=ka.leasingMonths,ka=!0),da&&(w=g.promotionPriceDisplay);!fnIsNull(w)&&(e=w);if("Hybris-new"===W||"Hybris-intg"===W||"Hybris"===W)fnIsNull(w)?fnIsNull(u)||(g.lowestWasPriceUseYn="N",Y&&!fnIsNull(g.lowestWasPrice)&&!fnIsNull(g.price)&&parseFloat(g.lowestWasPrice)<=parseFloat(g.price)&&(g.lowestWasPriceUseYn="Y",g.price=g.lowestWasPrice,g.priceDisplay=currencyComma(g.lowestWasPrice,z),X=!0,u=g.priceDisplay)):Y&&!fnIsNull(g.lowestWasPrice)&&
!fnIsNull(g.promotionPrice)&&parseFloat(g.lowestWasPrice)<=parseFloat(g.price)&&parseFloat(g.promotionPrice)<parseFloat(g.lowestWasPrice)&&(g.lowestWasPriceUseYn="Y",g.price=g.lowestWasPrice,g.priceDisplay=currencyComma(g.lowestWasPrice,z),X=!0,u=g.priceDisplay);if(ia||ja){if(!fnIsNull(w)){w=0;null!==g.listPrice&&(w=parseFloat(g.listPrice)-parseFloat(g.price));var va=parseFloat(g.price)-parseFloat(g.promotionPrice);Y&&X&&(g.saveText=va);Y&&!X&&(va=0,g.saveText=null);if(0===va||fnIsNull(g.saveText))0<
w&&("nl"===c||"be"===c||"be_fr"===c)&&(x+='\x3cdiv class\x3d"pd-buying-price__price"\x3e'+Granite.I18n.get("Listprice")+" "+currencyComma(g.listPrice,z)+"\x3c/div\x3e");else{J||"ro"!==c&&"bg"!==c||(u=Granite.I18n.get("RRP {0}",[u]));w=g.saveText;if("nl"===c||"be"===c||"be_fr"===c||"de"===c)x="de"===c&&X?x+('\x3cdiv class\x3d"pd-buying-price__was"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e"+u+"\x3c/div\x3e"):x+('\x3cdiv class\x3d"pd-buying-price__was"\x3e\x3cspan class\x3d"hidden"\x3e'+
Granite.I18n.get("Original Price")+": \x3c/span\x3e"+Granite.I18n.get("From {0}",[aa+u+ba])+"\x3c/div\x3e");else if("in"===c&&(x+='\x3cdiv class\x3d"pd-buying-price__was"\x3eMRP: '+u+" ("+Granite.I18n.get("Incl. of all taxes")+")\x3c/div\x3e"),"cz"!==c&&"sk"!==c||!X||(x+='\x3cdiv class\x3d"pd-buying-price__label"\x3e'+Granite.I18n.get("Lowest price in last 30 days")+"\x3c/div\x3e"),"pl"===c&&X&&(x+='\x3cdiv class\x3d"pd-buying-price__label"\x3e'+Granite.I18n.get("Lowest price 30 days before the discount:")+
"\x3c/div\x3e"),"at"===c&&X&&(x+='\x3cdiv class\x3d"pd-buying-price__label"\x3e'+Granite.I18n.get("Lowest price 30 days before the discount:")+"\x3c/div\x3e"),"co"===c&&g.vatEligible&&"true"===g.vatEligible)a(".pd-buying-price").addClass("pd-buying-price--samcol-only"),a(".pd-buying-price__new-price").addClass("pd-buying-price__new-price--samcol");else if(!J&&("ro"===c||"bg"===c))x+='\x3cdiv class\x3d"pd-buying-price__was 1175"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+
": \x3c/span\x3e"+u+"\x3c/div\x3e";else if("tr"!==c&&"in"!==c||J)x+='\x3cdiv class\x3d"pd-buying-price__was 1237"\x3e\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Original Price")+": \x3c/span\x3e"+aa+u+ba+"\x3c/div\x3e";"nl"===c||"be"===c||"be_fr"===c||"ro"===c||"bg"===c||"co"===c&&g.vatEligible&&"true"===g.vatEligible||"tr"===c&&!J||(x+='\x3cdiv class\x3d"pd-buying-price__save"\x3e'+Granite.I18n.get("Save {0}",[currencyComma(w,z)])+"\x3c/div\x3e")}}}else da||fnIsNull(g.formattedPriceSave)||
(x=g.formattedPriceSave);if(!("NOORDER"!==m&&"LEARNMORE"!==m||"nl"!==c&&"be"!==c&&"be_fr"!==c))h+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+u+"\x3c/div\x3e";else if((ia||ja)&&"LEARNMORE"!==m&&"NOORDER"!==m||!ia&&!ja&&"LEARNMORE"!==m){F?h+='\x3cdiv class\x3d"pd-buying-price__text"\x3e\x3cp class\x3d"pd-buying-price__text-lease"\x3e'+v+"\x3c/p\x3e\x3c/div\x3e":ka?(h+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e',h="id"===c?h+(Granite.I18n.get("pd From {0}/mo",[r])+" "):"in"===c?h+(Granite.I18n.get("From {0}/mo.",
[r])+" "):"pl"===c?h+(e+'\x3cspan class\x3d"pd-buying-price__monthly-price"\x3e'+Granite.I18n.get("or")+" "+Granite.I18n.get("from {0}/mo",[r])+" "):h+(Granite.I18n.get("From {0}/mo",[r])+" "),"in"!==c&&(""!==n?h+=Granite.I18n.get("for {0} mos at {1}% APR",[B,n]):"my"!==c&&"ro"!==c&&"bg"!==c&&(h+=Granite.I18n.get("for {0} mos",[B]))),h="my"===c?h+(Granite.I18n.get("or")+" "+e+"\x3c/div\x3e"):"pl"===c?h+"\x3c/span\x3e\x3c/div\x3e":h+(" "+Granite.I18n.get("or")+" "+e+"\x3c/div\x3e")):wa?""!==y&&""!==
R&&""!==B&&""!==Z&&(m=" "+y+" + "+B+" x "+Z+"/"+Granite.I18n.get(R),h+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+e+" "+Granite.I18n.get("or")+m+"\x3c/div\x3e"):"co"===c&&g.vatEligible&&"true"===g.vatEligible?(h+='\x3cdiv class\x3d"pd-buying-price__new-price pd-buying-price__new-price--samcol"\x3e\t\x3cdiv class\x3d"pd-buying-price__samcol-main"\x3e\x3cstrong\x3e'+Granite.I18n.get("Price without VAT")+":\x3c/strong\x3e\x3cstrong\x3e "+g.vatFreePriceDisplay+"\x3c/strong\x3e\x3c/div\x3e",e&&
(h+='\t\x3cdiv class\x3d"pd-buying-price__samcol-special"\x3e\x3cstrong\x3e'+Granite.I18n.get("Price with discount")+"\x3c/strong\x3e\x3cstrong\x3e "+e+"\x3c/strong\x3e\x3c/div\x3e"),h+='\t\x3cdiv class\x3d"pd-buying-price__samcol-rrp"\x3e\x3cspan\x3e'+Granite.I18n.get("Price before")+":\x3c/span\x3e"+aa+u+ba+"\x3c/div\x3e\x3c/div\x3e"):h+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+e+"\x3c/div\x3e";h+='\x3cdiv class\x3d"pd-buying-price__box"\x3e';fnIsNull(x)||(!0===sa&&!0===ta&&(x+='\x3cp class\x3d"pd-buying-price__trade-in"\x3eAz elm\u00falt 30 nap legalacsonyabb \u00e1ra: \x3c/p\x3e\x3c!--1529 --\x3e'),
h+=x);if("pe"===c||"cl"===c||"mx"===c||"co"===c)h+='\x3cdiv class\x3d"pd-buying-price__disclaimer"\x3e*Aplican condiciones\x3c/div\x3e\x3c!-- 1157 --\x3e';h+="\x3c/div\x3e";J&&"pl"===c&&!fnIsNull(g.msrpPrice)&&(m=" "+currencyComma(g.msrpPrice,z),h+='\x3cp class\x3d"pd-buying-price__advice-price"\x3e'+Granite.I18n.get("Listprice")+m+"\x3c/p\x3e")}""!==h&&ca.append(h);ca.find(".pd-buying-price__new-price").text()&&(h=ca.find(".pd-buying-price__new-price"),"bg"===c?h.html(h.html().replace(e,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+
e+"\x3c/span\x3e")):"pl"===c?(m='\n                        \x3cdiv class\x3d"pd-buying-price__new-price-inner"\x3e\n                           \x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+e+"\x3c/span\x3e\n                        \x3c/div\x3e",h.html(h.html().replace(e,m))):h.html(h.text().replace(e,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+e+"\x3c/span\x3e")))}a("#sgDevPriceAreaBaseMobile")&&(a("#sgDevPriceAreaBaseMobile").empty(),a("#sgDevPriceAreaBaseMobile").append(a("#sgDevPriceAreaBase").html()),
a("#sgDevPriceAreaBaseMobile").find("#sgDevPriceArea").attr("id","sgDevPriceAreaMobile"));window.sg.components.pdHeaderNavigationV2.reInit()}else a("#sgDevPriceAreaBaseMobile")&&(a("#sgDevPriceAreaBaseMobile").empty(),a("#sgDevPriceAreaBaseMobile").append(a("#sgDevPriceAreaBase").html()),a("#sgDevPriceAreaBaseMobile").find("#sgDevPriceArea").attr("id","sgDevPriceAreaMobile"),a("#sgDevPriceAreaBaseMobile").find(".pdd39-anchor-nav__cta").before('\x3cdiv id\x3d"sgDevPriceAreaMobile"\x3e\x3c/div\x3e'),
window.sg.components.pdHeaderNavigationV2.reInit())}else return H(),!1}})},buyingAnchor:function(){if("Y"!==E.find("#marketingPdpYN").val()){var e=window.location.pathname+window.location.search;e=e.replace("/buy","");var h=E.find("#current-page-nav").val(),m=a("#runmodeInfo").val(),g="/",u={};J&&(e=window.location.href.replace(/\/buy./ig,"/feature."));("live"===m||"qa"===m)&&0<=h.indexOf("/content/samsung")&&(h=h.replace("/content/samsung",""));-1<location.href.indexOf(".html")&&(g=".html");m="";
if(J){var F=location.pathname.match(/[0-9]{13}/g);null!=F&&"undefined"!=typeof F&&""!==a.trim(F)&&(m=".offerid-"+F)}var v=modelCodeToSelector(Q);F=h+".dynamic.pd-g-feature-benefit-ux2."+v+"."+c+".feature.readonly"+m+g;var x=h+".dynamic.pd-g-product-specs-ux2."+v+"."+c+m+g;h=h+".dynamic.pd-g-product-support-ux2."+v+"."+c+m+g;1===L.find("#highlightsWrap").length&&L.find("#highlightsWrap \x3e a ").attr("href",e+"#highlights");a.ajax({url:F,type:"GET",dataType:"html",success:function(y){if("Y"===ea.find("#featureAnchorListYn").val()){y=
L.find("[id^\x3dbenefitWrap]");for(var w=y.length,r=[],B=0;B<w;B++)r.push(L.find("#benefitWrap"+B).find("a").attr("href"));for(w=0;w<r.length;w++)L.find("#benefitWrap"+w).find("a").attr("href",e+r[w]);y.removeAttr("style");y.show()}else{var n=!0;a(y).filter("input[name\x3dhasBenefit]").each(function(){"Y"===a(this).val()&&(n=!1)});"Y"===a("#featureYN").val()&&(n=!1);var R=!0;a(y).filter("input[name\x3dhasGallery]").each(function(){"Y"===a(this).val()&&(R=!1)});y=L.find("[id^\x3dbenefitWrap]");r=L.find("#galleryWrap");
y.find("a").attr("href",e+"#features");r.find("a").attr("href",e+"#gallery");n?y.hide().css("margin-left","0px"):y.show().removeAttr("style");R?r.hide().css("margin-left","0px"):r.show().removeAttr("style")}(y=L.find("#reviewWrap"))&&y.show().removeAttr("style");y=a("#tempTitle").val();r=E.find("#navConfiguratorUrl").val();w=E.find("#navCtaLocalText").val();E.find("#navCtaEngText").val();"Y"===E.find("#navConfiguratorUseYn").val()&&"page-feature-pd"===y&&(""!==r&&null!==r?I.attr("href",r):I.addClass("cta--disabled"),
""!==w&&null!==w&&I.html(w))},error:function(y){L.find("#benefitWrap").hide().css("margin-left","0px");L.find("#galleryWrap").hide().css("margin-left","0px")},complete:function(){u.featureSyn=!0;K(u)}});a.ajax({url:x,type:"GET",success:function(y){var w=L.find("#specsWrap");w.find("a").attr("href",e+"#specs");"N"===a(y).filter("#specEmptyYn").val()&&w.show().removeAttr("style")},error:function(y){L.find("#specsWrap").hide()},complete:function(){u.specSyn=!0;K(u)}});a.ajax({url:h,type:"GET",success:function(y){var w=
L.find("#supportWrap");w.find("a").attr("href",e+"#support");"N"===a(y).filter("#supportEmptyYn").val()&&w.show().removeAttr("style")},error:function(y){L.find("#supportWrap").hide()},complete:function(){u.supportSyn=!0;K(u)}});a("#anchorNavigationPriceBar").find(".pdd39-anchor-nav__info-rating").find("a").attr("href",e+"#reviews")}},init:function(){ea=a("#anchorContainer.sg-component");L=ea.find("#anchor-menu-list");E=a("#navProperties.sg-component");var e=E.find("#pdType").val();"S-B"===e?this.buyingAnchor():
(this.setAnchor(),"S-F"===e&&this.setApi())}}}();U.setAnchors.init();a(document).on("click",".anchorBtn",function(){var d=a(this).attr("config-url"),l=a(this).attr("data-modelcode");fnIsNull(d)||(a(this).attr("href","javascript:;"),window.location.href=d+"?modelCode\x3d"+l)});a(document).on("click",".sg-product-display-name",function(){var d=E.find("#pdType").val();var l=window.location.pathname+window.location.search;l=l.replace("/buy","");var f=E.find("#current-page-nav").val(),e=a("#runmodeInfo").val();
J&&(l=window.location.href.replace(/\/buy./ig,"/feature."));("live"===e||"qa"===e)&&0<=f.indexOf("/content/samsung")&&f.replace("/content/samsung","");location.href.indexOf(".html");"S-B"!==d||fnIsNull(l)||(window.location.href=l)});"de"===c&&-1!==a.inArray(Q,N)&&(window.onload=function(){I.hide()})})(window,$,window.sg.sdf.util);