var $jscomp=$jscomp|| {
}

;$jscomp.scope= {
}

;$jscomp.createTemplateTagFirstArg=function(d) {
    return d.raw=d}

;$jscomp.createTemplateTagFirstArgWithRaw=function(d,b) {
    d.raw=b;return d}

;$jscomp.arrayIteratorImpl=function(d) {
    var b=0;return function() {
        return b<d.length? {
            done: !1,value:d[b++]
        }

        : {
            done: !0
        }
    }
}

;$jscomp.arrayIterator=function(d) {
    return {
        next: $jscomp.arrayIteratorImpl(d)
    }
}

;$jscomp.makeIterator=function(d) {
    var b="undefined"!=typeof Symbol&&Symbol.iterator&&d[Symbol.iterator];return b?b.call(d): $jscomp.arrayIterator(d)
}

; (function(d,b) {
    function z(a,c,f,e) {
        var p=Object.keys(c);p=p.splice(p.indexOf("bundleModelCode")+1,p.length);b.each(c,function(h,r) {
            b.each(e,function(v,q) {
                q=q.modelList;null!=q&&b.each(q,function(y,m) {
                    var x="in"!==siteCode?m.modelCode: m.shopSKU,B=c[x].stocklevel||"";
                    m.displayName||(m.displayName=c[x].name||"");m.thumbUrlAlt=c[x].imageUrlAlt||"";m.priceDisplay=c[x].price||"";m.promotionPriceDisplay=c[x].promotionPrice||"";m.price=c[x].priceValue||"";m.promotionPrice=c[x].promotionPriceValue||"";m.stocklevel= B;m.isStock=!(""===B||"OUTOFSTOCK"===B.toUpperCase());m.idx=String(v)+"-"+String(y)}

                )}

            )}

        );t(a,e,f)}

    function t(a,c,f) {
        b(".add-ons-evoucher-popup .layer-popup__title").html(a.name);b(".add-ons-evoucher-popup .layer-popup__close").attr("data-attr-parent",a.modelCode);var e=a.promotionPrice?a.promotionPrice: a.price,p="outofstock"!==a.stocklevel.toLowerCase()?!0:!1,h="";
        var r=f?"bundleAddOnGift": "bundleAddOn";
        p?(p=0,a.priceValue&&0<a.priceValue&&a.promotionPriceValue&&a.priceValue!=a.promotionPriceValue&& (p=a.priceValue-a.promotionPriceValue),r='\n\t\t\t\t\x3cdiv class\x3d"add-ons-evoucher-popup__button-item"\x3e\n\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--black footer-cta" id\x3d"'+r+'" aria-label\x3d"Add" data-parent-modelcode\x3d'+a.modelcode+' data-price\x3d"'+a.priceValue+'" data-promotionprice\x3d"'+a.promotionPriceValue+'" data-saveprice\x3d"'+p+'" \x3e\n\t\t\t\t\t\t'+Granite.I18n.get("Add")+"\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e"): r='\n\t\t\t\t\x3cdiv class\x3d"add-ons-evoucher-popup__button-item"\x3e\n\t\t\t\t\t\x3cbutton class\x3d"cta cta--contained cta--black cta--disabled" aria-label\x3d"Out of Stock" aria-disabled\x3d"true"\x3e\n\t\t\t\t\t\t'+ Granite.I18n.get("Out Of Stock")+"\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e";
        f||(h='\n\t\t\t\t\x3cdiv class\x3d"add-ons-evoucher-popup__price"\x3e\n\t\t\t\t\t\x3cspan class\x3d"hidden"\x3eOrigin Price : '+a.price+"\x3c/span\x3e\n\t\t\t\t\t"+(a.price!==e?'\x3cdel class\x3d"add-ons-evoucher-popup__price-original"\x3e'+a.price+"\x3c/del\x3e": "")+'\n\t\t\t\t\t\x3cstrong class\x3d"add-ons-evoucher-popup__price-payment"\x3e'+e+"\x3c/strong\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t");
        a="\n\t\t\t"+h+"\n\t\t\t"+ r;b(".add-ons-evoucher-popup .add-ons-evoucher-popup__button").html(a);r="";a=0;e=$jscomp.makeIterator(c);for(h=e.next();!h.done;h=e.next()) {
            var v=h.value;h= {
            }

            ;p=$jscomp.makeIterator(v.modelList);for(var q=p.next();!q.done;q=p.next())if(q=q.value,"outofstock"!=q.stocklevel.toLowerCase()) {
                h=q;break}

            h.modelCode||(h=v.modelList[0]);var y=h.fmyChipList;q=p="";if(0<y.length)for(var m=0;m<y.length;m++)if("COLOR"===y[m].fmyChipType) {
                p=""!==h.fmyChipList[m].fmyChipLocalName?h.fmyChipList[m].fmyChipLocalName: h.fmyChipList[m].fmyChipName;
                break}

            else if("MOBILE MEMORY"===y[m].fmyChipType||"TV SIZE"===y[m].fmyChipType||"HOME APPLIANCE SIZE"===y[m].fmyChipType||"MONITOR SCREEN SIZE"===y[m].fmyChipType)q=""!==h.fmyChipList[m].fmyChipLocalName?h.fmyChipList[m].fmyChipLocalName: h.fmyChipList[m].fmyChipName;
            p='\n\t\t\t\t\x3cli class\x3d"add-ons-evoucher-popup__item" data-index\x3d"'+a+'"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"add-ons-evoucher-popup__image"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"image"\x3e\n\t\t\t\t\t\t\t\x3cimg class\x3d"image__preview lazy-load responsive-img" data-desktop-src\x3d"'+ k(h.thumbUrl)+'" data-mobile-src\x3d"'+k(h.thumbUrl)+'" alt\x3d"'+h.thumbUrlAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\t\x3cimg class\x3d"image__main lazy-load responsive-img" data-desktop-src\x3d"'+k(h.thumbUrl)+'" data-mobile-src\x3d"'+k(h.thumbUrl)+'" alt\x3d"'+h.thumbUrlAlt+'" role\x3d"img"\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cdiv class\x3d"add-ons-evoucher-popup__content"\x3e\n\t\t\t\t\t\t\x3cp class\x3d"add-ons-evoucher-popup__text"\x3e'+h.displayName+'\x3c/p\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"add-ons-evoucher-popup__option"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"option-selector-v2 option-selector-v2__color-text"\x3e\n\t\t\t\t\t\t\t\t'+ (p?'\x3cdiv class\x3d"option-selector-v2__color-name"\x3e\n\t\t\t\t\t\t\t\t\t'+Granite.I18n.get("Color")+' : \n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"color-name-text"\x3e'+p+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e": "")+"\n\t\t\t\t\t\t\t\t"+(q?q:"")+"\n\t\t\t\t\t\t\t\t";
            var x=v.modelList;v=a;q=0;y=x.length;var B=m="";x=$jscomp.makeIterator(x);for(var n=x.next();!n.done;n=x.next()) {
                n=n.value;var H=h.modelCode===n.modelCode?!0: !1,J=0,D=0,F=n.price,C=n.promotionPrice,I=0;
                C!==F&&(I=Number(F)-Number(C)); for(var G=$jscomp.makeIterator(n.fmyChipList),A=G.next();!A.done;A=G.next())if(A=A.value,"COLOR"===A.fmyChipType) {
                    var E="pdd16-color-"+v+"-"+q+"-"+J;m+='\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector-v2__swiper-slide '+(n.isStock?"in-stock": "out-of-stock")+" "+(0===q?"is-checked":"")+'" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector-v2__color"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector-v2__color-code '+(n.isStock?"in-stock":"out-of-stock")+ '" style\x3d"background-color: '+A.fmyChipCode+'" id\x3d"'+E+'" name\x3d"'+E+'" data-modeli\x3d"'+q+'"'+(H?" checked":"")+'\n\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+n.modelCode+'" data-modelname\x3d"'+n.modelName+'" data-index\x3d"'+q+'" data-price\x3d"'+F+'" data-promotionprice\x3d"'+C+'" data-saveprice\x3d"'+I+'"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+A.fmyChipLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\x3c/div\x3e";
                    J++}

                else if("MOBILE MEMORY"=== A.fmyChipType||"TV SIZE"===A.fmyChipType||"HOME APPLIANCE SIZE"===A.fmyChipType||"MONITOR SCREEN SIZE"===A.fmyChipType)E="pdd16-memory-"+v+"-"+q+"-"+D,B+='\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector-v2__swiper-slide '+(n.isStock?"in-stock": "out-of-stock")+" "+(0===q?"is-checked":"")+'" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector-v2__size"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"option-selector-v2__size-text '+(n.isStock?"in-stock":"out-of-stock")+ '" id\x3d"'+E+'" name\x3d"'+E+'" data-modeli\x3d"'+q+'"'+(H?" checked":"")+'\n\t\t\t\t\t\t\t\t\tdata-modelcode\x3d"'+n.modelCode+'" data-modelname\x3d"'+n.modelName+'" data-index\x3d"'+q+'" data-price\x3d"'+F+'" data-promotionprice\x3d"'+C+'" data-saveprice\x3d"'+I+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"blind"\x3e'+A.fmyChipLocalName+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\x3c/div\x3e",D++;
                q++}

            h='\n\t\t\t\x3cdiv class\x3d"option-selector-v2__wrap option-selector-v2__wrap--color-chip" data-desktop-view\x3d"5" data-mobile-view\x3d"2"\x3e\n\t\t\t\t\x3cdiv class\x3d"option-selector-v2__swiper"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"option-selector-v2__swiper-container" aria-live\x3d"polite"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"option-selector-v2__swiper-wrapper" style\x3d"transform: translateX(0px);" role\x3d"list"\x3e\n\t\t\t\t\t\t\t'+ (m?m: "")+"\n\t\t\t\t\t\t\t"+(B?B:"")+'\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector-v2__button-prev option-selector-v2__button--disabled" aria-label\x3d"Previous" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block;"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Previous")+"\x3c/span\x3e\n\t\t\t\t\t\t"+(5<y?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-regular" href\x3d"#previous-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\x3c/svg\x3e': "")+'\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"option-selector-v2__button-next" aria-label\x3d"Next" role\x3d"button" aria-disabled\x3d"true" tabindex\x3d"0" style\x3d"display:block;"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3e'+Granite.I18n.get("Next")+"\x3c/span\x3e\n\t\t\t\t\t\t"+(5<y?'\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-regular" href\x3d"#next-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\x3c/svg\x3e':"")+ "\n\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e";
            r+=p+h+'\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3cstrong class\x3d"add-ons-evoucher-popup__state"\x3e\n\t\t\t\t\t\t\t\x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\x3cg\x3e\x3cpath d\x3d"M9.561 0 10 .439 4.061 6.37 0 2.314l.439-.439 3.622 3.618z" transform\x3d"translate(3 5)" style\x3d"stroke:#000" /\x3e\x3c/g\x3e\n\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\x3c/strong\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/li\x3e'; a++}

        b(".add-ons-evoucher-popup .add-ons-evoucher-popup__list").html(r);g();u(c,f)}

    function g() {
        b(".add-ons-evoucher-popup .add-ons-evoucher-popup__item").each(function() {
            b(this).find(".option-selector-v2__swiper-slide").length===b(this).find(".option-selector-v2__swiper-slide.out-of-stock").length&&b(this).closest(".add-ons-evoucher-popup__item").find(".add-ons-evoucher-popup__state").html(l(!1))}

        );w()}

    function u(a,c) {
        b(".add-ons-evoucher-popup").off("click",".add-ons-evoucher-popup__item button.option-selector-v2__color"); b(".add-ons-evoucher-popup").on("click",".add-ons-evoucher-popup__item button.option-selector-v2__color",function() {
            var f=b(this).closest(".add-ons-evoucher-popup__item").find(".add-ons-evoucher-popup__state");b(this).closest("#freeGiftPopup").find(".footer-cta").removeClass("cta--disabled");b(this).closest("#freeGiftPopup").find(".footer-cta").text(Granite.I18n.get("Add"));f.removeClass("is-out");f.html("");if(!b(this).hasClass("is-checked")) {
                var e=b(this).closest(".add-ons-evoucher-popup__item"); e.find(".option-selector-v2__swiper-slide").prop("checked",!1);e.find(".option-selector-v2__swiper-slide").removeClass("is-checked");b(this).closest(".option-selector-v2__swiper-slide").prop("checked",!0);b(this).closest(".option-selector-v2__swiper-slide").addClass("is-checked");var p=b(this).find(".option-selector-v2__color-code").attr("data-modelcode"),h="";b.each(a,function(v,q) {
                    b.each(q.modelList,function(y,m) {
                        m.modelCode===p&&(h=m)}

                    )}

                );var r=k(h.thumbUrl);e.find(".add-ons-evoucher-popup__image img").attr("data-desktop-src", r).attr("data-mobile-src",r).attr("src",r);e.find(".add-ons-evoucher-popup__text").html(h.displayName);e.find(".color-name-text").html(h.fmyChipList[0].fmyChipLocalName);f.html(l(!0));b(this).hasClass("out-of-stock")&&(f.addClass("is-out"),f.html(l(!1)))}

            w()}

        )}

    function w() {
        b.each(b("#freeGiftPopup .add-ons-evoucher-popup__item"),function(a,c) {
            b(this).find(".add-ons-evoucher-popup__state").hasClass("is-out")&&(b(this).closest("#freeGiftPopup").find(".footer-cta").addClass("cta--disabled"),b(this).closest("#freeGiftPopup").find(".footer-cta").text(l(!1)))}

        )}

    function l(a) {
        return a?'\x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\x3cg\x3e\x3cpath d\x3d"M9.561 0 10 .439 4.061 6.37 0 2.314l.439-.439 3.622 3.618z" transform\x3d"translate(3 5)" style\x3d"stroke:#000" /\x3e\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e': '\x3csvg class\x3d"icon" xmlns\x3d"http://www.w3.org/2000/svg" viewBox\x3d"0 0 16 16" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\x3cg\x3e\x3cpath d\x3d"M9.232 0 5 4.232.768 0 0 .768 4.232 5 0 9.232.768 10 5 5.768 9.232 10 10 9.232 5.768 5 10 .768z" transform\x3d"translate(3 3)" style\x3d"fill:#aaa;stroke:#aaa" /\x3e\x3c/g\x3e\n\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t'+ Granite.I18n.get("Out Of Stock")
    }

    function k(a,c,f) {
        c="";var e=b("#scene7domain").val();a&&(-1<a.indexOf("?")&&(a=a.replace("medias",""),a=a.substring(2,a.indexOf("?")),a=a.substring(0,a.lastIndexOf("-"))),-1<a.indexOf("https:")||-1<a.indexOf("http:")||-1<a.indexOf("//stg-images.samsung.com/")||-1<a.indexOf("//images.samsung.com/")||-1<a.indexOf("image.samsung.com/")?c=a: (f&&(e=e.replace("/image/","/content/")),c=e+a));
        return c}

    d.sg.components.addonBundlePopup= {
        callSearchAjax:function(a,c,f) {
            var e= Object.keys(c);e=e.splice(e.indexOf("bundleModelCode")+1,e.length);var p=b("#searchDomain").val(),h=b("#apiStageInfo").val(),r="Hybris-intg"===b("#shopIntegrationFlag").val(),v="Hybris-new"===b("#shopIntegrationFlag").val(),q="";q=r?"hybris": v?"newhybris":"global";
            var y=(r="true"===b("#isEppPage").val())?"epp/v2": "b2c";
            v=b.cookies.get("country_region")?b.cookies.get("country_region").toString(): "";
            p=p+"/"+h+"/"+y+"/product/card/detail/"+q;e= {
                siteCode: siteCode,modelList:e.join(","),saleSkuYN:"N",onlyRequestSkuYN:"Y", vd3PACardYN:"Y"
            }

            ;e.commonCodeYN="in"!=siteCode?"N": "Y";
            if("ca"===siteCode||"ca_fr"===siteCode)e.regionCode=null!=v&&""!=v?v: "CA-ON";
            r&&(e.companyCode=b("#eppCompanyCode").val(),e.shopSkuYN="N",d.sg.epp.common.isUserGroupPricing&&(e.groupName=d.sg.epp.common.groupName),""!=d.sg.epp.common.userStoreId&&(e.o2oId=d.sg.epp.common.userStoreId));b.ajax( {
                url:p,type:"GET",data:e,dataType:"json",cache:!0,crossDomain:!0,timeout:1E4,success:function(m) {
                    m&&200===m.response.statusCode&&(m=m.response.resultData)&& m.productList&&0<m.productList.length&&z(a,c,f,m.productList)}

                ,error:function() {
                }

                ,complete:function() {
                }
            }

            )}

        ,getBundleSearchProductcard: z,bundlePopupGrid:t
    }
}

)(window,window.jQuery); (function() {
    window.sg.components.dynamic=window.sg.components.dynamic|| {
    }

    ;window.sg.components.dynamic.comboPopup=window.sg.components.dynamic.comboPopup|| {
    }

    ;window.sg.components.dynamic.comboPopup.setComboData=function(d) {
        var b=[],z;for(z in d) {
            var t=d[z].relatedAPI|| {
            }

            ,g=d[z].searchAPI|| {
            }

            ,u=g.modelData|| {
            }

            ;t.stock&&t.stock.stockLevelStatus&&(u.modelCode=z,u.ctaType=t.stock.stockLevelStatus,t.price&&(u.msrp_price= {
                formatted_value: t.price.formattedValue,value:t.price.value
            }

            ),t.promotionPrice&&(u.sale_price= {
                formatted_value: t.promotionPrice.formattedValue,value:t.promotionPrice.value
            }

            ),t.picture&&(u.thumbUrl=t.picture.url,u.thumbUrlAlt=t.picture.altText),u.displayName=t.name,u.fmyChipList=[ {
                fmyChipType: "COLOR",fmyChipCode:t.colorCode,fmyChipName:t.colorName
            }

            ],g.categoryData&&(u.categorySubTypeEngName=g.categoryData.categorySubTypeEngName));b.push(u)}

        return b}
}

)();var configuratorWarranty= {
}

