var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(A){return A.raw=A};$jscomp.createTemplateTagFirstArgWithRaw=function(A,b){A.raw=b;return A};$jscomp.arrayIteratorImpl=function(A){var b=0;return function(){return b<A.length?{done:!1,value:A[b++]}:{done:!0}}};$jscomp.arrayIterator=function(A){return{next:$jscomp.arrayIteratorImpl(A)}};$jscomp.makeIterator=function(A){var b="undefined"!=typeof Symbol&&Symbol.iterator&&A[Symbol.iterator];return b?b.call(A):$jscomp.arrayIterator(A)};
var tariffData={};
(function(A,b){function Y(a,d,c){if(!a.active&&!a.is_active)return"";var e=$jscomp.makeIterator(function(){if(null!=a.images){if(null!=a.images.large_image)return[a.images.large_image.url,a.images.large_image.desc];if(null!=a.images.small_image)return[a.images.small_image.url,a.images.small_image.desc]}return["",""]}()),g=e.next().value;e=e.next().value;var k=function(){if(!z)return[];var f=M("Customer_type")(a);return b.map(f||[],function(l){return'"'+l+'"'})}().join(",");return'\n        \x3cdiv class\x3d"tariff-popup__radio" data-index\x3d"'+c+
":"+d+'" '+(k?"data-customer-type\x3d'["+k+"]'":"")+'\x3e\n            \x3cinput type\x3d"radio" name\x3d"tariff_option" class\x3d"hidden" id\x3d"'+c+":"+d+'"\x3e\n            \x3clabel class\x3d"radio-v2__label tariff-popup__radio-label" for\x3d"'+c+":"+d+'" an-tr\x3d"header(pim)_service option selector tariff-'+E+'-option-select" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"tariff:select plan:'+c+":"+a.name.toLocaleLowerCase()+'"\x3e\n                \x3cspan class\x3d"radio-v2__label-box-wrap tariff-popup__radio-box"\x3e\n                    \x3cspan class\x3d"radio-v2__label-box"\x3e\n                        \x3cspan class\x3d"radio-v2__label-box-circle"\x3e\x3c/span\x3e\n                    \x3c/span\x3e\n                \x3c/span\x3e\n                \x3cspan class\x3d"tariff-popup__plan-wrap"\x3e\n                    \x3cspan class\x3d"tariff-popup__plan'+
(y?" no-img":"")+'"\x3e\n                        \x3cspan class\x3d"tariff-popup__plan-group-main"\x3e\n                            \x3cspan class\x3d"tariff-popup__plan-header"\x3e\n                                '+(y?"":'\n                                \x3cspan class\x3d"tariff-popup__plan-img"\x3e\n                                    \x3cimg src\x3d"'+g+'" alt\x3d"'+e+'"\x3e\n                                \x3c/span\x3e\n                                ')+'                                \n                                \x3cspan class\x3d"tariff-popup__plan-title"\x3e'+
a.name+"\x3c/span\x3e\n                            \x3c/span\x3e\n                            "+("se"===h&&("vimla"===c||"topTariff"===c&&a.carrier&&"vimla"==a.carrier)?'\n                            \x3cspan class\x3d"tariff-popup__plan-sub-info"\x3eG\u00e4ller f\u00f6r nya kunder hos Vimla\x3c/span\x3e\n                            ':"")+"\n                            "+("no"===h&&("talkmore"===c||"topTariff"===c&&a.carrier&&"talkmore"==a.carrier)?'\n                            \x3cspan class\x3d"tariff-popup__plan-sub-info"\x3eGjelder for nye kunder hos Talkmore\x3c/span\x3e\n                            ':
"")+"\n                            "+("dk"===h&&("oister"===c||"topTariff"===c&&a.carrier&&"oister"==a.carrier)?'\n                            \x3cspan class\x3d"tariff-popup__plan-sub-info"\x3eG\u00e6lder ved oprettelse af nyt abonnement\x3c/span\x3e\n                            ':"")+'\n                            \x3cspan class\x3d"tariff-popup__plan-detail"\x3e\n                                '+function(){if(null==a.features)return"";var f=function(){return"uk"==h?['\x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e\x3cb\x3e'+
function(q){var p=(q.capacities||[]).find(function(u){return"gb"==(u.unit||"").toLowerCase()});q="";if(!p)return"";var v=(p.value||"").toString();p=(p.unit||"").toString();return q=-1<v.indexOf("999.999")?q+(Granite.I18n.get("Unlimited")+" "+Granite.I18n.get("Data")):q+(v+" "+p+" "+Granite.I18n.get("Data"))}(a.features)+"\x3c/b\x3e\x3c/span\x3e",'\x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e\x3cb\x3e'+function(q){var p=(q.capacities||[]).find(function(u){return"minutes"==(u.unit||"").toLowerCase()});
if(!p)return"";q=(p.value||"").toString();p=(p.unit||"").toString();var v="";-1<q.indexOf("-1")?v=Granite.I18n.get("Unlimited")+" "+p:0<=parseInt(q)&&(v+=q+" "+p);return v}(a.features)+"\x3c/b\x3e\x3c/span\x3e",'\x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e\x3cb\x3e'+function(q){var p=(q.capacities||[]).find(function(u){return"messages"==(u.unit||"").toLowerCase()});if(!p)return"";q=(p.value||"").toString();p=(p.unit||"").toString();var v="";-1<q.indexOf("-1")?v=Granite.I18n.get("Unlimited")+
" "+p:0<=parseInt(q)&&(v+=q+" "+p);return v}(a.features)+"\x3c/b\x3e\x3c/span\x3e"]:"fr"==h?['\x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e\x3cb\x3e'+Granite.I18n.get("Unlimited minutes")+"\x3c/b\x3e\x3c/span\x3e",'\x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e\x3cb\x3e'+Granite.I18n.get("Unlimited messages")+"\x3c/b\x3e\x3c/span\x3e"]:[]}(),l=f.length,m=function(q){var p=q.tarifhighlights||[];if(z){var v=G(b.map(b.grep(q.tariffFeatures||[],function(u){return"Inklusivleistungen"==
u.id}),function(u){return u.values}));return b.map(p,function(u){var w=b.extend({},u);u=b.map(b.grep(v||[],function(D){return D.key==w.name}),function(D){return D.value}).join(" | ");w.name+=u?" "+u:"";return w})}return p}(a.features);return'\n            \x3cspan class\x3d"tariff-popup__plan-detail-list"\x3e\n                '+f.join("")+"\n                "+b.map(m,function(q){l++;return'\x3cspan class\x3d"tariff-popup__plan-detail-item" '+(6<l?'style\x3d"display:none;"':"")+"}\x3e"+q.name+"\x3c/span\x3e"}).join("")+
"\n                "+(6<l?'\n                    \x3ca href\x3d"javascript:;" class\x3d"tariff-popup__plan-detail-view-more"\x3e\n                    \t\x3cspan class\x3d"view-more-text"\x3e'+Granite.I18n.get("View more")+'\x3c/span\x3e\n                    \t\x3csvg class\x3d"icon view-more-icon"\x3e\n                    \t\t\x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\n                    \t\x3c/svg\x3e\n                    \t\x3cspan class\x3d"view-less-text"\x3e'+
Granite.I18n.get("View less")+'\x3c/span\x3e\n                    \t\x3csvg class\x3d"icon view-less-icon"\x3e\n                    \t\t\x3cuse xlink:href\x3d"#close-up-bold" href\x3d"#close-up-bold"\x3e\x3c/use\x3e\n                    \t\x3c/svg\x3e\n                    \x3c/a\x3e                \n                ':"")+"\n            \x3c/span\x3e\n            "}()+"\n                                "+function(){return"au"===h||"uk"===h?b.map(a.salesText||[],function(f){return n.isNotEmpty(f.value)?
'\n                        \x3cspan class\x3d"tariff-popup__plan-detail-list"\x3e\n                            \x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e'+f.value+"\x3c/span\x3e\n                        \x3c/span\x3e\n                        ":""}).join(""):""}()+"\n                                "+function(){return y?b.map(a.features.attributes||[],function(f){return'\n                    \x3cspan class\x3d"tariff-popup__plan-detail-list"\x3e\n                        \x3cspan class\x3d"tariff-popup__plan-detail-item"\x3e'+
f+"\x3c/span\x3e\n                    \x3c/span\x3e\n                    "}).join(""):""}()+'\n                            \x3c/span\x3e\n                        \x3c/span\x3e\n                        \x3cspan class\x3d"tariff-popup__plan-group-sub"\x3e\n                            '+function(){var f="";if("de"!==h)if(!0===a.recommended&&!0===a.studentTariff)f=Granite.I18n.get("Young");else{if(!0===a.recommended||!0===a.studentTariff)f=Granite.I18n.get("Samsung online exclusive")}else!0===a.studentTariff?
f=Granite.I18n.get("Young"):!0===a.exclusive&&!0!==a.studentTariff&&(f=Granite.I18n.get("Samsung online exclusive"));return"de"===h&&""!==f?'\x3cspan class\x3d"tariff-popup__plan-suggest-flag"\x3e'+f+"\x3c/span\x3e":""}()+"\n                            "+function(){var f=[];if("au"!==h&&null!=a.pricing&&!y){var l=f.push,m="";"fr"==h&&n.isNotEmpty(a.pricing.promotions)&&n.isNotEmpty(a.pricing.promotions[0].monthly_rate.value)?m=Granite.I18n.get("Starting from")+" "+Granite.I18n.get("{0}/month",currencyComma(a.pricing.promotions[0].monthly_rate.value,
r)):null!=a.pricing.promotion_monthly_rate?m=currencyComma(a.pricing.promotion_monthly_rate.value,r)+"/"+Granite.I18n.get("month"):null!=a.pricing.monthly_rate&&(m=currencyComma(a.pricing.monthly_rate.value,r)+"/"+Granite.I18n.get("month"));"uk"===h&&(m+="*");l.call(f,'\x3cspan class\x3d"tariff-popup__plan-price-title"\x3e'+m+"\x3c/span\x3e")}if("au"===h)l=parseInt(b(".pd-buying-price__cta a").attr("data-discountprice"))-a.discount,f.push('\x3cspan class\x3d"tariff-popup__plan-price-title"\x3e'+currencyComma(a.pricing.monthly_rate.value,
r)+"/mo over "+a.term+"\x3c/span\x3e"),f.push('\x3cspan class\x3d"tariff-popup__plan-price-unit"\x3eDevice cost with discount '+currencyComma(l,r)+"\x3c/span\x3e"),f.push('\x3cspan class\x3d"tariff-popup__plan-price-post-pay"\x3e'+a.term+" Months Contract\x3c/span\x3e");else if(y)B="no"!=h||"no"==h&&0<a.features.tariffhighlights.length&&n.isNotEmpty(a.features.tariffhighlights[0].description)?"*":"",n.isNotEmpty(a.pricing.promotions)&&n.isNotEmpty(a.pricing.promotions[0].monthly_rate.value)?(parseFloat(a.pricing.promotions[0].monthly_rate.value)<
parseFloat(a.pricing.monthly_rate.value)&&f.push('\x3cdel class\x3d"tariff-popup__plan-price-prev"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+"/"+Granite.I18n.get("month")+"\x3c/del\x3e"),f.push('\x3cspan class\x3d"tariff-popup__plan-price-title"\x3e'+currencyComma(a.pricing.promotions[0].monthly_rate.value,r)+"/"+Granite.I18n.get("month")+B+"\x3c/span\x3e")):f.push('\x3cspan class\x3d"tariff-popup__plan-price-title"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+"/"+Granite.I18n.get("month")+
B+"\x3c/span\x3e"),0<a.features.tariffhighlights.length&&n.isNotEmpty(a.features.tariffhighlights[0].description)&&f.push('\n                    \x3cspan class\x3d"tariff-popup__plan-price-desc-wrap"\x3e\n                        \x3cspan class\x3d"tariff-popup__plan-price-desc"\x3e'+a.features.tariffhighlights[0].description+"\x3c/span\x3e\n                    \x3c/span\x3e\n                    ");else if("uk"==h?f.push('\x3cspan class\x3d"tariff-popup__plan-price-unit"\x3e'+Granite.I18n.get("onetime device price")+
" "+currencyComma(a.upfrontAmount,r)+"\x3c/span\x3e"):"fr"==h?f.push('\x3cspan class\x3d"tariff-popup__plan-price-unit"\x3e'+Granite.I18n.get("device price")+"\x3cstrong\x3e -"+currencyComma(a.discount,r)+"\x3c/strong\x3e\x3c/span\x3e"):f.push('\x3cspan class\x3d"tariff-popup__plan-price-unit"\x3e'+currencyComma(a.upfrontPrice,r)+" "+Granite.I18n.get("onetime device price")+"\x3c/span\x3e"),"de"!=h&&"au"!==h||null==a.pricing.promotion_monthly_rate||(l=a.pricing.promotion_tenure.value,m=Granite.I18n.get(a.pricing.promotion_tenure.unit),
f.push('\x3cspan class\x3d"tariff-popup__plan-price-post-pay"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+" "+Granite.I18n.get("After this")+" "+l+" "+m+"\x3c/span\x3e")),"uk"!=h&&null!=a.pricing.connection_fee&&f.push('\x3cspan class\x3d"tariff-popup__plan-price-single"\x3e'+currencyComma(a.pricing.connection_fee.value,r)+" "+Granite.I18n.get("onetime connection price")+"\x3c/span\x3e"),"uk"===h||"fr"==h)"fr"==h&&f.push('\x3cspan class\x3d"tariff-popup__plan-price-single"\x3e'+Granite.I18n.get("Free delivery")+
"\x3c/span\x3e"),f.push('\x3cspan class\x3d"tariff-popup__plan-price-single"\x3e'+Granite.I18n.get("24 Months Contract")+"\x3c/span\x3e");return f.join("")}()+"\n                            "+function(){var f=[];if("uk"!==h&&"au"!==h&&!y){var l="";null!=a.legal!=null&&null!=a.legal.info&&(l=a.legal.info);""!==l&&("fr"==h?f.push('\x3ca href\x3d"'+l+'" title\x3d"PDF link(Opens in a new window)" title\x3d"'+Granite.I18n.get("Open in a new window")+'" target\x3d"_blank"\x3e'+Granite.I18n.get("See more")):
f.push('\x3ca href\x3d"'+l+'" title\x3d"PDF link(Opens in a new window)" target\x3d"_blank"\x3e'+Granite.I18n.get("Learn more")),f.push('\n                        \x3csvg class\x3d"icon"\x3e\n                            \x3cuse xlink:href\x3d"#launch-bold" href\x3d"#launch-bold"\x3e\x3c/use\x3e\n                        \x3c/svg\x3e\n                    '),f.push("\x3c/a\x3e"))}("uk"===h||"au"===h)&&a.features&&(a.features.tarifhighlights&&0<a.features.tarifhighlights.length||a.features.outOfBundleCharges)&&
f.push('\x3cbutton class\x3d"tariff-popup__plan-see-more-info" data-plan-title\x3d"'+a.name+'" data-tariff-sku\x3d"'+a.id+'" an-tr\x3d"header(pim)_service option selector tariff-'+E+'-text-button" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"tariff:step1:See More"\x3e'+Granite.I18n.get("See More",null,h)+"\x3c/button\x3e");return f.join("")}()+"\n                        \x3c/span\x3e\n                    \x3c/span\x3e\n                \x3c/span\x3e\n            \x3c/label\x3e\n        \x3c/div\x3e        \n        "}
function ka(){var a="true"===b("#isEppPage").val()?b("#eppCompanyCode").val():h,d="";b("#shopParmLang").val()&&(d="?lang\x3d"+b("#shopParmLang").val());b.ajax({url:N+"/tokocommercewebservices/v2/"+a+"/tnc"+d,type:"GET",dataType:"json",data:{context:"SIMPLAN",value:"plan_disclaimer"},xhrFields:{withCredentials:!0},crossDomain:!0,async:!0,success:function(c){if(c&&0<c.length){c=$jscomp.makeIterator(c);for(var e=c.next();!e.done;e=c.next())e=e.value,"uk_carrier_plan_detail"!==e.code&&"uk_carrier_choose_plan"!==
e.code||!e.content||F.push(e.content)}}})}function la(a){var d=!1,c="plan_disclaimer";"de"!==h&&"au"!==h||!n.isNotEmpty(a.provider)||(c=a.provider,"de"===h&&(d=!0,window.sg.components.dynamic.detailSharedObj.tariffServiceId=a.id));y&&n.isNotEmpty(a.carrier)&&(c=a.carrier,y&&(c=a.carrier+"_"+h.toUpperCase(),"dk"==h&&(c=c.toUpperCase())));b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__checkbox-wrap").html("");d&&"RENEWAL_CONTRACT"===a.use_case&&(c+="_renewal_contract");a={context:"SIMPLAN",
value:c};z&&(a={context:"BROADBANDPLAN",value:c});c="true"===b("#isEppPage").val()&&"au"!==h?b("#eppCompanyCode").val():h;b("#shopParmLang").val()&&(a.lang=b("#shopParmLang").val());b.ajax({url:N+"/tokocommercewebservices/v2/"+c+"/tnc",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!0,data:a,success:function(e){var g="",k=!1;if(null!=e&&0<e.length){for(var f="",l=0,m=0;m<e.length;m++){var q=e[m];if(null!=q)if(q.read_only)f+='\t\x3cp class\x3d"tariff-popup__checkbox-read-only"\x3e'+
q.content+"\x3c/p\x3e";else{var p=e[m].code,v=q.required?"tariff-popup__checkbox--required":"",u=q.required?"required":"";""!==v&&(k=!0);f+='\x3cdiv class\x3d"tariff-popup__checkbox '+v+'"\x3e';f+='\t\x3cinput type\x3d"checkbox" name\x3d"tariff_chk" class\x3d"hidden" id\x3d"tariff_chk'+l+'" data-id\x3d"'+p+'" '+u+"\x3e";f+='\t\x3clabel class\x3d"checkbox-v2__label tariff-popup__checkbox-label" for\x3d"tariff_chk'+l+'"\x3e';f+='\t\t\x3cspan class\x3d"checkbox-v2__label-box-wrap tariff-popup__checkbox-box"\x3e';
f+='\t\t\t\x3cspan class\x3d"checkbox-v2__label-box"\x3e';f+='\t\t\t\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false"\x3e';f+='\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e';f+="\t\t\t\x3c/svg\x3e";f+="\t\t\x3c/span\x3e";f+="\t\x3c/span\x3e";f+=q.content;f+="\x3c/label\x3e";f+="\x3c/div\x3e";l++}}0<f.length&&(g+='\x3cstrong class\x3d"tariff-popup__checkbox-title"\x3e'+Granite.I18n.get("Check Terms and Conditions")+"\x3c/strong\x3e",g+=f)}k&&(g+=
'\x3cp class\x3d"tariff-popup__checkbox-required-message"\x3e'+Granite.I18n.get("* Required field")+"\x3c/p\x3e");b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__checkbox-wrap").html(g);e=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__checkbox-wrap").find("input[type\x3d'checkbox']");var w=!0;0<e.length&&e.each(function(){var D=b(this);D.prop("required")&&(w=w&&D.is(":checked"))});w?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").removeClass("cta--disabled").removeAttr("disabled"):
b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").addClass("cta--disabled").attr("disabled","disabled")},error:function(e){errLayerPop(e);b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").removeClass("cta--disabled").removeAttr("disabled")}})}function ma(a){function d(l){if(z)switch(l){case "Filters":return"";case "Technology":case "Customer_type":return Granite.I18n.get(l)}return l}O(a);var c="";null!=a.images&&(c=null!=a.images.large_image?
a.images.large_image.url:a.images.small_image.url);y&&n.isNotEmpty(a.medias)&&(c=a.medias.url);b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected").attr("data-index",b(".tariff-popup .tariff-popup__radio.tariff-popup__radio--checked").attr("data-index"));b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-img img").attr("src",c);"fr"!=h&&b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-name").html(a.name);
null!=a.upfrontPrice?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-total-price").html(currencyComma(a.upfrontPrice,r)):b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-total-price").html("");if(-1!==b.inArray(h,["de","fr"])){var e="",g="";if(null!=a.features&&null!=a.features.tariffFeatures){var k=a.features.tariffFeatures;for(c=0;c<k.length;c++){e+='\x3cdiv class\x3d"tariff-popup__table-title"\x3e';e+="\t\x3cstrong\x3e"+d(k[c].id)+"\x3c/strong\x3e";
e+="\x3c/div\x3e";for(var f=0;f<k[c].values.length;f++)e+='\x3cdiv class\x3d"tariff-popup__table-list"\x3e',e+='\t\x3cspan class\x3d"tariff-popup__table-list-item-title"\x3e'+d(k[c].values[f].key)+"\x3c/span\x3e",e+='\t\x3cspan class\x3d"tariff-popup__table-list-item-price"\x3e'+k[c].values[f].value+"\x3c/span\x3e",e+="\x3c/div\x3e"}}if(null!=a.legal&&null!=a.legal.finePrint)for(c=0;c<a.legal.finePrint.length;c++)g+=a.legal.finePrint[c];b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__table-inner").html(e);
c="";0<g.length&&(c+='\x3cdiv class\x3d"tariff-popup__table-disclaimer-cta"\x3e',c="fr"==h?c+'\t\x3cbutton class\x3d"cta-close" type\x3d"button"\x3e \x3csvg class\x3d"disclaimer-icon open-down" focusable\x3d"false" aria-hidden\x3d"true"\x3e':c+('\t\x3cbutton class\x3d"cta-close" type\x3d"button"\x3e'+Granite.I18n.get("View All Plan Details")+'\x3csvg class\x3d"disclaimer-icon open-down"\x3e'),c+='\t\t\x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\t\t\x3c/svg\x3e\t\x3c/button\x3e',
c="fr"==h?c+'\t\x3cbutton class\x3d"cta-open" type\x3d"button"\x3e \x3csvg class\x3d"disclaimer-icon close-up" focusable\x3d"false" aria-hidden\x3d"true"\x3e':c+('\t\x3cbutton class\x3d"cta-open" type\x3d"button"\x3e'+Granite.I18n.get("Close All Plan Details")+'\x3csvg class\x3d"disclaimer-icon close-up"\x3e'),c=c+'\t\t\x3cuse xlink:href\x3d"#close-up-bold" href\x3d"#close-up-bold"\x3e\x3c/use\x3e\t\t\x3c/svg\x3e\t\x3c/button\x3e\x3c/div\x3e\x3cdiv class\x3d"tariff-popup__table-disclaimer-content"\x3e '+
(g+"\x3c/div\x3e"));b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__table-disclaimer").html(c)}g="";e=!1;if("de"==h&&null!=a.bundlePlans)for(g+='\x3cstrong class\x3d"tariff-popup__selected-add-opt-title"\x3e'+Granite.I18n.get("Additional Tariff Options")+"\x3c/strong\x3e",c=0;c<a.bundlePlans.length;c++)a.bundlePlans[c].active&&(g+='\x3cdiv class\x3d"tariff-popup__checkbox tariff-popup__selected-add-opt-checkbox"\x3e',g+='\t\x3cinput type\x3d"checkbox" name\x3d"checkbox" class\x3d"hidden" id\x3d"tariff_spec_chk'+
c+'" dataindex\x3d'+c+"\x3e",g+='\t\x3clabel class\x3d"checkbox-v2__label tariff-popup__checkbox-label" for\x3d"tariff_spec_chk'+c+'"\x3e',g+='\t\t\x3cspan class\x3d"checkbox-v2__label-box-wrap tariff-popup__checkbox-box"\x3e',g+='\t\t\t\x3cspan class\x3d"checkbox-v2__label-box"\x3e',g+='\t\t\t\t\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false"\x3e',g+='\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e',g+="\t\t\t\t\x3c/svg\x3e",g+="\t\t\t\x3c/span\x3e",
g+="\t\t\x3c/span\x3e",g+="\t\t\x3cp\x3e"+a.bundlePlans[c].bundleSummary,g+="\t\t\x3c/p\x3e",g+="\t\x3c/label\x3e",g+="\x3c/div\x3e",e=!0);e?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-add-opt").html(g):b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-add-opt").html("");"uk"===h&&P(a.carrier,2)}function P(a,d){1===d?b(".tariff-popup__choose-panel .tariff-popup__legal-text").html(""):b(".tariff-popup__contents-plan-selected .tariff-popup__extra-text").html("")}
function O(a){"uk"===h&&(b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").attr("data-modelcode",Z+","+a.model_code),b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").attr("data-modeldisplay",aa+";"+a.model_code),b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").attr("data-modelname",ba+","+a.model_code));b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-header .tariff-popup__selected-spec-name").html(a.name);
b(".tariff-popup .tariff-popup__contents-plan-selected").attr("data-index",a.id);if(n.isNotEmpty(a.pricing)){var d="";"fr"==h&&n.isNotEmpty(a.pricing.promotions)&&n.isNotEmpty(a.pricing.promotions[0].monthly_rate.value)?d=Granite.I18n.get("starting from")+" "+Granite.I18n.get("{0}/month",currencyComma(a.pricing.promotions[0].monthly_rate.value,r)):n.isNotEmpty(a.pricing.promotion_monthly_rate)?d=currencyComma(a.pricing.promotion_monthly_rate.value,r)+"/"+Granite.I18n.get("month"):n.isNotEmpty(a.pricing.monthly_rate)&&
(d=currencyComma(a.pricing.monthly_rate.value,r)+"/"+Granite.I18n.get("month"));"uk"===h&&(d+="*");b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-header .tariff-popup__selected-spec-value").html(d)}if("au"===h){b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-header .tariff-popup__selected-spec-value").html(currencyComma(a.pricing.monthly_rate.value,r)+"/mo over "+a.term+" months");d=b(".pd-buying-price__cta a").attr("data-discountprice");
var c=parseInt(d)-a.discount;c=[{title:"Device Price",value:currencyComma(d,r)},{title:"SIM discount",value:currencyComma(a.discount,r)},{title:"You pay now (total)",value:currencyComma(c,r)},{title:"The connection price and monthly tariff price are collected by the respective network provider. You now only pay the one-time device price.",value:""}];d="";c=$jscomp.makeIterator(c);for(var e=c.next();!e.done;e=c.next())e=e.value,d+='\x3cli class\x3d"tariff-popup__selected-spec-item"\x3e\n\t\t\t\t                \x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+
e.title+'\x3c/span\x3e\n\t\t\t\t                \x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+e.value+"\x3c/div\x3e\n\t\t\t\t            \x3c/li\x3e";b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-desc ul").html(d)}y&&(B="no"!=h||"no"==h&&0<a.features.tariffhighlights.length&&n.isNotEmpty(a.features.tariffhighlights[0].description)?"*":"",n.isNotEmpty(a.pricing.promotions)&&n.isNotEmpty(a.pricing.promotions[0].monthly_rate.value)?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-header .tariff-popup__selected-spec-value").html(currencyComma(a.pricing.promotions[0].monthly_rate.value,
r)+"/"+Granite.I18n.get("month")+B):b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-header .tariff-popup__selected-spec-value").html(currencyComma(a.pricing.monthly_rate.value,r)+"/"+Granite.I18n.get("month")+B));c="";e=a.upfrontPrice;"uk"===h&&(e=a.upfrontAmount);"de"==h&&(null==H||null!=a.upfrontPrice&&void 0!==a.upfrontPrice&&"undefined"!==a.upfrontPrice||(e=H));d='\x3cli class\x3d"tariff-popup__selected-spec-item""\x3e';"fr"==h?(d+='\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+
Granite.I18n.get("Discount")+"\x3c/span\x3e",d+='\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e\x3cstrong\x3e -'+currencyComma(a.discount,r)+"\x3c/strong\x3e\x3c/div\x3e"):(d+='\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+Granite.I18n.get("Device price (one time)")+"\x3c/span\x3e",d+='\t\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(e,r)+"\x3c/div\x3e");d+="\x3c/li\x3e";if((e=n.isNotEmpty(a.pricing))&&"fr"!=h)d=d+'\x3cli class\x3d"tariff-popup__selected-spec-item""\x3e\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+
(Granite.I18n.get("Tariff (monthly)")+"\x3c/span\x3e"),n.isNotEmpty(a.pricing.promotion_monthly_rate)?d+='\t\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.promotion_monthly_rate.value,r)+"\x3c/div\x3e":n.isNotEmpty(a.pricing.monthly_rate)&&(d+='\t\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+"\x3c/div\x3e"),d+="\x3c/li\x3e";else if(e&&"fr"==h){c=c+'\x3cdiv class\x3d"tariff-popup__selected-spec-desc"\x3e\x3cstrong class\x3d"tariff-popup__selected-spec-name"\x3e'+
(Granite.I18n.get("With SIM porting")+"\x3c/strong\x3e");c+='\x3cul class\x3d"tariff-popup__selected-spec-list"\x3e';if(n.isNotEmpty(a.pricing.promotions))for(e=0;e<a.pricing.promotions.length;e++)c+='\x3cli class\x3d"tariff-popup__selected-spec-item"\x3e',c+='\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+Granite.I18n.get("Monthly rate for first 12 months")+"\x3c/span\x3e",c+='\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.promotions[e].monthly_rate.value,
r)+"\x3c/div\x3e",c+="\x3c/li\x3e";n.isNotEmpty(a.pricing.monthly_rate.value)&&(c=c+'\x3cli class\x3d"tariff-popup__selected-spec-item"\x3e\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+(Granite.I18n.get("Monthly rate starting month 13")+"\x3c/span\x3e"),c+='\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+"\x3c/div\x3e",c+="\x3c/li\x3e");c+="\x3c/ul\x3e\x3c/div\x3e";n.isNotEmpty(a.pricing.monthly_rate.value)&&(c=c+'\x3cdiv class\x3d"tariff-popup__selected-spec-desc"\x3e\x3cstrong class\x3d"tariff-popup__selected-spec-name"\x3e'+
(Granite.I18n.get("Without SIM porting")+"\x3c/strong\x3e"),c=c+'\x3cul class\x3d"tariff-popup__selected-spec-list"\x3e\x3cli class\x3d"tariff-popup__selected-spec-item"\x3e\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+(Granite.I18n.get("Monthly rate")+"\x3c/span\x3e"),c+='\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+"\x3c/div\x3e",c+="\x3c/li\x3e\x3c/ul\x3e\x3c/div\x3e")}"de"==h&&null!=a.pricing.promotion_monthly_rate&&(d=
d+'\x3cli class\x3d"tariff-popup__selected-spec-item""\x3e\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+(Granite.I18n.get("After this")+" "+a.pricing.promotion_tenure.value+" "+Granite.I18n.get(a.pricing.promotion_tenure.unit)+"\x3c/span\x3e"),d+='\t\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.monthly_rate.value,r)+"\x3c/div\x3e",d+="\x3c/li\x3e");"fr"!=h&&(d=d+'\x3cli class\x3d"tariff-popup__selected-spec-item""\x3e\t\x3cspan class\x3d"tariff-popup__selected-spec-title"\x3e'+
(Granite.I18n.get("Connection fee (one off)")+"\x3c/span\x3e"),"uk"===h?d+='\t\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e\x3c/div\x3e':n.isNotEmpty(a.pricing)&&n.isNotEmpty(a.pricing.connection_fee)&&(d+='\t\x3cdiv class\x3d"tariff-popup__selected-spec-price"\x3e'+currencyComma(a.pricing.connection_fee.value,r)+"\x3c/div\x3e"),d+="\x3c/li\x3e");"au"===h||y?y?0<a.features.tariffhighlights.length&&n.isNotEmpty(a.features.tariffhighlights[0].description)?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-desc").html("\x3cp\x3e"+
a.features.tariffhighlights[0].description+"\x3c/p\x3e"):b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-desc").html(""):n.isNotEmpty(a.description)?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-desc").html("\x3cp\x3e"+a.description+"\x3c/p\x3e"):b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-desc").html(""):(b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec-desc .tariff-popup__selected-spec-list").html(d),
"fr"==h&&(b(".tariff-popup__contents-plan-selected .tariff-popup__selected-spec .tariff-popup__selected-spec-desc .tariff-popup__selected-spec-name").closest(".tariff-popup__selected-spec-desc").html(""),b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-spec").append(c)))}function ca(a){da(function(){var w=[{name:Granite.I18n.get("New Contracts")}];"uk"==h?w.push({name:"Upgrade Deals",isTooltipShow:!0}):"de"==h&&w.push({name:Granite.I18n.get("Renewal Contracts"),isTooltipShow:!0});
return w}());var d="",c="",e="",g="",k="de"===h||"uk"===h?!0:!1;if(0<x.length)for(var f=0;f<x.length;f++){var l=t[x[f]],m=!1,q=!1,p="";if(k)if("uk"===h)for(p=0;p<l.length;p++){if(l[p].features){var v=l[p].features.use_case;void 0===v&&(v="UC100");"UC100"===v?m=!0:"UC300"===v&&(q=!0)}}else{if("de"===h)for(p=0;p<l.length;p++)v=n.isNotEmpty(l[p].tariffType)?l[p].tariffType:"NEW_CONTRACT","NEW_CONTRACT"===v?m=!0:"RENEWAL_CONTRACT"===v&&(q=!0)}else m=!0;m&&(p="de"===h?"NEW_CONTRACT":"UC100",d+=Q(x[f],
f,l[0].medias.url),e+=ea(x[f],f,p));q&&(p="de"===h?"RENEWAL_CONTRACT":"UC300",c+=Q(x[f],f,l[0].medias.url),g+=ea(x[f],f,p))}""===c?b("#choose-tab-2").closest(".tariff-popup__choose-item").hide():b("#choose-tab-2").closest(".tariff-popup__choose-item").show();b(".tariff-popup .tariff-popup__contents-plan #choose-content-1 .tariff-popup__tab-list").html(d);b(".tariff-popup .tariff-popup__contents-plan #choose-content-2 .tariff-popup__tab-list").html(c);b(".tariff-popup .tariff-popup__contents-plan #choose-content-1 .tariff-popup__tab-panel").html(e);
b(".tariff-popup .tariff-popup__contents-plan #choose-content-2 .tariff-popup__tab-panel").html(g);if("uk"===h)for(d=$jscomp.makeIterator(R),c=d.next();!c.done;c=d.next())c=c.value,c.name===x[0]&&(b(".tariff-popup .tariff-popup__network-info a").attr("href",c.href),P(c.name,1));b(".tariff-popup .tariff-popup__close").attr("an-la","tariff:step1:close");window.sg.components.tariffPopup.showPopup();if(z){var u={tabList:[],filterFn:M("Technology"),getName:function(w){return w.replace("-Tarife","")}};
u.tabList=S(b.map(G(fa(t)),u.filterFn));0==u.tabList.length&&(u.filterFn=function(w){return w.tariffType},u.getName=function(w){return w},u.tabList=S(b.map(G(fa(t)),u.filterFn)));da(b.map(u.tabList,function(w){return{name:u.getName(w)}}));d=na(u,x,t);oa(u,d);I("hide");b(".tariff-popup").addClass("vd-tariff-popup");"Y"==a?(b(".tariff-popup .tariff-popup__contents-plan").find(".tariff-popup__btn-close").hide().end().find(".tariff-popup__btn-prev").show(),b(".tariff-popup .tariff-popup__contents-plan, .tariff-popup .tariff-popup__contents-plan-selected").find(".tariff-popup__step, .tariff-popup__step-progress").show().end().find(".tariff-popup__header .tariff-popup__desc").text(Granite.I18n.get("Now you get innovative smartphone with right tariff plan. Broadband")),
b(".tariff-popup .tariff-popup__contents-plan-selected").find(".tariff-popup__header .tariff-popup__icon").hide(),b(".tariff-popup .tariff-popup__contents-plan .tariff-popup__filter").each(function(){b(".checkbox-v2__input",b(this)).prop("checked",!1).filter(":eq(0)").prop("checked",!0).trigger("change")}),window.sg.components.tariffPopup.reInit()):(b(".tariff-popup .tariff-popup__contents-form .text-field-v2__input").each(function(){J(this,"hide");b(this).val("")}),ha(),C(!0,".tariff-popup__contents-form"),
window.sg.components.tariffPopup.reInit(2))}else a=Granite.I18n.get("Now you get innovative smartphone with right tariff plan."),pa.startsWith("01")&&(a=Granite.I18n.get("Now you get innovative smartphone with right tariff plan. MX")),b(".tariff-popup").removeClass("vd-tariff-popup"),b(".tariff-popup .tariff-popup__contents-plan").find(".tariff-popup__btn-close").show().end().find(".tariff-popup__btn-prev").hide(),b(".tariff-popup .tariff-popup__contents-plan, .tariff-popup .tariff-popup__contents-plan-selected").find(".tariff-popup__step, .tariff-popup__step-progress").hide().end().find(".tariff-popup__header .tariff-popup__desc").text(a),
b(".tariff-popup .tariff-popup__contents-plan-selected").find(".tariff-popup__header .tariff-popup__icon").show(),window.sg.components.tariffPopup.reInit()}function na(a,d,c){carrierByType={};b.each(a.tabList,function(e,g){carrierByType[g]={}});b.each(d,function(e,g){if("topTariff"!=g){var k=b.map(c[g],function(f,l){return b.extend({originIndex:l},f)});b.each(a.tabList,function(f,l){f=b.grep(k,function(m){m=a.filterFn(m);return-1!==b.inArray(l,Array.isArray(m)?m:[m])});0<f.length&&(carrierByType[l][g]=
f)})}});return carrierByType}function oa(a,d){b.each(a.tabList,function(c,e){b(".tariff-popup .tariff-popup__contents-plan #choose-content-"+(c+1)+" .tariff-popup__tab-list").html(b.map(T(d[e]),function(g,k){return Q(g,k,d[e][g][0].medias.url)}).join(""));b(".tariff-popup .tariff-popup__contents-plan #choose-content-"+(c+1)+" .tariff-popup__tab-panel").html(b.map(T(d[e]),function(g,k){var f=b.map(d[e][g],M("Customer_type"));0<b.grep(f,function(l,m){return"Normal"===l}).length&&f.unshift("Normal");
f=S(f);return'\n\t\t\t\t\t\t\x3cdiv id\x3d"'+g+"-"+k+'" role\x3d"tabpanel" aria-labelledby\x3d"tab-'+k+'" aria-hidden\x3d"true" tabindex\x3d"-1" class\x3d"tariff-popup__tab-panel-item"\x3e\n\t\t\t\t\t\t\t'+qa(e,g,f)+'\n\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__radio-wrap"\x3e\n\t\t\t\t\t\t\t'+b.map(d[e][g],function(l){return Y(l,l.originIndex,g)}).join("")+"\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"}).join(""))})}function M(a){return function(d){features=b.extend({tariffFeatures:[]},
d.features);d=G(b.map(b.grep(features.tariffFeatures,function(c){return"Filters"==c.id}),function(c){return c.values}));return b.map(b.grep(d||[],function(c){return c.key==a}),function(c){return c.value})}}function da(a){b(".tariff-popup .tariff-popup__contents-plan .tariff-popup__choose .tariff-popup__choose-item").remove();b(".tariff-popup .tariff-popup__contents-plan .tariff-popup__choose").html(ra(a));b(".tariff-popup .tariff-popup__contents-plan .tariff-popup__choose-panel").remove();b(".tariff-popup .tariff-popup__contents-plan .tariff-popup__choose:last").after(sa(a))}
function ra(a){return b.map(a,function(d,c){c='\n\t\t\t\x3cdiv class\x3d"tariff-popup__choose-item" role\x3d"presentation"\x3e\n\t\t\t\t\x3ca href\x3d"javascript:;" id\x3d"choose-tab-'+(c+1)+'" class\x3d"tariff-popup__choose-item-btn" role\x3d"tab" aria-selected\x3d"false"\x3e'+d.name+"\x3c/a\x3e\n\t\t\t\t";d=d.isTooltipShow?'\n\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__choose-tooltip"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__choose-tooltip__btn-wrap"\x3e\n\t\t\t\t\t\t\t\x3cbutton type\x3d"button" class\x3d"tariff-popup__choose-tooltip__btn" aria-expanded\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon help" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#help-regular" href\x3d"#help-regular"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon cancel" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#cancel-bold" href\x3d"#cancel-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\x3cspan class\x3d"hidden"\x3esee what this\x3c/span\x3e\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"tariff-popup__choose-tooltip__arrow"\x3e\x3c/span\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__choose-tooltip__box" role\x3d"tooltip"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"tariff-popup__choose-tooltip__box-arrow"\x3e\x3c/span\x3e\n\t\t\t\t\t\t\t\x3cp class\x3d"tariff-popup__choose-tooltip__box-desc"\x3e'+
Granite.I18n.get("Stay with your network operator.")+"\x3c/p\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":"";return c+d+"\n\t\t\t\x3c/div\x3e\n\t\t\t"}).join("")}function sa(a){return b.map(a,function(d,c){d='\n\t\t\t\t\x3cdiv id\x3d"choose-content-'+(c+1)+'" class\x3d"tariff-popup__choose-panel" role\x3d"tabpanel" aria-labelledby\x3d"choose-tab-'+(c+1)+'" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-wrap"\x3e\n\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-list-wrap"\x3e\n\t\t\t\t\t\t\t\x3cbutton role\x3d"button" class\x3d"tariff-popup__tab-list-prev" style\x3d"display:none;"\x3e prev \x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#previous-bold" href\x3d"#previous-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-list-area"\x3e\n\t\t\t\t\t\t\t\t\x3c!--/* UK, SE \uacbd\uc6b0 Tab Divider \ub97c \uc228\uae30\uae30 \uc704\ud574 .hide-divider \ucd94\uac00 /*--\x3e\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-list'+
("uk"==h||"se"==h||"no"==h?" hide-divider":"")+'" role\x3d"tablist"\x3e\n\t\t\t\t\t\t\t\t'+(0==c?'  \n\t\t\t\t\t\t\t\t\t\t\t\x3cdiv role\x3d"presentation" class\x3d"tariff-popup__tab-item-wrap"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3ca href\x3d"javascript:void(0);" class\x3d"tariff-popup__tab-item"\x3e\n\t\t\t\t\t\t\t\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t\t\t':"")+'\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\x3cbutton role\x3d"button" class\x3d"tariff-popup__tab-list-next"\x3e Next \x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#next-bold" href\x3d"#next-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\n\t\t\t\t\t\t\t\x3c/button\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-list-gl-left"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-list-gl-right"\x3e\x3c/div\x3e\n\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t';
c=0==c&&"uk"==h?'\n\t\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__network-info"\x3e\n\t\t\t\t\t\t\t\t\t\x3ca href\x3d"#" aria-label\x3d"Network Coverage(opens in a new window)" target\x3d"_blank"\x3e\n\t\t\t\t\t\t\t\t\tNetwork Coverage\n\t\t\t\t\t\t\t\t\t\x3csvg class\x3d"icon" focusable\x3d"false"\x3e\n\t\t\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#outlink-bold" href\x3d"#outlink-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\t\t\t\t\t\x3c!-- \x3cp class\x3d"tariff-popup__network-info__text"\x3eYou can upgrade 30days before your contract ends (24 months from when you bought it).\x3c/p\x3e --\x3e\n\t\t\t\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t\t\t\t':
"";var e="uk"==h?'\x3cp class\x3d"tariff-popup__legal-text"\x3e\x3c/p\x3e':"";return d+c+'\n\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-panel-wrap"\x3e\n\t\t\t\t\t\t\t\x3cdiv class\x3d"tariff-popup__tab-panel"\x3e\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'+e+"\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\t\t\n\t\t\t"}).join("")}function qa(a,d,c){return 0==(c||[]).length?"":'\n\t\t\t\x3cdiv class\x3d"tariff-popup__filter is-active"\x3e\n\t\t\t\t\x3cbutton type\x3d"button" class\x3d"tariff-popup__filter-btn"\x3e\n\t\t\t\tf\u00fcr :\n\t\t\t\t\x3csvg class\x3d"tariff-popup__filter-icon down" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\x3cuse xlink:href\x3d"#open-down-bold" href\x3d"#open-down-bold"\x3e\x3c/use\x3e\n\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3csvg class\x3d"tariff-popup__filter-icon up" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\x3cuse xlink:href\x3d"#close-up-bold" href\x3d"#close-up-bold"\x3e\x3c/use\x3e\n\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\x3c/button\x3e\n\t\t\t\t\x3cdiv class\x3d"tariff-popup__filter-list"\x3e\n\t\t\t\t'+
b.map(c,function(e,g){return'\n\t\t\t\t\t\x3cdiv class\x3d"checkbox-v2"\x3e\n\t\t\t\t\t\t\x3cinput class\x3d"checkbox-v2__input" type\x3d"checkbox" name\x3d"'+a+"-"+d+'-checkbox" id\x3d"'+a+"-"+d+"-checkbox-2-"+(g+1)+'" value\x3d"'+e+'"\x3e\n\t\t\t\t\t\t\x3clabel class\x3d"checkbox-v2__label" for\x3d"'+a+"-"+d+"-checkbox-2-"+(g+1)+'"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-box-wrap"\x3e\n\t\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-box"\x3e\n\t\t\t\t\t\t\t\x3csvg class\x3d"checkbox-v2__label-box-icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\n\t\t\t\t\t\t\t\t\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\n\t\t\t\t\t\t\t\x3c/svg\x3e\n\t\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"checkbox-v2__label-text"\x3e'+
e+"\x3c/span\x3e\n\t\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\t"}).join("")+"\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/div\x3e\n\t\t"}function T(a){var d=[],c;for(c in a)d.push(c);return d}function fa(a){var d=[],c;for(c in a)d.push(a[c]);return d}function G(a){return function g(c,e){b.each(c,function(k,f){Array.isArray(f)?g(f,e):e.push(f)});return e}(a,[])}function S(a){return b.grep(a,function(d,c){return a.indexOf(d)===c})}function C(a,d){d=d||".tariff-popup__contents-form";a?b(".tariff-popup "+
d+" .tariff-popup__btn-next").addClass("cta--disabled").prop("disabled",!0):b(".tariff-popup "+d+" .tariff-popup__btn-next").removeClass("cta--disabled").prop("disabled",!1)}function ha(){var a=b(".tariff-popup__form-list .menu");a.parent().hide();b(".menu__select",a).empty();window.sg.common.menu.reInit(a.get(0))}function U(a){a=a.data("addressSuggestion")||{};for(var d in a){var c=b(".tariff-popup .tariff-popup__contents-form .text-field-v2__input[name\x3d"+d+"]").val(a[d]);0<c.length&&ia(c);c.closest(".text-field-v2").addClass("active delete")}}
function ia(a){C(!1,".tariff-popup__contents-form");var d="houseNumberAddition"==b(a).attr("name")?{afterShow:function(c,e){e.attr("aria-hidden","false")},afterHide:function(c,e){e.attr("aria-hidden","true")}}:{};V[b(a).attr("name")](b(a).val()).done(function(){J(a,"hide",void 0,d);0<b(".text-field-v2__text.error:visible",b(".tariff-popup .tariff-popup__contents-form")).not(b(a)).length?C(!0,".tariff-popup__contents-form"):C(!1,".tariff-popup__contents-form")}).fail(function(c){J(a,"show",c,d);C(!0,
".tariff-popup__contents-form")})}var n={isNotEmpty:function(a){return null==a||""===a?!1:"object"===typeof a?0<Object.keys(a).length:a?!0:!1}},h=b("#siteCode").val(),pa=b("#categoryTypeCode").val(),y="se"===h||"no"===h||"fi"===h||"dk"===h?!0:!1,r=b("#priceCurrency").val();b("#multiLanguageYn").val();var N="au"===h||y?b("#newHyvStoreDomain").val():b("#storeDomain").val(),W="",E="",t={},x=[],K=!1,L="",B="";y&&(B="*");var F=[],R=[{name:"o2",href:"https://www.o2.co.uk/coveragechecker"},{name:"three",
href:"https://www.three.co.uk/Discover/Network/Coverage#/"},{name:"vodafone",href:"https://maps.vodafone.co.uk/coveragecheckers/web/default.aspx?configuration\x3dpartner"}],ea=function(a,d,c){var e=t[a];d='\x3cdiv id\x3d"'+a+"-"+d+'" role\x3d"tabpanel" aria-labelledby\x3d"tab-'+d+'" aria-hidden\x3d"true" tabindex\x3d"-1" class\x3d"tariff-popup__tab-panel-item"\x3e\x3cdiv class\x3d"tariff-popup__radio-wrap"\x3e';for(var g=0;g<e.length;g++){var k=e[g];if("uk"===h){if(k.features&&k.features.use_case&&
k.features.use_case!==c)continue}else if("de"===h&&k.tariffType!==c)continue;d+=Y(k,g,a)}return d+"\x3c/div\x3e\x3c/div\x3e"},z=!1,ja=function(a){for(var d=0;d<a.length;d++){var c=a[d],e=c.tariffPlans;t[c.id]=[];for(var g=0;g<e.length;g++){var k=e[g];k.medias=[{url:"",altText:""}];null!=c.additionalCarrierInfo&&null!=c.additionalCarrierInfo.medias&&0<c.additionalCarrierInfo.medias.length&&(k.medias=c.additionalCarrierInfo.medias[0]);if(k.recommended&&"fr"!=h||"de"==h)null==t.topTariff&&(t.topTariff=
[]),t.topTariff.push(k);t[c.id].push(k)}x.push(c.id)}if("de"==h){for(var f in t)t[f].sort(function(l,m){return m.ranking?l.ranking-m.ranking:-1});for(f in t)t[f].sort(function(l,m){if(m.ranking==l.ranking&&n.isNotEmpty(m.pricing)&&n.isNotEmpty(m.pricing.monthly_rate)&&n.isNotEmpty(m.pricing.monthly_rate.value)&&n.isNotEmpty(l.pricing)&&n.isNotEmpty(l.pricing.monthly_rate)&&n.isNotEmpty(l.pricing.monthly_rate.value))return Number(l.pricing.monthly_rate.value)-Number(m.pricing.monthly_rate.value)});
t.topTariff&&t.topTariff.splice(5<=t.topTariff.length?5:t.topTariff.length)}null!=t.topTariff&&0<t.topTariff.length&&x.unshift("topTariff");d=[];for(c=0;c<x.length;c++)"topTariff"!=x[c]&&(e="",e=y?t[x[c]][0].medias.key:t[x[c]][0].medias.altText,d.push({imgUrl:t[x[c]][0].medias.url,imgAlt:e}));z||window.sg.components.dynamic.DetailAfterEvent.newHybrisDrawTariffOption(d,a,{isBroadbandService:z})},X=function(a,d){var c="true"===b("#isEppPage").val()?b("#eppCompanyCode").val():h,e="";b("#shopParmLang").val()&&
(e="?lang\x3d"+b("#shopParmLang").val());var g="";if(y||"au"===h||"uk"===h||"fr"===h){g="";var k=b("#gpvStoreDomain").val();"se"==h?g="swe":"no"==h?g="nor":"dk"==h?g="dnk":"au"==h?g="aus":"uk"===h?g="gbr":"fr"===h&&(g="fra");g=k+"/v4/carrier/api/"+g+"/"+c+"/sku/"+W+"/plans"+e}else g=N+"/tokocommercewebservices/v2/"+c+"/carriers/device/"+W+"/plans"+e;c={};z&&(c={url:g+(e?"\x26":"?")+"fields\x3dDEFAULT",type:"POST",timeout:2E4},d&&(c=b.extend({beforeSend:function(){window.sg.components.pdPageLoading.show()},
complete:function(){window.sg.components.pdPageLoading.hide()}},c)));return b.ajax(b.extend({url:g,type:"GET",dataType:"json",contentType:"application/json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!0,data:a},c))},Q=function(a,d,c){var e="";"topTariff"===a?(e=e+'\x3cdiv role\x3d"presentation" class\x3d"tariff-popup__tab-item-wrap"\x3e\t\x3ca href\x3d"jasvascript:void(0);" id\x3d"tab-'+(d+'" role\x3d"tab" aria-selected\x3d"false" aria-hidden\x3d"true" tabIndex\x3d"0" class\x3d"tariff-popup__tab-item" an-tr\x3d"header(pim)_service option selector tariff-'+
E+'-tab-select" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"tariff:select plan:'+a+'"\x3e'),e+="\t\t\x3cspan\x3e"+Granite.I18n.get("Top Tariff")+"\x3c/span\x3e",e+="\t\x3c/a\x3e\x3c/div\x3e"):(e=e+('\x3cdiv role\x3d"presentation" class\x3d"tariff-popup__tab-item-wrap" idx\x3d"'+d+'"\x3e\t\x3ca href\x3d"jasvascript:void(0);" id\x3d"tab-')+(d+'" role\x3d"tab" aria-selected\x3d"false" aria-hidden\x3d"true" tabIndex\x3d"0" class\x3d"tariff-popup__tab-item" aria-selected\x3d"true" an-tr\x3d"header(pim)_service option selector tariff-'+
E+'-tab-select" an-ca\x3d"option click" an-ac\x3d"pd buying tool" an-la\x3d"tariff:select plan:'+a+'"\x3e'),e+='\t\t\x3cimg src\x3d"'+c+'" alt\x3d""\x3e\t\x3c/a\x3e',e+="\x3c/div\x3e");return e},I=function(){var a=b(".tariff-popup .tariff-popup__contents-form .tariff-popup__validation-message"),d={500:Granite.I18n.get("Unfortunately, we cannot make you a DSL offer for the address you have checked.The address you have given is not unique, please choose from the address suggestions."),300:Granite.I18n.get("The address you entered is not unique, please choose from the address suggestions")},
c={show:"show",hide:"hide"};return function(e,g){e=e||"";g=g||"";if("300"==e||"500"==e)g=e,e="show";b(".tariff-popup__validation-message-content \x3e p",a[c[e||""]?c[e]:"show"]()).text(d[g]||g)}}();b(document).on("click",".tariff-popup .tariff-popup__tab-item-wrap",function(a){if("uk"===h){a=b(this).attr("idx");a=x[a];for(var d=$jscomp.makeIterator(R),c=d.next();!c.done;c=d.next())c=c.value,c.name===a&&(b(".tariff-popup .tariff-popup__network-info a").attr("href",c.href),P(c.name,1))}});b(document).on("click",
".tariff-popup .tariff-popup__btn-next",function(a){if(z&&0<b(this).closest(":is(.tariff-popup__contents-form)").length){var d=!0;a=b(".tariff-popup .tariff-popup__contents-form .text-field-v2__input");a.each(function(){var e=this,g="houseNumberAddition"==b(e).attr("name")?{afterShow:function(k,f){f.attr("aria-hidden","false")},afterHide:function(k,f){f.attr("aria-hidden","true")}}:{};V[b(e).attr("name")](b(e).val()).fail(function(k){J(e,"show",k,g);C(!0,".tariff-popup__contents-form");d=!1})});if(d){var c=
[{key:"streetName",value:a.filter("[name\x3dstreetName]").val()},{key:"houseNumber",value:a.filter("[name\x3dhouseNumber]").val()},{key:"postCode",value:a.filter("[name\x3dpostCode]").val()},{key:"locality",value:a.filter("[name\x3dlocality]").val()}];n.isNotEmpty(a.filter("[name\x3dhouseNumberAddition]").val())&&c.push({key:"houseNumberAddition",value:a.filter("[name\x3dhouseNumberAddition]").val()});tariffData.BROADBAND_CACHE.paramObj=c;X(JSON.stringify(c),!0).done(function(e){e=e||{statusCode:"",
carriers:[]};ha();I("hide");switch(e.statusCode){case "300":if(0<(e.addressSuggestions||[]).length){var g=b(".tariff-popup__form-list .menu"),k=b.map(e.addressSuggestions,function(f,l){return b("\x3coption\x3e").val(l+1).text(f.streetName+" "+f.houseNumber+(f.houseNumberAddition?" "+f.houseNumberAddition:"")+", "+f.postCode+" "+f.locality).data("addressSuggestion",f)});g.parent().show();b(".menu__select",g).empty().append(k);window.sg.common.menu.reInit(g.get(0))}I("show",e.statusCode);return;case "500":I("show",
e.statusCode);return;case "503":errLayerPop({responseJSON:{message:Granite.I18n.get("Service is not available now. Please retry later.")}});return}0>=(e.carriers||[]).length?errLayerPop({responseJSON:{message:Granite.I18n.get("Bitte gib eine korrekte information ein")}}):(t={},x=[],ja(e.carriers),ca("Y"))}).fail(function(e){errLayerPop({responseJSON:{message:Granite.I18n.get("Bitte gib eine korrekte information ein")}})})}}else 0<b(this).closest(":is(.tariff-popup__contents-plan)").length&&(a=b(".tariff-popup .tariff-popup__radio.tariff-popup__radio--checked").attr("data-index").split(":"),
a=t[a[0]][a[1]],"uk"!==h&&la(a),ma(a),window.sg.components.tariffPopup.reInit(1),b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").removeClass("cta--disabled").removeAttr("disabled"),b(".tariff-popup .tariff-popup__close").attr("an-la","tariff:step2:close"))});b(document).on("click",".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-prev, .tariff-popup .tariff-popup__contents-plan .tariff-popup__btn-prev",function(a){b(".tariff-popup .tariff-popup__close").attr("an-la",
"tariff:step1:close");z&&0<b(this).closest(":is(.tariff-popup__contents-plan)").length?window.sg.components.tariffPopup.show(2):0<b(this).closest(":is(.tariff-popup__contents-plan-selected)").length&&window.sg.components.tariffPopup.show(0)});b(document).on("click",".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__checkbox-wrap .tariff-popup__checkbox",function(){var a=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__checkbox-wrap").find("input[type\x3d'checkbox']"),
d=!0;0<a.length&&a.each(function(){var c=b(this);c.prop("required")&&(d=d&&c.is(":checked"))});d?b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").removeClass("cta--disabled").removeAttr("disabled"):b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").addClass("cta--disabled").attr("disabled","disabled")});var H;b(document).on("click",".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-add-opt .tariff-popup__checkbox.tariff-popup__selected-add-opt-checkbox input[type\x3dcheckbox]",
function(){var a=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected").attr("data-index").split(":"),d=t[a[0]][a[1]],c=b(this).attr("dataindex");a=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected-add-opt .hidden");0<a.length&&a.each(function(){var e=b(this);c===b(this).attr("dataindex")?e.prop("checked")?(H=d.upfrontPrice,O(d.bundlePlans[c]),K=!0,L=c):(H=null,O(d),K=!1,L=""):(e.prop("checked",!1),e.closest(".tariff-popup__checkbox .tariff-popup__selected-add-opt-checkbox").removeClass("is-checked"))})});
var Z="",aa="",ba="";z=!1;var ta=function(a){var d=b.extend({serviceName:"SIM_PLAN"},a||{});z=function(){var e="BROADBAND_PLAN"==d.serviceName;return"de"==h&&e}();W=b("#shopSKU").val();E=digitalData.page.pageInfo.pageTrack;b(".tariff-popup .tariff-popup__contents-plan .tariff-popup__btn-next").attr("disabled",!0);if(z){window.sg.components.dynamic.DetailAfterEvent.newHybrisDrawTariffOption([],{},{isBroadbandService:z});var c=tariffData.BROADBAND_CACHE.returnObject;c&&c.isBroadbandService&&X(JSON.stringify(tariffData.BROADBAND_CACHE.paramObj||
[])).done(function(e){e=e||{carriers:[]};if(0==(e.carriers||[]).length)tariffData.removeBroadbandCache();else{a:{e=e.carriers;for(var g=0,k=e.length;g<k;g++)for(var f=(e[g]||{tariffPlans:[]}).tariffPlans||[],l=0,m=f.length;l<m;l++){var q=f[l];if(q.id==c.tariffId){c.periodPrice=q.upfrontPrice;e=!0;break a}}e=!1}e?window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(c,"tariff"):tariffData.removeBroadbandCache()}})}else X({fields:"DEFAULT"}).done(function(e){null!=e&&(t={},x=[],null!=
e.carriers&&ja(e.carriers))}).fail(function(e){});"uk"===h&&(ka(),Z=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").attr("data-modelcode"),aa=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").attr("data-modeldisplay"),ba=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit").attr("data-modelname"))};b(document).on("click",".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__btn-submit",function(){var a=
b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__selected").attr("data-index").split(":");a=t[a[0]][a[1]];K&&(a=a.bundlePlans[L]);var d={};d.serviceDescription=a.name;n.isNotEmpty(a.pricing)&&(d.price=null!=a.pricing.promotion_monthly_rate?a.pricing.promotion_monthly_rate.value:a.pricing.monthly_rate.value);"au"===h&&(d.priceText=currencyComma(a.pricing.monthly_rate.value,r)+"/mo over "+a.term+" months");y&&(n.isNotEmpty(a.pricing.promotions)&&n.isNotEmpty(a.pricing.promotions[0].monthly_rate.value)?
d.price=a.pricing.promotions[0].monthly_rate.value:d.price=a.pricing.monthly_rate.value);n.isNotEmpty(a.features)&&(d.period=null!=a.features.promotional_data?a.features.promotional_data.unit:"");var c="";c=null!=a.upfrontPrice&&""!=a.upfrontPrice&&"null"!=a.upfrontPrice?a.upfrontPrice:y&&a.discount?a.discount:"fr"==h&&a.discount?-1*a.discount:0;d.periodPrice=c;d.simSkuCode=a.serviceProduct;d.modelCode=a.id;d.tariffId=a.id;d.partnerId=a.partnerId;d.serviceProduct=a.serviceProduct;d.tariffArr=[];d.consents=
[];"uk"===h?d.upfrontAmount=a.upfrontAmount:"au"===h&&(d.discount=a.discount);c=b(".tariff-popup .tariff-popup__contents-plan-selected .tariff-popup__checkbox-wrap").find("input[type\x3d'checkbox']");0<c.length&&c.each(function(){var g=b(this);g.is(":checked")&&d.consents.push(g.attr("data-id"))});K=!1;L="";a.pricing&&(d.pricing=a.pricing);a.originalRecurringAmount&&(d.originalRecurringAmount=a.originalRecurringAmount);a.recurringAmount&&(d.recurringAmount=a.recurringAmount);a.recurringDuration&&
(d.recurringDuration=a.recurringDuration);if(z){d.isBroadbandService=z;var e={};b(".tariff-popup .tariff-popup__contents-form .text-field-v2__input").each(function(){e[b(this).attr("name")]=b(this).val()});d.tariffArr=0<T(e).length?[e]:[];tariffData.BROADBAND_CACHE.returnObject=d}window.sg.components.dynamic.DetailAfterEvent.offerAndAddonsDiscount(d,"tariff");window.sg.components.tariffPopup.closePopup()});b(document).on("click",".tariff-popup .tariff-popup__plan-group-sub .tariff-popup__plan-see-more-info",
function(a){b(".tariff-popup .tariff-popup__contents-plan-details .tariff-popup__desc").html(b(this).attr("data-plan-title"));b(this).attr("data-tariff-sku");a=b(this).closest(".tariff-popup__radio").attr("data-index").split(":");var d=t[a[0]][a[1]].features.tarifhighlights,c=t[a[0]][a[1]].features.outOfBundleCharges,e="",g="";a=a[0];var k=["o2","three","vodafone"];if(d){for(var f=0;f<d.length;f++)e=d[f].title&&""!==d[f].title?e+('\x3cp class\x3d"tariff-popup__plan-details-desc-title"\x3e'+d[f].title+
"\x3c/p\x3e"):e+'\x3cp class\x3d"tariff-popup__plan-details-desc-title"\x3e\x3c/p\x3e',e=d[f].description&&""!==d[f].description?e+("\x3cp\x3e"+d[f].description+"\x3c/p\x3e"):e+"\x3cp\x3e\x3c/p\x3e";b(".tariff-popup .tariff-popup__plan-details .tariff-popup__plan-details-desc.plan-benefits-desc").html(e);b(".tariff-popup .tariff-popup__plan-details").eq(0).show()}else b(".tariff-popup .tariff-popup__plan-details").eq(0).hide();if(c&&c.entry&&0<c.entry.length){d=c.entry;for(var l in d)(c=d[l])&&c.key&&
c.value&&(g+=c.key+": "+c.value+"\x3cbr/\x3e");b(".tariff-popup .tariff-popup__plan-details .tariff-popup__plan-details-desc.out-of-bundle-charges-desc").html(g);b(".tariff-popup .tariff-popup__plan-details").eq(1).show()}else b(".tariff-popup .tariff-popup__plan-details").eq(1).hide();if(F&&0<F.length){for(var m in F);b(".tariff-popup .tariff-popup__plan-details .tariff-popup__plan-details-desc.term-conditions-desc").html(F);b(".tariff-popup .tariff-popup__plan-details").eq(2).show()}else b(".tariff-popup .tariff-popup__plan-details").eq(2).hide();
if("uk"===h){l=$jscomp.makeIterator(R);for(m=l.next();!m.done;m=l.next())if(m=m.value,m.name===a){b(".tariff-popup .tariff-popup__plan-details.network-coverage a").attr("href",m.href).attr("target","_blank");b(".tariff-popup .tariff-popup__plan-details.network-coverage").show();break}k.includes(a)||b(".tariff-popup .tariff-popup__plan-details.network-coverage").hide()}window.sg.components.tariffPopup.reInit(0,!0)});b(document).on("click",".result-tariff-optioin .option-result__edit-cta",function(a){b("#pd-tariff-option-0").trigger("click")});
var V=function(){var a=/^[0-9]{5}$/,d=/^[a-zA-Z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\.,\/\- \(\)]{1,10}$/,c=/^[a-zA-Z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\.,\/\- \(\)]{0,10}$/,e=/^[a-zA-Z0-9\u00e4\u00f6\u00fc\u00c4\u00d6\u00dc\u00df\.,\/\- \(\)]{3,190}$/;return{streetName:function(g){var k=b.Deferred();e.test(g)?k.resolve("success"):k.reject(Granite.I18n.get("Please provide a valid street"));return k.promise()},houseNumber:function(g){var k=b.Deferred();d.test(g)?k.resolve("success"):
k.reject(Granite.I18n.get("Please provide a valid house number"));return k.promise()},postCode:function(g){var k=b.Deferred();a.test(g)?k.resolve("success"):k.reject(Granite.I18n.get("Please provide a valid postcode"));return k.promise()},locality:function(g){var k=b.Deferred();e.test(g)?k.resolve("success"):k.reject(Granite.I18n.get("Please provide a valid city"));return k.promise()},houseNumberAddition:function(g){var k=b.Deferred();c.test(g)?k.resolve("success"):k.reject(Granite.I18n.get("Please enter correct information again."));
return k.promise()}}}();(function(){var a=[],d;for(d in V)"houseNumberAddition"!=d&&a.push(d);return a})();var J=function(a,d,c,e){var g=b(".text-field-v2__text.assistive",b(a).closest(".tariff-popup__form-item")),k=b(".text-field-v2__text.error",b(a).closest(".tariff-popup__form-item"));e=b.extend({afterShow:function(f,l){f.attr("style","display:none;");l.attr("aria-hidden","false")},afterHide:function(f,l){f.attr("style","");l.attr("aria-hidden","true")}},e);d=d||"";"show"!=d&&"hide"!=d&&(d="show");
"show"==d?(window.sg.common.textFieldv2.setState(b(a).closest(".text-field-v2").get(0),"error"),e.afterShow(g,k)):(window.sg.common.textFieldv2.setState(b(a).closest(".text-field-v2").get(0),"normal"),e.afterHide(g,k));void 0!==c&&k.html(c)};b(document).off("keydown",".tariff-popup .tariff-popup__contents-form .text-field-v2__input");b(document).on("keydown",".tariff-popup .tariff-popup__contents-form .text-field-v2__input",function(a,d){var c;return function(){var e=this,g=arguments;clearTimeout(c);
c=setTimeout(function(){a.apply(e,g)},d)}}(function(a){ia(this)},300));(function(){var a=!1,d=b(".tariff-popup .tariff-popup__contents-form .menu .menu__select").get(0);d.addEventListener("change",function(c){a=!0;U(b("option:selected",b(c.target)))});d.addEventListener("click",function(c){var e=c.target.closest(".menu--text-field");!a&&e.classList.contains("open")&&U(b("option:selected",b(c.target)));a=!1})})();b(document).off("click",".tariff-popup .tariff-popup__contents-form .menu__list .menu__list-option-wrap");
b(document).on("click",".tariff-popup .tariff-popup__contents-form .menu__list .menu__list-option-wrap",function(a){b(this).is(".active")&&U(b(".menu__select \x3e option:eq("+b(this).index()+")",b(this).closest(".menu")))});b(document).off("click",".tariff-popup .tariff-popup__contents-form .text-field-v2__input-icon.delete");b(document).on("click",".tariff-popup .tariff-popup__contents-form .text-field-v2__input-icon.delete",function(a){b(".text-field-v2__input",b(this).closest(".tariff-popup__form-item")).val("").trigger("keydown")});
b(document).off("click",".tariff-popup .tariff-popup__contents-plan .tariff-popup__choose .tariff-popup__choose-item a, .tariff-popup .tariff-popup__contents-plan .tariff-popup__choose-panel .tariff-popup__tab-item-wrap a");b(document).on("click",".tariff-popup .tariff-popup__contents-plan .tariff-popup__choose .tariff-popup__choose-item a, .tariff-popup .tariff-popup__contents-plan .tariff-popup__choose-panel .tariff-popup__tab-item-wrap a",function(){b(".tariff-popup__contents-plan [aria-labelledby\x3d"+
b(this).attr("id")+"] .tariff-popup__filter").each(function(){b(".checkbox-v2__input",b(this)).prop("checked",!1).filter(":eq(0)").prop("checked",!0).trigger("change")})});b(document).off("change",".tariff-popup .tariff-popup__contents-plan .tariff-popup__filter .checkbox-v2__input");b(document).on("change",".tariff-popup .tariff-popup__contents-plan .tariff-popup__filter .checkbox-v2__input",function(a){a=b(".checkbox-v2__input:checked",b(this).closest(".tariff-popup__filter-list"));var d=b(".tariff-popup__radio",
b(this).closest(".tariff-popup__tab-panel-item"));d.removeClass("tariff-popup__radio--checked").hide().find("input:radio").prop("checked",!1);C(!0,".tariff-popup__contents-plan");a.each(function(){var c=b(this).val();d.each(function(){-1!==b.inArray(c,b(this).data("customerType")||[])&&b(this).show()})});0<d.filter(function(){return"block"==(b(this).css("display")||"").toLowerCase()}).length?d.closest(".tariff-popup__radio-wrap").show():d.closest(".tariff-popup__radio-wrap").hide()});tariffData=function(){return{setTariff:ta,
showPopup:ca,BROADBAND_CACHE:{},removeBroadbandCache:function(){for(var a in this.BROADBAND_CACHE)delete this.BROADBAND_CACHE[a]}}}()})(window,$);