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 d=[],k=[],f="",h="";0!==Object.keys(e).length&&(d=e.smcType2CareCoveredDescs,k=e.smcType2CareNotCoveredDescs);f=a.map(d,function(q,t){return"\x3cli\x3e"+q+"\x3c/li\x3e"}).join("");h=a.map(k,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 V(){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,d){var k="samsungcareplus_allgemeineversicherungsbedingungen_produktinformationsblatt.pdf";-1<
d.indexOf(".pdf")&&(k=d);d=new XMLHttpRequest;d.open("GET",e,!0);d.responseType="blob";d.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,k);else{f=new Blob([this.response],{type:"application/pdf"});f=window.URL.createObjectURL(f);var h=document.createElement("a");h.href=f;h.download=k;document.body.append(h);h.click();h.remove();window.URL.revokeObjectURL(f)}};d.send()}
function W(e){"undefined"!=typeof shopAppUtilInstance&&null!=shopAppUtilInstance&&shopAppUtilInstance.isWebView()&&document.querySelectorAll(e+" a[href$\x3d'.pdf'][target\x3d'_blank']").forEach(function(d){d.removeAttribute("target")})}function B(e,d){var k=!0;d.startsWith(e)&&(k=!1);return k}var F=a("#storeWebDomain").val();a("#shopIntegrationFlag").val();var b=a("#siteCode").val(),X=a("#hybrisApiJson").val(),z=a("#priceCurrency").val(),A={},Y="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,Z="nl"===b||"be"===b||"be_fr"===b||"de"===b,aa="nl"!==b&&"be"!==b&&"be_fr"!==b,N="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,O="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 tr".split(" ").includes(b),P=["de","nl","be","be_fr"].includes(b),Q=["de","ro","uk","pl"].includes(b),R="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),S=["fr"].includes(b),H=["fr"].includes(b),T=["de"].includes(b),ia=["tr"].includes(b),ja=function(e,d){a(".hubble-care-popup__term-cont").empty();if(null!=e&&null!=e.smcs){var k=e.smcs[d];d=V();d.done(function(f,
h,q){if(null!=f&&0<f.length){var t="uk_SamsungCare_damage_tc";k.isTheft&&(t="uk_SamsungCare_theft_tc");"true"===a("#isEppPage").val()&&(t=a("#eppCompanyCode").val()+"_SamsungCare_damage_tc",k.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});U(e,f[0])}});d.fail(function(f){U(e,"")})}},U=function(e,d){d=void 0===d?"":d;e=a(".hubble-care-popup__term-cont");var k="";""!==d&&(k+=d);e.html(k)};a(document).on("click",
".hubble-care-popup .cta--contained:not(cta--disabled)",function(){var e={},d=a(".hubble-care-popup .hubble-care-popup__smc-wrap").attr("data-index");"in"===b&&(d=a(".hubble-care-popup .hubble-care-popup__smc-inner input[type\x3dradio]:checked").parent().attr("data-index"));d=A.smcs[d];e.consents=[];e.product_type="";e.discounted_sku=d.smcCode;e.modelCode=d.smcCode;e.product_display_name="";e.msrp_price={};e.msrp_price.value=d.price;e.msrp_price.formatted_value="";e.sale_price={};e.sale_price.value=
d.promotionPrice?d.promotionPrice:d.price;e.sale_price.formatted_value="";if("fr"===b||"cz"===b)e.msrp_price.paymentcycle="",e.sale_price.paymentcycle="",d.paymentCycle&&"monthly"==d.paymentCycle.toLowerCase()&&(e.msrp_price.paymentcycle=d.paymentCycle.toLowerCase(),e.sale_price.paymentcycle=d.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"):(d="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",d[d.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 d=e.split("/");M(e,d[d.length-1])}a(this).attr("checkYn","Y")}});configuratorCare={setProductInfo:function(e){var d=
a("#shopSKU").val(),k="true"===a("#isEppPage").val()?a("#eppCompanyCode").val():b,f=F+"/"+k+"/servicesv2/getSmcSimpleInfo?productCode\x3d"+d;e&&(f=F+"/"+k+"/servicesv2/getInsuranceSimpleInfo?productCode\x3d"+d+"\x26serviceType\x3dWARRANTY\x26referenceType\x3dAVAILABLE_SERVICE");"Y"===a("#b2bFlag").val()&&(f=F+"/servicesv2/getSmcSimpleInfo?productCode\x3d"+d);"Y"===X?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){}}):(d="true"===a("#isEppPage").val()?{withCredentials:!0}:{},a.ajax({url:f,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_131",timeout:1E4,xhrFields:d,async:!1,cache:!0,success:function(h){window.sg.components.dynamic.DetailAfterEvent.hybrisDrawCare(h,e)},error:function(h){}}))},showPopup:function(e){A=e;var d=a(".hubble-care-popup"),k=A.smcs,f="",h="";e="";var q=[],t="",C="",I="",K=A.isSmcType2;K&&ja(A,0);for(var x in k){var c=k[x],n=currencyComma(c.price,
z);G&&(n=currencyCommaExcep(c.price,z));var u="",v="",D="",l=c.productShortDescription||"",E=c.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"));
c.isTheft||"TFT"===c.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"));""===l||G||r.push(l);p.smcType2CareCoveredDescs=y;p.smcType2CareNotCoveredDescs=r;w(p);if(ea){var ka=a(".hubble-care-popup__term-cont"),L="";y=[];r=[];if(c.isTheft||"TFT"===c.otherParameters.perks){if(S&&c.paymentCycle&&"monthly"===c.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"));P&&a(".hubble-care-popup .layer-popup__title").html(Granite.I18n.get("SC+ Popup Bundle Damage\x26Theft Title"));
R&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage\x26Theft Terms Des"));Q&&a(".hubble-care-popup .layer-popup__desc").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage\x26Theft Sub Title"));T&&a(".hubble-care-popup .hubble-care-popup__disclaimer").html(Granite.I18n.get("SC+ Popup Bundle TFT Disclaimer"))}else{if(S&&c.paymentCycle&&"monthly"===c.paymentCycle.toLowerCase()){for(g=1;7>=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"));P&&a(".hubble-care-popup .layer-popup__title").html(Granite.I18n.get("Samsung Care+ Popup Title"));R&&a(".hubble-care-popup .hubble-care-popup__caution").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage Terms Des"));Q&&a(".hubble-care-popup .layer-popup__desc").html(Granite.I18n.get("SC+ Popup Bundle Accidental Damage Sub Title"));
T&&a(".hubble-care-popup .hubble-care-popup__disclaimer").html(Granite.I18n.get("SC+ Popup Bundle ADH Disclaimer"))}ia&&(a("#hubble-care-popup__info-title_covered").html(Granite.I18n.get(c.otherParameters.perks+" What is Covered")),a("#hubble-care-popup__info-title_not_covered").html(Granite.I18n.get(c.otherParameters.perks+" What is Not Covered")));ha&&""!=l&&r.push(l);J&&ka.html(L);p.smcType2CareCoveredDescs=y;p.smcType2CareNotCoveredDescs=r;w(p)}}l="";if("in"===b&&(isNotEmpty(c.serviceExclusionsJson)||
isNotEmpty(c.serviceInclusionsJson))){l+=' \x3cdiv class\x3d"hubble-care-popup__info" \x3e                        ';if(isNotEmpty(c.serviceInclusionsJson)){l+='   \x3cdiv class\x3d"hubble-care-popup__info-wrap"\x3e                                             ';l+='     \x3cdiv class\x3d"hubble-care-popup__info-title"\x3e'+Granite.I18n.get("Inclusions")+":\x3c/div\x3e ";l+='     \x3cul class\x3d"hubble-care-popup__info-list hubble-care-popup__info-list-type-1"\x3e        ';for(p=0;p<c.serviceInclusionsJson.length;p++)l+=
"\x3cli\x3e"+c.serviceInclusionsJson[p]+"\x3c/li\x3e";l+="     \x3c/ul\x3e                                                                                ";l+="   \x3c/div\x3e                                                                                 "}if(isNotEmpty(c.serviceExclusionsJson)){l+='   \x3cdiv class\x3d"hubble-care-popup__info-wrap"\x3e                                             ';l+='     \x3cdiv class\x3d"hubble-care-popup__info-title"\x3e'+Granite.I18n.get("Exclusions")+":\x3c/div\x3e ";
l+='     \x3cul class\x3d"hubble-care-popup__info-list hubble-care-popup__info-list-type-2"\x3e        ';for(p=0;p<c.serviceExclusionsJson.length;p++)l+="\x3cli\x3e"+c.serviceExclusionsJson[p]+"\x3c/li\x3e";l+="     \x3c/ul\x3e                                                                                ";l+="   \x3c/div\x3e                                                                                 "}l+=" \x3c/div\x3e                                                                                   ";
a(".hubble-care-popup .hubble-care-popup__info-box").html(l)}"undefined"!==typeof c.wasPrice?(u=n,v=c.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'+
c.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(c.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"+c.title+"\x3c/strong\x3e",f+="\t\t\x3c/div\x3e",f+='\t\t\x3cdiv class\x3d"hubble-care-popup__smc-content"\x3e',c.paymentCycle&&"monthly"===c.paymentCycle.toLowerCase()?u=fa?c.freeMonths&&null!=c.freeMonths&&"0"!=c.freeMonths&&
""!=c.freeMonths?Granite.I18n.get("freeMonths {0}/month, from {1}",[c.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")):(c.promotionPrice&&parseFloat(c.promotionPrice)<parseFloat(c.price)&&(G?(n=currencyCommaExcep(c.promotionPrice,z),u=currencyCommaExcep(c.price,z),v=Granite.I18n.get("Save {0}",currencyCommaExcep(parseFloat(c.price)-parseFloat(c.promotionPrice),z))):(n=currencyComma(c.promotionPrice,z),u=currencyComma(c.price,z),v=Granite.I18n.get("Save {0}",currencyComma(parseFloat(c.price)-parseFloat(c.promotionPrice),z)))),c.paymentCycle&&"monthly"===c.paymentCycle.toLowerCase()&&(n=Granite.I18n.get("{0}/month",
n)),u&&(D+='\x3cspan class\x3d"hubble-care-popup__smc-discount"\x3e',Z&&(D+="\x3cspan\x3e"+ba+"\x3c/span\x3e"),D+="\x3cs\x3e"+u+"\x3c/s\x3e",aa&&(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'+c.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?c.otherParameters&&c.otherParameters.excess&&(h+='\x3cp class\x3d"hubble-care-popup__smc-message"\x3eFranchise de '+c.otherParameters.excess+"\u20ac par sinistre",h=c.otherParameters.excessTFT?h+(" (Vol et Perte: "+(""!==c.otherParameters.excessTFT?" "+c.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":N&&c.productShortDescription&&(h+='\x3cp class\x3d"hubble-care-popup__smc-message"\x3e'+c.productShortDescription+"\x3c/p\x3e");else if(N&&c.productShortDescription||O)h=O?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'+c.productShortDescription+"\x3c/p\x3e");if("de"==
b||"ro"==b||"cz"==b||"pl"==b||G)n=a(".hubble-care-popup__notice"),c.paymentCycle&&"monthly"==c.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&&c.paymentCycle&&"monthly"==c.paymentCycle.toLowerCase()?(n.show(),E.hide()):(n.hide(),E.show());null!=c.termsAndCond&&(q=c.termsAndCond,t=c.downloadTNCUrl);if("tr"===b){q=[];for(var m=1;4>m;m++)B("Samsung Care+ TnC 0",Granite.I18n.get("Samsung Care+ TnC 0"+
m+"_"+c.otherParameters.perks))&&q.push(Granite.I18n.get("Samsung Care+ TnC 0"+m+"_"+c.otherParameters.perks))}}d.find(".hubble-care-popup__smc-message").remove();d.find(".hubble-care-popup__smc-inner").html(f);d.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()&&
c.paymentCycle&&"monthly"===c.paymentCycle.toLowerCase()?a("#monthly_card_details_Check").show():a("#monthly_card_details_Check").hide();if(Y)for(m in q)x=Number(m)+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[m]+"\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?(d.find(".hubble-care-popup__check-list-wrap").html(e),"de"===b&&W(".hubble-care-popup__check-list-wrap"),d.find(".hubble-care-popup__check").show()):"co"!=b&&d.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?(m={},d=a(".hubble-care-popup .hubble-care-popup__smc-wrap").attr("data-index"),d=A.smcs[d],m.consents=[],m.product_type="",m.discounted_sku=d.smcCode,m.modelCode=d.smcCode,m.product_display_name="",m.msrp_price={},m.msrp_price.value=d.price,m.msrp_price.formatted_value="",m.sale_price={},m.sale_price.value=d.promotionPrice?d.promotionPrice:d.price,m.sale_price.formatted_value="",window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(m,"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()}}})($);