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(n){var C=a(n).find("a").attr("href");b.isIdSelector(C)&&b.scrollRect.scrollActiveTarget.push({el:n})})};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,n=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=n+C+b;n=this.el.header.find(this.selector.price).offset().height;C=Math.max(C,n);var H=Math.max(b,n);n=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+n;this.scrollRect.fixedHeaderHeight=k+C+n}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+n,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 n=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=n>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=n;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,n=window.scrollY,C=parseFloat(document.body.style.top);!("fixed"===document.body.style.position?0>C&&-C>this.scrollRect.headerStart:n>=Math.round(this.scrollRect.headerStart))||0===n&&!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 n=this;this.resizeObserver=new ResizeObserver(function(){if(n.isResizeObserving&&!n.isScrollChange&&n.prevUrl===b){var C=a(b).eq(0),
H=n.scrollRect.fixedHeaderHeight;(document.body.scrollTop||document.documentElement.scrollTop)+(Math.round(C.offset().top)-H)!==n.prevScrollToPx&&(n.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 n=
b.currentTarget.getAttribute("href").trim();this.isIdSelector(n)&&(b.preventDefault(),b.stopPropagation(),n=a(b.currentTarget).closest(this.selector.menuItem).target[0],this.setActiveMenu(n),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 n=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",
n+"px")}};q.prototype.scrollHash=function(b){var n=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=n.scrollRect.fixedHeaderHeight,k=(document.body.scrollTop||document.documentElement.scrollTop)+(Math.round(C.offset().top)-H);n.prevScrollToPx=k;window.sg.common.lazyLoad.ignoreLazyLoadOnceUnder(document,k+H);0===C.outerHeight()?(2<=k-n.scrollRect.headerStart?window.scrollTo({top:Math.max(k-
1,1)}):window.scrollTo({top:Math.max(k,1)}),n.isScrollChange=!0):(window.scrollTo({top:k}),n.isScrollChange=!1);n.handleHeaderScrollDown()})}};q.prototype.setScrollActiveTarget=function(){var b=this,n=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+n: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 n;for(n=1;n<this.scrollRect.scrollActiveTarget.length&&!(b<this.scrollRect.scrollActiveTarget[n].top&&null!==this.scrollRect.scrollActiveTarget[n].top);n++);--n;null!==this.scrollRect.scrollActiveTarget[n].top&&b>=this.scrollRect.scrollActiveTarget[n].top&&(b=a(this.scrollRect.scrollActiveTarget[n].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 n=b.find(this.selector.tooltipOpenBtn);b.removeClass(this.classes.tooltipShow)}else n=b.find(this.selector.tooltipCloseBtn),b.addClass(this.classes.tooltipShow);n.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 n=a(K.Pdd39AnchorNav).target[0];q.instances.has(n)&&q.instances.get(n).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),
N=("0"+k.getUTCDate()).slice(-2),M=("0"+k.getUTCHours()).slice(-2),O=("0"+k.getUTCMinutes()).slice(-2);k=("0"+k.getUTCSeconds()).slice(-2);return A+"-"+t+"-"+N+" "+M+":"+O+":"+k}(new Date)},P=(a("#categoryGroupCode").val()||"").substring(0,2),D=(a("#categoryTypeCode").val()||"").substring(0,4),q=a("#categorySubTypeCode").val()||"",b="",n={"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=n[P]?n[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,N=0,M=A.length;N<M;N++){for(t=A[N];" "===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,N){var M=new Date,O=".samsung.com";"cn"===a("#siteCode").val()&&(O=".samsung.com.cn");M.setTime(M.getTime()+
864E5*(t||0));document.cookie=k+"\x3d"+A+"; expires\x3d"+M.toUTCString()+"; path\x3d"+N+"; domain\x3d"+O},setCookieHomePnz:function(k,A,t,N){var M=new Date,O=".samsung.com";"cn"===a("#siteCode").val()&&(O=".samsung.com.cn");M.setTime(M.getTime()+864E5*(t||0));document.cookie=k+"\x3d"+A+"; expires\x3d"+M.toUTCString()+"; path\x3d"+N+"; domain\x3d"+O},setRecentCode:function(k,A){var t=this.getCookie("recent_list"),N=this.getCookiePath();if(""===t||"undefined"===t)t=[k];else{t=JSON.parse(t);for(var M=
!1,O=0;O<t.length;O++)if(t[O].familyCode===k.familyCode){t.splice(O,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,"/"+N+"/");"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(e){e.featureSyn&&e.specSyn&&e.supportSyn&&window.sg.components.pdHeaderNavigationV2.reInit()}function P(e){fnIsNull(e)||(e=e.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#039;"));return e}function D(e){if(!fnIsNull(e))return"de"===c&&-1!==a.inArray(Q,O)?I.hide():I.show(),J&&"BUY NOW_FEATURE"===e&&("ru"===c?e="\u041a\u0443\u043f\u0438\u0442\u044c":"true"==window.sg.epp.common.offlineFlag&&(e="BUY ONLINE")),
"iq_ar"!==c&&"iq_ku"!==c||"BUY NOW_FEATURE"!==e||(e="Buy"),I.html(Granite.I18n.get(e))}function q(e,l){if(J){var g=l.match(/[0-9]{13}/g);""===a.trim(g)&&(g=location.pathname.match(/[0-9]{13}/g),null!=g&&"undefined"!=typeof g&&""!==a.trim(g)&&(l=l.replace(e,e+"."+g)));return l.replace("/buy","").replace(/\/feature./ig,"/buy.")}return l}function b(e,l){var g=e.modelList[0];var d=q(Q,(null===g.originPdpUrl?"":g.originPdpUrl)+"buy/");var h="",m="";fnIsNull(g.price)||(h=g.price);fnIsNull(g.promotionPrice)||
(m=g.promotionPrice);!0===l?I.attr({href:fnIsNull(g.ctaLink)?d:g.ctaLink,"data-pimsubtype":fnIsNull(e.categorySubTypeEngName)?"":e.categorySubTypeEngName.toLowerCase(),"data-pvitype":fnIsNull(g.pviTypeName)?"":g.pviTypeName.toLowerCase(),"data-pvisubtype":fnIsNull(g.pviSubtypeName)?"":g.pviSubtypeName.toLowerCase(),"data-modelrevenue":h,"data-modelprice":h,"data-modelqty":"1","data-modelcurrency":z,"data-modelcode":g.modelCode,"data-modelname":g.modelName,"data-modeldisplay":P(g.displayName.replace(/<br>/ig,
" ").replace(/<sup>/ig," ")),"data-discountprice":m}):I.attr({"config-url":g.configuratorUrl,"data-pimsubtype":fnIsNull(e.categorySubTypeEngName)?"":e.categorySubTypeEngName.toLowerCase(),"data-pvitype":fnIsNull(g.pviTypeName)?"":g.pviTypeName.toLowerCase(),"data-pvisubtype":fnIsNull(g.pviSubtypeName)?"":g.pviSubtypeName.toLowerCase(),"data-modelrevenue":h,"data-modelprice":h,"data-modelqty":"1","data-modelcurrency":z,"data-modelcode":g.modelCode,"data-modelname":g.modelName,"data-modeldisplay":P(g.displayName.replace(/<br>/ig,
" ").replace(/<sup>/ig," ")),"data-discountprice":m});""===g.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"===g.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 n(e,l){var g="";if(e&&0<e.length){e=e[0];var d=e.monthly,h=e.months,m=!fnIsNull(d)&&!fnIsNull(h),f=l.salePrice;e=a(".pd-buying-price__new-price",ca);var u=a(".pd-buying-price__box",ca);m&&(m=currencyComma(f,z),d=currencyComma(d,z),g="hk"===c?g+(Granite.I18n.get("From {0}/mo",[d])+" "+m+" "+Granite.I18n.get("for {0} mos",[h])):"my"===c||"ro"===c||"bg"===c?g+(Granite.I18n.get("From {0}/mo",[d])+" "+Granite.I18n.get("or")+" "):!0===qa?g+(" "+Granite.I18n.get("or")+" "+Granite.I18n.get("From {0}/mo",
[d])+" "+Granite.I18n.get("for {0} mos",[h])+" "):"it"===c?g+(Granite.I18n.get("From {0}/mo",[d])+" "+Granite.I18n.get("for {0} mos",[h])):"in"===c?g+(Granite.I18n.get("From {0}/mo.",[d])+". "+Granite.I18n.get("or")+" "):g+(Granite.I18n.get("From {0}/mo",[d])+" "+Granite.I18n.get("for {0} mos",[h])+" "+Granite.I18n.get("or")+" "),l=l.showSavePrice?"hk"===c?g:!0===qa?'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+m+"\x3c/span\x3e"+g:"it"===c?'\x3cp class\x3d"pd-buying-price__monthly-price"\x3e'+
g+"\x3c/p\x3e":g+'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+m+"\x3c/span\x3e":"hk"===c?g:!0===qa?m+g:g+m,"it"===c?u.append(l):e.html(l))}}function C(e){var l=fnIsNull(e.price)?"":e.price,g=fnIsNull(e.promotionPrice)?"":e.promotionPrice,d=fnIsNull(e.priceFormatted)?"":e.priceFormatted,h=fnIsNull(e.promotionPriceFormatted)?"":e.promotionPriceFormatted,m=fnIsNull(e.stockLevelStatus)?"":e.stockLevelStatus.toUpperCase(),f=fnIsNull(e.lowestWasPrice)?"":e.lowestWasPrice.value,u="",F="",
v="",x="",y="",w="";"br"===c&&(F=fnIsNull(e.SavingInformation)?"":e.SavingInformation,v=fnIsNull(e.savingValue)?"":e.savingValue,x=fnIsNull(e.TaxPriceDisplay)?"":e.TaxPriceDisplay,e.installmentPlan&&e.installmentPlan.storeText&&(w=e.installmentPlan.storeText||""),y=w,"OUTOFSTOCK"===m&&(F="",x=l));w=!0;if(X&&(w=!1,!fnIsNull(e.lowestWasPrice))){var r=e.lowestWasPrice.value;!fnIsNull(e.promotionPrice)&&e.promotionPrice<r&&ra?(l=r,d=currencyComma(l,z),w=!0):!fnIsNull(e.promotionPrice)&&r<=e.price&&e.promotionPrice<
r&&!ra&&(l=r,d=currencyComma(l,z));J&&"it"===c&&!fnIsNull(e.promotionPrice)&&(l=r,d=currencyComma(l,z))}sa&&(fnIsNull(e.lowestWasPrice)||fnIsNull(e.promotionPrice)||e.price===e.promotionPrice||(ta=!0));"au"!==c||fnIsNull(e.lowestWasPrice)||(r=e.lowestWasPrice.value,!fnIsNull(e.promotionPrice)&&e.promotionPrice<r<e.price&&(l=r,d=currencyComma(l,z)));r=!1;if("NOORDER"!==m){r=!0;var B=m="";fnIsNull(e.price)||(m=e.price);fnIsNull(e.promotionPrice)||(B=e.promotionPrice);I.attr({"data-modelrevenue":m,"data-modelprice":m,
"data-discountprice":B})}"realtime"===e.apiType&&(l=deleteCurrency(e.price,z).trim(),g=deleteCurrency(e.promotionPrice,z).trim());if(da&&!fnIsNull(e.aemAdditionalInfoTypes)&&0<e.aemAdditionalInfoTypes.length){m=e.aemAdditionalInfoTypes;for(var p in m)if(B=m[p],"TRADEIN"===B.type&&!fnIsNull(B.aemAdditionalInfos)&&0<B.aemAdditionalInfos.length)for(var R in B.aemAdditionalInfos){var Y=B.aemAdditionalInfos[R];"TRADEIN_TEXT"!==Y.key||fnIsNull(Y.value)||(u=Y.value)}}""===g&&(g=l);""!==u&&(g=u);e.showSavePrice=
w;e.salePrice=g;p="";if(r)if(u=parseFloat(l)-parseFloat(g),0!==u&&w){p="ru"===c?p+('\x3cdiv class\x3d"pd-buying-price__new-price no-max-width" data-promotionprice\x3d"'+g+'"\x3e'+(""!==h?h:currencyComma(g,z))+"\x3c/div\x3e"):p+('\x3cdiv class\x3d"pd-buying-price__new-price" data-promotionprice\x3d"'+g+'"\x3e'+(""!==h?h:currencyComma(g,z))+"\x3c/div\x3e");p+='\x3cdiv class\x3d"pd-buying-price__box"\x3e';!0===sa&&!0===ta&&(h=p,F='\x3cp class\x3d"pd-buying-price__trade-in"\x3e'+Granite.I18n.get("Best price in the past 30 days:")+
" "+currencyComma(f,z)+"(",g=(Number(g)-Number(f))/Number(f)*Math.pow(10,2),g=Math.round(g),0<g&&(g="+"+g),p=h+(F+g+"%)\x3c/p\x3e"));"in"===c&&(p+='\x3cdiv class\x3d"pd-buying-price__was"\x3eMRP: '+Z+(""!==d?d:currencyComma(l,z))+aa+" ("+Granite.I18n.get("Incl. of all taxes")+")\x3c/div\x3e");"jp"===c?(p+='\x3cdiv class\x3d"pd-buying-price__save"\x3e'+Granite.I18n.get("Save {0}",[currencyComma(u,z)])+"\x3c/div\x3e",p+='\x3cdiv class\x3d"pd-buying-price__was" data-price\x3d"'+e.price+'"\x3e\x3cspan class\x3d"hidden"\x3e'+
Granite.I18n.get("Original Price")+": \x3c/span\x3e",p+="(\u5272\u5f15\u524d\u4fa1\u683c : "+(""!==d?d:currencyComma(l,z))+")",p+="\x3c/div\x3e"):"it"===c?f&&(f=p,d='\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"+Z+(""!==d?d:currencyComma(l,z))+aa+'\x3c/div\x3e\x3cdiv class\x3d"pd-buying-price__save"\x3e',g=Granite.I18n,h=g.get,l=Number(u)/Number(l)*Math.pow(10,2),l=Number(l).toFixed(2),l=l.replace(".",
","),p=f+(d+h.call(g,"Save the {0}%",l)+"\x3c/div\x3e")):"in"===c?p+='\x3cdiv class\x3d"pd-buying-price__save"\x3e'+Granite.I18n.get("Save {0}",[currencyComma(u,z)])+"\x3c/div\x3e":(p+='\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",p+=Z+(""!==d?d:currencyComma(l,z))+aa,p+='\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)p+='\x3cdiv class\x3d"pd-buying-price__disclaimer"\x3e*Aplican condiciones\x3c/div\x3e';p+="\x3c/div\x3e";!J||"it"!==c||fnIsNull(e.price)||fnIsNull(e.promotionPrice)||(l=window.sg.epp.common.eppDiscountRate(e.price,e.promotionPrice),0!=l&&(p=p+'\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(e.price,z)])+"\x3c/strong\x3e"),p+='\t\x3cdiv class\x3d"pd-buying-price__save"\x3e'+
Granite.I18n.get("You save {0}%",[l])+"\x3c/div\x3e",p+="\x3c/div\x3e"))}else"ru"===c?p+='\x3cdiv class\x3d"pd-buying-price__new-price no-max-width" data-promotionprice\x3d"'+g+'"\x3e'+(""!==h?h:currencyComma(g,z))+"\x3c/div\x3e":"br"===c?null!=F&&""!==F?(p+='\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&&(p+='    \x3cp class\x3d"pd-buying-price__trade-in"\x3e'+y+"\x3c/p\x3e"),p+='    \x3cdiv class\x3d"pd-buying-price__was"\x3e\x3cspan class\x3d"hidden"\x3ePre\u00e7o original:\x3c/span\x3e'+
Z+currencyComma(l,z)+aa+"\x3c/div\x3e",p+='    \x3cdiv class\x3d"pd-buying-price__save"\x3e'+v+" off\x3c/div\x3e\x3c/div\x3e"):(p+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+x+" \u00e0 vista\x3c/div\x3e",null!=y&&""!==y&&(p+='\x3cdiv class\x3d"pd-buying-price__box"\x3e\x3cp class\x3d"pd-buying-price__trade-in"\x3e'+y+"\x3c/p\x3e\x3c/div\x3e")):p+='\x3cdiv class\x3d"pd-buying-price__new-price" data-promotionprice\x3d"'+g+'"\x3e'+(""!==h?h:currencyComma(g,z))+"\x3c/div\x3e";""!==p&&ca.append(p)}
function H(){var e=window.location.origin+window.location.pathname.replace(".html","/"),l=Q,g=xa,d=E.find("#navDisplayName").val(),h=E.find("#wtbUseYn").val();e=q(l,e+"buy/");var m=a("#tempTitle").val(),f=E.find("#navConfiguratorUrl").val(),u=E.find("#navCtaLocalText").val();E.find("#navCtaEngText").val();var F=E.find("#navConfiguratorUseYn").val();"Y"===F&&""!==f&&null!==f&&(e=f);"Y"===h&&"pl"!==c&&L.find("#anchorWtb").show().css("margin-left","");I.attr({href:e,"data-pimsubtype":"","data-pvitype":"",
"data-pvisubtype":"","data-modelrevenue":"","data-modelprice":"","data-modelqty":"1","data-modelcurrency":z,"data-modelcode":l,"data-modelname":g,"data-modeldisplay":P(d.replace(/<br>/ig," ").replace(/<sup>/ig," ")),"data-discountprice":""});"Y"===F?"page-feature-pd"===m&&(""!==f&&null!==f||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 e=la+"/"+(J?ma:c)+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+Q;"py"===c&&(e=la+"/ng/p4v1/getRealTimeProductSimpleInfo?productCode\x3d"+Q);"Y"===ua?a.ajax({url:e,type:"GET",dataType:"json",cache:!0,
crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(l,g,d){t(l)}}):a.ajax({url:e,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584_0",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(l,g,d){t(l)}})}function A(){""!==V&&(c=V);var e="ca"===c||"ca_fr"===c,l=la+"/"+(J?ma:c)+"/servicesv2/getSimpleProductsInfo?productCodes\x3d"+Q;if(e){var g=getSECACountryRegion();l+="\x26country_region\x3d"+g}"Y"===ua?a.ajax({url:l,
type:"GET",dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(d,h,m){N(d)}}):a.ajax({url:l,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_111",cache:!0,crossDomain:!0,timeout:1E4,xhrFields:{withCredentials:!0},success:function(d,h,m){N(d)}})}function t(e){"0000"===e.resultCode&&Q===e.code&&(e.apiType="realtime",C(e),a("#sgDevPriceAreaBaseMobile")&&(a("#sgDevPriceAreaBaseMobile").empty(),a("#sgDevPriceAreaBaseMobile").append(a("#sgDevPriceAreaBase").html()),
a("#sgDevPriceAreaBaseMobile").find("#sgDevPriceArea").attr("id","sgDevPriceAreaMobile")),window.sg.components.pdHeaderNavigationV2.reInit())}function N(e){"0000"===e.resultCode&&0<e.productDatas.length&&a.each(e.productDatas,function(l,g){if(Q===g.productCode&&(J&&"it"===c&&null===g.price&&!fnIsNull(g.promotionPrice)&&(g.price=0),!fnIsNull(g.price)))return g.apiType="simple",C(g),M(g),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(e){var l=J?ma:c,g="ca"===c||"ca_fr"===c,d=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;g&&(h=getSECACountryRegion(),l+="\x26country_region\x3d"+h);"Y"===ua?a.ajax({url:l,type:"GET",cache:!0,crossDomain:!0,xhrFields:d,dataType:"json",timeout:2E4,success:function(f){n(f,e)}}):a.ajax({url:l,type:"GET",cache:!0,crossDomain:!0,xhrFields:d,dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_171",timeout:2E4,success:function(f){n(f,e)}})}window.sg.components.pdHeaderNavigationV2=window.sg.components.Pdd39AnchorNav;var O="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),X="pl si gr fi it se no dk fr de lv lt ee pt".split(" ").includes(c),ba=!1,sa="hu"===c,ta=!1,qa=["se","fi","no"].includes(c),ra=["se","fi","no","dk","pt"].includes(c),Z="Y"==a("#isNotDelTagSites").val()?"\x3cdel\x3e":"",aa="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]),X="Y"===eppOmniPricingUseYn?!0:!1,ra&&(X=!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 e=function(d){var h="N";"A"===d&&(h="Y");return h},l=function(d){var h=!0;0<
d.length?d.each(function(){"N"===a(this).val()&&(h=!1)}):h=!1;return h},g=function(d){var h=!0;d.each(function(){"N"===a(this).val()&&(h=!1)});return h};return{setAnchor:function(){var d=ea,h=a("#summaryEmptyYn").val(),m=a("#supportEmptyYn").val(),f=a("#specEmptyYn").val();"Y"===Ca&&(f="N");var u=a("input[name\x3dfeatureEmptyYn]"),F=a("#featureBundleEmptyYn").val(),v=a("input[name\x3dfeatureGalleryEmptyYn]"),x=["Y","N",v.val(),h,m,f,F],y="highlights features gallery summary support specs feature-benefit-bundle".split(" "),
w=l(u);g(v);h=ea.find(".tab__list \x3e li:not(#anchor_pd-g-product-compare)");m=a("#summaryProductType").val();e(m);d.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 p=L.find("#reviewWrap");p.show();p.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(p=0;p<y.length;p++)if(0<=
r.indexOf(y[p])){r=a(this);"N"===x[p]?(a(r).show(),a(r).css("margin-left","")):(a(r).hide(),a(r).css("margin-left","0px"));B=!0;break}B||(p=a(this),p.show(),p.removeAttr("style"))}}});h=a("#tempTitle").val();m=E.find("#navConfiguratorUrl").val();f=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")),""!==f&&null!==f&&I.html(f));d.show()},setApi:function(){a.ajax({url:oa,data:T,success:function(d){var h=a("#tempTitle").val(),m=E.find("#navConfiguratorUrl").val(),f=E.find("#navCtaLocalText").val();E.find("#navCtaEngText").val();var u=E.find("#navConfiguratorUseYn").val();if(200===d.response.statusCode&&null!==d.response.resultData){d=d.response.resultData.productList[0];var F="";if(fnIsNull(d))return H(),!1;fnIsNull(d)||fnIsNull(d.modelList[0].ctaType)||(F=d.modelList[0].ctaType.toUpperCase(),
d.modelList[0].ctaTypeUpperCase=F);if(!fnIsNull(d)&&"Y"===d.iaCtaDisplay)if(ia||ja){var v=d.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(d,!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(d,!1):b(d,!0),D("BUY NOW_FEATURE")):(b(d,!0),"PREORDER"===v.ctaTypeUpperCase?D("pre order"):D("BUY NOW_FEATURE")):(b(d,!1),"PREORDER"===v.ctaTypeUpperCase?D("pre order"):D("BUY NOW_FEATURE"))}else da?(v=d.modelList[0],x=!1,!fnIsNull(v.configuratorUrl)&&(x=!0),"WHERETOBUY"===v.ctaTypeUpperCase?(x?b(d,!1):b(d,!0),D("BUY NOW_FEATURE")):
"BUYNOWLINK"===v.ctaTypeUpperCase?(b(d,!0),D(v.ctaTitle)):"PREORDER"===v.ctaTypeUpperCase?(x?b(d,!1):b(d,!0),D("pre order")):("OUTOFSTOCK"===v.ctaTypeUpperCase?x?b(d,!1):b(d,!0):b(d,!0),D("BUY NOW_FEATURE"))):(v=d.modelList[0],x=!1,!fnIsNull(v.configuratorUrl)&&(x=!0),za?(b(d,!0),D("BUY NOW_FEATURE")):"WHERETOBUY"===v.ctaTypeUpperCase?(x?b(d,!1):b(d,!0),D("BUY NOW_FEATURE")):"BUYNOWLINK"===v.ctaTypeUpperCase?(b(d,!0),D(v.ctaTitle)):"PREORDER"===v.ctaTypeUpperCase?(x?b(d,!1):b(d,!0),D("pre order")):
("OUTOFSTOCK"===v.ctaTypeUpperCase?x?b(d,!1):b(d,!0):b(d,!0),D("BUY NOW_FEATURE")));"Y"===u&&"page-feature-pd"===h&&(""!==m&&null!==m?(d.modelList[0].ctaLink=m,b(d,!0)):I.addClass("cta--disabled"),""!==f&&null!==f&&D(f));if(ya.isSaleable())if(Da)Ea?k():A();else{m=F;h="";f=d.modelList[0];u=f.priceDisplay;"nl"!==c&&"be"!==c&&"be_fr"!==c||fnIsNull(u)||(u=deleteCurrency(u,z));d=!1;"Y"!==Aa||fnIsNull(u)||"mx"===c||"pl"===c&&"OUTOFSTOCK"===m||(d=!0);F=!1;v="";da&&!fnIsNull(f.tradeInPriceText)&&(v=f.tradeInPriceText,
F=!0);if(d){var w="";d=u;var r="",B="",p=x="",R=y="",Y="",ka=!1,wa=!1;if(ia||ja){if(!fnIsNull(f.leasingInfo)&&"nl"===c&&"Y"===f.upgrade)R=f.leasingInfo,Y=deleteCurrency(R.monthlyRate,z),B=R.tenureVal,y=deleteCurrency(R.downPaymentFormatted,z),R=R.tenureUnit,wa=!0;else if(!(fnIsNull(f.monthlyPriceInfo)||fnIsNull(f.monthlyPriceInfo.leasingMonthly)||fnIsNull(f.monthlyPriceInfo.leasingMonths)||fnIsNull(f.monthlyPriceInfo.interest))){p=f.monthlyPriceInfo;"bg"===c?("eur"===z.toLowerCase()?(r=Math.pow(10,
2),B=1.95583*Number(p.leasingMonthly),B=Math.round(B*r)/r,r=currencyComma(B,"BGN")):(r=Math.pow(10,2),B=Number(p.leasingMonthly)/1.95583,B=Math.round(B*r)/r,r=currencyComma(B,"EUR")),r=currencyComma(p.leasingMonthly,z)+" / "+r):r=currencyComma(p.leasingMonthly,z);B=p.leasingMonths;p=p.interest;if("pe"===c||"cl"===c||"mx"===c||"co"===c||"ro"===c||"bg"===c||"gr"===c)p="";"uk"!==c&&(ka=!0)}w=f.promotionPriceDisplay;if("be"===c||"be_fr"===c||"nl"===c)w=f.promotionPrice,w=currencyComma(w,z)}else fnIsNull(f.monthlyPriceInfo)||
fnIsNull(f.monthlyPriceInfo.leasingMonthly)||fnIsNull(f.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=f.monthlyPriceInfo,r=currencyComma(ka.leasingMonthly,z),B=ka.leasingMonths,ka=!0),da&&(w=f.promotionPriceDisplay);!fnIsNull(w)&&(d=w);if("Hybris-new"===W||"Hybris-intg"===W||"Hybris"===W)fnIsNull(w)?fnIsNull(u)||(f.lowestWasPriceUseYn="N",X&&!fnIsNull(f.lowestWasPrice)&&!fnIsNull(f.price)&&parseFloat(f.lowestWasPrice)<=
parseFloat(f.price)&&(f.lowestWasPriceUseYn="Y",f.price=f.lowestWasPrice,f.priceDisplay=currencyComma(f.lowestWasPrice,z),ba=!0,u=f.priceDisplay)):X&&!fnIsNull(f.lowestWasPrice)&&!fnIsNull(f.promotionPrice)&&parseFloat(f.lowestWasPrice)<=parseFloat(f.price)&&parseFloat(f.promotionPrice)<parseFloat(f.lowestWasPrice)&&(f.lowestWasPriceUseYn="Y",f.price=f.lowestWasPrice,f.priceDisplay=currencyComma(f.lowestWasPrice,z),ba=!0,u=f.priceDisplay);if(ia||ja){if(!fnIsNull(w)){w=0;null!==f.listPrice&&(w=parseFloat(f.listPrice)-
parseFloat(f.price));var va=parseFloat(f.price)-parseFloat(f.promotionPrice);X&&ba&&(f.saveText=va);X&&!ba&&(va=0,f.saveText=null);if(0===va||fnIsNull(f.saveText))0<w&&("nl"===c||"be"===c||"be_fr"===c)&&(x+='\x3cdiv class\x3d"pd-buying-price__price"\x3e'+Granite.I18n.get("Listprice")+" "+currencyComma(f.listPrice,z)+"\x3c/div\x3e");else{J||"ro"!==c&&"bg"!==c||(u=Granite.I18n.get("RRP {0}",[u]));w=f.saveText;if("nl"===c||"be"===c||"be_fr"===c||"de"===c)x="de"===c&&ba?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}",[Z+u+aa])+"\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"),"pl"===c&&ba&&(x+='\x3cdiv class\x3d"pd-buying-price__label"\x3e'+Granite.I18n.get("Lowest price 30 days before the discount:")+
"\x3c/div\x3e"),"at"===c&&ba&&(x+='\x3cdiv class\x3d"pd-buying-price__label"\x3e'+Granite.I18n.get("Lowest price 30 days before the discount:")+"\x3c/div\x3e"),"co"===c&&f.vatEligible&&"true"===f.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"+Z+u+aa+"\x3c/div\x3e";"nl"===c||"be"===c||"be_fr"===c||"ro"===c||"bg"===c||"co"===c&&f.vatEligible&&"true"===f.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(f.formattedPriceSave)||(x=
f.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+(d+'\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&&(""!==p?h+=Granite.I18n.get("for {0} mos at {1}% APR",[B,p]):"my"!==c&&"ro"!==c&&"bg"!==c&&(h+=Granite.I18n.get("for {0} mos",[B]))),h="my"===c?h+(Granite.I18n.get("or")+" "+d+"\x3c/div\x3e"):"pl"===c?h+"\x3c/span\x3e\x3c/div\x3e":h+(" "+Granite.I18n.get("or")+" "+d+"\x3c/div\x3e")):wa?""!==y&&""!==
R&&""!==B&&""!==Y&&(m=" "+y+" + "+B+" x "+Y+"/"+Granite.I18n.get(R),h+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+d+" "+Granite.I18n.get("or")+m+"\x3c/div\x3e"):"co"===c&&f.vatEligible&&"true"===f.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 "+f.vatFreePriceDisplay+"\x3c/strong\x3e\x3c/div\x3e",d&&
(h+='\t\x3cdiv class\x3d"pd-buying-price__samcol-special"\x3e\x3cstrong\x3e'+Granite.I18n.get("Price with discount")+"\x3c/strong\x3e\x3cstrong\x3e "+d+"\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"+Z+u+aa+"\x3c/div\x3e\x3c/div\x3e"):h+='\x3cdiv class\x3d"pd-buying-price__new-price"\x3e'+d+"\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(f.msrpPrice)&&(m=" "+currencyComma(f.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(d,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+
d+"\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'+d+"\x3c/span\x3e\n                        \x3c/div\x3e",h.html(h.html().replace(d,m))):h.html(h.text().replace(d,'\x3cspan class\x3d"pd-buying-price__new-price-currency"\x3e'+d+"\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 d=window.location.pathname+window.location.search;d=d.replace("/buy","");var h=E.find("#current-page-nav").val(),m=a("#runmodeInfo").val(),f="/",u={};J&&(d=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")&&(f=".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+f;var x=h+".dynamic.pd-g-product-specs-ux2."+v+"."+c+m+f;h=h+".dynamic.pd-g-product-support-ux2."+v+"."+c+m+f;1===L.find("#highlightsWrap").length&&L.find("#highlightsWrap \x3e a ").attr("href",d+"#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",d+r[w]);y.removeAttr("style");y.show()}else{var p=!0;a(y).filter("input[name\x3dhasBenefit]").each(function(){"Y"===a(this).val()&&(p=!1)});"Y"===a("#featureYN").val()&&(p=!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",d+"#features");r.find("a").attr("href",d+"#gallery");p?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",d+"#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",d+"#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",d+"#reviews")}},init:function(){ea=a("#anchorContainer.sg-component");L=ea.find("#anchor-menu-list");E=a("#navProperties.sg-component");var d=E.find("#pdType").val();"S-B"===d?this.buyingAnchor():
(this.setAnchor(),"S-F"===d&&this.setApi())}}}();U.setAnchors.init();a(document).on("click",".anchorBtn",function(){var e=a(this).attr("config-url"),l=a(this).attr("data-modelcode");fnIsNull(e)||(a(this).attr("href","javascript:;"),window.location.href=e+"?modelCode\x3d"+l)});a(document).on("click",".sg-product-display-name",function(){var e=E.find("#pdType").val();var l=window.location.pathname+window.location.search;l=l.replace("/buy","");var g=E.find("#current-page-nav").val(),d=a("#runmodeInfo").val();
J&&(l=window.location.href.replace(/\/buy./ig,"/feature."));("live"===d||"qa"===d)&&0<=g.indexOf("/content/samsung")&&g.replace("/content/samsung","");location.href.indexOf(".html");"S-B"!==e||fnIsNull(l)||(window.location.href=l)});"de"===c&&-1!==a.inArray(Q,O)&&(window.onload=function(){I.hide()})})(window,$,window.sg.sdf.util);