; (function(d) {
    var b=d("#siteCode").val();d("#storeDomain").val();var z=d("#storeWebDomain").val(),t=d("#priceCurrency").val(),g=[],u="uk"===b||"fr"===b||"be"===b||"be_fr"===b||"nl"===b||"de"===b||"in"===b,w="nl"!==b&&"be"!==b&&"be_fr"!==b;d(document).on("click",".extended-warranty-popup .cta--contained:not(cta--disabled)",function() {
        var l= {
        }

        ,k=d(".extended-warranty-popup .extended-warranty-popup__smc-inner input[type\x3dradio]:checked").parent().attr("data-index");k=g.smcs[k];l.consents=[];l.product_type= "";l.discounted_sku=k.smcCode;l.modelCode=k.smcCode;l.product_display_name="";l.msrp_price= {
        }

        ;l.msrp_price.value=k.price;l.msrp_price.formatted_value="";l.sale_price= {
        }

        ;l.sale_price.value=k.promotionPrice?k.promotionPrice: k.price;
        l.sale_price.formatted_value="";window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(l,"warranty");window.sg.components.extendedWarrantyPopup.closePopup()}

    );configuratorWarranty= {
        setProductInfo:function() {
            var l=d("#shopSKU").val(),k="true"===d("#isEppPage").val()? d("#eppCompanyCode").val(): b;
            l=z+"/"+k+"/servicesv2/getSmcSimpleInfo?productCode\x3d"+l;"Y"===hybrisApiJson?d.ajax( {
                url:l,type:"GET",dataType:"json",timeout:1E4,cache:!0,crossDomain:!0,xhrFields: {
                    withCredentials: !0
                }

                ,success:function(a) {
                    window.sg.components.dynamic.DetailAfterEvent.hybrisDrawWarranty(a)}

                ,error:function(a) {
                }
            }

            ):(k="true"===d("#isEppPage").val()? {
                withCredentials: !0
            }

            : {
            }

            ,d.ajax( {
                url:l,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_131",xhrFields:k,timeout:1E4,async:!1, cache:!0,success:function(a) {
                    window.sg.components.dynamic.DetailAfterEvent.hybrisDrawWarranty(a)}

                ,error:function(a) {
                    errLayerPop(a)}
            }

            ))}

        ,showPopup:function(l) {
            d(".extended-warranty-popup .cta--contained").removeClass("cta--disabled");g=l;var k=g.smcs,a="";l="";var c=[];if(null!=k)for(var f in k) {
                var e=k[f];a=currencyComma(e.price,t);var p="",h="",r="";e.promotionPrice&&parseFloat(e.promotionPrice)<parseFloat(e.price)&&(a=currencyComma(e.promotionPrice,t),p=currencyComma(e.price,t),h=Granite.I18n.get("Save {0}", currencyComma(parseFloat(e.price)-parseFloat(e.promotionPrice),t)));p&&(r+='\x3cspan class\x3d"extended-warranty-popup__smc-discount"\x3e',r+="\x3cs\x3e"+p+"\x3c/s\x3e",w&&(r+="\x3cspan\x3e"+h+"\x3c/span\x3e"),r+="\x3c/span\x3e");a='\x3cdiv class\x3d"checkbox-radio" data-index\x3d"'+f+'"\x3e\n\t\t\t\t\t\t\x3cinput type\x3d"radio" name\x3d"plans-option" class\x3d"hidden" id\x3d"plans-option-'+f+'" data-nm\x3d""\x3e\n\t\t\t\t\t\t\x3clabel class\x3d"checkbox-radio__label" for\x3d"plans-option-'+f+'"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-radio__label-text"\x3e'+ Granite.I18n.get("Extended Warranty")+'\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"extended-warranty-popup__smc-content"\x3e\n\t\t\t\t\t\t\t\t'+r+'\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"extended-warranty-popup__smc-price"\x3e\x3cem\x3e'+a+"\x3c/em\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\x3c/div\x3e";null!=e.termsAndCond&&(c=e.termsAndCond)}

            d(".extended-warranty-popup .extended-warranty-popup__smc-inner").html(a);1>c.length&&null!=g.termsAndCond&&(c= g.termsAndCond);if(u)for(var v in c)f=Number(v)+1,l+='\x3cli class\x3d"extended-warranty-popup__check-list is-check-required"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"checkbox-radio"\x3e\n\t\t\t\t\t\t\t\x3cinput type\x3d"checkbox" id\x3d"care-chk'+f+'" name\x3d"care-chk'+f+'" class\x3d"hidden"\x3e\n\t\t\t\t\t\t\t\x3clabel class\x3d"checkbox-radio__label" for\x3d"care-chk'+f+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-radio__label-text"\x3e'+c[v]+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/li\x3e"; else d(".extended-warranty-popup .extended-warranty-popup__check-list input[type\x3dcheckbox]").prop("checked",!1);""!==l?(l='\x3cdiv class\x3d"extended-warranty-popup__check-title"\x3e'+Granite.I18n.get("Samsung Care+ Terms and Conditions")+"\x3c/div\x3e\n\t\t\t\t"+l+'\n\t\t\t\t\x3cp class\x3d"extended-warranty-popup__check-error"\x3e'+Granite.I18n.get("* Required field")+"\x3c/p\x3e",d(".extended-warranty-popup__check").html(l),d(".extended-warranty-popup__check").show()): d(".extended-warranty-popup__check").hide();
            d(".extended-warranty-popup .extended-warranty-popup__smc-inner input[type\x3dradio]").eq(0).click();window.sg.components.extendedWarrantyPopup.init();window.sg.components.extendedWarrantyPopup.showPopup()}
    }
}

)(window.jQuery);var configuratorWarrantyVD= {
}

