var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,w){a.raw=w;return a};$jscomp.arrayIteratorImpl=function(a){var w=0;return function(){return w<a.length?{done:!1,value:a[w++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.makeIterator=function(a){var w="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return w?w.call(a):$jscomp.arrayIterator(a)};
var configuratorCare={};
(function(a){function w(e){e=void 0===e?{}:e;var c=[],l=[],f="",h="";0!==Object.keys(e).length&&(c=e.smcType2CareCoveredDescs,l=e.smcType2CareNotCoveredDescs);f=a.map(c,function(q,t){return"\x3cli\x3e"+q+"\x3c/li\x3e"}).join("");h=a.map(l,function(q,t){return"\x3cli\x3e"+q+"\x3c/li\x3e"}).join("");a(".hubble-care-popup__info-list.hubble-care-popup__info-list-type-1").html(f);a(".hubble-care-popup__info-list.hubble-care-popup__info-list-type-2").html(h)}function U(){if("true"===a("#isEppPage").val()){var e=
a("#eppCompanyCode").val();e=a("#storeDomain").val()+"/tokocommercewebservices/v2/"+e+"/tnc?context\x3dSERVICE\x26value\x3dsamsungcare\x26lang\x3den_GB\x26curr\x3dGBP"}else e=F+"/tokocommercewebservices/v2/"+b+"/tnc?context\x3dSERVICE\x26value\x3dsamsungcare\x26lang\x3den_GB\x26curr\x3dGBP";return a.ajax({url:e,type:"GET",dataType:"json",cache:!0,timeout:2E4,xhrFields:{withCredentials:!0}})}function M(e,c){var l="samsungcareplus_allgemeineversicherungsbedingungen_produktinformationsblatt.pdf";-1<
c.indexOf(".pdf")&&(l=c);c=new XMLHttpRequest;c.open("GET",e,!0);c.responseType="blob";c.onload=function(f){if(200==this.status)if(navigator.msSaveBlob)f=new Blob([this.response],{type:' type: "application/pdf; charset\x3dutf-8"'}),window.navigator.msSaveOrOpenBlob(f,l);else{f=new Blob([this.response],{type:"application/pdf"});f=window.URL.createObjectURL(f);var h=document.createElement("a");h.href=f;h.download=l;document.body.append(h);h.click();h.remove();window.URL.revokeObjectURL(f)}};c.send()}
function V(e){"undefined"!=typeof shopAppUtilInstance&&null!=shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&document.querySelectorAll(e+" a[href$\x3d'.pdf'][target\x3d'_blank']").forEach(function(c){c.removeAttribute("target")})}function B(e,c){var l=!0;c.startsWith(e)&&(l=!1);return l}var F=a("#storeWebDomain").val();a("#shopIntegrationFlag").val();var b=a("#siteCode").val(),W=a("#hybrisApiJson").val(),z=a("#priceCurrency").val(),A={},X="de"===b||"fr"===b||"id"===b||"ph"===b||"cl"===b||"pe"===
b||"co"===b||"mx"===b||"gr"===b||"pl"===b||"cn"===b||"tr"===b||"co"===b||"cz"===b||"ro"===b,Y="nl"===b||"be"===b||"be_fr"===b||"de"===b,Z="nl"!==b&&"be"!==b&&"be_fr"!==b,aa="pl"===b||"fr"===b||"de"===b||"nl"===b||"be"===b||"be_fr"===b||"de"===b,G="be"===b||"be_fr"===b||"nl"===b,ba=Granite.I18n.get("From"),ca=2<a("#categorySubTypeCode").val().length&&"08"===a("#categorySubTypeCode").val().substring(0,2)?!0:!1,N="uk"===b||"fr"===b,da="pe"===b&&"04"===a("#categorySubTypeCode").val().substring(0,2),ea=
"uk fr it es pt de se dk fi no pl cz ro at ch ch_fr be be_fr nl".split(" ").includes(b),O=["de","nl","be","be_fr"].includes(b),P=["de","ro","uk","pl"].includes(b),Q="de nl be be_fr pl it ro".split(" ").includes(b),J=["es"].includes(b),fa=["uk","fr","ro"].includes(b),ha=["uk"].includes(b),R=["fr"].includes(b),H=["fr"].includes(b),S=["de"].includes(b),ia=function(e,c){a(".hubble-care-popup__term-cont").empty();if(null!=e&&null!=e.smcs){var l=e.smcs[c];c=U();c.done(function(f,h,q){if(null!=f&&0<f.length){var t=
"uk_SamsungCare_damage_tc";l.isTheft&&(t="uk_SamsungCare_theft_tc");"true"===a("#isEppPage").val()&&(t=a("#eppCompanyCode").val()+"_SamsungCare_damage_tc",l.isTheft&&(t=a("#eppCompanyCode").val()+"_SamsungCare_theft_tc"));f=a.map(a.grep(f,function(C,I){return C.code===t}),function(C,I){return C.content});T(e,f[0])}});c.fail(function(f){T(e,"")})}},T=function(e,c){c=void 0===c?"":c;e=a(".hubble-care-popup__term-cont");var l="";""!==c&&(l+=c);e.html(l)};a(document).on("click",".hubble-care-popup .cta--contained:not(cta--disabled)",
function(){var e={},c=a(".hubble-care-popup .hubble-care-popup__smc-wrap").attr("data-index");"in"===b&&(c=a(".hubble-care-popup .hubble-care-popup__smc-inner input[type\x3dradio]:checked").parent().attr("data-index"));c=A.smcs[c];e.consents=[];e.product_type="";e.discounted_sku=c.smcCode;e.modelCode=c.smcCode;e.product_display_name="";e.msrp_price={};e.msrp_price.value=c.price;e.msrp_price.formatted_value="";e.sale_price={};e.sale_price.value=c.promotionPrice?c.promotionPrice:c.price;e.sale_price.formatted_value=
"";if("fr"===b||"cz"===b)e.msrp_price.paymentcycle="",e.sale_price.paymentcycle="",c.paymentCycle&&"monthly"==c.paymentCycle.toLowerCase()&&(e.msrp_price.paymentcycle=c.paymentCycle.toLowerCase(),e.sale_price.paymentcycle=c.paymentCycle.toLowerCase());"pl"===b&&("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView()?shopAppUtilInstance.openExternalBrowser("https://images.samsung.com/is/content/samsung/assets/pl/regulaminy_2022/Ogolne_warunki_SCplus.pdf"):/iPhone|iPod|iPad/.test(window.navigator.userAgent)?
window.open("https://images.samsung.com/is/content/samsung/assets/pl/regulaminy_2022/Ogolne_warunki_SCplus.pdf","_blank"):(c="https:  images.samsung.com is content samsung assets pl regulaminy_2022 Ogolne_warunki_SCplus.pdf".split(" "),M("https://images.samsung.com/is/content/samsung/assets/pl/regulaminy_2022/Ogolne_warunki_SCplus.pdf",c[c.length-1])));window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(e,"care");window.sg.components.hubbleCarePopup.closePopup()});a(document).on("click",
".hubble-care-popup__check input[type\x3dcheckbox]",function(){var e=a(this).attr("checkYn");if(e&&"Y"!=e&&a(this).is(":checked")&&(e=a("#istnchref").val())){if("de"===b&&"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView())shopAppUtilInstance.openExternalBrowser(e);else if(/iPhone|iPod|iPad/.test(window.navigator.userAgent))window.open(e,"_blank");else{var c=e.split("/");M(e,c[c.length-1])}a(this).attr("checkYn","Y")}});configuratorCare={setProductInfo:function(e){var c=a("#shopSKU").val(),
l="true"===a("#isEppPage").val()?a("#eppCompanyCode").val():b,f=F+"/"+l+"/servicesv2/getSmcSimpleInfo?productCode\x3d"+c;e&&(f=F+"/"+l+"/servicesv2/getInsuranceSimpleInfo?productCode\x3d"+c+"\x26serviceType\x3dWARRANTY\x26referenceType\x3dAVAILABLE_SERVICE");"Y"===a("#b2bFlag").val()&&(f=F+"/servicesv2/getSmcSimpleInfo?productCode\x3d"+c);"Y"===W?a.ajax({url:f,type:"GET",dataType:"json",timeout:1E4,cache:!0,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(h){window.sg.components.dynamic.DetailAfterEvent.hybrisDrawCare(h,
e)},error:function(h){}}):(c="true"===a("#isEppPage").val()?{withCredentials:!0}:{},a.ajax({url:f,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_131",timeout:1E4,xhrFields:c,async:!1,cache:!0,success:function(h){window.sg.components.dynamic.DetailAfterEvent.hybrisDrawCare(h,e)},error:function(h){}}))},showPopup:function(e){A=e;var c=a(".hubble-care-popup"),l=A.smcs,f="",h="";e="";var q=[],t="",C="",I="",K=A.isSmcType2;K&&ia(A,0);for(var x in l){var d=l[x],n=currencyComma(d.price,
z);G&&(n=currencyCommaExcep(d.price,z));var u="",v="",D="",m=d.productShortDescription||"",E=d.summary||"";if(K){var p={},y=[],r=[];y.push(Granite.I18n.get("Samsung certified repairs"));r.push(Granite.I18n.get("Any incident where you have knowingly put your mobile device at risk or have not taken care of it"));r.push(Granite.I18n.get("Loss of your device in any circumstance"));r.push(Granite.I18n.get("Electrical or Mechanical defects or breakdown (covered by the manufacturer\u2019s warranty)"));r.push(Granite.I18n.get("Cosmetic Damage"));
d.isTheft||"TFT"===d.otherParameters.perks?"cz"==b?y.push(Granite.I18n.get("Worldwide cover for Accidental Damage and Theft")):y.splice(1,0,Granite.I18n.get("Theft")):r.unshift(Granite.I18n.get("Theft"));""===m||G||r.push(m);p.smcType2CareCoveredDescs=y;p.smcType2CareNotCoveredDescs=r;w(p);if(ea){var ja=a(".hubble-care-popup__term-cont"),L="";y=[];r=[];if(d.isTheft||"TFT"===d.otherParameters.perks){if(R&&d.paymentCycle&&"monthly"===d.paymentCycle.toLowerCase()){for(var g=1;6>=g;g++)B("SC+ Popup Bundle",
Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage\x26Theft_Monthly_"+g.toString()))&&y.push(Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage\x26Theft_Monthly_"+g.toString()));H&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle TFT Monthly Disclaimer"))}else{for(g=1;6>=g;g++)B("SC+ Popup Bundle",Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage\x26Theft_"+g.toString()))&&y.push(Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage\x26Theft_"+
g.toString()));H&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle TFT Upfront Disclaimer"))}for(g=1;6>=g;g++)B("SC+ Popup Bundle",Granite.I18n.get("SC+ Popup Bundle Not Covered Accidental Damage\x26Theft_"+g.toString()))&&r.push(Granite.I18n.get("SC+ Popup Bundle Not Covered Accidental Damage\x26Theft_"+g.toString()));J&&(L=Granite.I18n.get("SC+ Popup Bundle Terms Theft Desc"));O&&a(".hubble-care-popup .layer-popup__title").html(Granite.I18n.get("SC+ Popup Bundle Damage\x26Theft Title"));
Q&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage\x26Theft Terms Des"));P&&a(".hubble-care-popup .layer-popup__desc").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage\x26Theft Sub Title"));S&&a(".hubble-care-popup .hubble-care-popup__disclaimer").html(Granite.I18n.get("SC+ Popup Bundle TFT Disclaimer"))}else{if(R&&d.paymentCycle&&"monthly"===d.paymentCycle.toLowerCase()){for(g=1;6>=g;g++)B("SC+ Popup Bundle",Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage_Monthly_"+
g.toString()))&&y.push(Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage_Monthly_"+g.toString()));H&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle ADH Monthly Disclaimer"))}else{for(g=1;6>=g;g++)B("SC+ Popup Bundle",Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage_"+g.toString()))&&y.push(Granite.I18n.get("SC+ Popup Bundle Covered Accidental Damage_"+g.toString()));H&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle ADH Upfront Disclaimer"))}for(g=
1;6>=g;g++)B("SC+ Popup Bundle",Granite.I18n.get("SC+ Popup Bundle Not Covered Accidental Damage_"+g.toString()))&&r.push(Granite.I18n.get("SC+ Popup Bundle Not Covered Accidental Damage_"+g.toString()));J&&(L=Granite.I18n.get("SC+ Popup Bundle Terms ADH Desc"));O&&a(".hubble-care-popup .layer-popup__title").html(Granite.I18n.get("Samsung Care+ Popup Title"));Q&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage Terms Des"));P&&a(".hubble-care-popup .layer-popup__desc").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage Sub Title"));
S&&a(".hubble-care-popup .hubble-care-popup__disclaimer").html(Granite.I18n.get("SC+ Popup Bundle ADH Disclaimer"))}ha&&""!=m&&r.push(m);J&&ja.html(L);p.smcType2CareCoveredDescs=y;p.smcType2CareNotCoveredDescs=r;w(p)}}m="";if("in"===b&&(isNotEmpty(d.serviceExclusionsJson)||isNotEmpty(d.serviceInclusionsJson))){m+=' \x3cdiv class\x3d"hubble-care-popup__info" \x3e                        ';if(isNotEmpty(d.serviceInclusionsJson)){m+='   \x3cdiv class\x3d"hubble-care-popup__info-wrap"\x3e                                             ';
m+='     \x3cdiv class\x3d"hubble-care-popup__info-title"\x3e'+Granite.I18n.get("Inclusions")+":\x3c/div\x3e ";m+='     \x3cul class\x3d"hubble-care-popup__info-list hubble-care-popup__info-list-type-1"\x3e        ';for(p=0;p<d.serviceInclusionsJson.length;p++)m+="\x3cli\x3e"+d.serviceInclusionsJson[p]+"\x3c/li\x3e";m+="     \x3c/ul\x3e                                                                                ";m+="   \x3c/div\x3e                                                                                 "}if(isNotEmpty(d.serviceExclusionsJson)){m+=
'   \x3cdiv class\x3d"hubble-care-popup__info-wrap"\x3e                                             ';m+='     \x3cdiv class\x3d"hubble-care-popup__info-title"\x3e'+Granite.I18n.get("Exclusions")+":\x3c/div\x3e ";m+='     \x3cul class\x3d"hubble-care-popup__info-list hubble-care-popup__info-list-type-2"\x3e        ';for(p=0;p<d.serviceExclusionsJson.length;p++)m+="\x3cli\x3e"+d.serviceExclusionsJson[p]+"\x3c/li\x3e";m+="     \x3c/ul\x3e                                                                                ";
m+="   \x3c/div\x3e                                                                                 "}m+=" \x3c/div\x3e                                                                                   ";a(".hubble-care-popup .hubble-care-popup__info-box").html(m)}"undefined"!==typeof d.wasPrice?(u=n,v=d.wasPrice,"tr"==b&&0==parseFloat(n)&&(u=Granite.I18n.get("Free")),"in"===b?(f+='    \x3cdiv class\x3d"checkbox-radio" data-index\x3d"'+x+'"\x3e ',f+='      \x3cinput type\x3d"radio" name\x3d"plans-option" class\x3d"hidden" id\x3d"plans-option-'+
x+'" data-nm\x3d""\x3e  ',f+='      \x3clabel class\x3d"checkbox-radio__label" for\x3d"plans-option-'+x+'"\x3e                      ',f+='        \x3cspan class\x3d"checkbox-radio__label-text"\x3e'+d.title+"\x3c/span\x3e    ",f+='        \x3cspan class\x3d"hubble-care-popup__smc-content"\x3e',f+='          \x3cspan class\x3d"hubble-care-popup__smc-discount"\x3e ',"true"!==a("#isEppPage").val()&&0!=parseFloat(v)&&null!=v?(f+="            \x3cs\x3e"+v+"\x3c/s\x3e ",f+="            \x3cspan\x3e"+(parseFloat(v)-
parseFloat(d.price))+"\x3c/span\x3e"):(f+="            \x3cs\x3e\x3c/s\x3e ",f+="            \x3cspan\x3e\x3c/span\x3e "),f+="\t\t\t\x3c/span\x3e ",f+='          \x3cspan class\x3d"hubble-care-popup__smc-price"\x3e\x3cem\x3e'+u+"\x3c/em\x3e\x3c/span\x3e ",f+="        \x3c/span\x3e ",f+="      \x3c/label\x3e ",f+="    \x3c/div\x3e "):(f+='\t\x3cdiv class\x3d"hubble-care-popup__smc-wrap"  data-index\x3d"'+x+'"\x3e',f+='\t\t\x3cdiv class\x3d"hubble-care-popup__smc-name"\x3e',f+="\t\t\t\x3cstrong\x3e"+
d.title+"\x3c/strong\x3e",f+="\t\t\x3c/div\x3e",f+='\t\t\x3cdiv class\x3d"hubble-care-popup__smc-content"\x3e',d.paymentCycle&&"monthly"===d.paymentCycle.toLowerCase()?u=fa?d.freeMonths&&null!=d.freeMonths&&"0"!=d.freeMonths&&""!=d.freeMonths?Granite.I18n.get("freeMonths {0}/month, from {1}",[d.freeMonths,n]):Granite.I18n.get("freeMonths_null {0}/month",[n]):"ro"==b?Granite.I18n.get("{0}/Mon",n):Granite.I18n.get("{0}/month",n):"de"===b&&(u=n+Granite.I18n.get("SC+ Popup Bundle upfront price")),f=0!=
parseFloat(v)&&null!=v?f+('\x3cp class\x3d"hubble-care-popup__smc-price"\x3e\x3cdel\x3e'+currencyComma(v,z)+"\x3c/del\x3e\x3cem\x3e"+u+"\x3c/em\x3e\x3c/p\x3e"):f+('\x3cp class\x3d"hubble-care-popup__smc-price"\x3e'+u+"\x3c/p\x3e"),f+="\t\x3c/div\x3e")):(d.promotionPrice&&parseFloat(d.promotionPrice)<parseFloat(d.price)&&(G?(n=currencyCommaExcep(d.promotionPrice,z),u=currencyCommaExcep(d.price,z),v=Granite.I18n.get("Save {0}",currencyCommaExcep(parseFloat(d.price)-parseFloat(d.promotionPrice),z))):
(n=currencyComma(d.promotionPrice,z),u=currencyComma(d.price,z),v=Granite.I18n.get("Save {0}",currencyComma(parseFloat(d.price)-parseFloat(d.promotionPrice),z)))),d.paymentCycle&&"monthly"===d.paymentCycle.toLowerCase()&&(n=Granite.I18n.get("{0}/month",n)),u&&(D+='\x3cspan class\x3d"hubble-care-popup__smc-discount"\x3e',Y&&(D+="\x3cspan\x3e"+ba+"\x3c/span\x3e"),D+="\x3cs\x3e"+u+"\x3c/s\x3e",Z&&(D+="\x3cspan\x3e"+v+"\x3c/span\x3e"),D+="\x3c/span\x3e"),f+='\x3cdiv class\x3d"hubble-care-popup__smc-wrap"  data-index\x3d"'+
x+'"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"hubble-care-popup__smc-name"\x3e\n\t\t\t\t\t\t  \x3cstrong\x3e'+d.title+'\x3c/strong\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"hubble-care-popup__smc-content"\x3e\n\t\t\t\t\t\t\t'+D+'\n\t\t\t\t\t\t  \x3cp class\x3d"hubble-care-popup__smc-price"\x3e\n\t\t\t\t\t\t\t\x3cem\x3e'+n+"\x3c/em\x3e\n\t\t\t\t\t\t  \x3c/p\x3e\n\t\t\t\t\t  \x3c/div\x3e");if(K)"fr"===b?d.otherParameters&&d.otherParameters.excess&&(h+='\x3cp class\x3d"hubble-care-popup__smc-message"\x3eFranchise de '+
d.otherParameters.excess+"\u20ac par sinistre",h=d.otherParameters.excessTFT?h+(" (Vol et Perte: "+(""!==d.otherParameters.excessTFT?" "+d.otherParameters.excessTFT:"")+"\u20ac).\x3c/p\x3e"):h+".\x3c/p\x3e"):""!==E&&(h+='\x3cp class\x3d"hubble-care-popup__smc-message"\x3e'+E+"\x3c/p\x3e");else if(aa&&d.productShortDescription||N)h=N?h+('\x3cp class\x3d"hubble-care-popup__smc-message"\x3e'+Granite.I18n.get("* Excess is payable in the event of a successful claim")+"\x3c/p\x3e"):h+('\x3cp class\x3d"hubble-care-popup__smc-message"\x3e'+
d.productShortDescription+"\x3c/p\x3e");if("de"==b||"ro"==b||"cz"==b||"pl"==b||G)n=a(".hubble-care-popup__notice"),d.paymentCycle&&"monthly"==d.paymentCycle.toLowerCase()?n.show():n.hide(),n=a(".hubble-care-popup__disclaimer.js-disclaimer_monthly_ro"),E=a(".hubble-care-popup__disclaimer.js-disclaimer_ro"),"ro"==b&&d.paymentCycle&&"monthly"==d.paymentCycle.toLowerCase()?(n.show(),E.hide()):(n.hide(),E.show());null!=d.termsAndCond&&(q=d.termsAndCond,t=d.downloadTNCUrl);if("tr"===b){q=[];for(var k=1;4>
k;k++)1!=k||12!=d.numberContentUnits&&24!=d.numberContentUnits?B("Samsung Care+ TnC 0",Granite.I18n.get("Samsung Care+ TnC 0"+k))&&q.push(Granite.I18n.get("Samsung Care+ TnC 0"+k)):B("Samsung Care+ TnC 0",Granite.I18n.get("Samsung Care+ TnC 0"+k+"_"+d.numberContentUnits))&&q.push(Granite.I18n.get("Samsung Care+ TnC 0"+k+"_"+d.numberContentUnits))}}c.find(".hubble-care-popup__smc-message").remove();c.find(".hubble-care-popup__smc-inner").html(f);c.find(".hubble-care-popup__smc-inner").append(h);1>
q.length&&null!=A.termsAndCond&&(q=A.termsAndCond,t=A.downloadTNCUrl);"de"==b&&""!=t&&(C='\x3cinput type\x3d"hidden" name\x3d"istnchref" id\x3d"istnchref" value\x3d"'+t+'"/\x3e');"de"==b&&(I=' checkYn\x3d"N"');"undefined"!==typeof a("#monthly_card_details_Check").val()&&d.paymentCycle&&"monthly"===d.paymentCycle.toLowerCase()?a("#monthly_card_details_Check").show():a("#monthly_card_details_Check").hide();if(X)for(k in q)x=Number(k)+1,e+='\x3cli class\x3d"hubble-care-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'+
x+'" name\x3d"care-chk'+x+'" class\x3d"hidden" '+I+' aria-required\x3d"true"\x3e\n                            '+C+'\n\t\t\t\t\t\t\t\x3clabel class\x3d"checkbox-radio__label" for\x3d"care-chk'+x+'"\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-radio__label-text"\x3e'+q[k]+"\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";""!==e?(c.find(".hubble-care-popup__check-list-wrap").html(e),"de"===b&&V(".hubble-care-popup__check-list-wrap"),c.find(".hubble-care-popup__check").show()):
"co"!=b&&c.find(".hubble-care-popup__check").hide();"pe"===b&&(ca?(a(".hubble-care-popup .layer-popup__title").html(Granite.I18n.get("HA_Samsung Care+ Popup Title")),a(".hubble-care-popup .layer-popup__desc").html(Granite.I18n.get("HA_Protects your device from accidental damage for up to two years.")),a(".hubble-care-popup .layer-popup__desc a").attr("href","https://www.samsung.com/pe/offer/samsung-care-plus/home-appliances").attr("target","_blank")):da?a(".hubble-care-popup .layer-popup__desc a").attr("href",
"https://www.samsung.com/pe/offer/tv-extended-warranty/").attr("target","_blank"):a(".hubble-care-popup .layer-popup__desc a").attr("href","https://www.samsung.com/pe/campaign/samsung-care-plus/mobile/").attr("target","_blank"));"cn"===b?(k={},c=a(".hubble-care-popup .hubble-care-popup__smc-wrap").attr("data-index"),c=A.smcs[c],k.consents=[],k.product_type="",k.discounted_sku=c.smcCode,k.modelCode=c.smcCode,k.product_display_name="",k.msrp_price={},k.msrp_price.value=c.price,k.msrp_price.formatted_value=
"",k.sale_price={},k.sale_price.value=c.promotionPrice?c.promotionPrice:c.price,k.sale_price.formatted_value="",window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(k,"care")):window.sg.components.hubbleCarePopup.showPopup();""!==e?(a(".hubble-care-popup .cta--contained").addClass("cta--disabled"),a(".hubble-care-popup .cta--contained").attr("aria-disabled",!0)):(a(".hubble-care-popup .cta--contained").removeClass("cta--disabled"),a(".hubble-care-popup .cta--contained").attr("aria-disabled",
!1));window.sg.components.hubbleCarePopup.init();a("#hubble-care .hubble-care-popup__smc-inner .checkbox-radio__label").first().click()}}})($);