; (function(d) {
    function b(c) {
        d(".extended-warranty-popup-vd .cta--contained").addClass("cta--disabled");var f=["mx","ph","my","sg","id"].includes(g)?!0: !1,e=["ph","my","sg","id"].includes(g)?!0:!1,p=["my"].includes(g)?!0:!1;
        if("mx"==g) {
            var h=d("#apiChangeCategoryTypeCode").val();0<d.grep([ {
                category: "04010000",name:"TVs"
            }

            , {
                category: "04020000",name:"Lifestyle TVs"
            }

            , {
                category: "04040000",name:"Business TVs"
            }

            ],function(E) {
                return E.category==h}

            ).length&&(d(".extended-warranty-popup-vd .layer-popup__title").html(Granite.I18n.get("VD_Extended Warranty_Title {0}", " ").replace(/[\t ]+$/,"")),d(".extended-warranty-popup-vd .layer-popup__desc").html(Granite.I18n.get("VD_Extended Warranty Popup_Description {0}"," ").replace(/[\t ]+$/,"")),d(".extended-warranty-popup-vd .extended-warranty-popup-vd__check-title").html(Granite.I18n.get("VD_Extended Warranty Popup_Check {0}"," ").replace(/[\t ]+$/,"")))}

        l=c;var r=l.smcs,v="";c="";var q=[],y=Granite.I18n.get("VD_Extended Warranty Popup_Description2"),m=digitalData.page.pageInfo.pageTrack;if(null!=r) {
            var x= {
            }

            ,B;for(B in r) {
                var n= r[B],H=n.title,J=n.smcCode,D=n.price,F=null!=n.wasPrice?currencyComma(n.wasPrice,w): "",C="",I=n.downloadTNCUrl,G="";
                null!=D?0<parseFloat(n.price)?(C=currencyComma(n.price,w),f&&n.paymentCycle&&"MONTHLY"===n.paymentCycle.toUpperCase()&&(C=Granite.I18n.get("{0}/month",currencyComma(n.price,w)),p&&(C=Granite.I18n.get("freeMonths_null {0}/month",currencyComma(n.price,w))),e&&n.freeMonths&&null!=n.freeMonths&&"0"!=n.freeMonths&&(C=Granite.I18n.get("freeMonths {0}/month, from {1}",[n.freeMonths,currencyComma(n.price, w)])))): 0==parseFloat(n.price)&&(C=Granite.I18n.get("VD_Extended Warranty Popup_Free")):(D=currencyComma(0,w),f&&n.paymentCycle&&"MONTHLY"===n.paymentCycle.toUpperCase()&&(D=Granite.I18n.get("{0}/month",currencyComma(0,w)),p&&(D=Granite.I18n.get("freeMonths_null {0}/month",currencyComma(n.price,w))),e&&n.freeMonths&&null!=n.freeMonths&&"0"!=n.freeMonths&&(D=Granite.I18n.get("freeMonths {0}/month, from {1}",[n.freeMonths,currencyComma(0,w)]))));
                C?(x.$jscomp$loop$prop$savePrice$6=n.wasPrice-D,x.$jscomp$loop$prop$savePrice$6= Granite.I18n.get("Save {0}",currencyComma(x.$jscomp$loop$prop$savePrice$6,w)),G='\x3cdiv class\x3d"price-ux__wrap"\x3e\x3cdiv class\x3d"price-ux__price-current"\x3e\x3cstrong\x3e'+C+"\x3c/strong\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t"+function(E) {
                    return function() {
                        return""!=F?'\x3cdiv class\x3d"price-ux__price-sub"\x3e\x3cp class\x3d"price-ux__price-original"\x3e'+F+'\x3c/p\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t   \t\t\x3cp class\x3d"price-ux__price-save"\x3e\x3cem\x3e'+E.$jscomp$loop$prop$savePrice$6+"\x3c/em\x3e\x3c/p\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t   \x3c/div\x3e": ""
                    }
                }

                (x)()+"\n\t\t\t\t\t\t \x3c/div\x3e"): G=""+D;
                v+='\x3cli class\x3d"pd-select-option__item" role\x3d"listitem"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"pd-option-selector" data-index\x3d"'+B+'"\x3e\n\t\t\t\t\t\t\t\x3cinput class\x3d"hidden" type\x3d"radio" name\x3d"pd-popup-vd" id\x3d"pd-popup-vd-'+B+'" data-downloadtncurl\x3d"'+I+'"\n\t\t\t\t\t\t\t\tan-tr\x3d"header(pim)_service option selector-'+m+'-select option-option_click1"\n\t\t\t\t\t\t\t\tan-ca\x3d"option click"\n\t\t\t\t\t\t\t\tan-ac\x3d"pd buying tool"\n\t\t\t\t\t\t\t\tan-la\x3d\'extended warranty:'+ H+'\'\x3e\n\t\t\t\t\t\t\t\x3clabel class\x3d"pd-option-selector__label" for\x3d"pd-popup-vd-'+B+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"pd-option-selector__text-wrap"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pd-option-selector__text"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cdiv class\x3d"pd-option-selector__main"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cstrong class\x3d"pd-option-selector__main-text"\x3e'+H+'\x3c/strong\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pd-option-selector__sku-text"\x3e'+J+"\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\t\t"+ ("mx"===g?'\x3cspan class\x3d"pd-option-selector__description"\x3e'+(n.productShortDescription||"")+"\x3c/span\x3e": "ph"===g||"my"===g||"sg"===g||"id"===g?'\x3cspan class\x3d"pd-option-selector__description"\x3e\x3cb\x3e'+(n.summary||"")+"\x3c/b\x3e\x3c/span\x3e":"")+'\n\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"pd-option-selector__sub-text"\x3e\n\t\t\t\t\t\t\t\t\t\t\t'+G+"\n\t\t\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/li\x3e";
                x= {
                    $jscomp$loop$prop$savePrice$6: x.$jscomp$loop$prop$savePrice$6
                }
            }
        }

        d(".extended-warranty-popup-vd .pd-select-option__list").html(v);null!=l.termsAndCond&&""!=l.termsAndCond&&(q=l.termsAndCond);if(k) {
            for(var A in q)f=Number(A)+1,c+='\x3cli class\x3d"extended-warranty-popup-vd__check-list is-check-required"\x3e \n\t\t\t\t\t\t\x3cdiv class\x3d"checkbox-v3"\x3e\n\t\t\t\t\t \t\t\x3cinput class\x3d"checkbox-v3__input" type\x3d"checkbox" name\x3d"checkbox" id\x3d"checkbox-'+f+'"\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \x3clabel class\x3d"checkbox-v3__label" for\x3d"checkbox-'+ f+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v3__label-box-wrap"\x3e\n\t\t\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v3__label-box"\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \t\x3csvg class\x3d"checkbox-v3__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \t\x3c/svg\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \x3c/span\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \x3c/span\x3e\n\t\t\t\t\t\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \x3cspan class\x3d"checkbox-v3__label-text"\x3e'+ q[A]+"\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\x3c/li\x3e";"de"===g&&(c+='\x3cli class\x3d"extended-warranty-popup-vd__check-list is-description"\x3e \n\t\t\t\t\t\t\x3cspan class\x3d"checkbox-desc"\x3e'+Granite.I18n.get("VD_Extended Warranty Popup_Text-Required")+"\x3c/span\x3e\n\t\t\t\t\t \x3c/li\x3e");c+='\x3cli class\x3d"extended-warranty-popup-vd__check-list is-description"\x3e \n\t\t\t\t\t\x3cspan class\x3d"checkbox-desc"\x3e'+y+"\x3c/span\x3e\n\t\t\t\t \x3c/li\x3e"}

        else d(".extended-warranty-popup-vd input[type\x3dcheckbox]").prop("checked", !1);d(".extended-warranty-popup-vd .extended-warranty-popup-vd__check-list-wrap").html(c);d(".extended-warranty-popup-vd__button-item .cta--outlined").attr("an-tr","header(pim)_service option selector-"+m+"-extended warranty step-option_click1").attr("an-ca","option click").attr("an-ac","pd buying tool").attr("an-la","extended warranty:close");d(".extended-warranty-popup-vd__button-item .cta--contained").attr("an-tr","header(pim)_service option selector-"+m+"-extended warranty step-option_click1").attr("an-ca", "option click").attr("an-ac","pd buying tool").attr("an-la","extended warranty:confirm");"de"===g&&t(".extended-warranty-popup-vd .extended-warranty-popup-vd__check-list-wrap");window.sg.components.ExtendedWarrantyVdPopup.reInit();a&&1==d(".extended-warranty-popup-vd input[type\x3dradio]").length&&d(".extended-warranty-popup-vd input[type\x3dradio]").eq(0).prop("checked","true")}

    function z(c,f) {
        var e="samsungcareplus_allgemeineversicherungsbedingungen_produktinformationsblatt.pdf";-1<f.indexOf(".pdf")&& (e=f);f=new XMLHttpRequest;f.open("GET",c,!0);f.responseType="blob";f.onload=function(p) {
            if(200==this.status)if(navigator.msSaveBlob)p=new Blob([this.response], {
                type: ' type: "application/pdf; charset\x3dutf-8"'
            }

            ),window.navigator.msSaveOrOpenBlob(p,e);else {
                p=new Blob([this.response], {
                    type: "application/pdf"
                }

                );p=window.URL.createObjectURL(p);var h=document.createElement("a");h.href=p;h.download=e;document.body.append(h);h.click();h.remove();window.URL.revokeObjectURL(p)}
        }

        ;f.send()}

    function t(c) {
        "undefined"!= typeof shopAppUtilInstance&&null!=shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&document.querySelectorAll(c+" a[href$\x3d'.pdf'][target\x3d'_blank']").forEach(function(f) {
            f.removeAttribute("target")}

        )}

    var g=d("#siteCode").val();d("#storeDomain").val();var u=d("#storeWebDomain").val(),w=d("#priceCurrency").val(),l=[],k="de"===g||"mx"===g||"fr"===g||"ph"===g||"id"===g||"cz"===g||"sk"===g||"lt"===g||"lv"===g||"ee"===g||"pl"===g||"hr"===g||"si"===g,a=["de"].includes(g)?!0: !1;
    d(document).on("click", ".extended-warranty-popup-vd .cta--contained:not(cta--disabled)",function() {
        var c= {
        }

        ,f=d(".extended-warranty-popup-vd input[type\x3dradio]:checked").parent().attr("data-index");f=l.smcs[f];c.title=f.title;c.price=null!=f.price?f.price: 0;
        c.smcCode=f.smcCode;c.description=f.productShortDescription;c.paymentCycle=f.paymentCycle;c.freeMonths=f.freeMonths;window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(c,"warrantyVd");window.sg.components.ExtendedWarrantyVdPopup.closePopup()}

    );d(document).on("click", ".extended-warranty-popup-vd input[type\x3dradio]",function() {
        d(".extended-warranty-popup-vd input[type\x3dcheckbox]").prop("checked",!1);d(".extended-warranty-popup-vd .cta--contained").addClass("cta--disabled")}

    );d(document).on("click",".extended-warranty-popup-vd input[type\x3dcheckbox]",function() {
        if(d(".extended-warranty-popup-vd input[type\x3dradio]").is(":checked")) {
            if(d(".extended-warranty-popup-vd .cta--contained").removeClass("cta--disabled"),d(".extended-warranty-popup-vd input[type\x3dcheckbox]").prop("checked")) {
                var c= d(".extended-warranty-popup-vd input[type\x3dradio]:checked").data("downloadtncurl");if(c) {
                    if("de"===g&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView())shopAppUtilInstance.openExternalBrowser(c);else if(/iPhone|iPod|iPad/.test(window.navigator.userAgent))window.open(c,"_blank");else {
                        var f=c.split("/");z(c,f[f.length-1])}

                    d(this).attr("checkYn","Y")}
            }
        }

        else d(".extended-warranty-popup-vd .cta--contained").addClass("cta--disabled")}

    );configuratorWarrantyVD= {
        setProductInfo:function() {
            var c= d("#shopSKU").val(),f="true"===d("#isEppPage").val()?d("#eppCompanyCode").val(): g;
            c=u+"/"+f+"/servicesv2/getInsuranceSimpleInfo?productCode\x3d"+c+"\x26serviceType\x3dWARRANTY\x26referenceType\x3dAVAILABLE_SERVICE";"Y"===hybrisApiJson?d.ajax( {
                url:c,type:"GET",dataType:"json",timeout:1E4,cache:!0,crossDomain:!0,xhrFields: {
                    withCredentials: !0
                }

                ,success:function(e) {
                    b(e)}

                ,error:function(e) {
                }
            }

            ):(f="true"===d("#isEppPage").val()? {
                withCredentials: !0
            }

            : {
            }

            ,d.ajax( {
                url:c,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_131", xhrFields:f,timeout:1E4,async:!1,cache:!0,success:function(e) {
                    b(e);window.sg.components.ExtendedWarrantyVdPopup.showPopup(document.querySelector("#pd-extended-warranty-option-0"))}

                ,error:function(e) {
                    errLayerPop(e)}
            }

            ))}

        ,showPopup: b
    }
}

)(window.jQuery); (function(d,b) {
    function z(g) {
        d.sg.components.dynamic.detailSharedObj.commonApiModel.callSearchApiAjax(Object.keys(g),function(u,w) {
            w&&200===u.response.statusCode&&null!=u.response.resultData&&null!=u.response.resultData.productList&&(u=u.response.resultData.productList,b.each(u,function(l,k) {
                k=k.modelList;null!=k&&b.each(k,function(a,c) {
                    var f=c.modelCode,e=g[f].stocklevel;g[f]&&(c.displayName||(c.displayName=g[f].name||""),c.thumbUrl=g[f].imageUrl||"",c.thumbUrlAlt=g[f].imageUrlAlt||"",c.priceDisplay= g[f].price||"",c.promotionPriceDisplay=g[f].promotionPrice||"",c.price=g[f].priceValue||"",c.promotionPrice=g[f].promotionPriceValue||"",c.stocklevel=e,c.isStock=!(""===e||"OUTOFSTOCK"===e.toUpperCase()),c.idx=String(l)+"-"+String(a))}

                )}

            ),t=u,d.sg.components.dynamic.DetailAfterEvent.hybrisDrawGift(!0))}

        ,null,null)}

    d.sg.components.dynamic=d.sg.components.dynamic|| {
    }

    ;var t=[];d.sg.components.dynamic.freeGiftNewHybris= {
        getRelatedProductsSimpleInfo:function(g) {
            t=[];d.sg.components.dynamic.detailSharedObj.commonApiModel.callRelatedProductAjax(g, function(u,w) {
                if(w&&null!=u.products&&0<u.products.length) {
                    var l= {
                    }

                    ;b.each(u.products,function(k,a) {
                        if(a.stock&&a.stock.stockLevelStatus&&"OUTOFSTOCK"!==a.stock.stockLevelStatus.toUpperCase()) {
                            k=a.modelcode;var c=l[k]= {
                            }

                            ;c.modelCode=k;c.name=a.name;a.picture&&(c.imageUrl=a.picture.url,c.imageUrlAlt=a.picture.altText);a.stock&&(c.stocklevel=a.stock.stockLevelStatus);a.price&&a.price.value&&(c.priceValue=a.price.value,c.price=a.price.formattedValue,c.promotionPriceValue=a.price.value,c.promotionPrice= a.price.formattedValue);a.promotionPrice&&a.promotionPrice.value&&(c.promotionPriceValue=a.promotionPrice.value,c.promotionPrice=a.promotionPrice.formattedValue)}
                    }

                    );0<Object.keys(l).length&&z(l)}
            }

            ,null, {
                queryType: "SELECTION_OF_GIFT"
            }

            )}

        ,getAddOnGift:function() {
            return t}

        ,giftPopupGrid:function(g) {
            d.sg.components.dynamic.freeGift.giftPopupGrid(g)}
    }
}

)(window,window.jQuery);var buyingPdEup= {
}

; (function(d,b) {
    function z() {
        if("de"===u) {
            var k="";"true"===b("#isEppPage").val()&&(k="\x26store_id\x3d"+b("#eppCompanyCode").val());var a="true"===b("#isEppPage").val()? {
                withCredentials: !0
            }

            : {
            }

            ;b.ajax( {
                url:g+"/v1/tnc?display\x3dupgrade_disclaimer\x26tags\x3d"+l+k,type:"GET",xhrFields:a,dataType:"json",success:function(c) {
                    if(null!=c&&""!==c)for(var f in c)b(".upgrade-popup upgrade-popup__disclaimer-wrap p").html(c[f].data.content);else b(".upgrade-popup .upgrade-popup__disclaimer-wrap p").remove()}
            }

            )}
    }

    var t=b("#priceCurrency").val(),g=b("#storeDomain").val(),u=b("#siteCode").val(),w="",l="";b(document).on("click",".upgrade-popup .upgrade-popup__cta-wrap .cta--contained",function() {
        var k=[];b(".upgrade-popup input:checkbox[name\x3dinpUpgradeName]").each(function(a) {
            a=b(this);a.is(":checked")&&k.push(a.attr("data-id"))}

        );w.consents=k;window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(w,"eup");window.sg.components.upgradePopup.closePopup()}

    );buyingPdEup= {
        eupPopupGrid:function(k) {
            l= b("#shopSKU").val();w=k;var a='  \x3cdiv class\x3d"upgrade-popup__apply-product"\x3e                                                          \x3cstrong class\x3d"upgrade-popup__apply-brand"\x3e'+(Granite.I18n.get("Samsung")+"\x3c/strong\x3e       ");a+='    \x3cstrong class\x3d"upgrade-popup__apply-model"\x3e'+k.displayName+"\x3c/strong\x3e              \t   ";a=a+'  \x3c/div\x3e                                                                                            \x3cdiv class\x3d"upgrade-popup__apply-price-wrap"\x3e                                                       \x3cspan class\x3d"upgrade-popup__apply-price-label"\x3e'+ (Granite.I18n.get("Samsung Upgrade Program")+"\x3c/span\x3e                 ");a=a+'    \x3cem class\x3d"upgrade-popup__apply-price"\x3e                                                             \x3cspan class\x3d"upgrade-popup__apply-unit-price"\x3e'+(Granite.I18n.get("{0}/month",currencyComma(k.monthlyPrice,t))+"\x3c/span\x3e");a=a+'    \x3c/em\x3e                                                                                             \x3cul class\x3d"upgrade-popup__apply-price-detail"\x3e                                                      \x3cli\x3e                                                                                                \x3cspan class\x3d"upgrade-popup__apply-price-detail-label"\x3e'+ (Granite.I18n.get("Contract period")+"\x3c/span\x3e              ");a+='        \x3cspan class\x3d"upgrade-popup__apply-price-detail-text"\x3e'+k.months+" "+Granite.I18n.get("Months")+"\x3c/span\x3e                     ";a=a+'      \x3c/li\x3e                                                                                             \x3cli\x3e                                                                                                \x3cspan class\x3d"upgrade-popup__apply-price-detail-label"\x3e'+ (Granite.I18n.get("Total")+"\x3c/span\x3e                        ");a+='        \x3cspan class\x3d"upgrade-popup__apply-price-detail-text"\x3e'+currencyComma(k.salePrice,t)+"\x3c/span\x3e                     ";a+="      \x3c/li\x3e                                                                                           \x3c/ul\x3e                                                                                           \x3c/div\x3e\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";b(".upgrade-popup .upgrade-popup__apply-content").html(a); window.sg.components.upgradePopup.showPopup();window.sg.components.upgradePopup.reInit()}

        ,setTncUpgrade:function() {
            l=b("#shopSKU").val();b(".upgrade-popup .upgrade-popup__check-info").html("");var k="true"===b("#isEppPage").val()?b("#eppCompanyCode").val(): u,a="";
            b("#shopParmLang").val()&&(a="?lang\x3d"+b("#shopParmLang").val());b.ajax( {
                url:g+"/tokocommercewebservices/v2/"+k+"/tnc"+a,type:"GET",dataType:"json",data: {
                    context: "SERVICE",value:"UPGRADE"
                }

                ,xhrFields: {
                    withCredentials: !0
                }

                ,crossDomain:!0, async:!0,success:function(c) {
                    if(null!=c&&""!==c) {
                        for(var f=!1,e="",p="",h=0;h<c.length;h++) {
                            var r=c[h];if(r.read_only)e+='\x3cli class\x3d"upgrade-popup__check-list "\x3e',e+='\t\x3cspan class\x3d"checkbox-radio__label-text--normal"\x3e\x3cspan class\x3d"checkbox-radio__label-inner-text"\x3e'+r.content+"\x3c/span\x3e\x3c/span\x3e";else {
                                var v=r.required?" upgrade-popup__check-list--is-required": "";
                                ""!==v&&(f=!0);e+='\x3cli class\x3d"upgrade-popup__check-list'+v+'"\x3e';e+='\t\x3cdiv class\x3d"checkbox-radio"\x3e'; e+='\t\t\x3cinput type\x3d"checkbox" name\x3d"inpUpgradeName" class\x3d"upgrade-popup__check-box hidden" id\x3d"upgrade'+h+'"  data-id\x3d"'+r.code+'"\x3e';e+='\t\t\x3clabel class\x3d"checkbox-radio__label" for\x3d"upgrade'+h+'"\x3e';e+='\t\t\t\x3cspan class\x3d"checkbox-radio__label-text"\x3e';e+='\t\t\t\t\x3cspan class\x3d"checkbox-radio__label-inner-text"\x3e';e+=r.content;e+="\t\t\t\t\x3c/span\x3e";e+="\t\t\t\x3c/span\x3e";e+="\t\t\x3c/label\x3e";e+="\t\x3c/div\x3e"}

                            e+="\x3c/li\x3e"}

                        f&&(e+='\x3cp class\x3d"upgrade-popup__check-error"\x3e'+ Granite.I18n.get("* Required field")+"\x3c/p\x3e");""!==e&&(p+='\x3cstrong class\x3d"upgrade-popup__check-title"\x3e'+Granite.I18n.get("Check Terms and Conditions")+'\x3c/strong\x3e\x3cul class\x3d"upgrade-popup__check-list-wrap"\x3e'+e+"\x3c/ul\x3e");b(".upgrade-popup .upgrade-popup__check-info").html(p)}
                }

                ,complete:function() {
                    z()}
            }

            )}
    }
}

)(window,window.jQuery);